cosmic-ai-genius 0.3.18 → 0.3.19
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var V5 = Object.defineProperty;
|
|
3
3
|
var $5 = (r, i, o) => i in r ? V5(r, i, { enumerable: !0, configurable: !0, writable: !0, value: o }) : r[i] = o;
|
|
4
4
|
var Gn = (r, i, o) => $5(r, typeof i != "symbol" ? i + "" : i, o);
|
|
5
|
-
import Ns, {
|
|
5
|
+
import Ns, { useState as Pt, useRef as Nn, useEffect as Xn, useMemo as gv, useCallback as Da, useReducer as I5, useDebugValue as q5, useContext as Zy, createContext as Qy, createElement as Y5, forwardRef as X5 } from "react";
|
|
6
6
|
import YC from "react-dom";
|
|
7
7
|
function Jy(r) {
|
|
8
8
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
@@ -346,44 +346,7 @@ const J5 = () => /* @__PURE__ */ W.jsx("svg", { width: "16", height: "16", viewB
|
|
|
346
346
|
d: "M4.8 4.8C4.8 2.968 6.168 1.6 8 1.6C9.832 1.6 11.2 2.968 11.2 4.8V8.64C11.2 10.472 9.832 11.84 8 11.84C6.168 11.84 4.8 10.472 4.8 8.64V4.8ZM8 2.88C6.872 2.88 5.92 3.832 5.92 4.8V8.64C5.92 9.768 6.872 10.56 8 10.56C9.128 10.56 10.08 9.768 10.08 8.64V4.8C10.08 3.832 9.128 2.88 8 2.88ZM2.88 7.2C3.232 7.2 3.52 7.488 3.52 7.84V8.64C3.52 11.176 5.464 13.12 8 13.12C10.536 13.12 12.48 11.176 12.48 8.64V7.84C12.48 7.488 12.768 7.2 13.12 7.2C13.472 7.2 13.76 7.488 13.76 7.84V8.64C13.76 11.88 11.24 14.4 8 14.4C4.76 14.4 2.24 11.88 2.24 8.64V7.84C2.24 7.488 2.528 7.2 2.88 7.2Z",
|
|
347
347
|
fill: "currentColor"
|
|
348
348
|
}
|
|
349
|
-
) }), Wy = ({ children: r }) => (
|
|
350
|
-
const i = "genius-sdk-styles", o = document.getElementById(i);
|
|
351
|
-
o && o.remove();
|
|
352
|
-
const c = document.createElement("style");
|
|
353
|
-
return c.id = i, c.setAttribute("data-genius-sdk", "true"), c.textContent = `
|
|
354
|
-
/* Genius SDK Scoped Styles */
|
|
355
|
-
.genius-sdk {
|
|
356
|
-
/* Create a new stacking context */
|
|
357
|
-
isolation: isolate;
|
|
358
|
-
/* Ensure proper font inheritance */
|
|
359
|
-
font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
/* Only reset positioning for main containers */
|
|
363
|
-
.genius-sdk .genius-chatbot-wrapper,
|
|
364
|
-
.genius-sdk .genius-chatbot-mobile-wrapper {
|
|
365
|
-
position: fixed;
|
|
366
|
-
z-index: 9999;
|
|
367
|
-
margin: 0;
|
|
368
|
-
padding: 0;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
/* Ensure proper box-sizing */
|
|
372
|
-
.genius-sdk * {
|
|
373
|
-
box-sizing: border-box;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
/* Create isolation for main containers */
|
|
377
|
-
.genius-sdk .genius-chatbot-container,
|
|
378
|
-
.genius-sdk .genius-chatbot-mobile-container,
|
|
379
|
-
.genius-sdk .genius-voice-call-container {
|
|
380
|
-
isolation: isolate;
|
|
381
|
-
}
|
|
382
|
-
`, document.head.appendChild(c), () => {
|
|
383
|
-
const d = document.getElementById(i);
|
|
384
|
-
d && d.remove();
|
|
385
|
-
};
|
|
386
|
-
}, []), /* @__PURE__ */ W.jsx("div", { className: "genius-sdk", children: r })), Oc = {
|
|
349
|
+
) }), Wy = ({ children: r }) => /* @__PURE__ */ W.jsx(W.Fragment, { children: r }), Oc = {
|
|
387
350
|
"genius-voice-call-container": "genius-sdk__VoiceCall-module__genius-voice-call-container___pMQPi",
|
|
388
351
|
"genius-voice-call-content": "genius-sdk__VoiceCall-module__genius-voice-call-content___D6lvV",
|
|
389
352
|
"genius-voice-call-buttons": "genius-sdk__VoiceCall-module__genius-voice-call-buttons___-r2z6",
|
|
@@ -2047,9 +2010,9 @@ const U7 = () => /* @__PURE__ */ W.jsx("svg", { width: "20", height: "20", viewB
|
|
|
2047
2010
|
const F = v.trim().split(/\s+/).length / 700 * 60 * 1e3, J = v.length, O = F / J;
|
|
2048
2011
|
return Math.max(5, Math.min(50, O));
|
|
2049
2012
|
};
|
|
2050
|
-
|
|
2013
|
+
Xn(() => {
|
|
2051
2014
|
i && i();
|
|
2052
|
-
}, [c, i]),
|
|
2015
|
+
}, [c, i]), Xn(() => {
|
|
2053
2016
|
let v = 0;
|
|
2054
2017
|
const T = y(r), D = setInterval(() => {
|
|
2055
2018
|
d(r.substring(0, v + 1)), v++, v === r.length && (clearInterval(D), o && o());
|
|
@@ -10510,7 +10473,7 @@ function E4(r, i) {
|
|
|
10510
10473
|
() => [d.get(r), d, r]
|
|
10511
10474
|
);
|
|
10512
10475
|
let T = p;
|
|
10513
|
-
if ((y !== d || x !== r) && (v(), T = d.get(r)),
|
|
10476
|
+
if ((y !== d || x !== r) && (v(), T = d.get(r)), Xn(() => {
|
|
10514
10477
|
const D = d.sub(r, () => {
|
|
10515
10478
|
if (c)
|
|
10516
10479
|
try {
|
|
@@ -10681,7 +10644,7 @@ const t1 = () => {
|
|
|
10681
10644
|
return r;
|
|
10682
10645
|
}, Di = (r, i) => {
|
|
10683
10646
|
const o = t1();
|
|
10684
|
-
|
|
10647
|
+
Xn(() => {
|
|
10685
10648
|
if (o)
|
|
10686
10649
|
return o.on(r, i), () => {
|
|
10687
10650
|
o.off(r, i);
|
|
@@ -10723,7 +10686,7 @@ const t1 = () => {
|
|
|
10723
10686
|
}, [])), Di(Ot.ScreenTrackStarted, Da((p, y) => {
|
|
10724
10687
|
const x = p.kind === "audio" ? "screenAudio" : "screenVideo";
|
|
10725
10688
|
d(p, x, !!(y != null && y.local));
|
|
10726
|
-
}, [])),
|
|
10689
|
+
}, [])), Xn(() => {
|
|
10727
10690
|
var x;
|
|
10728
10691
|
if (!o) return;
|
|
10729
10692
|
const p = o.tracks(), y = (x = p == null ? void 0 : p[i]) == null ? void 0 : x[r];
|
|
@@ -10736,7 +10699,7 @@ const t1 = () => {
|
|
|
10736
10699
|
]), c;
|
|
10737
10700
|
}, j4 = () => {
|
|
10738
10701
|
const r = Nn(null), i = I_("audio", "bot");
|
|
10739
|
-
return
|
|
10702
|
+
return Xn(() => {
|
|
10740
10703
|
!r.current || !i || r.current.srcObject && r.current.srcObject.getAudioTracks()[0].id === i.id || (r.current.srcObject = new MediaStream([
|
|
10741
10704
|
i
|
|
10742
10705
|
]));
|
|
@@ -10767,7 +10730,7 @@ function A9(...r) {
|
|
|
10767
10730
|
var E9 = A9;
|
|
10768
10731
|
const O9 = /* @__PURE__ */ X5(function({ participant: i = "local", fit: o = "contain", mirror: c, onResize: d, style: p = {}, trackType: y = "video", ...x }, v) {
|
|
10769
10732
|
const T = I_(y, i), D = Nn(null), z = E9(D, v);
|
|
10770
|
-
return
|
|
10733
|
+
return Xn(function() {
|
|
10771
10734
|
const J = D.current;
|
|
10772
10735
|
if (!J) return;
|
|
10773
10736
|
const O = () => {
|
|
@@ -10791,7 +10754,7 @@ const O9 = /* @__PURE__ */ X5(function({ participant: i = "local", fit: o = "con
|
|
|
10791
10754
|
return J.addEventListener("canplay", Z), J.addEventListener("enterpictureinpicture", se), J.addEventListener("leavepictureinpicture", ee), document.addEventListener("visibilitychange", B), () => {
|
|
10792
10755
|
J.removeEventListener("canplay", Z), J.removeEventListener("enterpictureinpicture", se), J.removeEventListener("leavepictureinpicture", ee), document.removeEventListener("visibilitychange", B);
|
|
10793
10756
|
};
|
|
10794
|
-
}, []),
|
|
10757
|
+
}, []), Xn(function() {
|
|
10795
10758
|
const J = D.current;
|
|
10796
10759
|
if (!(!J || !T))
|
|
10797
10760
|
return J.srcObject = new MediaStream([
|
|
@@ -10802,7 +10765,7 @@ const O9 = /* @__PURE__ */ X5(function({ participant: i = "local", fit: o = "con
|
|
|
10802
10765
|
}, [
|
|
10803
10766
|
T,
|
|
10804
10767
|
T == null ? void 0 : T.id
|
|
10805
|
-
]),
|
|
10768
|
+
]), Xn(function() {
|
|
10806
10769
|
const J = D.current;
|
|
10807
10770
|
if (!d || !J) return;
|
|
10808
10771
|
let O;
|
|
@@ -10848,7 +10811,7 @@ const D9 = zs("disconnected"), L4 = () => {
|
|
|
10848
10811
|
return Di(Ot.TransportStateChanged, i), r;
|
|
10849
10812
|
}, R9 = /* @__PURE__ */ Ns.memo(({ backgroundColor: r = "transparent", barColor: i = "black", barWidth: o = 30, barGap: c = 12, barMaxHeight: d = 120, participantType: p }) => {
|
|
10850
10813
|
const y = Nn(null), x = I_("audio", p);
|
|
10851
|
-
return
|
|
10814
|
+
return Xn(() => {
|
|
10852
10815
|
if (!y.current) return;
|
|
10853
10816
|
const v = 5 * o + 4 * c, T = d, D = y.current, z = 2, F = () => {
|
|
10854
10817
|
D.width = v * z, D.height = T * z, D.style.width = `${v}px`, D.style.height = `${T}px`, J.lineCap = "round", J.scale(z, z);
|
|
@@ -10948,25 +10911,25 @@ function Lw(r, i) {
|
|
|
10948
10911
|
function ir(r, i) {
|
|
10949
10912
|
if (!(r instanceof i)) throw new TypeError("Cannot call a class as a function");
|
|
10950
10913
|
}
|
|
10951
|
-
function
|
|
10952
|
-
return
|
|
10914
|
+
function qn(r) {
|
|
10915
|
+
return qn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(i) {
|
|
10953
10916
|
return typeof i;
|
|
10954
10917
|
} : function(i) {
|
|
10955
10918
|
return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
|
|
10956
|
-
},
|
|
10919
|
+
}, qn(r);
|
|
10957
10920
|
}
|
|
10958
10921
|
function N4(r) {
|
|
10959
10922
|
var i = function(o, c) {
|
|
10960
|
-
if (
|
|
10923
|
+
if (qn(o) != "object" || !o) return o;
|
|
10961
10924
|
var d = o[Symbol.toPrimitive];
|
|
10962
10925
|
if (d !== void 0) {
|
|
10963
10926
|
var p = d.call(o, c);
|
|
10964
|
-
if (
|
|
10927
|
+
if (qn(p) != "object") return p;
|
|
10965
10928
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
10966
10929
|
}
|
|
10967
10930
|
return String(o);
|
|
10968
10931
|
}(r, "string");
|
|
10969
|
-
return
|
|
10932
|
+
return qn(i) == "symbol" ? i : i + "";
|
|
10970
10933
|
}
|
|
10971
10934
|
function Nw(r, i) {
|
|
10972
10935
|
for (var o = 0; o < i.length; o++) {
|
|
@@ -10978,7 +10941,7 @@ function ar(r, i, o) {
|
|
|
10978
10941
|
return i && Nw(r.prototype, i), o && Nw(r, o), Object.defineProperty(r, "prototype", { writable: !1 }), r;
|
|
10979
10942
|
}
|
|
10980
10943
|
function Iv(r, i) {
|
|
10981
|
-
if (i && (
|
|
10944
|
+
if (i && (qn(i) == "object" || typeof i == "function")) return i;
|
|
10982
10945
|
if (i !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
10983
10946
|
return function(o) {
|
|
10984
10947
|
if (o === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -14374,7 +14337,7 @@ var sA = function() {
|
|
|
14374
14337
|
if (!dC.includes(i)) throw Error("Unrecognized mergeStrategy provided. Options are: [".concat(dC, "]"));
|
|
14375
14338
|
} }, { key: "_validateData", value: function(i, o) {
|
|
14376
14339
|
if (!function(x) {
|
|
14377
|
-
if (x == null ||
|
|
14340
|
+
if (x == null || qn(x) !== "object") return !1;
|
|
14378
14341
|
var v = Object.getPrototypeOf(x);
|
|
14379
14342
|
return v == null || v === Object.prototype;
|
|
14380
14343
|
}(i)) throw Error("Meeting session data must be a plain (map-like) object");
|
|
@@ -14558,7 +14521,7 @@ var oA = function() {
|
|
|
14558
14521
|
}, [{ key: "start", value: function() {
|
|
14559
14522
|
window._dailyCallMachineLoadWaitlist || (window._dailyCallMachineLoadWaitlist = /* @__PURE__ */ new Set());
|
|
14560
14523
|
var r = Rv(this._dailyConfig);
|
|
14561
|
-
(typeof document > "u" ? "undefined" :
|
|
14524
|
+
(typeof document > "u" ? "undefined" : qn(document)) === "object" ? this._startLoading(r) : this._failureCallback({ msg: "Call object bundle must be loaded in a DOM/web context", type: "missing context" });
|
|
14562
14525
|
} }, { key: "cancel", value: function() {
|
|
14563
14526
|
this._stopLoading(), this.cancelled = !0;
|
|
14564
14527
|
} }, { key: "_startLoading", value: function(r) {
|
|
@@ -14934,7 +14897,7 @@ var CA = function() {
|
|
|
14934
14897
|
}
|
|
14935
14898
|
return new r({ base: o, byUserId: c, byParticipantId: d });
|
|
14936
14899
|
} }, { key: "validateJSONObject", value: function(i) {
|
|
14937
|
-
if (
|
|
14900
|
+
if (qn(i) !== "object") return [!1, "canReceive must be an object"];
|
|
14938
14901
|
for (var o = ["base", "byUserId", "byParticipantId"], c = 0, d = Object.keys(i); c < d.length; c++) {
|
|
14939
14902
|
var p = d[c];
|
|
14940
14903
|
if (!o.includes(p)) return [!1, "canReceive can only contain keys (".concat(o.join(", "), ")")];
|
|
@@ -14942,7 +14905,7 @@ var CA = function() {
|
|
|
14942
14905
|
var y = gs(Ea.validateJSONObject(i.base, !0), 2), x = y[0], v = y[1];
|
|
14943
14906
|
if (!x) return [!1, v];
|
|
14944
14907
|
} else {
|
|
14945
|
-
if (
|
|
14908
|
+
if (qn(i[p]) !== "object") return [!1, "invalid (non-object) value for field '".concat(p, "' in canReceive")];
|
|
14946
14909
|
for (var T = 0, D = Object.values(i[p]); T < D.length; T++) {
|
|
14947
14910
|
var z = D[T], F = gs(Ea.validateJSONObject(z), 2), J = F[0], O = F[1];
|
|
14948
14911
|
if (!J) return [!1, O];
|
|
@@ -14978,14 +14941,14 @@ var CA = function() {
|
|
|
14978
14941
|
return new r({ video: i.v, audio: i.a, screenVideo: i.sv, screenAudio: i.sa, customVideo: i.cv, customAudio: i.ca });
|
|
14979
14942
|
} }, { key: "validateJSONObject", value: function(i, o) {
|
|
14980
14943
|
if (typeof i == "boolean") return [!0];
|
|
14981
|
-
if (
|
|
14944
|
+
if (qn(i) !== "object") return [!1, "invalid (non-object, non-boolean) value in canReceive"];
|
|
14982
14945
|
for (var c = Object.keys(i), d = 0, p = c; d < p.length; d++) {
|
|
14983
14946
|
var y = p[d];
|
|
14984
14947
|
if (!qy.includes(y)) return [!1, "invalid media type '".concat(y, "' in canReceive")];
|
|
14985
14948
|
if (wA.includes(y)) {
|
|
14986
14949
|
if (typeof i[y] != "boolean") return [!1, "invalid (non-boolean) value for media type '".concat(y, "' in canReceive")];
|
|
14987
14950
|
} else {
|
|
14988
|
-
if (
|
|
14951
|
+
if (qn(i[y]) !== "object") return [!1, "invalid (non-object) value for media type '".concat(y, "' in canReceive")];
|
|
14989
14952
|
for (var x = 0, v = Object.values(i[y]); x < v.length; x++)
|
|
14990
14953
|
if (typeof v[x] != "boolean") return [!1, "invalid (non-boolean) value for entry within '".concat(y, "' in canReceive")];
|
|
14991
14954
|
if (o && i[y]["*"] === void 0) return [!1, `canReceive "base" permission must specify "*" as an entry within '`.concat(y, "'")];
|
|
@@ -15120,7 +15083,7 @@ var Yh = {}, TC = "video", MA = "voice", MC = Pn() ? { data: {} } : { data: {},
|
|
|
15120
15083
|
}
|
|
15121
15084
|
return !0;
|
|
15122
15085
|
};
|
|
15123
|
-
return
|
|
15086
|
+
return qn(r) === "object" && ("light" in r && "dark" in r || "colors" in r) ? "light" in r && "dark" in r ? "colors" in r.light ? "colors" in r.dark ? o(r.light.colors) && o(r.dark.colors) : (console.error('Dark theme is missing "colors" property.', r), !1) : (console.error('Light theme is missing "colors" property.', r), !1) : o(r.colors) : (console.error('Theme must contain either both "light" and "dark" properties, or "colors".', r), !1);
|
|
15124
15087
|
}, help: "unsupported theme configuration. Check error logs for detailed info." }, layoutConfig: { validate: function(r) {
|
|
15125
15088
|
if ("grid" in r) {
|
|
15126
15089
|
var i = r.grid;
|
|
@@ -15328,7 +15291,7 @@ var AA = function() {
|
|
|
15328
15291
|
return this.sendMessageToCallMachine({ action: "update-participants", participants: g }), this;
|
|
15329
15292
|
} }, { key: "updateWaitingParticipant", value: (re = cn(function* () {
|
|
15330
15293
|
var g = this, k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", w = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
15331
|
-
if (Oo(this._callObjectMode, "updateWaitingParticipant()"), ui(this._callState, "updateWaitingParticipant()"), typeof k != "string" ||
|
|
15294
|
+
if (Oo(this._callObjectMode, "updateWaitingParticipant()"), ui(this._callState, "updateWaitingParticipant()"), typeof k != "string" || qn(w) !== "object") throw new Error("updateWaitingParticipant() must take an id string and a updates object");
|
|
15332
15295
|
return new Promise(function(I, ue) {
|
|
15333
15296
|
g.sendMessageToCallMachine({ action: "daily-method-update-waiting-participant", id: k, updates: w }, function(j) {
|
|
15334
15297
|
j.error && ue(j.error), j.id || ue(new Error("unknown error in updateWaitingParticipant()")), I({ id: j.id });
|
|
@@ -15338,7 +15301,7 @@ var AA = function() {
|
|
|
15338
15301
|
return re.apply(this, arguments);
|
|
15339
15302
|
}) }, { key: "updateWaitingParticipants", value: (R = cn(function* () {
|
|
15340
15303
|
var g = this, k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
15341
|
-
if (Oo(this._callObjectMode, "updateWaitingParticipants()"), ui(this._callState, "updateWaitingParticipants()"),
|
|
15304
|
+
if (Oo(this._callObjectMode, "updateWaitingParticipants()"), ui(this._callState, "updateWaitingParticipants()"), qn(k) !== "object") throw new Error("updateWaitingParticipants() must take a mapping between ids and update objects");
|
|
15342
15305
|
return new Promise(function(w, I) {
|
|
15343
15306
|
g.sendMessageToCallMachine({ action: "daily-method-update-waiting-participants", updatesById: k }, function(ue) {
|
|
15344
15307
|
ue.error && I(ue.error), ue.ids || I(new Error("unknown error in updateWaitingParticipants()")), w({ ids: ue.ids });
|
|
@@ -15378,7 +15341,7 @@ var AA = function() {
|
|
|
15378
15341
|
} }, { key: "getReceiveSettings", value: (P = cn(function* (g) {
|
|
15379
15342
|
var k = this, w = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).showInheritedValues, I = w !== void 0 && w;
|
|
15380
15343
|
if (Oo(this._callObjectMode, "getReceiveSettings()"), !this._callMachineInitialized) return this._receiveSettings;
|
|
15381
|
-
switch (
|
|
15344
|
+
switch (qn(g)) {
|
|
15382
15345
|
case "string":
|
|
15383
15346
|
return new Promise(function(ue) {
|
|
15384
15347
|
k.sendMessageToCallMachine({ action: "get-single-participant-receive-settings", id: g, showInheritedValues: I }, function(j) {
|
|
@@ -15852,11 +15815,11 @@ var AA = function() {
|
|
|
15852
15815
|
ui(this._callState, "startTranscription()"), this.sendMessageToCallMachine(Yt({ action: "daily-method-start-transcription" }, g));
|
|
15853
15816
|
} }, { key: "updateTranscription", value: function(g) {
|
|
15854
15817
|
if (ui(this._callState, "updateTranscription()"), !g) throw new Error("updateTranscription Error: options is mandatory");
|
|
15855
|
-
if (
|
|
15818
|
+
if (qn(g) !== "object") throw new Error("updateTranscription Error: options must be object type");
|
|
15856
15819
|
if (g.participants && !Array.isArray(g.participants)) throw new Error("updateTranscription Error: participants must be an array");
|
|
15857
15820
|
this.sendMessageToCallMachine(Yt({ action: "daily-method-update-transcription" }, g));
|
|
15858
15821
|
} }, { key: "stopTranscription", value: function(g) {
|
|
15859
|
-
if (ui(this._callState, "stopTranscription()"), g &&
|
|
15822
|
+
if (ui(this._callState, "stopTranscription()"), g && qn(g) !== "object") throw new Error("stopTranscription Error: options must be object type");
|
|
15860
15823
|
if (g && !g.instanceId) throw new Error('"instanceId" not provided');
|
|
15861
15824
|
this.sendMessageToCallMachine(Yt({ action: "daily-method-stop-transcription" }, g));
|
|
15862
15825
|
} }, { key: "startDialOut", value: (se = cn(function* (g) {
|
|
@@ -16066,7 +16029,7 @@ var AA = function() {
|
|
|
16066
16029
|
if (typeof k == "string") {
|
|
16067
16030
|
if (!w.includes(k)) throw new Error(I);
|
|
16068
16031
|
} else {
|
|
16069
|
-
if (
|
|
16032
|
+
if (qn(k) !== "object") throw new Error(I);
|
|
16070
16033
|
if (!k.maxQuality && !k.encodings && k.allowAdaptiveLayers === void 0) throw new Error("Video send settings must contain at least maxQuality, allowAdaptiveLayers or encodings attribute");
|
|
16071
16034
|
if (k.maxQuality && ["low", "medium", "high"].indexOf(k.maxQuality) === -1) throw new Error("maxQuality must be either low, medium or high");
|
|
16072
16035
|
if (k.encodings) {
|
|
@@ -16757,12 +16720,12 @@ function bk(r, i) {
|
|
|
16757
16720
|
return !0;
|
|
16758
16721
|
}
|
|
16759
16722
|
function vk(r) {
|
|
16760
|
-
if (
|
|
16723
|
+
if (qn(r) !== "object") return !1;
|
|
16761
16724
|
for (var i = 0, o = Object.entries(r); i < o.length; i++) {
|
|
16762
16725
|
var c = gs(o[i], 2), d = c[0], p = c[1];
|
|
16763
16726
|
switch (d) {
|
|
16764
16727
|
case "video":
|
|
16765
|
-
if (
|
|
16728
|
+
if (qn(p) !== "object") return !1;
|
|
16766
16729
|
for (var y = 0, x = Object.entries(p); y < x.length; y++) {
|
|
16767
16730
|
var v = gs(x[y], 2), T = v[0], D = v[1];
|
|
16768
16731
|
switch (T) {
|
|
@@ -16778,7 +16741,7 @@ function vk(r) {
|
|
|
16778
16741
|
}
|
|
16779
16742
|
break;
|
|
16780
16743
|
case "audio":
|
|
16781
|
-
if (
|
|
16744
|
+
if (qn(p) !== "object") return !1;
|
|
16782
16745
|
for (var z = 0, F = Object.entries(p); z < F.length; z++) {
|
|
16783
16746
|
var J = gs(F[z], 2), O = J[0], Z = J[1];
|
|
16784
16747
|
switch (O) {
|
|
@@ -16806,7 +16769,7 @@ function xk(r, i, o) {
|
|
|
16806
16769
|
function EA(r) {
|
|
16807
16770
|
if (Pn()) return console.warn("Video processing is not yet supported in React Native"), !1;
|
|
16808
16771
|
var i = ["type"];
|
|
16809
|
-
return !!r &&
|
|
16772
|
+
return !!r && qn(r) === "object" && (Object.keys(r).filter(function(o) {
|
|
16810
16773
|
return !i.includes(o);
|
|
16811
16774
|
}).forEach(function(o) {
|
|
16812
16775
|
console.warn("invalid key inputSettings -> audio -> processor : ".concat(o)), delete r[o];
|
|
@@ -16817,9 +16780,9 @@ function EA(r) {
|
|
|
16817
16780
|
function OA(r) {
|
|
16818
16781
|
if (Pn()) return console.warn("Video processing is not yet supported in React Native"), !1;
|
|
16819
16782
|
var i = ["type", "config"];
|
|
16820
|
-
return !r ||
|
|
16783
|
+
return !r || qn(r) !== "object" || !function(o) {
|
|
16821
16784
|
return typeof o != "string" ? !1 : Object.values(Sv).includes(o) ? !0 : (console.error("inputSettings video processor type invalid"), !1);
|
|
16822
|
-
}(r.type) || r.config && (
|
|
16785
|
+
}(r.type) || r.config && (qn(r.config) !== "object" || !function(o, c) {
|
|
16823
16786
|
var d = Object.keys(c);
|
|
16824
16787
|
if (d.length === 0) return !0;
|
|
16825
16788
|
var p = "invalid object in inputSettings -> video -> processor -> config";
|
|
@@ -16854,7 +16817,7 @@ function OA(r) {
|
|
|
16854
16817
|
}), !0);
|
|
16855
16818
|
}
|
|
16856
16819
|
function DC(r) {
|
|
16857
|
-
return
|
|
16820
|
+
return qn(r) === "object" && (!r.customTrack || r.customTrack instanceof MediaStreamTrack);
|
|
16858
16821
|
}
|
|
16859
16822
|
function E_() {
|
|
16860
16823
|
var r = Object.values(Sv).join(" | "), i = Object.values(nk).join(" | ");
|
|
@@ -16868,7 +16831,7 @@ function Sk() {
|
|
|
16868
16831
|
return "customIntegrations should be an object of type ".concat(JSON.stringify(A_), ".");
|
|
16869
16832
|
}
|
|
16870
16833
|
function wk(r) {
|
|
16871
|
-
if (r &&
|
|
16834
|
+
if (r && qn(r) !== "object" || Array.isArray(r)) return console.error("customTrayButtons should be an Object of the type ".concat(JSON.stringify(Gv), ".")), !1;
|
|
16872
16835
|
if (r) for (var i = 0, o = Object.entries(r); i < o.length; i++) for (var c = gs(o[i], 1)[0], d = 0, p = Object.entries(r[c]); d < p.length; d++) {
|
|
16873
16836
|
var y = gs(p[d], 2), x = y[0], v = y[1], T = Gv.id[x];
|
|
16874
16837
|
if (!T) return console.error("customTrayButton does not support key ".concat(x)), !1;
|
|
@@ -16881,13 +16844,13 @@ function wk(r) {
|
|
|
16881
16844
|
if (!["default", "sidebar-open", "active"].includes(v)) return console.error("customTrayButton ".concat(x, " should be ").concat(T, ". Got: ").concat(v)), !1;
|
|
16882
16845
|
break;
|
|
16883
16846
|
default:
|
|
16884
|
-
if (
|
|
16847
|
+
if (qn(v) !== T) return console.error("customTrayButton ".concat(x, " should be a ").concat(T, ".")), !1;
|
|
16885
16848
|
}
|
|
16886
16849
|
}
|
|
16887
16850
|
return !0;
|
|
16888
16851
|
}
|
|
16889
16852
|
function Ck(r) {
|
|
16890
|
-
if (!r || r &&
|
|
16853
|
+
if (!r || r && qn(r) !== "object" || Array.isArray(r)) return console.error(Sk()), !1;
|
|
16891
16854
|
for (var i = function(z) {
|
|
16892
16855
|
return "".concat(z, " should be ").concat(A_.id[z]);
|
|
16893
16856
|
}, o = function(z, F) {
|
|
@@ -16940,11 +16903,11 @@ function Ck(r) {
|
|
|
16940
16903
|
}
|
|
16941
16904
|
function kk(r, i) {
|
|
16942
16905
|
if (i === void 0) return !1;
|
|
16943
|
-
switch (
|
|
16906
|
+
switch (qn(i)) {
|
|
16944
16907
|
case "string":
|
|
16945
|
-
return
|
|
16908
|
+
return qn(r) === i;
|
|
16946
16909
|
case "object":
|
|
16947
|
-
if (
|
|
16910
|
+
if (qn(r) !== "object") return !1;
|
|
16948
16911
|
for (var o in r) if (!kk(r[o], i[o])) return !1;
|
|
16949
16912
|
return !0;
|
|
16950
16913
|
default:
|
|
@@ -16961,7 +16924,7 @@ function RC(r, i) {
|
|
|
16961
16924
|
if (d && !c.startsWith("+")) throw new Error("callerId is only valid when transferring to a PSTN number");
|
|
16962
16925
|
}
|
|
16963
16926
|
function jC(r) {
|
|
16964
|
-
if (
|
|
16927
|
+
if (qn(r) !== "object") throw new Error('RemoteMediaPlayerSettings: must be "object" type');
|
|
16965
16928
|
if (r.state && !Object.values(C_).includes(r.state)) throw new Error("Invalid value for RemoteMediaPlayerSettings.state, valid values are: " + JSON.stringify(C_));
|
|
16966
16929
|
if (r.volume) {
|
|
16967
16930
|
if (typeof r.volume != "number") throw new Error('RemoteMediaPlayerSettings.volume: must be "number" type');
|
|
@@ -18485,7 +18448,7 @@ function JA() {
|
|
|
18485
18448
|
r && r.params && (r.params.endpoints = p, console.log("Restored client endpoints to:", r.params.endpoints));
|
|
18486
18449
|
}
|
|
18487
18450
|
}, [r, i]);
|
|
18488
|
-
return
|
|
18451
|
+
return Xn(() => {
|
|
18489
18452
|
const c = (d) => {
|
|
18490
18453
|
d.data && d.data.type === "AUTH_TOKEN" && d.data.token && (console.log("AUTH_TOKEN received:", d.data), d.data.agentResponse && console.log("Chat history received:", d.data.agentResponse), o(d.data.token, d.data.agentResponse));
|
|
18491
18454
|
};
|
|
@@ -18625,12 +18588,12 @@ function BC({ toolCalls: r, isVisible: i, isActive: o = !1 }) {
|
|
|
18625
18588
|
}
|
|
18626
18589
|
function jk() {
|
|
18627
18590
|
const [r, i] = Pt([]), [o, c] = Pt([]), [d, p] = Pt({}), [y, x] = Pt(!1), v = Nn(null), T = L4(), D = t1(), z = T === "connecting" || T === "connected", [F, J] = Pt(!1), O = Nn(null), Z = Nn({ llm: !1, tts: !1 }), se = Nn(null), ee = Nn(null), B = Nn(0), Y = Nn(!1), V = Nn(!1), Q = Nn(null), H = Nn(/* @__PURE__ */ new Set()), G = Nn(null);
|
|
18628
|
-
|
|
18591
|
+
Xn(() => {
|
|
18629
18592
|
const E = v.current;
|
|
18630
18593
|
E && (E.scrollTop = E.scrollHeight);
|
|
18631
|
-
}, [r]),
|
|
18594
|
+
}, [r]), Xn(() => () => {
|
|
18632
18595
|
ae();
|
|
18633
|
-
}, []),
|
|
18596
|
+
}, []), Xn(() => {
|
|
18634
18597
|
if (D) {
|
|
18635
18598
|
const E = Object.keys(Ot);
|
|
18636
18599
|
console.log("Available RTVI Events:", E);
|
|
@@ -19084,7 +19047,7 @@ function dE(r) {
|
|
|
19084
19047
|
"*"
|
|
19085
19048
|
));
|
|
19086
19049
|
}, [i]);
|
|
19087
|
-
return
|
|
19050
|
+
return Xn(() => {
|
|
19088
19051
|
const y = () => {
|
|
19089
19052
|
p();
|
|
19090
19053
|
};
|
|
@@ -19095,7 +19058,7 @@ function dE(r) {
|
|
|
19095
19058
|
return document.addEventListener("visibilitychange", x), () => {
|
|
19096
19059
|
window.removeEventListener("beforeunload", y), document.removeEventListener("visibilitychange", x);
|
|
19097
19060
|
};
|
|
19098
|
-
}, [p]),
|
|
19061
|
+
}, [p]), Xn(() => {
|
|
19099
19062
|
i.length > 0 && p();
|
|
19100
19063
|
}, [i, p]), {
|
|
19101
19064
|
conversationHistory: i,
|
|
@@ -19240,7 +19203,7 @@ const Og = (r) => {
|
|
|
19240
19203
|
const ze = Te.currentTarget, { scrollTop: Ye, scrollHeight: Ge, clientHeight: Ve } = ze;
|
|
19241
19204
|
Ge > Ve ? (Te.deltaY < 0 && Ye === 0 || Te.deltaY > 0 && Ye + Ve >= Ge) && Te.preventDefault() : Te.preventDefault();
|
|
19242
19205
|
}, []);
|
|
19243
|
-
|
|
19206
|
+
Xn(() => {
|
|
19244
19207
|
if (!D)
|
|
19245
19208
|
return;
|
|
19246
19209
|
const Te = document.body, ze = Te.style.overflow, Ye = Te.style.paddingRight;
|
|
@@ -19254,7 +19217,7 @@ const Og = (r) => {
|
|
|
19254
19217
|
return document.addEventListener("wheel", Ve, { passive: !1 }), () => {
|
|
19255
19218
|
Te.style.overflow = ze, Te.style.paddingRight = Ye, document.removeEventListener("wheel", Ve);
|
|
19256
19219
|
};
|
|
19257
|
-
}, [D]),
|
|
19220
|
+
}, [D]), Xn(() => {
|
|
19258
19221
|
if (V) {
|
|
19259
19222
|
const Te = document.body, ze = Te.style.overflow;
|
|
19260
19223
|
return Te.style.overflow = "hidden", () => {
|
|
@@ -19265,14 +19228,14 @@ const Og = (r) => {
|
|
|
19265
19228
|
const te = Da(() => {
|
|
19266
19229
|
i && i();
|
|
19267
19230
|
}, [i]);
|
|
19268
|
-
|
|
19231
|
+
Xn(() => {
|
|
19269
19232
|
const Te = (ze) => {
|
|
19270
19233
|
ze.key === "Escape" && te();
|
|
19271
19234
|
};
|
|
19272
19235
|
return document.addEventListener("keydown", Te), () => {
|
|
19273
19236
|
document.removeEventListener("keydown", Te);
|
|
19274
19237
|
};
|
|
19275
|
-
}, [te]),
|
|
19238
|
+
}, [te]), Xn(() => {
|
|
19276
19239
|
(async () => {
|
|
19277
19240
|
try {
|
|
19278
19241
|
await Tl.init(), await ge();
|
|
@@ -19280,7 +19243,7 @@ const Og = (r) => {
|
|
|
19280
19243
|
console.error("Failed to initialize chat history database:", ze);
|
|
19281
19244
|
}
|
|
19282
19245
|
})();
|
|
19283
|
-
}, []),
|
|
19246
|
+
}, []), Xn(() => {
|
|
19284
19247
|
if (!le && P) {
|
|
19285
19248
|
const Te = setTimeout(() => {
|
|
19286
19249
|
const { srOutput: ze, srPayload: Ye, userEmail: Ge } = P, Ve = (Date.now() + Math.random()).toString();
|
|
@@ -19568,13 +19531,13 @@ const Og = (r) => {
|
|
|
19568
19531
|
var Te;
|
|
19569
19532
|
(Te = w.current) == null || Te.scrollIntoView({ behavior: "smooth" });
|
|
19570
19533
|
};
|
|
19571
|
-
|
|
19534
|
+
Xn(() => {
|
|
19572
19535
|
ne();
|
|
19573
19536
|
}, [F]);
|
|
19574
19537
|
const ce = () => {
|
|
19575
19538
|
z(!D), o && o();
|
|
19576
19539
|
};
|
|
19577
|
-
|
|
19540
|
+
Xn(() => {
|
|
19578
19541
|
if (B) {
|
|
19579
19542
|
const Te = localStorage.getItem("login") || "";
|
|
19580
19543
|
Te ? (window.postMessage({ type: "AUTH_TOKEN", token: Te }, "*"), console.log("Sent auth token to Voice Assistant")) : console.warn("No auth token found in localStorage");
|
|
@@ -20790,7 +20753,7 @@ const Og = (r) => {
|
|
|
20790
20753
|
pedantic: !1
|
|
20791
20754
|
});
|
|
20792
20755
|
const [v, T] = Pt([]), [D, z] = Pt(""), [F, J] = Pt(!1), [O, Z] = Pt(!1), [se, ee] = Pt(!1), [B, Y] = Pt(null), [V, Q] = Pt(""), [H, G] = Pt(!1), [le, ae] = Pt([]), [K, L] = Pt(!1), [X, E] = Pt(""), [S, _] = Pt(!1), [C, A] = Pt(null), [P, ie] = Pt(!1), R = Nn(null), re = Nn(null), me = Nn(null);
|
|
20793
|
-
|
|
20756
|
+
Xn(() => {
|
|
20794
20757
|
(async () => {
|
|
20795
20758
|
try {
|
|
20796
20759
|
await Tl.init(), await g();
|
|
@@ -21082,11 +21045,11 @@ const Og = (r) => {
|
|
|
21082
21045
|
var fe;
|
|
21083
21046
|
(fe = R.current) == null || fe.scrollIntoView({ behavior: "smooth" });
|
|
21084
21047
|
};
|
|
21085
|
-
|
|
21048
|
+
Xn(() => {
|
|
21086
21049
|
N();
|
|
21087
|
-
}, [v]),
|
|
21050
|
+
}, [v]), Xn(() => {
|
|
21088
21051
|
O && setTimeout(() => N(), 100);
|
|
21089
|
-
}, [O]),
|
|
21052
|
+
}, [O]), Xn(() => {
|
|
21090
21053
|
if (P) {
|
|
21091
21054
|
const fe = localStorage.getItem("login") || "";
|
|
21092
21055
|
fe ? (window.postMessage({ type: "AUTH_TOKEN", token: fe }, "*"), console.log("Sent auth token to Voice Assistant")) : console.warn("No auth token found in localStorage");
|
|
@@ -21098,7 +21061,7 @@ const Og = (r) => {
|
|
|
21098
21061
|
window.removeEventListener("message", pe);
|
|
21099
21062
|
};
|
|
21100
21063
|
}
|
|
21101
|
-
}, [P]),
|
|
21064
|
+
}, [P]), Xn(() => {
|
|
21102
21065
|
me.current && me.current.focus();
|
|
21103
21066
|
}, []);
|
|
21104
21067
|
const q = () => {
|
|
@@ -22553,7 +22516,7 @@ const Og = (r) => {
|
|
|
22553
22516
|
// Enable streaming by default
|
|
22554
22517
|
variant: J = "default"
|
|
22555
22518
|
} = r, [O, Z] = Pt(!1);
|
|
22556
|
-
|
|
22519
|
+
Xn(() => {
|
|
22557
22520
|
const q = () => {
|
|
22558
22521
|
Z(window.innerWidth <= 768);
|
|
22559
22522
|
};
|
|
@@ -22576,16 +22539,16 @@ const Og = (r) => {
|
|
|
22576
22539
|
R() ? (A.current = !1, E(!1)) : (A.current = !0, E(!0));
|
|
22577
22540
|
}, 100));
|
|
22578
22541
|
};
|
|
22579
|
-
|
|
22542
|
+
Xn(() => {
|
|
22580
22543
|
se.length > P.current && (P.current === 0 || !A.current) && setTimeout(() => re(), 100), P.current = se.length;
|
|
22581
|
-
}, [se]),
|
|
22544
|
+
}, [se]), Xn(() => {
|
|
22582
22545
|
const q = (ne) => {
|
|
22583
22546
|
ne.key === "Escape" && j();
|
|
22584
22547
|
};
|
|
22585
22548
|
return document.addEventListener("keydown", q), () => {
|
|
22586
22549
|
document.removeEventListener("keydown", q), ie.current && clearTimeout(ie.current);
|
|
22587
22550
|
};
|
|
22588
|
-
}, []),
|
|
22551
|
+
}, []), Xn(() => {
|
|
22589
22552
|
const q = () => {
|
|
22590
22553
|
window.innerWidth <= 768 && H && G(!1);
|
|
22591
22554
|
};
|
|
@@ -29646,7 +29609,7 @@ Error generating stack: ` + l.message + `
|
|
|
29646
29609
|
var s = qi(Bi), l = s.data.get(n);
|
|
29647
29610
|
return l === void 0 && (l = n(), s.data.set(n, l)), l;
|
|
29648
29611
|
}
|
|
29649
|
-
}, G1 = typeof WeakMap == "function" ? WeakMap : Map, In = 0, ti = null, Cn = null, kn = 0,
|
|
29612
|
+
}, G1 = typeof WeakMap == "function" ? WeakMap : Map, In = 0, ti = null, Cn = null, kn = 0, Yn = 0, Ga = null, Ar = !1, yu = !1, f0 = !1, go = 0, Ai = 0, mo = 0, lc = 0, Er = 0, As = 0, bu = 0, vu = null, Pa = null, p0 = !1, g0 = 0, Mp = 1 / 0, xu = null, al = null, sa = 0, Or = null, _u = null, ra = 0, Ap = 0, Ep = null, m0 = null, Su = 0, y0 = null;
|
|
29650
29613
|
function es() {
|
|
29651
29614
|
if ((In & 2) !== 0 && kn !== 0)
|
|
29652
29615
|
return kn & -kn;
|
|
@@ -29662,7 +29625,7 @@ Error generating stack: ` + l.message + `
|
|
|
29662
29625
|
return n !== null && (n.flags |= 32), As;
|
|
29663
29626
|
}
|
|
29664
29627
|
function ts(n, s, l) {
|
|
29665
|
-
(n === ti && (
|
|
29628
|
+
(n === ti && (Yn === 2 || Yn === 9) || n.cancelPendingCommit !== null) && (Dr(n, 0), yo(
|
|
29666
29629
|
n,
|
|
29667
29630
|
kn,
|
|
29668
29631
|
As,
|
|
@@ -29868,7 +29831,7 @@ Error generating stack: ` + l.message + `
|
|
|
29868
29831
|
}
|
|
29869
29832
|
function sl() {
|
|
29870
29833
|
if (Cn !== null) {
|
|
29871
|
-
if (
|
|
29834
|
+
if (Yn === 0)
|
|
29872
29835
|
var n = Cn.return;
|
|
29873
29836
|
else
|
|
29874
29837
|
n = Cn, qs = ro = null, qf(n), Kl = null, uu = 0, n = Cn;
|
|
@@ -29879,7 +29842,7 @@ Error generating stack: ` + l.message + `
|
|
|
29879
29842
|
}
|
|
29880
29843
|
function Dr(n, s) {
|
|
29881
29844
|
var l = n.timeoutHandle;
|
|
29882
|
-
l !== -1 && (n.timeoutHandle = -1, h2(l)), l = n.cancelPendingCommit, l !== null && (n.cancelPendingCommit = null, l()), sl(), ti = n, Cn = l = $s(n.current, null), kn = s,
|
|
29845
|
+
l !== -1 && (n.timeoutHandle = -1, h2(l)), l = n.cancelPendingCommit, l !== null && (n.cancelPendingCommit = null, l()), sl(), ti = n, Cn = l = $s(n.current, null), kn = s, Yn = 0, Ga = null, Ar = !1, yu = Ve(n, s), f0 = !1, bu = As = Er = lc = mo = Ai = 0, Pa = vu = null, p0 = !1, (s & 8) !== 0 && (s |= s & 32);
|
|
29883
29846
|
var h = n.entangledLanes;
|
|
29884
29847
|
if (h !== 0)
|
|
29885
29848
|
for (n = n.entanglements, h &= s; 0 < h; ) {
|
|
@@ -29889,7 +29852,7 @@ Error generating stack: ` + l.message + `
|
|
|
29889
29852
|
return go = s, Vs(), l;
|
|
29890
29853
|
}
|
|
29891
29854
|
function v0(n, s) {
|
|
29892
|
-
hn = null, C.H = rp, s === Zo || s === jd ? (s = wm(),
|
|
29855
|
+
hn = null, C.H = rp, s === Zo || s === jd ? (s = wm(), Yn = 3) : s === zf ? (s = wm(), Yn = 4) : Yn = s === ki ? 8 : s !== null && typeof s == "object" && typeof s.then == "function" ? 6 : 1, Ga = s, Cn === null && (Ai = 1, Jd(
|
|
29893
29856
|
n,
|
|
29894
29857
|
Qa(s, n.current)
|
|
29895
29858
|
));
|
|
@@ -29918,9 +29881,9 @@ Error generating stack: ` + l.message + `
|
|
|
29918
29881
|
var he = Ai;
|
|
29919
29882
|
e: do
|
|
29920
29883
|
try {
|
|
29921
|
-
if (
|
|
29884
|
+
if (Yn !== 0 && Cn !== null) {
|
|
29922
29885
|
var xe = Cn, Oe = Ga;
|
|
29923
|
-
switch (
|
|
29886
|
+
switch (Yn) {
|
|
29924
29887
|
case 8:
|
|
29925
29888
|
sl(), he = 6;
|
|
29926
29889
|
break e;
|
|
@@ -29929,14 +29892,14 @@ Error generating stack: ` + l.message + `
|
|
|
29929
29892
|
case 9:
|
|
29930
29893
|
case 6:
|
|
29931
29894
|
Ka.current === null && (s = !0);
|
|
29932
|
-
var Xe =
|
|
29933
|
-
if (
|
|
29895
|
+
var Xe = Yn;
|
|
29896
|
+
if (Yn = 0, Ga = null, Cu(n, xe, Oe, Xe), l && yu) {
|
|
29934
29897
|
he = 0;
|
|
29935
29898
|
break e;
|
|
29936
29899
|
}
|
|
29937
29900
|
break;
|
|
29938
29901
|
default:
|
|
29939
|
-
Xe =
|
|
29902
|
+
Xe = Yn, Yn = 0, Ga = null, Cu(n, xe, Oe, Xe);
|
|
29940
29903
|
}
|
|
29941
29904
|
}
|
|
29942
29905
|
Dp(), he = Ai;
|
|
@@ -29960,31 +29923,31 @@ Error generating stack: ` + l.message + `
|
|
|
29960
29923
|
);
|
|
29961
29924
|
e: do
|
|
29962
29925
|
try {
|
|
29963
|
-
if (
|
|
29926
|
+
if (Yn !== 0 && Cn !== null) {
|
|
29964
29927
|
s = Cn;
|
|
29965
29928
|
var M = Ga;
|
|
29966
|
-
t: switch (
|
|
29929
|
+
t: switch (Yn) {
|
|
29967
29930
|
case 1:
|
|
29968
|
-
|
|
29931
|
+
Yn = 0, Ga = null, Cu(n, s, M, 1);
|
|
29969
29932
|
break;
|
|
29970
29933
|
case 2:
|
|
29971
29934
|
case 9:
|
|
29972
29935
|
if (Uf(M)) {
|
|
29973
|
-
|
|
29936
|
+
Yn = 0, Ga = null, w0(s);
|
|
29974
29937
|
break;
|
|
29975
29938
|
}
|
|
29976
29939
|
s = function() {
|
|
29977
|
-
|
|
29940
|
+
Yn !== 2 && Yn !== 9 || ti !== n || (Yn = 7), Va(n);
|
|
29978
29941
|
}, M.then(s, s);
|
|
29979
29942
|
break e;
|
|
29980
29943
|
case 3:
|
|
29981
|
-
|
|
29944
|
+
Yn = 7;
|
|
29982
29945
|
break e;
|
|
29983
29946
|
case 4:
|
|
29984
|
-
|
|
29947
|
+
Yn = 5;
|
|
29985
29948
|
break e;
|
|
29986
29949
|
case 7:
|
|
29987
|
-
Uf(M) ? (
|
|
29950
|
+
Uf(M) ? (Yn = 0, Ga = null, w0(s)) : (Yn = 0, Ga = null, Cu(n, s, M, 7));
|
|
29988
29951
|
break;
|
|
29989
29952
|
case 5:
|
|
29990
29953
|
var he = null;
|
|
@@ -29995,7 +29958,7 @@ Error generating stack: ` + l.message + `
|
|
|
29995
29958
|
case 27:
|
|
29996
29959
|
var xe = Cn;
|
|
29997
29960
|
if (!he || N0(he)) {
|
|
29998
|
-
|
|
29961
|
+
Yn = 0, Ga = null;
|
|
29999
29962
|
var Oe = xe.sibling;
|
|
30000
29963
|
if (Oe !== null) Cn = Oe;
|
|
30001
29964
|
else {
|
|
@@ -30005,10 +29968,10 @@ Error generating stack: ` + l.message + `
|
|
|
30005
29968
|
break t;
|
|
30006
29969
|
}
|
|
30007
29970
|
}
|
|
30008
|
-
|
|
29971
|
+
Yn = 0, Ga = null, Cu(n, s, M, 5);
|
|
30009
29972
|
break;
|
|
30010
29973
|
case 6:
|
|
30011
|
-
|
|
29974
|
+
Yn = 0, Ga = null, Cu(n, s, M, 6);
|
|
30012
29975
|
break;
|
|
30013
29976
|
case 8:
|
|
30014
29977
|
sl(), Ai = 6;
|
|
@@ -30429,7 +30392,7 @@ Error generating stack: ` + l.message + `
|
|
|
30429
30392
|
n,
|
|
30430
30393
|
n === s ? l : 0,
|
|
30431
30394
|
n.cancelPendingCommit !== null || n.timeoutHandle !== -1
|
|
30432
|
-
), h = n.callbackNode, l === 0 || n === s && (
|
|
30395
|
+
), h = n.callbackNode, l === 0 || n === s && (Yn === 2 || Yn === 9) || n.cancelPendingCommit !== null)
|
|
30433
30396
|
return h !== null && h !== null && ne(h), n.callbackNode = null, n.callbackPriority = 0;
|
|
30434
30397
|
if ((l & 3) === 0 || Ve(n, l)) {
|
|
30435
30398
|
if (s = l & -l, s === n.callbackPriority) return s;
|
|
@@ -33198,11 +33161,11 @@ function jE() {
|
|
|
33198
33161
|
switch (a) {
|
|
33199
33162
|
case 9:
|
|
33200
33163
|
case 11:
|
|
33201
|
-
a = a === 9 ? "#document" : "#fragment", t = (t = t.documentElement) && (t = t.namespaceURI) ?
|
|
33164
|
+
a = a === 9 ? "#document" : "#fragment", t = (t = t.documentElement) && (t = t.namespaceURI) ? Yn(t) : Mc;
|
|
33202
33165
|
break;
|
|
33203
33166
|
default:
|
|
33204
33167
|
if (a = t.tagName, t = t.namespaceURI)
|
|
33205
|
-
t =
|
|
33168
|
+
t = Yn(t), t = Ga(
|
|
33206
33169
|
t,
|
|
33207
33170
|
a
|
|
33208
33171
|
);
|
|
@@ -44704,7 +44667,7 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
44704
44667
|
function kn(e) {
|
|
44705
44668
|
return e.nodeType === 9 ? e : e.ownerDocument;
|
|
44706
44669
|
}
|
|
44707
|
-
function
|
|
44670
|
+
function Yn(e) {
|
|
44708
44671
|
switch (e) {
|
|
44709
44672
|
case Uu:
|
|
44710
44673
|
return Mg;
|