@nlxai/touchpoint-ui 1.2.2-alpha.1 → 1.2.3-alpha.1
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/lib/components/VoiceMini.d.ts +1 -0
- package/lib/index.js +827 -794
- package/lib/index.umd.js +18 -18
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -75,7 +75,7 @@ function gw() {
|
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
var fe = /\/+/g;
|
|
78
|
-
function
|
|
78
|
+
function Ie(O, te) {
|
|
79
79
|
return typeof O == "object" && O !== null && O.key != null ? Y("" + O.key) : te.toString(36);
|
|
80
80
|
}
|
|
81
81
|
function We(O, te, Ve, Ke, Xe) {
|
|
@@ -95,15 +95,15 @@ function gw() {
|
|
|
95
95
|
et = !0;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
if (et) return et = O, Xe = Xe(et), O = Ke === "" ? "." +
|
|
98
|
+
if (et) return et = O, Xe = Xe(et), O = Ke === "" ? "." + Ie(et, 0) : Ke, L(Xe) ? (Ve = "", O != null && (Ve = O.replace(fe, "$&/") + "/"), We(Xe, te, Ve, "", function(At) {
|
|
99
99
|
return At;
|
|
100
100
|
})) : Xe != null && (q(Xe) && (Xe = $(Xe, Ve + (!Xe.key || et && et.key === Xe.key ? "" : ("" + Xe.key).replace(fe, "$&/") + "/") + O)), te.push(Xe)), 1;
|
|
101
101
|
if (et = 0, Ke = Ke === "" ? "." : Ke + ":", L(O)) for (var qe = 0; qe < O.length; qe++) {
|
|
102
102
|
Fe = O[qe];
|
|
103
|
-
var dt = Ke +
|
|
103
|
+
var dt = Ke + Ie(Fe, qe);
|
|
104
104
|
et += We(Fe, te, Ve, dt, Xe);
|
|
105
105
|
}
|
|
106
|
-
else if (dt = _(O), typeof dt == "function") for (O = dt.call(O), qe = 0; !(Fe = O.next()).done; ) Fe = Fe.value, dt = Ke +
|
|
106
|
+
else if (dt = _(O), typeof dt == "function") for (O = dt.call(O), qe = 0; !(Fe = O.next()).done; ) Fe = Fe.value, dt = Ke + Ie(Fe, qe++), et += We(Fe, te, Ve, dt, Xe);
|
|
107
107
|
else if (Fe === "object") throw te = String(O), Error("Objects are not valid as a React child (found: " + (te === "[object Object]" ? "object with keys {" + Object.keys(O).join(", ") + "}" : te) + "). If you meant to render a collection of children, use an array instead.");
|
|
108
108
|
return et;
|
|
109
109
|
}
|
|
@@ -114,7 +114,7 @@ function gw() {
|
|
|
114
114
|
return te.call(Ve, Fe, Xe++);
|
|
115
115
|
}), Ke;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Pe(O) {
|
|
118
118
|
if (O._status === -1) {
|
|
119
119
|
var te = O._result;
|
|
120
120
|
te = te(), te.then(function(Ve) {
|
|
@@ -126,7 +126,7 @@ function gw() {
|
|
|
126
126
|
if (O._status === 1) return O._result.default;
|
|
127
127
|
throw O._result;
|
|
128
128
|
}
|
|
129
|
-
var
|
|
129
|
+
var me = { current: null }, ce = { transition: null }, Ce = { ReactCurrentDispatcher: me, ReactCurrentBatchConfig: ce, ReactCurrentOwner: G };
|
|
130
130
|
function de() {
|
|
131
131
|
throw Error("act(...) is not supported in production builds of React.");
|
|
132
132
|
}
|
|
@@ -146,7 +146,7 @@ function gw() {
|
|
|
146
146
|
}, only: function(O) {
|
|
147
147
|
if (!q(O)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
148
148
|
return O;
|
|
149
|
-
} }, ut.Component = H, ut.Fragment = t, ut.Profiler = o, ut.PureComponent = ee, ut.StrictMode = r, ut.Suspense = f, ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED =
|
|
149
|
+
} }, ut.Component = H, ut.Fragment = t, ut.Profiler = o, ut.PureComponent = ee, ut.StrictMode = r, ut.Suspense = f, ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Ce, ut.act = de, ut.cloneElement = function(O, te, Ve) {
|
|
150
150
|
if (O == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + O + ".");
|
|
151
151
|
var Ke = N({}, O.props), Xe = O.key, Fe = O.ref, et = O._owner;
|
|
152
152
|
if (te != null) {
|
|
@@ -171,46 +171,46 @@ function gw() {
|
|
|
171
171
|
}, ut.forwardRef = function(O) {
|
|
172
172
|
return { $$typeof: u, render: O };
|
|
173
173
|
}, ut.isValidElement = q, ut.lazy = function(O) {
|
|
174
|
-
return { $$typeof: g, _payload: { _status: -1, _result: O }, _init:
|
|
174
|
+
return { $$typeof: g, _payload: { _status: -1, _result: O }, _init: Pe };
|
|
175
175
|
}, ut.memo = function(O, te) {
|
|
176
176
|
return { $$typeof: p, type: O, compare: te === void 0 ? null : te };
|
|
177
177
|
}, ut.startTransition = function(O) {
|
|
178
|
-
var te =
|
|
179
|
-
|
|
178
|
+
var te = ce.transition;
|
|
179
|
+
ce.transition = {};
|
|
180
180
|
try {
|
|
181
181
|
O();
|
|
182
182
|
} finally {
|
|
183
|
-
|
|
183
|
+
ce.transition = te;
|
|
184
184
|
}
|
|
185
185
|
}, ut.unstable_act = de, ut.useCallback = function(O, te) {
|
|
186
|
-
return
|
|
186
|
+
return me.current.useCallback(O, te);
|
|
187
187
|
}, ut.useContext = function(O) {
|
|
188
|
-
return
|
|
188
|
+
return me.current.useContext(O);
|
|
189
189
|
}, ut.useDebugValue = function() {
|
|
190
190
|
}, ut.useDeferredValue = function(O) {
|
|
191
|
-
return
|
|
191
|
+
return me.current.useDeferredValue(O);
|
|
192
192
|
}, ut.useEffect = function(O, te) {
|
|
193
|
-
return
|
|
193
|
+
return me.current.useEffect(O, te);
|
|
194
194
|
}, ut.useId = function() {
|
|
195
|
-
return
|
|
195
|
+
return me.current.useId();
|
|
196
196
|
}, ut.useImperativeHandle = function(O, te, Ve) {
|
|
197
|
-
return
|
|
197
|
+
return me.current.useImperativeHandle(O, te, Ve);
|
|
198
198
|
}, ut.useInsertionEffect = function(O, te) {
|
|
199
|
-
return
|
|
199
|
+
return me.current.useInsertionEffect(O, te);
|
|
200
200
|
}, ut.useLayoutEffect = function(O, te) {
|
|
201
|
-
return
|
|
201
|
+
return me.current.useLayoutEffect(O, te);
|
|
202
202
|
}, ut.useMemo = function(O, te) {
|
|
203
|
-
return
|
|
203
|
+
return me.current.useMemo(O, te);
|
|
204
204
|
}, ut.useReducer = function(O, te, Ve) {
|
|
205
|
-
return
|
|
205
|
+
return me.current.useReducer(O, te, Ve);
|
|
206
206
|
}, ut.useRef = function(O) {
|
|
207
|
-
return
|
|
207
|
+
return me.current.useRef(O);
|
|
208
208
|
}, ut.useState = function(O) {
|
|
209
|
-
return
|
|
209
|
+
return me.current.useState(O);
|
|
210
210
|
}, ut.useSyncExternalStore = function(O, te, Ve) {
|
|
211
|
-
return
|
|
211
|
+
return me.current.useSyncExternalStore(O, te, Ve);
|
|
212
212
|
}, ut.useTransition = function() {
|
|
213
|
-
return
|
|
213
|
+
return me.current.useTransition();
|
|
214
214
|
}, ut.version = "18.3.1", ut;
|
|
215
215
|
}
|
|
216
216
|
var lv;
|
|
@@ -259,35 +259,35 @@ var Ou = {}, lh = { exports: {} }, cr = {}, ch = { exports: {} }, uh = {};
|
|
|
259
259
|
var dv;
|
|
260
260
|
function bw() {
|
|
261
261
|
return dv || (dv = 1, function(n) {
|
|
262
|
-
function e(
|
|
263
|
-
var de =
|
|
264
|
-
|
|
262
|
+
function e(ce, Ce) {
|
|
263
|
+
var de = ce.length;
|
|
264
|
+
ce.push(Ce);
|
|
265
265
|
e: for (; 0 < de; ) {
|
|
266
|
-
var O = de - 1 >>> 1, te =
|
|
267
|
-
if (0 < o(te,
|
|
266
|
+
var O = de - 1 >>> 1, te = ce[O];
|
|
267
|
+
if (0 < o(te, Ce)) ce[O] = Ce, ce[de] = te, de = O;
|
|
268
268
|
else break e;
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
-
function t(
|
|
272
|
-
return
|
|
271
|
+
function t(ce) {
|
|
272
|
+
return ce.length === 0 ? null : ce[0];
|
|
273
273
|
}
|
|
274
|
-
function r(
|
|
275
|
-
if (
|
|
276
|
-
var
|
|
277
|
-
if (de !==
|
|
278
|
-
|
|
279
|
-
e: for (var O = 0, te =
|
|
280
|
-
var Ke = 2 * (O + 1) - 1, Xe =
|
|
281
|
-
if (0 > o(Xe, de)) Fe < te && 0 > o(et, Xe) ? (
|
|
282
|
-
else if (Fe < te && 0 > o(et, de))
|
|
274
|
+
function r(ce) {
|
|
275
|
+
if (ce.length === 0) return null;
|
|
276
|
+
var Ce = ce[0], de = ce.pop();
|
|
277
|
+
if (de !== Ce) {
|
|
278
|
+
ce[0] = de;
|
|
279
|
+
e: for (var O = 0, te = ce.length, Ve = te >>> 1; O < Ve; ) {
|
|
280
|
+
var Ke = 2 * (O + 1) - 1, Xe = ce[Ke], Fe = Ke + 1, et = ce[Fe];
|
|
281
|
+
if (0 > o(Xe, de)) Fe < te && 0 > o(et, Xe) ? (ce[O] = et, ce[Fe] = de, O = Fe) : (ce[O] = Xe, ce[Ke] = de, O = Ke);
|
|
282
|
+
else if (Fe < te && 0 > o(et, de)) ce[O] = et, ce[Fe] = de, O = Fe;
|
|
283
283
|
else break e;
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
-
return
|
|
286
|
+
return Ce;
|
|
287
287
|
}
|
|
288
|
-
function o(
|
|
289
|
-
var de =
|
|
290
|
-
return de !== 0 ? de :
|
|
288
|
+
function o(ce, Ce) {
|
|
289
|
+
var de = ce.sortIndex - Ce.sortIndex;
|
|
290
|
+
return de !== 0 ? de : ce.id - Ce.id;
|
|
291
291
|
}
|
|
292
292
|
if (typeof performance == "object" && typeof performance.now == "function") {
|
|
293
293
|
var a = performance;
|
|
@@ -302,38 +302,38 @@ function bw() {
|
|
|
302
302
|
}
|
|
303
303
|
var f = [], p = [], g = 1, C = null, _ = 3, T = !1, N = !1, A = !1, H = typeof setTimeout == "function" ? setTimeout : null, z = typeof clearTimeout == "function" ? clearTimeout : null, ee = typeof setImmediate < "u" ? setImmediate : null;
|
|
304
304
|
typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
|
|
305
|
-
function U(
|
|
306
|
-
for (var
|
|
307
|
-
if (
|
|
308
|
-
else if (
|
|
305
|
+
function U(ce) {
|
|
306
|
+
for (var Ce = t(p); Ce !== null; ) {
|
|
307
|
+
if (Ce.callback === null) r(p);
|
|
308
|
+
else if (Ce.startTime <= ce) r(p), Ce.sortIndex = Ce.expirationTime, e(f, Ce);
|
|
309
309
|
else break;
|
|
310
|
-
|
|
310
|
+
Ce = t(p);
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
function L(
|
|
314
|
-
if (A = !1, U(
|
|
313
|
+
function L(ce) {
|
|
314
|
+
if (A = !1, U(ce), !N) if (t(f) !== null) N = !0, Pe(F);
|
|
315
315
|
else {
|
|
316
|
-
var
|
|
317
|
-
|
|
316
|
+
var Ce = t(p);
|
|
317
|
+
Ce !== null && me(L, Ce.startTime - ce);
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
-
function F(
|
|
320
|
+
function F(ce, Ce) {
|
|
321
321
|
N = !1, A && (A = !1, z(Q), Q = -1), T = !0;
|
|
322
322
|
var de = _;
|
|
323
323
|
try {
|
|
324
|
-
for (U(
|
|
324
|
+
for (U(Ce), C = t(f); C !== null && (!(C.expirationTime > Ce) || ce && !Y()); ) {
|
|
325
325
|
var O = C.callback;
|
|
326
326
|
if (typeof O == "function") {
|
|
327
327
|
C.callback = null, _ = C.priorityLevel;
|
|
328
|
-
var te = O(C.expirationTime <=
|
|
329
|
-
|
|
328
|
+
var te = O(C.expirationTime <= Ce);
|
|
329
|
+
Ce = n.unstable_now(), typeof te == "function" ? C.callback = te : C === t(f) && r(f), U(Ce);
|
|
330
330
|
} else r(f);
|
|
331
331
|
C = t(f);
|
|
332
332
|
}
|
|
333
333
|
if (C !== null) var Ve = !0;
|
|
334
334
|
else {
|
|
335
335
|
var Ke = t(p);
|
|
336
|
-
Ke !== null &&
|
|
336
|
+
Ke !== null && me(L, Ke.startTime - Ce), Ve = !1;
|
|
337
337
|
}
|
|
338
338
|
return Ve;
|
|
339
339
|
} finally {
|
|
@@ -346,67 +346,67 @@ function bw() {
|
|
|
346
346
|
}
|
|
347
347
|
function fe() {
|
|
348
348
|
if (se !== null) {
|
|
349
|
-
var
|
|
350
|
-
q =
|
|
351
|
-
var
|
|
349
|
+
var ce = n.unstable_now();
|
|
350
|
+
q = ce;
|
|
351
|
+
var Ce = !0;
|
|
352
352
|
try {
|
|
353
|
-
|
|
353
|
+
Ce = se(!0, ce);
|
|
354
354
|
} finally {
|
|
355
|
-
|
|
355
|
+
Ce ? Ie() : (G = !1, se = null);
|
|
356
356
|
}
|
|
357
357
|
} else G = !1;
|
|
358
358
|
}
|
|
359
|
-
var
|
|
360
|
-
if (typeof ee == "function")
|
|
359
|
+
var Ie;
|
|
360
|
+
if (typeof ee == "function") Ie = function() {
|
|
361
361
|
ee(fe);
|
|
362
362
|
};
|
|
363
363
|
else if (typeof MessageChannel < "u") {
|
|
364
364
|
var We = new MessageChannel(), oe = We.port2;
|
|
365
|
-
We.port1.onmessage = fe,
|
|
365
|
+
We.port1.onmessage = fe, Ie = function() {
|
|
366
366
|
oe.postMessage(null);
|
|
367
367
|
};
|
|
368
|
-
} else
|
|
368
|
+
} else Ie = function() {
|
|
369
369
|
H(fe, 0);
|
|
370
370
|
};
|
|
371
|
-
function
|
|
372
|
-
se =
|
|
371
|
+
function Pe(ce) {
|
|
372
|
+
se = ce, G || (G = !0, Ie());
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function me(ce, Ce) {
|
|
375
375
|
Q = H(function() {
|
|
376
|
-
|
|
377
|
-
},
|
|
376
|
+
ce(n.unstable_now());
|
|
377
|
+
}, Ce);
|
|
378
378
|
}
|
|
379
|
-
n.unstable_IdlePriority = 5, n.unstable_ImmediatePriority = 1, n.unstable_LowPriority = 4, n.unstable_NormalPriority = 3, n.unstable_Profiling = null, n.unstable_UserBlockingPriority = 2, n.unstable_cancelCallback = function(
|
|
380
|
-
|
|
379
|
+
n.unstable_IdlePriority = 5, n.unstable_ImmediatePriority = 1, n.unstable_LowPriority = 4, n.unstable_NormalPriority = 3, n.unstable_Profiling = null, n.unstable_UserBlockingPriority = 2, n.unstable_cancelCallback = function(ce) {
|
|
380
|
+
ce.callback = null;
|
|
381
381
|
}, n.unstable_continueExecution = function() {
|
|
382
|
-
N || T || (N = !0,
|
|
383
|
-
}, n.unstable_forceFrameRate = function(
|
|
384
|
-
0 >
|
|
382
|
+
N || T || (N = !0, Pe(F));
|
|
383
|
+
}, n.unstable_forceFrameRate = function(ce) {
|
|
384
|
+
0 > ce || 125 < ce ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : $ = 0 < ce ? Math.floor(1e3 / ce) : 5;
|
|
385
385
|
}, n.unstable_getCurrentPriorityLevel = function() {
|
|
386
386
|
return _;
|
|
387
387
|
}, n.unstable_getFirstCallbackNode = function() {
|
|
388
388
|
return t(f);
|
|
389
|
-
}, n.unstable_next = function(
|
|
389
|
+
}, n.unstable_next = function(ce) {
|
|
390
390
|
switch (_) {
|
|
391
391
|
case 1:
|
|
392
392
|
case 2:
|
|
393
393
|
case 3:
|
|
394
|
-
var
|
|
394
|
+
var Ce = 3;
|
|
395
395
|
break;
|
|
396
396
|
default:
|
|
397
|
-
|
|
397
|
+
Ce = _;
|
|
398
398
|
}
|
|
399
399
|
var de = _;
|
|
400
|
-
_ =
|
|
400
|
+
_ = Ce;
|
|
401
401
|
try {
|
|
402
|
-
return
|
|
402
|
+
return ce();
|
|
403
403
|
} finally {
|
|
404
404
|
_ = de;
|
|
405
405
|
}
|
|
406
406
|
}, n.unstable_pauseExecution = function() {
|
|
407
407
|
}, n.unstable_requestPaint = function() {
|
|
408
|
-
}, n.unstable_runWithPriority = function(
|
|
409
|
-
switch (
|
|
408
|
+
}, n.unstable_runWithPriority = function(ce, Ce) {
|
|
409
|
+
switch (ce) {
|
|
410
410
|
case 1:
|
|
411
411
|
case 2:
|
|
412
412
|
case 3:
|
|
@@ -414,18 +414,18 @@ function bw() {
|
|
|
414
414
|
case 5:
|
|
415
415
|
break;
|
|
416
416
|
default:
|
|
417
|
-
|
|
417
|
+
ce = 3;
|
|
418
418
|
}
|
|
419
419
|
var de = _;
|
|
420
|
-
_ =
|
|
420
|
+
_ = ce;
|
|
421
421
|
try {
|
|
422
|
-
return
|
|
422
|
+
return Ce();
|
|
423
423
|
} finally {
|
|
424
424
|
_ = de;
|
|
425
425
|
}
|
|
426
|
-
}, n.unstable_scheduleCallback = function(
|
|
426
|
+
}, n.unstable_scheduleCallback = function(ce, Ce, de) {
|
|
427
427
|
var O = n.unstable_now();
|
|
428
|
-
switch (typeof de == "object" && de !== null ? (de = de.delay, de = typeof de == "number" && 0 < de ? O + de : O) : de = O,
|
|
428
|
+
switch (typeof de == "object" && de !== null ? (de = de.delay, de = typeof de == "number" && 0 < de ? O + de : O) : de = O, ce) {
|
|
429
429
|
case 1:
|
|
430
430
|
var te = -1;
|
|
431
431
|
break;
|
|
@@ -441,14 +441,14 @@ function bw() {
|
|
|
441
441
|
default:
|
|
442
442
|
te = 5e3;
|
|
443
443
|
}
|
|
444
|
-
return te = de + te,
|
|
445
|
-
}, n.unstable_shouldYield = Y, n.unstable_wrapCallback = function(
|
|
446
|
-
var
|
|
444
|
+
return te = de + te, ce = { id: g++, callback: Ce, priorityLevel: ce, startTime: de, expirationTime: te, sortIndex: -1 }, de > O ? (ce.sortIndex = de, e(p, ce), t(f) === null && ce === t(p) && (A ? (z(Q), Q = -1) : A = !0, me(L, de - O))) : (ce.sortIndex = te, e(f, ce), N || T || (N = !0, Pe(F))), ce;
|
|
445
|
+
}, n.unstable_shouldYield = Y, n.unstable_wrapCallback = function(ce) {
|
|
446
|
+
var Ce = _;
|
|
447
447
|
return function() {
|
|
448
448
|
var de = _;
|
|
449
|
-
_ =
|
|
449
|
+
_ = Ce;
|
|
450
450
|
try {
|
|
451
|
-
return
|
|
451
|
+
return ce.apply(this, arguments);
|
|
452
452
|
} finally {
|
|
453
453
|
_ = de;
|
|
454
454
|
}
|
|
@@ -565,9 +565,9 @@ function ww() {
|
|
|
565
565
|
var b = H.hasOwnProperty(s) ? H[s] : null;
|
|
566
566
|
(b !== null ? b.type !== 0 : m || !(2 < s.length) || s[0] !== "o" && s[0] !== "O" || s[1] !== "n" && s[1] !== "N") && (N(s, c, b, m) && (c = null), m || b === null ? _(s) && (c === null ? i.removeAttribute(s) : i.setAttribute(s, "" + c)) : b.mustUseProperty ? i[b.propertyName] = c === null ? b.type === 3 ? !1 : "" : c : (s = b.attributeName, m = b.attributeNamespace, c === null ? i.removeAttribute(s) : (b = b.type, c = b === 3 || b === 4 && c === !0 ? "" : "" + c, m ? i.setAttributeNS(m, s, c) : i.setAttribute(s, c))));
|
|
567
567
|
}
|
|
568
|
-
var L = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, F = Symbol.for("react.element"), G = Symbol.for("react.portal"), se = Symbol.for("react.fragment"), Q = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), q = Symbol.for("react.provider"), Y = Symbol.for("react.context"), fe = Symbol.for("react.forward_ref"),
|
|
569
|
-
function
|
|
570
|
-
return i === null || typeof i != "object" ? null : (i =
|
|
568
|
+
var L = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, F = Symbol.for("react.element"), G = Symbol.for("react.portal"), se = Symbol.for("react.fragment"), Q = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), q = Symbol.for("react.provider"), Y = Symbol.for("react.context"), fe = Symbol.for("react.forward_ref"), Ie = Symbol.for("react.suspense"), We = Symbol.for("react.suspense_list"), oe = Symbol.for("react.memo"), Pe = Symbol.for("react.lazy"), me = Symbol.for("react.offscreen"), ce = Symbol.iterator;
|
|
569
|
+
function Ce(i) {
|
|
570
|
+
return i === null || typeof i != "object" ? null : (i = ce && i[ce] || i["@@iterator"], typeof i == "function" ? i : null);
|
|
571
571
|
}
|
|
572
572
|
var de = Object.assign, O;
|
|
573
573
|
function te(i) {
|
|
@@ -671,7 +671,7 @@ function ww() {
|
|
|
671
671
|
return "Profiler";
|
|
672
672
|
case Q:
|
|
673
673
|
return "StrictMode";
|
|
674
|
-
case
|
|
674
|
+
case Ie:
|
|
675
675
|
return "Suspense";
|
|
676
676
|
case We:
|
|
677
677
|
return "SuspenseList";
|
|
@@ -686,7 +686,7 @@ function ww() {
|
|
|
686
686
|
return i = i.displayName, i || (i = s.displayName || s.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
|
|
687
687
|
case oe:
|
|
688
688
|
return s = i.displayName || null, s !== null ? s : Fe(i.type) || "Memo";
|
|
689
|
-
case
|
|
689
|
+
case Pe:
|
|
690
690
|
s = i._payload, i = i._init;
|
|
691
691
|
try {
|
|
692
692
|
return Fe(i(s));
|
|
@@ -1886,20 +1886,20 @@ function ww() {
|
|
|
1886
1886
|
var m = c.window === c ? c.document : c.nodeType === 9 ? c : c.ownerDocument;
|
|
1887
1887
|
B || w == null || w !== vn(m) || (m = w, "selectionStart" in m && d(m) ? m = { start: m.selectionStart, end: m.selectionEnd } : (m = (m.ownerDocument && m.ownerDocument.defaultView || window).getSelection(), m = { anchorNode: m.anchorNode, anchorOffset: m.anchorOffset, focusNode: m.focusNode, focusOffset: m.focusOffset }), I && go(I, m) || (I = m, m = $c(x, "onSelect"), 0 < m.length && (s = new fo("onSelect", "select", null, s, c), i.push({ event: s, listeners: m }), s.target = w)));
|
|
1888
1888
|
}
|
|
1889
|
-
function
|
|
1889
|
+
function le(i, s) {
|
|
1890
1890
|
var c = {};
|
|
1891
1891
|
return c[i.toLowerCase()] = s.toLowerCase(), c["Webkit" + i] = "webkit" + s, c["Moz" + i] = "moz" + s, c;
|
|
1892
1892
|
}
|
|
1893
|
-
var X = { animationend:
|
|
1893
|
+
var X = { animationend: le("Animation", "AnimationEnd"), animationiteration: le("Animation", "AnimationIteration"), animationstart: le("Animation", "AnimationStart"), transitionend: le("Transition", "TransitionEnd") }, Se = {}, Me = {};
|
|
1894
1894
|
u && (Me = document.createElement("div").style, "AnimationEvent" in window || (delete X.animationend.animation, delete X.animationiteration.animation, delete X.animationstart.animation), "TransitionEvent" in window || delete X.transitionend.transition);
|
|
1895
1895
|
function Ne(i) {
|
|
1896
|
-
if (
|
|
1896
|
+
if (Se[i]) return Se[i];
|
|
1897
1897
|
if (!X[i]) return i;
|
|
1898
1898
|
var s = X[i], c;
|
|
1899
|
-
for (c in s) if (s.hasOwnProperty(c) && c in Me) return
|
|
1899
|
+
for (c in s) if (s.hasOwnProperty(c) && c in Me) return Se[i] = s[c];
|
|
1900
1900
|
return i;
|
|
1901
1901
|
}
|
|
1902
|
-
var ne = Ne("animationend"),
|
|
1902
|
+
var ne = Ne("animationend"), pe = Ne("animationiteration"), Re = Ne("animationstart"), $e = Ne("transitionend"), Je = /* @__PURE__ */ new Map(), tt = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
|
|
1903
1903
|
function vt(i, s) {
|
|
1904
1904
|
Je.set(i, s), a(s, [i]);
|
|
1905
1905
|
}
|
|
@@ -1907,7 +1907,7 @@ function ww() {
|
|
|
1907
1907
|
var Ot = tt[It], Et = Ot.toLowerCase(), Xr = Ot[0].toUpperCase() + Ot.slice(1);
|
|
1908
1908
|
vt(Et, "on" + Xr);
|
|
1909
1909
|
}
|
|
1910
|
-
vt(ne, "onAnimationEnd"), vt(
|
|
1910
|
+
vt(ne, "onAnimationEnd"), vt(pe, "onAnimationIteration"), vt(Re, "onAnimationStart"), vt("dblclick", "onDoubleClick"), vt("focusin", "onFocus"), vt("focusout", "onBlur"), vt($e, "onTransitionEnd"), l("onMouseEnter", ["mouseout", "mouseover"]), l("onMouseLeave", ["mouseout", "mouseover"]), l("onPointerEnter", ["pointerout", "pointerover"]), l("onPointerLeave", ["pointerout", "pointerover"]), a("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), a("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), a("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]), a("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), a("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), a("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
|
|
1911
1911
|
var Vi = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), _k = new Set("cancel close invalid load scroll toggle".split(" ").concat(Vi));
|
|
1912
1912
|
function wm(i, s, c) {
|
|
1913
1913
|
var m = i.type || "unknown-event";
|
|
@@ -1991,7 +1991,7 @@ function ww() {
|
|
|
1991
1991
|
m = m.return;
|
|
1992
1992
|
}
|
|
1993
1993
|
Cc(function() {
|
|
1994
|
-
var ae = k, we = Pn(c),
|
|
1994
|
+
var ae = k, we = Pn(c), Te = [];
|
|
1995
1995
|
e: {
|
|
1996
1996
|
var ke = Je.get(i);
|
|
1997
1997
|
if (ke !== void 0) {
|
|
@@ -2042,8 +2042,8 @@ function ww() {
|
|
|
2042
2042
|
je = ls;
|
|
2043
2043
|
break;
|
|
2044
2044
|
case ne:
|
|
2045
|
-
case
|
|
2046
|
-
case
|
|
2045
|
+
case pe:
|
|
2046
|
+
case Re:
|
|
2047
2047
|
je = Bd;
|
|
2048
2048
|
break;
|
|
2049
2049
|
case $e:
|
|
@@ -2078,7 +2078,7 @@ function ww() {
|
|
|
2078
2078
|
if (ie.tag === 5 && xe !== null && (ie = xe, Z !== null && (xe = Hr(W, Z), xe != null && ze.push(bl(W, xe, ie)))), Xt) break;
|
|
2079
2079
|
W = W.return;
|
|
2080
2080
|
}
|
|
2081
|
-
0 < ze.length && (ke = new je(ke, Be, null, c, we),
|
|
2081
|
+
0 < ze.length && (ke = new je(ke, Be, null, c, we), Te.push({ event: ke, listeners: ze }));
|
|
2082
2082
|
}
|
|
2083
2083
|
}
|
|
2084
2084
|
if ((s & 7) === 0) {
|
|
@@ -2097,7 +2097,7 @@ function ww() {
|
|
|
2097
2097
|
ze = null;
|
|
2098
2098
|
}
|
|
2099
2099
|
else ze = null;
|
|
2100
|
-
je !== null && Tm(
|
|
2100
|
+
je !== null && Tm(Te, ke, je, ze, !1), Be !== null && Xt !== null && Tm(Te, Xt, Be, ze, !0);
|
|
2101
2101
|
}
|
|
2102
2102
|
}
|
|
2103
2103
|
e: {
|
|
@@ -2109,7 +2109,7 @@ function ww() {
|
|
|
2109
2109
|
}
|
|
2110
2110
|
else (je = ke.nodeName) && je.toLowerCase() === "input" && (ke.type === "checkbox" || ke.type === "radio") && (He = Qr);
|
|
2111
2111
|
if (He && (He = He(i, ae))) {
|
|
2112
|
-
Uc(
|
|
2112
|
+
Uc(Te, He, c, we);
|
|
2113
2113
|
break e;
|
|
2114
2114
|
}
|
|
2115
2115
|
Ye && Ye(i, ke, ae), i === "focusout" && (Ye = ke._wrapperState) && Ye.controlled && ke.type === "number" && yn(ke, "number", ke.value);
|
|
@@ -2127,13 +2127,13 @@ function ww() {
|
|
|
2127
2127
|
case "contextmenu":
|
|
2128
2128
|
case "mouseup":
|
|
2129
2129
|
case "dragend":
|
|
2130
|
-
B = !1, K(
|
|
2130
|
+
B = !1, K(Te, c, we);
|
|
2131
2131
|
break;
|
|
2132
2132
|
case "selectionchange":
|
|
2133
2133
|
if (v) break;
|
|
2134
2134
|
case "keydown":
|
|
2135
2135
|
case "keyup":
|
|
2136
|
-
K(
|
|
2136
|
+
K(Te, c, we);
|
|
2137
2137
|
}
|
|
2138
2138
|
var Qe;
|
|
2139
2139
|
if (Qt) e: {
|
|
@@ -2151,9 +2151,9 @@ function ww() {
|
|
|
2151
2151
|
nt = void 0;
|
|
2152
2152
|
}
|
|
2153
2153
|
else yi ? yr(i, c) && (nt = "onCompositionEnd") : i === "keydown" && c.keyCode === 229 && (nt = "onCompositionStart");
|
|
2154
|
-
nt && (oa && c.locale !== "ko" && (yi || nt !== "onCompositionStart" ? nt === "onCompositionEnd" && yi && (Qe = rs()) : (mi = we, vr = "value" in mi ? mi.value : mi.textContent, yi = !0)), Ye = $c(ae, nt), 0 < Ye.length && (nt = new ss(nt, i, null, c, we),
|
|
2154
|
+
nt && (oa && c.locale !== "ko" && (yi || nt !== "onCompositionStart" ? nt === "onCompositionEnd" && yi && (Qe = rs()) : (mi = we, vr = "value" in mi ? mi.value : mi.textContent, yi = !0)), Ye = $c(ae, nt), 0 < Ye.length && (nt = new ss(nt, i, null, c, we), Te.push({ event: nt, listeners: Ye }), Qe ? nt.data = Qe : (Qe = ll(c), Qe !== null && (nt.data = Qe)))), (Qe = $d ? Fc(i, c) : cl(i, c)) && (ae = $c(ae, "onBeforeInput"), 0 < ae.length && (we = new ss("onBeforeInput", "beforeinput", null, c, we), Te.push({ event: we, listeners: ae }), we.data = Qe));
|
|
2155
2155
|
}
|
|
2156
|
-
Cm(
|
|
2156
|
+
Cm(Te, s);
|
|
2157
2157
|
});
|
|
2158
2158
|
}
|
|
2159
2159
|
function bl(i, s, c) {
|
|
@@ -2502,7 +2502,7 @@ function ww() {
|
|
|
2502
2502
|
}
|
|
2503
2503
|
function V(Z, W, ie, xe) {
|
|
2504
2504
|
var He = ie.type;
|
|
2505
|
-
return He === se ? we(Z, W, ie.props.children, xe, ie.key) : W !== null && (W.elementType === He || typeof He == "object" && He !== null && He.$$typeof ===
|
|
2505
|
+
return He === se ? we(Z, W, ie.props.children, xe, ie.key) : W !== null && (W.elementType === He || typeof He == "object" && He !== null && He.$$typeof === Pe && jm(He) === W.type) ? (xe = b(W, ie.props), xe.ref = Cl(Z, W, ie), xe.return = Z, xe) : (xe = _u(ie.type, ie.key, ie.props, null, Z.mode, xe), xe.ref = Cl(Z, W, ie), xe.return = Z, xe);
|
|
2506
2506
|
}
|
|
2507
2507
|
function ae(Z, W, ie, xe) {
|
|
2508
2508
|
return W === null || W.tag !== 4 || W.stateNode.containerInfo !== ie.containerInfo || W.stateNode.implementation !== ie.implementation ? (W = Zf(ie, Z.mode, xe), W.return = Z, W) : (W = b(W, ie.children || []), W.return = Z, W);
|
|
@@ -2510,7 +2510,7 @@ function ww() {
|
|
|
2510
2510
|
function we(Z, W, ie, xe, He) {
|
|
2511
2511
|
return W === null || W.tag !== 7 ? (W = Ss(ie, Z.mode, xe, He), W.return = Z, W) : (W = b(W, ie), W.return = Z, W);
|
|
2512
2512
|
}
|
|
2513
|
-
function
|
|
2513
|
+
function Te(Z, W, ie) {
|
|
2514
2514
|
if (typeof W == "string" && W !== "" || typeof W == "number") return W = Xf("" + W, Z.mode, ie), W.return = Z, W;
|
|
2515
2515
|
if (typeof W == "object" && W !== null) {
|
|
2516
2516
|
switch (W.$$typeof) {
|
|
@@ -2518,11 +2518,11 @@ function ww() {
|
|
|
2518
2518
|
return ie = _u(W.type, W.key, W.props, null, Z.mode, ie), ie.ref = Cl(Z, null, W), ie.return = Z, ie;
|
|
2519
2519
|
case G:
|
|
2520
2520
|
return W = Zf(W, Z.mode, ie), W.return = Z, W;
|
|
2521
|
-
case
|
|
2521
|
+
case Pe:
|
|
2522
2522
|
var xe = W._init;
|
|
2523
|
-
return
|
|
2523
|
+
return Te(Z, xe(W._payload), ie);
|
|
2524
2524
|
}
|
|
2525
|
-
if (Li(W) ||
|
|
2525
|
+
if (Li(W) || Ce(W)) return W = Ss(W, Z.mode, ie, null), W.return = Z, W;
|
|
2526
2526
|
tu(Z, W);
|
|
2527
2527
|
}
|
|
2528
2528
|
return null;
|
|
@@ -2536,7 +2536,7 @@ function ww() {
|
|
|
2536
2536
|
return ie.key === He ? V(Z, W, ie, xe) : null;
|
|
2537
2537
|
case G:
|
|
2538
2538
|
return ie.key === He ? ae(Z, W, ie, xe) : null;
|
|
2539
|
-
case
|
|
2539
|
+
case Pe:
|
|
2540
2540
|
return He = ie._init, ke(
|
|
2541
2541
|
Z,
|
|
2542
2542
|
W,
|
|
@@ -2544,7 +2544,7 @@ function ww() {
|
|
|
2544
2544
|
xe
|
|
2545
2545
|
);
|
|
2546
2546
|
}
|
|
2547
|
-
if (Li(ie) ||
|
|
2547
|
+
if (Li(ie) || Ce(ie)) return He !== null ? null : we(Z, W, ie, xe, null);
|
|
2548
2548
|
tu(Z, ie);
|
|
2549
2549
|
}
|
|
2550
2550
|
return null;
|
|
@@ -2557,11 +2557,11 @@ function ww() {
|
|
|
2557
2557
|
return Z = Z.get(xe.key === null ? ie : xe.key) || null, V(W, Z, xe, He);
|
|
2558
2558
|
case G:
|
|
2559
2559
|
return Z = Z.get(xe.key === null ? ie : xe.key) || null, ae(W, Z, xe, He);
|
|
2560
|
-
case
|
|
2560
|
+
case Pe:
|
|
2561
2561
|
var Ye = xe._init;
|
|
2562
2562
|
return je(Z, W, ie, Ye(xe._payload), He);
|
|
2563
2563
|
}
|
|
2564
|
-
if (Li(xe) ||
|
|
2564
|
+
if (Li(xe) || Ce(xe)) return Z = Z.get(ie) || null, we(W, Z, xe, He, null);
|
|
2565
2565
|
tu(W, xe);
|
|
2566
2566
|
}
|
|
2567
2567
|
return null;
|
|
@@ -2578,7 +2578,7 @@ function ww() {
|
|
|
2578
2578
|
}
|
|
2579
2579
|
if (nt === ie.length) return c(Z, Qe), Nt && ms(Z, nt), He;
|
|
2580
2580
|
if (Qe === null) {
|
|
2581
|
-
for (; nt < ie.length; nt++) Qe =
|
|
2581
|
+
for (; nt < ie.length; nt++) Qe = Te(Z, ie[nt], xe), Qe !== null && (W = k(Qe, W, nt), Ye === null ? He = Qe : Ye.sibling = Qe, Ye = Qe);
|
|
2582
2582
|
return Nt && ms(Z, nt), He;
|
|
2583
2583
|
}
|
|
2584
2584
|
for (Qe = m(Z, Qe); nt < ie.length; nt++) pn = je(Qe, Z, nt, ie[nt], xe), pn !== null && (i && pn.alternate !== null && Qe.delete(pn.key === null ? nt : pn.key), W = k(pn, W, nt), Ye === null ? He = pn : Ye.sibling = pn, Ye = pn);
|
|
@@ -2587,7 +2587,7 @@ function ww() {
|
|
|
2587
2587
|
}), Nt && ms(Z, nt), He;
|
|
2588
2588
|
}
|
|
2589
2589
|
function ze(Z, W, ie, xe) {
|
|
2590
|
-
var He =
|
|
2590
|
+
var He = Ce(ie);
|
|
2591
2591
|
if (typeof He != "function") throw Error(t(150));
|
|
2592
2592
|
if (ie = He.call(ie), ie == null) throw Error(t(151));
|
|
2593
2593
|
for (var Ye = He = null, Qe = W, nt = W = 0, pn = null, bt = ie.next(); Qe !== null && !bt.done; nt++, bt = ie.next()) {
|
|
@@ -2604,7 +2604,7 @@ function ww() {
|
|
|
2604
2604
|
Qe
|
|
2605
2605
|
), Nt && ms(Z, nt), He;
|
|
2606
2606
|
if (Qe === null) {
|
|
2607
|
-
for (; !bt.done; nt++, bt = ie.next()) bt =
|
|
2607
|
+
for (; !bt.done; nt++, bt = ie.next()) bt = Te(Z, bt.value, xe), bt !== null && (W = k(bt, W, nt), Ye === null ? He = bt : Ye.sibling = bt, Ye = bt);
|
|
2608
2608
|
return Nt && ms(Z, nt), He;
|
|
2609
2609
|
}
|
|
2610
2610
|
for (Qe = m(Z, Qe); !bt.done; nt++, bt = ie.next()) bt = je(Qe, Z, nt, bt.value, xe), bt !== null && (i && bt.alternate !== null && Qe.delete(bt.key === null ? nt : bt.key), W = k(bt, W, nt), Ye === null ? He = bt : Ye.sibling = bt, Ye = bt);
|
|
@@ -2624,7 +2624,7 @@ function ww() {
|
|
|
2624
2624
|
c(Z, Ye.sibling), W = b(Ye, ie.props.children), W.return = Z, Z = W;
|
|
2625
2625
|
break e;
|
|
2626
2626
|
}
|
|
2627
|
-
} else if (Ye.elementType === He || typeof He == "object" && He !== null && He.$$typeof ===
|
|
2627
|
+
} else if (Ye.elementType === He || typeof He == "object" && He !== null && He.$$typeof === Pe && jm(He) === Ye.type) {
|
|
2628
2628
|
c(Z, Ye.sibling), W = b(Ye, ie.props), W.ref = Cl(Z, Ye, ie), W.return = Z, Z = W;
|
|
2629
2629
|
break e;
|
|
2630
2630
|
}
|
|
@@ -2652,11 +2652,11 @@ function ww() {
|
|
|
2652
2652
|
W = Zf(ie, Z.mode, xe), W.return = Z, Z = W;
|
|
2653
2653
|
}
|
|
2654
2654
|
return E(Z);
|
|
2655
|
-
case
|
|
2655
|
+
case Pe:
|
|
2656
2656
|
return Ye = ie._init, Xt(Z, W, Ye(ie._payload), xe);
|
|
2657
2657
|
}
|
|
2658
2658
|
if (Li(ie)) return Be(Z, W, ie, xe);
|
|
2659
|
-
if (
|
|
2659
|
+
if (Ce(ie)) return ze(Z, W, ie, xe);
|
|
2660
2660
|
tu(Z, ie);
|
|
2661
2661
|
}
|
|
2662
2662
|
return typeof ie == "string" && ie !== "" || typeof ie == "number" ? (ie = "" + ie, W !== null && W.tag === 6 ? (c(Z, W.sibling), W = b(W, ie), W.return = Z, Z = W) : (c(Z, W), W = Xf(ie, Z.mode, xe), W.return = Z, Z = W), E(Z)) : c(Z, W);
|
|
@@ -2756,7 +2756,7 @@ function ww() {
|
|
|
2756
2756
|
we !== null && (we = we.updateQueue, D = we.lastBaseUpdate, D !== E && (D === null ? we.firstBaseUpdate = ae : D.next = ae, we.lastBaseUpdate = V));
|
|
2757
2757
|
}
|
|
2758
2758
|
if (k !== null) {
|
|
2759
|
-
var
|
|
2759
|
+
var Te = b.baseState;
|
|
2760
2760
|
E = 0, we = ae = V = null, D = k;
|
|
2761
2761
|
do {
|
|
2762
2762
|
var ke = D.lane, je = D.eventTime;
|
|
@@ -2774,35 +2774,35 @@ function ww() {
|
|
|
2774
2774
|
switch (ke = s, je = c, ze.tag) {
|
|
2775
2775
|
case 1:
|
|
2776
2776
|
if (Be = ze.payload, typeof Be == "function") {
|
|
2777
|
-
|
|
2777
|
+
Te = Be.call(je, Te, ke);
|
|
2778
2778
|
break e;
|
|
2779
2779
|
}
|
|
2780
|
-
|
|
2780
|
+
Te = Be;
|
|
2781
2781
|
break e;
|
|
2782
2782
|
case 3:
|
|
2783
2783
|
Be.flags = Be.flags & -65537 | 128;
|
|
2784
2784
|
case 0:
|
|
2785
|
-
if (Be = ze.payload, ke = typeof Be == "function" ? Be.call(je,
|
|
2786
|
-
|
|
2785
|
+
if (Be = ze.payload, ke = typeof Be == "function" ? Be.call(je, Te, ke) : Be, ke == null) break e;
|
|
2786
|
+
Te = de({}, Te, ke);
|
|
2787
2787
|
break e;
|
|
2788
2788
|
case 2:
|
|
2789
2789
|
wo = !0;
|
|
2790
2790
|
}
|
|
2791
2791
|
}
|
|
2792
2792
|
D.callback !== null && D.lane !== 0 && (i.flags |= 64, ke = b.effects, ke === null ? b.effects = [D] : ke.push(D));
|
|
2793
|
-
} else je = { eventTime: je, lane: ke, tag: D.tag, payload: D.payload, callback: D.callback, next: null }, we === null ? (ae = we = je, V =
|
|
2793
|
+
} else je = { eventTime: je, lane: ke, tag: D.tag, payload: D.payload, callback: D.callback, next: null }, we === null ? (ae = we = je, V = Te) : we = we.next = je, E |= ke;
|
|
2794
2794
|
if (D = D.next, D === null) {
|
|
2795
2795
|
if (D = b.shared.pending, D === null) break;
|
|
2796
2796
|
ke = D, D = ke.next, ke.next = null, b.lastBaseUpdate = ke, b.shared.pending = null;
|
|
2797
2797
|
}
|
|
2798
2798
|
} while (!0);
|
|
2799
|
-
if (we === null && (V =
|
|
2799
|
+
if (we === null && (V = Te), b.baseState = V, b.firstBaseUpdate = ae, b.lastBaseUpdate = we, s = b.shared.interleaved, s !== null) {
|
|
2800
2800
|
b = s;
|
|
2801
2801
|
do
|
|
2802
2802
|
E |= b.lane, b = b.next;
|
|
2803
2803
|
while (b !== s);
|
|
2804
2804
|
} else k === null && (b.shared.lanes = 0);
|
|
2805
|
-
bs |= E, i.lanes = E, i.memoizedState =
|
|
2805
|
+
bs |= E, i.lanes = E, i.memoizedState = Te;
|
|
2806
2806
|
}
|
|
2807
2807
|
}
|
|
2808
2808
|
function Wm(i, s, c) {
|
|
@@ -2930,14 +2930,14 @@ function ww() {
|
|
|
2930
2930
|
var we = ae.lane;
|
|
2931
2931
|
if ((ys & we) === we) V !== null && (V = V.next = { lane: 0, action: ae.action, hasEagerState: ae.hasEagerState, eagerState: ae.eagerState, next: null }), m = ae.hasEagerState ? ae.eagerState : i(m, ae.action);
|
|
2932
2932
|
else {
|
|
2933
|
-
var
|
|
2933
|
+
var Te = {
|
|
2934
2934
|
lane: we,
|
|
2935
2935
|
action: ae.action,
|
|
2936
2936
|
hasEagerState: ae.hasEagerState,
|
|
2937
2937
|
eagerState: ae.eagerState,
|
|
2938
2938
|
next: null
|
|
2939
2939
|
};
|
|
2940
|
-
V === null ? (D = V =
|
|
2940
|
+
V === null ? (D = V = Te, E = m) : V = V.next = Te, Vt.lanes |= we, bs |= we;
|
|
2941
2941
|
}
|
|
2942
2942
|
ae = ae.next;
|
|
2943
2943
|
} while (ae !== null && ae !== k);
|
|
@@ -3382,16 +3382,16 @@ Error generating stack: ` + k.message + `
|
|
|
3382
3382
|
E.props = D;
|
|
3383
3383
|
var V = E.context, ae = c.contextType;
|
|
3384
3384
|
typeof ae == "object" && ae !== null ? ae = Dr(ae) : (ae = or(c) ? hs : Ln.current, ae = fa(s, ae));
|
|
3385
|
-
var we = c.getDerivedStateFromProps,
|
|
3386
|
-
|
|
3385
|
+
var we = c.getDerivedStateFromProps, Te = typeof we == "function" || typeof E.getSnapshotBeforeUpdate == "function";
|
|
3386
|
+
Te || typeof E.UNSAFE_componentWillReceiveProps != "function" && typeof E.componentWillReceiveProps != "function" || (D !== m || V !== ae) && pg(s, E, m, ae), wo = !1;
|
|
3387
3387
|
var ke = s.memoizedState;
|
|
3388
|
-
E.state = ke, ou(s, m, E, b), V = s.memoizedState, D !== m || ke !== V || ir.current || wo ? (typeof we == "function" && (xf(s, c, we, m), V = s.memoizedState), (D = wo || fg(s, c, D, m, ke, V, ae)) ? (
|
|
3388
|
+
E.state = ke, ou(s, m, E, b), V = s.memoizedState, D !== m || ke !== V || ir.current || wo ? (typeof we == "function" && (xf(s, c, we, m), V = s.memoizedState), (D = wo || fg(s, c, D, m, ke, V, ae)) ? (Te || typeof E.UNSAFE_componentWillMount != "function" && typeof E.componentWillMount != "function" || (typeof E.componentWillMount == "function" && E.componentWillMount(), typeof E.UNSAFE_componentWillMount == "function" && E.UNSAFE_componentWillMount()), typeof E.componentDidMount == "function" && (s.flags |= 4194308)) : (typeof E.componentDidMount == "function" && (s.flags |= 4194308), s.memoizedProps = m, s.memoizedState = V), E.props = m, E.state = V, E.context = ae, m = D) : (typeof E.componentDidMount == "function" && (s.flags |= 4194308), m = !1);
|
|
3389
3389
|
} else {
|
|
3390
|
-
E = s.stateNode, Vm(i, s), D = s.memoizedProps, ae = s.type === s.elementType ? D : ei(s.type, D), E.props = ae,
|
|
3390
|
+
E = s.stateNode, Vm(i, s), D = s.memoizedProps, ae = s.type === s.elementType ? D : ei(s.type, D), E.props = ae, Te = s.pendingProps, ke = E.context, V = c.contextType, typeof V == "object" && V !== null ? V = Dr(V) : (V = or(c) ? hs : Ln.current, V = fa(s, V));
|
|
3391
3391
|
var je = c.getDerivedStateFromProps;
|
|
3392
|
-
(we = typeof je == "function" || typeof E.getSnapshotBeforeUpdate == "function") || typeof E.UNSAFE_componentWillReceiveProps != "function" && typeof E.componentWillReceiveProps != "function" || (D !==
|
|
3392
|
+
(we = typeof je == "function" || typeof E.getSnapshotBeforeUpdate == "function") || typeof E.UNSAFE_componentWillReceiveProps != "function" && typeof E.componentWillReceiveProps != "function" || (D !== Te || ke !== V) && pg(s, E, m, V), wo = !1, ke = s.memoizedState, E.state = ke, ou(s, m, E, b);
|
|
3393
3393
|
var Be = s.memoizedState;
|
|
3394
|
-
D !==
|
|
3394
|
+
D !== Te || ke !== Be || ir.current || wo ? (typeof je == "function" && (xf(s, c, je, m), Be = s.memoizedState), (ae = wo || fg(s, c, ae, m, ke, Be, V) || !1) ? (we || typeof E.UNSAFE_componentWillUpdate != "function" && typeof E.componentWillUpdate != "function" || (typeof E.componentWillUpdate == "function" && E.componentWillUpdate(m, Be, V), typeof E.UNSAFE_componentWillUpdate == "function" && E.UNSAFE_componentWillUpdate(m, Be, V)), typeof E.componentDidUpdate == "function" && (s.flags |= 4), typeof E.getSnapshotBeforeUpdate == "function" && (s.flags |= 1024)) : (typeof E.componentDidUpdate != "function" || D === i.memoizedProps && ke === i.memoizedState || (s.flags |= 4), typeof E.getSnapshotBeforeUpdate != "function" || D === i.memoizedProps && ke === i.memoizedState || (s.flags |= 1024), s.memoizedProps = m, s.memoizedState = Be), E.props = m, E.state = Be, E.context = V, m = ae) : (typeof E.componentDidUpdate != "function" || D === i.memoizedProps && ke === i.memoizedState || (s.flags |= 4), typeof E.getSnapshotBeforeUpdate != "function" || D === i.memoizedProps && ke === i.memoizedState || (s.flags |= 1024), m = !1);
|
|
3395
3395
|
}
|
|
3396
3396
|
return Mf(i, s, c, m, k, b);
|
|
3397
3397
|
}
|
|
@@ -3972,16 +3972,16 @@ Error generating stack: ` + k.message + `
|
|
|
3972
3972
|
c = null;
|
|
3973
3973
|
break e;
|
|
3974
3974
|
}
|
|
3975
|
-
var E = 0, D = -1, V = -1, ae = 0, we = 0,
|
|
3975
|
+
var E = 0, D = -1, V = -1, ae = 0, we = 0, Te = i, ke = null;
|
|
3976
3976
|
t: for (; ; ) {
|
|
3977
|
-
for (var je;
|
|
3978
|
-
ke =
|
|
3977
|
+
for (var je; Te !== c || b !== 0 && Te.nodeType !== 3 || (D = E + b), Te !== k || m !== 0 && Te.nodeType !== 3 || (V = E + m), Te.nodeType === 3 && (E += Te.nodeValue.length), (je = Te.firstChild) !== null; )
|
|
3978
|
+
ke = Te, Te = je;
|
|
3979
3979
|
for (; ; ) {
|
|
3980
|
-
if (
|
|
3981
|
-
if (ke === c && ++ae === b && (D = E), ke === k && ++we === m && (V = E), (je =
|
|
3982
|
-
|
|
3980
|
+
if (Te === i) break t;
|
|
3981
|
+
if (ke === c && ++ae === b && (D = E), ke === k && ++we === m && (V = E), (je = Te.nextSibling) !== null) break;
|
|
3982
|
+
Te = ke, ke = Te.parentNode;
|
|
3983
3983
|
}
|
|
3984
|
-
|
|
3984
|
+
Te = je;
|
|
3985
3985
|
}
|
|
3986
3986
|
c = D === -1 || V === -1 ? null : { start: D, end: V };
|
|
3987
3987
|
} else c = null;
|
|
@@ -4228,8 +4228,8 @@ Error generating stack: ` + k.message + `
|
|
|
4228
4228
|
D === "input" && k.type === "radio" && k.name != null && so(b, k), _t(D, E);
|
|
4229
4229
|
var ae = _t(D, k);
|
|
4230
4230
|
for (E = 0; E < V.length; E += 2) {
|
|
4231
|
-
var we = V[E],
|
|
4232
|
-
we === "style" ? ot(b,
|
|
4231
|
+
var we = V[E], Te = V[E + 1];
|
|
4232
|
+
we === "style" ? ot(b, Te) : we === "dangerouslySetInnerHTML" ? ue(b, Te) : we === "children" ? ye(b, Te) : U(b, we, Te, ae);
|
|
4233
4233
|
}
|
|
4234
4234
|
switch (D) {
|
|
4235
4235
|
case "input":
|
|
@@ -4282,7 +4282,7 @@ Error generating stack: ` + k.message + `
|
|
|
4282
4282
|
case 22:
|
|
4283
4283
|
if (we = c !== null && c.memoizedState !== null, i.mode & 1 ? (jn = (ae = jn) || we, ni(s, i), jn = ae) : ni(s, i), Si(i), m & 8192) {
|
|
4284
4284
|
if (ae = i.memoizedState !== null, (i.stateNode.isHidden = ae) && !we && (i.mode & 1) !== 0) for (Ue = i, we = i.child; we !== null; ) {
|
|
4285
|
-
for (
|
|
4285
|
+
for (Te = Ue = we; Ue !== null; ) {
|
|
4286
4286
|
switch (ke = Ue, je = ke.child, ke.tag) {
|
|
4287
4287
|
case 0:
|
|
4288
4288
|
case 11:
|
|
@@ -4307,40 +4307,40 @@ Error generating stack: ` + k.message + `
|
|
|
4307
4307
|
break;
|
|
4308
4308
|
case 22:
|
|
4309
4309
|
if (ke.memoizedState !== null) {
|
|
4310
|
-
Wg(
|
|
4310
|
+
Wg(Te);
|
|
4311
4311
|
continue;
|
|
4312
4312
|
}
|
|
4313
4313
|
}
|
|
4314
|
-
je !== null ? (je.return = ke, Ue = je) : Wg(
|
|
4314
|
+
je !== null ? (je.return = ke, Ue = je) : Wg(Te);
|
|
4315
4315
|
}
|
|
4316
4316
|
we = we.sibling;
|
|
4317
4317
|
}
|
|
4318
|
-
e: for (we = null,
|
|
4319
|
-
if (
|
|
4318
|
+
e: for (we = null, Te = i; ; ) {
|
|
4319
|
+
if (Te.tag === 5) {
|
|
4320
4320
|
if (we === null) {
|
|
4321
|
-
we =
|
|
4321
|
+
we = Te;
|
|
4322
4322
|
try {
|
|
4323
|
-
b =
|
|
4323
|
+
b = Te.stateNode, ae ? (k = b.style, typeof k.setProperty == "function" ? k.setProperty("display", "none", "important") : k.display = "none") : (D = Te.stateNode, V = Te.memoizedProps.style, E = V != null && V.hasOwnProperty("display") ? V.display : null, D.style.display = Le("display", E));
|
|
4324
4324
|
} catch (ze) {
|
|
4325
4325
|
qt(i, i.return, ze);
|
|
4326
4326
|
}
|
|
4327
4327
|
}
|
|
4328
|
-
} else if (
|
|
4328
|
+
} else if (Te.tag === 6) {
|
|
4329
4329
|
if (we === null) try {
|
|
4330
|
-
|
|
4330
|
+
Te.stateNode.nodeValue = ae ? "" : Te.memoizedProps;
|
|
4331
4331
|
} catch (ze) {
|
|
4332
4332
|
qt(i, i.return, ze);
|
|
4333
4333
|
}
|
|
4334
|
-
} else if ((
|
|
4335
|
-
|
|
4334
|
+
} else if ((Te.tag !== 22 && Te.tag !== 23 || Te.memoizedState === null || Te === i) && Te.child !== null) {
|
|
4335
|
+
Te.child.return = Te, Te = Te.child;
|
|
4336
4336
|
continue;
|
|
4337
4337
|
}
|
|
4338
|
-
if (
|
|
4339
|
-
for (;
|
|
4340
|
-
if (
|
|
4341
|
-
we ===
|
|
4338
|
+
if (Te === i) break e;
|
|
4339
|
+
for (; Te.sibling === null; ) {
|
|
4340
|
+
if (Te.return === null || Te.return === i) break e;
|
|
4341
|
+
we === Te && (we = null), Te = Te.return;
|
|
4342
4342
|
}
|
|
4343
|
-
we ===
|
|
4343
|
+
we === Te && (we = null), Te.sibling.return = Te.return, Te = Te.sibling;
|
|
4344
4344
|
}
|
|
4345
4345
|
}
|
|
4346
4346
|
break;
|
|
@@ -4476,8 +4476,8 @@ Error generating stack: ` + k.message + `
|
|
|
4476
4476
|
if (ae !== null) {
|
|
4477
4477
|
var we = ae.memoizedState;
|
|
4478
4478
|
if (we !== null) {
|
|
4479
|
-
var
|
|
4480
|
-
|
|
4479
|
+
var Te = we.dehydrated;
|
|
4480
|
+
Te !== null && Mn(Te);
|
|
4481
4481
|
}
|
|
4482
4482
|
}
|
|
4483
4483
|
}
|
|
@@ -4830,8 +4830,8 @@ Error generating stack: ` + k.message + `
|
|
|
4830
4830
|
e: {
|
|
4831
4831
|
var k = i, E = c.return, D = c, V = s;
|
|
4832
4832
|
if (s = Sn, D.flags |= 32768, V !== null && typeof V == "object" && typeof V.then == "function") {
|
|
4833
|
-
var ae = V, we = D,
|
|
4834
|
-
if ((we.mode & 1) === 0 && (
|
|
4833
|
+
var ae = V, we = D, Te = we.tag;
|
|
4834
|
+
if ((we.mode & 1) === 0 && (Te === 0 || Te === 11 || Te === 15)) {
|
|
4835
4835
|
var ke = we.alternate;
|
|
4836
4836
|
ke ? (we.updateQueue = ke.updateQueue, we.memoizedState = ke.memoizedState, we.lanes = ke.lanes) : (we.updateQueue = null, we.memoizedState = null);
|
|
4837
4837
|
}
|
|
@@ -5004,8 +5004,8 @@ Error generating stack: ` + k.message + `
|
|
|
5004
5004
|
case 15:
|
|
5005
5005
|
Ml(8, we, k);
|
|
5006
5006
|
}
|
|
5007
|
-
var
|
|
5008
|
-
if (
|
|
5007
|
+
var Te = we.child;
|
|
5008
|
+
if (Te !== null) Te.return = we, Ue = Te;
|
|
5009
5009
|
else for (; Ue !== null; ) {
|
|
5010
5010
|
we = Ue;
|
|
5011
5011
|
var ke = we.sibling, je = we.return;
|
|
@@ -5325,11 +5325,11 @@ Error generating stack: ` + k.message + `
|
|
|
5325
5325
|
break;
|
|
5326
5326
|
case $:
|
|
5327
5327
|
return i = Fr(12, c, s, b | 2), i.elementType = $, i.lanes = k, i;
|
|
5328
|
-
case
|
|
5329
|
-
return i = Fr(13, c, s, b), i.elementType =
|
|
5328
|
+
case Ie:
|
|
5329
|
+
return i = Fr(13, c, s, b), i.elementType = Ie, i.lanes = k, i;
|
|
5330
5330
|
case We:
|
|
5331
5331
|
return i = Fr(19, c, s, b), i.elementType = We, i.lanes = k, i;
|
|
5332
|
-
case
|
|
5332
|
+
case me:
|
|
5333
5333
|
return xu(c, b, k, s);
|
|
5334
5334
|
default:
|
|
5335
5335
|
if (typeof i == "object" && i !== null) switch (i.$$typeof) {
|
|
@@ -5345,7 +5345,7 @@ Error generating stack: ` + k.message + `
|
|
|
5345
5345
|
case oe:
|
|
5346
5346
|
E = 14;
|
|
5347
5347
|
break e;
|
|
5348
|
-
case
|
|
5348
|
+
case Pe:
|
|
5349
5349
|
E = 16, m = null;
|
|
5350
5350
|
break e;
|
|
5351
5351
|
}
|
|
@@ -5357,7 +5357,7 @@ Error generating stack: ` + k.message + `
|
|
|
5357
5357
|
return i = Fr(7, i, m, s), i.lanes = c, i;
|
|
5358
5358
|
}
|
|
5359
5359
|
function xu(i, s, c, m) {
|
|
5360
|
-
return i = Fr(22, i, m, s), i.elementType =
|
|
5360
|
+
return i = Fr(22, i, m, s), i.elementType = me, i.lanes = c, i.stateNode = { isHidden: !1 }, i;
|
|
5361
5361
|
}
|
|
5362
5362
|
function Xf(i, s, c) {
|
|
5363
5363
|
return i = Fr(6, i, null, s), i.lanes = c, i;
|
|
@@ -5997,7 +5997,7 @@ var Bw = /* @__PURE__ */ Ip(/* @__PURE__ */ ky([], Uw, function(n, e) {
|
|
|
5997
5997
|
l = e[o], a = n(l), t.add(a) && r.push(l), o += 1;
|
|
5998
5998
|
return r;
|
|
5999
5999
|
})), Vw = /* @__PURE__ */ Bw(Dw);
|
|
6000
|
-
const zw = "1.2.
|
|
6000
|
+
const zw = "1.2.3-alpha.1", Ww = {
|
|
6001
6001
|
version: zw
|
|
6002
6002
|
};
|
|
6003
6003
|
var _n = typeof globalThis < "u" && globalThis || typeof self < "u" && self || // eslint-disable-next-line no-undef
|
|
@@ -6811,7 +6811,7 @@ function Av(n, e, t) {
|
|
|
6811
6811
|
const r = n.random || (n.rng || hC)();
|
|
6812
6812
|
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, pC(r);
|
|
6813
6813
|
}
|
|
6814
|
-
var gC = "@nlxai/core", vC = "1.
|
|
6814
|
+
var gC = "@nlxai/core", vC = "1.2.3-alpha.1", yC = "Low-level SDK for building NLX experiences", bC = "module", kC = "lib/index.cjs", wC = "lib/index.esm.js", CC = "lib/index.umd.js", SC = "lib/index.d.ts", TC = {
|
|
6815
6815
|
".": {
|
|
6816
6816
|
types: "./lib/index.d.ts",
|
|
6817
6817
|
import: "./lib/index.esm.js",
|
|
@@ -6846,7 +6846,7 @@ var gC = "@nlxai/core", vC = "1.1.8-alpha.0", yC = "Low-level SDK for building N
|
|
|
6846
6846
|
uuid: "^9.0.1"
|
|
6847
6847
|
}, IC = {
|
|
6848
6848
|
access: "public"
|
|
6849
|
-
}, MC = "
|
|
6849
|
+
}, MC = "13e26a6c67af7aa6c8dc100ad83d9c33e1112a08", gh = {
|
|
6850
6850
|
name: gC,
|
|
6851
6851
|
version: vC,
|
|
6852
6852
|
description: yC,
|
|
@@ -6910,12 +6910,12 @@ function DC(n) {
|
|
|
6910
6910
|
const C = () => {
|
|
6911
6911
|
var oe;
|
|
6912
6912
|
return `${Nv(u)}${((oe = n.experimental) == null ? void 0 : oe.completeApplicationUrl) === !0 ? "" : `-${g.languageCode}`}`;
|
|
6913
|
-
}, _ = (oe,
|
|
6913
|
+
}, _ = (oe, Pe) => {
|
|
6914
6914
|
g = {
|
|
6915
6915
|
...g,
|
|
6916
6916
|
...oe
|
|
6917
|
-
}, ee.forEach((
|
|
6918
|
-
|
|
6917
|
+
}, ee.forEach((me) => {
|
|
6918
|
+
me(Dv(g), Pe);
|
|
6919
6919
|
});
|
|
6920
6920
|
}, T = () => {
|
|
6921
6921
|
const oe = {
|
|
@@ -6930,22 +6930,22 @@ function DC(n) {
|
|
|
6930
6930
|
}, oe);
|
|
6931
6931
|
}, N = (oe) => {
|
|
6932
6932
|
if ((oe == null ? void 0 : oe.messages.length) > 0) {
|
|
6933
|
-
const
|
|
6933
|
+
const Pe = {
|
|
6934
6934
|
type: Kn.Application,
|
|
6935
6935
|
receivedAt: (/* @__PURE__ */ new Date()).getTime(),
|
|
6936
6936
|
payload: {
|
|
6937
6937
|
...oe,
|
|
6938
|
-
messages: oe.messages.map((
|
|
6939
|
-
nodeId:
|
|
6940
|
-
messageId:
|
|
6941
|
-
text:
|
|
6942
|
-
choices:
|
|
6938
|
+
messages: oe.messages.map((me) => ({
|
|
6939
|
+
nodeId: me.nodeId,
|
|
6940
|
+
messageId: me.messageId,
|
|
6941
|
+
text: me.text,
|
|
6942
|
+
choices: me.choices ?? []
|
|
6943
6943
|
}))
|
|
6944
6944
|
}
|
|
6945
6945
|
};
|
|
6946
6946
|
_({
|
|
6947
|
-
responses: [...g.responses,
|
|
6948
|
-
},
|
|
6947
|
+
responses: [...g.responses, Pe]
|
|
6948
|
+
}, Pe), oe.metadata.hasPendingDataRequest && ($({ poll: !0 }), setTimeout(() => {
|
|
6949
6949
|
z({
|
|
6950
6950
|
request: {
|
|
6951
6951
|
structured: {
|
|
@@ -6961,33 +6961,33 @@ function DC(n) {
|
|
|
6961
6961
|
const H = (oe) => {
|
|
6962
6962
|
(o == null ? void 0 : o.readyState) === 1 ? o.send(JSON.stringify(oe)) : a = [...a, oe];
|
|
6963
6963
|
}, z = async (oe) => {
|
|
6964
|
-
var
|
|
6964
|
+
var me;
|
|
6965
6965
|
if (A != null) {
|
|
6966
|
-
A(oe, (
|
|
6967
|
-
const
|
|
6966
|
+
A(oe, (ce) => {
|
|
6967
|
+
const Ce = {
|
|
6968
6968
|
type: Kn.Application,
|
|
6969
6969
|
receivedAt: (/* @__PURE__ */ new Date()).getTime(),
|
|
6970
|
-
payload:
|
|
6970
|
+
payload: ce
|
|
6971
6971
|
};
|
|
6972
6972
|
_({
|
|
6973
|
-
responses: [...g.responses,
|
|
6974
|
-
},
|
|
6973
|
+
responses: [...g.responses, Ce]
|
|
6974
|
+
}, Ce);
|
|
6975
6975
|
});
|
|
6976
6976
|
return;
|
|
6977
6977
|
}
|
|
6978
|
-
const
|
|
6978
|
+
const Pe = {
|
|
6979
6979
|
userId: g.userId,
|
|
6980
6980
|
conversationId: g.conversationId,
|
|
6981
6981
|
...oe,
|
|
6982
6982
|
languageCode: g.languageCode,
|
|
6983
|
-
channelType: (
|
|
6983
|
+
channelType: (me = n.experimental) == null ? void 0 : me.channelType,
|
|
6984
6984
|
environment: n.environment
|
|
6985
6985
|
};
|
|
6986
6986
|
if (Oo(u))
|
|
6987
|
-
(e == null ? void 0 : e.readyState) === 1 ? e.send(JSON.stringify(
|
|
6987
|
+
(e == null ? void 0 : e.readyState) === 1 ? e.send(JSON.stringify(Pe)) : t = [...t, Pe];
|
|
6988
6988
|
else
|
|
6989
6989
|
try {
|
|
6990
|
-
const
|
|
6990
|
+
const ce = await ph(C(), {
|
|
6991
6991
|
method: "POST",
|
|
6992
6992
|
headers: {
|
|
6993
6993
|
...n.headers ?? {},
|
|
@@ -6995,14 +6995,14 @@ function DC(n) {
|
|
|
6995
6995
|
"Content-Type": "application/json",
|
|
6996
6996
|
"nlx-sdk-version": gh.version
|
|
6997
6997
|
},
|
|
6998
|
-
body: JSON.stringify(
|
|
6998
|
+
body: JSON.stringify(Pe)
|
|
6999
6999
|
});
|
|
7000
|
-
if (
|
|
7001
|
-
throw new Error(`Responded with ${
|
|
7002
|
-
const
|
|
7003
|
-
N(
|
|
7004
|
-
} catch (
|
|
7005
|
-
Ea.warn(
|
|
7000
|
+
if (ce.status >= 400)
|
|
7001
|
+
throw new Error(`Responded with ${ce.status}`);
|
|
7002
|
+
const Ce = await ce.json();
|
|
7003
|
+
N(Ce);
|
|
7004
|
+
} catch (ce) {
|
|
7005
|
+
Ea.warn(ce), T();
|
|
7006
7006
|
}
|
|
7007
7007
|
};
|
|
7008
7008
|
let ee = [];
|
|
@@ -7011,37 +7011,37 @@ function DC(n) {
|
|
|
7011
7011
|
}, L = () => {
|
|
7012
7012
|
(o == null ? void 0 : o.readyState) === 1 && a[0] != null && (H(a[0]), a = a.slice(1));
|
|
7013
7013
|
}, F = () => {
|
|
7014
|
-
var
|
|
7014
|
+
var Pe;
|
|
7015
7015
|
se();
|
|
7016
7016
|
const oe = new URL(u);
|
|
7017
|
-
((
|
|
7017
|
+
((Pe = n.experimental) == null ? void 0 : Pe.completeApplicationUrl) !== !0 && (oe.searchParams.set("languageCode", g.languageCode), oe.searchParams.set("channelKey", `${oe.searchParams.get("channelKey") ?? ""}-${g.languageCode}`)), oe.searchParams.set("conversationId", g.conversationId), e = new mh(oe.href), r = setInterval(() => {
|
|
7018
7018
|
U();
|
|
7019
|
-
}, 500), e.onmessage = function(
|
|
7020
|
-
typeof (
|
|
7019
|
+
}, 500), e.onmessage = function(me) {
|
|
7020
|
+
typeof (me == null ? void 0 : me.data) == "string" && N(vh(me.data));
|
|
7021
7021
|
}, oe.searchParams.set("voice-plus", "true"), o = new mh(oe.href), l = setInterval(() => {
|
|
7022
7022
|
L();
|
|
7023
|
-
}, 500), o.onmessage = (
|
|
7024
|
-
if (typeof (
|
|
7025
|
-
const
|
|
7026
|
-
|
|
7027
|
-
|
|
7023
|
+
}, 500), o.onmessage = (me) => {
|
|
7024
|
+
if (typeof (me == null ? void 0 : me.data) == "string") {
|
|
7025
|
+
const ce = vh(me.data);
|
|
7026
|
+
ce != null && f.voicePlusCommand.forEach((Ce) => {
|
|
7027
|
+
Ce(ce);
|
|
7028
7028
|
});
|
|
7029
7029
|
}
|
|
7030
7030
|
};
|
|
7031
7031
|
}, G = () => {
|
|
7032
|
-
var
|
|
7032
|
+
var me;
|
|
7033
7033
|
if (Q(), n.bidirectional !== !0)
|
|
7034
7034
|
return;
|
|
7035
7035
|
const oe = new URL(OC(u));
|
|
7036
|
-
((
|
|
7037
|
-
const
|
|
7038
|
-
!Oo(u) &&
|
|
7036
|
+
((me = n.experimental) == null ? void 0 : me.completeApplicationUrl) !== !0 && (oe.searchParams.set("languageCode", g.languageCode), oe.searchParams.set("channelKey", `${oe.searchParams.get("channelKey") ?? ""}-${g.languageCode}`)), oe.searchParams.set("conversationId", g.conversationId), oe.searchParams.set("type", "voice-plus");
|
|
7037
|
+
const Pe = n.headers["nlx-api-key"];
|
|
7038
|
+
!Oo(u) && Pe != null && oe.searchParams.set("apiKey", Pe), o = new mh(oe.href), l = setInterval(() => {
|
|
7039
7039
|
L();
|
|
7040
|
-
}, 500), o.onmessage = (
|
|
7041
|
-
if (typeof (
|
|
7042
|
-
const
|
|
7043
|
-
|
|
7044
|
-
de(
|
|
7040
|
+
}, 500), o.onmessage = (ce) => {
|
|
7041
|
+
if (typeof (ce == null ? void 0 : ce.data) == "string") {
|
|
7042
|
+
const Ce = vh(ce.data);
|
|
7043
|
+
Ce != null && f.voicePlusCommand.forEach((de) => {
|
|
7044
|
+
de(Ce);
|
|
7045
7045
|
});
|
|
7046
7046
|
}
|
|
7047
7047
|
};
|
|
@@ -7051,83 +7051,83 @@ function DC(n) {
|
|
|
7051
7051
|
l != null && clearInterval(l), o != null && (o.onmessage = null, o.close(), o = void 0);
|
|
7052
7052
|
};
|
|
7053
7053
|
Oo(u) && F(), G();
|
|
7054
|
-
const $ = (oe,
|
|
7055
|
-
const
|
|
7054
|
+
const $ = (oe, Pe) => {
|
|
7055
|
+
const me = {
|
|
7056
7056
|
type: Kn.User,
|
|
7057
7057
|
receivedAt: (/* @__PURE__ */ new Date()).getTime(),
|
|
7058
7058
|
payload: {
|
|
7059
7059
|
type: "structured",
|
|
7060
7060
|
...Lv(oe),
|
|
7061
|
-
context:
|
|
7061
|
+
context: Pe
|
|
7062
7062
|
}
|
|
7063
7063
|
};
|
|
7064
7064
|
_({
|
|
7065
|
-
responses: [...g.responses,
|
|
7066
|
-
},
|
|
7067
|
-
}, q = (oe,
|
|
7068
|
-
$({ intentId: oe },
|
|
7069
|
-
context:
|
|
7065
|
+
responses: [...g.responses, me]
|
|
7066
|
+
}, me);
|
|
7067
|
+
}, q = (oe, Pe) => {
|
|
7068
|
+
$({ intentId: oe }, Pe), z({
|
|
7069
|
+
context: Pe,
|
|
7070
7070
|
request: {
|
|
7071
7071
|
structured: {
|
|
7072
7072
|
intentId: oe
|
|
7073
7073
|
}
|
|
7074
7074
|
}
|
|
7075
7075
|
});
|
|
7076
|
-
}, Y = (oe,
|
|
7077
|
-
const
|
|
7076
|
+
}, Y = (oe, Pe) => {
|
|
7077
|
+
const me = {
|
|
7078
7078
|
type: Kn.User,
|
|
7079
7079
|
receivedAt: (/* @__PURE__ */ new Date()).getTime(),
|
|
7080
7080
|
payload: {
|
|
7081
7081
|
type: "text",
|
|
7082
7082
|
text: oe,
|
|
7083
|
-
context:
|
|
7083
|
+
context: Pe
|
|
7084
7084
|
}
|
|
7085
7085
|
};
|
|
7086
7086
|
_({
|
|
7087
|
-
responses: [...g.responses,
|
|
7088
|
-
},
|
|
7089
|
-
context:
|
|
7087
|
+
responses: [...g.responses, me]
|
|
7088
|
+
}, me), z({
|
|
7089
|
+
context: Pe,
|
|
7090
7090
|
request: {
|
|
7091
7091
|
unstructured: {
|
|
7092
7092
|
text: oe
|
|
7093
7093
|
}
|
|
7094
7094
|
}
|
|
7095
7095
|
});
|
|
7096
|
-
}, fe = (oe,
|
|
7097
|
-
let
|
|
7098
|
-
const
|
|
7096
|
+
}, fe = (oe, Pe, me) => {
|
|
7097
|
+
let ce = [...g.responses];
|
|
7098
|
+
const Ce = {
|
|
7099
7099
|
type: Kn.User,
|
|
7100
7100
|
receivedAt: (/* @__PURE__ */ new Date()).getTime(),
|
|
7101
7101
|
payload: {
|
|
7102
7102
|
type: "choice",
|
|
7103
7103
|
choiceId: oe
|
|
7104
7104
|
}
|
|
7105
|
-
}, de = (
|
|
7106
|
-
de > -1 && O > -1 && (
|
|
7105
|
+
}, de = (me == null ? void 0 : me.responseIndex) ?? -1, O = (me == null ? void 0 : me.messageIndex) ?? -1;
|
|
7106
|
+
de > -1 && O > -1 && (ce = Iv(de, (te) => te.type === Kn.Application ? {
|
|
7107
7107
|
...te,
|
|
7108
7108
|
payload: {
|
|
7109
7109
|
...te.payload,
|
|
7110
7110
|
messages: Iv(O, (Ve) => ({ ...Ve, selectedChoiceId: oe }), te.payload.messages)
|
|
7111
7111
|
}
|
|
7112
|
-
} : te,
|
|
7113
|
-
responses:
|
|
7114
|
-
},
|
|
7115
|
-
context:
|
|
7112
|
+
} : te, ce)), ce = [...ce, Ce], _({
|
|
7113
|
+
responses: ce
|
|
7114
|
+
}, Ce), z({
|
|
7115
|
+
context: Pe,
|
|
7116
7116
|
request: {
|
|
7117
7117
|
structured: {
|
|
7118
|
-
nodeId:
|
|
7119
|
-
intentId:
|
|
7118
|
+
nodeId: me == null ? void 0 : me.nodeId,
|
|
7119
|
+
intentId: me == null ? void 0 : me.intentId,
|
|
7120
7120
|
choiceId: oe
|
|
7121
7121
|
}
|
|
7122
7122
|
}
|
|
7123
7123
|
});
|
|
7124
|
-
},
|
|
7125
|
-
ee = ee.filter((
|
|
7124
|
+
}, Ie = (oe) => {
|
|
7125
|
+
ee = ee.filter((Pe) => Pe !== oe);
|
|
7126
7126
|
};
|
|
7127
7127
|
return {
|
|
7128
7128
|
sendText: Y,
|
|
7129
7129
|
sendContext: async (oe) => {
|
|
7130
|
-
const
|
|
7130
|
+
const Pe = await ph(`${C()}/context`, {
|
|
7131
7131
|
method: "POST",
|
|
7132
7132
|
headers: {
|
|
7133
7133
|
...n.headers ?? {},
|
|
@@ -7143,20 +7143,20 @@ function DC(n) {
|
|
|
7143
7143
|
context: oe
|
|
7144
7144
|
})
|
|
7145
7145
|
});
|
|
7146
|
-
if (
|
|
7147
|
-
throw new Error(`Responded with ${
|
|
7146
|
+
if (Pe.status >= 400)
|
|
7147
|
+
throw new Error(`Responded with ${Pe.status}`);
|
|
7148
7148
|
},
|
|
7149
|
-
sendStructured: (oe,
|
|
7150
|
-
$(oe,
|
|
7151
|
-
context:
|
|
7149
|
+
sendStructured: (oe, Pe) => {
|
|
7150
|
+
$(oe, Pe), z({
|
|
7151
|
+
context: Pe,
|
|
7152
7152
|
request: {
|
|
7153
7153
|
structured: Lv(oe)
|
|
7154
7154
|
}
|
|
7155
7155
|
});
|
|
7156
7156
|
},
|
|
7157
|
-
sendSlots: (oe,
|
|
7158
|
-
$({ slots: oe },
|
|
7159
|
-
context:
|
|
7157
|
+
sendSlots: (oe, Pe) => {
|
|
7158
|
+
$({ slots: oe }, Pe), z({
|
|
7159
|
+
context: Pe,
|
|
7160
7160
|
request: {
|
|
7161
7161
|
structured: {
|
|
7162
7162
|
slots: Ey(oe)
|
|
@@ -7165,8 +7165,8 @@ function DC(n) {
|
|
|
7165
7165
|
});
|
|
7166
7166
|
},
|
|
7167
7167
|
sendFlow: q,
|
|
7168
|
-
sendIntent: (oe,
|
|
7169
|
-
Ea.warn("Calling `sendIntent` is deprecated and will be removed in a future version of the SDK. Use `sendFlow` instead."), q(oe,
|
|
7168
|
+
sendIntent: (oe, Pe) => {
|
|
7169
|
+
Ea.warn("Calling `sendIntent` is deprecated and will be removed in a future version of the SDK. Use `sendFlow` instead."), q(oe, Pe);
|
|
7170
7170
|
},
|
|
7171
7171
|
sendWelcomeFlow: (oe) => {
|
|
7172
7172
|
q(Ov, oe);
|
|
@@ -7184,8 +7184,8 @@ function DC(n) {
|
|
|
7184
7184
|
Oo(u) && F(), G(), _({ languageCode: oe });
|
|
7185
7185
|
},
|
|
7186
7186
|
currentLanguageCode: () => g.languageCode,
|
|
7187
|
-
getVoiceCredentials: async (oe) => {
|
|
7188
|
-
const
|
|
7187
|
+
getVoiceCredentials: async (oe, Pe) => {
|
|
7188
|
+
const me = Nv(u), ce = await ph(`${me}-${g.languageCode}/requestToken`, {
|
|
7189
7189
|
method: "POST",
|
|
7190
7190
|
headers: {
|
|
7191
7191
|
...n.headers ?? {},
|
|
@@ -7199,20 +7199,21 @@ function DC(n) {
|
|
|
7199
7199
|
conversationId: g.conversationId,
|
|
7200
7200
|
userId: g.userId,
|
|
7201
7201
|
requestToken: !0,
|
|
7202
|
-
context: oe
|
|
7202
|
+
context: oe,
|
|
7203
|
+
autoTriggerWelcomeFlow: (Pe == null ? void 0 : Pe.autoTriggerWelcomeFlow) ?? !0
|
|
7203
7204
|
})
|
|
7204
7205
|
});
|
|
7205
|
-
if (
|
|
7206
|
-
throw new Error(`Responded with ${
|
|
7207
|
-
const
|
|
7208
|
-
if ((
|
|
7206
|
+
if (ce.status >= 400)
|
|
7207
|
+
throw new Error(`Responded with ${ce.status}`);
|
|
7208
|
+
const Ce = await ce.json();
|
|
7209
|
+
if ((Ce == null ? void 0 : Ce.url) == null)
|
|
7209
7210
|
throw new Error("Invalid response");
|
|
7210
|
-
return
|
|
7211
|
+
return Ce;
|
|
7211
7212
|
},
|
|
7212
7213
|
subscribe: (oe) => (ee = [...ee, oe], oe(Dv(g)), () => {
|
|
7213
|
-
|
|
7214
|
+
Ie(oe);
|
|
7214
7215
|
}),
|
|
7215
|
-
unsubscribe:
|
|
7216
|
+
unsubscribe: Ie,
|
|
7216
7217
|
unsubscribeAll: () => {
|
|
7217
7218
|
ee = [];
|
|
7218
7219
|
},
|
|
@@ -7228,11 +7229,11 @@ function DC(n) {
|
|
|
7228
7229
|
setRequestOverride: (oe) => {
|
|
7229
7230
|
A = oe;
|
|
7230
7231
|
},
|
|
7231
|
-
addEventListener: (oe,
|
|
7232
|
-
f[oe] = [...f[oe],
|
|
7232
|
+
addEventListener: (oe, Pe) => {
|
|
7233
|
+
f[oe] = [...f[oe], Pe];
|
|
7233
7234
|
},
|
|
7234
|
-
removeEventListener: (oe,
|
|
7235
|
-
f[oe] = f[oe].filter((
|
|
7235
|
+
removeEventListener: (oe, Pe) => {
|
|
7236
|
+
f[oe] = f[oe].filter((me) => me !== Pe);
|
|
7236
7237
|
},
|
|
7237
7238
|
sendVoicePlusContext: (oe) => {
|
|
7238
7239
|
H({ context: oe });
|
|
@@ -7793,7 +7794,14 @@ const Ky = (n) => {
|
|
|
7793
7794
|
"@3xl/main:absolute @3xl/main:left-0 @3xl/main:right-0 @3xl/main:top-0": n === "full" || n === "embedded"
|
|
7794
7795
|
}),
|
|
7795
7796
|
children: [
|
|
7796
|
-
u != null ? /* @__PURE__ */ R.jsx(
|
|
7797
|
+
u != null ? /* @__PURE__ */ R.jsx(
|
|
7798
|
+
"img",
|
|
7799
|
+
{
|
|
7800
|
+
className: "w-10 h-10 block flex-none",
|
|
7801
|
+
src: u,
|
|
7802
|
+
role: "presentation"
|
|
7803
|
+
}
|
|
7804
|
+
) : null,
|
|
7797
7805
|
/* @__PURE__ */ R.jsx(
|
|
7798
7806
|
xn,
|
|
7799
7807
|
{
|
|
@@ -13040,8 +13048,8 @@ function ZT() {
|
|
|
13040
13048
|
}
|
|
13041
13049
|
if (typeof Y === t)
|
|
13042
13050
|
try {
|
|
13043
|
-
var fe = window.document.cookie,
|
|
13044
|
-
We !== -1 && (Y = /^([^;]+)/.exec(fe.slice(We +
|
|
13051
|
+
var fe = window.document.cookie, Ie = encodeURIComponent(F), We = fe.indexOf(Ie + "=");
|
|
13052
|
+
We !== -1 && (Y = /^([^;]+)/.exec(fe.slice(We + Ie.length + 1))[1]);
|
|
13045
13053
|
} catch {
|
|
13046
13054
|
}
|
|
13047
13055
|
return z.levels[Y] === void 0 && (Y = void 0), Y;
|
|
@@ -13267,7 +13275,7 @@ function s2() {
|
|
|
13267
13275
|
if (typeof fe == "function")
|
|
13268
13276
|
e(fe, this, G);
|
|
13269
13277
|
else
|
|
13270
|
-
for (var
|
|
13278
|
+
for (var Ie = fe.length, We = N(fe, Ie), se = 0; se < Ie; ++se) e(We[se], this, G);
|
|
13271
13279
|
return !0;
|
|
13272
13280
|
};
|
|
13273
13281
|
function p(L, F, G, se) {
|
|
@@ -15077,10 +15085,10 @@ var m0;
|
|
|
15077
15085
|
(function(n) {
|
|
15078
15086
|
n[n.InvalidKey = 0] = "InvalidKey", n[n.MissingKey = 1] = "MissingKey", n[n.InternalError = 2] = "InternalError";
|
|
15079
15087
|
})(m0 || (m0 = {}));
|
|
15080
|
-
var
|
|
15088
|
+
var _e;
|
|
15081
15089
|
(function(n) {
|
|
15082
15090
|
n.Connected = "connected", n.Reconnecting = "reconnecting", n.SignalReconnecting = "signalReconnecting", n.Reconnected = "reconnected", n.Disconnected = "disconnected", n.ConnectionStateChanged = "connectionStateChanged", n.Moved = "moved", n.MediaDevicesChanged = "mediaDevicesChanged", n.ParticipantConnected = "participantConnected", n.ParticipantDisconnected = "participantDisconnected", n.TrackPublished = "trackPublished", n.TrackSubscribed = "trackSubscribed", n.TrackSubscriptionFailed = "trackSubscriptionFailed", n.TrackUnpublished = "trackUnpublished", n.TrackUnsubscribed = "trackUnsubscribed", n.TrackMuted = "trackMuted", n.TrackUnmuted = "trackUnmuted", n.LocalTrackPublished = "localTrackPublished", n.LocalTrackUnpublished = "localTrackUnpublished", n.LocalAudioSilenceDetected = "localAudioSilenceDetected", n.ActiveSpeakersChanged = "activeSpeakersChanged", n.ParticipantMetadataChanged = "participantMetadataChanged", n.ParticipantNameChanged = "participantNameChanged", n.ParticipantAttributesChanged = "participantAttributesChanged", n.ParticipantActive = "participantActive", n.RoomMetadataChanged = "roomMetadataChanged", n.DataReceived = "dataReceived", n.SipDTMFReceived = "sipDTMFReceived", n.TranscriptionReceived = "transcriptionReceived", n.ConnectionQualityChanged = "connectionQualityChanged", n.TrackStreamStateChanged = "trackStreamStateChanged", n.TrackSubscriptionPermissionChanged = "trackSubscriptionPermissionChanged", n.TrackSubscriptionStatusChanged = "trackSubscriptionStatusChanged", n.AudioPlaybackStatusChanged = "audioPlaybackChanged", n.VideoPlaybackStatusChanged = "videoPlaybackChanged", n.MediaDevicesError = "mediaDevicesError", n.ParticipantPermissionsChanged = "participantPermissionsChanged", n.SignalConnected = "signalConnected", n.RecordingStatusChanged = "recordingStatusChanged", n.ParticipantEncryptionStatusChanged = "participantEncryptionStatusChanged", n.EncryptionError = "encryptionError", n.DCBufferStatusChanged = "dcBufferStatusChanged", n.ActiveDeviceChanged = "activeDeviceChanged", n.ChatMessage = "chatMessage", n.LocalTrackSubscribed = "localTrackSubscribed", n.MetricsReceived = "metricsReceived";
|
|
15083
|
-
})(
|
|
15091
|
+
})(_e || (_e = {}));
|
|
15084
15092
|
var Oe;
|
|
15085
15093
|
(function(n) {
|
|
15086
15094
|
n.TrackPublished = "trackPublished", n.TrackSubscribed = "trackSubscribed", n.TrackSubscriptionFailed = "trackSubscriptionFailed", n.TrackUnpublished = "trackUnpublished", n.TrackUnsubscribed = "trackUnsubscribed", n.TrackMuted = "trackMuted", n.TrackUnmuted = "trackUnmuted", n.LocalTrackPublished = "localTrackPublished", n.LocalTrackUnpublished = "localTrackUnpublished", n.LocalTrackCpuConstrained = "localTrackCpuConstrained", n.LocalSenderCreated = "localSenderCreated", n.ParticipantMetadataChanged = "participantMetadataChanged", n.ParticipantNameChanged = "participantNameChanged", n.DataReceived = "dataReceived", n.SipDTMFReceived = "sipDTMFReceived", n.TranscriptionReceived = "transcriptionReceived", n.IsSpeakingChanged = "isSpeakingChanged", n.ConnectionQualityChanged = "connectionQualityChanged", n.TrackStreamStateChanged = "trackStreamStateChanged", n.TrackSubscriptionPermissionChanged = "trackSubscriptionPermissionChanged", n.TrackSubscriptionStatusChanged = "trackSubscriptionStatusChanged", n.TrackCpuConstrained = "trackCpuConstrained", n.MediaDevicesError = "mediaDevicesError", n.AudioStreamAcquired = "audioStreamAcquired", n.ParticipantPermissionsChanged = "participantPermissionsChanged", n.PCTrackAdded = "pcTrackAdded", n.AttributesChanged = "attributesChanged", n.LocalTrackSubscribed = "localTrackSubscribed", n.ChatMessage = "chatMessage", n.Active = "active";
|
|
@@ -16084,13 +16092,13 @@ class o_ extends Ai.EventEmitter {
|
|
|
16084
16092
|
});
|
|
16085
16093
|
}
|
|
16086
16094
|
setupEventListeners(e, t) {
|
|
16087
|
-
e.on(
|
|
16095
|
+
e.on(_e.TrackPublished, (r, o) => this.setParticipantCryptorEnabled(r.trackInfo.encryption !== un.NONE, o.identity)), e.on(_e.ConnectionStateChanged, (r) => {
|
|
16088
16096
|
r === wt.Connected && e.remoteParticipants.forEach((o) => {
|
|
16089
16097
|
o.trackPublications.forEach((a) => {
|
|
16090
16098
|
this.setParticipantCryptorEnabled(a.trackInfo.encryption !== un.NONE, o.identity);
|
|
16091
16099
|
});
|
|
16092
16100
|
});
|
|
16093
|
-
}).on(
|
|
16101
|
+
}).on(_e.TrackUnsubscribed, (r, o, a) => {
|
|
16094
16102
|
var l;
|
|
16095
16103
|
const u = {
|
|
16096
16104
|
kind: "removeTransform",
|
|
@@ -16100,9 +16108,9 @@ class o_ extends Ai.EventEmitter {
|
|
|
16100
16108
|
}
|
|
16101
16109
|
};
|
|
16102
16110
|
(l = this.worker) === null || l === void 0 || l.postMessage(u);
|
|
16103
|
-
}).on(
|
|
16111
|
+
}).on(_e.TrackSubscribed, (r, o, a) => {
|
|
16104
16112
|
this.setupE2EEReceiver(r, a.identity, o.trackInfo);
|
|
16105
|
-
}).on(
|
|
16113
|
+
}).on(_e.SignalConnected, () => {
|
|
16106
16114
|
if (!this.room)
|
|
16107
16115
|
throw new TypeError("expected room to be present on signal connect");
|
|
16108
16116
|
t.getKeys().forEach((r) => {
|
|
@@ -22576,9 +22584,9 @@ class cx extends j1 {
|
|
|
22576
22584
|
if (e.sender = yield this.engine.createSender(e, t, L), this.emit(Oe.LocalSenderCreated, e.sender, e), Mo(e) && (($ = t.degradationPreference) !== null && $ !== void 0 || (t.degradationPreference = H_(e)), e.setDegradationPreference(t.degradationPreference)), L)
|
|
22577
22585
|
if (Ls() && e.kind === ge.Kind.Audio) {
|
|
22578
22586
|
let fe;
|
|
22579
|
-
for (const
|
|
22580
|
-
if (
|
|
22581
|
-
fe =
|
|
22587
|
+
for (const Ie of this.engine.pcManager.publisher.getTransceivers())
|
|
22588
|
+
if (Ie.sender === e.sender) {
|
|
22589
|
+
fe = Ie;
|
|
22582
22590
|
break;
|
|
22583
22591
|
}
|
|
22584
22592
|
fe && this.engine.pcManager.publisher.setTrackCodecBitrate({
|
|
@@ -22599,9 +22607,9 @@ class cx extends j1 {
|
|
|
22599
22607
|
try {
|
|
22600
22608
|
G = yield this.engine.addTrack(U), $(G);
|
|
22601
22609
|
} catch (fe) {
|
|
22602
|
-
e.sender && (!((Y = this.engine.pcManager) === null || Y === void 0) && Y.publisher) && (this.engine.pcManager.publisher.removeTrack(e.sender), yield this.engine.negotiate().catch((
|
|
22610
|
+
e.sender && (!((Y = this.engine.pcManager) === null || Y === void 0) && Y.publisher) && (this.engine.pcManager.publisher.removeTrack(e.sender), yield this.engine.negotiate().catch((Ie) => {
|
|
22603
22611
|
this.log.error("failed to negotiate after removing track due to failed add track request", Object.assign(Object.assign(Object.assign({}, this.logContext), ht(e)), {
|
|
22604
|
-
error:
|
|
22612
|
+
error: Ie
|
|
22605
22613
|
}));
|
|
22606
22614
|
})), q(fe);
|
|
22607
22615
|
}
|
|
@@ -22638,12 +22646,12 @@ class cx extends j1 {
|
|
|
22638
22646
|
}
|
|
22639
22647
|
this.log.debug("finished recording preconnect buffer", Object.assign(Object.assign({}, this.logContext), ht(e))), e.stopPreConnectBuffer();
|
|
22640
22648
|
}
|
|
22641
|
-
}), $ && new Promise((fe,
|
|
22642
|
-
var We, oe,
|
|
22649
|
+
}), $ && new Promise((fe, Ie) => j(this, void 0, void 0, function* () {
|
|
22650
|
+
var We, oe, Pe, me, ce, Ce;
|
|
22643
22651
|
try {
|
|
22644
22652
|
this.log.debug("waiting for agent", Object.assign(Object.assign({}, this.logContext), ht(e)));
|
|
22645
22653
|
const Ve = setTimeout(() => {
|
|
22646
|
-
|
|
22654
|
+
Ie(new Error("agent not active within 10 seconds"));
|
|
22647
22655
|
}, 1e4), Ke = yield this.waitUntilActiveAgentPresent();
|
|
22648
22656
|
clearTimeout(Ve), this.log.debug("sending preconnect buffer", Object.assign(Object.assign({}, this.logContext), ht(e)));
|
|
22649
22657
|
const Xe = yield this.streamBytes({
|
|
@@ -22653,14 +22661,14 @@ class cx extends j1 {
|
|
|
22653
22661
|
destinationIdentities: [Ke.identity],
|
|
22654
22662
|
attributes: {
|
|
22655
22663
|
trackId: Q.trackSid,
|
|
22656
|
-
sampleRate: String((
|
|
22657
|
-
channels: String((
|
|
22664
|
+
sampleRate: String((ce = ee.sampleRate) !== null && ce !== void 0 ? ce : "48000"),
|
|
22665
|
+
channels: String((Ce = ee.channelCount) !== null && Ce !== void 0 ? Ce : "1")
|
|
22658
22666
|
}
|
|
22659
22667
|
});
|
|
22660
22668
|
try {
|
|
22661
22669
|
for (var de = !0, O = to($), te; te = yield O.next(), We = te.done, !We; de = !0) {
|
|
22662
|
-
|
|
22663
|
-
const Fe =
|
|
22670
|
+
me = te.value, de = !1;
|
|
22671
|
+
const Fe = me;
|
|
22664
22672
|
yield Xe.write(Fe);
|
|
22665
22673
|
}
|
|
22666
22674
|
} catch (Fe) {
|
|
@@ -22669,14 +22677,14 @@ class cx extends j1 {
|
|
|
22669
22677
|
};
|
|
22670
22678
|
} finally {
|
|
22671
22679
|
try {
|
|
22672
|
-
!de && !We && (
|
|
22680
|
+
!de && !We && (Pe = O.return) && (yield Pe.call(O));
|
|
22673
22681
|
} finally {
|
|
22674
22682
|
if (oe) throw oe.error;
|
|
22675
22683
|
}
|
|
22676
22684
|
}
|
|
22677
22685
|
yield Xe.close(), fe();
|
|
22678
22686
|
} catch (Ve) {
|
|
22679
|
-
|
|
22687
|
+
Ie(Ve);
|
|
22680
22688
|
}
|
|
22681
22689
|
})).then(() => {
|
|
22682
22690
|
this.log.debug("preconnect buffer sent successfully", Object.assign(Object.assign({}, this.logContext), ht(e)));
|
|
@@ -23535,7 +23543,7 @@ class $a extends Ai.EventEmitter {
|
|
|
23535
23543
|
this.state === wt.Reconnecting || this.isResuming || !((g = this.engine) === null || g === void 0) && g.pendingReconnect ? (this.log.info("Reconnection attempt replaced by new connection attempt", this.logContext), this.recreateEngine()) : this.maybeCreateEngine(), !((C = this.regionUrlProvider) === null || C === void 0) && C.isCloud() && this.engine.setRegionUrlProvider(this.regionUrlProvider), this.acquireAudioContext(), this.connOptions = Object.assign(Object.assign({}, om), f), this.connOptions.rtcConfig && (this.engine.rtcConfig = this.connOptions.rtcConfig), this.connOptions.peerConnectionTimeout && (this.engine.peerConnectionTimeout = this.connOptions.peerConnectionTimeout);
|
|
23536
23544
|
try {
|
|
23537
23545
|
const _ = yield this.connectSignal(l, u, this.engine, this.connOptions, this.options, p);
|
|
23538
|
-
this.applyJoinResponse(_), this.setupLocalParticipantEvents(), this.emit(
|
|
23546
|
+
this.applyJoinResponse(_), this.setupLocalParticipantEvents(), this.emit(_e.SignalConnected);
|
|
23539
23547
|
} catch (_) {
|
|
23540
23548
|
yield this.engine.close(), this.recreateEngine();
|
|
23541
23549
|
const T = new Ct("could not establish signal connection", mt.ServerUnreachable);
|
|
@@ -23550,7 +23558,7 @@ class $a extends Ai.EventEmitter {
|
|
|
23550
23558
|
} catch (_) {
|
|
23551
23559
|
throw yield this.engine.close(), this.recreateEngine(), _;
|
|
23552
23560
|
}
|
|
23553
|
-
dr() && this.options.disconnectOnPageLeave && (window.addEventListener("pagehide", this.onPageLeave), window.addEventListener("beforeunload", this.onPageLeave)), dr() && document.addEventListener("freeze", this.onPageLeave), this.setAndEmitConnectionState(wt.Connected), this.emit(
|
|
23561
|
+
dr() && this.options.disconnectOnPageLeave && (window.addEventListener("pagehide", this.onPageLeave), window.addEventListener("beforeunload", this.onPageLeave)), dr() && document.addEventListener("freeze", this.onPageLeave), this.setAndEmitConnectionState(wt.Connected), this.emit(_e.Connected), this.registerConnectionReconcile();
|
|
23554
23562
|
}), this.disconnect = function() {
|
|
23555
23563
|
for (var l = arguments.length, u = new Array(l), f = 0; f < l; f++)
|
|
23556
23564
|
u[f] = arguments[f];
|
|
@@ -23589,7 +23597,7 @@ class $a extends Ai.EventEmitter {
|
|
|
23589
23597
|
const C = new MediaStream([g]);
|
|
23590
23598
|
p.srcObject = C, document.addEventListener("visibilitychange", () => {
|
|
23591
23599
|
p && (p.srcObject = document.hidden ? null : C, document.hidden || (this.log.debug("page visible again, triggering startAudio to resume playback and update playback status", this.logContext), this.startAudio()));
|
|
23592
|
-
}), document.body.append(p), this.once(
|
|
23600
|
+
}), document.body.append(p), this.once(_e.Disconnected, () => {
|
|
23593
23601
|
p == null || p.remove(), p = null;
|
|
23594
23602
|
});
|
|
23595
23603
|
}
|
|
@@ -23625,7 +23633,7 @@ class $a extends Ai.EventEmitter {
|
|
|
23625
23633
|
this.clearConnectionReconcile(), this.isResuming = !1;
|
|
23626
23634
|
for (const l of this.remoteParticipants.values())
|
|
23627
23635
|
this.handleParticipantDisconnected(l.identity, l);
|
|
23628
|
-
this.setAndEmitConnectionState(wt.Reconnecting) && this.emit(
|
|
23636
|
+
this.setAndEmitConnectionState(wt.Reconnecting) && this.emit(_e.Reconnecting);
|
|
23629
23637
|
}, this.handleSignalRestarted = (l) => j(this, void 0, void 0, function* () {
|
|
23630
23638
|
this.log.debug("signal reconnected to server, region ".concat(l.serverRegion), Object.assign(Object.assign({}, this.logContext), {
|
|
23631
23639
|
region: l.serverRegion
|
|
@@ -23644,7 +23652,7 @@ class $a extends Ai.EventEmitter {
|
|
|
23644
23652
|
} catch {
|
|
23645
23653
|
return;
|
|
23646
23654
|
}
|
|
23647
|
-
this.setAndEmitConnectionState(wt.Connected), this.emit(
|
|
23655
|
+
this.setAndEmitConnectionState(wt.Connected), this.emit(_e.Reconnected), this.registerConnectionReconcile(), this.emitBufferedEvents();
|
|
23648
23656
|
}), this.handleParticipantUpdates = (l) => {
|
|
23649
23657
|
l.forEach((u) => {
|
|
23650
23658
|
var f;
|
|
@@ -23667,7 +23675,7 @@ class $a extends Ai.EventEmitter {
|
|
|
23667
23675
|
}
|
|
23668
23676
|
}), f[this.localParticipant.sid] || (this.localParticipant.audioLevel = 0, this.localParticipant.setIsSpeaking(!1)), this.remoteParticipants.forEach((p) => {
|
|
23669
23677
|
f[p.sid] || (p.audioLevel = 0, p.setIsSpeaking(!1));
|
|
23670
|
-
}), this.activeSpeakers = u, this.emitWhenConnected(
|
|
23678
|
+
}), this.activeSpeakers = u, this.emitWhenConnected(_e.ActiveSpeakersChanged, u);
|
|
23671
23679
|
}, this.handleSpeakersChanged = (l) => {
|
|
23672
23680
|
const u = /* @__PURE__ */ new Map();
|
|
23673
23681
|
this.activeSpeakers.forEach((p) => {
|
|
@@ -23678,7 +23686,7 @@ class $a extends Ai.EventEmitter {
|
|
|
23678
23686
|
p.sid === this.localParticipant.sid && (g = this.localParticipant), g && (g.audioLevel = p.level, g.setIsSpeaking(p.active), p.active ? u.set(p.sid, g) : u.delete(p.sid));
|
|
23679
23687
|
});
|
|
23680
23688
|
const f = Array.from(u.values());
|
|
23681
|
-
f.sort((p, g) => g.audioLevel - p.audioLevel), this.activeSpeakers = f, this.emitWhenConnected(
|
|
23689
|
+
f.sort((p, g) => g.audioLevel - p.audioLevel), this.activeSpeakers = f, this.emitWhenConnected(_e.ActiveSpeakersChanged, f);
|
|
23682
23690
|
}, this.handleStreamStateUpdate = (l) => {
|
|
23683
23691
|
l.streamStates.forEach((u) => {
|
|
23684
23692
|
const f = this.getRemoteParticipantBySid(u.participantSid);
|
|
@@ -23688,7 +23696,7 @@ class $a extends Ai.EventEmitter {
|
|
|
23688
23696
|
if (!p || !p.track)
|
|
23689
23697
|
return;
|
|
23690
23698
|
const g = ge.streamStateFromProto(u.state);
|
|
23691
|
-
p.track.setStreamState(g), g !== p.track.streamState && (f.emit(Oe.TrackStreamStateChanged, p, p.track.streamState), this.emitWhenConnected(
|
|
23699
|
+
p.track.setStreamState(g), g !== p.track.streamState && (f.emit(Oe.TrackStreamStateChanged, p, p.track.streamState), this.emitWhenConnected(_e.TrackStreamStateChanged, p, p.track.streamState, f));
|
|
23692
23700
|
});
|
|
23693
23701
|
}, this.handleSubscriptionPermissionUpdate = (l) => {
|
|
23694
23702
|
const u = this.getRemoteParticipantBySid(l.participantSid);
|
|
@@ -23721,35 +23729,35 @@ class $a extends Ai.EventEmitter {
|
|
|
23721
23729
|
this.handleIncomingRpcRequest(l.participantIdentity, p.id, p.method, p.payload, p.responseTimeoutMs, p.version);
|
|
23722
23730
|
}
|
|
23723
23731
|
}, this.handleUserPacket = (l, u, f, p) => {
|
|
23724
|
-
this.emit(
|
|
23732
|
+
this.emit(_e.DataReceived, u.payload, l, f, u.topic, p), l == null || l.emit(Oe.DataReceived, u.payload, f, p);
|
|
23725
23733
|
}, this.handleSipDtmf = (l, u) => {
|
|
23726
|
-
this.emit(
|
|
23734
|
+
this.emit(_e.SipDTMFReceived, u, l), l == null || l.emit(Oe.SipDTMFReceived, u);
|
|
23727
23735
|
}, this.handleTranscription = (l, u) => {
|
|
23728
23736
|
const f = u.transcribedParticipantIdentity === this.localParticipant.identity ? this.localParticipant : this.getParticipantByIdentity(u.transcribedParticipantIdentity), p = f == null ? void 0 : f.trackPublications.get(u.trackId), g = q2(u, this.transcriptionReceivedTimes);
|
|
23729
|
-
p == null || p.emit(Ee.TranscriptionReceived, g), f == null || f.emit(Oe.TranscriptionReceived, g, p), this.emit(
|
|
23737
|
+
p == null || p.emit(Ee.TranscriptionReceived, g), f == null || f.emit(Oe.TranscriptionReceived, g, p), this.emit(_e.TranscriptionReceived, g, f, p);
|
|
23730
23738
|
}, this.handleChatMessage = (l, u) => {
|
|
23731
23739
|
const f = G2(u);
|
|
23732
|
-
this.emit(
|
|
23740
|
+
this.emit(_e.ChatMessage, f, l);
|
|
23733
23741
|
}, this.handleMetrics = (l, u) => {
|
|
23734
|
-
this.emit(
|
|
23742
|
+
this.emit(_e.MetricsReceived, l, u);
|
|
23735
23743
|
}, this.handleDataStream = (l, u) => {
|
|
23736
23744
|
this.incomingDataStreamManager.handleDataStreamPacket(l, u);
|
|
23737
23745
|
}, this.bufferedSegments = /* @__PURE__ */ new Map(), this.handleAudioPlaybackStarted = () => {
|
|
23738
|
-
this.canPlaybackAudio || (this.audioEnabled = !0, this.emit(
|
|
23746
|
+
this.canPlaybackAudio || (this.audioEnabled = !0, this.emit(_e.AudioPlaybackStatusChanged, !0));
|
|
23739
23747
|
}, this.handleAudioPlaybackFailed = (l) => {
|
|
23740
23748
|
this.log.warn("could not playback audio", Object.assign(Object.assign({}, this.logContext), {
|
|
23741
23749
|
error: l
|
|
23742
|
-
})), this.canPlaybackAudio && (this.audioEnabled = !1, this.emit(
|
|
23750
|
+
})), this.canPlaybackAudio && (this.audioEnabled = !1, this.emit(_e.AudioPlaybackStatusChanged, !1));
|
|
23743
23751
|
}, this.handleVideoPlaybackStarted = () => {
|
|
23744
|
-
this.isVideoPlaybackBlocked && (this.isVideoPlaybackBlocked = !1, this.emit(
|
|
23752
|
+
this.isVideoPlaybackBlocked && (this.isVideoPlaybackBlocked = !1, this.emit(_e.VideoPlaybackStatusChanged, !0));
|
|
23745
23753
|
}, this.handleVideoPlaybackFailed = () => {
|
|
23746
|
-
this.isVideoPlaybackBlocked || (this.isVideoPlaybackBlocked = !0, this.emit(
|
|
23754
|
+
this.isVideoPlaybackBlocked || (this.isVideoPlaybackBlocked = !0, this.emit(_e.VideoPlaybackStatusChanged, !1));
|
|
23747
23755
|
}, this.handleDeviceChange = () => j(this, void 0, void 0, function* () {
|
|
23748
23756
|
var l;
|
|
23749
|
-
((l = fr()) === null || l === void 0 ? void 0 : l.os) !== "iOS" && (yield this.selectDefaultDevices()), this.emit(
|
|
23757
|
+
((l = fr()) === null || l === void 0 ? void 0 : l.os) !== "iOS" && (yield this.selectDefaultDevices()), this.emit(_e.MediaDevicesChanged);
|
|
23750
23758
|
}), this.handleRoomUpdate = (l) => {
|
|
23751
23759
|
const u = this.roomInfo;
|
|
23752
|
-
this.roomInfo = l, u && u.metadata !== l.metadata && this.emitWhenConnected(
|
|
23760
|
+
this.roomInfo = l, u && u.metadata !== l.metadata && this.emitWhenConnected(_e.RoomMetadataChanged, l.metadata), (u == null ? void 0 : u.activeRecording) !== l.activeRecording && this.emitWhenConnected(_e.RecordingStatusChanged, l.activeRecording);
|
|
23753
23761
|
}, this.handleConnectionQualityUpdate = (l) => {
|
|
23754
23762
|
l.updates.forEach((u) => {
|
|
23755
23763
|
if (u.participantSid === this.localParticipant.sid) {
|
|
@@ -23760,37 +23768,37 @@ class $a extends Ai.EventEmitter {
|
|
|
23760
23768
|
f && f.setConnectionQuality(u.quality);
|
|
23761
23769
|
});
|
|
23762
23770
|
}, this.onLocalParticipantMetadataChanged = (l) => {
|
|
23763
|
-
this.emit(
|
|
23771
|
+
this.emit(_e.ParticipantMetadataChanged, l, this.localParticipant);
|
|
23764
23772
|
}, this.onLocalParticipantNameChanged = (l) => {
|
|
23765
|
-
this.emit(
|
|
23773
|
+
this.emit(_e.ParticipantNameChanged, l, this.localParticipant);
|
|
23766
23774
|
}, this.onLocalAttributesChanged = (l) => {
|
|
23767
|
-
this.emit(
|
|
23775
|
+
this.emit(_e.ParticipantAttributesChanged, l, this.localParticipant);
|
|
23768
23776
|
}, this.onLocalTrackMuted = (l) => {
|
|
23769
|
-
this.emit(
|
|
23777
|
+
this.emit(_e.TrackMuted, l, this.localParticipant);
|
|
23770
23778
|
}, this.onLocalTrackUnmuted = (l) => {
|
|
23771
|
-
this.emit(
|
|
23779
|
+
this.emit(_e.TrackUnmuted, l, this.localParticipant);
|
|
23772
23780
|
}, this.onTrackProcessorUpdate = (l) => {
|
|
23773
23781
|
var u;
|
|
23774
23782
|
(u = l == null ? void 0 : l.onPublish) === null || u === void 0 || u.call(l, this);
|
|
23775
23783
|
}, this.onLocalTrackPublished = (l) => j(this, void 0, void 0, function* () {
|
|
23776
23784
|
var u, f, p, g, C, _;
|
|
23777
|
-
(u = l.track) === null || u === void 0 || u.on(Ee.TrackProcessorUpdate, this.onTrackProcessorUpdate), (f = l.track) === null || f === void 0 || f.on(Ee.Restarted, this.onLocalTrackRestarted), (C = (g = (p = l.track) === null || p === void 0 ? void 0 : p.getProcessor()) === null || g === void 0 ? void 0 : g.onPublish) === null || C === void 0 || C.call(g, this), this.emit(
|
|
23785
|
+
(u = l.track) === null || u === void 0 || u.on(Ee.TrackProcessorUpdate, this.onTrackProcessorUpdate), (f = l.track) === null || f === void 0 || f.on(Ee.Restarted, this.onLocalTrackRestarted), (C = (g = (p = l.track) === null || p === void 0 ? void 0 : p.getProcessor()) === null || g === void 0 ? void 0 : g.onPublish) === null || C === void 0 || C.call(g, this), this.emit(_e.LocalTrackPublished, l, this.localParticipant), Yi(l.track) && (yield l.track.checkForSilence()) && this.emit(_e.LocalAudioSilenceDetected, l);
|
|
23778
23786
|
const T = yield (_ = l.track) === null || _ === void 0 ? void 0 : _.getDeviceId(!1), N = hp(l.source);
|
|
23779
|
-
N && T && T !== this.localParticipant.activeDeviceMap.get(N) && (this.localParticipant.activeDeviceMap.set(N, T), this.emit(
|
|
23787
|
+
N && T && T !== this.localParticipant.activeDeviceMap.get(N) && (this.localParticipant.activeDeviceMap.set(N, T), this.emit(_e.ActiveDeviceChanged, N, T));
|
|
23780
23788
|
}), this.onLocalTrackUnpublished = (l) => {
|
|
23781
23789
|
var u, f;
|
|
23782
|
-
(u = l.track) === null || u === void 0 || u.off(Ee.TrackProcessorUpdate, this.onTrackProcessorUpdate), (f = l.track) === null || f === void 0 || f.off(Ee.Restarted, this.onLocalTrackRestarted), this.emit(
|
|
23790
|
+
(u = l.track) === null || u === void 0 || u.off(Ee.TrackProcessorUpdate, this.onTrackProcessorUpdate), (f = l.track) === null || f === void 0 || f.off(Ee.Restarted, this.onLocalTrackRestarted), this.emit(_e.LocalTrackUnpublished, l, this.localParticipant);
|
|
23783
23791
|
}, this.onLocalTrackRestarted = (l) => j(this, void 0, void 0, function* () {
|
|
23784
23792
|
const u = yield l.getDeviceId(!1), f = hp(l.source);
|
|
23785
|
-
f && u && u !== this.localParticipant.activeDeviceMap.get(f) && (this.log.debug("local track restarted, setting ".concat(f, " ").concat(u, " active"), this.logContext), this.localParticipant.activeDeviceMap.set(f, u), this.emit(
|
|
23793
|
+
f && u && u !== this.localParticipant.activeDeviceMap.get(f) && (this.log.debug("local track restarted, setting ".concat(f, " ").concat(u, " active"), this.logContext), this.localParticipant.activeDeviceMap.set(f, u), this.emit(_e.ActiveDeviceChanged, f, u));
|
|
23786
23794
|
}), this.onLocalConnectionQualityChanged = (l) => {
|
|
23787
|
-
this.emit(
|
|
23795
|
+
this.emit(_e.ConnectionQualityChanged, l, this.localParticipant);
|
|
23788
23796
|
}, this.onMediaDevicesError = (l, u) => {
|
|
23789
|
-
this.emit(
|
|
23797
|
+
this.emit(_e.MediaDevicesError, l, u);
|
|
23790
23798
|
}, this.onLocalParticipantPermissionsChanged = (l) => {
|
|
23791
|
-
this.emit(
|
|
23799
|
+
this.emit(_e.ParticipantPermissionsChanged, l, this.localParticipant);
|
|
23792
23800
|
}, this.onLocalChatMessageSent = (l) => {
|
|
23793
|
-
this.emit(
|
|
23801
|
+
this.emit(_e.ChatMessage, l, this.localParticipant);
|
|
23794
23802
|
}, this.setMaxListeners(100), this.remoteParticipants = /* @__PURE__ */ new Map(), this.sidToIdentity = /* @__PURE__ */ new Map(), this.options = Object.assign(Object.assign({}, __), e), this.log = io((r = this.options.loggerName) !== null && r !== void 0 ? r : ui.Room), this.transcriptionReceivedTimes = /* @__PURE__ */ new Map(), this.options.audioCaptureDefaults = Object.assign(Object.assign({}, E1), e == null ? void 0 : e.audioCaptureDefaults), this.options.videoCaptureDefaults = Object.assign(Object.assign({}, P1), e == null ? void 0 : e.videoCaptureDefaults), this.options.publishDefaults = Object.assign(Object.assign({}, T_), e == null ? void 0 : e.publishDefaults), this.maybeCreateEngine(), this.incomingDataStreamManager = new X_(), this.outgoingDataStreamManager = new tx(this.engine, this.log), this.disconnectLock = new Qn(), this.localParticipant = new cx("", "", this.engine, this.options, this.rpcHandlers, this.outgoingDataStreamManager), (this.options.e2ee || this.options.encryption) && this.setupE2EE(), this.engine.e2eeManager = this.e2eeManager, this.options.videoCaptureDefaults.deviceId && this.localParticipant.activeDeviceMap.set("videoinput", Fo(this.options.videoCaptureDefaults.deviceId)), this.options.audioCaptureDefaults.deviceId && this.localParticipant.activeDeviceMap.set("audioinput", Fo(this.options.audioCaptureDefaults.deviceId)), !((o = this.options.audioOutput) === null || o === void 0) && o.deviceId && this.switchActiveDevice("audiooutput", Fo(this.options.audioOutput.deviceId)).catch((l) => this.log.warn("Could not set audio output: ".concat(l.message), this.logContext)), dr()) {
|
|
23795
23803
|
const l = new AbortController();
|
|
23796
23804
|
(a = navigator.mediaDevices) === null || a === void 0 || a.addEventListener("devicechange", this.handleDeviceChange, {
|
|
@@ -23866,8 +23874,8 @@ class $a extends Ai.EventEmitter {
|
|
|
23866
23874
|
var e;
|
|
23867
23875
|
const t = !!this.options.encryption, r = this.options.encryption || this.options.e2ee;
|
|
23868
23876
|
r && ("e2eeManager" in r ? (this.e2eeManager = r.e2eeManager, this.e2eeManager.isDataChannelEncryptionEnabled = t) : this.e2eeManager = new o_(r, t), this.e2eeManager.on(Do.ParticipantEncryptionStatusChanged, (o, a) => {
|
|
23869
|
-
J2(a) && (this.isE2EEEnabled = o), this.emit(
|
|
23870
|
-
}), this.e2eeManager.on(Do.EncryptionError, (o) => this.emit(
|
|
23877
|
+
J2(a) && (this.isE2EEEnabled = o), this.emit(_e.ParticipantEncryptionStatusChanged, o, a);
|
|
23878
|
+
}), this.e2eeManager.on(Do.EncryptionError, (o) => this.emit(_e.EncryptionError, o)), (e = this.e2eeManager) === null || e === void 0 || e.setup(this));
|
|
23871
23879
|
}
|
|
23872
23880
|
get logContext() {
|
|
23873
23881
|
var e;
|
|
@@ -23895,7 +23903,7 @@ class $a extends Ai.EventEmitter {
|
|
|
23895
23903
|
const r = (o) => {
|
|
23896
23904
|
o.sid !== "" && (this.engine.off(Ae.RoomUpdate, r), e(o.sid));
|
|
23897
23905
|
};
|
|
23898
|
-
this.engine.on(Ae.RoomUpdate, r), this.once(
|
|
23906
|
+
this.engine.on(Ae.RoomUpdate, r), this.once(_e.Disconnected, () => {
|
|
23899
23907
|
this.engine.off(Ae.RoomUpdate, r), t("Room disconnected before room server id was available");
|
|
23900
23908
|
});
|
|
23901
23909
|
});
|
|
@@ -23925,15 +23933,15 @@ class $a extends Ai.EventEmitter {
|
|
|
23925
23933
|
}).on(Ae.Disconnected, (e) => {
|
|
23926
23934
|
this.handleDisconnect(this.options.stopLocalTrackOnUnpublish, e);
|
|
23927
23935
|
}).on(Ae.ActiveSpeakersUpdate, this.handleActiveSpeakersUpdate).on(Ae.DataPacketReceived, this.handleDataPacket).on(Ae.Resuming, () => {
|
|
23928
|
-
this.clearConnectionReconcile(), this.isResuming = !0, this.log.info("Resuming signal connection", this.logContext), this.setAndEmitConnectionState(wt.SignalReconnecting) && this.emit(
|
|
23936
|
+
this.clearConnectionReconcile(), this.isResuming = !0, this.log.info("Resuming signal connection", this.logContext), this.setAndEmitConnectionState(wt.SignalReconnecting) && this.emit(_e.SignalReconnecting);
|
|
23929
23937
|
}).on(Ae.Resumed, () => {
|
|
23930
|
-
this.registerConnectionReconcile(), this.isResuming = !1, this.log.info("Resumed signal connection", this.logContext), this.updateSubscriptions(), this.emitBufferedEvents(), this.setAndEmitConnectionState(wt.Connected) && this.emit(
|
|
23938
|
+
this.registerConnectionReconcile(), this.isResuming = !1, this.log.info("Resumed signal connection", this.logContext), this.updateSubscriptions(), this.emitBufferedEvents(), this.setAndEmitConnectionState(wt.Connected) && this.emit(_e.Reconnected);
|
|
23931
23939
|
}).on(Ae.SignalResumed, () => {
|
|
23932
23940
|
this.bufferedEvents = [], (this.state === wt.Reconnecting || this.isResuming) && this.sendSyncState();
|
|
23933
23941
|
}).on(Ae.Restarting, this.handleRestarting).on(Ae.SignalRestarted, this.handleSignalRestarted).on(Ae.Offline, () => {
|
|
23934
|
-
this.setAndEmitConnectionState(wt.Reconnecting) && this.emit(
|
|
23942
|
+
this.setAndEmitConnectionState(wt.Reconnecting) && this.emit(_e.Reconnecting);
|
|
23935
23943
|
}).on(Ae.DCBufferStatusChanged, (e, t) => {
|
|
23936
|
-
this.emit(
|
|
23944
|
+
this.emit(_e.DCBufferStatusChanged, e, t);
|
|
23937
23945
|
}).on(Ae.LocalTrackSubscribed, (e) => {
|
|
23938
23946
|
const t = this.localParticipant.getTrackPublications().find((r) => {
|
|
23939
23947
|
let {
|
|
@@ -23945,11 +23953,11 @@ class $a extends Ai.EventEmitter {
|
|
|
23945
23953
|
this.log.warn("could not find local track subscription for subscribed event", this.logContext);
|
|
23946
23954
|
return;
|
|
23947
23955
|
}
|
|
23948
|
-
this.localParticipant.emit(Oe.LocalTrackSubscribed, t), this.emitWhenConnected(
|
|
23956
|
+
this.localParticipant.emit(Oe.LocalTrackSubscribed, t), this.emitWhenConnected(_e.LocalTrackSubscribed, t, this.localParticipant);
|
|
23949
23957
|
}).on(Ae.RoomMoved, (e) => {
|
|
23950
23958
|
this.log.debug("room moved", e), e.room && this.handleRoomUpdate(e.room), this.remoteParticipants.forEach((t, r) => {
|
|
23951
23959
|
this.handleParticipantDisconnected(r, t);
|
|
23952
|
-
}), this.emit(
|
|
23960
|
+
}), this.emit(_e.Moved, e.room.name), e.participant ? this.handleParticipantUpdates([e.participant, ...e.otherParticipants]) : this.handleParticipantUpdates(e.otherParticipants);
|
|
23953
23961
|
}), this.localParticipant && this.localParticipant.setupEngine(this.engine), this.e2eeManager && this.e2eeManager.setupEngine(this.engine), this.outgoingDataStreamManager && this.outgoingDataStreamManager.setupEngine(this.engine));
|
|
23954
23962
|
}
|
|
23955
23963
|
/**
|
|
@@ -24196,7 +24204,7 @@ class $a extends Ai.EventEmitter {
|
|
|
24196
24204
|
throw a.options.audioOutput.deviceId = z, ee;
|
|
24197
24205
|
}
|
|
24198
24206
|
}
|
|
24199
|
-
return A && (a.localParticipant.activeDeviceMap.set(r, o), a.emit(
|
|
24207
|
+
return A && (a.localParticipant.activeDeviceMap.set(r, o), a.emit(_e.ActiveDeviceChanged, r, o)), N;
|
|
24200
24208
|
}();
|
|
24201
24209
|
});
|
|
24202
24210
|
}
|
|
@@ -24216,9 +24224,9 @@ class $a extends Ai.EventEmitter {
|
|
|
24216
24224
|
tracksInStream: t.getTracks().map((T) => T.id)
|
|
24217
24225
|
}), this.onTrackAdded(e, t, r), _();
|
|
24218
24226
|
}, _ = () => {
|
|
24219
|
-
this.off(
|
|
24227
|
+
this.off(_e.Reconnected, C), this.off(_e.Connected, C), this.off(_e.Disconnected, _);
|
|
24220
24228
|
};
|
|
24221
|
-
this.once(
|
|
24229
|
+
this.once(_e.Reconnected, C), this.once(_e.Connected, C), this.once(_e.Disconnected, _);
|
|
24222
24230
|
return;
|
|
24223
24231
|
}
|
|
24224
24232
|
if (this.state === wt.Disconnected) {
|
|
@@ -24256,7 +24264,7 @@ class $a extends Ai.EventEmitter {
|
|
|
24256
24264
|
let p;
|
|
24257
24265
|
this.options.adaptiveStream && (typeof this.options.adaptiveStream == "object" ? p = this.options.adaptiveStream : p = {});
|
|
24258
24266
|
const g = f.addSubscribedMediaTrack(e, u, t, r, p);
|
|
24259
|
-
g != null && g.isEncrypted && !this.e2eeManager && this.emit(
|
|
24267
|
+
g != null && g.isEncrypted && !this.e2eeManager && this.emit(_e.EncryptionError, new Error("Encrypted ".concat(g.source, " track received from participant ").concat(f.sid, ", but room does not have encryption enabled!")));
|
|
24260
24268
|
}
|
|
24261
24269
|
handleDisconnect() {
|
|
24262
24270
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
@@ -24273,7 +24281,7 @@ class $a extends Ai.EventEmitter {
|
|
|
24273
24281
|
o.track && this.localParticipant.unpublishTrack(o.track, e), e ? ((a = o.track) === null || a === void 0 || a.detach(), (l = o.track) === null || l === void 0 || l.stop()) : (u = o.track) === null || u === void 0 || u.stopMonitor();
|
|
24274
24282
|
}), this.localParticipant.off(Oe.ParticipantMetadataChanged, this.onLocalParticipantMetadataChanged).off(Oe.ParticipantNameChanged, this.onLocalParticipantNameChanged).off(Oe.AttributesChanged, this.onLocalAttributesChanged).off(Oe.TrackMuted, this.onLocalTrackMuted).off(Oe.TrackUnmuted, this.onLocalTrackUnmuted).off(Oe.LocalTrackPublished, this.onLocalTrackPublished).off(Oe.LocalTrackUnpublished, this.onLocalTrackUnpublished).off(Oe.ConnectionQualityChanged, this.onLocalConnectionQualityChanged).off(Oe.MediaDevicesError, this.onMediaDevicesError).off(Oe.AudioStreamAcquired, this.startAudio).off(Oe.ChatMessage, this.onLocalChatMessageSent).off(Oe.ParticipantPermissionsChanged, this.onLocalParticipantPermissionsChanged), this.localParticipant.trackPublications.clear(), this.localParticipant.videoTrackPublications.clear(), this.localParticipant.audioTrackPublications.clear(), this.remoteParticipants.clear(), this.sidToIdentity.clear(), this.activeSpeakers = [], this.audioContext && typeof this.options.webAudioMix == "boolean" && (this.audioContext.close(), this.audioContext = void 0), dr() && (window.removeEventListener("beforeunload", this.onPageLeave), window.removeEventListener("pagehide", this.onPageLeave), window.removeEventListener("freeze", this.onPageLeave), (r = navigator.mediaDevices) === null || r === void 0 || r.removeEventListener("devicechange", this.handleDeviceChange));
|
|
24275
24283
|
} finally {
|
|
24276
|
-
this.setAndEmitConnectionState(wt.Disconnected), this.emit(
|
|
24284
|
+
this.setAndEmitConnectionState(wt.Disconnected), this.emit(_e.Disconnected, t);
|
|
24277
24285
|
}
|
|
24278
24286
|
}
|
|
24279
24287
|
}
|
|
@@ -24281,7 +24289,7 @@ class $a extends Ai.EventEmitter {
|
|
|
24281
24289
|
var r;
|
|
24282
24290
|
this.remoteParticipants.delete(e), t && (this.incomingDataStreamManager.validateParticipantHasNoActiveDataStreams(e), t.trackPublications.forEach((o) => {
|
|
24283
24291
|
t.unpublishTrack(o.trackSid, !0);
|
|
24284
|
-
}), this.emit(
|
|
24292
|
+
}), this.emit(_e.ParticipantDisconnected, t), t.setDisconnected(), (r = this.localParticipant) === null || r === void 0 || r.handleParticipantDisconnected(t.identity));
|
|
24285
24293
|
}
|
|
24286
24294
|
handleIncomingRpcRequest(e, t, r, o, a, l) {
|
|
24287
24295
|
return j(this, void 0, void 0, function* () {
|
|
@@ -24319,7 +24327,7 @@ class $a extends Ai.EventEmitter {
|
|
|
24319
24327
|
if ((l == null ? void 0 : l.name) === "Chrome" && l.os !== "iOS")
|
|
24320
24328
|
for (let f of a) {
|
|
24321
24329
|
const p = o.find((g) => g.deviceId === f.deviceId);
|
|
24322
|
-
p && p.label !== "" && p.kind === f.kind && p.label !== f.label && this.getActiveDevice(f.kind) === "default" && this.emit(
|
|
24330
|
+
p && p.label !== "" && p.kind === f.kind && p.label !== f.label && this.getActiveDevice(f.kind) === "default" && this.emit(_e.ActiveDeviceChanged, f.kind, f.deviceId);
|
|
24323
24331
|
}
|
|
24324
24332
|
const u = ["audiooutput", "audioinput", "videoinput"];
|
|
24325
24333
|
for (let f of u) {
|
|
@@ -24348,7 +24356,7 @@ class $a extends Ai.EventEmitter {
|
|
|
24348
24356
|
}));
|
|
24349
24357
|
}
|
|
24350
24358
|
const r = ((t = this.audioContext) === null || t === void 0 ? void 0 : t.state) === "running";
|
|
24351
|
-
r !== this.canPlaybackAudio && (this.audioEnabled = r, this.emit(
|
|
24359
|
+
r !== this.canPlaybackAudio && (this.audioEnabled = r, this.emit(_e.AudioPlaybackStatusChanged, r));
|
|
24352
24360
|
});
|
|
24353
24361
|
}
|
|
24354
24362
|
createParticipant(e, t) {
|
|
@@ -24368,36 +24376,36 @@ class $a extends Ai.EventEmitter {
|
|
|
24368
24376
|
return t && o.updateInfo(t) && this.sidToIdentity.set(t.sid, t.identity), o;
|
|
24369
24377
|
}
|
|
24370
24378
|
const r = this.createParticipant(e, t);
|
|
24371
|
-
return this.remoteParticipants.set(e, r), this.sidToIdentity.set(t.sid, t.identity), this.emitWhenConnected(
|
|
24372
|
-
this.emitWhenConnected(
|
|
24379
|
+
return this.remoteParticipants.set(e, r), this.sidToIdentity.set(t.sid, t.identity), this.emitWhenConnected(_e.ParticipantConnected, r), r.on(Oe.TrackPublished, (o) => {
|
|
24380
|
+
this.emitWhenConnected(_e.TrackPublished, o, r);
|
|
24373
24381
|
}).on(Oe.TrackSubscribed, (o, a) => {
|
|
24374
|
-
o.kind === ge.Kind.Audio ? (o.on(Ee.AudioPlaybackStarted, this.handleAudioPlaybackStarted), o.on(Ee.AudioPlaybackFailed, this.handleAudioPlaybackFailed)) : o.kind === ge.Kind.Video && (o.on(Ee.VideoPlaybackFailed, this.handleVideoPlaybackFailed), o.on(Ee.VideoPlaybackStarted, this.handleVideoPlaybackStarted)), this.emit(
|
|
24382
|
+
o.kind === ge.Kind.Audio ? (o.on(Ee.AudioPlaybackStarted, this.handleAudioPlaybackStarted), o.on(Ee.AudioPlaybackFailed, this.handleAudioPlaybackFailed)) : o.kind === ge.Kind.Video && (o.on(Ee.VideoPlaybackFailed, this.handleVideoPlaybackFailed), o.on(Ee.VideoPlaybackStarted, this.handleVideoPlaybackStarted)), this.emit(_e.TrackSubscribed, o, a, r);
|
|
24375
24383
|
}).on(Oe.TrackUnpublished, (o) => {
|
|
24376
|
-
this.emit(
|
|
24384
|
+
this.emit(_e.TrackUnpublished, o, r);
|
|
24377
24385
|
}).on(Oe.TrackUnsubscribed, (o, a) => {
|
|
24378
|
-
this.emit(
|
|
24386
|
+
this.emit(_e.TrackUnsubscribed, o, a, r);
|
|
24379
24387
|
}).on(Oe.TrackMuted, (o) => {
|
|
24380
|
-
this.emitWhenConnected(
|
|
24388
|
+
this.emitWhenConnected(_e.TrackMuted, o, r);
|
|
24381
24389
|
}).on(Oe.TrackUnmuted, (o) => {
|
|
24382
|
-
this.emitWhenConnected(
|
|
24390
|
+
this.emitWhenConnected(_e.TrackUnmuted, o, r);
|
|
24383
24391
|
}).on(Oe.ParticipantMetadataChanged, (o) => {
|
|
24384
|
-
this.emitWhenConnected(
|
|
24392
|
+
this.emitWhenConnected(_e.ParticipantMetadataChanged, o, r);
|
|
24385
24393
|
}).on(Oe.ParticipantNameChanged, (o) => {
|
|
24386
|
-
this.emitWhenConnected(
|
|
24394
|
+
this.emitWhenConnected(_e.ParticipantNameChanged, o, r);
|
|
24387
24395
|
}).on(Oe.AttributesChanged, (o) => {
|
|
24388
|
-
this.emitWhenConnected(
|
|
24396
|
+
this.emitWhenConnected(_e.ParticipantAttributesChanged, o, r);
|
|
24389
24397
|
}).on(Oe.ConnectionQualityChanged, (o) => {
|
|
24390
|
-
this.emitWhenConnected(
|
|
24398
|
+
this.emitWhenConnected(_e.ConnectionQualityChanged, o, r);
|
|
24391
24399
|
}).on(Oe.ParticipantPermissionsChanged, (o) => {
|
|
24392
|
-
this.emitWhenConnected(
|
|
24400
|
+
this.emitWhenConnected(_e.ParticipantPermissionsChanged, o, r);
|
|
24393
24401
|
}).on(Oe.TrackSubscriptionStatusChanged, (o, a) => {
|
|
24394
|
-
this.emitWhenConnected(
|
|
24402
|
+
this.emitWhenConnected(_e.TrackSubscriptionStatusChanged, o, a, r);
|
|
24395
24403
|
}).on(Oe.TrackSubscriptionFailed, (o, a) => {
|
|
24396
|
-
this.emit(
|
|
24404
|
+
this.emit(_e.TrackSubscriptionFailed, o, r, a);
|
|
24397
24405
|
}).on(Oe.TrackSubscriptionPermissionChanged, (o, a) => {
|
|
24398
|
-
this.emitWhenConnected(
|
|
24406
|
+
this.emitWhenConnected(_e.TrackSubscriptionPermissionChanged, o, a, r);
|
|
24399
24407
|
}).on(Oe.Active, () => {
|
|
24400
|
-
this.emitWhenConnected(
|
|
24408
|
+
this.emitWhenConnected(_e.ParticipantActive, r), r.kind === cc.AGENT && this.localParticipant.setActiveAgent(r);
|
|
24401
24409
|
}), t && r.updateInfo(t), r;
|
|
24402
24410
|
}
|
|
24403
24411
|
sendSyncState() {
|
|
@@ -24438,7 +24446,7 @@ class $a extends Ai.EventEmitter {
|
|
|
24438
24446
|
this.connectionReconcileInterval && En.clearInterval(this.connectionReconcileInterval);
|
|
24439
24447
|
}
|
|
24440
24448
|
setAndEmitConnectionState(e) {
|
|
24441
|
-
return e === this.state ? !1 : (this.state = e, this.emit(
|
|
24449
|
+
return e === this.state ? !1 : (this.state = e, this.emit(_e.ConnectionStateChanged, this.state), !0);
|
|
24442
24450
|
}
|
|
24443
24451
|
emitBufferedEvents() {
|
|
24444
24452
|
this.bufferedEvents.forEach((e) => {
|
|
@@ -24488,7 +24496,7 @@ class $a extends Ai.EventEmitter {
|
|
|
24488
24496
|
}), this.localParticipant.updateInfo(new Os({
|
|
24489
24497
|
identity: "simulated-local",
|
|
24490
24498
|
name: "local-name"
|
|
24491
|
-
})), this.setupLocalParticipantEvents(), this.emit(
|
|
24499
|
+
})), this.setupLocalParticipantEvents(), this.emit(_e.SignalConnected), this.emit(_e.Connected), this.setAndEmitConnectionState(wt.Connected), o.video) {
|
|
24492
24500
|
const l = new yp(ge.Kind.Video, new Aa({
|
|
24493
24501
|
source: nn.CAMERA,
|
|
24494
24502
|
sid: Math.floor(Math.random() * 1e4).toString(),
|
|
@@ -24554,9 +24562,9 @@ class $a extends Ai.EventEmitter {
|
|
|
24554
24562
|
emit(e) {
|
|
24555
24563
|
for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
|
|
24556
24564
|
r[o - 1] = arguments[o];
|
|
24557
|
-
if (e !==
|
|
24565
|
+
if (e !== _e.ActiveSpeakersChanged && e !== _e.TranscriptionReceived) {
|
|
24558
24566
|
const a = F1(r).filter((l) => l !== void 0);
|
|
24559
|
-
(e ===
|
|
24567
|
+
(e === _e.TrackSubscribed || e === _e.TrackUnsubscribed) && this.log.trace("subscribe trace: ".concat(e), Object.assign(Object.assign({}, this.logContext), {
|
|
24560
24568
|
event: e,
|
|
24561
24569
|
args: a
|
|
24562
24570
|
})), this.log.debug("room event ".concat(e), Object.assign(Object.assign({}, this.logContext), {
|
|
@@ -24617,9 +24625,9 @@ class zo extends Ai.EventEmitter {
|
|
|
24617
24625
|
switchProtocol(e) {
|
|
24618
24626
|
return j(this, void 0, void 0, function* () {
|
|
24619
24627
|
let t = !1, r = !1;
|
|
24620
|
-
if (this.room.on(
|
|
24628
|
+
if (this.room.on(_e.Reconnecting, () => {
|
|
24621
24629
|
t = !0;
|
|
24622
|
-
}), this.room.once(
|
|
24630
|
+
}), this.room.once(_e.Reconnected, () => {
|
|
24623
24631
|
r = !0;
|
|
24624
24632
|
}), this.room.simulateScenario("force-".concat(e)), yield new Promise((a) => setTimeout(a, 1e3)), !t)
|
|
24625
24633
|
return;
|
|
@@ -24860,7 +24868,7 @@ class gx extends zo {
|
|
|
24860
24868
|
}), u = () => {
|
|
24861
24869
|
r = !0;
|
|
24862
24870
|
};
|
|
24863
|
-
t.on(
|
|
24871
|
+
t.on(_e.SignalReconnecting, u).on(_e.Reconnecting, u).on(_e.Reconnected, () => {
|
|
24864
24872
|
o = !0, a(!0);
|
|
24865
24873
|
}), (e = t.engine.client.ws) === null || e === void 0 || e.close();
|
|
24866
24874
|
const f = t.engine.client.onClose;
|
|
@@ -24904,7 +24912,7 @@ class yx extends zo {
|
|
|
24904
24912
|
perform() {
|
|
24905
24913
|
return j(this, void 0, void 0, function* () {
|
|
24906
24914
|
let e = !1, t = !1;
|
|
24907
|
-
this.room.on(
|
|
24915
|
+
this.room.on(_e.SignalConnected, () => {
|
|
24908
24916
|
var r;
|
|
24909
24917
|
const o = this.room.engine.client.onTrickle;
|
|
24910
24918
|
this.room.engine.client.onTrickle = (a, l) => {
|
|
@@ -25241,19 +25249,19 @@ const jx = (n) => {
|
|
|
25241
25249
|
const Q = new $a();
|
|
25242
25250
|
_.current = Q, N.current = await navigator.mediaDevices.getUserMedia({
|
|
25243
25251
|
audio: !0
|
|
25244
|
-
}), Q.on(
|
|
25252
|
+
}), Q.on(_e.TrackSubscribed, G), Q.on(_e.ActiveSpeakersChanged, F), Q.localParticipant.on(
|
|
25245
25253
|
Oe.IsSpeakingChanged,
|
|
25246
25254
|
se
|
|
25247
|
-
), Q.on(
|
|
25255
|
+
), Q.on(_e.MediaDevicesError, () => {
|
|
25248
25256
|
console.info("media devices error");
|
|
25249
|
-
}), Q.on(
|
|
25257
|
+
}), Q.on(_e.Disconnected, () => {
|
|
25250
25258
|
a("terminated"), u(!1), p(!1), z();
|
|
25251
25259
|
}), n.setRequestOverride(($) => {
|
|
25252
25260
|
const Y = new TextEncoder().encode(JSON.stringify($.request));
|
|
25253
25261
|
Q.localParticipant.publishData(Y).catch((fe) => {
|
|
25254
25262
|
console.error("Failed to publish data to LiveKit:", fe);
|
|
25255
25263
|
});
|
|
25256
|
-
}), Q.on(
|
|
25264
|
+
}), Q.on(_e.DataReceived, ($, q) => {
|
|
25257
25265
|
C((Y) => [
|
|
25258
25266
|
...Y,
|
|
25259
25267
|
{
|
|
@@ -27540,12 +27548,12 @@ const ny = 8, zE = ({
|
|
|
27540
27548
|
}, F = t != null && o, G = () => {
|
|
27541
27549
|
g("Something went wrong. Please try again.");
|
|
27542
27550
|
}, se = (Q) => {
|
|
27543
|
-
var
|
|
27551
|
+
var Ie, We;
|
|
27544
27552
|
if (t == null) {
|
|
27545
27553
|
G();
|
|
27546
27554
|
return;
|
|
27547
27555
|
}
|
|
27548
|
-
const $ = (We = (
|
|
27556
|
+
const $ = (We = (Ie = Q.target) == null ? void 0 : Ie.files) == null ? void 0 : We[0];
|
|
27549
27557
|
if ($ == null) {
|
|
27550
27558
|
G();
|
|
27551
27559
|
return;
|
|
@@ -27795,48 +27803,68 @@ const ny = 8, zE = ({
|
|
|
27795
27803
|
),
|
|
27796
27804
|
children: n
|
|
27797
27805
|
}
|
|
27798
|
-
), GE = ({
|
|
27799
|
-
|
|
27806
|
+
), GE = ({
|
|
27807
|
+
handler: n,
|
|
27808
|
+
context: e,
|
|
27809
|
+
onClose: t,
|
|
27810
|
+
modalityComponents: r,
|
|
27811
|
+
renderCollapse: o,
|
|
27812
|
+
brandIcon: a
|
|
27813
|
+
}) => {
|
|
27814
|
+
const [l, u] = be.useState(!0), [f, p] = be.useState(!0), g = () => {
|
|
27800
27815
|
t(new Event("close"));
|
|
27801
27816
|
}, {
|
|
27802
|
-
roomState:
|
|
27803
|
-
isUserSpeaking:
|
|
27804
|
-
isApplicationSpeaking:
|
|
27805
|
-
retry:
|
|
27806
|
-
modalities:
|
|
27817
|
+
roomState: C,
|
|
27818
|
+
isUserSpeaking: _,
|
|
27819
|
+
isApplicationSpeaking: T,
|
|
27820
|
+
retry: N,
|
|
27821
|
+
modalities: A
|
|
27807
27822
|
} = U1({
|
|
27808
|
-
micEnabled:
|
|
27809
|
-
speakersEnabled:
|
|
27823
|
+
micEnabled: l,
|
|
27824
|
+
speakersEnabled: f,
|
|
27810
27825
|
handler: n,
|
|
27811
27826
|
context: e
|
|
27812
27827
|
});
|
|
27813
|
-
|
|
27814
|
-
/* @__PURE__ */ R.
|
|
27815
|
-
|
|
27816
|
-
|
|
27817
|
-
|
|
27818
|
-
|
|
27819
|
-
|
|
27820
|
-
|
|
27821
|
-
|
|
27822
|
-
|
|
27828
|
+
if (C === "error")
|
|
27829
|
+
return /* @__PURE__ */ R.jsxs(ry, { renderCollapse: o, onClose: g, children: [
|
|
27830
|
+
/* @__PURE__ */ R.jsx(hc, { message: "I couldn’t connect" }),
|
|
27831
|
+
/* @__PURE__ */ R.jsx(
|
|
27832
|
+
As,
|
|
27833
|
+
{
|
|
27834
|
+
type: "ghost",
|
|
27835
|
+
label: "Retry",
|
|
27836
|
+
Icon: sc,
|
|
27837
|
+
onClick: () => {
|
|
27838
|
+
N();
|
|
27839
|
+
}
|
|
27823
27840
|
}
|
|
27824
|
-
|
|
27825
|
-
)
|
|
27826
|
-
|
|
27827
|
-
/* @__PURE__ */ R.
|
|
27828
|
-
|
|
27829
|
-
|
|
27830
|
-
|
|
27831
|
-
|
|
27832
|
-
|
|
27833
|
-
|
|
27834
|
-
|
|
27835
|
-
|
|
27841
|
+
)
|
|
27842
|
+
] });
|
|
27843
|
+
if (C === "noAudioPermissions")
|
|
27844
|
+
return /* @__PURE__ */ R.jsxs(ry, { renderCollapse: o, onClose: g, children: [
|
|
27845
|
+
/* @__PURE__ */ R.jsx(hc, { message: "Connect your microphone and speaker" }),
|
|
27846
|
+
/* @__PURE__ */ R.jsx(
|
|
27847
|
+
As,
|
|
27848
|
+
{
|
|
27849
|
+
type: "ghost",
|
|
27850
|
+
label: "Retry",
|
|
27851
|
+
Icon: sc,
|
|
27852
|
+
onClick: () => {
|
|
27853
|
+
N();
|
|
27854
|
+
}
|
|
27836
27855
|
}
|
|
27837
|
-
|
|
27838
|
-
)
|
|
27839
|
-
|
|
27856
|
+
)
|
|
27857
|
+
] });
|
|
27858
|
+
const H = a != null ? /* @__PURE__ */ R.jsx(
|
|
27859
|
+
"img",
|
|
27860
|
+
{
|
|
27861
|
+
className: "w-10 h-10 block flex-none",
|
|
27862
|
+
src: a,
|
|
27863
|
+
role: "presentation"
|
|
27864
|
+
}
|
|
27865
|
+
) : null;
|
|
27866
|
+
return C === "pending" ? /* @__PURE__ */ R.jsxs(iy, { className: "relative", children: [
|
|
27867
|
+
H,
|
|
27840
27868
|
/* @__PURE__ */ R.jsx(
|
|
27841
27869
|
xn,
|
|
27842
27870
|
{
|
|
@@ -27866,30 +27894,31 @@ const ny = 8, zE = ({
|
|
|
27866
27894
|
),
|
|
27867
27895
|
/* @__PURE__ */ R.jsx("span", { className: "w-6 h-6 block text-accent absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2", children: /* @__PURE__ */ R.jsx(jp, {}) })
|
|
27868
27896
|
] }) : /* @__PURE__ */ R.jsxs(iy, { children: [
|
|
27897
|
+
H,
|
|
27869
27898
|
/* @__PURE__ */ R.jsxs("div", { className: "w-fit relative", children: [
|
|
27870
|
-
|
|
27899
|
+
_ ? /* @__PURE__ */ R.jsx(ac, { className: "rounded-inner" }) : null,
|
|
27871
27900
|
/* @__PURE__ */ R.jsx(
|
|
27872
27901
|
xn,
|
|
27873
27902
|
{
|
|
27874
|
-
Icon:
|
|
27903
|
+
Icon: l ? sd : Dp,
|
|
27875
27904
|
label: "Microphone",
|
|
27876
|
-
type:
|
|
27905
|
+
type: l ? "activated" : "ghost",
|
|
27877
27906
|
onClick: () => {
|
|
27878
|
-
|
|
27907
|
+
u((z) => !z);
|
|
27879
27908
|
}
|
|
27880
27909
|
}
|
|
27881
27910
|
)
|
|
27882
27911
|
] }),
|
|
27883
27912
|
/* @__PURE__ */ R.jsxs("div", { className: "w-fit relative", children: [
|
|
27884
|
-
|
|
27913
|
+
T ? /* @__PURE__ */ R.jsx(ac, { className: "rounded-inner" }) : null,
|
|
27885
27914
|
/* @__PURE__ */ R.jsx(
|
|
27886
27915
|
xn,
|
|
27887
27916
|
{
|
|
27888
|
-
Icon:
|
|
27917
|
+
Icon: f ? ad : Np,
|
|
27889
27918
|
label: "Speakers",
|
|
27890
|
-
type:
|
|
27919
|
+
type: f ? "activated" : "ghost",
|
|
27891
27920
|
onClick: () => {
|
|
27892
|
-
|
|
27921
|
+
p((z) => !z);
|
|
27893
27922
|
}
|
|
27894
27923
|
}
|
|
27895
27924
|
)
|
|
@@ -27901,7 +27930,7 @@ const ny = 8, zE = ({
|
|
|
27901
27930
|
Icon: oc,
|
|
27902
27931
|
type: "error",
|
|
27903
27932
|
onClick: () => {
|
|
27904
|
-
|
|
27933
|
+
g();
|
|
27905
27934
|
}
|
|
27906
27935
|
}
|
|
27907
27936
|
),
|
|
@@ -27912,7 +27941,7 @@ const ny = 8, zE = ({
|
|
|
27912
27941
|
X1,
|
|
27913
27942
|
"absolute right-0 -top-2 transform translate-x-0 -translate-y-full max-h-[360px] overflow-auto"
|
|
27914
27943
|
),
|
|
27915
|
-
modalities:
|
|
27944
|
+
modalities: A,
|
|
27916
27945
|
modalityComponents: r,
|
|
27917
27946
|
handler: n
|
|
27918
27947
|
}
|
|
@@ -28365,7 +28394,7 @@ function ok(n) {
|
|
|
28365
28394
|
isEmbeddedInLabel: L.isEmbeddedInLabel,
|
|
28366
28395
|
isReferenced: !1,
|
|
28367
28396
|
recursion: !0
|
|
28368
|
-
}),
|
|
28397
|
+
}), Ie = jt(Y) ? T(Y).getPropertyValue("display") : "inline", We = Ie !== "inline" ? " " : "";
|
|
28369
28398
|
F += "".concat(We).concat(fe).concat(We);
|
|
28370
28399
|
}), jt(U) && f) {
|
|
28371
28400
|
var $ = g(U, "::after"), q = sy($);
|
|
@@ -28414,9 +28443,9 @@ function ok(n) {
|
|
|
28414
28443
|
}
|
|
28415
28444
|
return null;
|
|
28416
28445
|
} else if (Fn(U) === "img" || Fn(U) === "area") {
|
|
28417
|
-
var
|
|
28418
|
-
if (
|
|
28419
|
-
return
|
|
28446
|
+
var Ie = A(U, "alt");
|
|
28447
|
+
if (Ie !== null)
|
|
28448
|
+
return Ie;
|
|
28420
28449
|
} else if (fP(U)) {
|
|
28421
28450
|
var We = A(U, "label");
|
|
28422
28451
|
if (We !== null)
|
|
@@ -28431,9 +28460,9 @@ function ok(n) {
|
|
|
28431
28460
|
if (U.type === "reset")
|
|
28432
28461
|
return "Reset";
|
|
28433
28462
|
}
|
|
28434
|
-
var
|
|
28435
|
-
if (
|
|
28436
|
-
return t.add(U), si(
|
|
28463
|
+
var Pe = OP(U);
|
|
28464
|
+
if (Pe !== null && Pe.length !== 0)
|
|
28465
|
+
return t.add(U), si(Pe).map(function(de) {
|
|
28437
28466
|
return ee(de, {
|
|
28438
28467
|
isEmbeddedInLabel: !0,
|
|
28439
28468
|
isReferenced: !1,
|
|
@@ -28443,18 +28472,18 @@ function ok(n) {
|
|
|
28443
28472
|
return de.length > 0;
|
|
28444
28473
|
}).join(" ");
|
|
28445
28474
|
if (rd(U) && U.type === "image") {
|
|
28446
|
-
var
|
|
28447
|
-
if (
|
|
28448
|
-
return
|
|
28449
|
-
var
|
|
28450
|
-
return
|
|
28475
|
+
var me = A(U, "alt");
|
|
28476
|
+
if (me !== null)
|
|
28477
|
+
return me;
|
|
28478
|
+
var ce = A(U, "title");
|
|
28479
|
+
return ce !== null ? ce : "Submit Query";
|
|
28451
28480
|
}
|
|
28452
28481
|
if (ro(U, ["button"])) {
|
|
28453
|
-
var
|
|
28482
|
+
var Ce = N(U, {
|
|
28454
28483
|
isEmbeddedInLabel: !1
|
|
28455
28484
|
});
|
|
28456
|
-
if (
|
|
28457
|
-
return
|
|
28485
|
+
if (Ce !== "")
|
|
28486
|
+
return Ce;
|
|
28458
28487
|
}
|
|
28459
28488
|
return null;
|
|
28460
28489
|
}
|
|
@@ -28465,8 +28494,8 @@ function ok(n) {
|
|
|
28465
28494
|
return t.add(U), "";
|
|
28466
28495
|
var F = jt(U) ? U.getAttributeNode("aria-labelledby") : null, G = F !== null && !t.has(F) ? Cd(U, "aria-labelledby") : [];
|
|
28467
28496
|
if (l === "name" && !L.isReferenced && G.length > 0)
|
|
28468
|
-
return t.add(F), G.map(function(
|
|
28469
|
-
return ee(
|
|
28497
|
+
return t.add(F), G.map(function(Ie) {
|
|
28498
|
+
return ee(Ie, {
|
|
28470
28499
|
isEmbeddedInLabel: L.isEmbeddedInLabel,
|
|
28471
28500
|
isReferenced: !0,
|
|
28472
28501
|
// this isn't recursion as specified, otherwise we would skip
|
|
@@ -28492,8 +28521,8 @@ function ok(n) {
|
|
|
28492
28521
|
if (ro(U, ["combobox", "listbox"])) {
|
|
28493
28522
|
t.add(U);
|
|
28494
28523
|
var q = xP(U);
|
|
28495
|
-
return q.length === 0 ? rd(U) ? U.value : "" : si(q).map(function(
|
|
28496
|
-
return ee(
|
|
28524
|
+
return q.length === 0 ? rd(U) ? U.value : "" : si(q).map(function(Ie) {
|
|
28525
|
+
return ee(Ie, {
|
|
28497
28526
|
isEmbeddedInLabel: L.isEmbeddedInLabel,
|
|
28498
28527
|
isReferenced: !1,
|
|
28499
28528
|
recursion: !0
|
|
@@ -28829,9 +28858,9 @@ function KP() {
|
|
|
28829
28858
|
function H() {
|
|
28830
28859
|
function d(B) {
|
|
28831
28860
|
const K = w;
|
|
28832
|
-
v = h = 0, w = /* @__PURE__ */ new Map(), K.forEach((
|
|
28861
|
+
v = h = 0, w = /* @__PURE__ */ new Map(), K.forEach((le) => {
|
|
28833
28862
|
try {
|
|
28834
|
-
|
|
28863
|
+
le(B);
|
|
28835
28864
|
} catch (X) {
|
|
28836
28865
|
console.error(X);
|
|
28837
28866
|
}
|
|
@@ -28848,10 +28877,10 @@ function KP() {
|
|
|
28848
28877
|
I && (document.body.remove(I), I = null), B || (I = document.createElement("div"), I.style.backgroundColor = "black", I.style.position = "fixed", I.style.right = 0, I.style.top = 0, I.style.color = "white", I.style.padding = "4px", I.innerHTML = "RIVE FPS", B = function(K) {
|
|
28849
28878
|
I.innerHTML = "RIVE FPS " + K.toFixed(1);
|
|
28850
28879
|
}, document.body.appendChild(I)), x = new function() {
|
|
28851
|
-
let K = 0,
|
|
28880
|
+
let K = 0, le = 0;
|
|
28852
28881
|
this.Qb = function() {
|
|
28853
28882
|
var X = performance.now();
|
|
28854
|
-
|
|
28883
|
+
le ? (++K, X -= le, 1e3 < X && (B(1e3 * K / X), K = le = 0)) : (le = X, K = 0);
|
|
28855
28884
|
};
|
|
28856
28885
|
}();
|
|
28857
28886
|
}, this.ob = function() {
|
|
@@ -28891,10 +28920,10 @@ function KP() {
|
|
|
28891
28920
|
}, loadContents: function(x) {
|
|
28892
28921
|
let I = T.ptrToAsset(x);
|
|
28893
28922
|
return x = I.cdnUuid, x === "" ? !1 : (function(B, K) {
|
|
28894
|
-
var
|
|
28895
|
-
|
|
28896
|
-
|
|
28897
|
-
},
|
|
28923
|
+
var le = new XMLHttpRequest();
|
|
28924
|
+
le.responseType = "arraybuffer", le.onreadystatechange = function() {
|
|
28925
|
+
le.readyState == 4 && le.status == 200 && K(le);
|
|
28926
|
+
}, le.open("GET", B, !0), le.send(null);
|
|
28898
28927
|
}(I.cdnBaseUrl + "/" + x, (B) => {
|
|
28899
28928
|
I.decode(new Uint8Array(B.response));
|
|
28900
28929
|
}), !0);
|
|
@@ -28909,35 +28938,35 @@ function KP() {
|
|
|
28909
28938
|
return !1;
|
|
28910
28939
|
} });
|
|
28911
28940
|
let w = T.computeAlignment;
|
|
28912
|
-
T.computeAlignment = function(x, I, B, K,
|
|
28913
|
-
return w.call(this, x, I, B, K,
|
|
28941
|
+
T.computeAlignment = function(x, I, B, K, le = 1) {
|
|
28942
|
+
return w.call(this, x, I, B, K, le);
|
|
28914
28943
|
};
|
|
28915
28944
|
};
|
|
28916
28945
|
const U = T.onRuntimeInitialized;
|
|
28917
28946
|
T.onRuntimeInitialized = function() {
|
|
28918
|
-
function d(
|
|
28919
|
-
this.F =
|
|
28947
|
+
function d(pe) {
|
|
28948
|
+
this.F = pe, this.Db = pe.getContext("2d"), this.Gb = w, this.S = [], this.la = 0, this.clear = function() {
|
|
28920
28949
|
console.assert(this.la == 0), this.S = [], x.delete(this);
|
|
28921
28950
|
}, this.save = function() {
|
|
28922
28951
|
++this.la, this.S.push(w.save.bind(w));
|
|
28923
28952
|
}, this.restore = function() {
|
|
28924
28953
|
0 < this.la && (this.S.push(w.restore.bind(w)), --this.la);
|
|
28925
|
-
}, this.transform = function(
|
|
28926
|
-
this.S.push(w.transform.bind(w,
|
|
28927
|
-
}, this.align = function(
|
|
28928
|
-
this.S.push(w.align.bind(w,
|
|
28954
|
+
}, this.transform = function(Re) {
|
|
28955
|
+
this.S.push(w.transform.bind(w, Re));
|
|
28956
|
+
}, this.align = function(Re, $e, Je, tt, vt = 1) {
|
|
28957
|
+
this.S.push(w.align.bind(w, Re, $e, Je, tt, vt));
|
|
28929
28958
|
}, this.flush = function() {
|
|
28930
28959
|
console.assert(this.la == 0), x.add(this), w.$a || v();
|
|
28931
28960
|
}, this.delete = function() {
|
|
28932
28961
|
};
|
|
28933
28962
|
}
|
|
28934
|
-
function h(
|
|
28935
|
-
var $e = { alpha: !0, depth:
|
|
28936
|
-
if (
|
|
28963
|
+
function h(pe, Re = !1) {
|
|
28964
|
+
var $e = { alpha: !0, depth: Re, stencil: Re, antialias: Re, premultipliedAlpha: !0, preserveDrawingBuffer: 0, powerPreference: "high-performance", failIfMajorPerformanceCaveat: 0, enableExtensionsByDefault: !1, explicitSwapControl: 0, renderViaOffscreenBackBuffer: 0 };
|
|
28965
|
+
if (Re = pe.getContext("webgl2", $e), !Re)
|
|
28937
28966
|
return null;
|
|
28938
|
-
$e = $d(
|
|
28939
|
-
const Je = I(
|
|
28940
|
-
Je.Na = $e, Je.F =
|
|
28967
|
+
$e = $d(Re, $e), oa($e);
|
|
28968
|
+
const Je = I(pe.width, pe.height);
|
|
28969
|
+
Je.Na = $e, Je.F = pe, Je.Oa = pe.width, Je.ab = pe.height, Je.T = Re;
|
|
28941
28970
|
var tt = Je.delete;
|
|
28942
28971
|
return Je.delete = function() {
|
|
28943
28972
|
tt.call(this);
|
|
@@ -28947,14 +28976,14 @@ function KP() {
|
|
|
28947
28976
|
}
|
|
28948
28977
|
function v() {
|
|
28949
28978
|
if (w) {
|
|
28950
|
-
var
|
|
28979
|
+
var pe = w.Fb, Re = 0, $e = 0, Je = 0, tt = Array(x.size), vt = 0;
|
|
28951
28980
|
for (var It of x)
|
|
28952
|
-
It.ga = Math.min(It.F.width,
|
|
28981
|
+
It.ga = Math.min(It.F.width, pe), It.fa = Math.min(It.F.height, pe), It.La = It.fa * It.ga, Re = Math.max(Re, It.ga), $e = Math.max($e, It.fa), Je += It.La, tt[vt++] = It;
|
|
28953
28982
|
if (x.clear(), !(0 >= Je)) {
|
|
28954
|
-
for (
|
|
28955
|
-
|
|
28956
|
-
for (
|
|
28957
|
-
for (Je.reset(
|
|
28983
|
+
for (Re = 1 << (0 >= Re ? 0 : 32 - Math.clz32(Re - 1)), $e = 1 << (0 >= $e ? 0 : 32 - Math.clz32($e - 1)); $e * Re < Je; )
|
|
28984
|
+
Re <= $e ? Re *= 2 : $e *= 2;
|
|
28985
|
+
for (Re = Math.min(Re, pe), Re = Math.min($e, pe), tt.sort((Xr, Vi) => Vi.La - Xr.La), Je = new T.DynamicRectanizer(pe), It = 0; It < tt.length; ) {
|
|
28986
|
+
for (Je.reset(Re, $e), vt = It; vt < tt.length; ++vt) {
|
|
28958
28987
|
var Ot = tt[vt], Et = Je.addRect(Ot.ga, Ot.fa);
|
|
28959
28988
|
if (0 > Et) {
|
|
28960
28989
|
console.assert(vt > It);
|
|
@@ -28962,7 +28991,7 @@ function KP() {
|
|
|
28962
28991
|
}
|
|
28963
28992
|
Ot.ra = Et & 65535, Ot.sa = Et >> 16;
|
|
28964
28993
|
}
|
|
28965
|
-
for (Ot =
|
|
28994
|
+
for (Ot = le.push(Je.drawWidth()), Et = X.push(Je.drawHeight()), console.assert(Ot >= Je.drawWidth()), console.assert(Et >= Je.drawHeight()), console.assert(Ot <= pe), console.assert(Et <= pe), w.F.width != Ot && (w.F.width = Ot), w.F.height != Et && (w.F.height = Et), w.clear(), Ot = It; Ot < vt; ++Ot) {
|
|
28966
28995
|
Et = tt[Ot], w.saveClipRect(Et.ra, Et.sa, Et.ra + Et.ga, Et.sa + Et.fa);
|
|
28967
28996
|
let Xr = new T.Mat2D();
|
|
28968
28997
|
Xr.xx = Et.ga / Et.F.width, Xr.yy = Et.fa / Et.F.height, Xr.xy = Xr.yx = 0, Xr.tx = Et.ra, Xr.ty = Et.sa, w.transform(Xr);
|
|
@@ -28980,7 +29009,7 @@ function KP() {
|
|
|
28980
29009
|
U && U();
|
|
28981
29010
|
let w = null;
|
|
28982
29011
|
const x = /* @__PURE__ */ new Set(), I = T.makeRenderer;
|
|
28983
|
-
T.makeRenderer = function(
|
|
29012
|
+
T.makeRenderer = function(pe, Re) {
|
|
28984
29013
|
if (!w) {
|
|
28985
29014
|
let $e = function(Je) {
|
|
28986
29015
|
var tt = document.createElement("canvas");
|
|
@@ -28988,36 +29017,36 @@ function KP() {
|
|
|
28988
29017
|
};
|
|
28989
29018
|
w = $e(!0), w.Ma || (w = $e(!1));
|
|
28990
29019
|
}
|
|
28991
|
-
return
|
|
29020
|
+
return Re ? new d(pe) : h(pe, w.Ma);
|
|
28992
29021
|
};
|
|
28993
29022
|
const B = T.Artboard.prototype.delete;
|
|
28994
29023
|
T.Artboard.prototype.delete = function() {
|
|
28995
29024
|
this.Hb = !0, B.call(this);
|
|
28996
29025
|
};
|
|
28997
29026
|
const K = T.Artboard.prototype.draw;
|
|
28998
|
-
T.Artboard.prototype.draw = function(
|
|
28999
|
-
|
|
29000
|
-
this.Hb || K.call(this,
|
|
29001
|
-
}) : K.call(this,
|
|
29027
|
+
T.Artboard.prototype.draw = function(pe) {
|
|
29028
|
+
pe.S ? pe.S.push(() => {
|
|
29029
|
+
this.Hb || K.call(this, pe.Gb);
|
|
29030
|
+
}) : K.call(this, pe);
|
|
29002
29031
|
};
|
|
29003
|
-
const
|
|
29004
|
-
T.requestAnimationFrame =
|
|
29032
|
+
const le = new z(), X = new z(), Se = new H();
|
|
29033
|
+
T.requestAnimationFrame = Se.requestAnimationFrame.bind(Se), T.cancelAnimationFrame = Se.cancelAnimationFrame.bind(Se), T.enableFPSCounter = Se.Ob.bind(Se), Se.ob = v, T.resolveAnimationFrame = v;
|
|
29005
29034
|
let Me = T.load;
|
|
29006
|
-
T.load = function(
|
|
29035
|
+
T.load = function(pe, Re, $e = !0) {
|
|
29007
29036
|
const Je = new T.FallbackFileAssetLoader();
|
|
29008
|
-
return
|
|
29037
|
+
return Re !== void 0 && Je.addLoader(Re), $e && (Re = new T.CDNFileAssetLoader(), Je.addLoader(Re)), Promise.resolve(Me(pe, Je));
|
|
29009
29038
|
};
|
|
29010
29039
|
const Ne = T.WebGL2Renderer.prototype.clear;
|
|
29011
29040
|
T.WebGL2Renderer.prototype.clear = function() {
|
|
29012
29041
|
oa(this.Na);
|
|
29013
|
-
const
|
|
29014
|
-
(this.Oa !=
|
|
29015
|
-
}, T.decodeImage = function(
|
|
29016
|
-
|
|
29042
|
+
const pe = this.F;
|
|
29043
|
+
(this.Oa != pe.width || this.ab != pe.height) && (this.resize(pe.width, pe.height), this.Oa = pe.width, this.ab = pe.height), Ne.call(this);
|
|
29044
|
+
}, T.decodeImage = function(pe, Re) {
|
|
29045
|
+
pe = T.decodeWebGL2Image(pe), Re(pe);
|
|
29017
29046
|
};
|
|
29018
29047
|
let ne = T.Renderer.prototype.align;
|
|
29019
|
-
T.Renderer.prototype.align = function(
|
|
29020
|
-
ne.call(this,
|
|
29048
|
+
T.Renderer.prototype.align = function(pe, Re, $e, Je, tt = 1) {
|
|
29049
|
+
ne.call(this, pe, Re, $e, Je, tt);
|
|
29021
29050
|
};
|
|
29022
29051
|
};
|
|
29023
29052
|
var L = Object.assign({}, T), F = "./this.program", G = typeof window == "object", se = typeof importScripts == "function", Q = "", $, q;
|
|
@@ -29032,12 +29061,12 @@ function KP() {
|
|
|
29032
29061
|
});
|
|
29033
29062
|
var Y = T.print || console.log.bind(console), fe = T.printErr || console.error.bind(console);
|
|
29034
29063
|
Object.assign(T, L), L = null, T.thisProgram && (F = T.thisProgram);
|
|
29035
|
-
var
|
|
29036
|
-
T.wasmBinary && (
|
|
29037
|
-
var We, oe,
|
|
29064
|
+
var Ie;
|
|
29065
|
+
T.wasmBinary && (Ie = T.wasmBinary), T.noExitRuntime, typeof WebAssembly != "object" && vn("no native wasm support detected");
|
|
29066
|
+
var We, oe, Pe = !1, me, ce, Ce, de, O, te, Ve, Ke;
|
|
29038
29067
|
function Xe() {
|
|
29039
29068
|
var d = We.buffer;
|
|
29040
|
-
T.HEAP8 =
|
|
29069
|
+
T.HEAP8 = me = new Int8Array(d), T.HEAP16 = Ce = new Int16Array(d), T.HEAP32 = O = new Int32Array(d), T.HEAPU8 = ce = new Uint8Array(d), T.HEAPU16 = de = new Uint16Array(d), T.HEAPU32 = te = new Uint32Array(d), T.HEAPF32 = Ve = new Float32Array(d), T.HEAPF64 = Ke = new Float64Array(d);
|
|
29041
29070
|
}
|
|
29042
29071
|
var Fe, et = [], qe = [], dt = [];
|
|
29043
29072
|
function At() {
|
|
@@ -29046,7 +29075,7 @@ function KP() {
|
|
|
29046
29075
|
}
|
|
29047
29076
|
var Ht = 0, er = null;
|
|
29048
29077
|
function vn(d) {
|
|
29049
|
-
throw T.onAbort && T.onAbort(d), d = "Aborted(" + d + ")", fe(d),
|
|
29078
|
+
throw T.onAbort && T.onAbort(d), d = "Aborted(" + d + ")", fe(d), Pe = !0, d = new WebAssembly.RuntimeError(d + ". Build with -sASSERTIONS for more info."), A(d), d;
|
|
29050
29079
|
}
|
|
29051
29080
|
function Tr(d) {
|
|
29052
29081
|
return d.startsWith("data:application/octet-stream;base64,");
|
|
@@ -29057,14 +29086,14 @@ function KP() {
|
|
|
29057
29086
|
_r = T.locateFile ? T.locateFile(so, Q) : Q + so;
|
|
29058
29087
|
}
|
|
29059
29088
|
function Oi(d) {
|
|
29060
|
-
if (d == _r &&
|
|
29061
|
-
return new Uint8Array(
|
|
29089
|
+
if (d == _r && Ie)
|
|
29090
|
+
return new Uint8Array(Ie);
|
|
29062
29091
|
if (q)
|
|
29063
29092
|
return q(d);
|
|
29064
29093
|
throw "both async and sync fetching of the wasm failed";
|
|
29065
29094
|
}
|
|
29066
29095
|
function Us(d) {
|
|
29067
|
-
if (!
|
|
29096
|
+
if (!Ie && (G || se)) {
|
|
29068
29097
|
if (typeof fetch == "function" && !d.startsWith("file://"))
|
|
29069
29098
|
return fetch(d, { credentials: "same-origin" }).then((h) => {
|
|
29070
29099
|
if (!h.ok)
|
|
@@ -29085,7 +29114,7 @@ function KP() {
|
|
|
29085
29114
|
}
|
|
29086
29115
|
function Li(d, h) {
|
|
29087
29116
|
var v = _r;
|
|
29088
|
-
return
|
|
29117
|
+
return Ie || typeof WebAssembly.instantiateStreaming != "function" || Tr(v) || v.startsWith("file://") || typeof fetch != "function" ? yn(v, d, h) : fetch(v, { credentials: "same-origin" }).then((w) => WebAssembly.instantiateStreaming(w, d).then(h, function(x) {
|
|
29089
29118
|
return fe("wasm streaming compile failed: " + x), fe("falling back to ArrayBuffer instantiation"), yn(v, d, h);
|
|
29090
29119
|
}));
|
|
29091
29120
|
}
|
|
@@ -29114,12 +29143,12 @@ function KP() {
|
|
|
29114
29143
|
var K = I.D[B];
|
|
29115
29144
|
K != null && K.J != null && K.state === I.ja.xb && K.J.resume().then(() => {
|
|
29116
29145
|
rr(K.pb);
|
|
29117
|
-
}, (
|
|
29118
|
-
console.error("Failed to resume audiocontext",
|
|
29146
|
+
}, (le) => {
|
|
29147
|
+
console.error("Failed to resume audiocontext", le);
|
|
29119
29148
|
});
|
|
29120
29149
|
}
|
|
29121
|
-
I.Za.map(function(
|
|
29122
|
-
document.removeEventListener(
|
|
29150
|
+
I.Za.map(function(le) {
|
|
29151
|
+
document.removeEventListener(le, I.unlock, !0);
|
|
29123
29152
|
});
|
|
29124
29153
|
}, I.Za.map(function(B) {
|
|
29125
29154
|
document.addEventListener(B, I.unlock, !0);
|
|
@@ -29141,24 +29170,24 @@ function KP() {
|
|
|
29141
29170
|
if (typeof window.h > "u")
|
|
29142
29171
|
return -1;
|
|
29143
29172
|
var B = {}, K = {};
|
|
29144
|
-
return d == window.h.I.Ea && v != 0 && (K.sampleRate = v), B.J = new (window.AudioContext || window.webkitAudioContext)(K), B.J.suspend(), B.state = window.h.ja.stopped, v = 0, d != window.h.I.Ea && (v = h), B.Z = B.J.createScriptProcessor(w, v, h), B.Z.onaudioprocess = function(
|
|
29173
|
+
return d == window.h.I.Ea && v != 0 && (K.sampleRate = v), B.J = new (window.AudioContext || window.webkitAudioContext)(K), B.J.suspend(), B.state = window.h.ja.stopped, v = 0, d != window.h.I.Ea && (v = h), B.Z = B.J.createScriptProcessor(w, v, h), B.Z.onaudioprocess = function(le) {
|
|
29145
29174
|
if ((B.wa == null || B.wa.length == 0) && (B.wa = new Float32Array(Ve.buffer, x, w * h)), d == window.h.I.capture || d == window.h.I.Ra) {
|
|
29146
29175
|
for (var X = 0; X < h; X += 1)
|
|
29147
|
-
for (var
|
|
29148
|
-
Me[Ne * h + X] =
|
|
29176
|
+
for (var Se = le.inputBuffer.getChannelData(X), Me = B.wa, Ne = 0; Ne < w; Ne += 1)
|
|
29177
|
+
Me[Ne * h + X] = Se[Ne];
|
|
29149
29178
|
go(I, w, x);
|
|
29150
29179
|
}
|
|
29151
29180
|
if (d == window.h.I.Ea || d == window.h.I.Ra)
|
|
29152
|
-
for (ml(I, w, x), X = 0; X <
|
|
29153
|
-
for (
|
|
29154
|
-
|
|
29181
|
+
for (ml(I, w, x), X = 0; X < le.outputBuffer.numberOfChannels; ++X)
|
|
29182
|
+
for (Se = le.outputBuffer.getChannelData(X), Me = B.wa, Ne = 0; Ne < w; Ne += 1)
|
|
29183
|
+
Se[Ne] = Me[Ne * h + X];
|
|
29155
29184
|
else
|
|
29156
|
-
for (X = 0; X <
|
|
29157
|
-
|
|
29158
|
-
}, d != window.h.I.capture && d != window.h.I.Ra || navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 }).then(function(
|
|
29159
|
-
B.Ha = B.J.createMediaStreamSource(
|
|
29160
|
-
}).catch(function(
|
|
29161
|
-
console.log("Failed to get user media: " +
|
|
29185
|
+
for (X = 0; X < le.outputBuffer.numberOfChannels; ++X)
|
|
29186
|
+
le.outputBuffer.getChannelData(X).fill(0);
|
|
29187
|
+
}, d != window.h.I.capture && d != window.h.I.Ra || navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 }).then(function(le) {
|
|
29188
|
+
B.Ha = B.J.createMediaStreamSource(le), B.Ha.connect(B.Z), B.Z.connect(B.J.destination);
|
|
29189
|
+
}).catch(function(le) {
|
|
29190
|
+
console.log("Failed to get user media: " + le);
|
|
29162
29191
|
}), d == window.h.I.Ea && B.Z.connect(B.J.destination), B.pb = I, window.h.rc(B);
|
|
29163
29192
|
}, 539865: (d) => window.h.va(d).J.sampleRate, 539938: (d) => {
|
|
29164
29193
|
d = window.h.va(d), d.Z !== void 0 && (d.Z.onaudioprocess = function() {
|
|
@@ -29411,7 +29440,7 @@ function KP() {
|
|
|
29411
29440
|
h[v + w] = I[x + w];
|
|
29412
29441
|
return d;
|
|
29413
29442
|
}, write(d, h, v, w, x, I) {
|
|
29414
|
-
if (h.buffer ===
|
|
29443
|
+
if (h.buffer === me.buffer && (I = !1), !w)
|
|
29415
29444
|
return 0;
|
|
29416
29445
|
if (d = d.node, d.timestamp = Date.now(), h.subarray && (!d.j || d.j.subarray)) {
|
|
29417
29446
|
if (I)
|
|
@@ -29436,10 +29465,10 @@ function KP() {
|
|
|
29436
29465
|
}, lb(d, h, v, w, x) {
|
|
29437
29466
|
if ((d.node.mode & 61440) !== 32768)
|
|
29438
29467
|
throw new De(43);
|
|
29439
|
-
if (d = d.node.j, x & 2 || d.buffer !==
|
|
29468
|
+
if (d = d.node.j, x & 2 || d.buffer !== me.buffer) {
|
|
29440
29469
|
if ((0 < v || v + h < d.length) && (d.subarray ? d = d.subarray(v, v + h) : d = Array.prototype.slice.call(d, v, v + h)), v = !0, vn(), h = void 0, !h)
|
|
29441
29470
|
throw new De(48);
|
|
29442
|
-
|
|
29471
|
+
me.set(d, h);
|
|
29443
29472
|
} else
|
|
29444
29473
|
v = !1, h = d.byteOffset;
|
|
29445
29474
|
return { o: h, M: v };
|
|
@@ -29644,8 +29673,8 @@ function KP() {
|
|
|
29644
29673
|
I.seekable = !1;
|
|
29645
29674
|
}, close: () => {
|
|
29646
29675
|
v && v.buffer && v.buffer.length && v(10);
|
|
29647
|
-
}, read: (I, B, K,
|
|
29648
|
-
for (var X = 0,
|
|
29676
|
+
}, read: (I, B, K, le) => {
|
|
29677
|
+
for (var X = 0, Se = 0; Se < le; Se++) {
|
|
29649
29678
|
try {
|
|
29650
29679
|
var Me = h();
|
|
29651
29680
|
} catch {
|
|
@@ -29655,17 +29684,17 @@ function KP() {
|
|
|
29655
29684
|
throw new De(6);
|
|
29656
29685
|
if (Me == null)
|
|
29657
29686
|
break;
|
|
29658
|
-
X++, B[K +
|
|
29687
|
+
X++, B[K + Se] = Me;
|
|
29659
29688
|
}
|
|
29660
29689
|
return X && (I.node.timestamp = Date.now()), X;
|
|
29661
|
-
}, write: (I, B, K,
|
|
29662
|
-
for (var X = 0; X <
|
|
29690
|
+
}, write: (I, B, K, le) => {
|
|
29691
|
+
for (var X = 0; X < le; X++)
|
|
29663
29692
|
try {
|
|
29664
29693
|
v(B[K + X]);
|
|
29665
29694
|
} catch {
|
|
29666
29695
|
throw new De(29);
|
|
29667
29696
|
}
|
|
29668
|
-
return
|
|
29697
|
+
return le && (I.node.timestamp = Date.now()), X;
|
|
29669
29698
|
} }), Hs(d, w, x);
|
|
29670
29699
|
}, Gs, Pr = {}, Rn, Ks, kn = void 0;
|
|
29671
29700
|
function qr() {
|
|
@@ -29715,8 +29744,8 @@ function KP() {
|
|
|
29715
29744
|
}
|
|
29716
29745
|
var Xa = void 0, Qs = void 0;
|
|
29717
29746
|
function xt(d) {
|
|
29718
|
-
for (var h = "";
|
|
29719
|
-
h += Qs[
|
|
29747
|
+
for (var h = ""; ce[d]; )
|
|
29748
|
+
h += Qs[ce[d++]];
|
|
29720
29749
|
return h;
|
|
29721
29750
|
}
|
|
29722
29751
|
var Ko = [];
|
|
@@ -29786,16 +29815,16 @@ function KP() {
|
|
|
29786
29815
|
function In(d, h, v) {
|
|
29787
29816
|
function w(K) {
|
|
29788
29817
|
K = v(K), K.length !== d.length && hi("Mismatched type converter count");
|
|
29789
|
-
for (var
|
|
29790
|
-
Mn(d[
|
|
29818
|
+
for (var le = 0; le < d.length; ++le)
|
|
29819
|
+
Mn(d[le], K[le]);
|
|
29791
29820
|
}
|
|
29792
29821
|
d.forEach(function(K) {
|
|
29793
29822
|
ji[K] = h;
|
|
29794
29823
|
});
|
|
29795
29824
|
var x = Array(h.length), I = [], B = 0;
|
|
29796
|
-
h.forEach((K,
|
|
29797
|
-
Gr.hasOwnProperty(K) ? x[
|
|
29798
|
-
x[
|
|
29825
|
+
h.forEach((K, le) => {
|
|
29826
|
+
Gr.hasOwnProperty(K) ? x[le] = Gr[K] : (I.push(K), Ni.hasOwnProperty(K) || (Ni[K] = []), Ni[K].push(() => {
|
|
29827
|
+
x[le] = Gr[K], ++B, B === I.length && w(x);
|
|
29799
29828
|
}));
|
|
29800
29829
|
}), I.length === 0 && w(x);
|
|
29801
29830
|
}
|
|
@@ -29930,22 +29959,22 @@ function KP() {
|
|
|
29930
29959
|
K = !0;
|
|
29931
29960
|
break;
|
|
29932
29961
|
}
|
|
29933
|
-
var
|
|
29962
|
+
var le = h[0].name !== "void", X = I - 2, Se = Array(X), Me = [], Ne = [];
|
|
29934
29963
|
return function() {
|
|
29935
29964
|
if (arguments.length !== X && it(`function ${d} called with ${arguments.length} arguments, expected ${X} args!`), Ne.length = 0, Me.length = B ? 2 : 1, Me[0] = x, B) {
|
|
29936
29965
|
var ne = h[1].toWireType(Ne, this);
|
|
29937
29966
|
Me[1] = ne;
|
|
29938
29967
|
}
|
|
29939
|
-
for (var
|
|
29940
|
-
|
|
29941
|
-
if (
|
|
29968
|
+
for (var pe = 0; pe < X; ++pe)
|
|
29969
|
+
Se[pe] = h[pe + 2].toWireType(Ne, arguments[pe]), Me.push(Se[pe]);
|
|
29970
|
+
if (pe = w.apply(null, Me), K)
|
|
29942
29971
|
Yr(Ne);
|
|
29943
29972
|
else
|
|
29944
|
-
for (var
|
|
29945
|
-
var $e =
|
|
29946
|
-
h[
|
|
29973
|
+
for (var Re = B ? 1 : 2; Re < h.length; Re++) {
|
|
29974
|
+
var $e = Re === 1 ? ne : Se[Re - 2];
|
|
29975
|
+
h[Re].K !== null && h[Re].K($e);
|
|
29947
29976
|
}
|
|
29948
|
-
return ne =
|
|
29977
|
+
return ne = le ? h[0].fromWireType(pe) : void 0, ne;
|
|
29949
29978
|
};
|
|
29950
29979
|
}
|
|
29951
29980
|
function gi(d, h) {
|
|
@@ -29963,11 +29992,11 @@ function KP() {
|
|
|
29963
29992
|
switch (h) {
|
|
29964
29993
|
case 0:
|
|
29965
29994
|
return function(w) {
|
|
29966
|
-
return this.fromWireType((v ?
|
|
29995
|
+
return this.fromWireType((v ? me : ce)[w]);
|
|
29967
29996
|
};
|
|
29968
29997
|
case 1:
|
|
29969
29998
|
return function(w) {
|
|
29970
|
-
return this.fromWireType((v ?
|
|
29999
|
+
return this.fromWireType((v ? Ce : de)[w >> 1]);
|
|
29971
30000
|
};
|
|
29972
30001
|
case 2:
|
|
29973
30002
|
return function(w) {
|
|
@@ -30001,13 +30030,13 @@ function KP() {
|
|
|
30001
30030
|
switch (h) {
|
|
30002
30031
|
case 0:
|
|
30003
30032
|
return v ? function(w) {
|
|
30004
|
-
return
|
|
30033
|
+
return me[w];
|
|
30005
30034
|
} : function(w) {
|
|
30006
|
-
return
|
|
30035
|
+
return ce[w];
|
|
30007
30036
|
};
|
|
30008
30037
|
case 1:
|
|
30009
30038
|
return v ? function(w) {
|
|
30010
|
-
return
|
|
30039
|
+
return Ce[w >> 1];
|
|
30011
30040
|
} : function(w) {
|
|
30012
30041
|
return de[w >> 1];
|
|
30013
30042
|
};
|
|
@@ -30025,9 +30054,9 @@ function KP() {
|
|
|
30025
30054
|
for (var v = d >> 1, w = v + h / 2; !(v >= w) && de[v]; )
|
|
30026
30055
|
++v;
|
|
30027
30056
|
if (v <<= 1, 32 < v - d && Ac)
|
|
30028
|
-
return Ac.decode(
|
|
30057
|
+
return Ac.decode(ce.subarray(d, v));
|
|
30029
30058
|
for (v = "", w = 0; !(w >= h / 2); ++w) {
|
|
30030
|
-
var x =
|
|
30059
|
+
var x = Ce[d + 2 * w >> 1];
|
|
30031
30060
|
if (x == 0)
|
|
30032
30061
|
break;
|
|
30033
30062
|
v += String.fromCharCode(x);
|
|
@@ -30040,8 +30069,8 @@ function KP() {
|
|
|
30040
30069
|
var w = h;
|
|
30041
30070
|
v = v < 2 * d.length ? v / 2 : d.length;
|
|
30042
30071
|
for (var x = 0; x < v; ++x)
|
|
30043
|
-
|
|
30044
|
-
return
|
|
30072
|
+
Ce[h >> 1] = d.charCodeAt(x), h += 2;
|
|
30073
|
+
return Ce[h >> 1] = 0, h - w;
|
|
30045
30074
|
}, ol = (d) => 2 * d.length, Ud = (d, h) => {
|
|
30046
30075
|
for (var v = 0, w = ""; !(v >= h / 4); ) {
|
|
30047
30076
|
var x = O[d + 4 * v >> 2];
|
|
@@ -30235,29 +30264,29 @@ function KP() {
|
|
|
30235
30264
|
}
|
|
30236
30265
|
var bi = (d) => {
|
|
30237
30266
|
var h = Tt(d) + 1, v = aa(h);
|
|
30238
|
-
return v && $t(d,
|
|
30267
|
+
return v && $t(d, ce, v, h), v;
|
|
30239
30268
|
};
|
|
30240
30269
|
function mo(d) {
|
|
30241
30270
|
return d.slice(-1) == "]" && d.lastIndexOf("[");
|
|
30242
30271
|
}
|
|
30243
30272
|
function Bc(d) {
|
|
30244
|
-
return d -= 5120, d == 0 ?
|
|
30273
|
+
return d -= 5120, d == 0 ? me : d == 1 ? ce : d == 2 ? Ce : d == 4 ? O : d == 6 ? Ve : d == 5 || d == 28922 || d == 28520 || d == 30779 || d == 30782 ? te : de;
|
|
30245
30274
|
}
|
|
30246
30275
|
var Bi = (d) => d % 4 === 0 && (d % 100 !== 0 || d % 400 === 0), Vc = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], dl = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], fl = (d, h, v, w) => {
|
|
30247
|
-
function x(ne,
|
|
30248
|
-
for (ne = typeof ne == "number" ? ne.toString() : ne || ""; ne.length <
|
|
30249
|
-
ne =
|
|
30276
|
+
function x(ne, pe, Re) {
|
|
30277
|
+
for (ne = typeof ne == "number" ? ne.toString() : ne || ""; ne.length < pe; )
|
|
30278
|
+
ne = Re[0] + ne;
|
|
30250
30279
|
return ne;
|
|
30251
30280
|
}
|
|
30252
|
-
function I(ne,
|
|
30253
|
-
return x(ne,
|
|
30281
|
+
function I(ne, pe) {
|
|
30282
|
+
return x(ne, pe, "0");
|
|
30254
30283
|
}
|
|
30255
|
-
function B(ne,
|
|
30256
|
-
function
|
|
30284
|
+
function B(ne, pe) {
|
|
30285
|
+
function Re(Je) {
|
|
30257
30286
|
return 0 > Je ? -1 : 0 < Je ? 1 : 0;
|
|
30258
30287
|
}
|
|
30259
30288
|
var $e;
|
|
30260
|
-
return ($e =
|
|
30289
|
+
return ($e = Re(ne.getFullYear() - pe.getFullYear())) === 0 && ($e = Re(ne.getMonth() - pe.getMonth())) === 0 && ($e = Re(ne.getDate() - pe.getDate())), $e;
|
|
30261
30290
|
}
|
|
30262
30291
|
function K(ne) {
|
|
30263
30292
|
switch (ne.getDay()) {
|
|
@@ -30277,47 +30306,47 @@ function KP() {
|
|
|
30277
30306
|
return new Date(ne.getFullYear() - 1, 11, 30);
|
|
30278
30307
|
}
|
|
30279
30308
|
}
|
|
30280
|
-
function
|
|
30281
|
-
var
|
|
30282
|
-
for (ne = new Date(new Date(ne.ea + 1900, 0, 1).getTime()); 0 <
|
|
30283
|
-
var
|
|
30284
|
-
if (
|
|
30285
|
-
|
|
30309
|
+
function le(ne) {
|
|
30310
|
+
var pe = ne.da;
|
|
30311
|
+
for (ne = new Date(new Date(ne.ea + 1900, 0, 1).getTime()); 0 < pe; ) {
|
|
30312
|
+
var Re = ne.getMonth(), $e = (Bi(ne.getFullYear()) ? Vc : dl)[Re];
|
|
30313
|
+
if (pe > $e - ne.getDate())
|
|
30314
|
+
pe -= $e - ne.getDate() + 1, ne.setDate(1), 11 > Re ? ne.setMonth(Re + 1) : (ne.setMonth(0), ne.setFullYear(ne.getFullYear() + 1));
|
|
30286
30315
|
else {
|
|
30287
|
-
ne.setDate(ne.getDate() +
|
|
30316
|
+
ne.setDate(ne.getDate() + pe);
|
|
30288
30317
|
break;
|
|
30289
30318
|
}
|
|
30290
30319
|
}
|
|
30291
|
-
return
|
|
30320
|
+
return Re = new Date(ne.getFullYear() + 1, 0, 4), pe = K(new Date(ne.getFullYear(), 0, 4)), Re = K(Re), 0 >= B(pe, ne) ? 0 >= B(Re, ne) ? ne.getFullYear() + 1 : ne.getFullYear() : ne.getFullYear() - 1;
|
|
30292
30321
|
}
|
|
30293
30322
|
var X = O[w + 40 >> 2];
|
|
30294
|
-
w = { pc: O[w >> 2], oc: O[w + 4 >> 2], Ja: O[w + 8 >> 2], Xa: O[w + 12 >> 2], Ka: O[w + 16 >> 2], ea: O[w + 20 >> 2], R: O[w + 24 >> 2], da: O[w + 28 >> 2], Pc: O[w + 32 >> 2], nc: O[w + 36 >> 2], qc: X && X ? Le(
|
|
30295
|
-
for (var
|
|
30296
|
-
v = v.replace(new RegExp(
|
|
30323
|
+
w = { pc: O[w >> 2], oc: O[w + 4 >> 2], Ja: O[w + 8 >> 2], Xa: O[w + 12 >> 2], Ka: O[w + 16 >> 2], ea: O[w + 20 >> 2], R: O[w + 24 >> 2], da: O[w + 28 >> 2], Pc: O[w + 32 >> 2], nc: O[w + 36 >> 2], qc: X && X ? Le(ce, X) : "" }, v = v ? Le(ce, v) : "", X = { "%c": "%a %b %d %H:%M:%S %Y", "%D": "%m/%d/%y", "%F": "%Y-%m-%d", "%h": "%b", "%r": "%I:%M:%S %p", "%R": "%H:%M", "%T": "%H:%M:%S", "%x": "%m/%d/%y", "%X": "%H:%M:%S", "%Ec": "%c", "%EC": "%C", "%Ex": "%m/%d/%y", "%EX": "%H:%M:%S", "%Ey": "%y", "%EY": "%Y", "%Od": "%d", "%Oe": "%e", "%OH": "%H", "%OI": "%I", "%Om": "%m", "%OM": "%M", "%OS": "%S", "%Ou": "%u", "%OU": "%U", "%OV": "%V", "%Ow": "%w", "%OW": "%W", "%Oy": "%y" };
|
|
30324
|
+
for (var Se in X)
|
|
30325
|
+
v = v.replace(new RegExp(Se, "g"), X[Se]);
|
|
30297
30326
|
var Me = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), Ne = "January February March April May June July August September October November December".split(" ");
|
|
30298
|
-
X = { "%a": (ne) => Me[ne.R].substring(0, 3), "%A": (ne) => Me[ne.R], "%b": (ne) => Ne[ne.Ka].substring(0, 3), "%B": (ne) => Ne[ne.Ka], "%C": (ne) => I((ne.ea + 1900) / 100 | 0, 2), "%d": (ne) => I(ne.Xa, 2), "%e": (ne) => x(ne.Xa, 2, " "), "%g": (ne) =>
|
|
30299
|
-
for (var
|
|
30327
|
+
X = { "%a": (ne) => Me[ne.R].substring(0, 3), "%A": (ne) => Me[ne.R], "%b": (ne) => Ne[ne.Ka].substring(0, 3), "%B": (ne) => Ne[ne.Ka], "%C": (ne) => I((ne.ea + 1900) / 100 | 0, 2), "%d": (ne) => I(ne.Xa, 2), "%e": (ne) => x(ne.Xa, 2, " "), "%g": (ne) => le(ne).toString().substring(2), "%G": (ne) => le(ne), "%H": (ne) => I(ne.Ja, 2), "%I": (ne) => (ne = ne.Ja, ne == 0 ? ne = 12 : 12 < ne && (ne -= 12), I(ne, 2)), "%j": (ne) => {
|
|
30328
|
+
for (var pe = 0, Re = 0; Re <= ne.Ka - 1; pe += (Bi(ne.ea + 1900) ? Vc : dl)[Re++])
|
|
30300
30329
|
;
|
|
30301
|
-
return I(ne.Xa +
|
|
30330
|
+
return I(ne.Xa + pe, 3);
|
|
30302
30331
|
}, "%m": (ne) => I(ne.Ka + 1, 2), "%M": (ne) => I(ne.oc, 2), "%n": () => `
|
|
30303
30332
|
`, "%p": (ne) => 0 <= ne.Ja && 12 > ne.Ja ? "AM" : "PM", "%S": (ne) => I(ne.pc, 2), "%t": () => " ", "%u": (ne) => ne.R || 7, "%U": (ne) => I(Math.floor((ne.da + 7 - ne.R) / 7), 2), "%V": (ne) => {
|
|
30304
|
-
var
|
|
30305
|
-
if (2 >= (ne.R + 371 - ne.da - 2) % 7 &&
|
|
30306
|
-
|
|
30333
|
+
var pe = Math.floor((ne.da + 7 - (ne.R + 6) % 7) / 7);
|
|
30334
|
+
if (2 >= (ne.R + 371 - ne.da - 2) % 7 && pe++, pe)
|
|
30335
|
+
pe == 53 && (Re = (ne.R + 371 - ne.da) % 7, Re == 4 || Re == 3 && Bi(ne.ea) || (pe = 1));
|
|
30307
30336
|
else {
|
|
30308
|
-
|
|
30309
|
-
var
|
|
30310
|
-
(
|
|
30337
|
+
pe = 52;
|
|
30338
|
+
var Re = (ne.R + 7 - ne.da - 1) % 7;
|
|
30339
|
+
(Re == 4 || Re == 5 && Bi(ne.ea % 400 - 1)) && pe++;
|
|
30311
30340
|
}
|
|
30312
|
-
return I(
|
|
30341
|
+
return I(pe, 2);
|
|
30313
30342
|
}, "%w": (ne) => ne.R, "%W": (ne) => I(Math.floor((ne.da + 7 - (ne.R + 6) % 7) / 7), 2), "%y": (ne) => (ne.ea + 1900).toString().substring(2), "%Y": (ne) => ne.ea + 1900, "%z": (ne) => {
|
|
30314
30343
|
ne = ne.nc;
|
|
30315
|
-
var
|
|
30316
|
-
return ne = Math.abs(ne) / 60, (
|
|
30344
|
+
var pe = 0 <= ne;
|
|
30345
|
+
return ne = Math.abs(ne) / 60, (pe ? "+" : "-") + ("0000" + (ne / 60 * 100 + ne % 60)).slice(-4);
|
|
30317
30346
|
}, "%Z": (ne) => ne.qc, "%%": () => "%" }, v = v.replace(/%%/g, "\0\0");
|
|
30318
|
-
for (
|
|
30319
|
-
v.includes(
|
|
30320
|
-
return v = v.replace(/\0\0/g, "%"),
|
|
30347
|
+
for (Se in X)
|
|
30348
|
+
v.includes(Se) && (v = v.replace(new RegExp(Se, "g"), X[Se](w)));
|
|
30349
|
+
return v = v.replace(/\0\0/g, "%"), Se = _t(v, !1), Se.length > h ? 0 : (me.set(Se, d), Se.length - 1);
|
|
30321
30350
|
};
|
|
30322
30351
|
function sa(d, h, v, w) {
|
|
30323
30352
|
d || (d = this), this.parent = d, this.U = d.U, this.Da = null, this.id = Cc++, this.name = h, this.mode = v, this.l = {}, this.m = {}, this.Fa = w;
|
|
@@ -30437,7 +30466,7 @@ function KP() {
|
|
|
30437
30466
|
case 4:
|
|
30438
30467
|
return x = qr(), w.flags |= x, 0;
|
|
30439
30468
|
case 5:
|
|
30440
|
-
return x = qr(),
|
|
30469
|
+
return x = qr(), Ce[x + 0 >> 1] = 2, 0;
|
|
30441
30470
|
case 6:
|
|
30442
30471
|
case 7:
|
|
30443
30472
|
return 0;
|
|
@@ -30469,7 +30498,7 @@ function KP() {
|
|
|
30469
30498
|
var x = qr();
|
|
30470
30499
|
O[x >> 2] = 25856, O[x + 4 >> 2] = 5, O[x + 8 >> 2] = 191, O[x + 12 >> 2] = 35387;
|
|
30471
30500
|
for (var I = 0; 32 > I; I++)
|
|
30472
|
-
|
|
30501
|
+
me[x + I + 17 >> 0] = h[I] || 0;
|
|
30473
30502
|
}
|
|
30474
30503
|
return 0;
|
|
30475
30504
|
case 21510:
|
|
@@ -30483,7 +30512,7 @@ function KP() {
|
|
|
30483
30512
|
return -59;
|
|
30484
30513
|
if (w.s.V.ac)
|
|
30485
30514
|
for (x = qr(), h = [], I = 0; 32 > I; I++)
|
|
30486
|
-
h.push(
|
|
30515
|
+
h.push(me[x + I + 17 >> 0]);
|
|
30487
30516
|
return 0;
|
|
30488
30517
|
case 21519:
|
|
30489
30518
|
return w.s ? (x = qr(), O[x >> 2] = 0) : -59;
|
|
@@ -30494,7 +30523,7 @@ function KP() {
|
|
|
30494
30523
|
throw new De(59);
|
|
30495
30524
|
return w.m.Zb(w, h, x);
|
|
30496
30525
|
case 21523:
|
|
30497
|
-
return w.s ? (w.s.V.bc && (I = [24, 80], x = qr(),
|
|
30526
|
+
return w.s ? (w.s.V.bc && (I = [24, 80], x = qr(), Ce[x >> 1] = I[0], Ce[x + 2 >> 1] = I[1]), 0) : -59;
|
|
30498
30527
|
case 21524:
|
|
30499
30528
|
return w.s ? 0 : -59;
|
|
30500
30529
|
case 21515:
|
|
@@ -30510,7 +30539,7 @@ function KP() {
|
|
|
30510
30539
|
}, __syscall_openat: function(d, h, v, w) {
|
|
30511
30540
|
kn = w;
|
|
30512
30541
|
try {
|
|
30513
|
-
h = h ? Le(
|
|
30542
|
+
h = h ? Le(ce, h) : "";
|
|
30514
30543
|
var x = h;
|
|
30515
30544
|
if (x.charAt(0) === "/")
|
|
30516
30545
|
h = x;
|
|
@@ -30539,15 +30568,15 @@ function KP() {
|
|
|
30539
30568
|
this === I && it("Pass correct 'this' to __construct");
|
|
30540
30569
|
var X = K.implement.apply(void 0, [this].concat(w.call(arguments)));
|
|
30541
30570
|
Yo(X);
|
|
30542
|
-
var
|
|
30543
|
-
X.notifyOnDestruction(),
|
|
30571
|
+
var Se = X.g;
|
|
30572
|
+
X.notifyOnDestruction(), Se.ka = !0, Object.defineProperties(this, { g: { value: Se } }), uo(this), X = Se.o, X = Xs(x, X), Mr.hasOwnProperty(X) ? it(`Tried to register registered instance: ${X}`) : Mr[X] = this;
|
|
30544
30573
|
}, I.__destruct = function() {
|
|
30545
30574
|
this === I && it("Pass correct 'this' to __destruct"), Yo(this);
|
|
30546
30575
|
var X = this.g.o;
|
|
30547
30576
|
X = Xs(x, X), Mr.hasOwnProperty(X) ? delete Mr[X] : it(`Tried to unregister unregistered instance: ${X}`);
|
|
30548
30577
|
}, d.prototype = Object.create(I);
|
|
30549
|
-
for (var
|
|
30550
|
-
d.prototype[
|
|
30578
|
+
for (var le in v)
|
|
30579
|
+
d.prototype[le] = v[le];
|
|
30551
30580
|
return Ir(d);
|
|
30552
30581
|
}, _embind_finalize_value_object: function(d) {
|
|
30553
30582
|
var h = Zo[d];
|
|
@@ -30555,25 +30584,25 @@ function KP() {
|
|
|
30555
30584
|
var v = h.Va, w = h.W, x = h.fb, I = x.map((B) => B.Vb).concat(x.map((B) => B.kc));
|
|
30556
30585
|
In([d], I, (B) => {
|
|
30557
30586
|
var K = {};
|
|
30558
|
-
return x.forEach((
|
|
30559
|
-
var
|
|
30560
|
-
K[
|
|
30587
|
+
return x.forEach((le, X) => {
|
|
30588
|
+
var Se = B[X], Me = le.Tb, Ne = le.Ub, ne = B[X + x.length], pe = le.jc, Re = le.lc;
|
|
30589
|
+
K[le.Pb] = { read: ($e) => Se.fromWireType(Me(Ne, $e)), write: ($e, Je) => {
|
|
30561
30590
|
var tt = [];
|
|
30562
|
-
|
|
30591
|
+
pe(Re, $e, ne.toWireType(tt, Je)), Yr(tt);
|
|
30563
30592
|
} };
|
|
30564
|
-
}), [{ name: h.name, fromWireType: function(
|
|
30565
|
-
var X = {},
|
|
30566
|
-
for (
|
|
30567
|
-
X[
|
|
30568
|
-
return w(
|
|
30569
|
-
}, toWireType: function(
|
|
30570
|
-
for (var
|
|
30571
|
-
if (!(
|
|
30572
|
-
throw new TypeError(`Missing field: "${
|
|
30593
|
+
}), [{ name: h.name, fromWireType: function(le) {
|
|
30594
|
+
var X = {}, Se;
|
|
30595
|
+
for (Se in K)
|
|
30596
|
+
X[Se] = K[Se].read(le);
|
|
30597
|
+
return w(le), X;
|
|
30598
|
+
}, toWireType: function(le, X) {
|
|
30599
|
+
for (var Se in K)
|
|
30600
|
+
if (!(Se in X))
|
|
30601
|
+
throw new TypeError(`Missing field: "${Se}"`);
|
|
30573
30602
|
var Me = v();
|
|
30574
|
-
for (
|
|
30575
|
-
K[
|
|
30576
|
-
return
|
|
30603
|
+
for (Se in K)
|
|
30604
|
+
K[Se].write(Me, X[Se]);
|
|
30605
|
+
return le !== null && le.push(w, Me), Me;
|
|
30577
30606
|
}, argPackAdvance: 8, readValueFromPointer: es, K: w }];
|
|
30578
30607
|
});
|
|
30579
30608
|
}, _embind_register_bigint: function() {
|
|
@@ -30585,131 +30614,131 @@ function KP() {
|
|
|
30585
30614
|
return K ? w : x;
|
|
30586
30615
|
}, argPackAdvance: 8, readValueFromPointer: function(B) {
|
|
30587
30616
|
if (v === 1)
|
|
30588
|
-
var K =
|
|
30617
|
+
var K = me;
|
|
30589
30618
|
else if (v === 2)
|
|
30590
|
-
K =
|
|
30619
|
+
K = Ce;
|
|
30591
30620
|
else if (v === 4)
|
|
30592
30621
|
K = O;
|
|
30593
30622
|
else
|
|
30594
30623
|
throw new TypeError("Unknown boolean type size: " + h);
|
|
30595
30624
|
return this.fromWireType(K[B >> I]);
|
|
30596
30625
|
}, K: null });
|
|
30597
|
-
}, _embind_register_class: function(d, h, v, w, x, I, B, K,
|
|
30598
|
-
|
|
30599
|
-
var ne = Pc(
|
|
30626
|
+
}, _embind_register_class: function(d, h, v, w, x, I, B, K, le, X, Se, Me, Ne) {
|
|
30627
|
+
Se = xt(Se), I = on(x, I), K && (K = on(B, K)), X && (X = on(le, X)), Ne = on(Me, Ne);
|
|
30628
|
+
var ne = Pc(Se);
|
|
30600
30629
|
tl(ne, function() {
|
|
30601
|
-
On(`Cannot construct ${
|
|
30602
|
-
}), In([d, h, v], w ? [w] : [], function(
|
|
30603
|
-
if (
|
|
30604
|
-
var
|
|
30630
|
+
On(`Cannot construct ${Se} due to unbound types`, [w]);
|
|
30631
|
+
}), In([d, h, v], w ? [w] : [], function(pe) {
|
|
30632
|
+
if (pe = pe[0], w)
|
|
30633
|
+
var Re = pe.i, $e = Re.N;
|
|
30605
30634
|
else
|
|
30606
30635
|
$e = gr.prototype;
|
|
30607
|
-
|
|
30636
|
+
pe = Js(ne, function() {
|
|
30608
30637
|
if (Object.getPrototypeOf(this) !== Je)
|
|
30609
|
-
throw new Rr("Use 'new' to construct " +
|
|
30638
|
+
throw new Rr("Use 'new' to construct " + Se);
|
|
30610
30639
|
if (tt.$ === void 0)
|
|
30611
|
-
throw new Rr(
|
|
30640
|
+
throw new Rr(Se + " has no accessible constructor");
|
|
30612
30641
|
var It = tt.$[arguments.length];
|
|
30613
30642
|
if (It === void 0)
|
|
30614
|
-
throw new Rr(`Tried to invoke ctor of ${
|
|
30643
|
+
throw new Rr(`Tried to invoke ctor of ${Se} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(tt.$).toString()}) parameters instead!`);
|
|
30615
30644
|
return It.apply(this, arguments);
|
|
30616
30645
|
});
|
|
30617
|
-
var Je = Object.create($e, { constructor: { value:
|
|
30618
|
-
|
|
30619
|
-
var tt = new nl(
|
|
30620
|
-
tt.A && (tt.A.qa === void 0 && (tt.A.qa = []), tt.A.qa.push(tt)),
|
|
30621
|
-
var vt = new vr(
|
|
30622
|
-
return Jr[d] = { pointerType: $e, Jb: vt }, ns(ne,
|
|
30646
|
+
var Je = Object.create($e, { constructor: { value: pe } });
|
|
30647
|
+
pe.prototype = Je;
|
|
30648
|
+
var tt = new nl(Se, pe, Je, Ne, Re, I, K, X);
|
|
30649
|
+
tt.A && (tt.A.qa === void 0 && (tt.A.qa = []), tt.A.qa.push(tt)), Re = new vr(Se, tt, !0, !1), $e = new vr(Se + "*", tt, !1, !1);
|
|
30650
|
+
var vt = new vr(Se + " const*", tt, !1, !0);
|
|
30651
|
+
return Jr[d] = { pointerType: $e, Jb: vt }, ns(ne, pe), [Re, $e, vt];
|
|
30623
30652
|
});
|
|
30624
30653
|
}, _embind_register_class_class_function: function(d, h, v, w, x, I, B) {
|
|
30625
30654
|
var K = gi(v, w);
|
|
30626
|
-
h = xt(h), I = on(x, I), In([], [d], function(
|
|
30655
|
+
h = xt(h), I = on(x, I), In([], [d], function(le) {
|
|
30627
30656
|
function X() {
|
|
30628
|
-
On(`Cannot call ${
|
|
30657
|
+
On(`Cannot call ${Se} due to unbound types`, K);
|
|
30629
30658
|
}
|
|
30630
|
-
|
|
30631
|
-
var
|
|
30659
|
+
le = le[0];
|
|
30660
|
+
var Se = `${le.name}.${h}`;
|
|
30632
30661
|
h.startsWith("@@") && (h = Symbol[h.substring(2)]);
|
|
30633
|
-
var Me =
|
|
30634
|
-
return Me[h] === void 0 ? (X.ha = v - 1, Me[h] = X) : (el(Me, h,
|
|
30635
|
-
if (Ne = fo(
|
|
30636
|
-
for (const ne of
|
|
30662
|
+
var Me = le.i.constructor;
|
|
30663
|
+
return Me[h] === void 0 ? (X.ha = v - 1, Me[h] = X) : (el(Me, h, Se), Me[h].B[v - 1] = X), In([], K, function(Ne) {
|
|
30664
|
+
if (Ne = fo(Se, [Ne[0], null].concat(Ne.slice(1)), null, I, B), Me[h].B === void 0 ? (Ne.ha = v - 1, Me[h] = Ne) : Me[h].B[v - 1] = Ne, le.i.qa)
|
|
30665
|
+
for (const ne of le.i.qa)
|
|
30637
30666
|
ne.constructor.hasOwnProperty(h) || (ne.constructor[h] = Ne);
|
|
30638
30667
|
return [];
|
|
30639
30668
|
}), [];
|
|
30640
30669
|
});
|
|
30641
30670
|
}, _embind_register_class_class_property: function(d, h, v, w, x, I, B, K) {
|
|
30642
|
-
h = xt(h), I = on(x, I), In([], [d], function(
|
|
30643
|
-
|
|
30644
|
-
var X = `${
|
|
30671
|
+
h = xt(h), I = on(x, I), In([], [d], function(le) {
|
|
30672
|
+
le = le[0];
|
|
30673
|
+
var X = `${le.name}.${h}`, Se = { get() {
|
|
30645
30674
|
On(`Cannot access ${X} due to unbound types`, [v]);
|
|
30646
30675
|
}, enumerable: !0, configurable: !0 };
|
|
30647
|
-
return
|
|
30676
|
+
return Se.set = K ? () => {
|
|
30648
30677
|
On(`Cannot access ${X} due to unbound types`, [v]);
|
|
30649
30678
|
} : () => {
|
|
30650
30679
|
it(`${X} is a read-only property`);
|
|
30651
|
-
}, Object.defineProperty(
|
|
30680
|
+
}, Object.defineProperty(le.i.constructor, h, Se), In([], [v], function(Me) {
|
|
30652
30681
|
Me = Me[0];
|
|
30653
30682
|
var Ne = { get() {
|
|
30654
30683
|
return Me.fromWireType(I(w));
|
|
30655
30684
|
}, enumerable: !0 };
|
|
30656
30685
|
return K && (K = on(B, K), Ne.set = (ne) => {
|
|
30657
|
-
var
|
|
30658
|
-
K(w, Me.toWireType(
|
|
30659
|
-
}), Object.defineProperty(
|
|
30686
|
+
var pe = [];
|
|
30687
|
+
K(w, Me.toWireType(pe, ne)), Yr(pe);
|
|
30688
|
+
}), Object.defineProperty(le.i.constructor, h, Ne), [];
|
|
30660
30689
|
}), [];
|
|
30661
30690
|
});
|
|
30662
30691
|
}, _embind_register_class_constructor: function(d, h, v, w, x, I) {
|
|
30663
30692
|
var B = gi(h, v);
|
|
30664
30693
|
x = on(w, x), In([], [d], function(K) {
|
|
30665
30694
|
K = K[0];
|
|
30666
|
-
var
|
|
30695
|
+
var le = `constructor ${K.name}`;
|
|
30667
30696
|
if (K.i.$ === void 0 && (K.i.$ = []), K.i.$[h - 1] !== void 0)
|
|
30668
30697
|
throw new Rr(`Cannot register multiple constructors with identical number of parameters (${h - 1}) for class '${K.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
30669
30698
|
return K.i.$[h - 1] = () => {
|
|
30670
30699
|
On(`Cannot construct ${K.name} due to unbound types`, B);
|
|
30671
30700
|
}, In([], B, function(X) {
|
|
30672
|
-
return X.splice(1, 0, null), K.i.$[h - 1] = fo(
|
|
30701
|
+
return X.splice(1, 0, null), K.i.$[h - 1] = fo(le, X, null, x, I), [];
|
|
30673
30702
|
}), [];
|
|
30674
30703
|
});
|
|
30675
30704
|
}, _embind_register_class_function: function(d, h, v, w, x, I, B, K) {
|
|
30676
|
-
var
|
|
30705
|
+
var le = gi(v, w);
|
|
30677
30706
|
h = xt(h), I = on(x, I), In([], [d], function(X) {
|
|
30678
|
-
function
|
|
30679
|
-
On(`Cannot call ${Me} due to unbound types`,
|
|
30707
|
+
function Se() {
|
|
30708
|
+
On(`Cannot call ${Me} due to unbound types`, le);
|
|
30680
30709
|
}
|
|
30681
30710
|
X = X[0];
|
|
30682
30711
|
var Me = `${X.name}.${h}`;
|
|
30683
30712
|
h.startsWith("@@") && (h = Symbol[h.substring(2)]), K && X.i.qb.push(h);
|
|
30684
30713
|
var Ne = X.i.N, ne = Ne[h];
|
|
30685
|
-
return ne === void 0 || ne.B === void 0 && ne.className !== X.name && ne.ha === v - 2 ? (
|
|
30686
|
-
return
|
|
30714
|
+
return ne === void 0 || ne.B === void 0 && ne.className !== X.name && ne.ha === v - 2 ? (Se.ha = v - 2, Se.className = X.name, Ne[h] = Se) : (el(Ne, h, Me), Ne[h].B[v - 2] = Se), In([], le, function(pe) {
|
|
30715
|
+
return pe = fo(Me, pe, X, I, B), Ne[h].B === void 0 ? (pe.ha = v - 2, Ne[h] = pe) : Ne[h].B[v - 2] = pe, [];
|
|
30687
30716
|
}), [];
|
|
30688
30717
|
});
|
|
30689
|
-
}, _embind_register_class_property: function(d, h, v, w, x, I, B, K,
|
|
30690
|
-
h = xt(h), x = on(w, x), In([], [d], function(
|
|
30691
|
-
|
|
30692
|
-
var Me = `${
|
|
30718
|
+
}, _embind_register_class_property: function(d, h, v, w, x, I, B, K, le, X) {
|
|
30719
|
+
h = xt(h), x = on(w, x), In([], [d], function(Se) {
|
|
30720
|
+
Se = Se[0];
|
|
30721
|
+
var Me = `${Se.name}.${h}`, Ne = { get() {
|
|
30693
30722
|
On(`Cannot access ${Me} due to unbound types`, [v, B]);
|
|
30694
30723
|
}, enumerable: !0, configurable: !0 };
|
|
30695
|
-
return Ne.set =
|
|
30724
|
+
return Ne.set = le ? () => {
|
|
30696
30725
|
On(`Cannot access ${Me} due to unbound types`, [v, B]);
|
|
30697
30726
|
} : () => {
|
|
30698
30727
|
it(Me + " is a read-only property");
|
|
30699
|
-
}, Object.defineProperty(
|
|
30700
|
-
var
|
|
30701
|
-
var Je = Ic(this,
|
|
30702
|
-
return
|
|
30728
|
+
}, Object.defineProperty(Se.i.N, h, Ne), In([], le ? [v, B] : [v], function(ne) {
|
|
30729
|
+
var pe = ne[0], Re = { get() {
|
|
30730
|
+
var Je = Ic(this, Se, Me + " getter");
|
|
30731
|
+
return pe.fromWireType(x(I, Je));
|
|
30703
30732
|
}, enumerable: !0 };
|
|
30704
|
-
if (
|
|
30705
|
-
|
|
30733
|
+
if (le) {
|
|
30734
|
+
le = on(K, le);
|
|
30706
30735
|
var $e = ne[1];
|
|
30707
|
-
|
|
30708
|
-
var tt = Ic(this,
|
|
30709
|
-
|
|
30736
|
+
Re.set = function(Je) {
|
|
30737
|
+
var tt = Ic(this, Se, Me + " setter"), vt = [];
|
|
30738
|
+
le(X, tt, $e.toWireType(vt, Je)), Yr(vt);
|
|
30710
30739
|
};
|
|
30711
30740
|
}
|
|
30712
|
-
return Object.defineProperty(
|
|
30741
|
+
return Object.defineProperty(Se.i.N, h, Re), [];
|
|
30713
30742
|
}), [];
|
|
30714
30743
|
});
|
|
30715
30744
|
}, _embind_register_emval: function(d, h) {
|
|
@@ -30751,10 +30780,10 @@ function KP() {
|
|
|
30751
30780
|
var B = 32 - 8 * v;
|
|
30752
30781
|
I = (K) => K << B >>> B;
|
|
30753
30782
|
}
|
|
30754
|
-
v = h.includes("unsigned") ? function(K,
|
|
30755
|
-
return
|
|
30756
|
-
} : function(K,
|
|
30757
|
-
return
|
|
30783
|
+
v = h.includes("unsigned") ? function(K, le) {
|
|
30784
|
+
return le >>> 0;
|
|
30785
|
+
} : function(K, le) {
|
|
30786
|
+
return le;
|
|
30758
30787
|
}, Mn(d, { name: h, fromWireType: I, toWireType: v, argPackAdvance: 8, readValueFromPointer: Mc(h, x, w !== 0), K: null });
|
|
30759
30788
|
}, _embind_register_memory_view: function(d, h, v) {
|
|
30760
30789
|
function w(I) {
|
|
@@ -30771,18 +30800,18 @@ function KP() {
|
|
|
30771
30800
|
var x = te[w >> 2], I = w + 4;
|
|
30772
30801
|
if (v)
|
|
30773
30802
|
for (var B = I, K = 0; K <= x; ++K) {
|
|
30774
|
-
var
|
|
30775
|
-
if (K == x || le
|
|
30776
|
-
if (B = B ? Le(
|
|
30803
|
+
var le = I + K;
|
|
30804
|
+
if (K == x || ce[le] == 0) {
|
|
30805
|
+
if (B = B ? Le(ce, B, le - B) : "", X === void 0)
|
|
30777
30806
|
var X = B;
|
|
30778
30807
|
else
|
|
30779
30808
|
X += "\0", X += B;
|
|
30780
|
-
B =
|
|
30809
|
+
B = le + 1;
|
|
30781
30810
|
}
|
|
30782
30811
|
}
|
|
30783
30812
|
else {
|
|
30784
30813
|
for (X = Array(x), K = 0; K < x; ++K)
|
|
30785
|
-
X[K] = String.fromCharCode(
|
|
30814
|
+
X[K] = String.fromCharCode(ce[I + K]);
|
|
30786
30815
|
X = X.join("");
|
|
30787
30816
|
}
|
|
30788
30817
|
return Qr(w), X;
|
|
@@ -30790,17 +30819,17 @@ function KP() {
|
|
|
30790
30819
|
x instanceof ArrayBuffer && (x = new Uint8Array(x));
|
|
30791
30820
|
var I = typeof x == "string";
|
|
30792
30821
|
I || x instanceof Uint8Array || x instanceof Uint8ClampedArray || x instanceof Int8Array || it("Cannot pass non-string to std::string");
|
|
30793
|
-
var B = v && I ? Tt(x) : x.length, K = aa(4 + B + 1),
|
|
30822
|
+
var B = v && I ? Tt(x) : x.length, K = aa(4 + B + 1), le = K + 4;
|
|
30794
30823
|
if (te[K >> 2] = B, v && I)
|
|
30795
|
-
$t(x,
|
|
30824
|
+
$t(x, ce, le, B + 1);
|
|
30796
30825
|
else if (I)
|
|
30797
30826
|
for (I = 0; I < B; ++I) {
|
|
30798
30827
|
var X = x.charCodeAt(I);
|
|
30799
|
-
255 < X && (Qr(
|
|
30828
|
+
255 < X && (Qr(le), it("String has UTF-16 code units that do not fit in 8 bits")), ce[le + I] = X;
|
|
30800
30829
|
}
|
|
30801
30830
|
else
|
|
30802
30831
|
for (I = 0; I < B; ++I)
|
|
30803
|
-
le
|
|
30832
|
+
ce[le + I] = x[I];
|
|
30804
30833
|
return w !== null && w.push(Qr, K), K;
|
|
30805
30834
|
}, argPackAdvance: 8, readValueFromPointer: es, K: function(w) {
|
|
30806
30835
|
Qr(w);
|
|
@@ -30810,23 +30839,23 @@ function KP() {
|
|
|
30810
30839
|
var w = jd, x = Fd, I = ol, B = () => de, K = 1;
|
|
30811
30840
|
else
|
|
30812
30841
|
h === 4 && (w = Ud, x = Bd, I = Vd, B = () => te, K = 2);
|
|
30813
|
-
Mn(d, { name: v, fromWireType: function(
|
|
30814
|
-
for (var X = te[
|
|
30815
|
-
var
|
|
30816
|
-
(ne == X ||
|
|
30842
|
+
Mn(d, { name: v, fromWireType: function(le) {
|
|
30843
|
+
for (var X = te[le >> 2], Se = B(), Me, Ne = le + 4, ne = 0; ne <= X; ++ne) {
|
|
30844
|
+
var pe = le + 4 + ne * h;
|
|
30845
|
+
(ne == X || Se[pe >> K] == 0) && (Ne = w(Ne, pe - Ne), Me === void 0 ? Me = Ne : (Me += "\0", Me += Ne), Ne = pe + h);
|
|
30817
30846
|
}
|
|
30818
|
-
return Qr(
|
|
30819
|
-
}, toWireType: function(
|
|
30847
|
+
return Qr(le), Me;
|
|
30848
|
+
}, toWireType: function(le, X) {
|
|
30820
30849
|
typeof X != "string" && it(`Cannot pass non-string to C++ string type ${v}`);
|
|
30821
|
-
var
|
|
30822
|
-
return te[Me >> 2] =
|
|
30823
|
-
}, argPackAdvance: 8, readValueFromPointer: es, K: function(
|
|
30824
|
-
Qr(
|
|
30850
|
+
var Se = I(X), Me = aa(4 + Se + h);
|
|
30851
|
+
return te[Me >> 2] = Se >> K, x(X, Me + 4, Se + h), le !== null && le.push(Qr, Me), Me;
|
|
30852
|
+
}, argPackAdvance: 8, readValueFromPointer: es, K: function(le) {
|
|
30853
|
+
Qr(le);
|
|
30825
30854
|
} });
|
|
30826
30855
|
}, _embind_register_value_object: function(d, h, v, w, x, I) {
|
|
30827
30856
|
Zo[d] = { name: xt(h), Va: on(v, w), W: on(x, I), fb: [] };
|
|
30828
|
-
}, _embind_register_value_object_field: function(d, h, v, w, x, I, B, K,
|
|
30829
|
-
Zo[d].fb.push({ Pb: xt(h), Vb: v, Tb: on(w, x), Ub: I, kc: B, jc: on(K,
|
|
30857
|
+
}, _embind_register_value_object_field: function(d, h, v, w, x, I, B, K, le, X) {
|
|
30858
|
+
Zo[d].fb.push({ Pb: xt(h), Vb: v, Tb: on(w, x), Ub: I, kc: B, jc: on(K, le), lc: X });
|
|
30830
30859
|
}, _embind_register_void: function(d, h) {
|
|
30831
30860
|
h = xt(h), Mn(d, { cc: !0, name: h, argPackAdvance: 0, fromWireType: function() {
|
|
30832
30861
|
}, toWireType: function() {
|
|
@@ -30850,13 +30879,13 @@ function KP() {
|
|
|
30850
30879
|
if (x !== void 0)
|
|
30851
30880
|
return x;
|
|
30852
30881
|
var I = Array(d - 1);
|
|
30853
|
-
return x = Wd((B, K,
|
|
30854
|
-
for (var
|
|
30855
|
-
I[Me] = v[Me + 1].readValueFromPointer(X +
|
|
30882
|
+
return x = Wd((B, K, le, X) => {
|
|
30883
|
+
for (var Se = 0, Me = 0; Me < d - 1; ++Me)
|
|
30884
|
+
I[Me] = v[Me + 1].readValueFromPointer(X + Se), Se += v[Me + 1].argPackAdvance;
|
|
30856
30885
|
for (B = B[K].apply(B, I), Me = 0; Me < d - 1; ++Me)
|
|
30857
30886
|
v[Me + 1].Lb && v[Me + 1].Lb(I[Me]);
|
|
30858
30887
|
if (!w.cc)
|
|
30859
|
-
return w.toWireType(
|
|
30888
|
+
return w.toWireType(le, B);
|
|
30860
30889
|
}), Oc[h] = x;
|
|
30861
30890
|
}, _emval_get_property: function(d, h) {
|
|
30862
30891
|
return d = pr(d), h = pr(h), Ir(d[h]);
|
|
@@ -30892,13 +30921,13 @@ function KP() {
|
|
|
30892
30921
|
}, emscripten_asm_const_int: (d, h, v) => {
|
|
30893
30922
|
al.length = 0;
|
|
30894
30923
|
var w;
|
|
30895
|
-
for (v >>= 2; w =
|
|
30924
|
+
for (v >>= 2; w = ce[h++]; )
|
|
30896
30925
|
v += w != 105 & v, al.push(w == 105 ? O[v] : Ke[v++ >> 1]), ++v;
|
|
30897
30926
|
return Bs[d].apply(null, al);
|
|
30898
30927
|
}, emscripten_date_now: function() {
|
|
30899
30928
|
return Date.now();
|
|
30900
|
-
}, emscripten_get_now: () => performance.now(), emscripten_memcpy_big: (d, h, v) =>
|
|
30901
|
-
var h =
|
|
30929
|
+
}, emscripten_get_now: () => performance.now(), emscripten_memcpy_big: (d, h, v) => ce.copyWithin(d, h, h + v), emscripten_resize_heap: (d) => {
|
|
30930
|
+
var h = ce.length;
|
|
30902
30931
|
if (d >>>= 0, 2147483648 < d)
|
|
30903
30932
|
return !1;
|
|
30904
30933
|
for (var v = 1; 4 >= v; v *= 2) {
|
|
@@ -30921,7 +30950,7 @@ function KP() {
|
|
|
30921
30950
|
}
|
|
30922
30951
|
return !1;
|
|
30923
30952
|
}, emscripten_webgl_enable_extension: function(d, h) {
|
|
30924
|
-
return d = Yt[d], h = h ? Le(
|
|
30953
|
+
return d = Yt[d], h = h ? Le(ce, h) : "", h.startsWith("GL_") && (h = h.substr(3)), h == "WEBGL_draw_instanced_base_vertex_base_instance" && na(he), h == "WEBGL_multi_draw_instanced_base_vertex_base_instance" && Lc(he), h == "WEBGL_multi_draw" && ll(he), !!d.C.getExtension(h);
|
|
30925
30954
|
}, emscripten_webgl_get_current_context: function() {
|
|
30926
30955
|
return yr ? yr.handle : 0;
|
|
30927
30956
|
}, emscripten_webgl_make_context_current: function(d) {
|
|
@@ -30937,8 +30966,8 @@ function KP() {
|
|
|
30937
30966
|
return Fc().forEach(function(w, x) {
|
|
30938
30967
|
var I = h + v;
|
|
30939
30968
|
for (x = te[d + 4 * x >> 2] = I, I = 0; I < w.length; ++I)
|
|
30940
|
-
|
|
30941
|
-
|
|
30969
|
+
me[x++ >> 0] = w.charCodeAt(I);
|
|
30970
|
+
me[x >> 0] = 0, v += w.length + 1;
|
|
30942
30971
|
}), 0;
|
|
30943
30972
|
}, environ_sizes_get: (d, h) => {
|
|
30944
30973
|
var v = Fc();
|
|
@@ -30972,9 +31001,9 @@ function KP() {
|
|
|
30972
31001
|
var x = $r(d);
|
|
30973
31002
|
d = h;
|
|
30974
31003
|
for (var I, B = h = 0; B < v; B++) {
|
|
30975
|
-
var K = te[d >> 2],
|
|
31004
|
+
var K = te[d >> 2], le = te[d + 4 >> 2];
|
|
30976
31005
|
d += 8;
|
|
30977
|
-
var X = x,
|
|
31006
|
+
var X = x, Se = K, Me = le, Ne = I, ne = me;
|
|
30978
31007
|
if (0 > Me || 0 > Ne)
|
|
30979
31008
|
throw new De(28);
|
|
30980
31009
|
if (X.X === null)
|
|
@@ -30985,19 +31014,19 @@ function KP() {
|
|
|
30985
31014
|
throw new De(31);
|
|
30986
31015
|
if (!X.m.read)
|
|
30987
31016
|
throw new De(28);
|
|
30988
|
-
var
|
|
30989
|
-
if (!
|
|
31017
|
+
var pe = typeof Ne < "u";
|
|
31018
|
+
if (!pe)
|
|
30990
31019
|
Ne = X.position;
|
|
30991
31020
|
else if (!X.seekable)
|
|
30992
31021
|
throw new De(70);
|
|
30993
|
-
var
|
|
30994
|
-
|
|
30995
|
-
var $e =
|
|
31022
|
+
var Re = X.m.read(X, ne, Se, Me, Ne);
|
|
31023
|
+
pe || (X.position += Re);
|
|
31024
|
+
var $e = Re;
|
|
30996
31025
|
if (0 > $e) {
|
|
30997
31026
|
var Je = -1;
|
|
30998
31027
|
break e;
|
|
30999
31028
|
}
|
|
31000
|
-
if (h += $e, $e <
|
|
31029
|
+
if (h += $e, $e < le)
|
|
31001
31030
|
break;
|
|
31002
31031
|
typeof I < "u" && (I += $e);
|
|
31003
31032
|
}
|
|
@@ -31027,9 +31056,9 @@ function KP() {
|
|
|
31027
31056
|
var x = $r(d);
|
|
31028
31057
|
d = h;
|
|
31029
31058
|
for (var I, B = h = 0; B < v; B++) {
|
|
31030
|
-
var K = te[d >> 2],
|
|
31059
|
+
var K = te[d >> 2], le = te[d + 4 >> 2];
|
|
31031
31060
|
d += 8;
|
|
31032
|
-
var X = x,
|
|
31061
|
+
var X = x, Se = K, Me = le, Ne = I, ne = me;
|
|
31033
31062
|
if (0 > Me || 0 > Ne)
|
|
31034
31063
|
throw new De(28);
|
|
31035
31064
|
if (X.X === null)
|
|
@@ -31041,14 +31070,14 @@ function KP() {
|
|
|
31041
31070
|
if (!X.m.write)
|
|
31042
31071
|
throw new De(28);
|
|
31043
31072
|
X.seekable && X.flags & 1024 && qs(X, 0, 2);
|
|
31044
|
-
var
|
|
31045
|
-
if (!
|
|
31073
|
+
var pe = typeof Ne < "u";
|
|
31074
|
+
if (!pe)
|
|
31046
31075
|
Ne = X.position;
|
|
31047
31076
|
else if (!X.seekable)
|
|
31048
31077
|
throw new De(70);
|
|
31049
|
-
var
|
|
31050
|
-
|
|
31051
|
-
var $e =
|
|
31078
|
+
var Re = X.m.write(X, ne, Se, Me, Ne, void 0);
|
|
31079
|
+
pe || (X.position += Re);
|
|
31080
|
+
var $e = Re;
|
|
31052
31081
|
if (0 > $e) {
|
|
31053
31082
|
var Je = -1;
|
|
31054
31083
|
break e;
|
|
@@ -31089,12 +31118,12 @@ function KP() {
|
|
|
31089
31118
|
he.blendEquation(d);
|
|
31090
31119
|
}, glBlendFunc: function(d, h) {
|
|
31091
31120
|
he.blendFunc(d, h);
|
|
31092
|
-
}, glBlitFramebuffer: function(d, h, v, w, x, I, B, K,
|
|
31093
|
-
he.blitFramebuffer(d, h, v, w, x, I, B, K,
|
|
31121
|
+
}, glBlitFramebuffer: function(d, h, v, w, x, I, B, K, le, X) {
|
|
31122
|
+
he.blitFramebuffer(d, h, v, w, x, I, B, K, le, X);
|
|
31094
31123
|
}, glBufferData: function(d, h, v, w) {
|
|
31095
|
-
v && h ? he.bufferData(d,
|
|
31124
|
+
v && h ? he.bufferData(d, ce, w, v, h) : he.bufferData(d, h, w);
|
|
31096
31125
|
}, glBufferSubData: function(d, h, v, w) {
|
|
31097
|
-
v && he.bufferSubData(d, h,
|
|
31126
|
+
v && he.bufferSubData(d, h, ce, w, v);
|
|
31098
31127
|
}, glClear: function(d) {
|
|
31099
31128
|
he.clear(d);
|
|
31100
31129
|
}, glClearBufferfv: function(d, h, v) {
|
|
@@ -31260,19 +31289,19 @@ function KP() {
|
|
|
31260
31289
|
}
|
|
31261
31290
|
return h;
|
|
31262
31291
|
}, glGetUniformBlockIndex: function(d, h) {
|
|
31263
|
-
return he.getUniformBlockIndex(nr[d], h ? Le(
|
|
31292
|
+
return he.getUniformBlockIndex(nr[d], h ? Le(ce, h) : "");
|
|
31264
31293
|
}, glGetUniformLocation: function(d, h) {
|
|
31265
|
-
if (h = h ? Le(
|
|
31294
|
+
if (h = h ? Le(ce, h) : "", d = nr[d]) {
|
|
31266
31295
|
var v = d, w = v.oa, x = v.zb, I;
|
|
31267
31296
|
if (!w)
|
|
31268
31297
|
for (v.oa = w = {}, v.yb = {}, I = 0; I < he.getProgramParameter(v, 35718); ++I) {
|
|
31269
31298
|
var B = he.getActiveUniform(v, I), K = B.name;
|
|
31270
31299
|
B = B.size;
|
|
31271
|
-
var
|
|
31272
|
-
|
|
31300
|
+
var le = mo(K);
|
|
31301
|
+
le = 0 < le ? K.slice(0, le) : K;
|
|
31273
31302
|
var X = v.Ya;
|
|
31274
|
-
for (v.Ya += B, x[
|
|
31275
|
-
w[X] = K, v.yb[X++] =
|
|
31303
|
+
for (v.Ya += B, x[le] = [B, X], K = 0; K < B; ++K)
|
|
31304
|
+
w[X] = K, v.yb[X++] = le;
|
|
31276
31305
|
}
|
|
31277
31306
|
if (v = d.oa, w = 0, x = h, I = mo(h), 0 < I && (w = parseInt(h.slice(I + 1)) >>> 0, x = h.slice(0, I)), (x = d.zb[x]) && w < x[0] && (w += x[1], v[w] = v[w] || he.getUniformLocation(d, h)))
|
|
31278
31307
|
return w;
|
|
@@ -31301,7 +31330,7 @@ function KP() {
|
|
|
31301
31330
|
}, glShaderSource: function(d, h, v, w) {
|
|
31302
31331
|
for (var x = "", I = 0; I < h; ++I) {
|
|
31303
31332
|
var B = w ? O[w + 4 * I >> 2] : -1, K = O[v + 4 * I >> 2];
|
|
31304
|
-
B = K ? Le(
|
|
31333
|
+
B = K ? Le(ce, K, 0 > B ? void 0 : B) : "", x += B;
|
|
31305
31334
|
}
|
|
31306
31335
|
he.shaderSource(Ar[d], x);
|
|
31307
31336
|
}, glStencilFunc: function(d, h, v) {
|
|
@@ -31318,12 +31347,12 @@ function KP() {
|
|
|
31318
31347
|
he.texParameteri(d, h, v);
|
|
31319
31348
|
}, glTexStorage2D: function(d, h, v, w, x) {
|
|
31320
31349
|
he.texStorage2D(d, h, v, w, x);
|
|
31321
|
-
}, glTexSubImage2D: function(d, h, v, w, x, I, B, K,
|
|
31350
|
+
}, glTexSubImage2D: function(d, h, v, w, x, I, B, K, le) {
|
|
31322
31351
|
if (he.Qa)
|
|
31323
|
-
he.texSubImage2D(d, h, v, w, x, I, B, K,
|
|
31324
|
-
else if (
|
|
31352
|
+
he.texSubImage2D(d, h, v, w, x, I, B, K, le);
|
|
31353
|
+
else if (le) {
|
|
31325
31354
|
var X = Bc(K);
|
|
31326
|
-
he.texSubImage2D(d, h, v, w, x, I, B, K, X,
|
|
31355
|
+
he.texSubImage2D(d, h, v, w, x, I, B, K, X, le >> 31 - Math.clz32(X.BYTES_PER_ELEMENT));
|
|
31327
31356
|
} else
|
|
31328
31357
|
he.texSubImage2D(d, h, v, w, x, I, B, K, null);
|
|
31329
31358
|
}, glUniform1i: function(d, h) {
|
|
@@ -31376,14 +31405,14 @@ function KP() {
|
|
|
31376
31405
|
var Wc = () => (Wc = oe.__errno_location)(), rr = T._ma_device__on_notification_unlocked = (d) => (rr = T._ma_device__on_notification_unlocked = oe.ma_device__on_notification_unlocked)(d);
|
|
31377
31406
|
T._ma_malloc_emscripten = (d, h) => (T._ma_malloc_emscripten = oe.ma_malloc_emscripten)(d, h), T._ma_free_emscripten = (d, h) => (T._ma_free_emscripten = oe.ma_free_emscripten)(d, h);
|
|
31378
31407
|
var go = T._ma_device_process_pcm_frames_capture__webaudio = (d, h, v) => (go = T._ma_device_process_pcm_frames_capture__webaudio = oe.ma_device_process_pcm_frames_capture__webaudio)(d, h, v), ml = T._ma_device_process_pcm_frames_playback__webaudio = (d, h, v) => (ml = T._ma_device_process_pcm_frames_playback__webaudio = oe.ma_device_process_pcm_frames_playback__webaudio)(d, h, v), gl = (d) => (gl = oe.__getTypeName)(d);
|
|
31379
|
-
T.__embind_initialize_bindings = () => (T.__embind_initialize_bindings = oe._embind_initialize_bindings)(), T.dynCall_iiiji = (d, h, v, w, x, I) => (T.dynCall_iiiji = oe.dynCall_iiiji)(d, h, v, w, x, I), T.dynCall_iij = (d, h, v, w) => (T.dynCall_iij = oe.dynCall_iij)(d, h, v, w), T.dynCall_iiji = (d, h, v, w, x) => (T.dynCall_iiji = oe.dynCall_iiji)(d, h, v, w, x), T.dynCall_jii = (d, h, v) => (T.dynCall_jii = oe.dynCall_jii)(d, h, v), T.dynCall_vijj = (d, h, v, w, x, I) => (T.dynCall_vijj = oe.dynCall_vijj)(d, h, v, w, x, I), T.dynCall_jiji = (d, h, v, w, x) => (T.dynCall_jiji = oe.dynCall_jiji)(d, h, v, w, x), T.dynCall_viijii = (d, h, v, w, x, I, B) => (T.dynCall_viijii = oe.dynCall_viijii)(d, h, v, w, x, I, B), T.dynCall_iiiiij = (d, h, v, w, x, I, B) => (T.dynCall_iiiiij = oe.dynCall_iiiiij)(d, h, v, w, x, I, B), T.dynCall_iiiiijj = (d, h, v, w, x, I, B, K,
|
|
31408
|
+
T.__embind_initialize_bindings = () => (T.__embind_initialize_bindings = oe._embind_initialize_bindings)(), T.dynCall_iiiji = (d, h, v, w, x, I) => (T.dynCall_iiiji = oe.dynCall_iiiji)(d, h, v, w, x, I), T.dynCall_iij = (d, h, v, w) => (T.dynCall_iij = oe.dynCall_iij)(d, h, v, w), T.dynCall_iiji = (d, h, v, w, x) => (T.dynCall_iiji = oe.dynCall_iiji)(d, h, v, w, x), T.dynCall_jii = (d, h, v) => (T.dynCall_jii = oe.dynCall_jii)(d, h, v), T.dynCall_vijj = (d, h, v, w, x, I) => (T.dynCall_vijj = oe.dynCall_vijj)(d, h, v, w, x, I), T.dynCall_jiji = (d, h, v, w, x) => (T.dynCall_jiji = oe.dynCall_jiji)(d, h, v, w, x), T.dynCall_viijii = (d, h, v, w, x, I, B) => (T.dynCall_viijii = oe.dynCall_viijii)(d, h, v, w, x, I, B), T.dynCall_iiiiij = (d, h, v, w, x, I, B) => (T.dynCall_iiiiij = oe.dynCall_iiiiij)(d, h, v, w, x, I, B), T.dynCall_iiiiijj = (d, h, v, w, x, I, B, K, le) => (T.dynCall_iiiiijj = oe.dynCall_iiiiijj)(d, h, v, w, x, I, B, K, le), T.dynCall_iiiiiijj = (d, h, v, w, x, I, B, K, le, X) => (T.dynCall_iiiiiijj = oe.dynCall_iiiiiijj)(d, h, v, w, x, I, B, K, le, X), T.___start_em_js = 531476, T.___stop_em_js = 534231;
|
|
31380
31409
|
var ds;
|
|
31381
31410
|
er = function d() {
|
|
31382
31411
|
ds || vl(), ds || (er = d);
|
|
31383
31412
|
};
|
|
31384
31413
|
function vl() {
|
|
31385
31414
|
function d() {
|
|
31386
|
-
if (!ds && (ds = !0, T.calledRun = !0, !
|
|
31415
|
+
if (!ds && (ds = !0, T.calledRun = !0, !Pe)) {
|
|
31387
31416
|
if (T.noFSInit || $o || ($o = !0, Qa(), T.stdin = T.stdin, T.stdout = T.stdout, T.stderr = T.stderr, T.stdin ? qo("stdin", T.stdin) : Ya("/dev/tty", "/dev/stdin"), T.stdout ? qo("stdout", null, T.stdout) : Ya("/dev/tty", "/dev/stdout"), T.stderr ? qo("stderr", null, T.stderr) : Ya("/dev/tty1", "/dev/stderr"), $s("/dev/stdin", 0), $s("/dev/stdout", 1), $s("/dev/stderr", 1)), Vs = !1, P(qe), N(T), T.onRuntimeInitialized && T.onRuntimeInitialized(), T.postRun)
|
|
31388
31417
|
for (typeof T.postRun == "function" && (T.postRun = [T.postRun]); T.postRun.length; ) {
|
|
31389
31418
|
var h = T.postRun.shift();
|
|
@@ -31604,23 +31633,23 @@ function KP() {
|
|
|
31604
31633
|
var T = _.canvas, N = _.artboard, A = _.stateMachines, H = A === void 0 ? [] : A, z = _.renderer, ee = _.rive, U = _.fit, L = _.alignment, F = _.isTouchScrollEnabled, G = F === void 0 ? !1 : F, se = _.layoutScaleFactor, Q = se === void 0 ? 1 : se;
|
|
31605
31634
|
if (!T || !H.length || !z || !ee || !N || typeof window > "u")
|
|
31606
31635
|
return null;
|
|
31607
|
-
var $ = null, q = !1, Y = function(
|
|
31608
|
-
if (q &&
|
|
31609
|
-
|
|
31636
|
+
var $ = null, q = !1, Y = function(Ie) {
|
|
31637
|
+
if (q && Ie instanceof MouseEvent) {
|
|
31638
|
+
Ie.type == "mouseup" && (q = !1);
|
|
31610
31639
|
return;
|
|
31611
31640
|
}
|
|
31612
|
-
q = G &&
|
|
31613
|
-
var We =
|
|
31614
|
-
if (!(!
|
|
31615
|
-
var
|
|
31641
|
+
q = G && Ie.type === "touchend" && $ === "touchstart", $ = Ie.type;
|
|
31642
|
+
var We = Ie.currentTarget.getBoundingClientRect(), oe = g(Ie, G), Pe = oe.clientX, me = oe.clientY;
|
|
31643
|
+
if (!(!Pe && !me)) {
|
|
31644
|
+
var ce = Pe - We.left, Ce = me - We.top, de = ee.computeAlignment(U, L, {
|
|
31616
31645
|
minX: 0,
|
|
31617
31646
|
minY: 0,
|
|
31618
31647
|
maxX: We.width,
|
|
31619
31648
|
maxY: We.height
|
|
31620
31649
|
}, N.bounds, Q), O = new ee.Mat2D();
|
|
31621
31650
|
de.invert(O);
|
|
31622
|
-
var te = new ee.Vec2D(
|
|
31623
|
-
switch (Ve.delete(), O.delete(), te.delete(), de.delete(),
|
|
31651
|
+
var te = new ee.Vec2D(ce, Ce), Ve = ee.mapXY(O, te), Ke = Ve.x(), Xe = Ve.y();
|
|
31652
|
+
switch (Ve.delete(), O.delete(), te.delete(), de.delete(), Ie.type) {
|
|
31624
31653
|
/**
|
|
31625
31654
|
* There's a 2px buffer for a hitRadius when translating the pointer coordinates
|
|
31626
31655
|
* down to the state machine. In cases where the hitbox is about that much away
|
|
@@ -31783,10 +31812,10 @@ function KP() {
|
|
|
31783
31812
|
});
|
|
31784
31813
|
var p = /* @__PURE__ */ function() {
|
|
31785
31814
|
var $ = function(q, Y) {
|
|
31786
|
-
return $ = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(fe,
|
|
31787
|
-
fe.__proto__ =
|
|
31788
|
-
} || function(fe,
|
|
31789
|
-
for (var We in
|
|
31815
|
+
return $ = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(fe, Ie) {
|
|
31816
|
+
fe.__proto__ = Ie;
|
|
31817
|
+
} || function(fe, Ie) {
|
|
31818
|
+
for (var We in Ie) Object.prototype.hasOwnProperty.call(Ie, We) && (fe[We] = Ie[We]);
|
|
31790
31819
|
}, $(q, Y);
|
|
31791
31820
|
};
|
|
31792
31821
|
return function(q, Y) {
|
|
@@ -32741,7 +32770,7 @@ To resolve, you may need to:`,
|
|
|
32741
32770
|
(function(P) {
|
|
32742
32771
|
P.OneShot = "oneshot", P.Loop = "loop", P.PingPong = "pingpong";
|
|
32743
32772
|
})(fe || (fe = {}));
|
|
32744
|
-
var
|
|
32773
|
+
var Ie = (
|
|
32745
32774
|
/** @class */
|
|
32746
32775
|
function() {
|
|
32747
32776
|
function P(y) {
|
|
@@ -32794,7 +32823,7 @@ To resolve, you may need to:`,
|
|
|
32794
32823
|
(function(P) {
|
|
32795
32824
|
P[P.AVAILABLE = 0] = "AVAILABLE", P[P.UNAVAILABLE = 1] = "UNAVAILABLE";
|
|
32796
32825
|
})(oe || (oe = {}));
|
|
32797
|
-
var
|
|
32826
|
+
var Pe = (
|
|
32798
32827
|
/** @class */
|
|
32799
32828
|
function(P) {
|
|
32800
32829
|
g(y, P);
|
|
@@ -32908,8 +32937,8 @@ To resolve, you may need to:`,
|
|
|
32908
32937
|
enumerable: !1,
|
|
32909
32938
|
configurable: !0
|
|
32910
32939
|
}), y;
|
|
32911
|
-
}(
|
|
32912
|
-
),
|
|
32940
|
+
}(Ie)
|
|
32941
|
+
), me = new Pe(), ce = (
|
|
32913
32942
|
/** @class */
|
|
32914
32943
|
function() {
|
|
32915
32944
|
function P() {
|
|
@@ -32919,7 +32948,7 @@ To resolve, you may need to:`,
|
|
|
32919
32948
|
}, P.prototype.disconnect = function() {
|
|
32920
32949
|
}, P;
|
|
32921
32950
|
}()
|
|
32922
|
-
),
|
|
32951
|
+
), Ce = globalThis.ResizeObserver || ce, de = (
|
|
32923
32952
|
/** @class */
|
|
32924
32953
|
function() {
|
|
32925
32954
|
function P() {
|
|
@@ -32929,7 +32958,7 @@ To resolve, you may need to:`,
|
|
|
32929
32958
|
M !== null ? M.onResize(S.target.clientWidth == 0 || S.target.clientHeight == 0) : y._resizeObserver.unobserve(S.target);
|
|
32930
32959
|
}, this._onObserved = function(S) {
|
|
32931
32960
|
S.forEach(y._onObservedEntry);
|
|
32932
|
-
}, this._resizeObserver = new
|
|
32961
|
+
}, this._resizeObserver = new Ce(this._onObserved);
|
|
32933
32962
|
}
|
|
32934
32963
|
return P.prototype.add = function(y, S) {
|
|
32935
32964
|
var M = {
|
|
@@ -32945,7 +32974,7 @@ To resolve, you may need to:`,
|
|
|
32945
32974
|
/** @class */
|
|
32946
32975
|
function() {
|
|
32947
32976
|
function P(y) {
|
|
32948
|
-
this.enableRiveAssetCDN = !0, this.referenceCount = 0, this.destroyed = !1, this.selfUnref = !1, this.src = y.src, this.buffer = y.buffer, y.assetLoader && (this.assetLoader = y.assetLoader), this.enableRiveAssetCDN = typeof y.enableRiveAssetCDN == "boolean" ? y.enableRiveAssetCDN : !0, this.eventManager = new
|
|
32977
|
+
this.enableRiveAssetCDN = !0, this.referenceCount = 0, this.destroyed = !1, this.selfUnref = !1, this.src = y.src, this.buffer = y.buffer, y.assetLoader && (this.assetLoader = y.assetLoader), this.enableRiveAssetCDN = typeof y.enableRiveAssetCDN == "boolean" ? y.enableRiveAssetCDN : !0, this.eventManager = new Ie(), y.onLoad && this.on(Y.Load, y.onLoad), y.onLoadError && this.on(Y.LoadError, y.onLoadError);
|
|
32949
32978
|
}
|
|
32950
32979
|
return P.prototype.releaseFile = function() {
|
|
32951
32980
|
var y;
|
|
@@ -33046,7 +33075,7 @@ To resolve, you may need to:`,
|
|
|
33046
33075
|
this.loaded = !1, this.destroyed = !1, this._observed = null, this.readyForPlaying = !1, this.artboard = null, this.eventCleanup = null, this.shouldDisableRiveListeners = !1, this.automaticallyHandleEvents = !1, this.enableRiveAssetCDN = !0, this._volume = 1, this._artboardWidth = void 0, this._artboardHeight = void 0, this._devicePixelRatioUsed = 1, this._hasZeroSize = !1, this._audioEventListener = null, this._boundDraw = null, this._viewModelInstance = null, this._dataEnums = null, this.durations = [], this.frameTimes = [], this.frameCount = 0, this.isTouchScrollEnabled = !1, this.onCanvasResize = function(J) {
|
|
33047
33076
|
var ue = S._hasZeroSize !== J;
|
|
33048
33077
|
S._hasZeroSize = J, J ? (!S._layout.maxX || !S._layout.maxY) && S.resizeToCanvas() : ue && S.resizeDrawingSurfaceToCanvas();
|
|
33049
|
-
}, this.renderSecondTimer = 0, this._boundDraw = this.draw.bind(this), this.canvas = y.canvas, y.canvas.constructor === HTMLCanvasElement && (this._observed = O.add(this.canvas, this.onCanvasResize)), this.src = y.src, this.buffer = y.buffer, this.riveFile = y.riveFile, this.layout = (M = y.layout) !== null && M !== void 0 ? M : new U(), this.shouldDisableRiveListeners = !!y.shouldDisableRiveListeners, this.isTouchScrollEnabled = !!y.isTouchScrollEnabled, this.automaticallyHandleEvents = !!y.automaticallyHandleEvents, this.enableRiveAssetCDN = y.enableRiveAssetCDN === void 0 ? !0 : y.enableRiveAssetCDN, this.eventManager = new
|
|
33078
|
+
}, this.renderSecondTimer = 0, this._boundDraw = this.draw.bind(this), this.canvas = y.canvas, y.canvas.constructor === HTMLCanvasElement && (this._observed = O.add(this.canvas, this.onCanvasResize)), this.src = y.src, this.buffer = y.buffer, this.riveFile = y.riveFile, this.layout = (M = y.layout) !== null && M !== void 0 ? M : new U(), this.shouldDisableRiveListeners = !!y.shouldDisableRiveListeners, this.isTouchScrollEnabled = !!y.isTouchScrollEnabled, this.automaticallyHandleEvents = !!y.automaticallyHandleEvents, this.enableRiveAssetCDN = y.enableRiveAssetCDN === void 0 ? !0 : y.enableRiveAssetCDN, this.eventManager = new Ie(), y.onLoad && this.on(Y.Load, y.onLoad), y.onLoadError && this.on(Y.LoadError, y.onLoadError), y.onPlay && this.on(Y.Play, y.onPlay), y.onPause && this.on(Y.Pause, y.onPause), y.onStop && this.on(Y.Stop, y.onStop), y.onLoop && this.on(Y.Loop, y.onLoop), y.onStateChange && this.on(Y.StateChange, y.onStateChange), y.onAdvance && this.on(Y.Advance, y.onAdvance), y.onload && !y.onLoad && this.on(Y.Load, y.onload), y.onloaderror && !y.onLoadError && this.on(Y.LoadError, y.onloaderror), y.onplay && !y.onPlay && this.on(Y.Play, y.onplay), y.onpause && !y.onPause && this.on(Y.Pause, y.onpause), y.onstop && !y.onStop && this.on(Y.Stop, y.onstop), y.onloop && !y.onLoop && this.on(Y.Loop, y.onloop), y.onstatechange && !y.onStateChange && this.on(Y.StateChange, y.onstatechange), y.assetLoader && (this.assetLoader = y.assetLoader), this.taskQueue = new We(this.eventManager), this.init({
|
|
33050
33079
|
src: this.src,
|
|
33051
33080
|
buffer: this.buffer,
|
|
33052
33081
|
riveFile: this.riveFile,
|
|
@@ -33109,12 +33138,12 @@ To resolve, you may need to:`,
|
|
|
33109
33138
|
this.eventCleanup && (this.eventCleanup(), this.eventCleanup = null);
|
|
33110
33139
|
}, P.prototype.initializeAudio = function() {
|
|
33111
33140
|
var y = this, S;
|
|
33112
|
-
|
|
33141
|
+
me.status == oe.UNAVAILABLE && !((S = this.artboard) === null || S === void 0) && S.hasAudio && this._audioEventListener === null && (this._audioEventListener = {
|
|
33113
33142
|
type: Y.AudioStatusChange,
|
|
33114
33143
|
callback: function() {
|
|
33115
33144
|
return y.onSystemAudioChanged();
|
|
33116
33145
|
}
|
|
33117
|
-
},
|
|
33146
|
+
}, me.add(this._audioEventListener), me.establishAudio());
|
|
33118
33147
|
}, P.prototype.initArtboardSize = function() {
|
|
33119
33148
|
this.artboard && (this._artboardWidth = this.artboard.width = this._artboardWidth || this.artboard.width, this._artboardHeight = this.artboard.height = this._artboardHeight || this.artboard.height);
|
|
33120
33149
|
}, P.prototype.initData = function(y, S, M, J, ue) {
|
|
@@ -33156,7 +33185,7 @@ To resolve, you may need to:`,
|
|
|
33156
33185
|
console.warn(Ge), this.eventManager.fire({ type: Y.LoadError, data: Ge });
|
|
33157
33186
|
return;
|
|
33158
33187
|
}
|
|
33159
|
-
this.artboard = ye, ye.volume = this._volume *
|
|
33188
|
+
this.artboard = ye, ye.volume = this._volume * me.systemVolume, this.animator = new q(this.runtime, this.artboard, this.eventManager);
|
|
33160
33189
|
var rt;
|
|
33161
33190
|
if (S.length > 0 || M.length > 0 ? (rt = S.concat(M), this.animator.initLinearAnimations(S, J), this.animator.initStateMachines(M, J)) : rt = [this.animator.atLeastOne(J, !1)], this.taskQueue.add({
|
|
33162
33191
|
event: {
|
|
@@ -33247,7 +33276,7 @@ To resolve, you may need to:`,
|
|
|
33247
33276
|
configurable: !0
|
|
33248
33277
|
}), P.prototype.cleanup = function() {
|
|
33249
33278
|
var y, S;
|
|
33250
|
-
this.destroyed = !0, this.stopRendering(), this.cleanupInstances(), this._observed !== null && O.remove(this._observed), this.removeRiveListeners(), this.file && ((y = this.riveFile) === null || y === void 0 || y.cleanup(), this.file = null), this.riveFile = null, this.deleteRiveRenderer(), this._audioEventListener !== null && (
|
|
33279
|
+
this.destroyed = !0, this.stopRendering(), this.cleanupInstances(), this._observed !== null && O.remove(this._observed), this.removeRiveListeners(), this.file && ((y = this.riveFile) === null || y === void 0 || y.cleanup(), this.file = null), this.riveFile = null, this.deleteRiveRenderer(), this._audioEventListener !== null && (me.remove(this._audioEventListener), this._audioEventListener = null), (S = this._viewModelInstance) === null || S === void 0 || S.cleanup(), this._viewModelInstance = null, this._dataEnums = null;
|
|
33251
33280
|
}, P.prototype.deleteRiveRenderer = function() {
|
|
33252
33281
|
var y;
|
|
33253
33282
|
(y = this.renderer) === null || y === void 0 || y.delete(), this.renderer = null;
|
|
@@ -33608,7 +33637,7 @@ To resolve, you may need to:`,
|
|
|
33608
33637
|
return this.artboard && this.artboard.volume !== this._volume && (this._volume = this.artboard.volume), this._volume;
|
|
33609
33638
|
},
|
|
33610
33639
|
set: function(y) {
|
|
33611
|
-
this._volume = y, this.artboard && (this.artboard.volume = y *
|
|
33640
|
+
this._volume = y, this.artboard && (this.artboard.volume = y * me.systemVolume);
|
|
33612
33641
|
},
|
|
33613
33642
|
enumerable: !1,
|
|
33614
33643
|
configurable: !0
|
|
@@ -34228,7 +34257,7 @@ To resolve, you may need to:`,
|
|
|
34228
34257
|
}, yn = function(P) {
|
|
34229
34258
|
return typeof P == "string" ? [P] : P instanceof Array ? P : [];
|
|
34230
34259
|
}, Li = {
|
|
34231
|
-
EventManager:
|
|
34260
|
+
EventManager: Ie,
|
|
34232
34261
|
TaskQueueManager: We
|
|
34233
34262
|
}, Un = function(P) {
|
|
34234
34263
|
return _(void 0, void 0, void 0, function() {
|
|
@@ -34331,7 +34360,7 @@ const YP = ({ restored: n }) => {
|
|
|
34331
34360
|
)
|
|
34332
34361
|
] });
|
|
34333
34362
|
}, sk = be.forwardRef((n, e) => {
|
|
34334
|
-
var
|
|
34363
|
+
var Ce;
|
|
34335
34364
|
const t = sessionStorage.getItem("nlxActiveVoiceConversationId") === n.config.conversationId, r = be.useMemo(() => {
|
|
34336
34365
|
const de = sessionStorage.getItem("nlxActiveConversationResponses") ?? "{}";
|
|
34337
34366
|
try {
|
|
@@ -34341,7 +34370,7 @@ const YP = ({ restored: n }) => {
|
|
|
34341
34370
|
} catch {
|
|
34342
34371
|
return null;
|
|
34343
34372
|
}
|
|
34344
|
-
}, [n.config.conversationId]), o = be.useMemo(() => DC({ responses: r, ...n.config }), [n.config, r]), [a, l] = be.useState([]), u = ((
|
|
34373
|
+
}, [n.config.conversationId]), o = be.useMemo(() => DC({ responses: r, ...n.config }), [n.config, r]), [a, l] = be.useState([]), u = ((Ce = a[a.length - 1]) == null ? void 0 : Ce.type) === Kn.User, f = n.colorMode ?? "dark", [p, g] = be.useState(
|
|
34345
34374
|
n.embedded || t
|
|
34346
34375
|
), C = LC(n.config), [_, T] = be.useState(!1), N = be.useRef(n.embedded || t), A = n.input ?? "text", H = be.useCallback(() => {
|
|
34347
34376
|
sessionStorage.removeItem("nlxActiveVoiceConversationId"), (A === "voice" || A === "voiceMini") && (U.current = !1, o.reset({ clearResponses: !0 }), sessionStorage.removeItem("nlxConversationId"));
|
|
@@ -34445,10 +34474,10 @@ const YP = ({ restored: n }) => {
|
|
|
34445
34474
|
}, [Q]), [q, Y] = be.useState({}), fe = be.useMemo(
|
|
34446
34475
|
() => n.modalityComponents ?? n.customModalities ?? {},
|
|
34447
34476
|
[n.modalityComponents, n.customModalities]
|
|
34448
|
-
), [
|
|
34477
|
+
), [Ie, We] = be.useState(!0), [oe, Pe] = be.useState(0), me = () => {
|
|
34449
34478
|
o.reset({ clearResponses: !0 }), H(), A !== "voice" && n.initializeConversation(o, n.initialContext);
|
|
34450
34479
|
const de = o.currentConversationId();
|
|
34451
|
-
sessionStorage.getItem("nlxConversationId") !== null && (de == null ? sessionStorage.removeItem("nlxConversationId") : sessionStorage.setItem("nlxConversationId", de)), de != null && sessionStorage.setItem("nlxActiveVoiceConversationId", de),
|
|
34480
|
+
sessionStorage.getItem("nlxConversationId") !== null && (de == null ? sessionStorage.removeItem("nlxConversationId") : sessionStorage.setItem("nlxConversationId", de)), de != null && sessionStorage.setItem("nlxActiveVoiceConversationId", de), Pe((O) => O + 1);
|
|
34452
34481
|
};
|
|
34453
34482
|
if (o == null)
|
|
34454
34483
|
return null;
|
|
@@ -34490,6 +34519,7 @@ const YP = ({ restored: n }) => {
|
|
|
34490
34519
|
{
|
|
34491
34520
|
handler: o,
|
|
34492
34521
|
context: n.initialContext,
|
|
34522
|
+
brandIcon: n.brandIcon,
|
|
34493
34523
|
onClose: () => {
|
|
34494
34524
|
ee(new Event("close"));
|
|
34495
34525
|
},
|
|
@@ -34501,13 +34531,13 @@ const YP = ({ restored: n }) => {
|
|
|
34501
34531
|
]
|
|
34502
34532
|
}
|
|
34503
34533
|
) });
|
|
34504
|
-
const
|
|
34534
|
+
const ce = () => {
|
|
34505
34535
|
var de, O;
|
|
34506
34536
|
return _ ? /* @__PURE__ */ R.jsx(
|
|
34507
34537
|
H0,
|
|
34508
34538
|
{
|
|
34509
34539
|
reset: () => {
|
|
34510
|
-
|
|
34540
|
+
me(), T(!1);
|
|
34511
34541
|
},
|
|
34512
34542
|
className: st(
|
|
34513
34543
|
"flex-none",
|
|
@@ -34596,11 +34626,14 @@ const YP = ({ restored: n }) => {
|
|
|
34596
34626
|
windowSize: n.embedded ? "embedded" : se,
|
|
34597
34627
|
errorThemedCloseButton: A === "voice",
|
|
34598
34628
|
speakerControls: A === "voice" ? {
|
|
34599
|
-
enabled:
|
|
34629
|
+
enabled: Ie,
|
|
34600
34630
|
setEnabled: We
|
|
34601
34631
|
} : void 0,
|
|
34602
34632
|
colorMode: f,
|
|
34603
|
-
brandIcon:
|
|
34633
|
+
brandIcon: (
|
|
34634
|
+
/* In fullscreen voice mode, a separate header brand icon is not necessary because a brand icon+ripple are rendered in the middle */
|
|
34635
|
+
A === "text" ? n.brandIcon : void 0
|
|
34636
|
+
),
|
|
34604
34637
|
isSettingsOpen: _,
|
|
34605
34638
|
enabled: n.enabled,
|
|
34606
34639
|
toggleSettings: n.enableSettings ? () => {
|
|
@@ -34608,10 +34641,10 @@ const YP = ({ restored: n }) => {
|
|
|
34608
34641
|
} : void 0,
|
|
34609
34642
|
renderCollapse: n.onClose != null,
|
|
34610
34643
|
collapse: ee,
|
|
34611
|
-
reset:
|
|
34644
|
+
reset: me
|
|
34612
34645
|
}
|
|
34613
34646
|
),
|
|
34614
|
-
A === "text" ?
|
|
34647
|
+
A === "text" ? ce() : /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
34615
34648
|
_ ? /* @__PURE__ */ R.jsx(
|
|
34616
34649
|
H0,
|
|
34617
34650
|
{
|
|
@@ -34623,7 +34656,7 @@ const YP = ({ restored: n }) => {
|
|
|
34623
34656
|
T(!1);
|
|
34624
34657
|
},
|
|
34625
34658
|
reset: () => {
|
|
34626
|
-
|
|
34659
|
+
me(), T(!1);
|
|
34627
34660
|
},
|
|
34628
34661
|
handler: o
|
|
34629
34662
|
}
|
|
@@ -34633,7 +34666,7 @@ const YP = ({ restored: n }) => {
|
|
|
34633
34666
|
{
|
|
34634
34667
|
brandIcon: n.brandIcon,
|
|
34635
34668
|
handler: o,
|
|
34636
|
-
speakersEnabled:
|
|
34669
|
+
speakersEnabled: Ie,
|
|
34637
34670
|
colorMode: f,
|
|
34638
34671
|
className: _ ? "hidden" : "grow",
|
|
34639
34672
|
context: n.initialContext,
|
|
@@ -35311,17 +35344,17 @@ var rc = function(n) {
|
|
|
35311
35344
|
H.cachedId = H.id;
|
|
35312
35345
|
var $ = a.value, q = a.selectionStart, Y = a.selectionEnd;
|
|
35313
35346
|
if (q === null || Y === null) throw new rc("The selection attributes have not been initialized.");
|
|
35314
|
-
var fe,
|
|
35315
|
-
if (G.inputType === void 0 && (z.selectionStart = 0, z.selectionEnd =
|
|
35316
|
-
var We = "", oe = z.selectionStart,
|
|
35347
|
+
var fe, Ie = z.value;
|
|
35348
|
+
if (G.inputType === void 0 && (z.selectionStart = 0, z.selectionEnd = Ie.length), q > z.selectionStart ? fe = "insert" : q <= z.selectionStart && q < z.selectionEnd ? fe = "deleteBackward" : q === z.selectionEnd && $.length < Ie.length && (fe = "deleteForward"), fe === void 0 || (fe === "deleteBackward" || fe === "deleteForward") && $.length > Ie.length) throw new rc("Input type detection error.");
|
|
35349
|
+
var We = "", oe = z.selectionStart, Pe = z.selectionEnd;
|
|
35317
35350
|
if (fe === "insert") We = $.slice(z.selectionStart, q);
|
|
35318
35351
|
else {
|
|
35319
|
-
var
|
|
35320
|
-
oe = q,
|
|
35352
|
+
var me = Ie.length - $.length;
|
|
35353
|
+
oe = q, Pe = q + me;
|
|
35321
35354
|
}
|
|
35322
|
-
A.value !==
|
|
35323
|
-
var
|
|
35324
|
-
a.value = O.value, a.setSelectionRange(O.selectionStart, O.selectionEnd), A.value = O.value, A.options = de, z.selectionStart = O.selectionStart, z.selectionEnd = O.selectionEnd, (se = a._valueTracker) === null || se === void 0 || (Q = se.setValue) === null || Q === void 0 || Q.call(se,
|
|
35355
|
+
A.value !== Ie ? A.options = A.fallbackOptions : A.fallbackOptions = A.options;
|
|
35356
|
+
var ce = A.options, Ce = r({ inputType: fe, previousValue: Ie, previousOptions: ce, value: $, addedValue: We, changeStart: oe, changeEnd: Pe, selectionStart: q, selectionEnd: Y }), de = Ce.options, O = mR(Ce, gR);
|
|
35357
|
+
a.value = O.value, a.setSelectionRange(O.selectionStart, O.selectionEnd), A.value = O.value, A.options = de, z.selectionStart = O.selectionStart, z.selectionEnd = O.selectionEnd, (se = a._valueTracker) === null || se === void 0 || (Q = se.setValue) === null || Q === void 0 || Q.call(se, Ie);
|
|
35325
35358
|
} catch (te) {
|
|
35326
35359
|
if (a.value = z.value, a.setSelectionRange(z.selectionStart, z.selectionEnd), G.preventDefault(), G.stopPropagation(), te.name !== "SyntheticChangeError") throw te;
|
|
35327
35360
|
}
|
|
@@ -35363,30 +35396,30 @@ var wk = function(n) {
|
|
|
35363
35396
|
Y < 0 ? se = se.slice(-Y) : Y > 0 && (se = q.slice(-Y) + se);
|
|
35364
35397
|
}
|
|
35365
35398
|
se && (se = nc(se, { replacementChars: $, replacement: H, separate: ee }));
|
|
35366
|
-
var fe = mk(G + f + se, { mask: A, replacement: H, separate: ee, showMask: z }),
|
|
35367
|
-
var oe,
|
|
35399
|
+
var fe = mk(G + f + se, { mask: A, replacement: H, separate: ee, showMask: z }), Ie = function(We) {
|
|
35400
|
+
var oe, Pe, me, ce = We.inputType, Ce = We.value, de = We.addedValue, O = We.beforeChangeValue, te = We.mask, Ve = We.replacement, Ke = We.separate, Xe = gk(Ce, { mask: te, replacement: Ve }).filter(function(At) {
|
|
35368
35401
|
var Ht = At.type;
|
|
35369
35402
|
return Ht === "input" || Ke && Ht === "replacement";
|
|
35370
|
-
}), Fe = (oe = Xe[O.length + de.length - 1]) === null || oe === void 0 ? void 0 : oe.index, et = (
|
|
35371
|
-
if (
|
|
35403
|
+
}), Fe = (oe = Xe[O.length + de.length - 1]) === null || oe === void 0 ? void 0 : oe.index, et = (Pe = Xe[O.length - 1]) === null || Pe === void 0 ? void 0 : Pe.index, qe = (me = Xe[O.length + de.length]) === null || me === void 0 ? void 0 : me.index;
|
|
35404
|
+
if (ce === "insert") {
|
|
35372
35405
|
if (Fe !== void 0) return Fe + 1;
|
|
35373
35406
|
if (qe !== void 0) return qe;
|
|
35374
35407
|
if (et !== void 0) return et + 1;
|
|
35375
35408
|
}
|
|
35376
|
-
if (
|
|
35409
|
+
if (ce === "deleteForward") {
|
|
35377
35410
|
if (qe !== void 0) return qe;
|
|
35378
35411
|
if (et !== void 0) return et + 1;
|
|
35379
35412
|
}
|
|
35380
|
-
if (
|
|
35413
|
+
if (ce === "deleteBackward") {
|
|
35381
35414
|
if (et !== void 0) return et + 1;
|
|
35382
35415
|
if (qe !== void 0) return qe;
|
|
35383
35416
|
}
|
|
35384
|
-
var dt =
|
|
35417
|
+
var dt = Ce.split("").findIndex(function(At) {
|
|
35385
35418
|
return Object.prototype.hasOwnProperty.call(Ve, At);
|
|
35386
35419
|
});
|
|
35387
|
-
return dt !== -1 ? dt :
|
|
35420
|
+
return dt !== -1 ? dt : Ce.length;
|
|
35388
35421
|
}({ inputType: a, value: fe, addedValue: f, beforeChangeValue: G, mask: A, replacement: H, separate: ee });
|
|
35389
|
-
return { value: fe, selectionStart:
|
|
35422
|
+
return { value: fe, selectionStart: Ie, selectionEnd: Ie, options: { mask: A, replacement: H, separate: ee } };
|
|
35390
35423
|
} }])).format = function(o) {
|
|
35391
35424
|
return vk(o, Ia(r));
|
|
35392
35425
|
}, t.formatToParts = function(o) {
|