vdc-editor 0.1.49 → 0.1.50
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/lib/vdc-editor.mjs +386 -389
- package/lib/vdc-editor.mjs.map +1 -1
- package/lib/vdc-editor.umd.js +19 -19
- package/lib/vdc-editor.umd.js.map +1 -1
- package/package.json +1 -1
package/lib/vdc-editor.mjs
CHANGED
|
@@ -2,8 +2,8 @@ var VL = Object.defineProperty;
|
|
|
2
2
|
var UL = (t, e, n) => e in t ? VL(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var Fn = (t, e, n) => UL(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
4
|
import * as M4 from "vue";
|
|
5
|
-
import { computed as J, ref as q, shallowRef as fh, watch as je, getCurrentScope as f5, onScopeDispose as p5, shallowReadonly as ul, unref as w, defineComponent as H, createBlock as z, openBlock as L, mergeProps as ge, withCtx as M, renderSlot as G, toRefs as Nn, createElementBlock as pe, Fragment as Ze, createVNode as I, createCommentVNode as Xe, withKeys as wc, withModifiers as nr, h as Mn, normalizeProps as At, guardReactiveProps as Bt, onMounted as Et, toHandlers as WL, resolveDynamicComponent as xa, getCurrentInstance as Ur, toRef as jL, camelize as h5, toHandlerKey as qL, nextTick as It, inject as Qc, provide as Rl, Comment as m5, cloneVNode as KL, readonly as g5, watchEffect as pn, Teleport as Pb, useSlots as Bb, createTextVNode as pt, toDisplayString as Pe, onUnmounted as Do, reactive as Ao, normalizeStyle as sn, mergeDefaults as b5, watchPostEffect as GL, markRaw as Fb, effectScope as $b, customRef as v5, onBeforeUnmount as
|
|
6
|
-
import { useVModel as tI, useLocalStorage as nI, createEventHook as R4, createGlobalState as rI, useFullscreen as oI, useEventBus as
|
|
5
|
+
import { computed as J, ref as q, shallowRef as fh, watch as je, getCurrentScope as f5, onScopeDispose as p5, shallowReadonly as ul, unref as w, defineComponent as H, createBlock as z, openBlock as L, mergeProps as ge, withCtx as M, renderSlot as G, toRefs as Nn, createElementBlock as pe, Fragment as Ze, createVNode as I, createCommentVNode as Xe, withKeys as wc, withModifiers as nr, h as Mn, normalizeProps as At, guardReactiveProps as Bt, onMounted as Et, toHandlers as WL, resolveDynamicComponent as xa, getCurrentInstance as Ur, toRef as jL, camelize as h5, toHandlerKey as qL, nextTick as It, inject as Qc, provide as Rl, Comment as m5, cloneVNode as KL, readonly as g5, watchEffect as pn, Teleport as Pb, useSlots as Bb, createTextVNode as pt, toDisplayString as Pe, onUnmounted as Do, reactive as Ao, normalizeStyle as sn, mergeDefaults as b5, watchPostEffect as GL, markRaw as Fb, effectScope as $b, customRef as v5, onBeforeUnmount as ho, onBeforeUpdate as JL, onUpdated as YL, isRef as ph, createElementVNode as te, renderList as Pt, onBeforeMount as hh, withDirectives as Da, vModelSelect as XL, Text as ZL, normalizeClass as Rt, createSlots as QL, vModelText as eI, render as N4, vShow as ed, useAttrs as y5 } from "vue";
|
|
6
|
+
import { useVModel as tI, useLocalStorage as nI, createEventHook as R4, createGlobalState as rI, useFullscreen as oI, useEventBus as uo, useFocus as iI, onClickOutside as sI, useFileDialog as aI, useDark as w5, useToggle as x5, useElementSize as lI } from "@vueuse/core";
|
|
7
7
|
const uI = ["top", "right", "bottom", "left"], As = Math.min, Ir = Math.max, sp = Math.round, uf = Math.floor, Go = (t) => ({
|
|
8
8
|
x: t,
|
|
9
9
|
y: t
|
|
@@ -361,7 +361,7 @@ const vI = (t) => ({
|
|
|
361
361
|
xe === "y";
|
|
362
362
|
}
|
|
363
363
|
return !0;
|
|
364
|
-
}).map((ce) => [ce.placement, ce.overflows.filter((xe) => xe > 0).reduce((xe,
|
|
364
|
+
}).map((ce) => [ce.placement, ce.overflows.filter((xe) => xe > 0).reduce((xe, ue) => xe + ue, 0)]).sort((ce, xe) => ce[1] - xe[1])[0]) == null ? void 0 : Se[0];
|
|
365
365
|
Y && (we = Y);
|
|
366
366
|
break;
|
|
367
367
|
}
|
|
@@ -1354,7 +1354,7 @@ function I5(t, e = 200, n = {}) {
|
|
|
1354
1354
|
);
|
|
1355
1355
|
}
|
|
1356
1356
|
function dD(t, e) {
|
|
1357
|
-
cD() &&
|
|
1357
|
+
cD() && ho(t, e);
|
|
1358
1358
|
}
|
|
1359
1359
|
function D5(t, e, n = {}) {
|
|
1360
1360
|
const {
|
|
@@ -1463,7 +1463,7 @@ function Dl(t, e, n = {}) {
|
|
|
1463
1463
|
stop: d
|
|
1464
1464
|
};
|
|
1465
1465
|
}
|
|
1466
|
-
function
|
|
1466
|
+
function co(t, e, n, r = {}) {
|
|
1467
1467
|
var o, i, s;
|
|
1468
1468
|
const {
|
|
1469
1469
|
clone: a = !1,
|
|
@@ -2158,7 +2158,7 @@ function VD(t, e) {
|
|
|
2158
2158
|
function ff(t) {
|
|
2159
2159
|
return t && getComputedStyle(t).animationName || "none";
|
|
2160
2160
|
}
|
|
2161
|
-
const
|
|
2161
|
+
const mo = H({
|
|
2162
2162
|
name: "Presence",
|
|
2163
2163
|
props: {
|
|
2164
2164
|
present: {
|
|
@@ -2211,7 +2211,7 @@ const ho = H({
|
|
|
2211
2211
|
},
|
|
2212
2212
|
emits: ["update:open"],
|
|
2213
2213
|
setup(t, { emit: e }) {
|
|
2214
|
-
const n = t, r =
|
|
2214
|
+
const n = t, r = co(n, "open", e, {
|
|
2215
2215
|
defaultValue: n.defaultOpen,
|
|
2216
2216
|
passive: n.open === void 0
|
|
2217
2217
|
}), o = q(), i = q(), { modal: s } = Nn(n);
|
|
@@ -2747,7 +2747,7 @@ const G5 = /* @__PURE__ */ H({
|
|
|
2747
2747
|
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
2748
2748
|
setup(t, { emit: e }) {
|
|
2749
2749
|
const n = t, r = e, o = Ps(), i = Fa(r), { forwardRef: s } = Ae();
|
|
2750
|
-
return (a, l) => (L(), z(w(
|
|
2750
|
+
return (a, l) => (L(), z(w(mo), {
|
|
2751
2751
|
present: a.forceMount || w(o).open.value
|
|
2752
2752
|
}, {
|
|
2753
2753
|
default: M(() => [
|
|
@@ -2803,7 +2803,7 @@ const G5 = /* @__PURE__ */ H({
|
|
|
2803
2803
|
const e = Ps(), { forwardRef: n } = Ae();
|
|
2804
2804
|
return (r, o) => {
|
|
2805
2805
|
var i;
|
|
2806
|
-
return (i = w(e)) != null && i.modal.value ? (L(), z(w(
|
|
2806
|
+
return (i = w(e)) != null && i.modal.value ? (L(), z(w(mo), {
|
|
2807
2807
|
key: 0,
|
|
2808
2808
|
present: r.forceMount || w(e).open.value
|
|
2809
2809
|
}, {
|
|
@@ -2883,7 +2883,7 @@ const vP = ["value", "checked", "name", "disabled", "required"], [yP, wP] = Kt("
|
|
|
2883
2883
|
},
|
|
2884
2884
|
emits: ["update:checked"],
|
|
2885
2885
|
setup(t, { emit: e }) {
|
|
2886
|
-
const n = t, r = e, { disabled: o } = Nn(n), i =
|
|
2886
|
+
const n = t, r = e, { disabled: o } = Nn(n), i = co(n, "checked", r, {
|
|
2887
2887
|
defaultValue: n.defaultChecked,
|
|
2888
2888
|
passive: n.checked === void 0
|
|
2889
2889
|
}), { forwardRef: s, currentElement: a } = Ae(), l = $5(a), u = J(() => {
|
|
@@ -2945,7 +2945,7 @@ const vP = ["value", "checked", "name", "disabled", "required"], [yP, wP] = Kt("
|
|
|
2945
2945
|
},
|
|
2946
2946
|
setup(t) {
|
|
2947
2947
|
const { forwardRef: e } = Ae(), n = yP();
|
|
2948
|
-
return (r, o) => (L(), z(w(
|
|
2948
|
+
return (r, o) => (L(), z(w(mo), {
|
|
2949
2949
|
present: r.forceMount || w(cp)(w(n).state.value) || w(n).state.value === !0
|
|
2950
2950
|
}, {
|
|
2951
2951
|
default: M(() => [
|
|
@@ -3312,7 +3312,7 @@ const RP = R5(NP), [Ah, LP] = Kt(["MenuRoot", "MenuSub"], "MenuContext"), [Zb, I
|
|
|
3312
3312
|
},
|
|
3313
3313
|
emits: ["update:open"],
|
|
3314
3314
|
setup(t, { emit: e }) {
|
|
3315
|
-
const n = t, r = e, { modal: o, dir: i } = Nn(n), s = Ba(i), a =
|
|
3315
|
+
const n = t, r = e, { modal: o, dir: i } = Nn(n), s = Ba(i), a = co(n, "open", r), l = q(), u = RP();
|
|
3316
3316
|
return LP({
|
|
3317
3317
|
open: a,
|
|
3318
3318
|
onOpenChange: (d) => {
|
|
@@ -3377,7 +3377,7 @@ const [zP, VP] = Kt("RovingFocusGroup"), i_ = /* @__PURE__ */ H({
|
|
|
3377
3377
|
},
|
|
3378
3378
|
emits: ["entryFocus", "update:currentTabStopId"],
|
|
3379
3379
|
setup(t, { expose: e, emit: n }) {
|
|
3380
|
-
const r = t, o = n, { loop: i, orientation: s, dir: a } = Nn(r), l = Ba(a), u =
|
|
3380
|
+
const r = t, o = n, { loop: i, orientation: s, dir: a } = Nn(r), l = Ba(a), u = co(r, "currentTabStopId", o, {
|
|
3381
3381
|
defaultValue: r.defaultCurrentTabStopId,
|
|
3382
3382
|
passive: r.currentTabStopId === void 0
|
|
3383
3383
|
}), d = q(!1), p = q(!1), h = q(0), { getItems: m } = OP();
|
|
@@ -3791,7 +3791,7 @@ const [zP, VP] = Kt("RovingFocusGroup"), i_ = /* @__PURE__ */ H({
|
|
|
3791
3791
|
const e = qP({
|
|
3792
3792
|
checked: q(!1)
|
|
3793
3793
|
});
|
|
3794
|
-
return (n, r) => (L(), z(w(
|
|
3794
|
+
return (n, r) => (L(), z(w(mo), {
|
|
3795
3795
|
present: n.forceMount || w(up)(w(e).checked.value) || w(e).checked.value === !0
|
|
3796
3796
|
}, {
|
|
3797
3797
|
default: M(() => [
|
|
@@ -3820,7 +3820,7 @@ const [zP, VP] = Kt("RovingFocusGroup"), i_ = /* @__PURE__ */ H({
|
|
|
3820
3820
|
},
|
|
3821
3821
|
emits: ["select", "update:checked"],
|
|
3822
3822
|
setup(t, { emit: e }) {
|
|
3823
|
-
const n = t, r = e, o =
|
|
3823
|
+
const n = t, r = e, o = co(n, "checked", r);
|
|
3824
3824
|
return KP({ checked: o }), (i, s) => (L(), z(Qb, ge({ role: "menuitemcheckbox" }, n, {
|
|
3825
3825
|
"aria-checked": w(up)(w(o)) ? "mixed" : w(o),
|
|
3826
3826
|
"data-state": w(K5)(w(o)),
|
|
@@ -3927,7 +3927,7 @@ const [zP, VP] = Kt("RovingFocusGroup"), i_ = /* @__PURE__ */ H({
|
|
|
3927
3927
|
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "entryFocus", "openAutoFocus", "closeAutoFocus"],
|
|
3928
3928
|
setup(t, { emit: e }) {
|
|
3929
3929
|
const n = Wt(t, e), r = Ah(), o = Zb();
|
|
3930
|
-
return (i, s) => (L(), z(w(
|
|
3930
|
+
return (i, s) => (L(), z(w(mo), {
|
|
3931
3931
|
present: i.forceMount || w(r).open.value
|
|
3932
3932
|
}, {
|
|
3933
3933
|
default: M(() => [
|
|
@@ -4170,7 +4170,7 @@ const tB = /* @__PURE__ */ H({
|
|
|
4170
4170
|
setup(t, { emit: e }) {
|
|
4171
4171
|
const n = t, r = e;
|
|
4172
4172
|
Ae();
|
|
4173
|
-
const o =
|
|
4173
|
+
const o = co(n, "open", r, {
|
|
4174
4174
|
defaultValue: n.defaultOpen,
|
|
4175
4175
|
passive: n.open === void 0
|
|
4176
4176
|
}), i = q(), { modal: s, dir: a } = Nn(n), l = Ba(a);
|
|
@@ -4415,7 +4415,7 @@ const tB = /* @__PURE__ */ H({
|
|
|
4415
4415
|
},
|
|
4416
4416
|
emits: ["update:open"],
|
|
4417
4417
|
setup(t, { emit: e }) {
|
|
4418
|
-
const n = t, r = e, { modal: o } = Nn(n), i =
|
|
4418
|
+
const n = t, r = e, { modal: o } = Nn(n), i = co(n, "open", r, {
|
|
4419
4419
|
defaultValue: n.defaultOpen,
|
|
4420
4420
|
passive: n.open === void 0
|
|
4421
4421
|
}), s = q(), a = q(!1);
|
|
@@ -4669,7 +4669,7 @@ const tB = /* @__PURE__ */ H({
|
|
|
4669
4669
|
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
4670
4670
|
setup(t, { emit: e }) {
|
|
4671
4671
|
const n = t, r = e, o = id(), i = Wt(n, r), { forwardRef: s } = Ae();
|
|
4672
|
-
return o.contentId || (o.contentId = No(void 0, "radix-vue-popover-content")), (a, l) => (L(), z(w(
|
|
4672
|
+
return o.contentId || (o.contentId = No(void 0, "radix-vue-popover-content")), (a, l) => (L(), z(w(mo), {
|
|
4673
4673
|
present: a.forceMount || w(o).open.value
|
|
4674
4674
|
}, {
|
|
4675
4675
|
default: M(() => [
|
|
@@ -4688,7 +4688,7 @@ const tB = /* @__PURE__ */ H({
|
|
|
4688
4688
|
_: 3
|
|
4689
4689
|
}, 8, ["present"]));
|
|
4690
4690
|
}
|
|
4691
|
-
}), [
|
|
4691
|
+
}), [go, _B] = Kt("ScrollAreaRoot"), EB = /* @__PURE__ */ H({
|
|
4692
4692
|
__name: "ScrollAreaRoot",
|
|
4693
4693
|
props: {
|
|
4694
4694
|
type: { default: "hover" },
|
|
@@ -4783,7 +4783,7 @@ const tB = /* @__PURE__ */ H({
|
|
|
4783
4783
|
as: {}
|
|
4784
4784
|
},
|
|
4785
4785
|
setup(t, { expose: e }) {
|
|
4786
|
-
const n = t, { nonce: r } = Nn(n), o = t_(r), i =
|
|
4786
|
+
const n = t, { nonce: r } = Nn(n), o = t_(r), i = go(), s = q();
|
|
4787
4787
|
Et(() => {
|
|
4788
4788
|
i.onViewportChange(s.value), i.onContentChange(l.value);
|
|
4789
4789
|
}), e({
|
|
@@ -4896,7 +4896,7 @@ const m_ = /* @__PURE__ */ H({
|
|
|
4896
4896
|
},
|
|
4897
4897
|
emits: ["onDragScroll", "onWheelScroll", "onThumbPointerDown"],
|
|
4898
4898
|
setup(t, { emit: e }) {
|
|
4899
|
-
const n = t, r = e, o =
|
|
4899
|
+
const n = t, r = e, o = go(), i = Oh(), s = Mh(), { forwardRef: a, currentElement: l } = Ae(), u = q(""), d = q();
|
|
4900
4900
|
function p(x) {
|
|
4901
4901
|
var C, S;
|
|
4902
4902
|
if (d.value) {
|
|
@@ -4963,7 +4963,7 @@ const m_ = /* @__PURE__ */ H({
|
|
|
4963
4963
|
}), AB = /* @__PURE__ */ H({
|
|
4964
4964
|
__name: "ScrollAreaScrollbarX",
|
|
4965
4965
|
setup(t) {
|
|
4966
|
-
const e =
|
|
4966
|
+
const e = go(), n = Oh(), { forwardRef: r, currentElement: o } = Ae();
|
|
4967
4967
|
Et(() => {
|
|
4968
4968
|
o.value && e.onScrollbarXChange(o.value);
|
|
4969
4969
|
});
|
|
@@ -4989,7 +4989,7 @@ const m_ = /* @__PURE__ */ H({
|
|
|
4989
4989
|
}), kB = /* @__PURE__ */ H({
|
|
4990
4990
|
__name: "ScrollAreaScrollbarY",
|
|
4991
4991
|
setup(t) {
|
|
4992
|
-
const e =
|
|
4992
|
+
const e = go(), n = Oh(), { forwardRef: r, currentElement: o } = Ae();
|
|
4993
4993
|
Et(() => {
|
|
4994
4994
|
o.value && e.onScrollbarYChange(o.value);
|
|
4995
4995
|
});
|
|
@@ -5016,7 +5016,7 @@ const m_ = /* @__PURE__ */ H({
|
|
|
5016
5016
|
}), [Oh, OB] = Kt("ScrollAreaScrollbarVisible"), e2 = /* @__PURE__ */ H({
|
|
5017
5017
|
__name: "ScrollAreaScrollbarVisible",
|
|
5018
5018
|
setup(t) {
|
|
5019
|
-
const e =
|
|
5019
|
+
const e = go(), n = Mh(), { forwardRef: r } = Ae(), o = q({
|
|
5020
5020
|
content: 0,
|
|
5021
5021
|
viewport: 0,
|
|
5022
5022
|
scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
|
|
@@ -5105,13 +5105,13 @@ const m_ = /* @__PURE__ */ H({
|
|
|
5105
5105
|
forceMount: { type: Boolean }
|
|
5106
5106
|
},
|
|
5107
5107
|
setup(t) {
|
|
5108
|
-
const e =
|
|
5108
|
+
const e = go(), n = Mh(), { forwardRef: r } = Ae(), o = q(!1), i = I5(() => {
|
|
5109
5109
|
if (e.viewport.value) {
|
|
5110
5110
|
const s = e.viewport.value.offsetWidth < e.viewport.value.scrollWidth, a = e.viewport.value.offsetHeight < e.viewport.value.scrollHeight;
|
|
5111
5111
|
o.value = n.isHorizontal.value ? s : a;
|
|
5112
5112
|
}
|
|
5113
5113
|
}, 10);
|
|
5114
|
-
return Et(() => i()), Dl(e.viewport, i), Dl(e.content, i), (s, a) => (L(), z(w(
|
|
5114
|
+
return Et(() => i()), Dl(e.viewport, i), Dl(e.content, i), (s, a) => (L(), z(w(mo), {
|
|
5115
5115
|
present: s.forceMount || o.value
|
|
5116
5116
|
}, {
|
|
5117
5117
|
default: M(() => [
|
|
@@ -5135,7 +5135,7 @@ const m_ = /* @__PURE__ */ H({
|
|
|
5135
5135
|
forceMount: { type: Boolean }
|
|
5136
5136
|
},
|
|
5137
5137
|
setup(t) {
|
|
5138
|
-
const e =
|
|
5138
|
+
const e = go(), { forwardRef: n } = Ae();
|
|
5139
5139
|
let r;
|
|
5140
5140
|
const o = q(!1);
|
|
5141
5141
|
function i() {
|
|
@@ -5152,7 +5152,7 @@ const m_ = /* @__PURE__ */ H({
|
|
|
5152
5152
|
}), Do(() => {
|
|
5153
5153
|
const a = e.scrollArea.value;
|
|
5154
5154
|
a && (window.clearTimeout(r), a.removeEventListener("pointerenter", i), a.removeEventListener("pointerleave", s));
|
|
5155
|
-
}), (a, l) => (L(), z(w(
|
|
5155
|
+
}), (a, l) => (L(), z(w(mo), {
|
|
5156
5156
|
present: a.forceMount || o.value
|
|
5157
5157
|
}, {
|
|
5158
5158
|
default: M(() => [
|
|
@@ -5175,7 +5175,7 @@ const m_ = /* @__PURE__ */ H({
|
|
|
5175
5175
|
forceMount: { type: Boolean }
|
|
5176
5176
|
},
|
|
5177
5177
|
setup(t) {
|
|
5178
|
-
const e =
|
|
5178
|
+
const e = go(), n = Mh(), { forwardRef: r } = Ae(), { state: o, dispatch: i } = z5("hidden", {
|
|
5179
5179
|
hidden: {
|
|
5180
5180
|
SCROLL: "scrolling"
|
|
5181
5181
|
},
|
|
@@ -5217,7 +5217,7 @@ const m_ = /* @__PURE__ */ H({
|
|
|
5217
5217
|
l.removeEventListener("scroll", p);
|
|
5218
5218
|
});
|
|
5219
5219
|
}
|
|
5220
|
-
}), (a, l) => (L(), z(w(
|
|
5220
|
+
}), (a, l) => (L(), z(w(mo), {
|
|
5221
5221
|
present: a.forceMount || w(o) !== "hidden"
|
|
5222
5222
|
}, {
|
|
5223
5223
|
default: M(() => [
|
|
@@ -5241,7 +5241,7 @@ const m_ = /* @__PURE__ */ H({
|
|
|
5241
5241
|
as: { default: "div" }
|
|
5242
5242
|
},
|
|
5243
5243
|
setup(t) {
|
|
5244
|
-
const e = t, { forwardRef: n } = Ae(), r =
|
|
5244
|
+
const e = t, { forwardRef: n } = Ae(), r = go(), o = J(() => e.orientation === "horizontal");
|
|
5245
5245
|
je(
|
|
5246
5246
|
o,
|
|
5247
5247
|
() => {
|
|
@@ -5299,7 +5299,7 @@ const m_ = /* @__PURE__ */ H({
|
|
|
5299
5299
|
as: {}
|
|
5300
5300
|
},
|
|
5301
5301
|
setup(t) {
|
|
5302
|
-
const e = t, n =
|
|
5302
|
+
const e = t, n = go(), r = Oh();
|
|
5303
5303
|
function o(h) {
|
|
5304
5304
|
const m = h.target.getBoundingClientRect(), b = h.clientX - m.left, v = h.clientY - m.top;
|
|
5305
5305
|
r.handleThumbDown(h, { x: b, y: v });
|
|
@@ -5344,7 +5344,7 @@ const m_ = /* @__PURE__ */ H({
|
|
|
5344
5344
|
}), DB = /* @__PURE__ */ H({
|
|
5345
5345
|
__name: "ScrollAreaCornerImpl",
|
|
5346
5346
|
setup(t) {
|
|
5347
|
-
const e =
|
|
5347
|
+
const e = go(), n = q(0), r = q(0), o = J(() => !!n.value && !!r.value);
|
|
5348
5348
|
function i() {
|
|
5349
5349
|
var a;
|
|
5350
5350
|
const l = ((a = e.scrollbarX.value) == null ? void 0 : a.offsetHeight) || 0;
|
|
@@ -5382,7 +5382,7 @@ const m_ = /* @__PURE__ */ H({
|
|
|
5382
5382
|
as: {}
|
|
5383
5383
|
},
|
|
5384
5384
|
setup(t) {
|
|
5385
|
-
const e = t, { forwardRef: n } = Ae(), r =
|
|
5385
|
+
const e = t, { forwardRef: n } = Ae(), r = go(), o = J(
|
|
5386
5386
|
() => !!r.scrollbarX.value && !!r.scrollbarY.value
|
|
5387
5387
|
), i = J(
|
|
5388
5388
|
() => r.type.value !== "scroll" && o.value
|
|
@@ -5444,10 +5444,10 @@ const m_ = /* @__PURE__ */ H({
|
|
|
5444
5444
|
},
|
|
5445
5445
|
emits: ["update:modelValue", "update:open"],
|
|
5446
5446
|
setup(t, { emit: e }) {
|
|
5447
|
-
const n = t, r = e, o =
|
|
5447
|
+
const n = t, r = e, o = co(n, "modelValue", r, {
|
|
5448
5448
|
defaultValue: n.defaultValue,
|
|
5449
5449
|
passive: n.modelValue === void 0
|
|
5450
|
-
}), i =
|
|
5450
|
+
}), i = co(n, "open", r, {
|
|
5451
5451
|
defaultValue: n.defaultOpen,
|
|
5452
5452
|
passive: n.open === void 0
|
|
5453
5453
|
}), s = q(), a = q(), l = q({
|
|
@@ -5520,7 +5520,7 @@ const m_ = /* @__PURE__ */ H({
|
|
|
5520
5520
|
_: 3
|
|
5521
5521
|
}));
|
|
5522
5522
|
}
|
|
5523
|
-
}), UB = [" ", "Enter", "ArrowUp", "ArrowDown"], WB = [" ", "Enter"],
|
|
5523
|
+
}), UB = [" ", "Enter", "ArrowUp", "ArrowDown"], WB = [" ", "Enter"], _o = 10;
|
|
5524
5524
|
function v_(t) {
|
|
5525
5525
|
return t === "" || eD(t);
|
|
5526
5526
|
}
|
|
@@ -5629,17 +5629,17 @@ const jB = /* @__PURE__ */ H({
|
|
|
5629
5629
|
if (i.triggerElement.value && i.valueElement.value && d.value && h.value && m != null && m.value && b != null && b.value && v != null && v.value) {
|
|
5630
5630
|
const E = i.triggerElement.value.getBoundingClientRect(), A = h.value.getBoundingClientRect(), k = i.valueElement.value.getBoundingClientRect(), N = v.value.getBoundingClientRect();
|
|
5631
5631
|
if (i.dir.value !== "rtl") {
|
|
5632
|
-
const Gt = N.left - A.left, wt = k.left - Gt, Jt = E.left - wt, tn = E.width + Jt, wn = Math.max(tn, A.width), Rn = window.innerWidth -
|
|
5632
|
+
const Gt = N.left - A.left, wt = k.left - Gt, Jt = E.left - wt, tn = E.width + Jt, wn = Math.max(tn, A.width), Rn = window.innerWidth - _o, An = eg(wt, _o, Math.max(_o, Rn - wn));
|
|
5633
5633
|
d.value.style.minWidth = `${tn}px`, d.value.style.left = `${An}px`;
|
|
5634
5634
|
} else {
|
|
5635
|
-
const Gt = A.right - N.right, wt = window.innerWidth - k.right - Gt, Jt = window.innerWidth - E.right - wt, tn = E.width + Jt, wn = Math.max(tn, A.width), Rn = window.innerWidth -
|
|
5635
|
+
const Gt = A.right - N.right, wt = window.innerWidth - k.right - Gt, Jt = window.innerWidth - E.right - wt, tn = E.width + Jt, wn = Math.max(tn, A.width), Rn = window.innerWidth - _o, An = eg(
|
|
5636
5636
|
wt,
|
|
5637
|
-
|
|
5638
|
-
Math.max(
|
|
5637
|
+
_o,
|
|
5638
|
+
Math.max(_o, Rn - wn)
|
|
5639
5639
|
);
|
|
5640
5640
|
d.value.style.minWidth = `${tn}px`, d.value.style.right = `${An}px`;
|
|
5641
5641
|
}
|
|
5642
|
-
const W = a.value, V = window.innerHeight -
|
|
5642
|
+
const W = a.value, V = window.innerHeight - _o * 2, B = m.value.scrollHeight, K = window.getComputedStyle(h.value), Z = Number.parseInt(
|
|
5643
5643
|
K.borderTopWidth,
|
|
5644
5644
|
10
|
|
5645
5645
|
), Se = Number.parseInt(K.paddingTop, 10), Ce = Number.parseInt(
|
|
@@ -5651,16 +5651,16 @@ const jB = /* @__PURE__ */ H({
|
|
|
5651
5651
|
), we = Z + Se + B + De + Ce, Y = Math.min(
|
|
5652
5652
|
b.value.offsetHeight * 5,
|
|
5653
5653
|
we
|
|
5654
|
-
), ce = window.getComputedStyle(m.value), xe = Number.parseInt(ce.paddingTop, 10),
|
|
5654
|
+
), ce = window.getComputedStyle(m.value), xe = Number.parseInt(ce.paddingTop, 10), ue = Number.parseInt(
|
|
5655
5655
|
ce.paddingBottom,
|
|
5656
5656
|
10
|
|
5657
|
-
), ve = E.top + E.height / 2 -
|
|
5657
|
+
), ve = E.top + E.height / 2 - _o, nt = V - ve, Ct = b.value.offsetHeight / 2, en = b.value.offsetTop + Ct, Je = Z + Se + en, St = we - Je;
|
|
5658
5658
|
if (Je <= ve) {
|
|
5659
5659
|
const Gt = b.value === W[W.length - 1];
|
|
5660
5660
|
d.value.style.bottom = "0px";
|
|
5661
5661
|
const wt = h.value.clientHeight - m.value.offsetTop - m.value.offsetHeight, Jt = Math.max(
|
|
5662
5662
|
nt,
|
|
5663
|
-
Ct + (Gt ?
|
|
5663
|
+
Ct + (Gt ? ue : 0) + wt + Ce
|
|
5664
5664
|
), tn = Je + Jt;
|
|
5665
5665
|
d.value.style.height = `${tn}px`;
|
|
5666
5666
|
} else {
|
|
@@ -5672,7 +5672,7 @@ const jB = /* @__PURE__ */ H({
|
|
|
5672
5672
|
) + St;
|
|
5673
5673
|
d.value.style.height = `${wt}px`, m.value.scrollTop = Je - ve + m.value.offsetTop;
|
|
5674
5674
|
}
|
|
5675
|
-
d.value.style.margin = `${
|
|
5675
|
+
d.value.style.margin = `${_o}px 0`, d.value.style.minHeight = `${Y}px`, d.value.style.maxHeight = `${V}px`, r("placed"), requestAnimationFrame(() => l.value = !0);
|
|
5676
5676
|
}
|
|
5677
5677
|
}
|
|
5678
5678
|
const C = q("");
|
|
@@ -5722,7 +5722,7 @@ const jB = /* @__PURE__ */ H({
|
|
|
5722
5722
|
alignOffset: {},
|
|
5723
5723
|
avoidCollisions: { type: Boolean },
|
|
5724
5724
|
collisionBoundary: {},
|
|
5725
|
-
collisionPadding: { default:
|
|
5725
|
+
collisionPadding: { default: _o },
|
|
5726
5726
|
arrowPadding: {},
|
|
5727
5727
|
sticky: {},
|
|
5728
5728
|
hideWhenDetached: { type: Boolean },
|
|
@@ -5948,7 +5948,7 @@ const jB = /* @__PURE__ */ H({
|
|
|
5948
5948
|
const s = q(), a = J(() => n.forceMount || o.open.value);
|
|
5949
5949
|
return (l, u) => {
|
|
5950
5950
|
var d;
|
|
5951
|
-
return a.value ? (L(), z(w(
|
|
5951
|
+
return a.value ? (L(), z(w(mo), {
|
|
5952
5952
|
key: 0,
|
|
5953
5953
|
ref_key: "presenceRef",
|
|
5954
5954
|
ref: s,
|
|
@@ -6124,7 +6124,7 @@ const jB = /* @__PURE__ */ H({
|
|
|
6124
6124
|
i.value,
|
|
6125
6125
|
i.disabled.value
|
|
6126
6126
|
), o.onNativeOptionAdd(l.value));
|
|
6127
|
-
}),
|
|
6127
|
+
}), ho(() => {
|
|
6128
6128
|
o.onNativeOptionRemove(l.value);
|
|
6129
6129
|
}), (u, d) => (L(), pe(Ze, null, [
|
|
6130
6130
|
I(w(qe), ge({
|
|
@@ -6162,7 +6162,7 @@ const jB = /* @__PURE__ */ H({
|
|
|
6162
6162
|
if (h != null && h.value && m != null && m.value) {
|
|
6163
6163
|
const b = Math.abs(l.value - p.scrollTop);
|
|
6164
6164
|
if (b > 0) {
|
|
6165
|
-
const v = window.innerHeight -
|
|
6165
|
+
const v = window.innerHeight - _o * 2, y = Number.parseFloat(
|
|
6166
6166
|
m.value.style.minHeight
|
|
6167
6167
|
), x = Number.parseFloat(m.value.style.height), C = Math.max(y, x);
|
|
6168
6168
|
if (C < v) {
|
|
@@ -6230,7 +6230,7 @@ const jB = /* @__PURE__ */ H({
|
|
|
6230
6230
|
n("autoScroll");
|
|
6231
6231
|
}, 50));
|
|
6232
6232
|
}
|
|
6233
|
-
return
|
|
6233
|
+
return ho(() => a()), (d, p) => {
|
|
6234
6234
|
var h;
|
|
6235
6235
|
return L(), z(w(qe), ge({
|
|
6236
6236
|
"aria-hidden": "true",
|
|
@@ -6439,7 +6439,7 @@ const [n2, gF] = Kt("TabsRoot"), bF = /* @__PURE__ */ H({
|
|
|
6439
6439
|
setup(t, { emit: e }) {
|
|
6440
6440
|
const n = t, r = e, { orientation: o, dir: i } = Nn(n), s = Ba(i);
|
|
6441
6441
|
Ae();
|
|
6442
|
-
const a =
|
|
6442
|
+
const a = co(n, "modelValue", r, {
|
|
6443
6443
|
defaultValue: n.defaultValue,
|
|
6444
6444
|
passive: n.modelValue === void 0
|
|
6445
6445
|
}), l = q();
|
|
@@ -6518,7 +6518,7 @@ const yF = /* @__PURE__ */ H({
|
|
|
6518
6518
|
requestAnimationFrame(() => {
|
|
6519
6519
|
a.value = !1;
|
|
6520
6520
|
});
|
|
6521
|
-
}), (l, u) => (L(), z(w(
|
|
6521
|
+
}), (l, u) => (L(), z(w(mo), {
|
|
6522
6522
|
present: s.value,
|
|
6523
6523
|
"force-mount": ""
|
|
6524
6524
|
}, {
|
|
@@ -6607,7 +6607,7 @@ const yF = /* @__PURE__ */ H({
|
|
|
6607
6607
|
setup(t, { emit: e }) {
|
|
6608
6608
|
const n = t, r = e;
|
|
6609
6609
|
Ae();
|
|
6610
|
-
const o =
|
|
6610
|
+
const o = co(n, "pressed", r, {
|
|
6611
6611
|
defaultValue: n.defaultValue,
|
|
6612
6612
|
passive: n.pressed === void 0
|
|
6613
6613
|
});
|
|
@@ -6679,7 +6679,7 @@ const yF = /* @__PURE__ */ H({
|
|
|
6679
6679
|
setup(t, { emit: e }) {
|
|
6680
6680
|
const n = t, r = e;
|
|
6681
6681
|
Ae();
|
|
6682
|
-
const o = r2(), i = J(() => n.disableHoverableContent ?? o.disableHoverableContent.value), s = J(() => n.disableClosingTrigger ?? o.disableClosingTrigger.value), a = J(() => n.disabled ?? o.disabled.value), l = J(() => n.delayDuration ?? o.delayDuration.value), u = J(() => n.ignoreNonKeyboardFocus ?? o.ignoreNonKeyboardFocus.value), d =
|
|
6682
|
+
const o = r2(), i = J(() => n.disableHoverableContent ?? o.disableHoverableContent.value), s = J(() => n.disableClosingTrigger ?? o.disableClosingTrigger.value), a = J(() => n.disabled ?? o.disabled.value), l = J(() => n.delayDuration ?? o.delayDuration.value), u = J(() => n.ignoreNonKeyboardFocus ?? o.ignoreNonKeyboardFocus.value), d = co(n, "open", r, {
|
|
6683
6683
|
defaultValue: n.defaultOpen,
|
|
6684
6684
|
passive: n.open === void 0
|
|
6685
6685
|
});
|
|
@@ -6918,7 +6918,7 @@ const yF = /* @__PURE__ */ H({
|
|
|
6918
6918
|
emits: ["escapeKeyDown", "pointerDownOutside"],
|
|
6919
6919
|
setup(t, { emit: e }) {
|
|
6920
6920
|
const n = t, r = e, o = Nh(), i = Wt(n, r), { forwardRef: s } = Ae();
|
|
6921
|
-
return (a, l) => (L(), z(w(
|
|
6921
|
+
return (a, l) => (L(), z(w(mo), {
|
|
6922
6922
|
present: a.forceMount || w(o).open.value
|
|
6923
6923
|
}, {
|
|
6924
6924
|
default: M(() => [
|
|
@@ -7191,7 +7191,7 @@ const Xt = (t) => {
|
|
|
7191
7191
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
7192
7192
|
qF.test(t) && !KF.test(t)
|
|
7193
7193
|
), N_ = () => !1, o$ = (t) => GF.test(t), i$ = (t) => JF.test(t), s$ = () => {
|
|
7194
|
-
const t = Xt("colors"), e = Xt("spacing"), n = Xt("blur"), r = Xt("brightness"), o = Xt("borderColor"), i = Xt("borderRadius"), s = Xt("borderSpacing"), a = Xt("borderWidth"), l = Xt("contrast"), u = Xt("grayscale"), d = Xt("hueRotate"), p = Xt("invert"), h = Xt("gap"), m = Xt("gradientColorStops"), b = Xt("gradientColorStopPositions"), v = Xt("inset"), y = Xt("margin"), x = Xt("opacity"), C = Xt("padding"), S = Xt("saturate"), E = Xt("scale"), A = Xt("sepia"), k = Xt("skew"), N = Xt("space"), W = Xt("translate"), V = () => ["auto", "contain", "none"], B = () => ["auto", "hidden", "clip", "visible", "scroll"], K = () => ["auto", tt, e], Z = () => [tt, e], Se = () => ["", xi, rs], Ce = () => ["auto", Al, tt], De = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], we = () => ["solid", "dashed", "dotted", "double", "none"], Y = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ce = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], xe = () => ["", "0", tt],
|
|
7194
|
+
const t = Xt("colors"), e = Xt("spacing"), n = Xt("blur"), r = Xt("brightness"), o = Xt("borderColor"), i = Xt("borderRadius"), s = Xt("borderSpacing"), a = Xt("borderWidth"), l = Xt("contrast"), u = Xt("grayscale"), d = Xt("hueRotate"), p = Xt("invert"), h = Xt("gap"), m = Xt("gradientColorStops"), b = Xt("gradientColorStopPositions"), v = Xt("inset"), y = Xt("margin"), x = Xt("opacity"), C = Xt("padding"), S = Xt("saturate"), E = Xt("scale"), A = Xt("sepia"), k = Xt("skew"), N = Xt("space"), W = Xt("translate"), V = () => ["auto", "contain", "none"], B = () => ["auto", "hidden", "clip", "visible", "scroll"], K = () => ["auto", tt, e], Z = () => [tt, e], Se = () => ["", xi, rs], Ce = () => ["auto", Al, tt], De = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], we = () => ["solid", "dashed", "dotted", "double", "none"], Y = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ce = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], xe = () => ["", "0", tt], ue = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ve = () => [Al, tt];
|
|
7195
7195
|
return {
|
|
7196
7196
|
cacheSize: 500,
|
|
7197
7197
|
separator: ":",
|
|
@@ -7248,14 +7248,14 @@ const Xt = (t) => {
|
|
|
7248
7248
|
* @see https://tailwindcss.com/docs/break-after
|
|
7249
7249
|
*/
|
|
7250
7250
|
"break-after": [{
|
|
7251
|
-
"break-after":
|
|
7251
|
+
"break-after": ue()
|
|
7252
7252
|
}],
|
|
7253
7253
|
/**
|
|
7254
7254
|
* Break Before
|
|
7255
7255
|
* @see https://tailwindcss.com/docs/break-before
|
|
7256
7256
|
*/
|
|
7257
7257
|
"break-before": [{
|
|
7258
|
-
"break-before":
|
|
7258
|
+
"break-before": ue()
|
|
7259
7259
|
}],
|
|
7260
7260
|
/**
|
|
7261
7261
|
* Break Inside
|
|
@@ -10293,7 +10293,7 @@ function C6(t) {
|
|
|
10293
10293
|
return t.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
10294
10294
|
}
|
|
10295
10295
|
const oW = Object.prototype.hasOwnProperty;
|
|
10296
|
-
function
|
|
10296
|
+
function So(t, e) {
|
|
10297
10297
|
return oW.call(t, e);
|
|
10298
10298
|
}
|
|
10299
10299
|
const cn = Array.isArray, zt = (t) => typeof t == "function", Ee = (t) => typeof t == "string", _t = (t) => typeof t == "boolean", vt = (t) => t !== null && typeof t == "object", iW = (t) => vt(t) && zt(t.then) && zt(t.catch), fE = Object.prototype.toString, m2 = (t) => fE.call(t), at = (t) => m2(t) === "[object Object]", sW = (t) => t == null ? "" : cn(t) || at(t) && t.toString === fE ? JSON.stringify(t, null, 2) : String(t);
|
|
@@ -10637,7 +10637,7 @@ function wW(t, e = {}) {
|
|
|
10637
10637
|
P >= 65 && P <= 70 || // A-F
|
|
10638
10638
|
P >= 97 && P <= 102;
|
|
10639
10639
|
}
|
|
10640
|
-
function
|
|
10640
|
+
function ue(F) {
|
|
10641
10641
|
return Z(F, xe);
|
|
10642
10642
|
}
|
|
10643
10643
|
function ve(F) {
|
|
@@ -10706,7 +10706,7 @@ function wW(t, e = {}) {
|
|
|
10706
10706
|
b(F, P);
|
|
10707
10707
|
let he = "";
|
|
10708
10708
|
for (let Re = 0; Re < oe; Re++) {
|
|
10709
|
-
const ut =
|
|
10709
|
+
const ut = ue(F);
|
|
10710
10710
|
if (!ut) {
|
|
10711
10711
|
p(We.INVALID_UNICODE_ESCAPE_SEQUENCE, i(), 0, `\\${P}${he}${F.currentChar()}`);
|
|
10712
10712
|
break;
|
|
@@ -11364,17 +11364,17 @@ function xg(t, e) {
|
|
|
11364
11364
|
return gf(e, n);
|
|
11365
11365
|
case 4: {
|
|
11366
11366
|
const r = e;
|
|
11367
|
-
if (
|
|
11367
|
+
if (So(r, "k") && r.k)
|
|
11368
11368
|
return t.interpolate(t.named(r.k));
|
|
11369
|
-
if (
|
|
11369
|
+
if (So(r, "key") && r.key)
|
|
11370
11370
|
return t.interpolate(t.named(r.key));
|
|
11371
11371
|
throw Sc(n);
|
|
11372
11372
|
}
|
|
11373
11373
|
case 5: {
|
|
11374
11374
|
const r = e;
|
|
11375
|
-
if (
|
|
11375
|
+
if (So(r, "i") && Sn(r.i))
|
|
11376
11376
|
return t.interpolate(t.list(r.i));
|
|
11377
|
-
if (
|
|
11377
|
+
if (So(r, "index") && Sn(r.index))
|
|
11378
11378
|
return t.interpolate(t.list(r.index));
|
|
11379
11379
|
throw Sc(n);
|
|
11380
11380
|
}
|
|
@@ -11418,7 +11418,7 @@ function ZW(t) {
|
|
|
11418
11418
|
function Fs(t, e, n) {
|
|
11419
11419
|
for (let r = 0; r < e.length; r++) {
|
|
11420
11420
|
const o = e[r];
|
|
11421
|
-
if (
|
|
11421
|
+
if (So(t, o) && t[o] != null)
|
|
11422
11422
|
return t[o];
|
|
11423
11423
|
}
|
|
11424
11424
|
return n;
|
|
@@ -11433,7 +11433,7 @@ function ej(t, e) {
|
|
|
11433
11433
|
const tj = (t) => t;
|
|
11434
11434
|
let bf = Dt();
|
|
11435
11435
|
function Rs(t) {
|
|
11436
|
-
return vt(t) && y2(t) === 0 && (
|
|
11436
|
+
return vt(t) && y2(t) === 0 && (So(t, "b") || So(t, "body"));
|
|
11437
11437
|
}
|
|
11438
11438
|
function nj(t, e = {}) {
|
|
11439
11439
|
let n = !1;
|
|
@@ -12527,7 +12527,7 @@ function Oc(t) {
|
|
|
12527
12527
|
if (!vt(t))
|
|
12528
12528
|
return t;
|
|
12529
12529
|
for (const e in t)
|
|
12530
|
-
if (
|
|
12530
|
+
if (So(t, e))
|
|
12531
12531
|
if (!e.includes("."))
|
|
12532
12532
|
vt(t[e]) && Oc(t[e]);
|
|
12533
12533
|
else {
|
|
@@ -12558,7 +12558,7 @@ function _2(t, e) {
|
|
|
12558
12558
|
Ee(a) && Hf(JSON.parse(a), s);
|
|
12559
12559
|
}), o == null && i)
|
|
12560
12560
|
for (const a in s)
|
|
12561
|
-
|
|
12561
|
+
So(s, a) && Oc(s[a]);
|
|
12562
12562
|
return s;
|
|
12563
12563
|
}
|
|
12564
12564
|
function ME(t) {
|
|
@@ -12675,7 +12675,7 @@ function E2(t = {}) {
|
|
|
12675
12675
|
function xe(Q, fe) {
|
|
12676
12676
|
return Q !== "translate" || !fe.resolvedMessage;
|
|
12677
12677
|
}
|
|
12678
|
-
const
|
|
12678
|
+
const ue = (Q, fe, ie, be, Be, rt) => {
|
|
12679
12679
|
V();
|
|
12680
12680
|
let Mt;
|
|
12681
12681
|
try {
|
|
@@ -12706,7 +12706,7 @@ function E2(t = {}) {
|
|
|
12706
12706
|
}
|
|
12707
12707
|
};
|
|
12708
12708
|
function ve(...Q) {
|
|
12709
|
-
return
|
|
12709
|
+
return ue((fe) => Reflect.apply(W6, null, [fe, ...Q]), () => Cg(...Q), "translate", (fe) => Reflect.apply(fe.t, fe, [...Q]), (fe) => fe, (fe) => Ee(fe));
|
|
12710
12710
|
}
|
|
12711
12711
|
function nt(...Q) {
|
|
12712
12712
|
const [fe, ie, be] = Q;
|
|
@@ -12715,10 +12715,10 @@ function E2(t = {}) {
|
|
|
12715
12715
|
return ve(fe, ie, Dn({ resolvedMessage: !0 }, be || {}));
|
|
12716
12716
|
}
|
|
12717
12717
|
function Ct(...Q) {
|
|
12718
|
-
return
|
|
12718
|
+
return ue((fe) => Reflect.apply(F6, null, [fe, ...Q]), () => _g(...Q), "datetime format", (fe) => Reflect.apply(fe.d, fe, [...Q]), () => pp, (fe) => Ee(fe));
|
|
12719
12719
|
}
|
|
12720
12720
|
function en(...Q) {
|
|
12721
|
-
return
|
|
12721
|
+
return ue((fe) => Reflect.apply(H6, null, [fe, ...Q]), () => Eg(...Q), "number format", (fe) => Reflect.apply(fe.n, fe, [...Q]), () => pp, (fe) => Ee(fe));
|
|
12722
12722
|
}
|
|
12723
12723
|
function Je(Q) {
|
|
12724
12724
|
return Q.map((fe) => Ee(fe) || Sn(fe) || _t(fe) ? j6(String(fe)) : fe);
|
|
@@ -12729,7 +12729,7 @@ function E2(t = {}) {
|
|
|
12729
12729
|
type: "vnode"
|
|
12730
12730
|
};
|
|
12731
12731
|
function wt(...Q) {
|
|
12732
|
-
return
|
|
12732
|
+
return ue((fe) => {
|
|
12733
12733
|
let ie;
|
|
12734
12734
|
const be = fe;
|
|
12735
12735
|
try {
|
|
@@ -12741,16 +12741,16 @@ function E2(t = {}) {
|
|
|
12741
12741
|
}, () => Cg(...Q), "translate", (fe) => fe[Tg](...Q), (fe) => [j6(fe)], (fe) => cn(fe));
|
|
12742
12742
|
}
|
|
12743
12743
|
function Jt(...Q) {
|
|
12744
|
-
return
|
|
12744
|
+
return ue((fe) => Reflect.apply(H6, null, [fe, ...Q]), () => Eg(...Q), "number format", (fe) => fe[kg](...Q), K6, (fe) => Ee(fe) || cn(fe));
|
|
12745
12745
|
}
|
|
12746
12746
|
function tn(...Q) {
|
|
12747
|
-
return
|
|
12747
|
+
return ue((fe) => Reflect.apply(F6, null, [fe, ...Q]), () => _g(...Q), "datetime format", (fe) => fe[Ag](...Q), K6, (fe) => Ee(fe) || cn(fe));
|
|
12748
12748
|
}
|
|
12749
12749
|
function wn(Q) {
|
|
12750
12750
|
k = Q, N.pluralRules = k;
|
|
12751
12751
|
}
|
|
12752
12752
|
function Rn(Q, fe) {
|
|
12753
|
-
return
|
|
12753
|
+
return ue(() => {
|
|
12754
12754
|
if (!Q)
|
|
12755
12755
|
return !1;
|
|
12756
12756
|
const ie = Ee(fe) ? fe : a.value, be = xn(ie), Be = N.messageResolver(be, Q);
|
|
@@ -12780,7 +12780,7 @@ function E2(t = {}) {
|
|
|
12780
12780
|
if (o) {
|
|
12781
12781
|
const ie = { [Q]: fe };
|
|
12782
12782
|
for (const be in ie)
|
|
12783
|
-
|
|
12783
|
+
So(ie, be) && Oc(ie[be]);
|
|
12784
12784
|
fe = ie[Q];
|
|
12785
12785
|
}
|
|
12786
12786
|
u.value[Q] = fe, N.messages = u.value;
|
|
@@ -12790,7 +12790,7 @@ function E2(t = {}) {
|
|
|
12790
12790
|
const ie = { [Q]: fe };
|
|
12791
12791
|
if (o)
|
|
12792
12792
|
for (const be in ie)
|
|
12793
|
-
|
|
12793
|
+
So(ie, be) && Oc(ie[be]);
|
|
12794
12794
|
fe = ie[Q], Hf(fe, u.value[Q]), N.messages = u.value;
|
|
12795
12795
|
}
|
|
12796
12796
|
function F(Q) {
|
|
@@ -15857,7 +15857,7 @@ function QE(t, e, n, r) {
|
|
|
15857
15857
|
n -= l, r -= l;
|
|
15858
15858
|
}
|
|
15859
15859
|
}
|
|
15860
|
-
class
|
|
15860
|
+
class le {
|
|
15861
15861
|
/**
|
|
15862
15862
|
@internal
|
|
15863
15863
|
*/
|
|
@@ -15912,7 +15912,7 @@ class ue {
|
|
|
15912
15912
|
let n = this.lastChild, r = e.firstChild, o = this.content.slice(), i = 0;
|
|
15913
15913
|
for (n.isText && n.sameMarkup(r) && (o[o.length - 1] = n.withText(n.text + r.text), i = 1); i < e.content.length; i++)
|
|
15914
15914
|
o.push(e.content[i]);
|
|
15915
|
-
return new
|
|
15915
|
+
return new le(o, this.size + e.size);
|
|
15916
15916
|
}
|
|
15917
15917
|
/**
|
|
15918
15918
|
Cut out the sub-fragment between the two given positions.
|
|
@@ -15926,13 +15926,13 @@ class ue {
|
|
|
15926
15926
|
let a = this.content[i], l = s + a.nodeSize;
|
|
15927
15927
|
l > e && ((s < e || l > n) && (a.isText ? a = a.cut(Math.max(0, e - s), Math.min(a.text.length, n - s)) : a = a.cut(Math.max(0, e - s - 1), Math.min(a.content.size, n - s - 1))), r.push(a), o += a.nodeSize), s = l;
|
|
15928
15928
|
}
|
|
15929
|
-
return new
|
|
15929
|
+
return new le(r, o);
|
|
15930
15930
|
}
|
|
15931
15931
|
/**
|
|
15932
15932
|
@internal
|
|
15933
15933
|
*/
|
|
15934
15934
|
cutByIndex(e, n) {
|
|
15935
|
-
return e == n ?
|
|
15935
|
+
return e == n ? le.empty : e == 0 && n == this.content.length ? this : new le(this.content.slice(e, n));
|
|
15936
15936
|
}
|
|
15937
15937
|
/**
|
|
15938
15938
|
Create a new fragment in which the node at the given index is
|
|
@@ -15943,21 +15943,21 @@ class ue {
|
|
|
15943
15943
|
if (r == n)
|
|
15944
15944
|
return this;
|
|
15945
15945
|
let o = this.content.slice(), i = this.size + n.nodeSize - r.nodeSize;
|
|
15946
|
-
return o[e] = n, new
|
|
15946
|
+
return o[e] = n, new le(o, i);
|
|
15947
15947
|
}
|
|
15948
15948
|
/**
|
|
15949
15949
|
Create a new fragment by prepending the given node to this
|
|
15950
15950
|
fragment.
|
|
15951
15951
|
*/
|
|
15952
15952
|
addToStart(e) {
|
|
15953
|
-
return new
|
|
15953
|
+
return new le([e].concat(this.content), this.size + e.nodeSize);
|
|
15954
15954
|
}
|
|
15955
15955
|
/**
|
|
15956
15956
|
Create a new fragment by appending the given node to this
|
|
15957
15957
|
fragment.
|
|
15958
15958
|
*/
|
|
15959
15959
|
addToEnd(e) {
|
|
15960
|
-
return new
|
|
15960
|
+
return new le(this.content.concat(e), this.size + e.nodeSize);
|
|
15961
15961
|
}
|
|
15962
15962
|
/**
|
|
15963
15963
|
Compare this fragment to another one.
|
|
@@ -16072,10 +16072,10 @@ class ue {
|
|
|
16072
16072
|
*/
|
|
16073
16073
|
static fromJSON(e, n) {
|
|
16074
16074
|
if (!n)
|
|
16075
|
-
return
|
|
16075
|
+
return le.empty;
|
|
16076
16076
|
if (!Array.isArray(n))
|
|
16077
16077
|
throw new RangeError("Invalid input for Fragment.fromJSON");
|
|
16078
|
-
return new
|
|
16078
|
+
return new le(n.map(e.nodeFromJSON));
|
|
16079
16079
|
}
|
|
16080
16080
|
/**
|
|
16081
16081
|
Build a fragment from an array of nodes. Ensures that adjacent
|
|
@@ -16083,13 +16083,13 @@ class ue {
|
|
|
16083
16083
|
*/
|
|
16084
16084
|
static fromArray(e) {
|
|
16085
16085
|
if (!e.length)
|
|
16086
|
-
return
|
|
16086
|
+
return le.empty;
|
|
16087
16087
|
let n, r = 0;
|
|
16088
16088
|
for (let o = 0; o < e.length; o++) {
|
|
16089
16089
|
let i = e[o];
|
|
16090
16090
|
r += i.nodeSize, o && i.isText && e[o - 1].sameMarkup(i) ? (n || (n = e.slice(0, o)), n[n.length - 1] = i.withText(n[n.length - 1].text + i.text)) : n && n.push(i);
|
|
16091
16091
|
}
|
|
16092
|
-
return new
|
|
16092
|
+
return new le(n || e, r);
|
|
16093
16093
|
}
|
|
16094
16094
|
/**
|
|
16095
16095
|
Create a fragment from something that can be interpreted as a
|
|
@@ -16099,17 +16099,17 @@ class ue {
|
|
|
16099
16099
|
*/
|
|
16100
16100
|
static from(e) {
|
|
16101
16101
|
if (!e)
|
|
16102
|
-
return
|
|
16103
|
-
if (e instanceof
|
|
16102
|
+
return le.empty;
|
|
16103
|
+
if (e instanceof le)
|
|
16104
16104
|
return e;
|
|
16105
16105
|
if (Array.isArray(e))
|
|
16106
16106
|
return this.fromArray(e);
|
|
16107
16107
|
if (e.attrs)
|
|
16108
|
-
return new
|
|
16108
|
+
return new le([e], e.nodeSize);
|
|
16109
16109
|
throw new RangeError("Can not convert " + e + " to a Fragment" + (e.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : ""));
|
|
16110
16110
|
}
|
|
16111
16111
|
}
|
|
16112
|
-
|
|
16112
|
+
le.empty = new le([], 0);
|
|
16113
16113
|
const r1 = { index: 0, offset: 0 };
|
|
16114
16114
|
function vf(t, e) {
|
|
16115
16115
|
return r1.index = t, r1.offset = e, r1;
|
|
@@ -16311,7 +16311,7 @@ class ye {
|
|
|
16311
16311
|
let r = n.openStart || 0, o = n.openEnd || 0;
|
|
16312
16312
|
if (typeof r != "number" || typeof o != "number")
|
|
16313
16313
|
throw new RangeError("Invalid input for Slice.fromJSON");
|
|
16314
|
-
return new ye(
|
|
16314
|
+
return new ye(le.fromJSON(e, n.content), r, o);
|
|
16315
16315
|
}
|
|
16316
16316
|
/**
|
|
16317
16317
|
Create a slice from a fragment by taking the maximum possible
|
|
@@ -16326,7 +16326,7 @@ class ye {
|
|
|
16326
16326
|
return new ye(e, r, o);
|
|
16327
16327
|
}
|
|
16328
16328
|
}
|
|
16329
|
-
ye.empty = new ye(
|
|
16329
|
+
ye.empty = new ye(le.empty, 0, 0);
|
|
16330
16330
|
function eC(t, e, n) {
|
|
16331
16331
|
let { index: r, offset: o } = t.findIndex(e), i = t.maybeChild(r), { index: s, offset: a } = t.findIndex(n);
|
|
16332
16332
|
if (o == e || i.isText) {
|
|
@@ -16391,7 +16391,7 @@ function ha(t, e) {
|
|
|
16391
16391
|
}
|
|
16392
16392
|
function oC(t, e, n, r, o) {
|
|
16393
16393
|
let i = t.depth > o && Bg(t, e, o + 1), s = r.depth > o && Bg(n, r, o + 1), a = [];
|
|
16394
|
-
return ic(null, t, o, a), i && s && e.index(o) == n.index(o) ? (rC(i, s), pa(ha(i, oC(t, e, n, r, o + 1)), a)) : (i && pa(ha(i, bp(t, e, o + 1)), a), ic(e, n, o, a), s && pa(ha(s, bp(n, r, o + 1)), a)), ic(r, null, o, a), new
|
|
16394
|
+
return ic(null, t, o, a), i && s && e.index(o) == n.index(o) ? (rC(i, s), pa(ha(i, oC(t, e, n, r, o + 1)), a)) : (i && pa(ha(i, bp(t, e, o + 1)), a), ic(e, n, o, a), s && pa(ha(s, bp(n, r, o + 1)), a)), ic(r, null, o, a), new le(a);
|
|
16395
16395
|
}
|
|
16396
16396
|
function bp(t, e, n) {
|
|
16397
16397
|
let r = [];
|
|
@@ -16399,12 +16399,12 @@ function bp(t, e, n) {
|
|
|
16399
16399
|
let o = Bg(t, e, n + 1);
|
|
16400
16400
|
pa(ha(o, bp(t, e, n + 1)), r);
|
|
16401
16401
|
}
|
|
16402
|
-
return ic(e, null, n, r), new
|
|
16402
|
+
return ic(e, null, n, r), new le(r);
|
|
16403
16403
|
}
|
|
16404
16404
|
function YK(t, e) {
|
|
16405
16405
|
let n = e.depth - t.openStart, o = e.node(n).copy(t.content);
|
|
16406
16406
|
for (let i = n - 1; i >= 0; i--)
|
|
16407
|
-
o = e.node(i).copy(
|
|
16407
|
+
o = e.node(i).copy(le.from(o));
|
|
16408
16408
|
return {
|
|
16409
16409
|
start: o.resolveNoCache(t.openStart + n),
|
|
16410
16410
|
end: o.resolveNoCache(o.content.size - t.openEnd - n)
|
|
@@ -16709,7 +16709,7 @@ let Bi = class Fg {
|
|
|
16709
16709
|
@internal
|
|
16710
16710
|
*/
|
|
16711
16711
|
constructor(e, n, r, o = Vt.none) {
|
|
16712
|
-
this.type = e, this.attrs = n, this.marks = o, this.content = r ||
|
|
16712
|
+
this.type = e, this.attrs = n, this.marks = o, this.content = r || le.empty;
|
|
16713
16713
|
}
|
|
16714
16714
|
/**
|
|
16715
16715
|
The array of this node's child nodes.
|
|
@@ -16998,7 +16998,7 @@ let Bi = class Fg {
|
|
|
16998
16998
|
can optionally pass `start` and `end` indices into the
|
|
16999
16999
|
replacement fragment.
|
|
17000
17000
|
*/
|
|
17001
|
-
canReplace(e, n, r =
|
|
17001
|
+
canReplace(e, n, r = le.empty, o = 0, i = r.childCount) {
|
|
17002
17002
|
let s = this.contentMatchAt(e).matchFragment(r, o, i), a = s && s.matchFragment(this.content, n);
|
|
17003
17003
|
if (!a || !a.validEnd)
|
|
17004
17004
|
return !1;
|
|
@@ -17069,7 +17069,7 @@ let Bi = class Fg {
|
|
|
17069
17069
|
throw new RangeError("Invalid text node in JSON");
|
|
17070
17070
|
return e.text(n.text, r);
|
|
17071
17071
|
}
|
|
17072
|
-
let o =
|
|
17072
|
+
let o = le.fromJSON(e, n.content), i = e.nodeType(n.type).create(n.attrs, o, r);
|
|
17073
17073
|
return i.type.checkAttrs(i.attrs), i;
|
|
17074
17074
|
}
|
|
17075
17075
|
};
|
|
@@ -17197,7 +17197,7 @@ class ka {
|
|
|
17197
17197
|
function i(s, a) {
|
|
17198
17198
|
let l = s.matchFragment(e, r);
|
|
17199
17199
|
if (l && (!n || l.validEnd))
|
|
17200
|
-
return
|
|
17200
|
+
return le.from(a.map((u) => u.createAndFill()));
|
|
17201
17201
|
for (let u = 0; u < s.next.length; u++) {
|
|
17202
17202
|
let { type: d, next: p } = s.next[u];
|
|
17203
17203
|
if (!(d.isText || d.hasRequiredAttrs()) && o.indexOf(p) == -1) {
|
|
@@ -17580,7 +17580,7 @@ let x8 = class fC {
|
|
|
17580
17580
|
create(e = null, n, r) {
|
|
17581
17581
|
if (this.isText)
|
|
17582
17582
|
throw new Error("NodeType.create can't construct text nodes");
|
|
17583
|
-
return new Bi(this, this.computeAttrs(e),
|
|
17583
|
+
return new Bi(this, this.computeAttrs(e), le.from(n), Vt.setFrom(r));
|
|
17584
17584
|
}
|
|
17585
17585
|
/**
|
|
17586
17586
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
|
|
@@ -17588,7 +17588,7 @@ let x8 = class fC {
|
|
|
17588
17588
|
if it doesn't match.
|
|
17589
17589
|
*/
|
|
17590
17590
|
createChecked(e = null, n, r) {
|
|
17591
|
-
return n =
|
|
17591
|
+
return n = le.from(n), this.checkContent(n), new Bi(this, this.computeAttrs(e), n, Vt.setFrom(r));
|
|
17592
17592
|
}
|
|
17593
17593
|
/**
|
|
17594
17594
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
|
|
@@ -17599,13 +17599,13 @@ let x8 = class fC {
|
|
|
17599
17599
|
`Fragment.empty` as content.
|
|
17600
17600
|
*/
|
|
17601
17601
|
createAndFill(e = null, n, r) {
|
|
17602
|
-
if (e = this.computeAttrs(e), n =
|
|
17602
|
+
if (e = this.computeAttrs(e), n = le.from(n), n.size) {
|
|
17603
17603
|
let s = this.contentMatch.fillBefore(n);
|
|
17604
17604
|
if (!s)
|
|
17605
17605
|
return null;
|
|
17606
17606
|
n = s.append(n);
|
|
17607
17607
|
}
|
|
17608
|
-
let o = this.contentMatch.matchFragment(n), i = o && o.fillBefore(
|
|
17608
|
+
let o = this.contentMatch.matchFragment(n), i = o && o.fillBefore(le.empty, !0);
|
|
17609
17609
|
return i ? new Bi(this, e, n.append(i), Vt.setFrom(r)) : null;
|
|
17610
17610
|
}
|
|
17611
17611
|
/**
|
|
@@ -18023,7 +18023,7 @@ class yf {
|
|
|
18023
18023
|
if (!this.match) {
|
|
18024
18024
|
if (!this.type)
|
|
18025
18025
|
return [];
|
|
18026
|
-
let n = this.type.contentMatch.fillBefore(
|
|
18026
|
+
let n = this.type.contentMatch.fillBefore(le.from(e));
|
|
18027
18027
|
if (n)
|
|
18028
18028
|
this.match = this.type.contentMatch.matchFragment(n);
|
|
18029
18029
|
else {
|
|
@@ -18041,8 +18041,8 @@ class yf {
|
|
|
18041
18041
|
r.text.length == o[0].length ? this.content.pop() : this.content[this.content.length - 1] = i.withText(i.text.slice(0, i.text.length - o[0].length));
|
|
18042
18042
|
}
|
|
18043
18043
|
}
|
|
18044
|
-
let n =
|
|
18045
|
-
return !e && this.match && (n = n.append(this.match.fillBefore(
|
|
18044
|
+
let n = le.from(this.content);
|
|
18045
|
+
return !e && this.match && (n = n.append(this.match.fillBefore(le.empty, !0))), this.type ? this.type.create(this.attrs, n, this.marks) : n;
|
|
18046
18046
|
}
|
|
18047
18047
|
inlineContext(e) {
|
|
18048
18048
|
return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !hC.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
|
|
@@ -18859,7 +18859,7 @@ function R2(t, e, n) {
|
|
|
18859
18859
|
let i = t.child(o);
|
|
18860
18860
|
i.content.size && (i = i.copy(R2(i.content, e, i))), i.isInline && (i = e(i, n, o)), r.push(i);
|
|
18861
18861
|
}
|
|
18862
|
-
return
|
|
18862
|
+
return le.fromArray(r);
|
|
18863
18863
|
}
|
|
18864
18864
|
class ys extends sr {
|
|
18865
18865
|
/**
|
|
@@ -18951,7 +18951,7 @@ class ws extends sr {
|
|
|
18951
18951
|
if (!n)
|
|
18952
18952
|
return On.fail("No node at mark step's position");
|
|
18953
18953
|
let r = n.type.create(n.attrs, null, this.mark.addToSet(n.marks));
|
|
18954
|
-
return On.fromReplace(e, this.pos, this.pos + 1, new ye(
|
|
18954
|
+
return On.fromReplace(e, this.pos, this.pos + 1, new ye(le.from(r), 0, n.isLeaf ? 0 : 1));
|
|
18955
18955
|
}
|
|
18956
18956
|
invert(e) {
|
|
18957
18957
|
let n = e.nodeAt(this.pos);
|
|
@@ -18995,7 +18995,7 @@ class Vl extends sr {
|
|
|
18995
18995
|
if (!n)
|
|
18996
18996
|
return On.fail("No node at mark step's position");
|
|
18997
18997
|
let r = n.type.create(n.attrs, null, this.mark.removeFromSet(n.marks));
|
|
18998
|
-
return On.fromReplace(e, this.pos, this.pos + 1, new ye(
|
|
18998
|
+
return On.fromReplace(e, this.pos, this.pos + 1, new ye(le.from(r), 0, n.isLeaf ? 0 : 1));
|
|
18999
18999
|
}
|
|
19000
19000
|
invert(e) {
|
|
19001
19001
|
let n = e.nodeAt(this.pos);
|
|
@@ -19194,13 +19194,13 @@ function L2(t, e, n, r = n.contentMatch, o = !0) {
|
|
|
19194
19194
|
if (o && u.isText && n.whitespace != "pre") {
|
|
19195
19195
|
let h, m = /\r?\n|\r/g, b;
|
|
19196
19196
|
for (; h = m.exec(u.text); )
|
|
19197
|
-
b || (b = new ye(
|
|
19197
|
+
b || (b = new ye(le.from(n.schema.text(" ", n.allowedMarks(u.marks))), 0, 0)), s.push(new kn(a + h.index, a + h.index + h[0].length, b));
|
|
19198
19198
|
}
|
|
19199
19199
|
}
|
|
19200
19200
|
a = d;
|
|
19201
19201
|
}
|
|
19202
19202
|
if (!r.validEnd) {
|
|
19203
|
-
let l = r.fillBefore(
|
|
19203
|
+
let l = r.fillBefore(le.empty, !0);
|
|
19204
19204
|
t.replace(a, a, new ye(l, 0, 0));
|
|
19205
19205
|
}
|
|
19206
19206
|
for (let l = s.length - 1; l >= 0; l--)
|
|
@@ -19221,12 +19221,12 @@ function du(t) {
|
|
|
19221
19221
|
return null;
|
|
19222
19222
|
}
|
|
19223
19223
|
function EG(t, e, n) {
|
|
19224
|
-
let { $from: r, $to: o, depth: i } = e, s = r.before(i + 1), a = o.after(i + 1), l = s, u = a, d =
|
|
19224
|
+
let { $from: r, $to: o, depth: i } = e, s = r.before(i + 1), a = o.after(i + 1), l = s, u = a, d = le.empty, p = 0;
|
|
19225
19225
|
for (let b = i, v = !1; b > n; b--)
|
|
19226
|
-
v || r.index(b) > 0 ? (v = !0, d =
|
|
19227
|
-
let h =
|
|
19226
|
+
v || r.index(b) > 0 ? (v = !0, d = le.from(r.node(b).copy(d)), p++) : l--;
|
|
19227
|
+
let h = le.empty, m = 0;
|
|
19228
19228
|
for (let b = i, v = !1; b > n; b--)
|
|
19229
|
-
v || o.after(b + 1) < o.end(b) ? (v = !0, h =
|
|
19229
|
+
v || o.after(b + 1) < o.end(b) ? (v = !0, h = le.from(o.node(b).copy(h)), m++) : u++;
|
|
19230
19230
|
t.step(new zn(l, u, s, a, new ye(d.append(h), p, m), d.size - p, !0));
|
|
19231
19231
|
}
|
|
19232
19232
|
function I2(t, e, n = null, r = t) {
|
|
@@ -19253,14 +19253,14 @@ function SG(t, e) {
|
|
|
19253
19253
|
return !l || !l.validEnd ? null : s;
|
|
19254
19254
|
}
|
|
19255
19255
|
function TG(t, e, n) {
|
|
19256
|
-
let r =
|
|
19256
|
+
let r = le.empty;
|
|
19257
19257
|
for (let s = n.length - 1; s >= 0; s--) {
|
|
19258
19258
|
if (r.size) {
|
|
19259
19259
|
let a = n[s].type.contentMatch.matchFragment(r);
|
|
19260
19260
|
if (!a || !a.validEnd)
|
|
19261
19261
|
throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper");
|
|
19262
19262
|
}
|
|
19263
|
-
r =
|
|
19263
|
+
r = le.from(n[s].type.create(n[s].attrs, r));
|
|
19264
19264
|
}
|
|
19265
19265
|
let o = e.start, i = e.end;
|
|
19266
19266
|
t.step(new zn(o, i, o, i, new ye(r, 0, 0), n.length, !0));
|
|
@@ -19279,7 +19279,7 @@ function AG(t, e, n, r, o) {
|
|
|
19279
19279
|
}
|
|
19280
19280
|
u === !1 && _C(t, s, a, i), L2(t, t.mapping.slice(i).map(a, 1), r, void 0, u === null);
|
|
19281
19281
|
let d = t.mapping.slice(i), p = d.map(a, 1), h = d.map(a + s.nodeSize, 1);
|
|
19282
|
-
return t.step(new zn(p, h, p + 1, h - 1, new ye(
|
|
19282
|
+
return t.step(new zn(p, h, p + 1, h - 1, new ye(le.from(r.create(l, null, s.marks)), 0, 0), 1, !0)), u === !0 && xC(t, s, a, i), !1;
|
|
19283
19283
|
}
|
|
19284
19284
|
});
|
|
19285
19285
|
}
|
|
@@ -19317,7 +19317,7 @@ function OG(t, e, n, r, o) {
|
|
|
19317
19317
|
return t.replaceWith(e, e + i.nodeSize, s);
|
|
19318
19318
|
if (!n.validContent(i.content))
|
|
19319
19319
|
throw new RangeError("Invalid content for node type " + n.name);
|
|
19320
|
-
t.step(new zn(e, e + i.nodeSize, e + 1, e + i.nodeSize - 1, new ye(
|
|
19320
|
+
t.step(new zn(e, e + i.nodeSize, e + 1, e + i.nodeSize - 1, new ye(le.from(s), 0, 0), 1, !0));
|
|
19321
19321
|
}
|
|
19322
19322
|
function Hr(t, e, n = 1, r) {
|
|
19323
19323
|
let o = t.resolve(e), i = o.depth - n, s = r && r[r.length - 1] || o.parent;
|
|
@@ -19337,11 +19337,11 @@ function Hr(t, e, n = 1, r) {
|
|
|
19337
19337
|
return o.node(i).canReplaceWith(a, a, l ? l.type : o.node(i + 1).type);
|
|
19338
19338
|
}
|
|
19339
19339
|
function MG(t, e, n = 1, r) {
|
|
19340
|
-
let o = t.doc.resolve(e), i =
|
|
19340
|
+
let o = t.doc.resolve(e), i = le.empty, s = le.empty;
|
|
19341
19341
|
for (let a = o.depth, l = o.depth - n, u = n - 1; a > l; a--, u--) {
|
|
19342
|
-
i =
|
|
19342
|
+
i = le.from(o.node(a).copy(i));
|
|
19343
19343
|
let d = r && r[u];
|
|
19344
|
-
s =
|
|
19344
|
+
s = le.from(d ? d.type.create(d.attrs, s) : o.node(a).copy(s));
|
|
19345
19345
|
}
|
|
19346
19346
|
t.step(new kn(e, e, new ye(i.append(s), n, n), !0));
|
|
19347
19347
|
}
|
|
@@ -19446,7 +19446,7 @@ function SC(t, e, n) {
|
|
|
19446
19446
|
}
|
|
19447
19447
|
class IG {
|
|
19448
19448
|
constructor(e, n, r) {
|
|
19449
|
-
this.$from = e, this.$to = n, this.unplaced = r, this.frontier = [], this.placed =
|
|
19449
|
+
this.$from = e, this.$to = n, this.unplaced = r, this.frontier = [], this.placed = le.empty;
|
|
19450
19450
|
for (let o = 0; o <= e.depth; o++) {
|
|
19451
19451
|
let i = e.node(o);
|
|
19452
19452
|
this.frontier.push({
|
|
@@ -19455,7 +19455,7 @@ class IG {
|
|
|
19455
19455
|
});
|
|
19456
19456
|
}
|
|
19457
19457
|
for (let o = e.depth; o > 0; o--)
|
|
19458
|
-
this.placed =
|
|
19458
|
+
this.placed = le.from(e.node(o).copy(this.placed));
|
|
19459
19459
|
}
|
|
19460
19460
|
get depth() {
|
|
19461
19461
|
return this.frontier.length - 1;
|
|
@@ -19494,7 +19494,7 @@ class IG {
|
|
|
19494
19494
|
let s = o.firstChild;
|
|
19495
19495
|
for (let a = this.depth; a >= 0; a--) {
|
|
19496
19496
|
let { type: l, match: u } = this.frontier[a], d, p = null;
|
|
19497
|
-
if (n == 1 && (s ? u.matchType(s.type) || (p = u.fillBefore(
|
|
19497
|
+
if (n == 1 && (s ? u.matchType(s.type) || (p = u.fillBefore(le.from(s), !1)) : i && l.compatibleContent(i.type)))
|
|
19498
19498
|
return { sliceDepth: r, frontierDepth: a, parent: i, inject: p };
|
|
19499
19499
|
if (n == 2 && s && (d = u.findWrapping(s.type)))
|
|
19500
19500
|
return { sliceDepth: r, frontierDepth: a, parent: i, wrap: d };
|
|
@@ -19538,7 +19538,7 @@ class IG {
|
|
|
19538
19538
|
u++, (u > 1 || l == 0 || v.content.size) && (p = y, d.push(TC(v.mark(h.allowedMarks(v.marks)), u == 1 ? l : 0, u == a.childCount ? m : -1)));
|
|
19539
19539
|
}
|
|
19540
19540
|
let b = u == a.childCount;
|
|
19541
|
-
b || (m = -1), this.placed = ec(this.placed, n,
|
|
19541
|
+
b || (m = -1), this.placed = ec(this.placed, n, le.from(d)), this.frontier[n].match = p, b && m < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
|
|
19542
19542
|
for (let v = 0, y = a; v < m; v++) {
|
|
19543
19543
|
let x = y.lastChild;
|
|
19544
19544
|
this.frontier.push({ type: x.type, match: x.contentMatchAt(x.childCount) }), y = x.content;
|
|
@@ -19584,10 +19584,10 @@ class IG {
|
|
|
19584
19584
|
}
|
|
19585
19585
|
openFrontierNode(e, n = null, r) {
|
|
19586
19586
|
let o = this.frontier[this.depth];
|
|
19587
|
-
o.match = o.match.matchType(e), this.placed = ec(this.placed, this.depth,
|
|
19587
|
+
o.match = o.match.matchType(e), this.placed = ec(this.placed, this.depth, le.from(e.create(n, r))), this.frontier.push({ type: e, match: e.contentMatch });
|
|
19588
19588
|
}
|
|
19589
19589
|
closeFrontierNode() {
|
|
19590
|
-
let n = this.frontier.pop().match.fillBefore(
|
|
19590
|
+
let n = this.frontier.pop().match.fillBefore(le.empty, !0);
|
|
19591
19591
|
n.childCount && (this.placed = ec(this.placed, this.frontier.length, n));
|
|
19592
19592
|
}
|
|
19593
19593
|
}
|
|
@@ -19606,7 +19606,7 @@ function TC(t, e, n) {
|
|
|
19606
19606
|
if (e <= 0)
|
|
19607
19607
|
return t;
|
|
19608
19608
|
let r = t.content;
|
|
19609
|
-
return e > 1 && (r = r.replaceChild(0, TC(r.firstChild, e - 1, r.childCount == 1 ? n - 1 : 0))), e > 0 && (r = t.type.contentMatch.fillBefore(r).append(r), n <= 0 && (r = r.append(t.type.contentMatch.matchFragment(r).fillBefore(
|
|
19609
|
+
return e > 1 && (r = r.replaceChild(0, TC(r.firstChild, e - 1, r.childCount == 1 ? n - 1 : 0))), e > 0 && (r = t.type.contentMatch.fillBefore(r).append(r), n <= 0 && (r = r.append(t.type.contentMatch.matchFragment(r).fillBefore(le.empty, !0)))), t.copy(r);
|
|
19610
19610
|
}
|
|
19611
19611
|
function a1(t, e, n, r, o) {
|
|
19612
19612
|
let i = t.node(e), s = o ? t.indexAfter(e) : t.index(e);
|
|
@@ -19678,7 +19678,7 @@ function AC(t, e, n, r, o) {
|
|
|
19678
19678
|
}
|
|
19679
19679
|
if (e > r) {
|
|
19680
19680
|
let i = o.contentMatchAt(0), s = i.fillBefore(t).append(t);
|
|
19681
|
-
t = s.append(i.matchFragment(s).fillBefore(
|
|
19681
|
+
t = s.append(i.matchFragment(s).fillBefore(le.empty, !0));
|
|
19682
19682
|
}
|
|
19683
19683
|
return t;
|
|
19684
19684
|
}
|
|
@@ -19687,7 +19687,7 @@ function FG(t, e, n, r) {
|
|
|
19687
19687
|
let o = LG(t.doc, e, r.type);
|
|
19688
19688
|
o != null && (e = n = o);
|
|
19689
19689
|
}
|
|
19690
|
-
t.replaceRange(e, n, new ye(
|
|
19690
|
+
t.replaceRange(e, n, new ye(le.from(r), 0, 0));
|
|
19691
19691
|
}
|
|
19692
19692
|
function $G(t, e, n) {
|
|
19693
19693
|
let r = t.doc.resolve(e), o = t.doc.resolve(n), i = kC(r, o);
|
|
@@ -19729,7 +19729,7 @@ class Ol extends sr {
|
|
|
19729
19729
|
r[i] = n.attrs[i];
|
|
19730
19730
|
r[this.attr] = this.value;
|
|
19731
19731
|
let o = n.type.create(r, null, n.marks);
|
|
19732
|
-
return On.fromReplace(e, this.pos, this.pos + 1, new ye(
|
|
19732
|
+
return On.fromReplace(e, this.pos, this.pos + 1, new ye(le.from(o), 0, n.isLeaf ? 0 : 1));
|
|
19733
19733
|
}
|
|
19734
19734
|
getMap() {
|
|
19735
19735
|
return Dr.empty;
|
|
@@ -19851,7 +19851,7 @@ class D2 {
|
|
|
19851
19851
|
fragment, node, or array of nodes.
|
|
19852
19852
|
*/
|
|
19853
19853
|
replaceWith(e, n, r) {
|
|
19854
|
-
return this.replace(e, n, new ye(
|
|
19854
|
+
return this.replace(e, n, new ye(le.from(r), 0, 0));
|
|
19855
19855
|
}
|
|
19856
19856
|
/**
|
|
19857
19857
|
Delete the content between the given positions.
|
|
@@ -20289,7 +20289,7 @@ class Ie extends Le {
|
|
|
20289
20289
|
return r ? Le.near(i) : new Ie(i);
|
|
20290
20290
|
}
|
|
20291
20291
|
content() {
|
|
20292
|
-
return new ye(
|
|
20292
|
+
return new ye(le.from(this.node), 0, 0);
|
|
20293
20293
|
}
|
|
20294
20294
|
eq(e) {
|
|
20295
20295
|
return e instanceof Ie && e.anchor == this.anchor;
|
|
@@ -21748,7 +21748,7 @@ class Ss extends ld {
|
|
|
21748
21748
|
break;
|
|
21749
21749
|
}
|
|
21750
21750
|
}
|
|
21751
|
-
e.contentElement || (e.getContent = () =>
|
|
21751
|
+
e.contentElement || (e.getContent = () => le.empty);
|
|
21752
21752
|
}
|
|
21753
21753
|
return e;
|
|
21754
21754
|
}
|
|
@@ -22695,7 +22695,7 @@ function JC(t, e, n, r, o) {
|
|
|
22695
22695
|
if (t.someProp("transformPastedText", (h) => {
|
|
22696
22696
|
e = h(e, i || r, t);
|
|
22697
22697
|
}), i)
|
|
22698
|
-
return e ? new ye(
|
|
22698
|
+
return e ? new ye(le.from(t.state.schema.text(e.replace(/\r\n?/g, `
|
|
22699
22699
|
`))), 0, 0) : ye.empty;
|
|
22700
22700
|
let p = t.someProp("clipboardTextParser", (h) => h(e, o, r, t));
|
|
22701
22701
|
if (p)
|
|
@@ -22761,13 +22761,13 @@ function LJ(t, e) {
|
|
|
22761
22761
|
s.push(d), o = o.matchType(d.type), i = l;
|
|
22762
22762
|
}
|
|
22763
22763
|
}), s)
|
|
22764
|
-
return
|
|
22764
|
+
return le.from(s);
|
|
22765
22765
|
}
|
|
22766
22766
|
return t;
|
|
22767
22767
|
}
|
|
22768
22768
|
function YC(t, e, n = 0) {
|
|
22769
22769
|
for (let r = e.length - 1; r >= n; r--)
|
|
22770
|
-
t = e[r].create(null,
|
|
22770
|
+
t = e[r].create(null, le.from(t));
|
|
22771
22771
|
return t;
|
|
22772
22772
|
}
|
|
22773
22773
|
function XC(t, e, n, r, o) {
|
|
@@ -22776,18 +22776,18 @@ function XC(t, e, n, r, o) {
|
|
|
22776
22776
|
if (i)
|
|
22777
22777
|
return r.copy(r.content.replaceChild(r.childCount - 1, i));
|
|
22778
22778
|
if (r.contentMatchAt(r.childCount).matchType(o == t.length - 1 ? n.type : t[o + 1]))
|
|
22779
|
-
return r.copy(r.content.append(
|
|
22779
|
+
return r.copy(r.content.append(le.from(YC(n, t, o + 1))));
|
|
22780
22780
|
}
|
|
22781
22781
|
}
|
|
22782
22782
|
function ZC(t, e) {
|
|
22783
22783
|
if (e == 0)
|
|
22784
22784
|
return t;
|
|
22785
|
-
let n = t.content.replaceChild(t.childCount - 1, ZC(t.lastChild, e - 1)), r = t.contentMatchAt(t.childCount).fillBefore(
|
|
22785
|
+
let n = t.content.replaceChild(t.childCount - 1, ZC(t.lastChild, e - 1)), r = t.contentMatchAt(t.childCount).fillBefore(le.empty, !0);
|
|
22786
22786
|
return t.copy(n.append(r));
|
|
22787
22787
|
}
|
|
22788
22788
|
function Xg(t, e, n, r, o, i) {
|
|
22789
22789
|
let s = e < 0 ? t.firstChild : t.lastChild, a = s.content;
|
|
22790
|
-
return t.childCount > 1 && (i = 0), o < r - 1 && (a = Xg(a, e, n, r, o + 1, i)), o >= n && (a = e < 0 ? s.contentMatchAt(0).fillBefore(a, i <= o).append(a) : a.append(s.contentMatchAt(s.childCount).fillBefore(
|
|
22790
|
+
return t.childCount > 1 && (i = 0), o < r - 1 && (a = Xg(a, e, n, r, o + 1, i)), o >= n && (a = e < 0 ? s.contentMatchAt(0).fillBefore(a, i <= o).append(a) : a.append(s.contentMatchAt(s.childCount).fillBefore(le.empty, !0))), t.replaceChild(e < 0 ? 0 : t.childCount - 1, s.copy(a));
|
|
22791
22791
|
}
|
|
22792
22792
|
function ow(t, e, n) {
|
|
22793
22793
|
return e < t.openStart && (t = new ye(Xg(t.content, -1, e, t.openStart, 0, t.openEnd), e, t.openEnd)), n < t.openEnd && (t = new ye(Xg(t.content, 1, n, t.openEnd, 0, 0), t.openStart, n)), t;
|
|
@@ -22842,7 +22842,7 @@ function BJ(t, e) {
|
|
|
22842
22842
|
let l = n.nodes[r[a]];
|
|
22843
22843
|
if (!l || l.hasRequiredAttrs())
|
|
22844
22844
|
break;
|
|
22845
|
-
o =
|
|
22845
|
+
o = le.from(l.create(r[a + 1], o)), i++, s++;
|
|
22846
22846
|
}
|
|
22847
22847
|
return new ye(o, i, s);
|
|
22848
22848
|
}
|
|
@@ -24108,7 +24108,7 @@ function bY(t, e) {
|
|
|
24108
24108
|
let u = [];
|
|
24109
24109
|
for (let d = 0; d < e.childCount; d++)
|
|
24110
24110
|
u.push(l(e.child(d)));
|
|
24111
|
-
if (
|
|
24111
|
+
if (le.from(u).eq(t))
|
|
24112
24112
|
return { mark: a, type: s };
|
|
24113
24113
|
}
|
|
24114
24114
|
function vY(t, e, n, r, o) {
|
|
@@ -24963,10 +24963,10 @@ function xS(t, e, n, r) {
|
|
|
24963
24963
|
let u = !l && e.parent.canReplace(e.index(), e.index() + 1);
|
|
24964
24964
|
if (u && (s = (a = o.contentMatchAt(o.childCount)).findWrapping(i.type)) && a.matchType(s[0] || i.type).validEnd) {
|
|
24965
24965
|
if (n) {
|
|
24966
|
-
let m = e.pos + i.nodeSize, b =
|
|
24966
|
+
let m = e.pos + i.nodeSize, b = le.empty;
|
|
24967
24967
|
for (let x = s.length - 1; x >= 0; x--)
|
|
24968
|
-
b =
|
|
24969
|
-
b =
|
|
24968
|
+
b = le.from(s[x].create(null, b));
|
|
24969
|
+
b = le.from(o.copy(b));
|
|
24970
24970
|
let v = t.tr.step(new zn(e.pos - 1, m, e.pos, m, new ye(b, 1, 0), s.length, !0)), y = v.doc.resolve(m + 2 * s.length);
|
|
24971
24971
|
y.nodeAfter && y.nodeAfter.type == o.type && zs(v.doc, y.pos) && v.join(y.pos), n(v.scrollIntoView());
|
|
24972
24972
|
}
|
|
@@ -24984,9 +24984,9 @@ function xS(t, e, n, r) {
|
|
|
24984
24984
|
y++;
|
|
24985
24985
|
if (m.canReplace(m.childCount, m.childCount, v.content)) {
|
|
24986
24986
|
if (n) {
|
|
24987
|
-
let x =
|
|
24987
|
+
let x = le.empty;
|
|
24988
24988
|
for (let S = b.length - 1; S >= 0; S--)
|
|
24989
|
-
x =
|
|
24989
|
+
x = le.from(b[S].copy(x));
|
|
24990
24990
|
let C = t.tr.step(new zn(e.pos - b.length, e.pos + i.nodeSize, e.pos + y, e.pos + i.nodeSize - y, new ye(x, b.length, 0), 0, !0));
|
|
24991
24991
|
n(C.scrollIntoView());
|
|
24992
24992
|
}
|
|
@@ -25076,9 +25076,9 @@ function jY(t, e, n, r = null) {
|
|
|
25076
25076
|
return a ? (t && qY(t, e, a, o, n), !0) : !1;
|
|
25077
25077
|
}
|
|
25078
25078
|
function qY(t, e, n, r, o) {
|
|
25079
|
-
let i =
|
|
25079
|
+
let i = le.empty;
|
|
25080
25080
|
for (let d = n.length - 1; d >= 0; d--)
|
|
25081
|
-
i =
|
|
25081
|
+
i = le.from(n[d].type.create(n[d].attrs, i));
|
|
25082
25082
|
t.step(new zn(e.start - (r ? 2 : 0), e.end, e.start, e.end, new ye(i, 0, 0), n.length, !0));
|
|
25083
25083
|
let s = 0;
|
|
25084
25084
|
for (let d = 0; d < n.length; d++)
|
|
@@ -25096,7 +25096,7 @@ function KY(t) {
|
|
|
25096
25096
|
}
|
|
25097
25097
|
function GY(t, e, n, r) {
|
|
25098
25098
|
let o = t.tr, i = r.end, s = r.$to.end(r.depth);
|
|
25099
|
-
i < s && (o.step(new zn(i - 1, s, i, s, new ye(
|
|
25099
|
+
i < s && (o.step(new zn(i - 1, s, i, s, new ye(le.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new vp(o.doc.resolve(r.$from.pos), o.doc.resolve(s), r.depth));
|
|
25100
25100
|
const a = du(r);
|
|
25101
25101
|
if (a == null)
|
|
25102
25102
|
return !1;
|
|
@@ -25112,10 +25112,10 @@ function JY(t, e, n) {
|
|
|
25112
25112
|
if (r.mapping.map(n.end) != n.start + i.nodeAfter.nodeSize)
|
|
25113
25113
|
return !1;
|
|
25114
25114
|
let a = n.startIndex == 0, l = n.endIndex == o.childCount, u = i.node(-1), d = i.index(-1);
|
|
25115
|
-
if (!u.canReplace(d + (a ? 0 : 1), d + 1, s.content.append(l ?
|
|
25115
|
+
if (!u.canReplace(d + (a ? 0 : 1), d + 1, s.content.append(l ? le.empty : le.from(o))))
|
|
25116
25116
|
return !1;
|
|
25117
25117
|
let p = i.pos, h = p + s.nodeSize;
|
|
25118
|
-
return r.step(new zn(p - (a ? 1 : 0), h + (l ? 1 : 0), p + 1, h - 1, new ye((a ?
|
|
25118
|
+
return r.step(new zn(p - (a ? 1 : 0), h + (l ? 1 : 0), p + 1, h - 1, new ye((a ? le.empty : le.from(o.copy(le.empty))).append(l ? le.empty : le.from(o.copy(le.empty))), a ? 0 : 1, l ? 0 : 1), a ? 0 : 1)), e(r.scrollIntoView()), !0;
|
|
25119
25119
|
}
|
|
25120
25120
|
function YY(t) {
|
|
25121
25121
|
return function(e, n) {
|
|
@@ -25129,7 +25129,7 @@ function YY(t) {
|
|
|
25129
25129
|
if (l.type != t)
|
|
25130
25130
|
return !1;
|
|
25131
25131
|
if (n) {
|
|
25132
|
-
let u = l.lastChild && l.lastChild.type == a.type, d =
|
|
25132
|
+
let u = l.lastChild && l.lastChild.type == a.type, d = le.from(u ? t.create() : null), p = new ye(le.from(t.create(null, le.from(a.type.create(null, d)))), u ? 3 : 1, 0), h = i.start, m = i.end;
|
|
25133
25133
|
n(e.tr.step(new zn(h - (u ? 3 : 1), m, h, m, p, 1, !0)).scrollIntoView());
|
|
25134
25134
|
}
|
|
25135
25135
|
return !0;
|
|
@@ -25563,7 +25563,7 @@ function rX(t) {
|
|
|
25563
25563
|
const l = o.getMeta("applyInputRules");
|
|
25564
25564
|
return !!l && setTimeout(() => {
|
|
25565
25565
|
let { text: d } = l;
|
|
25566
|
-
typeof d == "string" ? d = d : d = X2(
|
|
25566
|
+
typeof d == "string" ? d = d : d = X2(le.from(d), s.schema);
|
|
25567
25567
|
const { from: p } = l, h = p + d.length;
|
|
25568
25568
|
wf({
|
|
25569
25569
|
editor: e,
|
|
@@ -25804,7 +25804,7 @@ function cX(t) {
|
|
|
25804
25804
|
return;
|
|
25805
25805
|
if (C) {
|
|
25806
25806
|
let { text: A } = x;
|
|
25807
|
-
typeof A == "string" ? A = A : A = X2(
|
|
25807
|
+
typeof A == "string" ? A = A : A = X2(le.from(A), m.schema);
|
|
25808
25808
|
const { from: k } = x, N = k + A.length, W = uX(A);
|
|
25809
25809
|
return l({
|
|
25810
25810
|
rule: d,
|
|
@@ -26244,7 +26244,7 @@ function Ef(t) {
|
|
|
26244
26244
|
return OS(n);
|
|
26245
26245
|
}
|
|
26246
26246
|
function Ap(t, e, n) {
|
|
26247
|
-
if (t instanceof Bi || t instanceof
|
|
26247
|
+
if (t instanceof Bi || t instanceof le)
|
|
26248
26248
|
return t;
|
|
26249
26249
|
n = {
|
|
26250
26250
|
slice: !0,
|
|
@@ -26255,7 +26255,7 @@ function Ap(t, e, n) {
|
|
|
26255
26255
|
if (r)
|
|
26256
26256
|
try {
|
|
26257
26257
|
if (Array.isArray(t) && t.length > 0)
|
|
26258
|
-
return
|
|
26258
|
+
return le.fromArray(t.map((a) => e.nodeFromJSON(a)));
|
|
26259
26259
|
const s = e.nodeFromJSON(t);
|
|
26260
26260
|
return n.errorOnInvalidContent && s.check(), s;
|
|
26261
26261
|
} catch (i) {
|
|
@@ -26344,7 +26344,7 @@ const NX = (t) => !("type" in t), RX = (t, e, n) => ({ tr: r, dispatch: o, edito
|
|
|
26344
26344
|
if (d) {
|
|
26345
26345
|
if (Array.isArray(e))
|
|
26346
26346
|
m = e.map((b) => b.text || "").join("");
|
|
26347
|
-
else if (e instanceof
|
|
26347
|
+
else if (e instanceof le) {
|
|
26348
26348
|
let b = "";
|
|
26349
26349
|
e.forEach((v) => {
|
|
26350
26350
|
v.text && (b += v.text);
|
|
@@ -26810,15 +26810,15 @@ const hZ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
26810
26810
|
if (l.depth === 2 || l.node(-3).type !== a || l.index(-2) !== l.node(-2).childCount - 1)
|
|
26811
26811
|
return !1;
|
|
26812
26812
|
if (o) {
|
|
26813
|
-
let x =
|
|
26813
|
+
let x = le.empty;
|
|
26814
26814
|
const C = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
|
|
26815
26815
|
for (let W = l.depth - C; W >= l.depth - 3; W -= 1)
|
|
26816
|
-
x =
|
|
26816
|
+
x = le.from(l.node(W).copy(x));
|
|
26817
26817
|
const S = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, E = {
|
|
26818
26818
|
...Gf(h, l.node().type.name, l.node().attrs),
|
|
26819
26819
|
...e
|
|
26820
26820
|
}, A = ((s = a.contentMatch.defaultType) === null || s === void 0 ? void 0 : s.createAndFill(E)) || void 0;
|
|
26821
|
-
x = x.append(
|
|
26821
|
+
x = x.append(le.from(a.createAndFill(null, A) || void 0));
|
|
26822
26822
|
const k = l.before(l.depth - (C - 1));
|
|
26823
26823
|
n.replace(k, l.after(-S), new ye(x, 4 - C, 0));
|
|
26824
26824
|
let N = -1;
|
|
@@ -27979,7 +27979,7 @@ function Is(t) {
|
|
|
27979
27979
|
function BZ(t) {
|
|
27980
27980
|
return t.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
27981
27981
|
}
|
|
27982
|
-
var Cr = "top",
|
|
27982
|
+
var Cr = "top", fo = "bottom", po = "right", Sr = "left", ov = "auto", cd = [Cr, fo, po, Sr], Gl = "start", zc = "end", FZ = "clippingParents", $S = "viewport", qu = "popper", $Z = "reference", Cw = /* @__PURE__ */ cd.reduce(function(t, e) {
|
|
27983
27983
|
return t.concat([e + "-" + Gl, e + "-" + zc]);
|
|
27984
27984
|
}, []), HS = /* @__PURE__ */ [].concat(cd, [ov]).reduce(function(t, e) {
|
|
27985
27985
|
return t.concat([e, e + "-" + Gl, e + "-" + zc]);
|
|
@@ -28185,9 +28185,9 @@ var tQ = function(e, n) {
|
|
|
28185
28185
|
})) : e, jS(typeof e != "number" ? e : qS(e, cd));
|
|
28186
28186
|
};
|
|
28187
28187
|
function nQ(t) {
|
|
28188
|
-
var e, n = t.state, r = t.name, o = t.options, i = n.elements.arrow, s = n.modifiersData.popperOffsets, a = Yo(n.placement), l = av(a), u = [Sr,
|
|
28188
|
+
var e, n = t.state, r = t.name, o = t.options, i = n.elements.arrow, s = n.modifiersData.popperOffsets, a = Yo(n.placement), l = av(a), u = [Sr, po].indexOf(a) >= 0, d = u ? "height" : "width";
|
|
28189
28189
|
if (!(!i || !s)) {
|
|
28190
|
-
var p = tQ(o.padding, n), h = sv(i), m = l === "y" ? Cr : Sr, b = l === "y" ?
|
|
28190
|
+
var p = tQ(o.padding, n), h = sv(i), m = l === "y" ? Cr : Sr, b = l === "y" ? fo : po, v = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], y = s[l] - n.rects.reference[l], x = dd(i), C = x ? l === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, S = v / 2 - y / 2, E = p[m], A = C - h[d] - p[b], k = C / 2 - h[d] / 2 + S, N = uc(E, k, A), W = l;
|
|
28191
28191
|
n.modifiersData[r] = (e = {}, e[W] = N, e.centerOffset = N - k, e);
|
|
28192
28192
|
}
|
|
28193
28193
|
}
|
|
@@ -28232,16 +28232,16 @@ function Tw(t) {
|
|
|
28232
28232
|
var x = s.hasOwnProperty("x"), C = s.hasOwnProperty("y"), S = Sr, E = Cr, A = window;
|
|
28233
28233
|
if (u) {
|
|
28234
28234
|
var k = dd(n), N = "clientHeight", W = "clientWidth";
|
|
28235
|
-
if (k === Wr(n) && (k = Ws(n), zi(k).position !== "static" && a === "absolute" && (N = "scrollHeight", W = "scrollWidth")), k = k, o === Cr || (o === Sr || o ===
|
|
28236
|
-
E =
|
|
28235
|
+
if (k === Wr(n) && (k = Ws(n), zi(k).position !== "static" && a === "absolute" && (N = "scrollHeight", W = "scrollWidth")), k = k, o === Cr || (o === Sr || o === po) && i === zc) {
|
|
28236
|
+
E = fo;
|
|
28237
28237
|
var V = p && k === A && A.visualViewport ? A.visualViewport.height : (
|
|
28238
28238
|
// $FlowFixMe[prop-missing]
|
|
28239
28239
|
k[N]
|
|
28240
28240
|
);
|
|
28241
28241
|
v -= V - r.height, v *= l ? 1 : -1;
|
|
28242
28242
|
}
|
|
28243
|
-
if (o === Sr || (o === Cr || o ===
|
|
28244
|
-
S =
|
|
28243
|
+
if (o === Sr || (o === Cr || o === fo) && i === zc) {
|
|
28244
|
+
S = po;
|
|
28245
28245
|
var B = p && k === A && A.visualViewport ? A.visualViewport.width : (
|
|
28246
28246
|
// $FlowFixMe[prop-missing]
|
|
28247
28247
|
k[W]
|
|
@@ -28422,13 +28422,13 @@ function GS(t) {
|
|
|
28422
28422
|
y: e.y - n.height
|
|
28423
28423
|
};
|
|
28424
28424
|
break;
|
|
28425
|
-
case
|
|
28425
|
+
case fo:
|
|
28426
28426
|
l = {
|
|
28427
28427
|
x: s,
|
|
28428
28428
|
y: e.y + e.height
|
|
28429
28429
|
};
|
|
28430
28430
|
break;
|
|
28431
|
-
case
|
|
28431
|
+
case po:
|
|
28432
28432
|
l = {
|
|
28433
28433
|
x: e.x + e.width,
|
|
28434
28434
|
y: a
|
|
@@ -28475,7 +28475,7 @@ function Vc(t, e) {
|
|
|
28475
28475
|
if (h === qu && K) {
|
|
28476
28476
|
var Z = K[o];
|
|
28477
28477
|
Object.keys(B).forEach(function(Se) {
|
|
28478
|
-
var Ce = [
|
|
28478
|
+
var Ce = [po, fo].indexOf(Se) >= 0 ? 1 : -1, De = [Cr, fo].indexOf(Se) >= 0 ? "y" : "x";
|
|
28479
28479
|
B[Se] += Z[De] * Ce;
|
|
28480
28480
|
});
|
|
28481
28481
|
}
|
|
@@ -28520,13 +28520,13 @@ function wQ(t) {
|
|
|
28520
28520
|
allowedAutoPlacements: v
|
|
28521
28521
|
}) : Je);
|
|
28522
28522
|
}, []), A = e.rects.reference, k = e.rects.popper, N = /* @__PURE__ */ new Map(), W = !0, V = E[0], B = 0; B < E.length; B++) {
|
|
28523
|
-
var K = E[B], Z = Yo(K), Se = Xl(K) === Gl, Ce = [Cr,
|
|
28523
|
+
var K = E[B], Z = Yo(K), Se = Xl(K) === Gl, Ce = [Cr, fo].indexOf(Z) >= 0, De = Ce ? "width" : "height", we = Vc(e, {
|
|
28524
28524
|
placement: K,
|
|
28525
28525
|
boundary: d,
|
|
28526
28526
|
rootBoundary: p,
|
|
28527
28527
|
altBoundary: h,
|
|
28528
28528
|
padding: u
|
|
28529
|
-
}), Y = Ce ? Se ?
|
|
28529
|
+
}), Y = Ce ? Se ? po : Sr : Se ? fo : Cr;
|
|
28530
28530
|
A[De] > k[De] && (Y = Jf(Y));
|
|
28531
28531
|
var ce = Jf(Y), xe = [];
|
|
28532
28532
|
if (i && xe.push(we[Z] <= 0), a && xe.push(we[Y] <= 0, we[ce] <= 0), xe.every(function(en) {
|
|
@@ -28538,7 +28538,7 @@ function wQ(t) {
|
|
|
28538
28538
|
N.set(K, xe);
|
|
28539
28539
|
}
|
|
28540
28540
|
if (W)
|
|
28541
|
-
for (var
|
|
28541
|
+
for (var ue = b ? 3 : 1, ve = function(Je) {
|
|
28542
28542
|
var St = E.find(function(Gt) {
|
|
28543
28543
|
var wt = N.get(Gt);
|
|
28544
28544
|
if (wt)
|
|
@@ -28548,7 +28548,7 @@ function wQ(t) {
|
|
|
28548
28548
|
});
|
|
28549
28549
|
if (St)
|
|
28550
28550
|
return V = St, "break";
|
|
28551
|
-
}, nt =
|
|
28551
|
+
}, nt = ue; nt > 0; nt--) {
|
|
28552
28552
|
var Ct = ve(nt);
|
|
28553
28553
|
if (Ct === "break") break;
|
|
28554
28554
|
}
|
|
@@ -28577,7 +28577,7 @@ function Ow(t, e, n) {
|
|
|
28577
28577
|
};
|
|
28578
28578
|
}
|
|
28579
28579
|
function Mw(t) {
|
|
28580
|
-
return [Cr,
|
|
28580
|
+
return [Cr, po, fo, Sr].some(function(e) {
|
|
28581
28581
|
return t[e] >= 0;
|
|
28582
28582
|
});
|
|
28583
28583
|
}
|
|
@@ -28608,7 +28608,7 @@ function CQ(t, e, n) {
|
|
|
28608
28608
|
var r = Yo(t), o = [Sr, Cr].indexOf(r) >= 0 ? -1 : 1, i = typeof n == "function" ? n(Object.assign({}, e, {
|
|
28609
28609
|
placement: t
|
|
28610
28610
|
})) : n, s = i[0], a = i[1];
|
|
28611
|
-
return s = s || 0, a = (a || 0) * o, [Sr,
|
|
28611
|
+
return s = s || 0, a = (a || 0) * o, [Sr, po].indexOf(r) >= 0 ? {
|
|
28612
28612
|
x: a,
|
|
28613
28613
|
y: s
|
|
28614
28614
|
} : {
|
|
@@ -28667,14 +28667,14 @@ function MQ(t) {
|
|
|
28667
28667
|
};
|
|
28668
28668
|
if (k) {
|
|
28669
28669
|
if (i) {
|
|
28670
|
-
var Se, Ce = E === "y" ? Cr : Sr, De = E === "y" ?
|
|
28670
|
+
var Se, Ce = E === "y" ? Cr : Sr, De = E === "y" ? fo : po, we = E === "y" ? "height" : "width", Y = k[E], ce = Y + y[Ce], xe = Y - y[De], ue = m ? -W[we] / 2 : 0, ve = C === Gl ? N[we] : W[we], nt = C === Gl ? -W[we] : -N[we], Ct = e.elements.arrow, en = m && Ct ? sv(Ct) : {
|
|
28671
28671
|
width: 0,
|
|
28672
28672
|
height: 0
|
|
28673
|
-
}, Je = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : WS(), St = Je[Ce], Gt = Je[De], wt = uc(0, N[we], en[we]), Jt = S ? N[we] / 2 -
|
|
28673
|
+
}, Je = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : WS(), St = Je[Ce], Gt = Je[De], wt = uc(0, N[we], en[we]), Jt = S ? N[we] / 2 - ue - wt - St - B.mainAxis : ve - wt - St - B.mainAxis, tn = S ? -N[we] / 2 + ue + wt + Gt + B.mainAxis : nt + wt + Gt + B.mainAxis, wn = e.elements.arrow && dd(e.elements.arrow), Rn = wn ? E === "y" ? wn.clientTop || 0 : wn.clientLeft || 0 : 0, An = (Se = K == null ? void 0 : K[E]) != null ? Se : 0, Ft = Y + Jt - An - Rn, xn = Y + tn - An, nn = uc(m ? kp(ce, Ft) : ce, Y, m ? ba(xe, xn) : xe);
|
|
28674
28674
|
k[E] = nn, Z[E] = nn - Y;
|
|
28675
28675
|
}
|
|
28676
28676
|
if (a) {
|
|
28677
|
-
var _n, F = E === "x" ? Cr : Sr, P = E === "x" ?
|
|
28677
|
+
var _n, F = E === "x" ? Cr : Sr, P = E === "x" ? fo : po, oe = k[A], he = A === "y" ? "height" : "width", Re = oe + y[F], ut = oe - y[P], Ve = [Cr, Sr].indexOf(x) !== -1, Q = (_n = K == null ? void 0 : K[A]) != null ? _n : 0, fe = Ve ? Re : oe - N[he] - W[he] - Q + B.altAxis, ie = Ve ? oe + N[he] + W[he] - Q - B.altAxis : ut, be = m && Ve ? eQ(fe, oe, ie) : uc(m ? fe : Re, oe, m ? ie : ut);
|
|
28678
28678
|
k[A] = be, Z[A] = be - oe;
|
|
28679
28679
|
}
|
|
28680
28680
|
e.modifiersData[r] = Z;
|
|
@@ -29281,7 +29281,7 @@ function gee(t, e) {
|
|
|
29281
29281
|
var W = C.map(function(ne) {
|
|
29282
29282
|
return ne.fn(E);
|
|
29283
29283
|
}), V = t.hasAttribute("aria-expanded");
|
|
29284
|
-
return wn(),
|
|
29284
|
+
return wn(), ue(), Y(), ce("onCreate", [E]), n.showOnCreate && Re(), k.addEventListener("mouseenter", function() {
|
|
29285
29285
|
E.props.interactive && E.state.isVisible && E.clearDelayTimeouts();
|
|
29286
29286
|
}), k.addEventListener("mouseleave", function() {
|
|
29287
29287
|
E.props.interactive && E.props.trigger.indexOf("mouseenter") >= 0 && Ce().addEventListener("mousemove", b);
|
|
@@ -29336,7 +29336,7 @@ function gee(t, e) {
|
|
|
29336
29336
|
});
|
|
29337
29337
|
}
|
|
29338
29338
|
}
|
|
29339
|
-
function
|
|
29339
|
+
function ue() {
|
|
29340
29340
|
if (!(V || !E.props.aria.expanded)) {
|
|
29341
29341
|
var ne = xl(E.props.triggerTarget || t);
|
|
29342
29342
|
ne.forEach(function(ke) {
|
|
@@ -29439,7 +29439,7 @@ function gee(t, e) {
|
|
|
29439
29439
|
var ke, Fe = !1;
|
|
29440
29440
|
if (!(!E.state.isEnabled || _n(ne) || a)) {
|
|
29441
29441
|
var xt = ((ke = d) == null ? void 0 : ke.type) === "focus";
|
|
29442
|
-
d = ne, v = ne.currentTarget,
|
|
29442
|
+
d = ne, v = ne.currentTarget, ue(), !E.state.isVisible && XQ(ne) && Sf.forEach(function(ht) {
|
|
29443
29443
|
return ht(ne);
|
|
29444
29444
|
}), ne.type === "click" && (E.props.trigger.indexOf("mouseenter") < 0 || s) && E.props.hideOnClick !== !1 && E.state.isVisible ? Fe = !0 : Re(ne), ne.type === "click" && (s = !Fe), Fe && !xt && ut(ne);
|
|
29445
29445
|
}
|
|
@@ -29585,7 +29585,7 @@ function gee(t, e) {
|
|
|
29585
29585
|
}));
|
|
29586
29586
|
E.props = Fe, wn(), ke.interactiveDebounce !== Fe.interactiveDebounce && (ve(), b = Lw(Ft, Fe.interactiveDebounce)), ke.triggerTarget && !Fe.triggerTarget ? xl(ke.triggerTarget).forEach(function(xt) {
|
|
29587
29587
|
xt.removeAttribute("aria-expanded");
|
|
29588
|
-
}) : Fe.triggerTarget && t.removeAttribute("aria-expanded"),
|
|
29588
|
+
}) : Fe.triggerTarget && t.removeAttribute("aria-expanded"), ue(), Y(), N && N(ke, Fe), E.popperInstance && (F(), he().forEach(function(xt) {
|
|
29589
29589
|
requestAnimationFrame(xt._tippy.popperInstance.forceUpdate);
|
|
29590
29590
|
})), ce("onAfterUpdate", [E, ne]);
|
|
29591
29591
|
}
|
|
@@ -29610,7 +29610,7 @@ function gee(t, e) {
|
|
|
29610
29610
|
var _u = De(), Ka = _u.box, Ki = _u.content;
|
|
29611
29611
|
_1([Ka, Ki], ht), Pw([Ka, Ki], "visible");
|
|
29612
29612
|
}
|
|
29613
|
-
xe(),
|
|
29613
|
+
xe(), ue(), Iw(C1, E), (ci = E.popperInstance) == null || ci.forceUpdate(), ce("onMount", [E]), E.props.animation && Z() && wt(ht, function() {
|
|
29614
29614
|
E.state.isShown = !0, ce("onShown", [E]);
|
|
29615
29615
|
});
|
|
29616
29616
|
}
|
|
@@ -29625,7 +29625,7 @@ function gee(t, e) {
|
|
|
29625
29625
|
var ht = De(), Un = ht.box, gr = ht.content;
|
|
29626
29626
|
E.props.animation && (_1([Un, gr], xt), Pw([Un, gr], "hidden"));
|
|
29627
29627
|
}
|
|
29628
|
-
xe(),
|
|
29628
|
+
xe(), ue(), E.props.animation ? Z() && Gt(xt, E.unmount) : E.unmount();
|
|
29629
29629
|
}
|
|
29630
29630
|
}
|
|
29631
29631
|
function Mt(ne) {
|
|
@@ -29964,7 +29964,7 @@ const u0 = H({
|
|
|
29964
29964
|
shouldShow: s,
|
|
29965
29965
|
tippyOptions: a
|
|
29966
29966
|
}));
|
|
29967
|
-
}),
|
|
29967
|
+
}), ho(() => {
|
|
29968
29968
|
const { pluginKey: r, editor: o } = t;
|
|
29969
29969
|
o.unregisterPlugin(r);
|
|
29970
29970
|
}), () => {
|
|
@@ -30040,7 +30040,7 @@ const pv = H({
|
|
|
30040
30040
|
element: o
|
|
30041
30041
|
}), r.createNodeViews();
|
|
30042
30042
|
});
|
|
30043
|
-
}),
|
|
30043
|
+
}), ho(() => {
|
|
30044
30044
|
const r = t.editor;
|
|
30045
30045
|
r && (r.contentComponent = null, r.appContext = null);
|
|
30046
30046
|
}), { rootEl: e };
|
|
@@ -30086,7 +30086,7 @@ H({
|
|
|
30086
30086
|
tippyOptions: i,
|
|
30087
30087
|
shouldShow: s
|
|
30088
30088
|
}));
|
|
30089
|
-
}),
|
|
30089
|
+
}), ho(() => {
|
|
30090
30090
|
const { pluginKey: r, editor: o } = t;
|
|
30091
30091
|
o.unregisterPlugin(r);
|
|
30092
30092
|
}), () => {
|
|
@@ -30137,7 +30137,7 @@ const l7 = H({
|
|
|
30137
30137
|
const e = fh();
|
|
30138
30138
|
return Et(() => {
|
|
30139
30139
|
e.value = new c0(t);
|
|
30140
|
-
}),
|
|
30140
|
+
}), ho(() => {
|
|
30141
30141
|
var n, r, o;
|
|
30142
30142
|
const i = (n = e.value) === null || n === void 0 ? void 0 : n.options.element, s = i == null ? void 0 : i.cloneNode(!0);
|
|
30143
30143
|
(r = i == null ? void 0 : i.parentNode) === null || r === void 0 || r.replaceChild(s, i), (o = e.value) === null || o === void 0 || o.destroy();
|
|
@@ -30762,7 +30762,7 @@ const d7 = "1", Nee = {
|
|
|
30762
30762
|
), f7 = {
|
|
30763
30763
|
SAVE: "ctrl+s,command+s"
|
|
30764
30764
|
};
|
|
30765
|
-
var
|
|
30765
|
+
var lo = /* @__PURE__ */ ((t) => (t.EDITOR = "editor", t.STRAIGHT = "straight", t.REPORT = "report", t))(lo || {});
|
|
30766
30766
|
const Iee = { class: "flex flex-col" }, Dee = { class: "w-6 h-6 p-0.5 inline-block rounded-sm border cursor-pointer hover:border-ed-border hover:shadow-sm relative after:border-b-2 after:border-b-red-500 after:top-[10px] after:h-0 after:left-0 after:w-6 after:absolute after:block after:rotate-[45deg]" }, Pee = { style: { "background-color": "transparent" } }, Bee = {
|
|
30767
30767
|
viewBox: "0 0 18 18",
|
|
30768
30768
|
style: { fill: "rgba(0, 0, 0, 0.4)", display: "none" }
|
|
@@ -31280,7 +31280,7 @@ function dte(t) {
|
|
|
31280
31280
|
const n = on.indexOf(e);
|
|
31281
31281
|
if (n >= 0 && on.splice(n, 1), t.key && t.key.toLowerCase() === "meta" && on.splice(0, on.length), (e === 93 || e === 224) && (e = 91), e in Kn) {
|
|
31282
31282
|
Kn[e] = !1;
|
|
31283
|
-
for (const r in ri) ri[r] === e && (
|
|
31283
|
+
for (const r in ri) ri[r] === e && (To[r] = !1);
|
|
31284
31284
|
}
|
|
31285
31285
|
}
|
|
31286
31286
|
function v7(t) {
|
|
@@ -31338,14 +31338,14 @@ function Kw(t, e, n, r) {
|
|
|
31338
31338
|
function Gw(t, e) {
|
|
31339
31339
|
const n = fn["*"];
|
|
31340
31340
|
let r = t.keyCode || t.which || t.charCode;
|
|
31341
|
-
if (!
|
|
31341
|
+
if (!To.filter.call(this, t)) return;
|
|
31342
31342
|
if ((r === 93 || r === 224) && (r = 91), on.indexOf(r) === -1 && r !== 229 && on.push(r), ["metaKey", "ctrlKey", "altKey", "shiftKey"].forEach((a) => {
|
|
31343
31343
|
const l = Yf[a];
|
|
31344
31344
|
t[a] && on.indexOf(l) === -1 ? on.push(l) : !t[a] && on.indexOf(l) > -1 ? on.splice(on.indexOf(l), 1) : a === "metaKey" && t[a] && (on = on.filter((u) => u in Yf || u === r));
|
|
31345
31345
|
}), r in Kn) {
|
|
31346
31346
|
Kn[r] = !0;
|
|
31347
31347
|
for (const a in ri)
|
|
31348
|
-
ri[a] === r && (
|
|
31348
|
+
ri[a] === r && (To[a] = !0);
|
|
31349
31349
|
if (!n) return;
|
|
31350
31350
|
}
|
|
31351
31351
|
for (const a in Kn)
|
|
@@ -31367,7 +31367,7 @@ function Gw(t, e) {
|
|
|
31367
31367
|
p.sort().join("") === on.sort().join("") && Kw(t, l, o, e);
|
|
31368
31368
|
}
|
|
31369
31369
|
}
|
|
31370
|
-
function
|
|
31370
|
+
function To(t, e, n) {
|
|
31371
31371
|
on = [];
|
|
31372
31372
|
const r = m7(t);
|
|
31373
31373
|
let o = [], i = "all", s = document, a = 0, l = !1, u = !0, d = "+", p = !1, h = !1;
|
|
@@ -31463,19 +31463,19 @@ const A1 = {
|
|
|
31463
31463
|
modifierMap: Yf
|
|
31464
31464
|
};
|
|
31465
31465
|
for (const t in A1)
|
|
31466
|
-
Object.prototype.hasOwnProperty.call(A1, t) && (
|
|
31466
|
+
Object.prototype.hasOwnProperty.call(A1, t) && (To[t] = A1[t]);
|
|
31467
31467
|
if (typeof window < "u") {
|
|
31468
31468
|
const t = window.hotkeys;
|
|
31469
|
-
|
|
31469
|
+
To.noConflict = (e) => (e && window.hotkeys === To && (window.hotkeys = t), To), window.hotkeys = To;
|
|
31470
31470
|
}
|
|
31471
31471
|
const y7 = (t, e) => {
|
|
31472
|
-
|
|
31472
|
+
To.filter = () => !0;
|
|
31473
31473
|
const n = () => {
|
|
31474
|
-
|
|
31474
|
+
To(t, (o) => (o.preventDefault(), e(), !1));
|
|
31475
31475
|
}, r = () => {
|
|
31476
|
-
|
|
31476
|
+
To.unbind(t);
|
|
31477
31477
|
};
|
|
31478
|
-
return
|
|
31478
|
+
return ho(() => {
|
|
31479
31479
|
r();
|
|
31480
31480
|
}), { bind: n, unbind: r };
|
|
31481
31481
|
}, pte = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, hte = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, mte = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, gte = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, bte = mr.create({
|
|
@@ -32640,24 +32640,24 @@ const k1 = S7, ex = _s, tx = Symbol("nomatch"), Tne = 7, D7 = function(t) {
|
|
|
32640
32640
|
ce += Y.parentNode ? Y.parentNode.className : "";
|
|
32641
32641
|
const xe = a.languageDetectRe.exec(ce);
|
|
32642
32642
|
if (xe) {
|
|
32643
|
-
const
|
|
32644
|
-
return
|
|
32643
|
+
const ue = V(xe[1]);
|
|
32644
|
+
return ue || (Qw(i.replace("{}", xe[1])), Qw("Falling back to no-highlight mode for this block.", Y)), ue ? xe[1] : "no-highlight";
|
|
32645
32645
|
}
|
|
32646
|
-
return ce.split(/\s+/).find((
|
|
32646
|
+
return ce.split(/\s+/).find((ue) => l(ue) || V(ue));
|
|
32647
32647
|
}
|
|
32648
32648
|
function d(Y, ce, xe) {
|
|
32649
|
-
let
|
|
32650
|
-
typeof ce == "object" ? (
|
|
32651
|
-
https://github.com/highlightjs/highlight.js/issues/2277`), ve = Y,
|
|
32649
|
+
let ue = "", ve = "";
|
|
32650
|
+
typeof ce == "object" ? (ue = Y, xe = ce.ignoreIllegals, ve = ce.language) : (gl("10.7.0", "highlight(lang, code, ...args) has been deprecated."), gl("10.7.0", `Please use highlight(code, options) instead.
|
|
32651
|
+
https://github.com/highlightjs/highlight.js/issues/2277`), ve = Y, ue = ce), xe === void 0 && (xe = !0);
|
|
32652
32652
|
const nt = {
|
|
32653
|
-
code:
|
|
32653
|
+
code: ue,
|
|
32654
32654
|
language: ve
|
|
32655
32655
|
};
|
|
32656
32656
|
De("before:highlight", nt);
|
|
32657
32657
|
const Ct = nt.result ? nt.result : p(nt.language, nt.code, xe);
|
|
32658
32658
|
return Ct.code = nt.code, De("after:highlight", Ct), Ct;
|
|
32659
32659
|
}
|
|
32660
|
-
function p(Y, ce, xe,
|
|
32660
|
+
function p(Y, ce, xe, ue) {
|
|
32661
32661
|
const ve = /* @__PURE__ */ Object.create(null);
|
|
32662
32662
|
function nt(ie, be) {
|
|
32663
32663
|
return ie.keywords[be];
|
|
@@ -32797,7 +32797,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ve = Y, le = ce), xe
|
|
|
32797
32797
|
if (!nn)
|
|
32798
32798
|
throw va(i.replace("{}", Y)), new Error('Unknown language: "' + Y + '"');
|
|
32799
32799
|
const _n = _ne(nn);
|
|
32800
|
-
let F = "", P =
|
|
32800
|
+
let F = "", P = ue || _n;
|
|
32801
32801
|
const oe = {}, he = new a.__emitter(a);
|
|
32802
32802
|
An();
|
|
32803
32803
|
let Re = "", ut = 0, Ve = 0, Q = 0, fe = !1;
|
|
@@ -32863,11 +32863,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ve = Y, le = ce), xe
|
|
|
32863
32863
|
}
|
|
32864
32864
|
function m(Y, ce) {
|
|
32865
32865
|
ce = ce || a.languages || Object.keys(e);
|
|
32866
|
-
const xe = h(Y),
|
|
32866
|
+
const xe = h(Y), ue = ce.filter(V).filter(K).map(
|
|
32867
32867
|
(Je) => p(Je, Y, !1)
|
|
32868
32868
|
);
|
|
32869
|
-
|
|
32870
|
-
const ve =
|
|
32869
|
+
ue.unshift(xe);
|
|
32870
|
+
const ve = ue.sort((Je, St) => {
|
|
32871
32871
|
if (Je.relevance !== St.relevance) return St.relevance - Je.relevance;
|
|
32872
32872
|
if (Je.language && St.language) {
|
|
32873
32873
|
if (V(Je.language).supersetOf === St.language)
|
|
@@ -32880,8 +32880,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ve = Y, le = ce), xe
|
|
|
32880
32880
|
return en.secondBest = Ct, en;
|
|
32881
32881
|
}
|
|
32882
32882
|
function b(Y, ce, xe) {
|
|
32883
|
-
const
|
|
32884
|
-
Y.classList.add("hljs"), Y.classList.add(`language-${
|
|
32883
|
+
const ue = ce && n[ce] || xe;
|
|
32884
|
+
Y.classList.add("hljs"), Y.classList.add(`language-${ue}`);
|
|
32885
32885
|
}
|
|
32886
32886
|
function v(Y) {
|
|
32887
32887
|
let ce = null;
|
|
@@ -32900,7 +32900,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ve = Y, le = ce), xe
|
|
|
32900
32900
|
Y.innerHTML
|
|
32901
32901
|
);
|
|
32902
32902
|
ce = Y;
|
|
32903
|
-
const
|
|
32903
|
+
const ue = ce.textContent, ve = xe ? d(ue, { language: xe, ignoreIllegals: !0 }) : m(ue);
|
|
32904
32904
|
Y.innerHTML = ve.value, Y.dataset.highlighted = "yes", b(Y, xe, ve.language), Y.result = {
|
|
32905
32905
|
language: ve.language,
|
|
32906
32906
|
// TODO: remove with version 11.0
|
|
@@ -32909,7 +32909,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ve = Y, le = ce), xe
|
|
|
32909
32909
|
}, ve.secondBest && (Y.secondBest = {
|
|
32910
32910
|
language: ve.secondBest.language,
|
|
32911
32911
|
relevance: ve.secondBest.relevance
|
|
32912
|
-
}), De("after:highlightElement", { el: Y, result: ve, text:
|
|
32912
|
+
}), De("after:highlightElement", { el: Y, result: ve, text: ue });
|
|
32913
32913
|
}
|
|
32914
32914
|
function y(Y) {
|
|
32915
32915
|
a = ex(a, Y);
|
|
@@ -32936,11 +32936,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ve = Y, le = ce), xe
|
|
|
32936
32936
|
let xe = null;
|
|
32937
32937
|
try {
|
|
32938
32938
|
xe = ce(t);
|
|
32939
|
-
} catch (
|
|
32939
|
+
} catch (ue) {
|
|
32940
32940
|
if (va("Language definition for '{}' could not be registered.".replace("{}", Y)), o)
|
|
32941
|
-
va(
|
|
32941
|
+
va(ue);
|
|
32942
32942
|
else
|
|
32943
|
-
throw
|
|
32943
|
+
throw ue;
|
|
32944
32944
|
xe = s;
|
|
32945
32945
|
}
|
|
32946
32946
|
xe.name || (xe.name = Y), e[Y] = xe, xe.rawDefinition = ce.bind(null, t), xe.aliases && B(xe.aliases, { languageName: Y });
|
|
@@ -32985,8 +32985,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ve = Y, le = ce), xe
|
|
|
32985
32985
|
}
|
|
32986
32986
|
function De(Y, ce) {
|
|
32987
32987
|
const xe = Y;
|
|
32988
|
-
r.forEach(function(
|
|
32989
|
-
|
|
32988
|
+
r.forEach(function(ue) {
|
|
32989
|
+
ue[xe] && ue[xe](ce);
|
|
32990
32990
|
});
|
|
32991
32991
|
}
|
|
32992
32992
|
function we(Y) {
|
|
@@ -34229,7 +34229,7 @@ const ox = f0("XIcon", [
|
|
|
34229
34229
|
title: n("editor.fontSize.default.tooltip"),
|
|
34230
34230
|
isActive: () => !1
|
|
34231
34231
|
};
|
|
34232
|
-
}), i =
|
|
34232
|
+
}), i = uo("fontFamily"), s = (a, l) => {
|
|
34233
34233
|
a === n("editor.fontSize.default.tooltip") ? (e.editor.commands.unsetFontSize(), r.value = null) : (r.value = a, e.editor.commands.setFontSize(a), i.emit()), l();
|
|
34234
34234
|
};
|
|
34235
34235
|
return (a, l) => {
|
|
@@ -36702,7 +36702,7 @@ var boe = /* @__PURE__ */ function(t) {
|
|
|
36702
36702
|
}, e;
|
|
36703
36703
|
}(Vn);
|
|
36704
36704
|
const voe = 500;
|
|
36705
|
-
class
|
|
36705
|
+
class Co {
|
|
36706
36706
|
constructor(e, n) {
|
|
36707
36707
|
this.items = e, this.eventCount = n;
|
|
36708
36708
|
}
|
|
@@ -36732,7 +36732,7 @@ class Eo {
|
|
|
36732
36732
|
} else
|
|
36733
36733
|
s.maybeStep(p.step);
|
|
36734
36734
|
if (p.selection)
|
|
36735
|
-
return a = o ? p.selection.map(o.slice(i)) : p.selection, l = new
|
|
36735
|
+
return a = o ? p.selection.map(o.slice(i)) : p.selection, l = new Co(this.items.slice(0, r).append(d.reverse().concat(u)), this.eventCount - 1), !1;
|
|
36736
36736
|
}, this.items.length, 0), { remaining: l, transform: s, selection: a };
|
|
36737
36737
|
}
|
|
36738
36738
|
// Create a new branch with the given transform added.
|
|
@@ -36743,7 +36743,7 @@ class Eo {
|
|
|
36743
36743
|
(m = l && l.merge(h)) && (h = m, d ? i.pop() : a = a.slice(0, a.length - 1)), i.push(h), n && (s++, n = void 0), o || (l = h);
|
|
36744
36744
|
}
|
|
36745
36745
|
let u = s - r.depth;
|
|
36746
|
-
return u > woe && (a = yoe(a, u), s -= u), new
|
|
36746
|
+
return u > woe && (a = yoe(a, u), s -= u), new Co(a.append(i), s);
|
|
36747
36747
|
}
|
|
36748
36748
|
remapping(e, n) {
|
|
36749
36749
|
let r = new Dc();
|
|
@@ -36753,7 +36753,7 @@ class Eo {
|
|
|
36753
36753
|
}, e, n), r;
|
|
36754
36754
|
}
|
|
36755
36755
|
addMaps(e) {
|
|
36756
|
-
return this.eventCount == 0 ? this : new
|
|
36756
|
+
return this.eventCount == 0 ? this : new Co(this.items.append(e.map((n) => new jo(n))), this.eventCount);
|
|
36757
36757
|
}
|
|
36758
36758
|
// When the collab module receives remote changes, the history has
|
|
36759
36759
|
// to know about those, so that it can adjust the steps that were
|
|
@@ -36782,7 +36782,7 @@ class Eo {
|
|
|
36782
36782
|
let u = [];
|
|
36783
36783
|
for (let h = n; h < s; h++)
|
|
36784
36784
|
u.push(new jo(i.maps[h]));
|
|
36785
|
-
let d = this.items.slice(0, o).append(u).append(r), p = new
|
|
36785
|
+
let d = this.items.slice(0, o).append(u).append(r), p = new Co(d, a);
|
|
36786
36786
|
return p.emptyItemCount() > voe && (p = p.compress(this.items.length - r.length)), p;
|
|
36787
36787
|
}
|
|
36788
36788
|
emptyItemCount() {
|
|
@@ -36811,10 +36811,10 @@ class Eo {
|
|
|
36811
36811
|
(h = o.length && o[m].merge(p)) ? o[m] = h : o.push(p);
|
|
36812
36812
|
}
|
|
36813
36813
|
} else s.map && r--;
|
|
36814
|
-
}, this.items.length, 0), new
|
|
36814
|
+
}, this.items.length, 0), new Co(Vn.from(o.reverse()), i);
|
|
36815
36815
|
}
|
|
36816
36816
|
}
|
|
36817
|
-
|
|
36817
|
+
Co.empty = new Co(Vn.empty, 0);
|
|
36818
36818
|
function yoe(t, e) {
|
|
36819
36819
|
let n;
|
|
36820
36820
|
return t.forEach((r, o) => {
|
|
@@ -36852,7 +36852,7 @@ function xoe(t, e, n, r) {
|
|
|
36852
36852
|
return s.getMeta(ya).redo ? new ps(t.done.addTransform(n, void 0, r, Zf(e)), t.undone, bx(n.mapping.maps), t.prevTime, t.prevComposition) : new ps(t.done, t.undone.addTransform(n, void 0, r, Zf(e)), null, t.prevTime, t.prevComposition);
|
|
36853
36853
|
if (n.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
|
|
36854
36854
|
let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !_oe(n, t.prevRanges)), u = s ? D1(t.prevRanges, n.mapping) : bx(n.mapping.maps);
|
|
36855
|
-
return new ps(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r, Zf(e)),
|
|
36855
|
+
return new ps(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r, Zf(e)), Co.empty, u, n.time, a ?? t.prevComposition);
|
|
36856
36856
|
} else return (i = n.getMeta("rebased")) ? new ps(t.done.rebased(n, i), t.undone.rebased(n, i), D1(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new ps(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), D1(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
|
|
36857
36857
|
}
|
|
36858
36858
|
function _oe(t, e) {
|
|
@@ -36911,7 +36911,7 @@ function Soe(t = {}) {
|
|
|
36911
36911
|
key: ya,
|
|
36912
36912
|
state: {
|
|
36913
36913
|
init() {
|
|
36914
|
-
return new ps(
|
|
36914
|
+
return new ps(Co.empty, Co.empty, null, 0, -1);
|
|
36915
36915
|
},
|
|
36916
36916
|
apply(e, n, r) {
|
|
36917
36917
|
return xoe(n, r, e, t);
|
|
@@ -37394,9 +37394,9 @@ function Foe(t, e) {
|
|
|
37394
37394
|
let { $from: n } = t.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);
|
|
37395
37395
|
if (!r)
|
|
37396
37396
|
return !1;
|
|
37397
|
-
let o =
|
|
37397
|
+
let o = le.empty;
|
|
37398
37398
|
for (let s = r.length - 1; s >= 0; s--)
|
|
37399
|
-
o =
|
|
37399
|
+
o = le.from(r[s].createAndFill(null, o));
|
|
37400
37400
|
let i = t.state.tr.replace(n.pos, n.pos, new ye(o, 0, 0));
|
|
37401
37401
|
return i.setSelection(Me.near(i.doc.resolve(n.pos + 1))), t.dispatch(i), !1;
|
|
37402
37402
|
}
|
|
@@ -38458,7 +38458,7 @@ var qi = class Qf {
|
|
|
38458
38458
|
}
|
|
38459
38459
|
flatten() {
|
|
38460
38460
|
const e = [];
|
|
38461
|
-
this instanceof
|
|
38461
|
+
this instanceof Eo && e.push(this);
|
|
38462
38462
|
for (const n of this._childNodes)
|
|
38463
38463
|
e.push(...n.flatten());
|
|
38464
38464
|
return e;
|
|
@@ -38552,7 +38552,7 @@ var Ds = qi, Sl = class extends Ds {
|
|
|
38552
38552
|
for (const r of this.querySelectorAll(t))
|
|
38553
38553
|
e(r, n++);
|
|
38554
38554
|
}
|
|
38555
|
-
},
|
|
38555
|
+
}, Eo = class extends hT {
|
|
38556
38556
|
get nodeType() {
|
|
38557
38557
|
return Ds.ELEMENT_NODE;
|
|
38558
38558
|
}
|
|
@@ -38725,7 +38725,7 @@ var Ds = qi, Sl = class extends Ds {
|
|
|
38725
38725
|
return this._childNodes.map((e) => e.render(h0)).join("");
|
|
38726
38726
|
}
|
|
38727
38727
|
createElement(e, n = {}) {
|
|
38728
|
-
return new
|
|
38728
|
+
return new Eo(e, n);
|
|
38729
38729
|
}
|
|
38730
38730
|
createDocumentFragment() {
|
|
38731
38731
|
return new bT();
|
|
@@ -38750,7 +38750,7 @@ var Ds = qi, Sl = class extends Ds {
|
|
|
38750
38750
|
}, vT = class extends Pv {
|
|
38751
38751
|
constructor(t = !1) {
|
|
38752
38752
|
if (super(), this.docType = new mT(), !t) {
|
|
38753
|
-
const e = new
|
|
38753
|
+
const e = new Eo("html"), n = new Eo("body"), r = new Eo("head"), o = new Eo("title");
|
|
38754
38754
|
e.appendChild(r), r.appendChild(o), e.appendChild(n), this.appendChild(e);
|
|
38755
38755
|
}
|
|
38756
38756
|
}
|
|
@@ -38758,7 +38758,7 @@ var Ds = qi, Sl = class extends Ds {
|
|
|
38758
38758
|
let t = this.querySelector("body");
|
|
38759
38759
|
if (!t) {
|
|
38760
38760
|
let e = this.querySelector("html");
|
|
38761
|
-
e || (e = new
|
|
38761
|
+
e || (e = new Eo("html"), this.appendChild(e)), t = new Eo("body"), e.appendChild(e);
|
|
38762
38762
|
}
|
|
38763
38763
|
return t;
|
|
38764
38764
|
}
|
|
@@ -38774,7 +38774,7 @@ var Ds = qi, Sl = class extends Ds {
|
|
|
38774
38774
|
let t = this.querySelector("head");
|
|
38775
38775
|
if (!t) {
|
|
38776
38776
|
let e = this.querySelector("html");
|
|
38777
|
-
e || (e = new
|
|
38777
|
+
e || (e = new Eo("html"), this.appendChild(e)), t = new Eo("head"), e.insertBefore(e);
|
|
38778
38778
|
}
|
|
38779
38779
|
return t;
|
|
38780
38780
|
}
|
|
@@ -38935,7 +38935,7 @@ function Oie(t) {
|
|
|
38935
38935
|
}
|
|
38936
38936
|
}).parse(t), e;
|
|
38937
38937
|
}
|
|
38938
|
-
|
|
38938
|
+
Eo.prototype.setInnerHTML = function(t) {
|
|
38939
38939
|
const e = Oie(t);
|
|
38940
38940
|
this._childNodes = e._childNodes, this._fixChildNodesParent();
|
|
38941
38941
|
};
|
|
@@ -39528,7 +39528,7 @@ const $se = {
|
|
|
39528
39528
|
__name: "PageNode",
|
|
39529
39529
|
props: pu,
|
|
39530
39530
|
setup(t) {
|
|
39531
|
-
const { state: e, page: n, superTextStore: r } = ji(), { size: o, pagination: i, margin: s } = n.value, a = q(null), l = q(t.node.attrs.viewSuperTextArea), u = J(() => l.value && t.editor.storage.page.mode !== "editor"), d = J(() => t.editor.storage.page.mode ===
|
|
39531
|
+
const { state: e, page: n, superTextStore: r } = ji(), { size: o, pagination: i, margin: s } = n.value, a = q(null), l = q(t.node.attrs.viewSuperTextArea), u = J(() => l.value && t.editor.storage.page.mode !== "editor"), d = J(() => t.editor.storage.page.mode === lo.REPORT), { width: p, height: h } = o, m = J(() => i ? `calc(${h} - ${(s == null ? void 0 : s.top) ?? 0} - ${(s == null ? void 0 : s.bottom) ?? 0}` : "max-content"), b = uo(Io.SUPER_VIEW_PAGE);
|
|
39532
39532
|
return je(
|
|
39533
39533
|
() => t.node.attrs,
|
|
39534
39534
|
(v) => {
|
|
@@ -39564,7 +39564,7 @@ const $se = {
|
|
|
39564
39564
|
default: M(() => [
|
|
39565
39565
|
te("div", $se, [
|
|
39566
39566
|
I(x, {
|
|
39567
|
-
mode: u.value ? w(
|
|
39567
|
+
mode: u.value ? w(lo).REPORT : w(lo).EDITOR,
|
|
39568
39568
|
editor: v.editor,
|
|
39569
39569
|
"super-text-store": w(r)
|
|
39570
39570
|
}, {
|
|
@@ -39643,16 +39643,16 @@ const Vse = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edi
|
|
|
39643
39643
|
if (s.depth === 2 || s.node(-3).type !== i || s.index(-2) !== s.node(-2).childCount - 1)
|
|
39644
39644
|
return !1;
|
|
39645
39645
|
if (r) {
|
|
39646
|
-
let y =
|
|
39646
|
+
let y = le.empty;
|
|
39647
39647
|
const x = s.index(-1) ? 1 : s.index(-2) ? 2 : 3;
|
|
39648
39648
|
for (let N = s.depth - x; N >= s.depth - 3; N -= 1)
|
|
39649
|
-
y =
|
|
39649
|
+
y = le.from(s.node(N).copy(y));
|
|
39650
39650
|
const C = s.indexAfter(-1) < s.node(-2).childCount ? 1 : s.indexAfter(-2) < s.node(-3).childCount ? 2 : 3, S = ep(
|
|
39651
39651
|
d,
|
|
39652
39652
|
s.node().type.name,
|
|
39653
39653
|
s.node().attrs
|
|
39654
39654
|
), E = ((v = i.contentMatch.defaultType) == null ? void 0 : v.createAndFill(S)) ?? void 0;
|
|
39655
|
-
y = y.append(
|
|
39655
|
+
y = y.append(le.from(i.createAndFill(null, E) ?? void 0));
|
|
39656
39656
|
const A = s.before(s.depth - (x - 1));
|
|
39657
39657
|
e.replace(A, s.after(-C), new ye(y, 4 - x, 0));
|
|
39658
39658
|
let k = -1;
|
|
@@ -39898,7 +39898,7 @@ var Yu = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
39898
39898
|
ah.exports;
|
|
39899
39899
|
(function(t, e) {
|
|
39900
39900
|
(function() {
|
|
39901
|
-
var n, r = "4.17.21", o = 200, i = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", a = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", u = 500, d = "__lodash_placeholder__", p = 1, h = 2, m = 4, b = 1, v = 2, y = 1, x = 2, C = 4, S = 8, E = 16, A = 32, k = 64, N = 128, W = 256, V = 512, B = 30, K = "...", Z = 800, Se = 16, Ce = 1, De = 2, we = 3, Y = 1 / 0, ce = 9007199254740991, xe = 17976931348623157e292,
|
|
39901
|
+
var n, r = "4.17.21", o = 200, i = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", a = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", u = 500, d = "__lodash_placeholder__", p = 1, h = 2, m = 4, b = 1, v = 2, y = 1, x = 2, C = 4, S = 8, E = 16, A = 32, k = 64, N = 128, W = 256, V = 512, B = 30, K = "...", Z = 800, Se = 16, Ce = 1, De = 2, we = 3, Y = 1 / 0, ce = 9007199254740991, xe = 17976931348623157e292, ue = NaN, ve = 4294967295, nt = ve - 1, Ct = ve >>> 1, en = [
|
|
39902
39902
|
["ary", N],
|
|
39903
39903
|
["bind", y],
|
|
39904
39904
|
["bindKey", x],
|
|
@@ -40286,7 +40286,7 @@ ah.exports;
|
|
|
40286
40286
|
}
|
|
40287
40287
|
function Iy(U, re) {
|
|
40288
40288
|
var X = U == null ? 0 : U.length;
|
|
40289
|
-
return X ? $0(U, re) / X :
|
|
40289
|
+
return X ? $0(U, re) / X : ue;
|
|
40290
40290
|
}
|
|
40291
40291
|
function B0(U) {
|
|
40292
40292
|
return function(re) {
|
|
@@ -40420,7 +40420,7 @@ ah.exports;
|
|
|
40420
40420
|
function Za(U) {
|
|
40421
40421
|
return Xa(U) ? N9(U) : h9(U);
|
|
40422
40422
|
}
|
|
40423
|
-
function
|
|
40423
|
+
function bo(U) {
|
|
40424
40424
|
return Xa(U) ? R9(U) : m9(U);
|
|
40425
40425
|
}
|
|
40426
40426
|
function Hy(U) {
|
|
@@ -40665,7 +40665,7 @@ ah.exports;
|
|
|
40665
40665
|
return this.__data__.has(c);
|
|
40666
40666
|
}
|
|
40667
40667
|
Gs.prototype.add = Gs.prototype.push = yk, Gs.prototype.has = wk;
|
|
40668
|
-
function
|
|
40668
|
+
function vo(c) {
|
|
40669
40669
|
var f = this.__data__ = new di(c);
|
|
40670
40670
|
this.size = f.size;
|
|
40671
40671
|
}
|
|
@@ -40692,7 +40692,7 @@ ah.exports;
|
|
|
40692
40692
|
}
|
|
40693
40693
|
return g.set(c, f), this.size = g.size, this;
|
|
40694
40694
|
}
|
|
40695
|
-
|
|
40695
|
+
vo.prototype.clear = xk, vo.prototype.delete = _k, vo.prototype.get = Ek, vo.prototype.has = Ck, vo.prototype.set = Sk;
|
|
40696
40696
|
function Jy(c, f) {
|
|
40697
40697
|
var g = Ye(c), _ = !g && Qs(c), T = !g && !_ && ns(c), R = !g && !_ && !T && al(c), D = g || _ || T || R, $ = D ? H0(c.length, D9) : [], j = $.length;
|
|
40698
40698
|
for (var se in c)
|
|
@@ -40714,15 +40714,15 @@ ah.exports;
|
|
|
40714
40714
|
return Qd(br(c));
|
|
40715
40715
|
}
|
|
40716
40716
|
function K0(c, f, g) {
|
|
40717
|
-
(g !== n && !
|
|
40717
|
+
(g !== n && !yo(c[f], g) || g === n && !(f in c)) && pi(c, f, g);
|
|
40718
40718
|
}
|
|
40719
40719
|
function Mu(c, f, g) {
|
|
40720
40720
|
var _ = c[f];
|
|
40721
|
-
(!(Nt.call(c, f) &&
|
|
40721
|
+
(!(Nt.call(c, f) && yo(_, g)) || g === n && !(f in c)) && pi(c, f, g);
|
|
40722
40722
|
}
|
|
40723
40723
|
function Hd(c, f) {
|
|
40724
40724
|
for (var g = c.length; g--; )
|
|
40725
|
-
if (
|
|
40725
|
+
if (yo(c[g][0], f))
|
|
40726
40726
|
return g;
|
|
40727
40727
|
return -1;
|
|
40728
40728
|
}
|
|
@@ -40776,7 +40776,7 @@ ah.exports;
|
|
|
40776
40776
|
D = vO(c, de, $);
|
|
40777
40777
|
}
|
|
40778
40778
|
}
|
|
40779
|
-
R || (R = new
|
|
40779
|
+
R || (R = new vo());
|
|
40780
40780
|
var Ne = R.get(c);
|
|
40781
40781
|
if (Ne)
|
|
40782
40782
|
return Ne;
|
|
@@ -40956,15 +40956,15 @@ ah.exports;
|
|
|
40956
40956
|
D = !0, ae = !1;
|
|
40957
40957
|
}
|
|
40958
40958
|
if (_e && !ae)
|
|
40959
|
-
return R || (R = new
|
|
40959
|
+
return R || (R = new vo()), D || al(c) ? B3(c, f, g, _, T, R) : fO(c, f, j, g, _, T, R);
|
|
40960
40960
|
if (!(g & b)) {
|
|
40961
40961
|
var Ne = ae && Nt.call(c, "__wrapped__"), He = de && Nt.call(f, "__wrapped__");
|
|
40962
40962
|
if (Ne || He) {
|
|
40963
40963
|
var ot = Ne ? c.value() : c, ze = He ? f.value() : f;
|
|
40964
|
-
return R || (R = new
|
|
40964
|
+
return R || (R = new vo()), T(ot, ze, g, _, R);
|
|
40965
40965
|
}
|
|
40966
40966
|
}
|
|
40967
|
-
return _e ? (R || (R = new
|
|
40967
|
+
return _e ? (R || (R = new vo()), pO(c, f, g, _, T, R)) : !1;
|
|
40968
40968
|
}
|
|
40969
40969
|
function Hk(c) {
|
|
40970
40970
|
return mn(c) && Xn(c) == Ft;
|
|
@@ -40985,7 +40985,7 @@ ah.exports;
|
|
|
40985
40985
|
if (se === n && !(j in c))
|
|
40986
40986
|
return !1;
|
|
40987
40987
|
} else {
|
|
40988
|
-
var de = new
|
|
40988
|
+
var de = new vo();
|
|
40989
40989
|
if (_)
|
|
40990
40990
|
var _e = _(se, ae, j, c, f, de);
|
|
40991
40991
|
if (!(_e === n ? Lu(ae, se, b | v, _, de) : _e))
|
|
@@ -41051,7 +41051,7 @@ ah.exports;
|
|
|
41051
41051
|
}
|
|
41052
41052
|
function Ud(c, f, g, _, T) {
|
|
41053
41053
|
c !== f && J0(f, function(R, D) {
|
|
41054
|
-
if (T || (T = new
|
|
41054
|
+
if (T || (T = new vo()), ln(R))
|
|
41055
41055
|
jk(c, f, D, g, Ud, _, T);
|
|
41056
41056
|
else {
|
|
41057
41057
|
var $ = _ ? _(wm(c, D), R, D + "", c, f, T) : n;
|
|
@@ -41226,7 +41226,7 @@ ah.exports;
|
|
|
41226
41226
|
function m3(c, f) {
|
|
41227
41227
|
for (var g = -1, _ = c.length, T = 0, R = []; ++g < _; ) {
|
|
41228
41228
|
var D = c[g], $ = f ? f(D) : D;
|
|
41229
|
-
if (!g || !
|
|
41229
|
+
if (!g || !yo($, j)) {
|
|
41230
41230
|
var j = $;
|
|
41231
41231
|
R[T++] = D === 0 ? 0 : D;
|
|
41232
41232
|
}
|
|
@@ -41234,7 +41234,7 @@ ah.exports;
|
|
|
41234
41234
|
return R;
|
|
41235
41235
|
}
|
|
41236
41236
|
function g3(c) {
|
|
41237
|
-
return typeof c == "number" ? c : Nr(c) ?
|
|
41237
|
+
return typeof c == "number" ? c : Nr(c) ? ue : +c;
|
|
41238
41238
|
}
|
|
41239
41239
|
function Mr(c) {
|
|
41240
41240
|
if (typeof c == "string")
|
|
@@ -41453,7 +41453,7 @@ ah.exports;
|
|
|
41453
41453
|
function k3(c) {
|
|
41454
41454
|
return function(f) {
|
|
41455
41455
|
f = kt(f);
|
|
41456
|
-
var g = Xa(f) ?
|
|
41456
|
+
var g = Xa(f) ? bo(f) : n, _ = g ? g[0] : f.charAt(0), T = g ? ts(g, 1).join("") : f.slice(1);
|
|
41457
41457
|
return _[c]() + T;
|
|
41458
41458
|
};
|
|
41459
41459
|
}
|
|
@@ -41571,8 +41571,8 @@ ah.exports;
|
|
|
41571
41571
|
se - dt
|
|
41572
41572
|
);
|
|
41573
41573
|
}
|
|
41574
|
-
var
|
|
41575
|
-
return dt = mt.length, $ ? mt = kO(mt, $) : He && dt > 1 && mt.reverse(), ae && j < dt && (mt.length = j), this && this !== Wn && this instanceof ze && (yi = ot || Du(yi)), yi.apply(
|
|
41574
|
+
var wo = de ? g : this, yi = _e ? wo[c] : c;
|
|
41575
|
+
return dt = mt.length, $ ? mt = kO(mt, $) : He && dt > 1 && mt.reverse(), ae && j < dt && (mt.length = j), this && this !== Wn && this instanceof ze && (yi = ot || Du(yi)), yi.apply(wo, mt);
|
|
41576
41576
|
}
|
|
41577
41577
|
return ze;
|
|
41578
41578
|
}
|
|
@@ -41610,7 +41610,7 @@ ah.exports;
|
|
|
41610
41610
|
if (g < 2)
|
|
41611
41611
|
return g ? om(f, c) : f;
|
|
41612
41612
|
var _ = om(f, Dd(c / Za(f)));
|
|
41613
|
-
return Xa(f) ? ts(
|
|
41613
|
+
return Xa(f) ? ts(bo(_), 0, c).join("") : _.slice(0, c);
|
|
41614
41614
|
}
|
|
41615
41615
|
function uO(c, f, g, _) {
|
|
41616
41616
|
var T = f & y, R = Du(c);
|
|
@@ -41697,7 +41697,7 @@ ah.exports;
|
|
|
41697
41697
|
return q3(ot(He, Ne), c, f);
|
|
41698
41698
|
}
|
|
41699
41699
|
function D3(c, f, g, _) {
|
|
41700
|
-
return c === n ||
|
|
41700
|
+
return c === n || yo(c, el[g]) && !Nt.call(_, g) ? f : c;
|
|
41701
41701
|
}
|
|
41702
41702
|
function P3(c, f, g, _, T, R) {
|
|
41703
41703
|
return ln(c) && ln(f) && (R.set(f, c), Ud(c, f, n, P3, R), R.delete(f)), c;
|
|
@@ -41749,7 +41749,7 @@ ah.exports;
|
|
|
41749
41749
|
case wt:
|
|
41750
41750
|
case Jt:
|
|
41751
41751
|
case xn:
|
|
41752
|
-
return
|
|
41752
|
+
return yo(+c, +f);
|
|
41753
41753
|
case wn:
|
|
41754
41754
|
return c.name == f.name && c.message == f.message;
|
|
41755
41755
|
case oe:
|
|
@@ -41977,7 +41977,7 @@ ah.exports;
|
|
|
41977
41977
|
if (!ln(g))
|
|
41978
41978
|
return !1;
|
|
41979
41979
|
var _ = typeof f;
|
|
41980
|
-
return (_ == "number" ? vr(g) && gi(f, g.length) : _ == "string" && f in g) ?
|
|
41980
|
+
return (_ == "number" ? vr(g) && gi(f, g.length) : _ == "string" && f in g) ? yo(g[f], c) : !1;
|
|
41981
41981
|
}
|
|
41982
41982
|
function vm(c, f) {
|
|
41983
41983
|
if (Ye(c))
|
|
@@ -42299,7 +42299,7 @@ ah.exports;
|
|
|
42299
42299
|
var g = c == null ? 0 : c.length;
|
|
42300
42300
|
if (g) {
|
|
42301
42301
|
var _ = Wd(c, f);
|
|
42302
|
-
if (_ < g &&
|
|
42302
|
+
if (_ < g && yo(c[_], f))
|
|
42303
42303
|
return _;
|
|
42304
42304
|
}
|
|
42305
42305
|
return -1;
|
|
@@ -42314,7 +42314,7 @@ ah.exports;
|
|
|
42314
42314
|
var g = c == null ? 0 : c.length;
|
|
42315
42315
|
if (g) {
|
|
42316
42316
|
var _ = Wd(c, f, !0) - 1;
|
|
42317
|
-
if (
|
|
42317
|
+
if (yo(c[_], f))
|
|
42318
42318
|
return _;
|
|
42319
42319
|
}
|
|
42320
42320
|
return -1;
|
|
@@ -42612,19 +42612,19 @@ ah.exports;
|
|
|
42612
42612
|
throw new Kr(s);
|
|
42613
42613
|
f = Zr(f) || 0, ln(g) && (ae = !!g.leading, de = "maxWait" in g, R = de ? In(Zr(g.maxWait) || 0, f) : R, _e = "trailing" in g ? !!g.trailing : _e);
|
|
42614
42614
|
function Ne(Cn) {
|
|
42615
|
-
var
|
|
42616
|
-
return _ = T = n, se = Cn, D = c.apply(yi,
|
|
42615
|
+
var wo = _, yi = T;
|
|
42616
|
+
return _ = T = n, se = Cn, D = c.apply(yi, wo), D;
|
|
42617
42617
|
}
|
|
42618
42618
|
function He(Cn) {
|
|
42619
42619
|
return se = Cn, $ = Bu(dt, f), ae ? Ne(Cn) : D;
|
|
42620
42620
|
}
|
|
42621
42621
|
function ot(Cn) {
|
|
42622
|
-
var
|
|
42622
|
+
var wo = Cn - j, yi = Cn - se, O4 = f - wo;
|
|
42623
42623
|
return de ? Yn(O4, R - yi) : O4;
|
|
42624
42624
|
}
|
|
42625
42625
|
function ze(Cn) {
|
|
42626
|
-
var
|
|
42627
|
-
return j === n ||
|
|
42626
|
+
var wo = Cn - j, yi = Cn - se;
|
|
42627
|
+
return j === n || wo >= f || wo < 0 || de && yi >= R;
|
|
42628
42628
|
}
|
|
42629
42629
|
function dt() {
|
|
42630
42630
|
var Cn = nf();
|
|
@@ -42642,8 +42642,8 @@ ah.exports;
|
|
|
42642
42642
|
return $ === n ? D : mt(nf());
|
|
42643
42643
|
}
|
|
42644
42644
|
function Lr() {
|
|
42645
|
-
var Cn = nf(),
|
|
42646
|
-
if (_ = arguments, T = this, j = Cn,
|
|
42645
|
+
var Cn = nf(), wo = ze(Cn);
|
|
42646
|
+
if (_ = arguments, T = this, j = Cn, wo) {
|
|
42647
42647
|
if ($ === n)
|
|
42648
42648
|
return He(j);
|
|
42649
42649
|
if (de)
|
|
@@ -42762,7 +42762,7 @@ ah.exports;
|
|
|
42762
42762
|
function TN(c, f) {
|
|
42763
42763
|
return f == null || Zy(c, f, Bn(f));
|
|
42764
42764
|
}
|
|
42765
|
-
function
|
|
42765
|
+
function yo(c, f) {
|
|
42766
42766
|
return c === f || c !== c && f !== f;
|
|
42767
42767
|
}
|
|
42768
42768
|
var AN = Yd(X0), kN = Yd(function(c, f) {
|
|
@@ -42897,7 +42897,7 @@ ah.exports;
|
|
|
42897
42897
|
if (!c)
|
|
42898
42898
|
return [];
|
|
42899
42899
|
if (vr(c))
|
|
42900
|
-
return af(c) ?
|
|
42900
|
+
return af(c) ? bo(c) : br(c);
|
|
42901
42901
|
if (Su && c[Su])
|
|
42902
42902
|
return T9(c[Su]());
|
|
42903
42903
|
var f = Xn(c), g = f == Ft ? V0 : f == he ? Sd : ll;
|
|
@@ -42923,7 +42923,7 @@ ah.exports;
|
|
|
42923
42923
|
if (typeof c == "number")
|
|
42924
42924
|
return c;
|
|
42925
42925
|
if (Nr(c))
|
|
42926
|
-
return
|
|
42926
|
+
return ue;
|
|
42927
42927
|
if (ln(c)) {
|
|
42928
42928
|
var f = typeof c.valueOf == "function" ? c.valueOf() : c;
|
|
42929
42929
|
c = ln(f) ? f + "" : f;
|
|
@@ -42932,7 +42932,7 @@ ah.exports;
|
|
|
42932
42932
|
return c === 0 ? c : +c;
|
|
42933
42933
|
c = Py(c);
|
|
42934
42934
|
var g = OA.test(c);
|
|
42935
|
-
return g || NA.test(c) ? u9(c.slice(2), g ? 2 : 8) : kA.test(c) ?
|
|
42935
|
+
return g || NA.test(c) ? u9(c.slice(2), g ? 2 : 8) : kA.test(c) ? ue : +c;
|
|
42936
42936
|
}
|
|
42937
42937
|
function v4(c) {
|
|
42938
42938
|
return $o(c, yr(c));
|
|
@@ -42967,7 +42967,7 @@ ah.exports;
|
|
|
42967
42967
|
for (T && lr(f[0], f[1], T) && (_ = 1); ++g < _; )
|
|
42968
42968
|
for (var R = f[g], D = yr(R), $ = -1, j = D.length; ++$ < j; ) {
|
|
42969
42969
|
var se = D[$], ae = c[se];
|
|
42970
|
-
(ae === n ||
|
|
42970
|
+
(ae === n || yo(ae, el[se]) && !Nt.call(c, se)) && (c[se] = R[se]);
|
|
42971
42971
|
}
|
|
42972
42972
|
return c;
|
|
42973
42973
|
}), tR = ct(function(c) {
|
|
@@ -43179,7 +43179,7 @@ ah.exports;
|
|
|
43179
43179
|
return c + (g ? "_" : "") + f.toLowerCase();
|
|
43180
43180
|
});
|
|
43181
43181
|
function jR(c, f, g) {
|
|
43182
|
-
return g && typeof g != "number" && lr(c, f, g) && (f = g = n), g = g === n ? ve : g >>> 0, g ? (c = kt(c), c && (typeof f == "string" || f != null && !Am(f)) && (f = Mr(f), !f && Xa(c)) ? ts(
|
|
43182
|
+
return g && typeof g != "number" && lr(c, f, g) && (f = g = n), g = g === n ? ve : g >>> 0, g ? (c = kt(c), c && (typeof f == "string" || f != null && !Am(f)) && (f = Mr(f), !f && Xa(c)) ? ts(bo(c), 0, g) : c.split(f, g)) : [];
|
|
43183
43183
|
}
|
|
43184
43184
|
var qR = il(function(c, f, g) {
|
|
43185
43185
|
return c + (g ? " " : "") + Mm(f);
|
|
@@ -43238,7 +43238,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
43238
43238
|
return Py(c);
|
|
43239
43239
|
if (!c || !(f = Mr(f)))
|
|
43240
43240
|
return c;
|
|
43241
|
-
var _ =
|
|
43241
|
+
var _ = bo(c), T = bo(f), R = By(_, T), D = Fy(_, T) + 1;
|
|
43242
43242
|
return ts(_, R, D).join("");
|
|
43243
43243
|
}
|
|
43244
43244
|
function ZR(c, f, g) {
|
|
@@ -43246,7 +43246,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
43246
43246
|
return c.slice(0, Hy(c) + 1);
|
|
43247
43247
|
if (!c || !(f = Mr(f)))
|
|
43248
43248
|
return c;
|
|
43249
|
-
var _ =
|
|
43249
|
+
var _ = bo(c), T = Fy(_, bo(f)) + 1;
|
|
43250
43250
|
return ts(_, 0, T).join("");
|
|
43251
43251
|
}
|
|
43252
43252
|
function QR(c, f, g) {
|
|
@@ -43254,7 +43254,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
43254
43254
|
return c.replace(T0, "");
|
|
43255
43255
|
if (!c || !(f = Mr(f)))
|
|
43256
43256
|
return c;
|
|
43257
|
-
var _ =
|
|
43257
|
+
var _ = bo(c), T = By(_, bo(f));
|
|
43258
43258
|
return ts(_, T).join("");
|
|
43259
43259
|
}
|
|
43260
43260
|
function eL(c, f) {
|
|
@@ -43266,7 +43266,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
43266
43266
|
c = kt(c);
|
|
43267
43267
|
var R = c.length;
|
|
43268
43268
|
if (Xa(c)) {
|
|
43269
|
-
var D =
|
|
43269
|
+
var D = bo(c);
|
|
43270
43270
|
R = D.length;
|
|
43271
43271
|
}
|
|
43272
43272
|
if (g >= R)
|
|
@@ -43458,7 +43458,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
43458
43458
|
function zL(c, f) {
|
|
43459
43459
|
return c && c.length ? $0(c, $e(f, 2)) : 0;
|
|
43460
43460
|
}
|
|
43461
|
-
return O.after = uN, O.ary = i4, O.assign = YN, O.assignIn = y4, O.assignInWith = lf, O.assignWith = XN, O.at = ZN, O.before = s4, O.bind = Cm, O.bindAll = rL, O.bindKey = a4, O.castArray = xN, O.chain = n4, O.chunk = MO, O.compact = NO, O.concat = RO, O.cond = oL, O.conforms = iL, O.constant = Nm, O.countBy = HM, O.create = QN, O.curry = l4, O.curryRight = u4, O.debounce = c4, O.defaults = eR, O.defaultsDeep = tR, O.defer = cN, O.delay = dN, O.difference = LO, O.differenceBy = IO, O.differenceWith = DO, O.drop = PO, O.dropRight = BO, O.dropRightWhile = FO, O.dropWhile = $O, O.fill = HO, O.filter = VM, O.flatMap = jM, O.flatMapDeep = qM, O.flatMapDepth = KM, O.flatten = Z3, O.flattenDeep = zO, O.flattenDepth = VO, O.flip = fN, O.flow = aL, O.flowRight = lL, O.fromPairs = UO, O.functions = lR, O.functionsIn = uR, O.groupBy = GM, O.initial = jO, O.intersection = qO, O.intersectionBy = KO, O.intersectionWith = GO, O.invert = dR, O.invertBy = fR, O.invokeMap = YM, O.iteratee = Rm, O.keyBy = XM, O.keys = Bn, O.keysIn = yr, O.map = tf, O.mapKeys = hR, O.mapValues = mR, O.matches = uL, O.matchesProperty = cL, O.memoize = rf, O.merge = gR, O.mergeWith = w4, O.method = dL, O.methodOf = fL, O.mixin = Lm, O.negate = of, O.nthArg = hL, O.omit = bR, O.omitBy = vR, O.once = pN, O.orderBy = ZM, O.over = mL, O.overArgs = hN, O.overEvery = gL, O.overSome = bL, O.partial = Sm, O.partialRight = d4, O.partition = QM, O.pick = yR, O.pickBy = x4, O.property = k4, O.propertyOf = vL, O.pull = ZO, O.pullAll = e4, O.pullAllBy = QO, O.pullAllWith = eM, O.pullAt = tM, O.range = yL, O.rangeRight = wL, O.rearg = mN, O.reject = nN, O.remove = nM, O.rest = gN, O.reverse = _m, O.sampleSize = oN, O.set = xR, O.setWith = _R, O.shuffle = iN, O.slice = rM, O.sortBy = lN, O.sortedUniq = cM, O.sortedUniqBy = dM, O.split = jR, O.spread = bN, O.tail = fM, O.take = pM, O.takeRight = hM, O.takeRightWhile = mM, O.takeWhile = gM, O.tap = NM, O.throttle = vN, O.thru = ef, O.toArray = g4, O.toPairs = _4, O.toPairsIn = E4, O.toPath = SL, O.toPlainObject = v4, O.transform = ER, O.unary = yN, O.union = bM, O.unionBy = vM, O.unionWith = yM, O.uniq = wM, O.uniqBy = xM, O.uniqWith = _M, O.unset = CR, O.unzip = Em, O.unzipWith = t4, O.update = SR, O.updateWith = TR, O.values = ll, O.valuesIn = AR, O.without = EM, O.words = T4, O.wrap = wN, O.xor = CM, O.xorBy = SM, O.xorWith = TM, O.zip = AM, O.zipObject = kM, O.zipObjectDeep = OM, O.zipWith = MM, O.entries = _4, O.entriesIn = E4, O.extend = y4, O.extendWith = lf, Lm(O, O), O.add = AL, O.attempt = A4, O.camelCase = NR, O.capitalize = C4, O.ceil = kL, O.clamp = kR, O.clone = _N, O.cloneDeep = CN, O.cloneDeepWith = SN, O.cloneWith = EN, O.conformsTo = TN, O.deburr = S4, O.defaultTo = sL, O.divide = OL, O.endsWith = RR, O.eq =
|
|
43461
|
+
return O.after = uN, O.ary = i4, O.assign = YN, O.assignIn = y4, O.assignInWith = lf, O.assignWith = XN, O.at = ZN, O.before = s4, O.bind = Cm, O.bindAll = rL, O.bindKey = a4, O.castArray = xN, O.chain = n4, O.chunk = MO, O.compact = NO, O.concat = RO, O.cond = oL, O.conforms = iL, O.constant = Nm, O.countBy = HM, O.create = QN, O.curry = l4, O.curryRight = u4, O.debounce = c4, O.defaults = eR, O.defaultsDeep = tR, O.defer = cN, O.delay = dN, O.difference = LO, O.differenceBy = IO, O.differenceWith = DO, O.drop = PO, O.dropRight = BO, O.dropRightWhile = FO, O.dropWhile = $O, O.fill = HO, O.filter = VM, O.flatMap = jM, O.flatMapDeep = qM, O.flatMapDepth = KM, O.flatten = Z3, O.flattenDeep = zO, O.flattenDepth = VO, O.flip = fN, O.flow = aL, O.flowRight = lL, O.fromPairs = UO, O.functions = lR, O.functionsIn = uR, O.groupBy = GM, O.initial = jO, O.intersection = qO, O.intersectionBy = KO, O.intersectionWith = GO, O.invert = dR, O.invertBy = fR, O.invokeMap = YM, O.iteratee = Rm, O.keyBy = XM, O.keys = Bn, O.keysIn = yr, O.map = tf, O.mapKeys = hR, O.mapValues = mR, O.matches = uL, O.matchesProperty = cL, O.memoize = rf, O.merge = gR, O.mergeWith = w4, O.method = dL, O.methodOf = fL, O.mixin = Lm, O.negate = of, O.nthArg = hL, O.omit = bR, O.omitBy = vR, O.once = pN, O.orderBy = ZM, O.over = mL, O.overArgs = hN, O.overEvery = gL, O.overSome = bL, O.partial = Sm, O.partialRight = d4, O.partition = QM, O.pick = yR, O.pickBy = x4, O.property = k4, O.propertyOf = vL, O.pull = ZO, O.pullAll = e4, O.pullAllBy = QO, O.pullAllWith = eM, O.pullAt = tM, O.range = yL, O.rangeRight = wL, O.rearg = mN, O.reject = nN, O.remove = nM, O.rest = gN, O.reverse = _m, O.sampleSize = oN, O.set = xR, O.setWith = _R, O.shuffle = iN, O.slice = rM, O.sortBy = lN, O.sortedUniq = cM, O.sortedUniqBy = dM, O.split = jR, O.spread = bN, O.tail = fM, O.take = pM, O.takeRight = hM, O.takeRightWhile = mM, O.takeWhile = gM, O.tap = NM, O.throttle = vN, O.thru = ef, O.toArray = g4, O.toPairs = _4, O.toPairsIn = E4, O.toPath = SL, O.toPlainObject = v4, O.transform = ER, O.unary = yN, O.union = bM, O.unionBy = vM, O.unionWith = yM, O.uniq = wM, O.uniqBy = xM, O.uniqWith = _M, O.unset = CR, O.unzip = Em, O.unzipWith = t4, O.update = SR, O.updateWith = TR, O.values = ll, O.valuesIn = AR, O.without = EM, O.words = T4, O.wrap = wN, O.xor = CM, O.xorBy = SM, O.xorWith = TM, O.zip = AM, O.zipObject = kM, O.zipObjectDeep = OM, O.zipWith = MM, O.entries = _4, O.entriesIn = E4, O.extend = y4, O.extendWith = lf, Lm(O, O), O.add = AL, O.attempt = A4, O.camelCase = NR, O.capitalize = C4, O.ceil = kL, O.clamp = kR, O.clone = _N, O.cloneDeep = CN, O.cloneDeepWith = SN, O.cloneWith = EN, O.conformsTo = TN, O.deburr = S4, O.defaultTo = sL, O.divide = OL, O.endsWith = RR, O.eq = yo, O.escape = LR, O.escapeRegExp = IR, O.every = zM, O.find = UM, O.findIndex = Y3, O.findKey = nR, O.findLast = WM, O.findLastIndex = X3, O.findLastKey = rR, O.floor = ML, O.forEach = r4, O.forEachRight = o4, O.forIn = oR, O.forInRight = iR, O.forOwn = sR, O.forOwnRight = aR, O.get = km, O.gt = AN, O.gte = kN, O.has = cR, O.hasIn = Om, O.head = Q3, O.identity = wr, O.includes = JM, O.indexOf = WO, O.inRange = OR, O.invoke = pR, O.isArguments = Qs, O.isArray = Ye, O.isArrayBuffer = ON, O.isArrayLike = vr, O.isArrayLikeObject = En, O.isBoolean = MN, O.isBuffer = ns, O.isDate = NN, O.isElement = RN, O.isEmpty = LN, O.isEqual = IN, O.isEqualWith = DN, O.isError = Tm, O.isFinite = PN, O.isFunction = bi, O.isInteger = f4, O.isLength = sf, O.isMap = p4, O.isMatch = BN, O.isMatchWith = FN, O.isNaN = $N, O.isNative = HN, O.isNil = VN, O.isNull = zN, O.isNumber = h4, O.isObject = ln, O.isObjectLike = mn, O.isPlainObject = Fu, O.isRegExp = Am, O.isSafeInteger = UN, O.isSet = m4, O.isString = af, O.isSymbol = Nr, O.isTypedArray = al, O.isUndefined = WN, O.isWeakMap = jN, O.isWeakSet = qN, O.join = JO, O.kebabCase = DR, O.last = Xr, O.lastIndexOf = YO, O.lowerCase = PR, O.lowerFirst = BR, O.lt = KN, O.lte = GN, O.max = NL, O.maxBy = RL, O.mean = LL, O.meanBy = IL, O.min = DL, O.minBy = PL, O.stubArray = Dm, O.stubFalse = Pm, O.stubObject = xL, O.stubString = _L, O.stubTrue = EL, O.multiply = BL, O.nth = XO, O.noConflict = pL, O.noop = Im, O.now = nf, O.pad = FR, O.padEnd = $R, O.padStart = HR, O.parseInt = zR, O.random = MR, O.reduce = eN, O.reduceRight = tN, O.repeat = VR, O.replace = UR, O.result = wR, O.round = FL, O.runInContext = U, O.sample = rN, O.size = sN, O.snakeCase = WR, O.some = aN, O.sortedIndex = oM, O.sortedIndexBy = iM, O.sortedIndexOf = sM, O.sortedLastIndex = aM, O.sortedLastIndexBy = lM, O.sortedLastIndexOf = uM, O.startCase = qR, O.startsWith = KR, O.subtract = $L, O.sum = HL, O.sumBy = zL, O.template = GR, O.times = CL, O.toFinite = vi, O.toInteger = et, O.toLength = b4, O.toLower = JR, O.toNumber = Zr, O.toSafeInteger = JN, O.toString = kt, O.toUpper = YR, O.trim = XR, O.trimEnd = ZR, O.trimStart = QR, O.truncate = eL, O.unescape = tL, O.uniqueId = TL, O.upperCase = nL, O.upperFirst = Mm, O.each = r4, O.eachRight = o4, O.first = Q3, Lm(O, function() {
|
|
43462
43462
|
var c = {};
|
|
43463
43463
|
return Fo(O, function(f, g) {
|
|
43464
43464
|
Nt.call(O.prototype, g) || (c[g] = f);
|
|
@@ -43606,7 +43606,7 @@ const qse = lt.create({
|
|
|
43606
43606
|
[n("editor.fontFamily.default")]: n("editor.fontFamily.default"),
|
|
43607
43607
|
...l.fontFamilyMap
|
|
43608
43608
|
};
|
|
43609
|
-
}), i = J(() => tv(e.editor.state, "textStyle").fontFamily || n("editor.fontFamily.default")), s =
|
|
43609
|
+
}), i = J(() => tv(e.editor.state, "textStyle").fontFamily || n("editor.fontFamily.default")), s = uo("fontFamily");
|
|
43610
43610
|
function a(l) {
|
|
43611
43611
|
l === i.value || l === n("editor.fontFamily.default") ? (e.editor.commands.unsetFontFamily(), r.value = null) : (r.value = l, e.editor.commands.setFontFamily(l), s.emit());
|
|
43612
43612
|
}
|
|
@@ -43727,7 +43727,7 @@ const qse = lt.create({
|
|
|
43727
43727
|
editor: Object
|
|
43728
43728
|
},
|
|
43729
43729
|
setup(t) {
|
|
43730
|
-
const e =
|
|
43730
|
+
const e = uo(Io.INCREASE_DECREASE_FONTSIZE), n = (r) => {
|
|
43731
43731
|
e.emit(r);
|
|
43732
43732
|
};
|
|
43733
43733
|
return (r, o) => {
|
|
@@ -44103,7 +44103,7 @@ const qse = lt.create({
|
|
|
44103
44103
|
});
|
|
44104
44104
|
return Et(() => {
|
|
44105
44105
|
u.value && d.observe(u.value), C.observe(e.editor.view.dom);
|
|
44106
|
-
}),
|
|
44106
|
+
}), ho(() => {
|
|
44107
44107
|
x(), d.disconnect(), C.disconnect();
|
|
44108
44108
|
}), (E, A) => (L(), z(w(fu), { class: "node-image" }, {
|
|
44109
44109
|
default: M(() => [
|
|
@@ -44523,7 +44523,7 @@ const Yv = jt.create({
|
|
|
44523
44523
|
__name: "SuperText",
|
|
44524
44524
|
props: pu,
|
|
44525
44525
|
setup(t) {
|
|
44526
|
-
const e = t, n = q(!1), r = q(null), { selection: o, doc: i } = e.editor.state, s =
|
|
44526
|
+
const e = t, n = q(!1), r = q(null), { selection: o, doc: i } = e.editor.state, s = uo(Io.RENDER_SUPER_TEXT), a = J(() => {
|
|
44527
44527
|
var x, C;
|
|
44528
44528
|
const m = i.resolve(o.from), b = m == null ? void 0 : m.node(-1), v = (x = b == null ? void 0 : b.attrs) == null ? void 0 : x.id, y = (C = b == null ? void 0 : b.attrs) == null ? void 0 : C.pageNumber;
|
|
44529
44529
|
return {
|
|
@@ -45025,10 +45025,10 @@ var Ut = class Ai extends Le {
|
|
|
45025
45025
|
}
|
|
45026
45026
|
u.push(b);
|
|
45027
45027
|
}
|
|
45028
|
-
s.push(e.child(l).copy(
|
|
45028
|
+
s.push(e.child(l).copy(le.from(u)));
|
|
45029
45029
|
}
|
|
45030
45030
|
const a = this.isColSelection() && this.isRowSelection() ? e : s;
|
|
45031
|
-
return new ye(
|
|
45031
|
+
return new ye(le.from(a), 1, 1);
|
|
45032
45032
|
}
|
|
45033
45033
|
replace(e, n = ye.empty) {
|
|
45034
45034
|
const r = e.steps.length, o = this.ranges;
|
|
@@ -45047,7 +45047,7 @@ var Ut = class Ai extends Le {
|
|
|
45047
45047
|
i && e.setSelection(i);
|
|
45048
45048
|
}
|
|
45049
45049
|
replaceWith(e, n) {
|
|
45050
|
-
this.replace(e, new ye(
|
|
45050
|
+
this.replace(e, new ye(le.from(n), 0, 0));
|
|
45051
45051
|
}
|
|
45052
45052
|
forEachCell(e) {
|
|
45053
45053
|
const n = this.$anchorCell.node(-1), r = vn.get(n), o = this.$anchorCell.start(-1), i = r.cellsInRect(
|
|
@@ -45446,7 +45446,7 @@ function Px(t, e) {
|
|
|
45446
45446
|
if (Vae(o, r)) return !1;
|
|
45447
45447
|
if (e) {
|
|
45448
45448
|
const i = t.tr, s = {};
|
|
45449
|
-
let a =
|
|
45449
|
+
let a = le.empty, l, u;
|
|
45450
45450
|
for (let d = r.top; d < r.bottom; d++)
|
|
45451
45451
|
for (let p = r.left; p < r.right; p++) {
|
|
45452
45452
|
const h = o.map[d * o.width + p], m = r.table.nodeAt(h);
|
|
@@ -45736,11 +45736,11 @@ function Yae(t, e) {
|
|
|
45736
45736
|
let r = 0;
|
|
45737
45737
|
for (let o = 0; o < n.length; o++) r = Math.max(r, n[o]);
|
|
45738
45738
|
for (let o = 0; o < n.length; o++)
|
|
45739
|
-
if (o >= e.length && e.push(
|
|
45739
|
+
if (o >= e.length && e.push(le.empty), n[o] < r) {
|
|
45740
45740
|
const i = ir(t).cell.createAndFill(), s = [];
|
|
45741
45741
|
for (let a = n[o]; a < r; a++)
|
|
45742
45742
|
s.push(i);
|
|
45743
|
-
e[o] = e[o].append(
|
|
45743
|
+
e[o] = e[o].append(le.from(s));
|
|
45744
45744
|
}
|
|
45745
45745
|
return { height: e.length, width: r, rows: e };
|
|
45746
45746
|
}
|
|
@@ -45766,7 +45766,7 @@ function Xae({ width: t, height: e, rows: n }, r, o) {
|
|
|
45766
45766
|
for (let m = 1; m < h.attrs.rowspan; m++)
|
|
45767
45767
|
i[a + m] = (i[a + m] || 0) + h.attrs.colspan;
|
|
45768
45768
|
}
|
|
45769
|
-
s.push(
|
|
45769
|
+
s.push(le.from(u));
|
|
45770
45770
|
}
|
|
45771
45771
|
n = s, t = r;
|
|
45772
45772
|
}
|
|
@@ -45784,7 +45784,7 @@ function Xae({ width: t, height: e, rows: n }, r, o) {
|
|
|
45784
45784
|
p.content
|
|
45785
45785
|
)), l.push(p);
|
|
45786
45786
|
}
|
|
45787
|
-
i.push(
|
|
45787
|
+
i.push(le.from(l));
|
|
45788
45788
|
}
|
|
45789
45789
|
n = i, e = o;
|
|
45790
45790
|
}
|
|
@@ -45811,7 +45811,7 @@ function Zae(t, e, n, r, o, i, s) {
|
|
|
45811
45811
|
y ? d || (d = l.header_cell.createAndFill()) : u || (u = l.cell.createAndFill())
|
|
45812
45812
|
);
|
|
45813
45813
|
}
|
|
45814
|
-
const h = l.row.create(null,
|
|
45814
|
+
const h = l.row.create(null, le.from(p)), m = [];
|
|
45815
45815
|
for (let b = e.height; b < i; b++) m.push(h);
|
|
45816
45816
|
t.insert(t.mapping.slice(s).map(r + n.nodeSize - 2), m);
|
|
45817
45817
|
}
|
|
@@ -45969,7 +45969,7 @@ function tle(t, e, n) {
|
|
|
45969
45969
|
width: 1,
|
|
45970
45970
|
height: 1,
|
|
45971
45971
|
rows: [
|
|
45972
|
-
|
|
45972
|
+
le.from(
|
|
45973
45973
|
Ab(ir(t.state.schema).cell, n)
|
|
45974
45974
|
)
|
|
45975
45975
|
]
|
|
@@ -47010,19 +47010,15 @@ const $f = ({ editor: t }) => {
|
|
|
47010
47010
|
width: 2,
|
|
47011
47011
|
class: "ProseMirror-dropcursor border-black"
|
|
47012
47012
|
})
|
|
47013
|
-
), this.options.characterCount !== !1 && e.push(koe.configure(this.options.characterCount)), this.options.paragraph !== !1 && e.push(lT.configure(this.options.paragraph)), this.options.
|
|
47013
|
+
), this.options.characterCount !== !1 && e.push(koe.configure(this.options.characterCount)), this.options.paragraph !== !1 && e.push(lT.configure(this.options.paragraph)), this.options.listItem !== !1 && e.push(Voe.configure(this.options.listItem)), this.options.textStyle !== !1 && e.push(lre.configure(this.options.textStyle)), this.options.history !== !1 && e.push(Lv.configure(this.options.history)), this.options.mode !== lo.EDITOR && (this.options.superText !== !1 && (typeof this.options.superText == "boolean" ? e.push(Ix.configure()) : e.push(
|
|
47014
47014
|
Ix.configure({
|
|
47015
47015
|
specialCharModal: (o = this.options.superText) == null ? void 0 : o.specialCharModal
|
|
47016
47016
|
})
|
|
47017
|
-
)), e.push(W7, OT, Zse)), e.push(
|
|
47017
|
+
)), e.push(W7, OT, Zse)), this.options.mode === lo.EDITOR && (this.options.hardBreak !== !1 && e.push(zoe.configure(this.options.hardBreak)), this.options.image !== !1 && e.push(Jv.configure()), e.push(V7.configure({ spacer: !0 }), x7, w7, _7, Rv, Zv)), e.push(
|
|
47018
47018
|
Woe,
|
|
47019
47019
|
uT.configure(),
|
|
47020
47020
|
Ble.configure(),
|
|
47021
47021
|
Hoe.configure(),
|
|
47022
|
-
V7.configure({ spacer: !0 }),
|
|
47023
|
-
w7,
|
|
47024
|
-
x7,
|
|
47025
|
-
_7,
|
|
47026
47022
|
E7,
|
|
47027
47023
|
j7.configure({ spacer: !0 }),
|
|
47028
47024
|
U7.configure({ types: ["heading", "paragraph"], spacer: !0 }),
|
|
@@ -47030,8 +47026,6 @@ const $f = ({ editor: t }) => {
|
|
|
47030
47026
|
NT,
|
|
47031
47027
|
eae,
|
|
47032
47028
|
Yv,
|
|
47033
|
-
Rv,
|
|
47034
|
-
Zv,
|
|
47035
47029
|
Gv,
|
|
47036
47030
|
_v
|
|
47037
47031
|
);
|
|
@@ -47290,7 +47284,7 @@ function Wle({ pluginKey: t = Ule, editor: e, char: n = "@", allowSpaces: r = !1
|
|
|
47290
47284
|
const B = (S = this.key) === null || S === void 0 ? void 0 : S.getState(C), K = (E = this.key) === null || E === void 0 ? void 0 : E.getState(x.state), Z = B.active && K.active && B.range.from !== K.range.from, Se = !B.active && K.active, Ce = B.active && !K.active, De = !Se && !Ce && B.query !== K.query, we = Se || Z && De, Y = De || Z, ce = Ce || Z && De;
|
|
47291
47285
|
if (!we && !Y && !ce)
|
|
47292
47286
|
return;
|
|
47293
|
-
const xe = ce && !we ? B : K,
|
|
47287
|
+
const xe = ce && !we ? B : K, ue = x.dom.querySelector(`[data-decoration-id="${xe.decorationId}"]`);
|
|
47294
47288
|
b = {
|
|
47295
47289
|
editor: e,
|
|
47296
47290
|
range: xe.range,
|
|
@@ -47302,10 +47296,10 @@ function Wle({ pluginKey: t = Ule, editor: e, char: n = "@", allowSpaces: r = !1
|
|
|
47302
47296
|
range: xe.range,
|
|
47303
47297
|
props: ve
|
|
47304
47298
|
}),
|
|
47305
|
-
decorationNode:
|
|
47299
|
+
decorationNode: ue,
|
|
47306
47300
|
// virtual node for popper.js or tippy.js
|
|
47307
47301
|
// this can be used for building popups without a DOM node
|
|
47308
|
-
clientRect:
|
|
47302
|
+
clientRect: ue ? () => {
|
|
47309
47303
|
var ve;
|
|
47310
47304
|
const { decorationId: nt } = (ve = this.key) === null || ve === void 0 ? void 0 : ve.getState(e.state), Ct = x.dom.querySelector(`[data-decoration-id="${nt}"]`);
|
|
47311
47305
|
return (Ct == null ? void 0 : Ct.getBoundingClientRect()) || null;
|
|
@@ -47944,22 +47938,22 @@ function Yx(t) {
|
|
|
47944
47938
|
}, cue);
|
|
47945
47939
|
j1.set(t, e);
|
|
47946
47940
|
}
|
|
47947
|
-
const
|
|
47941
|
+
const xo = q({
|
|
47948
47942
|
toasts: []
|
|
47949
47943
|
});
|
|
47950
47944
|
function yc(t) {
|
|
47951
47945
|
switch (t.type) {
|
|
47952
47946
|
case Di.ADD_TOAST:
|
|
47953
|
-
|
|
47947
|
+
xo.value.toasts = [t.toast, ...xo.value.toasts].slice(0, uue);
|
|
47954
47948
|
break;
|
|
47955
47949
|
case Di.UPDATE_TOAST:
|
|
47956
|
-
|
|
47950
|
+
xo.value.toasts = xo.value.toasts.map((e) => e.id === t.toast.id ? { ...e, ...t.toast } : e);
|
|
47957
47951
|
break;
|
|
47958
47952
|
case Di.DISMISS_TOAST: {
|
|
47959
47953
|
const { toastId: e } = t;
|
|
47960
|
-
e ? Yx(e) :
|
|
47954
|
+
e ? Yx(e) : xo.value.toasts.forEach((n) => {
|
|
47961
47955
|
Yx(n.id);
|
|
47962
|
-
}),
|
|
47956
|
+
}), xo.value.toasts = xo.value.toasts.map(
|
|
47963
47957
|
(n) => n.id === e || e === void 0 ? {
|
|
47964
47958
|
...n,
|
|
47965
47959
|
open: !1
|
|
@@ -47968,13 +47962,13 @@ function yc(t) {
|
|
|
47968
47962
|
break;
|
|
47969
47963
|
}
|
|
47970
47964
|
case Di.REMOVE_TOAST:
|
|
47971
|
-
t.toastId === void 0 ?
|
|
47965
|
+
t.toastId === void 0 ? xo.value.toasts = [] : xo.value.toasts = xo.value.toasts.filter((e) => e.id !== t.toastId);
|
|
47972
47966
|
break;
|
|
47973
47967
|
}
|
|
47974
47968
|
}
|
|
47975
47969
|
function Qv() {
|
|
47976
47970
|
return {
|
|
47977
|
-
toasts: J(() =>
|
|
47971
|
+
toasts: J(() => xo.value.toasts),
|
|
47978
47972
|
toast: fue,
|
|
47979
47973
|
dismiss: (t) => yc({ type: Di.DISMISS_TOAST, toastId: t })
|
|
47980
47974
|
};
|
|
@@ -48495,15 +48489,18 @@ const WT = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
|
|
|
48495
48489
|
...Oue,
|
|
48496
48490
|
...(t = this.parent) == null ? void 0 : t.call(this),
|
|
48497
48491
|
upload: () => Promise.reject("Image Upload Function"),
|
|
48498
|
-
button: ({ editor: e, extension: n, t: r }) =>
|
|
48499
|
-
|
|
48500
|
-
|
|
48501
|
-
|
|
48502
|
-
|
|
48503
|
-
|
|
48504
|
-
|
|
48505
|
-
|
|
48506
|
-
|
|
48492
|
+
button: ({ editor: e, extension: n, t: r }) => {
|
|
48493
|
+
var o, i;
|
|
48494
|
+
return {
|
|
48495
|
+
component: Ue,
|
|
48496
|
+
componentProps: {
|
|
48497
|
+
action: () => e.commands.setImageUpload(),
|
|
48498
|
+
disabled: !((i = (o = e.can()).setImage) != null && i.call(o, {})),
|
|
48499
|
+
icon: "ImageUp",
|
|
48500
|
+
tooltip: r("editor.image.tooltip")
|
|
48501
|
+
}
|
|
48502
|
+
};
|
|
48503
|
+
}
|
|
48507
48504
|
};
|
|
48508
48505
|
},
|
|
48509
48506
|
addProseMirrorPlugins() {
|
|
@@ -51020,7 +51017,7 @@ function Kfe() {
|
|
|
51020
51017
|
// AI.configure({
|
|
51021
51018
|
// completions: text => AICompletions(text),
|
|
51022
51019
|
// }),
|
|
51023
|
-
]), r =
|
|
51020
|
+
]), r = uo(
|
|
51024
51021
|
Io.RENDER_SUPER_TEXT
|
|
51025
51022
|
);
|
|
51026
51023
|
function o(i, s) {
|
|
@@ -51555,7 +51552,7 @@ const dh = (t, e) => {
|
|
|
51555
51552
|
editor: rv
|
|
51556
51553
|
},
|
|
51557
51554
|
setup(t) {
|
|
51558
|
-
const e =
|
|
51555
|
+
const e = uo(Io.RENDER_SUPER_TEXT), n = q([]), r = q([]), o = (v, y) => {
|
|
51559
51556
|
const x = r.value.findIndex((C) => C.id === v);
|
|
51560
51557
|
x > -1 && (r.value[x].status = y);
|
|
51561
51558
|
}, i = () => {
|
|
@@ -51619,7 +51616,7 @@ const dh = (t, e) => {
|
|
|
51619
51616
|
};
|
|
51620
51617
|
hh(() => {
|
|
51621
51618
|
e.on(d);
|
|
51622
|
-
}),
|
|
51619
|
+
}), ho(() => {
|
|
51623
51620
|
e.off(d);
|
|
51624
51621
|
});
|
|
51625
51622
|
const p = (v, y) => {
|
|
@@ -51715,7 +51712,7 @@ const dh = (t, e) => {
|
|
|
51715
51712
|
editor: rv
|
|
51716
51713
|
},
|
|
51717
51714
|
setup(t) {
|
|
51718
|
-
const e =
|
|
51715
|
+
const e = uo(Io.RENDER_SUPER_TEXT), n = q([]), r = q([]), o = (v, y) => {
|
|
51719
51716
|
const x = r.value.findIndex((C) => C.id === v);
|
|
51720
51717
|
x > -1 && (r.value[x].status = y);
|
|
51721
51718
|
}, i = () => {
|
|
@@ -51779,7 +51776,7 @@ const dh = (t, e) => {
|
|
|
51779
51776
|
};
|
|
51780
51777
|
hh(() => {
|
|
51781
51778
|
e.on(d);
|
|
51782
|
-
}),
|
|
51779
|
+
}), ho(() => {
|
|
51783
51780
|
e.off(d);
|
|
51784
51781
|
});
|
|
51785
51782
|
const p = (v, y) => {
|
|
@@ -51895,7 +51892,7 @@ const dh = (t, e) => {
|
|
|
51895
51892
|
},
|
|
51896
51893
|
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection"],
|
|
51897
51894
|
setup(t, { expose: e, emit: n }) {
|
|
51898
|
-
const r = t, o = n, i =
|
|
51895
|
+
const r = t, o = n, i = uo(Io.RENDER_SUPER_TEXT), s = y5(), a = ji(), { state: l, isReady: u, editor: d, updateEditorState: p, superTextStore: h, checkSpellStore: m } = a, b = w5(), v = new c0({
|
|
51899
51896
|
enablePasteRules: !1,
|
|
51900
51897
|
// disable Markdown when pasting
|
|
51901
51898
|
enableInputRules: !1,
|
|
@@ -51903,7 +51900,7 @@ const dh = (t, e) => {
|
|
|
51903
51900
|
content: dh(r.modelValue, r.disabled),
|
|
51904
51901
|
editorProps: {
|
|
51905
51902
|
handleKeyDown: Bl((C, S) => S.key === "Enter" && s.enter && !S.shiftKey ? (o("enter"), !0) : !1, Mp),
|
|
51906
|
-
transformPastedHTML: (C) => (C = C.replace(/\s*style="[^"]*"/g, ""), C
|
|
51903
|
+
transformPastedHTML: (C) => (C = C.replace(/\s*style="[^"]*"/g, ""), C)
|
|
51907
51904
|
},
|
|
51908
51905
|
onCreate: ({ editor: C }) => {
|
|
51909
51906
|
p(C);
|
|
@@ -51991,7 +51988,7 @@ const dh = (t, e) => {
|
|
|
51991
51988
|
function ufe(t, e) {
|
|
51992
51989
|
const { height: n } = lI(t), r = q(0), o = q(0), i = () => {
|
|
51993
51990
|
const s = n.value - 8;
|
|
51994
|
-
e.value ===
|
|
51991
|
+
e.value === lo.REPORT ? (r.value = s / 3, o.value = s - r.value) : (r.value = 0, o.value = n.value);
|
|
51995
51992
|
};
|
|
51996
51993
|
return Et(() => {
|
|
51997
51994
|
i();
|
|
@@ -52029,7 +52026,7 @@ const cfe = { class: "flex min-h-full" }, dfe = {
|
|
|
52029
52026
|
},
|
|
52030
52027
|
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection"],
|
|
52031
52028
|
setup(t, { expose: e, emit: n }) {
|
|
52032
|
-
const r = t, o = n, i =
|
|
52029
|
+
const r = t, o = n, i = uo(Io.RENDER_SUPER_TEXT), s = uo(Io.INCREASE_DECREASE_FONTSIZE), a = y5(), l = ji(), {
|
|
52033
52030
|
state: u,
|
|
52034
52031
|
isFullscreen: d,
|
|
52035
52032
|
setEditor: p,
|
|
@@ -52043,7 +52040,7 @@ const cfe = { class: "flex min-h-full" }, dfe = {
|
|
|
52043
52040
|
checkSpellStore: S
|
|
52044
52041
|
} = l, E = w5(), A = J(
|
|
52045
52042
|
() => [...u.extensions, ...wU(r.extensions, u.extensions, "name")].map(
|
|
52046
|
-
(
|
|
52043
|
+
(ue, ve) => ue.configure({ sort: ve })
|
|
52047
52044
|
)
|
|
52048
52045
|
), k = q(null), N = q(null);
|
|
52049
52046
|
Rl("fontSize", k), Rl("fontFamily", N);
|
|
@@ -52059,13 +52056,13 @@ const cfe = { class: "flex min-h-full" }, dfe = {
|
|
|
52059
52056
|
), Et(() => {
|
|
52060
52057
|
Z();
|
|
52061
52058
|
});
|
|
52062
|
-
const V = (
|
|
52063
|
-
const ve = k.value ? parseInt(k.value) : r.fontSizeDefault, nt =
|
|
52059
|
+
const V = (ue) => {
|
|
52060
|
+
const ve = k.value ? parseInt(k.value) : r.fontSizeDefault, nt = ue ? ve + 2 : ve - 2;
|
|
52064
52061
|
k.value = nt + "px";
|
|
52065
52062
|
};
|
|
52066
52063
|
hh(() => {
|
|
52067
52064
|
s.on(V);
|
|
52068
|
-
}),
|
|
52065
|
+
}), ho(() => {
|
|
52069
52066
|
s.off(V);
|
|
52070
52067
|
});
|
|
52071
52068
|
const B = J(() => ({
|
|
@@ -52085,16 +52082,16 @@ const cfe = { class: "flex min-h-full" }, dfe = {
|
|
|
52085
52082
|
// disable Markdown when typing
|
|
52086
52083
|
content: dh(r.modelValue, r.disabled),
|
|
52087
52084
|
editorProps: {
|
|
52088
|
-
handleKeyDown: Bl((
|
|
52089
|
-
transformPastedHTML: (
|
|
52085
|
+
handleKeyDown: Bl((ue, ve) => ve.key === "Enter" && a.enter && !ve.shiftKey ? (o("enter"), !0) : !1, Mp),
|
|
52086
|
+
transformPastedHTML: (ue) => (ue = ue.replace(/\s*style="[^"]*"/g, ""), ue)
|
|
52090
52087
|
},
|
|
52091
|
-
onCreate: ({ editor:
|
|
52092
|
-
y(
|
|
52088
|
+
onCreate: ({ editor: ue }) => {
|
|
52089
|
+
y(ue);
|
|
52093
52090
|
},
|
|
52094
|
-
onUpdate: Bl(({ editor:
|
|
52091
|
+
onUpdate: Bl(({ editor: ue }) => {
|
|
52095
52092
|
h.value = !0;
|
|
52096
|
-
const ve = Se(
|
|
52097
|
-
o("update:modelValue", ve), o("change", { editor:
|
|
52093
|
+
const ve = Se(ue, r.output);
|
|
52094
|
+
o("update:modelValue", ve), o("change", { editor: ue, output: ve }), y(ue), Z();
|
|
52098
52095
|
}, Mp),
|
|
52099
52096
|
extensions: YU(HU(w(A)), "name"),
|
|
52100
52097
|
editable: !r.disabled
|
|
@@ -52104,23 +52101,23 @@ const cfe = { class: "flex min-h-full" }, dfe = {
|
|
|
52104
52101
|
action: "render"
|
|
52105
52102
|
});
|
|
52106
52103
|
}
|
|
52107
|
-
function Se(
|
|
52108
|
-
if (!
|
|
52109
|
-
if (
|
|
52104
|
+
function Se(ue, ve) {
|
|
52105
|
+
if (!ue) return "";
|
|
52106
|
+
if (ue.isEmpty)
|
|
52110
52107
|
return ve === "json" ? {} : "";
|
|
52111
52108
|
switch (ve) {
|
|
52112
52109
|
case "html":
|
|
52113
|
-
return
|
|
52110
|
+
return ue.getHTML();
|
|
52114
52111
|
case "json":
|
|
52115
|
-
return
|
|
52112
|
+
return ue.getJSON();
|
|
52116
52113
|
case "text":
|
|
52117
|
-
return
|
|
52114
|
+
return ue.getText();
|
|
52118
52115
|
default:
|
|
52119
52116
|
return "";
|
|
52120
52117
|
}
|
|
52121
52118
|
}
|
|
52122
|
-
function Ce(
|
|
52123
|
-
return
|
|
52119
|
+
function Ce(ue) {
|
|
52120
|
+
return ue.every((ve) => K == null ? void 0 : K.extensionManager.extensions.find((nt) => nt.name === ve));
|
|
52124
52121
|
}
|
|
52125
52122
|
je(() => r.dark, x5(E)), je(
|
|
52126
52123
|
() => S.languages,
|
|
@@ -52129,41 +52126,41 @@ const cfe = { class: "flex min-h-full" }, dfe = {
|
|
|
52129
52126
|
}
|
|
52130
52127
|
), je(
|
|
52131
52128
|
() => r.modelValue,
|
|
52132
|
-
(
|
|
52133
|
-
if (!K || iE(Se(K, r.output),
|
|
52129
|
+
(ue) => {
|
|
52130
|
+
if (!K || iE(Se(K, r.output), ue)) return;
|
|
52134
52131
|
const { from: ve, to: nt } = K.state.selection;
|
|
52135
|
-
K.commands.setTextSelection({ from: ve, to: nt }), Z(), K.commands.setContent(dh(
|
|
52132
|
+
K.commands.setTextSelection({ from: ve, to: nt }), Z(), K.commands.setContent(dh(ue, r.disabled), !1);
|
|
52136
52133
|
},
|
|
52137
52134
|
{ deep: !0 }
|
|
52138
52135
|
), je(
|
|
52139
52136
|
() => r.disabled,
|
|
52140
|
-
(
|
|
52137
|
+
(ue) => K == null ? void 0 : K.setEditable(!ue)
|
|
52141
52138
|
), je(
|
|
52142
52139
|
() => b.value,
|
|
52143
52140
|
() => {
|
|
52144
|
-
b.value && b.value.on("selectionUpdate", ({ editor:
|
|
52145
|
-
o("changed:selection", { editor:
|
|
52141
|
+
b.value && b.value.on("selectionUpdate", ({ editor: ue }) => {
|
|
52142
|
+
o("changed:selection", { editor: ue });
|
|
52146
52143
|
});
|
|
52147
52144
|
}
|
|
52148
52145
|
), je(
|
|
52149
52146
|
() => u.fontFamily,
|
|
52150
|
-
(
|
|
52151
|
-
Kde(
|
|
52147
|
+
(ue) => {
|
|
52148
|
+
Kde(ue);
|
|
52152
52149
|
}
|
|
52153
52150
|
), Do(() => K == null ? void 0 : K.destroy()), y7(f7.SAVE, () => {
|
|
52154
52151
|
localStorage.setItem("content", Se(K, "html"));
|
|
52155
52152
|
});
|
|
52156
52153
|
const De = J(() => {
|
|
52157
|
-
var
|
|
52158
|
-
return ((ve = (
|
|
52154
|
+
var ue, ve;
|
|
52155
|
+
return ((ve = (ue = K == null ? void 0 : K.storage) == null ? void 0 : ue.superText) == null ? void 0 : ve.enable) && r.mode !== lo.EDITOR && !r.disabled;
|
|
52159
52156
|
}), we = q(null), Y = J(() => r.mode), { commentHeight: ce, contentHeight: xe } = ufe(we, Y);
|
|
52160
|
-
return e({ editor: K }), (
|
|
52157
|
+
return e({ editor: K }), (ue, ve) => {
|
|
52161
52158
|
const nt = qde, Ct = zde, en = Fde, Je = Cee, St = zq;
|
|
52162
52159
|
return w(K) ? (L(), pe("div", {
|
|
52163
52160
|
key: 0,
|
|
52164
52161
|
id: "vdc-editor",
|
|
52165
52162
|
class: Rt(["vdc-editor w-full flex flex-col", [
|
|
52166
|
-
|
|
52163
|
+
ue.editorClass,
|
|
52167
52164
|
{
|
|
52168
52165
|
"outline-ed-primary": w(K).isFocused,
|
|
52169
52166
|
"outline-ed-border": !w(K).isFocused
|
|
@@ -52171,7 +52168,7 @@ const cfe = { class: "flex min-h-full" }, dfe = {
|
|
|
52171
52168
|
]]),
|
|
52172
52169
|
style: sn(B.value)
|
|
52173
52170
|
}, [
|
|
52174
|
-
!
|
|
52171
|
+
!ue.hideBubble && !ue.disabled && w(K).isEditable ? (L(), pe(Ze, { key: 0 }, [
|
|
52175
52172
|
Ce([w(AT)]) ? (L(), z(nt, {
|
|
52176
52173
|
key: 0,
|
|
52177
52174
|
editor: w(K)
|
|
@@ -52189,11 +52186,11 @@ const cfe = { class: "flex min-h-full" }, dfe = {
|
|
|
52189
52186
|
editor: w(K)
|
|
52190
52187
|
}, null, 8, ["editor"])) : Xe("", !0)
|
|
52191
52188
|
], 64)) : Xe("", !0),
|
|
52192
|
-
|
|
52189
|
+
ue.hideToolbar ? Xe("", !0) : (L(), z(St, {
|
|
52193
52190
|
key: 1,
|
|
52194
52191
|
editor: w(K),
|
|
52195
|
-
mode:
|
|
52196
|
-
disabled:
|
|
52192
|
+
mode: ue.mode,
|
|
52193
|
+
disabled: ue.disabled,
|
|
52197
52194
|
class: "mb-2"
|
|
52198
52195
|
}, null, 8, ["editor", "mode", "disabled"])),
|
|
52199
52196
|
te("div", {
|
|
@@ -52208,10 +52205,10 @@ const cfe = { class: "flex min-h-full" }, dfe = {
|
|
|
52208
52205
|
),
|
|
52209
52206
|
style: sn(W.value)
|
|
52210
52207
|
}, [
|
|
52211
|
-
|
|
52208
|
+
ue.mode === w(lo).REPORT ? (L(), z(lfe, {
|
|
52212
52209
|
key: 0,
|
|
52213
|
-
mode: w(
|
|
52214
|
-
extensions:
|
|
52210
|
+
mode: w(lo).REPORT,
|
|
52211
|
+
extensions: ue.extensions,
|
|
52215
52212
|
"model-value": r.comment,
|
|
52216
52213
|
disabled: r.disabled,
|
|
52217
52214
|
"is-open-super-view": De.value,
|
|
@@ -52234,7 +52231,7 @@ const cfe = { class: "flex min-h-full" }, dfe = {
|
|
|
52234
52231
|
te("div", dfe, [
|
|
52235
52232
|
I(Kv, {
|
|
52236
52233
|
editor: w(K),
|
|
52237
|
-
mode:
|
|
52234
|
+
mode: ue.mode,
|
|
52238
52235
|
"super-text-store": w(C)
|
|
52239
52236
|
}, {
|
|
52240
52237
|
default: M(() => [
|
|
@@ -52255,7 +52252,7 @@ const cfe = { class: "flex min-h-full" }, dfe = {
|
|
|
52255
52252
|
}), Gfe = /* @__PURE__ */ H({
|
|
52256
52253
|
__name: "ArticleEditor",
|
|
52257
52254
|
props: {
|
|
52258
|
-
mode: { default:
|
|
52255
|
+
mode: { default: lo.STRAIGHT },
|
|
52259
52256
|
superTextArea: {},
|
|
52260
52257
|
modelValue: {},
|
|
52261
52258
|
comment: {},
|
|
@@ -52317,7 +52314,7 @@ const cfe = { class: "flex min-h-full" }, dfe = {
|
|
|
52317
52314
|
o[0] || (o[0] = (s) => n.value = s),
|
|
52318
52315
|
o[1] || (o[1] = (s) => r.$emit("update:modelValue", s))
|
|
52319
52316
|
],
|
|
52320
|
-
mode: w(
|
|
52317
|
+
mode: w(lo).EDITOR
|
|
52321
52318
|
}), null, 16, ["modelValue", "mode"]);
|
|
52322
52319
|
};
|
|
52323
52320
|
}
|
|
@@ -52679,7 +52676,7 @@ const Yfe = {
|
|
|
52679
52676
|
install(t) {
|
|
52680
52677
|
t.use(hfe), t.component("vdc-editor", ry);
|
|
52681
52678
|
}
|
|
52682
|
-
}, mfe =
|
|
52679
|
+
}, mfe = uo(Io.RENDER_SUPER_TEXT);
|
|
52683
52680
|
function Xfe() {
|
|
52684
52681
|
mfe.emit({
|
|
52685
52682
|
action: "render"
|
|
@@ -52689,7 +52686,7 @@ export {
|
|
|
52689
52686
|
Gfe as ArticleEditor,
|
|
52690
52687
|
ry as CoreEditor,
|
|
52691
52688
|
Jfe as DigitalNewsEditor,
|
|
52692
|
-
|
|
52689
|
+
lo as EditorMode,
|
|
52693
52690
|
Yfe as SBSEditorPlugin,
|
|
52694
52691
|
Yfe as default,
|
|
52695
52692
|
ffe as enUS,
|