@snf/access-qa-bot 3.1.0-rc.3 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/access-qa-bot.js
CHANGED
|
@@ -20,15 +20,15 @@ function Tf() {
|
|
|
20
20
|
rA = 1;
|
|
21
21
|
var e = Ae;
|
|
22
22
|
function n(m) {
|
|
23
|
-
for (var x = "https://reactjs.org/docs/error-decoder.html?invariant=" + m,
|
|
23
|
+
for (var x = "https://reactjs.org/docs/error-decoder.html?invariant=" + m, I = 1; I < arguments.length; I++) x += "&args[]=" + encodeURIComponent(arguments[I]);
|
|
24
24
|
return "Minified React error #" + m + "; visit " + x + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
25
25
|
}
|
|
26
26
|
var a = Object.prototype.hasOwnProperty, i = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, o = {}, s = {};
|
|
27
27
|
function f(m) {
|
|
28
28
|
return a.call(s, m) ? !0 : a.call(o, m) ? !1 : i.test(m) ? s[m] = !0 : (o[m] = !0, !1);
|
|
29
29
|
}
|
|
30
|
-
function A(m, x,
|
|
31
|
-
this.acceptsBooleans = x === 2 || x === 3 || x === 4, this.attributeName = O, this.attributeNamespace = J, this.mustUseProperty =
|
|
30
|
+
function A(m, x, I, O, J, Y, ee) {
|
|
31
|
+
this.acceptsBooleans = x === 2 || x === 3 || x === 4, this.attributeName = O, this.attributeNamespace = J, this.mustUseProperty = I, this.propertyName = m, this.type = x, this.sanitizeURL = Y, this.removeEmptyString = ee;
|
|
32
32
|
}
|
|
33
33
|
var u = {};
|
|
34
34
|
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(m) {
|
|
@@ -128,7 +128,7 @@ function Tf() {
|
|
|
128
128
|
m = "" + m;
|
|
129
129
|
var x = E.exec(m);
|
|
130
130
|
if (x) {
|
|
131
|
-
var
|
|
131
|
+
var I = "", O, J = 0;
|
|
132
132
|
for (O = x.index; O < m.length; O++) {
|
|
133
133
|
switch (m.charCodeAt(O)) {
|
|
134
134
|
case 34:
|
|
@@ -149,20 +149,20 @@ function Tf() {
|
|
|
149
149
|
default:
|
|
150
150
|
continue;
|
|
151
151
|
}
|
|
152
|
-
J !== O && (
|
|
152
|
+
J !== O && (I += m.substring(J, O)), J = O + 1, I += x;
|
|
153
153
|
}
|
|
154
|
-
m = J !== O ?
|
|
154
|
+
m = J !== O ? I + m.substring(J, O) : I;
|
|
155
155
|
}
|
|
156
156
|
return m;
|
|
157
157
|
}
|
|
158
|
-
var R = /([A-Z])/g, k = /^ms-/,
|
|
158
|
+
var R = /([A-Z])/g, k = /^ms-/, D = Array.isArray;
|
|
159
159
|
function Q(m, x) {
|
|
160
160
|
return { insertionMode: m, selectedValue: x };
|
|
161
161
|
}
|
|
162
|
-
function B(m, x,
|
|
162
|
+
function B(m, x, I) {
|
|
163
163
|
switch (x) {
|
|
164
164
|
case "select":
|
|
165
|
-
return Q(1,
|
|
165
|
+
return Q(1, I.value != null ? I.value : I.defaultValue);
|
|
166
166
|
case "svg":
|
|
167
167
|
return Q(2, null);
|
|
168
168
|
case "math":
|
|
@@ -182,28 +182,28 @@ function Tf() {
|
|
|
182
182
|
}
|
|
183
183
|
return 4 <= m.insertionMode || m.insertionMode === 0 ? Q(1, null) : m;
|
|
184
184
|
}
|
|
185
|
-
var
|
|
186
|
-
function U(m, x,
|
|
187
|
-
if (typeof
|
|
185
|
+
var N = /* @__PURE__ */ new Map();
|
|
186
|
+
function U(m, x, I) {
|
|
187
|
+
if (typeof I != "object") throw Error(n(62));
|
|
188
188
|
x = !0;
|
|
189
|
-
for (var O in
|
|
190
|
-
var J =
|
|
189
|
+
for (var O in I) if (a.call(I, O)) {
|
|
190
|
+
var J = I[O];
|
|
191
191
|
if (J != null && typeof J != "boolean" && J !== "") {
|
|
192
192
|
if (O.indexOf("--") === 0) {
|
|
193
193
|
var Y = T(O);
|
|
194
194
|
J = T(("" + J).trim());
|
|
195
195
|
} else {
|
|
196
196
|
Y = O;
|
|
197
|
-
var
|
|
198
|
-
|
|
197
|
+
var ee = N.get(Y);
|
|
198
|
+
ee !== void 0 || (ee = T(Y.replace(R, "-$1").toLowerCase().replace(k, "-ms-")), N.set(Y, ee)), Y = ee, J = typeof J == "number" ? J === 0 || a.call(g, O) ? "" + J : J + "px" : T(("" + J).trim());
|
|
199
199
|
}
|
|
200
200
|
x ? (x = !1, m.push(' style="', Y, ":", J)) : m.push(";", Y, ":", J);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
x || m.push('"');
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
switch (
|
|
205
|
+
function H(m, x, I, O) {
|
|
206
|
+
switch (I) {
|
|
207
207
|
case "style":
|
|
208
208
|
U(m, x, O);
|
|
209
209
|
return;
|
|
@@ -214,8 +214,8 @@ function Tf() {
|
|
|
214
214
|
case "suppressHydrationWarning":
|
|
215
215
|
return;
|
|
216
216
|
}
|
|
217
|
-
if (!(2 <
|
|
218
|
-
if (x = u.hasOwnProperty(
|
|
217
|
+
if (!(2 < I.length) || I[0] !== "o" && I[0] !== "O" || I[1] !== "n" && I[1] !== "N") {
|
|
218
|
+
if (x = u.hasOwnProperty(I) ? u[I] : null, x !== null) {
|
|
219
219
|
switch (typeof O) {
|
|
220
220
|
case "function":
|
|
221
221
|
case "symbol":
|
|
@@ -223,64 +223,64 @@ function Tf() {
|
|
|
223
223
|
case "boolean":
|
|
224
224
|
if (!x.acceptsBooleans) return;
|
|
225
225
|
}
|
|
226
|
-
switch (
|
|
226
|
+
switch (I = x.attributeName, x.type) {
|
|
227
227
|
case 3:
|
|
228
|
-
O && m.push(" ",
|
|
228
|
+
O && m.push(" ", I, '=""');
|
|
229
229
|
break;
|
|
230
230
|
case 4:
|
|
231
|
-
O === !0 ? m.push(" ",
|
|
231
|
+
O === !0 ? m.push(" ", I, '=""') : O !== !1 && m.push(" ", I, '="', T(O), '"');
|
|
232
232
|
break;
|
|
233
233
|
case 5:
|
|
234
|
-
isNaN(O) || m.push(" ",
|
|
234
|
+
isNaN(O) || m.push(" ", I, '="', T(O), '"');
|
|
235
235
|
break;
|
|
236
236
|
case 6:
|
|
237
|
-
!isNaN(O) && 1 <= O && m.push(" ",
|
|
237
|
+
!isNaN(O) && 1 <= O && m.push(" ", I, '="', T(O), '"');
|
|
238
238
|
break;
|
|
239
239
|
default:
|
|
240
|
-
x.sanitizeURL && (O = "" + O), m.push(" ",
|
|
240
|
+
x.sanitizeURL && (O = "" + O), m.push(" ", I, '="', T(O), '"');
|
|
241
241
|
}
|
|
242
|
-
} else if (f(
|
|
242
|
+
} else if (f(I)) {
|
|
243
243
|
switch (typeof O) {
|
|
244
244
|
case "function":
|
|
245
245
|
case "symbol":
|
|
246
246
|
return;
|
|
247
247
|
case "boolean":
|
|
248
|
-
if (x =
|
|
248
|
+
if (x = I.toLowerCase().slice(0, 5), x !== "data-" && x !== "aria-") return;
|
|
249
249
|
}
|
|
250
|
-
m.push(" ",
|
|
250
|
+
m.push(" ", I, '="', T(O), '"');
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function j(m, x, I) {
|
|
255
255
|
if (x != null) {
|
|
256
|
-
if (
|
|
256
|
+
if (I != null) throw Error(n(60));
|
|
257
257
|
if (typeof x != "object" || !("__html" in x)) throw Error(n(61));
|
|
258
258
|
x = x.__html, x != null && m.push("" + x);
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function Z(m) {
|
|
262
262
|
var x = "";
|
|
263
|
-
return e.Children.forEach(m, function(
|
|
264
|
-
|
|
263
|
+
return e.Children.forEach(m, function(I) {
|
|
264
|
+
I != null && (x += I);
|
|
265
265
|
}), x;
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
m.push(q(
|
|
269
|
-
var J =
|
|
267
|
+
function z(m, x, I, O) {
|
|
268
|
+
m.push(q(I));
|
|
269
|
+
var J = I = null, Y;
|
|
270
270
|
for (Y in x) if (a.call(x, Y)) {
|
|
271
|
-
var
|
|
272
|
-
if (
|
|
271
|
+
var ee = x[Y];
|
|
272
|
+
if (ee != null) switch (Y) {
|
|
273
273
|
case "children":
|
|
274
|
-
|
|
274
|
+
I = ee;
|
|
275
275
|
break;
|
|
276
276
|
case "dangerouslySetInnerHTML":
|
|
277
|
-
J =
|
|
277
|
+
J = ee;
|
|
278
278
|
break;
|
|
279
279
|
default:
|
|
280
|
-
|
|
280
|
+
H(m, O, Y, ee);
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
|
-
return m.push(">"),
|
|
283
|
+
return m.push(">"), j(m, J, I), typeof I == "string" ? (m.push(T(I)), null) : I;
|
|
284
284
|
}
|
|
285
285
|
var W = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, $ = /* @__PURE__ */ new Map();
|
|
286
286
|
function q(m) {
|
|
@@ -291,33 +291,33 @@ function Tf() {
|
|
|
291
291
|
}
|
|
292
292
|
return x;
|
|
293
293
|
}
|
|
294
|
-
function ae(m, x,
|
|
294
|
+
function ae(m, x, I, O, J) {
|
|
295
295
|
switch (x) {
|
|
296
296
|
case "select":
|
|
297
297
|
m.push(q("select"));
|
|
298
|
-
var Y = null,
|
|
299
|
-
for (ke in
|
|
300
|
-
var ce =
|
|
298
|
+
var Y = null, ee = null;
|
|
299
|
+
for (ke in I) if (a.call(I, ke)) {
|
|
300
|
+
var ce = I[ke];
|
|
301
301
|
if (ce != null) switch (ke) {
|
|
302
302
|
case "children":
|
|
303
303
|
Y = ce;
|
|
304
304
|
break;
|
|
305
305
|
case "dangerouslySetInnerHTML":
|
|
306
|
-
|
|
306
|
+
ee = ce;
|
|
307
307
|
break;
|
|
308
308
|
case "defaultValue":
|
|
309
309
|
case "value":
|
|
310
310
|
break;
|
|
311
311
|
default:
|
|
312
|
-
|
|
312
|
+
H(m, O, ke, ce);
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
|
-
return m.push(">"),
|
|
315
|
+
return m.push(">"), j(m, ee, Y), Y;
|
|
316
316
|
case "option":
|
|
317
|
-
|
|
317
|
+
ee = J.selectedValue, m.push(q("option"));
|
|
318
318
|
var Se = ce = null, Pe = null, ke = null;
|
|
319
|
-
for (Y in
|
|
320
|
-
var Ye =
|
|
319
|
+
for (Y in I) if (a.call(I, Y)) {
|
|
320
|
+
var Ye = I[Y];
|
|
321
321
|
if (Ye != null) switch (Y) {
|
|
322
322
|
case "children":
|
|
323
323
|
ce = Ye;
|
|
@@ -331,21 +331,21 @@ function Tf() {
|
|
|
331
331
|
case "value":
|
|
332
332
|
Se = Ye;
|
|
333
333
|
default:
|
|
334
|
-
|
|
334
|
+
H(m, O, Y, Ye);
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
if (
|
|
338
|
-
for (O = 0; O <
|
|
339
|
-
if ("" +
|
|
337
|
+
if (ee != null) if (I = Se !== null ? "" + Se : Z(ce), D(ee)) {
|
|
338
|
+
for (O = 0; O < ee.length; O++)
|
|
339
|
+
if ("" + ee[O] === I) {
|
|
340
340
|
m.push(' selected=""');
|
|
341
341
|
break;
|
|
342
342
|
}
|
|
343
|
-
} else "" +
|
|
343
|
+
} else "" + ee === I && m.push(' selected=""');
|
|
344
344
|
else Pe && m.push(' selected=""');
|
|
345
|
-
return m.push(">"),
|
|
345
|
+
return m.push(">"), j(m, ke, ce), ce;
|
|
346
346
|
case "textarea":
|
|
347
|
-
m.push(q("textarea")), ke =
|
|
348
|
-
for (ce in
|
|
347
|
+
m.push(q("textarea")), ke = ee = Y = null;
|
|
348
|
+
for (ce in I) if (a.call(I, ce) && (Se = I[ce], Se != null)) switch (ce) {
|
|
349
349
|
case "children":
|
|
350
350
|
ke = Se;
|
|
351
351
|
break;
|
|
@@ -353,21 +353,21 @@ function Tf() {
|
|
|
353
353
|
Y = Se;
|
|
354
354
|
break;
|
|
355
355
|
case "defaultValue":
|
|
356
|
-
|
|
356
|
+
ee = Se;
|
|
357
357
|
break;
|
|
358
358
|
case "dangerouslySetInnerHTML":
|
|
359
359
|
throw Error(n(91));
|
|
360
360
|
default:
|
|
361
|
-
|
|
361
|
+
H(
|
|
362
362
|
m,
|
|
363
363
|
O,
|
|
364
364
|
ce,
|
|
365
365
|
Se
|
|
366
366
|
);
|
|
367
367
|
}
|
|
368
|
-
if (Y === null &&
|
|
368
|
+
if (Y === null && ee !== null && (Y = ee), m.push(">"), ke != null) {
|
|
369
369
|
if (Y != null) throw Error(n(92));
|
|
370
|
-
if (
|
|
370
|
+
if (D(ke) && 1 < ke.length) throw Error(n(93));
|
|
371
371
|
Y = "" + ke;
|
|
372
372
|
}
|
|
373
373
|
return typeof Y == "string" && Y[0] === `
|
|
@@ -375,7 +375,7 @@ function Tf() {
|
|
|
375
375
|
`), Y !== null && m.push(T("" + Y)), null;
|
|
376
376
|
case "input":
|
|
377
377
|
m.push(q("input")), Se = ke = ce = Y = null;
|
|
378
|
-
for (
|
|
378
|
+
for (ee in I) if (a.call(I, ee) && (Pe = I[ee], Pe != null)) switch (ee) {
|
|
379
379
|
case "children":
|
|
380
380
|
case "dangerouslySetInnerHTML":
|
|
381
381
|
throw Error(n(399, "input"));
|
|
@@ -392,50 +392,50 @@ function Tf() {
|
|
|
392
392
|
Y = Pe;
|
|
393
393
|
break;
|
|
394
394
|
default:
|
|
395
|
-
|
|
395
|
+
H(m, O, ee, Pe);
|
|
396
396
|
}
|
|
397
|
-
return ke !== null ?
|
|
397
|
+
return ke !== null ? H(m, O, "checked", ke) : Se !== null && H(m, O, "checked", Se), Y !== null ? H(m, O, "value", Y) : ce !== null && H(m, O, "value", ce), m.push("/>"), null;
|
|
398
398
|
case "menuitem":
|
|
399
399
|
m.push(q("menuitem"));
|
|
400
|
-
for (var Ht in
|
|
400
|
+
for (var Ht in I) if (a.call(I, Ht) && (Y = I[Ht], Y != null)) switch (Ht) {
|
|
401
401
|
case "children":
|
|
402
402
|
case "dangerouslySetInnerHTML":
|
|
403
403
|
throw Error(n(400));
|
|
404
404
|
default:
|
|
405
|
-
|
|
405
|
+
H(m, O, Ht, Y);
|
|
406
406
|
}
|
|
407
407
|
return m.push(">"), null;
|
|
408
408
|
case "title":
|
|
409
409
|
m.push(q("title")), Y = null;
|
|
410
|
-
for (Ye in
|
|
410
|
+
for (Ye in I) if (a.call(I, Ye) && (ee = I[Ye], ee != null)) switch (Ye) {
|
|
411
411
|
case "children":
|
|
412
|
-
Y =
|
|
412
|
+
Y = ee;
|
|
413
413
|
break;
|
|
414
414
|
case "dangerouslySetInnerHTML":
|
|
415
415
|
throw Error(n(434));
|
|
416
416
|
default:
|
|
417
|
-
|
|
417
|
+
H(m, O, Ye, ee);
|
|
418
418
|
}
|
|
419
419
|
return m.push(">"), Y;
|
|
420
420
|
case "listing":
|
|
421
421
|
case "pre":
|
|
422
|
-
m.push(q(x)),
|
|
423
|
-
for (Se in
|
|
422
|
+
m.push(q(x)), ee = Y = null;
|
|
423
|
+
for (Se in I) if (a.call(I, Se) && (ce = I[Se], ce != null)) switch (Se) {
|
|
424
424
|
case "children":
|
|
425
425
|
Y = ce;
|
|
426
426
|
break;
|
|
427
427
|
case "dangerouslySetInnerHTML":
|
|
428
|
-
|
|
428
|
+
ee = ce;
|
|
429
429
|
break;
|
|
430
430
|
default:
|
|
431
|
-
|
|
431
|
+
H(m, O, Se, ce);
|
|
432
432
|
}
|
|
433
|
-
if (m.push(">"),
|
|
433
|
+
if (m.push(">"), ee != null) {
|
|
434
434
|
if (Y != null) throw Error(n(60));
|
|
435
|
-
if (typeof
|
|
436
|
-
|
|
435
|
+
if (typeof ee != "object" || !("__html" in ee)) throw Error(n(61));
|
|
436
|
+
I = ee.__html, I != null && (typeof I == "string" && 0 < I.length && I[0] === `
|
|
437
437
|
` ? m.push(`
|
|
438
|
-
`,
|
|
438
|
+
`, I) : m.push("" + I));
|
|
439
439
|
}
|
|
440
440
|
return typeof Y == "string" && Y[0] === `
|
|
441
441
|
` && m.push(`
|
|
@@ -455,12 +455,12 @@ function Tf() {
|
|
|
455
455
|
case "track":
|
|
456
456
|
case "wbr":
|
|
457
457
|
m.push(q(x));
|
|
458
|
-
for (var Nt in
|
|
458
|
+
for (var Nt in I) if (a.call(I, Nt) && (Y = I[Nt], Y != null)) switch (Nt) {
|
|
459
459
|
case "children":
|
|
460
460
|
case "dangerouslySetInnerHTML":
|
|
461
461
|
throw Error(n(399, x));
|
|
462
462
|
default:
|
|
463
|
-
|
|
463
|
+
H(m, O, Nt, Y);
|
|
464
464
|
}
|
|
465
465
|
return m.push("/>"), null;
|
|
466
466
|
case "annotation-xml":
|
|
@@ -471,23 +471,23 @@ function Tf() {
|
|
|
471
471
|
case "font-face-format":
|
|
472
472
|
case "font-face-name":
|
|
473
473
|
case "missing-glyph":
|
|
474
|
-
return
|
|
474
|
+
return z(
|
|
475
475
|
m,
|
|
476
|
-
|
|
476
|
+
I,
|
|
477
477
|
x,
|
|
478
478
|
O
|
|
479
479
|
);
|
|
480
480
|
case "html":
|
|
481
|
-
return J.insertionMode === 0 && m.push("<!DOCTYPE html>"),
|
|
481
|
+
return J.insertionMode === 0 && m.push("<!DOCTYPE html>"), z(m, I, x, O);
|
|
482
482
|
default:
|
|
483
|
-
if (x.indexOf("-") === -1 && typeof
|
|
484
|
-
m.push(q(x)),
|
|
485
|
-
for (Pe in
|
|
483
|
+
if (x.indexOf("-") === -1 && typeof I.is != "string") return z(m, I, x, O);
|
|
484
|
+
m.push(q(x)), ee = Y = null;
|
|
485
|
+
for (Pe in I) if (a.call(I, Pe) && (ce = I[Pe], ce != null)) switch (Pe) {
|
|
486
486
|
case "children":
|
|
487
487
|
Y = ce;
|
|
488
488
|
break;
|
|
489
489
|
case "dangerouslySetInnerHTML":
|
|
490
|
-
|
|
490
|
+
ee = ce;
|
|
491
491
|
break;
|
|
492
492
|
case "style":
|
|
493
493
|
U(m, O, ce);
|
|
@@ -498,15 +498,15 @@ function Tf() {
|
|
|
498
498
|
default:
|
|
499
499
|
f(Pe) && typeof ce != "function" && typeof ce != "symbol" && m.push(" ", Pe, '="', T(ce), '"');
|
|
500
500
|
}
|
|
501
|
-
return m.push(">"),
|
|
501
|
+
return m.push(">"), j(m, ee, Y), Y;
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
function se(m, x,
|
|
505
|
-
if (m.push('<!--$?--><template id="'),
|
|
506
|
-
return m.push(
|
|
504
|
+
function se(m, x, I) {
|
|
505
|
+
if (m.push('<!--$?--><template id="'), I === null) throw Error(n(395));
|
|
506
|
+
return m.push(I), m.push('"></template>');
|
|
507
507
|
}
|
|
508
|
-
function le(m, x,
|
|
509
|
-
switch (
|
|
508
|
+
function le(m, x, I, O) {
|
|
509
|
+
switch (I.insertionMode) {
|
|
510
510
|
case 0:
|
|
511
511
|
case 1:
|
|
512
512
|
return m.push('<div hidden id="'), m.push(x.segmentPrefix), x = O.toString(16), m.push(x), m.push('">');
|
|
@@ -565,8 +565,8 @@ function Tf() {
|
|
|
565
565
|
function _(m, x) {
|
|
566
566
|
return x = x === void 0 ? "" : x, { bootstrapChunks: [], startInlineScript: "<script>", placeholderPrefix: x + "P:", segmentPrefix: x + "S:", boundaryPrefix: x + "B:", idPrefix: x, nextSuspenseID: 0, sentCompleteSegmentFunction: !1, sentCompleteBoundaryFunction: !1, sentClientRenderFunction: !1, generateStaticMarkup: m };
|
|
567
567
|
}
|
|
568
|
-
function Be(m, x,
|
|
569
|
-
return
|
|
568
|
+
function Be(m, x, I, O) {
|
|
569
|
+
return I.generateStaticMarkup ? (m.push(T(x)), !1) : (x === "" ? m = O : (O && m.push("<!-- -->"), m.push(T(x)), m = !0), m);
|
|
570
570
|
}
|
|
571
571
|
var L = Object.assign, ve = Symbol.for("react.element"), fe = Symbol.for("react.portal"), ie = Symbol.for("react.fragment"), he = Symbol.for("react.strict_mode"), ye = Symbol.for("react.profiler"), Ie = Symbol.for("react.provider"), Qe = Symbol.for("react.context"), Oe = Symbol.for("react.forward_ref"), We = Symbol.for("react.suspense"), qe = Symbol.for("react.suspense_list"), _t = Symbol.for("react.memo"), Ze = Symbol.for("react.lazy"), et = Symbol.for("react.scope"), mt = Symbol.for("react.debug_trace_mode"), St = Symbol.for("react.legacy_hidden"), Pn = Symbol.for("react.default_value"), vt = Symbol.iterator;
|
|
572
572
|
function Et(m) {
|
|
@@ -609,20 +609,20 @@ function Tf() {
|
|
|
609
609
|
var tt = {};
|
|
610
610
|
function Tt(m, x) {
|
|
611
611
|
if (m = m.contextTypes, !m) return tt;
|
|
612
|
-
var
|
|
613
|
-
for (O in m)
|
|
614
|
-
return
|
|
612
|
+
var I = {}, O;
|
|
613
|
+
for (O in m) I[O] = x[O];
|
|
614
|
+
return I;
|
|
615
615
|
}
|
|
616
616
|
var lt = null;
|
|
617
617
|
function ft(m, x) {
|
|
618
618
|
if (m !== x) {
|
|
619
619
|
m.context._currentValue2 = m.parentValue, m = m.parent;
|
|
620
|
-
var
|
|
620
|
+
var I = x.parent;
|
|
621
621
|
if (m === null) {
|
|
622
|
-
if (
|
|
622
|
+
if (I !== null) throw Error(n(401));
|
|
623
623
|
} else {
|
|
624
|
-
if (
|
|
625
|
-
ft(m,
|
|
624
|
+
if (I === null) throw Error(n(401));
|
|
625
|
+
ft(m, I);
|
|
626
626
|
}
|
|
627
627
|
x.context._currentValue2 = x.value;
|
|
628
628
|
}
|
|
@@ -639,15 +639,15 @@ function Tf() {
|
|
|
639
639
|
m.depth === x.depth ? ft(m, x) : Tn(m, x);
|
|
640
640
|
}
|
|
641
641
|
function zt(m, x) {
|
|
642
|
-
var
|
|
643
|
-
if (
|
|
644
|
-
m.depth ===
|
|
642
|
+
var I = x.parent;
|
|
643
|
+
if (I === null) throw Error(n(402));
|
|
644
|
+
m.depth === I.depth ? ft(m, I) : zt(m, I), x.context._currentValue2 = x.value;
|
|
645
645
|
}
|
|
646
646
|
function nt(m) {
|
|
647
647
|
var x = lt;
|
|
648
648
|
x !== m && (x === null ? rn(m) : m === null ? ct(x) : x.depth === m.depth ? ft(x, m) : x.depth > m.depth ? Tn(x, m) : zt(x, m), lt = m);
|
|
649
649
|
}
|
|
650
|
-
var
|
|
650
|
+
var te = { isMounted: function() {
|
|
651
651
|
return !1;
|
|
652
652
|
}, enqueueSetState: function(m, x) {
|
|
653
653
|
m = m._reactInternals, m.queue !== null && m.queue.push(x);
|
|
@@ -655,34 +655,34 @@ function Tf() {
|
|
|
655
655
|
m = m._reactInternals, m.replace = !0, m.queue = [x];
|
|
656
656
|
}, enqueueForceUpdate: function() {
|
|
657
657
|
} };
|
|
658
|
-
function we(m, x,
|
|
658
|
+
function we(m, x, I, O) {
|
|
659
659
|
var J = m.state !== void 0 ? m.state : null;
|
|
660
|
-
m.updater =
|
|
660
|
+
m.updater = te, m.props = I, m.state = J;
|
|
661
661
|
var Y = { queue: [], replace: !1 };
|
|
662
662
|
m._reactInternals = Y;
|
|
663
|
-
var
|
|
664
|
-
if (m.context = typeof
|
|
663
|
+
var ee = x.contextType;
|
|
664
|
+
if (m.context = typeof ee == "object" && ee !== null ? ee._currentValue2 : O, ee = x.getDerivedStateFromProps, typeof ee == "function" && (ee = ee(I, J), J = ee == null ? J : L({}, J, ee), m.state = J), typeof x.getDerivedStateFromProps != "function" && typeof m.getSnapshotBeforeUpdate != "function" && (typeof m.UNSAFE_componentWillMount == "function" || typeof m.componentWillMount == "function")) if (x = m.state, typeof m.componentWillMount == "function" && m.componentWillMount(), typeof m.UNSAFE_componentWillMount == "function" && m.UNSAFE_componentWillMount(), x !== m.state && te.enqueueReplaceState(m, m.state, null), Y.queue !== null && 0 < Y.queue.length) if (x = Y.queue, ee = Y.replace, Y.queue = null, Y.replace = !1, ee && x.length === 1) m.state = x[0];
|
|
665
665
|
else {
|
|
666
|
-
for (Y =
|
|
667
|
-
var ce = x[
|
|
668
|
-
ce = typeof ce == "function" ? ce.call(m, Y,
|
|
666
|
+
for (Y = ee ? x[0] : m.state, J = !0, ee = ee ? 1 : 0; ee < x.length; ee++) {
|
|
667
|
+
var ce = x[ee];
|
|
668
|
+
ce = typeof ce == "function" ? ce.call(m, Y, I, O) : ce, ce != null && (J ? (J = !1, Y = L({}, Y, ce)) : L(Y, ce));
|
|
669
669
|
}
|
|
670
670
|
m.state = Y;
|
|
671
671
|
}
|
|
672
672
|
else Y.queue = null;
|
|
673
673
|
}
|
|
674
674
|
var Ee = { id: 1, overflow: "" };
|
|
675
|
-
function Fe(m, x,
|
|
675
|
+
function Fe(m, x, I) {
|
|
676
676
|
var O = m.id;
|
|
677
677
|
m = m.overflow;
|
|
678
678
|
var J = 32 - _e(O) - 1;
|
|
679
|
-
O &= ~(1 << J),
|
|
679
|
+
O &= ~(1 << J), I += 1;
|
|
680
680
|
var Y = 32 - _e(x) + J;
|
|
681
681
|
if (30 < Y) {
|
|
682
|
-
var
|
|
683
|
-
return Y = (O & (1 <<
|
|
682
|
+
var ee = J - J % 5;
|
|
683
|
+
return Y = (O & (1 << ee) - 1).toString(32), O >>= ee, J -= ee, { id: 1 << 32 - _e(x) + J | I << J | O, overflow: Y + m };
|
|
684
684
|
}
|
|
685
|
-
return { id: 1 << Y |
|
|
685
|
+
return { id: 1 << Y | I << J | O, overflow: m };
|
|
686
686
|
}
|
|
687
687
|
var _e = Math.clz32 ? Math.clz32 : rt, ut = Math.log, yt = Math.LN2;
|
|
688
688
|
function rt(m) {
|
|
@@ -709,25 +709,25 @@ function Tf() {
|
|
|
709
709
|
function oo(m, x) {
|
|
710
710
|
return typeof x == "function" ? x(m) : x;
|
|
711
711
|
}
|
|
712
|
-
function bt(m, x,
|
|
712
|
+
function bt(m, x, I) {
|
|
713
713
|
if (Je = Dn(), Xe = Fr(), Hn) {
|
|
714
714
|
var O = Xe.queue;
|
|
715
|
-
if (x = O.dispatch, pn !== null && (
|
|
715
|
+
if (x = O.dispatch, pn !== null && (I = pn.get(O), I !== void 0)) {
|
|
716
716
|
pn.delete(O), O = Xe.memoizedState;
|
|
717
717
|
do
|
|
718
|
-
O = m(O,
|
|
719
|
-
while (
|
|
718
|
+
O = m(O, I.action), I = I.next;
|
|
719
|
+
while (I !== null);
|
|
720
720
|
return Xe.memoizedState = O, [O, x];
|
|
721
721
|
}
|
|
722
722
|
return [Xe.memoizedState, x];
|
|
723
723
|
}
|
|
724
|
-
return m = m === oo ? typeof x == "function" ? x() : x :
|
|
724
|
+
return m = m === oo ? typeof x == "function" ? x() : x : I !== void 0 ? I(x) : x, Xe.memoizedState = m, m = Xe.queue = { last: null, dispatch: null }, m = m.dispatch = Ho.bind(null, Je, m), [Xe.memoizedState, m];
|
|
725
725
|
}
|
|
726
726
|
function Nr(m, x) {
|
|
727
727
|
if (Je = Dn(), Xe = Fr(), x = x === void 0 ? null : x, Xe !== null) {
|
|
728
|
-
var
|
|
729
|
-
if (
|
|
730
|
-
var O =
|
|
728
|
+
var I = Xe.memoizedState;
|
|
729
|
+
if (I !== null && x !== null) {
|
|
730
|
+
var O = I[1];
|
|
731
731
|
e: if (O === null) O = !1;
|
|
732
732
|
else {
|
|
733
733
|
for (var J = 0; J < O.length && J < x.length; J++) if (!tr(x[J], O[J])) {
|
|
@@ -736,16 +736,16 @@ function Tf() {
|
|
|
736
736
|
}
|
|
737
737
|
O = !0;
|
|
738
738
|
}
|
|
739
|
-
if (O) return
|
|
739
|
+
if (O) return I[0];
|
|
740
740
|
}
|
|
741
741
|
}
|
|
742
742
|
return m = m(), Xe.memoizedState = [m, x], m;
|
|
743
743
|
}
|
|
744
|
-
function Ho(m, x,
|
|
744
|
+
function Ho(m, x, I) {
|
|
745
745
|
if (25 <= hr) throw Error(n(301));
|
|
746
|
-
if (m === Je) if (pr = !0, m = { action:
|
|
746
|
+
if (m === Je) if (pr = !0, m = { action: I, next: null }, pn === null && (pn = /* @__PURE__ */ new Map()), I = pn.get(x), I === void 0) pn.set(x, m);
|
|
747
747
|
else {
|
|
748
|
-
for (x =
|
|
748
|
+
for (x = I; x.next !== null; ) x = x.next;
|
|
749
749
|
x.next = m;
|
|
750
750
|
}
|
|
751
751
|
}
|
|
@@ -779,78 +779,78 @@ function Tf() {
|
|
|
779
779
|
}, useId: function() {
|
|
780
780
|
var m = Dt.treeContext, x = m.overflow;
|
|
781
781
|
m = m.id, m = (m & ~(1 << 32 - _e(m) - 1)).toString(32) + x;
|
|
782
|
-
var
|
|
783
|
-
if (
|
|
784
|
-
return x = nr++, m = ":" +
|
|
782
|
+
var I = gr;
|
|
783
|
+
if (I === null) throw Error(n(404));
|
|
784
|
+
return x = nr++, m = ":" + I.idPrefix + "R" + m, 0 < x && (m += "H" + x.toString(32)), m + ":";
|
|
785
785
|
}, useMutableSource: function(m, x) {
|
|
786
786
|
return Dn(), x(m._source);
|
|
787
|
-
}, useSyncExternalStore: function(m, x,
|
|
788
|
-
if (
|
|
789
|
-
return
|
|
787
|
+
}, useSyncExternalStore: function(m, x, I) {
|
|
788
|
+
if (I === void 0) throw Error(n(407));
|
|
789
|
+
return I();
|
|
790
790
|
} }, gr = null, Nn = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;
|
|
791
791
|
function jt(m) {
|
|
792
792
|
return console.error(m), null;
|
|
793
793
|
}
|
|
794
794
|
function gn() {
|
|
795
795
|
}
|
|
796
|
-
function mr(m, x,
|
|
796
|
+
function mr(m, x, I, O, J, Y, ee, ce, Se) {
|
|
797
797
|
var Pe = [], ke = /* @__PURE__ */ new Set();
|
|
798
|
-
return x = { destination: null, responseState: x, progressiveChunkSize: O === void 0 ? 12800 : O, status: 0, fatalError: null, nextSegmentId: 0, allPendingTasks: 0, pendingRootTasks: 0, completedRootSegment: null, abortableTasks: ke, pingedTasks: Pe, clientRenderedBoundaries: [], completedBoundaries: [], partialBoundaries: [], onError: J === void 0 ? jt : J, onAllReady: gn, onShellReady:
|
|
798
|
+
return x = { destination: null, responseState: x, progressiveChunkSize: O === void 0 ? 12800 : O, status: 0, fatalError: null, nextSegmentId: 0, allPendingTasks: 0, pendingRootTasks: 0, completedRootSegment: null, abortableTasks: ke, pingedTasks: Pe, clientRenderedBoundaries: [], completedBoundaries: [], partialBoundaries: [], onError: J === void 0 ? jt : J, onAllReady: gn, onShellReady: ee === void 0 ? gn : ee, onShellError: gn, onFatalError: gn }, I = zn(x, 0, null, I, !1, !1), I.parentFlushed = !0, m = Un(x, m, null, I, ke, tt, null, Ee), Pe.push(m), x;
|
|
799
799
|
}
|
|
800
|
-
function Un(m, x,
|
|
801
|
-
m.allPendingTasks++,
|
|
800
|
+
function Un(m, x, I, O, J, Y, ee, ce) {
|
|
801
|
+
m.allPendingTasks++, I === null ? m.pendingRootTasks++ : I.pendingTasks++;
|
|
802
802
|
var Se = { node: x, ping: function() {
|
|
803
803
|
var Pe = m.pingedTasks;
|
|
804
804
|
Pe.push(Se), Pe.length === 1 && Qt(m);
|
|
805
|
-
}, blockedBoundary:
|
|
805
|
+
}, blockedBoundary: I, blockedSegment: O, abortSet: J, legacyContext: Y, context: ee, treeContext: ce };
|
|
806
806
|
return J.add(Se), Se;
|
|
807
807
|
}
|
|
808
|
-
function zn(m, x,
|
|
809
|
-
return { status: 0, id: -1, index: x, parentFlushed: !1, chunks: [], children: [], formatContext: O, boundary:
|
|
808
|
+
function zn(m, x, I, O, J, Y) {
|
|
809
|
+
return { status: 0, id: -1, index: x, parentFlushed: !1, chunks: [], children: [], formatContext: O, boundary: I, lastPushedText: J, textEmbedded: Y };
|
|
810
810
|
}
|
|
811
811
|
function mn(m, x) {
|
|
812
812
|
if (m = m.onError(x), m != null && typeof m != "string") throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "' + typeof m + '" instead');
|
|
813
813
|
return m;
|
|
814
814
|
}
|
|
815
815
|
function jn(m, x) {
|
|
816
|
-
var
|
|
817
|
-
|
|
816
|
+
var I = m.onShellError;
|
|
817
|
+
I(x), I = m.onFatalError, I(x), m.destination !== null ? (m.status = 2, m.destination.destroy(x)) : (m.status = 1, m.fatalError = x);
|
|
818
818
|
}
|
|
819
|
-
function Wt(m, x,
|
|
820
|
-
for (Je = {}, Dt = x, nr = 0, m =
|
|
819
|
+
function Wt(m, x, I, O, J) {
|
|
820
|
+
for (Je = {}, Dt = x, nr = 0, m = I(O, J); pr; ) pr = !1, nr = 0, hr += 1, Xe = null, m = I(O, J);
|
|
821
821
|
return Hr(), m;
|
|
822
822
|
}
|
|
823
|
-
function io(m, x,
|
|
824
|
-
var J =
|
|
823
|
+
function io(m, x, I, O) {
|
|
824
|
+
var J = I.render(), Y = O.childContextTypes;
|
|
825
825
|
if (Y != null) {
|
|
826
|
-
var
|
|
827
|
-
if (typeof
|
|
826
|
+
var ee = x.legacyContext;
|
|
827
|
+
if (typeof I.getChildContext != "function") O = ee;
|
|
828
828
|
else {
|
|
829
|
-
|
|
830
|
-
for (var ce in
|
|
831
|
-
O = L({},
|
|
829
|
+
I = I.getChildContext();
|
|
830
|
+
for (var ce in I) if (!(ce in Y)) throw Error(n(108, Et(O) || "Unknown", ce));
|
|
831
|
+
O = L({}, ee, I);
|
|
832
832
|
}
|
|
833
|
-
x.legacyContext = O, wt(m, x, J), x.legacyContext =
|
|
833
|
+
x.legacyContext = O, wt(m, x, J), x.legacyContext = ee;
|
|
834
834
|
} else wt(m, x, J);
|
|
835
835
|
}
|
|
836
836
|
function ao(m, x) {
|
|
837
837
|
if (m && m.defaultProps) {
|
|
838
838
|
x = L({}, x), m = m.defaultProps;
|
|
839
|
-
for (var
|
|
839
|
+
for (var I in m) x[I] === void 0 && (x[I] = m[I]);
|
|
840
840
|
return x;
|
|
841
841
|
}
|
|
842
842
|
return x;
|
|
843
843
|
}
|
|
844
|
-
function In(m, x,
|
|
845
|
-
if (typeof
|
|
846
|
-
J = Tt(
|
|
847
|
-
var Y =
|
|
848
|
-
Y = new
|
|
844
|
+
function In(m, x, I, O, J) {
|
|
845
|
+
if (typeof I == "function") if (I.prototype && I.prototype.isReactComponent) {
|
|
846
|
+
J = Tt(I, x.legacyContext);
|
|
847
|
+
var Y = I.contextType;
|
|
848
|
+
Y = new I(O, typeof Y == "object" && Y !== null ? Y._currentValue2 : J), we(Y, I, O, J), io(m, x, Y, I);
|
|
849
849
|
} else {
|
|
850
|
-
Y = Tt(
|
|
851
|
-
var
|
|
852
|
-
if (typeof J == "object" && J !== null && typeof J.render == "function" && J.$$typeof === void 0) we(J,
|
|
853
|
-
else if (
|
|
850
|
+
Y = Tt(I, x.legacyContext), J = Wt(m, x, I, O, Y);
|
|
851
|
+
var ee = nr !== 0;
|
|
852
|
+
if (typeof J == "object" && J !== null && typeof J.render == "function" && J.$$typeof === void 0) we(J, I, O, Y), io(m, x, J, I);
|
|
853
|
+
else if (ee) {
|
|
854
854
|
O = x.treeContext, x.treeContext = Fe(O, 1, 0);
|
|
855
855
|
try {
|
|
856
856
|
wt(m, x, J);
|
|
@@ -859,8 +859,8 @@ function Tf() {
|
|
|
859
859
|
}
|
|
860
860
|
} else wt(m, x, J);
|
|
861
861
|
}
|
|
862
|
-
else if (typeof
|
|
863
|
-
switch (J = x.blockedSegment, Y = ae(J.chunks,
|
|
862
|
+
else if (typeof I == "string") {
|
|
863
|
+
switch (J = x.blockedSegment, Y = ae(J.chunks, I, O, m.responseState, J.formatContext), J.lastPushedText = !1, ee = J.formatContext, J.formatContext = B(ee, I, O), yn(m, x, Y), J.formatContext = ee, I) {
|
|
864
864
|
case "area":
|
|
865
865
|
case "base":
|
|
866
866
|
case "br":
|
|
@@ -878,11 +878,11 @@ function Tf() {
|
|
|
878
878
|
case "wbr":
|
|
879
879
|
break;
|
|
880
880
|
default:
|
|
881
|
-
J.chunks.push("</",
|
|
881
|
+
J.chunks.push("</", I, ">");
|
|
882
882
|
}
|
|
883
883
|
J.lastPushedText = !1;
|
|
884
884
|
} else {
|
|
885
|
-
switch (
|
|
885
|
+
switch (I) {
|
|
886
886
|
case St:
|
|
887
887
|
case mt:
|
|
888
888
|
case he:
|
|
@@ -897,8 +897,8 @@ function Tf() {
|
|
|
897
897
|
throw Error(n(343));
|
|
898
898
|
case We:
|
|
899
899
|
e: {
|
|
900
|
-
|
|
901
|
-
var ce = { id: null, rootSegmentID: -1, parentFlushed: !1, pendingTasks: 0, forceClientRender: !1, completedSegments: [], byteSize: 0, fallbackAbortableTasks:
|
|
900
|
+
I = x.blockedBoundary, J = x.blockedSegment, Y = O.fallback, O = O.children, ee = /* @__PURE__ */ new Set();
|
|
901
|
+
var ce = { id: null, rootSegmentID: -1, parentFlushed: !1, pendingTasks: 0, forceClientRender: !1, completedSegments: [], byteSize: 0, fallbackAbortableTasks: ee, errorDigest: null }, Se = zn(m, J.chunks.length, ce, J.formatContext, !1, !1);
|
|
902
902
|
J.children.push(Se), J.lastPushedText = !1;
|
|
903
903
|
var Pe = zn(m, 0, null, J.formatContext, !1, !1);
|
|
904
904
|
Pe.parentFlushed = !0, x.blockedBoundary = ce, x.blockedSegment = Pe;
|
|
@@ -911,97 +911,97 @@ function Tf() {
|
|
|
911
911
|
} catch (ke) {
|
|
912
912
|
Pe.status = 4, ce.forceClientRender = !0, ce.errorDigest = mn(m, ke);
|
|
913
913
|
} finally {
|
|
914
|
-
x.blockedBoundary =
|
|
914
|
+
x.blockedBoundary = I, x.blockedSegment = J;
|
|
915
915
|
}
|
|
916
|
-
x = Un(m, Y,
|
|
916
|
+
x = Un(m, Y, I, Se, ee, x.legacyContext, x.context, x.treeContext), m.pingedTasks.push(x);
|
|
917
917
|
}
|
|
918
918
|
return;
|
|
919
919
|
}
|
|
920
|
-
if (typeof
|
|
920
|
+
if (typeof I == "object" && I !== null) switch (I.$$typeof) {
|
|
921
921
|
case Oe:
|
|
922
|
-
if (O = Wt(m, x,
|
|
923
|
-
|
|
922
|
+
if (O = Wt(m, x, I.render, O, J), nr !== 0) {
|
|
923
|
+
I = x.treeContext, x.treeContext = Fe(I, 1, 0);
|
|
924
924
|
try {
|
|
925
925
|
wt(m, x, O);
|
|
926
926
|
} finally {
|
|
927
|
-
x.treeContext =
|
|
927
|
+
x.treeContext = I;
|
|
928
928
|
}
|
|
929
929
|
} else wt(m, x, O);
|
|
930
930
|
return;
|
|
931
931
|
case _t:
|
|
932
|
-
|
|
932
|
+
I = I.type, O = ao(I, O), In(m, x, I, O, J);
|
|
933
933
|
return;
|
|
934
934
|
case Ie:
|
|
935
|
-
if (J = O.children,
|
|
935
|
+
if (J = O.children, I = I._context, O = O.value, Y = I._currentValue2, I._currentValue2 = O, ee = lt, lt = O = { parent: ee, depth: ee === null ? 0 : ee.depth + 1, context: I, parentValue: Y, value: O }, x.context = O, wt(m, x, J), m = lt, m === null) throw Error(n(403));
|
|
936
936
|
O = m.parentValue, m.context._currentValue2 = O === Pn ? m.context._defaultValue : O, m = lt = m.parent, x.context = m;
|
|
937
937
|
return;
|
|
938
938
|
case Qe:
|
|
939
|
-
O = O.children, O = O(
|
|
939
|
+
O = O.children, O = O(I._currentValue2), wt(m, x, O);
|
|
940
940
|
return;
|
|
941
941
|
case Ze:
|
|
942
|
-
J =
|
|
942
|
+
J = I._init, I = J(I._payload), O = ao(I, O), In(
|
|
943
943
|
m,
|
|
944
944
|
x,
|
|
945
|
-
|
|
945
|
+
I,
|
|
946
946
|
O,
|
|
947
947
|
void 0
|
|
948
948
|
);
|
|
949
949
|
return;
|
|
950
950
|
}
|
|
951
|
-
throw Error(n(130,
|
|
951
|
+
throw Error(n(130, I == null ? I : typeof I, ""));
|
|
952
952
|
}
|
|
953
953
|
}
|
|
954
|
-
function wt(m, x,
|
|
955
|
-
if (x.node =
|
|
956
|
-
switch (
|
|
954
|
+
function wt(m, x, I) {
|
|
955
|
+
if (x.node = I, typeof I == "object" && I !== null) {
|
|
956
|
+
switch (I.$$typeof) {
|
|
957
957
|
case ve:
|
|
958
|
-
In(m, x,
|
|
958
|
+
In(m, x, I.type, I.props, I.ref);
|
|
959
959
|
return;
|
|
960
960
|
case fe:
|
|
961
961
|
throw Error(n(257));
|
|
962
962
|
case Ze:
|
|
963
|
-
var O =
|
|
964
|
-
|
|
963
|
+
var O = I._init;
|
|
964
|
+
I = O(I._payload), wt(m, x, I);
|
|
965
965
|
return;
|
|
966
966
|
}
|
|
967
|
-
if (I
|
|
968
|
-
vn(m, x,
|
|
967
|
+
if (D(I)) {
|
|
968
|
+
vn(m, x, I);
|
|
969
969
|
return;
|
|
970
970
|
}
|
|
971
|
-
if (
|
|
972
|
-
if (
|
|
971
|
+
if (I === null || typeof I != "object" ? O = null : (O = vt && I[vt] || I["@@iterator"], O = typeof O == "function" ? O : null), O && (O = O.call(I))) {
|
|
972
|
+
if (I = O.next(), !I.done) {
|
|
973
973
|
var J = [];
|
|
974
974
|
do
|
|
975
|
-
J.push(
|
|
976
|
-
while (!
|
|
975
|
+
J.push(I.value), I = O.next();
|
|
976
|
+
while (!I.done);
|
|
977
977
|
vn(m, x, J);
|
|
978
978
|
}
|
|
979
979
|
return;
|
|
980
980
|
}
|
|
981
|
-
throw m = Object.prototype.toString.call(
|
|
981
|
+
throw m = Object.prototype.toString.call(I), Error(n(31, m === "[object Object]" ? "object with keys {" + Object.keys(I).join(", ") + "}" : m));
|
|
982
982
|
}
|
|
983
|
-
typeof
|
|
983
|
+
typeof I == "string" ? (O = x.blockedSegment, O.lastPushedText = Be(x.blockedSegment.chunks, I, m.responseState, O.lastPushedText)) : typeof I == "number" && (O = x.blockedSegment, O.lastPushedText = Be(x.blockedSegment.chunks, "" + I, m.responseState, O.lastPushedText));
|
|
984
984
|
}
|
|
985
|
-
function vn(m, x,
|
|
986
|
-
for (var O =
|
|
985
|
+
function vn(m, x, I) {
|
|
986
|
+
for (var O = I.length, J = 0; J < O; J++) {
|
|
987
987
|
var Y = x.treeContext;
|
|
988
988
|
x.treeContext = Fe(Y, O, J);
|
|
989
989
|
try {
|
|
990
|
-
yn(m, x,
|
|
990
|
+
yn(m, x, I[J]);
|
|
991
991
|
} finally {
|
|
992
992
|
x.treeContext = Y;
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
|
-
function yn(m, x,
|
|
996
|
+
function yn(m, x, I) {
|
|
997
997
|
var O = x.blockedSegment.formatContext, J = x.legacyContext, Y = x.context;
|
|
998
998
|
try {
|
|
999
|
-
return wt(m, x,
|
|
999
|
+
return wt(m, x, I);
|
|
1000
1000
|
} catch (Se) {
|
|
1001
1001
|
if (Hr(), typeof Se == "object" && Se !== null && typeof Se.then == "function") {
|
|
1002
|
-
|
|
1003
|
-
var
|
|
1004
|
-
|
|
1002
|
+
I = Se;
|
|
1003
|
+
var ee = x.blockedSegment, ce = zn(m, ee.chunks.length, null, ee.formatContext, ee.lastPushedText, !0);
|
|
1004
|
+
ee.children.push(ce), ee.lastPushedText = !1, m = Un(m, x.node, x.blockedBoundary, ce, x.abortSet, x.legacyContext, x.context, x.treeContext).ping, I.then(m, m), x.blockedSegment.formatContext = O, x.legacyContext = J, x.context = Y, nt(Y);
|
|
1005
1005
|
} else throw x.blockedSegment.formatContext = O, x.legacyContext = J, x.context = Y, nt(Y), Se;
|
|
1006
1006
|
}
|
|
1007
1007
|
}
|
|
@@ -1009,49 +1009,49 @@ function Tf() {
|
|
|
1009
1009
|
var x = m.blockedBoundary;
|
|
1010
1010
|
m = m.blockedSegment, m.status = 3, bn(this, x, m);
|
|
1011
1011
|
}
|
|
1012
|
-
function vr(m, x,
|
|
1012
|
+
function vr(m, x, I) {
|
|
1013
1013
|
var O = m.blockedBoundary;
|
|
1014
|
-
m.blockedSegment.status = 3, O === null ? (x.allPendingTasks--, x.status !== 2 && (x.status = 2, x.destination !== null && x.destination.push(null))) : (O.pendingTasks--, O.forceClientRender || (O.forceClientRender = !0, m =
|
|
1015
|
-
return vr(J, x,
|
|
1014
|
+
m.blockedSegment.status = 3, O === null ? (x.allPendingTasks--, x.status !== 2 && (x.status = 2, x.destination !== null && x.destination.push(null))) : (O.pendingTasks--, O.forceClientRender || (O.forceClientRender = !0, m = I === void 0 ? Error(n(432)) : I, O.errorDigest = x.onError(m), O.parentFlushed && x.clientRenderedBoundaries.push(O)), O.fallbackAbortableTasks.forEach(function(J) {
|
|
1015
|
+
return vr(J, x, I);
|
|
1016
1016
|
}), O.fallbackAbortableTasks.clear(), x.allPendingTasks--, x.allPendingTasks === 0 && (O = x.onAllReady, O()));
|
|
1017
1017
|
}
|
|
1018
1018
|
function on(m, x) {
|
|
1019
1019
|
if (x.chunks.length === 0 && x.children.length === 1 && x.children[0].boundary === null) {
|
|
1020
|
-
var
|
|
1021
|
-
|
|
1020
|
+
var I = x.children[0];
|
|
1021
|
+
I.id = x.id, I.parentFlushed = !0, I.status === 1 && on(m, I);
|
|
1022
1022
|
} else m.completedSegments.push(x);
|
|
1023
1023
|
}
|
|
1024
|
-
function bn(m, x,
|
|
1024
|
+
function bn(m, x, I) {
|
|
1025
1025
|
if (x === null) {
|
|
1026
|
-
if (
|
|
1026
|
+
if (I.parentFlushed) {
|
|
1027
1027
|
if (m.completedRootSegment !== null) throw Error(n(389));
|
|
1028
|
-
m.completedRootSegment =
|
|
1028
|
+
m.completedRootSegment = I;
|
|
1029
1029
|
}
|
|
1030
1030
|
m.pendingRootTasks--, m.pendingRootTasks === 0 && (m.onShellError = gn, x = m.onShellReady, x());
|
|
1031
|
-
} else x.pendingTasks--, x.forceClientRender || (x.pendingTasks === 0 ? (
|
|
1031
|
+
} else x.pendingTasks--, x.forceClientRender || (x.pendingTasks === 0 ? (I.parentFlushed && I.status === 1 && on(x, I), x.parentFlushed && m.completedBoundaries.push(x), x.fallbackAbortableTasks.forEach(Wn, m), x.fallbackAbortableTasks.clear()) : I.parentFlushed && I.status === 1 && (on(x, I), x.completedSegments.length === 1 && x.parentFlushed && m.partialBoundaries.push(x)));
|
|
1032
1032
|
m.allPendingTasks--, m.allPendingTasks === 0 && (m = m.onAllReady, m());
|
|
1033
1033
|
}
|
|
1034
1034
|
function Qt(m) {
|
|
1035
1035
|
if (m.status !== 2) {
|
|
1036
|
-
var x = lt,
|
|
1036
|
+
var x = lt, I = Nn.current;
|
|
1037
1037
|
Nn.current = Ur;
|
|
1038
1038
|
var O = gr;
|
|
1039
1039
|
gr = m.responseState;
|
|
1040
1040
|
try {
|
|
1041
1041
|
var J = m.pingedTasks, Y;
|
|
1042
1042
|
for (Y = 0; Y < J.length; Y++) {
|
|
1043
|
-
var
|
|
1043
|
+
var ee = J[Y], ce = m, Se = ee.blockedSegment;
|
|
1044
1044
|
if (Se.status === 0) {
|
|
1045
|
-
nt(
|
|
1045
|
+
nt(ee.context);
|
|
1046
1046
|
try {
|
|
1047
|
-
wt(ce,
|
|
1047
|
+
wt(ce, ee, ee.node), ce.responseState.generateStaticMarkup || Se.lastPushedText && Se.textEmbedded && Se.chunks.push("<!-- -->"), ee.abortSet.delete(ee), Se.status = 1, bn(ce, ee.blockedBoundary, Se);
|
|
1048
1048
|
} catch (Ut) {
|
|
1049
1049
|
if (Hr(), typeof Ut == "object" && Ut !== null && typeof Ut.then == "function") {
|
|
1050
|
-
var Pe =
|
|
1050
|
+
var Pe = ee.ping;
|
|
1051
1051
|
Ut.then(Pe, Pe);
|
|
1052
1052
|
} else {
|
|
1053
|
-
|
|
1054
|
-
var ke =
|
|
1053
|
+
ee.abortSet.delete(ee), Se.status = 4;
|
|
1054
|
+
var ke = ee.blockedBoundary, Ye = Ut, Ht = mn(ce, Ye);
|
|
1055
1055
|
if (ke === null ? jn(ce, Ye) : (ke.pendingTasks--, ke.forceClientRender || (ke.forceClientRender = !0, ke.errorDigest = Ht, ke.parentFlushed && ce.clientRenderedBoundaries.push(ke))), ce.allPendingTasks--, ce.allPendingTasks === 0) {
|
|
1056
1056
|
var Nt = ce.onAllReady;
|
|
1057
1057
|
Nt();
|
|
@@ -1065,23 +1065,23 @@ function Tf() {
|
|
|
1065
1065
|
} catch (Ut) {
|
|
1066
1066
|
mn(m, Ut), jn(m, Ut);
|
|
1067
1067
|
} finally {
|
|
1068
|
-
gr = O, Nn.current =
|
|
1068
|
+
gr = O, Nn.current = I, I === Ur && nt(x);
|
|
1069
1069
|
}
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
|
-
function Yn(m, x,
|
|
1073
|
-
switch (
|
|
1072
|
+
function Yn(m, x, I) {
|
|
1073
|
+
switch (I.parentFlushed = !0, I.status) {
|
|
1074
1074
|
case 0:
|
|
1075
|
-
var O =
|
|
1076
|
-
return
|
|
1075
|
+
var O = I.id = m.nextSegmentId++;
|
|
1076
|
+
return I.lastPushedText = !1, I.textEmbedded = !1, m = m.responseState, x.push('<template id="'), x.push(m.placeholderPrefix), m = O.toString(16), x.push(m), x.push('"></template>');
|
|
1077
1077
|
case 1:
|
|
1078
|
-
|
|
1078
|
+
I.status = 2;
|
|
1079
1079
|
var J = !0;
|
|
1080
|
-
O =
|
|
1080
|
+
O = I.chunks;
|
|
1081
1081
|
var Y = 0;
|
|
1082
|
-
|
|
1083
|
-
for (var
|
|
1084
|
-
for (J =
|
|
1082
|
+
I = I.children;
|
|
1083
|
+
for (var ee = 0; ee < I.length; ee++) {
|
|
1084
|
+
for (J = I[ee]; Y < J.index; Y++) x.push(O[Y]);
|
|
1085
1085
|
J = rr(m, x, J);
|
|
1086
1086
|
}
|
|
1087
1087
|
for (; Y < O.length - 1; Y++) x.push(O[Y]);
|
|
@@ -1090,50 +1090,50 @@ function Tf() {
|
|
|
1090
1090
|
throw Error(n(390));
|
|
1091
1091
|
}
|
|
1092
1092
|
}
|
|
1093
|
-
function rr(m, x,
|
|
1094
|
-
var O =
|
|
1095
|
-
if (O === null) return Yn(m, x,
|
|
1096
|
-
if (O.parentFlushed = !0, O.forceClientRender) return m.responseState.generateStaticMarkup || (O = O.errorDigest, x.push("<!--$!-->"), x.push("<template"), O && (x.push(' data-dgst="'), O = T(O), x.push(O), x.push('"')), x.push("></template>")), Yn(m, x,
|
|
1093
|
+
function rr(m, x, I) {
|
|
1094
|
+
var O = I.boundary;
|
|
1095
|
+
if (O === null) return Yn(m, x, I);
|
|
1096
|
+
if (O.parentFlushed = !0, O.forceClientRender) return m.responseState.generateStaticMarkup || (O = O.errorDigest, x.push("<!--$!-->"), x.push("<template"), O && (x.push(' data-dgst="'), O = T(O), x.push(O), x.push('"')), x.push("></template>")), Yn(m, x, I), m = m.responseState.generateStaticMarkup ? !0 : x.push("<!--/$-->"), m;
|
|
1097
1097
|
if (0 < O.pendingTasks) {
|
|
1098
1098
|
O.rootSegmentID = m.nextSegmentId++, 0 < O.completedSegments.length && m.partialBoundaries.push(O);
|
|
1099
1099
|
var J = m.responseState, Y = J.nextSuspenseID++;
|
|
1100
|
-
return J = J.boundaryPrefix + Y.toString(16), O = O.id = J, se(x, m.responseState, O), Yn(m, x,
|
|
1100
|
+
return J = J.boundaryPrefix + Y.toString(16), O = O.id = J, se(x, m.responseState, O), Yn(m, x, I), x.push("<!--/$-->");
|
|
1101
1101
|
}
|
|
1102
|
-
if (O.byteSize > m.progressiveChunkSize) return O.rootSegmentID = m.nextSegmentId++, m.completedBoundaries.push(O), se(x, m.responseState, O.id), Yn(m, x,
|
|
1103
|
-
if (m.responseState.generateStaticMarkup || x.push("<!--$-->"),
|
|
1104
|
-
return rr(m, x,
|
|
1102
|
+
if (O.byteSize > m.progressiveChunkSize) return O.rootSegmentID = m.nextSegmentId++, m.completedBoundaries.push(O), se(x, m.responseState, O.id), Yn(m, x, I), x.push("<!--/$-->");
|
|
1103
|
+
if (m.responseState.generateStaticMarkup || x.push("<!--$-->"), I = O.completedSegments, I.length !== 1) throw Error(n(391));
|
|
1104
|
+
return rr(m, x, I[0]), m = m.responseState.generateStaticMarkup ? !0 : x.push("<!--/$-->"), m;
|
|
1105
1105
|
}
|
|
1106
|
-
function yr(m, x,
|
|
1107
|
-
return le(x, m.responseState,
|
|
1106
|
+
function yr(m, x, I) {
|
|
1107
|
+
return le(x, m.responseState, I.formatContext, I.id), rr(m, x, I), be(x, I.formatContext);
|
|
1108
1108
|
}
|
|
1109
|
-
function Zt(m, x,
|
|
1110
|
-
for (var O =
|
|
1111
|
-
if (O.length = 0, m = m.responseState, O =
|
|
1112
|
-
return
|
|
1109
|
+
function Zt(m, x, I) {
|
|
1110
|
+
for (var O = I.completedSegments, J = 0; J < O.length; J++) wn(m, x, I, O[J]);
|
|
1111
|
+
if (O.length = 0, m = m.responseState, O = I.id, I = I.rootSegmentID, x.push(m.startInlineScript), m.sentCompleteBoundaryFunction ? x.push('$RC("') : (m.sentCompleteBoundaryFunction = !0, x.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')), O === null) throw Error(n(395));
|
|
1112
|
+
return I = I.toString(16), x.push(O), x.push('","'), x.push(m.segmentPrefix), x.push(I), x.push('")<\/script>');
|
|
1113
1113
|
}
|
|
1114
|
-
function wn(m, x,
|
|
1114
|
+
function wn(m, x, I, O) {
|
|
1115
1115
|
if (O.status === 2) return !0;
|
|
1116
1116
|
var J = O.id;
|
|
1117
1117
|
if (J === -1) {
|
|
1118
|
-
if ((O.id =
|
|
1118
|
+
if ((O.id = I.rootSegmentID) === -1) throw Error(n(392));
|
|
1119
1119
|
return yr(m, x, O);
|
|
1120
1120
|
}
|
|
1121
1121
|
return yr(m, x, O), m = m.responseState, x.push(m.startInlineScript), m.sentCompleteSegmentFunction ? x.push('$RS("') : (m.sentCompleteSegmentFunction = !0, x.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')), x.push(m.segmentPrefix), J = J.toString(16), x.push(J), x.push('","'), x.push(m.placeholderPrefix), x.push(J), x.push('")<\/script>');
|
|
1122
1122
|
}
|
|
1123
1123
|
function Ft(m, x) {
|
|
1124
1124
|
try {
|
|
1125
|
-
var
|
|
1126
|
-
if (
|
|
1127
|
-
rr(m, x,
|
|
1125
|
+
var I = m.completedRootSegment;
|
|
1126
|
+
if (I !== null && m.pendingRootTasks === 0) {
|
|
1127
|
+
rr(m, x, I), m.completedRootSegment = null;
|
|
1128
1128
|
var O = m.responseState.bootstrapChunks;
|
|
1129
|
-
for (
|
|
1130
|
-
|
|
1129
|
+
for (I = 0; I < O.length - 1; I++) x.push(O[I]);
|
|
1130
|
+
I < O.length && x.push(O[I]);
|
|
1131
1131
|
}
|
|
1132
1132
|
var J = m.clientRenderedBoundaries, Y;
|
|
1133
1133
|
for (Y = 0; Y < J.length; Y++) {
|
|
1134
|
-
var
|
|
1134
|
+
var ee = J[Y];
|
|
1135
1135
|
O = x;
|
|
1136
|
-
var ce = m.responseState, Se =
|
|
1136
|
+
var ce = m.responseState, Se = ee.id, Pe = ee.errorDigest, ke = ee.errorMessage, Ye = ee.errorComponentStack;
|
|
1137
1137
|
if (O.push(ce.startInlineScript), ce.sentClientRenderFunction ? O.push('$RX("') : (ce.sentClientRenderFunction = !0, O.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')), Se === null) throw Error(n(395));
|
|
1138
1138
|
if (O.push(Se), O.push('"'), Pe || ke || Ye) {
|
|
1139
1139
|
O.push(",");
|
|
@@ -1166,9 +1166,9 @@ function Tf() {
|
|
|
1166
1166
|
for (Y = 0; Y < xn.length; Y++) {
|
|
1167
1167
|
var wr = xn[Y];
|
|
1168
1168
|
e: {
|
|
1169
|
-
J = m,
|
|
1169
|
+
J = m, ee = x;
|
|
1170
1170
|
var Vn = wr.completedSegments;
|
|
1171
|
-
for (ce = 0; ce < Vn.length; ce++) if (!wn(J,
|
|
1171
|
+
for (ce = 0; ce < Vn.length; ce++) if (!wn(J, ee, wr, Vn[ce])) {
|
|
1172
1172
|
ce++, Vn.splice(0, ce);
|
|
1173
1173
|
var or = !1;
|
|
1174
1174
|
break e;
|
|
@@ -1193,23 +1193,23 @@ function Tf() {
|
|
|
1193
1193
|
}
|
|
1194
1194
|
function br(m, x) {
|
|
1195
1195
|
try {
|
|
1196
|
-
var
|
|
1197
|
-
|
|
1196
|
+
var I = m.abortableTasks;
|
|
1197
|
+
I.forEach(function(O) {
|
|
1198
1198
|
return vr(O, m, x);
|
|
1199
|
-
}),
|
|
1199
|
+
}), I.clear(), m.destination !== null && Ft(m, m.destination);
|
|
1200
1200
|
} catch (O) {
|
|
1201
1201
|
mn(m, O), jn(m, O);
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
1204
1204
|
function It() {
|
|
1205
1205
|
}
|
|
1206
|
-
function Yt(m, x,
|
|
1207
|
-
var J = !1, Y = null,
|
|
1208
|
-
return Pe !== null && (
|
|
1206
|
+
function Yt(m, x, I, O) {
|
|
1207
|
+
var J = !1, Y = null, ee = "", ce = { push: function(Pe) {
|
|
1208
|
+
return Pe !== null && (ee += Pe), !0;
|
|
1209
1209
|
}, destroy: function(Pe) {
|
|
1210
1210
|
J = !0, Y = Pe;
|
|
1211
1211
|
} }, Se = !1;
|
|
1212
|
-
if (m = mr(m, _(
|
|
1212
|
+
if (m = mr(m, _(I, x ? x.identifierPrefix : void 0), { insertionMode: 1, selectedValue: null }, 1 / 0, It, void 0, function() {
|
|
1213
1213
|
Se = !0;
|
|
1214
1214
|
}), Qt(m), br(m, O), m.status === 1) m.status = 2, ce.destroy(m.fatalError);
|
|
1215
1215
|
else if (m.status !== 2 && m.destination === null) {
|
|
@@ -1222,7 +1222,7 @@ function Tf() {
|
|
|
1222
1222
|
}
|
|
1223
1223
|
if (J) throw Y;
|
|
1224
1224
|
if (!Se) throw Error(n(426));
|
|
1225
|
-
return
|
|
1225
|
+
return ee;
|
|
1226
1226
|
}
|
|
1227
1227
|
return yi.renderToNodeStream = function() {
|
|
1228
1228
|
throw Error(n(207));
|
|
@@ -1284,26 +1284,26 @@ function Df() {
|
|
|
1284
1284
|
function k(v, w, C, M, K, V, ne) {
|
|
1285
1285
|
this.acceptsBooleans = w === 2 || w === 3 || w === 4, this.attributeName = M, this.attributeNamespace = K, this.mustUseProperty = C, this.propertyName = v, this.type = w, this.sanitizeURL = V, this.removeEmptyString = ne;
|
|
1286
1286
|
}
|
|
1287
|
-
var
|
|
1287
|
+
var D = {};
|
|
1288
1288
|
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(v) {
|
|
1289
|
-
|
|
1289
|
+
D[v] = new k(v, 0, !1, v, null, !1, !1);
|
|
1290
1290
|
}), [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(v) {
|
|
1291
1291
|
var w = v[0];
|
|
1292
|
-
|
|
1292
|
+
D[w] = new k(w, 1, !1, v[1], null, !1, !1);
|
|
1293
1293
|
}), ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(v) {
|
|
1294
|
-
|
|
1294
|
+
D[v] = new k(v, 2, !1, v.toLowerCase(), null, !1, !1);
|
|
1295
1295
|
}), ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(v) {
|
|
1296
|
-
|
|
1296
|
+
D[v] = new k(v, 2, !1, v, null, !1, !1);
|
|
1297
1297
|
}), "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(v) {
|
|
1298
|
-
|
|
1298
|
+
D[v] = new k(v, 3, !1, v.toLowerCase(), null, !1, !1);
|
|
1299
1299
|
}), ["checked", "multiple", "muted", "selected"].forEach(function(v) {
|
|
1300
|
-
|
|
1300
|
+
D[v] = new k(v, 3, !0, v, null, !1, !1);
|
|
1301
1301
|
}), ["capture", "download"].forEach(function(v) {
|
|
1302
|
-
|
|
1302
|
+
D[v] = new k(v, 4, !1, v, null, !1, !1);
|
|
1303
1303
|
}), ["cols", "rows", "size", "span"].forEach(function(v) {
|
|
1304
|
-
|
|
1304
|
+
D[v] = new k(v, 6, !1, v, null, !1, !1);
|
|
1305
1305
|
}), ["rowSpan", "start"].forEach(function(v) {
|
|
1306
|
-
|
|
1306
|
+
D[v] = new k(v, 5, !1, v.toLowerCase(), null, !1, !1);
|
|
1307
1307
|
});
|
|
1308
1308
|
var Q = /[\-:]([a-z])/g;
|
|
1309
1309
|
function B(v) {
|
|
@@ -1314,19 +1314,19 @@ function Df() {
|
|
|
1314
1314
|
Q,
|
|
1315
1315
|
B
|
|
1316
1316
|
);
|
|
1317
|
-
|
|
1317
|
+
D[w] = new k(w, 1, !1, v, null, !1, !1);
|
|
1318
1318
|
}), "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(v) {
|
|
1319
1319
|
var w = v.replace(Q, B);
|
|
1320
|
-
|
|
1320
|
+
D[w] = new k(w, 1, !1, v, "http://www.w3.org/1999/xlink", !1, !1);
|
|
1321
1321
|
}), ["xml:base", "xml:lang", "xml:space"].forEach(function(v) {
|
|
1322
1322
|
var w = v.replace(Q, B);
|
|
1323
|
-
|
|
1323
|
+
D[w] = new k(w, 1, !1, v, "http://www.w3.org/XML/1998/namespace", !1, !1);
|
|
1324
1324
|
}), ["tabIndex", "crossOrigin"].forEach(function(v) {
|
|
1325
|
-
|
|
1326
|
-
}),
|
|
1327
|
-
|
|
1325
|
+
D[v] = new k(v, 1, !1, v.toLowerCase(), null, !1, !1);
|
|
1326
|
+
}), D.xlinkHref = new k("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1), ["src", "href", "action", "formAction"].forEach(function(v) {
|
|
1327
|
+
D[v] = new k(v, 1, !1, v.toLowerCase(), null, !0, !0);
|
|
1328
1328
|
});
|
|
1329
|
-
var
|
|
1329
|
+
var N = {
|
|
1330
1330
|
animationIterationCount: !0,
|
|
1331
1331
|
aspectRatio: !0,
|
|
1332
1332
|
borderImageOutset: !0,
|
|
@@ -1371,16 +1371,16 @@ function Df() {
|
|
|
1371
1371
|
strokeOpacity: !0,
|
|
1372
1372
|
strokeWidth: !0
|
|
1373
1373
|
}, U = ["Webkit", "ms", "Moz", "O"];
|
|
1374
|
-
Object.keys(
|
|
1374
|
+
Object.keys(N).forEach(function(v) {
|
|
1375
1375
|
U.forEach(function(w) {
|
|
1376
|
-
w = w + v.charAt(0).toUpperCase() + v.substring(1),
|
|
1376
|
+
w = w + v.charAt(0).toUpperCase() + v.substring(1), N[w] = N[v];
|
|
1377
1377
|
});
|
|
1378
1378
|
});
|
|
1379
|
-
var
|
|
1380
|
-
function
|
|
1379
|
+
var H = /["'&<>]/;
|
|
1380
|
+
function j(v) {
|
|
1381
1381
|
if (typeof v == "boolean" || typeof v == "number") return "" + v;
|
|
1382
1382
|
v = "" + v;
|
|
1383
|
-
var w =
|
|
1383
|
+
var w = H.exec(v);
|
|
1384
1384
|
if (w) {
|
|
1385
1385
|
var C = "", M, K = 0;
|
|
1386
1386
|
for (M = w.index; M < v.length; M++) {
|
|
@@ -1409,15 +1409,15 @@ function Df() {
|
|
|
1409
1409
|
}
|
|
1410
1410
|
return v;
|
|
1411
1411
|
}
|
|
1412
|
-
var
|
|
1412
|
+
var Z = /([A-Z])/g, z = /^ms-/, W = Array.isArray, $ = d("<script>"), q = d("<\/script>"), ae = d('<script src="'), se = d('<script type="module" src="'), le = d('" async=""><\/script>'), be = /(<\/|<)(s)(cript)/gi;
|
|
1413
1413
|
function ge(v, w, C, M) {
|
|
1414
1414
|
return "" + w + (C === "s" ? "\\u0073" : "\\u0053") + M;
|
|
1415
1415
|
}
|
|
1416
1416
|
function me(v, w, C, M, K) {
|
|
1417
|
-
v = v === void 0 ? "" : v, w = w === void 0 ? $ : d('<script nonce="' +
|
|
1417
|
+
v = v === void 0 ? "" : v, w = w === void 0 ? $ : d('<script nonce="' + j(w) + '">');
|
|
1418
1418
|
var V = [];
|
|
1419
|
-
if (C !== void 0 && V.push(w, u(("" + C).replace(be, ge)), q), M !== void 0) for (C = 0; C < M.length; C++) V.push(ae, u(
|
|
1420
|
-
if (K !== void 0) for (M = 0; M < K.length; M++) V.push(se, u(
|
|
1419
|
+
if (C !== void 0 && V.push(w, u(("" + C).replace(be, ge)), q), M !== void 0) for (C = 0; C < M.length; C++) V.push(ae, u(j(M[C])), le);
|
|
1420
|
+
if (K !== void 0) for (M = 0; M < K.length; M++) V.push(se, u(j(K[M])), le);
|
|
1421
1421
|
return { bootstrapChunks: V, startInlineScript: w, placeholderPrefix: d(v + "P:"), segmentPrefix: d(v + "S:"), boundaryPrefix: v + "B:", idPrefix: v, nextSuspenseID: 0, sentCompleteSegmentFunction: !1, sentCompleteBoundaryFunction: !1, sentClientRenderFunction: !1 };
|
|
1422
1422
|
}
|
|
1423
1423
|
function _(v, w) {
|
|
@@ -1451,7 +1451,7 @@ function Df() {
|
|
|
1451
1451
|
}
|
|
1452
1452
|
var ve = d("<!-- -->");
|
|
1453
1453
|
function fe(v, w, C, M) {
|
|
1454
|
-
return w === "" ? M : (M && v.push(ve), v.push(u(
|
|
1454
|
+
return w === "" ? M : (M && v.push(ve), v.push(u(j(w))), !0);
|
|
1455
1455
|
}
|
|
1456
1456
|
var ie = /* @__PURE__ */ new Map(), he = d(' style="'), ye = d(":"), Ie = d(";");
|
|
1457
1457
|
function Qe(v, w, C) {
|
|
@@ -1461,12 +1461,12 @@ function Df() {
|
|
|
1461
1461
|
var K = C[M];
|
|
1462
1462
|
if (K != null && typeof K != "boolean" && K !== "") {
|
|
1463
1463
|
if (M.indexOf("--") === 0) {
|
|
1464
|
-
var V = u(
|
|
1465
|
-
K = u(
|
|
1464
|
+
var V = u(j(M));
|
|
1465
|
+
K = u(j(("" + K).trim()));
|
|
1466
1466
|
} else {
|
|
1467
1467
|
V = M;
|
|
1468
1468
|
var ne = ie.get(V);
|
|
1469
|
-
ne !== void 0 || (ne = d(
|
|
1469
|
+
ne !== void 0 || (ne = d(j(V.replace(Z, "-$1").toLowerCase().replace(z, "-ms-"))), ie.set(V, ne)), V = ne, K = typeof K == "number" ? K === 0 || g.call(N, M) ? u("" + K) : u(K + "px") : u(j(("" + K).trim()));
|
|
1470
1470
|
}
|
|
1471
1471
|
w ? (w = !1, v.push(he, V, ye, K)) : v.push(Ie, V, ye, K);
|
|
1472
1472
|
}
|
|
@@ -1487,7 +1487,7 @@ function Df() {
|
|
|
1487
1487
|
return;
|
|
1488
1488
|
}
|
|
1489
1489
|
if (!(2 < C.length) || C[0] !== "o" && C[0] !== "O" || C[1] !== "n" && C[1] !== "N") {
|
|
1490
|
-
if (w =
|
|
1490
|
+
if (w = D.hasOwnProperty(C) ? D[C] : null, w !== null) {
|
|
1491
1491
|
switch (typeof M) {
|
|
1492
1492
|
case "function":
|
|
1493
1493
|
case "symbol":
|
|
@@ -1500,16 +1500,16 @@ function Df() {
|
|
|
1500
1500
|
M && v.push(Oe, C, _t);
|
|
1501
1501
|
break;
|
|
1502
1502
|
case 4:
|
|
1503
|
-
M === !0 ? v.push(Oe, C, _t) : M !== !1 && v.push(Oe, C, We, u(
|
|
1503
|
+
M === !0 ? v.push(Oe, C, _t) : M !== !1 && v.push(Oe, C, We, u(j(M)), qe);
|
|
1504
1504
|
break;
|
|
1505
1505
|
case 5:
|
|
1506
|
-
isNaN(M) || v.push(Oe, C, We, u(
|
|
1506
|
+
isNaN(M) || v.push(Oe, C, We, u(j(M)), qe);
|
|
1507
1507
|
break;
|
|
1508
1508
|
case 6:
|
|
1509
|
-
!isNaN(M) && 1 <= M && v.push(Oe, C, We, u(
|
|
1509
|
+
!isNaN(M) && 1 <= M && v.push(Oe, C, We, u(j(M)), qe);
|
|
1510
1510
|
break;
|
|
1511
1511
|
default:
|
|
1512
|
-
w.sanitizeURL && (M = "" + M), v.push(Oe, C, We, u(
|
|
1512
|
+
w.sanitizeURL && (M = "" + M), v.push(Oe, C, We, u(j(M)), qe);
|
|
1513
1513
|
}
|
|
1514
1514
|
} else if (R(C)) {
|
|
1515
1515
|
switch (typeof M) {
|
|
@@ -1519,7 +1519,7 @@ function Df() {
|
|
|
1519
1519
|
case "boolean":
|
|
1520
1520
|
if (w = C.toLowerCase().slice(0, 5), w !== "data-" && w !== "aria-") return;
|
|
1521
1521
|
}
|
|
1522
|
-
v.push(Oe, u(C), We, u(
|
|
1522
|
+
v.push(Oe, u(C), We, u(j(M)), qe);
|
|
1523
1523
|
}
|
|
1524
1524
|
}
|
|
1525
1525
|
}
|
|
@@ -1554,7 +1554,7 @@ function Df() {
|
|
|
1554
1554
|
Ze(v, M, V, ne);
|
|
1555
1555
|
}
|
|
1556
1556
|
}
|
|
1557
|
-
return v.push(et), St(v, K, C), typeof C == "string" ? (v.push(u(
|
|
1557
|
+
return v.push(et), St(v, K, C), typeof C == "string" ? (v.push(u(j(C))), null) : C;
|
|
1558
1558
|
}
|
|
1559
1559
|
var tt = d(`
|
|
1560
1560
|
`), Tt = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, lt = /* @__PURE__ */ new Map();
|
|
@@ -1642,7 +1642,7 @@ function Df() {
|
|
|
1642
1642
|
V = "" + Le;
|
|
1643
1643
|
}
|
|
1644
1644
|
return typeof V == "string" && V[0] === `
|
|
1645
|
-
` && v.push(tt), V !== null && v.push(u(
|
|
1645
|
+
` && v.push(tt), V !== null && v.push(u(j("" + V))), null;
|
|
1646
1646
|
case "input":
|
|
1647
1647
|
v.push(ft("input")), Te = Le = ue = V = null;
|
|
1648
1648
|
for (ne in C) if (g.call(C, ne) && (He = C[ne], He != null)) switch (ne) {
|
|
@@ -1764,12 +1764,12 @@ function Df() {
|
|
|
1764
1764
|
case "suppressHydrationWarning":
|
|
1765
1765
|
break;
|
|
1766
1766
|
default:
|
|
1767
|
-
R(He) && typeof ue != "function" && typeof ue != "symbol" && v.push(Oe, u(He), We, u(
|
|
1767
|
+
R(He) && typeof ue != "function" && typeof ue != "symbol" && v.push(Oe, u(He), We, u(j(ue)), qe);
|
|
1768
1768
|
}
|
|
1769
1769
|
return v.push(et), St(v, ne, V), V;
|
|
1770
1770
|
}
|
|
1771
1771
|
}
|
|
1772
|
-
var Tn = d("</"), zt = d(">"), nt = d('<template id="'),
|
|
1772
|
+
var Tn = d("</"), zt = d(">"), nt = d('<template id="'), te = d('"></template>'), we = d("<!--$-->"), Ee = d('<!--$?--><template id="'), Fe = d('"></template>'), _e = d("<!--$!-->"), ut = d("<!--/$-->"), yt = d("<template"), rt = d('"'), Lt = d(' data-dgst="');
|
|
1773
1773
|
d(' data-msg="'), d(' data-stck="');
|
|
1774
1774
|
var tr = d("></template>");
|
|
1775
1775
|
function Je(v, w, C) {
|
|
@@ -1837,7 +1837,7 @@ function Df() {
|
|
|
1837
1837
|
}
|
|
1838
1838
|
});
|
|
1839
1839
|
}
|
|
1840
|
-
var bn = Object.assign, Qt = Symbol.for("react.element"), Yn = Symbol.for("react.portal"), rr = Symbol.for("react.fragment"), yr = Symbol.for("react.strict_mode"), Zt = Symbol.for("react.profiler"), wn = Symbol.for("react.provider"), Ft = Symbol.for("react.context"), br = Symbol.for("react.forward_ref"), It = Symbol.for("react.suspense"), Yt = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), x = Symbol.for("react.lazy"),
|
|
1840
|
+
var bn = Object.assign, Qt = Symbol.for("react.element"), Yn = Symbol.for("react.portal"), rr = Symbol.for("react.fragment"), yr = Symbol.for("react.strict_mode"), Zt = Symbol.for("react.profiler"), wn = Symbol.for("react.provider"), Ft = Symbol.for("react.context"), br = Symbol.for("react.forward_ref"), It = Symbol.for("react.suspense"), Yt = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), I = Symbol.for("react.scope"), O = Symbol.for("react.debug_trace_mode"), J = Symbol.for("react.legacy_hidden"), Y = Symbol.for("react.default_value"), ee = Symbol.iterator;
|
|
1841
1841
|
function ce(v) {
|
|
1842
1842
|
if (v == null) return null;
|
|
1843
1843
|
if (typeof v == "function") return v.displayName || v.name || null;
|
|
@@ -2159,7 +2159,7 @@ function Df() {
|
|
|
2159
2159
|
case Yt:
|
|
2160
2160
|
Gt(v, w, M.children);
|
|
2161
2161
|
return;
|
|
2162
|
-
case
|
|
2162
|
+
case I:
|
|
2163
2163
|
throw Error(n(343));
|
|
2164
2164
|
case It:
|
|
2165
2165
|
e: {
|
|
@@ -2232,7 +2232,7 @@ function Df() {
|
|
|
2232
2232
|
Li(v, w, C);
|
|
2233
2233
|
return;
|
|
2234
2234
|
}
|
|
2235
|
-
if (C === null || typeof C != "object" ? M = null : (M =
|
|
2235
|
+
if (C === null || typeof C != "object" ? M = null : (M = ee && C[ee] || C["@@iterator"], M = typeof M == "function" ? M : null), M && (M = M.call(C))) {
|
|
2236
2236
|
if (C = M.next(), !C.done) {
|
|
2237
2237
|
var K = [];
|
|
2238
2238
|
do
|
|
@@ -2337,7 +2337,7 @@ function Df() {
|
|
|
2337
2337
|
switch (C.parentFlushed = !0, C.status) {
|
|
2338
2338
|
case 0:
|
|
2339
2339
|
var M = C.id = v.nextSegmentId++;
|
|
2340
|
-
return C.lastPushedText = !1, C.textEmbedded = !1, v = v.responseState, o(w, nt), o(w, v.placeholderPrefix), v = u(M.toString(16)), o(w, v), s(w,
|
|
2340
|
+
return C.lastPushedText = !1, C.textEmbedded = !1, v = v.responseState, o(w, nt), o(w, v.placeholderPrefix), v = u(M.toString(16)), o(w, v), s(w, te);
|
|
2341
2341
|
case 1:
|
|
2342
2342
|
C.status = 2;
|
|
2343
2343
|
var K = !0;
|
|
@@ -2357,7 +2357,7 @@ function Df() {
|
|
|
2357
2357
|
function yo(v, w, C) {
|
|
2358
2358
|
var M = C.boundary;
|
|
2359
2359
|
if (M === null) return vo(v, w, C);
|
|
2360
|
-
if (M.parentFlushed = !0, M.forceClientRender) M = M.errorDigest, s(w, _e), o(w, yt), M && (o(w, Lt), o(w, u(
|
|
2360
|
+
if (M.parentFlushed = !0, M.forceClientRender) M = M.errorDigest, s(w, _e), o(w, yt), M && (o(w, Lt), o(w, u(j(M))), o(w, rt)), s(w, tr), vo(v, w, C);
|
|
2361
2361
|
else if (0 < M.pendingTasks) {
|
|
2362
2362
|
M.rootSegmentID = v.nextSegmentId++, 0 < M.completedSegments.length && v.partialBoundaries.push(M);
|
|
2363
2363
|
var K = v.responseState, V = K.nextSuspenseID++;
|
|
@@ -2556,32 +2556,32 @@ function If() {
|
|
|
2556
2556
|
}
|
|
2557
2557
|
function k(t) {
|
|
2558
2558
|
try {
|
|
2559
|
-
return
|
|
2559
|
+
return D(t), !1;
|
|
2560
2560
|
} catch {
|
|
2561
2561
|
return !0;
|
|
2562
2562
|
}
|
|
2563
2563
|
}
|
|
2564
|
-
function
|
|
2564
|
+
function D(t) {
|
|
2565
2565
|
return "" + t;
|
|
2566
2566
|
}
|
|
2567
2567
|
function Q(t, r) {
|
|
2568
2568
|
if (k(t))
|
|
2569
|
-
return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.", r, R(t)),
|
|
2569
|
+
return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.", r, R(t)), D(t);
|
|
2570
2570
|
}
|
|
2571
2571
|
function B(t, r) {
|
|
2572
2572
|
if (k(t))
|
|
2573
|
-
return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.", r, R(t)),
|
|
2573
|
+
return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.", r, R(t)), D(t);
|
|
2574
2574
|
}
|
|
2575
|
-
function
|
|
2575
|
+
function N(t) {
|
|
2576
2576
|
if (k(t))
|
|
2577
|
-
return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.", R(t)),
|
|
2577
|
+
return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.", R(t)), D(t);
|
|
2578
2578
|
}
|
|
2579
|
-
var U = Object.prototype.hasOwnProperty,
|
|
2579
|
+
var U = Object.prototype.hasOwnProperty, H = 0, j = 1, Z = 2, z = 3, W = 4, $ = 5, q = 6, ae = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", se = ae + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040", le = new RegExp("^[" + ae + "][" + se + "]*$"), be = {}, ge = {};
|
|
2580
2580
|
function me(t) {
|
|
2581
2581
|
return U.call(ge, t) ? !0 : U.call(be, t) ? !1 : le.test(t) ? (ge[t] = !0, !0) : (be[t] = !0, o("Invalid attribute name: `%s`", t), !1);
|
|
2582
2582
|
}
|
|
2583
2583
|
function _(t, r, l, p) {
|
|
2584
|
-
if (l !== null && l.type ===
|
|
2584
|
+
if (l !== null && l.type === H)
|
|
2585
2585
|
return !1;
|
|
2586
2586
|
switch (typeof r) {
|
|
2587
2587
|
case "function":
|
|
@@ -2601,7 +2601,7 @@ function If() {
|
|
|
2601
2601
|
return ve.hasOwnProperty(t) ? ve[t] : null;
|
|
2602
2602
|
}
|
|
2603
2603
|
function L(t, r, l, p, b, S, P) {
|
|
2604
|
-
this.acceptsBooleans = r ===
|
|
2604
|
+
this.acceptsBooleans = r === Z || r === z || r === W, this.attributeName = p, this.attributeNamespace = b, this.mustUseProperty = l, this.propertyName = t, this.type = r, this.sanitizeURL = S, this.removeEmptyString = P;
|
|
2605
2605
|
}
|
|
2606
2606
|
var ve = {}, fe = [
|
|
2607
2607
|
"children",
|
|
@@ -2619,7 +2619,7 @@ function If() {
|
|
|
2619
2619
|
fe.forEach(function(t) {
|
|
2620
2620
|
ve[t] = new L(
|
|
2621
2621
|
t,
|
|
2622
|
-
|
|
2622
|
+
H,
|
|
2623
2623
|
!1,
|
|
2624
2624
|
// mustUseProperty
|
|
2625
2625
|
t,
|
|
@@ -2634,7 +2634,7 @@ function If() {
|
|
|
2634
2634
|
var r = t[0], l = t[1];
|
|
2635
2635
|
ve[r] = new L(
|
|
2636
2636
|
r,
|
|
2637
|
-
|
|
2637
|
+
j,
|
|
2638
2638
|
!1,
|
|
2639
2639
|
// mustUseProperty
|
|
2640
2640
|
l,
|
|
@@ -2648,7 +2648,7 @@ function If() {
|
|
|
2648
2648
|
}), ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(t) {
|
|
2649
2649
|
ve[t] = new L(
|
|
2650
2650
|
t,
|
|
2651
|
-
|
|
2651
|
+
Z,
|
|
2652
2652
|
!1,
|
|
2653
2653
|
// mustUseProperty
|
|
2654
2654
|
t.toLowerCase(),
|
|
@@ -2662,7 +2662,7 @@ function If() {
|
|
|
2662
2662
|
}), ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(t) {
|
|
2663
2663
|
ve[t] = new L(
|
|
2664
2664
|
t,
|
|
2665
|
-
|
|
2665
|
+
Z,
|
|
2666
2666
|
!1,
|
|
2667
2667
|
// mustUseProperty
|
|
2668
2668
|
t,
|
|
@@ -2703,7 +2703,7 @@ function If() {
|
|
|
2703
2703
|
].forEach(function(t) {
|
|
2704
2704
|
ve[t] = new L(
|
|
2705
2705
|
t,
|
|
2706
|
-
|
|
2706
|
+
z,
|
|
2707
2707
|
!1,
|
|
2708
2708
|
// mustUseProperty
|
|
2709
2709
|
t.toLowerCase(),
|
|
@@ -2727,7 +2727,7 @@ function If() {
|
|
|
2727
2727
|
].forEach(function(t) {
|
|
2728
2728
|
ve[t] = new L(
|
|
2729
2729
|
t,
|
|
2730
|
-
|
|
2730
|
+
z,
|
|
2731
2731
|
!0,
|
|
2732
2732
|
// mustUseProperty
|
|
2733
2733
|
t,
|
|
@@ -2879,7 +2879,7 @@ function If() {
|
|
|
2879
2879
|
var r = t.replace(ie, he);
|
|
2880
2880
|
ve[r] = new L(
|
|
2881
2881
|
r,
|
|
2882
|
-
|
|
2882
|
+
j,
|
|
2883
2883
|
!1,
|
|
2884
2884
|
// mustUseProperty
|
|
2885
2885
|
t,
|
|
@@ -2903,7 +2903,7 @@ function If() {
|
|
|
2903
2903
|
var r = t.replace(ie, he);
|
|
2904
2904
|
ve[r] = new L(
|
|
2905
2905
|
r,
|
|
2906
|
-
|
|
2906
|
+
j,
|
|
2907
2907
|
!1,
|
|
2908
2908
|
// mustUseProperty
|
|
2909
2909
|
t,
|
|
@@ -2923,7 +2923,7 @@ function If() {
|
|
|
2923
2923
|
var r = t.replace(ie, he);
|
|
2924
2924
|
ve[r] = new L(
|
|
2925
2925
|
r,
|
|
2926
|
-
|
|
2926
|
+
j,
|
|
2927
2927
|
!1,
|
|
2928
2928
|
// mustUseProperty
|
|
2929
2929
|
t,
|
|
@@ -2935,7 +2935,7 @@ function If() {
|
|
|
2935
2935
|
}), ["tabIndex", "crossOrigin"].forEach(function(t) {
|
|
2936
2936
|
ve[t] = new L(
|
|
2937
2937
|
t,
|
|
2938
|
-
|
|
2938
|
+
j,
|
|
2939
2939
|
!1,
|
|
2940
2940
|
// mustUseProperty
|
|
2941
2941
|
t.toLowerCase(),
|
|
@@ -2950,7 +2950,7 @@ function If() {
|
|
|
2950
2950
|
var ye = "xlinkHref";
|
|
2951
2951
|
ve[ye] = new L(
|
|
2952
2952
|
"xlinkHref",
|
|
2953
|
-
|
|
2953
|
+
j,
|
|
2954
2954
|
!1,
|
|
2955
2955
|
// mustUseProperty
|
|
2956
2956
|
"xlink:href",
|
|
@@ -2961,7 +2961,7 @@ function If() {
|
|
|
2961
2961
|
), ["src", "href", "action", "formAction"].forEach(function(t) {
|
|
2962
2962
|
ve[t] = new L(
|
|
2963
2963
|
t,
|
|
2964
|
-
|
|
2964
|
+
j,
|
|
2965
2965
|
!1,
|
|
2966
2966
|
// mustUseProperty
|
|
2967
2967
|
t.toLowerCase(),
|
|
@@ -3680,17 +3680,17 @@ function If() {
|
|
|
3680
3680
|
return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.", typeof l), ct[r] = !0, !0;
|
|
3681
3681
|
if (typeof l == "number" && isNaN(l))
|
|
3682
3682
|
return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.", r), ct[r] = !0, !0;
|
|
3683
|
-
var G = Be(r), re = G !== null && G.type ===
|
|
3683
|
+
var G = Be(r), re = G !== null && G.type === H;
|
|
3684
3684
|
if (lt.hasOwnProperty(b)) {
|
|
3685
3685
|
var oe = lt[b];
|
|
3686
3686
|
if (oe !== r)
|
|
3687
3687
|
return o("Invalid DOM property `%s`. Did you mean `%s`?", r, oe), ct[r] = !0, !0;
|
|
3688
3688
|
} else if (!re && r !== b)
|
|
3689
3689
|
return o("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.", r, b), ct[r] = !0, !0;
|
|
3690
|
-
return typeof l == "boolean" && _(r, l, G) ? (l ? o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.', l, r, r, l, r) : o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.', l, r, r, l, r, r, r), ct[r] = !0, !0) : re ? !0 : _(r, l, G) ? (ct[r] = !0, !1) : ((l === "false" || l === "true") && G !== null && G.type ===
|
|
3690
|
+
return typeof l == "boolean" && _(r, l, G) ? (l ? o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.', l, r, r, l, r) : o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.', l, r, r, l, r, r, r), ct[r] = !0, !0) : re ? !0 : _(r, l, G) ? (ct[r] = !0, !1) : ((l === "false" || l === "true") && G !== null && G.type === z && (o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?", l, r, l === "false" ? "The browser will interpret it as a truthy value." : 'Although this works, it will not work as expected if you pass the string "false".', r, l), ct[r] = !0), !0);
|
|
3691
3691
|
};
|
|
3692
3692
|
}
|
|
3693
|
-
var
|
|
3693
|
+
var te = function(t, r, l) {
|
|
3694
3694
|
{
|
|
3695
3695
|
var p = [];
|
|
3696
3696
|
for (var b in r) {
|
|
@@ -3704,7 +3704,7 @@ function If() {
|
|
|
3704
3704
|
}
|
|
3705
3705
|
};
|
|
3706
3706
|
function we(t, r, l) {
|
|
3707
|
-
_t(t, r) ||
|
|
3707
|
+
_t(t, r) || te(t, r, l);
|
|
3708
3708
|
}
|
|
3709
3709
|
var Ee = function() {
|
|
3710
3710
|
};
|
|
@@ -3737,7 +3737,7 @@ function If() {
|
|
|
3737
3737
|
}
|
|
3738
3738
|
var pn = Ee, hr = /["'&<>]/;
|
|
3739
3739
|
function Dn(t) {
|
|
3740
|
-
|
|
3740
|
+
N(t);
|
|
3741
3741
|
var r = "" + t, l = hr.exec(r);
|
|
3742
3742
|
if (!l)
|
|
3743
3743
|
return r;
|
|
@@ -3900,7 +3900,7 @@ function If() {
|
|
|
3900
3900
|
}
|
|
3901
3901
|
var S = b.attributeName, P = S;
|
|
3902
3902
|
switch (b.type) {
|
|
3903
|
-
case
|
|
3903
|
+
case z:
|
|
3904
3904
|
p && t.push(Zt, P, br);
|
|
3905
3905
|
return;
|
|
3906
3906
|
case W:
|
|
@@ -3938,10 +3938,10 @@ function If() {
|
|
|
3938
3938
|
if (typeof r != "object" || !("__html" in r))
|
|
3939
3939
|
throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");
|
|
3940
3940
|
var p = r.__html;
|
|
3941
|
-
p != null && (
|
|
3941
|
+
p != null && (N(p), t.push("" + p));
|
|
3942
3942
|
}
|
|
3943
3943
|
}
|
|
3944
|
-
var
|
|
3944
|
+
var I = !1, O = !1, J = !1, Y = !1, ee = !1, ce = !1, Se = !1;
|
|
3945
3945
|
function Pe(t, r) {
|
|
3946
3946
|
{
|
|
3947
3947
|
var l = t[r];
|
|
@@ -3979,7 +3979,7 @@ function If() {
|
|
|
3979
3979
|
function Ye(t) {
|
|
3980
3980
|
var r = "";
|
|
3981
3981
|
return e.Children.forEach(t, function(l) {
|
|
3982
|
-
l != null && (r += l, !
|
|
3982
|
+
l != null && (r += l, !ee && typeof l != "string" && typeof l != "number" && (ee = !0, o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")));
|
|
3983
3983
|
}), r;
|
|
3984
3984
|
}
|
|
3985
3985
|
var Ht = ' selected=""';
|
|
@@ -4026,7 +4026,7 @@ function If() {
|
|
|
4026
4026
|
return t.push(Yt), x(t, G, S), S;
|
|
4027
4027
|
}
|
|
4028
4028
|
function Ut(t, r, l) {
|
|
4029
|
-
qe("input", r), r.checked !== void 0 && r.defaultChecked !== void 0 && !O && (o("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components", "A component", r.type), O = !0), r.value !== void 0 && r.defaultValue !== void 0 && !
|
|
4029
|
+
qe("input", r), r.checked !== void 0 && r.defaultChecked !== void 0 && !O && (o("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components", "A component", r.type), O = !0), r.value !== void 0 && r.defaultValue !== void 0 && !I && (o("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components", "A component", r.type), I = !0), t.push(Sn("input"));
|
|
4030
4030
|
var p = null, b = null, S = null, P = null;
|
|
4031
4031
|
for (var F in r)
|
|
4032
4032
|
if (U.call(r, F)) {
|
|
@@ -4087,9 +4087,9 @@ function If() {
|
|
|
4087
4087
|
if (hn(S)) {
|
|
4088
4088
|
if (S.length > 1)
|
|
4089
4089
|
throw new Error("<textarea> can only have at most one child.");
|
|
4090
|
-
|
|
4090
|
+
N(S[0]), p = "" + S[0];
|
|
4091
4091
|
}
|
|
4092
|
-
|
|
4092
|
+
N(S), p = "" + S;
|
|
4093
4093
|
}
|
|
4094
4094
|
return typeof p == "string" && p[0] === `
|
|
4095
4095
|
` && t.push(ir), p !== null && (Q(p, "value"), t.push(vn("" + p))), null;
|
|
@@ -4235,7 +4235,7 @@ function If() {
|
|
|
4235
4235
|
throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");
|
|
4236
4236
|
var G = S.__html;
|
|
4237
4237
|
G != null && (typeof G == "string" && G.length > 0 && G[0] === `
|
|
4238
|
-
` ? t.push(ir, G) : (
|
|
4238
|
+
` ? t.push(ir, G) : (N(G), t.push("" + G)));
|
|
4239
4239
|
}
|
|
4240
4240
|
return typeof b == "string" && b[0] === `
|
|
4241
4241
|
` && t.push(ir), b;
|
|
@@ -6128,7 +6128,7 @@ function Bf() {
|
|
|
6128
6128
|
function k(c) {
|
|
6129
6129
|
return R.encode(c);
|
|
6130
6130
|
}
|
|
6131
|
-
function
|
|
6131
|
+
function D(c) {
|
|
6132
6132
|
return R.encode(c);
|
|
6133
6133
|
}
|
|
6134
6134
|
function Q(c, t) {
|
|
@@ -6140,7 +6140,7 @@ function Bf() {
|
|
|
6140
6140
|
return r;
|
|
6141
6141
|
}
|
|
6142
6142
|
}
|
|
6143
|
-
function
|
|
6143
|
+
function N(c) {
|
|
6144
6144
|
try {
|
|
6145
6145
|
return U(c), !1;
|
|
6146
6146
|
} catch {
|
|
@@ -6150,21 +6150,21 @@ function Bf() {
|
|
|
6150
6150
|
function U(c) {
|
|
6151
6151
|
return "" + c;
|
|
6152
6152
|
}
|
|
6153
|
-
function
|
|
6154
|
-
if (
|
|
6153
|
+
function H(c, t) {
|
|
6154
|
+
if (N(c))
|
|
6155
6155
|
return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.", t, B(c)), U(c);
|
|
6156
6156
|
}
|
|
6157
|
-
function
|
|
6158
|
-
if (
|
|
6157
|
+
function j(c, t) {
|
|
6158
|
+
if (N(c))
|
|
6159
6159
|
return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.", t, B(c)), U(c);
|
|
6160
6160
|
}
|
|
6161
|
-
function
|
|
6162
|
-
if (
|
|
6161
|
+
function Z(c) {
|
|
6162
|
+
if (N(c))
|
|
6163
6163
|
return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.", B(c)), U(c);
|
|
6164
6164
|
}
|
|
6165
|
-
var
|
|
6165
|
+
var z = Object.prototype.hasOwnProperty, W = 0, $ = 1, q = 2, ae = 3, se = 4, le = 5, be = 6, ge = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", me = ge + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040", _ = new RegExp("^[" + ge + "][" + me + "]*$"), Be = {}, L = {};
|
|
6166
6166
|
function ve(c) {
|
|
6167
|
-
return
|
|
6167
|
+
return z.call(L, c) ? !0 : z.call(Be, c) ? !1 : _.test(c) ? (L[c] = !0, !0) : (Be[c] = !0, o("Invalid attribute name: `%s`", c), !1);
|
|
6168
6168
|
}
|
|
6169
6169
|
function fe(c, t, r, l) {
|
|
6170
6170
|
if (r !== null && r.type === W)
|
|
@@ -6704,7 +6704,7 @@ function Bf() {
|
|
|
6704
6704
|
}, vt = {}, Et = new RegExp("^(aria)-[" + me + "]*$"), tt = new RegExp("^(aria)[A-Z][" + me + "]*$");
|
|
6705
6705
|
function Tt(c, t) {
|
|
6706
6706
|
{
|
|
6707
|
-
if (
|
|
6707
|
+
if (z.call(vt, t) && vt[t])
|
|
6708
6708
|
return !0;
|
|
6709
6709
|
if (tt.test(t)) {
|
|
6710
6710
|
var r = "aria-" + t.slice(4).toLowerCase(), l = Pn.hasOwnProperty(r) ? r : null;
|
|
@@ -7238,9 +7238,9 @@ function Bf() {
|
|
|
7238
7238
|
}, zt = function() {
|
|
7239
7239
|
};
|
|
7240
7240
|
{
|
|
7241
|
-
var nt = {},
|
|
7241
|
+
var nt = {}, te = /^on./, we = /^on[^A-Z]/, Ee = new RegExp("^(aria)-[" + me + "]*$"), Fe = new RegExp("^(aria)[A-Z][" + me + "]*$");
|
|
7242
7242
|
zt = function(c, t, r, l) {
|
|
7243
|
-
if (
|
|
7243
|
+
if (z.call(nt, t) && nt[t])
|
|
7244
7244
|
return !0;
|
|
7245
7245
|
var p = t.toLowerCase();
|
|
7246
7246
|
if (p === "onfocusin" || p === "onfocusout")
|
|
@@ -7252,9 +7252,9 @@ function Bf() {
|
|
|
7252
7252
|
var P = S.hasOwnProperty(p) ? S[p] : null;
|
|
7253
7253
|
if (P != null)
|
|
7254
7254
|
return o("Invalid event handler property `%s`. Did you mean `%s`?", t, P), nt[t] = !0, !0;
|
|
7255
|
-
if (
|
|
7255
|
+
if (te.test(t))
|
|
7256
7256
|
return o("Unknown event handler property `%s`. It will be ignored.", t), nt[t] = !0, !0;
|
|
7257
|
-
} else if (
|
|
7257
|
+
} else if (te.test(t))
|
|
7258
7258
|
return we.test(t) && o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.", t), nt[t] = !0, !0;
|
|
7259
7259
|
if (Ee.test(t) || Fe.test(t))
|
|
7260
7260
|
return !0;
|
|
@@ -7323,7 +7323,7 @@ function Bf() {
|
|
|
7323
7323
|
}
|
|
7324
7324
|
var Fr = yt, Hr = /["'&<>]/;
|
|
7325
7325
|
function oo(c) {
|
|
7326
|
-
|
|
7326
|
+
Z(c);
|
|
7327
7327
|
var t = "" + c, r = Hr.exec(t);
|
|
7328
7328
|
if (!r)
|
|
7329
7329
|
return t;
|
|
@@ -7367,15 +7367,15 @@ function Bf() {
|
|
|
7367
7367
|
function jt(c) {
|
|
7368
7368
|
return Nn(c);
|
|
7369
7369
|
}
|
|
7370
|
-
var gn =
|
|
7370
|
+
var gn = D("<script>"), mr = D("<\/script>"), Un = D('<script src="'), zn = D('<script type="module" src="'), mn = D('" async=""><\/script>');
|
|
7371
7371
|
function jn(c) {
|
|
7372
|
-
return
|
|
7372
|
+
return Z(c), ("" + c).replace(Wt, io);
|
|
7373
7373
|
}
|
|
7374
7374
|
var Wt = /(<\/|<)(s)(cript)/gi, io = function(c, t, r, l) {
|
|
7375
7375
|
return "" + t + (r === "s" ? "\\u0073" : "\\u0053") + l;
|
|
7376
7376
|
};
|
|
7377
7377
|
function ao(c, t, r, l, p) {
|
|
7378
|
-
var b = c === void 0 ? "" : c, S = t === void 0 ? gn :
|
|
7378
|
+
var b = c === void 0 ? "" : c, S = t === void 0 ? gn : D('<script nonce="' + bt(t) + '">'), P = [];
|
|
7379
7379
|
if (r !== void 0 && P.push(S, k(jn(r)), mr), l !== void 0)
|
|
7380
7380
|
for (var F = 0; F < l.length; F++)
|
|
7381
7381
|
P.push(Un, k(bt(l[F])), mn);
|
|
@@ -7385,8 +7385,8 @@ function Bf() {
|
|
|
7385
7385
|
return {
|
|
7386
7386
|
bootstrapChunks: P,
|
|
7387
7387
|
startInlineScript: S,
|
|
7388
|
-
placeholderPrefix:
|
|
7389
|
-
segmentPrefix:
|
|
7388
|
+
placeholderPrefix: D(b + "P:"),
|
|
7389
|
+
segmentPrefix: D(b + "S:"),
|
|
7390
7390
|
boundaryPrefix: b + "B:",
|
|
7391
7391
|
idPrefix: b,
|
|
7392
7392
|
nextSuspenseID: 0,
|
|
@@ -7432,7 +7432,7 @@ function Bf() {
|
|
|
7432
7432
|
var yr = null;
|
|
7433
7433
|
function Zt(c) {
|
|
7434
7434
|
var t = c.nextSuspenseID++;
|
|
7435
|
-
return
|
|
7435
|
+
return D(c.boundaryPrefix + t.toString(16));
|
|
7436
7436
|
}
|
|
7437
7437
|
function wn(c, t, r) {
|
|
7438
7438
|
var l = c.idPrefix, p = ":" + l + "R" + t;
|
|
@@ -7441,7 +7441,7 @@ function Bf() {
|
|
|
7441
7441
|
function Ft(c) {
|
|
7442
7442
|
return bt(c);
|
|
7443
7443
|
}
|
|
7444
|
-
var br =
|
|
7444
|
+
var br = D("<!-- -->");
|
|
7445
7445
|
function It(c, t, r, l) {
|
|
7446
7446
|
return t === "" ? l : (l && c.push(br), c.push(k(Ft(t))), !0);
|
|
7447
7447
|
}
|
|
@@ -7453,25 +7453,25 @@ function Bf() {
|
|
|
7453
7453
|
var t = m.get(c);
|
|
7454
7454
|
if (t !== void 0)
|
|
7455
7455
|
return t;
|
|
7456
|
-
var r =
|
|
7456
|
+
var r = D(bt(No(c)));
|
|
7457
7457
|
return m.set(c, r), r;
|
|
7458
7458
|
}
|
|
7459
|
-
var
|
|
7459
|
+
var I = D(' style="'), O = D(":"), J = D(";");
|
|
7460
7460
|
function Y(c, t, r) {
|
|
7461
7461
|
if (typeof r != "object")
|
|
7462
7462
|
throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");
|
|
7463
7463
|
var l = !0;
|
|
7464
7464
|
for (var p in r)
|
|
7465
|
-
if (
|
|
7465
|
+
if (z.call(r, p)) {
|
|
7466
7466
|
var b = r[p];
|
|
7467
7467
|
if (!(b == null || typeof b == "boolean" || b === "")) {
|
|
7468
7468
|
var S = void 0, P = void 0, F = p.indexOf("--") === 0;
|
|
7469
|
-
F ? (S = k(bt(p)),
|
|
7469
|
+
F ? (S = k(bt(p)), j(b, p), P = k(bt(("" + b).trim()))) : (Fr(p, b), S = x(p), typeof b == "number" ? b !== 0 && !z.call(qe, p) ? P = k(b + "px") : P = k("" + b) : (j(b, p), P = k(bt(("" + b).trim())))), l ? (l = !1, c.push(I, S, O, P)) : c.push(J, S, O, P);
|
|
7470
7470
|
}
|
|
7471
7471
|
}
|
|
7472
7472
|
l || c.push(Se);
|
|
7473
7473
|
}
|
|
7474
|
-
var
|
|
7474
|
+
var ee = D(" "), ce = D('="'), Se = D('"'), Pe = D('=""');
|
|
7475
7475
|
function ke(c, t, r, l) {
|
|
7476
7476
|
switch (r) {
|
|
7477
7477
|
case "style": {
|
|
@@ -7503,19 +7503,19 @@ function Bf() {
|
|
|
7503
7503
|
var b = p.attributeName, S = k(b);
|
|
7504
7504
|
switch (p.type) {
|
|
7505
7505
|
case ae:
|
|
7506
|
-
l && c.push(
|
|
7506
|
+
l && c.push(ee, S, Pe);
|
|
7507
7507
|
return;
|
|
7508
7508
|
case se:
|
|
7509
|
-
l === !0 ? c.push(
|
|
7509
|
+
l === !0 ? c.push(ee, S, Pe) : l === !1 || c.push(ee, S, ce, k(bt(l)), Se);
|
|
7510
7510
|
return;
|
|
7511
7511
|
case le:
|
|
7512
|
-
isNaN(l) || c.push(
|
|
7512
|
+
isNaN(l) || c.push(ee, S, ce, k(bt(l)), Se);
|
|
7513
7513
|
break;
|
|
7514
7514
|
case be:
|
|
7515
|
-
!isNaN(l) && l >= 1 && c.push(
|
|
7515
|
+
!isNaN(l) && l >= 1 && c.push(ee, S, ce, k(bt(l)), Se);
|
|
7516
7516
|
break;
|
|
7517
7517
|
default:
|
|
7518
|
-
p.sanitizeURL && (
|
|
7518
|
+
p.sanitizeURL && (H(l, b), l = "" + l, gr(l)), c.push(ee, S, ce, k(bt(l)), Se);
|
|
7519
7519
|
}
|
|
7520
7520
|
} else if (ve(r)) {
|
|
7521
7521
|
switch (typeof l) {
|
|
@@ -7528,11 +7528,11 @@ function Bf() {
|
|
|
7528
7528
|
return;
|
|
7529
7529
|
}
|
|
7530
7530
|
}
|
|
7531
|
-
c.push(
|
|
7531
|
+
c.push(ee, k(r), ce, k(bt(l)), Se);
|
|
7532
7532
|
}
|
|
7533
7533
|
}
|
|
7534
7534
|
}
|
|
7535
|
-
var Ye =
|
|
7535
|
+
var Ye = D(">"), Ht = D("/>");
|
|
7536
7536
|
function Nt(c, t, r) {
|
|
7537
7537
|
if (t != null) {
|
|
7538
7538
|
if (r != null)
|
|
@@ -7540,7 +7540,7 @@ function Bf() {
|
|
|
7540
7540
|
if (typeof t != "object" || !("__html" in t))
|
|
7541
7541
|
throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");
|
|
7542
7542
|
var l = t.__html;
|
|
7543
|
-
l != null && (
|
|
7543
|
+
l != null && (Z(l), c.push(k("" + l)));
|
|
7544
7544
|
}
|
|
7545
7545
|
}
|
|
7546
7546
|
var Ut = !1, Gn = !1, xn = !1, wr = !1, Vn = !1, or = !1, Bn = !1;
|
|
@@ -7557,7 +7557,7 @@ function Bf() {
|
|
|
7557
7557
|
mt("select", t), ir(t, "value"), ir(t, "defaultValue"), t.value !== void 0 && t.defaultValue !== void 0 && !xn && (o("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"), xn = !0), c.push(an("select"));
|
|
7558
7558
|
var l = null, p = null;
|
|
7559
7559
|
for (var b in t)
|
|
7560
|
-
if (
|
|
7560
|
+
if (z.call(t, b)) {
|
|
7561
7561
|
var S = t[b];
|
|
7562
7562
|
if (S == null)
|
|
7563
7563
|
continue;
|
|
@@ -7584,13 +7584,13 @@ function Bf() {
|
|
|
7584
7584
|
r != null && (t += r, !Vn && typeof r != "string" && typeof r != "number" && (Vn = !0, o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")));
|
|
7585
7585
|
}), t;
|
|
7586
7586
|
}
|
|
7587
|
-
var so =
|
|
7587
|
+
var so = D(' selected=""');
|
|
7588
7588
|
function Sn(c, t, r, l) {
|
|
7589
7589
|
var p = l.selectedValue;
|
|
7590
7590
|
c.push(an("option"));
|
|
7591
7591
|
var b = null, S = null, P = null, F = null;
|
|
7592
7592
|
for (var G in t)
|
|
7593
|
-
if (
|
|
7593
|
+
if (z.call(t, G)) {
|
|
7594
7594
|
var re = t[G];
|
|
7595
7595
|
if (re == null)
|
|
7596
7596
|
continue;
|
|
@@ -7613,9 +7613,9 @@ function Bf() {
|
|
|
7613
7613
|
}
|
|
7614
7614
|
if (p != null) {
|
|
7615
7615
|
var oe;
|
|
7616
|
-
if (S !== null ? (
|
|
7616
|
+
if (S !== null ? (H(S, "value"), oe = "" + S) : (F !== null && (or || (or = !0, o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))), oe = Fa(b)), jt(p))
|
|
7617
7617
|
for (var pe = 0; pe < p.length; pe++) {
|
|
7618
|
-
|
|
7618
|
+
H(p[pe], "value");
|
|
7619
7619
|
var De = "" + p[pe];
|
|
7620
7620
|
if (De === oe) {
|
|
7621
7621
|
c.push(so);
|
|
@@ -7623,7 +7623,7 @@ function Bf() {
|
|
|
7623
7623
|
}
|
|
7624
7624
|
}
|
|
7625
7625
|
else
|
|
7626
|
-
|
|
7626
|
+
H(p, "select.value"), "" + p === oe && c.push(so);
|
|
7627
7627
|
} else P && c.push(so);
|
|
7628
7628
|
return c.push(Ye), Nt(c, F, b), b;
|
|
7629
7629
|
}
|
|
@@ -7631,7 +7631,7 @@ function Bf() {
|
|
|
7631
7631
|
mt("input", t), t.checked !== void 0 && t.defaultChecked !== void 0 && !Gn && (o("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components", "A component", t.type), Gn = !0), t.value !== void 0 && t.defaultValue !== void 0 && !Ut && (o("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components", "A component", t.type), Ut = !0), c.push(an("input"));
|
|
7632
7632
|
var l = null, p = null, b = null, S = null;
|
|
7633
7633
|
for (var P in t)
|
|
7634
|
-
if (
|
|
7634
|
+
if (z.call(t, P)) {
|
|
7635
7635
|
var F = t[P];
|
|
7636
7636
|
if (F == null)
|
|
7637
7637
|
continue;
|
|
@@ -7662,7 +7662,7 @@ function Bf() {
|
|
|
7662
7662
|
mt("textarea", t), t.value !== void 0 && t.defaultValue !== void 0 && !wr && (o("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"), wr = !0), c.push(an("textarea"));
|
|
7663
7663
|
var l = null, p = null, b = null;
|
|
7664
7664
|
for (var S in t)
|
|
7665
|
-
if (
|
|
7665
|
+
if (z.call(t, S)) {
|
|
7666
7666
|
var P = t[S];
|
|
7667
7667
|
if (P == null)
|
|
7668
7668
|
continue;
|
|
@@ -7689,17 +7689,17 @@ function Bf() {
|
|
|
7689
7689
|
if (jt(b)) {
|
|
7690
7690
|
if (b.length > 1)
|
|
7691
7691
|
throw new Error("<textarea> can only have at most one child.");
|
|
7692
|
-
|
|
7692
|
+
Z(b[0]), l = "" + b[0];
|
|
7693
7693
|
}
|
|
7694
|
-
|
|
7694
|
+
Z(b), l = "" + b;
|
|
7695
7695
|
}
|
|
7696
7696
|
return typeof l == "string" && l[0] === `
|
|
7697
|
-
` && c.push(sr), l !== null && (
|
|
7697
|
+
` && c.push(sr), l !== null && (H(l, "value"), c.push(k(Ft("" + l)))), null;
|
|
7698
7698
|
}
|
|
7699
7699
|
function Uo(c, t, r, l) {
|
|
7700
7700
|
c.push(an(r));
|
|
7701
7701
|
for (var p in t)
|
|
7702
|
-
if (
|
|
7702
|
+
if (z.call(t, p)) {
|
|
7703
7703
|
var b = t[p];
|
|
7704
7704
|
if (b == null)
|
|
7705
7705
|
continue;
|
|
@@ -7717,7 +7717,7 @@ function Bf() {
|
|
|
7717
7717
|
function lo(c, t, r) {
|
|
7718
7718
|
c.push(an("menuitem"));
|
|
7719
7719
|
for (var l in t)
|
|
7720
|
-
if (
|
|
7720
|
+
if (z.call(t, l)) {
|
|
7721
7721
|
var p = t[l];
|
|
7722
7722
|
if (p == null)
|
|
7723
7723
|
continue;
|
|
@@ -7736,7 +7736,7 @@ function Bf() {
|
|
|
7736
7736
|
c.push(an("title"));
|
|
7737
7737
|
var l = null;
|
|
7738
7738
|
for (var p in t)
|
|
7739
|
-
if (
|
|
7739
|
+
if (z.call(t, p)) {
|
|
7740
7740
|
var b = t[p];
|
|
7741
7741
|
if (b == null)
|
|
7742
7742
|
continue;
|
|
@@ -7762,7 +7762,7 @@ function Bf() {
|
|
|
7762
7762
|
c.push(an(r));
|
|
7763
7763
|
var p = null, b = null;
|
|
7764
7764
|
for (var S in t)
|
|
7765
|
-
if (
|
|
7765
|
+
if (z.call(t, S)) {
|
|
7766
7766
|
var P = t[S];
|
|
7767
7767
|
if (P == null)
|
|
7768
7768
|
continue;
|
|
@@ -7784,7 +7784,7 @@ function Bf() {
|
|
|
7784
7784
|
c.push(an(r));
|
|
7785
7785
|
var p = null, b = null;
|
|
7786
7786
|
for (var S in t)
|
|
7787
|
-
if (
|
|
7787
|
+
if (z.call(t, S)) {
|
|
7788
7788
|
var P = t[S];
|
|
7789
7789
|
if (P == null)
|
|
7790
7790
|
continue;
|
|
@@ -7802,19 +7802,19 @@ function Bf() {
|
|
|
7802
7802
|
case "suppressHydrationWarning":
|
|
7803
7803
|
break;
|
|
7804
7804
|
default:
|
|
7805
|
-
ve(S) && typeof P != "function" && typeof P != "symbol" && c.push(
|
|
7805
|
+
ve(S) && typeof P != "function" && typeof P != "symbol" && c.push(ee, k(S), ce, k(bt(P)), Se);
|
|
7806
7806
|
break;
|
|
7807
7807
|
}
|
|
7808
7808
|
}
|
|
7809
7809
|
return c.push(Ye), Nt(c, b, p), p;
|
|
7810
7810
|
}
|
|
7811
|
-
var sr =
|
|
7811
|
+
var sr = D(`
|
|
7812
7812
|
`);
|
|
7813
7813
|
function Xn(c, t, r, l) {
|
|
7814
7814
|
c.push(an(r));
|
|
7815
7815
|
var p = null, b = null;
|
|
7816
7816
|
for (var S in t)
|
|
7817
|
-
if (
|
|
7817
|
+
if (z.call(t, S)) {
|
|
7818
7818
|
var P = t[S];
|
|
7819
7819
|
if (P == null)
|
|
7820
7820
|
continue;
|
|
@@ -7837,7 +7837,7 @@ function Bf() {
|
|
|
7837
7837
|
throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");
|
|
7838
7838
|
var F = b.__html;
|
|
7839
7839
|
F != null && (typeof F == "string" && F.length > 0 && F[0] === `
|
|
7840
|
-
` ? c.push(sr, k(F)) : (
|
|
7840
|
+
` ? c.push(sr, k(F)) : (Z(F), c.push(k("" + F))));
|
|
7841
7841
|
}
|
|
7842
7842
|
return typeof p == "string" && p[0] === `
|
|
7843
7843
|
` && c.push(sr), p;
|
|
@@ -7848,11 +7848,11 @@ function Bf() {
|
|
|
7848
7848
|
if (t === void 0) {
|
|
7849
7849
|
if (!uo.test(c))
|
|
7850
7850
|
throw new Error("Invalid tag: " + c);
|
|
7851
|
-
t =
|
|
7851
|
+
t = D("<" + c), Jn.set(c, t);
|
|
7852
7852
|
}
|
|
7853
7853
|
return t;
|
|
7854
7854
|
}
|
|
7855
|
-
var zo =
|
|
7855
|
+
var zo = D("<!DOCTYPE html>");
|
|
7856
7856
|
function zr(c, t, r, l, p) {
|
|
7857
7857
|
switch (ft(t, r), rn(t, r), ut(t, r, null), !r.suppressContentEditableWarning && r.contentEditable && r.children != null && o("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."), p.insertionMode !== vn && p.insertionMode !== yn && t.indexOf("-") === -1 && typeof r.is != "string" && t.toLowerCase() !== t && o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.", t), t) {
|
|
7858
7858
|
case "select":
|
|
@@ -7900,7 +7900,7 @@ function Bf() {
|
|
|
7900
7900
|
return t.indexOf("-") === -1 && typeof r.is != "string" ? ar(c, r, t, l) : co(c, r, t, l);
|
|
7901
7901
|
}
|
|
7902
7902
|
}
|
|
7903
|
-
var Ii =
|
|
7903
|
+
var Ii = D("</"), Ao = D(">");
|
|
7904
7904
|
function Bi(c, t, r) {
|
|
7905
7905
|
switch (t) {
|
|
7906
7906
|
case "area":
|
|
@@ -7928,13 +7928,13 @@ function Bf() {
|
|
|
7928
7928
|
g(c, r[l]);
|
|
7929
7929
|
return l < r.length ? y(c, r[l]) : !0;
|
|
7930
7930
|
}
|
|
7931
|
-
var Ua =
|
|
7931
|
+
var Ua = D('<template id="'), fo = D('"></template>');
|
|
7932
7932
|
function Ri(c, t, r) {
|
|
7933
7933
|
g(c, Ua), g(c, t.placeholderPrefix);
|
|
7934
7934
|
var l = k(r.toString(16));
|
|
7935
7935
|
return g(c, l), y(c, fo);
|
|
7936
7936
|
}
|
|
7937
|
-
var jr =
|
|
7937
|
+
var jr = D("<!--$-->"), jo = D('<!--$?--><template id="'), za = D('"></template>'), xr = D("<!--$!-->"), Wo = D("<!--/$-->"), Yo = D("<template"), Sr = D('"'), Wr = D(' data-dgst="'), po = D(' data-msg="'), Mi = D(' data-stck="'), Oi = D("></template>");
|
|
7938
7938
|
function _i(c, t) {
|
|
7939
7939
|
return y(c, jr);
|
|
7940
7940
|
}
|
|
@@ -7956,7 +7956,7 @@ function Bf() {
|
|
|
7956
7956
|
function ja(c, t) {
|
|
7957
7957
|
return y(c, Wo);
|
|
7958
7958
|
}
|
|
7959
|
-
var Qi =
|
|
7959
|
+
var Qi = D('<div hidden id="'), mo = D('">'), Fi = D("</div>"), Hi = D('<svg aria-hidden="true" style="display:none" id="'), vo = D('">'), yo = D("</svg>"), Ni = D('<math aria-hidden="true" style="display:none" id="'), Ui = D('">'), zi = D("</math>"), Go = D('<table hidden id="'), ji = D('">'), v = D("</table>"), w = D('<table hidden><tbody id="'), C = D('">'), M = D("</tbody></table>"), K = D('<table hidden><tr id="'), V = D('">'), ne = D("</tr></table>"), ue = D('<table hidden><colgroup id="'), Te = D('">'), He = D("</colgroup></table>");
|
|
7960
7960
|
function Le(c, t, r, l) {
|
|
7961
7961
|
switch (r.insertionMode) {
|
|
7962
7962
|
case In:
|
|
@@ -7999,20 +7999,20 @@ function Bf() {
|
|
|
7999
7999
|
throw new Error("Unknown insertion mode. This is a bug in React.");
|
|
8000
8000
|
}
|
|
8001
8001
|
}
|
|
8002
|
-
var Vt = "function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}", sn = 'function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}', ln = 'function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}', bo =
|
|
8002
|
+
var Vt = "function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}", sn = 'function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}', ln = 'function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}', bo = D(Vt + ';$RS("'), Wi = D('$RS("'), Yr = D('","'), Zl = D('")<\/script>');
|
|
8003
8003
|
function ec(c, t, r) {
|
|
8004
8004
|
g(c, t.startInlineScript), t.sentCompleteSegmentFunction ? g(c, Wi) : (t.sentCompleteSegmentFunction = !0, g(c, bo)), g(c, t.segmentPrefix);
|
|
8005
8005
|
var l = k(r.toString(16));
|
|
8006
8006
|
return g(c, l), g(c, Yr), g(c, t.placeholderPrefix), g(c, l), y(c, Zl);
|
|
8007
8007
|
}
|
|
8008
|
-
var Wa =
|
|
8008
|
+
var Wa = D(sn + ';$RC("'), tc = D('$RC("'), nc = D('","'), Us = D('")<\/script>');
|
|
8009
8009
|
function zs(c, t, r, l) {
|
|
8010
8010
|
if (g(c, t.startInlineScript), t.sentCompleteBoundaryFunction ? g(c, tc) : (t.sentCompleteBoundaryFunction = !0, g(c, Wa)), r === null)
|
|
8011
8011
|
throw new Error("An ID must have been assigned before we can complete the boundary.");
|
|
8012
8012
|
var p = k(l.toString(16));
|
|
8013
8013
|
return g(c, r), g(c, nc), g(c, t.segmentPrefix), g(c, p), y(c, Us);
|
|
8014
8014
|
}
|
|
8015
|
-
var rc =
|
|
8015
|
+
var rc = D(ln + ';$RX("'), oc = D('$RX("'), ic = D('"'), ac = D(")<\/script>"), en = D(",");
|
|
8016
8016
|
function sc(c, t, r, l, p, b) {
|
|
8017
8017
|
if (g(c, t.startInlineScript), t.sentClientRenderFunction ? g(c, oc) : (t.sentClientRenderFunction = !0, g(c, rc)), r === null)
|
|
8018
8018
|
throw new Error("An ID must have been assigned before we can complete the boundary.");
|
|
@@ -8297,7 +8297,7 @@ function Bf() {
|
|
|
8297
8297
|
}
|
|
8298
8298
|
function Ks(c, t, r, l, p) {
|
|
8299
8299
|
{
|
|
8300
|
-
var b = Function.call.bind(
|
|
8300
|
+
var b = Function.call.bind(z);
|
|
8301
8301
|
for (var S in c)
|
|
8302
8302
|
if (b(c, S)) {
|
|
8303
8303
|
var P = void 0;
|
|
@@ -9647,8 +9647,8 @@ const kt = { AUDIO_BUTTON: "audio-button", NOTIFICATION_BUTTON: "notification-bu
|
|
|
9647
9647
|
}, i];
|
|
9648
9648
|
}, yd = Lr({}), Ot = () => Qr(yd), Wf = ({ children: e, settings: n }) => {
|
|
9649
9649
|
var a, i, o, s, f, A;
|
|
9650
|
-
const [u, d, h] = Ln(!1), [g, y, E] = Ln(((a = n == null ? void 0 : n.chatWindow) == null ? void 0 : a.defaultOpen) ?? !1), [T, R, k] = Ln(((i = n == null ? void 0 : n.audio) == null ? void 0 : i.defaultToggledOn) ?? !1), [
|
|
9651
|
-
return X(yd.Provider, { value: { isBotTyping: u, setSyncedIsBotTyping: d, syncedIsBotTypingRef: h, isChatWindowOpen: g, setSyncedIsChatWindowOpen: y, syncedIsChatWindowOpenRef: E, audioToggledOn: T, setSyncedAudioToggledOn: R, syncedAudioToggledOnRef: k, voiceToggledOn:
|
|
9650
|
+
const [u, d, h] = Ln(!1), [g, y, E] = Ln(((a = n == null ? void 0 : n.chatWindow) == null ? void 0 : a.defaultOpen) ?? !1), [T, R, k] = Ln(((i = n == null ? void 0 : n.audio) == null ? void 0 : i.defaultToggledOn) ?? !1), [D, Q, B] = Ln(((o = n == null ? void 0 : n.voice) == null ? void 0 : o.defaultToggledOn) ?? !1), [N, U, H] = Ln(((s = n == null ? void 0 : n.notification) == null ? void 0 : s.defaultToggledOn) ?? !0), [j, Z] = Ue(!1), [z, W] = Ue(!1), [$, q, ae] = Ln(!1), [se, le, be] = Ln(!0), [ge, me, _] = Ln(!1), [Be, L] = Ue(!1), [ve, fe] = Ue(!1), [ie, he] = Ue(0), [ye, Ie] = Ue(0), [Qe, Oe] = Ue(!1), [We, qe] = Ue(((f = window.visualViewport) == null ? void 0 : f.height) ?? window.innerHeight), [_t, Ze] = Ue(((A = window.visualViewport) == null ? void 0 : A.width) ?? window.innerWidth);
|
|
9651
|
+
return X(yd.Provider, { value: { isBotTyping: u, setSyncedIsBotTyping: d, syncedIsBotTypingRef: h, isChatWindowOpen: g, setSyncedIsChatWindowOpen: y, syncedIsChatWindowOpenRef: E, audioToggledOn: T, setSyncedAudioToggledOn: R, syncedAudioToggledOnRef: k, voiceToggledOn: D, setSyncedVoiceToggledOn: Q, syncedVoiceToggledOnRef: B, notificationsToggledOn: N, setSyncedNotificationsToggledOn: U, syncedNotificationsToggledOnRef: H, isLoadingChatHistory: j, setIsLoadingChatHistory: Z, hasChatHistoryLoaded: z, setHasChatHistoryLoaded: W, isScrolling: $, setSyncedIsScrolling: q, syncedIsScrollingRef: ae, textAreaDisabled: se, setSyncedTextAreaDisabled: le, syncedTextAreaDisabledRef: be, textAreaSensitiveMode: ge, setSyncedTextAreaSensitiveMode: me, syncedTextAreaSensitiveModeRef: _, hasInteractedPage: Be, setHasInteractedPage: L, hasFlowStarted: ve, setHasFlowStarted: fe, unreadCount: ie, setUnreadCount: he, inputLength: ye, setInputLength: Ie, blockAllowsAttachment: Qe, setBlockAllowsAttachment: Oe, viewportHeight: We, setViewportHeight: qe, viewportWidth: _t, setViewportWidth: Ze }, children: e });
|
|
9652
9652
|
};
|
|
9653
9653
|
var xe = ((e) => (e.START_SPEAK_AUDIO = "rcb-start-speak-audio", e.TOGGLE_AUDIO = "rcb-toggle-audio", e.TOGGLE_NOTIFICATIONS = "rcb-toggle-notifications", e.TOGGLE_VOICE = "rcb-toggle-voice", e.TOGGLE_CHAT_WINDOW = "rcb-toggle-chat-window", e.PRE_INJECT_MESSAGE = "rcb-pre-inject-message", e.POST_INJECT_MESSAGE = "rcb-post-inject-message", e.START_SIMULATE_STREAM_MESSAGE = "rcb-start-simulate-stream-message", e.STOP_SIMULATE_STREAM_MESSAGE = "rcb-stop-simulate-stream-message", e.START_STREAM_MESSAGE = "rcb-start-stream-message", e.CHUNK_STREAM_MESSAGE = "rcb-chunk-stream-message", e.STOP_STREAM_MESSAGE = "rcb-stop-stream-message", e.REMOVE_MESSAGE = "rcb-remove-message", e.LOAD_CHAT_HISTORY = "rcb-load-chat-history", e.CHANGE_PATH = "rcb-change-path", e.SHOW_TOAST = "rcb-show-toast", e.DISMISS_TOAST = "rcb-dismiss-toast", e.USER_SUBMIT_TEXT = "rcb-user-submit-text", e.USER_UPLOAD_FILE = "rcb-user-upload-file", e.TEXT_AREA_CHANGE_VALUE = "rcb-text-area-change-value", e.PRE_LOAD_CHATBOT = "rcb-pre-load-chatbot", e.POST_LOAD_CHATBOT = "rcb-post-load-chatbot", e.PRE_PROCESS_BLOCK = "rcb-pre-process-block", e.POST_PROCESS_BLOCK = "rcb-post-process-block", e))(xe || {});
|
|
9654
9654
|
const Yf = { [xe.START_SPEAK_AUDIO]: !0, [xe.TOGGLE_AUDIO]: !0, [xe.TOGGLE_VOICE]: !0, [xe.TOGGLE_NOTIFICATIONS]: !0, [xe.TOGGLE_CHAT_WINDOW]: !0, [xe.PRE_INJECT_MESSAGE]: !0, [xe.POST_INJECT_MESSAGE]: !1, [xe.PRE_LOAD_CHATBOT]: !0, [xe.POST_LOAD_CHATBOT]: !1, [xe.START_SIMULATE_STREAM_MESSAGE]: !0, [xe.STOP_SIMULATE_STREAM_MESSAGE]: !1, [xe.START_STREAM_MESSAGE]: !0, [xe.CHUNK_STREAM_MESSAGE]: !0, [xe.STOP_STREAM_MESSAGE]: !0, [xe.REMOVE_MESSAGE]: !0, [xe.LOAD_CHAT_HISTORY]: !0, [xe.CHANGE_PATH]: !0, [xe.SHOW_TOAST]: !0, [xe.DISMISS_TOAST]: !0, [xe.USER_SUBMIT_TEXT]: !0, [xe.USER_UPLOAD_FILE]: !0, [xe.TEXT_AREA_CHANGE_VALUE]: !0, [xe.PRE_PROCESS_BLOCK]: !0, [xe.POST_PROCESS_BLOCK]: !0 }, vu = async (e, n, a) => {
|
|
@@ -9667,26 +9667,26 @@ const Yf = { [xe.START_SPEAK_AUDIO]: !0, [xe.TOGGLE_AUDIO]: !0, [xe.TOGGLE_VOICE
|
|
|
9667
9667
|
}, Fn = () => {
|
|
9668
9668
|
const { settings: e } = ze(), { isChatWindowOpen: n, setSyncedIsChatWindowOpen: a, viewportHeight: i, setViewportHeight: o, viewportWidth: s, setViewportWidth: f, setUnreadCount: A, setSyncedIsBotTyping: u, setSyncedIsScrolling: d, syncedIsBotTypingRef: h, syncedIsChatWindowOpenRef: g } = Ot(), { chatBodyRef: y } = Rt(), { dispatchRcbEvent: E } = fr(), T = Ce(() => {
|
|
9669
9669
|
if (!y.current) return !1;
|
|
9670
|
-
const B = y.current.getBoundingClientRect(),
|
|
9671
|
-
return B.top >= 0 && B.left >= 0 && B.bottom <=
|
|
9670
|
+
const B = y.current.getBoundingClientRect(), N = window.innerHeight ?? document.documentElement.clientHeight, U = window.innerWidth ?? document.documentElement.clientWidth;
|
|
9671
|
+
return B.top >= 0 && B.left >= 0 && B.bottom <= N && B.right <= U;
|
|
9672
9672
|
}, [y]), R = Ce(async (B) => {
|
|
9673
|
-
var
|
|
9674
|
-
B !== g.current && ((
|
|
9673
|
+
var N;
|
|
9674
|
+
B !== g.current && ((N = e.event) != null && N.rcbToggleChatWindow && (await E(xe.TOGGLE_CHAT_WINDOW, { currState: g.current, newState: !g.current })).defaultPrevented || a((U) => (U || A(0), !U)));
|
|
9675
9675
|
}, [g]), k = Ce(async (B) => {
|
|
9676
|
-
B !== h.current && u((
|
|
9677
|
-
}, [h]),
|
|
9676
|
+
B !== h.current && u((N) => !N);
|
|
9677
|
+
}, [h]), D = Ce((B, N, U, H) => (B /= H / 2) < 1 ? U / 2 * B * B + N : -U / 2 * (--B * (B - 2) - 1) + N, []), Q = Ce((B = 0) => {
|
|
9678
9678
|
if (!y.current) return;
|
|
9679
|
-
const
|
|
9680
|
-
if (B <= 0) return y.current.scrollTop =
|
|
9681
|
-
const U = y.current.scrollTop,
|
|
9682
|
-
let
|
|
9683
|
-
const
|
|
9679
|
+
const N = y.current.scrollHeight - y.current.clientHeight;
|
|
9680
|
+
if (B <= 0) return y.current.scrollTop = N, void d(!1);
|
|
9681
|
+
const U = y.current.scrollTop, H = N - U;
|
|
9682
|
+
let j = 0;
|
|
9683
|
+
const Z = () => {
|
|
9684
9684
|
if (!y.current) return;
|
|
9685
|
-
|
|
9686
|
-
const
|
|
9687
|
-
y.current.scrollTop =
|
|
9685
|
+
j += 20;
|
|
9686
|
+
const z = D(j, U, H, B);
|
|
9687
|
+
y.current.scrollTop = z, j < B ? requestAnimationFrame(Z) : d(!1);
|
|
9688
9688
|
};
|
|
9689
|
-
|
|
9689
|
+
Z();
|
|
9690
9690
|
}, [y]);
|
|
9691
9691
|
return { isChatWindowOpen: n, setSyncedIsChatWindowOpen: a, toggleChatWindow: R, viewportHeight: i, setViewportHeight: o, viewportWidth: s, setViewportWidth: f, toggleIsBotTyping: k, scrollToBottom: Q, getIsChatBotVisible: T };
|
|
9692
9692
|
}, Vf = () => {
|
|
@@ -9729,12 +9729,12 @@ const Yf = { [xe.START_SPEAK_AUDIO]: !0, [xe.TOGGLE_AUDIO]: !0, [xe.TOGGLE_VOICE
|
|
|
9729
9729
|
}), A && ((a = i.chatWindow) == null ? void 0 : a.showTypingIndicator) && X(qf, {}), X(Vf, {})] });
|
|
9730
9730
|
}, Zf = ({ checkboxes: e, checkedItems: n, path: a }) => {
|
|
9731
9731
|
var i, o, s, f, A, u, d, h, g, y, E;
|
|
9732
|
-
const { settings: T } = ze(), { styles: R } = st(), { paths: k } = Hs(), { handleSubmitText:
|
|
9732
|
+
const { settings: T } = ze(), { styles: R } = st(), { paths: k } = Hs(), { handleSubmitText: D } = _a(), [Q, B] = Ue(/* @__PURE__ */ new Set()), [N, U] = Ue(!1), H = { cursor: N ? `url("${(i = T.general) == null ? void 0 : i.actionDisabledIcon}"), auto` : "pointer", color: (o = T.general) == null ? void 0 : o.primaryColor, borderColor: (s = T.general) == null ? void 0 : s.primaryColor, ...R.botCheckboxRowStyle }, j = { cursor: N || Q.size < e.min ? `url("${(f = T.general) == null ? void 0 : f.actionDisabledIcon}"), auto` : "pointer", color: (A = T.general) == null ? void 0 : A.primaryColor, borderColor: (u = T.general) == null ? void 0 : u.primaryColor, ...R.botCheckboxNextStyle }, Z = { cursor: N ? `url("${(d = T.general) == null ? void 0 : d.actionDisabledIcon}"), auto` : "pointer", color: "transparent", ...R.botCheckMarkStyle }, z = { cursor: N ? `url("${(h = T.general) == null ? void 0 : h.actionDisabledIcon}"), auto` : "pointer", color: "#fff", borderColor: (g = T.general) == null ? void 0 : g.primaryColor, backgroundColor: (y = T.general) == null ? void 0 : y.primaryColor, ...R.botCheckMarkSelectedStyle };
|
|
9733
9733
|
return je(() => {
|
|
9734
9734
|
k.length > 0 && k[k.length - 1] !== a && U(!e.reusable);
|
|
9735
9735
|
}, [k]), dt("div", { className: "rcb-checkbox-container " + ((E = T.botBubble) != null && E.showAvatar ? "rcb-checkbox-offset" : ""), children: [e.items.map((W) => X("div", { onMouseDown: ($) => {
|
|
9736
9736
|
$.preventDefault(), ((q) => {
|
|
9737
|
-
|
|
9737
|
+
N || B((ae) => {
|
|
9738
9738
|
const se = new Set(ae);
|
|
9739
9739
|
if (se.has(q)) n.delete(q), se.delete(q);
|
|
9740
9740
|
else {
|
|
@@ -9744,12 +9744,12 @@ const Yf = { [xe.START_SPEAK_AUDIO]: !0, [xe.TOGGLE_AUDIO]: !0, [xe.TOGGLE_VOICE
|
|
|
9744
9744
|
return se;
|
|
9745
9745
|
});
|
|
9746
9746
|
})(W);
|
|
9747
|
-
}, style:
|
|
9747
|
+
}, style: H, className: "rcb-checkbox-row-container", children: dt("div", { className: "rcb-checkbox-row", children: [X("div", { style: Q.has(W) ? z : Z, className: "rcb-checkbox-mark" }), X("div", { className: "rcb-checkbox-label", children: W })] }) }, W)), X("div", { style: j, className: "rcb-checkbox-next-button", onMouseDown: (W) => {
|
|
9748
9748
|
var $;
|
|
9749
|
-
if (W.preventDefault(),
|
|
9749
|
+
if (W.preventDefault(), N || Q.size < e.min) return;
|
|
9750
9750
|
const q = Array.from(n).join(", ");
|
|
9751
9751
|
let ae;
|
|
9752
|
-
U(!e.reusable), ae = e.sendOutput != null ? e.sendOutput : (($ = T.chatInput) == null ? void 0 : $.sendCheckboxOutput) ?? !0,
|
|
9752
|
+
U(!e.reusable), ae = e.sendOutput != null ? e.sendOutput : (($ = T.chatInput) == null ? void 0 : $.sendCheckboxOutput) ?? !0, D(q, ae);
|
|
9753
9753
|
} })] });
|
|
9754
9754
|
}, ep = async (e, n) => {
|
|
9755
9755
|
const a = e.checkboxes;
|
|
@@ -9772,26 +9772,26 @@ const Yf = { [xe.START_SPEAK_AUDIO]: !0, [xe.TOGGLE_AUDIO]: !0, [xe.TOGGLE_VOICE
|
|
|
9772
9772
|
o instanceof Promise && (o = await o), typeof o == "string" && o.trim() !== "" && (a ? await n.simulateStreamMessage(o) : await n.injectMessage(o));
|
|
9773
9773
|
}, rp = ({ options: e, path: n }) => {
|
|
9774
9774
|
var a, i, o, s, f, A;
|
|
9775
|
-
const { settings: u } = ze(), { styles: d } = st(), { paths: h } = Hs(), { handleSubmitText: g } = _a(), [y, E] = Ue([]), [T, R] = Ue(!1), k = { cursor: T ? `url("${(a = u.general) == null ? void 0 : a.actionDisabledIcon}"), auto` : "pointer", color: (i = u.general) == null ? void 0 : i.primaryColor, borderColor: (o = u.general) == null ? void 0 : o.primaryColor, backgroundColor: "#fff", ...d.botOptionStyle },
|
|
9775
|
+
const { settings: u } = ze(), { styles: d } = st(), { paths: h } = Hs(), { handleSubmitText: g } = _a(), [y, E] = Ue([]), [T, R] = Ue(!1), k = { cursor: T ? `url("${(a = u.general) == null ? void 0 : a.actionDisabledIcon}"), auto` : "pointer", color: (i = u.general) == null ? void 0 : i.primaryColor, borderColor: (o = u.general) == null ? void 0 : o.primaryColor, backgroundColor: "#fff", ...d.botOptionStyle }, D = { color: "#fff", borderColor: (s = u.general) == null ? void 0 : s.primaryColor, backgroundColor: (f = u.general) == null ? void 0 : f.primaryColor, ...d.botOptionHoveredStyle };
|
|
9776
9776
|
return je(() => {
|
|
9777
9777
|
h.length > 0 && h[h.length - 1] !== n && R(!e.reusable);
|
|
9778
9778
|
}, [h]), X("div", { className: "rcb-options-container " + ((A = u.botBubble) != null && A.showAvatar ? "rcb-options-offset" : ""), children: e.items.map((Q, B) => {
|
|
9779
|
-
const
|
|
9780
|
-
return X("div", { className: "rcb-options", style:
|
|
9781
|
-
E((
|
|
9782
|
-
const
|
|
9783
|
-
return
|
|
9779
|
+
const N = y[B] && !T;
|
|
9780
|
+
return X("div", { className: "rcb-options", style: N ? D : k, onMouseEnter: () => ((U) => {
|
|
9781
|
+
E((H) => {
|
|
9782
|
+
const j = [...H];
|
|
9783
|
+
return j[U] = !0, j;
|
|
9784
9784
|
});
|
|
9785
9785
|
})(B), onMouseLeave: () => ((U) => {
|
|
9786
|
-
E((
|
|
9787
|
-
const
|
|
9788
|
-
return
|
|
9786
|
+
E((H) => {
|
|
9787
|
+
const j = [...H];
|
|
9788
|
+
return j[U] = !1, j;
|
|
9789
9789
|
});
|
|
9790
9790
|
})(B), onMouseDown: (U) => {
|
|
9791
|
-
var
|
|
9791
|
+
var H;
|
|
9792
9792
|
if (U.preventDefault(), T) return;
|
|
9793
|
-
let
|
|
9794
|
-
R(!e.reusable),
|
|
9793
|
+
let j;
|
|
9794
|
+
R(!e.reusable), j = e.sendOutput != null ? e.sendOutput : ((H = u.chatInput) == null ? void 0 : H.sendOptionOutput) ?? !0, g(Q, j);
|
|
9795
9795
|
}, children: Q }, Q);
|
|
9796
9796
|
}) });
|
|
9797
9797
|
}, op = async (e, n) => {
|
|
@@ -9904,8 +9904,8 @@ const Kc = async (e) => {
|
|
|
9904
9904
|
if (g === "style") {
|
|
9905
9905
|
const y = h.value.split(";").filter((T) => T.trim() !== ""), E = {};
|
|
9906
9906
|
y.forEach((T) => {
|
|
9907
|
-
const [R, k] = T.split(":").map((Q) => Q.trim()),
|
|
9908
|
-
E[
|
|
9907
|
+
const [R, k] = T.split(":").map((Q) => Q.trim()), D = R.replace(/-([a-z])/g, (Q, B) => B.toUpperCase());
|
|
9908
|
+
E[D] = k;
|
|
9909
9909
|
}), d[g] = E;
|
|
9910
9910
|
} else A !== "audio" && A !== "video" || g !== "controls" || h.value !== "" ? d[g] = h.value : d[g] = "true";
|
|
9911
9911
|
return d;
|
|
@@ -9939,13 +9939,13 @@ const Kc = async (e) => {
|
|
|
9939
9939
|
const R = (E = e.notification) == null ? void 0 : E.sound;
|
|
9940
9940
|
u.current = new AudioContext();
|
|
9941
9941
|
const k = u.current.createGain();
|
|
9942
|
-
let
|
|
9942
|
+
let D;
|
|
9943
9943
|
if (k.gain.value = ((T = e.notification) == null ? void 0 : T.volume) ?? 0.2, d.current = k, R != null && R.startsWith("data:audio")) {
|
|
9944
|
-
const Q = atob(R.split(",")[1]), B = new ArrayBuffer(Q.length),
|
|
9945
|
-
for (let U = 0; U < Q.length; U++)
|
|
9946
|
-
|
|
9947
|
-
} else
|
|
9948
|
-
A.current = await u.current.decodeAudioData(
|
|
9944
|
+
const Q = atob(R.split(",")[1]), B = new ArrayBuffer(Q.length), N = new Uint8Array(B);
|
|
9945
|
+
for (let U = 0; U < Q.length; U++) N[U] = Q.charCodeAt(U);
|
|
9946
|
+
D = B;
|
|
9947
|
+
} else D = await (await fetch(R)).arrayBuffer();
|
|
9948
|
+
A.current = await u.current.decodeAudioData(D);
|
|
9949
9949
|
}, [e.notification]), y = Ce(() => {
|
|
9950
9950
|
var E;
|
|
9951
9951
|
if ((E = e.notification) != null && E.disabled || !f.current || !i || !u.current || !A.current) return;
|
|
@@ -9986,19 +9986,19 @@ const Kc = async (e) => {
|
|
|
9986
9986
|
return { audioToggledOn: n, speakAudio: f, toggleAudio: s };
|
|
9987
9987
|
}, Pi = () => {
|
|
9988
9988
|
var e, n;
|
|
9989
|
-
const { settings: a } = ze(), { messages: i, setSyncedMessages: o, syncedMessagesRef: s } = Fu(), { setSyncedIsBotTyping: f, setUnreadCount: A, syncedIsScrollingRef: u, syncedIsChatWindowOpenRef: d } = Ot(), { streamMessageMap: h, chatBodyRef: g, paramsInputRef: y } = Rt(), { scrollToBottom: E, getIsChatBotVisible: T } = Fn(), { dispatchRcbEvent: R } = fr(), { speakAudio: k } = Td(), { playNotificationSound:
|
|
9989
|
+
const { settings: a } = ze(), { messages: i, setSyncedMessages: o, syncedMessagesRef: s } = Fu(), { setSyncedIsBotTyping: f, setUnreadCount: A, syncedIsScrollingRef: u, syncedIsChatWindowOpenRef: d } = Ot(), { streamMessageMap: h, chatBodyRef: g, paramsInputRef: y } = Rt(), { scrollToBottom: E, getIsChatBotVisible: T } = Fn(), { dispatchRcbEvent: R } = fr(), { speakAudio: k } = Td(), { playNotificationSound: D } = Nu(), Q = Ce((z, W = !1) => {
|
|
9990
9990
|
var $, q;
|
|
9991
|
-
Kc(
|
|
9991
|
+
Kc(z);
|
|
9992
9992
|
let ae = !0;
|
|
9993
|
-
const se =
|
|
9993
|
+
const se = z[z.length - 1];
|
|
9994
9994
|
if (!se) return;
|
|
9995
9995
|
const le = se.sender.toUpperCase();
|
|
9996
|
-
le === "USER" && (ae = !1), ($ = a.general) != null && $.embedded && T() && (ae = !1), (d.current && !u.current || W) && (ae = !1), ae &&
|
|
9997
|
-
}, [a, g, d, u,
|
|
9996
|
+
le === "USER" && (ae = !1), ($ = a.general) != null && $.embedded && T() && (ae = !1), (d.current && !u.current || W) && (ae = !1), ae && D(), !W && (le !== "USER" && (q = a.chatWindow) != null && q.autoJumpToBottom || le === "USER" || !u.current) && setTimeout(() => E(), 1);
|
|
9997
|
+
}, [a, g, d, u, D, E, T]), B = Ce(async (z, W = "BOT", $ = null) => {
|
|
9998
9998
|
var q, ae, se, le, be;
|
|
9999
|
-
if (typeof
|
|
9999
|
+
if (typeof z != "string") throw new Error("Content must be of type string to simulate stream.");
|
|
10000
10000
|
W = W.toUpperCase();
|
|
10001
|
-
let ge = _o(
|
|
10001
|
+
let ge = _o(z, W);
|
|
10002
10002
|
if ((q = a.event) != null && q.rcbStartSimulateStreamMessage) {
|
|
10003
10003
|
const ie = await R(xe.START_SIMULATE_STREAM_MESSAGE, { message: ge });
|
|
10004
10004
|
if (ie.defaultPrevented) return null;
|
|
@@ -10028,44 +10028,44 @@ const Kc = async (e) => {
|
|
|
10028
10028
|
});
|
|
10029
10029
|
}, me);
|
|
10030
10030
|
});
|
|
10031
|
-
return (u.current || !d.current) && A((ie) => ie + 1), await fe, Kc(s.current), (be = a.event) != null && be.rcbStopSimulateStreamMessage && await R(xe.STOP_SIMULATE_STREAM_MESSAGE, { message: ge }), W === "USER" && (y.current =
|
|
10032
|
-
}, [a, R, Q, s, y, f, A, d, k]),
|
|
10031
|
+
return (u.current || !d.current) && A((ie) => ie + 1), await fe, Kc(s.current), (be = a.event) != null && be.rcbStopSimulateStreamMessage && await R(xe.STOP_SIMULATE_STREAM_MESSAGE, { message: ge }), W === "USER" && (y.current = z), ge;
|
|
10032
|
+
}, [a, R, Q, s, y, f, A, d, k]), N = Ce(async (z, W = "BOT") => {
|
|
10033
10033
|
var $, q, ae;
|
|
10034
10034
|
W = W.toUpperCase();
|
|
10035
|
-
let se = _o(
|
|
10035
|
+
let se = _o(z, W);
|
|
10036
10036
|
if (($ = a.event) != null && $.rcbPreInjectMessage) {
|
|
10037
10037
|
const le = await R(xe.PRE_INJECT_MESSAGE, { message: se });
|
|
10038
10038
|
if (le.defaultPrevented) return null;
|
|
10039
10039
|
se = le.data.message;
|
|
10040
10040
|
}
|
|
10041
|
-
return se.sender.toUpperCase() === "BOT" && (d.current || (q = a.general) != null && q.embedded) && typeof se.content == "string" && se.content.trim() !== "" && k(se.content), (u.current || !d.current) && A((le) => le + 1), (ae = a.event) != null && ae.rcbPostInjectMessage && await R(xe.POST_INJECT_MESSAGE, { message: se }), o((le) => [...le, se]), Q(s.current), W === "USER" && typeof
|
|
10042
|
-
}, [a, R, Q, y, s, d, k, A]), U = Ce(async (
|
|
10041
|
+
return se.sender.toUpperCase() === "BOT" && (d.current || (q = a.general) != null && q.embedded) && typeof se.content == "string" && se.content.trim() !== "" && k(se.content), (u.current || !d.current) && A((le) => le + 1), (ae = a.event) != null && ae.rcbPostInjectMessage && await R(xe.POST_INJECT_MESSAGE, { message: se }), o((le) => [...le, se]), Q(s.current), W === "USER" && typeof z == "string" && (y.current = z), se;
|
|
10042
|
+
}, [a, R, Q, y, s, d, k, A]), U = Ce(async (z) => {
|
|
10043
10043
|
var W;
|
|
10044
|
-
const $ = s.current.find((q) => q.id ===
|
|
10045
|
-
return !$ || (W = a.event) != null && W.rcbRemoveMessage && (await R(xe.REMOVE_MESSAGE, { message: $ })).defaultPrevented ? null : (o((q) => q.filter((ae) => ae.id !==
|
|
10046
|
-
}, [R, (e = a.event) == null ? void 0 : e.rcbRemoveMessage, Q, s, A]),
|
|
10044
|
+
const $ = s.current.find((q) => q.id === z);
|
|
10045
|
+
return !$ || (W = a.event) != null && W.rcbRemoveMessage && (await R(xe.REMOVE_MESSAGE, { message: $ })).defaultPrevented ? null : (o((q) => q.filter((ae) => ae.id !== z)), Q(s.current), A((q) => Math.max(q - 1, 0)), $);
|
|
10046
|
+
}, [R, (e = a.event) == null ? void 0 : e.rcbRemoveMessage, Q, s, A]), H = Ce(async (z, W = "BOT") => {
|
|
10047
10047
|
var $, q;
|
|
10048
10048
|
if (W = W.toUpperCase(), !h.current.has(W)) {
|
|
10049
|
-
const se = _o(
|
|
10049
|
+
const se = _o(z, W);
|
|
10050
10050
|
return ($ = a.event) != null && $.rcbStartStreamMessage && (await R(xe.START_STREAM_MESSAGE, { message: se })).defaultPrevented ? null : (f(!1), o((le) => [...le, se]), Q(s.current), h.current.set(W, se.id), (u.current || !d.current) && A((le) => le + 1), se);
|
|
10051
10051
|
}
|
|
10052
|
-
const ae = { ..._o(
|
|
10052
|
+
const ae = { ..._o(z, W), id: h.current.get(W) };
|
|
10053
10053
|
return (q = a.event) != null && q.rcbChunkStreamMessage && (await R(xe.CHUNK_STREAM_MESSAGE, { message: ae })).defaultPrevented ? null : (o((se) => se.map((le) => le.id === ae.id ? ae : le)), Q(s.current, !0), ae);
|
|
10054
|
-
}, [R, a.event, Q, s, f, A, h]),
|
|
10054
|
+
}, [R, a.event, Q, s, f, A, h]), j = Ce(async (z = "BOT") => {
|
|
10055
10055
|
var W;
|
|
10056
|
-
if (
|
|
10057
|
-
const $ = h.current.get(
|
|
10056
|
+
if (z = z.toUpperCase(), !h.current.has(z)) return !0;
|
|
10057
|
+
const $ = h.current.get(z);
|
|
10058
10058
|
let q;
|
|
10059
10059
|
for (let ae = 0; ae < 3; ae++) {
|
|
10060
10060
|
const se = s.current.find((le) => le.id === $);
|
|
10061
10061
|
se && (q = se), await new Promise((le) => setTimeout(le, 20));
|
|
10062
10062
|
}
|
|
10063
|
-
return ((W = a.event) == null || !W.rcbStopStreamMessage || !(await R(xe.STOP_STREAM_MESSAGE, { message: q })).defaultPrevented) && (h.current.delete(
|
|
10064
|
-
}, [R, (n = a.event) == null ? void 0 : n.rcbStopStreamMessage, h, y]),
|
|
10065
|
-
const W = typeof
|
|
10063
|
+
return ((W = a.event) == null || !W.rcbStopStreamMessage || !(await R(xe.STOP_STREAM_MESSAGE, { message: q })).defaultPrevented) && (h.current.delete(z), Kc(s.current), z === "USER" && typeof (q == null ? void 0 : q.content) == "string" && (y.current = q.content), !0);
|
|
10064
|
+
}, [R, (n = a.event) == null ? void 0 : n.rcbStopStreamMessage, h, y]), Z = Ce((z) => {
|
|
10065
|
+
const W = typeof z == "function" ? z(s.current) : z;
|
|
10066
10066
|
o(W), Q(W);
|
|
10067
10067
|
}, [Q, s]);
|
|
10068
|
-
return { simulateStreamMessage: B, injectMessage:
|
|
10068
|
+
return { simulateStreamMessage: B, injectMessage: N, removeMessage: U, streamMessage: H, endStreamMessage: j, replaceMessages: Z, messages: i };
|
|
10069
10069
|
};
|
|
10070
10070
|
let qc, Dr, Ql, Lo = !1, Or = null;
|
|
10071
10071
|
const Uu = () => {
|
|
@@ -10088,8 +10088,8 @@ const Uu = () => {
|
|
|
10088
10088
|
clearTimeout(Dr), Dr = null, clearTimeout(Ql);
|
|
10089
10089
|
const R = y.results[y.results.length - 1][0].transcript;
|
|
10090
10090
|
if (s.current) {
|
|
10091
|
-
const k = (E = e.chatInput) == null ? void 0 : E.characterLimit,
|
|
10092
|
-
k != null && k >= 0 &&
|
|
10091
|
+
const k = (E = e.chatInput) == null ? void 0 : E.characterLimit, D = s.current.value + R;
|
|
10092
|
+
k != null && k >= 0 && D.length > k ? i(D.slice(0, k)) : i(D), o(s.current.value.length);
|
|
10093
10093
|
}
|
|
10094
10094
|
h && (Dr = setTimeout(async () => await $c(n, s), h)), (T = e.voice) != null && T.autoSendDisabled || (Ql = setTimeout(a, g));
|
|
10095
10095
|
}, d.onend = () => {
|
|
@@ -10129,30 +10129,30 @@ const Uu = () => {
|
|
|
10129
10129
|
return { voiceToggledOn: n, toggleVoice: s, syncVoice: f };
|
|
10130
10130
|
}, Ti = () => {
|
|
10131
10131
|
var e;
|
|
10132
|
-
const { settings: n } = ze(), { inputLength: a, setInputLength: i, textAreaDisabled: o, setSyncedTextAreaDisabled: s, textAreaSensitiveMode: f, setSyncedTextAreaSensitiveMode: A, syncedTextAreaDisabledRef: u, syncedTextAreaSensitiveModeRef: d } = Ot(), { inputRef: h, chatBodyRef: g, prevInputRef: y } = Rt(), { dispatchRcbEvent: E } = fr(), { getIsChatBotVisible: T } = Fn(), R = Ce(async (
|
|
10133
|
-
var
|
|
10132
|
+
const { settings: n } = ze(), { inputLength: a, setInputLength: i, textAreaDisabled: o, setSyncedTextAreaDisabled: s, textAreaSensitiveMode: f, setSyncedTextAreaSensitiveMode: A, syncedTextAreaDisabledRef: u, syncedTextAreaSensitiveModeRef: d } = Ot(), { inputRef: h, chatBodyRef: g, prevInputRef: y } = Rt(), { dispatchRcbEvent: E } = fr(), { getIsChatBotVisible: T } = Fn(), R = Ce(async (H) => {
|
|
10133
|
+
var j, Z, z;
|
|
10134
10134
|
if (u.current && h.current) h.current.value = "";
|
|
10135
10135
|
else if (h.current && y.current !== null) {
|
|
10136
|
-
const W = (
|
|
10137
|
-
if (W != null && W >= 0 && $.length > W ? h.current.value = $.slice(0, W) : h.current.value = $, (
|
|
10136
|
+
const W = (j = n.chatInput) == null ? void 0 : j.characterLimit, $ = (Z = n.chatInput) != null && Z.allowNewline ? H : H.replace(/\n/g, " ");
|
|
10137
|
+
if (W != null && W >= 0 && $.length > W ? h.current.value = $.slice(0, W) : h.current.value = $, (z = n.event) != null && z.rcbTextAreaChangeValue && (await E(xe.TEXT_AREA_CHANGE_VALUE, { currValue: h.current.value, prevValue: y.current })).defaultPrevented) return void (h.current.value = y.current);
|
|
10138
10138
|
y.current = h.current.value;
|
|
10139
10139
|
}
|
|
10140
|
-
}, [u, h, y, n, E]), k = Ce((
|
|
10141
|
-
var
|
|
10142
|
-
(
|
|
10143
|
-
var
|
|
10144
|
-
(
|
|
10140
|
+
}, [u, h, y, n, E]), k = Ce((H) => {
|
|
10141
|
+
var j;
|
|
10142
|
+
(j = h.current) != null && j.disabled || setTimeout(() => {
|
|
10143
|
+
var Z, z, W;
|
|
10144
|
+
(Z = n.general) != null && Z.embedded ? T() && ((z = h.current) == null || z.focus()) : H !== "start" && ((W = h.current) == null || W.focus());
|
|
10145
10145
|
}, 100);
|
|
10146
|
-
}, [h, (e = n.general) == null ? void 0 : e.embedded, g, T]),
|
|
10146
|
+
}, [h, (e = n.general) == null ? void 0 : e.embedded, g, T]), D = Ce(() => {
|
|
10147
10147
|
h.current && h.current.focus();
|
|
10148
10148
|
}, []), Q = Ce(() => {
|
|
10149
10149
|
h.current && h.current.blur();
|
|
10150
|
-
}, []), B = Ce(() => h && h.current ? h.current.value : "", []),
|
|
10151
|
-
|
|
10152
|
-
}, [u]), U = Ce((
|
|
10153
|
-
|
|
10150
|
+
}, []), B = Ce(() => h && h.current ? h.current.value : "", []), N = Ce((H) => {
|
|
10151
|
+
H !== u.current && s((j) => !j);
|
|
10152
|
+
}, [u]), U = Ce((H) => {
|
|
10153
|
+
H !== d.current && A((j) => !j);
|
|
10154
10154
|
}, [d]);
|
|
10155
|
-
return { textAreaDisabled: o, setSyncedTextAreaDisabled: s, textAreaSensitiveMode: f, setSyncedTextAreaSensitiveMode: A, inputLength: a, setInputLength: i, getTextAreaValue: B, setTextAreaValue: R, updateTextAreaFocus: k, focusTextArea:
|
|
10155
|
+
return { textAreaDisabled: o, setSyncedTextAreaDisabled: s, textAreaSensitiveMode: f, setSyncedTextAreaSensitiveMode: A, inputLength: a, setInputLength: i, getTextAreaValue: B, setTextAreaValue: R, updateTextAreaFocus: k, focusTextArea: D, blurTextArea: Q, toggleTextAreaDisabled: N, toggleTextAreaSensitiveMode: U };
|
|
10156
10156
|
}, Dd = Lr({ toasts: [], setSyncedToasts: () => {
|
|
10157
10157
|
}, syncedToastsRef: { current: [] } }), Id = () => Qr(Dd), bp = ({ children: e }) => {
|
|
10158
10158
|
const [n, a, i] = Ln([]);
|
|
@@ -10166,11 +10166,11 @@ const Uu = () => {
|
|
|
10166
10166
|
T = Hl();
|
|
10167
10167
|
let k = { id: T, content: u, timeout: d };
|
|
10168
10168
|
if ((y = e.event) != null && y.rcbShowToast) {
|
|
10169
|
-
const
|
|
10170
|
-
if (
|
|
10171
|
-
k =
|
|
10169
|
+
const D = await o(xe.SHOW_TOAST, { toast: k });
|
|
10170
|
+
if (D.defaultPrevented) return null;
|
|
10171
|
+
k = D.data.toast;
|
|
10172
10172
|
}
|
|
10173
|
-
return a((
|
|
10173
|
+
return a((D) => [...D.slice(1), k]), T;
|
|
10174
10174
|
}
|
|
10175
10175
|
T = Hl();
|
|
10176
10176
|
let R = { id: T, content: u, timeout: d };
|
|
@@ -10191,7 +10191,7 @@ const Uu = () => {
|
|
|
10191
10191
|
return { showToast: s, dismissToast: f, toasts: n, replaceToasts: A };
|
|
10192
10192
|
}, Yl = () => {
|
|
10193
10193
|
var e, n, a, i, o;
|
|
10194
|
-
const { settings: s } = ze(), { paths: f, setSyncedPaths: A, syncedPathsRef: u } = Hs(), { flowRef: d, streamMessageMap: h, paramsInputRef: g, keepVoiceOnRef: y, timeoutIdRef: E } = Rt(), { setSyncedIsBotTyping: T, setSyncedTextAreaDisabled: R, setSyncedTextAreaSensitiveMode: k, blockAllowsAttachment:
|
|
10194
|
+
const { settings: s } = ze(), { paths: f, setSyncedPaths: A, syncedPathsRef: u } = Hs(), { flowRef: d, streamMessageMap: h, paramsInputRef: g, keepVoiceOnRef: y, timeoutIdRef: E } = Rt(), { setSyncedIsBotTyping: T, setSyncedTextAreaDisabled: R, setSyncedTextAreaSensitiveMode: k, blockAllowsAttachment: D, setBlockAllowsAttachment: Q } = Ot(), { dispatchRcbEvent: B } = fr(), { endStreamMessage: N, injectMessage: U, removeMessage: H, simulateStreamMessage: j, streamMessage: Z } = Pi(), { showToast: z, dismissToast: W } = Oa(), { toggleChatWindow: $ } = Fn(), { updateTextAreaFocus: q, setTextAreaValue: ae } = Ti(), { syncVoice: se } = ju(), le = Ce(async (L) => {
|
|
10195
10195
|
var ve;
|
|
10196
10196
|
if ((ve = s.event) != null && ve.rcbPostProcessBlock) {
|
|
10197
10197
|
const fe = await B(xe.POST_PROCESS_BLOCK, { block: L });
|
|
@@ -10210,7 +10210,7 @@ const Uu = () => {
|
|
|
10210
10210
|
Ie = Oe.data.block;
|
|
10211
10211
|
}
|
|
10212
10212
|
T(!0), (ie = s.chatInput) != null && ie.blockSpam && R(!0), k(!1);
|
|
10213
|
-
const Qe = { prevPath: ve, currPath: L, goToPath: _, setTextAreaValue: ae, userInput: g.current, endStreamMessage:
|
|
10213
|
+
const Qe = { prevPath: ve, currPath: L, goToPath: _, setTextAreaValue: ae, userInput: g.current, endStreamMessage: N, injectMessage: U, removeMessage: H, simulateStreamMessage: j, streamMessage: Z, toggleChatWindow: $, showToast: z, dismissToast: W };
|
|
10214
10214
|
await (async (Oe, We, qe, _t, Ze, et, mt) => {
|
|
10215
10215
|
if (!Oe) throw new Error("Block is not valid.");
|
|
10216
10216
|
for (const St of Object.keys(Oe)) switch (St) {
|
|
@@ -10236,7 +10236,7 @@ const Uu = () => {
|
|
|
10236
10236
|
await ap(Oe, We, _t, mt);
|
|
10237
10237
|
}
|
|
10238
10238
|
})(Ie, Qe, ((he = s.botBubble) == null ? void 0 : he.simulateStream) ?? !1, E, R, k, le), T(!1), "chatDisabled" in Ie || R((ye = s.chatInput) == null ? void 0 : ye.disabled), "isSensitive" in Ie || k(!1), Q(typeof Ie.file == "function"), q(L), se(y.current && !Ie.chatDisabled), L !== ve && h.current.clear();
|
|
10239
|
-
}, [d, q, se, (n = s.botBubble) == null ? void 0 : n.simulateStream, (a = s.chatInput) == null ? void 0 : a.disabled, g,
|
|
10239
|
+
}, [d, q, se, (n = s.botBubble) == null ? void 0 : n.simulateStream, (a = s.chatInput) == null ? void 0 : a.disabled, g, N, U, H, j, Z, $, z, W, y, h]), ge = Ce(() => u.current.length > 0 ? u.current.at(-1) ?? null : null, []), me = Ce(() => u.current.length > 1 ? u.current.at(-2) ?? null : null, []), _ = Ce(async (L) => {
|
|
10240
10240
|
var ve;
|
|
10241
10241
|
const fe = ge(), ie = me();
|
|
10242
10242
|
return ((ve = s.event) == null || !ve.rcbChangePath || !(await B(xe.CHANGE_PATH, { currPath: fe, prevPath: ie, nextPath: L })).defaultPrevented) && (A((he) => [...he, L]), await be(L, fe), !0);
|
|
@@ -10244,39 +10244,39 @@ const Uu = () => {
|
|
|
10244
10244
|
const ve = typeof L == "function" ? L(u.current) : L;
|
|
10245
10245
|
A(ve);
|
|
10246
10246
|
}, [u]);
|
|
10247
|
-
return { getCurrPath: ge, getPrevPath: me, goToPath: _, blockAllowsAttachment:
|
|
10247
|
+
return { getCurrPath: ge, getPrevPath: me, goToPath: _, blockAllowsAttachment: D, setBlockAllowsAttachment: Q, paths: f, replacePaths: Be, firePostProcessBlockEvent: le };
|
|
10248
10248
|
}, _a = () => {
|
|
10249
10249
|
var e, n, a, i;
|
|
10250
|
-
const { settings: o } = ze(), { endStreamMessage: s, injectMessage: f, removeMessage: A, simulateStreamMessage: u, streamMessage: d } = Pi(), { syncedPathsRef: h } = Hs(), { getCurrPath: g, getPrevPath: y, goToPath: E, firePostProcessBlockEvent: T } = Yl(), { setSyncedTextAreaSensitiveMode: R, setSyncedTextAreaDisabled: k, setSyncedIsBotTyping:
|
|
10250
|
+
const { settings: o } = ze(), { endStreamMessage: s, injectMessage: f, removeMessage: A, simulateStreamMessage: u, streamMessage: d } = Pi(), { syncedPathsRef: h } = Hs(), { getCurrPath: g, getPrevPath: y, goToPath: E, firePostProcessBlockEvent: T } = Yl(), { setSyncedTextAreaSensitiveMode: R, setSyncedTextAreaDisabled: k, setSyncedIsBotTyping: D, setBlockAllowsAttachment: Q, setInputLength: B, syncedVoiceToggledOnRef: N, syncedTextAreaSensitiveModeRef: U } = Ot(), { flowRef: H, inputRef: j, keepVoiceOnRef: Z, paramsInputRef: z, timeoutIdRef: W } = Rt(), { showToast: $, dismissToast: q } = Oa(), { dispatchRcbEvent: ae } = fr(), { syncVoice: se } = ju(), { setTextAreaValue: le } = Ti(), { toggleChatWindow: be } = Fn(), ge = Ce(async (_) => {
|
|
10251
10251
|
var Be, L, ve, fe, ie, he;
|
|
10252
10252
|
const ye = g();
|
|
10253
|
-
if (ye &&
|
|
10253
|
+
if (ye && H.current[ye]) {
|
|
10254
10254
|
if (U.current) {
|
|
10255
10255
|
if ((Be = o == null ? void 0 : o.sensitiveInput) != null && Be.hideInUserBubble) return;
|
|
10256
10256
|
if ((L = o == null ? void 0 : o.sensitiveInput) != null && L.maskInUserBubble) return void ((ve = o.userBubble) != null && ve.simulateStream ? await u("*".repeat(((fe = o.sensitiveInput) == null ? void 0 : fe.asterisksCount) ?? 10), "USER") : await f("*".repeat(((ie = o.sensitiveInput) == null ? void 0 : ie.asterisksCount) ?? 10), "USER"));
|
|
10257
10257
|
}
|
|
10258
10258
|
(he = o.userBubble) != null && he.simulateStream ? await u(_, "USER") : await f(_, "USER");
|
|
10259
10259
|
}
|
|
10260
|
-
}, [
|
|
10260
|
+
}, [H, g, o, f, u, U]), me = Ce(async (_, Be = !0) => {
|
|
10261
10261
|
var L, ve;
|
|
10262
10262
|
if ((_ = _.trim()) === "") return;
|
|
10263
|
-
Be && await ge(_), W.current && clearTimeout(W.current),
|
|
10263
|
+
Be && await ge(_), W.current && clearTimeout(W.current), j.current && (le(""), B(0));
|
|
10264
10264
|
const fe = g();
|
|
10265
10265
|
if (!fe) return;
|
|
10266
|
-
let ie =
|
|
10266
|
+
let ie = H.current[fe];
|
|
10267
10267
|
const he = await T(ie);
|
|
10268
|
-
he && ((L = o.chatInput) != null && L.blockSpam && k(!0),
|
|
10269
|
-
|
|
10268
|
+
he && ((L = o.chatInput) != null && L.blockSpam && k(!0), Z.current = N.current, se(!1), setTimeout(() => {
|
|
10269
|
+
D(!0);
|
|
10270
10270
|
}, 400), R(!1), setTimeout(async () => {
|
|
10271
10271
|
var ye;
|
|
10272
|
-
const Ie = { prevPath: y(), currPath: g(), goToPath: E, setTextAreaValue: le, userInput:
|
|
10273
|
-
await Sd(he, Ie), h.current.length === Qe && (k("chatDisabled" in ie ? !!ie.chatDisabled : !((ye = o.chatInput) == null || !ye.disabled)), xd(ie, Ie, R), Q(typeof ie.file == "function"), se(
|
|
10272
|
+
const Ie = { prevPath: y(), currPath: g(), goToPath: E, setTextAreaValue: le, userInput: z.current, injectMessage: f, simulateStreamMessage: u, streamMessage: d, removeMessage: A, endStreamMessage: s, toggleChatWindow: be, showToast: $, dismissToast: q }, Qe = h.current.length;
|
|
10273
|
+
await Sd(he, Ie), h.current.length === Qe && (k("chatDisabled" in ie ? !!ie.chatDisabled : !((ye = o.chatInput) == null || !ye.disabled)), xd(ie, Ie, R), Q(typeof ie.file == "function"), se(Z.current), D(!1));
|
|
10274
10274
|
}, (ve = o.chatInput) == null ? void 0 : ve.botDelay));
|
|
10275
|
-
}, [W, (e = o.chatInput) == null ? void 0 : e.blockSpam, (n = o.chatInput) == null ? void 0 : n.botDelay, (a = o.chatInput) == null ? void 0 : a.disabled,
|
|
10275
|
+
}, [W, (e = o.chatInput) == null ? void 0 : e.blockSpam, (n = o.chatInput) == null ? void 0 : n.botDelay, (a = o.chatInput) == null ? void 0 : a.disabled, Z, N, se, ge, y, g, E, f, u, d, A, s, be, $, q, H]);
|
|
10276
10276
|
return { handleSubmitText: Ce(async (_, Be = !0) => {
|
|
10277
10277
|
var L, ve;
|
|
10278
|
-
_ = _ ?? ((L =
|
|
10279
|
-
}, [ae, g, me,
|
|
10278
|
+
_ = _ ?? ((L = j.current) == null ? void 0 : L.value), !((ve = o.event) != null && ve.rcbUserSubmitText && (await ae(xe.USER_SUBMIT_TEXT, { inputText: _, sendInChat: Be })).defaultPrevented || !g()) && me(_, Be);
|
|
10279
|
+
}, [ae, g, me, j, (i = o.event) == null ? void 0 : i.rcbUserSubmitText]) };
|
|
10280
10280
|
}, Gl = () => {
|
|
10281
10281
|
var e;
|
|
10282
10282
|
const { settings: n } = ze();
|
|
@@ -10289,27 +10289,27 @@ const Uu = () => {
|
|
|
10289
10289
|
}, [(e = n.device) == null ? void 0 : e.applyMobileOptimizations]);
|
|
10290
10290
|
}, wp = ({ buttons: e }) => {
|
|
10291
10291
|
var n, a, i, o, s, f, A, u, d, h, g;
|
|
10292
|
-
const y = Gl(), { settings: E } = ze(), { styles: T } = st(), { textAreaDisabled: R, textAreaSensitiveMode: k, inputLength:
|
|
10293
|
-
R ||
|
|
10292
|
+
const y = Gl(), { settings: E } = ze(), { styles: T } = st(), { textAreaDisabled: R, textAreaSensitiveMode: k, inputLength: D, hasFlowStarted: Q, setHasFlowStarted: B, setInputLength: N } = Ot(), { inputRef: U } = Rt(), [H, j] = Ue(!1), [Z, z] = Ue(!1), { handleSubmitText: W } = _a(), { setTextAreaValue: $ } = Ti(), q = { boxSizing: y ? "content-box" : "border-box", ...T.chatInputAreaStyle }, ae = { outline: R ? "" : "none", boxShadow: R ? "" : `0 0 5px ${(n = E.general) == null ? void 0 : n.primaryColor}`, boxSizing: y ? "content-box" : "border-box", ...T.chatInputAreaStyle, ...T.chatInputAreaFocusedStyle }, se = { cursor: `url("${(a = E.general) == null ? void 0 : a.actionDisabledIcon}"), auto`, caretColor: "transparent", boxSizing: y ? "content-box" : "border-box", ...T.chatInputAreaStyle, ...T.chatInputAreaDisabledStyle }, le = { color: "#989898", ...T.characterLimitStyle }, be = { color: "#ff0000", ...T.characterLimitReachedStyle }, ge = R ? (i = E.chatInput) == null ? void 0 : i.disabledPlaceholderText : (o = E.chatInput) == null ? void 0 : o.enabledPlaceholderText, me = () => {
|
|
10293
|
+
R || j(!0);
|
|
10294
10294
|
}, _ = () => {
|
|
10295
|
-
|
|
10295
|
+
j(!1);
|
|
10296
10296
|
}, Be = () => {
|
|
10297
|
-
|
|
10297
|
+
z(!0);
|
|
10298
10298
|
}, L = () => {
|
|
10299
|
-
|
|
10299
|
+
z(!1);
|
|
10300
10300
|
}, ve = async (ie) => {
|
|
10301
10301
|
var he;
|
|
10302
|
-
if (!
|
|
10302
|
+
if (!Z && ie.key === "Enter") {
|
|
10303
10303
|
if (ie.shiftKey) return void ((he = E.chatInput) != null && he.allowNewline || ie.preventDefault());
|
|
10304
10304
|
ie.preventDefault(), await W();
|
|
10305
10305
|
}
|
|
10306
10306
|
}, fe = (ie) => {
|
|
10307
|
-
U.current && ($(ie.target.value),
|
|
10307
|
+
U.current && ($(ie.target.value), N(U.current.value.length));
|
|
10308
10308
|
};
|
|
10309
10309
|
return dt("div", { "aria-label": ((s = E.ariaLabel) == null ? void 0 : s.inputTextArea) ?? "input text area", role: "textbox", onMouseDown: (ie) => {
|
|
10310
10310
|
var he;
|
|
10311
10311
|
ie.stopPropagation(), !Q && ((he = E.general) == null ? void 0 : he.flowStartTrigger) === "ON_CHATBOT_INTERACT" && B(!0);
|
|
10312
|
-
}, style: { ...T.chatInputContainerStyle }, className: "rcb-chat-input", children: [k && (f = E.sensitiveInput) != null && f.maskInTextArea ? X("input", { ref: U, type: "password", className: "rcb-chat-input-textarea", style: R ? se :
|
|
10312
|
+
}, style: { ...T.chatInputContainerStyle }, className: "rcb-chat-input", children: [k && (f = E.sensitiveInput) != null && f.maskInTextArea ? X("input", { ref: U, type: "password", className: "rcb-chat-input-textarea", style: R ? se : H ? ae : q, placeholder: ge, onChange: fe, onKeyDown: ve, onFocus: me, onBlur: _, onCompositionStart: Be, onCompositionEnd: L }) : X("textarea", { ref: U, style: R ? se : H ? ae : q, rows: 1, className: "rcb-chat-input-textarea", placeholder: ge, onChange: fe, onKeyDown: ve, onFocus: me, onBlur: _, onCompositionStart: Be, onCompositionEnd: L }), dt($t, { children: [e == null ? void 0 : e.map((ie, he) => X(Qu, { children: ie }, he)), ((A = E.chatInput) == null ? void 0 : A.showCharacterCount) && ((u = E.chatInput) == null ? void 0 : u.characterLimit) != null && ((d = E.chatInput) == null ? void 0 : d.characterLimit) > 0 && dt("div", { className: "rcb-chat-input-char-counter", style: D >= ((h = E.chatInput) == null ? void 0 : h.characterLimit) ? be : le, children: [D, "/", (g = E.chatInput) == null ? void 0 : g.characterLimit] })] })] });
|
|
10313
10313
|
}, xp = ({ buttons: e }) => {
|
|
10314
10314
|
var n;
|
|
10315
10315
|
const { settings: a } = ze(), { styles: i } = st();
|
|
@@ -10323,24 +10323,24 @@ const Uu = () => {
|
|
|
10323
10323
|
}, onMouseLeave: () => {
|
|
10324
10324
|
E(!1);
|
|
10325
10325
|
}, onClick: () => g(!0), children: [(() => {
|
|
10326
|
-
var
|
|
10327
|
-
const Q = (
|
|
10326
|
+
var D;
|
|
10327
|
+
const Q = (D = A.chatButton) == null ? void 0 : D.icon;
|
|
10328
10328
|
return Q && typeof Q != "string" ? Q && X("span", { className: "rcb-toggle-icon", children: X(Q, { style: k }) }) : X("span", { className: "rcb-toggle-icon", style: k });
|
|
10329
10329
|
})(), !((s = A.notification) != null && s.disabled) && ((f = A.notification) == null ? void 0 : f.showCount) && X("span", { style: { ...u.notificationBadgeStyle }, className: "rcb-badge", children: d })] }) });
|
|
10330
10330
|
}, kp = () => {
|
|
10331
10331
|
var e, n, a, i;
|
|
10332
10332
|
const o = Gl(), { settings: s } = ze(), { styles: f } = st(), { chatBodyRef: A } = Rt(), { isChatWindowOpen: u, toggleChatWindow: d } = Fn(), [h, g] = Ue(!1), [y, E] = Ue(!1), [T, R] = Ue(0);
|
|
10333
10333
|
je(() => {
|
|
10334
|
-
var Q, B,
|
|
10334
|
+
var Q, B, N;
|
|
10335
10335
|
const U = (Q = s.tooltip) == null ? void 0 : Q.mode;
|
|
10336
10336
|
if (U === "ALWAYS") if (o) {
|
|
10337
|
-
let
|
|
10338
|
-
|
|
10337
|
+
let H;
|
|
10338
|
+
H = u ? (((B = A.current) == null ? void 0 : B.offsetWidth) ?? 375) - (typeof ((N = f.chatButtonStyle) == null ? void 0 : N.width) == "number" ? f.chatButtonStyle.width : 75) : 0, R(H), g(!0);
|
|
10339
10339
|
} else g(!u);
|
|
10340
10340
|
else U === "NEVER" ? g(!1) : U === "START" ? y ? g(!1) : (E(!0), g(!0)) : U === "CLOSE" && g(!u);
|
|
10341
10341
|
}, [u]);
|
|
10342
|
-
const k = { transform: `translateX(-${T}px)`, right: (((e = f.chatButtonStyle) == null ? void 0 : e.width) ?? 75) + 40, bottom: 30, backgroundColor: (n = s.general) == null ? void 0 : n.secondaryColor, color: "#fff", ...f.tooltipStyle },
|
|
10343
|
-
return X($t, { children: !((a = s.general) != null && a.embedded) && dt("div", { "data-testid": "chat-tooltip", style: k, className: "rcb-chat-tooltip " + (h ? "rcb-tooltip-show" : "rcb-tooltip-hide"), onClick: () => d(!0), children: [X("span", { children: (i = s.tooltip) == null ? void 0 : i.text }), X("span", { className: "rcb-chat-tooltip-tail", style:
|
|
10342
|
+
const k = { transform: `translateX(-${T}px)`, right: (((e = f.chatButtonStyle) == null ? void 0 : e.width) ?? 75) + 40, bottom: 30, backgroundColor: (n = s.general) == null ? void 0 : n.secondaryColor, color: "#fff", ...f.tooltipStyle }, D = { borderColor: `transparent transparent transparent ${k.backgroundColor}` };
|
|
10343
|
+
return X($t, { children: !((a = s.general) != null && a.embedded) && dt("div", { "data-testid": "chat-tooltip", style: k, className: "rcb-chat-tooltip " + (h ? "rcb-tooltip-show" : "rcb-tooltip-hide"), onClick: () => d(!0), children: [X("span", { children: (i = s.tooltip) == null ? void 0 : i.text }), X("span", { className: "rcb-chat-tooltip-tail", style: D })] }) });
|
|
10344
10344
|
}, Ep = ({ id: e, content: n, timeout: a }) => {
|
|
10345
10345
|
var i, o;
|
|
10346
10346
|
const { settings: s } = ze(), { styles: f } = st(), [A] = Ue({ toastPromptStyle: { ...f.toastPromptStyle }, toastPromptHoveredStyle: { ...f.toastPromptHoveredStyle } }), { dismissToast: u } = Oa(), [d, h] = Ue(!1), g = { color: (i = s.general) == null ? void 0 : i.primaryColor, borderColor: (o = s.general) == null ? void 0 : o.primaryColor, ...A.toastPromptHoveredStyle };
|
|
@@ -10381,13 +10381,13 @@ const Uu = () => {
|
|
|
10381
10381
|
}
|
|
10382
10382
|
}, Pp = () => {
|
|
10383
10383
|
var e, n, a, i, o, s;
|
|
10384
|
-
const { settings: f } = ze(), { styles: A } = st(), { injectMessage: u, simulateStreamMessage: d, streamMessage: h, removeMessage: g, endStreamMessage: y } = Pi(), { getCurrPath: E, getPrevPath: T, goToPath: R, blockAllowsAttachment: k } = Yl(), { flowRef:
|
|
10384
|
+
const { settings: f } = ze(), { styles: A } = st(), { injectMessage: u, simulateStreamMessage: d, streamMessage: h, removeMessage: g, endStreamMessage: y } = Pi(), { getCurrPath: E, getPrevPath: T, goToPath: R, blockAllowsAttachment: k } = Yl(), { flowRef: D, inputRef: Q } = Rt(), B = D.current, { showToast: N, dismissToast: U } = Oa(), { dispatchRcbEvent: H } = fr(), { toggleChatWindow: j } = Fn(), { setTextAreaValue: Z } = Ti(), { handleSubmitText: z } = _a(), W = { cursor: `url("${(e = f.general) == null ? void 0 : e.actionDisabledIcon}"), auto`, ...A.fileAttachmentButtonStyle, ...A.fileAttachmentButtonDisabledStyle }, $ = { backgroundImage: `url(${(n = f.fileAttachment) == null ? void 0 : n.icon})`, fill: "#a6a6a6", ...A.fileAttachmentIconStyle }, q = { backgroundImage: `url(${(a = f.fileAttachment) == null ? void 0 : a.icon})`, fill: "#a6a6a6", ...A.fileAttachmentIconStyle, ...A.fileAttachmentIconDisabledStyle };
|
|
10385
10385
|
return dt("label", { "aria-label": ((i = f.ariaLabel) == null ? void 0 : i.fileAttachmentButton) ?? "upload file", role: "button", className: k ? "rcb-attach-button-enabled" : "rcb-attach-button-disabled", style: k ? { ...A.fileAttachmentButtonStyle } : W, children: [X("input", { className: "rcb-attach-input", role: "file", type: "file", onChange: async (ae) => {
|
|
10386
10386
|
var se, le, be, ge;
|
|
10387
10387
|
const me = ae.target.files;
|
|
10388
10388
|
if (!me) return;
|
|
10389
10389
|
const _ = Array.from(me);
|
|
10390
|
-
if (ae.target.value = "", (se = f.event) != null && se.rcbUserUploadFile && (await
|
|
10390
|
+
if (ae.target.value = "", (se = f.event) != null && se.rcbUserUploadFile && (await H(xe.USER_UPLOAD_FILE, { files: _ })).defaultPrevented) return;
|
|
10391
10391
|
const Be = E();
|
|
10392
10392
|
if (!Be) return;
|
|
10393
10393
|
const L = B[Be];
|
|
@@ -10400,7 +10400,7 @@ const Uu = () => {
|
|
|
10400
10400
|
const he = await Rd(_[ie]);
|
|
10401
10401
|
!he.fileType || !he.fileUrl || await u(X(Bd, { file: _[ie], fileType: he.fileType, fileUrl: he.fileUrl }), "USER");
|
|
10402
10402
|
}
|
|
10403
|
-
await
|
|
10403
|
+
await z("📄 " + fe.join(", "), (be = f.fileAttachment) == null ? void 0 : be.sendFileName), await ve({ userInput: (ge = Q.current) == null ? void 0 : ge.value, prevPath: T(), currPath: E(), goToPath: R, setTextAreaValue: Z, injectMessage: u, simulateStreamMessage: d, streamMessage: h, removeMessage: g, endStreamMessage: y, toggleChatWindow: j, showToast: N, dismissToast: U, files: _ });
|
|
10404
10404
|
}
|
|
10405
10405
|
}, multiple: (o = f.fileAttachment) == null ? void 0 : o.multiple, accept: (s = f.fileAttachment) == null ? void 0 : s.accept, disabled: !k }), (() => {
|
|
10406
10406
|
var ae, se;
|
|
@@ -10409,38 +10409,38 @@ const Uu = () => {
|
|
|
10409
10409
|
})()] });
|
|
10410
10410
|
}, Tp = () => {
|
|
10411
10411
|
var e, n, a, i, o, s;
|
|
10412
|
-
const { settings: f } = ze(), { styles: A } = st(), { syncedTextAreaDisabledRef: u } = Ot(), { inputRef: d } = Rt(), { textAreaDisabled: h, setTextAreaValue: g } = Ti(), y = Ke(null), E = Ke(null), [T, R] = Ue(!1), k = { cursor: `url("${(e = f.general) == null ? void 0 : e.actionDisabledIcon}"), auto`, ...A.emojiButtonStyle, ...A.emojiButtonDisabledStyle },
|
|
10412
|
+
const { settings: f } = ze(), { styles: A } = st(), { syncedTextAreaDisabledRef: u } = Ot(), { inputRef: d } = Rt(), { textAreaDisabled: h, setTextAreaValue: g } = Ti(), y = Ke(null), E = Ke(null), [T, R] = Ue(!1), k = { cursor: `url("${(e = f.general) == null ? void 0 : e.actionDisabledIcon}"), auto`, ...A.emojiButtonStyle, ...A.emojiButtonDisabledStyle }, D = { backgroundImage: `url(${(n = f.emoji) == null ? void 0 : n.icon})`, fill: "#a6a6a6", ...A.emojiIconStyle }, Q = { backgroundImage: `url(${(a = f.emoji) == null ? void 0 : a.icon})`, fill: "#a6a6a6", ...A.emojiIconStyle, ...A.emojiIconDisabledStyle };
|
|
10413
10413
|
return je(() => {
|
|
10414
10414
|
const B = (U) => {
|
|
10415
|
-
const
|
|
10416
|
-
y.current && !
|
|
10417
|
-
},
|
|
10415
|
+
const H = U.composedPath();
|
|
10416
|
+
y.current && !H.includes(y.current) && E.current && !H.includes(E.current) && R(!1);
|
|
10417
|
+
}, N = () => {
|
|
10418
10418
|
(() => {
|
|
10419
10419
|
if (y.current && E.current) {
|
|
10420
|
-
const U = E.current.getBoundingClientRect(),
|
|
10421
|
-
y.current.style.left = `${U.left}px`, y.current.style.top = `${
|
|
10420
|
+
const U = E.current.getBoundingClientRect(), H = y.current.offsetHeight, j = U.top - H - 8;
|
|
10421
|
+
y.current.style.left = `${U.left}px`, y.current.style.top = `${j}px`;
|
|
10422
10422
|
}
|
|
10423
10423
|
})();
|
|
10424
10424
|
};
|
|
10425
|
-
return document.addEventListener("mousedown", B), window.addEventListener("resize",
|
|
10426
|
-
document.removeEventListener("mousedown", B), window.removeEventListener("resize",
|
|
10425
|
+
return document.addEventListener("mousedown", B), window.addEventListener("resize", N), () => {
|
|
10426
|
+
document.removeEventListener("mousedown", B), window.removeEventListener("resize", N);
|
|
10427
10427
|
};
|
|
10428
10428
|
}, []), dt($t, { children: [X("div", { "aria-label": ((i = f.ariaLabel) == null ? void 0 : i.emojiButton) ?? "emoji picker", role: "button", ref: E, className: h ? "rcb-emoji-button-disabled" : "rcb-emoji-button-enabled", style: h ? k : { ...A.emojiButtonStyle }, onMouseDown: (B) => {
|
|
10429
|
-
B.preventDefault(), u.current ? R(!1) : R((
|
|
10429
|
+
B.preventDefault(), u.current ? R(!1) : R((N) => !N);
|
|
10430
10430
|
}, children: (() => {
|
|
10431
|
-
var B,
|
|
10432
|
-
const U = h ? (B = f.emoji) == null ? void 0 : B.iconDisabled : (
|
|
10433
|
-
return U && typeof U != "string" ? U && X("span", { className: h ? "rcb-emoji-icon-disabled" : "rcb-emoji-icon-enabled", children: X(U, { style: h ? Q :
|
|
10434
|
-
})() }), T && X("div", { className: "rcb-emoji-button-popup", ref: y, children: (s = (o = f.emoji) == null ? void 0 : o.list) == null ? void 0 : s.map((B,
|
|
10435
|
-
|
|
10436
|
-
const
|
|
10437
|
-
if (
|
|
10438
|
-
|
|
10439
|
-
const
|
|
10440
|
-
|
|
10431
|
+
var B, N;
|
|
10432
|
+
const U = h ? (B = f.emoji) == null ? void 0 : B.iconDisabled : (N = f.emoji) == null ? void 0 : N.icon;
|
|
10433
|
+
return U && typeof U != "string" ? U && X("span", { className: h ? "rcb-emoji-icon-disabled" : "rcb-emoji-icon-enabled", children: X(U, { style: h ? Q : D }) }) : X("span", { className: h ? "rcb-emoji-icon-disabled" : "rcb-emoji-icon-enabled", style: h ? Q : D });
|
|
10434
|
+
})() }), T && X("div", { className: "rcb-emoji-button-popup", ref: y, children: (s = (o = f.emoji) == null ? void 0 : o.list) == null ? void 0 : s.map((B, N) => X("span", { className: "rcb-emoji", onMouseDown: (U) => ((H, j) => {
|
|
10435
|
+
H.preventDefault(), d.current && (g(d.current.value + j), setTimeout(() => {
|
|
10436
|
+
const Z = d.current;
|
|
10437
|
+
if (Z) {
|
|
10438
|
+
Z.focus();
|
|
10439
|
+
const z = Z.value.length;
|
|
10440
|
+
Z.setSelectionRange(z, z);
|
|
10441
10441
|
}
|
|
10442
10442
|
}, 50)), R(!1);
|
|
10443
|
-
})(U, B), children: B },
|
|
10443
|
+
})(U, B), children: B }, N)) })] });
|
|
10444
10444
|
}, Dp = () => {
|
|
10445
10445
|
var e, n, a;
|
|
10446
10446
|
const { settings: i } = ze(), { styles: o } = st(), { audioToggledOn: s, toggleAudio: f } = Td(), A = { backgroundImage: `url(${(e = i.audio) == null ? void 0 : e.icon})`, fill: "#fcec3d", ...o.audioIconStyle }, u = { backgroundImage: `url(${(n = i.audio) == null ? void 0 : n.iconDisabled})`, fill: "#e8eaed", ...o.audioIconStyle, ...o.audioIconDisabledStyle };
|
|
@@ -10478,40 +10478,40 @@ const Uu = () => {
|
|
|
10478
10478
|
var e, n, a;
|
|
10479
10479
|
const { settings: i } = ze(), { styles: o } = st(), { injectMessage: s } = Pi(), { inputRef: f } = Rt(), { voiceToggledOn: A, toggleVoice: u } = ju(), { setInputLength: d, setTextAreaValue: h, textAreaDisabled: g } = Ti(), { handleSubmitText: y } = _a(), E = Ke([]), [T, R] = Ue(!1);
|
|
10480
10480
|
je(() => {
|
|
10481
|
-
var
|
|
10482
|
-
(
|
|
10481
|
+
var N;
|
|
10482
|
+
(N = i.voice) != null && N.sendAsAudio ? (B(), E.current = []) : y();
|
|
10483
10483
|
}, [T]), je(() => {
|
|
10484
|
-
A ? ((
|
|
10484
|
+
A ? ((N, U, H, j, Z, z, W) => {
|
|
10485
10485
|
var $;
|
|
10486
|
-
($ =
|
|
10486
|
+
($ = N.voice) != null && $.sendAsAudio ? yp(H, z) : vp(N, U, H, j, Z, W);
|
|
10487
10487
|
})(i, u, Q, h, d, E, f) : zu();
|
|
10488
10488
|
}, [A]);
|
|
10489
|
-
const k = { backgroundImage: `url(${(e = i.voice) == null ? void 0 : e.icon})`, fill: "#9aa0a6", ...o.voiceIconStyle },
|
|
10490
|
-
R((
|
|
10489
|
+
const k = { backgroundImage: `url(${(e = i.voice) == null ? void 0 : e.icon})`, fill: "#9aa0a6", ...o.voiceIconStyle }, D = { backgroundImage: `url(${(n = i.voice) == null ? void 0 : n.iconDisabled})`, fill: "#9aa0a6", ...o.voiceIconStyle, ...o.voiceIconDisabledStyle }, Q = () => {
|
|
10490
|
+
R((N) => !N);
|
|
10491
10491
|
}, B = async () => {
|
|
10492
|
-
const
|
|
10493
|
-
!
|
|
10492
|
+
const N = new Blob(E.current, { type: "audio/wav" }), U = new File([N], "voice-input.wav", { type: "audio/wav" }), H = await Rd(U);
|
|
10493
|
+
!H.fileType || !H.fileUrl || await s(X(Bd, { file: U, fileType: H.fileType, fileUrl: H.fileUrl }), "USER");
|
|
10494
10494
|
};
|
|
10495
|
-
return X("div", { "aria-label": ((a = i.ariaLabel) == null ? void 0 : a.voiceButton) ?? "toggle voice", role: "button", onMouseDown: async (
|
|
10496
|
-
|
|
10495
|
+
return X("div", { "aria-label": ((a = i.ariaLabel) == null ? void 0 : a.voiceButton) ?? "toggle voice", role: "button", onMouseDown: async (N) => {
|
|
10496
|
+
N.preventDefault(), !g && await u();
|
|
10497
10497
|
}, style: A && !g ? { ...o.voiceButtonStyle } : { ...o.voiceButtonStyle, ...o.voiceButtonDisabledStyle }, className: A && !g ? "rcb-voice-button-enabled" : "rcb-voice-button-disabled", children: (() => {
|
|
10498
|
-
var
|
|
10499
|
-
const
|
|
10500
|
-
return
|
|
10498
|
+
var N, U;
|
|
10499
|
+
const H = A ? (N = i.voice) == null ? void 0 : N.icon : (U = i.voice) == null ? void 0 : U.iconDisabled;
|
|
10500
|
+
return H && typeof H != "string" ? H && X("span", { className: "rcb-voice-icon " + (A && !g ? "on" : ""), children: X(H, { style: A && !g ? k : D }) }) : X("span", { className: "rcb-voice-icon" + (A && !g ? "-on" : ""), "data-testid": "rcb-voice-icon", style: A && !g ? k : D });
|
|
10501
10501
|
})() });
|
|
10502
10502
|
}, Mp = () => {
|
|
10503
10503
|
var e, n, a, i, o, s, f, A;
|
|
10504
|
-
const { settings: u } = ze(), { styles: d } = st(), { textAreaDisabled: h } = Ot(), [g, y] = Ue(!1), { handleSubmitText: E } = _a(), T = { backgroundColor: (e = u.general) == null ? void 0 : e.primaryColor, ...d.sendButtonStyle }, R = { cursor: `url("${(n = u.general) == null ? void 0 : n.actionDisabledIcon}"), auto`, backgroundColor: (a = u.general) == null ? void 0 : a.primaryColor, ...d.sendButtonStyle, ...d.sendButtonDisabledStyle }, k = { backgroundColor: (i = u.general) == null ? void 0 : i.secondaryColor, ...d.sendButtonStyle, ...d.sendButtonHoveredStyle },
|
|
10504
|
+
const { settings: u } = ze(), { styles: d } = st(), { textAreaDisabled: h } = Ot(), [g, y] = Ue(!1), { handleSubmitText: E } = _a(), T = { backgroundColor: (e = u.general) == null ? void 0 : e.primaryColor, ...d.sendButtonStyle }, R = { cursor: `url("${(n = u.general) == null ? void 0 : n.actionDisabledIcon}"), auto`, backgroundColor: (a = u.general) == null ? void 0 : a.primaryColor, ...d.sendButtonStyle, ...d.sendButtonDisabledStyle }, k = { backgroundColor: (i = u.general) == null ? void 0 : i.secondaryColor, ...d.sendButtonStyle, ...d.sendButtonHoveredStyle }, D = { backgroundImage: `url(${(o = u.chatInput) == null ? void 0 : o.sendButtonIcon})`, fill: "#fff", ...d.sendIconStyle }, Q = { backgroundImage: `url(${(s = u.chatInput) == null ? void 0 : s.sendButtonIcon})`, fill: "#fff", ...d.sendIconStyle, ...d.sendIconDisabledStyle }, B = { backgroundImage: `url(${(f = u.chatInput) == null ? void 0 : f.sendButtonIcon})`, fill: "#fff", ...d.sendIconStyle, ...d.sendIconHoveredStyle };
|
|
10505
10505
|
return X("div", { "aria-label": ((A = u.ariaLabel) == null ? void 0 : A.sendButton) ?? "send message", role: "button", onMouseEnter: () => {
|
|
10506
10506
|
y(!0);
|
|
10507
10507
|
}, onMouseLeave: () => {
|
|
10508
10508
|
y(!1);
|
|
10509
|
-
}, onMouseDown: async (
|
|
10510
|
-
|
|
10509
|
+
}, onMouseDown: async (N) => {
|
|
10510
|
+
N == null || N.preventDefault(), !h && await E();
|
|
10511
10511
|
}, style: h ? R : g ? k : T, className: "rcb-send-button", children: (() => {
|
|
10512
|
-
var
|
|
10513
|
-
const U = (
|
|
10514
|
-
return U && typeof U != "string" ? U && X("span", { className: "rcb-send-icon", "data-testid": "rcb-send-icon", children: X(U, { style: h ? Q : g ? B :
|
|
10512
|
+
var N;
|
|
10513
|
+
const U = (N = u.chatInput) == null ? void 0 : N.sendButtonIcon;
|
|
10514
|
+
return U && typeof U != "string" ? U && X("span", { className: "rcb-send-icon", "data-testid": "rcb-send-icon", children: X(U, { style: h ? Q : g ? B : D }) }) : X("span", { className: "rcb-send-icon", "data-testid": "rcb-send-icon", style: h ? Q : g ? B : D });
|
|
10515
10515
|
})() });
|
|
10516
10516
|
}, Op = (e, n) => {
|
|
10517
10517
|
var a, i, o, s, f, A, u, d, h;
|
|
@@ -10521,8 +10521,8 @@ const Uu = () => {
|
|
|
10521
10521
|
if (y[R]) return y[R];
|
|
10522
10522
|
const k = n[R];
|
|
10523
10523
|
if (typeof k == "function") {
|
|
10524
|
-
const
|
|
10525
|
-
return y[R] =
|
|
10524
|
+
const D = k();
|
|
10525
|
+
return y[R] = D, D;
|
|
10526
10526
|
}
|
|
10527
10527
|
return null;
|
|
10528
10528
|
}
|
|
@@ -10541,12 +10541,12 @@ const Uu = () => {
|
|
|
10541
10541
|
if (!E || (g = e.event) != null && g.rcbLoadChatHistory && (await d(xe.LOAD_CHAT_HISTORY, {})).defaultPrevented) return;
|
|
10542
10542
|
s(!0);
|
|
10543
10543
|
const T = ((y = u.current) == null ? void 0 : y.scrollHeight) ?? 0;
|
|
10544
|
-
((R, k,
|
|
10545
|
-
var
|
|
10546
|
-
if (kd = !0,
|
|
10547
|
-
const
|
|
10548
|
-
Q([
|
|
10549
|
-
const $ =
|
|
10544
|
+
((R, k, D, Q, B, N, U, H, j) => {
|
|
10545
|
+
var Z;
|
|
10546
|
+
if (kd = !0, D != null) try {
|
|
10547
|
+
const z = _o(X(cp, {}), "SYSTEM"), W = B.current.slice(1);
|
|
10548
|
+
Q([z, ...W]);
|
|
10549
|
+
const $ = D.map((q) => {
|
|
10550
10550
|
if (q.type === "object") {
|
|
10551
10551
|
const ae = Pd(q.content, R, k);
|
|
10552
10552
|
return { ...q, content: ae };
|
|
@@ -10557,14 +10557,14 @@ const Uu = () => {
|
|
|
10557
10557
|
var q;
|
|
10558
10558
|
const ae = B.current.slice(1);
|
|
10559
10559
|
let se = (q = R.chatHistory) != null && q.autoLoad ? _o(X($t, {}), "SYSTEM") : _o(X(lp, {}), "SYSTEM");
|
|
10560
|
-
Q([...$, se, ...ae]),
|
|
10560
|
+
Q([...$, se, ...ae]), j(!0);
|
|
10561
10561
|
}, 500), setTimeout(() => {
|
|
10562
|
-
if (!
|
|
10563
|
-
const { scrollHeight: q } =
|
|
10564
|
-
|
|
10562
|
+
if (!N.current) return;
|
|
10563
|
+
const { scrollHeight: q } = N.current, ae = q - U;
|
|
10564
|
+
N.current.scrollTop += ae, H(!1);
|
|
10565
10565
|
}, 510);
|
|
10566
10566
|
} catch {
|
|
10567
|
-
Qo.removeItem((
|
|
10567
|
+
Qo.removeItem((Z = R.chatHistory) == null ? void 0 : Z.storageKey);
|
|
10568
10568
|
}
|
|
10569
10569
|
})(e, n, E, a, i, u, T, s, A);
|
|
10570
10570
|
}, [e, n, d, i, u, s, A]);
|
|
@@ -10581,7 +10581,7 @@ const Uu = () => {
|
|
|
10581
10581
|
}, className: "rcb-view-history-button", role: "button", tabIndex: 0, children: X("p", { children: (a = i.chatHistory) == null ? void 0 : a.viewChatHistoryButtonText }) }) });
|
|
10582
10582
|
}, Qp = () => {
|
|
10583
10583
|
var e, n, a, i;
|
|
10584
|
-
const o = Gl(), { settings: s } = ze(), { replaceMessages: f } = Pi(), { isBotTyping: A, isChatWindowOpen: u, setUnreadCount: d, setSyncedIsChatWindowOpen: h, setSyncedTextAreaDisabled: g, setSyncedAudioToggledOn: y, setSyncedVoiceToggledOn: E, setSyncedIsScrolling: T, syncedIsScrollingRef: R, syncedIsChatWindowOpenRef: k } = Ot(), { chatBodyRef:
|
|
10584
|
+
const o = Gl(), { settings: s } = ze(), { replaceMessages: f } = Pi(), { isBotTyping: A, isChatWindowOpen: u, setUnreadCount: d, setSyncedIsChatWindowOpen: h, setSyncedTextAreaDisabled: g, setSyncedAudioToggledOn: y, setSyncedVoiceToggledOn: E, setSyncedIsScrolling: T, syncedIsScrollingRef: R, syncedIsChatWindowOpenRef: k } = Ot(), { chatBodyRef: D } = Rt(), { viewportHeight: Q, setViewportHeight: B, setViewportWidth: N, scrollToBottom: U } = Fn(), { setUpNotifications: H } = Nu(), { handleFirstInteraction: j } = (() => {
|
|
10585
10585
|
var $;
|
|
10586
10586
|
const { settings: q } = ze(), { hasInteractedPage: ae, setHasInteractedPage: se, hasFlowStarted: le, setHasFlowStarted: be } = Ot(), ge = Ce(() => {
|
|
10587
10587
|
var me;
|
|
@@ -10592,11 +10592,11 @@ const Uu = () => {
|
|
|
10592
10592
|
}, window.speechSynthesis.speak(_);
|
|
10593
10593
|
}, [le, ($ = q.general) == null ? void 0 : $.flowStartTrigger]);
|
|
10594
10594
|
return { hasInteractedPage: ae, handleFirstInteraction: ge };
|
|
10595
|
-
})(), { showChatHistory:
|
|
10596
|
-
je(() => (window.addEventListener("click",
|
|
10597
|
-
window.removeEventListener("click",
|
|
10595
|
+
})(), { showChatHistory: Z } = Wu(), z = Ke(0), W = Ke(!1);
|
|
10596
|
+
je(() => (window.addEventListener("click", j), window.addEventListener("keydown", j), window.addEventListener("touchstart", j), () => {
|
|
10597
|
+
window.removeEventListener("click", j), window.removeEventListener("keydown", j), window.removeEventListener("touchstart", j);
|
|
10598
10598
|
}), []), je(() => {
|
|
10599
|
-
const $ =
|
|
10599
|
+
const $ = D.current;
|
|
10600
10600
|
if (!$) return;
|
|
10601
10601
|
const q = () => {
|
|
10602
10602
|
W.current || (W.current = !0, requestAnimationFrame(() => {
|
|
@@ -10617,15 +10617,15 @@ const Uu = () => {
|
|
|
10617
10617
|
}, 1);
|
|
10618
10618
|
}, []), je(() => {
|
|
10619
10619
|
var $;
|
|
10620
|
-
($ = s.notification) != null && $.disabled ||
|
|
10620
|
+
($ = s.notification) != null && $.disabled || H();
|
|
10621
10621
|
}, [(e = s.notification) == null ? void 0 : e.disabled]), je(() => {
|
|
10622
|
-
!R.current &&
|
|
10622
|
+
!R.current && D != null && D.current && U();
|
|
10623
10623
|
}, [A]), je(() => {
|
|
10624
10624
|
var $, q;
|
|
10625
10625
|
if (($ = s.chatHistory) != null && $.disabled) Qo && Qo.removeItem(Nl);
|
|
10626
10626
|
else if (yu(s), Hu().length > 0) {
|
|
10627
10627
|
const ae = _o(X(Lp, {}), "SYSTEM");
|
|
10628
|
-
f([ae]), (q = s.chatHistory) != null && q.autoLoad &&
|
|
10628
|
+
f([ae]), (q = s.chatHistory) != null && q.autoLoad && Z();
|
|
10629
10629
|
}
|
|
10630
10630
|
}, [(n = s.chatHistory) == null ? void 0 : n.storageKey, (a = s.chatHistory) == null ? void 0 : a.maxEntries, (i = s.chatHistory) == null ? void 0 : i.disabled]), je(() => {
|
|
10631
10631
|
var $;
|
|
@@ -10646,40 +10646,40 @@ const Uu = () => {
|
|
|
10646
10646
|
}, [o]), je(() => {
|
|
10647
10647
|
var $, q, ae, se;
|
|
10648
10648
|
if (o) return;
|
|
10649
|
-
u && (B(($ = window.visualViewport) == null ? void 0 : $.height),
|
|
10650
|
-
const le = () => window.scrollTo({ top: 0, left: 0, behavior: "auto" }), be = () =>
|
|
10649
|
+
u && (B(($ = window.visualViewport) == null ? void 0 : $.height), N((q = window.visualViewport) == null ? void 0 : q.width));
|
|
10650
|
+
const le = () => window.scrollTo({ top: 0, left: 0, behavior: "auto" }), be = () => z.current = window.scrollY, ge = () => {
|
|
10651
10651
|
var _, Be;
|
|
10652
|
-
B((_ = window.visualViewport) == null ? void 0 : _.height),
|
|
10652
|
+
B((_ = window.visualViewport) == null ? void 0 : _.height), N((Be = window.visualViewport) == null ? void 0 : Be.width);
|
|
10653
10653
|
}, me = () => {
|
|
10654
10654
|
var _;
|
|
10655
10655
|
window.removeEventListener("scroll", le), window.removeEventListener("scroll", be), (_ = window.visualViewport) == null || _.removeEventListener("resize", ge);
|
|
10656
10656
|
};
|
|
10657
|
-
return u ? (me(), document.body.style.position = "fixed", window.addEventListener("scroll", le), (ae = window.visualViewport) == null || ae.addEventListener("resize", ge)) : (document.body.style.position = "static", me(), window.scrollTo({ top:
|
|
10657
|
+
return u ? (me(), document.body.style.position = "fixed", window.addEventListener("scroll", le), (ae = window.visualViewport) == null || ae.addEventListener("resize", ge)) : (document.body.style.position = "static", me(), window.scrollTo({ top: z.current, left: 0, behavior: "auto" }), window.addEventListener("scroll", be), (se = window.visualViewport) == null || se.removeEventListener("resize", ge)), me;
|
|
10658
10658
|
}, [u, o]);
|
|
10659
10659
|
}, Fp = "https://cdn.jsdelivr.net/gh/react-chatbotify/community-themes/themes", Hp = "2592000", AA = "RCB_THEME_CACHE_DATA", dA = async (e, n) => {
|
|
10660
|
-
const { id: a, version: i, baseUrl: o = Fp, cacheDuration: s = Hp } = n, f = i || await (async (
|
|
10661
|
-
const B = `${Q}/${
|
|
10660
|
+
const { id: a, version: i, baseUrl: o = Fp, cacheDuration: s = Hp } = n, f = i || await (async (D, Q) => {
|
|
10661
|
+
const B = `${Q}/${D}/meta.json`;
|
|
10662
10662
|
try {
|
|
10663
|
-
const
|
|
10664
|
-
return
|
|
10665
|
-
} catch (
|
|
10666
|
-
return console.error(`Failed to fetch meta.json from ${B}`,
|
|
10663
|
+
const N = await fetch(B);
|
|
10664
|
+
return N.ok ? (await N.json()).version : (console.error(`Failed to fetch meta.json from ${B}`), null);
|
|
10665
|
+
} catch (N) {
|
|
10666
|
+
return console.error(`Failed to fetch meta.json from ${B}`, N), null;
|
|
10667
10667
|
}
|
|
10668
10668
|
})(a, o);
|
|
10669
10669
|
if (!f) return console.error(`Unable to find version for theme: ${a}`), { settings: {}, inlineStyles: {}, cssStylesText: "" };
|
|
10670
|
-
const A = ((
|
|
10671
|
-
const
|
|
10672
|
-
if (!
|
|
10670
|
+
const A = ((D, Q, B) => {
|
|
10671
|
+
const N = localStorage.getItem(`${AA}_${D}_${Q}`);
|
|
10672
|
+
if (!N) return null;
|
|
10673
10673
|
try {
|
|
10674
|
-
const U = JSON.parse(
|
|
10675
|
-
return U.cacheDate + B >=
|
|
10674
|
+
const U = JSON.parse(N), H = (/* @__PURE__ */ new Date()).getTime(), j = Math.floor(H / 1e3);
|
|
10675
|
+
return U.cacheDate + B >= j ? U : null;
|
|
10676
10676
|
} catch (U) {
|
|
10677
|
-
return console.error(`Unable to fetch cache for ${
|
|
10677
|
+
return console.error(`Unable to fetch cache for ${D}`, U), null;
|
|
10678
10678
|
}
|
|
10679
10679
|
})(a, f, s);
|
|
10680
10680
|
if (A) {
|
|
10681
|
-
const
|
|
10682
|
-
return { settings: A.settings, inlineStyles: A.inlineStyles, cssStylesText:
|
|
10681
|
+
const D = fA(e, A.cssStylesText);
|
|
10682
|
+
return { settings: A.settings, inlineStyles: A.inlineStyles, cssStylesText: D };
|
|
10683
10683
|
}
|
|
10684
10684
|
const u = `${o}/${a}/${f}/styles.css`, d = `${o}/${a}/${f}/settings.json`, h = `${o}/${a}/${f}/styles.json`;
|
|
10685
10685
|
let g = "";
|
|
@@ -10690,9 +10690,9 @@ const Uu = () => {
|
|
|
10690
10690
|
E.ok ? T = await E.json() : console.info(`Could not fetch settings.json from ${d}`);
|
|
10691
10691
|
const R = await fetch(h);
|
|
10692
10692
|
let k = {};
|
|
10693
|
-
return R.ok ? k = await R.json() : console.info(`Could not fetch styles.json from ${h}`), ((
|
|
10694
|
-
const
|
|
10695
|
-
localStorage.setItem(`${AA}_${
|
|
10693
|
+
return R.ok ? k = await R.json() : console.info(`Could not fetch styles.json from ${h}`), ((D, Q, B, N, U) => {
|
|
10694
|
+
const H = (/* @__PURE__ */ new Date()).getTime(), j = { settings: B, inlineStyles: N, cssStylesText: U, cacheDate: Math.floor(H / 1e3) };
|
|
10695
|
+
localStorage.setItem(`${AA}_${D}_${Q}`, JSON.stringify(j));
|
|
10696
10696
|
})(a, f, T, k, g), { settings: T, inlineStyles: k, cssStylesText: fA(e, g) };
|
|
10697
10697
|
}, fA = (e, n) => n.split(new RegExp("(?<=})")).map((a) => {
|
|
10698
10698
|
const i = a.trim();
|
|
@@ -10765,18 +10765,18 @@ const Uu = () => {
|
|
|
10765
10765
|
var a, i;
|
|
10766
10766
|
const o = Gl(), { settings: s } = ze(), { styles: f } = st(), { hasFlowStarted: A, setHasFlowStarted: u } = Ot(), { inputRef: d } = Rt(), { viewportHeight: h, viewportWidth: g, isChatWindowOpen: y } = Fn(), { goToPath: E } = Yl(), { headerButtons: T, chatInputButtons: R, footerButtons: k } = _p();
|
|
10767
10767
|
Qp(), ((Q) => {
|
|
10768
|
-
const { updateSettings: B } = Md(), { updateStyles:
|
|
10768
|
+
const { updateSettings: B } = Md(), { updateStyles: N } = Od(), U = Q == null ? void 0 : Q.map((H) => H());
|
|
10769
10769
|
je(() => {
|
|
10770
|
-
let
|
|
10771
|
-
U == null || U.forEach((
|
|
10772
|
-
|
|
10773
|
-
}), B(
|
|
10770
|
+
let H = {}, j = {};
|
|
10771
|
+
U == null || U.forEach((Z) => {
|
|
10772
|
+
Z != null && Z.settings && Object.keys(Z == null ? void 0 : Z.settings).length !== 0 && (H = Br(Z.settings, H)), Z != null && Z.styles && Object.keys(Z == null ? void 0 : Z.styles).length !== 0 && (j = Br(Z.styles, j));
|
|
10773
|
+
}), B(H), N(j);
|
|
10774
10774
|
}, []);
|
|
10775
10775
|
})(e), je(() => {
|
|
10776
10776
|
var Q;
|
|
10777
10777
|
(A || ((Q = s.general) == null ? void 0 : Q.flowStartTrigger) === "ON_LOAD") && E("start");
|
|
10778
10778
|
}, [A, (a = s.general) == null ? void 0 : a.flowStartTrigger]);
|
|
10779
|
-
const
|
|
10779
|
+
const D = nn(() => {
|
|
10780
10780
|
var Q;
|
|
10781
10781
|
const B = "rcb-chatbot-global ";
|
|
10782
10782
|
return (Q = s.general) != null && Q.embedded ? B + "rcb-window-embedded" : y ? B + "rcb-window-open" : B + "rcb-window-close";
|
|
@@ -10785,9 +10785,9 @@ const Uu = () => {
|
|
|
10785
10785
|
var Q, B;
|
|
10786
10786
|
return o && ((Q = s.device) == null ? void 0 : Q.desktopEnabled) || !o && ((B = s.device) == null ? void 0 : B.mobileEnabled);
|
|
10787
10787
|
})() && dt("div", { onMouseDown: (Q) => {
|
|
10788
|
-
var B,
|
|
10789
|
-
!A && ((B = s.general) == null ? void 0 : B.flowStartTrigger) === "ON_CHATBOT_INTERACT" && u(!0), o ? (
|
|
10790
|
-
}, className:
|
|
10788
|
+
var B, N;
|
|
10789
|
+
!A && ((B = s.general) == null ? void 0 : B.flowStartTrigger) === "ON_CHATBOT_INTERACT" && u(!0), o ? (N = d.current) == null || N.blur() : Q == null || Q.preventDefault();
|
|
10790
|
+
}, className: D, children: [X(kp, {}), X(Sp, {}), y && !o && !((i = s.general) != null && i.embedded) && dt($t, { children: [X("style", { children: `
|
|
10791
10791
|
html {
|
|
10792
10792
|
overflow: hidden !important;
|
|
10793
10793
|
touch-action: none !important;
|
|
@@ -10797,19 +10797,19 @@ const Uu = () => {
|
|
|
10797
10797
|
var Q, B;
|
|
10798
10798
|
return o || (Q = s.general) != null && Q.embedded ? (B = s.general) != null && B.embedded ? { ...f.chatWindowStyle } : { ...f.chatWindowStyle, zIndex: 1e4 } : { ...f.chatWindowStyle, borderRadius: "0px", left: "0px", right: "auto", top: "0px", bottom: "auto", width: `${g}px`, height: `${h}px`, zIndex: 1e4 };
|
|
10799
10799
|
})(), className: "rcb-chat-window", children: (() => {
|
|
10800
|
-
var Q, B,
|
|
10801
|
-
const U = (n == null ? void 0 : n.chatBotHeader) || zf,
|
|
10802
|
-
return dt($t, { children: [((Q = s.general) == null ? void 0 : Q.showHeader) && X(U, { buttons: T }), X(
|
|
10800
|
+
var Q, B, N;
|
|
10801
|
+
const U = (n == null ? void 0 : n.chatBotHeader) || zf, H = (n == null ? void 0 : n.chatBotBody) || $f, j = (n == null ? void 0 : n.chatBotInput) || wp, Z = (n == null ? void 0 : n.chatBotFooter) || xp;
|
|
10802
|
+
return dt($t, { children: [((Q = s.general) == null ? void 0 : Q.showHeader) && X(U, { buttons: T }), X(H, {}), X(Cp, {}), ((B = s.general) == null ? void 0 : B.showInputRow) && X(j, { buttons: R }), ((N = s.general) == null ? void 0 : N.showFooter) && X(Z, { buttons: k })] });
|
|
10803
10803
|
})() })] }) });
|
|
10804
10804
|
}, _d = Lr(void 0), Ld = () => Qr(_d), Qd = ({ children: e }) => {
|
|
10805
10805
|
var n;
|
|
10806
10806
|
const a = Ke(""), i = Ke({}), [o, s, f] = Ln({}), [A, u, d] = Ln({}), [h, g] = Ue(!1);
|
|
10807
10807
|
return je(() => {
|
|
10808
10808
|
g(!0);
|
|
10809
|
-
}, []), h ? X("div", { style: { fontFamily: (n = o.general) == null ? void 0 : n.fontFamily }, children: X(_d.Provider, { value: { loadConfig: async (y, E, T, R, k,
|
|
10809
|
+
}, []), h ? X("div", { style: { fontFamily: (n = o.general) == null ? void 0 : n.fontFamily }, children: X(_d.Provider, { value: { loadConfig: async (y, E, T, R, k, D) => {
|
|
10810
10810
|
a.current = y, i.current = E;
|
|
10811
10811
|
const Q = await Np(y, T, R, k);
|
|
10812
|
-
|
|
10812
|
+
D.current && (D.current.textContent = Q.cssStylesText), s(Q.settings), u(Q.inlineStyles);
|
|
10813
10813
|
} }, children: X(Nf, { settings: o, setSyncedSettings: s, syncedSettingsRef: f, children: X(Uf, { styles: A, setSyncedStyles: u, syncedStylesRef: d, children: X(bp, { children: X(jf, { botIdRef: a, flowRef: i, children: X(Gf, { children: X(Wf, { settings: o, children: X(Xf, { children: e }) }) }) }) }) }) }) }) }) : null;
|
|
10814
10814
|
}, zp = ({ id: e, flow: n, settings: a, styles: i, themes: o, plugins: s, setConfigLoaded: f, styleRootRef: A }) => {
|
|
10815
10815
|
const u = nn(() => e, []), d = Ld(), { flowRef: h } = Rt();
|
|
@@ -10844,9 +10844,9 @@ const Uu = () => {
|
|
|
10844
10844
|
window.open(n);
|
|
10845
10845
|
}, 1e3), "repeat";
|
|
10846
10846
|
} }, repeat: { transition: { duration: 3e3 }, path: "prompt_again" } }, Wp = ({ id: e, flow: n, settings: a, styles: i, themes: o, plugins: s, slots: f }) => {
|
|
10847
|
-
const A = nn(() => e || "rcb-" + Hl(), []), u = n && Object.keys(n).length !== 0 ? n : jp, d = a || {}, h = i || {}, g = s || [], [y, E] = Ue(!1), T = Ld(), R = Ke(null), [k,
|
|
10847
|
+
const A = nn(() => e || "rcb-" + Hl(), []), u = n && Object.keys(n).length !== 0 ? n : jp, d = a || {}, h = i || {}, g = s || [], [y, E] = Ue(!1), T = Ld(), R = Ke(null), [k, D] = Ue(o || []);
|
|
10848
10848
|
je(() => {
|
|
10849
|
-
o &&
|
|
10849
|
+
o && D(o);
|
|
10850
10850
|
}, [o]);
|
|
10851
10851
|
const Q = () => dt($t, { children: [X(zp, { styleRootRef: R, id: A, flow: u, settings: d, styles: h, themes: k, plugins: g, setConfigLoaded: E }), y && X(Up, { plugins: s, slots: f })] });
|
|
10852
10852
|
return dt(T == null ? Qd : $t, { children: [X("style", { ref: R }), X("div", { id: A, children: Q() })] });
|
|
@@ -10994,8 +10994,8 @@ let zd = class {
|
|
|
10994
10994
|
if (i[A.inverseName] || !this.isTagAllowed(u) || !this.canRenderChild(n, d)) return;
|
|
10995
10995
|
let h = "";
|
|
10996
10996
|
for (; o && (f = A.match(o)); ) {
|
|
10997
|
-
const { index: g, length: y, match: E, valid: T, void: R, ...k } = f,
|
|
10998
|
-
g > 0 && (h += o.slice(0, g)), T ? (h += R ? `{{{${
|
|
10997
|
+
const { index: g, length: y, match: E, valid: T, void: R, ...k } = f, D = A.propName + String(s);
|
|
10998
|
+
g > 0 && (h += o.slice(0, g)), T ? (h += R ? `{{{${D}/}}}` : `{{{${D}}}}${E}{{{/${D}}}}`, this.keyIndex += 1, s += 1, a[D] = { children: E, matcher: A, props: { ...i, ...k, key: this.keyIndex } }) : h += E, A.greedy ? (o = h + o.slice(g + y), h = "") : o = o.slice(g + (y || E.length));
|
|
10999
10999
|
}
|
|
11000
11000
|
A.greedy || (o = h + o);
|
|
11001
11001
|
}), s === 0 ? e : this.replaceTokens(o, a);
|
|
@@ -11125,20 +11125,20 @@ function oh(e) {
|
|
|
11125
11125
|
return y || (y = f), g ? Ae.createElement(Ae.Fragment, null, y) : Ae.createElement(Ud, { attributes: a, className: i, tagName: h }, y);
|
|
11126
11126
|
}
|
|
11127
11127
|
function ih(e) {
|
|
11128
|
-
const { attributes: n, className: a, content: i = "", disableFilters: o = !1, disableMatchers: s = !1, emptyContent: f = null, filters: A = [], matchers: u = [], onAfterParse: d = null, onBeforeParse: h = null, tagName: g = "span", noWrap: y = !1, ...E } = e, T = s ? [] : u, R = o ? [] : A, k = h ? [h] : [],
|
|
11128
|
+
const { attributes: n, className: a, content: i = "", disableFilters: o = !1, disableMatchers: s = !1, emptyContent: f = null, filters: A = [], matchers: u = [], onAfterParse: d = null, onBeforeParse: h = null, tagName: g = "span", noWrap: y = !1, ...E } = e, T = s ? [] : u, R = o ? [] : A, k = h ? [h] : [], D = d ? [d] : [];
|
|
11129
11129
|
T.forEach((U) => {
|
|
11130
|
-
U.onBeforeParse && k.push(U.onBeforeParse.bind(U)), U.onAfterParse &&
|
|
11130
|
+
U.onBeforeParse && k.push(U.onBeforeParse.bind(U)), U.onAfterParse && D.push(U.onAfterParse.bind(U));
|
|
11131
11131
|
});
|
|
11132
|
-
const Q = k.reduce((U,
|
|
11133
|
-
const
|
|
11134
|
-
if (process.env.NODE_ENV !== "production" && typeof
|
|
11135
|
-
return
|
|
11136
|
-
}, i ?? ""), B = new zd(Q, E, T, R),
|
|
11137
|
-
const
|
|
11138
|
-
if (process.env.NODE_ENV !== "production" && !Array.isArray(
|
|
11139
|
-
return
|
|
11132
|
+
const Q = k.reduce((U, H) => {
|
|
11133
|
+
const j = H(U, e);
|
|
11134
|
+
if (process.env.NODE_ENV !== "production" && typeof j != "string") throw new TypeError("Interweave `onBeforeParse` must return a valid HTML string.");
|
|
11135
|
+
return j;
|
|
11136
|
+
}, i ?? ""), B = new zd(Q, E, T, R), N = D.reduce((U, H) => {
|
|
11137
|
+
const j = H(U, e);
|
|
11138
|
+
if (process.env.NODE_ENV !== "production" && !Array.isArray(j)) throw new TypeError("Interweave `onAfterParse` must return an array of strings and React elements.");
|
|
11139
|
+
return j;
|
|
11140
11140
|
}, B.parse());
|
|
11141
|
-
return Ae.createElement(oh, { attributes: n, className: a, containerTagName: e.containerTagName, emptyContent: f, noWrap: y, parsedContent:
|
|
11141
|
+
return Ae.createElement(oh, { attributes: n, className: a, containerTagName: e.containerTagName, emptyContent: f, noWrap: y, parsedContent: N.length === 0 ? void 0 : N, tagName: g });
|
|
11142
11142
|
}
|
|
11143
11143
|
const ah = ({ children: e }) => X("div", { style: { whiteSpace: "normal" }, children: X(ih, { content: typeof e == "string" ? e : "" }) }), sh = { autoConfig: !0 }, mA = (e, n, a) => {
|
|
11144
11144
|
var i;
|
|
@@ -11281,61 +11281,61 @@ var tu, xA, SA, Ta = {}, kh = function() {
|
|
|
11281
11281
|
if (!y) return [];
|
|
11282
11282
|
E = E || {};
|
|
11283
11283
|
var T = 1, R = 1;
|
|
11284
|
-
function k(
|
|
11285
|
-
var W =
|
|
11284
|
+
function k(z) {
|
|
11285
|
+
var W = z.match(i);
|
|
11286
11286
|
W && (T += W.length);
|
|
11287
|
-
var $ =
|
|
11287
|
+
var $ = z.lastIndexOf(`
|
|
11288
11288
|
`);
|
|
11289
|
-
R = ~$ ?
|
|
11289
|
+
R = ~$ ? z.length - $ : R + z.length;
|
|
11290
11290
|
}
|
|
11291
|
-
function
|
|
11292
|
-
var
|
|
11291
|
+
function D() {
|
|
11292
|
+
var z = { line: T, column: R };
|
|
11293
11293
|
return function(W) {
|
|
11294
|
-
return W.position = new Q(
|
|
11294
|
+
return W.position = new Q(z), U(), W;
|
|
11295
11295
|
};
|
|
11296
11296
|
}
|
|
11297
|
-
function Q(
|
|
11298
|
-
this.start =
|
|
11297
|
+
function Q(z) {
|
|
11298
|
+
this.start = z, this.end = { line: T, column: R }, this.source = E.source;
|
|
11299
11299
|
}
|
|
11300
|
-
function B(
|
|
11301
|
-
var W = new Error(E.source + ":" + T + ":" + R + ": " +
|
|
11302
|
-
if (W.reason =
|
|
11300
|
+
function B(z) {
|
|
11301
|
+
var W = new Error(E.source + ":" + T + ":" + R + ": " + z);
|
|
11302
|
+
if (W.reason = z, W.filename = E.source, W.line = T, W.column = R, W.source = y, !E.silent) throw W;
|
|
11303
11303
|
}
|
|
11304
|
-
function
|
|
11305
|
-
var W =
|
|
11304
|
+
function N(z) {
|
|
11305
|
+
var W = z.exec(y);
|
|
11306
11306
|
if (W) {
|
|
11307
11307
|
var $ = W[0];
|
|
11308
11308
|
return k($), y = y.slice($.length), W;
|
|
11309
11309
|
}
|
|
11310
11310
|
}
|
|
11311
11311
|
function U() {
|
|
11312
|
-
|
|
11312
|
+
N(o);
|
|
11313
11313
|
}
|
|
11314
|
-
function
|
|
11314
|
+
function H(z) {
|
|
11315
11315
|
var W;
|
|
11316
|
-
for (
|
|
11317
|
-
return
|
|
11316
|
+
for (z = z || []; W = j(); ) W !== !1 && z.push(W);
|
|
11317
|
+
return z;
|
|
11318
11318
|
}
|
|
11319
|
-
function
|
|
11320
|
-
var
|
|
11319
|
+
function j() {
|
|
11320
|
+
var z = D();
|
|
11321
11321
|
if (y.charAt(0) == "/" && y.charAt(1) == "*") {
|
|
11322
11322
|
for (var W = 2; h != y.charAt(W) && (y.charAt(W) != "*" || y.charAt(W + 1) != "/"); ) ++W;
|
|
11323
11323
|
if (W += 2, h === y.charAt(W - 1)) return B("End of comment missing");
|
|
11324
11324
|
var $ = y.slice(2, W - 2);
|
|
11325
|
-
return R += 2, k($), y = y.slice(W), R += 2,
|
|
11325
|
+
return R += 2, k($), y = y.slice(W), R += 2, z({ type: "comment", comment: $ });
|
|
11326
11326
|
}
|
|
11327
11327
|
}
|
|
11328
|
-
function
|
|
11329
|
-
var
|
|
11328
|
+
function Z() {
|
|
11329
|
+
var z = D(), W = N(s);
|
|
11330
11330
|
if (W) {
|
|
11331
|
-
if (
|
|
11332
|
-
var $ =
|
|
11333
|
-
return
|
|
11331
|
+
if (j(), !N(f)) return B("property missing ':'");
|
|
11332
|
+
var $ = N(A), q = z({ type: "declaration", property: g(W[0].replace(a, h)), value: $ ? g($[0].replace(a, h)) : h });
|
|
11333
|
+
return N(u), q;
|
|
11334
11334
|
}
|
|
11335
11335
|
}
|
|
11336
11336
|
return Q.prototype.content = y, U(), function() {
|
|
11337
|
-
var
|
|
11338
|
-
for (
|
|
11337
|
+
var z, W = [];
|
|
11338
|
+
for (H(W); z = Z(); ) z !== !1 && (W.push(z), H(W));
|
|
11339
11339
|
return W;
|
|
11340
11340
|
}();
|
|
11341
11341
|
}, tu;
|
|
@@ -11417,8 +11417,8 @@ function tf(e, n, a) {
|
|
|
11417
11417
|
for (R in y.properties) if (R !== "children" && Vu.call(y.properties, R)) {
|
|
11418
11418
|
const k = Rh(g, R, y.properties[R]);
|
|
11419
11419
|
if (k) {
|
|
11420
|
-
const [
|
|
11421
|
-
g.tableCellAlignToStyle &&
|
|
11420
|
+
const [D, Q] = k;
|
|
11421
|
+
g.tableCellAlignToStyle && D === "align" && typeof Q == "string" && Ih.has(y.tagName) ? T = Q : E[D] = Q;
|
|
11422
11422
|
}
|
|
11423
11423
|
}
|
|
11424
11424
|
return T && ((E.style || (E.style = {}))[g.stylePropertyNameCase === "css" ? "text-align" : "textAlign"] = T), E;
|
|
@@ -11446,15 +11446,15 @@ function tf(e, n, a) {
|
|
|
11446
11446
|
R.type;
|
|
11447
11447
|
const k = R.expression;
|
|
11448
11448
|
k.type;
|
|
11449
|
-
const
|
|
11450
|
-
|
|
11449
|
+
const D = k.properties[0];
|
|
11450
|
+
D.type, Object.assign(E, g.evaluater.evaluateExpression(D.argument));
|
|
11451
11451
|
} else Bs(g, y.position);
|
|
11452
11452
|
else {
|
|
11453
11453
|
const R = T.name;
|
|
11454
11454
|
let k;
|
|
11455
11455
|
if (T.value && typeof T.value == "object") if (T.value.data && T.value.data.estree && g.evaluater) {
|
|
11456
|
-
const
|
|
11457
|
-
|
|
11456
|
+
const D = T.value.data.estree.body[0];
|
|
11457
|
+
D.type, k = g.evaluater.evaluateExpression(D.expression);
|
|
11458
11458
|
} else Bs(g, y.position);
|
|
11459
11459
|
else k = T.value === null || T.value;
|
|
11460
11460
|
E[R] = k;
|
|
@@ -11718,24 +11718,24 @@ const Wh = { tokenize: function(e) {
|
|
|
11718
11718
|
return A;
|
|
11719
11719
|
function A(B) {
|
|
11720
11720
|
if (f < a.length) {
|
|
11721
|
-
const
|
|
11722
|
-
return n.containerState =
|
|
11721
|
+
const N = a[f];
|
|
11722
|
+
return n.containerState = N[1], e.attempt(N[0].continuation, u, d)(B);
|
|
11723
11723
|
}
|
|
11724
11724
|
return d(B);
|
|
11725
11725
|
}
|
|
11726
11726
|
function u(B) {
|
|
11727
11727
|
if (f++, n.containerState._closeFlow) {
|
|
11728
11728
|
n.containerState._closeFlow = void 0, i && Q();
|
|
11729
|
-
const
|
|
11730
|
-
let U,
|
|
11731
|
-
for (;
|
|
11732
|
-
U = n.events[
|
|
11729
|
+
const N = n.events.length;
|
|
11730
|
+
let U, H = N;
|
|
11731
|
+
for (; H--; ) if (n.events[H][0] === "exit" && n.events[H][1].type === "chunkFlow") {
|
|
11732
|
+
U = n.events[H][1].end;
|
|
11733
11733
|
break;
|
|
11734
11734
|
}
|
|
11735
|
-
|
|
11736
|
-
let
|
|
11737
|
-
for (;
|
|
11738
|
-
return _r(n.events,
|
|
11735
|
+
D(f);
|
|
11736
|
+
let j = N;
|
|
11737
|
+
for (; j < n.events.length; ) n.events[j][1].end = { ...U }, j++;
|
|
11738
|
+
return _r(n.events, H + 1, 0, n.events.slice(N)), n.events.length = j, d(B);
|
|
11739
11739
|
}
|
|
11740
11740
|
return A(B);
|
|
11741
11741
|
}
|
|
@@ -11748,7 +11748,7 @@ const Wh = { tokenize: function(e) {
|
|
|
11748
11748
|
return n.containerState = {}, e.check(RA, h, g)(B);
|
|
11749
11749
|
}
|
|
11750
11750
|
function h(B) {
|
|
11751
|
-
return i && Q(),
|
|
11751
|
+
return i && Q(), D(f), y(B);
|
|
11752
11752
|
}
|
|
11753
11753
|
function g(B) {
|
|
11754
11754
|
return n.parser.lazy[n.now().line] = f !== a.length, s = n.now().offset, T(B);
|
|
@@ -11760,33 +11760,33 @@ const Wh = { tokenize: function(e) {
|
|
|
11760
11760
|
return f++, a.push([n.currentConstruct, n.containerState]), y(B);
|
|
11761
11761
|
}
|
|
11762
11762
|
function T(B) {
|
|
11763
|
-
return B === null ? (i && Q(),
|
|
11763
|
+
return B === null ? (i && Q(), D(0), void e.consume(B)) : (i = i || n.parser.flow(n.now()), e.enter("chunkFlow", { _tokenizer: i, contentType: "flow", previous: o }), R(B));
|
|
11764
11764
|
}
|
|
11765
11765
|
function R(B) {
|
|
11766
|
-
return B === null ? (k(e.exit("chunkFlow"), !0),
|
|
11766
|
+
return B === null ? (k(e.exit("chunkFlow"), !0), D(0), void e.consume(B)) : Me(B) ? (e.consume(B), k(e.exit("chunkFlow")), f = 0, n.interrupt = void 0, A) : (e.consume(B), R);
|
|
11767
11767
|
}
|
|
11768
|
-
function k(B,
|
|
11768
|
+
function k(B, N) {
|
|
11769
11769
|
const U = n.sliceStream(B);
|
|
11770
|
-
if (
|
|
11771
|
-
let
|
|
11772
|
-
for (;
|
|
11773
|
-
const
|
|
11774
|
-
let
|
|
11770
|
+
if (N && U.push(null), B.previous = o, o && (o.next = B), o = B, i.defineSkip(B.start), i.write(U), n.parser.lazy[B.start.line]) {
|
|
11771
|
+
let H = i.events.length;
|
|
11772
|
+
for (; H--; ) if (i.events[H][1].start.offset < s && (!i.events[H][1].end || i.events[H][1].end.offset > s)) return;
|
|
11773
|
+
const j = n.events.length;
|
|
11774
|
+
let Z, z, W = j;
|
|
11775
11775
|
for (; W--; ) if (n.events[W][0] === "exit" && n.events[W][1].type === "chunkFlow") {
|
|
11776
|
-
if (
|
|
11777
|
-
|
|
11776
|
+
if (Z) {
|
|
11777
|
+
z = n.events[W][1].end;
|
|
11778
11778
|
break;
|
|
11779
11779
|
}
|
|
11780
|
-
|
|
11780
|
+
Z = !0;
|
|
11781
11781
|
}
|
|
11782
|
-
for (
|
|
11783
|
-
_r(n.events, W + 1, 0, n.events.slice(
|
|
11782
|
+
for (D(f), H = j; H < n.events.length; ) n.events[H][1].end = { ...z }, H++;
|
|
11783
|
+
_r(n.events, W + 1, 0, n.events.slice(j)), n.events.length = H;
|
|
11784
11784
|
}
|
|
11785
11785
|
}
|
|
11786
|
-
function
|
|
11787
|
-
let
|
|
11788
|
-
for (;
|
|
11789
|
-
const U = a[
|
|
11786
|
+
function D(B) {
|
|
11787
|
+
let N = a.length;
|
|
11788
|
+
for (; N-- > B; ) {
|
|
11789
|
+
const U = a[N];
|
|
11790
11790
|
n.containerState = U[1], U[0].exit.call(n, e);
|
|
11791
11791
|
}
|
|
11792
11792
|
a.length = B;
|
|
@@ -11934,30 +11934,30 @@ const Gh = { name: "autolink", tokenize: function(e, n, a) {
|
|
|
11934
11934
|
return i.parser.lazy[i.now().line] ? a(s) : n(s);
|
|
11935
11935
|
}
|
|
11936
11936
|
} }, LA = { concrete: !0, name: "codeFenced", tokenize: function(e, n, a) {
|
|
11937
|
-
const i = this, o = { partial: !0, tokenize: function(B,
|
|
11938
|
-
let
|
|
11939
|
-
return
|
|
11940
|
-
function
|
|
11941
|
-
return B.enter("lineEnding"), B.consume(q), B.exit("lineEnding"),
|
|
11937
|
+
const i = this, o = { partial: !0, tokenize: function(B, N, U) {
|
|
11938
|
+
let H = 0;
|
|
11939
|
+
return j;
|
|
11940
|
+
function j(q) {
|
|
11941
|
+
return B.enter("lineEnding"), B.consume(q), B.exit("lineEnding"), Z;
|
|
11942
11942
|
}
|
|
11943
|
-
function
|
|
11944
|
-
return B.enter("codeFencedFence"), $e(q) ? gt(B,
|
|
11943
|
+
function Z(q) {
|
|
11944
|
+
return B.enter("codeFencedFence"), $e(q) ? gt(B, z, "linePrefix", i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(q) : z(q);
|
|
11945
11945
|
}
|
|
11946
|
-
function
|
|
11946
|
+
function z(q) {
|
|
11947
11947
|
return q === s ? (B.enter("codeFencedFenceSequence"), W(q)) : U(q);
|
|
11948
11948
|
}
|
|
11949
11949
|
function W(q) {
|
|
11950
|
-
return q === s ? (
|
|
11950
|
+
return q === s ? (H++, B.consume(q), W) : H >= A ? (B.exit("codeFencedFenceSequence"), $e(q) ? gt(B, $, "whitespace")(q) : $(q)) : U(q);
|
|
11951
11951
|
}
|
|
11952
11952
|
function $(q) {
|
|
11953
|
-
return q === null || Me(q) ? (B.exit("codeFencedFence"),
|
|
11953
|
+
return q === null || Me(q) ? (B.exit("codeFencedFence"), N(q)) : U(q);
|
|
11954
11954
|
}
|
|
11955
11955
|
} };
|
|
11956
11956
|
let s, f = 0, A = 0;
|
|
11957
11957
|
return function(B) {
|
|
11958
|
-
return function(
|
|
11958
|
+
return function(N) {
|
|
11959
11959
|
const U = i.events[i.events.length - 1];
|
|
11960
|
-
return f = U && U[1].type === "linePrefix" ? U[2].sliceSerialize(U[1], !0).length : 0, s =
|
|
11960
|
+
return f = U && U[1].type === "linePrefix" ? U[2].sliceSerialize(U[1], !0).length : 0, s = N, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), u(N);
|
|
11961
11961
|
}(B);
|
|
11962
11962
|
};
|
|
11963
11963
|
function u(B) {
|
|
@@ -11985,10 +11985,10 @@ const Gh = { name: "autolink", tokenize: function(e, n, a) {
|
|
|
11985
11985
|
return f > 0 && $e(B) ? gt(e, k, "linePrefix", f + 1)(B) : k(B);
|
|
11986
11986
|
}
|
|
11987
11987
|
function k(B) {
|
|
11988
|
-
return B === null || Me(B) ? e.check(_A, E, Q)(B) : (e.enter("codeFlowValue"),
|
|
11988
|
+
return B === null || Me(B) ? e.check(_A, E, Q)(B) : (e.enter("codeFlowValue"), D(B));
|
|
11989
11989
|
}
|
|
11990
|
-
function
|
|
11991
|
-
return B === null || Me(B) ? (e.exit("codeFlowValue"), k(B)) : (e.consume(B),
|
|
11990
|
+
function D(B) {
|
|
11991
|
+
return B === null || Me(B) ? (e.exit("codeFlowValue"), k(B)) : (e.consume(B), D);
|
|
11992
11992
|
}
|
|
11993
11993
|
function Q(B) {
|
|
11994
11994
|
return e.exit("codeFenced"), n(B);
|
|
@@ -12133,8 +12133,8 @@ function Kh(e, n) {
|
|
|
12133
12133
|
}
|
|
12134
12134
|
for (E = a; ++y < A.length; ) A[y][0] === "exit" && A[y - 1][0] === "enter" && A[y][1].type === A[y - 1][1].type && A[y][1].start.line !== A[y][1].end.line && (R = y + 1, k.push(R), E._tokenizer = void 0, E.previous = void 0, E = E.next);
|
|
12135
12135
|
for (f.events = [], E ? (E._tokenizer = void 0, E.previous = void 0) : k.pop(), y = k.length; y--; ) {
|
|
12136
|
-
const
|
|
12137
|
-
u.push([Q, Q +
|
|
12136
|
+
const D = A.slice(k[y], k[y + 1]), Q = s.pop();
|
|
12137
|
+
u.push([Q, Q + D.length - 1]), e.splice(Q, 2, D);
|
|
12138
12138
|
}
|
|
12139
12139
|
for (u.reverse(), y = -1; ++y < u.length; ) d[T + u[y][0]] = T + u[y][1], T += u[y][1] - u[y][0] - 1;
|
|
12140
12140
|
return d;
|
|
@@ -12326,7 +12326,7 @@ const Zh = { name: "definition", tokenize: function(e, n, a) {
|
|
|
12326
12326
|
function T(L) {
|
|
12327
12327
|
if (L === null || L === 47 || L === 62 || En(L)) {
|
|
12328
12328
|
const ve = L === 47, fe = f.toLowerCase();
|
|
12329
|
-
return ve || s || !QA.includes(fe) ? rg.includes(f.toLowerCase()) ? (o = 6, ve ? (e.consume(L), R) : i.interrupt ? n(L) : W(L)) : (o = 7, i.interrupt && !i.parser.lazy[i.now().line] ? a(L) : s ? k(L) :
|
|
12329
|
+
return ve || s || !QA.includes(fe) ? rg.includes(f.toLowerCase()) ? (o = 6, ve ? (e.consume(L), R) : i.interrupt ? n(L) : W(L)) : (o = 7, i.interrupt && !i.parser.lazy[i.now().line] ? a(L) : s ? k(L) : D(L)) : (o = 1, i.interrupt ? n(L) : W(L));
|
|
12330
12330
|
}
|
|
12331
12331
|
return L === 45 || Qn(L) ? (e.consume(L), f += String.fromCharCode(L), T) : a(L);
|
|
12332
12332
|
}
|
|
@@ -12334,34 +12334,34 @@ const Zh = { name: "definition", tokenize: function(e, n, a) {
|
|
|
12334
12334
|
return L === 62 ? (e.consume(L), i.interrupt ? n : W) : a(L);
|
|
12335
12335
|
}
|
|
12336
12336
|
function k(L) {
|
|
12337
|
-
return $e(L) ? (e.consume(L), k) :
|
|
12337
|
+
return $e(L) ? (e.consume(L), k) : Z(L);
|
|
12338
12338
|
}
|
|
12339
|
-
function
|
|
12340
|
-
return L === 47 ? (e.consume(L),
|
|
12339
|
+
function D(L) {
|
|
12340
|
+
return L === 47 ? (e.consume(L), Z) : L === 58 || L === 95 || Mr(L) ? (e.consume(L), Q) : $e(L) ? (e.consume(L), D) : Z(L);
|
|
12341
12341
|
}
|
|
12342
12342
|
function Q(L) {
|
|
12343
12343
|
return L === 45 || L === 46 || L === 58 || L === 95 || Qn(L) ? (e.consume(L), Q) : B(L);
|
|
12344
12344
|
}
|
|
12345
12345
|
function B(L) {
|
|
12346
|
-
return L === 61 ? (e.consume(L),
|
|
12346
|
+
return L === 61 ? (e.consume(L), N) : $e(L) ? (e.consume(L), B) : D(L);
|
|
12347
12347
|
}
|
|
12348
|
-
function
|
|
12349
|
-
return L === null || L === 60 || L === 61 || L === 62 || L === 96 ? a(L) : L === 34 || L === 39 ? (e.consume(L), u = L, U) : $e(L) ? (e.consume(L),
|
|
12348
|
+
function N(L) {
|
|
12349
|
+
return L === null || L === 60 || L === 61 || L === 62 || L === 96 ? a(L) : L === 34 || L === 39 ? (e.consume(L), u = L, U) : $e(L) ? (e.consume(L), N) : H(L);
|
|
12350
12350
|
}
|
|
12351
12351
|
function U(L) {
|
|
12352
|
-
return L === u ? (e.consume(L), u = null,
|
|
12352
|
+
return L === u ? (e.consume(L), u = null, j) : L === null || Me(L) ? a(L) : (e.consume(L), U);
|
|
12353
12353
|
}
|
|
12354
|
-
function
|
|
12355
|
-
return L === null || L === 34 || L === 39 || L === 47 || L === 60 || L === 61 || L === 62 || L === 96 || En(L) ? B(L) : (e.consume(L),
|
|
12354
|
+
function H(L) {
|
|
12355
|
+
return L === null || L === 34 || L === 39 || L === 47 || L === 60 || L === 61 || L === 62 || L === 96 || En(L) ? B(L) : (e.consume(L), H);
|
|
12356
12356
|
}
|
|
12357
|
-
function
|
|
12358
|
-
return L === 47 || L === 62 || $e(L) ?
|
|
12357
|
+
function j(L) {
|
|
12358
|
+
return L === 47 || L === 62 || $e(L) ? D(L) : a(L);
|
|
12359
12359
|
}
|
|
12360
|
-
function
|
|
12361
|
-
return L === 62 ? (e.consume(L),
|
|
12360
|
+
function Z(L) {
|
|
12361
|
+
return L === 62 ? (e.consume(L), z) : a(L);
|
|
12362
12362
|
}
|
|
12363
|
-
function
|
|
12364
|
-
return L === null || Me(L) ? W(L) : $e(L) ? (e.consume(L),
|
|
12363
|
+
function z(L) {
|
|
12364
|
+
return L === null || Me(L) ? W(L) : $e(L) ? (e.consume(L), z) : a(L);
|
|
12365
12365
|
}
|
|
12366
12366
|
function W(L) {
|
|
12367
12367
|
return L === 45 && o === 2 ? (e.consume(L), se) : L === 60 && o === 1 ? (e.consume(L), le) : L === 62 && o === 4 ? (e.consume(L), _) : L === 63 && o === 3 ? (e.consume(L), me) : L === 93 && o === 5 ? (e.consume(L), ge) : !Me(L) || o !== 6 && o !== 7 ? L === null || Me(L) ? (e.exit("htmlFlowData"), $(L)) : (e.consume(L), W) : (e.exit("htmlFlowData"), e.check(ig, Be, $)(L));
|
|
@@ -12419,10 +12419,10 @@ const Zh = { name: "definition", tokenize: function(e, n, a) {
|
|
|
12419
12419
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(_), A;
|
|
12420
12420
|
};
|
|
12421
12421
|
function A(_) {
|
|
12422
|
-
return _ === 33 ? (e.consume(_), u) : _ === 47 ? (e.consume(_),
|
|
12422
|
+
return _ === 33 ? (e.consume(_), u) : _ === 47 ? (e.consume(_), N) : _ === 63 ? (e.consume(_), Q) : Mr(_) ? (e.consume(_), j) : a(_);
|
|
12423
12423
|
}
|
|
12424
12424
|
function u(_) {
|
|
12425
|
-
return _ === 45 ? (e.consume(_), d) : _ === 91 ? (e.consume(_), s = 0, E) : Mr(_) ? (e.consume(_),
|
|
12425
|
+
return _ === 45 ? (e.consume(_), d) : _ === 91 ? (e.consume(_), s = 0, E) : Mr(_) ? (e.consume(_), D) : a(_);
|
|
12426
12426
|
}
|
|
12427
12427
|
function d(_) {
|
|
12428
12428
|
return _ === 45 ? (e.consume(_), y) : a(_);
|
|
@@ -12448,8 +12448,8 @@ const Zh = { name: "definition", tokenize: function(e, n, a) {
|
|
|
12448
12448
|
function k(_) {
|
|
12449
12449
|
return _ === 62 ? le(_) : _ === 93 ? (e.consume(_), k) : T(_);
|
|
12450
12450
|
}
|
|
12451
|
-
function
|
|
12452
|
-
return _ === null || _ === 62 ? le(_) : Me(_) ? (f =
|
|
12451
|
+
function D(_) {
|
|
12452
|
+
return _ === null || _ === 62 ? le(_) : Me(_) ? (f = D, be(_)) : (e.consume(_), D);
|
|
12453
12453
|
}
|
|
12454
12454
|
function Q(_) {
|
|
12455
12455
|
return _ === null ? a(_) : _ === 63 ? (e.consume(_), B) : Me(_) ? (f = Q, be(_)) : (e.consume(_), Q);
|
|
@@ -12457,26 +12457,26 @@ const Zh = { name: "definition", tokenize: function(e, n, a) {
|
|
|
12457
12457
|
function B(_) {
|
|
12458
12458
|
return _ === 62 ? le(_) : Q(_);
|
|
12459
12459
|
}
|
|
12460
|
-
function
|
|
12460
|
+
function N(_) {
|
|
12461
12461
|
return Mr(_) ? (e.consume(_), U) : a(_);
|
|
12462
12462
|
}
|
|
12463
12463
|
function U(_) {
|
|
12464
|
-
return _ === 45 || Qn(_) ? (e.consume(_), U) :
|
|
12464
|
+
return _ === 45 || Qn(_) ? (e.consume(_), U) : H(_);
|
|
12465
12465
|
}
|
|
12466
|
-
function
|
|
12467
|
-
return Me(_) ? (f =
|
|
12466
|
+
function H(_) {
|
|
12467
|
+
return Me(_) ? (f = H, be(_)) : $e(_) ? (e.consume(_), H) : le(_);
|
|
12468
12468
|
}
|
|
12469
|
-
function
|
|
12470
|
-
return _ === 45 || Qn(_) ? (e.consume(_),
|
|
12469
|
+
function j(_) {
|
|
12470
|
+
return _ === 45 || Qn(_) ? (e.consume(_), j) : _ === 47 || _ === 62 || En(_) ? Z(_) : a(_);
|
|
12471
12471
|
}
|
|
12472
|
-
function
|
|
12473
|
-
return _ === 47 ? (e.consume(_), le) : _ === 58 || _ === 95 || Mr(_) ? (e.consume(_),
|
|
12472
|
+
function Z(_) {
|
|
12473
|
+
return _ === 47 ? (e.consume(_), le) : _ === 58 || _ === 95 || Mr(_) ? (e.consume(_), z) : Me(_) ? (f = Z, be(_)) : $e(_) ? (e.consume(_), Z) : le(_);
|
|
12474
12474
|
}
|
|
12475
|
-
function
|
|
12476
|
-
return _ === 45 || _ === 46 || _ === 58 || _ === 95 || Qn(_) ? (e.consume(_),
|
|
12475
|
+
function z(_) {
|
|
12476
|
+
return _ === 45 || _ === 46 || _ === 58 || _ === 95 || Qn(_) ? (e.consume(_), z) : W(_);
|
|
12477
12477
|
}
|
|
12478
12478
|
function W(_) {
|
|
12479
|
-
return _ === 61 ? (e.consume(_), $) : Me(_) ? (f = W, be(_)) : $e(_) ? (e.consume(_), W) :
|
|
12479
|
+
return _ === 61 ? (e.consume(_), $) : Me(_) ? (f = W, be(_)) : $e(_) ? (e.consume(_), W) : Z(_);
|
|
12480
12480
|
}
|
|
12481
12481
|
function $(_) {
|
|
12482
12482
|
return _ === null || _ === 60 || _ === 61 || _ === 62 || _ === 96 ? a(_) : _ === 34 || _ === 39 ? (e.consume(_), o = _, q) : Me(_) ? (f = $, be(_)) : $e(_) ? (e.consume(_), $) : (e.consume(_), ae);
|
|
@@ -12485,10 +12485,10 @@ const Zh = { name: "definition", tokenize: function(e, n, a) {
|
|
|
12485
12485
|
return _ === o ? (e.consume(_), o = void 0, se) : _ === null ? a(_) : Me(_) ? (f = q, be(_)) : (e.consume(_), q);
|
|
12486
12486
|
}
|
|
12487
12487
|
function ae(_) {
|
|
12488
|
-
return _ === null || _ === 34 || _ === 39 || _ === 60 || _ === 61 || _ === 96 ? a(_) : _ === 47 || _ === 62 || En(_) ?
|
|
12488
|
+
return _ === null || _ === 34 || _ === 39 || _ === 60 || _ === 61 || _ === 96 ? a(_) : _ === 47 || _ === 62 || En(_) ? Z(_) : (e.consume(_), ae);
|
|
12489
12489
|
}
|
|
12490
12490
|
function se(_) {
|
|
12491
|
-
return _ === 47 || _ === 62 || En(_) ?
|
|
12491
|
+
return _ === 47 || _ === 62 || En(_) ? Z(_) : a(_);
|
|
12492
12492
|
}
|
|
12493
12493
|
function le(_) {
|
|
12494
12494
|
return _ === 62 ? (e.consume(_), e.exit("htmlTextData"), e.exit("htmlText"), n) : a(_);
|
|
@@ -12783,25 +12783,25 @@ function Tg(e, n, a) {
|
|
|
12783
12783
|
const u = { attempt: R(function(Q, B) {
|
|
12784
12784
|
k(Q, B.from);
|
|
12785
12785
|
}), check: R(T), consume: function(Q) {
|
|
12786
|
-
Me(Q) ? (i.line++, i.column = 1, i.offset += Q === -3 ? 2 : 1,
|
|
12786
|
+
Me(Q) ? (i.line++, i.column = 1, i.offset += Q === -3 ? 2 : 1, D()) : Q !== -1 && (i.column++, i.offset++), i._bufferIndex < 0 ? i._index++ : (i._bufferIndex++, i._bufferIndex === f[i._index].length && (i._bufferIndex = -1, i._index++)), d.previous = Q;
|
|
12787
12787
|
}, enter: function(Q, B) {
|
|
12788
|
-
const
|
|
12789
|
-
return
|
|
12788
|
+
const N = B || {};
|
|
12789
|
+
return N.type = Q, N.start = y(), d.events.push(["enter", N, d]), A.push(N), N;
|
|
12790
12790
|
}, exit: function(Q) {
|
|
12791
12791
|
const B = A.pop();
|
|
12792
12792
|
return B.end = y(), d.events.push(["exit", B, d]), B;
|
|
12793
12793
|
}, interrupt: R(T, { interrupt: !0 }) }, d = { code: null, containerState: {}, defineSkip: function(Q) {
|
|
12794
|
-
o[Q.line] = Q.column,
|
|
12794
|
+
o[Q.line] = Q.column, D();
|
|
12795
12795
|
}, events: [], now: y, parser: e, previous: null, sliceSerialize: function(Q, B) {
|
|
12796
|
-
return function(
|
|
12797
|
-
let
|
|
12798
|
-
const
|
|
12799
|
-
let
|
|
12800
|
-
for (; ++
|
|
12801
|
-
const
|
|
12796
|
+
return function(N, U) {
|
|
12797
|
+
let H = -1;
|
|
12798
|
+
const j = [];
|
|
12799
|
+
let Z;
|
|
12800
|
+
for (; ++H < N.length; ) {
|
|
12801
|
+
const z = N[H];
|
|
12802
12802
|
let W;
|
|
12803
|
-
if (typeof
|
|
12804
|
-
else switch (
|
|
12803
|
+
if (typeof z == "string") W = z;
|
|
12804
|
+
else switch (z) {
|
|
12805
12805
|
case -5:
|
|
12806
12806
|
W = "\r";
|
|
12807
12807
|
break;
|
|
@@ -12817,46 +12817,46 @@ function Tg(e, n, a) {
|
|
|
12817
12817
|
W = U ? " " : " ";
|
|
12818
12818
|
break;
|
|
12819
12819
|
case -1:
|
|
12820
|
-
if (!U &&
|
|
12820
|
+
if (!U && Z) continue;
|
|
12821
12821
|
W = " ";
|
|
12822
12822
|
break;
|
|
12823
12823
|
default:
|
|
12824
|
-
W = String.fromCharCode(
|
|
12824
|
+
W = String.fromCharCode(z);
|
|
12825
12825
|
}
|
|
12826
|
-
|
|
12826
|
+
Z = z === -2, j.push(W);
|
|
12827
12827
|
}
|
|
12828
|
-
return
|
|
12828
|
+
return j.join("");
|
|
12829
12829
|
}(g(Q), B);
|
|
12830
12830
|
}, sliceStream: g, write: function(Q) {
|
|
12831
12831
|
return f = Zn(f, Q), function() {
|
|
12832
12832
|
let B;
|
|
12833
12833
|
for (; i._index < f.length; ) {
|
|
12834
|
-
const
|
|
12835
|
-
if (typeof
|
|
12836
|
-
else E(
|
|
12834
|
+
const N = f[i._index];
|
|
12835
|
+
if (typeof N == "string") for (B = i._index, i._bufferIndex < 0 && (i._bufferIndex = 0); i._index === B && i._bufferIndex < N.length; ) E(N.charCodeAt(i._bufferIndex));
|
|
12836
|
+
else E(N);
|
|
12837
12837
|
}
|
|
12838
12838
|
}(), f[f.length - 1] !== null ? [] : (k(n, 0), d.events = Ju(s, d.events, d), d.events);
|
|
12839
12839
|
} };
|
|
12840
12840
|
let h = n.tokenize.call(d, u);
|
|
12841
12841
|
return n.resolveAll && s.push(n), d;
|
|
12842
12842
|
function g(Q) {
|
|
12843
|
-
return function(B,
|
|
12844
|
-
const U =
|
|
12845
|
-
let
|
|
12846
|
-
if (U ===
|
|
12843
|
+
return function(B, N) {
|
|
12844
|
+
const U = N.start._index, H = N.start._bufferIndex, j = N.end._index, Z = N.end._bufferIndex;
|
|
12845
|
+
let z;
|
|
12846
|
+
if (U === j) z = [B[U].slice(H, Z)];
|
|
12847
12847
|
else {
|
|
12848
|
-
if (
|
|
12849
|
-
const W =
|
|
12850
|
-
typeof W == "string" ?
|
|
12848
|
+
if (z = B.slice(U, j), H > -1) {
|
|
12849
|
+
const W = z[0];
|
|
12850
|
+
typeof W == "string" ? z[0] = W.slice(H) : z.shift();
|
|
12851
12851
|
}
|
|
12852
|
-
|
|
12852
|
+
Z > 0 && z.push(B[j].slice(0, Z));
|
|
12853
12853
|
}
|
|
12854
|
-
return
|
|
12854
|
+
return z;
|
|
12855
12855
|
}(f, Q);
|
|
12856
12856
|
}
|
|
12857
12857
|
function y() {
|
|
12858
|
-
const { _bufferIndex: Q, _index: B, line:
|
|
12859
|
-
return { _bufferIndex: Q, _index: B, line:
|
|
12858
|
+
const { _bufferIndex: Q, _index: B, line: N, column: U, offset: H } = i;
|
|
12859
|
+
return { _bufferIndex: Q, _index: B, line: N, column: U, offset: H };
|
|
12860
12860
|
}
|
|
12861
12861
|
function E(Q) {
|
|
12862
12862
|
h = h(Q);
|
|
@@ -12865,17 +12865,17 @@ function Tg(e, n, a) {
|
|
|
12865
12865
|
B.restore();
|
|
12866
12866
|
}
|
|
12867
12867
|
function R(Q, B) {
|
|
12868
|
-
return function(
|
|
12869
|
-
let
|
|
12870
|
-
return Array.isArray(
|
|
12868
|
+
return function(N, U, H) {
|
|
12869
|
+
let j, Z, z, W;
|
|
12870
|
+
return Array.isArray(N) ? $(N) : "tokenize" in N ? $([N]) : /* @__PURE__ */ function(le) {
|
|
12871
12871
|
return be;
|
|
12872
12872
|
function be(ge) {
|
|
12873
12873
|
const me = ge !== null && le[ge], _ = ge !== null && le.null;
|
|
12874
12874
|
return $([...Array.isArray(me) ? me : me ? [me] : [], ...Array.isArray(_) ? _ : _ ? [_] : []])(ge);
|
|
12875
12875
|
}
|
|
12876
|
-
}(
|
|
12876
|
+
}(N);
|
|
12877
12877
|
function $(le) {
|
|
12878
|
-
return
|
|
12878
|
+
return j = le, Z = 0, le.length === 0 ? H : q(le[Z]);
|
|
12879
12879
|
}
|
|
12880
12880
|
function q(le) {
|
|
12881
12881
|
return function(be) {
|
|
@@ -12883,23 +12883,23 @@ function Tg(e, n, a) {
|
|
|
12883
12883
|
const ge = y(), me = d.previous, _ = d.currentConstruct, Be = d.events.length, L = Array.from(A);
|
|
12884
12884
|
return { from: Be, restore: ve };
|
|
12885
12885
|
function ve() {
|
|
12886
|
-
i = ge, d.previous = me, d.currentConstruct = _, d.events.length = Be, A = L,
|
|
12886
|
+
i = ge, d.previous = me, d.currentConstruct = _, d.events.length = Be, A = L, D();
|
|
12887
12887
|
}
|
|
12888
|
-
}(),
|
|
12888
|
+
}(), z = le, le.partial || (d.currentConstruct = le), le.name && d.parser.constructs.disable.null.includes(le.name) ? se() : le.tokenize.call(B ? Object.assign(Object.create(d), B) : d, u, ae, se)(be);
|
|
12889
12889
|
};
|
|
12890
12890
|
}
|
|
12891
12891
|
function ae(le) {
|
|
12892
|
-
return Q(
|
|
12892
|
+
return Q(z, W), U;
|
|
12893
12893
|
}
|
|
12894
12894
|
function se(le) {
|
|
12895
|
-
return W.restore(), ++
|
|
12895
|
+
return W.restore(), ++Z < j.length ? q(j[Z]) : H;
|
|
12896
12896
|
}
|
|
12897
12897
|
};
|
|
12898
12898
|
}
|
|
12899
12899
|
function k(Q, B) {
|
|
12900
12900
|
Q.resolveAll && !s.includes(Q) && s.push(Q), Q.resolve && _r(d.events, B, d.events.length - B, Q.resolve(d.events.slice(B), d)), Q.resolveTo && (d.events = Q.resolveTo(d.events, d));
|
|
12901
12901
|
}
|
|
12902
|
-
function
|
|
12902
|
+
function D() {
|
|
12903
12903
|
i.line in o && i.column < 2 && (i.column = o[i.line], i.offset += o[i.line] - 1);
|
|
12904
12904
|
}
|
|
12905
12905
|
}
|
|
@@ -12915,30 +12915,30 @@ function Ig(e, n, a) {
|
|
|
12915
12915
|
const pf = {}.hasOwnProperty;
|
|
12916
12916
|
function Bg(e, n, a) {
|
|
12917
12917
|
return typeof n != "string" && (a = n, n = void 0), function(i) {
|
|
12918
|
-
const o = { transforms: [], canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"], enter: { autolink: u(lt), autolinkProtocol: q, autolinkEmail: q, atxHeading: u(vt), blockQuote: u(Ze), characterEscape: q, characterReference: q, codeFenced: u(et), codeFencedFenceInfo: d, codeFencedFenceMeta: d, codeIndented: u(et, d), codeText: u(mt, d), codeTextData: q, data: q, codeFlowValue: q, definition: u(St), definitionDestinationString: d, definitionLabelString: d, definitionTitleString: d, emphasis: u(Pn), hardBreakEscape: u(Et), hardBreakTrailing: u(Et), htmlFlow: u(tt, d), htmlFlowData: q, htmlText: u(tt, d), htmlTextData: q, image: u(Tt), label: d, link: u(lt), listItem: u(ct), listItemValue: R, listOrdered: u(ft, T), listUnordered: u(ft), paragraph: u(rn), reference: ye, referenceString: d, resourceDestinationString: d, resourceTitleString: d, setextHeading: u(vt), strong: u(Tn), thematicBreak: u(nt) }, exit: { atxHeading: g(), atxHeadingSequence:
|
|
12918
|
+
const o = { transforms: [], canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"], enter: { autolink: u(lt), autolinkProtocol: q, autolinkEmail: q, atxHeading: u(vt), blockQuote: u(Ze), characterEscape: q, characterReference: q, codeFenced: u(et), codeFencedFenceInfo: d, codeFencedFenceMeta: d, codeIndented: u(et, d), codeText: u(mt, d), codeTextData: q, data: q, codeFlowValue: q, definition: u(St), definitionDestinationString: d, definitionLabelString: d, definitionTitleString: d, emphasis: u(Pn), hardBreakEscape: u(Et), hardBreakTrailing: u(Et), htmlFlow: u(tt, d), htmlFlowData: q, htmlText: u(tt, d), htmlTextData: q, image: u(Tt), label: d, link: u(lt), listItem: u(ct), listItemValue: R, listOrdered: u(ft, T), listUnordered: u(ft), paragraph: u(rn), reference: ye, referenceString: d, resourceDestinationString: d, resourceTitleString: d, setextHeading: u(vt), strong: u(Tn), thematicBreak: u(nt) }, exit: { atxHeading: g(), atxHeadingSequence: Z, autolink: g(), autolinkEmail: _t, autolinkProtocol: qe, blockQuote: g(), characterEscapeValue: ae, characterReferenceMarkerHexadecimal: Qe, characterReferenceMarkerNumeric: Qe, characterReferenceValue: Oe, characterReference: We, codeFenced: g(B), codeFencedFence: Q, codeFencedFenceInfo: k, codeFencedFenceMeta: D, codeFlowValue: ae, codeIndented: g(N), codeText: g(me), codeTextData: ae, data: ae, definition: g(), definitionDestinationString: j, definitionLabelString: U, definitionTitleString: H, emphasis: g(), hardBreakEscape: g(le), hardBreakTrailing: g(le), htmlFlow: g(be), htmlFlowData: ae, htmlText: g(ge), htmlTextData: ae, image: g(Be), label: ve, labelText: L, lineEnding: se, link: g(_), listItem: g(), listOrdered: g(), listUnordered: g(), paragraph: g(), referenceString: Ie, resourceDestinationString: fe, resourceTitleString: ie, resource: he, setextHeading: g($), setextHeadingLineSequence: W, setextHeadingText: z, strong: g(), thematicBreak: g() } };
|
|
12919
12919
|
hf(o, (i || {}).mdastExtensions || []);
|
|
12920
12920
|
const s = {};
|
|
12921
12921
|
return f;
|
|
12922
|
-
function f(
|
|
12922
|
+
function f(te) {
|
|
12923
12923
|
let we = { type: "root", children: [] };
|
|
12924
12924
|
const Ee = { stack: [we], tokenStack: [], config: o, enter: h, exit: y, buffer: d, resume: E, data: s }, Fe = [];
|
|
12925
12925
|
let _e = -1;
|
|
12926
|
-
for (; ++_e <
|
|
12927
|
-
for (_e = -1; ++_e <
|
|
12928
|
-
const ut = o[
|
|
12929
|
-
pf.call(ut,
|
|
12926
|
+
for (; ++_e < te.length; ) (te[_e][1].type === "listOrdered" || te[_e][1].type === "listUnordered") && (te[_e][0] === "enter" ? Fe.push(_e) : _e = A(te, Fe.pop(), _e));
|
|
12927
|
+
for (_e = -1; ++_e < te.length; ) {
|
|
12928
|
+
const ut = o[te[_e][0]];
|
|
12929
|
+
pf.call(ut, te[_e][1].type) && ut[te[_e][1].type].call(Object.assign({ sliceSerialize: te[_e][2].sliceSerialize }, Ee), te[_e][1]);
|
|
12930
12930
|
}
|
|
12931
12931
|
if (Ee.tokenStack.length > 0) {
|
|
12932
12932
|
const ut = Ee.tokenStack[Ee.tokenStack.length - 1];
|
|
12933
12933
|
(ut[1] || NA).call(Ee, void 0, ut[0]);
|
|
12934
12934
|
}
|
|
12935
|
-
for (we.position = { start: Mo(
|
|
12935
|
+
for (we.position = { start: Mo(te.length > 0 ? te[0][1].start : { line: 1, column: 1, offset: 0 }), end: Mo(te.length > 0 ? te[te.length - 2][1].end : { line: 1, column: 1, offset: 0 }) }, _e = -1; ++_e < o.transforms.length; ) we = o.transforms[_e](we) || we;
|
|
12936
12936
|
return we;
|
|
12937
12937
|
}
|
|
12938
|
-
function A(
|
|
12938
|
+
function A(te, we, Ee) {
|
|
12939
12939
|
let Fe, _e, ut, yt, rt = we - 1, Lt = -1, tr = !1;
|
|
12940
12940
|
for (; ++rt <= Ee; ) {
|
|
12941
|
-
const Je =
|
|
12941
|
+
const Je = te[rt];
|
|
12942
12942
|
switch (Je[1].type) {
|
|
12943
12943
|
case "listUnordered":
|
|
12944
12944
|
case "listOrdered":
|
|
@@ -12961,169 +12961,169 @@ function Bg(e, n, a) {
|
|
|
12961
12961
|
if (Fe) {
|
|
12962
12962
|
let Dt = rt;
|
|
12963
12963
|
for (_e = void 0; Dt--; ) {
|
|
12964
|
-
const Ct =
|
|
12964
|
+
const Ct = te[Dt];
|
|
12965
12965
|
if (Ct[1].type === "lineEnding" || Ct[1].type === "lineEndingBlank") {
|
|
12966
12966
|
if (Ct[0] === "exit") continue;
|
|
12967
|
-
_e && (
|
|
12967
|
+
_e && (te[_e][1].type = "lineEndingBlank", tr = !0), Ct[1].type = "lineEnding", _e = Dt;
|
|
12968
12968
|
} else if (Ct[1].type !== "linePrefix" && Ct[1].type !== "blockQuotePrefix" && Ct[1].type !== "blockQuotePrefixWhitespace" && Ct[1].type !== "blockQuoteMarker" && Ct[1].type !== "listItemIndent") break;
|
|
12969
12969
|
}
|
|
12970
|
-
ut && (!_e || ut < _e) && (Fe._spread = !0), Fe.end = Object.assign({}, _e ?
|
|
12970
|
+
ut && (!_e || ut < _e) && (Fe._spread = !0), Fe.end = Object.assign({}, _e ? te[_e][1].start : Je[1].end), te.splice(_e || rt, 0, ["exit", Fe, Je[2]]), rt++, Ee++;
|
|
12971
12971
|
}
|
|
12972
12972
|
if (Je[1].type === "listItemPrefix") {
|
|
12973
12973
|
const Dt = { type: "listItem", _spread: !1, start: Object.assign({}, Je[1].start), end: void 0 };
|
|
12974
|
-
Fe = Dt,
|
|
12974
|
+
Fe = Dt, te.splice(rt, 0, ["enter", Dt, Je[2]]), rt++, Ee++, ut = void 0, yt = !0;
|
|
12975
12975
|
}
|
|
12976
12976
|
}
|
|
12977
12977
|
}
|
|
12978
|
-
return
|
|
12978
|
+
return te[we][1]._spread = tr, Ee;
|
|
12979
12979
|
}
|
|
12980
|
-
function u(
|
|
12980
|
+
function u(te, we) {
|
|
12981
12981
|
return Ee;
|
|
12982
12982
|
function Ee(Fe) {
|
|
12983
|
-
h.call(this,
|
|
12983
|
+
h.call(this, te(Fe), Fe), we && we.call(this, Fe);
|
|
12984
12984
|
}
|
|
12985
12985
|
}
|
|
12986
12986
|
function d() {
|
|
12987
12987
|
this.stack.push({ type: "fragment", children: [] });
|
|
12988
12988
|
}
|
|
12989
|
-
function h(
|
|
12990
|
-
this.stack[this.stack.length - 1].children.push(
|
|
12989
|
+
function h(te, we, Ee) {
|
|
12990
|
+
this.stack[this.stack.length - 1].children.push(te), this.stack.push(te), this.tokenStack.push([we, Ee || void 0]), te.position = { start: Mo(we.start), end: void 0 };
|
|
12991
12991
|
}
|
|
12992
|
-
function g(
|
|
12992
|
+
function g(te) {
|
|
12993
12993
|
return we;
|
|
12994
12994
|
function we(Ee) {
|
|
12995
|
-
|
|
12995
|
+
te && te.call(this, Ee), y.call(this, Ee);
|
|
12996
12996
|
}
|
|
12997
12997
|
}
|
|
12998
|
-
function y(
|
|
12998
|
+
function y(te, we) {
|
|
12999
12999
|
const Ee = this.stack.pop(), Fe = this.tokenStack.pop();
|
|
13000
|
-
if (!Fe) throw new Error("Cannot close `" +
|
|
13001
|
-
Fe[0].type !==
|
|
13000
|
+
if (!Fe) throw new Error("Cannot close `" + te.type + "` (" + Ms({ start: te.start, end: te.end }) + "): it’s not open");
|
|
13001
|
+
Fe[0].type !== te.type && (we ? we.call(this, te, Fe[0]) : (Fe[1] || NA).call(this, te, Fe[0])), Ee.position.end = Mo(te.end);
|
|
13002
13002
|
}
|
|
13003
13003
|
function E() {
|
|
13004
|
-
return function(
|
|
13005
|
-
return nf(
|
|
13004
|
+
return function(te) {
|
|
13005
|
+
return nf(te, typeof Dl.includeImageAlt != "boolean" || Dl.includeImageAlt, typeof Dl.includeHtml != "boolean" || Dl.includeHtml);
|
|
13006
13006
|
}(this.stack.pop());
|
|
13007
13007
|
}
|
|
13008
13008
|
function T() {
|
|
13009
13009
|
this.data.expectingFirstListItemValue = !0;
|
|
13010
13010
|
}
|
|
13011
|
-
function R(
|
|
13012
|
-
this.data.expectingFirstListItemValue && (this.stack[this.stack.length - 2].start = Number.parseInt(this.sliceSerialize(
|
|
13011
|
+
function R(te) {
|
|
13012
|
+
this.data.expectingFirstListItemValue && (this.stack[this.stack.length - 2].start = Number.parseInt(this.sliceSerialize(te), 10), this.data.expectingFirstListItemValue = void 0);
|
|
13013
13013
|
}
|
|
13014
13014
|
function k() {
|
|
13015
|
-
const
|
|
13016
|
-
this.stack[this.stack.length - 1].lang =
|
|
13015
|
+
const te = this.resume();
|
|
13016
|
+
this.stack[this.stack.length - 1].lang = te;
|
|
13017
13017
|
}
|
|
13018
|
-
function
|
|
13019
|
-
const
|
|
13020
|
-
this.stack[this.stack.length - 1].meta =
|
|
13018
|
+
function D() {
|
|
13019
|
+
const te = this.resume();
|
|
13020
|
+
this.stack[this.stack.length - 1].meta = te;
|
|
13021
13021
|
}
|
|
13022
13022
|
function Q() {
|
|
13023
13023
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
13024
13024
|
}
|
|
13025
13025
|
function B() {
|
|
13026
|
-
const
|
|
13027
|
-
this.stack[this.stack.length - 1].value =
|
|
13026
|
+
const te = this.resume();
|
|
13027
|
+
this.stack[this.stack.length - 1].value = te.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
13028
13028
|
}
|
|
13029
|
-
function
|
|
13030
|
-
const
|
|
13031
|
-
this.stack[this.stack.length - 1].value =
|
|
13029
|
+
function N() {
|
|
13030
|
+
const te = this.resume();
|
|
13031
|
+
this.stack[this.stack.length - 1].value = te.replace(/(\r?\n|\r)$/g, "");
|
|
13032
13032
|
}
|
|
13033
|
-
function U(
|
|
13033
|
+
function U(te) {
|
|
13034
13034
|
const we = this.resume(), Ee = this.stack[this.stack.length - 1];
|
|
13035
|
-
Ee.label = we, Ee.identifier = Ma(this.sliceSerialize(
|
|
13035
|
+
Ee.label = we, Ee.identifier = Ma(this.sliceSerialize(te)).toLowerCase();
|
|
13036
13036
|
}
|
|
13037
|
-
function
|
|
13038
|
-
const
|
|
13039
|
-
this.stack[this.stack.length - 1].title =
|
|
13037
|
+
function H() {
|
|
13038
|
+
const te = this.resume();
|
|
13039
|
+
this.stack[this.stack.length - 1].title = te;
|
|
13040
13040
|
}
|
|
13041
|
-
function
|
|
13042
|
-
const
|
|
13043
|
-
this.stack[this.stack.length - 1].url =
|
|
13041
|
+
function j() {
|
|
13042
|
+
const te = this.resume();
|
|
13043
|
+
this.stack[this.stack.length - 1].url = te;
|
|
13044
13044
|
}
|
|
13045
|
-
function te
|
|
13045
|
+
function Z(te) {
|
|
13046
13046
|
const we = this.stack[this.stack.length - 1];
|
|
13047
13047
|
if (!we.depth) {
|
|
13048
|
-
const Ee = this.sliceSerialize(
|
|
13048
|
+
const Ee = this.sliceSerialize(te).length;
|
|
13049
13049
|
we.depth = Ee;
|
|
13050
13050
|
}
|
|
13051
13051
|
}
|
|
13052
|
-
function
|
|
13052
|
+
function z() {
|
|
13053
13053
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
13054
13054
|
}
|
|
13055
|
-
function W(
|
|
13056
|
-
this.stack[this.stack.length - 1].depth = this.sliceSerialize(
|
|
13055
|
+
function W(te) {
|
|
13056
|
+
this.stack[this.stack.length - 1].depth = this.sliceSerialize(te).codePointAt(0) === 61 ? 1 : 2;
|
|
13057
13057
|
}
|
|
13058
13058
|
function $() {
|
|
13059
13059
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
13060
13060
|
}
|
|
13061
|
-
function q(
|
|
13061
|
+
function q(te) {
|
|
13062
13062
|
const we = this.stack[this.stack.length - 1].children;
|
|
13063
13063
|
let Ee = we[we.length - 1];
|
|
13064
|
-
(!Ee || Ee.type !== "text") && (Ee = zt(), Ee.position = { start: Mo(
|
|
13064
|
+
(!Ee || Ee.type !== "text") && (Ee = zt(), Ee.position = { start: Mo(te.start), end: void 0 }, we.push(Ee)), this.stack.push(Ee);
|
|
13065
13065
|
}
|
|
13066
|
-
function ae(
|
|
13066
|
+
function ae(te) {
|
|
13067
13067
|
const we = this.stack.pop();
|
|
13068
|
-
we.value += this.sliceSerialize(
|
|
13068
|
+
we.value += this.sliceSerialize(te), we.position.end = Mo(te.end);
|
|
13069
13069
|
}
|
|
13070
|
-
function se(
|
|
13070
|
+
function se(te) {
|
|
13071
13071
|
const we = this.stack[this.stack.length - 1];
|
|
13072
13072
|
if (this.data.atHardBreak)
|
|
13073
|
-
return we.children[we.children.length - 1].position.end = Mo(
|
|
13074
|
-
!this.data.setextHeadingSlurpLineEnding && o.canContainEols.includes(we.type) && (q.call(this,
|
|
13073
|
+
return we.children[we.children.length - 1].position.end = Mo(te.end), void (this.data.atHardBreak = void 0);
|
|
13074
|
+
!this.data.setextHeadingSlurpLineEnding && o.canContainEols.includes(we.type) && (q.call(this, te), ae.call(this, te));
|
|
13075
13075
|
}
|
|
13076
13076
|
function le() {
|
|
13077
13077
|
this.data.atHardBreak = !0;
|
|
13078
13078
|
}
|
|
13079
13079
|
function be() {
|
|
13080
|
-
const
|
|
13081
|
-
this.stack[this.stack.length - 1].value =
|
|
13080
|
+
const te = this.resume();
|
|
13081
|
+
this.stack[this.stack.length - 1].value = te;
|
|
13082
13082
|
}
|
|
13083
13083
|
function ge() {
|
|
13084
|
-
const
|
|
13085
|
-
this.stack[this.stack.length - 1].value =
|
|
13084
|
+
const te = this.resume();
|
|
13085
|
+
this.stack[this.stack.length - 1].value = te;
|
|
13086
13086
|
}
|
|
13087
13087
|
function me() {
|
|
13088
|
-
const
|
|
13089
|
-
this.stack[this.stack.length - 1].value =
|
|
13088
|
+
const te = this.resume();
|
|
13089
|
+
this.stack[this.stack.length - 1].value = te;
|
|
13090
13090
|
}
|
|
13091
13091
|
function _() {
|
|
13092
|
-
const
|
|
13092
|
+
const te = this.stack[this.stack.length - 1];
|
|
13093
13093
|
if (this.data.inReference) {
|
|
13094
13094
|
const we = this.data.referenceType || "shortcut";
|
|
13095
|
-
|
|
13096
|
-
} else delete
|
|
13095
|
+
te.type += "Reference", te.referenceType = we, delete te.url, delete te.title;
|
|
13096
|
+
} else delete te.identifier, delete te.label;
|
|
13097
13097
|
this.data.referenceType = void 0;
|
|
13098
13098
|
}
|
|
13099
13099
|
function Be() {
|
|
13100
|
-
const
|
|
13100
|
+
const te = this.stack[this.stack.length - 1];
|
|
13101
13101
|
if (this.data.inReference) {
|
|
13102
13102
|
const we = this.data.referenceType || "shortcut";
|
|
13103
|
-
|
|
13104
|
-
} else delete
|
|
13103
|
+
te.type += "Reference", te.referenceType = we, delete te.url, delete te.title;
|
|
13104
|
+
} else delete te.identifier, delete te.label;
|
|
13105
13105
|
this.data.referenceType = void 0;
|
|
13106
13106
|
}
|
|
13107
|
-
function L(
|
|
13108
|
-
const we = this.sliceSerialize(
|
|
13107
|
+
function L(te) {
|
|
13108
|
+
const we = this.sliceSerialize(te), Ee = this.stack[this.stack.length - 2];
|
|
13109
13109
|
Ee.label = function(Fe) {
|
|
13110
13110
|
return Fe.replace(Dg, Ig);
|
|
13111
13111
|
}(we), Ee.identifier = Ma(we).toLowerCase();
|
|
13112
13112
|
}
|
|
13113
13113
|
function ve() {
|
|
13114
|
-
const
|
|
13114
|
+
const te = this.stack[this.stack.length - 1], we = this.resume(), Ee = this.stack[this.stack.length - 1];
|
|
13115
13115
|
if (this.data.inReference = !0, Ee.type === "link") {
|
|
13116
|
-
const Fe =
|
|
13116
|
+
const Fe = te.children;
|
|
13117
13117
|
Ee.children = Fe;
|
|
13118
13118
|
} else Ee.alt = we;
|
|
13119
13119
|
}
|
|
13120
13120
|
function fe() {
|
|
13121
|
-
const
|
|
13122
|
-
this.stack[this.stack.length - 1].url =
|
|
13121
|
+
const te = this.resume();
|
|
13122
|
+
this.stack[this.stack.length - 1].url = te;
|
|
13123
13123
|
}
|
|
13124
13124
|
function ie() {
|
|
13125
|
-
const
|
|
13126
|
-
this.stack[this.stack.length - 1].title =
|
|
13125
|
+
const te = this.resume();
|
|
13126
|
+
this.stack[this.stack.length - 1].title = te;
|
|
13127
13127
|
}
|
|
13128
13128
|
function he() {
|
|
13129
13129
|
this.data.inReference = void 0;
|
|
@@ -13131,26 +13131,26 @@ function Bg(e, n, a) {
|
|
|
13131
13131
|
function ye() {
|
|
13132
13132
|
this.data.referenceType = "collapsed";
|
|
13133
13133
|
}
|
|
13134
|
-
function Ie(
|
|
13134
|
+
function Ie(te) {
|
|
13135
13135
|
const we = this.resume(), Ee = this.stack[this.stack.length - 1];
|
|
13136
|
-
Ee.label = we, Ee.identifier = Ma(this.sliceSerialize(
|
|
13136
|
+
Ee.label = we, Ee.identifier = Ma(this.sliceSerialize(te)).toLowerCase(), this.data.referenceType = "full";
|
|
13137
13137
|
}
|
|
13138
|
-
function Qe(
|
|
13139
|
-
this.data.characterReferenceType =
|
|
13138
|
+
function Qe(te) {
|
|
13139
|
+
this.data.characterReferenceType = te.type;
|
|
13140
13140
|
}
|
|
13141
|
-
function Oe(
|
|
13142
|
-
const we = this.sliceSerialize(
|
|
13141
|
+
function Oe(te) {
|
|
13142
|
+
const we = this.sliceSerialize(te), Ee = this.data.characterReferenceType;
|
|
13143
13143
|
let Fe;
|
|
13144
13144
|
Ee ? (Fe = rf(we, Ee === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : Fe = Xu(we), this.stack[this.stack.length - 1].value += Fe;
|
|
13145
13145
|
}
|
|
13146
|
-
function We(
|
|
13147
|
-
this.stack.pop().position.end = Mo(
|
|
13146
|
+
function We(te) {
|
|
13147
|
+
this.stack.pop().position.end = Mo(te.end);
|
|
13148
13148
|
}
|
|
13149
|
-
function qe(
|
|
13150
|
-
ae.call(this,
|
|
13149
|
+
function qe(te) {
|
|
13150
|
+
ae.call(this, te), this.stack[this.stack.length - 1].url = this.sliceSerialize(te);
|
|
13151
13151
|
}
|
|
13152
|
-
function _t(
|
|
13153
|
-
ae.call(this,
|
|
13152
|
+
function _t(te) {
|
|
13153
|
+
ae.call(this, te), this.stack[this.stack.length - 1].url = "mailto:" + this.sliceSerialize(te);
|
|
13154
13154
|
}
|
|
13155
13155
|
function Ze() {
|
|
13156
13156
|
return { type: "blockquote", children: [] };
|
|
@@ -13182,11 +13182,11 @@ function Bg(e, n, a) {
|
|
|
13182
13182
|
function lt() {
|
|
13183
13183
|
return { type: "link", title: null, url: "", children: [] };
|
|
13184
13184
|
}
|
|
13185
|
-
function ft(
|
|
13186
|
-
return { type: "list", ordered:
|
|
13185
|
+
function ft(te) {
|
|
13186
|
+
return { type: "list", ordered: te.type === "listOrdered", start: null, spread: te._spread, children: [] };
|
|
13187
13187
|
}
|
|
13188
|
-
function ct(
|
|
13189
|
-
return { type: "listItem", spread:
|
|
13188
|
+
function ct(te) {
|
|
13189
|
+
return { type: "listItem", spread: te._spread, checked: null, children: [] };
|
|
13190
13190
|
}
|
|
13191
13191
|
function rn() {
|
|
13192
13192
|
return { type: "paragraph", children: [] };
|
|
@@ -13590,7 +13590,7 @@ const WA = typeof self == "object" ? self : globalThis, YA = (e) => (/* @__PURE_
|
|
|
13590
13590
|
}
|
|
13591
13591
|
case 5: {
|
|
13592
13592
|
const T = [], R = u([g, T], h);
|
|
13593
|
-
for (const [k,
|
|
13593
|
+
for (const [k, D] of h) (o || !Bl(Ds(k)) && !Bl(Ds(D))) && T.push([d(k), d(D)]);
|
|
13594
13594
|
return R;
|
|
13595
13595
|
}
|
|
13596
13596
|
case 6: {
|
|
@@ -13667,13 +13667,13 @@ function zg(e, n, a, i) {
|
|
|
13667
13667
|
return y;
|
|
13668
13668
|
function y() {
|
|
13669
13669
|
let E, T, R, k = VA;
|
|
13670
|
-
if ((!n || s(u, d, h[h.length - 1] || void 0)) && (k = function(
|
|
13671
|
-
return Array.isArray(
|
|
13670
|
+
if ((!n || s(u, d, h[h.length - 1] || void 0)) && (k = function(D) {
|
|
13671
|
+
return Array.isArray(D) ? D : typeof D == "number" ? [Ug, D] : D == null ? VA : [D];
|
|
13672
13672
|
}(a(u, h)), k[0] === XA)) return k;
|
|
13673
13673
|
if ("children" in u && u.children) {
|
|
13674
|
-
const
|
|
13675
|
-
if (
|
|
13676
|
-
const Q =
|
|
13674
|
+
const D = u;
|
|
13675
|
+
if (D.children && k[0] !== "skip") for (T = (i ? D.children.length : -1) + f, R = h.concat(D); T > -1 && T < D.children.length; ) {
|
|
13676
|
+
const Q = D.children[T];
|
|
13677
13677
|
if (E = A(Q, T, R)(), E[0] === XA) return E;
|
|
13678
13678
|
T = typeof E[1] == "number" ? E[1] : T + f;
|
|
13679
13679
|
}
|
|
@@ -13766,21 +13766,21 @@ function KA(e, n) {
|
|
|
13766
13766
|
for (; ++T < f.footnoteOrder.length; ) {
|
|
13767
13767
|
const R = f.footnoteById.get(f.footnoteOrder[T]);
|
|
13768
13768
|
if (!R) continue;
|
|
13769
|
-
const k = f.all(R),
|
|
13769
|
+
const k = f.all(R), D = String(R.identifier).toUpperCase(), Q = Ba(D.toLowerCase());
|
|
13770
13770
|
let B = 0;
|
|
13771
|
-
const
|
|
13771
|
+
const N = [], U = f.footnoteCounts.get(D);
|
|
13772
13772
|
for (; U !== void 0 && ++B <= U; ) {
|
|
13773
|
-
|
|
13774
|
-
let
|
|
13775
|
-
typeof
|
|
13776
|
-
}
|
|
13777
|
-
const
|
|
13778
|
-
if (
|
|
13779
|
-
const
|
|
13780
|
-
|
|
13781
|
-
} else k.push(...
|
|
13782
|
-
const
|
|
13783
|
-
f.patch(R,
|
|
13773
|
+
N.length > 0 && N.push({ type: "text", value: " " });
|
|
13774
|
+
let Z = typeof u == "string" ? u : u(T, B);
|
|
13775
|
+
typeof Z == "string" && (Z = { type: "text", value: Z }), N.push({ type: "element", tagName: "a", properties: { href: "#" + A + "fnref-" + Q + (B > 1 ? "-" + B : ""), dataFootnoteBackref: "", ariaLabel: typeof d == "string" ? d : d(T, B), className: ["data-footnote-backref"] }, children: Array.isArray(Z) ? Z : [Z] });
|
|
13776
|
+
}
|
|
13777
|
+
const H = k[k.length - 1];
|
|
13778
|
+
if (H && H.type === "element" && H.tagName === "p") {
|
|
13779
|
+
const Z = H.children[H.children.length - 1];
|
|
13780
|
+
Z && Z.type === "text" ? Z.value += " " : H.children.push({ type: "text", value: " " }), H.children.push(...N);
|
|
13781
|
+
} else k.push(...N);
|
|
13782
|
+
const j = { type: "element", tagName: "li", properties: { id: A + "fn-" + Q }, children: f.wrap(k, !0) };
|
|
13783
|
+
f.patch(R, j), E.push(j);
|
|
13784
13784
|
}
|
|
13785
13785
|
if (E.length !== 0) return { type: "element", tagName: "section", properties: { dataFootnotes: !0, className: ["footnotes"] }, children: [{ type: "element", tagName: g, properties: { ...Wl(y), id: "footnote-label" }, children: [{ type: "text", value: h }] }, { type: "text", value: `
|
|
13786
13786
|
` }, { type: "element", tagName: "ol", properties: {}, children: f.wrap(E, !0) }, { type: "text", value: `
|
|
@@ -13821,8 +13821,8 @@ var su, $A, Kg = function() {
|
|
|
13821
13821
|
return u[d];
|
|
13822
13822
|
};
|
|
13823
13823
|
return su = function u() {
|
|
13824
|
-
var d, h, g, y, E, T, R = arguments[0], k = 1,
|
|
13825
|
-
for (typeof R == "boolean" && (Q = R, R = arguments[1] || {}, k = 2), (R == null || typeof R != "object" && typeof R != "function") && (R = {}); k <
|
|
13824
|
+
var d, h, g, y, E, T, R = arguments[0], k = 1, D = arguments.length, Q = !1;
|
|
13825
|
+
for (typeof R == "boolean" && (Q = R, R = arguments[1] || {}, k = 2), (R == null || typeof R != "object" && typeof R != "function") && (R = {}); k < D; ++k) if ((d = arguments[k]) != null) for (h in d) g = A(R, h), R !== (y = A(d, h)) && (Q && y && (s(y) || (E = o(y))) ? (E ? (E = !1, T = g && o(g) ? g : []) : T = g && s(g) ? g : {}, f(R, { name: h, newValue: u(Q, T, y) })) : typeof y < "u" && f(R, { name: h, newValue: y }));
|
|
13826
13826
|
return R;
|
|
13827
13827
|
}, su;
|
|
13828
13828
|
}();
|
|
@@ -13847,19 +13847,19 @@ function qg() {
|
|
|
13847
13847
|
let y;
|
|
13848
13848
|
return E;
|
|
13849
13849
|
function E(...k) {
|
|
13850
|
-
const
|
|
13850
|
+
const D = h.length > k.length;
|
|
13851
13851
|
let Q;
|
|
13852
|
-
|
|
13852
|
+
D && k.push(T);
|
|
13853
13853
|
try {
|
|
13854
13854
|
Q = h.apply(this, k);
|
|
13855
13855
|
} catch (B) {
|
|
13856
|
-
if (
|
|
13856
|
+
if (D && y) throw B;
|
|
13857
13857
|
return T(B);
|
|
13858
13858
|
}
|
|
13859
|
-
|
|
13859
|
+
D || (Q && Q.then && typeof Q.then == "function" ? Q.then(R, T) : Q instanceof Error ? T(Q) : R(Q));
|
|
13860
13860
|
}
|
|
13861
|
-
function T(k, ...
|
|
13862
|
-
y || (y = !0, g(k, ...
|
|
13861
|
+
function T(k, ...D) {
|
|
13862
|
+
y || (y = !0, g(k, ...D));
|
|
13863
13863
|
}
|
|
13864
13864
|
function R(k) {
|
|
13865
13865
|
T(null, k);
|
|
@@ -14218,21 +14218,21 @@ const nd = [], rd = { allowDangerousHtml: !0 }, rm = /^(https?|ircs?|mailto|xmpp
|
|
|
14218
14218
|
function im(e) {
|
|
14219
14219
|
const n = e.allowedElements, a = e.allowElement, i = e.children || "", o = e.className, s = e.components, f = e.disallowedElements, A = e.rehypePlugins || nd, u = e.remarkPlugins || nd, d = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...rd } : rd, h = e.skipHtml, g = e.unwrapDisallowed, y = e.urlTransform || am, E = nm().use(Mg).use(u).use(Jg, d).use(A), T = new vf();
|
|
14220
14220
|
typeof i == "string" && (T.value = i);
|
|
14221
|
-
for (const
|
|
14221
|
+
for (const D of om) Object.hasOwn(e, D.from) && (D.from, D.to && D.to, D.id);
|
|
14222
14222
|
const R = E.parse(T);
|
|
14223
14223
|
let k = E.runSync(R, T);
|
|
14224
|
-
return o && (k = { type: "element", tagName: "div", properties: { className: o }, children: k.type === "root" ? k.children : [k] }), mf(k, function(
|
|
14225
|
-
if (
|
|
14226
|
-
if (
|
|
14227
|
-
let
|
|
14228
|
-
for (
|
|
14229
|
-
const U =
|
|
14230
|
-
(
|
|
14224
|
+
return o && (k = { type: "element", tagName: "div", properties: { className: o }, children: k.type === "root" ? k.children : [k] }), mf(k, function(D, Q, B) {
|
|
14225
|
+
if (D.type === "raw" && B && typeof Q == "number") return h ? B.children.splice(Q, 1) : B.children[Q] = { type: "text", value: D.value }, Q;
|
|
14226
|
+
if (D.type === "element") {
|
|
14227
|
+
let N;
|
|
14228
|
+
for (N in ou) if (Object.hasOwn(ou, N) && Object.hasOwn(D.properties, N)) {
|
|
14229
|
+
const U = D.properties[N], H = ou[N];
|
|
14230
|
+
(H === null || H.includes(D.tagName)) && (D.properties[N] = y(String(U || ""), N, D));
|
|
14231
14231
|
}
|
|
14232
14232
|
}
|
|
14233
|
-
if (
|
|
14234
|
-
let
|
|
14235
|
-
if (!
|
|
14233
|
+
if (D.type === "element") {
|
|
14234
|
+
let N = n ? !n.includes(D.tagName) : !!f && f.includes(D.tagName);
|
|
14235
|
+
if (!N && a && typeof Q == "number" && (N = !a(D, Q, B)), N && B && typeof Q == "number") return g && D.children ? B.children.splice(Q, 1, ...D.children) : B.children.splice(Q, 1), Q;
|
|
14236
14236
|
}
|
|
14237
14237
|
}), Bh(k, { Fragment: $t, components: s, ignoreInvalidStyle: !0, jsx: X, jsxs: dt, passKeys: !0, passNode: !0 });
|
|
14238
14238
|
}
|
|
@@ -14257,10 +14257,10 @@ const sm = ({ children: e }) => X("div", { style: { whiteSpace: "normal" }, chil
|
|
|
14257
14257
|
var y;
|
|
14258
14258
|
const E = (y = g.data.message) == null ? void 0 : y.sender.toUpperCase();
|
|
14259
14259
|
((T, R, k) => {
|
|
14260
|
-
var
|
|
14260
|
+
var D;
|
|
14261
14261
|
if (typeof T.data.message.content != "string" || !T.detail.currPath) return !1;
|
|
14262
14262
|
const Q = R[T.detail.currPath];
|
|
14263
|
-
return !!Q && (((
|
|
14263
|
+
return !!Q && (((D = Q.renderMarkdown) == null ? void 0 : D.map((B) => B.toUpperCase()).includes(k)) ?? !1);
|
|
14264
14264
|
})(g, a(), E) && (g.data.message.contentWrapper = u, g.data.message.tags || (g.data.message.tags = []), g.data.message.tags.push("rcb-markdown-renderer-plugin:parsed"));
|
|
14265
14265
|
};
|
|
14266
14266
|
er(xe.PRE_INJECT_MESSAGE, d), er(xe.CHUNK_STREAM_MESSAGE, d), er(xe.START_STREAM_MESSAGE, d), er(xe.START_SIMULATE_STREAM_MESSAGE, d);
|
|
@@ -14287,10 +14287,10 @@ const sm = ({ children: e }) => X("div", { style: { whiteSpace: "normal" }, chil
|
|
|
14287
14287
|
const T = E(y.data.inputText);
|
|
14288
14288
|
if (T != null && T.success || g.preventDefault(), !T.promptContent) return;
|
|
14289
14289
|
A === 0 && (d.current = structuredClone(i));
|
|
14290
|
-
const R = ((k,
|
|
14290
|
+
const R = ((k, D) => {
|
|
14291
14291
|
const Q = k.promptType ?? "info";
|
|
14292
14292
|
let B = {};
|
|
14293
|
-
return
|
|
14293
|
+
return D.advancedStyles && (B = D.advancedStyles[Q]), D.promptBaseColors && (B.toastPromptStyle = { color: D.promptBaseColors[Q], borderColor: D.promptBaseColors[Q] }), D.promptHoveredColors && (B.toastPromptHoveredStyle = { color: D.promptHoveredColors[Q], borderColor: D.promptHoveredColors[Q] }), D.textAreaHighlightColors && (k.highlightTextArea ?? !0) && (B.chatInputAreaStyle = { boxShadow: `${D.textAreaHighlightColors[Q]} 0px 0px 5px` }), B;
|
|
14294
14294
|
})(T, f);
|
|
14295
14295
|
o(R), n(T.promptContent, T.promptDuration ?? 3e3), u((k) => k + 1);
|
|
14296
14296
|
}), er(xe.USER_UPLOAD_FILE, (g) => {
|
|
@@ -14299,9 +14299,9 @@ const sm = ({ children: e }) => X("div", { style: { whiteSpace: "normal" }, chil
|
|
|
14299
14299
|
if (!R) return console.error("No file uploaded."), void g.preventDefault();
|
|
14300
14300
|
const k = od(T, a(), "validateFileInput");
|
|
14301
14301
|
if (!k) return void console.error("Validator not found for file input.");
|
|
14302
|
-
const
|
|
14303
|
-
if (!
|
|
14304
|
-
console.log("Validation successful:",
|
|
14302
|
+
const D = k(R);
|
|
14303
|
+
if (!D.success) return console.error("Validation failed:", D), D.promptContent && n(D.promptContent, D.promptDuration ?? 3e3), void g.preventDefault();
|
|
14304
|
+
console.log("Validation successful:", D);
|
|
14305
14305
|
}), er(xe.DISMISS_TOAST, () => {
|
|
14306
14306
|
u((g) => g - 1);
|
|
14307
14307
|
}), je(() => {
|
|
@@ -14372,7 +14372,7 @@ function Xl() {
|
|
|
14372
14372
|
return typeof localStorage < "u" && localStorage.getItem("QA_BOT_DEBUG") === "true";
|
|
14373
14373
|
}
|
|
14374
14374
|
const fm = "background: #1a5b6e; color: white; padding: 2px 6px; border-radius: 3px;", pm = "background: #7c3aed; color: white; padding: 2px 6px; border-radius: 3px;", hm = "background: #059669; color: white; padding: 2px 6px; border-radius: 3px;", gm = "background: #f59e0b; color: #000; padding: 2px 6px; border-radius: 3px 0 0 3px; font-weight: bold;", mm = "background: #fbbf24; color: #000; padding: 2px 6px; border-radius: 0 3px 3px 0;", vm = () => {
|
|
14375
|
-
Xl() && console.log("%c QA Bot Core %c v".concat("0.2.
|
|
14375
|
+
Xl() && console.log("%c QA Bot Core %c v".concat("0.2.18", " "), gm, mm);
|
|
14376
14376
|
}, _l = function(e) {
|
|
14377
14377
|
if (Xl()) {
|
|
14378
14378
|
for (var n = arguments.length, a = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++) a[i - 1] = arguments[i];
|
|
@@ -14447,31 +14447,34 @@ const fm = "background: #1a5b6e; color: white; padding: 2px 6px; border-radius:
|
|
|
14447
14447
|
}, km = () => {
|
|
14448
14448
|
const [e, n] = Ue(!1), [a, i] = Ue([]), [o, s] = Ue(null), [f, A] = Ue(0), u = Ke(null), d = Ke(null), { replaceMessages: h } = Ns(), { toggleTextAreaDisabled: g } = Hd(), { setSessionId: y, getSessionId: E } = $u();
|
|
14449
14449
|
je(() => {
|
|
14450
|
-
|
|
14451
|
-
|
|
14452
|
-
|
|
14453
|
-
|
|
14454
|
-
|
|
14450
|
+
var R, k;
|
|
14451
|
+
const D = (B) => {
|
|
14452
|
+
u.current && !u.current.contains(B.target) && d.current && !d.current.contains(B.target) && n(!1);
|
|
14453
|
+
}, Q = (k = (R = u.current) === null || R === void 0 ? void 0 : R.getRootNode()) !== null && k !== void 0 ? k : document;
|
|
14454
|
+
return e && Q.addEventListener("mousedown", D), () => {
|
|
14455
|
+
Q.removeEventListener("mousedown", D);
|
|
14455
14456
|
};
|
|
14456
14457
|
}, [e]);
|
|
14457
14458
|
const T = (R) => {
|
|
14458
|
-
|
|
14459
|
-
|
|
14460
|
-
|
|
14459
|
+
var k;
|
|
14460
|
+
const D = E();
|
|
14461
|
+
if (Rr("RESTORE requested", { targetSession: R.slice(-12), currentSession: D == null ? void 0 : D.slice(-12) }), R === D) return Rr("RESTORE skipped - already on this session"), void n(!1);
|
|
14462
|
+
const Q = ((U) => {
|
|
14461
14463
|
var H;
|
|
14462
|
-
return ((H = Ls()[
|
|
14463
|
-
})(R).filter((
|
|
14464
|
+
return ((H = Ls()[U]) === null || H === void 0 ? void 0 : H.messages) || [];
|
|
14465
|
+
})(R).filter((U) => {
|
|
14464
14466
|
var H;
|
|
14465
|
-
return (H =
|
|
14467
|
+
return (H = U.content) === null || H === void 0 ? void 0 : H.trim();
|
|
14466
14468
|
});
|
|
14467
|
-
Rr("Stored messages from our localStorage", { count:
|
|
14468
|
-
const
|
|
14469
|
-
|
|
14470
|
-
|
|
14471
|
-
|
|
14472
|
-
|
|
14473
|
-
|
|
14474
|
-
|
|
14469
|
+
Rr("Stored messages from our localStorage", { count: Q.length, ids: Q.map((U) => U.id.slice(-8)) });
|
|
14470
|
+
const B = Q.map((U) => ({ id: U.id, content: U.content, sender: U.sender.toUpperCase(), type: U.type || "string", timestamp: new Date(U.timestamp).toISOString() }));
|
|
14471
|
+
var N;
|
|
14472
|
+
h(B), Rr("replaceMessages called", { count: B.length }), N = (k = d.current) === null || k === void 0 ? void 0 : k.getRootNode(), setTimeout(() => {
|
|
14473
|
+
const U = (N || document).querySelector(".rcb-chat-body-container");
|
|
14474
|
+
U && U.querySelectorAll(".rcb-bot-message").forEach((H) => {
|
|
14475
|
+
var j;
|
|
14476
|
+
let Z = H.innerHTML, z = !1;
|
|
14477
|
+
Z.includes("](") && (Z = Z.replace(/\[([^\]]+)\]\(([^)]+)\)/g, '<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>'), z = !0), Z.includes("<a href=") && (Z = Z.replace(/<a\s+href=["']([^"']+)["'][^&]*>([^&]+)<\/a>/gi, '<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'), z = !0), (Z.includes("<a ") || !((j = H.textContent) === null || j === void 0) && j.includes("<a href=")) && (H.textContent || "").includes("<a href=") && (Z = Z.replace(/<a\s+href="([^"]+)"[^&]*>([^&]+)<\/a>/gi, '<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'), z = !0), z && (H.innerHTML = Z);
|
|
14475
14478
|
});
|
|
14476
14479
|
}, 50), y(R), Rr("Session ID updated", { newSession: R.slice(-12) }), g(!1), Rr("Chat input enabled after restore"), n(!1);
|
|
14477
14480
|
};
|
|
@@ -14479,14 +14482,14 @@ const fm = "background: #1a5b6e; color: white; padding: 2px 6px; border-radius:
|
|
|
14479
14482
|
if (!e && (i((() => {
|
|
14480
14483
|
const R = Ls();
|
|
14481
14484
|
return Object.entries(R).map((k) => {
|
|
14482
|
-
let [
|
|
14483
|
-
return Object.assign({ sessionId:
|
|
14484
|
-
}).sort((k,
|
|
14485
|
+
let [D, Q] = k;
|
|
14486
|
+
return Object.assign({ sessionId: D }, Q);
|
|
14487
|
+
}).sort((k, D) => new Date(D.startedAt).getTime() - new Date(k.startedAt).getTime());
|
|
14485
14488
|
})()), d.current)) {
|
|
14486
14489
|
const R = d.current.closest(".rcb-chat-window");
|
|
14487
14490
|
if (R) {
|
|
14488
|
-
const k = R.getBoundingClientRect(),
|
|
14489
|
-
s(k.width + 3), A(k.right -
|
|
14491
|
+
const k = R.getBoundingClientRect(), D = d.current.getBoundingClientRect();
|
|
14492
|
+
s(k.width + 3), A(k.right - D.right - 18 + 4);
|
|
14490
14493
|
}
|
|
14491
14494
|
}
|
|
14492
14495
|
n(!e);
|
|
@@ -14495,8 +14498,8 @@ const fm = "background: #1a5b6e; color: white; padding: 2px 6px; border-radius:
|
|
|
14495
14498
|
}, onMouseLeave: (k) => {
|
|
14496
14499
|
k.currentTarget.style.backgroundColor = "transparent";
|
|
14497
14500
|
} }, Ae.createElement("span", { style: { fontSize: "14px", color: "#333", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" } }, R.preview || "New conversation"), Ae.createElement("span", { style: { fontSize: "12px", color: "#888" } }, ((k) => {
|
|
14498
|
-
const
|
|
14499
|
-
return B === 0 ?
|
|
14501
|
+
const D = new Date(k), Q = (/* @__PURE__ */ new Date()).getTime() - D.getTime(), B = Math.floor(Q / 864e5);
|
|
14502
|
+
return B === 0 ? D.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" }) : B === 1 ? "Yesterday" : B < 7 ? D.toLocaleDateString([], { weekday: "short" }) : D.toLocaleDateString([], { month: "short", day: "numeric" });
|
|
14500
14503
|
})(R.startedAt))))));
|
|
14501
14504
|
};
|
|
14502
14505
|
function Ru() {
|
|
@@ -14567,21 +14570,21 @@ const Tm = () => {
|
|
|
14567
14570
|
const T = [...y];
|
|
14568
14571
|
return E && T.push(E), void ((R, k) => {
|
|
14569
14572
|
R.preventDefault();
|
|
14570
|
-
let
|
|
14573
|
+
let D = -1;
|
|
14571
14574
|
for (let B = 0; B < k.length; B++) if (k[B] === document.activeElement || k[B].contains(document.activeElement)) {
|
|
14572
|
-
|
|
14575
|
+
D = B;
|
|
14573
14576
|
break;
|
|
14574
14577
|
}
|
|
14575
|
-
|
|
14576
|
-
let Q =
|
|
14578
|
+
D === -1 && (D = 0);
|
|
14579
|
+
let Q = D;
|
|
14577
14580
|
switch (R.key) {
|
|
14578
14581
|
case "ArrowDown":
|
|
14579
14582
|
case "ArrowRight":
|
|
14580
|
-
Q =
|
|
14583
|
+
Q = D < k.length - 1 ? D + 1 : 0;
|
|
14581
14584
|
break;
|
|
14582
14585
|
case "ArrowUp":
|
|
14583
14586
|
case "ArrowLeft":
|
|
14584
|
-
Q =
|
|
14587
|
+
Q = D > 0 ? D - 1 : k.length - 1;
|
|
14585
14588
|
break;
|
|
14586
14589
|
case "Home":
|
|
14587
14590
|
Q = 0;
|
|
@@ -14591,14 +14594,14 @@ const Tm = () => {
|
|
|
14591
14594
|
break;
|
|
14592
14595
|
case "Enter":
|
|
14593
14596
|
case " ": {
|
|
14594
|
-
const B = k[
|
|
14595
|
-
return void B.dispatchEvent(
|
|
14597
|
+
const B = k[D], N = new MouseEvent("mousedown", { bubbles: !0, cancelable: !0, view: window });
|
|
14598
|
+
return void B.dispatchEvent(N);
|
|
14596
14599
|
}
|
|
14597
14600
|
default:
|
|
14598
14601
|
return;
|
|
14599
14602
|
}
|
|
14600
|
-
k[Q].focus(), k[Q].setAttribute("tabindex", "0"), k[Q].classList.add("keyboard-focused"), k.forEach((B,
|
|
14601
|
-
|
|
14603
|
+
k[Q].focus(), k[Q].setAttribute("tabindex", "0"), k[Q].classList.add("keyboard-focused"), k.forEach((B, N) => {
|
|
14604
|
+
N !== Q && (B.setAttribute("tabindex", "-1"), B.classList.remove("keyboard-focused"));
|
|
14602
14605
|
});
|
|
14603
14606
|
})(s, T);
|
|
14604
14607
|
}
|
|
@@ -14683,10 +14686,10 @@ const Tm = () => {
|
|
|
14683
14686
|
const E = Array.from(y.querySelectorAll(".rcb-checkbox-row-container")).filter((T) => T.offsetParent !== null && T.style.display !== "none");
|
|
14684
14687
|
if (E.length > 0) {
|
|
14685
14688
|
const T = y.querySelector(".rcb-checkbox-next-button"), R = [...E];
|
|
14686
|
-
if (T && T.offsetParent !== null && R.push(T), R.forEach((k,
|
|
14687
|
-
k.setAttribute("tabindex",
|
|
14689
|
+
if (T && T.offsetParent !== null && R.push(T), R.forEach((k, D) => {
|
|
14690
|
+
k.setAttribute("tabindex", D === 0 ? "0" : "-1"), D === 0 ? k.classList.add("keyboard-focused") : k.classList.remove("keyboard-focused");
|
|
14688
14691
|
}), E.length > 1) {
|
|
14689
|
-
y.querySelectorAll(".keyboard-nav-hint").forEach((
|
|
14692
|
+
y.querySelectorAll(".keyboard-nav-hint").forEach((D) => D.remove());
|
|
14690
14693
|
const k = document.createElement("div");
|
|
14691
14694
|
k.className = "keyboard-nav-hint", k.textContent = "Use arrow keys ↕ to navigate, Enter to select/deselect, or click any option", k.style.cssText = "font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;", y.insertBefore(k, y.firstChild);
|
|
14692
14695
|
}
|
|
@@ -14755,7 +14758,7 @@ const Tm = () => {
|
|
|
14755
14758
|
};
|
|
14756
14759
|
}, []), null), Im = "#1a5b6e", Bm = "#107180", Rm = "Arial, sans-serif", ld = "Q&A Bot", Mm = "/chat-icon.svg", Om = "Type your question here...", _m = "Select an option to continue", Lm = !1, Qm = "Ask me a question!", cd = "/login", Fm = { general: { showHeader: !0, showFooter: !0 }, tooltip: { mode: "CLOSE" }, chatInput: { disabled: !1, characterLimit: 1e3, showCharacterCount: !1, allowNewline: !0, blockSpam: !1 }, chatWindow: { defaultOpen: !1, showScrollbar: !1 }, botBubble: { simulateStream: !0, streamSpeed: 10, showAvatar: !1 }, userBubble: { showAvatar: !1 }, notification: { disabled: !0, showCount: !1 }, audio: { disabled: !0 }, emoji: { disabled: !0 }, fileAttachment: { disabled: !0 } }, Zu = Cn((e, n) => {
|
|
14757
14760
|
var a, i;
|
|
14758
|
-
const { apiKey: o, qaEndpoint: s, ratingEndpoint: f, welcomeMessage: A, open: u, onOpenChange: d, isLoggedIn: h, allowAnonAccess: g = !1, actingUser: y, primaryColor: E, secondaryColor: T, botName: R, logo: k, placeholder:
|
|
14761
|
+
const { apiKey: o, qaEndpoint: s, ratingEndpoint: f, welcomeMessage: A, open: u, onOpenChange: d, isLoggedIn: h, allowAnonAccess: g = !1, actingUser: y, primaryColor: E, secondaryColor: T, botName: R, logo: k, placeholder: D, errorMessage: Q, embedded: B, footerText: N, footerLink: U, tooltipText: H, loginUrl: j, customFlow: Z, onAnalyticsEvent: z } = e, W = Ke("bot_".concat(Math.random().toString(36).substr(2, 9)));
|
|
14759
14762
|
je(() => {
|
|
14760
14763
|
vm();
|
|
14761
14764
|
}, []);
|
|
@@ -14767,15 +14770,15 @@ const Tm = () => {
|
|
|
14767
14770
|
}, [h]);
|
|
14768
14771
|
const be = B !== void 0 ? B : Lm, ge = Ce((fe) => {
|
|
14769
14772
|
var ie;
|
|
14770
|
-
|
|
14771
|
-
}, [
|
|
14773
|
+
z && z(Object.assign(Object.assign({}, fe), { timestamp: Date.now(), sessionId: (ie = $.current) !== null && ie !== void 0 ? ie : void 0, pageUrl: typeof window < "u" ? window.location.href : void 0, isEmbedded: be }));
|
|
14774
|
+
}, [z, be]), me = nn(() => {
|
|
14772
14775
|
const fe = Object.assign({}, Fm);
|
|
14773
14776
|
fe.general = Object.assign(Object.assign({}, fe.general), { primaryColor: E || Im, secondaryColor: T || Bm, fontFamily: Rm, embedded: be });
|
|
14774
|
-
const ie = se === !1 ? [Ae.createElement(id, { key: "login-button", loginUrl:
|
|
14775
|
-
fe.header = { title: Ae.createElement("span", { style: { fontSize: 14, fontWeight: 500 } }, R || ld), showAvatar: !0, avatar: k || Mm, buttons: [...ie, kt.CLOSE_CHAT_BUTTON] }, fe.chatInput = Object.assign(Object.assign({}, fe.chatInput), { disabled: !1, enabledPlaceholderText:
|
|
14776
|
-
const he =
|
|
14777
|
+
const ie = se === !1 ? [Ae.createElement(id, { key: "login-button", loginUrl: j || cd, isHeaderButton: !0 })] : [Ae.createElement(km, { key: "history-button" }), Ae.createElement(Am, { key: "user-icon" })];
|
|
14778
|
+
fe.header = { title: Ae.createElement("span", { style: { fontSize: 14, fontWeight: 500 } }, R || ld), showAvatar: !0, avatar: k || Mm, buttons: [...ie, kt.CLOSE_CHAT_BUTTON] }, fe.chatInput = Object.assign(Object.assign({}, fe.chatInput), { disabled: !1, enabledPlaceholderText: D || Om, disabledPlaceholderText: Q || _m }), fe.tooltip = Object.assign(Object.assign({}, fe.tooltip), { text: H || Qm });
|
|
14779
|
+
const he = N ? U ? Ae.createElement("a", { href: U, target: "_blank", rel: "noopener noreferrer", key: "footer-link" }, N) : Ae.createElement("span", { key: "footer-text" }, N) : null;
|
|
14777
14780
|
return fe.footer = { text: he, buttons: [Ae.createElement(Pm, { key: "new-chat-button" })] }, fe.event = { rcbPreInjectMessage: !0, rcbPostInjectMessage: !0, rcbUserSubmitText: !0, rcbChangePath: !0, rcbToggleChatWindow: !0 }, fe;
|
|
14778
|
-
}, [E, T, R, k,
|
|
14781
|
+
}, [E, T, R, k, D, Q, be, H, se, j, N, U]), _ = Ke(null), Be = function(fe) {
|
|
14779
14782
|
let ie = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
14780
14783
|
return nn(() => {
|
|
14781
14784
|
const he = (ye, Ie) => {
|
|
@@ -14841,7 +14844,7 @@ const Tm = () => {
|
|
|
14841
14844
|
if (!rn.ok) throw new Error("API returned ".concat(rn.status));
|
|
14842
14845
|
const zt = await rn.json(), nt = zt.response || zt.answer || zt.text || zt.message;
|
|
14843
14846
|
if (!nt) throw new Error("Invalid response format from API");
|
|
14844
|
-
const
|
|
14847
|
+
const te = ((Fe) => {
|
|
14845
14848
|
if (!Fe || typeof Fe != "string") return Fe;
|
|
14846
14849
|
let _e = Fe.replace(/\[(https?:\/\/[^\s]+?)\]/gi, "[$1]($1)");
|
|
14847
14850
|
return _e = _e.replace(new RegExp(`(?<!\\]\\(|href=["']|\\[)https?:\\/\\/[^\\s[\\]()]+`, "gi"), (ut) => {
|
|
@@ -14856,9 +14859,9 @@ const Tm = () => {
|
|
|
14856
14859
|
return _e && rt.push("• Confidence: ".concat(_e)), ut && ut.length > 0 && rt.push("• Tools used: ".concat(ut.join(", "))), yt != null && yt.agent && rt.push("• Agent: ".concat(yt.agent)), `---
|
|
14857
14860
|
`.concat(rt.join(`
|
|
14858
14861
|
`));
|
|
14859
|
-
}(zt), Ee = we ? "".concat(
|
|
14862
|
+
}(zt), Ee = we ? "".concat(te, `
|
|
14860
14863
|
|
|
14861
|
-
`).concat(we) :
|
|
14864
|
+
`).concat(we) : te;
|
|
14862
14865
|
return await vt.injectMessage(Ee), mt == null || mt({ type: "chatbot_answer_received", queryId: tt, responseTimeMs: Tn, success: !0, responseLength: nt.length, hasMetadata: !!we }), Pn = !0, setTimeout(async () => {
|
|
14863
14866
|
await vt.injectMessage("Feel free to ask another question.");
|
|
14864
14867
|
}, 100), null;
|
|
@@ -14866,9 +14869,9 @@ const Tm = () => {
|
|
|
14866
14869
|
return Si("Error in Q&A flow:", tt), mt == null || mt({ type: "chatbot_answer_error", queryId: St ?? void 0, errorType: tt instanceof Error ? tt.message : "unknown" }), "I apologize, but I'm having trouble processing your question. Please try again later.";
|
|
14867
14870
|
}
|
|
14868
14871
|
}, options: (vt) => We && We() || vt.userInput === "👍 Helpful" || vt.userInput === "👎 Not helpful" ? [] : Ie && Pn ? ["👍 Helpful", "👎 Not helpful"] : [], renderMarkdown: ["BOT"], chatDisabled: !1, path: "qa_loop" } };
|
|
14869
|
-
})({ endpoint: s, ratingEndpoint: f, apiKey: o, sessionId: ae.current.getSessionId, isResetting: ae.current.isResetting, isLoggedIn: se, allowAnonAccess: g, loginUrl:
|
|
14870
|
-
return Object.assign(Object.assign({ start: { message: A, transition: { duration: 0 }, path: "qa_loop" } }, fe),
|
|
14871
|
-
}, [o, s, f, A, se, g,
|
|
14872
|
+
})({ endpoint: s, ratingEndpoint: f, apiKey: o, sessionId: ae.current.getSessionId, isResetting: ae.current.isResetting, isLoggedIn: se, allowAnonAccess: g, loginUrl: j || cd, actingUser: y, trackEvent: ge });
|
|
14873
|
+
return Object.assign(Object.assign({ start: { message: A, transition: { duration: 0 }, path: "qa_loop" } }, fe), Z || {});
|
|
14874
|
+
}, [o, s, f, A, se, g, j, Z, y, ge]), ve = nn(() => {
|
|
14872
14875
|
return [() => ch(ie), cm(), () => um(fe)];
|
|
14873
14876
|
var fe, ie;
|
|
14874
14877
|
}, []);
|
|
@@ -14949,74 +14952,74 @@ const Hm = () => {
|
|
|
14949
14952
|
}, i.onerror = () => a(new Error("Failed to read file ".concat(e.name))), i.readAsDataURL(e);
|
|
14950
14953
|
}), zm = (e) => Promise.all(e.map(Um)), jm = (e) => e < 1024 ? "".concat(e, " B") : e < 1048576 ? "".concat((e / 1024).toFixed(1), " KB") : "".concat((e / 1048576).toFixed(1), " MB"), Jl = (e) => {
|
|
14951
14954
|
let { onFileUpload: n, maxSizeMB: a = 10, acceptedTypes: i = "image/*,application/pdf,text/*,.doc,.docx", enableScreenshot: o = !1, className: s } = e;
|
|
14952
|
-
const [f, A] = Ue(!1), [u, d] = Ue([]), [h, g] = Ue(null), y = Ke(null), { captureScreenshot: E, isCapturing: T, isScreenCaptureAvailable: R } = Hm(), k = (
|
|
14953
|
-
const
|
|
14954
|
-
|
|
14955
|
-
},
|
|
14956
|
-
if (!
|
|
14957
|
-
let
|
|
14955
|
+
const [f, A] = Ue(!1), [u, d] = Ue([]), [h, g] = Ue(null), y = Ke(null), { captureScreenshot: E, isCapturing: T, isScreenCaptureAvailable: R } = Hm(), k = (H) => {
|
|
14956
|
+
const j = document.createElement("div");
|
|
14957
|
+
j.setAttribute("aria-live", "assertive"), j.setAttribute("aria-atomic", "true"), j.className = "sr-only", j.textContent = H, document.body.appendChild(j), setTimeout(() => document.body.removeChild(j), 1e3);
|
|
14958
|
+
}, D = (H) => {
|
|
14959
|
+
if (!H || H.length === 0) return void bm("FileUploadComponent: No valid files provided to handleFiles");
|
|
14960
|
+
let j;
|
|
14958
14961
|
try {
|
|
14959
|
-
|
|
14962
|
+
j = Array.from(H);
|
|
14960
14963
|
} catch ($) {
|
|
14961
14964
|
return Si("FileUploadComponent: Error converting files to array:", $), void k("Error processing selected files. Please try again.");
|
|
14962
14965
|
}
|
|
14963
|
-
const
|
|
14964
|
-
d(
|
|
14965
|
-
const
|
|
14966
|
-
k("".concat(
|
|
14966
|
+
const Z = [...u, ...j];
|
|
14967
|
+
d(Z);
|
|
14968
|
+
const z = j.length, W = j.map(($) => $.name).join(", ");
|
|
14969
|
+
k("".concat(z, " file").concat(z > 1 ? "s" : "", " selected: ").concat(W)), setTimeout(() => {
|
|
14967
14970
|
const $ = document.querySelector(".rcb-chat-content");
|
|
14968
14971
|
$ && ($.scrollTop = $.scrollHeight);
|
|
14969
|
-
}, 100), n && n(
|
|
14970
|
-
}, Q = (
|
|
14971
|
-
|
|
14972
|
+
}, 100), n && n(Z);
|
|
14973
|
+
}, Q = (H) => {
|
|
14974
|
+
H.preventDefault(), H.stopPropagation(), H.type === "dragenter" || H.type === "dragover" ? A(!0) : H.type === "dragleave" && A(!1);
|
|
14972
14975
|
}, B = () => {
|
|
14973
14976
|
try {
|
|
14974
14977
|
y.current && y.current.click();
|
|
14975
|
-
} catch (
|
|
14976
|
-
Si("FileUploadComponent: Error in handleButtonClick:",
|
|
14978
|
+
} catch (H) {
|
|
14979
|
+
Si("FileUploadComponent: Error in handleButtonClick:", H), k("Error opening file selection dialog. Please try again.");
|
|
14977
14980
|
}
|
|
14978
|
-
},
|
|
14981
|
+
}, N = () => {
|
|
14979
14982
|
g(null);
|
|
14980
14983
|
}, U = o && R;
|
|
14981
|
-
return Ae.createElement("div", { className: "file-upload-container ".concat(s || ""), style: { padding: "16px", margin: "8px 0" } }, U && Ae.createElement("div", { style: { display: "flex", justifyContent: "center", marginBottom: "10px" } }, Ae.createElement("button", { onClick: (
|
|
14982
|
-
|
|
14984
|
+
return Ae.createElement("div", { className: "file-upload-container ".concat(s || ""), style: { padding: "16px", margin: "8px 0" } }, U && Ae.createElement("div", { style: { display: "flex", justifyContent: "center", marginBottom: "10px" } }, Ae.createElement("button", { onClick: (H) => {
|
|
14985
|
+
H.preventDefault(), (async () => {
|
|
14983
14986
|
try {
|
|
14984
|
-
const
|
|
14985
|
-
|
|
14987
|
+
const j = await E();
|
|
14988
|
+
D([j]), k("Screenshot captured successfully");
|
|
14986
14989
|
} catch {
|
|
14987
14990
|
k("Error capturing screenshot. Please try again.");
|
|
14988
14991
|
}
|
|
14989
14992
|
})();
|
|
14990
|
-
}, disabled: T, "aria-describedby": "screenshot-help", "aria-label": T ? "Taking screenshot, please wait" : "Take a screenshot to attach", style: { display: "flex", alignItems: "center", gap: "8px", backgroundColor: "#107180", color: "white", border: "none", borderRadius: "5px", padding: "8px 12px", cursor: T ? "not-allowed" : "pointer", fontSize: "14px", fontWeight: "500", boxShadow: "0 1px 3px rgba(0,0,0,0.2)" } }, Ae.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, Ae.createElement("path", { d: "M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z" }), Ae.createElement("circle", { cx: "12", cy: "13", r: "4" })), T ? "Taking screenshot..." : "Take screenshot..."), Ae.createElement("span", { id: "screenshot-help", className: "sr-only" }, "Captures the current screen and adds it as an attachment")), Ae.createElement("div", { className: "file-upload-dropzone ".concat(f ? "active" : ""), onDragEnter: Q, onDragLeave: Q, onDragOver: Q, onDrop: (
|
|
14991
|
-
var
|
|
14992
|
-
|
|
14993
|
+
}, disabled: T, "aria-describedby": "screenshot-help", "aria-label": T ? "Taking screenshot, please wait" : "Take a screenshot to attach", style: { display: "flex", alignItems: "center", gap: "8px", backgroundColor: "#107180", color: "white", border: "none", borderRadius: "5px", padding: "8px 12px", cursor: T ? "not-allowed" : "pointer", fontSize: "14px", fontWeight: "500", boxShadow: "0 1px 3px rgba(0,0,0,0.2)" } }, Ae.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, Ae.createElement("path", { d: "M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z" }), Ae.createElement("circle", { cx: "12", cy: "13", r: "4" })), T ? "Taking screenshot..." : "Take screenshot..."), Ae.createElement("span", { id: "screenshot-help", className: "sr-only" }, "Captures the current screen and adds it as an attachment")), Ae.createElement("div", { className: "file-upload-dropzone ".concat(f ? "active" : ""), onDragEnter: Q, onDragLeave: Q, onDragOver: Q, onDrop: (H) => {
|
|
14994
|
+
var j;
|
|
14995
|
+
H.preventDefault(), H.stopPropagation(), A(!1);
|
|
14993
14996
|
try {
|
|
14994
|
-
!((
|
|
14995
|
-
} catch (
|
|
14996
|
-
Si("FileUploadComponent: Error in handleDrop:",
|
|
14997
|
-
}
|
|
14998
|
-
}, role: "button", tabIndex: 0, "aria-label": "File upload area. Click to select files or drag and drop files here.", "aria-describedby": "upload-instructions", onKeyDown: (
|
|
14999
|
-
|
|
15000
|
-
}, style: { padding: "20px", border: "2px dashed #ccc", borderRadius: "8px", backgroundColor: f ? "#f0f8ff" : "#fafafa", transition: "all 0.3s ease" } }, Ae.createElement("input", { ref: y, type: "file", className: "file-input", onChange: (
|
|
15001
|
-
var
|
|
14997
|
+
!((j = H.dataTransfer) === null || j === void 0) && j.files && H.dataTransfer.files.length > 0 && D(H.dataTransfer.files);
|
|
14998
|
+
} catch (Z) {
|
|
14999
|
+
Si("FileUploadComponent: Error in handleDrop:", Z), k("Error processing dropped files. Please try again.");
|
|
15000
|
+
}
|
|
15001
|
+
}, role: "button", tabIndex: 0, "aria-label": "File upload area. Click to select files or drag and drop files here.", "aria-describedby": "upload-instructions", onKeyDown: (H) => {
|
|
15002
|
+
H.key !== "Enter" && H.key !== " " || (H.preventDefault(), B());
|
|
15003
|
+
}, style: { padding: "20px", border: "2px dashed #ccc", borderRadius: "8px", backgroundColor: f ? "#f0f8ff" : "#fafafa", transition: "all 0.3s ease" } }, Ae.createElement("input", { ref: y, type: "file", className: "file-input", onChange: (H) => {
|
|
15004
|
+
var j;
|
|
15002
15005
|
try {
|
|
15003
|
-
!((
|
|
15004
|
-
} catch (
|
|
15005
|
-
Si("FileUploadComponent: Error in handleFileSelect:",
|
|
15006
|
-
}
|
|
15007
|
-
}, multiple: !0, style: { display: "none" }, "aria-label": "Select files to upload", accept: i }), Ae.createElement("div", { className: "upload-content", onClick: B, style: { cursor: "pointer", flexDirection: "column", alignItems: "center", display: "flex", textAlign: "center", padding: "12px" } }, Ae.createElement("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", gap: "8px" } }, Ae.createElement("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", gap: "10px" } }, Ae.createElement(Nm, null), Ae.createElement("p", { style: { margin: 0, fontWeight: "bold" } }, "Upload Files")), Ae.createElement("p", { id: "upload-instructions", style: { margin: 0, fontSize: "14px", color: "#666" } }, "Drag and drop files here or click to select. (Max ", a, "MB each)")), u.length > 0 && Ae.createElement("div", { className: "selected-files", style: { display: "flex", flexWrap: "wrap", gap: "8px", marginTop: "12px", alignItems: "center" } }, Ae.createElement("span", { style: { fontWeight: 400, color: "#888", fontSize: "13px", marginRight: "8px", alignSelf: "center" } }, "Selected files:"), u.map((
|
|
15008
|
-
|
|
15009
|
-
g(
|
|
15010
|
-
})(
|
|
15011
|
-
} }, Ae.createElement("span", { onClick: (
|
|
15012
|
-
|
|
15013
|
-
const W = u.filter(($, q) => q !==
|
|
15006
|
+
!((j = H.target) === null || j === void 0) && j.files && H.target.files.length > 0 && D(H.target.files);
|
|
15007
|
+
} catch (Z) {
|
|
15008
|
+
Si("FileUploadComponent: Error in handleFileSelect:", Z), k("Error processing selected files. Please try again.");
|
|
15009
|
+
}
|
|
15010
|
+
}, multiple: !0, style: { display: "none" }, "aria-label": "Select files to upload", accept: i }), Ae.createElement("div", { className: "upload-content", onClick: B, style: { cursor: "pointer", flexDirection: "column", alignItems: "center", display: "flex", textAlign: "center", padding: "12px" } }, Ae.createElement("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", gap: "8px" } }, Ae.createElement("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", gap: "10px" } }, Ae.createElement(Nm, null), Ae.createElement("p", { style: { margin: 0, fontWeight: "bold" } }, "Upload Files")), Ae.createElement("p", { id: "upload-instructions", style: { margin: 0, fontSize: "14px", color: "#666" } }, "Drag and drop files here or click to select. (Max ", a, "MB each)")), u.length > 0 && Ae.createElement("div", { className: "selected-files", style: { display: "flex", flexWrap: "wrap", gap: "8px", marginTop: "12px", alignItems: "center" } }, Ae.createElement("span", { style: { fontWeight: 400, color: "#888", fontSize: "13px", marginRight: "8px", alignSelf: "center" } }, "Selected files:"), u.map((H, j) => Ae.createElement("span", { key: j, style: { background: "#fff", color: "#107180", borderRadius: "5px", padding: "4px 12px", fontSize: "14px", marginRight: "4px", marginBottom: "4px", border: "1px solid #ccc", display: "flex", alignItems: "center", gap: "6px", cursor: "pointer" }, onClick: (Z) => {
|
|
15011
|
+
Z.stopPropagation(), ((z) => {
|
|
15012
|
+
g(z);
|
|
15013
|
+
})(H);
|
|
15014
|
+
} }, Ae.createElement("span", { onClick: (Z) => {
|
|
15015
|
+
Z.stopPropagation(), ((z) => {
|
|
15016
|
+
const W = u.filter(($, q) => q !== z);
|
|
15014
15017
|
d(W), n && n(W);
|
|
15015
|
-
})(
|
|
15016
|
-
}, style: { cursor: "pointer", color: "#888", fontWeight: "bold", fontSize: "15px", marginRight: "4px", userSelect: "none", lineHeight: 1 }, title: "Remove file", "aria-label": "Remove ".concat(
|
|
15018
|
+
})(j);
|
|
15019
|
+
}, style: { cursor: "pointer", color: "#888", fontWeight: "bold", fontSize: "15px", marginRight: "4px", userSelect: "none", lineHeight: 1 }, title: "Remove file", "aria-label": "Remove ".concat(H.name) }, "×"), H.name, " (", jm(H.size), ")"))))), (() => {
|
|
15017
15020
|
if (!h) return null;
|
|
15018
|
-
const
|
|
15019
|
-
return Ae.createElement("div", { style: { position: "fixed", top: 0, left: 0, right: 0, bottom: 0, backgroundColor: "rgba(0, 0, 0, 0.7)", display: "flex", justifyContent: "center", alignItems: "center", zIndex: 1e3 }, onClick:
|
|
15021
|
+
const H = h.type.startsWith("image/"), j = h.type.startsWith("text/"), Z = h.type === "application/pdf";
|
|
15022
|
+
return Ae.createElement("div", { style: { position: "fixed", top: 0, left: 0, right: 0, bottom: 0, backgroundColor: "rgba(0, 0, 0, 0.7)", display: "flex", justifyContent: "center", alignItems: "center", zIndex: 1e3 }, onClick: N }, Ae.createElement("div", { style: { backgroundColor: "white", padding: "20px", borderRadius: "8px", maxWidth: "90%", maxHeight: "90%", overflow: "auto", position: "relative" }, onClick: (z) => z.stopPropagation() }, Ae.createElement("button", { onClick: N, style: { position: "absolute", top: "10px", right: "10px", background: "none", border: "none", fontSize: "24px", cursor: "pointer", color: "#666" } }, "×"), Ae.createElement("h3", { style: { marginTop: 0, marginBottom: "16px" } }, h.name), H && Ae.createElement("img", { src: URL.createObjectURL(h), alt: h.name, style: { maxWidth: "100%", maxHeight: "70vh" } }), j && Ae.createElement("pre", { style: { whiteSpace: "pre-wrap", wordWrap: "break-word", maxHeight: "70vh", overflow: "auto", padding: "16px", backgroundColor: "#f5f5f5", borderRadius: "4px" } }, URL.createObjectURL(h)), Z && Ae.createElement("iframe", { src: URL.createObjectURL(h), style: { width: "100%", height: "70vh", border: "none" }, title: h.name }), !H && !j && !Z && Ae.createElement("div", { style: { padding: "20px", textAlign: "center" } }, "Preview not available for this file type")));
|
|
15020
15023
|
})());
|
|
15021
15024
|
};
|
|
15022
15025
|
function Wm(e, n) {
|
|
@@ -16749,70 +16752,70 @@ const Av = Cn(
|
|
|
16749
16752
|
welcome: T,
|
|
16750
16753
|
// Analytics
|
|
16751
16754
|
onAnalyticsEvent: R
|
|
16752
|
-
} = e, k = Ke(null), [
|
|
16755
|
+
} = e, k = Ke(null), [D, Q] = Ue({}), B = nn(() => ({
|
|
16753
16756
|
email: s,
|
|
16754
16757
|
name: f,
|
|
16755
16758
|
accessId: A
|
|
16756
16759
|
}), [s, f, A]);
|
|
16757
16760
|
je(() => {
|
|
16758
16761
|
Vm({
|
|
16759
|
-
ticketForm:
|
|
16762
|
+
ticketForm: D,
|
|
16760
16763
|
setTicketForm: Q
|
|
16761
16764
|
});
|
|
16762
|
-
}, [
|
|
16763
|
-
addMessage: (
|
|
16765
|
+
}, [D]), dd(n, () => ({
|
|
16766
|
+
addMessage: (z) => {
|
|
16764
16767
|
var W, $;
|
|
16765
|
-
($ = (W = k.current) == null ? void 0 : W.addMessage) == null || $.call(W,
|
|
16768
|
+
($ = (W = k.current) == null ? void 0 : W.addMessage) == null || $.call(W, z);
|
|
16766
16769
|
}
|
|
16767
16770
|
}));
|
|
16768
|
-
const
|
|
16771
|
+
const N = T || (i ? Oo.WELCOME_MESSAGE : Oo.WELCOME_MESSAGE_LOGGED_OUT), U = nn(() => uv(), []), H = Ce((z) => {
|
|
16769
16772
|
R && R({
|
|
16770
|
-
...
|
|
16771
|
-
type:
|
|
16772
|
-
timestamp:
|
|
16773
|
-
sessionId:
|
|
16773
|
+
...z,
|
|
16774
|
+
type: z.type,
|
|
16775
|
+
timestamp: z.timestamp ?? Date.now(),
|
|
16776
|
+
sessionId: z.sessionId ?? U
|
|
16774
16777
|
});
|
|
16775
|
-
}, [R, U]),
|
|
16778
|
+
}, [R, U]), j = Ce((z) => {
|
|
16776
16779
|
R && R({
|
|
16777
|
-
...
|
|
16778
|
-
type:
|
|
16779
|
-
timestamp: typeof
|
|
16780
|
-
sessionId: typeof
|
|
16780
|
+
...z,
|
|
16781
|
+
type: z.type,
|
|
16782
|
+
timestamp: typeof z.timestamp == "number" ? z.timestamp : Date.now(),
|
|
16783
|
+
sessionId: typeof z.sessionId == "string" ? z.sessionId : U
|
|
16781
16784
|
});
|
|
16782
|
-
}, [R, U]),
|
|
16783
|
-
const
|
|
16784
|
-
welcome:
|
|
16785
|
+
}, [R, U]), Z = nn(() => {
|
|
16786
|
+
const z = Gm({
|
|
16787
|
+
welcome: N,
|
|
16785
16788
|
setTicketForm: Q,
|
|
16786
16789
|
isLoggedIn: i,
|
|
16787
|
-
trackEvent:
|
|
16790
|
+
trackEvent: H
|
|
16788
16791
|
}), W = nv({
|
|
16789
|
-
ticketForm:
|
|
16792
|
+
ticketForm: D,
|
|
16790
16793
|
setTicketForm: Q,
|
|
16791
16794
|
userInfo: B,
|
|
16792
|
-
trackEvent:
|
|
16795
|
+
trackEvent: H
|
|
16793
16796
|
}), $ = ov({
|
|
16794
|
-
ticketForm:
|
|
16797
|
+
ticketForm: D,
|
|
16795
16798
|
setTicketForm: Q,
|
|
16796
16799
|
userInfo: B,
|
|
16797
|
-
trackEvent:
|
|
16800
|
+
trackEvent: H
|
|
16798
16801
|
}), q = cv({
|
|
16799
16802
|
sessionId: U,
|
|
16800
16803
|
apiKey: a,
|
|
16801
|
-
trackEvent:
|
|
16804
|
+
trackEvent: H
|
|
16802
16805
|
}), ae = {
|
|
16803
|
-
...
|
|
16806
|
+
...z,
|
|
16804
16807
|
...W,
|
|
16805
16808
|
...$,
|
|
16806
16809
|
...q
|
|
16807
16810
|
};
|
|
16808
16811
|
return Wm(ae, { disableOnOptions: !0 });
|
|
16809
|
-
}, [
|
|
16812
|
+
}, [N, D, B, U, a, i, H]);
|
|
16810
16813
|
return /* @__PURE__ */ X(
|
|
16811
16814
|
Zu,
|
|
16812
16815
|
{
|
|
16813
16816
|
ref: k,
|
|
16814
16817
|
isLoggedIn: i,
|
|
16815
|
-
onAnalyticsEvent:
|
|
16818
|
+
onAnalyticsEvent: j,
|
|
16816
16819
|
apiKey: a,
|
|
16817
16820
|
qaEndpoint: ki.QA_ENDPOINT,
|
|
16818
16821
|
ratingEndpoint: ki.RATING_ENDPOINT,
|
|
@@ -16820,7 +16823,7 @@ const Av = Cn(
|
|
|
16820
16823
|
logo: Oo.LOGO,
|
|
16821
16824
|
primaryColor: Oo.PRIMARY_COLOR,
|
|
16822
16825
|
secondaryColor: Oo.SECONDARY_COLOR,
|
|
16823
|
-
welcomeMessage:
|
|
16826
|
+
welcomeMessage: N,
|
|
16824
16827
|
tooltipText: Oo.TOOLTIP,
|
|
16825
16828
|
loginUrl: o,
|
|
16826
16829
|
open: g,
|
|
@@ -16828,7 +16831,7 @@ const Av = Cn(
|
|
|
16828
16831
|
embedded: E,
|
|
16829
16832
|
footerText: "Need more help?",
|
|
16830
16833
|
footerLink: "https://support.access-ci.org",
|
|
16831
|
-
customFlow:
|
|
16834
|
+
customFlow: Z
|
|
16832
16835
|
}
|
|
16833
16836
|
);
|
|
16834
16837
|
}
|