@twilio/conversations 2.2.2 → 2.3.0-rc.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.
@@ -164,7 +164,7 @@ this.Twilio.Conversations = (function (exports) {
164
164
 
165
165
  var objectGetOwnPropertyDescriptor = {};
166
166
 
167
- var fails$A = function (exec) {
167
+ var fails$B = function (exec) {
168
168
  try {
169
169
  return !!exec();
170
170
  } catch (error) {
@@ -172,10 +172,10 @@ this.Twilio.Conversations = (function (exports) {
172
172
  }
173
173
  };
174
174
 
175
- var fails$z = fails$A;
175
+ var fails$A = fails$B;
176
176
 
177
177
  // Detect IE8's incomplete defineProperty implementation
178
- var descriptors = !fails$z(function () {
178
+ var descriptors = !fails$A(function () {
179
179
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
180
180
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
181
181
  });
@@ -211,13 +211,13 @@ this.Twilio.Conversations = (function (exports) {
211
211
  return toString$e.call(it).slice(8, -1);
212
212
  };
213
213
 
214
- var fails$y = fails$A;
214
+ var fails$z = fails$B;
215
215
  var classof$b = classofRaw$1;
216
216
 
217
217
  var split = ''.split;
218
218
 
219
219
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
220
- var indexedObject = fails$y(function () {
220
+ var indexedObject = fails$z(function () {
221
221
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
222
222
  // eslint-disable-next-line no-prototype-builtins -- safe
223
223
  return !Object('z').propertyIsEnumerable(0);
@@ -240,7 +240,7 @@ this.Twilio.Conversations = (function (exports) {
240
240
  return IndexedObject$4(requireObjectCoercible$9(it));
241
241
  };
242
242
 
243
- var isObject$o = function (it) {
243
+ var isObject$p = function (it) {
244
244
  return typeof it === 'object' ? it !== null : typeof it === 'function';
245
245
  };
246
246
 
@@ -283,10 +283,10 @@ this.Twilio.Conversations = (function (exports) {
283
283
  /* eslint-disable es/no-symbol -- required for testing */
284
284
 
285
285
  var V8_VERSION$3 = engineV8Version;
286
- var fails$x = fails$A;
286
+ var fails$y = fails$B;
287
287
 
288
288
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
289
- var nativeSymbol$1 = !!Object.getOwnPropertySymbols && !fails$x(function () {
289
+ var nativeSymbol$1 = !!Object.getOwnPropertySymbols && !fails$y(function () {
290
290
  var symbol = Symbol();
291
291
  // Chrome 38 Symbol has incorrect toString conversion
292
292
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -313,15 +313,15 @@ this.Twilio.Conversations = (function (exports) {
313
313
  return typeof $Symbol == 'function' && Object(it) instanceof $Symbol;
314
314
  };
315
315
 
316
- var isObject$n = isObject$o;
316
+ var isObject$o = isObject$p;
317
317
 
318
318
  // `OrdinaryToPrimitive` abstract operation
319
319
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
320
320
  var ordinaryToPrimitive$1 = function (input, pref) {
321
321
  var fn, val;
322
- if (pref === 'string' && typeof (fn = input.toString) == 'function' && !isObject$n(val = fn.call(input))) return val;
323
- if (typeof (fn = input.valueOf) == 'function' && !isObject$n(val = fn.call(input))) return val;
324
- if (pref !== 'string' && typeof (fn = input.toString) == 'function' && !isObject$n(val = fn.call(input))) return val;
322
+ if (pref === 'string' && typeof (fn = input.toString) == 'function' && !isObject$o(val = fn.call(input))) return val;
323
+ if (typeof (fn = input.valueOf) == 'function' && !isObject$o(val = fn.call(input))) return val;
324
+ if (pref !== 'string' && typeof (fn = input.toString) == 'function' && !isObject$o(val = fn.call(input))) return val;
325
325
  throw TypeError("Can't convert object to primitive value");
326
326
  };
327
327
 
@@ -402,7 +402,7 @@ this.Twilio.Conversations = (function (exports) {
402
402
  } return WellKnownSymbolsStore$1[name];
403
403
  };
404
404
 
405
- var isObject$m = isObject$o;
405
+ var isObject$n = isObject$p;
406
406
  var isSymbol$5 = isSymbol$6;
407
407
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
408
408
  var wellKnownSymbol$r = wellKnownSymbol$s;
@@ -412,13 +412,13 @@ this.Twilio.Conversations = (function (exports) {
412
412
  // `ToPrimitive` abstract operation
413
413
  // https://tc39.es/ecma262/#sec-toprimitive
414
414
  var toPrimitive$2 = function (input, pref) {
415
- if (!isObject$m(input) || isSymbol$5(input)) return input;
415
+ if (!isObject$n(input) || isSymbol$5(input)) return input;
416
416
  var exoticToPrim = input[TO_PRIMITIVE$1];
417
417
  var result;
418
418
  if (exoticToPrim !== undefined) {
419
419
  if (pref === undefined) pref = 'default';
420
420
  result = exoticToPrim.call(input, pref);
421
- if (!isObject$m(result) || isSymbol$5(result)) return result;
421
+ if (!isObject$n(result) || isSymbol$5(result)) return result;
422
422
  throw TypeError("Can't convert object to primitive value");
423
423
  }
424
424
  if (pref === undefined) pref = 'number';
@@ -436,22 +436,22 @@ this.Twilio.Conversations = (function (exports) {
436
436
  };
437
437
 
438
438
  var global$x = global$D;
439
- var isObject$l = isObject$o;
439
+ var isObject$m = isObject$p;
440
440
 
441
441
  var document$3 = global$x.document;
442
442
  // typeof document.createElement is 'object' in old IE
443
- var EXISTS = isObject$l(document$3) && isObject$l(document$3.createElement);
443
+ var EXISTS = isObject$m(document$3) && isObject$m(document$3.createElement);
444
444
 
445
445
  var documentCreateElement$2 = function (it) {
446
446
  return EXISTS ? document$3.createElement(it) : {};
447
447
  };
448
448
 
449
449
  var DESCRIPTORS$i = descriptors;
450
- var fails$w = fails$A;
450
+ var fails$x = fails$B;
451
451
  var createElement$1 = documentCreateElement$2;
452
452
 
453
453
  // Thank's IE8 for his funny defineProperty
454
- var ie8DomDefine = !DESCRIPTORS$i && !fails$w(function () {
454
+ var ie8DomDefine = !DESCRIPTORS$i && !fails$x(function () {
455
455
  // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
456
456
  return Object.defineProperty(createElement$1('div'), 'a', {
457
457
  get: function () { return 7; }
@@ -482,10 +482,10 @@ this.Twilio.Conversations = (function (exports) {
482
482
 
483
483
  var objectDefineProperty = {};
484
484
 
485
- var isObject$k = isObject$o;
485
+ var isObject$l = isObject$p;
486
486
 
487
487
  var anObject$k = function (it) {
488
- if (!isObject$k(it)) {
488
+ if (!isObject$l(it)) {
489
489
  throw TypeError(String(it) + ' is not an object');
490
490
  } return it;
491
491
  };
@@ -558,7 +558,7 @@ this.Twilio.Conversations = (function (exports) {
558
558
 
559
559
  var NATIVE_WEAK_MAP = nativeWeakMap;
560
560
  var global$v = global$D;
561
- var isObject$j = isObject$o;
561
+ var isObject$k = isObject$p;
562
562
  var createNonEnumerableProperty$b = createNonEnumerableProperty$c;
563
563
  var objectHas = has$g;
564
564
  var shared$2 = sharedStore;
@@ -576,7 +576,7 @@ this.Twilio.Conversations = (function (exports) {
576
576
  var getterFor = function (TYPE) {
577
577
  return function (it) {
578
578
  var state;
579
- if (!isObject$j(it) || (state = get$2(it)).type !== TYPE) {
579
+ if (!isObject$k(it) || (state = get$2(it)).type !== TYPE) {
580
580
  throw TypeError('Incompatible receiver, ' + TYPE + ' required');
581
581
  } return state;
582
582
  };
@@ -784,19 +784,19 @@ this.Twilio.Conversations = (function (exports) {
784
784
  var anObject$i = anObject$k;
785
785
 
786
786
  // all object keys, includes non-enumerable and symbols
787
- var ownKeys$8 = getBuiltIn$7('Reflect', 'ownKeys') || function ownKeys(it) {
787
+ var ownKeys$9 = getBuiltIn$7('Reflect', 'ownKeys') || function ownKeys(it) {
788
788
  var keys = getOwnPropertyNamesModule$2.f(anObject$i(it));
789
789
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$2.f;
790
790
  return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
791
791
  };
792
792
 
793
793
  var has$a = has$g;
794
- var ownKeys$7 = ownKeys$8;
794
+ var ownKeys$8 = ownKeys$9;
795
795
  var getOwnPropertyDescriptorModule$3 = objectGetOwnPropertyDescriptor;
796
796
  var definePropertyModule$6 = objectDefineProperty;
797
797
 
798
798
  var copyConstructorProperties$2 = function (target, source) {
799
- var keys = ownKeys$7(source);
799
+ var keys = ownKeys$8(source);
800
800
  var defineProperty = definePropertyModule$6.f;
801
801
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$3.f;
802
802
  for (var i = 0; i < keys.length; i++) {
@@ -805,7 +805,7 @@ this.Twilio.Conversations = (function (exports) {
805
805
  }
806
806
  };
807
807
 
808
- var fails$v = fails$A;
808
+ var fails$w = fails$B;
809
809
 
810
810
  var replacement = /#|\.prototype\./;
811
811
 
@@ -813,7 +813,7 @@ this.Twilio.Conversations = (function (exports) {
813
813
  var value = data[normalize(feature)];
814
814
  return value == POLYFILL ? true
815
815
  : value == NATIVE ? false
816
- : typeof detection == 'function' ? fails$v(detection)
816
+ : typeof detection == 'function' ? fails$w(detection)
817
817
  : !!detection;
818
818
  };
819
819
 
@@ -894,11 +894,11 @@ this.Twilio.Conversations = (function (exports) {
894
894
  }
895
895
  };
896
896
 
897
- var $$x = _export;
897
+ var $$y = _export;
898
898
  var global$s = global$D;
899
899
  var setToStringTag$8 = setToStringTag$9;
900
900
 
901
- $$x({ global: true }, { Reflect: {} });
901
+ $$y({ global: true }, { Reflect: {} });
902
902
 
903
903
  // Reflect[@@toStringTag] property
904
904
  // https://tc39.es/ecma262/#sec-reflect-@@tostringtag
@@ -1027,7 +1027,7 @@ this.Twilio.Conversations = (function (exports) {
1027
1027
  };
1028
1028
 
1029
1029
  var aFunction$8 = aFunction$9;
1030
- var isObject$i = isObject$o;
1030
+ var isObject$j = isObject$p;
1031
1031
 
1032
1032
  var slice = [].slice;
1033
1033
  var factories = {};
@@ -1049,18 +1049,18 @@ this.Twilio.Conversations = (function (exports) {
1049
1049
  var args = partArgs.concat(slice.call(arguments));
1050
1050
  return this instanceof boundFunction ? construct$1(fn, args.length, args) : fn.apply(that, args);
1051
1051
  };
1052
- if (isObject$i(fn.prototype)) boundFunction.prototype = fn.prototype;
1052
+ if (isObject$j(fn.prototype)) boundFunction.prototype = fn.prototype;
1053
1053
  return boundFunction;
1054
1054
  };
1055
1055
 
1056
- var $$w = _export;
1056
+ var $$x = _export;
1057
1057
  var getBuiltIn$5 = getBuiltIn$a;
1058
1058
  var aFunction$7 = aFunction$9;
1059
1059
  var anObject$f = anObject$k;
1060
- var isObject$h = isObject$o;
1060
+ var isObject$i = isObject$p;
1061
1061
  var create$7 = objectCreate;
1062
1062
  var bind$8 = functionBind;
1063
- var fails$u = fails$A;
1063
+ var fails$v = fails$B;
1064
1064
 
1065
1065
  var nativeConstruct = getBuiltIn$5('Reflect', 'construct');
1066
1066
 
@@ -1068,16 +1068,16 @@ this.Twilio.Conversations = (function (exports) {
1068
1068
  // https://tc39.es/ecma262/#sec-reflect.construct
1069
1069
  // MS Edge supports only 2 arguments and argumentsList argument is optional
1070
1070
  // FF Nightly sets third argument as `new.target`, but does not create `this` from it
1071
- var NEW_TARGET_BUG = fails$u(function () {
1071
+ var NEW_TARGET_BUG = fails$v(function () {
1072
1072
  function F() { /* empty */ }
1073
1073
  return !(nativeConstruct(function () { /* empty */ }, [], F) instanceof F);
1074
1074
  });
1075
- var ARGS_BUG = !fails$u(function () {
1075
+ var ARGS_BUG = !fails$v(function () {
1076
1076
  nativeConstruct(function () { /* empty */ });
1077
1077
  });
1078
1078
  var FORCED$9 = NEW_TARGET_BUG || ARGS_BUG;
1079
1079
 
1080
- $$w({ target: 'Reflect', stat: true, forced: FORCED$9, sham: FORCED$9 }, {
1080
+ $$x({ target: 'Reflect', stat: true, forced: FORCED$9, sham: FORCED$9 }, {
1081
1081
  construct: function construct(Target, args /* , newTarget */) {
1082
1082
  aFunction$7(Target);
1083
1083
  anObject$f(args);
@@ -1099,22 +1099,22 @@ this.Twilio.Conversations = (function (exports) {
1099
1099
  }
1100
1100
  // with altered newTarget, not support built-in constructors
1101
1101
  var proto = newTarget.prototype;
1102
- var instance = create$7(isObject$h(proto) ? proto : Object.prototype);
1102
+ var instance = create$7(isObject$i(proto) ? proto : Object.prototype);
1103
1103
  var result = Function.apply.call(Target, instance, args);
1104
- return isObject$h(result) ? result : instance;
1104
+ return isObject$i(result) ? result : instance;
1105
1105
  }
1106
1106
  });
1107
1107
 
1108
- var $$v = _export;
1108
+ var $$w = _export;
1109
1109
  var toObject$e = toObject$g;
1110
1110
  var nativeKeys = objectKeys$4;
1111
- var fails$t = fails$A;
1111
+ var fails$u = fails$B;
1112
1112
 
1113
- var FAILS_ON_PRIMITIVES$1 = fails$t(function () { nativeKeys(1); });
1113
+ var FAILS_ON_PRIMITIVES$2 = fails$u(function () { nativeKeys(1); });
1114
1114
 
1115
1115
  // `Object.keys` method
1116
1116
  // https://tc39.es/ecma262/#sec-object.keys
1117
- $$v({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$1 }, {
1117
+ $$w({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$2 }, {
1118
1118
  keys: function keys(it) {
1119
1119
  return nativeKeys(toObject$e(it));
1120
1120
  }
@@ -1210,7 +1210,7 @@ this.Twilio.Conversations = (function (exports) {
1210
1210
  };
1211
1211
  };
1212
1212
 
1213
- var isObject$g = isObject$o;
1213
+ var isObject$h = isObject$p;
1214
1214
  var isArray$3 = isArray$4;
1215
1215
  var wellKnownSymbol$o = wellKnownSymbol$s;
1216
1216
 
@@ -1224,7 +1224,7 @@ this.Twilio.Conversations = (function (exports) {
1224
1224
  C = originalArray.constructor;
1225
1225
  // cross-realm fallback
1226
1226
  if (typeof C == 'function' && (C === Array || isArray$3(C.prototype))) C = undefined;
1227
- else if (isObject$g(C)) {
1227
+ else if (isObject$h(C)) {
1228
1228
  C = C[SPECIES$6];
1229
1229
  if (C === null) C = undefined;
1230
1230
  }
@@ -1312,15 +1312,15 @@ this.Twilio.Conversations = (function (exports) {
1312
1312
  filterReject: createMethod$4(7)
1313
1313
  };
1314
1314
 
1315
- var $$u = _export;
1315
+ var $$v = _export;
1316
1316
  var global$q = global$D;
1317
1317
  var getBuiltIn$4 = getBuiltIn$a;
1318
1318
  var DESCRIPTORS$d = descriptors;
1319
1319
  var NATIVE_SYMBOL = nativeSymbol$1;
1320
- var fails$s = fails$A;
1320
+ var fails$t = fails$B;
1321
1321
  var has$7 = has$g;
1322
1322
  var isArray$2 = isArray$4;
1323
- var isObject$f = isObject$o;
1323
+ var isObject$g = isObject$p;
1324
1324
  var isSymbol$2 = isSymbol$6;
1325
1325
  var anObject$e = anObject$k;
1326
1326
  var toObject$c = toObject$g;
@@ -1372,7 +1372,7 @@ this.Twilio.Conversations = (function (exports) {
1372
1372
  var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild;
1373
1373
 
1374
1374
  // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
1375
- var setSymbolDescriptor = DESCRIPTORS$d && fails$s(function () {
1375
+ var setSymbolDescriptor = DESCRIPTORS$d && fails$t(function () {
1376
1376
  return nativeObjectCreate(nativeDefineProperty$1({}, 'a', {
1377
1377
  get: function () { return nativeDefineProperty$1(this, 'a', { value: 7 }).a; }
1378
1378
  })).a != 7;
@@ -1513,7 +1513,7 @@ this.Twilio.Conversations = (function (exports) {
1513
1513
  }
1514
1514
  }
1515
1515
 
1516
- $$u({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
1516
+ $$v({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
1517
1517
  Symbol: $Symbol$1
1518
1518
  });
1519
1519
 
@@ -1521,7 +1521,7 @@ this.Twilio.Conversations = (function (exports) {
1521
1521
  defineWellKnownSymbol$1(name);
1522
1522
  });
1523
1523
 
1524
- $$u({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
1524
+ $$v({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
1525
1525
  // `Symbol.for` method
1526
1526
  // https://tc39.es/ecma262/#sec-symbol.for
1527
1527
  'for': function (key) {
@@ -1542,7 +1542,7 @@ this.Twilio.Conversations = (function (exports) {
1542
1542
  useSimple: function () { USE_SETTER = false; }
1543
1543
  });
1544
1544
 
1545
- $$u({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS$d }, {
1545
+ $$v({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS$d }, {
1546
1546
  // `Object.create` method
1547
1547
  // https://tc39.es/ecma262/#sec-object.create
1548
1548
  create: $create,
@@ -1557,7 +1557,7 @@ this.Twilio.Conversations = (function (exports) {
1557
1557
  getOwnPropertyDescriptor: $getOwnPropertyDescriptor
1558
1558
  });
1559
1559
 
1560
- $$u({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {
1560
+ $$v({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {
1561
1561
  // `Object.getOwnPropertyNames` method
1562
1562
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
1563
1563
  getOwnPropertyNames: $getOwnPropertyNames,
@@ -1568,7 +1568,7 @@ this.Twilio.Conversations = (function (exports) {
1568
1568
 
1569
1569
  // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
1570
1570
  // https://bugs.chromium.org/p/v8/issues/detail?id=3443
1571
- $$u({ target: 'Object', stat: true, forced: fails$s(function () { getOwnPropertySymbolsModule$1.f(1); }) }, {
1571
+ $$v({ target: 'Object', stat: true, forced: fails$t(function () { getOwnPropertySymbolsModule$1.f(1); }) }, {
1572
1572
  getOwnPropertySymbols: function getOwnPropertySymbols(it) {
1573
1573
  return getOwnPropertySymbolsModule$1.f(toObject$c(it));
1574
1574
  }
@@ -1577,7 +1577,7 @@ this.Twilio.Conversations = (function (exports) {
1577
1577
  // `JSON.stringify` method behavior with symbols
1578
1578
  // https://tc39.es/ecma262/#sec-json.stringify
1579
1579
  if ($stringify$1) {
1580
- var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails$s(function () {
1580
+ var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails$t(function () {
1581
1581
  var symbol = $Symbol$1();
1582
1582
  // MS Edge converts symbol values to JSON as {}
1583
1583
  return $stringify$1([symbol]) != '[null]'
@@ -1587,7 +1587,7 @@ this.Twilio.Conversations = (function (exports) {
1587
1587
  || $stringify$1(Object(symbol)) != '{}';
1588
1588
  });
1589
1589
 
1590
- $$u({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
1590
+ $$v({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
1591
1591
  // eslint-disable-next-line no-unused-vars -- required for `.length`
1592
1592
  stringify: function stringify(it, replacer, space) {
1593
1593
  var args = [it];
@@ -1595,7 +1595,7 @@ this.Twilio.Conversations = (function (exports) {
1595
1595
  var $replacer;
1596
1596
  while (arguments.length > index) args.push(arguments[index++]);
1597
1597
  $replacer = replacer;
1598
- if (!isObject$f(replacer) && it === undefined || isSymbol$2(it)) return; // IE8 returns string on undefined
1598
+ if (!isObject$g(replacer) && it === undefined || isSymbol$2(it)) return; // IE8 returns string on undefined
1599
1599
  if (!isArray$2(replacer)) replacer = function (key, value) {
1600
1600
  if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
1601
1601
  if (!isSymbol$2(value)) return value;
@@ -1617,7 +1617,7 @@ this.Twilio.Conversations = (function (exports) {
1617
1617
 
1618
1618
  hiddenKeys$1[HIDDEN] = true;
1619
1619
 
1620
- var fails$r = fails$A;
1620
+ var fails$s = fails$B;
1621
1621
  var wellKnownSymbol$m = wellKnownSymbol$s;
1622
1622
  var V8_VERSION$2 = engineV8Version;
1623
1623
 
@@ -1627,7 +1627,7 @@ this.Twilio.Conversations = (function (exports) {
1627
1627
  // We can't use this feature detection in V8 since it causes
1628
1628
  // deoptimization and serious performance degradation
1629
1629
  // https://github.com/zloirock/core-js/issues/677
1630
- return V8_VERSION$2 >= 51 || !fails$r(function () {
1630
+ return V8_VERSION$2 >= 51 || !fails$s(function () {
1631
1631
  var array = [];
1632
1632
  var constructor = array.constructor = {};
1633
1633
  constructor[SPECIES$5] = function () {
@@ -1637,7 +1637,7 @@ this.Twilio.Conversations = (function (exports) {
1637
1637
  });
1638
1638
  };
1639
1639
 
1640
- var $$t = _export;
1640
+ var $$u = _export;
1641
1641
  var $filter$1 = arrayIteration.filter;
1642
1642
  var arrayMethodHasSpeciesSupport$4 = arrayMethodHasSpeciesSupport$5;
1643
1643
 
@@ -1646,24 +1646,24 @@ this.Twilio.Conversations = (function (exports) {
1646
1646
  // `Array.prototype.filter` method
1647
1647
  // https://tc39.es/ecma262/#sec-array.prototype.filter
1648
1648
  // with adding support of @@species
1649
- $$t({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, {
1649
+ $$u({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, {
1650
1650
  filter: function filter(callbackfn /* , thisArg */) {
1651
1651
  return $filter$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1652
1652
  }
1653
1653
  });
1654
1654
 
1655
- var $$s = _export;
1656
- var fails$q = fails$A;
1655
+ var $$t = _export;
1656
+ var fails$r = fails$B;
1657
1657
  var toIndexedObject$6 = toIndexedObject$c;
1658
1658
  var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
1659
1659
  var DESCRIPTORS$c = descriptors;
1660
1660
 
1661
- var FAILS_ON_PRIMITIVES = fails$q(function () { nativeGetOwnPropertyDescriptor$1(1); });
1662
- var FORCED$8 = !DESCRIPTORS$c || FAILS_ON_PRIMITIVES;
1661
+ var FAILS_ON_PRIMITIVES$1 = fails$r(function () { nativeGetOwnPropertyDescriptor$1(1); });
1662
+ var FORCED$8 = !DESCRIPTORS$c || FAILS_ON_PRIMITIVES$1;
1663
1663
 
1664
1664
  // `Object.getOwnPropertyDescriptor` method
1665
1665
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
1666
- $$s({ target: 'Object', stat: true, forced: FORCED$8, sham: !DESCRIPTORS$c }, {
1666
+ $$t({ target: 'Object', stat: true, forced: FORCED$8, sham: !DESCRIPTORS$c }, {
1667
1667
  getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {
1668
1668
  return nativeGetOwnPropertyDescriptor$1(toIndexedObject$6(it), key);
1669
1669
  }
@@ -1679,20 +1679,20 @@ this.Twilio.Conversations = (function (exports) {
1679
1679
  else object[propertyKey] = value;
1680
1680
  };
1681
1681
 
1682
- var $$r = _export;
1682
+ var $$s = _export;
1683
1683
  var DESCRIPTORS$b = descriptors;
1684
- var ownKeys$6 = ownKeys$8;
1684
+ var ownKeys$7 = ownKeys$9;
1685
1685
  var toIndexedObject$5 = toIndexedObject$c;
1686
1686
  var getOwnPropertyDescriptorModule$1 = objectGetOwnPropertyDescriptor;
1687
1687
  var createProperty$4 = createProperty$5;
1688
1688
 
1689
1689
  // `Object.getOwnPropertyDescriptors` method
1690
1690
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
1691
- $$r({ target: 'Object', stat: true, sham: !DESCRIPTORS$b }, {
1691
+ $$s({ target: 'Object', stat: true, sham: !DESCRIPTORS$b }, {
1692
1692
  getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
1693
1693
  var O = toIndexedObject$5(object);
1694
1694
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$1.f;
1695
- var keys = ownKeys$6(O);
1695
+ var keys = ownKeys$7(O);
1696
1696
  var result = {};
1697
1697
  var index = 0;
1698
1698
  var key, descriptor;
@@ -1908,10 +1908,10 @@ this.Twilio.Conversations = (function (exports) {
1908
1908
  return target;
1909
1909
  };
1910
1910
 
1911
- var isObject$e = isObject$o;
1911
+ var isObject$f = isObject$p;
1912
1912
 
1913
1913
  var aPossiblePrototype$1 = function (it) {
1914
- if (!isObject$e(it) && it !== null) {
1914
+ if (!isObject$f(it) && it !== null) {
1915
1915
  throw TypeError("Can't set " + String(it) + ' as a prototype');
1916
1916
  } return it;
1917
1917
  };
@@ -2148,7 +2148,7 @@ this.Twilio.Conversations = (function (exports) {
2148
2148
  var engineIsNode = classof$6(global$o.process) == 'process';
2149
2149
 
2150
2150
  var global$n = global$D;
2151
- var fails$p = fails$A;
2151
+ var fails$q = fails$B;
2152
2152
  var bind$5 = functionBindContext;
2153
2153
  var html = html$2;
2154
2154
  var createElement = documentCreateElement$2;
@@ -2235,7 +2235,7 @@ this.Twilio.Conversations = (function (exports) {
2235
2235
  typeof postMessage == 'function' &&
2236
2236
  !global$n.importScripts &&
2237
2237
  location && location.protocol !== 'file:' &&
2238
- !fails$p(post)
2238
+ !fails$q(post)
2239
2239
  ) {
2240
2240
  defer = post;
2241
2241
  global$n.addEventListener('message', listener, false);
@@ -2375,12 +2375,12 @@ this.Twilio.Conversations = (function (exports) {
2375
2375
  };
2376
2376
 
2377
2377
  var anObject$8 = anObject$k;
2378
- var isObject$d = isObject$o;
2378
+ var isObject$e = isObject$p;
2379
2379
  var newPromiseCapability$1 = newPromiseCapability$2;
2380
2380
 
2381
2381
  var promiseResolve$1 = function (C, x) {
2382
2382
  anObject$8(C);
2383
- if (isObject$d(x) && x.constructor === C) return x;
2383
+ if (isObject$e(x) && x.constructor === C) return x;
2384
2384
  var promiseCapability = newPromiseCapability$1.f(C);
2385
2385
  var resolve = promiseCapability.resolve;
2386
2386
  resolve(x);
@@ -2406,7 +2406,7 @@ this.Twilio.Conversations = (function (exports) {
2406
2406
 
2407
2407
  var engineIsBrowser = typeof window == 'object';
2408
2408
 
2409
- var $$q = _export;
2409
+ var $$r = _export;
2410
2410
  var global$j = global$D;
2411
2411
  var getBuiltIn$2 = getBuiltIn$a;
2412
2412
  var NativePromise = nativePromiseConstructor;
@@ -2415,7 +2415,7 @@ this.Twilio.Conversations = (function (exports) {
2415
2415
  var setPrototypeOf$6 = objectSetPrototypeOf;
2416
2416
  var setToStringTag$6 = setToStringTag$9;
2417
2417
  var setSpecies$3 = setSpecies$4;
2418
- var isObject$c = isObject$o;
2418
+ var isObject$d = isObject$p;
2419
2419
  var aFunction$3 = aFunction$9;
2420
2420
  var anInstance$6 = anInstance$7;
2421
2421
  var inspectSource = inspectSource$3;
@@ -2491,7 +2491,7 @@ this.Twilio.Conversations = (function (exports) {
2491
2491
  // helpers
2492
2492
  var isThenable = function (it) {
2493
2493
  var then;
2494
- return isObject$c(it) && typeof (then = it.then) == 'function' ? then : false;
2494
+ return isObject$d(it) && typeof (then = it.then) == 'function' ? then : false;
2495
2495
  };
2496
2496
 
2497
2497
  var notify = function (state, isReject) {
@@ -2721,7 +2721,7 @@ this.Twilio.Conversations = (function (exports) {
2721
2721
  }
2722
2722
  }
2723
2723
 
2724
- $$q({ global: true, wrap: true, forced: FORCED$7 }, {
2724
+ $$r({ global: true, wrap: true, forced: FORCED$7 }, {
2725
2725
  Promise: PromiseConstructor
2726
2726
  });
2727
2727
 
@@ -2731,7 +2731,7 @@ this.Twilio.Conversations = (function (exports) {
2731
2731
  PromiseWrapper = getBuiltIn$2(PROMISE);
2732
2732
 
2733
2733
  // statics
2734
- $$q({ target: PROMISE, stat: true, forced: FORCED$7 }, {
2734
+ $$r({ target: PROMISE, stat: true, forced: FORCED$7 }, {
2735
2735
  // `Promise.reject` method
2736
2736
  // https://tc39.es/ecma262/#sec-promise.reject
2737
2737
  reject: function reject(r) {
@@ -2741,7 +2741,7 @@ this.Twilio.Conversations = (function (exports) {
2741
2741
  }
2742
2742
  });
2743
2743
 
2744
- $$q({ target: PROMISE, stat: true, forced: FORCED$7 }, {
2744
+ $$r({ target: PROMISE, stat: true, forced: FORCED$7 }, {
2745
2745
  // `Promise.resolve` method
2746
2746
  // https://tc39.es/ecma262/#sec-promise.resolve
2747
2747
  resolve: function resolve(x) {
@@ -2749,7 +2749,7 @@ this.Twilio.Conversations = (function (exports) {
2749
2749
  }
2750
2750
  });
2751
2751
 
2752
- $$q({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION$1 }, {
2752
+ $$r({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION$1 }, {
2753
2753
  // `Promise.all` method
2754
2754
  // https://tc39.es/ecma262/#sec-promise.all
2755
2755
  all: function all(iterable) {
@@ -2796,7 +2796,7 @@ this.Twilio.Conversations = (function (exports) {
2796
2796
  }
2797
2797
  });
2798
2798
 
2799
- var $$p = _export;
2799
+ var $$q = _export;
2800
2800
  var $map$1 = arrayIteration.map;
2801
2801
  var arrayMethodHasSpeciesSupport$3 = arrayMethodHasSpeciesSupport$5;
2802
2802
 
@@ -2805,7 +2805,7 @@ this.Twilio.Conversations = (function (exports) {
2805
2805
  // `Array.prototype.map` method
2806
2806
  // https://tc39.es/ecma262/#sec-array.prototype.map
2807
2807
  // with adding support of @@species
2808
- $$p({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, {
2808
+ $$q({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, {
2809
2809
  map: function map(callbackfn /* , thisArg */) {
2810
2810
  return $map$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2811
2811
  }
@@ -2855,11 +2855,11 @@ this.Twilio.Conversations = (function (exports) {
2855
2855
 
2856
2856
  var domTokenListPrototype = DOMTokenListPrototype$2 === Object.prototype ? undefined : DOMTokenListPrototype$2;
2857
2857
 
2858
- var fails$o = fails$A;
2858
+ var fails$p = fails$B;
2859
2859
 
2860
2860
  var arrayMethodIsStrict$5 = function (METHOD_NAME, argument) {
2861
2861
  var method = [][METHOD_NAME];
2862
- return !!method && fails$o(function () {
2862
+ return !!method && fails$p(function () {
2863
2863
  // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
2864
2864
  method.call(null, argument || function () { throw 1; }, 1);
2865
2865
  });
@@ -3601,10 +3601,10 @@ this.Twilio.Conversations = (function (exports) {
3601
3601
  if ((typeof Reflect === "undefined" ? "undefined" : _typeof$3(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
3602
3602
  }
3603
3603
 
3604
- var $$o = _export;
3605
- var fails$n = fails$A;
3604
+ var $$p = _export;
3605
+ var fails$o = fails$B;
3606
3606
  var isArray$1 = isArray$4;
3607
- var isObject$b = isObject$o;
3607
+ var isObject$c = isObject$p;
3608
3608
  var toObject$b = toObject$g;
3609
3609
  var toLength$k = toLength$o;
3610
3610
  var createProperty$3 = createProperty$5;
@@ -3620,7 +3620,7 @@ this.Twilio.Conversations = (function (exports) {
3620
3620
  // We can't use this feature detection in V8 since it causes
3621
3621
  // deoptimization and serious performance degradation
3622
3622
  // https://github.com/zloirock/core-js/issues/679
3623
- var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$n(function () {
3623
+ var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$o(function () {
3624
3624
  var array = [];
3625
3625
  array[IS_CONCAT_SPREADABLE] = false;
3626
3626
  return array.concat()[0] !== array;
@@ -3629,7 +3629,7 @@ this.Twilio.Conversations = (function (exports) {
3629
3629
  var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$2('concat');
3630
3630
 
3631
3631
  var isConcatSpreadable = function (O) {
3632
- if (!isObject$b(O)) return false;
3632
+ if (!isObject$c(O)) return false;
3633
3633
  var spreadable = O[IS_CONCAT_SPREADABLE];
3634
3634
  return spreadable !== undefined ? !!spreadable : isArray$1(O);
3635
3635
  };
@@ -3639,7 +3639,7 @@ this.Twilio.Conversations = (function (exports) {
3639
3639
  // `Array.prototype.concat` method
3640
3640
  // https://tc39.es/ecma262/#sec-array.prototype.concat
3641
3641
  // with adding support of @@isConcatSpreadable and @@species
3642
- $$o({ target: 'Array', proto: true, forced: FORCED$6 }, {
3642
+ $$p({ target: 'Array', proto: true, forced: FORCED$6 }, {
3643
3643
  // eslint-disable-next-line no-unused-vars -- required for `.length`
3644
3644
  concat: function concat(arg) {
3645
3645
  var O = toObject$b(this);
@@ -3716,7 +3716,7 @@ this.Twilio.Conversations = (function (exports) {
3716
3716
  return result;
3717
3717
  };
3718
3718
 
3719
- var $$n = _export;
3719
+ var $$o = _export;
3720
3720
  var from = arrayFrom$1;
3721
3721
  var checkCorrectnessOfIteration$2 = checkCorrectnessOfIteration$4;
3722
3722
 
@@ -3727,7 +3727,7 @@ this.Twilio.Conversations = (function (exports) {
3727
3727
 
3728
3728
  // `Array.from` method
3729
3729
  // https://tc39.es/ecma262/#sec-array.from
3730
- $$n({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
3730
+ $$o({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
3731
3731
  from: from
3732
3732
  });
3733
3733
 
@@ -3760,9 +3760,9 @@ this.Twilio.Conversations = (function (exports) {
3760
3760
  charAt: createMethod$3(true)
3761
3761
  };
3762
3762
 
3763
- var fails$m = fails$A;
3763
+ var fails$n = fails$B;
3764
3764
 
3765
- var correctPrototypeGetter = !fails$m(function () {
3765
+ var correctPrototypeGetter = !fails$n(function () {
3766
3766
  function F() { /* empty */ }
3767
3767
  F.prototype.constructor = null;
3768
3768
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
@@ -3788,7 +3788,7 @@ this.Twilio.Conversations = (function (exports) {
3788
3788
  } return O instanceof Object ? ObjectPrototype$2 : null;
3789
3789
  };
3790
3790
 
3791
- var fails$l = fails$A;
3791
+ var fails$m = fails$B;
3792
3792
  var getPrototypeOf$4 = objectGetPrototypeOf;
3793
3793
  var createNonEnumerableProperty$6 = createNonEnumerableProperty$c;
3794
3794
  var wellKnownSymbol$c = wellKnownSymbol$s;
@@ -3811,7 +3811,7 @@ this.Twilio.Conversations = (function (exports) {
3811
3811
  }
3812
3812
  }
3813
3813
 
3814
- var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$l(function () {
3814
+ var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$m(function () {
3815
3815
  var test = {};
3816
3816
  // FF44- legacy iterators case
3817
3817
  return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
@@ -3848,7 +3848,7 @@ this.Twilio.Conversations = (function (exports) {
3848
3848
  return IteratorConstructor;
3849
3849
  };
3850
3850
 
3851
- var $$m = _export;
3851
+ var $$n = _export;
3852
3852
  var createIteratorConstructor$1 = createIteratorConstructor$2;
3853
3853
  var getPrototypeOf$3 = objectGetPrototypeOf;
3854
3854
  var setPrototypeOf$5 = objectSetPrototypeOf;
@@ -3930,7 +3930,7 @@ this.Twilio.Conversations = (function (exports) {
3930
3930
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
3931
3931
  redefine$7(IterablePrototype, KEY, methods[KEY]);
3932
3932
  }
3933
- } else $$m({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
3933
+ } else $$n({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
3934
3934
  }
3935
3935
 
3936
3936
  return methods;
@@ -4467,9 +4467,9 @@ this.Twilio.Conversations = (function (exports) {
4467
4467
  parse: parse
4468
4468
  };
4469
4469
 
4470
- function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4470
+ function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4471
4471
 
4472
- function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty$3(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4472
+ function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty$3(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4473
4473
  var TYPING_TIMEOUT = 5;
4474
4474
  var HTTP_CACHE_LIFETIME = "PT5S";
4475
4475
  var CONSUMPTION_HORIZON_SENDING_INTERVAL = "PT5S";
@@ -4510,7 +4510,7 @@ this.Twilio.Conversations = (function (exports) {
4510
4510
  emailBodiesAllowedContentTypes: configurationResponse.options.email_bodies_allowed_mime_types
4511
4511
  };
4512
4512
  this.typingIndicatorTimeoutOverride = constructorOptions.typingIndicatorTimeoutOverride;
4513
- this.backoffConfiguration = _objectSpread$5({
4513
+ this.backoffConfiguration = _objectSpread$6({
4514
4514
  min: MINIMUM_RETRY_DELAY$1,
4515
4515
  max: MAXIMUM_RETRY_DELAY$1,
4516
4516
  maxAttemptsCount: MAXIMUM_ATTEMPTS_COUNT
@@ -4653,9 +4653,9 @@ this.Twilio.Conversations = (function (exports) {
4653
4653
 
4654
4654
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
4655
4655
 
4656
- var $$l = _export;
4656
+ var $$m = _export;
4657
4657
  var getBuiltIn$1 = getBuiltIn$a;
4658
- var fails$k = fails$A;
4658
+ var fails$l = fails$B;
4659
4659
 
4660
4660
  var $stringify = getBuiltIn$1('JSON', 'stringify');
4661
4661
  var re = /[\uD800-\uDFFF]/g;
@@ -4670,7 +4670,7 @@ this.Twilio.Conversations = (function (exports) {
4670
4670
  } return match;
4671
4671
  };
4672
4672
 
4673
- var FORCED$5 = fails$k(function () {
4673
+ var FORCED$5 = fails$l(function () {
4674
4674
  return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
4675
4675
  || $stringify('\uDEAD') !== '"\\udead"';
4676
4676
  });
@@ -4679,7 +4679,7 @@ this.Twilio.Conversations = (function (exports) {
4679
4679
  // `JSON.stringify` method
4680
4680
  // https://tc39.es/ecma262/#sec-json.stringify
4681
4681
  // https://github.com/tc39/proposal-well-formed-stringify
4682
- $$l({ target: 'JSON', stat: true, forced: FORCED$5 }, {
4682
+ $$m({ target: 'JSON', stat: true, forced: FORCED$5 }, {
4683
4683
  // eslint-disable-next-line no-unused-vars -- required for `.length`
4684
4684
  stringify: function stringify(it, replacer, space) {
4685
4685
  var result = $stringify.apply(null, arguments);
@@ -4688,7 +4688,7 @@ this.Twilio.Conversations = (function (exports) {
4688
4688
  });
4689
4689
  }
4690
4690
 
4691
- var isObject$a = isObject$o;
4691
+ var isObject$b = isObject$p;
4692
4692
  var setPrototypeOf$4 = objectSetPrototypeOf;
4693
4693
 
4694
4694
  // makes subclassing work correct for wrapped built-ins
@@ -4700,7 +4700,7 @@ this.Twilio.Conversations = (function (exports) {
4700
4700
  // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
4701
4701
  typeof (NewTarget = dummy.constructor) == 'function' &&
4702
4702
  NewTarget !== Wrapper &&
4703
- isObject$a(NewTargetPrototype = NewTarget.prototype) &&
4703
+ isObject$b(NewTargetPrototype = NewTarget.prototype) &&
4704
4704
  NewTargetPrototype !== Wrapper.prototype
4705
4705
  ) setPrototypeOf$4($this, NewTargetPrototype);
4706
4706
  return $this;
@@ -4749,7 +4749,7 @@ this.Twilio.Conversations = (function (exports) {
4749
4749
  var inheritIfRequired$2 = inheritIfRequired$3;
4750
4750
  var isSymbol$1 = isSymbol$6;
4751
4751
  var toPrimitive = toPrimitive$2;
4752
- var fails$j = fails$A;
4752
+ var fails$k = fails$B;
4753
4753
  var create$4 = objectCreate;
4754
4754
  var getOwnPropertyNames$2 = objectGetOwnPropertyNames.f;
4755
4755
  var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
@@ -4801,7 +4801,7 @@ this.Twilio.Conversations = (function (exports) {
4801
4801
  var dummy = this;
4802
4802
  return dummy instanceof NumberWrapper
4803
4803
  // check on 1..constructor(foo) case
4804
- && (BROKEN_CLASSOF ? fails$j(function () { NumberPrototype.valueOf.call(dummy); }) : classof$5(dummy) != NUMBER)
4804
+ && (BROKEN_CLASSOF ? fails$k(function () { NumberPrototype.valueOf.call(dummy); }) : classof$5(dummy) != NUMBER)
4805
4805
  ? inheritIfRequired$2(new NativeNumber(toNumber(it)), dummy, NumberWrapper) : toNumber(it);
4806
4806
  };
4807
4807
  for (var keys$1 = DESCRIPTORS$9 ? getOwnPropertyNames$2(NativeNumber) : (
@@ -4840,43 +4840,43 @@ this.Twilio.Conversations = (function (exports) {
4840
4840
 
4841
4841
  var regexpStickyHelpers = {};
4842
4842
 
4843
- var fails$i = fails$A;
4843
+ var fails$j = fails$B;
4844
4844
  var global$f = global$D;
4845
4845
 
4846
4846
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
4847
4847
  var $RegExp$2 = global$f.RegExp;
4848
4848
 
4849
- regexpStickyHelpers.UNSUPPORTED_Y = fails$i(function () {
4849
+ regexpStickyHelpers.UNSUPPORTED_Y = fails$j(function () {
4850
4850
  var re = $RegExp$2('a', 'y');
4851
4851
  re.lastIndex = 2;
4852
4852
  return re.exec('abcd') != null;
4853
4853
  });
4854
4854
 
4855
- regexpStickyHelpers.BROKEN_CARET = fails$i(function () {
4855
+ regexpStickyHelpers.BROKEN_CARET = fails$j(function () {
4856
4856
  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
4857
4857
  var re = $RegExp$2('^r', 'gy');
4858
4858
  re.lastIndex = 2;
4859
4859
  return re.exec('str') != null;
4860
4860
  });
4861
4861
 
4862
- var fails$h = fails$A;
4862
+ var fails$i = fails$B;
4863
4863
  var global$e = global$D;
4864
4864
 
4865
4865
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
4866
4866
  var $RegExp$1 = global$e.RegExp;
4867
4867
 
4868
- var regexpUnsupportedDotAll = fails$h(function () {
4868
+ var regexpUnsupportedDotAll = fails$i(function () {
4869
4869
  var re = $RegExp$1('.', 's');
4870
4870
  return !(re.dotAll && re.exec('\n') && re.flags === 's');
4871
4871
  });
4872
4872
 
4873
- var fails$g = fails$A;
4873
+ var fails$h = fails$B;
4874
4874
  var global$d = global$D;
4875
4875
 
4876
4876
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
4877
4877
  var $RegExp = global$d.RegExp;
4878
4878
 
4879
- var regexpUnsupportedNcg = fails$g(function () {
4879
+ var regexpUnsupportedNcg = fails$h(function () {
4880
4880
  var re = $RegExp('(?<a>b)', 'g');
4881
4881
  return re.exec('b').groups.a !== 'b' ||
4882
4882
  'b'.replace(re, '$<a>c') !== 'bc';
@@ -4995,12 +4995,12 @@ this.Twilio.Conversations = (function (exports) {
4995
4995
 
4996
4996
  var regexpExec$3 = patchedExec;
4997
4997
 
4998
- var $$k = _export;
4998
+ var $$l = _export;
4999
4999
  var exec = regexpExec$3;
5000
5000
 
5001
5001
  // `RegExp.prototype.exec` method
5002
5002
  // https://tc39.es/ecma262/#sec-regexp.prototype.exec
5003
- $$k({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
5003
+ $$l({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
5004
5004
  exec: exec
5005
5005
  });
5006
5006
 
@@ -5008,7 +5008,7 @@ this.Twilio.Conversations = (function (exports) {
5008
5008
 
5009
5009
  var redefine$5 = redefine$d.exports;
5010
5010
  var regexpExec$2 = regexpExec$3;
5011
- var fails$f = fails$A;
5011
+ var fails$g = fails$B;
5012
5012
  var wellKnownSymbol$8 = wellKnownSymbol$s;
5013
5013
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$c;
5014
5014
 
@@ -5018,14 +5018,14 @@ this.Twilio.Conversations = (function (exports) {
5018
5018
  var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
5019
5019
  var SYMBOL = wellKnownSymbol$8(KEY);
5020
5020
 
5021
- var DELEGATES_TO_SYMBOL = !fails$f(function () {
5021
+ var DELEGATES_TO_SYMBOL = !fails$g(function () {
5022
5022
  // String methods call symbol-named RegEp methods
5023
5023
  var O = {};
5024
5024
  O[SYMBOL] = function () { return 7; };
5025
5025
  return ''[KEY](O) != 7;
5026
5026
  });
5027
5027
 
5028
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$f(function () {
5028
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$g(function () {
5029
5029
  // Symbol-named RegExp methods call .exec
5030
5030
  var execCalled = false;
5031
5031
  var re = /a/;
@@ -5149,7 +5149,7 @@ this.Twilio.Conversations = (function (exports) {
5149
5149
  };
5150
5150
 
5151
5151
  var fixRegExpWellKnownSymbolLogic$3 = fixRegexpWellKnownSymbolLogic;
5152
- var fails$e = fails$A;
5152
+ var fails$f = fails$B;
5153
5153
  var anObject$5 = anObject$k;
5154
5154
  var toInteger$6 = toInteger$a;
5155
5155
  var toLength$i = toLength$o;
@@ -5183,7 +5183,7 @@ this.Twilio.Conversations = (function (exports) {
5183
5183
  return false;
5184
5184
  })();
5185
5185
 
5186
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$e(function () {
5186
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$f(function () {
5187
5187
  var re = /./;
5188
5188
  re.exec = function () {
5189
5189
  var result = [];
@@ -5275,7 +5275,7 @@ this.Twilio.Conversations = (function (exports) {
5275
5275
  ];
5276
5276
  }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
5277
5277
 
5278
- var $$j = _export;
5278
+ var $$k = _export;
5279
5279
  var IndexedObject$2 = indexedObject;
5280
5280
  var toIndexedObject$3 = toIndexedObject$c;
5281
5281
  var arrayMethodIsStrict$3 = arrayMethodIsStrict$5;
@@ -5287,7 +5287,7 @@ this.Twilio.Conversations = (function (exports) {
5287
5287
 
5288
5288
  // `Array.prototype.join` method
5289
5289
  // https://tc39.es/ecma262/#sec-array.prototype.join
5290
- $$j({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$3 }, {
5290
+ $$k({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$3 }, {
5291
5291
  join: function join(separator) {
5292
5292
  return nativeJoin.call(toIndexedObject$3(this), separator === undefined ? ',' : separator);
5293
5293
  }
@@ -5385,8 +5385,8 @@ this.Twilio.Conversations = (function (exports) {
5385
5385
 
5386
5386
  var browser$7 = {};
5387
5387
 
5388
- var $$i = _export;
5389
- var isObject$9 = isObject$o;
5388
+ var $$j = _export;
5389
+ var isObject$a = isObject$p;
5390
5390
  var isArray = isArray$4;
5391
5391
  var toAbsoluteIndex$4 = toAbsoluteIndex$6;
5392
5392
  var toLength$h = toLength$o;
@@ -5404,7 +5404,7 @@ this.Twilio.Conversations = (function (exports) {
5404
5404
  // `Array.prototype.slice` method
5405
5405
  // https://tc39.es/ecma262/#sec-array.prototype.slice
5406
5406
  // fallback for not array-like ES3 strings and DOM objects
5407
- $$i({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
5407
+ $$j({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
5408
5408
  slice: function slice(start, end) {
5409
5409
  var O = toIndexedObject$2(this);
5410
5410
  var length = toLength$h(O.length);
@@ -5417,7 +5417,7 @@ this.Twilio.Conversations = (function (exports) {
5417
5417
  // cross-realm fallback
5418
5418
  if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
5419
5419
  Constructor = undefined;
5420
- } else if (isObject$9(Constructor)) {
5420
+ } else if (isObject$a(Constructor)) {
5421
5421
  Constructor = Constructor[SPECIES];
5422
5422
  if (Constructor === null) Constructor = undefined;
5423
5423
  }
@@ -5434,8 +5434,8 @@ this.Twilio.Conversations = (function (exports) {
5434
5434
 
5435
5435
  // TODO: Remove from `core-js@4` since it's moved to entry points
5436
5436
 
5437
- var $$h = _export;
5438
- var isObject$8 = isObject$o;
5437
+ var $$i = _export;
5438
+ var isObject$9 = isObject$p;
5439
5439
 
5440
5440
  var DELEGATES_TO_EXEC = function () {
5441
5441
  var execCalled = false;
@@ -5451,24 +5451,24 @@ this.Twilio.Conversations = (function (exports) {
5451
5451
 
5452
5452
  // `RegExp.prototype.test` method
5453
5453
  // https://tc39.es/ecma262/#sec-regexp.prototype.test
5454
- $$h({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
5454
+ $$i({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
5455
5455
  test: function (str) {
5456
5456
  if (typeof this.exec !== 'function') {
5457
5457
  return nativeTest.call(this, str);
5458
5458
  }
5459
5459
  var result = this.exec(str);
5460
- if (result !== null && !isObject$8(result)) {
5460
+ if (result !== null && !isObject$9(result)) {
5461
5461
  throw new Error('RegExp exec method returned something other than an Object or null');
5462
5462
  }
5463
5463
  return !!result;
5464
5464
  }
5465
5465
  });
5466
5466
 
5467
- var $$g = _export;
5467
+ var $$h = _export;
5468
5468
  var DESCRIPTORS$8 = descriptors;
5469
5469
  var global$c = global$D;
5470
5470
  var has$4 = has$g;
5471
- var isObject$7 = isObject$o;
5471
+ var isObject$8 = isObject$p;
5472
5472
  var defineProperty$7 = objectDefineProperty.f;
5473
5473
  var copyConstructorProperties = copyConstructorProperties$2;
5474
5474
 
@@ -5499,7 +5499,7 @@ this.Twilio.Conversations = (function (exports) {
5499
5499
  defineProperty$7(symbolPrototype, 'description', {
5500
5500
  configurable: true,
5501
5501
  get: function description() {
5502
- var symbol = isObject$7(this) ? this.valueOf() : this;
5502
+ var symbol = isObject$8(this) ? this.valueOf() : this;
5503
5503
  var string = symbolToString.call(symbol);
5504
5504
  if (has$4(EmptyStringDescriptionStore, symbol)) return '';
5505
5505
  var desc = nativeSymbol ? string.slice(7, -1) : string.replace(regexp, '$1');
@@ -5507,7 +5507,7 @@ this.Twilio.Conversations = (function (exports) {
5507
5507
  }
5508
5508
  });
5509
5509
 
5510
- $$g({ global: true, forced: true }, {
5510
+ $$h({ global: true, forced: true }, {
5511
5511
  Symbol: SymbolWrapper
5512
5512
  });
5513
5513
  }
@@ -5831,13 +5831,13 @@ this.Twilio.Conversations = (function (exports) {
5831
5831
  module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
5832
5832
  })(getPrototypeOf$2);
5833
5833
 
5834
- var $$f = _export;
5834
+ var $$g = _export;
5835
5835
  var $includes$1 = arrayIncludes.includes;
5836
5836
  var addToUnscopables$1 = addToUnscopables$3;
5837
5837
 
5838
5838
  // `Array.prototype.includes` method
5839
5839
  // https://tc39.es/ecma262/#sec-array.prototype.includes
5840
- $$f({ target: 'Array', proto: true }, {
5840
+ $$g({ target: 'Array', proto: true }, {
5841
5841
  includes: function includes(el /* , fromIndex = 0 */) {
5842
5842
  return $includes$1(this, el, arguments.length > 1 ? arguments[1] : undefined);
5843
5843
  }
@@ -5846,22 +5846,22 @@ this.Twilio.Conversations = (function (exports) {
5846
5846
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
5847
5847
  addToUnscopables$1('includes');
5848
5848
 
5849
- var isObject$6 = isObject$o;
5849
+ var isObject$7 = isObject$p;
5850
5850
 
5851
5851
  var floor$5 = Math.floor;
5852
5852
 
5853
5853
  // `Number.isInteger` method implementation
5854
5854
  // https://tc39.es/ecma262/#sec-number.isinteger
5855
5855
  var isInteger$3 = function isInteger(it) {
5856
- return !isObject$6(it) && isFinite(it) && floor$5(it) === it;
5856
+ return !isObject$7(it) && isFinite(it) && floor$5(it) === it;
5857
5857
  };
5858
5858
 
5859
- var $$e = _export;
5859
+ var $$f = _export;
5860
5860
  var isInteger$2 = isInteger$3;
5861
5861
 
5862
5862
  // `Number.isInteger` method
5863
5863
  // https://tc39.es/ecma262/#sec-number.isinteger
5864
- $$e({ target: 'Number', stat: true }, {
5864
+ $$f({ target: 'Number', stat: true }, {
5865
5865
  isInteger: isInteger$2
5866
5866
  });
5867
5867
 
@@ -5898,12 +5898,12 @@ this.Twilio.Conversations = (function (exports) {
5898
5898
  values: createMethod$1(false)
5899
5899
  };
5900
5900
 
5901
- var $$d = _export;
5901
+ var $$e = _export;
5902
5902
  var $entries = objectToArray.entries;
5903
5903
 
5904
5904
  // `Object.entries` method
5905
5905
  // https://tc39.es/ecma262/#sec-object.entries
5906
- $$d({ target: 'Object', stat: true }, {
5906
+ $$e({ target: 'Object', stat: true }, {
5907
5907
  entries: function entries(O) {
5908
5908
  return $entries(O);
5909
5909
  }
@@ -9975,22 +9975,22 @@ this.Twilio.Conversations = (function (exports) {
9975
9975
 
9976
9976
  var internalMetadata = {exports: {}};
9977
9977
 
9978
- var fails$d = fails$A;
9978
+ var fails$e = fails$B;
9979
9979
 
9980
- var freezing = !fails$d(function () {
9980
+ var freezing = !fails$e(function () {
9981
9981
  // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing
9982
9982
  return Object.isExtensible(Object.preventExtensions({}));
9983
9983
  });
9984
9984
 
9985
- var $$c = _export;
9985
+ var $$d = _export;
9986
9986
  var hiddenKeys = hiddenKeys$6;
9987
- var isObject$5 = isObject$o;
9987
+ var isObject$6 = isObject$p;
9988
9988
  var has$3 = has$g;
9989
9989
  var defineProperty$4 = objectDefineProperty.f;
9990
9990
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
9991
9991
  var getOwnPropertyNamesExternalModule = objectGetOwnPropertyNamesExternal;
9992
9992
  var uid$1 = uid$5;
9993
- var FREEZING = freezing;
9993
+ var FREEZING$1 = freezing;
9994
9994
 
9995
9995
  var REQUIRED = false;
9996
9996
  var METADATA = uid$1('meta');
@@ -10010,7 +10010,7 @@ this.Twilio.Conversations = (function (exports) {
10010
10010
 
10011
10011
  var fastKey$1 = function (it, create) {
10012
10012
  // return a primitive with prefix
10013
- if (!isObject$5(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
10013
+ if (!isObject$6(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
10014
10014
  if (!has$3(it, METADATA)) {
10015
10015
  // can't set metadata to uncaught frozen object
10016
10016
  if (!isExtensible(it)) return 'F';
@@ -10035,8 +10035,8 @@ this.Twilio.Conversations = (function (exports) {
10035
10035
  };
10036
10036
 
10037
10037
  // add metadata on freeze-family methods calling
10038
- var onFreeze = function (it) {
10039
- if (FREEZING && REQUIRED && isExtensible(it) && !has$3(it, METADATA)) setMetadata(it);
10038
+ var onFreeze$1 = function (it) {
10039
+ if (FREEZING$1 && REQUIRED && isExtensible(it) && !has$3(it, METADATA)) setMetadata(it);
10040
10040
  return it;
10041
10041
  };
10042
10042
 
@@ -10060,7 +10060,7 @@ this.Twilio.Conversations = (function (exports) {
10060
10060
  } return result;
10061
10061
  };
10062
10062
 
10063
- $$c({ target: 'Object', stat: true, forced: true }, {
10063
+ $$d({ target: 'Object', stat: true, forced: true }, {
10064
10064
  getOwnPropertyNames: getOwnPropertyNamesExternalModule.f
10065
10065
  });
10066
10066
  }
@@ -10070,20 +10070,20 @@ this.Twilio.Conversations = (function (exports) {
10070
10070
  enable: enable,
10071
10071
  fastKey: fastKey$1,
10072
10072
  getWeakData: getWeakData,
10073
- onFreeze: onFreeze
10073
+ onFreeze: onFreeze$1
10074
10074
  };
10075
10075
 
10076
10076
  hiddenKeys[METADATA] = true;
10077
10077
 
10078
- var $$b = _export;
10078
+ var $$c = _export;
10079
10079
  var global$b = global$D;
10080
10080
  var isForced = isForced_1;
10081
10081
  var redefine$4 = redefine$d.exports;
10082
10082
  var InternalMetadataModule = internalMetadata.exports;
10083
10083
  var iterate$1 = iterate$3;
10084
10084
  var anInstance$5 = anInstance$7;
10085
- var isObject$4 = isObject$o;
10086
- var fails$c = fails$A;
10085
+ var isObject$5 = isObject$p;
10086
+ var fails$d = fails$B;
10087
10087
  var checkCorrectnessOfIteration$1 = checkCorrectnessOfIteration$4;
10088
10088
  var setToStringTag$3 = setToStringTag$9;
10089
10089
  var inheritIfRequired$1 = inheritIfRequired$3;
@@ -10104,11 +10104,11 @@ this.Twilio.Conversations = (function (exports) {
10104
10104
  nativeMethod.call(this, value === 0 ? 0 : value);
10105
10105
  return this;
10106
10106
  } : KEY == 'delete' ? function (key) {
10107
- return IS_WEAK && !isObject$4(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
10107
+ return IS_WEAK && !isObject$5(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
10108
10108
  } : KEY == 'get' ? function get(key) {
10109
- return IS_WEAK && !isObject$4(key) ? undefined : nativeMethod.call(this, key === 0 ? 0 : key);
10109
+ return IS_WEAK && !isObject$5(key) ? undefined : nativeMethod.call(this, key === 0 ? 0 : key);
10110
10110
  } : KEY == 'has' ? function has(key) {
10111
- return IS_WEAK && !isObject$4(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
10111
+ return IS_WEAK && !isObject$5(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
10112
10112
  } : function set(key, value) {
10113
10113
  nativeMethod.call(this, key === 0 ? 0 : key, value);
10114
10114
  return this;
@@ -10118,7 +10118,7 @@ this.Twilio.Conversations = (function (exports) {
10118
10118
 
10119
10119
  var REPLACE = isForced(
10120
10120
  CONSTRUCTOR_NAME,
10121
- typeof NativeConstructor != 'function' || !(IS_WEAK || NativePrototype.forEach && !fails$c(function () {
10121
+ typeof NativeConstructor != 'function' || !(IS_WEAK || NativePrototype.forEach && !fails$d(function () {
10122
10122
  new NativeConstructor().entries().next();
10123
10123
  }))
10124
10124
  );
@@ -10132,12 +10132,12 @@ this.Twilio.Conversations = (function (exports) {
10132
10132
  // early implementations not supports chaining
10133
10133
  var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
10134
10134
  // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
10135
- var THROWS_ON_PRIMITIVES = fails$c(function () { instance.has(1); });
10135
+ var THROWS_ON_PRIMITIVES = fails$d(function () { instance.has(1); });
10136
10136
  // most early implementations doesn't supports iterables, most modern - not close it correctly
10137
10137
  // eslint-disable-next-line no-new -- required for testing
10138
10138
  var ACCEPT_ITERABLES = checkCorrectnessOfIteration$1(function (iterable) { new NativeConstructor(iterable); });
10139
10139
  // for early implementations -0 and +0 not the same
10140
- var BUGGY_ZERO = !IS_WEAK && fails$c(function () {
10140
+ var BUGGY_ZERO = !IS_WEAK && fails$d(function () {
10141
10141
  // V8 ~ Chromium 42- fails only with 5+ elements
10142
10142
  var $instance = new NativeConstructor();
10143
10143
  var index = 5;
@@ -10169,7 +10169,7 @@ this.Twilio.Conversations = (function (exports) {
10169
10169
  }
10170
10170
 
10171
10171
  exported[CONSTRUCTOR_NAME] = Constructor;
10172
- $$b({ global: true, forced: Constructor != NativeConstructor }, exported);
10172
+ $$c({ global: true, forced: Constructor != NativeConstructor }, exported);
10173
10173
 
10174
10174
  setToStringTag$3(Constructor, CONSTRUCTOR_NAME);
10175
10175
 
@@ -11519,14 +11519,14 @@ this.Twilio.Conversations = (function (exports) {
11519
11519
  var redefine$3 = redefine$d.exports;
11520
11520
  var anObject$4 = anObject$k;
11521
11521
  var $toString$2 = toString$d;
11522
- var fails$b = fails$A;
11522
+ var fails$c = fails$B;
11523
11523
  var flags = regexpFlags$1;
11524
11524
 
11525
11525
  var TO_STRING = 'toString';
11526
11526
  var RegExpPrototype = RegExp.prototype;
11527
11527
  var nativeToString = RegExpPrototype[TO_STRING];
11528
11528
 
11529
- var NOT_GENERIC = fails$b(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
11529
+ var NOT_GENERIC = fails$c(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
11530
11530
  // FF44- RegExp#toString has a wrong name
11531
11531
  var INCORRECT_NAME = nativeToString.name != TO_STRING;
11532
11532
 
@@ -12485,7 +12485,7 @@ this.Twilio.Conversations = (function (exports) {
12485
12485
  var NATIVE_ARRAY_BUFFER$1 = arrayBufferNative;
12486
12486
  var DESCRIPTORS$4 = descriptors;
12487
12487
  var global$a = global$D;
12488
- var isObject$3 = isObject$o;
12488
+ var isObject$4 = isObject$p;
12489
12489
  var has$2 = has$g;
12490
12490
  var classof$3 = classof$9;
12491
12491
  var createNonEnumerableProperty$2 = createNonEnumerableProperty$c;
@@ -12531,7 +12531,7 @@ this.Twilio.Conversations = (function (exports) {
12531
12531
  };
12532
12532
 
12533
12533
  var isView = function isView(it) {
12534
- if (!isObject$3(it)) return false;
12534
+ if (!isObject$4(it)) return false;
12535
12535
  var klass = classof$3(it);
12536
12536
  return klass === 'DataView'
12537
12537
  || has$2(TypedArrayConstructorsList, klass)
@@ -12539,7 +12539,7 @@ this.Twilio.Conversations = (function (exports) {
12539
12539
  };
12540
12540
 
12541
12541
  var isTypedArray$1 = function (it) {
12542
- if (!isObject$3(it)) return false;
12542
+ if (!isObject$4(it)) return false;
12543
12543
  var klass = classof$3(it);
12544
12544
  return has$2(TypedArrayConstructorsList, klass)
12545
12545
  || has$2(BigIntArrayConstructorsList, klass);
@@ -12634,7 +12634,7 @@ this.Twilio.Conversations = (function (exports) {
12634
12634
  if (DESCRIPTORS$4 && !has$2(TypedArrayPrototype$1, TO_STRING_TAG)) {
12635
12635
  TYPED_ARRAY_TAG_REQIRED = true;
12636
12636
  defineProperty$2(TypedArrayPrototype$1, TO_STRING_TAG, { get: function () {
12637
- return isObject$3(this) ? this[TYPED_ARRAY_TAG$1] : undefined;
12637
+ return isObject$4(this) ? this[TYPED_ARRAY_TAG$1] : undefined;
12638
12638
  } });
12639
12639
  for (NAME in TypedArrayConstructorsList) if (global$a[NAME]) {
12640
12640
  createNonEnumerableProperty$2(global$a[NAME], TYPED_ARRAY_TAG$1, NAME);
@@ -12658,23 +12658,23 @@ this.Twilio.Conversations = (function (exports) {
12658
12658
  /* eslint-disable no-new -- required for testing */
12659
12659
 
12660
12660
  var global$9 = global$D;
12661
- var fails$a = fails$A;
12661
+ var fails$b = fails$B;
12662
12662
  var checkCorrectnessOfIteration = checkCorrectnessOfIteration$4;
12663
12663
  var NATIVE_ARRAY_BUFFER_VIEWS$1 = arrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;
12664
12664
 
12665
12665
  var ArrayBuffer$3 = global$9.ArrayBuffer;
12666
12666
  var Int8Array$2 = global$9.Int8Array;
12667
12667
 
12668
- var typedArrayConstructorsRequireWrappers = !NATIVE_ARRAY_BUFFER_VIEWS$1 || !fails$a(function () {
12668
+ var typedArrayConstructorsRequireWrappers = !NATIVE_ARRAY_BUFFER_VIEWS$1 || !fails$b(function () {
12669
12669
  Int8Array$2(1);
12670
- }) || !fails$a(function () {
12670
+ }) || !fails$b(function () {
12671
12671
  new Int8Array$2(-1);
12672
12672
  }) || !checkCorrectnessOfIteration(function (iterable) {
12673
12673
  new Int8Array$2();
12674
12674
  new Int8Array$2(null);
12675
12675
  new Int8Array$2(1.5);
12676
12676
  new Int8Array$2(iterable);
12677
- }, true) || fails$a(function () {
12677
+ }, true) || fails$b(function () {
12678
12678
  // Safari (11+) bug - a reason why even Safari 13 should load a typed array polyfill
12679
12679
  return new Int8Array$2(new ArrayBuffer$3(2), 1, undefined).length !== 1;
12680
12680
  });
@@ -12801,7 +12801,7 @@ this.Twilio.Conversations = (function (exports) {
12801
12801
  var NATIVE_ARRAY_BUFFER = arrayBufferNative;
12802
12802
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$c;
12803
12803
  var redefineAll$1 = redefineAll$4;
12804
- var fails$9 = fails$A;
12804
+ var fails$a = fails$B;
12805
12805
  var anInstance$3 = anInstance$7;
12806
12806
  var toInteger$4 = toInteger$a;
12807
12807
  var toLength$e = toLength$o;
@@ -12972,11 +12972,11 @@ this.Twilio.Conversations = (function (exports) {
12972
12972
  });
12973
12973
  } else {
12974
12974
  /* eslint-disable no-new -- required for testing */
12975
- if (!fails$9(function () {
12975
+ if (!fails$a(function () {
12976
12976
  NativeArrayBuffer$1(1);
12977
- }) || !fails$9(function () {
12977
+ }) || !fails$a(function () {
12978
12978
  new NativeArrayBuffer$1(-1);
12979
- }) || fails$9(function () {
12979
+ }) || fails$a(function () {
12980
12980
  new NativeArrayBuffer$1();
12981
12981
  new NativeArrayBuffer$1(1.5);
12982
12982
  new NativeArrayBuffer$1(NaN);
@@ -13074,7 +13074,7 @@ this.Twilio.Conversations = (function (exports) {
13074
13074
  return result;
13075
13075
  };
13076
13076
 
13077
- var $$a = _export;
13077
+ var $$b = _export;
13078
13078
  var global$7 = global$D;
13079
13079
  var DESCRIPTORS$2 = descriptors;
13080
13080
  var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = typedArrayConstructorsRequireWrappers;
@@ -13090,7 +13090,7 @@ this.Twilio.Conversations = (function (exports) {
13090
13090
  var toPropertyKey = toPropertyKey$5;
13091
13091
  var has$1 = has$g;
13092
13092
  var classof$2 = classof$9;
13093
- var isObject$2 = isObject$o;
13093
+ var isObject$3 = isObject$p;
13094
13094
  var isSymbol = isSymbol$6;
13095
13095
  var create$1 = objectCreate;
13096
13096
  var setPrototypeOf = objectSetPrototypeOf;
@@ -13158,7 +13158,7 @@ this.Twilio.Conversations = (function (exports) {
13158
13158
  var wrappedDefineProperty = function defineProperty(target, key, descriptor) {
13159
13159
  key = toPropertyKey(key);
13160
13160
  if (isTypedArrayIndex(target, key)
13161
- && isObject$2(descriptor)
13161
+ && isObject$3(descriptor)
13162
13162
  && has$1(descriptor, 'value')
13163
13163
  && !has$1(descriptor, 'get')
13164
13164
  && !has$1(descriptor, 'set')
@@ -13182,7 +13182,7 @@ this.Twilio.Conversations = (function (exports) {
13182
13182
  addGetter(TypedArrayPrototype, 'length');
13183
13183
  }
13184
13184
 
13185
- $$a({ target: 'Object', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, {
13185
+ $$b({ target: 'Object', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, {
13186
13186
  getOwnPropertyDescriptor: wrappedGetOwnPropertyDescriptor,
13187
13187
  defineProperty: wrappedDefineProperty
13188
13188
  });
@@ -13226,7 +13226,7 @@ this.Twilio.Conversations = (function (exports) {
13226
13226
  var index = 0;
13227
13227
  var byteOffset = 0;
13228
13228
  var buffer, byteLength, length;
13229
- if (!isObject$2(data)) {
13229
+ if (!isObject$3(data)) {
13230
13230
  length = toIndex(data);
13231
13231
  byteLength = length * BYTES;
13232
13232
  buffer = new ArrayBuffer$2(byteLength);
@@ -13264,7 +13264,7 @@ this.Twilio.Conversations = (function (exports) {
13264
13264
  TypedArrayConstructor = wrapper(function (dummy, data, typedArrayOffset, $length) {
13265
13265
  anInstance$2(dummy, TypedArrayConstructor, CONSTRUCTOR_NAME);
13266
13266
  return inheritIfRequired(function () {
13267
- if (!isObject$2(data)) return new NativeTypedArrayConstructor(toIndex(data));
13267
+ if (!isObject$3(data)) return new NativeTypedArrayConstructor(toIndex(data));
13268
13268
  if (isArrayBuffer(data)) return $length !== undefined
13269
13269
  ? new NativeTypedArrayConstructor(data, toOffset$1(typedArrayOffset, BYTES), $length)
13270
13270
  : typedArrayOffset !== undefined
@@ -13296,7 +13296,7 @@ this.Twilio.Conversations = (function (exports) {
13296
13296
 
13297
13297
  exported[CONSTRUCTOR_NAME] = TypedArrayConstructor;
13298
13298
 
13299
- $$a({
13299
+ $$b({
13300
13300
  global: true, forced: TypedArrayConstructor != NativeTypedArrayConstructor, sham: !NATIVE_ARRAY_BUFFER_VIEWS
13301
13301
  }, exported);
13302
13302
 
@@ -13685,12 +13685,12 @@ this.Twilio.Conversations = (function (exports) {
13685
13685
  var toLength$8 = toLength$o;
13686
13686
  var toOffset = toOffset$2;
13687
13687
  var toObject$3 = toObject$g;
13688
- var fails$8 = fails$A;
13688
+ var fails$9 = fails$B;
13689
13689
 
13690
13690
  var aTypedArray$6 = ArrayBufferViewCore$6.aTypedArray;
13691
13691
  var exportTypedArrayMethod$7 = ArrayBufferViewCore$6.exportTypedArrayMethod;
13692
13692
 
13693
- var FORCED$3 = fails$8(function () {
13693
+ var FORCED$3 = fails$9(function () {
13694
13694
  // eslint-disable-next-line es/no-typed-arrays -- required for testing
13695
13695
  new Int8Array(1).set({});
13696
13696
  });
@@ -13710,13 +13710,13 @@ this.Twilio.Conversations = (function (exports) {
13710
13710
 
13711
13711
  var ArrayBufferViewCore$5 = arrayBufferViewCore;
13712
13712
  var typedArraySpeciesConstructor$1 = typedArraySpeciesConstructor$4;
13713
- var fails$7 = fails$A;
13713
+ var fails$8 = fails$B;
13714
13714
 
13715
13715
  var aTypedArray$5 = ArrayBufferViewCore$5.aTypedArray;
13716
13716
  var exportTypedArrayMethod$6 = ArrayBufferViewCore$5.exportTypedArrayMethod;
13717
13717
  var $slice$1 = [].slice;
13718
13718
 
13719
- var FORCED$2 = fails$7(function () {
13719
+ var FORCED$2 = fails$8(function () {
13720
13720
  // eslint-disable-next-line es/no-typed-arrays -- required for testing
13721
13721
  new Int8Array(1).slice();
13722
13722
  });
@@ -13809,7 +13809,7 @@ this.Twilio.Conversations = (function (exports) {
13809
13809
 
13810
13810
  var ArrayBufferViewCore$3 = arrayBufferViewCore;
13811
13811
  var global$5 = global$D;
13812
- var fails$6 = fails$A;
13812
+ var fails$7 = fails$B;
13813
13813
  var aFunction$1 = aFunction$9;
13814
13814
  var toLength$7 = toLength$o;
13815
13815
  var internalSort$1 = arraySort;
@@ -13824,13 +13824,13 @@ this.Twilio.Conversations = (function (exports) {
13824
13824
  var nativeSort$1 = Uint16Array && Uint16Array.prototype.sort;
13825
13825
 
13826
13826
  // WebKit
13827
- var ACCEPT_INCORRECT_ARGUMENTS = !!nativeSort$1 && !fails$6(function () {
13827
+ var ACCEPT_INCORRECT_ARGUMENTS = !!nativeSort$1 && !fails$7(function () {
13828
13828
  var array = new Uint16Array(2);
13829
13829
  array.sort(null);
13830
13830
  array.sort({});
13831
13831
  });
13832
13832
 
13833
- var STABLE_SORT$1 = !!nativeSort$1 && !fails$6(function () {
13833
+ var STABLE_SORT$1 = !!nativeSort$1 && !fails$7(function () {
13834
13834
  // feature detection can be too slow, so check engines versions
13835
13835
  if (V8$1) return V8$1 < 74;
13836
13836
  if (FF$1) return FF$1 < 67;
@@ -13917,7 +13917,7 @@ this.Twilio.Conversations = (function (exports) {
13917
13917
 
13918
13918
  var global$4 = global$D;
13919
13919
  var ArrayBufferViewCore$1 = arrayBufferViewCore;
13920
- var fails$5 = fails$A;
13920
+ var fails$6 = fails$B;
13921
13921
 
13922
13922
  var Int8Array$1 = global$4.Int8Array;
13923
13923
  var aTypedArray$1 = ArrayBufferViewCore$1.aTypedArray;
@@ -13926,13 +13926,13 @@ this.Twilio.Conversations = (function (exports) {
13926
13926
  var $slice = [].slice;
13927
13927
 
13928
13928
  // iOS Safari 6.x fails here
13929
- var TO_LOCALE_STRING_BUG = !!Int8Array$1 && fails$5(function () {
13929
+ var TO_LOCALE_STRING_BUG = !!Int8Array$1 && fails$6(function () {
13930
13930
  $toLocaleString.call(new Int8Array$1(1));
13931
13931
  });
13932
13932
 
13933
- var FORCED$1 = fails$5(function () {
13933
+ var FORCED$1 = fails$6(function () {
13934
13934
  return [1, 2].toLocaleString() != new Int8Array$1([1, 2]).toLocaleString();
13935
- }) || !fails$5(function () {
13935
+ }) || !fails$6(function () {
13936
13936
  Int8Array$1.prototype.toLocaleString.call([1, 2]);
13937
13937
  });
13938
13938
 
@@ -13943,7 +13943,7 @@ this.Twilio.Conversations = (function (exports) {
13943
13943
  }, FORCED$1);
13944
13944
 
13945
13945
  var exportTypedArrayMethod$1 = arrayBufferViewCore.exportTypedArrayMethod;
13946
- var fails$4 = fails$A;
13946
+ var fails$5 = fails$B;
13947
13947
  var global$3 = global$D;
13948
13948
 
13949
13949
  var Uint8Array$1 = global$3.Uint8Array;
@@ -13951,7 +13951,7 @@ this.Twilio.Conversations = (function (exports) {
13951
13951
  var arrayToString = [].toString;
13952
13952
  var arrayJoin = [].join;
13953
13953
 
13954
- if (fails$4(function () { arrayToString.call({}); })) {
13954
+ if (fails$5(function () { arrayToString.call({}); })) {
13955
13955
  arrayToString = function toString() {
13956
13956
  return arrayJoin.call(this);
13957
13957
  };
@@ -13963,7 +13963,7 @@ this.Twilio.Conversations = (function (exports) {
13963
13963
  // https://tc39.es/ecma262/#sec-%typedarray%.prototype.tostring
13964
13964
  exportTypedArrayMethod$1('toString', arrayToString, IS_NOT_ARRAY_METHOD);
13965
13965
 
13966
- var isObject$1 = isObject$o;
13966
+ var isObject$2 = isObject$p;
13967
13967
  var classof$1 = classofRaw$1;
13968
13968
  var wellKnownSymbol$3 = wellKnownSymbol$s;
13969
13969
 
@@ -13973,7 +13973,7 @@ this.Twilio.Conversations = (function (exports) {
13973
13973
  // https://tc39.es/ecma262/#sec-isregexp
13974
13974
  var isRegexp = function (it) {
13975
13975
  var isRegExp;
13976
- return isObject$1(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$1(it) == 'RegExp');
13976
+ return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$1(it) == 'RegExp');
13977
13977
  };
13978
13978
 
13979
13979
  var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic;
@@ -13987,7 +13987,7 @@ this.Twilio.Conversations = (function (exports) {
13987
13987
  var callRegExpExec = regexpExecAbstract;
13988
13988
  var regexpExec = regexpExec$3;
13989
13989
  var stickyHelpers = regexpStickyHelpers;
13990
- var fails$3 = fails$A;
13990
+ var fails$4 = fails$B;
13991
13991
 
13992
13992
  var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
13993
13993
  var arrayPush = [].push;
@@ -13996,7 +13996,7 @@ this.Twilio.Conversations = (function (exports) {
13996
13996
 
13997
13997
  // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
13998
13998
  // Weex JS has frozen built-in prototypes, so use try / catch wrapper
13999
- var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$3(function () {
13999
+ var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$4(function () {
14000
14000
  // eslint-disable-next-line regexp/no-empty-group -- required for testing
14001
14001
  var re = /(?:)/;
14002
14002
  var originalExec = re.exec;
@@ -15498,7 +15498,7 @@ this.Twilio.Conversations = (function (exports) {
15498
15498
  ];
15499
15499
  });
15500
15500
 
15501
- var $$9 = _export;
15501
+ var $$a = _export;
15502
15502
  var toAbsoluteIndex = toAbsoluteIndex$6;
15503
15503
  var toInteger$1 = toInteger$a;
15504
15504
  var toLength$3 = toLength$o;
@@ -15517,7 +15517,7 @@ this.Twilio.Conversations = (function (exports) {
15517
15517
  // `Array.prototype.splice` method
15518
15518
  // https://tc39.es/ecma262/#sec-array.prototype.splice
15519
15519
  // with adding support of @@species
15520
- $$9({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
15520
+ $$a({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
15521
15521
  splice: function splice(start, deleteCount /* , ...items */) {
15522
15522
  var O = toObject$2(this);
15523
15523
  var len = toLength$3(O.length);
@@ -20004,7 +20004,7 @@ this.Twilio.Conversations = (function (exports) {
20004
20004
  var browser$3 = {};
20005
20005
 
20006
20006
  var DESCRIPTORS$1 = descriptors;
20007
- var fails$2 = fails$A;
20007
+ var fails$3 = fails$B;
20008
20008
  var objectKeys = objectKeys$4;
20009
20009
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
20010
20010
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
@@ -20018,7 +20018,7 @@ this.Twilio.Conversations = (function (exports) {
20018
20018
 
20019
20019
  // `Object.assign` method
20020
20020
  // https://tc39.es/ecma262/#sec-object.assign
20021
- var objectAssign = !$assign || fails$2(function () {
20021
+ var objectAssign = !$assign || fails$3(function () {
20022
20022
  // should have correct order of operations (Edge bug)
20023
20023
  if (DESCRIPTORS$1 && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
20024
20024
  enumerable: true,
@@ -20057,13 +20057,13 @@ this.Twilio.Conversations = (function (exports) {
20057
20057
  } return T;
20058
20058
  } : $assign;
20059
20059
 
20060
- var $$8 = _export;
20060
+ var $$9 = _export;
20061
20061
  var assign$1 = objectAssign;
20062
20062
 
20063
20063
  // `Object.assign` method
20064
20064
  // https://tc39.es/ecma262/#sec-object.assign
20065
20065
  // eslint-disable-next-line es/no-object-assign -- required for testing
20066
- $$8({ target: 'Object', stat: true, forced: Object.assign !== assign$1 }, {
20066
+ $$9({ target: 'Object', stat: true, forced: Object.assign !== assign$1 }, {
20067
20067
  assign: assign$1
20068
20068
  });
20069
20069
 
@@ -30642,7 +30642,7 @@ this.Twilio.Conversations = (function (exports) {
30642
30642
  }
30643
30643
  }
30644
30644
 
30645
- function ownKeys$4(object, enumerableOnly) {
30645
+ function ownKeys$5(object, enumerableOnly) {
30646
30646
  var keys = Object.keys(object);
30647
30647
 
30648
30648
  if (Object.getOwnPropertySymbols) {
@@ -30660,18 +30660,18 @@ this.Twilio.Conversations = (function (exports) {
30660
30660
  return keys;
30661
30661
  }
30662
30662
 
30663
- function _objectSpread$4(target) {
30663
+ function _objectSpread$5(target) {
30664
30664
  for (var i = 1; i < arguments.length; i++) {
30665
30665
  var source = arguments[i] != null ? arguments[i] : {};
30666
30666
 
30667
30667
  if (i % 2) {
30668
- ownKeys$4(Object(source), true).forEach(function (key) {
30668
+ ownKeys$5(Object(source), true).forEach(function (key) {
30669
30669
  _defineProperty__default['default'](target, key, source[key]);
30670
30670
  });
30671
30671
  } else if (Object.getOwnPropertyDescriptors) {
30672
30672
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
30673
30673
  } else {
30674
- ownKeys$4(Object(source)).forEach(function (key) {
30674
+ ownKeys$5(Object(source)).forEach(function (key) {
30675
30675
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
30676
30676
  });
30677
30677
  }
@@ -30695,7 +30695,7 @@ this.Twilio.Conversations = (function (exports) {
30695
30695
  };
30696
30696
  } else {
30697
30697
  var mode = arg.mode || (arg.id ? 'open_or_create' : 'create_new');
30698
- return _objectSpread$4(_objectSpread$4({}, arg), {}, {
30698
+ return _objectSpread$5(_objectSpread$5({}, arg), {}, {
30699
30699
  mode: mode
30700
30700
  });
30701
30701
  }
@@ -32140,7 +32140,7 @@ this.Twilio.Conversations = (function (exports) {
32140
32140
  } return false;
32141
32141
  };
32142
32142
 
32143
- var $$7 = _export;
32143
+ var $$8 = _export;
32144
32144
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
32145
32145
  var toLength$2 = toLength$o;
32146
32146
  var toString$2 = toString$d;
@@ -32161,7 +32161,7 @@ this.Twilio.Conversations = (function (exports) {
32161
32161
 
32162
32162
  // `String.prototype.startsWith` method
32163
32163
  // https://tc39.es/ecma262/#sec-string.prototype.startswith
32164
- $$7({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
32164
+ $$8({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
32165
32165
  startsWith: function startsWith(searchString /* , position = 0 */) {
32166
32166
  var that = toString$2(requireObjectCoercible$1(this));
32167
32167
  notARegExp$1(searchString);
@@ -32173,7 +32173,7 @@ this.Twilio.Conversations = (function (exports) {
32173
32173
  }
32174
32174
  });
32175
32175
 
32176
- var $$6 = _export;
32176
+ var $$7 = _export;
32177
32177
  var $reduce = arrayReduce.left;
32178
32178
  var arrayMethodIsStrict$1 = arrayMethodIsStrict$5;
32179
32179
  var CHROME_VERSION = engineV8Version;
@@ -32186,19 +32186,19 @@ this.Twilio.Conversations = (function (exports) {
32186
32186
 
32187
32187
  // `Array.prototype.reduce` method
32188
32188
  // https://tc39.es/ecma262/#sec-array.prototype.reduce
32189
- $$6({ target: 'Array', proto: true, forced: !STRICT_METHOD$1 || CHROME_BUG }, {
32189
+ $$7({ target: 'Array', proto: true, forced: !STRICT_METHOD$1 || CHROME_BUG }, {
32190
32190
  reduce: function reduce(callbackfn /* , initialValue */) {
32191
32191
  return $reduce(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);
32192
32192
  }
32193
32193
  });
32194
32194
 
32195
- var fails$1 = fails$A;
32195
+ var fails$2 = fails$B;
32196
32196
  var wellKnownSymbol$1 = wellKnownSymbol$s;
32197
32197
  var IS_PURE = isPure;
32198
32198
 
32199
32199
  var ITERATOR$1 = wellKnownSymbol$1('iterator');
32200
32200
 
32201
- var nativeUrl = !fails$1(function () {
32201
+ var nativeUrl = !fails$2(function () {
32202
32202
  var url = new URL('b?a=1&b=2&c=3', 'http://a');
32203
32203
  var searchParams = url.searchParams;
32204
32204
  var result = '';
@@ -32396,7 +32396,7 @@ this.Twilio.Conversations = (function (exports) {
32396
32396
 
32397
32397
  // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
32398
32398
 
32399
- var $$5 = _export;
32399
+ var $$6 = _export;
32400
32400
  var getBuiltIn = getBuiltIn$a;
32401
32401
  var USE_NATIVE_URL$1 = nativeUrl;
32402
32402
  var redefine$1 = redefine$d.exports;
@@ -32409,7 +32409,7 @@ this.Twilio.Conversations = (function (exports) {
32409
32409
  var bind = functionBindContext;
32410
32410
  var classof = classof$9;
32411
32411
  var anObject = anObject$k;
32412
- var isObject = isObject$o;
32412
+ var isObject$1 = isObject$p;
32413
32413
  var $toString$1 = toString$d;
32414
32414
  var create = objectCreate;
32415
32415
  var createPropertyDescriptor = createPropertyDescriptor$7;
@@ -32535,7 +32535,7 @@ this.Twilio.Conversations = (function (exports) {
32535
32535
  });
32536
32536
 
32537
32537
  if (init !== undefined) {
32538
- if (isObject(init)) {
32538
+ if (isObject$1(init)) {
32539
32539
  iteratorMethod = getIteratorMethod(init);
32540
32540
  if (typeof iteratorMethod === 'function') {
32541
32541
  iterator = getIterator(init, iteratorMethod);
@@ -32710,14 +32710,14 @@ this.Twilio.Conversations = (function (exports) {
32710
32710
 
32711
32711
  setToStringTag$1(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
32712
32712
 
32713
- $$5({ global: true, forced: !USE_NATIVE_URL$1 }, {
32713
+ $$6({ global: true, forced: !USE_NATIVE_URL$1 }, {
32714
32714
  URLSearchParams: URLSearchParamsConstructor
32715
32715
  });
32716
32716
 
32717
32717
  // Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
32718
32718
  if (!USE_NATIVE_URL$1 && typeof Headers == 'function') {
32719
32719
  var wrapRequestOptions = function (init) {
32720
- if (isObject(init)) {
32720
+ if (isObject$1(init)) {
32721
32721
  var body = init.body;
32722
32722
  var headers;
32723
32723
  if (classof(body) === URL_SEARCH_PARAMS) {
@@ -32734,7 +32734,7 @@ this.Twilio.Conversations = (function (exports) {
32734
32734
  };
32735
32735
 
32736
32736
  if (typeof nativeFetch == 'function') {
32737
- $$5({ global: true, enumerable: true, forced: true }, {
32737
+ $$6({ global: true, enumerable: true, forced: true }, {
32738
32738
  fetch: function fetch(input /* , init */) {
32739
32739
  return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
32740
32740
  }
@@ -32750,7 +32750,7 @@ this.Twilio.Conversations = (function (exports) {
32750
32750
  RequestPrototype.constructor = RequestConstructor;
32751
32751
  RequestConstructor.prototype = RequestPrototype;
32752
32752
 
32753
- $$5({ global: true, forced: true }, {
32753
+ $$6({ global: true, forced: true }, {
32754
32754
  Request: RequestConstructor
32755
32755
  });
32756
32756
  }
@@ -32763,7 +32763,7 @@ this.Twilio.Conversations = (function (exports) {
32763
32763
 
32764
32764
  // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
32765
32765
 
32766
- var $$4 = _export;
32766
+ var $$5 = _export;
32767
32767
  var DESCRIPTORS = descriptors;
32768
32768
  var USE_NATIVE_URL = nativeUrl;
32769
32769
  var global$2 = global$D;
@@ -33764,7 +33764,7 @@ this.Twilio.Conversations = (function (exports) {
33764
33764
 
33765
33765
  setToStringTag(URLConstructor, 'URL');
33766
33766
 
33767
- $$4({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
33767
+ $$5({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
33768
33768
  URL: URLConstructor
33769
33769
  });
33770
33770
 
@@ -34850,7 +34850,7 @@ this.Twilio.Conversations = (function (exports) {
34850
34850
  return Network;
34851
34851
  }();
34852
34852
 
34853
- var version = "0.6.3";
34853
+ var version = "0.6.4-rc.0";
34854
34854
 
34855
34855
  var _class;
34856
34856
 
@@ -35239,7 +35239,7 @@ this.Twilio.Conversations = (function (exports) {
35239
35239
  return (k < 0 || k >= len) ? undefined : O[k];
35240
35240
  });
35241
35241
 
35242
- var $$3 = _export;
35242
+ var $$4 = _export;
35243
35243
  var global$1 = global$D;
35244
35244
  var arrayBufferModule = arrayBuffer;
35245
35245
  var setSpecies = setSpecies$4;
@@ -35250,7 +35250,7 @@ this.Twilio.Conversations = (function (exports) {
35250
35250
 
35251
35251
  // `ArrayBuffer` constructor
35252
35252
  // https://tc39.es/ecma262/#sec-arraybuffer-constructor
35253
- $$3({ global: true, forced: NativeArrayBuffer !== ArrayBuffer$1 }, {
35253
+ $$4({ global: true, forced: NativeArrayBuffer !== ArrayBuffer$1 }, {
35254
35254
  ArrayBuffer: ArrayBuffer$1
35255
35255
  });
35256
35256
 
@@ -36096,12 +36096,12 @@ this.Twilio.Conversations = (function (exports) {
36096
36096
  * @property {Participant#UpdateReason[]} updateReasons - Array of Participant's updated event reasons
36097
36097
  */
36098
36098
 
36099
- var $$2 = _export;
36099
+ var $$3 = _export;
36100
36100
  var aFunction = aFunction$9;
36101
36101
  var toObject = toObject$g;
36102
36102
  var toLength = toLength$o;
36103
36103
  var toString$1 = toString$d;
36104
- var fails = fails$A;
36104
+ var fails$1 = fails$B;
36105
36105
  var internalSort = arraySort;
36106
36106
  var arrayMethodIsStrict = arrayMethodIsStrict$5;
36107
36107
  var FF = engineFfVersion;
@@ -36113,17 +36113,17 @@ this.Twilio.Conversations = (function (exports) {
36113
36113
  var nativeSort = test.sort;
36114
36114
 
36115
36115
  // IE8-
36116
- var FAILS_ON_UNDEFINED = fails(function () {
36116
+ var FAILS_ON_UNDEFINED = fails$1(function () {
36117
36117
  test.sort(undefined);
36118
36118
  });
36119
36119
  // V8 bug
36120
- var FAILS_ON_NULL = fails(function () {
36120
+ var FAILS_ON_NULL = fails$1(function () {
36121
36121
  test.sort(null);
36122
36122
  });
36123
36123
  // Old WebKit
36124
36124
  var STRICT_METHOD = arrayMethodIsStrict('sort');
36125
36125
 
36126
- var STABLE_SORT = !fails(function () {
36126
+ var STABLE_SORT = !fails$1(function () {
36127
36127
  // feature detection can be too slow, so check engines versions
36128
36128
  if (V8) return V8 < 70;
36129
36129
  if (FF && FF > 3) return;
@@ -36171,7 +36171,7 @@ this.Twilio.Conversations = (function (exports) {
36171
36171
 
36172
36172
  // `Array.prototype.sort` method
36173
36173
  // https://tc39.es/ecma262/#sec-array.prototype.sort
36174
- $$2({ target: 'Array', proto: true, forced: FORCED }, {
36174
+ $$3({ target: 'Array', proto: true, forced: FORCED }, {
36175
36175
  sort: function sort(comparefn) {
36176
36176
  if (comparefn !== undefined) aFunction(comparefn);
36177
36177
 
@@ -36198,7 +36198,7 @@ this.Twilio.Conversations = (function (exports) {
36198
36198
  }
36199
36199
  });
36200
36200
 
36201
- var $$1 = _export;
36201
+ var $$2 = _export;
36202
36202
  var notARegExp = notARegexp;
36203
36203
  var requireObjectCoercible = requireObjectCoercible$a;
36204
36204
  var toString = toString$d;
@@ -36206,7 +36206,7 @@ this.Twilio.Conversations = (function (exports) {
36206
36206
 
36207
36207
  // `String.prototype.includes` method
36208
36208
  // https://tc39.es/ecma262/#sec-string.prototype.includes
36209
- $$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
36209
+ $$2({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
36210
36210
  includes: function includes(searchString /* , position = 0 */) {
36211
36211
  return !!~toString(requireObjectCoercible(this))
36212
36212
  .indexOf(toString(notARegExp(searchString)), arguments.length > 1 ? arguments[1] : undefined);
@@ -36738,9 +36738,247 @@ this.Twilio.Conversations = (function (exports) {
36738
36738
  var deprecated_1 = browser.deprecated = deprecated;
36739
36739
  var deprecationWarning_1 = browser.deprecationWarning = deprecationWarning;
36740
36740
 
36741
- function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
36741
+ var collectActions = function collectActions(actions) {
36742
+ return actions.map(function (action) {
36743
+ var _action$id, _action$index, _action$phone, _action$url;
36742
36744
 
36743
- function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty$3(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
36745
+ var rawData = JSON.stringify(action);
36746
+
36747
+ switch (action.type) {
36748
+ case "QUICK_REPLY":
36749
+ return {
36750
+ type: "reply",
36751
+ title: action.title,
36752
+ id: (_action$id = action.id) !== null && _action$id !== void 0 ? _action$id : "",
36753
+ index: (_action$index = action.index) !== null && _action$index !== void 0 ? _action$index : 0,
36754
+ rawData: rawData
36755
+ };
36756
+
36757
+ case "PHONE_NUMBER":
36758
+ return {
36759
+ type: "phone",
36760
+ title: action.title,
36761
+ phone: (_action$phone = action.phone) !== null && _action$phone !== void 0 ? _action$phone : "",
36762
+ rawData: rawData
36763
+ };
36764
+
36765
+ case "URL":
36766
+ return {
36767
+ type: "url",
36768
+ title: action.title,
36769
+ url: (_action$url = action.url) !== null && _action$url !== void 0 ? _action$url : "",
36770
+ rawData: rawData
36771
+ };
36772
+
36773
+ default:
36774
+ return {
36775
+ type: "other",
36776
+ rawData: rawData
36777
+ };
36778
+ }
36779
+ });
36780
+ };
36781
+
36782
+ var parseVariant = function parseVariant(type, data) {
36783
+ var rawData = JSON.stringify(data);
36784
+
36785
+ switch (type) {
36786
+ case "twilio/text":
36787
+ {
36788
+ var variant = data;
36789
+ return {
36790
+ type: "text",
36791
+ body: variant.body,
36792
+ rawData: rawData
36793
+ };
36794
+ }
36795
+
36796
+ case "twilio/media":
36797
+ {
36798
+ var _variant = data;
36799
+ return {
36800
+ type: "media",
36801
+ body: _variant.body,
36802
+ media: _variant.media,
36803
+ rawData: rawData
36804
+ };
36805
+ }
36806
+
36807
+ case "twilio/location":
36808
+ {
36809
+ var _variant2 = data;
36810
+ return {
36811
+ type: "location",
36812
+ longitude: _variant2.longitude,
36813
+ latitude: _variant2.latitude,
36814
+ label: _variant2.label,
36815
+ rawData: rawData
36816
+ };
36817
+ }
36818
+
36819
+ case "twilio/quick-reply":
36820
+ {
36821
+ var _variant3 = data;
36822
+ return {
36823
+ type: "quickReply",
36824
+ body: _variant3.body,
36825
+ replies: _variant3.actions,
36826
+ rawData: rawData
36827
+ };
36828
+ }
36829
+
36830
+ case "twilio/call-to-action":
36831
+ {
36832
+ var _variant4 = data;
36833
+ return {
36834
+ type: "callToAction",
36835
+ body: _variant4.body,
36836
+ actions: collectActions(_variant4.actions),
36837
+ rawData: rawData
36838
+ };
36839
+ }
36840
+
36841
+ case "twilio/list-picker":
36842
+ {
36843
+ var _variant5 = data;
36844
+ return {
36845
+ type: "listPicker",
36846
+ body: _variant5.body,
36847
+ button: _variant5.button,
36848
+ items: _variant5.items,
36849
+ rawData: rawData
36850
+ };
36851
+ }
36852
+
36853
+ case "twilio/card":
36854
+ {
36855
+ var _variant6$media, _variant6$actions;
36856
+
36857
+ var _variant6 = data;
36858
+ return {
36859
+ type: "card",
36860
+ title: _variant6.title,
36861
+ subtitle: _variant6.subtitle,
36862
+ media: (_variant6$media = _variant6.media) !== null && _variant6$media !== void 0 ? _variant6$media : [],
36863
+ actions: collectActions((_variant6$actions = _variant6.actions) !== null && _variant6$actions !== void 0 ? _variant6$actions : []),
36864
+ rawData: rawData
36865
+ };
36866
+ }
36867
+
36868
+ default:
36869
+ return {
36870
+ type: "other",
36871
+ rawData: rawData
36872
+ };
36873
+ }
36874
+ };
36875
+
36876
+ var collectVariants = function collectVariants(variants) {
36877
+ var variantsMap = new Map();
36878
+
36879
+ for (var _i = 0, _Object$entries = Object.entries(variants); _i < _Object$entries.length; _i++) {
36880
+ var _Object$entries$_i = _slicedToArray$1(_Object$entries[_i], 2),
36881
+ key = _Object$entries$_i[0],
36882
+ value = _Object$entries$_i[1];
36883
+
36884
+ variantsMap.set(key, parseVariant(key, value));
36885
+ }
36886
+
36887
+ return variantsMap;
36888
+ };
36889
+ /**
36890
+ * Represents a variable for a content template. See
36891
+ * {@link ContentTemplate.variables}.
36892
+ */
36893
+
36894
+
36895
+ var ContentTemplateVariable = /*#__PURE__*/function () {
36896
+ function ContentTemplateVariable(
36897
+ /**
36898
+ * Name of the variable.
36899
+ */
36900
+ name,
36901
+ /**
36902
+ * Key of the variable
36903
+ */
36904
+ value) {
36905
+ _classCallCheck$4(this, ContentTemplateVariable);
36906
+
36907
+ this.name = name;
36908
+ this.value = value;
36909
+ }
36910
+ /**
36911
+ * Copies the variable with a new value.
36912
+ *
36913
+ * @param value The new value for the variable.
36914
+ */
36915
+
36916
+
36917
+ _createClass$4(ContentTemplateVariable, [{
36918
+ key: "copyWithValue",
36919
+ value: function copyWithValue(value) {
36920
+ return new ContentTemplateVariable(this.name, value);
36921
+ }
36922
+ }]);
36923
+
36924
+ return ContentTemplateVariable;
36925
+ }();
36926
+ /**
36927
+ * A rich content template.
36928
+ *
36929
+ * Use {@Link Client.getContentTemplates} to request all the templates available
36930
+ * for the current account.
36931
+ */
36932
+
36933
+
36934
+ var ContentTemplate = /*#__PURE__*/_createClass$4(
36935
+ /**
36936
+ * The server-assigned unique identifier for the template.
36937
+ */
36938
+
36939
+ /**
36940
+ * Friendly name used to describe the content. Not visible to the recipient.
36941
+ */
36942
+
36943
+ /**
36944
+ * Variables used by this template.
36945
+ */
36946
+
36947
+ /**
36948
+ * Variants of the content. See @{link ContentData}.
36949
+ */
36950
+
36951
+ /**
36952
+ * Date of creation.
36953
+ */
36954
+
36955
+ /**
36956
+ * Date of the last update.
36957
+ */
36958
+
36959
+ /**
36960
+ * @internal
36961
+ */
36962
+ function ContentTemplate(contentTemplateResponse) {
36963
+ _classCallCheck$4(this, ContentTemplate);
36964
+
36965
+ this.sid = contentTemplateResponse.sid;
36966
+ this.friendlyName = contentTemplateResponse.friendly_name;
36967
+ this.variables = Object.entries(JSON.parse(contentTemplateResponse.variables)).map(function (_ref) {
36968
+ var _ref2 = _slicedToArray$1(_ref, 2),
36969
+ key = _ref2[0],
36970
+ value = _ref2[1];
36971
+
36972
+ return new ContentTemplateVariable(key, value);
36973
+ });
36974
+ this.variants = collectVariants(contentTemplateResponse.variants);
36975
+ this.dateCreated = new Date(contentTemplateResponse.date_created);
36976
+ this.dateUpdated = new Date(contentTemplateResponse.date_updated);
36977
+ });
36978
+
36979
+ function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
36980
+
36981
+ function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty$3(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
36744
36982
 
36745
36983
  function _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf$4(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$4(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$4(this, result); }; }
36746
36984
 
@@ -36779,6 +37017,7 @@ this.Twilio.Conversations = (function (exports) {
36779
37017
  index: index,
36780
37018
  author: data.author,
36781
37019
  subject: data.subject,
37020
+ contentSid: data.contentSid,
36782
37021
  body: (_data$text = data.text) !== null && _data$text !== void 0 ? _data$text : null,
36783
37022
  timestamp: data.timestamp ? new Date(data.timestamp) : null,
36784
37023
  dateUpdated: data.dateUpdated ? new Date(data.dateUpdated) : null,
@@ -36788,7 +37027,7 @@ this.Twilio.Conversations = (function (exports) {
36788
37027
  media: data.type === "media" && data.media ? new Media(data.media, _this.services) : null,
36789
37028
  medias: data.type === "media" && data.medias ? data.medias.map(function (m) {
36790
37029
  return new Media(m, _this.services);
36791
- }) : data.type === "media" && data.media && !data.medias ? [new Media(_objectSpread$3(_objectSpread$3({}, data.media), {}, {
37030
+ }) : data.type === "media" && data.media && !data.medias ? [new Media(_objectSpread$4(_objectSpread$4({}, data.media), {}, {
36792
37031
  category: "media"
36793
37032
  }), _this.services)] : null,
36794
37033
  participantSid: (_data$memberSid = data.memberSid) !== null && _data$memberSid !== void 0 ? _data$memberSid : null,
@@ -36833,6 +37072,15 @@ this.Twilio.Conversations = (function (exports) {
36833
37072
  get: function get() {
36834
37073
  return this.state.subject;
36835
37074
  }
37075
+ /**
37076
+ * Unique identifier of {@link ContentTemplate} for this message.
37077
+ */
37078
+
37079
+ }, {
37080
+ key: "contentSid",
37081
+ get: function get() {
37082
+ return this.state.contentSid;
37083
+ }
36836
37084
  /**
36837
37085
  * Body of the message.
36838
37086
  */
@@ -37494,6 +37742,137 @@ this.Twilio.Conversations = (function (exports) {
37494
37742
 
37495
37743
  return _getDetailedDeliveryReceiptsPaginator;
37496
37744
  }()
37745
+ /**
37746
+ * Get the {@link ContentData} for this message. Resolves to `null` when
37747
+ * {@link Message.contentSid} is null.
37748
+ */
37749
+
37750
+ }, {
37751
+ key: "getContentData",
37752
+ value: function getContentData() {
37753
+ var _this6 = this;
37754
+
37755
+ return new browser$1.CancellablePromise( /*#__PURE__*/function () {
37756
+ var _ref2 = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee9(resolve, reject, onCancel) {
37757
+ var bodies, twilioPrefix, filteredMedias, contentMedia, urlPromise, url, abortController, responsePromise, json, response, blob, text, dataType;
37758
+ return _regeneratorRuntime$1.wrap(function _callee9$(_context9) {
37759
+ while (1) {
37760
+ switch (_context9.prev = _context9.next) {
37761
+ case 0:
37762
+ if (!(_this6.state.contentSid === null)) {
37763
+ _context9.next = 3;
37764
+ break;
37765
+ }
37766
+
37767
+ resolve(null);
37768
+ return _context9.abrupt("return");
37769
+
37770
+ case 3:
37771
+ bodies = _this6.getMediaByCategories(["body"]);
37772
+
37773
+ if (!(bodies === null)) {
37774
+ _context9.next = 7;
37775
+ break;
37776
+ }
37777
+
37778
+ resolve(null);
37779
+ return _context9.abrupt("return");
37780
+
37781
+ case 7:
37782
+ twilioPrefix = "application/x-vnd.com.twilio.rich.";
37783
+ filteredMedias = bodies.filter(function (media) {
37784
+ return media.contentType.startsWith(twilioPrefix);
37785
+ });
37786
+
37787
+ if (!(filteredMedias.length === 0)) {
37788
+ _context9.next = 12;
37789
+ break;
37790
+ }
37791
+
37792
+ resolve(null);
37793
+ return _context9.abrupt("return");
37794
+
37795
+ case 12:
37796
+ contentMedia = filteredMedias[0];
37797
+ urlPromise = contentMedia.getContentTemporaryUrl();
37798
+ onCancel(function () {
37799
+ urlPromise.cancel();
37800
+ });
37801
+ _context9.prev = 15;
37802
+ _context9.next = 18;
37803
+ return urlPromise;
37804
+
37805
+ case 18:
37806
+ url = _context9.sent;
37807
+ _context9.next = 25;
37808
+ break;
37809
+
37810
+ case 21:
37811
+ _context9.prev = 21;
37812
+ _context9.t0 = _context9["catch"](15);
37813
+ reject(_context9.t0);
37814
+ return _context9.abrupt("return");
37815
+
37816
+ case 25:
37817
+ if (!(url === null)) {
37818
+ _context9.next = 28;
37819
+ break;
37820
+ }
37821
+
37822
+ resolve(null);
37823
+ return _context9.abrupt("return");
37824
+
37825
+ case 28:
37826
+ abortController = new AbortController();
37827
+ responsePromise = fetch(url, {
37828
+ signal: abortController.signal
37829
+ });
37830
+ onCancel(function () {
37831
+ abortController.abort();
37832
+ });
37833
+ _context9.prev = 31;
37834
+ _context9.next = 34;
37835
+ return responsePromise;
37836
+
37837
+ case 34:
37838
+ response = _context9.sent;
37839
+ _context9.next = 37;
37840
+ return response.blob();
37841
+
37842
+ case 37:
37843
+ blob = _context9.sent;
37844
+ _context9.next = 40;
37845
+ return blob.text();
37846
+
37847
+ case 40:
37848
+ text = _context9.sent;
37849
+ json = JSON.parse(text);
37850
+ _context9.next = 48;
37851
+ break;
37852
+
37853
+ case 44:
37854
+ _context9.prev = 44;
37855
+ _context9.t1 = _context9["catch"](31);
37856
+ reject(_context9.t1);
37857
+ return _context9.abrupt("return");
37858
+
37859
+ case 48:
37860
+ dataType = contentMedia.contentType.replace(twilioPrefix, "").replace(".", "/");
37861
+ resolve(parseVariant(dataType, json.data));
37862
+
37863
+ case 50:
37864
+ case "end":
37865
+ return _context9.stop();
37866
+ }
37867
+ }
37868
+ }, _callee9, null, [[15, 21], [31, 44]]);
37869
+ }));
37870
+
37871
+ return function (_x8, _x9, _x10) {
37872
+ return _ref2.apply(this, arguments);
37873
+ };
37874
+ }());
37875
+ }
37497
37876
  }]);
37498
37877
 
37499
37878
  return Message;
@@ -37517,6 +37896,10 @@ this.Twilio.Conversations = (function (exports) {
37517
37896
 
37518
37897
  __decorate$1([validateTypesAsync_1(nonEmptyArray_1("strings", "string")), __metadata$1("design:type", Function), __metadata$1("design:paramtypes", [Array]), __metadata$1("design:returntype", browser$1.CancellablePromise)], Message.prototype, "getTemporaryContentUrlsForMediaSids", null);
37519
37898
 
37899
+ function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
37900
+
37901
+ function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty$3(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
37902
+
37520
37903
  function _createForOfIteratorHelper$2(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
37521
37904
 
37522
37905
  function _unsupportedIterableToArray$2(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$2(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen); }
@@ -37791,7 +38174,11 @@ this.Twilio.Conversations = (function (exports) {
37791
38174
  media_sids: media.map(function (m) {
37792
38175
  return m.sid;
37793
38176
  }),
37794
- attributes: typeof message.attributes !== "undefined" ? JSON.stringify(message.attributes) : undefined
38177
+ attributes: typeof message.attributes !== "undefined" ? JSON.stringify(message.attributes) : undefined,
38178
+ content_sid: message.contentSid,
38179
+ content_variables: typeof message.contentVariables !== "undefined" ? JSON.stringify(message.contentVariables.reduce(function (accum, current) {
38180
+ return _objectSpread$3(_objectSpread$3({}, accum), {}, _defineProperty$3({}, current.name, current.value));
38181
+ }, {})) : undefined
37795
38182
  });
37796
38183
  _context3.prev = 34;
37797
38184
  _context3.t4 = resolve;
@@ -38262,6 +38649,29 @@ this.Twilio.Conversations = (function (exports) {
38262
38649
  this.emailHistories.set(contentType, history);
38263
38650
  return this;
38264
38651
  }
38652
+ /**
38653
+ * Adds {@link ContentTemplate} SID for the message alongside optional
38654
+ * variables. When no variables provided, the default values will be used.
38655
+ *
38656
+ * Adding the content SID converts the message to a rich message. In this
38657
+ * case, other fields are ignored and the message is sent using the content
38658
+ * from the the {@link ContentTemplate}.
38659
+ *
38660
+ * Use {@link Client.getContentTemplates} to request all available
38661
+ * {@link ContentTemplate}s.
38662
+ *
38663
+ * @param contentSid SID of the {@link ContentTemplate}
38664
+ * @param variables Custom variables to resolve the template.
38665
+ */
38666
+
38667
+ }, {
38668
+ key: "setContentTemplate",
38669
+ value: function setContentTemplate(contentSid) {
38670
+ var contentVariables = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
38671
+ this.message.contentSid = contentSid;
38672
+ this.message.contentVariables = contentVariables;
38673
+ return this;
38674
+ }
38265
38675
  /**
38266
38676
  * Adds media to the message.
38267
38677
  * @param payload Media to add.
@@ -41063,7 +41473,7 @@ this.Twilio.Conversations = (function (exports) {
41063
41473
  return Conversations;
41064
41474
  }(ReplayEventEmitter_1);
41065
41475
 
41066
- var $ = _export;
41476
+ var $$1 = _export;
41067
41477
  var $find = arrayIteration.find;
41068
41478
  var addToUnscopables = addToUnscopables$3;
41069
41479
 
@@ -41075,7 +41485,7 @@ this.Twilio.Conversations = (function (exports) {
41075
41485
 
41076
41486
  // `Array.prototype.find` method
41077
41487
  // https://tc39.es/ecma262/#sec-array.prototype.find
41078
- $({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
41488
+ $$1({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
41079
41489
  find: function find(callbackfn /* , that = undefined */) {
41080
41490
  return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
41081
41491
  }
@@ -41541,7 +41951,7 @@ this.Twilio.Conversations = (function (exports) {
41541
41951
  this.data = data.data || {};
41542
41952
  });
41543
41953
 
41544
- var version = "2.2.2";
41954
+ var version = "2.3.0-rc.0";
41545
41955
 
41546
41956
  function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
41547
41957
 
@@ -41744,6 +42154,153 @@ this.Twilio.Conversations = (function (exports) {
41744
42154
  return CommandExecutor;
41745
42155
  }();
41746
42156
 
42157
+ var $ = _export;
42158
+ var FREEZING = freezing;
42159
+ var fails = fails$B;
42160
+ var isObject = isObject$p;
42161
+ var onFreeze = internalMetadata.exports.onFreeze;
42162
+
42163
+ // eslint-disable-next-line es/no-object-freeze -- safe
42164
+ var $freeze = Object.freeze;
42165
+ var FAILS_ON_PRIMITIVES = fails(function () { $freeze(1); });
42166
+
42167
+ // `Object.freeze` method
42168
+ // https://tc39.es/ecma262/#sec-object.freeze
42169
+ $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {
42170
+ freeze: function freeze(it) {
42171
+ return $freeze && isObject(it) ? $freeze(onFreeze(it)) : it;
42172
+ }
42173
+ });
42174
+
42175
+ var ContentClient = /*#__PURE__*/function () {
42176
+ function ContentClient(_services) {
42177
+ var _pageSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100;
42178
+
42179
+ var _cacheTtlMs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 5000;
42180
+
42181
+ _classCallCheck$4(this, ContentClient);
42182
+
42183
+ _defineProperty$3(this, "_cachedTemplates", null);
42184
+
42185
+ this._services = _services;
42186
+ this._pageSize = _pageSize;
42187
+ this._cacheTtlMs = _cacheTtlMs;
42188
+ }
42189
+
42190
+ _createClass$4(ContentClient, [{
42191
+ key: "getContentTemplates",
42192
+ value: function () {
42193
+ var _getContentTemplates = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee() {
42194
+ var _this = this;
42195
+
42196
+ var _yield$this$_fetchCon, _yield$this$_fetchCon2, templatesPage, nextToken, templates, _yield$this$_fetchCon3, _yield$this$_fetchCon4;
42197
+
42198
+ return _regeneratorRuntime$1.wrap(function _callee$(_context) {
42199
+ while (1) {
42200
+ switch (_context.prev = _context.next) {
42201
+ case 0:
42202
+ if (!(this._cachedTemplates !== null)) {
42203
+ _context.next = 2;
42204
+ break;
42205
+ }
42206
+
42207
+ return _context.abrupt("return", this._cachedTemplates);
42208
+
42209
+ case 2:
42210
+ _context.next = 4;
42211
+ return this._fetchContentTemplates();
42212
+
42213
+ case 4:
42214
+ _yield$this$_fetchCon = _context.sent;
42215
+ _yield$this$_fetchCon2 = _slicedToArray$1(_yield$this$_fetchCon, 2);
42216
+ templatesPage = _yield$this$_fetchCon2[0];
42217
+ nextToken = _yield$this$_fetchCon2[1];
42218
+ templates = templatesPage;
42219
+
42220
+ case 9:
42221
+ if (!(nextToken !== null)) {
42222
+ _context.next = 19;
42223
+ break;
42224
+ }
42225
+
42226
+ _context.next = 12;
42227
+ return this._fetchContentTemplates(nextToken);
42228
+
42229
+ case 12:
42230
+ _yield$this$_fetchCon3 = _context.sent;
42231
+ _yield$this$_fetchCon4 = _slicedToArray$1(_yield$this$_fetchCon3, 2);
42232
+ templatesPage = _yield$this$_fetchCon4[0];
42233
+ nextToken = _yield$this$_fetchCon4[1];
42234
+ templates = [].concat(_toConsumableArray(templates), _toConsumableArray(templatesPage));
42235
+ _context.next = 9;
42236
+ break;
42237
+
42238
+ case 19:
42239
+ this._cachedTemplates = Object.freeze(templates);
42240
+ setTimeout(function () {
42241
+ _this._cachedTemplates = null;
42242
+ }, this._cacheTtlMs);
42243
+ return _context.abrupt("return", templates);
42244
+
42245
+ case 22:
42246
+ case "end":
42247
+ return _context.stop();
42248
+ }
42249
+ }
42250
+ }, _callee, this);
42251
+ }));
42252
+
42253
+ function getContentTemplates() {
42254
+ return _getContentTemplates.apply(this, arguments);
42255
+ }
42256
+
42257
+ return getContentTemplates;
42258
+ }()
42259
+ }, {
42260
+ key: "_fetchContentTemplates",
42261
+ value: function () {
42262
+ var _fetchContentTemplates2 = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee2(pageToken) {
42263
+ var contentTemplatesUrl, url, response;
42264
+ return _regeneratorRuntime$1.wrap(function _callee2$(_context2) {
42265
+ while (1) {
42266
+ switch (_context2.prev = _context2.next) {
42267
+ case 0:
42268
+ contentTemplatesUrl = "Client/v2/ContentTemplates";
42269
+ url = new UriBuilder$1(contentTemplatesUrl);
42270
+ url.arg("PageSize", this._pageSize);
42271
+
42272
+ if (pageToken !== undefined) {
42273
+ url.arg("PageToken", pageToken);
42274
+ }
42275
+
42276
+ _context2.next = 6;
42277
+ return this._services.commandExecutor.fetchResource(url.build());
42278
+
42279
+ case 6:
42280
+ response = _context2.sent;
42281
+ return _context2.abrupt("return", [response.templates.map(function (template) {
42282
+ return new ContentTemplate(template);
42283
+ }), response.meta.next_token]);
42284
+
42285
+ case 8:
42286
+ case "end":
42287
+ return _context2.stop();
42288
+ }
42289
+ }
42290
+ }, _callee2, this);
42291
+ }));
42292
+
42293
+ function _fetchContentTemplates(_x) {
42294
+ return _fetchContentTemplates2.apply(this, arguments);
42295
+ }
42296
+
42297
+ return _fetchContentTemplates;
42298
+ }()
42299
+ }]);
42300
+
42301
+ return ContentClient;
42302
+ }();
42303
+
41747
42304
  var _class;
41748
42305
 
41749
42306
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -42133,6 +42690,7 @@ this.Twilio.Conversations = (function (exports) {
42133
42690
  _this._services.commandExecutor = new CommandExecutor(baseUrl, {
42134
42691
  transport: _this._options.transport
42135
42692
  }, productId);
42693
+ _this._services.contentClient = new ContentClient(_this._services);
42136
42694
 
42137
42695
  var emitFailed = function emitFailed(error) {
42138
42696
  _this._rejectEnsureReady(error);
@@ -42905,6 +43463,43 @@ this.Twilio.Conversations = (function (exports) {
42905
43463
  });
42906
43464
  return this.getTemporaryContentUrlsForMediaSids(sids);
42907
43465
  }
43466
+ /**
43467
+ * Returns rich content templates belonging to the account. Rich content
43468
+ * templates can be created via the Twilio console or the REST API.
43469
+ */
43470
+
43471
+ }, {
43472
+ key: "getContentTemplates",
43473
+ value: function () {
43474
+ var _getContentTemplates = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee16() {
43475
+ return _regeneratorRuntime$1.wrap(function _callee16$(_context16) {
43476
+ while (1) {
43477
+ switch (_context16.prev = _context16.next) {
43478
+ case 0:
43479
+ _context16.next = 2;
43480
+ return this._ensureReady;
43481
+
43482
+ case 2:
43483
+ _context16.next = 4;
43484
+ return this._services.contentClient.getContentTemplates();
43485
+
43486
+ case 4:
43487
+ return _context16.abrupt("return", _context16.sent);
43488
+
43489
+ case 5:
43490
+ case "end":
43491
+ return _context16.stop();
43492
+ }
43493
+ }
43494
+ }, _callee16, this);
43495
+ }));
43496
+
43497
+ function getContentTemplates() {
43498
+ return _getContentTemplates.apply(this, arguments);
43499
+ }
43500
+
43501
+ return getContentTemplates;
43502
+ }()
42908
43503
  /**
42909
43504
  * Initialize the client.
42910
43505
  */
@@ -42912,19 +43507,19 @@ this.Twilio.Conversations = (function (exports) {
42912
43507
  }, {
42913
43508
  key: "_initialize",
42914
43509
  value: function () {
42915
- var _initialize2 = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee16() {
43510
+ var _initialize2 = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee17() {
42916
43511
  var _this3 = this;
42917
43512
 
42918
43513
  var configurationResponse;
42919
- return _regeneratorRuntime$1.wrap(function _callee16$(_context16) {
43514
+ return _regeneratorRuntime$1.wrap(function _callee17$(_context17) {
42920
43515
  while (1) {
42921
- switch (_context16.prev = _context16.next) {
43516
+ switch (_context17.prev = _context17.next) {
42922
43517
  case 0:
42923
- _context16.next = 2;
43518
+ _context17.next = 2;
42924
43519
  return this._services.commandExecutor.fetchResource("Client/v2/Configuration");
42925
43520
 
42926
43521
  case 2:
42927
- configurationResponse = _context16.sent;
43522
+ configurationResponse = _context17.sent;
42928
43523
  this._configuration = new Configuration$1(this._options, configurationResponse, Client_1._logger);
42929
43524
 
42930
43525
  this._myself._resolveInitialization(this._configuration, this._configuration.userIdentity, this._configuration.userInfo, true);
@@ -43004,7 +43599,7 @@ this.Twilio.Conversations = (function (exports) {
43004
43599
  }).catch(function (error) {
43005
43600
  throw error;
43006
43601
  });
43007
- _context16.next = 28;
43602
+ _context17.next = 28;
43008
43603
  return this._services.users.myself._ensureFetched();
43009
43604
 
43010
43605
  case 28:
@@ -43025,10 +43620,10 @@ this.Twilio.Conversations = (function (exports) {
43025
43620
 
43026
43621
  case 34:
43027
43622
  case "end":
43028
- return _context16.stop();
43623
+ return _context17.stop();
43029
43624
  }
43030
43625
  }
43031
- }, _callee16, this);
43626
+ }, _callee17, this);
43032
43627
  }));
43033
43628
 
43034
43629
  function _initialize() {
@@ -43068,14 +43663,14 @@ this.Twilio.Conversations = (function (exports) {
43068
43663
  }], [{
43069
43664
  key: "create",
43070
43665
  value: function () {
43071
- var _create = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee17(token, options) {
43666
+ var _create = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee18(token, options) {
43072
43667
  var client;
43073
- return _regeneratorRuntime$1.wrap(function _callee17$(_context17) {
43668
+ return _regeneratorRuntime$1.wrap(function _callee18$(_context18) {
43074
43669
  while (1) {
43075
- switch (_context17.prev = _context17.next) {
43670
+ switch (_context18.prev = _context18.next) {
43076
43671
  case 0:
43077
43672
  if (!(options !== null && options !== void 0 && options.twilsockClient)) {
43078
- _context17.next = 2;
43673
+ _context18.next = 2;
43079
43674
  break;
43080
43675
  }
43081
43676
 
@@ -43083,18 +43678,18 @@ this.Twilio.Conversations = (function (exports) {
43083
43678
 
43084
43679
  case 2:
43085
43680
  client = new Client_1(token, options);
43086
- _context17.next = 5;
43681
+ _context18.next = 5;
43087
43682
  return client._ensureReady;
43088
43683
 
43089
43684
  case 5:
43090
- return _context17.abrupt("return", client);
43685
+ return _context18.abrupt("return", client);
43091
43686
 
43092
43687
  case 6:
43093
43688
  case "end":
43094
- return _context17.stop();
43689
+ return _context18.stop();
43095
43690
  }
43096
43691
  }
43097
- }, _callee17);
43692
+ }, _callee18);
43098
43693
  }));
43099
43694
 
43100
43695
  function create(_x16, _x17) {
@@ -43275,6 +43870,8 @@ this.Twilio.Conversations = (function (exports) {
43275
43870
 
43276
43871
  exports.AggregatedDeliveryReceipt = AggregatedDeliveryReceipt;
43277
43872
  exports.CancellablePromise = browser$1.CancellablePromise;
43873
+ exports.ContentTemplate = ContentTemplate;
43874
+ exports.ContentTemplateVariable = ContentTemplateVariable;
43278
43875
  exports.Conversation = Conversation;
43279
43876
  exports.DetailedDeliveryReceipt = DetailedDeliveryReceipt;
43280
43877
  exports.Media = Media;