@apolitical/component-library 4.5.0-beta.5 → 4.5.0-beta.6
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/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import re, { memo as Ht, useState as fe, useEffect as me, useRef as Fe, useMemo as zt, forwardRef as Ms, Children as ss, createContext as Et, useContext as
|
|
1
|
+
import re, { memo as Ht, useState as fe, useEffect as me, useRef as Fe, useMemo as zt, forwardRef as Ms, Children as ss, createContext as Et, useContext as Ze, useCallback as Re, useReducer as nr, useLayoutEffect as Kf, Component as Zf, Fragment as Ar, Suspense as Yf } from "react";
|
|
2
2
|
import { useIntl as le, FormattedMessage as st, IntlProvider as Gf, createIntl as Qf } from "react-intl";
|
|
3
3
|
import wn from "lodash.clonedeep";
|
|
4
4
|
import Jf from "lodash.set";
|
|
@@ -85,7 +85,7 @@ const Y = /* @__PURE__ */ Tn(sh), oh = ({
|
|
|
85
85
|
...a,
|
|
86
86
|
className: Y("hidden", r, { "show-on-focus": t }),
|
|
87
87
|
children: n
|
|
88
|
-
}),
|
|
88
|
+
}), We = Ht(oh), uh = ({
|
|
89
89
|
element: e = "span",
|
|
90
90
|
children: t = null,
|
|
91
91
|
...n
|
|
@@ -141,19 +141,19 @@ function ch() {
|
|
|
141
141
|
var v = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
142
142
|
function w(S) {
|
|
143
143
|
{
|
|
144
|
-
for (var ae = arguments.length, ue = new Array(ae > 1 ? ae - 1 : 0),
|
|
145
|
-
ue[
|
|
144
|
+
for (var ae = arguments.length, ue = new Array(ae > 1 ? ae - 1 : 0), Ce = 1; Ce < ae; Ce++)
|
|
145
|
+
ue[Ce - 1] = arguments[Ce];
|
|
146
146
|
_("error", S, ue);
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
function _(S, ae, ue) {
|
|
150
150
|
{
|
|
151
|
-
var
|
|
151
|
+
var Ce = v.ReactDebugCurrentFrame, Me = Ce.getStackAddendum();
|
|
152
152
|
Me !== "" && (ae += "%s", ue = ue.concat([Me]));
|
|
153
|
-
var
|
|
154
|
-
return String(
|
|
153
|
+
var qe = ue.map(function(Oe) {
|
|
154
|
+
return String(Oe);
|
|
155
155
|
});
|
|
156
|
-
|
|
156
|
+
qe.unshift("Warning: " + ae), Function.prototype.apply.call(console[S], console, qe);
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
var C = !1, x = !1, F = !1, T = !1, q = !1, P;
|
|
@@ -166,9 +166,9 @@ function ch() {
|
|
|
166
166
|
S.$$typeof === P || S.getModuleId !== void 0));
|
|
167
167
|
}
|
|
168
168
|
function M(S, ae, ue) {
|
|
169
|
-
var
|
|
170
|
-
if (
|
|
171
|
-
return
|
|
169
|
+
var Ce = S.displayName;
|
|
170
|
+
if (Ce)
|
|
171
|
+
return Ce;
|
|
172
172
|
var Me = ae.displayName || ae.name || "";
|
|
173
173
|
return Me !== "" ? ue + "(" + Me + ")" : ue;
|
|
174
174
|
}
|
|
@@ -207,12 +207,12 @@ function ch() {
|
|
|
207
207
|
case l:
|
|
208
208
|
return M(S, S.render, "ForwardRef");
|
|
209
209
|
case h:
|
|
210
|
-
var
|
|
211
|
-
return
|
|
210
|
+
var Ce = S.displayName || null;
|
|
211
|
+
return Ce !== null ? Ce : B(S.type) || "Memo";
|
|
212
212
|
case p: {
|
|
213
|
-
var Me = S,
|
|
213
|
+
var Me = S, qe = Me._payload, Oe = Me._init;
|
|
214
214
|
try {
|
|
215
|
-
return B(
|
|
215
|
+
return B(Oe(qe));
|
|
216
216
|
} catch {
|
|
217
217
|
return null;
|
|
218
218
|
}
|
|
@@ -289,8 +289,8 @@ function ch() {
|
|
|
289
289
|
try {
|
|
290
290
|
throw Error();
|
|
291
291
|
} catch (Me) {
|
|
292
|
-
var
|
|
293
|
-
U =
|
|
292
|
+
var Ce = Me.stack.trim().match(/\n( *(at )?)/);
|
|
293
|
+
U = Ce && Ce[1] || "";
|
|
294
294
|
}
|
|
295
295
|
return `
|
|
296
296
|
` + U + S;
|
|
@@ -309,48 +309,48 @@ function ch() {
|
|
|
309
309
|
if (ue !== void 0)
|
|
310
310
|
return ue;
|
|
311
311
|
}
|
|
312
|
-
var
|
|
312
|
+
var Ce;
|
|
313
313
|
ee = !0;
|
|
314
314
|
var Me = Error.prepareStackTrace;
|
|
315
315
|
Error.prepareStackTrace = void 0;
|
|
316
|
-
var
|
|
317
|
-
|
|
316
|
+
var qe;
|
|
317
|
+
qe = R.current, R.current = null, A();
|
|
318
318
|
try {
|
|
319
319
|
if (ae) {
|
|
320
|
-
var
|
|
320
|
+
var Oe = function() {
|
|
321
321
|
throw Error();
|
|
322
322
|
};
|
|
323
|
-
if (Object.defineProperty(
|
|
323
|
+
if (Object.defineProperty(Oe.prototype, "props", {
|
|
324
324
|
set: function() {
|
|
325
325
|
throw Error();
|
|
326
326
|
}
|
|
327
327
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
328
328
|
try {
|
|
329
|
-
Reflect.construct(
|
|
329
|
+
Reflect.construct(Oe, []);
|
|
330
330
|
} catch (Vt) {
|
|
331
|
-
|
|
331
|
+
Ce = Vt;
|
|
332
332
|
}
|
|
333
|
-
Reflect.construct(S, [],
|
|
333
|
+
Reflect.construct(S, [], Oe);
|
|
334
334
|
} else {
|
|
335
335
|
try {
|
|
336
|
-
|
|
336
|
+
Oe.call();
|
|
337
337
|
} catch (Vt) {
|
|
338
|
-
|
|
338
|
+
Ce = Vt;
|
|
339
339
|
}
|
|
340
|
-
S.call(
|
|
340
|
+
S.call(Oe.prototype);
|
|
341
341
|
}
|
|
342
342
|
} else {
|
|
343
343
|
try {
|
|
344
344
|
throw Error();
|
|
345
345
|
} catch (Vt) {
|
|
346
|
-
|
|
346
|
+
Ce = Vt;
|
|
347
347
|
}
|
|
348
348
|
S();
|
|
349
349
|
}
|
|
350
350
|
} catch (Vt) {
|
|
351
|
-
if (Vt &&
|
|
351
|
+
if (Vt && Ce && typeof Vt.stack == "string") {
|
|
352
352
|
for (var Se = Vt.stack.split(`
|
|
353
|
-
`), lt =
|
|
353
|
+
`), lt = Ce.stack.split(`
|
|
354
354
|
`), Qe = Se.length - 1, Je = lt.length - 1; Qe >= 1 && Je >= 0 && Se[Qe] !== lt[Je]; )
|
|
355
355
|
Je--;
|
|
356
356
|
for (; Qe >= 1 && Je >= 0; Qe--, Je--)
|
|
@@ -367,7 +367,7 @@ function ch() {
|
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
} finally {
|
|
370
|
-
ee = !1, R.current =
|
|
370
|
+
ee = !1, R.current = qe, I(), Error.prepareStackTrace = Me;
|
|
371
371
|
}
|
|
372
372
|
var Nn = S ? S.displayName || S.name : "", To = Nn ? te(Nn) : "";
|
|
373
373
|
return typeof S == "function" && ne.set(S, To), To;
|
|
@@ -379,7 +379,7 @@ function ch() {
|
|
|
379
379
|
var ae = S.prototype;
|
|
380
380
|
return !!(ae && ae.isReactComponent);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function ke(S, ae, ue) {
|
|
383
383
|
if (S == null)
|
|
384
384
|
return "";
|
|
385
385
|
if (typeof S == "function")
|
|
@@ -397,46 +397,46 @@ function ch() {
|
|
|
397
397
|
case l:
|
|
398
398
|
return De(S.render);
|
|
399
399
|
case h:
|
|
400
|
-
return
|
|
400
|
+
return ke(S.type, ae, ue);
|
|
401
401
|
case p: {
|
|
402
|
-
var
|
|
402
|
+
var Ce = S, Me = Ce._payload, qe = Ce._init;
|
|
403
403
|
try {
|
|
404
|
-
return
|
|
404
|
+
return ke(qe(Me), ae, ue);
|
|
405
405
|
} catch {
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
return "";
|
|
410
410
|
}
|
|
411
|
-
var
|
|
412
|
-
function
|
|
411
|
+
var Be = Object.prototype.hasOwnProperty, we = {}, Ne = v.ReactDebugCurrentFrame;
|
|
412
|
+
function He(S) {
|
|
413
413
|
if (S) {
|
|
414
|
-
var ae = S._owner, ue =
|
|
415
|
-
|
|
414
|
+
var ae = S._owner, ue = ke(S.type, S._source, ae ? ae.type : null);
|
|
415
|
+
Ne.setExtraStackFrame(ue);
|
|
416
416
|
} else
|
|
417
|
-
|
|
417
|
+
Ne.setExtraStackFrame(null);
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function Ge(S, ae, ue, Ce, Me) {
|
|
420
420
|
{
|
|
421
|
-
var
|
|
422
|
-
for (var
|
|
423
|
-
if (
|
|
421
|
+
var qe = Function.call.bind(Be);
|
|
422
|
+
for (var Oe in S)
|
|
423
|
+
if (qe(S, Oe)) {
|
|
424
424
|
var Se = void 0;
|
|
425
425
|
try {
|
|
426
|
-
if (typeof S[
|
|
427
|
-
var lt = Error((
|
|
426
|
+
if (typeof S[Oe] != "function") {
|
|
427
|
+
var lt = Error((Ce || "React class") + ": " + ue + " type `" + Oe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof S[Oe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
428
428
|
throw lt.name = "Invariant Violation", lt;
|
|
429
429
|
}
|
|
430
|
-
Se = S[
|
|
430
|
+
Se = S[Oe](ae, Oe, Ce, ue, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
431
431
|
} catch (Qe) {
|
|
432
432
|
Se = Qe;
|
|
433
433
|
}
|
|
434
|
-
Se && !(Se instanceof Error) && (
|
|
434
|
+
Se && !(Se instanceof Error) && (He(Me), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Ce || "React class", ue, Oe, typeof Se), He(null)), Se instanceof Error && !(Se.message in we) && (we[Se.message] = !0, He(Me), w("Failed %s type: %s", ue, Se.message), He(null));
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
438
|
var tt = Array.isArray;
|
|
439
|
-
function
|
|
439
|
+
function Pe(S) {
|
|
440
440
|
return tt(S);
|
|
441
441
|
}
|
|
442
442
|
function ve(S) {
|
|
@@ -445,7 +445,7 @@ function ch() {
|
|
|
445
445
|
return ue;
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function _e(S) {
|
|
449
449
|
try {
|
|
450
450
|
return V(S), !1;
|
|
451
451
|
} catch {
|
|
@@ -456,7 +456,7 @@ function ch() {
|
|
|
456
456
|
return "" + S;
|
|
457
457
|
}
|
|
458
458
|
function ie(S) {
|
|
459
|
-
if (
|
|
459
|
+
if (_e(S))
|
|
460
460
|
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ve(S)), V(S);
|
|
461
461
|
}
|
|
462
462
|
var ge = v.ReactCurrentOwner, be = {
|
|
@@ -467,7 +467,7 @@ function ch() {
|
|
|
467
467
|
}, Ae, Xe, et;
|
|
468
468
|
et = {};
|
|
469
469
|
function yt(S) {
|
|
470
|
-
if (
|
|
470
|
+
if (Be.call(S, "ref")) {
|
|
471
471
|
var ae = Object.getOwnPropertyDescriptor(S, "ref").get;
|
|
472
472
|
if (ae && ae.isReactWarning)
|
|
473
473
|
return !1;
|
|
@@ -475,7 +475,7 @@ function ch() {
|
|
|
475
475
|
return S.ref !== void 0;
|
|
476
476
|
}
|
|
477
477
|
function Ut(S) {
|
|
478
|
-
if (
|
|
478
|
+
if (Be.call(S, "key")) {
|
|
479
479
|
var ae = Object.getOwnPropertyDescriptor(S, "key").get;
|
|
480
480
|
if (ae && ae.isReactWarning)
|
|
481
481
|
return !1;
|
|
@@ -510,7 +510,7 @@ function ch() {
|
|
|
510
510
|
});
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
|
-
var Dt = function(S, ae, ue,
|
|
513
|
+
var Dt = function(S, ae, ue, Ce, Me, qe, Oe) {
|
|
514
514
|
var Se = {
|
|
515
515
|
// This tag allows us to uniquely identify this as a React Element
|
|
516
516
|
$$typeof: t,
|
|
@@ -518,9 +518,9 @@ function ch() {
|
|
|
518
518
|
type: S,
|
|
519
519
|
key: ae,
|
|
520
520
|
ref: ue,
|
|
521
|
-
props:
|
|
521
|
+
props: Oe,
|
|
522
522
|
// Record the component responsible for creating this element.
|
|
523
|
-
_owner:
|
|
523
|
+
_owner: qe
|
|
524
524
|
};
|
|
525
525
|
return Se._store = {}, Object.defineProperty(Se._store, "validated", {
|
|
526
526
|
configurable: !1,
|
|
@@ -531,7 +531,7 @@ function ch() {
|
|
|
531
531
|
configurable: !1,
|
|
532
532
|
enumerable: !1,
|
|
533
533
|
writable: !1,
|
|
534
|
-
value:
|
|
534
|
+
value: Ce
|
|
535
535
|
}), Object.defineProperty(Se, "_source", {
|
|
536
536
|
configurable: !1,
|
|
537
537
|
enumerable: !1,
|
|
@@ -539,28 +539,28 @@ function ch() {
|
|
|
539
539
|
value: Me
|
|
540
540
|
}), Object.freeze && (Object.freeze(Se.props), Object.freeze(Se)), Se;
|
|
541
541
|
};
|
|
542
|
-
function ai(S, ae, ue,
|
|
542
|
+
function ai(S, ae, ue, Ce, Me) {
|
|
543
543
|
{
|
|
544
|
-
var
|
|
544
|
+
var qe, Oe = {}, Se = null, lt = null;
|
|
545
545
|
ue !== void 0 && (ie(ue), Se = "" + ue), Ut(ae) && (ie(ae.key), Se = "" + ae.key), yt(ae) && (lt = ae.ref, St(ae, Me));
|
|
546
|
-
for (
|
|
547
|
-
|
|
546
|
+
for (qe in ae)
|
|
547
|
+
Be.call(ae, qe) && !be.hasOwnProperty(qe) && (Oe[qe] = ae[qe]);
|
|
548
548
|
if (S && S.defaultProps) {
|
|
549
549
|
var Qe = S.defaultProps;
|
|
550
|
-
for (
|
|
551
|
-
|
|
550
|
+
for (qe in Qe)
|
|
551
|
+
Oe[qe] === void 0 && (Oe[qe] = Qe[qe]);
|
|
552
552
|
}
|
|
553
553
|
if (Se || lt) {
|
|
554
554
|
var Je = typeof S == "function" ? S.displayName || S.name || "Unknown" : S;
|
|
555
|
-
Se && at(
|
|
555
|
+
Se && at(Oe, Je), lt && Rt(Oe, Je);
|
|
556
556
|
}
|
|
557
|
-
return Dt(S, Se, lt, Me,
|
|
557
|
+
return Dt(S, Se, lt, Me, Ce, ge.current, Oe);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
var ur = v.ReactCurrentOwner, Hr = v.ReactDebugCurrentFrame;
|
|
561
561
|
function Pn(S) {
|
|
562
562
|
if (S) {
|
|
563
|
-
var ae = S._owner, ue =
|
|
563
|
+
var ae = S._owner, ue = ke(S.type, S._source, ae ? ae.type : null);
|
|
564
564
|
Hr.setExtraStackFrame(ue);
|
|
565
565
|
} else
|
|
566
566
|
Hr.setExtraStackFrame(null);
|
|
@@ -615,26 +615,26 @@ Check the top-level render call using <` + ue + ">.");
|
|
|
615
615
|
if (ko[ue])
|
|
616
616
|
return;
|
|
617
617
|
ko[ue] = !0;
|
|
618
|
-
var
|
|
619
|
-
S && S._owner && S._owner !== ur.current && (
|
|
618
|
+
var Ce = "";
|
|
619
|
+
S && S._owner && S._owner !== ur.current && (Ce = " It was passed a child from " + B(S._owner.type) + "."), Pn(S), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ue, Ce), Pn(null);
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
622
|
function Ao(S, ae) {
|
|
623
623
|
{
|
|
624
624
|
if (typeof S != "object")
|
|
625
625
|
return;
|
|
626
|
-
if (
|
|
626
|
+
if (Pe(S))
|
|
627
627
|
for (var ue = 0; ue < S.length; ue++) {
|
|
628
|
-
var
|
|
629
|
-
si(
|
|
628
|
+
var Ce = S[ue];
|
|
629
|
+
si(Ce) && Bo(Ce, ae);
|
|
630
630
|
}
|
|
631
631
|
else if (si(S))
|
|
632
632
|
S._store && (S._store.validated = !0);
|
|
633
633
|
else if (S) {
|
|
634
634
|
var Me = D(S);
|
|
635
635
|
if (typeof Me == "function" && Me !== S.entries)
|
|
636
|
-
for (var
|
|
637
|
-
si(
|
|
636
|
+
for (var qe = Me.call(S), Oe; !(Oe = qe.next()).done; )
|
|
637
|
+
si(Oe.value) && Bo(Oe.value, ae);
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
640
|
}
|
|
@@ -653,8 +653,8 @@ Check the top-level render call using <` + ue + ">.");
|
|
|
653
653
|
else
|
|
654
654
|
return;
|
|
655
655
|
if (ue) {
|
|
656
|
-
var
|
|
657
|
-
|
|
656
|
+
var Ce = B(ae);
|
|
657
|
+
Ge(ue, S.props, "prop", Ce, S);
|
|
658
658
|
} else if (ae.PropTypes !== void 0 && !ii) {
|
|
659
659
|
ii = !0;
|
|
660
660
|
var Me = B(ae);
|
|
@@ -666,34 +666,34 @@ Check the top-level render call using <` + ue + ">.");
|
|
|
666
666
|
function qf(S) {
|
|
667
667
|
{
|
|
668
668
|
for (var ae = Object.keys(S.props), ue = 0; ue < ae.length; ue++) {
|
|
669
|
-
var
|
|
670
|
-
if (
|
|
671
|
-
Pn(S), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
669
|
+
var Ce = ae[ue];
|
|
670
|
+
if (Ce !== "children" && Ce !== "key") {
|
|
671
|
+
Pn(S), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Ce), Pn(null);
|
|
672
672
|
break;
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
675
|
S.ref !== null && (Pn(S), w("Invalid attribute `ref` supplied to `React.Fragment`."), Pn(null));
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
|
-
function Fo(S, ae, ue,
|
|
678
|
+
function Fo(S, ae, ue, Ce, Me, qe) {
|
|
679
679
|
{
|
|
680
|
-
var
|
|
681
|
-
if (!
|
|
680
|
+
var Oe = z(S);
|
|
681
|
+
if (!Oe) {
|
|
682
682
|
var Se = "";
|
|
683
683
|
(S === void 0 || typeof S == "object" && S !== null && Object.keys(S).length === 0) && (Se += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
684
684
|
var lt = If(Me);
|
|
685
685
|
lt ? Se += lt : Se += _o();
|
|
686
686
|
var Qe;
|
|
687
|
-
S === null ? Qe = "null" :
|
|
687
|
+
S === null ? Qe = "null" : Pe(S) ? Qe = "array" : S !== void 0 && S.$$typeof === t ? (Qe = "<" + (B(S.type) || "Unknown") + " />", Se = " Did you accidentally export a JSX literal instead of a component?") : Qe = typeof S, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Qe, Se);
|
|
688
688
|
}
|
|
689
|
-
var Je = ai(S, ae, ue, Me,
|
|
689
|
+
var Je = ai(S, ae, ue, Me, qe);
|
|
690
690
|
if (Je == null)
|
|
691
691
|
return Je;
|
|
692
|
-
if (
|
|
692
|
+
if (Oe) {
|
|
693
693
|
var kt = ae.children;
|
|
694
694
|
if (kt !== void 0)
|
|
695
|
-
if (
|
|
696
|
-
if (
|
|
695
|
+
if (Ce)
|
|
696
|
+
if (Pe(kt)) {
|
|
697
697
|
for (var Nn = 0; Nn < kt.length; Nn++)
|
|
698
698
|
Ao(kt[Nn], S);
|
|
699
699
|
Object.freeze && Object.freeze(kt);
|
|
@@ -1632,7 +1632,7 @@ const je = ({
|
|
|
1632
1632
|
const _ = re.createElement(
|
|
1633
1633
|
i,
|
|
1634
1634
|
w,
|
|
1635
|
-
h || (d ? /* @__PURE__ */ c.jsx(
|
|
1635
|
+
h || (d ? /* @__PURE__ */ c.jsx(We, { showOnFocus: !1, children: d }) : null)
|
|
1636
1636
|
);
|
|
1637
1637
|
return l && u ? /* @__PURE__ */ c.jsxs("span", { className: "button-container", ...D, children: [
|
|
1638
1638
|
/* @__PURE__ */ c.jsx(rr, { isOpen: f, children: u }),
|
|
@@ -1864,7 +1864,7 @@ const Ph = Ms(
|
|
|
1864
1864
|
children: t
|
|
1865
1865
|
}) => typeof document == "object" ? gc.createPortal(t, e) : null;
|
|
1866
1866
|
const ME = ({ currentStep: e = 1, steps: t = 1 }) => /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
1867
|
-
/* @__PURE__ */ c.jsx(
|
|
1867
|
+
/* @__PURE__ */ c.jsx(We, { children: /* @__PURE__ */ c.jsx(
|
|
1868
1868
|
st,
|
|
1869
1869
|
{
|
|
1870
1870
|
id: "progressTracker",
|
|
@@ -2261,7 +2261,7 @@ const LE = ({
|
|
|
2261
2261
|
const a = e.src;
|
|
2262
2262
|
return a.includes("youtube") || a.includes("vimeo") ? r = "video" : a.includes("riddle") || a.includes("sli.do") ? r = "poll" : a.includes("padlet") && (r = "padlet"), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2263
2263
|
/* @__PURE__ */ c.jsx(
|
|
2264
|
-
|
|
2264
|
+
We,
|
|
2265
2265
|
{
|
|
2266
2266
|
element: "a",
|
|
2267
2267
|
href: `#content-after-iframe-${n}`,
|
|
@@ -2448,7 +2448,7 @@ const Yh = ({
|
|
|
2448
2448
|
[l !== "default" ? l : ""]: l !== "default"
|
|
2449
2449
|
}),
|
|
2450
2450
|
style: d,
|
|
2451
|
-
children: re.createElement(i ? "span" :
|
|
2451
|
+
children: re.createElement(i ? "span" : We, {
|
|
2452
2452
|
className: i ? "text" : "",
|
|
2453
2453
|
children: n || a.formatMessage({ id: "progressBar" }, { number: t })
|
|
2454
2454
|
})
|
|
@@ -2779,14 +2779,14 @@ const nm = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_
|
|
|
2779
2779
|
pt: "Português"
|
|
2780
2780
|
}, en = Et({ isLoading: !0 });
|
|
2781
2781
|
function Hs() {
|
|
2782
|
-
return
|
|
2782
|
+
return Ze(en);
|
|
2783
2783
|
}
|
|
2784
2784
|
const am = ({ children: e, user: t }) => /* @__PURE__ */ c.jsx(en.Provider, { value: t, children: e }), $c = Et({
|
|
2785
2785
|
registerOverlay: () => {
|
|
2786
2786
|
},
|
|
2787
2787
|
unregisterOverlay: () => {
|
|
2788
2788
|
}
|
|
2789
|
-
}), im = () =>
|
|
2789
|
+
}), im = () => Ze($c), sm = ({ children: e }) => {
|
|
2790
2790
|
const [t, n] = fe([]);
|
|
2791
2791
|
me(() => {
|
|
2792
2792
|
t.length > 0 ? document.body.classList.add("has-overlay") : document.body.classList.remove("has-overlay");
|
|
@@ -2825,7 +2825,7 @@ const dr = "joinCommunityButton", Ic = ({
|
|
|
2825
2825
|
}, leave: () => {
|
|
2826
2826
|
} }
|
|
2827
2827
|
}) => {
|
|
2828
|
-
const s = le(), o =
|
|
2828
|
+
const s = le(), o = Ze(en), l = o && typeof o.id == "string", u = r || !l, [d, h] = fe(e), [p, m] = fe(e ? "joined" : "notJoined");
|
|
2829
2829
|
me(() => {
|
|
2830
2830
|
p === "joining" ? m("joined") : p === "leaving" && m("notJoined");
|
|
2831
2831
|
}, [d]);
|
|
@@ -2927,7 +2927,7 @@ const HE = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
|
|
|
2927
2927
|
const r = le();
|
|
2928
2928
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2929
2929
|
/* @__PURE__ */ c.jsx(
|
|
2930
|
-
|
|
2930
|
+
We,
|
|
2931
2931
|
{
|
|
2932
2932
|
element: "p",
|
|
2933
2933
|
children: r.formatMessage({ id: "breadcrumbs_label" })
|
|
@@ -2938,7 +2938,7 @@ const HE = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
|
|
|
2938
2938
|
const l = {};
|
|
2939
2939
|
return s && (l["aria-current"] = "location"), /* @__PURE__ */ c.jsxs("li", { children: [
|
|
2940
2940
|
s && /* @__PURE__ */ c.jsx(
|
|
2941
|
-
|
|
2941
|
+
We,
|
|
2942
2942
|
{
|
|
2943
2943
|
element: "span",
|
|
2944
2944
|
children: r.formatMessage({ id: "breadcrumbs_currentPage" })
|
|
@@ -3010,7 +3010,7 @@ const Zr = "languageSwitcher_", VE = ({
|
|
|
3010
3010
|
className: l = ""
|
|
3011
3011
|
}) => {
|
|
3012
3012
|
const u = le(), { updateLanguage: d = () => {
|
|
3013
|
-
} } =
|
|
3013
|
+
} } = Ze(Mc), [h, p] = fe(e);
|
|
3014
3014
|
if (me(() => {
|
|
3015
3015
|
e !== h && p(e);
|
|
3016
3016
|
}, [e]), !r || !Object.values(r).some(
|
|
@@ -3121,7 +3121,7 @@ const Lc = ({
|
|
|
3121
3121
|
href: "/home/",
|
|
3122
3122
|
className: Y("logo", e, t, n),
|
|
3123
3123
|
...r,
|
|
3124
|
-
children: /* @__PURE__ */ c.jsx(
|
|
3124
|
+
children: /* @__PURE__ */ c.jsx(We, { children: /* @__PURE__ */ c.jsx(st, { id: "apolitical" }) })
|
|
3125
3125
|
}
|
|
3126
3126
|
) });
|
|
3127
3127
|
let Yr = !1;
|
|
@@ -3207,7 +3207,7 @@ const cm = [
|
|
|
3207
3207
|
href: "/communities/"
|
|
3208
3208
|
}
|
|
3209
3209
|
], dm = ({ activeLink: e }) => {
|
|
3210
|
-
const t = le(), n =
|
|
3210
|
+
const t = le(), n = Ze(en), r = n && typeof n.id == "string";
|
|
3211
3211
|
return /* @__PURE__ */ c.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
|
|
3212
3212
|
cm.map(({ key: a, href: i }) => {
|
|
3213
3213
|
const s = lm(i, e), o = {};
|
|
@@ -4506,12 +4506,12 @@ const Qr = "passwordRules_", Wc = "isMoreThanEightCharacters", Hc = "includesNum
|
|
|
4506
4506
|
{
|
|
4507
4507
|
className: Y({ matches: e[r] }),
|
|
4508
4508
|
children: [
|
|
4509
|
-
/* @__PURE__ */ c.jsxs(
|
|
4509
|
+
/* @__PURE__ */ c.jsxs(We, { children: [
|
|
4510
4510
|
n.formatMessage({ id: `${Qr}rule_label` }),
|
|
4511
4511
|
" "
|
|
4512
4512
|
] }),
|
|
4513
4513
|
/* @__PURE__ */ c.jsx("span", { children: n.formatMessage({ id: `${Qr}rule_${km[r]}` }) }),
|
|
4514
|
-
!e[r] && /* @__PURE__ */ c.jsxs(
|
|
4514
|
+
!e[r] && /* @__PURE__ */ c.jsxs(We, { element: "strong", children: [
|
|
4515
4515
|
" ",
|
|
4516
4516
|
n.formatMessage({ id: `${Qr}notMet` })
|
|
4517
4517
|
] })
|
|
@@ -6092,29 +6092,29 @@ var gp = (e, t, n) => {
|
|
|
6092
6092
|
} = n;
|
|
6093
6093
|
if (G.length === 0)
|
|
6094
6094
|
break;
|
|
6095
|
-
var De = oe.leaf(e, ne), pe = De.text.slice(0, de),
|
|
6096
|
-
if (De.text = pe +
|
|
6097
|
-
for (var [
|
|
6098
|
-
t[
|
|
6095
|
+
var De = oe.leaf(e, ne), pe = De.text.slice(0, de), ke = De.text.slice(de + G.length);
|
|
6096
|
+
if (De.text = pe + ke, t)
|
|
6097
|
+
for (var [Be, we] of K.points(t))
|
|
6098
|
+
t[we] = Te.transform(Be, n);
|
|
6099
6099
|
break;
|
|
6100
6100
|
}
|
|
6101
6101
|
case "set_node": {
|
|
6102
6102
|
var {
|
|
6103
|
-
path:
|
|
6104
|
-
properties:
|
|
6105
|
-
newProperties:
|
|
6103
|
+
path: Ne,
|
|
6104
|
+
properties: He,
|
|
6105
|
+
newProperties: Ge
|
|
6106
6106
|
} = n;
|
|
6107
|
-
if (
|
|
6107
|
+
if (Ne.length === 0)
|
|
6108
6108
|
throw new Error("Cannot set properties on the root node!");
|
|
6109
|
-
var tt = oe.get(e,
|
|
6110
|
-
for (var
|
|
6111
|
-
if (
|
|
6112
|
-
throw new Error('Cannot set the "'.concat(
|
|
6113
|
-
var ve =
|
|
6114
|
-
ve == null ? delete tt[
|
|
6115
|
-
}
|
|
6116
|
-
for (var
|
|
6117
|
-
|
|
6109
|
+
var tt = oe.get(e, Ne);
|
|
6110
|
+
for (var Pe in Ge) {
|
|
6111
|
+
if (Pe === "children" || Pe === "text")
|
|
6112
|
+
throw new Error('Cannot set the "'.concat(Pe, '" property of nodes!'));
|
|
6113
|
+
var ve = Ge[Pe];
|
|
6114
|
+
ve == null ? delete tt[Pe] : tt[Pe] = ve;
|
|
6115
|
+
}
|
|
6116
|
+
for (var _e in He)
|
|
6117
|
+
Ge.hasOwnProperty(_e) || delete tt[_e];
|
|
6118
6118
|
break;
|
|
6119
6119
|
}
|
|
6120
6120
|
case "set_selection": {
|
|
@@ -6619,7 +6619,7 @@ function lu(e, t) {
|
|
|
6619
6619
|
}
|
|
6620
6620
|
return n;
|
|
6621
6621
|
}
|
|
6622
|
-
function
|
|
6622
|
+
function Ve(e) {
|
|
6623
6623
|
for (var t = 1; t < arguments.length; t++) {
|
|
6624
6624
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
6625
6625
|
t % 2 ? lu(Object(n), !0).forEach(function(r) {
|
|
@@ -6672,15 +6672,15 @@ var ln = {
|
|
|
6672
6672
|
inverse(e) {
|
|
6673
6673
|
switch (e.type) {
|
|
6674
6674
|
case "insert_node":
|
|
6675
|
-
return
|
|
6675
|
+
return Ve(Ve({}, e), {}, {
|
|
6676
6676
|
type: "remove_node"
|
|
6677
6677
|
});
|
|
6678
6678
|
case "insert_text":
|
|
6679
|
-
return
|
|
6679
|
+
return Ve(Ve({}, e), {}, {
|
|
6680
6680
|
type: "remove_text"
|
|
6681
6681
|
});
|
|
6682
6682
|
case "merge_node":
|
|
6683
|
-
return
|
|
6683
|
+
return Ve(Ve({}, e), {}, {
|
|
6684
6684
|
type: "split_node",
|
|
6685
6685
|
path: O.previous(e.path)
|
|
6686
6686
|
});
|
|
@@ -6692,22 +6692,22 @@ var ln = {
|
|
|
6692
6692
|
if (O.equals(t, n))
|
|
6693
6693
|
return e;
|
|
6694
6694
|
if (O.isSibling(n, t))
|
|
6695
|
-
return
|
|
6695
|
+
return Ve(Ve({}, e), {}, {
|
|
6696
6696
|
path: t,
|
|
6697
6697
|
newPath: n
|
|
6698
6698
|
});
|
|
6699
6699
|
var r = O.transform(n, e), a = O.transform(O.next(n), e);
|
|
6700
|
-
return
|
|
6700
|
+
return Ve(Ve({}, e), {}, {
|
|
6701
6701
|
path: r,
|
|
6702
6702
|
newPath: a
|
|
6703
6703
|
});
|
|
6704
6704
|
}
|
|
6705
6705
|
case "remove_node":
|
|
6706
|
-
return
|
|
6706
|
+
return Ve(Ve({}, e), {}, {
|
|
6707
6707
|
type: "insert_node"
|
|
6708
6708
|
});
|
|
6709
6709
|
case "remove_text":
|
|
6710
|
-
return
|
|
6710
|
+
return Ve(Ve({}, e), {}, {
|
|
6711
6711
|
type: "insert_text"
|
|
6712
6712
|
});
|
|
6713
6713
|
case "set_node": {
|
|
@@ -6715,7 +6715,7 @@ var ln = {
|
|
|
6715
6715
|
properties: i,
|
|
6716
6716
|
newProperties: s
|
|
6717
6717
|
} = e;
|
|
6718
|
-
return
|
|
6718
|
+
return Ve(Ve({}, e), {}, {
|
|
6719
6719
|
properties: s,
|
|
6720
6720
|
newProperties: i
|
|
6721
6721
|
});
|
|
@@ -6725,19 +6725,19 @@ var ln = {
|
|
|
6725
6725
|
properties: o,
|
|
6726
6726
|
newProperties: l
|
|
6727
6727
|
} = e;
|
|
6728
|
-
return o == null ?
|
|
6728
|
+
return o == null ? Ve(Ve({}, e), {}, {
|
|
6729
6729
|
properties: l,
|
|
6730
6730
|
newProperties: null
|
|
6731
|
-
}) : l == null ?
|
|
6731
|
+
}) : l == null ? Ve(Ve({}, e), {}, {
|
|
6732
6732
|
properties: null,
|
|
6733
6733
|
newProperties: o
|
|
6734
|
-
}) :
|
|
6734
|
+
}) : Ve(Ve({}, e), {}, {
|
|
6735
6735
|
properties: l,
|
|
6736
6736
|
newProperties: o
|
|
6737
6737
|
});
|
|
6738
6738
|
}
|
|
6739
6739
|
case "split_node":
|
|
6740
|
-
return
|
|
6740
|
+
return Ve(Ve({}, e), {}, {
|
|
6741
6741
|
type: "merge_node",
|
|
6742
6742
|
path: O.next(e.path)
|
|
6743
6743
|
});
|
|
@@ -7126,13 +7126,13 @@ var he = {
|
|
|
7126
7126
|
var [n] = b.node(e, t);
|
|
7127
7127
|
return (r) => r === n;
|
|
7128
7128
|
}, Xs = function(t) {
|
|
7129
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = !n, a = n ? Pp(t) : t, i =
|
|
7129
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = !n, a = n ? Pp(t) : t, i = Ee.None, s = Ee.None, o = 0, l = null, u = null;
|
|
7130
7130
|
for (var d of a) {
|
|
7131
7131
|
var h = d.codePointAt(0);
|
|
7132
7132
|
if (!h)
|
|
7133
7133
|
break;
|
|
7134
7134
|
var p = Vp(d, h);
|
|
7135
|
-
if ([i, s] = r ? [s, p] : [p, i], Wn(i,
|
|
7135
|
+
if ([i, s] = r ? [s, p] : [p, i], Wn(i, Ee.ZWJ) && Wn(s, Ee.ExtPict) && (r ? l = pu(t.substring(0, o)) : l = pu(t.substring(0, t.length - o)), !l) || Wn(i, Ee.RI) && Wn(s, Ee.RI) && (u !== null ? u = !u : r ? u = !0 : u = Qp(t.substring(0, t.length - o)), !u) || i !== Ee.None && s !== Ee.None && Zp(i, s))
|
|
7136
7136
|
break;
|
|
7137
7137
|
o += d.length;
|
|
7138
7138
|
}
|
|
@@ -7177,34 +7177,34 @@ var he = {
|
|
|
7177
7177
|
}
|
|
7178
7178
|
yield a;
|
|
7179
7179
|
}
|
|
7180
|
-
}, Np = (e) => e >= 55296 && e <= 56319, Rp = (e) => e >= 56320 && e <= 57343,
|
|
7180
|
+
}, Np = (e) => e >= 55296 && e <= 56319, Rp = (e) => e >= 56320 && e <= 57343, Ee;
|
|
7181
7181
|
(function(e) {
|
|
7182
7182
|
e[e.None = 0] = "None", e[e.Extend = 1] = "Extend", e[e.ZWJ = 2] = "ZWJ", e[e.RI = 4] = "RI", e[e.Prepend = 8] = "Prepend", e[e.SpacingMark = 16] = "SpacingMark", e[e.L = 32] = "L", e[e.V = 64] = "V", e[e.T = 128] = "T", e[e.LV = 256] = "LV", e[e.LVT = 512] = "LVT", e[e.ExtPict = 1024] = "ExtPict", e[e.Any = 2048] = "Any";
|
|
7183
|
-
})(
|
|
7183
|
+
})(Ee || (Ee = {}));
|
|
7184
7184
|
var Mp = /^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/, $p = /^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/, Ip = /^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/, Lp = /^[\u1100-\u115F\uA960-\uA97C]$/, zp = /^[\u1160-\u11A7\uD7B0-\uD7C6]$/, qp = /^[\u11A8-\u11FF\uD7CB-\uD7FB]$/, Wp = /^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/, Hp = /^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/, Up = /^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/, Vp = (e, t) => {
|
|
7185
|
-
var n =
|
|
7186
|
-
return e.search(Mp) !== -1 && (n |=
|
|
7185
|
+
var n = Ee.Any;
|
|
7186
|
+
return e.search(Mp) !== -1 && (n |= Ee.Extend), t === 8205 && (n |= Ee.ZWJ), t >= 127462 && t <= 127487 && (n |= Ee.RI), e.search($p) !== -1 && (n |= Ee.Prepend), e.search(Ip) !== -1 && (n |= Ee.SpacingMark), e.search(Lp) !== -1 && (n |= Ee.L), e.search(zp) !== -1 && (n |= Ee.V), e.search(qp) !== -1 && (n |= Ee.T), e.search(Wp) !== -1 && (n |= Ee.LV), e.search(Hp) !== -1 && (n |= Ee.LVT), e.search(Up) !== -1 && (n |= Ee.ExtPict), n;
|
|
7187
7187
|
};
|
|
7188
7188
|
function Wn(e, t) {
|
|
7189
7189
|
return (e & t) !== 0;
|
|
7190
7190
|
}
|
|
7191
7191
|
var Kp = [
|
|
7192
7192
|
// GB6
|
|
7193
|
-
[
|
|
7193
|
+
[Ee.L, Ee.L | Ee.V | Ee.LV | Ee.LVT],
|
|
7194
7194
|
// GB7
|
|
7195
|
-
[
|
|
7195
|
+
[Ee.LV | Ee.V, Ee.V | Ee.T],
|
|
7196
7196
|
// GB8
|
|
7197
|
-
[
|
|
7197
|
+
[Ee.LVT | Ee.T, Ee.T],
|
|
7198
7198
|
// GB9
|
|
7199
|
-
[
|
|
7199
|
+
[Ee.Any, Ee.Extend | Ee.ZWJ],
|
|
7200
7200
|
// GB9a
|
|
7201
|
-
[
|
|
7201
|
+
[Ee.Any, Ee.SpacingMark],
|
|
7202
7202
|
// GB9b
|
|
7203
|
-
[
|
|
7203
|
+
[Ee.Prepend, Ee.Any],
|
|
7204
7204
|
// GB11
|
|
7205
|
-
[
|
|
7205
|
+
[Ee.ZWJ, Ee.ExtPict],
|
|
7206
7206
|
// GB12 and GB13
|
|
7207
|
-
[
|
|
7207
|
+
[Ee.RI, Ee.RI]
|
|
7208
7208
|
];
|
|
7209
7209
|
function Zp(e, t) {
|
|
7210
7210
|
return Kp.findIndex((n) => Wn(e, n[0]) && Wn(t, n[1])) === -1;
|
|
@@ -8390,8 +8390,8 @@ var rv = (e, t) => {
|
|
|
8390
8390
|
B && O.compare(N, B) === 0 || (!l && ce.isElement($) && (b.isVoid(t, $) || b.isElementReadOnly(t, $)) || !O.isCommon(N, w.path) && !O.isCommon(N, _.path)) && (E.push(j), B = N);
|
|
8391
8391
|
}
|
|
8392
8392
|
var H = Array.from(E, (pe) => {
|
|
8393
|
-
var [,
|
|
8394
|
-
return b.pathRef(t,
|
|
8393
|
+
var [, ke] = pe;
|
|
8394
|
+
return b.pathRef(t, ke);
|
|
8395
8395
|
}), se = b.pointRef(t, w), W = b.pointRef(t, _), y = "";
|
|
8396
8396
|
if (!T && !q) {
|
|
8397
8397
|
var L = se.current, [X] = b.leaf(t, L), {
|
|
@@ -9963,8 +9963,8 @@ const W0 = /* @__PURE__ */ Tn(q0), Iu = (e) => typeof e == "object" && e != null
|
|
|
9963
9963
|
ee = o === "start" ? B : o === "end" ? B - D : o === "nearest" ? Xr(w, w + D, D, R, te, w + B, w + B + _, _) : B - D / 2, ne = l === "start" ? j : l === "center" ? j - f / 2 : l === "end" ? j - f : Xr(v, v + f, f, I, U, v + j, v + j + C, C), ee = Math.max(0, ee + w), ne = Math.max(0, ne + v);
|
|
9964
9964
|
else {
|
|
9965
9965
|
ee = o === "start" ? B - y - R : o === "end" ? B - X + te + G : o === "nearest" ? Xr(y, X, se, R, te + G, B, B + _, _) : B - (y + se / 2) + G / 2, ne = l === "start" ? j - k - I : l === "center" ? j - (k + W / 2) + de / 2 : l === "end" ? j - L + U + de : Xr(k, L, W, I, U + de, j, j + C, C);
|
|
9966
|
-
const { scrollLeft:
|
|
9967
|
-
ee = pe === 0 ? 0 : Math.max(0, Math.min(
|
|
9966
|
+
const { scrollLeft: ke, scrollTop: Be } = H;
|
|
9967
|
+
ee = pe === 0 ? 0 : Math.max(0, Math.min(Be + ee / pe, H.scrollHeight - se / pe + G)), ne = De === 0 ? 0 : Math.max(0, Math.min(ke + ne / De, H.scrollWidth - W / De + de)), B += Be - ee, j += ke - ne;
|
|
9968
9968
|
}
|
|
9969
9969
|
$.push({ el: H, top: ee, left: ne });
|
|
9970
9970
|
}
|
|
@@ -10464,7 +10464,7 @@ function Tt(e, t, n) {
|
|
|
10464
10464
|
}) : e[t] = n, e;
|
|
10465
10465
|
}
|
|
10466
10466
|
var io = /* @__PURE__ */ Et(null), gn = () => {
|
|
10467
|
-
var e =
|
|
10467
|
+
var e = Ze(io);
|
|
10468
10468
|
if (!e)
|
|
10469
10469
|
throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");
|
|
10470
10470
|
return e;
|
|
@@ -11314,11 +11314,11 @@ function Zb(e) {
|
|
|
11314
11314
|
}, de = pt.get(t), G = de == null ? void 0 : de.find((be) => O.equals(be.path, ee)), De = G ? [G.diff, ne] : [ne], pe = Pd(te.text, ...De);
|
|
11315
11315
|
if (pe.length === 0 && (y = !1), K.isExpanded($)) {
|
|
11316
11316
|
if (y && O.equals($.anchor.path, $.focus.path)) {
|
|
11317
|
-
var
|
|
11317
|
+
var ke = {
|
|
11318
11318
|
path: $.anchor.path,
|
|
11319
11319
|
offset: R.offset
|
|
11320
|
-
},
|
|
11321
|
-
return T(
|
|
11320
|
+
}, Be = b.range(t, ke, ke);
|
|
11321
|
+
return T(Be), D($.anchor.path, {
|
|
11322
11322
|
text: "",
|
|
11323
11323
|
end: U.offset,
|
|
11324
11324
|
start: R.offset
|
|
@@ -11341,15 +11341,15 @@ function Zb(e) {
|
|
|
11341
11341
|
case "deleteContent":
|
|
11342
11342
|
case "deleteContentForward": {
|
|
11343
11343
|
var {
|
|
11344
|
-
anchor:
|
|
11344
|
+
anchor: we
|
|
11345
11345
|
} = $;
|
|
11346
11346
|
if (y && K.isCollapsed($)) {
|
|
11347
|
-
var
|
|
11348
|
-
if (
|
|
11349
|
-
return D(
|
|
11347
|
+
var Ne = oe.leaf(t, we.path);
|
|
11348
|
+
if (we.offset < Ne.text.length)
|
|
11349
|
+
return D(we.path, {
|
|
11350
11350
|
text: "",
|
|
11351
|
-
start:
|
|
11352
|
-
end:
|
|
11351
|
+
start: we.offset,
|
|
11352
|
+
end: we.offset + 1
|
|
11353
11353
|
});
|
|
11354
11354
|
}
|
|
11355
11355
|
return v(() => b.deleteForward(t), {
|
|
@@ -11357,13 +11357,13 @@ function Zb(e) {
|
|
|
11357
11357
|
});
|
|
11358
11358
|
}
|
|
11359
11359
|
case "deleteContentBackward": {
|
|
11360
|
-
var
|
|
11361
|
-
anchor:
|
|
11362
|
-
} = $, tt = Cs(H) ? H.isCollapsed : !!((
|
|
11363
|
-
return y && tt && K.isCollapsed($) &&
|
|
11360
|
+
var He, {
|
|
11361
|
+
anchor: Ge
|
|
11362
|
+
} = $, tt = Cs(H) ? H.isCollapsed : !!((He = H) !== null && He !== void 0 && He.collapsed);
|
|
11363
|
+
return y && tt && K.isCollapsed($) && Ge.offset > 0 ? D(Ge.path, {
|
|
11364
11364
|
text: "",
|
|
11365
|
-
start:
|
|
11366
|
-
end:
|
|
11365
|
+
start: Ge.offset - 1,
|
|
11366
|
+
end: Ge.offset
|
|
11367
11367
|
}) : v(() => b.deleteBackward(t), {
|
|
11368
11368
|
at: $
|
|
11369
11369
|
});
|
|
@@ -11434,11 +11434,11 @@ function Zb(e) {
|
|
|
11434
11434
|
return v(() => J.insertData(t, N), {
|
|
11435
11435
|
at: $
|
|
11436
11436
|
});
|
|
11437
|
-
var
|
|
11438
|
-
if (Ot.get(t) && (
|
|
11437
|
+
var Pe = N ?? "";
|
|
11438
|
+
if (Ot.get(t) && (Pe = Pe.replace("\uFEFF", "")), j === "insertText" && /.*\n.*\n$/.test(Pe) && (Pe = Pe.slice(0, -1)), Pe.includes(`
|
|
11439
11439
|
`))
|
|
11440
11440
|
return v(() => {
|
|
11441
|
-
var be =
|
|
11441
|
+
var be = Pe.split(`
|
|
11442
11442
|
`);
|
|
11443
11443
|
be.forEach((Ae, Xe) => {
|
|
11444
11444
|
Ae && b.insertText(t, Ae), Xe !== be.length - 1 && b.insertSoftBreak(t);
|
|
@@ -11447,24 +11447,24 @@ function Zb(e) {
|
|
|
11447
11447
|
at: $
|
|
11448
11448
|
});
|
|
11449
11449
|
if (O.equals($.anchor.path, $.focus.path)) {
|
|
11450
|
-
var [ve,
|
|
11450
|
+
var [ve, _e] = K.edges($), V = {
|
|
11451
11451
|
start: ve.offset,
|
|
11452
|
-
end:
|
|
11453
|
-
text:
|
|
11452
|
+
end: _e.offset,
|
|
11453
|
+
text: Pe
|
|
11454
11454
|
};
|
|
11455
|
-
if (
|
|
11455
|
+
if (Pe && u && j === "insertCompositionText") {
|
|
11456
11456
|
var ie = u.start + u.text.search(/\S|$/), ge = V.start + V.text.search(/\S|$/);
|
|
11457
11457
|
ge === ie + 1 && V.end === u.start + u.text.length ? (V.start -= 1, u = null, z()) : u = !1;
|
|
11458
11458
|
} else
|
|
11459
11459
|
j === "insertText" ? u === null ? u = V : u && K.isCollapsed($) && u.end + u.text.length === ve.offset ? u = aa(aa({}, u), {}, {
|
|
11460
|
-
text: u.text +
|
|
11460
|
+
text: u.text + Pe
|
|
11461
11461
|
}) : u = !1 : u = !1;
|
|
11462
11462
|
if (y) {
|
|
11463
11463
|
D(ve.path, V);
|
|
11464
11464
|
return;
|
|
11465
11465
|
}
|
|
11466
11466
|
}
|
|
11467
|
-
return v(() => b.insertText(t,
|
|
11467
|
+
return v(() => b.insertText(t, Pe), {
|
|
11468
11468
|
at: $
|
|
11469
11469
|
});
|
|
11470
11470
|
}
|
|
@@ -11861,7 +11861,7 @@ var py = (e) => {
|
|
|
11861
11861
|
position: "relative"
|
|
11862
11862
|
}
|
|
11863
11863
|
}), n);
|
|
11864
|
-
}, Id = /* @__PURE__ */ Et(() => []), by = () =>
|
|
11864
|
+
}, Id = /* @__PURE__ */ Et(() => []), by = () => Ze(Id), yy = /* @__PURE__ */ Et(!1), Ld = (e) => {
|
|
11865
11865
|
for (var {
|
|
11866
11866
|
decorations: t,
|
|
11867
11867
|
node: n,
|
|
@@ -11897,8 +11897,8 @@ var py = (e) => {
|
|
|
11897
11897
|
})), so.set(g, p), oo.set(g, n);
|
|
11898
11898
|
}
|
|
11899
11899
|
return d;
|
|
11900
|
-
}, zd = /* @__PURE__ */ Et(!1), Dy = () =>
|
|
11901
|
-
var e =
|
|
11900
|
+
}, zd = /* @__PURE__ */ Et(!1), Dy = () => Ze(zd), qd = /* @__PURE__ */ Et(null), jn = () => {
|
|
11901
|
+
var e = Ze(qd);
|
|
11902
11902
|
if (!e)
|
|
11903
11903
|
throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");
|
|
11904
11904
|
var {
|
|
@@ -11955,34 +11955,34 @@ var wy = 3, Cy = {
|
|
|
11955
11955
|
deleteWordBackward: "ctrl+shift?+backspace",
|
|
11956
11956
|
deleteWordForward: "ctrl+shift?+delete",
|
|
11957
11957
|
redo: ["ctrl+y", "ctrl+shift+z"]
|
|
11958
|
-
},
|
|
11958
|
+
}, Ke = (e) => {
|
|
11959
11959
|
var t = Cy[e], n = Ey[e], r = _y[e], a = t && ki(t), i = n && ki(n), s = r && ki(r);
|
|
11960
11960
|
return (o) => !!(a && a(o) || Qu && i && i(o) || !Qu && s && s(o));
|
|
11961
|
-
},
|
|
11962
|
-
isBold:
|
|
11963
|
-
isCompose:
|
|
11964
|
-
isMoveBackward:
|
|
11965
|
-
isMoveForward:
|
|
11966
|
-
isDeleteBackward:
|
|
11967
|
-
isDeleteForward:
|
|
11968
|
-
isDeleteLineBackward:
|
|
11969
|
-
isDeleteLineForward:
|
|
11970
|
-
isDeleteWordBackward:
|
|
11971
|
-
isDeleteWordForward:
|
|
11972
|
-
isExtendBackward:
|
|
11973
|
-
isExtendForward:
|
|
11974
|
-
isExtendLineBackward:
|
|
11975
|
-
isExtendLineForward:
|
|
11976
|
-
isItalic:
|
|
11977
|
-
isMoveLineBackward:
|
|
11978
|
-
isMoveLineForward:
|
|
11979
|
-
isMoveWordBackward:
|
|
11980
|
-
isMoveWordForward:
|
|
11981
|
-
isRedo:
|
|
11982
|
-
isSoftBreak:
|
|
11983
|
-
isSplitBlock:
|
|
11984
|
-
isTransposeCharacter:
|
|
11985
|
-
isUndo:
|
|
11961
|
+
}, Ye = {
|
|
11962
|
+
isBold: Ke("bold"),
|
|
11963
|
+
isCompose: Ke("compose"),
|
|
11964
|
+
isMoveBackward: Ke("moveBackward"),
|
|
11965
|
+
isMoveForward: Ke("moveForward"),
|
|
11966
|
+
isDeleteBackward: Ke("deleteBackward"),
|
|
11967
|
+
isDeleteForward: Ke("deleteForward"),
|
|
11968
|
+
isDeleteLineBackward: Ke("deleteLineBackward"),
|
|
11969
|
+
isDeleteLineForward: Ke("deleteLineForward"),
|
|
11970
|
+
isDeleteWordBackward: Ke("deleteWordBackward"),
|
|
11971
|
+
isDeleteWordForward: Ke("deleteWordForward"),
|
|
11972
|
+
isExtendBackward: Ke("extendBackward"),
|
|
11973
|
+
isExtendForward: Ke("extendForward"),
|
|
11974
|
+
isExtendLineBackward: Ke("extendLineBackward"),
|
|
11975
|
+
isExtendLineForward: Ke("extendLineForward"),
|
|
11976
|
+
isItalic: Ke("italic"),
|
|
11977
|
+
isMoveLineBackward: Ke("moveLineBackward"),
|
|
11978
|
+
isMoveLineForward: Ke("moveLineForward"),
|
|
11979
|
+
isMoveWordBackward: Ke("moveWordBackward"),
|
|
11980
|
+
isMoveWordForward: Ke("moveWordForward"),
|
|
11981
|
+
isRedo: Ke("redo"),
|
|
11982
|
+
isSoftBreak: Ke("insertSoftBreak"),
|
|
11983
|
+
isSplitBlock: Ke("splitBlock"),
|
|
11984
|
+
isTransposeCharacter: Ke("transposeCharacter"),
|
|
11985
|
+
isUndo: Ke("undo")
|
|
11986
11986
|
}, ky = (e, t) => {
|
|
11987
11987
|
var n = [], r = () => {
|
|
11988
11988
|
n = [];
|
|
@@ -12140,25 +12140,25 @@ var Sy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Ld(e)), jy =
|
|
|
12140
12140
|
} = f, te = J.findDocumentOrShadowRoot(f), ee = te.getSelection();
|
|
12141
12141
|
if (!(!ee || !J.isFocused(f) || (A = z.current) !== null && A !== void 0 && A.hasPendingAction())) {
|
|
12142
12142
|
var ne = (pe) => {
|
|
12143
|
-
var
|
|
12144
|
-
if (!(!U && !
|
|
12145
|
-
var
|
|
12143
|
+
var ke = ee.type !== "None";
|
|
12144
|
+
if (!(!U && !ke)) {
|
|
12145
|
+
var Be = ee.focusNode, we;
|
|
12146
12146
|
if (Un && ee.rangeCount > 1) {
|
|
12147
|
-
var
|
|
12148
|
-
|
|
12147
|
+
var Ne = ee.getRangeAt(0), He = ee.getRangeAt(ee.rangeCount - 1);
|
|
12148
|
+
Ne.startContainer === Be ? we = He.endContainer : we = Ne.startContainer;
|
|
12149
12149
|
} else
|
|
12150
|
-
|
|
12151
|
-
var
|
|
12152
|
-
if (
|
|
12153
|
-
var
|
|
12150
|
+
we = ee.anchorNode;
|
|
12151
|
+
var Ge = ba.get(f), tt = !1;
|
|
12152
|
+
if (Ge.contains(we) && Ge.contains(Be) && (tt = !0), ke && tt && U && !pe) {
|
|
12153
|
+
var Pe = J.toSlateRange(f, ee, {
|
|
12154
12154
|
exactMatch: !0,
|
|
12155
12155
|
// domSelection is not necessarily a valid Slate range
|
|
12156
12156
|
// (e.g. when clicking on contentEditable:false element)
|
|
12157
12157
|
suppressThrow: !0
|
|
12158
12158
|
});
|
|
12159
|
-
if (
|
|
12159
|
+
if (Pe && K.equals(Pe, U)) {
|
|
12160
12160
|
var ve;
|
|
12161
|
-
if (!P.hasMarkPlaceholder || (ve =
|
|
12161
|
+
if (!P.hasMarkPlaceholder || (ve = we) !== null && ve !== void 0 && (ve = ve.parentElement) !== null && ve !== void 0 && ve.hasAttribute("data-slate-mark-placeholder"))
|
|
12162
12162
|
return;
|
|
12163
12163
|
}
|
|
12164
12164
|
}
|
|
@@ -12170,8 +12170,8 @@ var Sy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Ld(e)), jy =
|
|
|
12170
12170
|
return;
|
|
12171
12171
|
}
|
|
12172
12172
|
P.isUpdatingSelection = !0;
|
|
12173
|
-
var
|
|
12174
|
-
return
|
|
12173
|
+
var _e = U && J.toDOMRange(f, U);
|
|
12174
|
+
return _e ? (J.isComposing(f) && !ft ? ee.collapseToEnd() : K.isBackward(U) ? ee.setBaseAndExtent(_e.endContainer, _e.endOffset, _e.startContainer, _e.startOffset) : ee.setBaseAndExtent(_e.startContainer, _e.startOffset, _e.endContainer, _e.endOffset), d(f, _e)) : ee.removeAllRanges(), _e;
|
|
12175
12175
|
}
|
|
12176
12176
|
};
|
|
12177
12177
|
ee.rangeCount <= 1 && ne();
|
|
@@ -12184,10 +12184,10 @@ var Sy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Ld(e)), jy =
|
|
|
12184
12184
|
}
|
|
12185
12185
|
var G = null, De = requestAnimationFrame(() => {
|
|
12186
12186
|
if (de) {
|
|
12187
|
-
var pe = (
|
|
12187
|
+
var pe = (ke) => {
|
|
12188
12188
|
try {
|
|
12189
|
-
var
|
|
12190
|
-
|
|
12189
|
+
var Be = J.toDOMNode(f, f);
|
|
12190
|
+
Be.focus(), ne(ke);
|
|
12191
12191
|
} catch {
|
|
12192
12192
|
}
|
|
12193
12193
|
};
|
|
@@ -12226,39 +12226,39 @@ var Sy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Ld(e)), jy =
|
|
|
12226
12226
|
ne = !0, f.marks && (ne = !1);
|
|
12227
12227
|
var {
|
|
12228
12228
|
anchor: De
|
|
12229
|
-
} = R, [pe,
|
|
12230
|
-
if (ne &&
|
|
12231
|
-
var
|
|
12232
|
-
|
|
12229
|
+
} = R, [pe, ke] = J.toDOMPoint(f, De), Be = (de = pe.parentElement) === null || de === void 0 ? void 0 : de.closest("a"), we = J.getWindow(f);
|
|
12230
|
+
if (ne && Be && J.hasDOMNode(f, Be)) {
|
|
12231
|
+
var Ne, He = we == null ? void 0 : we.document.createTreeWalker(Be, NodeFilter.SHOW_TEXT).lastChild();
|
|
12232
|
+
He === pe && ((Ne = He.textContent) === null || Ne === void 0 ? void 0 : Ne.length) === ke && (ne = !1);
|
|
12233
12233
|
}
|
|
12234
|
-
if (ne && pe.parentElement && (
|
|
12235
|
-
var
|
|
12234
|
+
if (ne && pe.parentElement && (we == null || (G = we.getComputedStyle(pe.parentElement)) === null || G === void 0 ? void 0 : G.whiteSpace) === "pre") {
|
|
12235
|
+
var Ge = b.above(f, {
|
|
12236
12236
|
at: De.path,
|
|
12237
12237
|
match: (ie) => ce.isElement(ie) && b.isBlock(f, ie)
|
|
12238
12238
|
});
|
|
12239
|
-
|
|
12239
|
+
Ge && oe.string(Ge[0]).includes(" ") && (ne = !1);
|
|
12240
12240
|
}
|
|
12241
12241
|
}
|
|
12242
12242
|
if (!U.startsWith("delete") || U.startsWith("deleteBy")) {
|
|
12243
12243
|
var [tt] = A.getTargetRanges();
|
|
12244
12244
|
if (tt) {
|
|
12245
|
-
var
|
|
12245
|
+
var Pe = J.toSlateRange(f, tt, {
|
|
12246
12246
|
exactMatch: !1,
|
|
12247
12247
|
suppressThrow: !1
|
|
12248
12248
|
});
|
|
12249
|
-
if (!R || !K.equals(R,
|
|
12249
|
+
if (!R || !K.equals(R, Pe)) {
|
|
12250
12250
|
ne = !1;
|
|
12251
12251
|
var ve = !ee && f.selection && b.rangeRef(f, f.selection);
|
|
12252
|
-
Q.select(f,
|
|
12252
|
+
Q.select(f, Pe), ve && wr.set(f, ve);
|
|
12253
12253
|
}
|
|
12254
12254
|
}
|
|
12255
12255
|
}
|
|
12256
12256
|
if (ee)
|
|
12257
12257
|
return;
|
|
12258
12258
|
if (ne || A.preventDefault(), R && K.isExpanded(R) && U.startsWith("delete")) {
|
|
12259
|
-
var
|
|
12259
|
+
var _e = U.endsWith("Backward") ? "backward" : "forward";
|
|
12260
12260
|
b.deleteFragment(f, {
|
|
12261
|
-
direction:
|
|
12261
|
+
direction: _e
|
|
12262
12262
|
});
|
|
12263
12263
|
return;
|
|
12264
12264
|
}
|
|
@@ -12493,7 +12493,7 @@ var Sy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Ld(e)), jy =
|
|
|
12493
12493
|
var U = R;
|
|
12494
12494
|
if (!(ce.isElement(I) && b.isBlock(f, I))) {
|
|
12495
12495
|
var te, ee = b.above(f, {
|
|
12496
|
-
match: (
|
|
12496
|
+
match: (Be) => ce.isElement(Be) && b.isBlock(f, Be),
|
|
12497
12497
|
at: R
|
|
12498
12498
|
});
|
|
12499
12499
|
U = (te = ee == null ? void 0 : ee[1]) !== null && te !== void 0 ? te : R.slice(0, 1);
|
|
@@ -12510,8 +12510,8 @@ var Sy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Ld(e)), jy =
|
|
|
12510
12510
|
at: G
|
|
12511
12511
|
});
|
|
12512
12512
|
if (De && pe && O.equals(De[1], pe[1])) {
|
|
12513
|
-
var
|
|
12514
|
-
Q.select(f,
|
|
12513
|
+
var ke = b.range(f, de);
|
|
12514
|
+
Q.select(f, ke);
|
|
12515
12515
|
}
|
|
12516
12516
|
}
|
|
12517
12517
|
}, [f, g.onClick, s]),
|
|
@@ -12623,32 +12623,32 @@ var Sy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Ld(e)), jy =
|
|
|
12623
12623
|
var {
|
|
12624
12624
|
selection: U
|
|
12625
12625
|
} = f, te = f.children[U !== null ? U.focus.path[0] : 0], ee = dd(oe.string(te)) === "rtl";
|
|
12626
|
-
if (
|
|
12626
|
+
if (Ye.isRedo(R)) {
|
|
12627
12627
|
A.preventDefault();
|
|
12628
12628
|
var ne = f;
|
|
12629
12629
|
typeof ne.redo == "function" && ne.redo();
|
|
12630
12630
|
return;
|
|
12631
12631
|
}
|
|
12632
|
-
if (
|
|
12632
|
+
if (Ye.isUndo(R)) {
|
|
12633
12633
|
A.preventDefault();
|
|
12634
12634
|
var de = f;
|
|
12635
12635
|
typeof de.undo == "function" && de.undo();
|
|
12636
12636
|
return;
|
|
12637
12637
|
}
|
|
12638
|
-
if (
|
|
12638
|
+
if (Ye.isMoveLineBackward(R)) {
|
|
12639
12639
|
A.preventDefault(), Q.move(f, {
|
|
12640
12640
|
unit: "line",
|
|
12641
12641
|
reverse: !0
|
|
12642
12642
|
});
|
|
12643
12643
|
return;
|
|
12644
12644
|
}
|
|
12645
|
-
if (
|
|
12645
|
+
if (Ye.isMoveLineForward(R)) {
|
|
12646
12646
|
A.preventDefault(), Q.move(f, {
|
|
12647
12647
|
unit: "line"
|
|
12648
12648
|
});
|
|
12649
12649
|
return;
|
|
12650
12650
|
}
|
|
12651
|
-
if (
|
|
12651
|
+
if (Ye.isExtendLineBackward(R)) {
|
|
12652
12652
|
A.preventDefault(), Q.move(f, {
|
|
12653
12653
|
unit: "line",
|
|
12654
12654
|
edge: "focus",
|
|
@@ -12656,14 +12656,14 @@ var Sy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Ld(e)), jy =
|
|
|
12656
12656
|
});
|
|
12657
12657
|
return;
|
|
12658
12658
|
}
|
|
12659
|
-
if (
|
|
12659
|
+
if (Ye.isExtendLineForward(R)) {
|
|
12660
12660
|
A.preventDefault(), Q.move(f, {
|
|
12661
12661
|
unit: "line",
|
|
12662
12662
|
edge: "focus"
|
|
12663
12663
|
});
|
|
12664
12664
|
return;
|
|
12665
12665
|
}
|
|
12666
|
-
if (
|
|
12666
|
+
if (Ye.isMoveBackward(R)) {
|
|
12667
12667
|
A.preventDefault(), U && K.isCollapsed(U) ? Q.move(f, {
|
|
12668
12668
|
reverse: !ee
|
|
12669
12669
|
}) : Q.collapse(f, {
|
|
@@ -12671,7 +12671,7 @@ var Sy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Ld(e)), jy =
|
|
|
12671
12671
|
});
|
|
12672
12672
|
return;
|
|
12673
12673
|
}
|
|
12674
|
-
if (
|
|
12674
|
+
if (Ye.isMoveForward(R)) {
|
|
12675
12675
|
A.preventDefault(), U && K.isCollapsed(U) ? Q.move(f, {
|
|
12676
12676
|
reverse: ee
|
|
12677
12677
|
}) : Q.collapse(f, {
|
|
@@ -12679,7 +12679,7 @@ var Sy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Ld(e)), jy =
|
|
|
12679
12679
|
});
|
|
12680
12680
|
return;
|
|
12681
12681
|
}
|
|
12682
|
-
if (
|
|
12682
|
+
if (Ye.isMoveWordBackward(R)) {
|
|
12683
12683
|
A.preventDefault(), U && K.isExpanded(U) && Q.collapse(f, {
|
|
12684
12684
|
edge: "focus"
|
|
12685
12685
|
}), Q.move(f, {
|
|
@@ -12688,7 +12688,7 @@ var Sy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Ld(e)), jy =
|
|
|
12688
12688
|
});
|
|
12689
12689
|
return;
|
|
12690
12690
|
}
|
|
12691
|
-
if (
|
|
12691
|
+
if (Ye.isMoveWordForward(R)) {
|
|
12692
12692
|
A.preventDefault(), U && K.isExpanded(U) && Q.collapse(f, {
|
|
12693
12693
|
edge: "focus"
|
|
12694
12694
|
}), Q.move(f, {
|
|
@@ -12698,7 +12698,7 @@ var Sy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Ld(e)), jy =
|
|
|
12698
12698
|
return;
|
|
12699
12699
|
}
|
|
12700
12700
|
if (rn) {
|
|
12701
|
-
if ((Bd || br) && U && (
|
|
12701
|
+
if ((Bd || br) && U && (Ye.isDeleteBackward(R) || Ye.isDeleteForward(R)) && K.isCollapsed(U)) {
|
|
12702
12702
|
var G = oe.parent(f, U.anchor.path);
|
|
12703
12703
|
if (ce.isElement(G) && b.isVoid(f, G) && (b.isInline(f, G) || b.isBlock(f, G))) {
|
|
12704
12704
|
A.preventDefault(), b.deleteBackward(f, {
|
|
@@ -12708,31 +12708,31 @@ var Sy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Ld(e)), jy =
|
|
|
12708
12708
|
}
|
|
12709
12709
|
}
|
|
12710
12710
|
} else {
|
|
12711
|
-
if (
|
|
12711
|
+
if (Ye.isBold(R) || Ye.isItalic(R) || Ye.isTransposeCharacter(R)) {
|
|
12712
12712
|
A.preventDefault();
|
|
12713
12713
|
return;
|
|
12714
12714
|
}
|
|
12715
|
-
if (
|
|
12715
|
+
if (Ye.isSoftBreak(R)) {
|
|
12716
12716
|
A.preventDefault(), b.insertSoftBreak(f);
|
|
12717
12717
|
return;
|
|
12718
12718
|
}
|
|
12719
|
-
if (
|
|
12719
|
+
if (Ye.isSplitBlock(R)) {
|
|
12720
12720
|
A.preventDefault(), b.insertBreak(f);
|
|
12721
12721
|
return;
|
|
12722
12722
|
}
|
|
12723
|
-
if (
|
|
12723
|
+
if (Ye.isDeleteBackward(R)) {
|
|
12724
12724
|
A.preventDefault(), U && K.isExpanded(U) ? b.deleteFragment(f, {
|
|
12725
12725
|
direction: "backward"
|
|
12726
12726
|
}) : b.deleteBackward(f);
|
|
12727
12727
|
return;
|
|
12728
12728
|
}
|
|
12729
|
-
if (
|
|
12729
|
+
if (Ye.isDeleteForward(R)) {
|
|
12730
12730
|
A.preventDefault(), U && K.isExpanded(U) ? b.deleteFragment(f, {
|
|
12731
12731
|
direction: "forward"
|
|
12732
12732
|
}) : b.deleteForward(f);
|
|
12733
12733
|
return;
|
|
12734
12734
|
}
|
|
12735
|
-
if (
|
|
12735
|
+
if (Ye.isDeleteLineBackward(R)) {
|
|
12736
12736
|
A.preventDefault(), U && K.isExpanded(U) ? b.deleteFragment(f, {
|
|
12737
12737
|
direction: "backward"
|
|
12738
12738
|
}) : b.deleteBackward(f, {
|
|
@@ -12740,7 +12740,7 @@ var Sy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Ld(e)), jy =
|
|
|
12740
12740
|
});
|
|
12741
12741
|
return;
|
|
12742
12742
|
}
|
|
12743
|
-
if (
|
|
12743
|
+
if (Ye.isDeleteLineForward(R)) {
|
|
12744
12744
|
A.preventDefault(), U && K.isExpanded(U) ? b.deleteFragment(f, {
|
|
12745
12745
|
direction: "forward"
|
|
12746
12746
|
}) : b.deleteForward(f, {
|
|
@@ -12748,7 +12748,7 @@ var Sy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Ld(e)), jy =
|
|
|
12748
12748
|
});
|
|
12749
12749
|
return;
|
|
12750
12750
|
}
|
|
12751
|
-
if (
|
|
12751
|
+
if (Ye.isDeleteWordBackward(R)) {
|
|
12752
12752
|
A.preventDefault(), U && K.isExpanded(U) ? b.deleteFragment(f, {
|
|
12753
12753
|
direction: "backward"
|
|
12754
12754
|
}) : b.deleteBackward(f, {
|
|
@@ -12756,7 +12756,7 @@ var Sy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Ld(e)), jy =
|
|
|
12756
12756
|
});
|
|
12757
12757
|
return;
|
|
12758
12758
|
}
|
|
12759
|
-
if (
|
|
12759
|
+
if (Ye.isDeleteWordForward(R)) {
|
|
12760
12760
|
A.preventDefault(), U && K.isExpanded(U) ? b.deleteFragment(f, {
|
|
12761
12761
|
direction: "forward"
|
|
12762
12762
|
}) : b.deleteForward(f, {
|
|
@@ -13134,7 +13134,7 @@ const Uy = ({
|
|
|
13134
13134
|
anchor: { offset: 0, path: [0, 0] },
|
|
13135
13135
|
focus: { offset: 0, path: [0, 0] }
|
|
13136
13136
|
}, hl = { "mention-popover": 35, default: -52 }, Ai = 16, Ud = (e, t, n) => {
|
|
13137
|
-
const r = Fe(null), { showLinkEditor: a, mentionPopover: i } =
|
|
13137
|
+
const r = Fe(null), { showLinkEditor: a, mentionPopover: i } = Ze(nn), s = t === "link-editor" ? a : i.show, o = [s];
|
|
13138
13138
|
return e && t === "link-editor" && o.push(e.selection), me(() => {
|
|
13139
13139
|
var m, g;
|
|
13140
13140
|
if (!(r != null && r.current) || !s)
|
|
@@ -14624,7 +14624,7 @@ function Ss(e) {
|
|
|
14624
14624
|
);
|
|
14625
14625
|
}
|
|
14626
14626
|
const js = vn(/\d/), w1 = vn(/[\dA-Fa-f]/), C1 = vn(/[!-/:-@[-`{-~]/);
|
|
14627
|
-
function
|
|
14627
|
+
function xe(e) {
|
|
14628
14628
|
return e !== null && e < -2;
|
|
14629
14629
|
}
|
|
14630
14630
|
function vt(e) {
|
|
@@ -14684,7 +14684,7 @@ function B1(e) {
|
|
|
14684
14684
|
e.exit("chunkText"), e.exit("paragraph"), e.consume(o);
|
|
14685
14685
|
return;
|
|
14686
14686
|
}
|
|
14687
|
-
return
|
|
14687
|
+
return xe(o) ? (e.consume(o), e.exit("chunkText"), i) : (e.consume(o), s);
|
|
14688
14688
|
}
|
|
14689
14689
|
}
|
|
14690
14690
|
const A1 = {
|
|
@@ -14776,7 +14776,7 @@ function F1(e) {
|
|
|
14776
14776
|
D(e.exit("chunkFlow"), !0), v(0), e.consume(_);
|
|
14777
14777
|
return;
|
|
14778
14778
|
}
|
|
14779
|
-
return
|
|
14779
|
+
return xe(_) ? (e.consume(_), D(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, o) : (e.consume(_), f);
|
|
14780
14780
|
}
|
|
14781
14781
|
function D(_, C) {
|
|
14782
14782
|
const x = t.sliceStream(_);
|
|
@@ -14974,7 +14974,7 @@ function N1(e, t, n) {
|
|
|
14974
14974
|
return $e(i) ? Ue(e, a, "linePrefix")(i) : a(i);
|
|
14975
14975
|
}
|
|
14976
14976
|
function a(i) {
|
|
14977
|
-
return i === null ||
|
|
14977
|
+
return i === null || xe(i) ? t(i) : n(i);
|
|
14978
14978
|
}
|
|
14979
14979
|
}
|
|
14980
14980
|
const Yd = {
|
|
@@ -15083,20 +15083,20 @@ function z1(e, t, n) {
|
|
|
15083
15083
|
return F === o ? (s++, e.consume(F), d) : s < 3 ? n(F) : (e.exit("codeFencedFenceSequence"), $e(F) ? Ue(e, h, "whitespace")(F) : h(F));
|
|
15084
15084
|
}
|
|
15085
15085
|
function h(F) {
|
|
15086
|
-
return F === null ||
|
|
15086
|
+
return F === null || xe(F) ? (e.exit("codeFencedFence"), r.interrupt ? t(F) : e.check(jl, f, C)(F)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
15087
15087
|
contentType: "string"
|
|
15088
15088
|
}), p(F));
|
|
15089
15089
|
}
|
|
15090
15090
|
function p(F) {
|
|
15091
|
-
return F === null ||
|
|
15091
|
+
return F === null || xe(F) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), h(F)) : $e(F) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Ue(e, m, "whitespace")(F)) : F === 96 && F === o ? n(F) : (e.consume(F), p);
|
|
15092
15092
|
}
|
|
15093
15093
|
function m(F) {
|
|
15094
|
-
return F === null ||
|
|
15094
|
+
return F === null || xe(F) ? h(F) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
15095
15095
|
contentType: "string"
|
|
15096
15096
|
}), g(F));
|
|
15097
15097
|
}
|
|
15098
15098
|
function g(F) {
|
|
15099
|
-
return F === null ||
|
|
15099
|
+
return F === null || xe(F) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), h(F)) : F === 96 && F === o ? n(F) : (e.consume(F), g);
|
|
15100
15100
|
}
|
|
15101
15101
|
function f(F) {
|
|
15102
15102
|
return e.attempt(a, C, D)(F);
|
|
@@ -15113,10 +15113,10 @@ function z1(e, t, n) {
|
|
|
15113
15113
|
)(F) : w(F);
|
|
15114
15114
|
}
|
|
15115
15115
|
function w(F) {
|
|
15116
|
-
return F === null ||
|
|
15116
|
+
return F === null || xe(F) ? e.check(jl, f, C)(F) : (e.enter("codeFlowValue"), _(F));
|
|
15117
15117
|
}
|
|
15118
15118
|
function _(F) {
|
|
15119
|
-
return F === null ||
|
|
15119
|
+
return F === null || xe(F) ? (e.exit("codeFlowValue"), w(F)) : (e.consume(F), _);
|
|
15120
15120
|
}
|
|
15121
15121
|
function C(F) {
|
|
15122
15122
|
return e.exit("codeFenced"), t(F);
|
|
@@ -15142,7 +15142,7 @@ function z1(e, t, n) {
|
|
|
15142
15142
|
return $ === o ? (P++, F.consume($), B) : P >= s ? (F.exit("codeFencedFenceSequence"), $e($) ? Ue(F, j, "whitespace")($) : j($)) : q($);
|
|
15143
15143
|
}
|
|
15144
15144
|
function j($) {
|
|
15145
|
-
return $ === null ||
|
|
15145
|
+
return $ === null || xe($) ? (F.exit("codeFencedFence"), T($)) : q($);
|
|
15146
15146
|
}
|
|
15147
15147
|
}
|
|
15148
15148
|
}
|
|
@@ -15174,10 +15174,10 @@ function H1(e, t, n) {
|
|
|
15174
15174
|
return d && d[1].type === "linePrefix" && d[2].sliceSerialize(d[1], !0).length >= 4 ? s(u) : n(u);
|
|
15175
15175
|
}
|
|
15176
15176
|
function s(u) {
|
|
15177
|
-
return u === null ? l(u) :
|
|
15177
|
+
return u === null ? l(u) : xe(u) ? e.attempt(W1, s, l)(u) : (e.enter("codeFlowValue"), o(u));
|
|
15178
15178
|
}
|
|
15179
15179
|
function o(u) {
|
|
15180
|
-
return u === null ||
|
|
15180
|
+
return u === null || xe(u) ? (e.exit("codeFlowValue"), s(u)) : (e.consume(u), o);
|
|
15181
15181
|
}
|
|
15182
15182
|
function l(u) {
|
|
15183
15183
|
return e.exit("codeIndented"), t(u);
|
|
@@ -15187,11 +15187,11 @@ function U1(e, t, n) {
|
|
|
15187
15187
|
const r = this;
|
|
15188
15188
|
return a;
|
|
15189
15189
|
function a(s) {
|
|
15190
|
-
return r.parser.lazy[r.now().line] ? n(s) :
|
|
15190
|
+
return r.parser.lazy[r.now().line] ? n(s) : xe(s) ? (e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"), a) : Ue(e, i, "linePrefix", 4 + 1)(s);
|
|
15191
15191
|
}
|
|
15192
15192
|
function i(s) {
|
|
15193
15193
|
const o = r.events[r.events.length - 1];
|
|
15194
|
-
return o && o[1].type === "linePrefix" && o[2].sliceSerialize(o[1], !0).length >= 4 ? t(s) :
|
|
15194
|
+
return o && o[1].type === "linePrefix" && o[2].sliceSerialize(o[1], !0).length >= 4 ? t(s) : xe(s) ? a(s) : n(s);
|
|
15195
15195
|
}
|
|
15196
15196
|
}
|
|
15197
15197
|
const V1 = {
|
|
@@ -15226,10 +15226,10 @@ function Y1(e, t, n) {
|
|
|
15226
15226
|
return h === 96 ? (e.consume(h), r++, o) : (e.exit("codeTextSequence"), l(h));
|
|
15227
15227
|
}
|
|
15228
15228
|
function l(h) {
|
|
15229
|
-
return h === null ? n(h) : h === 32 ? (e.enter("space"), e.consume(h), e.exit("space"), l) : h === 96 ? (i = e.enter("codeTextSequence"), a = 0, d(h)) :
|
|
15229
|
+
return h === null ? n(h) : h === 32 ? (e.enter("space"), e.consume(h), e.exit("space"), l) : h === 96 ? (i = e.enter("codeTextSequence"), a = 0, d(h)) : xe(h) ? (e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), l) : (e.enter("codeTextData"), u(h));
|
|
15230
15230
|
}
|
|
15231
15231
|
function u(h) {
|
|
15232
|
-
return h === null || h === 32 || h === 96 ||
|
|
15232
|
+
return h === null || h === 32 || h === 96 || xe(h) ? (e.exit("codeTextData"), l(h)) : (e.consume(h), u);
|
|
15233
15233
|
}
|
|
15234
15234
|
function d(h) {
|
|
15235
15235
|
return h === 96 ? (e.consume(h), a++, d) : a === r ? (e.exit("codeTextSequence"), e.exit("codeText"), t(h)) : (i.type = "codeTextData", u(h));
|
|
@@ -15295,7 +15295,7 @@ function eD(e, t) {
|
|
|
15295
15295
|
}), a(o);
|
|
15296
15296
|
}
|
|
15297
15297
|
function a(o) {
|
|
15298
|
-
return o === null ? i(o) :
|
|
15298
|
+
return o === null ? i(o) : xe(o) ? e.check(
|
|
15299
15299
|
J1,
|
|
15300
15300
|
s,
|
|
15301
15301
|
i
|
|
@@ -15318,7 +15318,7 @@ function tD(e, t, n) {
|
|
|
15318
15318
|
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"), Ue(e, i, "linePrefix");
|
|
15319
15319
|
}
|
|
15320
15320
|
function i(s) {
|
|
15321
|
-
if (s === null ||
|
|
15321
|
+
if (s === null || xe(s))
|
|
15322
15322
|
return n(s);
|
|
15323
15323
|
const o = r.events[r.events.length - 1];
|
|
15324
15324
|
return !r.parser.constructs.disable.null.includes("codeIndented") && o && o[1].type === "linePrefix" && o[2].sliceSerialize(o[1], !0).length >= 4 ? t(s) : e.interrupt(r.parser.constructs.flow, n, t)(s);
|
|
@@ -15339,7 +15339,7 @@ function Xd(e, t, n, r, a, i, s, o, l) {
|
|
|
15339
15339
|
}), m(v));
|
|
15340
15340
|
}
|
|
15341
15341
|
function m(v) {
|
|
15342
|
-
return v === 62 ? (e.exit("chunkString"), e.exit(o), p(v)) : v === null || v === 60 ||
|
|
15342
|
+
return v === 62 ? (e.exit("chunkString"), e.exit(o), p(v)) : v === null || v === 60 || xe(v) ? n(v) : (e.consume(v), v === 92 ? g : m);
|
|
15343
15343
|
}
|
|
15344
15344
|
function g(v) {
|
|
15345
15345
|
return v === 60 || v === 62 || v === 92 ? (e.consume(v), m) : m(v);
|
|
@@ -15364,12 +15364,12 @@ function ef(e, t, n, r, a, i) {
|
|
|
15364
15364
|
// which doesn’t need this.
|
|
15365
15365
|
// Hidden footnotes hook.
|
|
15366
15366
|
/* c8 ignore next 3 */
|
|
15367
|
-
m === 94 && !o && "_hiddenFootnoteSupport" in s.parser.constructs ? n(m) : m === 93 ? (e.exit(i), e.enter(a), e.consume(m), e.exit(a), e.exit(r), t) :
|
|
15367
|
+
m === 94 && !o && "_hiddenFootnoteSupport" in s.parser.constructs ? n(m) : m === 93 ? (e.exit(i), e.enter(a), e.consume(m), e.exit(a), e.exit(r), t) : xe(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), d) : (e.enter("chunkString", {
|
|
15368
15368
|
contentType: "string"
|
|
15369
15369
|
}), h(m));
|
|
15370
15370
|
}
|
|
15371
15371
|
function h(m) {
|
|
15372
|
-
return m === null || m === 91 || m === 93 ||
|
|
15372
|
+
return m === null || m === 91 || m === 93 || xe(m) || o++ > 999 ? (e.exit("chunkString"), d(m)) : (e.consume(m), l || (l = !$e(m)), m === 92 ? p : h);
|
|
15373
15373
|
}
|
|
15374
15374
|
function p(m) {
|
|
15375
15375
|
return m === 91 || m === 92 || m === 93 ? (e.consume(m), o++, h) : h(m);
|
|
@@ -15385,12 +15385,12 @@ function tf(e, t, n, r, a, i) {
|
|
|
15385
15385
|
return p === s ? (e.enter(a), e.consume(p), e.exit(a), e.exit(r), t) : (e.enter(i), u(p));
|
|
15386
15386
|
}
|
|
15387
15387
|
function u(p) {
|
|
15388
|
-
return p === s ? (e.exit(i), l(s)) : p === null ? n(p) :
|
|
15388
|
+
return p === s ? (e.exit(i), l(s)) : p === null ? n(p) : xe(p) ? (e.enter("lineEnding"), e.consume(p), e.exit("lineEnding"), Ue(e, u, "linePrefix")) : (e.enter("chunkString", {
|
|
15389
15389
|
contentType: "string"
|
|
15390
15390
|
}), d(p));
|
|
15391
15391
|
}
|
|
15392
15392
|
function d(p) {
|
|
15393
|
-
return p === s || p === null ||
|
|
15393
|
+
return p === s || p === null || xe(p) ? (e.exit("chunkString"), u(p)) : (e.consume(p), p === 92 ? h : d);
|
|
15394
15394
|
}
|
|
15395
15395
|
function h(p) {
|
|
15396
15396
|
return p === s || p === 92 ? (e.consume(p), d) : d(p);
|
|
@@ -15400,7 +15400,7 @@ function Er(e, t) {
|
|
|
15400
15400
|
let n;
|
|
15401
15401
|
return r;
|
|
15402
15402
|
function r(a) {
|
|
15403
|
-
return
|
|
15403
|
+
return xe(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), n = !0, r) : $e(a) ? Ue(
|
|
15404
15404
|
e,
|
|
15405
15405
|
r,
|
|
15406
15406
|
n ? "linePrefix" : "lineSuffix"
|
|
@@ -15461,7 +15461,7 @@ function aD(e, t, n) {
|
|
|
15461
15461
|
return $e(m) ? Ue(e, p, "whitespace")(m) : p(m);
|
|
15462
15462
|
}
|
|
15463
15463
|
function p(m) {
|
|
15464
|
-
return m === null ||
|
|
15464
|
+
return m === null || xe(m) ? (e.exit("definition"), r.parser.defined.push(a), t(m)) : n(m);
|
|
15465
15465
|
}
|
|
15466
15466
|
}
|
|
15467
15467
|
function iD(e, t, n) {
|
|
@@ -15483,7 +15483,7 @@ function iD(e, t, n) {
|
|
|
15483
15483
|
return $e(o) ? Ue(e, s, "whitespace")(o) : s(o);
|
|
15484
15484
|
}
|
|
15485
15485
|
function s(o) {
|
|
15486
|
-
return o === null ||
|
|
15486
|
+
return o === null || xe(o) ? t(o) : n(o);
|
|
15487
15487
|
}
|
|
15488
15488
|
}
|
|
15489
15489
|
const sD = {
|
|
@@ -15496,7 +15496,7 @@ function oD(e, t, n) {
|
|
|
15496
15496
|
return e.enter("hardBreakEscape"), e.consume(i), a;
|
|
15497
15497
|
}
|
|
15498
15498
|
function a(i) {
|
|
15499
|
-
return
|
|
15499
|
+
return xe(i) ? (e.exit("hardBreakEscape"), t(i)) : n(i);
|
|
15500
15500
|
}
|
|
15501
15501
|
}
|
|
15502
15502
|
const uD = {
|
|
@@ -15535,7 +15535,7 @@ function cD(e, t, n) {
|
|
|
15535
15535
|
return d === 35 && r++ < 6 ? (e.consume(d), s) : d === null || vt(d) ? (e.exit("atxHeadingSequence"), o(d)) : n(d);
|
|
15536
15536
|
}
|
|
15537
15537
|
function o(d) {
|
|
15538
|
-
return d === 35 ? (e.enter("atxHeadingSequence"), l(d)) : d === null ||
|
|
15538
|
+
return d === 35 ? (e.enter("atxHeadingSequence"), l(d)) : d === null || xe(d) ? (e.exit("atxHeading"), t(d)) : $e(d) ? Ue(e, o, "whitespace")(d) : (e.enter("atxHeadingText"), u(d));
|
|
15539
15539
|
}
|
|
15540
15540
|
function l(d) {
|
|
15541
15541
|
return d === 35 ? (e.consume(d), l) : (e.exit("atxHeadingSequence"), o(d));
|
|
@@ -15677,7 +15677,7 @@ function gD(e, t, n) {
|
|
|
15677
15677
|
return k === null || k === 60 || k === 61 || k === 62 || k === 96 ? n(k) : k === 34 || k === 39 ? (e.consume(k), l = k, T) : $e(k) ? (e.consume(k), F) : q(k);
|
|
15678
15678
|
}
|
|
15679
15679
|
function T(k) {
|
|
15680
|
-
return k === l ? (e.consume(k), l = null, P) : k === null ||
|
|
15680
|
+
return k === l ? (e.consume(k), l = null, P) : k === null || xe(k) ? n(k) : (e.consume(k), T);
|
|
15681
15681
|
}
|
|
15682
15682
|
function q(k) {
|
|
15683
15683
|
return k === null || k === 34 || k === 39 || k === 47 || k === 60 || k === 61 || k === 62 || k === 96 || vt(k) ? x(k) : (e.consume(k), q);
|
|
@@ -15689,14 +15689,14 @@ function gD(e, t, n) {
|
|
|
15689
15689
|
return k === 62 ? (e.consume(k), M) : n(k);
|
|
15690
15690
|
}
|
|
15691
15691
|
function M(k) {
|
|
15692
|
-
return k === null ||
|
|
15692
|
+
return k === null || xe(k) ? E(k) : $e(k) ? (e.consume(k), M) : n(k);
|
|
15693
15693
|
}
|
|
15694
15694
|
function E(k) {
|
|
15695
|
-
return k === 45 && a === 2 ? (e.consume(k), N) : k === 60 && a === 1 ? (e.consume(k), H) : k === 62 && a === 4 ? (e.consume(k), L) : k === 63 && a === 3 ? (e.consume(k), y) : k === 93 && a === 5 ? (e.consume(k), W) :
|
|
15695
|
+
return k === 45 && a === 2 ? (e.consume(k), N) : k === 60 && a === 1 ? (e.consume(k), H) : k === 62 && a === 4 ? (e.consume(k), L) : k === 63 && a === 3 ? (e.consume(k), y) : k === 93 && a === 5 ? (e.consume(k), W) : xe(k) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(
|
|
15696
15696
|
hD,
|
|
15697
15697
|
X,
|
|
15698
15698
|
B
|
|
15699
|
-
)(k)) : k === null ||
|
|
15699
|
+
)(k)) : k === null || xe(k) ? (e.exit("htmlFlowData"), B(k)) : (e.consume(k), E);
|
|
15700
15700
|
}
|
|
15701
15701
|
function B(k) {
|
|
15702
15702
|
return e.check(
|
|
@@ -15709,7 +15709,7 @@ function gD(e, t, n) {
|
|
|
15709
15709
|
return e.enter("lineEnding"), e.consume(k), e.exit("lineEnding"), $;
|
|
15710
15710
|
}
|
|
15711
15711
|
function $(k) {
|
|
15712
|
-
return k === null ||
|
|
15712
|
+
return k === null || xe(k) ? B(k) : (e.enter("htmlFlowData"), E(k));
|
|
15713
15713
|
}
|
|
15714
15714
|
function N(k) {
|
|
15715
15715
|
return k === 45 ? (e.consume(k), y) : E(k);
|
|
@@ -15731,7 +15731,7 @@ function gD(e, t, n) {
|
|
|
15731
15731
|
return k === 62 ? (e.consume(k), L) : k === 45 && a === 2 ? (e.consume(k), y) : E(k);
|
|
15732
15732
|
}
|
|
15733
15733
|
function L(k) {
|
|
15734
|
-
return k === null ||
|
|
15734
|
+
return k === null || xe(k) ? (e.exit("htmlFlowData"), X(k)) : (e.consume(k), L);
|
|
15735
15735
|
}
|
|
15736
15736
|
function X(k) {
|
|
15737
15737
|
return e.exit("htmlFlow"), t(k);
|
|
@@ -15741,7 +15741,7 @@ function vD(e, t, n) {
|
|
|
15741
15741
|
const r = this;
|
|
15742
15742
|
return a;
|
|
15743
15743
|
function a(s) {
|
|
15744
|
-
return
|
|
15744
|
+
return xe(s) ? (e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"), i) : n(s);
|
|
15745
15745
|
}
|
|
15746
15746
|
function i(s) {
|
|
15747
15747
|
return r.parser.lazy[r.now().line] ? n(s) : t(s);
|
|
@@ -15774,7 +15774,7 @@ function DD(e, t, n) {
|
|
|
15774
15774
|
return y === 45 ? (e.consume(y), m) : n(y);
|
|
15775
15775
|
}
|
|
15776
15776
|
function h(y) {
|
|
15777
|
-
return y === null ? n(y) : y === 45 ? (e.consume(y), p) :
|
|
15777
|
+
return y === null ? n(y) : y === 45 ? (e.consume(y), p) : xe(y) ? (s = h, H(y)) : (e.consume(y), h);
|
|
15778
15778
|
}
|
|
15779
15779
|
function p(y) {
|
|
15780
15780
|
return y === 45 ? (e.consume(y), m) : h(y);
|
|
@@ -15787,7 +15787,7 @@ function DD(e, t, n) {
|
|
|
15787
15787
|
return y === L.charCodeAt(i++) ? (e.consume(y), i === L.length ? f : g) : n(y);
|
|
15788
15788
|
}
|
|
15789
15789
|
function f(y) {
|
|
15790
|
-
return y === null ? n(y) : y === 93 ? (e.consume(y), D) :
|
|
15790
|
+
return y === null ? n(y) : y === 93 ? (e.consume(y), D) : xe(y) ? (s = f, H(y)) : (e.consume(y), f);
|
|
15791
15791
|
}
|
|
15792
15792
|
function D(y) {
|
|
15793
15793
|
return y === 93 ? (e.consume(y), v) : f(y);
|
|
@@ -15796,10 +15796,10 @@ function DD(e, t, n) {
|
|
|
15796
15796
|
return y === 62 ? N(y) : y === 93 ? (e.consume(y), v) : f(y);
|
|
15797
15797
|
}
|
|
15798
15798
|
function w(y) {
|
|
15799
|
-
return y === null || y === 62 ? N(y) :
|
|
15799
|
+
return y === null || y === 62 ? N(y) : xe(y) ? (s = w, H(y)) : (e.consume(y), w);
|
|
15800
15800
|
}
|
|
15801
15801
|
function _(y) {
|
|
15802
|
-
return y === null ? n(y) : y === 63 ? (e.consume(y), C) :
|
|
15802
|
+
return y === null ? n(y) : y === 63 ? (e.consume(y), C) : xe(y) ? (s = _, H(y)) : (e.consume(y), _);
|
|
15803
15803
|
}
|
|
15804
15804
|
function C(y) {
|
|
15805
15805
|
return y === 62 ? N(y) : _(y);
|
|
@@ -15811,25 +15811,25 @@ function DD(e, t, n) {
|
|
|
15811
15811
|
return y === 45 || Pt(y) ? (e.consume(y), F) : T(y);
|
|
15812
15812
|
}
|
|
15813
15813
|
function T(y) {
|
|
15814
|
-
return
|
|
15814
|
+
return xe(y) ? (s = T, H(y)) : $e(y) ? (e.consume(y), T) : N(y);
|
|
15815
15815
|
}
|
|
15816
15816
|
function q(y) {
|
|
15817
15817
|
return y === 45 || Pt(y) ? (e.consume(y), q) : y === 47 || y === 62 || vt(y) ? P(y) : n(y);
|
|
15818
15818
|
}
|
|
15819
15819
|
function P(y) {
|
|
15820
|
-
return y === 47 ? (e.consume(y), N) : y === 58 || y === 95 || Lt(y) ? (e.consume(y), z) :
|
|
15820
|
+
return y === 47 ? (e.consume(y), N) : y === 58 || y === 95 || Lt(y) ? (e.consume(y), z) : xe(y) ? (s = P, H(y)) : $e(y) ? (e.consume(y), P) : N(y);
|
|
15821
15821
|
}
|
|
15822
15822
|
function z(y) {
|
|
15823
15823
|
return y === 45 || y === 46 || y === 58 || y === 95 || Pt(y) ? (e.consume(y), z) : M(y);
|
|
15824
15824
|
}
|
|
15825
15825
|
function M(y) {
|
|
15826
|
-
return y === 61 ? (e.consume(y), E) :
|
|
15826
|
+
return y === 61 ? (e.consume(y), E) : xe(y) ? (s = M, H(y)) : $e(y) ? (e.consume(y), M) : P(y);
|
|
15827
15827
|
}
|
|
15828
15828
|
function E(y) {
|
|
15829
|
-
return y === null || y === 60 || y === 61 || y === 62 || y === 96 ? n(y) : y === 34 || y === 39 ? (e.consume(y), a = y, B) :
|
|
15829
|
+
return y === null || y === 60 || y === 61 || y === 62 || y === 96 ? n(y) : y === 34 || y === 39 ? (e.consume(y), a = y, B) : xe(y) ? (s = E, H(y)) : $e(y) ? (e.consume(y), E) : (e.consume(y), j);
|
|
15830
15830
|
}
|
|
15831
15831
|
function B(y) {
|
|
15832
|
-
return y === a ? (e.consume(y), a = void 0, $) : y === null ? n(y) :
|
|
15832
|
+
return y === a ? (e.consume(y), a = void 0, $) : y === null ? n(y) : xe(y) ? (s = B, H(y)) : (e.consume(y), B);
|
|
15833
15833
|
}
|
|
15834
15834
|
function j(y) {
|
|
15835
15835
|
return y === null || y === 34 || y === 39 || y === 60 || y === 61 || y === 96 ? n(y) : y === 47 || y === 62 || vt(y) ? P(y) : (e.consume(y), j);
|
|
@@ -16098,7 +16098,7 @@ function ND(e, t, n) {
|
|
|
16098
16098
|
return a = u, o(u);
|
|
16099
16099
|
}
|
|
16100
16100
|
function o(u) {
|
|
16101
|
-
return u === a ? (e.enter("thematicBreakSequence"), l(u)) : r >= 3 && (u === null ||
|
|
16101
|
+
return u === a ? (e.enter("thematicBreakSequence"), l(u)) : r >= 3 && (u === null || xe(u)) ? (e.exit("thematicBreak"), t(u)) : n(u);
|
|
16102
16102
|
}
|
|
16103
16103
|
function l(u) {
|
|
16104
16104
|
return u === a ? (e.consume(u), r++, l) : (e.exit("thematicBreakSequence"), $e(u) ? Ue(e, o, "whitespace")(u) : o(u));
|
|
@@ -16254,7 +16254,7 @@ function HD(e, t, n) {
|
|
|
16254
16254
|
return u === a ? (e.consume(u), o) : (e.exit("setextHeadingLineSequence"), $e(u) ? Ue(e, l, "lineSuffix")(u) : l(u));
|
|
16255
16255
|
}
|
|
16256
16256
|
function l(u) {
|
|
16257
|
-
return u === null ||
|
|
16257
|
+
return u === null || xe(u) ? (e.exit("setextHeadingLine"), t(u)) : n(u);
|
|
16258
16258
|
}
|
|
16259
16259
|
}
|
|
16260
16260
|
const UD = {
|
|
@@ -16464,7 +16464,7 @@ function QD(e, t, n) {
|
|
|
16464
16464
|
d = d(M);
|
|
16465
16465
|
}
|
|
16466
16466
|
function w(M) {
|
|
16467
|
-
|
|
16467
|
+
xe(M) ? (r.line++, r.column = 1, r.offset += M === -3 ? 2 : 1, z()) : M !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === s[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = M;
|
|
16468
16468
|
}
|
|
16469
16469
|
function _(M, E) {
|
|
16470
16470
|
const B = E || {};
|
|
@@ -16757,7 +16757,7 @@ function vx(e) {
|
|
|
16757
16757
|
transforms: [],
|
|
16758
16758
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
16759
16759
|
enter: {
|
|
16760
|
-
autolink: i(
|
|
16760
|
+
autolink: i(Ne),
|
|
16761
16761
|
autolinkProtocol: P,
|
|
16762
16762
|
autolinkEmail: P,
|
|
16763
16763
|
atxHeading: i(pe),
|
|
@@ -16777,27 +16777,27 @@ function vx(e) {
|
|
|
16777
16777
|
definitionLabelString: s,
|
|
16778
16778
|
definitionTitleString: s,
|
|
16779
16779
|
emphasis: i(De),
|
|
16780
|
-
hardBreakEscape: i(
|
|
16781
|
-
hardBreakTrailing: i(
|
|
16782
|
-
htmlFlow: i(
|
|
16780
|
+
hardBreakEscape: i(ke),
|
|
16781
|
+
hardBreakTrailing: i(ke),
|
|
16782
|
+
htmlFlow: i(Be, s),
|
|
16783
16783
|
htmlFlowData: P,
|
|
16784
|
-
htmlText: i(
|
|
16784
|
+
htmlText: i(Be, s),
|
|
16785
16785
|
htmlTextData: P,
|
|
16786
|
-
image: i(
|
|
16786
|
+
image: i(we),
|
|
16787
16787
|
label: s,
|
|
16788
|
-
link: i(
|
|
16789
|
-
listItem: i(
|
|
16788
|
+
link: i(Ne),
|
|
16789
|
+
listItem: i(Ge),
|
|
16790
16790
|
listItemValue: p,
|
|
16791
|
-
listOrdered: i(
|
|
16792
|
-
listUnordered: i(
|
|
16791
|
+
listOrdered: i(He, h),
|
|
16792
|
+
listUnordered: i(He),
|
|
16793
16793
|
paragraph: i(tt),
|
|
16794
16794
|
reference: k,
|
|
16795
16795
|
referenceString: s,
|
|
16796
16796
|
resourceDestinationString: s,
|
|
16797
16797
|
resourceTitleString: s,
|
|
16798
16798
|
setextHeading: i(pe),
|
|
16799
|
-
strong: i(
|
|
16800
|
-
thematicBreak: i(
|
|
16799
|
+
strong: i(Pe),
|
|
16800
|
+
thematicBreak: i(_e)
|
|
16801
16801
|
},
|
|
16802
16802
|
exit: {
|
|
16803
16803
|
atxHeading: l(),
|
|
@@ -17220,18 +17220,18 @@ function vx(e) {
|
|
|
17220
17220
|
children: []
|
|
17221
17221
|
};
|
|
17222
17222
|
}
|
|
17223
|
-
function
|
|
17223
|
+
function ke() {
|
|
17224
17224
|
return {
|
|
17225
17225
|
type: "break"
|
|
17226
17226
|
};
|
|
17227
17227
|
}
|
|
17228
|
-
function
|
|
17228
|
+
function Be() {
|
|
17229
17229
|
return {
|
|
17230
17230
|
type: "html",
|
|
17231
17231
|
value: ""
|
|
17232
17232
|
};
|
|
17233
17233
|
}
|
|
17234
|
-
function
|
|
17234
|
+
function we() {
|
|
17235
17235
|
return {
|
|
17236
17236
|
type: "image",
|
|
17237
17237
|
title: null,
|
|
@@ -17239,7 +17239,7 @@ function vx(e) {
|
|
|
17239
17239
|
alt: null
|
|
17240
17240
|
};
|
|
17241
17241
|
}
|
|
17242
|
-
function
|
|
17242
|
+
function Ne() {
|
|
17243
17243
|
return {
|
|
17244
17244
|
type: "link",
|
|
17245
17245
|
title: null,
|
|
@@ -17247,7 +17247,7 @@ function vx(e) {
|
|
|
17247
17247
|
children: []
|
|
17248
17248
|
};
|
|
17249
17249
|
}
|
|
17250
|
-
function
|
|
17250
|
+
function He(V) {
|
|
17251
17251
|
return {
|
|
17252
17252
|
type: "list",
|
|
17253
17253
|
ordered: V.type === "listOrdered",
|
|
@@ -17256,7 +17256,7 @@ function vx(e) {
|
|
|
17256
17256
|
children: []
|
|
17257
17257
|
};
|
|
17258
17258
|
}
|
|
17259
|
-
function
|
|
17259
|
+
function Ge(V) {
|
|
17260
17260
|
return {
|
|
17261
17261
|
type: "listItem",
|
|
17262
17262
|
spread: V._spread,
|
|
@@ -17270,7 +17270,7 @@ function vx(e) {
|
|
|
17270
17270
|
children: []
|
|
17271
17271
|
};
|
|
17272
17272
|
}
|
|
17273
|
-
function
|
|
17273
|
+
function Pe() {
|
|
17274
17274
|
return {
|
|
17275
17275
|
type: "strong",
|
|
17276
17276
|
children: []
|
|
@@ -17282,7 +17282,7 @@ function vx(e) {
|
|
|
17282
17282
|
value: ""
|
|
17283
17283
|
};
|
|
17284
17284
|
}
|
|
17285
|
-
function
|
|
17285
|
+
function _e() {
|
|
17286
17286
|
return {
|
|
17287
17287
|
type: "thematicBreak"
|
|
17288
17288
|
};
|
|
@@ -17704,7 +17704,7 @@ function Ln(e, t) {
|
|
|
17704
17704
|
}
|
|
17705
17705
|
const zl = (e) => e.split("").reverse().join(""), kx = (e) => e.map((t) => lf(t)).join("").trim();
|
|
17706
17706
|
const Bx = () => {
|
|
17707
|
-
const e = jn(), { dispatch: t, mentionPopover: n, id: r } =
|
|
17707
|
+
const e = jn(), { dispatch: t, mentionPopover: n, id: r } = Ze(nn), { show: a, selectedUser: i, possibleUsers: s } = n, o = Ud(e, "mention-popover", `toolbar-${r}`);
|
|
17708
17708
|
return !a || !s.length ? null : /* @__PURE__ */ c.jsx(zs, { children: /* @__PURE__ */ c.jsx(
|
|
17709
17709
|
Ph,
|
|
17710
17710
|
{
|
|
@@ -17751,7 +17751,7 @@ const Bx = () => {
|
|
|
17751
17751
|
setFocus: h,
|
|
17752
17752
|
openTooltip: p,
|
|
17753
17753
|
dispatch: m
|
|
17754
|
-
} =
|
|
17754
|
+
} = Ze(nn), g = {};
|
|
17755
17755
|
return e !== d && (g.tabIndex = -1), /* @__PURE__ */ c.jsxs(
|
|
17756
17756
|
"li",
|
|
17757
17757
|
{
|
|
@@ -17819,7 +17819,7 @@ const Bx = () => {
|
|
|
17819
17819
|
}
|
|
17820
17820
|
},
|
|
17821
17821
|
children: [
|
|
17822
|
-
/* @__PURE__ */ c.jsx(
|
|
17822
|
+
/* @__PURE__ */ c.jsx(We, { showOnFocus: !1, children: o.formatMessage({ id: `richTextEditor_${e}` }) }),
|
|
17823
17823
|
/* @__PURE__ */ c.jsx(
|
|
17824
17824
|
rr,
|
|
17825
17825
|
{
|
|
@@ -17902,7 +17902,7 @@ const Bx = () => {
|
|
|
17902
17902
|
n(`Error toggling block: ${a}`);
|
|
17903
17903
|
}
|
|
17904
17904
|
}, Fx = ({ format: e, hasDivider: t = !1 }) => {
|
|
17905
|
-
const { setFocus: n, reportError: r } =
|
|
17905
|
+
const { setFocus: n, reportError: r } = Ze(nn), a = jn(), i = cf(a, e);
|
|
17906
17906
|
return /* @__PURE__ */ c.jsx(
|
|
17907
17907
|
vo,
|
|
17908
17908
|
{
|
|
@@ -17964,7 +17964,7 @@ const Bx = () => {
|
|
|
17964
17964
|
};
|
|
17965
17965
|
let Ii = null;
|
|
17966
17966
|
const jx = () => {
|
|
17967
|
-
const e = le(), t = "richTextEditor_link_", { id: n, showLinkEditor: r, isInOverlay: a, dispatch: i, reportError: s } =
|
|
17967
|
+
const e = le(), t = "richTextEditor_link_", { id: n, showLinkEditor: r, isInOverlay: a, dispatch: i, reportError: s } = Ze(nn), o = jn(), l = Ky(o), u = (l == null ? void 0 : l.text) || wx(o), [d, h] = fe(_r(o)), p = Ud(o, "link-editor", `${n}-link`), m = Fe(null);
|
|
17968
17968
|
me(() => {
|
|
17969
17969
|
var w;
|
|
17970
17970
|
!d && r && ((w = m.current) == null || w.focus());
|
|
@@ -17988,7 +17988,7 @@ const jx = () => {
|
|
|
17988
17988
|
C.preventDefault(), C.stopPropagation(), window.open((l == null ? void 0 : l.full) || "", "_blank"), i([{ type: "showLinkEditor", value: !1 }]);
|
|
17989
17989
|
}, _.children = /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
17990
17990
|
_.children,
|
|
17991
|
-
/* @__PURE__ */ c.jsx(
|
|
17991
|
+
/* @__PURE__ */ c.jsx(We, { children: e.formatMessage({ id: `${t}${w}_text` }) })
|
|
17992
17992
|
] });
|
|
17993
17993
|
break;
|
|
17994
17994
|
case "edit":
|
|
@@ -18090,7 +18090,7 @@ const jx = () => {
|
|
|
18090
18090
|
}
|
|
18091
18091
|
) });
|
|
18092
18092
|
}, Ox = () => {
|
|
18093
|
-
const e = jn(), { setFocus: t, dispatch: n } =
|
|
18093
|
+
const e = jn(), { setFocus: t, dispatch: n } = Ze(nn), [r, a] = fe(!1);
|
|
18094
18094
|
return me(() => {
|
|
18095
18095
|
a(_r(e));
|
|
18096
18096
|
}, [e.selection]), /* @__PURE__ */ c.jsx(
|
|
@@ -18117,7 +18117,7 @@ const jx = () => {
|
|
|
18117
18117
|
n(`Error toggling mark: ${a}`);
|
|
18118
18118
|
}
|
|
18119
18119
|
}, Nx = ({ format: e, hasDivider: t = !1 }) => {
|
|
18120
|
-
const { setFocus: n, reportError: r } =
|
|
18120
|
+
const { setFocus: n, reportError: r } = Ze(nn), a = jn(), i = hf(a, e);
|
|
18121
18121
|
return /* @__PURE__ */ c.jsx(
|
|
18122
18122
|
vo,
|
|
18123
18123
|
{
|
|
@@ -18139,10 +18139,10 @@ const jx = () => {
|
|
|
18139
18139
|
Z.blockquote
|
|
18140
18140
|
];
|
|
18141
18141
|
const Mx = ({ ...e }) => {
|
|
18142
|
-
const t = le(), { id: n } =
|
|
18142
|
+
const t = le(), { id: n } = Ze(nn);
|
|
18143
18143
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
18144
18144
|
/* @__PURE__ */ c.jsxs("fieldset", { id: `toolbar-${n}`, className: "toolbar", ...e, children: [
|
|
18145
|
-
/* @__PURE__ */ c.jsx(
|
|
18145
|
+
/* @__PURE__ */ c.jsx(We, { element: "legend", showOnFocus: !1, children: t.formatMessage({ id: "richTextEditor_toolbar" }) }),
|
|
18146
18146
|
/* @__PURE__ */ c.jsxs("ul", { children: [
|
|
18147
18147
|
Oa.map((r, a) => /* @__PURE__ */ c.jsx(Nx, { format: r, hasDivider: a === Oa.length - 1 }, r)),
|
|
18148
18148
|
/* @__PURE__ */ c.jsx(Ox, {}),
|
|
@@ -18796,7 +18796,7 @@ const Gx = ({
|
|
|
18796
18796
|
"data-gtm-event-type": i,
|
|
18797
18797
|
children: /* @__PURE__ */ c.jsx("fieldset", { id: `${e}-form`, hidden: n ? !s : !1, children: /* @__PURE__ */ c.jsxs("p", { children: [
|
|
18798
18798
|
/* @__PURE__ */ c.jsx(
|
|
18799
|
-
|
|
18799
|
+
We,
|
|
18800
18800
|
{
|
|
18801
18801
|
element: "label",
|
|
18802
18802
|
htmlFor: e,
|
|
@@ -18824,10 +18824,10 @@ const Gx = ({
|
|
|
18824
18824
|
onClick: (h) => {
|
|
18825
18825
|
h.preventDefault(), h.stopPropagation(), u.current && u.current.value && (u.current.value = "");
|
|
18826
18826
|
},
|
|
18827
|
-
children: /* @__PURE__ */ c.jsx(
|
|
18827
|
+
children: /* @__PURE__ */ c.jsx(We, { children: l.formatMessage({ id: "search_clear" }) })
|
|
18828
18828
|
}
|
|
18829
18829
|
),
|
|
18830
|
-
/* @__PURE__ */ c.jsx("button", { className: "search", onClick: d, children: /* @__PURE__ */ c.jsx(
|
|
18830
|
+
/* @__PURE__ */ c.jsx("button", { className: "search", onClick: d, children: /* @__PURE__ */ c.jsx(We, { children: l.formatMessage({ id: "search_cta" }) }) })
|
|
18831
18831
|
] }) })
|
|
18832
18832
|
}
|
|
18833
18833
|
);
|
|
@@ -19675,7 +19675,7 @@ const Kn = "footer_", Pa = "SiteFooter", Hl = ({ group: e }) => {
|
|
|
19675
19675
|
}
|
|
19676
19676
|
) })
|
|
19677
19677
|
] })
|
|
19678
|
-
] }) }),
|
|
19678
|
+
] }) }), ze = {
|
|
19679
19679
|
timeouts: {},
|
|
19680
19680
|
handlerCalled: {},
|
|
19681
19681
|
getIsDesktopVersion: (e, t) => {
|
|
@@ -19698,9 +19698,9 @@ const Kn = "footer_", Pa = "SiteFooter", Hl = ({ group: e }) => {
|
|
|
19698
19698
|
if (!a && n[e] === t || !a && e === xt.ACCOUNT && t === !1 && n[xt.SITE] === !0)
|
|
19699
19699
|
return;
|
|
19700
19700
|
const i = Date.now();
|
|
19701
|
-
if (!a && !t &&
|
|
19701
|
+
if (!a && !t && ze.handlerCalled[e] && i - ze.handlerCalled[e] < 500)
|
|
19702
19702
|
return;
|
|
19703
|
-
|
|
19703
|
+
ze.handlerCalled[e] = i;
|
|
19704
19704
|
let s = [{ type: `menus.${e}`, value: t }];
|
|
19705
19705
|
if (t === !0)
|
|
19706
19706
|
Object.keys(n).forEach((o) => {
|
|
@@ -19744,7 +19744,7 @@ const Kn = "footer_", Pa = "SiteFooter", Hl = ({ group: e }) => {
|
|
|
19744
19744
|
if (!(typeof a > "u") && (!n || a[t] && a[t].includes(n) || a.value && a.value.includes(n) || a.toString().includes(n)))
|
|
19745
19745
|
return e[r];
|
|
19746
19746
|
}
|
|
19747
|
-
return e[0].children ?
|
|
19747
|
+
return e[0].children ? ze.findFirstChild(e[0].children, t, n) : !1;
|
|
19748
19748
|
},
|
|
19749
19749
|
autoFocus: ({ menu: e, navigationRef: t, isDesktopVersion: n, focusElements: r, dispatch: a }) => {
|
|
19750
19750
|
var l;
|
|
@@ -19759,23 +19759,23 @@ const Kn = "footer_", Pa = "SiteFooter", Hl = ({ group: e }) => {
|
|
|
19759
19759
|
switch (e) {
|
|
19760
19760
|
case xt.SITE:
|
|
19761
19761
|
if (n) {
|
|
19762
|
-
const u =
|
|
19762
|
+
const u = ze.findFirstChild(
|
|
19763
19763
|
t.current.children,
|
|
19764
19764
|
"attributes.aria-controls",
|
|
19765
19765
|
xt.SITE
|
|
19766
19766
|
);
|
|
19767
|
-
s =
|
|
19767
|
+
s = ze.findFirstChild(u.children, "href");
|
|
19768
19768
|
} else
|
|
19769
|
-
s =
|
|
19769
|
+
s = ze.findFirstChild(t.current.children, "href");
|
|
19770
19770
|
break;
|
|
19771
19771
|
case xt.ACCOUNT:
|
|
19772
|
-
if (o =
|
|
19772
|
+
if (o = ze.findFirstChild(
|
|
19773
19773
|
t.current.children,
|
|
19774
19774
|
"className",
|
|
19775
19775
|
"account"
|
|
19776
19776
|
), !o || !o.children)
|
|
19777
19777
|
return;
|
|
19778
|
-
s =
|
|
19778
|
+
s = ze.findFirstChild(o.children, "href");
|
|
19779
19779
|
break;
|
|
19780
19780
|
default:
|
|
19781
19781
|
return;
|
|
@@ -19786,16 +19786,16 @@ const Kn = "footer_", Pa = "SiteFooter", Hl = ({ group: e }) => {
|
|
|
19786
19786
|
},
|
|
19787
19787
|
events: {
|
|
19788
19788
|
onClick: (e, { id: t, callback: n, isOpen: r }) => {
|
|
19789
|
-
e.target && e.target.attributes && e.target.attributes.href || (e.preventDefault(), e.stopPropagation(), clearTimeout(
|
|
19789
|
+
e.target && e.target.attributes && e.target.attributes.href || (e.preventDefault(), e.stopPropagation(), clearTimeout(ze.timeouts[t]), n(t, !r));
|
|
19790
19790
|
},
|
|
19791
19791
|
onFocus: ({ id: e }) => {
|
|
19792
|
-
clearTimeout(
|
|
19792
|
+
clearTimeout(ze.timeouts[e]);
|
|
19793
19793
|
},
|
|
19794
19794
|
onMouseEnter: ({ id: e, callback: t }) => {
|
|
19795
|
-
clearTimeout(
|
|
19795
|
+
clearTimeout(ze.timeouts[e]), t(e, !0);
|
|
19796
19796
|
},
|
|
19797
19797
|
onBlur: ({ id: e, callback: t }) => {
|
|
19798
|
-
|
|
19798
|
+
ze.timeouts[e] = setTimeout(() => {
|
|
19799
19799
|
t(e, !1);
|
|
19800
19800
|
}, 250);
|
|
19801
19801
|
}
|
|
@@ -19921,11 +19921,11 @@ const Kn = "footer_", Pa = "SiteFooter", Hl = ({ group: e }) => {
|
|
|
19921
19921
|
let D = {}, v = {}, w = {};
|
|
19922
19922
|
if (f && (D = { ...D, "aria-current": "page" }), m) {
|
|
19923
19923
|
const _ = o.menuId || e, C = {
|
|
19924
|
-
onClick: (x) =>
|
|
19925
|
-
onFocus: () =>
|
|
19926
|
-
onBlur: () =>
|
|
19927
|
-
onMouseLeave: () =>
|
|
19928
|
-
onMouseEnter: () =>
|
|
19924
|
+
onClick: (x) => ze.events.onClick(x, { id: _, callback: a, isOpen: r[_] }),
|
|
19925
|
+
onFocus: () => ze.events.onFocus({ id: _ }),
|
|
19926
|
+
onBlur: () => ze.events.onBlur({ id: _, callback: a }),
|
|
19927
|
+
onMouseLeave: () => ze.events.onBlur({ id: _, callback: a }),
|
|
19928
|
+
onMouseEnter: () => ze.events.onMouseEnter({ id: _, callback: a })
|
|
19929
19929
|
};
|
|
19930
19930
|
v = {
|
|
19931
19931
|
...C,
|
|
@@ -19934,7 +19934,7 @@ const Kn = "footer_", Pa = "SiteFooter", Hl = ({ group: e }) => {
|
|
|
19934
19934
|
...C,
|
|
19935
19935
|
className: "navigation-button",
|
|
19936
19936
|
onKeyPress: (x) => {
|
|
19937
|
-
x.key === "Enter" &&
|
|
19937
|
+
x.key === "Enter" && ze.events.onClick(x, { id: _, callback: a, isOpen: r[_] });
|
|
19938
19938
|
},
|
|
19939
19939
|
"aria-haspopup": !0,
|
|
19940
19940
|
"aria-expanded": r[_],
|
|
@@ -19960,7 +19960,7 @@ const Kn = "footer_", Pa = "SiteFooter", Hl = ({ group: e }) => {
|
|
|
19960
19960
|
s.formatMessage({ id: h })
|
|
19961
19961
|
) : n && o.order && g ? /* @__PURE__ */ c.jsxs("button", { ...w, children: [
|
|
19962
19962
|
s.formatMessage({ id: h }),
|
|
19963
|
-
/* @__PURE__ */ c.jsx(
|
|
19963
|
+
/* @__PURE__ */ c.jsx(We, { children: s.formatMessage({
|
|
19964
19964
|
id: `header_menu_${r[xt.SITE] ? "hide" : "show"}`
|
|
19965
19965
|
}) })
|
|
19966
19966
|
] }) : s.formatMessage({ id: h }),
|
|
@@ -20010,8 +20010,8 @@ const Kn = "footer_", Pa = "SiteFooter", Hl = ({ group: e }) => {
|
|
|
20010
20010
|
const aw = { height: 67, height_desktop: 83 };
|
|
20011
20011
|
var xt = /* @__PURE__ */ ((e) => (e.NAVIGATION = "navigation", e.SEARCH = "search", e.ACCOUNT = "account-navigation", e.SITE = "site-navigation", e))(xt || {});
|
|
20012
20012
|
const vf = ({ showNavigation: e = !0 }) => {
|
|
20013
|
-
const t = le(), n =
|
|
20014
|
-
() =>
|
|
20013
|
+
const t = le(), n = Ze(en), r = $r(!0, !0), a = n && typeof n.id == "string", i = zt(
|
|
20014
|
+
() => ze.getIsDesktopVersion(a, r),
|
|
20015
20015
|
[a, r]
|
|
20016
20016
|
), [s, o] = nr(Ka, {
|
|
20017
20017
|
headerIsVisible: !0,
|
|
@@ -20035,19 +20035,19 @@ const vf = ({ showNavigation: e = !0 }) => {
|
|
|
20035
20035
|
!i && v[
|
|
20036
20036
|
"site-navigation"
|
|
20037
20037
|
/* SITE */
|
|
20038
|
-
] ||
|
|
20038
|
+
] || ze.shouldChangeHeaderIsVisible(!0, v, o);
|
|
20039
20039
|
},
|
|
20040
20040
|
scrollDown: () => {
|
|
20041
20041
|
const v = h.current.menus;
|
|
20042
20042
|
!i && v[
|
|
20043
20043
|
"site-navigation"
|
|
20044
20044
|
/* SITE */
|
|
20045
|
-
] ||
|
|
20045
|
+
] || ze.shouldChangeHeaderIsVisible(!1, v, o);
|
|
20046
20046
|
}
|
|
20047
20047
|
}
|
|
20048
20048
|
});
|
|
20049
20049
|
const p = (v, w, _ = !1) => {
|
|
20050
|
-
|
|
20050
|
+
ze.handleMenus({ id: v, value: w, menus: h.current.menus, dispatch: o, forceHandle: _ });
|
|
20051
20051
|
}, m = Fe(null), g = (v) => {
|
|
20052
20052
|
v.key === "Escape" && [
|
|
20053
20053
|
"site-navigation",
|
|
@@ -20070,7 +20070,7 @@ const vf = ({ showNavigation: e = !0 }) => {
|
|
|
20070
20070
|
u[
|
|
20071
20071
|
"site-navigation"
|
|
20072
20072
|
/* SITE */
|
|
20073
|
-
] &&
|
|
20073
|
+
] && ze.autoFocus({
|
|
20074
20074
|
menu: "site-navigation",
|
|
20075
20075
|
navigationRef: m,
|
|
20076
20076
|
isDesktopVersion: i.navigation,
|
|
@@ -20084,7 +20084,7 @@ const vf = ({ showNavigation: e = !0 }) => {
|
|
|
20084
20084
|
u[
|
|
20085
20085
|
"account-navigation"
|
|
20086
20086
|
/* ACCOUNT */
|
|
20087
|
-
] &&
|
|
20087
|
+
] && ze.autoFocus({
|
|
20088
20088
|
menu: "account-navigation",
|
|
20089
20089
|
navigationRef: m,
|
|
20090
20090
|
isDesktopVersion: i.navigation,
|
|
@@ -20107,7 +20107,7 @@ const vf = ({ showNavigation: e = !0 }) => {
|
|
|
20107
20107
|
"aria-expanded": u.search,
|
|
20108
20108
|
"aria-controls": "search-form",
|
|
20109
20109
|
children: /* @__PURE__ */ c.jsx(
|
|
20110
|
-
|
|
20110
|
+
We,
|
|
20111
20111
|
{
|
|
20112
20112
|
children: t.formatMessage({
|
|
20113
20113
|
id: `header_search_${u.search ? "hide" : "show"}`
|
|
@@ -20147,7 +20147,7 @@ const vf = ({ showNavigation: e = !0 }) => {
|
|
|
20147
20147
|
/* SITE */
|
|
20148
20148
|
],
|
|
20149
20149
|
"aria-controls": "site-navigation",
|
|
20150
|
-
children: /* @__PURE__ */ c.jsx(
|
|
20150
|
+
children: /* @__PURE__ */ c.jsx(We, { children: t.formatMessage({
|
|
20151
20151
|
id: `header_menu_${u[
|
|
20152
20152
|
"site-navigation"
|
|
20153
20153
|
/* SITE */
|
|
@@ -20206,7 +20206,7 @@ const vf = ({ showNavigation: e = !0 }) => {
|
|
|
20206
20206
|
}),
|
|
20207
20207
|
children: [
|
|
20208
20208
|
/* @__PURE__ */ c.jsx(
|
|
20209
|
-
|
|
20209
|
+
We,
|
|
20210
20210
|
{
|
|
20211
20211
|
element: "a",
|
|
20212
20212
|
href: "#content-of-page",
|
|
@@ -20226,7 +20226,7 @@ const vf = ({ showNavigation: e = !0 }) => {
|
|
|
20226
20226
|
"button",
|
|
20227
20227
|
{
|
|
20228
20228
|
className: "account-button",
|
|
20229
|
-
onClick: (v) =>
|
|
20229
|
+
onClick: (v) => ze.events.onClick(v, {
|
|
20230
20230
|
id: "account-navigation",
|
|
20231
20231
|
callback: p,
|
|
20232
20232
|
isOpen: u[
|
|
@@ -20234,11 +20234,11 @@ const vf = ({ showNavigation: e = !0 }) => {
|
|
|
20234
20234
|
/* ACCOUNT */
|
|
20235
20235
|
]
|
|
20236
20236
|
}),
|
|
20237
|
-
onMouseEnter: () =>
|
|
20237
|
+
onMouseEnter: () => ze.events.onMouseEnter({
|
|
20238
20238
|
id: "account-navigation",
|
|
20239
20239
|
callback: p
|
|
20240
20240
|
}),
|
|
20241
|
-
onMouseLeave: () =>
|
|
20241
|
+
onMouseLeave: () => ze.events.onBlur({
|
|
20242
20242
|
id: "account-navigation",
|
|
20243
20243
|
callback: p
|
|
20244
20244
|
}),
|
|
@@ -20249,7 +20249,7 @@ const vf = ({ showNavigation: e = !0 }) => {
|
|
|
20249
20249
|
],
|
|
20250
20250
|
"aria-controls": "account-navigation",
|
|
20251
20251
|
children: [
|
|
20252
|
-
/* @__PURE__ */ c.jsx(
|
|
20252
|
+
/* @__PURE__ */ c.jsx(We, { children: t.formatMessage({
|
|
20253
20253
|
id: `header_account_${u[
|
|
20254
20254
|
"account-navigation"
|
|
20255
20255
|
/* ACCOUNT */
|
|
@@ -20358,7 +20358,7 @@ const iw = () => {
|
|
|
20358
20358
|
}
|
|
20359
20359
|
),
|
|
20360
20360
|
f && /* @__PURE__ */ c.jsx(
|
|
20361
|
-
|
|
20361
|
+
We,
|
|
20362
20362
|
{
|
|
20363
20363
|
"aria-live": "polite",
|
|
20364
20364
|
showOnFocus: !1,
|
|
@@ -20499,7 +20499,7 @@ const s_ = ({
|
|
|
20499
20499
|
},
|
|
20500
20500
|
children: a.formatMessage({ id: `${t}label` })
|
|
20501
20501
|
}
|
|
20502
|
-
) : /* @__PURE__ */ c.jsx(
|
|
20502
|
+
) : /* @__PURE__ */ c.jsx(We, { element: "label", showOnFocus: !1, htmlFor: `${e}-input`, children: jt(a.formatMessage, `${t}label_action`, r, "action") });
|
|
20503
20503
|
};
|
|
20504
20504
|
let oa = null;
|
|
20505
20505
|
const nt = "discussion_form_", ni = ({
|
|
@@ -20519,8 +20519,8 @@ const nt = "discussion_form_", ni = ({
|
|
|
20519
20519
|
data: d = {},
|
|
20520
20520
|
gtmContext: h = "DiscussionForm"
|
|
20521
20521
|
}) => {
|
|
20522
|
-
var De, pe,
|
|
20523
|
-
const p = le(), m =
|
|
20522
|
+
var De, pe, ke;
|
|
20523
|
+
const p = le(), m = Ze(en), [g, f] = fe(""), {
|
|
20524
20524
|
isLoading: D = !1,
|
|
20525
20525
|
isInWrapper: v = !1,
|
|
20526
20526
|
isInOverlay: w = !1,
|
|
@@ -20559,81 +20559,81 @@ const nt = "discussion_form_", ni = ({
|
|
|
20559
20559
|
"data-testid": "loading-placeholder"
|
|
20560
20560
|
}
|
|
20561
20561
|
);
|
|
20562
|
-
const k = (
|
|
20563
|
-
se({ ...H, body:
|
|
20564
|
-
let
|
|
20565
|
-
!m || !m.id ?
|
|
20562
|
+
const k = (Be) => {
|
|
20563
|
+
se({ ...H, body: Be });
|
|
20564
|
+
let we;
|
|
20565
|
+
!m || !m.id ? we = jt(
|
|
20566
20566
|
p.formatMessage,
|
|
20567
20567
|
`${nt}error_loggedOut`,
|
|
20568
20568
|
t.type,
|
|
20569
20569
|
"action"
|
|
20570
|
-
) : n ? i > 0 &&
|
|
20570
|
+
) : n ? i > 0 && Be.length >= i && (we = `${nt}error_tooLong`) : we = jt(
|
|
20571
20571
|
p.formatMessage,
|
|
20572
20572
|
`${nt}error_noPermission`,
|
|
20573
20573
|
t.type,
|
|
20574
20574
|
"action"
|
|
20575
|
-
),
|
|
20575
|
+
), we ? y(we) : W && y(!1);
|
|
20576
20576
|
};
|
|
20577
20577
|
let A = `${t.type}-form`;
|
|
20578
20578
|
if (t.type === "response" || t.type === "reply") {
|
|
20579
|
-
const
|
|
20580
|
-
|
|
20579
|
+
const Be = ((De = t.slugs) == null ? void 0 : De.reply) || ((pe = t.slugs) == null ? void 0 : pe.answer) || ((ke = t.slugs) == null ? void 0 : ke.question) || "";
|
|
20580
|
+
Be && (A = `${A}-${Be.slice(-15)}`);
|
|
20581
20581
|
}
|
|
20582
20582
|
e && (A = `${e}-${A}`);
|
|
20583
20583
|
const I = async () => {
|
|
20584
20584
|
if (!m || !m.id || !n || ee)
|
|
20585
20585
|
return;
|
|
20586
20586
|
oa && clearTimeout(oa), X("submitting");
|
|
20587
|
-
const
|
|
20587
|
+
const Be = window.location.pathname;
|
|
20588
20588
|
try {
|
|
20589
|
-
let
|
|
20589
|
+
let we;
|
|
20590
20590
|
switch (t.type) {
|
|
20591
20591
|
case "post":
|
|
20592
|
-
|
|
20592
|
+
we = await M({ title: H.title, content: H.body });
|
|
20593
20593
|
break;
|
|
20594
20594
|
case "question":
|
|
20595
|
-
|
|
20595
|
+
we = await M({
|
|
20596
20596
|
title: H.body,
|
|
20597
20597
|
authorId: m && m.id,
|
|
20598
20598
|
...N == null ? void 0 : N.create
|
|
20599
20599
|
});
|
|
20600
20600
|
break;
|
|
20601
20601
|
case "response":
|
|
20602
|
-
|
|
20602
|
+
we = await M(
|
|
20603
20603
|
{ questionSlug: t.slugs.question },
|
|
20604
|
-
{ body: H.body, authorId: m && m.id, contentPath:
|
|
20604
|
+
{ body: H.body, authorId: m && m.id, contentPath: Be }
|
|
20605
20605
|
);
|
|
20606
20606
|
break;
|
|
20607
20607
|
case "reply":
|
|
20608
|
-
|
|
20608
|
+
we = await M(
|
|
20609
20609
|
{ questionSlug: t.slugs.question, answerSlug: t.slugs.answer },
|
|
20610
|
-
{ body: H.body, authorId: m && m.id, contentPath:
|
|
20610
|
+
{ body: H.body, authorId: m && m.id, contentPath: Be }
|
|
20611
20611
|
);
|
|
20612
20612
|
break;
|
|
20613
20613
|
default:
|
|
20614
20614
|
break;
|
|
20615
20615
|
}
|
|
20616
|
-
await wh(1e3), j && await j(
|
|
20616
|
+
await wh(1e3), j && await j(we), oa = setTimeout(() => {
|
|
20617
20617
|
se({ title: "", body: "" }), X("submitted"), f(
|
|
20618
20618
|
jt(p.formatMessage, `${nt}success`, t.type, "action")
|
|
20619
20619
|
);
|
|
20620
|
-
const
|
|
20621
|
-
document.dispatchEvent(
|
|
20620
|
+
const Ne = new Event("discussionFormSubmitted");
|
|
20621
|
+
document.dispatchEvent(Ne), R();
|
|
20622
20622
|
}, 500);
|
|
20623
|
-
} catch (
|
|
20624
|
-
const
|
|
20625
|
-
let
|
|
20626
|
-
|
|
20623
|
+
} catch (we) {
|
|
20624
|
+
const Ne = we;
|
|
20625
|
+
let He = `${nt}error`;
|
|
20626
|
+
Ne != null && Ne.message.includes("entry already exists") && (He = jt(
|
|
20627
20627
|
p.formatMessage,
|
|
20628
20628
|
`${nt}error_alreadyExists`,
|
|
20629
20629
|
t.type,
|
|
20630
20630
|
"action"
|
|
20631
|
-
)),
|
|
20631
|
+
)), Ne != null && Ne.message.includes("429") ? He = jt(
|
|
20632
20632
|
p.formatMessage,
|
|
20633
20633
|
`${nt}error_tooMany`,
|
|
20634
20634
|
t.type,
|
|
20635
20635
|
"action"
|
|
20636
|
-
) :
|
|
20636
|
+
) : Ne != null && Ne.message.includes("400") && (He = `${nt}error`), y(He), R();
|
|
20637
20637
|
}
|
|
20638
20638
|
}, R = () => {
|
|
20639
20639
|
oa = setTimeout(() => {
|
|
@@ -20685,17 +20685,13 @@ const nt = "discussion_form_", ni = ({
|
|
|
20685
20685
|
autoFocus: _,
|
|
20686
20686
|
label: p.formatMessage({ id: `${nt}titleField_label` }),
|
|
20687
20687
|
functions: {
|
|
20688
|
-
onChange: (
|
|
20689
|
-
se({ ...H, title:
|
|
20688
|
+
onChange: (Be) => {
|
|
20689
|
+
se({ ...H, title: Be });
|
|
20690
20690
|
}
|
|
20691
20691
|
},
|
|
20692
20692
|
validation: [
|
|
20693
20693
|
{
|
|
20694
|
-
condition: (
|
|
20695
|
-
var ze, Ve;
|
|
20696
|
-
const xe = (ze = Ce.title) == null ? void 0 : ze.toString().trim(), Oe = (Ve = Ce.body) == null ? void 0 : Ve.toString().trim();
|
|
20697
|
-
return !xe && !Oe;
|
|
20698
|
-
},
|
|
20694
|
+
condition: () => ee,
|
|
20699
20695
|
error: p.formatMessage({ id: `${nt}titleField_error` })
|
|
20700
20696
|
}
|
|
20701
20697
|
]
|
|
@@ -20774,11 +20770,11 @@ const nt = "discussion_form_", ni = ({
|
|
|
20774
20770
|
maxLength: i
|
|
20775
20771
|
}
|
|
20776
20772
|
) : W }),
|
|
20777
|
-
g && /* @__PURE__ */ c.jsx(
|
|
20773
|
+
g && /* @__PURE__ */ c.jsx(We, { "aria-live": "polite", showOnFocus: !1, children: g })
|
|
20778
20774
|
] });
|
|
20779
20775
|
};
|
|
20780
20776
|
const cw = ({ forceShow: e, form: t, className: n }) => {
|
|
20781
|
-
const r = le(), i =
|
|
20777
|
+
const r = le(), i = Ze(en) || "community", s = Ws(i);
|
|
20782
20778
|
s.name || (s.name = r.formatMessage({
|
|
20783
20779
|
id: `member_${typeof i == "string" ? i : "community"}`
|
|
20784
20780
|
}));
|
|
@@ -20863,8 +20859,17 @@ const cw = ({ forceShow: e, form: t, className: n }) => {
|
|
|
20863
20859
|
}), mw = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
|
|
20864
20860
|
const Ma = ({
|
|
20865
20861
|
icon: e,
|
|
20866
|
-
|
|
20867
|
-
|
|
20862
|
+
className: t = "",
|
|
20863
|
+
...n
|
|
20864
|
+
}) => /* @__PURE__ */ c.jsx(
|
|
20865
|
+
je,
|
|
20866
|
+
{
|
|
20867
|
+
className: Y("discussion-button", t),
|
|
20868
|
+
variant: "tertiary",
|
|
20869
|
+
icon: e,
|
|
20870
|
+
...n
|
|
20871
|
+
}
|
|
20872
|
+
);
|
|
20868
20873
|
let kr = !1;
|
|
20869
20874
|
const Ki = () => {
|
|
20870
20875
|
kr !== !1 && (clearTimeout(kr), kr = !1);
|
|
@@ -20990,7 +20995,7 @@ const pw = ({
|
|
|
20990
20995
|
),
|
|
20991
20996
|
n && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
20992
20997
|
/* @__PURE__ */ c.jsx(
|
|
20993
|
-
|
|
20998
|
+
We,
|
|
20994
20999
|
{
|
|
20995
21000
|
"data-testid": "like-a11y-button",
|
|
20996
21001
|
element: "button",
|
|
@@ -21017,7 +21022,7 @@ const pw = ({
|
|
|
21017
21022
|
},
|
|
21018
21023
|
"aria-expanded": D,
|
|
21019
21024
|
"aria-controls": `likes-tooltip-${i.slug}`,
|
|
21020
|
-
children: /* @__PURE__ */ c.jsx(
|
|
21025
|
+
children: /* @__PURE__ */ c.jsx(We, { showOnFocus: !1, children: u.formatMessage(
|
|
21021
21026
|
{ id: "discussion_likes_show" },
|
|
21022
21027
|
{ action: i.type }
|
|
21023
21028
|
) })
|
|
@@ -21106,8 +21111,11 @@ const pw = ({
|
|
|
21106
21111
|
listMembers: r
|
|
21107
21112
|
});
|
|
21108
21113
|
};
|
|
21109
|
-
const bw = 3e3, yw = ({
|
|
21110
|
-
|
|
21114
|
+
const bw = 3e3, yw = ({
|
|
21115
|
+
url: e,
|
|
21116
|
+
gtm: t = { context: "ShareLink", event: "copy-link-click" }
|
|
21117
|
+
}) => {
|
|
21118
|
+
const n = le(), [r, a] = fe({
|
|
21111
21119
|
isOpen: !1,
|
|
21112
21120
|
isCopied: !1
|
|
21113
21121
|
});
|
|
@@ -21116,28 +21124,31 @@ const bw = 3e3, yw = ({ url: e }) => {
|
|
|
21116
21124
|
rr,
|
|
21117
21125
|
{
|
|
21118
21126
|
className: Y("tooltip-share-link", {
|
|
21119
|
-
"tooltip-share-link-copied":
|
|
21127
|
+
"tooltip-share-link-copied": r.isCopied
|
|
21120
21128
|
}),
|
|
21121
|
-
isOpen:
|
|
21129
|
+
isOpen: r.isOpen,
|
|
21122
21130
|
styling: { hasPointer: "bottom", extraPadding: !1 },
|
|
21123
|
-
children:
|
|
21131
|
+
children: r.isCopied ? n.formatMessage({ id: "discussion_share_copy_link_success" }) : n.formatMessage({ id: "discussion_share_copy_link" })
|
|
21124
21132
|
}
|
|
21125
21133
|
),
|
|
21126
21134
|
/* @__PURE__ */ c.jsx(
|
|
21127
21135
|
Ma,
|
|
21128
21136
|
{
|
|
21137
|
+
className: "gtm-trackable",
|
|
21129
21138
|
icon: { icon: "link_chain" },
|
|
21130
|
-
onMouseOver: () =>
|
|
21131
|
-
onFocus: () =>
|
|
21132
|
-
onMouseOut: () =>
|
|
21133
|
-
onBlur: () =>
|
|
21139
|
+
onMouseOver: () => a({ ...r, isOpen: !0 }),
|
|
21140
|
+
onFocus: () => a({ ...r, isOpen: !0 }),
|
|
21141
|
+
onMouseOut: () => a({ isOpen: !1, isCopied: !1 }),
|
|
21142
|
+
onBlur: () => a({ isOpen: !1, isCopied: !1 }),
|
|
21134
21143
|
onClick: () => {
|
|
21135
21144
|
navigator.clipboard.writeText(e).then(() => {
|
|
21136
|
-
|
|
21137
|
-
|
|
21145
|
+
a({ isOpen: !0, isCopied: !0 }), setTimeout(() => {
|
|
21146
|
+
a({ isOpen: !1, isCopied: !1 });
|
|
21138
21147
|
}, bw);
|
|
21139
21148
|
});
|
|
21140
|
-
}
|
|
21149
|
+
},
|
|
21150
|
+
"data-gtm-event-context": t.context,
|
|
21151
|
+
"data-gtm-event-type": t.event
|
|
21141
21152
|
}
|
|
21142
21153
|
)
|
|
21143
21154
|
] });
|
|
@@ -21162,8 +21173,8 @@ const bw = 3e3, yw = ({ url: e }) => {
|
|
|
21162
21173
|
setFocus: m = !1,
|
|
21163
21174
|
isCommunity: g = !1
|
|
21164
21175
|
}) => {
|
|
21165
|
-
var
|
|
21166
|
-
const f = le(), D =
|
|
21176
|
+
var ke, Be, we, Ne, He, Ge, tt, Pe;
|
|
21177
|
+
const f = le(), D = Ze(en), v = Ze(yo), {
|
|
21167
21178
|
createContent: w = async () => {
|
|
21168
21179
|
},
|
|
21169
21180
|
deleteContent: _ = async () => {
|
|
@@ -21207,13 +21218,13 @@ const bw = 3e3, yw = ({ url: e }) => {
|
|
|
21207
21218
|
});
|
|
21208
21219
|
}, [t.isEdited]), me(() => {
|
|
21209
21220
|
(async () => {
|
|
21210
|
-
const
|
|
21221
|
+
const _e = await vw(
|
|
21211
21222
|
L.body,
|
|
21212
21223
|
h,
|
|
21213
21224
|
N,
|
|
21214
21225
|
q
|
|
21215
21226
|
);
|
|
21216
|
-
X({ ...L, postBody:
|
|
21227
|
+
X({ ...L, postBody: _e });
|
|
21217
21228
|
})();
|
|
21218
21229
|
}, [L.body, N]);
|
|
21219
21230
|
const ee = () => {
|
|
@@ -21224,32 +21235,32 @@ const bw = 3e3, yw = ({ url: e }) => {
|
|
|
21224
21235
|
);
|
|
21225
21236
|
}, 1e3);
|
|
21226
21237
|
}, ne = ({ propertyName: ve }) => {
|
|
21227
|
-
ve === "background-color" && R((
|
|
21238
|
+
ve === "background-color" && R((_e) => (_e === "default" && (document.removeEventListener("discussionFormSubmitted", ee), y.current && y.current.removeEventListener("transitionend", ne)), _e === "fading" ? "default" : _e));
|
|
21228
21239
|
};
|
|
21229
21240
|
if (r || !t || t.type === "answer" && (!t.slugs || !t.slugs.question) || L.postBody === "" && t.title === "")
|
|
21230
21241
|
return /* @__PURE__ */ c.jsx(Nt, { className: "discussion-card" });
|
|
21231
21242
|
const de = async ({
|
|
21232
21243
|
title: ve,
|
|
21233
|
-
body:
|
|
21244
|
+
body: _e
|
|
21234
21245
|
}) => {
|
|
21235
|
-
ve || (ve = ""),
|
|
21246
|
+
ve || (ve = ""), _e || (_e = ""), te("");
|
|
21236
21247
|
try {
|
|
21237
|
-
if (!os(ve, L.title) || !os(
|
|
21238
|
-
const V = t.type === "question" ? { title:
|
|
21248
|
+
if (!os(ve, L.title) || !os(_e, L.body)) {
|
|
21249
|
+
const V = t.type === "question" ? { title: _e } : { title: ve, body: _e };
|
|
21239
21250
|
await C(Vl(t.slugs), V);
|
|
21240
21251
|
}
|
|
21241
|
-
X({ ...L, title: ve, body:
|
|
21252
|
+
X({ ...L, title: ve, body: _e, isEditing: !1, didEdit: !0 });
|
|
21242
21253
|
} catch {
|
|
21243
21254
|
te(`${Zt}form_error`);
|
|
21244
21255
|
}
|
|
21245
21256
|
}, G = () => {
|
|
21246
21257
|
if (v && v.updateConversation) {
|
|
21247
|
-
const ve = { showForm: !0 },
|
|
21248
|
-
|
|
21258
|
+
const ve = { showForm: !0 }, _e = t.author;
|
|
21259
|
+
_e && _e.id && (g && (ve.prepopulateForm = `@{{${_e.id}}}`), ve.mentionData = { id: _e.id, name: _e.name }), v.updateConversation(ve);
|
|
21249
21260
|
}
|
|
21250
21261
|
setTimeout(() => {
|
|
21251
21262
|
var ge, be, Ae;
|
|
21252
|
-
const
|
|
21263
|
+
const _e = `reply-form-${(t.type === "answer" ? t.slug : ((ge = t.slugs) == null ? void 0 : ge.reply) || ((be = t.slugs) == null ? void 0 : be.answer) || ((Ae = t.slugs) == null ? void 0 : Ae.question) || "").toLowerCase().slice(-15)}`, V = document.getElementById(_e), ie = document.getElementById(`${_e}-input`);
|
|
21253
21264
|
ie && ie.focus(), V && V.scrollIntoView({ behavior: "smooth" });
|
|
21254
21265
|
}, 0);
|
|
21255
21266
|
}, De = async () => {
|
|
@@ -21300,7 +21311,7 @@ const bw = 3e3, yw = ({ url: e }) => {
|
|
|
21300
21311
|
"data-gtm-event-type": `delete-${t.type}-click`,
|
|
21301
21312
|
...rE(`delete-${t.slug}-modal`, k)
|
|
21302
21313
|
}
|
|
21303
|
-
), m && ((
|
|
21314
|
+
), m && ((ke = y == null ? void 0 : y.current) == null || ke.focus(), (Be = y == null ? void 0 : y.current) == null || Be.scrollIntoView({ behavior: "smooth" })), re.createElement(e, {
|
|
21304
21315
|
className: Y("discussion-post", l, {
|
|
21305
21316
|
[I]: !l || !l.includes("highlighted-text-box"),
|
|
21306
21317
|
"has-link": o.post && !L.isEditing
|
|
@@ -21463,7 +21474,8 @@ const bw = 3e3, yw = ({ url: e }) => {
|
|
|
21463
21474
|
p && /* @__PURE__ */ c.jsx(
|
|
21464
21475
|
yw,
|
|
21465
21476
|
{
|
|
21466
|
-
url: (
|
|
21477
|
+
url: (we = t.slugs) != null && we.reply ? `${window.location.origin}${(Ne = t.slugs) == null ? void 0 : Ne.question}/${(He = t.slugs) == null ? void 0 : He.answer}#${(Ge = t.slugs) == null ? void 0 : Ge.reply}` : `${window.location.origin}${(tt = t.slugs) == null ? void 0 : tt.question}/${(Pe = t.slugs) == null ? void 0 : Pe.answer}`,
|
|
21478
|
+
gtm: { context: u, event: `copy-link-${t.type}-click` }
|
|
21467
21479
|
}
|
|
21468
21480
|
),
|
|
21469
21481
|
/* @__PURE__ */ c.jsx(
|
|
@@ -21557,7 +21569,7 @@ const ww = ({
|
|
|
21557
21569
|
form: r,
|
|
21558
21570
|
children: a
|
|
21559
21571
|
}) => {
|
|
21560
|
-
const i = le(), s =
|
|
21572
|
+
const i = le(), s = Ze(yo), o = ma(a, {
|
|
21561
21573
|
element: "li"
|
|
21562
21574
|
});
|
|
21563
21575
|
if (s.prepopulateForm && (r != null && r.meta) && (r.meta.isPrepopulated = { text: s.prepopulateForm }, s.mentionData)) {
|
|
@@ -21656,9 +21668,10 @@ function Df(e) {
|
|
|
21656
21668
|
}
|
|
21657
21669
|
};
|
|
21658
21670
|
}
|
|
21659
|
-
function Bw({
|
|
21671
|
+
function Bw({ title: e, content: t }) {
|
|
21660
21672
|
return {
|
|
21661
|
-
|
|
21673
|
+
title: e,
|
|
21674
|
+
content: t,
|
|
21662
21675
|
id: yf,
|
|
21663
21676
|
time: (/* @__PURE__ */ new Date()).toISOString(),
|
|
21664
21677
|
verb: Cw
|
|
@@ -21671,7 +21684,10 @@ function Kl({ activity: e, user: t }) {
|
|
|
21671
21684
|
..._w()
|
|
21672
21685
|
};
|
|
21673
21686
|
}
|
|
21674
|
-
function $a({
|
|
21687
|
+
function $a({
|
|
21688
|
+
activity: e,
|
|
21689
|
+
reaction: t
|
|
21690
|
+
}) {
|
|
21675
21691
|
var n, r, a;
|
|
21676
21692
|
t ? (e.latest_reactions = {
|
|
21677
21693
|
...e.latest_reactions || {},
|
|
@@ -21691,10 +21707,14 @@ function xf({ activity: e, user: t }) {
|
|
|
21691
21707
|
like: (n = e.reaction_counts) != null && n.like ? e.reaction_counts.like - 1 : 0
|
|
21692
21708
|
}, t != null && t.id && (e.latest_reactions = {
|
|
21693
21709
|
...e.latest_reactions || {},
|
|
21694
|
-
like: (((r = e.latest_reactions) == null ? void 0 : r.like) || []).filter(
|
|
21710
|
+
like: (((r = e.latest_reactions) == null ? void 0 : r.like) || []).filter(
|
|
21711
|
+
({ user_id: i }) => i !== t.id
|
|
21712
|
+
)
|
|
21695
21713
|
}, e.own_reactions = {
|
|
21696
21714
|
...e.own_reactions || {},
|
|
21697
|
-
like: (((a = e.own_reactions) == null ? void 0 : a.like) || []).filter(
|
|
21715
|
+
like: (((a = e.own_reactions) == null ? void 0 : a.like) || []).filter(
|
|
21716
|
+
({ user_id: i }) => i !== t.id
|
|
21717
|
+
)
|
|
21698
21718
|
});
|
|
21699
21719
|
}
|
|
21700
21720
|
function Aw({ activityId: e, replyId: t, content: n }) {
|
|
@@ -23189,13 +23209,13 @@ const eC = ({
|
|
|
23189
23209
|
children_counts: E,
|
|
23190
23210
|
data: { mentioned_users: B }
|
|
23191
23211
|
} = T, $ = (((X = z == null ? void 0 : z.like) == null ? void 0 : X.length) || 0) > 0 ? (k = z == null ? void 0 : z.like) == null ? void 0 : k.find((pe) => {
|
|
23192
|
-
var
|
|
23193
|
-
return ((
|
|
23212
|
+
var ke;
|
|
23213
|
+
return ((ke = pe == null ? void 0 : pe.user) == null ? void 0 : ke.id) === (_ == null ? void 0 : _.id);
|
|
23194
23214
|
}) : !1, N = $ ? $ == null ? void 0 : $.id : "", H = !!$, W = (((A = M == null ? void 0 : M.like) == null ? void 0 : A.length) || 0) > 0 ? (I = M == null ? void 0 : M.like) == null ? void 0 : I.map((pe) => {
|
|
23195
|
-
var
|
|
23215
|
+
var ke, Be, we;
|
|
23196
23216
|
return {
|
|
23197
|
-
id: (
|
|
23198
|
-
name: (
|
|
23217
|
+
id: (ke = pe == null ? void 0 : pe.user) == null ? void 0 : ke.id,
|
|
23218
|
+
name: (we = (Be = pe == null ? void 0 : pe.user) == null ? void 0 : Be.data) == null ? void 0 : we.name
|
|
23199
23219
|
};
|
|
23200
23220
|
}) : !1, y = T == null ? void 0 : T.user, L = typeof T.data.content == "string" ? (R = T == null ? void 0 : T.data) == null ? void 0 : R.content : (
|
|
23201
23221
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -23237,7 +23257,7 @@ const eC = ({
|
|
|
23237
23257
|
createContent: () => null,
|
|
23238
23258
|
deleteContent: () => v({ replyId: P }),
|
|
23239
23259
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
23240
|
-
updateContent: (pe, { body:
|
|
23260
|
+
updateContent: (pe, { body: ke }) => f({ replyId: P, content: ke })
|
|
23241
23261
|
},
|
|
23242
23262
|
likes: {
|
|
23243
23263
|
createLike: () => D({ replyId: P }),
|
|
@@ -23592,14 +23612,14 @@ function oC() {
|
|
|
23592
23612
|
case h:
|
|
23593
23613
|
return pe;
|
|
23594
23614
|
default:
|
|
23595
|
-
var
|
|
23596
|
-
switch (
|
|
23615
|
+
var ke = pe && pe.$$typeof;
|
|
23616
|
+
switch (ke) {
|
|
23597
23617
|
case o:
|
|
23598
23618
|
case d:
|
|
23599
23619
|
case g:
|
|
23600
23620
|
case m:
|
|
23601
23621
|
case s:
|
|
23602
|
-
return
|
|
23622
|
+
return ke;
|
|
23603
23623
|
default:
|
|
23604
23624
|
return De;
|
|
23605
23625
|
}
|
|
@@ -25848,7 +25868,7 @@ const dE = {
|
|
|
25848
25868
|
setFocus: o = !1
|
|
25849
25869
|
}) => {
|
|
25850
25870
|
var M, E, B, j, $;
|
|
25851
|
-
const l = le(), u =
|
|
25871
|
+
const l = le(), u = Ze(en), d = u && typeof u.id == "string", h = re.useRef(null), [p, m] = fe({
|
|
25852
25872
|
data: null,
|
|
25853
25873
|
isLoading: !0
|
|
25854
25874
|
}), { data: g, isLoading: f } = p, D = Re(() => {
|
|
@@ -26194,7 +26214,7 @@ const pE = ({
|
|
|
26194
26214
|
onClick: (j) => {
|
|
26195
26215
|
j.preventDefault(), j.stopPropagation(), T(B);
|
|
26196
26216
|
},
|
|
26197
|
-
children: /* @__PURE__ */ c.jsx(
|
|
26217
|
+
children: /* @__PURE__ */ c.jsx(We, { showOnFocus: !1, children: l.formatMessage(
|
|
26198
26218
|
{ id: "carousel_pagination_page" },
|
|
26199
26219
|
{ number: B + 1, total: C }
|
|
26200
26220
|
) })
|
|
@@ -26217,7 +26237,7 @@ const pE = ({
|
|
|
26217
26237
|
}
|
|
26218
26238
|
) })
|
|
26219
26239
|
] }),
|
|
26220
|
-
/* @__PURE__ */ c.jsx(
|
|
26240
|
+
/* @__PURE__ */ c.jsx(We, { "aria-live": "polite", showOnFocus: !1, children: v })
|
|
26221
26241
|
] })
|
|
26222
26242
|
]
|
|
26223
26243
|
}
|
|
@@ -26671,7 +26691,7 @@ export {
|
|
|
26671
26691
|
wa as UUID_V4_REGEX,
|
|
26672
26692
|
en as UserContext,
|
|
26673
26693
|
am as UserProvider,
|
|
26674
|
-
|
|
26694
|
+
We as VisuallyHidden,
|
|
26675
26695
|
rE as addAriaProps,
|
|
26676
26696
|
Ka as basicReducer,
|
|
26677
26697
|
hh as camelCaseToDashCase,
|