@vindral/web-sdk 4.8.2-4-gf1691d4a → 4.8.2-6-gdf80d9d8

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/CXMDq12B.js ADDED
@@ -0,0 +1,27 @@
1
+ //#region \0@oxc-project+runtime@0.115.0/helpers/asyncToGenerator.js
2
+ function e(e, t, n, r, i, a, o) {
3
+ try {
4
+ var s = e[a](o), c = s.value;
5
+ } catch (e) {
6
+ n(e);
7
+ return;
8
+ }
9
+ s.done ? t(c) : Promise.resolve(c).then(r, i);
10
+ }
11
+ function t(t) {
12
+ return function() {
13
+ var n = this, r = arguments;
14
+ return new Promise(function(i, a) {
15
+ var o = t.apply(n, r);
16
+ function s(t) {
17
+ e(o, i, a, s, c, "next", t);
18
+ }
19
+ function c(t) {
20
+ e(o, i, a, s, c, "throw", t);
21
+ }
22
+ s(void 0);
23
+ });
24
+ };
25
+ }
26
+ //#endregion
27
+ export { t };
@@ -1,7 +1,8 @@
1
- import { n as e, t } from "./BsfwXDui.js";
2
- import { t as n } from "./CuYn2z5X.js";
3
- import { t as r } from "./DrWNJwZx.js";
4
- import { t as i } from "./D1kpe8tT.js";
1
+ import { t as e } from "./CFqytvUK.js";
2
+ import { t } from "./CuYn2z5X.js";
3
+ import { t as n } from "./DJNS7hc2.js";
4
+ import { t as r } from "./CXMDq12B.js";
5
+ import { t as i } from "./2sSTdNyC.js";
5
6
  //#region ../../libs/wasm-decoders/src/opus/wasm/opus.js
6
7
  var a = (function() {
7
8
  var e = typeof document < "u" && document.currentScript ? document.currentScript.src : void 0;
@@ -220,7 +221,7 @@ var a = (function() {
220
221
  }
221
222
  };
222
223
  o = c, e(c, "MAX_OPUS_BUFFER", 16384), e(c, "MAX_SAMPLES", 6 * 960), e(c, "create", function() {
223
- var e = t(function* (e, t) {
224
+ var e = r(function* (e, t) {
224
225
  return new o(yield a(), e, t);
225
226
  });
226
227
  return function(t, n) {
@@ -230,8 +231,8 @@ o = c, e(c, "MAX_OPUS_BUFFER", 16384), e(c, "MAX_SAMPLES", 6 * 960), e(c, "creat
230
231
  //#endregion
231
232
  //#region ../../libs/web-sdk/src/decoders/OpusDecoderContext.ts
232
233
  var l, u = class {
233
- constructor(t) {
234
- e(this, "decodedSamples", []), e(this, "decoder", void 0), e(this, "errors", new r(10)), e(this, "unload", () => {
234
+ constructor(r) {
235
+ e(this, "decodedSamples", []), e(this, "decoder", void 0), e(this, "errors", new n(10)), e(this, "unload", () => {
235
236
  this.decoder.unload();
236
237
  }), e(this, "enqueue", (e) => {
237
238
  try {
@@ -250,14 +251,14 @@ var l, u = class {
250
251
  } catch (e) {
251
252
  e instanceof Error && this.errors.push(e);
252
253
  }
253
- }), e(this, "initSegment", n), e(this, "take", () => this.decodedSamples.shift()), this.decoder = t;
254
+ }), e(this, "initSegment", t), e(this, "take", () => this.decodedSamples.shift()), this.decoder = r;
254
255
  }
255
256
  error() {
256
257
  return this.errors.pop();
257
258
  }
258
259
  };
259
260
  l = u, e(u, "create", function() {
260
- var e = t(function* (e, t) {
261
+ var e = r(function* (e, t) {
261
262
  return new l(yield c.create(e, t));
262
263
  });
263
264
  return function(t, n) {