@myissue/vue-website-page-builder 3.3.49 → 3.3.51
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/README.md +23 -0
- package/dist/home/page_builder_architecture.png +0 -0
- package/dist/vue-website-page-builder.js +667 -664
- package/dist/vue-website-page-builder.umd.cjs +23 -23
- package/package.json +1 -1
- package/src/Components/Loaders/GlobalLoader.vue +10 -3
- package/src/Components/Modals/DynamicModalBuilder.vue +1 -1
- package/src/Components/PageBuilder/EditorMenu/Editables/ImageEditor.vue +1 -1
- package/src/DemoComponents/DemoUnsplash.vue +2 -2
- package/src/DemoComponents/HomeSection.vue +1 -1
- package/src/PageBuilder/PageBuilder.vue +1 -1
- package/src/composables/PageBuilderService.ts +8 -11
|
@@ -3,18 +3,18 @@ var Pp = (r) => {
|
|
|
3
3
|
throw TypeError(r);
|
|
4
4
|
};
|
|
5
5
|
var Wu = (r, t, e) => t in r ? Vu(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
6
|
-
var
|
|
6
|
+
var kt = (r, t, e) => Wu(r, typeof t != "symbol" ? t + "" : t, e), Ap = (r, t, e) => t.has(r) || Pp("Cannot " + e);
|
|
7
7
|
var qt = (r, t, e) => (Ap(r, t, "read from private field"), e ? e.call(r) : t.get(r)), Lo = (r, t, e) => t.has(r) ? Pp("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(r) : t.set(r, e);
|
|
8
8
|
var V = (r, t, e) => (Ap(r, t, "access private method"), e);
|
|
9
9
|
import * as Dp from "vue";
|
|
10
|
-
import { defineComponent as ce, computed as $, createBlock as xt, openBlock as v, Teleport as qu, createElementVNode as b, createElementBlock as C, createCommentVNode as L, normalizeClass as tt, toDisplayString as W, renderSlot as co, ref as S, Fragment as dt, withCtx as U, nextTick as lt, effectScope as Lc, markRaw as
|
|
10
|
+
import { defineComponent as ce, computed as $, createBlock as xt, openBlock as v, Teleport as qu, createElementVNode as b, createElementBlock as C, createCommentVNode as L, normalizeClass as tt, toDisplayString as W, renderSlot as co, ref as S, Fragment as dt, withCtx as U, nextTick as lt, effectScope as Lc, markRaw as Dr, toRaw as Kt, hasInjectionContext as Uu, inject as Wr, getCurrentInstance as Rc, watch as ot, unref as T, reactive as Ku, isRef as Fi, isReactive as Nl, toRef as ps, getCurrentScope as Gu, onScopeDispose as Ju, toRefs as Np, createVNode as G, shallowRef as Yu, onMounted as xr, onBeforeUnmount as ja, h as qr, watchEffect as an, customRef as Xu, onBeforeMount as Qu, withDirectives as Ct, vModelText as Il, createTextVNode as Ft, provide as Br, resolveDynamicComponent as $c, cloneVNode as Zu, onUnmounted as tx, Transition as sn, renderList as ht, withKeys as ex, vShow as qs, vModelSelect as te, withModifiers as Ne, createStaticVNode as Ip } from "vue";
|
|
11
11
|
const rx = { class: "pbx-font-sans" }, ox = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "pbx-fixed pbx-inset-0 pbx-z-40 pbx-flex pbx-items-center pbx-justify-center pbx-mx-4",
|
|
14
14
|
role: "dialog",
|
|
15
15
|
"aria-modal": "true",
|
|
16
16
|
"aria-labelledby": "dialog-title"
|
|
17
|
-
}, ix = { class: "pbx-px-4 pbx-min-h-32" },
|
|
17
|
+
}, ix = { class: "pbx-px-4 pbx-min-h-32" }, zr = /* @__PURE__ */ ce({
|
|
18
18
|
__name: "ModalBuilder",
|
|
19
19
|
props: {
|
|
20
20
|
title: {
|
|
@@ -227,7 +227,7 @@ const rx = { class: "pbx-font-sans" }, ox = {
|
|
|
227
227
|
}, n = function() {
|
|
228
228
|
e("thirdModalButtonFunctionDynamicModalBuilder");
|
|
229
229
|
};
|
|
230
|
-
return (a, s) => (v(), xt(
|
|
230
|
+
return (a, s) => (v(), xt(zr, {
|
|
231
231
|
title: r.title,
|
|
232
232
|
showModalBuilder: r.showDynamicModalBuilder,
|
|
233
233
|
type: r.type,
|
|
@@ -283,7 +283,7 @@ const rx = { class: "pbx-font-sans" }, ox = {
|
|
|
283
283
|
], 2)
|
|
284
284
|
])) : L("", !0),
|
|
285
285
|
r.isLoading ? (v(), C("div", fx, s[0] || (s[0] = [
|
|
286
|
-
b("div", { class: "pbx-inline-block pbx-h-8 pbx-w-8 pbx-animate-spin pbx-rounded-full pbx-border-4 pbx-border-solid pbx-border
|
|
286
|
+
b("div", { class: "pbx-inline-block pbx-h-8 pbx-w-8 pbx-animate-spin pbx-rounded-full pbx-border-4 pbx-border-solid pbx-border-current pbx-border-r-transparent pbx-align-[-0.125em] motion-reduce:pbx-animate-[spin_1.5s_linear_infinite]" }, [
|
|
287
287
|
b("span", { class: "!pbx-absolute !pbx-m-px !pbx-h-px !pbx-w-px !pbx-overflow-hidden !pbx-whitespace-nowrap !pbx-border-0 !pbx-p-0 !pbx-[clip:rect(0,0,0,0)]" }, "Loading...")
|
|
288
288
|
], -1)
|
|
289
289
|
]))) : L("", !0)
|
|
@@ -893,7 +893,7 @@ const rx = { class: "pbx-font-sans" }, ox = {
|
|
|
893
893
|
"pbx-font-baskerville"
|
|
894
894
|
],
|
|
895
895
|
fontStyle: ["none", "pbx-italic", "pbx-non-italic"]
|
|
896
|
-
},
|
|
896
|
+
}, Nr = {
|
|
897
897
|
verticalPadding: [
|
|
898
898
|
"none",
|
|
899
899
|
"pbx-py-0",
|
|
@@ -1042,7 +1042,7 @@ const rx = { class: "pbx-font-sans" }, ox = {
|
|
|
1042
1042
|
"pbx-mx-80",
|
|
1043
1043
|
"pbx-mx-96"
|
|
1044
1044
|
]
|
|
1045
|
-
},
|
|
1045
|
+
}, qe = {
|
|
1046
1046
|
roundedGlobal: [
|
|
1047
1047
|
"none",
|
|
1048
1048
|
"pbx-rounded-sm",
|
|
@@ -1367,7 +1367,7 @@ function ds(r, t, e) {
|
|
|
1367
1367
|
const o = r.random || (r.rng || yx)();
|
|
1368
1368
|
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, wx(o);
|
|
1369
1369
|
}
|
|
1370
|
-
const
|
|
1370
|
+
const be = function(t = 200) {
|
|
1371
1371
|
return new Promise((e) => {
|
|
1372
1372
|
setTimeout(e, t);
|
|
1373
1373
|
});
|
|
@@ -1379,25 +1379,24 @@ class kx {
|
|
|
1379
1379
|
constructor(t) {
|
|
1380
1380
|
Lo(this, _);
|
|
1381
1381
|
// Class properties with types
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
wt(this, "hasStartedEditing", !1);
|
|
1382
|
+
kt(this, "fontSizeRegex", /^(sm:|md:|lg:|xl:|2xl:)?pbx-text-(xs|sm|base|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl|8xl|9xl)$/);
|
|
1383
|
+
kt(this, "pageBuilderStateStore");
|
|
1384
|
+
kt(this, "getLocalStorageItemName");
|
|
1385
|
+
kt(this, "getApplyImageToSelection");
|
|
1386
|
+
kt(this, "getHyberlinkEnable");
|
|
1387
|
+
kt(this, "getComponents");
|
|
1388
|
+
kt(this, "getComponent");
|
|
1389
|
+
kt(this, "getElement");
|
|
1390
|
+
kt(this, "getNextSibling");
|
|
1391
|
+
kt(this, "getParentElement");
|
|
1392
|
+
kt(this, "getRestoredElement");
|
|
1393
|
+
kt(this, "getComponentArrayAddMethod");
|
|
1394
|
+
kt(this, "NoneListernesTags");
|
|
1395
|
+
kt(this, "hasStartedEditing", !1);
|
|
1397
1396
|
// Hold data from Database or Backend for updated post
|
|
1398
|
-
|
|
1397
|
+
kt(this, "originalComponents");
|
|
1399
1398
|
// Holds data to be mounted when #pagebuilder is not yet present in the DOM
|
|
1400
|
-
|
|
1399
|
+
kt(this, "pendingMountData", null);
|
|
1401
1400
|
Lo(this, za, async (t, e) => {
|
|
1402
1401
|
t.preventDefault(), t.stopPropagation(), await this.handleAutoSave();
|
|
1403
1402
|
const o = document.querySelector("#pagebuilder");
|
|
@@ -1434,13 +1433,13 @@ class kx {
|
|
|
1434
1433
|
}
|
|
1435
1434
|
}));
|
|
1436
1435
|
});
|
|
1437
|
-
|
|
1436
|
+
kt(this, "handleAutoSave", async () => {
|
|
1438
1437
|
this.startEditing();
|
|
1439
1438
|
const t = this.pageBuilderStateStore.getPageBuilderConfig;
|
|
1440
1439
|
if (t && t.userSettings && typeof t.userSettings.autoSave == "boolean" && t.userSettings.autoSave !== !1) {
|
|
1441
1440
|
if (this.pageBuilderStateStore.getIsSaving) return;
|
|
1442
1441
|
try {
|
|
1443
|
-
this.pageBuilderStateStore.setIsSaving(!0), V(this, _, yi).call(this), await
|
|
1442
|
+
this.pageBuilderStateStore.setIsSaving(!0), V(this, _, yi).call(this), await be(400);
|
|
1444
1443
|
} catch (e) {
|
|
1445
1444
|
console.error("Error trying auto save.", e);
|
|
1446
1445
|
} finally {
|
|
@@ -1449,25 +1448,25 @@ class kx {
|
|
|
1449
1448
|
}
|
|
1450
1449
|
if (t && !t.userSettings)
|
|
1451
1450
|
try {
|
|
1452
|
-
this.pageBuilderStateStore.setIsSaving(!0), V(this, _, yi).call(this), await
|
|
1451
|
+
this.pageBuilderStateStore.setIsSaving(!0), V(this, _, yi).call(this), await be(400);
|
|
1453
1452
|
} catch (e) {
|
|
1454
1453
|
console.error("Error trying saving.", e);
|
|
1455
1454
|
} finally {
|
|
1456
1455
|
this.pageBuilderStateStore.setIsSaving(!1);
|
|
1457
1456
|
}
|
|
1458
1457
|
});
|
|
1459
|
-
|
|
1458
|
+
kt(this, "handleManualSave", async () => {
|
|
1460
1459
|
this.startEditing();
|
|
1461
1460
|
const t = this.pageBuilderStateStore.getPageBuilderConfig;
|
|
1462
|
-
t && t.userSettings && (typeof t.userSettings.autoSave == "boolean" && !t.userSettings.autoSave || typeof t.userSettings.autoSave == "boolean" && t.userSettings.autoSave) && (this.pageBuilderStateStore.setIsSaving(!0), V(this, _, yi).call(this), await
|
|
1461
|
+
t && t.userSettings && (typeof t.userSettings.autoSave == "boolean" && !t.userSettings.autoSave || typeof t.userSettings.autoSave == "boolean" && t.userSettings.autoSave) && (this.pageBuilderStateStore.setIsSaving(!0), V(this, _, yi).call(this), await be(400), this.pageBuilderStateStore.setIsSaving(!1)), t && !t.userSettings && (this.pageBuilderStateStore.setIsSaving(!0), V(this, _, yi).call(this), await be(400), this.pageBuilderStateStore.setIsSaving(!1));
|
|
1463
1462
|
});
|
|
1464
|
-
|
|
1463
|
+
kt(this, "ensureTextAreaHasContent", () => {
|
|
1465
1464
|
if (!this.getElement.value || typeof this.getElement.value.innerHTML != "string")
|
|
1466
1465
|
return;
|
|
1467
1466
|
const t = this.getElement.value, e = t.tagName;
|
|
1468
1467
|
["DIV"].includes(e) && t.tagName.toLowerCase() !== "img" && t.textContent && Number(t.textContent.length) === 0 ? (t.classList.add("h-6"), t.classList.add("bg-red-50")) : (t.classList.remove("h-6"), t.classList.remove("bg-red-50"));
|
|
1469
1468
|
});
|
|
1470
|
-
|
|
1469
|
+
kt(this, "handleTextInput", async (t) => {
|
|
1471
1470
|
var e;
|
|
1472
1471
|
typeof ((e = this.getElement.value) == null ? void 0 : e.innerHTML) == "string" && (typeof this.getElement.value.innerHTML == "string" && (await lt(), this.getElement.value.textContent = t, this.pageBuilderStateStore.setTextAreaVueModel(this.getElement.value.innerHTML), this.getElement.value.innerHTML = t), this.ensureTextAreaHasContent());
|
|
1473
1472
|
});
|
|
@@ -1496,7 +1495,7 @@ class kx {
|
|
|
1496
1495
|
"SPAN",
|
|
1497
1496
|
"BLOCKQUOTE",
|
|
1498
1497
|
"BR"
|
|
1499
|
-
]
|
|
1498
|
+
];
|
|
1500
1499
|
}
|
|
1501
1500
|
// Deselect any selected or hovered elements in the builder UI
|
|
1502
1501
|
async clearHtmlSelection() {
|
|
@@ -1505,7 +1504,7 @@ class kx {
|
|
|
1505
1504
|
async tryMountPendingComponents() {
|
|
1506
1505
|
this.deleteAllComponentsFromDOM();
|
|
1507
1506
|
const t = this.loadStoredComponentsFromStorage();
|
|
1508
|
-
this.pageBuilderStateStore.setIsLoadingGlobal(!0), await
|
|
1507
|
+
this.pageBuilderStateStore.setIsLoadingGlobal(!0), await be(300);
|
|
1509
1508
|
const e = this.pageBuilderStateStore.getPageBuilderConfig, o = e && e.updateOrCreate && e.updateOrCreate.formType;
|
|
1510
1509
|
if (e) {
|
|
1511
1510
|
if (e && o === "update" && t && typeof t == "string" && this.pendingMountData && this.pageBuilderStateStore.setHasLocalDraftForUpdate(!0), e && o === "update") {
|
|
@@ -1628,16 +1627,16 @@ class kx {
|
|
|
1628
1627
|
V(this, _, yt).call(this, t, Jo.fontStyle, "setFontStyle");
|
|
1629
1628
|
}
|
|
1630
1629
|
handleVerticalPadding(t) {
|
|
1631
|
-
V(this, _, yt).call(this, t,
|
|
1630
|
+
V(this, _, yt).call(this, t, Nr.verticalPadding, "setFontVerticalPadding");
|
|
1632
1631
|
}
|
|
1633
1632
|
handleHorizontalPadding(t) {
|
|
1634
|
-
V(this, _, yt).call(this, t,
|
|
1633
|
+
V(this, _, yt).call(this, t, Nr.horizontalPadding, "setFontHorizontalPadding");
|
|
1635
1634
|
}
|
|
1636
1635
|
handleVerticalMargin(t) {
|
|
1637
|
-
V(this, _, yt).call(this, t,
|
|
1636
|
+
V(this, _, yt).call(this, t, Nr.verticalMargin, "setFontVerticalMargin");
|
|
1638
1637
|
}
|
|
1639
1638
|
handleHorizontalMargin(t) {
|
|
1640
|
-
V(this, _, yt).call(this, t,
|
|
1639
|
+
V(this, _, yt).call(this, t, Nr.horizontalMargin, "setFontHorizontalMargin");
|
|
1641
1640
|
}
|
|
1642
1641
|
handleBorderStyle(t) {
|
|
1643
1642
|
V(this, _, yt).call(this, t, Yo.borderStyle, "setBorderStyle");
|
|
@@ -1656,19 +1655,19 @@ class kx {
|
|
|
1656
1655
|
V(this, _, yt).call(this, t, Gn.textColorVariables, "setTextColor");
|
|
1657
1656
|
}
|
|
1658
1657
|
handleBorderRadiusGlobal(t) {
|
|
1659
|
-
V(this, _, yt).call(this, t,
|
|
1658
|
+
V(this, _, yt).call(this, t, qe.roundedGlobal, "setBorderRadiusGlobal");
|
|
1660
1659
|
}
|
|
1661
1660
|
handleBorderRadiusTopLeft(t) {
|
|
1662
|
-
V(this, _, yt).call(this, t,
|
|
1661
|
+
V(this, _, yt).call(this, t, qe.roundedTopLeft, "setBorderRadiusTopLeft");
|
|
1663
1662
|
}
|
|
1664
1663
|
handleBorderRadiusTopRight(t) {
|
|
1665
|
-
V(this, _, yt).call(this, t,
|
|
1664
|
+
V(this, _, yt).call(this, t, qe.roundedTopRight, "setBorderRadiusTopRight");
|
|
1666
1665
|
}
|
|
1667
1666
|
handleBorderRadiusBottomleft(t) {
|
|
1668
|
-
V(this, _, yt).call(this, t,
|
|
1667
|
+
V(this, _, yt).call(this, t, qe.roundedBottomLeft, "setBorderRadiusBottomleft");
|
|
1669
1668
|
}
|
|
1670
1669
|
handleBorderRadiusBottomRight(t) {
|
|
1671
|
-
V(this, _, yt).call(this, t,
|
|
1670
|
+
V(this, _, yt).call(this, t, qe.roundedBottomRight, "setBorderRadiusBottomRight");
|
|
1672
1671
|
}
|
|
1673
1672
|
// border radius / end
|
|
1674
1673
|
handleFontSizeTablet(t) {
|
|
@@ -1838,14 +1837,14 @@ class kx {
|
|
|
1838
1837
|
const o = this.getLocalStorageItemName.value;
|
|
1839
1838
|
if (typeof o == "string") {
|
|
1840
1839
|
const i = localStorage.getItem(o);
|
|
1841
|
-
typeof i == "string" && (this.pageBuilderStateStore.setIsLoadingResumeEditing(!0), await
|
|
1840
|
+
typeof i == "string" && (this.pageBuilderStateStore.setIsLoadingResumeEditing(!0), await be(400), await V(this, _, no).call(this, i), this.pageBuilderStateStore.setIsLoadingResumeEditing(!1));
|
|
1842
1841
|
}
|
|
1843
1842
|
await lt(), await qt(this, Qt).call(this), this.pageBuilderStateStore.setIsLoadingResumeEditing(!1);
|
|
1844
1843
|
}
|
|
1845
1844
|
async restoreOriginalContent() {
|
|
1846
1845
|
V(this, _, io).call(this);
|
|
1847
1846
|
const t = this.pageBuilderStateStore.getPageBuilderConfig;
|
|
1848
|
-
(t && t.updateOrCreate && t.updateOrCreate.formType) === "update" && (this.pageBuilderStateStore.setIsRestoring(!0), await
|
|
1847
|
+
(t && t.updateOrCreate && t.updateOrCreate.formType) === "update" && (this.pageBuilderStateStore.setIsRestoring(!0), await be(400), Array.isArray(this.originalComponents) && (await V(this, _, Rn).call(this, this.originalComponents), this.removeCurrentComponentsFromLocalStorage()), await lt(), await qt(this, Qt).call(this), this.pageBuilderStateStore.setIsRestoring(!1));
|
|
1849
1848
|
}
|
|
1850
1849
|
getStorageItemNameForResource() {
|
|
1851
1850
|
return this.getLocalStorageItemName.value;
|
|
@@ -2014,7 +2013,7 @@ _ = new WeakSet(), _c = function(t) {
|
|
|
2014
2013
|
}, hi = async function(t) {
|
|
2015
2014
|
this.pageBuilderStateStore.setIsLoadingGlobal(!0);
|
|
2016
2015
|
const e = this.loadStoredComponentsFromStorage();
|
|
2017
|
-
await
|
|
2016
|
+
await be(300), await this.clearHtmlSelection(), t && (!this.pendingMountData && e && typeof e == "string" ? await V(this, _, no).call(this, e) : (await V(this, _, Rn).call(this, t), this.pendingMountData = null)), t || (e && typeof e == "string" ? await V(this, _, no).call(this, e) : await V(this, _, Rn).call(this, [])), await lt(), await qt(this, Qt).call(this), this.pageBuilderStateStore.setIsLoadingGlobal(!1), this.deleteOldPageBuilderLocalStorage();
|
|
2018
2017
|
}, yt = function(t, e, o) {
|
|
2019
2018
|
const i = this.getElement.value;
|
|
2020
2019
|
if (!i) return;
|
|
@@ -2374,11 +2373,11 @@ const Hi = (r) => wi = r, Qc = process.env.NODE_ENV !== "production" ? Symbol("p
|
|
|
2374
2373
|
function ko(r) {
|
|
2375
2374
|
return r && typeof r == "object" && Object.prototype.toString.call(r) === "[object Object]" && typeof r.toJSON != "function";
|
|
2376
2375
|
}
|
|
2377
|
-
var
|
|
2376
|
+
var Ke;
|
|
2378
2377
|
(function(r) {
|
|
2379
2378
|
r.direct = "direct", r.patchObject = "patch object", r.patchFunction = "patch function";
|
|
2380
|
-
})(
|
|
2381
|
-
const
|
|
2379
|
+
})(Ke || (Ke = {}));
|
|
2380
|
+
const Ir = typeof window < "u", $p = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
|
|
2382
2381
|
function Px(r, { autoBom: t = !1 } = {}) {
|
|
2383
2382
|
return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(r.type) ? new Blob(["\uFEFF", r], { type: r.type }) : r;
|
|
2384
2383
|
}
|
|
@@ -2407,7 +2406,7 @@ function _n(r) {
|
|
|
2407
2406
|
e.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), r.dispatchEvent(e);
|
|
2408
2407
|
}
|
|
2409
2408
|
}
|
|
2410
|
-
const zn = typeof navigator == "object" ? navigator : { userAgent: "" }, tb = /Macintosh/.test(zn.userAgent) && /AppleWebKit/.test(zn.userAgent) && !/Safari/.test(zn.userAgent), eb =
|
|
2409
|
+
const zn = typeof navigator == "object" ? navigator : { userAgent: "" }, tb = /Macintosh/.test(zn.userAgent) && /AppleWebKit/.test(zn.userAgent) && !/Safari/.test(zn.userAgent), eb = Ir ? (
|
|
2411
2410
|
// Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
|
|
2412
2411
|
typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !tb ? Ax : (
|
|
2413
2412
|
// Use msSaveOrOpenBlob as a second approach
|
|
@@ -2501,18 +2500,18 @@ async function Rx(r) {
|
|
|
2501
2500
|
At("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(t);
|
|
2502
2501
|
}
|
|
2503
2502
|
}
|
|
2504
|
-
let
|
|
2503
|
+
let ir;
|
|
2505
2504
|
function $x() {
|
|
2506
|
-
|
|
2505
|
+
ir || (ir = document.createElement("input"), ir.type = "file", ir.accept = ".json");
|
|
2507
2506
|
function r() {
|
|
2508
2507
|
return new Promise((t, e) => {
|
|
2509
|
-
|
|
2510
|
-
const o =
|
|
2508
|
+
ir.onchange = async () => {
|
|
2509
|
+
const o = ir.files;
|
|
2511
2510
|
if (!o)
|
|
2512
2511
|
return t(null);
|
|
2513
2512
|
const i = o.item(0);
|
|
2514
2513
|
return t(i ? { text: await i.text(), file: i } : null);
|
|
2515
|
-
},
|
|
2514
|
+
}, ir.oncancel = () => t(null), ir.onerror = e, ir.click();
|
|
2516
2515
|
});
|
|
2517
2516
|
}
|
|
2518
2517
|
return r;
|
|
@@ -2534,7 +2533,7 @@ function ib(r, t) {
|
|
|
2534
2533
|
o ? Object.assign(o, t[e]) : r.state.value[e] = t[e];
|
|
2535
2534
|
}
|
|
2536
2535
|
}
|
|
2537
|
-
function
|
|
2536
|
+
function Ie(r) {
|
|
2538
2537
|
return {
|
|
2539
2538
|
_custom: {
|
|
2540
2539
|
display: r
|
|
@@ -2594,19 +2593,19 @@ function Hx(r) {
|
|
|
2594
2593
|
operations: [],
|
|
2595
2594
|
newValue: {}
|
|
2596
2595
|
}) : {
|
|
2597
|
-
operation:
|
|
2598
|
-
key:
|
|
2596
|
+
operation: Ie(r.type),
|
|
2597
|
+
key: Ie(r.key),
|
|
2599
2598
|
oldValue: r.oldValue,
|
|
2600
2599
|
newValue: r.newValue
|
|
2601
2600
|
} : {};
|
|
2602
2601
|
}
|
|
2603
2602
|
function jx(r) {
|
|
2604
2603
|
switch (r) {
|
|
2605
|
-
case
|
|
2604
|
+
case Ke.direct:
|
|
2606
2605
|
return "mutation";
|
|
2607
|
-
case
|
|
2606
|
+
case Ke.patchFunction:
|
|
2608
2607
|
return "$patch";
|
|
2609
|
-
case
|
|
2608
|
+
case Ke.patchObject:
|
|
2610
2609
|
return "$patch";
|
|
2611
2610
|
default:
|
|
2612
2611
|
return "unknown";
|
|
@@ -2779,22 +2778,22 @@ function qx(r, t) {
|
|
|
2779
2778
|
title: "🛫 " + l,
|
|
2780
2779
|
subtitle: "start",
|
|
2781
2780
|
data: {
|
|
2782
|
-
store:
|
|
2783
|
-
action:
|
|
2781
|
+
store: Ie(t.$id),
|
|
2782
|
+
action: Ie(l),
|
|
2784
2783
|
args: p
|
|
2785
2784
|
},
|
|
2786
2785
|
groupId: d
|
|
2787
2786
|
}
|
|
2788
2787
|
}), a((c) => {
|
|
2789
|
-
|
|
2788
|
+
Lr = void 0, e.addTimelineEvent({
|
|
2790
2789
|
layerId: ao,
|
|
2791
2790
|
event: {
|
|
2792
2791
|
time: o(),
|
|
2793
2792
|
title: "🛬 " + l,
|
|
2794
2793
|
subtitle: "end",
|
|
2795
2794
|
data: {
|
|
2796
|
-
store:
|
|
2797
|
-
action:
|
|
2795
|
+
store: Ie(t.$id),
|
|
2796
|
+
action: Ie(l),
|
|
2798
2797
|
args: p,
|
|
2799
2798
|
result: c
|
|
2800
2799
|
},
|
|
@@ -2802,7 +2801,7 @@ function qx(r, t) {
|
|
|
2802
2801
|
}
|
|
2803
2802
|
});
|
|
2804
2803
|
}), s((c) => {
|
|
2805
|
-
|
|
2804
|
+
Lr = void 0, e.addTimelineEvent({
|
|
2806
2805
|
layerId: ao,
|
|
2807
2806
|
event: {
|
|
2808
2807
|
time: o(),
|
|
@@ -2810,8 +2809,8 @@ function qx(r, t) {
|
|
|
2810
2809
|
title: "💥 " + l,
|
|
2811
2810
|
subtitle: "end",
|
|
2812
2811
|
data: {
|
|
2813
|
-
store:
|
|
2814
|
-
action:
|
|
2812
|
+
store: Ie(t.$id),
|
|
2813
|
+
action: Ie(l),
|
|
2815
2814
|
args: p,
|
|
2816
2815
|
error: c
|
|
2817
2816
|
},
|
|
@@ -2831,7 +2830,7 @@ function qx(r, t) {
|
|
|
2831
2830
|
newValue: s,
|
|
2832
2831
|
oldValue: l
|
|
2833
2832
|
},
|
|
2834
|
-
groupId:
|
|
2833
|
+
groupId: Lr
|
|
2835
2834
|
}
|
|
2836
2835
|
});
|
|
2837
2836
|
}, { deep: !0 });
|
|
@@ -2841,10 +2840,10 @@ function qx(r, t) {
|
|
|
2841
2840
|
const p = {
|
|
2842
2841
|
time: o(),
|
|
2843
2842
|
title: jx(s),
|
|
2844
|
-
data: Vx({ store:
|
|
2845
|
-
groupId:
|
|
2843
|
+
data: Vx({ store: Ie(t.$id) }, Hx(a)),
|
|
2844
|
+
groupId: Lr
|
|
2846
2845
|
};
|
|
2847
|
-
s ===
|
|
2846
|
+
s === Ke.patchFunction ? p.subtitle = "⤵️" : s === Ke.patchObject ? p.subtitle = "🧩" : a && !Array.isArray(a) && (p.subtitle = a.type), a && (p.data["rawEvent(s)"] = {
|
|
2848
2847
|
_custom: {
|
|
2849
2848
|
display: "DebuggerEvent",
|
|
2850
2849
|
type: "object",
|
|
@@ -2857,7 +2856,7 @@ function qx(r, t) {
|
|
|
2857
2856
|
});
|
|
2858
2857
|
}, { detached: !0, flush: "sync" });
|
|
2859
2858
|
const i = t._hotUpdate;
|
|
2860
|
-
t._hotUpdate =
|
|
2859
|
+
t._hotUpdate = Dr((a) => {
|
|
2861
2860
|
i(a), e.addTimelineEvent({
|
|
2862
2861
|
layerId: ao,
|
|
2863
2862
|
event: {
|
|
@@ -2865,8 +2864,8 @@ function qx(r, t) {
|
|
|
2865
2864
|
title: "🔥 " + t.$id,
|
|
2866
2865
|
subtitle: "HMR update",
|
|
2867
2866
|
data: {
|
|
2868
|
-
store:
|
|
2869
|
-
info:
|
|
2867
|
+
store: Ie(t.$id),
|
|
2868
|
+
info: Ie("HMR update")
|
|
2870
2869
|
}
|
|
2871
2870
|
}
|
|
2872
2871
|
}), e.notifyComponentUpdate(), e.sendInspectorTree(Gt), e.sendInspectorState(Gt);
|
|
@@ -2877,22 +2876,22 @@ function qx(r, t) {
|
|
|
2877
2876
|
}, e.notifyComponentUpdate(), e.sendInspectorTree(Gt), e.sendInspectorState(Gt), e.getSettings().logStoreChanges && At(`"${t.$id}" store installed 🆕`);
|
|
2878
2877
|
});
|
|
2879
2878
|
}
|
|
2880
|
-
let ab = 0,
|
|
2879
|
+
let ab = 0, Lr;
|
|
2881
2880
|
function _p(r, t, e) {
|
|
2882
2881
|
const o = t.reduce((i, n) => (i[n] = Kt(r)[n], i), {});
|
|
2883
2882
|
for (const i in o)
|
|
2884
2883
|
r[i] = function() {
|
|
2885
2884
|
const n = ab, a = e ? new Proxy(r, {
|
|
2886
2885
|
get(...l) {
|
|
2887
|
-
return
|
|
2886
|
+
return Lr = n, Reflect.get(...l);
|
|
2888
2887
|
},
|
|
2889
2888
|
set(...l) {
|
|
2890
|
-
return
|
|
2889
|
+
return Lr = n, Reflect.set(...l);
|
|
2891
2890
|
}
|
|
2892
2891
|
}) : r;
|
|
2893
|
-
|
|
2892
|
+
Lr = n;
|
|
2894
2893
|
const s = o[i].apply(a, arguments);
|
|
2895
|
-
return
|
|
2894
|
+
return Lr = void 0, s;
|
|
2896
2895
|
};
|
|
2897
2896
|
}
|
|
2898
2897
|
function Ux({ app: r, store: t, options: e }) {
|
|
@@ -2914,9 +2913,9 @@ function Ux({ app: r, store: t, options: e }) {
|
|
|
2914
2913
|
function Kx() {
|
|
2915
2914
|
const r = Lc(!0), t = r.run(() => S({}));
|
|
2916
2915
|
let e = [], o = [];
|
|
2917
|
-
const i =
|
|
2916
|
+
const i = Dr({
|
|
2918
2917
|
install(n) {
|
|
2919
|
-
Hi(i), i._a = n, n.provide(Qc, i), n.config.globalProperties.$pinia = i, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" &&
|
|
2918
|
+
Hi(i), i._a = n, n.provide(Qc, i), n.config.globalProperties.$pinia = i, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ir && Wx(n, i), o.forEach((a) => e.push(a)), o = [];
|
|
2920
2919
|
},
|
|
2921
2920
|
use(n) {
|
|
2922
2921
|
return this._a ? e.push(n) : o.push(n), this;
|
|
@@ -2929,7 +2928,7 @@ function Kx() {
|
|
|
2929
2928
|
_s: /* @__PURE__ */ new Map(),
|
|
2930
2929
|
state: t
|
|
2931
2930
|
});
|
|
2932
|
-
return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" &&
|
|
2931
|
+
return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ir && typeof Proxy < "u" && i.use(Ux), i;
|
|
2933
2932
|
}
|
|
2934
2933
|
function sb(r, t) {
|
|
2935
2934
|
for (const e in t) {
|
|
@@ -2974,7 +2973,7 @@ const Jx = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration")
|
|
|
2974
2973
|
function Yx(r) {
|
|
2975
2974
|
return !ko(r) || !r.hasOwnProperty(Jx);
|
|
2976
2975
|
}
|
|
2977
|
-
const { assign:
|
|
2976
|
+
const { assign: ke } = Object;
|
|
2978
2977
|
function Hp(r) {
|
|
2979
2978
|
return !!(Fi(r) && r.effect);
|
|
2980
2979
|
}
|
|
@@ -2987,7 +2986,7 @@ function jp(r, t, e, o) {
|
|
|
2987
2986
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
2988
2987
|
Np(S(i ? i() : {}).value)
|
|
2989
2988
|
) : Np(e.state.value[r]);
|
|
2990
|
-
return
|
|
2989
|
+
return ke(d, n, Object.keys(a || {}).reduce((c, m) => (process.env.NODE_ENV !== "production" && m in d && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${m}" in store "${r}".`), c[m] = Dr($(() => {
|
|
2991
2990
|
Hi(e);
|
|
2992
2991
|
const u = e._s.get(r);
|
|
2993
2992
|
return a[m].call(u, u);
|
|
@@ -2997,7 +2996,7 @@ function jp(r, t, e, o) {
|
|
|
2997
2996
|
}
|
|
2998
2997
|
function Ys(r, t, e = {}, o, i, n) {
|
|
2999
2998
|
let a;
|
|
3000
|
-
const s =
|
|
2999
|
+
const s = ke({ actions: {} }, e);
|
|
3001
3000
|
if (process.env.NODE_ENV !== "production" && !o._e.active)
|
|
3002
3001
|
throw new Error("Pinia destroyed");
|
|
3003
3002
|
const l = { deep: !0 };
|
|
@@ -3012,11 +3011,11 @@ function Ys(r, t, e = {}, o, i, n) {
|
|
|
3012
3011
|
function y(P) {
|
|
3013
3012
|
let E;
|
|
3014
3013
|
p = d = !1, process.env.NODE_ENV !== "production" && (u = []), typeof P == "function" ? (P(o.state.value[r]), E = {
|
|
3015
|
-
type:
|
|
3014
|
+
type: Ke.patchFunction,
|
|
3016
3015
|
storeId: r,
|
|
3017
3016
|
events: u
|
|
3018
3017
|
}) : (Js(o.state.value[r], P), E = {
|
|
3019
|
-
type:
|
|
3018
|
+
type: Ke.patchObject,
|
|
3020
3019
|
payload: P,
|
|
3021
3020
|
storeId: r,
|
|
3022
3021
|
events: u
|
|
@@ -3029,7 +3028,7 @@ function Ys(r, t, e = {}, o, i, n) {
|
|
|
3029
3028
|
const w = n ? function() {
|
|
3030
3029
|
const { state: E } = e, z = E ? E() : {};
|
|
3031
3030
|
this.$patch((X) => {
|
|
3032
|
-
|
|
3031
|
+
ke(X, z);
|
|
3033
3032
|
});
|
|
3034
3033
|
} : (
|
|
3035
3034
|
/* istanbul ignore next */
|
|
@@ -3068,7 +3067,7 @@ function Ys(r, t, e = {}, o, i, n) {
|
|
|
3068
3067
|
return pt instanceof Promise ? pt.then((gt) => ($o(bt, gt), gt)).catch((gt) => ($o(ut, gt), Promise.reject(gt))) : ($o(bt, pt), pt);
|
|
3069
3068
|
};
|
|
3070
3069
|
return z[Fp] = !0, z[bs] = E, z;
|
|
3071
|
-
}, B = /* @__PURE__ */
|
|
3070
|
+
}, B = /* @__PURE__ */ Dr({
|
|
3072
3071
|
actions: {},
|
|
3073
3072
|
getters: {},
|
|
3074
3073
|
state: [],
|
|
@@ -3084,17 +3083,17 @@ function Ys(r, t, e = {}, o, i, n) {
|
|
|
3084
3083
|
const z = zp(c, P, E.detached, () => X()), X = a.run(() => ot(() => o.state.value[r], (bt) => {
|
|
3085
3084
|
(E.flush === "sync" ? d : p) && P({
|
|
3086
3085
|
storeId: r,
|
|
3087
|
-
type:
|
|
3086
|
+
type: Ke.direct,
|
|
3088
3087
|
events: u
|
|
3089
3088
|
}, bt);
|
|
3090
|
-
},
|
|
3089
|
+
}, ke({}, l, E)));
|
|
3091
3090
|
return z;
|
|
3092
3091
|
},
|
|
3093
3092
|
$dispose: k
|
|
3094
|
-
}, A = Ku(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" &&
|
|
3093
|
+
}, A = Ku(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ir ? ke(
|
|
3095
3094
|
{
|
|
3096
3095
|
_hmrPayload: B,
|
|
3097
|
-
_customProperties:
|
|
3096
|
+
_customProperties: Dr(/* @__PURE__ */ new Set())
|
|
3098
3097
|
// devtools custom properties
|
|
3099
3098
|
},
|
|
3100
3099
|
M
|
|
@@ -3113,19 +3112,19 @@ function Ys(r, t, e = {}, o, i, n) {
|
|
|
3113
3112
|
} else process.env.NODE_ENV !== "production" && Hp(E) && (B.getters[P] = n ? (
|
|
3114
3113
|
// @ts-expect-error
|
|
3115
3114
|
e.getters[P]
|
|
3116
|
-
) : E,
|
|
3117
|
-
(H._getters =
|
|
3115
|
+
) : E, Ir && (H._getters || // @ts-expect-error: same
|
|
3116
|
+
(H._getters = Dr([]))).push(P));
|
|
3118
3117
|
}
|
|
3119
|
-
if (
|
|
3118
|
+
if (ke(A, H), ke(Kt(A), H), Object.defineProperty(A, "$state", {
|
|
3120
3119
|
get: () => process.env.NODE_ENV !== "production" && i ? g.value : o.state.value[r],
|
|
3121
3120
|
set: (P) => {
|
|
3122
3121
|
if (process.env.NODE_ENV !== "production" && i)
|
|
3123
3122
|
throw new Error("cannot set hotState");
|
|
3124
3123
|
y((E) => {
|
|
3125
|
-
|
|
3124
|
+
ke(E, P);
|
|
3126
3125
|
});
|
|
3127
3126
|
}
|
|
3128
|
-
}), process.env.NODE_ENV !== "production" && (A._hotUpdate =
|
|
3127
|
+
}), process.env.NODE_ENV !== "production" && (A._hotUpdate = Dr((P) => {
|
|
3129
3128
|
A._hotUpdating = !0, P._hmrPayload.state.forEach((E) => {
|
|
3130
3129
|
if (E in A.$state) {
|
|
3131
3130
|
const z = P.$state[E], X = A.$state[E];
|
|
@@ -3153,7 +3152,7 @@ function Ys(r, t, e = {}, o, i, n) {
|
|
|
3153
3152
|
}), Object.keys(A._hmrPayload.actions).forEach((E) => {
|
|
3154
3153
|
E in P._hmrPayload.actions || cs(A, E);
|
|
3155
3154
|
}), A._hmrPayload = P._hmrPayload, A._getters = P._getters, A._hotUpdating = !1;
|
|
3156
|
-
})), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" &&
|
|
3155
|
+
})), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ir) {
|
|
3157
3156
|
const P = {
|
|
3158
3157
|
writable: !0,
|
|
3159
3158
|
configurable: !0,
|
|
@@ -3161,20 +3160,20 @@ function Ys(r, t, e = {}, o, i, n) {
|
|
|
3161
3160
|
enumerable: !1
|
|
3162
3161
|
};
|
|
3163
3162
|
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((E) => {
|
|
3164
|
-
Object.defineProperty(A, E,
|
|
3163
|
+
Object.defineProperty(A, E, ke({ value: A[E] }, P));
|
|
3165
3164
|
});
|
|
3166
3165
|
}
|
|
3167
3166
|
return o._p.forEach((P) => {
|
|
3168
|
-
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" &&
|
|
3167
|
+
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ir) {
|
|
3169
3168
|
const E = a.run(() => P({
|
|
3170
3169
|
store: A,
|
|
3171
3170
|
app: o._a,
|
|
3172
3171
|
pinia: o,
|
|
3173
3172
|
options: s
|
|
3174
3173
|
}));
|
|
3175
|
-
Object.keys(E || {}).forEach((z) => A._customProperties.add(z)),
|
|
3174
|
+
Object.keys(E || {}).forEach((z) => A._customProperties.add(z)), ke(A, E);
|
|
3176
3175
|
} else
|
|
3177
|
-
|
|
3176
|
+
ke(A, a.run(() => P({
|
|
3178
3177
|
store: A,
|
|
3179
3178
|
app: o._a,
|
|
3180
3179
|
pinia: o,
|
|
@@ -3201,10 +3200,10 @@ This will fail in production.`);
|
|
|
3201
3200
|
s = wi, s._s.has(o) || (n ? Ys(o, t, i, s) : jp(o, i, s), process.env.NODE_ENV !== "production" && (a._pinia = s));
|
|
3202
3201
|
const d = s._s.get(o);
|
|
3203
3202
|
if (process.env.NODE_ENV !== "production" && l) {
|
|
3204
|
-
const c = "__hot:" + o, m = n ? Ys(c, t, i, s, !0) : jp(c,
|
|
3203
|
+
const c = "__hot:" + o, m = n ? Ys(c, t, i, s, !0) : jp(c, ke({}, i), s, !0);
|
|
3205
3204
|
l._hotUpdate(m), delete s.state.value[c], s._s.delete(c);
|
|
3206
3205
|
}
|
|
3207
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
3206
|
+
if (process.env.NODE_ENV !== "production" && Ir) {
|
|
3208
3207
|
const c = Rc();
|
|
3209
3208
|
if (c && c.proxy && // avoid adding stores that are just built for hot module replacement
|
|
3210
3209
|
!l) {
|
|
@@ -6548,15 +6547,15 @@ class rl {
|
|
|
6548
6547
|
return (this.delInfo & Vn) > 0;
|
|
6549
6548
|
}
|
|
6550
6549
|
}
|
|
6551
|
-
class
|
|
6550
|
+
class me {
|
|
6552
6551
|
/**
|
|
6553
6552
|
Create a position map. The modifications to the document are
|
|
6554
6553
|
represented as an array of numbers, in which each group of three
|
|
6555
6554
|
represents a modified chunk as `[start, oldSize, newSize]`.
|
|
6556
6555
|
*/
|
|
6557
6556
|
constructor(t, e = !1) {
|
|
6558
|
-
if (this.ranges = t, this.inverted = e, !t.length &&
|
|
6559
|
-
return
|
|
6557
|
+
if (this.ranges = t, this.inverted = e, !t.length && me.empty)
|
|
6558
|
+
return me.empty;
|
|
6560
6559
|
}
|
|
6561
6560
|
/**
|
|
6562
6561
|
@internal
|
|
@@ -6627,7 +6626,7 @@ class be {
|
|
|
6627
6626
|
map positions in the post-step document to the pre-step document.
|
|
6628
6627
|
*/
|
|
6629
6628
|
invert() {
|
|
6630
|
-
return new
|
|
6629
|
+
return new me(this.ranges, !this.inverted);
|
|
6631
6630
|
}
|
|
6632
6631
|
/**
|
|
6633
6632
|
@internal
|
|
@@ -6641,10 +6640,10 @@ class be {
|
|
|
6641
6640
|
sub-document to a larger document, or vice-versa.
|
|
6642
6641
|
*/
|
|
6643
6642
|
static offset(t) {
|
|
6644
|
-
return t == 0 ?
|
|
6643
|
+
return t == 0 ? me.empty : new me(t < 0 ? [0, -t, 0] : [0, 0, t]);
|
|
6645
6644
|
}
|
|
6646
6645
|
}
|
|
6647
|
-
|
|
6646
|
+
me.empty = new me([]);
|
|
6648
6647
|
class Wi {
|
|
6649
6648
|
/**
|
|
6650
6649
|
Create a new mapping with the given position maps.
|
|
@@ -6760,7 +6759,7 @@ class Yt {
|
|
|
6760
6759
|
and the new document.
|
|
6761
6760
|
*/
|
|
6762
6761
|
getMap() {
|
|
6763
|
-
return
|
|
6762
|
+
return me.empty;
|
|
6764
6763
|
}
|
|
6765
6764
|
/**
|
|
6766
6765
|
Try to merge this step with another one, to be applied directly
|
|
@@ -6836,7 +6835,7 @@ function $l(r, t, e) {
|
|
|
6836
6835
|
}
|
|
6837
6836
|
return N.fromArray(o);
|
|
6838
6837
|
}
|
|
6839
|
-
class
|
|
6838
|
+
class Rr extends Yt {
|
|
6840
6839
|
/**
|
|
6841
6840
|
Create a mark step.
|
|
6842
6841
|
*/
|
|
@@ -6848,14 +6847,14 @@ class Lr extends Yt {
|
|
|
6848
6847
|
return Mt.fromReplace(t, this.from, this.to, n);
|
|
6849
6848
|
}
|
|
6850
6849
|
invert() {
|
|
6851
|
-
return new
|
|
6850
|
+
return new Ue(this.from, this.to, this.mark);
|
|
6852
6851
|
}
|
|
6853
6852
|
map(t) {
|
|
6854
6853
|
let e = t.mapResult(this.from, 1), o = t.mapResult(this.to, -1);
|
|
6855
|
-
return e.deleted && o.deleted || e.pos >= o.pos ? null : new
|
|
6854
|
+
return e.deleted && o.deleted || e.pos >= o.pos ? null : new Rr(e.pos, o.pos, this.mark);
|
|
6856
6855
|
}
|
|
6857
6856
|
merge(t) {
|
|
6858
|
-
return t instanceof
|
|
6857
|
+
return t instanceof Rr && t.mark.eq(this.mark) && this.from <= t.to && this.to >= t.from ? new Rr(Math.min(this.from, t.from), Math.max(this.to, t.to), this.mark) : null;
|
|
6859
6858
|
}
|
|
6860
6859
|
toJSON() {
|
|
6861
6860
|
return {
|
|
@@ -6871,11 +6870,11 @@ class Lr extends Yt {
|
|
|
6871
6870
|
static fromJSON(t, e) {
|
|
6872
6871
|
if (typeof e.from != "number" || typeof e.to != "number")
|
|
6873
6872
|
throw new RangeError("Invalid input for AddMarkStep.fromJSON");
|
|
6874
|
-
return new
|
|
6873
|
+
return new Rr(e.from, e.to, t.markFromJSON(e.mark));
|
|
6875
6874
|
}
|
|
6876
6875
|
}
|
|
6877
|
-
Yt.jsonID("addMark",
|
|
6878
|
-
class
|
|
6876
|
+
Yt.jsonID("addMark", Rr);
|
|
6877
|
+
class Ue extends Yt {
|
|
6879
6878
|
/**
|
|
6880
6879
|
Create a mark-removing step.
|
|
6881
6880
|
*/
|
|
@@ -6887,14 +6886,14 @@ class qe extends Yt {
|
|
|
6887
6886
|
return Mt.fromReplace(t, this.from, this.to, o);
|
|
6888
6887
|
}
|
|
6889
6888
|
invert() {
|
|
6890
|
-
return new
|
|
6889
|
+
return new Rr(this.from, this.to, this.mark);
|
|
6891
6890
|
}
|
|
6892
6891
|
map(t) {
|
|
6893
6892
|
let e = t.mapResult(this.from, 1), o = t.mapResult(this.to, -1);
|
|
6894
|
-
return e.deleted && o.deleted || e.pos >= o.pos ? null : new
|
|
6893
|
+
return e.deleted && o.deleted || e.pos >= o.pos ? null : new Ue(e.pos, o.pos, this.mark);
|
|
6895
6894
|
}
|
|
6896
6895
|
merge(t) {
|
|
6897
|
-
return t instanceof
|
|
6896
|
+
return t instanceof Ue && t.mark.eq(this.mark) && this.from <= t.to && this.to >= t.from ? new Ue(Math.min(this.from, t.from), Math.max(this.to, t.to), this.mark) : null;
|
|
6898
6897
|
}
|
|
6899
6898
|
toJSON() {
|
|
6900
6899
|
return {
|
|
@@ -6910,11 +6909,11 @@ class qe extends Yt {
|
|
|
6910
6909
|
static fromJSON(t, e) {
|
|
6911
6910
|
if (typeof e.from != "number" || typeof e.to != "number")
|
|
6912
6911
|
throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");
|
|
6913
|
-
return new
|
|
6912
|
+
return new Ue(e.from, e.to, t.markFromJSON(e.mark));
|
|
6914
6913
|
}
|
|
6915
6914
|
}
|
|
6916
|
-
Yt.jsonID("removeMark",
|
|
6917
|
-
class
|
|
6915
|
+
Yt.jsonID("removeMark", Ue);
|
|
6916
|
+
class $r extends Yt {
|
|
6918
6917
|
/**
|
|
6919
6918
|
Create a node mark step.
|
|
6920
6919
|
*/
|
|
@@ -6935,15 +6934,15 @@ class Rr extends Yt {
|
|
|
6935
6934
|
if (o.length == e.marks.length) {
|
|
6936
6935
|
for (let i = 0; i < e.marks.length; i++)
|
|
6937
6936
|
if (!e.marks[i].isInSet(o))
|
|
6938
|
-
return new
|
|
6939
|
-
return new
|
|
6937
|
+
return new $r(this.pos, e.marks[i]);
|
|
6938
|
+
return new $r(this.pos, this.mark);
|
|
6940
6939
|
}
|
|
6941
6940
|
}
|
|
6942
6941
|
return new Co(this.pos, this.mark);
|
|
6943
6942
|
}
|
|
6944
6943
|
map(t) {
|
|
6945
6944
|
let e = t.mapResult(this.pos, 1);
|
|
6946
|
-
return e.deletedAfter ? null : new
|
|
6945
|
+
return e.deletedAfter ? null : new $r(e.pos, this.mark);
|
|
6947
6946
|
}
|
|
6948
6947
|
toJSON() {
|
|
6949
6948
|
return { stepType: "addNodeMark", pos: this.pos, mark: this.mark.toJSON() };
|
|
@@ -6954,10 +6953,10 @@ class Rr extends Yt {
|
|
|
6954
6953
|
static fromJSON(t, e) {
|
|
6955
6954
|
if (typeof e.pos != "number")
|
|
6956
6955
|
throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");
|
|
6957
|
-
return new
|
|
6956
|
+
return new $r(e.pos, t.markFromJSON(e.mark));
|
|
6958
6957
|
}
|
|
6959
6958
|
}
|
|
6960
|
-
Yt.jsonID("addNodeMark",
|
|
6959
|
+
Yt.jsonID("addNodeMark", $r);
|
|
6961
6960
|
class Co extends Yt {
|
|
6962
6961
|
/**
|
|
6963
6962
|
Create a mark-removing step.
|
|
@@ -6974,7 +6973,7 @@ class Co extends Yt {
|
|
|
6974
6973
|
}
|
|
6975
6974
|
invert(t) {
|
|
6976
6975
|
let e = t.nodeAt(this.pos);
|
|
6977
|
-
return !e || !this.mark.isInSet(e.marks) ? this : new
|
|
6976
|
+
return !e || !this.mark.isInSet(e.marks) ? this : new $r(this.pos, this.mark);
|
|
6978
6977
|
}
|
|
6979
6978
|
map(t) {
|
|
6980
6979
|
let e = t.mapResult(this.pos, 1);
|
|
@@ -7010,7 +7009,7 @@ class Dt extends Yt {
|
|
|
7010
7009
|
return this.structure && ol(t, this.from, this.to) ? Mt.fail("Structure replace would overwrite content") : Mt.fromReplace(t, this.from, this.to, this.slice);
|
|
7011
7010
|
}
|
|
7012
7011
|
getMap() {
|
|
7013
|
-
return new
|
|
7012
|
+
return new me([this.from, this.to - this.from, this.slice.size]);
|
|
7014
7013
|
}
|
|
7015
7014
|
invert(t) {
|
|
7016
7015
|
return new Dt(this.from, this.from + this.slice.size, t.slice(this.from, this.to));
|
|
@@ -7065,7 +7064,7 @@ class Nt extends Yt {
|
|
|
7065
7064
|
return o ? Mt.fromReplace(t, this.from, this.to, o) : Mt.fail("Content does not fit in gap");
|
|
7066
7065
|
}
|
|
7067
7066
|
getMap() {
|
|
7068
|
-
return new
|
|
7067
|
+
return new me([
|
|
7069
7068
|
this.from,
|
|
7070
7069
|
this.gapFrom - this.from,
|
|
7071
7070
|
this.insert,
|
|
@@ -7126,8 +7125,8 @@ function Tg(r, t, e, o) {
|
|
|
7126
7125
|
if (!o.isInSet(c) && d.type.allowsMarkType(o.type)) {
|
|
7127
7126
|
let m = Math.max(p, t), u = Math.min(p + l.nodeSize, e), x = o.addToSet(c);
|
|
7128
7127
|
for (let g = 0; g < c.length; g++)
|
|
7129
|
-
c[g].isInSet(x) || (a && a.to == m && a.mark.eq(c[g]) ? a.to = u : i.push(a = new
|
|
7130
|
-
s && s.to == m ? s.to = u : n.push(s = new
|
|
7128
|
+
c[g].isInSet(x) || (a && a.to == m && a.mark.eq(c[g]) ? a.to = u : i.push(a = new Ue(m, u, c[g])));
|
|
7129
|
+
s && s.to == m ? s.to = u : n.push(s = new Rr(m, u, o));
|
|
7131
7130
|
}
|
|
7132
7131
|
}), i.forEach((l) => r.step(l)), n.forEach((l) => r.step(l));
|
|
7133
7132
|
}
|
|
@@ -7154,7 +7153,7 @@ function Og(r, t, e, o) {
|
|
|
7154
7153
|
m ? (m.to = p, m.step = n) : i.push({ style: c, from: Math.max(s, t), to: p, step: n });
|
|
7155
7154
|
}
|
|
7156
7155
|
}
|
|
7157
|
-
}), i.forEach((a) => r.step(new
|
|
7156
|
+
}), i.forEach((a) => r.step(new Ue(a.from, a.to, a.style)));
|
|
7158
7157
|
}
|
|
7159
7158
|
function _l(r, t, e, o = e.contentMatch, i = !0) {
|
|
7160
7159
|
let n = r.doc.nodeAt(t), a = [], s = t + 1;
|
|
@@ -7165,7 +7164,7 @@ function _l(r, t, e, o = e.contentMatch, i = !0) {
|
|
|
7165
7164
|
else {
|
|
7166
7165
|
o = c;
|
|
7167
7166
|
for (let m = 0; m < p.marks.length; m++)
|
|
7168
|
-
e.allowsMarkType(p.marks[m].type) || r.step(new
|
|
7167
|
+
e.allowsMarkType(p.marks[m].type) || r.step(new Ue(s, d, p.marks[m]));
|
|
7169
7168
|
if (i && p.isText && e.whitespace != "pre") {
|
|
7170
7169
|
let m, u = /\r?\n|\r/g, x;
|
|
7171
7170
|
for (; m = u.exec(p.text); )
|
|
@@ -7294,7 +7293,7 @@ function Rg(r, t, e, o, i) {
|
|
|
7294
7293
|
throw new RangeError("Invalid content for node type " + e.name);
|
|
7295
7294
|
r.step(new Nt(t, t + n.nodeSize, t + 1, t + n.nodeSize - 1, new F(N.from(a), 0, 0), 1, !0));
|
|
7296
7295
|
}
|
|
7297
|
-
function
|
|
7296
|
+
function mr(r, t, e = 1, o) {
|
|
7298
7297
|
let i = r.resolve(t), n = i.depth - e, a = o && o[o.length - 1] || i.parent;
|
|
7299
7298
|
if (n < 0 || i.parent.type.spec.isolating || !i.parent.canReplace(i.index(), i.parent.childCount) || !a.type.validContent(i.parent.content.cutByIndex(i.index(), i.parent.childCount)))
|
|
7300
7299
|
return !1;
|
|
@@ -7707,7 +7706,7 @@ class Xo extends Yt {
|
|
|
7707
7706
|
return Mt.fromReplace(t, this.pos, this.pos + 1, new F(N.from(i), 0, e.isLeaf ? 0 : 1));
|
|
7708
7707
|
}
|
|
7709
7708
|
getMap() {
|
|
7710
|
-
return
|
|
7709
|
+
return me.empty;
|
|
7711
7710
|
}
|
|
7712
7711
|
invert(t) {
|
|
7713
7712
|
return new Xo(this.pos, this.attr, t.nodeAt(this.pos).attrs[this.attr]);
|
|
@@ -7742,7 +7741,7 @@ class qi extends Yt {
|
|
|
7742
7741
|
return Mt.ok(o);
|
|
7743
7742
|
}
|
|
7744
7743
|
getMap() {
|
|
7745
|
-
return
|
|
7744
|
+
return me.empty;
|
|
7746
7745
|
}
|
|
7747
7746
|
invert(t) {
|
|
7748
7747
|
return new qi(this.attr, t.attrs[this.attr]);
|
|
@@ -7938,7 +7937,7 @@ class Hb {
|
|
|
7938
7937
|
Add a mark to the node at position `pos`.
|
|
7939
7938
|
*/
|
|
7940
7939
|
addNodeMark(t, e) {
|
|
7941
|
-
return this.step(new
|
|
7940
|
+
return this.step(new $r(t, e)), this;
|
|
7942
7941
|
}
|
|
7943
7942
|
/**
|
|
7944
7943
|
Remove a mark (or all marks of the given type) from the node at
|
|
@@ -8105,7 +8104,7 @@ class Z {
|
|
|
8105
8104
|
negative, it will search backwards first.
|
|
8106
8105
|
*/
|
|
8107
8106
|
static near(t, e = 1) {
|
|
8108
|
-
return this.findFrom(t, e) || this.findFrom(t, -e) || new
|
|
8107
|
+
return this.findFrom(t, e) || this.findFrom(t, -e) || new xe(t.node(0));
|
|
8109
8108
|
}
|
|
8110
8109
|
/**
|
|
8111
8110
|
Find the cursor or leaf node selection closest to the start of
|
|
@@ -8114,14 +8113,14 @@ class Z {
|
|
|
8114
8113
|
exists.
|
|
8115
8114
|
*/
|
|
8116
8115
|
static atStart(t) {
|
|
8117
|
-
return jo(t, t, 0, 0, 1) || new
|
|
8116
|
+
return jo(t, t, 0, 0, 1) || new xe(t);
|
|
8118
8117
|
}
|
|
8119
8118
|
/**
|
|
8120
8119
|
Find the cursor or leaf node selection closest to the end of the
|
|
8121
8120
|
given document.
|
|
8122
8121
|
*/
|
|
8123
8122
|
static atEnd(t) {
|
|
8124
|
-
return jo(t, t, t.content.size, t.childCount, -1) || new
|
|
8123
|
+
return jo(t, t, t.content.size, t.childCount, -1) || new xe(t);
|
|
8125
8124
|
}
|
|
8126
8125
|
/**
|
|
8127
8126
|
Deserialize the JSON representation of a selection. Must be
|
|
@@ -8317,7 +8316,7 @@ class Fl {
|
|
|
8317
8316
|
return o && J.isSelectable(o) ? new J(e) : Z.near(e);
|
|
8318
8317
|
}
|
|
8319
8318
|
}
|
|
8320
|
-
class
|
|
8319
|
+
class xe extends Z {
|
|
8321
8320
|
/**
|
|
8322
8321
|
Create an all-selection over the given document.
|
|
8323
8322
|
*/
|
|
@@ -8339,25 +8338,25 @@ class ue extends Z {
|
|
|
8339
8338
|
@internal
|
|
8340
8339
|
*/
|
|
8341
8340
|
static fromJSON(t) {
|
|
8342
|
-
return new
|
|
8341
|
+
return new xe(t);
|
|
8343
8342
|
}
|
|
8344
8343
|
map(t) {
|
|
8345
|
-
return new
|
|
8344
|
+
return new xe(t);
|
|
8346
8345
|
}
|
|
8347
8346
|
eq(t) {
|
|
8348
|
-
return t instanceof
|
|
8347
|
+
return t instanceof xe;
|
|
8349
8348
|
}
|
|
8350
8349
|
getBookmark() {
|
|
8351
8350
|
return Gg;
|
|
8352
8351
|
}
|
|
8353
8352
|
}
|
|
8354
|
-
Z.jsonID("all",
|
|
8353
|
+
Z.jsonID("all", xe);
|
|
8355
8354
|
const Gg = {
|
|
8356
8355
|
map() {
|
|
8357
8356
|
return this;
|
|
8358
8357
|
},
|
|
8359
8358
|
resolve(r) {
|
|
8360
|
-
return new
|
|
8359
|
+
return new xe(r);
|
|
8361
8360
|
}
|
|
8362
8361
|
};
|
|
8363
8362
|
function jo(r, t, e, o, i, n = !1) {
|
|
@@ -8812,7 +8811,7 @@ const _t = function(r) {
|
|
|
8812
8811
|
return t && t.nodeType == 11 ? t.host : t;
|
|
8813
8812
|
};
|
|
8814
8813
|
let il = null;
|
|
8815
|
-
const
|
|
8814
|
+
const pr = function(r, t, e) {
|
|
8816
8815
|
let o = il || (il = document.createRange());
|
|
8817
8816
|
return o.setEnd(r, e ?? r.nodeValue.length), o.setStart(r, t || 0), o;
|
|
8818
8817
|
}, Xg = function() {
|
|
@@ -8824,7 +8823,7 @@ function ld(r, t, e, o, i) {
|
|
|
8824
8823
|
for (var n; ; ) {
|
|
8825
8824
|
if (r == e && t == o)
|
|
8826
8825
|
return !0;
|
|
8827
|
-
if (t == (i < 0 ? 0 :
|
|
8826
|
+
if (t == (i < 0 ? 0 : Me(r))) {
|
|
8828
8827
|
let a = r.parentNode;
|
|
8829
8828
|
if (!a || a.nodeType != 1 || ln(r) || Qg.test(r.nodeName) || r.contentEditable == "false")
|
|
8830
8829
|
return !1;
|
|
@@ -8837,12 +8836,12 @@ function ld(r, t, e, o, i) {
|
|
|
8837
8836
|
else
|
|
8838
8837
|
return !1;
|
|
8839
8838
|
else
|
|
8840
|
-
r = a, t = i < 0 ?
|
|
8839
|
+
r = a, t = i < 0 ? Me(r) : 0;
|
|
8841
8840
|
} else
|
|
8842
8841
|
return !1;
|
|
8843
8842
|
}
|
|
8844
8843
|
}
|
|
8845
|
-
function
|
|
8844
|
+
function Me(r) {
|
|
8846
8845
|
return r.nodeType == 3 ? r.nodeValue.length : r.childNodes.length;
|
|
8847
8846
|
}
|
|
8848
8847
|
function Zg(r, t) {
|
|
@@ -8852,7 +8851,7 @@ function Zg(r, t) {
|
|
|
8852
8851
|
if (r.nodeType == 1 && t > 0) {
|
|
8853
8852
|
if (r.contentEditable == "false")
|
|
8854
8853
|
return null;
|
|
8855
|
-
r = r.childNodes[t - 1], t =
|
|
8854
|
+
r = r.childNodes[t - 1], t = Me(r);
|
|
8856
8855
|
} else if (r.parentNode && !ln(r))
|
|
8857
8856
|
t = _t(r), r = r.parentNode;
|
|
8858
8857
|
else
|
|
@@ -8874,13 +8873,13 @@ function tf(r, t) {
|
|
|
8874
8873
|
}
|
|
8875
8874
|
}
|
|
8876
8875
|
function ef(r, t, e) {
|
|
8877
|
-
for (let o = t == 0, i = t ==
|
|
8876
|
+
for (let o = t == 0, i = t == Me(r); o || i; ) {
|
|
8878
8877
|
if (r == e)
|
|
8879
8878
|
return !0;
|
|
8880
8879
|
let n = _t(r);
|
|
8881
8880
|
if (r = r.parentNode, !r)
|
|
8882
8881
|
return !1;
|
|
8883
|
-
o = o && n == 0, i = i && n ==
|
|
8882
|
+
o = o && n == 0, i = i && n == Me(r);
|
|
8884
8883
|
}
|
|
8885
8884
|
}
|
|
8886
8885
|
function ln(r) {
|
|
@@ -8907,18 +8906,18 @@ function of(r, t, e) {
|
|
|
8907
8906
|
try {
|
|
8908
8907
|
let o = r.caretPositionFromPoint(t, e);
|
|
8909
8908
|
if (o)
|
|
8910
|
-
return { node: o.offsetNode, offset: Math.min(
|
|
8909
|
+
return { node: o.offsetNode, offset: Math.min(Me(o.offsetNode), o.offset) };
|
|
8911
8910
|
} catch {
|
|
8912
8911
|
}
|
|
8913
8912
|
if (r.caretRangeFromPoint) {
|
|
8914
8913
|
let o = r.caretRangeFromPoint(t, e);
|
|
8915
8914
|
if (o)
|
|
8916
|
-
return { node: o.startContainer, offset: Math.min(
|
|
8915
|
+
return { node: o.startContainer, offset: Math.min(Me(o.startContainer), o.startOffset) };
|
|
8917
8916
|
}
|
|
8918
8917
|
}
|
|
8919
|
-
const
|
|
8920
|
-
|
|
8921
|
-
const sl = !le && /Chrome\/(\d+)/.exec(Gr), Jt = !!sl, qb = sl ? +sl[1] : 0, ee = !le && !!
|
|
8918
|
+
const Je = typeof navigator < "u" ? navigator : null, pd = typeof document < "u" ? document : null, Gr = Je && Je.userAgent || "", nl = /Edge\/(\d+)/.exec(Gr), Wb = /MSIE \d/.exec(Gr), al = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Gr), le = !!(Wb || al || nl), Hr = Wb ? document.documentMode : al ? +al[1] : nl ? +nl[1] : 0, $e = !le && /gecko\/(\d+)/i.test(Gr);
|
|
8919
|
+
$e && +(/Firefox\/(\d+)/.exec(Gr) || [0, 0])[1];
|
|
8920
|
+
const sl = !le && /Chrome\/(\d+)/.exec(Gr), Jt = !!sl, qb = sl ? +sl[1] : 0, ee = !le && !!Je && /Apple Computer/.test(Je.vendor), ei = ee && (/Mobile\/\w+/.test(Gr) || !!Je && Je.maxTouchPoints > 2), Ce = ei || (Je ? /Mac/.test(Je.platform) : !1), nf = Je ? /Win/.test(Je.platform) : !1, cr = /Android \d/.test(Gr), pn = !!pd && "webkitFontSmoothing" in pd.documentElement.style, af = pn ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
8922
8921
|
function sf(r) {
|
|
8923
8922
|
let t = r.defaultView && r.defaultView.visualViewport;
|
|
8924
8923
|
return t ? {
|
|
@@ -8933,7 +8932,7 @@ function sf(r) {
|
|
|
8933
8932
|
bottom: r.documentElement.clientHeight
|
|
8934
8933
|
};
|
|
8935
8934
|
}
|
|
8936
|
-
function
|
|
8935
|
+
function nr(r, t) {
|
|
8937
8936
|
return typeof r == "number" ? r : r[t];
|
|
8938
8937
|
}
|
|
8939
8938
|
function lf(r) {
|
|
@@ -8953,7 +8952,7 @@ function dd(r, t, e) {
|
|
|
8953
8952
|
continue;
|
|
8954
8953
|
}
|
|
8955
8954
|
let s = a, l = s == n.body, p = l ? sf(n) : lf(s), d = 0, c = 0;
|
|
8956
|
-
if (t.top < p.top +
|
|
8955
|
+
if (t.top < p.top + nr(o, "top") ? c = -(p.top - t.top + nr(i, "top")) : t.bottom > p.bottom - nr(o, "bottom") && (c = t.bottom - t.top > p.bottom - p.top ? t.top + nr(i, "top") - p.top : t.bottom - p.bottom + nr(i, "bottom")), t.left < p.left + nr(o, "left") ? d = -(p.left - t.left + nr(i, "left")) : t.right > p.right - nr(o, "right") && (d = t.right - p.right + nr(i, "right")), d || c)
|
|
8957
8956
|
if (l)
|
|
8958
8957
|
n.defaultView.scrollBy(d, c);
|
|
8959
8958
|
else {
|
|
@@ -9018,7 +9017,7 @@ function Gb(r, t) {
|
|
|
9018
9017
|
if (d.nodeType == 1)
|
|
9019
9018
|
m = d.getClientRects();
|
|
9020
9019
|
else if (d.nodeType == 3)
|
|
9021
|
-
m =
|
|
9020
|
+
m = pr(d).getClientRects();
|
|
9022
9021
|
else
|
|
9023
9022
|
continue;
|
|
9024
9023
|
for (let u = 0; u < m.length; u++) {
|
|
@@ -9043,7 +9042,7 @@ function bf(r, t) {
|
|
|
9043
9042
|
let e = r.nodeValue.length, o = document.createRange();
|
|
9044
9043
|
for (let i = 0; i < e; i++) {
|
|
9045
9044
|
o.setEnd(r, i + 1), o.setStart(r, i);
|
|
9046
|
-
let n =
|
|
9045
|
+
let n = Mr(o, 1);
|
|
9047
9046
|
if (n.top != n.bottom && Hl(t, n))
|
|
9048
9047
|
return { node: r, offset: i + (t.left >= (n.left + n.right) / 2 ? 1 : 0) };
|
|
9049
9048
|
}
|
|
@@ -9108,7 +9107,7 @@ function gf(r, t) {
|
|
|
9108
9107
|
for (let p = a; o && p; p = ti(p))
|
|
9109
9108
|
p.draggable && (o = void 0);
|
|
9110
9109
|
if (a = mf(a, t), o) {
|
|
9111
|
-
if (
|
|
9110
|
+
if ($e && o.nodeType == 1 && (i = Math.min(i, o.childNodes.length), i < o.childNodes.length)) {
|
|
9112
9111
|
let d = o.childNodes[i], c;
|
|
9113
9112
|
d.nodeName == "IMG" && (c = d.getBoundingClientRect()).right <= t.left && c.bottom > t.top && i++;
|
|
9114
9113
|
}
|
|
@@ -9122,7 +9121,7 @@ function gf(r, t) {
|
|
|
9122
9121
|
function cd(r) {
|
|
9123
9122
|
return r.top < r.bottom || r.left < r.right;
|
|
9124
9123
|
}
|
|
9125
|
-
function
|
|
9124
|
+
function Mr(r, t) {
|
|
9126
9125
|
let e = r.getClientRects();
|
|
9127
9126
|
if (e.length) {
|
|
9128
9127
|
let o = e[t < 0 ? 0 : e.length - 1];
|
|
@@ -9133,14 +9132,14 @@ function Cr(r, t) {
|
|
|
9133
9132
|
}
|
|
9134
9133
|
const ff = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
|
|
9135
9134
|
function Yb(r, t, e) {
|
|
9136
|
-
let { node: o, offset: i, atom: n } = r.docView.domFromPos(t, e < 0 ? -1 : 1), a = pn ||
|
|
9135
|
+
let { node: o, offset: i, atom: n } = r.docView.domFromPos(t, e < 0 ? -1 : 1), a = pn || $e;
|
|
9137
9136
|
if (o.nodeType == 3)
|
|
9138
9137
|
if (a && (ff.test(o.nodeValue) || (e < 0 ? !i : i == o.nodeValue.length))) {
|
|
9139
|
-
let l =
|
|
9140
|
-
if (
|
|
9141
|
-
let p =
|
|
9138
|
+
let l = Mr(pr(o, i, i), e);
|
|
9139
|
+
if ($e && i && /\s/.test(o.nodeValue[i - 1]) && i < o.nodeValue.length) {
|
|
9140
|
+
let p = Mr(pr(o, i - 1, i - 1), -1);
|
|
9142
9141
|
if (p.top == l.top) {
|
|
9143
|
-
let d =
|
|
9142
|
+
let d = Mr(pr(o, i, i + 1), -1);
|
|
9144
9143
|
if (d.top != l.top)
|
|
9145
9144
|
return ui(d, d.left < p.left);
|
|
9146
9145
|
}
|
|
@@ -9148,35 +9147,35 @@ function Yb(r, t, e) {
|
|
|
9148
9147
|
return l;
|
|
9149
9148
|
} else {
|
|
9150
9149
|
let l = i, p = i, d = e < 0 ? 1 : -1;
|
|
9151
|
-
return e < 0 && !i ? (p++, d = -1) : e >= 0 && i == o.nodeValue.length ? (l--, d = 1) : e < 0 ? l-- : p++, ui(
|
|
9150
|
+
return e < 0 && !i ? (p++, d = -1) : e >= 0 && i == o.nodeValue.length ? (l--, d = 1) : e < 0 ? l-- : p++, ui(Mr(pr(o, l, p), d), d < 0);
|
|
9152
9151
|
}
|
|
9153
9152
|
if (!r.state.doc.resolve(t - (n || 0)).parent.inlineContent) {
|
|
9154
|
-
if (n == null && i && (e < 0 || i ==
|
|
9153
|
+
if (n == null && i && (e < 0 || i == Me(o))) {
|
|
9155
9154
|
let l = o.childNodes[i - 1];
|
|
9156
9155
|
if (l.nodeType == 1)
|
|
9157
9156
|
return vs(l.getBoundingClientRect(), !1);
|
|
9158
9157
|
}
|
|
9159
|
-
if (n == null && i <
|
|
9158
|
+
if (n == null && i < Me(o)) {
|
|
9160
9159
|
let l = o.childNodes[i];
|
|
9161
9160
|
if (l.nodeType == 1)
|
|
9162
9161
|
return vs(l.getBoundingClientRect(), !0);
|
|
9163
9162
|
}
|
|
9164
9163
|
return vs(o.getBoundingClientRect(), e >= 0);
|
|
9165
9164
|
}
|
|
9166
|
-
if (n == null && i && (e < 0 || i ==
|
|
9167
|
-
let l = o.childNodes[i - 1], p = l.nodeType == 3 ?
|
|
9165
|
+
if (n == null && i && (e < 0 || i == Me(o))) {
|
|
9166
|
+
let l = o.childNodes[i - 1], p = l.nodeType == 3 ? pr(l, Me(l) - (a ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
|
|
9168
9167
|
if (p)
|
|
9169
|
-
return ui(
|
|
9168
|
+
return ui(Mr(p, 1), !1);
|
|
9170
9169
|
}
|
|
9171
|
-
if (n == null && i <
|
|
9170
|
+
if (n == null && i < Me(o)) {
|
|
9172
9171
|
let l = o.childNodes[i];
|
|
9173
9172
|
for (; l.pmViewDesc && l.pmViewDesc.ignoreForCoords; )
|
|
9174
9173
|
l = l.nextSibling;
|
|
9175
|
-
let p = l ? l.nodeType == 3 ?
|
|
9174
|
+
let p = l ? l.nodeType == 3 ? pr(l, 0, a ? 0 : 1) : l.nodeType == 1 ? l : null : null;
|
|
9176
9175
|
if (p)
|
|
9177
|
-
return ui(
|
|
9176
|
+
return ui(Mr(p, -1), !0);
|
|
9178
9177
|
}
|
|
9179
|
-
return ui(
|
|
9178
|
+
return ui(Mr(o.nodeType == 3 ? pr(o) : o, -e), e >= 0);
|
|
9180
9179
|
}
|
|
9181
9180
|
function ui(r, t) {
|
|
9182
9181
|
if (r.width == 0)
|
|
@@ -9219,7 +9218,7 @@ function hf(r, t, e) {
|
|
|
9219
9218
|
if (s.nodeType == 1)
|
|
9220
9219
|
l = s.getClientRects();
|
|
9221
9220
|
else if (s.nodeType == 3)
|
|
9222
|
-
l =
|
|
9221
|
+
l = pr(s, 0, s.nodeValue.length).getClientRects();
|
|
9223
9222
|
else
|
|
9224
9223
|
continue;
|
|
9225
9224
|
for (let p = 0; p < l.length; p++) {
|
|
@@ -9252,10 +9251,10 @@ let bd = null, md = null, ud = !1;
|
|
|
9252
9251
|
function vf(r, t, e) {
|
|
9253
9252
|
return bd == t && md == e ? ud : (bd = t, md = e, ud = e == "up" || e == "down" ? hf(r, t, e) : wf(r, t, e));
|
|
9254
9253
|
}
|
|
9255
|
-
const
|
|
9254
|
+
const Te = 0, xd = 1, bo = 2, Ye = 3;
|
|
9256
9255
|
class dn {
|
|
9257
9256
|
constructor(t, e, o, i) {
|
|
9258
|
-
this.parent = t, this.children = e, this.dom = o, this.contentDOM = i, this.dirty =
|
|
9257
|
+
this.parent = t, this.children = e, this.dom = o, this.contentDOM = i, this.dirty = Te, o.pmViewDesc = this;
|
|
9259
9258
|
}
|
|
9260
9259
|
// Used to check whether a given description corresponds to a
|
|
9261
9260
|
// widget/mark/node.
|
|
@@ -9512,7 +9511,7 @@ class dn {
|
|
|
9512
9511
|
x = f;
|
|
9513
9512
|
}
|
|
9514
9513
|
let s = this.domFromPos(t, t ? -1 : 1), l = e == t ? s : this.domFromPos(e, e ? -1 : 1), p = o.root.getSelection(), d = o.domSelectionRange(), c = !1;
|
|
9515
|
-
if ((
|
|
9514
|
+
if (($e || ee) && t == e) {
|
|
9516
9515
|
let { node: u, offset: x } = s;
|
|
9517
9516
|
if (u.nodeType == 3) {
|
|
9518
9517
|
if (c = !!(x && u.nodeValue[x - 1] == `
|
|
@@ -9531,7 +9530,7 @@ class dn {
|
|
|
9531
9530
|
c = g && (g.nodeName == "BR" || g.contentEditable == "false");
|
|
9532
9531
|
}
|
|
9533
9532
|
}
|
|
9534
|
-
if (
|
|
9533
|
+
if ($e && d.focusNode && d.focusNode != l.node && d.focusNode.nodeType == 1) {
|
|
9535
9534
|
let u = d.focusNode.childNodes[d.focusOffset];
|
|
9536
9535
|
u && u.contentEditable == "false" && (i = !0);
|
|
9537
9536
|
}
|
|
@@ -9568,10 +9567,10 @@ class dn {
|
|
|
9568
9567
|
if (o == a ? t <= a && e >= o : t < a && e > o) {
|
|
9569
9568
|
let s = o + n.border, l = a - n.border;
|
|
9570
9569
|
if (t >= s && e <= l) {
|
|
9571
|
-
this.dirty = t == o || e == a ? bo : xd, t == s && e == l && (n.contentLost || n.dom.parentNode != this.contentDOM) ? n.dirty =
|
|
9570
|
+
this.dirty = t == o || e == a ? bo : xd, t == s && e == l && (n.contentLost || n.dom.parentNode != this.contentDOM) ? n.dirty = Ye : n.markDirty(t - s, e - s);
|
|
9572
9571
|
return;
|
|
9573
9572
|
} else
|
|
9574
|
-
n.dirty = n.dom == n.contentDOM && n.dom.parentNode == this.contentDOM && !n.children.length ? bo :
|
|
9573
|
+
n.dirty = n.dom == n.contentDOM && n.dom.parentNode == this.contentDOM && !n.children.length ? bo : Ye;
|
|
9575
9574
|
}
|
|
9576
9575
|
o = a;
|
|
9577
9576
|
}
|
|
@@ -9615,7 +9614,7 @@ class Qb extends dn {
|
|
|
9615
9614
|
super(t, [], a, null), this.widget = e, this.widget = e, n = this;
|
|
9616
9615
|
}
|
|
9617
9616
|
matchesWidget(t) {
|
|
9618
|
-
return this.dirty ==
|
|
9617
|
+
return this.dirty == Te && t.type.eq(this.widget.type);
|
|
9619
9618
|
}
|
|
9620
9619
|
parseRule() {
|
|
9621
9620
|
return { ignore: !0 };
|
|
@@ -9666,17 +9665,17 @@ class Eo extends dn {
|
|
|
9666
9665
|
return (!a || !a.dom) && (a = Bo.renderSpec(document, e.type.spec.toDOM(e, o), null, e.attrs)), new Eo(t, e, a.dom, a.contentDOM || a.dom, a);
|
|
9667
9666
|
}
|
|
9668
9667
|
parseRule() {
|
|
9669
|
-
return this.dirty &
|
|
9668
|
+
return this.dirty & Ye || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
|
|
9670
9669
|
}
|
|
9671
9670
|
matchesMark(t) {
|
|
9672
|
-
return this.dirty !=
|
|
9671
|
+
return this.dirty != Ye && this.mark.eq(t);
|
|
9673
9672
|
}
|
|
9674
9673
|
markDirty(t, e) {
|
|
9675
|
-
if (super.markDirty(t, e), this.dirty !=
|
|
9674
|
+
if (super.markDirty(t, e), this.dirty != Te) {
|
|
9676
9675
|
let o = this.parent;
|
|
9677
9676
|
for (; !o.node; )
|
|
9678
9677
|
o = o.parent;
|
|
9679
|
-
o.dirty < this.dirty && (o.dirty = this.dirty), this.dirty =
|
|
9678
|
+
o.dirty < this.dirty && (o.dirty = this.dirty), this.dirty = Te;
|
|
9680
9679
|
}
|
|
9681
9680
|
}
|
|
9682
9681
|
slice(t, e, o) {
|
|
@@ -9744,7 +9743,7 @@ class jr extends dn {
|
|
|
9744
9743
|
return t;
|
|
9745
9744
|
}
|
|
9746
9745
|
matchesNode(t, e, o) {
|
|
9747
|
-
return this.dirty ==
|
|
9746
|
+
return this.dirty == Te && t.eq(this.node) && ra(e, this.outerDeco) && o.eq(this.innerDeco);
|
|
9748
9747
|
}
|
|
9749
9748
|
get size() {
|
|
9750
9749
|
return this.node.nodeSize;
|
|
@@ -9796,10 +9795,10 @@ class jr extends dn {
|
|
|
9796
9795
|
// If this desc must be updated to match the given node decoration,
|
|
9797
9796
|
// do so and return true.
|
|
9798
9797
|
update(t, e, o, i) {
|
|
9799
|
-
return this.dirty ==
|
|
9798
|
+
return this.dirty == Ye || !t.sameMarkup(this.node) ? !1 : (this.updateInner(t, e, o, i), !0);
|
|
9800
9799
|
}
|
|
9801
9800
|
updateInner(t, e, o, i) {
|
|
9802
|
-
this.updateOuterDeco(e), this.node = t, this.innerDeco = o, this.contentDOM && this.updateChildren(i, this.posAtStart), this.dirty =
|
|
9801
|
+
this.updateOuterDeco(e), this.node = t, this.innerDeco = o, this.contentDOM && this.updateChildren(i, this.posAtStart), this.dirty = Te;
|
|
9803
9802
|
}
|
|
9804
9803
|
updateOuterDeco(t) {
|
|
9805
9804
|
if (ra(t, this.outerDeco))
|
|
@@ -9835,7 +9834,7 @@ class Ga extends jr {
|
|
|
9835
9834
|
return { skip: t || !0 };
|
|
9836
9835
|
}
|
|
9837
9836
|
update(t, e, o, i) {
|
|
9838
|
-
return this.dirty ==
|
|
9837
|
+
return this.dirty == Ye || this.dirty != Te && !this.inParent() || !t.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(e), (this.dirty != Te || t.text != this.node.text) && t.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = t.text, i.trackWrites == this.nodeDOM && (i.trackWrites = null)), this.node = t, this.dirty = Te, !0);
|
|
9839
9838
|
}
|
|
9840
9839
|
inParent() {
|
|
9841
9840
|
let t = this.parent.contentDOM;
|
|
@@ -9858,7 +9857,7 @@ class Ga extends jr {
|
|
|
9858
9857
|
return new Ga(this.parent, i, this.outerDeco, this.innerDeco, n, n, o);
|
|
9859
9858
|
}
|
|
9860
9859
|
markDirty(t, e) {
|
|
9861
|
-
super.markDirty(t, e), this.dom != this.nodeDOM && (t == 0 || e == this.nodeDOM.nodeValue.length) && (this.dirty =
|
|
9860
|
+
super.markDirty(t, e), this.dom != this.nodeDOM && (t == 0 || e == this.nodeDOM.nodeValue.length) && (this.dirty = Ye);
|
|
9862
9861
|
}
|
|
9863
9862
|
get domAtom() {
|
|
9864
9863
|
return !1;
|
|
@@ -9872,7 +9871,7 @@ class Zb extends dn {
|
|
|
9872
9871
|
return { ignore: !0 };
|
|
9873
9872
|
}
|
|
9874
9873
|
matchesHack(t) {
|
|
9875
|
-
return this.dirty ==
|
|
9874
|
+
return this.dirty == Te && this.dom.nodeName == t;
|
|
9876
9875
|
}
|
|
9877
9876
|
get domAtom() {
|
|
9878
9877
|
return !0;
|
|
@@ -9889,7 +9888,7 @@ class Sf extends jr {
|
|
|
9889
9888
|
// through. If it does, and there's a `contentDOM` node, our logic
|
|
9890
9889
|
// updates the children.
|
|
9891
9890
|
update(t, e, o, i) {
|
|
9892
|
-
if (this.dirty ==
|
|
9891
|
+
if (this.dirty == Ye)
|
|
9893
9892
|
return !1;
|
|
9894
9893
|
if (this.spec.update && (this.node.type == t.type || this.spec.multiType)) {
|
|
9895
9894
|
let n = this.spec.update(t, e, o);
|
|
@@ -10030,7 +10029,7 @@ class Mf {
|
|
|
10030
10029
|
for (; i < a && (i == n - 1 ? this.top : this.stack[i + 1 << 1]).matchesMark(t[i]) && t[i].type.spec.spanning !== !1; )
|
|
10031
10030
|
i++;
|
|
10032
10031
|
for (; i < n; )
|
|
10033
|
-
this.destroyRest(), this.top.dirty =
|
|
10032
|
+
this.destroyRest(), this.top.dirty = Te, this.index = this.stack.pop(), this.top = this.stack.pop(), n--;
|
|
10034
10033
|
for (; n < t.length; ) {
|
|
10035
10034
|
this.stack.push(this.top, this.index + 1);
|
|
10036
10035
|
let s = -1;
|
|
@@ -10068,7 +10067,7 @@ class Mf {
|
|
|
10068
10067
|
}
|
|
10069
10068
|
updateNodeAt(t, e, o, i, n) {
|
|
10070
10069
|
let a = this.top.children[i];
|
|
10071
|
-
return a.dirty ==
|
|
10070
|
+
return a.dirty == Ye && a.dom == a.contentDOM && (a.dirty = bo), a.update(t, e, o, n) ? (this.destroyBetween(this.index, i), this.index++, !0) : !1;
|
|
10072
10071
|
}
|
|
10073
10072
|
findIndexWithChild(t) {
|
|
10074
10073
|
for (; ; ) {
|
|
@@ -10096,11 +10095,11 @@ class Mf {
|
|
|
10096
10095
|
let p = this.preMatch.matched.get(l);
|
|
10097
10096
|
if (p != null && p != n)
|
|
10098
10097
|
return !1;
|
|
10099
|
-
let d = l.dom, c, m = this.isLocked(d) && !(t.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == t.text && l.dirty !=
|
|
10098
|
+
let d = l.dom, c, m = this.isLocked(d) && !(t.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == t.text && l.dirty != Ye && ra(e, l.outerDeco));
|
|
10100
10099
|
if (!m && l.update(t, e, o, i))
|
|
10101
10100
|
return this.destroyBetween(this.index, s), l.dom != d && (this.changed = !0), this.index++, !0;
|
|
10102
10101
|
if (!m && (c = this.recreateWrapper(l, t, e, o, i, a)))
|
|
10103
|
-
return this.destroyBetween(this.index, s), this.top.children[this.index] = c, c.contentDOM && (c.dirty = bo, c.updateChildren(i, a + 1), c.dirty =
|
|
10102
|
+
return this.destroyBetween(this.index, s), this.top.children[this.index] = c, c.contentDOM && (c.dirty = bo, c.updateChildren(i, a + 1), c.dirty = Te), this.changed = !0, this.index++, !0;
|
|
10104
10103
|
break;
|
|
10105
10104
|
}
|
|
10106
10105
|
}
|
|
@@ -10313,7 +10312,7 @@ function jl(r, t = null) {
|
|
|
10313
10312
|
function om(r) {
|
|
10314
10313
|
return r.editable ? r.hasFocus() : nm(r) && document.activeElement && document.activeElement.contains(r.dom);
|
|
10315
10314
|
}
|
|
10316
|
-
function
|
|
10315
|
+
function ur(r, t = !1) {
|
|
10317
10316
|
let e = r.state.selection;
|
|
10318
10317
|
if (im(r, e), !!om(r)) {
|
|
10319
10318
|
if (!t && r.input.mouseDown && r.input.mouseDown.allowDefault && Jt) {
|
|
@@ -10401,7 +10400,7 @@ function dl(r, t) {
|
|
|
10401
10400
|
let { $anchor: e, $head: o } = r.selection, i = t > 0 ? e.max(o) : e.min(o), n = i.parent.inlineContent ? i.depth ? r.doc.resolve(t > 0 ? i.after() : i.before()) : null : i;
|
|
10402
10401
|
return n && Z.findFrom(n, t);
|
|
10403
10402
|
}
|
|
10404
|
-
function
|
|
10403
|
+
function Er(r, t) {
|
|
10405
10404
|
return r.dispatch(r.state.tr.setSelection(t).scrollIntoView()), !0;
|
|
10406
10405
|
}
|
|
10407
10406
|
function Sd(r, t, e) {
|
|
@@ -10412,25 +10411,25 @@ function Sd(r, t, e) {
|
|
|
10412
10411
|
if (!n || n.isText || !n.isLeaf)
|
|
10413
10412
|
return !1;
|
|
10414
10413
|
let a = r.state.doc.resolve(i.pos + n.nodeSize * (t < 0 ? -1 : 1));
|
|
10415
|
-
return
|
|
10414
|
+
return Er(r, new Q(o.$anchor, a));
|
|
10416
10415
|
} else if (o.empty) {
|
|
10417
10416
|
if (r.endOfTextblock(t > 0 ? "forward" : "backward")) {
|
|
10418
10417
|
let i = dl(r.state, t);
|
|
10419
|
-
return i && i instanceof J ?
|
|
10420
|
-
} else if (!(
|
|
10418
|
+
return i && i instanceof J ? Er(r, i) : !1;
|
|
10419
|
+
} else if (!(Ce && e.indexOf("m") > -1)) {
|
|
10421
10420
|
let i = o.$head, n = i.textOffset ? null : t < 0 ? i.nodeBefore : i.nodeAfter, a;
|
|
10422
10421
|
if (!n || n.isText)
|
|
10423
10422
|
return !1;
|
|
10424
10423
|
let s = t < 0 ? i.pos - n.nodeSize : i.pos;
|
|
10425
|
-
return n.isAtom || (a = r.docView.descAt(s)) && !a.contentDOM ? J.isSelectable(n) ?
|
|
10424
|
+
return n.isAtom || (a = r.docView.descAt(s)) && !a.contentDOM ? J.isSelectable(n) ? Er(r, new J(t < 0 ? r.state.doc.resolve(i.pos - n.nodeSize) : i)) : pn ? Er(r, new Q(r.state.doc.resolve(t < 0 ? s : s + n.nodeSize))) : !1 : !1;
|
|
10426
10425
|
}
|
|
10427
10426
|
} else return !1;
|
|
10428
10427
|
else {
|
|
10429
10428
|
if (o instanceof J && o.node.isInline)
|
|
10430
|
-
return
|
|
10429
|
+
return Er(r, new Q(t > 0 ? o.$to : o.$from));
|
|
10431
10430
|
{
|
|
10432
10431
|
let i = dl(r.state, t);
|
|
10433
|
-
return i ?
|
|
10432
|
+
return i ? Er(r, i) : !1;
|
|
10434
10433
|
}
|
|
10435
10434
|
}
|
|
10436
10435
|
}
|
|
@@ -10449,7 +10448,7 @@ function If(r) {
|
|
|
10449
10448
|
if (!e)
|
|
10450
10449
|
return;
|
|
10451
10450
|
let i, n, a = !1;
|
|
10452
|
-
for (
|
|
10451
|
+
for ($e && e.nodeType == 1 && o < oa(e) && Pi(e.childNodes[o], -1) && (a = !0); ; )
|
|
10453
10452
|
if (o > 0) {
|
|
10454
10453
|
if (e.nodeType != 1)
|
|
10455
10454
|
break;
|
|
@@ -10555,7 +10554,7 @@ function cl(r, t, e) {
|
|
|
10555
10554
|
r.domObserver.setCurSelection();
|
|
10556
10555
|
let { state: i } = r;
|
|
10557
10556
|
setTimeout(() => {
|
|
10558
|
-
r.state == i &&
|
|
10557
|
+
r.state == i && ur(r);
|
|
10559
10558
|
}, 50);
|
|
10560
10559
|
}
|
|
10561
10560
|
function Cd(r, t) {
|
|
@@ -10577,17 +10576,17 @@ function Cd(r, t) {
|
|
|
10577
10576
|
}
|
|
10578
10577
|
function Md(r, t, e) {
|
|
10579
10578
|
let o = r.state.selection;
|
|
10580
|
-
if (o instanceof Q && !o.empty || e.indexOf("s") > -1 ||
|
|
10579
|
+
if (o instanceof Q && !o.empty || e.indexOf("s") > -1 || Ce && e.indexOf("m") > -1)
|
|
10581
10580
|
return !1;
|
|
10582
10581
|
let { $from: i, $to: n } = o;
|
|
10583
10582
|
if (!i.parent.inlineContent || r.endOfTextblock(t < 0 ? "up" : "down")) {
|
|
10584
10583
|
let a = dl(r.state, t);
|
|
10585
10584
|
if (a && a instanceof J)
|
|
10586
|
-
return
|
|
10585
|
+
return Er(r, a);
|
|
10587
10586
|
}
|
|
10588
10587
|
if (!i.parent.inlineContent) {
|
|
10589
|
-
let a = t < 0 ? i : n, s = o instanceof
|
|
10590
|
-
return s ?
|
|
10588
|
+
let a = t < 0 ? i : n, s = o instanceof xe ? Z.near(a, t) : Z.findFrom(a, t);
|
|
10589
|
+
return s ? Er(r, s) : !1;
|
|
10591
10590
|
}
|
|
10592
10591
|
return !1;
|
|
10593
10592
|
}
|
|
@@ -10627,24 +10626,24 @@ function zf(r) {
|
|
|
10627
10626
|
}
|
|
10628
10627
|
function Ff(r, t) {
|
|
10629
10628
|
let e = t.keyCode, o = zf(t);
|
|
10630
|
-
if (e == 8 ||
|
|
10629
|
+
if (e == 8 || Ce && e == 72 && o == "c")
|
|
10631
10630
|
return Ed(r, -1) || zo(r, -1);
|
|
10632
|
-
if (e == 46 && !t.shiftKey ||
|
|
10631
|
+
if (e == 46 && !t.shiftKey || Ce && e == 68 && o == "c")
|
|
10633
10632
|
return Ed(r, 1) || zo(r, 1);
|
|
10634
10633
|
if (e == 13 || e == 27)
|
|
10635
10634
|
return !0;
|
|
10636
|
-
if (e == 37 ||
|
|
10635
|
+
if (e == 37 || Ce && e == 66 && o == "c") {
|
|
10637
10636
|
let i = e == 37 ? Cd(r, r.state.selection.from) == "ltr" ? -1 : 1 : -1;
|
|
10638
10637
|
return Sd(r, i, o) || zo(r, i);
|
|
10639
|
-
} else if (e == 39 ||
|
|
10638
|
+
} else if (e == 39 || Ce && e == 70 && o == "c") {
|
|
10640
10639
|
let i = e == 39 ? Cd(r, r.state.selection.from) == "ltr" ? 1 : -1 : 1;
|
|
10641
10640
|
return Sd(r, i, o) || zo(r, i);
|
|
10642
10641
|
} else {
|
|
10643
|
-
if (e == 38 ||
|
|
10642
|
+
if (e == 38 || Ce && e == 80 && o == "c")
|
|
10644
10643
|
return Md(r, -1, o) || zo(r, -1);
|
|
10645
|
-
if (e == 40 ||
|
|
10644
|
+
if (e == 40 || Ce && e == 78 && o == "c")
|
|
10646
10645
|
return _f(r) || Md(r, 1, o) || zo(r, 1);
|
|
10647
|
-
if (o == (
|
|
10646
|
+
if (o == (Ce ? "m" : "c") && (e == 66 || e == 73 || e == 89 || e == 90))
|
|
10648
10647
|
return !0;
|
|
10649
10648
|
}
|
|
10650
10649
|
return !1;
|
|
@@ -10852,7 +10851,7 @@ function Jf(r) {
|
|
|
10852
10851
|
}
|
|
10853
10852
|
ee && r.dom.addEventListener("input", () => null), ml(r);
|
|
10854
10853
|
}
|
|
10855
|
-
function
|
|
10854
|
+
function _r(r, t) {
|
|
10856
10855
|
r.input.lastSelectionOrigin = t, r.input.lastSelectionTime = Date.now();
|
|
10857
10856
|
}
|
|
10858
10857
|
function Yf(r) {
|
|
@@ -10888,20 +10887,20 @@ function Qf(r, t) {
|
|
|
10888
10887
|
}
|
|
10889
10888
|
oe.keydown = (r, t) => {
|
|
10890
10889
|
let e = t;
|
|
10891
|
-
if (r.input.shiftKey = e.keyCode == 16 || e.shiftKey, !um(r, e) && (r.input.lastKeyCode = e.keyCode, r.input.lastKeyCodeTime = Date.now(), !(
|
|
10890
|
+
if (r.input.shiftKey = e.keyCode == 16 || e.shiftKey, !um(r, e) && (r.input.lastKeyCode = e.keyCode, r.input.lastKeyCodeTime = Date.now(), !(cr && Jt && e.keyCode == 13)))
|
|
10892
10891
|
if (e.keyCode != 229 && r.domObserver.forceFlush(), ei && e.keyCode == 13 && !e.ctrlKey && !e.altKey && !e.metaKey) {
|
|
10893
10892
|
let o = Date.now();
|
|
10894
10893
|
r.input.lastIOSEnter = o, r.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
10895
10894
|
r.input.lastIOSEnter == o && (r.someProp("handleKeyDown", (i) => i(r, lo(13, "Enter"))), r.input.lastIOSEnter = 0);
|
|
10896
10895
|
}, 200);
|
|
10897
|
-
} else r.someProp("handleKeyDown", (o) => o(r, e)) || Ff(r, e) ? e.preventDefault() :
|
|
10896
|
+
} else r.someProp("handleKeyDown", (o) => o(r, e)) || Ff(r, e) ? e.preventDefault() : _r(r, "key");
|
|
10898
10897
|
};
|
|
10899
10898
|
oe.keyup = (r, t) => {
|
|
10900
10899
|
t.keyCode == 16 && (r.input.shiftKey = !1);
|
|
10901
10900
|
};
|
|
10902
10901
|
oe.keypress = (r, t) => {
|
|
10903
10902
|
let e = t;
|
|
10904
|
-
if (um(r, e) || !e.charCode || e.ctrlKey && !e.altKey ||
|
|
10903
|
+
if (um(r, e) || !e.charCode || e.ctrlKey && !e.altKey || Ce && e.metaKey)
|
|
10905
10904
|
return;
|
|
10906
10905
|
if (r.someProp("handleKeyPress", (i) => i(r, e))) {
|
|
10907
10906
|
e.preventDefault();
|
|
@@ -10986,14 +10985,14 @@ function nh(r, t, e) {
|
|
|
10986
10985
|
function Kl(r) {
|
|
10987
10986
|
return ia(r);
|
|
10988
10987
|
}
|
|
10989
|
-
const mm =
|
|
10988
|
+
const mm = Ce ? "metaKey" : "ctrlKey";
|
|
10990
10989
|
re.mousedown = (r, t) => {
|
|
10991
10990
|
let e = t;
|
|
10992
10991
|
r.input.shiftKey = e.shiftKey;
|
|
10993
10992
|
let o = Kl(r), i = Date.now(), n = "singleClick";
|
|
10994
10993
|
i - r.input.lastClick.time < 500 && Zf(e, r.input.lastClick) && !e[mm] && r.input.lastClick.button == e.button && (r.input.lastClick.type == "singleClick" ? n = "doubleClick" : r.input.lastClick.type == "doubleClick" && (n = "tripleClick")), r.input.lastClick = { time: i, x: e.clientX, y: e.clientY, type: n, button: e.button };
|
|
10995
10994
|
let a = r.posAtCoords(Ja(e));
|
|
10996
|
-
a && (n == "singleClick" ? (r.input.mouseDown && r.input.mouseDown.done(), r.input.mouseDown = new ah(r, a, e, !!o)) : (n == "doubleClick" ? oh : ih)(r, a.pos, a.inside, e) ? e.preventDefault() :
|
|
10995
|
+
a && (n == "singleClick" ? (r.input.mouseDown && r.input.mouseDown.done(), r.input.mouseDown = new ah(r, a, e, !!o)) : (n == "doubleClick" ? oh : ih)(r, a.pos, a.inside, e) ? e.preventDefault() : _r(r, "pointer"));
|
|
10997
10996
|
};
|
|
10998
10997
|
class ah {
|
|
10999
10998
|
constructor(t, e, o, i) {
|
|
@@ -11012,19 +11011,19 @@ class ah {
|
|
|
11012
11011
|
node: n,
|
|
11013
11012
|
pos: a,
|
|
11014
11013
|
addAttr: !!(this.target && !this.target.draggable),
|
|
11015
|
-
setUneditable: !!(this.target &&
|
|
11014
|
+
setUneditable: !!(this.target && $e && !this.target.hasAttribute("contentEditable"))
|
|
11016
11015
|
}), this.target && this.mightDrag && (this.mightDrag.addAttr || this.mightDrag.setUneditable) && (this.view.domObserver.stop(), this.mightDrag.addAttr && (this.target.draggable = !0), this.mightDrag.setUneditable && setTimeout(() => {
|
|
11017
11016
|
this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
|
|
11018
|
-
}, 20), this.view.domObserver.start()), t.root.addEventListener("mouseup", this.up = this.up.bind(this)), t.root.addEventListener("mousemove", this.move = this.move.bind(this)),
|
|
11017
|
+
}, 20), this.view.domObserver.start()), t.root.addEventListener("mouseup", this.up = this.up.bind(this)), t.root.addEventListener("mousemove", this.move = this.move.bind(this)), _r(t, "pointer");
|
|
11019
11018
|
}
|
|
11020
11019
|
done() {
|
|
11021
|
-
this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() =>
|
|
11020
|
+
this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => ur(this.view)), this.view.input.mouseDown = null;
|
|
11022
11021
|
}
|
|
11023
11022
|
up(t) {
|
|
11024
11023
|
if (this.done(), !this.view.dom.contains(t.target))
|
|
11025
11024
|
return;
|
|
11026
11025
|
let e = this.pos;
|
|
11027
|
-
this.view.state.doc != this.startDoc && (e = this.view.posAtCoords(Ja(t))), this.updateAllowDefault(t), this.allowDefault || !e ?
|
|
11026
|
+
this.view.state.doc != this.startDoc && (e = this.view.posAtCoords(Ja(t))), this.updateAllowDefault(t), this.allowDefault || !e ? _r(this.view, "pointer") : rh(this.view, e.pos, e.inside, t, this.selectNode) ? t.preventDefault() : t.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
|
|
11028
11027
|
ee && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
|
|
11029
11028
|
// cursor, but still report that the node is selected
|
|
11030
11029
|
// when asked through getSelection. You'll then get a
|
|
@@ -11032,33 +11031,33 @@ class ah {
|
|
|
11032
11031
|
// (hidden) cursor is doesn't change the selection, and
|
|
11033
11032
|
// thus doesn't get a reaction from ProseMirror. This
|
|
11034
11033
|
// works around that.
|
|
11035
|
-
Jt && !this.view.state.selection.visible && Math.min(Math.abs(e.pos - this.view.state.selection.from), Math.abs(e.pos - this.view.state.selection.to)) <= 2) ? (Qo(this.view, Z.near(this.view.state.doc.resolve(e.pos))), t.preventDefault()) :
|
|
11034
|
+
Jt && !this.view.state.selection.visible && Math.min(Math.abs(e.pos - this.view.state.selection.from), Math.abs(e.pos - this.view.state.selection.to)) <= 2) ? (Qo(this.view, Z.near(this.view.state.doc.resolve(e.pos))), t.preventDefault()) : _r(this.view, "pointer");
|
|
11036
11035
|
}
|
|
11037
11036
|
move(t) {
|
|
11038
|
-
this.updateAllowDefault(t),
|
|
11037
|
+
this.updateAllowDefault(t), _r(this.view, "pointer"), t.buttons == 0 && this.done();
|
|
11039
11038
|
}
|
|
11040
11039
|
updateAllowDefault(t) {
|
|
11041
11040
|
!this.allowDefault && (Math.abs(this.event.x - t.clientX) > 4 || Math.abs(this.event.y - t.clientY) > 4) && (this.allowDefault = !0);
|
|
11042
11041
|
}
|
|
11043
11042
|
}
|
|
11044
11043
|
re.touchstart = (r) => {
|
|
11045
|
-
r.input.lastTouch = Date.now(), Kl(r),
|
|
11044
|
+
r.input.lastTouch = Date.now(), Kl(r), _r(r, "pointer");
|
|
11046
11045
|
};
|
|
11047
11046
|
re.touchmove = (r) => {
|
|
11048
|
-
r.input.lastTouch = Date.now(),
|
|
11047
|
+
r.input.lastTouch = Date.now(), _r(r, "pointer");
|
|
11049
11048
|
};
|
|
11050
11049
|
re.contextmenu = (r) => Kl(r);
|
|
11051
11050
|
function um(r, t) {
|
|
11052
11051
|
return r.composing ? !0 : ee && Math.abs(t.timeStamp - r.input.compositionEndedAt) < 500 ? (r.input.compositionEndedAt = -2e8, !0) : !1;
|
|
11053
11052
|
}
|
|
11054
|
-
const sh =
|
|
11053
|
+
const sh = cr ? 5e3 : -1;
|
|
11055
11054
|
oe.compositionstart = oe.compositionupdate = (r) => {
|
|
11056
11055
|
if (!r.composing) {
|
|
11057
11056
|
r.domObserver.flush();
|
|
11058
11057
|
let { state: t } = r, e = t.selection.$to;
|
|
11059
11058
|
if (t.selection instanceof Q && (t.storedMarks || !e.textOffset && e.parentOffset && e.nodeBefore.marks.some((o) => o.type.spec.inclusive === !1)))
|
|
11060
11059
|
r.markCursor = r.state.storedMarks || e.marks(), ia(r, !0), r.markCursor = null;
|
|
11061
|
-
else if (ia(r, !t.selection.empty),
|
|
11060
|
+
else if (ia(r, !t.selection.empty), $e && t.selection.empty && e.parentOffset && !e.textOffset && e.nodeBefore.marks.length) {
|
|
11062
11061
|
let o = r.domSelectionRange();
|
|
11063
11062
|
for (let i = o.focusNode, n = o.focusOffset; i && i.nodeType == 1 && n != 0; ) {
|
|
11064
11063
|
let a = n < 0 ? i.lastChild : i.childNodes[n - 1];
|
|
@@ -11110,7 +11109,7 @@ function ph() {
|
|
|
11110
11109
|
return r.initEvent("event", !0, !0), r.timeStamp;
|
|
11111
11110
|
}
|
|
11112
11111
|
function ia(r, t = !1) {
|
|
11113
|
-
if (!(
|
|
11112
|
+
if (!(cr && r.domObserver.flushingSoon >= 0)) {
|
|
11114
11113
|
if (r.domObserver.forceFlush(), gm(r), t || r.docView && r.docView.dirty) {
|
|
11115
11114
|
let e = jl(r), o = r.state.selection;
|
|
11116
11115
|
return e && !e.eq(o) ? r.dispatch(r.state.tr.setSelection(e)) : (r.markCursor || t) && !o.$from.node(o.$from.sharedDepth(o.to)).inlineContent ? r.dispatch(r.state.tr.deleteSelection()) : r.updateState(r.state), !0;
|
|
@@ -11167,7 +11166,7 @@ function fm(r) {
|
|
|
11167
11166
|
}
|
|
11168
11167
|
oe.paste = (r, t) => {
|
|
11169
11168
|
let e = t;
|
|
11170
|
-
if (r.composing && !
|
|
11169
|
+
if (r.composing && !cr)
|
|
11171
11170
|
return;
|
|
11172
11171
|
let o = Ui ? null : e.clipboardData, i = r.input.shiftKey && r.input.lastKeyCode != 45;
|
|
11173
11172
|
o && Ki(r, fm(o), o.getData("text/html"), i, e) ? e.preventDefault() : bh(r, e);
|
|
@@ -11177,7 +11176,7 @@ class hm {
|
|
|
11177
11176
|
this.slice = t, this.move = e, this.node = o;
|
|
11178
11177
|
}
|
|
11179
11178
|
}
|
|
11180
|
-
const mh =
|
|
11179
|
+
const mh = Ce ? "altKey" : "ctrlKey";
|
|
11181
11180
|
function ym(r, t) {
|
|
11182
11181
|
let e = r.someProp("dragCopies", (o) => !o(t));
|
|
11183
11182
|
return e ?? !t[mh];
|
|
@@ -11245,7 +11244,7 @@ oe.drop = (r, t) => {
|
|
|
11245
11244
|
};
|
|
11246
11245
|
re.focus = (r) => {
|
|
11247
11246
|
r.input.lastFocus = Date.now(), r.focused || (r.domObserver.stop(), r.dom.classList.add("ProseMirror-focused"), r.domObserver.start(), r.focused = !0, setTimeout(() => {
|
|
11248
|
-
r.docView && r.hasFocus() && !r.domObserver.currentSelection.eq(r.domSelectionRange()) &&
|
|
11247
|
+
r.docView && r.hasFocus() && !r.domObserver.currentSelection.eq(r.domSelectionRange()) && ur(r);
|
|
11249
11248
|
}, 20));
|
|
11250
11249
|
};
|
|
11251
11250
|
re.blur = (r, t) => {
|
|
@@ -11253,7 +11252,7 @@ re.blur = (r, t) => {
|
|
|
11253
11252
|
r.focused && (r.domObserver.stop(), r.dom.classList.remove("ProseMirror-focused"), r.domObserver.start(), e.relatedTarget && r.dom.contains(e.relatedTarget) && r.domObserver.currentSelection.clear(), r.focused = !1);
|
|
11254
11253
|
};
|
|
11255
11254
|
re.beforeinput = (r, t) => {
|
|
11256
|
-
if (Jt &&
|
|
11255
|
+
if (Jt && cr && t.inputType == "deleteContentBackward") {
|
|
11257
11256
|
r.domObserver.flushSoon();
|
|
11258
11257
|
let { domChangeCount: o } = r.input;
|
|
11259
11258
|
setTimeout(() => {
|
|
@@ -11283,7 +11282,7 @@ class na {
|
|
|
11283
11282
|
}
|
|
11284
11283
|
map(t, e, o, i) {
|
|
11285
11284
|
let { pos: n, deleted: a } = t.mapResult(e.from + i, this.side < 0 ? -1 : 1);
|
|
11286
|
-
return a ? null : new
|
|
11285
|
+
return a ? null : new Ee(n - o, n - o, this);
|
|
11287
11286
|
}
|
|
11288
11287
|
valid() {
|
|
11289
11288
|
return !0;
|
|
@@ -11301,7 +11300,7 @@ class Vr {
|
|
|
11301
11300
|
}
|
|
11302
11301
|
map(t, e, o, i) {
|
|
11303
11302
|
let n = t.map(e.from + i, this.spec.inclusiveStart ? -1 : 1) - o, a = t.map(e.to + i, this.spec.inclusiveEnd ? 1 : -1) - o;
|
|
11304
|
-
return n >= a ? null : new
|
|
11303
|
+
return n >= a ? null : new Ee(n, a, this);
|
|
11305
11304
|
}
|
|
11306
11305
|
valid(t, e) {
|
|
11307
11306
|
return e.from < e.to;
|
|
@@ -11324,7 +11323,7 @@ class Gl {
|
|
|
11324
11323
|
if (n.deleted)
|
|
11325
11324
|
return null;
|
|
11326
11325
|
let a = t.mapResult(e.to + i, -1);
|
|
11327
|
-
return a.deleted || a.pos <= n.pos ? null : new
|
|
11326
|
+
return a.deleted || a.pos <= n.pos ? null : new Ee(n.pos - o, a.pos - o, this);
|
|
11328
11327
|
}
|
|
11329
11328
|
valid(t, e) {
|
|
11330
11329
|
let { index: o, offset: i } = t.content.findIndex(e.from), n;
|
|
@@ -11336,7 +11335,7 @@ class Gl {
|
|
|
11336
11335
|
destroy() {
|
|
11337
11336
|
}
|
|
11338
11337
|
}
|
|
11339
|
-
class
|
|
11338
|
+
class Ee {
|
|
11340
11339
|
/**
|
|
11341
11340
|
@internal
|
|
11342
11341
|
*/
|
|
@@ -11347,7 +11346,7 @@ class Me {
|
|
|
11347
11346
|
@internal
|
|
11348
11347
|
*/
|
|
11349
11348
|
copy(t, e) {
|
|
11350
|
-
return new
|
|
11349
|
+
return new Ee(t, e, this.type);
|
|
11351
11350
|
}
|
|
11352
11351
|
/**
|
|
11353
11352
|
@internal
|
|
@@ -11370,14 +11369,14 @@ class Me {
|
|
|
11370
11369
|
widget's current document position.
|
|
11371
11370
|
*/
|
|
11372
11371
|
static widget(t, e, o) {
|
|
11373
|
-
return new
|
|
11372
|
+
return new Ee(t, t, new na(e, o));
|
|
11374
11373
|
}
|
|
11375
11374
|
/**
|
|
11376
11375
|
Creates an inline decoration, which adds the given attributes to
|
|
11377
11376
|
each inline node between `from` and `to`.
|
|
11378
11377
|
*/
|
|
11379
11378
|
static inline(t, e, o, i) {
|
|
11380
|
-
return new
|
|
11379
|
+
return new Ee(t, e, new Vr(o, i));
|
|
11381
11380
|
}
|
|
11382
11381
|
/**
|
|
11383
11382
|
Creates a node decoration. `from` and `to` should point precisely
|
|
@@ -11385,7 +11384,7 @@ class Me {
|
|
|
11385
11384
|
node, will receive the given attributes.
|
|
11386
11385
|
*/
|
|
11387
11386
|
static node(t, e, o, i) {
|
|
11388
|
-
return new
|
|
11387
|
+
return new Ee(t, e, new Gl(o, i));
|
|
11389
11388
|
}
|
|
11390
11389
|
/**
|
|
11391
11390
|
The spec provided when creating this decoration. Can be useful
|
|
@@ -11536,7 +11535,7 @@ class Tt {
|
|
|
11536
11535
|
}
|
|
11537
11536
|
if (i) {
|
|
11538
11537
|
let s = new Tt(i.sort(ho), Vo);
|
|
11539
|
-
return o ? new
|
|
11538
|
+
return o ? new Pr([s, o]) : s;
|
|
11540
11539
|
}
|
|
11541
11540
|
return o || Ut;
|
|
11542
11541
|
}
|
|
@@ -11582,13 +11581,13 @@ class Tt {
|
|
|
11582
11581
|
Tt.empty = new Tt([], []);
|
|
11583
11582
|
Tt.removeOverlap = Jl;
|
|
11584
11583
|
const Ut = Tt.empty;
|
|
11585
|
-
class
|
|
11584
|
+
class Pr {
|
|
11586
11585
|
constructor(t) {
|
|
11587
11586
|
this.members = t;
|
|
11588
11587
|
}
|
|
11589
11588
|
map(t, e) {
|
|
11590
11589
|
const o = this.members.map((i) => i.map(t, e, fo));
|
|
11591
|
-
return
|
|
11590
|
+
return Pr.from(o);
|
|
11592
11591
|
}
|
|
11593
11592
|
forChild(t, e) {
|
|
11594
11593
|
if (e.isLeaf)
|
|
@@ -11596,12 +11595,12 @@ class Br {
|
|
|
11596
11595
|
let o = [];
|
|
11597
11596
|
for (let i = 0; i < this.members.length; i++) {
|
|
11598
11597
|
let n = this.members[i].forChild(t, e);
|
|
11599
|
-
n != Ut && (n instanceof
|
|
11598
|
+
n != Ut && (n instanceof Pr ? o = o.concat(n.members) : o.push(n));
|
|
11600
11599
|
}
|
|
11601
|
-
return
|
|
11600
|
+
return Pr.from(o);
|
|
11602
11601
|
}
|
|
11603
11602
|
eq(t) {
|
|
11604
|
-
if (!(t instanceof
|
|
11603
|
+
if (!(t instanceof Pr) || t.members.length != this.members.length)
|
|
11605
11604
|
return !1;
|
|
11606
11605
|
for (let e = 0; e < this.members.length; e++)
|
|
11607
11606
|
if (!this.members[e].eq(t.members[e]))
|
|
@@ -11632,7 +11631,7 @@ class Br {
|
|
|
11632
11631
|
case 1:
|
|
11633
11632
|
return t[0];
|
|
11634
11633
|
default:
|
|
11635
|
-
return new
|
|
11634
|
+
return new Pr(t.every((e) => e instanceof Tt) ? t : t.reduce((e, o) => e.concat(o instanceof Tt ? o : o.members), []));
|
|
11636
11635
|
}
|
|
11637
11636
|
}
|
|
11638
11637
|
forEachSet(t) {
|
|
@@ -11695,7 +11694,7 @@ function wm(r, t) {
|
|
|
11695
11694
|
let e = [];
|
|
11696
11695
|
for (let o = 0; o < r.length; o++) {
|
|
11697
11696
|
let i = r[o];
|
|
11698
|
-
e.push(new
|
|
11697
|
+
e.push(new Ee(i.from + t, i.to + t, i.type));
|
|
11699
11698
|
}
|
|
11700
11699
|
return e;
|
|
11701
11700
|
}
|
|
@@ -11772,7 +11771,7 @@ function Cs(r) {
|
|
|
11772
11771
|
return r.someProp("decorations", (e) => {
|
|
11773
11772
|
let o = e(r.state);
|
|
11774
11773
|
o && o != Ut && t.push(o);
|
|
11775
|
-
}), r.cursorWrapper && t.push(Tt.create(r.state.doc, [r.cursorWrapper.deco])),
|
|
11774
|
+
}), r.cursorWrapper && t.push(Tt.create(r.state.doc, [r.cursorWrapper.deco])), Pr.from(t);
|
|
11776
11775
|
}
|
|
11777
11776
|
const gh = {
|
|
11778
11777
|
childList: !0,
|
|
@@ -11841,7 +11840,7 @@ class yh {
|
|
|
11841
11840
|
onSelectionChange() {
|
|
11842
11841
|
if (kd(this.view)) {
|
|
11843
11842
|
if (this.suppressingSelectionUpdates)
|
|
11844
|
-
return
|
|
11843
|
+
return ur(this.view);
|
|
11845
11844
|
if (le && Hr <= 11 && !this.view.state.selection.empty) {
|
|
11846
11845
|
let t = this.view.domSelectionRange();
|
|
11847
11846
|
if (t.focusNode && Mo(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset))
|
|
@@ -11889,7 +11888,7 @@ class yh {
|
|
|
11889
11888
|
let c = this.registerMutation(e[d], l);
|
|
11890
11889
|
c && (n = n < 0 ? c.from : Math.min(c.from, n), a = a < 0 ? c.to : Math.max(c.to, a), c.typeOver && (s = !0));
|
|
11891
11890
|
}
|
|
11892
|
-
if (
|
|
11891
|
+
if ($e && l.length) {
|
|
11893
11892
|
let d = l.filter((c) => c.nodeName == "BR");
|
|
11894
11893
|
if (d.length == 2) {
|
|
11895
11894
|
let [c, m] = d;
|
|
@@ -11903,7 +11902,7 @@ class yh {
|
|
|
11903
11902
|
}
|
|
11904
11903
|
}
|
|
11905
11904
|
let p = null;
|
|
11906
|
-
n < 0 && i && t.input.lastFocus > Date.now() - 200 && Math.max(t.input.lastTouch, t.input.lastClick.time) < Date.now() - 300 && Ka(o) && (p = jl(t)) && p.eq(Z.near(t.state.doc.resolve(0), 1)) ? (t.input.lastFocus = 0,
|
|
11905
|
+
n < 0 && i && t.input.lastFocus > Date.now() - 200 && Math.max(t.input.lastTouch, t.input.lastClick.time) < Date.now() - 300 && Ka(o) && (p = jl(t)) && p.eq(Z.near(t.state.doc.resolve(0), 1)) ? (t.input.lastFocus = 0, ur(t), this.currentSelection.set(o), t.scrollToSelection()) : (n > -1 || i) && (n > -1 && (t.docView.markDirty(n, a), wh(t)), this.handleDOMChange(n, a, s, l), t.docView && t.docView.dirty ? t.updateState(t.state) : this.currentSelection.eq(o) || ur(t), this.currentSelection.set(o));
|
|
11907
11906
|
}
|
|
11908
11907
|
registerMutation(t, e) {
|
|
11909
11908
|
if (e.indexOf(t.target) > -1)
|
|
@@ -11941,7 +11940,7 @@ class yh {
|
|
|
11941
11940
|
let Ad = /* @__PURE__ */ new WeakMap(), Dd = !1;
|
|
11942
11941
|
function wh(r) {
|
|
11943
11942
|
if (!Ad.has(r) && (Ad.set(r, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(r.dom).whiteSpace) !== -1)) {
|
|
11944
|
-
if (r.requiresGeckoHackNode =
|
|
11943
|
+
if (r.requiresGeckoHackNode = $e, Dd)
|
|
11945
11944
|
return;
|
|
11946
11945
|
console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."), Dd = !0;
|
|
11947
11946
|
}
|
|
@@ -12019,7 +12018,7 @@ function Eh(r, t, e, o, i) {
|
|
|
12019
12018
|
if (r.input.compositionPendingChanges = 0, t < 0) {
|
|
12020
12019
|
let R = r.input.lastSelectionTime > Date.now() - 50 ? r.input.lastSelectionOrigin : null, H = jl(r, R);
|
|
12021
12020
|
if (H && !r.state.selection.eq(H)) {
|
|
12022
|
-
if (Jt &&
|
|
12021
|
+
if (Jt && cr && r.input.lastKeyCode === 13 && Date.now() - 100 < r.input.lastKeyCodeTime && r.someProp("handleKeyDown", (E) => E(r, lo(13, "Enter"))))
|
|
12023
12022
|
return;
|
|
12024
12023
|
let P = r.state.tr.setSelection(H);
|
|
12025
12024
|
R == "pointer" ? P.setMeta("pointer", !0) : R == "key" && P.scrollIntoView(), n && P.setMeta("composition", n), r.dispatch(P);
|
|
@@ -12031,7 +12030,7 @@ function Eh(r, t, e, o, i) {
|
|
|
12031
12030
|
let l = r.state.selection, p = Sh(r, t, e), d = r.state.doc, c = d.slice(p.from, p.to), m, u;
|
|
12032
12031
|
r.input.lastKeyCode === 8 && Date.now() - 100 < r.input.lastKeyCodeTime ? (m = r.state.selection.to, u = "end") : (m = r.state.selection.from, u = "start"), r.input.lastKeyCode = null;
|
|
12033
12032
|
let x = Bh(c.content, p.doc.content, p.from, m, u);
|
|
12034
|
-
if (x && r.input.domChangeCount++, (ei && r.input.lastIOSEnter > Date.now() - 225 ||
|
|
12033
|
+
if (x && r.input.domChangeCount++, (ei && r.input.lastIOSEnter > Date.now() - 225 || cr) && i.some((R) => R.nodeType == 1 && !Mh.test(R.nodeName)) && (!x || x.endA >= x.endB) && r.someProp("handleKeyDown", (R) => R(r, lo(13, "Enter")))) {
|
|
12035
12034
|
r.input.lastIOSEnter = 0;
|
|
12036
12035
|
return;
|
|
12037
12036
|
}
|
|
@@ -12055,10 +12054,10 @@ function Eh(r, t, e, o, i) {
|
|
|
12055
12054
|
return;
|
|
12056
12055
|
}
|
|
12057
12056
|
if (r.state.selection.anchor > x.start && Oh(d, x.start, x.endA, g, f) && r.someProp("handleKeyDown", (R) => R(r, lo(8, "Backspace")))) {
|
|
12058
|
-
|
|
12057
|
+
cr && Jt && r.domObserver.suppressSelectionUpdates();
|
|
12059
12058
|
return;
|
|
12060
12059
|
}
|
|
12061
|
-
Jt && x.endB == x.start && (r.input.lastChromeDelete = Date.now()),
|
|
12060
|
+
Jt && x.endB == x.start && (r.input.lastChromeDelete = Date.now()), cr && !w && g.start() != f.start() && f.parentOffset == 0 && g.depth == f.depth && p.sel && p.sel.anchor == p.sel.head && p.sel.head == x.endA && (x.endB -= 2, f = p.doc.resolveNoCache(x.endB - p.from), setTimeout(() => {
|
|
12062
12061
|
r.someProp("handleKeyDown", function(R) {
|
|
12063
12062
|
return R(r, lo(13, "Enter"));
|
|
12064
12063
|
});
|
|
@@ -12073,7 +12072,7 @@ function Eh(r, t, e, o, i) {
|
|
|
12073
12072
|
}, A;
|
|
12074
12073
|
if (w) {
|
|
12075
12074
|
if (g.pos == f.pos) {
|
|
12076
|
-
le && Hr <= 11 && g.parentOffset == 0 && (r.domObserver.suppressSelectionUpdates(), setTimeout(() =>
|
|
12075
|
+
le && Hr <= 11 && g.parentOffset == 0 && (r.domObserver.suppressSelectionUpdates(), setTimeout(() => ur(r), 20));
|
|
12077
12076
|
let R = M(r.state.tr.delete(h, B)), H = d.resolve(x.start).marksAcross(d.resolve(x.endA));
|
|
12078
12077
|
H && R.ensureMarks(H), r.dispatch(R);
|
|
12079
12078
|
} else if (
|
|
@@ -12244,7 +12243,7 @@ class Sm {
|
|
|
12244
12243
|
let x = Jt ? this.trackWrites = this.domSelectionRange().focusNode : null;
|
|
12245
12244
|
this.composing && (this.input.compositionNode = lh(this)), (n || !this.docView.update(t.doc, p, l, this)) && (this.docView.updateOuterDeco(p), this.docView.destroy(), this.docView = gd(t.doc, p, l, this.dom, this)), x && !this.trackWrites && (u = !0);
|
|
12246
12245
|
}
|
|
12247
|
-
u || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && Nf(this)) ?
|
|
12246
|
+
u || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && Nf(this)) ? ur(this, u) : (im(this, t.selection), this.domObserver.setCurSelection()), this.domObserver.start();
|
|
12248
12247
|
}
|
|
12249
12248
|
this.updatePluginViews(i), !((o = this.dragging) === null || o === void 0) && o.node && !i.doc.eq(t.doc) && this.updateDraggedNode(this.dragging, i), d == "reset" ? this.dom.scrollTop = 0 : d == "to selection" ? this.scrollToSelection() : m && df(m);
|
|
12250
12249
|
}
|
|
@@ -12333,7 +12332,7 @@ class Sm {
|
|
|
12333
12332
|
Focus the editor.
|
|
12334
12333
|
*/
|
|
12335
12334
|
focus() {
|
|
12336
|
-
this.domObserver.stop(), this.editable && cf(this.dom),
|
|
12335
|
+
this.domObserver.stop(), this.editable && cf(this.dom), ur(this), this.domObserver.start();
|
|
12337
12336
|
}
|
|
12338
12337
|
/**
|
|
12339
12338
|
Get the document root in which the editor exists. This will
|
|
@@ -12504,12 +12503,12 @@ function Rd(r) {
|
|
|
12504
12503
|
if (typeof e == "function" && (e = e(r.state)), e)
|
|
12505
12504
|
for (let o in e)
|
|
12506
12505
|
o == "class" ? t.class += " " + e[o] : o == "style" ? t.style = (t.style ? t.style + ";" : "") + e[o] : !t[o] && o != "contenteditable" && o != "nodeName" && (t[o] = String(e[o]));
|
|
12507
|
-
}), t.translate || (t.translate = "no"), [
|
|
12506
|
+
}), t.translate || (t.translate = "no"), [Ee.node(0, r.state.doc.content.size, t)];
|
|
12508
12507
|
}
|
|
12509
12508
|
function $d(r) {
|
|
12510
12509
|
if (r.markCursor) {
|
|
12511
12510
|
let t = document.createElement("img");
|
|
12512
|
-
t.className = "ProseMirror-separator", t.setAttribute("mark-placeholder", "true"), t.setAttribute("alt", ""), r.cursorWrapper = { dom: t, deco:
|
|
12511
|
+
t.className = "ProseMirror-separator", t.setAttribute("mark-placeholder", "true"), t.setAttribute("alt", ""), r.cursorWrapper = { dom: t, deco: Ee.widget(r.state.selection.from, t, { raw: !0, marks: r.markCursor }) };
|
|
12513
12512
|
} else
|
|
12514
12513
|
r.cursorWrapper = null;
|
|
12515
12514
|
}
|
|
@@ -12890,7 +12889,7 @@ const qh = (r, t) => {
|
|
|
12890
12889
|
return !0;
|
|
12891
12890
|
}, Nm = (r, t) => {
|
|
12892
12891
|
let e = r.selection, { $from: o, $to: i } = e;
|
|
12893
|
-
if (e instanceof
|
|
12892
|
+
if (e instanceof xe || o.parent.inlineContent || i.parent.inlineContent)
|
|
12894
12893
|
return !1;
|
|
12895
12894
|
let n = Zl(i.parent.contentMatchAt(i.indexAfter()));
|
|
12896
12895
|
if (!n || !n.isTextblock)
|
|
@@ -12906,7 +12905,7 @@ const qh = (r, t) => {
|
|
|
12906
12905
|
return !1;
|
|
12907
12906
|
if (e.depth > 1 && e.after() != e.end(-1)) {
|
|
12908
12907
|
let n = e.before();
|
|
12909
|
-
if (
|
|
12908
|
+
if (mr(r.doc, n))
|
|
12910
12909
|
return t && t(r.tr.split(n).scrollIntoView()), !0;
|
|
12911
12910
|
}
|
|
12912
12911
|
let o = e.blockRange(), i = o && pi(o);
|
|
@@ -12916,7 +12915,7 @@ function Uh(r) {
|
|
|
12916
12915
|
return (t, e) => {
|
|
12917
12916
|
let { $from: o, $to: i } = t.selection;
|
|
12918
12917
|
if (t.selection instanceof J && t.selection.node.isBlock)
|
|
12919
|
-
return !o.parentOffset || !
|
|
12918
|
+
return !o.parentOffset || !mr(t.doc, o.pos) ? !1 : (e && e(t.tr.split(o.pos).scrollIntoView()), !0);
|
|
12920
12919
|
if (!o.depth)
|
|
12921
12920
|
return !1;
|
|
12922
12921
|
let n = [], a, s, l = !1, p = !1;
|
|
@@ -12930,9 +12929,9 @@ function Uh(r) {
|
|
|
12930
12929
|
n.unshift(null);
|
|
12931
12930
|
}
|
|
12932
12931
|
let d = t.tr;
|
|
12933
|
-
(t.selection instanceof Q || t.selection instanceof
|
|
12934
|
-
let c = d.mapping.map(o.pos), m =
|
|
12935
|
-
if (m || (n[0] = s ? { type: s } : null, m =
|
|
12932
|
+
(t.selection instanceof Q || t.selection instanceof xe) && d.deleteSelection();
|
|
12933
|
+
let c = d.mapping.map(o.pos), m = mr(d.doc, c, n.length, n);
|
|
12934
|
+
if (m || (n[0] = s ? { type: s } : null, m = mr(d.doc, c, n.length, n)), !m)
|
|
12936
12935
|
return !1;
|
|
12937
12936
|
if (d.split(c, n.length, n), !l && p && o.node(a).type != s) {
|
|
12938
12937
|
let u = d.mapping.map(o.before(a)), x = d.doc.resolve(u);
|
|
@@ -13078,7 +13077,7 @@ function e0(r, t, e, o, i) {
|
|
|
13078
13077
|
e[d].type == i && (a = d + 1);
|
|
13079
13078
|
let s = e.length - a, l = t.start + e.length - (o ? 2 : 0), p = t.parent;
|
|
13080
13079
|
for (let d = t.startIndex, c = t.endIndex, m = !0; d < c; d++, m = !1)
|
|
13081
|
-
!m &&
|
|
13080
|
+
!m && mr(r.doc, l, s) && (r.split(l, s), l += 2 * s), l += p.child(d).nodeSize;
|
|
13082
13081
|
return r;
|
|
13083
13082
|
}
|
|
13084
13083
|
function r0(r) {
|
|
@@ -13627,7 +13626,7 @@ function ts(r, t) {
|
|
|
13627
13626
|
En(t[o]) && En(r[o]) ? e[o] = ts(r[o], t[o]) : e[o] = t[o];
|
|
13628
13627
|
}), e;
|
|
13629
13628
|
}
|
|
13630
|
-
class
|
|
13629
|
+
class gr {
|
|
13631
13630
|
constructor(t = {}) {
|
|
13632
13631
|
this.type = "mark", this.name = "mark", this.parent = null, this.child = null, this.config = {
|
|
13633
13632
|
name: this.name,
|
|
@@ -13643,7 +13642,7 @@ class xr {
|
|
|
13643
13642
|
})) || {};
|
|
13644
13643
|
}
|
|
13645
13644
|
static create(t = {}) {
|
|
13646
|
-
return new
|
|
13645
|
+
return new gr(t);
|
|
13647
13646
|
}
|
|
13648
13647
|
configure(t = {}) {
|
|
13649
13648
|
const e = this.extend({
|
|
@@ -13653,7 +13652,7 @@ class xr {
|
|
|
13653
13652
|
return e.name = this.name, e.parent = this.parent, e;
|
|
13654
13653
|
}
|
|
13655
13654
|
extend(t = {}) {
|
|
13656
|
-
const e = new
|
|
13655
|
+
const e = new gr(t);
|
|
13657
13656
|
return e.parent = this, this.child = e, e.name = t.name ? t.name : e.parent.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`), e.options = rt(q(e, "addOptions", {
|
|
13658
13657
|
name: e.name
|
|
13659
13658
|
})), e.storage = rt(q(e, "addStorage", {
|
|
@@ -13896,7 +13895,7 @@ class Go {
|
|
|
13896
13895
|
type: Os(a.name, this.schema)
|
|
13897
13896
|
}, l = [], p = q(a, "addKeyboardShortcuts", s);
|
|
13898
13897
|
let d = {};
|
|
13899
|
-
if (a.type === "mark" && q(a, "exitable", s) && (d.ArrowRight = () =>
|
|
13898
|
+
if (a.type === "mark" && q(a, "exitable", s) && (d.ArrowRight = () => gr.handleExit({ editor: t, mark: a })), p) {
|
|
13900
13899
|
const g = Object.fromEntries(Object.entries(p()).map(([f, y]) => [f, () => y({ editor: t })]));
|
|
13901
13900
|
d = { ...d, ...g };
|
|
13902
13901
|
}
|
|
@@ -14181,7 +14180,7 @@ const I0 = (r, t = {}) => ({ tr: e, state: o, dispatch: i }) => {
|
|
|
14181
14180
|
function np(r) {
|
|
14182
14181
|
return r instanceof Q;
|
|
14183
14182
|
}
|
|
14184
|
-
function
|
|
14183
|
+
function br(r = 0, t = 0, e = 0) {
|
|
14185
14184
|
return Math.min(Math.max(r, t), e);
|
|
14186
14185
|
}
|
|
14187
14186
|
function Hm(r, t = null) {
|
|
@@ -14193,7 +14192,7 @@ function Hm(r, t = null) {
|
|
|
14193
14192
|
if (t === "end")
|
|
14194
14193
|
return o;
|
|
14195
14194
|
const i = e.from, n = o.to;
|
|
14196
|
-
return t === "all" ? Q.create(r,
|
|
14195
|
+
return t === "all" ? Q.create(r, br(0, i, n), br(r.content.size, i, n)) : Q.create(r, br(t, i, n), br(t, i, n));
|
|
14197
14196
|
}
|
|
14198
14197
|
function R0() {
|
|
14199
14198
|
return navigator.platform === "Android" || /android/i.test(navigator.userAgent);
|
|
@@ -14459,7 +14458,7 @@ const o1 = (r, t) => ({ tr: e, state: o, dispatch: i }) => {
|
|
|
14459
14458
|
}), !0) : !1;
|
|
14460
14459
|
}, i1 = () => ({ tr: r, dispatch: t }) => (t && r.scrollIntoView(), !0), n1 = () => ({ tr: r, dispatch: t }) => {
|
|
14461
14460
|
if (t) {
|
|
14462
|
-
const e = new
|
|
14461
|
+
const e = new xe(r.doc);
|
|
14463
14462
|
r.setSelection(e);
|
|
14464
14463
|
}
|
|
14465
14464
|
return !0;
|
|
@@ -14680,7 +14679,7 @@ function Km(r) {
|
|
|
14680
14679
|
return r instanceof J;
|
|
14681
14680
|
}
|
|
14682
14681
|
function Gm(r, t, e) {
|
|
14683
|
-
const i = r.state.doc.content.size, n =
|
|
14682
|
+
const i = r.state.doc.content.size, n = br(t, 0, i), a = br(e, 0, i), s = r.coordsAtPos(n), l = r.coordsAtPos(a, -1), p = Math.min(s.top, l.top), d = Math.max(s.bottom, l.bottom), c = Math.min(s.left, l.left), m = Math.max(s.right, l.right), u = m - c, x = d - p, y = {
|
|
14684
14683
|
top: p,
|
|
14685
14684
|
bottom: d,
|
|
14686
14685
|
left: c,
|
|
@@ -14746,13 +14745,13 @@ const k1 = (r, t = {}) => ({ tr: e, state: o, dispatch: i }) => {
|
|
|
14746
14745
|
return e.selection.$anchor.sameParent(e.selection.$head) && (a = e.selection.$anchor.parent.attrs), n.isTextblock ? i().command(({ commands: s }) => Hd(n, { ...a, ...t })(e) ? !0 : s.clearNodes()).command(({ state: s }) => Hd(n, { ...a, ...t })(s, o)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
14747
14746
|
}, M1 = (r) => ({ tr: t, dispatch: e }) => {
|
|
14748
14747
|
if (e) {
|
|
14749
|
-
const { doc: o } = t, i =
|
|
14748
|
+
const { doc: o } = t, i = br(r, 0, o.content.size), n = J.create(o, i);
|
|
14750
14749
|
t.setSelection(n);
|
|
14751
14750
|
}
|
|
14752
14751
|
return !0;
|
|
14753
14752
|
}, E1 = (r) => ({ tr: t, dispatch: e }) => {
|
|
14754
14753
|
if (e) {
|
|
14755
|
-
const { doc: o } = t, { from: i, to: n } = typeof r == "number" ? { from: r, to: r } : r, a = Q.atStart(o).from, s = Q.atEnd(o).to, l =
|
|
14754
|
+
const { doc: o } = t, { from: i, to: n } = typeof r == "number" ? { from: r, to: r } : r, a = Q.atStart(o).from, s = Q.atEnd(o).to, l = br(i, a, s), p = br(n, a, s), d = Q.create(o, l, p);
|
|
14756
14755
|
t.setSelection(d);
|
|
14757
14756
|
}
|
|
14758
14757
|
return !0;
|
|
@@ -14770,7 +14769,7 @@ function Gd(r, t) {
|
|
|
14770
14769
|
const O1 = ({ keepMarks: r = !0 } = {}) => ({ tr: t, state: e, dispatch: o, editor: i }) => {
|
|
14771
14770
|
const { selection: n, doc: a } = t, { $from: s, $to: l } = n, p = i.extensionManager.attributes, d = Wn(p, s.node().type.name, s.node().attrs);
|
|
14772
14771
|
if (n instanceof J && n.node.isBlock)
|
|
14773
|
-
return !s.parentOffset || !
|
|
14772
|
+
return !s.parentOffset || !mr(a, s.pos) ? !1 : (o && (r && Gd(e, i.extensionManager.splittableMarks), t.split(s.pos).scrollIntoView()), !0);
|
|
14774
14773
|
if (!s.parent.isBlock)
|
|
14775
14774
|
return !1;
|
|
14776
14775
|
const c = l.parentOffset === l.parent.content.size, m = s.depth === 0 ? void 0 : m1(s.node(-1).contentMatchAt(s.indexAfter(-1)));
|
|
@@ -14779,8 +14778,8 @@ const O1 = ({ keepMarks: r = !0 } = {}) => ({ tr: t, state: e, dispatch: o, edit
|
|
|
14779
14778
|
type: m,
|
|
14780
14779
|
attrs: d
|
|
14781
14780
|
}
|
|
14782
|
-
] : void 0, x =
|
|
14783
|
-
if (!u && !x &&
|
|
14781
|
+
] : void 0, x = mr(t.doc, t.mapping.map(s.pos), 1, u);
|
|
14782
|
+
if (!u && !x && mr(t.doc, t.mapping.map(s.pos), 1, m ? [{ type: m }] : void 0) && (x = !0, u = m ? [
|
|
14784
14783
|
{
|
|
14785
14784
|
type: m,
|
|
14786
14785
|
attrs: d
|
|
@@ -14838,7 +14837,7 @@ const O1 = ({ keepMarks: r = !0 } = {}) => ({ tr: t, state: e, dispatch: o, edit
|
|
|
14838
14837
|
{ type: s, attrs: x },
|
|
14839
14838
|
{ type: u, attrs: g }
|
|
14840
14839
|
] : [{ type: s, attrs: x }];
|
|
14841
|
-
if (!
|
|
14840
|
+
if (!mr(e.doc, l.pos, 2))
|
|
14842
14841
|
return !1;
|
|
14843
14842
|
if (i) {
|
|
14844
14843
|
const { selection: y, storedMarks: w } = o, { splittableMarks: k } = n.extensionManager, h = w || y.$to.parentOffset && y.$from.marks();
|
|
@@ -15826,7 +15825,7 @@ function Xi(r) {
|
|
|
15826
15825
|
}
|
|
15827
15826
|
});
|
|
15828
15827
|
}
|
|
15829
|
-
let
|
|
15828
|
+
let _e = class hl {
|
|
15830
15829
|
constructor(t = {}) {
|
|
15831
15830
|
this.type = "node", this.name = "node", this.parent = null, this.child = null, this.config = {
|
|
15832
15831
|
name: this.name,
|
|
@@ -15879,15 +15878,15 @@ function To(r) {
|
|
|
15879
15878
|
}
|
|
15880
15879
|
});
|
|
15881
15880
|
}
|
|
15882
|
-
var pe = "top",
|
|
15881
|
+
var pe = "top", Be = "bottom", Pe = "right", de = "left", dp = "auto", cn = [pe, Be, Pe, de], ii = "start", Qi = "end", Z1 = "clippingParents", Jm = "viewport", xi = "popper", ty = "reference", Jd = /* @__PURE__ */ cn.reduce(function(r, t) {
|
|
15883
15882
|
return r.concat([t + "-" + ii, t + "-" + Qi]);
|
|
15884
15883
|
}, []), Ym = /* @__PURE__ */ [].concat(cn, [dp]).reduce(function(r, t) {
|
|
15885
15884
|
return r.concat([t, t + "-" + ii, t + "-" + Qi]);
|
|
15886
15885
|
}, []), ey = "beforeRead", ry = "read", oy = "afterRead", iy = "beforeMain", ny = "main", ay = "afterMain", sy = "beforeWrite", ly = "write", py = "afterWrite", dy = [ey, ry, oy, iy, ny, ay, sy, ly, py];
|
|
15887
|
-
function
|
|
15886
|
+
function Xe(r) {
|
|
15888
15887
|
return r ? (r.nodeName || "").toLowerCase() : null;
|
|
15889
15888
|
}
|
|
15890
|
-
function
|
|
15889
|
+
function ge(r) {
|
|
15891
15890
|
if (r == null)
|
|
15892
15891
|
return window;
|
|
15893
15892
|
if (r.toString() !== "[object Window]") {
|
|
@@ -15897,24 +15896,24 @@ function xe(r) {
|
|
|
15897
15896
|
return r;
|
|
15898
15897
|
}
|
|
15899
15898
|
function Oo(r) {
|
|
15900
|
-
var t =
|
|
15899
|
+
var t = ge(r).Element;
|
|
15901
15900
|
return r instanceof t || r instanceof Element;
|
|
15902
15901
|
}
|
|
15903
|
-
function
|
|
15904
|
-
var t =
|
|
15902
|
+
function Oe(r) {
|
|
15903
|
+
var t = ge(r).HTMLElement;
|
|
15905
15904
|
return r instanceof t || r instanceof HTMLElement;
|
|
15906
15905
|
}
|
|
15907
15906
|
function cp(r) {
|
|
15908
15907
|
if (typeof ShadowRoot > "u")
|
|
15909
15908
|
return !1;
|
|
15910
|
-
var t =
|
|
15909
|
+
var t = ge(r).ShadowRoot;
|
|
15911
15910
|
return r instanceof t || r instanceof ShadowRoot;
|
|
15912
15911
|
}
|
|
15913
15912
|
function cy(r) {
|
|
15914
15913
|
var t = r.state;
|
|
15915
15914
|
Object.keys(t.elements).forEach(function(e) {
|
|
15916
15915
|
var o = t.styles[e] || {}, i = t.attributes[e] || {}, n = t.elements[e];
|
|
15917
|
-
!
|
|
15916
|
+
!Oe(n) || !Xe(n) || (Object.assign(n.style, o), Object.keys(i).forEach(function(a) {
|
|
15918
15917
|
var s = i[a];
|
|
15919
15918
|
s === !1 ? n.removeAttribute(a) : n.setAttribute(a, s === !0 ? "" : s);
|
|
15920
15919
|
}));
|
|
@@ -15938,7 +15937,7 @@ function by(r) {
|
|
|
15938
15937
|
var i = t.elements[o], n = t.attributes[o] || {}, a = Object.keys(t.styles.hasOwnProperty(o) ? t.styles[o] : e[o]), s = a.reduce(function(l, p) {
|
|
15939
15938
|
return l[p] = "", l;
|
|
15940
15939
|
}, {});
|
|
15941
|
-
!
|
|
15940
|
+
!Oe(i) || !Xe(i) || (Object.assign(i.style, s), Object.keys(n).forEach(function(l) {
|
|
15942
15941
|
i.removeAttribute(l);
|
|
15943
15942
|
}));
|
|
15944
15943
|
});
|
|
@@ -15952,7 +15951,7 @@ const Xm = {
|
|
|
15952
15951
|
effect: by,
|
|
15953
15952
|
requires: ["computeStyles"]
|
|
15954
15953
|
};
|
|
15955
|
-
function
|
|
15954
|
+
function Ge(r) {
|
|
15956
15955
|
return r.split("-")[0];
|
|
15957
15956
|
}
|
|
15958
15957
|
var yo = Math.max, pa = Math.min, ni = Math.round;
|
|
@@ -15968,8 +15967,8 @@ function Qm() {
|
|
|
15968
15967
|
function ai(r, t, e) {
|
|
15969
15968
|
t === void 0 && (t = !1), e === void 0 && (e = !1);
|
|
15970
15969
|
var o = r.getBoundingClientRect(), i = 1, n = 1;
|
|
15971
|
-
t &&
|
|
15972
|
-
var a = Oo(r) ?
|
|
15970
|
+
t && Oe(r) && (i = r.offsetWidth > 0 && ni(o.width) / r.offsetWidth || 1, n = r.offsetHeight > 0 && ni(o.height) / r.offsetHeight || 1);
|
|
15971
|
+
var a = Oo(r) ? ge(r) : window, s = a.visualViewport, l = !Qm() && e, p = (o.left + (l && s ? s.offsetLeft : 0)) / i, d = (o.top + (l && s ? s.offsetTop : 0)) / n, c = o.width / i, m = o.height / n;
|
|
15973
15972
|
return {
|
|
15974
15973
|
width: c,
|
|
15975
15974
|
height: m,
|
|
@@ -16004,11 +16003,11 @@ function Zm(r, t) {
|
|
|
16004
16003
|
}
|
|
16005
16004
|
return !1;
|
|
16006
16005
|
}
|
|
16007
|
-
function
|
|
16008
|
-
return
|
|
16006
|
+
function fr(r) {
|
|
16007
|
+
return ge(r).getComputedStyle(r);
|
|
16009
16008
|
}
|
|
16010
16009
|
function my(r) {
|
|
16011
|
-
return ["table", "td", "th"].indexOf(
|
|
16010
|
+
return ["table", "td", "th"].indexOf(Xe(r)) >= 0;
|
|
16012
16011
|
}
|
|
16013
16012
|
function Yr(r) {
|
|
16014
16013
|
return ((Oo(r) ? r.ownerDocument : (
|
|
@@ -16017,7 +16016,7 @@ function Yr(r) {
|
|
|
16017
16016
|
)) || window.document).documentElement;
|
|
16018
16017
|
}
|
|
16019
16018
|
function rs(r) {
|
|
16020
|
-
return
|
|
16019
|
+
return Xe(r) === "html" ? r : (
|
|
16021
16020
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
16022
16021
|
// $FlowFixMe[incompatible-return]
|
|
16023
16022
|
// $FlowFixMe[prop-missing]
|
|
@@ -16029,19 +16028,19 @@ function rs(r) {
|
|
|
16029
16028
|
);
|
|
16030
16029
|
}
|
|
16031
16030
|
function Yd(r) {
|
|
16032
|
-
return !
|
|
16033
|
-
|
|
16031
|
+
return !Oe(r) || // https://github.com/popperjs/popper-core/issues/837
|
|
16032
|
+
fr(r).position === "fixed" ? null : r.offsetParent;
|
|
16034
16033
|
}
|
|
16035
16034
|
function uy(r) {
|
|
16036
16035
|
var t = /firefox/i.test(yl()), e = /Trident/i.test(yl());
|
|
16037
|
-
if (e &&
|
|
16038
|
-
var o =
|
|
16036
|
+
if (e && Oe(r)) {
|
|
16037
|
+
var o = fr(r);
|
|
16039
16038
|
if (o.position === "fixed")
|
|
16040
16039
|
return null;
|
|
16041
16040
|
}
|
|
16042
16041
|
var i = rs(r);
|
|
16043
|
-
for (cp(i) && (i = i.host);
|
|
16044
|
-
var n =
|
|
16042
|
+
for (cp(i) && (i = i.host); Oe(i) && ["html", "body"].indexOf(Xe(i)) < 0; ) {
|
|
16043
|
+
var n = fr(i);
|
|
16045
16044
|
if (n.transform !== "none" || n.perspective !== "none" || n.contain === "paint" || ["transform", "perspective"].indexOf(n.willChange) !== -1 || t && n.willChange === "filter" || t && n.filter && n.filter !== "none")
|
|
16046
16045
|
return i;
|
|
16047
16046
|
i = i.parentNode;
|
|
@@ -16049,9 +16048,9 @@ function uy(r) {
|
|
|
16049
16048
|
return null;
|
|
16050
16049
|
}
|
|
16051
16050
|
function bn(r) {
|
|
16052
|
-
for (var t =
|
|
16051
|
+
for (var t = ge(r), e = Yd(r); e && my(e) && fr(e).position === "static"; )
|
|
16053
16052
|
e = Yd(e);
|
|
16054
|
-
return e && (
|
|
16053
|
+
return e && (Xe(e) === "html" || Xe(e) === "body" && fr(e).position === "static") ? t : e || uy(r) || t;
|
|
16055
16054
|
}
|
|
16056
16055
|
function mp(r) {
|
|
16057
16056
|
return ["top", "bottom"].indexOf(r) >= 0 ? "x" : "y";
|
|
@@ -16085,9 +16084,9 @@ var gy = function(t, e) {
|
|
|
16085
16084
|
})) : t, eu(typeof t != "number" ? t : ru(t, cn));
|
|
16086
16085
|
};
|
|
16087
16086
|
function fy(r) {
|
|
16088
|
-
var t, e = r.state, o = r.name, i = r.options, n = e.elements.arrow, a = e.modifiersData.popperOffsets, s =
|
|
16087
|
+
var t, e = r.state, o = r.name, i = r.options, n = e.elements.arrow, a = e.modifiersData.popperOffsets, s = Ge(e.placement), l = mp(s), p = [de, Pe].indexOf(s) >= 0, d = p ? "height" : "width";
|
|
16089
16088
|
if (!(!n || !a)) {
|
|
16090
|
-
var c = gy(i.padding, e), m = bp(n), u = l === "y" ? pe : de, x = l === "y" ?
|
|
16089
|
+
var c = gy(i.padding, e), m = bp(n), u = l === "y" ? pe : de, x = l === "y" ? Be : Pe, g = e.rects.reference[d] + e.rects.reference[l] - a[l] - e.rects.popper[d], f = a[l] - e.rects.reference[l], y = bn(n), w = y ? l === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, k = g / 2 - f / 2, h = c[u], B = w - m[d] - c[x], M = w / 2 - m[d] / 2 + k, A = Ai(h, M, B), R = l;
|
|
16091
16090
|
e.modifiersData[o] = (t = {}, t[R] = A, t.centerOffset = A - M, t);
|
|
16092
16091
|
}
|
|
16093
16092
|
}
|
|
@@ -16132,16 +16131,16 @@ function Xd(r) {
|
|
|
16132
16131
|
var y = a.hasOwnProperty("x"), w = a.hasOwnProperty("y"), k = de, h = pe, B = window;
|
|
16133
16132
|
if (p) {
|
|
16134
16133
|
var M = bn(e), A = "clientHeight", R = "clientWidth";
|
|
16135
|
-
if (M ===
|
|
16136
|
-
h =
|
|
16134
|
+
if (M === ge(e) && (M = Yr(e), fr(M).position !== "static" && s === "absolute" && (A = "scrollHeight", R = "scrollWidth")), M = M, i === pe || (i === de || i === Pe) && n === Qi) {
|
|
16135
|
+
h = Be;
|
|
16137
16136
|
var H = c && M === B && B.visualViewport ? B.visualViewport.height : (
|
|
16138
16137
|
// $FlowFixMe[prop-missing]
|
|
16139
16138
|
M[A]
|
|
16140
16139
|
);
|
|
16141
16140
|
g -= H - o.height, g *= l ? 1 : -1;
|
|
16142
16141
|
}
|
|
16143
|
-
if (i === de || (i === pe || i ===
|
|
16144
|
-
k =
|
|
16142
|
+
if (i === de || (i === pe || i === Be) && n === Qi) {
|
|
16143
|
+
k = Pe;
|
|
16145
16144
|
var P = c && M === B && B.visualViewport ? B.visualViewport.width : (
|
|
16146
16145
|
// $FlowFixMe[prop-missing]
|
|
16147
16146
|
M[R]
|
|
@@ -16154,7 +16153,7 @@ function Xd(r) {
|
|
|
16154
16153
|
}, p && wy), z = d === !0 ? vy({
|
|
16155
16154
|
x: u,
|
|
16156
16155
|
y: g
|
|
16157
|
-
},
|
|
16156
|
+
}, ge(e)) : {
|
|
16158
16157
|
x: u,
|
|
16159
16158
|
y: g
|
|
16160
16159
|
};
|
|
@@ -16166,7 +16165,7 @@ function Xd(r) {
|
|
|
16166
16165
|
}
|
|
16167
16166
|
function ky(r) {
|
|
16168
16167
|
var t = r.state, e = r.options, o = e.gpuAcceleration, i = o === void 0 ? !0 : o, n = e.adaptive, a = n === void 0 ? !0 : n, s = e.roundOffsets, l = s === void 0 ? !0 : s, p = {
|
|
16169
|
-
placement:
|
|
16168
|
+
placement: Ge(t.placement),
|
|
16170
16169
|
variation: si(t.placement),
|
|
16171
16170
|
popper: t.elements.popper,
|
|
16172
16171
|
popperRect: t.rects.popper,
|
|
@@ -16198,7 +16197,7 @@ var Bn = {
|
|
|
16198
16197
|
passive: !0
|
|
16199
16198
|
};
|
|
16200
16199
|
function Cy(r) {
|
|
16201
|
-
var t = r.state, e = r.instance, o = r.options, i = o.scroll, n = i === void 0 ? !0 : i, a = o.resize, s = a === void 0 ? !0 : a, l =
|
|
16200
|
+
var t = r.state, e = r.instance, o = r.options, i = o.scroll, n = i === void 0 ? !0 : i, a = o.resize, s = a === void 0 ? !0 : a, l = ge(t.elements.popper), p = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
16202
16201
|
return n && p.forEach(function(d) {
|
|
16203
16202
|
d.addEventListener("scroll", e.update, Bn);
|
|
16204
16203
|
}), s && l.addEventListener("resize", e.update, Bn), function() {
|
|
@@ -16237,7 +16236,7 @@ function Qd(r) {
|
|
|
16237
16236
|
});
|
|
16238
16237
|
}
|
|
16239
16238
|
function up(r) {
|
|
16240
|
-
var t =
|
|
16239
|
+
var t = ge(r), e = t.pageXOffset, o = t.pageYOffset;
|
|
16241
16240
|
return {
|
|
16242
16241
|
scrollLeft: e,
|
|
16243
16242
|
scrollTop: o
|
|
@@ -16247,7 +16246,7 @@ function xp(r) {
|
|
|
16247
16246
|
return ai(Yr(r)).left + up(r).scrollLeft;
|
|
16248
16247
|
}
|
|
16249
16248
|
function Oy(r, t) {
|
|
16250
|
-
var e =
|
|
16249
|
+
var e = ge(r), o = Yr(r), i = e.visualViewport, n = o.clientWidth, a = o.clientHeight, s = 0, l = 0;
|
|
16251
16250
|
if (i) {
|
|
16252
16251
|
n = i.width, a = i.height;
|
|
16253
16252
|
var p = Qm();
|
|
@@ -16262,7 +16261,7 @@ function Oy(r, t) {
|
|
|
16262
16261
|
}
|
|
16263
16262
|
function By(r) {
|
|
16264
16263
|
var t, e = Yr(r), o = up(r), i = (t = r.ownerDocument) == null ? void 0 : t.body, n = yo(e.scrollWidth, e.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), a = yo(e.scrollHeight, e.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), s = -o.scrollLeft + xp(r), l = -o.scrollTop;
|
|
16265
|
-
return
|
|
16264
|
+
return fr(i || e).direction === "rtl" && (s += yo(e.clientWidth, i ? i.clientWidth : 0) - n), {
|
|
16266
16265
|
width: n,
|
|
16267
16266
|
height: a,
|
|
16268
16267
|
x: s,
|
|
@@ -16270,16 +16269,16 @@ function By(r) {
|
|
|
16270
16269
|
};
|
|
16271
16270
|
}
|
|
16272
16271
|
function gp(r) {
|
|
16273
|
-
var t =
|
|
16272
|
+
var t = fr(r), e = t.overflow, o = t.overflowX, i = t.overflowY;
|
|
16274
16273
|
return /auto|scroll|overlay|hidden/.test(e + i + o);
|
|
16275
16274
|
}
|
|
16276
16275
|
function ou(r) {
|
|
16277
|
-
return ["html", "body", "#document"].indexOf(
|
|
16276
|
+
return ["html", "body", "#document"].indexOf(Xe(r)) >= 0 ? r.ownerDocument.body : Oe(r) && gp(r) ? r : ou(rs(r));
|
|
16278
16277
|
}
|
|
16279
16278
|
function Di(r, t) {
|
|
16280
16279
|
var e;
|
|
16281
16280
|
t === void 0 && (t = []);
|
|
16282
|
-
var o = ou(r), i = o === ((e = r.ownerDocument) == null ? void 0 : e.body), n =
|
|
16281
|
+
var o = ou(r), i = o === ((e = r.ownerDocument) == null ? void 0 : e.body), n = ge(o), a = i ? [n].concat(n.visualViewport || [], gp(o) ? o : []) : o, s = t.concat(a);
|
|
16283
16282
|
return i ? s : (
|
|
16284
16283
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
16285
16284
|
s.concat(Di(rs(a)))
|
|
@@ -16301,9 +16300,9 @@ function Zd(r, t, e) {
|
|
|
16301
16300
|
return t === Jm ? wl(Oy(r, e)) : Oo(t) ? Py(t, e) : wl(By(Yr(r)));
|
|
16302
16301
|
}
|
|
16303
16302
|
function Ay(r) {
|
|
16304
|
-
var t = Di(rs(r)), e = ["absolute", "fixed"].indexOf(
|
|
16303
|
+
var t = Di(rs(r)), e = ["absolute", "fixed"].indexOf(fr(r).position) >= 0, o = e && Oe(r) ? bn(r) : r;
|
|
16305
16304
|
return Oo(o) ? t.filter(function(i) {
|
|
16306
|
-
return Oo(i) && Zm(i, o) &&
|
|
16305
|
+
return Oo(i) && Zm(i, o) && Xe(i) !== "body";
|
|
16307
16306
|
}) : [];
|
|
16308
16307
|
}
|
|
16309
16308
|
function Dy(r, t, e, o) {
|
|
@@ -16314,7 +16313,7 @@ function Dy(r, t, e, o) {
|
|
|
16314
16313
|
return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
|
|
16315
16314
|
}
|
|
16316
16315
|
function iu(r) {
|
|
16317
|
-
var t = r.reference, e = r.element, o = r.placement, i = o ?
|
|
16316
|
+
var t = r.reference, e = r.element, o = r.placement, i = o ? Ge(o) : null, n = o ? si(o) : null, a = t.x + t.width / 2 - e.width / 2, s = t.y + t.height / 2 - e.height / 2, l;
|
|
16318
16317
|
switch (i) {
|
|
16319
16318
|
case pe:
|
|
16320
16319
|
l = {
|
|
@@ -16322,13 +16321,13 @@ function iu(r) {
|
|
|
16322
16321
|
y: t.y - e.height
|
|
16323
16322
|
};
|
|
16324
16323
|
break;
|
|
16325
|
-
case
|
|
16324
|
+
case Be:
|
|
16326
16325
|
l = {
|
|
16327
16326
|
x: a,
|
|
16328
16327
|
y: t.y + t.height
|
|
16329
16328
|
};
|
|
16330
16329
|
break;
|
|
16331
|
-
case
|
|
16330
|
+
case Pe:
|
|
16332
16331
|
l = {
|
|
16333
16332
|
x: t.x + t.width,
|
|
16334
16333
|
y: s
|
|
@@ -16375,7 +16374,7 @@ function Zi(r, t) {
|
|
|
16375
16374
|
if (m === xi && E) {
|
|
16376
16375
|
var z = E[i];
|
|
16377
16376
|
Object.keys(P).forEach(function(X) {
|
|
16378
|
-
var bt = [
|
|
16377
|
+
var bt = [Pe, Be].indexOf(X) >= 0 ? 1 : -1, ut = [pe, Be].indexOf(X) >= 0 ? "y" : "x";
|
|
16379
16378
|
P[X] += z[ut] * bt;
|
|
16380
16379
|
});
|
|
16381
16380
|
}
|
|
@@ -16395,14 +16394,14 @@ function Ny(r, t) {
|
|
|
16395
16394
|
boundary: i,
|
|
16396
16395
|
rootBoundary: n,
|
|
16397
16396
|
padding: a
|
|
16398
|
-
})[
|
|
16397
|
+
})[Ge(g)], x;
|
|
16399
16398
|
}, {});
|
|
16400
16399
|
return Object.keys(u).sort(function(x, g) {
|
|
16401
16400
|
return u[x] - u[g];
|
|
16402
16401
|
});
|
|
16403
16402
|
}
|
|
16404
16403
|
function Iy(r) {
|
|
16405
|
-
if (
|
|
16404
|
+
if (Ge(r) === dp)
|
|
16406
16405
|
return [];
|
|
16407
16406
|
var t = qn(r);
|
|
16408
16407
|
return [Qd(r), t, Qd(t)];
|
|
@@ -16410,8 +16409,8 @@ function Iy(r) {
|
|
|
16410
16409
|
function Ly(r) {
|
|
16411
16410
|
var t = r.state, e = r.options, o = r.name;
|
|
16412
16411
|
if (!t.modifiersData[o]._skip) {
|
|
16413
|
-
for (var i = e.mainAxis, n = i === void 0 ? !0 : i, a = e.altAxis, s = a === void 0 ? !0 : a, l = e.fallbackPlacements, p = e.padding, d = e.boundary, c = e.rootBoundary, m = e.altBoundary, u = e.flipVariations, x = u === void 0 ? !0 : u, g = e.allowedAutoPlacements, f = t.options.placement, y =
|
|
16414
|
-
return
|
|
16412
|
+
for (var i = e.mainAxis, n = i === void 0 ? !0 : i, a = e.altAxis, s = a === void 0 ? !0 : a, l = e.fallbackPlacements, p = e.padding, d = e.boundary, c = e.rootBoundary, m = e.altBoundary, u = e.flipVariations, x = u === void 0 ? !0 : u, g = e.allowedAutoPlacements, f = t.options.placement, y = Ge(f), w = y === f, k = l || (w || !x ? [qn(f)] : Iy(f)), h = [f].concat(k).reduce(function(fe, Vt) {
|
|
16413
|
+
return fe.concat(Ge(Vt) === dp ? Ny(t, {
|
|
16415
16414
|
placement: Vt,
|
|
16416
16415
|
boundary: d,
|
|
16417
16416
|
rootBoundary: c,
|
|
@@ -16420,17 +16419,17 @@ function Ly(r) {
|
|
|
16420
16419
|
allowedAutoPlacements: g
|
|
16421
16420
|
}) : Vt);
|
|
16422
16421
|
}, []), B = t.rects.reference, M = t.rects.popper, A = /* @__PURE__ */ new Map(), R = !0, H = h[0], P = 0; P < h.length; P++) {
|
|
16423
|
-
var E = h[P], z =
|
|
16422
|
+
var E = h[P], z = Ge(E), X = si(E) === ii, bt = [pe, Be].indexOf(z) >= 0, ut = bt ? "width" : "height", it = Zi(t, {
|
|
16424
16423
|
placement: E,
|
|
16425
16424
|
boundary: d,
|
|
16426
16425
|
rootBoundary: c,
|
|
16427
16426
|
altBoundary: m,
|
|
16428
16427
|
padding: p
|
|
16429
|
-
}), K = bt ? X ?
|
|
16428
|
+
}), K = bt ? X ? Pe : de : X ? Be : pe;
|
|
16430
16429
|
B[ut] > M[ut] && (K = qn(K));
|
|
16431
16430
|
var pt = qn(K), gt = [];
|
|
16432
|
-
if (n && gt.push(it[z] <= 0), s && gt.push(it[K] <= 0, it[pt] <= 0), gt.every(function(
|
|
16433
|
-
return
|
|
16431
|
+
if (n && gt.push(it[z] <= 0), s && gt.push(it[K] <= 0, it[pt] <= 0), gt.every(function(fe) {
|
|
16432
|
+
return fe;
|
|
16434
16433
|
})) {
|
|
16435
16434
|
H = E, R = !1;
|
|
16436
16435
|
break;
|
|
@@ -16438,19 +16437,19 @@ function Ly(r) {
|
|
|
16438
16437
|
A.set(E, gt);
|
|
16439
16438
|
}
|
|
16440
16439
|
if (R)
|
|
16441
|
-
for (var ne = x ? 3 : 1,
|
|
16442
|
-
var
|
|
16443
|
-
var
|
|
16444
|
-
if (
|
|
16445
|
-
return
|
|
16446
|
-
return
|
|
16440
|
+
for (var ne = x ? 3 : 1, Qe = function(Vt) {
|
|
16441
|
+
var he = h.find(function(tr) {
|
|
16442
|
+
var ye = A.get(tr);
|
|
16443
|
+
if (ye)
|
|
16444
|
+
return ye.slice(0, Vt).every(function(er) {
|
|
16445
|
+
return er;
|
|
16447
16446
|
});
|
|
16448
16447
|
});
|
|
16449
|
-
if (
|
|
16450
|
-
return H =
|
|
16448
|
+
if (he)
|
|
16449
|
+
return H = he, "break";
|
|
16451
16450
|
}, Xt = ne; Xt > 0; Xt--) {
|
|
16452
|
-
var
|
|
16453
|
-
if (
|
|
16451
|
+
var Ze = Qe(Xt);
|
|
16452
|
+
if (Ze === "break") break;
|
|
16454
16453
|
}
|
|
16455
16454
|
t.placement !== H && (t.modifiersData[o]._skip = !0, t.placement = H, t.reset = !0);
|
|
16456
16455
|
}
|
|
@@ -16477,7 +16476,7 @@ function tc(r, t, e) {
|
|
|
16477
16476
|
};
|
|
16478
16477
|
}
|
|
16479
16478
|
function ec(r) {
|
|
16480
|
-
return [pe,
|
|
16479
|
+
return [pe, Pe, Be, de].some(function(t) {
|
|
16481
16480
|
return r[t] >= 0;
|
|
16482
16481
|
});
|
|
16483
16482
|
}
|
|
@@ -16505,10 +16504,10 @@ const _y = {
|
|
|
16505
16504
|
fn: $y
|
|
16506
16505
|
};
|
|
16507
16506
|
function zy(r, t, e) {
|
|
16508
|
-
var o =
|
|
16507
|
+
var o = Ge(r), i = [de, pe].indexOf(o) >= 0 ? -1 : 1, n = typeof e == "function" ? e(Object.assign({}, t, {
|
|
16509
16508
|
placement: r
|
|
16510
16509
|
})) : e, a = n[0], s = n[1];
|
|
16511
|
-
return a = a || 0, s = (s || 0) * i, [de,
|
|
16510
|
+
return a = a || 0, s = (s || 0) * i, [de, Pe].indexOf(o) >= 0 ? {
|
|
16512
16511
|
x: s,
|
|
16513
16512
|
y: a
|
|
16514
16513
|
} : {
|
|
@@ -16553,7 +16552,7 @@ function qy(r) {
|
|
|
16553
16552
|
rootBoundary: p,
|
|
16554
16553
|
padding: c,
|
|
16555
16554
|
altBoundary: d
|
|
16556
|
-
}), y =
|
|
16555
|
+
}), y = Ge(t.placement), w = si(t.placement), k = !w, h = mp(y), B = Wy(h), M = t.modifiersData.popperOffsets, A = t.rects.reference, R = t.rects.popper, H = typeof g == "function" ? g(Object.assign({}, t.rects, {
|
|
16557
16556
|
placement: t.placement
|
|
16558
16557
|
})) : g, P = typeof H == "number" ? {
|
|
16559
16558
|
mainAxis: H,
|
|
@@ -16567,15 +16566,15 @@ function qy(r) {
|
|
|
16567
16566
|
};
|
|
16568
16567
|
if (M) {
|
|
16569
16568
|
if (n) {
|
|
16570
|
-
var X, bt = h === "y" ? pe : de, ut = h === "y" ?
|
|
16569
|
+
var X, bt = h === "y" ? pe : de, ut = h === "y" ? Be : Pe, it = h === "y" ? "height" : "width", K = M[h], pt = K + f[bt], gt = K - f[ut], ne = u ? -R[it] / 2 : 0, Qe = w === ii ? A[it] : R[it], Xt = w === ii ? -R[it] : -A[it], Ze = t.elements.arrow, fe = u && Ze ? bp(Ze) : {
|
|
16571
16570
|
width: 0,
|
|
16572
16571
|
height: 0
|
|
16573
|
-
}, Vt = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : tu(),
|
|
16574
|
-
M[h] =
|
|
16572
|
+
}, Vt = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : tu(), he = Vt[bt], tr = Vt[ut], ye = Ai(0, A[it], fe[it]), er = k ? A[it] / 2 - ne - ye - he - P.mainAxis : Qe - ye - he - P.mainAxis, Ae = k ? -A[it] / 2 + ne + ye + tr + P.mainAxis : Xt + ye + tr + P.mainAxis, rr = t.elements.arrow && bn(t.elements.arrow), Qr = rr ? h === "y" ? rr.clientTop || 0 : rr.clientLeft || 0 : 0, hr = (X = E == null ? void 0 : E[h]) != null ? X : 0, Po = K + er - hr - Qr, Ao = K + Ae - hr, yr = Ai(u ? pa(pt, Po) : pt, K, u ? yo(gt, Ao) : gt);
|
|
16573
|
+
M[h] = yr, z[h] = yr - K;
|
|
16575
16574
|
}
|
|
16576
16575
|
if (s) {
|
|
16577
|
-
var
|
|
16578
|
-
M[B] =
|
|
16576
|
+
var ze, Zr = h === "x" ? pe : de, to = h === "x" ? Be : Pe, we = M[B], De = B === "y" ? "height" : "width", wr = we + f[Zr], Fe = we - f[to], vr = [pe, de].indexOf(y) !== -1, eo = (ze = E == null ? void 0 : E[B]) != null ? ze : 0, Do = vr ? wr : we - A[De] - R[De] - eo + P.altAxis, kr = vr ? we + A[De] + R[De] - eo - P.altAxis : Fe, Sr = u && vr ? xy(Do, we, kr) : Ai(u ? Do : wr, we, u ? kr : Fe);
|
|
16577
|
+
M[B] = Sr, z[B] = Sr - we;
|
|
16579
16578
|
}
|
|
16580
16579
|
t.modifiersData[o] = z;
|
|
16581
16580
|
}
|
|
@@ -16594,7 +16593,7 @@ function Ky(r) {
|
|
|
16594
16593
|
};
|
|
16595
16594
|
}
|
|
16596
16595
|
function Gy(r) {
|
|
16597
|
-
return r ===
|
|
16596
|
+
return r === ge(r) || !Oe(r) ? up(r) : Ky(r);
|
|
16598
16597
|
}
|
|
16599
16598
|
function Jy(r) {
|
|
16600
16599
|
var t = r.getBoundingClientRect(), e = ni(t.width) / r.offsetWidth || 1, o = ni(t.height) / r.offsetHeight || 1;
|
|
@@ -16602,15 +16601,15 @@ function Jy(r) {
|
|
|
16602
16601
|
}
|
|
16603
16602
|
function Yy(r, t, e) {
|
|
16604
16603
|
e === void 0 && (e = !1);
|
|
16605
|
-
var o =
|
|
16604
|
+
var o = Oe(t), i = Oe(t) && Jy(t), n = Yr(t), a = ai(r, i, e), s = {
|
|
16606
16605
|
scrollLeft: 0,
|
|
16607
16606
|
scrollTop: 0
|
|
16608
16607
|
}, l = {
|
|
16609
16608
|
x: 0,
|
|
16610
16609
|
y: 0
|
|
16611
16610
|
};
|
|
16612
|
-
return (o || !o && !e) && ((
|
|
16613
|
-
gp(n)) && (s = Gy(t)),
|
|
16611
|
+
return (o || !o && !e) && ((Xe(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
16612
|
+
gp(n)) && (s = Gy(t)), Oe(t) ? (l = ai(t, !0), l.x += t.clientLeft, l.y += t.clientTop) : n && (l.x = xp(n))), {
|
|
16614
16613
|
x: a.left + s.scrollLeft - l.x,
|
|
16615
16614
|
y: a.top + s.scrollTop - l.y,
|
|
16616
16615
|
width: a.width,
|
|
@@ -16902,15 +16901,15 @@ function lc(r, t) {
|
|
|
16902
16901
|
}
|
|
16903
16902
|
return !1;
|
|
16904
16903
|
}
|
|
16905
|
-
var
|
|
16904
|
+
var We = {
|
|
16906
16905
|
isTouch: !1
|
|
16907
16906
|
}, pc = 0;
|
|
16908
16907
|
function fw() {
|
|
16909
|
-
|
|
16908
|
+
We.isTouch || (We.isTouch = !0, window.performance && document.addEventListener("mousemove", du));
|
|
16910
16909
|
}
|
|
16911
16910
|
function du() {
|
|
16912
16911
|
var r = performance.now();
|
|
16913
|
-
r - pc < 20 && (
|
|
16912
|
+
r - pc < 20 && (We.isTouch = !1, document.removeEventListener("mousemove", du)), pc = r;
|
|
16914
16913
|
}
|
|
16915
16914
|
function hw() {
|
|
16916
16915
|
var r = document.activeElement;
|
|
@@ -16959,7 +16958,7 @@ process.env.NODE_ENV !== "production" && Sw();
|
|
|
16959
16958
|
function Sw() {
|
|
16960
16959
|
en = /* @__PURE__ */ new Set();
|
|
16961
16960
|
}
|
|
16962
|
-
function
|
|
16961
|
+
function dr(r, t) {
|
|
16963
16962
|
if (r && !en.has(t)) {
|
|
16964
16963
|
var e;
|
|
16965
16964
|
en.add(t), (e = console).warn.apply(e, cu(t));
|
|
@@ -16990,7 +16989,7 @@ var bu = {
|
|
|
16990
16989
|
role: "tooltip",
|
|
16991
16990
|
theme: "",
|
|
16992
16991
|
zIndex: 9999
|
|
16993
|
-
},
|
|
16992
|
+
}, ue = Object.assign({
|
|
16994
16993
|
appendTo: lu,
|
|
16995
16994
|
aria: {
|
|
16996
16995
|
content: "auto",
|
|
@@ -17038,11 +17037,11 @@ var bu = {
|
|
|
17038
17037
|
touch: !0,
|
|
17039
17038
|
trigger: "mouseenter focus",
|
|
17040
17039
|
triggerTarget: null
|
|
17041
|
-
}, bu, Mw), Ew = Object.keys(
|
|
17040
|
+
}, bu, Mw), Ew = Object.keys(ue), Tw = function(t) {
|
|
17042
17041
|
process.env.NODE_ENV !== "production" && uu(t, []);
|
|
17043
17042
|
var e = Object.keys(t);
|
|
17044
17043
|
e.forEach(function(o) {
|
|
17045
|
-
|
|
17044
|
+
ue[o] = t[o];
|
|
17046
17045
|
});
|
|
17047
17046
|
};
|
|
17048
17047
|
function mu(r) {
|
|
@@ -17050,14 +17049,14 @@ function mu(r) {
|
|
|
17050
17049
|
var n = i.name, a = i.defaultValue;
|
|
17051
17050
|
if (n) {
|
|
17052
17051
|
var s;
|
|
17053
|
-
o[n] = r[n] !== void 0 ? r[n] : (s =
|
|
17052
|
+
o[n] = r[n] !== void 0 ? r[n] : (s = ue[n]) != null ? s : a;
|
|
17054
17053
|
}
|
|
17055
17054
|
return o;
|
|
17056
17055
|
}, {});
|
|
17057
17056
|
return Object.assign({}, r, e);
|
|
17058
17057
|
}
|
|
17059
17058
|
function Ow(r, t) {
|
|
17060
|
-
var e = t ? Object.keys(mu(Object.assign({},
|
|
17059
|
+
var e = t ? Object.keys(mu(Object.assign({}, ue, {
|
|
17061
17060
|
plugins: t
|
|
17062
17061
|
}))) : Ew, o = e.reduce(function(i, n) {
|
|
17063
17062
|
var a = (r.getAttribute("data-tippy-" + n) || "").trim();
|
|
@@ -17079,7 +17078,7 @@ function cc(r, t) {
|
|
|
17079
17078
|
var e = Object.assign({}, t, {
|
|
17080
17079
|
content: pu(t.content, [r])
|
|
17081
17080
|
}, t.ignoreAttributes ? {} : Ow(r, t.plugins));
|
|
17082
|
-
return e.aria = Object.assign({},
|
|
17081
|
+
return e.aria = Object.assign({}, ue.aria, e.aria), e.aria = {
|
|
17083
17082
|
expanded: e.aria.expanded === "auto" ? t.interactive : e.aria.expanded,
|
|
17084
17083
|
content: e.aria.content === "auto" ? t.interactive ? null : "describedby" : e.aria.content
|
|
17085
17084
|
}, e;
|
|
@@ -17088,10 +17087,10 @@ function uu(r, t) {
|
|
|
17088
17087
|
r === void 0 && (r = {}), t === void 0 && (t = []);
|
|
17089
17088
|
var e = Object.keys(r);
|
|
17090
17089
|
e.forEach(function(o) {
|
|
17091
|
-
var i = sw(
|
|
17090
|
+
var i = sw(ue, Object.keys(bu)), n = !aw(i, o);
|
|
17092
17091
|
n && (n = t.filter(function(a) {
|
|
17093
17092
|
return a.name === o;
|
|
17094
|
-
}).length === 0),
|
|
17093
|
+
}).length === 0), dr(n, ["`" + o + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
|
|
17095
17094
|
|
|
17096
17095
|
`, `All props: https://atomiks.github.io/tippyjs/v6/all-props/
|
|
17097
17096
|
`, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
|
|
@@ -17142,7 +17141,7 @@ function xu(r) {
|
|
|
17142
17141
|
xu.$$tippy = !0;
|
|
17143
17142
|
var Pw = 1, Pn = [], Is = [];
|
|
17144
17143
|
function Aw(r, t) {
|
|
17145
|
-
var e = cc(r, Object.assign({},
|
|
17144
|
+
var e = cc(r, Object.assign({}, ue, mu(ac(t)))), o, i, n, a = !1, s = !1, l = !1, p = !1, d, c, m, u = [], x = ic(Po, e.interactiveDebounce), g, f = Pw++, y = null, w = pw(e.plugins), k = {
|
|
17146
17145
|
// Is the instance currently enabled?
|
|
17147
17146
|
isEnabled: !0,
|
|
17148
17147
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -17164,12 +17163,12 @@ function Aw(r, t) {
|
|
|
17164
17163
|
plugins: w,
|
|
17165
17164
|
// methods
|
|
17166
17165
|
clearDelayTimeouts: Do,
|
|
17167
|
-
setProps:
|
|
17168
|
-
setContent:
|
|
17166
|
+
setProps: kr,
|
|
17167
|
+
setContent: Sr,
|
|
17169
17168
|
show: bi,
|
|
17170
17169
|
hide: mi,
|
|
17171
17170
|
hideWithInteractivity: No,
|
|
17172
|
-
enable:
|
|
17171
|
+
enable: vr,
|
|
17173
17172
|
disable: eo,
|
|
17174
17173
|
unmount: at,
|
|
17175
17174
|
destroy: D
|
|
@@ -17181,7 +17180,7 @@ function Aw(r, t) {
|
|
|
17181
17180
|
var R = w.map(function(O) {
|
|
17182
17181
|
return O.fn(h);
|
|
17183
17182
|
}), H = r.hasAttribute("aria-expanded");
|
|
17184
|
-
return
|
|
17183
|
+
return rr(), ne(), K(), pt("onCreate", [h]), e.showOnCreate && wr(), M.addEventListener("mouseenter", function() {
|
|
17185
17184
|
h.props.interactive && h.state.isVisible && h.clearDelayTimeouts();
|
|
17186
17185
|
}), M.addEventListener("mouseleave", function() {
|
|
17187
17186
|
h.props.interactive && h.props.trigger.indexOf("mouseenter") >= 0 && bt().addEventListener("mousemove", x);
|
|
@@ -17208,7 +17207,7 @@ function Aw(r, t) {
|
|
|
17208
17207
|
return Sl(M);
|
|
17209
17208
|
}
|
|
17210
17209
|
function it(O) {
|
|
17211
|
-
return h.state.isMounted && !h.state.isVisible ||
|
|
17210
|
+
return h.state.isMounted && !h.state.isVisible || We.isTouch || d && d.type === "focus" ? 0 : As(h.props.delay, O ? 0 : 1, ue.delay);
|
|
17212
17211
|
}
|
|
17213
17212
|
function K(O) {
|
|
17214
17213
|
O === void 0 && (O = !1), M.style.pointerEvents = h.props.interactive && !O ? "" : "none", M.style.zIndex = "" + h.props.zIndex;
|
|
@@ -17244,51 +17243,51 @@ function Aw(r, t) {
|
|
|
17244
17243
|
});
|
|
17245
17244
|
}
|
|
17246
17245
|
}
|
|
17247
|
-
function
|
|
17246
|
+
function Qe() {
|
|
17248
17247
|
bt().removeEventListener("mousemove", x), Pn = Pn.filter(function(O) {
|
|
17249
17248
|
return O !== x;
|
|
17250
17249
|
});
|
|
17251
17250
|
}
|
|
17252
17251
|
function Xt(O) {
|
|
17253
|
-
if (!(
|
|
17252
|
+
if (!(We.isTouch && (l || O.type === "mousedown"))) {
|
|
17254
17253
|
var j = O.composedPath && O.composedPath()[0] || O.target;
|
|
17255
17254
|
if (!(h.props.interactive && lc(M, j))) {
|
|
17256
17255
|
if (Wo(h.props.triggerTarget || r).some(function(Y) {
|
|
17257
17256
|
return lc(Y, j);
|
|
17258
17257
|
})) {
|
|
17259
|
-
if (
|
|
17258
|
+
if (We.isTouch || h.state.isVisible && h.props.trigger.indexOf("click") >= 0)
|
|
17260
17259
|
return;
|
|
17261
17260
|
} else
|
|
17262
17261
|
pt("onClickOutside", [h, O]);
|
|
17263
17262
|
h.props.hideOnClick === !0 && (h.clearDelayTimeouts(), h.hide(), s = !0, setTimeout(function() {
|
|
17264
17263
|
s = !1;
|
|
17265
|
-
}), h.state.isMounted ||
|
|
17264
|
+
}), h.state.isMounted || he());
|
|
17266
17265
|
}
|
|
17267
17266
|
}
|
|
17268
17267
|
}
|
|
17269
|
-
function
|
|
17268
|
+
function Ze() {
|
|
17270
17269
|
l = !0;
|
|
17271
17270
|
}
|
|
17272
|
-
function
|
|
17271
|
+
function fe() {
|
|
17273
17272
|
l = !1;
|
|
17274
17273
|
}
|
|
17275
17274
|
function Vt() {
|
|
17276
17275
|
var O = bt();
|
|
17277
|
-
O.addEventListener("mousedown", Xt, !0), O.addEventListener("touchend", Xt, so), O.addEventListener("touchstart",
|
|
17276
|
+
O.addEventListener("mousedown", Xt, !0), O.addEventListener("touchend", Xt, so), O.addEventListener("touchstart", fe, so), O.addEventListener("touchmove", Ze, so);
|
|
17278
17277
|
}
|
|
17279
|
-
function
|
|
17278
|
+
function he() {
|
|
17280
17279
|
var O = bt();
|
|
17281
|
-
O.removeEventListener("mousedown", Xt, !0), O.removeEventListener("touchend", Xt, so), O.removeEventListener("touchstart",
|
|
17280
|
+
O.removeEventListener("mousedown", Xt, !0), O.removeEventListener("touchend", Xt, so), O.removeEventListener("touchstart", fe, so), O.removeEventListener("touchmove", Ze, so);
|
|
17282
17281
|
}
|
|
17283
|
-
function
|
|
17284
|
-
|
|
17282
|
+
function tr(O, j) {
|
|
17283
|
+
er(O, function() {
|
|
17285
17284
|
!h.state.isVisible && M.parentNode && M.parentNode.contains(M) && j();
|
|
17286
17285
|
});
|
|
17287
17286
|
}
|
|
17288
|
-
function
|
|
17289
|
-
|
|
17287
|
+
function ye(O, j) {
|
|
17288
|
+
er(O, j);
|
|
17290
17289
|
}
|
|
17291
|
-
function
|
|
17290
|
+
function er(O, j) {
|
|
17292
17291
|
var Y = ut().box;
|
|
17293
17292
|
function st(nt) {
|
|
17294
17293
|
nt.target === Y && (Ns(Y, "remove", st), j());
|
|
@@ -17297,7 +17296,7 @@ function Aw(r, t) {
|
|
|
17297
17296
|
return j();
|
|
17298
17297
|
Ns(Y, "remove", c), Ns(Y, "add", st), c = st;
|
|
17299
17298
|
}
|
|
17300
|
-
function
|
|
17299
|
+
function Ae(O, j, Y) {
|
|
17301
17300
|
Y === void 0 && (Y = !1);
|
|
17302
17301
|
var st = Wo(h.props.triggerTarget || r);
|
|
17303
17302
|
st.forEach(function(nt) {
|
|
@@ -17309,22 +17308,22 @@ function Aw(r, t) {
|
|
|
17309
17308
|
});
|
|
17310
17309
|
});
|
|
17311
17310
|
}
|
|
17312
|
-
function
|
|
17313
|
-
E() && (
|
|
17311
|
+
function rr() {
|
|
17312
|
+
E() && (Ae("touchstart", hr, {
|
|
17314
17313
|
passive: !0
|
|
17315
|
-
}),
|
|
17314
|
+
}), Ae("touchend", Ao, {
|
|
17316
17315
|
passive: !0
|
|
17317
17316
|
})), lw(h.props.trigger).forEach(function(O) {
|
|
17318
17317
|
if (O !== "manual")
|
|
17319
|
-
switch (
|
|
17318
|
+
switch (Ae(O, hr), O) {
|
|
17320
17319
|
case "mouseenter":
|
|
17321
|
-
|
|
17320
|
+
Ae("mouseleave", Ao);
|
|
17322
17321
|
break;
|
|
17323
17322
|
case "focus":
|
|
17324
|
-
|
|
17323
|
+
Ae(vw ? "focusout" : "blur", yr);
|
|
17325
17324
|
break;
|
|
17326
17325
|
case "focusin":
|
|
17327
|
-
|
|
17326
|
+
Ae("focusout", yr);
|
|
17328
17327
|
break;
|
|
17329
17328
|
}
|
|
17330
17329
|
});
|
|
@@ -17335,48 +17334,48 @@ function Aw(r, t) {
|
|
|
17335
17334
|
j.removeEventListener(Y, st, nt);
|
|
17336
17335
|
}), u = [];
|
|
17337
17336
|
}
|
|
17338
|
-
function
|
|
17337
|
+
function hr(O) {
|
|
17339
17338
|
var j, Y = !1;
|
|
17340
|
-
if (!(!h.state.isEnabled ||
|
|
17339
|
+
if (!(!h.state.isEnabled || ze(O) || s)) {
|
|
17341
17340
|
var st = ((j = d) == null ? void 0 : j.type) === "focus";
|
|
17342
17341
|
d = O, g = O.currentTarget, ne(), !h.state.isVisible && bw(O) && Pn.forEach(function(nt) {
|
|
17343
17342
|
return nt(O);
|
|
17344
|
-
}), O.type === "click" && (h.props.trigger.indexOf("mouseenter") < 0 || a) && h.props.hideOnClick !== !1 && h.state.isVisible ? Y = !0 :
|
|
17343
|
+
}), O.type === "click" && (h.props.trigger.indexOf("mouseenter") < 0 || a) && h.props.hideOnClick !== !1 && h.state.isVisible ? Y = !0 : wr(O), O.type === "click" && (a = !Y), Y && !st && Fe(O);
|
|
17345
17344
|
}
|
|
17346
17345
|
}
|
|
17347
17346
|
function Po(O) {
|
|
17348
17347
|
var j = O.target, Y = X().contains(j) || M.contains(j);
|
|
17349
17348
|
if (!(O.type === "mousemove" && Y)) {
|
|
17350
|
-
var st =
|
|
17351
|
-
var Wt, ae = nt._tippy,
|
|
17352
|
-
return
|
|
17349
|
+
var st = De().concat(M).map(function(nt) {
|
|
17350
|
+
var Wt, ae = nt._tippy, or = (Wt = ae.popperInstance) == null ? void 0 : Wt.state;
|
|
17351
|
+
return or ? {
|
|
17353
17352
|
popperRect: nt.getBoundingClientRect(),
|
|
17354
|
-
popperState:
|
|
17353
|
+
popperState: or,
|
|
17355
17354
|
props: e
|
|
17356
17355
|
} : null;
|
|
17357
17356
|
}).filter(Boolean);
|
|
17358
|
-
gw(st, O) && (
|
|
17357
|
+
gw(st, O) && (Qe(), Fe(O));
|
|
17359
17358
|
}
|
|
17360
17359
|
}
|
|
17361
17360
|
function Ao(O) {
|
|
17362
|
-
var j =
|
|
17361
|
+
var j = ze(O) || h.props.trigger.indexOf("click") >= 0 && a;
|
|
17363
17362
|
if (!j) {
|
|
17364
17363
|
if (h.props.interactive) {
|
|
17365
17364
|
h.hideWithInteractivity(O);
|
|
17366
17365
|
return;
|
|
17367
17366
|
}
|
|
17368
|
-
|
|
17367
|
+
Fe(O);
|
|
17369
17368
|
}
|
|
17370
17369
|
}
|
|
17371
|
-
function
|
|
17372
|
-
h.props.trigger.indexOf("focusin") < 0 && O.target !== X() || h.props.interactive && O.relatedTarget && M.contains(O.relatedTarget) ||
|
|
17370
|
+
function yr(O) {
|
|
17371
|
+
h.props.trigger.indexOf("focusin") < 0 && O.target !== X() || h.props.interactive && O.relatedTarget && M.contains(O.relatedTarget) || Fe(O);
|
|
17373
17372
|
}
|
|
17374
|
-
function
|
|
17375
|
-
return
|
|
17373
|
+
function ze(O) {
|
|
17374
|
+
return We.isTouch ? E() !== O.type.indexOf("touch") >= 0 : !1;
|
|
17376
17375
|
}
|
|
17377
17376
|
function Zr() {
|
|
17378
17377
|
to();
|
|
17379
|
-
var O = h.props, j = O.popperOptions, Y = O.placement, st = O.offset, nt = O.getReferenceClientRect, Wt = O.moveTransition, ae = z() ? Sl(M).arrow : null,
|
|
17378
|
+
var O = h.props, j = O.popperOptions, Y = O.placement, st = O.offset, nt = O.getReferenceClientRect, Wt = O.moveTransition, ae = z() ? Sl(M).arrow : null, or = nt ? {
|
|
17380
17379
|
getBoundingClientRect: nt,
|
|
17381
17380
|
contextElement: nt.contextElement || X()
|
|
17382
17381
|
} : r, Bp = {
|
|
@@ -17425,7 +17424,7 @@ function Aw(r, t) {
|
|
|
17425
17424
|
element: ae,
|
|
17426
17425
|
padding: 3
|
|
17427
17426
|
}
|
|
17428
|
-
}), ro.push.apply(ro, (j == null ? void 0 : j.modifiers) || []), h.popperInstance = ow(
|
|
17427
|
+
}), ro.push.apply(ro, (j == null ? void 0 : j.modifiers) || []), h.popperInstance = ow(or, M, Object.assign({}, j, {
|
|
17429
17428
|
placement: Y,
|
|
17430
17429
|
onFirstUpdate: m,
|
|
17431
17430
|
modifiers: ro
|
|
@@ -17434,9 +17433,9 @@ function Aw(r, t) {
|
|
|
17434
17433
|
function to() {
|
|
17435
17434
|
h.popperInstance && (h.popperInstance.destroy(), h.popperInstance = null);
|
|
17436
17435
|
}
|
|
17437
|
-
function
|
|
17436
|
+
function we() {
|
|
17438
17437
|
var O = h.props.appendTo, j, Y = X();
|
|
17439
|
-
h.props.interactive && O === lu || O === "parent" ? j = Y.parentNode : j = pu(O, [Y]), j.contains(M) || j.appendChild(M), h.state.isMounted = !0, Zr(), process.env.NODE_ENV !== "production" &&
|
|
17438
|
+
h.props.interactive && O === lu || O === "parent" ? j = Y.parentNode : j = pu(O, [Y]), j.contains(M) || j.appendChild(M), h.state.isMounted = !0, Zr(), process.env.NODE_ENV !== "production" && dr(h.props.interactive && O === ue.appendTo && Y.nextElementSibling !== M, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
17440
17439
|
|
|
17441
17440
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
17442
17441
|
|
|
@@ -17444,19 +17443,19 @@ function Aw(r, t) {
|
|
|
17444
17443
|
|
|
17445
17444
|
`, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
|
|
17446
17445
|
}
|
|
17447
|
-
function
|
|
17446
|
+
function De() {
|
|
17448
17447
|
return da(M.querySelectorAll("[data-tippy-root]"));
|
|
17449
17448
|
}
|
|
17450
|
-
function
|
|
17449
|
+
function wr(O) {
|
|
17451
17450
|
h.clearDelayTimeouts(), O && pt("onTrigger", [h, O]), Vt();
|
|
17452
17451
|
var j = it(!0), Y = P(), st = Y[0], nt = Y[1];
|
|
17453
|
-
|
|
17452
|
+
We.isTouch && st === "hold" && nt && (j = nt), j ? o = setTimeout(function() {
|
|
17454
17453
|
h.show();
|
|
17455
17454
|
}, j) : h.show();
|
|
17456
17455
|
}
|
|
17457
|
-
function
|
|
17456
|
+
function Fe(O) {
|
|
17458
17457
|
if (h.clearDelayTimeouts(), pt("onUntrigger", [h, O]), !h.state.isVisible) {
|
|
17459
|
-
|
|
17458
|
+
he();
|
|
17460
17459
|
return;
|
|
17461
17460
|
}
|
|
17462
17461
|
if (!(h.props.trigger.indexOf("mouseenter") >= 0 && h.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(O.type) >= 0 && a)) {
|
|
@@ -17468,7 +17467,7 @@ function Aw(r, t) {
|
|
|
17468
17467
|
});
|
|
17469
17468
|
}
|
|
17470
17469
|
}
|
|
17471
|
-
function
|
|
17470
|
+
function vr() {
|
|
17472
17471
|
h.state.isEnabled = !0;
|
|
17473
17472
|
}
|
|
17474
17473
|
function eo() {
|
|
@@ -17477,31 +17476,31 @@ function Aw(r, t) {
|
|
|
17477
17476
|
function Do() {
|
|
17478
17477
|
clearTimeout(o), clearTimeout(i), cancelAnimationFrame(n);
|
|
17479
17478
|
}
|
|
17480
|
-
function
|
|
17481
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
17479
|
+
function kr(O) {
|
|
17480
|
+
if (process.env.NODE_ENV !== "production" && dr(h.state.isDestroyed, Fo("setProps")), !h.state.isDestroyed) {
|
|
17482
17481
|
pt("onBeforeUpdate", [h, O]), Qr();
|
|
17483
17482
|
var j = h.props, Y = cc(r, Object.assign({}, j, ac(O), {
|
|
17484
17483
|
ignoreAttributes: !0
|
|
17485
17484
|
}));
|
|
17486
|
-
h.props = Y,
|
|
17485
|
+
h.props = Y, rr(), j.interactiveDebounce !== Y.interactiveDebounce && (Qe(), x = ic(Po, Y.interactiveDebounce)), j.triggerTarget && !Y.triggerTarget ? Wo(j.triggerTarget).forEach(function(st) {
|
|
17487
17486
|
st.removeAttribute("aria-expanded");
|
|
17488
|
-
}) : Y.triggerTarget && r.removeAttribute("aria-expanded"), ne(), K(), A && A(j, Y), h.popperInstance && (Zr(),
|
|
17487
|
+
}) : Y.triggerTarget && r.removeAttribute("aria-expanded"), ne(), K(), A && A(j, Y), h.popperInstance && (Zr(), De().forEach(function(st) {
|
|
17489
17488
|
requestAnimationFrame(st._tippy.popperInstance.forceUpdate);
|
|
17490
17489
|
})), pt("onAfterUpdate", [h, O]);
|
|
17491
17490
|
}
|
|
17492
17491
|
}
|
|
17493
|
-
function
|
|
17492
|
+
function Sr(O) {
|
|
17494
17493
|
h.setProps({
|
|
17495
17494
|
content: O
|
|
17496
17495
|
});
|
|
17497
17496
|
}
|
|
17498
17497
|
function bi() {
|
|
17499
|
-
process.env.NODE_ENV !== "production" &&
|
|
17500
|
-
var O = h.state.isVisible, j = h.state.isDestroyed, Y = !h.state.isEnabled, st =
|
|
17498
|
+
process.env.NODE_ENV !== "production" && dr(h.state.isDestroyed, Fo("show"));
|
|
17499
|
+
var O = h.state.isVisible, j = h.state.isDestroyed, Y = !h.state.isEnabled, st = We.isTouch && !h.props.touch, nt = As(h.props.duration, 0, ue.duration);
|
|
17501
17500
|
if (!(O || j || Y || st) && !X().hasAttribute("disabled") && (pt("onShow", [h], !1), h.props.onShow(h) !== !1)) {
|
|
17502
17501
|
if (h.state.isVisible = !0, z() && (M.style.visibility = "visible"), K(), Vt(), h.state.isMounted || (M.style.transition = "none"), z()) {
|
|
17503
|
-
var Wt = ut(), ae = Wt.box,
|
|
17504
|
-
Ds([ae,
|
|
17502
|
+
var Wt = ut(), ae = Wt.box, or = Wt.content;
|
|
17503
|
+
Ds([ae, or], 0);
|
|
17505
17504
|
}
|
|
17506
17505
|
m = function() {
|
|
17507
17506
|
var ro;
|
|
@@ -17510,48 +17509,48 @@ function Aw(r, t) {
|
|
|
17510
17509
|
var ss = ut(), hn = ss.box, Io = ss.content;
|
|
17511
17510
|
Ds([hn, Io], nt), sc([hn, Io], "visible");
|
|
17512
17511
|
}
|
|
17513
|
-
gt(), ne(), nc(Is, h), (ro = h.popperInstance) == null || ro.forceUpdate(), pt("onMount", [h]), h.props.animation && z() &&
|
|
17512
|
+
gt(), ne(), nc(Is, h), (ro = h.popperInstance) == null || ro.forceUpdate(), pt("onMount", [h]), h.props.animation && z() && ye(nt, function() {
|
|
17514
17513
|
h.state.isShown = !0, pt("onShown", [h]);
|
|
17515
17514
|
});
|
|
17516
17515
|
}
|
|
17517
|
-
},
|
|
17516
|
+
}, we();
|
|
17518
17517
|
}
|
|
17519
17518
|
}
|
|
17520
17519
|
function mi() {
|
|
17521
|
-
process.env.NODE_ENV !== "production" &&
|
|
17522
|
-
var O = !h.state.isVisible, j = h.state.isDestroyed, Y = !h.state.isEnabled, st = As(h.props.duration, 1,
|
|
17520
|
+
process.env.NODE_ENV !== "production" && dr(h.state.isDestroyed, Fo("hide"));
|
|
17521
|
+
var O = !h.state.isVisible, j = h.state.isDestroyed, Y = !h.state.isEnabled, st = As(h.props.duration, 1, ue.duration);
|
|
17523
17522
|
if (!(O || j || Y) && (pt("onHide", [h], !1), h.props.onHide(h) !== !1)) {
|
|
17524
|
-
if (h.state.isVisible = !1, h.state.isShown = !1, p = !1, a = !1, z() && (M.style.visibility = "hidden"),
|
|
17523
|
+
if (h.state.isVisible = !1, h.state.isShown = !1, p = !1, a = !1, z() && (M.style.visibility = "hidden"), Qe(), he(), K(!0), z()) {
|
|
17525
17524
|
var nt = ut(), Wt = nt.box, ae = nt.content;
|
|
17526
17525
|
h.props.animation && (Ds([Wt, ae], st), sc([Wt, ae], "hidden"));
|
|
17527
17526
|
}
|
|
17528
|
-
gt(), ne(), h.props.animation ? z() &&
|
|
17527
|
+
gt(), ne(), h.props.animation ? z() && tr(st, h.unmount) : h.unmount();
|
|
17529
17528
|
}
|
|
17530
17529
|
}
|
|
17531
17530
|
function No(O) {
|
|
17532
|
-
process.env.NODE_ENV !== "production" &&
|
|
17531
|
+
process.env.NODE_ENV !== "production" && dr(h.state.isDestroyed, Fo("hideWithInteractivity")), bt().addEventListener("mousemove", x), nc(Pn, x), x(O);
|
|
17533
17532
|
}
|
|
17534
17533
|
function at() {
|
|
17535
|
-
process.env.NODE_ENV !== "production" &&
|
|
17534
|
+
process.env.NODE_ENV !== "production" && dr(h.state.isDestroyed, Fo("unmount")), h.state.isVisible && h.hide(), h.state.isMounted && (to(), De().forEach(function(O) {
|
|
17536
17535
|
O._tippy.unmount();
|
|
17537
17536
|
}), M.parentNode && M.parentNode.removeChild(M), Is = Is.filter(function(O) {
|
|
17538
17537
|
return O !== h;
|
|
17539
17538
|
}), h.state.isMounted = !1, pt("onHidden", [h]));
|
|
17540
17539
|
}
|
|
17541
17540
|
function D() {
|
|
17542
|
-
process.env.NODE_ENV !== "production" &&
|
|
17541
|
+
process.env.NODE_ENV !== "production" && dr(h.state.isDestroyed, Fo("destroy")), !h.state.isDestroyed && (h.clearDelayTimeouts(), h.unmount(), Qr(), delete r._tippy, h.state.isDestroyed = !0, pt("onDestroy", [h]));
|
|
17543
17542
|
}
|
|
17544
17543
|
}
|
|
17545
17544
|
function di(r, t) {
|
|
17546
17545
|
t === void 0 && (t = {});
|
|
17547
|
-
var e =
|
|
17546
|
+
var e = ue.plugins.concat(t.plugins || []);
|
|
17548
17547
|
process.env.NODE_ENV !== "production" && (Cw(r), uu(t, e)), yw();
|
|
17549
17548
|
var o = Object.assign({}, t, {
|
|
17550
17549
|
plugins: e
|
|
17551
17550
|
}), i = uw(r);
|
|
17552
17551
|
if (process.env.NODE_ENV !== "production") {
|
|
17553
17552
|
var n = tn(o.content), a = i.length > 1;
|
|
17554
|
-
|
|
17553
|
+
dr(n && a, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
|
|
17555
17554
|
|
|
17556
17555
|
`, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
|
|
17557
17556
|
|
|
@@ -17564,9 +17563,9 @@ function di(r, t) {
|
|
|
17564
17563
|
}, []);
|
|
17565
17564
|
return tn(r) ? s[0] : s;
|
|
17566
17565
|
}
|
|
17567
|
-
di.defaultProps =
|
|
17566
|
+
di.defaultProps = ue;
|
|
17568
17567
|
di.setDefaultProps = Tw;
|
|
17569
|
-
di.currentInput =
|
|
17568
|
+
di.currentInput = We;
|
|
17570
17569
|
Object.assign({}, Xm, {
|
|
17571
17570
|
effect: function(t) {
|
|
17572
17571
|
var e = t.state, o = {
|
|
@@ -17828,7 +17827,7 @@ ce({
|
|
|
17828
17827
|
},
|
|
17829
17828
|
setup(r, { slots: t }) {
|
|
17830
17829
|
const e = S(null);
|
|
17831
|
-
return
|
|
17830
|
+
return xr(() => {
|
|
17832
17831
|
const { updateDelay: o, editor: i, pluginKey: n, shouldShow: a, tippyOptions: s } = r;
|
|
17833
17832
|
i.registerPlugin(gu({
|
|
17834
17833
|
updateDelay: o,
|
|
@@ -17865,7 +17864,7 @@ class Iw extends X1 {
|
|
|
17865
17864
|
constructor(t = {}) {
|
|
17866
17865
|
return super(t), this.contentComponent = null, this.appContext = null, this.reactiveState = uc(this.view.state), this.reactiveExtensionStorage = uc(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
|
|
17867
17866
|
this.reactiveState.value = e, this.reactiveExtensionStorage.value = this.extensionStorage;
|
|
17868
|
-
}),
|
|
17867
|
+
}), Dr(this);
|
|
17869
17868
|
}
|
|
17870
17869
|
get state() {
|
|
17871
17870
|
return this.reactiveState ? this.reactiveState.value : this.view.state;
|
|
@@ -17951,7 +17950,7 @@ ce({
|
|
|
17951
17950
|
},
|
|
17952
17951
|
setup(r, { slots: t }) {
|
|
17953
17952
|
const e = S(null);
|
|
17954
|
-
return
|
|
17953
|
+
return xr(() => {
|
|
17955
17954
|
const { pluginKey: o, editor: i, tippyOptions: n, shouldShow: a } = r;
|
|
17956
17955
|
i.registerPlugin(fu({
|
|
17957
17956
|
pluginKey: o,
|
|
@@ -18011,14 +18010,14 @@ ce({
|
|
|
18011
18010
|
});
|
|
18012
18011
|
const Rw = (r = {}) => {
|
|
18013
18012
|
const t = Yu();
|
|
18014
|
-
return
|
|
18013
|
+
return xr(() => {
|
|
18015
18014
|
t.value = new Iw(r);
|
|
18016
18015
|
}), ja(() => {
|
|
18017
18016
|
var e, o, i;
|
|
18018
18017
|
const n = (e = t.value) === null || e === void 0 ? void 0 : e.options.element, a = n == null ? void 0 : n.cloneNode(!0);
|
|
18019
18018
|
(o = n == null ? void 0 : n.parentNode) === null || o === void 0 || o.replaceChild(a, n), (i = t.value) === null || i === void 0 || i.destroy();
|
|
18020
18019
|
}), t;
|
|
18021
|
-
}, $w = /^\s*>\s$/, _w =
|
|
18020
|
+
}, $w = /^\s*>\s$/, _w = _e.create({
|
|
18022
18021
|
name: "blockquote",
|
|
18023
18022
|
addOptions() {
|
|
18024
18023
|
return {
|
|
@@ -18056,7 +18055,7 @@ const Rw = (r = {}) => {
|
|
|
18056
18055
|
})
|
|
18057
18056
|
];
|
|
18058
18057
|
}
|
|
18059
|
-
}), zw = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, Fw = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, Hw = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, jw = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, Vw =
|
|
18058
|
+
}), zw = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, Fw = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, Hw = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, jw = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, Vw = gr.create({
|
|
18060
18059
|
name: "bold",
|
|
18061
18060
|
addOptions() {
|
|
18062
18061
|
return {
|
|
@@ -18122,7 +18121,7 @@ const Rw = (r = {}) => {
|
|
|
18122
18121
|
})
|
|
18123
18122
|
];
|
|
18124
18123
|
}
|
|
18125
|
-
}), Ww = "listItem", xc = "textStyle", gc = /^\s*([-+*])\s$/, qw =
|
|
18124
|
+
}), Ww = "listItem", xc = "textStyle", gc = /^\s*([-+*])\s$/, qw = _e.create({
|
|
18126
18125
|
name: "bulletList",
|
|
18127
18126
|
addOptions() {
|
|
18128
18127
|
return {
|
|
@@ -18170,7 +18169,7 @@ const Rw = (r = {}) => {
|
|
|
18170
18169
|
r
|
|
18171
18170
|
];
|
|
18172
18171
|
}
|
|
18173
|
-
}), Uw = /(^|[^`])`([^`]+)`(?!`)/, Kw = /(^|[^`])`([^`]+)`(?!`)/g, Gw =
|
|
18172
|
+
}), Uw = /(^|[^`])`([^`]+)`(?!`)/, Kw = /(^|[^`])`([^`]+)`(?!`)/g, Gw = gr.create({
|
|
18174
18173
|
name: "code",
|
|
18175
18174
|
addOptions() {
|
|
18176
18175
|
return {
|
|
@@ -18216,7 +18215,7 @@ const Rw = (r = {}) => {
|
|
|
18216
18215
|
})
|
|
18217
18216
|
];
|
|
18218
18217
|
}
|
|
18219
|
-
}), Jw = /^```([a-z]+)?[\s\n]$/, Yw = /^~~~([a-z]+)?[\s\n]$/, Xw =
|
|
18218
|
+
}), Jw = /^```([a-z]+)?[\s\n]$/, Yw = /^~~~([a-z]+)?[\s\n]$/, Xw = _e.create({
|
|
18220
18219
|
name: "codeBlock",
|
|
18221
18220
|
addOptions() {
|
|
18222
18221
|
return {
|
|
@@ -18343,7 +18342,7 @@ const Rw = (r = {}) => {
|
|
|
18343
18342
|
})
|
|
18344
18343
|
];
|
|
18345
18344
|
}
|
|
18346
|
-
}), Qw =
|
|
18345
|
+
}), Qw = _e.create({
|
|
18347
18346
|
name: "doc",
|
|
18348
18347
|
topNode: !0,
|
|
18349
18348
|
content: "block+"
|
|
@@ -18444,7 +18443,7 @@ const e2 = jt.create({
|
|
|
18444
18443
|
];
|
|
18445
18444
|
}
|
|
18446
18445
|
});
|
|
18447
|
-
class
|
|
18446
|
+
class vt extends Z {
|
|
18448
18447
|
/**
|
|
18449
18448
|
Create a gap cursor.
|
|
18450
18449
|
*/
|
|
@@ -18453,13 +18452,13 @@ class kt extends Z {
|
|
|
18453
18452
|
}
|
|
18454
18453
|
map(t, e) {
|
|
18455
18454
|
let o = t.resolve(e.map(this.head));
|
|
18456
|
-
return
|
|
18455
|
+
return vt.valid(o) ? new vt(o) : Z.near(o);
|
|
18457
18456
|
}
|
|
18458
18457
|
content() {
|
|
18459
18458
|
return F.empty;
|
|
18460
18459
|
}
|
|
18461
18460
|
eq(t) {
|
|
18462
|
-
return t instanceof
|
|
18461
|
+
return t instanceof vt && t.head == this.head;
|
|
18463
18462
|
}
|
|
18464
18463
|
toJSON() {
|
|
18465
18464
|
return { type: "gapcursor", pos: this.head };
|
|
@@ -18470,7 +18469,7 @@ class kt extends Z {
|
|
|
18470
18469
|
static fromJSON(t, e) {
|
|
18471
18470
|
if (typeof e.pos != "number")
|
|
18472
18471
|
throw new RangeError("Invalid input for GapCursor.fromJSON");
|
|
18473
|
-
return new
|
|
18472
|
+
return new vt(t.resolve(e.pos));
|
|
18474
18473
|
}
|
|
18475
18474
|
/**
|
|
18476
18475
|
@internal
|
|
@@ -18496,7 +18495,7 @@ class kt extends Z {
|
|
|
18496
18495
|
*/
|
|
18497
18496
|
static findGapCursorFrom(t, e, o = !1) {
|
|
18498
18497
|
t: for (; ; ) {
|
|
18499
|
-
if (!o &&
|
|
18498
|
+
if (!o && vt.valid(t))
|
|
18500
18499
|
return t;
|
|
18501
18500
|
let i = t.pos, n = null;
|
|
18502
18501
|
for (let a = t.depth; ; a--) {
|
|
@@ -18508,7 +18507,7 @@ class kt extends Z {
|
|
|
18508
18507
|
return null;
|
|
18509
18508
|
i += e;
|
|
18510
18509
|
let l = t.doc.resolve(i);
|
|
18511
|
-
if (
|
|
18510
|
+
if (vt.valid(l))
|
|
18512
18511
|
return l;
|
|
18513
18512
|
}
|
|
18514
18513
|
for (; ; ) {
|
|
@@ -18522,16 +18521,16 @@ class kt extends Z {
|
|
|
18522
18521
|
}
|
|
18523
18522
|
n = a, i += e;
|
|
18524
18523
|
let s = t.doc.resolve(i);
|
|
18525
|
-
if (
|
|
18524
|
+
if (vt.valid(s))
|
|
18526
18525
|
return s;
|
|
18527
18526
|
}
|
|
18528
18527
|
return null;
|
|
18529
18528
|
}
|
|
18530
18529
|
}
|
|
18531
18530
|
}
|
|
18532
|
-
|
|
18533
|
-
|
|
18534
|
-
Z.jsonID("gapcursor",
|
|
18531
|
+
vt.prototype.visible = !1;
|
|
18532
|
+
vt.findFrom = vt.findGapCursorFrom;
|
|
18533
|
+
Z.jsonID("gapcursor", vt);
|
|
18535
18534
|
class hp {
|
|
18536
18535
|
constructor(t) {
|
|
18537
18536
|
this.pos = t;
|
|
@@ -18541,7 +18540,7 @@ class hp {
|
|
|
18541
18540
|
}
|
|
18542
18541
|
resolve(t) {
|
|
18543
18542
|
let e = t.resolve(this.pos);
|
|
18544
|
-
return
|
|
18543
|
+
return vt.valid(e) ? new vt(e) : Z.near(e);
|
|
18545
18544
|
}
|
|
18546
18545
|
}
|
|
18547
18546
|
function r2(r) {
|
|
@@ -18583,7 +18582,7 @@ function i2() {
|
|
|
18583
18582
|
props: {
|
|
18584
18583
|
decorations: l2,
|
|
18585
18584
|
createSelectionBetween(r, t, e) {
|
|
18586
|
-
return t.pos == e.pos &&
|
|
18585
|
+
return t.pos == e.pos && vt.valid(e) ? new vt(e) : null;
|
|
18587
18586
|
},
|
|
18588
18587
|
handleClick: a2,
|
|
18589
18588
|
handleKeyDown: n2,
|
|
@@ -18606,21 +18605,21 @@ function An(r, t) {
|
|
|
18606
18605
|
return !1;
|
|
18607
18606
|
l = !1, s = o.doc.resolve(t > 0 ? s.after() : s.before());
|
|
18608
18607
|
}
|
|
18609
|
-
let p =
|
|
18610
|
-
return p ? (i && i(o.tr.setSelection(new
|
|
18608
|
+
let p = vt.findGapCursorFrom(s, t, l);
|
|
18609
|
+
return p ? (i && i(o.tr.setSelection(new vt(p))), !0) : !1;
|
|
18611
18610
|
};
|
|
18612
18611
|
}
|
|
18613
18612
|
function a2(r, t, e) {
|
|
18614
18613
|
if (!r || !r.editable)
|
|
18615
18614
|
return !1;
|
|
18616
18615
|
let o = r.state.doc.resolve(t);
|
|
18617
|
-
if (!
|
|
18616
|
+
if (!vt.valid(o))
|
|
18618
18617
|
return !1;
|
|
18619
18618
|
let i = r.posAtCoords({ left: e.clientX, top: e.clientY });
|
|
18620
|
-
return i && i.inside > -1 && J.isSelectable(r.state.doc.nodeAt(i.inside)) ? !1 : (r.dispatch(r.state.tr.setSelection(new
|
|
18619
|
+
return i && i.inside > -1 && J.isSelectable(r.state.doc.nodeAt(i.inside)) ? !1 : (r.dispatch(r.state.tr.setSelection(new vt(o))), !0);
|
|
18621
18620
|
}
|
|
18622
18621
|
function s2(r, t) {
|
|
18623
|
-
if (t.inputType != "insertCompositionText" || !(r.state.selection instanceof
|
|
18622
|
+
if (t.inputType != "insertCompositionText" || !(r.state.selection instanceof vt))
|
|
18624
18623
|
return !1;
|
|
18625
18624
|
let { $from: e } = r.state.selection, o = e.parent.contentMatchAt(e.index()).findWrapping(r.state.schema.nodes.text);
|
|
18626
18625
|
if (!o)
|
|
@@ -18632,10 +18631,10 @@ function s2(r, t) {
|
|
|
18632
18631
|
return n.setSelection(Q.near(n.doc.resolve(e.pos + 1))), r.dispatch(n), !1;
|
|
18633
18632
|
}
|
|
18634
18633
|
function l2(r) {
|
|
18635
|
-
if (!(r.selection instanceof
|
|
18634
|
+
if (!(r.selection instanceof vt))
|
|
18636
18635
|
return null;
|
|
18637
18636
|
let t = document.createElement("div");
|
|
18638
|
-
return t.className = "ProseMirror-gapcursor", Tt.create(r.doc, [
|
|
18637
|
+
return t.className = "ProseMirror-gapcursor", Tt.create(r.doc, [Ee.widget(r.selection.head, t, { key: "gapcursor" })]);
|
|
18639
18638
|
}
|
|
18640
18639
|
const p2 = jt.create({
|
|
18641
18640
|
name: "gapCursor",
|
|
@@ -18655,7 +18654,7 @@ const p2 = jt.create({
|
|
|
18655
18654
|
allowGapCursor: (t = rt(q(r, "allowGapCursor", e))) !== null && t !== void 0 ? t : null
|
|
18656
18655
|
};
|
|
18657
18656
|
}
|
|
18658
|
-
}), d2 =
|
|
18657
|
+
}), d2 = _e.create({
|
|
18659
18658
|
name: "hardBreak",
|
|
18660
18659
|
addOptions() {
|
|
18661
18660
|
return {
|
|
@@ -18705,7 +18704,7 @@ const p2 = jt.create({
|
|
|
18705
18704
|
"Shift-Enter": () => this.editor.commands.setHardBreak()
|
|
18706
18705
|
};
|
|
18707
18706
|
}
|
|
18708
|
-
}), c2 =
|
|
18707
|
+
}), c2 = _e.create({
|
|
18709
18708
|
name: "heading",
|
|
18710
18709
|
addOptions() {
|
|
18711
18710
|
return {
|
|
@@ -18853,7 +18852,7 @@ var b2 = /* @__PURE__ */ function(r) {
|
|
|
18853
18852
|
}, t;
|
|
18854
18853
|
}(It);
|
|
18855
18854
|
const m2 = 500;
|
|
18856
|
-
class
|
|
18855
|
+
class Le {
|
|
18857
18856
|
constructor(t, e) {
|
|
18858
18857
|
this.items = t, this.eventCount = e;
|
|
18859
18858
|
}
|
|
@@ -18877,24 +18876,24 @@ class Ie {
|
|
|
18877
18876
|
return;
|
|
18878
18877
|
}
|
|
18879
18878
|
if (i) {
|
|
18880
|
-
d.push(new
|
|
18879
|
+
d.push(new He(c.map));
|
|
18881
18880
|
let u = c.step.map(i.slice(n)), x;
|
|
18882
|
-
u && a.maybeStep(u).doc && (x = a.mapping.maps[a.mapping.maps.length - 1], p.push(new
|
|
18881
|
+
u && a.maybeStep(u).doc && (x = a.mapping.maps[a.mapping.maps.length - 1], p.push(new He(x, void 0, void 0, p.length + d.length))), n--, x && i.appendMap(x, n);
|
|
18883
18882
|
} else
|
|
18884
18883
|
a.maybeStep(c.step);
|
|
18885
18884
|
if (c.selection)
|
|
18886
|
-
return s = i ? c.selection.map(i.slice(n)) : c.selection, l = new
|
|
18885
|
+
return s = i ? c.selection.map(i.slice(n)) : c.selection, l = new Le(this.items.slice(0, o).append(d.reverse().concat(p)), this.eventCount - 1), !1;
|
|
18887
18886
|
}, this.items.length, 0), { remaining: l, transform: a, selection: s };
|
|
18888
18887
|
}
|
|
18889
18888
|
// Create a new branch with the given transform added.
|
|
18890
18889
|
addTransform(t, e, o, i) {
|
|
18891
18890
|
let n = [], a = this.eventCount, s = this.items, l = !i && s.length ? s.get(s.length - 1) : null;
|
|
18892
18891
|
for (let d = 0; d < t.steps.length; d++) {
|
|
18893
|
-
let c = t.steps[d].invert(t.docs[d]), m = new
|
|
18892
|
+
let c = t.steps[d].invert(t.docs[d]), m = new He(t.mapping.maps[d], c, e), u;
|
|
18894
18893
|
(u = l && l.merge(m)) && (m = u, d ? n.pop() : s = s.slice(0, s.length - 1)), n.push(m), e && (a++, e = void 0), i || (l = m);
|
|
18895
18894
|
}
|
|
18896
18895
|
let p = a - o.depth;
|
|
18897
|
-
return p > x2 && (s = u2(s, p), a -= p), new
|
|
18896
|
+
return p > x2 && (s = u2(s, p), a -= p), new Le(s.append(n), a);
|
|
18898
18897
|
}
|
|
18899
18898
|
remapping(t, e) {
|
|
18900
18899
|
let o = new Wi();
|
|
@@ -18904,7 +18903,7 @@ class Ie {
|
|
|
18904
18903
|
}, t, e), o;
|
|
18905
18904
|
}
|
|
18906
18905
|
addMaps(t) {
|
|
18907
|
-
return this.eventCount == 0 ? this : new
|
|
18906
|
+
return this.eventCount == 0 ? this : new Le(this.items.append(t.map((e) => new He(e))), this.eventCount);
|
|
18908
18907
|
}
|
|
18909
18908
|
// When the collab module receives remote changes, the history has
|
|
18910
18909
|
// to know about those, so that it can adjust the steps that were
|
|
@@ -18926,14 +18925,14 @@ class Ie {
|
|
|
18926
18925
|
let x = n.maps[u];
|
|
18927
18926
|
if (m.step) {
|
|
18928
18927
|
let g = t.steps[u].invert(t.docs[u]), f = m.selection && m.selection.map(n.slice(l + 1, u));
|
|
18929
|
-
f && s++, o.push(new
|
|
18928
|
+
f && s++, o.push(new He(x, g, f));
|
|
18930
18929
|
} else
|
|
18931
|
-
o.push(new
|
|
18930
|
+
o.push(new He(x));
|
|
18932
18931
|
}, i);
|
|
18933
18932
|
let p = [];
|
|
18934
18933
|
for (let m = e; m < a; m++)
|
|
18935
|
-
p.push(new
|
|
18936
|
-
let d = this.items.slice(0, i).append(p).append(o), c = new
|
|
18934
|
+
p.push(new He(n.maps[m]));
|
|
18935
|
+
let d = this.items.slice(0, i).append(p).append(o), c = new Le(d, s);
|
|
18937
18936
|
return c.emptyItemCount() > m2 && (c = c.compress(this.items.length - o.length)), c;
|
|
18938
18937
|
}
|
|
18939
18938
|
emptyItemCount() {
|
|
@@ -18958,14 +18957,14 @@ class Ie {
|
|
|
18958
18957
|
if (o--, p && e.appendMap(p, o), l) {
|
|
18959
18958
|
let d = a.selection && a.selection.map(e.slice(o));
|
|
18960
18959
|
d && n++;
|
|
18961
|
-
let c = new
|
|
18960
|
+
let c = new He(p.invert(), l, d), m, u = i.length - 1;
|
|
18962
18961
|
(m = i.length && i[u].merge(c)) ? i[u] = m : i.push(c);
|
|
18963
18962
|
}
|
|
18964
18963
|
} else a.map && o--;
|
|
18965
|
-
}, this.items.length, 0), new
|
|
18964
|
+
}, this.items.length, 0), new Le(It.from(i.reverse()), n);
|
|
18966
18965
|
}
|
|
18967
18966
|
}
|
|
18968
|
-
|
|
18967
|
+
Le.empty = new Le(It.empty, 0);
|
|
18969
18968
|
function u2(r, t) {
|
|
18970
18969
|
let e;
|
|
18971
18970
|
return r.forEach((o, i) => {
|
|
@@ -18973,7 +18972,7 @@ function u2(r, t) {
|
|
|
18973
18972
|
return e = i, !1;
|
|
18974
18973
|
}), r.slice(e);
|
|
18975
18974
|
}
|
|
18976
|
-
class
|
|
18975
|
+
class He {
|
|
18977
18976
|
constructor(t, e, o, i) {
|
|
18978
18977
|
this.map = t, this.step = e, this.selection = o, this.mirrorOffset = i;
|
|
18979
18978
|
}
|
|
@@ -18981,11 +18980,11 @@ class Fe {
|
|
|
18981
18980
|
if (this.step && t.step && !t.selection) {
|
|
18982
18981
|
let e = t.step.merge(this.step);
|
|
18983
18982
|
if (e)
|
|
18984
|
-
return new
|
|
18983
|
+
return new He(e.getMap().invert(), e, this.selection);
|
|
18985
18984
|
}
|
|
18986
18985
|
}
|
|
18987
18986
|
}
|
|
18988
|
-
class
|
|
18987
|
+
class Tr {
|
|
18989
18988
|
constructor(t, e, o, i, n) {
|
|
18990
18989
|
this.done = t, this.undone = e, this.prevRanges = o, this.prevTime = i, this.prevComposition = n;
|
|
18991
18990
|
}
|
|
@@ -18995,16 +18994,16 @@ function g2(r, t, e, o) {
|
|
|
18995
18994
|
let i = e.getMeta(wo), n;
|
|
18996
18995
|
if (i)
|
|
18997
18996
|
return i.historyState;
|
|
18998
|
-
e.getMeta(y2) && (r = new
|
|
18997
|
+
e.getMeta(y2) && (r = new Tr(r.done, r.undone, null, 0, -1));
|
|
18999
18998
|
let a = e.getMeta("appendedTransaction");
|
|
19000
18999
|
if (e.steps.length == 0)
|
|
19001
19000
|
return r;
|
|
19002
19001
|
if (a && a.getMeta(wo))
|
|
19003
|
-
return a.getMeta(wo).redo ? new
|
|
19002
|
+
return a.getMeta(wo).redo ? new Tr(r.done.addTransform(e, void 0, o, Un(t)), r.undone, fc(e.mapping.maps), r.prevTime, r.prevComposition) : new Tr(r.done, r.undone.addTransform(e, void 0, o, Un(t)), null, r.prevTime, r.prevComposition);
|
|
19004
19003
|
if (e.getMeta("addToHistory") !== !1 && !(a && a.getMeta("addToHistory") === !1)) {
|
|
19005
19004
|
let s = e.getMeta("composition"), l = r.prevTime == 0 || !a && r.prevComposition != s && (r.prevTime < (e.time || 0) - o.newGroupDelay || !f2(e, r.prevRanges)), p = a ? Ls(r.prevRanges, e.mapping) : fc(e.mapping.maps);
|
|
19006
|
-
return new
|
|
19007
|
-
} else return (n = e.getMeta("rebased")) ? new
|
|
19005
|
+
return new Tr(r.done.addTransform(e, l ? t.selection.getBookmark() : void 0, o, Un(t)), Le.empty, p, e.time, s ?? r.prevComposition);
|
|
19006
|
+
} else return (n = e.getMeta("rebased")) ? new Tr(r.done.rebased(e, n), r.undone.rebased(e, n), Ls(r.prevRanges, e.mapping), r.prevTime, r.prevComposition) : new Tr(r.done.addMaps(e.mapping.maps), r.undone.addMaps(e.mapping.maps), Ls(r.prevRanges, e.mapping), r.prevTime, r.prevComposition);
|
|
19008
19007
|
}
|
|
19009
19008
|
function f2(r, t) {
|
|
19010
19009
|
if (!t)
|
|
@@ -19037,7 +19036,7 @@ function h2(r, t, e) {
|
|
|
19037
19036
|
let o = Un(t), i = wo.get(t).spec.config, n = (e ? r.undone : r.done).popEvent(t, o);
|
|
19038
19037
|
if (!n)
|
|
19039
19038
|
return null;
|
|
19040
|
-
let a = n.selection.resolve(n.transform.doc), s = (e ? r.done : r.undone).addTransform(n.transform, t.selection.getBookmark(), i, o), l = new
|
|
19039
|
+
let a = n.selection.resolve(n.transform.doc), s = (e ? r.done : r.undone).addTransform(n.transform, t.selection.getBookmark(), i, o), l = new Tr(e ? s : n.remaining, e ? n.remaining : s, null, 0, -1);
|
|
19041
19040
|
return n.transform.setSelection(a).setMeta(wo, { redo: e, historyState: l });
|
|
19042
19041
|
}
|
|
19043
19042
|
let Rs = !1, hc = null;
|
|
@@ -19062,7 +19061,7 @@ function w2(r = {}) {
|
|
|
19062
19061
|
key: wo,
|
|
19063
19062
|
state: {
|
|
19064
19063
|
init() {
|
|
19065
|
-
return new
|
|
19064
|
+
return new Tr(Le.empty, Le.empty, null, 0, -1);
|
|
19066
19065
|
},
|
|
19067
19066
|
apply(t, e, o) {
|
|
19068
19067
|
return g2(e, o, t, r);
|
|
@@ -19120,7 +19119,7 @@ const wu = yu(!1, !0), vu = yu(!0, !0), v2 = jt.create({
|
|
|
19120
19119
|
"Shift-Mod-я": () => this.editor.commands.redo()
|
|
19121
19120
|
};
|
|
19122
19121
|
}
|
|
19123
|
-
}), k2 =
|
|
19122
|
+
}), k2 = _e.create({
|
|
19124
19123
|
name: "horizontalRule",
|
|
19125
19124
|
addOptions() {
|
|
19126
19125
|
return {
|
|
@@ -19170,7 +19169,7 @@ const wu = yu(!1, !0), vu = yu(!0, !0), v2 = jt.create({
|
|
|
19170
19169
|
})
|
|
19171
19170
|
];
|
|
19172
19171
|
}
|
|
19173
|
-
}), S2 = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, C2 = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, M2 = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, E2 = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, T2 =
|
|
19172
|
+
}), S2 = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, C2 = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, M2 = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, E2 = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, T2 = gr.create({
|
|
19174
19173
|
name: "italic",
|
|
19175
19174
|
addOptions() {
|
|
19176
19175
|
return {
|
|
@@ -19235,7 +19234,7 @@ const wu = yu(!1, !0), vu = yu(!0, !0), v2 = jt.create({
|
|
|
19235
19234
|
})
|
|
19236
19235
|
];
|
|
19237
19236
|
}
|
|
19238
|
-
}), O2 =
|
|
19237
|
+
}), O2 = _e.create({
|
|
19239
19238
|
name: "listItem",
|
|
19240
19239
|
addOptions() {
|
|
19241
19240
|
return {
|
|
@@ -19263,7 +19262,7 @@ const wu = yu(!1, !0), vu = yu(!0, !0), v2 = jt.create({
|
|
|
19263
19262
|
"Shift-Tab": () => this.editor.commands.liftListItem(this.name)
|
|
19264
19263
|
};
|
|
19265
19264
|
}
|
|
19266
|
-
}), B2 = "listItem", yc = "textStyle", wc = /^(\d+)\.\s$/, P2 =
|
|
19265
|
+
}), B2 = "listItem", yc = "textStyle", wc = /^(\d+)\.\s$/, P2 = _e.create({
|
|
19267
19266
|
name: "orderedList",
|
|
19268
19267
|
addOptions() {
|
|
19269
19268
|
return {
|
|
@@ -19329,7 +19328,7 @@ const wu = yu(!1, !0), vu = yu(!0, !0), v2 = jt.create({
|
|
|
19329
19328
|
r
|
|
19330
19329
|
];
|
|
19331
19330
|
}
|
|
19332
|
-
}), A2 =
|
|
19331
|
+
}), A2 = _e.create({
|
|
19333
19332
|
name: "paragraph",
|
|
19334
19333
|
priority: 1e3,
|
|
19335
19334
|
addOptions() {
|
|
@@ -19357,7 +19356,7 @@ const wu = yu(!1, !0), vu = yu(!0, !0), v2 = jt.create({
|
|
|
19357
19356
|
"Mod-Alt-0": () => this.editor.commands.setParagraph()
|
|
19358
19357
|
};
|
|
19359
19358
|
}
|
|
19360
|
-
}), D2 = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, N2 = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, I2 =
|
|
19359
|
+
}), D2 = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, N2 = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, I2 = gr.create({
|
|
19361
19360
|
name: "strike",
|
|
19362
19361
|
addOptions() {
|
|
19363
19362
|
return {
|
|
@@ -19413,7 +19412,7 @@ const wu = yu(!1, !0), vu = yu(!0, !0), v2 = jt.create({
|
|
|
19413
19412
|
})
|
|
19414
19413
|
];
|
|
19415
19414
|
}
|
|
19416
|
-
}), L2 =
|
|
19415
|
+
}), L2 = _e.create({
|
|
19417
19416
|
name: "text",
|
|
19418
19417
|
group: "inline"
|
|
19419
19418
|
}), R2 = jt.create({
|
|
@@ -19567,7 +19566,7 @@ se.prototype = {
|
|
|
19567
19566
|
return i.j[r] = a, a;
|
|
19568
19567
|
}
|
|
19569
19568
|
};
|
|
19570
|
-
const et = (r, t, e, o, i) => r.ta(t, e, o, i),
|
|
19569
|
+
const et = (r, t, e, o, i) => r.ta(t, e, o, i), wt = (r, t, e, o, i) => r.tr(t, e, o, i), vc = (r, t, e, o, i) => r.ts(t, e, o, i), I = (r, t, e, o, i) => r.tt(t, e, o, i), lr = "WORD", Ol = "UWORD", Su = "ASCIINUMERICAL", Cu = "ALPHANUMERICAL", rn = "LOCALHOST", Bl = "TLD", Pl = "UTLD", Kn = "SCHEME", qo = "SLASH_SCHEME", yp = "NUM", Al = "WS", wp = "NL", Li = "OPENBRACE", Ri = "CLOSEBRACE", ba = "OPENBRACKET", ma = "CLOSEBRACKET", ua = "OPENPAREN", xa = "CLOSEPAREN", ga = "OPENANGLEBRACKET", fa = "CLOSEANGLEBRACKET", ha = "FULLWIDTHLEFTPAREN", ya = "FULLWIDTHRIGHTPAREN", wa = "LEFTCORNERBRACKET", va = "RIGHTCORNERBRACKET", ka = "LEFTWHITECORNERBRACKET", Sa = "RIGHTWHITECORNERBRACKET", Ca = "FULLWIDTHLESSTHAN", Ma = "FULLWIDTHGREATERTHAN", Ea = "AMPERSAND", Ta = "APOSTROPHE", Oa = "ASTERISK", Or = "AT", Ba = "BACKSLASH", Pa = "BACKTICK", Aa = "CARET", Ar = "COLON", vp = "COMMA", Da = "DOLLAR", je = "DOT", Na = "EQUALS", kp = "EXCLAMATION", Se = "HYPHEN", $i = "PERCENT", Ia = "PIPE", La = "PLUS", Ra = "POUND", _i = "QUERY", Sp = "QUOTE", Mu = "FULLWIDTHMIDDLEDOT", Cp = "SEMI", Ve = "SLASH", zi = "TILDE", $a = "UNDERSCORE", Eu = "EMOJI", _a = "SYM";
|
|
19571
19570
|
var Tu = /* @__PURE__ */ Object.freeze({
|
|
19572
19571
|
__proto__: null,
|
|
19573
19572
|
ALPHANUMERICAL: Cu,
|
|
@@ -19575,7 +19574,7 @@ var Tu = /* @__PURE__ */ Object.freeze({
|
|
|
19575
19574
|
APOSTROPHE: Ta,
|
|
19576
19575
|
ASCIINUMERICAL: Su,
|
|
19577
19576
|
ASTERISK: Oa,
|
|
19578
|
-
AT:
|
|
19577
|
+
AT: Or,
|
|
19579
19578
|
BACKSLASH: Ba,
|
|
19580
19579
|
BACKTICK: Pa,
|
|
19581
19580
|
CARET: Aa,
|
|
@@ -19583,10 +19582,10 @@ var Tu = /* @__PURE__ */ Object.freeze({
|
|
|
19583
19582
|
CLOSEBRACE: Ri,
|
|
19584
19583
|
CLOSEBRACKET: ma,
|
|
19585
19584
|
CLOSEPAREN: xa,
|
|
19586
|
-
COLON:
|
|
19585
|
+
COLON: Ar,
|
|
19587
19586
|
COMMA: vp,
|
|
19588
19587
|
DOLLAR: Da,
|
|
19589
|
-
DOT:
|
|
19588
|
+
DOT: je,
|
|
19590
19589
|
EMOJI: Eu,
|
|
19591
19590
|
EQUALS: Na,
|
|
19592
19591
|
EXCLAMATION: kp,
|
|
@@ -19595,7 +19594,7 @@ var Tu = /* @__PURE__ */ Object.freeze({
|
|
|
19595
19594
|
FULLWIDTHLESSTHAN: Ca,
|
|
19596
19595
|
FULLWIDTHMIDDLEDOT: Mu,
|
|
19597
19596
|
FULLWIDTHRIGHTPAREN: ya,
|
|
19598
|
-
HYPHEN:
|
|
19597
|
+
HYPHEN: Se,
|
|
19599
19598
|
LEFTCORNERBRACKET: wa,
|
|
19600
19599
|
LEFTWHITECORNERBRACKET: ka,
|
|
19601
19600
|
LOCALHOST: rn,
|
|
@@ -19615,7 +19614,7 @@ var Tu = /* @__PURE__ */ Object.freeze({
|
|
|
19615
19614
|
RIGHTWHITECORNERBRACKET: Sa,
|
|
19616
19615
|
SCHEME: Kn,
|
|
19617
19616
|
SEMI: Cp,
|
|
19618
|
-
SLASH:
|
|
19617
|
+
SLASH: Ve,
|
|
19619
19618
|
SLASH_SCHEME: qo,
|
|
19620
19619
|
SYM: _a,
|
|
19621
19620
|
TILDE: zi,
|
|
@@ -19623,59 +19622,59 @@ var Tu = /* @__PURE__ */ Object.freeze({
|
|
|
19623
19622
|
UNDERSCORE: $a,
|
|
19624
19623
|
UTLD: Pl,
|
|
19625
19624
|
UWORD: Ol,
|
|
19626
|
-
WORD:
|
|
19625
|
+
WORD: lr,
|
|
19627
19626
|
WS: Al
|
|
19628
19627
|
});
|
|
19629
|
-
const
|
|
19628
|
+
const ar = /[a-z]/, gi = new RegExp("\\p{L}", "u"), _s = new RegExp("\\p{Emoji}", "u"), sr = /\d/, zs = /\s/, kc = "\r", Fs = `
|
|
19630
19629
|
`, V2 = "️", W2 = "", Hs = "";
|
|
19631
19630
|
let Dn = null, Nn = null;
|
|
19632
19631
|
function q2(r = []) {
|
|
19633
19632
|
const t = {};
|
|
19634
19633
|
se.groups = t;
|
|
19635
19634
|
const e = new se();
|
|
19636
|
-
Dn == null && (Dn = Sc($2)), Nn == null && (Nn = Sc(_2)), I(e, "'", Ta), I(e, "{", Li), I(e, "}", Ri), I(e, "[", ba), I(e, "]", ma), I(e, "(", ua), I(e, ")", xa), I(e, "<", ga), I(e, ">", fa), I(e, "(", ha), I(e, ")", ya), I(e, "「", wa), I(e, "」", va), I(e, "『", ka), I(e, "』", Sa), I(e, "<", Ca), I(e, ">", Ma), I(e, "&", Ea), I(e, "*", Oa), I(e, "@",
|
|
19637
|
-
const o =
|
|
19635
|
+
Dn == null && (Dn = Sc($2)), Nn == null && (Nn = Sc(_2)), I(e, "'", Ta), I(e, "{", Li), I(e, "}", Ri), I(e, "[", ba), I(e, "]", ma), I(e, "(", ua), I(e, ")", xa), I(e, "<", ga), I(e, ">", fa), I(e, "(", ha), I(e, ")", ya), I(e, "「", wa), I(e, "」", va), I(e, "『", ka), I(e, "』", Sa), I(e, "<", Ca), I(e, ">", Ma), I(e, "&", Ea), I(e, "*", Oa), I(e, "@", Or), I(e, "`", Pa), I(e, "^", Aa), I(e, ":", Ar), I(e, ",", vp), I(e, "$", Da), I(e, ".", je), I(e, "=", Na), I(e, "!", kp), I(e, "-", Se), I(e, "%", $i), I(e, "|", Ia), I(e, "+", La), I(e, "#", Ra), I(e, "?", _i), I(e, '"', Sp), I(e, "/", Ve), I(e, ";", Cp), I(e, "~", zi), I(e, "_", $a), I(e, "\\", Ba), I(e, "・", Mu);
|
|
19636
|
+
const o = wt(e, sr, yp, {
|
|
19638
19637
|
[Cl]: !0
|
|
19639
19638
|
});
|
|
19640
|
-
|
|
19641
|
-
const i =
|
|
19639
|
+
wt(o, sr, o);
|
|
19640
|
+
const i = wt(o, ar, Su, {
|
|
19642
19641
|
[Ii]: !0
|
|
19643
|
-
}), n =
|
|
19642
|
+
}), n = wt(o, gi, Cu, {
|
|
19644
19643
|
[Ci]: !0
|
|
19645
|
-
}), a =
|
|
19644
|
+
}), a = wt(e, ar, lr, {
|
|
19646
19645
|
[Ml]: !0
|
|
19647
19646
|
});
|
|
19648
|
-
|
|
19649
|
-
const s =
|
|
19647
|
+
wt(a, sr, i), wt(a, ar, a), wt(i, sr, i), wt(i, ar, i);
|
|
19648
|
+
const s = wt(e, gi, Ol, {
|
|
19650
19649
|
[El]: !0
|
|
19651
19650
|
});
|
|
19652
|
-
|
|
19651
|
+
wt(s, ar), wt(s, sr, n), wt(s, gi, s), wt(n, sr, n), wt(n, ar), wt(n, gi, n);
|
|
19653
19652
|
const l = I(e, Fs, wp, {
|
|
19654
19653
|
[$s]: !0
|
|
19655
19654
|
}), p = I(e, kc, Al, {
|
|
19656
19655
|
[$s]: !0
|
|
19657
|
-
}), d =
|
|
19656
|
+
}), d = wt(e, zs, Al, {
|
|
19658
19657
|
[$s]: !0
|
|
19659
19658
|
});
|
|
19660
|
-
I(e, Hs, d), I(p, Fs, l), I(p, Hs, d),
|
|
19661
|
-
const c =
|
|
19659
|
+
I(e, Hs, d), I(p, Fs, l), I(p, Hs, d), wt(p, zs, d), I(d, kc), I(d, Fs), wt(d, zs, d), I(d, Hs, d);
|
|
19660
|
+
const c = wt(e, _s, Eu, {
|
|
19662
19661
|
[ku]: !0
|
|
19663
19662
|
});
|
|
19664
|
-
I(c, "#"),
|
|
19663
|
+
I(c, "#"), wt(c, _s, c), I(c, V2, c);
|
|
19665
19664
|
const m = I(c, W2);
|
|
19666
|
-
I(m, "#"),
|
|
19667
|
-
const u = [[
|
|
19665
|
+
I(m, "#"), wt(m, _s, c);
|
|
19666
|
+
const u = [[ar, a], [sr, i]], x = [[ar, null], [gi, s], [sr, n]];
|
|
19668
19667
|
for (let g = 0; g < Dn.length; g++)
|
|
19669
|
-
|
|
19668
|
+
Cr(e, Dn[g], Bl, lr, u);
|
|
19670
19669
|
for (let g = 0; g < Nn.length; g++)
|
|
19671
|
-
|
|
19670
|
+
Cr(e, Nn[g], Pl, Ol, x);
|
|
19672
19671
|
uo(Bl, {
|
|
19673
19672
|
tld: !0,
|
|
19674
19673
|
ascii: !0
|
|
19675
19674
|
}, t), uo(Pl, {
|
|
19676
19675
|
utld: !0,
|
|
19677
19676
|
alpha: !0
|
|
19678
|
-
}, t),
|
|
19677
|
+
}, t), Cr(e, "file", Kn, lr, u), Cr(e, "mailto", Kn, lr, u), Cr(e, "http", qo, lr, u), Cr(e, "https", qo, lr, u), Cr(e, "ftp", qo, lr, u), Cr(e, "ftps", qo, lr, u), uo(Kn, {
|
|
19679
19678
|
scheme: !0,
|
|
19680
19679
|
ascii: !0
|
|
19681
19680
|
}, t), uo(qo, {
|
|
@@ -19688,7 +19687,7 @@ function q2(r = []) {
|
|
|
19688
19687
|
} : {
|
|
19689
19688
|
[F2]: !0
|
|
19690
19689
|
};
|
|
19691
|
-
f.indexOf("-") >= 0 ? w[Tl] = !0 :
|
|
19690
|
+
f.indexOf("-") >= 0 ? w[Tl] = !0 : ar.test(f) ? sr.test(f) ? w[Ii] = !0 : w[Ml] = !0 : w[Cl] = !0, vc(e, f, f, w);
|
|
19692
19691
|
}
|
|
19693
19692
|
return vc(e, "localhost", rn, {
|
|
19694
19693
|
ascii: !0
|
|
@@ -19728,7 +19727,7 @@ function U2(r) {
|
|
|
19728
19727
|
}
|
|
19729
19728
|
return t;
|
|
19730
19729
|
}
|
|
19731
|
-
function
|
|
19730
|
+
function Cr(r, t, e, o, i) {
|
|
19732
19731
|
let n;
|
|
19733
19732
|
const a = t.length;
|
|
19734
19733
|
for (let s = 0; s < a - 1; s++) {
|
|
@@ -19983,40 +19982,40 @@ const Mc = is("email", {
|
|
|
19983
19982
|
*/
|
|
19984
19983
|
hasProtocol() {
|
|
19985
19984
|
const r = this.tk;
|
|
19986
|
-
return r.length >= 2 && r[0].t !== rn && r[1].t ===
|
|
19985
|
+
return r.length >= 2 && r[0].t !== rn && r[1].t === Ar;
|
|
19987
19986
|
}
|
|
19988
|
-
}),
|
|
19987
|
+
}), ve = (r) => new se(r);
|
|
19989
19988
|
function G2({
|
|
19990
19989
|
groups: r
|
|
19991
19990
|
}) {
|
|
19992
|
-
const t = r.domain.concat([Ea, Oa,
|
|
19991
|
+
const t = r.domain.concat([Ea, Oa, Or, Ba, Pa, Aa, Da, Na, Se, yp, $i, Ia, La, Ra, Ve, _a, zi, $a]), e = [Ta, Ar, vp, je, kp, $i, _i, Sp, Cp, ga, fa, Li, Ri, ma, ba, ua, xa, ha, ya, wa, va, ka, Sa, Ca, Ma], o = [Ea, Ta, Oa, Ba, Pa, Aa, Da, Na, Se, Li, Ri, $i, Ia, La, Ra, _i, Ve, _a, zi, $a], i = ve(), n = I(i, zi);
|
|
19993
19992
|
et(n, o, n), et(n, r.domain, n);
|
|
19994
|
-
const a =
|
|
19993
|
+
const a = ve(), s = ve(), l = ve();
|
|
19995
19994
|
et(i, r.domain, a), et(i, r.scheme, s), et(i, r.slashscheme, l), et(a, o, n), et(a, r.domain, a);
|
|
19996
|
-
const p = I(a,
|
|
19997
|
-
I(n,
|
|
19998
|
-
const d = I(n,
|
|
19995
|
+
const p = I(a, Or);
|
|
19996
|
+
I(n, Or, p), I(s, Or, p), I(l, Or, p);
|
|
19997
|
+
const d = I(n, je);
|
|
19999
19998
|
et(d, o, n), et(d, r.domain, n);
|
|
20000
|
-
const c =
|
|
19999
|
+
const c = ve();
|
|
20001
20000
|
et(p, r.domain, c), et(c, r.domain, c);
|
|
20002
|
-
const m = I(c,
|
|
20001
|
+
const m = I(c, je);
|
|
20003
20002
|
et(m, r.domain, c);
|
|
20004
|
-
const u =
|
|
20003
|
+
const u = ve(Mc);
|
|
20005
20004
|
et(m, r.tld, u), et(m, r.utld, u), I(p, rn, u);
|
|
20006
|
-
const x = I(c,
|
|
20007
|
-
I(x,
|
|
20008
|
-
const g = I(u,
|
|
20005
|
+
const x = I(c, Se);
|
|
20006
|
+
I(x, Se, x), et(x, r.domain, c), et(u, r.domain, c), I(u, je, m), I(u, Se, x);
|
|
20007
|
+
const g = I(u, Ar);
|
|
20009
20008
|
et(g, r.numeric, Mc);
|
|
20010
|
-
const f = I(a,
|
|
20011
|
-
I(f,
|
|
20012
|
-
const w =
|
|
20013
|
-
et(y, r.tld, w), et(y, r.utld, w), et(w, r.domain, a), et(w, o, n), I(w,
|
|
20014
|
-
const k = I(w,
|
|
20009
|
+
const f = I(a, Se), y = I(a, je);
|
|
20010
|
+
I(f, Se, f), et(f, r.domain, a), et(y, o, n), et(y, r.domain, a);
|
|
20011
|
+
const w = ve(In);
|
|
20012
|
+
et(y, r.tld, w), et(y, r.utld, w), et(w, r.domain, a), et(w, o, n), I(w, je, y), I(w, Se, f), I(w, Or, p);
|
|
20013
|
+
const k = I(w, Ar), h = ve(In);
|
|
20015
20014
|
et(k, r.numeric, h);
|
|
20016
|
-
const B =
|
|
20017
|
-
et(B, t, B), et(B, e, M), et(M, t, B), et(M, e, M), I(w,
|
|
20018
|
-
const A = I(s,
|
|
20019
|
-
et(s, r.domain, a), I(s,
|
|
20015
|
+
const B = ve(In), M = ve();
|
|
20016
|
+
et(B, t, B), et(B, e, M), et(M, t, B), et(M, e, M), I(w, Ve, B), I(h, Ve, B);
|
|
20017
|
+
const A = I(s, Ar), R = I(l, Ar), H = I(R, Ve), P = I(H, Ve);
|
|
20018
|
+
et(s, r.domain, a), I(s, je, y), I(s, Se, f), et(l, r.domain, a), I(l, je, y), I(l, Se, f), et(A, r.domain, B), I(A, Ve, B), I(A, _i, B), et(P, r.domain, B), et(P, t, B), I(P, Ve, B);
|
|
20020
20019
|
const E = [
|
|
20021
20020
|
[Li, Ri],
|
|
20022
20021
|
// {}
|
|
@@ -20038,9 +20037,9 @@ function G2({
|
|
|
20038
20037
|
for (let z = 0; z < E.length; z++) {
|
|
20039
20038
|
const [X, bt] = E[z], ut = I(B, X);
|
|
20040
20039
|
I(M, X, ut), I(ut, bt, B);
|
|
20041
|
-
const it =
|
|
20040
|
+
const it = ve(In);
|
|
20042
20041
|
et(ut, t, it);
|
|
20043
|
-
const K =
|
|
20042
|
+
const K = ve();
|
|
20044
20043
|
et(ut, e), et(it, t, it), et(it, e, K), et(K, t, it), et(K, e, K), I(it, bt, B), I(K, bt, B);
|
|
20045
20044
|
}
|
|
20046
20045
|
return I(i, rn, w), I(i, wp, K2), {
|
|
@@ -20223,7 +20222,7 @@ function oo(r, t) {
|
|
|
20223
20222
|
"i"
|
|
20224
20223
|
));
|
|
20225
20224
|
}
|
|
20226
|
-
const nv =
|
|
20225
|
+
const nv = gr.create({
|
|
20227
20226
|
name: "link",
|
|
20228
20227
|
priority: 1e3,
|
|
20229
20228
|
keepOnSplit: !1,
|
|
@@ -20437,7 +20436,7 @@ const nv = xr.create({
|
|
|
20437
20436
|
return Qu(() => {
|
|
20438
20437
|
var P;
|
|
20439
20438
|
(P = w.value) == null || P.destroy();
|
|
20440
|
-
}),
|
|
20439
|
+
}), xr(() => {
|
|
20441
20440
|
k();
|
|
20442
20441
|
}), (P, E) => (v(), C("div", null, [
|
|
20443
20442
|
G(vo, {
|
|
@@ -20632,9 +20631,9 @@ const Mv = /* @__PURE__ */ ns(kv, [["render", Cv]]), Ev = {
|
|
|
20632
20631
|
const e = t, o = function() {
|
|
20633
20632
|
e("firstMediaButtonFunction");
|
|
20634
20633
|
};
|
|
20635
|
-
return
|
|
20634
|
+
return Br("closeMediaLibraryModal", () => {
|
|
20636
20635
|
o();
|
|
20637
|
-
}), (n, a) => (v(), xt(
|
|
20636
|
+
}), (n, a) => (v(), xt(zr, {
|
|
20638
20637
|
title: r.title,
|
|
20639
20638
|
showModalBuilder: r.open,
|
|
20640
20639
|
onCloseMainModalBuilder: o,
|
|
@@ -20668,13 +20667,13 @@ function St(r) {
|
|
|
20668
20667
|
let e = (t = r.value.$el) != null ? t : r.value;
|
|
20669
20668
|
return e instanceof Node ? e : null;
|
|
20670
20669
|
}
|
|
20671
|
-
function
|
|
20670
|
+
function Re(r, t, ...e) {
|
|
20672
20671
|
if (r in t) {
|
|
20673
20672
|
let i = t[r];
|
|
20674
20673
|
return typeof i == "function" ? i(...e) : i;
|
|
20675
20674
|
}
|
|
20676
20675
|
let o = new Error(`Tried to handle "${r}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((i) => `"${i}"`).join(", ")}.`);
|
|
20677
|
-
throw Error.captureStackTrace && Error.captureStackTrace(o,
|
|
20676
|
+
throw Error.captureStackTrace && Error.captureStackTrace(o, Re), o;
|
|
20678
20677
|
}
|
|
20679
20678
|
var Av = Object.defineProperty, Dv = (r, t, e) => t in r ? Av(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, Bc = (r, t, e) => (Dv(r, typeof t != "symbol" ? t + "" : t, e), e);
|
|
20680
20679
|
let Nv = class {
|
|
@@ -20713,7 +20712,7 @@ let Pc = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "butt
|
|
|
20713
20712
|
var Lv = ((r) => (r[r.First = 1] = "First", r[r.Previous = 2] = "Previous", r[r.Next = 4] = "Next", r[r.Last = 8] = "Last", r[r.WrapAround = 16] = "WrapAround", r[r.NoScroll = 32] = "NoScroll", r))(Lv || {}), Rv = ((r) => (r[r.Error = 0] = "Error", r[r.Overflow = 1] = "Overflow", r[r.Success = 2] = "Success", r[r.Underflow = 3] = "Underflow", r))(Rv || {}), $v = ((r) => (r[r.Previous = -1] = "Previous", r[r.Next = 1] = "Next", r))($v || {}), Op = ((r) => (r[r.Strict = 0] = "Strict", r[r.Loose = 1] = "Loose", r))(Op || {});
|
|
20714
20713
|
function Du(r, t = 0) {
|
|
20715
20714
|
var e;
|
|
20716
|
-
return r === ((e = Iv(r)) == null ? void 0 : e.body) ? !1 :
|
|
20715
|
+
return r === ((e = Iv(r)) == null ? void 0 : e.body) ? !1 : Re(t, { 0() {
|
|
20717
20716
|
return r.matches(Pc);
|
|
20718
20717
|
}, 1() {
|
|
20719
20718
|
let o = r;
|
|
@@ -20790,7 +20789,7 @@ function Ac(r, t) {
|
|
|
20790
20789
|
}
|
|
20791
20790
|
function qv(r, t) {
|
|
20792
20791
|
let e = S(Ac(r.value.type, r.value.as));
|
|
20793
|
-
return
|
|
20792
|
+
return xr(() => {
|
|
20794
20793
|
e.value = Ac(r.value.type, r.value.as);
|
|
20795
20794
|
}), an(() => {
|
|
20796
20795
|
var o;
|
|
@@ -20816,7 +20815,7 @@ function ci({ visible: r = !0, features: t = 0, ourProps: e, theirProps: o, ...i
|
|
|
20816
20815
|
if (r || t & 2 && a.static) return Vs(s);
|
|
20817
20816
|
if (t & 1) {
|
|
20818
20817
|
let l = (n = a.unmount) == null || n ? 0 : 1;
|
|
20819
|
-
return
|
|
20818
|
+
return Re(l, { 0() {
|
|
20820
20819
|
return null;
|
|
20821
20820
|
}, 1() {
|
|
20822
20821
|
return Vs({ ...i, props: { ...a, hidden: !0, style: { display: "none" } } });
|
|
@@ -20891,7 +20890,7 @@ function Xv() {
|
|
|
20891
20890
|
return Wr($u, null);
|
|
20892
20891
|
}
|
|
20893
20892
|
function Qv(r) {
|
|
20894
|
-
|
|
20893
|
+
Br($u, r);
|
|
20895
20894
|
}
|
|
20896
20895
|
var Pt = ((r) => (r.Space = " ", r.Enter = "Enter", r.Escape = "Escape", r.Backspace = "Backspace", r.Delete = "Delete", r.ArrowLeft = "ArrowLeft", r.ArrowUp = "ArrowUp", r.ArrowRight = "ArrowRight", r.ArrowDown = "ArrowDown", r.Home = "Home", r.End = "End", r.PageUp = "PageUp", r.PageDown = "PageDown", r.Tab = "Tab", r))(Pt || {});
|
|
20897
20896
|
function Zv(r) {
|
|
@@ -21001,7 +21000,7 @@ let un = ce({ name: "Listbox", emits: { "update:modelValue": (r) => !0 }, props:
|
|
|
21001
21000
|
let h = d.value !== null ? l.value[d.value] : null, B = zv(k(l.value.slice()), (A) => St(A.dataRef.domRef)), M = h ? B.indexOf(h) : null;
|
|
21002
21001
|
return M === -1 && (M = null), { options: B, activeOptionIndex: M };
|
|
21003
21002
|
}
|
|
21004
|
-
let u = $(() => r.multiple ? 1 : 0), [x, g] = Ov($(() => r.modelValue), (k) => o("update:modelValue", k), $(() => r.defaultValue)), f = $(() => x.value === void 0 ?
|
|
21003
|
+
let u = $(() => r.multiple ? 1 : 0), [x, g] = Ov($(() => r.modelValue), (k) => o("update:modelValue", k), $(() => r.defaultValue)), f = $(() => x.value === void 0 ? Re(u.value, { 1: [], 0: void 0 }) : x.value), y = { listboxState: i, value: f, mode: u, compare(k, h) {
|
|
21005
21004
|
if (typeof r.by == "string") {
|
|
21006
21005
|
let B = r.by;
|
|
21007
21006
|
return (k == null ? void 0 : k[B]) === (h == null ? void 0 : h[B]);
|
|
@@ -21035,7 +21034,7 @@ let un = ce({ name: "Listbox", emits: { "update:modelValue": (r) => !0 }, props:
|
|
|
21035
21034
|
}, theirOnChange(k) {
|
|
21036
21035
|
r.disabled || g(k);
|
|
21037
21036
|
}, select(k) {
|
|
21038
|
-
r.disabled || g(
|
|
21037
|
+
r.disabled || g(Re(u.value, { 0: () => k, 1: () => {
|
|
21039
21038
|
let h = Kt(y.value.value).slice(), B = Kt(k), M = h.findIndex((A) => y.compare(B, Kt(A)));
|
|
21040
21039
|
return M === -1 ? h.push(B) : h.splice(M, 1), h;
|
|
21041
21040
|
} }));
|
|
@@ -21043,12 +21042,12 @@ let un = ce({ name: "Listbox", emits: { "update:modelValue": (r) => !0 }, props:
|
|
|
21043
21042
|
Wv([a, s], (k, h) => {
|
|
21044
21043
|
var B;
|
|
21045
21044
|
y.closeListbox(), Du(h, Op.Loose) || (k.preventDefault(), (B = St(a)) == null || B.focus());
|
|
21046
|
-
}, $(() => i.value === 0)),
|
|
21045
|
+
}, $(() => i.value === 0)), Br(Hu, y), Qv($(() => Re(i.value, { 0: nn.Open, 1: nn.Closed })));
|
|
21047
21046
|
let w = $(() => {
|
|
21048
21047
|
var k;
|
|
21049
21048
|
return (k = St(a)) == null ? void 0 : k.closest("form");
|
|
21050
21049
|
});
|
|
21051
|
-
return
|
|
21050
|
+
return xr(() => {
|
|
21052
21051
|
ot([w], () => {
|
|
21053
21052
|
if (!w.value || r.defaultValue === void 0) return;
|
|
21054
21053
|
function k() {
|
|
@@ -21138,9 +21137,9 @@ let xn = ce({ name: "ListboxButton", props: { as: { type: [Object, String], defa
|
|
|
21138
21137
|
return (m = St(a.buttonRef)) == null ? void 0 : m.focus({ preventScroll: !0 });
|
|
21139
21138
|
}));
|
|
21140
21139
|
break;
|
|
21141
|
-
case
|
|
21140
|
+
case Re(a.orientation.value, { vertical: Pt.ArrowDown, horizontal: Pt.ArrowRight }):
|
|
21142
21141
|
return c.preventDefault(), c.stopPropagation(), a.goToOption(Zt.Next);
|
|
21143
|
-
case
|
|
21142
|
+
case Re(a.orientation.value, { vertical: Pt.ArrowUp, horizontal: Pt.ArrowLeft }):
|
|
21144
21143
|
return c.preventDefault(), c.stopPropagation(), a.goToOption(Zt.Previous);
|
|
21145
21144
|
case Pt.Home:
|
|
21146
21145
|
case Pt.PageUp:
|
|
@@ -21172,16 +21171,16 @@ let xn = ce({ name: "ListboxButton", props: { as: { type: [Object, String], defa
|
|
|
21172
21171
|
var i;
|
|
21173
21172
|
let n = (i = r.id) != null ? i : `headlessui-listbox-option-${as()}`, a = mn("ListboxOption"), s = S(null);
|
|
21174
21173
|
o({ el: s, $el: s });
|
|
21175
|
-
let l = $(() => a.activeOptionIndex.value !== null ? a.options.value[a.activeOptionIndex.value].id === n : !1), p = $(() =>
|
|
21174
|
+
let l = $(() => a.activeOptionIndex.value !== null ? a.options.value[a.activeOptionIndex.value].id === n : !1), p = $(() => Re(a.mode.value, { 0: () => a.compare(Kt(a.value.value), Kt(r.value)), 1: () => Kt(a.value.value).some((k) => a.compare(Kt(k), Kt(r.value))) })), d = $(() => Re(a.mode.value, { 1: () => {
|
|
21176
21175
|
var k;
|
|
21177
21176
|
let h = Kt(a.value.value);
|
|
21178
21177
|
return ((k = a.options.value.find((B) => h.some((M) => a.compare(Kt(M), Kt(B.dataRef.value))))) == null ? void 0 : k.id) === n;
|
|
21179
21178
|
}, 0: () => p.value })), c = r5(s), m = $(() => ({ disabled: r.disabled, value: r.value, get textValue() {
|
|
21180
21179
|
return c();
|
|
21181
21180
|
}, domRef: s }));
|
|
21182
|
-
|
|
21181
|
+
xr(() => a.registerOption(n, m)), tx(() => a.unregisterOption(n)), xr(() => {
|
|
21183
21182
|
ot([a.listboxState, p], () => {
|
|
21184
|
-
a.listboxState.value === 0 && p.value &&
|
|
21183
|
+
a.listboxState.value === 0 && p.value && Re(a.mode.value, { 1: () => {
|
|
21185
21184
|
d.value && a.goToOption(Zt.Specific, n);
|
|
21186
21185
|
}, 0: () => {
|
|
21187
21186
|
a.goToOption(Zt.Specific, n);
|
|
@@ -22220,7 +22219,7 @@ const _5 = { class: "pbx-mb-8" }, z5 = { class: "pbx-grid pbx-grid-cols-1 sm:pbx
|
|
|
22220
22219
|
const e = Wr("CustomMediaComponent"), o = t, i = function() {
|
|
22221
22220
|
o("firstModalButtonSearchComponentsFunction");
|
|
22222
22221
|
};
|
|
22223
|
-
return (n, a) => (v(), xt(
|
|
22222
|
+
return (n, a) => (v(), xt(zr, {
|
|
22224
22223
|
title: r.title,
|
|
22225
22224
|
maxWidth: "6xl",
|
|
22226
22225
|
showModalBuilder: r.show,
|
|
@@ -22358,12 +22357,12 @@ const y3 = ["src"], w3 = {
|
|
|
22358
22357
|
i.value = !1;
|
|
22359
22358
|
};
|
|
22360
22359
|
}, u = async function(x) {
|
|
22361
|
-
o.value = !0, x && typeof x == "string" && x.length > 2 && (await h3(x), await
|
|
22360
|
+
o.value = !0, x && typeof x == "string" && x.length > 2 && (await h3(x), await be(200), o.value = !1);
|
|
22362
22361
|
};
|
|
22363
22362
|
return (x, g) => (v(), C("div", null, [
|
|
22364
22363
|
Ct(b("div", null, g[0] || (g[0] = [
|
|
22365
22364
|
b("div", { class: "pbx-flex pbx-items-center pbx-justify-center pbx-mt-4 pbx-min-h-80" }, [
|
|
22366
|
-
b("div", { class: "pbx-inline-block pbx-h-8 pbx-w-8 pbx-animate-spin pbx-rounded-full pbx-border-4 pbx-border-solid pbx-border
|
|
22365
|
+
b("div", { class: "pbx-inline-block pbx-h-8 pbx-w-8 pbx-animate-spin pbx-rounded-full pbx-border-4 pbx-border-solid pbx-border-current pbx-border-r-transparent pbx-align-[-0.125em] motion-reduce:pbx-animate-[spin_1.5s_linear_infinite]" }, [
|
|
22367
22366
|
b("span", { class: "!pbx-absolute !pbx-m-px !pbx-h-px !pbx-w-px !pbx-overflow-hidden !pbx-whitespace-nowrap !pbx-border-0 !pbx-p-0 !pbx-[clip:rect(0,0,0,0)]" }, "Loading...")
|
|
22368
22367
|
])
|
|
22369
22368
|
], -1)
|
|
@@ -22775,7 +22774,7 @@ const y3 = ["src"], w3 = {
|
|
|
22775
22774
|
disabled: "",
|
|
22776
22775
|
value: ""
|
|
22777
22776
|
}, "Select", -1)),
|
|
22778
|
-
(v(!0), C(dt, null, ht(T(
|
|
22777
|
+
(v(!0), C(dt, null, ht(T(Nr).verticalPadding, (u) => (v(), C("option", { key: u }, W(u), 1))), 128))
|
|
22779
22778
|
], 544), [
|
|
22780
22779
|
[te, o.value]
|
|
22781
22780
|
])
|
|
@@ -22792,7 +22791,7 @@ const y3 = ["src"], w3 = {
|
|
|
22792
22791
|
disabled: "",
|
|
22793
22792
|
value: ""
|
|
22794
22793
|
}, "Select", -1)),
|
|
22795
|
-
(v(!0), C(dt, null, ht(T(
|
|
22794
|
+
(v(!0), C(dt, null, ht(T(Nr).horizontalPadding, (u) => (v(), C("option", { key: u }, W(u), 1))), 128))
|
|
22796
22795
|
], 544), [
|
|
22797
22796
|
[te, i.value]
|
|
22798
22797
|
])
|
|
@@ -22845,7 +22844,7 @@ const y3 = ["src"], w3 = {
|
|
|
22845
22844
|
disabled: "",
|
|
22846
22845
|
value: ""
|
|
22847
22846
|
}, "Select", -1)),
|
|
22848
|
-
(v(!0), C(dt, null, ht(T(
|
|
22847
|
+
(v(!0), C(dt, null, ht(T(Nr).verticalMargin, (u) => (v(), C("option", { key: u }, W(u), 1))), 128))
|
|
22849
22848
|
], 544), [
|
|
22850
22849
|
[te, n.value]
|
|
22851
22850
|
])
|
|
@@ -22862,7 +22861,7 @@ const y3 = ["src"], w3 = {
|
|
|
22862
22861
|
disabled: "",
|
|
22863
22862
|
value: ""
|
|
22864
22863
|
}, "Select", -1)),
|
|
22865
|
-
(v(!0), C(dt, null, ht(T(
|
|
22864
|
+
(v(!0), C(dt, null, ht(T(Nr).horizontalMargin, (u) => (v(), C("option", { key: u }, W(u), 1))), 128))
|
|
22866
22865
|
], 544), [
|
|
22867
22866
|
[te, a.value]
|
|
22868
22867
|
])
|
|
@@ -22922,7 +22921,7 @@ const y3 = ["src"], w3 = {
|
|
|
22922
22921
|
disabled: "",
|
|
22923
22922
|
value: ""
|
|
22924
22923
|
}, "Select", -1)),
|
|
22925
|
-
(v(!0), C(dt, null, ht(T(
|
|
22924
|
+
(v(!0), C(dt, null, ht(T(qe).roundedGlobal, (g) => (v(), C("option", { key: g }, W(g), 1))), 128))
|
|
22926
22925
|
], 544), [
|
|
22927
22926
|
[te, o.value]
|
|
22928
22927
|
])
|
|
@@ -22939,7 +22938,7 @@ const y3 = ["src"], w3 = {
|
|
|
22939
22938
|
disabled: "",
|
|
22940
22939
|
value: ""
|
|
22941
22940
|
}, "Select", -1)),
|
|
22942
|
-
(v(!0), C(dt, null, ht(T(
|
|
22941
|
+
(v(!0), C(dt, null, ht(T(qe).roundedTopLeft, (g) => (v(), C("option", { key: g }, W(g), 1))), 128))
|
|
22943
22942
|
], 544), [
|
|
22944
22943
|
[te, i.value]
|
|
22945
22944
|
])
|
|
@@ -22955,7 +22954,7 @@ const y3 = ["src"], w3 = {
|
|
|
22955
22954
|
disabled: "",
|
|
22956
22955
|
value: ""
|
|
22957
22956
|
}, "Select", -1)),
|
|
22958
|
-
(v(!0), C(dt, null, ht(T(
|
|
22957
|
+
(v(!0), C(dt, null, ht(T(qe).roundedTopRight, (g) => (v(), C("option", { key: g }, W(g), 1))), 128))
|
|
22959
22958
|
], 544), [
|
|
22960
22959
|
[te, n.value]
|
|
22961
22960
|
])
|
|
@@ -22971,7 +22970,7 @@ const y3 = ["src"], w3 = {
|
|
|
22971
22970
|
disabled: "",
|
|
22972
22971
|
value: ""
|
|
22973
22972
|
}, "Select", -1)),
|
|
22974
|
-
(v(!0), C(dt, null, ht(T(
|
|
22973
|
+
(v(!0), C(dt, null, ht(T(qe).roundedBottomLeft, (g) => (v(), C("option", { key: g }, W(g), 1))), 128))
|
|
22975
22974
|
], 544), [
|
|
22976
22975
|
[te, a.value]
|
|
22977
22976
|
])
|
|
@@ -22987,7 +22986,7 @@ const y3 = ["src"], w3 = {
|
|
|
22987
22986
|
disabled: "",
|
|
22988
22987
|
value: ""
|
|
22989
22988
|
}, "Select", -1)),
|
|
22990
|
-
(v(!0), C(dt, null, ht(T(
|
|
22989
|
+
(v(!0), C(dt, null, ht(T(qe).roundedBottomRight, (g) => (v(), C("option", { key: g }, W(g), 1))), 128))
|
|
22991
22990
|
], 544), [
|
|
22992
22991
|
[te, s.value]
|
|
22993
22992
|
])
|
|
@@ -23324,7 +23323,7 @@ const y3 = ["src"], w3 = {
|
|
|
23324
23323
|
}, Z4 = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, tS = { class: "pbx-overflow-x-auto" }, eS = { class: "pbx-w-max" }, rS = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, oS = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, iS = { class: "pbx-min-w-[30rem] pbx-w-max" }, nS = { key: 0 }, aS = { key: 1 }, sS = { key: 0 }, lS = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, pS = { class: "pbx-min-w-[30rem] pbx-w-max" }, dS = { class: "pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium" }, cS = { class: "pbx-mt-4 pbx-mb-4 pbx-py-8 pbx-px-2 pbx-border pbx-border-solid pbx-border-gray-600 pbx-rounded-xl" }, bS = { class: "pbx-mt-4 pbx-whitespace-pre-wrap pbx-text-white pbx-overflow-hidden pbx-bg-gray-900" }, mS = { class: "pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-white pbx-text-xs pbx-break-all" }, uS = { class: "pbx-myPrimaryParagraph pbx-text-xs pbx-text-white" }, xS = {
|
|
23325
23324
|
__name: "PageBuilderSettings",
|
|
23326
23325
|
setup(r) {
|
|
23327
|
-
const t = "3.3.
|
|
23326
|
+
const t = "3.3.51", e = Et, o = S(null), i = $(() => e.getPageBuilderConfig), n = $(() => e.getComponents), a = function(l, p) {
|
|
23328
23327
|
const d = document.createElement("a");
|
|
23329
23328
|
d.setAttribute(
|
|
23330
23329
|
"href",
|
|
@@ -23942,7 +23941,7 @@ const y3 = ["src"], w3 = {
|
|
|
23942
23941
|
n.value = !0, a.value = "delete", s.value = 2, l.value = "Remove all Components", p.value = "Are you sure you want to remove all Components?", d.value = "Close", c.value = null, m.value = "Delete", u.value = function() {
|
|
23943
23942
|
n.value = !1;
|
|
23944
23943
|
}, g.value = async function() {
|
|
23945
|
-
i.value = !0, t.deleteAllComponentsFromDOM(), await t.clearHtmlSelection(), await t.removeCurrentComponentsFromLocalStorage(), await
|
|
23944
|
+
i.value = !0, t.deleteAllComponentsFromDOM(), await t.clearHtmlSelection(), await t.removeCurrentComponentsFromLocalStorage(), await be(500), n.value = !1, i.value = !1;
|
|
23946
23945
|
};
|
|
23947
23946
|
}, y = S(!1), w = function() {
|
|
23948
23947
|
y.value = !1;
|
|
@@ -24003,7 +24002,7 @@ const y3 = ["src"], w3 = {
|
|
|
24003
24002
|
])
|
|
24004
24003
|
])
|
|
24005
24004
|
]),
|
|
24006
|
-
G(
|
|
24005
|
+
G(zr, {
|
|
24007
24006
|
maxWidth: "5xl",
|
|
24008
24007
|
showModalBuilder: y.value,
|
|
24009
24008
|
title: "Main Settings",
|
|
@@ -24016,7 +24015,7 @@ const y3 = ["src"], w3 = {
|
|
|
24016
24015
|
]),
|
|
24017
24016
|
_: 1
|
|
24018
24017
|
}, 8, ["showModalBuilder"]),
|
|
24019
|
-
G(
|
|
24018
|
+
G(zr, {
|
|
24020
24019
|
maxWidth: "5xl",
|
|
24021
24020
|
showModalBuilder: h.value,
|
|
24022
24021
|
title: "Selected HTML",
|
|
@@ -24064,7 +24063,11 @@ const j6 = {}, V6 = { class: "pbx-bg-white pbx-flex pbx-justify-center pbx-items
|
|
|
24064
24063
|
function W6(r, t) {
|
|
24065
24064
|
return v(), C("div", V6, t[0] || (t[0] = [
|
|
24066
24065
|
b("div", { class: "pbx-absolute pbx-top-1/3" }, [
|
|
24067
|
-
b("div", { class: "pbx-
|
|
24066
|
+
b("div", { class: "pbx-flex pbx-items-center pbx-justify-center pbx-mt-4" }, [
|
|
24067
|
+
b("div", { class: "pbx-inline-block pbx-h-8 pbx-w-8 pbx-animate-spin pbx-rounded-full pbx-border-4 pbx-border-solid pbx-border-current pbx-border-r-transparent pbx-align-[-0.125em] motion-reduce:pbx-animate-[spin_1.5s_linear_infinite]" }, [
|
|
24068
|
+
b("span", { class: "!pbx-absolute !pbx-m-px !pbx-h-px !pbx-w-px !pbx-overflow-hidden !pbx-whitespace-nowrap !pbx-border-0 !pbx-p-0 !pbx-[clip:rect(0,0,0,0)]" }, "Loading...")
|
|
24069
|
+
])
|
|
24070
|
+
])
|
|
24068
24071
|
], -1)
|
|
24069
24072
|
]));
|
|
24070
24073
|
}
|
|
@@ -24115,11 +24118,11 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24115
24118
|
emits: ["handleClosePageBuilder"],
|
|
24116
24119
|
setup(r, { emit: t }) {
|
|
24117
24120
|
const e = Ot(), o = r, i = pb, n = Et;
|
|
24118
|
-
|
|
24121
|
+
Br("pageBuilderStateStore", n), Br("internalPinia", i), Br("CustomMediaComponent", o.CustomMediaLibraryComponent), Br("CustomBuilderComponents", o.CustomBuilderComponents);
|
|
24119
24122
|
const a = t, s = function() {
|
|
24120
24123
|
a("handleClosePageBuilder");
|
|
24121
24124
|
};
|
|
24122
|
-
|
|
24125
|
+
Br("closeAddComponentModal", () => {
|
|
24123
24126
|
M.value = !1;
|
|
24124
24127
|
});
|
|
24125
24128
|
const p = $(() => n.getBuilderStarted), d = $(() => n.getPageBuilderConfig), c = $(() => n.getMenuRight), m = S(!1), u = function() {
|
|
@@ -24158,46 +24161,46 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24158
24161
|
});
|
|
24159
24162
|
const K = function(at) {
|
|
24160
24163
|
n.setComponent(at);
|
|
24161
|
-
}, pt = S(null), gt = $(() => n.getIsLoadingGlobal), ne = $(() => n.getIsSaving),
|
|
24162
|
-
|
|
24164
|
+
}, pt = S(null), gt = $(() => n.getIsLoadingGlobal), ne = $(() => n.getIsSaving), Qe = $(() => n.getIsLoadingResumeEditing), Xt = $(() => n.getIsRestoring), Ze = S(1), fe = S(""), Vt = S(!1), he = S(""), tr = S(""), ye = S(""), er = S(null), Ae = S(null), rr = S(null), Qr = S(null), hr = S(null), Po = async function() {
|
|
24165
|
+
fe.value = "warning", Vt.value = !0, he.value = "Continue Your Work?", tr.value = "We noticed you have some changes that weren’t saved last time. Would you like to pick up where you left off, or use the version that’s currently loaded from the database?", ye.value = "Use Saved Version", er.value = null, Ae.value = "Continue Where I Left Off", rr.value = async function() {
|
|
24163
24166
|
n.setHasLocalDraftForUpdate(!1), Vt.value = !1;
|
|
24164
24167
|
}, Qr.value = function() {
|
|
24165
|
-
},
|
|
24168
|
+
}, hr.value = async function() {
|
|
24166
24169
|
await e.resumeEditingForUpdate(), n.setHasLocalDraftForUpdate(!1), Vt.value = !1;
|
|
24167
24170
|
};
|
|
24168
|
-
}, Ao = S(1),
|
|
24169
|
-
await e.clearHtmlSelection(),
|
|
24170
|
-
|
|
24171
|
-
},
|
|
24171
|
+
}, Ao = S(1), yr = S(""), ze = S(!1), Zr = S(""), to = S(""), we = S(""), De = S(null), wr = S(null), Fe = S(null), vr = S(null), eo = S(null), Do = async function() {
|
|
24172
|
+
await e.clearHtmlSelection(), yr.value = "success", ze.value = !0, Zr.value = "Do you want to reset this page?", to.value = "Are you sure you want to reset this page? This will overwrite your current changes.", we.value = "Close", De.value = null, wr.value = "Reset changes", Fe.value = function() {
|
|
24173
|
+
ze.value = !1;
|
|
24174
|
+
}, vr.value = async function() {
|
|
24172
24175
|
}, eo.value = async function() {
|
|
24173
|
-
await e.restoreOriginalContent(),
|
|
24176
|
+
await e.restoreOriginalContent(), ze.value = !1;
|
|
24174
24177
|
};
|
|
24175
|
-
},
|
|
24178
|
+
}, kr = function() {
|
|
24176
24179
|
p.value || (w.value = !0);
|
|
24177
|
-
},
|
|
24180
|
+
}, Sr = S(null);
|
|
24178
24181
|
let bi = null, mi = null;
|
|
24179
24182
|
function No() {
|
|
24180
|
-
const at =
|
|
24183
|
+
const at = Sr.value, D = at && at.querySelector("#editToolbar"), O = z.value;
|
|
24181
24184
|
if (!at || !D) return;
|
|
24182
24185
|
const j = at.querySelector("[selected]");
|
|
24183
24186
|
if (j && typeof j.getBoundingClientRect == "function") {
|
|
24184
|
-
const Y = j.getBoundingClientRect(), st = at.getBoundingClientRect(), nt = Y.left - st.left + Y.width / 2 - D.offsetWidth / 2, ae = Y.top - st.top + at.scrollTop - D.offsetHeight - 20,
|
|
24185
|
-
D.style.position = "absolute", D.style.left = `${nt}px`, D.style.top = `${
|
|
24187
|
+
const Y = j.getBoundingClientRect(), st = at.getBoundingClientRect(), nt = Y.left - st.left + Y.width / 2 - D.offsetWidth / 2, ae = Y.top - st.top + at.scrollTop - D.offsetHeight - 20, or = Math.max(0, ae);
|
|
24188
|
+
D.style.position = "absolute", D.style.left = `${nt}px`, D.style.top = `${or}px`, D.classList.add("is-visible"), bi = nt, mi = or;
|
|
24186
24189
|
} else O && bi !== null && mi !== null ? (D.style.position = "absolute", D.style.left = `${bi}px`, D.style.top = `${mi}px`, D.classList.add("is-visible")) : D.classList.remove("is-visible");
|
|
24187
24190
|
}
|
|
24188
|
-
return
|
|
24191
|
+
return xr(async () => {
|
|
24189
24192
|
await e.tryMountPendingComponents(), No();
|
|
24190
|
-
const at =
|
|
24193
|
+
const at = Sr.value;
|
|
24191
24194
|
if (!at) return;
|
|
24192
24195
|
new MutationObserver(No).observe(at, {
|
|
24193
24196
|
childList: !0,
|
|
24194
24197
|
subtree: !0,
|
|
24195
24198
|
attributes: !0,
|
|
24196
24199
|
attributeFilter: ["selected"]
|
|
24197
|
-
}), window.addEventListener("scroll", No), window.addEventListener("resize", No), await
|
|
24200
|
+
}), window.addEventListener("scroll", No), window.addEventListener("resize", No), await be(1e4), kr(), await be(1e4), kr(), await be(1e4), kr();
|
|
24198
24201
|
}), (at, D) => (v(), C("div", U6, [
|
|
24199
|
-
gt.value
|
|
24200
|
-
G(
|
|
24202
|
+
gt.value && !w.value ? (v(), xt(q6, { key: 0 })) : L("", !0),
|
|
24203
|
+
G(zr, {
|
|
24201
24204
|
title: "The builder hasn’t started yet",
|
|
24202
24205
|
showModalBuilder: w.value,
|
|
24203
24206
|
onCloseMainModalBuilder: k,
|
|
@@ -24219,7 +24222,7 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24219
24222
|
CustomBuilderComponents: o.CustomBuilderComponents,
|
|
24220
24223
|
onFirstModalButtonSearchComponentsFunction: H.value
|
|
24221
24224
|
}, null, 8, ["show", "firstButtonText", "title", "CustomBuilderComponents", "onFirstModalButtonSearchComponentsFunction"])) : L("", !0),
|
|
24222
|
-
G(
|
|
24225
|
+
G(zr, {
|
|
24223
24226
|
title: "Preview",
|
|
24224
24227
|
showModalBuilder: m.value,
|
|
24225
24228
|
onCloseMainModalBuilder: h,
|
|
@@ -24230,7 +24233,7 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24230
24233
|
]),
|
|
24231
24234
|
_: 1
|
|
24232
24235
|
}, 8, ["showModalBuilder"]),
|
|
24233
|
-
G(
|
|
24236
|
+
G(zr, {
|
|
24234
24237
|
title: "Mobile",
|
|
24235
24238
|
showModalBuilder: g.value,
|
|
24236
24239
|
onCloseMainModalBuilder: B,
|
|
@@ -24243,17 +24246,17 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24243
24246
|
}, 8, ["showModalBuilder"]),
|
|
24244
24247
|
G(vo, {
|
|
24245
24248
|
showDynamicModalBuilder: Vt.value,
|
|
24246
|
-
isLoading:
|
|
24247
|
-
type:
|
|
24248
|
-
gridColumnAmount:
|
|
24249
|
-
title:
|
|
24250
|
-
description:
|
|
24251
|
-
firstButtonText:
|
|
24252
|
-
secondButtonText:
|
|
24253
|
-
thirdButtonText:
|
|
24254
|
-
onFirstModalButtonFunctionDynamicModalBuilder:
|
|
24249
|
+
isLoading: Qe.value,
|
|
24250
|
+
type: fe.value,
|
|
24251
|
+
gridColumnAmount: Ze.value,
|
|
24252
|
+
title: he.value,
|
|
24253
|
+
description: tr.value,
|
|
24254
|
+
firstButtonText: ye.value,
|
|
24255
|
+
secondButtonText: er.value,
|
|
24256
|
+
thirdButtonText: Ae.value,
|
|
24257
|
+
onFirstModalButtonFunctionDynamicModalBuilder: rr.value,
|
|
24255
24258
|
onSecondModalButtonFunctionDynamicModalBuilder: Qr.value,
|
|
24256
|
-
onThirdModalButtonFunctionDynamicModalBuilder:
|
|
24259
|
+
onThirdModalButtonFunctionDynamicModalBuilder: hr.value
|
|
24257
24260
|
}, {
|
|
24258
24261
|
default: U(() => D[22] || (D[22] = [
|
|
24259
24262
|
b("header", null, null, -1),
|
|
@@ -24263,17 +24266,17 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24263
24266
|
__: [22]
|
|
24264
24267
|
}, 8, ["showDynamicModalBuilder", "isLoading", "type", "gridColumnAmount", "title", "description", "firstButtonText", "secondButtonText", "thirdButtonText", "onFirstModalButtonFunctionDynamicModalBuilder", "onSecondModalButtonFunctionDynamicModalBuilder", "onThirdModalButtonFunctionDynamicModalBuilder"]),
|
|
24265
24268
|
G(vo, {
|
|
24266
|
-
showDynamicModalBuilder:
|
|
24269
|
+
showDynamicModalBuilder: ze.value,
|
|
24267
24270
|
isLoading: Xt.value,
|
|
24268
|
-
type:
|
|
24271
|
+
type: yr.value,
|
|
24269
24272
|
gridColumnAmount: Ao.value,
|
|
24270
24273
|
title: Zr.value,
|
|
24271
24274
|
description: to.value,
|
|
24272
|
-
firstButtonText:
|
|
24273
|
-
secondButtonText:
|
|
24274
|
-
thirdButtonText:
|
|
24275
|
-
onFirstModalButtonFunctionDynamicModalBuilder:
|
|
24276
|
-
onSecondModalButtonFunctionDynamicModalBuilder:
|
|
24275
|
+
firstButtonText: we.value,
|
|
24276
|
+
secondButtonText: De.value,
|
|
24277
|
+
thirdButtonText: wr.value,
|
|
24278
|
+
onFirstModalButtonFunctionDynamicModalBuilder: Fe.value,
|
|
24279
|
+
onSecondModalButtonFunctionDynamicModalBuilder: vr.value,
|
|
24277
24280
|
onThirdModalButtonFunctionDynamicModalBuilder: eo.value
|
|
24278
24281
|
}, {
|
|
24279
24282
|
default: U(() => D[23] || (D[23] = [
|
|
@@ -24287,7 +24290,7 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24287
24290
|
b("div", K6, [
|
|
24288
24291
|
d.value && d.value.pageBuilderLogo && d.value.pageBuilderLogo.src ? (v(), C("div", {
|
|
24289
24292
|
key: 0,
|
|
24290
|
-
onClick: D[1] || (D[1] =
|
|
24293
|
+
onClick: D[1] || (D[1] = Ne(
|
|
24291
24294
|
async () => {
|
|
24292
24295
|
await T(e).clearHtmlSelection();
|
|
24293
24296
|
},
|
|
@@ -24311,7 +24314,7 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24311
24314
|
])
|
|
24312
24315
|
])) : L("", !0),
|
|
24313
24316
|
b("div", {
|
|
24314
|
-
onClick: D[4] || (D[4] =
|
|
24317
|
+
onClick: D[4] || (D[4] = Ne(
|
|
24315
24318
|
async () => {
|
|
24316
24319
|
await T(e).clearHtmlSelection();
|
|
24317
24320
|
},
|
|
@@ -24322,7 +24325,7 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24322
24325
|
b("div", Y6, [
|
|
24323
24326
|
b("button", {
|
|
24324
24327
|
class: "pbx-mySecondaryButton pbx-h-6 pbx-flex pbx-gap-2 pbx-mr-2",
|
|
24325
|
-
onClick: D[2] || (D[2] =
|
|
24328
|
+
onClick: D[2] || (D[2] = Ne(
|
|
24326
24329
|
async () => {
|
|
24327
24330
|
await T(e).clearHtmlSelection(), await T(e).handleManualSave();
|
|
24328
24331
|
},
|
|
@@ -24345,7 +24348,7 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24345
24348
|
d.value && d.value.updateOrCreate && d.value.updateOrCreate.formType === "update" ? (v(), C("button", {
|
|
24346
24349
|
key: 0,
|
|
24347
24350
|
class: "pbx-mySecondaryButton pbx-h-6 pbx-flex pbx-gap-2 lg:mr-2",
|
|
24348
|
-
onClick: D[3] || (D[3] =
|
|
24351
|
+
onClick: D[3] || (D[3] = Ne(
|
|
24349
24352
|
async () => {
|
|
24350
24353
|
await T(e).clearHtmlSelection(), await Do();
|
|
24351
24354
|
},
|
|
@@ -24370,7 +24373,7 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24370
24373
|
])
|
|
24371
24374
|
]),
|
|
24372
24375
|
b("div", {
|
|
24373
|
-
onClick: D[9] || (D[9] =
|
|
24376
|
+
onClick: D[9] || (D[9] = Ne(
|
|
24374
24377
|
async () => {
|
|
24375
24378
|
await T(e).clearHtmlSelection();
|
|
24376
24379
|
},
|
|
@@ -24379,7 +24382,7 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24379
24382
|
class: "pbx-flex pbx-justify-center pbx-items-center pbx-py-2 pbx-min-h-20 pbx-max-h-20 pbx-w-full"
|
|
24380
24383
|
}, [
|
|
24381
24384
|
b("div", {
|
|
24382
|
-
onClick: D[8] || (D[8] =
|
|
24385
|
+
onClick: D[8] || (D[8] = Ne(
|
|
24383
24386
|
async () => {
|
|
24384
24387
|
await T(e).clearHtmlSelection();
|
|
24385
24388
|
},
|
|
@@ -24424,7 +24427,7 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24424
24427
|
])
|
|
24425
24428
|
]),
|
|
24426
24429
|
b("div", {
|
|
24427
|
-
onClick: D[11] || (D[11] =
|
|
24430
|
+
onClick: D[11] || (D[11] = Ne(
|
|
24428
24431
|
async () => {
|
|
24429
24432
|
await T(e).clearHtmlSelection();
|
|
24430
24433
|
},
|
|
@@ -24446,7 +24449,7 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24446
24449
|
]),
|
|
24447
24450
|
b("div", nC, [
|
|
24448
24451
|
b("div", {
|
|
24449
|
-
onClick: D[14] || (D[14] =
|
|
24452
|
+
onClick: D[14] || (D[14] = Ne(
|
|
24450
24453
|
async () => {
|
|
24451
24454
|
await T(e).clearHtmlSelection();
|
|
24452
24455
|
},
|
|
@@ -24468,7 +24471,7 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24468
24471
|
]))
|
|
24469
24472
|
]),
|
|
24470
24473
|
b("div", {
|
|
24471
|
-
onClick: D[13] || (D[13] =
|
|
24474
|
+
onClick: D[13] || (D[13] = Ne(
|
|
24472
24475
|
async () => {
|
|
24473
24476
|
await T(e).clearHtmlSelection();
|
|
24474
24477
|
},
|
|
@@ -24481,7 +24484,7 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24481
24484
|
]),
|
|
24482
24485
|
b("main", {
|
|
24483
24486
|
ref_key: "pbxToolBar",
|
|
24484
|
-
ref:
|
|
24487
|
+
ref: Sr,
|
|
24485
24488
|
class: tt(["pbx-flex pbx-flex-col pbx-grow pbx-rounded-tr-2xl pbx-rounded-tl-2xl pbx-border-solid pbx-border pbx-border-gray-200 pbx-items-stretch pbx-h-[100vh]", { "pbx-mr-2": !c.value, "": c.value }])
|
|
24486
24489
|
}, [
|
|
24487
24490
|
b("div", lC, [
|
|
@@ -24521,7 +24524,7 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24521
24524
|
], 2),
|
|
24522
24525
|
c.value ? L("", !0) : (v(), C("div", {
|
|
24523
24526
|
key: 0,
|
|
24524
|
-
onClick: D[18] || (D[18] =
|
|
24527
|
+
onClick: D[18] || (D[18] = Ne(
|
|
24525
24528
|
async () => {
|
|
24526
24529
|
await T(e).clearHtmlSelection();
|
|
24527
24530
|
},
|
|
@@ -24530,7 +24533,7 @@ const q6 = /* @__PURE__ */ ns(j6, [["render", W6]]), U6 = { class: "pbx-font-san
|
|
|
24530
24533
|
class: "pbx-min-w-[3.5rem] pbx-pt-7 pbx-pb-2 pbx-ml-2 pbx-border-l-solid pbx-border-gray-200"
|
|
24531
24534
|
}, [
|
|
24532
24535
|
b("div", {
|
|
24533
|
-
onClick: D[17] || (D[17] =
|
|
24536
|
+
onClick: D[17] || (D[17] = Ne(
|
|
24534
24537
|
async () => {
|
|
24535
24538
|
await T(e).clearHtmlSelection();
|
|
24536
24539
|
},
|