@davi-ai/react-bodyengine-three 1.0.10 → 1.0.11

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/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import tg, { useState as Dg, useMemo as ql, useEffect as ug, useRef as Kt, Suspense as zA } from "react";
1
+ import tg, { useState as Eg, useMemo as ql, useEffect as ug, useRef as Kt, Suspense as zA } from "react";
2
2
  import * as d from "three/webgpu";
3
3
  import { Vector3 as fA, WebGPURenderer as MA } from "three/webgpu";
4
- import { Object3D as UV } from "three/webgpu";
4
+ import { Object3D as TV } from "three/webgpu";
5
5
  import { ShaderChunk as RC } from "three";
6
6
  import { FBXLoader as _l } from "three/examples/jsm/loaders/FBXLoader.js";
7
7
  import { DRACOLoader as UA } from "three/examples/jsm/loaders/DRACOLoader.js";
@@ -309,7 +309,7 @@ const $l = {
309
309
  body: Wc,
310
310
  legs: vc,
311
311
  lips: Hc
312
- }, hV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
312
+ }, BV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
313
313
  __proto__: null,
314
314
  after: tc,
315
315
  before: ic,
@@ -424,7 +424,7 @@ h(ag, "gltfLoader", new QA()), h(ag, "fbxLoader", new _l()), h(ag, "dracoLoader"
424
424
  ag.dracoLoader.setDecoderPath("https://cdn.retorik.ai/bodyengine-three/draco/");
425
425
  ag.gltfLoader.setDRACOLoader(ag.dracoLoader);
426
426
  ag.gltfLoader.setMeshoptDecoder(TA);
427
- const KC = class kg extends d.Loader {
427
+ const KC = class fg extends d.Loader {
428
428
  constructor(g) {
429
429
  super(g), h(this, "textureLoader", null);
430
430
  }
@@ -493,14 +493,14 @@ const KC = class kg extends d.Loader {
493
493
  await Promise.all(C);
494
494
  }
495
495
  async setSkinMaterial(g) {
496
- kg.cavityMap === void 0 && (kg.cavityMap = await ag.textureLoader.loadAsync("https://cdn.retorik.ai/bodyengine-three/characters/common/cavity.jpg").catch((I) => {
496
+ fg.cavityMap === void 0 && (fg.cavityMap = await ag.textureLoader.loadAsync("https://cdn.retorik.ai/bodyengine-three/characters/common/cavity.jpg").catch((I) => {
497
497
  console.warn("Can't load cavity map :", I);
498
- }), kg.cavityMap && (kg.cavityMap.wrapS = kg.cavityMap.wrapT = d.RepeatWrapping, kg.cavityMap = kg.cavityMap)), g.cavityMap = kg.cavityMap, g.reflectivity = 0.25, g.transmissionMap && (g.transmission = 0.5), g.attenuationDistance = 1e-3, g.thickness = 0.02, g.attenuationColor = new d.Color(0.8, 0.4, 0.3), g.microNormalScale = new d.Vector2(28, 28), g.cavityScale = new d.Vector2(20, 20), g.cavityStrength = 0.5;
498
+ }), fg.cavityMap && (fg.cavityMap.wrapS = fg.cavityMap.wrapT = d.RepeatWrapping, fg.cavityMap = fg.cavityMap)), g.cavityMap = fg.cavityMap, g.reflectivity = 0.25, g.transmissionMap && (g.transmission = 0.5), g.attenuationDistance = 1e-3, g.thickness = 0.02, g.attenuationColor = new d.Color(0.8, 0.4, 0.3), g.microNormalScale = new d.Vector2(28, 28), g.cavityScale = new d.Vector2(20, 20), g.cavityStrength = 0.5;
499
499
  }
500
500
  async setSkinBodyMaterial(g) {
501
- kg.cavityMap === void 0 && (kg.cavityMap = await ag.textureLoader.loadAsync("https://cdn.retorik.ai/bodyengine-three/characters/common/cavity.jpg").catch((I) => {
501
+ fg.cavityMap === void 0 && (fg.cavityMap = await ag.textureLoader.loadAsync("https://cdn.retorik.ai/bodyengine-three/characters/common/cavity.jpg").catch((I) => {
502
502
  console.warn("Can't load cavity map :", I);
503
- }), kg.cavityMap && (kg.cavityMap.wrapS = kg.cavityMap.wrapT = d.RepeatWrapping, kg.cavityMap = kg.cavityMap)), g.cavityMap = kg.cavityMap, g.reflectivity = 0.25, g.transmissionMap && (g.transmission = 0.5), g.attenuationDistance = 1e-3, g.thickness = 0.02, g.attenuationColor = new d.Color(0.8, 0.4, 0.3), g.microNormalScale = new d.Vector2(45, 45), g.cavityScale = new d.Vector2(33, 33), g.cavityStrength = 0.5;
503
+ }), fg.cavityMap && (fg.cavityMap.wrapS = fg.cavityMap.wrapT = d.RepeatWrapping, fg.cavityMap = fg.cavityMap)), g.cavityMap = fg.cavityMap, g.reflectivity = 0.25, g.transmissionMap && (g.transmission = 0.5), g.attenuationDistance = 1e-3, g.thickness = 0.02, g.attenuationColor = new d.Color(0.8, 0.4, 0.3), g.microNormalScale = new d.Vector2(45, 45), g.cavityScale = new d.Vector2(33, 33), g.cavityStrength = 0.5;
504
504
  }
505
505
  setDoublePassForHairForMultiMaterial(g, I) {
506
506
  const e = g.parent, t = g.material[I], o = new d.MeshBasicMaterial({ color: 0 });
@@ -689,7 +689,7 @@ const bi = class tI extends d.Loader {
689
689
  };
690
690
  h(bi, "cavityMap"), h(bi, "microMap"), h(bi, "microNormalMaskMap"), h(bi, "transMap");
691
691
  let th = bi;
692
- const Yt = class Og extends d.Loader {
692
+ const Yt = class qg extends d.Loader {
693
693
  constructor(g) {
694
694
  super(g);
695
695
  }
@@ -755,7 +755,7 @@ const Yt = class Og extends d.Loader {
755
755
  C.name = "HairMaterial2Clone", I.opacity = 0.3, o.opacity = 0.5, C.transparent = C.alphaToCoverage = !0, C.alphaHash = !1, C.depthWrite = !1, C.alphaTest = 0, g.renderOrder = 1, e.renderOrder = 3, t.renderOrder = 2, g.parent.add(e), g.parent.add(t);
756
756
  }
757
757
  async setHead(g) {
758
- Og.cavityMap || (Og.cavityMap = await ag.textureLoader.loadAsync("https://cdn.retorik.ai/bodyengine-three/characters/common/cavity.jpg"), Og.cavityMap.wrapS = Og.cavityMap.wrapT = d.RepeatWrapping), Og.microMap || (Og.microMap = await ag.textureLoader.loadAsync("https://cdn.retorik.ai/bodyengine-three/characters/common/micro.jpg"), Og.microMap.wrapS = Og.microMap.wrapT = d.RepeatWrapping), Og.microNormalMaskMap || (Og.microNormalMaskMap = await ag.textureLoader.loadAsync("https://cdn.retorik.ai/bodyengine-three/characters/common/normalMask.jpg"), Og.microNormalMaskMap.flipY = !0);
758
+ qg.cavityMap || (qg.cavityMap = await ag.textureLoader.loadAsync("https://cdn.retorik.ai/bodyengine-three/characters/common/cavity.jpg"), qg.cavityMap.wrapS = qg.cavityMap.wrapT = d.RepeatWrapping), qg.microMap || (qg.microMap = await ag.textureLoader.loadAsync("https://cdn.retorik.ai/bodyengine-three/characters/common/micro.jpg"), qg.microMap.wrapS = qg.microMap.wrapT = d.RepeatWrapping), qg.microNormalMaskMap || (qg.microNormalMaskMap = await ag.textureLoader.loadAsync("https://cdn.retorik.ai/bodyengine-three/characters/common/normalMask.jpg"), qg.microNormalMaskMap.flipY = !0);
759
759
  const I = new Ni({
760
760
  color: g.material.color,
761
761
  metalness: g.material.metalness,
@@ -766,13 +766,13 @@ const Yt = class Og extends d.Loader {
766
766
  roughnessMap: g.material.roughnessMap,
767
767
  metalnessMap: g.material.metalnessMap,
768
768
  side: d.DoubleSide,
769
- cavityMap: Og.cavityMap,
769
+ cavityMap: qg.cavityMap,
770
770
  attenuationDistance: 1e-3,
771
771
  thickness: 1e-3,
772
772
  attenuationColor: new d.Color(0.8, 0.4, 0.3),
773
773
  microNormalScale: new d.Vector2(50, 50),
774
- microNormalMap: Og.microMap,
775
- microMaskNormalMap: Og.microNormalMaskMap,
774
+ microNormalMap: qg.microMap,
775
+ microMaskNormalMap: qg.microNormalMaskMap,
776
776
  cavityStrength: 0.7,
777
777
  cavityScale: new d.Vector2(20, 20)
778
778
  });
@@ -781,7 +781,7 @@ const Yt = class Og extends d.Loader {
781
781
  };
782
782
  h(Yt, "cavityMap"), h(Yt, "microMap"), h(Yt, "microNormalMaskMap");
783
783
  let oh = Yt;
784
- const wt = class qg extends d.Loader {
784
+ const wt = class _g extends d.Loader {
785
785
  constructor(g) {
786
786
  super(g);
787
787
  }
@@ -865,7 +865,7 @@ const wt = class qg extends d.Loader {
865
865
  t.side = d.FrontSide, t.alphaToCoverage = !0, t.depthWrite = !0, g.renderOrder = 1, e.renderOrder = 3, g.parent.add(e);
866
866
  }
867
867
  async setHead(g) {
868
- qg.cavityMap || (qg.cavityMap = await ag.textureLoader.loadAsync("https://cdn.retorik.ai/bodyengine-three/characters/common/cavity.jpg"), qg.cavityMap.wrapS = qg.cavityMap.wrapT = d.RepeatWrapping), qg.microMap || (qg.microMap = await ag.textureLoader.loadAsync("https://cdn.retorik.ai/bodyengine-three/characters/common/micro.jpg"), qg.microMap.wrapS = qg.microMap.wrapT = d.RepeatWrapping), qg.microNormalMaskMap || (qg.microNormalMaskMap = await ag.textureLoader.loadAsync("https://cdn.retorik.ai/bodyengine-three/characters/common/normalMask.jpg"), qg.microNormalMaskMap.flipY = !0);
868
+ _g.cavityMap || (_g.cavityMap = await ag.textureLoader.loadAsync("https://cdn.retorik.ai/bodyengine-three/characters/common/cavity.jpg"), _g.cavityMap.wrapS = _g.cavityMap.wrapT = d.RepeatWrapping), _g.microMap || (_g.microMap = await ag.textureLoader.loadAsync("https://cdn.retorik.ai/bodyengine-three/characters/common/micro.jpg"), _g.microMap.wrapS = _g.microMap.wrapT = d.RepeatWrapping), _g.microNormalMaskMap || (_g.microNormalMaskMap = await ag.textureLoader.loadAsync("https://cdn.retorik.ai/bodyengine-three/characters/common/normalMask.jpg"), _g.microNormalMaskMap.flipY = !0);
869
869
  const I = new Ni({
870
870
  color: g.material.color,
871
871
  metalness: g.material.metalness,
@@ -879,13 +879,13 @@ const wt = class qg extends d.Loader {
879
879
  specularIntensity: g.material.specularIntensity,
880
880
  specularColor: g.material.specularColor,
881
881
  side: d.DoubleSide,
882
- cavityMap: qg.cavityMap,
882
+ cavityMap: _g.cavityMap,
883
883
  attenuationDistance: 1e-3,
884
884
  thickness: 1e-3,
885
885
  attenuationColor: new d.Color(0.8, 0.4, 0.3),
886
886
  microNormalScale: new d.Vector2(50, 50),
887
- microNormalMap: qg.microMap,
888
- microMaskNormalMap: qg.microNormalMaskMap,
887
+ microNormalMap: _g.microMap,
888
+ microMaskNormalMap: _g.microNormalMaskMap,
889
889
  cavityStrength: 0.7,
890
890
  cavityScale: new d.Vector2(20, 20)
891
891
  });
@@ -1615,22 +1615,22 @@ function Q(i) {
1615
1615
  }
1616
1616
  function m(Z) {
1617
1617
  for (var H = 0, R = s.animations, gg = R.length; H < gg; ) {
1618
- var q = R[H], ig = q.animatable, Jg = q.tweens, eI = Jg.length - 1, Ig = Jg[eI];
1619
- eI && (Ig = io(Jg, function(lg) {
1618
+ var q = R[H], ig = q.animatable, zg = q.tweens, eI = zg.length - 1, Ig = zg[eI];
1619
+ eI && (Ig = io(zg, function(lg) {
1620
1620
  return Z < lg.end;
1621
1621
  })[0] || Ig);
1622
- for (var Vg = LI(Z - Ig.start - Ig.delay, 0, Ig.duration) / Ig.duration, Ce = isNaN(Vg) ? 1 : Ig.easing(Vg), Pg = Ig.to.strings, K = Ig.round, y = [], S = Ig.to.numbers.length, v = void 0, W = 0; W < S; W++) {
1622
+ for (var Vg = LI(Z - Ig.start - Ig.delay, 0, Ig.duration) / Ig.duration, Ce = isNaN(Vg) ? 1 : Ig.easing(Vg), jg = Ig.to.strings, K = Ig.round, y = [], S = Ig.to.numbers.length, v = void 0, W = 0; W < S; W++) {
1623
1623
  var z = void 0, j = Ig.to.numbers[W], D = Ig.from.numbers[W] || 0;
1624
1624
  Ig.isPath ? z = yh(Ig.value, Ce * j, Ig.isPathTargetInsideSVG) : z = D + Ce * (j - D), K && (Ig.isColor && W > 2 || (z = Math.round(z * K) / K)), y.push(z);
1625
1625
  }
1626
- var Xg = Pg.length;
1626
+ var Xg = jg.length;
1627
1627
  if (!Xg)
1628
1628
  v = y[0];
1629
1629
  else {
1630
- v = Pg[0];
1630
+ v = jg[0];
1631
1631
  for (var eg = 0; eg < Xg; eg++) {
1632
- Pg[eg];
1633
- var L = Pg[eg + 1], Bg = y[eg];
1632
+ jg[eg];
1633
+ var L = jg[eg + 1], Bg = y[eg];
1634
1634
  isNaN(Bg) || (L ? v += Bg + L : v += Bg + " ");
1635
1635
  }
1636
1636
  }
@@ -1700,15 +1700,15 @@ function wh(i, g) {
1700
1700
  if (!t)
1701
1701
  B.push(Math.abs(C - R));
1702
1702
  else {
1703
- var gg = s ? (t[0] - 1) / 2 : C % t[0], q = s ? (t[1] - 1) / 2 : Math.floor(C / t[0]), ig = R % t[0], Jg = Math.floor(R / t[0]), eI = gg - ig, Ig = q - Jg, Vg = Math.sqrt(eI * eI + Ig * Ig);
1703
+ var gg = s ? (t[0] - 1) / 2 : C % t[0], q = s ? (t[1] - 1) / 2 : Math.floor(C / t[0]), ig = R % t[0], zg = Math.floor(R / t[0]), eI = gg - ig, Ig = q - zg, Vg = Math.sqrt(eI * eI + Ig * Ig);
1704
1704
  o === "x" && (Vg = -eI), o === "y" && (Vg = -Ig), B.push(Vg);
1705
1705
  }
1706
1706
  p = Math.max.apply(Math, B);
1707
1707
  }
1708
- e && (B = B.map(function(Pg) {
1709
- return e(Pg / p) * p;
1710
- })), I === "reverse" && (B = B.map(function(Pg) {
1711
- return o ? Pg < 0 ? Pg * -1 : -Pg : Math.abs(p - Pg);
1708
+ e && (B = B.map(function(jg) {
1709
+ return e(jg / p) * p;
1710
+ })), I === "reverse" && (B = B.map(function(jg) {
1711
+ return o ? jg < 0 ? jg * -1 : -jg : Math.abs(p - jg);
1712
1712
  }));
1713
1713
  }
1714
1714
  var Ce = a ? (G - c) / p : c;
@@ -2784,7 +2784,7 @@ const Mh = [
2784
2784
  index: 45,
2785
2785
  strength: 0
2786
2786
  }
2787
- ], GV = {
2787
+ ], mV = {
2788
2788
  joy: Mh,
2789
2789
  anger: Eh,
2790
2790
  contempt: _h,
@@ -3091,7 +3091,7 @@ let LC = class {
3091
3091
  get lastIndex() {
3092
3092
  return this.items.length ? this.items[this.items.length - 1].index : 0;
3093
3093
  }
3094
- }, Yg = class {
3094
+ }, wg = class {
3095
3095
  constructor(i, g, I, e, t = !1) {
3096
3096
  h(this, "name"), h(this, "isLR"), h(this, "isChain"), h(this, "reFind"), h(this, "reExclude"), this.name = i, this.isLR = g, this.isChain = t, this.reFind = new RegExp(I, "i"), e && (this.reExclude = new RegExp(e, "i"));
3097
3097
  }
@@ -3100,25 +3100,25 @@ let LC = class {
3100
3100
  }
3101
3101
  };
3102
3102
  const lG = new RegExp("\\.l|left|_l", "i"), cG = new RegExp("\\.r|right|_r", "i"), rG = [
3103
- new Yg("thigh", !0, "thigh|upleg|upperleg", "twist"),
3103
+ new wg("thigh", !0, "thigh|upleg|upperleg", "twist"),
3104
3104
  //upleg | upperleg
3105
- new Yg("shin", !0, "shin|leg|calf", "up|twist"),
3106
- new Yg("foot", !0, "foot"),
3107
- new Yg("toe", !0, "toebase"),
3108
- new Yg("shoulder", !0, "clavicle|shoulder"),
3109
- new Yg("upperarm", !0, "(upper.*arm|arm)", "fore|twist|lower"),
3110
- new Yg("forearm", !0, "forearm|arm", "up|twist"),
3111
- new Yg("hand", !0, "hand", "thumb|index|middle|ring|pinky"),
3112
- new Yg("head", !1, "head"),
3113
- new Yg("neck", !1, "neck*d*", void 0, !0),
3114
- new Yg("hip", !1, "hips*|pelvis", void 0, !1),
3115
- new Yg("root", !1, "root"),
3116
- new Yg("spine", !1, "waist|spine*d*|chest", void 0, !0),
3117
- new Yg("thumb", !0, "thumb*d*", "toe", !0),
3118
- new Yg("index", !0, "index*d*", "toe", !0),
3119
- new Yg("middle", !0, "middle*d*|mid*d", "toe", !0),
3120
- new Yg("ring", !0, "ring*d*", "toe", !0),
3121
- new Yg("pinky", !0, "pinky*d*", "toe", !0)
3105
+ new wg("shin", !0, "shin|leg|calf", "up|twist"),
3106
+ new wg("foot", !0, "foot"),
3107
+ new wg("toe", !0, "toebase"),
3108
+ new wg("shoulder", !0, "clavicle|shoulder"),
3109
+ new wg("upperarm", !0, "(upper.*arm|arm)", "fore|twist|lower"),
3110
+ new wg("forearm", !0, "forearm|arm", "up|twist"),
3111
+ new wg("hand", !0, "hand", "thumb|index|middle|ring|pinky"),
3112
+ new wg("head", !1, "head"),
3113
+ new wg("neck", !1, "neck*d*", void 0, !0),
3114
+ new wg("hip", !1, "hips*|pelvis", void 0, !1),
3115
+ new wg("root", !1, "root"),
3116
+ new wg("spine", !1, "waist|spine*d*|chest", void 0, !0),
3117
+ new wg("thumb", !0, "thumb*d*", "toe", !0),
3118
+ new wg("index", !0, "index*d*", "toe", !0),
3119
+ new wg("middle", !0, "middle*d*|mid*d", "toe", !0),
3120
+ new wg("ring", !0, "ring*d*", "toe", !0),
3121
+ new wg("pinky", !0, "pinky*d*", "toe", !0)
3122
3122
  ];
3123
3123
  function dG(i) {
3124
3124
  return i.set(1 / i.x, 1 / i.y, 1 / i.z), i;
@@ -4157,8 +4157,8 @@ class ZG {
4157
4157
  case dg.rpm:
4158
4158
  this._bones.left.rotation.x += Math.PI / 16, this._bones.right.rotation.x += Math.PI / 16, this._bones.left.rotation.x = Math.max(Math.min(this._bones.left.rotation.x, Math.PI / 6), -Math.PI / 6), this._bones.right.rotation.x = Math.max(Math.min(this._bones.right.rotation.x, Math.PI / 6), -Math.PI / 6), this._bones.left.rotation.y = Math.max(Math.min(this._bones.left.rotation.y, Math.PI / 6), -Math.PI / 6), this._bones.right.rotation.y = Math.max(Math.min(this._bones.right.rotation.y, Math.PI / 6), -Math.PI / 6);
4159
4159
  }
4160
- const Jg = this._bones.left.quaternion.clone(), eI = this._bones.right.quaternion.clone();
4161
- this._bones.left.quaternion.copy(s), this._bones.right.quaternion.copy(l), B.setFromQuaternion(Jg), B.x += this._eyeRotation.x, B.y += this._eyeRotation.y, B.z += this._eyeRotation.z, p.setFromQuaternion(eI), p.x += this._eyeRotation.x, p.y += this._eyeRotation.y, p.z += this._eyeRotation.z, a = {
4160
+ const zg = this._bones.left.quaternion.clone(), eI = this._bones.right.quaternion.clone();
4161
+ this._bones.left.quaternion.copy(s), this._bones.right.quaternion.copy(l), B.setFromQuaternion(zg), B.x += this._eyeRotation.x, B.y += this._eyeRotation.y, B.z += this._eyeRotation.z, p.setFromQuaternion(eI), p.x += this._eyeRotation.x, p.y += this._eyeRotation.y, p.z += this._eyeRotation.z, a = {
4162
4162
  left: B,
4163
4163
  right: p
4164
4164
  };
@@ -4262,7 +4262,7 @@ class vG extends Co {
4262
4262
  });
4263
4263
  }
4264
4264
  }
4265
- class Eg extends jc {
4265
+ class xg extends jc {
4266
4266
  constructor(g, I) {
4267
4267
  super(g.type, I), h(this, "childrenElements"), h(this, "childrenBlocks", []), this.childrenElements = g.children || [];
4268
4268
  const e = g.attributes.find((t) => t.name === "id");
@@ -4376,7 +4376,7 @@ class Eg extends jc {
4376
4376
  }), this._createSyncPointForChildren());
4377
4377
  }
4378
4378
  }
4379
- class HG extends Eg {
4379
+ class HG extends xg {
4380
4380
  constructor(g) {
4381
4381
  if (super({ attributes: [], ...g }, g.id), h(this, "characterId"), h(this, "composition", yi.MERGE), g.characterId && (this.characterId = g.characterId), g.composition)
4382
4382
  switch (g.composition.toLowerCase()) {
@@ -4410,7 +4410,7 @@ class HG extends Eg {
4410
4410
  this.updateTimeline("start", g.currentGlobalTimer), this.syncPoints.push(new Fi(I, this.parentId));
4411
4411
  }
4412
4412
  }
4413
- class VG extends Eg {
4413
+ class VG extends xg {
4414
4414
  constructor(g, I) {
4415
4415
  if (super(g, I), h(this, "text", ""), g.children && g.children.length === 1 && g.children[0].tagName === bg.TEXT) {
4416
4416
  const e = g.children[0];
@@ -4418,7 +4418,7 @@ class VG extends Eg {
4418
4418
  }
4419
4419
  }
4420
4420
  }
4421
- class XG extends Eg {
4421
+ class XG extends xg {
4422
4422
  constructor(g, I) {
4423
4423
  var e;
4424
4424
  super(g, I), h(this, "duration");
@@ -4436,7 +4436,7 @@ class XG extends Eg {
4436
4436
  }
4437
4437
  }
4438
4438
  }
4439
- class RG extends Eg {
4439
+ class RG extends xg {
4440
4440
  constructor(g, I) {
4441
4441
  super(g, I), h(this, "amount", 1), h(this, "overshoot", 0), g.attributes.forEach((e) => {
4442
4442
  const t = typeof e.value == "number" ? e.value : parseFloat(e.value);
@@ -4453,7 +4453,7 @@ class RG extends Eg {
4453
4453
  });
4454
4454
  }
4455
4455
  }
4456
- class KG extends Eg {
4456
+ class KG extends xg {
4457
4457
  constructor(g, I) {
4458
4458
  super(g, I), h(this, "au", 0), h(this, "side", "BOTH"), h(this, "amount", 1), h(this, "overshoot", 0), g.attributes.forEach((e) => {
4459
4459
  switch (e.name) {
@@ -4479,7 +4479,7 @@ class KG extends Eg {
4479
4479
  });
4480
4480
  }
4481
4481
  }
4482
- class YG extends Eg {
4482
+ class YG extends xg {
4483
4483
  constructor(g, I) {
4484
4484
  super(g, I), h(this, "lexeme", ""), h(this, "amount", 1), h(this, "overshoot", 0), g.attributes.forEach((e) => {
4485
4485
  switch (e.name) {
@@ -4500,7 +4500,7 @@ class YG extends Eg {
4500
4500
  });
4501
4501
  }
4502
4502
  }
4503
- class wG extends Eg {
4503
+ class wG extends xg {
4504
4504
  constructor(g, I) {
4505
4505
  super(g, I), h(this, "amount", 1), g.attributes.forEach((e) => {
4506
4506
  switch (e.name) {
@@ -4513,7 +4513,7 @@ class wG extends Eg {
4513
4513
  });
4514
4514
  }
4515
4515
  }
4516
- class LG extends Eg {
4516
+ class LG extends xg {
4517
4517
  constructor(g, I) {
4518
4518
  super(g, I), h(this, "target", ""), h(this, "influence", ""), h(this, "offsetAngle", 0), h(this, "offsetDirection", "RIGHT"), g.attributes.forEach((e) => {
4519
4519
  switch (e.name) {
@@ -4535,7 +4535,7 @@ class LG extends Eg {
4535
4535
  });
4536
4536
  }
4537
4537
  }
4538
- class NG extends Eg {
4538
+ class NG extends xg {
4539
4539
  constructor(g, I) {
4540
4540
  super(g, I), h(this, "target", ""), h(this, "influence"), h(this, "offsetAngle", 0), h(this, "offsetDirection", "RIGHT"), g.attributes.forEach((e) => {
4541
4541
  switch (e.name) {
@@ -4557,7 +4557,7 @@ class NG extends Eg {
4557
4557
  });
4558
4558
  }
4559
4559
  }
4560
- class FG extends Eg {
4560
+ class FG extends xg {
4561
4561
  constructor(g, I) {
4562
4562
  super(g, I), h(this, "mode"), h(this, "lexeme", ""), g.attributes.forEach((e) => {
4563
4563
  switch (e.name) {
@@ -4571,7 +4571,7 @@ class FG extends Eg {
4571
4571
  });
4572
4572
  }
4573
4573
  }
4574
- class JG extends Eg {
4574
+ class JG extends xg {
4575
4575
  constructor(g, I) {
4576
4576
  super(g, I), h(this, "mode"), h(this, "target"), g.attributes.forEach((e) => {
4577
4577
  switch (e.name) {
@@ -4585,7 +4585,7 @@ class JG extends Eg {
4585
4585
  });
4586
4586
  }
4587
4587
  }
4588
- class kG extends Eg {
4588
+ class kG extends xg {
4589
4589
  constructor(g, I) {
4590
4590
  super(g, I), h(this, "lexeme", ""), h(this, "repetition", 1), h(this, "amount", 1), g.attributes.forEach((e) => {
4591
4591
  switch (e.name) {
@@ -4606,7 +4606,7 @@ class kG extends Eg {
4606
4606
  });
4607
4607
  }
4608
4608
  }
4609
- class zG extends Eg {
4609
+ class zG extends xg {
4610
4610
  constructor(g, I) {
4611
4611
  super(g, I), h(this, "target", ""), g.attributes.forEach((e) => {
4612
4612
  switch (e.name) {
@@ -4617,7 +4617,7 @@ class zG extends Eg {
4617
4617
  });
4618
4618
  }
4619
4619
  }
4620
- class fG extends Eg {
4620
+ class fG extends xg {
4621
4621
  constructor(g, I) {
4622
4622
  super(g, I), h(this, "target", ""), h(this, "manner"), g.attributes.forEach((e) => {
4623
4623
  switch (e.name) {
@@ -4631,12 +4631,12 @@ class fG extends Eg {
4631
4631
  });
4632
4632
  }
4633
4633
  }
4634
- class MG extends Eg {
4634
+ class MG extends xg {
4635
4635
  constructor(g, I) {
4636
4636
  super(g, I), h(this, "stance"), h(this, "poses");
4637
4637
  }
4638
4638
  }
4639
- class UG extends Eg {
4639
+ class UG extends xg {
4640
4640
  constructor(g, I) {
4641
4641
  super(g, I), h(this, "stance"), h(this, "poses");
4642
4642
  }
@@ -5524,7 +5524,7 @@ h(li, "RBD", 1), // Left Arm
5524
5524
  h(li, "LBU", 2), // Right Arm
5525
5525
  h(li, "DFR", 3), // Legs
5526
5526
  h(li, "FUR", 4);
5527
- class wg {
5527
+ class Lg {
5528
5528
  constructor(g, I, e, t, o = !1) {
5529
5529
  h(this, "name"), h(this, "isLR"), h(this, "isChain"), h(this, "reFind"), h(this, "reExclude"), this.name = g, this.isLR = I, this.isChain = o, this.reFind = new RegExp(e, "i"), t && (this.reExclude = new RegExp(t, "i"));
5530
5530
  }
@@ -5533,11 +5533,11 @@ class wg {
5533
5533
  }
5534
5534
  }
5535
5535
  const tB = new RegExp("\\.l|left|_l", "i"), oB = new RegExp("\\.r|right|_r", "i");
5536
- new wg("thigh", !0, "thigh|upleg|upperleg", "twist"), //upleg | upperleg
5537
- new wg("shin", !0, "shin|leg|calf", "up|twist"), new wg("foot", !0, "foot"), new wg("toe", !0, "toebase"), new wg("shoulder", !0, "clavicle|shoulder"), new wg("upperarm", !0, "(upper.*arm|arm)", "fore|twist|lower"), new wg("forearm", !0, "forearm|arm", "up|twist"), new wg("hand", !0, "hand", "thumb|index|middle|ring|pinky"), new wg("head", !1, "head"), new wg("neck", !1, "neck", void 0, !0), new wg("hip", !1, "hips*|pelvis", void 0, !1), new wg("root", !1, "root"), new wg("spine", !1, "waist|spine*d*|chest", void 0, !0), new wg("thumb", !0, "thumb*d*", "toe", !0), new wg("index", !0, "index*d*", "toe", !0), new wg("middle", !0, "middle*d*|mid*d", "toe", !0), new wg("ring", !0, "ring*d*", "toe", !0), new wg("pinky", !0, "pinky*d*", "toe", !0);
5538
- class fg {
5536
+ new Lg("thigh", !0, "thigh|upleg|upperleg", "twist"), //upleg | upperleg
5537
+ new Lg("shin", !0, "shin|leg|calf", "up|twist"), new Lg("foot", !0, "foot"), new Lg("toe", !0, "toebase"), new Lg("shoulder", !0, "clavicle|shoulder"), new Lg("upperarm", !0, "(upper.*arm|arm)", "fore|twist|lower"), new Lg("forearm", !0, "forearm|arm", "up|twist"), new Lg("hand", !0, "hand", "thumb|index|middle|ring|pinky"), new Lg("head", !1, "head"), new Lg("neck", !1, "neck", void 0, !0), new Lg("hip", !1, "hips*|pelvis", void 0, !1), new Lg("root", !1, "root"), new Lg("spine", !1, "waist|spine*d*|chest", void 0, !0), new Lg("thumb", !0, "thumb*d*", "toe", !0), new Lg("index", !0, "index*d*", "toe", !0), new Lg("middle", !0, "middle*d*|mid*d", "toe", !0), new Lg("ring", !0, "ring*d*", "toe", !0), new Lg("pinky", !0, "pinky*d*", "toe", !0);
5538
+ class Ug {
5539
5539
  constructor(g, I, e) {
5540
- h(this, "rot", new d.Quaternion()), h(this, "pos", new d.Vector3(0)), h(this, "scl", new d.Vector3(1)), g instanceof fg ? this.copy(g) : g && I && e && this.set(g, I, e);
5540
+ h(this, "rot", new d.Quaternion()), h(this, "pos", new d.Vector3(0)), h(this, "scl", new d.Vector3(1)), g instanceof Ug ? this.copy(g) : g && I && e && this.set(g, I, e);
5541
5541
  }
5542
5542
  // #endregion
5543
5543
  // #region SETTERS / GETTERS
@@ -5551,13 +5551,13 @@ class fg {
5551
5551
  return g && this.rot.copy(g), I && this.pos.copy(I), e && this.scl.copy(e), this;
5552
5552
  }
5553
5553
  clone() {
5554
- return new fg(this);
5554
+ return new Ug(this);
5555
5555
  }
5556
5556
  mul(g, I, e) {
5557
- return g instanceof fg && (I = g.pos, e = g.scl, g = g.rot), g && I && (this.pos.add(this.scl.clone().multiply(I).applyQuaternion(this.rot)), e && this.scl.multiply(e), this.rot.multiply(g)), this;
5557
+ return g instanceof Ug && (I = g.pos, e = g.scl, g = g.rot), g && I && (this.pos.add(this.scl.clone().multiply(I).applyQuaternion(this.rot)), e && this.scl.multiply(e), this.rot.multiply(g)), this;
5558
5558
  }
5559
5559
  premultiply(g, I, e) {
5560
- return g instanceof fg && (I = g.pos, e = g.scl, g = g.rot), !g || !I || !e ? this : (this.pos.multiply(e).applyQuaternion(g).add(I), e && this.scl.multiply(e), this.rot.premultiply(g), this);
5560
+ return g instanceof Ug && (I = g.pos, e = g.scl, g = g.rot), !g || !I || !e ? this : (this.pos.multiply(e).applyQuaternion(g).add(I), e && this.scl.multiply(e), this.rot.premultiply(g), this);
5561
5561
  }
5562
5562
  addPos(g, I = !1) {
5563
5563
  return I ? this.pos.add(g.clone().applyQuaternion(this.rot)) : this.pos.add(g.clone().multiply(this.scl).applyQuaternion(this.rot)), this;
@@ -5578,17 +5578,17 @@ class fg {
5578
5578
  }
5579
5579
  // #endregion
5580
5580
  static fromObject3D(g) {
5581
- return new fg(g.quaternion, g.position, g.scale);
5581
+ return new Ug(g.quaternion, g.position, g.scale);
5582
5582
  }
5583
5583
  static fromWorlObject3D(g) {
5584
5584
  const I = new d.Quaternion(), e = new d.Vector3(), t = new d.Vector3();
5585
- return g.getWorldQuaternion(I), g.getWorldPosition(e), g.getWorldScale(t), new fg(I, e, t);
5585
+ return g.getWorldQuaternion(I), g.getWorldPosition(e), g.getWorldScale(t), new Ug(I, e, t);
5586
5586
  }
5587
5587
  }
5588
5588
  class Rn {
5589
5589
  // Source pose that this pose came from
5590
5590
  constructor(g) {
5591
- if (h(this, "arm"), h(this, "offset", new fg()), h(this, "linkedBone"), h(this, "bones", new Array()), h(this, "srcPose"), g && (this.arm = g), g != null && g.bones)
5591
+ if (h(this, "arm"), h(this, "offset", new Ug()), h(this, "linkedBone"), h(this, "bones", new Array()), h(this, "srcPose"), g && (this.arm = g), g != null && g.bones)
5592
5592
  for (let I = 0; I < g.bones.length; I++)
5593
5593
  this.bones.push(g.bones[I].clone());
5594
5594
  }
@@ -5618,7 +5618,7 @@ class Rn {
5618
5618
  }
5619
5619
  getWorldTailPos(g, I = new d.Vector3()) {
5620
5620
  const e = this.getBone(g);
5621
- return e && fg.fromWorlObject3D(e).transformVec3(I.set(0, 0, 0)), I;
5621
+ return e && Ug.fromWorlObject3D(e).transformVec3(I.set(0, 0, 0)), I;
5622
5622
  }
5623
5623
  // #endregion
5624
5624
  // #region SETTERS
@@ -5641,8 +5641,8 @@ class Rn {
5641
5641
  // #region COMPUTE
5642
5642
  updateWorld() {
5643
5643
  for (const g of this.bones) {
5644
- const I = fg.fromObject3D(g), e = fg.fromWorlObject3D(g);
5645
- g.parent !== null ? e.fromMul(fg.fromWorlObject3D(g.parent), I) : (e.fromMul(this.offset, I), this.linkedBone && e.premultiply(fg.fromWorlObject3D(this.linkedBone)));
5644
+ const I = Ug.fromObject3D(g), e = Ug.fromWorlObject3D(g);
5645
+ g.parent !== null ? e.fromMul(Ug.fromWorlObject3D(g.parent), I) : (e.fromMul(this.offset, I), this.linkedBone && e.premultiply(Ug.fromWorlObject3D(this.linkedBone)));
5646
5646
  }
5647
5647
  return this;
5648
5648
  }
@@ -5654,13 +5654,13 @@ class Rn {
5654
5654
  e = this.bones[e.userData.pindex], I.premultiply(e.quaternion);
5655
5655
  return I.premultiply(this.offset.rot), this.linkedBone && I.premultiply(this.linkedBone.getWorldQuaternion(new d.Quaternion())), I;
5656
5656
  }
5657
- getWorldTransform(g, I = new fg()) {
5657
+ getWorldTransform(g, I = new Ug()) {
5658
5658
  const e = this.getBone(g);
5659
5659
  if (!e)
5660
5660
  return g === -1 ? I.copy(this.offset) : console.error("Pose.getWorldTransform - bone not found", g), I;
5661
- for (I.copy(fg.fromObject3D(e)); e.parent !== null; )
5662
- I.premultiply(fg.fromObject3D(e.parent));
5663
- return I.premultiply(this.offset), this.linkedBone && I.premultiply(fg.fromWorlObject3D(this.linkedBone)), I;
5661
+ for (I.copy(Ug.fromObject3D(e)); e.parent !== null; )
5662
+ I.premultiply(Ug.fromObject3D(e.parent));
5663
+ return I.premultiply(this.offset), this.linkedBone && I.premultiply(Ug.fromWorlObject3D(this.linkedBone)), I;
5664
5664
  }
5665
5665
  getWorldPosition(g, I = new d.Vector3()) {
5666
5666
  return I.copy(this.getWorldTransform(g).pos);
@@ -7515,9 +7515,9 @@ const SB = (i) => {
7515
7515
  sg.setState({ animationsLoaded: i });
7516
7516
  }, vB = (i) => {
7517
7517
  sg.setState({ characterWidth: i.x }), sg.setState({ characterHeight: i.y }), sg.setState({ characterDepth: i.z });
7518
- }, BV = () => sg.getState().characterHeight, Ca = (i) => {
7518
+ }, uV = () => sg.getState().characterHeight, Ca = (i) => {
7519
7519
  sg.setState({ characterState: i });
7520
- }, Ug = Ii()(() => ({
7520
+ }, Tg = Ii()(() => ({
7521
7521
  cameraRef: null,
7522
7522
  cameraPosition: new fA(0, 0, 5),
7523
7523
  bodyCenter: null,
@@ -7526,19 +7526,19 @@ const SB = (i) => {
7526
7526
  lookAt: null,
7527
7527
  movable: !0
7528
7528
  })), HB = (i) => {
7529
- Ug.setState({ cameraRef: i });
7529
+ Tg.setState({ cameraRef: i });
7530
7530
  }, na = (i) => {
7531
- Ug.setState({ cameraPosition: i });
7532
- }, mV = () => Ug.getState().cameraPosition, VB = (i) => {
7533
- Ug.setState({ bodyCenter: i });
7531
+ Tg.setState({ cameraPosition: i });
7532
+ }, bV = () => Tg.getState().cameraPosition, VB = (i) => {
7533
+ Tg.setState({ bodyCenter: i });
7534
7534
  }, XB = (i) => {
7535
- Ug.setState({ defaultPositions: i });
7535
+ Tg.setState({ defaultPositions: i });
7536
7536
  }, RB = (i) => {
7537
- Ug.setState({ defaultDistances: i });
7537
+ Tg.setState({ defaultDistances: i });
7538
7538
  }, sa = (i) => {
7539
- Ug.setState({ lookAt: i });
7540
- }, uV = () => Ug.getState().lookAt, KB = (i) => {
7541
- Ug.setState({ movable: i });
7539
+ Tg.setState({ lookAt: i });
7540
+ }, pV = () => Tg.getState().lookAt, KB = (i) => {
7541
+ Tg.setState({ movable: i });
7542
7542
  }, pI = Ii()(() => ({
7543
7543
  currentAUs: null,
7544
7544
  currentGaze: null,
@@ -7547,19 +7547,19 @@ const SB = (i) => {
7547
7547
  targets: []
7548
7548
  })), YB = (i) => {
7549
7549
  pI.setState({ targets: i });
7550
- }, bV = (i) => {
7550
+ }, ZV = (i) => {
7551
7551
  pI.setState({ currentAUs: i });
7552
- }, pV = (i) => {
7552
+ }, yV = (i) => {
7553
7553
  pI.setState({ currentGaze: i });
7554
- }, ZV = (i) => {
7554
+ }, SV = (i) => {
7555
7555
  pI.setState({ currentHeadPose: i });
7556
7556
  }, Fo = (i) => {
7557
7557
  pI.setState({ lookAtCamera: i }), i ? wB() : LB();
7558
- }, yV = (i) => {
7558
+ }, WV = (i) => {
7559
7559
  pI.setState({ lookAtCamera: i });
7560
7560
  const g = sg.getState().globalManager;
7561
7561
  if (i) {
7562
- const I = Ug.getState().cameraRef;
7562
+ const I = Tg.getState().cameraRef;
7563
7563
  g == null || g.lookAtAndSteady(I);
7564
7564
  } else
7565
7565
  g == null || g.releaseLookAt();
@@ -7568,7 +7568,7 @@ const SB = (i) => {
7568
7568
  if (i)
7569
7569
  g == null || g.lookAtAndKeep(i);
7570
7570
  else {
7571
- const I = Ug.getState().cameraRef;
7571
+ const I = Tg.getState().cameraRef;
7572
7572
  g == null || g.lookAtAndKeep(I);
7573
7573
  }
7574
7574
  }, LB = () => {
@@ -7583,15 +7583,15 @@ const SB = (i) => {
7583
7583
  Pe.setState({ animationsNames: i });
7584
7584
  }, FB = (i) => {
7585
7585
  Pe.setState({ animations: i });
7586
- }, SV = () => Pe.getState().animations, WV = (i) => {
7586
+ }, vV = () => Pe.getState().animations, HV = (i) => {
7587
7587
  Pe.setState({ autoPlay: i });
7588
- }, vV = (i) => {
7588
+ }, VV = (i) => {
7589
7589
  if (Pe.setState({ autoPlay: !1 }), Pe.getState().animationsNames.includes(i)) {
7590
7590
  const I = sg.getState().animationManager;
7591
7591
  I == null || I.playAnimation(i);
7592
7592
  }
7593
7593
  };
7594
- var gI = /* @__PURE__ */ ((i) => (i.eye = "eye", i.mouth = "mouth", i.neck = "neck", i.clavicle = "clavicle", i.torso = "torso", i.belly = "belly", i.lowerbelly = "lowerbelly", i.hips = "hips", i.higherthigh = "higherthigh", i.thigh = "thigh", i.knee = "knee", i.leg = "leg", i.feet = "feet", i))(gI || {}), VI = /* @__PURE__ */ ((i) => (i[i.face = 1] = "face", i[i.eighthleft = 2] = "eighthleft", i[i.thirdleft = 3] = "thirdleft", i[i.quarterleft = 4] = "quarterleft", i[i.halfleft = 5] = "halfleft", i[i.eighthright = 6] = "eighthright", i[i.thirdright = 7] = "thirdright", i[i.quarterright = 8] = "quarterright", i[i.halfright = 9] = "halfright", i))(VI || {}), Tg = /* @__PURE__ */ ((i) => (i[i.veryclose = 1] = "veryclose", i[i.closer = 2] = "closer", i[i.close = 3] = "close", i[i.midclose = 4] = "midclose", i[i.medium = 5] = "medium", i[i.midfar = 6] = "midfar", i[i.far = 7] = "far", i[i.farther = 8] = "farther", i[i.veryfar = 9] = "veryfar", i))(Tg || {}), Si = /* @__PURE__ */ ((i) => (i.cc3 = "CC_Base_Body", i.rpm = "Wolf3D_Body", i.avatarsdk = "AvatarBody", i.avaturn = "Body_Mesh", i))(Si || {}), Kn = /* @__PURE__ */ ((i) => (i.Jay = "joy", i.Anger = "anger", i.Contempt = "contempt", i.Disgust = "disgust", i.Dislike = "dislike", i.Distress = "distress", i.Fear = "fear", i.Frustration = "frustration", i.Guilt = "guilt", i.Hope = "hope", i.Love = "love", i.Pride = "pride", i.Regret = "regret", i.Relief = "relief", i.Sadness = "sadness", i.Shame = "shame", i.Smile = "smile", i.Surprise = "surprise", i.Neutral = "neutral", i))(Kn || {});
7594
+ var Kg = /* @__PURE__ */ ((i) => (i.eye = "eye", i.mouth = "mouth", i.neck = "neck", i.clavicle = "clavicle", i.torso = "torso", i.belly = "belly", i.lowerbelly = "lowerbelly", i.hips = "hips", i.higherthigh = "higherthigh", i.thigh = "thigh", i.knee = "knee", i.leg = "leg", i.feet = "feet", i))(Kg || {}), VI = /* @__PURE__ */ ((i) => (i[i.face = 1] = "face", i[i.eighthleft = 2] = "eighthleft", i[i.thirdleft = 3] = "thirdleft", i[i.quarterleft = 4] = "quarterleft", i[i.halfleft = 5] = "halfleft", i[i.eighthright = 6] = "eighthright", i[i.thirdright = 7] = "thirdright", i[i.quarterright = 8] = "quarterright", i[i.halfright = 9] = "halfright", i))(VI || {}), Fg = /* @__PURE__ */ ((i) => (i[i.veryclose = 1] = "veryclose", i[i.closer = 2] = "closer", i[i.close = 3] = "close", i[i.midclose = 4] = "midclose", i[i.medium = 5] = "medium", i[i.midfar = 6] = "midfar", i[i.far = 7] = "far", i[i.farther = 8] = "farther", i[i.veryfar = 9] = "veryfar", i))(Fg || {}), Si = /* @__PURE__ */ ((i) => (i.cc3 = "CC_Base_Body", i.rpm = "Wolf3D_Body", i.avatarsdk = "AvatarBody", i.avaturn = "Body_Mesh", i))(Si || {}), Kn = /* @__PURE__ */ ((i) => (i.Jay = "joy", i.Anger = "anger", i.Contempt = "contempt", i.Disgust = "disgust", i.Dislike = "dislike", i.Distress = "distress", i.Fear = "fear", i.Frustration = "frustration", i.Guilt = "guilt", i.Hope = "hope", i.Love = "love", i.Pride = "pride", i.Regret = "regret", i.Relief = "relief", i.Sadness = "sadness", i.Shame = "shame", i.Smile = "smile", i.Surprise = "surprise", i.Neutral = "neutral", i))(Kn || {});
7595
7595
  const aa = /* @__PURE__ */ new Map([
7596
7596
  [0, "sil"],
7597
7597
  [1, "aa"],
@@ -7706,36 +7706,46 @@ const aa = /* @__PURE__ */ new Map([
7706
7706
  ["b", 21],
7707
7707
  ["m", 21]
7708
7708
  ]), zB = {
7709
- position: gI.mouth,
7710
- distance: Tg.farther,
7711
- lookAt: gI.lowerbelly
7709
+ position: Kg.mouth,
7710
+ distance: Fg.farther,
7711
+ lookAt: Kg.lowerbelly
7712
7712
  }, fB = {
7713
- position: gI.mouth,
7714
- distance: Tg.close,
7715
- lookAt: gI.mouth
7713
+ position: Kg.mouth,
7714
+ distance: Fg.close,
7715
+ lookAt: Kg.mouth
7716
7716
  }, MB = {
7717
- position: gI.mouth,
7718
- distance: Tg.midclose,
7719
- lookAt: gI.mouth
7717
+ position: Kg.mouth,
7718
+ distance: Fg.midclose,
7719
+ lookAt: Kg.mouth
7720
7720
  }, UB = {
7721
- position: gI.neck,
7722
- distance: Tg.close,
7723
- lookAt: gI.neck
7721
+ position: Kg.neck,
7722
+ distance: Fg.close,
7723
+ lookAt: Kg.neck
7724
7724
  }, QB = {
7725
- position: gI.eye,
7726
- distance: Tg.medium,
7727
- lookAt: gI.neck
7725
+ position: Kg.eye,
7726
+ distance: Fg.medium,
7727
+ lookAt: Kg.neck
7728
7728
  }, TB = {
7729
- position: gI.eye,
7730
- distance: Tg.medium,
7731
- lookAt: gI.clavicle
7732
- }, HV = {
7729
+ position: Kg.eye,
7730
+ distance: Fg.medium,
7731
+ lookAt: Kg.clavicle
7732
+ }, DB = {
7733
+ position: Kg.eye,
7734
+ distance: Fg.midfar,
7735
+ lookAt: Kg.belly
7736
+ }, EB = {
7737
+ position: Kg.eye,
7738
+ distance: Fg.far,
7739
+ lookAt: Kg.lowerbelly
7740
+ }, XV = {
7733
7741
  default: zB,
7734
7742
  head: fB,
7735
7743
  neck: MB,
7736
7744
  shoulders: UB,
7737
7745
  chest: QB,
7738
- belly: TB
7746
+ belly: TB,
7747
+ knees: DB,
7748
+ feet: EB
7739
7749
  }, Sg = Ii()(() => ({
7740
7750
  credentials: void 0,
7741
7751
  currentUtterance: null,
@@ -7746,73 +7756,73 @@ const aa = /* @__PURE__ */ new Map([
7746
7756
  voices: [],
7747
7757
  textToSpeak: null,
7748
7758
  visemeIntensity: 1
7749
- })), DB = (i) => {
7759
+ })), xB = (i) => {
7750
7760
  Sg.setState({ credentials: i });
7751
- }, EB = (i) => {
7761
+ }, PB = (i) => {
7752
7762
  if (i) {
7753
7763
  const g = Sg.getState().voice;
7754
7764
  g && (i.voice = g);
7755
7765
  }
7756
7766
  Sg.setState({ currentUtterance: i }), Sg.setState({ textToSpeak: null });
7757
- }, VV = (i) => {
7767
+ }, RV = (i) => {
7758
7768
  Sg.setState({ visemes: i });
7759
7769
  }, Sr = (i) => {
7760
7770
  Sg.setState({ visemes: [...Sg.getState().visemes, i] });
7761
- }, XV = (i, g) => {
7771
+ }, KV = (i, g) => {
7762
7772
  const I = JB.get(i.name);
7763
7773
  if (I) {
7764
7774
  const e = kB.get(I);
7765
7775
  e !== void 0 && Sr({ ...i, name: `${e}`, elapsedTime: i.elapsedTime * (g || 1e7) });
7766
7776
  }
7767
- }, xB = (i) => {
7777
+ }, jB = (i) => {
7768
7778
  Sg.setState({ currentVisemeIndex: i });
7769
- }, PB = () => {
7779
+ }, OB = () => {
7770
7780
  var i;
7771
7781
  Sg.setState({
7772
7782
  visemes: [],
7773
7783
  currentVisemeIndex: 0
7774
7784
  }), (i = sg.getState().lipSyncManager) == null || i.stop();
7775
- }, jB = (i) => {
7785
+ }, qB = (i) => {
7776
7786
  Sg.setState({ voice: i });
7777
7787
  }, la = (i) => {
7778
7788
  Sg.setState({ voices: i });
7779
- }, RV = (i) => {
7789
+ }, YV = (i) => {
7780
7790
  Sg.setState({ textToSpeak: i });
7781
- }, KV = () => Sg.getState().voices, YV = (i) => {
7791
+ }, wV = () => Sg.getState().voices, LV = (i) => {
7782
7792
  Sg.setState({ visemeIntensity: i });
7783
- }, OB = (i, g, I) => {
7784
- let e = I[i.position || gI.eye].getComponent(0);
7785
- const t = I[i.position || gI.mouth].getComponent(1);
7793
+ }, _B = (i, g, I) => {
7794
+ let e = I[i.position || Kg.eye].getComponent(0);
7795
+ const t = I[i.position || Kg.mouth].getComponent(1);
7786
7796
  let o = 0;
7787
7797
  const C = typeof i.distance == "string" ? parseInt(i.distance) : i.distance, n = typeof i.rotation == "string" ? parseInt(i.rotation) : i.rotation;
7788
7798
  switch (C) {
7789
- case Tg.veryclose:
7799
+ case Fg.veryclose:
7790
7800
  o = g.veryclose;
7791
7801
  break;
7792
- case Tg.closer:
7802
+ case Fg.closer:
7793
7803
  o = g.closer;
7794
7804
  break;
7795
- case Tg.close:
7805
+ case Fg.close:
7796
7806
  o = g.close;
7797
7807
  break;
7798
- case Tg.midclose:
7808
+ case Fg.midclose:
7799
7809
  o = g.midclose;
7800
7810
  break;
7801
- case Tg.medium:
7811
+ case Fg.medium:
7802
7812
  o = g.medium;
7803
7813
  break;
7804
- case Tg.midfar:
7814
+ case Fg.midfar:
7805
7815
  o = g.midfar;
7806
7816
  break;
7807
- case Tg.far:
7817
+ case Fg.far:
7808
7818
  o = g.far;
7809
7819
  break;
7810
- case Tg.farther:
7820
+ case Fg.farther:
7811
7821
  case void 0:
7812
7822
  default:
7813
7823
  o = g.farther;
7814
7824
  break;
7815
- case Tg.veryfar:
7825
+ case Fg.veryfar:
7816
7826
  o = g.veryfar;
7817
7827
  break;
7818
7828
  }
@@ -7850,10 +7860,10 @@ const aa = /* @__PURE__ */ new Map([
7850
7860
  return new d.Vector3(e, t, o);
7851
7861
  };
7852
7862
  var ht = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7853
- function qB(i) {
7863
+ function $B(i) {
7854
7864
  return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
7855
7865
  }
7856
- function _B(i) {
7866
+ function gm(i) {
7857
7867
  if (i.__esModule) return i;
7858
7868
  var g = i.default;
7859
7869
  if (typeof g == "function") {
@@ -7874,29 +7884,29 @@ function _B(i) {
7874
7884
  }
7875
7885
  var Wr = { exports: {} };
7876
7886
  let Gt;
7877
- const $B = new Uint8Array(16);
7878
- function gm() {
7887
+ const Im = new Uint8Array(16);
7888
+ function em() {
7879
7889
  if (!Gt && (Gt = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Gt))
7880
7890
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
7881
- return Gt($B);
7891
+ return Gt(Im);
7882
7892
  }
7883
- const zg = [];
7893
+ const Mg = [];
7884
7894
  for (let i = 0; i < 256; ++i)
7885
- zg.push((i + 256).toString(16).slice(1));
7886
- function Im(i, g = 0) {
7887
- return zg[i[g + 0]] + zg[i[g + 1]] + zg[i[g + 2]] + zg[i[g + 3]] + "-" + zg[i[g + 4]] + zg[i[g + 5]] + "-" + zg[i[g + 6]] + zg[i[g + 7]] + "-" + zg[i[g + 8]] + zg[i[g + 9]] + "-" + zg[i[g + 10]] + zg[i[g + 11]] + zg[i[g + 12]] + zg[i[g + 13]] + zg[i[g + 14]] + zg[i[g + 15]];
7895
+ Mg.push((i + 256).toString(16).slice(1));
7896
+ function im(i, g = 0) {
7897
+ return Mg[i[g + 0]] + Mg[i[g + 1]] + Mg[i[g + 2]] + Mg[i[g + 3]] + "-" + Mg[i[g + 4]] + Mg[i[g + 5]] + "-" + Mg[i[g + 6]] + Mg[i[g + 7]] + "-" + Mg[i[g + 8]] + Mg[i[g + 9]] + "-" + Mg[i[g + 10]] + Mg[i[g + 11]] + Mg[i[g + 12]] + Mg[i[g + 13]] + Mg[i[g + 14]] + Mg[i[g + 15]];
7888
7898
  }
7889
- const em = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ca = {
7890
- randomUUID: em
7899
+ const tm = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ca = {
7900
+ randomUUID: tm
7891
7901
  };
7892
- function im(i, g, I) {
7902
+ function om(i, g, I) {
7893
7903
  if (ca.randomUUID && !i)
7894
7904
  return ca.randomUUID();
7895
7905
  i = i || {};
7896
- const e = i.random || (i.rng || gm)();
7897
- return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, Im(e);
7906
+ const e = i.random || (i.rng || em)();
7907
+ return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, im(e);
7898
7908
  }
7899
- const Qt = () => im(), Cg = () => Qt().replace(new RegExp("-", "g"), "").toUpperCase();
7909
+ const Qt = () => om(), Cg = () => Qt().replace(new RegExp("-", "g"), "").toUpperCase();
7900
7910
  var mg;
7901
7911
  (function(i) {
7902
7912
  i[i.Debug = 0] = "Debug", i[i.Info = 1] = "Info", i[i.Warning = 2] = "Warning", i[i.Error = 3] = "Error", i[i.None = 4] = "None";
@@ -8015,7 +8025,7 @@ class Vr extends Ve {
8015
8025
  super("ConnectionEstablishedEvent", g);
8016
8026
  }
8017
8027
  }
8018
- class tm extends Ve {
8028
+ class Cm extends Ve {
8019
8029
  constructor(g, I, e) {
8020
8030
  super("ConnectionClosedEvent", g, mg.Debug), this.privReason = e, this.privStatusCode = I;
8021
8031
  }
@@ -8026,7 +8036,7 @@ class tm extends Ve {
8026
8036
  return this.privStatusCode;
8027
8037
  }
8028
8038
  }
8029
- class om extends Ve {
8039
+ class nm extends Ve {
8030
8040
  constructor(g, I, e) {
8031
8041
  super("ConnectionErrorEvent", g, mg.Debug), this.privMessage = I, this.privType = e;
8032
8042
  }
@@ -8037,7 +8047,7 @@ class om extends Ve {
8037
8047
  return this.privType;
8038
8048
  }
8039
8049
  }
8040
- class Cm extends Ve {
8050
+ class sm extends Ve {
8041
8051
  constructor(g, I, e) {
8042
8052
  super("ConnectionEstablishErrorEvent", g, mg.Error), this.privStatusCode = I, this.privReason = e;
8043
8053
  }
@@ -8059,7 +8069,7 @@ class NC extends Ve {
8059
8069
  return this.privMessage;
8060
8070
  }
8061
8071
  }
8062
- class nm extends Ve {
8072
+ class am extends Ve {
8063
8073
  constructor(g, I, e) {
8064
8074
  super("ConnectionMessageSentEvent", g), this.privNetworkSentTime = I, this.privMessage = e;
8065
8075
  }
@@ -8082,7 +8092,7 @@ class Rg extends Error {
8082
8092
  super(g), this.name = "ArgumentNull", this.message = g;
8083
8093
  }
8084
8094
  }
8085
- class _g extends Error {
8095
+ class $g extends Error {
8086
8096
  /**
8087
8097
  * Creates an instance of InvalidOperationError.
8088
8098
  *
@@ -8114,9 +8124,9 @@ var J;
8114
8124
  let Dt = class {
8115
8125
  constructor(g, I, e, t) {
8116
8126
  if (this.privBody = null, g === J.Text && I && typeof I != "string")
8117
- throw new _g("Payload must be a string");
8127
+ throw new $g("Payload must be a string");
8118
8128
  if (g === J.Binary && I && !(I instanceof ArrayBuffer))
8119
- throw new _g("Payload must be ArrayBuffer");
8129
+ throw new $g("Payload must be ArrayBuffer");
8120
8130
  switch (this.privMessageType = g, this.privBody = I, this.privHeaders = e || {}, this.privId = t || Cg(), this.messageType) {
8121
8131
  case J.Binary:
8122
8132
  this.privSize = this.binaryBody !== null ? this.binaryBody.byteLength : 0;
@@ -8136,12 +8146,12 @@ let Dt = class {
8136
8146
  }
8137
8147
  get textBody() {
8138
8148
  if (this.privMessageType === J.Binary)
8139
- throw new _g("Not supported for binary message");
8149
+ throw new $g("Not supported for binary message");
8140
8150
  return this.privBody;
8141
8151
  }
8142
8152
  get binaryBody() {
8143
8153
  if (this.privMessageType === J.Text)
8144
- throw new _g("Not supported for text message");
8154
+ throw new $g("Not supported for text message");
8145
8155
  return this.privBody;
8146
8156
  }
8147
8157
  get id() {
@@ -8159,7 +8169,7 @@ class Jo {
8159
8169
  return this.privReason;
8160
8170
  }
8161
8171
  }
8162
- class sm {
8172
+ class lm {
8163
8173
  constructor() {
8164
8174
  this.privMap = {};
8165
8175
  }
@@ -8179,12 +8189,12 @@ class sm {
8179
8189
  }
8180
8190
  }
8181
8191
  }
8182
- class am extends JI {
8192
+ class cm extends JI {
8183
8193
  constructor(g, I = mg.Info) {
8184
8194
  super(g, I);
8185
8195
  }
8186
8196
  }
8187
- class lm extends am {
8197
+ class rm extends cm {
8188
8198
  constructor(g) {
8189
8199
  super("SendingAgentContextMessageEvent"), this.privAgentConfig = g;
8190
8200
  }
@@ -8523,9 +8533,9 @@ let ki = class {
8523
8533
  }
8524
8534
  throwIfDispose() {
8525
8535
  if (this.isDisposed())
8526
- throw this.privDisposeReason ? new _g(this.privDisposeReason) : new Ln("Queue");
8536
+ throw this.privDisposeReason ? new $g(this.privDisposeReason) : new Ln("Queue");
8527
8537
  if (this.privIsDisposing)
8528
- throw new _g("Queue disposing");
8538
+ throw new $g("Queue disposing");
8529
8539
  }
8530
8540
  };
8531
8541
  class zi {
@@ -8533,9 +8543,9 @@ class zi {
8533
8543
  if (this.privPayload = null, !I)
8534
8544
  throw new Rg("payload");
8535
8545
  if (g === J.Binary && I.__proto__.constructor.name !== "ArrayBuffer")
8536
- throw new _g("Payload must be ArrayBuffer");
8546
+ throw new $g("Payload must be ArrayBuffer");
8537
8547
  if (g === J.Text && typeof I != "string")
8538
- throw new _g("Payload must be a string");
8548
+ throw new $g("Payload must be a string");
8539
8549
  this.privMessageType = g, this.privPayload = I, this.privId = e || Cg();
8540
8550
  }
8541
8551
  get messageType() {
@@ -8546,19 +8556,19 @@ class zi {
8546
8556
  }
8547
8557
  get textContent() {
8548
8558
  if (this.privMessageType === J.Binary)
8549
- throw new _g("Not supported for binary message");
8559
+ throw new $g("Not supported for binary message");
8550
8560
  return this.privPayload;
8551
8561
  }
8552
8562
  get binaryContent() {
8553
8563
  if (this.privMessageType === J.Text)
8554
- throw new _g("Not supported for text message");
8564
+ throw new $g("Not supported for text message");
8555
8565
  return this.privPayload;
8556
8566
  }
8557
8567
  get id() {
8558
8568
  return this.privId;
8559
8569
  }
8560
8570
  }
8561
- class cm {
8571
+ class dm {
8562
8572
  constructor(g, I) {
8563
8573
  this.privActualSampleRate = g, this.privDesiredSampleRate = I;
8564
8574
  }
@@ -8596,7 +8606,7 @@ class cm {
8596
8606
  return C;
8597
8607
  }
8598
8608
  }
8599
- var rm = function(i, g, I, e) {
8609
+ var Am = function(i, g, I, e) {
8600
8610
  function t(o) {
8601
8611
  return o instanceof I ? o : new I(function(C) {
8602
8612
  C(o);
@@ -8652,8 +8662,8 @@ class Xr {
8652
8662
  }
8653
8663
  read() {
8654
8664
  if (this.privIsReadEnded)
8655
- throw new _g("Stream read has already finished");
8656
- return this.privReaderQueue.dequeue().then((g) => rm(this, void 0, void 0, function* () {
8665
+ throw new $g("Stream read has already finished");
8666
+ return this.privReaderQueue.dequeue().then((g) => Am(this, void 0, void 0, function* () {
8657
8667
  return (g === void 0 || g.isEnd) && (yield this.privReaderQueue.dispose("End of stream reached")), g;
8658
8668
  }));
8659
8669
  }
@@ -8662,7 +8672,7 @@ class Xr {
8662
8672
  }
8663
8673
  throwIfClosed() {
8664
8674
  if (this.privIsWriteEnded)
8665
- throw new _g("Stream closed");
8675
+ throw new $g("Stream closed");
8666
8676
  }
8667
8677
  }
8668
8678
  var fi;
@@ -8697,12 +8707,12 @@ class Nn extends Xr {
8697
8707
  }), super.close();
8698
8708
  }
8699
8709
  }
8700
- class Ng {
8710
+ class Jg {
8701
8711
  static load() {
8702
8712
  const g = /* @__PURE__ */ new Map([[0, () => {
8703
8713
  }]]), I = /* @__PURE__ */ new Map(), t = "data:text/javascript;base64," + btoa(`!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=14)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return d}));const r=new Map,o=new Map,i=e=>{const t=r.get(e);if(void 0===t)throw new Error('There is no interval scheduled with the given id "'.concat(e,'".'));clearTimeout(t),r.delete(e)},u=e=>{const t=o.get(e);if(void 0===t)throw new Error('There is no timeout scheduled with the given id "'.concat(e,'".'));clearTimeout(t),o.delete(e)},f=(e,t)=>{let n,r;if("performance"in self){const o=performance.now();n=o,r=e-Math.max(0,o-t)}else n=Date.now(),r=e;return{expected:n+r,remainingDelay:r}},c=(e,t,n,r)=>{const o="performance"in self?performance.now():Date.now();o>n?postMessage({id:null,method:"call",params:{timerId:t}}):e.set(t,setTimeout(c,n-o,e,t,n))},a=(e,t,n)=>{const{expected:o,remainingDelay:i}=f(e,n);r.set(t,setTimeout(c,i,r,t,o))},d=(e,t,n)=>{const{expected:r,remainingDelay:i}=f(e,n);o.set(t,setTimeout(c,i,o,t,r))}},function(e,t,n){"use strict";n.r(t);var r=n(2);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var i=n(3);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var u=n(4);for(var o in u)"default"!==o&&function(e){n.d(t,e,(function(){return u[e]}))}(o);var f=n(5);for(var o in f)"default"!==o&&function(e){n.d(t,e,(function(){return f[e]}))}(o);var c=n(6);for(var o in c)"default"!==o&&function(e){n.d(t,e,(function(){return c[e]}))}(o);var a=n(7);for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);var d=n(8);for(var o in d)"default"!==o&&function(e){n.d(t,e,(function(){return d[e]}))}(o);var s=n(9);for(var o in s)"default"!==o&&function(e){n.d(t,e,(function(){return s[e]}))}(o)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(11);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var i=n(12);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var u=n(13);for(var o in u)"default"!==o&&function(e){n.d(t,e,(function(){return u[e]}))}(o)},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);var u=n(10);for(var i in u)"default"!==i&&function(e){n.d(t,e,(function(){return u[e]}))}(i);addEventListener("message",({data:e})=>{try{if("clear"===e.method){const{id:t,params:{timerId:n}}=e;Object(r.b)(n),postMessage({error:null,id:t})}else{if("set"!==e.method)throw new Error('The given method "'.concat(e.method,'" is not supported'));{const{params:{delay:t,now:n,timerId:o}}=e;Object(r.d)(t,o,n)}}}catch(t){postMessage({error:{message:t.message},id:e.id,result:null})}})}]);`), o = new Worker(t);
8704
8714
  return o.addEventListener("message", ({ data: s }) => {
8705
- if (Ng.isCallNotification(s)) {
8715
+ if (Jg.isCallNotification(s)) {
8706
8716
  const { params: { timerId: l } } = s, a = g.get(l);
8707
8717
  if (typeof a == "number") {
8708
8718
  const c = I.get(a);
@@ -8712,7 +8722,7 @@ class Ng {
8712
8722
  a(), g.delete(l);
8713
8723
  else
8714
8724
  throw new Error("The timer is in an undefined state.");
8715
- } else if (Ng.isClearResponse(s)) {
8725
+ } else if (Jg.isClearResponse(s)) {
8716
8726
  const { id: l } = s, a = I.get(l);
8717
8727
  if (a === void 0)
8718
8728
  throw new Error("The timer is in an undefined state.");
@@ -8745,7 +8755,7 @@ class Ng {
8745
8755
  };
8746
8756
  }
8747
8757
  static loadWorkerTimers() {
8748
- return () => (Ng.workerTimers !== null || (Ng.workerTimers = Ng.load()), Ng.workerTimers);
8758
+ return () => (Jg.workerTimers !== null || (Jg.workerTimers = Jg.load()), Jg.workerTimers);
8749
8759
  }
8750
8760
  static isCallNotification(g) {
8751
8761
  return g.method !== void 0 && g.method === "call";
@@ -8754,10 +8764,10 @@ class Ng {
8754
8764
  return g.error === null && typeof g.id == "number";
8755
8765
  }
8756
8766
  }
8757
- Ng.workerTimers = null;
8758
- Ng.clearTimeout = (i) => Ng.timers().clearTimeout(i);
8759
- Ng.setTimeout = (i, g) => Ng.timers().setTimeout(i, g);
8760
- Ng.timers = Ng.loadWorkerTimers();
8767
+ Jg.workerTimers = null;
8768
+ Jg.clearTimeout = (i) => Jg.timers().clearTimeout(i);
8769
+ Jg.setTimeout = (i, g) => Jg.timers().setTimeout(i, g);
8770
+ Jg.timers = Jg.loadWorkerTimers();
8761
8771
  class PI extends JI {
8762
8772
  constructor(g) {
8763
8773
  super("BackgroundEvent", mg.Error), this.privError = g;
@@ -8879,7 +8889,7 @@ class A {
8879
8889
  throw new Error("throwIfNotUndefined:" + I);
8880
8890
  }
8881
8891
  }
8882
- class dm {
8892
+ class hm {
8883
8893
  constructor(g = mg.None) {
8884
8894
  this.privLogPath = void 0, this.privEnableConsoleOutput = !0, this.privLogLevelFilter = g;
8885
8895
  }
@@ -9073,7 +9083,7 @@ var Bt = function(i, g, I, e) {
9073
9083
  l((e = e.apply(i, g || [])).next());
9074
9084
  });
9075
9085
  };
9076
- const Am = "MICROPHONE-WorkletSourceUrl";
9086
+ const Gm = "MICROPHONE-WorkletSourceUrl";
9077
9087
  class mI {
9078
9088
  constructor(g, I, e, t) {
9079
9089
  this.privRecorder = g, this.deviceId = I, this.privStreams = {}, this.privOutputChunkSize = mI.AUDIOFORMAT.avgBytesPerSec / 10, this.privId = e || Cg(), this.privEvents = new yI(), this.privMediaStream = t || null, this.privIsClosing = !1;
@@ -9160,7 +9170,7 @@ class mI {
9160
9170
  }));
9161
9171
  }
9162
9172
  setProperty(g, I) {
9163
- if (g === Am)
9173
+ if (g === Gm)
9164
9174
  this.privRecorder.setWorkletUrl(I);
9165
9175
  else
9166
9176
  throw new Error("Property '" + g + "' is not supported on Microphone.");
@@ -9242,7 +9252,7 @@ var zo = function(i, g, I, e) {
9242
9252
  l((e = e.apply(i, g || [])).next());
9243
9253
  });
9244
9254
  };
9245
- class hm {
9255
+ class Bm {
9246
9256
  constructor(g, I, e) {
9247
9257
  this.privStreams = {}, this.privHeaderEnd = 44, this.privId = e || Cg(), this.privEvents = new yI(), this.privSource = g, typeof window < "u" && typeof Blob < "u" && this.privSource instanceof Blob ? this.privFilename = g.name : this.privFilename = I || "unknown.wav", this.privAudioFormatPromise = this.readHeader();
9248
9258
  }
@@ -9371,7 +9381,7 @@ class fo {
9371
9381
  this.privStopInputOnRelease = g;
9372
9382
  }
9373
9383
  record(g, I, e) {
9374
- const o = new cm(g.sampleRate, 16e3), C = g.createMediaStreamSource(I), n = () => {
9384
+ const o = new dm(g.sampleRate, 16e3), C = g.createMediaStreamSource(I), n = () => {
9375
9385
  const a = (() => {
9376
9386
  let c = 0;
9377
9387
  try {
@@ -9522,9 +9532,9 @@ class Mi {
9522
9532
  this.privConnectionEstablishDeferral.reject(g);
9523
9533
  });
9524
9534
  }, this.privWebsocketClient.onerror = (g) => {
9525
- this.onEvent(new om(this.privConnectionId, g.message, g.type)), this.privLastErrorReceived = g.message;
9535
+ this.onEvent(new nm(this.privConnectionId, g.message, g.type)), this.privLastErrorReceived = g.message;
9526
9536
  }, this.privWebsocketClient.onclose = (g) => {
9527
- this.privConnectionState === pg.Connecting ? (this.privConnectionState = pg.Disconnected, this.privConnectionEstablishDeferral.resolve(new Jo(g.code, g.reason + " " + this.privLastErrorReceived))) : (this.privConnectionState = pg.Disconnected, this.privWebsocketClient = null, this.onEvent(new tm(this.privConnectionId, g.code, g.reason))), this.onClose(g.code, g.reason).catch((I) => {
9537
+ this.privConnectionState === pg.Connecting ? (this.privConnectionState = pg.Disconnected, this.privConnectionEstablishDeferral.resolve(new Jo(g.code, g.reason + " " + this.privLastErrorReceived))) : (this.privConnectionState = pg.Disconnected, this.privWebsocketClient = null, this.onEvent(new Cm(this.privConnectionId, g.code, g.reason))), this.onClose(g.code, g.reason).catch((I) => {
9528
9538
  hg.instance.onEvent(new PI(I));
9529
9539
  });
9530
9540
  }, this.privWebsocketClient.onmessage = (g) => {
@@ -9580,7 +9590,7 @@ class Mi {
9580
9590
  try {
9581
9591
  if (!g)
9582
9592
  return Promise.resolve();
9583
- if (this.onEvent(new nm(this.privConnectionId, (/* @__PURE__ */ new Date()).toISOString(), g.Message)), this.isWebsocketOpen)
9593
+ if (this.onEvent(new am(this.privConnectionId, (/* @__PURE__ */ new Date()).toISOString(), g.Message)), this.isWebsocketOpen)
9584
9594
  this.privWebsocketClient.send(g.RawWebsocketMessage.payload);
9585
9595
  else
9586
9596
  return Promise.reject("websocket send error: Websocket not ready " + this.privConnectionId + " " + g.Message.id + " " + new Error().stack);
@@ -9650,7 +9660,7 @@ class Mi {
9650
9660
  }
9651
9661
  }
9652
9662
  Mi.forceNpmWebSocket = !1;
9653
- var Gm = function(i, g, I, e) {
9663
+ var mm = function(i, g, I, e) {
9654
9664
  function t(o) {
9655
9665
  return o instanceof I ? o : new I(function(C) {
9656
9666
  C(o);
@@ -9706,7 +9716,7 @@ class zI {
9706
9716
  this.privUri = g + s, this.privId = n || Cg(), this.privConnectionMessageAdapter = new Mi(this.privUri, this.id, this.privMessageFormatter, o, e, C);
9707
9717
  }
9708
9718
  dispose() {
9709
- return Gm(this, void 0, void 0, function* () {
9719
+ return mm(this, void 0, void 0, function* () {
9710
9720
  this.privIsDisposed = !0, this.privConnectionMessageAdapter && (yield this.privConnectionMessageAdapter.close());
9711
9721
  });
9712
9722
  }
@@ -9763,7 +9773,7 @@ class ao {
9763
9773
  });
9764
9774
  }
9765
9775
  }
9766
- return this.privAudioNode.read().then((g) => (g && g.buffer && (this.privBuffers.push(new Bm(g, this.privBufferSerial++, this.privBufferedBytes)), this.privBufferedBytes += g.buffer.byteLength), g));
9776
+ return this.privAudioNode.read().then((g) => (g && g.buffer && (this.privBuffers.push(new um(g, this.privBufferSerial++, this.privBufferedBytes)), this.privBufferedBytes += g.buffer.byteLength), g));
9767
9777
  }
9768
9778
  detach() {
9769
9779
  return this.privBuffers = void 0, this.privAudioNode.detach();
@@ -9796,7 +9806,7 @@ class ao {
9796
9806
  return 0;
9797
9807
  }
9798
9808
  }
9799
- class Bm {
9809
+ class um {
9800
9810
  constructor(g, I, e) {
9801
9811
  this.chunk = g, this.serial = I, this.byteOffset = e;
9802
9812
  }
@@ -9896,10 +9906,10 @@ class Fn extends $i {
9896
9906
  * @returns {PushAudioInputStream} The push audio input stream being created.
9897
9907
  */
9898
9908
  static create(g) {
9899
- return new mm(g);
9909
+ return new bm(g);
9900
9910
  }
9901
9911
  }
9902
- class mm extends Fn {
9912
+ class bm extends Fn {
9903
9913
  /**
9904
9914
  * Creates and initalizes an instance with the given values.
9905
9915
  * @constructor
@@ -10291,7 +10301,7 @@ k.SpeechSynthesisOutputFormatToString = {
10291
10301
  [f.Raw44100Hz16BitMonoPcm]: "raw-44100hz-16bit-mono-pcm",
10292
10302
  [f.Riff44100Hz16BitMonoPcm]: "riff-44100hz-16bit-mono-pcm"
10293
10303
  };
10294
- var um = function(i, g, I, e) {
10304
+ var pm = function(i, g, I, e) {
10295
10305
  function t(o) {
10296
10306
  return o instanceof I ? o : new I(function(C) {
10297
10307
  C(o);
@@ -10396,7 +10406,7 @@ class kn extends gt {
10396
10406
  * @returns {Promise<number>} - Audio buffer length has been read.
10397
10407
  */
10398
10408
  read(g) {
10399
- return um(this, void 0, void 0, function* () {
10409
+ return pm(this, void 0, void 0, function* () {
10400
10410
  const I = new Int8Array(g);
10401
10411
  let e = 0;
10402
10412
  if (this.privLastChunkView !== void 0) {
@@ -10519,7 +10529,7 @@ class ge {
10519
10529
  * @returns {AudioConfig} The audio input configuration being created.
10520
10530
  */
10521
10531
  static fromWavFileInput(g, I = "unnamedBuffer.wav") {
10522
- return new we(new hm(g, I));
10532
+ return new we(new Bm(g, I));
10523
10533
  }
10524
10534
  /**
10525
10535
  * Creates an AudioConfig object representing the specified stream.
@@ -10733,7 +10743,7 @@ class wr {
10733
10743
  }
10734
10744
  class Mn {
10735
10745
  }
10736
- class bm {
10746
+ class Zm {
10737
10747
  /**
10738
10748
  * Create and initializes a new instance.
10739
10749
  * @constructor
@@ -10776,7 +10786,7 @@ class bm {
10776
10786
  this.privDisposed || (this.privDisposed = !0);
10777
10787
  }
10778
10788
  }
10779
- class Fg {
10789
+ class kg {
10780
10790
  /**
10781
10791
  * Creates and initializes an instance of this class.
10782
10792
  * @constructor
@@ -10796,7 +10806,7 @@ class Fg {
10796
10806
  return this.privSessionId;
10797
10807
  }
10798
10808
  }
10799
- class SI extends Fg {
10809
+ class SI extends kg {
10800
10810
  /**
10801
10811
  * Creates and initializes an instance of this class.
10802
10812
  * @constructor
@@ -10961,7 +10971,7 @@ class co {
10961
10971
  return this.privProperties;
10962
10972
  }
10963
10973
  }
10964
- class $g extends co {
10974
+ class gI extends co {
10965
10975
  /**
10966
10976
  * Creates and initializes an instance of this class.
10967
10977
  * @constructor
@@ -10992,7 +11002,7 @@ class $g extends co {
10992
11002
  return this.privSpeakerId;
10993
11003
  }
10994
11004
  }
10995
- class fe extends $g {
11005
+ class fe extends gI {
10996
11006
  /**
10997
11007
  * Creates and initializes an instance of this class.
10998
11008
  * @constructor
@@ -11129,7 +11139,7 @@ class kC extends SI {
11129
11139
  return this.privResult;
11130
11140
  }
11131
11141
  }
11132
- class pm extends OI {
11142
+ class ym extends OI {
11133
11143
  }
11134
11144
  class ro extends SI {
11135
11145
  /**
@@ -11195,7 +11205,7 @@ class Wi extends SI {
11195
11205
  return this.privResult;
11196
11206
  }
11197
11207
  }
11198
- class zC extends Fg {
11208
+ class zC extends kg {
11199
11209
  /**
11200
11210
  * Creates and initializes an instance of this class.
11201
11211
  * @constructor
@@ -11216,7 +11226,7 @@ class zC extends Fg {
11216
11226
  return this.privResult;
11217
11227
  }
11218
11228
  }
11219
- class EI extends $g {
11229
+ class EI extends gI {
11220
11230
  /**
11221
11231
  * Creates and initializes an instance of this class.
11222
11232
  * @constructor
@@ -11939,7 +11949,7 @@ class AI {
11939
11949
  * @returns true if the telemetry is enabled, false otherwise.
11940
11950
  */
11941
11951
  static get telemetryEnabled() {
11942
- return Mg.telemetryDataEnabled;
11952
+ return Qg.telemetryDataEnabled;
11943
11953
  }
11944
11954
  /**
11945
11955
  * This method globally enables or disables telemetry.
@@ -11952,7 +11962,7 @@ class AI {
11952
11962
  * If set to false, no telemetry is sent to Microsoft.
11953
11963
  */
11954
11964
  static enableTelemetry(g) {
11955
- Mg.telemetryDataEnabled = g;
11965
+ Qg.telemetryDataEnabled = g;
11956
11966
  }
11957
11967
  // Does the generic recognizer setup that is common across all recognizer types.
11958
11968
  implCommonRecognizerSetup() {
@@ -11996,7 +12006,7 @@ class AI {
11996
12006
  });
11997
12007
  }
11998
12008
  }
11999
- var Zm = function(i, g, I, e) {
12009
+ var Sm = function(i, g, I, e) {
12000
12010
  function t(o) {
12001
12011
  return o instanceof I ? o : new I(function(C) {
12002
12012
  C(o);
@@ -12032,7 +12042,7 @@ class Dn extends AI {
12032
12042
  */
12033
12043
  constructor(g, I) {
12034
12044
  const e = g;
12035
- A.throwIfNull(e, "speechConfig"), A.throwIfNullOrWhitespace(e.properties.getProperty(r.SpeechServiceConnection_RecoLanguage), r[r.SpeechServiceConnection_RecoLanguage]), super(I, e.properties, new tu()), this.privDisposedRecognizer = !1;
12045
+ A.throwIfNull(e, "speechConfig"), A.throwIfNullOrWhitespace(e.properties.getProperty(r.SpeechServiceConnection_RecoLanguage), r[r.SpeechServiceConnection_RecoLanguage]), super(I, e.properties, new Cu()), this.privDisposedRecognizer = !1;
12036
12046
  }
12037
12047
  /**
12038
12048
  * SpeechRecognizer constructor.
@@ -12193,7 +12203,7 @@ class Dn extends AI {
12193
12203
  const I = Object.create(null, {
12194
12204
  dispose: { get: () => super.dispose }
12195
12205
  });
12196
- return Zm(this, void 0, void 0, function* () {
12206
+ return Sm(this, void 0, void 0, function* () {
12197
12207
  this.privDisposedRecognizer || (g && (this.privDisposedRecognizer = !0, yield this.implRecognizerStop()), yield I.dispose.call(this, g));
12198
12208
  });
12199
12209
  }
@@ -12202,10 +12212,10 @@ class Dn extends AI {
12202
12212
  }
12203
12213
  createServiceRecognizer(g, I, e, t) {
12204
12214
  const o = e;
12205
- return new su(g, I, o, t, this);
12215
+ return new lu(g, I, o, t, this);
12206
12216
  }
12207
12217
  }
12208
- var ym = function(i, g, I, e) {
12218
+ var Wm = function(i, g, I, e) {
12209
12219
  function t(o) {
12210
12220
  return o instanceof I ? o : new I(function(C) {
12211
12221
  C(o);
@@ -12232,7 +12242,7 @@ var ym = function(i, g, I, e) {
12232
12242
  l((e = e.apply(i, g || [])).next());
12233
12243
  });
12234
12244
  };
12235
- class Sm extends AI {
12245
+ class vm extends AI {
12236
12246
  /**
12237
12247
  * Initializes an instance of the IntentRecognizer.
12238
12248
  * @constructor
@@ -12242,7 +12252,7 @@ class Sm extends AI {
12242
12252
  constructor(g, I) {
12243
12253
  A.throwIfNullOrUndefined(g, "speechConfig");
12244
12254
  const e = g;
12245
- A.throwIfNullOrUndefined(e, "speechConfig"), super(I, e.properties, new $m()), this.privAddedIntents = [], this.privAddedLmIntents = {}, this.privDisposedIntentRecognizer = !1, this.privProperties = e.properties, A.throwIfNullOrWhitespace(this.properties.getProperty(r.SpeechServiceConnection_RecoLanguage), r[r.SpeechServiceConnection_RecoLanguage]);
12255
+ A.throwIfNullOrUndefined(e, "speechConfig"), super(I, e.properties, new Iu()), this.privAddedIntents = [], this.privAddedLmIntents = {}, this.privDisposedIntentRecognizer = !1, this.privProperties = e.properties, A.throwIfNullOrWhitespace(this.properties.getProperty(r.SpeechServiceConnection_RecoLanguage), r[r.SpeechServiceConnection_RecoLanguage]);
12246
12256
  }
12247
12257
  /**
12248
12258
  * Gets the spoken language of recognition.
@@ -12421,13 +12431,13 @@ class Sm extends AI {
12421
12431
  }
12422
12432
  createServiceRecognizer(g, I, e, t) {
12423
12433
  const o = e;
12424
- return new ru(g, I, o, t, this);
12434
+ return new Au(g, I, o, t, this);
12425
12435
  }
12426
12436
  dispose(g) {
12427
12437
  const I = Object.create(null, {
12428
12438
  dispose: { get: () => super.dispose }
12429
12439
  });
12430
- return ym(this, void 0, void 0, function* () {
12440
+ return Wm(this, void 0, void 0, function* () {
12431
12441
  this.privDisposedIntentRecognizer || g && (this.privDisposedIntentRecognizer = !0, yield I.dispose.call(this, g));
12432
12442
  });
12433
12443
  }
@@ -12466,7 +12476,7 @@ var FI;
12466
12476
  (function(i) {
12467
12477
  i[i.TextIndependentIdentification = 0] = "TextIndependentIdentification", i[i.TextDependentVerification = 1] = "TextDependentVerification", i[i.TextIndependentVerification = 2] = "TextIndependentVerification";
12468
12478
  })(FI || (FI = {}));
12469
- class Wm {
12479
+ class Hm {
12470
12480
  }
12471
12481
  class ha {
12472
12482
  constructor(g) {
@@ -12571,7 +12581,7 @@ class We {
12571
12581
  * @param propertyValue Value of the property. This is a json string.
12572
12582
  */
12573
12583
  setMessageProperty(g, I, e) {
12574
- if (A.throwIfNullOrWhitespace(I, "propertyName"), this.privInternalData instanceof Mg) {
12584
+ if (A.throwIfNullOrWhitespace(I, "propertyName"), this.privInternalData instanceof Qg) {
12575
12585
  if (g.toLowerCase() !== "speech.context")
12576
12586
  throw new Error("Only speech.context message property sets are currently supported for recognizer");
12577
12587
  this.privInternalData.speechContext.setSection(I, e);
@@ -12605,7 +12615,7 @@ class We {
12605
12615
  });
12606
12616
  }
12607
12617
  }
12608
- var vm = function(i, g, I, e) {
12618
+ var Vm = function(i, g, I, e) {
12609
12619
  function t(o) {
12610
12620
  return o instanceof I ? o : new I(function(C) {
12611
12621
  C(o);
@@ -12803,7 +12813,7 @@ class Ao extends AI {
12803
12813
  const I = Object.create(null, {
12804
12814
  dispose: { get: () => super.dispose }
12805
12815
  });
12806
- return vm(this, void 0, void 0, function* () {
12816
+ return Vm(this, void 0, void 0, function* () {
12807
12817
  this.privDisposedTranslationRecognizer || (this.privDisposedTranslationRecognizer = !0, g && (yield this.implRecognizerStop(), yield I.dispose.call(this, g)));
12808
12818
  });
12809
12819
  }
@@ -12812,7 +12822,7 @@ class Ao extends AI {
12812
12822
  }
12813
12823
  createServiceRecognizer(g, I, e, t) {
12814
12824
  const o = e;
12815
- return new Cu(g, I, o, t, this);
12825
+ return new su(g, I, o, t, this);
12816
12826
  }
12817
12827
  updateLanguages(g) {
12818
12828
  const I = We.fromRecognizer(this);
@@ -13070,16 +13080,16 @@ class Pn extends It {
13070
13080
  const t = ie.fromJSON(g.json);
13071
13081
  I = Wg.implTranslateCancelResult(t.RecognitionStatus);
13072
13082
  }
13073
- return g.properties && (e = w[g.properties.getProperty(xg, w[w.NoError])]), new Pn(I, g.errorDetails || Wg.implTranslateErrorDetails(e), e);
13083
+ return g.properties && (e = w[g.properties.getProperty(Pg, w[w.NoError])]), new Pn(I, g.errorDetails || Wg.implTranslateErrorDetails(e), e);
13074
13084
  }
13075
13085
  }
13076
13086
  var w;
13077
13087
  (function(i) {
13078
13088
  i[i.NoError = 0] = "NoError", i[i.AuthenticationFailure = 1] = "AuthenticationFailure", i[i.BadRequestParameters = 2] = "BadRequestParameters", i[i.TooManyRequests = 3] = "TooManyRequests", i[i.ConnectionFailure = 4] = "ConnectionFailure", i[i.ServiceTimeout = 5] = "ServiceTimeout", i[i.ServiceError = 6] = "ServiceError", i[i.RuntimeError = 7] = "RuntimeError", i[i.Forbidden = 8] = "Forbidden";
13079
13089
  })(w || (w = {}));
13080
- class UC extends Fg {
13090
+ class UC extends kg {
13081
13091
  }
13082
- class Fr extends Fg {
13092
+ class Fr extends kg {
13083
13093
  /**
13084
13094
  * Creates and initializes an instance of this class.
13085
13095
  * @constructor
@@ -13241,7 +13251,7 @@ class le extends CI {
13241
13251
  close() {
13242
13252
  }
13243
13253
  }
13244
- class Hm extends le {
13254
+ class Xm extends le {
13245
13255
  /**
13246
13256
  * Creates an instance of BotFrameworkConfig.
13247
13257
  */
@@ -13336,7 +13346,7 @@ class Hm extends le {
13336
13346
  return e.setProperty(r.Conversation_DialogType, CI.DialogTypes.BotFramework), e.setProperty(r.SpeechServiceConnection_Endpoint, g.toString()), I !== void 0 && e.setProperty(r.SpeechServiceConnection_Key, I), e;
13337
13347
  }
13338
13348
  }
13339
- class Vm extends le {
13349
+ class Rm extends le {
13340
13350
  /**
13341
13351
  * Creates an instance of CustomCommandsConfig.
13342
13352
  */
@@ -13422,7 +13432,7 @@ V.CtsMeetingId = "meetingId";
13422
13432
  V.CtsDeviceId = "deviceId";
13423
13433
  V.CtsIsParticipant = "isParticipant";
13424
13434
  V.EnableAvatar = "enableTalkingAvatar";
13425
- class Kg {
13435
+ class Yg {
13426
13436
  static getHostSuffix(g) {
13427
13437
  if (g) {
13428
13438
  if (g.toLowerCase().startsWith("china"))
@@ -13455,7 +13465,7 @@ class Kg {
13455
13465
  C && (!o || o.search(I) === -1) && (t[I] = C.toLocaleLowerCase());
13456
13466
  }
13457
13467
  }
13458
- class je extends Kg {
13468
+ class je extends Yg {
13459
13469
  create(g, I, e) {
13460
13470
  const t = g.parameters.getProperty(r.Conversation_ApplicationId, ""), o = g.parameters.getProperty(r.Conversation_DialogType), C = g.parameters.getProperty(r.SpeechServiceConnection_Region), n = g.parameters.getProperty(r.SpeechServiceConnection_RecoLanguage, "en-US"), s = g.parameters.getProperty(r.Conversation_Request_Bot_Status_Messages, "true"), l = {};
13461
13471
  l[O.ConnectionId] = e, l[V.Format] = g.parameters.getProperty(sI, E[E.Simple]).toLowerCase(), l[V.Language] = n, l[V.RequestBotStatusMessages] = s, t && (l[V.BotId] = t, o === CI.DialogTypes.CustomCommands && (l[O.CustomCommandsAppId] = t));
@@ -13463,7 +13473,7 @@ class je extends Kg {
13463
13473
  I.token != null && I.token !== "" && (G[I.headerName] = I.token);
13464
13474
  let u = g.parameters.getProperty(r.SpeechServiceConnection_Endpoint, "");
13465
13475
  if (!u) {
13466
- const B = Kg.getHostSuffix(C), p = g.parameters.getProperty(r.SpeechServiceConnection_Host, `wss://${C}.${je.BaseUrl}${B}`);
13476
+ const B = Yg.getHostSuffix(C), p = g.parameters.getProperty(r.SpeechServiceConnection_Host, `wss://${C}.${je.BaseUrl}${B}`);
13467
13477
  u = `${p.endsWith("/") ? p : p + "/"}${a}${je.ApiKey}/${c}`;
13468
13478
  }
13469
13479
  this.setCommonUrlParams(g, l, u);
@@ -13500,7 +13510,7 @@ var Ga = function(i, g, I, e) {
13500
13510
  l((e = e.apply(i, g || [])).next());
13501
13511
  });
13502
13512
  };
13503
- class Xm extends AI {
13513
+ class Km extends AI {
13504
13514
  /**
13505
13515
  * Initializes an instance of the DialogServiceConnector.
13506
13516
  * @constructor
@@ -13631,7 +13641,7 @@ class Xm extends AI {
13631
13641
  }
13632
13642
  createServiceRecognizer(g, I, e, t) {
13633
13643
  const o = e;
13634
- return new uu(g, I, o, t, this);
13644
+ return new pu(g, I, o, t, this);
13635
13645
  }
13636
13646
  buildAgentConfig() {
13637
13647
  return {
@@ -13744,7 +13754,7 @@ var ve;
13744
13754
  (function(i) {
13745
13755
  i[i.Masked = 0] = "Masked", i[i.Removed = 1] = "Removed", i[i.Raw = 2] = "Raw";
13746
13756
  })(ve || (ve = {}));
13747
- var Rm = function(i, g, I, e) {
13757
+ var Ym = function(i, g, I, e) {
13748
13758
  function t(o) {
13749
13759
  return o instanceof I ? o : new I(function(C) {
13750
13760
  C(o);
@@ -13771,7 +13781,7 @@ var Rm = function(i, g, I, e) {
13771
13781
  l((e = e.apply(i, g || [])).next());
13772
13782
  });
13773
13783
  };
13774
- class Km {
13784
+ class wm {
13775
13785
  /**
13776
13786
  * Creates and initializes an instance of this class.
13777
13787
  * @constructor
@@ -13827,7 +13837,7 @@ class Km {
13827
13837
  case 32:
13828
13838
  return this.formatArrayBuffer(new Int32Array(g), 2147483648);
13829
13839
  default:
13830
- throw new _g("Only WAVE_FORMAT_PCM (8/16/32 bps) format supported at this time");
13840
+ throw new $g("Only WAVE_FORMAT_PCM (8/16/32 bps) format supported at this time");
13831
13841
  }
13832
13842
  }
13833
13843
  formatArrayBuffer(g, I) {
@@ -13849,7 +13859,7 @@ class Km {
13849
13859
  this.startTime < this.audioContext.currentTime && (this.startTime = this.audioContext.currentTime), I.buffer = t, I.connect(this.gainNode), I.start(this.startTime), this.startTime += t.duration, this.samples = new Float32Array();
13850
13860
  }
13851
13861
  playAudio(g) {
13852
- return Rm(this, void 0, void 0, function* () {
13862
+ return Ym(this, void 0, void 0, function* () {
13853
13863
  this.audioContext === null && this.createAudioContext();
13854
13864
  const I = this.audioContext.createBufferSource(), e = this.audioContext.destination;
13855
13865
  yield this.audioContext.decodeAudioData(g, (t) => {
@@ -13908,7 +13918,7 @@ class zr {
13908
13918
  }
13909
13919
  class re {
13910
13920
  constructor(g, I, e) {
13911
- this.privReason = g, this.privProperties = new x(), this.privReason !== X.Canceled ? I && (this.privDetails = JSON.parse(I), this.privDetails.enrollmentStatus.toLowerCase() === "enrolling" && (this.privReason = X.EnrollingVoiceProfile)) : (this.privErrorDetails = e, this.privProperties.setProperty(xg, w[w.ServiceError]));
13921
+ this.privReason = g, this.privProperties = new x(), this.privReason !== X.Canceled ? I && (this.privDetails = JSON.parse(I), this.privDetails.enrollmentStatus.toLowerCase() === "enrolling" && (this.privReason = X.EnrollingVoiceProfile)) : (this.privErrorDetails = e, this.privProperties.setProperty(Pg, w[w.ServiceError]));
13912
13922
  }
13913
13923
  get reason() {
13914
13924
  return this.privReason;
@@ -13985,12 +13995,12 @@ class qn extends It {
13985
13995
  static fromResult(g) {
13986
13996
  const I = og.Error;
13987
13997
  let e = w.NoError;
13988
- return g.properties && (e = w[g.properties.getProperty(xg, w[w.NoError])]), new qn(I, g.errorDetails, e);
13998
+ return g.properties && (e = w[g.properties.getProperty(Pg, w[w.NoError])]), new qn(I, g.errorDetails, e);
13989
13999
  }
13990
14000
  }
13991
14001
  class ho {
13992
14002
  constructor(g, I) {
13993
- this.privReason = g, this.privProperties = new x(), g === X.Canceled && (A.throwIfNullOrUndefined(I, "statusText"), this.privErrorDetails = I, this.privProperties.setProperty(xg, w[w.ServiceError]));
14003
+ this.privReason = g, this.privProperties = new x(), g === X.Canceled && (A.throwIfNullOrUndefined(I, "statusText"), this.privErrorDetails = I, this.privProperties.setProperty(Pg, w[w.ServiceError]));
13994
14004
  }
13995
14005
  get reason() {
13996
14006
  return this.privReason;
@@ -14017,7 +14027,7 @@ class _n extends It {
14017
14027
  static fromResult(g) {
14018
14028
  const I = og.Error;
14019
14029
  let e = w.NoError;
14020
- return g.properties && (e = w[g.properties.getProperty(xg, w[w.NoError])]), new _n(I, g.errorDetails, e);
14030
+ return g.properties && (e = w[g.properties.getProperty(Pg, w[w.NoError])]), new _n(I, g.errorDetails, e);
14021
14031
  }
14022
14032
  }
14023
14033
  class TC extends ho {
@@ -14058,7 +14068,7 @@ var QI = function(i, g, I, e) {
14058
14068
  l((e = e.apply(i, g || [])).next());
14059
14069
  });
14060
14070
  };
14061
- class Ym extends AI {
14071
+ class Lm extends AI {
14062
14072
  /**
14063
14073
  * VoiceProfileClient constructor.
14064
14074
  * @constructor
@@ -14067,7 +14077,7 @@ class Ym extends AI {
14067
14077
  constructor(g) {
14068
14078
  A.throwIfNullOrUndefined(g, "speechConfig");
14069
14079
  const I = g;
14070
- A.throwIfNull(I, "speechConfig"), super(ge.fromStreamInput($i.createPushStream()), I.properties, new Iu()), this.privProperties = I.properties.clone(), this.privVoiceAdapter = this.privReco, this.privDisposedVoiceAdapter = !1;
14080
+ A.throwIfNull(I, "speechConfig"), super(ge.fromStreamInput($i.createPushStream()), I.properties, new iu()), this.privProperties = I.properties.clone(), this.privVoiceAdapter = this.privReco, this.privDisposedVoiceAdapter = !1;
14071
14081
  }
14072
14082
  /**
14073
14083
  * The collection of properties and their values defined for this VoiceProfileClient.
@@ -14215,7 +14225,7 @@ class Ym extends AI {
14215
14225
  }
14216
14226
  createServiceRecognizer(g, I, e, t) {
14217
14227
  const o = e;
14218
- return new Du(g, I, o, t, this);
14228
+ return new xu(g, I, o, t, this);
14219
14229
  }
14220
14230
  dispose(g) {
14221
14231
  const I = Object.create(null, {
@@ -14259,7 +14269,7 @@ var ri = function(i, g, I, e) {
14259
14269
  l((e = e.apply(i, g || [])).next());
14260
14270
  });
14261
14271
  };
14262
- class wm extends AI {
14272
+ class Nm extends AI {
14263
14273
  /**
14264
14274
  * Initializes an instance of the SpeakerRecognizer.
14265
14275
  * @constructor
@@ -14269,7 +14279,7 @@ class wm extends AI {
14269
14279
  constructor(g, I) {
14270
14280
  A.throwIfNullOrUndefined(g, "speechConfig");
14271
14281
  const e = g;
14272
- A.throwIfNullOrUndefined(e, "speechConfig"), super(I, e.properties, new gu()), this.privAudioConfigImpl = I, A.throwIfNull(this.privAudioConfigImpl, "audioConfig"), this.privDisposedSpeakerRecognizer = !1, this.privProperties = e.properties;
14282
+ A.throwIfNullOrUndefined(e, "speechConfig"), super(I, e.properties, new eu()), this.privAudioConfigImpl = I, A.throwIfNull(this.privAudioConfigImpl, "audioConfig"), this.privDisposedSpeakerRecognizer = !1, this.privProperties = e.properties;
14273
14283
  }
14274
14284
  /**
14275
14285
  * Gets the authorization token used to communicate with the service.
@@ -14345,7 +14355,7 @@ class wm extends AI {
14345
14355
  }
14346
14356
  createServiceRecognizer(g, I, e, t) {
14347
14357
  const o = e;
14348
- return new Tu(g, I, o, t, this);
14358
+ return new Eu(g, I, o, t, this);
14349
14359
  }
14350
14360
  dispose(g) {
14351
14361
  const I = Object.create(null, {
@@ -14537,7 +14547,7 @@ class Nt {
14537
14547
  constructor(g, I = X.RecognizedSpeaker, e = w.NoError, t = "") {
14538
14548
  this.privProperties = new x();
14539
14549
  const o = g.scenario === "TextIndependentIdentification" ? De.Identify : De.Verify;
14540
- this.privReason = I, this.privReason !== X.Canceled ? o === De.Identify ? (this.privProfileId = g.identificationResult.identifiedProfile.profileId, this.privScore = g.identificationResult.identifiedProfile.score, this.privReason = X.RecognizedSpeakers) : (this.privScore = g.verificationResult.score, g.verificationResult.recognitionResult.toLowerCase() !== "accept" && (this.privReason = X.NoMatch), g.verificationResult.profileId !== void 0 && g.verificationResult.profileId !== "" && (this.privProfileId = g.verificationResult.profileId)) : (this.privErrorDetails = t, this.privProperties.setProperty(xg, w[e])), this.privProperties.setProperty(r.SpeechServiceResponse_JsonResult, JSON.stringify(g));
14550
+ this.privReason = I, this.privReason !== X.Canceled ? o === De.Identify ? (this.privProfileId = g.identificationResult.identifiedProfile.profileId, this.privScore = g.identificationResult.identifiedProfile.score, this.privReason = X.RecognizedSpeakers) : (this.privScore = g.verificationResult.score, g.verificationResult.recognitionResult.toLowerCase() !== "accept" && (this.privReason = X.NoMatch), g.verificationResult.profileId !== void 0 && g.verificationResult.profileId !== "" && (this.privProfileId = g.verificationResult.profileId)) : (this.privErrorDetails = t, this.privProperties.setProperty(Pg, w[e])), this.privProperties.setProperty(r.SpeechServiceResponse_JsonResult, JSON.stringify(g));
14541
14551
  }
14542
14552
  get properties() {
14543
14553
  return this.privProperties;
@@ -14570,7 +14580,7 @@ class es extends It {
14570
14580
  static fromResult(g) {
14571
14581
  const I = og.Error;
14572
14582
  let e = w.NoError;
14573
- return g.properties && (e = w[g.properties.getProperty(xg, w[w.NoError])]), new es(I, g.errorDetails, e);
14583
+ return g.properties && (e = w[g.properties.getProperty(Pg, w[w.NoError])]), new es(I, g.errorDetails, e);
14574
14584
  }
14575
14585
  }
14576
14586
  var Ft = function(i, g, I, e) {
@@ -14831,7 +14841,7 @@ class DC extends fr {
14831
14841
  */
14832
14842
  startConversationAsync(g, I) {
14833
14843
  try {
14834
- this.privConversationRecognizer && this.handleError(new Error(this.privErrors.permissionDeniedStart), I), A.throwIfNullOrUndefined(this.privRoom, this.privErrors.permissionDeniedConnect), this.privParticipants.meId = this.privRoom.participantId, this.privConversationRecognizer = wu.fromConfig(this, this.privConfig), this.privConversationRecognizer.connected = this.onConnected, this.privConversationRecognizer.disconnected = this.onDisconnected, this.privConversationRecognizer.canceled = this.onCanceled, this.privConversationRecognizer.participantUpdateCommandReceived = this.onParticipantUpdateCommandReceived, this.privConversationRecognizer.lockRoomCommandReceived = this.onLockRoomCommandReceived, this.privConversationRecognizer.muteAllCommandReceived = this.onMuteAllCommandReceived, this.privConversationRecognizer.participantJoinCommandReceived = this.onParticipantJoinCommandReceived, this.privConversationRecognizer.participantLeaveCommandReceived = this.onParticipantLeaveCommandReceived, this.privConversationRecognizer.translationReceived = this.onTranslationReceived, this.privConversationRecognizer.participantsListReceived = this.onParticipantsListReceived, this.privConversationRecognizer.conversationExpiration = this.onConversationExpiration, this.privConversationRecognizer.connect(this.privRoom.token, () => {
14844
+ this.privConversationRecognizer && this.handleError(new Error(this.privErrors.permissionDeniedStart), I), A.throwIfNullOrUndefined(this.privRoom, this.privErrors.permissionDeniedConnect), this.privParticipants.meId = this.privRoom.participantId, this.privConversationRecognizer = Nu.fromConfig(this, this.privConfig), this.privConversationRecognizer.connected = this.onConnected, this.privConversationRecognizer.disconnected = this.onDisconnected, this.privConversationRecognizer.canceled = this.onCanceled, this.privConversationRecognizer.participantUpdateCommandReceived = this.onParticipantUpdateCommandReceived, this.privConversationRecognizer.lockRoomCommandReceived = this.onLockRoomCommandReceived, this.privConversationRecognizer.muteAllCommandReceived = this.onMuteAllCommandReceived, this.privConversationRecognizer.participantJoinCommandReceived = this.onParticipantJoinCommandReceived, this.privConversationRecognizer.participantLeaveCommandReceived = this.onParticipantLeaveCommandReceived, this.privConversationRecognizer.translationReceived = this.onTranslationReceived, this.privConversationRecognizer.participantsListReceived = this.onParticipantsListReceived, this.privConversationRecognizer.conversationExpiration = this.onConversationExpiration, this.privConversationRecognizer.connect(this.privRoom.token, () => {
14835
14845
  this.handleCallback(g, I);
14836
14846
  }, (e) => {
14837
14847
  this.handleError(e, I);
@@ -15200,7 +15210,7 @@ class DC extends fr {
15200
15210
  });
15201
15211
  }
15202
15212
  }
15203
- class Lm {
15213
+ class Fm {
15204
15214
  constructor(g) {
15205
15215
  this.privAudioConfig = g;
15206
15216
  }
@@ -15223,7 +15233,7 @@ class Lm {
15223
15233
  I(g);
15224
15234
  }
15225
15235
  }
15226
- class Mr extends Fg {
15236
+ class Mr extends kg {
15227
15237
  constructor(g, I) {
15228
15238
  super(I), this.privExpirationTime = g;
15229
15239
  }
@@ -15232,7 +15242,7 @@ class Mr extends Fg {
15232
15242
  return this.privExpirationTime;
15233
15243
  }
15234
15244
  }
15235
- class ZI extends Fg {
15245
+ class ZI extends kg {
15236
15246
  constructor(g, I, e) {
15237
15247
  super(e), this.privReason = g, this.privParticipant = I;
15238
15248
  }
@@ -15318,13 +15328,13 @@ class xC {
15318
15328
  return e;
15319
15329
  }
15320
15330
  }
15321
- class Go extends Kg {
15331
+ class Go extends Yg {
15322
15332
  constructor(g) {
15323
15333
  super(), A.throwIfNullOrUndefined(g, "convGetter"), this.privConvGetter = g;
15324
15334
  }
15325
15335
  create(g, I, e) {
15326
15336
  const t = g.parameters.getProperty("ConversationTranslator_MultiChannelAudio", "").toUpperCase() === "TRUE", o = this.privConvGetter().room, C = o.cognitiveSpeechRegion || g.parameters.getProperty(r.SpeechServiceConnection_Region, ""), n = {
15327
- hostSuffix: Kg.getHostSuffix(C),
15337
+ hostSuffix: Yg.getHostSuffix(C),
15328
15338
  path: Go.CTS_VIRT_MIC_PATH,
15329
15339
  region: encodeURIComponent(C)
15330
15340
  };
@@ -15379,7 +15389,7 @@ var wI = function(i, g, I, e) {
15379
15389
  (function(i) {
15380
15390
  i[i.Inactive = 0] = "Inactive", i[i.Connecting = 1] = "Connecting", i[i.Connected = 2] = "Connected";
15381
15391
  })(dI || (dI = {}));
15382
- class Nm extends Ao {
15392
+ class Jm extends Ao {
15383
15393
  constructor(g, I, e, t) {
15384
15394
  super(g, I, new Go(t)), this.privSpeechState = dI.Inactive, e && (this.privTranslator = e, this.sessionStarted = () => {
15385
15395
  this.privSpeechState = dI.Connected;
@@ -15439,7 +15449,7 @@ class Nm extends Ao {
15439
15449
  });
15440
15450
  }
15441
15451
  }
15442
- class Fm extends Lm {
15452
+ class km extends Fm {
15443
15453
  constructor(g) {
15444
15454
  super(g), this.privErrors = T.restErrors, this.privIsDisposed = !1, this.privIsSpeaking = !1, this.privPlaceholderKey = "abcdefghijklmnopqrstuvwxyz012345", this.privPlaceholderRegion = "westus", this.privProperties = new x();
15445
15455
  }
@@ -15592,7 +15602,7 @@ class Fm extends Lm {
15592
15602
  try {
15593
15603
  this.privAudioConfig === void 0 && (this.privAudioConfig = ge.fromDefaultMicrophoneInput()), this.privSpeechTranslationConfig.getProperty(r[r.SpeechServiceConnection_Key]) === this.privPlaceholderKey && this.privSpeechTranslationConfig.setProperty(r[r.SpeechServiceConnection_Key], "");
15594
15604
  const g = () => this.privConversation;
15595
- this.privCTRecognizer = new Nm(this.privSpeechTranslationConfig, this.privAudioConfig, this, g);
15605
+ this.privCTRecognizer = new Jm(this.privSpeechTranslationConfig, this.privAudioConfig, this, g);
15596
15606
  } catch (g) {
15597
15607
  throw yield this.cancelSpeech(), g;
15598
15608
  }
@@ -15607,7 +15617,7 @@ class Fm extends Lm {
15607
15617
  });
15608
15618
  }
15609
15619
  }
15610
- var Jm = function(i, g, I, e) {
15620
+ var zm = function(i, g, I, e) {
15611
15621
  function t(o) {
15612
15622
  return o instanceof I ? o : new I(function(C) {
15613
15623
  C(o);
@@ -15643,7 +15653,7 @@ class ts extends AI {
15643
15653
  */
15644
15654
  constructor(g, I) {
15645
15655
  const e = g;
15646
- A.throwIfNull(e, "speechConfig"), A.throwIfNullOrWhitespace(e.properties.getProperty(r.SpeechServiceConnection_RecoLanguage), r[r.SpeechServiceConnection_RecoLanguage]), super(I, e.properties, new ou()), this.privProperties.setProperty(r.SpeechServiceConnection_RecognitionEndpointVersion, "2"), this.privDisposedRecognizer = !1;
15656
+ A.throwIfNull(e, "speechConfig"), A.throwIfNullOrWhitespace(e.properties.getProperty(r.SpeechServiceConnection_RecoLanguage), r[r.SpeechServiceConnection_RecoLanguage]), super(I, e.properties, new nu()), this.privProperties.setProperty(r.SpeechServiceConnection_RecognitionEndpointVersion, "2"), this.privDisposedRecognizer = !1;
15647
15657
  }
15648
15658
  /**
15649
15659
  * ConversationTranscriber constructor.
@@ -15759,7 +15769,7 @@ class ts extends AI {
15759
15769
  const I = Object.create(null, {
15760
15770
  dispose: { get: () => super.dispose }
15761
15771
  });
15762
- return Jm(this, void 0, void 0, function* () {
15772
+ return zm(this, void 0, void 0, function* () {
15763
15773
  this.privDisposedRecognizer || (g && (this.privDisposedRecognizer = !0, yield this.implRecognizerStop()), yield I.dispose.call(this, g));
15764
15774
  });
15765
15775
  }
@@ -15768,10 +15778,10 @@ class ts extends AI {
15768
15778
  }
15769
15779
  createServiceRecognizer(g, I, e, t) {
15770
15780
  const o = e;
15771
- return t.isSpeakerDiarizationEnabled = !0, new lu(g, I, o, t, this);
15781
+ return t.isSpeakerDiarizationEnabled = !0, new ru(g, I, o, t, this);
15772
15782
  }
15773
15783
  }
15774
- class km {
15784
+ class fm {
15775
15785
  constructor(g) {
15776
15786
  this.privUserId = g;
15777
15787
  }
@@ -16458,7 +16468,7 @@ var Ba = function(i, g, I, e) {
16458
16468
  l((e = e.apply(i, g || [])).next());
16459
16469
  });
16460
16470
  };
16461
- class zm {
16471
+ class Mm {
16462
16472
  /**
16463
16473
  * MeetingTranscriber constructor.
16464
16474
  * @constructor
@@ -16528,7 +16538,7 @@ class zm {
16528
16538
  */
16529
16539
  joinMeetingAsync(g, I, e) {
16530
16540
  const t = g;
16531
- A.throwIfNullOrUndefined(Qr, "Meeting"), this.privRecognizer = new Nu(g.config, this.privAudioConfig), A.throwIfNullOrUndefined(this.privRecognizer, "Recognizer"), this.privRecognizer.connectMeetingCallbacks(this), M(t.connectTranscriberRecognizer(this.privRecognizer), I, e);
16541
+ A.throwIfNullOrUndefined(Qr, "Meeting"), this.privRecognizer = new Ju(g.config, this.privAudioConfig), A.throwIfNullOrUndefined(this.privRecognizer, "Recognizer"), this.privRecognizer.connectMeetingCallbacks(this), M(t.connectTranscriberRecognizer(this.privRecognizer), I, e);
16532
16542
  }
16533
16543
  /**
16534
16544
  * Starts meeting transcription, until stopTranscribingAsync() is called.
@@ -16851,7 +16861,7 @@ class it {
16851
16861
  });
16852
16862
  }
16853
16863
  createSynthesizerConfig(g) {
16854
- return new Uu(g, this.privProperties);
16864
+ return new Tu(g, this.privProperties);
16855
16865
  }
16856
16866
  // Does the generic synthesizer setup that is common across all synthesizer types.
16857
16867
  implCommonSynthesizeSetup() {
@@ -16989,10 +16999,10 @@ class os extends it {
16989
16999
  //
16990
17000
  // Creates the synthesis adapter
16991
17001
  createSynthesisAdapter(g, I, e) {
16992
- return new fu(g, I, e, this, this.audioConfig);
17002
+ return new Uu(g, I, e, this, this.audioConfig);
16993
17003
  }
16994
17004
  createRestSynthesisAdapter(g, I) {
16995
- return new Mu(I, g);
17005
+ return new Qu(I, g);
16996
17006
  }
16997
17007
  implCommonSynthesizeSetup() {
16998
17008
  super.implCommonSynthesizeSetup(), this.privAdapter.audioOutputFormat = k.fromSpeechSynthesisOutputFormat(f[this.properties.getProperty(r.SpeechServiceConnection_SynthOutputFormat, void 0)]);
@@ -17395,7 +17405,7 @@ var Uo = function(i, g, I, e) {
17395
17405
  l((e = e.apply(i, g || [])).next());
17396
17406
  });
17397
17407
  };
17398
- const fm = 60 * 30, ba = {
17408
+ const Um = 60 * 30, ba = {
17399
17409
  [N.PCM]: "audio/wav",
17400
17410
  [N.MuLaw]: "audio/x-wav",
17401
17411
  [N.MP3]: "audio/mpeg",
@@ -17450,7 +17460,7 @@ class OC {
17450
17460
  this.privFormat = g;
17451
17461
  const I = ba[this.privFormat.formatTag];
17452
17462
  I === void 0 ? console.warn(`Unknown mimeType for format ${N[this.privFormat.formatTag]}; playback is not supported.`) : typeof MediaSource < "u" && MediaSource.isTypeSupported(I) ? (this.privAudio = new Audio(), this.privAudioBuffer = [], this.privMediaSource = new MediaSource(), this.privAudio.src = URL.createObjectURL(this.privMediaSource), this.privAudio.load(), this.privMediaSource.onsourceopen = () => {
17453
- this.privMediaSourceOpened = !0, this.privMediaSource.duration = fm, this.privSourceBuffer = this.privMediaSource.addSourceBuffer(I), this.privSourceBuffer.onupdate = () => {
17463
+ this.privMediaSourceOpened = !0, this.privMediaSource.duration = Um, this.privSourceBuffer = this.privMediaSource.addSourceBuffer(I), this.privSourceBuffer.onupdate = () => {
17454
17464
  this.updateSourceBuffer().catch((e) => {
17455
17465
  hg.instance.onEvent(new PI(e));
17456
17466
  });
@@ -17686,7 +17696,7 @@ class ns {
17686
17696
  o && (I.granularity = o), this.privPhonemeAlphabet && (I.phonemeAlphabet = this.privPhonemeAlphabet), this.privNBestPhonemeCount && (I.nbestPhonemeCount = this.privNBestPhonemeCount), I.enableProsodyAssessment = this.privEnableProsodyAssessment, I.dimension = "Comprehensive", this.privProperties.getProperty(r.PronunciationAssessment_EnableMiscue) && (I.enableMiscue = this.enableMiscue), this.privProperties.setProperty(r.PronunciationAssessment_Params, JSON.stringify(I));
17687
17697
  }
17688
17698
  }
17689
- class Mm {
17699
+ class Qm {
17690
17700
  /**
17691
17701
  * @Internal
17692
17702
  * Do not use externally.
@@ -17826,10 +17836,10 @@ class ss {
17826
17836
  */
17827
17837
  get contentAssessmentResult() {
17828
17838
  if (this.detailResult.ContentAssessment !== void 0)
17829
- return new Mm(this.detailResult);
17839
+ return new Qm(this.detailResult);
17830
17840
  }
17831
17841
  }
17832
- class Um {
17842
+ class Tm {
17833
17843
  /**
17834
17844
  * Creates and initializes an instance of this class.
17835
17845
  * @constructor
@@ -17910,7 +17920,7 @@ class qr {
17910
17920
  }
17911
17921
  create(g, I, e) {
17912
17922
  let t = g.parameters.getProperty(r.SpeechServiceConnection_Endpoint, void 0);
17913
- const o = g.parameters.getProperty(r.SpeechServiceConnection_Region, void 0), C = Kg.getHostSuffix(o), n = g.parameters.getProperty(r.SpeechServiceConnection_EndpointId, void 0), s = n === void 0 ? "tts" : "voice", l = g.parameters.getProperty(r.SpeechServiceConnection_Host, "wss://" + o + "." + s + ".speech" + C), a = {}, c = {};
17923
+ const o = g.parameters.getProperty(r.SpeechServiceConnection_Region, void 0), C = Yg.getHostSuffix(o), n = g.parameters.getProperty(r.SpeechServiceConnection_EndpointId, void 0), s = n === void 0 ? "tts" : "voice", l = g.parameters.getProperty(r.SpeechServiceConnection_Host, "wss://" + o + "." + s + ".speech" + C), a = {}, c = {};
17914
17924
  I.token !== void 0 && I.token !== "" && (c[I.headerName] = I.token), c[O.ConnectionId] = e, n !== void 0 && n !== "" && (!t || t.search(V.CustomVoiceDeploymentId) === -1) && (a[V.CustomVoiceDeploymentId] = n), g.avatarEnabled && (!t || t.search(V.EnableAvatar) === -1) && (a[V.EnableAvatar] = "true"), t || (t = l + this.synthesisUri), g.parameters.setProperty(r.SpeechServiceConnection_Url, t);
17915
17925
  const G = g.parameters.getProperty("SPEECH-EnableWebsocketCompression", "false") === "true";
17916
17926
  return new zI(t, a, c, new ee(), hI.fromParameters(g.parameters), G, e);
@@ -17943,7 +17953,7 @@ var me = function(i, g, I, e) {
17943
17953
  l((e = e.apply(i, g || [])).next());
17944
17954
  });
17945
17955
  };
17946
- class Qm extends it {
17956
+ class Dm extends it {
17947
17957
  /**
17948
17958
  * Creates and initializes an instance of this class.
17949
17959
  * @constructor
@@ -18051,7 +18061,7 @@ class Qm extends it {
18051
18061
  }
18052
18062
  // Creates the synthesis adapter
18053
18063
  createSynthesisAdapter(g, I, e) {
18054
- return new zu(g, I, e, this, this.privAvatarConfig);
18064
+ return new Mu(g, I, e, this, this.privAvatarConfig);
18055
18065
  }
18056
18066
  createRestSynthesisAdapter(g, I) {
18057
18067
  }
@@ -18070,7 +18080,7 @@ class Qm extends it {
18070
18080
  });
18071
18081
  }
18072
18082
  }
18073
- class Tm {
18083
+ class Em {
18074
18084
  constructor(g, I) {
18075
18085
  this.x = g, this.y = I;
18076
18086
  }
@@ -18097,7 +18107,7 @@ class _r {
18097
18107
  };
18098
18108
  }
18099
18109
  }
18100
- class Dm extends ye {
18110
+ class xm extends ye {
18101
18111
  /**
18102
18112
  * Creates and initializes an instance of this class.
18103
18113
  * @constructor
@@ -18123,7 +18133,7 @@ class Dm extends ye {
18123
18133
  }
18124
18134
  class $r {
18125
18135
  static SetLoggingLevel(g) {
18126
- this.privListener = new dm(g), hg.instance.attachConsoleListener(this.privListener);
18136
+ this.privListener = new hm(g), hg.instance.attachConsoleListener(this.privListener);
18127
18137
  }
18128
18138
  static StartConsoleOutput() {
18129
18139
  this.privListener && (this.privListener.enableConsoleOutput = !0);
@@ -18162,8 +18172,8 @@ class hI {
18162
18172
  return this.privProxyPassword;
18163
18173
  }
18164
18174
  }
18165
- const Em = /* @__PURE__ */ new Set(["json", "buffer", "string"]);
18166
- var xm = (i) => (...g) => {
18175
+ const Pm = /* @__PURE__ */ new Set(["json", "buffer", "string"]);
18176
+ var jm = (i) => (...g) => {
18167
18177
  const I = /* @__PURE__ */ new Set();
18168
18178
  let e, t, o, C = "";
18169
18179
  return g.forEach((n) => {
@@ -18176,7 +18186,7 @@ var xm = (i) => (...g) => {
18176
18186
  e = n;
18177
18187
  else if (n.startsWith("http:") || n.startsWith("https:"))
18178
18188
  C = n;
18179
- else if (Em.has(n))
18189
+ else if (Pm.has(n))
18180
18190
  t = n;
18181
18191
  else
18182
18192
  throw new Error(`Unknown encoding, ${n}`);
@@ -18194,7 +18204,7 @@ var xm = (i) => (...g) => {
18194
18204
  throw new Error(`Unknown type: ${typeof n}`);
18195
18205
  }), e || (e = "GET"), I.size === 0 && I.add(200), i(I, e, t, o, C);
18196
18206
  };
18197
- const Pm = xm;
18207
+ const Om = jm;
18198
18208
  class as extends Error {
18199
18209
  constructor(g, ...I) {
18200
18210
  super(...I), Error.captureStackTrace && Error.captureStackTrace(this, as), this.name = "StatusError", this.message = g.statusMessage, this.statusCode = g.status, this.res = g, this.json = g.json.bind(g), this.text = g.text.bind(g), this.arrayBuffer = g.arrayBuffer.bind(g);
@@ -18204,7 +18214,7 @@ class as extends Error {
18204
18214
  this.headers[o.toLowerCase()] = C;
18205
18215
  }
18206
18216
  }
18207
- const jm = (i, g, I, e, t) => async (o, C, n = {}) => {
18217
+ const qm = (i, g, I, e, t) => async (o, C, n = {}) => {
18208
18218
  o = t + (o || "");
18209
18219
  let s = new URL(o);
18210
18220
  if (e || (e = {}), s.username && (e.Authorization = "Basic " + btoa(s.username + ":" + s.password), s = new URL(s.protocol + "//" + s.host + s.pathname + s.search)), s.protocol !== "https:" && s.protocol !== "http:")
@@ -18220,9 +18230,9 @@ const jm = (i, g, I, e, t) => async (o, C, n = {}) => {
18220
18230
  throw new as(l);
18221
18231
  return I === "json" ? l.json() : I === "buffer" ? l.arrayBuffer() : I === "string" ? l.text() : l;
18222
18232
  };
18223
- var Om = Pm(jm);
18224
- const qm = /* @__PURE__ */ qB(Om);
18225
- var _m = function(i, g, I, e) {
18233
+ var _m = Om(qm);
18234
+ const $m = /* @__PURE__ */ $B(_m);
18235
+ var gu = function(i, g, I, e) {
18226
18236
  function t(o) {
18227
18237
  return o instanceof I ? o : new I(function(C) {
18228
18238
  C(o);
@@ -18288,8 +18298,8 @@ class qC {
18288
18298
  statusText: a.error ? a.error.message : c.statusText ? c.statusText : c.statusMessage
18289
18299
  };
18290
18300
  }, s = (l) => {
18291
- const a = qm(I, C, this.privHeaders, 200, 201, 202, 204, 400, 401, 402, 403, 404), c = this.queryParams(e) === "" ? "" : `?${this.queryParams(e)}`;
18292
- a(c, l).then((G) => _m(this, void 0, void 0, function* () {
18301
+ const a = $m(I, C, this.privHeaders, 200, 201, 202, 204, 400, 401, 402, 403, 404), c = this.queryParams(e) === "" ? "" : `?${this.queryParams(e)}`;
18302
+ a(c, l).then((G) => gu(this, void 0, void 0, function* () {
18293
18303
  if (g === de.Delete || G.statusCode === 204)
18294
18304
  o.resolve(n(G));
18295
18305
  else
@@ -18355,11 +18365,11 @@ kI.privDefaultParams = {
18355
18365
  subscriptionRegion: "Ocp-Apim-Subscription-Region",
18356
18366
  token: "X-CapitoToken"
18357
18367
  };
18358
- class $m extends Kg {
18368
+ class Iu extends Yg {
18359
18369
  create(g, I, e) {
18360
18370
  let t = g.parameters.getProperty(r.SpeechServiceConnection_Endpoint);
18361
18371
  if (!t) {
18362
- const s = g.parameters.getProperty(r.SpeechServiceConnection_IntentRegion), l = Kg.getHostSuffix(s);
18372
+ const s = g.parameters.getProperty(r.SpeechServiceConnection_IntentRegion), l = Yg.getHostSuffix(s);
18363
18373
  t = g.parameters.getProperty(r.SpeechServiceConnection_Host, "wss://" + s + ".sr.speech" + l) + "/speech/recognition/interactive/cognitiveservices/v1";
18364
18374
  }
18365
18375
  const o = {
@@ -18427,11 +18437,11 @@ class $m extends Kg {
18427
18437
  }
18428
18438
  }
18429
18439
  }
18430
- class gd extends Kg {
18440
+ class gd extends Yg {
18431
18441
  create(g, I, e, t) {
18432
18442
  let o = g.parameters.getProperty(r.SpeechServiceConnection_Endpoint);
18433
18443
  if (!o) {
18434
- const l = g.parameters.getProperty(r.SpeechServiceConnection_Region), a = Kg.getHostSuffix(l), c = g.parameters.getProperty(r.SpeechServiceConnection_Host, `wss://${l}.spr-frontend.speech${a}`), G = g.parameters.getProperty(r.SpeechServiceConnection_SpeakerIdMode, "TextIndependentIdentification");
18444
+ const l = g.parameters.getProperty(r.SpeechServiceConnection_Region), a = Yg.getHostSuffix(l), c = g.parameters.getProperty(r.SpeechServiceConnection_Host, `wss://${l}.spr-frontend.speech${a}`), G = g.parameters.getProperty(r.SpeechServiceConnection_SpeakerIdMode, "TextIndependentIdentification");
18435
18445
  o = `${c}/speaker/ws/${this.scenarioToPath(G)}/${e}`;
18436
18446
  }
18437
18447
  const C = {
@@ -18457,12 +18467,12 @@ class gd extends Kg {
18457
18467
  }
18458
18468
  }
18459
18469
  }
18460
- class gu extends gd {
18470
+ class eu extends gd {
18461
18471
  create(g, I, e) {
18462
18472
  return super.create(g, I, "recognition", e);
18463
18473
  }
18464
18474
  }
18465
- class Iu extends gd {
18475
+ class iu extends gd {
18466
18476
  create(g, I, e) {
18467
18477
  return super.create(g, I, "profile", e);
18468
18478
  }
@@ -18489,7 +18499,7 @@ class Id extends Bo {
18489
18499
  return this.privAudioNodeId;
18490
18500
  }
18491
18501
  }
18492
- class eu extends Bo {
18502
+ class tu extends Bo {
18493
18503
  constructor(g, I, e, t) {
18494
18504
  super("ListeningStartedEvent", g, I), this.privAudioSourceId = e, this.privAudioNodeId = t;
18495
18505
  }
@@ -18508,7 +18518,7 @@ class ed extends Bo {
18508
18518
  return this.privAuthFetchEventid;
18509
18519
  }
18510
18520
  }
18511
- class iu extends Bo {
18521
+ class ou extends Bo {
18512
18522
  constructor(g, I, e, t, o) {
18513
18523
  super("RecognitionStartedEvent", g, o), this.privAudioSourceId = I, this.privAudioNodeId = e, this.privAuthFetchEventId = t;
18514
18524
  }
@@ -18562,7 +18572,7 @@ class Ag extends Dt {
18562
18572
  return new Ag(g.messageType, I, e, t, g.body, o, C, g.id);
18563
18573
  }
18564
18574
  }
18565
- var Lg = function(i, g, I, e) {
18575
+ var Ng = function(i, g, I, e) {
18566
18576
  function t(o) {
18567
18577
  return o instanceof I ? o : new I(function(C) {
18568
18578
  C(o);
@@ -18589,7 +18599,7 @@ var Lg = function(i, g, I, e) {
18589
18599
  l((e = e.apply(i, g || [])).next());
18590
18600
  });
18591
18601
  };
18592
- class Mg {
18602
+ class Qg {
18593
18603
  constructor(g, I, e, t, o) {
18594
18604
  if (this.privConnectionConfigurationPromise = void 0, this.privConnectionPromise = void 0, this.privSetTimeout = setTimeout, this.privIsLiveAudio = !1, this.privAverageBytesPerMs = 0, this.privEnableSpeakerId = !1, this.recognizeOverride = void 0, this.recognizeSpeaker = void 0, this.disconnectOverride = void 0, this.receiveMessageOverride = void 0, this.sendPrePayloadJSONOverride = void 0, this.postConnectImplOverride = void 0, this.configConnectionOverride = void 0, this.handleSpeechPhraseMessage = void 0, this.handleSpeechHypothesisMessage = void 0, !g)
18595
18605
  throw new Rg("authentication");
@@ -18599,7 +18609,7 @@ class Mg {
18599
18609
  throw new Rg("audioSource");
18600
18610
  if (!t)
18601
18611
  throw new Rg("recognizerConfig");
18602
- this.privEnableSpeakerId = t.isSpeakerDiarizationEnabled, this.privMustReportEndOfStream = !1, this.privAuthentication = g, this.privConnectionFactory = I, this.privAudioSource = e, this.privRecognizerConfig = t, this.privIsDisposed = !1, this.privRecognizer = o, this.privRequestSession = new Au(this.privAudioSource.id()), this.privConnectionEvents = new yI(), this.privServiceEvents = new yI(), this.privDynamicGrammar = new Gu(), this.privSpeechContext = new hu(this.privDynamicGrammar), this.privAgentConfig = new Cd(), this.privRecognizerConfig.parameters.getProperty(r.WebWorkerLoadType, "on").toLowerCase() === "on" && typeof Blob < "u" && typeof Worker < "u" ? this.privSetTimeout = Ng.setTimeout : typeof window < "u" && (this.privSetTimeout = window.setTimeout.bind(window)), this.connectionEvents.attach((n) => {
18612
+ this.privEnableSpeakerId = t.isSpeakerDiarizationEnabled, this.privMustReportEndOfStream = !1, this.privAuthentication = g, this.privConnectionFactory = I, this.privAudioSource = e, this.privRecognizerConfig = t, this.privIsDisposed = !1, this.privRecognizer = o, this.privRequestSession = new Gu(this.privAudioSource.id()), this.privConnectionEvents = new yI(), this.privServiceEvents = new yI(), this.privDynamicGrammar = new mu(), this.privSpeechContext = new Bu(this.privDynamicGrammar), this.privAgentConfig = new Cd(), this.privRecognizerConfig.parameters.getProperty(r.WebWorkerLoadType, "on").toLowerCase() === "on" && typeof Blob < "u" && typeof Worker < "u" ? this.privSetTimeout = Jg.setTimeout : typeof window < "u" && (this.privSetTimeout = window.setTimeout.bind(window)), this.connectionEvents.attach((n) => {
18603
18613
  if (n.name === "ConnectionClosedEvent") {
18604
18614
  const s = n;
18605
18615
  (s.statusCode === 1003 || s.statusCode === 1007 || s.statusCode === 1002 || s.statusCode === 4e3 || this.privRequestSession.numConnectionAttempts > this.privRecognizerConfig.maxRetryCount) && this.cancelRecognitionLocal(og.Error, s.statusCode === 1007 ? w.BadRequestParameters : w.ConnectionFailure, `${s.reason} websocket error code: ${s.statusCode}`);
@@ -18698,7 +18708,7 @@ class Mg {
18698
18708
  return this.privIsDisposed;
18699
18709
  }
18700
18710
  dispose(g) {
18701
- return Lg(this, void 0, void 0, function* () {
18711
+ return Ng(this, void 0, void 0, function* () {
18702
18712
  if (this.privIsDisposed = !0, this.privConnectionConfigurationPromise !== void 0)
18703
18713
  try {
18704
18714
  yield (yield this.privConnectionConfigurationPromise).dispose(g);
@@ -18717,7 +18727,7 @@ class Mg {
18717
18727
  return this.privRecognizerConfig.recognitionMode;
18718
18728
  }
18719
18729
  recognize(g, I, e) {
18720
- return Lg(this, void 0, void 0, function* () {
18730
+ return Ng(this, void 0, void 0, function* () {
18721
18731
  if (this.recognizeOverride !== void 0) {
18722
18732
  yield this.recognizeOverride(g, I, e);
18723
18733
  return;
@@ -18737,14 +18747,14 @@ class Mg {
18737
18747
  yield this.cancelRecognitionLocal(og.Error, w.ConnectionFailure, s);
18738
18748
  return;
18739
18749
  }
18740
- const C = new Fg(this.privRequestSession.sessionId);
18741
- this.privRecognizer.sessionStarted && this.privRecognizer.sessionStarted(this.privRecognizer, C), this.receiveMessage(), this.sendAudio(o).catch((s) => Lg(this, void 0, void 0, function* () {
18750
+ const C = new kg(this.privRequestSession.sessionId);
18751
+ this.privRecognizer.sessionStarted && this.privRecognizer.sessionStarted(this.privRecognizer, C), this.receiveMessage(), this.sendAudio(o).catch((s) => Ng(this, void 0, void 0, function* () {
18742
18752
  yield this.cancelRecognitionLocal(og.Error, w.RuntimeError, s);
18743
18753
  }));
18744
18754
  });
18745
18755
  }
18746
18756
  stopRecognizing() {
18747
- return Lg(this, void 0, void 0, function* () {
18757
+ return Ng(this, void 0, void 0, function* () {
18748
18758
  if (this.privRequestSession.isRecognizing)
18749
18759
  try {
18750
18760
  yield this.audioSource.turnOff(), yield this.sendFinalAudio(), yield this.privRequestSession.onStopRecognizing(), yield this.privRequestSession.turnCompletionPromise;
@@ -18754,7 +18764,7 @@ class Mg {
18754
18764
  });
18755
18765
  }
18756
18766
  connect() {
18757
- return Lg(this, void 0, void 0, function* () {
18767
+ return Ng(this, void 0, void 0, function* () {
18758
18768
  return yield this.connectImpl(), Promise.resolve();
18759
18769
  });
18760
18770
  }
@@ -18773,7 +18783,7 @@ class Mg {
18773
18783
  });
18774
18784
  }
18775
18785
  disconnect() {
18776
- return Lg(this, void 0, void 0, function* () {
18786
+ return Ng(this, void 0, void 0, function* () {
18777
18787
  if (yield this.cancelRecognitionLocal(og.Error, w.NoError, "Disconnecting"), this.disconnectOverride !== void 0 && (yield this.disconnectOverride()), this.privConnectionPromise !== void 0)
18778
18788
  try {
18779
18789
  yield (yield this.privConnectionPromise).dispose();
@@ -18786,7 +18796,7 @@ class Mg {
18786
18796
  sendMessage(g) {
18787
18797
  }
18788
18798
  sendNetworkMessage(g, I) {
18789
- return Lg(this, void 0, void 0, function* () {
18799
+ return Ng(this, void 0, void 0, function* () {
18790
18800
  const e = typeof I == "string" ? J.Text : J.Binary, t = typeof I == "string" ? "application/json" : "";
18791
18801
  return (yield this.fetchConnection()).send(new Ag(e, g, this.privRequestSession.requestId, t, I));
18792
18802
  });
@@ -18798,13 +18808,13 @@ class Mg {
18798
18808
  return this.privActivityTemplate;
18799
18809
  }
18800
18810
  sendTelemetryData() {
18801
- return Lg(this, void 0, void 0, function* () {
18811
+ return Ng(this, void 0, void 0, function* () {
18802
18812
  const g = this.privRequestSession.getTelemetry();
18803
- if (Mg.telemetryDataEnabled !== !0 || this.privIsDisposed || g === null)
18813
+ if (Qg.telemetryDataEnabled !== !0 || this.privIsDisposed || g === null)
18804
18814
  return;
18805
- if (Mg.telemetryData)
18815
+ if (Qg.telemetryData)
18806
18816
  try {
18807
- Mg.telemetryData(g);
18817
+ Qg.telemetryData(g);
18808
18818
  } catch {
18809
18819
  }
18810
18820
  yield (yield this.fetchConnection()).send(new Ag(J.Text, "telemetry", this.privRequestSession.requestId, "application/json", g));
@@ -18812,12 +18822,12 @@ class Mg {
18812
18822
  }
18813
18823
  // Cancels recognition.
18814
18824
  cancelRecognitionLocal(g, I, e) {
18815
- return Lg(this, void 0, void 0, function* () {
18825
+ return Ng(this, void 0, void 0, function* () {
18816
18826
  this.privRequestSession.isRecognizing && (yield this.privRequestSession.onStopRecognizing(), this.cancelRecognition(this.privRequestSession.sessionId, this.privRequestSession.requestId, g, I, e));
18817
18827
  });
18818
18828
  }
18819
18829
  receiveMessage() {
18820
- return Lg(this, void 0, void 0, function* () {
18830
+ return Ng(this, void 0, void 0, function* () {
18821
18831
  try {
18822
18832
  if (this.privIsDisposed)
18823
18833
  return;
@@ -18846,7 +18856,7 @@ class Mg {
18846
18856
  break;
18847
18857
  case "turn.end":
18848
18858
  yield this.sendTelemetryData(), this.privRequestSession.isSpeechEnded && this.privMustReportEndOfStream && (this.privMustReportEndOfStream = !1, yield this.cancelRecognitionLocal(og.EndOfStream, w.NoError, void 0));
18849
- const l = new Fg(this.privRequestSession.sessionId);
18859
+ const l = new kg(this.privRequestSession.sessionId);
18850
18860
  if (yield this.privRequestSession.onServiceTurnEndResponse(this.privRecognizerConfig.isContinuousRecognition), !this.privRecognizerConfig.isContinuousRecognition || this.privRequestSession.isSpeechEnded || !this.privRequestSession.isRecognizing) {
18851
18861
  this.privRecognizer.sessionStopped && this.privRecognizer.sessionStopped(this.privRecognizer, l);
18852
18862
  return;
@@ -18876,14 +18886,14 @@ class Mg {
18876
18886
  }
18877
18887
  // Encapsulated for derived service recognizers that need to send additional JSON
18878
18888
  sendPrePayloadJSON(g, I = !0) {
18879
- return Lg(this, void 0, void 0, function* () {
18889
+ return Ng(this, void 0, void 0, function* () {
18880
18890
  if (this.sendPrePayloadJSONOverride !== void 0)
18881
18891
  return this.sendPrePayloadJSONOverride(g);
18882
18892
  yield this.sendSpeechContext(g, I), yield this.sendWaveHeader(g);
18883
18893
  });
18884
18894
  }
18885
18895
  sendWaveHeader(g) {
18886
- return Lg(this, void 0, void 0, function* () {
18896
+ return Ng(this, void 0, void 0, function* () {
18887
18897
  const I = yield this.audioSource.format;
18888
18898
  return g.send(new Ag(J.Binary, "audio", this.privRequestSession.requestId, "audio/x-wav", I.header));
18889
18899
  });
@@ -18894,7 +18904,7 @@ class Mg {
18894
18904
  }), this.postConnectImplOverride !== void 0 ? this.postConnectImplOverride(this.privConnectionPromise) : this.privConnectionPromise);
18895
18905
  }
18896
18906
  sendSpeechServiceConfig(g, I, e) {
18897
- if (I.onSpeechContext(), Mg.telemetryDataEnabled !== !0) {
18907
+ if (I.onSpeechContext(), Qg.telemetryDataEnabled !== !0) {
18898
18908
  const o = {
18899
18909
  context: {
18900
18910
  system: JSON.parse(e).context.system
@@ -18910,16 +18920,16 @@ class Mg {
18910
18920
  return g.send(new Ag(J.Text, "speech.config", I.requestId, "application/json", e));
18911
18921
  }
18912
18922
  fetchConnection() {
18913
- return Lg(this, void 0, void 0, function* () {
18923
+ return Ng(this, void 0, void 0, function* () {
18914
18924
  return this.privConnectionConfigurationPromise !== void 0 ? this.privConnectionConfigurationPromise.then((g) => g.state() === pg.Disconnected ? (this.privConnectionId = null, this.privConnectionConfigurationPromise = void 0, this.privServiceHasSentMessage = !1, this.fetchConnection()) : this.privConnectionConfigurationPromise, () => (this.privConnectionId = null, this.privConnectionConfigurationPromise = void 0, this.privServiceHasSentMessage = !1, this.fetchConnection())) : (this.privConnectionConfigurationPromise = this.configureConnection(), yield this.privConnectionConfigurationPromise);
18915
18925
  });
18916
18926
  }
18917
18927
  sendAudio(g) {
18918
- return Lg(this, void 0, void 0, function* () {
18928
+ return Ng(this, void 0, void 0, function* () {
18919
18929
  const I = yield this.audioSource.format;
18920
18930
  this.privAverageBytesPerMs = I.avgBytesPerSec / 1e3;
18921
18931
  let e = Date.now();
18922
- const t = this.privRecognizerConfig.parameters.getProperty("SPEECH-TransmitLengthBeforThrottleMs", "5000"), o = I.avgBytesPerSec / 1e3 * parseInt(t, 10), C = this.privRequestSession.recogNumber, n = () => Lg(this, void 0, void 0, function* () {
18932
+ const t = this.privRecognizerConfig.parameters.getProperty("SPEECH-TransmitLengthBeforThrottleMs", "5000"), o = I.avgBytesPerSec / 1e3 * parseInt(t, 10), C = this.privRequestSession.recogNumber, n = () => Ng(this, void 0, void 0, function* () {
18923
18933
  if (!this.privIsDisposed && !this.privRequestSession.isSpeechEnded && this.privRequestSession.isRecognizing && this.privRequestSession.recogNumber === C) {
18924
18934
  const s = yield this.fetchConnection(), l = yield g.read();
18925
18935
  if (this.privRequestSession.isSpeechEnded)
@@ -18939,7 +18949,7 @@ class Mg {
18939
18949
  });
18940
18950
  }
18941
18951
  retryableConnect() {
18942
- return Lg(this, void 0, void 0, function* () {
18952
+ return Ng(this, void 0, void 0, function* () {
18943
18953
  let g = !1;
18944
18954
  this.privAuthFetchEventId = Cg();
18945
18955
  const I = this.privRequestSession.sessionId;
@@ -18977,19 +18987,19 @@ class Mg {
18977
18987
  console.info(I);
18978
18988
  }
18979
18989
  sendFinalAudio() {
18980
- return Lg(this, void 0, void 0, function* () {
18990
+ return Ng(this, void 0, void 0, function* () {
18981
18991
  yield (yield this.fetchConnection()).send(new Ag(J.Binary, "audio", this.privRequestSession.requestId, null, null));
18982
18992
  });
18983
18993
  }
18984
18994
  // Takes an established websocket connection to the endpoint and sends speech configuration information.
18985
18995
  configureConnection() {
18986
- return Lg(this, void 0, void 0, function* () {
18996
+ return Ng(this, void 0, void 0, function* () {
18987
18997
  const g = yield this.connectImpl();
18988
18998
  return this.configConnectionOverride !== void 0 ? this.configConnectionOverride(g) : (yield this.sendSpeechServiceConfig(g, this.privRequestSession, this.privRecognizerConfig.SpeechServiceConfig.serialize()), yield this.sendPrePayloadJSON(g, !1), g);
18989
18999
  });
18990
19000
  }
18991
19001
  }
18992
- Mg.telemetryDataEnabled = !0;
19002
+ Qg.telemetryDataEnabled = !0;
18993
19003
  var Qo = function(i, g, I, e) {
18994
19004
  function t(o) {
18995
19005
  return o instanceof I ? o : new I(function(C) {
@@ -19017,7 +19027,7 @@ var Qo = function(i, g, I, e) {
19017
19027
  l((e = e.apply(i, g || [])).next());
19018
19028
  });
19019
19029
  };
19020
- class id extends Mg {
19030
+ class id extends Qg {
19021
19031
  constructor(g, I, e, t, o) {
19022
19032
  super(g, I, e, t, o), this.handleSpeechPhraseMessage = (C) => Qo(this, void 0, void 0, function* () {
19023
19033
  return this.handleSpeechPhrase(C);
@@ -19059,10 +19069,10 @@ class id extends Mg {
19059
19069
  yield this.cancelRecognitionLocal(s, l, Wg.implTranslateErrorDetails(l));
19060
19070
  } else if (!(this.privRequestSession.isSpeechEnded && e === X.NoMatch && I.RecognitionStatus !== _.InitialSilenceTimeout)) {
19061
19071
  if (this.privRecognizerConfig.parameters.getProperty(sI) === E[E.Simple])
19062
- t = new $g(this.privRequestSession.requestId, e, I.DisplayText, I.Duration, C, I.Language, I.LanguageDetectionConfidence, I.SpeakerId, void 0, g, o);
19072
+ t = new gI(this.privRequestSession.requestId, e, I.DisplayText, I.Duration, C, I.Language, I.LanguageDetectionConfidence, I.SpeakerId, void 0, g, o);
19063
19073
  else {
19064
19074
  const s = tt.fromJSON(g), l = s.Offset + this.privRequestSession.currentTurnAudioOffset, a = s.getJsonWithCorrectedOffsets(l);
19065
- t = new $g(this.privRequestSession.requestId, e, s.Text, s.Duration, l, s.Language, s.LanguageDetectionConfidence, s.SpeakerId, void 0, a, o), n = t.offset;
19075
+ t = new gI(this.privRequestSession.requestId, e, s.Text, s.Duration, l, s.Language, s.LanguageDetectionConfidence, s.SpeakerId, void 0, a, o), n = t.offset;
19066
19076
  }
19067
19077
  this.handleRecognizedCallback(t, n, this.privRequestSession.sessionId);
19068
19078
  }
@@ -19071,7 +19081,7 @@ class id extends Mg {
19071
19081
  handleSpeechHypothesis(g) {
19072
19082
  const I = Xe.fromJSON(g), e = I.Offset + this.privRequestSession.currentTurnAudioOffset, t = new x();
19073
19083
  t.setProperty(r.SpeechServiceResponse_JsonResult, g);
19074
- const o = new $g(this.privRequestSession.requestId, X.RecognizingSpeech, I.Text, I.Duration, e, I.Language, I.LanguageDetectionConfidence, I.SpeakerId, void 0, g, t);
19084
+ const o = new gI(this.privRequestSession.requestId, X.RecognizingSpeech, I.Text, I.Duration, e, I.Language, I.LanguageDetectionConfidence, I.SpeakerId, void 0, g, t);
19075
19085
  this.privRequestSession.onHypothesis(e), this.handleRecognizingCallback(o, I.Duration, this.privRequestSession.sessionId);
19076
19086
  }
19077
19087
  }
@@ -19216,13 +19226,13 @@ class ee {
19216
19226
  return I;
19217
19227
  }
19218
19228
  }
19219
- class tu extends Kg {
19229
+ class Cu extends Yg {
19220
19230
  constructor() {
19221
19231
  super(...arguments), this.interactiveRelativeUri = "/speech/recognition/interactive/cognitiveservices/v1", this.conversationRelativeUri = "/speech/recognition/conversation/cognitiveservices/v1", this.dictationRelativeUri = "/speech/recognition/dictation/cognitiveservices/v1", this.universalUri = "/speech/universal/v";
19222
19232
  }
19223
19233
  create(g, I, e) {
19224
19234
  let t = g.parameters.getProperty(r.SpeechServiceConnection_Endpoint, void 0);
19225
- const o = g.parameters.getProperty(r.SpeechServiceConnection_Region, void 0), C = Kg.getHostSuffix(o), n = g.parameters.getProperty(r.SpeechServiceConnection_Host, "wss://" + o + ".stt.speech" + C), s = {}, l = g.parameters.getProperty(r.SpeechServiceConnection_EndpointId, void 0), a = g.parameters.getProperty(r.SpeechServiceConnection_RecoLanguage, void 0);
19235
+ const o = g.parameters.getProperty(r.SpeechServiceConnection_Region, void 0), C = Yg.getHostSuffix(o), n = g.parameters.getProperty(r.SpeechServiceConnection_Host, "wss://" + o + ".stt.speech" + C), s = {}, l = g.parameters.getProperty(r.SpeechServiceConnection_EndpointId, void 0), a = g.parameters.getProperty(r.SpeechServiceConnection_RecoLanguage, void 0);
19226
19236
  if (l ? (!t || t.search(V.CustomSpeechDeploymentId) === -1) && (s[V.CustomSpeechDeploymentId] = l) : a && (!t || t.search(V.Language) === -1) && (s[V.Language] = a), (!t || t.search(V.Format) === -1) && (s[V.Format] = g.parameters.getProperty(sI, E[E.Simple]).toLowerCase()), g.autoDetectSourceLanguages !== void 0 && (s[V.EnableLanguageId] = "true"), this.setCommonUrlParams(g, s, t), !t)
19227
19237
  switch (g.recognitionMode) {
19228
19238
  case vg.Conversation:
@@ -19241,13 +19251,13 @@ class tu extends Kg {
19241
19251
  return g.parameters.setProperty(r.SpeechServiceConnection_Url, m), u;
19242
19252
  }
19243
19253
  }
19244
- class ou extends Kg {
19254
+ class nu extends Yg {
19245
19255
  constructor() {
19246
19256
  super(...arguments), this.universalUri = "/speech/universal/v2";
19247
19257
  }
19248
19258
  create(g, I, e) {
19249
19259
  let t = g.parameters.getProperty(r.SpeechServiceConnection_Endpoint, void 0);
19250
- const o = g.parameters.getProperty(r.SpeechServiceConnection_Region, void 0), C = Kg.getHostSuffix(o), n = g.parameters.getProperty(r.SpeechServiceConnection_Host, "wss://" + o + ".stt.speech" + C), s = {}, l = g.parameters.getProperty(r.SpeechServiceConnection_EndpointId, void 0), a = g.parameters.getProperty(r.SpeechServiceConnection_RecoLanguage, void 0);
19260
+ const o = g.parameters.getProperty(r.SpeechServiceConnection_Region, void 0), C = Yg.getHostSuffix(o), n = g.parameters.getProperty(r.SpeechServiceConnection_Host, "wss://" + o + ".stt.speech" + C), s = {}, l = g.parameters.getProperty(r.SpeechServiceConnection_EndpointId, void 0), a = g.parameters.getProperty(r.SpeechServiceConnection_RecoLanguage, void 0);
19251
19261
  l ? (!t || t.search(V.CustomSpeechDeploymentId) === -1) && (s[V.CustomSpeechDeploymentId] = l) : a && (!t || t.search(V.Language) === -1) && (s[V.Language] = a), g.autoDetectSourceLanguages !== void 0 && (s[V.EnableLanguageId] = "true"), this.setV2UrlParams(g, s, t), t || (t = `${n}${this.universalUri}`);
19252
19262
  const c = {};
19253
19263
  I.token !== void 0 && I.token !== "" && (c[I.headerName] = I.token), c[O.ConnectionId] = e;
@@ -19272,13 +19282,13 @@ class ou extends Kg {
19272
19282
  });
19273
19283
  }
19274
19284
  }
19275
- class td extends Kg {
19285
+ class td extends Yg {
19276
19286
  constructor() {
19277
19287
  super(...arguments), this.multiaudioRelativeUri = "/speech/recognition/multiaudio";
19278
19288
  }
19279
19289
  create(g, I, e) {
19280
19290
  let t = g.parameters.getProperty(r.SpeechServiceConnection_Endpoint, void 0);
19281
- const o = g.parameters.getProperty(r.SpeechServiceConnection_Region, "centralus"), C = Kg.getHostSuffix(o), n = "wss://transcribe." + o + ".cts.speech" + C + this.multiaudioRelativeUri, s = g.parameters.getProperty(r.SpeechServiceConnection_Host, n), l = {};
19291
+ const o = g.parameters.getProperty(r.SpeechServiceConnection_Region, "centralus"), C = Yg.getHostSuffix(o), n = "wss://transcribe." + o + ".cts.speech" + C + this.multiaudioRelativeUri, s = g.parameters.getProperty(r.SpeechServiceConnection_Host, n), l = {};
19282
19292
  this.setQueryParams(l, g, t), t || (t = s);
19283
19293
  const a = {};
19284
19294
  I.token !== void 0 && I.token !== "" && (a[I.headerName] = I.token), a[O.ConnectionId] = e, g.parameters.setProperty(r.SpeechServiceConnection_Url, t);
@@ -19292,7 +19302,7 @@ class td extends Kg {
19292
19302
  (C || n) && (g[V.Format] = E[E.Detailed].toLowerCase()), this.setCommonUrlParams(I, g, e);
19293
19303
  }
19294
19304
  }
19295
- class od extends Kg {
19305
+ class od extends Yg {
19296
19306
  create(g, I, e) {
19297
19307
  const t = this.getEndpointUrl(g), o = {};
19298
19308
  g.autoDetectSourceLanguages !== void 0 && (o[V.EnableLanguageId] = "true"), this.setQueryParams(o, g, t);
@@ -19302,7 +19312,7 @@ class od extends Kg {
19302
19312
  return new zI(t, o, C, new ee(), hI.fromRecognizerConfig(g), n, e);
19303
19313
  }
19304
19314
  getEndpointUrl(g, I) {
19305
- const e = g.parameters.getProperty(r.SpeechServiceConnection_Region), t = Kg.getHostSuffix(e);
19315
+ const e = g.parameters.getProperty(r.SpeechServiceConnection_Region), t = Yg.getHostSuffix(e);
19306
19316
  let o = g.parameters.getProperty(r.SpeechServiceConnection_Endpoint, void 0);
19307
19317
  return o || (g.autoDetectSourceLanguages !== void 0 ? o = g.parameters.getProperty(r.SpeechServiceConnection_Host, "wss://{region}.stt.speech" + t) + "/speech/universal/v2" : o = g.parameters.getProperty(r.SpeechServiceConnection_Host, "wss://{region}.s2s.speech" + t) + "/speech/translation/cognitiveservices/v1"), I === !0 ? o : xC.formatString(o, { region: e });
19308
19318
  }
@@ -19504,7 +19514,7 @@ var Wa = function(i, g, I, e) {
19504
19514
  l((e = e.apply(i, g || [])).next());
19505
19515
  });
19506
19516
  };
19507
- class Cu extends id {
19517
+ class su extends id {
19508
19518
  constructor(g, I, e, t, o) {
19509
19519
  super(g, I, e, t, o), this.privTranslationRecognizer = o, this.connectionEvents.attach((C) => {
19510
19520
  C.name === "ConnectionEstablishedEvent" && this.privTranslationRecognizer.onConnection();
@@ -19618,7 +19628,7 @@ class Cu extends id {
19618
19628
  // Cancels recognition.
19619
19629
  cancelRecognition(g, I, e, t, o) {
19620
19630
  const C = new x();
19621
- if (C.setProperty(xg, w[t]), this.privTranslationRecognizer.canceled) {
19631
+ if (C.setProperty(Pg, w[t]), this.privTranslationRecognizer.canceled) {
19622
19632
  const n = new MC(g, e, o, t, void 0);
19623
19633
  try {
19624
19634
  this.privTranslationRecognizer.canceled(this.privTranslationRecognizer, n);
@@ -19744,7 +19754,7 @@ class cs {
19744
19754
  return this.privSpeechKeyword.Duration;
19745
19755
  }
19746
19756
  }
19747
- var nu = function(i, g, I, e) {
19757
+ var au = function(i, g, I, e) {
19748
19758
  function t(o) {
19749
19759
  return o instanceof I ? o : new I(function(C) {
19750
19760
  C(o);
@@ -19771,12 +19781,12 @@ var nu = function(i, g, I, e) {
19771
19781
  l((e = e.apply(i, g || [])).next());
19772
19782
  });
19773
19783
  };
19774
- class su extends Mg {
19784
+ class lu extends Qg {
19775
19785
  constructor(g, I, e, t, o) {
19776
19786
  super(g, I, e, t, o), this.privSpeechRecognizer = o;
19777
19787
  }
19778
19788
  processTypeSpecificMessages(g) {
19779
- return nu(this, void 0, void 0, function* () {
19789
+ return au(this, void 0, void 0, function* () {
19780
19790
  let I;
19781
19791
  const e = new x();
19782
19792
  e.setProperty(r.SpeechServiceResponse_JsonResult, g.textBody);
@@ -19785,7 +19795,7 @@ class su extends Mg {
19785
19795
  case "speech.hypothesis":
19786
19796
  case "speech.fragment":
19787
19797
  const o = Xe.fromJSON(g.textBody), C = o.Offset + this.privRequestSession.currentTurnAudioOffset;
19788
- I = new $g(
19798
+ I = new gI(
19789
19799
  this.privRequestSession.requestId,
19790
19800
  X.RecognizingSpeech,
19791
19801
  o.Text,
@@ -19815,7 +19825,7 @@ class su extends Mg {
19815
19825
  } else {
19816
19826
  if (!(this.privRequestSession.isSpeechEnded && l === X.NoMatch && s.RecognitionStatus !== _.InitialSilenceTimeout)) {
19817
19827
  if (this.privRecognizerConfig.parameters.getProperty(sI) === E[E.Simple])
19818
- I = new $g(
19828
+ I = new gI(
19819
19829
  this.privRequestSession.requestId,
19820
19830
  l,
19821
19831
  s.DisplayText,
@@ -19831,7 +19841,7 @@ class su extends Mg {
19831
19841
  );
19832
19842
  else {
19833
19843
  const c = tt.fromJSON(g.textBody), G = c.Offset + this.privRequestSession.currentTurnAudioOffset, u = c.getJsonWithCorrectedOffsets(G);
19834
- I = new $g(
19844
+ I = new gI(
19835
19845
  this.privRequestSession.requestId,
19836
19846
  l,
19837
19847
  c.RecognitionStatus === _.Success ? c.NBest[0].Display : void 0,
@@ -19871,7 +19881,7 @@ class su extends Mg {
19871
19881
  // Cancels recognition.
19872
19882
  cancelRecognition(g, I, e, t, o) {
19873
19883
  const C = new x();
19874
- if (C.setProperty(xg, w[t]), this.privSpeechRecognizer.canceled) {
19884
+ if (C.setProperty(Pg, w[t]), this.privSpeechRecognizer.canceled) {
19875
19885
  const n = new Un(e, o, t, void 0, g);
19876
19886
  try {
19877
19887
  this.privSpeechRecognizer.canceled(this.privSpeechRecognizer, n);
@@ -19879,7 +19889,7 @@ class su extends Mg {
19879
19889
  }
19880
19890
  }
19881
19891
  if (this.privSuccessCallback) {
19882
- const n = new $g(
19892
+ const n = new gI(
19883
19893
  I,
19884
19894
  X.Canceled,
19885
19895
  void 0,
@@ -19906,7 +19916,7 @@ class su extends Mg {
19906
19916
  }
19907
19917
  }
19908
19918
  }
19909
- var au = function(i, g, I, e) {
19919
+ var cu = function(i, g, I, e) {
19910
19920
  function t(o) {
19911
19921
  return o instanceof I ? o : new I(function(C) {
19912
19922
  C(o);
@@ -19933,7 +19943,7 @@ var au = function(i, g, I, e) {
19933
19943
  l((e = e.apply(i, g || [])).next());
19934
19944
  });
19935
19945
  };
19936
- class lu extends Mg {
19946
+ class ru extends Qg {
19937
19947
  constructor(g, I, e, t, o) {
19938
19948
  super(g, I, e, t, o), this.privConversationTranscriber = o, this.setSpeakerDiarizationJson();
19939
19949
  }
@@ -19946,7 +19956,7 @@ class lu extends Mg {
19946
19956
  }
19947
19957
  }
19948
19958
  processTypeSpecificMessages(g) {
19949
- return au(this, void 0, void 0, function* () {
19959
+ return cu(this, void 0, void 0, function* () {
19950
19960
  let I;
19951
19961
  const e = new x();
19952
19962
  e.setProperty(r.SpeechServiceResponse_JsonResult, g.textBody);
@@ -20004,7 +20014,7 @@ class lu extends Mg {
20004
20014
  }
20005
20015
  // Cancels recognition.
20006
20016
  cancelRecognition(g, I, e, t, o) {
20007
- if (new x().setProperty(xg, w[t]), this.privConversationTranscriber.canceled) {
20017
+ if (new x().setProperty(Pg, w[t]), this.privConversationTranscriber.canceled) {
20008
20018
  const n = new Cs(e, o, t, void 0, g);
20009
20019
  try {
20010
20020
  this.privConversationTranscriber.canceled(this.privConversationTranscriber, n);
@@ -20040,7 +20050,7 @@ var To = function(i, g, I, e) {
20040
20050
  l((e = e.apply(i, g || [])).next());
20041
20051
  });
20042
20052
  };
20043
- class cu extends id {
20053
+ class du extends id {
20044
20054
  constructor(g, I, e, t, o) {
20045
20055
  super(g, I, e, t, o), this.privTranscriberRecognizer = o, this.sendPrePayloadJSONOverride = (C) => this.sendTranscriptionStartJSON(C), this.privRecognizerConfig.parameters.getProperty(r.SpeechServiceResponse_RequestWordLevelTimestamps) === "true" && this.privSpeechContext.setWordLevelTimings();
20046
20056
  }
@@ -20087,7 +20097,7 @@ class cu extends id {
20087
20097
  // Cancels recognition.
20088
20098
  cancelRecognition(g, I, e, t, o) {
20089
20099
  const C = new x();
20090
- if (C.setProperty(xg, w[t]), this.privTranscriberRecognizer.IsMeetingRecognizer()) {
20100
+ if (C.setProperty(Pg, w[t]), this.privTranscriberRecognizer.IsMeetingRecognizer()) {
20091
20101
  if (this.privTranscriberRecognizer.canceled) {
20092
20102
  const n = new jr(e, o, t, void 0, g);
20093
20103
  try {
@@ -20103,7 +20113,7 @@ class cu extends id {
20103
20113
  }
20104
20114
  }
20105
20115
  if (this.privSuccessCallback) {
20106
- const n = new $g(
20116
+ const n = new gI(
20107
20117
  I,
20108
20118
  X.Canceled,
20109
20119
  void 0,
@@ -20250,7 +20260,7 @@ class va {
20250
20260
  this.modelImpl = g, this.intentName = I;
20251
20261
  }
20252
20262
  }
20253
- class ru extends Mg {
20263
+ class Au extends Qg {
20254
20264
  constructor(g, I, e, t, o) {
20255
20265
  super(g, I, e, t, o), this.privIntentRecognizer = o, this.privIntentDataSent = !1;
20256
20266
  }
@@ -20329,7 +20339,7 @@ class ru extends Mg {
20329
20339
  // Cancels recognition.
20330
20340
  cancelRecognition(g, I, e, t, o) {
20331
20341
  const C = new x();
20332
- if (C.setProperty(xg, w[t]), this.privIntentRecognizer.canceled) {
20342
+ if (C.setProperty(Pg, w[t]), this.privIntentRecognizer.canceled) {
20333
20343
  const n = new Nr(e, o, t, void 0, void 0, g);
20334
20344
  try {
20335
20345
  this.privIntentRecognizer.canceled(this.privIntentRecognizer, n);
@@ -20381,7 +20391,7 @@ class rs {
20381
20391
  return this.privIntentResponse.entities;
20382
20392
  }
20383
20393
  }
20384
- class du {
20394
+ class hu {
20385
20395
  constructor(g, I, e) {
20386
20396
  this.privIsDisposed = !1, this.privListeningTriggerMetric = null, this.privMicMetric = null, this.privConnectionEstablishMetric = null, this.privRequestId = g, this.privAudioSourceId = I, this.privAudioNodeId = e, this.privReceivedMessages = {}, this.privPhraseLatencies = [], this.privHypothesisLatencies = [];
20387
20397
  }
@@ -20415,7 +20425,7 @@ class du {
20415
20425
  Id: this.privConnectionId,
20416
20426
  Name: "Connection",
20417
20427
  Start: this.privConnectionStartTime
20418
- })), g instanceof Cm && g.connectionId === this.privConnectionId && (this.privConnectionEstablishMetric || (this.privConnectionEstablishMetric = {
20428
+ })), g instanceof sm && g.connectionId === this.privConnectionId && (this.privConnectionEstablishMetric || (this.privConnectionEstablishMetric = {
20419
20429
  End: g.eventTime,
20420
20430
  Error: this.getConnectionError(g.statusCode),
20421
20431
  Id: this.privConnectionId,
@@ -20498,7 +20508,7 @@ var se = function(i, g, I, e) {
20498
20508
  l((e = e.apply(i, g || [])).next());
20499
20509
  });
20500
20510
  };
20501
- class Au {
20511
+ class Gu {
20502
20512
  constructor(g) {
20503
20513
  this.privIsDisposed = !1, this.privDetachables = new Array(), this.privIsAudioNodeDetached = !1, this.privIsRecognizing = !1, this.privIsSpeechEnded = !1, this.privTurnStartAudioOffset = 0, this.privLastRecoOffset = 0, this.privHypothesisReceived = !1, this.privBytesSent = 0, this.privRecognitionBytesSent = 0, this.privRecogNumber = 0, this.privInTurn = !1, this.privConnectionAttempts = 0, this.privAudioSourceId = g, this.privRequestId = Cg(), this.privAudioNodeId = Cg(), this.privTurnDeferral = new $(), this.privTurnDeferral.resolve();
20504
20514
  }
@@ -20543,11 +20553,11 @@ class Au {
20543
20553
  this.privServiceTelemetryListener && this.privDetachables.push(g.attachListener(this.privServiceTelemetryListener));
20544
20554
  }
20545
20555
  startNewRecognition() {
20546
- this.privRecognitionBytesSent = 0, this.privIsSpeechEnded = !1, this.privIsRecognizing = !0, this.privTurnStartAudioOffset = 0, this.privLastRecoOffset = 0, this.privRecogNumber++, this.privServiceTelemetryListener = new du(this.privRequestId, this.privAudioSourceId, this.privAudioNodeId), this.onEvent(new Id(this.requestId, this.privSessionId, this.privAudioSourceId, this.privAudioNodeId));
20556
+ this.privRecognitionBytesSent = 0, this.privIsSpeechEnded = !1, this.privIsRecognizing = !0, this.privTurnStartAudioOffset = 0, this.privLastRecoOffset = 0, this.privRecogNumber++, this.privServiceTelemetryListener = new hu(this.privRequestId, this.privAudioSourceId, this.privAudioNodeId), this.onEvent(new Id(this.requestId, this.privSessionId, this.privAudioSourceId, this.privAudioNodeId));
20547
20557
  }
20548
20558
  onAudioSourceAttachCompleted(g, I) {
20549
20559
  return se(this, void 0, void 0, function* () {
20550
- this.privAudioNode = g, this.privIsAudioNodeDetached = !1, I ? yield this.onComplete() : this.onEvent(new eu(this.privRequestId, this.privSessionId, this.privAudioSourceId, this.privAudioNodeId));
20560
+ this.privAudioNode = g, this.privIsAudioNodeDetached = !1, I ? yield this.onComplete() : this.onEvent(new tu(this.privRequestId, this.privSessionId, this.privAudioSourceId, this.privAudioNodeId));
20551
20561
  });
20552
20562
  }
20553
20563
  onPreConnectionStart(g, I) {
@@ -20562,7 +20572,7 @@ class Au {
20562
20572
  onConnectionEstablishCompleted(g, I) {
20563
20573
  return se(this, void 0, void 0, function* () {
20564
20574
  if (g === 200) {
20565
- this.onEvent(new iu(this.requestId, this.privAudioSourceId, this.privAudioNodeId, this.privAuthFetchEventId, this.privSessionId)), this.privAudioNode && this.privAudioNode.replay(), this.privTurnStartAudioOffset = this.privLastRecoOffset, this.privBytesSent = 0;
20575
+ this.onEvent(new ou(this.requestId, this.privAudioSourceId, this.privAudioNodeId, this.privAuthFetchEventId, this.privSessionId)), this.privAudioNode && this.privAudioNode.replay(), this.privTurnStartAudioOffset = this.privLastRecoOffset, this.privBytesSent = 0;
20566
20576
  return;
20567
20577
  } else g === 403 && (yield this.onComplete());
20568
20578
  });
@@ -20630,7 +20640,7 @@ class Au {
20630
20640
  });
20631
20641
  }
20632
20642
  }
20633
- class hu {
20643
+ class Bu {
20634
20644
  constructor(g) {
20635
20645
  this.privContext = {}, this.privDynamicGrammar = g;
20636
20646
  }
@@ -20694,7 +20704,7 @@ class hu {
20694
20704
  return this.setSection("dgi", g), JSON.stringify(this.privContext);
20695
20705
  }
20696
20706
  }
20697
- class Gu {
20707
+ class mu {
20698
20708
  // Adds one more reference phrases to the dynamic grammar to send.
20699
20709
  // All added phrases are generic phrases.
20700
20710
  addPhrase(g) {
@@ -20754,7 +20764,7 @@ var _C;
20754
20764
  (function(i) {
20755
20765
  i[i.None = 0] = "None", i[i.TextToSpeechAudio = 1] = "TextToSpeechAudio";
20756
20766
  })(_C || (_C = {}));
20757
- class Bu {
20767
+ class uu {
20758
20768
  constructor(g, I) {
20759
20769
  this.privRequestId = I, this.privIsCompleted = !1, this.privAudioStream = null, this.privTurnManager = g, this.resetTurnEndTimeout();
20760
20770
  }
@@ -20776,14 +20786,14 @@ class Bu {
20776
20786
  }, 2e3);
20777
20787
  }
20778
20788
  }
20779
- class mu {
20789
+ class bu {
20780
20790
  constructor() {
20781
20791
  this.privTurnMap = /* @__PURE__ */ new Map();
20782
20792
  }
20783
20793
  StartTurn(g) {
20784
20794
  if (this.privTurnMap.has(g))
20785
- throw new _g("Service error: There is already a turn with id:" + g);
20786
- const I = new Bu(this, g);
20795
+ throw new $g("Service error: There is already a turn with id:" + g);
20796
+ const I = new uu(this, g);
20787
20797
  return this.privTurnMap.set(g, I), this.privTurnMap.get(g);
20788
20798
  }
20789
20799
  GetTurn(g) {
@@ -20791,7 +20801,7 @@ class mu {
20791
20801
  }
20792
20802
  CompleteTurn(g) {
20793
20803
  if (!this.privTurnMap.has(g))
20794
- throw new _g("Service error: Received turn end for an unknown turn id:" + g);
20804
+ throw new $g("Service error: Received turn end for an unknown turn id:" + g);
20795
20805
  const I = this.privTurnMap.get(g);
20796
20806
  return I.complete(), this.privTurnMap.delete(g), I;
20797
20807
  }
@@ -20823,9 +20833,9 @@ var TI = function(i, g, I, e) {
20823
20833
  l((e = e.apply(i, g || [])).next());
20824
20834
  });
20825
20835
  };
20826
- class uu extends Mg {
20836
+ class pu extends Qg {
20827
20837
  constructor(g, I, e, t, o) {
20828
- super(g, I, e, t, o), this.privEvents = new yI(), this.privDialogServiceConnector = o, this.receiveMessageOverride = () => this.receiveDialogMessageOverride(), this.privTurnStateManager = new mu(), this.recognizeOverride = (C, n, s) => this.listenOnce(C, n, s), this.postConnectImplOverride = (C) => this.dialogConnectImpl(C), this.configConnectionOverride = (C) => this.configConnection(C), this.disconnectOverride = () => this.privDisconnect(), this.privDialogAudioSource = e, this.agentConfigSent = !1, this.privLastResult = null, this.connectionEvents.attach((C) => {
20838
+ super(g, I, e, t, o), this.privEvents = new yI(), this.privDialogServiceConnector = o, this.receiveMessageOverride = () => this.receiveDialogMessageOverride(), this.privTurnStateManager = new bu(), this.recognizeOverride = (C, n, s) => this.listenOnce(C, n, s), this.postConnectImplOverride = (C) => this.dialogConnectImpl(C), this.configConnectionOverride = (C) => this.configConnection(C), this.disconnectOverride = () => this.privDisconnect(), this.privDialogAudioSource = e, this.agentConfigSent = !1, this.privLastResult = null, this.connectionEvents.attach((C) => {
20829
20839
  C.name === "ConnectionClosedEvent" && (this.terminateMessageLoop = !0);
20830
20840
  });
20831
20841
  }
@@ -20866,7 +20876,7 @@ class uu extends Mg {
20866
20876
  break;
20867
20877
  case "speech.hypothesis":
20868
20878
  const n = Xe.fromJSON(g.textBody), s = n.Offset + this.privRequestSession.currentTurnAudioOffset;
20869
- e = new $g(this.privRequestSession.requestId, X.RecognizingSpeech, n.Text, n.Duration, s, n.Language, n.LanguageDetectionConfidence, void 0, void 0, g.textBody, I), this.privRequestSession.onHypothesis(s);
20879
+ e = new gI(this.privRequestSession.requestId, X.RecognizingSpeech, n.Text, n.Duration, s, n.Language, n.LanguageDetectionConfidence, void 0, void 0, g.textBody, I), this.privRequestSession.onHypothesis(s);
20870
20880
  const l = new OI(e, n.Duration, this.privRequestSession.sessionId);
20871
20881
  if (this.privDialogServiceConnector.recognizing)
20872
20882
  try {
@@ -20877,7 +20887,7 @@ class uu extends Mg {
20877
20887
  break;
20878
20888
  case "speech.keyword":
20879
20889
  const a = cs.fromJSON(g.textBody);
20880
- e = new $g(this.privRequestSession.requestId, a.Status === "Accepted" ? X.RecognizedKeyword : X.NoMatch, a.Text, a.Duration, a.Offset, void 0, void 0, void 0, void 0, g.textBody, I), a.Status !== "Accepted" && (this.privLastResult = e);
20890
+ e = new gI(this.privRequestSession.requestId, a.Status === "Accepted" ? X.RecognizedKeyword : X.NoMatch, a.Text, a.Duration, a.Offset, void 0, void 0, void 0, void 0, g.textBody, I), a.Status !== "Accepted" && (this.privLastResult = e);
20881
20891
  const c = new OI(e, e.duration, e.resultId);
20882
20892
  if (this.privDialogServiceConnector.recognized)
20883
20893
  try {
@@ -20908,14 +20918,14 @@ class uu extends Mg {
20908
20918
  return TI(this, void 0, void 0, function* () {
20909
20919
  if (this.terminateMessageLoop = !0, this.privRequestSession.isRecognizing && (yield this.privRequestSession.onStopRecognizing()), this.privDialogServiceConnector.canceled) {
20910
20920
  const C = new x();
20911
- C.setProperty(xg, w[t]);
20921
+ C.setProperty(Pg, w[t]);
20912
20922
  const n = new Un(e, o, t, void 0, g);
20913
20923
  try {
20914
20924
  this.privDialogServiceConnector.canceled(this.privDialogServiceConnector, n);
20915
20925
  } catch {
20916
20926
  }
20917
20927
  if (this.privSuccessCallback) {
20918
- const s = new $g(
20928
+ const s = new gI(
20919
20929
  void 0,
20920
20930
  // ResultId
20921
20931
  X.Canceled,
@@ -20954,7 +20964,7 @@ class uu extends Mg {
20954
20964
  } catch (G) {
20955
20965
  return yield this.cancelRecognition(this.privRequestSession.sessionId, this.privRequestSession.requestId, og.Error, w.ConnectionFailure, G), Promise.resolve();
20956
20966
  }
20957
- const a = new Fg(this.privRequestSession.sessionId);
20967
+ const a = new kg(this.privRequestSession.sessionId);
20958
20968
  this.privRecognizer.sessionStarted && this.privRecognizer.sessionStarted(this.privRecognizer, a), this.sendAudio(l).then(() => {
20959
20969
  }, (G) => TI(this, void 0, void 0, function* () {
20960
20970
  yield this.cancelRecognition(this.privRequestSession.sessionId, this.privRequestSession.requestId, og.Error, w.RuntimeError, G);
@@ -21002,7 +21012,7 @@ class uu extends Mg {
21002
21012
  if (m !== B)
21003
21013
  this.privTurnStateManager.CompleteTurn(m);
21004
21014
  else {
21005
- const p = new Fg(this.privRequestSession.sessionId);
21015
+ const p = new kg(this.privRequestSession.sessionId);
21006
21016
  if (yield this.privRequestSession.onServiceTurnEndResponse(!1), (!this.privRecognizerConfig.isContinuousRecognition || this.privRequestSession.isSpeechEnded || !this.privRequestSession.isRecognizing) && this.privRecognizer.sessionStopped && this.privRecognizer.sessionStopped(this.privRecognizer, p), this.privSuccessCallback && this.privLastResult) {
21007
21017
  try {
21008
21018
  this.privSuccessCallback(this.privLastResult), this.privLastResult = null;
@@ -21058,7 +21068,7 @@ class uu extends Mg {
21058
21068
  const e = this.agentConfig.get();
21059
21069
  e.botInfo.commandsCulture = this.privRecognizerConfig.parameters.getProperty(r.SpeechServiceConnection_RecoLanguage, "en-us"), this.agentConfig.set(e);
21060
21070
  }
21061
- this.onEvent(new lm(this.agentConfig));
21071
+ this.onEvent(new rm(this.agentConfig));
21062
21072
  const I = this.agentConfig.toJsonString();
21063
21073
  return this.agentConfigSent = !0, g.send(new Ag(J.Text, "agent.config", this.privRequestSession.requestId, "application/json", I));
21064
21074
  }
@@ -21075,7 +21085,7 @@ class uu extends Mg {
21075
21085
  return g.send(new Ag(J.Text, "speech.agent.context", this.privRequestSession.requestId, "application/json", o));
21076
21086
  }
21077
21087
  fireEventForResult(g, I) {
21078
- const e = Wg.implTranslateRecognitionResult(g.RecognitionStatus), t = g.Offset + this.privRequestSession.currentTurnAudioOffset, o = new $g(this.privRequestSession.requestId, e, g.DisplayText, g.Duration, t, g.Language, g.LanguageDetectionConfidence, void 0, void 0, JSON.stringify(g), I);
21088
+ const e = Wg.implTranslateRecognitionResult(g.RecognitionStatus), t = g.Offset + this.privRequestSession.currentTurnAudioOffset, o = new gI(this.privRequestSession.requestId, e, g.DisplayText, g.Duration, t, g.Language, g.LanguageDetectionConfidence, void 0, void 0, JSON.stringify(g), I);
21079
21089
  return new OI(o, t, this.privRequestSession.sessionId);
21080
21090
  }
21081
21091
  handleResponseMessage(g) {
@@ -21268,7 +21278,7 @@ class jt extends Dt {
21268
21278
  return this.privConversationMessageType;
21269
21279
  }
21270
21280
  }
21271
- class bu {
21281
+ class Zu {
21272
21282
  /**
21273
21283
  * Format incoming messages: text (speech partial/final, IM) or binary (tts)
21274
21284
  */
@@ -21300,17 +21310,17 @@ class bu {
21300
21310
  return I.promise;
21301
21311
  }
21302
21312
  }
21303
- class pu extends Kg {
21313
+ class yu extends Yg {
21304
21314
  create(g, I, e) {
21305
21315
  const t = g.parameters.getProperty(r.ConversationTranslator_Host, T.host), o = g.parameters.getProperty(r.ConversationTranslator_CorrelationId, Qt()), C = `wss://${t}${T.webSocketPath}`, n = g.parameters.getProperty(r.ConversationTranslator_Token, void 0);
21306
21316
  A.throwIfNullOrUndefined(n, "token");
21307
21317
  const s = {};
21308
21318
  s[T.configParams.apiVersion] = T.apiVersion, s[T.configParams.token] = n, s[T.configParams.correlationId] = o;
21309
21319
  const l = g.parameters.getProperty("SPEECH-EnableWebsocketCompression", "false") === "true";
21310
- return new zI(C, s, {}, new bu(), hI.fromRecognizerConfig(g), l, e);
21320
+ return new zI(C, s, {}, new Zu(), hI.fromRecognizerConfig(g), l, e);
21311
21321
  }
21312
21322
  }
21313
- var Zu = function(i, g, I, e) {
21323
+ var Su = function(i, g, I, e) {
21314
21324
  function t(o) {
21315
21325
  return o instanceof I ? o : new I(function(C) {
21316
21326
  C(o);
@@ -21337,7 +21347,7 @@ var Zu = function(i, g, I, e) {
21337
21347
  l((e = e.apply(i, g || [])).next());
21338
21348
  });
21339
21349
  };
21340
- class yu {
21350
+ class Wu {
21341
21351
  constructor(g) {
21342
21352
  this.privIsDisposed = !1, this.privDetachables = new Array(), this.privSessionId = g, this.privRequestId = Cg(), this.privRequestCompletionDeferral = new $();
21343
21353
  }
@@ -21363,7 +21373,7 @@ class yu {
21363
21373
  g ? this.privRequestId = Cg() : this.onComplete();
21364
21374
  }
21365
21375
  dispose() {
21366
- return Zu(this, void 0, void 0, function* () {
21376
+ return Su(this, void 0, void 0, function* () {
21367
21377
  if (!this.privIsDisposed) {
21368
21378
  this.privIsDisposed = !0;
21369
21379
  for (const g of this.privDetachables)
@@ -21374,7 +21384,7 @@ class yu {
21374
21384
  onComplete() {
21375
21385
  }
21376
21386
  }
21377
- class Su extends Fg {
21387
+ class vu extends kg {
21378
21388
  constructor(g, I) {
21379
21389
  super(I), this.privIsMuted = g;
21380
21390
  }
@@ -21382,7 +21392,7 @@ class Su extends Fg {
21382
21392
  return this.privIsMuted;
21383
21393
  }
21384
21394
  }
21385
- class Wu extends Fg {
21395
+ class Hu extends kg {
21386
21396
  constructor(g, I) {
21387
21397
  super(I), this.privIsLocked = g;
21388
21398
  }
@@ -21390,7 +21400,7 @@ class Wu extends Fg {
21390
21400
  return this.privIsLocked;
21391
21401
  }
21392
21402
  }
21393
- class Ha extends Fg {
21403
+ class Ha extends kg {
21394
21404
  constructor(g, I) {
21395
21405
  super(I), this.privParticipant = g;
21396
21406
  }
@@ -21398,7 +21408,7 @@ class Ha extends Fg {
21398
21408
  return this.privParticipant;
21399
21409
  }
21400
21410
  }
21401
- class di extends Fg {
21411
+ class di extends kg {
21402
21412
  constructor(g, I, e, t) {
21403
21413
  super(t), this.privKey = I, this.privValue = e, this.privParticipantId = g;
21404
21414
  }
@@ -21412,7 +21422,7 @@ class di extends Fg {
21412
21422
  return this.privParticipantId;
21413
21423
  }
21414
21424
  }
21415
- class vu extends Fg {
21425
+ class Vu extends kg {
21416
21426
  constructor(g, I, e, t, o, C, n, s, l) {
21417
21427
  super(l), this.privRoomId = g, this.privSessionToken = I, this.privTranslateTo = e, this.privProfanityFilter = t, this.privRoomProfanityFilter = o, this.privIsRoomLocked = C, this.privIsRoomLocked = n, this.privParticipants = s;
21418
21428
  }
@@ -21526,10 +21536,10 @@ const rg = {
21526
21536
  setProfanityFiltering: "SetProfanityFiltering",
21527
21537
  setTranslateToLanguages: "SetTranslateToLanguages",
21528
21538
  setUseTTS: "SetUseTTS"
21529
- }, Hu = (i) => JSON.parse(i);
21539
+ }, Xu = (i) => JSON.parse(i);
21530
21540
  class As {
21531
21541
  constructor(g) {
21532
- this.privCommandResponse = Hu(g);
21542
+ this.privCommandResponse = Xu(g);
21533
21543
  }
21534
21544
  get type() {
21535
21545
  return this.privCommandResponse.type;
@@ -21559,10 +21569,10 @@ class As {
21559
21569
  return new As(g);
21560
21570
  }
21561
21571
  }
21562
- const Vu = (i) => JSON.parse(i), Xu = (i) => JSON.parse(i);
21572
+ const Ru = (i) => JSON.parse(i), Ku = (i) => JSON.parse(i);
21563
21573
  class hs {
21564
21574
  constructor(g) {
21565
- this.privParticipantsPayloadResponse = Vu(g);
21575
+ this.privParticipantsPayloadResponse = Ru(g);
21566
21576
  }
21567
21577
  get roomid() {
21568
21578
  return this.privParticipantsPayloadResponse.roomid;
@@ -21603,7 +21613,7 @@ class hs {
21603
21613
  }
21604
21614
  class Gs {
21605
21615
  constructor(g) {
21606
- this.privParticipantPayloadResponse = Xu(g);
21616
+ this.privParticipantPayloadResponse = Ku(g);
21607
21617
  }
21608
21618
  get nickname() {
21609
21619
  return this.privParticipantPayloadResponse.nickname;
@@ -21630,10 +21640,10 @@ class Gs {
21630
21640
  return new Gs(g);
21631
21641
  }
21632
21642
  }
21633
- const Ru = (i) => JSON.parse(i), Ku = (i) => JSON.parse(i);
21643
+ const Yu = (i) => JSON.parse(i), wu = (i) => JSON.parse(i);
21634
21644
  class Bs {
21635
21645
  constructor(g) {
21636
- this.privSpeechResponse = Ru(g);
21646
+ this.privSpeechResponse = Yu(g);
21637
21647
  }
21638
21648
  get recognition() {
21639
21649
  return this.privSpeechResponse.recognition;
@@ -21671,7 +21681,7 @@ class Bs {
21671
21681
  }
21672
21682
  class ms {
21673
21683
  constructor(g) {
21674
- this.privTextResponse = Ku(g);
21684
+ this.privTextResponse = wu(g);
21675
21685
  }
21676
21686
  get originalText() {
21677
21687
  return this.privTextResponse.originalText;
@@ -21731,9 +21741,9 @@ var ue = function(i, g, I, e) {
21731
21741
  l((e = e.apply(i, g || [])).next());
21732
21742
  });
21733
21743
  };
21734
- class Yu extends Mg {
21744
+ class Lu extends Qg {
21735
21745
  constructor(g, I, e, t, o) {
21736
- super(g, I, e, t, o), this.privConnectionConfigPromise = void 0, this.privLastPartialUtteranceId = "", this.privConversationServiceConnector = o, this.privConversationAuthentication = g, this.receiveMessageOverride = () => this.receiveConversationMessageOverride(), this.recognizeOverride = () => this.noOp(), this.postConnectImplOverride = (C) => this.conversationConnectImpl(C), this.configConnectionOverride = () => this.configConnection(), this.disconnectOverride = () => this.privDisconnect(), this.privConversationRequestSession = new yu(Cg()), this.privConversationConnectionFactory = I, this.privConversationIsDisposed = !1;
21746
+ super(g, I, e, t, o), this.privConnectionConfigPromise = void 0, this.privLastPartialUtteranceId = "", this.privConversationServiceConnector = o, this.privConversationAuthentication = g, this.receiveMessageOverride = () => this.receiveConversationMessageOverride(), this.recognizeOverride = () => this.noOp(), this.postConnectImplOverride = (C) => this.conversationConnectImpl(C), this.configConnectionOverride = () => this.configConnection(), this.disconnectOverride = () => this.privDisconnect(), this.privConversationRequestSession = new Wu(Cg()), this.privConversationConnectionFactory = I, this.privConversationIsDisposed = !1;
21737
21747
  }
21738
21748
  isDisposed() {
21739
21749
  return super.isDisposed() || this.privConversationIsDisposed;
@@ -21816,7 +21826,7 @@ class Yu extends Mg {
21816
21826
  isUsingTts: R.usetts,
21817
21827
  preferredLanguage: R.locale
21818
21828
  }));
21819
- this.privConversationServiceConnector.participantsListReceived && this.privConversationServiceConnector.participantsListReceived(this.privConversationServiceConnector, new vu(u.roomid, u.token, u.translateTo, u.profanityFilter, u.roomProfanityFilter, u.roomLocked, u.muteAll, m, t));
21829
+ this.privConversationServiceConnector.participantsListReceived && this.privConversationServiceConnector.participantsListReceived(this.privConversationServiceConnector, new Vu(u.roomid, u.token, u.translateTo, u.profanityFilter, u.roomProfanityFilter, u.roomLocked, u.muteAll, m, t));
21820
21830
  break;
21821
21831
  case "settranslatetolanguages":
21822
21832
  this.privConversationServiceConnector.participantUpdateCommandReceived && this.privConversationServiceConnector.participantUpdateCommandReceived(this.privConversationServiceConnector, new di(n.participantId, ng.setTranslateToLanguages, n.value, t));
@@ -21828,7 +21838,7 @@ class Yu extends Mg {
21828
21838
  this.privConversationServiceConnector.participantUpdateCommandReceived && this.privConversationServiceConnector.participantUpdateCommandReceived(this.privConversationServiceConnector, new di(n.participantId, ng.setMute, n.value, t));
21829
21839
  break;
21830
21840
  case "setmuteall":
21831
- this.privConversationServiceConnector.muteAllCommandReceived && this.privConversationServiceConnector.muteAllCommandReceived(this.privConversationServiceConnector, new Su(n.value, t));
21841
+ this.privConversationServiceConnector.muteAllCommandReceived && this.privConversationServiceConnector.muteAllCommandReceived(this.privConversationServiceConnector, new vu(n.value, t));
21832
21842
  break;
21833
21843
  case "roomexpirationwarning":
21834
21844
  this.privConversationServiceConnector.conversationExpiration && this.privConversationServiceConnector.conversationExpiration(this.privConversationServiceConnector, new Mr(n.value, this.privConversationRequestSession.sessionId));
@@ -21837,7 +21847,7 @@ class Yu extends Mg {
21837
21847
  this.privConversationServiceConnector.participantUpdateCommandReceived && this.privConversationServiceConnector.participantUpdateCommandReceived(this.privConversationServiceConnector, new di(n.participantId, ng.setUseTTS, n.value, t));
21838
21848
  break;
21839
21849
  case "setlockstate":
21840
- this.privConversationServiceConnector.lockRoomCommandReceived && this.privConversationServiceConnector.lockRoomCommandReceived(this.privConversationServiceConnector, new Wu(n.value, t));
21850
+ this.privConversationServiceConnector.lockRoomCommandReceived && this.privConversationServiceConnector.lockRoomCommandReceived(this.privConversationServiceConnector, new Hu(n.value, t));
21841
21851
  break;
21842
21852
  case "changenickname":
21843
21853
  this.privConversationServiceConnector.participantUpdateCommandReceived && this.privConversationServiceConnector.participantUpdateCommandReceived(this.privConversationServiceConnector, new di(n.participantId, ng.changeNickname, n.value, t));
@@ -21954,17 +21964,17 @@ var Va = function(i, g, I, e) {
21954
21964
  l((e = e.apply(i, g || [])).next());
21955
21965
  });
21956
21966
  };
21957
- class wu {
21967
+ class Nu {
21958
21968
  static fromConfig(g, I, e) {
21959
- return new Lu(g, I, e);
21969
+ return new Fu(g, I, e);
21960
21970
  }
21961
21971
  }
21962
- class Lu extends AI {
21972
+ class Fu extends AI {
21963
21973
  constructor(g, I, e) {
21964
21974
  const t = I;
21965
21975
  A.throwIfNull(t, "speechConfig");
21966
21976
  const o = g;
21967
- A.throwIfNull(o, "conversationImpl"), super(e, t.properties, new pu()), this.privConversation = o, this.privIsDisposed = !1, this.privProperties = t.properties.clone(), this.privConnection = We.fromRecognizer(this), this.privProperties.getProperty(r.WebWorkerLoadType, "on").toLowerCase() === "on" && typeof Blob < "u" && typeof Worker < "u" ? (this.privSetTimeout = Ng.setTimeout, this.privClearTimeout = Ng.clearTimeout) : typeof window < "u" ? (this.privSetTimeout = window.setTimeout.bind(window), this.privClearTimeout = window.clearTimeout.bind(window)) : (this.privSetTimeout = setTimeout, this.privClearTimeout = clearTimeout);
21977
+ A.throwIfNull(o, "conversationImpl"), super(e, t.properties, new yu()), this.privConversation = o, this.privIsDisposed = !1, this.privProperties = t.properties.clone(), this.privConnection = We.fromRecognizer(this), this.privProperties.getProperty(r.WebWorkerLoadType, "on").toLowerCase() === "on" && typeof Blob < "u" && typeof Worker < "u" ? (this.privSetTimeout = Jg.setTimeout, this.privClearTimeout = Jg.clearTimeout) : typeof window < "u" ? (this.privSetTimeout = window.setTimeout.bind(window), this.privClearTimeout = window.clearTimeout.bind(window)) : (this.privSetTimeout = setTimeout, this.privClearTimeout = clearTimeout);
21968
21978
  }
21969
21979
  set connected(g) {
21970
21980
  this.privConnection.connected = g;
@@ -22089,7 +22099,7 @@ class Lu extends AI {
22089
22099
  */
22090
22100
  createServiceRecognizer(g, I, e, t) {
22091
22101
  const o = e;
22092
- return new Yu(g, I, o, t, this);
22102
+ return new Lu(g, I, o, t, this);
22093
22103
  }
22094
22104
  sendMessage(g, I, e) {
22095
22105
  const t = this.privReco;
@@ -22141,7 +22151,7 @@ var Ai = function(i, g, I, e) {
22141
22151
  l((e = e.apply(i, g || [])).next());
22142
22152
  });
22143
22153
  };
22144
- class Nu extends AI {
22154
+ class Ju extends AI {
22145
22155
  /**
22146
22156
  * TranscriberRecognizer constructor.
22147
22157
  * @constructor
@@ -22252,7 +22262,7 @@ class Nu extends AI {
22252
22262
  }
22253
22263
  createServiceRecognizer(g, I, e, t) {
22254
22264
  const o = e;
22255
- return new cu(g, I, o, t, this);
22265
+ return new du(g, I, o, t, this);
22256
22266
  }
22257
22267
  }
22258
22268
  var RI;
@@ -22278,7 +22288,7 @@ class bs extends JI {
22278
22288
  return this.privRequestId;
22279
22289
  }
22280
22290
  }
22281
- class Fu extends bs {
22291
+ class ku extends bs {
22282
22292
  constructor(g, I, e) {
22283
22293
  super("SynthesisTriggeredEvent", g), this.privSessionAudioDestinationId = I, this.privTurnAudioDestinationId = e;
22284
22294
  }
@@ -22289,7 +22299,7 @@ class Fu extends bs {
22289
22299
  return this.privTurnAudioDestinationId;
22290
22300
  }
22291
22301
  }
22292
- class Ju extends bs {
22302
+ class zu extends bs {
22293
22303
  constructor(g, I) {
22294
22304
  super("ConnectingToSynthesisServiceEvent", g), this.privAuthFetchEventId = I;
22295
22305
  }
@@ -22297,7 +22307,7 @@ class Ju extends bs {
22297
22307
  return this.privAuthFetchEventId;
22298
22308
  }
22299
22309
  }
22300
- class ku extends bs {
22310
+ class fu extends bs {
22301
22311
  constructor(g, I) {
22302
22312
  super("SynthesisStartedEvent", g), this.privAuthFetchEventId = I;
22303
22313
  }
@@ -22398,17 +22408,17 @@ class Ot {
22398
22408
  });
22399
22409
  }
22400
22410
  startNewSynthesis(g, I, e, t) {
22401
- this.privIsSynthesisEnded = !1, this.privIsSynthesizing = !0, this.privRequestId = g, this.privRawText = I, this.privIsSSML = e, this.privAudioOutputStream = new kn(), this.privAudioOutputStream.format = this.privAudioOutputFormat, this.privReceivedAudio = null, this.privReceivedAudioWithHeader = null, this.privBytesReceived = 0, this.privTextOffset = 0, this.privNextSearchTextIndex = 0, this.privSentenceOffset = 0, this.privNextSearchSentenceIndex = 0, this.privPartialVisemeAnimation = "", this.privWebRTCSDP = "", t !== void 0 && (this.privTurnAudioDestination = t, this.privTurnAudioDestination.format = this.privAudioOutputFormat), this.onEvent(new Fu(this.requestId, void 0, t === void 0 ? void 0 : t.id()));
22411
+ this.privIsSynthesisEnded = !1, this.privIsSynthesizing = !0, this.privRequestId = g, this.privRawText = I, this.privIsSSML = e, this.privAudioOutputStream = new kn(), this.privAudioOutputStream.format = this.privAudioOutputFormat, this.privReceivedAudio = null, this.privReceivedAudioWithHeader = null, this.privBytesReceived = 0, this.privTextOffset = 0, this.privNextSearchTextIndex = 0, this.privSentenceOffset = 0, this.privNextSearchSentenceIndex = 0, this.privPartialVisemeAnimation = "", this.privWebRTCSDP = "", t !== void 0 && (this.privTurnAudioDestination = t, this.privTurnAudioDestination.format = this.privAudioOutputFormat), this.onEvent(new ku(this.requestId, void 0, t === void 0 ? void 0 : t.id()));
22402
22412
  }
22403
22413
  onPreConnectionStart(g) {
22404
- this.privAuthFetchEventId = g, this.onEvent(new Ju(this.privRequestId, this.privAuthFetchEventId));
22414
+ this.privAuthFetchEventId = g, this.onEvent(new zu(this.privRequestId, this.privAuthFetchEventId));
22405
22415
  }
22406
22416
  onAuthCompleted(g) {
22407
22417
  g && this.onComplete();
22408
22418
  }
22409
22419
  onConnectionEstablishCompleted(g) {
22410
22420
  if (g === 200) {
22411
- this.onEvent(new ku(this.requestId, this.privAuthFetchEventId)), this.privBytesReceived = 0;
22421
+ this.onEvent(new fu(this.requestId, this.privAuthFetchEventId)), this.privBytesReceived = 0;
22412
22422
  return;
22413
22423
  } else g === 403 && this.onComplete();
22414
22424
  }
@@ -22530,7 +22540,7 @@ class xi {
22530
22540
  throw new Rg("connectionFactory");
22531
22541
  if (!e)
22532
22542
  throw new Rg("synthesizerConfig");
22533
- this.privAuthentication = g, this.privConnectionFactory = I, this.privSynthesizerConfig = e, this.privIsDisposed = !1, this.privSessionAudioDestination = t, this.privSynthesisTurn = new Ot(), this.privConnectionEvents = new yI(), this.privServiceEvents = new yI(), this.privSynthesisContext = new Qu(), this.privAgentConfig = new Cd(), this.connectionEvents.attach((o) => {
22543
+ this.privAuthentication = g, this.privConnectionFactory = I, this.privSynthesizerConfig = e, this.privIsDisposed = !1, this.privSessionAudioDestination = t, this.privSynthesisTurn = new Ot(), this.privConnectionEvents = new yI(), this.privServiceEvents = new yI(), this.privSynthesisContext = new Du(), this.privAgentConfig = new Cd(), this.connectionEvents.attach((o) => {
22534
22544
  if (o.name === "ConnectionClosedEvent") {
22535
22545
  const C = o;
22536
22546
  C.statusCode !== 1e3 && this.cancelSynthesisLocal(og.Error, C.statusCode === 1007 ? w.BadRequestParameters : w.ConnectionFailure, `${C.reason} websocket error code: ${C.statusCode}`);
@@ -22602,7 +22612,7 @@ class xi {
22602
22612
  // Cancels synthesis.
22603
22613
  cancelSynthesis(g, I, e, t) {
22604
22614
  const o = new x();
22605
- o.setProperty(xg, w[e]);
22615
+ o.setProperty(Pg, w[e]);
22606
22616
  const C = new Qi(g, X.Canceled, void 0, t, o);
22607
22617
  if (this.onSynthesisCancelled(C), this.privSuccessCallback)
22608
22618
  try {
@@ -22749,7 +22759,7 @@ class xi {
22749
22759
  }
22750
22760
  }
22751
22761
  xi.telemetryDataEnabled = !0;
22752
- class zu extends xi {
22762
+ class Mu extends xi {
22753
22763
  constructor(g, I, e, t, o) {
22754
22764
  super(g, I, e, void 0), this.privAvatarSynthesizer = t, this.privSynthesizer = t, this.privAvatarConfig = o;
22755
22765
  }
@@ -22804,7 +22814,7 @@ class zu extends xi {
22804
22814
  }
22805
22815
  }
22806
22816
  }
22807
- class fu extends xi {
22817
+ class Uu extends xi {
22808
22818
  constructor(g, I, e, t, o) {
22809
22819
  super(g, I, e, o), this.privSpeechSynthesizer = t, this.privSynthesizer = t;
22810
22820
  }
@@ -22861,11 +22871,11 @@ class fu extends xi {
22861
22871
  }
22862
22872
  }
22863
22873
  }
22864
- class Mu {
22874
+ class Qu {
22865
22875
  constructor(g, I) {
22866
22876
  let e = g.parameters.getProperty(r.SpeechServiceConnection_Endpoint, void 0);
22867
22877
  if (!e) {
22868
- const o = g.parameters.getProperty(r.SpeechServiceConnection_Region, "westus"), C = Kg.getHostSuffix(o);
22878
+ const o = g.parameters.getProperty(r.SpeechServiceConnection_Region, "westus"), C = Yg.getHostSuffix(o);
22869
22879
  e = g.parameters.getProperty(r.SpeechServiceConnection_Host, `https://${o}.tts.speech${C}`);
22870
22880
  }
22871
22881
  this.privUri = `${e}/cognitiveservices/voices/list`;
@@ -22887,7 +22897,7 @@ var $C;
22887
22897
  (function(i) {
22888
22898
  i[i.Standard = 0] = "Standard", i[i.Custom = 1] = "Custom";
22889
22899
  })($C || ($C = {}));
22890
- class Uu {
22900
+ class Tu {
22891
22901
  constructor(g, I) {
22892
22902
  this.privSynthesisServiceType = $C.Standard, this.avatarEnabled = !1, this.privSpeechServiceConfig = g || new mo(new uo(null)), this.privParameters = I;
22893
22903
  }
@@ -22909,7 +22919,7 @@ class Uu {
22909
22919
  return this.privSpeechServiceConfig;
22910
22920
  }
22911
22921
  }
22912
- class Qu {
22922
+ class Du {
22913
22923
  constructor() {
22914
22924
  this.privContext = {};
22915
22925
  }
@@ -22981,7 +22991,7 @@ var Eo = function(i, g, I, e) {
22981
22991
  l((e = e.apply(i, g || [])).next());
22982
22992
  });
22983
22993
  };
22984
- class Tu extends Mg {
22994
+ class Eu extends Qg {
22985
22995
  constructor(g, I, e, t, o) {
22986
22996
  super(g, I, e, t, o), this.privSpeakerRecognizer = o, this.privSpeakerAudioSource = e, this.recognizeSpeaker = (C) => this.recognizeSpeakerOnce(C), this.sendPrePayloadJSONOverride = () => this.noOp();
22987
22997
  }
@@ -23000,7 +23010,7 @@ class Tu extends Mg {
23000
23010
  }
23001
23011
  // Cancels recognition.
23002
23012
  cancelRecognition(g, I, e, t, o) {
23003
- if (new x().setProperty(xg, w[t]), this.privResultDeferral) {
23013
+ if (new x().setProperty(Pg, w[t]), this.privResultDeferral) {
23004
23014
  const n = new Nt({
23005
23015
  scenario: this.privSpeakerModel.scenario,
23006
23016
  status: { statusCode: o, reason: o }
@@ -23022,7 +23032,7 @@ class Tu extends Mg {
23022
23032
  } catch (a) {
23023
23033
  this.cancelRecognition(this.privRequestSession.sessionId, this.privRequestSession.requestId, og.Error, w.ConnectionFailure, a);
23024
23034
  }
23025
- const s = new Fg(this.privRequestSession.sessionId);
23035
+ const s = new kg(this.privRequestSession.sessionId);
23026
23036
  return this.privRecognizer.sessionStarted && this.privRecognizer.sessionStarted(this.privRecognizer, s), this.receiveMessage(), this.sendAudio(n).then(() => {
23027
23037
  }, (a) => {
23028
23038
  this.cancelRecognition(this.privRequestSession.sessionId, this.privRequestSession.requestId, og.Error, w.RuntimeError, a);
@@ -23079,9 +23089,9 @@ var rI = function(i, g, I, e) {
23079
23089
  l((e = e.apply(i, g || [])).next());
23080
23090
  });
23081
23091
  };
23082
- class Du extends Mg {
23092
+ class xu extends Qg {
23083
23093
  constructor(g, I, e, t, o) {
23084
- super(g, I, e, t, o), this.privDeferralMap = new sm(), this.privSpeakerAudioSource = e, this.sendPrePayloadJSONOverride = () => this.noOp();
23094
+ super(g, I, e, t, o), this.privDeferralMap = new lm(), this.privSpeakerAudioSource = e, this.sendPrePayloadJSONOverride = () => this.noOp();
23085
23095
  }
23086
23096
  set SpeakerAudioSource(g) {
23087
23097
  this.privSpeakerAudioSource = g;
@@ -23121,7 +23131,7 @@ class Du extends Mg {
23121
23131
  }
23122
23132
  // Cancels recognition.
23123
23133
  cancelRecognition(g, I, e, t, o) {
23124
- new x().setProperty(xg, w[t]);
23134
+ new x().setProperty(Pg, w[t]);
23125
23135
  const n = new re(X.Canceled, o, o);
23126
23136
  this.privDeferralMap.getId(I) && this.privDeferralMap.complete(I, n);
23127
23137
  }
@@ -23181,7 +23191,7 @@ class Du extends Mg {
23181
23191
  } catch (c) {
23182
23192
  this.cancelRecognition(this.privRequestSession.sessionId, this.privRequestSession.requestId, og.Error, w.ConnectionFailure, c);
23183
23193
  }
23184
- const l = new Fg(this.privRequestSession.sessionId);
23194
+ const l = new kg(this.privRequestSession.sessionId);
23185
23195
  return this.privRecognizer.sessionStarted && this.privRecognizer.sessionStarted(this.privRecognizer, l), this.receiveMessage(), this.sendAudio(s).then(() => {
23186
23196
  }, (c) => {
23187
23197
  this.cancelRecognition(this.privRequestSession.sessionId, this.privRequestSession.requestId, og.Error, w.RuntimeError, c);
@@ -23346,10 +23356,10 @@ class mo {
23346
23356
  }
23347
23357
  class uo {
23348
23358
  constructor(g) {
23349
- this.system = new Eu(), this.os = g;
23359
+ this.system = new Pu(), this.os = g;
23350
23360
  }
23351
23361
  }
23352
- class Eu {
23362
+ class Pu {
23353
23363
  constructor() {
23354
23364
  const g = "1.33.1";
23355
23365
  this.name = "SpeechSDK", this.version = g, this.build = "JavaScript", this.lang = "JavaScript";
@@ -23368,7 +23378,7 @@ var He;
23368
23378
  (function(i) {
23369
23379
  i.Phone = "Phone", i.Speaker = "Speaker", i.Car = "Car", i.Headset = "Headset", i.Thermostat = "Thermostat", i.Microphones = "Microphones", i.Deskphone = "Deskphone", i.RemoteControl = "RemoteControl", i.Unknown = "Unknown", i.File = "File", i.Stream = "Stream";
23370
23380
  })(He || (He = {}));
23371
- const sI = "OutputFormat", xg = "CancellationErrorCode", qI = "ServiceProperties", ps = "ForceDictation", ld = "OpenRange", xu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23381
+ const sI = "OutputFormat", Pg = "CancellationErrorCode", qI = "ServiceProperties", ps = "ForceDictation", ld = "OpenRange", ju = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23372
23382
  __proto__: null,
23373
23383
  ActivityReceivedEventArgs: Jr,
23374
23384
  AudioConfig: ge,
@@ -23380,13 +23390,13 @@ const sI = "OutputFormat", xg = "CancellationErrorCode", qI = "ServiceProperties
23380
23390
  AudioStreamFormat: ei,
23381
23391
  AutoDetectSourceLanguageConfig: Ri,
23382
23392
  AutoDetectSourceLanguageResult: xt,
23383
- AvatarConfig: Um,
23393
+ AvatarConfig: Tm,
23384
23394
  AvatarEventArgs: Or,
23385
- AvatarSynthesizer: Qm,
23395
+ AvatarSynthesizer: Dm,
23386
23396
  AvatarVideoFormat: _r,
23387
- AvatarWebRTCConnectionResult: Dm,
23388
- BaseAudioPlayer: Km,
23389
- BotFrameworkConfig: Hm,
23397
+ AvatarWebRTCConnectionResult: xm,
23398
+ BaseAudioPlayer: wm,
23399
+ BotFrameworkConfig: Xm,
23390
23400
  CancellationDetails: Pn,
23391
23401
  CancellationDetailsBase: It,
23392
23402
  get CancellationErrorCode() {
@@ -23397,7 +23407,7 @@ const sI = "OutputFormat", xg = "CancellationErrorCode", qI = "ServiceProperties
23397
23407
  },
23398
23408
  Connection: We,
23399
23409
  ConnectionEventArgs: UC,
23400
- ConnectionMessage: Wm,
23410
+ ConnectionMessage: Hm,
23401
23411
  ConnectionMessageEventArgs: QC,
23402
23412
  Conversation: fr,
23403
23413
  ConversationExpirationEventArgs: Mr,
@@ -23409,17 +23419,17 @@ const sI = "OutputFormat", xg = "CancellationErrorCode", qI = "ServiceProperties
23409
23419
  ConversationTranslationCanceledEventArgs: is,
23410
23420
  ConversationTranslationEventArgs: Ze,
23411
23421
  ConversationTranslationResult: EC,
23412
- ConversationTranslator: Fm,
23413
- Coordinate: Tm,
23414
- CustomCommandsConfig: Vm,
23422
+ ConversationTranslator: km,
23423
+ Coordinate: Em,
23424
+ CustomCommandsConfig: Rm,
23415
23425
  Diagnostics: $r,
23416
23426
  DialogServiceConfig: CI,
23417
- DialogServiceConnector: Xm,
23427
+ DialogServiceConnector: Km,
23418
23428
  IntentRecognitionCanceledEventArgs: Nr,
23419
23429
  IntentRecognitionEventArgs: Me,
23420
23430
  IntentRecognitionResult: fe,
23421
- IntentRecognizer: Sm,
23422
- KeywordRecognitionModel: bm,
23431
+ IntentRecognizer: vm,
23432
+ KeywordRecognitionModel: Zm,
23423
23433
  get LanguageIdMode() {
23424
23434
  return Ui;
23425
23435
  },
@@ -23428,9 +23438,9 @@ const sI = "OutputFormat", xg = "CancellationErrorCode", qI = "ServiceProperties
23428
23438
  return mg;
23429
23439
  },
23430
23440
  Meeting: Ur,
23431
- MeetingTranscriber: zm,
23441
+ MeetingTranscriber: Mm,
23432
23442
  MeetingTranscriptionCanceledEventArgs: jr,
23433
- MeetingTranscriptionEventArgs: pm,
23443
+ MeetingTranscriptionEventArgs: ym,
23434
23444
  NoMatchDetails: xn,
23435
23445
  get NoMatchReason() {
23436
23446
  return pe;
@@ -23474,7 +23484,7 @@ const sI = "OutputFormat", xg = "CancellationErrorCode", qI = "ServiceProperties
23474
23484
  get ServicePropertyChannel() {
23475
23485
  return Et;
23476
23486
  },
23477
- SessionEventArgs: Fg,
23487
+ SessionEventArgs: kg,
23478
23488
  SourceLanguageConfig: Is,
23479
23489
  SpeakerAudioDestination: OC,
23480
23490
  SpeakerIdentificationModel: $n,
@@ -23483,13 +23493,13 @@ const sI = "OutputFormat", xg = "CancellationErrorCode", qI = "ServiceProperties
23483
23493
  get SpeakerRecognitionResultType() {
23484
23494
  return De;
23485
23495
  },
23486
- SpeakerRecognizer: wm,
23496
+ SpeakerRecognizer: Nm,
23487
23497
  SpeakerVerificationModel: gs,
23488
23498
  SpeechConfig: Qn,
23489
23499
  SpeechConfigImpl: ce,
23490
23500
  SpeechRecognitionCanceledEventArgs: Un,
23491
23501
  SpeechRecognitionEventArgs: OI,
23492
- SpeechRecognitionResult: $g,
23502
+ SpeechRecognitionResult: gI,
23493
23503
  SpeechRecognizer: Dn,
23494
23504
  SpeechSynthesisBookmarkEventArgs: Er,
23495
23505
  get SpeechSynthesisBoundaryType() {
@@ -23516,11 +23526,11 @@ const sI = "OutputFormat", xg = "CancellationErrorCode", qI = "ServiceProperties
23516
23526
  TranslationSynthesisResult: fC,
23517
23527
  Translations: En,
23518
23528
  TurnStatusReceivedEventArgs: kr,
23519
- User: km,
23529
+ User: fm,
23520
23530
  VoiceInfo: Pr,
23521
23531
  VoiceProfile: zr,
23522
23532
  VoiceProfileCancellationDetails: _n,
23523
- VoiceProfileClient: Ym,
23533
+ VoiceProfileClient: Lm,
23524
23534
  VoiceProfileEnrollmentCancellationDetails: qn,
23525
23535
  VoiceProfileEnrollmentResult: re,
23526
23536
  VoiceProfilePhraseResult: TC,
@@ -23528,7 +23538,7 @@ const sI = "OutputFormat", xg = "CancellationErrorCode", qI = "ServiceProperties
23528
23538
  get VoiceProfileType() {
23529
23539
  return FI;
23530
23540
  }
23531
- }, Symbol.toStringTag, { value: "Module" })), Pu = /* @__PURE__ */ _B(xu);
23541
+ }, Symbol.toStringTag, { value: "Module" })), Ou = /* @__PURE__ */ gm(ju);
23532
23542
  var cd = { exports: {} };
23533
23543
  (function(i) {
23534
23544
  function g(I) {
@@ -23538,7 +23548,7 @@ var cd = { exports: {} };
23538
23548
  }
23539
23549
  i.exports = g, i.exports.__esModule = !0, i.exports.default = i.exports;
23540
23550
  })(cd);
23541
- var ju = cd.exports, hi = function(i) {
23551
+ var qu = cd.exports, hi = function(i) {
23542
23552
  return i && i.Math === Math && i;
23543
23553
  }, Hg = (
23544
23554
  // eslint-disable-next-line es/no-global-this -- safe
@@ -23553,32 +23563,32 @@ var ju = cd.exports, hi = function(i) {
23553
23563
  } catch {
23554
23564
  return !0;
23555
23565
  }
23556
- }, Ou = aI, bo = !Ou(function() {
23566
+ }, _u = aI, bo = !_u(function() {
23557
23567
  var i = (function() {
23558
23568
  }).bind();
23559
23569
  return typeof i != "function" || i.hasOwnProperty("prototype");
23560
- }), qu = bo, rd = Function.prototype, Xa = rd.apply, Ra = rd.call, Zs = typeof Reflect == "object" && Reflect.apply || (qu ? Ra.bind(Xa) : function() {
23570
+ }), $u = bo, rd = Function.prototype, Xa = rd.apply, Ra = rd.call, Zs = typeof Reflect == "object" && Reflect.apply || ($u ? Ra.bind(Xa) : function() {
23561
23571
  return Ra.apply(Xa, arguments);
23562
- }), dd = bo, Ad = Function.prototype, gn = Ad.call, _u = dd && Ad.bind.bind(gn, gn), II = dd ? _u : function(i) {
23572
+ }), dd = bo, Ad = Function.prototype, gn = Ad.call, gb = dd && Ad.bind.bind(gn, gn), II = dd ? gb : function(i) {
23563
23573
  return function() {
23564
23574
  return gn.apply(i, arguments);
23565
23575
  };
23566
- }, hd = II, $u = hd({}.toString), gb = hd("".slice), po = function(i) {
23567
- return gb($u(i), 8, -1);
23568
- }, Ib = po, eb = II, Gd = function(i) {
23569
- if (Ib(i) === "Function") return eb(i);
23570
- }, xo = typeof document == "object" && document.all, Qg = typeof xo > "u" && xo !== void 0 ? function(i) {
23576
+ }, hd = II, Ib = hd({}.toString), eb = hd("".slice), po = function(i) {
23577
+ return eb(Ib(i), 8, -1);
23578
+ }, ib = po, tb = II, Gd = function(i) {
23579
+ if (ib(i) === "Function") return tb(i);
23580
+ }, xo = typeof document == "object" && document.all, Dg = typeof xo > "u" && xo !== void 0 ? function(i) {
23571
23581
  return typeof i == "function" || i === xo;
23572
23582
  } : function(i) {
23573
23583
  return typeof i == "function";
23574
- }, ys = {}, ib = aI, te = !ib(function() {
23584
+ }, ys = {}, ob = aI, te = !ob(function() {
23575
23585
  return Object.defineProperty({}, 1, { get: function() {
23576
23586
  return 7;
23577
23587
  } })[1] !== 7;
23578
- }), tb = bo, ut = Function.prototype.call, GI = tb ? ut.bind(ut) : function() {
23588
+ }), Cb = bo, ut = Function.prototype.call, GI = Cb ? ut.bind(ut) : function() {
23579
23589
  return ut.apply(ut, arguments);
23580
- }, Bd = {}, md = {}.propertyIsEnumerable, ud = Object.getOwnPropertyDescriptor, ob = ud && !md.call({ 1: 2 }, 1);
23581
- Bd.f = ob ? function(g) {
23590
+ }, Bd = {}, md = {}.propertyIsEnumerable, ud = Object.getOwnPropertyDescriptor, nb = ud && !md.call({ 1: 2 }, 1);
23591
+ Bd.f = nb ? function(g) {
23582
23592
  var I = ud(this, g);
23583
23593
  return !!I && I.enumerable;
23584
23594
  } : md;
@@ -23589,59 +23599,59 @@ var ot = function(i, g) {
23589
23599
  writable: !(i & 4),
23590
23600
  value: g
23591
23601
  };
23592
- }, Cb = II, nb = aI, sb = po, Po = Object, ab = Cb("".split), lb = nb(function() {
23602
+ }, sb = II, ab = aI, lb = po, Po = Object, cb = sb("".split), rb = ab(function() {
23593
23603
  return !Po("z").propertyIsEnumerable(0);
23594
23604
  }) ? function(i) {
23595
- return sb(i) === "String" ? ab(i, "") : Po(i);
23605
+ return lb(i) === "String" ? cb(i, "") : Po(i);
23596
23606
  } : Po, Zo = function(i) {
23597
23607
  return i == null;
23598
- }, cb = Zo, rb = TypeError, yo = function(i) {
23599
- if (cb(i)) throw new rb("Can't call method on " + i);
23608
+ }, db = Zo, Ab = TypeError, yo = function(i) {
23609
+ if (db(i)) throw new Ab("Can't call method on " + i);
23600
23610
  return i;
23601
- }, db = lb, Ab = yo, Ct = function(i) {
23602
- return db(Ab(i));
23603
- }, hb = Qg, WI = function(i) {
23604
- return typeof i == "object" ? i !== null : hb(i);
23605
- }, So = {}, jo = So, Oo = Hg, Gb = Qg, Ka = function(i) {
23606
- return Gb(i) ? i : void 0;
23611
+ }, hb = rb, Gb = yo, Ct = function(i) {
23612
+ return hb(Gb(i));
23613
+ }, Bb = Dg, WI = function(i) {
23614
+ return typeof i == "object" ? i !== null : Bb(i);
23615
+ }, So = {}, jo = So, Oo = Hg, mb = Dg, Ka = function(i) {
23616
+ return mb(i) ? i : void 0;
23607
23617
  }, he = function(i, g) {
23608
23618
  return arguments.length < 2 ? Ka(jo[i]) || Ka(Oo[i]) : jo[i] && jo[i][g] || Oo[i] && Oo[i][g];
23609
- }, Bb = II, Wo = Bb({}.isPrototypeOf), mb = Hg, Ya = mb.navigator, wa = Ya && Ya.userAgent, nt = wa ? String(wa) : "", bd = Hg, qo = nt, La = bd.process, Na = bd.Deno, Fa = La && La.versions || Na && Na.version, Ja = Fa && Fa.v8, uI, qt;
23619
+ }, ub = II, Wo = ub({}.isPrototypeOf), bb = Hg, Ya = bb.navigator, wa = Ya && Ya.userAgent, nt = wa ? String(wa) : "", bd = Hg, qo = nt, La = bd.process, Na = bd.Deno, Fa = La && La.versions || Na && Na.version, Ja = Fa && Fa.v8, uI, qt;
23610
23620
  Ja && (uI = Ja.split("."), qt = uI[0] > 0 && uI[0] < 4 ? 1 : +(uI[0] + uI[1]));
23611
23621
  !qt && qo && (uI = qo.match(/Edge\/(\d+)/), (!uI || uI[1] >= 74) && (uI = qo.match(/Chrome\/(\d+)/), uI && (qt = +uI[1])));
23612
- var pd = qt, ka = pd, ub = aI, bb = Hg, pb = bb.String, Zd = !!Object.getOwnPropertySymbols && !ub(function() {
23622
+ var pd = qt, ka = pd, pb = aI, Zb = Hg, yb = Zb.String, Zd = !!Object.getOwnPropertySymbols && !pb(function() {
23613
23623
  var i = Symbol("symbol detection");
23614
- return !pb(i) || !(Object(i) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
23624
+ return !yb(i) || !(Object(i) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
23615
23625
  !Symbol.sham && ka && ka < 41;
23616
- }), Zb = Zd, yd = Zb && !Symbol.sham && typeof Symbol.iterator == "symbol", yb = he, Sb = Qg, Wb = Wo, vb = yd, Hb = Object, Sd = vb ? function(i) {
23626
+ }), Sb = Zd, yd = Sb && !Symbol.sham && typeof Symbol.iterator == "symbol", Wb = he, vb = Dg, Hb = Wo, Vb = yd, Xb = Object, Sd = Vb ? function(i) {
23617
23627
  return typeof i == "symbol";
23618
23628
  } : function(i) {
23619
- var g = yb("Symbol");
23620
- return Sb(g) && Wb(g.prototype, Hb(i));
23621
- }, Vb = String, vo = function(i) {
23629
+ var g = Wb("Symbol");
23630
+ return vb(g) && Hb(g.prototype, Xb(i));
23631
+ }, Rb = String, vo = function(i) {
23622
23632
  try {
23623
- return Vb(i);
23633
+ return Rb(i);
23624
23634
  } catch {
23625
23635
  return "Object";
23626
23636
  }
23627
- }, Xb = Qg, Rb = vo, Kb = TypeError, vI = function(i) {
23628
- if (Xb(i)) return i;
23629
- throw new Kb(Rb(i) + " is not a function");
23630
- }, Yb = vI, wb = Zo, Ss = function(i, g) {
23637
+ }, Kb = Dg, Yb = vo, wb = TypeError, vI = function(i) {
23638
+ if (Kb(i)) return i;
23639
+ throw new wb(Yb(i) + " is not a function");
23640
+ }, Lb = vI, Nb = Zo, Ss = function(i, g) {
23631
23641
  var I = i[g];
23632
- return wb(I) ? void 0 : Yb(I);
23633
- }, _o = GI, $o = Qg, gC = WI, Lb = TypeError, Nb = function(i, g) {
23642
+ return Nb(I) ? void 0 : Lb(I);
23643
+ }, _o = GI, $o = Dg, gC = WI, Fb = TypeError, Jb = function(i, g) {
23634
23644
  var I, e;
23635
23645
  if (g === "string" && $o(I = i.toString) && !gC(e = _o(I, i)) || $o(I = i.valueOf) && !gC(e = _o(I, i)) || g !== "string" && $o(I = i.toString) && !gC(e = _o(I, i))) return e;
23636
- throw new Lb("Can't convert object to primitive value");
23637
- }, Wd = { exports: {} }, Fb = !0, za = Hg, Jb = Object.defineProperty, kb = function(i, g) {
23646
+ throw new Fb("Can't convert object to primitive value");
23647
+ }, Wd = { exports: {} }, kb = !0, za = Hg, zb = Object.defineProperty, fb = function(i, g) {
23638
23648
  try {
23639
- Jb(za, i, { value: g, configurable: !0, writable: !0 });
23649
+ zb(za, i, { value: g, configurable: !0, writable: !0 });
23640
23650
  } catch {
23641
23651
  za[i] = g;
23642
23652
  }
23643
23653
  return g;
23644
- }, zb = Hg, fb = kb, fa = "__core-js_shared__", Ma = Wd.exports = zb[fa] || fb(fa, {});
23654
+ }, Mb = Hg, Ub = fb, fa = "__core-js_shared__", Ma = Wd.exports = Mb[fa] || Ub(fa, {});
23645
23655
  (Ma.versions || (Ma.versions = [])).push({
23646
23656
  version: "3.48.0",
23647
23657
  mode: "pure",
@@ -23651,63 +23661,63 @@ var pd = qt, ka = pd, ub = aI, bb = Hg, pb = bb.String, Zd = !!Object.getOwnProp
23651
23661
  });
23652
23662
  var Ws = Wd.exports, Ua = Ws, vd = function(i, g) {
23653
23663
  return Ua[i] || (Ua[i] = g || {});
23654
- }, Mb = yo, Ub = Object, Hd = function(i) {
23655
- return Ub(Mb(i));
23656
- }, Qb = II, Tb = Hd, Db = Qb({}.hasOwnProperty), fI = Object.hasOwn || function(g, I) {
23657
- return Db(Tb(g), I);
23658
- }, Eb = II, xb = 0, Pb = Math.random(), jb = Eb(1.1.toString), Vd = function(i) {
23659
- return "Symbol(" + (i === void 0 ? "" : i) + ")_" + jb(++xb + Pb, 36);
23660
- }, Ob = Hg, qb = vd, Qa = fI, _b = Vd, $b = Zd, gp = yd, Ue = Ob.Symbol, IC = qb("wks"), Ip = gp ? Ue.for || Ue : Ue && Ue.withoutSetter || _b, lI = function(i) {
23661
- return Qa(IC, i) || (IC[i] = $b && Qa(Ue, i) ? Ue[i] : Ip("Symbol." + i)), IC[i];
23662
- }, ep = GI, Ta = WI, Da = Sd, ip = Ss, tp = Nb, op = lI, Cp = TypeError, np = op("toPrimitive"), sp = function(i, g) {
23664
+ }, Qb = yo, Tb = Object, Hd = function(i) {
23665
+ return Tb(Qb(i));
23666
+ }, Db = II, Eb = Hd, xb = Db({}.hasOwnProperty), fI = Object.hasOwn || function(g, I) {
23667
+ return xb(Eb(g), I);
23668
+ }, Pb = II, jb = 0, Ob = Math.random(), qb = Pb(1.1.toString), Vd = function(i) {
23669
+ return "Symbol(" + (i === void 0 ? "" : i) + ")_" + qb(++jb + Ob, 36);
23670
+ }, _b = Hg, $b = vd, Qa = fI, gp = Vd, Ip = Zd, ep = yd, Ue = _b.Symbol, IC = $b("wks"), ip = ep ? Ue.for || Ue : Ue && Ue.withoutSetter || gp, lI = function(i) {
23671
+ return Qa(IC, i) || (IC[i] = Ip && Qa(Ue, i) ? Ue[i] : ip("Symbol." + i)), IC[i];
23672
+ }, tp = GI, Ta = WI, Da = Sd, op = Ss, Cp = Jb, np = lI, sp = TypeError, ap = np("toPrimitive"), lp = function(i, g) {
23663
23673
  if (!Ta(i) || Da(i)) return i;
23664
- var I = ip(i, np), e;
23674
+ var I = op(i, ap), e;
23665
23675
  if (I) {
23666
- if (g === void 0 && (g = "default"), e = ep(I, i, g), !Ta(e) || Da(e)) return e;
23667
- throw new Cp("Can't convert object to primitive value");
23668
- }
23669
- return g === void 0 && (g = "number"), tp(i, g);
23670
- }, ap = sp, lp = Sd, Xd = function(i) {
23671
- var g = ap(i, "string");
23672
- return lp(g) ? g : g + "";
23673
- }, cp = Hg, Ea = WI, In = cp.document, rp = Ea(In) && Ea(In.createElement), vs = function(i) {
23674
- return rp ? In.createElement(i) : {};
23675
- }, dp = te, Ap = aI, hp = vs, Rd = !dp && !Ap(function() {
23676
- return Object.defineProperty(hp("div"), "a", {
23676
+ if (g === void 0 && (g = "default"), e = tp(I, i, g), !Ta(e) || Da(e)) return e;
23677
+ throw new sp("Can't convert object to primitive value");
23678
+ }
23679
+ return g === void 0 && (g = "number"), Cp(i, g);
23680
+ }, cp = lp, rp = Sd, Xd = function(i) {
23681
+ var g = cp(i, "string");
23682
+ return rp(g) ? g : g + "";
23683
+ }, dp = Hg, Ea = WI, In = dp.document, Ap = Ea(In) && Ea(In.createElement), vs = function(i) {
23684
+ return Ap ? In.createElement(i) : {};
23685
+ }, hp = te, Gp = aI, Bp = vs, Rd = !hp && !Gp(function() {
23686
+ return Object.defineProperty(Bp("div"), "a", {
23677
23687
  get: function() {
23678
23688
  return 7;
23679
23689
  }
23680
23690
  }).a !== 7;
23681
- }), Gp = te, Bp = GI, mp = Bd, up = ot, bp = Ct, pp = Xd, Zp = fI, yp = Rd, xa = Object.getOwnPropertyDescriptor;
23682
- ys.f = Gp ? xa : function(g, I) {
23683
- if (g = bp(g), I = pp(I), yp) try {
23691
+ }), mp = te, up = GI, bp = Bd, pp = ot, Zp = Ct, yp = Xd, Sp = fI, Wp = Rd, xa = Object.getOwnPropertyDescriptor;
23692
+ ys.f = mp ? xa : function(g, I) {
23693
+ if (g = Zp(g), I = yp(I), Wp) try {
23684
23694
  return xa(g, I);
23685
23695
  } catch {
23686
23696
  }
23687
- if (Zp(g, I)) return up(!Bp(mp.f, g, I), g[I]);
23697
+ if (Sp(g, I)) return pp(!up(bp.f, g, I), g[I]);
23688
23698
  };
23689
- var Sp = aI, Wp = Qg, vp = /#|\.prototype\./, st = function(i, g) {
23690
- var I = Vp[Hp(i)];
23691
- return I === Rp ? !0 : I === Xp ? !1 : Wp(g) ? Sp(g) : !!g;
23692
- }, Hp = st.normalize = function(i) {
23693
- return String(i).replace(vp, ".").toLowerCase();
23694
- }, Vp = st.data = {}, Xp = st.NATIVE = "N", Rp = st.POLYFILL = "P", Kd = st, Pa = Gd, Kp = vI, Yp = bo, wp = Pa(Pa.bind), Ho = function(i, g) {
23695
- return Kp(i), g === void 0 ? i : Yp ? wp(i, g) : function() {
23699
+ var vp = aI, Hp = Dg, Vp = /#|\.prototype\./, st = function(i, g) {
23700
+ var I = Rp[Xp(i)];
23701
+ return I === Yp ? !0 : I === Kp ? !1 : Hp(g) ? vp(g) : !!g;
23702
+ }, Xp = st.normalize = function(i) {
23703
+ return String(i).replace(Vp, ".").toLowerCase();
23704
+ }, Rp = st.data = {}, Kp = st.NATIVE = "N", Yp = st.POLYFILL = "P", Kd = st, Pa = Gd, wp = vI, Lp = bo, Np = Pa(Pa.bind), Ho = function(i, g) {
23705
+ return wp(i), g === void 0 ? i : Lp ? Np(i, g) : function() {
23696
23706
  return i.apply(g, arguments);
23697
23707
  };
23698
- }, Re = {}, Lp = te, Np = aI, Yd = Lp && Np(function() {
23708
+ }, Re = {}, Fp = te, Jp = aI, Yd = Fp && Jp(function() {
23699
23709
  return Object.defineProperty(function() {
23700
23710
  }, "prototype", {
23701
23711
  value: 42,
23702
23712
  writable: !1
23703
23713
  }).prototype !== 42;
23704
- }), Fp = WI, Jp = String, kp = TypeError, oe = function(i) {
23705
- if (Fp(i)) return i;
23706
- throw new kp(Jp(i) + " is not an object");
23707
- }, zp = te, fp = Rd, Mp = Yd, bt = oe, ja = Xd, Up = TypeError, eC = Object.defineProperty, Qp = Object.getOwnPropertyDescriptor, iC = "enumerable", tC = "configurable", oC = "writable";
23708
- Re.f = zp ? Mp ? function(g, I, e) {
23714
+ }), kp = WI, zp = String, fp = TypeError, oe = function(i) {
23715
+ if (kp(i)) return i;
23716
+ throw new fp(zp(i) + " is not an object");
23717
+ }, Mp = te, Up = Rd, Qp = Yd, bt = oe, ja = Xd, Tp = TypeError, eC = Object.defineProperty, Dp = Object.getOwnPropertyDescriptor, iC = "enumerable", tC = "configurable", oC = "writable";
23718
+ Re.f = Mp ? Qp ? function(g, I, e) {
23709
23719
  if (bt(g), I = ja(I), bt(e), typeof g == "function" && I === "prototype" && "value" in e && oC in e && !e[oC]) {
23710
- var t = Qp(g, I);
23720
+ var t = Dp(g, I);
23711
23721
  t && t[oC] && (g[I] = e.value, e = {
23712
23722
  configurable: tC in e ? e[tC] : t[tC],
23713
23723
  enumerable: iC in e ? e[iC] : t[iC],
@@ -23716,18 +23726,18 @@ Re.f = zp ? Mp ? function(g, I, e) {
23716
23726
  }
23717
23727
  return eC(g, I, e);
23718
23728
  } : eC : function(g, I, e) {
23719
- if (bt(g), I = ja(I), bt(e), fp) try {
23729
+ if (bt(g), I = ja(I), bt(e), Up) try {
23720
23730
  return eC(g, I, e);
23721
23731
  } catch {
23722
23732
  }
23723
- if ("get" in e || "set" in e) throw new Up("Accessors not supported");
23733
+ if ("get" in e || "set" in e) throw new Tp("Accessors not supported");
23724
23734
  return "value" in e && (g[I] = e.value), g;
23725
23735
  };
23726
- var Tp = te, Dp = Re, Ep = ot, Ke = Tp ? function(i, g, I) {
23727
- return Dp.f(i, g, Ep(1, I));
23736
+ var Ep = te, xp = Re, Pp = ot, Ke = Ep ? function(i, g, I) {
23737
+ return xp.f(i, g, Pp(1, I));
23728
23738
  } : function(i, g, I) {
23729
23739
  return i[g] = I, i;
23730
- }, Gi = Hg, xp = Zs, Pp = Gd, jp = Qg, Op = ys.f, qp = Kd, Ne = So, _p = Ho, Fe = Ke, Oa = fI, $p = function(i) {
23740
+ }, Gi = Hg, jp = Zs, Op = Gd, qp = Dg, _p = ys.f, $p = Kd, Ne = So, g0 = Ho, Fe = Ke, Oa = fI, I0 = function(i) {
23731
23741
  var g = function(I, e, t) {
23732
23742
  if (this instanceof g) {
23733
23743
  switch (arguments.length) {
@@ -23740,62 +23750,62 @@ var Tp = te, Dp = Re, Ep = ot, Ke = Tp ? function(i, g, I) {
23740
23750
  }
23741
23751
  return new i(I, e, t);
23742
23752
  }
23743
- return xp(i, this, arguments);
23753
+ return jp(i, this, arguments);
23744
23754
  };
23745
23755
  return g.prototype = i.prototype, g;
23746
23756
  }, cI = function(i, g) {
23747
23757
  var I = i.target, e = i.global, t = i.stat, o = i.proto, C = e ? Gi : t ? Gi[I] : Gi[I] && Gi[I].prototype, n = e ? Ne : Ne[I] || Fe(Ne, I, {})[I], s = n.prototype, l, a, c, G, u, m, B, p, b;
23748
23758
  for (G in g)
23749
- l = qp(e ? G : I + (t ? "." : "#") + G, i.forced), a = !l && C && Oa(C, G), m = n[G], a && (i.dontCallGetSet ? (b = Op(C, G), B = b && b.value) : B = C[G]), u = a && B ? B : g[G], !(!l && !o && typeof m == typeof u) && (i.bind && a ? p = _p(u, Gi) : i.wrap && a ? p = $p(u) : o && jp(u) ? p = Pp(u) : p = u, (i.sham || u && u.sham || m && m.sham) && Fe(p, "sham", !0), Fe(n, G, p), o && (c = I + "Prototype", Oa(Ne, c) || Fe(Ne, c, {}), Fe(Ne[c], G, u), i.real && s && (l || !s[G]) && Fe(s, G, u)));
23750
- }, g0 = vd, I0 = Vd, qa = g0("keys"), Hs = function(i) {
23751
- return qa[i] || (qa[i] = I0(i));
23752
- }, e0 = aI, i0 = !e0(function() {
23759
+ l = $p(e ? G : I + (t ? "." : "#") + G, i.forced), a = !l && C && Oa(C, G), m = n[G], a && (i.dontCallGetSet ? (b = _p(C, G), B = b && b.value) : B = C[G]), u = a && B ? B : g[G], !(!l && !o && typeof m == typeof u) && (i.bind && a ? p = g0(u, Gi) : i.wrap && a ? p = I0(u) : o && qp(u) ? p = Op(u) : p = u, (i.sham || u && u.sham || m && m.sham) && Fe(p, "sham", !0), Fe(n, G, p), o && (c = I + "Prototype", Oa(Ne, c) || Fe(Ne, c, {}), Fe(Ne[c], G, u), i.real && s && (l || !s[G]) && Fe(s, G, u)));
23760
+ }, e0 = vd, i0 = Vd, qa = e0("keys"), Hs = function(i) {
23761
+ return qa[i] || (qa[i] = i0(i));
23762
+ }, t0 = aI, o0 = !t0(function() {
23753
23763
  function i() {
23754
23764
  }
23755
23765
  return i.prototype.constructor = null, Object.getPrototypeOf(new i()) !== i.prototype;
23756
- }), t0 = fI, o0 = Qg, C0 = Hd, n0 = Hs, s0 = i0, _a = n0("IE_PROTO"), en = Object, a0 = en.prototype, Vs = s0 ? en.getPrototypeOf : function(i) {
23757
- var g = C0(i);
23758
- if (t0(g, _a)) return g[_a];
23766
+ }), C0 = fI, n0 = Dg, s0 = Hd, a0 = Hs, l0 = o0, _a = a0("IE_PROTO"), en = Object, c0 = en.prototype, Vs = l0 ? en.getPrototypeOf : function(i) {
23767
+ var g = s0(i);
23768
+ if (C0(g, _a)) return g[_a];
23759
23769
  var I = g.constructor;
23760
- return o0(I) && g instanceof I ? I.prototype : g instanceof en ? a0 : null;
23761
- }, l0 = II, c0 = vI, r0 = function(i, g, I) {
23770
+ return n0(I) && g instanceof I ? I.prototype : g instanceof en ? c0 : null;
23771
+ }, r0 = II, d0 = vI, A0 = function(i, g, I) {
23762
23772
  try {
23763
- return l0(c0(Object.getOwnPropertyDescriptor(i, g)[I]));
23773
+ return r0(d0(Object.getOwnPropertyDescriptor(i, g)[I]));
23764
23774
  } catch {
23765
23775
  }
23766
- }, d0 = WI, A0 = function(i) {
23767
- return d0(i) || i === null;
23768
- }, h0 = A0, G0 = String, B0 = TypeError, m0 = function(i) {
23769
- if (h0(i)) return i;
23770
- throw new B0("Can't set " + G0(i) + " as a prototype");
23771
- }, u0 = r0, b0 = WI, p0 = yo, Z0 = m0, y0 = Object.setPrototypeOf || ("__proto__" in {} ? function() {
23776
+ }, h0 = WI, G0 = function(i) {
23777
+ return h0(i) || i === null;
23778
+ }, B0 = G0, m0 = String, u0 = TypeError, b0 = function(i) {
23779
+ if (B0(i)) return i;
23780
+ throw new u0("Can't set " + m0(i) + " as a prototype");
23781
+ }, p0 = A0, Z0 = WI, y0 = yo, S0 = b0, W0 = Object.setPrototypeOf || ("__proto__" in {} ? function() {
23772
23782
  var i = !1, g = {}, I;
23773
23783
  try {
23774
- I = u0(Object.prototype, "__proto__", "set"), I(g, []), i = g instanceof Array;
23784
+ I = p0(Object.prototype, "__proto__", "set"), I(g, []), i = g instanceof Array;
23775
23785
  } catch {
23776
23786
  }
23777
23787
  return function(t, o) {
23778
- return p0(t), Z0(o), b0(t) && (i ? I(t, o) : t.__proto__ = o), t;
23788
+ return y0(t), S0(o), Z0(t) && (i ? I(t, o) : t.__proto__ = o), t;
23779
23789
  };
23780
- }() : void 0), wd = {}, S0 = Math.ceil, W0 = Math.floor, v0 = Math.trunc || function(g) {
23790
+ }() : void 0), wd = {}, v0 = Math.ceil, H0 = Math.floor, V0 = Math.trunc || function(g) {
23781
23791
  var I = +g;
23782
- return (I > 0 ? W0 : S0)(I);
23783
- }, H0 = v0, Xs = function(i) {
23792
+ return (I > 0 ? H0 : v0)(I);
23793
+ }, X0 = V0, Xs = function(i) {
23784
23794
  var g = +i;
23785
- return g !== g || g === 0 ? 0 : H0(g);
23786
- }, V0 = Xs, X0 = Math.max, R0 = Math.min, K0 = function(i, g) {
23787
- var I = V0(i);
23788
- return I < 0 ? X0(I + g, 0) : R0(I, g);
23789
- }, Y0 = Xs, w0 = Math.min, L0 = function(i) {
23790
- var g = Y0(i);
23791
- return g > 0 ? w0(g, 9007199254740991) : 0;
23792
- }, N0 = L0, Ld = function(i) {
23793
- return N0(i.length);
23794
- }, F0 = Ct, J0 = K0, k0 = Ld, z0 = function(i) {
23795
+ return g !== g || g === 0 ? 0 : X0(g);
23796
+ }, R0 = Xs, K0 = Math.max, Y0 = Math.min, w0 = function(i, g) {
23797
+ var I = R0(i);
23798
+ return I < 0 ? K0(I + g, 0) : Y0(I, g);
23799
+ }, L0 = Xs, N0 = Math.min, F0 = function(i) {
23800
+ var g = L0(i);
23801
+ return g > 0 ? N0(g, 9007199254740991) : 0;
23802
+ }, J0 = F0, Ld = function(i) {
23803
+ return J0(i.length);
23804
+ }, k0 = Ct, z0 = w0, f0 = Ld, M0 = function(i) {
23795
23805
  return function(g, I, e) {
23796
- var t = F0(g), o = k0(t);
23806
+ var t = k0(g), o = f0(t);
23797
23807
  if (o === 0) return !i && -1;
23798
- var C = J0(e, o), n;
23808
+ var C = z0(e, o), n;
23799
23809
  if (i && I !== I) {
23800
23810
  for (; o > C; )
23801
23811
  if (n = t[C++], n !== n) return !0;
@@ -23803,14 +23813,14 @@ var Tp = te, Dp = Re, Ep = ot, Ke = Tp ? function(i, g, I) {
23803
23813
  if ((i || C in t) && t[C] === I) return i || C || 0;
23804
23814
  return !i && -1;
23805
23815
  };
23806
- }, f0 = {
23816
+ }, U0 = {
23807
23817
  // `Array.prototype.indexOf` method
23808
23818
  // https://tc39.es/ecma262/#sec-array.prototype.indexof
23809
- indexOf: z0(!1)
23810
- }, Rs = {}, M0 = II, CC = fI, U0 = Ct, Q0 = f0.indexOf, T0 = Rs, $a = M0([].push), Nd = function(i, g) {
23811
- var I = U0(i), e = 0, t = [], o;
23812
- for (o in I) !CC(T0, o) && CC(I, o) && $a(t, o);
23813
- for (; g.length > e; ) CC(I, o = g[e++]) && (~Q0(t, o) || $a(t, o));
23819
+ indexOf: M0(!1)
23820
+ }, Rs = {}, Q0 = II, CC = fI, T0 = Ct, D0 = U0.indexOf, E0 = Rs, $a = Q0([].push), Nd = function(i, g) {
23821
+ var I = T0(i), e = 0, t = [], o;
23822
+ for (o in I) !CC(E0, o) && CC(I, o) && $a(t, o);
23823
+ for (; g.length > e; ) CC(I, o = g[e++]) && (~D0(t, o) || $a(t, o));
23814
23824
  return t;
23815
23825
  }, Ks = [
23816
23826
  "constructor",
@@ -23820,121 +23830,121 @@ var Tp = te, Dp = Re, Ep = ot, Ke = Tp ? function(i, g, I) {
23820
23830
  "toLocaleString",
23821
23831
  "toString",
23822
23832
  "valueOf"
23823
- ], D0 = Nd, E0 = Ks, x0 = E0.concat("length", "prototype");
23833
+ ], x0 = Nd, P0 = Ks, j0 = P0.concat("length", "prototype");
23824
23834
  wd.f = Object.getOwnPropertyNames || function(g) {
23825
- return D0(g, x0);
23835
+ return x0(g, j0);
23826
23836
  };
23827
23837
  var Fd = {};
23828
23838
  Fd.f = Object.getOwnPropertySymbols;
23829
- var P0 = he, j0 = II, O0 = wd, q0 = Fd, _0 = oe, $0 = j0([].concat), gZ = P0("Reflect", "ownKeys") || function(g) {
23830
- var I = O0.f(_0(g)), e = q0.f;
23831
- return e ? $0(I, e(g)) : I;
23832
- }, gl = fI, IZ = gZ, eZ = ys, iZ = Re, tZ = function(i, g, I) {
23833
- for (var e = IZ(g), t = iZ.f, o = eZ.f, C = 0; C < e.length; C++) {
23839
+ var O0 = he, q0 = II, _0 = wd, $0 = Fd, gZ = oe, IZ = q0([].concat), eZ = O0("Reflect", "ownKeys") || function(g) {
23840
+ var I = _0.f(gZ(g)), e = $0.f;
23841
+ return e ? IZ(I, e(g)) : I;
23842
+ }, gl = fI, iZ = eZ, tZ = ys, oZ = Re, CZ = function(i, g, I) {
23843
+ for (var e = iZ(g), t = oZ.f, o = tZ.f, C = 0; C < e.length; C++) {
23834
23844
  var n = e[C];
23835
23845
  !gl(i, n) && !(I && gl(I, n)) && t(i, n, o(g, n));
23836
23846
  }
23837
- }, Jd = {}, oZ = Nd, CZ = Ks, nZ = Object.keys || function(g) {
23838
- return oZ(g, CZ);
23839
- }, sZ = te, aZ = Yd, lZ = Re, cZ = oe, rZ = Ct, dZ = nZ;
23840
- Jd.f = sZ && !aZ ? Object.defineProperties : function(g, I) {
23841
- cZ(g);
23842
- for (var e = rZ(I), t = dZ(I), o = t.length, C = 0, n; o > C; ) lZ.f(g, n = t[C++], e[n]);
23847
+ }, Jd = {}, nZ = Nd, sZ = Ks, aZ = Object.keys || function(g) {
23848
+ return nZ(g, sZ);
23849
+ }, lZ = te, cZ = Yd, rZ = Re, dZ = oe, AZ = Ct, hZ = aZ;
23850
+ Jd.f = lZ && !cZ ? Object.defineProperties : function(g, I) {
23851
+ dZ(g);
23852
+ for (var e = AZ(I), t = hZ(I), o = t.length, C = 0, n; o > C; ) rZ.f(g, n = t[C++], e[n]);
23843
23853
  return g;
23844
23854
  };
23845
- var AZ = he, kd = AZ("document", "documentElement"), hZ = oe, GZ = Jd, Il = Ks, BZ = Rs, mZ = kd, uZ = vs, bZ = Hs, el = ">", il = "<", tn = "prototype", on = "script", zd = bZ("IE_PROTO"), nC = function() {
23855
+ var GZ = he, kd = GZ("document", "documentElement"), BZ = oe, mZ = Jd, Il = Ks, uZ = Rs, bZ = kd, pZ = vs, ZZ = Hs, el = ">", il = "<", tn = "prototype", on = "script", zd = ZZ("IE_PROTO"), nC = function() {
23846
23856
  }, fd = function(i) {
23847
23857
  return il + on + el + i + il + "/" + on + el;
23848
23858
  }, tl = function(i) {
23849
23859
  i.write(fd("")), i.close();
23850
23860
  var g = i.parentWindow.Object;
23851
23861
  return i = null, g;
23852
- }, pZ = function() {
23853
- var i = uZ("iframe"), g = "java" + on + ":", I;
23854
- return i.style.display = "none", mZ.appendChild(i), i.src = String(g), I = i.contentWindow.document, I.open(), I.write(fd("document.F=Object")), I.close(), I.F;
23862
+ }, yZ = function() {
23863
+ var i = pZ("iframe"), g = "java" + on + ":", I;
23864
+ return i.style.display = "none", bZ.appendChild(i), i.src = String(g), I = i.contentWindow.document, I.open(), I.write(fd("document.F=Object")), I.close(), I.F;
23855
23865
  }, pt, zt = function() {
23856
23866
  try {
23857
23867
  pt = new ActiveXObject("htmlfile");
23858
23868
  } catch {
23859
23869
  }
23860
- zt = typeof document < "u" ? document.domain && pt ? tl(pt) : pZ() : tl(pt);
23870
+ zt = typeof document < "u" ? document.domain && pt ? tl(pt) : yZ() : tl(pt);
23861
23871
  for (var i = Il.length; i--; ) delete zt[tn][Il[i]];
23862
23872
  return zt();
23863
23873
  };
23864
- BZ[zd] = !0;
23874
+ uZ[zd] = !0;
23865
23875
  var Ys = Object.create || function(g, I) {
23866
23876
  var e;
23867
- return g !== null ? (nC[tn] = hZ(g), e = new nC(), nC[tn] = null, e[zd] = g) : e = zt(), I === void 0 ? e : GZ.f(e, I);
23868
- }, ZZ = WI, yZ = Ke, SZ = function(i, g) {
23869
- ZZ(g) && "cause" in g && yZ(i, "cause", g.cause);
23870
- }, WZ = II, Md = Error, vZ = WZ("".replace), HZ = function(i) {
23877
+ return g !== null ? (nC[tn] = BZ(g), e = new nC(), nC[tn] = null, e[zd] = g) : e = zt(), I === void 0 ? e : mZ.f(e, I);
23878
+ }, SZ = WI, WZ = Ke, vZ = function(i, g) {
23879
+ SZ(g) && "cause" in g && WZ(i, "cause", g.cause);
23880
+ }, HZ = II, Md = Error, VZ = HZ("".replace), XZ = function(i) {
23871
23881
  return String(new Md(i).stack);
23872
- }("zxcasd"), Ud = /\n\s*at [^:]*:[^\n]*/, VZ = Ud.test(HZ), XZ = function(i, g) {
23873
- if (VZ && typeof i == "string" && !Md.prepareStackTrace)
23874
- for (; g--; ) i = vZ(i, Ud, "");
23882
+ }("zxcasd"), Ud = /\n\s*at [^:]*:[^\n]*/, RZ = Ud.test(XZ), KZ = function(i, g) {
23883
+ if (RZ && typeof i == "string" && !Md.prepareStackTrace)
23884
+ for (; g--; ) i = VZ(i, Ud, "");
23875
23885
  return i;
23876
- }, RZ = aI, KZ = ot, YZ = !RZ(function() {
23886
+ }, YZ = aI, wZ = ot, LZ = !YZ(function() {
23877
23887
  var i = new Error("a");
23878
- return "stack" in i ? (Object.defineProperty(i, "stack", KZ(1, 7)), i.stack !== 7) : !0;
23879
- }), wZ = Ke, LZ = XZ, NZ = YZ, ol = Error.captureStackTrace, FZ = function(i, g, I, e) {
23880
- NZ && (ol ? ol(i, g) : wZ(i, "stack", LZ(I, e)));
23881
- }, ii = {}, JZ = lI, kZ = ii, zZ = JZ("iterator"), fZ = Array.prototype, MZ = function(i) {
23882
- return i !== void 0 && (kZ.Array === i || fZ[zZ] === i);
23883
- }, UZ = lI, QZ = UZ("toStringTag"), Qd = {};
23884
- Qd[QZ] = "z";
23885
- var ws = String(Qd) === "[object z]", TZ = ws, DZ = Qg, ft = po, EZ = lI, xZ = EZ("toStringTag"), PZ = Object, jZ = ft(/* @__PURE__ */ function() {
23888
+ return "stack" in i ? (Object.defineProperty(i, "stack", wZ(1, 7)), i.stack !== 7) : !0;
23889
+ }), NZ = Ke, FZ = KZ, JZ = LZ, ol = Error.captureStackTrace, kZ = function(i, g, I, e) {
23890
+ JZ && (ol ? ol(i, g) : NZ(i, "stack", FZ(I, e)));
23891
+ }, ii = {}, zZ = lI, fZ = ii, MZ = zZ("iterator"), UZ = Array.prototype, QZ = function(i) {
23892
+ return i !== void 0 && (fZ.Array === i || UZ[MZ] === i);
23893
+ }, TZ = lI, DZ = TZ("toStringTag"), Qd = {};
23894
+ Qd[DZ] = "z";
23895
+ var ws = String(Qd) === "[object z]", EZ = ws, xZ = Dg, ft = po, PZ = lI, jZ = PZ("toStringTag"), OZ = Object, qZ = ft(/* @__PURE__ */ function() {
23886
23896
  return arguments;
23887
- }()) === "Arguments", OZ = function(i, g) {
23897
+ }()) === "Arguments", _Z = function(i, g) {
23888
23898
  try {
23889
23899
  return i[g];
23890
23900
  } catch {
23891
23901
  }
23892
- }, Vo = TZ ? ft : function(i) {
23902
+ }, Vo = EZ ? ft : function(i) {
23893
23903
  var g, I, e;
23894
- return i === void 0 ? "Undefined" : i === null ? "Null" : typeof (I = OZ(g = PZ(i), xZ)) == "string" ? I : jZ ? ft(g) : (e = ft(g)) === "Object" && DZ(g.callee) ? "Arguments" : e;
23895
- }, qZ = Vo, Cl = Ss, _Z = Zo, $Z = ii, gy = lI, Iy = gy("iterator"), Td = function(i) {
23896
- if (!_Z(i)) return Cl(i, Iy) || Cl(i, "@@iterator") || $Z[qZ(i)];
23897
- }, ey = GI, iy = vI, ty = oe, oy = vo, Cy = Td, ny = TypeError, sy = function(i, g) {
23898
- var I = arguments.length < 2 ? Cy(i) : g;
23899
- if (iy(I)) return ty(ey(I, i));
23900
- throw new ny(oy(i) + " is not iterable");
23901
- }, ay = GI, nl = oe, ly = Ss, cy = function(i, g, I) {
23904
+ return i === void 0 ? "Undefined" : i === null ? "Null" : typeof (I = _Z(g = OZ(i), jZ)) == "string" ? I : qZ ? ft(g) : (e = ft(g)) === "Object" && xZ(g.callee) ? "Arguments" : e;
23905
+ }, $Z = Vo, Cl = Ss, gy = Zo, Iy = ii, ey = lI, iy = ey("iterator"), Td = function(i) {
23906
+ if (!gy(i)) return Cl(i, iy) || Cl(i, "@@iterator") || Iy[$Z(i)];
23907
+ }, ty = GI, oy = vI, Cy = oe, ny = vo, sy = Td, ay = TypeError, ly = function(i, g) {
23908
+ var I = arguments.length < 2 ? sy(i) : g;
23909
+ if (oy(I)) return Cy(ty(I, i));
23910
+ throw new ay(ny(i) + " is not iterable");
23911
+ }, cy = GI, nl = oe, ry = Ss, dy = function(i, g, I) {
23902
23912
  var e, t;
23903
23913
  nl(i);
23904
23914
  try {
23905
- if (e = ly(i, "return"), !e) {
23915
+ if (e = ry(i, "return"), !e) {
23906
23916
  if (g === "throw") throw I;
23907
23917
  return I;
23908
23918
  }
23909
- e = ay(e, i);
23919
+ e = cy(e, i);
23910
23920
  } catch (o) {
23911
23921
  t = !0, e = o;
23912
23922
  }
23913
23923
  if (g === "throw") throw I;
23914
23924
  if (t) throw e;
23915
23925
  return nl(e), I;
23916
- }, ry = Ho, dy = GI, Ay = oe, hy = vo, Gy = MZ, By = Ld, sl = Wo, my = sy, uy = Td, al = cy, by = TypeError, Mt = function(i, g) {
23926
+ }, Ay = Ho, hy = GI, Gy = oe, By = vo, my = QZ, uy = Ld, sl = Wo, by = ly, py = Td, al = dy, Zy = TypeError, Mt = function(i, g) {
23917
23927
  this.stopped = i, this.result = g;
23918
23928
  }, ll = Mt.prototype, at = function(i, g, I) {
23919
- var e = I && I.that, t = !!(I && I.AS_ENTRIES), o = !!(I && I.IS_RECORD), C = !!(I && I.IS_ITERATOR), n = !!(I && I.INTERRUPTED), s = ry(g, e), l, a, c, G, u, m, B, p = function(Z) {
23929
+ var e = I && I.that, t = !!(I && I.AS_ENTRIES), o = !!(I && I.IS_RECORD), C = !!(I && I.IS_ITERATOR), n = !!(I && I.INTERRUPTED), s = Ay(g, e), l, a, c, G, u, m, B, p = function(Z) {
23920
23930
  return l && al(l, "normal"), new Mt(!0, Z);
23921
23931
  }, b = function(Z) {
23922
- return t ? (Ay(Z), n ? s(Z[0], Z[1], p) : s(Z[0], Z[1])) : n ? s(Z, p) : s(Z);
23932
+ return t ? (Gy(Z), n ? s(Z[0], Z[1], p) : s(Z[0], Z[1])) : n ? s(Z, p) : s(Z);
23923
23933
  };
23924
23934
  if (o)
23925
23935
  l = i.iterator;
23926
23936
  else if (C)
23927
23937
  l = i;
23928
23938
  else {
23929
- if (a = uy(i), !a) throw new by(hy(i) + " is not iterable");
23930
- if (Gy(a)) {
23931
- for (c = 0, G = By(i); G > c; c++)
23939
+ if (a = py(i), !a) throw new Zy(By(i) + " is not iterable");
23940
+ if (my(a)) {
23941
+ for (c = 0, G = uy(i); G > c; c++)
23932
23942
  if (u = b(i[c]), u && sl(ll, u)) return u;
23933
23943
  return new Mt(!1);
23934
23944
  }
23935
- l = my(i, a);
23945
+ l = by(i, a);
23936
23946
  }
23937
- for (m = o ? i.next : l.next; !(B = dy(m, l)).done; ) {
23947
+ for (m = o ? i.next : l.next; !(B = hy(m, l)).done; ) {
23938
23948
  try {
23939
23949
  u = b(B.value);
23940
23950
  } catch (Z) {
@@ -23943,38 +23953,38 @@ var ws = String(Qd) === "[object z]", TZ = ws, DZ = Qg, ft = po, EZ = lI, xZ = E
23943
23953
  if (typeof u == "object" && u && sl(ll, u)) return u;
23944
23954
  }
23945
23955
  return new Mt(!1);
23946
- }, py = Vo, Zy = String, Ls = function(i) {
23947
- if (py(i) === "Symbol") throw new TypeError("Cannot convert a Symbol value to a string");
23948
- return Zy(i);
23949
- }, yy = Ls, Sy = function(i, g) {
23950
- return i === void 0 ? arguments.length < 2 ? "" : g : yy(i);
23951
- }, Wy = cI, vy = Wo, Hy = Vs, _t = y0, Vy = tZ, Dd = Ys, sC = Ke, aC = ot, Xy = SZ, Ry = FZ, Ky = at, Yy = Sy, wy = lI, Ly = wy("toStringTag"), $t = Error, Ny = [].push, $e = function(g, I) {
23952
- var e = vy(lC, this), t;
23953
- _t ? t = _t(new $t(), e ? Hy(this) : lC) : (t = e ? this : Dd(lC), sC(t, Ly, "Error")), I !== void 0 && sC(t, "message", Yy(I)), Ry(t, $e, t.stack, 1), arguments.length > 2 && Xy(t, arguments[2]);
23956
+ }, yy = Vo, Sy = String, Ls = function(i) {
23957
+ if (yy(i) === "Symbol") throw new TypeError("Cannot convert a Symbol value to a string");
23958
+ return Sy(i);
23959
+ }, Wy = Ls, vy = function(i, g) {
23960
+ return i === void 0 ? arguments.length < 2 ? "" : g : Wy(i);
23961
+ }, Hy = cI, Vy = Wo, Xy = Vs, _t = W0, Ry = CZ, Dd = Ys, sC = Ke, aC = ot, Ky = vZ, Yy = kZ, wy = at, Ly = vy, Ny = lI, Fy = Ny("toStringTag"), $t = Error, Jy = [].push, $e = function(g, I) {
23962
+ var e = Vy(lC, this), t;
23963
+ _t ? t = _t(new $t(), e ? Xy(this) : lC) : (t = e ? this : Dd(lC), sC(t, Fy, "Error")), I !== void 0 && sC(t, "message", Ly(I)), Yy(t, $e, t.stack, 1), arguments.length > 2 && Ky(t, arguments[2]);
23954
23964
  var o = [];
23955
- return Ky(g, Ny, { that: o }), sC(t, "errors", o), t;
23965
+ return wy(g, Jy, { that: o }), sC(t, "errors", o), t;
23956
23966
  };
23957
- _t ? _t($e, $t) : Vy($e, $t, { name: !0 });
23967
+ _t ? _t($e, $t) : Ry($e, $t, { name: !0 });
23958
23968
  var lC = $e.prototype = Dd($t.prototype, {
23959
23969
  constructor: aC(1, $e),
23960
23970
  message: aC(1, ""),
23961
23971
  name: aC(1, "AggregateError")
23962
23972
  });
23963
- Wy({ global: !0 }, {
23973
+ Hy({ global: !0 }, {
23964
23974
  AggregateError: $e
23965
23975
  });
23966
- var Fy = Hg, Jy = Qg, cl = Fy.WeakMap, ky = Jy(cl) && /native code/.test(String(cl)), zy = ky, Ed = Hg, fy = WI, My = Ke, cC = fI, rC = Ws, Uy = Hs, Qy = Rs, rl = "Object already initialized", Cn = Ed.TypeError, Ty = Ed.WeakMap, go, Pi, Io, Dy = function(i) {
23976
+ var ky = Hg, zy = Dg, cl = ky.WeakMap, fy = zy(cl) && /native code/.test(String(cl)), My = fy, Ed = Hg, Uy = WI, Qy = Ke, cC = fI, rC = Ws, Ty = Hs, Dy = Rs, rl = "Object already initialized", Cn = Ed.TypeError, Ey = Ed.WeakMap, go, Pi, Io, xy = function(i) {
23967
23977
  return Io(i) ? Pi(i) : go(i, {});
23968
- }, Ey = function(i) {
23978
+ }, Py = function(i) {
23969
23979
  return function(g) {
23970
23980
  var I;
23971
- if (!fy(g) || (I = Pi(g)).type !== i)
23981
+ if (!Uy(g) || (I = Pi(g)).type !== i)
23972
23982
  throw new Cn("Incompatible receiver, " + i + " required");
23973
23983
  return I;
23974
23984
  };
23975
23985
  };
23976
- if (zy || rC.state) {
23977
- var HI = rC.state || (rC.state = new Ty());
23986
+ if (My || rC.state) {
23987
+ var HI = rC.state || (rC.state = new Ey());
23978
23988
  HI.get = HI.get, HI.has = HI.has, HI.set = HI.set, go = function(i, g) {
23979
23989
  if (HI.has(i)) throw new Cn(rl);
23980
23990
  return g.facade = i, HI.set(i, g), g;
@@ -23984,10 +23994,10 @@ if (zy || rC.state) {
23984
23994
  return HI.has(i);
23985
23995
  };
23986
23996
  } else {
23987
- var Je = Uy("state");
23988
- Qy[Je] = !0, go = function(i, g) {
23997
+ var Je = Ty("state");
23998
+ Dy[Je] = !0, go = function(i, g) {
23989
23999
  if (cC(i, Je)) throw new Cn(rl);
23990
- return g.facade = i, My(i, Je, g), g;
24000
+ return g.facade = i, Qy(i, Je, g), g;
23991
24001
  }, Pi = function(i) {
23992
24002
  return cC(i, Je) ? i[Je] : {};
23993
24003
  }, Io = function(i) {
@@ -23998,44 +24008,44 @@ var Ns = {
23998
24008
  set: go,
23999
24009
  get: Pi,
24000
24010
  has: Io,
24001
- enforce: Dy,
24002
- getterFor: Ey
24003
- }, nn = te, xy = fI, xd = Function.prototype, Py = nn && Object.getOwnPropertyDescriptor, Pd = xy(xd, "name"), jy = Pd && (function() {
24004
- }).name === "something", Oy = Pd && (!nn || nn && Py(xd, "name").configurable), qy = {
24005
- PROPER: jy,
24006
- CONFIGURABLE: Oy
24007
- }, _y = Ke, Fs = function(i, g, I, e) {
24008
- return e && e.enumerable ? i[g] = I : _y(i, g, I), i;
24009
- }, $y = aI, gS = Qg, IS = WI, eS = Ys, dl = Vs, iS = Fs, tS = lI, sn = tS("iterator"), jd = !1, _I, dC, AC;
24011
+ enforce: xy,
24012
+ getterFor: Py
24013
+ }, nn = te, jy = fI, xd = Function.prototype, Oy = nn && Object.getOwnPropertyDescriptor, Pd = jy(xd, "name"), qy = Pd && (function() {
24014
+ }).name === "something", _y = Pd && (!nn || nn && Oy(xd, "name").configurable), $y = {
24015
+ PROPER: qy,
24016
+ CONFIGURABLE: _y
24017
+ }, gS = Ke, Fs = function(i, g, I, e) {
24018
+ return e && e.enumerable ? i[g] = I : gS(i, g, I), i;
24019
+ }, IS = aI, eS = Dg, iS = WI, tS = Ys, dl = Vs, oS = Fs, CS = lI, sn = CS("iterator"), jd = !1, _I, dC, AC;
24010
24020
  [].keys && (AC = [].keys(), "next" in AC ? (dC = dl(dl(AC)), dC !== Object.prototype && (_I = dC)) : jd = !0);
24011
- var oS = !IS(_I) || $y(function() {
24021
+ var nS = !iS(_I) || IS(function() {
24012
24022
  var i = {};
24013
24023
  return _I[sn].call(i) !== i;
24014
24024
  });
24015
- oS ? _I = {} : _I = eS(_I);
24016
- gS(_I[sn]) || iS(_I, sn, function() {
24025
+ nS ? _I = {} : _I = tS(_I);
24026
+ eS(_I[sn]) || oS(_I, sn, function() {
24017
24027
  return this;
24018
24028
  });
24019
24029
  var Od = {
24020
24030
  IteratorPrototype: _I,
24021
24031
  BUGGY_SAFARI_ITERATORS: jd
24022
- }, CS = ws, nS = Vo, sS = CS ? {}.toString : function() {
24023
- return "[object " + nS(this) + "]";
24024
- }, aS = ws, lS = Re.f, cS = Ke, rS = fI, dS = sS, AS = lI, Al = AS("toStringTag"), Xo = function(i, g, I, e) {
24032
+ }, sS = ws, aS = Vo, lS = sS ? {}.toString : function() {
24033
+ return "[object " + aS(this) + "]";
24034
+ }, cS = ws, rS = Re.f, dS = Ke, AS = fI, hS = lS, GS = lI, Al = GS("toStringTag"), Xo = function(i, g, I, e) {
24025
24035
  var t = I ? i : i && i.prototype;
24026
- t && (rS(t, Al) || lS(t, Al, { configurable: !0, value: g }), e && !aS && cS(t, "toString", dS));
24027
- }, hS = Od.IteratorPrototype, GS = Ys, BS = ot, mS = Xo, uS = ii, bS = function() {
24036
+ t && (AS(t, Al) || rS(t, Al, { configurable: !0, value: g }), e && !cS && dS(t, "toString", hS));
24037
+ }, BS = Od.IteratorPrototype, mS = Ys, uS = ot, bS = Xo, pS = ii, ZS = function() {
24028
24038
  return this;
24029
- }, pS = function(i, g, I, e) {
24039
+ }, yS = function(i, g, I, e) {
24030
24040
  var t = g + " Iterator";
24031
- return i.prototype = GS(hS, { next: BS(+!e, I) }), mS(i, t, !1, !0), uS[t] = bS, i;
24032
- }, ZS = cI, yS = GI, qd = qy, SS = pS, WS = Vs, vS = Xo, hl = Fs, HS = lI, Gl = ii, _d = Od, VS = qd.PROPER;
24041
+ return i.prototype = mS(BS, { next: uS(+!e, I) }), bS(i, t, !1, !0), pS[t] = ZS, i;
24042
+ }, SS = cI, WS = GI, qd = $y, vS = yS, HS = Vs, VS = Xo, hl = Fs, XS = lI, Gl = ii, _d = Od, RS = qd.PROPER;
24033
24043
  qd.CONFIGURABLE;
24034
24044
  _d.IteratorPrototype;
24035
- var Zt = _d.BUGGY_SAFARI_ITERATORS, hC = HS("iterator"), Bl = "keys", yt = "values", ml = "entries", XS = function() {
24045
+ var Zt = _d.BUGGY_SAFARI_ITERATORS, hC = XS("iterator"), Bl = "keys", yt = "values", ml = "entries", KS = function() {
24036
24046
  return this;
24037
24047
  }, $d = function(i, g, I, e, t, o, C) {
24038
- SS(I, g, e);
24048
+ vS(I, g, e);
24039
24049
  var n = function(b) {
24040
24050
  if (b === t && G) return G;
24041
24051
  if (!Zt && b && b in a) return a[b];
@@ -24057,8 +24067,8 @@ var Zt = _d.BUGGY_SAFARI_ITERATORS, hC = HS("iterator"), Bl = "keys", yt = "valu
24057
24067
  return new I(this);
24058
24068
  };
24059
24069
  }, s = g + " Iterator", l = !1, a = i.prototype, c = a[hC] || a["@@iterator"] || t && a[t], G = !Zt && c || n(t), u = g === "Array" && a.entries || c, m, B, p;
24060
- if (u && (m = WS(u.call(new i())), m !== Object.prototype && m.next && (vS(m, s, !0, !0), Gl[s] = XS)), VS && t === yt && c && c.name !== yt && (l = !0, G = function() {
24061
- return yS(c, this);
24070
+ if (u && (m = HS(u.call(new i())), m !== Object.prototype && m.next && (VS(m, s, !0, !0), Gl[s] = KS)), RS && t === yt && c && c.name !== yt && (l = !0, G = function() {
24071
+ return WS(c, this);
24062
24072
  }), t)
24063
24073
  if (B = {
24064
24074
  values: n(yt),
@@ -24066,17 +24076,17 @@ var Zt = _d.BUGGY_SAFARI_ITERATORS, hC = HS("iterator"), Bl = "keys", yt = "valu
24066
24076
  entries: n(ml)
24067
24077
  }, C) for (p in B)
24068
24078
  (Zt || l || !(p in a)) && hl(a, p, B[p]);
24069
- else ZS({ target: g, proto: !0, forced: Zt || l }, B);
24079
+ else SS({ target: g, proto: !0, forced: Zt || l }, B);
24070
24080
  return C && a[hC] !== G && hl(a, hC, G, {}), Gl[g] = G, B;
24071
24081
  }, gA = function(i, g) {
24072
24082
  return { value: i, done: g };
24073
- }, RS = Ct, ul = ii, IA = Ns;
24083
+ }, YS = Ct, ul = ii, IA = Ns;
24074
24084
  Re.f;
24075
- var KS = $d, St = gA, eA = "Array Iterator", YS = IA.set, wS = IA.getterFor(eA);
24076
- KS(Array, "Array", function(i, g) {
24077
- YS(this, {
24085
+ var wS = $d, St = gA, eA = "Array Iterator", LS = IA.set, NS = IA.getterFor(eA);
24086
+ wS(Array, "Array", function(i, g) {
24087
+ LS(this, {
24078
24088
  type: eA,
24079
- target: RS(i),
24089
+ target: YS(i),
24080
24090
  // target
24081
24091
  index: 0,
24082
24092
  // next index
@@ -24084,7 +24094,7 @@ KS(Array, "Array", function(i, g) {
24084
24094
  // kind
24085
24095
  });
24086
24096
  }, function() {
24087
- var i = wS(this), g = i.target, I = i.index++;
24097
+ var i = NS(this), g = i.target, I = i.index++;
24088
24098
  if (!g || I >= g.length)
24089
24099
  return i.target = null, St(void 0, !0);
24090
24100
  switch (i.kind) {
@@ -24096,29 +24106,29 @@ KS(Array, "Array", function(i, g) {
24096
24106
  return St([I, g[I]], !1);
24097
24107
  }, "values");
24098
24108
  ul.Arguments = ul.Array;
24099
- var Bi = Hg, LS = nt, NS = po, Wt = function(i) {
24100
- return LS.slice(0, i.length) === i;
24109
+ var Bi = Hg, FS = nt, JS = po, Wt = function(i) {
24110
+ return FS.slice(0, i.length) === i;
24101
24111
  }, iA = function() {
24102
- return Wt("Bun/") ? "BUN" : Wt("Cloudflare-Workers") ? "CLOUDFLARE" : Wt("Deno/") ? "DENO" : Wt("Node.js/") ? "NODE" : Bi.Bun && typeof Bun.version == "string" ? "BUN" : Bi.Deno && typeof Deno.version == "object" ? "DENO" : NS(Bi.process) === "process" ? "NODE" : Bi.window && Bi.document ? "BROWSER" : "REST";
24103
- }(), FS = iA, Js = FS === "NODE", JS = Re, kS = function(i, g, I) {
24104
- return JS.f(i, g, I);
24105
- }, zS = he, fS = kS, MS = lI, US = te, bl = MS("species"), QS = function(i) {
24106
- var g = zS(i);
24107
- US && g && !g[bl] && fS(g, bl, {
24112
+ return Wt("Bun/") ? "BUN" : Wt("Cloudflare-Workers") ? "CLOUDFLARE" : Wt("Deno/") ? "DENO" : Wt("Node.js/") ? "NODE" : Bi.Bun && typeof Bun.version == "string" ? "BUN" : Bi.Deno && typeof Deno.version == "object" ? "DENO" : JS(Bi.process) === "process" ? "NODE" : Bi.window && Bi.document ? "BROWSER" : "REST";
24113
+ }(), kS = iA, Js = kS === "NODE", zS = Re, fS = function(i, g, I) {
24114
+ return zS.f(i, g, I);
24115
+ }, MS = he, US = fS, QS = lI, TS = te, bl = QS("species"), DS = function(i) {
24116
+ var g = MS(i);
24117
+ TS && g && !g[bl] && US(g, bl, {
24108
24118
  configurable: !0,
24109
24119
  get: function() {
24110
24120
  return this;
24111
24121
  }
24112
24122
  });
24113
- }, TS = Wo, DS = TypeError, ES = function(i, g) {
24114
- if (TS(g, i)) return i;
24115
- throw new DS("Incorrect invocation");
24116
- }, xS = II, PS = Qg, an = Ws, jS = xS(Function.toString);
24117
- PS(an.inspectSource) || (an.inspectSource = function(i) {
24118
- return jS(i);
24123
+ }, ES = Wo, xS = TypeError, PS = function(i, g) {
24124
+ if (ES(g, i)) return i;
24125
+ throw new xS("Incorrect invocation");
24126
+ }, jS = II, OS = Dg, an = Ws, qS = jS(Function.toString);
24127
+ OS(an.inspectSource) || (an.inspectSource = function(i) {
24128
+ return qS(i);
24119
24129
  });
24120
- var tA = an.inspectSource, OS = II, qS = aI, oA = Qg, _S = Vo, $S = he, gW = tA, CA = function() {
24121
- }, nA = $S("Reflect", "construct"), ks = /^\s*(?:class|function)\b/, IW = OS(ks.exec), eW = !ks.test(CA), mi = function(g) {
24130
+ var tA = an.inspectSource, _S = II, $S = aI, oA = Dg, gW = Vo, IW = he, eW = tA, CA = function() {
24131
+ }, nA = IW("Reflect", "construct"), ks = /^\s*(?:class|function)\b/, iW = _S(ks.exec), tW = !ks.test(CA), mi = function(g) {
24122
24132
  if (!oA(g)) return !1;
24123
24133
  try {
24124
24134
  return nA(CA, [], g), !0;
@@ -24127,39 +24137,39 @@ var tA = an.inspectSource, OS = II, qS = aI, oA = Qg, _S = Vo, $S = he, gW = tA,
24127
24137
  }
24128
24138
  }, sA = function(g) {
24129
24139
  if (!oA(g)) return !1;
24130
- switch (_S(g)) {
24140
+ switch (gW(g)) {
24131
24141
  case "AsyncFunction":
24132
24142
  case "GeneratorFunction":
24133
24143
  case "AsyncGeneratorFunction":
24134
24144
  return !1;
24135
24145
  }
24136
24146
  try {
24137
- return eW || !!IW(ks, gW(g));
24147
+ return tW || !!iW(ks, eW(g));
24138
24148
  } catch {
24139
24149
  return !0;
24140
24150
  }
24141
24151
  };
24142
24152
  sA.sham = !0;
24143
- var iW = !nA || qS(function() {
24153
+ var oW = !nA || $S(function() {
24144
24154
  var i;
24145
24155
  return mi(mi.call) || !mi(Object) || !mi(function() {
24146
24156
  i = !0;
24147
24157
  }) || i;
24148
- }) ? sA : mi, tW = iW, oW = vo, CW = TypeError, nW = function(i) {
24149
- if (tW(i)) return i;
24150
- throw new CW(oW(i) + " is not a constructor");
24151
- }, pl = oe, sW = nW, aW = Zo, lW = lI, cW = lW("species"), aA = function(i, g) {
24158
+ }) ? sA : mi, CW = oW, nW = vo, sW = TypeError, aW = function(i) {
24159
+ if (CW(i)) return i;
24160
+ throw new sW(nW(i) + " is not a constructor");
24161
+ }, pl = oe, lW = aW, cW = Zo, rW = lI, dW = rW("species"), aA = function(i, g) {
24152
24162
  var I = pl(i).constructor, e;
24153
- return I === void 0 || aW(e = pl(I)[cW]) ? g : sW(e);
24154
- }, rW = II, lA = rW([].slice), dW = TypeError, AW = function(i, g) {
24155
- if (i < g) throw new dW("Not enough arguments");
24163
+ return I === void 0 || cW(e = pl(I)[dW]) ? g : lW(e);
24164
+ }, AW = II, lA = AW([].slice), hW = TypeError, GW = function(i, g) {
24165
+ if (i < g) throw new hW("Not enough arguments");
24156
24166
  return i;
24157
- }, hW = nt, cA = /(?:ipad|iphone|ipod).*applewebkit/i.test(hW), nI = Hg, GW = Zs, BW = Ho, Zl = Qg, mW = fI, rA = aI, yl = kd, uW = lA, Sl = vs, bW = AW, pW = cA, ZW = Js, ln = nI.setImmediate, Wl = nI.clearImmediate, yW = nI.process, GC = nI.Dispatch, SW = nI.Function, vl = nI.MessageChannel, WW = nI.String, BC = 0, Yi = {}, Hl = "onreadystatechange", ji, be, mC, uC;
24167
+ }, BW = nt, cA = /(?:ipad|iphone|ipod).*applewebkit/i.test(BW), nI = Hg, mW = Zs, uW = Ho, Zl = Dg, bW = fI, rA = aI, yl = kd, pW = lA, Sl = vs, ZW = GW, yW = cA, SW = Js, ln = nI.setImmediate, Wl = nI.clearImmediate, WW = nI.process, GC = nI.Dispatch, vW = nI.Function, vl = nI.MessageChannel, HW = nI.String, BC = 0, Yi = {}, Hl = "onreadystatechange", ji, be, mC, uC;
24158
24168
  rA(function() {
24159
24169
  ji = nI.location;
24160
24170
  });
24161
24171
  var zs = function(i) {
24162
- if (mW(Yi, i)) {
24172
+ if (bW(Yi, i)) {
24163
24173
  var g = Yi[i];
24164
24174
  delete Yi[i], g();
24165
24175
  }
@@ -24170,21 +24180,21 @@ var zs = function(i) {
24170
24180
  }, Vl = function(i) {
24171
24181
  zs(i.data);
24172
24182
  }, Xl = function(i) {
24173
- nI.postMessage(WW(i), ji.protocol + "//" + ji.host);
24183
+ nI.postMessage(HW(i), ji.protocol + "//" + ji.host);
24174
24184
  };
24175
24185
  (!ln || !Wl) && (ln = function(g) {
24176
- bW(arguments.length, 1);
24177
- var I = Zl(g) ? g : SW(g), e = uW(arguments, 1);
24186
+ ZW(arguments.length, 1);
24187
+ var I = Zl(g) ? g : vW(g), e = pW(arguments, 1);
24178
24188
  return Yi[++BC] = function() {
24179
- GW(I, void 0, e);
24189
+ mW(I, void 0, e);
24180
24190
  }, be(BC), BC;
24181
24191
  }, Wl = function(g) {
24182
24192
  delete Yi[g];
24183
- }, ZW ? be = function(i) {
24184
- yW.nextTick(bC(i));
24193
+ }, SW ? be = function(i) {
24194
+ WW.nextTick(bC(i));
24185
24195
  } : GC && GC.now ? be = function(i) {
24186
24196
  GC.now(bC(i));
24187
- } : vl && !pW ? (mC = new vl(), uC = mC.port2, mC.port1.onmessage = Vl, be = BW(uC.postMessage, uC)) : nI.addEventListener && Zl(nI.postMessage) && !nI.importScripts && ji && ji.protocol !== "file:" && !rA(Xl) ? (be = Xl, nI.addEventListener("message", Vl, !1)) : Hl in Sl("script") ? be = function(i) {
24197
+ } : vl && !yW ? (mC = new vl(), uC = mC.port2, mC.port1.onmessage = Vl, be = uW(uC.postMessage, uC)) : nI.addEventListener && Zl(nI.postMessage) && !nI.importScripts && ji && ji.protocol !== "file:" && !rA(Xl) ? (be = Xl, nI.addEventListener("message", Vl, !1)) : Hl in Sl("script") ? be = function(i) {
24188
24198
  yl.appendChild(Sl("script"))[Hl] = function() {
24189
24199
  yl.removeChild(this), zs(i);
24190
24200
  };
@@ -24193,9 +24203,9 @@ var zs = function(i) {
24193
24203
  });
24194
24204
  var dA = {
24195
24205
  set: ln
24196
- }, Rl = Hg, vW = te, HW = Object.getOwnPropertyDescriptor, VW = function(i) {
24197
- if (!vW) return Rl[i];
24198
- var g = HW(Rl, i);
24206
+ }, Rl = Hg, VW = te, XW = Object.getOwnPropertyDescriptor, RW = function(i) {
24207
+ if (!VW) return Rl[i];
24208
+ var g = XW(Rl, i);
24199
24209
  return g && g.value;
24200
24210
  }, AA = function() {
24201
24211
  this.head = null, this.tail = null;
@@ -24213,9 +24223,9 @@ AA.prototype = {
24213
24223
  }
24214
24224
  }
24215
24225
  };
24216
- var hA = AA, XW = nt, RW = /ipad|iphone|ipod/i.test(XW) && typeof Pebble < "u", KW = nt, YW = /web0s(?!.*chrome)/i.test(KW), gi = Hg, wW = VW, Kl = Ho, pC = dA.set, LW = hA, NW = cA, FW = RW, JW = YW, ZC = Js, Yl = gi.MutationObserver || gi.WebKitMutationObserver, wl = gi.document, Ll = gi.process, vt = gi.Promise, cn = wW("queueMicrotask"), ke, yC, SC, Ht, Nl;
24226
+ var hA = AA, KW = nt, YW = /ipad|iphone|ipod/i.test(KW) && typeof Pebble < "u", wW = nt, LW = /web0s(?!.*chrome)/i.test(wW), gi = Hg, NW = RW, Kl = Ho, pC = dA.set, FW = hA, JW = cA, kW = YW, zW = LW, ZC = Js, Yl = gi.MutationObserver || gi.WebKitMutationObserver, wl = gi.document, Ll = gi.process, vt = gi.Promise, cn = NW("queueMicrotask"), ke, yC, SC, Ht, Nl;
24217
24227
  if (!cn) {
24218
- var Vt = new LW(), Xt = function() {
24228
+ var Vt = new FW(), Xt = function() {
24219
24229
  var i, g;
24220
24230
  for (ZC && (i = Ll.domain) && i.exit(); g = Vt.get(); ) try {
24221
24231
  g();
@@ -24224,9 +24234,9 @@ if (!cn) {
24224
24234
  }
24225
24235
  i && i.enter();
24226
24236
  };
24227
- !NW && !ZC && !JW && Yl && wl ? (yC = !0, SC = wl.createTextNode(""), new Yl(Xt).observe(SC, { characterData: !0 }), ke = function() {
24237
+ !JW && !ZC && !zW && Yl && wl ? (yC = !0, SC = wl.createTextNode(""), new Yl(Xt).observe(SC, { characterData: !0 }), ke = function() {
24228
24238
  SC.data = yC = !yC;
24229
- }) : !FW && vt && vt.resolve ? (Ht = vt.resolve(void 0), Ht.constructor = vt, Nl = Kl(Ht.then, Ht), ke = function() {
24239
+ }) : !kW && vt && vt.resolve ? (Ht = vt.resolve(void 0), Ht.constructor = vt, Nl = Kl(Ht.then, Ht), ke = function() {
24230
24240
  Nl(Xt);
24231
24241
  }) : ZC ? ke = function() {
24232
24242
  Ll.nextTick(Xt);
@@ -24236,7 +24246,7 @@ if (!cn) {
24236
24246
  Vt.head || ke(), Vt.add(i);
24237
24247
  };
24238
24248
  }
24239
- var kW = cn, zW = function(i, g) {
24249
+ var fW = cn, MW = function(i, g) {
24240
24250
  try {
24241
24251
  arguments.length === 1 ? console.error(i) : console.error(i, g);
24242
24252
  } catch {
@@ -24247,8 +24257,8 @@ var kW = cn, zW = function(i, g) {
24247
24257
  } catch (g) {
24248
24258
  return { error: !0, value: g };
24249
24259
  }
24250
- }, fW = Hg, oi = fW.Promise, MW = Hg, wi = oi, UW = Qg, QW = Kd, TW = tA, DW = lI, Fl = iA, WC = pd, Jl = wi && wi.prototype, EW = DW("species"), rn = !1, GA = UW(MW.PromiseRejectionEvent), xW = QW("Promise", function() {
24251
- var i = TW(wi), g = i !== String(wi);
24260
+ }, UW = Hg, oi = UW.Promise, QW = Hg, wi = oi, TW = Dg, DW = Kd, EW = tA, xW = lI, Fl = iA, WC = pd, Jl = wi && wi.prototype, PW = xW("species"), rn = !1, GA = TW(QW.PromiseRejectionEvent), jW = DW("Promise", function() {
24261
+ var i = EW(wi), g = i !== String(wi);
24252
24262
  if (!g && WC === 66 || !(Jl.catch && Jl.finally)) return !0;
24253
24263
  if (!WC || WC < 51 || !/native code/.test(i)) {
24254
24264
  var I = new wi(function(o) {
@@ -24258,33 +24268,33 @@ var kW = cn, zW = function(i, g) {
24258
24268
  }, function() {
24259
24269
  });
24260
24270
  }, t = I.constructor = {};
24261
- if (t[EW] = e, rn = I.then(function() {
24271
+ if (t[PW] = e, rn = I.then(function() {
24262
24272
  }) instanceof e, !rn) return !0;
24263
24273
  }
24264
24274
  return !g && (Fl === "BROWSER" || Fl === "DENO") && !GA;
24265
24275
  }), lt = {
24266
- CONSTRUCTOR: xW,
24276
+ CONSTRUCTOR: jW,
24267
24277
  REJECTION_EVENT: GA,
24268
24278
  SUBCLASSING: rn
24269
- }, MI = {}, kl = vI, PW = TypeError, jW = function(i) {
24279
+ }, MI = {}, kl = vI, OW = TypeError, qW = function(i) {
24270
24280
  var g, I;
24271
24281
  this.promise = new i(function(e, t) {
24272
- if (g !== void 0 || I !== void 0) throw new PW("Bad Promise constructor");
24282
+ if (g !== void 0 || I !== void 0) throw new OW("Bad Promise constructor");
24273
24283
  g = e, I = t;
24274
24284
  }), this.resolve = kl(g), this.reject = kl(I);
24275
24285
  };
24276
24286
  MI.f = function(i) {
24277
- return new jW(i);
24287
+ return new qW(i);
24278
24288
  };
24279
- var OW = cI, eo = Js, Ae = Hg, qW = So, ct = GI, _W = Fs, $W = Xo, gv = QS, Iv = vI, dn = Qg, ev = WI, iv = ES, tv = aA, BA = dA.set, fs = kW, ov = zW, Cv = ti, nv = hA, mA = Ns, An = oi, Ms = lt, uA = MI, Ro = "Promise", bA = Ms.CONSTRUCTOR, sv = Ms.REJECTION_EVENT;
24289
+ var _W = cI, eo = Js, Ae = Hg, $W = So, ct = GI, gv = Fs, Iv = Xo, ev = DS, iv = vI, dn = Dg, tv = WI, ov = PS, Cv = aA, BA = dA.set, fs = fW, nv = MW, sv = ti, av = hA, mA = Ns, An = oi, Ms = lt, uA = MI, Ro = "Promise", bA = Ms.CONSTRUCTOR, lv = Ms.REJECTION_EVENT;
24280
24290
  Ms.SUBCLASSING;
24281
- var vC = mA.getterFor(Ro), av = mA.set, lv = An && An.prototype, Qe = An, HC = lv, pA = Ae.TypeError, hn = Ae.document, Us = Ae.process, Gn = uA.f, cv = Gn, rv = !!(hn && hn.createEvent && Ae.dispatchEvent), ZA = "unhandledrejection", dv = "rejectionhandled", zl = 0, yA = 1, Av = 2, Qs = 1, SA = 2, Rt, fl, WA, vA = function(i) {
24291
+ var vC = mA.getterFor(Ro), cv = mA.set, rv = An && An.prototype, Qe = An, HC = rv, pA = Ae.TypeError, hn = Ae.document, Us = Ae.process, Gn = uA.f, dv = Gn, Av = !!(hn && hn.createEvent && Ae.dispatchEvent), ZA = "unhandledrejection", hv = "rejectionhandled", zl = 0, yA = 1, Gv = 2, Qs = 1, SA = 2, Rt, fl, WA, vA = function(i) {
24282
24292
  var g;
24283
- return ev(i) && dn(g = i.then) ? g : !1;
24293
+ return tv(i) && dn(g = i.then) ? g : !1;
24284
24294
  }, HA = function(i, g) {
24285
24295
  var I = g.value, e = g.state === yA, t = e ? i.ok : i.fail, o = i.resolve, C = i.reject, n = i.domain, s, l, a;
24286
24296
  try {
24287
- t ? (e || (g.rejection === SA && Gv(g), g.rejection = Qs), t === !0 ? s = I : (n && n.enter(), s = t(I), n && (n.exit(), a = !0)), s === i.promise ? C(new pA("Promise-chain cycle")) : (l = vA(s)) ? ct(l, s, o, C) : o(s)) : C(I);
24297
+ t ? (e || (g.rejection === SA && mv(g), g.rejection = Qs), t === !0 ? s = I : (n && n.enter(), s = t(I), n && (n.exit(), a = !0)), s === i.promise ? C(new pA("Promise-chain cycle")) : (l = vA(s)) ? ct(l, s, o, C) : o(s)) : C(I);
24288
24298
  } catch (c) {
24289
24299
  n && !a && n.exit(), C(c);
24290
24300
  }
@@ -24292,32 +24302,32 @@ var vC = mA.getterFor(Ro), av = mA.set, lv = An && An.prototype, Qe = An, HC = l
24292
24302
  i.notified || (i.notified = !0, fs(function() {
24293
24303
  for (var I = i.reactions, e; e = I.get(); )
24294
24304
  HA(e, i);
24295
- i.notified = !1, g && !i.rejection && hv(i);
24305
+ i.notified = !1, g && !i.rejection && Bv(i);
24296
24306
  }));
24297
24307
  }, XA = function(i, g, I) {
24298
24308
  var e, t;
24299
- rv ? (e = hn.createEvent("Event"), e.promise = g, e.reason = I, e.initEvent(i, !1, !0), Ae.dispatchEvent(e)) : e = { promise: g, reason: I }, !sv && (t = Ae["on" + i]) ? t(e) : i === ZA && ov("Unhandled promise rejection", I);
24300
- }, hv = function(i) {
24309
+ Av ? (e = hn.createEvent("Event"), e.promise = g, e.reason = I, e.initEvent(i, !1, !0), Ae.dispatchEvent(e)) : e = { promise: g, reason: I }, !lv && (t = Ae["on" + i]) ? t(e) : i === ZA && nv("Unhandled promise rejection", I);
24310
+ }, Bv = function(i) {
24301
24311
  ct(BA, Ae, function() {
24302
24312
  var g = i.facade, I = i.value, e = Ml(i), t;
24303
- if (e && (t = Cv(function() {
24313
+ if (e && (t = sv(function() {
24304
24314
  eo ? Us.emit("unhandledRejection", I, g) : XA(ZA, g, I);
24305
24315
  }), i.rejection = eo || Ml(i) ? SA : Qs, t.error))
24306
24316
  throw t.value;
24307
24317
  });
24308
24318
  }, Ml = function(i) {
24309
24319
  return i.rejection !== Qs && !i.parent;
24310
- }, Gv = function(i) {
24320
+ }, mv = function(i) {
24311
24321
  ct(BA, Ae, function() {
24312
24322
  var g = i.facade;
24313
- eo ? Us.emit("rejectionHandled", g) : XA(dv, g, i.value);
24323
+ eo ? Us.emit("rejectionHandled", g) : XA(hv, g, i.value);
24314
24324
  });
24315
24325
  }, Te = function(i, g, I) {
24316
24326
  return function(e) {
24317
24327
  i(g, e, I);
24318
24328
  };
24319
24329
  }, xe = function(i, g, I) {
24320
- i.done || (i.done = !0, I && (i = I), i.value = g, i.state = Av, VA(i, !0));
24330
+ i.done || (i.done = !0, I && (i = I), i.value = g, i.state = Gv, VA(i, !0));
24321
24331
  }, Bn = function(i, g, I) {
24322
24332
  if (!i.done) {
24323
24333
  i.done = !0, I && (i = I);
@@ -24343,7 +24353,7 @@ var vC = mA.getterFor(Ro), av = mA.set, lv = An && An.prototype, Qe = An, HC = l
24343
24353
  }
24344
24354
  };
24345
24355
  bA && (Qe = function(g) {
24346
- iv(this, HC), Iv(g), ct(Rt, this);
24356
+ ov(this, HC), iv(g), ct(Rt, this);
24347
24357
  var I = vC(this);
24348
24358
  try {
24349
24359
  g(Te(Bn, I), Te(xe, I));
@@ -24351,18 +24361,18 @@ bA && (Qe = function(g) {
24351
24361
  xe(I, e);
24352
24362
  }
24353
24363
  }, HC = Qe.prototype, Rt = function(g) {
24354
- av(this, {
24364
+ cv(this, {
24355
24365
  type: Ro,
24356
24366
  done: !1,
24357
24367
  notified: !1,
24358
24368
  parent: !1,
24359
- reactions: new nv(),
24369
+ reactions: new av(),
24360
24370
  rejection: !1,
24361
24371
  state: zl,
24362
24372
  value: null
24363
24373
  });
24364
- }, Rt.prototype = _W(HC, "then", function(g, I) {
24365
- var e = vC(this), t = Gn(tv(this, Qe));
24374
+ }, Rt.prototype = gv(HC, "then", function(g, I) {
24375
+ var e = vC(this), t = Gn(Cv(this, Qe));
24366
24376
  return e.parent = !0, t.ok = dn(g) ? g : !0, t.fail = dn(I) && I, t.domain = eo ? Us.domain : void 0, e.state === zl ? e.reactions.add(t) : fs(function() {
24367
24377
  HA(t, e);
24368
24378
  }), t.promise;
@@ -24370,19 +24380,19 @@ bA && (Qe = function(g) {
24370
24380
  var i = new Rt(), g = vC(i);
24371
24381
  this.promise = i, this.resolve = Te(Bn, g), this.reject = Te(xe, g);
24372
24382
  }, uA.f = Gn = function(i) {
24373
- return i === Qe || i === WA ? new fl(i) : cv(i);
24383
+ return i === Qe || i === WA ? new fl(i) : dv(i);
24374
24384
  });
24375
- OW({ global: !0, wrap: !0, forced: bA }, {
24385
+ _W({ global: !0, wrap: !0, forced: bA }, {
24376
24386
  Promise: Qe
24377
24387
  });
24378
- WA = qW.Promise;
24379
- $W(Qe, Ro, !1, !0);
24380
- gv(Ro);
24381
- var Bv = lI, RA = Bv("iterator"), KA = !1;
24388
+ WA = $W.Promise;
24389
+ Iv(Qe, Ro, !1, !0);
24390
+ ev(Ro);
24391
+ var uv = lI, RA = uv("iterator"), KA = !1;
24382
24392
  try {
24383
- var mv = 0, Ul = {
24393
+ var bv = 0, Ul = {
24384
24394
  next: function() {
24385
- return { done: !!mv++ };
24395
+ return { done: !!bv++ };
24386
24396
  },
24387
24397
  return: function() {
24388
24398
  KA = !0;
@@ -24395,7 +24405,7 @@ try {
24395
24405
  });
24396
24406
  } catch {
24397
24407
  }
24398
- var uv = function(i, g) {
24408
+ var pv = function(i, g) {
24399
24409
  try {
24400
24410
  if (!g && !KA) return !1;
24401
24411
  } catch {
@@ -24414,17 +24424,17 @@ var uv = function(i, g) {
24414
24424
  } catch {
24415
24425
  }
24416
24426
  return I;
24417
- }, bv = oi, pv = uv, Zv = lt.CONSTRUCTOR, Ko = Zv || !pv(function(i) {
24418
- bv.all(i).then(void 0, function() {
24427
+ }, Zv = oi, yv = pv, Sv = lt.CONSTRUCTOR, Ko = Sv || !yv(function(i) {
24428
+ Zv.all(i).then(void 0, function() {
24419
24429
  });
24420
- }), yv = cI, Sv = GI, Wv = vI, vv = MI, Hv = ti, Vv = at, Xv = Ko;
24421
- yv({ target: "Promise", stat: !0, forced: Xv }, {
24430
+ }), Wv = cI, vv = GI, Hv = vI, Vv = MI, Xv = ti, Rv = at, Kv = Ko;
24431
+ Wv({ target: "Promise", stat: !0, forced: Kv }, {
24422
24432
  all: function(g) {
24423
- var I = this, e = vv.f(I), t = e.resolve, o = e.reject, C = Hv(function() {
24424
- var n = Wv(I.resolve), s = [], l = 0, a = 1;
24425
- Vv(g, function(c) {
24433
+ var I = this, e = Vv.f(I), t = e.resolve, o = e.reject, C = Xv(function() {
24434
+ var n = Hv(I.resolve), s = [], l = 0, a = 1;
24435
+ Rv(g, function(c) {
24426
24436
  var G = l++, u = !1;
24427
- a++, Sv(n, I, c).then(function(m) {
24437
+ a++, vv(n, I, c).then(function(m) {
24428
24438
  u || (u = !0, s[G] = m, --a || t(s));
24429
24439
  }, o);
24430
24440
  }), --a || t(s);
@@ -24432,50 +24442,50 @@ yv({ target: "Promise", stat: !0, forced: Xv }, {
24432
24442
  return C.error && o(C.value), e.promise;
24433
24443
  }
24434
24444
  });
24435
- var Rv = cI, Kv = lt.CONSTRUCTOR, Ql = oi;
24445
+ var Yv = cI, wv = lt.CONSTRUCTOR, Ql = oi;
24436
24446
  Ql && Ql.prototype;
24437
- Rv({ target: "Promise", proto: !0, forced: Kv, real: !0 }, {
24447
+ Yv({ target: "Promise", proto: !0, forced: wv, real: !0 }, {
24438
24448
  catch: function(i) {
24439
24449
  return this.then(void 0, i);
24440
24450
  }
24441
24451
  });
24442
- var Yv = cI, wv = GI, Lv = vI, Nv = MI, Fv = ti, Jv = at, kv = Ko;
24443
- Yv({ target: "Promise", stat: !0, forced: kv }, {
24452
+ var Lv = cI, Nv = GI, Fv = vI, Jv = MI, kv = ti, zv = at, fv = Ko;
24453
+ Lv({ target: "Promise", stat: !0, forced: fv }, {
24444
24454
  race: function(g) {
24445
- var I = this, e = Nv.f(I), t = e.reject, o = Fv(function() {
24446
- var C = Lv(I.resolve);
24447
- Jv(g, function(n) {
24448
- wv(C, I, n).then(e.resolve, t);
24455
+ var I = this, e = Jv.f(I), t = e.reject, o = kv(function() {
24456
+ var C = Fv(I.resolve);
24457
+ zv(g, function(n) {
24458
+ Nv(C, I, n).then(e.resolve, t);
24449
24459
  });
24450
24460
  });
24451
24461
  return o.error && t(o.value), e.promise;
24452
24462
  }
24453
24463
  });
24454
- var zv = cI, fv = MI, Mv = lt.CONSTRUCTOR;
24455
- zv({ target: "Promise", stat: !0, forced: Mv }, {
24464
+ var Mv = cI, Uv = MI, Qv = lt.CONSTRUCTOR;
24465
+ Mv({ target: "Promise", stat: !0, forced: Qv }, {
24456
24466
  reject: function(g) {
24457
- var I = fv.f(this), e = I.reject;
24467
+ var I = Uv.f(this), e = I.reject;
24458
24468
  return e(g), I.promise;
24459
24469
  }
24460
24470
  });
24461
- var Uv = oe, Qv = WI, Tv = MI, YA = function(i, g) {
24462
- if (Uv(i), Qv(g) && g.constructor === i) return g;
24463
- var I = Tv.f(i), e = I.resolve;
24471
+ var Tv = oe, Dv = WI, Ev = MI, YA = function(i, g) {
24472
+ if (Tv(i), Dv(g) && g.constructor === i) return g;
24473
+ var I = Ev.f(i), e = I.resolve;
24464
24474
  return e(g), I.promise;
24465
- }, Dv = cI, Ev = he, xv = Fb, Pv = oi, jv = lt.CONSTRUCTOR, Ov = YA, qv = Ev("Promise"), _v = !jv;
24466
- Dv({ target: "Promise", stat: !0, forced: xv }, {
24475
+ }, xv = cI, Pv = he, jv = kb, Ov = oi, qv = lt.CONSTRUCTOR, _v = YA, $v = Pv("Promise"), gH = !qv;
24476
+ xv({ target: "Promise", stat: !0, forced: jv }, {
24467
24477
  resolve: function(g) {
24468
- return Ov(_v && this === qv ? Pv : this, g);
24478
+ return _v(gH && this === $v ? Ov : this, g);
24469
24479
  }
24470
24480
  });
24471
- var $v = cI, gH = GI, IH = vI, eH = MI, iH = ti, tH = at, oH = Ko;
24472
- $v({ target: "Promise", stat: !0, forced: oH }, {
24481
+ var IH = cI, eH = GI, iH = vI, tH = MI, oH = ti, CH = at, nH = Ko;
24482
+ IH({ target: "Promise", stat: !0, forced: nH }, {
24473
24483
  allSettled: function(g) {
24474
- var I = this, e = eH.f(I), t = e.resolve, o = e.reject, C = iH(function() {
24475
- var n = IH(I.resolve), s = [], l = 0, a = 1;
24476
- tH(g, function(c) {
24484
+ var I = this, e = tH.f(I), t = e.resolve, o = e.reject, C = oH(function() {
24485
+ var n = iH(I.resolve), s = [], l = 0, a = 1;
24486
+ CH(g, function(c) {
24477
24487
  var G = l++, u = !1;
24478
- a++, gH(n, I, c).then(function(m) {
24488
+ a++, eH(n, I, c).then(function(m) {
24479
24489
  u || (u = !0, s[G] = { status: "fulfilled", value: m }, --a || t(s));
24480
24490
  }, function(m) {
24481
24491
  u || (u = !0, s[G] = { status: "rejected", reason: m }, --a || t(s));
@@ -24485,14 +24495,14 @@ $v({ target: "Promise", stat: !0, forced: oH }, {
24485
24495
  return C.error && o(C.value), e.promise;
24486
24496
  }
24487
24497
  });
24488
- var CH = cI, nH = GI, sH = vI, aH = he, lH = MI, cH = ti, rH = at, dH = Ko, Tl = "No one promise resolved";
24489
- CH({ target: "Promise", stat: !0, forced: dH }, {
24498
+ var sH = cI, aH = GI, lH = vI, cH = he, rH = MI, dH = ti, AH = at, hH = Ko, Tl = "No one promise resolved";
24499
+ sH({ target: "Promise", stat: !0, forced: hH }, {
24490
24500
  any: function(g) {
24491
- var I = this, e = aH("AggregateError"), t = lH.f(I), o = t.resolve, C = t.reject, n = cH(function() {
24492
- var s = sH(I.resolve), l = [], a = 0, c = 1, G = !1;
24493
- rH(g, function(u) {
24501
+ var I = this, e = cH("AggregateError"), t = rH.f(I), o = t.resolve, C = t.reject, n = dH(function() {
24502
+ var s = lH(I.resolve), l = [], a = 0, c = 1, G = !1;
24503
+ AH(g, function(u) {
24494
24504
  var m = a++, B = !1;
24495
- c++, nH(s, I, u).then(function(p) {
24505
+ c++, aH(s, I, u).then(function(p) {
24496
24506
  B || G || (G = !0, o(p));
24497
24507
  }, function(p) {
24498
24508
  B || G || (B = !0, l[m] = p, --c || C(new e(l, Tl)));
@@ -24502,23 +24512,23 @@ CH({ target: "Promise", stat: !0, forced: dH }, {
24502
24512
  return n.error && C(n.value), t.promise;
24503
24513
  }
24504
24514
  });
24505
- var AH = cI, hH = Hg, GH = Zs, BH = lA, mH = MI, uH = vI, wA = ti, VC = hH.Promise, Dl = !1, bH = !VC || !VC.try || wA(function() {
24515
+ var GH = cI, BH = Hg, mH = Zs, uH = lA, bH = MI, pH = vI, wA = ti, VC = BH.Promise, Dl = !1, ZH = !VC || !VC.try || wA(function() {
24506
24516
  VC.try(function(i) {
24507
24517
  Dl = i === 8;
24508
24518
  }, 8);
24509
24519
  }).error || !Dl;
24510
- AH({ target: "Promise", stat: !0, forced: bH }, {
24520
+ GH({ target: "Promise", stat: !0, forced: ZH }, {
24511
24521
  try: function(i) {
24512
- var g = arguments.length > 1 ? BH(arguments, 1) : [], I = mH.f(this), e = wA(function() {
24513
- return GH(uH(i), void 0, g);
24522
+ var g = arguments.length > 1 ? uH(arguments, 1) : [], I = bH.f(this), e = wA(function() {
24523
+ return mH(pH(i), void 0, g);
24514
24524
  });
24515
24525
  return (e.error ? I.reject : I.resolve)(e.value), I.promise;
24516
24526
  }
24517
24527
  });
24518
- var pH = cI, ZH = MI;
24519
- pH({ target: "Promise", stat: !0 }, {
24528
+ var yH = cI, SH = MI;
24529
+ yH({ target: "Promise", stat: !0 }, {
24520
24530
  withResolvers: function() {
24521
- var g = ZH.f(this);
24531
+ var g = SH.f(this);
24522
24532
  return {
24523
24533
  promise: g.promise,
24524
24534
  resolve: g.resolve,
@@ -24526,14 +24536,14 @@ pH({ target: "Promise", stat: !0 }, {
24526
24536
  };
24527
24537
  }
24528
24538
  });
24529
- var yH = cI, mn = oi, SH = aI, WH = he, vH = Qg, HH = aA, El = YA, VH = mn && mn.prototype, XH = !!mn && SH(function() {
24530
- VH.finally.call({ then: function() {
24539
+ var WH = cI, mn = oi, vH = aI, HH = he, VH = Dg, XH = aA, El = YA, RH = mn && mn.prototype, KH = !!mn && vH(function() {
24540
+ RH.finally.call({ then: function() {
24531
24541
  } }, function() {
24532
24542
  });
24533
24543
  });
24534
- yH({ target: "Promise", proto: !0, real: !0, forced: XH }, {
24544
+ WH({ target: "Promise", proto: !0, real: !0, forced: KH }, {
24535
24545
  finally: function(i) {
24536
- var g = HH(this, WH("Promise")), I = vH(i);
24546
+ var g = XH(this, HH("Promise")), I = VH(i);
24537
24547
  return this.then(
24538
24548
  I ? function(e) {
24539
24549
  return El(g, i()).then(function() {
@@ -24548,27 +24558,27 @@ yH({ target: "Promise", proto: !0, real: !0, forced: XH }, {
24548
24558
  );
24549
24559
  }
24550
24560
  });
24551
- var Ts = II, RH = Xs, KH = Ls, YH = yo, wH = Ts("".charAt), xl = Ts("".charCodeAt), LH = Ts("".slice), NH = function(i) {
24561
+ var Ts = II, YH = Xs, wH = Ls, LH = yo, NH = Ts("".charAt), xl = Ts("".charCodeAt), FH = Ts("".slice), JH = function(i) {
24552
24562
  return function(g, I) {
24553
- var e = KH(YH(g)), t = RH(I), o = e.length, C, n;
24554
- return t < 0 || t >= o ? i ? "" : void 0 : (C = xl(e, t), C < 55296 || C > 56319 || t + 1 === o || (n = xl(e, t + 1)) < 56320 || n > 57343 ? i ? wH(e, t) : C : i ? LH(e, t, t + 2) : (C - 55296 << 10) + (n - 56320) + 65536);
24563
+ var e = wH(LH(g)), t = YH(I), o = e.length, C, n;
24564
+ return t < 0 || t >= o ? i ? "" : void 0 : (C = xl(e, t), C < 55296 || C > 56319 || t + 1 === o || (n = xl(e, t + 1)) < 56320 || n > 57343 ? i ? NH(e, t) : C : i ? FH(e, t, t + 2) : (C - 55296 << 10) + (n - 56320) + 65536);
24555
24565
  };
24556
- }, FH = {
24566
+ }, kH = {
24557
24567
  // `String.prototype.at` method
24558
24568
  // https://github.com/mathiasbynens/String.prototype.at
24559
- charAt: NH(!0)
24560
- }, JH = FH.charAt, kH = Ls, LA = Ns, zH = $d, Pl = gA, NA = "String Iterator", fH = LA.set, MH = LA.getterFor(NA);
24561
- zH(String, "String", function(i) {
24562
- fH(this, {
24569
+ charAt: JH(!0)
24570
+ }, zH = kH.charAt, fH = Ls, LA = Ns, MH = $d, Pl = gA, NA = "String Iterator", UH = LA.set, QH = LA.getterFor(NA);
24571
+ MH(String, "String", function(i) {
24572
+ UH(this, {
24563
24573
  type: NA,
24564
- string: kH(i),
24574
+ string: fH(i),
24565
24575
  index: 0
24566
24576
  });
24567
24577
  }, function() {
24568
- var g = MH(this), I = g.string, e = g.index, t;
24569
- return e >= I.length ? Pl(void 0, !0) : (t = JH(I, e), g.index += t.length, Pl(t, !1));
24578
+ var g = QH(this), I = g.string, e = g.index, t;
24579
+ return e >= I.length ? Pl(void 0, !0) : (t = zH(I, e), g.index += t.length, Pl(t, !1));
24570
24580
  });
24571
- var UH = So, QH = UH.Promise, TH = {
24581
+ var TH = So, DH = TH.Promise, EH = {
24572
24582
  CSSRuleList: 0,
24573
24583
  CSSStyleDeclaration: 0,
24574
24584
  CSSValueList: 0,
@@ -24600,19 +24610,19 @@ var UH = So, QH = UH.Promise, TH = {
24600
24610
  TextTrackCueList: 0,
24601
24611
  TextTrackList: 0,
24602
24612
  TouchList: 0
24603
- }, DH = TH, EH = Hg, xH = Xo, jl = ii;
24604
- for (var XC in DH)
24605
- xH(EH[XC], XC), jl[XC] = jl.Array;
24606
- var PH = QH, jH = PH, OH = jH, qH = ju.default, _H = qH(OH);
24607
- function $H() {
24613
+ }, xH = EH, PH = Hg, jH = Xo, jl = ii;
24614
+ for (var XC in xH)
24615
+ jH(PH[XC], XC), jl[XC] = jl.Array;
24616
+ var OH = DH, qH = OH, _H = qH, $H = qu.default, gV = $H(_H);
24617
+ function IV() {
24608
24618
  var i = {};
24609
- return i.promise = new _H.default(function(g, I) {
24619
+ return i.promise = new gV.default(function(g, I) {
24610
24620
  i.resolve = g, i.reject = I;
24611
24621
  }), i;
24612
24622
  }
24613
- var gV = $H;
24623
+ var eV = IV;
24614
24624
  (function(i) {
24615
- var g = Pu, I = gV;
24625
+ var g = Ou, I = eV;
24616
24626
  function e(K) {
24617
24627
  Object.defineProperty(K, "__esModule", { value: !0, configurable: !0 });
24618
24628
  }
@@ -24622,7 +24632,7 @@ var gV = $H;
24622
24632
  function o(K) {
24623
24633
  return K && K.__esModule ? K.default : K;
24624
24634
  }
24625
- e(i.exports), t(i.exports, "default", () => Pg), t(i.exports, "createSpeechRecognitionPonyfill", () => gg), t(i.exports, "createSpeechSynthesisPonyfill", () => Ig), t(i.exports, "fetchAuthorizationToken", () => Ce), t(i.exports, "SpeechSynthesisUtterance", () => ig), t(i.exports, "SpeechSynthesis", () => eI), t(i.exports, "SpeechGrammarList", () => B);
24635
+ e(i.exports), t(i.exports, "default", () => jg), t(i.exports, "createSpeechRecognitionPonyfill", () => gg), t(i.exports, "createSpeechSynthesisPonyfill", () => Ig), t(i.exports, "fetchAuthorizationToken", () => Ce), t(i.exports, "SpeechSynthesisUtterance", () => ig), t(i.exports, "SpeechSynthesis", () => eI), t(i.exports, "SpeechGrammarList", () => B);
24626
24636
  function C(K, y) {
24627
24637
  const S = {
24628
24638
  // @ts-ignore
@@ -24794,11 +24804,11 @@ var gV = $H;
24794
24804
  callstack : ${L.stack}`);
24795
24805
  });
24796
24806
  }, this.abort = void 0, this.stop = void 0, this.initRecognizer = async (L, Bg, lg) => {
24797
- const { authorizationToken: cg, region: jg = "westus", speechRecognitionHostname: iI, subscriptionKey: ne } = await L();
24807
+ const { authorizationToken: cg, region: Og = "westus", speechRecognitionHostname: iI, subscriptionKey: ne } = await L();
24798
24808
  if (iI) {
24799
24809
  const Ci = iI.startsWith("ws://") || iI.startsWith("wss://") ? iI : `wss://${iI}`;
24800
24810
  cg ? (this.speechConfig = g.SpeechConfig.fromHost(new URL(Ci)), this.speechConfig.authorizationToken = cg) : this.speechConfig = g.SpeechConfig.fromHost(new URL(Ci), ne);
24801
- } else jg && (cg || ne) && (this.speechConfig = cg ? g.SpeechConfig.fromAuthorizationToken(cg, jg) : ne ? g.SpeechConfig.fromSubscription(ne, jg) : null);
24811
+ } else Og && (cg || ne) && (this.speechConfig = cg ? g.SpeechConfig.fromAuthorizationToken(cg, Og) : ne ? g.SpeechConfig.fromSubscription(ne, Og) : null);
24802
24812
  this.speechConfig && (Bg && this.speechConfig && (this.speechConfig.endpointId = Bg), this.speechConfig.outputFormat = g.OutputFormat.Detailed, this.speechConfig.speechRecognitionLanguage = this._lang || "en-US", lg && this.speechConfig.setProperty(g.PropertyId[g.PropertyId.Speech_SegmentationSilenceTimeoutMs], `${lg}`), this._autoStart && this.start());
24803
24813
  }, this.createRecognizer = async () => {
24804
24814
  if (this.audioConfig && this.speechConfig) {
@@ -24930,28 +24940,28 @@ callstack : ${L.stack}`);
24930
24940
  });
24931
24941
  });
24932
24942
  if (await this.createRecognizer(), this.recognizer) try {
24933
- this.recognizer.canceled = (lg, { errorDetails: cg, offset: jg, reason: iI, sessionId: ne }) => {
24943
+ this.recognizer.canceled = (lg, { errorDetails: cg, offset: Og, reason: iI, sessionId: ne }) => {
24934
24944
  W.push({
24935
24945
  canceled: {
24936
24946
  errorDetails: cg,
24937
- offset: jg,
24947
+ offset: Og,
24938
24948
  reason: iI,
24939
24949
  sessionId: ne
24940
24950
  }
24941
24951
  });
24942
- }, this.recognizer.recognized = (lg, { offset: cg, result: jg, sessionId: iI }) => {
24952
+ }, this.recognizer.recognized = (lg, { offset: cg, result: Og, sessionId: iI }) => {
24943
24953
  W.push({
24944
24954
  recognized: {
24945
24955
  offset: cg,
24946
- result: p(jg),
24956
+ result: p(Og),
24947
24957
  sessionId: iI
24948
24958
  }
24949
24959
  });
24950
- }, this.recognizer.recognizing = (lg, { offset: cg, result: jg, sessionId: iI }) => {
24960
+ }, this.recognizer.recognizing = (lg, { offset: cg, result: Og, sessionId: iI }) => {
24951
24961
  W.push({
24952
24962
  recognizing: {
24953
24963
  offset: cg,
24954
- result: p(jg),
24964
+ result: p(Og),
24955
24965
  sessionId: iI
24956
24966
  }
24957
24967
  });
@@ -24967,11 +24977,11 @@ callstack : ${L.stack}`);
24967
24977
  sessionId: cg
24968
24978
  }
24969
24979
  });
24970
- }, this.recognizer.speechStartDetected = (lg, { offset: cg, sessionId: jg }) => {
24980
+ }, this.recognizer.speechStartDetected = (lg, { offset: cg, sessionId: Og }) => {
24971
24981
  W.push({
24972
24982
  speechStartDetected: {
24973
24983
  offset: cg,
24974
- sessionId: jg
24984
+ sessionId: Og
24975
24985
  }
24976
24986
  });
24977
24987
  }, this.recognizer.speechEndDetected = (lg, { sessionId: cg }) => {
@@ -24987,7 +24997,7 @@ callstack : ${L.stack}`);
24987
24997
  });
24988
24998
  let eg = !1, L = null, Bg = [];
24989
24999
  for (let lg = 0; !D || eg; lg++) {
24990
- const cg = await W.shift(), { abort: jg, audioSourceOff: iI, audioSourceReady: ne, canceled: Ci, firstAudibleChunk: FA, recognized: Ye, recognizing: Yo, stop: JA } = cg, wo = Ci && Ci.errorDetails;
25000
+ const cg = await W.shift(), { abort: Og, audioSourceOff: iI, audioSourceReady: ne, canceled: Ci, firstAudibleChunk: FA, recognized: Ye, recognizing: Yo, stop: JA } = cg, wo = Ci && Ci.errorDetails;
24991
25001
  if (/Permission\sdenied/u.test(wo || "")) {
24992
25002
  L = {
24993
25003
  data: "not-allowed",
@@ -25004,10 +25014,10 @@ callstack : ${L.stack}`);
25004
25014
  type: "error"
25005
25015
  };
25006
25016
  break;
25007
- } else if (jg || JA)
25008
- jg ? (L = {
25017
+ } else if (Og || JA)
25018
+ Og ? (L = {
25009
25019
  type: "abort"
25010
- }, D = "abort") : (S(), D = "stop"), jg && this.recognizer.stopContinuousRecognitionAsync && await Z(this.recognizer.stopContinuousRecognitionAsync.bind(this.recognizer))();
25020
+ }, D = "abort") : (S(), D = "stop"), Og && this.recognizer.stopContinuousRecognitionAsync && await Z(this.recognizer.stopContinuousRecognitionAsync.bind(this.recognizer))();
25011
25021
  else if (ne)
25012
25022
  this.processSendEvent("audiostart"), eg = !0;
25013
25023
  else if (FA)
@@ -25139,7 +25149,7 @@ callstack : ${L.stack}`);
25139
25149
  }
25140
25150
  }
25141
25151
  var ig = q;
25142
- class Jg {
25152
+ class zg {
25143
25153
  constructor({ gender: y, lang: S, voiceURI: v }) {
25144
25154
  this._default = !1, this._localService = !1, this._gender = y, this._lang = S, this._name = v, this._voiceURI = v;
25145
25155
  }
@@ -25330,7 +25340,7 @@ callstack : ${L.stack}`);
25330
25340
  async updateVoices() {
25331
25341
  const y = this.synth ? await this.synth.getVoicesAsync() : null, S = y == null ? void 0 : y.voices;
25332
25342
  if (Array.isArray(S)) {
25333
- const v = S.map((W) => new Jg({
25343
+ const v = S.map((W) => new zg({
25334
25344
  // eslint-disable-next-line no-magic-numbers
25335
25345
  gender: W.gender === 1 ? "Female" : W.gender === 2 ? "Male" : "Undefined",
25336
25346
  lang: W.locale,
@@ -25358,7 +25368,7 @@ callstack : ${L.stack}`);
25358
25368
  return S.text();
25359
25369
  }
25360
25370
  }
25361
- function Pg(K, y) {
25371
+ function jg(K, y) {
25362
25372
  return {
25363
25373
  ...gg(K, y),
25364
25374
  ...Ig(K)
@@ -25366,8 +25376,8 @@ callstack : ${L.stack}`);
25366
25376
  }
25367
25377
  })(Wr);
25368
25378
  var Ol = Wr.exports;
25369
- const IV = () => {
25370
- const i = sg((m) => m.animationsLoaded), g = sg((m) => m.characterState), I = sg((m) => m.lipSyncManager), e = Sg((m) => m.credentials), t = Sg((m) => m.currentUtterance), o = Sg((m) => m.textToSpeak), C = Sg((m) => m.visemes), n = Sg((m) => m.visemeIntensity), s = Sg((m) => m.currentVisemeIndex), [l, a] = Dg(!1), [c, G] = Dg(!1), u = ql(() => e != null && e.region && (e.subscriptionKey || e.token) ? Ol.createSpeechSynthesisPonyfill({
25379
+ const iV = () => {
25380
+ const i = sg((m) => m.animationsLoaded), g = sg((m) => m.characterState), I = sg((m) => m.lipSyncManager), e = Sg((m) => m.credentials), t = Sg((m) => m.currentUtterance), o = Sg((m) => m.textToSpeak), C = Sg((m) => m.visemes), n = Sg((m) => m.visemeIntensity), s = Sg((m) => m.currentVisemeIndex), [l, a] = Eg(!1), [c, G] = Eg(!1), u = ql(() => e != null && e.region && (e.subscriptionKey || e.token) ? Ol.createSpeechSynthesisPonyfill({
25371
25381
  credentials: {
25372
25382
  region: e.region,
25373
25383
  authorizationToken: e.token,
@@ -25386,7 +25396,7 @@ const IV = () => {
25386
25396
  }, [l, I, i]), ug(() => {
25387
25397
  if (o) {
25388
25398
  const m = new Ol.SpeechSynthesisUtterance(o);
25389
- EB(m);
25399
+ PB(m);
25390
25400
  }
25391
25401
  }, [o]), ug(() => {
25392
25402
  var m, B;
@@ -25418,13 +25428,13 @@ const IV = () => {
25418
25428
  b && I.PlayVisemeAsync(b, B.elapsedTime / 1e4);
25419
25429
  }
25420
25430
  }
25421
- xB(C.length - 1);
25431
+ jB(C.length - 1);
25422
25432
  }
25423
25433
  }, [g, C, I]), ug(() => {
25424
- g !== yg.speaking && PB();
25434
+ g !== yg.speaking && OB();
25425
25435
  }, [g]), null;
25426
- }, eV = ({ parentGpuTier: i, setIsGpuAvailable: g, children: I, tonemapping: e }) => {
25427
- const t = Ug((R) => R.cameraPosition), o = Ug((R) => R.lookAt), C = Ug((R) => R.movable), [n] = Dg(i || EA()), [s, l] = Dg(), [a, c] = Dg(null), [G, u] = Dg(void 0), m = Kt(), B = Kt(), p = Kt(), b = (R) => {
25436
+ }, tV = ({ parentGpuTier: i, setIsGpuAvailable: g, children: I, tonemapping: e }) => {
25437
+ const t = Tg((R) => R.cameraPosition), o = Tg((R) => R.lookAt), C = Tg((R) => R.movable), [n] = Eg(i || EA()), [s, l] = Eg(), [a, c] = Eg(null), [G, u] = Eg(void 0), m = Kt(), B = Kt(), p = Kt(), b = (R) => {
25428
25438
  R.preventDefault(), R.stopPropagation();
25429
25439
  };
25430
25440
  ug(() => {
@@ -25434,8 +25444,8 @@ const IV = () => {
25434
25444
  if (C)
25435
25445
  a == null || a.abort(), c(null);
25436
25446
  else {
25437
- const Jg = new AbortController();
25438
- c(Jg), (R = m.current) == null || R.addEventListener("wheel", b, { passive: !1, signal: Jg.signal }), (gg = m.current) == null || gg.addEventListener("pointerdown", b, { passive: !1, signal: Jg.signal }), (q = m.current) == null || q.addEventListener("pointermove", b, { passive: !1, signal: Jg.signal }), (ig = m.current) == null || ig.addEventListener("click", b, { passive: !1, signal: Jg.signal });
25447
+ const zg = new AbortController();
25448
+ c(zg), (R = m.current) == null || R.addEventListener("wheel", b, { passive: !1, signal: zg.signal }), (gg = m.current) == null || gg.addEventListener("pointerdown", b, { passive: !1, signal: zg.signal }), (q = m.current) == null || q.addEventListener("pointermove", b, { passive: !1, signal: zg.signal }), (ig = m.current) == null || ig.addEventListener("click", b, { passive: !1, signal: zg.signal });
25439
25449
  }
25440
25450
  }, [C]), ug(() => {
25441
25451
  p != null && p.current && o && t && p.current.setLookAt(t.x, t.y, t.z, o.x, o.y, o.z, !0);
@@ -25487,7 +25497,7 @@ const IV = () => {
25487
25497
  break;
25488
25498
  }
25489
25499
  }, [s]);
25490
- const [Z] = Dg(new d.Scene()), H = ql(() => {
25500
+ const [Z] = Eg(new d.Scene()), H = ql(() => {
25491
25501
  if (Z && s !== "low" && B.current && m.current) {
25492
25502
  const R = {
25493
25503
  antialias: s !== "medium",
@@ -25500,16 +25510,16 @@ const IV = () => {
25500
25510
  }), gg;
25501
25511
  }
25502
25512
  }, [Z, s, B.current, m.current]);
25503
- return G ? /* @__PURE__ */ tg.createElement(qA, { gl: H, dpr: G, ref: m, shadows: !0, scene: Z }, /* @__PURE__ */ tg.createElement(iV, { renderer: H, tonemapping: e, processedTier: s, scene: Z }), /* @__PURE__ */ tg.createElement(xA, null), /* @__PURE__ */ tg.createElement(IV, null), /* @__PURE__ */ tg.createElement(PA, { ref: B, makeDefault: !0, fov: 28 }), /* @__PURE__ */ tg.createElement(jA, { ref: p }), /* @__PURE__ */ tg.createElement(zA, { fallback: null }, I)) : /* @__PURE__ */ tg.createElement(tg.Fragment, null);
25504
- }, iV = ({ renderer: i, tonemapping: g, processedTier: I, scene: e }) => {
25505
- const { gl: t } = _A(), [o] = Dg(new d.Vector3(-3, 2, 2)), [C] = Dg(new d.Vector3(0, 1, 0)), [n] = Dg(2), [s] = Dg(-1e-3), [l] = Dg(0.6), a = Kt();
25513
+ return G ? /* @__PURE__ */ tg.createElement(qA, { gl: H, dpr: G, ref: m, shadows: !0, scene: Z }, /* @__PURE__ */ tg.createElement(oV, { renderer: H, tonemapping: e, processedTier: s, scene: Z }), /* @__PURE__ */ tg.createElement(xA, null), /* @__PURE__ */ tg.createElement(iV, null), /* @__PURE__ */ tg.createElement(PA, { ref: B, makeDefault: !0, fov: 28 }), /* @__PURE__ */ tg.createElement(jA, { ref: p }), /* @__PURE__ */ tg.createElement(zA, { fallback: null }, I)) : /* @__PURE__ */ tg.createElement(tg.Fragment, null);
25514
+ }, oV = ({ renderer: i, tonemapping: g, processedTier: I, scene: e }) => {
25515
+ const { gl: t } = _A(), [o] = Eg(new d.Vector3(-3, 2, 2)), [C] = Eg(new d.Vector3(0, 1, 0)), [n] = Eg(2), [s] = Eg(-1e-3), [l] = Eg(0.6), a = Kt();
25506
25516
  return ug(() => {
25507
25517
  !t || !i || (t.shadowMap.type = d.PCFSoftShadowMap, t.toneMapping = g, I !== "low" ? e.environmentIntensity = l : e.environmentIntensity = 1);
25508
25518
  }, [t, i, g]), ug(() => {
25509
25519
  e.environmentIntensity = l;
25510
25520
  }, [l]), /* @__PURE__ */ tg.createElement(tg.Fragment, null, I !== "low" && t && /* @__PURE__ */ tg.createElement(tg.Fragment, null, /* @__PURE__ */ tg.createElement("directionalLight", { ref: a, color: "white", position: o.toArray(), "target-position": C.toArray(), intensity: n, castShadow: !0, "shadow-mapSize-width": 1024, "shadow-mapSize-height": 1024, "shadow-bias": s }, /* @__PURE__ */ tg.createElement("orthographicCamera", { attach: "shadow-camera", args: [-1, 1, 2, -0.5, 2, 8] }))));
25511
- }, tV = ({ character: i, autoLookAt: g }) => {
25512
- const I = sg((l) => l.characterState), e = pI((l) => l.currentAUs), t = pI((l) => l.currentGaze), o = pI((l) => l.currentHeadPose), C = pI((l) => l.lookAtCamera), n = Ug((l) => l.cameraPosition), s = pI((l) => l.targets);
25521
+ }, CV = ({ character: i, autoLookAt: g }) => {
25522
+ const I = sg((l) => l.characterState), e = pI((l) => l.currentAUs), t = pI((l) => l.currentGaze), o = pI((l) => l.currentHeadPose), C = pI((l) => l.lookAtCamera), n = Tg((l) => l.cameraPosition), s = pI((l) => l.targets);
25513
25523
  return $A((l, a) => {
25514
25524
  const c = {
25515
25525
  deltaTime: a,
@@ -25539,8 +25549,8 @@ const IV = () => {
25539
25549
  }, [I, g]), ug(() => {
25540
25550
  WB(i);
25541
25551
  }, [i]), null;
25542
- }, NV = ({ url: i, type: g, animationsUrl: I, gender: e, speechSynthesis: t, camera: o, onLoadingCompleted: C, autoLookAt: n, breathing: s, disableAnimations: l, debug: a, enableBml: c, animationWeights: G, license: u, detectGpuData: m, environmentPreset: B = "apartment", tonemapping: p = d.NeutralToneMapping, targets: b }) => {
25543
- const Z = sg((S) => S.animationsLoaded), H = Ug((S) => S.defaultPositions), R = Ug((S) => S.defaultDistances), [gg, q] = Dg(), [ig, Jg] = Dg(null), [eI, Ig] = Dg(), [Vg, Ce] = Dg(!1), Pg = async (S) => {
25552
+ }, JV = ({ url: i, type: g, animationsUrl: I, gender: e, speechSynthesis: t, camera: o, onLoadingCompleted: C, autoLookAt: n, breathing: s, disableAnimations: l, debug: a, enableBml: c, animationWeights: G, license: u, detectGpuData: m, environmentPreset: B = "apartment", tonemapping: p = d.NeutralToneMapping, targets: b }) => {
25553
+ const Z = sg((S) => S.animationsLoaded), H = Tg((S) => S.defaultPositions), R = Tg((S) => S.defaultDistances), [gg, q] = Eg(), [ig, zg] = Eg(null), [eI, Ig] = Eg(), [Vg, Ce] = Eg(!1), jg = async (S) => {
25544
25554
  let v = null;
25545
25555
  switch (g) {
25546
25556
  case dg.cc3:
@@ -25584,7 +25594,7 @@ const IV = () => {
25584
25594
  z = await Gg.fromAvaturn(j);
25585
25595
  break;
25586
25596
  }
25587
- z && Jg(z);
25597
+ z && zg(z);
25588
25598
  }
25589
25599
  }, K = () => {
25590
25600
  oa(!0);
@@ -25597,18 +25607,18 @@ const IV = () => {
25597
25607
  }, [ig, Z, Vg]), ug(() => {
25598
25608
  YB(b || []);
25599
25609
  }, [b]), ug(() => {
25600
- oa(!1), gg !== void 0 && (gg ? Pg(i) : C == null || C());
25610
+ oa(!1), gg !== void 0 && (gg ? jg(i) : C == null || C());
25601
25611
  }, [i, gg]), ug(() => {
25602
25612
  if (Vg && R && H)
25603
25613
  if (o) {
25604
- const S = OB(o, R, H);
25614
+ const S = _B(o, R, H);
25605
25615
  na(S), sa(o.lookAt ? H[o.lookAt] : H.lowerbelly), KB(!!o.movable);
25606
25616
  } else {
25607
25617
  const S = H.mouth.clone();
25608
25618
  S.setComponent(2, R.farther), na(S), sa(H.lowerbelly);
25609
25619
  }
25610
25620
  }, [Vg, o, R, H]), ug(() => {
25611
- t && (t.credentials && DB(t.credentials), t.voice && jB(t.voice));
25621
+ t && (t.credentials && xB(t.credentials), t.voice && qB(t.voice));
25612
25622
  }, [t]);
25613
25623
  const y = () => {
25614
25624
  if (ig && eI) {
@@ -25653,65 +25663,65 @@ const IV = () => {
25653
25663
  Ce(!0);
25654
25664
  }
25655
25665
  };
25656
- return /* @__PURE__ */ tg.createElement(eV, { parentGpuTier: m, setIsGpuAvailable: q, tonemapping: p }, gg ? /* @__PURE__ */ tg.createElement(tg.Fragment, null, ig && /* @__PURE__ */ tg.createElement(tV, { character: ig, autoLookAt: !!n }), ig && /* @__PURE__ */ tg.createElement(tg.Fragment, null, /* @__PURE__ */ tg.createElement(OA, { preset: B }), /* @__PURE__ */ tg.createElement("primitive", { object: ig, castShadow: !0, receiveShadow: !0 }))) : /* @__PURE__ */ tg.createElement(tg.Fragment, null));
25657
- }, oV = {
25666
+ return /* @__PURE__ */ tg.createElement(tV, { parentGpuTier: m, setIsGpuAvailable: q, tonemapping: p }, gg ? /* @__PURE__ */ tg.createElement(tg.Fragment, null, ig && /* @__PURE__ */ tg.createElement(CV, { character: ig, autoLookAt: !!n }), ig && /* @__PURE__ */ tg.createElement(tg.Fragment, null, /* @__PURE__ */ tg.createElement(OA, { preset: B }), /* @__PURE__ */ tg.createElement("primitive", { object: ig, castShadow: !0, receiveShadow: !0 }))) : /* @__PURE__ */ tg.createElement(tg.Fragment, null));
25667
+ }, nV = {
25658
25668
  emotions: [],
25659
25669
  currentTopEmotion: Kn.Neutral,
25660
25670
  useTopEmotionOnly: !0,
25661
25671
  autoDecay: !1
25662
- }, Li = Ii()(() => oV), FV = (i) => {
25672
+ }, Li = Ii()(() => nV), kV = (i) => {
25663
25673
  if (Li.setState({ emotions: i || [] }), i != null && i.length) {
25664
25674
  const g = i.reduce((I, e) => I.value > e.value ? I : e);
25665
25675
  Li.setState({ currentTopEmotion: g.emotion });
25666
25676
  } else
25667
25677
  Li.setState({ currentTopEmotion: Kn.Neutral });
25668
- }, JV = (i) => {
25678
+ }, zV = (i) => {
25669
25679
  Li.setState({ useTopEmotionOnly: i });
25670
- }, kV = (i) => {
25680
+ }, fV = (i) => {
25671
25681
  Li.setState({ autoDecay: i });
25672
- }, zV = (i) => {
25682
+ }, MV = (i) => {
25673
25683
  const g = sg.getState().FACSManager;
25674
25684
  g == null || g.playFacialAnimation({ ...i });
25675
25685
  };
25676
25686
  export {
25677
- NV as Character,
25687
+ JV as Character,
25678
25688
  yg as CharacterState,
25679
25689
  dg as CreationTool,
25680
- Tg as Distances,
25681
- UV as Object3D,
25682
- gI as Positions,
25690
+ Fg as Distances,
25691
+ TV as Object3D,
25692
+ Kg as Positions,
25683
25693
  VI as Rotations,
25684
- XV as addSPPASViseme,
25694
+ KV as addSPPASViseme,
25685
25695
  Sr as addViseme,
25686
- hV as bmlTags,
25687
- GV as emotionList,
25688
- PB as flushLipSyncData,
25689
- SV as getAnimationsMap,
25690
- mV as getCameraPosition,
25691
- BV as getCharacterHeight,
25692
- uV as getLookAt,
25693
- KV as getVoices,
25696
+ BV as bmlTags,
25697
+ mV as emotionList,
25698
+ OB as flushLipSyncData,
25699
+ vV as getAnimationsMap,
25700
+ bV as getCameraPosition,
25701
+ uV as getCharacterHeight,
25702
+ pV as getLookAt,
25703
+ wV as getVoices,
25694
25704
  wB as lookAtAndKeep,
25695
- yV as lookAtAndSteady,
25696
- vV as playAnimationByName,
25697
- zV as playFacialAnimation,
25698
- HV as presets,
25705
+ WV as lookAtAndSteady,
25706
+ VV as playAnimationByName,
25707
+ MV as playFacialAnimation,
25708
+ XV as presets,
25699
25709
  LB as releaseLookAt,
25700
- kV as setAutoDecay,
25701
- WV as setAutoPlay,
25710
+ fV as setAutoDecay,
25711
+ HV as setAutoPlay,
25702
25712
  na as setCameraPosition,
25703
25713
  Ca as setCharacterState,
25704
- bV as setCurrentAUs,
25705
- pV as setCurrentGaze,
25706
- ZV as setCurrentHeadPose,
25707
- EB as setCurrentUtterance,
25708
- FV as setEmotions,
25714
+ ZV as setCurrentAUs,
25715
+ yV as setCurrentGaze,
25716
+ SV as setCurrentHeadPose,
25717
+ PB as setCurrentUtterance,
25718
+ kV as setEmotions,
25709
25719
  Fo as setLookAtCamera,
25710
25720
  KB as setMovable,
25711
- RV as setTextToSpeak,
25712
- JV as setUseTopEmotionOnly,
25713
- YV as setVisemeIntensity,
25714
- VV as setVisemes,
25715
- jB as setVoice,
25721
+ YV as setTextToSpeak,
25722
+ zV as setUseTopEmotionOnly,
25723
+ LV as setVisemeIntensity,
25724
+ RV as setVisemes,
25725
+ qB as setVoice,
25716
25726
  sg as useCharacterStore
25717
25727
  };