golden-logic-ui 1.0.642 → 1.0.643
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/golden-logic-ui.js +300 -301
- package/dist/golden-logic-ui.umd.cjs +16 -16
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -889,7 +889,7 @@ const _xe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
889
889
|
}, [
|
|
890
890
|
Vo(Mt(Jt == null ? void 0 : Jt.name) + " ", 1),
|
|
891
891
|
Z("i", {
|
|
892
|
-
onClick: ma((
|
|
892
|
+
onClick: ma((nn) => rn(Jt), ["stop"]),
|
|
893
893
|
class: "cursor-pointer pointer-events-auto hover:text-red-600 dark:hover:text-red-400"
|
|
894
894
|
}, et[5] || (et[5] = [
|
|
895
895
|
Z("svg", {
|
|
@@ -982,8 +982,8 @@ const _xe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
982
982
|
"block px-2 py-2 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white",
|
|
983
983
|
at + 1 == T.value || it(Jt.id) ? "bg-gray-100 dark:bg-gray-600" : ""
|
|
984
984
|
]),
|
|
985
|
-
onClick: (
|
|
986
|
-
onMousedown: (
|
|
985
|
+
onClick: (nn) => Q(Jt),
|
|
986
|
+
onMousedown: (nn) => Q(Jt),
|
|
987
987
|
key: at,
|
|
988
988
|
id: `${at + 1}${F.value}`
|
|
989
989
|
}, Mt(Jt.name || Jt.id || "-"), 43, Lle))), 128))
|
|
@@ -3383,7 +3383,7 @@ const Qxe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3383
3383
|
Z("p", Mde, [
|
|
3384
3384
|
Z("span", Bde, Mt((mt = h.value) == null ? void 0 : mt.name), 1)
|
|
3385
3385
|
]),
|
|
3386
|
-
Se[
|
|
3386
|
+
Se[4] || (Se[4] = Z("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1))
|
|
3387
3387
|
], 2)) : Tt("", !0),
|
|
3388
3388
|
u.show ? Tt("", !0) : (Ce(), Pe("div", {
|
|
3389
3389
|
key: 1,
|
|
@@ -3416,17 +3416,16 @@ const Qxe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3416
3416
|
"gl-input-form-invalid": u.error_message !== "",
|
|
3417
3417
|
[`showOptions${P.value}`]: !0
|
|
3418
3418
|
}, "pr-2 showOptions1"]),
|
|
3419
|
-
onClick: Se[0] || (Se[0] = (en) => it()),
|
|
3420
3419
|
value: (at = h.value) == null ? void 0 : at.name,
|
|
3421
3420
|
placeholder: u.placeholder,
|
|
3422
3421
|
autocomplete: "off",
|
|
3423
3422
|
readonly: ""
|
|
3424
3423
|
}, null, 10, Qde),
|
|
3425
3424
|
Ur(Z("i", {
|
|
3426
|
-
onClick: Se[
|
|
3425
|
+
onClick: Se[0] || (Se[0] = ma((nn) => It(), ["stop"])),
|
|
3427
3426
|
class: "absolute text-gray-500 cursor-pointer pointer-events-auto ltr:right-8 rtl:left-8 hover:text-red-600 dark:hover:text-red-400",
|
|
3428
3427
|
style: { top: "13px" }
|
|
3429
|
-
}, Se[
|
|
3428
|
+
}, Se[5] || (Se[5] = [
|
|
3430
3429
|
Z("svg", {
|
|
3431
3430
|
class: "w-[10px] h-[16px]",
|
|
3432
3431
|
"aria-hidden": "true",
|
|
@@ -3446,7 +3445,7 @@ const Qxe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3446
3445
|
[Vf, We(h.value) && u.has_cancel]
|
|
3447
3446
|
]),
|
|
3448
3447
|
Z("i", {
|
|
3449
|
-
onClick: Se[
|
|
3448
|
+
onClick: Se[1] || (Se[1] = ma((nn) => it(), ["stop"])),
|
|
3450
3449
|
class: "absolute text-xl text-gray-500 cursor-pointer ltr:right-2 rtl:left-2 hover:text-gray-700 dark:hover:text-gray-800 showOptions",
|
|
3451
3450
|
style: { top: "13px" }
|
|
3452
3451
|
}, [
|
|
@@ -3456,7 +3455,7 @@ const Qxe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3456
3455
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3457
3456
|
fill: "none",
|
|
3458
3457
|
viewBox: "0 0 10 6"
|
|
3459
|
-
}, Se[
|
|
3458
|
+
}, Se[6] || (Se[6] = [
|
|
3460
3459
|
Z("path", {
|
|
3461
3460
|
stroke: "currentColor",
|
|
3462
3461
|
"stroke-linecap": "round",
|
|
@@ -3468,12 +3467,12 @@ const Qxe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3468
3467
|
]),
|
|
3469
3468
|
Ur(Z("div", Fde, [
|
|
3470
3469
|
u.hide_search ? Tt("", !0) : (Ce(), Pe("div", Zde, [
|
|
3471
|
-
Se[
|
|
3470
|
+
Se[8] || (Se[8] = Z("label", {
|
|
3472
3471
|
for: "default-search",
|
|
3473
3472
|
class: "mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"
|
|
3474
3473
|
}, "Search", -1)),
|
|
3475
3474
|
Z("div", Vde, [
|
|
3476
|
-
Se[
|
|
3475
|
+
Se[7] || (Se[7] = Z("div", { class: "absolute inset-y-0 flex items-center pointer-events-none start-0 ps-3" }, [
|
|
3477
3476
|
Z("svg", {
|
|
3478
3477
|
class: "w-4 h-4 text-gray-500 dark:text-gray-400",
|
|
3479
3478
|
"aria-hidden": "true",
|
|
@@ -3492,10 +3491,10 @@ const Qxe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3492
3491
|
], -1)),
|
|
3493
3492
|
Ur(Z("input", {
|
|
3494
3493
|
type: "search",
|
|
3495
|
-
"onUpdate:modelValue": Se[
|
|
3494
|
+
"onUpdate:modelValue": Se[2] || (Se[2] = (nn) => T.value = nn),
|
|
3496
3495
|
id: `${u.field_name}search${P.value}`,
|
|
3497
3496
|
onKeydown: rn,
|
|
3498
|
-
onBlur: Se[
|
|
3497
|
+
onBlur: Se[3] || (Se[3] = (nn) => qt()),
|
|
3499
3498
|
autocomplete: "off",
|
|
3500
3499
|
class: "block w-full p-2 text-sm text-gray-900 border rounded-lg outline-none border-primary ps-10 bg-gray-50 focus:border-primary dark:bg-gray-700 dark:border-primaryDark dark:placeholder-primaryDark dark:text-white dark:focus:border-primaryDark",
|
|
3501
3500
|
placeholder: u.search_input_placeholder
|
|
@@ -3510,20 +3509,20 @@ const Qxe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3510
3509
|
ref_key: "dropdownRef",
|
|
3511
3510
|
ref: _e
|
|
3512
3511
|
}, [
|
|
3513
|
-
he.value.length ? (Ce(!0), Pe(Qo, { key: 0 }, Hr(he.value, (
|
|
3512
|
+
he.value.length ? (Ce(!0), Pe(Qo, { key: 0 }, Hr(he.value, (nn, Ye) => {
|
|
3514
3513
|
var xt;
|
|
3515
3514
|
return Ce(), Pe("div", {
|
|
3516
3515
|
class: wn([
|
|
3517
3516
|
"relative px-2 py-2 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white",
|
|
3518
3517
|
Ye + 1 == O.value ? "bg-gray-100 dark:bg-gray-600" : ""
|
|
3519
3518
|
]),
|
|
3520
|
-
onClick: (Y) => ro(
|
|
3521
|
-
onMousedown: (Y) => ro(
|
|
3519
|
+
onClick: (Y) => ro(nn),
|
|
3520
|
+
onMousedown: (Y) => ro(nn),
|
|
3522
3521
|
key: Ye,
|
|
3523
3522
|
id: `${Ye + 1}${P.value}`
|
|
3524
3523
|
}, [
|
|
3525
3524
|
Z("div", Ude, [
|
|
3526
|
-
((xt = h.value) == null ? void 0 : xt.id) ===
|
|
3525
|
+
((xt = h.value) == null ? void 0 : xt.id) === nn.id ? (Ce(), Pe("svg", Wde, Se[9] || (Se[9] = [
|
|
3527
3526
|
Z("path", {
|
|
3528
3527
|
stroke: "currentColor",
|
|
3529
3528
|
"stroke-linecap": "round",
|
|
@@ -3533,7 +3532,7 @@ const Qxe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3533
3532
|
}, null, -1)
|
|
3534
3533
|
]))) : Tt("", !0),
|
|
3535
3534
|
Z("span", {
|
|
3536
|
-
innerHTML:
|
|
3535
|
+
innerHTML: nn.name || nn.id || "-"
|
|
3537
3536
|
}, null, 8, jde)
|
|
3538
3537
|
])
|
|
3539
3538
|
], 42, Hde);
|
|
@@ -3749,7 +3748,7 @@ function ihe() {
|
|
|
3749
3748
|
}
|
|
3750
3749
|
const mt = (e) => (n) => !e(n), Jt = (e) => () => {
|
|
3751
3750
|
throw new Error(e);
|
|
3752
|
-
}, at = (e) => e(),
|
|
3751
|
+
}, at = (e) => e(), nn = (e) => {
|
|
3753
3752
|
e();
|
|
3754
3753
|
}, Ye = It(!1), xt = It(!0);
|
|
3755
3754
|
class Y {
|
|
@@ -4856,11 +4855,11 @@ function ihe() {
|
|
|
4856
4855
|
e.clear();
|
|
4857
4856
|
}
|
|
4858
4857
|
};
|
|
4859
|
-
}, Qe = "data-mce-block", At = (e) => yn(Lo(e), (n) => !/[A-Z]/.test(n)),
|
|
4858
|
+
}, Qe = "data-mce-block", At = (e) => yn(Lo(e), (n) => !/[A-Z]/.test(n)), en = (e) => Ke(At(e), (n) => {
|
|
4860
4859
|
const s = CSS.escape(n);
|
|
4861
4860
|
return `${s}:` + Ke(ee, (a) => `not(${a} ${s})`).join(":");
|
|
4862
4861
|
}).join(","), Rn = (e, n) => We(n.querySelector(e)) ? (n.setAttribute(Qe, "true"), n.getAttribute("data-mce-selected") === "inline-boundary" && n.removeAttribute("data-mce-selected"), !0) : (n.removeAttribute(Qe), !1), ko = (e, n) => {
|
|
4863
|
-
const s =
|
|
4862
|
+
const s = en(e.getTransparentElements()), a = en(e.getBlockElements());
|
|
4864
4863
|
return yn(n.querySelectorAll(s), (d) => Rn(a, d));
|
|
4865
4864
|
}, Wo = (e, n, s) => {
|
|
4866
4865
|
var a;
|
|
@@ -4906,7 +4905,7 @@ function ihe() {
|
|
|
4906
4905
|
Hs(e, n, s), Lr(e, n, s);
|
|
4907
4906
|
}, Wu = (e, n) => {
|
|
4908
4907
|
if (Jf(e, n)) {
|
|
4909
|
-
const s =
|
|
4908
|
+
const s = en(e.getBlockElements());
|
|
4910
4909
|
Rn(s, n);
|
|
4911
4910
|
}
|
|
4912
4911
|
}, lh = (e, n, s) => {
|
|
@@ -4960,7 +4959,7 @@ function ihe() {
|
|
|
4960
4959
|
const Qt = Nt._addCacheSuffix(Ze), on = W(Qt);
|
|
4961
4960
|
a[Qt] = on, on.count++;
|
|
4962
4961
|
const _n = (hn, Yn) => {
|
|
4963
|
-
ke(hn,
|
|
4962
|
+
ke(hn, nn), on.status = Yn, on.passed = [], on.failed = [], rt && (rt.onload = null, rt.onerror = null, rt = null);
|
|
4964
4963
|
}, _t = () => _n(on.passed, 2), vt = () => _n(on.failed, 3);
|
|
4965
4964
|
if (Ge && on.passed.push(Ge), qe && on.failed.push(qe), on.status === 1)
|
|
4966
4965
|
return;
|
|
@@ -6310,7 +6309,7 @@ function ihe() {
|
|
|
6310
6309
|
}, () => (s.states[B] = $2, a("reject", B), Promise.reject(B)))))), y = ($) => (s.loading = !0, p($).then((B) => {
|
|
6311
6310
|
s.loading = !1;
|
|
6312
6311
|
const W = s.queueLoadedCallbacks.shift();
|
|
6313
|
-
return Y.from(W).each(
|
|
6312
|
+
return Y.from(W).each(nn), d(B);
|
|
6314
6313
|
})), C = Pl(n);
|
|
6315
6314
|
return s.loading ? new Promise(($, B) => {
|
|
6316
6315
|
s.queueLoadedCallbacks.push(() => {
|
|
@@ -8851,7 +8850,7 @@ Required: ` + n.join(", "));
|
|
|
8851
8850
|
}, bn = (e) => {
|
|
8852
8851
|
const n = su(Me.fromDom(e.getElement()));
|
|
8853
8852
|
return Xw(n).filter((s) => !jb(s.dom) && ly(e, s.dom)).isSome();
|
|
8854
|
-
}, Yt = (e) => e.inline ? Zt(e) : nt(e),
|
|
8853
|
+
}, Yt = (e) => e.inline ? Zt(e) : nt(e), tn = (e) => Yt(e) || bn(e), Mn = (e) => {
|
|
8855
8854
|
const n = e.selection, s = e.getBody();
|
|
8856
8855
|
let a = n.getRng();
|
|
8857
8856
|
e.quirks.refreshContentEditable();
|
|
@@ -9016,7 +9015,7 @@ Required: ` + n.join(", "));
|
|
|
9016
9015
|
const os = vn.type === "mousedown" ? vn.target : e.getNode(), jo = In(Me.fromDom(os), qs).map((br) => br.dom).filter((br) => s.isEditable(br.parentElement) || br.nodeName === "IMG" && s.isEditable(br)).getOrUndefined(), _a = We(jo) ? s.getAttrib(jo, Cn, "1") : "1";
|
|
9017
9016
|
if (ke(s.select(`img[${Cn}],hr[${Cn}]`), (br) => {
|
|
9018
9017
|
br.removeAttribute(Cn);
|
|
9019
|
-
}), We(jo) && qn(jo, p) &&
|
|
9018
|
+
}), We(jo) && qn(jo, p) && tn(n)) {
|
|
9020
9019
|
uo();
|
|
9021
9020
|
const br = e.getStart(!0);
|
|
9022
9021
|
if (qn(br, jo) && qn(e.getEnd(!0), jo)) {
|
|
@@ -13573,7 +13572,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
13573
13572
|
e.editorManager.setActive(e);
|
|
13574
13573
|
const ge = s().open(G, () => {
|
|
13575
13574
|
C(ge);
|
|
13576
|
-
}, () =>
|
|
13575
|
+
}, () => tn(e));
|
|
13577
13576
|
return y(ge), p(), e.dispatch("OpenNotification", { notification: { ...ge } }), ge;
|
|
13578
13577
|
})), B = () => {
|
|
13579
13578
|
a().each((G) => {
|
|
@@ -13711,7 +13710,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
13711
13710
|
hB(n, "mce-content-readonly", !0), e.selection.controlSelection.hideResizeRect(), e._selectionOverrides.hideFakeCaret(), EH(e);
|
|
13712
13711
|
}, mB = (e) => {
|
|
13713
13712
|
const n = Me.fromDom(e.getBody());
|
|
13714
|
-
hB(n, "mce-content-readonly", !1), e.hasEditableRoot() && Is(n, !0), $H(e, !1),
|
|
13713
|
+
hB(n, "mce-content-readonly", !1), e.hasEditableRoot() && Is(n, !0), $H(e, !1), tn(e) && e.focus(), dB(e), e.nodeChanged();
|
|
13715
13714
|
}, Np = (e) => B0(e), Ny = "data-mce-contenteditable", Em = (e) => {
|
|
13716
13715
|
ke(rl(e, '*[contenteditable="true"]'), (n) => {
|
|
13717
13716
|
Xr(n, Ny, "true"), Is(n, !1);
|
|
@@ -15274,7 +15273,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15274
15273
|
}).getOr(!0), A3 = (e, n) => (s) => UP(n, s).map((a) => () => pO(e, a)), sA = (e, n, s, a) => {
|
|
15275
15274
|
const d = e.getBody(), p = Se(n1, e);
|
|
15276
15275
|
e.undoManager.ignore(() => {
|
|
15277
|
-
e.selection.setRng(nA(s, a)), hT(e), kg(p, d, kt.fromRangeStart(e.selection.getRng())).map(qP).bind(A3(e, n)).each(
|
|
15276
|
+
e.selection.setRng(nA(s, a)), hT(e), kg(p, d, kt.fromRangeStart(e.selection.getRng())).map(qP).bind(A3(e, n)).each(nn);
|
|
15278
15277
|
}), e.nodeChanged();
|
|
15279
15278
|
}, vN = (e, n) => {
|
|
15280
15279
|
const s = hf(n, e);
|
|
@@ -15406,11 +15405,11 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15406
15405
|
], (a) => a(e, s)).filter((a) => e.selection.isEditable()), UU = (e, n) => {
|
|
15407
15406
|
RN(e, n, !1).fold(() => {
|
|
15408
15407
|
e.selection.isEditable() && (hT(e), s1(e));
|
|
15409
|
-
},
|
|
15408
|
+
}, nn);
|
|
15410
15409
|
}, Fy = (e, n) => {
|
|
15411
15410
|
RN(e, n, !0).fold(() => {
|
|
15412
15411
|
e.selection.isEditable() && ni(e);
|
|
15413
|
-
},
|
|
15412
|
+
}, nn);
|
|
15414
15413
|
}, M3 = (e, n) => {
|
|
15415
15414
|
e.addCommand("delete", () => {
|
|
15416
15415
|
UU(e, n);
|
|
@@ -20960,7 +20959,7 @@ function lhe() {
|
|
|
20960
20959
|
for (let f = 0; f < t; f++)
|
|
20961
20960
|
l.push(r(f));
|
|
20962
20961
|
return l;
|
|
20963
|
-
},
|
|
20962
|
+
}, nn = (t, r) => {
|
|
20964
20963
|
const l = [];
|
|
20965
20964
|
for (let f = 0; f < t.length; f += r) {
|
|
20966
20965
|
const b = ro.call(t, f, f + r);
|
|
@@ -22095,7 +22094,7 @@ Required: ` + r.join(", "));
|
|
|
22095
22094
|
errors: r,
|
|
22096
22095
|
values: l
|
|
22097
22096
|
};
|
|
22098
|
-
},
|
|
22097
|
+
}, en = (t, r) => {
|
|
22099
22098
|
const l = {};
|
|
22100
22099
|
return Fs(t, (f, b) => {
|
|
22101
22100
|
mt(r, b) || (l[b] = f);
|
|
@@ -22105,7 +22104,7 @@ Required: ` + r.join(", "));
|
|
|
22105
22104
|
return xt(t, (l) => {
|
|
22106
22105
|
r[l.key] = l.value;
|
|
22107
22106
|
}), r;
|
|
22108
|
-
}, Wo = (t, r) =>
|
|
22107
|
+
}, Wo = (t, r) => en(t, r), Xs = (t, r) => Rn(t, r), Hs = (t) => ko(t), Lr = (t, r) => t.length === 0 ? Eo.value(r) : Eo.value(wr(r, vd.apply(void 0, t))), yl = (t) => Eo.error(Ke(t)), Wu = (t, r) => {
|
|
22109
22108
|
const l = At(t);
|
|
22110
22109
|
return l.errors.length > 0 ? yl(l.errors) : Lr(l.values, r);
|
|
22111
22110
|
}, lh = (t) => we(t) ? t : dt, Bl = (t, r, l) => {
|
|
@@ -24818,7 +24817,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24818
24817
|
fields: ie,
|
|
24819
24818
|
name: "highlighting",
|
|
24820
24819
|
apis: J
|
|
24821
|
-
}), Ie = [8], nt = [9], Zt = [13], bn = [27], Yt = [32],
|
|
24820
|
+
}), Ie = [8], nt = [9], Zt = [13], bn = [27], Yt = [32], tn = [37], Mn = [38], zt = [39], no = [40], Bt = (t, r, l) => {
|
|
24822
24821
|
const f = vo(t.slice(0, r)), b = vo(t.slice(r + 1));
|
|
24823
24822
|
return Ne(f.concat(b), l);
|
|
24824
24823
|
}, Cn = (t, r, l) => {
|
|
@@ -25040,7 +25039,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25040
25039
|
r.focusManager.set(t, f);
|
|
25041
25040
|
});
|
|
25042
25041
|
}, gE = (t, r) => r.focusManager.get(t).bind((l) => _d(l, r.selector)), uZ = (t, r, l, f) => gE(t, l).bind((b) => l.execute(t, r, b)), nT = (t) => (r, l, f, b) => cx(r, l, f.selector).bind((x) => t(x.candidates, x.index, b.getNumRows().getOr(f.initSize.numRows), b.getNumColumns().getOr(f.initSize.numColumns))), BM = (t, r, l) => l.captureTab ? Q.some(!0) : Q.none(), NM = (t, r, l) => l.onEscape(t, r), LM = nT(aZ), IM = nT(MM), QM = nT(jJ), FM = nT(XJ), dZ = te([
|
|
25043
|
-
fs(Un(
|
|
25042
|
+
fs(Un(tn), eT(LM, IM)),
|
|
25044
25043
|
fs(Un(zt), hE(LM, IM)),
|
|
25045
25044
|
fs(Un(Mn), $M(QM)),
|
|
25046
25045
|
fs(Un(no), PM(FM)),
|
|
@@ -25084,7 +25083,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25084
25083
|
r.focusManager.set(t, f);
|
|
25085
25084
|
});
|
|
25086
25085
|
}, zM = (t, r, l) => (l.cycles ? ux : pE)(t, l.selector, r, -1), HM = (t, r, l) => (l.cycles ? ux : pE)(t, l.selector, r, 1), uy = (t) => (r, l, f, b) => t(r, l, f, b).bind(() => f.executeOnMove ? bE(r, l, f) : Q.some(!0)), UM = (t, r, l) => l.onEscape(t, r), WM = (t, r, l, f) => {
|
|
25087
|
-
const b = [...l.allowHorizontal ?
|
|
25086
|
+
const b = [...l.allowHorizontal ? tn : []].concat(l.allowVertical ? Mn : []), x = [...l.allowHorizontal ? zt : []].concat(l.allowVertical ? no : []);
|
|
25088
25087
|
return [
|
|
25089
25088
|
fs(Un(b), uy(eT(zM, HM))),
|
|
25090
25089
|
fs(Un(x), uy(hE(zM, HM))),
|
|
@@ -25140,7 +25139,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25140
25139
|
});
|
|
25141
25140
|
});
|
|
25142
25141
|
}, o8 = iT(rT, Wc), s8 = iT(gZ, bZ), r8 = iT(pZ, JM), yZ = iT(KM, e8), wZ = te([
|
|
25143
|
-
fs(Un(
|
|
25142
|
+
fs(Un(tn), eT(o8, s8)),
|
|
25144
25143
|
fs(Un(zt), hE(o8, s8)),
|
|
25145
25144
|
fs(Un(Mn), $M(r8)),
|
|
25146
25145
|
fs(Un(no), PM(yZ)),
|
|
@@ -25203,7 +25202,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25203
25202
|
]), l.onTab),
|
|
25204
25203
|
fs(Un(Mn), l.onUp),
|
|
25205
25204
|
fs(Un(no), l.onDown),
|
|
25206
|
-
fs(Un(
|
|
25205
|
+
fs(Un(tn), l.onLeft),
|
|
25207
25206
|
fs(Un(zt), l.onRight),
|
|
25208
25207
|
fs(Un(Yt), l.onSpace)
|
|
25209
25208
|
], dy = (t, r, l) => [
|
|
@@ -27764,7 +27763,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27764
27763
|
}
|
|
27765
27764
|
} : t;
|
|
27766
27765
|
}, UT = (t, r) => (l) => {
|
|
27767
|
-
const f =
|
|
27766
|
+
const f = nn(l, r);
|
|
27768
27767
|
return Ye(f, (b) => ({
|
|
27769
27768
|
dom: t,
|
|
27770
27769
|
components: b
|
|
@@ -30191,7 +30190,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30191
30190
|
"-": " "
|
|
30192
30191
|
}, En = pt.replace(/\_| \- |\-/g, (fn) => St[fn]);
|
|
30193
30192
|
return `<div data-mce-tooltip="${En}" class="tox-collection__item${Xe}" tabindex="-1" data-collection-item-value="${DH.encodeAllRaw(ct.value)}" aria-label="${En}">${Sn}${mn}</div>`;
|
|
30194
|
-
}), Ue = t.columns !== "auto" && t.columns > 1 ?
|
|
30193
|
+
}), Ue = t.columns !== "auto" && t.columns > 1 ? nn(ye, t.columns) : [ye], He = Ye(Ue, (ct) => `<div class="tox-collection__group">${ct.join("")}</div>`);
|
|
30195
30194
|
ji(ae.element, He.join(""));
|
|
30196
30195
|
}, D = S((ae, pe, xe, Xe) => {
|
|
30197
30196
|
pe.stop(), r.checkUiComponentContext("mode:design").shouldDisable || r.isDisabled() || Vn(ae, wg, {
|
|
@@ -42448,7 +42447,7 @@ function che() {
|
|
|
42448
42447
|
v(z, _) && k.push(z);
|
|
42449
42448
|
}
|
|
42450
42449
|
return k;
|
|
42451
|
-
},
|
|
42450
|
+
}, nn = (g, v, k) => (mt(g, (_, N) => {
|
|
42452
42451
|
k = v(k, _, N);
|
|
42453
42452
|
}), k), Ye = (g, v, k) => (Se(g, (_, N) => {
|
|
42454
42453
|
k = v(k, _, N);
|
|
@@ -43170,7 +43169,7 @@ function che() {
|
|
|
43170
43169
|
fail: Ie
|
|
43171
43170
|
} = Jt(g, (Yt) => Yt.section === "colgroup");
|
|
43172
43171
|
Se(Ie, (Yt) => {
|
|
43173
|
-
const
|
|
43172
|
+
const tn = [];
|
|
43174
43173
|
Se(Yt.cells, (Mn) => {
|
|
43175
43174
|
let zt = 0;
|
|
43176
43175
|
for (; v[Wm(ie, zt)] !== void 0; )
|
|
@@ -43181,14 +43180,14 @@ function che() {
|
|
|
43181
43180
|
const Gs = ie + qs, Un = zt + Cn, pr = Wm(Gs, Un);
|
|
43182
43181
|
v[pr] = Bt, J = Math.max(J, Un + 1);
|
|
43183
43182
|
}
|
|
43184
|
-
|
|
43185
|
-
}), z++, k.push(uc(Yt.element,
|
|
43183
|
+
tn.push(Bt);
|
|
43184
|
+
}), z++, k.push(uc(Yt.element, tn, Yt.section)), ie++;
|
|
43186
43185
|
});
|
|
43187
43186
|
const { columns: nt, colgroups: Zt } = Fn(ue).map((Yt) => {
|
|
43188
|
-
const
|
|
43187
|
+
const tn = sr(Yt);
|
|
43189
43188
|
return {
|
|
43190
|
-
colgroups: [se(Yt.element, rs(
|
|
43191
|
-
columns:
|
|
43189
|
+
colgroups: [se(Yt.element, rs(tn))],
|
|
43190
|
+
columns: tn
|
|
43192
43191
|
};
|
|
43193
43192
|
}).getOrThunk(() => ({
|
|
43194
43193
|
colgroups: [],
|
|
@@ -43454,14 +43453,14 @@ function che() {
|
|
|
43454
43453
|
return Co(g.access, (nt) => {
|
|
43455
43454
|
if (ue.push(nt), v(nt)) {
|
|
43456
43455
|
Ie.push(nt);
|
|
43457
|
-
const Zt = nt.row, bn = Zt + nt.rowspan - 1, Yt = nt.column,
|
|
43458
|
-
Zt < N ? N = Zt : bn > J && (J = bn), Yt < z ? z = Yt :
|
|
43456
|
+
const Zt = nt.row, bn = Zt + nt.rowspan - 1, Yt = nt.column, tn = Yt + nt.colspan - 1;
|
|
43457
|
+
Zt < N ? N = Zt : bn > J && (J = bn), Yt < z ? z = Yt : tn > ie && (ie = tn);
|
|
43459
43458
|
}
|
|
43460
43459
|
}), me(N, z, J, ie, ue, Ie);
|
|
43461
43460
|
}, At = (g, v, k) => {
|
|
43462
43461
|
const _ = g[k].element, N = Rt.fromTag("td");
|
|
43463
43462
|
Ks(N, Rt.fromTag("br")), (v ? Ks : Vi)(_, N);
|
|
43464
|
-
},
|
|
43463
|
+
}, en = (g, v, k, _) => {
|
|
43465
43464
|
const N = at(g, (ie) => ie.section !== "colgroup"), z = v.grid.columns, J = v.grid.rows;
|
|
43466
43465
|
for (let ie = 0; ie < J; ie++) {
|
|
43467
43466
|
let ue = !1;
|
|
@@ -43483,7 +43482,7 @@ function che() {
|
|
|
43483
43482
|
return k.getCellDelta(ue);
|
|
43484
43483
|
}, Wo = (g, v) => {
|
|
43485
43484
|
const k = (bn) => Ot(bn.element, v), _ = oi(g), N = Lg(_), z = ee.getTableSize(g), J = es.generate(N), ie = Qe(J, k), ue = "th:not(" + v + "),td:not(" + v + ")", Ie = Vh(_, "th,td", (bn) => Ot(bn, ue));
|
|
43486
|
-
Se(Ie, hr),
|
|
43485
|
+
Se(Ie, hr), en(N, J, ie, k);
|
|
43487
43486
|
const nt = es.fromTable(g), Zt = ko(g, nt, z, ie);
|
|
43488
43487
|
return Rn(_, ie, J, Zt), _;
|
|
43489
43488
|
}, Xs = " ", Lr = ((g, v) => {
|
|
@@ -43533,7 +43532,7 @@ function che() {
|
|
|
43533
43532
|
}), _;
|
|
43534
43533
|
}, kc = (g) => g, Gg = (g, v, k) => Gm(g).map((N) => {
|
|
43535
43534
|
const z = k.join(","), J = $n(N, z, (ie) => Ht(ie, g));
|
|
43536
|
-
return
|
|
43535
|
+
return nn(J, (ie, ue) => {
|
|
43537
43536
|
const Ie = Hl(ue);
|
|
43538
43537
|
return Ks(ie, Ie), Ie;
|
|
43539
43538
|
}, v);
|
|
@@ -43842,7 +43841,7 @@ function che() {
|
|
|
43842
43841
|
return _(g, v, N, z);
|
|
43843
43842
|
}, lk = (g, v, k) => k.length > 0 ? sf(g, v, k, om) : ve.none(), om = (g, v, k, _) => {
|
|
43844
43843
|
const N = v(g, k);
|
|
43845
|
-
return
|
|
43844
|
+
return nn(_, (z, J) => {
|
|
43846
43845
|
const ie = v(g, J);
|
|
43847
43846
|
return ck(g, z, ie);
|
|
43848
43847
|
}, N);
|
|
@@ -44010,7 +44009,7 @@ function che() {
|
|
|
44010
44009
|
], lf);
|
|
44011
44010
|
}, v = (ie, ue, Ie, nt) => {
|
|
44012
44011
|
const Zt = (100 + Ie) / 100, bn = Math.max(nt, (ie[ue] + Ie) / Zt);
|
|
44013
|
-
return et(ie, (Yt,
|
|
44012
|
+
return et(ie, (Yt, tn) => (tn === ue ? bn : Yt / Zt) - Yt);
|
|
44014
44013
|
}, k = (ie, ue, Ie, nt, Zt, bn) => bn ? v(ie, ue, nt, Zt) : g(ie, ue, Ie, nt, Zt);
|
|
44015
44014
|
return {
|
|
44016
44015
|
resizeTable: (ie, ue) => ie(ue),
|
|
@@ -44027,7 +44026,7 @@ function che() {
|
|
|
44027
44026
|
},
|
|
44028
44027
|
calcRedestributedWidths: (ie, ue, Ie, nt) => {
|
|
44029
44028
|
if (nt) {
|
|
44030
|
-
const bn = (ue + Ie) / ue, Yt = et(ie, (
|
|
44029
|
+
const bn = (ue + Ie) / ue, Yt = et(ie, (tn) => tn / bn);
|
|
44031
44030
|
return {
|
|
44032
44031
|
delta: bn * 100 - 100,
|
|
44033
44032
|
newSizes: Yt
|
|
@@ -44139,19 +44138,19 @@ function che() {
|
|
|
44139
44138
|
});
|
|
44140
44139
|
return zl(k), k;
|
|
44141
44140
|
}, C0 = (g, v) => {
|
|
44142
|
-
const k = [], _ = [], N = (Yt) => et(Yt, (
|
|
44143
|
-
|
|
44144
|
-
const Mn =
|
|
44145
|
-
return zl(Mn), Se(
|
|
44141
|
+
const k = [], _ = [], N = (Yt) => et(Yt, (tn) => {
|
|
44142
|
+
tn.isNew && k.push(tn.element);
|
|
44143
|
+
const Mn = tn.element;
|
|
44144
|
+
return zl(Mn), Se(tn.cells, (zt) => {
|
|
44146
44145
|
zt.isNew && _.push(zt.element), ph(zt.element, "colspan", zt.colspan, 1), ph(zt.element, "rowspan", zt.rowspan, 1), Ks(Mn, zt.element);
|
|
44147
44146
|
}), Mn;
|
|
44148
|
-
}), z = (Yt) => xo(Yt, (
|
|
44149
|
-
const Mn = k0(g,
|
|
44147
|
+
}), z = (Yt) => xo(Yt, (tn) => et(tn.cells, (Mn) => (ph(Mn.element, "span", Mn.colspan, 1), Mn.element))), J = (Yt, tn) => {
|
|
44148
|
+
const Mn = k0(g, tn), no = (tn === "colgroup" ? z : N)(Yt);
|
|
44150
44149
|
Jo(Mn, no);
|
|
44151
44150
|
}, ie = (Yt) => {
|
|
44152
44151
|
Uo(g, Yt).each(hr);
|
|
44153
|
-
}, ue = (Yt,
|
|
44154
|
-
Yt.length > 0 ? J(Yt,
|
|
44152
|
+
}, ue = (Yt, tn) => {
|
|
44153
|
+
Yt.length > 0 ? J(Yt, tn) : ie(tn);
|
|
44155
44154
|
}, Ie = [], nt = [], Zt = [], bn = [];
|
|
44156
44155
|
return Se(v, (Yt) => {
|
|
44157
44156
|
switch (Yt.section) {
|
|
@@ -44231,17 +44230,17 @@ function che() {
|
|
|
44231
44230
|
}, ji = (g, v, k, _, N) => (z, J, ie, ue) => {
|
|
44232
44231
|
const Ie = es.fromTable(z), nt = ve.from(ue == null ? void 0 : ue.section).getOrThunk(S0.fallback);
|
|
44233
44232
|
return v(Ie, J).map((bn) => {
|
|
44234
|
-
const Yt = uM(Ie, ie),
|
|
44233
|
+
const Yt = uM(Ie, ie), tn = g(Yt, bn, Ht, N(ie), nt), Mn = Nr(tn.grid), zt = im(tn.grid);
|
|
44235
44234
|
return {
|
|
44236
44235
|
info: bn,
|
|
44237
44236
|
grid: zt,
|
|
44238
|
-
cursor:
|
|
44237
|
+
cursor: tn.cursor,
|
|
44239
44238
|
lockedColumns: Mn
|
|
44240
44239
|
};
|
|
44241
44240
|
}).bind((bn) => {
|
|
44242
|
-
const Yt = C0(z, bn.grid),
|
|
44241
|
+
const Yt = C0(z, bn.grid), tn = ve.from(ue == null ? void 0 : ue.sizing).getOrThunk(() => ee.getTableSize(z)), Mn = ve.from(ue == null ? void 0 : ue.resize).getOrThunk(ov);
|
|
44243
44242
|
return k(z, bn.grid, bn.info, {
|
|
44244
|
-
sizing:
|
|
44243
|
+
sizing: tn,
|
|
44245
44244
|
resize: Mn,
|
|
44246
44245
|
section: nt
|
|
44247
44246
|
}), _(z), Te(z, mc), bn.lockedColumns.length > 0 && Ws(z, mc, bn.lockedColumns.join(",")), ve.some({
|
|
@@ -44292,8 +44291,8 @@ function che() {
|
|
|
44292
44291
|
for (let Ie = v; Ie < N.length; Ie++)
|
|
44293
44292
|
for (let nt = 0; nt < jl(N[0]); nt++) {
|
|
44294
44293
|
const Zt = N[Ie], bn = Dl(Zt, nt);
|
|
44295
|
-
k(bn.element, ie.element) && (ue.isNone() && (ue = ve.some(_())), ue.each((
|
|
44296
|
-
Eo(Zt, nt, jr(
|
|
44294
|
+
k(bn.element, ie.element) && (ue.isNone() && (ue = ve.some(_())), ue.each((tn) => {
|
|
44295
|
+
Eo(Zt, nt, jr(tn, !0, bn.isLocked));
|
|
44297
44296
|
}));
|
|
44298
44297
|
}
|
|
44299
44298
|
});
|
|
@@ -44391,14 +44390,14 @@ function che() {
|
|
|
44391
44390
|
}, Ir = (g, v, k, _, N, z) => {
|
|
44392
44391
|
const J = g.row, ie = g.column, ue = k.length, Ie = jl(k[0]), nt = J + ue, Zt = ie + Ie + z.length, bn = Ne(z, We);
|
|
44393
44392
|
for (let Yt = J; Yt < nt; Yt++) {
|
|
44394
|
-
let
|
|
44393
|
+
let tn = 0;
|
|
44395
44394
|
for (let Mn = ie; Mn < Zt; Mn++) {
|
|
44396
44395
|
if (bn[Mn]) {
|
|
44397
|
-
|
|
44396
|
+
tn++;
|
|
44398
44397
|
continue;
|
|
44399
44398
|
}
|
|
44400
44399
|
db(v, Yt, Mn, N) && ub(v, ol(v[Yt], Mn), N, _.cell);
|
|
44401
|
-
const zt = Mn - ie -
|
|
44400
|
+
const zt = Mn - ie - tn, no = Dl(k[Yt - J], zt), Bt = no.element, Cn = _.replace(Bt);
|
|
44402
44401
|
Eo(v[Yt], Mn, jr(Cn, !0, no.isLocked));
|
|
44403
44402
|
}
|
|
44404
44403
|
}
|
|
@@ -44415,8 +44414,8 @@ function che() {
|
|
|
44415
44414
|
const Zt = {
|
|
44416
44415
|
...nt,
|
|
44417
44416
|
colDelta: nt.colDelta - ue.length
|
|
44418
|
-
}, bn = vh(v, Zt, _), Yt = Nr(bn),
|
|
44419
|
-
return Ir(J, bn, ie, _, N,
|
|
44417
|
+
}, bn = vh(v, Zt, _), Yt = Nr(bn), tn = cm(J, ie, Yt);
|
|
44418
|
+
return Ir(J, bn, ie, _, N, tn);
|
|
44420
44419
|
});
|
|
44421
44420
|
}, q4 = (g, v, k, _, N) => {
|
|
44422
44421
|
X4(v, g, N, _.cell);
|
|
@@ -44433,7 +44432,7 @@ function che() {
|
|
|
44433
44432
|
} = qi(ue), Zt = Nr(ue), bn = vk(k, v), Yt = {
|
|
44434
44433
|
...bn,
|
|
44435
44434
|
colDelta: bn.colDelta + Zt.length
|
|
44436
|
-
},
|
|
44435
|
+
}, tn = Gl(k, _, Zt), Mn = vh(tn, Yt, _);
|
|
44437
44436
|
return [
|
|
44438
44437
|
...Ie,
|
|
44439
44438
|
...nt.slice(0, g),
|
|
@@ -44458,7 +44457,7 @@ function che() {
|
|
|
44458
44457
|
const J = v > 0 && v < jl(z) && _(ol(z, v - 1), ol(z, v)), ie = G4(z, v, z.section, J, k, _, N);
|
|
44459
44458
|
return o0(z, v, ie);
|
|
44460
44459
|
}), hp = (g, v) => xo(g, (k) => {
|
|
44461
|
-
const _ = k.cells, N =
|
|
44460
|
+
const _ = k.cells, N = nn(v, (z, J) => J >= 0 && J < z.length ? z.slice(0, J).concat(z.slice(J + 1)) : z, _);
|
|
44462
44461
|
return N.length > 0 ? [pa(k.element, N, k.section, k.isNew)] : [];
|
|
44463
44462
|
}), kd = (g, v, k) => {
|
|
44464
44463
|
const { rows: _, cols: N } = qi(g);
|
|
@@ -44495,8 +44494,8 @@ function che() {
|
|
|
44495
44494
|
const Yt = [
|
|
44496
44495
|
...ie,
|
|
44497
44496
|
...bn
|
|
44498
|
-
],
|
|
44499
|
-
return fp(Yt, nt, N, z, J.transformCell, Mn,
|
|
44497
|
+
], tn = Y4(Ie, Zt), Mn = kk(_, Zt);
|
|
44498
|
+
return fp(Yt, nt, N, z, J.transformCell, Mn, tn);
|
|
44500
44499
|
}, hb = (g, v, k, _) => {
|
|
44501
44500
|
const N = qi(g).rows, z = et(v, (J) => Dl(N[J.row], J.column));
|
|
44502
44501
|
return fp(g, z, k, _, av, ve.none, We);
|
|
@@ -44532,7 +44531,7 @@ function che() {
|
|
|
44532
44531
|
if (v.length !== bn.length)
|
|
44533
44532
|
throw new Error("Wrong number of arguments to match. Expected: " + v.join(",") + `
|
|
44534
44533
|
Actual: ` + bn.join(","));
|
|
44535
|
-
if (!Xo(v, (
|
|
44534
|
+
if (!Xo(v, (tn) => ro(bn, tn)))
|
|
44536
44535
|
throw new Error("Not all branches were specified when using match. Specified: " + bn.join(", ") + `
|
|
44537
44536
|
Required: ` + v.join(", "));
|
|
44538
44537
|
return Zt[J].apply(null, ue);
|
|
@@ -44570,7 +44569,7 @@ Required: ` + v.join(", "));
|
|
|
44570
44569
|
]
|
|
44571
44570
|
}
|
|
44572
44571
|
]) }, e5 = (g, v) => g.length === 0 ? dm.none() : g.length === 1 ? dm.only(0) : v === 0 ? dm.left(0, 1) : v === g.length - 1 ? dm.right(v - 1, v) : v > 0 && v < g.length - 1 ? dm.middle(v - 1, v, v + 1) : dm.none(), t5 = (g, v, k, _, N) => {
|
|
44573
|
-
const z = g.slice(0), J = e5(g, v), ie = ce(et(z, ce(0))), ue = (bn) => _.singleColumnWidth(z[bn], k), Ie = (bn, Yt) => N.calcLeftEdgeDeltas(z, bn, Yt, k, _.minCellWidth(), _.isRelative), nt = (bn, Yt,
|
|
44572
|
+
const z = g.slice(0), J = e5(g, v), ie = ce(et(z, ce(0))), ue = (bn) => _.singleColumnWidth(z[bn], k), Ie = (bn, Yt) => N.calcLeftEdgeDeltas(z, bn, Yt, k, _.minCellWidth(), _.isRelative), nt = (bn, Yt, tn) => N.calcMiddleDeltas(z, bn, Yt, tn, k, _.minCellWidth(), _.isRelative), Zt = (bn, Yt) => N.calcRightEdgeDeltas(z, bn, Yt, k, _.minCellWidth(), _.isRelative);
|
|
44574
44573
|
return J.fold(ie, ue, Ie, nt, Zt);
|
|
44575
44574
|
}, Tk = (g, v, k) => {
|
|
44576
44575
|
let _ = 0;
|
|
@@ -44597,7 +44596,7 @@ Required: ` + v.join(", "));
|
|
|
44597
44596
|
}, _k = (g, v) => et(g.all, (k, _) => ({
|
|
44598
44597
|
element: k.element,
|
|
44599
44598
|
height: v[_]
|
|
44600
|
-
})), o5 = (g) =>
|
|
44599
|
+
})), o5 = (g) => nn(g, (v, k) => v + k, 0), fb = (g, v) => es.hasColumns(g) ? n5(g, v) : F2(g, v), Z2 = (g, v, k) => {
|
|
44601
44600
|
const _ = fb(g, v);
|
|
44602
44601
|
Se(_, (N) => {
|
|
44603
44602
|
k.setElementWidth(N.element, N.width);
|
|
@@ -44761,7 +44760,7 @@ Required: ` + v.join(", "));
|
|
|
44761
44760
|
const _ = Rk(g, v, k);
|
|
44762
44761
|
return gb(g, _);
|
|
44763
44762
|
}, pb = (g) => Ye(g, (k, _) => It(k, (z) => z.row === _.row) ? k : k.concat([_]), []).sort((k, _) => k.row - _.row), a5 = (g, v, k, _) => {
|
|
44764
|
-
const N = v[0].row, z = pb(v), J =
|
|
44763
|
+
const N = v[0].row, z = pb(v), J = nn(z, (ie, ue) => ({
|
|
44765
44764
|
grid: T0(ie.grid, N, ue.row + ie.delta, k, _.getOrInit),
|
|
44766
44765
|
delta: ie.delta + 1
|
|
44767
44766
|
}), {
|
|
@@ -44770,10 +44769,10 @@ Required: ` + v.join(", "));
|
|
|
44770
44769
|
}).grid;
|
|
44771
44770
|
return Tc(J, N, v[0].column);
|
|
44772
44771
|
}, l5 = (g, v, k, _) => {
|
|
44773
|
-
const N = pb(v), z = N[N.length - 1], J = z.row + z.rowspan, ie =
|
|
44772
|
+
const N = pb(v), z = N[N.length - 1], J = z.row + z.rowspan, ie = nn(N, (ue, Ie) => T0(ue, J, Ie.row, k, _.getOrInit), g);
|
|
44774
44773
|
return Tc(ie, J, v[0].column);
|
|
44775
44774
|
}, Mk = (g, v, k, _) => {
|
|
44776
|
-
const N = v.details, z = ag(N), J = z[0].column, ie =
|
|
44775
|
+
const N = v.details, z = ag(N), J = z[0].column, ie = nn(z, (ue, Ie) => ({
|
|
44777
44776
|
grid: wk(ue.grid, J, Ie.column + ue.delta, k, _.getOrInit),
|
|
44778
44777
|
delta: ue.delta + 1
|
|
44779
44778
|
}), {
|
|
@@ -44782,7 +44781,7 @@ Required: ` + v.join(", "));
|
|
|
44782
44781
|
}).grid;
|
|
44783
44782
|
return Tc(ie, N[0].row, J);
|
|
44784
44783
|
}, hv = (g, v, k, _) => {
|
|
44785
|
-
const N = v.details, z = N[N.length - 1], J = z.column + z.colspan, ie = ag(N), ue =
|
|
44784
|
+
const N = v.details, z = N[N.length - 1], J = z.column + z.colspan, ie = ag(N), ue = nn(ie, (Ie, nt) => wk(Ie, J, nt.column, k, _.getOrInit), g);
|
|
44786
44785
|
return Tc(ue, N[0].row, J);
|
|
44787
44786
|
}, c5 = (g, v, k, _) => {
|
|
44788
44787
|
const N = ag(v), z = et(N, (ie) => ie.column), J = _0(g, z, !0, k, _.replaceOrInit);
|
|
@@ -44811,7 +44810,7 @@ Required: ` + v.join(", "));
|
|
|
44811
44810
|
const z = Fa(g, v.bounds, k, _.merge(N));
|
|
44812
44811
|
return gb(z, ve.from(N[0]));
|
|
44813
44812
|
}, U2 = (g, v, k, _) => {
|
|
44814
|
-
const z =
|
|
44813
|
+
const z = nn(v, (J, ie) => ub(J, ie, k, _.unmerge(ie)), g);
|
|
44815
44814
|
return gb(z, ve.from(v[0]));
|
|
44816
44815
|
}, W2 = (g, v, k, _) => {
|
|
44817
44816
|
const z = ((ue, Ie) => {
|
|
@@ -44939,12 +44938,12 @@ Required: ` + v.join(", "));
|
|
|
44939
44938
|
effect: pf
|
|
44940
44939
|
}));
|
|
44941
44940
|
}) : ve.none();
|
|
44942
|
-
}, Zt = nt(K2, N, we, Va), bn = nt(Y2, z, we, Va), Yt = nt(d5, We, we, Va),
|
|
44941
|
+
}, Zt = nt(K2, N, we, Va), bn = nt(Y2, z, we, Va), Yt = nt(d5, We, we, Va), tn = nt(h5, We, we, Va), Mn = nt(gv, We, ie, Va), zt = nt(G2, We, ie, Va), no = nt(fm, We, we, Va), Bt = nt(J2, We, we, Va), Cn = nt(ew, We, we, Va), qs = nt(tw, We, we, Va), Gs = nt(pv, We, we, Va), Un = nt(jk, We, we, Va), pr = nt(Wk, We, we, sw), Jl = nt(Sl, We, we, Va), Og = nt(Uk, We, we, Va), Md = nt(Zk, We, we, Va), fs = nt(Vk, We, we, Va), rr = nt(zk, We, we, Va), _l = nt(Hk, We, we, Va), ka = nt(f5, We, we, Va);
|
|
44943
44942
|
return {
|
|
44944
44943
|
deleteRow: Zt,
|
|
44945
44944
|
deleteColumn: bn,
|
|
44946
44945
|
insertRowsBefore: Yt,
|
|
44947
|
-
insertRowsAfter:
|
|
44946
|
+
insertRowsAfter: tn,
|
|
44948
44947
|
insertColumnsBefore: Mn,
|
|
44949
44948
|
insertColumnsAfter: zt,
|
|
44950
44949
|
mergeCells: no,
|
|
@@ -45032,7 +45031,7 @@ Required: ` + v.join(", "));
|
|
|
45032
45031
|
}, iw = (g, v, k) => g.fold(() => v, (_) => mm(v, k, _), (_) => uf(v, k)), Ov = (g, v, k) => {
|
|
45033
45032
|
const _ = Ri.from(k), N = Xo(g, (z) => z === "0px") ? Yl(_, g.length) : iw(_, g, v);
|
|
45034
45033
|
return p5(N);
|
|
45035
|
-
}, aw = (g, v) => g.length === 0 ? v :
|
|
45034
|
+
}, aw = (g, v) => g.length === 0 ? v : nn(g, (k, _) => Ri.from(_).fold(ce(0), je, je) + k, 0), lw = (g, v) => {
|
|
45036
45035
|
const k = Math.floor(g);
|
|
45037
45036
|
return {
|
|
45038
45037
|
value: k + v,
|
|
@@ -45041,7 +45040,7 @@ Required: ` + v.join(", "));
|
|
|
45041
45040
|
}, vv = (g, v) => Ri.from(g).fold(ce(g), (k) => k + v + "px", (k) => k + v + "%"), p5 = (g) => {
|
|
45042
45041
|
if (g.length === 0)
|
|
45043
45042
|
return g;
|
|
45044
|
-
const v =
|
|
45043
|
+
const v = nn(g, (_, N) => {
|
|
45045
45044
|
const z = Ri.from(N).fold(() => ({
|
|
45046
45045
|
value: N,
|
|
45047
45046
|
remainder: 0
|
|
@@ -45224,7 +45223,7 @@ Required: ` + v.join(", "));
|
|
|
45224
45223
|
}), Yt = () => J((zt, no) => {
|
|
45225
45224
|
const Bt = mi(sm(g), zt, no);
|
|
45226
45225
|
return qk(zt, Bt);
|
|
45227
|
-
}),
|
|
45226
|
+
}), tn = (zt, no) => no().each((Bt) => {
|
|
45228
45227
|
const Cn = et(Bt, (qs) => oi(qs));
|
|
45229
45228
|
J((qs, Gs) => {
|
|
45230
45229
|
const Un = uh(Rt.fromDom(g.getDoc())), pr = Yr(sm(g), Gs, Cn, Un);
|
|
@@ -45250,10 +45249,10 @@ Required: ` + v.join(", "));
|
|
|
45250
45249
|
}),
|
|
45251
45250
|
mceTableCopyCol: () => Yt().each((zt) => nC(zt)),
|
|
45252
45251
|
mceTableCopyRow: () => bn().each((zt) => bw(zt)),
|
|
45253
|
-
mceTablePasteColBefore: () =>
|
|
45254
|
-
mceTablePasteColAfter: () =>
|
|
45255
|
-
mceTablePasteRowBefore: () =>
|
|
45256
|
-
mceTablePasteRowAfter: () =>
|
|
45252
|
+
mceTablePasteColBefore: () => tn(v.pasteColsBefore, vw),
|
|
45253
|
+
mceTablePasteColAfter: () => tn(v.pasteColsAfter, vw),
|
|
45254
|
+
mceTablePasteRowBefore: () => tn(v.pasteRowsBefore, Op),
|
|
45255
|
+
mceTablePasteRowAfter: () => tn(v.pasteRowsAfter, Op),
|
|
45257
45256
|
mceTableDelete: _,
|
|
45258
45257
|
mceTableCellToggleClass: ue,
|
|
45259
45258
|
mceTableToggleClass: ie,
|
|
@@ -45577,11 +45576,11 @@ Required: ` + v.join(", "));
|
|
|
45577
45576
|
N.on((Zt) => {
|
|
45578
45577
|
_.clearBeforeUpdate(v), SC(nt.target, k).each((bn) => {
|
|
45579
45578
|
rf(Zt, bn, k).each((Yt) => {
|
|
45580
|
-
const
|
|
45581
|
-
if (
|
|
45582
|
-
const Mn =
|
|
45583
|
-
zt && no && _.selectRange(v,
|
|
45584
|
-
} else
|
|
45579
|
+
const tn = Yt.boxes.getOr([]);
|
|
45580
|
+
if (tn.length === 1) {
|
|
45581
|
+
const Mn = tn[0], zt = X1(Mn) === "false", no = Oa(nm(nt.target), Mn, Ht);
|
|
45582
|
+
zt && no && _.selectRange(v, tn, Mn, Mn);
|
|
45583
|
+
} else tn.length > 1 && (_.selectRange(v, tn, Yt.start, Yt.finish), g.selectContents(bn));
|
|
45585
45584
|
});
|
|
45586
45585
|
});
|
|
45587
45586
|
});
|
|
@@ -45795,7 +45794,7 @@ Required: ` + v.join(", "));
|
|
|
45795
45794
|
const N = _p(g), z = () => (_.clear(v), ve.none());
|
|
45796
45795
|
return {
|
|
45797
45796
|
keydown: (ue, Ie, nt, Zt, bn, Yt) => {
|
|
45798
|
-
const
|
|
45797
|
+
const tn = ue.raw, Mn = tn.which, zt = tn.shiftKey === !0;
|
|
45799
45798
|
return J1(v, _.selectedSelector).fold(() => (ha(Mn) && !zt && _.clearBeforeUpdate(v), ha(Mn) && zt && !z0(Ie, Zt) ? ve.none : dl(Mn) && zt ? it(Uv, N, v, k, fg, Zt, Ie, _.selectRange) : Cl(Mn) && zt ? it(Uv, N, v, k, wh, Zt, Ie, _.selectRange) : dl(Mn) ? it(hg, N, k, fg, Zt, Ie, wC) : Cl(Mn) ? it(hg, N, k, wh, Zt, Ie, vu) : ve.none), (Bt) => {
|
|
45800
45799
|
const Cn = (qs) => () => vo(qs, (Un) => M5(Un.rows, Un.cols, v, Bt, _)).fold(() => eb(v, _.firstSelectedSelector, _.lastSelectedSelector).map((Un) => {
|
|
45801
45800
|
const pr = dl(Mn) || Yt.isForward(Mn) ? bc.after : bc.before;
|
|
@@ -45811,8 +45810,8 @@ Required: ` + v.join(", "));
|
|
|
45811
45810
|
})();
|
|
45812
45811
|
},
|
|
45813
45812
|
keyup: (ue, Ie, nt, Zt, bn) => J1(v, _.selectedSelector).fold(() => {
|
|
45814
|
-
const Yt = ue.raw,
|
|
45815
|
-
return Yt.shiftKey === !0 && ha(
|
|
45813
|
+
const Yt = ue.raw, tn = Yt.which;
|
|
45814
|
+
return Yt.shiftKey === !0 && ha(tn) && z0(Ie, Zt) ? R5(v, k, Ie, nt, Zt, bn, _.selectRange) : ve.none();
|
|
45816
45815
|
}, ve.none)
|
|
45817
45816
|
};
|
|
45818
45817
|
}, Bw = (g, v, k, _) => {
|
|
@@ -45946,7 +45945,7 @@ Required: ` + v.join(", "));
|
|
|
45946
45945
|
}, Vw = We, gf = (g, v, k) => ey(g, v, Vw, k), ym = Zw, bg = (g) => !pg(Rt.fromDom(g.target), "ephox-snooker-resizer-bar"), Vb = (g, v) => {
|
|
45947
45946
|
const k = Fw(() => Rt.fromDom(g.getBody()), () => Ku(q1(g), ep(g)), sp.selectedSelector), _ = (ue, Ie, nt) => {
|
|
45948
45947
|
el(Ie).each((bn) => {
|
|
45949
|
-
const Yt = et(ue, (Bt) => Bt.dom),
|
|
45948
|
+
const Yt = et(ue, (Bt) => Bt.dom), tn = h0(g), Mn = ch(we, Rt.fromDom(g.getDoc()), tn), zt = sm(g), no = mf(bn, { selection: zt }, Mn).map((Bt) => ur(Bt, (Cn) => et(Cn, (qs) => qs.dom))).getOrUndefined();
|
|
45950
45949
|
Za(g, Yt, Ie.dom, nt.dom, no);
|
|
45951
45950
|
});
|
|
45952
45951
|
}, N = () => da(g), z = xu.byAttr(sp, _, N);
|
|
@@ -45957,7 +45956,7 @@ Required: ` + v.join(", "));
|
|
|
45957
45956
|
_l,
|
|
45958
45957
|
ka
|
|
45959
45958
|
]).fold(() => z.clear(nt), we);
|
|
45960
|
-
}, Yt = SM(Ie, nt, Zt, z),
|
|
45959
|
+
}, Yt = SM(Ie, nt, Zt, z), tn = Mw(Ie, nt, Zt, z), Mn = Bw(Ie, nt, Zt, z), zt = (rr) => rr.raw.shiftKey === !0;
|
|
45961
45960
|
g.on("TableSelectorChange", (rr) => Mn(rr.start, rr.finish));
|
|
45962
45961
|
const no = (rr, _l) => {
|
|
45963
45962
|
zt(rr) && (_l.kill && rr.kill(), _l.selection.each((ka) => {
|
|
@@ -45968,7 +45967,7 @@ Required: ` + v.join(", "));
|
|
|
45968
45967
|
const _l = ym(rr);
|
|
45969
45968
|
if (_l.raw.shiftKey && ha(_l.raw.which)) {
|
|
45970
45969
|
const ka = g.selection.getRng(), nd = Rt.fromDom(ka.startContainer), Ll = Rt.fromDom(ka.endContainer);
|
|
45971
|
-
|
|
45970
|
+
tn.keyup(_l, nd, ka.startOffset, Ll, ka.endOffset).each((Bd) => {
|
|
45972
45971
|
no(_l, Bd);
|
|
45973
45972
|
});
|
|
45974
45973
|
}
|
|
@@ -45976,7 +45975,7 @@ Required: ` + v.join(", "));
|
|
|
45976
45975
|
const _l = ym(rr);
|
|
45977
45976
|
v.hide();
|
|
45978
45977
|
const ka = g.selection.getRng(), nd = Rt.fromDom(ka.startContainer), Ll = Rt.fromDom(ka.endContainer), Bd = ne(Rd, Wv)(Rt.fromDom(g.selection.getStart()));
|
|
45979
|
-
|
|
45978
|
+
tn.keydown(_l, nd, ka.startOffset, Ll, ka.endOffset, Bd).each((ec) => {
|
|
45980
45979
|
no(_l, ec);
|
|
45981
45980
|
}), v.show();
|
|
45982
45981
|
}, qs = (rr) => rr.button === 0, Gs = (rr) => rr.buttons === void 0 ? !0 : (rr.buttons & 1) !== 0, Un = (rr) => {
|
|
@@ -46143,9 +46142,9 @@ Required: ` + v.join(", "));
|
|
|
46143
46142
|
start: _c([]),
|
|
46144
46143
|
stop: _c([])
|
|
46145
46144
|
}), z = K5(), J = () => {
|
|
46146
|
-
|
|
46145
|
+
tn.stop(), z.isOn() && (z.off(), N.trigger.stop());
|
|
46147
46146
|
}, ie = G5(J, 200), ue = (zt) => {
|
|
46148
|
-
|
|
46147
|
+
tn.start(zt), z.on(), N.trigger.start();
|
|
46149
46148
|
}, Ie = (zt) => {
|
|
46150
46149
|
ie.cancel(), z.onEvent(zt, v);
|
|
46151
46150
|
};
|
|
@@ -46158,16 +46157,16 @@ Required: ` + v.join(", "));
|
|
|
46158
46157
|
_ = !1;
|
|
46159
46158
|
}, bn = () => _, Yt = (zt) => (...no) => {
|
|
46160
46159
|
_ && zt.apply(null, no);
|
|
46161
|
-
},
|
|
46160
|
+
}, tn = v.sink(zw({
|
|
46162
46161
|
forceDrop: J,
|
|
46163
46162
|
drop: Yt(J),
|
|
46164
46163
|
move: Yt(Ie),
|
|
46165
46164
|
delayDrop: Yt(ie.throttle)
|
|
46166
46165
|
}), k), Mn = () => {
|
|
46167
|
-
|
|
46166
|
+
tn.destroy();
|
|
46168
46167
|
};
|
|
46169
46168
|
return {
|
|
46170
|
-
element:
|
|
46169
|
+
element: tn.element,
|
|
46171
46170
|
go: ue,
|
|
46172
46171
|
on: nt,
|
|
46173
46172
|
off: Zt,
|
|
@@ -46311,9 +46310,9 @@ Required: ` + v.join(", "));
|
|
|
46311
46310
|
return vm(J, jC), J;
|
|
46312
46311
|
});
|
|
46313
46312
|
}, eE = (g, v, k, _, N) => {
|
|
46314
|
-
const z = sl(k), J = v.isResizable, ie = _.length > 0 ? il.positions(_, k) : [], ue = ie.length > 0 ? xm(g, J) : [], Ie = at(ie, (Yt,
|
|
46313
|
+
const z = sl(k), J = v.isResizable, ie = _.length > 0 ? il.positions(_, k) : [], ue = ie.length > 0 ? xm(g, J) : [], Ie = at(ie, (Yt, tn) => It(ue, (Mn) => tn === Mn));
|
|
46315
46314
|
CM(v, Ie, z, Is(k));
|
|
46316
|
-
const nt = N.length > 0 ? a0.positions(N, k) : [], Zt = nt.length > 0 ? ry(g, J) : [], bn = at(nt, (Yt,
|
|
46315
|
+
const nt = N.length > 0 ? a0.positions(N, k) : [], Zt = nt.length > 0 ? ry(g, J) : [], bn = at(nt, (Yt, tn) => It(Zt, (Mn) => tn === Mn));
|
|
46317
46316
|
X0(v, bn, z, to(k));
|
|
46318
46317
|
}, Gw = (g, v) => {
|
|
46319
46318
|
if ($c(g), g.isResizable(v)) {
|
|
@@ -46334,47 +46333,47 @@ Required: ` + v.join(", "));
|
|
|
46334
46333
|
}, Kw = (g) => pg(g, jC), qC = (g) => pg(g, qw), GC = j0("resizer-bar-dragging"), tE = (g) => {
|
|
46335
46334
|
const v = WC(), k = oy(v, {});
|
|
46336
46335
|
let _ = ve.none();
|
|
46337
|
-
const N = (
|
|
46338
|
-
v.events.drag.bind((
|
|
46339
|
-
N(
|
|
46340
|
-
const zt = Vs(
|
|
46341
|
-
Io(
|
|
46342
|
-
}), N(
|
|
46343
|
-
const zt = Vs(
|
|
46344
|
-
Io(
|
|
46336
|
+
const N = (tn, Mn) => ve.from(vr(tn, Mn));
|
|
46337
|
+
v.events.drag.bind((tn) => {
|
|
46338
|
+
N(tn.target, "data-row").each((Mn) => {
|
|
46339
|
+
const zt = Vs(tn.target, "top");
|
|
46340
|
+
Io(tn.target, "top", zt + tn.yDelta + "px");
|
|
46341
|
+
}), N(tn.target, "data-column").each((Mn) => {
|
|
46342
|
+
const zt = Vs(tn.target, "left");
|
|
46343
|
+
Io(tn.target, "left", zt + tn.xDelta + "px");
|
|
46345
46344
|
});
|
|
46346
46345
|
});
|
|
46347
|
-
const z = (
|
|
46348
|
-
const zt = Vs(
|
|
46346
|
+
const z = (tn, Mn) => {
|
|
46347
|
+
const zt = Vs(tn, Mn), no = hi(tn, "data-initial-" + Mn, 0);
|
|
46349
46348
|
return zt - no;
|
|
46350
46349
|
};
|
|
46351
46350
|
k.events.stop.bind(() => {
|
|
46352
|
-
v.get().each((
|
|
46351
|
+
v.get().each((tn) => {
|
|
46353
46352
|
_.each((Mn) => {
|
|
46354
|
-
N(
|
|
46355
|
-
const no = z(
|
|
46356
|
-
Te(
|
|
46357
|
-
}), N(
|
|
46358
|
-
const no = z(
|
|
46359
|
-
Te(
|
|
46353
|
+
N(tn, "data-row").each((zt) => {
|
|
46354
|
+
const no = z(tn, "top");
|
|
46355
|
+
Te(tn, "data-initial-top"), Yt.trigger.adjustHeight(Mn, no, parseInt(zt, 10));
|
|
46356
|
+
}), N(tn, "data-column").each((zt) => {
|
|
46357
|
+
const no = z(tn, "left");
|
|
46358
|
+
Te(tn, "data-initial-left"), Yt.trigger.adjustWidth(Mn, no, parseInt(zt, 10));
|
|
46360
46359
|
}), Gw(g, Mn);
|
|
46361
46360
|
});
|
|
46362
46361
|
});
|
|
46363
46362
|
});
|
|
46364
|
-
const J = (
|
|
46365
|
-
Yt.trigger.startAdjust(), v.assign(
|
|
46366
|
-
}, ie = gf(g.parent(), "mousedown", (
|
|
46367
|
-
Kw(
|
|
46368
|
-
}), ue = (
|
|
46369
|
-
Ie(
|
|
46370
|
-
mo(
|
|
46363
|
+
const J = (tn, Mn) => {
|
|
46364
|
+
Yt.trigger.startAdjust(), v.assign(tn), Ws(tn, "data-initial-" + Mn, Vs(tn, Mn)), vm(tn, GC), Io(tn, "opacity", "0.2"), k.go(g.dragContainer());
|
|
46365
|
+
}, ie = gf(g.parent(), "mousedown", (tn) => {
|
|
46366
|
+
Kw(tn.target) && J(tn.target, "top"), qC(tn.target) && J(tn.target, "left");
|
|
46367
|
+
}), ue = (tn) => Ht(tn, g.view()), Ie = (tn) => yi(tn, "table", ue).filter(g0), nt = gf(g.view(), "mouseover", (tn) => {
|
|
46368
|
+
Ie(tn.target).fold(() => {
|
|
46369
|
+
mo(tn.target) && $c(g);
|
|
46371
46370
|
}, (Mn) => {
|
|
46372
46371
|
k.isActive() && (_ = ve.some(Mn), Gw(g, Mn));
|
|
46373
46372
|
});
|
|
46374
46373
|
}), Zt = () => {
|
|
46375
46374
|
ie.unbind(), nt.unbind(), k.destroy(), $c(g);
|
|
46376
|
-
}, bn = (
|
|
46377
|
-
Gw(g,
|
|
46375
|
+
}, bn = (tn) => {
|
|
46376
|
+
Gw(g, tn);
|
|
46378
46377
|
}, Yt = Pp({
|
|
46379
46378
|
adjustHeight: _c([
|
|
46380
46379
|
"table",
|
|
@@ -46547,7 +46546,7 @@ Required: ` + v.join(", "));
|
|
|
46547
46546
|
G0(Un) && bn(Gs, Un, Cn.width, Cn.height), Jm(Gs), Di(g, Gs.dom, yb);
|
|
46548
46547
|
}
|
|
46549
46548
|
});
|
|
46550
|
-
const
|
|
46549
|
+
const tn = () => {
|
|
46551
46550
|
k.on((Cn) => {
|
|
46552
46551
|
Cn.on(), Cn.showBars();
|
|
46553
46552
|
});
|
|
@@ -46557,11 +46556,11 @@ Required: ` + v.join(", "));
|
|
|
46557
46556
|
});
|
|
46558
46557
|
};
|
|
46559
46558
|
return g.on("DisabledStateChange", (Cn) => {
|
|
46560
|
-
Cn.state ? Mn() :
|
|
46559
|
+
Cn.state ? Mn() : tn();
|
|
46561
46560
|
}), g.on("SwitchMode", () => {
|
|
46562
|
-
g.mode.isReadOnly() ? Mn() :
|
|
46561
|
+
g.mode.isReadOnly() ? Mn() : tn();
|
|
46563
46562
|
}), g.on("dragstart dragend", (Cn) => {
|
|
46564
|
-
Cn.type === "dragstart" ? Mn() :
|
|
46563
|
+
Cn.type === "dragstart" ? Mn() : tn();
|
|
46565
46564
|
}), g.on("remove", () => {
|
|
46566
46565
|
Yt();
|
|
46567
46566
|
}), {
|
|
@@ -46748,7 +46747,7 @@ function uhe() {
|
|
|
46748
46747
|
$e(to) || ne.push(to);
|
|
46749
46748
|
}
|
|
46750
46749
|
return ne;
|
|
46751
|
-
},
|
|
46750
|
+
}, nn = (M, U, ne = we) => M.exists(($e) => ne($e, U)), Ye = (M, U, ne = we) => xt(M, U, ne).getOr(M.isNone() && U.isNone()), xt = (M, U, ne) => M.isSome() && U.isSome() ? je.some(ne(M.getOrDie(), U.getOrDie())) : je.none(), Y = 8, ps = 11, Oo = 1, xo = 3, Xo = (M, U) => {
|
|
46752
46751
|
const $e = (U || document).createElement("div");
|
|
46753
46752
|
if ($e.innerHTML = M, !$e.hasChildNodes() || $e.childNodes.length > 1) {
|
|
46754
46753
|
const Fe = "HTML does not have a single root node";
|
|
@@ -47617,7 +47616,7 @@ function uhe() {
|
|
|
47617
47616
|
}
|
|
47618
47617
|
}, mc = (M) => {
|
|
47619
47618
|
const U = parseInt(M.start, 10);
|
|
47620
|
-
return
|
|
47619
|
+
return nn(M.listStyleType, "upper-alpha") ? qh(U) : nn(M.listStyleType, "lower-alpha") ? qh(U).toLowerCase() : M.start;
|
|
47621
47620
|
}, Gh = (M) => {
|
|
47622
47621
|
const U = se(M);
|
|
47623
47622
|
!vi(U) || Zs(M, U) || M.windowManager.open({
|
|
@@ -47919,7 +47918,7 @@ function dhe() {
|
|
|
47919
47918
|
processor: "boolean",
|
|
47920
47919
|
default: !1
|
|
47921
47920
|
});
|
|
47922
|
-
}, It = Q("link_assume_external_targets"), qt = Q("link_context_toolbar"), et = Q("link_list"), Se = Q("link_default_target"), mt = Q("link_default_protocol"), Jt = Q("link_target_list"), at = Q("link_rel_list"),
|
|
47921
|
+
}, It = Q("link_assume_external_targets"), qt = Q("link_context_toolbar"), et = Q("link_list"), Se = Q("link_default_target"), mt = Q("link_default_protocol"), Jt = Q("link_target_list"), at = Q("link_rel_list"), nn = Q("link_class_list"), Ye = Q("link_title"), xt = Q("allow_unsafe_link_target"), Y = Q("link_quicklink"), ps = Object.keys, Oo = Object.hasOwnProperty, xo = (se, Ee) => {
|
|
47923
47922
|
const Ve = ps(se);
|
|
47924
47923
|
for (let wt = 0, Kt = Ve.length; wt < Kt; wt++) {
|
|
47925
47924
|
const Tn = Ve[wt], un = se[Tn];
|
|
@@ -48167,7 +48166,7 @@ function dhe() {
|
|
|
48167
48166
|
value: ""
|
|
48168
48167
|
}].concat(Ve)) : Je.none();
|
|
48169
48168
|
} }, De = { getClasses: (se) => {
|
|
48170
|
-
const Ee =
|
|
48169
|
+
const Ee = nn(se);
|
|
48171
48170
|
return Ee.length > 0 ? Ls.sanitize(Ee) : Je.none();
|
|
48172
48171
|
} }, Le = (se) => {
|
|
48173
48172
|
try {
|
|
@@ -49598,9 +49597,9 @@ function fhe() {
|
|
|
49598
49597
|
validate: !1,
|
|
49599
49598
|
allow_conditional_comments: !0,
|
|
49600
49599
|
...Te
|
|
49601
|
-
}, Ae),
|
|
49602
|
-
const ut = Te.attr("style"), bt = ut ?
|
|
49603
|
-
T(Ae.width) && (bt["max-width"] = Ye(Ae.width)), T(Ae.height) && (bt["max-height"] = Ye(Ae.height)), Te.attr("style",
|
|
49600
|
+
}, Ae), nn = Ct.DOM, Ye = (Ae) => /^[0-9.]+$/.test(Ae) ? Ae + "px" : Ae, xt = (Ae, Te) => {
|
|
49601
|
+
const ut = Te.attr("style"), bt = ut ? nn.parseStyle(ut) : {};
|
|
49602
|
+
T(Ae.width) && (bt["max-width"] = Ye(Ae.width)), T(Ae.height) && (bt["max-height"] = Ye(Ae.height)), Te.attr("style", nn.serializeStyle(bt));
|
|
49604
49603
|
}, Y = [
|
|
49605
49604
|
"source",
|
|
49606
49605
|
"altsource"
|
|
@@ -50294,8 +50293,8 @@ function mhe() {
|
|
|
50294
50293
|
const Dt = Object.keys, rn = Object.hasOwnProperty, dn = (A, I) => {
|
|
50295
50294
|
const ee = Dt(A);
|
|
50296
50295
|
for (let me = 0, Qe = ee.length; me < Qe; me++) {
|
|
50297
|
-
const At = ee[me],
|
|
50298
|
-
I(
|
|
50296
|
+
const At = ee[me], en = A[At];
|
|
50297
|
+
I(en, At);
|
|
50299
50298
|
}
|
|
50300
50299
|
}, We = (A) => (I, ee) => {
|
|
50301
50300
|
A[ee] = I;
|
|
@@ -50316,7 +50315,7 @@ function mhe() {
|
|
|
50316
50315
|
if (rn.call(A, I))
|
|
50317
50316
|
return !1;
|
|
50318
50317
|
return !0;
|
|
50319
|
-
}, Se = Array.prototype.indexOf, mt = Array.prototype.push, Jt = (A, I) => Se.call(A, I), at = (A, I) => Jt(A, I) > -1,
|
|
50318
|
+
}, Se = Array.prototype.indexOf, mt = Array.prototype.push, Jt = (A, I) => Se.call(A, I), at = (A, I) => Jt(A, I) > -1, nn = (A, I) => {
|
|
50320
50319
|
for (let ee = 0, me = A.length; ee < me; ee++) {
|
|
50321
50320
|
const Qe = A[ee];
|
|
50322
50321
|
if (I(Qe, ee))
|
|
@@ -50348,8 +50347,8 @@ function mhe() {
|
|
|
50348
50347
|
}, Oo = (A, I) => {
|
|
50349
50348
|
const ee = [], me = [];
|
|
50350
50349
|
for (let Qe = 0, At = A.length; Qe < At; Qe++) {
|
|
50351
|
-
const
|
|
50352
|
-
(I(
|
|
50350
|
+
const en = A[Qe];
|
|
50351
|
+
(I(en, Qe) ? ee : me).push(en);
|
|
50353
50352
|
}
|
|
50354
50353
|
return {
|
|
50355
50354
|
pass: ee,
|
|
@@ -50456,8 +50455,8 @@ function mhe() {
|
|
|
50456
50455
|
let me = A.dom;
|
|
50457
50456
|
const Qe = [];
|
|
50458
50457
|
for (; me.parentNode !== null && me.parentNode !== void 0; ) {
|
|
50459
|
-
const At = me.parentNode,
|
|
50460
|
-
if (Qe.push(
|
|
50458
|
+
const At = me.parentNode, en = No.fromDom(At);
|
|
50459
|
+
if (Qe.push(en), ee(en) === !0)
|
|
50461
50460
|
break;
|
|
50462
50461
|
me = At;
|
|
50463
50462
|
}
|
|
@@ -50598,8 +50597,8 @@ function mhe() {
|
|
|
50598
50597
|
return Tn(ee, me, "colgroup");
|
|
50599
50598
|
} else {
|
|
50600
50599
|
const me = xt(le(ee), (Qe) => {
|
|
50601
|
-
const At = pa(Qe, "rowspan", 1),
|
|
50602
|
-
return wt(Qe, At,
|
|
50600
|
+
const At = pa(Qe, "rowspan", 1), en = pa(Qe, "colspan", 1);
|
|
50601
|
+
return wt(Qe, At, en);
|
|
50603
50602
|
});
|
|
50604
50603
|
return Tn(ee, me, I(ee));
|
|
50605
50604
|
}
|
|
@@ -50624,13 +50623,13 @@ function mhe() {
|
|
|
50624
50623
|
return Y(A.cells, (me) => {
|
|
50625
50624
|
const Qe = me.colspan;
|
|
50626
50625
|
Ye(Qe, (At) => {
|
|
50627
|
-
const
|
|
50628
|
-
I[
|
|
50626
|
+
const en = ee + At;
|
|
50627
|
+
I[en] = co(me.element, Qe, en);
|
|
50629
50628
|
}), ee += Qe;
|
|
50630
50629
|
}), I;
|
|
50631
50630
|
}, Oa = (A) => {
|
|
50632
50631
|
const I = {}, ee = [], Qe = Ps(A).map((yl) => yl.element).bind(ot).bind(Zs).getOr({});
|
|
50633
|
-
let At = 0,
|
|
50632
|
+
let At = 0, en = 0, Rn = 0;
|
|
50634
50633
|
const {
|
|
50635
50634
|
pass: ko,
|
|
50636
50635
|
fail: Wo
|
|
@@ -50645,7 +50644,7 @@ function mhe() {
|
|
|
50645
50644
|
for (let ju = 0; ju < lh.colspan; ju++)
|
|
50646
50645
|
for (let Xu = 0; Xu < lh.rowspan; Xu++) {
|
|
50647
50646
|
const Gm = Rn + Xu, Xg = Bl + ju, qg = dc(Gm, Xg);
|
|
50648
|
-
I[qg] = Jf,
|
|
50647
|
+
I[qg] = Jf, en = Math.max(en, Xg + 1);
|
|
50649
50648
|
}
|
|
50650
50649
|
Wu.push(Jf);
|
|
50651
50650
|
}), At++, ee.push(Tn(yl.element, Wu, yl.section)), Rn++;
|
|
@@ -50661,7 +50660,7 @@ function mhe() {
|
|
|
50661
50660
|
columns: {}
|
|
50662
50661
|
}));
|
|
50663
50662
|
return {
|
|
50664
|
-
grid: Ve(At,
|
|
50663
|
+
grid: Ve(At, en),
|
|
50665
50664
|
access: I,
|
|
50666
50665
|
all: ee,
|
|
50667
50666
|
columns: Xs,
|
|
@@ -50686,8 +50685,8 @@ function mhe() {
|
|
|
50686
50685
|
const me = A.select("td,th", I);
|
|
50687
50686
|
let Qe;
|
|
50688
50687
|
for (let At = 0; At < me.length; At++) {
|
|
50689
|
-
const
|
|
50690
|
-
if (P(Qe) && (Qe =
|
|
50688
|
+
const en = A.getStyle(me[At], ee);
|
|
50689
|
+
if (P(Qe) && (Qe = en), Qe !== en)
|
|
50691
50690
|
return "";
|
|
50692
50691
|
}
|
|
50693
50692
|
return Qe;
|
|
@@ -50705,8 +50704,8 @@ function mhe() {
|
|
|
50705
50704
|
table: I
|
|
50706
50705
|
});
|
|
50707
50706
|
}, be = (A, I) => Kd(A).getOr(I), tt = (A, I, ee) => be(cc(A, I), ee), $t = (A, I, ee, me) => {
|
|
50708
|
-
const Qe = tt(A, `padding-${ee}`, 0), At = tt(A, `padding-${me}`, 0),
|
|
50709
|
-
return I - Qe - At -
|
|
50707
|
+
const Qe = tt(A, `padding-${ee}`, 0), At = tt(A, `padding-${me}`, 0), en = tt(A, `border-${ee}-width`, 0), Rn = tt(A, `border-${me}-width`, 0);
|
|
50708
|
+
return I - Qe - At - en - Rn;
|
|
50710
50709
|
}, Hn = (A, I) => {
|
|
50711
50710
|
const ee = A.dom, me = ee.getBoundingClientRect().width || ee.offsetWidth;
|
|
50712
50711
|
return $t(A, me, "left", "right");
|
|
@@ -50805,7 +50804,7 @@ function mhe() {
|
|
|
50805
50804
|
return ee ? te.some(I) : te.none();
|
|
50806
50805
|
}, Me = (A, I) => un(Math.min(A.row, I.row), Math.min(A.column, I.column), Math.max(A.row + A.rowspan - 1, I.row + I.rowspan - 1), Math.max(A.column + A.colspan - 1, I.column + I.colspan - 1)), nh = (A, I, ee) => {
|
|
50807
50806
|
const me = Nc.findItem(A, I, Lo), Qe = Nc.findItem(A, ee, Lo);
|
|
50808
|
-
return me.bind((At) => Qe.map((
|
|
50807
|
+
return me.bind((At) => Qe.map((en) => Me(At, en)));
|
|
50809
50808
|
}, Ol = (A, I, ee) => nh(A, I, ee).bind((me) => Qg(A, me)), F1 = (A, I, ee) => {
|
|
50810
50809
|
const me = Kp(A);
|
|
50811
50810
|
return Ol(me, I, ee);
|
|
@@ -50855,10 +50854,10 @@ function mhe() {
|
|
|
50855
50854
|
return {
|
|
50856
50855
|
get: ee,
|
|
50857
50856
|
getOption: me,
|
|
50858
|
-
set: (At,
|
|
50857
|
+
set: (At, en) => {
|
|
50859
50858
|
if (!A(At))
|
|
50860
50859
|
throw new Error("Can only set raw " + I + " value of a " + I + " node");
|
|
50861
|
-
At.dom.nodeValue =
|
|
50860
|
+
At.dom.nodeValue = en;
|
|
50862
50861
|
}
|
|
50863
50862
|
};
|
|
50864
50863
|
})(Qi, "text"), bd = (A) => pd.get(A), Uf = (A, I) => pd.set(A, I);
|
|
@@ -50900,7 +50899,7 @@ function mhe() {
|
|
|
50900
50899
|
"img",
|
|
50901
50900
|
"hr",
|
|
50902
50901
|
"input"
|
|
50903
|
-
], jt(Wo)) : !1, Qe = (Wo) => Ei(Wo) && Oi(Wo, "contenteditable") === "false", At = (Wo, Xs) => Wo.dom.compareDocumentPosition(Xs.dom),
|
|
50902
|
+
], jt(Wo)) : !1, Qe = (Wo) => Ei(Wo) && Oi(Wo, "contenteditable") === "false", At = (Wo, Xs) => Wo.dom.compareDocumentPosition(Xs.dom), en = (Wo, Xs) => {
|
|
50904
50903
|
const Hs = Ks(Wo);
|
|
50905
50904
|
Ho(Xs, Hs);
|
|
50906
50905
|
}, Rn = (Wo) => {
|
|
@@ -50938,7 +50937,7 @@ function mhe() {
|
|
|
50938
50937
|
get: Oi,
|
|
50939
50938
|
set: Fo,
|
|
50940
50939
|
remove: Vi,
|
|
50941
|
-
copyTo:
|
|
50940
|
+
copyTo: en
|
|
50942
50941
|
}),
|
|
50943
50942
|
insert: we({
|
|
50944
50943
|
before: gd,
|
|
@@ -50988,8 +50987,8 @@ function mhe() {
|
|
|
50988
50987
|
return me(A, I, Qe, At);
|
|
50989
50988
|
}, Od = (A, I, ee) => ee.length > 0 ? aa(A, I, ee, Ic) : te.none(), Ic = (A, I, ee, me) => {
|
|
50990
50989
|
const Qe = I(A, ee);
|
|
50991
|
-
return Xo(me, (At,
|
|
50992
|
-
const Rn = I(A,
|
|
50990
|
+
return Xo(me, (At, en) => {
|
|
50991
|
+
const Rn = I(A, en);
|
|
50993
50992
|
return nl(A, At, Rn);
|
|
50994
50993
|
}, Qe);
|
|
50995
50994
|
}, nl = (A, I, ee) => I.bind((me) => ee.filter(ce(A.eq, me))), sh = Od, Z1 = Wf(), Hm = (A, I) => sh(Z1, (ee, me) => A(me), I), su = (A) => To(A, "table"), Wh = (A, I) => {
|
|
@@ -51003,8 +51002,8 @@ function mhe() {
|
|
|
51003
51002
|
last: Qe,
|
|
51004
51003
|
table: At
|
|
51005
51004
|
})))), Um = (A, I) => Wh(A, I), e0 = (A, I, ee) => Jp(A, I, ee).bind((me) => {
|
|
51006
|
-
const Qe = (ko) => Lo(A, ko), At = "thead,tfoot,tbody,table",
|
|
51007
|
-
return
|
|
51005
|
+
const Qe = (ko) => Lo(A, ko), At = "thead,tfoot,tbody,table", en = To(me.first, At, Qe), Rn = To(me.last, At, Qe);
|
|
51006
|
+
return en.bind((ko) => Rn.bind((Wo) => Lo(ko, Wo) ? F1(me.table, me.first, me.last) : te.none()));
|
|
51008
51007
|
}), t0 = (A) => xt(A, No.fromDom), n0 = "data-mce-selected", ru = "data-mce-first-selected", Zg = "td[" + ru + "],th[" + ru + "]", Qc = "data-mce-last-selected", Gr = "td[" + Qc + "],th[" + Qc + "]", xi = {
|
|
51009
51008
|
selected: n0,
|
|
51010
51009
|
firstSelectedSelector: Zg,
|
|
@@ -51014,7 +51013,7 @@ function mhe() {
|
|
|
51014
51013
|
return Ot(Qe, A, ee);
|
|
51015
51014
|
}, Xh = jh("th,td,caption"), Ui = jh("th,td"), In = (A) => t0(A.model.table.getSelectedCells()), Vg = (A, I) => {
|
|
51016
51015
|
const ee = Ui(A), me = ee.bind((Qe) => ot(Qe)).map((Qe) => $n(Qe));
|
|
51017
|
-
return eu(ee, me, (Qe, At) => xo(At, (
|
|
51016
|
+
return eu(ee, me, (Qe, At) => xo(At, (en) => nn(t0(en.dom.cells), (Rn) => Oi(Rn, I) === "1" || Lo(Rn, Qe)))).getOr([]);
|
|
51018
51017
|
}, iu = [
|
|
51019
51018
|
{
|
|
51020
51019
|
text: "None",
|
|
@@ -51044,8 +51043,8 @@ function mhe() {
|
|
|
51044
51043
|
blue: ee,
|
|
51045
51044
|
alpha: me
|
|
51046
51045
|
}), jl = (A, I, ee, me) => {
|
|
51047
|
-
const Qe = parseInt(A, 10), At = parseInt(I, 10),
|
|
51048
|
-
return ol(Qe, At,
|
|
51046
|
+
const Qe = parseInt(A, 10), At = parseInt(I, 10), en = parseInt(ee, 10), Rn = parseFloat(me);
|
|
51047
|
+
return ol(Qe, At, en, Rn);
|
|
51049
51048
|
}, qi = (A) => {
|
|
51050
51049
|
const I = qh.exec(A);
|
|
51051
51050
|
if (I !== null)
|
|
@@ -51057,8 +51056,8 @@ function mhe() {
|
|
|
51057
51056
|
I.height = 1, I.width = 1;
|
|
51058
51057
|
const ee = I.getContext("2d");
|
|
51059
51058
|
ee.clearRect(0, 0, I.width, I.height), ee.fillStyle = "#FFFFFF", ee.fillStyle = A, ee.fillRect(0, 0, 1, 1);
|
|
51060
|
-
const me = ee.getImageData(0, 0, 1, 1).data, Qe = me[0], At = me[1],
|
|
51061
|
-
return ii(ol(Qe, At,
|
|
51059
|
+
const me = ee.getImageData(0, 0, 1, 1).data, Qe = me[0], At = me[1], en = me[2], Rn = me[3];
|
|
51060
|
+
return ii(ol(Qe, At, en, Rn));
|
|
51062
51061
|
}), mc = (A) => qi(A).map(ii).map((I) => "#" + I.value).getOr(A), Gh = (A) => {
|
|
51063
51062
|
let I = A;
|
|
51064
51063
|
return {
|
|
@@ -51080,11 +51079,11 @@ function mhe() {
|
|
|
51080
51079
|
}
|
|
51081
51080
|
};
|
|
51082
51081
|
}, Wm = () => Nr((A) => A.unbind()), fi = (A, I, ee) => (me) => {
|
|
51083
|
-
const Qe = Wm(), At = Fu(ee),
|
|
51082
|
+
const Qe = Wm(), At = Fu(ee), en = () => {
|
|
51084
51083
|
const Rn = In(A), ko = (Wo) => A.formatter.match(I, { value: ee }, Wo.dom, At);
|
|
51085
|
-
At ? (me.setActive(!
|
|
51084
|
+
At ? (me.setActive(!nn(Rn, ko)), Qe.set(A.formatter.formatChanged(I, (Wo) => me.setActive(!Wo), !0))) : (me.setActive(Fn(Rn, ko)), Qe.set(A.formatter.formatChanged(I, me.setActive, !1, { value: ee })));
|
|
51086
51085
|
};
|
|
51087
|
-
return A.initialized ?
|
|
51086
|
+
return A.initialized ? en() : A.on("init", en), Qe.clear;
|
|
51088
51087
|
}, au = (A) => qt(A, "menu"), lu = (A) => xt(A, (I) => {
|
|
51089
51088
|
const ee = I.text || I.title || "";
|
|
51090
51089
|
return au(I) ? {
|
|
@@ -51257,14 +51256,14 @@ function mhe() {
|
|
|
51257
51256
|
}, $e = { normal: (A, I) => {
|
|
51258
51257
|
const ee = A.dom;
|
|
51259
51258
|
return {
|
|
51260
|
-
setAttrib: (
|
|
51261
|
-
ee.setAttrib(I,
|
|
51259
|
+
setAttrib: (en, Rn) => {
|
|
51260
|
+
ee.setAttrib(I, en, Rn);
|
|
51262
51261
|
},
|
|
51263
|
-
setStyle: (
|
|
51264
|
-
ee.setStyle(I,
|
|
51262
|
+
setStyle: (en, Rn) => {
|
|
51263
|
+
ee.setStyle(I, en, Rn);
|
|
51265
51264
|
},
|
|
51266
|
-
setFormat: (
|
|
51267
|
-
Rn === "" ? A.formatter.remove(
|
|
51265
|
+
setFormat: (en, Rn) => {
|
|
51266
|
+
Rn === "" ? A.formatter.remove(en, { value: null }, I, !0) : A.formatter.apply(en, { value: Rn }, I);
|
|
51268
51267
|
}
|
|
51269
51268
|
};
|
|
51270
51269
|
} }, Fe = $i("th"), Vt = (A, I) => A && I ? "sectionCells" : A ? "section" : "cells", to = (A) => {
|
|
@@ -51288,7 +51287,7 @@ function mhe() {
|
|
|
51288
51287
|
let I = !1, ee;
|
|
51289
51288
|
return (...me) => (I || (I = !0, ee = A.apply(null, me)), ee);
|
|
51290
51289
|
}, Tr = (A, I) => ur(A.all, (ee) => ze(ee.cells, (me) => Lo(I, me.element))), Si = (A, I, ee) => {
|
|
51291
|
-
const me = xt(I.selection, (At) => q(At).bind((
|
|
51290
|
+
const me = xt(I.selection, (At) => q(At).bind((en) => Tr(A, en)).filter(ee)), Qe = pl(me);
|
|
51292
51291
|
return zl(Qe.length > 0, Qe);
|
|
51293
51292
|
}, sl = (A, I) => I.mergable, yd = (A, I) => I.unmergable, s0 = (A, I) => Si(A, I, it), Gf = (A, I) => Tr(A, I).exists((ee) => !ee.isLocked), zg = (A, I) => Fn(I, (ee) => Gf(A, ee)), rl = (A, I) => sl(A, I).filter((ee) => zg(A, ee.cells)), r0 = (A, I) => yd(A, I).filter((ee) => zg(A, ee));
|
|
51294
51293
|
({ ...{ generate: (A) => {
|
|
@@ -51301,17 +51300,17 @@ function mhe() {
|
|
|
51301
51300
|
const At = Dt(me);
|
|
51302
51301
|
if (At.length !== 1)
|
|
51303
51302
|
throw new Error("one and only one name per case");
|
|
51304
|
-
const
|
|
51305
|
-
if (ee[
|
|
51306
|
-
throw new Error("duplicate key detected:" +
|
|
51307
|
-
if (
|
|
51303
|
+
const en = At[0], Rn = me[en];
|
|
51304
|
+
if (ee[en] !== void 0)
|
|
51305
|
+
throw new Error("duplicate key detected:" + en);
|
|
51306
|
+
if (en === "cata")
|
|
51308
51307
|
throw new Error("cannot have a case named cata (sorry)");
|
|
51309
51308
|
if (!w(Rn))
|
|
51310
51309
|
throw new Error("case arguments must be an array");
|
|
51311
|
-
I.push(
|
|
51310
|
+
I.push(en), ee[en] = (...ko) => {
|
|
51312
51311
|
const Wo = ko.length;
|
|
51313
51312
|
if (Wo !== Rn.length)
|
|
51314
|
-
throw new Error("Wrong number of arguments to case " +
|
|
51313
|
+
throw new Error("Wrong number of arguments to case " + en + ". Expected " + Rn.length + " (" + Rn + "), got " + Wo);
|
|
51315
51314
|
return {
|
|
51316
51315
|
fold: (...Hs) => {
|
|
51317
51316
|
if (Hs.length !== A.length)
|
|
@@ -51326,12 +51325,12 @@ Actual: ` + Lr.join(","));
|
|
|
51326
51325
|
if (!Fn(I, (Wu) => at(Lr, Wu)))
|
|
51327
51326
|
throw new Error("Not all branches were specified when using match. Specified: " + Lr.join(", ") + `
|
|
51328
51327
|
Required: ` + I.join(", "));
|
|
51329
|
-
return Hs[
|
|
51328
|
+
return Hs[en].apply(null, ko);
|
|
51330
51329
|
},
|
|
51331
51330
|
log: (Hs) => {
|
|
51332
51331
|
console.log(Hs, {
|
|
51333
51332
|
constructors: I,
|
|
51334
|
-
constructor:
|
|
51333
|
+
constructor: en,
|
|
51335
51334
|
params: ko
|
|
51336
51335
|
});
|
|
51337
51336
|
}
|
|
@@ -51364,7 +51363,7 @@ Required: ` + I.join(", "));
|
|
|
51364
51363
|
const Pi = (A, I) => {
|
|
51365
51364
|
const ee = Nc.fromTable(A);
|
|
51366
51365
|
return s0(ee, I).bind((Qe) => {
|
|
51367
|
-
const At = Qe[Qe.length - 1],
|
|
51366
|
+
const At = Qe[Qe.length - 1], en = Qe[0].row, Rn = At.row + At.rowspan, ko = ee.all.slice(en, Rn);
|
|
51368
51367
|
return $o(ko);
|
|
51369
51368
|
}).getOr("");
|
|
51370
51369
|
}, Xm = (A) => Hl(A, "rgb") ? mc(A) : A, il = (A) => {
|
|
@@ -51379,9 +51378,9 @@ Required: ` + I.join(", "));
|
|
|
51379
51378
|
const I = A[0], ee = A.slice(1);
|
|
51380
51379
|
return Y(ee, (me) => {
|
|
51381
51380
|
Y(Dt(I), (Qe) => {
|
|
51382
|
-
dn(me, (At,
|
|
51381
|
+
dn(me, (At, en) => {
|
|
51383
51382
|
const Rn = I[Qe];
|
|
51384
|
-
Rn !== "" && Qe ===
|
|
51383
|
+
Rn !== "" && Qe === en && Rn !== At && (I[Qe] = Qe === "class" ? "mce-no-match" : "");
|
|
51385
51384
|
});
|
|
51386
51385
|
});
|
|
51387
51386
|
}), I;
|
|
@@ -51407,7 +51406,7 @@ Required: ` + I.join(", "));
|
|
|
51407
51406
|
class: "",
|
|
51408
51407
|
align: "",
|
|
51409
51408
|
border: ""
|
|
51410
|
-
},
|
|
51409
|
+
}, en = () => {
|
|
51411
51410
|
const Xs = ee["border-width"];
|
|
51412
51411
|
return hc(A) && Xs ? { border: Xs } : ro(me, "border").fold(() => ({}), (Hs) => ({ border: Hs }));
|
|
51413
51412
|
}, Rn = I ? Qe() : {}, ko = () => {
|
|
@@ -51422,7 +51421,7 @@ Required: ` + I.join(", "));
|
|
|
51422
51421
|
...ee,
|
|
51423
51422
|
...me,
|
|
51424
51423
|
...Rn,
|
|
51425
|
-
...
|
|
51424
|
+
...en(),
|
|
51426
51425
|
...ko()
|
|
51427
51426
|
};
|
|
51428
51427
|
}, l0 = (A) => ot(No.fromDom(A)).map((I) => {
|
|
@@ -51432,12 +51431,12 @@ Required: ` + I.join(", "));
|
|
|
51432
51431
|
const me = (Rn, ko) => {
|
|
51433
51432
|
const Wo = Wr(No.fromDom(ko), "border-width");
|
|
51434
51433
|
return hc(A) && Wo.isSome() ? Wo.getOr("") : Rn.getAttrib(ko, "border") || zi(A.dom, ko, "border-width") || zi(A.dom, ko, "border") || "";
|
|
51435
|
-
}, Qe = A.dom, At = hc(A) ? Qe.getStyle(I, "border-spacing") || Qe.getAttrib(I, "cellspacing") : Qe.getAttrib(I, "cellspacing") || Qe.getStyle(I, "border-spacing"),
|
|
51434
|
+
}, Qe = A.dom, At = hc(A) ? Qe.getStyle(I, "border-spacing") || Qe.getAttrib(I, "cellspacing") : Qe.getAttrib(I, "cellspacing") || Qe.getStyle(I, "border-spacing"), en = hc(A) ? zi(Qe, I, "padding") || Qe.getAttrib(I, "cellpadding") : Qe.getAttrib(I, "cellpadding") || zi(Qe, I, "padding");
|
|
51436
51435
|
return {
|
|
51437
51436
|
width: Qe.getStyle(I, "width") || Qe.getAttrib(I, "width"),
|
|
51438
51437
|
height: Qe.getStyle(I, "height") || Qe.getAttrib(I, "height"),
|
|
51439
51438
|
cellspacing: At ?? "",
|
|
51440
|
-
cellpadding:
|
|
51439
|
+
cellpadding: en ?? "",
|
|
51441
51440
|
border: me(Qe, I),
|
|
51442
51441
|
caption: !!Qe.select("caption", I)[0],
|
|
51443
51442
|
class: Qe.getAttrib(I, "class", ""),
|
|
@@ -51465,10 +51464,10 @@ Required: ` + I.join(", "));
|
|
|
51465
51464
|
...ee ? il(I) : {}
|
|
51466
51465
|
};
|
|
51467
51466
|
}, pn = (A, I) => {
|
|
51468
|
-
const ee = Nc.fromTable(A), me = Nc.justCells(ee), Qe = xo(me, (At) =>
|
|
51467
|
+
const ee = Nc.fromTable(A), me = Nc.justCells(ee), Qe = xo(me, (At) => nn(I, (en) => Lo(At.element, en)));
|
|
51469
51468
|
return xt(Qe, (At) => ({
|
|
51470
51469
|
element: At.element.dom,
|
|
51471
|
-
column: Nc.getColumnAt(ee, At.column).map((
|
|
51470
|
+
column: Nc.getColumnAt(ee, At.column).map((en) => en.element.dom)
|
|
51472
51471
|
}));
|
|
51473
51472
|
}, uu = (A, I, ee, me) => {
|
|
51474
51473
|
me("scope") && A.setAttrib("scope", ee.scope), me("class") && ee.class !== "mce-no-match" && A.setAttrib("class", ee.class), me("width") && I.setStyle("width", Dn(ee.width));
|
|
@@ -51477,8 +51476,8 @@ Required: ` + I.join(", "));
|
|
|
51477
51476
|
}, Yf = (A, I, ee, me) => {
|
|
51478
51477
|
const Qe = I.length === 1;
|
|
51479
51478
|
Y(I, (At) => {
|
|
51480
|
-
const
|
|
51481
|
-
uu(ko, Wo, ee, Rn), Vu(A) && z1(ko, ee, Rn), me("halign") && Ma(A,
|
|
51479
|
+
const en = At.element, Rn = Qe ? it : me, ko = $e.normal(A, en), Wo = At.column.map((Xs) => $e.normal(A, Xs)).getOr(ko);
|
|
51480
|
+
uu(ko, Wo, ee, Rn), Vu(A) && z1(ko, ee, Rn), me("halign") && Ma(A, en, ee.halign), me("valign") && nu(A, en, ee.valign);
|
|
51482
51481
|
});
|
|
51483
51482
|
}, du = (A, I) => {
|
|
51484
51483
|
A.execCommand("mceTableCellType", !1, {
|
|
@@ -51486,10 +51485,10 @@ Required: ` + I.join(", "));
|
|
|
51486
51485
|
no_events: !0
|
|
51487
51486
|
});
|
|
51488
51487
|
}, Hg = (A, I, ee, me) => {
|
|
51489
|
-
const Qe = Kn(me, (At,
|
|
51488
|
+
const Qe = Kn(me, (At, en) => ee[en] !== At);
|
|
51490
51489
|
Q(Qe) > 0 && I.length >= 1 && ot(I[0]).each((At) => {
|
|
51491
|
-
const
|
|
51492
|
-
(Rn || It(Qe, "scope")) && Yf(A,
|
|
51490
|
+
const en = pn(At, I), Rn = Q(Kn(Qe, (Wo, Xs) => Xs !== "scope" && Xs !== "celltype")) > 0, ko = It(Qe, "celltype");
|
|
51491
|
+
(Rn || It(Qe, "scope")) && Yf(A, en, me, ce(It, Qe)), ko && du(A, me), fe(A, At.dom, {
|
|
51493
51492
|
structure: ko,
|
|
51494
51493
|
style: Rn
|
|
51495
51494
|
});
|
|
@@ -51603,11 +51602,11 @@ Required: ` + I.join(", "));
|
|
|
51603
51602
|
ee("backgroundcolor") && A.setStyle("background-color", I.backgroundcolor), ee("bordercolor") && A.setStyle("border-color", I.bordercolor), ee("borderstyle") && A.setStyle("border-style", I.borderstyle);
|
|
51604
51603
|
}, Uu = (A, I, ee, me) => {
|
|
51605
51604
|
const At = I.length === 1 ? it : me;
|
|
51606
|
-
Y(I, (
|
|
51607
|
-
const Rn = Da(No.fromDom(
|
|
51605
|
+
Y(I, (en) => {
|
|
51606
|
+
const Rn = Da(No.fromDom(en), "td,th"), ko = $e.normal(A, en);
|
|
51608
51607
|
Wt(ko, ee, At), Vh(A) && Ml(ko, ee, At), me("height") && Y(Rn, (Wo) => {
|
|
51609
51608
|
A.dom.setStyle(Wo.dom, "height", null);
|
|
51610
|
-
}), me("align") && Ma(A,
|
|
51609
|
+
}), me("align") && Ma(A, en, ee.align);
|
|
51611
51610
|
});
|
|
51612
51611
|
}, Gi = (A, I) => {
|
|
51613
51612
|
A.execCommand("mceTableRowType", !1, {
|
|
@@ -51615,12 +51614,12 @@ Required: ` + I.join(", "));
|
|
|
51615
51614
|
no_events: !0
|
|
51616
51615
|
});
|
|
51617
51616
|
}, qm = (A, I, ee, me) => {
|
|
51618
|
-
const Qe = Kn(me, (At,
|
|
51617
|
+
const Qe = Kn(me, (At, en) => ee[en] !== At);
|
|
51619
51618
|
if (Q(Qe) > 0) {
|
|
51620
|
-
const At = It(Qe, "type"),
|
|
51621
|
-
|
|
51619
|
+
const At = It(Qe, "type"), en = At ? Q(Qe) > 1 : !0;
|
|
51620
|
+
en && Uu(A, I, me, ce(It, Qe)), At && Gi(A, me), ot(No.fromDom(I[0])).each((Rn) => fe(A, Rn.dom, {
|
|
51622
51621
|
structure: At,
|
|
51623
|
-
style:
|
|
51622
|
+
style: en
|
|
51624
51623
|
}));
|
|
51625
51624
|
}
|
|
51626
51625
|
}, Yi = (A, I, ee, me) => {
|
|
@@ -51632,7 +51631,7 @@ Required: ` + I.join(", "));
|
|
|
51632
51631
|
const I = Vg(Jn(A), xi.selected);
|
|
51633
51632
|
if (I.length === 0)
|
|
51634
51633
|
return;
|
|
51635
|
-
const ee = xt(I, (
|
|
51634
|
+
const ee = xt(I, (en) => wd(A, en.dom, Vh(A))), me = fo(ee), Qe = {
|
|
51636
51635
|
type: "tabpanel",
|
|
51637
51636
|
tabs: [
|
|
51638
51637
|
{
|
|
@@ -51668,7 +51667,7 @@ Required: ` + I.join(", "));
|
|
|
51668
51667
|
}
|
|
51669
51668
|
],
|
|
51670
51669
|
initialData: me,
|
|
51671
|
-
onSubmit: ce(Yi, A, xt(I, (
|
|
51670
|
+
onSubmit: ce(Yi, A, xt(I, (en) => en.dom), me)
|
|
51672
51671
|
});
|
|
51673
51672
|
}, c0 = (A, I, ee) => {
|
|
51674
51673
|
const me = ee ? [
|
|
@@ -51722,7 +51721,7 @@ Required: ` + I.join(", "));
|
|
|
51722
51721
|
label: "Show caption"
|
|
51723
51722
|
}]
|
|
51724
51723
|
}
|
|
51725
|
-
] : [],
|
|
51724
|
+
] : [], en = [{
|
|
51726
51725
|
type: "listbox",
|
|
51727
51726
|
name: "align",
|
|
51728
51727
|
label: "Alignment",
|
|
@@ -51750,7 +51749,7 @@ Required: ` + I.join(", "));
|
|
|
51750
51749
|
label: "Class",
|
|
51751
51750
|
items: I
|
|
51752
51751
|
}] : [];
|
|
51753
|
-
return me.concat(Qe).concat(At).concat(
|
|
51752
|
+
return me.concat(Qe).concat(At).concat(en).concat(Rn);
|
|
51754
51753
|
}, Pt = (A, I, ee, me) => {
|
|
51755
51754
|
if (I.tagName === "TD" || I.tagName === "TH")
|
|
51756
51755
|
O(ee) && F(me) ? A.setStyle(I, ee, me) : A.setStyles(I, ee);
|
|
@@ -51758,8 +51757,8 @@ Required: ` + I.join(", "));
|
|
|
51758
51757
|
for (let Qe = 0; Qe < I.children.length; Qe++)
|
|
51759
51758
|
Pt(A, I.children[Qe], ee, me);
|
|
51760
51759
|
}, Ds = (A, I, ee, me) => {
|
|
51761
|
-
const Qe = A.dom, At = {},
|
|
51762
|
-
if (!P(ee.class) && ee.class !== "mce-no-match" && (At.class = ee.class),
|
|
51760
|
+
const Qe = A.dom, At = {}, en = {}, Rn = hc(A), ko = zh(A), Wo = parseFloat(ee.border) === 0;
|
|
51761
|
+
if (!P(ee.class) && ee.class !== "mce-no-match" && (At.class = ee.class), en.height = Dn(ee.height), Rn ? en.width = Dn(ee.width) : Qe.getAttrib(I, "width") && (At.width = Ln(ee.width)), Rn ? (Wo ? (At.border = 0, en["border-width"] = "") : (en["border-width"] = Dn(ee.border), At.border = 1), en["border-spacing"] = Dn(ee.cellspacing)) : (At.border = Wo ? 0 : ee.border, At.cellpadding = ee.cellpadding, At.cellspacing = ee.cellspacing), Rn && I.children) {
|
|
51763
51762
|
const Xs = {};
|
|
51764
51763
|
if (Wo ? Xs["border-width"] = "" : me.border && (Xs["border-width"] = Dn(ee.border)), me.cellpadding && (Xs.padding = Dn(ee.cellpadding)), ko && me.bordercolor && (Xs["border-color"] = ee.bordercolor), !et(Xs))
|
|
51765
51764
|
for (let Hs = 0; Hs < I.children.length; Hs++)
|
|
@@ -51767,17 +51766,17 @@ Required: ` + I.join(", "));
|
|
|
51767
51766
|
}
|
|
51768
51767
|
if (ko) {
|
|
51769
51768
|
const Xs = ee;
|
|
51770
|
-
|
|
51769
|
+
en["background-color"] = Xs.backgroundcolor, en["border-color"] = Xs.bordercolor, en["border-style"] = Xs.borderstyle;
|
|
51771
51770
|
}
|
|
51772
51771
|
Qe.setStyles(I, {
|
|
51773
51772
|
...Zm(A),
|
|
51774
|
-
...
|
|
51773
|
+
...en
|
|
51775
51774
|
}), Qe.setAttribs(I, {
|
|
51776
51775
|
...Ig(A),
|
|
51777
51776
|
...At
|
|
51778
51777
|
});
|
|
51779
51778
|
}, u0 = (A, I, ee, me) => {
|
|
51780
|
-
const Qe = A.dom, At = me.getData(),
|
|
51779
|
+
const Qe = A.dom, At = me.getData(), en = Kn(At, (Rn, ko) => ee[ko] !== Rn);
|
|
51781
51780
|
me.close(), A.undoManager.transact(() => {
|
|
51782
51781
|
if (!I) {
|
|
51783
51782
|
const Rn = lc(At.cols).getOr(1), ko = lc(At.rows).getOr(1);
|
|
@@ -51786,18 +51785,18 @@ Required: ` + I.join(", "));
|
|
|
51786
51785
|
columns: Rn
|
|
51787
51786
|
}), I = Ui(Jn(A), Nn(A)).bind((Wo) => ot(Wo, Nn(A))).map((Wo) => Wo.dom).getOrDie();
|
|
51788
51787
|
}
|
|
51789
|
-
if (Q(
|
|
51788
|
+
if (Q(en) > 0) {
|
|
51790
51789
|
const Rn = {
|
|
51791
|
-
border: It(
|
|
51792
|
-
bordercolor: It(
|
|
51793
|
-
cellpadding: It(
|
|
51790
|
+
border: It(en, "border"),
|
|
51791
|
+
bordercolor: It(en, "bordercolor"),
|
|
51792
|
+
cellpadding: It(en, "cellpadding")
|
|
51794
51793
|
};
|
|
51795
51794
|
Ds(A, I, At, Rn);
|
|
51796
51795
|
const ko = Qe.select("caption", I)[0];
|
|
51797
51796
|
(ko && !At.caption || !ko && At.caption) && A.execCommand("mceTableToggleCaption"), Ma(A, I, At.align);
|
|
51798
51797
|
}
|
|
51799
|
-
if (A.focus(), A.addVisual(), Q(
|
|
51800
|
-
const Rn = It(
|
|
51798
|
+
if (A.focus(), A.addVisual(), Q(en) > 0) {
|
|
51799
|
+
const Rn = It(en, "caption"), ko = Rn ? Q(en) > 1 : !0;
|
|
51801
51800
|
fe(A, I, {
|
|
51802
51801
|
structure: Rn,
|
|
51803
51802
|
style: ko
|
|
@@ -51810,20 +51809,20 @@ Required: ` + I.join(", "));
|
|
|
51810
51809
|
I ? (Qe.cols = "1", Qe.rows = "1", zh(A) && (Qe.borderstyle = "", Qe.bordercolor = "", Qe.backgroundcolor = "")) : (me = ee.getParent(A.selection.getStart(), "table", A.getBody()), me ? Qe = cu(A, me, zh(A)) : zh(A) && (Qe.borderstyle = "", Qe.bordercolor = "", Qe.backgroundcolor = ""));
|
|
51811
51810
|
const At = sr(ou(A));
|
|
51812
51811
|
At.isSome() && Qe.class && (Qe.class = Qe.class.replace(/\s*mce\-item\-table\s*/g, ""));
|
|
51813
|
-
const
|
|
51812
|
+
const en = {
|
|
51814
51813
|
type: "grid",
|
|
51815
51814
|
columns: 2,
|
|
51816
51815
|
items: c0(A, At.getOr([]), I)
|
|
51817
51816
|
}, Rn = () => ({
|
|
51818
51817
|
type: "panel",
|
|
51819
|
-
items: [
|
|
51818
|
+
items: [en]
|
|
51820
51819
|
}), ko = () => ({
|
|
51821
51820
|
type: "tabpanel",
|
|
51822
51821
|
tabs: [
|
|
51823
51822
|
{
|
|
51824
51823
|
title: "General",
|
|
51825
51824
|
name: "general",
|
|
51826
|
-
items: [
|
|
51825
|
+
items: [en]
|
|
51827
51826
|
},
|
|
51828
51827
|
U(A, "table")
|
|
51829
51828
|
]
|
|
@@ -51877,7 +51876,7 @@ Required: ` + I.join(", "));
|
|
|
51877
51876
|
}), xd = (A) => {
|
|
51878
51877
|
const I = Gh(te.none()), ee = Gh([]);
|
|
51879
51878
|
let me = te.none();
|
|
51880
|
-
const Qe = $i("caption"), At = (ds) => me.forall((Sr) => !Sr[ds]),
|
|
51879
|
+
const Qe = $i("caption"), At = (ds) => me.forall((Sr) => !Sr[ds]), en = () => Xh(Jn(A), Nn(A)), Rn = () => Xh(lo(A), Nn(A)), ko = () => en().bind((ds) => Jo(eu(ot(ds), Rn().bind(ot), (Sr, la) => Lo(Sr, la) ? Qe(ds) ? te.some(gc(ds)) : te.some($s(In(A), Sr, ds)) : te.none()))), Wo = (ds) => ot(ds.element).map((la) => {
|
|
51881
51880
|
const pc = Nc.fromTable(la), kc = s0(pc, ds).getOr([]), Gg = _i(kc, (em, ch) => (ch.isLocked && (em.onAny = !0, ch.column === 0 ? em.onFirst = !0 : ch.column + ch.colspan >= pc.grid.columns && (em.onLast = !0)), em), {
|
|
51882
51881
|
onAny: !1,
|
|
51883
51882
|
onFirst: !1,
|
|
@@ -52059,11 +52058,11 @@ Required: ` + I.join(", "));
|
|
|
52059
52058
|
fetch: wr(A, At, "tableclass", (Rn) => A.execCommand("mceTableToggleClass", !1, Rn)),
|
|
52060
52059
|
onSetup: I.onSetupTable
|
|
52061
52060
|
});
|
|
52062
|
-
const
|
|
52063
|
-
|
|
52061
|
+
const en = ih(el(A));
|
|
52062
|
+
en.length !== 0 && A.queryCommandSupported("mceTableCellToggleClass") && A.ui.registry.addMenuButton("tablecellclass", {
|
|
52064
52063
|
icon: "table-cell-classes",
|
|
52065
52064
|
tooltip: "Cell styles",
|
|
52066
|
-
fetch: wr(A,
|
|
52065
|
+
fetch: wr(A, en, "tablecellclass", (Rn) => A.execCommand("mceTableCellToggleClass", !1, Rn)),
|
|
52067
52066
|
onSetup: I.onSetupCellOrRow
|
|
52068
52067
|
}), A.queryCommandSupported("mceTableApplyCellStyle") && (A.ui.registry.addMenuButton("tablecellvalign", {
|
|
52069
52068
|
icon: "vertical-align",
|
|
@@ -52137,7 +52136,7 @@ Required: ` + I.join(", "));
|
|
|
52137
52136
|
rows: Hs.numRows,
|
|
52138
52137
|
columns: Hs.numColumns
|
|
52139
52138
|
});
|
|
52140
|
-
},
|
|
52139
|
+
}, en = [
|
|
52141
52140
|
me("tableinsertrowbefore", {
|
|
52142
52141
|
text: "Insert row before",
|
|
52143
52142
|
icon: "table-insert-row-above",
|
|
@@ -52277,7 +52276,7 @@ Required: ` + I.join(", "));
|
|
|
52277
52276
|
icon: "table-delete-table",
|
|
52278
52277
|
onSetup: I.onSetupTable,
|
|
52279
52278
|
command: "mceTableDelete"
|
|
52280
|
-
}), at(
|
|
52279
|
+
}), at(en, !0) && A.ui.registry.addNestedMenuItem("row", {
|
|
52281
52280
|
type: "nestedmenuitem",
|
|
52282
52281
|
text: "Row",
|
|
52283
52282
|
getSubmenuItems: we("tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter")
|
|
@@ -52583,7 +52582,7 @@ function phe() {
|
|
|
52583
52582
|
getCharacterCountWithoutSpaces: mt(Ne, et)
|
|
52584
52583
|
},
|
|
52585
52584
|
getCount: Jt(Ne)
|
|
52586
|
-
}),
|
|
52585
|
+
}), nn = (Ne, ze) => {
|
|
52587
52586
|
Ne.windowManager.open({
|
|
52588
52587
|
title: "Word Count",
|
|
52589
52588
|
body: {
|
|
@@ -52622,7 +52621,7 @@ function phe() {
|
|
|
52622
52621
|
}]
|
|
52623
52622
|
});
|
|
52624
52623
|
}, Ye = (Ne, ze) => {
|
|
52625
|
-
Ne.addCommand("mceWordCount", () =>
|
|
52624
|
+
Ne.addCommand("mceWordCount", () => nn(Ne, ze));
|
|
52626
52625
|
}, xt = (Ne, ze) => {
|
|
52627
52626
|
let Ke = null;
|
|
52628
52627
|
return {
|
|
@@ -52838,7 +52837,7 @@ function bhe() {
|
|
|
52838
52837
|
...fe,
|
|
52839
52838
|
on: (tt) => fe.get().each(tt)
|
|
52840
52839
|
};
|
|
52841
|
-
},
|
|
52840
|
+
}, nn = (fe, be) => {
|
|
52842
52841
|
let tt = null;
|
|
52843
52842
|
return {
|
|
52844
52843
|
cancel: () => {
|
|
@@ -53279,7 +53278,7 @@ function bhe() {
|
|
|
53279
53278
|
width: fe.width + "px"
|
|
53280
53279
|
}));
|
|
53281
53280
|
});
|
|
53282
|
-
}, Io =
|
|
53281
|
+
}, Io = nn(() => {
|
|
53283
53282
|
Hn(), as();
|
|
53284
53283
|
}, 50);
|
|
53285
53284
|
return {
|
|
@@ -53525,7 +53524,7 @@ function vhe() {
|
|
|
53525
53524
|
}
|
|
53526
53525
|
P.singletonNone = new P(!1);
|
|
53527
53526
|
const R = Array.prototype.indexOf, F = (Se, mt) => R.call(Se, mt), H = (Se, mt) => F(Se, mt) > -1, K = (Se, mt, Jt) => {
|
|
53528
|
-
for (let at = 0,
|
|
53527
|
+
for (let at = 0, nn = Se.length; at < nn; at++) {
|
|
53529
53528
|
const Ye = Se[at];
|
|
53530
53529
|
if (mt(Ye, at))
|
|
53531
53530
|
return P.some(Ye);
|
|
@@ -53535,7 +53534,7 @@ function vhe() {
|
|
|
53535
53534
|
return P.none();
|
|
53536
53535
|
}, he = Object.keys, Be = (Se, mt) => {
|
|
53537
53536
|
const Jt = he(Se);
|
|
53538
|
-
for (let at = 0,
|
|
53537
|
+
for (let at = 0, nn = Jt.length; at < nn; at++) {
|
|
53539
53538
|
const Ye = Jt[at], xt = Se[Ye];
|
|
53540
53539
|
mt(xt, Ye);
|
|
53541
53540
|
}
|
|
@@ -53544,8 +53543,8 @@ function vhe() {
|
|
|
53544
53543
|
v: mt(Jt, at)
|
|
53545
53544
|
})), _e = (Se, mt) => {
|
|
53546
53545
|
const Jt = {};
|
|
53547
|
-
return Be(Se, (at,
|
|
53548
|
-
const Ye = mt(at,
|
|
53546
|
+
return Be(Se, (at, nn) => {
|
|
53547
|
+
const Ye = mt(at, nn);
|
|
53549
53548
|
Jt[Ye.k] = Ye.v;
|
|
53550
53549
|
}), Jt;
|
|
53551
53550
|
};
|
|
@@ -53568,7 +53567,7 @@ function vhe() {
|
|
|
53568
53567
|
Jt.setActive(Dt(Ye, xt, mt)), Jt.setEnabled(!We(Ye, Y));
|
|
53569
53568
|
};
|
|
53570
53569
|
return ve(Se, (Ye) => at(Se, Ye.parents));
|
|
53571
|
-
}, Q = (Se, mt, Jt, at,
|
|
53570
|
+
}, Q = (Se, mt, Jt, at, nn, Ye) => {
|
|
53572
53571
|
const xt = {
|
|
53573
53572
|
"lower-latin": "lower-alpha",
|
|
53574
53573
|
"upper-latin": "upper-alpha",
|
|
@@ -53577,12 +53576,12 @@ function vhe() {
|
|
|
53577
53576
|
}, Y = we(xt, (ps) => H(Ye, ps));
|
|
53578
53577
|
Se.ui.registry.addSplitButton(mt, {
|
|
53579
53578
|
tooltip: Jt,
|
|
53580
|
-
icon:
|
|
53579
|
+
icon: nn === "OL" ? "ordered-list" : "unordered-list",
|
|
53581
53580
|
presets: "listpreview",
|
|
53582
53581
|
columns: 3,
|
|
53583
53582
|
fetch: (ps) => {
|
|
53584
53583
|
const Oo = Je.map(Ye, (xo) => {
|
|
53585
|
-
const Xo =
|
|
53584
|
+
const Xo = nn === "OL" ? "num" : "bull", _i = xo === "disc" || xo === "decimal" ? "default" : xo, Ne = dt(xo), ze = Kn(xo);
|
|
53586
53585
|
return {
|
|
53587
53586
|
type: "choiceitem",
|
|
53588
53587
|
value: Ne,
|
|
@@ -53594,21 +53593,21 @@ function vhe() {
|
|
|
53594
53593
|
},
|
|
53595
53594
|
onAction: () => Se.execCommand(at),
|
|
53596
53595
|
onItemAction: (ps, Oo) => {
|
|
53597
|
-
o(Se,
|
|
53596
|
+
o(Se, nn, Oo);
|
|
53598
53597
|
},
|
|
53599
53598
|
select: (ps) => rn(Se).exists((xo) => ps === xo || xt[xo] === ps && !Y[ps]),
|
|
53600
|
-
onSetup: Ct(Se,
|
|
53599
|
+
onSetup: Ct(Se, nn)
|
|
53601
53600
|
});
|
|
53602
|
-
}, ro = (Se, mt, Jt, at,
|
|
53601
|
+
}, ro = (Se, mt, Jt, at, nn, Ye) => {
|
|
53603
53602
|
Se.ui.registry.addToggleButton(mt, {
|
|
53604
53603
|
active: !1,
|
|
53605
53604
|
tooltip: Jt,
|
|
53606
|
-
icon:
|
|
53607
|
-
onSetup: Ct(Se,
|
|
53608
|
-
onAction: () => Se.queryCommandState(at) || Ye === "" ? Se.execCommand(at) : o(Se,
|
|
53605
|
+
icon: nn === "OL" ? "ordered-list" : "unordered-list",
|
|
53606
|
+
onSetup: Ct(Se, nn),
|
|
53607
|
+
onAction: () => Se.queryCommandState(at) || Ye === "" ? Se.execCommand(at) : o(Se, nn, Ye)
|
|
53609
53608
|
});
|
|
53610
|
-
}, It = (Se, mt, Jt, at,
|
|
53611
|
-
Ye.length > 1 ? Q(Se, mt, Jt, at,
|
|
53609
|
+
}, It = (Se, mt, Jt, at, nn, Ye) => {
|
|
53610
|
+
Ye.length > 1 ? Q(Se, mt, Jt, at, nn, Ye) : ro(Se, mt, Jt, at, nn, dt(Ye[0]));
|
|
53612
53611
|
}, qt = (Se) => {
|
|
53613
53612
|
It(Se, "numlist", "Numbered list", "InsertOrderedList", "OL", m(Se)), It(Se, "bullist", "Bullet list", "InsertUnorderedList", "UL", O(Se));
|
|
53614
53613
|
};
|
|
@@ -53765,7 +53764,7 @@ function yhe() {
|
|
|
53765
53764
|
De.setAttribute(Le, Lt + "");
|
|
53766
53765
|
else
|
|
53767
53766
|
throw console.error("Invalid call to Attribute.set. Key ", Le, ":: Value ", Lt, ":: Element ", De), new Error("Attribute value was not simple");
|
|
53768
|
-
},
|
|
53767
|
+
}, nn = (De, Le, Lt) => {
|
|
53769
53768
|
at(De.dom, Le, Lt);
|
|
53770
53769
|
}, Ye = (De, Le) => {
|
|
53771
53770
|
const Ht = (Le || document).createElement("div");
|
|
@@ -53925,7 +53924,7 @@ function yhe() {
|
|
|
53925
53924
|
rn(De, (Lt, Ht) => {
|
|
53926
53925
|
rn(Lt, (gn) => {
|
|
53927
53926
|
const Nn = xo.fromDom(Le.cloneNode(!1));
|
|
53928
|
-
|
|
53927
|
+
nn(Nn, "data-mce-index", Ht);
|
|
53929
53928
|
const Ln = gn.element.dom;
|
|
53930
53929
|
if (Ln.length === gn.finish && gn.start === 0)
|
|
53931
53930
|
yn(gn.element, Nn);
|
|
@@ -54411,42 +54410,42 @@ var nne = {}, one;
|
|
|
54411
54410
|
function xhe() {
|
|
54412
54411
|
return one || (one = 1, function() {
|
|
54413
54412
|
var u = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
54414
|
-
const o = () => /(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)[A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?/g, i = (at) => (
|
|
54415
|
-
const
|
|
54416
|
-
|
|
54413
|
+
const o = () => /(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)[A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?/g, i = (at) => (nn) => nn.options.get(at), c = (at) => {
|
|
54414
|
+
const nn = at.options.register;
|
|
54415
|
+
nn("autolink_pattern", {
|
|
54417
54416
|
processor: "regexp",
|
|
54418
54417
|
default: new RegExp("^" + o().source + "$", "i")
|
|
54419
|
-
}),
|
|
54418
|
+
}), nn("link_default_target", { processor: "string" }), nn("link_default_protocol", {
|
|
54420
54419
|
processor: "string",
|
|
54421
54420
|
default: "https"
|
|
54422
54421
|
});
|
|
54423
|
-
}, h = i("autolink_pattern"), m = i("link_default_target"), O = i("link_default_protocol"), w = i("allow_unsafe_link_target"), T = (at,
|
|
54422
|
+
}, h = i("autolink_pattern"), m = i("link_default_target"), O = i("link_default_protocol"), w = i("allow_unsafe_link_target"), T = (at, nn, Ye) => {
|
|
54424
54423
|
var xt;
|
|
54425
|
-
return Ye(at,
|
|
54424
|
+
return Ye(at, nn.prototype) ? !0 : ((xt = at.constructor) === null || xt === void 0 ? void 0 : xt.name) === nn.name;
|
|
54426
54425
|
}, P = (at) => {
|
|
54427
|
-
const
|
|
54428
|
-
return at === null ? "null" :
|
|
54429
|
-
}, R = (at) => (
|
|
54430
|
-
const Y = at.indexOf(
|
|
54431
|
-
return Y !== -1 ? K(xt) ? !0 : Y +
|
|
54432
|
-
}, Xt = (at,
|
|
54426
|
+
const nn = typeof at;
|
|
54427
|
+
return at === null ? "null" : nn === "object" && Array.isArray(at) ? "array" : nn === "object" && T(at, String, (Ye, xt) => xt.isPrototypeOf(Ye)) ? "string" : nn;
|
|
54428
|
+
}, R = (at) => (nn) => P(nn) === at, F = (at) => (nn) => at === nn, H = R("string"), K = F(void 0), he = (at) => at == null, Be = (at) => !he(at), we = (at) => (nn) => !at(nn), _e = Object.hasOwnProperty, Je = (at, nn) => _e.call(at, nn), ce = (at, nn, Ye) => at.length >= nn.length && at.substr(Ye, Ye + nn.length) === nn, je = (at, nn, Ye = 0, xt) => {
|
|
54429
|
+
const Y = at.indexOf(nn, Ye);
|
|
54430
|
+
return Y !== -1 ? K(xt) ? !0 : Y + nn.length <= xt : !1;
|
|
54431
|
+
}, Xt = (at, nn) => ce(at, nn, 0), it = "\uFEFF", te = (at) => at === it, Dt = (at) => at.replace(/\uFEFF/g, "");
|
|
54433
54432
|
var rn = tinymce.util.Tools.resolve("tinymce.dom.TextSeeker");
|
|
54434
|
-
const dn = (at) => at.nodeType === 3, We = (at) => at.nodeType === 1, ve = (at) => /^[(\[{ \u00a0]$/.test(at), Kn = (at) => /^([A-Za-z][A-Za-z\d.+-]*:\/\/)|mailto:/.test(at), dt = (at) => /[?!,.;:]/.test(at), Ct = (at,
|
|
54435
|
-
for (let xt =
|
|
54433
|
+
const dn = (at) => at.nodeType === 3, We = (at) => at.nodeType === 1, ve = (at) => /^[(\[{ \u00a0]$/.test(at), Kn = (at) => /^([A-Za-z][A-Za-z\d.+-]*:\/\/)|mailto:/.test(at), dt = (at) => /[?!,.;:]/.test(at), Ct = (at, nn, Ye) => {
|
|
54434
|
+
for (let xt = nn - 1; xt >= 0; xt--) {
|
|
54436
54435
|
const Y = at.charAt(xt);
|
|
54437
54436
|
if (!te(Y) && Ye(Y))
|
|
54438
54437
|
return xt;
|
|
54439
54438
|
}
|
|
54440
54439
|
return -1;
|
|
54441
|
-
}, Q = (at,
|
|
54442
|
-
let Ye = at, xt =
|
|
54440
|
+
}, Q = (at, nn) => {
|
|
54441
|
+
let Ye = at, xt = nn;
|
|
54443
54442
|
for (; We(Ye) && Ye.childNodes[xt]; )
|
|
54444
54443
|
Ye = Ye.childNodes[xt], xt = dn(Ye) ? Ye.data.length : Ye.childNodes.length;
|
|
54445
54444
|
return {
|
|
54446
54445
|
container: Ye,
|
|
54447
54446
|
offset: xt
|
|
54448
54447
|
};
|
|
54449
|
-
}, ro = (at,
|
|
54448
|
+
}, ro = (at, nn) => {
|
|
54450
54449
|
var Ye;
|
|
54451
54450
|
const xt = at.schema.getVoidElements(), Y = h(at), { dom: ps, selection: Oo } = at;
|
|
54452
54451
|
if (ps.getParent(Oo.getNode(), "a[href]") !== null || at.mode.isReadOnly())
|
|
@@ -54454,7 +54453,7 @@ function xhe() {
|
|
|
54454
54453
|
const xo = Oo.getRng(), Xo = rn(ps, (Co) => ps.isBlock(Co) || Je(xt, Co.nodeName.toLowerCase()) || ps.getContentEditable(Co) === "false"), {
|
|
54455
54454
|
container: _i,
|
|
54456
54455
|
offset: Ne
|
|
54457
|
-
} = Q(xo.endContainer, xo.endOffset), ze = (Ye = ps.getParent(_i, ps.isBlock)) !== null && Ye !== void 0 ? Ye : ps.getRoot(), Ke = Xo.backwards(_i, Ne +
|
|
54456
|
+
} = Q(xo.endContainer, xo.endOffset), ze = (Ye = ps.getParent(_i, ps.isBlock)) !== null && Ye !== void 0 ? Ye : ps.getRoot(), Ke = Xo.backwards(_i, Ne + nn, (Co, ur) => {
|
|
54458
54457
|
const Ko = Co.data, Us = Ct(Ko, ur, we(ve));
|
|
54459
54458
|
return Us === -1 || dt(Ko[Us]) ? Us : Us + 1;
|
|
54460
54459
|
}, ze);
|
|
@@ -54476,8 +54475,8 @@ function xhe() {
|
|
|
54476
54475
|
};
|
|
54477
54476
|
} else
|
|
54478
54477
|
return null;
|
|
54479
|
-
}, It = (at,
|
|
54480
|
-
const { dom: Ye, selection: xt } = at, { rng: Y, url: ps } =
|
|
54478
|
+
}, It = (at, nn) => {
|
|
54479
|
+
const { dom: Ye, selection: xt } = at, { rng: Y, url: ps } = nn, Oo = xt.getBookmark();
|
|
54481
54480
|
xt.setRng(Y);
|
|
54482
54481
|
const xo = "createlink", Xo = {
|
|
54483
54482
|
command: xo,
|
|
@@ -54494,16 +54493,16 @@ function xhe() {
|
|
|
54494
54493
|
}
|
|
54495
54494
|
xt.moveToBookmark(Oo), at.nodeChanged();
|
|
54496
54495
|
}, qt = (at) => {
|
|
54497
|
-
const
|
|
54498
|
-
Be(
|
|
54496
|
+
const nn = ro(at, -1);
|
|
54497
|
+
Be(nn) && It(at, nn);
|
|
54499
54498
|
}, et = qt, Se = (at) => {
|
|
54500
|
-
const
|
|
54501
|
-
Be(
|
|
54499
|
+
const nn = ro(at, 0);
|
|
54500
|
+
Be(nn) && It(at, nn);
|
|
54502
54501
|
}, mt = (at) => {
|
|
54503
|
-
at.on("keydown", (
|
|
54504
|
-
|
|
54505
|
-
}), at.on("keyup", (
|
|
54506
|
-
|
|
54502
|
+
at.on("keydown", (nn) => {
|
|
54503
|
+
nn.keyCode === 13 && !nn.isDefaultPrevented() && Se(at);
|
|
54504
|
+
}), at.on("keyup", (nn) => {
|
|
54505
|
+
nn.keyCode === 32 ? qt(at) : (nn.keyCode === 48 && nn.shiftKey || nn.keyCode === 221) && et(at);
|
|
54507
54506
|
});
|
|
54508
54507
|
};
|
|
54509
54508
|
var Jt = () => {
|
|
@@ -55875,10 +55874,10 @@ function She() {
|
|
|
55875
55874
|
}, Jt = (Ne, ze, Ke = 0, ke) => {
|
|
55876
55875
|
const Fn = Ne.indexOf(ze, Ke);
|
|
55877
55876
|
return Fn !== -1 ? R(ke) ? !0 : Fn + ze.length <= ke : !1;
|
|
55878
|
-
}, at = String.fromCodePoint,
|
|
55877
|
+
}, at = String.fromCodePoint, nn = (Ne, ze, Ke) => Jt(at(Ne).toLowerCase(), Ke) ? !0 : Jt(ze.toLowerCase(), Ke) || Jt(ze.toLowerCase().replace(/\s+/g, ""), Ke), Ye = (Ne, ze) => {
|
|
55879
55878
|
const Ke = [], ke = ze.toLowerCase();
|
|
55880
55879
|
return ce(Ne.characters, (Fn) => {
|
|
55881
|
-
|
|
55880
|
+
nn(Fn[0], Fn[1], ke) && Ke.push(Fn);
|
|
55882
55881
|
}), Je(Ke, (Fn) => ({
|
|
55883
55882
|
text: Fn[1],
|
|
55884
55883
|
value: at(Fn[0]),
|
|
@@ -66368,10 +66367,10 @@ function nge(u) {
|
|
|
66368
66367
|
} else {
|
|
66369
66368
|
let Se = w.pos - dt;
|
|
66370
66369
|
w.next();
|
|
66371
|
-
let mt = [], Jt = [], at = We >= O ? We : -1,
|
|
66370
|
+
let mt = [], Jt = [], at = We >= O ? We : -1, nn = 0, Ye = Kn;
|
|
66372
66371
|
for (; w.pos > Se; )
|
|
66373
|
-
at >= 0 && w.id == at && w.size >= 0 ? (w.end <= Ye - h && (he(mt, Jt, ve,
|
|
66374
|
-
if (at >= 0 &&
|
|
66372
|
+
at >= 0 && w.id == at && w.size >= 0 ? (w.end <= Ye - h && (he(mt, Jt, ve, nn, w.end, Ye, at, Ct, Q), nn = mt.length, Ye = w.end), w.next()) : dn > 2500 ? H(ve, Se, mt, Jt) : F(ve, Se, mt, Jt, at, dn + 1);
|
|
66373
|
+
if (at >= 0 && nn > 0 && nn < mt.length && he(mt, Jt, ve, nn, ve, Ye, at, Ct, Q), mt.reverse(), Jt.reverse(), at > -1 && nn > 0) {
|
|
66375
66374
|
let xt = K(ro, Q);
|
|
66376
66375
|
It = EJ(ro, mt, Jt, 0, mt.length, 0, Kn - ve, xt, xt);
|
|
66377
66376
|
} else
|