@ebl-vue/editorjs 2.31.56 → 2.31.57
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/index.mjs +453 -449
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -60,8 +60,8 @@ Element.prototype.prepend || (Element.prototype.prepend = function(e) {
|
|
|
60
60
|
});
|
|
61
61
|
Element.prototype.scrollIntoViewIfNeeded || (Element.prototype.scrollIntoViewIfNeeded = function(n) {
|
|
62
62
|
n = arguments.length === 0 ? !0 : !!n;
|
|
63
|
-
const e = this.parentNode, t = window.getComputedStyle(e, null), o = parseInt(t.getPropertyValue("border-top-width")), i = parseInt(t.getPropertyValue("border-left-width")), s = this.offsetTop - e.offsetTop < e.scrollTop, r = this.offsetTop - e.offsetTop + this.clientHeight - o > e.scrollTop + e.clientHeight,
|
|
64
|
-
(s || r) && n && (e.scrollTop = this.offsetTop - e.offsetTop - e.clientHeight / 2 - o + this.clientHeight / 2), (
|
|
63
|
+
const e = this.parentNode, t = window.getComputedStyle(e, null), o = parseInt(t.getPropertyValue("border-top-width")), i = parseInt(t.getPropertyValue("border-left-width")), s = this.offsetTop - e.offsetTop < e.scrollTop, r = this.offsetTop - e.offsetTop + this.clientHeight - o > e.scrollTop + e.clientHeight, l = this.offsetLeft - e.offsetLeft < e.scrollLeft, a = this.offsetLeft - e.offsetLeft + this.clientWidth - i > e.scrollLeft + e.clientWidth, c = s && !r;
|
|
64
|
+
(s || r) && n && (e.scrollTop = this.offsetTop - e.offsetTop - e.clientHeight / 2 - o + this.clientHeight / 2), (l || a) && n && (e.scrollLeft = this.offsetLeft - e.offsetLeft - e.clientWidth / 2 - i + this.clientWidth / 2), (s || r || l || a) && !n && this.scrollIntoView(c);
|
|
65
65
|
});
|
|
66
66
|
window.requestIdleCallback = window.requestIdleCallback || function(n) {
|
|
67
67
|
const e = Date.now();
|
|
@@ -121,7 +121,7 @@ function Ie(n, e, t = "log", o, i = "color: inherit") {
|
|
|
121
121
|
break;
|
|
122
122
|
}
|
|
123
123
|
o && r.push(o);
|
|
124
|
-
const
|
|
124
|
+
const l = "Editor.js 2.31.57", a = `line-height: 1em;
|
|
125
125
|
color: #006FEA;
|
|
126
126
|
display: inline-block;
|
|
127
127
|
font-size: 11px;
|
|
@@ -131,7 +131,7 @@ function Ie(n, e, t = "log", o, i = "color: inherit") {
|
|
|
131
131
|
border-radius: 30px;
|
|
132
132
|
border: 1px solid rgba(56, 138, 229, 0.16);
|
|
133
133
|
margin: 4px 5px 4px 0;`;
|
|
134
|
-
n && (s ? (r.unshift(
|
|
134
|
+
n && (s ? (r.unshift(a, i), e = `%c${l}%c ${e}`) : e = `( ${l} )${e}`);
|
|
135
135
|
try {
|
|
136
136
|
s ? o ? console[t](`${e} %o`, ...r) : console[t](e, ...r) : console[t](e);
|
|
137
137
|
} catch {
|
|
@@ -142,26 +142,26 @@ function Un(n) {
|
|
|
142
142
|
Ie.logLevel = n;
|
|
143
143
|
}
|
|
144
144
|
const I = Ie.bind(window, !1), X = Ie.bind(window, !0);
|
|
145
|
-
function
|
|
145
|
+
function ae(n) {
|
|
146
146
|
return Object.prototype.toString.call(n).match(/\s([a-zA-Z]+)/)[1].toLowerCase();
|
|
147
147
|
}
|
|
148
148
|
function L(n) {
|
|
149
|
-
return
|
|
149
|
+
return ae(n) === "function" || ae(n) === "asyncfunction";
|
|
150
150
|
}
|
|
151
151
|
function F(n) {
|
|
152
|
-
return
|
|
152
|
+
return ae(n) === "object";
|
|
153
153
|
}
|
|
154
154
|
function te(n) {
|
|
155
|
-
return
|
|
155
|
+
return ae(n) === "string";
|
|
156
156
|
}
|
|
157
157
|
function Wn(n) {
|
|
158
|
-
return
|
|
158
|
+
return ae(n) === "boolean";
|
|
159
159
|
}
|
|
160
160
|
function mo(n) {
|
|
161
|
-
return
|
|
161
|
+
return ae(n) === "number";
|
|
162
162
|
}
|
|
163
163
|
function bo(n) {
|
|
164
|
-
return
|
|
164
|
+
return ae(n) === "undefined";
|
|
165
165
|
}
|
|
166
166
|
function V(n) {
|
|
167
167
|
return n ? Object.keys(n).length === 0 && n.constructor === Object : !0;
|
|
@@ -207,21 +207,21 @@ function vo(n, e, t) {
|
|
|
207
207
|
return (...i) => {
|
|
208
208
|
const s = this, r = () => {
|
|
209
209
|
o = null, t || n.apply(s, i);
|
|
210
|
-
},
|
|
211
|
-
window.clearTimeout(o), o = window.setTimeout(r, e),
|
|
210
|
+
}, l = t && !o;
|
|
211
|
+
window.clearTimeout(o), o = window.setTimeout(r, e), l && n.apply(s, i);
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
214
|
function dt(n, e, t = void 0) {
|
|
215
|
-
let o, i, s, r = null,
|
|
215
|
+
let o, i, s, r = null, l = 0;
|
|
216
216
|
t || (t = {});
|
|
217
|
-
const
|
|
218
|
-
|
|
217
|
+
const a = function() {
|
|
218
|
+
l = t.leading === !1 ? 0 : Date.now(), r = null, s = n.apply(o, i), r || (o = i = null);
|
|
219
219
|
};
|
|
220
220
|
return function() {
|
|
221
221
|
const c = Date.now();
|
|
222
|
-
!
|
|
223
|
-
const d = e - (c -
|
|
224
|
-
return o = this, i = arguments, d <= 0 || d > e ? (r && (clearTimeout(r), r = null),
|
|
222
|
+
!l && t.leading === !1 && (l = c);
|
|
223
|
+
const d = e - (c - l);
|
|
224
|
+
return o = this, i = arguments, d <= 0 || d > e ? (r && (clearTimeout(r), r = null), l = c, s = n.apply(o, i), r || (o = i = null)) : !r && t.trailing !== !1 && (r = setTimeout(a, d)), s;
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
227
|
function Vn() {
|
|
@@ -275,8 +275,8 @@ function me(n, e, t) {
|
|
|
275
275
|
return this[s] === void 0 && (this[s] = i.apply(this, ...r)), this[s];
|
|
276
276
|
}, o === "get" && t.set) {
|
|
277
277
|
const r = t.set;
|
|
278
|
-
t.set = function(
|
|
279
|
-
delete n[s], r.apply(this,
|
|
278
|
+
t.set = function(l) {
|
|
279
|
+
delete n[s], r.apply(this, l);
|
|
280
280
|
};
|
|
281
281
|
}
|
|
282
282
|
return t;
|
|
@@ -715,16 +715,16 @@ class h {
|
|
|
715
715
|
node: null,
|
|
716
716
|
offset: 0
|
|
717
717
|
};
|
|
718
|
-
const
|
|
719
|
-
if (
|
|
718
|
+
const l = i.textContent;
|
|
719
|
+
if (l === null || l.length === 0)
|
|
720
720
|
return {
|
|
721
721
|
node: null,
|
|
722
722
|
offset: 0
|
|
723
723
|
};
|
|
724
|
-
const
|
|
724
|
+
const a = Math.min(t - o, l.length);
|
|
725
725
|
return {
|
|
726
726
|
node: i,
|
|
727
|
-
offset:
|
|
727
|
+
offset: a
|
|
728
728
|
};
|
|
729
729
|
}
|
|
730
730
|
}
|
|
@@ -732,8 +732,8 @@ function ei(n) {
|
|
|
732
732
|
return !/[^\t\n\r ]/.test(n);
|
|
733
733
|
}
|
|
734
734
|
function ti(n) {
|
|
735
|
-
const e = window.getComputedStyle(n), t = parseFloat(e.fontSize), o = parseFloat(e.lineHeight) || t * 1.2, i = parseFloat(e.paddingTop), s = parseFloat(e.borderTopWidth), r = parseFloat(e.marginTop),
|
|
736
|
-
return r + s + i +
|
|
735
|
+
const e = window.getComputedStyle(n), t = parseFloat(e.fontSize), o = parseFloat(e.lineHeight) || t * 1.2, i = parseFloat(e.paddingTop), s = parseFloat(e.borderTopWidth), r = parseFloat(e.marginTop), l = t * 0.8, a = (o - t) / 2;
|
|
736
|
+
return r + s + i + a + l;
|
|
737
737
|
}
|
|
738
738
|
function Lo(n) {
|
|
739
739
|
n.dataset.empty = h.isEmpty(n) ? "true" : "false";
|
|
@@ -1055,9 +1055,9 @@ class Me {
|
|
|
1055
1055
|
*/
|
|
1056
1056
|
off(e, t, o, i) {
|
|
1057
1057
|
const s = this.findAll(e, t, o);
|
|
1058
|
-
s.forEach((r,
|
|
1059
|
-
const
|
|
1060
|
-
|
|
1058
|
+
s.forEach((r, l) => {
|
|
1059
|
+
const a = this.allListeners.indexOf(s[l]);
|
|
1060
|
+
a > -1 && (this.allListeners.splice(a, 1), r.element.removeEventListener(r.eventType, r.handler, r.options));
|
|
1061
1061
|
});
|
|
1062
1062
|
}
|
|
1063
1063
|
/**
|
|
@@ -1473,10 +1473,10 @@ class v {
|
|
|
1473
1473
|
i.anchorNode,
|
|
1474
1474
|
/** the Node in which the selection ends */
|
|
1475
1475
|
i.focusNode
|
|
1476
|
-
].forEach((
|
|
1477
|
-
let
|
|
1478
|
-
for (;
|
|
1479
|
-
|
|
1476
|
+
].forEach((l) => {
|
|
1477
|
+
let a = o;
|
|
1478
|
+
for (; a > 0 && l.parentNode && !(l.tagName === e && (s = l, t && l.classList && !l.classList.contains(t) && (s = null), s)); )
|
|
1479
|
+
l = l.parentNode, a--;
|
|
1480
1480
|
}), s);
|
|
1481
1481
|
}
|
|
1482
1482
|
/**
|
|
@@ -1493,7 +1493,7 @@ class v {
|
|
|
1493
1493
|
}
|
|
1494
1494
|
function ri(n, e) {
|
|
1495
1495
|
const { type: t, target: o, addedNodes: i, removedNodes: s } = n;
|
|
1496
|
-
return n.type === "attributes" && n.attributeName === "data-empty" ? !1 : !!(e.contains(o) || t === "childList" && (Array.from(i).some((
|
|
1496
|
+
return n.type === "attributes" && n.attributeName === "data-empty" ? !1 : !!(e.contains(o) || t === "childList" && (Array.from(i).some((a) => a === e) || Array.from(s).some((a) => a === e)));
|
|
1497
1497
|
}
|
|
1498
1498
|
const ft = "redactor dom changed", Ro = "block changed", Do = "fake cursor is about to be toggled", Fo = "fake cursor have been set", Te = "editor mobile layout toggled";
|
|
1499
1499
|
function gt(n, e) {
|
|
@@ -1508,16 +1508,16 @@ function He(n, e) {
|
|
|
1508
1508
|
function jo(n, e) {
|
|
1509
1509
|
return Object.entries(n).some(([t, o]) => e[t] && Qn(e[t], o));
|
|
1510
1510
|
}
|
|
1511
|
-
async function
|
|
1511
|
+
async function li(n, e) {
|
|
1512
1512
|
const o = (await n.save()).data, i = e.find((s) => s.name === n.name);
|
|
1513
1513
|
return i !== void 0 && !gt(i, "export") ? [] : e.reduce((s, r) => {
|
|
1514
1514
|
if (!gt(r, "import") || r.toolbox === void 0)
|
|
1515
1515
|
return s;
|
|
1516
|
-
const
|
|
1517
|
-
if (V(
|
|
1516
|
+
const l = r.toolbox.filter((a) => {
|
|
1517
|
+
if (V(a) || a.icon === void 0)
|
|
1518
1518
|
return !1;
|
|
1519
|
-
if (
|
|
1520
|
-
if (jo(
|
|
1519
|
+
if (a.data !== void 0) {
|
|
1520
|
+
if (jo(a.data, o))
|
|
1521
1521
|
return !1;
|
|
1522
1522
|
} else if (r.name === n.name)
|
|
1523
1523
|
return !1;
|
|
@@ -1525,14 +1525,14 @@ async function ai(n, e) {
|
|
|
1525
1525
|
});
|
|
1526
1526
|
return s.push({
|
|
1527
1527
|
...r,
|
|
1528
|
-
toolbox:
|
|
1528
|
+
toolbox: l
|
|
1529
1529
|
}), s;
|
|
1530
1530
|
}, []);
|
|
1531
1531
|
}
|
|
1532
1532
|
function ko(n, e) {
|
|
1533
1533
|
return n.mergeable ? n.name === e.name ? !0 : He(e, "export") && He(n, "import") : !1;
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1535
|
+
function ai(n, e) {
|
|
1536
1536
|
const t = e == null ? void 0 : e.export;
|
|
1537
1537
|
return L(t) ? t(n) : te(t) ? n[t] : (t !== void 0 && I("Conversion «export» property must be a string or function. String means key of saved data object to export. Function should export processed string to export."), "");
|
|
1538
1538
|
}
|
|
@@ -1562,11 +1562,11 @@ class R extends _e {
|
|
|
1562
1562
|
}, r) {
|
|
1563
1563
|
super(), this.cachedInputs = [], this.toolRenderedElement = null, this.tunesInstances = /* @__PURE__ */ new Map(), this.defaultTunesInstances = /* @__PURE__ */ new Map(), this.unavailableTunesData = {}, this.inputIndex = 0, this.editorEventBus = null, this.handleFocus = () => {
|
|
1564
1564
|
this.dropInputsCache(), this.updateCurrentInput();
|
|
1565
|
-
}, this.didMutated = (
|
|
1566
|
-
const
|
|
1567
|
-
!
|
|
1565
|
+
}, this.didMutated = (l = void 0) => {
|
|
1566
|
+
const a = l === void 0, c = l instanceof InputEvent;
|
|
1567
|
+
!a && !c && this.detectToolRootChange(l);
|
|
1568
1568
|
let d;
|
|
1569
|
-
|
|
1569
|
+
a || c ? d = !0 : d = !(l.length > 0 && l.every((f) => {
|
|
1570
1570
|
const { addedNodes: g, removedNodes: p, target: b } = f;
|
|
1571
1571
|
return [
|
|
1572
1572
|
...Array.from(g),
|
|
@@ -1803,8 +1803,8 @@ class R extends _e {
|
|
|
1803
1803
|
if (L(r.save))
|
|
1804
1804
|
try {
|
|
1805
1805
|
t[s] = r.save();
|
|
1806
|
-
} catch (
|
|
1807
|
-
I(`Tune ${r.constructor.name} save method throws an Error %o`, "warn",
|
|
1806
|
+
} catch (l) {
|
|
1807
|
+
I(`Tune ${r.constructor.name} save method throws an Error %o`, "warn", l);
|
|
1808
1808
|
}
|
|
1809
1809
|
});
|
|
1810
1810
|
const o = window.performance.now();
|
|
@@ -1888,7 +1888,7 @@ class R extends _e {
|
|
|
1888
1888
|
*/
|
|
1889
1889
|
async exportDataAsString() {
|
|
1890
1890
|
const e = await this.data;
|
|
1891
|
-
return
|
|
1891
|
+
return ai(e, this.tool.conversionConfig);
|
|
1892
1892
|
}
|
|
1893
1893
|
/**
|
|
1894
1894
|
* Make default Block wrappers and put Tool`s content there
|
|
@@ -1983,16 +1983,16 @@ class R extends _e {
|
|
|
1983
1983
|
}
|
|
1984
1984
|
class ci extends E {
|
|
1985
1985
|
constructor() {
|
|
1986
|
-
super(...arguments), this.insert = (e = this.config.defaultBlock, t = {}, o = {}, i, s, r,
|
|
1987
|
-
const
|
|
1988
|
-
id:
|
|
1986
|
+
super(...arguments), this.insert = (e = this.config.defaultBlock, t = {}, o = {}, i, s, r, l) => {
|
|
1987
|
+
const a = this.Editor.BlockManager.insert({
|
|
1988
|
+
id: l,
|
|
1989
1989
|
tool: e,
|
|
1990
1990
|
data: t,
|
|
1991
1991
|
index: i,
|
|
1992
1992
|
needToFocus: s,
|
|
1993
1993
|
replace: r
|
|
1994
1994
|
});
|
|
1995
|
-
return new Q(
|
|
1995
|
+
return new Q(a);
|
|
1996
1996
|
}, this.composeBlockData = async (e) => {
|
|
1997
1997
|
const t = this.Editor.Tools.blockTools.get(e);
|
|
1998
1998
|
return new R({
|
|
@@ -2013,10 +2013,10 @@ class ci extends E {
|
|
|
2013
2013
|
const { BlockManager: i, Tools: s } = this.Editor, r = i.getBlockById(e);
|
|
2014
2014
|
if (!r)
|
|
2015
2015
|
throw new Error(`Block with id "${e}" not found`);
|
|
2016
|
-
const
|
|
2017
|
-
if (!
|
|
2016
|
+
const l = s.blockTools.get(r.name), a = s.blockTools.get(t);
|
|
2017
|
+
if (!a)
|
|
2018
2018
|
throw new Error(`Block Tool with type "${t}" not found`);
|
|
2019
|
-
const c = ((u =
|
|
2019
|
+
const c = ((u = l == null ? void 0 : l.conversionConfig) == null ? void 0 : u.export) !== void 0, d = ((f = a.conversionConfig) == null ? void 0 : f.import) !== void 0;
|
|
2020
2020
|
if (c && d) {
|
|
2021
2021
|
const g = await i.convert(r, t, o);
|
|
2022
2022
|
return new Q(g);
|
|
@@ -2454,20 +2454,20 @@ var Ho = { exports: {} };
|
|
|
2454
2454
|
var r = o[s] = { i: s, l: !1, exports: {} };
|
|
2455
2455
|
return t[s].call(r.exports, r, r.exports, i), r.l = !0, r.exports;
|
|
2456
2456
|
}
|
|
2457
|
-
return i.m = t, i.c = o, i.d = function(s, r,
|
|
2458
|
-
i.o(s, r) || Object.defineProperty(s, r, { enumerable: !0, get:
|
|
2457
|
+
return i.m = t, i.c = o, i.d = function(s, r, l) {
|
|
2458
|
+
i.o(s, r) || Object.defineProperty(s, r, { enumerable: !0, get: l });
|
|
2459
2459
|
}, i.r = function(s) {
|
|
2460
2460
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(s, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(s, "__esModule", { value: !0 });
|
|
2461
2461
|
}, i.t = function(s, r) {
|
|
2462
2462
|
if (1 & r && (s = i(s)), 8 & r || 4 & r && typeof s == "object" && s && s.__esModule)
|
|
2463
2463
|
return s;
|
|
2464
|
-
var
|
|
2465
|
-
if (i.r(
|
|
2466
|
-
for (var
|
|
2467
|
-
i.d(
|
|
2464
|
+
var l = /* @__PURE__ */ Object.create(null);
|
|
2465
|
+
if (i.r(l), Object.defineProperty(l, "default", { enumerable: !0, value: s }), 2 & r && typeof s != "string")
|
|
2466
|
+
for (var a in s)
|
|
2467
|
+
i.d(l, a, (function(c) {
|
|
2468
2468
|
return s[c];
|
|
2469
|
-
}).bind(null,
|
|
2470
|
-
return
|
|
2469
|
+
}).bind(null, a));
|
|
2470
|
+
return l;
|
|
2471
2471
|
}, i.n = function(s) {
|
|
2472
2472
|
var r = s && s.__esModule ? function() {
|
|
2473
2473
|
return s.default;
|
|
@@ -2484,28 +2484,28 @@ var Ho = { exports: {} };
|
|
|
2484
2484
|
* https://github.com/codex-team/js-notifier
|
|
2485
2485
|
*/
|
|
2486
2486
|
t.exports = function() {
|
|
2487
|
-
var s = i(6), r = "cdx-notify--bounce-in",
|
|
2488
|
-
return { show: function(
|
|
2489
|
-
if (
|
|
2487
|
+
var s = i(6), r = "cdx-notify--bounce-in", l = null;
|
|
2488
|
+
return { show: function(a) {
|
|
2489
|
+
if (a.message) {
|
|
2490
2490
|
(function() {
|
|
2491
|
-
if (
|
|
2491
|
+
if (l)
|
|
2492
2492
|
return !0;
|
|
2493
|
-
|
|
2493
|
+
l = s.getWrapper(), document.body.appendChild(l);
|
|
2494
2494
|
})();
|
|
2495
|
-
var c = null, d =
|
|
2496
|
-
switch (
|
|
2495
|
+
var c = null, d = a.time || 8e3;
|
|
2496
|
+
switch (a.type) {
|
|
2497
2497
|
case "confirm":
|
|
2498
|
-
c = s.confirm(
|
|
2498
|
+
c = s.confirm(a);
|
|
2499
2499
|
break;
|
|
2500
2500
|
case "prompt":
|
|
2501
|
-
c = s.prompt(
|
|
2501
|
+
c = s.prompt(a);
|
|
2502
2502
|
break;
|
|
2503
2503
|
default:
|
|
2504
|
-
c = s.alert(
|
|
2504
|
+
c = s.alert(a), window.setTimeout(function() {
|
|
2505
2505
|
c.remove();
|
|
2506
2506
|
}, d);
|
|
2507
2507
|
}
|
|
2508
|
-
|
|
2508
|
+
l.appendChild(c), c.classList.add(r);
|
|
2509
2509
|
}
|
|
2510
2510
|
} };
|
|
2511
2511
|
}();
|
|
@@ -2521,8 +2521,8 @@ var Ho = { exports: {} };
|
|
|
2521
2521
|
var s = [];
|
|
2522
2522
|
return s.toString = function() {
|
|
2523
2523
|
return this.map(function(r) {
|
|
2524
|
-
var
|
|
2525
|
-
var d =
|
|
2524
|
+
var l = function(a, c) {
|
|
2525
|
+
var d = a[1] || "", u = a[3];
|
|
2526
2526
|
if (!u)
|
|
2527
2527
|
return d;
|
|
2528
2528
|
if (c && typeof btoa == "function") {
|
|
@@ -2536,22 +2536,22 @@ var Ho = { exports: {} };
|
|
|
2536
2536
|
return [d].join(`
|
|
2537
2537
|
`);
|
|
2538
2538
|
}(r, i);
|
|
2539
|
-
return r[2] ? "@media " + r[2] + "{" +
|
|
2539
|
+
return r[2] ? "@media " + r[2] + "{" + l + "}" : l;
|
|
2540
2540
|
}).join("");
|
|
2541
|
-
}, s.i = function(r,
|
|
2541
|
+
}, s.i = function(r, l) {
|
|
2542
2542
|
typeof r == "string" && (r = [[null, r, ""]]);
|
|
2543
|
-
for (var
|
|
2543
|
+
for (var a = {}, c = 0; c < this.length; c++) {
|
|
2544
2544
|
var d = this[c][0];
|
|
2545
|
-
typeof d == "number" && (
|
|
2545
|
+
typeof d == "number" && (a[d] = !0);
|
|
2546
2546
|
}
|
|
2547
2547
|
for (c = 0; c < r.length; c++) {
|
|
2548
2548
|
var u = r[c];
|
|
2549
|
-
typeof u[0] == "number" &&
|
|
2549
|
+
typeof u[0] == "number" && a[u[0]] || (l && !u[2] ? u[2] = l : l && (u[2] = "(" + u[2] + ") and (" + l + ")"), s.push(u));
|
|
2550
2550
|
}
|
|
2551
2551
|
}, s;
|
|
2552
2552
|
};
|
|
2553
2553
|
}, function(t, o, i) {
|
|
2554
|
-
var s, r,
|
|
2554
|
+
var s, r, l = {}, a = (s = function() {
|
|
2555
2555
|
return window && document && document.all && !window.atob;
|
|
2556
2556
|
}, function() {
|
|
2557
2557
|
return r === void 0 && (r = s.apply(this, arguments)), r;
|
|
@@ -2577,7 +2577,7 @@ var Ho = { exports: {} };
|
|
|
2577
2577
|
}(), d = null, u = 0, f = [], g = i(5);
|
|
2578
2578
|
function p(k, m) {
|
|
2579
2579
|
for (var w = 0; w < k.length; w++) {
|
|
2580
|
-
var B = k[w], O =
|
|
2580
|
+
var B = k[w], O = l[B.id];
|
|
2581
2581
|
if (O) {
|
|
2582
2582
|
O.refs++;
|
|
2583
2583
|
for (var S = 0; S < O.parts.length; S++)
|
|
@@ -2588,7 +2588,7 @@ var Ho = { exports: {} };
|
|
|
2588
2588
|
var P = [];
|
|
2589
2589
|
for (S = 0; S < B.parts.length; S++)
|
|
2590
2590
|
P.push(j(B.parts[S], m));
|
|
2591
|
-
|
|
2591
|
+
l[B.id] = { id: B.id, refs: 1, parts: P };
|
|
2592
2592
|
}
|
|
2593
2593
|
}
|
|
2594
2594
|
}
|
|
@@ -2683,19 +2683,19 @@ var Ho = { exports: {} };
|
|
|
2683
2683
|
t.exports = function(k, m) {
|
|
2684
2684
|
if (typeof DEBUG < "u" && DEBUG && typeof document != "object")
|
|
2685
2685
|
throw new Error("The style-loader cannot be used in a non-browser environment");
|
|
2686
|
-
(m = m || {}).attrs = typeof m.attrs == "object" ? m.attrs : {}, m.singleton || typeof m.singleton == "boolean" || (m.singleton =
|
|
2686
|
+
(m = m || {}).attrs = typeof m.attrs == "object" ? m.attrs : {}, m.singleton || typeof m.singleton == "boolean" || (m.singleton = a()), m.insertInto || (m.insertInto = "head"), m.insertAt || (m.insertAt = "bottom");
|
|
2687
2687
|
var w = b(k, m);
|
|
2688
2688
|
return p(w, m), function(B) {
|
|
2689
2689
|
for (var O = [], S = 0; S < w.length; S++) {
|
|
2690
2690
|
var P = w[S];
|
|
2691
|
-
(T =
|
|
2691
|
+
(T = l[P.id]).refs--, O.push(T);
|
|
2692
2692
|
}
|
|
2693
2693
|
for (B && p(b(B, m), m), S = 0; S < O.length; S++) {
|
|
2694
2694
|
var T;
|
|
2695
2695
|
if ((T = O[S]).refs === 0) {
|
|
2696
2696
|
for (var Y = 0; Y < T.parts.length; Y++)
|
|
2697
2697
|
T.parts[Y]();
|
|
2698
|
-
delete
|
|
2698
|
+
delete l[T.id];
|
|
2699
2699
|
}
|
|
2700
2700
|
}
|
|
2701
2701
|
};
|
|
@@ -2720,27 +2720,27 @@ var Ho = { exports: {} };
|
|
|
2720
2720
|
throw new Error("fixUrls requires window.location");
|
|
2721
2721
|
if (!i || typeof i != "string")
|
|
2722
2722
|
return i;
|
|
2723
|
-
var r = s.protocol + "//" + s.host,
|
|
2724
|
-
return i.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(
|
|
2723
|
+
var r = s.protocol + "//" + s.host, l = r + s.pathname.replace(/\/[^\/]*$/, "/");
|
|
2724
|
+
return i.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(a, c) {
|
|
2725
2725
|
var d, u = c.trim().replace(/^"(.*)"$/, function(f, g) {
|
|
2726
2726
|
return g;
|
|
2727
2727
|
}).replace(/^'(.*)'$/, function(f, g) {
|
|
2728
2728
|
return g;
|
|
2729
2729
|
});
|
|
2730
|
-
return /^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(u) ?
|
|
2730
|
+
return /^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(u) ? a : (d = u.indexOf("//") === 0 ? u : u.indexOf("/") === 0 ? r + u : l + u.replace(/^\.\//, ""), "url(" + JSON.stringify(d) + ")");
|
|
2731
2731
|
});
|
|
2732
2732
|
};
|
|
2733
2733
|
}, function(t, o, i) {
|
|
2734
|
-
var s, r,
|
|
2735
|
-
t.exports = (s = "cdx-notifies", r = "cdx-notify",
|
|
2734
|
+
var s, r, l, a, c, d, u, f, g;
|
|
2735
|
+
t.exports = (s = "cdx-notifies", r = "cdx-notify", l = "cdx-notify__cross", a = "cdx-notify__button--confirm", c = "cdx-notify__button--cancel", d = "cdx-notify__input", u = "cdx-notify__button", f = "cdx-notify__btns-wrapper", { alert: g = function(p) {
|
|
2736
2736
|
var b = document.createElement("DIV"), C = document.createElement("DIV"), x = p.message, _ = p.style;
|
|
2737
|
-
return b.classList.add(r), _ && b.classList.add(r + "--" + _), b.innerHTML = x, C.classList.add(
|
|
2737
|
+
return b.classList.add(r), _ && b.classList.add(r + "--" + _), b.innerHTML = x, C.classList.add(l), C.addEventListener("click", b.remove.bind(b)), b.appendChild(C), b;
|
|
2738
2738
|
}, confirm: function(p) {
|
|
2739
|
-
var b = g(p), C = document.createElement("div"), x = document.createElement("button"), _ = document.createElement("button"), q = b.querySelector("." +
|
|
2740
|
-
return C.classList.add(f), x.innerHTML = p.okText || "Confirm", _.innerHTML = p.cancelText || "Cancel", x.classList.add(u), _.classList.add(u), x.classList.add(
|
|
2739
|
+
var b = g(p), C = document.createElement("div"), x = document.createElement("button"), _ = document.createElement("button"), q = b.querySelector("." + l), j = p.cancelHandler, $ = p.okHandler;
|
|
2740
|
+
return C.classList.add(f), x.innerHTML = p.okText || "Confirm", _.innerHTML = p.cancelText || "Cancel", x.classList.add(u), _.classList.add(u), x.classList.add(a), _.classList.add(c), j && typeof j == "function" && (_.addEventListener("click", j), q.addEventListener("click", j)), $ && typeof $ == "function" && x.addEventListener("click", $), x.addEventListener("click", b.remove.bind(b)), _.addEventListener("click", b.remove.bind(b)), C.appendChild(x), C.appendChild(_), b.appendChild(C), b;
|
|
2741
2741
|
}, prompt: function(p) {
|
|
2742
|
-
var b = g(p), C = document.createElement("div"), x = document.createElement("button"), _ = document.createElement("input"), q = b.querySelector("." +
|
|
2743
|
-
return C.classList.add(f), x.innerHTML = p.okText || "Ok", x.classList.add(u), x.classList.add(
|
|
2742
|
+
var b = g(p), C = document.createElement("div"), x = document.createElement("button"), _ = document.createElement("input"), q = b.querySelector("." + l), j = p.cancelHandler, $ = p.okHandler;
|
|
2743
|
+
return C.classList.add(f), x.innerHTML = p.okText || "Ok", x.classList.add(u), x.classList.add(a), _.classList.add(d), p.placeholder && _.setAttribute("placeholder", p.placeholder), p.default && (_.value = p.default), p.inputType && (_.type = p.inputType), j && typeof j == "function" && q.addEventListener("click", j), $ && typeof $ == "function" && x.addEventListener("click", function() {
|
|
2744
2744
|
$(_.value);
|
|
2745
2745
|
}), x.addEventListener("click", b.remove.bind(b)), C.appendChild(_), C.appendChild(x), b.appendChild(C), b;
|
|
2746
2746
|
}, getWrapper: function() {
|
|
@@ -2847,7 +2847,7 @@ var $o = { exports: {} };
|
|
|
2847
2847
|
const f = document.implementation.createHTMLDocument(), g = f.createElement("div");
|
|
2848
2848
|
return g.innerHTML = u, this._sanitize(f, g), g.innerHTML;
|
|
2849
2849
|
}, t.prototype._sanitize = function(u, f) {
|
|
2850
|
-
var g =
|
|
2850
|
+
var g = l(u, f), p = g.firstChild();
|
|
2851
2851
|
if (p)
|
|
2852
2852
|
do {
|
|
2853
2853
|
if (p.nodeType === Node.TEXT_NODE)
|
|
@@ -2862,7 +2862,7 @@ var $o = { exports: {} };
|
|
|
2862
2862
|
}
|
|
2863
2863
|
var b = r(p), C;
|
|
2864
2864
|
b && (C = Array.prototype.some.call(p.childNodes, i));
|
|
2865
|
-
var x = !!f.parentNode, _ = i(f) && i(p) && x, q = p.nodeName.toLowerCase(), j =
|
|
2865
|
+
var x = !!f.parentNode, _ = i(f) && i(p) && x, q = p.nodeName.toLowerCase(), j = a(this.config, q, p), $ = b && C;
|
|
2866
2866
|
if ($ || c(p, j) || !this.config.keepNestedBlockElements && _) {
|
|
2867
2867
|
if (!(p.nodeName === "SCRIPT" || p.nodeName === "STYLE"))
|
|
2868
2868
|
for (; p.childNodes.length > 0; )
|
|
@@ -2877,7 +2877,7 @@ var $o = { exports: {} };
|
|
|
2877
2877
|
this._sanitize(u, p);
|
|
2878
2878
|
} while (p = g.nextSibling());
|
|
2879
2879
|
};
|
|
2880
|
-
function
|
|
2880
|
+
function l(u, f) {
|
|
2881
2881
|
return u.createTreeWalker(
|
|
2882
2882
|
f,
|
|
2883
2883
|
NodeFilter.SHOW_TEXT | NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT,
|
|
@@ -2885,7 +2885,7 @@ var $o = { exports: {} };
|
|
|
2885
2885
|
!1
|
|
2886
2886
|
);
|
|
2887
2887
|
}
|
|
2888
|
-
function
|
|
2888
|
+
function a(u, f, g) {
|
|
2889
2889
|
return typeof u.tags[f] == "function" ? u.tags[f](g) : u.tags[f];
|
|
2890
2890
|
}
|
|
2891
2891
|
function c(u, f) {
|
|
@@ -3128,20 +3128,20 @@ var zo = { exports: {} };
|
|
|
3128
3128
|
var r = o[s] = { i: s, l: !1, exports: {} };
|
|
3129
3129
|
return t[s].call(r.exports, r, r.exports, i), r.l = !0, r.exports;
|
|
3130
3130
|
}
|
|
3131
|
-
return i.m = t, i.c = o, i.d = function(s, r,
|
|
3132
|
-
i.o(s, r) || Object.defineProperty(s, r, { enumerable: !0, get:
|
|
3131
|
+
return i.m = t, i.c = o, i.d = function(s, r, l) {
|
|
3132
|
+
i.o(s, r) || Object.defineProperty(s, r, { enumerable: !0, get: l });
|
|
3133
3133
|
}, i.r = function(s) {
|
|
3134
3134
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(s, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(s, "__esModule", { value: !0 });
|
|
3135
3135
|
}, i.t = function(s, r) {
|
|
3136
3136
|
if (1 & r && (s = i(s)), 8 & r || 4 & r && typeof s == "object" && s && s.__esModule)
|
|
3137
3137
|
return s;
|
|
3138
|
-
var
|
|
3139
|
-
if (i.r(
|
|
3140
|
-
for (var
|
|
3141
|
-
i.d(
|
|
3138
|
+
var l = /* @__PURE__ */ Object.create(null);
|
|
3139
|
+
if (i.r(l), Object.defineProperty(l, "default", { enumerable: !0, value: s }), 2 & r && typeof s != "string")
|
|
3140
|
+
for (var a in s)
|
|
3141
|
+
i.d(l, a, (function(c) {
|
|
3142
3142
|
return s[c];
|
|
3143
|
-
}).bind(null,
|
|
3144
|
-
return
|
|
3143
|
+
}).bind(null, a));
|
|
3144
|
+
return l;
|
|
3145
3145
|
}, i.n = function(s) {
|
|
3146
3146
|
var r = s && s.__esModule ? function() {
|
|
3147
3147
|
return s.default;
|
|
@@ -3167,45 +3167,45 @@ var zo = { exports: {} };
|
|
|
3167
3167
|
get CSS() {
|
|
3168
3168
|
return { tooltip: "ct", tooltipContent: "ct__content", tooltipShown: "ct--shown", placement: { left: "ct--left", bottom: "ct--bottom", right: "ct--right", top: "ct--top" } };
|
|
3169
3169
|
}
|
|
3170
|
-
show(
|
|
3170
|
+
show(l, a, c) {
|
|
3171
3171
|
this.nodes.wrapper || this.prepare(), this.hidingTimeout && clearTimeout(this.hidingTimeout);
|
|
3172
3172
|
const d = Object.assign({ placement: "bottom", marginTop: 0, marginLeft: 0, marginRight: 0, marginBottom: 0, delay: 70, hidingDelay: 0 }, c);
|
|
3173
|
-
if (d.hidingDelay && (this.hidingDelay = d.hidingDelay), this.nodes.content.innerHTML = "", typeof
|
|
3174
|
-
this.nodes.content.appendChild(document.createTextNode(
|
|
3173
|
+
if (d.hidingDelay && (this.hidingDelay = d.hidingDelay), this.nodes.content.innerHTML = "", typeof a == "string")
|
|
3174
|
+
this.nodes.content.appendChild(document.createTextNode(a));
|
|
3175
3175
|
else {
|
|
3176
|
-
if (!(
|
|
3177
|
-
throw Error("[CodeX Tooltip] Wrong type of «content» passed. It should be an instance of Node or String. But " + typeof
|
|
3178
|
-
this.nodes.content.appendChild(
|
|
3176
|
+
if (!(a instanceof Node))
|
|
3177
|
+
throw Error("[CodeX Tooltip] Wrong type of «content» passed. It should be an instance of Node or String. But " + typeof a + " given.");
|
|
3178
|
+
this.nodes.content.appendChild(a);
|
|
3179
3179
|
}
|
|
3180
3180
|
switch (this.nodes.wrapper.classList.remove(...Object.values(this.CSS.placement)), d.placement) {
|
|
3181
3181
|
case "top":
|
|
3182
|
-
this.placeTop(
|
|
3182
|
+
this.placeTop(l, d);
|
|
3183
3183
|
break;
|
|
3184
3184
|
case "left":
|
|
3185
|
-
this.placeLeft(
|
|
3185
|
+
this.placeLeft(l, d);
|
|
3186
3186
|
break;
|
|
3187
3187
|
case "right":
|
|
3188
|
-
this.placeRight(
|
|
3188
|
+
this.placeRight(l, d);
|
|
3189
3189
|
break;
|
|
3190
3190
|
case "bottom":
|
|
3191
3191
|
default:
|
|
3192
|
-
this.placeBottom(
|
|
3192
|
+
this.placeBottom(l, d);
|
|
3193
3193
|
}
|
|
3194
3194
|
d && d.delay ? this.showingTimeout = setTimeout(() => {
|
|
3195
3195
|
this.nodes.wrapper.classList.add(this.CSS.tooltipShown), this.showed = !0;
|
|
3196
3196
|
}, d.delay) : (this.nodes.wrapper.classList.add(this.CSS.tooltipShown), this.showed = !0);
|
|
3197
3197
|
}
|
|
3198
|
-
hide(
|
|
3199
|
-
if (this.hidingDelay && !
|
|
3198
|
+
hide(l = !1) {
|
|
3199
|
+
if (this.hidingDelay && !l)
|
|
3200
3200
|
return this.hidingTimeout && clearTimeout(this.hidingTimeout), void (this.hidingTimeout = setTimeout(() => {
|
|
3201
3201
|
this.hide(!0);
|
|
3202
3202
|
}, this.hidingDelay));
|
|
3203
3203
|
this.nodes.wrapper.classList.remove(this.CSS.tooltipShown), this.showed = !1, this.showingTimeout && clearTimeout(this.showingTimeout);
|
|
3204
3204
|
}
|
|
3205
|
-
onHover(
|
|
3206
|
-
|
|
3207
|
-
this.show(
|
|
3208
|
-
}),
|
|
3205
|
+
onHover(l, a, c) {
|
|
3206
|
+
l.addEventListener("mouseenter", () => {
|
|
3207
|
+
this.show(l, a, c);
|
|
3208
|
+
}), l.addEventListener("mouseleave", () => {
|
|
3209
3209
|
this.hide();
|
|
3210
3210
|
});
|
|
3211
3211
|
}
|
|
@@ -3216,43 +3216,43 @@ var zo = { exports: {} };
|
|
|
3216
3216
|
this.nodes.wrapper = this.make("div", this.CSS.tooltip), this.nodes.content = this.make("div", this.CSS.tooltipContent), this.append(this.nodes.wrapper, this.nodes.content), this.append(document.body, this.nodes.wrapper);
|
|
3217
3217
|
}
|
|
3218
3218
|
loadStyles() {
|
|
3219
|
-
const
|
|
3220
|
-
if (document.getElementById(
|
|
3219
|
+
const l = "codex-tooltips-style";
|
|
3220
|
+
if (document.getElementById(l))
|
|
3221
3221
|
return;
|
|
3222
|
-
const
|
|
3222
|
+
const a = i(2), c = this.make("style", null, { textContent: a.toString(), id: l });
|
|
3223
3223
|
this.prepend(document.head, c);
|
|
3224
3224
|
}
|
|
3225
|
-
placeBottom(
|
|
3226
|
-
const c =
|
|
3225
|
+
placeBottom(l, a) {
|
|
3226
|
+
const c = l.getBoundingClientRect(), d = c.left + l.clientWidth / 2 - this.nodes.wrapper.offsetWidth / 2, u = c.bottom + window.pageYOffset + this.offsetTop + a.marginTop;
|
|
3227
3227
|
this.applyPlacement("bottom", d, u);
|
|
3228
3228
|
}
|
|
3229
|
-
placeTop(
|
|
3230
|
-
const c =
|
|
3229
|
+
placeTop(l, a) {
|
|
3230
|
+
const c = l.getBoundingClientRect(), d = c.left + l.clientWidth / 2 - this.nodes.wrapper.offsetWidth / 2, u = c.top + window.pageYOffset - this.nodes.wrapper.clientHeight - this.offsetTop;
|
|
3231
3231
|
this.applyPlacement("top", d, u);
|
|
3232
3232
|
}
|
|
3233
|
-
placeLeft(
|
|
3234
|
-
const c =
|
|
3233
|
+
placeLeft(l, a) {
|
|
3234
|
+
const c = l.getBoundingClientRect(), d = c.left - this.nodes.wrapper.offsetWidth - this.offsetLeft - a.marginLeft, u = c.top + window.pageYOffset + l.clientHeight / 2 - this.nodes.wrapper.offsetHeight / 2;
|
|
3235
3235
|
this.applyPlacement("left", d, u);
|
|
3236
3236
|
}
|
|
3237
|
-
placeRight(
|
|
3238
|
-
const c =
|
|
3237
|
+
placeRight(l, a) {
|
|
3238
|
+
const c = l.getBoundingClientRect(), d = c.right + this.offsetRight + a.marginRight, u = c.top + window.pageYOffset + l.clientHeight / 2 - this.nodes.wrapper.offsetHeight / 2;
|
|
3239
3239
|
this.applyPlacement("right", d, u);
|
|
3240
3240
|
}
|
|
3241
|
-
applyPlacement(
|
|
3242
|
-
this.nodes.wrapper.classList.add(this.CSS.placement[
|
|
3241
|
+
applyPlacement(l, a, c) {
|
|
3242
|
+
this.nodes.wrapper.classList.add(this.CSS.placement[l]), this.nodes.wrapper.style.left = a + "px", this.nodes.wrapper.style.top = c + "px";
|
|
3243
3243
|
}
|
|
3244
|
-
make(
|
|
3245
|
-
const d = document.createElement(
|
|
3246
|
-
Array.isArray(
|
|
3244
|
+
make(l, a = null, c = {}) {
|
|
3245
|
+
const d = document.createElement(l);
|
|
3246
|
+
Array.isArray(a) ? d.classList.add(...a) : a && d.classList.add(a);
|
|
3247
3247
|
for (const u in c)
|
|
3248
3248
|
c.hasOwnProperty(u) && (d[u] = c[u]);
|
|
3249
3249
|
return d;
|
|
3250
3250
|
}
|
|
3251
|
-
append(
|
|
3252
|
-
Array.isArray(
|
|
3251
|
+
append(l, a) {
|
|
3252
|
+
Array.isArray(a) ? a.forEach((c) => l.appendChild(c)) : l.appendChild(a);
|
|
3253
3253
|
}
|
|
3254
|
-
prepend(
|
|
3255
|
-
Array.isArray(
|
|
3254
|
+
prepend(l, a) {
|
|
3255
|
+
Array.isArray(a) ? (a = a.reverse()).forEach((c) => l.prepend(c)) : l.prepend(a);
|
|
3256
3256
|
}
|
|
3257
3257
|
}
|
|
3258
3258
|
}, function(t, o) {
|
|
@@ -3361,7 +3361,7 @@ function Uo(n, e) {
|
|
|
3361
3361
|
return Object.entries(n).forEach(([o, i]) => {
|
|
3362
3362
|
if (F(i)) {
|
|
3363
3363
|
const s = e ? `${e}.${o}` : o;
|
|
3364
|
-
Object.values(i).every((
|
|
3364
|
+
Object.values(i).every((l) => te(l)) ? t[o] = s : t[o] = Uo(i, s);
|
|
3365
3365
|
return;
|
|
3366
3366
|
}
|
|
3367
3367
|
t[o] = i;
|
|
@@ -3593,7 +3593,7 @@ class ce {
|
|
|
3593
3593
|
this.iterator.currentItem && this.iterator.currentItem.scrollIntoViewIfNeeded(), this.flipCallbacks.forEach((e) => e());
|
|
3594
3594
|
}
|
|
3595
3595
|
}
|
|
3596
|
-
const Hi = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M19 17V10.2135C19 10.1287 18.9011 10.0824 18.836 10.1367L16 12.5"/></svg>', $i = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 11C16 10 19 9.5 19 12C19 13.9771 16.0684 13.9997 16.0012 16.8981C15.9999 16.9533 16.0448 17 16.1 17L19.3 17"/></svg>', zi = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 11C16 10.5 16.8323 10 17.6 10C18.3677 10 19.5 10.311 19.5 11.5C19.5 12.5315 18.7474 12.9022 18.548 12.9823C18.5378 12.9864 18.5395 13.0047 18.5503 13.0063C18.8115 13.0456 20 13.3065 20 14.8C20 16 19.5 17 17.8 17C17.8 17 16 17 16 16.3"/></svg>', Ui = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M18 10L15.2834 14.8511C15.246 14.9178 15.294 15 15.3704 15C16.8489 15 18.7561 15 20.2 15M19 17C19 15.7187 19 14.8813 19 13.6"/></svg>', Wi = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 15.9C16 15.9 16.3768 17 17.8 17C19.5 17 20 15.6199 20 14.7C20 12.7323 17.6745 12.0486 16.1635 12.9894C16.094 13.0327 16 12.9846 16 12.9027V10.1C16 10.0448 16.0448 10 16.1 10H19.8"/></svg>', Yi = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M19.5 10C16.5 10.5 16 13.3285 16 15M16 15V15C16 16.1046 16.8954 17 18 17H18.3246C19.3251 17 20.3191 16.3492 20.2522 15.3509C20.0612 12.4958 16 12.6611 16 15Z"/></svg>', Ki = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M9.2 12L11.0586 13.8586C11.1367 13.9367 11.2633 13.9367 11.3414 13.8586L14.7 10.5"/><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/></svg>', Xi = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M7 10L11.8586 14.8586C11.9367 14.9367 12.0633 14.9367 12.1414 14.8586L17 10"/></svg>', Vi = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M14.5 17.5L9.64142 12.6414C9.56331 12.5633 9.56331 12.4367 9.64142 12.3586L14.5 7.5"/></svg>', qi = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M9.58284 17.5L14.4414 12.6414C14.5195 12.5633 14.5195 12.4367 14.4414 12.3586L9.58284 7.5"/></svg>', Zi = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M7 15L11.8586 10.1414C11.9367 10.0633 12.0633 10.0633 12.1414 10.1414L17 15"/></svg>', Gi = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8 8L12 12M12 12L16 16M12 12L16 8M12 12L8 16"/></svg>', Ji = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><line x1="6" x2="10" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="14" x2="18" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/></svg>', Qi = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4" stroke="currentColor" stroke-width="2"/></svg>', es = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><line x1="9" x2="19" y1="7" y2="7" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="9" x2="19" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="9" x2="19" y1="17" y2="17" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 17H4.99002"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 12H4.99002"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 7H4.99002"/></svg>', ts = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><line x1="12" x2="19" y1="7" y2="7" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="12" x2="19" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="12" x2="19" y1="17" y2="17" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M7.79999 14L7.79999 7.2135C7.79999 7.12872 7.7011 7.0824 7.63597 7.13668L4.79999 9.5"/></svg>', os = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M9.40999 7.29999H9.4"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M14.6 7.29999H14.59"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M9.30999 12H9.3"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M14.6 12H14.59"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M9.40999 16.7H9.4"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M14.6 16.7H14.59"/></svg>', ns = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5.13968 15.32L8.69058 11.5661C9.02934 11.2036 9.48873 11 9.96774 11C10.4467 11 10.9061 11.2036 11.2449 11.5661L15.3871 16M13.5806 14.0664L15.0132 12.533C15.3519 12.1705 15.8113 11.9668 16.2903 11.9668C16.7693 11.9668 17.2287 12.1705 17.5675 12.533L18.841 13.9634"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.7778 9.33331H13.7867"/></svg>', Yo = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M12 7V12M12 17V12M17 12H12M12 12H7"/></svg>', is = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 10.8182L9 10.8182C8.80222 10.8182 8.60888 10.7649 8.44443 10.665C8.27998 10.5651 8.15181 10.4231 8.07612 10.257C8.00043 10.0909 7.98063 9.90808 8.01922 9.73174C8.0578 9.55539 8.15304 9.39341 8.29289 9.26627C8.43275 9.13913 8.61093 9.05255 8.80491 9.01747C8.99889 8.98239 9.19996 9.00039 9.38268 9.0692C9.56541 9.13801 9.72159 9.25453 9.83147 9.40403C9.94135 9.55353 10 9.72929 10 9.90909L10 12.1818C10 12.664 9.78929 13.1265 9.41421 13.4675C9.03914 13.8084 8.53043 14 8 14"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 10.8182L15 10.8182C14.8022 10.8182 14.6089 10.7649 14.4444 10.665C14.28 10.5651 14.1518 10.4231 14.0761 10.257C14.0004 10.0909 13.9806 9.90808 14.0192 9.73174C14.0578 9.55539 14.153 9.39341 14.2929 9.26627C14.4327 9.13913 14.6109 9.05255 14.8049 9.01747C14.9989 8.98239 15.2 9.00039 15.3827 9.0692C15.5654 9.13801 15.7216 9.25453 15.8315 9.40403C15.9414 9.55353 16 9.72929 16 9.90909L16 12.1818C16 12.664 15.7893 13.1265 15.4142 13.4675C15.0391 13.8084 14.5304 14 14 14"/></svg>', ss = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M11.5 17.5L5 11M5 11V15.5M5 11H9.5"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M12.5 6.5L19 13M19 13V8.5M19 13H14.5"/></svg>', rs = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><circle cx="10.5" cy="10.5" r="5.5" stroke="currentColor" stroke-width="2"/><line x1="15.4142" x2="19" y1="15" y2="18.5858" stroke="currentColor" stroke-linecap="round" stroke-width="2"/></svg>', as = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-width="2" d="M10 5V18.5"/><path stroke="currentColor" stroke-width="2" d="M5 10H19"/><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/></svg>', ls = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8 9V7.2C8 7.08954 8.08954 7 8.2 7L12 7M16 9V7.2C16 7.08954 15.9105 7 15.8 7L12 7M12 7L12 17M12 17H10M12 17H14"/></svg>', cs = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/><line x1="12" x2="12" y1="9" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M12 15.02V15.01"/></svg>', ds = "__", hs = "--";
|
|
3596
|
+
const Hi = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M19 17V10.2135C19 10.1287 18.9011 10.0824 18.836 10.1367L16 12.5"/></svg>', $i = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 11C16 10 19 9.5 19 12C19 13.9771 16.0684 13.9997 16.0012 16.8981C15.9999 16.9533 16.0448 17 16.1 17L19.3 17"/></svg>', zi = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 11C16 10.5 16.8323 10 17.6 10C18.3677 10 19.5 10.311 19.5 11.5C19.5 12.5315 18.7474 12.9022 18.548 12.9823C18.5378 12.9864 18.5395 13.0047 18.5503 13.0063C18.8115 13.0456 20 13.3065 20 14.8C20 16 19.5 17 17.8 17C17.8 17 16 17 16 16.3"/></svg>', Ui = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M18 10L15.2834 14.8511C15.246 14.9178 15.294 15 15.3704 15C16.8489 15 18.7561 15 20.2 15M19 17C19 15.7187 19 14.8813 19 13.6"/></svg>', Wi = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 15.9C16 15.9 16.3768 17 17.8 17C19.5 17 20 15.6199 20 14.7C20 12.7323 17.6745 12.0486 16.1635 12.9894C16.094 13.0327 16 12.9846 16 12.9027V10.1C16 10.0448 16.0448 10 16.1 10H19.8"/></svg>', Yi = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M19.5 10C16.5 10.5 16 13.3285 16 15M16 15V15C16 16.1046 16.8954 17 18 17H18.3246C19.3251 17 20.3191 16.3492 20.2522 15.3509C20.0612 12.4958 16 12.6611 16 15Z"/></svg>', Ki = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M9.2 12L11.0586 13.8586C11.1367 13.9367 11.2633 13.9367 11.3414 13.8586L14.7 10.5"/><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/></svg>', Xi = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M7 10L11.8586 14.8586C11.9367 14.9367 12.0633 14.9367 12.1414 14.8586L17 10"/></svg>', Vi = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M14.5 17.5L9.64142 12.6414C9.56331 12.5633 9.56331 12.4367 9.64142 12.3586L14.5 7.5"/></svg>', qi = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M9.58284 17.5L14.4414 12.6414C14.5195 12.5633 14.5195 12.4367 14.4414 12.3586L9.58284 7.5"/></svg>', Zi = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M7 15L11.8586 10.1414C11.9367 10.0633 12.0633 10.0633 12.1414 10.1414L17 15"/></svg>', Gi = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8 8L12 12M12 12L16 16M12 12L16 8M12 12L8 16"/></svg>', Ji = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><line x1="6" x2="10" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="14" x2="18" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/></svg>', Qi = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4" stroke="currentColor" stroke-width="2"/></svg>', es = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><line x1="9" x2="19" y1="7" y2="7" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="9" x2="19" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="9" x2="19" y1="17" y2="17" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 17H4.99002"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 12H4.99002"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 7H4.99002"/></svg>', ts = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><line x1="12" x2="19" y1="7" y2="7" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="12" x2="19" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="12" x2="19" y1="17" y2="17" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M7.79999 14L7.79999 7.2135C7.79999 7.12872 7.7011 7.0824 7.63597 7.13668L4.79999 9.5"/></svg>', os = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M9.40999 7.29999H9.4"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M14.6 7.29999H14.59"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M9.30999 12H9.3"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M14.6 12H14.59"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M9.40999 16.7H9.4"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2.6" d="M14.6 16.7H14.59"/></svg>', ns = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5.13968 15.32L8.69058 11.5661C9.02934 11.2036 9.48873 11 9.96774 11C10.4467 11 10.9061 11.2036 11.2449 11.5661L15.3871 16M13.5806 14.0664L15.0132 12.533C15.3519 12.1705 15.8113 11.9668 16.2903 11.9668C16.7693 11.9668 17.2287 12.1705 17.5675 12.533L18.841 13.9634"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.7778 9.33331H13.7867"/></svg>', Yo = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M12 7V12M12 17V12M17 12H12M12 12H7"/></svg>', is = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 10.8182L9 10.8182C8.80222 10.8182 8.60888 10.7649 8.44443 10.665C8.27998 10.5651 8.15181 10.4231 8.07612 10.257C8.00043 10.0909 7.98063 9.90808 8.01922 9.73174C8.0578 9.55539 8.15304 9.39341 8.29289 9.26627C8.43275 9.13913 8.61093 9.05255 8.80491 9.01747C8.99889 8.98239 9.19996 9.00039 9.38268 9.0692C9.56541 9.13801 9.72159 9.25453 9.83147 9.40403C9.94135 9.55353 10 9.72929 10 9.90909L10 12.1818C10 12.664 9.78929 13.1265 9.41421 13.4675C9.03914 13.8084 8.53043 14 8 14"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 10.8182L15 10.8182C14.8022 10.8182 14.6089 10.7649 14.4444 10.665C14.28 10.5651 14.1518 10.4231 14.0761 10.257C14.0004 10.0909 13.9806 9.90808 14.0192 9.73174C14.0578 9.55539 14.153 9.39341 14.2929 9.26627C14.4327 9.13913 14.6109 9.05255 14.8049 9.01747C14.9989 8.98239 15.2 9.00039 15.3827 9.0692C15.5654 9.13801 15.7216 9.25453 15.8315 9.40403C15.9414 9.55353 16 9.72929 16 9.90909L16 12.1818C16 12.664 15.7893 13.1265 15.4142 13.4675C15.0391 13.8084 14.5304 14 14 14"/></svg>', ss = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M11.5 17.5L5 11M5 11V15.5M5 11H9.5"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M12.5 6.5L19 13M19 13V8.5M19 13H14.5"/></svg>', rs = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><circle cx="10.5" cy="10.5" r="5.5" stroke="currentColor" stroke-width="2"/><line x1="15.4142" x2="19" y1="15" y2="18.5858" stroke="currentColor" stroke-linecap="round" stroke-width="2"/></svg>', ls = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-width="2" d="M10 5V18.5"/><path stroke="currentColor" stroke-width="2" d="M5 10H19"/><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/></svg>', as = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8 9V7.2C8 7.08954 8.08954 7 8.2 7L12 7M16 9V7.2C16 7.08954 15.9105 7 15.8 7L12 7M12 7L12 17M12 17H10M12 17H14"/></svg>', cs = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/><line x1="12" x2="12" y1="9" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M12 15.02V15.01"/></svg>', ds = "__", hs = "--";
|
|
3597
3597
|
function ne(n) {
|
|
3598
3598
|
return (e, t) => [[n, e].filter((i) => !!i).join(ds), t].filter((i) => !!i).join(hs);
|
|
3599
3599
|
}
|
|
@@ -4258,14 +4258,14 @@ const Vo = class qo extends Xo {
|
|
|
4258
4258
|
const o = this.itemsDefault.find((i) => i.isFocused);
|
|
4259
4259
|
o == null || o.onFocus();
|
|
4260
4260
|
}, this.onSearch = (o) => {
|
|
4261
|
-
var
|
|
4261
|
+
var l;
|
|
4262
4262
|
const i = o.query === "", s = o.items.length === 0;
|
|
4263
|
-
this.items.forEach((
|
|
4263
|
+
this.items.forEach((a) => {
|
|
4264
4264
|
let c = !1;
|
|
4265
|
-
|
|
4265
|
+
a instanceof re ? c = !o.items.includes(a) : (a instanceof Ko || a instanceof Se) && (c = s || !i), a.toggleHidden(c);
|
|
4266
4266
|
}), this.toggleNothingFoundMessage(s);
|
|
4267
|
-
const r = o.query === "" ? this.flippableElements : o.items.map((
|
|
4268
|
-
(
|
|
4267
|
+
const r = o.query === "" ? this.flippableElements : o.items.map((a) => a.getElement());
|
|
4268
|
+
(l = this.flipper) != null && l.isActivated && (this.flipper.deactivate(), this.flipper.activate(r));
|
|
4269
4269
|
}, e.nestingLevel !== void 0 && (this.nestingLevel = e.nestingLevel), this.nestingLevel > 0 && this.nodes.popover.classList.add(N.popoverNested), e.scopeElement !== void 0 && (this.scopeElement = e.scopeElement), this.nodes.popoverContainer !== null && this.listeners.on(this.nodes.popoverContainer, "mouseover", (o) => this.handleHover(o)), e.searchable && this.addSearch(), e.flippable !== !1 && (this.flipper = new ce({
|
|
4270
4270
|
items: this.flippableElements,
|
|
4271
4271
|
focusedItemClass: A.focused,
|
|
@@ -4574,10 +4574,10 @@ Zo.CSS = {
|
|
|
4574
4574
|
scrollLockedHard: "ce-scroll-locked--hard"
|
|
4575
4575
|
};
|
|
4576
4576
|
let vs = Zo;
|
|
4577
|
-
const
|
|
4578
|
-
root:
|
|
4579
|
-
text:
|
|
4580
|
-
backButton:
|
|
4577
|
+
const lt = ne("ce-popover-header"), at = {
|
|
4578
|
+
root: lt(),
|
|
4579
|
+
text: lt("text"),
|
|
4580
|
+
backButton: lt("back-button")
|
|
4581
4581
|
};
|
|
4582
4582
|
class ks {
|
|
4583
4583
|
/**
|
|
@@ -4587,9 +4587,9 @@ class ks {
|
|
|
4587
4587
|
*/
|
|
4588
4588
|
constructor({ text: e, onBackButtonClick: t }) {
|
|
4589
4589
|
this.listeners = new Me(), this.text = e, this.onBackButtonClick = t, this.nodes = {
|
|
4590
|
-
root: h.make("div", [
|
|
4591
|
-
backButton: h.make("button", [
|
|
4592
|
-
text: h.make("div", [
|
|
4590
|
+
root: h.make("div", [at.root]),
|
|
4591
|
+
backButton: h.make("button", [at.backButton]),
|
|
4592
|
+
text: h.make("div", [at.text])
|
|
4593
4593
|
}, this.nodes.backButton.innerHTML = Vi, this.nodes.root.appendChild(this.nodes.backButton), this.listeners.on(this.nodes.backButton, "click", this.onBackButtonClick), this.nodes.text.innerText = this.text, this.nodes.root.appendChild(this.nodes.text);
|
|
4594
4594
|
}
|
|
4595
4595
|
/**
|
|
@@ -4811,8 +4811,8 @@ class ws extends E {
|
|
|
4811
4811
|
o !== void 0 && o.length > 0 && (i.push(...o), i.push({
|
|
4812
4812
|
type: M.Separator
|
|
4813
4813
|
}));
|
|
4814
|
-
const s = Array.from(this.Editor.Tools.blockTools.values()),
|
|
4815
|
-
|
|
4814
|
+
const s = Array.from(this.Editor.Tools.blockTools.values()), l = (await li(e, s)).reduce((a, c) => (c.toolbox.forEach((d) => {
|
|
4815
|
+
a.push({
|
|
4816
4816
|
icon: d.icon,
|
|
4817
4817
|
title: D.t(U.toolNames, d.title),
|
|
4818
4818
|
name: c.name,
|
|
@@ -4826,15 +4826,15 @@ class ws extends E {
|
|
|
4826
4826
|
g.close(), f.setToBlock(p, f.positions.END);
|
|
4827
4827
|
}
|
|
4828
4828
|
});
|
|
4829
|
-
}),
|
|
4830
|
-
return
|
|
4829
|
+
}), a), []);
|
|
4830
|
+
return l.length > 0 && (i.push({
|
|
4831
4831
|
icon: ss,
|
|
4832
4832
|
name: "convert-to",
|
|
4833
4833
|
title: D.ui(U.ui.popover, "Convert to"),
|
|
4834
4834
|
children: {
|
|
4835
4835
|
searchable: !1,
|
|
4836
4836
|
//lrj:关闭搜索功能
|
|
4837
|
-
items:
|
|
4837
|
+
items: l
|
|
4838
4838
|
}
|
|
4839
4839
|
}), i.push({
|
|
4840
4840
|
type: M.Separator
|
|
@@ -4849,10 +4849,10 @@ class ws extends E {
|
|
|
4849
4849
|
// },
|
|
4850
4850
|
closeOnActivate: !0,
|
|
4851
4851
|
onActivate: () => {
|
|
4852
|
-
const { Toolbar:
|
|
4853
|
-
this.Editor.BlockManager.currentBlock = e,
|
|
4852
|
+
const { Toolbar: a } = this.Editor;
|
|
4853
|
+
this.Editor.BlockManager.currentBlock = e, a.toolbox.open();
|
|
4854
4854
|
}
|
|
4855
|
-
}), i.map((
|
|
4855
|
+
}), i.map((a) => this.resolveTuneAliases(a));
|
|
4856
4856
|
}
|
|
4857
4857
|
/**
|
|
4858
4858
|
* Resolves aliases in tunes menu items
|
|
@@ -4886,20 +4886,20 @@ var Jo = { exports: {} };
|
|
|
4886
4886
|
var r = o[s] = { i: s, l: !1, exports: {} };
|
|
4887
4887
|
return t[s].call(r.exports, r, r.exports, i), r.l = !0, r.exports;
|
|
4888
4888
|
}
|
|
4889
|
-
return i.m = t, i.c = o, i.d = function(s, r,
|
|
4890
|
-
i.o(s, r) || Object.defineProperty(s, r, { enumerable: !0, get:
|
|
4889
|
+
return i.m = t, i.c = o, i.d = function(s, r, l) {
|
|
4890
|
+
i.o(s, r) || Object.defineProperty(s, r, { enumerable: !0, get: l });
|
|
4891
4891
|
}, i.r = function(s) {
|
|
4892
4892
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(s, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(s, "__esModule", { value: !0 });
|
|
4893
4893
|
}, i.t = function(s, r) {
|
|
4894
4894
|
if (1 & r && (s = i(s)), 8 & r || 4 & r && typeof s == "object" && s && s.__esModule)
|
|
4895
4895
|
return s;
|
|
4896
|
-
var
|
|
4897
|
-
if (i.r(
|
|
4898
|
-
for (var
|
|
4899
|
-
i.d(
|
|
4896
|
+
var l = /* @__PURE__ */ Object.create(null);
|
|
4897
|
+
if (i.r(l), Object.defineProperty(l, "default", { enumerable: !0, value: s }), 2 & r && typeof s != "string")
|
|
4898
|
+
for (var a in s)
|
|
4899
|
+
i.d(l, a, (function(c) {
|
|
4900
4900
|
return s[c];
|
|
4901
|
-
}).bind(null,
|
|
4902
|
-
return
|
|
4901
|
+
}).bind(null, a));
|
|
4902
|
+
return l;
|
|
4903
4903
|
}, i.n = function(s) {
|
|
4904
4904
|
var r = s && s.__esModule ? function() {
|
|
4905
4905
|
return s.default;
|
|
@@ -4911,43 +4911,43 @@ var Jo = { exports: {} };
|
|
|
4911
4911
|
return Object.prototype.hasOwnProperty.call(s, r);
|
|
4912
4912
|
}, i.p = "", i(i.s = 0);
|
|
4913
4913
|
}([function(t, o, i) {
|
|
4914
|
-
function s(
|
|
4914
|
+
function s(a, c) {
|
|
4915
4915
|
for (var d = 0; d < c.length; d++) {
|
|
4916
4916
|
var u = c[d];
|
|
4917
|
-
u.enumerable = u.enumerable || !1, u.configurable = !0, "value" in u && (u.writable = !0), Object.defineProperty(
|
|
4917
|
+
u.enumerable = u.enumerable || !1, u.configurable = !0, "value" in u && (u.writable = !0), Object.defineProperty(a, u.key, u);
|
|
4918
4918
|
}
|
|
4919
4919
|
}
|
|
4920
|
-
function r(
|
|
4921
|
-
return c && s(
|
|
4920
|
+
function r(a, c, d) {
|
|
4921
|
+
return c && s(a.prototype, c), d && s(a, d), a;
|
|
4922
4922
|
}
|
|
4923
4923
|
i.r(o);
|
|
4924
|
-
var
|
|
4925
|
-
function
|
|
4924
|
+
var l = function() {
|
|
4925
|
+
function a(c) {
|
|
4926
4926
|
var d = this;
|
|
4927
4927
|
(function(u, f) {
|
|
4928
4928
|
if (!(u instanceof f))
|
|
4929
4929
|
throw new TypeError("Cannot call a class as a function");
|
|
4930
|
-
})(this,
|
|
4930
|
+
})(this, a), this.commands = {}, this.keys = {}, this.name = c.name, this.parseShortcutName(c.name), this.element = c.on, this.callback = c.callback, this.executeShortcut = function(u) {
|
|
4931
4931
|
d.execute(u);
|
|
4932
4932
|
}, this.element.addEventListener("keydown", this.executeShortcut, !1);
|
|
4933
4933
|
}
|
|
4934
|
-
return r(
|
|
4934
|
+
return r(a, null, [{ key: "supportedCommands", get: function() {
|
|
4935
4935
|
return { SHIFT: ["SHIFT"], CMD: ["CMD", "CONTROL", "COMMAND", "WINDOWS", "CTRL"], ALT: ["ALT", "OPTION"] };
|
|
4936
4936
|
} }, { key: "keyCodes", get: function() {
|
|
4937
4937
|
return { 0: 48, 1: 49, 2: 50, 3: 51, 4: 52, 5: 53, 6: 54, 7: 55, 8: 56, 9: 57, A: 65, B: 66, C: 67, D: 68, E: 69, F: 70, G: 71, H: 72, I: 73, J: 74, K: 75, L: 76, M: 77, N: 78, O: 79, P: 80, Q: 81, R: 82, S: 83, T: 84, U: 85, V: 86, W: 87, X: 88, Y: 89, Z: 90, BACKSPACE: 8, ENTER: 13, ESCAPE: 27, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40, INSERT: 45, DELETE: 46, ".": 190 };
|
|
4938
|
-
} }]), r(
|
|
4938
|
+
} }]), r(a, [{ key: "parseShortcutName", value: function(c) {
|
|
4939
4939
|
c = c.split("+");
|
|
4940
4940
|
for (var d = 0; d < c.length; d++) {
|
|
4941
4941
|
c[d] = c[d].toUpperCase();
|
|
4942
4942
|
var u = !1;
|
|
4943
|
-
for (var f in
|
|
4944
|
-
if (
|
|
4943
|
+
for (var f in a.supportedCommands)
|
|
4944
|
+
if (a.supportedCommands[f].includes(c[d])) {
|
|
4945
4945
|
u = this.commands[f] = !0;
|
|
4946
4946
|
break;
|
|
4947
4947
|
}
|
|
4948
4948
|
u || (this.keys[c[d]] = !0);
|
|
4949
4949
|
}
|
|
4950
|
-
for (var g in
|
|
4950
|
+
for (var g in a.supportedCommands)
|
|
4951
4951
|
this.commands[g] || (this.commands[g] = !1);
|
|
4952
4952
|
} }, { key: "execute", value: function(c) {
|
|
4953
4953
|
var d, u = { CMD: c.ctrlKey || c.metaKey, SHIFT: c.shiftKey, ALT: c.altKey }, f = !0;
|
|
@@ -4955,13 +4955,13 @@ var Jo = { exports: {} };
|
|
|
4955
4955
|
this.commands[d] !== u[d] && (f = !1);
|
|
4956
4956
|
var g, p = !0;
|
|
4957
4957
|
for (g in this.keys)
|
|
4958
|
-
p = p && c.keyCode ===
|
|
4958
|
+
p = p && c.keyCode === a.keyCodes[g];
|
|
4959
4959
|
f && p && this.callback(c);
|
|
4960
4960
|
} }, { key: "remove", value: function() {
|
|
4961
4961
|
this.element.removeEventListener("keydown", this.executeShortcut);
|
|
4962
|
-
} }]),
|
|
4962
|
+
} }]), a;
|
|
4963
4963
|
}();
|
|
4964
|
-
o.default =
|
|
4964
|
+
o.default = l;
|
|
4965
4965
|
}]).default;
|
|
4966
4966
|
});
|
|
4967
4967
|
})(Jo);
|
|
@@ -5218,10 +5218,10 @@ const Ct = class en extends _e {
|
|
|
5218
5218
|
const s = i.isEmpty ? o : o + 1;
|
|
5219
5219
|
let r;
|
|
5220
5220
|
if (t) {
|
|
5221
|
-
const
|
|
5222
|
-
r = Object.assign(
|
|
5221
|
+
const a = await this.api.blocks.composeBlockData(e);
|
|
5222
|
+
r = Object.assign(a, t);
|
|
5223
5223
|
}
|
|
5224
|
-
const
|
|
5224
|
+
const l = this.api.blocks.insert(
|
|
5225
5225
|
e,
|
|
5226
5226
|
r,
|
|
5227
5227
|
void 0,
|
|
@@ -5229,8 +5229,8 @@ const Ct = class en extends _e {
|
|
|
5229
5229
|
void 0,
|
|
5230
5230
|
i.isEmpty
|
|
5231
5231
|
);
|
|
5232
|
-
|
|
5233
|
-
block:
|
|
5232
|
+
l.call(ee.APPEND_CALLBACK), this.api.caret.setToBlock(s), this.emit("toolbox-block-added", {
|
|
5233
|
+
block: l
|
|
5234
5234
|
}), this.api.toolbar.close(), this.api.tooltip.hide();
|
|
5235
5235
|
}
|
|
5236
5236
|
};
|
|
@@ -5372,7 +5372,7 @@ class Ms extends E {
|
|
|
5372
5372
|
this.hoveredBlock = e;
|
|
5373
5373
|
const t = e.holder, { isMobile: o } = this.Editor.UI;
|
|
5374
5374
|
let i;
|
|
5375
|
-
const s = 20, r = e.firstInput,
|
|
5375
|
+
const s = 20, r = e.firstInput, l = t.getBoundingClientRect(), a = r !== void 0 ? r.getBoundingClientRect() : null, c = a !== null ? a.top - l.top : null, d = c !== null ? c > s : void 0;
|
|
5376
5376
|
if (o)
|
|
5377
5377
|
i = t.offsetTop + t.offsetHeight;
|
|
5378
5378
|
else if (r === void 0 || d) {
|
|
@@ -5395,7 +5395,7 @@ class Ms extends E {
|
|
|
5395
5395
|
case "image":
|
|
5396
5396
|
return ns;
|
|
5397
5397
|
case "table":
|
|
5398
|
-
return
|
|
5398
|
+
return ls;
|
|
5399
5399
|
case "alert":
|
|
5400
5400
|
return _s;
|
|
5401
5401
|
case "List":
|
|
@@ -5416,7 +5416,7 @@ class Ms extends E {
|
|
|
5416
5416
|
case "h6":
|
|
5417
5417
|
return Yi;
|
|
5418
5418
|
case "paragraph":
|
|
5419
|
-
return
|
|
5419
|
+
return as;
|
|
5420
5420
|
case "code":
|
|
5421
5421
|
return Os;
|
|
5422
5422
|
case "quote":
|
|
@@ -5548,7 +5548,7 @@ class Ms extends E {
|
|
|
5548
5548
|
this.removeAllNodes(), this.toolboxInstance && this.toolboxInstance.destroy();
|
|
5549
5549
|
}
|
|
5550
5550
|
}
|
|
5551
|
-
var
|
|
5551
|
+
var le = /* @__PURE__ */ ((n) => (n[n.Block = 0] = "Block", n[n.Inline = 1] = "Inline", n[n.Tune = 2] = "Tune", n))(le || {}), Pe = /* @__PURE__ */ ((n) => (n.Shortcut = "shortcut", n.Toolbox = "toolbox", n.EnabledInlineTools = "inlineToolbar", n.EnabledBlockTunes = "tunes", n.Config = "config", n))(Pe || {}), on = /* @__PURE__ */ ((n) => (n.Shortcut = "shortcut", n.SanitizeConfig = "sanitize", n))(on || {}), pe = /* @__PURE__ */ ((n) => (n.IsEnabledLineBreaks = "enableLineBreaks", n.Toolbox = "toolbox", n.ConversionConfig = "conversionConfig", n.IsReadOnlySupported = "isReadOnlySupported", n.PasteConfig = "pasteConfig", n))(pe || {}), We = /* @__PURE__ */ ((n) => (n.IsInline = "isInline", n.Title = "title", n.IsReadOnlySupported = "isReadOnlySupported", n))(We || {}), mt = /* @__PURE__ */ ((n) => (n.IsTune = "isTune", n))(mt || {});
|
|
5552
5552
|
class Tt {
|
|
5553
5553
|
/**
|
|
5554
5554
|
* @class
|
|
@@ -5561,9 +5561,9 @@ class Tt {
|
|
|
5561
5561
|
api: i,
|
|
5562
5562
|
isDefault: s,
|
|
5563
5563
|
isInternal: r = !1,
|
|
5564
|
-
defaultPlaceholder:
|
|
5564
|
+
defaultPlaceholder: l
|
|
5565
5565
|
}) {
|
|
5566
|
-
this.api = i, this.name = e, this.constructable = t, this.config = o, this.isDefault = s, this.isInternal = r, this.defaultPlaceholder =
|
|
5566
|
+
this.api = i, this.name = e, this.constructable = t, this.config = o, this.isDefault = s, this.isInternal = r, this.defaultPlaceholder = l;
|
|
5567
5567
|
}
|
|
5568
5568
|
/**
|
|
5569
5569
|
* Returns Tool user configuration
|
|
@@ -5606,19 +5606,19 @@ class Tt {
|
|
|
5606
5606
|
* Returns true if Tools is inline
|
|
5607
5607
|
*/
|
|
5608
5608
|
isInline() {
|
|
5609
|
-
return this.type ===
|
|
5609
|
+
return this.type === le.Inline;
|
|
5610
5610
|
}
|
|
5611
5611
|
/**
|
|
5612
5612
|
* Returns true if Tools is block
|
|
5613
5613
|
*/
|
|
5614
5614
|
isBlock() {
|
|
5615
|
-
return this.type ===
|
|
5615
|
+
return this.type === le.Block;
|
|
5616
5616
|
}
|
|
5617
5617
|
/**
|
|
5618
5618
|
* Returns true if Tools is tune
|
|
5619
5619
|
*/
|
|
5620
5620
|
isTune() {
|
|
5621
|
-
return this.type ===
|
|
5621
|
+
return this.type === le.Tune;
|
|
5622
5622
|
}
|
|
5623
5623
|
}
|
|
5624
5624
|
class Ls extends E {
|
|
@@ -5773,7 +5773,7 @@ class Ls extends E {
|
|
|
5773
5773
|
this.enableShortcuts(o.name, r);
|
|
5774
5774
|
} catch {
|
|
5775
5775
|
}
|
|
5776
|
-
const
|
|
5776
|
+
const l = r !== void 0 ? vt(r) : void 0, a = D.t(
|
|
5777
5777
|
U.toolNames,
|
|
5778
5778
|
o.title || Ce(o.name)
|
|
5779
5779
|
);
|
|
@@ -5785,8 +5785,8 @@ class Ls extends E {
|
|
|
5785
5785
|
this.toolClicked(i);
|
|
5786
5786
|
},
|
|
5787
5787
|
hint: {
|
|
5788
|
-
title:
|
|
5789
|
-
description:
|
|
5788
|
+
title: a,
|
|
5789
|
+
description: l
|
|
5790
5790
|
}
|
|
5791
5791
|
};
|
|
5792
5792
|
if (h.isElement(c)) {
|
|
@@ -5909,8 +5909,8 @@ function sn(n, e, t, o) {
|
|
|
5909
5909
|
o === "left" ? (i.setStart(n, 0), i.setEnd(e, t)) : (i.setStart(e, t), i.setEnd(n, n.childNodes.length));
|
|
5910
5910
|
const s = i.cloneContents(), r = document.createElement("div");
|
|
5911
5911
|
r.appendChild(s);
|
|
5912
|
-
const
|
|
5913
|
-
return ei(
|
|
5912
|
+
const l = r.textContent || "";
|
|
5913
|
+
return ei(l);
|
|
5914
5914
|
}
|
|
5915
5915
|
function Re(n) {
|
|
5916
5916
|
const e = h.getDeepestNode(n);
|
|
@@ -5965,7 +5965,7 @@ function Ns(n) {
|
|
|
5965
5965
|
return e.isNativeInput;
|
|
5966
5966
|
} });
|
|
5967
5967
|
})(he);
|
|
5968
|
-
var
|
|
5968
|
+
var ln = {}, Mt = {};
|
|
5969
5969
|
Object.defineProperty(Mt, "__esModule", { value: !0 });
|
|
5970
5970
|
Mt.append = Ps;
|
|
5971
5971
|
function Ps(n, e) {
|
|
@@ -5979,7 +5979,7 @@ function Ps(n, e) {
|
|
|
5979
5979
|
Object.defineProperty(n, "append", { enumerable: !0, get: function() {
|
|
5980
5980
|
return e.append;
|
|
5981
5981
|
} });
|
|
5982
|
-
})(
|
|
5982
|
+
})(ln);
|
|
5983
5983
|
var Lt = {}, At = {};
|
|
5984
5984
|
Object.defineProperty(At, "__esModule", { value: !0 });
|
|
5985
5985
|
At.blockElements = Rs;
|
|
@@ -6033,11 +6033,11 @@ function Rs() {
|
|
|
6033
6033
|
return e.blockElements;
|
|
6034
6034
|
} });
|
|
6035
6035
|
})(Lt);
|
|
6036
|
-
var
|
|
6036
|
+
var an = {}, Nt = {};
|
|
6037
6037
|
Object.defineProperty(Nt, "__esModule", { value: !0 });
|
|
6038
6038
|
Nt.calculateBaseline = Ds;
|
|
6039
6039
|
function Ds(n) {
|
|
6040
|
-
var e = window.getComputedStyle(n), t = parseFloat(e.fontSize), o = parseFloat(e.lineHeight) || t * 1.2, i = parseFloat(e.paddingTop), s = parseFloat(e.borderTopWidth), r = parseFloat(e.marginTop),
|
|
6040
|
+
var e = window.getComputedStyle(n), t = parseFloat(e.fontSize), o = parseFloat(e.lineHeight) || t * 1.2, i = parseFloat(e.paddingTop), s = parseFloat(e.borderTopWidth), r = parseFloat(e.marginTop), l = t * 0.8, a = (o - t) / 2, c = r + s + i + a + l;
|
|
6041
6041
|
return c;
|
|
6042
6042
|
}
|
|
6043
6043
|
(function(n) {
|
|
@@ -6046,7 +6046,7 @@ function Ds(n) {
|
|
|
6046
6046
|
Object.defineProperty(n, "calculateBaseline", { enumerable: !0, get: function() {
|
|
6047
6047
|
return e.calculateBaseline;
|
|
6048
6048
|
} });
|
|
6049
|
-
})(
|
|
6049
|
+
})(an);
|
|
6050
6050
|
var cn = {}, Pt = {}, Rt = {}, Dt = {};
|
|
6051
6051
|
Object.defineProperty(Dt, "__esModule", { value: !0 });
|
|
6052
6052
|
Dt.isContentEditable = Fs;
|
|
@@ -6096,8 +6096,8 @@ function zs(n, e, t) {
|
|
|
6096
6096
|
return this[s] === void 0 && (this[s] = i.apply(this, r)), this[s];
|
|
6097
6097
|
}, o === "get" && t.set) {
|
|
6098
6098
|
const r = t.set;
|
|
6099
|
-
t.set = function(
|
|
6100
|
-
delete n[s], r.apply(this,
|
|
6099
|
+
t.set = function(l) {
|
|
6100
|
+
delete n[s], r.apply(this, l);
|
|
6101
6101
|
};
|
|
6102
6102
|
}
|
|
6103
6103
|
return t;
|
|
@@ -6138,8 +6138,8 @@ function Vs(n, e, t) {
|
|
|
6138
6138
|
return (...i) => {
|
|
6139
6139
|
const s = this, r = () => {
|
|
6140
6140
|
o = void 0, t !== !0 && n.apply(s, i);
|
|
6141
|
-
},
|
|
6142
|
-
window.clearTimeout(o), o = window.setTimeout(r, e),
|
|
6141
|
+
}, l = t === !0 && o !== void 0;
|
|
6142
|
+
window.clearTimeout(o), o = window.setTimeout(r, e), l && n.apply(s, i);
|
|
6143
6143
|
};
|
|
6144
6144
|
}
|
|
6145
6145
|
function oe(n) {
|
|
@@ -6229,20 +6229,20 @@ let rr = class {
|
|
|
6229
6229
|
});
|
|
6230
6230
|
}
|
|
6231
6231
|
};
|
|
6232
|
-
function
|
|
6233
|
-
let o, i, s, r = null,
|
|
6232
|
+
function lr(n, e, t = void 0) {
|
|
6233
|
+
let o, i, s, r = null, l = 0;
|
|
6234
6234
|
t || (t = {});
|
|
6235
|
-
const
|
|
6236
|
-
|
|
6235
|
+
const a = function() {
|
|
6236
|
+
l = t.leading === !1 ? 0 : Date.now(), r = null, s = n.apply(o, i), r === null && (o = i = null);
|
|
6237
6237
|
};
|
|
6238
6238
|
return function() {
|
|
6239
6239
|
const c = Date.now();
|
|
6240
|
-
!
|
|
6241
|
-
const d = e - (c -
|
|
6242
|
-
return o = this, i = arguments, d <= 0 || d > e ? (r && (clearTimeout(r), r = null),
|
|
6240
|
+
!l && t.leading === !1 && (l = c);
|
|
6241
|
+
const d = e - (c - l);
|
|
6242
|
+
return o = this, i = arguments, d <= 0 || d > e ? (r && (clearTimeout(r), r = null), l = c, s = n.apply(o, i), r === null && (o = i = null)) : !r && t.trailing !== !1 && (r = setTimeout(a, d)), s;
|
|
6243
6243
|
};
|
|
6244
6244
|
}
|
|
6245
|
-
const
|
|
6245
|
+
const ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6246
6246
|
__proto__: null,
|
|
6247
6247
|
PromiseQueue: rr,
|
|
6248
6248
|
beautifyShortcut: Ys,
|
|
@@ -6268,9 +6268,9 @@ const lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6268
6268
|
keyCodes: ir,
|
|
6269
6269
|
mouseButtons: sr,
|
|
6270
6270
|
notEmpty: jt,
|
|
6271
|
-
throttle:
|
|
6271
|
+
throttle: lr,
|
|
6272
6272
|
typeOf: oe
|
|
6273
|
-
}, Symbol.toStringTag, { value: "Module" })), Ht = /* @__PURE__ */ Hn(
|
|
6273
|
+
}, Symbol.toStringTag, { value: "Module" })), Ht = /* @__PURE__ */ Hn(ar);
|
|
6274
6274
|
Object.defineProperty(Ft, "__esModule", { value: !0 });
|
|
6275
6275
|
Ft.containsOnlyInlineElements = hr;
|
|
6276
6276
|
var cr = Ht, dr = Lt;
|
|
@@ -6297,8 +6297,8 @@ function ur(n, e, t) {
|
|
|
6297
6297
|
e === void 0 && (e = null), t === void 0 && (t = {});
|
|
6298
6298
|
var i = document.createElement(n);
|
|
6299
6299
|
if (Array.isArray(e)) {
|
|
6300
|
-
var s = e.filter(function(
|
|
6301
|
-
return
|
|
6300
|
+
var s = e.filter(function(l) {
|
|
6301
|
+
return l !== void 0;
|
|
6302
6302
|
});
|
|
6303
6303
|
(o = i.classList).add.apply(o, s);
|
|
6304
6304
|
} else
|
|
@@ -6582,9 +6582,9 @@ function Wr(n) {
|
|
|
6582
6582
|
return e.offset;
|
|
6583
6583
|
} });
|
|
6584
6584
|
})(En);
|
|
6585
|
-
var xn = {},
|
|
6586
|
-
Object.defineProperty(
|
|
6587
|
-
|
|
6585
|
+
var xn = {}, lo = {};
|
|
6586
|
+
Object.defineProperty(lo, "__esModule", { value: !0 });
|
|
6587
|
+
lo.prepend = Yr;
|
|
6588
6588
|
function Yr(n, e) {
|
|
6589
6589
|
Array.isArray(e) ? (e = e.reverse(), e.forEach(function(t) {
|
|
6590
6590
|
return n.prepend(t);
|
|
@@ -6592,7 +6592,7 @@ function Yr(n, e) {
|
|
|
6592
6592
|
}
|
|
6593
6593
|
(function(n) {
|
|
6594
6594
|
Object.defineProperty(n, "__esModule", { value: !0 }), n.prepend = void 0;
|
|
6595
|
-
var e =
|
|
6595
|
+
var e = lo;
|
|
6596
6596
|
Object.defineProperty(n, "prepend", { enumerable: !0, get: function() {
|
|
6597
6597
|
return e.prepend;
|
|
6598
6598
|
} });
|
|
@@ -6607,7 +6607,7 @@ function Yr(n, e) {
|
|
|
6607
6607
|
Object.defineProperty(n, "isNativeInput", { enumerable: !0, get: function() {
|
|
6608
6608
|
return t.isNativeInput;
|
|
6609
6609
|
} });
|
|
6610
|
-
var o =
|
|
6610
|
+
var o = ln;
|
|
6611
6611
|
Object.defineProperty(n, "append", { enumerable: !0, get: function() {
|
|
6612
6612
|
return o.append;
|
|
6613
6613
|
} });
|
|
@@ -6615,7 +6615,7 @@ function Yr(n, e) {
|
|
|
6615
6615
|
Object.defineProperty(n, "blockElements", { enumerable: !0, get: function() {
|
|
6616
6616
|
return i.blockElements;
|
|
6617
6617
|
} });
|
|
6618
|
-
var s =
|
|
6618
|
+
var s = an;
|
|
6619
6619
|
Object.defineProperty(n, "calculateBaseline", { enumerable: !0, get: function() {
|
|
6620
6620
|
return s.calculateBaseline;
|
|
6621
6621
|
} });
|
|
@@ -6623,13 +6623,13 @@ function Yr(n, e) {
|
|
|
6623
6623
|
Object.defineProperty(n, "canSetCaret", { enumerable: !0, get: function() {
|
|
6624
6624
|
return r.canSetCaret;
|
|
6625
6625
|
} });
|
|
6626
|
-
var
|
|
6626
|
+
var l = Ve;
|
|
6627
6627
|
Object.defineProperty(n, "containsOnlyInlineElements", { enumerable: !0, get: function() {
|
|
6628
|
-
return
|
|
6628
|
+
return l.containsOnlyInlineElements;
|
|
6629
6629
|
} });
|
|
6630
|
-
var
|
|
6630
|
+
var a = un;
|
|
6631
6631
|
Object.defineProperty(n, "fragmentToString", { enumerable: !0, get: function() {
|
|
6632
|
-
return
|
|
6632
|
+
return a.fragmentToString;
|
|
6633
6633
|
} });
|
|
6634
6634
|
var c = pn;
|
|
6635
6635
|
Object.defineProperty(n, "getContentLength", { enumerable: !0, get: function() {
|
|
@@ -6709,11 +6709,11 @@ function Xr(n, e, t, o, i) {
|
|
|
6709
6709
|
i === void 0 && (i = !1);
|
|
6710
6710
|
var r = document.createRange();
|
|
6711
6711
|
if (o === "left" ? (r.setStart(n, 0), r.setEnd(e, t)) : (r.setStart(e, t), r.setEnd(n, n.childNodes.length)), i === !0) {
|
|
6712
|
-
var
|
|
6713
|
-
return (0, Kr.fragmentToString)(
|
|
6712
|
+
var l = r.extractContents();
|
|
6713
|
+
return (0, Kr.fragmentToString)(l);
|
|
6714
6714
|
}
|
|
6715
|
-
var
|
|
6716
|
-
c.appendChild(
|
|
6715
|
+
var a = r.cloneContents(), c = document.createElement("div");
|
|
6716
|
+
c.appendChild(a);
|
|
6717
6717
|
var d = (s = c.textContent) !== null && s !== void 0 ? s : "";
|
|
6718
6718
|
return d;
|
|
6719
6719
|
}
|
|
@@ -6739,9 +6739,9 @@ var Bn = {};
|
|
|
6739
6739
|
return e.getContenteditableSlice;
|
|
6740
6740
|
} });
|
|
6741
6741
|
})(Bn);
|
|
6742
|
-
var Cn = {},
|
|
6743
|
-
Object.defineProperty(
|
|
6744
|
-
|
|
6742
|
+
var Cn = {}, ao = {};
|
|
6743
|
+
Object.defineProperty(ao, "__esModule", { value: !0 });
|
|
6744
|
+
ao.focus = Jr;
|
|
6745
6745
|
var Gr = de;
|
|
6746
6746
|
function Jr(n, e) {
|
|
6747
6747
|
var t, o;
|
|
@@ -6753,29 +6753,29 @@ function Jr(n, e) {
|
|
|
6753
6753
|
var s = document.createRange(), r = window.getSelection();
|
|
6754
6754
|
if (!r)
|
|
6755
6755
|
return;
|
|
6756
|
-
var
|
|
6756
|
+
var l = function(f, g) {
|
|
6757
6757
|
g === void 0 && (g = !1);
|
|
6758
6758
|
var p = document.createTextNode("");
|
|
6759
6759
|
g ? f.insertBefore(p, f.firstChild) : f.appendChild(p), s.setStart(p, 0), s.setEnd(p, 0);
|
|
6760
|
-
},
|
|
6760
|
+
}, a = function(f) {
|
|
6761
6761
|
return f != null;
|
|
6762
6762
|
}, c = n.childNodes, d = e ? c[0] : c[c.length - 1];
|
|
6763
|
-
if (
|
|
6764
|
-
for (;
|
|
6763
|
+
if (a(d)) {
|
|
6764
|
+
for (; a(d) && d.nodeType !== Node.TEXT_NODE; )
|
|
6765
6765
|
d = e ? d.firstChild : d.lastChild;
|
|
6766
|
-
if (
|
|
6766
|
+
if (a(d) && d.nodeType === Node.TEXT_NODE) {
|
|
6767
6767
|
var u = (o = (t = d.textContent) === null || t === void 0 ? void 0 : t.length) !== null && o !== void 0 ? o : 0, i = e ? 0 : u;
|
|
6768
6768
|
s.setStart(d, i), s.setEnd(d, i);
|
|
6769
6769
|
} else
|
|
6770
|
-
|
|
6770
|
+
l(n, e);
|
|
6771
6771
|
} else
|
|
6772
|
-
|
|
6772
|
+
l(n);
|
|
6773
6773
|
r.removeAllRanges(), r.addRange(s);
|
|
6774
6774
|
}
|
|
6775
6775
|
}
|
|
6776
6776
|
(function(n) {
|
|
6777
6777
|
Object.defineProperty(n, "__esModule", { value: !0 }), n.focus = void 0;
|
|
6778
|
-
var e =
|
|
6778
|
+
var e = ao;
|
|
6779
6779
|
Object.defineProperty(n, "focus", { enumerable: !0, get: function() {
|
|
6780
6780
|
return e.focus;
|
|
6781
6781
|
} });
|
|
@@ -6799,8 +6799,8 @@ function Qr() {
|
|
|
6799
6799
|
})(co);
|
|
6800
6800
|
var Tn = {}, et = {};
|
|
6801
6801
|
Object.defineProperty(et, "__esModule", { value: !0 });
|
|
6802
|
-
et.getRange =
|
|
6803
|
-
function
|
|
6802
|
+
et.getRange = el;
|
|
6803
|
+
function el() {
|
|
6804
6804
|
var n = window.getSelection();
|
|
6805
6805
|
return n && n.rangeCount ? n.getRangeAt(0) : null;
|
|
6806
6806
|
}
|
|
@@ -6813,16 +6813,16 @@ function ea() {
|
|
|
6813
6813
|
})(Tn);
|
|
6814
6814
|
var Sn = {}, ho = {};
|
|
6815
6815
|
Object.defineProperty(ho, "__esModule", { value: !0 });
|
|
6816
|
-
ho.isCaretAtEndOfInput =
|
|
6817
|
-
var Bo = de,
|
|
6818
|
-
function
|
|
6816
|
+
ho.isCaretAtEndOfInput = nl;
|
|
6817
|
+
var Bo = de, tl = co, ol = St;
|
|
6818
|
+
function nl(n) {
|
|
6819
6819
|
var e = (0, Bo.getDeepestNode)(n, !0);
|
|
6820
6820
|
if (e === null)
|
|
6821
6821
|
return !0;
|
|
6822
6822
|
if ((0, Bo.isNativeInput)(e))
|
|
6823
6823
|
return e.selectionEnd === e.value.length;
|
|
6824
|
-
var t = (0,
|
|
6825
|
-
return o === null ? !1 : (0,
|
|
6824
|
+
var t = (0, tl.getCaretNodeAndOffset)(), o = t[0], i = t[1];
|
|
6825
|
+
return o === null ? !1 : (0, ol.checkContenteditableSliceForEmptiness)(n, o, i, "right");
|
|
6826
6826
|
}
|
|
6827
6827
|
(function(n) {
|
|
6828
6828
|
Object.defineProperty(n, "__esModule", { value: !0 }), n.isCaretAtEndOfInput = void 0;
|
|
@@ -6833,9 +6833,9 @@ function na(n) {
|
|
|
6833
6833
|
})(Sn);
|
|
6834
6834
|
var In = {}, uo = {};
|
|
6835
6835
|
Object.defineProperty(uo, "__esModule", { value: !0 });
|
|
6836
|
-
uo.isCaretAtStartOfInput =
|
|
6837
|
-
var Ae = de,
|
|
6838
|
-
function
|
|
6836
|
+
uo.isCaretAtStartOfInput = rl;
|
|
6837
|
+
var Ae = de, il = Qe, sl = Xe;
|
|
6838
|
+
function rl(n) {
|
|
6839
6839
|
var e = (0, Ae.getDeepestNode)(n);
|
|
6840
6840
|
if (e === null || (0, Ae.isEmpty)(n))
|
|
6841
6841
|
return !0;
|
|
@@ -6843,8 +6843,8 @@ function ra(n) {
|
|
|
6843
6843
|
return e.selectionEnd === 0;
|
|
6844
6844
|
if ((0, Ae.isEmpty)(n))
|
|
6845
6845
|
return !0;
|
|
6846
|
-
var t = (0,
|
|
6847
|
-
return o === null ? !1 : (0,
|
|
6846
|
+
var t = (0, il.getCaretNodeAndOffset)(), o = t[0], i = t[1];
|
|
6847
|
+
return o === null ? !1 : (0, sl.checkContenteditableSliceForEmptiness)(n, o, i, "left");
|
|
6848
6848
|
}
|
|
6849
6849
|
(function(n) {
|
|
6850
6850
|
Object.defineProperty(n, "__esModule", { value: !0 }), n.isCaretAtStartOfInput = void 0;
|
|
@@ -6855,10 +6855,10 @@ function ra(n) {
|
|
|
6855
6855
|
})(In);
|
|
6856
6856
|
var On = {}, po = {};
|
|
6857
6857
|
Object.defineProperty(po, "__esModule", { value: !0 });
|
|
6858
|
-
po.save =
|
|
6859
|
-
var
|
|
6860
|
-
function
|
|
6861
|
-
var n = (0,
|
|
6858
|
+
po.save = cl;
|
|
6859
|
+
var ll = de, al = et;
|
|
6860
|
+
function cl() {
|
|
6861
|
+
var n = (0, al.getRange)(), e = (0, ll.make)("span");
|
|
6862
6862
|
if (e.id = "cursor", e.hidden = !0, !!n)
|
|
6863
6863
|
return n.insertNode(e), function() {
|
|
6864
6864
|
var o = window.getSelection();
|
|
@@ -6900,16 +6900,16 @@ function ca() {
|
|
|
6900
6900
|
Object.defineProperty(n, "isCaretAtEndOfInput", { enumerable: !0, get: function() {
|
|
6901
6901
|
return r.isCaretAtEndOfInput;
|
|
6902
6902
|
} });
|
|
6903
|
-
var
|
|
6903
|
+
var l = In;
|
|
6904
6904
|
Object.defineProperty(n, "isCaretAtStartOfInput", { enumerable: !0, get: function() {
|
|
6905
|
-
return
|
|
6905
|
+
return l.isCaretAtStartOfInput;
|
|
6906
6906
|
} });
|
|
6907
|
-
var
|
|
6907
|
+
var a = On;
|
|
6908
6908
|
Object.defineProperty(n, "save", { enumerable: !0, get: function() {
|
|
6909
|
-
return
|
|
6909
|
+
return a.save;
|
|
6910
6910
|
} });
|
|
6911
6911
|
})(rn);
|
|
6912
|
-
class
|
|
6912
|
+
class dl extends E {
|
|
6913
6913
|
/**
|
|
6914
6914
|
* All keydowns on Block
|
|
6915
6915
|
*
|
|
@@ -7056,8 +7056,8 @@ class da extends E {
|
|
|
7056
7056
|
}
|
|
7057
7057
|
if (i.isEmpty) {
|
|
7058
7058
|
t.removeBlock(i);
|
|
7059
|
-
const
|
|
7060
|
-
o.setToBlock(
|
|
7059
|
+
const a = t.currentBlock;
|
|
7060
|
+
o.setToBlock(a, o.positions.END);
|
|
7061
7061
|
return;
|
|
7062
7062
|
}
|
|
7063
7063
|
ko(s, i) ? this.mergeBlocks(s, i) : o.setToBlock(s, o.positions.END);
|
|
@@ -7254,11 +7254,11 @@ class ct {
|
|
|
7254
7254
|
move(e, t) {
|
|
7255
7255
|
const o = this.blocks.splice(t, 1)[0], i = e - 1, s = Math.max(0, i), r = this.blocks[s];
|
|
7256
7256
|
e > 0 ? this.insertToDOM(o, "afterend", r) : this.insertToDOM(o, "beforebegin", r), this.blocks.splice(e, 0, o);
|
|
7257
|
-
const
|
|
7257
|
+
const l = this.composeBlockEvent("move", {
|
|
7258
7258
|
fromIndex: t,
|
|
7259
7259
|
toIndex: e
|
|
7260
7260
|
});
|
|
7261
|
-
o.call(ee.MOVED,
|
|
7261
|
+
o.call(ee.MOVED, l);
|
|
7262
7262
|
}
|
|
7263
7263
|
/**
|
|
7264
7264
|
* Insert new Block at passed index
|
|
@@ -7379,8 +7379,8 @@ class ct {
|
|
|
7379
7379
|
});
|
|
7380
7380
|
}
|
|
7381
7381
|
}
|
|
7382
|
-
const Co = "block-removed", To = "block-added",
|
|
7383
|
-
class
|
|
7382
|
+
const Co = "block-removed", To = "block-added", hl = "block-moved", So = "block-changed";
|
|
7383
|
+
class ul {
|
|
7384
7384
|
constructor() {
|
|
7385
7385
|
this.completed = Promise.resolve();
|
|
7386
7386
|
}
|
|
@@ -7395,7 +7395,7 @@ class ua {
|
|
|
7395
7395
|
});
|
|
7396
7396
|
}
|
|
7397
7397
|
}
|
|
7398
|
-
class
|
|
7398
|
+
class pl extends E {
|
|
7399
7399
|
constructor() {
|
|
7400
7400
|
super(...arguments), this._currentBlockIndex = -1, this._blocks = null;
|
|
7401
7401
|
}
|
|
@@ -7539,7 +7539,7 @@ class pa extends E {
|
|
|
7539
7539
|
id: o = void 0,
|
|
7540
7540
|
tunes: i = {}
|
|
7541
7541
|
}) {
|
|
7542
|
-
const s = this.Editor.ReadOnly.isEnabled, r = this.Editor.Tools.blockTools.get(e),
|
|
7542
|
+
const s = this.Editor.ReadOnly.isEnabled, r = this.Editor.Tools.blockTools.get(e), l = new R({
|
|
7543
7543
|
id: o,
|
|
7544
7544
|
data: t,
|
|
7545
7545
|
tool: r,
|
|
@@ -7548,8 +7548,8 @@ class pa extends E {
|
|
|
7548
7548
|
tunesData: i
|
|
7549
7549
|
}, this.eventsDispatcher);
|
|
7550
7550
|
return s || window.requestIdleCallback(() => {
|
|
7551
|
-
this.bindBlockEvents(
|
|
7552
|
-
}, { timeout: 2e3 }),
|
|
7551
|
+
this.bindBlockEvents(l);
|
|
7552
|
+
}, { timeout: 2e3 }), l;
|
|
7553
7553
|
}
|
|
7554
7554
|
/**
|
|
7555
7555
|
* Insert new block into _blocks
|
|
@@ -7570,21 +7570,21 @@ class pa extends E {
|
|
|
7570
7570
|
index: i,
|
|
7571
7571
|
needToFocus: s = !0,
|
|
7572
7572
|
replace: r = !1,
|
|
7573
|
-
tunes:
|
|
7573
|
+
tunes: l = {}
|
|
7574
7574
|
} = {}) {
|
|
7575
|
-
let
|
|
7576
|
-
|
|
7575
|
+
let a = i;
|
|
7576
|
+
a === void 0 && (a = this.currentBlockIndex + (r ? 0 : 1));
|
|
7577
7577
|
const c = this.composeBlock({
|
|
7578
7578
|
id: e,
|
|
7579
7579
|
tool: t,
|
|
7580
7580
|
data: o,
|
|
7581
|
-
tunes:
|
|
7581
|
+
tunes: l
|
|
7582
7582
|
});
|
|
7583
|
-
return r && this.blockDidMutated(Co, this.getBlockByIndex(
|
|
7584
|
-
index:
|
|
7585
|
-
}), this._blocks.insert(
|
|
7586
|
-
index:
|
|
7587
|
-
}), s ? this.currentBlockIndex =
|
|
7583
|
+
return r && this.blockDidMutated(Co, this.getBlockByIndex(a), {
|
|
7584
|
+
index: a
|
|
7585
|
+
}), this._blocks.insert(a, c, r), this.blockDidMutated(To, c, {
|
|
7586
|
+
index: a
|
|
7587
|
+
}), s ? this.currentBlockIndex = a : a <= this.currentBlockIndex && this.currentBlockIndex++, c;
|
|
7588
7588
|
}
|
|
7589
7589
|
/**
|
|
7590
7590
|
* Inserts several blocks at once
|
|
@@ -7847,7 +7847,7 @@ class pa extends E {
|
|
|
7847
7847
|
I("Warning during 'move' call: indices cannot be lower than 0 or greater than the amount of blocks.", "warn");
|
|
7848
7848
|
return;
|
|
7849
7849
|
}
|
|
7850
|
-
this._blocks.move(e, t), this.currentBlockIndex = e, this.blockDidMutated(
|
|
7850
|
+
this._blocks.move(e, t), this.currentBlockIndex = e, this.blockDidMutated(hl, this.currentBlock, {
|
|
7851
7851
|
fromIndex: t,
|
|
7852
7852
|
toIndex: e
|
|
7853
7853
|
});
|
|
@@ -7866,12 +7866,12 @@ class pa extends E {
|
|
|
7866
7866
|
const s = this.Editor.Tools.blockTools.get(t);
|
|
7867
7867
|
if (!s)
|
|
7868
7868
|
throw new Error(`Could not convert Block. Tool «${t}» not found.`);
|
|
7869
|
-
const r = await e.exportDataAsString(),
|
|
7869
|
+
const r = await e.exportDataAsString(), l = Z(
|
|
7870
7870
|
r,
|
|
7871
7871
|
s.sanitizeConfig
|
|
7872
7872
|
);
|
|
7873
|
-
let
|
|
7874
|
-
return o && (
|
|
7873
|
+
let a = yo(l, s.conversionConfig, s.settings);
|
|
7874
|
+
return o && (a = Object.assign(a, o)), this.replace(e, s.name, a);
|
|
7875
7875
|
}
|
|
7876
7876
|
/**
|
|
7877
7877
|
* Sets current Block Index -1 which means unknown
|
|
@@ -7888,7 +7888,7 @@ class pa extends E {
|
|
|
7888
7888
|
* 2) in api.blocks.clear we should add empty block
|
|
7889
7889
|
*/
|
|
7890
7890
|
async clear(e = !1) {
|
|
7891
|
-
const t = new
|
|
7891
|
+
const t = new ul();
|
|
7892
7892
|
[...this.blocks].forEach((i) => {
|
|
7893
7893
|
t.add(async () => {
|
|
7894
7894
|
await this.removeBlock(i, !1);
|
|
@@ -7967,7 +7967,7 @@ class pa extends E {
|
|
|
7967
7967
|
}), t;
|
|
7968
7968
|
}
|
|
7969
7969
|
}
|
|
7970
|
-
class
|
|
7970
|
+
class fl extends E {
|
|
7971
7971
|
constructor() {
|
|
7972
7972
|
super(...arguments), this.anyBlockSelectedCache = null, this.needToSelectAll = !1, this.nativeInputSelected = !1, this.readyToBlockSelection = !1;
|
|
7973
7973
|
}
|
|
@@ -8086,10 +8086,10 @@ class fa extends E {
|
|
|
8086
8086
|
clearSelection(e, t = !1) {
|
|
8087
8087
|
const { BlockManager: o, Caret: i, RectangleSelection: s } = this.Editor;
|
|
8088
8088
|
this.needToSelectAll = !1, this.nativeInputSelected = !1, this.readyToBlockSelection = !1;
|
|
8089
|
-
const r = e && e instanceof KeyboardEvent,
|
|
8090
|
-
if (this.anyBlockSelected && r &&
|
|
8091
|
-
const
|
|
8092
|
-
o.insertDefaultBlockAtIndex(
|
|
8089
|
+
const r = e && e instanceof KeyboardEvent, l = r && Oo(e.keyCode);
|
|
8090
|
+
if (this.anyBlockSelected && r && l && !v.isSelectionExists) {
|
|
8091
|
+
const a = o.removeSelectedBlocks();
|
|
8092
|
+
o.insertDefaultBlockAtIndex(a, !0), i.setToBlock(o.currentBlock), je(() => {
|
|
8093
8093
|
const c = e.key;
|
|
8094
8094
|
i.insertContentAtCaretPosition(c.length > 1 ? "" : c);
|
|
8095
8095
|
}, 20)();
|
|
@@ -8110,8 +8110,8 @@ class fa extends E {
|
|
|
8110
8110
|
e.preventDefault();
|
|
8111
8111
|
const t = h.make("div");
|
|
8112
8112
|
this.selectedBlocks.forEach((s) => {
|
|
8113
|
-
const r = Z(s.holder.innerHTML, this.sanitizerConfig),
|
|
8114
|
-
|
|
8113
|
+
const r = Z(s.holder.innerHTML, this.sanitizerConfig), l = h.make("p");
|
|
8114
|
+
l.innerHTML = r, t.appendChild(l);
|
|
8115
8115
|
});
|
|
8116
8116
|
const o = Array.from(t.childNodes).map((s) => s.textContent).join(`
|
|
8117
8117
|
|
|
@@ -8244,16 +8244,16 @@ class Ye extends E {
|
|
|
8244
8244
|
}
|
|
8245
8245
|
if (!r)
|
|
8246
8246
|
return;
|
|
8247
|
-
let
|
|
8247
|
+
let l, a = o;
|
|
8248
8248
|
if (t === this.positions.START)
|
|
8249
|
-
|
|
8249
|
+
l = h.getDeepestNode(r, !1), a = 0;
|
|
8250
8250
|
else if (t === this.positions.END)
|
|
8251
|
-
|
|
8251
|
+
l = h.getDeepestNode(r, !0), a = h.getContentLength(l);
|
|
8252
8252
|
else {
|
|
8253
8253
|
const { node: d, offset: u } = h.getNodeByOffset(r, o);
|
|
8254
|
-
d ? (
|
|
8254
|
+
d ? (l = d, a = u) : (l = h.getDeepestNode(r, !1), a = 0);
|
|
8255
8255
|
}
|
|
8256
|
-
this.set(
|
|
8256
|
+
this.set(l, a), i.setCurrentBlockByChildNode(e.holder), i.currentBlock.currentInput = r;
|
|
8257
8257
|
}
|
|
8258
8258
|
/**
|
|
8259
8259
|
* Set caret to the current input of current Block.
|
|
@@ -8310,8 +8310,8 @@ class Ye extends E {
|
|
|
8310
8310
|
const t = e.getRangeAt(0), o = this.Editor.BlockManager.currentBlock.currentInput;
|
|
8311
8311
|
if (t.deleteContents(), o)
|
|
8312
8312
|
if (h.isNativeInput(o)) {
|
|
8313
|
-
const i = o, s = document.createDocumentFragment(), r = i.value.substring(0, i.selectionStart),
|
|
8314
|
-
return s.textContent =
|
|
8313
|
+
const i = o, s = document.createDocumentFragment(), r = i.value.substring(0, i.selectionStart), l = i.value.substring(i.selectionStart);
|
|
8314
|
+
return s.textContent = l, i.value = r, s;
|
|
8315
8315
|
} else {
|
|
8316
8316
|
const i = t.cloneRange();
|
|
8317
8317
|
return i.selectNodeContents(o), i.setStart(t.endContainer, t.endOffset), i.extractContents();
|
|
@@ -8329,17 +8329,17 @@ class Ye extends E {
|
|
|
8329
8329
|
const { BlockManager: t } = this.Editor, { currentBlock: o, nextBlock: i } = t;
|
|
8330
8330
|
if (o === void 0)
|
|
8331
8331
|
return !1;
|
|
8332
|
-
const { nextInput: s, currentInput: r } = o,
|
|
8333
|
-
let
|
|
8334
|
-
const c = e ||
|
|
8332
|
+
const { nextInput: s, currentInput: r } = o, l = r !== void 0 ? De(r) : void 0;
|
|
8333
|
+
let a = i;
|
|
8334
|
+
const c = e || l || !o.focusable;
|
|
8335
8335
|
if (s && c)
|
|
8336
8336
|
return this.setToInput(s, this.positions.START), !0;
|
|
8337
|
-
if (
|
|
8337
|
+
if (a === null) {
|
|
8338
8338
|
if (o.tool.isDefault || !c)
|
|
8339
8339
|
return !1;
|
|
8340
|
-
|
|
8340
|
+
a = t.insertAtEnd();
|
|
8341
8341
|
}
|
|
8342
|
-
return c ? (this.setToBlock(
|
|
8342
|
+
return c ? (this.setToBlock(a, this.positions.START), !0) : !1;
|
|
8343
8343
|
}
|
|
8344
8344
|
/**
|
|
8345
8345
|
* Set's caret to the previous Tool`s input or Block
|
|
@@ -8352,8 +8352,8 @@ class Ye extends E {
|
|
|
8352
8352
|
const { currentBlock: t, previousBlock: o } = this.Editor.BlockManager;
|
|
8353
8353
|
if (!t)
|
|
8354
8354
|
return !1;
|
|
8355
|
-
const { previousInput: i, currentInput: s } = t, r = s !== void 0 ? Re(s) : void 0,
|
|
8356
|
-
return i &&
|
|
8355
|
+
const { previousInput: i, currentInput: s } = t, r = s !== void 0 ? Re(s) : void 0, l = e || r || !t.focusable;
|
|
8356
|
+
return i && l ? (this.setToInput(i, this.positions.END), !0) : o !== null && l ? (this.setToBlock(o, this.positions.END), !0) : !1;
|
|
8357
8357
|
}
|
|
8358
8358
|
/**
|
|
8359
8359
|
* Inserts shadow element after passed element where caret can be placed
|
|
@@ -8387,11 +8387,11 @@ class Ye extends E {
|
|
|
8387
8387
|
o.innerHTML = e, Array.from(o.childNodes).forEach((c) => t.appendChild(c)), t.childNodes.length === 0 && t.appendChild(new Text());
|
|
8388
8388
|
const r = t.lastChild;
|
|
8389
8389
|
s.deleteContents(), s.insertNode(t);
|
|
8390
|
-
const
|
|
8391
|
-
|
|
8390
|
+
const l = document.createRange(), a = r.nodeType === Node.TEXT_NODE ? r : r.firstChild;
|
|
8391
|
+
a !== null && a.textContent !== null && l.setStart(a, a.textContent.length), i.removeAllRanges(), i.addRange(l);
|
|
8392
8392
|
}
|
|
8393
8393
|
}
|
|
8394
|
-
class
|
|
8394
|
+
class gl extends E {
|
|
8395
8395
|
constructor() {
|
|
8396
8396
|
super(...arguments), this.onMouseUp = () => {
|
|
8397
8397
|
this.listeners.off(document, "mouseover", this.onMouseOver), this.listeners.off(document, "mouseup", this.onMouseUp);
|
|
@@ -8400,16 +8400,20 @@ class ga extends E {
|
|
|
8400
8400
|
if (e.relatedTarget === null && e.target === null)
|
|
8401
8401
|
return;
|
|
8402
8402
|
const i = t.getBlockByChildNode(e.relatedTarget) || this.lastSelectedBlock, s = t.getBlockByChildNode(e.target);
|
|
8403
|
-
if (!
|
|
8403
|
+
if (!i || !s) {
|
|
8404
|
+
console.log("select 1");
|
|
8405
|
+
return;
|
|
8406
|
+
}
|
|
8407
|
+
if (s !== i) {
|
|
8404
8408
|
if (i === this.firstSelectedBlock) {
|
|
8405
|
-
v.get().removeAllRanges(), i.selected = !0, s.selected = !0, o.clearCache();
|
|
8409
|
+
v.get().removeAllRanges(), i.selected = !0, s.selected = !0, o.clearCache(), this.Editor.Toolbar.close();
|
|
8406
8410
|
return;
|
|
8407
8411
|
}
|
|
8408
8412
|
if (s === this.firstSelectedBlock) {
|
|
8409
|
-
i.selected = !1, s.selected = !1, o.clearCache();
|
|
8413
|
+
console.log("select 3"), i.selected = !1, s.selected = !1, o.clearCache();
|
|
8410
8414
|
return;
|
|
8411
8415
|
}
|
|
8412
|
-
this.Editor.InlineToolbar.close(), this.Editor.Toolbar.close(), this.toggleBlocksSelectedState(i, s), this.lastSelectedBlock = s;
|
|
8416
|
+
this.Editor.InlineToolbar.close(), console.log("关闭工具栏"), this.Editor.Toolbar.close(), this.toggleBlocksSelectedState(i, s), this.lastSelectedBlock = s;
|
|
8413
8417
|
}
|
|
8414
8418
|
};
|
|
8415
8419
|
}
|
|
@@ -8493,14 +8497,14 @@ class ga extends E {
|
|
|
8493
8497
|
* @param {Block} lastBlock - last block in range
|
|
8494
8498
|
*/
|
|
8495
8499
|
toggleBlocksSelectedState(e, t) {
|
|
8496
|
-
const { BlockManager: o, BlockSelection: i } = this.Editor, s = o.blocks.indexOf(e), r = o.blocks.indexOf(t),
|
|
8497
|
-
for (let
|
|
8498
|
-
const c = o.blocks[
|
|
8499
|
-
c !== this.firstSelectedBlock && c !== (
|
|
8500
|
+
const { BlockManager: o, BlockSelection: i } = this.Editor, s = o.blocks.indexOf(e), r = o.blocks.indexOf(t), l = e.selected !== t.selected;
|
|
8501
|
+
for (let a = Math.min(s, r); a <= Math.max(s, r); a++) {
|
|
8502
|
+
const c = o.blocks[a];
|
|
8503
|
+
c !== this.firstSelectedBlock && c !== (l ? e : t) && (o.blocks[a].selected = !o.blocks[a].selected, i.clearCache());
|
|
8500
8504
|
}
|
|
8501
8505
|
}
|
|
8502
8506
|
}
|
|
8503
|
-
class
|
|
8507
|
+
class ml extends E {
|
|
8504
8508
|
constructor() {
|
|
8505
8509
|
super(...arguments), this.isStartedAtEditor = !1;
|
|
8506
8510
|
}
|
|
@@ -8573,8 +8577,8 @@ class ma extends E {
|
|
|
8573
8577
|
e.preventDefault();
|
|
8574
8578
|
}
|
|
8575
8579
|
}
|
|
8576
|
-
const
|
|
8577
|
-
class
|
|
8580
|
+
const bl = 180, vl = 400;
|
|
8581
|
+
class kl extends E {
|
|
8578
8582
|
/**
|
|
8579
8583
|
* Prepare the module
|
|
8580
8584
|
*
|
|
@@ -8586,7 +8590,7 @@ class ka extends E {
|
|
|
8586
8590
|
super({
|
|
8587
8591
|
config: e,
|
|
8588
8592
|
eventsDispatcher: t
|
|
8589
|
-
}), this.disabled = !1, this.batchingTimeout = null, this.batchingOnChangeQueue = /* @__PURE__ */ new Map(), this.batchTime =
|
|
8593
|
+
}), this.disabled = !1, this.batchingTimeout = null, this.batchingOnChangeQueue = /* @__PURE__ */ new Map(), this.batchTime = vl, this.mutationObserver = new MutationObserver((o) => {
|
|
8590
8594
|
this.redactorChanged(o);
|
|
8591
8595
|
}), this.eventsDispatcher.on(Ro, (o) => {
|
|
8592
8596
|
this.particularBlockChanged(o.event);
|
|
@@ -8690,15 +8694,15 @@ const _n = class Mn extends E {
|
|
|
8690
8694
|
return;
|
|
8691
8695
|
}
|
|
8692
8696
|
const s = e.getData(this.MIME_TYPE), r = e.getData("text/plain");
|
|
8693
|
-
let
|
|
8697
|
+
let l = e.getData("text/html");
|
|
8694
8698
|
if (s)
|
|
8695
8699
|
try {
|
|
8696
8700
|
this.insertEditorJSData(JSON.parse(s));
|
|
8697
8701
|
return;
|
|
8698
8702
|
} catch {
|
|
8699
8703
|
}
|
|
8700
|
-
t && r.trim() &&
|
|
8701
|
-
const
|
|
8704
|
+
t && r.trim() && l.trim() && (l = "<p>" + (l.trim() ? l : r) + "</p>");
|
|
8705
|
+
const a = Object.keys(this.toolsTags).reduce((u, f) => (u[f.toLowerCase()] = this.toolsTags[f].sanitizationConfig ?? {}, u), {}), c = Object.assign({}, a, { br: {} }), d = Z(l, c);
|
|
8702
8706
|
!d.trim() || d.trim() === r || !h.isHTMLString(d) ? await this.processText(r) : await this.processText(d, !0);
|
|
8703
8707
|
}
|
|
8704
8708
|
/**
|
|
@@ -8715,9 +8719,9 @@ const _n = class Mn extends E {
|
|
|
8715
8719
|
s[0].isBlock ? this.processSingleBlock(s.pop()) : this.processInlinePaste(s.pop());
|
|
8716
8720
|
return;
|
|
8717
8721
|
}
|
|
8718
|
-
const
|
|
8722
|
+
const l = i.currentBlock && i.currentBlock.tool.isDefault && i.currentBlock.isEmpty;
|
|
8719
8723
|
s.map(
|
|
8720
|
-
async (
|
|
8724
|
+
async (a, c) => this.insertBlock(a, c === 0 && l)
|
|
8721
8725
|
), i.currentBlock && o.setToBlock(i.currentBlock, o.positions.END);
|
|
8722
8726
|
}
|
|
8723
8727
|
/**
|
|
@@ -8767,10 +8771,10 @@ const _n = class Mn extends E {
|
|
|
8767
8771
|
);
|
|
8768
8772
|
return;
|
|
8769
8773
|
}
|
|
8770
|
-
const
|
|
8774
|
+
const l = F(i) ? i[r] : null;
|
|
8771
8775
|
this.toolsTags[r.toUpperCase()] = {
|
|
8772
8776
|
tool: e,
|
|
8773
|
-
sanitizationConfig:
|
|
8777
|
+
sanitizationConfig: l
|
|
8774
8778
|
};
|
|
8775
8779
|
});
|
|
8776
8780
|
}), this.tagsByTool[e.name] = o.map((i) => i.toUpperCase());
|
|
@@ -8829,8 +8833,8 @@ const _n = class Mn extends E {
|
|
|
8829
8833
|
), o = o.filter((r) => !!r);
|
|
8830
8834
|
const s = t.currentBlock.tool.isDefault && t.currentBlock.isEmpty;
|
|
8831
8835
|
o.forEach(
|
|
8832
|
-
(r,
|
|
8833
|
-
t.paste(r.type, r.event,
|
|
8836
|
+
(r, l) => {
|
|
8837
|
+
t.paste(r.type, r.event, l === 0 && s);
|
|
8834
8838
|
}
|
|
8835
8839
|
);
|
|
8836
8840
|
}
|
|
@@ -8840,8 +8844,8 @@ const _n = class Mn extends E {
|
|
|
8840
8844
|
* @param {File} file - file to process
|
|
8841
8845
|
*/
|
|
8842
8846
|
async processFile(e) {
|
|
8843
|
-
const t = Kn(e), o = Object.entries(this.toolsFiles).find(([r, { mimeTypes:
|
|
8844
|
-
const [c, d] = e.type.split("/"), u =
|
|
8847
|
+
const t = Kn(e), o = Object.entries(this.toolsFiles).find(([r, { mimeTypes: l, extensions: a }]) => {
|
|
8848
|
+
const [c, d] = e.type.split("/"), u = a.find((g) => g.toLowerCase() === t.toLowerCase()), f = l.find((g) => {
|
|
8845
8849
|
const [p, b] = g.split("/");
|
|
8846
8850
|
return p === c && (b === d || b === "*");
|
|
8847
8851
|
});
|
|
@@ -8866,19 +8870,19 @@ const _n = class Mn extends E {
|
|
|
8866
8870
|
processHTML(e) {
|
|
8867
8871
|
const { Tools: t } = this.Editor, o = h.make("DIV");
|
|
8868
8872
|
return o.innerHTML = e, this.getNodes(o).map((s) => {
|
|
8869
|
-
let r,
|
|
8873
|
+
let r, l = t.defaultTool, a = !1;
|
|
8870
8874
|
switch (s.nodeType) {
|
|
8871
8875
|
case Node.DOCUMENT_FRAGMENT_NODE:
|
|
8872
8876
|
r = h.make("div"), r.appendChild(s);
|
|
8873
8877
|
break;
|
|
8874
8878
|
case Node.ELEMENT_NODE:
|
|
8875
|
-
r = s,
|
|
8879
|
+
r = s, a = !0, this.toolsTags[r.tagName] && (l = this.toolsTags[r.tagName].tool);
|
|
8876
8880
|
break;
|
|
8877
8881
|
}
|
|
8878
|
-
const { tags: c } =
|
|
8882
|
+
const { tags: c } = l.pasteConfig || { tags: [] }, d = c.reduce((g, p) => (this.collectTagNames(p).forEach((C) => {
|
|
8879
8883
|
const x = F(p) ? p[C] : null;
|
|
8880
8884
|
g[C.toLowerCase()] = x || {};
|
|
8881
|
-
}), g), {}), u = Object.assign({}, d,
|
|
8885
|
+
}), g), {}), u = Object.assign({}, d, l.baseSanitizeConfig);
|
|
8882
8886
|
if (r.tagName.toLowerCase() === "table") {
|
|
8883
8887
|
const g = Z(r.outerHTML, u);
|
|
8884
8888
|
r = h.make("div", void 0, {
|
|
@@ -8891,13 +8895,13 @@ const _n = class Mn extends E {
|
|
|
8891
8895
|
});
|
|
8892
8896
|
return {
|
|
8893
8897
|
content: r,
|
|
8894
|
-
isBlock:
|
|
8895
|
-
tool:
|
|
8898
|
+
isBlock: a,
|
|
8899
|
+
tool: l.name,
|
|
8896
8900
|
event: f
|
|
8897
8901
|
};
|
|
8898
8902
|
}).filter((s) => {
|
|
8899
|
-
const r = h.isEmpty(s.content),
|
|
8900
|
-
return !r ||
|
|
8903
|
+
const r = h.isEmpty(s.content), l = h.isSingleTag(s.content);
|
|
8904
|
+
return !r || l;
|
|
8901
8905
|
});
|
|
8902
8906
|
}
|
|
8903
8907
|
/**
|
|
@@ -8951,8 +8955,8 @@ const _n = class Mn extends E {
|
|
|
8951
8955
|
if (t.currentBlock && t.currentBlock.tool.isDefault && i.textContent.length < Mn.PATTERN_PROCESSING_MAX_LENGTH) {
|
|
8952
8956
|
const r = await this.processPattern(i.textContent);
|
|
8953
8957
|
if (r) {
|
|
8954
|
-
const
|
|
8955
|
-
o.setToBlock(
|
|
8958
|
+
const l = t.currentBlock && t.currentBlock.tool.isDefault && t.currentBlock.isEmpty, a = t.paste(r.tool, r.event, l);
|
|
8959
|
+
o.setToBlock(a, o.positions.END);
|
|
8956
8960
|
return;
|
|
8957
8961
|
}
|
|
8958
8962
|
}
|
|
@@ -9012,12 +9016,12 @@ const _n = class Mn extends E {
|
|
|
9012
9016
|
yt(
|
|
9013
9017
|
e,
|
|
9014
9018
|
(r) => i.blockTools.get(r).sanitizeConfig
|
|
9015
|
-
).forEach(({ tool: r, data:
|
|
9019
|
+
).forEach(({ tool: r, data: l }, a) => {
|
|
9016
9020
|
let c = !1;
|
|
9017
|
-
|
|
9021
|
+
a === 0 && (c = t.currentBlock && t.currentBlock.tool.isDefault && t.currentBlock.isEmpty);
|
|
9018
9022
|
const d = t.insert({
|
|
9019
9023
|
tool: r,
|
|
9020
|
-
data:
|
|
9024
|
+
data: l,
|
|
9021
9025
|
replace: c
|
|
9022
9026
|
});
|
|
9023
9027
|
o.setToBlock(d, o.positions.END);
|
|
@@ -9031,14 +9035,14 @@ const _n = class Mn extends E {
|
|
|
9031
9035
|
* @param {Node} destNode - destination node
|
|
9032
9036
|
*/
|
|
9033
9037
|
processElementNode(e, t, o) {
|
|
9034
|
-
const i = Object.keys(this.toolsTags), s = e, { tool: r } = this.toolsTags[s.tagName] || {},
|
|
9035
|
-
({ tagName: f }) => i.includes(f) && !
|
|
9038
|
+
const i = Object.keys(this.toolsTags), s = e, { tool: r } = this.toolsTags[s.tagName] || {}, l = this.tagsByTool[r == null ? void 0 : r.name] || [], a = i.includes(s.tagName), c = h.blockElements.includes(s.tagName.toLowerCase()), d = Array.from(s.children).some(
|
|
9039
|
+
({ tagName: f }) => i.includes(f) && !l.includes(f)
|
|
9036
9040
|
), u = Array.from(s.children).some(
|
|
9037
9041
|
({ tagName: f }) => h.blockElements.includes(f.toLowerCase())
|
|
9038
9042
|
);
|
|
9039
|
-
if (!c && !
|
|
9043
|
+
if (!c && !a && !d)
|
|
9040
9044
|
return o.appendChild(s), [...t, o];
|
|
9041
|
-
if (
|
|
9045
|
+
if (a && !d || c && !u && !d)
|
|
9042
9046
|
return [...t, o, s];
|
|
9043
9047
|
}
|
|
9044
9048
|
/**
|
|
@@ -9055,17 +9059,17 @@ const _n = class Mn extends E {
|
|
|
9055
9059
|
const i = (s, r) => {
|
|
9056
9060
|
if (h.isEmpty(r) && !h.isSingleTag(r))
|
|
9057
9061
|
return s;
|
|
9058
|
-
const
|
|
9059
|
-
let
|
|
9060
|
-
switch (
|
|
9062
|
+
const l = s[s.length - 1];
|
|
9063
|
+
let a = new DocumentFragment();
|
|
9064
|
+
switch (l && h.isFragment(l) && (a = s.pop()), r.nodeType) {
|
|
9061
9065
|
case Node.ELEMENT_NODE:
|
|
9062
|
-
if (o = this.processElementNode(r, s,
|
|
9066
|
+
if (o = this.processElementNode(r, s, a), o)
|
|
9063
9067
|
return o;
|
|
9064
9068
|
break;
|
|
9065
9069
|
case Node.TEXT_NODE:
|
|
9066
|
-
return
|
|
9070
|
+
return a.appendChild(r), [...s, a];
|
|
9067
9071
|
default:
|
|
9068
|
-
return [...s,
|
|
9072
|
+
return [...s, a];
|
|
9069
9073
|
}
|
|
9070
9074
|
return [...s, ...Array.from(r.childNodes).reduce(i, [])];
|
|
9071
9075
|
};
|
|
@@ -9084,8 +9088,8 @@ const _n = class Mn extends E {
|
|
|
9084
9088
|
}
|
|
9085
9089
|
};
|
|
9086
9090
|
_n.PATTERN_PROCESSING_MAX_LENGTH = 450;
|
|
9087
|
-
let
|
|
9088
|
-
class
|
|
9091
|
+
let yl = _n;
|
|
9092
|
+
class wl extends E {
|
|
9089
9093
|
constructor() {
|
|
9090
9094
|
super(...arguments), this.toolsDontSupportReadOnly = [], this.readOnlyEnabled = !1;
|
|
9091
9095
|
}
|
|
@@ -9172,8 +9176,8 @@ class xe extends E {
|
|
|
9172
9176
|
`.${R.CSS.content}`,
|
|
9173
9177
|
`.${this.Editor.Toolbar.CSS.toolbar}`,
|
|
9174
9178
|
`.${this.Editor.InlineToolbar.CSS.inlineToolbar}`
|
|
9175
|
-
], r = o.closest("." + this.Editor.UI.CSS.editorWrapper),
|
|
9176
|
-
!r ||
|
|
9179
|
+
], r = o.closest("." + this.Editor.UI.CSS.editorWrapper), l = s.some((a) => !!o.closest(a));
|
|
9180
|
+
!r || l || (this.mousedown = !0, this.startX = e, this.startY = t);
|
|
9177
9181
|
}
|
|
9178
9182
|
/**
|
|
9179
9183
|
* Clear all params to end selection
|
|
@@ -9332,7 +9336,7 @@ class xe extends E {
|
|
|
9332
9336
|
const t = document.body.offsetWidth / 2, o = this.mouseY - window.pageYOffset, i = document.elementFromPoint(t, o), s = this.Editor.BlockManager.getBlockByChildNode(i);
|
|
9333
9337
|
let r;
|
|
9334
9338
|
s !== void 0 && (r = this.Editor.BlockManager.blocks.findIndex((u) => u.holder === s.holder));
|
|
9335
|
-
const
|
|
9339
|
+
const l = this.Editor.BlockManager.lastBlock.holder.querySelector("." + R.CSS.content), a = Number.parseInt(window.getComputedStyle(l).width, 10) / 2, c = t - a, d = t + a;
|
|
9336
9340
|
return {
|
|
9337
9341
|
index: r,
|
|
9338
9342
|
leftPos: c,
|
|
@@ -9356,10 +9360,10 @@ class xe extends E {
|
|
|
9356
9360
|
const t = this.stackOfSelected[this.stackOfSelected.length - 1] === e, o = this.stackOfSelected.length, i = 1, s = -1, r = 0;
|
|
9357
9361
|
if (t)
|
|
9358
9362
|
return;
|
|
9359
|
-
const
|
|
9360
|
-
let
|
|
9361
|
-
o > 1 && (
|
|
9362
|
-
const c = e > this.stackOfSelected[o - 1] &&
|
|
9363
|
+
const l = this.stackOfSelected[o - 1] - this.stackOfSelected[o - 2] > 0;
|
|
9364
|
+
let a = r;
|
|
9365
|
+
o > 1 && (a = l ? i : s);
|
|
9366
|
+
const c = e > this.stackOfSelected[o - 1] && a === i, d = e < this.stackOfSelected[o - 1] && a === s, f = !(c || d || a === r);
|
|
9363
9367
|
if (!f && (e > this.stackOfSelected[o - 1] || this.stackOfSelected[o - 1] === void 0)) {
|
|
9364
9368
|
let b = this.stackOfSelected[o - 1] + 1 || e;
|
|
9365
9369
|
for (b; b <= e; b++)
|
|
@@ -9378,7 +9382,7 @@ class xe extends E {
|
|
|
9378
9382
|
this.rectCrossesBlocks && this.Editor.BlockSelection.unSelectBlockByIndex(this.stackOfSelected[g]), this.stackOfSelected.pop(), g--;
|
|
9379
9383
|
}
|
|
9380
9384
|
}
|
|
9381
|
-
class
|
|
9385
|
+
class El extends E {
|
|
9382
9386
|
/**
|
|
9383
9387
|
* Renders passed blocks as one batch
|
|
9384
9388
|
*
|
|
@@ -9390,25 +9394,25 @@ class Ea extends E {
|
|
|
9390
9394
|
if (e.length === 0)
|
|
9391
9395
|
i.insert();
|
|
9392
9396
|
else {
|
|
9393
|
-
const s = e.map(({ type: r, data:
|
|
9394
|
-
o.available.has(r) === !1 && (X(`Tool «${r}» is not found. Check 'tools' property at the Editor.js config.`, "warn"),
|
|
9397
|
+
const s = e.map(({ type: r, data: l, tunes: a, id: c }) => {
|
|
9398
|
+
o.available.has(r) === !1 && (X(`Tool «${r}» is not found. Check 'tools' property at the Editor.js config.`, "warn"), l = this.composeStubDataForTool(r, l, c), r = o.stubTool);
|
|
9395
9399
|
let d;
|
|
9396
9400
|
try {
|
|
9397
9401
|
d = i.composeBlock({
|
|
9398
9402
|
id: c,
|
|
9399
9403
|
tool: r,
|
|
9400
|
-
data:
|
|
9401
|
-
tunes:
|
|
9404
|
+
data: l,
|
|
9405
|
+
tunes: a
|
|
9402
9406
|
});
|
|
9403
9407
|
} catch (u) {
|
|
9404
9408
|
I(`Block «${r}» skipped because of plugins error`, "error", {
|
|
9405
|
-
data:
|
|
9409
|
+
data: l,
|
|
9406
9410
|
error: u
|
|
9407
|
-
}),
|
|
9411
|
+
}), l = this.composeStubDataForTool(r, l, c), r = o.stubTool, d = i.composeBlock({
|
|
9408
9412
|
id: c,
|
|
9409
9413
|
tool: r,
|
|
9410
|
-
data:
|
|
9411
|
-
tunes:
|
|
9414
|
+
data: l,
|
|
9415
|
+
tunes: a
|
|
9412
9416
|
});
|
|
9413
9417
|
}
|
|
9414
9418
|
return d;
|
|
@@ -9444,7 +9448,7 @@ class Ea extends E {
|
|
|
9444
9448
|
};
|
|
9445
9449
|
}
|
|
9446
9450
|
}
|
|
9447
|
-
class
|
|
9451
|
+
class xl extends E {
|
|
9448
9452
|
/**
|
|
9449
9453
|
* Composes new chain of Promises to fire them alternatelly
|
|
9450
9454
|
*
|
|
@@ -9453,10 +9457,10 @@ class xa extends E {
|
|
|
9453
9457
|
async save() {
|
|
9454
9458
|
const { BlockManager: e, Tools: t } = this.Editor, o = e.blocks, i = [];
|
|
9455
9459
|
try {
|
|
9456
|
-
o.forEach((
|
|
9457
|
-
i.push(this.getSavedData(
|
|
9460
|
+
o.forEach((l) => {
|
|
9461
|
+
i.push(this.getSavedData(l));
|
|
9458
9462
|
});
|
|
9459
|
-
const s = await Promise.all(i), r = await yt(s, (
|
|
9463
|
+
const s = await Promise.all(i), r = await yt(s, (l) => t.blockTools.get(l).sanitizeConfig);
|
|
9460
9464
|
return this.makeOutput(r);
|
|
9461
9465
|
} catch (s) {
|
|
9462
9466
|
X("Saving failed due to the Error %o", "error", s);
|
|
@@ -9483,8 +9487,8 @@ class xa extends E {
|
|
|
9483
9487
|
*/
|
|
9484
9488
|
makeOutput(e) {
|
|
9485
9489
|
const t = [];
|
|
9486
|
-
return e.forEach(({ id: o, tool: i, data: s, tunes: r, isValid:
|
|
9487
|
-
if (!
|
|
9490
|
+
return e.forEach(({ id: o, tool: i, data: s, tunes: r, isValid: l }) => {
|
|
9491
|
+
if (!l) {
|
|
9488
9492
|
I(`Block «${i}» skipped because saved data is invalid`);
|
|
9489
9493
|
return;
|
|
9490
9494
|
}
|
|
@@ -9492,7 +9496,7 @@ class xa extends E {
|
|
|
9492
9496
|
t.push(s);
|
|
9493
9497
|
return;
|
|
9494
9498
|
}
|
|
9495
|
-
const
|
|
9499
|
+
const a = {
|
|
9496
9500
|
id: o,
|
|
9497
9501
|
type: i,
|
|
9498
9502
|
data: s,
|
|
@@ -9500,11 +9504,11 @@ class xa extends E {
|
|
|
9500
9504
|
tunes: r
|
|
9501
9505
|
}
|
|
9502
9506
|
};
|
|
9503
|
-
t.push(
|
|
9507
|
+
t.push(a);
|
|
9504
9508
|
}), {
|
|
9505
9509
|
time: +/* @__PURE__ */ new Date(),
|
|
9506
9510
|
blocks: t,
|
|
9507
|
-
version: "2.31.
|
|
9511
|
+
version: "2.31.57"
|
|
9508
9512
|
};
|
|
9509
9513
|
}
|
|
9510
9514
|
}
|
|
@@ -9553,9 +9557,9 @@ class Ln {
|
|
|
9553
9557
|
}
|
|
9554
9558
|
}
|
|
9555
9559
|
Ln.isReadOnlySupported = !0;
|
|
9556
|
-
class
|
|
9560
|
+
class Bl extends Tt {
|
|
9557
9561
|
constructor() {
|
|
9558
|
-
super(...arguments), this.type =
|
|
9562
|
+
super(...arguments), this.type = le.Inline;
|
|
9559
9563
|
}
|
|
9560
9564
|
/**
|
|
9561
9565
|
* Returns title for Inline Tool if specified by user
|
|
@@ -9580,9 +9584,9 @@ class Ba extends Tt {
|
|
|
9580
9584
|
return this.constructable[We.IsReadOnlySupported] ?? !1;
|
|
9581
9585
|
}
|
|
9582
9586
|
}
|
|
9583
|
-
class
|
|
9587
|
+
class Cl extends Tt {
|
|
9584
9588
|
constructor() {
|
|
9585
|
-
super(...arguments), this.type =
|
|
9589
|
+
super(...arguments), this.type = le.Tune;
|
|
9586
9590
|
}
|
|
9587
9591
|
/**
|
|
9588
9592
|
* Constructs new BlockTune instance from constructable
|
|
@@ -9636,14 +9640,14 @@ class H extends Map {
|
|
|
9636
9640
|
return new H(e);
|
|
9637
9641
|
}
|
|
9638
9642
|
}
|
|
9639
|
-
var
|
|
9640
|
-
for (var i = o > 1 ? void 0 : o ?
|
|
9643
|
+
var Tl = Object.defineProperty, Sl = Object.getOwnPropertyDescriptor, An = (n, e, t, o) => {
|
|
9644
|
+
for (var i = o > 1 ? void 0 : o ? Sl(e, t) : e, s = n.length - 1, r; s >= 0; s--)
|
|
9641
9645
|
(r = n[s]) && (i = (o ? r(e, t, i) : r(i)) || i);
|
|
9642
|
-
return o && i &&
|
|
9646
|
+
return o && i && Tl(e, t, i), i;
|
|
9643
9647
|
};
|
|
9644
9648
|
class fo extends Tt {
|
|
9645
9649
|
constructor() {
|
|
9646
|
-
super(...arguments), this.type =
|
|
9650
|
+
super(...arguments), this.type = le.Block, this.inlineTools = new H(), this.tunes = new H();
|
|
9647
9651
|
}
|
|
9648
9652
|
/**
|
|
9649
9653
|
* Creates new Tool instance
|
|
@@ -9749,7 +9753,7 @@ An([
|
|
|
9749
9753
|
An([
|
|
9750
9754
|
me
|
|
9751
9755
|
], fo.prototype, "baseSanitizeConfig", 1);
|
|
9752
|
-
class
|
|
9756
|
+
class Il {
|
|
9753
9757
|
/**
|
|
9754
9758
|
* @class
|
|
9755
9759
|
* @param config - tools config
|
|
@@ -9784,9 +9788,9 @@ class Ia {
|
|
|
9784
9788
|
getConstructor(e) {
|
|
9785
9789
|
switch (!0) {
|
|
9786
9790
|
case e[We.IsInline]:
|
|
9787
|
-
return
|
|
9791
|
+
return Bl;
|
|
9788
9792
|
case e[mt.IsTune]:
|
|
9789
|
-
return
|
|
9793
|
+
return Cl;
|
|
9790
9794
|
default:
|
|
9791
9795
|
return fo;
|
|
9792
9796
|
}
|
|
@@ -9899,18 +9903,18 @@ class Rn {
|
|
|
9899
9903
|
const e = this.api.blocks.getCurrentBlockIndex(), t = this.api.blocks.getBlockByIndex(e), o = this.api.blocks.getBlockByIndex(e - 1);
|
|
9900
9904
|
if (e === 0 || !t || !o)
|
|
9901
9905
|
throw new Error("Unable to move Block up since it is already the first");
|
|
9902
|
-
const i = t.holder, s = o.holder, r = i.getBoundingClientRect(),
|
|
9903
|
-
let
|
|
9904
|
-
|
|
9906
|
+
const i = t.holder, s = o.holder, r = i.getBoundingClientRect(), l = s.getBoundingClientRect();
|
|
9907
|
+
let a;
|
|
9908
|
+
l.top > 0 ? a = Math.abs(r.top) - Math.abs(l.top) : a = Math.abs(r.top) + l.height;
|
|
9905
9909
|
const c = i.closest(".ebl-editor");
|
|
9906
|
-
c ? c.scrollBy(0, -1 *
|
|
9910
|
+
c ? c.scrollBy(0, -1 * a) : window.scrollBy(0, -1 * a), this.api.blocks.move(e - 1), this.api.toolbar.toggleBlockSettings(!0);
|
|
9907
9911
|
}
|
|
9908
9912
|
}
|
|
9909
9913
|
Rn.isTune = !0;
|
|
9910
|
-
var
|
|
9911
|
-
for (var i = o > 1 ? void 0 : o ?
|
|
9914
|
+
var Ol = Object.defineProperty, _l = Object.getOwnPropertyDescriptor, Ml = (n, e, t, o) => {
|
|
9915
|
+
for (var i = o > 1 ? void 0 : o ? _l(e, t) : e, s = n.length - 1, r; s >= 0; s--)
|
|
9912
9916
|
(r = n[s]) && (i = (o ? r(e, t, i) : r(i)) || i);
|
|
9913
|
-
return o && i &&
|
|
9917
|
+
return o && i && Ol(e, t, i), i;
|
|
9914
9918
|
};
|
|
9915
9919
|
class Dn extends E {
|
|
9916
9920
|
constructor() {
|
|
@@ -9969,7 +9973,7 @@ class Dn extends E {
|
|
|
9969
9973
|
if (this.validateTools(), this.config.tools = ht({}, this.internalTools, this.config.tools), !Object.prototype.hasOwnProperty.call(this.config, "tools") || Object.keys(this.config.tools).length === 0)
|
|
9970
9974
|
throw Error("Can't start without tools");
|
|
9971
9975
|
const e = this.prepareConfig();
|
|
9972
|
-
this.factory = new
|
|
9976
|
+
this.factory = new Il(e, this.config, this.Editor.API);
|
|
9973
9977
|
const t = this.getListOfPrepareFunctions(e);
|
|
9974
9978
|
if (t.length === 0)
|
|
9975
9979
|
return Promise.resolve();
|
|
@@ -10168,18 +10172,18 @@ class Dn extends E {
|
|
|
10168
10172
|
return e;
|
|
10169
10173
|
}
|
|
10170
10174
|
}
|
|
10171
|
-
|
|
10175
|
+
Ml([
|
|
10172
10176
|
me
|
|
10173
10177
|
], Dn.prototype, "getAllInlineToolsSanitizeConfig", 1);
|
|
10174
|
-
const La = `:root{--selectionColor: #e1f2ff;--inlineSelectionColor: #d4ecff;--bg-light: #eff2f5;--grayText: #707684;--color-dark: #1D202B;--color-active-icon: #388AE5;--color-gray-border: rgba(201, 201, 204, .48);--content-width: 650px;--narrow-mode-right-padding: 50px;--toolbox-buttons-size: 26px;--toolbox-buttons-size--mobile: 36px;--icon-size: 20px;--icon-size--mobile: 28px;--block-padding-vertical: 0;--color-line-gray: #EFF0F1 }.codex-editor{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:1}.codex-editor .hide{display:none}.codex-editor__redactor [contenteditable]:empty:after{content:"\\feff"}@media (min-width: 651px){.codex-editor--narrow .codex-editor__redactor{margin-right:50px}}@media (min-width: 651px){.codex-editor--narrow.codex-editor--rtl .codex-editor__redactor{margin-left:50px;margin-right:0}}@media (min-width: 651px){.codex-editor--narrow .ce-toolbar__actions{right:-5px}}.codex-editor-copyable{position:absolute;height:1px;width:1px;top:-400%;opacity:.001}.codex-editor-overlay{position:fixed;top:0;left:0;right:0;bottom:0;z-index:999;pointer-events:none;overflow:hidden}.codex-editor-overlay__container{position:relative;pointer-events:auto;z-index:0}.codex-editor-overlay__rectangle{position:absolute;pointer-events:none;background-color:#2eaadc33;border:1px solid transparent}.codex-editor svg{max-height:100%}.codex-editor path{stroke:currentColor}.codex-editor ::-moz-selection{background-color:#d4ecff}.codex-editor ::selection{background-color:#d4ecff}.codex-editor--toolbox-opened [contentEditable=true][data-placeholder]:focus:before{opacity:0!important}.ce-scroll-locked{overflow:hidden}.ce-scroll-locked--hard{overflow:hidden;top:calc(-1 * var(--window-scroll-offset));position:fixed;width:100%}.ce-toolbar{position:absolute;left:0;right:0;top:0;-webkit-transition:opacity .1s ease;transition:opacity .1s ease;will-change:opacity,top;display:none}.ce-toolbar--opened{display:block}.ce-toolbar__content{max-width:650px;margin:0 auto;position:relative}.ce-toolbar__plus{color:#1d202b;cursor:pointer;width:26px;height:26px;border-radius:7px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-negative:0;flex-shrink:0}@media (max-width: 650px){.ce-toolbar__plus{width:36px;height:36px}}@media (hover: hover){.ce-toolbar__plus:hover{background-color:#eff2f5}}.ce-toolbar__plus--active{background-color:#eff2f5;-webkit-animation:bounceIn .75s 1;animation:bounceIn .75s 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.ce-toolbar__plus-shortcut{opacity:.6;word-spacing:-2px;margin-top:5px}.ce-toolbar__plus--hidden{display:none}@media (max-width: 650px){.ce-toolbar__plus{position:absolute;background-color:#fff;border:1px solid #E8E8EB;-webkit-box-shadow:0 3px 15px -3px rgba(13,20,33,.13);box-shadow:0 3px 15px -3px #0d142121;border-radius:6px;z-index:2;position:static}.ce-toolbar__plus--left-oriented:before{left:15px;margin-left:0}.ce-toolbar__plus--right-oriented:before{left:auto;right:15px;margin-left:0}}.ce-toolbar__actions{position:absolute;right:100%;opacity:0;display:-webkit-box;display:-ms-flexbox;display:flex;padding-right:5px}.ce-toolbar__actions--opened{opacity:1}@media (max-width: 650px){.ce-toolbar__actions{right:auto}}.ce-toolbar__settings-btn{color:#1d202b;width:26px;height:26px;border-radius:7px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;border:1px solid rgba(201,201,204,.48);color:#707684;margin-left:3px;cursor:pointer;user-select:none}@media (max-width: 650px){.ce-toolbar__settings-btn{width:36px;height:36px}}@media (hover: hover){.ce-toolbar__settings-btn:hover{background-color:#eff2f5}}.ce-toolbar__settings-btn--active{background-color:#eff2f5;-webkit-animation:bounceIn .75s 1;animation:bounceIn .75s 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.ce-toolbar__settings-btn--hidden{display:none}@media (max-width: 650px){.ce-toolbar__settings-btn{position:absolute;background-color:#fff;border:1px solid #E8E8EB;-webkit-box-shadow:0 3px 15px -3px rgba(13,20,33,.13);box-shadow:0 3px 15px -3px #0d142121;border-radius:6px;z-index:2;position:static}.ce-toolbar__settings-btn--left-oriented:before{left:15px;margin-left:0}.ce-toolbar__settings-btn--right-oriented:before{left:auto;right:15px;margin-left:0}}.ce-toolbar__plus svg,.ce-toolbar__settings-btn svg{width:24px;height:24px}.ce-toolbar__plus svg path,.ce-toolbar__settings-btn svg path{fill:#707684}.ce-toolbar__settings-btn{width:auto}.ce-toolbar__settings-btn .icon-block-name,.ce-toolbar__settings-btn .icon-menu{display:inline-block;width:24px;height:24px}.ce-toolbar__settings-btn .icon-block-name{text-align:center}.ce-toolbar__settings-btn .icon-block-name .icon-toolbox-alert{width:20px!important;height:20px!important}.ce-toolbar__settings-btn .icon-menu{width:16px}.ce-toolbar__settings-btn .icon-menu svg{margin-left:-6px}@media (min-width: 651px){.codex-editor--narrow .ce-toolbar__plus{left:5px}}@media (min-width: 651px){.codex-editor--narrow .ce-toolbox .ce-popover{right:0;left:auto;left:initial}}.ce-inline-toolbar{--y-offset: 8px;--color-background-icon-active: rgba(56, 138, 229, .1);--color-text-icon-active: #388AE5;--color-text-primary: black;position:absolute;visibility:hidden;-webkit-transition:opacity .25s ease;transition:opacity .25s ease;will-change:opacity,left,top;top:0;left:0;z-index:3;opacity:1;visibility:visible}.ce-inline-toolbar [hidden]{display:none!important}.ce-inline-toolbar__toggler-and-button-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;padding:0 6px}.ce-inline-toolbar__buttons{display:-webkit-box;display:-ms-flexbox;display:flex}.ce-inline-toolbar__dropdown{display:-webkit-box;display:-ms-flexbox;display:flex;padding:6px;margin:0 6px 0 -6px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;border-right:1px solid rgba(201,201,204,.48);-webkit-box-sizing:border-box;box-sizing:border-box}@media (hover: hover){.ce-inline-toolbar__dropdown:hover{background:#eff2f5}}.ce-inline-toolbar__dropdown--hidden{display:none}.ce-inline-toolbar__dropdown-content,.ce-inline-toolbar__dropdown-arrow{display:-webkit-box;display:-ms-flexbox;display:flex}.ce-inline-toolbar__dropdown-content svg,.ce-inline-toolbar__dropdown-arrow svg{width:20px;height:20px}.ce-inline-toolbar__shortcut{opacity:.6;word-spacing:-3px;margin-top:3px}.ce-inline-tool{color:var(--color-text-primary);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:0;border-radius:4px;line-height:normal;height:100%;padding:0;width:28px;background-color:transparent;cursor:pointer}@media (max-width: 650px){.ce-inline-tool{width:36px;height:36px}}@media (hover: hover){.ce-inline-tool:hover{background-color:#f8f8f8}}.ce-inline-tool svg{display:block;width:20px;height:20px}@media (max-width: 650px){.ce-inline-tool svg{width:28px;height:28px}}.ce-inline-tool--link .icon--unlink,.ce-inline-tool--unlink .icon--link{display:none}.ce-inline-tool--unlink .icon--unlink{display:inline-block;margin-bottom:-1px}.ce-inline-tool-input-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:5px}.ce-inline-tool-input-btn{width:50px;border-radius:5px;background-color:#161c27;color:#fff;border:none;cursor:pointer}.ce-inline-tool-input{-webkit-box-flex:1;-ms-flex:1;flex:1;background:#F8F8F8;border:1px solid rgba(226,226,229,.2);border-radius:6px;padding:4px 8px;font-size:14px;line-height:22px;outline:none;margin:0;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;display:none;font-weight:500;-webkit-appearance:none;font-family:inherit}@media (max-width: 650px){.ce-inline-tool-input{font-size:15px;font-weight:500}}.ce-inline-tool-input::-webkit-input-placeholder{color:#707684}.ce-inline-tool-input::-moz-placeholder{color:#707684}.ce-inline-tool-input:-ms-input-placeholder{color:#707684}.ce-inline-tool-input::-ms-input-placeholder{color:#707684}.ce-inline-tool-input::placeholder{color:#707684}.ce-inline-tool-input--showed{display:block}.ce-inline-tool--active{background:var(--color-background-icon-active);color:var(--color-text-icon-active)}@-webkit-keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.ce-block{-webkit-animation:fade-in .3s ease;animation:fade-in .3s ease;-webkit-animation-fill-mode:none;animation-fill-mode:none;-webkit-animation-fill-mode:initial;animation-fill-mode:initial}.ce-block:first-of-type{margin-top:0}.ce-block--selected .ce-block__content{background:#e1f2ff}.ce-block--selected .ce-block__content [contenteditable]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ce-block--selected .ce-block__content img,.ce-block--selected .ce-block__content .ce-stub{opacity:.55}.ce-block--stretched .ce-block__content{max-width:none}.ce-block__content{position:relative;max-width:650px;margin:0 auto;-webkit-transition:background-color .15s ease;transition:background-color .15s ease}.ce-block--drop-target .ce-block__content:before{content:"";position:absolute;top:100%;left:-20px;margin-top:-1px;height:8px;width:8px;border:solid #388AE5;border-width:1px 1px 0 0;-webkit-transform-origin:right;transform-origin:right;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.ce-block--drop-target .ce-block__content:after{content:"";position:absolute;top:100%;height:1px;width:100%;color:#388ae5;background:repeating-linear-gradient(90deg,#388AE5,#388AE5 1px,#fff 1px,#fff 6px)}.ce-block a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline}.ce-block b{font-weight:700}.ce-block i{font-style:italic}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}20%{-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}60%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}20%{-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}60%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@-webkit-keyframes selectionBounce{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}50%{-webkit-transform:scale3d(1.01,1.01,1.01);transform:scale3d(1.01,1.01,1.01)}70%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes selectionBounce{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}50%{-webkit-transform:scale3d(1.01,1.01,1.01);transform:scale3d(1.01,1.01,1.01)}70%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@-webkit-keyframes buttonClicked{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:scale3d(.95,.95,.95);transform:scale3d(.95,.95,.95)}60%{-webkit-transform:scale3d(1.02,1.02,1.02);transform:scale3d(1.02,1.02,1.02)}80%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes buttonClicked{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:scale3d(.95,.95,.95);transform:scale3d(.95,.95,.95)}60%{-webkit-transform:scale3d(1.02,1.02,1.02);transform:scale3d(1.02,1.02,1.02)}80%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.cdx-block{padding:0}.cdx-block::-webkit-input-placeholder{line-height:normal!important}.cdx-input{border:1px solid rgba(201,201,204,.48);-webkit-box-shadow:inset 0 1px 2px 0 rgba(35,44,72,.06);box-shadow:inset 0 1px 2px #232c480f;border-radius:3px;padding:10px 12px;outline:none;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.cdx-input[data-placeholder]:before{position:static!important}.cdx-input[data-placeholder]:before{display:inline-block;width:0;white-space:nowrap;pointer-events:none}.cdx-settings-button{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;border-radius:3px;cursor:pointer;border:0;outline:none;background-color:transparent;vertical-align:bottom;color:inherit;margin:0;min-width:26px;min-height:26px}.cdx-settings-button--focused{background:rgba(34,186,255,.08)!important}.cdx-settings-button--focused{-webkit-box-shadow:inset 0 0 0px 1px rgba(7,161,227,.08);box-shadow:inset 0 0 0 1px #07a1e314}.cdx-settings-button--focused-animated{-webkit-animation-name:buttonClicked;animation-name:buttonClicked;-webkit-animation-duration:.25s;animation-duration:.25s}.cdx-settings-button--active{color:#388ae5}.cdx-settings-button svg{width:auto;height:auto}@media (max-width: 650px){.cdx-settings-button svg{width:28px;height:28px}}@media (max-width: 650px){.cdx-settings-button{width:36px;height:36px;border-radius:8px}}@media (hover: hover){.cdx-settings-button:hover{background-color:#eff2f5}}.cdx-loader{position:relative;border:1px solid rgba(201,201,204,.48)}.cdx-loader:before{content:"";position:absolute;left:50%;top:50%;width:18px;height:18px;margin:-11px 0 0 -11px;border:2px solid rgba(201,201,204,.48);border-left-color:#388ae5;border-radius:50%;-webkit-animation:cdxRotation 1.2s infinite linear;animation:cdxRotation 1.2s infinite linear}@-webkit-keyframes cdxRotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes cdxRotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.cdx-button{padding:13px;border-radius:3px;border:1px solid rgba(201,201,204,.48);font-size:14.9px;background:#fff;-webkit-box-shadow:0 2px 2px 0 rgba(18,30,57,.04);box-shadow:0 2px 2px #121e390a;color:#707684;text-align:center;cursor:pointer}@media (hover: hover){.cdx-button:hover{background:#FBFCFE;-webkit-box-shadow:0 1px 3px 0 rgba(18,30,57,.08);box-shadow:0 1px 3px #121e3914}}.cdx-button svg{height:20px;margin-right:.2em;margin-top:-2px}.ce-stub{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:12px 18px;margin:10px 0;border-radius:10px;background:#eff2f5;border:1px solid #EFF0F1;color:#707684;font-size:14px}.ce-stub svg{width:20px;height:20px}.ce-stub__info{margin-left:14px}.ce-stub__title{font-weight:500;text-transform:capitalize}.codex-editor.codex-editor--rtl{direction:rtl}.codex-editor.codex-editor--rtl .cdx-list{padding-left:0;padding-right:40px}.codex-editor.codex-editor--rtl .ce-toolbar__plus{right:-26px;left:auto}.codex-editor.codex-editor--rtl .ce-toolbar__actions{right:auto;left:-26px}@media (max-width: 650px){.codex-editor.codex-editor--rtl .ce-toolbar__actions{margin-left:0;margin-right:auto;padding-right:0;padding-left:10px}}.codex-editor.codex-editor--rtl .ce-settings{left:5px;right:auto}.codex-editor.codex-editor--rtl .ce-settings:before{right:auto;left:25px}.codex-editor.codex-editor--rtl .ce-settings__button:not(:nth-child(3n+3)){margin-left:3px;margin-right:0}.codex-editor.codex-editor--rtl .ce-conversion-tool__icon{margin-right:0;margin-left:10px}.codex-editor.codex-editor--rtl .ce-inline-toolbar__dropdown{border-right:0px solid transparent;border-left:1px solid rgba(201,201,204,.48);margin:0 -6px 0 6px}.codex-editor.codex-editor--rtl .ce-inline-toolbar__dropdown .icon--toggler-down{margin-left:0;margin-right:4px}@media (min-width: 651px){.codex-editor--narrow.codex-editor--rtl .ce-toolbar__plus{left:0;right:5px}}@media (min-width: 651px){.codex-editor--narrow.codex-editor--rtl .ce-toolbar__actions{left:-5px}}.cdx-search-field{--icon-margin-right: 10px;background:#F8F8F8;border:1px solid rgba(226,226,229,.2);border-radius:6px;padding:2px;display:grid;grid-template-columns:auto auto 1fr;grid-template-rows:auto}.cdx-search-field__icon{width:26px;height:26px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:var(--icon-margin-right)}.cdx-search-field__icon svg{width:20px;height:20px;color:#707684}.cdx-search-field__input{font-size:14px;outline:none;font-weight:500;font-family:inherit;border:0;background:transparent;margin:0;padding:0;line-height:22px;min-width:calc(100% - 26px - var(--icon-margin-right))}.cdx-search-field__input::-webkit-input-placeholder{color:#707684;font-weight:500}.cdx-search-field__input::-moz-placeholder{color:#707684;font-weight:500}.cdx-search-field__input:-ms-input-placeholder{color:#707684;font-weight:500}.cdx-search-field__input::-ms-input-placeholder{color:#707684;font-weight:500}.cdx-search-field__input::placeholder{color:#707684;font-weight:500}.ce-popover{--border-radius: 6px;--width: 200px;--max-height: 370px;--padding: 6px;--offset-from-target: 8px;--color-border: #EFF0F1;--color-shadow: rgba(13, 20, 33, .1);--color-background: white;--color-text-primary: black;--color-text-secondary: #707684;--color-border-icon: rgba(201, 201, 204, .48);--color-border-icon-disabled: #EFF0F1;--color-text-icon-active: #388AE5;--color-background-icon-active: rgba(56, 138, 229, .1);--color-background-item-focus: rgba(34, 186, 255, .08);--color-shadow-item-focus: rgba(7, 161, 227, .08);--color-background-item-hover: #F8F8F8;--color-background-item-confirm: #E24A4A;--color-background-item-confirm-hover: #CE4343;--popover-top: calc(100% + var(--offset-from-target));--popover-left: 0;--nested-popover-overlap: 4px;--icon-size: 20px;--item-padding: 3px;--item-height: calc(var(--icon-size) + 2 * var(--item-padding))}.ce-popover__container{min-width:var(--width);width:var(--width);max-height:var(--max-height);border-radius:var(--border-radius);overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0px 3px 15px -3px var(--color-shadow);box-shadow:0 3px 15px -3px var(--color-shadow);position:absolute;left:var(--popover-left);top:var(--popover-top);background:var(--color-background);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;z-index:4;opacity:0;max-height:0;pointer-events:none;padding:0;border:none}.ce-popover--opened>.ce-popover__container{opacity:1;padding:var(--padding);max-height:var(--max-height);pointer-events:auto;-webkit-animation:panelShowing .1s ease;animation:panelShowing .1s ease;border:1px solid var(--color-border)}@media (max-width: 650px){.ce-popover--opened>.ce-popover__container{-webkit-animation:panelShowingMobile .25s ease;animation:panelShowingMobile .25s ease}}.ce-popover--open-top .ce-popover__container{--popover-top: calc(-1 * (var(--offset-from-target) + var(--popover-height)))}.ce-popover--open-left .ce-popover__container{--popover-left: calc(-1 * var(--width) + 100%)}.ce-popover__items{overflow-y:auto;-ms-scroll-chaining:none;overscroll-behavior:contain}@media (max-width: 650px){.ce-popover__overlay{position:fixed;top:0;bottom:0;left:0;right:0;background:#1D202B;z-index:3;opacity:.5;-webkit-transition:opacity .12s ease-in;transition:opacity .12s ease-in;will-change:opacity;visibility:visible}}.ce-popover__overlay--hidden{display:none}@media (max-width: 650px){.ce-popover .ce-popover__container{--offset: 5px;position:fixed;max-width:none;min-width:calc(100% - var(--offset) * 2);left:var(--offset);right:var(--offset);bottom:calc(var(--offset) + env(safe-area-inset-bottom));top:auto;border-radius:10px}}.ce-popover__search{margin-bottom:5px}.ce-popover__nothing-found-message{color:#707684;display:none;cursor:default;padding:3px;font-size:14px;line-height:20px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ce-popover__nothing-found-message--displayed{display:block}.ce-popover--nested .ce-popover__container{--popover-left: calc(var(--nesting-level) * (var(--width) - var(--nested-popover-overlap)));top:calc(var(--trigger-item-top) - var(--nested-popover-overlap));position:absolute}.ce-popover--open-top.ce-popover--nested .ce-popover__container{top:calc(var(--trigger-item-top) - var(--popover-height) + var(--item-height) + var(--offset-from-target) + var(--nested-popover-overlap))}.ce-popover--open-left .ce-popover--nested .ce-popover__container{--popover-left: calc(-1 * (var(--nesting-level) + 1) * var(--width) + 100%)}.ce-popover-item-separator{padding:4px 3px}.ce-popover-item-separator--hidden{display:none}.ce-popover-item-separator__line{height:1px;background:var(--color-border);width:100%}.ce-popover-item-html--hidden{display:none}.ce-popover-item{--border-radius: 6px;border-radius:var(--border-radius);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:var(--item-padding);color:var(--color-text-primary);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:none;background:transparent}@media (max-width: 650px){.ce-popover-item{padding:4px}}.ce-popover-item:not(:last-of-type){margin-bottom:1px}.ce-popover-item__icon{width:26px;height:26px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.ce-popover-item__icon svg{width:20px;height:20px}@media (max-width: 650px){.ce-popover-item__icon{width:36px;height:36px;border-radius:8px}.ce-popover-item__icon svg{width:28px;height:28px}}.ce-popover-item__icon--tool{margin-right:4px}.ce-popover-item__title{font-size:14px;line-height:20px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:auto}@media (max-width: 650px){.ce-popover-item__title{font-size:16px}}.ce-popover-item__secondary-title{color:var(--color-text-secondary);font-size:12px;white-space:nowrap;letter-spacing:-.1em;padding-right:5px;opacity:.6}@media (max-width: 650px){.ce-popover-item__secondary-title{display:none}}.ce-popover-item--active{background:var(--color-background-icon-active);color:var(--color-text-icon-active)}.ce-popover-item--disabled{color:var(--color-text-secondary);cursor:default;pointer-events:none}.ce-popover-item--focused:not(.ce-popover-item--no-focus){background:var(--color-background-item-focus)!important}.ce-popover-item--hidden{display:none}@media (hover: hover){.ce-popover-item:hover{cursor:pointer}.ce-popover-item:hover:not(.ce-popover-item--no-hover){background-color:var(--color-background-item-hover)}}.ce-popover-item--confirmation{background:var(--color-background-item-confirm)}.ce-popover-item--confirmation .ce-popover-item__title,.ce-popover-item--confirmation .ce-popover-item__icon{color:#fff}@media (hover: hover){.ce-popover-item--confirmation:not(.ce-popover-item--no-hover):hover{background:var(--color-background-item-confirm-hover)}}.ce-popover-item--confirmation:not(.ce-popover-item--no-focus).ce-popover-item--focused{background:var(--color-background-item-confirm-hover)!important}@-webkit-keyframes panelShowing{0%{opacity:0;-webkit-transform:translateY(-8px) scale(.9);transform:translateY(-8px) scale(.9)}70%{opacity:1;-webkit-transform:translateY(2px);transform:translateY(2px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes panelShowing{0%{opacity:0;-webkit-transform:translateY(-8px) scale(.9);transform:translateY(-8px) scale(.9)}70%{opacity:1;-webkit-transform:translateY(2px);transform:translateY(2px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes panelShowingMobile{0%{opacity:0;-webkit-transform:translateY(14px) scale(.98);transform:translateY(14px) scale(.98)}70%{opacity:1;-webkit-transform:translateY(-4px);transform:translateY(-4px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes panelShowingMobile{0%{opacity:0;-webkit-transform:translateY(14px) scale(.98);transform:translateY(14px) scale(.98)}70%{opacity:1;-webkit-transform:translateY(-4px);transform:translateY(-4px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}.wobble{-webkit-animation-name:wobble;animation-name:wobble;-webkit-animation-duration:.4s;animation-duration:.4s}@-webkit-keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-9%,0,0);transform:translate3d(-9%,0,0)}30%{-webkit-transform:translate3d(9%,0,0);transform:translate3d(9%,0,0)}45%{-webkit-transform:translate3d(-4%,0,0);transform:translate3d(-4%,0,0)}60%{-webkit-transform:translate3d(4%,0,0);transform:translate3d(4%,0,0)}75%{-webkit-transform:translate3d(-1%,0,0);transform:translate3d(-1%,0,0)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-9%,0,0);transform:translate3d(-9%,0,0)}30%{-webkit-transform:translate3d(9%,0,0);transform:translate3d(9%,0,0)}45%{-webkit-transform:translate3d(-4%,0,0);transform:translate3d(-4%,0,0)}60%{-webkit-transform:translate3d(4%,0,0);transform:translate3d(4%,0,0)}75%{-webkit-transform:translate3d(-1%,0,0);transform:translate3d(-1%,0,0)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.ce-popover-header{margin-bottom:8px;margin-top:4px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.ce-popover-header__text{font-size:18px;font-weight:600}.ce-popover-header__back-button{border:0;background:transparent;width:36px;height:36px;color:var(--color-text-primary)}.ce-popover-header__back-button svg{display:block;width:28px;height:28px}.ce-popover--inline{--height: 38px;--height-mobile: 46px;--container-padding: 4px;position:relative}.ce-popover--inline .ce-popover__custom-content{margin-bottom:0}.ce-popover--inline .ce-popover__items{display:-webkit-box;display:-ms-flexbox;display:flex}.ce-popover--inline .ce-popover__container{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;padding:var(--container-padding);height:var(--height);top:0;min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content;width:-webkit-max-content;width:-moz-max-content;width:max-content;-webkit-animation:none;animation:none}@media (max-width: 650px){.ce-popover--inline .ce-popover__container{height:var(--height-mobile);position:absolute}}.ce-popover--inline .ce-popover-item-separator{padding:0 4px}.ce-popover--inline .ce-popover-item-separator__line{height:100%;width:1px}.ce-popover--inline .ce-popover-item{border-radius:4px;padding:4px}.ce-popover--inline .ce-popover-item__icon--tool{-webkit-box-shadow:none;box-shadow:none;background:transparent;margin-right:0}.ce-popover--inline .ce-popover-item__icon{width:auto;width:initial;height:auto;height:initial}.ce-popover--inline .ce-popover-item__icon svg{width:20px;height:20px}@media (max-width: 650px){.ce-popover--inline .ce-popover-item__icon svg{width:28px;height:28px}}.ce-popover--inline .ce-popover-item:not(:last-of-type){margin-bottom:0;margin-bottom:initial}.ce-popover--inline .ce-popover-item-html{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.ce-popover--inline .ce-popover-item__icon--chevron-right{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.ce-popover--inline .ce-popover--nested-level-1 .ce-popover__container{--offset: 3px;left:0;top:calc(var(--height) + var(--offset))}@media (max-width: 650px){.ce-popover--inline .ce-popover--nested-level-1 .ce-popover__container{top:calc(var(--height-mobile) + var(--offset))}}.ce-popover--inline .ce-popover--nested .ce-popover__container{min-width:var(--width);width:var(--width);height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:6px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.ce-popover--inline .ce-popover--nested .ce-popover__items{display:block;width:100%}.ce-popover--inline .ce-popover--nested .ce-popover-item{border-radius:6px;padding:3px}@media (max-width: 650px){.ce-popover--inline .ce-popover--nested .ce-popover-item{padding:4px}}.ce-popover--inline .ce-popover--nested .ce-popover-item__icon--tool{margin-right:4px}.ce-popover--inline .ce-popover--nested .ce-popover-item__icon{width:26px;height:26px}.ce-popover--inline .ce-popover--nested .ce-popover-item-separator{padding:4px 3px}.ce-popover--inline .ce-popover--nested .ce-popover-item-separator__line{width:100%;height:1px}.codex-editor [data-placeholder]:empty:before,.codex-editor [data-placeholder][data-empty=true]:before{pointer-events:none;color:#707684;cursor:text;content:attr(data-placeholder)}.codex-editor [data-placeholder-active]:empty:before,.codex-editor [data-placeholder-active][data-empty=true]:before{pointer-events:none;color:#707684;cursor:text}.codex-editor [data-placeholder-active]:empty:focus:before,.codex-editor [data-placeholder-active][data-empty=true]:focus:before{content:attr(data-placeholder-active)}
|
|
10178
|
+
const Ll = `:root{--selectionColor: #e1f2ff;--inlineSelectionColor: #d4ecff;--bg-light: #eff2f5;--grayText: #707684;--color-dark: #1D202B;--color-active-icon: #388AE5;--color-gray-border: rgba(201, 201, 204, .48);--content-width: 650px;--narrow-mode-right-padding: 50px;--toolbox-buttons-size: 26px;--toolbox-buttons-size--mobile: 36px;--icon-size: 20px;--icon-size--mobile: 28px;--block-padding-vertical: 0;--color-line-gray: #EFF0F1 }.codex-editor{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:1}.codex-editor .hide{display:none}.codex-editor__redactor [contenteditable]:empty:after{content:"\\feff"}@media (min-width: 651px){.codex-editor--narrow .codex-editor__redactor{margin-right:50px}}@media (min-width: 651px){.codex-editor--narrow.codex-editor--rtl .codex-editor__redactor{margin-left:50px;margin-right:0}}@media (min-width: 651px){.codex-editor--narrow .ce-toolbar__actions{right:-5px}}.codex-editor-copyable{position:absolute;height:1px;width:1px;top:-400%;opacity:.001}.codex-editor-overlay{position:fixed;top:0;left:0;right:0;bottom:0;z-index:999;pointer-events:none;overflow:hidden}.codex-editor-overlay__container{position:relative;pointer-events:auto;z-index:0}.codex-editor-overlay__rectangle{position:absolute;pointer-events:none;background-color:#2eaadc33;border:1px solid transparent}.codex-editor svg{max-height:100%}.codex-editor path{stroke:currentColor}.codex-editor ::-moz-selection{background-color:#d4ecff}.codex-editor ::selection{background-color:#d4ecff}.codex-editor--toolbox-opened [contentEditable=true][data-placeholder]:focus:before{opacity:0!important}.ce-scroll-locked{overflow:hidden}.ce-scroll-locked--hard{overflow:hidden;top:calc(-1 * var(--window-scroll-offset));position:fixed;width:100%}.ce-toolbar{position:absolute;left:0;right:0;top:0;-webkit-transition:opacity .1s ease;transition:opacity .1s ease;will-change:opacity,top;display:none}.ce-toolbar--opened{display:block}.ce-toolbar__content{max-width:650px;margin:0 auto;position:relative}.ce-toolbar__plus{color:#1d202b;cursor:pointer;width:26px;height:26px;border-radius:7px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-negative:0;flex-shrink:0}@media (max-width: 650px){.ce-toolbar__plus{width:36px;height:36px}}@media (hover: hover){.ce-toolbar__plus:hover{background-color:#eff2f5}}.ce-toolbar__plus--active{background-color:#eff2f5;-webkit-animation:bounceIn .75s 1;animation:bounceIn .75s 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.ce-toolbar__plus-shortcut{opacity:.6;word-spacing:-2px;margin-top:5px}.ce-toolbar__plus--hidden{display:none}@media (max-width: 650px){.ce-toolbar__plus{position:absolute;background-color:#fff;border:1px solid #E8E8EB;-webkit-box-shadow:0 3px 15px -3px rgba(13,20,33,.13);box-shadow:0 3px 15px -3px #0d142121;border-radius:6px;z-index:2;position:static}.ce-toolbar__plus--left-oriented:before{left:15px;margin-left:0}.ce-toolbar__plus--right-oriented:before{left:auto;right:15px;margin-left:0}}.ce-toolbar__actions{position:absolute;right:100%;opacity:0;display:-webkit-box;display:-ms-flexbox;display:flex;padding-right:5px}.ce-toolbar__actions--opened{opacity:1}@media (max-width: 650px){.ce-toolbar__actions{right:auto}}.ce-toolbar__settings-btn{color:#1d202b;width:26px;height:26px;border-radius:7px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;border:1px solid rgba(201,201,204,.48);color:#707684;margin-left:3px;cursor:pointer;user-select:none}@media (max-width: 650px){.ce-toolbar__settings-btn{width:36px;height:36px}}@media (hover: hover){.ce-toolbar__settings-btn:hover{background-color:#eff2f5}}.ce-toolbar__settings-btn--active{background-color:#eff2f5;-webkit-animation:bounceIn .75s 1;animation:bounceIn .75s 1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.ce-toolbar__settings-btn--hidden{display:none}@media (max-width: 650px){.ce-toolbar__settings-btn{position:absolute;background-color:#fff;border:1px solid #E8E8EB;-webkit-box-shadow:0 3px 15px -3px rgba(13,20,33,.13);box-shadow:0 3px 15px -3px #0d142121;border-radius:6px;z-index:2;position:static}.ce-toolbar__settings-btn--left-oriented:before{left:15px;margin-left:0}.ce-toolbar__settings-btn--right-oriented:before{left:auto;right:15px;margin-left:0}}.ce-toolbar__plus svg,.ce-toolbar__settings-btn svg{width:24px;height:24px}.ce-toolbar__plus svg path,.ce-toolbar__settings-btn svg path{fill:#707684}.ce-toolbar__settings-btn{width:auto}.ce-toolbar__settings-btn .icon-block-name,.ce-toolbar__settings-btn .icon-menu{display:inline-block;width:24px;height:24px}.ce-toolbar__settings-btn .icon-block-name{text-align:center}.ce-toolbar__settings-btn .icon-block-name .icon-toolbox-alert{width:20px!important;height:20px!important}.ce-toolbar__settings-btn .icon-menu{width:16px}.ce-toolbar__settings-btn .icon-menu svg{margin-left:-6px}@media (min-width: 651px){.codex-editor--narrow .ce-toolbar__plus{left:5px}}@media (min-width: 651px){.codex-editor--narrow .ce-toolbox .ce-popover{right:0;left:auto;left:initial}}.ce-inline-toolbar{--y-offset: 8px;--color-background-icon-active: rgba(56, 138, 229, .1);--color-text-icon-active: #388AE5;--color-text-primary: black;position:absolute;visibility:hidden;-webkit-transition:opacity .25s ease;transition:opacity .25s ease;will-change:opacity,left,top;top:0;left:0;z-index:3;opacity:1;visibility:visible}.ce-inline-toolbar [hidden]{display:none!important}.ce-inline-toolbar__toggler-and-button-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;padding:0 6px}.ce-inline-toolbar__buttons{display:-webkit-box;display:-ms-flexbox;display:flex}.ce-inline-toolbar__dropdown{display:-webkit-box;display:-ms-flexbox;display:flex;padding:6px;margin:0 6px 0 -6px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;border-right:1px solid rgba(201,201,204,.48);-webkit-box-sizing:border-box;box-sizing:border-box}@media (hover: hover){.ce-inline-toolbar__dropdown:hover{background:#eff2f5}}.ce-inline-toolbar__dropdown--hidden{display:none}.ce-inline-toolbar__dropdown-content,.ce-inline-toolbar__dropdown-arrow{display:-webkit-box;display:-ms-flexbox;display:flex}.ce-inline-toolbar__dropdown-content svg,.ce-inline-toolbar__dropdown-arrow svg{width:20px;height:20px}.ce-inline-toolbar__shortcut{opacity:.6;word-spacing:-3px;margin-top:3px}.ce-inline-tool{color:var(--color-text-primary);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:0;border-radius:4px;line-height:normal;height:100%;padding:0;width:28px;background-color:transparent;cursor:pointer}@media (max-width: 650px){.ce-inline-tool{width:36px;height:36px}}@media (hover: hover){.ce-inline-tool:hover{background-color:#f8f8f8}}.ce-inline-tool svg{display:block;width:20px;height:20px}@media (max-width: 650px){.ce-inline-tool svg{width:28px;height:28px}}.ce-inline-tool--link .icon--unlink,.ce-inline-tool--unlink .icon--link{display:none}.ce-inline-tool--unlink .icon--unlink{display:inline-block;margin-bottom:-1px}.ce-inline-tool-input-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:5px}.ce-inline-tool-input-btn{width:50px;border-radius:5px;background-color:#161c27;color:#fff;border:none;cursor:pointer}.ce-inline-tool-input{-webkit-box-flex:1;-ms-flex:1;flex:1;background:#F8F8F8;border:1px solid rgba(226,226,229,.2);border-radius:6px;padding:4px 8px;font-size:14px;line-height:22px;outline:none;margin:0;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;display:none;font-weight:500;-webkit-appearance:none;font-family:inherit}@media (max-width: 650px){.ce-inline-tool-input{font-size:15px;font-weight:500}}.ce-inline-tool-input::-webkit-input-placeholder{color:#707684}.ce-inline-tool-input::-moz-placeholder{color:#707684}.ce-inline-tool-input:-ms-input-placeholder{color:#707684}.ce-inline-tool-input::-ms-input-placeholder{color:#707684}.ce-inline-tool-input::placeholder{color:#707684}.ce-inline-tool-input--showed{display:block}.ce-inline-tool--active{background:var(--color-background-icon-active);color:var(--color-text-icon-active)}@-webkit-keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.ce-block{-webkit-animation:fade-in .3s ease;animation:fade-in .3s ease;-webkit-animation-fill-mode:none;animation-fill-mode:none;-webkit-animation-fill-mode:initial;animation-fill-mode:initial}.ce-block:first-of-type{margin-top:0}.ce-block--selected .ce-block__content{background:#e1f2ff}.ce-block--selected .ce-block__content [contenteditable]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ce-block--selected .ce-block__content img,.ce-block--selected .ce-block__content .ce-stub{opacity:.55}.ce-block--stretched .ce-block__content{max-width:none}.ce-block__content{position:relative;max-width:650px;margin:0 auto;-webkit-transition:background-color .15s ease;transition:background-color .15s ease}.ce-block--drop-target .ce-block__content:before{content:"";position:absolute;top:100%;left:-20px;margin-top:-1px;height:8px;width:8px;border:solid #388AE5;border-width:1px 1px 0 0;-webkit-transform-origin:right;transform-origin:right;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.ce-block--drop-target .ce-block__content:after{content:"";position:absolute;top:100%;height:1px;width:100%;color:#388ae5;background:repeating-linear-gradient(90deg,#388AE5,#388AE5 1px,#fff 1px,#fff 6px)}.ce-block a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline}.ce-block b{font-weight:700}.ce-block i{font-style:italic}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}20%{-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}60%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}20%{-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}60%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@-webkit-keyframes selectionBounce{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}50%{-webkit-transform:scale3d(1.01,1.01,1.01);transform:scale3d(1.01,1.01,1.01)}70%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes selectionBounce{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}50%{-webkit-transform:scale3d(1.01,1.01,1.01);transform:scale3d(1.01,1.01,1.01)}70%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@-webkit-keyframes buttonClicked{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:scale3d(.95,.95,.95);transform:scale3d(.95,.95,.95)}60%{-webkit-transform:scale3d(1.02,1.02,1.02);transform:scale3d(1.02,1.02,1.02)}80%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes buttonClicked{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:scale3d(.95,.95,.95);transform:scale3d(.95,.95,.95)}60%{-webkit-transform:scale3d(1.02,1.02,1.02);transform:scale3d(1.02,1.02,1.02)}80%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.cdx-block{padding:0}.cdx-block::-webkit-input-placeholder{line-height:normal!important}.cdx-input{border:1px solid rgba(201,201,204,.48);-webkit-box-shadow:inset 0 1px 2px 0 rgba(35,44,72,.06);box-shadow:inset 0 1px 2px #232c480f;border-radius:3px;padding:10px 12px;outline:none;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.cdx-input[data-placeholder]:before{position:static!important}.cdx-input[data-placeholder]:before{display:inline-block;width:0;white-space:nowrap;pointer-events:none}.cdx-settings-button{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;border-radius:3px;cursor:pointer;border:0;outline:none;background-color:transparent;vertical-align:bottom;color:inherit;margin:0;min-width:26px;min-height:26px}.cdx-settings-button--focused{background:rgba(34,186,255,.08)!important}.cdx-settings-button--focused{-webkit-box-shadow:inset 0 0 0px 1px rgba(7,161,227,.08);box-shadow:inset 0 0 0 1px #07a1e314}.cdx-settings-button--focused-animated{-webkit-animation-name:buttonClicked;animation-name:buttonClicked;-webkit-animation-duration:.25s;animation-duration:.25s}.cdx-settings-button--active{color:#388ae5}.cdx-settings-button svg{width:auto;height:auto}@media (max-width: 650px){.cdx-settings-button svg{width:28px;height:28px}}@media (max-width: 650px){.cdx-settings-button{width:36px;height:36px;border-radius:8px}}@media (hover: hover){.cdx-settings-button:hover{background-color:#eff2f5}}.cdx-loader{position:relative;border:1px solid rgba(201,201,204,.48)}.cdx-loader:before{content:"";position:absolute;left:50%;top:50%;width:18px;height:18px;margin:-11px 0 0 -11px;border:2px solid rgba(201,201,204,.48);border-left-color:#388ae5;border-radius:50%;-webkit-animation:cdxRotation 1.2s infinite linear;animation:cdxRotation 1.2s infinite linear}@-webkit-keyframes cdxRotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes cdxRotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.cdx-button{padding:13px;border-radius:3px;border:1px solid rgba(201,201,204,.48);font-size:14.9px;background:#fff;-webkit-box-shadow:0 2px 2px 0 rgba(18,30,57,.04);box-shadow:0 2px 2px #121e390a;color:#707684;text-align:center;cursor:pointer}@media (hover: hover){.cdx-button:hover{background:#FBFCFE;-webkit-box-shadow:0 1px 3px 0 rgba(18,30,57,.08);box-shadow:0 1px 3px #121e3914}}.cdx-button svg{height:20px;margin-right:.2em;margin-top:-2px}.ce-stub{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:12px 18px;margin:10px 0;border-radius:10px;background:#eff2f5;border:1px solid #EFF0F1;color:#707684;font-size:14px}.ce-stub svg{width:20px;height:20px}.ce-stub__info{margin-left:14px}.ce-stub__title{font-weight:500;text-transform:capitalize}.codex-editor.codex-editor--rtl{direction:rtl}.codex-editor.codex-editor--rtl .cdx-list{padding-left:0;padding-right:40px}.codex-editor.codex-editor--rtl .ce-toolbar__plus{right:-26px;left:auto}.codex-editor.codex-editor--rtl .ce-toolbar__actions{right:auto;left:-26px}@media (max-width: 650px){.codex-editor.codex-editor--rtl .ce-toolbar__actions{margin-left:0;margin-right:auto;padding-right:0;padding-left:10px}}.codex-editor.codex-editor--rtl .ce-settings{left:5px;right:auto}.codex-editor.codex-editor--rtl .ce-settings:before{right:auto;left:25px}.codex-editor.codex-editor--rtl .ce-settings__button:not(:nth-child(3n+3)){margin-left:3px;margin-right:0}.codex-editor.codex-editor--rtl .ce-conversion-tool__icon{margin-right:0;margin-left:10px}.codex-editor.codex-editor--rtl .ce-inline-toolbar__dropdown{border-right:0px solid transparent;border-left:1px solid rgba(201,201,204,.48);margin:0 -6px 0 6px}.codex-editor.codex-editor--rtl .ce-inline-toolbar__dropdown .icon--toggler-down{margin-left:0;margin-right:4px}@media (min-width: 651px){.codex-editor--narrow.codex-editor--rtl .ce-toolbar__plus{left:0;right:5px}}@media (min-width: 651px){.codex-editor--narrow.codex-editor--rtl .ce-toolbar__actions{left:-5px}}.cdx-search-field{--icon-margin-right: 10px;background:#F8F8F8;border:1px solid rgba(226,226,229,.2);border-radius:6px;padding:2px;display:grid;grid-template-columns:auto auto 1fr;grid-template-rows:auto}.cdx-search-field__icon{width:26px;height:26px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:var(--icon-margin-right)}.cdx-search-field__icon svg{width:20px;height:20px;color:#707684}.cdx-search-field__input{font-size:14px;outline:none;font-weight:500;font-family:inherit;border:0;background:transparent;margin:0;padding:0;line-height:22px;min-width:calc(100% - 26px - var(--icon-margin-right))}.cdx-search-field__input::-webkit-input-placeholder{color:#707684;font-weight:500}.cdx-search-field__input::-moz-placeholder{color:#707684;font-weight:500}.cdx-search-field__input:-ms-input-placeholder{color:#707684;font-weight:500}.cdx-search-field__input::-ms-input-placeholder{color:#707684;font-weight:500}.cdx-search-field__input::placeholder{color:#707684;font-weight:500}.ce-popover{--border-radius: 6px;--width: 200px;--max-height: 370px;--padding: 6px;--offset-from-target: 8px;--color-border: #EFF0F1;--color-shadow: rgba(13, 20, 33, .1);--color-background: white;--color-text-primary: black;--color-text-secondary: #707684;--color-border-icon: rgba(201, 201, 204, .48);--color-border-icon-disabled: #EFF0F1;--color-text-icon-active: #388AE5;--color-background-icon-active: rgba(56, 138, 229, .1);--color-background-item-focus: rgba(34, 186, 255, .08);--color-shadow-item-focus: rgba(7, 161, 227, .08);--color-background-item-hover: #F8F8F8;--color-background-item-confirm: #E24A4A;--color-background-item-confirm-hover: #CE4343;--popover-top: calc(100% + var(--offset-from-target));--popover-left: 0;--nested-popover-overlap: 4px;--icon-size: 20px;--item-padding: 3px;--item-height: calc(var(--icon-size) + 2 * var(--item-padding))}.ce-popover__container{min-width:var(--width);width:var(--width);max-height:var(--max-height);border-radius:var(--border-radius);overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0px 3px 15px -3px var(--color-shadow);box-shadow:0 3px 15px -3px var(--color-shadow);position:absolute;left:var(--popover-left);top:var(--popover-top);background:var(--color-background);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;z-index:4;opacity:0;max-height:0;pointer-events:none;padding:0;border:none}.ce-popover--opened>.ce-popover__container{opacity:1;padding:var(--padding);max-height:var(--max-height);pointer-events:auto;-webkit-animation:panelShowing .1s ease;animation:panelShowing .1s ease;border:1px solid var(--color-border)}@media (max-width: 650px){.ce-popover--opened>.ce-popover__container{-webkit-animation:panelShowingMobile .25s ease;animation:panelShowingMobile .25s ease}}.ce-popover--open-top .ce-popover__container{--popover-top: calc(-1 * (var(--offset-from-target) + var(--popover-height)))}.ce-popover--open-left .ce-popover__container{--popover-left: calc(-1 * var(--width) + 100%)}.ce-popover__items{overflow-y:auto;-ms-scroll-chaining:none;overscroll-behavior:contain}@media (max-width: 650px){.ce-popover__overlay{position:fixed;top:0;bottom:0;left:0;right:0;background:#1D202B;z-index:3;opacity:.5;-webkit-transition:opacity .12s ease-in;transition:opacity .12s ease-in;will-change:opacity;visibility:visible}}.ce-popover__overlay--hidden{display:none}@media (max-width: 650px){.ce-popover .ce-popover__container{--offset: 5px;position:fixed;max-width:none;min-width:calc(100% - var(--offset) * 2);left:var(--offset);right:var(--offset);bottom:calc(var(--offset) + env(safe-area-inset-bottom));top:auto;border-radius:10px}}.ce-popover__search{margin-bottom:5px}.ce-popover__nothing-found-message{color:#707684;display:none;cursor:default;padding:3px;font-size:14px;line-height:20px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ce-popover__nothing-found-message--displayed{display:block}.ce-popover--nested .ce-popover__container{--popover-left: calc(var(--nesting-level) * (var(--width) - var(--nested-popover-overlap)));top:calc(var(--trigger-item-top) - var(--nested-popover-overlap));position:absolute}.ce-popover--open-top.ce-popover--nested .ce-popover__container{top:calc(var(--trigger-item-top) - var(--popover-height) + var(--item-height) + var(--offset-from-target) + var(--nested-popover-overlap))}.ce-popover--open-left .ce-popover--nested .ce-popover__container{--popover-left: calc(-1 * (var(--nesting-level) + 1) * var(--width) + 100%)}.ce-popover-item-separator{padding:4px 3px}.ce-popover-item-separator--hidden{display:none}.ce-popover-item-separator__line{height:1px;background:var(--color-border);width:100%}.ce-popover-item-html--hidden{display:none}.ce-popover-item{--border-radius: 6px;border-radius:var(--border-radius);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:var(--item-padding);color:var(--color-text-primary);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:none;background:transparent}@media (max-width: 650px){.ce-popover-item{padding:4px}}.ce-popover-item:not(:last-of-type){margin-bottom:1px}.ce-popover-item__icon{width:26px;height:26px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.ce-popover-item__icon svg{width:20px;height:20px}@media (max-width: 650px){.ce-popover-item__icon{width:36px;height:36px;border-radius:8px}.ce-popover-item__icon svg{width:28px;height:28px}}.ce-popover-item__icon--tool{margin-right:4px}.ce-popover-item__title{font-size:14px;line-height:20px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:auto}@media (max-width: 650px){.ce-popover-item__title{font-size:16px}}.ce-popover-item__secondary-title{color:var(--color-text-secondary);font-size:12px;white-space:nowrap;letter-spacing:-.1em;padding-right:5px;opacity:.6}@media (max-width: 650px){.ce-popover-item__secondary-title{display:none}}.ce-popover-item--active{background:var(--color-background-icon-active);color:var(--color-text-icon-active)}.ce-popover-item--disabled{color:var(--color-text-secondary);cursor:default;pointer-events:none}.ce-popover-item--focused:not(.ce-popover-item--no-focus){background:var(--color-background-item-focus)!important}.ce-popover-item--hidden{display:none}@media (hover: hover){.ce-popover-item:hover{cursor:pointer}.ce-popover-item:hover:not(.ce-popover-item--no-hover){background-color:var(--color-background-item-hover)}}.ce-popover-item--confirmation{background:var(--color-background-item-confirm)}.ce-popover-item--confirmation .ce-popover-item__title,.ce-popover-item--confirmation .ce-popover-item__icon{color:#fff}@media (hover: hover){.ce-popover-item--confirmation:not(.ce-popover-item--no-hover):hover{background:var(--color-background-item-confirm-hover)}}.ce-popover-item--confirmation:not(.ce-popover-item--no-focus).ce-popover-item--focused{background:var(--color-background-item-confirm-hover)!important}@-webkit-keyframes panelShowing{0%{opacity:0;-webkit-transform:translateY(-8px) scale(.9);transform:translateY(-8px) scale(.9)}70%{opacity:1;-webkit-transform:translateY(2px);transform:translateY(2px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes panelShowing{0%{opacity:0;-webkit-transform:translateY(-8px) scale(.9);transform:translateY(-8px) scale(.9)}70%{opacity:1;-webkit-transform:translateY(2px);transform:translateY(2px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes panelShowingMobile{0%{opacity:0;-webkit-transform:translateY(14px) scale(.98);transform:translateY(14px) scale(.98)}70%{opacity:1;-webkit-transform:translateY(-4px);transform:translateY(-4px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes panelShowingMobile{0%{opacity:0;-webkit-transform:translateY(14px) scale(.98);transform:translateY(14px) scale(.98)}70%{opacity:1;-webkit-transform:translateY(-4px);transform:translateY(-4px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}.wobble{-webkit-animation-name:wobble;animation-name:wobble;-webkit-animation-duration:.4s;animation-duration:.4s}@-webkit-keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-9%,0,0);transform:translate3d(-9%,0,0)}30%{-webkit-transform:translate3d(9%,0,0);transform:translate3d(9%,0,0)}45%{-webkit-transform:translate3d(-4%,0,0);transform:translate3d(-4%,0,0)}60%{-webkit-transform:translate3d(4%,0,0);transform:translate3d(4%,0,0)}75%{-webkit-transform:translate3d(-1%,0,0);transform:translate3d(-1%,0,0)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-9%,0,0);transform:translate3d(-9%,0,0)}30%{-webkit-transform:translate3d(9%,0,0);transform:translate3d(9%,0,0)}45%{-webkit-transform:translate3d(-4%,0,0);transform:translate3d(-4%,0,0)}60%{-webkit-transform:translate3d(4%,0,0);transform:translate3d(4%,0,0)}75%{-webkit-transform:translate3d(-1%,0,0);transform:translate3d(-1%,0,0)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.ce-popover-header{margin-bottom:8px;margin-top:4px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.ce-popover-header__text{font-size:18px;font-weight:600}.ce-popover-header__back-button{border:0;background:transparent;width:36px;height:36px;color:var(--color-text-primary)}.ce-popover-header__back-button svg{display:block;width:28px;height:28px}.ce-popover--inline{--height: 38px;--height-mobile: 46px;--container-padding: 4px;position:relative}.ce-popover--inline .ce-popover__custom-content{margin-bottom:0}.ce-popover--inline .ce-popover__items{display:-webkit-box;display:-ms-flexbox;display:flex}.ce-popover--inline .ce-popover__container{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;padding:var(--container-padding);height:var(--height);top:0;min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content;width:-webkit-max-content;width:-moz-max-content;width:max-content;-webkit-animation:none;animation:none}@media (max-width: 650px){.ce-popover--inline .ce-popover__container{height:var(--height-mobile);position:absolute}}.ce-popover--inline .ce-popover-item-separator{padding:0 4px}.ce-popover--inline .ce-popover-item-separator__line{height:100%;width:1px}.ce-popover--inline .ce-popover-item{border-radius:4px;padding:4px}.ce-popover--inline .ce-popover-item__icon--tool{-webkit-box-shadow:none;box-shadow:none;background:transparent;margin-right:0}.ce-popover--inline .ce-popover-item__icon{width:auto;width:initial;height:auto;height:initial}.ce-popover--inline .ce-popover-item__icon svg{width:20px;height:20px}@media (max-width: 650px){.ce-popover--inline .ce-popover-item__icon svg{width:28px;height:28px}}.ce-popover--inline .ce-popover-item:not(:last-of-type){margin-bottom:0;margin-bottom:initial}.ce-popover--inline .ce-popover-item-html{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.ce-popover--inline .ce-popover-item__icon--chevron-right{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.ce-popover--inline .ce-popover--nested-level-1 .ce-popover__container{--offset: 3px;left:0;top:calc(var(--height) + var(--offset))}@media (max-width: 650px){.ce-popover--inline .ce-popover--nested-level-1 .ce-popover__container{top:calc(var(--height-mobile) + var(--offset))}}.ce-popover--inline .ce-popover--nested .ce-popover__container{min-width:var(--width);width:var(--width);height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:6px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.ce-popover--inline .ce-popover--nested .ce-popover__items{display:block;width:100%}.ce-popover--inline .ce-popover--nested .ce-popover-item{border-radius:6px;padding:3px}@media (max-width: 650px){.ce-popover--inline .ce-popover--nested .ce-popover-item{padding:4px}}.ce-popover--inline .ce-popover--nested .ce-popover-item__icon--tool{margin-right:4px}.ce-popover--inline .ce-popover--nested .ce-popover-item__icon{width:26px;height:26px}.ce-popover--inline .ce-popover--nested .ce-popover-item-separator{padding:4px 3px}.ce-popover--inline .ce-popover--nested .ce-popover-item-separator__line{width:100%;height:1px}.codex-editor [data-placeholder]:empty:before,.codex-editor [data-placeholder][data-empty=true]:before{pointer-events:none;color:#707684;cursor:text;content:attr(data-placeholder)}.codex-editor [data-placeholder-active]:empty:before,.codex-editor [data-placeholder-active][data-empty=true]:before{pointer-events:none;color:#707684;cursor:text}.codex-editor [data-placeholder-active]:empty:focus:before,.codex-editor [data-placeholder-active][data-empty=true]:focus:before{content:attr(data-placeholder-active)}
|
|
10175
10179
|
`;
|
|
10176
|
-
class
|
|
10180
|
+
class Al extends E {
|
|
10177
10181
|
constructor() {
|
|
10178
10182
|
super(...arguments), this.isMobile = !1, this.contentRectCache = null, this.resizeDebouncer = vo(() => {
|
|
10179
10183
|
this.windowResize();
|
|
10180
10184
|
}, 200), this.selectionChangeDebounced = vo(() => {
|
|
10181
10185
|
this.selectionChanged();
|
|
10182
|
-
},
|
|
10186
|
+
}, bl), this.documentTouchedListener = (e) => {
|
|
10183
10187
|
this.documentTouched(e);
|
|
10184
10188
|
};
|
|
10185
10189
|
}
|
|
@@ -10300,7 +10304,7 @@ class Aa extends E {
|
|
|
10300
10304
|
return;
|
|
10301
10305
|
const t = h.make("style", null, {
|
|
10302
10306
|
id: e,
|
|
10303
|
-
textContent:
|
|
10307
|
+
textContent: Ll.toString()
|
|
10304
10308
|
});
|
|
10305
10309
|
this.config.style && !V(this.config.style) && this.config.style.nonce && t.setAttribute("nonce", this.config.style.nonce), h.prepend(document.head, t);
|
|
10306
10310
|
}
|
|
@@ -10442,12 +10446,12 @@ class Aa extends E {
|
|
|
10442
10446
|
* @param {MouseEvent} event - Click event
|
|
10443
10447
|
*/
|
|
10444
10448
|
documentClicked(e) {
|
|
10445
|
-
var
|
|
10449
|
+
var l, a;
|
|
10446
10450
|
if (!e.isTrusted)
|
|
10447
10451
|
return;
|
|
10448
10452
|
const t = e.target;
|
|
10449
10453
|
this.nodes.holder.contains(t) || v.isAtEditor || (this.Editor.BlockManager.unsetCurrentBlock(), this.Editor.Toolbar.close());
|
|
10450
|
-
const i = (
|
|
10454
|
+
const i = (l = this.Editor.BlockSettings.nodes.wrapper) == null ? void 0 : l.contains(t), s = (a = this.Editor.Toolbar.nodes.settingsToggler) == null ? void 0 : a.contains(t), r = i || s;
|
|
10451
10455
|
if (this.Editor.BlockSettings.opened && !r) {
|
|
10452
10456
|
this.Editor.BlockSettings.close();
|
|
10453
10457
|
const c = this.Editor.BlockManager.getBlockByChildNode(t);
|
|
@@ -10517,8 +10521,8 @@ class Aa extends E {
|
|
|
10517
10521
|
*/
|
|
10518
10522
|
o < i) {
|
|
10519
10523
|
e.stopImmediatePropagation(), e.stopPropagation();
|
|
10520
|
-
const { BlockManager:
|
|
10521
|
-
(!
|
|
10524
|
+
const { BlockManager: l, Caret: a, Toolbar: c } = this.Editor;
|
|
10525
|
+
(!l.lastBlock.tool.isDefault || !l.lastBlock.isEmpty) && l.insertAtEnd(), a.setToTheLastBlock(), c.moveAndOpen(l.lastBlock);
|
|
10522
10526
|
}
|
|
10523
10527
|
}
|
|
10524
10528
|
/**
|
|
@@ -10549,7 +10553,7 @@ class Aa extends E {
|
|
|
10549
10553
|
this.readOnlyMutableListeners.on(this.nodes.wrapper, "input", e), this.readOnlyMutableListeners.on(this.nodes.wrapper, "focusin", e), this.readOnlyMutableListeners.on(this.nodes.wrapper, "focusout", e);
|
|
10550
10554
|
}
|
|
10551
10555
|
}
|
|
10552
|
-
const
|
|
10556
|
+
const Nl = {
|
|
10553
10557
|
// API Modules
|
|
10554
10558
|
BlocksAPI: ci,
|
|
10555
10559
|
CaretAPI: hi,
|
|
@@ -10573,22 +10577,22 @@ const Na = {
|
|
|
10573
10577
|
Toolbar: Ms,
|
|
10574
10578
|
InlineToolbar: Ls,
|
|
10575
10579
|
// Modules
|
|
10576
|
-
BlockEvents:
|
|
10577
|
-
BlockManager:
|
|
10578
|
-
BlockSelection:
|
|
10580
|
+
BlockEvents: dl,
|
|
10581
|
+
BlockManager: pl,
|
|
10582
|
+
BlockSelection: fl,
|
|
10579
10583
|
Caret: Ye,
|
|
10580
|
-
CrossBlockSelection:
|
|
10581
|
-
DragNDrop:
|
|
10582
|
-
ModificationsObserver:
|
|
10583
|
-
Paste:
|
|
10584
|
-
ReadOnly:
|
|
10584
|
+
CrossBlockSelection: gl,
|
|
10585
|
+
DragNDrop: ml,
|
|
10586
|
+
ModificationsObserver: kl,
|
|
10587
|
+
Paste: yl,
|
|
10588
|
+
ReadOnly: wl,
|
|
10585
10589
|
RectangleSelection: xe,
|
|
10586
|
-
Renderer:
|
|
10587
|
-
Saver:
|
|
10590
|
+
Renderer: El,
|
|
10591
|
+
Saver: xl,
|
|
10588
10592
|
Tools: Dn,
|
|
10589
|
-
UI:
|
|
10593
|
+
UI: Al
|
|
10590
10594
|
};
|
|
10591
|
-
class
|
|
10595
|
+
class Pl {
|
|
10592
10596
|
/**
|
|
10593
10597
|
* @param {EditorConfig} config - user configuration
|
|
10594
10598
|
*/
|
|
@@ -10599,8 +10603,8 @@ class Pa {
|
|
|
10599
10603
|
t = i, o = s;
|
|
10600
10604
|
}), Promise.resolve().then(async () => {
|
|
10601
10605
|
this.configuration = e, this.validate(), this.init(), await this.start(), await this.render();
|
|
10602
|
-
const { BlockManager: i, Caret: s, UI: r, ModificationsObserver:
|
|
10603
|
-
r.checkEmptiness(),
|
|
10606
|
+
const { BlockManager: i, Caret: s, UI: r, ModificationsObserver: l } = this.moduleInstances;
|
|
10607
|
+
r.checkEmptiness(), l.enable(), this.configuration.autofocus === !0 && this.configuration.readOnly !== !0 && s.setToBlock(i.blocks[0], s.positions.START), t();
|
|
10604
10608
|
}).catch((i) => {
|
|
10605
10609
|
I(`Editor.js is not ready because of ${i}`, "error"), o(i);
|
|
10606
10610
|
});
|
|
@@ -10697,7 +10701,7 @@ class Pa {
|
|
|
10697
10701
|
* Make modules instances and save it to the @property this.moduleInstances
|
|
10698
10702
|
*/
|
|
10699
10703
|
constructModules() {
|
|
10700
|
-
Object.entries(
|
|
10704
|
+
Object.entries(Nl).forEach(([e, t]) => {
|
|
10701
10705
|
try {
|
|
10702
10706
|
this.moduleInstances[e] = new t({
|
|
10703
10707
|
config: this.configuration,
|
|
@@ -10736,10 +10740,10 @@ class Pa {
|
|
|
10736
10740
|
* @see Editor.js <https://editorjs.io>
|
|
10737
10741
|
* @author CodeX Team <https://codex.so>
|
|
10738
10742
|
*/
|
|
10739
|
-
class
|
|
10743
|
+
class Dl {
|
|
10740
10744
|
/** Editor version */
|
|
10741
10745
|
static get version() {
|
|
10742
|
-
return "2.31.
|
|
10746
|
+
return "2.31.57";
|
|
10743
10747
|
}
|
|
10744
10748
|
/**
|
|
10745
10749
|
* @param {EditorConfig|string|undefined} [configuration] - user configuration
|
|
@@ -10748,7 +10752,7 @@ class Da {
|
|
|
10748
10752
|
let t = () => {
|
|
10749
10753
|
};
|
|
10750
10754
|
F(e) && L(e.onReady) && (t = e.onReady);
|
|
10751
|
-
const o = new
|
|
10755
|
+
const o = new Pl(e);
|
|
10752
10756
|
this.isReady = o.isReady.then(() => {
|
|
10753
10757
|
this.exportAPI(o), t();
|
|
10754
10758
|
});
|
|
@@ -10786,13 +10790,13 @@ class Da {
|
|
|
10786
10790
|
save: "save"
|
|
10787
10791
|
}
|
|
10788
10792
|
}).forEach(([s, r]) => {
|
|
10789
|
-
Object.entries(r).forEach(([
|
|
10790
|
-
this[
|
|
10793
|
+
Object.entries(r).forEach(([l, a]) => {
|
|
10794
|
+
this[a] = e.moduleInstances.API.methods[s][l];
|
|
10791
10795
|
});
|
|
10792
10796
|
});
|
|
10793
10797
|
}
|
|
10794
10798
|
}
|
|
10795
10799
|
export {
|
|
10796
10800
|
v as SelectionUtils,
|
|
10797
|
-
|
|
10801
|
+
Dl as default
|
|
10798
10802
|
};
|