holostaff-widget 3.0.7 → 3.0.8
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/{CanvasRenderer-CZrsEHKq.js → CanvasRenderer-Bv-aQ5u9.js} +5 -5
- package/dist/{CanvasRenderer-CZrsEHKq.js.map → CanvasRenderer-Bv-aQ5u9.js.map} +1 -1
- package/dist/{Filter-Ce0JYpex.js → Filter-USG-3OWx.js} +2 -2
- package/dist/{Filter-Ce0JYpex.js.map → Filter-USG-3OWx.js.map} +1 -1
- package/dist/{GpuStencilModesToPixi-U9Nzw7CS.js → GpuStencilModesToPixi-0Pv9HrNg.js} +3 -3
- package/dist/{GpuStencilModesToPixi-U9Nzw7CS.js.map → GpuStencilModesToPixi-0Pv9HrNg.js.map} +1 -1
- package/dist/{RenderTargetSystem-C8dExAL2.js → RenderTargetSystem-BNInd2k4.js} +3 -3
- package/dist/{RenderTargetSystem-C8dExAL2.js.map → RenderTargetSystem-BNInd2k4.js.map} +1 -1
- package/dist/{WebGLRenderer-DDaRf1Y3.js → WebGLRenderer-zb0jiqTg.js} +5 -5
- package/dist/{WebGLRenderer-DDaRf1Y3.js.map → WebGLRenderer-zb0jiqTg.js.map} +1 -1
- package/dist/{WebGPURenderer-EavnjBvg.js → WebGPURenderer-fm_uBJOT.js} +6 -6
- package/dist/{WebGPURenderer-EavnjBvg.js.map → WebGPURenderer-fm_uBJOT.js.map} +1 -1
- package/dist/{browserAll-BzORr4Uu.js → browserAll-CcRDLEJc.js} +3 -3
- package/dist/{browserAll-BzORr4Uu.js.map → browserAll-CcRDLEJc.js.map} +1 -1
- package/dist/{getTextureBatchBindGroup-Cr2re8Em.js → getTextureBatchBindGroup-DBv7jVal.js} +3 -3
- package/dist/{getTextureBatchBindGroup-Cr2re8Em.js.map → getTextureBatchBindGroup-DBv7jVal.js.map} +1 -1
- package/dist/hs-widget.es.js +1 -1
- package/dist/hs-widget.umd.js +22 -22
- package/dist/hs-widget.umd.js.map +1 -1
- package/dist/{index-CBLsgHG5.js → index-CHnN3M8o.js} +665 -648
- package/dist/index-CHnN3M8o.js.map +1 -0
- package/dist/{webworkerAll-DWSbI11E.js → webworkerAll-CIC3WsZz.js} +3 -3
- package/dist/{webworkerAll-DWSbI11E.js.map → webworkerAll-CIC3WsZz.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-CBLsgHG5.js.map +0 -1
|
@@ -315,11 +315,11 @@ function ka() {
|
|
|
315
315
|
function n(l, h, f) {
|
|
316
316
|
this.fn = l, this.context = h, this.once = f || !1;
|
|
317
317
|
}
|
|
318
|
-
function r(l, h, f, u,
|
|
318
|
+
function r(l, h, f, u, g) {
|
|
319
319
|
if (typeof f != "function")
|
|
320
320
|
throw new TypeError("The listener must be a function");
|
|
321
|
-
var
|
|
322
|
-
return l._events[_] ? l._events[_].fn ? l._events[_] = [l._events[_],
|
|
321
|
+
var m = new n(f, u || l, g), _ = t ? t + h : h;
|
|
322
|
+
return l._events[_] ? l._events[_].fn ? l._events[_] = [l._events[_], m] : l._events[_].push(m) : (l._events[_] = m, l._eventsCount++), l;
|
|
323
323
|
}
|
|
324
324
|
function o(l, h) {
|
|
325
325
|
--l._eventsCount === 0 ? l._events = new s() : delete l._events[h];
|
|
@@ -337,18 +337,18 @@ function ka() {
|
|
|
337
337
|
var f = t ? t + h : h, u = this._events[f];
|
|
338
338
|
if (!u) return [];
|
|
339
339
|
if (u.fn) return [u.fn];
|
|
340
|
-
for (var
|
|
341
|
-
_[
|
|
340
|
+
for (var g = 0, m = u.length, _ = new Array(m); g < m; g++)
|
|
341
|
+
_[g] = u[g].fn;
|
|
342
342
|
return _;
|
|
343
343
|
}, a.prototype.listenerCount = function(h) {
|
|
344
344
|
var f = t ? t + h : h, u = this._events[f];
|
|
345
345
|
return u ? u.fn ? 1 : u.length : 0;
|
|
346
|
-
}, a.prototype.emit = function(h, f, u,
|
|
347
|
-
var
|
|
348
|
-
if (!this._events[
|
|
349
|
-
var C = this._events[
|
|
346
|
+
}, a.prototype.emit = function(h, f, u, g, m, _) {
|
|
347
|
+
var v = t ? t + h : h;
|
|
348
|
+
if (!this._events[v]) return !1;
|
|
349
|
+
var C = this._events[v], S = arguments.length, A, I;
|
|
350
350
|
if (C.fn) {
|
|
351
|
-
switch (C.once && this.removeListener(h, C.fn, void 0, !0),
|
|
351
|
+
switch (C.once && this.removeListener(h, C.fn, void 0, !0), S) {
|
|
352
352
|
case 1:
|
|
353
353
|
return C.fn.call(C.context), !0;
|
|
354
354
|
case 2:
|
|
@@ -356,19 +356,19 @@ function ka() {
|
|
|
356
356
|
case 3:
|
|
357
357
|
return C.fn.call(C.context, f, u), !0;
|
|
358
358
|
case 4:
|
|
359
|
-
return C.fn.call(C.context, f, u,
|
|
359
|
+
return C.fn.call(C.context, f, u, g), !0;
|
|
360
360
|
case 5:
|
|
361
|
-
return C.fn.call(C.context, f, u,
|
|
361
|
+
return C.fn.call(C.context, f, u, g, m), !0;
|
|
362
362
|
case 6:
|
|
363
|
-
return C.fn.call(C.context, f, u,
|
|
363
|
+
return C.fn.call(C.context, f, u, g, m, _), !0;
|
|
364
364
|
}
|
|
365
|
-
for (I = 1, A = new Array(
|
|
365
|
+
for (I = 1, A = new Array(S - 1); I < S; I++)
|
|
366
366
|
A[I - 1] = arguments[I];
|
|
367
367
|
C.fn.apply(C.context, A);
|
|
368
368
|
} else {
|
|
369
369
|
var w = C.length, T;
|
|
370
370
|
for (I = 0; I < w; I++)
|
|
371
|
-
switch (C[I].once && this.removeListener(h, C[I].fn, void 0, !0),
|
|
371
|
+
switch (C[I].once && this.removeListener(h, C[I].fn, void 0, !0), S) {
|
|
372
372
|
case 1:
|
|
373
373
|
C[I].fn.call(C[I].context);
|
|
374
374
|
break;
|
|
@@ -379,10 +379,10 @@ function ka() {
|
|
|
379
379
|
C[I].fn.call(C[I].context, f, u);
|
|
380
380
|
break;
|
|
381
381
|
case 4:
|
|
382
|
-
C[I].fn.call(C[I].context, f, u,
|
|
382
|
+
C[I].fn.call(C[I].context, f, u, g);
|
|
383
383
|
break;
|
|
384
384
|
default:
|
|
385
|
-
if (!A) for (T = 1, A = new Array(
|
|
385
|
+
if (!A) for (T = 1, A = new Array(S - 1); T < S; T++)
|
|
386
386
|
A[T - 1] = arguments[T];
|
|
387
387
|
C[I].fn.apply(C[I].context, A);
|
|
388
388
|
}
|
|
@@ -392,18 +392,18 @@ function ka() {
|
|
|
392
392
|
return r(this, h, f, u, !1);
|
|
393
393
|
}, a.prototype.once = function(h, f, u) {
|
|
394
394
|
return r(this, h, f, u, !0);
|
|
395
|
-
}, a.prototype.removeListener = function(h, f, u,
|
|
396
|
-
var
|
|
397
|
-
if (!this._events[
|
|
395
|
+
}, a.prototype.removeListener = function(h, f, u, g) {
|
|
396
|
+
var m = t ? t + h : h;
|
|
397
|
+
if (!this._events[m]) return this;
|
|
398
398
|
if (!f)
|
|
399
|
-
return o(this,
|
|
400
|
-
var _ = this._events[
|
|
399
|
+
return o(this, m), this;
|
|
400
|
+
var _ = this._events[m];
|
|
401
401
|
if (_.fn)
|
|
402
|
-
_.fn === f && (!
|
|
402
|
+
_.fn === f && (!g || _.once) && (!u || _.context === u) && o(this, m);
|
|
403
403
|
else {
|
|
404
|
-
for (var
|
|
405
|
-
(_[
|
|
406
|
-
C.length ? this._events[
|
|
404
|
+
for (var v = 0, C = [], S = _.length; v < S; v++)
|
|
405
|
+
(_[v].fn !== f || g && !_[v].once || u && _[v].context !== u) && C.push(_[v]);
|
|
406
|
+
C.length ? this._events[m] = C.length === 1 ? C[0] : C : o(this, m);
|
|
407
407
|
}
|
|
408
408
|
return this;
|
|
409
409
|
}, a.prototype.removeAllListeners = function(h) {
|
|
@@ -721,12 +721,12 @@ function mr(i, e, t, s) {
|
|
|
721
721
|
for (let a = 0; a < i.length; a++) {
|
|
722
722
|
const l = i[a], h = l.data.name;
|
|
723
723
|
let f = !1, u = 0;
|
|
724
|
-
for (let
|
|
725
|
-
if (We[
|
|
724
|
+
for (let g = 0; g < We.length; g++)
|
|
725
|
+
if (We[g].test(l.data)) {
|
|
726
726
|
u = l.offset / 4, n.push(
|
|
727
727
|
`name = "${h}";`,
|
|
728
728
|
`offset += ${u - r};`,
|
|
729
|
-
We[
|
|
729
|
+
We[g][e] || We[g].ubo
|
|
730
730
|
), f = !0;
|
|
731
731
|
break;
|
|
732
732
|
}
|
|
@@ -734,13 +734,13 @@ function mr(i, e, t, s) {
|
|
|
734
734
|
if (l.data.size > 1)
|
|
735
735
|
u = l.offset / 4, n.push(t(l, u - r));
|
|
736
736
|
else {
|
|
737
|
-
const
|
|
737
|
+
const g = s[l.data.type];
|
|
738
738
|
u = l.offset / 4, n.push(
|
|
739
739
|
/* wgsl */
|
|
740
740
|
`
|
|
741
741
|
v = uv.${h};
|
|
742
742
|
offset += ${u - r};
|
|
743
|
-
${
|
|
743
|
+
${g};
|
|
744
744
|
`
|
|
745
745
|
);
|
|
746
746
|
}
|
|
@@ -1318,12 +1318,12 @@ function Wa(i, e) {
|
|
|
1318
1318
|
const u = h.resources[f];
|
|
1319
1319
|
if (u instanceof Hs)
|
|
1320
1320
|
if (u.ubo) {
|
|
1321
|
-
const
|
|
1321
|
+
const g = i._uniformBindMap[l][Number(f)];
|
|
1322
1322
|
t.push(`
|
|
1323
1323
|
sS.bindUniformBlock(
|
|
1324
1324
|
resources[${f}],
|
|
1325
|
-
'${
|
|
1326
|
-
${i.glProgram._uniformBlockData[
|
|
1325
|
+
'${g}',
|
|
1326
|
+
${i.glProgram._uniformBlockData[g].index}
|
|
1327
1327
|
);
|
|
1328
1328
|
`);
|
|
1329
1329
|
} else
|
|
@@ -1331,19 +1331,19 @@ function Wa(i, e) {
|
|
|
1331
1331
|
ugS.updateUniformGroup(resources[${f}], p, sD);
|
|
1332
1332
|
`);
|
|
1333
1333
|
else if (u instanceof Ws) {
|
|
1334
|
-
const
|
|
1334
|
+
const g = i._uniformBindMap[l][Number(f)];
|
|
1335
1335
|
t.push(`
|
|
1336
1336
|
sS.bindUniformBlock(
|
|
1337
1337
|
resources[${f}],
|
|
1338
|
-
'${
|
|
1339
|
-
${i.glProgram._uniformBlockData[
|
|
1338
|
+
'${g}',
|
|
1339
|
+
${i.glProgram._uniformBlockData[g].index}
|
|
1340
1340
|
);
|
|
1341
1341
|
`);
|
|
1342
1342
|
} else if (u instanceof Ne) {
|
|
1343
|
-
const
|
|
1344
|
-
|
|
1343
|
+
const g = i._uniformBindMap[l][f], m = o.uniformData[g];
|
|
1344
|
+
m && (n || (n = !0, s.push(`
|
|
1345
1345
|
var tS = r.texture;
|
|
1346
|
-
`)), e._gl.uniform1i(
|
|
1346
|
+
`)), e._gl.uniform1i(m.location, r), t.push(`
|
|
1347
1347
|
tS.bind(resources[${f}], ${r});
|
|
1348
1348
|
`), r++);
|
|
1349
1349
|
}
|
|
@@ -1690,8 +1690,8 @@ class Tr {
|
|
|
1690
1690
|
o || this._renderer.ubo.updateUniformGroup(e);
|
|
1691
1691
|
const a = e.buffer, l = n.updateBuffer(a), h = n.freeLocationForBufferBase(l);
|
|
1692
1692
|
if (o) {
|
|
1693
|
-
const { offset: u, size:
|
|
1694
|
-
u === 0 &&
|
|
1693
|
+
const { offset: u, size: g } = e;
|
|
1694
|
+
u === 0 && g === a.data.byteLength ? n.bindBufferBase(l, h) : n.bindBufferRange(l, h, u);
|
|
1695
1695
|
} else n.getLastBindBaseLocation(l) !== h && n.bindBufferBase(l, h);
|
|
1696
1696
|
const f = this._activeProgram._uniformBlockData[t].index;
|
|
1697
1697
|
r.uniformBlockBindings[s] !== h && (r.uniformBlockBindings[s] = h, this._renderer.gl.uniformBlockBinding(r.program, f, h));
|
|
@@ -2189,13 +2189,13 @@ function dl(i, e) {
|
|
|
2189
2189
|
var a, l, h = s[this.toHex()];
|
|
2190
2190
|
if (h) return h;
|
|
2191
2191
|
if (o != null && o.closest) {
|
|
2192
|
-
var f = this.toRgb(), u = 1 / 0,
|
|
2193
|
-
if (!r.length) for (var
|
|
2192
|
+
var f = this.toRgb(), u = 1 / 0, g = "black";
|
|
2193
|
+
if (!r.length) for (var m in t) r[m] = new i(t[m]).toRgb();
|
|
2194
2194
|
for (var _ in t) {
|
|
2195
|
-
var
|
|
2196
|
-
|
|
2195
|
+
var v = (a = f, l = r[_], Math.pow(a.r - l.r, 2) + Math.pow(a.g - l.g, 2) + Math.pow(a.b - l.b, 2));
|
|
2196
|
+
v < u && (u = v, g = _);
|
|
2197
2197
|
}
|
|
2198
|
-
return
|
|
2198
|
+
return g;
|
|
2199
2199
|
}
|
|
2200
2200
|
}, e.string.push([function(o) {
|
|
2201
2201
|
var a = o.toLowerCase(), l = a === "transparent" ? "#0000" : t[a];
|
|
@@ -3358,8 +3358,8 @@ class X {
|
|
|
3358
3358
|
* @see {@link Matrix.prepend} For reverse order multiplication
|
|
3359
3359
|
*/
|
|
3360
3360
|
appendFrom(e, t) {
|
|
3361
|
-
const s = e.a, n = e.b, r = e.c, o = e.d, a = e.tx, l = e.ty, h = t.a, f = t.b, u = t.c,
|
|
3362
|
-
return this.a = s * h + n * u, this.b = s * f + n *
|
|
3361
|
+
const s = e.a, n = e.b, r = e.c, o = e.d, a = e.tx, l = e.ty, h = t.a, f = t.b, u = t.c, g = t.d;
|
|
3362
|
+
return this.a = s * h + n * u, this.b = s * f + n * g, this.c = r * h + o * u, this.d = r * f + o * g, this.tx = a * h + l * u + t.tx, this.ty = a * f + l * g + t.ty, this;
|
|
3363
3363
|
}
|
|
3364
3364
|
/**
|
|
3365
3365
|
* Sets the matrix based on all the available properties.
|
|
@@ -4562,8 +4562,8 @@ class He {
|
|
|
4562
4562
|
strokeContains(e, t, s, n = 0.5) {
|
|
4563
4563
|
const { width: r, height: o } = this;
|
|
4564
4564
|
if (r <= 0 || o <= 0) return !1;
|
|
4565
|
-
const a = this.x, l = this.y, h = s * (1 - n), f = s - h, u = a - h,
|
|
4566
|
-
return e >= u && e <=
|
|
4565
|
+
const a = this.x, l = this.y, h = s * (1 - n), f = s - h, u = a - h, g = a + r + h, m = l - h, _ = l + o + h, v = a + f, C = a + r - f, S = l + f, A = l + o - f;
|
|
4566
|
+
return e >= u && e <= g && t >= m && t <= _ && !(e > v && e < C && t > S && t < A);
|
|
4567
4567
|
}
|
|
4568
4568
|
/**
|
|
4569
4569
|
* Determines whether the `other` Rectangle transformed by `transform` intersects with `this` Rectangle object.
|
|
@@ -4623,8 +4623,8 @@ class He {
|
|
|
4623
4623
|
const u = Math.sign(t.a * t.d - t.b * t.c);
|
|
4624
4624
|
if (u === 0 || (t.apply(a, a), t.apply(l, l), t.apply(h, h), t.apply(f, f), Math.max(a.x, l.x, h.x, f.x) <= s || Math.min(a.x, l.x, h.x, f.x) >= n || Math.max(a.y, l.y, h.y, f.y) <= r || Math.min(a.y, l.y, h.y, f.y) >= o))
|
|
4625
4625
|
return !1;
|
|
4626
|
-
const
|
|
4627
|
-
if (Math.max(_,
|
|
4626
|
+
const g = u * (l.y - a.y), m = u * (a.x - l.x), _ = g * s + m * r, v = g * n + m * r, C = g * s + m * o, S = g * n + m * o;
|
|
4627
|
+
if (Math.max(_, v, C, S) <= g * a.x + m * a.y || Math.min(_, v, C, S) >= g * f.x + m * f.y)
|
|
4628
4628
|
return !1;
|
|
4629
4629
|
const A = u * (a.y - h.y), I = u * (h.x - a.x), w = A * s + I * r, T = A * n + I * r, M = A * s + I * o, F = A * n + I * o;
|
|
4630
4630
|
return !(Math.max(w, T, M, F) <= A * a.x + I * a.y || Math.min(w, T, M, F) >= A * f.x + I * f.y);
|
|
@@ -4948,8 +4948,8 @@ class st {
|
|
|
4948
4948
|
addFrame(e, t, s, n, r) {
|
|
4949
4949
|
r || (r = this.matrix);
|
|
4950
4950
|
const o = r.a, a = r.b, l = r.c, h = r.d, f = r.tx, u = r.ty;
|
|
4951
|
-
let
|
|
4952
|
-
C <
|
|
4951
|
+
let g = this.minX, m = this.minY, _ = this.maxX, v = this.maxY, C = o * e + l * t + f, S = a * e + h * t + u;
|
|
4952
|
+
C < g && (g = C), S < m && (m = S), C > _ && (_ = C), S > v && (v = S), C = o * s + l * t + f, S = a * s + h * t + u, C < g && (g = C), S < m && (m = S), C > _ && (_ = C), S > v && (v = S), C = o * e + l * n + f, S = a * e + h * n + u, C < g && (g = C), S < m && (m = S), C > _ && (_ = C), S > v && (v = S), C = o * s + l * n + f, S = a * s + h * n + u, C < g && (g = C), S < m && (m = S), C > _ && (_ = C), S > v && (v = S), this.minX = g, this.minY = m, this.maxX = _, this.maxY = v;
|
|
4953
4953
|
}
|
|
4954
4954
|
/**
|
|
4955
4955
|
* Adds a rectangle to the bounds, optionally transformed by a matrix.
|
|
@@ -5035,8 +5035,8 @@ class st {
|
|
|
5035
5035
|
*/
|
|
5036
5036
|
applyMatrix(e) {
|
|
5037
5037
|
const t = this.minX, s = this.minY, n = this.maxX, r = this.maxY, { a: o, b: a, c: l, d: h, tx: f, ty: u } = e;
|
|
5038
|
-
let
|
|
5039
|
-
this.minX =
|
|
5038
|
+
let g = o * t + l * s + f, m = a * t + h * s + u;
|
|
5039
|
+
this.minX = g, this.minY = m, this.maxX = g, this.maxY = m, g = o * n + l * s + f, m = a * n + h * s + u, this.minX = g < this.minX ? g : this.minX, this.minY = m < this.minY ? m : this.minY, this.maxX = g > this.maxX ? g : this.maxX, this.maxY = m > this.maxY ? m : this.maxY, g = o * t + l * r + f, m = a * t + h * r + u, this.minX = g < this.minX ? g : this.minX, this.minY = m < this.minY ? m : this.minY, this.maxX = g > this.maxX ? g : this.maxX, this.maxY = m > this.maxY ? m : this.maxY, g = o * n + l * r + f, m = a * n + h * r + u, this.minX = g < this.minX ? g : this.minX, this.minY = m < this.minY ? m : this.minY, this.maxX = g > this.maxX ? g : this.maxX, this.maxY = m > this.maxY ? m : this.maxY;
|
|
5040
5040
|
}
|
|
5041
5041
|
/**
|
|
5042
5042
|
* Resizes the bounds object to fit within the given rectangle.
|
|
@@ -5378,9 +5378,9 @@ class st {
|
|
|
5378
5378
|
addVertexData(e, t, s, n) {
|
|
5379
5379
|
let r = this.minX, o = this.minY, a = this.maxX, l = this.maxY;
|
|
5380
5380
|
n || (n = this.matrix);
|
|
5381
|
-
const h = n.a, f = n.b, u = n.c,
|
|
5382
|
-
for (let
|
|
5383
|
-
const C = e[
|
|
5381
|
+
const h = n.a, f = n.b, u = n.c, g = n.d, m = n.tx, _ = n.ty;
|
|
5382
|
+
for (let v = t; v < s; v += 2) {
|
|
5383
|
+
const C = e[v], S = e[v + 1], A = h * C + u * S + m, I = f * C + g * S + _;
|
|
5384
5384
|
r = A < r ? A : r, o = I < o ? I : o, a = A > a ? A : a, l = I > l ? I : l;
|
|
5385
5385
|
}
|
|
5386
5386
|
this.minX = r, this.minY = o, this.maxX = a, this.maxY = l;
|
|
@@ -5903,8 +5903,8 @@ const W = {
|
|
|
5903
5903
|
* @param {number} dh - sprite height
|
|
5904
5904
|
*/
|
|
5905
5905
|
matrixAppendRotationInv: (i, e, t = 0, s = 0, n = 0, r = 0) => {
|
|
5906
|
-
const o = Ur[W.inv(e)], a = o.a, l = o.b, h = o.c, f = o.d, u = t - Math.min(0, a * n, h * r, a * n + h * r),
|
|
5907
|
-
i.a = a *
|
|
5906
|
+
const o = Ur[W.inv(e)], a = o.a, l = o.b, h = o.c, f = o.d, u = t - Math.min(0, a * n, h * r, a * n + h * r), g = s - Math.min(0, l * n, f * r, l * n + f * r), m = i.a, _ = i.b, v = i.c, C = i.d;
|
|
5907
|
+
i.a = a * m + l * v, i.b = a * _ + l * C, i.c = h * m + f * v, i.d = h * _ + f * C, i.tx = u * m + g * v + i.tx, i.ty = u * _ + g * C + i.ty;
|
|
5908
5908
|
},
|
|
5909
5909
|
/**
|
|
5910
5910
|
* Transforms rectangle coordinates based on texture packer rotation.
|
|
@@ -6053,8 +6053,8 @@ class ie extends gt {
|
|
|
6053
6053
|
const { uvs: e, frame: t } = this, { width: s, height: n } = this._source, r = t.x / s, o = t.y / n, a = t.width / s, l = t.height / n;
|
|
6054
6054
|
let h = this.rotate;
|
|
6055
6055
|
if (h) {
|
|
6056
|
-
const f = a / 2, u = l / 2,
|
|
6057
|
-
h = W.add(h, W.NW), e.x0 =
|
|
6056
|
+
const f = a / 2, u = l / 2, g = r + f, m = o + u;
|
|
6057
|
+
h = W.add(h, W.NW), e.x0 = g + f * W.uX(h), e.y0 = m + u * W.uY(h), h = W.add(h, 2), e.x1 = g + f * W.uX(h), e.y1 = m + u * W.uY(h), h = W.add(h, 2), e.x2 = g + f * W.uX(h), e.y2 = m + u * W.uY(h), h = W.add(h, 2), e.x3 = g + f * W.uX(h), e.y3 = m + u * W.uY(h);
|
|
6058
6058
|
} else
|
|
6059
6059
|
e.x0 = r, e.y0 = o, e.x1 = r + a, e.y1 = o, e.x2 = r + a, e.y2 = o + l, e.x3 = r, e.y3 = o + l;
|
|
6060
6060
|
}
|
|
@@ -6874,8 +6874,8 @@ class $e extends gt {
|
|
|
6874
6874
|
const e = this._didContainerChangeTick;
|
|
6875
6875
|
if (this._didLocalTransformChangeId === e) return;
|
|
6876
6876
|
this._didLocalTransformChangeId = e;
|
|
6877
|
-
const t = this.localTransform, s = this._scale, n = this._pivot, r = this._origin, o = this._position, a = s._x, l = s._y, h = n._x, f = n._y, u = -r._x,
|
|
6878
|
-
t.a = this._cx * a, t.b = this._sx * a, t.c = this._cy * l, t.d = this._sy * l, t.tx = o._x - (h * t.a + f * t.c) + (u * t.a +
|
|
6877
|
+
const t = this.localTransform, s = this._scale, n = this._pivot, r = this._origin, o = this._position, a = s._x, l = s._y, h = n._x, f = n._y, u = -r._x, g = -r._y;
|
|
6878
|
+
t.a = this._cx * a, t.b = this._sx * a, t.c = this._cy * l, t.d = this._sy * l, t.tx = o._x - (h * t.a + f * t.c) + (u * t.a + g * t.c) - u, t.ty = o._y - (h * t.b + f * t.d) + (u * t.b + g * t.d) - g;
|
|
6879
6879
|
}
|
|
6880
6880
|
// / ///// color related stuff
|
|
6881
6881
|
set alpha(e) {
|
|
@@ -7069,7 +7069,7 @@ class jl {
|
|
|
7069
7069
|
/* jsdoc/check-param-names */
|
|
7070
7070
|
emit(e, t, s, n, r, o, a, l) {
|
|
7071
7071
|
const { name: h, items: f } = this;
|
|
7072
|
-
for (let u = 0,
|
|
7072
|
+
for (let u = 0, g = f.length; u < g; u++)
|
|
7073
7073
|
f[u][h](e, t, s, n, r, o, a, l);
|
|
7074
7074
|
return this;
|
|
7075
7075
|
}
|
|
@@ -7410,9 +7410,9 @@ function Xl(i, e, t) {
|
|
|
7410
7410
|
const n = s.buffer.data;
|
|
7411
7411
|
let r = 1 / 0, o = 1 / 0, a = -1 / 0, l = -1 / 0;
|
|
7412
7412
|
const h = n.BYTES_PER_ELEMENT, f = (s.offset || 0) / h, u = (s.stride || 8) / h;
|
|
7413
|
-
for (let
|
|
7414
|
-
const
|
|
7415
|
-
|
|
7413
|
+
for (let g = f; g < n.length; g += u) {
|
|
7414
|
+
const m = n[g], _ = n[g + 1];
|
|
7415
|
+
m > a && (a = m), _ > l && (l = _), m < r && (r = m), _ < o && (o = _);
|
|
7416
7416
|
}
|
|
7417
7417
|
return t.minX = r, t.minY = o, t.maxX = a, t.maxY = l, t;
|
|
7418
7418
|
}
|
|
@@ -7621,8 +7621,8 @@ class Jl {
|
|
|
7621
7621
|
const t = this._size = e.size ?? 1e3, s = e.properties;
|
|
7622
7622
|
let n = 0, r = 0;
|
|
7623
7623
|
for (const f in s) {
|
|
7624
|
-
const u = s[f],
|
|
7625
|
-
u.dynamic ? r +=
|
|
7624
|
+
const u = s[f], g = ci(u.format);
|
|
7625
|
+
u.dynamic ? r += g.stride : n += g.stride;
|
|
7626
7626
|
}
|
|
7627
7627
|
this._dynamicStride = r / 4, this._staticStride = n / 4, this.staticAttributeBuffer = new xi(t * 4 * n), this.dynamicAttributeBuffer = new xi(t * 4 * r), this.indexBuffer = xn(t);
|
|
7628
7628
|
const o = new Kl();
|
|
@@ -7639,18 +7639,18 @@ class Jl {
|
|
|
7639
7639
|
usage: he.VERTEX | he.COPY_DST
|
|
7640
7640
|
});
|
|
7641
7641
|
for (const f in s) {
|
|
7642
|
-
const u = s[f],
|
|
7642
|
+
const u = s[f], g = ci(u.format);
|
|
7643
7643
|
u.dynamic ? (o.addAttribute(u.attributeName, {
|
|
7644
7644
|
buffer: this._dynamicBuffer,
|
|
7645
7645
|
stride: this._dynamicStride * 4,
|
|
7646
7646
|
offset: a * 4,
|
|
7647
7647
|
format: u.format
|
|
7648
|
-
}), a +=
|
|
7648
|
+
}), a += g.size) : (o.addAttribute(u.attributeName, {
|
|
7649
7649
|
buffer: this._staticBuffer,
|
|
7650
7650
|
stride: this._staticStride * 4,
|
|
7651
7651
|
offset: l * 4,
|
|
7652
7652
|
format: u.format
|
|
7653
|
-
}), l +=
|
|
7653
|
+
}), l += g.size);
|
|
7654
7654
|
}
|
|
7655
7655
|
o.addIndex(this.indexBuffer);
|
|
7656
7656
|
const h = this.getParticleUpdate(s);
|
|
@@ -7699,8 +7699,8 @@ const ec = {
|
|
|
7699
7699
|
aVertex: (i, e, t, s, n) => {
|
|
7700
7700
|
let r = 0, o = 0, a = 0, l = 0;
|
|
7701
7701
|
for (let h = 0; h < i.length; ++h) {
|
|
7702
|
-
const f = i[h], u = f.texture,
|
|
7703
|
-
C ? (o = C.x - _ *
|
|
7702
|
+
const f = i[h], u = f.texture, g = f.scaleX, m = f.scaleY, _ = f.anchorX, v = f.anchorY, C = u.trim, S = u.orig;
|
|
7703
|
+
C ? (o = C.x - _ * S.width, r = o + C.width, l = C.y - v * S.height, a = l + C.height) : (r = S.width * (1 - _), o = S.width * -_, a = S.height * (1 - v), l = S.height * -v), e[s] = o * g, e[s + 1] = l * m, e[s + n] = r * g, e[s + n + 1] = l * m, e[s + n * 2] = r * g, e[s + n * 2 + 1] = a * m, e[s + n * 3] = o * g, e[s + n * 3 + 1] = a * m, s += n * 4;
|
|
7704
7704
|
}
|
|
7705
7705
|
},
|
|
7706
7706
|
aPosition: (i, e, t, s, n) => {
|
|
@@ -7909,7 +7909,7 @@ function ac(i) {
|
|
|
7909
7909
|
return (r, o, a, l, h) => {
|
|
7910
7910
|
let f = 0;
|
|
7911
7911
|
for (let u = 0; u < e.data.size * t; u++) {
|
|
7912
|
-
for (let
|
|
7912
|
+
for (let g = 0; g < s; g++)
|
|
7913
7913
|
o[a++] = h[f++];
|
|
7914
7914
|
a += n;
|
|
7915
7915
|
}
|
|
@@ -7926,7 +7926,7 @@ function lc(i) {
|
|
|
7926
7926
|
return (r, o, a, l, h) => {
|
|
7927
7927
|
let f = 0;
|
|
7928
7928
|
for (let u = 0; u < e.data.size * (t / 4); u++) {
|
|
7929
|
-
for (let
|
|
7929
|
+
for (let g = 0; g < t / 4; g++)
|
|
7930
7930
|
o[a++] = h[f++];
|
|
7931
7931
|
a += n;
|
|
7932
7932
|
}
|
|
@@ -8151,7 +8151,7 @@ const pc = {
|
|
|
8151
8151
|
},
|
|
8152
8152
|
test: () => !0,
|
|
8153
8153
|
load: async () => {
|
|
8154
|
-
await import("./browserAll-
|
|
8154
|
+
await import("./browserAll-CcRDLEJc.js");
|
|
8155
8155
|
}
|
|
8156
8156
|
}, mc = {
|
|
8157
8157
|
extension: {
|
|
@@ -8161,7 +8161,7 @@ const pc = {
|
|
|
8161
8161
|
},
|
|
8162
8162
|
test: () => typeof self < "u" && self.WorkerGlobalScope !== void 0,
|
|
8163
8163
|
load: async () => {
|
|
8164
|
-
await import("./webworkerAll-
|
|
8164
|
+
await import("./webworkerAll-CIC3WsZz.js");
|
|
8165
8165
|
}
|
|
8166
8166
|
};
|
|
8167
8167
|
function gc(i, e, t) {
|
|
@@ -10131,34 +10131,34 @@ class oo {
|
|
|
10131
10131
|
loadParser: h,
|
|
10132
10132
|
parser: f
|
|
10133
10133
|
} = r;
|
|
10134
|
-
const u = Nt(o).map((
|
|
10135
|
-
Array.isArray(
|
|
10136
|
-
const
|
|
10137
|
-
const C = this._parsers.find((
|
|
10134
|
+
const u = Nt(o).map((v) => typeof v == "string" ? Tc(v) : Array.isArray(v) ? v : [v]), g = this.getAlias(r);
|
|
10135
|
+
Array.isArray(g) ? g.forEach(s) : s(g);
|
|
10136
|
+
const m = [], _ = (v) => {
|
|
10137
|
+
const C = this._parsers.find((S) => S.test(v));
|
|
10138
10138
|
return {
|
|
10139
|
-
src:
|
|
10140
|
-
...C == null ? void 0 : C.parse(
|
|
10139
|
+
src: v,
|
|
10140
|
+
...C == null ? void 0 : C.parse(v)
|
|
10141
10141
|
};
|
|
10142
10142
|
};
|
|
10143
|
-
u.forEach((
|
|
10144
|
-
|
|
10145
|
-
let
|
|
10146
|
-
if (typeof C != "object" ?
|
|
10143
|
+
u.forEach((v) => {
|
|
10144
|
+
v.forEach((C) => {
|
|
10145
|
+
let S = {};
|
|
10146
|
+
if (typeof C != "object" ? S = _(C) : (a = C.data ?? a, l = C.format ?? l, (C.loadParser || C.parser) && (h = C.loadParser ?? h, f = C.parser ?? f), S = {
|
|
10147
10147
|
..._(C.src),
|
|
10148
10148
|
...C
|
|
10149
|
-
}), !
|
|
10150
|
-
throw new Error(`[Resolver] alias is undefined for this asset: ${
|
|
10151
|
-
|
|
10152
|
-
aliases:
|
|
10149
|
+
}), !g)
|
|
10150
|
+
throw new Error(`[Resolver] alias is undefined for this asset: ${S.src}`);
|
|
10151
|
+
S = this._buildResolvedAsset(S, {
|
|
10152
|
+
aliases: g,
|
|
10153
10153
|
data: a,
|
|
10154
10154
|
format: l,
|
|
10155
10155
|
loadParser: h,
|
|
10156
10156
|
parser: f,
|
|
10157
10157
|
progressSize: r.progressSize
|
|
10158
|
-
}),
|
|
10158
|
+
}), m.push(S);
|
|
10159
10159
|
});
|
|
10160
|
-
}),
|
|
10161
|
-
this._assetMap[
|
|
10160
|
+
}), g.forEach((v) => {
|
|
10161
|
+
this._assetMap[v] = m;
|
|
10162
10162
|
});
|
|
10163
10163
|
});
|
|
10164
10164
|
}
|
|
@@ -10502,7 +10502,7 @@ const kc = {
|
|
|
10502
10502
|
return hi.extname(e.src).toLowerCase() === ".json" && !!i.frames;
|
|
10503
10503
|
},
|
|
10504
10504
|
async parse(i, e, t) {
|
|
10505
|
-
var u,
|
|
10505
|
+
var u, g;
|
|
10506
10506
|
const {
|
|
10507
10507
|
texture: s,
|
|
10508
10508
|
// if user need to use preloaded texture
|
|
@@ -10519,8 +10519,8 @@ const kc = {
|
|
|
10519
10519
|
if (s instanceof ie)
|
|
10520
10520
|
l = s;
|
|
10521
10521
|
else {
|
|
10522
|
-
const
|
|
10523
|
-
l = (await t.load([{ src:
|
|
10522
|
+
const m = kn(a + (n ?? i.meta.image), e.src);
|
|
10523
|
+
l = (await t.load([{ src: m, data: r }]))[m];
|
|
10524
10524
|
}
|
|
10525
10525
|
const h = new Mn({
|
|
10526
10526
|
texture: l.source,
|
|
@@ -10530,12 +10530,12 @@ const kc = {
|
|
|
10530
10530
|
await h.parse();
|
|
10531
10531
|
const f = (u = i == null ? void 0 : i.meta) == null ? void 0 : u.related_multi_packs;
|
|
10532
10532
|
if (Array.isArray(f)) {
|
|
10533
|
-
const
|
|
10534
|
-
for (const
|
|
10535
|
-
if (typeof
|
|
10533
|
+
const m = [];
|
|
10534
|
+
for (const v of f) {
|
|
10535
|
+
if (typeof v != "string")
|
|
10536
10536
|
continue;
|
|
10537
|
-
let C = a +
|
|
10538
|
-
(
|
|
10537
|
+
let C = a + v;
|
|
10538
|
+
(g = e.data) != null && g.ignoreMultiPack || (C = kn(C, e.src), m.push(t.load({
|
|
10539
10539
|
src: C,
|
|
10540
10540
|
data: {
|
|
10541
10541
|
textureOptions: r,
|
|
@@ -10543,9 +10543,9 @@ const kc = {
|
|
|
10543
10543
|
}
|
|
10544
10544
|
})));
|
|
10545
10545
|
}
|
|
10546
|
-
const _ = await Promise.all(
|
|
10547
|
-
h.linkedSheets = _, _.forEach((
|
|
10548
|
-
|
|
10546
|
+
const _ = await Promise.all(m);
|
|
10547
|
+
h.linkedSheets = _, _.forEach((v) => {
|
|
10548
|
+
v.linkedSheets = [h].concat(h.linkedSheets.filter((C) => C !== v));
|
|
10549
10549
|
});
|
|
10550
10550
|
}
|
|
10551
10551
|
return h;
|
|
@@ -10602,17 +10602,17 @@ async function Dc(i) {
|
|
|
10602
10602
|
for (let r = 0; r < e.length; r++) {
|
|
10603
10603
|
const o = e[r];
|
|
10604
10604
|
if (o === "webgpu" && await Nc()) {
|
|
10605
|
-
const { WebGPURenderer: a } = await import("./WebGPURenderer-
|
|
10605
|
+
const { WebGPURenderer: a } = await import("./WebGPURenderer-fm_uBJOT.js");
|
|
10606
10606
|
t = a, s = { ...i, ...i.webgpu };
|
|
10607
10607
|
break;
|
|
10608
10608
|
} else if (o === "webgl" && Mc(
|
|
10609
10609
|
i.failIfMajorPerformanceCaveat ?? Ys.defaultOptions.failIfMajorPerformanceCaveat
|
|
10610
10610
|
)) {
|
|
10611
|
-
const { WebGLRenderer: a } = await import("./WebGLRenderer-
|
|
10611
|
+
const { WebGLRenderer: a } = await import("./WebGLRenderer-zb0jiqTg.js");
|
|
10612
10612
|
t = a, s = { ...i, ...i.webgl };
|
|
10613
10613
|
break;
|
|
10614
10614
|
} else if (o === "canvas") {
|
|
10615
|
-
const { CanvasRenderer: a } = await import("./CanvasRenderer-
|
|
10615
|
+
const { CanvasRenderer: a } = await import("./CanvasRenderer-Bv-aQ5u9.js");
|
|
10616
10616
|
t = a, s = { ...i, ...i.canvasOptions };
|
|
10617
10617
|
break;
|
|
10618
10618
|
}
|
|
@@ -11011,21 +11011,21 @@ const ei = {
|
|
|
11011
11011
|
function Ri(i) {
|
|
11012
11012
|
const { target: e, props: t, duration: s, easing: n = ei.easeOutCubic, delay: r = 0, onComplete: o, ticker: a } = i;
|
|
11013
11013
|
if (Fc()) {
|
|
11014
|
-
for (const
|
|
11015
|
-
e[
|
|
11014
|
+
for (const g of Object.keys(t))
|
|
11015
|
+
e[g] = t[g];
|
|
11016
11016
|
return o == null || o(), () => {
|
|
11017
11017
|
};
|
|
11018
11018
|
}
|
|
11019
11019
|
const l = {};
|
|
11020
|
-
for (const
|
|
11021
|
-
l[
|
|
11020
|
+
for (const g of Object.keys(t))
|
|
11021
|
+
l[g] = e[g];
|
|
11022
11022
|
let h = -r, f = !1;
|
|
11023
|
-
const u = (
|
|
11024
|
-
if (f || (h +=
|
|
11025
|
-
const
|
|
11026
|
-
for (const
|
|
11027
|
-
e[
|
|
11028
|
-
|
|
11023
|
+
const u = (g) => {
|
|
11024
|
+
if (f || (h += g.deltaMS, h < 0)) return;
|
|
11025
|
+
const m = Math.min(h / s, 1), _ = n(m);
|
|
11026
|
+
for (const v of Object.keys(t))
|
|
11027
|
+
e[v] = l[v] + (t[v] - l[v]) * _;
|
|
11028
|
+
m >= 1 && (a.remove(u), o == null || o());
|
|
11029
11029
|
};
|
|
11030
11030
|
return a.add(u), () => {
|
|
11031
11031
|
f = !0, a.remove(u);
|
|
@@ -11417,48 +11417,48 @@ class Yc {
|
|
|
11417
11417
|
var fs = {}, Zt = {}, Ln;
|
|
11418
11418
|
function Xc() {
|
|
11419
11419
|
if (Ln) return Zt;
|
|
11420
|
-
Ln = 1, Zt.byteLength = a, Zt.toByteArray = h, Zt.fromByteArray =
|
|
11420
|
+
Ln = 1, Zt.byteLength = a, Zt.toByteArray = h, Zt.fromByteArray = g;
|
|
11421
11421
|
for (var i = [], e = [], t = typeof Uint8Array < "u" ? Uint8Array : Array, s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", n = 0, r = s.length; n < r; ++n)
|
|
11422
11422
|
i[n] = s[n], e[s.charCodeAt(n)] = n;
|
|
11423
11423
|
e[45] = 62, e[95] = 63;
|
|
11424
|
-
function o(
|
|
11425
|
-
var _ =
|
|
11424
|
+
function o(m) {
|
|
11425
|
+
var _ = m.length;
|
|
11426
11426
|
if (_ % 4 > 0)
|
|
11427
11427
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
11428
|
-
var
|
|
11429
|
-
|
|
11430
|
-
var C =
|
|
11431
|
-
return [
|
|
11428
|
+
var v = m.indexOf("=");
|
|
11429
|
+
v === -1 && (v = _);
|
|
11430
|
+
var C = v === _ ? 0 : 4 - v % 4;
|
|
11431
|
+
return [v, C];
|
|
11432
11432
|
}
|
|
11433
|
-
function a(
|
|
11434
|
-
var _ = o(
|
|
11435
|
-
return (
|
|
11433
|
+
function a(m) {
|
|
11434
|
+
var _ = o(m), v = _[0], C = _[1];
|
|
11435
|
+
return (v + C) * 3 / 4 - C;
|
|
11436
11436
|
}
|
|
11437
|
-
function l(
|
|
11438
|
-
return (_ +
|
|
11437
|
+
function l(m, _, v) {
|
|
11438
|
+
return (_ + v) * 3 / 4 - v;
|
|
11439
11439
|
}
|
|
11440
|
-
function h(
|
|
11441
|
-
var _,
|
|
11440
|
+
function h(m) {
|
|
11441
|
+
var _, v = o(m), C = v[0], S = v[1], A = new t(l(m, C, S)), I = 0, w = S > 0 ? C - 4 : C, T;
|
|
11442
11442
|
for (T = 0; T < w; T += 4)
|
|
11443
|
-
_ = e[
|
|
11444
|
-
return
|
|
11443
|
+
_ = e[m.charCodeAt(T)] << 18 | e[m.charCodeAt(T + 1)] << 12 | e[m.charCodeAt(T + 2)] << 6 | e[m.charCodeAt(T + 3)], A[I++] = _ >> 16 & 255, A[I++] = _ >> 8 & 255, A[I++] = _ & 255;
|
|
11444
|
+
return S === 2 && (_ = e[m.charCodeAt(T)] << 2 | e[m.charCodeAt(T + 1)] >> 4, A[I++] = _ & 255), S === 1 && (_ = e[m.charCodeAt(T)] << 10 | e[m.charCodeAt(T + 1)] << 4 | e[m.charCodeAt(T + 2)] >> 2, A[I++] = _ >> 8 & 255, A[I++] = _ & 255), A;
|
|
11445
11445
|
}
|
|
11446
|
-
function f(
|
|
11447
|
-
return i[
|
|
11446
|
+
function f(m) {
|
|
11447
|
+
return i[m >> 18 & 63] + i[m >> 12 & 63] + i[m >> 6 & 63] + i[m & 63];
|
|
11448
11448
|
}
|
|
11449
|
-
function u(
|
|
11450
|
-
for (var C,
|
|
11451
|
-
C = (
|
|
11452
|
-
return
|
|
11449
|
+
function u(m, _, v) {
|
|
11450
|
+
for (var C, S = [], A = _; A < v; A += 3)
|
|
11451
|
+
C = (m[A] << 16 & 16711680) + (m[A + 1] << 8 & 65280) + (m[A + 2] & 255), S.push(f(C));
|
|
11452
|
+
return S.join("");
|
|
11453
11453
|
}
|
|
11454
|
-
function m
|
|
11455
|
-
for (var _,
|
|
11456
|
-
|
|
11457
|
-
return C === 1 ? (_ =
|
|
11454
|
+
function g(m) {
|
|
11455
|
+
for (var _, v = m.length, C = v % 3, S = [], A = 16383, I = 0, w = v - C; I < w; I += A)
|
|
11456
|
+
S.push(u(m, I, I + A > w ? w : I + A));
|
|
11457
|
+
return C === 1 ? (_ = m[v - 1], S.push(
|
|
11458
11458
|
i[_ >> 2] + i[_ << 4 & 63] + "=="
|
|
11459
|
-
)) : C === 2 && (_ = (
|
|
11459
|
+
)) : C === 2 && (_ = (m[v - 2] << 8) + m[v - 1], S.push(
|
|
11460
11460
|
i[_ >> 10] + i[_ >> 4 & 63] + i[_ << 2 & 63] + "="
|
|
11461
|
-
)),
|
|
11461
|
+
)), S.join("");
|
|
11462
11462
|
}
|
|
11463
11463
|
return Zt;
|
|
11464
11464
|
}
|
|
@@ -11467,26 +11467,26 @@ var Oi = {};
|
|
|
11467
11467
|
var Pn;
|
|
11468
11468
|
function qc() {
|
|
11469
11469
|
return Pn || (Pn = 1, Oi.read = function(i, e, t, s, n) {
|
|
11470
|
-
var r, o, a = n * 8 - s - 1, l = (1 << a) - 1, h = l >> 1, f = -7, u = t ? n - 1 : 0,
|
|
11471
|
-
for (u +=
|
|
11470
|
+
var r, o, a = n * 8 - s - 1, l = (1 << a) - 1, h = l >> 1, f = -7, u = t ? n - 1 : 0, g = t ? -1 : 1, m = i[e + u];
|
|
11471
|
+
for (u += g, r = m & (1 << -f) - 1, m >>= -f, f += a; f > 0; r = r * 256 + i[e + u], u += g, f -= 8)
|
|
11472
11472
|
;
|
|
11473
|
-
for (o = r & (1 << -f) - 1, r >>= -f, f += s; f > 0; o = o * 256 + i[e + u], u +=
|
|
11473
|
+
for (o = r & (1 << -f) - 1, r >>= -f, f += s; f > 0; o = o * 256 + i[e + u], u += g, f -= 8)
|
|
11474
11474
|
;
|
|
11475
11475
|
if (r === 0)
|
|
11476
11476
|
r = 1 - h;
|
|
11477
11477
|
else {
|
|
11478
11478
|
if (r === l)
|
|
11479
|
-
return o ? NaN : (
|
|
11479
|
+
return o ? NaN : (m ? -1 : 1) * (1 / 0);
|
|
11480
11480
|
o = o + Math.pow(2, s), r = r - h;
|
|
11481
11481
|
}
|
|
11482
|
-
return (
|
|
11482
|
+
return (m ? -1 : 1) * o * Math.pow(2, r - s);
|
|
11483
11483
|
}, Oi.write = function(i, e, t, s, n, r) {
|
|
11484
|
-
var o, a, l, h = r * 8 - n - 1, f = (1 << h) - 1, u = f >> 1,
|
|
11485
|
-
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (a = isNaN(e) ? 1 : 0, o = f) : (o = Math.floor(Math.log(e) / Math.LN2), e * (l = Math.pow(2, -o)) < 1 && (o--, l *= 2), o + u >= 1 ? e +=
|
|
11484
|
+
var o, a, l, h = r * 8 - n - 1, f = (1 << h) - 1, u = f >> 1, g = n === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, m = s ? 0 : r - 1, _ = s ? 1 : -1, v = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
11485
|
+
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (a = isNaN(e) ? 1 : 0, o = f) : (o = Math.floor(Math.log(e) / Math.LN2), e * (l = Math.pow(2, -o)) < 1 && (o--, l *= 2), o + u >= 1 ? e += g / l : e += g * Math.pow(2, 1 - u), e * l >= 2 && (o++, l /= 2), o + u >= f ? (a = 0, o = f) : o + u >= 1 ? (a = (e * l - 1) * Math.pow(2, n), o = o + u) : (a = e * Math.pow(2, u - 1) * Math.pow(2, n), o = 0)); n >= 8; i[t + m] = a & 255, m += _, a /= 256, n -= 8)
|
|
11486
11486
|
;
|
|
11487
|
-
for (o = o << n | a, h += n; h > 0; i[t +
|
|
11487
|
+
for (o = o << n | a, h += n; h > 0; i[t + m] = o & 255, m += _, o /= 256, h -= 8)
|
|
11488
11488
|
;
|
|
11489
|
-
i[t +
|
|
11489
|
+
i[t + m - _] |= v * 128;
|
|
11490
11490
|
}), Oi;
|
|
11491
11491
|
}
|
|
11492
11492
|
/*!
|
|
@@ -11546,7 +11546,7 @@ function Kc() {
|
|
|
11546
11546
|
a.poolSize = 8192;
|
|
11547
11547
|
function l(p, c, d) {
|
|
11548
11548
|
if (typeof p == "string")
|
|
11549
|
-
return
|
|
11549
|
+
return g(p, c);
|
|
11550
11550
|
if (ArrayBuffer.isView(p))
|
|
11551
11551
|
return _(p);
|
|
11552
11552
|
if (p == null)
|
|
@@ -11554,7 +11554,7 @@ function Kc() {
|
|
|
11554
11554
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof p
|
|
11555
11555
|
);
|
|
11556
11556
|
if (ze(p, ArrayBuffer) || p && ze(p.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (ze(p, SharedArrayBuffer) || p && ze(p.buffer, SharedArrayBuffer)))
|
|
11557
|
-
return
|
|
11557
|
+
return v(p, c, d);
|
|
11558
11558
|
if (typeof p == "number")
|
|
11559
11559
|
throw new TypeError(
|
|
11560
11560
|
'The "value" argument must not be of type number. Received type number'
|
|
@@ -11562,8 +11562,8 @@ function Kc() {
|
|
|
11562
11562
|
const y = p.valueOf && p.valueOf();
|
|
11563
11563
|
if (y != null && y !== p)
|
|
11564
11564
|
return a.from(y, c, d);
|
|
11565
|
-
const
|
|
11566
|
-
if (
|
|
11565
|
+
const b = C(p);
|
|
11566
|
+
if (b) return b;
|
|
11567
11567
|
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof p[Symbol.toPrimitive] == "function")
|
|
11568
11568
|
return a.from(p[Symbol.toPrimitive]("string"), c, d);
|
|
11569
11569
|
throw new TypeError(
|
|
@@ -11586,23 +11586,23 @@ function Kc() {
|
|
|
11586
11586
|
return f(p, c, d);
|
|
11587
11587
|
};
|
|
11588
11588
|
function u(p) {
|
|
11589
|
-
return h(p), o(p < 0 ? 0 :
|
|
11589
|
+
return h(p), o(p < 0 ? 0 : S(p) | 0);
|
|
11590
11590
|
}
|
|
11591
11591
|
a.allocUnsafe = function(p) {
|
|
11592
11592
|
return u(p);
|
|
11593
11593
|
}, a.allocUnsafeSlow = function(p) {
|
|
11594
11594
|
return u(p);
|
|
11595
11595
|
};
|
|
11596
|
-
function
|
|
11596
|
+
function g(p, c) {
|
|
11597
11597
|
if ((typeof c != "string" || c === "") && (c = "utf8"), !a.isEncoding(c))
|
|
11598
11598
|
throw new TypeError("Unknown encoding: " + c);
|
|
11599
11599
|
const d = I(p, c) | 0;
|
|
11600
11600
|
let y = o(d);
|
|
11601
|
-
const
|
|
11602
|
-
return
|
|
11601
|
+
const b = y.write(p, c);
|
|
11602
|
+
return b !== d && (y = y.slice(0, b)), y;
|
|
11603
11603
|
}
|
|
11604
|
-
function
|
|
11605
|
-
const c = p.length < 0 ? 0 :
|
|
11604
|
+
function m(p) {
|
|
11605
|
+
const c = p.length < 0 ? 0 : S(p.length) | 0, d = o(c);
|
|
11606
11606
|
for (let y = 0; y < c; y += 1)
|
|
11607
11607
|
d[y] = p[y] & 255;
|
|
11608
11608
|
return d;
|
|
@@ -11610,11 +11610,11 @@ function Kc() {
|
|
|
11610
11610
|
function _(p) {
|
|
11611
11611
|
if (ze(p, Uint8Array)) {
|
|
11612
11612
|
const c = new Uint8Array(p);
|
|
11613
|
-
return
|
|
11613
|
+
return v(c.buffer, c.byteOffset, c.byteLength);
|
|
11614
11614
|
}
|
|
11615
|
-
return
|
|
11615
|
+
return m(p);
|
|
11616
11616
|
}
|
|
11617
|
-
function
|
|
11617
|
+
function v(p, c, d) {
|
|
11618
11618
|
if (c < 0 || p.byteLength < c)
|
|
11619
11619
|
throw new RangeError('"offset" is outside of buffer bounds');
|
|
11620
11620
|
if (p.byteLength < c + (d || 0))
|
|
@@ -11624,15 +11624,15 @@ function Kc() {
|
|
|
11624
11624
|
}
|
|
11625
11625
|
function C(p) {
|
|
11626
11626
|
if (a.isBuffer(p)) {
|
|
11627
|
-
const c =
|
|
11627
|
+
const c = S(p.length) | 0, d = o(c);
|
|
11628
11628
|
return d.length === 0 || p.copy(d, 0, 0, c), d;
|
|
11629
11629
|
}
|
|
11630
11630
|
if (p.length !== void 0)
|
|
11631
|
-
return typeof p.length != "number" || Ji(p.length) ? o(0) :
|
|
11631
|
+
return typeof p.length != "number" || Ji(p.length) ? o(0) : m(p);
|
|
11632
11632
|
if (p.type === "Buffer" && Array.isArray(p.data))
|
|
11633
|
-
return
|
|
11633
|
+
return m(p.data);
|
|
11634
11634
|
}
|
|
11635
|
-
function
|
|
11635
|
+
function S(p) {
|
|
11636
11636
|
if (p >= n)
|
|
11637
11637
|
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + n.toString(16) + " bytes");
|
|
11638
11638
|
return p | 0;
|
|
@@ -11648,13 +11648,13 @@ function Kc() {
|
|
|
11648
11648
|
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
11649
11649
|
);
|
|
11650
11650
|
if (c === d) return 0;
|
|
11651
|
-
let y = c.length,
|
|
11652
|
-
for (let
|
|
11653
|
-
if (c[
|
|
11654
|
-
y = c[
|
|
11651
|
+
let y = c.length, b = d.length;
|
|
11652
|
+
for (let E = 0, x = Math.min(y, b); E < x; ++E)
|
|
11653
|
+
if (c[E] !== d[E]) {
|
|
11654
|
+
y = c[E], b = d[E];
|
|
11655
11655
|
break;
|
|
11656
11656
|
}
|
|
11657
|
-
return y <
|
|
11657
|
+
return y < b ? -1 : b < y ? 1 : 0;
|
|
11658
11658
|
}, a.isEncoding = function(c) {
|
|
11659
11659
|
switch (String(c).toLowerCase()) {
|
|
11660
11660
|
case "hex":
|
|
@@ -11681,23 +11681,23 @@ function Kc() {
|
|
|
11681
11681
|
if (d === void 0)
|
|
11682
11682
|
for (d = 0, y = 0; y < c.length; ++y)
|
|
11683
11683
|
d += c[y].length;
|
|
11684
|
-
const
|
|
11685
|
-
let
|
|
11684
|
+
const b = a.allocUnsafe(d);
|
|
11685
|
+
let E = 0;
|
|
11686
11686
|
for (y = 0; y < c.length; ++y) {
|
|
11687
11687
|
let x = c[y];
|
|
11688
11688
|
if (ze(x, Uint8Array))
|
|
11689
|
-
|
|
11690
|
-
|
|
11689
|
+
E + x.length > b.length ? (a.isBuffer(x) || (x = a.from(x)), x.copy(b, E)) : Uint8Array.prototype.set.call(
|
|
11690
|
+
b,
|
|
11691
11691
|
x,
|
|
11692
|
-
|
|
11692
|
+
E
|
|
11693
11693
|
);
|
|
11694
11694
|
else if (a.isBuffer(x))
|
|
11695
|
-
x.copy(
|
|
11695
|
+
x.copy(b, E);
|
|
11696
11696
|
else
|
|
11697
11697
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
11698
|
-
|
|
11698
|
+
E += x.length;
|
|
11699
11699
|
}
|
|
11700
|
-
return
|
|
11700
|
+
return b;
|
|
11701
11701
|
};
|
|
11702
11702
|
function I(p, c) {
|
|
11703
11703
|
if (a.isBuffer(p))
|
|
@@ -11710,7 +11710,7 @@ function Kc() {
|
|
|
11710
11710
|
);
|
|
11711
11711
|
const d = p.length, y = arguments.length > 2 && arguments[2] === !0;
|
|
11712
11712
|
if (!y && d === 0) return 0;
|
|
11713
|
-
let
|
|
11713
|
+
let b = !1;
|
|
11714
11714
|
for (; ; )
|
|
11715
11715
|
switch (c) {
|
|
11716
11716
|
case "ascii":
|
|
@@ -11730,9 +11730,9 @@ function Kc() {
|
|
|
11730
11730
|
case "base64":
|
|
11731
11731
|
return en(p).length;
|
|
11732
11732
|
default:
|
|
11733
|
-
if (
|
|
11733
|
+
if (b)
|
|
11734
11734
|
return y ? -1 : Zi(p).length;
|
|
11735
|
-
c = ("" + c).toLowerCase(),
|
|
11735
|
+
c = ("" + c).toLowerCase(), b = !0;
|
|
11736
11736
|
}
|
|
11737
11737
|
}
|
|
11738
11738
|
a.byteLength = I;
|
|
@@ -11800,22 +11800,22 @@ function Kc() {
|
|
|
11800
11800
|
let c = "";
|
|
11801
11801
|
const d = i.INSPECT_MAX_BYTES;
|
|
11802
11802
|
return c = this.toString("hex", 0, d).replace(/(.{2})/g, "$1 ").trim(), this.length > d && (c += " ... "), "<Buffer " + c + ">";
|
|
11803
|
-
}, s && (a.prototype[s] = a.prototype.inspect), a.prototype.compare = function(c, d, y,
|
|
11803
|
+
}, s && (a.prototype[s] = a.prototype.inspect), a.prototype.compare = function(c, d, y, b, E) {
|
|
11804
11804
|
if (ze(c, Uint8Array) && (c = a.from(c, c.offset, c.byteLength)), !a.isBuffer(c))
|
|
11805
11805
|
throw new TypeError(
|
|
11806
11806
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof c
|
|
11807
11807
|
);
|
|
11808
|
-
if (d === void 0 && (d = 0), y === void 0 && (y = c ? c.length : 0),
|
|
11808
|
+
if (d === void 0 && (d = 0), y === void 0 && (y = c ? c.length : 0), b === void 0 && (b = 0), E === void 0 && (E = this.length), d < 0 || y > c.length || b < 0 || E > this.length)
|
|
11809
11809
|
throw new RangeError("out of range index");
|
|
11810
|
-
if (
|
|
11810
|
+
if (b >= E && d >= y)
|
|
11811
11811
|
return 0;
|
|
11812
|
-
if (
|
|
11812
|
+
if (b >= E)
|
|
11813
11813
|
return -1;
|
|
11814
11814
|
if (d >= y)
|
|
11815
11815
|
return 1;
|
|
11816
|
-
if (d >>>= 0, y >>>= 0,
|
|
11817
|
-
let x =
|
|
11818
|
-
const K = Math.min(x, N), Y = this.slice(
|
|
11816
|
+
if (d >>>= 0, y >>>= 0, b >>>= 0, E >>>= 0, this === c) return 0;
|
|
11817
|
+
let x = E - b, N = y - d;
|
|
11818
|
+
const K = Math.min(x, N), Y = this.slice(b, E), Z = c.slice(d, y);
|
|
11819
11819
|
for (let G = 0; G < K; ++G)
|
|
11820
11820
|
if (Y[G] !== Z[G]) {
|
|
11821
11821
|
x = Y[G], N = Z[G];
|
|
@@ -11823,36 +11823,36 @@ function Kc() {
|
|
|
11823
11823
|
}
|
|
11824
11824
|
return x < N ? -1 : N < x ? 1 : 0;
|
|
11825
11825
|
};
|
|
11826
|
-
function M(p, c, d, y,
|
|
11826
|
+
function M(p, c, d, y, b) {
|
|
11827
11827
|
if (p.length === 0) return -1;
|
|
11828
|
-
if (typeof d == "string" ? (y = d, d = 0) : d > 2147483647 ? d = 2147483647 : d < -2147483648 && (d = -2147483648), d = +d, Ji(d) && (d =
|
|
11829
|
-
if (
|
|
11828
|
+
if (typeof d == "string" ? (y = d, d = 0) : d > 2147483647 ? d = 2147483647 : d < -2147483648 && (d = -2147483648), d = +d, Ji(d) && (d = b ? 0 : p.length - 1), d < 0 && (d = p.length + d), d >= p.length) {
|
|
11829
|
+
if (b) return -1;
|
|
11830
11830
|
d = p.length - 1;
|
|
11831
11831
|
} else if (d < 0)
|
|
11832
|
-
if (
|
|
11832
|
+
if (b) d = 0;
|
|
11833
11833
|
else return -1;
|
|
11834
11834
|
if (typeof c == "string" && (c = a.from(c, y)), a.isBuffer(c))
|
|
11835
|
-
return c.length === 0 ? -1 : F(p, c, d, y,
|
|
11835
|
+
return c.length === 0 ? -1 : F(p, c, d, y, b);
|
|
11836
11836
|
if (typeof c == "number")
|
|
11837
|
-
return c = c & 255, typeof Uint8Array.prototype.indexOf == "function" ?
|
|
11837
|
+
return c = c & 255, typeof Uint8Array.prototype.indexOf == "function" ? b ? Uint8Array.prototype.indexOf.call(p, c, d) : Uint8Array.prototype.lastIndexOf.call(p, c, d) : F(p, [c], d, y, b);
|
|
11838
11838
|
throw new TypeError("val must be string, number or Buffer");
|
|
11839
11839
|
}
|
|
11840
|
-
function F(p, c, d, y,
|
|
11841
|
-
let
|
|
11840
|
+
function F(p, c, d, y, b) {
|
|
11841
|
+
let E = 1, x = p.length, N = c.length;
|
|
11842
11842
|
if (y !== void 0 && (y = String(y).toLowerCase(), y === "ucs2" || y === "ucs-2" || y === "utf16le" || y === "utf-16le")) {
|
|
11843
11843
|
if (p.length < 2 || c.length < 2)
|
|
11844
11844
|
return -1;
|
|
11845
|
-
|
|
11845
|
+
E = 2, x /= 2, N /= 2, d /= 2;
|
|
11846
11846
|
}
|
|
11847
11847
|
function K(Z, G) {
|
|
11848
|
-
return
|
|
11848
|
+
return E === 1 ? Z[G] : Z.readUInt16BE(G * E);
|
|
11849
11849
|
}
|
|
11850
11850
|
let Y;
|
|
11851
|
-
if (
|
|
11851
|
+
if (b) {
|
|
11852
11852
|
let Z = -1;
|
|
11853
11853
|
for (Y = d; Y < x; Y++)
|
|
11854
11854
|
if (K(p, Y) === K(c, Z === -1 ? 0 : Y - Z)) {
|
|
11855
|
-
if (Z === -1 && (Z = Y), Y - Z + 1 === N) return Z *
|
|
11855
|
+
if (Z === -1 && (Z = Y), Y - Z + 1 === N) return Z * E;
|
|
11856
11856
|
} else
|
|
11857
11857
|
Z !== -1 && (Y -= Y - Z), Z = -1;
|
|
11858
11858
|
} else
|
|
@@ -11876,10 +11876,10 @@ function Kc() {
|
|
|
11876
11876
|
};
|
|
11877
11877
|
function D(p, c, d, y) {
|
|
11878
11878
|
d = Number(d) || 0;
|
|
11879
|
-
const
|
|
11880
|
-
y ? (y = Number(y), y >
|
|
11881
|
-
const
|
|
11882
|
-
y >
|
|
11879
|
+
const b = p.length - d;
|
|
11880
|
+
y ? (y = Number(y), y > b && (y = b)) : y = b;
|
|
11881
|
+
const E = c.length;
|
|
11882
|
+
y > E / 2 && (y = E / 2);
|
|
11883
11883
|
let x;
|
|
11884
11884
|
for (x = 0; x < y; ++x) {
|
|
11885
11885
|
const N = parseInt(c.substr(x * 2, 2), 16);
|
|
@@ -11900,24 +11900,24 @@ function Kc() {
|
|
|
11900
11900
|
function me(p, c, d, y) {
|
|
11901
11901
|
return yi(ya(c, p.length - d), p, d, y);
|
|
11902
11902
|
}
|
|
11903
|
-
a.prototype.write = function(c, d, y,
|
|
11903
|
+
a.prototype.write = function(c, d, y, b) {
|
|
11904
11904
|
if (d === void 0)
|
|
11905
|
-
|
|
11905
|
+
b = "utf8", y = this.length, d = 0;
|
|
11906
11906
|
else if (y === void 0 && typeof d == "string")
|
|
11907
|
-
|
|
11907
|
+
b = d, y = this.length, d = 0;
|
|
11908
11908
|
else if (isFinite(d))
|
|
11909
|
-
d = d >>> 0, isFinite(y) ? (y = y >>> 0,
|
|
11909
|
+
d = d >>> 0, isFinite(y) ? (y = y >>> 0, b === void 0 && (b = "utf8")) : (b = y, y = void 0);
|
|
11910
11910
|
else
|
|
11911
11911
|
throw new Error(
|
|
11912
11912
|
"Buffer.write(string, encoding, offset[, length]) is no longer supported"
|
|
11913
11913
|
);
|
|
11914
|
-
const
|
|
11915
|
-
if ((y === void 0 || y >
|
|
11914
|
+
const E = this.length - d;
|
|
11915
|
+
if ((y === void 0 || y > E) && (y = E), c.length > 0 && (y < 0 || d < 0) || d > this.length)
|
|
11916
11916
|
throw new RangeError("Attempt to write outside buffer bounds");
|
|
11917
|
-
|
|
11917
|
+
b || (b = "utf8");
|
|
11918
11918
|
let x = !1;
|
|
11919
11919
|
for (; ; )
|
|
11920
|
-
switch (
|
|
11920
|
+
switch (b) {
|
|
11921
11921
|
case "hex":
|
|
11922
11922
|
return D(this, c, d, y);
|
|
11923
11923
|
case "utf8":
|
|
@@ -11935,8 +11935,8 @@ function Kc() {
|
|
|
11935
11935
|
case "utf-16le":
|
|
11936
11936
|
return me(this, c, d, y);
|
|
11937
11937
|
default:
|
|
11938
|
-
if (x) throw new TypeError("Unknown encoding: " +
|
|
11939
|
-
|
|
11938
|
+
if (x) throw new TypeError("Unknown encoding: " + b);
|
|
11939
|
+
b = ("" + b).toLowerCase(), x = !0;
|
|
11940
11940
|
}
|
|
11941
11941
|
}, a.prototype.toJSON = function() {
|
|
11942
11942
|
return {
|
|
@@ -11950,27 +11950,27 @@ function Kc() {
|
|
|
11950
11950
|
function H(p, c, d) {
|
|
11951
11951
|
d = Math.min(p.length, d);
|
|
11952
11952
|
const y = [];
|
|
11953
|
-
let
|
|
11954
|
-
for (;
|
|
11955
|
-
const
|
|
11956
|
-
let x = null, N =
|
|
11957
|
-
if (
|
|
11953
|
+
let b = c;
|
|
11954
|
+
for (; b < d; ) {
|
|
11955
|
+
const E = p[b];
|
|
11956
|
+
let x = null, N = E > 239 ? 4 : E > 223 ? 3 : E > 191 ? 2 : 1;
|
|
11957
|
+
if (b + N <= d) {
|
|
11958
11958
|
let K, Y, Z, G;
|
|
11959
11959
|
switch (N) {
|
|
11960
11960
|
case 1:
|
|
11961
|
-
|
|
11961
|
+
E < 128 && (x = E);
|
|
11962
11962
|
break;
|
|
11963
11963
|
case 2:
|
|
11964
|
-
K = p[
|
|
11964
|
+
K = p[b + 1], (K & 192) === 128 && (G = (E & 31) << 6 | K & 63, G > 127 && (x = G));
|
|
11965
11965
|
break;
|
|
11966
11966
|
case 3:
|
|
11967
|
-
K = p[
|
|
11967
|
+
K = p[b + 1], Y = p[b + 2], (K & 192) === 128 && (Y & 192) === 128 && (G = (E & 15) << 12 | (K & 63) << 6 | Y & 63, G > 2047 && (G < 55296 || G > 57343) && (x = G));
|
|
11968
11968
|
break;
|
|
11969
11969
|
case 4:
|
|
11970
|
-
K = p[
|
|
11970
|
+
K = p[b + 1], Y = p[b + 2], Z = p[b + 3], (K & 192) === 128 && (Y & 192) === 128 && (Z & 192) === 128 && (G = (E & 15) << 18 | (K & 63) << 12 | (Y & 63) << 6 | Z & 63, G > 65535 && G < 1114112 && (x = G));
|
|
11971
11971
|
}
|
|
11972
11972
|
}
|
|
11973
|
-
x === null ? (x = 65533, N = 1) : x > 65535 && (x -= 65536, y.push(x >>> 10 & 1023 | 55296), x = 56320 | x & 1023), y.push(x),
|
|
11973
|
+
x === null ? (x = 65533, N = 1) : x > 65535 && (x -= 65536, y.push(x >>> 10 & 1023 | 55296), x = 56320 | x & 1023), y.push(x), b += N;
|
|
11974
11974
|
}
|
|
11975
11975
|
return we(y);
|
|
11976
11976
|
}
|
|
@@ -11990,37 +11990,37 @@ function Kc() {
|
|
|
11990
11990
|
function De(p, c, d) {
|
|
11991
11991
|
let y = "";
|
|
11992
11992
|
d = Math.min(p.length, d);
|
|
11993
|
-
for (let
|
|
11994
|
-
y += String.fromCharCode(p[
|
|
11993
|
+
for (let b = c; b < d; ++b)
|
|
11994
|
+
y += String.fromCharCode(p[b] & 127);
|
|
11995
11995
|
return y;
|
|
11996
11996
|
}
|
|
11997
11997
|
function Ue(p, c, d) {
|
|
11998
11998
|
let y = "";
|
|
11999
11999
|
d = Math.min(p.length, d);
|
|
12000
|
-
for (let
|
|
12001
|
-
y += String.fromCharCode(p[
|
|
12000
|
+
for (let b = c; b < d; ++b)
|
|
12001
|
+
y += String.fromCharCode(p[b]);
|
|
12002
12002
|
return y;
|
|
12003
12003
|
}
|
|
12004
12004
|
function ye(p, c, d) {
|
|
12005
12005
|
const y = p.length;
|
|
12006
12006
|
(!c || c < 0) && (c = 0), (!d || d < 0 || d > y) && (d = y);
|
|
12007
|
-
let
|
|
12008
|
-
for (let
|
|
12009
|
-
|
|
12010
|
-
return
|
|
12007
|
+
let b = "";
|
|
12008
|
+
for (let E = c; E < d; ++E)
|
|
12009
|
+
b += _a[p[E]];
|
|
12010
|
+
return b;
|
|
12011
12011
|
}
|
|
12012
12012
|
function Ce(p, c, d) {
|
|
12013
12013
|
const y = p.slice(c, d);
|
|
12014
|
-
let
|
|
12015
|
-
for (let
|
|
12016
|
-
|
|
12017
|
-
return
|
|
12014
|
+
let b = "";
|
|
12015
|
+
for (let E = 0; E < y.length - 1; E += 2)
|
|
12016
|
+
b += String.fromCharCode(y[E] + y[E + 1] * 256);
|
|
12017
|
+
return b;
|
|
12018
12018
|
}
|
|
12019
12019
|
a.prototype.slice = function(c, d) {
|
|
12020
12020
|
const y = this.length;
|
|
12021
12021
|
c = ~~c, d = d === void 0 ? y : ~~d, c < 0 ? (c += y, c < 0 && (c = 0)) : c > y && (c = y), d < 0 ? (d += y, d < 0 && (d = 0)) : d > y && (d = y), d < c && (d = c);
|
|
12022
|
-
const
|
|
12023
|
-
return Object.setPrototypeOf(
|
|
12022
|
+
const b = this.subarray(c, d);
|
|
12023
|
+
return Object.setPrototypeOf(b, a.prototype), b;
|
|
12024
12024
|
};
|
|
12025
12025
|
function V(p, c, d) {
|
|
12026
12026
|
if (p % 1 !== 0 || p < 0) throw new RangeError("offset is not uint");
|
|
@@ -12028,16 +12028,16 @@ function Kc() {
|
|
|
12028
12028
|
}
|
|
12029
12029
|
a.prototype.readUintLE = a.prototype.readUIntLE = function(c, d, y) {
|
|
12030
12030
|
c = c >>> 0, d = d >>> 0, y || V(c, d, this.length);
|
|
12031
|
-
let
|
|
12032
|
-
for (; ++x < d && (
|
|
12033
|
-
|
|
12034
|
-
return
|
|
12031
|
+
let b = this[c], E = 1, x = 0;
|
|
12032
|
+
for (; ++x < d && (E *= 256); )
|
|
12033
|
+
b += this[c + x] * E;
|
|
12034
|
+
return b;
|
|
12035
12035
|
}, a.prototype.readUintBE = a.prototype.readUIntBE = function(c, d, y) {
|
|
12036
12036
|
c = c >>> 0, d = d >>> 0, y || V(c, d, this.length);
|
|
12037
|
-
let
|
|
12038
|
-
for (; d > 0 && (
|
|
12039
|
-
|
|
12040
|
-
return
|
|
12037
|
+
let b = this[c + --d], E = 1;
|
|
12038
|
+
for (; d > 0 && (E *= 256); )
|
|
12039
|
+
b += this[c + --d] * E;
|
|
12040
|
+
return b;
|
|
12041
12041
|
}, a.prototype.readUint8 = a.prototype.readUInt8 = function(c, d) {
|
|
12042
12042
|
return c = c >>> 0, d || V(c, 1, this.length), this[c];
|
|
12043
12043
|
}, a.prototype.readUint16LE = a.prototype.readUInt16LE = function(c, d) {
|
|
@@ -12052,26 +12052,26 @@ function Kc() {
|
|
|
12052
12052
|
c = c >>> 0, Le(c, "offset");
|
|
12053
12053
|
const d = this[c], y = this[c + 7];
|
|
12054
12054
|
(d === void 0 || y === void 0) && ee(c, this.length - 8);
|
|
12055
|
-
const
|
|
12056
|
-
return BigInt(
|
|
12055
|
+
const b = d + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24, E = this[++c] + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + y * 2 ** 24;
|
|
12056
|
+
return BigInt(b) + (BigInt(E) << BigInt(32));
|
|
12057
12057
|
}), a.prototype.readBigUInt64BE = ot(function(c) {
|
|
12058
12058
|
c = c >>> 0, Le(c, "offset");
|
|
12059
12059
|
const d = this[c], y = this[c + 7];
|
|
12060
12060
|
(d === void 0 || y === void 0) && ee(c, this.length - 8);
|
|
12061
|
-
const
|
|
12062
|
-
return (BigInt(
|
|
12061
|
+
const b = d * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c], E = this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + y;
|
|
12062
|
+
return (BigInt(b) << BigInt(32)) + BigInt(E);
|
|
12063
12063
|
}), a.prototype.readIntLE = function(c, d, y) {
|
|
12064
12064
|
c = c >>> 0, d = d >>> 0, y || V(c, d, this.length);
|
|
12065
|
-
let
|
|
12066
|
-
for (; ++x < d && (
|
|
12067
|
-
|
|
12068
|
-
return
|
|
12065
|
+
let b = this[c], E = 1, x = 0;
|
|
12066
|
+
for (; ++x < d && (E *= 256); )
|
|
12067
|
+
b += this[c + x] * E;
|
|
12068
|
+
return E *= 128, b >= E && (b -= Math.pow(2, 8 * d)), b;
|
|
12069
12069
|
}, a.prototype.readIntBE = function(c, d, y) {
|
|
12070
12070
|
c = c >>> 0, d = d >>> 0, y || V(c, d, this.length);
|
|
12071
|
-
let
|
|
12072
|
-
for (;
|
|
12073
|
-
x += this[c + --
|
|
12074
|
-
return
|
|
12071
|
+
let b = d, E = 1, x = this[c + --b];
|
|
12072
|
+
for (; b > 0 && (E *= 256); )
|
|
12073
|
+
x += this[c + --b] * E;
|
|
12074
|
+
return E *= 128, x >= E && (x -= Math.pow(2, 8 * d)), x;
|
|
12075
12075
|
}, a.prototype.readInt8 = function(c, d) {
|
|
12076
12076
|
return c = c >>> 0, d || V(c, 1, this.length), this[c] & 128 ? (255 - this[c] + 1) * -1 : this[c];
|
|
12077
12077
|
}, a.prototype.readInt16LE = function(c, d) {
|
|
@@ -12090,15 +12090,15 @@ function Kc() {
|
|
|
12090
12090
|
c = c >>> 0, Le(c, "offset");
|
|
12091
12091
|
const d = this[c], y = this[c + 7];
|
|
12092
12092
|
(d === void 0 || y === void 0) && ee(c, this.length - 8);
|
|
12093
|
-
const
|
|
12094
|
-
return (BigInt(
|
|
12093
|
+
const b = this[c + 4] + this[c + 5] * 2 ** 8 + this[c + 6] * 2 ** 16 + (y << 24);
|
|
12094
|
+
return (BigInt(b) << BigInt(32)) + BigInt(d + this[++c] * 2 ** 8 + this[++c] * 2 ** 16 + this[++c] * 2 ** 24);
|
|
12095
12095
|
}), a.prototype.readBigInt64BE = ot(function(c) {
|
|
12096
12096
|
c = c >>> 0, Le(c, "offset");
|
|
12097
12097
|
const d = this[c], y = this[c + 7];
|
|
12098
12098
|
(d === void 0 || y === void 0) && ee(c, this.length - 8);
|
|
12099
|
-
const
|
|
12099
|
+
const b = (d << 24) + // Overflow
|
|
12100
12100
|
this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c];
|
|
12101
|
-
return (BigInt(
|
|
12101
|
+
return (BigInt(b) << BigInt(32)) + BigInt(this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + y);
|
|
12102
12102
|
}), a.prototype.readFloatLE = function(c, d) {
|
|
12103
12103
|
return c = c >>> 0, d || V(c, 4, this.length), t.read(this, c, !0, 23, 4);
|
|
12104
12104
|
}, a.prototype.readFloatBE = function(c, d) {
|
|
@@ -12108,28 +12108,28 @@ function Kc() {
|
|
|
12108
12108
|
}, a.prototype.readDoubleBE = function(c, d) {
|
|
12109
12109
|
return c = c >>> 0, d || V(c, 8, this.length), t.read(this, c, !1, 52, 8);
|
|
12110
12110
|
};
|
|
12111
|
-
function L(p, c, d, y,
|
|
12111
|
+
function L(p, c, d, y, b, E) {
|
|
12112
12112
|
if (!a.isBuffer(p)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
12113
|
-
if (c >
|
|
12113
|
+
if (c > b || c < E) throw new RangeError('"value" argument is out of bounds');
|
|
12114
12114
|
if (d + y > p.length) throw new RangeError("Index out of range");
|
|
12115
12115
|
}
|
|
12116
|
-
a.prototype.writeUintLE = a.prototype.writeUIntLE = function(c, d, y,
|
|
12117
|
-
if (c = +c, d = d >>> 0, y = y >>> 0, !
|
|
12116
|
+
a.prototype.writeUintLE = a.prototype.writeUIntLE = function(c, d, y, b) {
|
|
12117
|
+
if (c = +c, d = d >>> 0, y = y >>> 0, !b) {
|
|
12118
12118
|
const N = Math.pow(2, 8 * y) - 1;
|
|
12119
12119
|
L(this, c, d, y, N, 0);
|
|
12120
12120
|
}
|
|
12121
|
-
let
|
|
12122
|
-
for (this[d] = c & 255; ++x < y && (
|
|
12123
|
-
this[d + x] = c /
|
|
12121
|
+
let E = 1, x = 0;
|
|
12122
|
+
for (this[d] = c & 255; ++x < y && (E *= 256); )
|
|
12123
|
+
this[d + x] = c / E & 255;
|
|
12124
12124
|
return d + y;
|
|
12125
|
-
}, a.prototype.writeUintBE = a.prototype.writeUIntBE = function(c, d, y,
|
|
12126
|
-
if (c = +c, d = d >>> 0, y = y >>> 0, !
|
|
12125
|
+
}, a.prototype.writeUintBE = a.prototype.writeUIntBE = function(c, d, y, b) {
|
|
12126
|
+
if (c = +c, d = d >>> 0, y = y >>> 0, !b) {
|
|
12127
12127
|
const N = Math.pow(2, 8 * y) - 1;
|
|
12128
12128
|
L(this, c, d, y, N, 0);
|
|
12129
12129
|
}
|
|
12130
|
-
let
|
|
12131
|
-
for (this[d +
|
|
12132
|
-
this[d +
|
|
12130
|
+
let E = y - 1, x = 1;
|
|
12131
|
+
for (this[d + E] = c & 255; --E >= 0 && (x *= 256); )
|
|
12132
|
+
this[d + E] = c / x & 255;
|
|
12133
12133
|
return d + y;
|
|
12134
12134
|
}, a.prototype.writeUint8 = a.prototype.writeUInt8 = function(c, d, y) {
|
|
12135
12135
|
return c = +c, d = d >>> 0, y || L(this, c, d, 1, 255, 0), this[d] = c & 255, d + 1;
|
|
@@ -12142,17 +12142,17 @@ function Kc() {
|
|
|
12142
12142
|
}, a.prototype.writeUint32BE = a.prototype.writeUInt32BE = function(c, d, y) {
|
|
12143
12143
|
return c = +c, d = d >>> 0, y || L(this, c, d, 4, 4294967295, 0), this[d] = c >>> 24, this[d + 1] = c >>> 16, this[d + 2] = c >>> 8, this[d + 3] = c & 255, d + 4;
|
|
12144
12144
|
};
|
|
12145
|
-
function xe(p, c, d, y,
|
|
12146
|
-
fe(c, y,
|
|
12147
|
-
let
|
|
12148
|
-
p[d++] =
|
|
12145
|
+
function xe(p, c, d, y, b) {
|
|
12146
|
+
fe(c, y, b, p, d, 7);
|
|
12147
|
+
let E = Number(c & BigInt(4294967295));
|
|
12148
|
+
p[d++] = E, E = E >> 8, p[d++] = E, E = E >> 8, p[d++] = E, E = E >> 8, p[d++] = E;
|
|
12149
12149
|
let x = Number(c >> BigInt(32) & BigInt(4294967295));
|
|
12150
12150
|
return p[d++] = x, x = x >> 8, p[d++] = x, x = x >> 8, p[d++] = x, x = x >> 8, p[d++] = x, d;
|
|
12151
12151
|
}
|
|
12152
|
-
function Te(p, c, d, y,
|
|
12153
|
-
fe(c, y,
|
|
12154
|
-
let
|
|
12155
|
-
p[d + 7] =
|
|
12152
|
+
function Te(p, c, d, y, b) {
|
|
12153
|
+
fe(c, y, b, p, d, 7);
|
|
12154
|
+
let E = Number(c & BigInt(4294967295));
|
|
12155
|
+
p[d + 7] = E, E = E >> 8, p[d + 6] = E, E = E >> 8, p[d + 5] = E, E = E >> 8, p[d + 4] = E;
|
|
12156
12156
|
let x = Number(c >> BigInt(32) & BigInt(4294967295));
|
|
12157
12157
|
return p[d + 3] = x, x = x >> 8, p[d + 2] = x, x = x >> 8, p[d + 1] = x, x = x >> 8, p[d] = x, d + 8;
|
|
12158
12158
|
}
|
|
@@ -12160,23 +12160,23 @@ function Kc() {
|
|
|
12160
12160
|
return xe(this, c, d, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
12161
12161
|
}), a.prototype.writeBigUInt64BE = ot(function(c, d = 0) {
|
|
12162
12162
|
return Te(this, c, d, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
12163
|
-
}), a.prototype.writeIntLE = function(c, d, y,
|
|
12164
|
-
if (c = +c, d = d >>> 0, !
|
|
12163
|
+
}), a.prototype.writeIntLE = function(c, d, y, b) {
|
|
12164
|
+
if (c = +c, d = d >>> 0, !b) {
|
|
12165
12165
|
const K = Math.pow(2, 8 * y - 1);
|
|
12166
12166
|
L(this, c, d, y, K - 1, -K);
|
|
12167
12167
|
}
|
|
12168
|
-
let
|
|
12169
|
-
for (this[d] = c & 255; ++
|
|
12170
|
-
c < 0 && N === 0 && this[d +
|
|
12168
|
+
let E = 0, x = 1, N = 0;
|
|
12169
|
+
for (this[d] = c & 255; ++E < y && (x *= 256); )
|
|
12170
|
+
c < 0 && N === 0 && this[d + E - 1] !== 0 && (N = 1), this[d + E] = (c / x >> 0) - N & 255;
|
|
12171
12171
|
return d + y;
|
|
12172
|
-
}, a.prototype.writeIntBE = function(c, d, y,
|
|
12173
|
-
if (c = +c, d = d >>> 0, !
|
|
12172
|
+
}, a.prototype.writeIntBE = function(c, d, y, b) {
|
|
12173
|
+
if (c = +c, d = d >>> 0, !b) {
|
|
12174
12174
|
const K = Math.pow(2, 8 * y - 1);
|
|
12175
12175
|
L(this, c, d, y, K - 1, -K);
|
|
12176
12176
|
}
|
|
12177
|
-
let
|
|
12178
|
-
for (this[d +
|
|
12179
|
-
c < 0 && N === 0 && this[d +
|
|
12177
|
+
let E = y - 1, x = 1, N = 0;
|
|
12178
|
+
for (this[d + E] = c & 255; --E >= 0 && (x *= 256); )
|
|
12179
|
+
c < 0 && N === 0 && this[d + E + 1] !== 0 && (N = 1), this[d + E] = (c / x >> 0) - N & 255;
|
|
12180
12180
|
return d + y;
|
|
12181
12181
|
}, a.prototype.writeInt8 = function(c, d, y) {
|
|
12182
12182
|
return c = +c, d = d >>> 0, y || L(this, c, d, 1, 127, -128), c < 0 && (c = 255 + c + 1), this[d] = c & 255, d + 1;
|
|
@@ -12193,48 +12193,48 @@ function Kc() {
|
|
|
12193
12193
|
}), a.prototype.writeBigInt64BE = ot(function(c, d = 0) {
|
|
12194
12194
|
return Te(this, c, d, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
12195
12195
|
});
|
|
12196
|
-
function Je(p, c, d, y,
|
|
12196
|
+
function Je(p, c, d, y, b, E) {
|
|
12197
12197
|
if (d + y > p.length) throw new RangeError("Index out of range");
|
|
12198
12198
|
if (d < 0) throw new RangeError("Index out of range");
|
|
12199
12199
|
}
|
|
12200
|
-
function O(p, c, d, y,
|
|
12201
|
-
return c = +c, d = d >>> 0,
|
|
12200
|
+
function O(p, c, d, y, b) {
|
|
12201
|
+
return c = +c, d = d >>> 0, b || Je(p, c, d, 4), t.write(p, c, d, y, 23, 4), d + 4;
|
|
12202
12202
|
}
|
|
12203
12203
|
a.prototype.writeFloatLE = function(c, d, y) {
|
|
12204
12204
|
return O(this, c, d, !0, y);
|
|
12205
12205
|
}, a.prototype.writeFloatBE = function(c, d, y) {
|
|
12206
12206
|
return O(this, c, d, !1, y);
|
|
12207
12207
|
};
|
|
12208
|
-
function ae(p, c, d, y,
|
|
12209
|
-
return c = +c, d = d >>> 0,
|
|
12208
|
+
function ae(p, c, d, y, b) {
|
|
12209
|
+
return c = +c, d = d >>> 0, b || Je(p, c, d, 8), t.write(p, c, d, y, 52, 8), d + 8;
|
|
12210
12210
|
}
|
|
12211
12211
|
a.prototype.writeDoubleLE = function(c, d, y) {
|
|
12212
12212
|
return ae(this, c, d, !0, y);
|
|
12213
12213
|
}, a.prototype.writeDoubleBE = function(c, d, y) {
|
|
12214
12214
|
return ae(this, c, d, !1, y);
|
|
12215
|
-
}, a.prototype.copy = function(c, d, y,
|
|
12215
|
+
}, a.prototype.copy = function(c, d, y, b) {
|
|
12216
12216
|
if (!a.isBuffer(c)) throw new TypeError("argument should be a Buffer");
|
|
12217
|
-
if (y || (y = 0), !
|
|
12217
|
+
if (y || (y = 0), !b && b !== 0 && (b = this.length), d >= c.length && (d = c.length), d || (d = 0), b > 0 && b < y && (b = y), b === y || c.length === 0 || this.length === 0) return 0;
|
|
12218
12218
|
if (d < 0)
|
|
12219
12219
|
throw new RangeError("targetStart out of bounds");
|
|
12220
12220
|
if (y < 0 || y >= this.length) throw new RangeError("Index out of range");
|
|
12221
|
-
if (
|
|
12222
|
-
|
|
12223
|
-
const
|
|
12224
|
-
return this === c && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(d, y,
|
|
12221
|
+
if (b < 0) throw new RangeError("sourceEnd out of bounds");
|
|
12222
|
+
b > this.length && (b = this.length), c.length - d < b - y && (b = c.length - d + y);
|
|
12223
|
+
const E = b - y;
|
|
12224
|
+
return this === c && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(d, y, b) : Uint8Array.prototype.set.call(
|
|
12225
12225
|
c,
|
|
12226
|
-
this.subarray(y,
|
|
12226
|
+
this.subarray(y, b),
|
|
12227
12227
|
d
|
|
12228
|
-
),
|
|
12229
|
-
}, a.prototype.fill = function(c, d, y,
|
|
12228
|
+
), E;
|
|
12229
|
+
}, a.prototype.fill = function(c, d, y, b) {
|
|
12230
12230
|
if (typeof c == "string") {
|
|
12231
|
-
if (typeof d == "string" ? (
|
|
12231
|
+
if (typeof d == "string" ? (b = d, d = 0, y = this.length) : typeof y == "string" && (b = y, y = this.length), b !== void 0 && typeof b != "string")
|
|
12232
12232
|
throw new TypeError("encoding must be a string");
|
|
12233
|
-
if (typeof
|
|
12234
|
-
throw new TypeError("Unknown encoding: " +
|
|
12233
|
+
if (typeof b == "string" && !a.isEncoding(b))
|
|
12234
|
+
throw new TypeError("Unknown encoding: " + b);
|
|
12235
12235
|
if (c.length === 1) {
|
|
12236
12236
|
const x = c.charCodeAt(0);
|
|
12237
|
-
(
|
|
12237
|
+
(b === "utf8" && x < 128 || b === "latin1") && (c = x);
|
|
12238
12238
|
}
|
|
12239
12239
|
} else typeof c == "number" ? c = c & 255 : typeof c == "boolean" && (c = Number(c));
|
|
12240
12240
|
if (d < 0 || this.length < d || this.length < y)
|
|
@@ -12242,16 +12242,16 @@ function Kc() {
|
|
|
12242
12242
|
if (y <= d)
|
|
12243
12243
|
return this;
|
|
12244
12244
|
d = d >>> 0, y = y === void 0 ? this.length : y >>> 0, c || (c = 0);
|
|
12245
|
-
let
|
|
12245
|
+
let E;
|
|
12246
12246
|
if (typeof c == "number")
|
|
12247
|
-
for (
|
|
12248
|
-
this[
|
|
12247
|
+
for (E = d; E < y; ++E)
|
|
12248
|
+
this[E] = c;
|
|
12249
12249
|
else {
|
|
12250
|
-
const x = a.isBuffer(c) ? c : a.from(c,
|
|
12250
|
+
const x = a.isBuffer(c) ? c : a.from(c, b), N = x.length;
|
|
12251
12251
|
if (N === 0)
|
|
12252
12252
|
throw new TypeError('The value "' + c + '" is invalid for argument "value"');
|
|
12253
|
-
for (
|
|
12254
|
-
this[
|
|
12253
|
+
for (E = 0; E < y - d; ++E)
|
|
12254
|
+
this[E + d] = x[E % N];
|
|
12255
12255
|
}
|
|
12256
12256
|
return this;
|
|
12257
12257
|
};
|
|
@@ -12268,11 +12268,11 @@ function Kc() {
|
|
|
12268
12268
|
get code() {
|
|
12269
12269
|
return p;
|
|
12270
12270
|
}
|
|
12271
|
-
set code(
|
|
12271
|
+
set code(b) {
|
|
12272
12272
|
Object.defineProperty(this, "code", {
|
|
12273
12273
|
configurable: !0,
|
|
12274
12274
|
enumerable: !0,
|
|
12275
|
-
value:
|
|
12275
|
+
value: b,
|
|
12276
12276
|
writable: !0
|
|
12277
12277
|
});
|
|
12278
12278
|
}
|
|
@@ -12296,8 +12296,8 @@ function Kc() {
|
|
|
12296
12296
|
), $(
|
|
12297
12297
|
"ERR_OUT_OF_RANGE",
|
|
12298
12298
|
function(p, c, d) {
|
|
12299
|
-
let y = `The value of "${p}" is out of range.`,
|
|
12300
|
-
return Number.isInteger(d) && Math.abs(d) > 2 ** 32 ?
|
|
12299
|
+
let y = `The value of "${p}" is out of range.`, b = d;
|
|
12300
|
+
return Number.isInteger(d) && Math.abs(d) > 2 ** 32 ? b = _e(String(d)) : typeof d == "bigint" && (b = String(d), (d > BigInt(2) ** BigInt(32) || d < -(BigInt(2) ** BigInt(32))) && (b = _e(b)), b += "n"), y += ` It must be ${c}. Received ${b}`, y;
|
|
12301
12301
|
},
|
|
12302
12302
|
RangeError
|
|
12303
12303
|
);
|
|
@@ -12311,13 +12311,13 @@ function Kc() {
|
|
|
12311
12311
|
function B(p, c, d) {
|
|
12312
12312
|
Le(c, "offset"), (p[c] === void 0 || p[c + d] === void 0) && ee(c, p.length - (d + 1));
|
|
12313
12313
|
}
|
|
12314
|
-
function fe(p, c, d, y,
|
|
12314
|
+
function fe(p, c, d, y, b, E) {
|
|
12315
12315
|
if (p > d || p < c) {
|
|
12316
12316
|
const x = typeof c == "bigint" ? "n" : "";
|
|
12317
12317
|
let N;
|
|
12318
|
-
throw c === 0 || c === BigInt(0) ? N = `>= 0${x} and < 2${x} ** ${(
|
|
12318
|
+
throw c === 0 || c === BigInt(0) ? N = `>= 0${x} and < 2${x} ** ${(E + 1) * 8}${x}` : N = `>= -(2${x} ** ${(E + 1) * 8 - 1}${x}) and < 2 ** ${(E + 1) * 8 - 1}${x}`, new Q.ERR_OUT_OF_RANGE("value", N, p);
|
|
12319
12319
|
}
|
|
12320
|
-
B(y,
|
|
12320
|
+
B(y, b, E);
|
|
12321
12321
|
}
|
|
12322
12322
|
function Le(p, c) {
|
|
12323
12323
|
if (typeof p != "number")
|
|
@@ -12341,46 +12341,46 @@ function Kc() {
|
|
|
12341
12341
|
c = c || 1 / 0;
|
|
12342
12342
|
let d;
|
|
12343
12343
|
const y = p.length;
|
|
12344
|
-
let
|
|
12345
|
-
const
|
|
12344
|
+
let b = null;
|
|
12345
|
+
const E = [];
|
|
12346
12346
|
for (let x = 0; x < y; ++x) {
|
|
12347
12347
|
if (d = p.charCodeAt(x), d > 55295 && d < 57344) {
|
|
12348
|
-
if (!
|
|
12348
|
+
if (!b) {
|
|
12349
12349
|
if (d > 56319) {
|
|
12350
|
-
(c -= 3) > -1 &&
|
|
12350
|
+
(c -= 3) > -1 && E.push(239, 191, 189);
|
|
12351
12351
|
continue;
|
|
12352
12352
|
} else if (x + 1 === y) {
|
|
12353
|
-
(c -= 3) > -1 &&
|
|
12353
|
+
(c -= 3) > -1 && E.push(239, 191, 189);
|
|
12354
12354
|
continue;
|
|
12355
12355
|
}
|
|
12356
|
-
|
|
12356
|
+
b = d;
|
|
12357
12357
|
continue;
|
|
12358
12358
|
}
|
|
12359
12359
|
if (d < 56320) {
|
|
12360
|
-
(c -= 3) > -1 &&
|
|
12360
|
+
(c -= 3) > -1 && E.push(239, 191, 189), b = d;
|
|
12361
12361
|
continue;
|
|
12362
12362
|
}
|
|
12363
|
-
d = (
|
|
12364
|
-
} else
|
|
12365
|
-
if (
|
|
12363
|
+
d = (b - 55296 << 10 | d - 56320) + 65536;
|
|
12364
|
+
} else b && (c -= 3) > -1 && E.push(239, 191, 189);
|
|
12365
|
+
if (b = null, d < 128) {
|
|
12366
12366
|
if ((c -= 1) < 0) break;
|
|
12367
|
-
|
|
12367
|
+
E.push(d);
|
|
12368
12368
|
} else if (d < 2048) {
|
|
12369
12369
|
if ((c -= 2) < 0) break;
|
|
12370
|
-
|
|
12370
|
+
E.push(
|
|
12371
12371
|
d >> 6 | 192,
|
|
12372
12372
|
d & 63 | 128
|
|
12373
12373
|
);
|
|
12374
12374
|
} else if (d < 65536) {
|
|
12375
12375
|
if ((c -= 3) < 0) break;
|
|
12376
|
-
|
|
12376
|
+
E.push(
|
|
12377
12377
|
d >> 12 | 224,
|
|
12378
12378
|
d >> 6 & 63 | 128,
|
|
12379
12379
|
d & 63 | 128
|
|
12380
12380
|
);
|
|
12381
12381
|
} else if (d < 1114112) {
|
|
12382
12382
|
if ((c -= 4) < 0) break;
|
|
12383
|
-
|
|
12383
|
+
E.push(
|
|
12384
12384
|
d >> 18 | 240,
|
|
12385
12385
|
d >> 12 & 63 | 128,
|
|
12386
12386
|
d >> 6 & 63 | 128,
|
|
@@ -12389,7 +12389,7 @@ function Kc() {
|
|
|
12389
12389
|
} else
|
|
12390
12390
|
throw new Error("Invalid code point");
|
|
12391
12391
|
}
|
|
12392
|
-
return
|
|
12392
|
+
return E;
|
|
12393
12393
|
}
|
|
12394
12394
|
function ga(p) {
|
|
12395
12395
|
const c = [];
|
|
@@ -12398,20 +12398,20 @@ function Kc() {
|
|
|
12398
12398
|
return c;
|
|
12399
12399
|
}
|
|
12400
12400
|
function ya(p, c) {
|
|
12401
|
-
let d, y,
|
|
12402
|
-
const
|
|
12401
|
+
let d, y, b;
|
|
12402
|
+
const E = [];
|
|
12403
12403
|
for (let x = 0; x < p.length && !((c -= 2) < 0); ++x)
|
|
12404
|
-
d = p.charCodeAt(x), y = d >> 8,
|
|
12405
|
-
return
|
|
12404
|
+
d = p.charCodeAt(x), y = d >> 8, b = d % 256, E.push(b), E.push(y);
|
|
12405
|
+
return E;
|
|
12406
12406
|
}
|
|
12407
12407
|
function en(p) {
|
|
12408
12408
|
return e.toByteArray(ma(p));
|
|
12409
12409
|
}
|
|
12410
12410
|
function yi(p, c, d, y) {
|
|
12411
|
-
let
|
|
12412
|
-
for (
|
|
12413
|
-
c[
|
|
12414
|
-
return
|
|
12411
|
+
let b;
|
|
12412
|
+
for (b = 0; b < y && !(b + d >= c.length || b >= p.length); ++b)
|
|
12413
|
+
c[b + d] = p[b];
|
|
12414
|
+
return b;
|
|
12415
12415
|
}
|
|
12416
12416
|
function ze(p, c) {
|
|
12417
12417
|
return p instanceof c || p != null && p.constructor != null && p.constructor.name != null && p.constructor.name === c.name;
|
|
@@ -12423,8 +12423,8 @@ function Kc() {
|
|
|
12423
12423
|
const p = "0123456789abcdef", c = new Array(256);
|
|
12424
12424
|
for (let d = 0; d < 16; ++d) {
|
|
12425
12425
|
const y = d * 16;
|
|
12426
|
-
for (let
|
|
12427
|
-
c[y +
|
|
12426
|
+
for (let b = 0; b < 16; ++b)
|
|
12427
|
+
c[y + b] = p[d] + p[b];
|
|
12428
12428
|
}
|
|
12429
12429
|
return c;
|
|
12430
12430
|
})();
|
|
@@ -12519,56 +12519,56 @@ const Ot = (i) => {
|
|
|
12519
12519
|
issues: []
|
|
12520
12520
|
}, a = ((t = r["inbound-rtp"]) === null || t === void 0 ? void 0 : t.filter((u) => u.kind === "video")) || [];
|
|
12521
12521
|
a.length > 0 && (o.personaVideoStream = [], a.forEach((u) => {
|
|
12522
|
-
var
|
|
12523
|
-
const
|
|
12524
|
-
framesReceived: (
|
|
12525
|
-
framesDropped: (
|
|
12522
|
+
var g, m, _, v, C;
|
|
12523
|
+
const S = {
|
|
12524
|
+
framesReceived: (g = u.framesReceived) !== null && g !== void 0 ? g : "unknown",
|
|
12525
|
+
framesDropped: (m = u.framesDropped) !== null && m !== void 0 ? m : "unknown",
|
|
12526
12526
|
framesPerSecond: (_ = u.framesPerSecond) !== null && _ !== void 0 ? _ : "unknown",
|
|
12527
|
-
packetsReceived: (
|
|
12527
|
+
packetsReceived: (v = u.packetsReceived) !== null && v !== void 0 ? v : "unknown",
|
|
12528
12528
|
packetsLost: (C = u.packetsLost) !== null && C !== void 0 ? C : "unknown",
|
|
12529
12529
|
resolution: u.frameWidth && u.frameHeight ? `${u.frameWidth}x${u.frameHeight}` : void 0,
|
|
12530
12530
|
jitter: u.jitter !== void 0 ? u.jitter : void 0
|
|
12531
12531
|
};
|
|
12532
|
-
o.personaVideoStream.push(
|
|
12532
|
+
o.personaVideoStream.push(S);
|
|
12533
12533
|
}));
|
|
12534
12534
|
const l = ((s = r["inbound-rtp"]) === null || s === void 0 ? void 0 : s.filter((u) => u.kind === "audio")) || [];
|
|
12535
12535
|
l.length > 0 && (o.personaAudioStream = [], l.forEach((u) => {
|
|
12536
|
-
var
|
|
12537
|
-
const
|
|
12538
|
-
packetsReceived: (
|
|
12539
|
-
packetsLost: (
|
|
12536
|
+
var g, m, _;
|
|
12537
|
+
const v = {
|
|
12538
|
+
packetsReceived: (g = u.packetsReceived) !== null && g !== void 0 ? g : "unknown",
|
|
12539
|
+
packetsLost: (m = u.packetsLost) !== null && m !== void 0 ? m : "unknown",
|
|
12540
12540
|
audioLevel: (_ = u.audioLevel) !== null && _ !== void 0 ? _ : "unknown",
|
|
12541
12541
|
jitter: u.jitter !== void 0 ? u.jitter : void 0,
|
|
12542
12542
|
totalAudioEnergy: u.totalAudioEnergy !== void 0 ? u.totalAudioEnergy : void 0
|
|
12543
12543
|
};
|
|
12544
|
-
o.personaAudioStream.push(
|
|
12544
|
+
o.personaAudioStream.push(v);
|
|
12545
12545
|
}));
|
|
12546
12546
|
const h = ((n = r["outbound-rtp"]) === null || n === void 0 ? void 0 : n.filter((u) => u.kind === "audio")) || [];
|
|
12547
12547
|
h.length > 0 && (o.userAudioInput = [], h.forEach((u) => {
|
|
12548
|
-
var
|
|
12548
|
+
var g, m;
|
|
12549
12549
|
const _ = {
|
|
12550
|
-
packetsSent: (
|
|
12551
|
-
retransmittedPackets: (
|
|
12550
|
+
packetsSent: (g = u.packetsSent) !== null && g !== void 0 ? g : "unknown",
|
|
12551
|
+
retransmittedPackets: (m = u.retransmittedPacketsSent) !== null && m !== void 0 ? m : void 0,
|
|
12552
12552
|
avgPacketSendDelay: u.totalPacketSendDelay !== void 0 ? u.totalPacketSendDelay / (u.packetsSent || 1) * 1e3 : void 0
|
|
12553
12553
|
};
|
|
12554
12554
|
o.userAudioInput.push(_);
|
|
12555
12555
|
})), r.codec && (o.codecs = [], r.codec.forEach((u) => {
|
|
12556
|
-
const
|
|
12556
|
+
const g = {
|
|
12557
12557
|
status: u.payloadType ? "Active" : "Available",
|
|
12558
12558
|
mimeType: u.mimeType || "Unknown",
|
|
12559
12559
|
payloadType: u.payloadType || "N/A",
|
|
12560
12560
|
clockRate: u.clockRate || void 0,
|
|
12561
12561
|
channels: u.channels || void 0
|
|
12562
12562
|
};
|
|
12563
|
-
o.codecs.push(
|
|
12563
|
+
o.codecs.push(g);
|
|
12564
12564
|
})), r.transport && (o.transportLayer = [], r.transport.forEach((u) => {
|
|
12565
|
-
const
|
|
12565
|
+
const g = {
|
|
12566
12566
|
dtlsState: u.dtlsState || "unknown",
|
|
12567
12567
|
iceState: u.iceState || "unknown",
|
|
12568
12568
|
bytesSent: u.bytesSent || void 0,
|
|
12569
12569
|
bytesReceived: u.bytesReceived || void 0
|
|
12570
12570
|
};
|
|
12571
|
-
o.transportLayer.push(
|
|
12571
|
+
o.transportLayer.push(g);
|
|
12572
12572
|
}));
|
|
12573
12573
|
const f = [];
|
|
12574
12574
|
if (a.forEach((u) => {
|
|
@@ -12723,17 +12723,17 @@ class ch {
|
|
|
12723
12723
|
if (this.stopSignal = !1, this.sendingBuffer = [], this.wsConnectionAttempts = 0, this.socket = null, this.heartBeatIntervalRef = null, this.publicEventEmitter = s, this.internalEventEmitter = n, this.apiGatewayConfig = r, !e)
|
|
12724
12724
|
throw new Error("Signalling Client: sessionId is required");
|
|
12725
12725
|
this.sessionId = e;
|
|
12726
|
-
const { heartbeatIntervalSeconds: u, maxWsReconnectionAttempts:
|
|
12727
|
-
if (this.heartbeatIntervalSeconds = u || ah, this.maxWsReconnectionAttempts =
|
|
12726
|
+
const { heartbeatIntervalSeconds: u, maxWsReconnectionAttempts: g, url: m } = t;
|
|
12727
|
+
if (this.heartbeatIntervalSeconds = u || ah, this.maxWsReconnectionAttempts = g || lh, !m.baseUrl)
|
|
12728
12728
|
throw new Error("Signalling Client: baseUrl is required");
|
|
12729
12729
|
if (!((o = this.apiGatewayConfig) === null || o === void 0) && o.enabled && (!((a = this.apiGatewayConfig) === null || a === void 0) && a.baseUrl)) {
|
|
12730
|
-
const _ = new URL(this.apiGatewayConfig.baseUrl),
|
|
12731
|
-
_.protocol = _.protocol.replace("http", "ws"), _.pathname =
|
|
12732
|
-
const C =
|
|
12733
|
-
w.protocol =
|
|
12730
|
+
const _ = new URL(this.apiGatewayConfig.baseUrl), v = (l = this.apiGatewayConfig.wsPath) !== null && l !== void 0 ? l : "/ws";
|
|
12731
|
+
_.protocol = _.protocol.replace("http", "ws"), _.pathname = v, this.url = _;
|
|
12732
|
+
const C = m.protocol || "https", S = C === "http" ? "ws" : "wss", A = `${C}://${m.baseUrl}`, I = (h = m.signallingPath) !== null && h !== void 0 ? h : "/ws", w = new URL(A);
|
|
12733
|
+
w.protocol = S === "ws" ? "ws:" : "wss:", m.port && (w.port = m.port), w.pathname = I, w.searchParams.append("session_id", e), this.url.searchParams.append("target_url", w.href);
|
|
12734
12734
|
} else {
|
|
12735
|
-
const
|
|
12736
|
-
this.url = new URL(
|
|
12735
|
+
const v = `${m.protocol || "https"}://${m.baseUrl}`;
|
|
12736
|
+
this.url = new URL(v), this.url.protocol = m.protocol === "http" ? "ws:" : "wss:", m.port && (this.url.port = m.port), this.url.pathname = (f = m.signallingPath) !== null && f !== void 0 ? f : "/ws", this.url.searchParams.append("session_id", e);
|
|
12737
12737
|
}
|
|
12738
12738
|
}
|
|
12739
12739
|
stop() {
|
|
@@ -13706,8 +13706,8 @@ class Ch {
|
|
|
13706
13706
|
this.publicEventEmitter.emit(k.TOOL_CALL_COMPLETED, this.toolCallManager.webRTCToolCallCompletedEventToToolCallCompletedPayload(u)), this.internalEventEmitter.emit(oe.WEBRTC_TOOL_CALL_COMPLETED_EVENT_RECEIVED, u);
|
|
13707
13707
|
break;
|
|
13708
13708
|
case Ye.TOOL_CALL_FAILED_EVENT:
|
|
13709
|
-
const
|
|
13710
|
-
this.publicEventEmitter.emit(k.TOOL_CALL_FAILED, this.toolCallManager.webRTCToolCallFailedEventToToolCallFailedPayload(
|
|
13709
|
+
const g = a.data;
|
|
13710
|
+
this.publicEventEmitter.emit(k.TOOL_CALL_FAILED, this.toolCallManager.webRTCToolCallFailedEventToToolCallFailedPayload(g)), this.internalEventEmitter.emit(oe.WEBRTC_TOOL_CALL_FAILED_EVENT_RECEIVED, g);
|
|
13711
13711
|
break;
|
|
13712
13712
|
case Ye.REASONING_TEXT:
|
|
13713
13713
|
this.internalEventEmitter.emit(oe.WEBRTC_REASONING_TEXT_MESSAGE_RECEIVED, a.data);
|
|
@@ -13943,14 +13943,14 @@ class Eh {
|
|
|
13943
13943
|
}
|
|
13944
13944
|
startSession(e) {
|
|
13945
13945
|
return lt(this, void 0, void 0, function* () {
|
|
13946
|
-
var t, s, n, r, o, a, l, h, f, u,
|
|
13947
|
-
const _ = this.personaConfig,
|
|
13948
|
-
this.sessionId =
|
|
13946
|
+
var t, s, n, r, o, a, l, h, f, u, g, m;
|
|
13947
|
+
const _ = this.personaConfig, v = this.buildStartSessionOptionsForClient(), C = yield this.apiClient.startSession(_, v), { sessionId: S, clientConfig: A, engineHost: I, engineProtocol: w, signallingEndpoint: T } = C, { heartbeatIntervalSeconds: M, maxWsReconnectionAttempts: F, iceServers: D } = A;
|
|
13948
|
+
this.sessionId = S, Ot({
|
|
13949
13949
|
sessionId: this.sessionId
|
|
13950
13950
|
});
|
|
13951
13951
|
const J = !((t = this.clientOptions) === null || t === void 0) && t.iceServers ? this.clientOptions.iceServers : D;
|
|
13952
13952
|
try {
|
|
13953
|
-
this.streamingClient = new Ch(
|
|
13953
|
+
this.streamingClient = new Ch(S, {
|
|
13954
13954
|
engine: {
|
|
13955
13955
|
baseUrl: `${w}://${I}`
|
|
13956
13956
|
},
|
|
@@ -13973,7 +13973,7 @@ class Eh {
|
|
|
13973
13973
|
apiGateway: (a = (o = this.clientOptions) === null || o === void 0 ? void 0 : o.api) === null || a === void 0 ? void 0 : a.apiGateway,
|
|
13974
13974
|
metrics: {
|
|
13975
13975
|
showPeerConnectionStatsReport: (f = (h = (l = this.clientOptions) === null || l === void 0 ? void 0 : l.metrics) === null || h === void 0 ? void 0 : h.showPeerConnectionStatsReport) !== null && f !== void 0 ? f : !1,
|
|
13976
|
-
peerConnectionStatsReportOutputFormat: (
|
|
13976
|
+
peerConnectionStatsReportOutputFormat: (m = (g = (u = this.clientOptions) === null || u === void 0 ? void 0 : u.metrics) === null || g === void 0 ? void 0 : g.peerConnectionStatsReportOutputFormat) !== null && m !== void 0 ? m : "console"
|
|
13977
13977
|
}
|
|
13978
13978
|
}, this.publicEventEmitter, this.internalEventEmitter, this.toolCallManager);
|
|
13979
13979
|
} catch (q) {
|
|
@@ -13981,10 +13981,10 @@ class Eh {
|
|
|
13981
13981
|
sessionId: null
|
|
13982
13982
|
}), new re("Failed to initialize streaming client", pe.CLIENT_ERROR_CODE_SERVER_ERROR, 500, {
|
|
13983
13983
|
cause: q instanceof Error ? q.message : String(q),
|
|
13984
|
-
sessionId:
|
|
13984
|
+
sessionId: S
|
|
13985
13985
|
});
|
|
13986
13986
|
}
|
|
13987
|
-
return
|
|
13987
|
+
return S;
|
|
13988
13988
|
});
|
|
13989
13989
|
}
|
|
13990
13990
|
startSessionIfNeeded(e) {
|
|
@@ -14354,12 +14354,12 @@ class kh {
|
|
|
14354
14354
|
if (a || l) {
|
|
14355
14355
|
const h = e++;
|
|
14356
14356
|
this.elementMap.set(h, r);
|
|
14357
|
-
const f = this.getUsefulAttrs(r), u = f ? " " + f : "",
|
|
14357
|
+
const f = this.getUsefulAttrs(r), u = f ? " " + f : "", g = this.getDirectText(r).slice(0, 200);
|
|
14358
14358
|
if (l) {
|
|
14359
|
-
const
|
|
14360
|
-
t.push(""), t.push(`${_} [${h}]${
|
|
14359
|
+
const m = parseInt(o[1]), _ = "#".repeat(m);
|
|
14360
|
+
t.push(""), t.push(`${_} [${h}]${g}`);
|
|
14361
14361
|
} else
|
|
14362
|
-
t.push(`[${h}]<${o}${u}>${
|
|
14362
|
+
t.push(`[${h}]<${o}${u}>${g}</${o}>`);
|
|
14363
14363
|
return;
|
|
14364
14364
|
}
|
|
14365
14365
|
for (const h of r.childNodes)
|
|
@@ -14853,8 +14853,8 @@ function Vi(i, e) {
|
|
|
14853
14853
|
return "url(".concat(h).concat(Yh(e) + l).concat(h, ")");
|
|
14854
14854
|
var f = e.split("/"), u = l.split("/");
|
|
14855
14855
|
f.pop();
|
|
14856
|
-
for (var
|
|
14857
|
-
var _ = g
|
|
14856
|
+
for (var g = 0, m = u; g < m.length; g++) {
|
|
14857
|
+
var _ = m[g];
|
|
14858
14858
|
_ !== "." && (_ === ".." ? f.pop() : f.push(_));
|
|
14859
14859
|
}
|
|
14860
14860
|
return "url(".concat(h).concat(f.join("/")).concat(h, ")");
|
|
@@ -14985,7 +14985,7 @@ function sd(i, e, t) {
|
|
|
14985
14985
|
}
|
|
14986
14986
|
}
|
|
14987
14987
|
function nd(i, e) {
|
|
14988
|
-
var t = e.doc, s = e.mirror, n = e.blockClass, r = e.blockSelector, o = e.maskTextClass, a = e.maskTextSelector, l = e.inlineStylesheet, h = e.maskInputOptions, f = h === void 0 ? {} : h, u = e.maskTextFn,
|
|
14988
|
+
var t = e.doc, s = e.mirror, n = e.blockClass, r = e.blockSelector, o = e.maskTextClass, a = e.maskTextSelector, l = e.inlineStylesheet, h = e.maskInputOptions, f = h === void 0 ? {} : h, u = e.maskTextFn, g = e.maskInputFn, m = e.dataURLOptions, _ = m === void 0 ? {} : m, v = e.inlineImages, C = e.recordCanvas, S = e.keepIframeSrcFn, A = e.newlyAddedElement, I = A === void 0 ? !1 : A, w = rd(t, s);
|
|
14989
14989
|
switch (i.nodeType) {
|
|
14990
14990
|
case i.DOCUMENT_NODE:
|
|
14991
14991
|
return i.compatMode !== "CSS1Compat" ? {
|
|
@@ -15011,11 +15011,11 @@ function nd(i, e) {
|
|
|
15011
15011
|
blockSelector: r,
|
|
15012
15012
|
inlineStylesheet: l,
|
|
15013
15013
|
maskInputOptions: f,
|
|
15014
|
-
maskInputFn:
|
|
15014
|
+
maskInputFn: g,
|
|
15015
15015
|
dataURLOptions: _,
|
|
15016
|
-
inlineImages:
|
|
15016
|
+
inlineImages: v,
|
|
15017
15017
|
recordCanvas: C,
|
|
15018
|
-
keepIframeSrcFn:
|
|
15018
|
+
keepIframeSrcFn: S,
|
|
15019
15019
|
newlyAddedElement: I,
|
|
15020
15020
|
rootId: w
|
|
15021
15021
|
});
|
|
@@ -15066,7 +15066,7 @@ function od(i, e) {
|
|
|
15066
15066
|
};
|
|
15067
15067
|
}
|
|
15068
15068
|
function ad(i, e) {
|
|
15069
|
-
for (var t = e.doc, s = e.blockClass, n = e.blockSelector, r = e.inlineStylesheet, o = e.maskInputOptions, a = o === void 0 ? {} : o, l = e.maskInputFn, h = e.dataURLOptions, f = h === void 0 ? {} : h, u = e.inlineImages,
|
|
15069
|
+
for (var t = e.doc, s = e.blockClass, n = e.blockSelector, r = e.inlineStylesheet, o = e.maskInputOptions, a = o === void 0 ? {} : o, l = e.maskInputFn, h = e.dataURLOptions, f = h === void 0 ? {} : h, u = e.inlineImages, g = e.recordCanvas, m = e.keepIframeSrcFn, _ = e.newlyAddedElement, v = _ === void 0 ? !1 : _, C = e.rootId, S = td(i, s, n), A = zh(i), I = {}, w = i.attributes.length, T = 0; T < w; T++) {
|
|
15070
15070
|
var M = i.attributes[T];
|
|
15071
15071
|
I[M.name] = Io(t, A, M.name, M.value);
|
|
15072
15072
|
}
|
|
@@ -15090,7 +15090,7 @@ function ad(i, e) {
|
|
|
15090
15090
|
maskInputFn: l
|
|
15091
15091
|
}) : q && (I.checked = q);
|
|
15092
15092
|
}
|
|
15093
|
-
if (A === "option" && (i.selected && !a.select ? I.selected = !0 : delete I.selected), A === "canvas" &&
|
|
15093
|
+
if (A === "option" && (i.selected && !a.select ? I.selected = !0 : delete I.selected), A === "canvas" && g) {
|
|
15094
15094
|
if (i.__context === "2d")
|
|
15095
15095
|
Wh(i) || (I.rr_dataURL = i.toDataURL(f.type, f.quality));
|
|
15096
15096
|
else if (!("__context" in i)) {
|
|
@@ -15114,7 +15114,7 @@ function ad(i, e) {
|
|
|
15114
15114
|
};
|
|
15115
15115
|
H.complete && H.naturalWidth !== 0 ? we() : H.onload = we;
|
|
15116
15116
|
}
|
|
15117
|
-
if ((A === "audio" || A === "video") && (I.rr_mediaState = i.paused ? "paused" : "played", I.rr_mediaCurrentTime = i.currentTime),
|
|
15117
|
+
if ((A === "audio" || A === "video") && (I.rr_mediaState = i.paused ? "paused" : "played", I.rr_mediaCurrentTime = i.currentTime), v || (i.scrollLeft && (I.rr_scrollLeft = i.scrollLeft), i.scrollTop && (I.rr_scrollTop = i.scrollTop)), S) {
|
|
15118
15118
|
var De = i.getBoundingClientRect(), Ue = De.width, ye = De.height;
|
|
15119
15119
|
I = {
|
|
15120
15120
|
class: I.class,
|
|
@@ -15122,13 +15122,13 @@ function ad(i, e) {
|
|
|
15122
15122
|
rr_height: "".concat(ye, "px")
|
|
15123
15123
|
};
|
|
15124
15124
|
}
|
|
15125
|
-
return A === "iframe" && !
|
|
15125
|
+
return A === "iframe" && !m(I.src) && (i.contentDocument || (I.rr_src = I.src), delete I.src), {
|
|
15126
15126
|
type: ce.Element,
|
|
15127
15127
|
tagName: A,
|
|
15128
15128
|
attributes: I,
|
|
15129
15129
|
childNodes: [],
|
|
15130
15130
|
isSVG: ed(i) || void 0,
|
|
15131
|
-
needBlock:
|
|
15131
|
+
needBlock: S,
|
|
15132
15132
|
rootId: C
|
|
15133
15133
|
};
|
|
15134
15134
|
}
|
|
@@ -15161,7 +15161,7 @@ function ld(i, e) {
|
|
|
15161
15161
|
return !1;
|
|
15162
15162
|
}
|
|
15163
15163
|
function Ut(i, e) {
|
|
15164
|
-
var t = e.doc, s = e.mirror, n = e.blockClass, r = e.blockSelector, o = e.maskTextClass, a = e.maskTextSelector, l = e.skipChild, h = l === void 0 ? !1 : l, f = e.inlineStylesheet, u = f === void 0 ? !0 : f,
|
|
15164
|
+
var t = e.doc, s = e.mirror, n = e.blockClass, r = e.blockSelector, o = e.maskTextClass, a = e.maskTextSelector, l = e.skipChild, h = l === void 0 ? !1 : l, f = e.inlineStylesheet, u = f === void 0 ? !0 : f, g = e.maskInputOptions, m = g === void 0 ? {} : g, _ = e.maskTextFn, v = e.maskInputFn, C = e.slimDOMOptions, S = e.dataURLOptions, A = S === void 0 ? {} : S, I = e.inlineImages, w = I === void 0 ? !1 : I, T = e.recordCanvas, M = T === void 0 ? !1 : T, F = e.onSerialize, D = e.onIframeLoad, J = e.iframeLoadTimeout, q = J === void 0 ? 5e3 : J, ue = e.onStylesheetLoad, me = e.stylesheetLoadTimeout, ge = me === void 0 ? 5e3 : me, H = e.keepIframeSrcFn, se = H === void 0 ? function() {
|
|
15165
15165
|
return !1;
|
|
15166
15166
|
} : H, we = e.newlyAddedElement, De = we === void 0 ? !1 : we, Ue = e.preserveWhiteSpace, ye = Ue === void 0 ? !0 : Ue, Ce = nd(i, {
|
|
15167
15167
|
doc: t,
|
|
@@ -15171,9 +15171,9 @@ function Ut(i, e) {
|
|
|
15171
15171
|
maskTextClass: o,
|
|
15172
15172
|
maskTextSelector: a,
|
|
15173
15173
|
inlineStylesheet: u,
|
|
15174
|
-
maskInputOptions:
|
|
15174
|
+
maskInputOptions: m,
|
|
15175
15175
|
maskTextFn: _,
|
|
15176
|
-
maskInputFn:
|
|
15176
|
+
maskInputFn: v,
|
|
15177
15177
|
dataURLOptions: A,
|
|
15178
15178
|
inlineImages: w,
|
|
15179
15179
|
recordCanvas: M,
|
|
@@ -15205,9 +15205,9 @@ function Ut(i, e) {
|
|
|
15205
15205
|
maskTextSelector: a,
|
|
15206
15206
|
skipChild: h,
|
|
15207
15207
|
inlineStylesheet: u,
|
|
15208
|
-
maskInputOptions:
|
|
15208
|
+
maskInputOptions: m,
|
|
15209
15209
|
maskTextFn: _,
|
|
15210
|
-
maskInputFn:
|
|
15210
|
+
maskInputFn: v,
|
|
15211
15211
|
slimDOMOptions: C,
|
|
15212
15212
|
dataURLOptions: A,
|
|
15213
15213
|
inlineImages: w,
|
|
@@ -15241,9 +15241,9 @@ function Ut(i, e) {
|
|
|
15241
15241
|
maskTextSelector: a,
|
|
15242
15242
|
skipChild: !1,
|
|
15243
15243
|
inlineStylesheet: u,
|
|
15244
|
-
maskInputOptions:
|
|
15244
|
+
maskInputOptions: m,
|
|
15245
15245
|
maskTextFn: _,
|
|
15246
|
-
maskInputFn:
|
|
15246
|
+
maskInputFn: v,
|
|
15247
15247
|
slimDOMOptions: C,
|
|
15248
15248
|
dataURLOptions: A,
|
|
15249
15249
|
inlineImages: w,
|
|
@@ -15269,9 +15269,9 @@ function Ut(i, e) {
|
|
|
15269
15269
|
maskTextSelector: a,
|
|
15270
15270
|
skipChild: !1,
|
|
15271
15271
|
inlineStylesheet: u,
|
|
15272
|
-
maskInputOptions:
|
|
15272
|
+
maskInputOptions: m,
|
|
15273
15273
|
maskTextFn: _,
|
|
15274
|
-
maskInputFn:
|
|
15274
|
+
maskInputFn: v,
|
|
15275
15275
|
slimDOMOptions: C,
|
|
15276
15276
|
dataURLOptions: A,
|
|
15277
15277
|
inlineImages: w,
|
|
@@ -15289,7 +15289,7 @@ function Ut(i, e) {
|
|
|
15289
15289
|
}, ge), L;
|
|
15290
15290
|
}
|
|
15291
15291
|
function cd(i, e) {
|
|
15292
|
-
var t = e || {}, s = t.mirror, n = s === void 0 ? new So() : s, r = t.blockClass, o = r === void 0 ? "rr-block" : r, a = t.blockSelector, l = a === void 0 ? null : a, h = t.maskTextClass, f = h === void 0 ? "rr-mask" : h, u = t.maskTextSelector,
|
|
15292
|
+
var t = e || {}, s = t.mirror, n = s === void 0 ? new So() : s, r = t.blockClass, o = r === void 0 ? "rr-block" : r, a = t.blockSelector, l = a === void 0 ? null : a, h = t.maskTextClass, f = h === void 0 ? "rr-mask" : h, u = t.maskTextSelector, g = u === void 0 ? null : u, m = t.inlineStylesheet, _ = m === void 0 ? !0 : m, v = t.inlineImages, C = v === void 0 ? !1 : v, S = t.recordCanvas, A = S === void 0 ? !1 : S, I = t.maskAllInputs, w = I === void 0 ? !1 : I, T = t.maskTextFn, M = t.maskInputFn, F = t.slimDOM, D = F === void 0 ? !1 : F, J = t.dataURLOptions, q = t.preserveWhiteSpace, ue = t.onSerialize, me = t.onIframeLoad, ge = t.iframeLoadTimeout, H = t.onStylesheetLoad, se = t.stylesheetLoadTimeout, we = t.keepIframeSrcFn, De = we === void 0 ? function() {
|
|
15293
15293
|
return !1;
|
|
15294
15294
|
} : we, Ue = w === !0 ? {
|
|
15295
15295
|
color: !0,
|
|
@@ -15328,7 +15328,7 @@ function cd(i, e) {
|
|
|
15328
15328
|
blockClass: o,
|
|
15329
15329
|
blockSelector: l,
|
|
15330
15330
|
maskTextClass: f,
|
|
15331
|
-
maskTextSelector:
|
|
15331
|
+
maskTextSelector: g,
|
|
15332
15332
|
skipChild: !1,
|
|
15333
15333
|
inlineStylesheet: _,
|
|
15334
15334
|
maskInputOptions: Ue,
|
|
@@ -15552,18 +15552,18 @@ class pd {
|
|
|
15552
15552
|
return h;
|
|
15553
15553
|
}, n = (a) => {
|
|
15554
15554
|
var l, h, f, u;
|
|
15555
|
-
let
|
|
15556
|
-
((h = (l = a.getRootNode) === null || l === void 0 ? void 0 : l.call(a)) === null || h === void 0 ? void 0 : h.nodeType) === Node.DOCUMENT_FRAGMENT_NODE && a.getRootNode().host && (
|
|
15557
|
-
let
|
|
15558
|
-
for (; ((u = (f =
|
|
15559
|
-
|
|
15560
|
-
const _ = !this.doc.contains(a) && (!
|
|
15555
|
+
let g = null;
|
|
15556
|
+
((h = (l = a.getRootNode) === null || l === void 0 ? void 0 : l.call(a)) === null || h === void 0 ? void 0 : h.nodeType) === Node.DOCUMENT_FRAGMENT_NODE && a.getRootNode().host && (g = a.getRootNode().host);
|
|
15557
|
+
let m = g;
|
|
15558
|
+
for (; ((u = (f = m == null ? void 0 : m.getRootNode) === null || f === void 0 ? void 0 : f.call(m)) === null || u === void 0 ? void 0 : u.nodeType) === Node.DOCUMENT_FRAGMENT_NODE && m.getRootNode().host; )
|
|
15559
|
+
m = m.getRootNode().host;
|
|
15560
|
+
const _ = !this.doc.contains(a) && (!m || !this.doc.contains(m));
|
|
15561
15561
|
if (!a.parentNode || _)
|
|
15562
15562
|
return;
|
|
15563
|
-
const
|
|
15564
|
-
if (
|
|
15563
|
+
const v = ni(a.parentNode) ? this.mirror.getId(g) : this.mirror.getId(a.parentNode), C = s(a);
|
|
15564
|
+
if (v === -1 || C === -1)
|
|
15565
15565
|
return t.addNode(a);
|
|
15566
|
-
const
|
|
15566
|
+
const S = Ut(a, {
|
|
15567
15567
|
doc: this.doc,
|
|
15568
15568
|
mirror: this.mirror,
|
|
15569
15569
|
blockClass: this.blockClass,
|
|
@@ -15590,10 +15590,10 @@ class pd {
|
|
|
15590
15590
|
this.stylesheetManager.attachLinkElement(A, I);
|
|
15591
15591
|
}
|
|
15592
15592
|
});
|
|
15593
|
-
|
|
15594
|
-
parentId:
|
|
15593
|
+
S && e.push({
|
|
15594
|
+
parentId: v,
|
|
15595
15595
|
nextId: C,
|
|
15596
|
-
node:
|
|
15596
|
+
node: S
|
|
15597
15597
|
});
|
|
15598
15598
|
};
|
|
15599
15599
|
for (; this.mapRemoves.length; )
|
|
@@ -15620,10 +15620,10 @@ class pd {
|
|
|
15620
15620
|
a = h;
|
|
15621
15621
|
break;
|
|
15622
15622
|
} else {
|
|
15623
|
-
const
|
|
15624
|
-
if (
|
|
15625
|
-
const
|
|
15626
|
-
if (this.mirror.getId(
|
|
15623
|
+
const g = h.value;
|
|
15624
|
+
if (g.parentNode && g.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
|
15625
|
+
const m = g.parentNode.host;
|
|
15626
|
+
if (this.mirror.getId(m) !== -1) {
|
|
15627
15627
|
a = h;
|
|
15628
15628
|
break;
|
|
15629
15629
|
}
|
|
@@ -15825,14 +15825,14 @@ function md({ mousemoveCb: i, sampling: e, doc: t, mirror: s }) {
|
|
|
15825
15825
|
const n = typeof e.mousemove == "number" ? e.mousemove : 50, r = typeof e.mousemoveCallback == "number" ? e.mousemoveCallback : 500;
|
|
15826
15826
|
let o = [], a;
|
|
15827
15827
|
const l = ui((u) => {
|
|
15828
|
-
const
|
|
15829
|
-
i(o.map((
|
|
15828
|
+
const g = Date.now() - a;
|
|
15829
|
+
i(o.map((m) => (m.timeOffset -= g, m)), u), o = [], a = null;
|
|
15830
15830
|
}, r), h = ui((u) => {
|
|
15831
|
-
const
|
|
15831
|
+
const g = pi(u), { clientX: m, clientY: _ } = Ro(u) ? u.changedTouches[0] : u;
|
|
15832
15832
|
a || (a = Date.now()), o.push({
|
|
15833
|
-
x:
|
|
15833
|
+
x: m,
|
|
15834
15834
|
y: _,
|
|
15835
|
-
id: s.getId(
|
|
15835
|
+
id: s.getId(g),
|
|
15836
15836
|
timeOffset: Date.now() - a
|
|
15837
15837
|
}), l(typeof DragEvent < "u" && u instanceof DragEvent ? P.Drag : u instanceof MouseEvent ? P.MouseMove : P.TouchMove);
|
|
15838
15838
|
}, n, {
|
|
@@ -15854,15 +15854,15 @@ function gd({ mouseInteractionCb: i, doc: e, mirror: t, blockClass: s, blockSele
|
|
|
15854
15854
|
const u = pi(f);
|
|
15855
15855
|
if (Ie(u, s, n, !0))
|
|
15856
15856
|
return;
|
|
15857
|
-
const
|
|
15858
|
-
if (!
|
|
15857
|
+
const g = Ro(f) ? f.changedTouches[0] : f;
|
|
15858
|
+
if (!g)
|
|
15859
15859
|
return;
|
|
15860
|
-
const
|
|
15860
|
+
const m = t.getId(u), { clientX: _, clientY: v } = g;
|
|
15861
15861
|
i({
|
|
15862
15862
|
type: Ms[h],
|
|
15863
|
-
id:
|
|
15863
|
+
id: m,
|
|
15864
15864
|
x: _,
|
|
15865
|
-
y:
|
|
15865
|
+
y: v
|
|
15866
15866
|
});
|
|
15867
15867
|
};
|
|
15868
15868
|
return Object.keys(Ms).filter((h) => Number.isNaN(Number(h)) && !h.endsWith("_Departed") && o[h] !== !1).forEach((h) => {
|
|
@@ -15911,9 +15911,9 @@ function Xn(i, e) {
|
|
|
15911
15911
|
}
|
|
15912
15912
|
const _d = ["INPUT", "TEXTAREA", "SELECT"], qn = /* @__PURE__ */ new WeakMap();
|
|
15913
15913
|
function vd({ inputCb: i, doc: e, mirror: t, blockClass: s, blockSelector: n, ignoreClass: r, maskInputOptions: o, maskInputFn: a, sampling: l, userTriggeredOnInput: h }) {
|
|
15914
|
-
function f(
|
|
15915
|
-
let A = pi(
|
|
15916
|
-
const I =
|
|
15914
|
+
function f(S) {
|
|
15915
|
+
let A = pi(S);
|
|
15916
|
+
const I = S.isTrusted;
|
|
15917
15917
|
if (A && A.tagName === "OPTION" && (A = A.parentElement), !A || !A.tagName || _d.indexOf(A.tagName) < 0 || Ie(A, s, n, !0))
|
|
15918
15918
|
return;
|
|
15919
15919
|
const w = A.type;
|
|
@@ -15936,20 +15936,20 @@ function vd({ inputCb: i, doc: e, mirror: t, blockClass: s, blockSelector: n, ig
|
|
|
15936
15936
|
}, h));
|
|
15937
15937
|
});
|
|
15938
15938
|
}
|
|
15939
|
-
function u(
|
|
15940
|
-
const I = qn.get(
|
|
15939
|
+
function u(S, A) {
|
|
15940
|
+
const I = qn.get(S);
|
|
15941
15941
|
if (!I || I.text !== A.text || I.isChecked !== A.isChecked) {
|
|
15942
|
-
qn.set(
|
|
15943
|
-
const w = t.getId(
|
|
15942
|
+
qn.set(S, A);
|
|
15943
|
+
const w = t.getId(S);
|
|
15944
15944
|
i(Object.assign(Object.assign({}, A), { id: w }));
|
|
15945
15945
|
}
|
|
15946
15946
|
}
|
|
15947
|
-
const
|
|
15947
|
+
const m = (l.input === "last" ? ["change"] : ["input", "change"]).map((S) => Ee(S, f, e)), _ = e.defaultView;
|
|
15948
15948
|
if (!_)
|
|
15949
15949
|
return () => {
|
|
15950
|
-
|
|
15950
|
+
m.forEach((S) => S());
|
|
15951
15951
|
};
|
|
15952
|
-
const
|
|
15952
|
+
const v = _.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype, "value"), C = [
|
|
15953
15953
|
[_.HTMLInputElement.prototype, "value"],
|
|
15954
15954
|
[_.HTMLInputElement.prototype, "checked"],
|
|
15955
15955
|
[_.HTMLSelectElement.prototype, "value"],
|
|
@@ -15957,12 +15957,12 @@ function vd({ inputCb: i, doc: e, mirror: t, blockClass: s, blockSelector: n, ig
|
|
|
15957
15957
|
[_.HTMLSelectElement.prototype, "selectedIndex"],
|
|
15958
15958
|
[_.HTMLOptionElement.prototype, "selected"]
|
|
15959
15959
|
];
|
|
15960
|
-
return
|
|
15960
|
+
return v && v.set && m.push(...C.map((S) => Yi(S[0], S[1], {
|
|
15961
15961
|
set() {
|
|
15962
15962
|
f({ target: this });
|
|
15963
15963
|
}
|
|
15964
15964
|
}, !1, _))), () => {
|
|
15965
|
-
|
|
15965
|
+
m.forEach((S) => S());
|
|
15966
15966
|
};
|
|
15967
15967
|
}
|
|
15968
15968
|
function Wi(i) {
|
|
@@ -15989,37 +15989,37 @@ function dt(i, e, t) {
|
|
|
15989
15989
|
function bd({ styleSheetRuleCb: i, mirror: e, stylesheetManager: t }, { win: s }) {
|
|
15990
15990
|
const n = s.CSSStyleSheet.prototype.insertRule;
|
|
15991
15991
|
s.CSSStyleSheet.prototype.insertRule = function(f, u) {
|
|
15992
|
-
const { id:
|
|
15993
|
-
return (
|
|
15994
|
-
id:
|
|
15995
|
-
styleId:
|
|
15992
|
+
const { id: g, styleId: m } = dt(this, e, t.styleMirror);
|
|
15993
|
+
return (g && g !== -1 || m && m !== -1) && i({
|
|
15994
|
+
id: g,
|
|
15995
|
+
styleId: m,
|
|
15996
15996
|
adds: [{ rule: f, index: u }]
|
|
15997
15997
|
}), n.apply(this, [f, u]);
|
|
15998
15998
|
};
|
|
15999
15999
|
const r = s.CSSStyleSheet.prototype.deleteRule;
|
|
16000
16000
|
s.CSSStyleSheet.prototype.deleteRule = function(f) {
|
|
16001
|
-
const { id: u, styleId:
|
|
16002
|
-
return (u && u !== -1 ||
|
|
16001
|
+
const { id: u, styleId: g } = dt(this, e, t.styleMirror);
|
|
16002
|
+
return (u && u !== -1 || g && g !== -1) && i({
|
|
16003
16003
|
id: u,
|
|
16004
|
-
styleId:
|
|
16004
|
+
styleId: g,
|
|
16005
16005
|
removes: [{ index: f }]
|
|
16006
16006
|
}), r.apply(this, [f]);
|
|
16007
16007
|
};
|
|
16008
16008
|
let o;
|
|
16009
16009
|
s.CSSStyleSheet.prototype.replace && (o = s.CSSStyleSheet.prototype.replace, s.CSSStyleSheet.prototype.replace = function(f) {
|
|
16010
|
-
const { id: u, styleId:
|
|
16011
|
-
return (u && u !== -1 ||
|
|
16010
|
+
const { id: u, styleId: g } = dt(this, e, t.styleMirror);
|
|
16011
|
+
return (u && u !== -1 || g && g !== -1) && i({
|
|
16012
16012
|
id: u,
|
|
16013
|
-
styleId:
|
|
16013
|
+
styleId: g,
|
|
16014
16014
|
replace: f
|
|
16015
16015
|
}), o.apply(this, [f]);
|
|
16016
16016
|
});
|
|
16017
16017
|
let a;
|
|
16018
16018
|
s.CSSStyleSheet.prototype.replaceSync && (a = s.CSSStyleSheet.prototype.replaceSync, s.CSSStyleSheet.prototype.replaceSync = function(f) {
|
|
16019
|
-
const { id: u, styleId:
|
|
16020
|
-
return (u && u !== -1 ||
|
|
16019
|
+
const { id: u, styleId: g } = dt(this, e, t.styleMirror);
|
|
16020
|
+
return (u && u !== -1 || g && g !== -1) && i({
|
|
16021
16021
|
id: u,
|
|
16022
|
-
styleId:
|
|
16022
|
+
styleId: g,
|
|
16023
16023
|
replaceSync: f
|
|
16024
16024
|
}), a.apply(this, [f]);
|
|
16025
16025
|
});
|
|
@@ -16030,30 +16030,30 @@ function bd({ styleSheetRuleCb: i, mirror: e, stylesheetManager: t }, { win: s }
|
|
|
16030
16030
|
h[f] = {
|
|
16031
16031
|
insertRule: u.prototype.insertRule,
|
|
16032
16032
|
deleteRule: u.prototype.deleteRule
|
|
16033
|
-
}, u.prototype.insertRule = function(
|
|
16034
|
-
const { id: _, styleId:
|
|
16035
|
-
return (_ && _ !== -1 ||
|
|
16033
|
+
}, u.prototype.insertRule = function(g, m) {
|
|
16034
|
+
const { id: _, styleId: v } = dt(this.parentStyleSheet, e, t.styleMirror);
|
|
16035
|
+
return (_ && _ !== -1 || v && v !== -1) && i({
|
|
16036
16036
|
id: _,
|
|
16037
|
-
styleId:
|
|
16037
|
+
styleId: v,
|
|
16038
16038
|
adds: [
|
|
16039
16039
|
{
|
|
16040
|
-
rule:
|
|
16040
|
+
rule: g,
|
|
16041
16041
|
index: [
|
|
16042
16042
|
...Wi(this),
|
|
16043
|
-
|
|
16043
|
+
m || 0
|
|
16044
16044
|
]
|
|
16045
16045
|
}
|
|
16046
16046
|
]
|
|
16047
|
-
}), h[f].insertRule.apply(this, [
|
|
16048
|
-
}, u.prototype.deleteRule = function(
|
|
16049
|
-
const { id:
|
|
16050
|
-
return (
|
|
16051
|
-
id:
|
|
16047
|
+
}), h[f].insertRule.apply(this, [g, m]);
|
|
16048
|
+
}, u.prototype.deleteRule = function(g) {
|
|
16049
|
+
const { id: m, styleId: _ } = dt(this.parentStyleSheet, e, t.styleMirror);
|
|
16050
|
+
return (m && m !== -1 || _ && _ !== -1) && i({
|
|
16051
|
+
id: m,
|
|
16052
16052
|
styleId: _,
|
|
16053
16053
|
removes: [
|
|
16054
|
-
{ index: [...Wi(this),
|
|
16054
|
+
{ index: [...Wi(this), g] }
|
|
16055
16055
|
]
|
|
16056
|
-
}), h[f].deleteRule.apply(this, [
|
|
16056
|
+
}), h[f].deleteRule.apply(this, [g]);
|
|
16057
16057
|
};
|
|
16058
16058
|
}), () => {
|
|
16059
16059
|
s.CSSStyleSheet.prototype.insertRule = n, s.CSSStyleSheet.prototype.deleteRule = r, o && (s.CSSStyleSheet.prototype.replace = o), a && (s.CSSStyleSheet.prototype.replaceSync = a), Object.entries(l).forEach(([f, u]) => {
|
|
@@ -16099,10 +16099,10 @@ function Cd({ styleDeclarationCb: i, mirror: e, ignoreCSSAttributes: t, styleshe
|
|
|
16099
16099
|
var f;
|
|
16100
16100
|
if (t.has(a))
|
|
16101
16101
|
return r.apply(this, [a, l, h]);
|
|
16102
|
-
const { id: u, styleId:
|
|
16103
|
-
return (u && u !== -1 ||
|
|
16102
|
+
const { id: u, styleId: g } = dt((f = this.parentRule) === null || f === void 0 ? void 0 : f.parentStyleSheet, e, s.styleMirror);
|
|
16103
|
+
return (u && u !== -1 || g && g !== -1) && i({
|
|
16104
16104
|
id: u,
|
|
16105
|
-
styleId:
|
|
16105
|
+
styleId: g,
|
|
16106
16106
|
set: {
|
|
16107
16107
|
property: a,
|
|
16108
16108
|
value: l,
|
|
@@ -16134,14 +16134,14 @@ function Sd({ mediaInteractionCb: i, blockClass: e, blockSelector: t, mirror: s,
|
|
|
16134
16134
|
const h = pi(l);
|
|
16135
16135
|
if (!h || Ie(h, e, t, !0))
|
|
16136
16136
|
return;
|
|
16137
|
-
const { currentTime: f, volume: u, muted:
|
|
16137
|
+
const { currentTime: f, volume: u, muted: g, playbackRate: m } = h;
|
|
16138
16138
|
i({
|
|
16139
16139
|
type: a,
|
|
16140
16140
|
id: s.getId(h),
|
|
16141
16141
|
currentTime: f,
|
|
16142
16142
|
volume: u,
|
|
16143
|
-
muted:
|
|
16144
|
-
playbackRate:
|
|
16143
|
+
muted: g,
|
|
16144
|
+
playbackRate: m
|
|
16145
16145
|
});
|
|
16146
16146
|
}, n.media || 500), o = [
|
|
16147
16147
|
Ee("play", r(0)),
|
|
@@ -16193,11 +16193,11 @@ function Id(i) {
|
|
|
16193
16193
|
o = l.isCollapsed || !1;
|
|
16194
16194
|
const h = [], f = l.rangeCount || 0;
|
|
16195
16195
|
for (let u = 0; u < f; u++) {
|
|
16196
|
-
const
|
|
16197
|
-
Ie(
|
|
16198
|
-
start: t.getId(
|
|
16196
|
+
const g = l.getRangeAt(u), { startContainer: m, startOffset: _, endContainer: v, endOffset: C } = g;
|
|
16197
|
+
Ie(m, s, n, !0) || Ie(v, s, n, !0) || h.push({
|
|
16198
|
+
start: t.getId(m),
|
|
16199
16199
|
startOffset: _,
|
|
16200
|
-
end: t.getId(
|
|
16200
|
+
end: t.getId(v),
|
|
16201
16201
|
endOffset: C
|
|
16202
16202
|
});
|
|
16203
16203
|
}
|
|
@@ -16206,7 +16206,7 @@ function Id(i) {
|
|
|
16206
16206
|
return a(), Ee("selectionchange", a);
|
|
16207
16207
|
}
|
|
16208
16208
|
function Ad(i, e) {
|
|
16209
|
-
const { mutationCb: t, mousemoveCb: s, mouseInteractionCb: n, scrollCb: r, viewportResizeCb: o, inputCb: a, mediaInteractionCb: l, styleSheetRuleCb: h, styleDeclarationCb: f, canvasMutationCb: u, fontCb:
|
|
16209
|
+
const { mutationCb: t, mousemoveCb: s, mouseInteractionCb: n, scrollCb: r, viewportResizeCb: o, inputCb: a, mediaInteractionCb: l, styleSheetRuleCb: h, styleDeclarationCb: f, canvasMutationCb: u, fontCb: g, selectionCb: m } = i;
|
|
16210
16210
|
i.mutationCb = (..._) => {
|
|
16211
16211
|
e.mutation && e.mutation(..._), t(..._);
|
|
16212
16212
|
}, i.mousemoveCb = (..._) => {
|
|
@@ -16228,9 +16228,9 @@ function Ad(i, e) {
|
|
|
16228
16228
|
}, i.canvasMutationCb = (..._) => {
|
|
16229
16229
|
e.canvasMutation && e.canvasMutation(..._), u(..._);
|
|
16230
16230
|
}, i.fontCb = (..._) => {
|
|
16231
|
-
e.font && e.font(..._),
|
|
16231
|
+
e.font && e.font(..._), g(..._);
|
|
16232
16232
|
}, i.selectionCb = (..._) => {
|
|
16233
|
-
e.selection && e.selection(..._),
|
|
16233
|
+
e.selection && e.selection(..._), m(..._);
|
|
16234
16234
|
};
|
|
16235
16235
|
}
|
|
16236
16236
|
function xd(i, e = {}) {
|
|
@@ -16239,14 +16239,14 @@ function xd(i, e = {}) {
|
|
|
16239
16239
|
return () => {
|
|
16240
16240
|
};
|
|
16241
16241
|
Ad(i, e);
|
|
16242
|
-
const s = Uo(i, i.doc), n = md(i), r = gd(i), o = Vo(i), a = yd(i), l = vd(i), h = Sd(i), f = bd(i, { win: t }), u = Go(i, i.doc),
|
|
16242
|
+
const s = Uo(i, i.doc), n = md(i), r = gd(i), o = Vo(i), a = yd(i), l = vd(i), h = Sd(i), f = bd(i, { win: t }), u = Go(i, i.doc), g = Cd(i, {
|
|
16243
16243
|
win: t
|
|
16244
|
-
}),
|
|
16245
|
-
}, _ = Id(i),
|
|
16244
|
+
}), m = i.collectFonts ? Ed(i) : () => {
|
|
16245
|
+
}, _ = Id(i), v = [];
|
|
16246
16246
|
for (const C of i.plugins)
|
|
16247
|
-
|
|
16247
|
+
v.push(C.observer(C.callback, t, C.options));
|
|
16248
16248
|
return () => {
|
|
16249
|
-
St.forEach((C) => C.reset()), s.disconnect(), n(), r(), o(), a(), l(), h(), f(), u(),
|
|
16249
|
+
St.forEach((C) => C.reset()), s.disconnect(), n(), r(), o(), a(), l(), h(), f(), u(), g(), m(), _(), v.forEach((C) => C());
|
|
16250
16250
|
};
|
|
16251
16251
|
}
|
|
16252
16252
|
class Kn {
|
|
@@ -16656,27 +16656,27 @@ function Qn(i, e, t, s, n, r, o) {
|
|
|
16656
16656
|
if (typeof i[h] != "function")
|
|
16657
16657
|
continue;
|
|
16658
16658
|
const f = Ht(i, h, function(u) {
|
|
16659
|
-
return function(...
|
|
16660
|
-
const
|
|
16661
|
-
if (Wo(
|
|
16662
|
-
const _ = Ho([...
|
|
16659
|
+
return function(...g) {
|
|
16660
|
+
const m = u.apply(this, g);
|
|
16661
|
+
if (Wo(m, o, this), !Ie(this.canvas, s, n, !0)) {
|
|
16662
|
+
const _ = Ho([...g], o, this), v = {
|
|
16663
16663
|
type: e,
|
|
16664
16664
|
property: h,
|
|
16665
16665
|
args: _
|
|
16666
16666
|
};
|
|
16667
|
-
t(this.canvas,
|
|
16667
|
+
t(this.canvas, v);
|
|
16668
16668
|
}
|
|
16669
|
-
return
|
|
16669
|
+
return m;
|
|
16670
16670
|
};
|
|
16671
16671
|
});
|
|
16672
16672
|
a.push(f);
|
|
16673
16673
|
} catch {
|
|
16674
16674
|
const u = Yi(i, h, {
|
|
16675
|
-
set(
|
|
16675
|
+
set(g) {
|
|
16676
16676
|
t(this.canvas, {
|
|
16677
16677
|
type: e,
|
|
16678
16678
|
property: h,
|
|
16679
|
-
args: [
|
|
16679
|
+
args: [g],
|
|
16680
16680
|
setter: !0
|
|
16681
16681
|
});
|
|
16682
16682
|
}
|
|
@@ -16758,12 +16758,12 @@ class jd {
|
|
|
16758
16758
|
initCanvasFPSObserver(e, t, s, n, r) {
|
|
16759
16759
|
const o = Jn(t, s, n), a = /* @__PURE__ */ new Map(), l = new zd();
|
|
16760
16760
|
l.onmessage = (_) => {
|
|
16761
|
-
const { id:
|
|
16762
|
-
if (a.set(
|
|
16761
|
+
const { id: v } = _.data;
|
|
16762
|
+
if (a.set(v, !1), !("base64" in _.data))
|
|
16763
16763
|
return;
|
|
16764
|
-
const { base64: C, type:
|
|
16764
|
+
const { base64: C, type: S, width: A, height: I } = _.data;
|
|
16765
16765
|
this.mutationCb({
|
|
16766
|
-
id:
|
|
16766
|
+
id: v,
|
|
16767
16767
|
type: $t["2D"],
|
|
16768
16768
|
commands: [
|
|
16769
16769
|
{
|
|
@@ -16779,7 +16779,7 @@ class jd {
|
|
|
16779
16779
|
{
|
|
16780
16780
|
rr_type: "Blob",
|
|
16781
16781
|
data: [{ rr_type: "ArrayBuffer", base64: C }],
|
|
16782
|
-
type:
|
|
16782
|
+
type: S
|
|
16783
16783
|
}
|
|
16784
16784
|
]
|
|
16785
16785
|
},
|
|
@@ -16792,36 +16792,36 @@ class jd {
|
|
|
16792
16792
|
};
|
|
16793
16793
|
const h = 1e3 / e;
|
|
16794
16794
|
let f = 0, u;
|
|
16795
|
-
const
|
|
16795
|
+
const g = () => {
|
|
16796
16796
|
const _ = [];
|
|
16797
|
-
return t.document.querySelectorAll("canvas").forEach((
|
|
16798
|
-
Ie(
|
|
16797
|
+
return t.document.querySelectorAll("canvas").forEach((v) => {
|
|
16798
|
+
Ie(v, s, n, !0) || _.push(v);
|
|
16799
16799
|
}), _;
|
|
16800
|
-
},
|
|
16800
|
+
}, m = (_) => {
|
|
16801
16801
|
if (f && _ - f < h) {
|
|
16802
|
-
u = requestAnimationFrame(
|
|
16802
|
+
u = requestAnimationFrame(m);
|
|
16803
16803
|
return;
|
|
16804
16804
|
}
|
|
16805
|
-
f = _,
|
|
16805
|
+
f = _, g().forEach((v) => Od(this, void 0, void 0, function* () {
|
|
16806
16806
|
var C;
|
|
16807
|
-
const
|
|
16808
|
-
if (a.get(
|
|
16807
|
+
const S = this.mirror.getId(v);
|
|
16808
|
+
if (a.get(S))
|
|
16809
16809
|
return;
|
|
16810
|
-
if (a.set(
|
|
16811
|
-
const I =
|
|
16810
|
+
if (a.set(S, !0), ["webgl", "webgl2"].includes(v.__context)) {
|
|
16811
|
+
const I = v.getContext(v.__context);
|
|
16812
16812
|
((C = I == null ? void 0 : I.getContextAttributes()) === null || C === void 0 ? void 0 : C.preserveDrawingBuffer) === !1 && (I == null || I.clear(I.COLOR_BUFFER_BIT));
|
|
16813
16813
|
}
|
|
16814
|
-
const A = yield createImageBitmap(
|
|
16814
|
+
const A = yield createImageBitmap(v);
|
|
16815
16815
|
l.postMessage({
|
|
16816
|
-
id:
|
|
16816
|
+
id: S,
|
|
16817
16817
|
bitmap: A,
|
|
16818
|
-
width:
|
|
16819
|
-
height:
|
|
16818
|
+
width: v.width,
|
|
16819
|
+
height: v.height,
|
|
16820
16820
|
dataURLOptions: r.dataURLOptions
|
|
16821
16821
|
}, [A]);
|
|
16822
|
-
})), u = requestAnimationFrame(
|
|
16822
|
+
})), u = requestAnimationFrame(m);
|
|
16823
16823
|
};
|
|
16824
|
-
u = requestAnimationFrame(
|
|
16824
|
+
u = requestAnimationFrame(m), this.resetObservers = () => {
|
|
16825
16825
|
o(), cancelAnimationFrame(u);
|
|
16826
16826
|
};
|
|
16827
16827
|
}
|
|
@@ -16915,7 +16915,7 @@ function ne(i) {
|
|
|
16915
16915
|
let te, Pi, ys, Hi = !1;
|
|
16916
16916
|
const Ge = Gh();
|
|
16917
16917
|
function zt(i = {}) {
|
|
16918
|
-
const { emit: e, checkoutEveryNms: t, checkoutEveryNth: s, blockClass: n = "rr-block", blockSelector: r = null, ignoreClass: o = "rr-ignore", maskTextClass: a = "rr-mask", maskTextSelector: l = null, inlineStylesheet: h = !0, maskAllInputs: f, maskInputOptions: u, slimDOMOptions:
|
|
16918
|
+
const { emit: e, checkoutEveryNms: t, checkoutEveryNth: s, blockClass: n = "rr-block", blockSelector: r = null, ignoreClass: o = "rr-ignore", maskTextClass: a = "rr-mask", maskTextSelector: l = null, inlineStylesheet: h = !0, maskAllInputs: f, maskInputOptions: u, slimDOMOptions: g, maskInputFn: m, maskTextFn: _, hooks: v, packFn: C, sampling: S = {}, dataURLOptions: A = {}, mousemoveWait: I, recordCanvas: w = !1, recordCrossOriginIframes: T = !1, userTriggeredOnInput: M = !1, collectFonts: F = !1, inlineImages: D = !1, plugins: J, keepIframeSrcFn: q = () => !1, ignoreCSSAttributes: ue = /* @__PURE__ */ new Set([]) } = i, me = T ? window.parent === window : !0;
|
|
16919
16919
|
let ge = !1;
|
|
16920
16920
|
if (!me)
|
|
16921
16921
|
try {
|
|
@@ -16925,7 +16925,7 @@ function zt(i = {}) {
|
|
|
16925
16925
|
}
|
|
16926
16926
|
if (me && !e)
|
|
16927
16927
|
throw new Error("emit function is required");
|
|
16928
|
-
I !== void 0 &&
|
|
16928
|
+
I !== void 0 && S.mousemove === void 0 && (S.mousemove = I), Ge.reset();
|
|
16929
16929
|
const H = f === !0 ? {
|
|
16930
16930
|
color: !0,
|
|
16931
16931
|
date: !0,
|
|
@@ -16943,7 +16943,7 @@ function zt(i = {}) {
|
|
|
16943
16943
|
textarea: !0,
|
|
16944
16944
|
select: !0,
|
|
16945
16945
|
password: !0
|
|
16946
|
-
} : u !== void 0 ? u : { password: !0 }, se =
|
|
16946
|
+
} : u !== void 0 ? u : { password: !0 }, se = g === !0 || g === "all" ? {
|
|
16947
16947
|
script: !0,
|
|
16948
16948
|
comment: !0,
|
|
16949
16949
|
headFavicon: !0,
|
|
@@ -16952,9 +16952,9 @@ function zt(i = {}) {
|
|
|
16952
16952
|
headMetaRobots: !0,
|
|
16953
16953
|
headMetaHttpEquiv: !0,
|
|
16954
16954
|
headMetaVerification: !0,
|
|
16955
|
-
headMetaAuthorship:
|
|
16956
|
-
headMetaDescKeywords:
|
|
16957
|
-
} :
|
|
16955
|
+
headMetaAuthorship: g === "all",
|
|
16956
|
+
headMetaDescKeywords: g === "all"
|
|
16957
|
+
} : g || {};
|
|
16958
16958
|
dd();
|
|
16959
16959
|
let we, De = 0;
|
|
16960
16960
|
const Ue = (O) => {
|
|
@@ -17021,7 +17021,7 @@ function zt(i = {}) {
|
|
|
17021
17021
|
blockClass: n,
|
|
17022
17022
|
blockSelector: r,
|
|
17023
17023
|
mirror: Ge,
|
|
17024
|
-
sampling:
|
|
17024
|
+
sampling: S.canvas,
|
|
17025
17025
|
dataURLOptions: A
|
|
17026
17026
|
});
|
|
17027
17027
|
const Je = new Td({
|
|
@@ -17036,10 +17036,10 @@ function zt(i = {}) {
|
|
|
17036
17036
|
maskInputOptions: H,
|
|
17037
17037
|
dataURLOptions: A,
|
|
17038
17038
|
maskTextFn: _,
|
|
17039
|
-
maskInputFn:
|
|
17039
|
+
maskInputFn: m,
|
|
17040
17040
|
recordCanvas: w,
|
|
17041
17041
|
inlineImages: D,
|
|
17042
|
-
sampling:
|
|
17042
|
+
sampling: S,
|
|
17043
17043
|
slimDOMOptions: se,
|
|
17044
17044
|
iframeManager: Te,
|
|
17045
17045
|
stylesheetManager: xe,
|
|
@@ -17156,13 +17156,13 @@ function zt(i = {}) {
|
|
|
17156
17156
|
maskTextSelector: l,
|
|
17157
17157
|
maskInputOptions: H,
|
|
17158
17158
|
inlineStylesheet: h,
|
|
17159
|
-
sampling:
|
|
17159
|
+
sampling: S,
|
|
17160
17160
|
recordCanvas: w,
|
|
17161
17161
|
inlineImages: D,
|
|
17162
17162
|
userTriggeredOnInput: M,
|
|
17163
17163
|
collectFonts: F,
|
|
17164
17164
|
doc: $,
|
|
17165
|
-
maskInputFn:
|
|
17165
|
+
maskInputFn: m,
|
|
17166
17166
|
maskTextFn: _,
|
|
17167
17167
|
keepIframeSrcFn: q,
|
|
17168
17168
|
blockSelector: r,
|
|
@@ -17185,7 +17185,7 @@ function zt(i = {}) {
|
|
|
17185
17185
|
}
|
|
17186
17186
|
}))
|
|
17187
17187
|
}))) || []
|
|
17188
|
-
},
|
|
17188
|
+
}, v);
|
|
17189
17189
|
};
|
|
17190
17190
|
Te.addLoadListener(($) => {
|
|
17191
17191
|
O.push(ae($.contentDocument));
|
|
@@ -17556,11 +17556,11 @@ const Ds = (i, e, t) => Math.min(Math.max(t, i), e), _s = 1e-3, nu = 0.01, ru =
|
|
|
17556
17556
|
function lu({ duration: i = 800, bounce: e = 0.25, velocity: t = 0, mass: s = 1 }) {
|
|
17557
17557
|
let n, r, o = 1 - e;
|
|
17558
17558
|
o = Ds(ou, au, o), i = Ds(nu, ru, i / 1e3), o < 1 ? (n = (h) => {
|
|
17559
|
-
const f = h * o, u = f * i,
|
|
17560
|
-
return _s -
|
|
17559
|
+
const f = h * o, u = f * i, g = f - t, m = Ls(h, o), _ = Math.exp(-u);
|
|
17560
|
+
return _s - g / m * _;
|
|
17561
17561
|
}, r = (h) => {
|
|
17562
|
-
const u = h * o * i,
|
|
17563
|
-
return (-n(h) + _s > 0 ? -1 : 1) * ((
|
|
17562
|
+
const u = h * o * i, g = u * t + t, m = Math.pow(o, 2) * Math.pow(h, 2) * i, _ = Math.exp(-u), v = Ls(Math.pow(h, 2), o);
|
|
17563
|
+
return (-n(h) + _s > 0 ? -1 : 1) * ((g - m) * _) / v;
|
|
17564
17564
|
}) : (n = (h) => {
|
|
17565
17565
|
const f = Math.exp(-h * i), u = (h - t) * i + 1;
|
|
17566
17566
|
return -_s + f * u;
|
|
@@ -17609,41 +17609,41 @@ function fu(i) {
|
|
|
17609
17609
|
function Zs(i) {
|
|
17610
17610
|
var { from: e = 0, to: t = 1, restSpeed: s = 2, restDelta: n } = i, r = Xo(i, ["from", "to", "restSpeed", "restDelta"]);
|
|
17611
17611
|
const o = { done: !1, value: e };
|
|
17612
|
-
let { stiffness: a, damping: l, mass: h, velocity: f, duration: u, isResolvedFromDuration:
|
|
17613
|
-
function
|
|
17614
|
-
const C = f ? -(f / 1e3) : 0,
|
|
17612
|
+
let { stiffness: a, damping: l, mass: h, velocity: f, duration: u, isResolvedFromDuration: g } = fu(r), m = sr, _ = sr;
|
|
17613
|
+
function v() {
|
|
17614
|
+
const C = f ? -(f / 1e3) : 0, S = t - e, A = l / (2 * Math.sqrt(a * h)), I = Math.sqrt(a / h) / 1e3;
|
|
17615
17615
|
if (n === void 0 && (n = Math.min(Math.abs(t - e) / 100, 0.4)), A < 1) {
|
|
17616
17616
|
const w = Ls(I, A);
|
|
17617
|
-
|
|
17617
|
+
m = (T) => {
|
|
17618
17618
|
const M = Math.exp(-A * I * T);
|
|
17619
|
-
return t - M * ((C + A * I *
|
|
17619
|
+
return t - M * ((C + A * I * S) / w * Math.sin(w * T) + S * Math.cos(w * T));
|
|
17620
17620
|
}, _ = (T) => {
|
|
17621
17621
|
const M = Math.exp(-A * I * T);
|
|
17622
|
-
return A * I * M * (Math.sin(w * T) * (C + A * I *
|
|
17622
|
+
return A * I * M * (Math.sin(w * T) * (C + A * I * S) / w + S * Math.cos(w * T)) - M * (Math.cos(w * T) * (C + A * I * S) - w * S * Math.sin(w * T));
|
|
17623
17623
|
};
|
|
17624
17624
|
} else if (A === 1)
|
|
17625
|
-
|
|
17625
|
+
m = (w) => t - Math.exp(-I * w) * (S + (C + I * S) * w);
|
|
17626
17626
|
else {
|
|
17627
17627
|
const w = I * Math.sqrt(A * A - 1);
|
|
17628
|
-
|
|
17628
|
+
m = (T) => {
|
|
17629
17629
|
const M = Math.exp(-A * I * T), F = Math.min(w * T, 300);
|
|
17630
|
-
return t - M * ((C + A * I *
|
|
17630
|
+
return t - M * ((C + A * I * S) * Math.sinh(F) + w * S * Math.cosh(F)) / w;
|
|
17631
17631
|
};
|
|
17632
17632
|
}
|
|
17633
17633
|
}
|
|
17634
|
-
return
|
|
17634
|
+
return v(), {
|
|
17635
17635
|
next: (C) => {
|
|
17636
|
-
const
|
|
17637
|
-
if (
|
|
17636
|
+
const S = m(C);
|
|
17637
|
+
if (g)
|
|
17638
17638
|
o.done = C >= u;
|
|
17639
17639
|
else {
|
|
17640
|
-
const A = _(C) * 1e3, I = Math.abs(A) <= s, w = Math.abs(t -
|
|
17640
|
+
const A = _(C) * 1e3, I = Math.abs(A) <= s, w = Math.abs(t - S) <= n;
|
|
17641
17641
|
o.done = I && w;
|
|
17642
17642
|
}
|
|
17643
|
-
return o.value = o.done ? t :
|
|
17643
|
+
return o.value = o.done ? t : S, o;
|
|
17644
17644
|
},
|
|
17645
17645
|
flipTarget: () => {
|
|
17646
|
-
f = -f, [e, t] = [t, e],
|
|
17646
|
+
f = -f, [e, t] = [t, e], v();
|
|
17647
17647
|
}
|
|
17648
17648
|
};
|
|
17649
17649
|
}
|
|
@@ -17896,8 +17896,8 @@ function Gu(i) {
|
|
|
17896
17896
|
let e = [], t = [], s = 0, n = !1, r = !1;
|
|
17897
17897
|
const o = /* @__PURE__ */ new WeakSet(), a = {
|
|
17898
17898
|
schedule: (l, h = !1, f = !1) => {
|
|
17899
|
-
const u = f && n,
|
|
17900
|
-
return h && o.add(l),
|
|
17899
|
+
const u = f && n, g = u ? e : t;
|
|
17900
|
+
return h && o.add(l), g.indexOf(l) === -1 && (g.push(l), u && n && (s = e.length)), l;
|
|
17901
17901
|
},
|
|
17902
17902
|
cancel: (l) => {
|
|
17903
17903
|
const h = t.indexOf(l);
|
|
@@ -17956,18 +17956,18 @@ const qu = (i) => {
|
|
|
17956
17956
|
};
|
|
17957
17957
|
};
|
|
17958
17958
|
function Ku(i) {
|
|
17959
|
-
var e, t, { from: s, autoplay: n = !0, driver: r = qu, elapsed: o = 0, repeat: a = 0, repeatType: l = "loop", repeatDelay: h = 0, onPlay: f, onStop: u, onComplete:
|
|
17960
|
-
let { to: C } =
|
|
17961
|
-
const D = Uu(
|
|
17959
|
+
var e, t, { from: s, autoplay: n = !0, driver: r = qu, elapsed: o = 0, repeat: a = 0, repeatType: l = "loop", repeatDelay: h = 0, onPlay: f, onStop: u, onComplete: g, onRepeat: m, onUpdate: _ } = i, v = Xo(i, ["from", "autoplay", "driver", "elapsed", "repeat", "repeatType", "repeatDelay", "onPlay", "onStop", "onComplete", "onRepeat", "onUpdate"]);
|
|
17960
|
+
let { to: C } = v, S, A = 0, I = v.duration, w, T = !1, M = !0, F;
|
|
17961
|
+
const D = Uu(v);
|
|
17962
17962
|
!((t = (e = D).needsInterpolation) === null || t === void 0) && t.call(e, s, C) && (F = ha([0, 100], [s, C], {
|
|
17963
17963
|
clamp: !1
|
|
17964
17964
|
}), s = 0, C = 100);
|
|
17965
|
-
const J = D(Object.assign(Object.assign({},
|
|
17965
|
+
const J = D(Object.assign(Object.assign({}, v), { from: s, to: C }));
|
|
17966
17966
|
function q() {
|
|
17967
|
-
A++, l === "reverse" ? (M = A % 2 === 0, o = Yu(o, I, h, M)) : (o = pa(o, I, h), l === "mirror" && J.flipTarget()), T = !1,
|
|
17967
|
+
A++, l === "reverse" ? (M = A % 2 === 0, o = Yu(o, I, h, M)) : (o = pa(o, I, h), l === "mirror" && J.flipTarget()), T = !1, m && m();
|
|
17968
17968
|
}
|
|
17969
17969
|
function ue() {
|
|
17970
|
-
|
|
17970
|
+
S.stop(), g && g();
|
|
17971
17971
|
}
|
|
17972
17972
|
function me(H) {
|
|
17973
17973
|
if (M || (H = -H), o += H, !T) {
|
|
@@ -17977,11 +17977,11 @@ function Ku(i) {
|
|
|
17977
17977
|
_ == null || _(w), T && (A === 0 && (I ?? (I = o)), A < a ? Xu(o, I, h, M) && q() : ue());
|
|
17978
17978
|
}
|
|
17979
17979
|
function ge() {
|
|
17980
|
-
f == null || f(),
|
|
17980
|
+
f == null || f(), S = r(me), S.start();
|
|
17981
17981
|
}
|
|
17982
17982
|
return n && ge(), {
|
|
17983
17983
|
stop: () => {
|
|
17984
|
-
u == null || u(),
|
|
17984
|
+
u == null || u(), S.stop();
|
|
17985
17985
|
}
|
|
17986
17986
|
};
|
|
17987
17987
|
}
|
|
@@ -18031,70 +18031,70 @@ function ke(i, e = {}) {
|
|
|
18031
18031
|
from: r,
|
|
18032
18032
|
to: 1,
|
|
18033
18033
|
preset: s,
|
|
18034
|
-
onUpdate: (
|
|
18035
|
-
i.style.opacity = String(
|
|
18034
|
+
onUpdate: (g) => {
|
|
18035
|
+
i.style.opacity = String(g);
|
|
18036
18036
|
},
|
|
18037
18037
|
onComplete: u
|
|
18038
18038
|
})), l.push(mt({
|
|
18039
18039
|
from: o,
|
|
18040
18040
|
to: 1,
|
|
18041
18041
|
preset: s,
|
|
18042
|
-
onUpdate: (
|
|
18042
|
+
onUpdate: (g) => {
|
|
18043
18043
|
var _;
|
|
18044
|
-
const
|
|
18045
|
-
i.style.transform = `scale(${
|
|
18044
|
+
const m = parseFloat(((_ = i.style.transform.match(/translateY\(([^)]+)\)/)) == null ? void 0 : _[1]) ?? "0");
|
|
18045
|
+
i.style.transform = `scale(${g}) translateY(${m}px)`;
|
|
18046
18046
|
},
|
|
18047
18047
|
onComplete: u
|
|
18048
18048
|
})), l.push(mt({
|
|
18049
18049
|
from: a,
|
|
18050
18050
|
to: 0,
|
|
18051
18051
|
preset: s,
|
|
18052
|
-
onUpdate: (
|
|
18052
|
+
onUpdate: (g) => {
|
|
18053
18053
|
var _;
|
|
18054
|
-
const
|
|
18055
|
-
i.style.transform = `scale(${
|
|
18054
|
+
const m = parseFloat(((_ = i.style.transform.match(/scale\(([^)]+)\)/)) == null ? void 0 : _[1]) ?? "1");
|
|
18055
|
+
i.style.transform = `scale(${m}) translateY(${g}px)`;
|
|
18056
18056
|
},
|
|
18057
18057
|
onComplete: u
|
|
18058
18058
|
})), {
|
|
18059
|
-
stop: () => l.forEach((
|
|
18059
|
+
stop: () => l.forEach((g) => g.stop())
|
|
18060
18060
|
};
|
|
18061
18061
|
}
|
|
18062
18062
|
function rt(i, e = {}) {
|
|
18063
18063
|
const { to: t = {}, preset: s = "smooth", remove: n = !0, onComplete: r } = e, o = t.opacity ?? 0, a = t.scale ?? 0.92, l = t.y ?? 8, h = [];
|
|
18064
18064
|
let f = 0;
|
|
18065
|
-
const u = 3,
|
|
18065
|
+
const u = 3, g = () => {
|
|
18066
18066
|
++f >= u && (n && i.remove(), r == null || r());
|
|
18067
18067
|
};
|
|
18068
18068
|
return h.push(mt({
|
|
18069
18069
|
from: parseFloat(i.style.opacity || "1"),
|
|
18070
18070
|
to: o,
|
|
18071
18071
|
preset: s,
|
|
18072
|
-
onUpdate: (
|
|
18073
|
-
i.style.opacity = String(
|
|
18072
|
+
onUpdate: (m) => {
|
|
18073
|
+
i.style.opacity = String(m);
|
|
18074
18074
|
},
|
|
18075
|
-
onComplete:
|
|
18075
|
+
onComplete: g
|
|
18076
18076
|
})), h.push(mt({
|
|
18077
18077
|
from: 1,
|
|
18078
18078
|
to: a,
|
|
18079
18079
|
preset: s,
|
|
18080
|
-
onUpdate: (
|
|
18081
|
-
var
|
|
18082
|
-
const _ = parseFloat(((
|
|
18083
|
-
i.style.transform = `scale(${
|
|
18080
|
+
onUpdate: (m) => {
|
|
18081
|
+
var v;
|
|
18082
|
+
const _ = parseFloat(((v = i.style.transform.match(/translateY\(([^)]+)\)/)) == null ? void 0 : v[1]) ?? "0");
|
|
18083
|
+
i.style.transform = `scale(${m}) translateY(${_}px)`;
|
|
18084
18084
|
},
|
|
18085
|
-
onComplete:
|
|
18085
|
+
onComplete: g
|
|
18086
18086
|
})), h.push(mt({
|
|
18087
18087
|
from: 0,
|
|
18088
18088
|
to: l,
|
|
18089
18089
|
preset: s,
|
|
18090
|
-
onUpdate: (
|
|
18091
|
-
var
|
|
18092
|
-
const _ = parseFloat(((
|
|
18093
|
-
i.style.transform = `scale(${_}) translateY(${
|
|
18090
|
+
onUpdate: (m) => {
|
|
18091
|
+
var v;
|
|
18092
|
+
const _ = parseFloat(((v = i.style.transform.match(/scale\(([^)]+)\)/)) == null ? void 0 : v[1]) ?? "1");
|
|
18093
|
+
i.style.transform = `scale(${_}) translateY(${m}px)`;
|
|
18094
18094
|
},
|
|
18095
|
-
onComplete:
|
|
18095
|
+
onComplete: g
|
|
18096
18096
|
})), {
|
|
18097
|
-
stop: () => h.forEach((
|
|
18097
|
+
stop: () => h.forEach((m) => m.stop())
|
|
18098
18098
|
};
|
|
18099
18099
|
}
|
|
18100
18100
|
const lr = "holostaff-liquid-tokens", R = {
|
|
@@ -18251,7 +18251,7 @@ function Ze() {
|
|
|
18251
18251
|
const Qu = 15e3;
|
|
18252
18252
|
class ef {
|
|
18253
18253
|
constructor(e) {
|
|
18254
|
-
this.currentIntervention = null, this.autoDismissTimer = null, this._active = !1, this.cardOverlay = null, this.cardOverlayAnim = null, this.onAccept = null, this.wsClient = e.wsClient, this.getWidgetState = e.getWidgetState, this.getHomeVisible = e.getHomeVisible, this.inlineTarget = e.inlineTarget ?? null, this.pill = e.pill ?? null, this.wsClient.onIntervention = (t) => this.handleIntervention(t);
|
|
18254
|
+
this.currentIntervention = null, this.autoDismissTimer = null, this._active = !1, this.cardOverlay = null, this.cardOverlayAnim = null, this.onInterventionShown = null, this.onAccept = null, this.wsClient = e.wsClient, this.getWidgetState = e.getWidgetState, this.getHomeVisible = e.getHomeVisible, this.inlineTarget = e.inlineTarget ?? null, this.pill = e.pill ?? null, this.wsClient.onIntervention = (t) => this.handleIntervention(t);
|
|
18255
18255
|
}
|
|
18256
18256
|
get isActive() {
|
|
18257
18257
|
return this._active;
|
|
@@ -18263,13 +18263,14 @@ class ef {
|
|
|
18263
18263
|
// Intervention handling
|
|
18264
18264
|
// -----------------------------------------------------------------------
|
|
18265
18265
|
handleIntervention(e) {
|
|
18266
|
+
var n;
|
|
18266
18267
|
const t = this.getWidgetState();
|
|
18267
18268
|
if (t === "active" || t === "connecting") {
|
|
18268
18269
|
this.wsClient.sendActionComplete(e.actionId, "ignored");
|
|
18269
18270
|
return;
|
|
18270
18271
|
}
|
|
18271
18272
|
if (this._active) return;
|
|
18272
|
-
console.log(`[ActionExecutor] Showing suggestion: "${e.message}"`), this.currentIntervention = e, this._active = !0;
|
|
18273
|
+
console.log(`[ActionExecutor] Showing suggestion: "${e.message}"`), this.currentIntervention = e, this._active = !0, (n = this.onInterventionShown) == null || n.call(this, e.goalId, e.message);
|
|
18273
18274
|
const s = this.getHomeVisible();
|
|
18274
18275
|
this.inlineTarget && s ? this.showCardOverlay(e.message) : this.pill && this.showInPill(e.message), this.autoDismissTimer = setTimeout(() => this.handleIgnore(), Qu);
|
|
18275
18276
|
}
|
|
@@ -19388,8 +19389,8 @@ const If = 800, Af = 600 * 1e3, xf = 540 * 1e3, ur = 60 * 1e3, wf = 90 * 1e3, Tf
|
|
|
19388
19389
|
];
|
|
19389
19390
|
class Rf {
|
|
19390
19391
|
// skip observer hide for one cycle after conversation ends
|
|
19391
|
-
constructor(e, t) {
|
|
19392
|
-
this.stage = null, this.avatar = null, this.state = "idle", this.avatarState = "idle", this.scrollHandler = null, this.idleVideoUrl = null, this.idleImageUrl = null, this.bubbleTimer = null, this.realtimeSession = null, this.audioForwarder = null, this.anamSession = null, this.sessionResponse = null, this.domAnalyzer = null, this.toolHandler = null, this.maxDurationTimer = null, this.maxDurationWarnTimer = null, this.inactivityTimer = null, this.inactivityCloseTimer = null, this.sessionStartTime = 0, this.logger = null, this.rrwebRecorder = null, this.visionWs = null, this.externalObserver = !1, this.actionExecutor = null, this.visionContext = null, this.staffDisplayName = "Assistant", this.staffAvatarUrl = null, this.hasHadConversation = !1, this.pendingEndAfterResponse = null, this.avatarFrame = null, this.bubble = null, this.chatPill = null, this.overlayRenderer = null, this.controls = null, this.confirmationPrompt = null, this.highlightRenderer = null, this.stageBackdrop = null, this.stageEl = null, this.homePlaceholder = null, this.homeObserver = null, this.homeVisible = !0, this.homeEverSeen = !1, this.pillProtected = !1, this.paused = !1, this.config = e, this.widgetPrompts = t ?? null, this.visitorId = this.getOrCreateVisitorId();
|
|
19392
|
+
constructor(e, t, s) {
|
|
19393
|
+
this.stage = null, this.avatar = null, this.state = "idle", this.avatarState = "idle", this.scrollHandler = null, this.idleVideoUrl = null, this.idleImageUrl = null, this.bubbleTimer = null, this.realtimeSession = null, this.audioForwarder = null, this.anamSession = null, this.sessionResponse = null, this.domAnalyzer = null, this.toolHandler = null, this.maxDurationTimer = null, this.maxDurationWarnTimer = null, this.inactivityTimer = null, this.inactivityCloseTimer = null, this.sessionStartTime = 0, this.logger = null, this.rrwebRecorder = null, this.visionWs = null, this.externalObserver = !1, this.actionExecutor = null, this.visionContext = null, this.staffDisplayName = "Assistant", this.staffAvatarUrl = null, this.hasHadConversation = !1, this.pendingEndAfterResponse = null, this.avatarFrame = null, this.bubble = null, this.chatPill = null, this.overlayRenderer = null, this.controls = null, this.confirmationPrompt = null, this.highlightRenderer = null, this.stageBackdrop = null, this.stageEl = null, this.homePlaceholder = null, this.homeObserver = null, this.homeVisible = !0, this.homeEverSeen = !1, this.pillProtected = !1, this.paused = !1, this.config = e, this.widgetPrompts = t ?? null, this.evalMode = s ?? !1, this.visitorId = this.getOrCreateVisitorId();
|
|
19393
19394
|
}
|
|
19394
19395
|
/** Whether the widget is in inline embed mode. */
|
|
19395
19396
|
get isInline() {
|
|
@@ -19498,6 +19499,14 @@ class Rf {
|
|
|
19498
19499
|
this.staffDisplayName = e, this.staffAvatarUrl = t;
|
|
19499
19500
|
}
|
|
19500
19501
|
// -----------------------------------------------------------------------
|
|
19502
|
+
// Eval mode — write to window.__HS_EVAL_STATE__ for the eval runner
|
|
19503
|
+
// -----------------------------------------------------------------------
|
|
19504
|
+
updateEvalState(e) {
|
|
19505
|
+
if (!this.evalMode) return;
|
|
19506
|
+
const t = window.__HS_EVAL_STATE__;
|
|
19507
|
+
t && Object.assign(t, e);
|
|
19508
|
+
}
|
|
19509
|
+
// -----------------------------------------------------------------------
|
|
19501
19510
|
// Trigger & Teaser
|
|
19502
19511
|
// -----------------------------------------------------------------------
|
|
19503
19512
|
setupTrigger() {
|
|
@@ -19545,16 +19554,16 @@ class Rf {
|
|
|
19545
19554
|
// Conversation lifecycle (Issues 5-8)
|
|
19546
19555
|
// -----------------------------------------------------------------------
|
|
19547
19556
|
async onAvatarClick() {
|
|
19548
|
-
var e, t, s, n, r, o, a, l, h, f, u,
|
|
19557
|
+
var e, t, s, n, r, o, a, l, h, f, u, g;
|
|
19549
19558
|
if (!(this.state !== "teasing" && this.state !== "idle")) {
|
|
19550
19559
|
if (this.state = "connecting", (e = this.bubble) == null || e.stop(), (t = this.bubble) == null || t.hideStatic(), (s = this.actionExecutor) == null || s.destroy(), this.actionExecutor = null, this.isInline) {
|
|
19551
19560
|
(n = this.chatPill) == null || n.showConnecting();
|
|
19552
|
-
const
|
|
19553
|
-
|
|
19561
|
+
const m = (o = (r = this.stage) == null ? void 0 : r.inlineTarget) == null ? void 0 : o.querySelector(".hs-inline-card video");
|
|
19562
|
+
m && m.pause();
|
|
19554
19563
|
} else {
|
|
19555
19564
|
(a = this.stage) != null && a.rootElement && (this.stage.rootElement.style.display = "");
|
|
19556
|
-
const
|
|
19557
|
-
|
|
19565
|
+
const m = document.querySelector("#holostaff-widget-root video");
|
|
19566
|
+
m && m.pause(), (l = this.bubble) == null || l.showStatic("Connecting...");
|
|
19558
19567
|
}
|
|
19559
19568
|
console.log("[HolostaffWidget] Starting conversation...");
|
|
19560
19569
|
try {
|
|
@@ -19565,9 +19574,9 @@ class Rf {
|
|
|
19565
19574
|
staffId: this.config.staffId,
|
|
19566
19575
|
staffName: this.sessionResponse.staff.name,
|
|
19567
19576
|
backendUrl: this.config.backendUrl
|
|
19568
|
-
}), await this.connectAnam(), await this.connectRealtimeApi(), this.state = "active", this.setAvatarState("listening"), this.sessionStartTime = Date.now(), (h = this.bubble) == null || h.hideStatic(), this.showControls(), this.startSessionTimers(), (f = this.visionWs) == null || f.sendConversationStarted(), (u = this.rrwebRecorder) == null || u.pause(), console.log("[HolostaffWidget] Conversation active");
|
|
19569
|
-
} catch (
|
|
19570
|
-
console.error("[HolostaffWidget] Failed to start conversation:",
|
|
19577
|
+
}), await this.connectAnam(), await this.connectRealtimeApi(), this.state = "active", this.setAvatarState("listening"), this.sessionStartTime = Date.now(), (h = this.bubble) == null || h.hideStatic(), this.updateEvalState({ conversationStarted: !0 }), this.showControls(), this.startSessionTimers(), (f = this.visionWs) == null || f.sendConversationStarted(), (u = this.rrwebRecorder) == null || u.pause(), console.log("[HolostaffWidget] Conversation active");
|
|
19578
|
+
} catch (m) {
|
|
19579
|
+
console.error("[HolostaffWidget] Failed to start conversation:", m), (g = this.bubble) == null || g.hideStatic(), this.endConversation();
|
|
19571
19580
|
}
|
|
19572
19581
|
}
|
|
19573
19582
|
}
|
|
@@ -19759,8 +19768,8 @@ All actions except form filling require the visitor to confirm before executing.
|
|
|
19759
19768
|
// --- AI response done → signal end of audio turn to Anam ---
|
|
19760
19769
|
case "response.done":
|
|
19761
19770
|
if (console.log("[HolostaffWidget] AI response done"), (a = this.anamSession) == null || a.endSequence(), this.setAvatarState("listening"), this.extractAiTranscript(e.response), this.pendingEndAfterResponse) {
|
|
19762
|
-
const { flag: u, reason:
|
|
19763
|
-
this.pendingEndAfterResponse = null, u && Ta(this.config.staffId, this.visitorId,
|
|
19771
|
+
const { flag: u, reason: g } = this.pendingEndAfterResponse;
|
|
19772
|
+
this.pendingEndAfterResponse = null, u && Ta(this.config.staffId, this.visitorId, g, this.config.backendUrl), this.endConversation();
|
|
19764
19773
|
} else
|
|
19765
19774
|
this.resetInactivityTimer();
|
|
19766
19775
|
break;
|
|
@@ -19851,10 +19860,10 @@ All actions except form filling require the visitor to confirm before executing.
|
|
|
19851
19860
|
// End conversation
|
|
19852
19861
|
// -----------------------------------------------------------------------
|
|
19853
19862
|
endConversation() {
|
|
19854
|
-
var t, s, n, r, o, a, l, h, f, u,
|
|
19855
|
-
(t = this.logger) == null || t.flush(), this.logger = null, this.clearSessionTimers(), (s = this.controls) == null || s.hide(), this.controls = null, (n = this.audioForwarder) == null || n.stop(), this.audioForwarder = null, (r = this.anamSession) == null || r.close(), this.anamSession = null, (o = this.realtimeSession) == null || o.close(), this.realtimeSession = null, this.sessionResponse = null, this.avatarState = "idle", this.pendingEndAfterResponse = null, this.toolHandler = null, this.domAnalyzer = null, (a = this.highlightRenderer) == null || a.clearAll(), this.highlightRenderer = null, (l = this.confirmationPrompt) == null || l.dismiss(), this.confirmationPrompt = null, (h = this.overlayRenderer) == null || h.dismissAll(), this.overlayRenderer = null, this.avatar && this.stage && this.avatar.clearLiveVideo(this.stage.app.ticker);
|
|
19863
|
+
var t, s, n, r, o, a, l, h, f, u, g, m, _;
|
|
19864
|
+
this.updateEvalState({ conversationEnded: !0 }), (t = this.logger) == null || t.flush(), this.logger = null, this.clearSessionTimers(), (s = this.controls) == null || s.hide(), this.controls = null, (n = this.audioForwarder) == null || n.stop(), this.audioForwarder = null, (r = this.anamSession) == null || r.close(), this.anamSession = null, (o = this.realtimeSession) == null || o.close(), this.realtimeSession = null, this.sessionResponse = null, this.avatarState = "idle", this.pendingEndAfterResponse = null, this.toolHandler = null, this.domAnalyzer = null, (a = this.highlightRenderer) == null || a.clearAll(), this.highlightRenderer = null, (l = this.confirmationPrompt) == null || l.dismiss(), this.confirmationPrompt = null, (h = this.overlayRenderer) == null || h.dismissAll(), this.overlayRenderer = null, this.avatar && this.stage && this.avatar.clearLiveVideo(this.stage.app.ticker);
|
|
19856
19865
|
const e = this.buildConversationSummary();
|
|
19857
|
-
(f = this.visionWs) == null || f.sendConversationEnded(e), (u = this.rrwebRecorder) == null || u.resume(), this.hasHadConversation = !0, this.state = "idle", document.querySelectorAll('[id^="anam-avatar-wrapper"]').forEach((
|
|
19866
|
+
(f = this.visionWs) == null || f.sendConversationEnded(e), (u = this.rrwebRecorder) == null || u.resume(), this.hasHadConversation = !0, this.state = "idle", document.querySelectorAll('[id^="anam-avatar-wrapper"]').forEach((v) => v.remove()), document.querySelectorAll('video[id^="anam-avatar-video"]').forEach((v) => v.remove()), this.isInline ? (this.returnToHome(), this.pillProtected = !0, (g = this.chatPill) == null || g.restoreName(), (m = this.chatPill) == null || m.showNamed(), this.attachActionExecutor()) : (this.avatar && (this.avatar.container.visible = !1), (_ = this.stage) != null && _.rootElement && (this.stage.rootElement.style.display = "none"), this.showChatPill()), console.log("[HolostaffWidget] Conversation ended");
|
|
19858
19867
|
}
|
|
19859
19868
|
showChatPill() {
|
|
19860
19869
|
this.chatPill || (this.chatPill = new hr(), this.chatPill.init(this.staffAvatarUrl, this.idleVideoUrl, this.staffDisplayName), this.chatPill.onClick = () => this.onAvatarClick()), this.chatPill.showNamed();
|
|
@@ -19891,7 +19900,9 @@ All actions except form filling require the visitor to confirm before executing.
|
|
|
19891
19900
|
getHomeVisible: () => this.homeVisible,
|
|
19892
19901
|
inlineTarget: ((e = this.stage) == null ? void 0 : e.inlineTarget) ?? null,
|
|
19893
19902
|
pill: this.chatPill
|
|
19894
|
-
}), this.actionExecutor.
|
|
19903
|
+
}), this.actionExecutor.onInterventionShown = (t, s) => {
|
|
19904
|
+
this.updateEvalState({ interventionFired: !0, skillId: t, openingMessage: s });
|
|
19905
|
+
}, this.actionExecutor.onAccept = (t) => {
|
|
19895
19906
|
console.log("[HolostaffWidget] Suggestion accepted — starting conversation with vision context"), this.visionContext = t, this.onAvatarClick();
|
|
19896
19907
|
});
|
|
19897
19908
|
}
|
|
@@ -19985,59 +19996,65 @@ function Df() {
|
|
|
19985
19996
|
}
|
|
19986
19997
|
try {
|
|
19987
19998
|
let e = function(n, r, o, a, l) {
|
|
19988
|
-
const h = new Rf(n, o);
|
|
19999
|
+
const h = new Rf(n, o, r == null ? void 0 : r.evalMode);
|
|
19989
20000
|
return a && l && h.setObserver(a, l), r != null && r.idleVideoUrl ? h.setIdleVideo(r.idleVideoUrl) : r != null && r.avatarImageUrl && h.setIdleImage(r.avatarImageUrl), r && h.setStaffInfo(r.name, r.avatarImageUrl), h;
|
|
19990
20001
|
};
|
|
19991
20002
|
const t = ba(i);
|
|
19992
20003
|
async function s() {
|
|
19993
20004
|
let n = t, r = null, o = null;
|
|
19994
|
-
const a = Nf();
|
|
20005
|
+
const a = window.__HS_EVAL__, l = (a == null ? void 0 : a.visitorId) ?? Nf();
|
|
19995
20006
|
try {
|
|
19996
|
-
if (o = await wa(t.staffId, t.backendUrl,
|
|
20007
|
+
if (o = await wa(t.staffId, t.backendUrl, l), o.blocked) {
|
|
19997
20008
|
console.log("[HolostaffWidget] Visitor blocked — widget suppressed.");
|
|
19998
20009
|
return;
|
|
19999
20010
|
}
|
|
20000
|
-
n = Ia(t, i, o), r = o.widgetPrompts
|
|
20001
|
-
|
|
20002
|
-
|
|
20011
|
+
n = Ia(t, i, o), r = o.widgetPrompts, o.evalMode && (window.__HS_EVAL_STATE__ = {
|
|
20012
|
+
interventionFired: !1,
|
|
20013
|
+
skillId: null,
|
|
20014
|
+
openingMessage: null,
|
|
20015
|
+
conversationStarted: !1,
|
|
20016
|
+
conversationEnded: !1
|
|
20017
|
+
}, console.log("[HolostaffWidget] Eval mode active — __HS_EVAL_STATE__ initialized"));
|
|
20018
|
+
} catch (v) {
|
|
20019
|
+
if (v.name === "WidgetDisabledError") {
|
|
20003
20020
|
console.log("[HolostaffWidget] Agent is not active — widget suppressed");
|
|
20004
20021
|
return;
|
|
20005
20022
|
}
|
|
20006
|
-
console.warn("[HolostaffWidget] Failed to fetch server config, using embed defaults:",
|
|
20023
|
+
console.warn("[HolostaffWidget] Failed to fetch server config, using embed defaults:", v);
|
|
20007
20024
|
}
|
|
20008
|
-
const
|
|
20009
|
-
let
|
|
20010
|
-
n.visionWsUrl && (
|
|
20025
|
+
const h = Of(o == null ? void 0 : o.pagePatterns);
|
|
20026
|
+
let f = null, u = null;
|
|
20027
|
+
n.visionWsUrl && (f = new jo(), u = new Yo(n.visionWsUrl, {
|
|
20011
20028
|
staffId: n.staffId,
|
|
20012
|
-
visitorId:
|
|
20029
|
+
visitorId: l,
|
|
20013
20030
|
pageUrl: location.href,
|
|
20014
20031
|
pageTitle: document.title,
|
|
20015
|
-
pagePatterns:
|
|
20016
|
-
const
|
|
20017
|
-
return
|
|
20032
|
+
pagePatterns: h.map((v) => {
|
|
20033
|
+
const C = { pattern: v.pattern };
|
|
20034
|
+
return v.container && (C.container = v.container), C;
|
|
20018
20035
|
})
|
|
20019
|
-
}),
|
|
20020
|
-
|
|
20021
|
-
},
|
|
20022
|
-
let
|
|
20023
|
-
if (
|
|
20024
|
-
let
|
|
20025
|
-
|
|
20036
|
+
}), f.onEvent = (v) => {
|
|
20037
|
+
u == null || u.sendRRWebEvent(v);
|
|
20038
|
+
}, u.connect(), n.visionConsent === "required" ? console.log("[HolostaffWidget] Observer started (recording deferred — consent required)") : (f.start(), console.log("[HolostaffWidget] Observer started on all pages", { visitorId: l })));
|
|
20039
|
+
let g = fr(location.pathname, h), m = null;
|
|
20040
|
+
if (g) {
|
|
20041
|
+
let v = n;
|
|
20042
|
+
g.container && (v = { ...n, mode: "inline", container: g.container }), m = e(v, o, r, f, u), window.holostaffWidget = m, m.init();
|
|
20026
20043
|
} else
|
|
20027
20044
|
console.log("[HolostaffWidget] No matching page pattern for", location.pathname, "— presenter not loaded (observer active)");
|
|
20028
|
-
const
|
|
20029
|
-
|
|
20030
|
-
const
|
|
20031
|
-
if (
|
|
20032
|
-
console.log("[HolostaffWidget] SPA navigated to matching page:",
|
|
20033
|
-
let
|
|
20034
|
-
|
|
20035
|
-
} else if (
|
|
20036
|
-
const
|
|
20037
|
-
|
|
20038
|
-
} else !
|
|
20045
|
+
const _ = new Mf((v) => {
|
|
20046
|
+
u == null || u.sendPageChanged(location.href, v, document.title);
|
|
20047
|
+
const C = fr(v, h);
|
|
20048
|
+
if (C && !m) {
|
|
20049
|
+
console.log("[HolostaffWidget] SPA navigated to matching page:", v);
|
|
20050
|
+
let S = n;
|
|
20051
|
+
C.container && (S = { ...n, mode: "inline", container: C.container }), m = e(S, o, r, f, u), window.holostaffWidget = m, m.init();
|
|
20052
|
+
} else if (C && m) {
|
|
20053
|
+
const S = C.container ?? null;
|
|
20054
|
+
S !== m.activeContainer && m.updateContainer(S), m.resume();
|
|
20055
|
+
} else !C && m && m.pause();
|
|
20039
20056
|
});
|
|
20040
|
-
window.__holostaffSPARouter =
|
|
20057
|
+
window.__holostaffSPARouter = _;
|
|
20041
20058
|
}
|
|
20042
20059
|
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", () => s()) : s();
|
|
20043
20060
|
} catch (e) {
|
|
@@ -20109,4 +20126,4 @@ export {
|
|
|
20109
20126
|
st as y,
|
|
20110
20127
|
Gr as z
|
|
20111
20128
|
};
|
|
20112
|
-
//# sourceMappingURL=index-
|
|
20129
|
+
//# sourceMappingURL=index-CHnN3M8o.js.map
|