holostaff-widget 3.0.0-alpha.21 → 3.0.0-alpha.23
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/{BufferResource-BMTertZ1.js → BufferResource-C4_7WYjm.js} +2 -2
- package/dist/{BufferResource-BMTertZ1.js.map → BufferResource-C4_7WYjm.js.map} +1 -1
- package/dist/{CanvasRenderer-2nOUZyIX.js → CanvasRenderer-3x3b66kA.js} +3 -3
- package/dist/{CanvasRenderer-2nOUZyIX.js.map → CanvasRenderer-3x3b66kA.js.map} +1 -1
- package/dist/{Filter-C9quYwP8.js → Filter-BjzXdx91.js} +2 -2
- package/dist/{Filter-C9quYwP8.js.map → Filter-BjzXdx91.js.map} +1 -1
- package/dist/{RenderTargetSystem-CnkdQo8m.js → RenderTargetSystem-Bq1Lyvc6.js} +3 -3
- package/dist/{RenderTargetSystem-CnkdQo8m.js.map → RenderTargetSystem-Bq1Lyvc6.js.map} +1 -1
- package/dist/{WebGLRenderer-qDJexSYN.js → WebGLRenderer-BnMU8zq9.js} +4 -4
- package/dist/{WebGLRenderer-qDJexSYN.js.map → WebGLRenderer-BnMU8zq9.js.map} +1 -1
- package/dist/{WebGPURenderer-DbTkVbYN.js → WebGPURenderer-Cz0GaLUb.js} +4 -4
- package/dist/{WebGPURenderer-DbTkVbYN.js.map → WebGPURenderer-Cz0GaLUb.js.map} +1 -1
- package/dist/{browserAll-CPx8PdE0.js → browserAll-DB9tb1aJ.js} +3 -3
- package/dist/{browserAll-CPx8PdE0.js.map → browserAll-DB9tb1aJ.js.map} +1 -1
- package/dist/hs-widget.es.js +1 -1
- package/dist/hs-widget.umd.js +3 -3
- package/dist/hs-widget.umd.js.map +1 -1
- package/dist/{index-DTNiKN29.js → index-RtR241n6.js} +253 -253
- package/dist/{index-DTNiKN29.js.map → index-RtR241n6.js.map} +1 -1
- package/dist/{webworkerAll-D4zwlAW2.js → webworkerAll-MGrJla4b.js} +3 -3
- package/dist/{webworkerAll-D4zwlAW2.js.map → webworkerAll-MGrJla4b.js.map} +1 -1
- package/package.json +1 -1
|
@@ -278,7 +278,7 @@ const cn = (i) => {
|
|
|
278
278
|
},
|
|
279
279
|
test: () => !0,
|
|
280
280
|
load: async () => {
|
|
281
|
-
await import("./browserAll-
|
|
281
|
+
await import("./browserAll-DB9tb1aJ.js");
|
|
282
282
|
}
|
|
283
283
|
}, eh = {
|
|
284
284
|
extension: {
|
|
@@ -288,7 +288,7 @@ const cn = (i) => {
|
|
|
288
288
|
},
|
|
289
289
|
test: () => typeof self < "u" && self.WorkerGlobalScope !== void 0,
|
|
290
290
|
load: async () => {
|
|
291
|
-
await import("./webworkerAll-
|
|
291
|
+
await import("./webworkerAll-MGrJla4b.js");
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
294
|
class Ot {
|
|
@@ -4065,12 +4065,12 @@ const Sh = {
|
|
|
4065
4065
|
cullable: !1,
|
|
4066
4066
|
cullableChildren: !0
|
|
4067
4067
|
};
|
|
4068
|
-
let
|
|
4068
|
+
let Ls = 0;
|
|
4069
4069
|
const gr = 500;
|
|
4070
4070
|
function Gt(...i) {
|
|
4071
|
-
|
|
4071
|
+
Ls !== gr && (Ls++, Ls === gr ? console.warn("PixiJS Warning: too many warnings, no more warnings will be reported to the console by PixiJS.") : console.warn("PixiJS Warning: ", ...i));
|
|
4072
4072
|
}
|
|
4073
|
-
const
|
|
4073
|
+
const Bi = {
|
|
4074
4074
|
/**
|
|
4075
4075
|
* Set of registered pools and cleanable objects.
|
|
4076
4076
|
* @private
|
|
@@ -4240,7 +4240,7 @@ class Eh {
|
|
|
4240
4240
|
}
|
|
4241
4241
|
}
|
|
4242
4242
|
const Vt = new Eh();
|
|
4243
|
-
|
|
4243
|
+
Bi.register(Vt);
|
|
4244
4244
|
const Ih = {
|
|
4245
4245
|
get isCachedAsTexture() {
|
|
4246
4246
|
var i;
|
|
@@ -4547,7 +4547,7 @@ const Mh = {
|
|
|
4547
4547
|
function Zo(i, t, e) {
|
|
4548
4548
|
e.clear();
|
|
4549
4549
|
let s, n;
|
|
4550
|
-
return i.parent ? t ? s = i.parent.worldTransform : (n = Ut.get().identity(), s =
|
|
4550
|
+
return i.parent ? t ? s = i.parent.worldTransform : (n = Ut.get().identity(), s = Ln(i, n)) : s = Q.IDENTITY, Jo(i, e, s, t), n && Ut.return(n), e.isValid || e.set(0, 0, 0, 0), e;
|
|
4551
4551
|
}
|
|
4552
4552
|
function Jo(i, t, e, s) {
|
|
4553
4553
|
var a, l;
|
|
@@ -4570,9 +4570,9 @@ function Jo(i, t, e, s) {
|
|
|
4570
4570
|
}
|
|
4571
4571
|
s || Ut.return(n);
|
|
4572
4572
|
}
|
|
4573
|
-
function
|
|
4573
|
+
function Ln(i, t) {
|
|
4574
4574
|
const e = i.parent;
|
|
4575
|
-
return e && (
|
|
4575
|
+
return e && (Ln(e, t), e.updateLocalTransform(), t.append(e.localTransform)), t;
|
|
4576
4576
|
}
|
|
4577
4577
|
function Qo(i, t) {
|
|
4578
4578
|
if (i === 16777215 || !t) return t;
|
|
@@ -4600,7 +4600,7 @@ const Nh = {
|
|
|
4600
4600
|
if (t)
|
|
4601
4601
|
return i.copyFrom(this.worldTransform);
|
|
4602
4602
|
this.updateLocalTransform();
|
|
4603
|
-
const e =
|
|
4603
|
+
const e = Ln(this, Ut.get().identity());
|
|
4604
4604
|
return i.appendFrom(this.localTransform, e), Ut.return(e), i;
|
|
4605
4605
|
},
|
|
4606
4606
|
getGlobalTint(i) {
|
|
@@ -4652,7 +4652,7 @@ function ia(i, t) {
|
|
|
4652
4652
|
}
|
|
4653
4653
|
return t.didChange;
|
|
4654
4654
|
}
|
|
4655
|
-
const Dh = new Q(),
|
|
4655
|
+
const Dh = new Q(), Lh = {
|
|
4656
4656
|
_localBoundsCacheId: -1,
|
|
4657
4657
|
_localBoundsCacheData: null,
|
|
4658
4658
|
_setWidth(i, t) {
|
|
@@ -4676,7 +4676,7 @@ const Dh = new Q(), Bh = {
|
|
|
4676
4676
|
getBounds(i, t) {
|
|
4677
4677
|
return Zo(this, i, t || new Kt());
|
|
4678
4678
|
}
|
|
4679
|
-
},
|
|
4679
|
+
}, Bh = {
|
|
4680
4680
|
_onRender: null,
|
|
4681
4681
|
set onRender(i) {
|
|
4682
4682
|
const t = this.renderGroup || this.parentRenderGroup;
|
|
@@ -4723,7 +4723,7 @@ const Gh = {
|
|
|
4723
4723
|
return e = n.applyInverse(i, e), Ut.return(n), e;
|
|
4724
4724
|
}
|
|
4725
4725
|
};
|
|
4726
|
-
class
|
|
4726
|
+
class Bn {
|
|
4727
4727
|
constructor() {
|
|
4728
4728
|
this.uid = St("instructionSet"), this.instructions = [], this.instructionSize = 0, this.renderables = [], this.gcTick = 0;
|
|
4729
4729
|
}
|
|
@@ -4846,10 +4846,10 @@ class Vh {
|
|
|
4846
4846
|
}
|
|
4847
4847
|
}
|
|
4848
4848
|
const Cs = new Vh();
|
|
4849
|
-
|
|
4849
|
+
Bi.register(Cs);
|
|
4850
4850
|
class Hh {
|
|
4851
4851
|
constructor() {
|
|
4852
|
-
this.renderPipeId = "renderGroup", this.root = null, this.canBundle = !1, this.renderGroupParent = null, this.renderGroupChildren = [], this.worldTransform = new Q(), this.worldColorAlpha = 4294967295, this.worldColor = 16777215, this.worldAlpha = 1, this.childrenToUpdate = /* @__PURE__ */ Object.create(null), this.updateTick = 0, this.gcTick = 0, this.childrenRenderablesToUpdate = { list: [], index: 0 }, this.structureDidChange = !0, this.instructionSet = new
|
|
4852
|
+
this.renderPipeId = "renderGroup", this.root = null, this.canBundle = !1, this.renderGroupParent = null, this.renderGroupChildren = [], this.worldTransform = new Q(), this.worldColorAlpha = 4294967295, this.worldColor = 16777215, this.worldAlpha = 1, this.childrenToUpdate = /* @__PURE__ */ Object.create(null), this.updateTick = 0, this.gcTick = 0, this.childrenRenderablesToUpdate = { list: [], index: 0 }, this.structureDidChange = !0, this.instructionSet = new Bn(), this._onRenderContainers = [], this.textureNeedsUpdate = !0, this.isCachedAsTexture = !1, this._matrixDirty = 7;
|
|
4853
4853
|
}
|
|
4854
4854
|
init(t) {
|
|
4855
4855
|
this.root = t, t._onRender && this.addOnRender(t), t.didChange = !0;
|
|
@@ -5006,11 +5006,11 @@ function zh(i, t, e = {}) {
|
|
|
5006
5006
|
for (const s in t)
|
|
5007
5007
|
!e[s] && t[s] !== void 0 && (i[s] = t[s]);
|
|
5008
5008
|
}
|
|
5009
|
-
const
|
|
5009
|
+
const Bs = new Ot(null), $i = new Ot(null), Fs = new Ot(null, 1, 1), ji = new Ot(null), xr = 1, $h = 2, Us = 4;
|
|
5010
5010
|
class qt extends oe {
|
|
5011
5011
|
constructor(t = {}) {
|
|
5012
5012
|
var e, s;
|
|
5013
|
-
super(), this.uid = St("renderable"), this._updateFlags = 15, this.renderGroup = null, this.parentRenderGroup = null, this.parentRenderGroupIndex = 0, this.didChange = !1, this.didViewUpdate = !1, this.relativeRenderGroupDepth = 0, this.children = [], this.parent = null, this.includeInBuild = !0, this.measurable = !0, this.isSimple = !0, this.parentRenderLayer = null, this.updateTick = -1, this.localTransform = new Q(), this.relativeGroupTransform = new Q(), this.groupTransform = this.relativeGroupTransform, this.destroyed = !1, this._position = new Ot(this, 0, 0), this._scale = Fs, this._pivot = $i, this._origin = ji, this._skew =
|
|
5013
|
+
super(), this.uid = St("renderable"), this._updateFlags = 15, this.renderGroup = null, this.parentRenderGroup = null, this.parentRenderGroupIndex = 0, this.didChange = !1, this.didViewUpdate = !1, this.relativeRenderGroupDepth = 0, this.children = [], this.parent = null, this.includeInBuild = !0, this.measurable = !0, this.isSimple = !0, this.parentRenderLayer = null, this.updateTick = -1, this.localTransform = new Q(), this.relativeGroupTransform = new Q(), this.groupTransform = this.relativeGroupTransform, this.destroyed = !1, this._position = new Ot(this, 0, 0), this._scale = Fs, this._pivot = $i, this._origin = ji, this._skew = Bs, this._cx = 1, this._sx = 0, this._cy = 0, this._sy = 1, this._rotation = 0, this.localColor = 16777215, this.localAlpha = 1, this.groupAlpha = 1, this.groupColor = 16777215, this.groupColorAlpha = 4294967295, this.localBlendMode = "inherit", this.groupBlendMode = "normal", this.localDisplayStatus = 7, this.globalDisplayStatus = 7, this._didContainerChangeTick = 0, this._didViewChangeTick = 0, this._didLocalTransformChangeId = -1, this.effects = [], zh(this, t, {
|
|
5014
5014
|
children: !0,
|
|
5015
5015
|
parent: !0,
|
|
5016
5016
|
effects: !0
|
|
@@ -5306,10 +5306,10 @@ class qt extends oe {
|
|
|
5306
5306
|
* @default {x: 0, y: 0}
|
|
5307
5307
|
*/
|
|
5308
5308
|
get skew() {
|
|
5309
|
-
return this._skew ===
|
|
5309
|
+
return this._skew === Bs && (this._skew = new Ot(this, 0, 0)), this._skew;
|
|
5310
5310
|
}
|
|
5311
5311
|
set skew(t) {
|
|
5312
|
-
this._skew ===
|
|
5312
|
+
this._skew === Bs && (this._skew = new Ot(this, 0, 0)), this._skew.copyFrom(t);
|
|
5313
5313
|
}
|
|
5314
5314
|
/**
|
|
5315
5315
|
* The scale factors of this object along the local coordinate axes.
|
|
@@ -5700,8 +5700,8 @@ Et.mixin(
|
|
|
5700
5700
|
Ah,
|
|
5701
5701
|
Oh,
|
|
5702
5702
|
Gh,
|
|
5703
|
-
Lh,
|
|
5704
5703
|
Bh,
|
|
5704
|
+
Lh,
|
|
5705
5705
|
Mh,
|
|
5706
5706
|
kh,
|
|
5707
5707
|
Fh,
|
|
@@ -5800,7 +5800,7 @@ class Fn extends qt {
|
|
|
5800
5800
|
n.blendMode.popBlendMode(t);
|
|
5801
5801
|
}
|
|
5802
5802
|
}
|
|
5803
|
-
class
|
|
5803
|
+
class Be extends Fn {
|
|
5804
5804
|
/**
|
|
5805
5805
|
* @param options - The options for creating the sprite.
|
|
5806
5806
|
*/
|
|
@@ -5841,7 +5841,7 @@ class Le extends Fn {
|
|
|
5841
5841
|
* @see {@link Assets} For asset loading and management
|
|
5842
5842
|
*/
|
|
5843
5843
|
static from(t, e = !1) {
|
|
5844
|
-
return t instanceof at ? new
|
|
5844
|
+
return t instanceof at ? new Be(t) : new Be(at.from(t, e));
|
|
5845
5845
|
}
|
|
5846
5846
|
set texture(t) {
|
|
5847
5847
|
t || (t = at.EMPTY);
|
|
@@ -6087,7 +6087,7 @@ class oa {
|
|
|
6087
6087
|
this.priority = 0, this.inverse = !1, this.pipe = "alphaMask", t != null && t.mask && this.init(t.mask);
|
|
6088
6088
|
}
|
|
6089
6089
|
init(t) {
|
|
6090
|
-
this.mask = t, this.renderMaskToTexture = !(t instanceof
|
|
6090
|
+
this.mask = t, this.renderMaskToTexture = !(t instanceof Be), this.mask.renderable = this.renderMaskToTexture, this.mask.includeInBuild = !this.renderMaskToTexture, this.mask.measurable = !1;
|
|
6091
6091
|
}
|
|
6092
6092
|
reset() {
|
|
6093
6093
|
this.mask !== null && (this.mask.measurable = !0, this.mask = null);
|
|
@@ -6106,7 +6106,7 @@ class oa {
|
|
|
6106
6106
|
this.reset();
|
|
6107
6107
|
}
|
|
6108
6108
|
static test(t) {
|
|
6109
|
-
return t instanceof
|
|
6109
|
+
return t instanceof Be;
|
|
6110
6110
|
}
|
|
6111
6111
|
}
|
|
6112
6112
|
oa.extension = X.MaskEffect;
|
|
@@ -8983,7 +8983,7 @@ function Mc(i, t, e, s) {
|
|
|
8983
8983
|
const n = [];
|
|
8984
8984
|
for (let r = 0, o = t.length; r < o; r++) {
|
|
8985
8985
|
const a = t[r] * s, l = r < o - 1 ? t[r + 1] * s : i.length, h = Aa(i, a, l, s, !1);
|
|
8986
|
-
h === h.next && (h.steiner = !0), n.push(
|
|
8986
|
+
h === h.next && (h.steiner = !0), n.push(Bc(h));
|
|
8987
8987
|
}
|
|
8988
8988
|
n.sort(kc);
|
|
8989
8989
|
for (let r = 0; r < n.length; r++)
|
|
@@ -9040,9 +9040,9 @@ function Dc(i, t, e, s) {
|
|
|
9040
9040
|
do
|
|
9041
9041
|
n.z === 0 && (n.z = bn(n.x, n.y, t, e, s)), n.prevZ = n.prev, n.nextZ = n.next, n = n.next;
|
|
9042
9042
|
while (n !== i);
|
|
9043
|
-
n.prevZ.nextZ = null, n.prevZ = null,
|
|
9043
|
+
n.prevZ.nextZ = null, n.prevZ = null, Lc(n);
|
|
9044
9044
|
}
|
|
9045
|
-
function
|
|
9045
|
+
function Lc(i) {
|
|
9046
9046
|
let t, e = 1;
|
|
9047
9047
|
do {
|
|
9048
9048
|
let s = i, n;
|
|
@@ -9065,7 +9065,7 @@ function Bc(i) {
|
|
|
9065
9065
|
function bn(i, t, e, s, n) {
|
|
9066
9066
|
return i = (i - e) * n | 0, t = (t - s) * n | 0, i = (i | i << 8) & 16711935, i = (i | i << 4) & 252645135, i = (i | i << 2) & 858993459, i = (i | i << 1) & 1431655765, t = (t | t << 8) & 16711935, t = (t | t << 4) & 252645135, t = (t | t << 2) & 858993459, t = (t | t << 1) & 1431655765, i | t << 1;
|
|
9067
9067
|
}
|
|
9068
|
-
function
|
|
9068
|
+
function Bc(i) {
|
|
9069
9069
|
let t = i, e = i;
|
|
9070
9070
|
do
|
|
9071
9071
|
(t.x < e.x || t.x === e.x && t.y < e.y) && (e = t), t = t.next;
|
|
@@ -9404,7 +9404,7 @@ const zc = [
|
|
|
9404
9404
|
});
|
|
9405
9405
|
}
|
|
9406
9406
|
destroy(t = !1) {
|
|
9407
|
-
this.runners.destroy.items.reverse(), this.runners.destroy.emit(t), (t === !0 || typeof t == "object" && t.releaseGlobalResources) &&
|
|
9407
|
+
this.runners.destroy.items.reverse(), this.runners.destroy.emit(t), (t === !0 || typeof t == "object" && t.releaseGlobalResources) && Bi.release(), Object.values(this.runners).forEach((e) => {
|
|
9408
9408
|
e.destroy();
|
|
9409
9409
|
}), this._systemsHash = null, this.renderPipes = null, this.removeAllListeners();
|
|
9410
9410
|
}
|
|
@@ -9540,17 +9540,17 @@ async function Yc(i) {
|
|
|
9540
9540
|
for (let r = 0; r < t.length; r++) {
|
|
9541
9541
|
const o = t[r];
|
|
9542
9542
|
if (o === "webgpu" && await jc()) {
|
|
9543
|
-
const { WebGPURenderer: a } = await import("./WebGPURenderer-
|
|
9543
|
+
const { WebGPURenderer: a } = await import("./WebGPURenderer-Cz0GaLUb.js");
|
|
9544
9544
|
e = a, s = { ...i, ...i.webgpu };
|
|
9545
9545
|
break;
|
|
9546
9546
|
} else if (o === "webgl" && $c(
|
|
9547
9547
|
i.failIfMajorPerformanceCaveat ?? Na.defaultOptions.failIfMajorPerformanceCaveat
|
|
9548
9548
|
)) {
|
|
9549
|
-
const { WebGLRenderer: a } = await import("./WebGLRenderer-
|
|
9549
|
+
const { WebGLRenderer: a } = await import("./WebGLRenderer-BnMU8zq9.js");
|
|
9550
9550
|
e = a, s = { ...i, ...i.webgl };
|
|
9551
9551
|
break;
|
|
9552
9552
|
} else if (o === "canvas") {
|
|
9553
|
-
const { CanvasRenderer: a } = await import("./CanvasRenderer-
|
|
9553
|
+
const { CanvasRenderer: a } = await import("./CanvasRenderer-3x3b66kA.js");
|
|
9554
9554
|
e = a, s = { ...i, ...i.canvasOptions };
|
|
9555
9555
|
break;
|
|
9556
9556
|
}
|
|
@@ -9561,7 +9561,7 @@ async function Yc(i) {
|
|
|
9561
9561
|
return await n.init(s), n;
|
|
9562
9562
|
}
|
|
9563
9563
|
const Da = "8.17.1";
|
|
9564
|
-
class
|
|
9564
|
+
class La {
|
|
9565
9565
|
static init() {
|
|
9566
9566
|
var t;
|
|
9567
9567
|
(t = globalThis.__PIXI_APP_INIT__) == null || t.call(globalThis, this, Da);
|
|
@@ -9569,7 +9569,7 @@ class Ba {
|
|
|
9569
9569
|
static destroy() {
|
|
9570
9570
|
}
|
|
9571
9571
|
}
|
|
9572
|
-
|
|
9572
|
+
La.extension = X.Application;
|
|
9573
9573
|
class Xc {
|
|
9574
9574
|
constructor(t) {
|
|
9575
9575
|
this._renderer = t;
|
|
@@ -9590,7 +9590,7 @@ Xc.extension = {
|
|
|
9590
9590
|
name: "initHook",
|
|
9591
9591
|
priority: -10
|
|
9592
9592
|
};
|
|
9593
|
-
class
|
|
9593
|
+
class Ba {
|
|
9594
9594
|
/**
|
|
9595
9595
|
* Initialize the plugin with scope of application instance
|
|
9596
9596
|
* @private
|
|
@@ -9635,7 +9635,7 @@ class La {
|
|
|
9635
9635
|
globalThis.removeEventListener("resize", this.queueResize), this._cancelResize(), this._cancelResize = null, this.queueResize = null, this.resizeTo = null, this.resize = null;
|
|
9636
9636
|
}
|
|
9637
9637
|
}
|
|
9638
|
-
|
|
9638
|
+
Ba.extension = X.Application;
|
|
9639
9639
|
class Fa {
|
|
9640
9640
|
/**
|
|
9641
9641
|
* Initialize the plugin with scope of application instance
|
|
@@ -9676,7 +9676,7 @@ class Fa {
|
|
|
9676
9676
|
}
|
|
9677
9677
|
}
|
|
9678
9678
|
Fa.extension = X.Application;
|
|
9679
|
-
Et.add(
|
|
9679
|
+
Et.add(Ba);
|
|
9680
9680
|
Et.add(Fa);
|
|
9681
9681
|
const Ua = class Sn {
|
|
9682
9682
|
constructor(...t) {
|
|
@@ -9843,7 +9843,7 @@ const Ua = class Sn {
|
|
|
9843
9843
|
Ua._plugins = [];
|
|
9844
9844
|
let Ga = Ua;
|
|
9845
9845
|
Et.handleByList(X.Application, Ga._plugins);
|
|
9846
|
-
Et.add(
|
|
9846
|
+
Et.add(La);
|
|
9847
9847
|
var Zs, kr;
|
|
9848
9848
|
function qc() {
|
|
9849
9849
|
if (kr) return Zs;
|
|
@@ -11012,7 +11012,7 @@ class uu {
|
|
|
11012
11012
|
}
|
|
11013
11013
|
const Ii = [];
|
|
11014
11014
|
let us = 0;
|
|
11015
|
-
|
|
11015
|
+
Bi.register({
|
|
11016
11016
|
clear: () => {
|
|
11017
11017
|
if (Ii.length > 0)
|
|
11018
11018
|
for (const i of Ii)
|
|
@@ -11023,7 +11023,7 @@ Li.register({
|
|
|
11023
11023
|
function Dr() {
|
|
11024
11024
|
return us > 0 ? Ii[--us] : new uu();
|
|
11025
11025
|
}
|
|
11026
|
-
function
|
|
11026
|
+
function Lr(i) {
|
|
11027
11027
|
i.elements = null, Ii[us++] = i;
|
|
11028
11028
|
}
|
|
11029
11029
|
let pi = 0;
|
|
@@ -11036,7 +11036,7 @@ const Va = class Ha {
|
|
|
11036
11036
|
begin() {
|
|
11037
11037
|
this.elementSize = 0, this.elementStart = 0, this.indexSize = 0, this.attributeSize = 0;
|
|
11038
11038
|
for (let t = 0; t < this.batchIndex; t++)
|
|
11039
|
-
|
|
11039
|
+
Lr(this.batches[t]);
|
|
11040
11040
|
this.batchIndex = 0, this._batchIndexStart = 0, this._batchIndexSize = 0, this.dirty = !0;
|
|
11041
11041
|
}
|
|
11042
11042
|
add(t) {
|
|
@@ -11206,7 +11206,7 @@ const Va = class Ha {
|
|
|
11206
11206
|
var e;
|
|
11207
11207
|
if (this.batches !== null) {
|
|
11208
11208
|
for (let s = 0; s < this.batchIndex; s++)
|
|
11209
|
-
|
|
11209
|
+
Lr(this.batches[s]);
|
|
11210
11210
|
this.batches = null, this.geometry.destroy(!0), this.geometry = null, t.shader && ((e = this.shader) == null || e.destroy(), this.shader = null);
|
|
11211
11211
|
for (let s = 0; s < this._elements.length; s++)
|
|
11212
11212
|
this._elements[s] && (this._elements[s]._batch = null);
|
|
@@ -11458,7 +11458,7 @@ class _u extends gu {
|
|
|
11458
11458
|
});
|
|
11459
11459
|
}
|
|
11460
11460
|
}
|
|
11461
|
-
function
|
|
11461
|
+
function Br(i, t, e) {
|
|
11462
11462
|
if (i)
|
|
11463
11463
|
for (const s in i) {
|
|
11464
11464
|
const n = s.toLocaleLowerCase(), r = t[n];
|
|
@@ -11577,7 +11577,7 @@ function $a(i, t) {
|
|
|
11577
11577
|
function ja(i, t, e) {
|
|
11578
11578
|
const s = Fr(i), n = Fr(t);
|
|
11579
11579
|
return e.forEach((r) => {
|
|
11580
|
-
|
|
11580
|
+
Br(r.vertex, s, r.name), Br(r.fragment, n, r.name);
|
|
11581
11581
|
}), {
|
|
11582
11582
|
vertex: Vr(i, s),
|
|
11583
11583
|
fragment: Vr(t, n)
|
|
@@ -11804,7 +11804,7 @@ const Du = {
|
|
|
11804
11804
|
`
|
|
11805
11805
|
)
|
|
11806
11806
|
}
|
|
11807
|
-
},
|
|
11807
|
+
}, Lu = {
|
|
11808
11808
|
name: "color-bit",
|
|
11809
11809
|
vertex: {
|
|
11810
11810
|
header: (
|
|
@@ -11821,7 +11821,7 @@ const Du = {
|
|
|
11821
11821
|
)
|
|
11822
11822
|
}
|
|
11823
11823
|
}, Qs = {};
|
|
11824
|
-
function
|
|
11824
|
+
function Bu(i) {
|
|
11825
11825
|
const t = [];
|
|
11826
11826
|
if (i === 1)
|
|
11827
11827
|
t.push("@group(1) @binding(0) var textureSource1: texture_2d<f32>;"), t.push("@group(1) @binding(1) var textureSampler1: sampler;");
|
|
@@ -11868,7 +11868,7 @@ function Uu(i) {
|
|
|
11868
11868
|
header: `
|
|
11869
11869
|
@in @interpolate(flat) vTextureId: u32;
|
|
11870
11870
|
|
|
11871
|
-
${
|
|
11871
|
+
${Bu(i)}
|
|
11872
11872
|
`,
|
|
11873
11873
|
main: `
|
|
11874
11874
|
var uvDx = dpdx(vUV);
|
|
@@ -11962,7 +11962,7 @@ class zr extends Gn {
|
|
|
11962
11962
|
const e = Nu({
|
|
11963
11963
|
name: "batch",
|
|
11964
11964
|
bits: [
|
|
11965
|
-
|
|
11965
|
+
Lu,
|
|
11966
11966
|
Wu(t),
|
|
11967
11967
|
Hu
|
|
11968
11968
|
]
|
|
@@ -12237,35 +12237,35 @@ function Ju(i, t, e, s, n, r) {
|
|
|
12237
12237
|
const p = n, m = i.length / 2;
|
|
12238
12238
|
let _ = i.length;
|
|
12239
12239
|
const x = p.length / 2, b = a.width / 2, C = b * b, w = a.miterLimit * a.miterLimit;
|
|
12240
|
-
let E = i[0], R = i[1], v = i[2], A = i[3], N = 0, P = 0, k = -(R - A), O = E - v, F = 0, G = 0,
|
|
12241
|
-
k /=
|
|
12242
|
-
const q = l, D = (1 - q) * 2,
|
|
12240
|
+
let E = i[0], R = i[1], v = i[2], A = i[3], N = 0, P = 0, k = -(R - A), O = E - v, F = 0, G = 0, L = Math.sqrt(k * k + O * O);
|
|
12241
|
+
k /= L, O /= L, k *= b, O *= b;
|
|
12242
|
+
const q = l, D = (1 - q) * 2, B = q * 2;
|
|
12243
12243
|
u || (a.cap === "round" ? _ += Ae(
|
|
12244
|
-
E - k * (D -
|
|
12245
|
-
R - O * (D -
|
|
12244
|
+
E - k * (D - B) * 0.5,
|
|
12245
|
+
R - O * (D - B) * 0.5,
|
|
12246
12246
|
E - k * D,
|
|
12247
12247
|
R - O * D,
|
|
12248
|
-
E + k *
|
|
12249
|
-
R + O *
|
|
12248
|
+
E + k * B,
|
|
12249
|
+
R + O * B,
|
|
12250
12250
|
p,
|
|
12251
12251
|
!0
|
|
12252
|
-
) + 2 : a.cap === "square" && (_ += jr(E, R, k, O, D,
|
|
12252
|
+
) + 2 : a.cap === "square" && (_ += jr(E, R, k, O, D, B, !0, p))), p.push(
|
|
12253
12253
|
E - k * D,
|
|
12254
12254
|
R - O * D
|
|
12255
12255
|
), p.push(
|
|
12256
|
-
E + k *
|
|
12257
|
-
R + O *
|
|
12256
|
+
E + k * B,
|
|
12257
|
+
R + O * B
|
|
12258
12258
|
);
|
|
12259
12259
|
for (let U = 1; U < m - 1; ++U) {
|
|
12260
|
-
E = i[(U - 1) * 2], R = i[(U - 1) * 2 + 1], v = i[U * 2], A = i[U * 2 + 1], N = i[(U + 1) * 2], P = i[(U + 1) * 2 + 1], k = -(R - A), O = E - v,
|
|
12260
|
+
E = i[(U - 1) * 2], R = i[(U - 1) * 2 + 1], v = i[U * 2], A = i[U * 2 + 1], N = i[(U + 1) * 2], P = i[(U + 1) * 2 + 1], k = -(R - A), O = E - v, L = Math.sqrt(k * k + O * O), k /= L, O /= L, k *= b, O *= b, F = -(A - P), G = v - N, L = Math.sqrt(F * F + G * G), F /= L, G /= L, F *= b, G *= b;
|
|
12261
12261
|
const z = v - E, $ = R - A, W = v - N, H = P - A, st = z * W + $ * H, ut = $ * W - H * z, V = ut < 0;
|
|
12262
12262
|
if (Math.abs(ut) < 1e-3 * Math.abs(st)) {
|
|
12263
12263
|
p.push(
|
|
12264
12264
|
v - k * D,
|
|
12265
12265
|
A - O * D
|
|
12266
12266
|
), p.push(
|
|
12267
|
-
v + k *
|
|
12268
|
-
A + O *
|
|
12267
|
+
v + k * B,
|
|
12268
|
+
A + O * B
|
|
12269
12269
|
), st >= 0 && (a.join === "round" ? _ += Ae(
|
|
12270
12270
|
v,
|
|
12271
12271
|
A,
|
|
@@ -12276,25 +12276,25 @@ function Ju(i, t, e, s, n, r) {
|
|
|
12276
12276
|
p,
|
|
12277
12277
|
!1
|
|
12278
12278
|
) + 4 : _ += 2, p.push(
|
|
12279
|
-
v - F *
|
|
12280
|
-
A - G *
|
|
12279
|
+
v - F * B,
|
|
12280
|
+
A - G * B
|
|
12281
12281
|
), p.push(
|
|
12282
12282
|
v + F * D,
|
|
12283
12283
|
A + G * D
|
|
12284
12284
|
));
|
|
12285
12285
|
continue;
|
|
12286
12286
|
}
|
|
12287
|
-
const et = (-k + E) * (-O + A) - (-k + v) * (-O + R), ot = (-F + N) * (-G + A) - (-F + v) * (-G + P), Z = (z * ot - W * et) / ut, gt = (H * et - $ * ot) / ut, J = (Z - v) * (Z - v) + (gt - A) * (gt - A), ft = v + (Z - v) * D, It = A + (gt - A) * D, lt = v - (Z - v) *
|
|
12288
|
-
J <= Ts ? a.join === "bevel" || J / C > w ? (V ? (p.push(ft, It), p.push(v + k *
|
|
12287
|
+
const et = (-k + E) * (-O + A) - (-k + v) * (-O + R), ot = (-F + N) * (-G + A) - (-F + v) * (-G + P), Z = (z * ot - W * et) / ut, gt = (H * et - $ * ot) / ut, J = (Z - v) * (Z - v) + (gt - A) * (gt - A), ft = v + (Z - v) * D, It = A + (gt - A) * D, lt = v - (Z - v) * B, Ht = A - (gt - A) * B, As = Math.min(z * z + $ * $, W * W + H * H), Ge = V ? D : B, Ts = As + Ge * Ge * C;
|
|
12288
|
+
J <= Ts ? a.join === "bevel" || J / C > w ? (V ? (p.push(ft, It), p.push(v + k * B, A + O * B), p.push(ft, It), p.push(v + F * B, A + G * B)) : (p.push(v - k * D, A - O * D), p.push(lt, Ht), p.push(v - F * D, A - G * D), p.push(lt, Ht)), _ += 2) : a.join === "round" ? V ? (p.push(ft, It), p.push(v + k * B, A + O * B), _ += Ae(
|
|
12289
12289
|
v,
|
|
12290
12290
|
A,
|
|
12291
|
-
v + k *
|
|
12292
|
-
A + O *
|
|
12293
|
-
v + F *
|
|
12294
|
-
A + G *
|
|
12291
|
+
v + k * B,
|
|
12292
|
+
A + O * B,
|
|
12293
|
+
v + F * B,
|
|
12294
|
+
A + G * B,
|
|
12295
12295
|
p,
|
|
12296
12296
|
!0
|
|
12297
|
-
) + 4, p.push(ft, It), p.push(v + F *
|
|
12297
|
+
) + 4, p.push(ft, It), p.push(v + F * B, A + G * B)) : (p.push(v - k * D, A - O * D), p.push(lt, Ht), _ += Ae(
|
|
12298
12298
|
v,
|
|
12299
12299
|
A,
|
|
12300
12300
|
v - k * D,
|
|
@@ -12303,13 +12303,13 @@ function Ju(i, t, e, s, n, r) {
|
|
|
12303
12303
|
A - G * D,
|
|
12304
12304
|
p,
|
|
12305
12305
|
!1
|
|
12306
|
-
) + 4, p.push(v - F * D, A - G * D), p.push(lt, Ht)) : (p.push(ft, It), p.push(lt, Ht)) : (p.push(v - k * D, A - O * D), p.push(v + k *
|
|
12306
|
+
) + 4, p.push(v - F * D, A - G * D), p.push(lt, Ht)) : (p.push(ft, It), p.push(lt, Ht)) : (p.push(v - k * D, A - O * D), p.push(v + k * B, A + O * B), a.join === "round" ? V ? _ += Ae(
|
|
12307
12307
|
v,
|
|
12308
12308
|
A,
|
|
12309
|
-
v + k *
|
|
12310
|
-
A + O *
|
|
12311
|
-
v + F *
|
|
12312
|
-
A + G *
|
|
12309
|
+
v + k * B,
|
|
12310
|
+
A + O * B,
|
|
12311
|
+
v + F * B,
|
|
12312
|
+
A + G * B,
|
|
12313
12313
|
p,
|
|
12314
12314
|
!0
|
|
12315
12315
|
) + 2 : _ += Ae(
|
|
@@ -12321,18 +12321,18 @@ function Ju(i, t, e, s, n, r) {
|
|
|
12321
12321
|
A - G * D,
|
|
12322
12322
|
p,
|
|
12323
12323
|
!1
|
|
12324
|
-
) + 2 : a.join === "miter" && J / C <= w && (V ? (p.push(lt, Ht), p.push(lt, Ht)) : (p.push(ft, It), p.push(ft, It)), _ += 2), p.push(v - F * D, A - G * D), p.push(v + F *
|
|
12324
|
+
) + 2 : a.join === "miter" && J / C <= w && (V ? (p.push(lt, Ht), p.push(lt, Ht)) : (p.push(ft, It), p.push(ft, It)), _ += 2), p.push(v - F * D, A - G * D), p.push(v + F * B, A + G * B), _ += 2);
|
|
12325
12325
|
}
|
|
12326
|
-
E = i[(m - 2) * 2], R = i[(m - 2) * 2 + 1], v = i[(m - 1) * 2], A = i[(m - 1) * 2 + 1], k = -(R - A), O = E - v,
|
|
12327
|
-
v - k * (D -
|
|
12328
|
-
A - O * (D -
|
|
12326
|
+
E = i[(m - 2) * 2], R = i[(m - 2) * 2 + 1], v = i[(m - 1) * 2], A = i[(m - 1) * 2 + 1], k = -(R - A), O = E - v, L = Math.sqrt(k * k + O * O), k /= L, O /= L, k *= b, O *= b, p.push(v - k * D, A - O * D), p.push(v + k * B, A + O * B), u || (a.cap === "round" ? _ += Ae(
|
|
12327
|
+
v - k * (D - B) * 0.5,
|
|
12328
|
+
A - O * (D - B) * 0.5,
|
|
12329
12329
|
v - k * D,
|
|
12330
12330
|
A - O * D,
|
|
12331
|
-
v + k *
|
|
12332
|
-
A + O *
|
|
12331
|
+
v + k * B,
|
|
12332
|
+
A + O * B,
|
|
12333
12333
|
p,
|
|
12334
12334
|
!1
|
|
12335
|
-
) + 2 : a.cap === "square" && (_ += jr(v, A, k, O, D,
|
|
12335
|
+
) + 2 : a.cap === "square" && (_ += jr(v, A, k, O, D, B, !1, p)));
|
|
12336
12336
|
const tt = $r * $r;
|
|
12337
12337
|
for (let U = x; U < _ + x - 2; ++U)
|
|
12338
12338
|
E = p[U * 2], R = p[U * 2 + 1], v = p[(U + 1) * 2], A = p[(U + 1) * 2 + 1], N = p[(U + 2) * 2], P = p[(U + 2) * 2 + 1], !(Math.abs(E * (A - P) + v * (P - R) + N * (R - A)) < tt) && r.push(U, U + 1, U + 2);
|
|
@@ -12640,7 +12640,7 @@ class fd {
|
|
|
12640
12640
|
}
|
|
12641
12641
|
class pd {
|
|
12642
12642
|
constructor() {
|
|
12643
|
-
this.instructions = new
|
|
12643
|
+
this.instructions = new Bn();
|
|
12644
12644
|
}
|
|
12645
12645
|
init(t) {
|
|
12646
12646
|
const e = t.maxTextures;
|
|
@@ -12924,7 +12924,7 @@ function vd(i, t, e, s, n, r, o, a = 0, l = 0, h = 0) {
|
|
|
12924
12924
|
let R = i[i.length - 2], v = i[i.length - 1];
|
|
12925
12925
|
const A = { x: 0, y: 0 };
|
|
12926
12926
|
for (let N = 0; N < E; N++) {
|
|
12927
|
-
const P = Ed(_, x), { x: k, y: O } = sn(P[0], r, o, u, c, b, C, A), { x: F, y: G } = sn(P[1], r, o, u, c, b, C, A), { x:
|
|
12927
|
+
const P = Ed(_, x), { x: k, y: O } = sn(P[0], r, o, u, c, b, C, A), { x: F, y: G } = sn(P[1], r, o, u, c, b, C, A), { x: L, y: q } = sn(P[2], r, o, u, c, b, C, A);
|
|
12928
12928
|
Ja(
|
|
12929
12929
|
i,
|
|
12930
12930
|
R,
|
|
@@ -12933,9 +12933,9 @@ function vd(i, t, e, s, n, r, o, a = 0, l = 0, h = 0) {
|
|
|
12933
12933
|
O,
|
|
12934
12934
|
F,
|
|
12935
12935
|
G,
|
|
12936
|
-
|
|
12936
|
+
L,
|
|
12937
12937
|
q
|
|
12938
|
-
), R =
|
|
12938
|
+
), R = L, v = q, _ += x;
|
|
12939
12939
|
}
|
|
12940
12940
|
}
|
|
12941
12941
|
function Ad(i, t, e) {
|
|
@@ -13875,7 +13875,7 @@ function Nd(i) {
|
|
|
13875
13875
|
function Dd(i) {
|
|
13876
13876
|
return i.split(/(?=[Mm])/).filter((s) => s.trim().length > 0);
|
|
13877
13877
|
}
|
|
13878
|
-
function
|
|
13878
|
+
function Ld(i) {
|
|
13879
13879
|
const t = i.match(/[-+]?[0-9]*\.?[0-9]+/g);
|
|
13880
13880
|
if (!t || t.length < 4) return 0;
|
|
13881
13881
|
const e = t.map(Number), s = [], n = [];
|
|
@@ -13890,7 +13890,7 @@ function eo(i, t) {
|
|
|
13890
13890
|
for (const s of e.instructions)
|
|
13891
13891
|
t.instructions.push(s);
|
|
13892
13892
|
}
|
|
13893
|
-
function
|
|
13893
|
+
function Bd(i, t) {
|
|
13894
13894
|
if (typeof i == "string") {
|
|
13895
13895
|
const o = document.createElement("div");
|
|
13896
13896
|
o.innerHTML = i.trim(), i = o.querySelector("svg");
|
|
@@ -13919,27 +13919,27 @@ function el(i, t, e, s) {
|
|
|
13919
13919
|
R = i.getAttribute("d");
|
|
13920
13920
|
const P = i.getAttribute("fill-rule"), k = Dd(R), O = P === "evenodd", F = k.length > 1;
|
|
13921
13921
|
if (O && F) {
|
|
13922
|
-
const
|
|
13922
|
+
const L = k.map((D) => ({
|
|
13923
13923
|
path: D,
|
|
13924
|
-
area:
|
|
13924
|
+
area: Ld(D)
|
|
13925
13925
|
}));
|
|
13926
|
-
if (
|
|
13927
|
-
for (let D = 0; D <
|
|
13928
|
-
const
|
|
13926
|
+
if (L.sort((D, B) => B.area - D.area), k.length > 3 || !Nd(L))
|
|
13927
|
+
for (let D = 0; D < L.length; D++) {
|
|
13928
|
+
const B = L[D], tt = D === 0;
|
|
13929
13929
|
t.context.beginPath();
|
|
13930
13930
|
const U = new fe(void 0, !0);
|
|
13931
|
-
eo(
|
|
13931
|
+
eo(B.path, U), t.context.path(U), tt ? (e && t.context.fill(e), s && t.context.stroke(s)) : t.context.cut();
|
|
13932
13932
|
}
|
|
13933
13933
|
else
|
|
13934
|
-
for (let D = 0; D <
|
|
13935
|
-
const
|
|
13934
|
+
for (let D = 0; D < L.length; D++) {
|
|
13935
|
+
const B = L[D], tt = D % 2 === 1;
|
|
13936
13936
|
t.context.beginPath();
|
|
13937
13937
|
const U = new fe(void 0, !0);
|
|
13938
|
-
eo(
|
|
13938
|
+
eo(B.path, U), t.context.path(U), tt ? t.context.cut() : (e && t.context.fill(e), s && t.context.stroke(s));
|
|
13939
13939
|
}
|
|
13940
13940
|
} else {
|
|
13941
|
-
const
|
|
13942
|
-
v = new fe(R,
|
|
13941
|
+
const L = P ? P === "evenodd" : !0;
|
|
13942
|
+
v = new fe(R, L), t.context.path(v), e && t.context.fill(e), s && t.context.stroke(s);
|
|
13943
13943
|
}
|
|
13944
13944
|
break;
|
|
13945
13945
|
}
|
|
@@ -14534,7 +14534,7 @@ const zd = new Dt(), ao = new Q(), Xn = class ne extends oe {
|
|
|
14534
14534
|
* @param svg - The SVG string to be parsed and rendered.
|
|
14535
14535
|
*/
|
|
14536
14536
|
svg(t) {
|
|
14537
|
-
return this._tick++,
|
|
14537
|
+
return this._tick++, Bd(t, this), this;
|
|
14538
14538
|
}
|
|
14539
14539
|
/**
|
|
14540
14540
|
* Restores the most recently saved graphics state by popping the top of the graphics state stack.
|
|
@@ -14764,7 +14764,7 @@ class $d {
|
|
|
14764
14764
|
}
|
|
14765
14765
|
class jd {
|
|
14766
14766
|
constructor() {
|
|
14767
|
-
this.instructions = new
|
|
14767
|
+
this.instructions = new Bn();
|
|
14768
14768
|
}
|
|
14769
14769
|
/**
|
|
14770
14770
|
* Initialize render data.
|
|
@@ -16071,7 +16071,7 @@ class Jd {
|
|
|
16071
16071
|
}
|
|
16072
16072
|
}
|
|
16073
16073
|
const Tn = new Jd();
|
|
16074
|
-
|
|
16074
|
+
Bi.register(Tn);
|
|
16075
16075
|
let Te = null, ce = null;
|
|
16076
16076
|
function Qd(i, t) {
|
|
16077
16077
|
Te || (Te = jt.get().createCanvas(256, 128), ce = Te.getContext("2d", { willReadFrequently: !0 }), ce.globalCompositeOperation = "copy", ce.globalAlpha = 1), (Te.width < i || Te.height < t) && (Te.width = si(i), Te.height = si(t));
|
|
@@ -16580,19 +16580,19 @@ function yf(i, t, e, s, n, r, o, a) {
|
|
|
16580
16580
|
var q, D;
|
|
16581
16581
|
const l = rf(i, t);
|
|
16582
16582
|
if (al(t.whiteSpace))
|
|
16583
|
-
for (let
|
|
16584
|
-
const tt = l[
|
|
16585
|
-
l[
|
|
16583
|
+
for (let B = 0; B < l.length; B++) {
|
|
16584
|
+
const tt = l[B];
|
|
16585
|
+
l[B] = { text: tt.text.replace(mf, " "), style: tt.style };
|
|
16586
16586
|
}
|
|
16587
16587
|
const c = [];
|
|
16588
16588
|
let u = [];
|
|
16589
|
-
for (const
|
|
16590
|
-
const tt =
|
|
16589
|
+
for (const B of l) {
|
|
16590
|
+
const tt = B.text.split(ff);
|
|
16591
16591
|
for (let U = 0; U < tt.length; U++) {
|
|
16592
16592
|
const z = tt[U];
|
|
16593
16593
|
z === `\r
|
|
16594
16594
|
` || z === "\r" || z === `
|
|
16595
|
-
` ? (c.push(u), u = []) : z.length > 0 && u.push({ text: z, style:
|
|
16595
|
+
` ? (c.push(u), u = []) : z.length > 0 && u.push({ text: z, style: B.style });
|
|
16596
16596
|
}
|
|
16597
16597
|
}
|
|
16598
16598
|
(u.length > 0 || c.length === 0) && c.push(u);
|
|
@@ -16608,9 +16608,9 @@ function yf(i, t, e, s, n, r, o, a) {
|
|
|
16608
16608
|
const w = t._fontString, E = r(w);
|
|
16609
16609
|
E.fontSize === 0 && (E.fontSize = t.fontSize, E.ascent = t.fontSize);
|
|
16610
16610
|
let R = "", v = !!t.dropShadow, A = ((q = t._stroke) == null ? void 0 : q.width) || 0;
|
|
16611
|
-
for (const
|
|
16611
|
+
for (const B of g) {
|
|
16612
16612
|
let tt = 0, U = E.ascent, z = E.descent, $ = "";
|
|
16613
|
-
for (const H of
|
|
16613
|
+
for (const H of B) {
|
|
16614
16614
|
const st = H.style._fontString, ut = r(st);
|
|
16615
16615
|
st !== R && (s.font = st, R = st);
|
|
16616
16616
|
const V = n(H.text, H.style.letterSpacing, s);
|
|
@@ -16618,22 +16618,22 @@ function yf(i, t, e, s, n, r, o, a) {
|
|
|
16618
16618
|
const et = ((D = H.style._stroke) == null ? void 0 : D.width) || 0;
|
|
16619
16619
|
et > A && (A = et), !v && H.style.dropShadow && (v = !0);
|
|
16620
16620
|
}
|
|
16621
|
-
|
|
16621
|
+
B.length === 0 && (U = E.ascent, z = E.descent), p.push(tt), m.push(U), _.push(z), b.push($);
|
|
16622
16622
|
const W = t.lineHeight || U + z;
|
|
16623
16623
|
x.push(W + t.leading), C = Math.max(C, tt);
|
|
16624
16624
|
}
|
|
16625
16625
|
const N = A, O = (e && t.align !== "left" ? Math.max(C, t.wordWrapWidth) : C) + N + (t.dropShadow ? t.dropShadow.distance : 0);
|
|
16626
16626
|
let F = 0;
|
|
16627
|
-
for (let
|
|
16628
|
-
F += x[
|
|
16627
|
+
for (let B = 0; B < x.length; B++)
|
|
16628
|
+
F += x[B];
|
|
16629
16629
|
F = Math.max(F, x[0] + N);
|
|
16630
|
-
const G = F + (t.dropShadow ? t.dropShadow.distance : 0),
|
|
16630
|
+
const G = F + (t.dropShadow ? t.dropShadow.distance : 0), L = t.lineHeight || E.fontSize;
|
|
16631
16631
|
return {
|
|
16632
16632
|
width: O,
|
|
16633
16633
|
height: G,
|
|
16634
16634
|
lines: b,
|
|
16635
16635
|
lineWidths: p,
|
|
16636
|
-
lineHeight:
|
|
16636
|
+
lineHeight: L + t.leading,
|
|
16637
16637
|
maxLineWidth: C,
|
|
16638
16638
|
fontProperties: E,
|
|
16639
16639
|
runsByLine: g,
|
|
@@ -16658,18 +16658,18 @@ function _f(i, t, e, s, n, r) {
|
|
|
16658
16658
|
}, _ = [];
|
|
16659
16659
|
for (const b of i) {
|
|
16660
16660
|
const C = xf(b), w = _.length, E = (F) => {
|
|
16661
|
-
let G = 0,
|
|
16661
|
+
let G = 0, L = F;
|
|
16662
16662
|
do {
|
|
16663
|
-
const { token: q, style: D } = C[
|
|
16664
|
-
G += m(q, D),
|
|
16665
|
-
} while (
|
|
16663
|
+
const { token: q, style: D } = C[L];
|
|
16664
|
+
G += m(q, D), L++;
|
|
16665
|
+
} while (L < C.length && C[L].continuesFromPrevious);
|
|
16666
16666
|
return G;
|
|
16667
16667
|
}, R = (F) => {
|
|
16668
16668
|
const G = [];
|
|
16669
|
-
let
|
|
16669
|
+
let L = F;
|
|
16670
16670
|
do
|
|
16671
|
-
G.push({ token: C[
|
|
16672
|
-
while (
|
|
16671
|
+
G.push({ token: C[L].token, style: C[L].style }), L++;
|
|
16672
|
+
while (L < C.length && C[L].continuesFromPrevious);
|
|
16673
16673
|
return G;
|
|
16674
16674
|
};
|
|
16675
16675
|
let v = [], A = 0, N = !c, P = null;
|
|
@@ -16683,14 +16683,14 @@ function _f(i, t, e, s, n, r) {
|
|
|
16683
16683
|
_.push(v), v = [], A = 0, N = !1;
|
|
16684
16684
|
};
|
|
16685
16685
|
for (let F = 0; F < C.length; F++) {
|
|
16686
|
-
const { token: G, style:
|
|
16686
|
+
const { token: G, style: L, continuesFromPrevious: q } = C[F], D = m(G, L);
|
|
16687
16687
|
if (c) {
|
|
16688
16688
|
const U = Xt(G), z = (P == null ? void 0 : P.text[P.text.length - 1]) ?? ((x = v[v.length - 1]) == null ? void 0 : x.text.slice(-1)) ?? "", $ = z ? Xt(z) : !1;
|
|
16689
16689
|
if (U && $)
|
|
16690
16690
|
continue;
|
|
16691
16691
|
}
|
|
16692
|
-
const
|
|
16693
|
-
if (tt > u &&
|
|
16692
|
+
const B = !q, tt = B ? E(F) : D;
|
|
16693
|
+
if (tt > u && B)
|
|
16694
16694
|
if (A > 0 && O(), h) {
|
|
16695
16695
|
const U = R(F);
|
|
16696
16696
|
for (let z = 0; z < U.length; z++) {
|
|
@@ -16710,19 +16710,19 @@ function _f(i, t, e, s, n, r) {
|
|
|
16710
16710
|
const U = R(F);
|
|
16711
16711
|
k(), _.push(U.map((z) => ({ text: z.token, style: z.style }))), N = !1, F += U.length - 1;
|
|
16712
16712
|
}
|
|
16713
|
-
else if (tt + A > u &&
|
|
16713
|
+
else if (tt + A > u && B) {
|
|
16714
16714
|
if (Xt(G)) {
|
|
16715
16715
|
N = !1;
|
|
16716
16716
|
continue;
|
|
16717
16717
|
}
|
|
16718
|
-
O(), P = { text: G, style:
|
|
16718
|
+
O(), P = { text: G, style: L }, A = D;
|
|
16719
16719
|
} else if (q && !h)
|
|
16720
|
-
!P || P.style !==
|
|
16720
|
+
!P || P.style !== L ? (k(), P = { text: G, style: L }) : P.text += G, A += D;
|
|
16721
16721
|
else {
|
|
16722
16722
|
const U = Xt(G);
|
|
16723
16723
|
if (A === 0 && U && !N)
|
|
16724
16724
|
continue;
|
|
16725
|
-
!P || P.style !==
|
|
16725
|
+
!P || P.style !== L ? (k(), P = { text: G, style: L }) : P.text += G, A += D;
|
|
16726
16726
|
}
|
|
16727
16727
|
}
|
|
16728
16728
|
if (k(), v.length > 0) {
|
|
@@ -17252,7 +17252,7 @@ class wf {
|
|
|
17252
17252
|
if (k)
|
|
17253
17253
|
this._setupDropShadow(a, t, s, F);
|
|
17254
17254
|
else {
|
|
17255
|
-
const G = t._gradientBounds,
|
|
17255
|
+
const G = t._gradientBounds, L = t._gradientOffset;
|
|
17256
17256
|
if (G) {
|
|
17257
17257
|
const q = {
|
|
17258
17258
|
width: G.width,
|
|
@@ -17266,26 +17266,26 @@ class wf {
|
|
|
17266
17266
|
q,
|
|
17267
17267
|
e,
|
|
17268
17268
|
E,
|
|
17269
|
-
(
|
|
17270
|
-
(
|
|
17269
|
+
(L == null ? void 0 : L.x) ?? 0,
|
|
17270
|
+
(L == null ? void 0 : L.y) ?? 0
|
|
17271
17271
|
);
|
|
17272
|
-
} else
|
|
17272
|
+
} else L ? this._setFillAndStrokeStyles(
|
|
17273
17273
|
a,
|
|
17274
17274
|
t,
|
|
17275
17275
|
r,
|
|
17276
17276
|
e,
|
|
17277
17277
|
E,
|
|
17278
|
-
|
|
17279
|
-
|
|
17278
|
+
L.x,
|
|
17279
|
+
L.y
|
|
17280
17280
|
) : this._setFillAndStrokeStyles(a, t, r, e, E);
|
|
17281
17281
|
a.shadowColor = "rgba(0,0,0,0)";
|
|
17282
17282
|
}
|
|
17283
17283
|
for (let G = 0; G < h.length; G++) {
|
|
17284
17284
|
_ = E, x = E + G * c + p.ascent + R, _ += this._getAlignmentOffset(u[G], C, t.align);
|
|
17285
|
-
let
|
|
17285
|
+
let L = 0;
|
|
17286
17286
|
if (t.align === "justify" && t.wordWrap && G < h.length - 1) {
|
|
17287
17287
|
const q = He(h[G]);
|
|
17288
|
-
q > 0 && (
|
|
17288
|
+
q > 0 && (L = (C - u[G]) / q);
|
|
17289
17289
|
}
|
|
17290
17290
|
(N = t._stroke) != null && N.width && this._drawLetterSpacing(
|
|
17291
17291
|
h[G],
|
|
@@ -17294,7 +17294,7 @@ class wf {
|
|
|
17294
17294
|
_ + e,
|
|
17295
17295
|
x + e - O,
|
|
17296
17296
|
!0,
|
|
17297
|
-
|
|
17297
|
+
L
|
|
17298
17298
|
), t._fill !== void 0 && this._drawLetterSpacing(
|
|
17299
17299
|
h[G],
|
|
17300
17300
|
t,
|
|
@@ -17302,7 +17302,7 @@ class wf {
|
|
|
17302
17302
|
_ + e,
|
|
17303
17303
|
x + e - O,
|
|
17304
17304
|
!1,
|
|
17305
|
-
|
|
17305
|
+
L
|
|
17306
17306
|
);
|
|
17307
17307
|
}
|
|
17308
17308
|
}
|
|
@@ -17343,20 +17343,20 @@ class wf {
|
|
|
17343
17343
|
N || (a.shadowColor = "rgba(0,0,0,0)");
|
|
17344
17344
|
let O = C;
|
|
17345
17345
|
for (let F = 0; F < l.length; F++) {
|
|
17346
|
-
const G = l[F],
|
|
17346
|
+
const G = l[F], L = h[F], q = u[F], D = g[F], B = w[F];
|
|
17347
17347
|
let tt = C;
|
|
17348
|
-
tt += this._getAlignmentOffset(
|
|
17348
|
+
tt += this._getAlignmentOffset(L, x, e.align);
|
|
17349
17349
|
let U = 0;
|
|
17350
17350
|
if (e.align === "justify" && e.wordWrap && F < l.length - 1) {
|
|
17351
17351
|
let W = 0;
|
|
17352
17352
|
for (const H of G)
|
|
17353
17353
|
W += He(H.text);
|
|
17354
|
-
W > 0 && (U = (x -
|
|
17354
|
+
W > 0 && (U = (x - L) / W);
|
|
17355
17355
|
}
|
|
17356
17356
|
const z = O + q;
|
|
17357
17357
|
let $ = tt + s;
|
|
17358
17358
|
for (let W = 0; W < G.length; W++) {
|
|
17359
|
-
const H = G[W], { width: st, font: ut } =
|
|
17359
|
+
const H = G[W], { width: st, font: ut } = B[W];
|
|
17360
17360
|
if (a.font = ut, a.textBaseline = H.style.textBaseline, (v = H.style._stroke) != null && v.width) {
|
|
17361
17361
|
const et = H.style._stroke;
|
|
17362
17362
|
if (a.lineWidth = et.width, a.miterLimit = et.miterLimit, a.lineJoin = et.join, a.lineCap = et.cap, N)
|
|
@@ -17403,7 +17403,7 @@ class wf {
|
|
|
17403
17403
|
}
|
|
17404
17404
|
$ = tt + s;
|
|
17405
17405
|
for (let W = 0; W < G.length; W++) {
|
|
17406
|
-
const H = G[W], { width: st, font: ut } =
|
|
17406
|
+
const H = G[W], { width: st, font: ut } = B[W];
|
|
17407
17407
|
if (a.font = ut, a.textBaseline = H.style.textBaseline, H.style._fill !== void 0) {
|
|
17408
17408
|
if (N)
|
|
17409
17409
|
if (H.style.dropShadow)
|
|
@@ -18388,7 +18388,7 @@ class Of {
|
|
|
18388
18388
|
* Load from a static image instead of video (fallback).
|
|
18389
18389
|
*/
|
|
18390
18390
|
async loadIdleImage(t) {
|
|
18391
|
-
const e = at.from(t), s = new
|
|
18391
|
+
const e = at.from(t), s = new Be(e);
|
|
18392
18392
|
s.width = Si, s.height = le, s.anchor.set(0.5, 1), this.idleGroup = new qt(), this.idleGroup.addChild(s), this.container.addChild(this.idleGroup), this.container.x = this.stageWidth / 2, this.container.y = this.stageHeight + le;
|
|
18393
18393
|
}
|
|
18394
18394
|
/** Slide the avatar up into view. */
|
|
@@ -18438,7 +18438,7 @@ class Of {
|
|
|
18438
18438
|
const s = () => {
|
|
18439
18439
|
var l;
|
|
18440
18440
|
const n = at.from(t);
|
|
18441
|
-
this.liveSprite = new
|
|
18441
|
+
this.liveSprite = new Be(n);
|
|
18442
18442
|
const r = t.videoWidth || 1, o = t.videoHeight || 1, a = go / r;
|
|
18443
18443
|
this.liveSprite.width = go, this.liveSprite.height = o * a, this.liveSprite.anchor.set(0.5, 1), this.liveSprite.alpha = 0, this.container.addChild(this.liveSprite), this.idleVideoEl && (this.idleVideoEl.style.display = "none"), this.idleGroup && (this.idleGroup.visible = !1), (l = this.cancelGlow) == null || l.call(this), this.cancelGlow = null, Ie({
|
|
18444
18444
|
target: this.liveSprite,
|
|
@@ -18476,7 +18476,7 @@ class Of {
|
|
|
18476
18476
|
(t = this.cancelGlow) == null || t.call(this), (e = this.cancelEntrance) == null || e.call(this), this.idleVideoEl && (this.idleVideoEl.pause(), this.idleVideoEl.remove()), this.container.destroy({ children: !0 });
|
|
18477
18477
|
}
|
|
18478
18478
|
}
|
|
18479
|
-
const nn = 18, mo = 12, Nf = 20, Df = 240, es = 14,
|
|
18479
|
+
const nn = 18, mo = 12, Nf = 20, Df = 240, es = 14, Lf = 35, Bf = 2500, is = 300, Ff = 16777215, Uf = 13160666, Gf = 1.5, Wf = 3820124, Vf = 0.1, Hf = [];
|
|
18480
18480
|
class zf {
|
|
18481
18481
|
constructor(t, e) {
|
|
18482
18482
|
this.promptIndex = 0, this.charIndex = 0, this.phase = "idle", this.phaseElapsed = 0, this.cancelFade = null, this.tickCb = null, this.running = !1, this.ticker = t, this.prompts = e != null && e.length ? e : Hf, this.container = new qt(), this.container.alpha = 0, this.container.visible = !1, this.bg = new fs(), this.container.addChild(this.bg), this.label = new Mf({
|
|
@@ -18542,11 +18542,11 @@ class zf {
|
|
|
18542
18542
|
if (this.phase === "typing") {
|
|
18543
18543
|
this.phaseElapsed += t;
|
|
18544
18544
|
const s = this.prompts[this.promptIndex], n = Math.min(
|
|
18545
|
-
Math.floor(this.phaseElapsed /
|
|
18545
|
+
Math.floor(this.phaseElapsed / Lf),
|
|
18546
18546
|
s.length
|
|
18547
18547
|
);
|
|
18548
18548
|
n !== this.charIndex && (this.charIndex = n, this.label.text = s.substring(0, this.charIndex), this.drawBubble()), this.charIndex >= s.length && (this.phase = "holding", this.phaseElapsed = 0);
|
|
18549
|
-
} else this.phase === "holding" && (this.phaseElapsed += t, this.phaseElapsed >=
|
|
18549
|
+
} else this.phase === "holding" && (this.phaseElapsed += t, this.phaseElapsed >= Bf && (this.phase = "fading", this.phaseElapsed = 0, (e = this.cancelFade) == null || e.call(this), this.cancelFade = Ie({
|
|
18550
18550
|
target: this.container,
|
|
18551
18551
|
props: { alpha: 0 },
|
|
18552
18552
|
duration: is,
|
|
@@ -19178,9 +19178,9 @@ function ip() {
|
|
|
19178
19178
|
return U(this, d, f);
|
|
19179
19179
|
case "utf8":
|
|
19180
19180
|
case "utf-8":
|
|
19181
|
-
return B(this, d, f);
|
|
19182
|
-
case "ascii":
|
|
19183
19181
|
return L(this, d, f);
|
|
19182
|
+
case "ascii":
|
|
19183
|
+
return B(this, d, f);
|
|
19184
19184
|
case "latin1":
|
|
19185
19185
|
case "binary":
|
|
19186
19186
|
return tt(this, d, f);
|
|
@@ -19224,7 +19224,7 @@ function ip() {
|
|
|
19224
19224
|
return this;
|
|
19225
19225
|
}, a.prototype.toString = function() {
|
|
19226
19226
|
const d = this.length;
|
|
19227
|
-
return d === 0 ? "" : arguments.length === 0 ?
|
|
19227
|
+
return d === 0 ? "" : arguments.length === 0 ? L(this, 0, d) : E.apply(this, arguments);
|
|
19228
19228
|
}, a.prototype.toLocaleString = a.prototype.toString, a.prototype.equals = function(d) {
|
|
19229
19229
|
if (!a.isBuffer(d)) throw new TypeError("Argument must be a Buffer");
|
|
19230
19230
|
return this === d ? !0 : a.compare(this, d) === 0;
|
|
@@ -19379,7 +19379,7 @@ function ip() {
|
|
|
19379
19379
|
function G(y, d, f) {
|
|
19380
19380
|
return d === 0 && f === y.length ? t.fromByteArray(y) : t.fromByteArray(y.slice(d, f));
|
|
19381
19381
|
}
|
|
19382
|
-
function
|
|
19382
|
+
function L(y, d, f) {
|
|
19383
19383
|
f = Math.min(y.length, f);
|
|
19384
19384
|
const S = [];
|
|
19385
19385
|
let I = d;
|
|
@@ -19419,7 +19419,7 @@ function ip() {
|
|
|
19419
19419
|
);
|
|
19420
19420
|
return f;
|
|
19421
19421
|
}
|
|
19422
|
-
function
|
|
19422
|
+
function B(y, d, f) {
|
|
19423
19423
|
let S = "";
|
|
19424
19424
|
f = Math.min(y.length, f);
|
|
19425
19425
|
for (let I = d; I < f; ++I)
|
|
@@ -20554,10 +20554,10 @@ class Sp {
|
|
|
20554
20554
|
});
|
|
20555
20555
|
}
|
|
20556
20556
|
}
|
|
20557
|
-
var
|
|
20557
|
+
var Lt;
|
|
20558
20558
|
(function(i) {
|
|
20559
20559
|
i[i.UNSTARTED = 0] = "UNSTARTED", i[i.STREAMING = 1] = "STREAMING", i[i.INTERRUPTED = 2] = "INTERRUPTED", i[i.ENDED = 3] = "ENDED";
|
|
20560
|
-
})(
|
|
20560
|
+
})(Lt || (Lt = {}));
|
|
20561
20561
|
var on = function(i, t, e, s) {
|
|
20562
20562
|
function n(r) {
|
|
20563
20563
|
return r instanceof e ? r : new e(function(o) {
|
|
@@ -20587,23 +20587,23 @@ var on = function(i, t, e, s) {
|
|
|
20587
20587
|
};
|
|
20588
20588
|
class wp {
|
|
20589
20589
|
constructor(t, e, s) {
|
|
20590
|
-
this.state =
|
|
20590
|
+
this.state = Lt.UNSTARTED, this.correlationId = t, this.internalEventEmitter = e, this.signallingClient = s, this.internalEventEmitter.addListener(Tt.SIGNAL_MESSAGE_RECEIVED, this.onSignalMessage.bind(this));
|
|
20591
20591
|
}
|
|
20592
20592
|
onDeactivate() {
|
|
20593
20593
|
this.internalEventEmitter.removeListener(Tt.SIGNAL_MESSAGE_RECEIVED, this.onSignalMessage.bind(this));
|
|
20594
20594
|
}
|
|
20595
20595
|
onSignalMessage(t) {
|
|
20596
20596
|
return on(this, void 0, void 0, function* () {
|
|
20597
|
-
t.actionType === Nt.TALK_STREAM_INTERRUPTED && t.payload.correlationId === this.correlationId && (this.state =
|
|
20597
|
+
t.actionType === Nt.TALK_STREAM_INTERRUPTED && t.payload.correlationId === this.correlationId && (this.state = Lt.INTERRUPTED, this.onDeactivate());
|
|
20598
20598
|
});
|
|
20599
20599
|
}
|
|
20600
20600
|
endMessage() {
|
|
20601
20601
|
return on(this, void 0, void 0, function* () {
|
|
20602
|
-
if (this.state ===
|
|
20602
|
+
if (this.state === Lt.ENDED) {
|
|
20603
20603
|
console.warn("Talk stream is already ended via end of speech. No need to call endMessage.");
|
|
20604
20604
|
return;
|
|
20605
20605
|
}
|
|
20606
|
-
if (this.state !==
|
|
20606
|
+
if (this.state !== Lt.STREAMING) {
|
|
20607
20607
|
console.warn("Talk stream is not active state: " + this.state);
|
|
20608
20608
|
return;
|
|
20609
20609
|
}
|
|
@@ -20613,27 +20613,27 @@ class wp {
|
|
|
20613
20613
|
endOfSpeech: !0,
|
|
20614
20614
|
correlationId: this.correlationId
|
|
20615
20615
|
};
|
|
20616
|
-
yield this.signallingClient.sendTalkMessage(t), this.state =
|
|
20616
|
+
yield this.signallingClient.sendTalkMessage(t), this.state = Lt.ENDED, this.onDeactivate();
|
|
20617
20617
|
});
|
|
20618
20618
|
}
|
|
20619
20619
|
streamMessageChunk(t, e) {
|
|
20620
20620
|
return on(this, void 0, void 0, function* () {
|
|
20621
|
-
if (this.state !==
|
|
20621
|
+
if (this.state !== Lt.STREAMING && this.state !== Lt.UNSTARTED)
|
|
20622
20622
|
throw new Error("Talk stream is not in an active state: " + this.state);
|
|
20623
20623
|
const s = {
|
|
20624
20624
|
content: t,
|
|
20625
|
-
startOfSpeech: this.state ===
|
|
20625
|
+
startOfSpeech: this.state === Lt.UNSTARTED,
|
|
20626
20626
|
endOfSpeech: e,
|
|
20627
20627
|
correlationId: this.correlationId
|
|
20628
20628
|
};
|
|
20629
|
-
this.state = e ?
|
|
20629
|
+
this.state = e ? Lt.ENDED : Lt.STREAMING, this.state === Lt.ENDED && this.onDeactivate(), yield this.signallingClient.sendTalkMessage(s);
|
|
20630
20630
|
});
|
|
20631
20631
|
}
|
|
20632
20632
|
getCorrelationId() {
|
|
20633
20633
|
return this.correlationId;
|
|
20634
20634
|
}
|
|
20635
20635
|
isActive() {
|
|
20636
|
-
return this.state ===
|
|
20636
|
+
return this.state === Lt.STREAMING || this.state === Lt.UNSTARTED;
|
|
20637
20637
|
}
|
|
20638
20638
|
getState() {
|
|
20639
20639
|
return this.state;
|
|
@@ -21633,7 +21633,7 @@ const Mp = (i, t) => new Rp(i, void 0, t);
|
|
|
21633
21633
|
let wo = 0;
|
|
21634
21634
|
class kp {
|
|
21635
21635
|
constructor(t) {
|
|
21636
|
-
this.onVideoReady = null, this.onConnected = null, this.onDisconnected = null, this.onTalkStreamInterrupted = null, this.onError = null, this.audioInputStream = null, this.videoElement = null, this.videoWrapper = null, this._connected = !1, this._closing = !1, this.client = Mp(t.sessionToken, {
|
|
21636
|
+
this.onVideoReady = null, this.onConnected = null, this.onDisconnected = null, this.onTalkStreamInterrupted = null, this.onError = null, this.audioInputStream = null, this.videoElement = null, this.videoWrapper = null, this._clipPathInterval = null, this._connected = !1, this._closing = !1, this.client = Mp(t.sessionToken, {
|
|
21637
21637
|
disableInputAudio: !0,
|
|
21638
21638
|
metrics: { disableClientMetrics: !0 }
|
|
21639
21639
|
});
|
|
@@ -21651,10 +21651,6 @@ class kp {
|
|
|
21651
21651
|
var t;
|
|
21652
21652
|
try {
|
|
21653
21653
|
const e = `anam-avatar-video-${++wo}`;
|
|
21654
|
-
if (!document.getElementById("hs-avatar-clip")) {
|
|
21655
|
-
const s = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
21656
|
-
s.setAttribute("width", "0"), s.setAttribute("height", "0"), s.style.position = "absolute", s.id = "hs-avatar-clip", s.innerHTML = '<defs><clipPath id="hs-rounded-top" clipPathUnits="objectBoundingBox"><path d="M0.057,0 H0.943 Q1,0 1,0.04 V1 H0 V0.04 Q0,0 0.057,0 Z"/></clipPath></defs>', document.body.appendChild(s);
|
|
21657
|
-
}
|
|
21658
21654
|
this.videoWrapper = document.createElement("div"), this.videoWrapper.id = `anam-avatar-wrapper-${wo}`, this.videoWrapper.style.cssText = `
|
|
21659
21655
|
position: fixed;
|
|
21660
21656
|
bottom: 0;
|
|
@@ -21668,19 +21664,23 @@ class kp {
|
|
|
21668
21664
|
width: 100%;
|
|
21669
21665
|
height: auto;
|
|
21670
21666
|
display: block;
|
|
21671
|
-
clip-path:
|
|
21672
|
-
`, this.videoWrapper.appendChild(this.videoElement), document.body.appendChild(this.videoWrapper)
|
|
21673
|
-
|
|
21674
|
-
|
|
21667
|
+
clip-path: inset(0 round 16px 16px 0 0);
|
|
21668
|
+
`, this.videoWrapper.appendChild(this.videoElement), document.body.appendChild(this.videoWrapper);
|
|
21669
|
+
const s = () => {
|
|
21670
|
+
this.videoElement && (this.videoElement.style.clipPath = "inset(0 round 16px 16px 0 0)");
|
|
21671
|
+
};
|
|
21672
|
+
this._clipPathInterval = setInterval(s, 500), this.client.addListener(Y.CONNECTION_ESTABLISHED, () => {
|
|
21673
|
+
var n;
|
|
21674
|
+
console.log("[AnamSession] Connection established"), this._connected = !0, (n = this.onConnected) == null || n.call(this);
|
|
21675
21675
|
}), this.client.addListener(Y.VIDEO_PLAY_STARTED, () => {
|
|
21676
|
-
var
|
|
21677
|
-
console.log("[AnamSession] Video playing"), this.videoElement && (this.videoWrapper && (this.videoWrapper.style.display = ""), this.videoElement && (this.videoElement.style.clipPath = "
|
|
21676
|
+
var n;
|
|
21677
|
+
console.log("[AnamSession] Video playing"), this.videoElement && (this.videoWrapper && (this.videoWrapper.style.display = ""), this.videoElement && (this.videoElement.style.clipPath = "inset(0 round 16px 16px 0 0)"), (n = this.onVideoReady) == null || n.call(this, this.videoElement));
|
|
21678
21678
|
}), this.client.addListener(Y.TALK_STREAM_INTERRUPTED, () => {
|
|
21679
|
-
var s;
|
|
21680
|
-
console.log("[AnamSession] Talk stream interrupted"), (s = this.onTalkStreamInterrupted) == null || s.call(this);
|
|
21681
|
-
}), this.client.addListener(Y.CONNECTION_CLOSED, (s) => {
|
|
21682
21679
|
var n;
|
|
21683
|
-
console.log("[AnamSession]
|
|
21680
|
+
console.log("[AnamSession] Talk stream interrupted"), (n = this.onTalkStreamInterrupted) == null || n.call(this);
|
|
21681
|
+
}), this.client.addListener(Y.CONNECTION_CLOSED, (n) => {
|
|
21682
|
+
var r;
|
|
21683
|
+
console.log("[AnamSession] Connection closed:", n), this._connected = !1, (r = this.onDisconnected) == null || r.call(this, String(n));
|
|
21684
21684
|
}), await this.client.streamToVideoElement(e), this.audioInputStream = this.client.createAgentAudioInputStream({
|
|
21685
21685
|
encoding: "pcm_s16le",
|
|
21686
21686
|
sampleRate: 24e3,
|
|
@@ -21715,7 +21715,7 @@ class kp {
|
|
|
21715
21715
|
/** Close everything. */
|
|
21716
21716
|
close() {
|
|
21717
21717
|
if (!this._closing) {
|
|
21718
|
-
this._closing = !0, console.log("[AnamSession] Closing...");
|
|
21718
|
+
this._closing = !0, console.log("[AnamSession] Closing..."), this._clipPathInterval && (clearInterval(this._clipPathInterval), this._clipPathInterval = null);
|
|
21719
21719
|
try {
|
|
21720
21720
|
this.client.stopStreaming();
|
|
21721
21721
|
} catch {
|
|
@@ -21766,7 +21766,7 @@ const Pp = /* @__PURE__ */ new Set([
|
|
|
21766
21766
|
"checked",
|
|
21767
21767
|
"aria-expanded"
|
|
21768
21768
|
];
|
|
21769
|
-
class
|
|
21769
|
+
class Lp {
|
|
21770
21770
|
constructor() {
|
|
21771
21771
|
this.elementMap = /* @__PURE__ */ new Map();
|
|
21772
21772
|
}
|
|
@@ -21842,7 +21842,7 @@ class Bp {
|
|
|
21842
21842
|
return e.join(" ");
|
|
21843
21843
|
}
|
|
21844
21844
|
}
|
|
21845
|
-
const
|
|
21845
|
+
const Bp = /* @__PURE__ */ new Set(["scroll_to", "click", "highlight"]);
|
|
21846
21846
|
class Fp {
|
|
21847
21847
|
constructor(t) {
|
|
21848
21848
|
this.onToolCall = null, this.fnArgBufs = /* @__PURE__ */ new Map(), this.fnNames = /* @__PURE__ */ new Map(), this.fnCallIds = /* @__PURE__ */ new Map(), this.realtimeSession = t.realtimeSession, this.domAnalyzer = t.domAnalyzer, this.pageActions = t.pageActions, this.overlayActions = t.overlayActions, this.confirmationPrompt = t.confirmationPrompt, this.staffId = t.staffId, this.backendUrl = t.backendUrl;
|
|
@@ -21927,7 +21927,7 @@ class Fp {
|
|
|
21927
21927
|
o.push({ action: "describe", status: "ok", description: a.description });
|
|
21928
21928
|
continue;
|
|
21929
21929
|
}
|
|
21930
|
-
if (
|
|
21930
|
+
if (Bp.has(a.action) && !await this.confirmationPrompt.ask(
|
|
21931
21931
|
`${a.description}?`
|
|
21932
21932
|
)) {
|
|
21933
21933
|
o.push({
|
|
@@ -22823,20 +22823,20 @@ function bg(i, t) {
|
|
|
22823
22823
|
}
|
|
22824
22824
|
if (C === "img" && u) {
|
|
22825
22825
|
Ye || (Ye = e.createElement("canvas"), Io = Ye.getContext("2d"));
|
|
22826
|
-
var
|
|
22827
|
-
|
|
22826
|
+
var L = i, q = L.crossOrigin;
|
|
22827
|
+
L.crossOrigin = "anonymous";
|
|
22828
22828
|
var D = function() {
|
|
22829
22829
|
try {
|
|
22830
|
-
Ye.width =
|
|
22830
|
+
Ye.width = L.naturalWidth, Ye.height = L.naturalHeight, Io.drawImage(L, 0, 0), w.rr_dataURL = Ye.toDataURL(c.type, c.quality);
|
|
22831
22831
|
} catch (z) {
|
|
22832
|
-
console.warn("Cannot inline img src=".concat(
|
|
22832
|
+
console.warn("Cannot inline img src=".concat(L.currentSrc, "! Error: ").concat(z));
|
|
22833
22833
|
}
|
|
22834
|
-
q ? w.crossOrigin = q :
|
|
22834
|
+
q ? w.crossOrigin = q : L.removeAttribute("crossorigin");
|
|
22835
22835
|
};
|
|
22836
|
-
|
|
22836
|
+
L.complete && L.naturalWidth !== 0 ? D() : L.onload = D;
|
|
22837
22837
|
}
|
|
22838
22838
|
if ((C === "audio" || C === "video") && (w.rr_mediaState = i.paused ? "paused" : "played", w.rr_mediaCurrentTime = i.currentTime), _ || (i.scrollLeft && (w.rr_scrollLeft = i.scrollLeft), i.scrollTop && (w.rr_scrollTop = i.scrollTop)), b) {
|
|
22839
|
-
var
|
|
22839
|
+
var B = i.getBoundingClientRect(), tt = B.width, U = B.height;
|
|
22840
22840
|
w = {
|
|
22841
22841
|
class: w.class,
|
|
22842
22842
|
rr_width: "".concat(tt, "px"),
|
|
@@ -22882,9 +22882,9 @@ function Cg(i, t) {
|
|
|
22882
22882
|
return !1;
|
|
22883
22883
|
}
|
|
22884
22884
|
function ei(i, t) {
|
|
22885
|
-
var e = t.doc, s = t.mirror, n = t.blockClass, r = t.blockSelector, o = t.maskTextClass, a = t.maskTextSelector, l = t.skipChild, h = l === void 0 ? !1 : l, c = t.inlineStylesheet, u = c === void 0 ? !0 : c, g = t.maskInputOptions, p = g === void 0 ? {} : g, m = t.maskTextFn, _ = t.maskInputFn, x = t.slimDOMOptions, b = t.dataURLOptions, C = b === void 0 ? {} : b, w = t.inlineImages, E = w === void 0 ? !1 : w, R = t.recordCanvas, v = R === void 0 ? !1 : R, A = t.onSerialize, N = t.onIframeLoad, P = t.iframeLoadTimeout, k = P === void 0 ? 5e3 : P, O = t.onStylesheetLoad, F = t.stylesheetLoadTimeout, G = F === void 0 ? 5e3 : F,
|
|
22885
|
+
var e = t.doc, s = t.mirror, n = t.blockClass, r = t.blockSelector, o = t.maskTextClass, a = t.maskTextSelector, l = t.skipChild, h = l === void 0 ? !1 : l, c = t.inlineStylesheet, u = c === void 0 ? !0 : c, g = t.maskInputOptions, p = g === void 0 ? {} : g, m = t.maskTextFn, _ = t.maskInputFn, x = t.slimDOMOptions, b = t.dataURLOptions, C = b === void 0 ? {} : b, w = t.inlineImages, E = w === void 0 ? !1 : w, R = t.recordCanvas, v = R === void 0 ? !1 : R, A = t.onSerialize, N = t.onIframeLoad, P = t.iframeLoadTimeout, k = P === void 0 ? 5e3 : P, O = t.onStylesheetLoad, F = t.stylesheetLoadTimeout, G = F === void 0 ? 5e3 : F, L = t.keepIframeSrcFn, q = L === void 0 ? function() {
|
|
22886
22886
|
return !1;
|
|
22887
|
-
} :
|
|
22887
|
+
} : L, D = t.newlyAddedElement, B = D === void 0 ? !1 : D, tt = t.preserveWhiteSpace, U = tt === void 0 ? !0 : tt, z = yg(i, {
|
|
22888
22888
|
doc: e,
|
|
22889
22889
|
mirror: s,
|
|
22890
22890
|
blockClass: n,
|
|
@@ -22899,7 +22899,7 @@ function ei(i, t) {
|
|
|
22899
22899
|
inlineImages: E,
|
|
22900
22900
|
recordCanvas: v,
|
|
22901
22901
|
keepIframeSrcFn: q,
|
|
22902
|
-
newlyAddedElement:
|
|
22902
|
+
newlyAddedElement: B
|
|
22903
22903
|
});
|
|
22904
22904
|
if (!z)
|
|
22905
22905
|
return console.warn(i, "not serialized"), null;
|
|
@@ -23010,7 +23010,7 @@ function ei(i, t) {
|
|
|
23010
23010
|
}, G), W;
|
|
23011
23011
|
}
|
|
23012
23012
|
function Sg(i, t) {
|
|
23013
|
-
var e = t || {}, s = e.mirror, n = s === void 0 ? new bl() : s, r = e.blockClass, o = r === void 0 ? "rr-block" : r, a = e.blockSelector, l = a === void 0 ? null : a, h = e.maskTextClass, c = h === void 0 ? "rr-mask" : h, u = e.maskTextSelector, g = u === void 0 ? null : u, p = e.inlineStylesheet, m = p === void 0 ? !0 : p, _ = e.inlineImages, x = _ === void 0 ? !1 : _, b = e.recordCanvas, C = b === void 0 ? !1 : b, w = e.maskAllInputs, E = w === void 0 ? !1 : w, R = e.maskTextFn, v = e.maskInputFn, A = e.slimDOM, N = A === void 0 ? !1 : A, P = e.dataURLOptions, k = e.preserveWhiteSpace, O = e.onSerialize, F = e.onIframeLoad, G = e.iframeLoadTimeout,
|
|
23013
|
+
var e = t || {}, s = e.mirror, n = s === void 0 ? new bl() : s, r = e.blockClass, o = r === void 0 ? "rr-block" : r, a = e.blockSelector, l = a === void 0 ? null : a, h = e.maskTextClass, c = h === void 0 ? "rr-mask" : h, u = e.maskTextSelector, g = u === void 0 ? null : u, p = e.inlineStylesheet, m = p === void 0 ? !0 : p, _ = e.inlineImages, x = _ === void 0 ? !1 : _, b = e.recordCanvas, C = b === void 0 ? !1 : b, w = e.maskAllInputs, E = w === void 0 ? !1 : w, R = e.maskTextFn, v = e.maskInputFn, A = e.slimDOM, N = A === void 0 ? !1 : A, P = e.dataURLOptions, k = e.preserveWhiteSpace, O = e.onSerialize, F = e.onIframeLoad, G = e.iframeLoadTimeout, L = e.onStylesheetLoad, q = e.stylesheetLoadTimeout, D = e.keepIframeSrcFn, B = D === void 0 ? function() {
|
|
23014
23014
|
return !1;
|
|
23015
23015
|
} : D, tt = E === !0 ? {
|
|
23016
23016
|
color: !0,
|
|
@@ -23063,13 +23063,13 @@ function Sg(i, t) {
|
|
|
23063
23063
|
onSerialize: O,
|
|
23064
23064
|
onIframeLoad: F,
|
|
23065
23065
|
iframeLoadTimeout: G,
|
|
23066
|
-
onStylesheetLoad:
|
|
23066
|
+
onStylesheetLoad: L,
|
|
23067
23067
|
stylesheetLoadTimeout: q,
|
|
23068
|
-
keepIframeSrcFn:
|
|
23068
|
+
keepIframeSrcFn: B,
|
|
23069
23069
|
newlyAddedElement: !1
|
|
23070
23070
|
});
|
|
23071
23071
|
}
|
|
23072
|
-
function
|
|
23072
|
+
function Bt(i, t, e = document) {
|
|
23073
23073
|
const s = { capture: !0, passive: !0 };
|
|
23074
23074
|
return e.addEventListener(i, t, s), () => e.removeEventListener(i, t, s);
|
|
23075
23075
|
}
|
|
@@ -23099,7 +23099,7 @@ typeof window < "u" && window.Proxy && window.Reflect && (vo = new Proxy(vo, {
|
|
|
23099
23099
|
return t === "map" && console.error(Ke), Reflect.get(i, t, e);
|
|
23100
23100
|
}
|
|
23101
23101
|
}));
|
|
23102
|
-
function
|
|
23102
|
+
function Li(i, t, e = {}) {
|
|
23103
23103
|
let s = null, n = 0;
|
|
23104
23104
|
return function(...r) {
|
|
23105
23105
|
const o = Date.now();
|
|
@@ -23508,7 +23508,7 @@ function Pl(i, t) {
|
|
|
23508
23508
|
const { parentNode: e } = t;
|
|
23509
23509
|
return e ? i.has(e) ? !0 : Pl(i, e) : !1;
|
|
23510
23510
|
}
|
|
23511
|
-
const
|
|
23511
|
+
const Le = [], Ol = typeof CSSGroupingRule < "u", Nl = typeof CSSMediaRule < "u", Dl = typeof CSSSupportsRule < "u", Ll = typeof CSSConditionRule < "u";
|
|
23512
23512
|
function Ui(i) {
|
|
23513
23513
|
try {
|
|
23514
23514
|
if ("composedPath" in i) {
|
|
@@ -23522,10 +23522,10 @@ function Ui(i) {
|
|
|
23522
23522
|
return i.target;
|
|
23523
23523
|
}
|
|
23524
23524
|
}
|
|
23525
|
-
function
|
|
23525
|
+
function Bl(i, t) {
|
|
23526
23526
|
var e, s;
|
|
23527
23527
|
const n = new Ag();
|
|
23528
|
-
|
|
23528
|
+
Le.push(n), n.init(i);
|
|
23529
23529
|
let r = window.MutationObserver || window.__rrMutationObserver;
|
|
23530
23530
|
const o = (s = (e = window == null ? void 0 : window.Zone) === null || e === void 0 ? void 0 : e.__symbol__) === null || s === void 0 ? void 0 : s.call(e, "MutationObserver");
|
|
23531
23531
|
o && window[o] && (r = window[o]);
|
|
@@ -23545,10 +23545,10 @@ function Tg({ mousemoveCb: i, sampling: t, doc: e, mirror: s }) {
|
|
|
23545
23545
|
};
|
|
23546
23546
|
const n = typeof t.mousemove == "number" ? t.mousemove : 50, r = typeof t.mousemoveCallback == "number" ? t.mousemoveCallback : 500;
|
|
23547
23547
|
let o = [], a;
|
|
23548
|
-
const l =
|
|
23548
|
+
const l = Li((u) => {
|
|
23549
23549
|
const g = Date.now() - a;
|
|
23550
23550
|
i(o.map((p) => (p.timeOffset -= g, p)), u), o = [], a = null;
|
|
23551
|
-
}, r), h =
|
|
23551
|
+
}, r), h = Li((u) => {
|
|
23552
23552
|
const g = Ui(u), { clientX: p, clientY: m } = Al(u) ? u.changedTouches[0] : u;
|
|
23553
23553
|
a || (a = Date.now()), o.push({
|
|
23554
23554
|
x: p,
|
|
@@ -23559,9 +23559,9 @@ function Tg({ mousemoveCb: i, sampling: t, doc: e, mirror: s }) {
|
|
|
23559
23559
|
}, n, {
|
|
23560
23560
|
trailing: !1
|
|
23561
23561
|
}), c = [
|
|
23562
|
-
|
|
23563
|
-
|
|
23564
|
-
|
|
23562
|
+
Bt("mousemove", h, e),
|
|
23563
|
+
Bt("touchmove", h, e),
|
|
23564
|
+
Bt("drag", h, e)
|
|
23565
23565
|
];
|
|
23566
23566
|
return () => {
|
|
23567
23567
|
c.forEach((u) => u());
|
|
@@ -23588,13 +23588,13 @@ function Rg({ mouseInteractionCb: i, doc: t, mirror: e, blockClass: s, blockSele
|
|
|
23588
23588
|
};
|
|
23589
23589
|
return Object.keys(Pn).filter((h) => Number.isNaN(Number(h)) && !h.endsWith("_Departed") && o[h] !== !1).forEach((h) => {
|
|
23590
23590
|
const c = h.toLowerCase(), u = l(h);
|
|
23591
|
-
a.push(
|
|
23591
|
+
a.push(Bt(c, u, t));
|
|
23592
23592
|
}), () => {
|
|
23593
23593
|
a.forEach((h) => h());
|
|
23594
23594
|
};
|
|
23595
23595
|
}
|
|
23596
23596
|
function Fl({ scrollCb: i, doc: t, mirror: e, blockClass: s, blockSelector: n, sampling: r }) {
|
|
23597
|
-
const o =
|
|
23597
|
+
const o = Li((a) => {
|
|
23598
23598
|
const l = Ui(a);
|
|
23599
23599
|
if (!l || Ft(l, s, n, !0))
|
|
23600
23600
|
return;
|
|
@@ -23613,18 +23613,18 @@ function Fl({ scrollCb: i, doc: t, mirror: e, blockClass: s, blockSelector: n, s
|
|
|
23613
23613
|
y: l.scrollTop
|
|
23614
23614
|
});
|
|
23615
23615
|
}, r.scroll || 100);
|
|
23616
|
-
return
|
|
23616
|
+
return Bt("scroll", o, t);
|
|
23617
23617
|
}
|
|
23618
23618
|
function Mg({ viewportResizeCb: i }) {
|
|
23619
23619
|
let t = -1, e = -1;
|
|
23620
|
-
const s =
|
|
23620
|
+
const s = Li(() => {
|
|
23621
23621
|
const n = El(), r = Il();
|
|
23622
23622
|
(t !== n || e !== r) && (i({
|
|
23623
23623
|
width: Number(r),
|
|
23624
23624
|
height: Number(n)
|
|
23625
23625
|
}), t = n, e = r);
|
|
23626
23626
|
}, 200);
|
|
23627
|
-
return
|
|
23627
|
+
return Bt("resize", s, window);
|
|
23628
23628
|
}
|
|
23629
23629
|
function ko(i, t) {
|
|
23630
23630
|
const e = Object.assign({}, i);
|
|
@@ -23665,7 +23665,7 @@ function Pg({ inputCb: i, doc: t, mirror: e, blockClass: s, blockSelector: n, ig
|
|
|
23665
23665
|
i(Object.assign(Object.assign({}, C), { id: E }));
|
|
23666
23666
|
}
|
|
23667
23667
|
}
|
|
23668
|
-
const p = (l.input === "last" ? ["change"] : ["input", "change"]).map((b) =>
|
|
23668
|
+
const p = (l.input === "last" ? ["change"] : ["input", "change"]).map((b) => Bt(b, c, t)), m = t.defaultView;
|
|
23669
23669
|
if (!m)
|
|
23670
23670
|
return () => {
|
|
23671
23671
|
p.forEach((b) => b());
|
|
@@ -23689,7 +23689,7 @@ function Pg({ inputCb: i, doc: t, mirror: e, blockClass: s, blockSelector: n, ig
|
|
|
23689
23689
|
function xs(i) {
|
|
23690
23690
|
const t = [];
|
|
23691
23691
|
function e(s, n) {
|
|
23692
|
-
if (Ol && s.parentRule instanceof CSSGroupingRule || Nl && s.parentRule instanceof CSSMediaRule || Dl && s.parentRule instanceof CSSSupportsRule ||
|
|
23692
|
+
if (Ol && s.parentRule instanceof CSSGroupingRule || Nl && s.parentRule instanceof CSSMediaRule || Dl && s.parentRule instanceof CSSSupportsRule || Ll && s.parentRule instanceof CSSConditionRule) {
|
|
23693
23693
|
const o = Array.from(s.parentRule.cssRules).indexOf(s);
|
|
23694
23694
|
n.unshift(o);
|
|
23695
23695
|
} else if (s.parentStyleSheet) {
|
|
@@ -23745,7 +23745,7 @@ function Og({ styleSheetRuleCb: i, mirror: t, stylesheetManager: e }, { win: s }
|
|
|
23745
23745
|
}), a.apply(this, [c]);
|
|
23746
23746
|
});
|
|
23747
23747
|
const l = {};
|
|
23748
|
-
Ol ? l.CSSGroupingRule = s.CSSGroupingRule : (Nl && (l.CSSMediaRule = s.CSSMediaRule),
|
|
23748
|
+
Ol ? l.CSSGroupingRule = s.CSSGroupingRule : (Nl && (l.CSSMediaRule = s.CSSMediaRule), Ll && (l.CSSConditionRule = s.CSSConditionRule), Dl && (l.CSSSupportsRule = s.CSSSupportsRule));
|
|
23749
23749
|
const h = {};
|
|
23750
23750
|
return Object.entries(l).forEach(([c, u]) => {
|
|
23751
23751
|
h[c] = {
|
|
@@ -23851,7 +23851,7 @@ function Ng({ styleDeclarationCb: i, mirror: t, ignoreCSSAttributes: e, styleshe
|
|
|
23851
23851
|
};
|
|
23852
23852
|
}
|
|
23853
23853
|
function Dg({ mediaInteractionCb: i, blockClass: t, blockSelector: e, mirror: s, sampling: n }) {
|
|
23854
|
-
const r = (a) =>
|
|
23854
|
+
const r = (a) => Li((l) => {
|
|
23855
23855
|
const h = Ui(l);
|
|
23856
23856
|
if (!h || Ft(h, t, e, !0))
|
|
23857
23857
|
return;
|
|
@@ -23865,17 +23865,17 @@ function Dg({ mediaInteractionCb: i, blockClass: t, blockSelector: e, mirror: s,
|
|
|
23865
23865
|
playbackRate: p
|
|
23866
23866
|
});
|
|
23867
23867
|
}, n.media || 500), o = [
|
|
23868
|
-
|
|
23869
|
-
|
|
23870
|
-
|
|
23871
|
-
|
|
23872
|
-
|
|
23868
|
+
Bt("play", r(0)),
|
|
23869
|
+
Bt("pause", r(1)),
|
|
23870
|
+
Bt("seeked", r(2)),
|
|
23871
|
+
Bt("volumechange", r(3)),
|
|
23872
|
+
Bt("ratechange", r(4))
|
|
23873
23873
|
];
|
|
23874
23874
|
return () => {
|
|
23875
23875
|
o.forEach((a) => a());
|
|
23876
23876
|
};
|
|
23877
23877
|
}
|
|
23878
|
-
function
|
|
23878
|
+
function Lg({ fontCb: i, doc: t }) {
|
|
23879
23879
|
const e = t.defaultView;
|
|
23880
23880
|
if (!e)
|
|
23881
23881
|
return () => {
|
|
@@ -23904,7 +23904,7 @@ function Bg({ fontCb: i, doc: t }) {
|
|
|
23904
23904
|
s.forEach((a) => a());
|
|
23905
23905
|
};
|
|
23906
23906
|
}
|
|
23907
|
-
function
|
|
23907
|
+
function Bg(i) {
|
|
23908
23908
|
const { doc: t, mirror: e, blockClass: s, blockSelector: n, selectionCb: r } = i;
|
|
23909
23909
|
let o = !0;
|
|
23910
23910
|
const a = () => {
|
|
@@ -23924,7 +23924,7 @@ function Lg(i) {
|
|
|
23924
23924
|
}
|
|
23925
23925
|
r({ ranges: h });
|
|
23926
23926
|
};
|
|
23927
|
-
return a(),
|
|
23927
|
+
return a(), Bt("selectionchange", a);
|
|
23928
23928
|
}
|
|
23929
23929
|
function Fg(i, t) {
|
|
23930
23930
|
const { mutationCb: e, mousemoveCb: s, mouseInteractionCb: n, scrollCb: r, viewportResizeCb: o, inputCb: a, mediaInteractionCb: l, styleSheetRuleCb: h, styleDeclarationCb: c, canvasMutationCb: u, fontCb: g, selectionCb: p } = i;
|
|
@@ -23960,14 +23960,14 @@ function Ug(i, t = {}) {
|
|
|
23960
23960
|
return () => {
|
|
23961
23961
|
};
|
|
23962
23962
|
Fg(i, t);
|
|
23963
|
-
const s =
|
|
23963
|
+
const s = Bl(i, i.doc), n = Tg(i), r = Rg(i), o = Fl(i), a = Mg(i), l = Pg(i), h = Dg(i), c = Og(i, { win: e }), u = Ul(i, i.doc), g = Ng(i, {
|
|
23964
23964
|
win: e
|
|
23965
|
-
}), p = i.collectFonts ?
|
|
23966
|
-
}, m =
|
|
23965
|
+
}), p = i.collectFonts ? Lg(i) : () => {
|
|
23966
|
+
}, m = Bg(i), _ = [];
|
|
23967
23967
|
for (const x of i.plugins)
|
|
23968
23968
|
_.push(x.observer(x.callback, e, x.options));
|
|
23969
23969
|
return () => {
|
|
23970
|
-
|
|
23970
|
+
Le.forEach((x) => x.reset()), s.disconnect(), n(), r(), o(), a(), l(), h(), c(), u(), g(), p(), m(), _.forEach((x) => x());
|
|
23971
23971
|
};
|
|
23972
23972
|
}
|
|
23973
23973
|
class Oo {
|
|
@@ -24152,7 +24152,7 @@ class Wg {
|
|
|
24152
24152
|
}));
|
|
24153
24153
|
}
|
|
24154
24154
|
addShadowRoot(t, e) {
|
|
24155
|
-
Ti(t) && (this.shadowDoms.has(t) || (this.shadowDoms.add(t),
|
|
24155
|
+
Ti(t) && (this.shadowDoms.has(t) || (this.shadowDoms.add(t), Bl(Object.assign(Object.assign({}, this.bypassOptions), { doc: e, mutationCb: this.mutationCb, mirror: this.mirror, shadowDomManager: this }), t), Fl(Object.assign(Object.assign({}, this.bypassOptions), { scrollCb: this.scrollCb, doc: t, mirror: this.mirror })), setTimeout(() => {
|
|
24156
24156
|
t.adoptedStyleSheets && t.adoptedStyleSheets.length > 0 && this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets, this.mirror.getId(t.host)), Ul({
|
|
24157
24157
|
mirror: this.mirror,
|
|
24158
24158
|
stylesheetManager: this.bypassOptions.stylesheetManager
|
|
@@ -24364,7 +24364,7 @@ function Do(i, t, e) {
|
|
|
24364
24364
|
s.forEach((n) => n());
|
|
24365
24365
|
};
|
|
24366
24366
|
}
|
|
24367
|
-
function
|
|
24367
|
+
function Lo(i, t, e, s, n, r, o) {
|
|
24368
24368
|
const a = [], l = Object.getOwnPropertyNames(i);
|
|
24369
24369
|
for (const h of l)
|
|
24370
24370
|
if (![
|
|
@@ -24408,7 +24408,7 @@ function Bo(i, t, e, s, n, r, o) {
|
|
|
24408
24408
|
}
|
|
24409
24409
|
function Xg(i, t, e, s, n) {
|
|
24410
24410
|
const r = [];
|
|
24411
|
-
return r.push(...
|
|
24411
|
+
return r.push(...Lo(t.WebGLRenderingContext.prototype, li.WebGL, i, e, s, n, t)), typeof t.WebGL2RenderingContext < "u" && r.push(...Lo(t.WebGL2RenderingContext.prototype, li.WebGL2, i, e, s, n, t)), () => {
|
|
24412
24412
|
r.forEach((o) => o());
|
|
24413
24413
|
};
|
|
24414
24414
|
}
|
|
@@ -24647,7 +24647,7 @@ function hi(i = {}) {
|
|
|
24647
24647
|
if (F && !t)
|
|
24648
24648
|
throw new Error("emit function is required");
|
|
24649
24649
|
w !== void 0 && b.mousemove === void 0 && (b.mousemove = w), Qt.reset();
|
|
24650
|
-
const
|
|
24650
|
+
const L = c === !0 ? {
|
|
24651
24651
|
color: !0,
|
|
24652
24652
|
date: !0,
|
|
24653
24653
|
"datetime-local": !0,
|
|
@@ -24677,7 +24677,7 @@ function hi(i = {}) {
|
|
|
24677
24677
|
headMetaDescKeywords: g === "all"
|
|
24678
24678
|
} : g || {};
|
|
24679
24679
|
Eg();
|
|
24680
|
-
let D,
|
|
24680
|
+
let D, B = 0;
|
|
24681
24681
|
const tt = (V) => {
|
|
24682
24682
|
for (const et of P || [])
|
|
24683
24683
|
et.eventProcessor && (V = et.eventProcessor(V));
|
|
@@ -24685,7 +24685,7 @@ function hi(i = {}) {
|
|
|
24685
24685
|
};
|
|
24686
24686
|
wt = (V, et) => {
|
|
24687
24687
|
var ot;
|
|
24688
|
-
if (!((ot =
|
|
24688
|
+
if (!((ot = Le[0]) === null || ot === void 0) && ot.isFrozen() && V.type !== rt.FullSnapshot && !(V.type === rt.IncrementalSnapshot && V.data.source === it.Mutation) && Le.forEach((Z) => Z.unfreeze()), F)
|
|
24689
24689
|
t == null || t(tt(V), et);
|
|
24690
24690
|
else if (G) {
|
|
24691
24691
|
const Z = {
|
|
@@ -24696,12 +24696,12 @@ function hi(i = {}) {
|
|
|
24696
24696
|
window.parent.postMessage(Z, "*");
|
|
24697
24697
|
}
|
|
24698
24698
|
if (V.type === rt.FullSnapshot)
|
|
24699
|
-
D = V,
|
|
24699
|
+
D = V, B = 0;
|
|
24700
24700
|
else if (V.type === rt.IncrementalSnapshot) {
|
|
24701
24701
|
if (V.data.source === it.Mutation && V.data.isAttachIframe)
|
|
24702
24702
|
return;
|
|
24703
|
-
|
|
24704
|
-
const Z = s &&
|
|
24703
|
+
B++;
|
|
24704
|
+
const Z = s && B >= s, gt = e && V.timestamp - D.timestamp > e;
|
|
24705
24705
|
(Z || gt) && ls(!0);
|
|
24706
24706
|
}
|
|
24707
24707
|
};
|
|
@@ -24754,7 +24754,7 @@ function hi(i = {}) {
|
|
|
24754
24754
|
maskTextClass: a,
|
|
24755
24755
|
maskTextSelector: l,
|
|
24756
24756
|
inlineStylesheet: h,
|
|
24757
|
-
maskInputOptions:
|
|
24757
|
+
maskInputOptions: L,
|
|
24758
24758
|
dataURLOptions: C,
|
|
24759
24759
|
maskTextFn: m,
|
|
24760
24760
|
maskInputFn: p,
|
|
@@ -24778,7 +24778,7 @@ function hi(i = {}) {
|
|
|
24778
24778
|
width: Il(),
|
|
24779
24779
|
height: El()
|
|
24780
24780
|
}
|
|
24781
|
-
}), V), H.reset(),
|
|
24781
|
+
}), V), H.reset(), Le.forEach((lt) => lt.lock());
|
|
24782
24782
|
const It = Sg(document, {
|
|
24783
24783
|
mirror: Qt,
|
|
24784
24784
|
blockClass: n,
|
|
@@ -24786,7 +24786,7 @@ function hi(i = {}) {
|
|
|
24786
24786
|
maskTextClass: a,
|
|
24787
24787
|
maskTextSelector: l,
|
|
24788
24788
|
inlineStylesheet: h,
|
|
24789
|
-
maskAllInputs:
|
|
24789
|
+
maskAllInputs: L,
|
|
24790
24790
|
maskTextFn: m,
|
|
24791
24791
|
slimDOM: q,
|
|
24792
24792
|
dataURLOptions: C,
|
|
@@ -24814,11 +24814,11 @@ function hi(i = {}) {
|
|
|
24814
24814
|
top: window.pageYOffset !== void 0 ? window.pageYOffset : (document == null ? void 0 : document.documentElement.scrollTop) || ((J = (gt = document == null ? void 0 : document.body) === null || gt === void 0 ? void 0 : gt.parentElement) === null || J === void 0 ? void 0 : J.scrollTop) || ((ft = document == null ? void 0 : document.body) === null || ft === void 0 ? void 0 : ft.scrollTop) || 0
|
|
24815
24815
|
}
|
|
24816
24816
|
}
|
|
24817
|
-
})),
|
|
24817
|
+
})), Le.forEach((lt) => lt.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && H.adoptStyleSheets(document.adoptedStyleSheets, Qt.getId(document));
|
|
24818
24818
|
};
|
|
24819
24819
|
try {
|
|
24820
24820
|
const V = [];
|
|
24821
|
-
V.push(
|
|
24821
|
+
V.push(Bt("DOMContentLoaded", () => {
|
|
24822
24822
|
wt(vt({
|
|
24823
24823
|
type: rt.DomContentLoaded,
|
|
24824
24824
|
data: {}
|
|
@@ -24875,7 +24875,7 @@ function hi(i = {}) {
|
|
|
24875
24875
|
ignoreClass: o,
|
|
24876
24876
|
maskTextClass: a,
|
|
24877
24877
|
maskTextSelector: l,
|
|
24878
|
-
maskInputOptions:
|
|
24878
|
+
maskInputOptions: L,
|
|
24879
24879
|
inlineStylesheet: h,
|
|
24880
24880
|
sampling: b,
|
|
24881
24881
|
recordCanvas: E,
|
|
@@ -24914,7 +24914,7 @@ function hi(i = {}) {
|
|
|
24914
24914
|
const ot = () => {
|
|
24915
24915
|
ls(), V.push(et(document)), bs = !0;
|
|
24916
24916
|
};
|
|
24917
|
-
return document.readyState === "interactive" || document.readyState === "complete" ? ot() : V.push(
|
|
24917
|
+
return document.readyState === "interactive" || document.readyState === "complete" ? ot() : V.push(Bt("load", () => {
|
|
24918
24918
|
wt(vt({
|
|
24919
24919
|
type: rt.Load,
|
|
24920
24920
|
data: {}
|
|
@@ -24938,7 +24938,7 @@ hi.addCustomEvent = (i, t) => {
|
|
|
24938
24938
|
}));
|
|
24939
24939
|
};
|
|
24940
24940
|
hi.freezePage = () => {
|
|
24941
|
-
|
|
24941
|
+
Le.forEach((i) => i.freeze());
|
|
24942
24942
|
};
|
|
24943
24943
|
hi.takeFullSnapshot = (i) => {
|
|
24944
24944
|
if (!bs)
|
|
@@ -24997,10 +24997,10 @@ class lm {
|
|
|
24997
24997
|
function hm(i) {
|
|
24998
24998
|
return i.startsWith("ws://") || i.startsWith("wss://") ? i : `${location.protocol === "https:" ? "wss:" : "ws:"}//${location.host}${i.startsWith("/") ? "" : "/"}${i}`;
|
|
24999
24999
|
}
|
|
25000
|
-
const
|
|
25000
|
+
const Bo = 1e3, cm = 3e4, um = 500;
|
|
25001
25001
|
class dm {
|
|
25002
25002
|
constructor(t, e) {
|
|
25003
|
-
this.onIntervention = null, this.onStatus = null, this.onConnected = null, this.onDisconnected = null, this.ws = null, this.eventBuffer = [], this.reconnectDelay =
|
|
25003
|
+
this.onIntervention = null, this.onStatus = null, this.onConnected = null, this.onDisconnected = null, this.ws = null, this.eventBuffer = [], this.reconnectDelay = Bo, this.reconnectTimer = null, this._connected = !1, this._closed = !1, this.url = hm(t), this.initPayload = { type: "init", ...e };
|
|
25004
25004
|
}
|
|
25005
25005
|
get isConnected() {
|
|
25006
25006
|
return this._connected;
|
|
@@ -25055,7 +25055,7 @@ class dm {
|
|
|
25055
25055
|
}
|
|
25056
25056
|
this.ws.onopen = () => {
|
|
25057
25057
|
var t;
|
|
25058
|
-
console.log("[VisionWS] Connected"), this._connected = !0, this.reconnectDelay =
|
|
25058
|
+
console.log("[VisionWS] Connected"), this._connected = !0, this.reconnectDelay = Bo, this.ws.send(JSON.stringify(this.initPayload)), this.flushBuffer(), (t = this.onConnected) == null || t.call(this);
|
|
25059
25059
|
}, this.ws.onmessage = (t) => {
|
|
25060
25060
|
const e = t.data;
|
|
25061
25061
|
typeof e == "string" ? this.parseAndHandle(e) : e instanceof Blob ? e.text().then((s) => this.parseAndHandle(s)) : e instanceof ArrayBuffer ? this.parseAndHandle(new TextDecoder().decode(e)) : console.warn("[VisionWS] Unknown message data type:", typeof e);
|
|
@@ -25511,7 +25511,7 @@ All actions except form filling require the visitor to confirm before executing.
|
|
|
25511
25511
|
voice: this.sessionResponse.staff.voiceId,
|
|
25512
25512
|
instructions: t,
|
|
25513
25513
|
tools: Sm
|
|
25514
|
-
}), this.domAnalyzer = new
|
|
25514
|
+
}), this.domAnalyzer = new Lp(), this.highlightRenderer = new Wp(), this.confirmationPrompt = new Hp(), this.realtimeSession.onConnected = () => {
|
|
25515
25515
|
var s, n, r, o;
|
|
25516
25516
|
console.log("[HolostaffWidget] Realtime API connected");
|
|
25517
25517
|
const e = (s = this.sessionResponse) == null ? void 0 : s.staff.openingText;
|
|
@@ -25787,7 +25787,7 @@ export {
|
|
|
25787
25787
|
Kt as _,
|
|
25788
25788
|
va as a,
|
|
25789
25789
|
mr as a0,
|
|
25790
|
-
|
|
25790
|
+
Be as a1,
|
|
25791
25791
|
vf as a2,
|
|
25792
25792
|
Hh as a3,
|
|
25793
25793
|
_r as a4,
|
|
@@ -25800,14 +25800,14 @@ export {
|
|
|
25800
25800
|
Xd as ab,
|
|
25801
25801
|
Da as ac,
|
|
25802
25802
|
nt as ad,
|
|
25803
|
-
|
|
25803
|
+
Bi as ae,
|
|
25804
25804
|
bt as af,
|
|
25805
25805
|
Xc as ag,
|
|
25806
25806
|
Hc as ah,
|
|
25807
25807
|
gu as ai,
|
|
25808
25808
|
lu as aj,
|
|
25809
25809
|
Nu as ak,
|
|
25810
|
-
|
|
25810
|
+
Lu as al,
|
|
25811
25811
|
Hu as am,
|
|
25812
25812
|
Wu as an,
|
|
25813
25813
|
zu as ao,
|
|
@@ -25838,4 +25838,4 @@ export {
|
|
|
25838
25838
|
Or as y,
|
|
25839
25839
|
os as z
|
|
25840
25840
|
};
|
|
25841
|
-
//# sourceMappingURL=index-
|
|
25841
|
+
//# sourceMappingURL=index-RtR241n6.js.map
|