@bigbinary/neeto-media-recorder 2.6.19 → 2.7.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.
package/index.js CHANGED
@@ -34,128 +34,116 @@ var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r
34
34
  var css = ".nrec-done-button{background-color:rgb(var(--neeto-ui-error-100));padding:8px 12px}.nrec-done-button:hover{box-shadow:0 0 0 3px rgba(var(--neeto-ui-error-500),15%)}body .neeto-ui-modal__wrapper .neeto-ui-btn--style-danger{background:rgb(var(--neeto-ui-error-500))}.nrec-media-upload-progress{margin:0 auto;max-width:480px}.nrec-media-upload-error{color:rgb(var(--neeto-ui-error-500))}.nrec-media-upload-loader{background:#d9d9d9;border-radius:14px;display:inline-block;height:10px;margin:0 auto;max-width:480px;overflow:hidden;position:relative;width:100%}.nrec-media-upload-loader:after{animation:movementLoader 3s linear infinite,barAnimation 1.5s linear infinite;background-color:#fff;background-image:linear-gradient(45deg,#268e6c 25%,#12805c 0,#12805c 50%,#268e6c 0,#268e6c 75%,#12805c 0,#12805c);background-size:1em 1em;border-radius:14px;box-sizing:border-box;content:\"\";height:10px;left:0;position:absolute;top:0;width:230px}@media only screen and (max-width:767px){.nrec-media-upload-loader:after{width:130px}}@keyframes barAnimation{0%{background-position:1em 0}to{background-position:0 0}}@keyframes movementLoader{0%{left:0;transform:translateX(-100%)}to{left:100%;transform:translateX(0)}}";
35
35
  n(css,{});
36
36
 
37
- function _typeof$1(obj) {
37
+ function _typeof$1(o) {
38
38
  "@babel/helpers - typeof";
39
39
 
40
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
41
- return typeof obj;
42
- } : function (obj) {
43
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
44
- }, _typeof$1(obj);
40
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
41
+ return typeof o;
42
+ } : function (o) {
43
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
44
+ }, _typeof$1(o);
45
45
  }
46
46
 
47
- function _toPrimitive(input, hint) {
48
- if (_typeof$1(input) !== "object" || input === null) return input;
49
- var prim = input[Symbol.toPrimitive];
50
- if (prim !== undefined) {
51
- var res = prim.call(input, hint || "default");
52
- if (_typeof$1(res) !== "object") return res;
47
+ function toPrimitive(t, r) {
48
+ if ("object" != _typeof$1(t) || !t) return t;
49
+ var e = t[Symbol.toPrimitive];
50
+ if (void 0 !== e) {
51
+ var i = e.call(t, r || "default");
52
+ if ("object" != _typeof$1(i)) return i;
53
53
  throw new TypeError("@@toPrimitive must return a primitive value.");
54
54
  }
55
- return (hint === "string" ? String : Number)(input);
55
+ return ("string" === r ? String : Number)(t);
56
56
  }
57
57
 
58
- function _toPropertyKey(arg) {
59
- var key = _toPrimitive(arg, "string");
60
- return _typeof$1(key) === "symbol" ? key : String(key);
58
+ function toPropertyKey(t) {
59
+ var i = toPrimitive(t, "string");
60
+ return "symbol" == _typeof$1(i) ? i : i + "";
61
61
  }
62
62
 
63
- function _defineProperty(obj, key, value) {
64
- key = _toPropertyKey(key);
65
- if (key in obj) {
66
- Object.defineProperty(obj, key, {
67
- value: value,
68
- enumerable: true,
69
- configurable: true,
70
- writable: true
71
- });
72
- } else {
73
- obj[key] = value;
74
- }
75
- return obj;
63
+ function _defineProperty(e, r, t) {
64
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
65
+ value: t,
66
+ enumerable: !0,
67
+ configurable: !0,
68
+ writable: !0
69
+ }) : e[r] = t, e;
76
70
  }
77
71
 
78
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
72
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
79
73
  try {
80
- var info = gen[key](arg);
81
- var value = info.value;
82
- } catch (error) {
83
- reject(error);
84
- return;
85
- }
86
- if (info.done) {
87
- resolve(value);
88
- } else {
89
- Promise.resolve(value).then(_next, _throw);
74
+ var i = n[a](c),
75
+ u = i.value;
76
+ } catch (n) {
77
+ return void e(n);
90
78
  }
79
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
91
80
  }
92
- function _asyncToGenerator(fn) {
81
+ function _asyncToGenerator(n) {
93
82
  return function () {
94
- var self = this,
95
- args = arguments;
96
- return new Promise(function (resolve, reject) {
97
- var gen = fn.apply(self, args);
98
- function _next(value) {
99
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
83
+ var t = this,
84
+ e = arguments;
85
+ return new Promise(function (r, o) {
86
+ var a = n.apply(t, e);
87
+ function _next(n) {
88
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
100
89
  }
101
- function _throw(err) {
102
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
90
+ function _throw(n) {
91
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
103
92
  }
104
- _next(undefined);
93
+ _next(void 0);
105
94
  });
106
95
  };
107
96
  }
108
97
 
109
- function _arrayWithHoles(arr) {
110
- if (Array.isArray(arr)) return arr;
98
+ function _arrayWithHoles(r) {
99
+ if (Array.isArray(r)) return r;
111
100
  }
112
101
 
113
- function _iterableToArrayLimit(arr, i) {
114
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
115
- if (null != _i) {
116
- var _s,
117
- _e,
118
- _x,
119
- _r,
120
- _arr = [],
121
- _n = !0,
122
- _d = !1;
102
+ function _iterableToArrayLimit(r, l) {
103
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
104
+ if (null != t) {
105
+ var e,
106
+ n,
107
+ i,
108
+ u,
109
+ a = [],
110
+ f = !0,
111
+ o = !1;
123
112
  try {
124
- if (_x = (_i = _i.call(arr)).next, 0 === i) ; else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
125
- } catch (err) {
126
- _d = !0, _e = err;
113
+ if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
114
+ } catch (r) {
115
+ o = !0, n = r;
127
116
  } finally {
128
117
  try {
129
- if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
118
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
130
119
  } finally {
131
- if (_d) throw _e;
120
+ if (o) throw n;
132
121
  }
133
122
  }
134
- return _arr;
123
+ return a;
135
124
  }
136
125
  }
137
126
 
138
- function _arrayLikeToArray(arr, len) {
139
- if (len == null || len > arr.length) len = arr.length;
140
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
141
- return arr2;
127
+ function _arrayLikeToArray(r, a) {
128
+ (null == a || a > r.length) && (a = r.length);
129
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
130
+ return n;
142
131
  }
143
132
 
144
- function _unsupportedIterableToArray(o, minLen) {
145
- if (!o) return;
146
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
147
- var n = Object.prototype.toString.call(o).slice(8, -1);
148
- if (n === "Object" && o.constructor) n = o.constructor.name;
149
- if (n === "Map" || n === "Set") return Array.from(o);
150
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
133
+ function _unsupportedIterableToArray(r, a) {
134
+ if (r) {
135
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
136
+ var t = {}.toString.call(r).slice(8, -1);
137
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
138
+ }
151
139
  }
152
140
 
153
141
  function _nonIterableRest() {
154
142
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
155
143
  }
156
144
 
157
- function _slicedToArray(arr, i) {
158
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
145
+ function _slicedToArray(r, e) {
146
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
159
147
  }
160
148
 
161
149
  function getDefaultExportFromCjs (x) {
@@ -167,14 +155,14 @@ var regeneratorRuntime$1 = {exports: {}};
167
155
  var _typeof = {exports: {}};
168
156
 
169
157
  (function (module) {
170
- function _typeof(obj) {
158
+ function _typeof(o) {
171
159
  "@babel/helpers - typeof";
172
160
 
173
- return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
174
- return typeof obj;
175
- } : function (obj) {
176
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
177
- }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
161
+ return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
162
+ return typeof o;
163
+ } : function (o) {
164
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
165
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
178
166
  }
179
167
  module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
180
168
  } (_typeof));
@@ -185,304 +173,304 @@ var _typeofExports = _typeof.exports;
185
173
  var _typeof = _typeofExports["default"];
186
174
  function _regeneratorRuntime() {
187
175
  module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
188
- return exports;
176
+ return e;
189
177
  }, module.exports.__esModule = true, module.exports["default"] = module.exports;
190
- var exports = {},
191
- Op = Object.prototype,
192
- hasOwn = Op.hasOwnProperty,
193
- defineProperty = Object.defineProperty || function (obj, key, desc) {
194
- obj[key] = desc.value;
178
+ var t,
179
+ e = {},
180
+ r = Object.prototype,
181
+ n = r.hasOwnProperty,
182
+ o = Object.defineProperty || function (t, e, r) {
183
+ t[e] = r.value;
195
184
  },
196
- $Symbol = "function" == typeof Symbol ? Symbol : {},
197
- iteratorSymbol = $Symbol.iterator || "@@iterator",
198
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
199
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
200
- function define(obj, key, value) {
201
- return Object.defineProperty(obj, key, {
202
- value: value,
185
+ i = "function" == typeof Symbol ? Symbol : {},
186
+ a = i.iterator || "@@iterator",
187
+ c = i.asyncIterator || "@@asyncIterator",
188
+ u = i.toStringTag || "@@toStringTag";
189
+ function define(t, e, r) {
190
+ return Object.defineProperty(t, e, {
191
+ value: r,
203
192
  enumerable: !0,
204
193
  configurable: !0,
205
194
  writable: !0
206
- }), obj[key];
195
+ }), t[e];
207
196
  }
208
197
  try {
209
198
  define({}, "");
210
- } catch (err) {
211
- define = function define(obj, key, value) {
212
- return obj[key] = value;
199
+ } catch (t) {
200
+ define = function define(t, e, r) {
201
+ return t[e] = r;
213
202
  };
214
203
  }
215
- function wrap(innerFn, outerFn, self, tryLocsList) {
216
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
217
- generator = Object.create(protoGenerator.prototype),
218
- context = new Context(tryLocsList || []);
219
- return defineProperty(generator, "_invoke", {
220
- value: makeInvokeMethod(innerFn, self, context)
221
- }), generator;
204
+ function wrap(t, e, r, n) {
205
+ var i = e && e.prototype instanceof Generator ? e : Generator,
206
+ a = Object.create(i.prototype),
207
+ c = new Context(n || []);
208
+ return o(a, "_invoke", {
209
+ value: makeInvokeMethod(t, r, c)
210
+ }), a;
222
211
  }
223
- function tryCatch(fn, obj, arg) {
212
+ function tryCatch(t, e, r) {
224
213
  try {
225
214
  return {
226
215
  type: "normal",
227
- arg: fn.call(obj, arg)
216
+ arg: t.call(e, r)
228
217
  };
229
- } catch (err) {
218
+ } catch (t) {
230
219
  return {
231
220
  type: "throw",
232
- arg: err
221
+ arg: t
233
222
  };
234
223
  }
235
224
  }
236
- exports.wrap = wrap;
237
- var ContinueSentinel = {};
225
+ e.wrap = wrap;
226
+ var h = "suspendedStart",
227
+ l = "suspendedYield",
228
+ f = "executing",
229
+ s = "completed",
230
+ y = {};
238
231
  function Generator() {}
239
232
  function GeneratorFunction() {}
240
233
  function GeneratorFunctionPrototype() {}
241
- var IteratorPrototype = {};
242
- define(IteratorPrototype, iteratorSymbol, function () {
234
+ var p = {};
235
+ define(p, a, function () {
243
236
  return this;
244
237
  });
245
- var getProto = Object.getPrototypeOf,
246
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
247
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
248
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
249
- function defineIteratorMethods(prototype) {
250
- ["next", "throw", "return"].forEach(function (method) {
251
- define(prototype, method, function (arg) {
252
- return this._invoke(method, arg);
238
+ var d = Object.getPrototypeOf,
239
+ v = d && d(d(values([])));
240
+ v && v !== r && n.call(v, a) && (p = v);
241
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
242
+ function defineIteratorMethods(t) {
243
+ ["next", "throw", "return"].forEach(function (e) {
244
+ define(t, e, function (t) {
245
+ return this._invoke(e, t);
253
246
  });
254
247
  });
255
248
  }
256
- function AsyncIterator(generator, PromiseImpl) {
257
- function invoke(method, arg, resolve, reject) {
258
- var record = tryCatch(generator[method], generator, arg);
259
- if ("throw" !== record.type) {
260
- var result = record.arg,
261
- value = result.value;
262
- return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
263
- invoke("next", value, resolve, reject);
264
- }, function (err) {
265
- invoke("throw", err, resolve, reject);
266
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
267
- result.value = unwrapped, resolve(result);
268
- }, function (error) {
269
- return invoke("throw", error, resolve, reject);
249
+ function AsyncIterator(t, e) {
250
+ function invoke(r, o, i, a) {
251
+ var c = tryCatch(t[r], t, o);
252
+ if ("throw" !== c.type) {
253
+ var u = c.arg,
254
+ h = u.value;
255
+ return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
256
+ invoke("next", t, i, a);
257
+ }, function (t) {
258
+ invoke("throw", t, i, a);
259
+ }) : e.resolve(h).then(function (t) {
260
+ u.value = t, i(u);
261
+ }, function (t) {
262
+ return invoke("throw", t, i, a);
270
263
  });
271
264
  }
272
- reject(record.arg);
265
+ a(c.arg);
273
266
  }
274
- var previousPromise;
275
- defineProperty(this, "_invoke", {
276
- value: function value(method, arg) {
267
+ var r;
268
+ o(this, "_invoke", {
269
+ value: function value(t, n) {
277
270
  function callInvokeWithMethodAndArg() {
278
- return new PromiseImpl(function (resolve, reject) {
279
- invoke(method, arg, resolve, reject);
271
+ return new e(function (e, r) {
272
+ invoke(t, n, e, r);
280
273
  });
281
274
  }
282
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
275
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
283
276
  }
284
277
  });
285
278
  }
286
- function makeInvokeMethod(innerFn, self, context) {
287
- var state = "suspendedStart";
288
- return function (method, arg) {
289
- if ("executing" === state) throw new Error("Generator is already running");
290
- if ("completed" === state) {
291
- if ("throw" === method) throw arg;
292
- return doneResult();
279
+ function makeInvokeMethod(e, r, n) {
280
+ var o = h;
281
+ return function (i, a) {
282
+ if (o === f) throw Error("Generator is already running");
283
+ if (o === s) {
284
+ if ("throw" === i) throw a;
285
+ return {
286
+ value: t,
287
+ done: !0
288
+ };
293
289
  }
294
- for (context.method = method, context.arg = arg;;) {
295
- var delegate = context.delegate;
296
- if (delegate) {
297
- var delegateResult = maybeInvokeDelegate(delegate, context);
298
- if (delegateResult) {
299
- if (delegateResult === ContinueSentinel) continue;
300
- return delegateResult;
290
+ for (n.method = i, n.arg = a;;) {
291
+ var c = n.delegate;
292
+ if (c) {
293
+ var u = maybeInvokeDelegate(c, n);
294
+ if (u) {
295
+ if (u === y) continue;
296
+ return u;
301
297
  }
302
298
  }
303
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
304
- if ("suspendedStart" === state) throw state = "completed", context.arg;
305
- context.dispatchException(context.arg);
306
- } else "return" === context.method && context.abrupt("return", context.arg);
307
- state = "executing";
308
- var record = tryCatch(innerFn, self, context);
309
- if ("normal" === record.type) {
310
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
299
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
300
+ if (o === h) throw o = s, n.arg;
301
+ n.dispatchException(n.arg);
302
+ } else "return" === n.method && n.abrupt("return", n.arg);
303
+ o = f;
304
+ var p = tryCatch(e, r, n);
305
+ if ("normal" === p.type) {
306
+ if (o = n.done ? s : l, p.arg === y) continue;
311
307
  return {
312
- value: record.arg,
313
- done: context.done
308
+ value: p.arg,
309
+ done: n.done
314
310
  };
315
311
  }
316
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
312
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
317
313
  }
318
314
  };
319
315
  }
320
- function maybeInvokeDelegate(delegate, context) {
321
- var methodName = context.method,
322
- method = delegate.iterator[methodName];
323
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
324
- var record = tryCatch(method, delegate.iterator, context.arg);
325
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
326
- var info = record.arg;
327
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
316
+ function maybeInvokeDelegate(e, r) {
317
+ var n = r.method,
318
+ o = e.iterator[n];
319
+ if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
320
+ var i = tryCatch(o, e.iterator, r.arg);
321
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
322
+ var a = i.arg;
323
+ return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
328
324
  }
329
- function pushTryEntry(locs) {
330
- var entry = {
331
- tryLoc: locs[0]
325
+ function pushTryEntry(t) {
326
+ var e = {
327
+ tryLoc: t[0]
332
328
  };
333
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
329
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
334
330
  }
335
- function resetTryEntry(entry) {
336
- var record = entry.completion || {};
337
- record.type = "normal", delete record.arg, entry.completion = record;
331
+ function resetTryEntry(t) {
332
+ var e = t.completion || {};
333
+ e.type = "normal", delete e.arg, t.completion = e;
338
334
  }
339
- function Context(tryLocsList) {
335
+ function Context(t) {
340
336
  this.tryEntries = [{
341
337
  tryLoc: "root"
342
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
338
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
343
339
  }
344
- function values(iterable) {
345
- if (iterable) {
346
- var iteratorMethod = iterable[iteratorSymbol];
347
- if (iteratorMethod) return iteratorMethod.call(iterable);
348
- if ("function" == typeof iterable.next) return iterable;
349
- if (!isNaN(iterable.length)) {
350
- var i = -1,
351
- next = function next() {
352
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
353
- return next.value = undefined, next.done = !0, next;
340
+ function values(e) {
341
+ if (e || "" === e) {
342
+ var r = e[a];
343
+ if (r) return r.call(e);
344
+ if ("function" == typeof e.next) return e;
345
+ if (!isNaN(e.length)) {
346
+ var o = -1,
347
+ i = function next() {
348
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
349
+ return next.value = t, next.done = !0, next;
354
350
  };
355
- return next.next = next;
351
+ return i.next = i;
356
352
  }
357
353
  }
358
- return {
359
- next: doneResult
360
- };
361
- }
362
- function doneResult() {
363
- return {
364
- value: undefined,
365
- done: !0
366
- };
354
+ throw new TypeError(_typeof(e) + " is not iterable");
367
355
  }
368
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
356
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
369
357
  value: GeneratorFunctionPrototype,
370
358
  configurable: !0
371
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
359
+ }), o(GeneratorFunctionPrototype, "constructor", {
372
360
  value: GeneratorFunction,
373
361
  configurable: !0
374
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
375
- var ctor = "function" == typeof genFun && genFun.constructor;
376
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
377
- }, exports.mark = function (genFun) {
378
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
379
- }, exports.awrap = function (arg) {
362
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
363
+ var e = "function" == typeof t && t.constructor;
364
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
365
+ }, e.mark = function (t) {
366
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
367
+ }, e.awrap = function (t) {
380
368
  return {
381
- __await: arg
369
+ __await: t
382
370
  };
383
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
371
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
384
372
  return this;
385
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
386
- void 0 === PromiseImpl && (PromiseImpl = Promise);
387
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
388
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
389
- return result.done ? result.value : iter.next();
373
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
374
+ void 0 === i && (i = Promise);
375
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
376
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
377
+ return t.done ? t.value : a.next();
390
378
  });
391
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
379
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
392
380
  return this;
393
- }), define(Gp, "toString", function () {
381
+ }), define(g, "toString", function () {
394
382
  return "[object Generator]";
395
- }), exports.keys = function (val) {
396
- var object = Object(val),
397
- keys = [];
398
- for (var key in object) keys.push(key);
399
- return keys.reverse(), function next() {
400
- for (; keys.length;) {
401
- var key = keys.pop();
402
- if (key in object) return next.value = key, next.done = !1, next;
383
+ }), e.keys = function (t) {
384
+ var e = Object(t),
385
+ r = [];
386
+ for (var n in e) r.push(n);
387
+ return r.reverse(), function next() {
388
+ for (; r.length;) {
389
+ var t = r.pop();
390
+ if (t in e) return next.value = t, next.done = !1, next;
403
391
  }
404
392
  return next.done = !0, next;
405
393
  };
406
- }, exports.values = values, Context.prototype = {
394
+ }, e.values = values, Context.prototype = {
407
395
  constructor: Context,
408
- reset: function reset(skipTempReset) {
409
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
396
+ reset: function reset(e) {
397
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
410
398
  },
411
399
  stop: function stop() {
412
400
  this.done = !0;
413
- var rootRecord = this.tryEntries[0].completion;
414
- if ("throw" === rootRecord.type) throw rootRecord.arg;
401
+ var t = this.tryEntries[0].completion;
402
+ if ("throw" === t.type) throw t.arg;
415
403
  return this.rval;
416
404
  },
417
- dispatchException: function dispatchException(exception) {
418
- if (this.done) throw exception;
419
- var context = this;
420
- function handle(loc, caught) {
421
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
405
+ dispatchException: function dispatchException(e) {
406
+ if (this.done) throw e;
407
+ var r = this;
408
+ function handle(n, o) {
409
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
422
410
  }
423
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
424
- var entry = this.tryEntries[i],
425
- record = entry.completion;
426
- if ("root" === entry.tryLoc) return handle("end");
427
- if (entry.tryLoc <= this.prev) {
428
- var hasCatch = hasOwn.call(entry, "catchLoc"),
429
- hasFinally = hasOwn.call(entry, "finallyLoc");
430
- if (hasCatch && hasFinally) {
431
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
432
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
433
- } else if (hasCatch) {
434
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
411
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
412
+ var i = this.tryEntries[o],
413
+ a = i.completion;
414
+ if ("root" === i.tryLoc) return handle("end");
415
+ if (i.tryLoc <= this.prev) {
416
+ var c = n.call(i, "catchLoc"),
417
+ u = n.call(i, "finallyLoc");
418
+ if (c && u) {
419
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
420
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
421
+ } else if (c) {
422
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
435
423
  } else {
436
- if (!hasFinally) throw new Error("try statement without catch or finally");
437
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
424
+ if (!u) throw Error("try statement without catch or finally");
425
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
438
426
  }
439
427
  }
440
428
  }
441
429
  },
442
- abrupt: function abrupt(type, arg) {
443
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
444
- var entry = this.tryEntries[i];
445
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
446
- var finallyEntry = entry;
430
+ abrupt: function abrupt(t, e) {
431
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
432
+ var o = this.tryEntries[r];
433
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
434
+ var i = o;
447
435
  break;
448
436
  }
449
437
  }
450
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
451
- var record = finallyEntry ? finallyEntry.completion : {};
452
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
438
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
439
+ var a = i ? i.completion : {};
440
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
453
441
  },
454
- complete: function complete(record, afterLoc) {
455
- if ("throw" === record.type) throw record.arg;
456
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
442
+ complete: function complete(t, e) {
443
+ if ("throw" === t.type) throw t.arg;
444
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
457
445
  },
458
- finish: function finish(finallyLoc) {
459
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
460
- var entry = this.tryEntries[i];
461
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
446
+ finish: function finish(t) {
447
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
448
+ var r = this.tryEntries[e];
449
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
462
450
  }
463
451
  },
464
- "catch": function _catch(tryLoc) {
465
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
466
- var entry = this.tryEntries[i];
467
- if (entry.tryLoc === tryLoc) {
468
- var record = entry.completion;
469
- if ("throw" === record.type) {
470
- var thrown = record.arg;
471
- resetTryEntry(entry);
452
+ "catch": function _catch(t) {
453
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
454
+ var r = this.tryEntries[e];
455
+ if (r.tryLoc === t) {
456
+ var n = r.completion;
457
+ if ("throw" === n.type) {
458
+ var o = n.arg;
459
+ resetTryEntry(r);
472
460
  }
473
- return thrown;
461
+ return o;
474
462
  }
475
463
  }
476
- throw new Error("illegal catch attempt");
464
+ throw Error("illegal catch attempt");
477
465
  },
478
- delegateYield: function delegateYield(iterable, resultName, nextLoc) {
466
+ delegateYield: function delegateYield(e, r, n) {
479
467
  return this.delegate = {
480
- iterator: values(iterable),
481
- resultName: resultName,
482
- nextLoc: nextLoc
483
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
468
+ iterator: values(e),
469
+ resultName: r,
470
+ nextLoc: n
471
+ }, "next" === this.method && (this.arg = t), y;
484
472
  }
485
- }, exports;
473
+ }, e;
486
474
  }
487
475
  module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
488
476
  } (regeneratorRuntime$1));
@@ -641,8 +629,8 @@ var isMp4Supported = function isMp4Supported() {
641
629
  return mimeType.includes(MIME_TYPE$1.mp4);
642
630
  };
643
631
 
644
- function ownKeys$2(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; }
645
- function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
632
+ function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
633
+ function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
646
634
  var baseUrl = "/api/v1/recordings";
647
635
  var create = function create(payload) {
648
636
  return axios.post(baseUrl, {
@@ -655,8 +643,8 @@ var recordingsApi = {
655
643
  create: create
656
644
  };
657
645
 
658
- 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; }
659
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
646
+ function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
647
+ function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
660
648
  var useCreateRecording = function useCreateRecording(options) {
661
649
  return useMutation(_objectSpread$1({
662
650
  mutationFn: recordingsApi.create
@@ -688,40 +676,33 @@ var AbortUpload = withT(function (_ref) {
688
676
  });
689
677
  });
690
678
 
691
- function _objectWithoutPropertiesLoose(source, excluded) {
692
- if (source == null) return {};
693
- var target = {};
694
- var sourceKeys = Object.keys(source);
695
- var key, i;
696
- for (i = 0; i < sourceKeys.length; i++) {
697
- key = sourceKeys[i];
698
- if (excluded.indexOf(key) >= 0) continue;
699
- target[key] = source[key];
679
+ function _objectWithoutPropertiesLoose(r, e) {
680
+ if (null == r) return {};
681
+ var t = {};
682
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
683
+ if (-1 !== e.indexOf(n)) continue;
684
+ t[n] = r[n];
700
685
  }
701
- return target;
686
+ return t;
702
687
  }
703
688
 
704
- function _objectWithoutProperties(source, excluded) {
705
- if (source == null) return {};
706
- var target = _objectWithoutPropertiesLoose(source, excluded);
707
- var key, i;
689
+ function _objectWithoutProperties(e, t) {
690
+ if (null == e) return {};
691
+ var o,
692
+ r,
693
+ i = _objectWithoutPropertiesLoose(e, t);
708
694
  if (Object.getOwnPropertySymbols) {
709
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
710
- for (i = 0; i < sourceSymbolKeys.length; i++) {
711
- key = sourceSymbolKeys[i];
712
- if (excluded.indexOf(key) >= 0) continue;
713
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
714
- target[key] = source[key];
715
- }
695
+ var n = Object.getOwnPropertySymbols(e);
696
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
716
697
  }
717
- return target;
698
+ return i;
718
699
  }
719
700
 
720
701
  var _excluded = ["size"],
721
702
  _excluded2 = ["size"],
722
703
  _excluded3 = ["size"];
723
- 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; }
724
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
704
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
705
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
725
706
  var PlayIcon = function PlayIcon(_ref) {
726
707
  var size = _ref.size,
727
708
  other = _objectWithoutProperties(_ref, _excluded);