@beterdichtbij/component-library 0.11.8 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/dist/bd-component-lib.cjs.js +5 -5
- package/dist/bd-component-lib.es.js +669 -649
- package/dist/bd-component-lib.umd.js +5 -5
- package/dist/components/atoms/BDAlert/BDAlert.vue.d.ts.map +1 -1
- package/dist/components/atoms/BDArticle/BDArticle.vue.d.ts.map +1 -1
- package/dist/components/atoms/BDBadge/BDBadge.vue.d.ts.map +1 -1
- package/dist/components/atoms/BDButton/BDButton.vue.d.ts.map +1 -1
- package/dist/components/atoms/BDCard/BDCard.vue.d.ts.map +1 -1
- package/dist/components/atoms/BDCollapsableCard/BDCollapsableCard.vue.d.ts.map +1 -1
- package/dist/components/atoms/BDForm/BDForm.vue.d.ts.map +1 -1
- package/dist/components/atoms/BDFormCheckbox/BDFormCheckbox.vue.d.ts.map +1 -1
- package/dist/components/atoms/BDFormInput/BDFormInput.vue.d.ts.map +1 -1
- package/dist/components/atoms/BDFormInvalidFeedback/BDFormInvalidFeedback.vue.d.ts.map +1 -1
- package/dist/components/atoms/BDFormSelect/BDFormSelect.vue.d.ts.map +1 -1
- package/dist/components/atoms/BDInputGroup/BDInputGroup.vue.d.ts.map +1 -1
- package/dist/components/atoms/BDLink/BDLink.vue.d.ts.map +1 -1
- package/dist/components/atoms/BDPagination/BDPagination.vue.d.ts.map +1 -1
- package/dist/components/atoms/BDProfileImage/BDProfileImage.vue.d.ts.map +1 -1
- package/dist/components/atoms/BDToast/BDToast.vue.d.ts.map +1 -1
- package/dist/components/atoms/BDZoomslider/BDZoomslider.vue.d.ts.map +1 -1
- package/dist/components/molecules/BDDropdownItem/BDDropdownItem.vue.d.ts.map +1 -1
- package/dist/components/molecules/BDDropzone/BDDropzone.vue.d.ts +17 -6
- package/dist/components/molecules/BDDropzone/BDDropzone.vue.d.ts.map +1 -1
- package/dist/components/molecules/BDMarkdownEditor/BDMarkdownEditor.vue.d.ts +2 -1
- package/dist/components/molecules/BDMarkdownEditor/BDMarkdownEditor.vue.d.ts.map +1 -1
- package/dist/components/molecules/BDUser/BDUser.vue.d.ts.map +1 -1
- package/dist/components/organisms/BDDropdown/BDDropdown.vue.d.ts.map +1 -1
- package/dist/components/organisms/BDModal/BDModal.vue.d.ts +11 -0
- package/dist/components/organisms/BDModal/BDModal.vue.d.ts.map +1 -1
- package/dist/interfaces/BDDropzoneProps.d.ts +7 -2
- package/dist/interfaces/BDModalProps.d.ts +1 -0
- package/dist/scss/_alert.scss +11 -11
- package/dist/scss/_article.scss +23 -23
- package/dist/scss/_base.scss +1 -1
- package/dist/scss/_button.scss +54 -54
- package/dist/scss/_card.scss +82 -82
- package/dist/scss/_collapsable-card.scss +118 -118
- package/dist/scss/_dropdown.scss +101 -101
- package/dist/scss/_dropzone.scss +71 -71
- package/dist/scss/_forms.scss +2 -2
- package/dist/scss/_icons.scss +52 -52
- package/dist/scss/_markdown-editor.scss +47 -47
- package/dist/scss/_modal.scss +15 -15
- package/dist/scss/_pagination.scss +41 -41
- package/dist/scss/_profile-image.scss +47 -47
- package/dist/scss/_toast.scss +83 -83
- package/dist/scss/_user.scss +5 -5
- package/dist/scss/_zoomslider.scss +77 -77
- package/dist/scss/base/typography.scss +15 -15
- package/dist/scss/base/variables.scss +162 -162
- package/dist/scss/component-library-styling.scss +18 -18
- package/dist/scss/forms/_form-check.scss +11 -11
- package/dist/scss/forms/_form-input.scss +3 -3
- package/dist/scss/mixins.scss +46 -46
- package/package.json +122 -122
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Be, computed as Re, openBlock as de, createElementBlock as ve, normalizeClass as je, renderSlot as
|
|
1
|
+
import { defineComponent as Be, computed as Re, openBlock as de, createElementBlock as ve, normalizeClass as je, renderSlot as We, createElementVNode as ue, mergeProps as wn, createStaticVNode as wf, resolveComponent as Cf, createBlock as vt, resolveDynamicComponent as No, withCtx as dt, createTextVNode as Sn, toDisplayString as Ke, createVNode as He, unref as Ee, createCommentVNode as Xe, getCurrentScope as Tf, onScopeDispose as kf, ref as Cn, watch as Un, getCurrentInstance as nu, nextTick as ru, withDirectives as ei, isRef as ua, vModelText as Af, withKeys as Of, useAttrs as Mf, Fragment as mi, withModifiers as dl, onMounted as gi, vShow as fl, renderList as iu, vModelSelect as If, vModelCheckbox as Rf, Teleport as ou, normalizeProps as su, guardReactiveProps as au, onBeforeUnmount as Lo, h as er, watchEffect as Df, shallowRef as Nf, reactive as Lf, markRaw as Pf, customRef as Ff } from "vue";
|
|
2
2
|
const Bf = /* @__PURE__ */ Be({
|
|
3
3
|
__name: "BDCol",
|
|
4
4
|
props: {
|
|
@@ -28,7 +28,7 @@ const Bf = /* @__PURE__ */ Be({
|
|
|
28
28
|
return (r, i) => (de(), ve("div", {
|
|
29
29
|
class: je(t.value)
|
|
30
30
|
}, [
|
|
31
|
-
|
|
31
|
+
We(r.$slots, "default")
|
|
32
32
|
], 2));
|
|
33
33
|
}
|
|
34
34
|
}), zf = /* @__PURE__ */ Be({
|
|
@@ -47,7 +47,7 @@ const Bf = /* @__PURE__ */ Be({
|
|
|
47
47
|
return (r, i) => (de(), ve("div", {
|
|
48
48
|
class: je(t.value)
|
|
49
49
|
}, [
|
|
50
|
-
|
|
50
|
+
We(r.$slots, "default")
|
|
51
51
|
], 2));
|
|
52
52
|
}
|
|
53
53
|
}), $f = /* @__PURE__ */ Be({
|
|
@@ -59,7 +59,7 @@ const Bf = /* @__PURE__ */ Be({
|
|
|
59
59
|
return (e, t) => (de(), ve("div", {
|
|
60
60
|
class: je(["row", e.class])
|
|
61
61
|
}, [
|
|
62
|
-
|
|
62
|
+
We(e.$slots, "default")
|
|
63
63
|
], 2));
|
|
64
64
|
}
|
|
65
65
|
}), gt = {
|
|
@@ -72,7 +72,7 @@ const Bf = /* @__PURE__ */ Be({
|
|
|
72
72
|
for (const [r, i] of e)
|
|
73
73
|
t[r] = i;
|
|
74
74
|
return t;
|
|
75
|
-
},
|
|
75
|
+
}, Uf = {}, Hf = {
|
|
76
76
|
class: "icon icon-check",
|
|
77
77
|
xmlns: "http://www.w3.org/2000/svg",
|
|
78
78
|
width: "18",
|
|
@@ -82,9 +82,9 @@ const Bf = /* @__PURE__ */ Be({
|
|
|
82
82
|
Vf
|
|
83
83
|
];
|
|
84
84
|
function Wf(n, e) {
|
|
85
|
-
return de(), ve("svg",
|
|
85
|
+
return de(), ve("svg", Hf, jf);
|
|
86
86
|
}
|
|
87
|
-
const da = /* @__PURE__ */ lt(
|
|
87
|
+
const da = /* @__PURE__ */ lt(Uf, [["render", Wf]]), Kf = {}, Gf = {
|
|
88
88
|
class: "icon icon-error",
|
|
89
89
|
xmlns: "http://www.w3.org/2000/svg",
|
|
90
90
|
width: "18",
|
|
@@ -144,9 +144,9 @@ const lu = /* @__PURE__ */ lt(sp, [["render", up]]), dp = {}, fp = {
|
|
|
144
144
|
"xml:space": "preserve",
|
|
145
145
|
class: "icon icon-file"
|
|
146
146
|
}, pp = /* @__PURE__ */ ue("title", null, "common-file-empty", -1), hp = /* @__PURE__ */ ue("g", null, [
|
|
147
|
-
/* @__PURE__ */ ue("path", { d: `M3.023,24c-1.241,0-2.25-1.009-2.25-2.25V2.25C0.773,1.009,1.782,0,3.023,0h15c0.59,0,1.147,0.227,1.571,0.639l2.955,2.883
|
|
148
|
-
c0.431,0.422,0.678,1.009,0.678,1.611V21.75c0,1.241-1.009,2.25-2.25,2.25H3.023z M3.023,1.5c-0.414,0-0.75,0.336-0.75,0.75v19.5
|
|
149
|
-
c0,0.414,0.336,0.75,0.75,0.75h17.954c0.414,0,0.75-0.336,0.75-0.75V5.133c0-0.201-0.082-0.397-0.226-0.537l-2.955-2.883
|
|
147
|
+
/* @__PURE__ */ ue("path", { d: `M3.023,24c-1.241,0-2.25-1.009-2.25-2.25V2.25C0.773,1.009,1.782,0,3.023,0h15c0.59,0,1.147,0.227,1.571,0.639l2.955,2.883
|
|
148
|
+
c0.431,0.422,0.678,1.009,0.678,1.611V21.75c0,1.241-1.009,2.25-2.25,2.25H3.023z M3.023,1.5c-0.414,0-0.75,0.336-0.75,0.75v19.5
|
|
149
|
+
c0,0.414,0.336,0.75,0.75,0.75h17.954c0.414,0,0.75-0.336,0.75-0.75V5.133c0-0.201-0.082-0.397-0.226-0.537l-2.955-2.883
|
|
150
150
|
C18.406,1.576,18.22,1.5,18.023,1.5H3.023z` })
|
|
151
151
|
], -1), mp = [
|
|
152
152
|
pp,
|
|
@@ -210,13 +210,13 @@ const pu = /* @__PURE__ */ lt(Dp, [["render", Fp]]), Bp = {}, zp = {
|
|
|
210
210
|
viewBox: "0 0 12 14",
|
|
211
211
|
xmlns: "http://www.w3.org/2000/svg",
|
|
212
212
|
class: "icon icon-italic"
|
|
213
|
-
}, $p = /* @__PURE__ */ ue("path", { d: "M12 0.75C12 1.1875 11.6562 1.5 11.25 1.5H9.125L4.53125 12.5H7.25C7.65625 12.5 8 12.8438 8 13.25C8 13.6875 7.65625 14 7.25 14H0.75C0.3125 14 0 13.6875 0 13.25C0 12.8438 0.3125 12.5 0.75 12.5H2.9375L7.53125 1.5H4.75C4.3125 1.5 4 1.1875 4 0.75C4 0.34375 4.3125 0 4.75 0H11.25C11.6562 0 12 0.34375 12 0.75Z" }, null, -1),
|
|
213
|
+
}, $p = /* @__PURE__ */ ue("path", { d: "M12 0.75C12 1.1875 11.6562 1.5 11.25 1.5H9.125L4.53125 12.5H7.25C7.65625 12.5 8 12.8438 8 13.25C8 13.6875 7.65625 14 7.25 14H0.75C0.3125 14 0 13.6875 0 13.25C0 12.8438 0.3125 12.5 0.75 12.5H2.9375L7.53125 1.5H4.75C4.3125 1.5 4 1.1875 4 0.75C4 0.34375 4.3125 0 4.75 0H11.25C11.6562 0 12 0.34375 12 0.75Z" }, null, -1), Up = [
|
|
214
214
|
$p
|
|
215
215
|
];
|
|
216
|
-
function
|
|
217
|
-
return de(), ve("svg", zp,
|
|
216
|
+
function Hp(n, e) {
|
|
217
|
+
return de(), ve("svg", zp, Up);
|
|
218
218
|
}
|
|
219
|
-
const hu = /* @__PURE__ */ lt(Bp, [["render",
|
|
219
|
+
const hu = /* @__PURE__ */ lt(Bp, [["render", Hp]]), Vp = {}, jp = {
|
|
220
220
|
width: "11",
|
|
221
221
|
height: "13",
|
|
222
222
|
viewBox: "0 0 11 13",
|
|
@@ -324,8 +324,8 @@ const vh = /* @__PURE__ */ lt(ph, [["render", gh]]), pl = /^https:/i, ha = /* @_
|
|
|
324
324
|
});
|
|
325
325
|
return (i, o) => (de(), vt(No(t.value), wn({ class: "bd-link" }, r.value), {
|
|
326
326
|
default: dt(() => [
|
|
327
|
-
|
|
328
|
-
Sn(
|
|
327
|
+
We(i.$slots, "default", {}, () => [
|
|
328
|
+
Sn(Ke(e.text), 1)
|
|
329
329
|
])
|
|
330
330
|
]),
|
|
331
331
|
_: 3
|
|
@@ -354,12 +354,12 @@ const vh = /* @__PURE__ */ lt(ph, [["render", gh]]), pl = /^https:/i, ha = /* @_
|
|
|
354
354
|
role: "alert"
|
|
355
355
|
}, [
|
|
356
356
|
r.title ? (de(), ve("div", yh, [
|
|
357
|
-
|
|
357
|
+
He(Ee(pa)),
|
|
358
358
|
ue("span", null, [
|
|
359
|
-
ue("strong", null,
|
|
359
|
+
ue("strong", null, Ke(e.title), 1)
|
|
360
360
|
])
|
|
361
361
|
])) : Xe("", !0),
|
|
362
|
-
|
|
362
|
+
We(r.$slots, "default")
|
|
363
363
|
], 2));
|
|
364
364
|
}
|
|
365
365
|
}), xh = ["src", "alt"], Sh = ["textContent"], xu = /* @__PURE__ */ Be({
|
|
@@ -388,7 +388,7 @@ const vh = /* @__PURE__ */ lt(ph, [["render", gh]]), pl = /^https:/i, ha = /* @_
|
|
|
388
388
|
key: 0,
|
|
389
389
|
class: "bd-profile-picture__footer position-absolute bottom-0 start-0",
|
|
390
390
|
onClick: t,
|
|
391
|
-
textContent:
|
|
391
|
+
textContent: Ke(r.linkText)
|
|
392
392
|
}, null, 8, Sh)) : Xe("", !0)
|
|
393
393
|
], 2));
|
|
394
394
|
}
|
|
@@ -446,7 +446,7 @@ function hl(...n) {
|
|
|
446
446
|
Array.isArray(t) || (t = [t]), Array.isArray(r) || (r = [r]);
|
|
447
447
|
const o = [], s = () => {
|
|
448
448
|
o.forEach((u) => u()), o.length = 0;
|
|
449
|
-
}, l = (u, d, f, h) => (u.addEventListener(d, f, h), () => u.removeEventListener(d, f, h)), a =
|
|
449
|
+
}, l = (u, d, f, h) => (u.addEventListener(d, f, h), () => u.removeEventListener(d, f, h)), a = Un(
|
|
450
450
|
() => [Su(e), zi(i)],
|
|
451
451
|
([u, d]) => {
|
|
452
452
|
if (s(), !u)
|
|
@@ -478,7 +478,7 @@ function Dh(n, e = {}) {
|
|
|
478
478
|
!l && i.value ? (a = o.value) == null || a.blur() : l && !i.value && ((c = o.value) == null || c.focus());
|
|
479
479
|
}
|
|
480
480
|
});
|
|
481
|
-
return
|
|
481
|
+
return Un(
|
|
482
482
|
o,
|
|
483
483
|
() => {
|
|
484
484
|
s.value = t;
|
|
@@ -504,12 +504,12 @@ function dr(n, e, t, r = {}) {
|
|
|
504
504
|
if (a) {
|
|
505
505
|
const w = x(), y = Cn(w);
|
|
506
506
|
let R = !1;
|
|
507
|
-
return
|
|
507
|
+
return Un(
|
|
508
508
|
() => n[e],
|
|
509
509
|
(C) => {
|
|
510
510
|
R || (R = !0, y.value = g(C), ru(() => R = !1));
|
|
511
511
|
}
|
|
512
|
-
),
|
|
512
|
+
), Un(
|
|
513
513
|
y,
|
|
514
514
|
(C) => {
|
|
515
515
|
!R && (C !== n[e] || u) && E(C);
|
|
@@ -592,20 +592,20 @@ const Nh = { class: "bd-zoom-slider d-flex" }, Lh = /* @__PURE__ */ ue("g", { tr
|
|
|
592
592
|
]));
|
|
593
593
|
}
|
|
594
594
|
});
|
|
595
|
-
var
|
|
596
|
-
for (;
|
|
597
|
-
Eu[
|
|
598
|
-
function
|
|
595
|
+
var Zn = 256, Eu = [], ml = 256, Ei;
|
|
596
|
+
for (; Zn--; )
|
|
597
|
+
Eu[Zn] = (Zn + 256).toString(16).substring(1);
|
|
598
|
+
function Uh(n) {
|
|
599
599
|
var e = 0, t = n || 11;
|
|
600
|
-
if (!Ei ||
|
|
601
|
-
for (Ei = "",
|
|
600
|
+
if (!Ei || Zn + t > ml * 2)
|
|
601
|
+
for (Ei = "", Zn = 0; e < ml; e++)
|
|
602
602
|
Ei += Eu[Math.random() * 256 | 0];
|
|
603
|
-
return Ei.substring(
|
|
603
|
+
return Ei.substring(Zn, Zn++ + t);
|
|
604
604
|
}
|
|
605
605
|
function Fo() {
|
|
606
|
-
return { uniqueIdentifier: Cn(
|
|
606
|
+
return { uniqueIdentifier: Cn(Uh()) };
|
|
607
607
|
}
|
|
608
|
-
const
|
|
608
|
+
const Hh = ["id"], Vh = { key: 0 }, wu = /* @__PURE__ */ Be({
|
|
609
609
|
__name: "BDCard",
|
|
610
610
|
props: {
|
|
611
611
|
class: { default: "" },
|
|
@@ -639,17 +639,17 @@ const Uh = ["id"], Vh = { key: 0 }, wu = /* @__PURE__ */ Be({
|
|
|
639
639
|
key: 0,
|
|
640
640
|
class: je(o.value)
|
|
641
641
|
}, [
|
|
642
|
-
|
|
643
|
-
l.title ? (de(), ve("h2", Vh,
|
|
642
|
+
We(l.$slots, "header", {}, () => [
|
|
643
|
+
l.title ? (de(), ve("h2", Vh, Ke(l.title), 1)) : Xe("", !0)
|
|
644
644
|
])
|
|
645
645
|
], 2)) : Xe("", !0),
|
|
646
646
|
l.noBody ? Xe("", !0) : (de(), ve("div", {
|
|
647
647
|
key: 1,
|
|
648
648
|
class: je(s.value)
|
|
649
649
|
}, [
|
|
650
|
-
|
|
650
|
+
We(l.$slots, "body")
|
|
651
651
|
], 2))
|
|
652
|
-
], 10,
|
|
652
|
+
], 10, Hh));
|
|
653
653
|
}
|
|
654
654
|
}), jh = { key: 0 }, Wh = { class: "bd-collapsable-card__actions" }, Kh = ["data-bs-target"], Gh = /* @__PURE__ */ Be({
|
|
655
655
|
__name: "BDCollapsableCard",
|
|
@@ -693,9 +693,9 @@ const Uh = ["id"], Vh = { key: 0 }, wu = /* @__PURE__ */ Be({
|
|
|
693
693
|
"body-class": l.value
|
|
694
694
|
}, {
|
|
695
695
|
header: dt(() => [
|
|
696
|
-
a.title ? (de(), ve("h2", jh,
|
|
696
|
+
a.title ? (de(), ve("h2", jh, Ke(a.title), 1)) : Xe("", !0),
|
|
697
697
|
ue("div", Wh, [
|
|
698
|
-
|
|
698
|
+
We(a.$slots, "action"),
|
|
699
699
|
!a.disabled && a.visible ? (de(), ve("button", {
|
|
700
700
|
key: 0,
|
|
701
701
|
class: je(["btn btn-white btn-caret", o.value]),
|
|
@@ -704,12 +704,12 @@ const Uh = ["id"], Vh = { key: 0 }, wu = /* @__PURE__ */ Be({
|
|
|
704
704
|
"data-bs-target": `.${i.value}`,
|
|
705
705
|
"aria-expanded": "true"
|
|
706
706
|
}, [
|
|
707
|
-
|
|
707
|
+
He(Ee(uu))
|
|
708
708
|
], 10, Kh)) : Xe("", !0)
|
|
709
709
|
])
|
|
710
710
|
]),
|
|
711
711
|
body: dt(() => [
|
|
712
|
-
|
|
712
|
+
We(a.$slots, "body")
|
|
713
713
|
]),
|
|
714
714
|
_: 3
|
|
715
715
|
}, 8, ["title", "header-class", "body-class"]));
|
|
@@ -761,7 +761,7 @@ const Uh = ["id"], Vh = { key: 0 }, wu = /* @__PURE__ */ Be({
|
|
|
761
761
|
for: l,
|
|
762
762
|
id: o,
|
|
763
763
|
class: je(["form-label", f.labelClass])
|
|
764
|
-
},
|
|
764
|
+
}, Ke(f.label), 3)) : Xe("", !0),
|
|
765
765
|
ue("div", {
|
|
766
766
|
class: je(f.formFieldClass)
|
|
767
767
|
}, [
|
|
@@ -777,8 +777,8 @@ const Uh = ["id"], Vh = { key: 0 }, wu = /* @__PURE__ */ Be({
|
|
|
777
777
|
onBlur: h[2] || (h[2] = (p) => f.$emit("blur")),
|
|
778
778
|
onKeydown: h[3] || (h[3] = Of((p) => f.$emit("enter"), ["enter"]))
|
|
779
779
|
}), null, 16, Jh),
|
|
780
|
-
|
|
781
|
-
|
|
780
|
+
We(f.$slots, "default"),
|
|
781
|
+
He(Ee(ma), {
|
|
782
782
|
text: f.invalidFeedbackText,
|
|
783
783
|
class: je(f.invalidFeedbackClass),
|
|
784
784
|
state: f.state,
|
|
@@ -800,11 +800,11 @@ const Uh = ["id"], Vh = { key: 0 }, wu = /* @__PURE__ */ Be({
|
|
|
800
800
|
key: 0,
|
|
801
801
|
for: e.labelForId,
|
|
802
802
|
class: "form-label"
|
|
803
|
-
},
|
|
803
|
+
}, Ke(e.label), 9, Xh)) : Xe("", !0),
|
|
804
804
|
ue("div", {
|
|
805
805
|
class: je(["input-group bd-input-group", Ee(t).class])
|
|
806
806
|
}, [
|
|
807
|
-
|
|
807
|
+
We(r.$slots, "default")
|
|
808
808
|
], 2)
|
|
809
809
|
], 64));
|
|
810
810
|
}
|
|
@@ -816,8 +816,8 @@ const Uh = ["id"], Vh = { key: 0 }, wu = /* @__PURE__ */ Be({
|
|
|
816
816
|
},
|
|
817
817
|
setup(n) {
|
|
818
818
|
return (e, t) => (de(), ve("div", Qh, [
|
|
819
|
-
|
|
820
|
-
Sn(" " +
|
|
819
|
+
He(Ee(fa)),
|
|
820
|
+
Sn(" " + Ke(e.text), 1)
|
|
821
821
|
]));
|
|
822
822
|
}
|
|
823
823
|
}), qh = /* @__PURE__ */ Be({
|
|
@@ -831,7 +831,7 @@ const Uh = ["id"], Vh = { key: 0 }, wu = /* @__PURE__ */ Be({
|
|
|
831
831
|
role: "status",
|
|
832
832
|
class: je(t.value)
|
|
833
833
|
}, [
|
|
834
|
-
|
|
834
|
+
We(r.$slots, "default")
|
|
835
835
|
], 2));
|
|
836
836
|
}
|
|
837
837
|
}), _h = ["onSubmit", "onReset"], em = /* @__PURE__ */ Be({
|
|
@@ -848,7 +848,7 @@ const Uh = ["id"], Vh = { key: 0 }, wu = /* @__PURE__ */ Be({
|
|
|
848
848
|
onSubmit: dl(t, ["prevent"]),
|
|
849
849
|
onReset: dl(r, ["prevent"])
|
|
850
850
|
}, [
|
|
851
|
-
|
|
851
|
+
We(i.$slots, "default")
|
|
852
852
|
], 40, _h));
|
|
853
853
|
}
|
|
854
854
|
}), tm = {
|
|
@@ -865,7 +865,7 @@ const Uh = ["id"], Vh = { key: 0 }, wu = /* @__PURE__ */ Be({
|
|
|
865
865
|
emits: ["click", "update:modelValue"],
|
|
866
866
|
setup(n, { emit: e }) {
|
|
867
867
|
const t = n, r = dr(t, "modelValue", e), i = Cn(Math.ceil(t.totalRows / t.rowsPerPage)), o = Cn([]);
|
|
868
|
-
|
|
868
|
+
Un([() => t.totalRows, () => t.rowsPerPage], () => {
|
|
869
869
|
i.value = Math.ceil(t.totalRows / t.rowsPerPage), o.value = a();
|
|
870
870
|
}), gi(() => {
|
|
871
871
|
o.value = a();
|
|
@@ -911,7 +911,7 @@ const Uh = ["id"], Vh = { key: 0 }, wu = /* @__PURE__ */ Be({
|
|
|
911
911
|
onClick: l,
|
|
912
912
|
"data-page": Ee(r) - 1
|
|
913
913
|
}, [
|
|
914
|
-
|
|
914
|
+
He(Ee(fu))
|
|
915
915
|
], 8, rm)
|
|
916
916
|
], 512), [
|
|
917
917
|
[fl, Ee(r) > 1]
|
|
@@ -924,7 +924,7 @@ const Uh = ["id"], Vh = { key: 0 }, wu = /* @__PURE__ */ Be({
|
|
|
924
924
|
class: "page-link d-flex justify-content-center align-items-center",
|
|
925
925
|
onClick: l,
|
|
926
926
|
"data-page": d
|
|
927
|
-
},
|
|
927
|
+
}, Ke(d), 9, im)
|
|
928
928
|
], 2))), 128)),
|
|
929
929
|
ei(ue("li", om, [
|
|
930
930
|
ue("a", {
|
|
@@ -933,7 +933,7 @@ const Uh = ["id"], Vh = { key: 0 }, wu = /* @__PURE__ */ Be({
|
|
|
933
933
|
onClick: l,
|
|
934
934
|
"data-page": Ee(r) + 1
|
|
935
935
|
}, [
|
|
936
|
-
|
|
936
|
+
He(Ee(du))
|
|
937
937
|
], 8, sm)
|
|
938
938
|
], 512), [
|
|
939
939
|
[fl, Ee(r) < i.value]
|
|
@@ -959,7 +959,7 @@ const Uh = ["id"], Vh = { key: 0 }, wu = /* @__PURE__ */ Be({
|
|
|
959
959
|
"is-invalid": t.state === !1,
|
|
960
960
|
[`form-select-${t.size}`]: ["xs", "sm", "lg"].includes(t.size)
|
|
961
961
|
}));
|
|
962
|
-
|
|
962
|
+
Un(() => t.autofocus, (c) => {
|
|
963
963
|
c && (o.value = !0);
|
|
964
964
|
});
|
|
965
965
|
const l = (c) => {
|
|
@@ -976,11 +976,11 @@ const Uh = ["id"], Vh = { key: 0 }, wu = /* @__PURE__ */ Be({
|
|
|
976
976
|
onInput: l,
|
|
977
977
|
onChange: a
|
|
978
978
|
}, [
|
|
979
|
-
|
|
979
|
+
We(c.$slots, "first", {}, () => [
|
|
980
980
|
(de(!0), ve(mi, null, iu(t.options, (d) => (de(), ve("option", {
|
|
981
981
|
value: d.value,
|
|
982
982
|
key: d.value
|
|
983
|
-
},
|
|
983
|
+
}, Ke(d.text), 9, cm))), 128))
|
|
984
984
|
])
|
|
985
985
|
], 42, lm)), [
|
|
986
986
|
[If, Ee(r)]
|
|
@@ -1025,9 +1025,9 @@ const Uh = ["id"], Vh = { key: 0 }, wu = /* @__PURE__ */ Be({
|
|
|
1025
1025
|
[Rf, Ee(r)]
|
|
1026
1026
|
]),
|
|
1027
1027
|
ue("label", fm, [
|
|
1028
|
-
|
|
1028
|
+
We(a.$slots, "default")
|
|
1029
1029
|
]),
|
|
1030
|
-
|
|
1030
|
+
We(a.$slots, "last")
|
|
1031
1031
|
], 2));
|
|
1032
1032
|
}
|
|
1033
1033
|
}), hm = {
|
|
@@ -1050,17 +1050,17 @@ const Uh = ["id"], Vh = { key: 0 }, wu = /* @__PURE__ */ Be({
|
|
|
1050
1050
|
onClick: r
|
|
1051
1051
|
}, [
|
|
1052
1052
|
ue("header", null, [
|
|
1053
|
-
|
|
1054
|
-
ue("h5", null,
|
|
1053
|
+
We(i.$slots, "header", {}, () => [
|
|
1054
|
+
ue("h5", null, Ke(t.title), 1)
|
|
1055
1055
|
])
|
|
1056
1056
|
]),
|
|
1057
1057
|
t.hideBody ? Xe("", !0) : (de(), ve("div", hm, [
|
|
1058
|
-
|
|
1059
|
-
Sn(
|
|
1058
|
+
We(i.$slots, "default", {}, () => [
|
|
1059
|
+
Sn(Ke(t.text), 1)
|
|
1060
1060
|
])
|
|
1061
1061
|
])),
|
|
1062
1062
|
t.hideFooter ? Xe("", !0) : (de(), ve("footer", mm, [
|
|
1063
|
-
|
|
1063
|
+
We(i.$slots, "footer")
|
|
1064
1064
|
]))
|
|
1065
1065
|
]));
|
|
1066
1066
|
}
|
|
@@ -1100,11 +1100,11 @@ const Uh = ["id"], Vh = { key: 0 }, wu = /* @__PURE__ */ Be({
|
|
|
1100
1100
|
ym,
|
|
1101
1101
|
ue("div", bm, [
|
|
1102
1102
|
r.value ? (de(), vt(Ee(pa), { key: 0 })) : (de(), vt(Ee(da), { key: 1 })),
|
|
1103
|
-
ue("h5", null,
|
|
1103
|
+
ue("h5", null, Ke(e.title), 1),
|
|
1104
1104
|
xm
|
|
1105
1105
|
]),
|
|
1106
1106
|
ue("div", Sm, [
|
|
1107
|
-
ue("span", null,
|
|
1107
|
+
ue("span", null, Ke(e.text), 1)
|
|
1108
1108
|
])
|
|
1109
1109
|
], 10, vm)
|
|
1110
1110
|
], 16));
|
|
@@ -1123,13 +1123,13 @@ const Uh = ["id"], Vh = { key: 0 }, wu = /* @__PURE__ */ Be({
|
|
|
1123
1123
|
e("click");
|
|
1124
1124
|
};
|
|
1125
1125
|
return (i, o) => (de(), ve("li", wn({ class: "bd-dropdown-item" }, i.$attrs), [
|
|
1126
|
-
|
|
1126
|
+
He(ha, wn({
|
|
1127
1127
|
class: "dropdown-item",
|
|
1128
1128
|
onClick: r
|
|
1129
1129
|
}, t), {
|
|
1130
1130
|
default: dt(() => [
|
|
1131
|
-
|
|
1132
|
-
Sn(
|
|
1131
|
+
We(i.$slots, "default", {}, () => [
|
|
1132
|
+
Sn(Ke(t.text), 1)
|
|
1133
1133
|
])
|
|
1134
1134
|
]),
|
|
1135
1135
|
_: 3
|
|
@@ -1229,7 +1229,7 @@ var Cu = { exports: {} };
|
|
|
1229
1229
|
260: (
|
|
1230
1230
|
/***/
|
|
1231
1231
|
function(s, l, a) {
|
|
1232
|
-
var c = a(4019), u = a(9781), d = a(7854), f = a(111), h = a(6656), p = a(648), m = a(8880), g = a(1320), x = a(3070).f, E = a(9518), w = a(7674), y = a(5112), R = a(9711), C = d.Int8Array, F = C && C.prototype, z = d.Uint8ClampedArray, $ = z && z.prototype, B = C && E(C), P = F && E(F), L = Object.prototype,
|
|
1232
|
+
var c = a(4019), u = a(9781), d = a(7854), f = a(111), h = a(6656), p = a(648), m = a(8880), g = a(1320), x = a(3070).f, E = a(9518), w = a(7674), y = a(5112), R = a(9711), C = d.Int8Array, F = C && C.prototype, z = d.Uint8ClampedArray, $ = z && z.prototype, B = C && E(C), P = F && E(F), L = Object.prototype, H = L.isPrototypeOf, J = y("toStringTag"), X = R("TYPED_ARRAY_TAG"), Z = c && !!w && p(d.opera) !== "Opera", ne = !1, j, ae = {
|
|
1233
1233
|
Int8Array: 1,
|
|
1234
1234
|
Uint8Array: 1,
|
|
1235
1235
|
Uint8ClampedArray: 1,
|
|
@@ -1258,13 +1258,13 @@ var Cu = { exports: {} };
|
|
|
1258
1258
|
throw TypeError("Target is not a typed array");
|
|
1259
1259
|
}, Oe = function(ye) {
|
|
1260
1260
|
if (w) {
|
|
1261
|
-
if (
|
|
1261
|
+
if (H.call(B, ye))
|
|
1262
1262
|
return ye;
|
|
1263
1263
|
} else
|
|
1264
1264
|
for (var k in ae)
|
|
1265
1265
|
if (h(ae, j)) {
|
|
1266
1266
|
var O = d[k];
|
|
1267
|
-
if (O && (ye === O ||
|
|
1267
|
+
if (O && (ye === O || H.call(O, ye)))
|
|
1268
1268
|
return ye;
|
|
1269
1269
|
}
|
|
1270
1270
|
throw TypeError("Target is not a typed array constructor");
|
|
@@ -1331,7 +1331,7 @@ var Cu = { exports: {} };
|
|
|
1331
1331
|
3331: (
|
|
1332
1332
|
/***/
|
|
1333
1333
|
function(s, l, a) {
|
|
1334
|
-
var c = a(7854), u = a(9781), d = a(4019), f = a(8880), h = a(2248), p = a(7293), m = a(5787), g = a(9958), x = a(7466), E = a(7067), w = a(1179), y = a(9518), R = a(7674), C = a(8006).f, F = a(3070).f, z = a(1285), $ = a(8003), B = a(9909), P = B.get, L = B.set,
|
|
1334
|
+
var c = a(7854), u = a(9781), d = a(4019), f = a(8880), h = a(2248), p = a(7293), m = a(5787), g = a(9958), x = a(7466), E = a(7067), w = a(1179), y = a(9518), R = a(7674), C = a(8006).f, F = a(3070).f, z = a(1285), $ = a(8003), B = a(9909), P = B.get, L = B.set, H = "ArrayBuffer", J = "DataView", X = "prototype", Z = "Wrong length", ne = "Wrong index", j = c[H], ae = j, fe = c[J], be = fe && fe[X], Ce = Object.prototype, xe = c.RangeError, Oe = w.pack, ke = w.unpack, Me = function(K) {
|
|
1335
1335
|
return [K & 255];
|
|
1336
1336
|
}, ye = function(K) {
|
|
1337
1337
|
return [K & 255, K >> 8 & 255];
|
|
@@ -1351,18 +1351,18 @@ var Cu = { exports: {} };
|
|
|
1351
1351
|
var ge = E(q), De = P(K);
|
|
1352
1352
|
if (ge + G > De.byteLength)
|
|
1353
1353
|
throw xe(ne);
|
|
1354
|
-
var Ve = P(De.buffer).bytes,
|
|
1354
|
+
var Ve = P(De.buffer).bytes, Ue = ge + De.byteOffset, Ne = Ve.slice(Ue, Ue + G);
|
|
1355
1355
|
return le ? Ne : Ne.reverse();
|
|
1356
1356
|
}, M = function(K, G, q, le, ge, De) {
|
|
1357
|
-
var Ve = E(q),
|
|
1358
|
-
if (Ve + G >
|
|
1357
|
+
var Ve = E(q), Ue = P(K);
|
|
1358
|
+
if (Ve + G > Ue.byteLength)
|
|
1359
1359
|
throw xe(ne);
|
|
1360
|
-
for (var Ne = P(
|
|
1360
|
+
for (var Ne = P(Ue.buffer).bytes, _e = Ve + Ue.byteOffset, wt = le(+ge), ct = 0; ct < G; ct++)
|
|
1361
1361
|
Ne[_e + ct] = wt[De ? ct : G - ct - 1];
|
|
1362
1362
|
};
|
|
1363
1363
|
if (!d)
|
|
1364
1364
|
ae = function(G) {
|
|
1365
|
-
m(this, ae,
|
|
1365
|
+
m(this, ae, H);
|
|
1366
1366
|
var q = E(G);
|
|
1367
1367
|
L(this, {
|
|
1368
1368
|
bytes: z.call(new Array(q), 0),
|
|
@@ -1438,13 +1438,13 @@ var Cu = { exports: {} };
|
|
|
1438
1438
|
}) || !p(function() {
|
|
1439
1439
|
new j(-1);
|
|
1440
1440
|
}) || p(function() {
|
|
1441
|
-
return new j(), new j(1.5), new j(NaN), j.name !=
|
|
1441
|
+
return new j(), new j(1.5), new j(NaN), j.name != H;
|
|
1442
1442
|
})) {
|
|
1443
1443
|
ae = function(G) {
|
|
1444
1444
|
return m(this, ae), new j(E(G));
|
|
1445
1445
|
};
|
|
1446
|
-
for (var I = ae[X] = j[X], D = C(j), N = 0,
|
|
1447
|
-
(
|
|
1446
|
+
for (var I = ae[X] = j[X], D = C(j), N = 0, U; D.length > N; )
|
|
1447
|
+
(U = D[N++]) in ae || f(ae, U, j[U]);
|
|
1448
1448
|
I.constructor = ae;
|
|
1449
1449
|
}
|
|
1450
1450
|
R && y(be) !== Ce && R(be, Ce);
|
|
@@ -1458,7 +1458,7 @@ var Cu = { exports: {} };
|
|
|
1458
1458
|
}
|
|
1459
1459
|
}, { unsafe: !0 });
|
|
1460
1460
|
}
|
|
1461
|
-
$(ae,
|
|
1461
|
+
$(ae, H), $(fe, J), s.exports = {
|
|
1462
1462
|
ArrayBuffer: ae,
|
|
1463
1463
|
DataView: fe
|
|
1464
1464
|
};
|
|
@@ -1505,9 +1505,9 @@ var Cu = { exports: {} };
|
|
|
1505
1505
|
function(s, l, a) {
|
|
1506
1506
|
var c = a(9974), u = a(7908), d = a(3411), f = a(7659), h = a(7466), p = a(6135), m = a(1246);
|
|
1507
1507
|
s.exports = function(x) {
|
|
1508
|
-
var E = u(x), w = typeof this == "function" ? this : Array, y = arguments.length, R = y > 1 ? arguments[1] : void 0, C = R !== void 0, F = m(E), z = 0, $, B, P, L,
|
|
1508
|
+
var E = u(x), w = typeof this == "function" ? this : Array, y = arguments.length, R = y > 1 ? arguments[1] : void 0, C = R !== void 0, F = m(E), z = 0, $, B, P, L, H, J;
|
|
1509
1509
|
if (C && (R = c(R, y > 2 ? arguments[2] : void 0, 2)), F != null && !(w == Array && f(F)))
|
|
1510
|
-
for (L = F.call(E),
|
|
1510
|
+
for (L = F.call(E), H = L.next, B = new w(); !(P = H.call(L)).done; z++)
|
|
1511
1511
|
J = C ? d(L, R, [P.value, z], !0) : P.value, p(B, z, J);
|
|
1512
1512
|
else
|
|
1513
1513
|
for ($ = h(E.length), B = new w($); $ > z; z++)
|
|
@@ -1551,8 +1551,8 @@ var Cu = { exports: {} };
|
|
|
1551
1551
|
var c = a(9974), u = a(8361), d = a(7908), f = a(7466), h = a(5417), p = [].push, m = function(g) {
|
|
1552
1552
|
var x = g == 1, E = g == 2, w = g == 3, y = g == 4, R = g == 6, C = g == 7, F = g == 5 || R;
|
|
1553
1553
|
return function(z, $, B, P) {
|
|
1554
|
-
for (var L = d(z),
|
|
1555
|
-
if ((F || Z in
|
|
1554
|
+
for (var L = d(z), H = u(L), J = c($, B, 3), X = f(H.length), Z = 0, ne = P || h, j = x ? ne(z, X) : E || C ? ne(z, 0) : void 0, ae, fe; X > Z; Z++)
|
|
1555
|
+
if ((F || Z in H) && (ae = H[Z], fe = J(ae, Z, L), g))
|
|
1556
1556
|
if (x)
|
|
1557
1557
|
j[Z] = fe;
|
|
1558
1558
|
else if (fe)
|
|
@@ -1857,8 +1857,8 @@ var Cu = { exports: {} };
|
|
|
1857
1857
|
var c = a(2109), u = a(4994), d = a(9518), f = a(7674), h = a(8003), p = a(8880), m = a(1320), g = a(5112), x = a(1913), E = a(7497), w = a(3383), y = w.IteratorPrototype, R = w.BUGGY_SAFARI_ITERATORS, C = g("iterator"), F = "keys", z = "values", $ = "entries", B = function() {
|
|
1858
1858
|
return this;
|
|
1859
1859
|
};
|
|
1860
|
-
s.exports = function(P, L,
|
|
1861
|
-
u(
|
|
1860
|
+
s.exports = function(P, L, H, J, X, Z, ne) {
|
|
1861
|
+
u(H, L, J);
|
|
1862
1862
|
var j = function(k) {
|
|
1863
1863
|
if (k === X && xe)
|
|
1864
1864
|
return xe;
|
|
@@ -1867,19 +1867,19 @@ var Cu = { exports: {} };
|
|
|
1867
1867
|
switch (k) {
|
|
1868
1868
|
case F:
|
|
1869
1869
|
return function() {
|
|
1870
|
-
return new
|
|
1870
|
+
return new H(this, k);
|
|
1871
1871
|
};
|
|
1872
1872
|
case z:
|
|
1873
1873
|
return function() {
|
|
1874
|
-
return new
|
|
1874
|
+
return new H(this, k);
|
|
1875
1875
|
};
|
|
1876
1876
|
case $:
|
|
1877
1877
|
return function() {
|
|
1878
|
-
return new
|
|
1878
|
+
return new H(this, k);
|
|
1879
1879
|
};
|
|
1880
1880
|
}
|
|
1881
1881
|
return function() {
|
|
1882
|
-
return new
|
|
1882
|
+
return new H(this);
|
|
1883
1883
|
};
|
|
1884
1884
|
}, ae = L + " Iterator", fe = !1, be = P.prototype, Ce = be[C] || be["@@iterator"] || X && be[X], xe = !R && Ce || j(X), Oe = L == "Array" && be.entries || Ce, ke, Me, ye;
|
|
1885
1885
|
if (Oe && (ke = d(Oe.call(new P())), y !== Object.prototype && ke.next && (!x && d(ke) !== y && (f ? f(ke, y) : typeof ke[C] != "function" && p(ke, C, B)), h(ke, ae, !0, !0), x && (E[ae] = B))), X == z && Ce && Ce.name !== z && (fe = !0, xe = function() {
|
|
@@ -2065,8 +2065,8 @@ var Cu = { exports: {} };
|
|
|
2065
2065
|
}, {
|
|
2066
2066
|
REPLACE_KEEPS_$0: g,
|
|
2067
2067
|
REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: E
|
|
2068
|
-
}),
|
|
2069
|
-
c(String.prototype, y,
|
|
2068
|
+
}), H = L[0], J = L[1];
|
|
2069
|
+
c(String.prototype, y, H), c(
|
|
2070
2070
|
RegExp.prototype,
|
|
2071
2071
|
z,
|
|
2072
2072
|
R == 2 ? function(X, Z) {
|
|
@@ -2313,17 +2313,17 @@ var Cu = { exports: {} };
|
|
|
2313
2313
|
var c = a(8536), u = a(7854), d = a(111), f = a(8880), h = a(6656), p = a(5465), m = a(6200), g = a(3501), x = u.WeakMap, E, w, y, R = function(L) {
|
|
2314
2314
|
return y(L) ? w(L) : E(L, {});
|
|
2315
2315
|
}, C = function(L) {
|
|
2316
|
-
return function(
|
|
2316
|
+
return function(H) {
|
|
2317
2317
|
var J;
|
|
2318
|
-
if (!d(
|
|
2318
|
+
if (!d(H) || (J = w(H)).type !== L)
|
|
2319
2319
|
throw TypeError("Incompatible receiver, " + L + " required");
|
|
2320
2320
|
return J;
|
|
2321
2321
|
};
|
|
2322
2322
|
};
|
|
2323
2323
|
if (c) {
|
|
2324
2324
|
var F = p.state || (p.state = new x()), z = F.get, $ = F.has, B = F.set;
|
|
2325
|
-
E = function(L,
|
|
2326
|
-
return
|
|
2325
|
+
E = function(L, H) {
|
|
2326
|
+
return H.facade = L, B.call(F, L, H), H;
|
|
2327
2327
|
}, w = function(L) {
|
|
2328
2328
|
return z.call(F, L) || {};
|
|
2329
2329
|
}, y = function(L) {
|
|
@@ -2331,8 +2331,8 @@ var Cu = { exports: {} };
|
|
|
2331
2331
|
};
|
|
2332
2332
|
} else {
|
|
2333
2333
|
var P = m("state");
|
|
2334
|
-
g[P] = !0, E = function(L,
|
|
2335
|
-
return
|
|
2334
|
+
g[P] = !0, E = function(L, H) {
|
|
2335
|
+
return H.facade = L, f(L, P, H), H;
|
|
2336
2336
|
}, w = function(L) {
|
|
2337
2337
|
return h(L, P) ? L[P] : {};
|
|
2338
2338
|
}, y = function(L) {
|
|
@@ -2498,8 +2498,8 @@ var Cu = { exports: {} };
|
|
|
2498
2498
|
}), g({}, E)[y] != 7 || d(g({}, w)).join("") != R;
|
|
2499
2499
|
}) ? function(w, y) {
|
|
2500
2500
|
for (var R = p(w), C = arguments.length, F = 1, z = f.f, $ = h.f; C > F; )
|
|
2501
|
-
for (var B = m(arguments[F++]), P = z ? d(B).concat(z(B)) : d(B), L = P.length,
|
|
2502
|
-
J = P[
|
|
2501
|
+
for (var B = m(arguments[F++]), P = z ? d(B).concat(z(B)) : d(B), L = P.length, H = 0, J; L > H; )
|
|
2502
|
+
J = P[H++], (!c || $.call(B, J)) && (R[J] = B[J]);
|
|
2503
2503
|
return R;
|
|
2504
2504
|
} : g;
|
|
2505
2505
|
}
|
|
@@ -2516,8 +2516,8 @@ var Cu = { exports: {} };
|
|
|
2516
2516
|
var L = P.parentWindow.Object;
|
|
2517
2517
|
return P = null, L;
|
|
2518
2518
|
}, z = function() {
|
|
2519
|
-
var P = p("iframe"), L = "java" + w + ":",
|
|
2520
|
-
return P.style.display = "none", h.appendChild(P), P.src = String(L),
|
|
2519
|
+
var P = p("iframe"), L = "java" + w + ":", H;
|
|
2520
|
+
return P.style.display = "none", h.appendChild(P), P.src = String(L), H = P.contentWindow.document, H.open(), H.write(C("document.F=Object")), H.close(), H.F;
|
|
2521
2521
|
}, $, B = function() {
|
|
2522
2522
|
try {
|
|
2523
2523
|
$ = document.domain && new ActiveXObject("htmlfile");
|
|
@@ -2528,9 +2528,9 @@ var Cu = { exports: {} };
|
|
|
2528
2528
|
delete B[E][d[P]];
|
|
2529
2529
|
return B();
|
|
2530
2530
|
};
|
|
2531
|
-
f[y] = !0, s.exports = Object.create || function(L,
|
|
2531
|
+
f[y] = !0, s.exports = Object.create || function(L, H) {
|
|
2532
2532
|
var J;
|
|
2533
|
-
return L !== null ? (R[E] = c(L), J = new R(), R[E] = null, J[y] = L) : J = B(),
|
|
2533
|
+
return L !== null ? (R[E] = c(L), J = new R(), R[E] = null, J[y] = L) : J = B(), H === void 0 ? J : u(J, H);
|
|
2534
2534
|
};
|
|
2535
2535
|
}
|
|
2536
2536
|
),
|
|
@@ -2747,9 +2747,9 @@ var Cu = { exports: {} };
|
|
|
2747
2747
|
return d.call(E, "a"), d.call(w, "a"), E.lastIndex !== 0 || w.lastIndex !== 0;
|
|
2748
2748
|
}(), m = u.UNSUPPORTED_Y || u.BROKEN_CARET, g = /()??/.exec("")[1] !== void 0, x = p || g || m;
|
|
2749
2749
|
x && (h = function(w) {
|
|
2750
|
-
var y = this, R, C, F, z, $ = m && y.sticky, B = c.call(y), P = y.source, L = 0,
|
|
2751
|
-
return $ && (B = B.replace("y", ""), B.indexOf("g") === -1 && (B += "g"),
|
|
2752
|
-
`) && (P = "(?: " + P + ")",
|
|
2750
|
+
var y = this, R, C, F, z, $ = m && y.sticky, B = c.call(y), P = y.source, L = 0, H = w;
|
|
2751
|
+
return $ && (B = B.replace("y", ""), B.indexOf("g") === -1 && (B += "g"), H = String(w).slice(y.lastIndex), y.lastIndex > 0 && (!y.multiline || y.multiline && w[y.lastIndex - 1] !== `
|
|
2752
|
+
`) && (P = "(?: " + P + ")", H = " " + H, L++), C = new RegExp("^(?:" + P + ")", B)), g && (C = new RegExp("^" + P + "$(?!\\s)", B)), p && (R = y.lastIndex), F = d.call($ ? C : y, H), $ ? F ? (F.input = F.input.slice(L), F[0] = F[0].slice(L), F.index = y.lastIndex, y.lastIndex += F[0].length) : y.lastIndex = 0 : p && F && (y.lastIndex = y.global ? F.index + F[0].length : R), g && F && F.length > 1 && f.call(F[0], C, function() {
|
|
2753
2753
|
for (z = 1; z < arguments.length - 2; z++)
|
|
2754
2754
|
arguments[z] === void 0 && (F[z] = void 0);
|
|
2755
2755
|
}), F;
|
|
@@ -2904,9 +2904,9 @@ var Cu = { exports: {} };
|
|
|
2904
2904
|
/***/
|
|
2905
2905
|
function(s) {
|
|
2906
2906
|
var l = 2147483647, a = 36, c = 1, u = 26, d = 38, f = 700, h = 72, p = 128, m = "-", g = /[^\0-\u007E]/, x = /[.\u3002\uFF0E\uFF61]/g, E = "Overflow: input needs wider integers to process", w = a - c, y = Math.floor, R = String.fromCharCode, C = function(B) {
|
|
2907
|
-
for (var P = [], L = 0,
|
|
2907
|
+
for (var P = [], L = 0, H = B.length; L < H; ) {
|
|
2908
2908
|
var J = B.charCodeAt(L++);
|
|
2909
|
-
if (J >= 55296 && J <= 56319 && L <
|
|
2909
|
+
if (J >= 55296 && J <= 56319 && L < H) {
|
|
2910
2910
|
var X = B.charCodeAt(L++);
|
|
2911
2911
|
(X & 64512) == 56320 ? P.push(((J & 1023) << 10) + (X & 1023) + 65536) : (P.push(J), L--);
|
|
2912
2912
|
} else
|
|
@@ -2916,28 +2916,28 @@ var Cu = { exports: {} };
|
|
|
2916
2916
|
}, F = function(B) {
|
|
2917
2917
|
return B + 22 + 75 * (B < 26);
|
|
2918
2918
|
}, z = function(B, P, L) {
|
|
2919
|
-
var
|
|
2920
|
-
for (B = L ? y(B / f) : B >> 1, B += y(B / P); B > w * u >> 1;
|
|
2919
|
+
var H = 0;
|
|
2920
|
+
for (B = L ? y(B / f) : B >> 1, B += y(B / P); B > w * u >> 1; H += a)
|
|
2921
2921
|
B = y(B / w);
|
|
2922
|
-
return y(
|
|
2922
|
+
return y(H + (w + 1) * B / (B + d));
|
|
2923
2923
|
}, $ = function(B) {
|
|
2924
2924
|
var P = [];
|
|
2925
2925
|
B = C(B);
|
|
2926
|
-
var L = B.length,
|
|
2926
|
+
var L = B.length, H = p, J = 0, X = h, Z, ne;
|
|
2927
2927
|
for (Z = 0; Z < B.length; Z++)
|
|
2928
2928
|
ne = B[Z], ne < 128 && P.push(R(ne));
|
|
2929
2929
|
var j = P.length, ae = j;
|
|
2930
2930
|
for (j && P.push(m); ae < L; ) {
|
|
2931
2931
|
var fe = l;
|
|
2932
2932
|
for (Z = 0; Z < B.length; Z++)
|
|
2933
|
-
ne = B[Z], ne >=
|
|
2933
|
+
ne = B[Z], ne >= H && ne < fe && (fe = ne);
|
|
2934
2934
|
var be = ae + 1;
|
|
2935
|
-
if (fe -
|
|
2935
|
+
if (fe - H > y((l - J) / be))
|
|
2936
2936
|
throw RangeError(E);
|
|
2937
|
-
for (J += (fe -
|
|
2938
|
-
if (ne = B[Z], ne <
|
|
2937
|
+
for (J += (fe - H) * be, H = fe, Z = 0; Z < B.length; Z++) {
|
|
2938
|
+
if (ne = B[Z], ne < H && ++J > l)
|
|
2939
2939
|
throw RangeError(E);
|
|
2940
|
-
if (ne ==
|
|
2940
|
+
if (ne == H) {
|
|
2941
2941
|
for (var Ce = J, xe = a; ; xe += a) {
|
|
2942
2942
|
var Oe = xe <= X ? c : xe >= X + u ? u : xe - X;
|
|
2943
2943
|
if (Ce < Oe)
|
|
@@ -2948,14 +2948,14 @@ var Cu = { exports: {} };
|
|
|
2948
2948
|
P.push(R(F(Ce))), X = z(J, be, ae == j), J = 0, ++ae;
|
|
2949
2949
|
}
|
|
2950
2950
|
}
|
|
2951
|
-
++J, ++
|
|
2951
|
+
++J, ++H;
|
|
2952
2952
|
}
|
|
2953
2953
|
return P.join("");
|
|
2954
2954
|
};
|
|
2955
2955
|
s.exports = function(B) {
|
|
2956
|
-
var P = [], L = B.toLowerCase().replace(x, ".").split("."),
|
|
2957
|
-
for (
|
|
2958
|
-
J = L[
|
|
2956
|
+
var P = [], L = B.toLowerCase().replace(x, ".").split("."), H, J;
|
|
2957
|
+
for (H = 0; H < L.length; H++)
|
|
2958
|
+
J = L[H], P.push(g.test(J) ? "xn--" + $(J) : J);
|
|
2959
2959
|
return P.join(".");
|
|
2960
2960
|
};
|
|
2961
2961
|
}
|
|
@@ -3114,7 +3114,7 @@ var Cu = { exports: {} };
|
|
|
3114
3114
|
9843: (
|
|
3115
3115
|
/***/
|
|
3116
3116
|
function(s, l, a) {
|
|
3117
|
-
var c = a(2109), u = a(7854), d = a(9781), f = a(3832), h = a(260), p = a(3331), m = a(5787), g = a(9114), x = a(8880), E = a(7466), w = a(7067), y = a(4590), R = a(7593), C = a(6656), F = a(648), z = a(111), $ = a(30), B = a(7674), P = a(8006).f, L = a(7321),
|
|
3117
|
+
var c = a(2109), u = a(7854), d = a(9781), f = a(3832), h = a(260), p = a(3331), m = a(5787), g = a(9114), x = a(8880), E = a(7466), w = a(7067), y = a(4590), R = a(7593), C = a(6656), F = a(648), z = a(111), $ = a(30), B = a(7674), P = a(8006).f, L = a(7321), H = a(2092).forEach, J = a(6340), X = a(3070), Z = a(1236), ne = a(9909), j = a(9587), ae = ne.get, fe = ne.set, be = X.f, Ce = Z.f, xe = Math.round, Oe = u.RangeError, ke = p.ArrayBuffer, Me = p.DataView, ye = h.NATIVE_ARRAY_BUFFER_VIEWS, k = h.TYPED_ARRAY_TAG, O = h.TypedArray, S = h.TypedArrayPrototype, A = h.aTypedArrayConstructor, v = h.isTypedArray, b = "BYTES_PER_ELEMENT", M = "Wrong length", I = function(K, G) {
|
|
3118
3118
|
for (var q = 0, le = G.length, ge = new (A(K))(le); le > q; )
|
|
3119
3119
|
ge[q] = G[q++];
|
|
3120
3120
|
return ge;
|
|
@@ -3125,18 +3125,18 @@ var Cu = { exports: {} };
|
|
|
3125
3125
|
}, N = function(K) {
|
|
3126
3126
|
var G;
|
|
3127
3127
|
return K instanceof ke || (G = F(K)) == "ArrayBuffer" || G == "SharedArrayBuffer";
|
|
3128
|
-
},
|
|
3128
|
+
}, U = function(K, G) {
|
|
3129
3129
|
return v(K) && typeof G != "symbol" && G in K && String(+G) == String(G);
|
|
3130
3130
|
}, W = function(G, q) {
|
|
3131
|
-
return
|
|
3131
|
+
return U(G, q = R(q, !0)) ? g(2, G[q]) : Ce(G, q);
|
|
3132
3132
|
}, V = function(G, q, le) {
|
|
3133
|
-
return
|
|
3133
|
+
return U(G, q = R(q, !0)) && z(le) && C(le, "value") && !C(le, "get") && !C(le, "set") && !le.configurable && (!C(le, "writable") || le.writable) && (!C(le, "enumerable") || le.enumerable) ? (G[q] = le.value, G) : be(G, q, le);
|
|
3134
3134
|
};
|
|
3135
3135
|
d ? (ye || (Z.f = W, X.f = V, D(S, "buffer"), D(S, "byteOffset"), D(S, "byteLength"), D(S, "length")), c({ target: "Object", stat: !0, forced: !ye }, {
|
|
3136
3136
|
getOwnPropertyDescriptor: W,
|
|
3137
3137
|
defineProperty: V
|
|
3138
3138
|
}), s.exports = function(K, G, q) {
|
|
3139
|
-
var le = K.match(/\d+$/)[0] / 8, ge = K + (q ? "Clamped" : "") + "Array", De = "get" + K, Ve = "set" + K,
|
|
3139
|
+
var le = K.match(/\d+$/)[0] / 8, ge = K + (q ? "Clamped" : "") + "Array", De = "get" + K, Ve = "set" + K, Ue = u[ge], Ne = Ue, _e = Ne && Ne.prototype, wt = {}, ct = function(oe, se) {
|
|
3140
3140
|
var Se = ae(oe);
|
|
3141
3141
|
return Se.view[De](se * le + Se.byteOffset, !0);
|
|
3142
3142
|
}, Tn = function(oe, se, Se) {
|
|
@@ -3155,13 +3155,13 @@ var Cu = { exports: {} };
|
|
|
3155
3155
|
};
|
|
3156
3156
|
ye ? f && (Ne = G(function(oe, se, Se, Te) {
|
|
3157
3157
|
return m(oe, Ne, ge), j(function() {
|
|
3158
|
-
return z(se) ? N(se) ? Te !== void 0 ? new
|
|
3158
|
+
return z(se) ? N(se) ? Te !== void 0 ? new Ue(se, y(Se, le), Te) : Se !== void 0 ? new Ue(se, y(Se, le)) : new Ue(se) : v(se) ? I(Ne, se) : L.call(Ne, se) : new Ue(w(se));
|
|
3159
3159
|
}(), oe, Ne);
|
|
3160
|
-
}), B && B(Ne, O),
|
|
3161
|
-
oe in Ne || x(Ne, oe,
|
|
3160
|
+
}), B && B(Ne, O), H(P(Ue), function(oe) {
|
|
3161
|
+
oe in Ne || x(Ne, oe, Ue[oe]);
|
|
3162
3162
|
}), Ne.prototype = _e) : (Ne = G(function(oe, se, Se, Te) {
|
|
3163
3163
|
m(oe, Ne, ge);
|
|
3164
|
-
var
|
|
3164
|
+
var Ge = 0, Ze = 0, ht, mt, it;
|
|
3165
3165
|
if (!z(se))
|
|
3166
3166
|
it = w(se), mt = it * le, ht = new ke(mt);
|
|
3167
3167
|
else if (N(se)) {
|
|
@@ -3181,11 +3181,11 @@ var Cu = { exports: {} };
|
|
|
3181
3181
|
byteLength: mt,
|
|
3182
3182
|
length: it,
|
|
3183
3183
|
view: new Me(ht)
|
|
3184
|
-
});
|
|
3185
|
-
Y(oe,
|
|
3184
|
+
}); Ge < it; )
|
|
3185
|
+
Y(oe, Ge++);
|
|
3186
3186
|
}), B && B(Ne, O), _e = Ne.prototype = $(S)), _e.constructor !== Ne && x(_e, "constructor", Ne), k && x(_e, k, ge), wt[ge] = Ne, c({
|
|
3187
3187
|
global: !0,
|
|
3188
|
-
forced: Ne !=
|
|
3188
|
+
forced: Ne != Ue,
|
|
3189
3189
|
sham: !ye
|
|
3190
3190
|
}, wt), b in Ne || x(Ne, b, le), b in _e || x(_e, b, le), J(ge);
|
|
3191
3191
|
}) : s.exports = function() {
|
|
@@ -3298,9 +3298,9 @@ var Cu = { exports: {} };
|
|
|
3298
3298
|
c({ target: "Array", proto: !0, forced: B }, {
|
|
3299
3299
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
3300
3300
|
concat: function(L) {
|
|
3301
|
-
var
|
|
3301
|
+
var H = h(this), J = g(H, 0), X = 0, Z, ne, j, ae, fe;
|
|
3302
3302
|
for (Z = -1, j = arguments.length; Z < j; Z++)
|
|
3303
|
-
if (fe = Z === -1 ?
|
|
3303
|
+
if (fe = Z === -1 ? H : arguments[Z], $(fe)) {
|
|
3304
3304
|
if (ae = p(fe.length), X + ae > R)
|
|
3305
3305
|
throw TypeError(C);
|
|
3306
3306
|
for (ne = 0; ne < ae; ne++, X++)
|
|
@@ -3379,10 +3379,10 @@ var Cu = { exports: {} };
|
|
|
3379
3379
|
var c = a(2109), u = a(111), d = a(3157), f = a(1400), h = a(7466), p = a(5656), m = a(6135), g = a(5112), x = a(1194), E = x("slice"), w = g("species"), y = [].slice, R = Math.max;
|
|
3380
3380
|
c({ target: "Array", proto: !0, forced: !E }, {
|
|
3381
3381
|
slice: function(F, z) {
|
|
3382
|
-
var $ = p(this), B = h($.length), P = f(F, B), L = f(z === void 0 ? B : z, B),
|
|
3383
|
-
if (d($) && (
|
|
3382
|
+
var $ = p(this), B = h($.length), P = f(F, B), L = f(z === void 0 ? B : z, B), H, J, X;
|
|
3383
|
+
if (d($) && (H = $.constructor, typeof H == "function" && (H === Array || d(H.prototype)) ? H = void 0 : u(H) && (H = H[w], H === null && (H = void 0)), H === Array || H === void 0))
|
|
3384
3384
|
return y.call($, P, L);
|
|
3385
|
-
for (J = new (
|
|
3385
|
+
for (J = new (H === void 0 ? Array : H)(R(L - P, 0)), X = 0; P < L; P++, X++)
|
|
3386
3386
|
P in $ && m(J, X, $[P]);
|
|
3387
3387
|
return J.length = X, J;
|
|
3388
3388
|
}
|
|
@@ -3396,22 +3396,22 @@ var Cu = { exports: {} };
|
|
|
3396
3396
|
var c = a(2109), u = a(1400), d = a(9958), f = a(7466), h = a(7908), p = a(5417), m = a(6135), g = a(1194), x = g("splice"), E = Math.max, w = Math.min, y = 9007199254740991, R = "Maximum allowed length exceeded";
|
|
3397
3397
|
c({ target: "Array", proto: !0, forced: !x }, {
|
|
3398
3398
|
splice: function(F, z) {
|
|
3399
|
-
var $ = h(this), B = f($.length), P = u(F, B), L = arguments.length,
|
|
3400
|
-
if (L === 0 ?
|
|
3399
|
+
var $ = h(this), B = f($.length), P = u(F, B), L = arguments.length, H, J, X, Z, ne, j;
|
|
3400
|
+
if (L === 0 ? H = J = 0 : L === 1 ? (H = 0, J = B - P) : (H = L - 2, J = w(E(d(z), 0), B - P)), B + H - J > y)
|
|
3401
3401
|
throw TypeError(R);
|
|
3402
3402
|
for (X = p($, J), Z = 0; Z < J; Z++)
|
|
3403
3403
|
ne = P + Z, ne in $ && m(X, Z, $[ne]);
|
|
3404
|
-
if (X.length = J,
|
|
3404
|
+
if (X.length = J, H < J) {
|
|
3405
3405
|
for (Z = P; Z < B - J; Z++)
|
|
3406
|
-
ne = Z + J, j = Z +
|
|
3407
|
-
for (Z = B; Z > B - J +
|
|
3406
|
+
ne = Z + J, j = Z + H, ne in $ ? $[j] = $[ne] : delete $[j];
|
|
3407
|
+
for (Z = B; Z > B - J + H; Z--)
|
|
3408
3408
|
delete $[Z - 1];
|
|
3409
|
-
} else if (
|
|
3409
|
+
} else if (H > J)
|
|
3410
3410
|
for (Z = B - J; Z > P; Z--)
|
|
3411
|
-
ne = Z + J - 1, j = Z +
|
|
3412
|
-
for (Z = 0; Z <
|
|
3411
|
+
ne = Z + J - 1, j = Z + H - 1, ne in $ ? $[j] = $[ne] : delete $[j];
|
|
3412
|
+
for (Z = 0; Z < H; Z++)
|
|
3413
3413
|
$[Z + P] = arguments[Z + 2];
|
|
3414
|
-
return $.length = B - J +
|
|
3414
|
+
return $.length = B - J + H, X;
|
|
3415
3415
|
}
|
|
3416
3416
|
});
|
|
3417
3417
|
}
|
|
@@ -3541,17 +3541,17 @@ var Cu = { exports: {} };
|
|
|
3541
3541
|
return [
|
|
3542
3542
|
// `String.prototype.replace` method
|
|
3543
3543
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
3544
|
-
function(L,
|
|
3544
|
+
function(L, H) {
|
|
3545
3545
|
var J = h(this), X = L == null ? void 0 : L[y];
|
|
3546
|
-
return X !== void 0 ? X.call(L, J,
|
|
3546
|
+
return X !== void 0 ? X.call(L, J, H) : R.call(String(J), L, H);
|
|
3547
3547
|
},
|
|
3548
3548
|
// `RegExp.prototype[@@replace]` method
|
|
3549
3549
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
3550
3550
|
function(P, L) {
|
|
3551
3551
|
if (!z && $ || typeof L == "string" && L.indexOf(B) === -1) {
|
|
3552
|
-
var
|
|
3553
|
-
if (
|
|
3554
|
-
return
|
|
3552
|
+
var H = C(R, P, this, L);
|
|
3553
|
+
if (H.done)
|
|
3554
|
+
return H.value;
|
|
3555
3555
|
}
|
|
3556
3556
|
var J = u(P), X = String(this), Z = typeof L == "function";
|
|
3557
3557
|
Z || (L = String(L));
|
|
@@ -3598,24 +3598,24 @@ var Cu = { exports: {} };
|
|
|
3598
3598
|
return "abbc".split(/(b)*/)[1] == "c" || // eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
3599
3599
|
"test".split(/(?:)/, -1).length != 4 || "ab".split(/(?:ab)*/).length != 2 || ".".split(/(.?)(.?)/).length != 4 || // eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
|
|
3600
3600
|
".".split(/()()/).length > 1 || "".split(/.?/).length ? B = function(P, L) {
|
|
3601
|
-
var
|
|
3601
|
+
var H = String(f(this)), J = L === void 0 ? R : L >>> 0;
|
|
3602
3602
|
if (J === 0)
|
|
3603
3603
|
return [];
|
|
3604
3604
|
if (P === void 0)
|
|
3605
|
-
return [
|
|
3605
|
+
return [H];
|
|
3606
3606
|
if (!u(P))
|
|
3607
|
-
return z.call(
|
|
3608
|
-
for (var X = [], Z = (P.ignoreCase ? "i" : "") + (P.multiline ? "m" : "") + (P.unicode ? "u" : "") + (P.sticky ? "y" : ""), ne = 0, j = new RegExp(P.source, Z + "g"), ae, fe, be; (ae = x.call(j,
|
|
3607
|
+
return z.call(H, P, J);
|
|
3608
|
+
for (var X = [], Z = (P.ignoreCase ? "i" : "") + (P.multiline ? "m" : "") + (P.unicode ? "u" : "") + (P.sticky ? "y" : ""), ne = 0, j = new RegExp(P.source, Z + "g"), ae, fe, be; (ae = x.call(j, H)) && (fe = j.lastIndex, !(fe > ne && (X.push(H.slice(ne, ae.index)), ae.length > 1 && ae.index < H.length && w.apply(X, ae.slice(1)), be = ae[0].length, ne = fe, X.length >= J))); )
|
|
3609
3609
|
j.lastIndex === ae.index && j.lastIndex++;
|
|
3610
|
-
return ne ===
|
|
3610
|
+
return ne === H.length ? (be || !j.test("")) && X.push("") : X.push(H.slice(ne)), X.length > J ? X.slice(0, J) : X;
|
|
3611
3611
|
} : "0".split(void 0, 0).length ? B = function(P, L) {
|
|
3612
3612
|
return P === void 0 && L === 0 ? [] : z.call(this, P, L);
|
|
3613
3613
|
} : B = z, [
|
|
3614
3614
|
// `String.prototype.split` method
|
|
3615
3615
|
// https://tc39.es/ecma262/#sec-string.prototype.split
|
|
3616
|
-
function(L,
|
|
3616
|
+
function(L, H) {
|
|
3617
3617
|
var J = f(this), X = L == null ? void 0 : L[F];
|
|
3618
|
-
return X !== void 0 ? X.call(L, J,
|
|
3618
|
+
return X !== void 0 ? X.call(L, J, H) : B.call(String(J), L, H);
|
|
3619
3619
|
},
|
|
3620
3620
|
// `RegExp.prototype[@@split]` method
|
|
3621
3621
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
@@ -3623,9 +3623,9 @@ var Cu = { exports: {} };
|
|
|
3623
3623
|
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
3624
3624
|
// the 'y' flag.
|
|
3625
3625
|
function(P, L) {
|
|
3626
|
-
var
|
|
3627
|
-
if (
|
|
3628
|
-
return
|
|
3626
|
+
var H = $(B, P, this, L, B !== z);
|
|
3627
|
+
if (H.done)
|
|
3628
|
+
return H.value;
|
|
3629
3629
|
var J = d(P), X = String(this), Z = h(J, RegExp), ne = J.unicode, j = (J.ignoreCase ? "i" : "") + (J.multiline ? "m" : "") + (J.unicode ? "u" : "") + (C ? "y" : "g"), ae = new Z(C ? J : "^(?:" + J.source + ")", j), fe = L === void 0 ? R : L >>> 0;
|
|
3630
3630
|
if (fe === 0)
|
|
3631
3631
|
return [];
|
|
@@ -3988,7 +3988,7 @@ var Cu = { exports: {} };
|
|
|
3988
3988
|
/***/
|
|
3989
3989
|
function(s, l, a) {
|
|
3990
3990
|
a(6992);
|
|
3991
|
-
var c = a(2109), u = a(5005), d = a(590), f = a(1320), h = a(2248), p = a(8003), m = a(4994), g = a(9909), x = a(5787), E = a(6656), w = a(9974), y = a(648), R = a(9670), C = a(111), F = a(30), z = a(9114), $ = a(8554), B = a(1246), P = a(5112), L = u("fetch"),
|
|
3991
|
+
var c = a(2109), u = a(5005), d = a(590), f = a(1320), h = a(2248), p = a(8003), m = a(4994), g = a(9909), x = a(5787), E = a(6656), w = a(9974), y = a(648), R = a(9670), C = a(111), F = a(30), z = a(9114), $ = a(8554), B = a(1246), P = a(5112), L = u("fetch"), H = u("Headers"), J = P("iterator"), X = "URLSearchParams", Z = X + "Iterator", ne = g.set, j = g.getterFor(X), ae = g.getterFor(Z), fe = /\+/g, be = Array(4), Ce = function(I) {
|
|
3992
3992
|
return be[I - 1] || (be[I - 1] = RegExp("((?:%[\\da-f]{2}){" + I + "})", "gi"));
|
|
3993
3993
|
}, xe = function(I) {
|
|
3994
3994
|
try {
|
|
@@ -4018,8 +4018,8 @@ var Cu = { exports: {} };
|
|
|
4018
4018
|
return encodeURIComponent(I).replace(ke, ye);
|
|
4019
4019
|
}, O = function(I, D) {
|
|
4020
4020
|
if (D)
|
|
4021
|
-
for (var N = D.split("&"),
|
|
4022
|
-
W = N[
|
|
4021
|
+
for (var N = D.split("&"), U = 0, W, V; U < N.length; )
|
|
4022
|
+
W = N[U++], W.length && (V = W.split("="), I.push({
|
|
4023
4023
|
key: Oe(V.shift()),
|
|
4024
4024
|
value: Oe(V.join("="))
|
|
4025
4025
|
}));
|
|
@@ -4035,14 +4035,14 @@ var Cu = { exports: {} };
|
|
|
4035
4035
|
kind: N
|
|
4036
4036
|
});
|
|
4037
4037
|
}, "Iterator", function() {
|
|
4038
|
-
var D = ae(this), N = D.kind,
|
|
4039
|
-
return
|
|
4038
|
+
var D = ae(this), N = D.kind, U = D.iterator.next(), W = U.value;
|
|
4039
|
+
return U.done || (U.value = N === "keys" ? W.key : N === "values" ? W.value : [W.key, W.value]), U;
|
|
4040
4040
|
}), b = function() {
|
|
4041
4041
|
x(this, b, X);
|
|
4042
|
-
var D = arguments.length > 0 ? arguments[0] : void 0, N = this,
|
|
4042
|
+
var D = arguments.length > 0 ? arguments[0] : void 0, N = this, U = [], W, V, K, G, q, le, ge, De, Ve;
|
|
4043
4043
|
if (ne(N, {
|
|
4044
4044
|
type: X,
|
|
4045
|
-
entries:
|
|
4045
|
+
entries: U,
|
|
4046
4046
|
updateURL: function() {
|
|
4047
4047
|
},
|
|
4048
4048
|
updateSearchParams: S
|
|
@@ -4052,36 +4052,36 @@ var Cu = { exports: {} };
|
|
|
4052
4052
|
for (V = W.call(D), K = V.next; !(G = K.call(V)).done; ) {
|
|
4053
4053
|
if (q = $(R(G.value)), le = q.next, (ge = le.call(q)).done || (De = le.call(q)).done || !le.call(q).done)
|
|
4054
4054
|
throw TypeError("Expected sequence with length 2");
|
|
4055
|
-
|
|
4055
|
+
U.push({ key: ge.value + "", value: De.value + "" });
|
|
4056
4056
|
}
|
|
4057
4057
|
else
|
|
4058
4058
|
for (Ve in D)
|
|
4059
|
-
E(D, Ve) &&
|
|
4059
|
+
E(D, Ve) && U.push({ key: Ve, value: D[Ve] + "" });
|
|
4060
4060
|
else
|
|
4061
|
-
O(
|
|
4061
|
+
O(U, typeof D == "string" ? D.charAt(0) === "?" ? D.slice(1) : D : D + "");
|
|
4062
4062
|
}, M = b.prototype;
|
|
4063
4063
|
h(M, {
|
|
4064
4064
|
// `URLSearchParams.prototype.append` method
|
|
4065
4065
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-append
|
|
4066
4066
|
append: function(D, N) {
|
|
4067
4067
|
A(arguments.length, 2);
|
|
4068
|
-
var
|
|
4069
|
-
|
|
4068
|
+
var U = j(this);
|
|
4069
|
+
U.entries.push({ key: D + "", value: N + "" }), U.updateURL();
|
|
4070
4070
|
},
|
|
4071
4071
|
// `URLSearchParams.prototype.delete` method
|
|
4072
4072
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-delete
|
|
4073
4073
|
delete: function(I) {
|
|
4074
4074
|
A(arguments.length, 1);
|
|
4075
|
-
for (var D = j(this), N = D.entries,
|
|
4076
|
-
N[W].key ===
|
|
4075
|
+
for (var D = j(this), N = D.entries, U = I + "", W = 0; W < N.length; )
|
|
4076
|
+
N[W].key === U ? N.splice(W, 1) : W++;
|
|
4077
4077
|
D.updateURL();
|
|
4078
4078
|
},
|
|
4079
4079
|
// `URLSearchParams.prototype.get` method
|
|
4080
4080
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-get
|
|
4081
4081
|
get: function(D) {
|
|
4082
4082
|
A(arguments.length, 1);
|
|
4083
|
-
for (var N = j(this).entries,
|
|
4084
|
-
if (N[W].key ===
|
|
4083
|
+
for (var N = j(this).entries, U = D + "", W = 0; W < N.length; W++)
|
|
4084
|
+
if (N[W].key === U)
|
|
4085
4085
|
return N[W].value;
|
|
4086
4086
|
return null;
|
|
4087
4087
|
},
|
|
@@ -4089,16 +4089,16 @@ var Cu = { exports: {} };
|
|
|
4089
4089
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-getall
|
|
4090
4090
|
getAll: function(D) {
|
|
4091
4091
|
A(arguments.length, 1);
|
|
4092
|
-
for (var N = j(this).entries,
|
|
4093
|
-
N[V].key ===
|
|
4092
|
+
for (var N = j(this).entries, U = D + "", W = [], V = 0; V < N.length; V++)
|
|
4093
|
+
N[V].key === U && W.push(N[V].value);
|
|
4094
4094
|
return W;
|
|
4095
4095
|
},
|
|
4096
4096
|
// `URLSearchParams.prototype.has` method
|
|
4097
4097
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-has
|
|
4098
4098
|
has: function(D) {
|
|
4099
4099
|
A(arguments.length, 1);
|
|
4100
|
-
for (var N = j(this).entries,
|
|
4101
|
-
if (N[W++].key ===
|
|
4100
|
+
for (var N = j(this).entries, U = D + "", W = 0; W < N.length; )
|
|
4101
|
+
if (N[W++].key === U)
|
|
4102
4102
|
return !0;
|
|
4103
4103
|
return !1;
|
|
4104
4104
|
},
|
|
@@ -4106,16 +4106,16 @@ var Cu = { exports: {} };
|
|
|
4106
4106
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-set
|
|
4107
4107
|
set: function(D, N) {
|
|
4108
4108
|
A(arguments.length, 1);
|
|
4109
|
-
for (var
|
|
4109
|
+
for (var U = j(this), W = U.entries, V = !1, K = D + "", G = N + "", q = 0, le; q < W.length; q++)
|
|
4110
4110
|
le = W[q], le.key === K && (V ? W.splice(q--, 1) : (V = !0, le.value = G));
|
|
4111
|
-
V || W.push({ key: K, value: G }),
|
|
4111
|
+
V || W.push({ key: K, value: G }), U.updateURL();
|
|
4112
4112
|
},
|
|
4113
4113
|
// `URLSearchParams.prototype.sort` method
|
|
4114
4114
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-sort
|
|
4115
4115
|
sort: function() {
|
|
4116
|
-
var D = j(this), N = D.entries,
|
|
4117
|
-
for (N.length = 0, K = 0; K <
|
|
4118
|
-
for (W =
|
|
4116
|
+
var D = j(this), N = D.entries, U = N.slice(), W, V, K;
|
|
4117
|
+
for (N.length = 0, K = 0; K < U.length; K++) {
|
|
4118
|
+
for (W = U[K], V = 0; V < K; V++)
|
|
4119
4119
|
if (N[V].key > W.key) {
|
|
4120
4120
|
N.splice(V, 0, W);
|
|
4121
4121
|
break;
|
|
@@ -4126,8 +4126,8 @@ var Cu = { exports: {} };
|
|
|
4126
4126
|
},
|
|
4127
4127
|
// `URLSearchParams.prototype.forEach` method
|
|
4128
4128
|
forEach: function(D) {
|
|
4129
|
-
for (var N = j(this).entries,
|
|
4130
|
-
V = N[W++],
|
|
4129
|
+
for (var N = j(this).entries, U = w(D, arguments.length > 1 ? arguments[1] : void 0, 3), W = 0, V; W < N.length; )
|
|
4130
|
+
V = N[W++], U(V.value, V.key, this);
|
|
4131
4131
|
},
|
|
4132
4132
|
// `URLSearchParams.prototype.keys` method
|
|
4133
4133
|
keys: function() {
|
|
@@ -4142,18 +4142,18 @@ var Cu = { exports: {} };
|
|
|
4142
4142
|
return new v(this, "entries");
|
|
4143
4143
|
}
|
|
4144
4144
|
}, { enumerable: !0 }), f(M, J, M.entries), f(M, "toString", function() {
|
|
4145
|
-
for (var D = j(this).entries, N = [],
|
|
4146
|
-
W = D[
|
|
4145
|
+
for (var D = j(this).entries, N = [], U = 0, W; U < D.length; )
|
|
4146
|
+
W = D[U++], N.push(k(W.key) + "=" + k(W.value));
|
|
4147
4147
|
return N.join("&");
|
|
4148
4148
|
}, { enumerable: !0 }), p(b, X), c({ global: !0, forced: !d }, {
|
|
4149
4149
|
URLSearchParams: b
|
|
4150
|
-
}), !d && typeof L == "function" && typeof
|
|
4150
|
+
}), !d && typeof L == "function" && typeof H == "function" && c({ global: !0, enumerable: !0, forced: !0 }, {
|
|
4151
4151
|
fetch: function(D) {
|
|
4152
|
-
var N = [D],
|
|
4153
|
-
return arguments.length > 1 && (
|
|
4152
|
+
var N = [D], U, W, V;
|
|
4153
|
+
return arguments.length > 1 && (U = arguments[1], C(U) && (W = U.body, y(W) === X && (V = U.headers ? new H(U.headers) : new H(), V.has("content-type") || V.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"), U = F(U, {
|
|
4154
4154
|
body: z(0, String(W)),
|
|
4155
4155
|
headers: z(0, V)
|
|
4156
|
-
}))), N.push(
|
|
4156
|
+
}))), N.push(U)), L.apply(this, N);
|
|
4157
4157
|
}
|
|
4158
4158
|
}), s.exports = {
|
|
4159
4159
|
URLSearchParams: b,
|
|
@@ -4166,7 +4166,7 @@ var Cu = { exports: {} };
|
|
|
4166
4166
|
/***/
|
|
4167
4167
|
function(s, l, a) {
|
|
4168
4168
|
a(8783);
|
|
4169
|
-
var c = a(2109), u = a(9781), d = a(590), f = a(7854), h = a(6048), p = a(1320), m = a(5787), g = a(6656), x = a(1574), E = a(8457), w = a(8710).codeAt, y = a(3197), R = a(8003), C = a(1637), F = a(9909), z = f.URL, $ = C.URLSearchParams, B = C.getState, P = F.set, L = F.getterFor("URL"),
|
|
4169
|
+
var c = a(2109), u = a(9781), d = a(590), f = a(7854), h = a(6048), p = a(1320), m = a(5787), g = a(6656), x = a(1574), E = a(8457), w = a(8710).codeAt, y = a(3197), R = a(8003), C = a(1637), F = a(9909), z = f.URL, $ = C.URLSearchParams, B = C.getState, P = F.set, L = F.getterFor("URL"), H = Math.floor, J = Math.pow, X = "Invalid authority", Z = "Invalid scheme", ne = "Invalid host", j = "Invalid port", ae = /[A-Za-z]/, fe = /[\d+-.A-Za-z]/, be = /\d/, Ce = /^(0x|0X)/, xe = /^[0-7]+$/, Oe = /^\d+$/, ke = /^[\dA-Fa-f]+$/, Me = /[\u0000\t\u000A\u000D #%/:?@[\\]]/, ye = /[\u0000\t\u000A\u000D #/:?@[\\]]/, k = /^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g, O = /[\t\u000A\u000D]/g, S, A = function(T, _) {
|
|
4170
4170
|
var Q, ee, re;
|
|
4171
4171
|
if (_.charAt(0) == "[") {
|
|
4172
4172
|
if (_.charAt(_.length - 1) != "]" || (Q = b(_.slice(1, -1)), !Q))
|
|
@@ -4277,7 +4277,7 @@ var Cu = { exports: {} };
|
|
|
4277
4277
|
var _, Q, ee, re;
|
|
4278
4278
|
if (typeof T == "number") {
|
|
4279
4279
|
for (_ = [], Q = 0; Q < 4; Q++)
|
|
4280
|
-
_.unshift(T % 256), T =
|
|
4280
|
+
_.unshift(T % 256), T = H(T / 256);
|
|
4281
4281
|
return _.join(".");
|
|
4282
4282
|
} else if (typeof T == "object") {
|
|
4283
4283
|
for (_ = "", ee = M(T), Q = 0; Q < 8; Q++)
|
|
@@ -4291,12 +4291,12 @@ var Cu = { exports: {} };
|
|
|
4291
4291
|
"<": 1,
|
|
4292
4292
|
">": 1,
|
|
4293
4293
|
"`": 1
|
|
4294
|
-
}),
|
|
4294
|
+
}), U = x({}, N, {
|
|
4295
4295
|
"#": 1,
|
|
4296
4296
|
"?": 1,
|
|
4297
4297
|
"{": 1,
|
|
4298
4298
|
"}": 1
|
|
4299
|
-
}), W = x({},
|
|
4299
|
+
}), W = x({}, U, {
|
|
4300
4300
|
"/": 1,
|
|
4301
4301
|
":": 1,
|
|
4302
4302
|
";": 1,
|
|
@@ -4332,11 +4332,11 @@ var Cu = { exports: {} };
|
|
|
4332
4332
|
}, Ve = function(T) {
|
|
4333
4333
|
var _ = T.path, Q = _.length;
|
|
4334
4334
|
Q && (T.scheme != "file" || Q != 1 || !ge(_[0], !0)) && _.pop();
|
|
4335
|
-
},
|
|
4335
|
+
}, Ue = function(T) {
|
|
4336
4336
|
return T === "." || T.toLowerCase() === "%2e";
|
|
4337
4337
|
}, Ne = function(T) {
|
|
4338
4338
|
return T = T.toLowerCase(), T === ".." || T === "%2e." || T === ".%2e" || T === "%2e%2e";
|
|
4339
|
-
}, _e = {}, wt = {}, ct = {}, Tn = {}, Y = {}, oe = {}, se = {}, Se = {}, Te = {},
|
|
4339
|
+
}, _e = {}, wt = {}, ct = {}, Tn = {}, Y = {}, oe = {}, se = {}, Se = {}, Te = {}, Ge = {}, Ze = {}, ht = {}, mt = {}, it = {}, _t = {}, kn = {}, Mt = {}, Lt = {}, fr = {}, Pt = {}, hn = {}, en = function(T, _, Q, ee) {
|
|
4340
4340
|
var re = Q || _e, Ae = 0, he = "", ze = !1, Ye = !1, Qe = !1, Bt, te, tt, mn;
|
|
4341
4341
|
for (Q || (T.scheme = "", T.username = "", T.password = "", T.host = null, T.port = null, T.path = [], T.query = null, T.fragment = null, T.cannotBeABaseURL = !1, _ = _.replace(k, "")), _ = _.replace(O, ""), Bt = E(_); Ae <= Bt.length; ) {
|
|
4342
4342
|
switch (te = Bt[Ae], re) {
|
|
@@ -4387,7 +4387,7 @@ var Cu = { exports: {} };
|
|
|
4387
4387
|
break;
|
|
4388
4388
|
case Y:
|
|
4389
4389
|
if (te == "/") {
|
|
4390
|
-
re =
|
|
4390
|
+
re = Ge;
|
|
4391
4391
|
break;
|
|
4392
4392
|
} else {
|
|
4393
4393
|
re = Lt;
|
|
@@ -4411,7 +4411,7 @@ var Cu = { exports: {} };
|
|
|
4411
4411
|
if (G(T) && (te == "/" || te == "\\"))
|
|
4412
4412
|
re = Te;
|
|
4413
4413
|
else if (te == "/")
|
|
4414
|
-
re =
|
|
4414
|
+
re = Ge;
|
|
4415
4415
|
else {
|
|
4416
4416
|
T.username = ee.username, T.password = ee.password, T.host = ee.host, T.port = ee.port, re = Lt;
|
|
4417
4417
|
continue;
|
|
@@ -4424,11 +4424,11 @@ var Cu = { exports: {} };
|
|
|
4424
4424
|
break;
|
|
4425
4425
|
case Te:
|
|
4426
4426
|
if (te != "/" && te != "\\") {
|
|
4427
|
-
re =
|
|
4427
|
+
re = Ge;
|
|
4428
4428
|
continue;
|
|
4429
4429
|
}
|
|
4430
4430
|
break;
|
|
4431
|
-
case
|
|
4431
|
+
case Ge:
|
|
4432
4432
|
if (te == "@") {
|
|
4433
4433
|
ze && (he = "%40" + he), ze = !0, tt = E(he);
|
|
4434
4434
|
for (var _o = 0; _o < tt.length; _o++) {
|
|
@@ -4548,12 +4548,12 @@ var Cu = { exports: {} };
|
|
|
4548
4548
|
break;
|
|
4549
4549
|
case Lt:
|
|
4550
4550
|
if (te == S || te == "/" || te == "\\" && G(T) || !Q && (te == "?" || te == "#")) {
|
|
4551
|
-
if (Ne(he) ? (Ve(T), te != "/" && !(te == "\\" && G(T)) && T.path.push("")) :
|
|
4551
|
+
if (Ne(he) ? (Ve(T), te != "/" && !(te == "\\" && G(T)) && T.path.push("")) : Ue(he) ? te != "/" && !(te == "\\" && G(T)) && T.path.push("") : (T.scheme == "file" && !T.path.length && ge(he) && (T.host && (T.host = ""), he = he.charAt(0) + ":"), T.path.push(he)), he = "", T.scheme == "file" && (te == S || te == "?" || te == "#"))
|
|
4552
4552
|
for (; T.path.length > 1 && T.path[0] === ""; )
|
|
4553
4553
|
T.path.shift();
|
|
4554
4554
|
te == "?" ? (T.query = "", re = Pt) : te == "#" && (T.fragment = "", re = hn);
|
|
4555
4555
|
} else
|
|
4556
|
-
he += V(te,
|
|
4556
|
+
he += V(te, U);
|
|
4557
4557
|
break;
|
|
4558
4558
|
case fr:
|
|
4559
4559
|
te == "?" ? (T.query = "", re = Pt) : te == "#" ? (T.fragment = "", re = hn) : te != S && (T.path[0] += V(te, D));
|
|
@@ -4567,10 +4567,10 @@ var Cu = { exports: {} };
|
|
|
4567
4567
|
}
|
|
4568
4568
|
Ae++;
|
|
4569
4569
|
}
|
|
4570
|
-
},
|
|
4571
|
-
var Q = m(this,
|
|
4570
|
+
}, Gn = function(_) {
|
|
4571
|
+
var Q = m(this, Gn, "URL"), ee = arguments.length > 1 ? arguments[1] : void 0, re = String(_), Ae = P(Q, { type: "URL" }), he, ze;
|
|
4572
4572
|
if (ee !== void 0) {
|
|
4573
|
-
if (ee instanceof
|
|
4573
|
+
if (ee instanceof Gn)
|
|
4574
4574
|
he = L(ee);
|
|
4575
4575
|
else if (ze = en(he = {}, String(ee)), ze)
|
|
4576
4576
|
throw TypeError(ze);
|
|
@@ -4581,7 +4581,7 @@ var Cu = { exports: {} };
|
|
|
4581
4581
|
Qe.updateSearchParams(Ae.query), Qe.updateURL = function() {
|
|
4582
4582
|
Ae.query = String(Ye) || null;
|
|
4583
4583
|
}, u || (Q.href = Si.call(Q), Q.origin = Za.call(Q), Q.protocol = Qa.call(Q), Q.username = qa.call(Q), Q.password = _a.call(Q), Q.host = el.call(Q), Q.hostname = tl.call(Q), Q.port = nl.call(Q), Q.pathname = rl.call(Q), Q.search = il.call(Q), Q.searchParams = ol.call(Q), Q.hash = sl.call(Q));
|
|
4584
|
-
}, qo =
|
|
4584
|
+
}, qo = Gn.prototype, Si = function() {
|
|
4585
4585
|
var T = L(this), _ = T.scheme, Q = T.username, ee = T.password, re = T.host, Ae = T.port, he = T.path, ze = T.query, Ye = T.fragment, Qe = _ + ":";
|
|
4586
4586
|
return re !== null ? (Qe += "//", q(T) && (Qe += Q + (ee ? ":" + ee : "") + "@"), Qe += I(re), Ae !== null && (Qe += ":" + Ae)) : _ == "file" && (Qe += "//"), Qe += T.cannotBeABaseURL ? he[0] : he.length ? "/" + he.join("/") : "", ze !== null && (Qe += "?" + ze), Ye !== null && (Qe += "#" + Ye), Qe;
|
|
4587
4587
|
}, Za = function() {
|
|
@@ -4709,14 +4709,14 @@ var Cu = { exports: {} };
|
|
|
4709
4709
|
return Si.call(this);
|
|
4710
4710
|
}, { enumerable: !0 }), z) {
|
|
4711
4711
|
var al = z.createObjectURL, ll = z.revokeObjectURL;
|
|
4712
|
-
al && p(
|
|
4712
|
+
al && p(Gn, "createObjectURL", function(_) {
|
|
4713
4713
|
return al.apply(z, arguments);
|
|
4714
|
-
}), ll && p(
|
|
4714
|
+
}), ll && p(Gn, "revokeObjectURL", function(_) {
|
|
4715
4715
|
return ll.apply(z, arguments);
|
|
4716
4716
|
});
|
|
4717
4717
|
}
|
|
4718
|
-
R(
|
|
4719
|
-
URL:
|
|
4718
|
+
R(Gn, "URL"), c({ global: !0, forced: !d, sham: !u }, {
|
|
4719
|
+
URL: Gn
|
|
4720
4720
|
});
|
|
4721
4721
|
}
|
|
4722
4722
|
)
|
|
@@ -4865,8 +4865,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4865
4865
|
var N = D.value;
|
|
4866
4866
|
N.apply(this, b);
|
|
4867
4867
|
}
|
|
4868
|
-
} catch (
|
|
4869
|
-
I.e(
|
|
4868
|
+
} catch (U) {
|
|
4869
|
+
I.e(U);
|
|
4870
4870
|
} finally {
|
|
4871
4871
|
I.f();
|
|
4872
4872
|
}
|
|
@@ -5463,10 +5463,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5463
5463
|
}) : S.options.dictRemoveFileConfirmation ? j.confirm(S.options.dictRemoveFileConfirmation, function() {
|
|
5464
5464
|
return S.removeFile(O);
|
|
5465
5465
|
}) : S.removeFile(O);
|
|
5466
|
-
}, N = m(O.previewElement.querySelectorAll("[data-dz-remove]"), !0),
|
|
5466
|
+
}, N = m(O.previewElement.querySelectorAll("[data-dz-remove]"), !0), U;
|
|
5467
5467
|
try {
|
|
5468
|
-
for (N.s(); !(
|
|
5469
|
-
var W =
|
|
5468
|
+
for (N.s(); !(U = N.n()).done; ) {
|
|
5469
|
+
var W = U.value;
|
|
5470
5470
|
W.addEventListener("click", D);
|
|
5471
5471
|
}
|
|
5472
5472
|
} catch (V) {
|
|
@@ -5671,7 +5671,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5671
5671
|
return A.__proto__ = v, A;
|
|
5672
5672
|
}, L(k, O);
|
|
5673
5673
|
}
|
|
5674
|
-
function
|
|
5674
|
+
function H(k) {
|
|
5675
5675
|
var O = Z();
|
|
5676
5676
|
return function() {
|
|
5677
5677
|
var A = ne(k), v;
|
|
@@ -5710,7 +5710,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5710
5710
|
}
|
|
5711
5711
|
var j = /* @__PURE__ */ function(k) {
|
|
5712
5712
|
P(S, k);
|
|
5713
|
-
var O =
|
|
5713
|
+
var O = H(S);
|
|
5714
5714
|
function S(A, v) {
|
|
5715
5715
|
var b;
|
|
5716
5716
|
z(this, S), b = O.call(this);
|
|
@@ -5847,7 +5847,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5847
5847
|
return !0;
|
|
5848
5848
|
}
|
|
5849
5849
|
return !1;
|
|
5850
|
-
},
|
|
5850
|
+
}, U = function(V) {
|
|
5851
5851
|
if (N(V))
|
|
5852
5852
|
return V.stopPropagation(), V.preventDefault ? V.preventDefault() : V.returnValue = !1;
|
|
5853
5853
|
};
|
|
@@ -5858,7 +5858,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5858
5858
|
return v.emit("dragstart", V);
|
|
5859
5859
|
},
|
|
5860
5860
|
dragenter: function(V) {
|
|
5861
|
-
return
|
|
5861
|
+
return U(V), v.emit("dragenter", V);
|
|
5862
5862
|
},
|
|
5863
5863
|
dragover: function(V) {
|
|
5864
5864
|
var K;
|
|
@@ -5866,13 +5866,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5866
5866
|
K = V.dataTransfer.effectAllowed;
|
|
5867
5867
|
} catch {
|
|
5868
5868
|
}
|
|
5869
|
-
return V.dataTransfer.dropEffect = K === "move" || K === "linkMove" ? "move" : "copy",
|
|
5869
|
+
return V.dataTransfer.dropEffect = K === "move" || K === "linkMove" ? "move" : "copy", U(V), v.emit("dragover", V);
|
|
5870
5870
|
},
|
|
5871
5871
|
dragleave: function(V) {
|
|
5872
5872
|
return v.emit("dragleave", V);
|
|
5873
5873
|
},
|
|
5874
5874
|
drop: function(V) {
|
|
5875
|
-
return
|
|
5875
|
+
return U(V), v.drop(V);
|
|
5876
5876
|
},
|
|
5877
5877
|
dragend: function(V) {
|
|
5878
5878
|
return v.emit("dragend", V);
|
|
@@ -5907,8 +5907,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5907
5907
|
var D = R(this.getActiveFiles(), !0), N;
|
|
5908
5908
|
try {
|
|
5909
5909
|
for (D.s(); !(N = D.n()).done; ) {
|
|
5910
|
-
var
|
|
5911
|
-
b +=
|
|
5910
|
+
var U = N.value;
|
|
5911
|
+
b += U.upload.bytesSent, M += U.upload.total;
|
|
5912
5912
|
}
|
|
5913
5913
|
} catch (W) {
|
|
5914
5914
|
D.e(W);
|
|
@@ -5955,8 +5955,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5955
5955
|
}, {
|
|
5956
5956
|
key: "getExistingFallback",
|
|
5957
5957
|
value: function() {
|
|
5958
|
-
for (var v = function(
|
|
5959
|
-
var W = R(
|
|
5958
|
+
for (var v = function(U) {
|
|
5959
|
+
var W = R(U, !0), V;
|
|
5960
5960
|
try {
|
|
5961
5961
|
for (W.s(); !(V = W.n()).done; ) {
|
|
5962
5962
|
var K = V.value;
|
|
@@ -6029,8 +6029,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6029
6029
|
var b = 0, M = "b";
|
|
6030
6030
|
if (v > 0) {
|
|
6031
6031
|
for (var I = ["tb", "gb", "mb", "kb", "b"], D = 0; D < I.length; D++) {
|
|
6032
|
-
var N = I[D],
|
|
6033
|
-
if (v >=
|
|
6032
|
+
var N = I[D], U = Math.pow(this.options.filesizeBase, 4 - D) / 10;
|
|
6033
|
+
if (v >= U) {
|
|
6034
6034
|
b = v / Math.pow(this.options.filesizeBase, 4 - D), M = N;
|
|
6035
6035
|
break;
|
|
6036
6036
|
}
|
|
@@ -6096,8 +6096,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6096
6096
|
var M = [], I = R(v, !0), D;
|
|
6097
6097
|
try {
|
|
6098
6098
|
for (I.s(); !(D = I.n()).done; ) {
|
|
6099
|
-
var N = D.value,
|
|
6100
|
-
N.webkitGetAsEntry != null && (
|
|
6099
|
+
var N = D.value, U;
|
|
6100
|
+
N.webkitGetAsEntry != null && (U = N.webkitGetAsEntry()) ? U.isFile ? M.push(b.addFile(N.getAsFile())) : U.isDirectory ? M.push(b._addFilesFromDirectory(U, U.name)) : M.push(void 0) : N.getAsFile != null && (N.kind == null || N.kind === "file") ? M.push(b.addFile(N.getAsFile())) : M.push(void 0);
|
|
6101
6101
|
}
|
|
6102
6102
|
} catch (W) {
|
|
6103
6103
|
I.e(W);
|
|
@@ -6115,7 +6115,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6115
6115
|
return Me(console, "log", function(V) {
|
|
6116
6116
|
return V.log(W);
|
|
6117
6117
|
});
|
|
6118
|
-
}, N = function
|
|
6118
|
+
}, N = function U() {
|
|
6119
6119
|
return I.readEntries(function(W) {
|
|
6120
6120
|
if (W.length > 0) {
|
|
6121
6121
|
var V = R(W, !0), K;
|
|
@@ -6132,7 +6132,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6132
6132
|
} finally {
|
|
6133
6133
|
V.f();
|
|
6134
6134
|
}
|
|
6135
|
-
|
|
6135
|
+
U();
|
|
6136
6136
|
}
|
|
6137
6137
|
return null;
|
|
6138
6138
|
}, D);
|
|
@@ -6251,7 +6251,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6251
6251
|
key: "resizeImage",
|
|
6252
6252
|
value: function(v, b, M, I, D) {
|
|
6253
6253
|
var N = this;
|
|
6254
|
-
return this.createThumbnail(v, b, M, I, !0, function(
|
|
6254
|
+
return this.createThumbnail(v, b, M, I, !0, function(U, W) {
|
|
6255
6255
|
if (W == null)
|
|
6256
6256
|
return D(v);
|
|
6257
6257
|
var V = N.options.resizeMimeType;
|
|
@@ -6263,13 +6263,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6263
6263
|
}, {
|
|
6264
6264
|
key: "createThumbnail",
|
|
6265
6265
|
value: function(v, b, M, I, D, N) {
|
|
6266
|
-
var
|
|
6266
|
+
var U = this, W = new FileReader();
|
|
6267
6267
|
W.onload = function() {
|
|
6268
6268
|
if (v.dataURL = W.result, v.type === "image/svg+xml") {
|
|
6269
6269
|
N != null && N(W.result);
|
|
6270
6270
|
return;
|
|
6271
6271
|
}
|
|
6272
|
-
|
|
6272
|
+
U.createThumbnailFromUrl(v, b, M, I, D, N);
|
|
6273
6273
|
}, W.readAsDataURL(v);
|
|
6274
6274
|
}
|
|
6275
6275
|
// `mockFile` needs to have these attributes:
|
|
@@ -6285,17 +6285,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6285
6285
|
if (this.emit("addedfile", v), this.emit("complete", v), !N)
|
|
6286
6286
|
this.emit("thumbnail", v, b), M && M();
|
|
6287
6287
|
else {
|
|
6288
|
-
var
|
|
6288
|
+
var U = function(V) {
|
|
6289
6289
|
D.emit("thumbnail", v, V), M && M();
|
|
6290
6290
|
};
|
|
6291
|
-
v.dataURL = b, this.createThumbnailFromUrl(v, this.options.thumbnailWidth, this.options.thumbnailHeight, this.options.thumbnailMethod, this.options.fixOrientation,
|
|
6291
|
+
v.dataURL = b, this.createThumbnailFromUrl(v, this.options.thumbnailWidth, this.options.thumbnailHeight, this.options.thumbnailMethod, this.options.fixOrientation, U, I);
|
|
6292
6292
|
}
|
|
6293
6293
|
}
|
|
6294
6294
|
}, {
|
|
6295
6295
|
key: "createThumbnailFromUrl",
|
|
6296
|
-
value: function(v, b, M, I, D, N,
|
|
6296
|
+
value: function(v, b, M, I, D, N, U) {
|
|
6297
6297
|
var W = this, V = document.createElement("img");
|
|
6298
|
-
return
|
|
6298
|
+
return U && (V.crossOrigin = U), D = getComputedStyle(document.body).imageOrientation == "from-image" ? !1 : D, V.onload = function() {
|
|
6299
6299
|
var K = function(q) {
|
|
6300
6300
|
return q(1);
|
|
6301
6301
|
};
|
|
@@ -6406,10 +6406,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6406
6406
|
M.f();
|
|
6407
6407
|
}
|
|
6408
6408
|
typeof v.xhr < "u" && v.xhr.abort();
|
|
6409
|
-
var N = R(b, !0),
|
|
6409
|
+
var N = R(b, !0), U;
|
|
6410
6410
|
try {
|
|
6411
|
-
for (N.s(); !(
|
|
6412
|
-
var W =
|
|
6411
|
+
for (N.s(); !(U = N.n()).done; ) {
|
|
6412
|
+
var W = U.value;
|
|
6413
6413
|
this.emit("canceled", W);
|
|
6414
6414
|
}
|
|
6415
6415
|
} catch (V) {
|
|
@@ -6450,7 +6450,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6450
6450
|
if (v[0].upload.chunked) {
|
|
6451
6451
|
var D = v[0], N = M[0];
|
|
6452
6452
|
D.upload.chunks = [];
|
|
6453
|
-
var
|
|
6453
|
+
var U = function() {
|
|
6454
6454
|
for (var q = 0; D.upload.chunks[q] !== void 0; )
|
|
6455
6455
|
q++;
|
|
6456
6456
|
if (!(q >= D.upload.totalChunkCount)) {
|
|
@@ -6477,7 +6477,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6477
6477
|
G.status = S.SUCCESS, G.dataBlock = null, G.xhr = null;
|
|
6478
6478
|
for (var ge = 0; ge < D.upload.totalChunkCount; ge++) {
|
|
6479
6479
|
if (D.upload.chunks[ge] === void 0)
|
|
6480
|
-
return
|
|
6480
|
+
return U();
|
|
6481
6481
|
D.upload.chunks[ge].status !== S.SUCCESS && (le = !1);
|
|
6482
6482
|
}
|
|
6483
6483
|
le && b.options.chunksUploaded(D, function() {
|
|
@@ -6485,9 +6485,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6485
6485
|
});
|
|
6486
6486
|
}, b.options.parallelChunkUploads)
|
|
6487
6487
|
for (var W = 0; W < D.upload.totalChunkCount; W++)
|
|
6488
|
-
|
|
6488
|
+
U();
|
|
6489
6489
|
else
|
|
6490
|
-
|
|
6490
|
+
U();
|
|
6491
6491
|
} else {
|
|
6492
6492
|
for (var V = [], K = 0; K < v.length; K++)
|
|
6493
6493
|
V[K] = {
|
|
@@ -6516,8 +6516,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6516
6516
|
var M = this, I = new XMLHttpRequest(), D = R(v, !0), N;
|
|
6517
6517
|
try {
|
|
6518
6518
|
for (D.s(); !(N = D.n()).done; ) {
|
|
6519
|
-
var
|
|
6520
|
-
|
|
6519
|
+
var U = N.value;
|
|
6520
|
+
U.xhr = I;
|
|
6521
6521
|
}
|
|
6522
6522
|
} catch (se) {
|
|
6523
6523
|
D.e(se);
|
|
@@ -6553,13 +6553,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6553
6553
|
if (this.options.params) {
|
|
6554
6554
|
var Ve = this.options.params;
|
|
6555
6555
|
typeof Ve == "function" && (Ve = Ve.call(this, v, I, v[0].upload.chunked ? this._getChunk(v[0], I) : null));
|
|
6556
|
-
for (var
|
|
6557
|
-
var Ne = Ve[
|
|
6556
|
+
for (var Ue in Ve) {
|
|
6557
|
+
var Ne = Ve[Ue];
|
|
6558
6558
|
if (Array.isArray(Ne))
|
|
6559
6559
|
for (var _e = 0; _e < Ne.length; _e++)
|
|
6560
|
-
De.append(
|
|
6560
|
+
De.append(Ue, Ne[_e]);
|
|
6561
6561
|
else
|
|
6562
|
-
De.append(
|
|
6562
|
+
De.append(Ue, Ne);
|
|
6563
6563
|
}
|
|
6564
6564
|
}
|
|
6565
6565
|
var wt = R(v, !0), ct;
|
|
@@ -6588,8 +6588,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6588
6588
|
M.options.transformFile.call(M, v[V], function(K) {
|
|
6589
6589
|
I[V] = K, ++D === v.length && b(I);
|
|
6590
6590
|
});
|
|
6591
|
-
},
|
|
6592
|
-
N(
|
|
6591
|
+
}, U = 0; U < v.length; U++)
|
|
6592
|
+
N(U);
|
|
6593
6593
|
}
|
|
6594
6594
|
// Takes care of adding other input elements of the form to the AJAX request
|
|
6595
6595
|
}, {
|
|
@@ -6602,16 +6602,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6602
6602
|
var I = M.value, D = I.getAttribute("name"), N = I.getAttribute("type");
|
|
6603
6603
|
if (N && (N = N.toLowerCase()), !(typeof D > "u" || D === null))
|
|
6604
6604
|
if (I.tagName === "SELECT" && I.hasAttribute("multiple")) {
|
|
6605
|
-
var
|
|
6605
|
+
var U = R(I.options, !0), W;
|
|
6606
6606
|
try {
|
|
6607
|
-
for (
|
|
6607
|
+
for (U.s(); !(W = U.n()).done; ) {
|
|
6608
6608
|
var V = W.value;
|
|
6609
6609
|
V.selected && v.append(D, V.value);
|
|
6610
6610
|
}
|
|
6611
6611
|
} catch (K) {
|
|
6612
|
-
|
|
6612
|
+
U.e(K);
|
|
6613
6613
|
} finally {
|
|
6614
|
-
|
|
6614
|
+
U.f();
|
|
6615
6615
|
}
|
|
6616
6616
|
} else
|
|
6617
6617
|
(!N || N !== "checkbox" && N !== "radio" || I.checked) && v.append(D, I.value);
|
|
@@ -6629,11 +6629,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6629
6629
|
key: "_updateFilesUploadProgress",
|
|
6630
6630
|
value: function(v, b, M) {
|
|
6631
6631
|
if (v[0].upload.chunked) {
|
|
6632
|
-
var
|
|
6633
|
-
M ? (W.progress = 100 * M.loaded / M.total, W.total = M.total, W.bytesSent = M.loaded) : (W.progress = 100, W.bytesSent = W.total),
|
|
6634
|
-
for (var V = 0; V <
|
|
6635
|
-
|
|
6636
|
-
|
|
6632
|
+
var U = v[0], W = this._getChunk(U, b);
|
|
6633
|
+
M ? (W.progress = 100 * M.loaded / M.total, W.total = M.total, W.bytesSent = M.loaded) : (W.progress = 100, W.bytesSent = W.total), U.upload.progress = 0, U.upload.total = 0, U.upload.bytesSent = 0;
|
|
6634
|
+
for (var V = 0; V < U.upload.totalChunkCount; V++)
|
|
6635
|
+
U.upload.chunks[V] && typeof U.upload.chunks[V].progress < "u" && (U.upload.progress += U.upload.chunks[V].progress, U.upload.total += U.upload.chunks[V].total, U.upload.bytesSent += U.upload.chunks[V].bytesSent);
|
|
6636
|
+
U.upload.progress = U.upload.progress / U.upload.totalChunkCount, this.emit("uploadprogress", U, U.upload.progress, U.upload.bytesSent);
|
|
6637
6637
|
} else {
|
|
6638
6638
|
var I = R(v, !0), D;
|
|
6639
6639
|
try {
|
|
@@ -6697,8 +6697,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6697
6697
|
var N = D.value;
|
|
6698
6698
|
N.status = S.SUCCESS, this.emit("success", N, b, M), this.emit("complete", N);
|
|
6699
6699
|
}
|
|
6700
|
-
} catch (
|
|
6701
|
-
I.e(
|
|
6700
|
+
} catch (U) {
|
|
6701
|
+
I.e(U);
|
|
6702
6702
|
} finally {
|
|
6703
6703
|
I.f();
|
|
6704
6704
|
}
|
|
@@ -6716,8 +6716,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6716
6716
|
var N = D.value;
|
|
6717
6717
|
N.status = S.ERROR, this.emit("error", N, b, M), this.emit("complete", N);
|
|
6718
6718
|
}
|
|
6719
|
-
} catch (
|
|
6720
|
-
I.e(
|
|
6719
|
+
} catch (U) {
|
|
6720
|
+
I.e(U);
|
|
6721
6721
|
} finally {
|
|
6722
6722
|
I.f();
|
|
6723
6723
|
}
|
|
@@ -6736,9 +6736,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6736
6736
|
for (var b = arguments.length, M = new Array(b > 1 ? b - 1 : 0), I = 1; I < b; I++)
|
|
6737
6737
|
M[I - 1] = arguments[I];
|
|
6738
6738
|
for (var D = 0, N = M; D < N.length; D++) {
|
|
6739
|
-
var
|
|
6740
|
-
for (var W in
|
|
6741
|
-
var V =
|
|
6739
|
+
var U = N[D];
|
|
6740
|
+
for (var W in U) {
|
|
6741
|
+
var V = U[W];
|
|
6742
6742
|
v[W] = V;
|
|
6743
6743
|
}
|
|
6744
6744
|
}
|
|
@@ -6933,14 +6933,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6933
6933
|
var v = A.getContext("2d");
|
|
6934
6934
|
v.drawImage(O, 0, 0);
|
|
6935
6935
|
for (var b = v.getImageData(1, 0, 1, S), M = b.data, I = 0, D = S, N = S; N > I; ) {
|
|
6936
|
-
var
|
|
6937
|
-
|
|
6936
|
+
var U = M[(N - 1) * 4 + 3];
|
|
6937
|
+
U === 0 ? D = N : I = N, N = D + I >> 1;
|
|
6938
6938
|
}
|
|
6939
6939
|
var W = N / S;
|
|
6940
6940
|
return W === 0 ? 1 : W;
|
|
6941
|
-
}, Ce = function(O, S, A, v, b, M, I, D, N,
|
|
6941
|
+
}, Ce = function(O, S, A, v, b, M, I, D, N, U) {
|
|
6942
6942
|
var W = be(S);
|
|
6943
|
-
return O.drawImage(S, A, v, b, M, I, D, N,
|
|
6943
|
+
return O.drawImage(S, A, v, b, M, I, D, N, U / W);
|
|
6944
6944
|
}, xe = /* @__PURE__ */ function() {
|
|
6945
6945
|
function k() {
|
|
6946
6946
|
z(this, k);
|
|
@@ -6953,7 +6953,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6953
6953
|
}, {
|
|
6954
6954
|
key: "encode64",
|
|
6955
6955
|
value: function(S) {
|
|
6956
|
-
for (var A = "", v = void 0, b = void 0, M = "", I = void 0, D = void 0, N = void 0,
|
|
6956
|
+
for (var A = "", v = void 0, b = void 0, M = "", I = void 0, D = void 0, N = void 0, U = "", W = 0; v = S[W++], b = S[W++], M = S[W++], I = v >> 2, D = (v & 3) << 4 | b >> 4, N = (b & 15) << 2 | M >> 6, U = M & 63, isNaN(b) ? N = U = 64 : isNaN(M) && (U = 64), A = A + this.KEY_STR.charAt(I) + this.KEY_STR.charAt(D) + this.KEY_STR.charAt(N) + this.KEY_STR.charAt(U), v = b = M = "", I = D = N = U = "", W < S.length; )
|
|
6957
6957
|
;
|
|
6958
6958
|
return A;
|
|
6959
6959
|
}
|
|
@@ -7009,10 +7009,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7009
7009
|
}, {
|
|
7010
7010
|
key: "decode64",
|
|
7011
7011
|
value: function(S) {
|
|
7012
|
-
var A = void 0, v = void 0, b = "", M = void 0, I = void 0, D = void 0, N = "",
|
|
7012
|
+
var A = void 0, v = void 0, b = "", M = void 0, I = void 0, D = void 0, N = "", U = 0, W = [], V = /[^A-Za-z0-9\+\/\=]/g;
|
|
7013
7013
|
for (V.exec(S) && console.warn(`There were invalid base64 characters in the input text.
|
|
7014
7014
|
Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='
|
|
7015
|
-
Expect errors in decoding.`), S = S.replace(/[^A-Za-z0-9\+\/\=]/g, ""); M = this.KEY_STR.indexOf(S.charAt(
|
|
7015
|
+
Expect errors in decoding.`), S = S.replace(/[^A-Za-z0-9\+\/\=]/g, ""); M = this.KEY_STR.indexOf(S.charAt(U++)), I = this.KEY_STR.indexOf(S.charAt(U++)), D = this.KEY_STR.indexOf(S.charAt(U++)), N = this.KEY_STR.indexOf(S.charAt(U++)), A = M << 2 | I >> 4, v = (I & 15) << 4 | D >> 2, b = (D & 3) << 6 | N, W.push(A), D !== 64 && W.push(v), N !== 64 && W.push(b), A = v = b = "", M = I = D = N = "", U < S.length; )
|
|
7016
7016
|
;
|
|
7017
7017
|
return W;
|
|
7018
7018
|
}
|
|
@@ -7020,7 +7020,7 @@ Expect errors in decoding.`), S = S.replace(/[^A-Za-z0-9\+\/\=]/g, ""); M = this
|
|
|
7020
7020
|
}();
|
|
7021
7021
|
xe.initClass();
|
|
7022
7022
|
var Oe = function(O, S) {
|
|
7023
|
-
var A = !1, v = !0, b = O.document, M = b.documentElement, I = b.addEventListener ? "addEventListener" : "attachEvent", D = b.addEventListener ? "removeEventListener" : "detachEvent", N = b.addEventListener ? "" : "on",
|
|
7023
|
+
var A = !1, v = !0, b = O.document, M = b.documentElement, I = b.addEventListener ? "addEventListener" : "attachEvent", D = b.addEventListener ? "removeEventListener" : "detachEvent", N = b.addEventListener ? "" : "on", U = function V(K) {
|
|
7024
7024
|
if (!(K.type === "readystatechange" && b.readyState !== "complete") && ((K.type === "load" ? O : b)[D](N + K.type, V, !1), !A && (A = !0)))
|
|
7025
7025
|
return S.call(O, K.type || K);
|
|
7026
7026
|
}, W = function V() {
|
|
@@ -7030,7 +7030,7 @@ Expect errors in decoding.`), S = S.replace(/[^A-Za-z0-9\+\/\=]/g, ""); M = this
|
|
|
7030
7030
|
setTimeout(V, 50);
|
|
7031
7031
|
return;
|
|
7032
7032
|
}
|
|
7033
|
-
return
|
|
7033
|
+
return U("poll");
|
|
7034
7034
|
};
|
|
7035
7035
|
if (b.readyState !== "complete") {
|
|
7036
7036
|
if (b.createEventObject && M.doScroll) {
|
|
@@ -7040,7 +7040,7 @@ Expect errors in decoding.`), S = S.replace(/[^A-Za-z0-9\+\/\=]/g, ""); M = this
|
|
|
7040
7040
|
}
|
|
7041
7041
|
v && W();
|
|
7042
7042
|
}
|
|
7043
|
-
return b[I](N + "DOMContentLoaded",
|
|
7043
|
+
return b[I](N + "DOMContentLoaded", U, !1), b[I](N + "readystatechange", U, !1), O[I](N + "load", U, !1);
|
|
7044
7044
|
}
|
|
7045
7045
|
};
|
|
7046
7046
|
j._autoDiscoverFunction = function() {
|
|
@@ -7095,45 +7095,60 @@ const vl = /* @__PURE__ */ Cm(Tm), km = { class: "fallback" }, Am = /* @__PURE__
|
|
|
7095
7095
|
fileSizeExceededMessage: { default: void 0 },
|
|
7096
7096
|
acceptedFiles: { default: ".jpg" },
|
|
7097
7097
|
url: { default: "" },
|
|
7098
|
-
tag: { default: "form" }
|
|
7098
|
+
tag: { default: "form" },
|
|
7099
|
+
token: { default: "" }
|
|
7099
7100
|
},
|
|
7100
7101
|
emits: ["update:modelValue"],
|
|
7101
7102
|
setup(n, { emit: e }) {
|
|
7102
7103
|
const t = n, r = Re(() => ({ variant: Po.PRIMARY, size: gt.SM })), i = dr(t, "modelValue", e);
|
|
7103
7104
|
let o = null;
|
|
7104
|
-
vl.autoDiscover = !1,
|
|
7105
|
-
|
|
7106
|
-
|
|
7105
|
+
vl.autoDiscover = !1, Un(() => t.modelValue, () => {
|
|
7106
|
+
s();
|
|
7107
|
+
}), gi(() => {
|
|
7108
|
+
document.getElementById("dropzone") && l();
|
|
7109
|
+
});
|
|
7110
|
+
const s = () => {
|
|
7111
|
+
o && (o.destroy(), l());
|
|
7112
|
+
}, l = () => {
|
|
7113
|
+
var h;
|
|
7114
|
+
o = new vl("#dropzone", {
|
|
7107
7115
|
url: t.url,
|
|
7108
7116
|
method: "post",
|
|
7109
7117
|
acceptedFiles: t.acceptedFiles,
|
|
7110
7118
|
addRemoveLinks: !1,
|
|
7111
7119
|
maxFilesize: 10,
|
|
7112
7120
|
maxFiles: t.multiple ? void 0 : 1,
|
|
7121
|
+
headers: {
|
|
7122
|
+
RequestVerificationToken: t.token
|
|
7123
|
+
},
|
|
7113
7124
|
dictResponseError: t.errorMessage,
|
|
7114
7125
|
dictFileTooBig: t.fileSizeExceededMessage,
|
|
7115
|
-
previewTemplate: (
|
|
7116
|
-
}), o.on("error",
|
|
7117
|
-
})
|
|
7118
|
-
|
|
7119
|
-
i.value.push(
|
|
7120
|
-
|
|
7121
|
-
|
|
7122
|
-
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
|
-
|
|
7126
|
-
|
|
7126
|
+
previewTemplate: (h = document.querySelector("#bd-dropzone-theme")) == null ? void 0 : h.innerHTML
|
|
7127
|
+
}), o.on("error", c), o.on("success", a), o.on("removedfile", d);
|
|
7128
|
+
}, a = function(h, p) {
|
|
7129
|
+
var m;
|
|
7130
|
+
i.value.push({
|
|
7131
|
+
UUID: (m = h.upload) == null ? void 0 : m.uuid,
|
|
7132
|
+
CorrelationId: p.CorrelationId,
|
|
7133
|
+
Naam: p.Naam
|
|
7134
|
+
}), u(h);
|
|
7135
|
+
}, c = function(h) {
|
|
7136
|
+
u(h);
|
|
7137
|
+
}, u = function(h) {
|
|
7138
|
+
const p = h.name;
|
|
7139
|
+
if (!(p.endsWith(".png") || p.endsWith(".jpg") || p.endsWith(".jpeg") || p.endsWith(".gif"))) {
|
|
7140
|
+
const m = h.previewElement.getElementsByClassName("icon-file"), g = h.previewElement.getElementsByClassName("dz-image");
|
|
7141
|
+
m[0].classList.remove("d-none"), g[0].classList.add("d-none");
|
|
7127
7142
|
}
|
|
7128
|
-
},
|
|
7129
|
-
const
|
|
7130
|
-
var
|
|
7131
|
-
return ((
|
|
7143
|
+
}, d = function(h) {
|
|
7144
|
+
const p = i.value.findIndex((m) => {
|
|
7145
|
+
var g, x;
|
|
7146
|
+
return ((g = m.upload) == null ? void 0 : g.uuid) === ((x = h.upload) == null ? void 0 : x.uuid);
|
|
7132
7147
|
});
|
|
7133
|
-
|
|
7134
|
-
},
|
|
7135
|
-
return (
|
|
7136
|
-
(de(), vt(No(
|
|
7148
|
+
p !== -1 && i.value.splice(p, 1);
|
|
7149
|
+
}, f = Re(() => t.tag ?? "form");
|
|
7150
|
+
return (h, p) => (de(), ve(mi, null, [
|
|
7151
|
+
(de(), vt(No(f.value), {
|
|
7137
7152
|
id: "dropzone",
|
|
7138
7153
|
class: "dropzone bd-dropzone",
|
|
7139
7154
|
enctype: "multipart/form-data"
|
|
@@ -7143,15 +7158,15 @@ const vl = /* @__PURE__ */ Cm(Tm), km = { class: "fallback" }, Am = /* @__PURE__
|
|
|
7143
7158
|
Am,
|
|
7144
7159
|
Sn(" test "),
|
|
7145
7160
|
ue("label", Om, [
|
|
7146
|
-
|
|
7147
|
-
Sn(" " +
|
|
7161
|
+
He(Ee(Bi)),
|
|
7162
|
+
Sn(" " + Ke(t.buttonText), 1)
|
|
7148
7163
|
])
|
|
7149
7164
|
]),
|
|
7150
7165
|
ue("div", Mm, [
|
|
7151
|
-
|
|
7166
|
+
He(Ee(on), su(au(r.value)), {
|
|
7152
7167
|
default: dt(() => [
|
|
7153
|
-
|
|
7154
|
-
Sn(" " +
|
|
7168
|
+
He(Ee(Bi)),
|
|
7169
|
+
Sn(" " + Ke(t.buttonText), 1)
|
|
7155
7170
|
]),
|
|
7156
7171
|
_: 1
|
|
7157
7172
|
}, 16)
|
|
@@ -7163,28 +7178,28 @@ const vl = /* @__PURE__ */ Cm(Tm), km = { class: "fallback" }, Am = /* @__PURE__
|
|
|
7163
7178
|
ue("div", Rm, [
|
|
7164
7179
|
ue("div", Dm, [
|
|
7165
7180
|
Nm,
|
|
7166
|
-
|
|
7181
|
+
He(Ee(cu), {
|
|
7167
7182
|
"data-dz-thumbnail": "",
|
|
7168
7183
|
class: "d-none"
|
|
7169
7184
|
}),
|
|
7170
7185
|
Lm,
|
|
7171
|
-
|
|
7186
|
+
He(Ee(on), {
|
|
7172
7187
|
class: "dz-remove",
|
|
7173
7188
|
alt: "Click me to remove the file.",
|
|
7174
7189
|
"data-dz-remove": ""
|
|
7175
7190
|
}, {
|
|
7176
7191
|
default: dt(() => [
|
|
7177
|
-
|
|
7192
|
+
He(Ee(lu))
|
|
7178
7193
|
]),
|
|
7179
7194
|
_: 1
|
|
7180
7195
|
})
|
|
7181
7196
|
]),
|
|
7182
7197
|
Pm,
|
|
7183
7198
|
ue("div", Fm, [
|
|
7184
|
-
|
|
7199
|
+
He(Ee(da))
|
|
7185
7200
|
]),
|
|
7186
7201
|
ue("div", Bm, [
|
|
7187
|
-
|
|
7202
|
+
He(Ee(fa)),
|
|
7188
7203
|
zm
|
|
7189
7204
|
])
|
|
7190
7205
|
])
|
|
@@ -7731,7 +7746,7 @@ let $e = class Ns {
|
|
|
7731
7746
|
}
|
|
7732
7747
|
};
|
|
7733
7748
|
$e.none = [];
|
|
7734
|
-
class
|
|
7749
|
+
class Ui extends Error {
|
|
7735
7750
|
}
|
|
7736
7751
|
class pe {
|
|
7737
7752
|
/**
|
|
@@ -7832,11 +7847,11 @@ function Ou(n, e, t, r) {
|
|
|
7832
7847
|
let l = Ou(s.content, e - o - 1, t);
|
|
7833
7848
|
return l && n.replaceChild(i, s.copy(l));
|
|
7834
7849
|
}
|
|
7835
|
-
function
|
|
7850
|
+
function Um(n, e, t) {
|
|
7836
7851
|
if (t.openStart > n.depth)
|
|
7837
|
-
throw new
|
|
7852
|
+
throw new Ui("Inserted content deeper than insertion position");
|
|
7838
7853
|
if (n.depth - t.openStart != e.depth - t.openEnd)
|
|
7839
|
-
throw new
|
|
7854
|
+
throw new Ui("Inconsistent open depths");
|
|
7840
7855
|
return Mu(n, e, t, 0);
|
|
7841
7856
|
}
|
|
7842
7857
|
function Mu(n, e, t, r) {
|
|
@@ -7847,49 +7862,49 @@ function Mu(n, e, t, r) {
|
|
|
7847
7862
|
} else if (t.content.size)
|
|
7848
7863
|
if (!t.openStart && !t.openEnd && n.depth == r && e.depth == r) {
|
|
7849
7864
|
let s = n.parent, l = s.content;
|
|
7850
|
-
return
|
|
7865
|
+
return nr(s, l.cut(0, n.parentOffset).append(t.content).append(l.cut(e.parentOffset)));
|
|
7851
7866
|
} else {
|
|
7852
|
-
let { start: s, end: l } =
|
|
7853
|
-
return
|
|
7867
|
+
let { start: s, end: l } = Hm(t, n);
|
|
7868
|
+
return nr(o, Ru(n, s, l, e, r));
|
|
7854
7869
|
}
|
|
7855
7870
|
else
|
|
7856
|
-
return
|
|
7871
|
+
return nr(o, Hi(n, e, r));
|
|
7857
7872
|
}
|
|
7858
7873
|
function Iu(n, e) {
|
|
7859
7874
|
if (!e.type.compatibleContent(n.type))
|
|
7860
|
-
throw new
|
|
7875
|
+
throw new Ui("Cannot join " + e.type.name + " onto " + n.type.name);
|
|
7861
7876
|
}
|
|
7862
7877
|
function Ls(n, e, t) {
|
|
7863
7878
|
let r = n.node(t);
|
|
7864
7879
|
return Iu(r, e.node(t)), r;
|
|
7865
7880
|
}
|
|
7866
|
-
function
|
|
7881
|
+
function tr(n, e) {
|
|
7867
7882
|
let t = e.length - 1;
|
|
7868
7883
|
t >= 0 && n.isText && n.sameMarkup(e[t]) ? e[t] = n.withText(e[t].text + n.text) : e.push(n);
|
|
7869
7884
|
}
|
|
7870
7885
|
function jr(n, e, t, r) {
|
|
7871
7886
|
let i = (e || n).node(t), o = 0, s = e ? e.index(t) : i.childCount;
|
|
7872
|
-
n && (o = n.index(t), n.depth > t ? o++ : n.textOffset && (
|
|
7887
|
+
n && (o = n.index(t), n.depth > t ? o++ : n.textOffset && (tr(n.nodeAfter, r), o++));
|
|
7873
7888
|
for (let l = o; l < s; l++)
|
|
7874
|
-
|
|
7875
|
-
e && e.depth == t && e.textOffset &&
|
|
7889
|
+
tr(i.child(l), r);
|
|
7890
|
+
e && e.depth == t && e.textOffset && tr(e.nodeBefore, r);
|
|
7876
7891
|
}
|
|
7877
|
-
function
|
|
7892
|
+
function nr(n, e) {
|
|
7878
7893
|
return n.type.checkContent(e), n.copy(e);
|
|
7879
7894
|
}
|
|
7880
7895
|
function Ru(n, e, t, r, i) {
|
|
7881
7896
|
let o = n.depth > i && Ls(n, e, i + 1), s = r.depth > i && Ls(t, r, i + 1), l = [];
|
|
7882
|
-
return jr(null, n, i, l), o && s && e.index(i) == t.index(i) ? (Iu(o, s),
|
|
7897
|
+
return jr(null, n, i, l), o && s && e.index(i) == t.index(i) ? (Iu(o, s), tr(nr(o, Ru(n, e, t, r, i + 1)), l)) : (o && tr(nr(o, Hi(n, e, i + 1)), l), jr(e, t, i, l), s && tr(nr(s, Hi(t, r, i + 1)), l)), jr(r, null, i, l), new ie(l);
|
|
7883
7898
|
}
|
|
7884
|
-
function
|
|
7899
|
+
function Hi(n, e, t) {
|
|
7885
7900
|
let r = [];
|
|
7886
7901
|
if (jr(null, n, t, r), n.depth > t) {
|
|
7887
7902
|
let i = Ls(n, e, t + 1);
|
|
7888
|
-
|
|
7903
|
+
tr(nr(i, Hi(n, e, t + 1)), r);
|
|
7889
7904
|
}
|
|
7890
7905
|
return jr(e, null, t, r), new ie(r);
|
|
7891
7906
|
}
|
|
7892
|
-
function
|
|
7907
|
+
function Hm(n, e) {
|
|
7893
7908
|
let t = e.depth - n.openStart, i = e.node(t).copy(n.content);
|
|
7894
7909
|
for (let o = t - 1; o >= 0; o--)
|
|
7895
7910
|
i = e.node(o).copy(ie.from(i));
|
|
@@ -8183,7 +8198,7 @@ class Vi {
|
|
|
8183
8198
|
}
|
|
8184
8199
|
}
|
|
8185
8200
|
const jm = /* @__PURE__ */ Object.create(null);
|
|
8186
|
-
let
|
|
8201
|
+
let rr = class Ps {
|
|
8187
8202
|
/**
|
|
8188
8203
|
@internal
|
|
8189
8204
|
*/
|
|
@@ -8338,7 +8353,7 @@ let nr = class Ps {
|
|
|
8338
8353
|
[`ReplaceError`](https://prosemirror.net/docs/ref/#model.ReplaceError) is thrown.
|
|
8339
8354
|
*/
|
|
8340
8355
|
replace(e, t, r) {
|
|
8341
|
-
return
|
|
8356
|
+
return Um(this.resolve(e), this.resolve(t), r);
|
|
8342
8357
|
}
|
|
8343
8358
|
/**
|
|
8344
8359
|
Find the node directly after the given position.
|
|
@@ -8544,8 +8559,8 @@ let nr = class Ps {
|
|
|
8544
8559
|
return e.nodeType(t.type).create(t.attrs, i, r);
|
|
8545
8560
|
}
|
|
8546
8561
|
};
|
|
8547
|
-
|
|
8548
|
-
class ji extends
|
|
8562
|
+
rr.prototype.text = void 0;
|
|
8563
|
+
class ji extends rr {
|
|
8549
8564
|
/**
|
|
8550
8565
|
@internal
|
|
8551
8566
|
*/
|
|
@@ -9035,7 +9050,7 @@ let xl = class zu {
|
|
|
9035
9050
|
create(e = null, t, r) {
|
|
9036
9051
|
if (this.isText)
|
|
9037
9052
|
throw new Error("NodeType.create can't construct text nodes");
|
|
9038
|
-
return new
|
|
9053
|
+
return new rr(this, this.computeAttrs(e), ie.from(t), $e.setFrom(r));
|
|
9039
9054
|
}
|
|
9040
9055
|
/**
|
|
9041
9056
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
|
|
@@ -9043,7 +9058,7 @@ let xl = class zu {
|
|
|
9043
9058
|
if it doesn't match.
|
|
9044
9059
|
*/
|
|
9045
9060
|
createChecked(e = null, t, r) {
|
|
9046
|
-
return t = ie.from(t), this.checkContent(t), new
|
|
9061
|
+
return t = ie.from(t), this.checkContent(t), new rr(this, this.computeAttrs(e), t, $e.setFrom(r));
|
|
9047
9062
|
}
|
|
9048
9063
|
/**
|
|
9049
9064
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
|
|
@@ -9061,7 +9076,7 @@ let xl = class zu {
|
|
|
9061
9076
|
t = s.append(t);
|
|
9062
9077
|
}
|
|
9063
9078
|
let i = this.contentMatch.matchFragment(t), o = i && i.fillBefore(ie.empty, !0);
|
|
9064
|
-
return o ? new
|
|
9079
|
+
return o ? new rr(this, e, t.append(o), $e.setFrom(r)) : null;
|
|
9065
9080
|
}
|
|
9066
9081
|
/**
|
|
9067
9082
|
Returns true if the given fragment is valid content for this node
|
|
@@ -9244,7 +9259,7 @@ class eg {
|
|
|
9244
9259
|
bound.
|
|
9245
9260
|
*/
|
|
9246
9261
|
nodeFromJSON(e) {
|
|
9247
|
-
return
|
|
9262
|
+
return rr.fromJSON(this, e);
|
|
9248
9263
|
}
|
|
9249
9264
|
/**
|
|
9250
9265
|
Deserialize a mark from its JSON representation. This method is
|
|
@@ -9427,7 +9442,7 @@ const $u = {
|
|
|
9427
9442
|
script: !0,
|
|
9428
9443
|
style: !0,
|
|
9429
9444
|
title: !0
|
|
9430
|
-
},
|
|
9445
|
+
}, Uu = { ol: !0, ul: !0 }, Wi = 1, Ki = 2, Wr = 4;
|
|
9431
9446
|
function El(n, e, t) {
|
|
9432
9447
|
return e != null ? (e ? Wi : 0) | (e === "full" ? Ki : 0) : n && n.whitespace == "pre" ? Wi | Ki : t & ~Wr;
|
|
9433
9448
|
}
|
|
@@ -9526,7 +9541,7 @@ class wl {
|
|
|
9526
9541
|
// none is found, the element's content nodes are added directly.
|
|
9527
9542
|
addElement(e, t) {
|
|
9528
9543
|
let r = e.nodeName.toLowerCase(), i;
|
|
9529
|
-
|
|
9544
|
+
Uu.hasOwnProperty(r) && this.parser.normalizeLists && ng(e);
|
|
9530
9545
|
let o = this.options.ruleFromNode && this.options.ruleFromNode(e) || (i = this.parser.matchTag(e, this, t));
|
|
9531
9546
|
if (o ? o.ignore : tg.hasOwnProperty(r))
|
|
9532
9547
|
this.findInside(e), this.ignoreFallback(e);
|
|
@@ -9762,7 +9777,7 @@ class wl {
|
|
|
9762
9777
|
function ng(n) {
|
|
9763
9778
|
for (let e = n.firstChild, t = null; e; e = e.nextSibling) {
|
|
9764
9779
|
let r = e.nodeType == 1 ? e.nodeName.toLowerCase() : null;
|
|
9765
|
-
r &&
|
|
9780
|
+
r && Uu.hasOwnProperty(r) && t ? (t.appendChild(e), e = t) : r == "li" ? t = e : r && (t = null);
|
|
9766
9781
|
}
|
|
9767
9782
|
}
|
|
9768
9783
|
function rg(n, e) {
|
|
@@ -9955,15 +9970,15 @@ function Tl(n) {
|
|
|
9955
9970
|
function is(n) {
|
|
9956
9971
|
return n.document || window.document;
|
|
9957
9972
|
}
|
|
9958
|
-
const
|
|
9973
|
+
const Hu = 65535, Vu = Math.pow(2, 16);
|
|
9959
9974
|
function ag(n, e) {
|
|
9960
9975
|
return n + e * Vu;
|
|
9961
9976
|
}
|
|
9962
9977
|
function kl(n) {
|
|
9963
|
-
return n &
|
|
9978
|
+
return n & Hu;
|
|
9964
9979
|
}
|
|
9965
9980
|
function lg(n) {
|
|
9966
|
-
return (n - (n &
|
|
9981
|
+
return (n - (n & Hu)) / Vu;
|
|
9967
9982
|
}
|
|
9968
9983
|
const ju = 1, Wu = 2, Di = 4, Ku = 8;
|
|
9969
9984
|
class Fs {
|
|
@@ -10276,7 +10291,7 @@ class qe {
|
|
|
10276
10291
|
try {
|
|
10277
10292
|
return qe.ok(e.replace(t, r, i));
|
|
10278
10293
|
} catch (o) {
|
|
10279
|
-
if (o instanceof
|
|
10294
|
+
if (o instanceof Ui)
|
|
10280
10295
|
return qe.fail(o.message);
|
|
10281
10296
|
throw o;
|
|
10282
10297
|
}
|
|
@@ -10749,7 +10764,7 @@ function xg(n, e, t = 1, r) {
|
|
|
10749
10764
|
}
|
|
10750
10765
|
n.step(new st(e, e, new pe(o.append(s), t, t), !0));
|
|
10751
10766
|
}
|
|
10752
|
-
function
|
|
10767
|
+
function Vn(n, e) {
|
|
10753
10768
|
let t = n.resolve(e), r = t.index();
|
|
10754
10769
|
return Gu(t.nodeBefore, t.nodeAfter) && t.parent.canReplace(r, r + 1);
|
|
10755
10770
|
}
|
|
@@ -10890,9 +10905,9 @@ class Cg {
|
|
|
10890
10905
|
let { content: e, openStart: t, openEnd: r } = this.unplaced, i = as(e, t);
|
|
10891
10906
|
if (i.childCount <= 1 && t > 0) {
|
|
10892
10907
|
let o = e.size - t <= t + i.size;
|
|
10893
|
-
this.unplaced = new pe(
|
|
10908
|
+
this.unplaced = new pe(Ur(e, t - 1, 1), t - 1, o ? t - 1 : r);
|
|
10894
10909
|
} else
|
|
10895
|
-
this.unplaced = new pe(
|
|
10910
|
+
this.unplaced = new pe(Ur(e, t, 1), t, r);
|
|
10896
10911
|
}
|
|
10897
10912
|
// Move content from the unplaced slice at `sliceDepth` to the
|
|
10898
10913
|
// frontier node at `frontierDepth`. Close that frontier node when
|
|
@@ -10917,12 +10932,12 @@ class Cg {
|
|
|
10917
10932
|
c++, (c > 1 || a == 0 || m.content.size) && (d = g, u.push(Yu(m.mark(f.allowedMarks(m.marks)), c == 1 ? a : 0, c == l.childCount ? h : -1)));
|
|
10918
10933
|
}
|
|
10919
10934
|
let p = c == l.childCount;
|
|
10920
|
-
p || (h = -1), this.placed =
|
|
10935
|
+
p || (h = -1), this.placed = Hr(this.placed, t, ie.from(u)), this.frontier[t].match = d, p && h < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
|
|
10921
10936
|
for (let m = 0, g = l; m < h; m++) {
|
|
10922
10937
|
let x = g.lastChild;
|
|
10923
10938
|
this.frontier.push({ type: x.type, match: x.contentMatchAt(x.childCount) }), g = x.content;
|
|
10924
10939
|
}
|
|
10925
|
-
this.unplaced = p ? e == 0 ? pe.empty : new pe(
|
|
10940
|
+
this.unplaced = p ? e == 0 ? pe.empty : new pe(Ur(s.content, e - 1, 1), e - 1, h < 0 ? s.openEnd : e - 1) : new pe(Ur(s.content, e, c), s.openStart, s.openEnd);
|
|
10926
10941
|
}
|
|
10927
10942
|
mustMoveInline() {
|
|
10928
10943
|
if (!this.$to.parent.isTextblock)
|
|
@@ -10955,7 +10970,7 @@ class Cg {
|
|
|
10955
10970
|
return null;
|
|
10956
10971
|
for (; this.depth > t.depth; )
|
|
10957
10972
|
this.closeFrontierNode();
|
|
10958
|
-
t.fit.childCount && (this.placed =
|
|
10973
|
+
t.fit.childCount && (this.placed = Hr(this.placed, t.depth, t.fit)), e = t.move;
|
|
10959
10974
|
for (let r = t.depth + 1; r <= e.depth; r++) {
|
|
10960
10975
|
let i = e.node(r), o = i.type.contentMatch.fillBefore(i.content, !0, e.index(r));
|
|
10961
10976
|
this.openFrontierNode(i.type, i.attrs, o);
|
|
@@ -10964,18 +10979,18 @@ class Cg {
|
|
|
10964
10979
|
}
|
|
10965
10980
|
openFrontierNode(e, t = null, r) {
|
|
10966
10981
|
let i = this.frontier[this.depth];
|
|
10967
|
-
i.match = i.match.matchType(e), this.placed =
|
|
10982
|
+
i.match = i.match.matchType(e), this.placed = Hr(this.placed, this.depth, ie.from(e.create(t, r))), this.frontier.push({ type: e, match: e.contentMatch });
|
|
10968
10983
|
}
|
|
10969
10984
|
closeFrontierNode() {
|
|
10970
10985
|
let t = this.frontier.pop().match.fillBefore(ie.empty, !0);
|
|
10971
|
-
t.childCount && (this.placed =
|
|
10986
|
+
t.childCount && (this.placed = Hr(this.placed, this.frontier.length, t));
|
|
10972
10987
|
}
|
|
10973
10988
|
}
|
|
10974
|
-
function Hr(n, e, t) {
|
|
10975
|
-
return e == 0 ? n.cutByIndex(t, n.childCount) : n.replaceChild(0, n.firstChild.copy(Hr(n.firstChild.content, e - 1, t)));
|
|
10976
|
-
}
|
|
10977
10989
|
function Ur(n, e, t) {
|
|
10978
|
-
return e == 0 ? n.
|
|
10990
|
+
return e == 0 ? n.cutByIndex(t, n.childCount) : n.replaceChild(0, n.firstChild.copy(Ur(n.firstChild.content, e - 1, t)));
|
|
10991
|
+
}
|
|
10992
|
+
function Hr(n, e, t) {
|
|
10993
|
+
return e == 0 ? n.append(t) : n.replaceChild(n.childCount - 1, n.lastChild.copy(Hr(n.lastChild.content, e - 1, t)));
|
|
10979
10994
|
}
|
|
10980
10995
|
function as(n, e) {
|
|
10981
10996
|
for (let t = 0; t < e; t++)
|
|
@@ -12138,7 +12153,7 @@ class Sr {
|
|
|
12138
12153
|
let i = new us(e.schema, e.plugins), o = new Sr(i);
|
|
12139
12154
|
return i.fields.forEach((s) => {
|
|
12140
12155
|
if (s.name == "doc")
|
|
12141
|
-
o.doc =
|
|
12156
|
+
o.doc = rr.fromJSON(e.schema, t.doc);
|
|
12142
12157
|
else if (s.name == "selection")
|
|
12143
12158
|
o.selection = Pe.fromJSON(o.doc, t.selection);
|
|
12144
12159
|
else if (s.name == "storedMarks")
|
|
@@ -12254,10 +12269,10 @@ function xa(n) {
|
|
|
12254
12269
|
;
|
|
12255
12270
|
return e && e.node && e.node.isBlock && (e.dom == n || e.contentDOM == n);
|
|
12256
12271
|
}
|
|
12257
|
-
const
|
|
12272
|
+
const Uo = function(n) {
|
|
12258
12273
|
return n.focusNode && lr(n.focusNode, n.focusOffset, n.anchorNode, n.anchorOffset);
|
|
12259
12274
|
};
|
|
12260
|
-
function
|
|
12275
|
+
function Xn(n, e) {
|
|
12261
12276
|
let t = document.createEvent("Event");
|
|
12262
12277
|
return t.initEvent("keydown", !0, !0), t.keyCode = n, t.key = t.code = e, t;
|
|
12263
12278
|
}
|
|
@@ -12281,10 +12296,10 @@ function Bg(n, e, t) {
|
|
|
12281
12296
|
return { node: r.startContainer, offset: r.startOffset };
|
|
12282
12297
|
}
|
|
12283
12298
|
}
|
|
12284
|
-
const un = typeof navigator < "u" ? navigator : null, Fl = typeof document < "u" ? document : null,
|
|
12285
|
-
Zt && +(/Firefox\/(\d+)/.exec(
|
|
12286
|
-
const
|
|
12287
|
-
function
|
|
12299
|
+
const un = typeof navigator < "u" ? navigator : null, Fl = typeof document < "u" ? document : null, jn = un && un.userAgent || "", zs = /Edge\/(\d+)/.exec(jn), ed = /MSIE \d/.exec(jn), $s = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(jn), Tt = !!(ed || $s || zs), Bn = ed ? document.documentMode : $s ? +$s[1] : zs ? +zs[1] : 0, Zt = !Tt && /gecko\/(\d+)/i.test(jn);
|
|
12300
|
+
Zt && +(/Firefox\/(\d+)/.exec(jn) || [0, 0])[1];
|
|
12301
|
+
const Us = !Tt && /Chrome\/(\d+)/.exec(jn), ft = !!Us, zg = Us ? +Us[1] : 0, bt = !Tt && !!un && /Apple Computer/.test(un.vendor), Mr = bt && (/Mobile\/\w+/.test(jn) || !!un && un.maxTouchPoints > 2), Ut = Mr || (un ? /Mac/.test(un.platform) : !1), $g = un ? /Win/.test(un.platform) : !1, Jt = /Android \d/.test(jn), vi = !!Fl && "webkitFontSmoothing" in Fl.documentElement.style, Ug = vi ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
12302
|
+
function Hg(n) {
|
|
12288
12303
|
return {
|
|
12289
12304
|
left: 0,
|
|
12290
12305
|
right: n.documentElement.clientWidth,
|
|
@@ -12309,7 +12324,7 @@ function Bl(n, e, t) {
|
|
|
12309
12324
|
for (let s = t || n.dom; s; s = ri(s)) {
|
|
12310
12325
|
if (s.nodeType != 1)
|
|
12311
12326
|
continue;
|
|
12312
|
-
let l = s, a = l == o.body, c = a ?
|
|
12327
|
+
let l = s, a = l == o.body, c = a ? Hg(o) : Vg(l), u = 0, d = 0;
|
|
12313
12328
|
if (e.top < c.top + gn(r, "top") ? d = -(c.top - e.top + gn(i, "top")) : e.bottom > c.bottom - gn(r, "bottom") && (d = e.bottom - e.top > c.bottom - c.top ? e.top + gn(i, "top") - c.top : e.bottom - c.bottom + gn(i, "bottom")), e.left < c.left + gn(r, "left") ? u = -(c.left - e.left + gn(i, "left")) : e.right > c.right - gn(r, "right") && (u = e.right - c.right + gn(i, "right")), u || d)
|
|
12314
12329
|
if (a)
|
|
12315
12330
|
o.defaultView.scrollBy(u, d);
|
|
@@ -12606,11 +12621,11 @@ function e1(n, e, t) {
|
|
|
12606
12621
|
return f != null && (l.caretBidiLevel = f), g;
|
|
12607
12622
|
});
|
|
12608
12623
|
}
|
|
12609
|
-
let $l = null,
|
|
12624
|
+
let $l = null, Ul = null, Hl = !1;
|
|
12610
12625
|
function t1(n, e, t) {
|
|
12611
|
-
return $l == e &&
|
|
12626
|
+
return $l == e && Ul == t ? Hl : ($l = e, Ul = t, Hl = t == "up" || t == "down" ? qg(n, e, t) : e1(n, e, t));
|
|
12612
12627
|
}
|
|
12613
|
-
const Vt = 0, Vl = 1,
|
|
12628
|
+
const Vt = 0, Vl = 1, Qn = 2, dn = 3;
|
|
12614
12629
|
class yi {
|
|
12615
12630
|
constructor(e, t, r, i) {
|
|
12616
12631
|
this.parent = e, this.children = t, this.dom = r, this.contentDOM = i, this.dirty = Vt, r.pmViewDesc = this;
|
|
@@ -12920,19 +12935,19 @@ class yi {
|
|
|
12920
12935
|
if (r == s ? e <= s && t >= r : e < s && t > r) {
|
|
12921
12936
|
let l = r + o.border, a = s - o.border;
|
|
12922
12937
|
if (e >= l && t <= a) {
|
|
12923
|
-
this.dirty = e == r || t == s ?
|
|
12938
|
+
this.dirty = e == r || t == s ? Qn : Vl, e == l && t == a && (o.contentLost || o.dom.parentNode != this.contentDOM) ? o.dirty = dn : o.markDirty(e - l, t - l);
|
|
12924
12939
|
return;
|
|
12925
12940
|
} else
|
|
12926
|
-
o.dirty = o.dom == o.contentDOM && o.dom.parentNode == this.contentDOM && !o.children.length ?
|
|
12941
|
+
o.dirty = o.dom == o.contentDOM && o.dom.parentNode == this.contentDOM && !o.children.length ? Qn : dn;
|
|
12927
12942
|
}
|
|
12928
12943
|
r = s;
|
|
12929
12944
|
}
|
|
12930
|
-
this.dirty =
|
|
12945
|
+
this.dirty = Qn;
|
|
12931
12946
|
}
|
|
12932
12947
|
markParentsDirty() {
|
|
12933
12948
|
let e = 1;
|
|
12934
12949
|
for (let t = this.parent; t; t = t.parent, e++) {
|
|
12935
|
-
let r = e == 1 ?
|
|
12950
|
+
let r = e == 1 ? Qn : Vl;
|
|
12936
12951
|
t.dirty < r && (t.dirty = r);
|
|
12937
12952
|
}
|
|
12938
12953
|
}
|
|
@@ -13059,7 +13074,7 @@ class zn extends yi {
|
|
|
13059
13074
|
u || ({ dom: u, contentDOM: d } = ln.renderSpec(document, t.type.spec.toDOM(t)));
|
|
13060
13075
|
!d && !t.isText && u.nodeName != "BR" && (u.hasAttribute("contenteditable") || (u.contentEditable = "false"), t.type.spec.draggable && (u.draggable = !0));
|
|
13061
13076
|
let f = u;
|
|
13062
|
-
return u = dd(u, r, t), c ? a = new r1(e, t, r, i, u, d || null, f, c, o, s + 1) : t.isText ? new
|
|
13077
|
+
return u = dd(u, r, t), c ? a = new r1(e, t, r, i, u, d || null, f, c, o, s + 1) : t.isText ? new Ho(e, t, r, i, u, f, o) : new zn(e, t, r, i, u, d || null, f, o, s + 1);
|
|
13063
13078
|
}
|
|
13064
13079
|
parseRule() {
|
|
13065
13080
|
if (this.node.type.spec.reparseInView)
|
|
@@ -13102,7 +13117,7 @@ class zn extends yi {
|
|
|
13102
13117
|
a.syncToMarks(c.marks, r, e);
|
|
13103
13118
|
let h;
|
|
13104
13119
|
a.findNodeMatch(c, u, d, f) || l && e.state.selection.from > i && e.state.selection.to < i + c.nodeSize && (h = a.findIndexWithChild(o.node)) > -1 && a.updateNodeAt(c, u, d, h, e) || a.updateNextNode(c, u, d, e, f, i) || a.addNode(c, u, d, e, i), i += c.nodeSize;
|
|
13105
|
-
}), a.syncToMarks([], r, e), this.node.isTextblock && a.addTextblockHacks(), a.destroyRest(), (a.changed || this.dirty ==
|
|
13120
|
+
}), a.syncToMarks([], r, e), this.node.isTextblock && a.addTextblockHacks(), a.destroyRest(), (a.changed || this.dirty == Qn) && (s && this.protectLocalComposition(e, s), cd(this.contentDOM, this.children, e), Mr && c1(this.dom));
|
|
13106
13121
|
}
|
|
13107
13122
|
localCompositionInfo(e, t) {
|
|
13108
13123
|
let { from: r, to: i } = e.state.selection;
|
|
@@ -13143,7 +13158,7 @@ class zn extends yi {
|
|
|
13143
13158
|
if (Vs(e, this.outerDeco))
|
|
13144
13159
|
return;
|
|
13145
13160
|
let t = this.nodeDOM.nodeType != 1, r = this.dom;
|
|
13146
|
-
this.dom = ud(this.dom, this.nodeDOM,
|
|
13161
|
+
this.dom = ud(this.dom, this.nodeDOM, Hs(this.outerDeco, this.node, t), Hs(e, this.node, t)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
|
|
13147
13162
|
}
|
|
13148
13163
|
// Mark this node as being the selected node.
|
|
13149
13164
|
selectNode() {
|
|
@@ -13162,7 +13177,7 @@ function jl(n, e, t, r, i) {
|
|
|
13162
13177
|
let o = new zn(void 0, n, e, t, r, r, r, i, 0);
|
|
13163
13178
|
return o.contentDOM && o.updateChildren(i, 0), o;
|
|
13164
13179
|
}
|
|
13165
|
-
class
|
|
13180
|
+
class Ho extends zn {
|
|
13166
13181
|
constructor(e, t, r, i, o, s, l) {
|
|
13167
13182
|
super(e, t, r, i, o, null, s, l, 0);
|
|
13168
13183
|
}
|
|
@@ -13193,7 +13208,7 @@ class Uo extends zn {
|
|
|
13193
13208
|
}
|
|
13194
13209
|
slice(e, t, r) {
|
|
13195
13210
|
let i = this.node.cut(e, t), o = document.createTextNode(i.text);
|
|
13196
|
-
return new
|
|
13211
|
+
return new Ho(this.parent, i, this.outerDeco, this.innerDeco, o, o, r);
|
|
13197
13212
|
}
|
|
13198
13213
|
markDirty(e, t) {
|
|
13199
13214
|
super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty = dn);
|
|
@@ -13274,11 +13289,11 @@ const Gr = function(n) {
|
|
|
13274
13289
|
n && (this.nodeName = n);
|
|
13275
13290
|
};
|
|
13276
13291
|
Gr.prototype = /* @__PURE__ */ Object.create(null);
|
|
13277
|
-
const
|
|
13278
|
-
function
|
|
13292
|
+
const qn = [new Gr()];
|
|
13293
|
+
function Hs(n, e, t) {
|
|
13279
13294
|
if (n.length == 0)
|
|
13280
|
-
return
|
|
13281
|
-
let r = t ?
|
|
13295
|
+
return qn;
|
|
13296
|
+
let r = t ? qn[0] : new Gr(), i = [r];
|
|
13282
13297
|
for (let o = 0; o < n.length; o++) {
|
|
13283
13298
|
let s = n[o].type.attrs;
|
|
13284
13299
|
if (s) {
|
|
@@ -13292,16 +13307,16 @@ function Us(n, e, t) {
|
|
|
13292
13307
|
return i;
|
|
13293
13308
|
}
|
|
13294
13309
|
function ud(n, e, t, r) {
|
|
13295
|
-
if (t ==
|
|
13310
|
+
if (t == qn && r == qn)
|
|
13296
13311
|
return e;
|
|
13297
13312
|
let i = e;
|
|
13298
13313
|
for (let o = 0; o < r.length; o++) {
|
|
13299
13314
|
let s = r[o], l = t[o];
|
|
13300
13315
|
if (o) {
|
|
13301
13316
|
let a;
|
|
13302
|
-
l && l.nodeName == s.nodeName && i != n && (a = i.parentNode) && a.nodeName.toLowerCase() == s.nodeName || (a = document.createElement(s.nodeName), a.pmIsDeco = !0, a.appendChild(i), l =
|
|
13317
|
+
l && l.nodeName == s.nodeName && i != n && (a = i.parentNode) && a.nodeName.toLowerCase() == s.nodeName || (a = document.createElement(s.nodeName), a.pmIsDeco = !0, a.appendChild(i), l = qn[0]), i = a;
|
|
13303
13318
|
}
|
|
13304
|
-
i1(i, l ||
|
|
13319
|
+
i1(i, l || qn[0], s);
|
|
13305
13320
|
}
|
|
13306
13321
|
return i;
|
|
13307
13322
|
}
|
|
@@ -13328,7 +13343,7 @@ function i1(n, e, t) {
|
|
|
13328
13343
|
}
|
|
13329
13344
|
}
|
|
13330
13345
|
function dd(n, e, t) {
|
|
13331
|
-
return ud(n, n,
|
|
13346
|
+
return ud(n, n, qn, Hs(e, t, n.nodeType != 1));
|
|
13332
13347
|
}
|
|
13333
13348
|
function Vs(n, e) {
|
|
13334
13349
|
if (n.length != e.length)
|
|
@@ -13404,7 +13419,7 @@ class o1 {
|
|
|
13404
13419
|
}
|
|
13405
13420
|
updateNodeAt(e, t, r, i, o) {
|
|
13406
13421
|
let s = this.top.children[i];
|
|
13407
|
-
return s.dirty == dn && s.dom == s.contentDOM && (s.dirty =
|
|
13422
|
+
return s.dirty == dn && s.dom == s.contentDOM && (s.dirty = Qn), s.update(e, t, r, o) ? (this.destroyBetween(this.index, i), this.index++, !0) : !1;
|
|
13408
13423
|
}
|
|
13409
13424
|
findIndexWithChild(e) {
|
|
13410
13425
|
for (; ; ) {
|
|
@@ -13436,7 +13451,7 @@ class o1 {
|
|
|
13436
13451
|
if (!f && a.update(e, t, r, i))
|
|
13437
13452
|
return this.destroyBetween(this.index, l), a.dom != u && (this.changed = !0), this.index++, !0;
|
|
13438
13453
|
if (!f && (d = this.recreateWrapper(a, e, t, r, i, s)))
|
|
13439
|
-
return this.top.children[this.index] = d, d.contentDOM && (d.dirty =
|
|
13454
|
+
return this.top.children[this.index] = d, d.contentDOM && (d.dirty = Qn, d.updateChildren(i, s + 1), d.dirty = Vt), this.changed = !0, this.index++, !0;
|
|
13440
13455
|
break;
|
|
13441
13456
|
}
|
|
13442
13457
|
}
|
|
@@ -13476,7 +13491,7 @@ class o1 {
|
|
|
13476
13491
|
for (; e instanceof cr; )
|
|
13477
13492
|
t = e, e = t.children[t.children.length - 1];
|
|
13478
13493
|
(!e || // Empty textblock
|
|
13479
|
-
!(e instanceof
|
|
13494
|
+
!(e instanceof Ho) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((bt || ft) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
|
|
13480
13495
|
}
|
|
13481
13496
|
addHackNode(e, t) {
|
|
13482
13497
|
if (t == this.top && this.index < t.children.length && t.children[this.index].matchesHack(e))
|
|
@@ -13629,7 +13644,7 @@ function Ea(n, e = null) {
|
|
|
13629
13644
|
if (s < 0)
|
|
13630
13645
|
return null;
|
|
13631
13646
|
let l = r.resolve(s), a, c;
|
|
13632
|
-
if (
|
|
13647
|
+
if (Uo(t)) {
|
|
13633
13648
|
for (a = l; i && !i.node; )
|
|
13634
13649
|
i = i.parent;
|
|
13635
13650
|
let u = i.node;
|
|
@@ -13753,7 +13768,7 @@ function Zl(n, e, t) {
|
|
|
13753
13768
|
if (n.endOfTextblock(e > 0 ? "forward" : "backward")) {
|
|
13754
13769
|
let i = Ws(n.state, e);
|
|
13755
13770
|
return i && i instanceof we ? In(n, i) : !1;
|
|
13756
|
-
} else if (!(
|
|
13771
|
+
} else if (!(Ut && t.indexOf("m") > -1)) {
|
|
13757
13772
|
let i = r.$head, o = i.textOffset ? null : e < 0 ? i.nodeBefore : i.nodeAfter, s;
|
|
13758
13773
|
if (!o || o.isText)
|
|
13759
13774
|
return !1;
|
|
@@ -13883,7 +13898,7 @@ function Ks(n, e, t) {
|
|
|
13883
13898
|
(s = v1(e, t)) ? (e = s, t = 0) : (o = y1(e, t)) && (e = o, t = o.nodeValue.length);
|
|
13884
13899
|
}
|
|
13885
13900
|
let r = n.domSelection();
|
|
13886
|
-
if (
|
|
13901
|
+
if (Uo(r)) {
|
|
13887
13902
|
let o = document.createRange();
|
|
13888
13903
|
o.setEnd(e, t), o.setStart(e, t), r.removeAllRanges(), r.addRange(o);
|
|
13889
13904
|
} else
|
|
@@ -13913,7 +13928,7 @@ function Ql(n, e) {
|
|
|
13913
13928
|
}
|
|
13914
13929
|
function ql(n, e, t) {
|
|
13915
13930
|
let r = n.state.selection;
|
|
13916
|
-
if (r instanceof Fe && !r.empty || t.indexOf("s") > -1 ||
|
|
13931
|
+
if (r instanceof Fe && !r.empty || t.indexOf("s") > -1 || Ut && t.indexOf("m") > -1)
|
|
13917
13932
|
return !1;
|
|
13918
13933
|
let { $from: i, $to: o } = r;
|
|
13919
13934
|
if (!i.parent.inlineContent || n.endOfTextblock(e < 0 ? "up" : "down")) {
|
|
@@ -13963,24 +13978,24 @@ function x1(n) {
|
|
|
13963
13978
|
}
|
|
13964
13979
|
function S1(n, e) {
|
|
13965
13980
|
let t = e.keyCode, r = x1(e);
|
|
13966
|
-
if (t == 8 ||
|
|
13981
|
+
if (t == 8 || Ut && t == 72 && r == "c")
|
|
13967
13982
|
return _l(n, -1) || hr(n, -1);
|
|
13968
|
-
if (t == 46 && !e.shiftKey ||
|
|
13983
|
+
if (t == 46 && !e.shiftKey || Ut && t == 68 && r == "c")
|
|
13969
13984
|
return _l(n, 1) || hr(n, 1);
|
|
13970
13985
|
if (t == 13 || t == 27)
|
|
13971
13986
|
return !0;
|
|
13972
|
-
if (t == 37 ||
|
|
13987
|
+
if (t == 37 || Ut && t == 66 && r == "c") {
|
|
13973
13988
|
let i = t == 37 ? Ql(n, n.state.selection.from) == "ltr" ? -1 : 1 : -1;
|
|
13974
13989
|
return Zl(n, i, r) || hr(n, i);
|
|
13975
|
-
} else if (t == 39 ||
|
|
13990
|
+
} else if (t == 39 || Ut && t == 70 && r == "c") {
|
|
13976
13991
|
let i = t == 39 ? Ql(n, n.state.selection.from) == "ltr" ? 1 : -1 : 1;
|
|
13977
13992
|
return Zl(n, i, r) || hr(n, i);
|
|
13978
13993
|
} else {
|
|
13979
|
-
if (t == 38 ||
|
|
13994
|
+
if (t == 38 || Ut && t == 80 && r == "c")
|
|
13980
13995
|
return ql(n, -1, r) || hr(n, -1);
|
|
13981
|
-
if (t == 40 ||
|
|
13996
|
+
if (t == 40 || Ut && t == 78 && r == "c")
|
|
13982
13997
|
return b1(n) || ql(n, 1, r) || hr(n, 1);
|
|
13983
|
-
if (r == (
|
|
13998
|
+
if (r == (Ut ? "m" : "c") && (t == 66 || t == 73 || t == 89 || t == 90))
|
|
13984
13999
|
return !0;
|
|
13985
14000
|
}
|
|
13986
14001
|
return !1;
|
|
@@ -14223,7 +14238,7 @@ St.keydown = (n, e) => {
|
|
|
14223
14238
|
if (t.keyCode != 229 && n.domObserver.forceFlush(), Mr && t.keyCode == 13 && !t.ctrlKey && !t.altKey && !t.metaKey) {
|
|
14224
14239
|
let r = Date.now();
|
|
14225
14240
|
n.input.lastIOSEnter = r, n.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
14226
|
-
n.input.lastIOSEnter == r && (n.someProp("handleKeyDown", (i) => i(n,
|
|
14241
|
+
n.input.lastIOSEnter == r && (n.someProp("handleKeyDown", (i) => i(n, Xn(13, "Enter"))), n.input.lastIOSEnter = 0);
|
|
14227
14242
|
}, 200);
|
|
14228
14243
|
} else
|
|
14229
14244
|
n.someProp("handleKeyDown", (r) => r(n, t)) || S1(n, t) ? t.preventDefault() : Fn(n, "key");
|
|
@@ -14233,7 +14248,7 @@ St.keyup = (n, e) => {
|
|
|
14233
14248
|
};
|
|
14234
14249
|
St.keypress = (n, e) => {
|
|
14235
14250
|
let t = e;
|
|
14236
|
-
if (Cd(n, t) || !t.charCode || t.ctrlKey && !t.altKey ||
|
|
14251
|
+
if (Cd(n, t) || !t.charCode || t.ctrlKey && !t.altKey || Ut && t.metaKey)
|
|
14237
14252
|
return;
|
|
14238
14253
|
if (n.someProp("handleKeyPress", (i) => i(n, t))) {
|
|
14239
14254
|
t.preventDefault();
|
|
@@ -14317,16 +14332,16 @@ function $1(n, e, t) {
|
|
|
14317
14332
|
function ka(n) {
|
|
14318
14333
|
return Ji(n);
|
|
14319
14334
|
}
|
|
14320
|
-
const wd =
|
|
14335
|
+
const wd = Ut ? "metaKey" : "ctrlKey";
|
|
14321
14336
|
xt.mousedown = (n, e) => {
|
|
14322
14337
|
let t = e;
|
|
14323
14338
|
n.input.shiftKey = t.shiftKey;
|
|
14324
14339
|
let r = ka(n), i = Date.now(), o = "singleClick";
|
|
14325
14340
|
i - n.input.lastClick.time < 500 && N1(t, n.input.lastClick) && !t[wd] && (n.input.lastClick.type == "singleClick" ? o = "doubleClick" : n.input.lastClick.type == "doubleClick" && (o = "tripleClick")), n.input.lastClick = { time: i, x: t.clientX, y: t.clientY, type: o };
|
|
14326
14341
|
let s = n.posAtCoords(Vo(t));
|
|
14327
|
-
s && (o == "singleClick" ? (n.input.mouseDown && n.input.mouseDown.done(), n.input.mouseDown = new
|
|
14342
|
+
s && (o == "singleClick" ? (n.input.mouseDown && n.input.mouseDown.done(), n.input.mouseDown = new U1(n, s, t, !!r)) : (o == "doubleClick" ? B1 : z1)(n, s.pos, s.inside, t) ? t.preventDefault() : Fn(n, "pointer"));
|
|
14328
14343
|
};
|
|
14329
|
-
class
|
|
14344
|
+
class U1 {
|
|
14330
14345
|
constructor(e, t, r, i) {
|
|
14331
14346
|
this.view = e, this.pos = t, this.event = r, this.flushed = i, this.delayedSelectionSync = !1, this.mightDrag = null, this.startDoc = e.state.doc, this.selectNode = !!r[wd], this.allowDefault = r.shiftKey;
|
|
14332
14347
|
let o, s;
|
|
@@ -14382,7 +14397,7 @@ xt.contextmenu = (n) => ka(n);
|
|
|
14382
14397
|
function Cd(n, e) {
|
|
14383
14398
|
return n.composing ? !0 : bt && Math.abs(e.timeStamp - n.input.compositionEndedAt) < 500 ? (n.input.compositionEndedAt = -2e8, !0) : !1;
|
|
14384
14399
|
}
|
|
14385
|
-
const
|
|
14400
|
+
const H1 = Jt ? 5e3 : -1;
|
|
14386
14401
|
St.compositionstart = St.compositionupdate = (n) => {
|
|
14387
14402
|
if (!n.composing) {
|
|
14388
14403
|
n.domObserver.flush();
|
|
@@ -14404,7 +14419,7 @@ St.compositionstart = St.compositionupdate = (n) => {
|
|
|
14404
14419
|
}
|
|
14405
14420
|
n.input.composing = !0;
|
|
14406
14421
|
}
|
|
14407
|
-
Td(n,
|
|
14422
|
+
Td(n, H1);
|
|
14408
14423
|
};
|
|
14409
14424
|
St.compositionend = (n, e) => {
|
|
14410
14425
|
n.composing && (n.input.composing = !1, n.input.compositionEndedAt = e.timeStamp, n.input.compositionPendingChanges = n.domObserver.pendingRecords().length ? n.input.compositionID : 0, n.input.compositionPendingChanges && Promise.resolve().then(() => n.domObserver.flush()), n.input.compositionID++, Td(n, 20));
|
|
@@ -14439,7 +14454,7 @@ function j1(n, e) {
|
|
|
14439
14454
|
t.parentNode && t.parentNode.removeChild(t), n.focus();
|
|
14440
14455
|
}, 50);
|
|
14441
14456
|
}
|
|
14442
|
-
const ii = Tt && Bn < 15 || Mr &&
|
|
14457
|
+
const ii = Tt && Bn < 15 || Mr && Ug < 604;
|
|
14443
14458
|
xt.copy = St.cut = (n, e) => {
|
|
14444
14459
|
let t = e, r = n.state.selection, i = t.type == "cut";
|
|
14445
14460
|
if (r.empty)
|
|
@@ -14488,7 +14503,7 @@ class Od {
|
|
|
14488
14503
|
this.slice = e, this.move = t, this.node = r;
|
|
14489
14504
|
}
|
|
14490
14505
|
}
|
|
14491
|
-
const Md =
|
|
14506
|
+
const Md = Ut ? "altKey" : "ctrlKey";
|
|
14492
14507
|
xt.dragstart = (n, e) => {
|
|
14493
14508
|
let t = e, r = n.input.mouseDown;
|
|
14494
14509
|
if (r && r.done(), !t.dataTransfer)
|
|
@@ -14564,7 +14579,7 @@ xt.beforeinput = (n, e) => {
|
|
|
14564
14579
|
n.domObserver.flushSoon();
|
|
14565
14580
|
let { domChangeCount: r } = n.input;
|
|
14566
14581
|
setTimeout(() => {
|
|
14567
|
-
if (n.input.domChangeCount != r || (n.dom.blur(), n.focus(), n.someProp("handleKeyDown", (o) => o(n,
|
|
14582
|
+
if (n.input.domChangeCount != r || (n.dom.blur(), n.focus(), n.someProp("handleKeyDown", (o) => o(n, Xn(8, "Backspace")))))
|
|
14568
14583
|
return;
|
|
14569
14584
|
let { $cursor: i } = n.state.selection;
|
|
14570
14585
|
i && i.pos > 0 && n.dispatch(n.state.tr.delete(i.pos - 1, i.pos).scrollIntoView());
|
|
@@ -14586,11 +14601,11 @@ function si(n, e) {
|
|
|
14586
14601
|
}
|
|
14587
14602
|
class Yi {
|
|
14588
14603
|
constructor(e, t) {
|
|
14589
|
-
this.toDOM = e, this.spec = t ||
|
|
14604
|
+
this.toDOM = e, this.spec = t || ir, this.side = this.spec.side || 0;
|
|
14590
14605
|
}
|
|
14591
14606
|
map(e, t, r, i) {
|
|
14592
14607
|
let { pos: o, deleted: s } = e.mapResult(t.from + i, this.side < 0 ? -1 : 1);
|
|
14593
|
-
return s ? null : new
|
|
14608
|
+
return s ? null : new Ht(o - r, o - r, this);
|
|
14594
14609
|
}
|
|
14595
14610
|
valid() {
|
|
14596
14611
|
return !0;
|
|
@@ -14604,11 +14619,11 @@ class Yi {
|
|
|
14604
14619
|
}
|
|
14605
14620
|
class $n {
|
|
14606
14621
|
constructor(e, t) {
|
|
14607
|
-
this.attrs = e, this.spec = t ||
|
|
14622
|
+
this.attrs = e, this.spec = t || ir;
|
|
14608
14623
|
}
|
|
14609
14624
|
map(e, t, r, i) {
|
|
14610
14625
|
let o = e.map(t.from + i, this.spec.inclusiveStart ? -1 : 1) - r, s = e.map(t.to + i, this.spec.inclusiveEnd ? 1 : -1) - r;
|
|
14611
|
-
return o >= s ? null : new
|
|
14626
|
+
return o >= s ? null : new Ht(o, s, this);
|
|
14612
14627
|
}
|
|
14613
14628
|
valid(e, t) {
|
|
14614
14629
|
return t.from < t.to;
|
|
@@ -14624,14 +14639,14 @@ class $n {
|
|
|
14624
14639
|
}
|
|
14625
14640
|
class Aa {
|
|
14626
14641
|
constructor(e, t) {
|
|
14627
|
-
this.attrs = e, this.spec = t ||
|
|
14642
|
+
this.attrs = e, this.spec = t || ir;
|
|
14628
14643
|
}
|
|
14629
14644
|
map(e, t, r, i) {
|
|
14630
14645
|
let o = e.mapResult(t.from + i, 1);
|
|
14631
14646
|
if (o.deleted)
|
|
14632
14647
|
return null;
|
|
14633
14648
|
let s = e.mapResult(t.to + i, -1);
|
|
14634
|
-
return s.deleted || s.pos <= o.pos ? null : new
|
|
14649
|
+
return s.deleted || s.pos <= o.pos ? null : new Ht(o.pos - r, s.pos - r, this);
|
|
14635
14650
|
}
|
|
14636
14651
|
valid(e, t) {
|
|
14637
14652
|
let { index: r, offset: i } = e.content.findIndex(t.from), o;
|
|
@@ -14643,7 +14658,7 @@ class Aa {
|
|
|
14643
14658
|
destroy() {
|
|
14644
14659
|
}
|
|
14645
14660
|
}
|
|
14646
|
-
class
|
|
14661
|
+
class Ht {
|
|
14647
14662
|
/**
|
|
14648
14663
|
@internal
|
|
14649
14664
|
*/
|
|
@@ -14654,7 +14669,7 @@ class Ut {
|
|
|
14654
14669
|
@internal
|
|
14655
14670
|
*/
|
|
14656
14671
|
copy(e, t) {
|
|
14657
|
-
return new
|
|
14672
|
+
return new Ht(e, t, this.type);
|
|
14658
14673
|
}
|
|
14659
14674
|
/**
|
|
14660
14675
|
@internal
|
|
@@ -14677,14 +14692,14 @@ class Ut {
|
|
|
14677
14692
|
widget's current document position.
|
|
14678
14693
|
*/
|
|
14679
14694
|
static widget(e, t, r) {
|
|
14680
|
-
return new
|
|
14695
|
+
return new Ht(e, e, new Yi(t, r));
|
|
14681
14696
|
}
|
|
14682
14697
|
/**
|
|
14683
14698
|
Creates an inline decoration, which adds the given attributes to
|
|
14684
14699
|
each inline node between `from` and `to`.
|
|
14685
14700
|
*/
|
|
14686
14701
|
static inline(e, t, r, i) {
|
|
14687
|
-
return new
|
|
14702
|
+
return new Ht(e, t, new $n(r, i));
|
|
14688
14703
|
}
|
|
14689
14704
|
/**
|
|
14690
14705
|
Creates a node decoration. `from` and `to` should point precisely
|
|
@@ -14692,7 +14707,7 @@ class Ut {
|
|
|
14692
14707
|
node, will receive the given attributes.
|
|
14693
14708
|
*/
|
|
14694
14709
|
static node(e, t, r, i) {
|
|
14695
|
-
return new
|
|
14710
|
+
return new Ht(e, t, new Aa(r, i));
|
|
14696
14711
|
}
|
|
14697
14712
|
/**
|
|
14698
14713
|
The spec provided when creating this decoration. Can be useful
|
|
@@ -14714,7 +14729,7 @@ class Ut {
|
|
|
14714
14729
|
return this.type instanceof Yi;
|
|
14715
14730
|
}
|
|
14716
14731
|
}
|
|
14717
|
-
const yr = [],
|
|
14732
|
+
const yr = [], ir = {};
|
|
14718
14733
|
class et {
|
|
14719
14734
|
/**
|
|
14720
14735
|
@internal
|
|
@@ -14728,7 +14743,7 @@ class et {
|
|
|
14728
14743
|
you must make a copy if you want need to preserve that.
|
|
14729
14744
|
*/
|
|
14730
14745
|
static create(e, t) {
|
|
14731
|
-
return t.length ? Xi(t, e, 0,
|
|
14746
|
+
return t.length ? Xi(t, e, 0, ir) : ut;
|
|
14732
14747
|
}
|
|
14733
14748
|
/**
|
|
14734
14749
|
Find all decorations in this set which touch the given range
|
|
@@ -14758,7 +14773,7 @@ class et {
|
|
|
14758
14773
|
document.
|
|
14759
14774
|
*/
|
|
14760
14775
|
map(e, t, r) {
|
|
14761
|
-
return this == ut || e.maps.length == 0 ? this : this.mapInner(e, t, 0, 0, r ||
|
|
14776
|
+
return this == ut || e.maps.length == 0 ? this : this.mapInner(e, t, 0, 0, r || ir);
|
|
14762
14777
|
}
|
|
14763
14778
|
/**
|
|
14764
14779
|
@internal
|
|
@@ -14769,7 +14784,7 @@ class et {
|
|
|
14769
14784
|
let a = this.local[l].map(e, r, i);
|
|
14770
14785
|
a && a.type.valid(t, a) ? (s || (s = [])).push(a) : o.onRemove && o.onRemove(this.local[l].spec);
|
|
14771
14786
|
}
|
|
14772
|
-
return this.children.length ? G1(this.children, s || [], e, t, r, i, o) : s ? new et(s.sort(
|
|
14787
|
+
return this.children.length ? G1(this.children, s || [], e, t, r, i, o) : s ? new et(s.sort(or), yr) : ut;
|
|
14773
14788
|
}
|
|
14774
14789
|
/**
|
|
14775
14790
|
Add the given array of decorations to the ones in the set,
|
|
@@ -14787,13 +14802,13 @@ class et {
|
|
|
14787
14802
|
if (u = Rd(t, l, c)) {
|
|
14788
14803
|
for (i || (i = this.children.slice()); o < i.length && i[o] < a; )
|
|
14789
14804
|
o += 3;
|
|
14790
|
-
i[o] == a ? i[o + 2] = i[o + 2].addInner(l, u, c + 1) : i.splice(o, 0, a, a + l.nodeSize, Xi(u, l, c + 1,
|
|
14805
|
+
i[o] == a ? i[o + 2] = i[o + 2].addInner(l, u, c + 1) : i.splice(o, 0, a, a + l.nodeSize, Xi(u, l, c + 1, ir)), o += 3;
|
|
14791
14806
|
}
|
|
14792
14807
|
});
|
|
14793
14808
|
let s = Id(o ? Dd(t) : t, -r);
|
|
14794
14809
|
for (let l = 0; l < s.length; l++)
|
|
14795
14810
|
s[l].type.valid(e, s[l]) || s.splice(l--, 1);
|
|
14796
|
-
return new et(s.length ? this.local.concat(s).sort(
|
|
14811
|
+
return new et(s.length ? this.local.concat(s).sort(or) : this.local, i || this.children);
|
|
14797
14812
|
}
|
|
14798
14813
|
/**
|
|
14799
14814
|
Create a new set that contains the decorations in this set, minus
|
|
@@ -14845,7 +14860,7 @@ class et {
|
|
|
14845
14860
|
}
|
|
14846
14861
|
}
|
|
14847
14862
|
if (i) {
|
|
14848
|
-
let l = new et(i.sort(
|
|
14863
|
+
let l = new et(i.sort(or), yr);
|
|
14849
14864
|
return r ? new Dn([l, r]) : l;
|
|
14850
14865
|
}
|
|
14851
14866
|
return r || ut;
|
|
@@ -14894,7 +14909,7 @@ class Dn {
|
|
|
14894
14909
|
this.members = e;
|
|
14895
14910
|
}
|
|
14896
14911
|
map(e, t) {
|
|
14897
|
-
const r = this.members.map((i) => i.map(e, t,
|
|
14912
|
+
const r = this.members.map((i) => i.map(e, t, ir));
|
|
14898
14913
|
return Dn.from(r);
|
|
14899
14914
|
}
|
|
14900
14915
|
forChild(e, t) {
|
|
@@ -14928,7 +14943,7 @@ class Dn {
|
|
|
14928
14943
|
t.push(o[s]);
|
|
14929
14944
|
}
|
|
14930
14945
|
}
|
|
14931
|
-
return t ? Oa(r ? t : t.sort(
|
|
14946
|
+
return t ? Oa(r ? t : t.sort(or)) : yr;
|
|
14932
14947
|
}
|
|
14933
14948
|
// Create a group for the given array of decoration sets, or return
|
|
14934
14949
|
// a single set when possible.
|
|
@@ -14990,7 +15005,7 @@ function G1(n, e, t, r, i, o, s) {
|
|
|
14990
15005
|
l.splice(f, 0, u.children[d], u.children[d + 1], u.children[d + 2]);
|
|
14991
15006
|
}
|
|
14992
15007
|
}
|
|
14993
|
-
return new et(e.sort(
|
|
15008
|
+
return new et(e.sort(or), l);
|
|
14994
15009
|
}
|
|
14995
15010
|
function Id(n, e) {
|
|
14996
15011
|
if (!e || !n.length)
|
|
@@ -14998,7 +15013,7 @@ function Id(n, e) {
|
|
|
14998
15013
|
let t = [];
|
|
14999
15014
|
for (let r = 0; r < n.length; r++) {
|
|
15000
15015
|
let i = n[r];
|
|
15001
|
-
t.push(new
|
|
15016
|
+
t.push(new Ht(i.from + e, i.to + e, i.type));
|
|
15002
15017
|
}
|
|
15003
15018
|
return t;
|
|
15004
15019
|
}
|
|
@@ -15039,12 +15054,12 @@ function Xi(n, e, t, r) {
|
|
|
15039
15054
|
u != ut && i.push(a, a + l.nodeSize, u);
|
|
15040
15055
|
}
|
|
15041
15056
|
});
|
|
15042
|
-
let s = Id(o ? Dd(n) : n, -t).sort(
|
|
15057
|
+
let s = Id(o ? Dd(n) : n, -t).sort(or);
|
|
15043
15058
|
for (let l = 0; l < s.length; l++)
|
|
15044
15059
|
s[l].type.valid(e, s[l]) || (r.onRemove && r.onRemove(s[l].spec), s.splice(l--, 1));
|
|
15045
15060
|
return s.length || i.length ? new et(s, i) : ut;
|
|
15046
15061
|
}
|
|
15047
|
-
function
|
|
15062
|
+
function or(n, e) {
|
|
15048
15063
|
return n.from - e.from || n.to - e.to;
|
|
15049
15064
|
}
|
|
15050
15065
|
function Oa(n) {
|
|
@@ -15066,7 +15081,7 @@ function Oa(n) {
|
|
|
15066
15081
|
return e;
|
|
15067
15082
|
}
|
|
15068
15083
|
function rc(n, e, t) {
|
|
15069
|
-
for (; e < n.length &&
|
|
15084
|
+
for (; e < n.length && or(t, n[e]) > 0; )
|
|
15070
15085
|
e++;
|
|
15071
15086
|
n.splice(e, 0, t);
|
|
15072
15087
|
}
|
|
@@ -15200,7 +15215,7 @@ class Q1 {
|
|
|
15200
15215
|
}
|
|
15201
15216
|
}
|
|
15202
15217
|
let c = null;
|
|
15203
|
-
o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 &&
|
|
15218
|
+
o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Uo(r) && (c = Ea(e)) && c.eq(Pe.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, En(e), this.currentSelection.set(r), e.scrollToSelection()) : (o > -1 || i) && (o > -1 && (e.docView.markDirty(o, s), q1(e)), this.handleDOMChange(o, s, l, a), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || En(e), this.currentSelection.set(r));
|
|
15204
15219
|
}
|
|
15205
15220
|
registerMutation(e, t) {
|
|
15206
15221
|
if (t.indexOf(e.target) > -1)
|
|
@@ -15253,7 +15268,7 @@ function _1(n) {
|
|
|
15253
15268
|
}
|
|
15254
15269
|
function e0(n, e, t) {
|
|
15255
15270
|
let { node: r, fromOffset: i, toOffset: o, from: s, to: l } = n.docView.parseRange(e, t), a = n.domSelectionRange(), c, u = a.anchorNode;
|
|
15256
|
-
if (u && n.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: a.anchorOffset }],
|
|
15271
|
+
if (u && n.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: a.anchorOffset }], Uo(a) || c.push({ node: a.focusNode, offset: a.focusOffset })), ft && n.input.lastKeyCode === 8)
|
|
15257
15272
|
for (let g = o; g > i; g--) {
|
|
15258
15273
|
let x = r.childNodes[g - 1], E = x.pmViewDesc;
|
|
15259
15274
|
if (x.nodeName == "BR" && !E) {
|
|
@@ -15300,7 +15315,7 @@ function r0(n, e, t, r, i) {
|
|
|
15300
15315
|
if (n.input.compositionPendingChanges = 0, e < 0) {
|
|
15301
15316
|
let $ = n.input.lastSelectionTime > Date.now() - 50 ? n.input.lastSelectionOrigin : null, B = Ea(n, $);
|
|
15302
15317
|
if (B && !n.state.selection.eq(B)) {
|
|
15303
|
-
if (ft && Jt && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (L) => L(n,
|
|
15318
|
+
if (ft && Jt && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (L) => L(n, Xn(13, "Enter"))))
|
|
15304
15319
|
return;
|
|
15305
15320
|
let P = n.state.tr.setSelection(B);
|
|
15306
15321
|
$ == "pointer" ? P.setMeta("pointer", !0) : $ == "key" && P.scrollIntoView(), o && P.setMeta("composition", o), n.dispatch(P);
|
|
@@ -15312,7 +15327,7 @@ function r0(n, e, t, r, i) {
|
|
|
15312
15327
|
let a = n.state.selection, c = e0(n, e, t), u = n.state.doc, d = u.slice(c.from, c.to), f, h;
|
|
15313
15328
|
n.input.lastKeyCode === 8 && Date.now() - 100 < n.input.lastKeyCodeTime ? (f = n.state.selection.to, h = "end") : (f = n.state.selection.from, h = "start"), n.input.lastKeyCode = null;
|
|
15314
15329
|
let p = s0(d.content, c.doc.content, c.from, f, h);
|
|
15315
|
-
if ((Mr && n.input.lastIOSEnter > Date.now() - 225 || Jt) && i.some(($) => $.nodeType == 1 && !n0.test($.nodeName)) && (!p || p.endA >= p.endB) && n.someProp("handleKeyDown", ($) => $(n,
|
|
15330
|
+
if ((Mr && n.input.lastIOSEnter > Date.now() - 225 || Jt) && i.some(($) => $.nodeType == 1 && !n0.test($.nodeName)) && (!p || p.endA >= p.endB) && n.someProp("handleKeyDown", ($) => $(n, Xn(13, "Enter")))) {
|
|
15316
15331
|
n.input.lastIOSEnter = 0;
|
|
15317
15332
|
return;
|
|
15318
15333
|
}
|
|
@@ -15335,17 +15350,17 @@ function r0(n, e, t, r, i) {
|
|
|
15335
15350
|
}
|
|
15336
15351
|
n.input.domChangeCount++, n.state.selection.from < n.state.selection.to && p.start == p.endB && n.state.selection instanceof Fe && (p.start > n.state.selection.from && p.start <= n.state.selection.from + 2 && n.state.selection.from >= c.from ? p.start = n.state.selection.from : p.endA < n.state.selection.to && p.endA >= n.state.selection.to - 2 && n.state.selection.to <= c.to && (p.endB += n.state.selection.to - p.endA, p.endA = n.state.selection.to)), Tt && Bn <= 11 && p.endB == p.start + 1 && p.endA == p.start && p.start > c.from && c.doc.textBetween(p.start - c.from - 1, p.start - c.from + 1) == " " && (p.start--, p.endA--, p.endB--);
|
|
15337
15352
|
let m = c.doc.resolveNoCache(p.start - c.from), g = c.doc.resolveNoCache(p.endB - c.from), x = u.resolve(p.start), E = m.sameParent(g) && m.parent.inlineContent && x.end() >= p.endA, w;
|
|
15338
|
-
if ((Mr && n.input.lastIOSEnter > Date.now() - 225 && (!E || i.some(($) => $.nodeName == "DIV" || $.nodeName == "P")) || !E && m.pos < c.doc.content.size && !m.sameParent(g) && (w = Pe.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && w.head == g.pos) && n.someProp("handleKeyDown", ($) => $(n,
|
|
15353
|
+
if ((Mr && n.input.lastIOSEnter > Date.now() - 225 && (!E || i.some(($) => $.nodeName == "DIV" || $.nodeName == "P")) || !E && m.pos < c.doc.content.size && !m.sameParent(g) && (w = Pe.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && w.head == g.pos) && n.someProp("handleKeyDown", ($) => $(n, Xn(13, "Enter")))) {
|
|
15339
15354
|
n.input.lastIOSEnter = 0;
|
|
15340
15355
|
return;
|
|
15341
15356
|
}
|
|
15342
|
-
if (n.state.selection.anchor > p.start && o0(u, p.start, p.endA, m, g) && n.someProp("handleKeyDown", ($) => $(n,
|
|
15357
|
+
if (n.state.selection.anchor > p.start && o0(u, p.start, p.endA, m, g) && n.someProp("handleKeyDown", ($) => $(n, Xn(8, "Backspace")))) {
|
|
15343
15358
|
Jt && ft && n.domObserver.suppressSelectionUpdates();
|
|
15344
15359
|
return;
|
|
15345
15360
|
}
|
|
15346
15361
|
ft && Jt && p.endB == p.start && (n.input.lastAndroidDelete = Date.now()), Jt && !E && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == p.endA && (p.endB -= 2, g = c.doc.resolveNoCache(p.endB - c.from), setTimeout(() => {
|
|
15347
15362
|
n.someProp("handleKeyDown", function($) {
|
|
15348
|
-
return $(n,
|
|
15363
|
+
return $(n, Xn(13, "Enter"));
|
|
15349
15364
|
});
|
|
15350
15365
|
}, 20));
|
|
15351
15366
|
let y = p.start, R = p.endA, C, F, z;
|
|
@@ -15775,12 +15790,12 @@ function lc(n) {
|
|
|
15775
15790
|
if (typeof t == "function" && (t = t(n.state)), t)
|
|
15776
15791
|
for (let r in t)
|
|
15777
15792
|
r == "class" ? e.class += " " + t[r] : r == "style" ? e.style = (e.style ? e.style + ";" : "") + t[r] : !e[r] && r != "contenteditable" && r != "nodeName" && (e[r] = String(t[r]));
|
|
15778
|
-
}), e.translate || (e.translate = "no"), [
|
|
15793
|
+
}), e.translate || (e.translate = "no"), [Ht.node(0, n.state.doc.content.size, e)];
|
|
15779
15794
|
}
|
|
15780
15795
|
function cc(n) {
|
|
15781
15796
|
if (n.markCursor) {
|
|
15782
15797
|
let e = document.createElement("img");
|
|
15783
|
-
e.className = "ProseMirror-separator", e.setAttribute("mark-placeholder", "true"), e.setAttribute("alt", ""), n.cursorWrapper = { dom: e, deco:
|
|
15798
|
+
e.className = "ProseMirror-separator", e.setAttribute("mark-placeholder", "true"), e.setAttribute("alt", ""), n.cursorWrapper = { dom: e, deco: Ht.widget(n.state.selection.head, e, { raw: !0, marks: n.markCursor }) };
|
|
15784
15799
|
} else
|
|
15785
15800
|
n.cursorWrapper = null;
|
|
15786
15801
|
}
|
|
@@ -16071,7 +16086,7 @@ function Ld(n) {
|
|
|
16071
16086
|
const T0 = (n, e) => {
|
|
16072
16087
|
let t = n.selection, r = t instanceof we, i;
|
|
16073
16088
|
if (r) {
|
|
16074
|
-
if (t.node.isTextblock || !
|
|
16089
|
+
if (t.node.isTextblock || !Vn(n.doc, t.from))
|
|
16075
16090
|
return !1;
|
|
16076
16091
|
i = t.from;
|
|
16077
16092
|
} else if (i = zo(n.doc, t.from, -1), i == null)
|
|
@@ -16084,7 +16099,7 @@ const T0 = (n, e) => {
|
|
|
16084
16099
|
}, k0 = (n, e) => {
|
|
16085
16100
|
let t = n.selection, r;
|
|
16086
16101
|
if (t instanceof we) {
|
|
16087
|
-
if (t.node.isTextblock || !
|
|
16102
|
+
if (t.node.isTextblock || !Vn(n.doc, t.to))
|
|
16088
16103
|
return !1;
|
|
16089
16104
|
r = t.to;
|
|
16090
16105
|
} else if (r = zo(n.doc, t.to, 1), r == null)
|
|
@@ -16147,7 +16162,7 @@ const M0 = (n, e) => {
|
|
|
16147
16162
|
};
|
|
16148
16163
|
function N0(n, e, t) {
|
|
16149
16164
|
let r = e.nodeBefore, i = e.nodeAfter, o = e.index();
|
|
16150
|
-
return !r || !i || !r.type.compatibleContent(i.type) ? !1 : !r.content.size && e.parent.canReplace(o - 1, o) ? (t && t(n.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(o, o + 1) || !(i.isTextblock ||
|
|
16165
|
+
return !r || !i || !r.type.compatibleContent(i.type) ? !1 : !r.content.size && e.parent.canReplace(o - 1, o) ? (t && t(n.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(o, o + 1) || !(i.isTextblock || Vn(n.doc, e.pos)) ? !1 : (t && t(n.tr.clearIncompatible(e.pos, r.type, r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()), !0);
|
|
16151
16166
|
}
|
|
16152
16167
|
function Fd(n, e, t) {
|
|
16153
16168
|
let r = e.nodeBefore, i = e.nodeAfter, o, s;
|
|
@@ -16163,7 +16178,7 @@ function Fd(n, e, t) {
|
|
|
16163
16178
|
f = ie.from(o[m].create(null, f));
|
|
16164
16179
|
f = ie.from(r.copy(f));
|
|
16165
16180
|
let h = n.tr.step(new nt(e.pos - 1, d, e.pos, d, new pe(f, 1, 0), o.length, !0)), p = d + 2 * o.length;
|
|
16166
|
-
|
|
16181
|
+
Vn(h.doc, p) && h.join(p), t(h.scrollIntoView());
|
|
16167
16182
|
}
|
|
16168
16183
|
return !0;
|
|
16169
16184
|
}
|
|
@@ -16270,10 +16285,10 @@ function z0(n, e, t, r, i) {
|
|
|
16270
16285
|
function $0(n) {
|
|
16271
16286
|
return function(e, t) {
|
|
16272
16287
|
let { $from: r, $to: i } = e.selection, o = r.blockRange(i, (s) => s.childCount > 0 && s.firstChild.type == n);
|
|
16273
|
-
return o ? t ? r.node(o.depth - 1).type == n ?
|
|
16288
|
+
return o ? t ? r.node(o.depth - 1).type == n ? U0(e, t, n, o) : H0(e, t, o) : !0 : !1;
|
|
16274
16289
|
};
|
|
16275
16290
|
}
|
|
16276
|
-
function
|
|
16291
|
+
function U0(n, e, t, r) {
|
|
16277
16292
|
let i = n.tr, o = r.end, s = r.$to.end(r.depth);
|
|
16278
16293
|
o < s && (i.step(new nt(o - 1, s, o, s, new pe(ie.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Vi(i.doc.resolve(r.$from.pos), i.doc.resolve(s), r.depth));
|
|
16279
16294
|
const l = Fr(r);
|
|
@@ -16281,9 +16296,9 @@ function H0(n, e, t, r) {
|
|
|
16281
16296
|
return !1;
|
|
16282
16297
|
i.lift(r, l);
|
|
16283
16298
|
let a = i.mapping.map(o, -1) - 1;
|
|
16284
|
-
return
|
|
16299
|
+
return Vn(i.doc, a) && i.join(a), e(i.scrollIntoView()), !0;
|
|
16285
16300
|
}
|
|
16286
|
-
function
|
|
16301
|
+
function H0(n, e, t) {
|
|
16287
16302
|
let r = n.tr, i = t.parent;
|
|
16288
16303
|
for (let h = t.end, p = t.endIndex - 1, m = t.startIndex; p > m; p--)
|
|
16289
16304
|
h -= i.child(p).nodeSize, r.delete(h - 1, h + 1);
|
|
@@ -16650,7 +16665,7 @@ const J0 = (n, e = 500) => {
|
|
|
16650
16665
|
function Ma(n) {
|
|
16651
16666
|
return Object.prototype.toString.call(n) === "[object RegExp]";
|
|
16652
16667
|
}
|
|
16653
|
-
class
|
|
16668
|
+
class Ud {
|
|
16654
16669
|
constructor(e) {
|
|
16655
16670
|
this.find = e.find, this.handler = e.handler;
|
|
16656
16671
|
}
|
|
@@ -17047,7 +17062,7 @@ class jt {
|
|
|
17047
17062
|
})), t;
|
|
17048
17063
|
}
|
|
17049
17064
|
}
|
|
17050
|
-
function
|
|
17065
|
+
function Hd(n, e, t) {
|
|
17051
17066
|
const { from: r, to: i } = e, { blockSeparator: o = `
|
|
17052
17067
|
|
|
17053
17068
|
`, textSerializers: s = {} } = t || {};
|
|
@@ -17076,7 +17091,7 @@ const rv = jt.create({
|
|
|
17076
17091
|
props: {
|
|
17077
17092
|
clipboardTextSerializer: () => {
|
|
17078
17093
|
const { editor: n } = this, { state: e, schema: t } = n, { doc: r, selection: i } = e, { ranges: o } = i, s = Math.min(...o.map((u) => u.$from.pos)), l = Math.max(...o.map((u) => u.$to.pos)), a = Vd(t);
|
|
17079
|
-
return
|
|
17094
|
+
return Hd(r, { from: s, to: l }, {
|
|
17080
17095
|
textSerializers: a
|
|
17081
17096
|
});
|
|
17082
17097
|
}
|
|
@@ -17167,7 +17182,7 @@ function Ia(n, e, t = {}) {
|
|
|
17167
17182
|
to: a
|
|
17168
17183
|
};
|
|
17169
17184
|
}
|
|
17170
|
-
function
|
|
17185
|
+
function Wn(n, e) {
|
|
17171
17186
|
if (typeof n == "string") {
|
|
17172
17187
|
if (!e.marks[n])
|
|
17173
17188
|
throw Error(`There is no mark type named '${n}'. Maybe you forgot to add the extension?`);
|
|
@@ -17176,7 +17191,7 @@ function jn(n, e) {
|
|
|
17176
17191
|
return n;
|
|
17177
17192
|
}
|
|
17178
17193
|
const vv = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
|
|
17179
|
-
const o =
|
|
17194
|
+
const o = Wn(n, r.schema), { doc: s, selection: l } = t, { $from: a, from: c, to: u } = l;
|
|
17180
17195
|
if (i) {
|
|
17181
17196
|
const d = Ia(a, o, e);
|
|
17182
17197
|
if (d && d.from <= c && d.to >= u) {
|
|
@@ -17384,7 +17399,7 @@ function yc(n, e) {
|
|
|
17384
17399
|
const Bv = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
|
|
17385
17400
|
let o = null, s = null;
|
|
17386
17401
|
const l = Jo(typeof n == "string" ? n : n.name, r.schema);
|
|
17387
|
-
return l ? (l === "node" && (o = rt(n, r.schema)), l === "mark" && (s =
|
|
17402
|
+
return l ? (l === "node" && (o = rt(n, r.schema)), l === "mark" && (s = Wn(n, r.schema)), i && t.selection.ranges.forEach((a) => {
|
|
17388
17403
|
r.doc.nodesBetween(a.$from.pos, a.$to.pos, (c, u) => {
|
|
17389
17404
|
o && o === c.type && t.setNodeMarkup(u, void 0, yc(c.attrs, e)), s && c.marks.length && c.marks.forEach((d) => {
|
|
17390
17405
|
s === d.type && t.addMark(u, u + c.nodeSize, s.create(yc(d.attrs, e)));
|
|
@@ -17394,7 +17409,7 @@ const Bv = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
|
|
|
17394
17409
|
}, zv = () => ({ tr: n, dispatch: e }) => (e && n.scrollIntoView(), !0), $v = () => ({ tr: n, commands: e }) => e.setTextSelection({
|
|
17395
17410
|
from: 0,
|
|
17396
17411
|
to: n.doc.content.size
|
|
17397
|
-
}),
|
|
17412
|
+
}), Uv = () => ({ state: n, dispatch: e }) => S0(n, e), Hv = () => ({ state: n, dispatch: e }) => C0(n, e), Vv = () => ({ state: n, dispatch: e }) => D0(n, e), jv = () => ({ state: n, dispatch: e }) => P0(n, e), Wv = () => ({ state: n, dispatch: e }) => L0(n, e);
|
|
17398
17413
|
function Kd(n, e, t = {}) {
|
|
17399
17414
|
return qi(n, e, { slice: !1, parseOptions: t });
|
|
17400
17415
|
}
|
|
@@ -17403,7 +17418,7 @@ const Kv = (n, e = !1, t = {}) => ({ tr: r, editor: i, dispatch: o }) => {
|
|
|
17403
17418
|
return o && r.replaceWith(0, s.content.size, l).setMeta("preventUpdate", !e), !0;
|
|
17404
17419
|
};
|
|
17405
17420
|
function Yo(n, e) {
|
|
17406
|
-
const t =
|
|
17421
|
+
const t = Wn(e, n.schema), { from: r, to: i, empty: o } = n.selection, s = [];
|
|
17407
17422
|
o ? (n.storedMarks && s.push(...n.storedMarks), s.push(...n.selection.$head.marks())) : n.doc.nodesBetween(r, i, (a) => {
|
|
17408
17423
|
s.push(...a.marks);
|
|
17409
17424
|
});
|
|
@@ -17459,7 +17474,7 @@ function Qv(n, e) {
|
|
|
17459
17474
|
from: 0,
|
|
17460
17475
|
to: n.content.size
|
|
17461
17476
|
};
|
|
17462
|
-
return
|
|
17477
|
+
return Hd(n, t, e);
|
|
17463
17478
|
}
|
|
17464
17479
|
function qv(n, e) {
|
|
17465
17480
|
const t = rt(e, n.schema), { from: r, to: i } = n.selection, o = [];
|
|
@@ -17536,7 +17551,7 @@ function Ni(n, e, t) {
|
|
|
17536
17551
|
}));
|
|
17537
17552
|
}
|
|
17538
17553
|
function Zs(n, e, t = {}) {
|
|
17539
|
-
const { empty: r, ranges: i } = n.selection, o = e ?
|
|
17554
|
+
const { empty: r, ranges: i } = n.selection, o = e ? Wn(e, n.schema) : null;
|
|
17540
17555
|
if (r)
|
|
17541
17556
|
return !!(n.storedMarks || n.selection.$from.marks()).filter((d) => o ? o.name === d.type.name : !0).find((d) => Qi(d.attrs, t, { strict: !1 }));
|
|
17542
17557
|
let s = 0;
|
|
@@ -17622,7 +17637,7 @@ function oy(n, e, t) {
|
|
|
17622
17637
|
});
|
|
17623
17638
|
}
|
|
17624
17639
|
const sy = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
|
|
17625
|
-
const { selection: o } = t, { empty: s, ranges: l } = o, a =
|
|
17640
|
+
const { selection: o } = t, { empty: s, ranges: l } = o, a = Wn(n, r.schema);
|
|
17626
17641
|
if (i)
|
|
17627
17642
|
if (s) {
|
|
17628
17643
|
const c = Yo(r, a);
|
|
@@ -17752,7 +17767,7 @@ const fy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
17752
17767
|
if (r === void 0)
|
|
17753
17768
|
return !0;
|
|
17754
17769
|
const i = n.doc.nodeAt(r);
|
|
17755
|
-
return t.node.type === (i == null ? void 0 : i.type) &&
|
|
17770
|
+
return t.node.type === (i == null ? void 0 : i.type) && Vn(n.doc, t.pos) && n.join(t.pos), !0;
|
|
17756
17771
|
}, Es = (n, e) => {
|
|
17757
17772
|
const t = Na((s) => s.type === e)(n.selection);
|
|
17758
17773
|
if (!t)
|
|
@@ -17761,7 +17776,7 @@ const fy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
17761
17776
|
if (r === void 0)
|
|
17762
17777
|
return !0;
|
|
17763
17778
|
const i = n.doc.nodeAt(r);
|
|
17764
|
-
return t.node.type === (i == null ? void 0 : i.type) &&
|
|
17779
|
+
return t.node.type === (i == null ? void 0 : i.type) && Vn(n.doc, r) && n.join(r), !0;
|
|
17765
17780
|
}, hy = (n, e, t, r = {}) => ({ editor: i, tr: o, state: s, dispatch: l, chain: a, commands: c, can: u }) => {
|
|
17766
17781
|
const { extensions: d, splittableMarks: f } = i.extensionManager, h = rt(n, s.schema), p = rt(e, s.schema), { selection: m, storedMarks: g } = s, { $from: x, $to: E } = m, w = x.blockRange(E), y = g || m.$to.parentOffset && m.$from.marks();
|
|
17767
17782
|
if (!w)
|
|
@@ -17778,7 +17793,7 @@ const fy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
17778
17793
|
return o.ensureMarks(F), C ? !0 : c.clearNodes();
|
|
17779
17794
|
}).wrapInList(h, r).command(() => Ss(o, h)).command(() => Es(o, h)).run();
|
|
17780
17795
|
}, my = (n, e = {}, t = {}) => ({ state: r, commands: i }) => {
|
|
17781
|
-
const { extendEmptyMarkRange: o = !1 } = t, s =
|
|
17796
|
+
const { extendEmptyMarkRange: o = !1 } = t, s = Wn(n, r.schema);
|
|
17782
17797
|
return Zs(r, s, e) ? i.unsetMark(s, { extendEmptyMarkRange: o }) : i.setMark(s, e);
|
|
17783
17798
|
}, gy = (n, e, t = {}) => ({ state: r, commands: i }) => {
|
|
17784
17799
|
const o = rt(n, r.schema), s = rt(e, r.schema);
|
|
@@ -17813,7 +17828,7 @@ const fy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
17813
17828
|
}), !0;
|
|
17814
17829
|
}, xy = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
|
|
17815
17830
|
var o;
|
|
17816
|
-
const { extendEmptyMarkRange: s = !1 } = e, { selection: l } = t, a =
|
|
17831
|
+
const { extendEmptyMarkRange: s = !1 } = e, { selection: l } = t, a = Wn(n, r.schema), { $from: c, empty: u, ranges: d } = l;
|
|
17817
17832
|
if (!i)
|
|
17818
17833
|
return !0;
|
|
17819
17834
|
if (u && s) {
|
|
@@ -17828,7 +17843,7 @@ const fy = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
17828
17843
|
}, Sy = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
|
|
17829
17844
|
let o = null, s = null;
|
|
17830
17845
|
const l = Jo(typeof n == "string" ? n : n.name, r.schema);
|
|
17831
|
-
return l ? (l === "node" && (o = rt(n, r.schema)), l === "mark" && (s =
|
|
17846
|
+
return l ? (l === "node" && (o = rt(n, r.schema)), l === "mark" && (s = Wn(n, r.schema)), i && t.selection.ranges.forEach((a) => {
|
|
17832
17847
|
const c = a.$from.pos, u = a.$to.pos;
|
|
17833
17848
|
r.doc.nodesBetween(c, u, (d, f) => {
|
|
17834
17849
|
o && o === d.type && t.setNodeMarkup(f, void 0, {
|
|
@@ -17886,8 +17901,8 @@ var Cy = /* @__PURE__ */ Object.freeze({
|
|
|
17886
17901
|
resetAttributes: Bv,
|
|
17887
17902
|
scrollIntoView: zv,
|
|
17888
17903
|
selectAll: $v,
|
|
17889
|
-
selectNodeBackward:
|
|
17890
|
-
selectNodeForward:
|
|
17904
|
+
selectNodeBackward: Uv,
|
|
17905
|
+
selectNodeForward: Hv,
|
|
17891
17906
|
selectParentNode: Vv,
|
|
17892
17907
|
selectTextblockEnd: jv,
|
|
17893
17908
|
selectTextblockStart: Wv,
|
|
@@ -18410,7 +18425,7 @@ let Ny = class extends j0 {
|
|
|
18410
18425
|
}
|
|
18411
18426
|
};
|
|
18412
18427
|
function _i(n) {
|
|
18413
|
-
return new
|
|
18428
|
+
return new Ud({
|
|
18414
18429
|
find: n.find,
|
|
18415
18430
|
handler: ({ state: e, range: t, match: r }) => {
|
|
18416
18431
|
const i = Le(n.getAttributes, void 0, r);
|
|
@@ -18429,7 +18444,7 @@ function _i(n) {
|
|
|
18429
18444
|
});
|
|
18430
18445
|
}
|
|
18431
18446
|
function eo(n) {
|
|
18432
|
-
return new
|
|
18447
|
+
return new Ud({
|
|
18433
18448
|
find: n.find,
|
|
18434
18449
|
handler: ({ state: e, range: t, match: r, chain: i }) => {
|
|
18435
18450
|
const o = Le(n.getAttributes, void 0, r) || {}, s = e.tr.delete(t.from, t.to), a = s.doc.resolve(t.from).blockRange(), c = a && va(a, n.type, o);
|
|
@@ -18447,7 +18462,7 @@ function eo(n) {
|
|
|
18447
18462
|
i().updateAttributes(d, o).run();
|
|
18448
18463
|
}
|
|
18449
18464
|
const u = s.doc.resolve(t.from - 1).nodeBefore;
|
|
18450
|
-
u && u.type === n.type &&
|
|
18465
|
+
u && u.type === n.type && Vn(s.doc, t.from - 1) && (!n.joinPredicate || n.joinPredicate(r, u)) && s.join(t.from - 1);
|
|
18451
18466
|
}
|
|
18452
18467
|
});
|
|
18453
18468
|
}
|
|
@@ -18554,7 +18569,7 @@ var kt = "top", Kt = "bottom", Gt = "right", At = "left", Xo = "auto", bi = [kt,
|
|
|
18554
18569
|
return n.concat([e + "-" + Rr, e + "-" + ci]);
|
|
18555
18570
|
}, []), Xd = /* @__PURE__ */ [].concat(bi, [Xo]).reduce(function(n, e) {
|
|
18556
18571
|
return n.concat([e, e + "-" + Rr, e + "-" + ci]);
|
|
18557
|
-
}, []), Fy = "beforeRead", By = "read", zy = "afterRead", $y = "beforeMain",
|
|
18572
|
+
}, []), Fy = "beforeRead", By = "read", zy = "afterRead", $y = "beforeMain", Uy = "main", Hy = "afterMain", Vy = "beforeWrite", jy = "write", Wy = "afterWrite", Qs = [Fy, By, zy, $y, Uy, Hy, Vy, jy, Wy];
|
|
18558
18573
|
function pn(n) {
|
|
18559
18574
|
return n ? (n.nodeName || "").toLowerCase() : null;
|
|
18560
18575
|
}
|
|
@@ -18626,7 +18641,7 @@ const Zd = {
|
|
|
18626
18641
|
function Xt(n) {
|
|
18627
18642
|
return n.split("-")[0];
|
|
18628
18643
|
}
|
|
18629
|
-
var
|
|
18644
|
+
var sr = Math.max, to = Math.min, Dr = Math.round;
|
|
18630
18645
|
function qs() {
|
|
18631
18646
|
var n = navigator.userAgentData;
|
|
18632
18647
|
return n != null && n.brands && Array.isArray(n.brands) ? n.brands.map(function(e) {
|
|
@@ -18681,7 +18696,7 @@ function Qt(n) {
|
|
|
18681
18696
|
function Jy(n) {
|
|
18682
18697
|
return ["table", "td", "th"].indexOf(pn(n)) >= 0;
|
|
18683
18698
|
}
|
|
18684
|
-
function
|
|
18699
|
+
function Kn(n) {
|
|
18685
18700
|
return ((ur(n) ? n.ownerDocument : (
|
|
18686
18701
|
// $FlowFixMe[prop-missing]
|
|
18687
18702
|
n.document
|
|
@@ -18696,7 +18711,7 @@ function Zo(n) {
|
|
|
18696
18711
|
n.parentNode || // DOM Element detected
|
|
18697
18712
|
(Pa(n) ? n.host : null) || // ShadowRoot detected
|
|
18698
18713
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
18699
|
-
|
|
18714
|
+
Kn(n)
|
|
18700
18715
|
);
|
|
18701
18716
|
}
|
|
18702
18717
|
function Ec(n) {
|
|
@@ -18728,7 +18743,7 @@ function Ba(n) {
|
|
|
18728
18743
|
return ["top", "bottom"].indexOf(n) >= 0 ? "x" : "y";
|
|
18729
18744
|
}
|
|
18730
18745
|
function Yr(n, e, t) {
|
|
18731
|
-
return
|
|
18746
|
+
return sr(n, to(e, t));
|
|
18732
18747
|
}
|
|
18733
18748
|
function Xy(n, e, t) {
|
|
18734
18749
|
var r = Yr(n, e, t);
|
|
@@ -18809,7 +18824,7 @@ function wc(n) {
|
|
|
18809
18824
|
var x = s.hasOwnProperty("x"), E = s.hasOwnProperty("y"), w = At, y = kt, R = window;
|
|
18810
18825
|
if (c) {
|
|
18811
18826
|
var C = xi(t), F = "clientHeight", z = "clientWidth";
|
|
18812
|
-
if (C === Nt(t) && (C =
|
|
18827
|
+
if (C === Nt(t) && (C = Kn(t), Qt(C).position !== "static" && l === "absolute" && (F = "scrollHeight", z = "scrollWidth")), C = C, i === kt || (i === At || i === Gt) && o === ci) {
|
|
18813
18828
|
y = Kt;
|
|
18814
18829
|
var $ = d && C === R && R.visualViewport ? R.visualViewport.height : (
|
|
18815
18830
|
// $FlowFixMe[prop-missing]
|
|
@@ -18836,8 +18851,8 @@ function wc(n) {
|
|
|
18836
18851
|
y: m
|
|
18837
18852
|
};
|
|
18838
18853
|
if (h = L.x, m = L.y, a) {
|
|
18839
|
-
var
|
|
18840
|
-
return Object.assign({}, P, (
|
|
18854
|
+
var H;
|
|
18855
|
+
return Object.assign({}, P, (H = {}, H[y] = E ? "0" : "", H[w] = x ? "0" : "", H.transform = (R.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + m + "px)" : "translate3d(" + h + "px, " + m + "px, 0)", H));
|
|
18841
18856
|
}
|
|
18842
18857
|
return Object.assign({}, P, (e = {}, e[y] = E ? m + "px" : "", e[w] = x ? h + "px" : "", e.transform = "", e));
|
|
18843
18858
|
}
|
|
@@ -18932,10 +18947,10 @@ function za(n) {
|
|
|
18932
18947
|
};
|
|
18933
18948
|
}
|
|
18934
18949
|
function $a(n) {
|
|
18935
|
-
return Nr(
|
|
18950
|
+
return Nr(Kn(n)).left + za(n).scrollLeft;
|
|
18936
18951
|
}
|
|
18937
18952
|
function l2(n, e) {
|
|
18938
|
-
var t = Nt(n), r =
|
|
18953
|
+
var t = Nt(n), r = Kn(n), i = t.visualViewport, o = r.clientWidth, s = r.clientHeight, l = 0, a = 0;
|
|
18939
18954
|
if (i) {
|
|
18940
18955
|
o = i.width, s = i.height;
|
|
18941
18956
|
var c = Qd();
|
|
@@ -18949,25 +18964,25 @@ function l2(n, e) {
|
|
|
18949
18964
|
};
|
|
18950
18965
|
}
|
|
18951
18966
|
function c2(n) {
|
|
18952
|
-
var e, t =
|
|
18953
|
-
return Qt(i || t).direction === "rtl" && (l +=
|
|
18967
|
+
var e, t = Kn(n), r = za(n), i = (e = n.ownerDocument) == null ? void 0 : e.body, o = sr(t.scrollWidth, t.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), s = sr(t.scrollHeight, t.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), l = -r.scrollLeft + $a(n), a = -r.scrollTop;
|
|
18968
|
+
return Qt(i || t).direction === "rtl" && (l += sr(t.clientWidth, i ? i.clientWidth : 0) - o), {
|
|
18954
18969
|
width: o,
|
|
18955
18970
|
height: s,
|
|
18956
18971
|
x: l,
|
|
18957
18972
|
y: a
|
|
18958
18973
|
};
|
|
18959
18974
|
}
|
|
18960
|
-
function
|
|
18975
|
+
function Ua(n) {
|
|
18961
18976
|
var e = Qt(n), t = e.overflow, r = e.overflowX, i = e.overflowY;
|
|
18962
18977
|
return /auto|scroll|overlay|hidden/.test(t + i + r);
|
|
18963
18978
|
}
|
|
18964
18979
|
function nf(n) {
|
|
18965
|
-
return ["html", "body", "#document"].indexOf(pn(n)) >= 0 ? n.ownerDocument.body : Dt(n) &&
|
|
18980
|
+
return ["html", "body", "#document"].indexOf(pn(n)) >= 0 ? n.ownerDocument.body : Dt(n) && Ua(n) ? n : nf(Zo(n));
|
|
18966
18981
|
}
|
|
18967
18982
|
function Xr(n, e) {
|
|
18968
18983
|
var t;
|
|
18969
18984
|
e === void 0 && (e = []);
|
|
18970
|
-
var r = nf(n), i = r === ((t = n.ownerDocument) == null ? void 0 : t.body), o = Nt(r), s = i ? [o].concat(o.visualViewport || [],
|
|
18985
|
+
var r = nf(n), i = r === ((t = n.ownerDocument) == null ? void 0 : t.body), o = Nt(r), s = i ? [o].concat(o.visualViewport || [], Ua(r) ? r : []) : r, l = e.concat(s);
|
|
18971
18986
|
return i ? l : (
|
|
18972
18987
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
18973
18988
|
l.concat(Xr(Zo(s)))
|
|
@@ -18986,7 +19001,7 @@ function u2(n, e) {
|
|
|
18986
19001
|
return t.top = t.top + n.clientTop, t.left = t.left + n.clientLeft, t.bottom = t.top + n.clientHeight, t.right = t.left + n.clientWidth, t.width = n.clientWidth, t.height = n.clientHeight, t.x = t.left, t.y = t.top, t;
|
|
18987
19002
|
}
|
|
18988
19003
|
function Tc(n, e, t) {
|
|
18989
|
-
return e === Yd ? _s(l2(n, t)) : ur(e) ? u2(e, t) : _s(c2(
|
|
19004
|
+
return e === Yd ? _s(l2(n, t)) : ur(e) ? u2(e, t) : _s(c2(Kn(n)));
|
|
18990
19005
|
}
|
|
18991
19006
|
function d2(n) {
|
|
18992
19007
|
var e = Xr(Zo(n)), t = ["absolute", "fixed"].indexOf(Qt(n).position) >= 0, r = t && Dt(n) ? xi(n) : n;
|
|
@@ -18997,7 +19012,7 @@ function d2(n) {
|
|
|
18997
19012
|
function f2(n, e, t, r) {
|
|
18998
19013
|
var i = e === "clippingParents" ? d2(n) : [].concat(e), o = [].concat(i, [t]), s = o[0], l = o.reduce(function(a, c) {
|
|
18999
19014
|
var u = Tc(n, c, r);
|
|
19000
|
-
return a.top =
|
|
19015
|
+
return a.top = sr(u.top, a.top), a.right = to(u.right, a.right), a.bottom = to(u.bottom, a.bottom), a.left = sr(u.left, a.left), a;
|
|
19001
19016
|
}, Tc(n, s, r));
|
|
19002
19017
|
return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
|
|
19003
19018
|
}
|
|
@@ -19050,7 +19065,7 @@ function rf(n) {
|
|
|
19050
19065
|
}
|
|
19051
19066
|
function ui(n, e) {
|
|
19052
19067
|
e === void 0 && (e = {});
|
|
19053
|
-
var t = e, r = t.placement, i = r === void 0 ? n.placement : r, o = t.strategy, s = o === void 0 ? n.strategy : o, l = t.boundary, a = l === void 0 ? Ly : l, c = t.rootBoundary, u = c === void 0 ? Yd : c, d = t.elementContext, f = d === void 0 ? $r : d, h = t.altBoundary, p = h === void 0 ? !1 : h, m = t.padding, g = m === void 0 ? 0 : m, x = ef(typeof g != "number" ? g : tf(g, bi)), E = f === $r ? Py : $r, w = n.rects.popper, y = n.elements[p ? E : f], R = f2(ur(y) ? y : y.contextElement ||
|
|
19068
|
+
var t = e, r = t.placement, i = r === void 0 ? n.placement : r, o = t.strategy, s = o === void 0 ? n.strategy : o, l = t.boundary, a = l === void 0 ? Ly : l, c = t.rootBoundary, u = c === void 0 ? Yd : c, d = t.elementContext, f = d === void 0 ? $r : d, h = t.altBoundary, p = h === void 0 ? !1 : h, m = t.padding, g = m === void 0 ? 0 : m, x = ef(typeof g != "number" ? g : tf(g, bi)), E = f === $r ? Py : $r, w = n.rects.popper, y = n.elements[p ? E : f], R = f2(ur(y) ? y : y.contextElement || Kn(n.elements.popper), a, u, s), C = Nr(n.elements.reference), F = rf({
|
|
19054
19069
|
reference: C,
|
|
19055
19070
|
element: w,
|
|
19056
19071
|
strategy: "absolute",
|
|
@@ -19063,9 +19078,9 @@ function ui(n, e) {
|
|
|
19063
19078
|
}, P = n.modifiersData.offset;
|
|
19064
19079
|
if (f === $r && P) {
|
|
19065
19080
|
var L = P[i];
|
|
19066
|
-
Object.keys(B).forEach(function(
|
|
19067
|
-
var J = [Gt, Kt].indexOf(
|
|
19068
|
-
B[
|
|
19081
|
+
Object.keys(B).forEach(function(H) {
|
|
19082
|
+
var J = [Gt, Kt].indexOf(H) >= 0 ? 1 : -1, X = [kt, Kt].indexOf(H) >= 0 ? "y" : "x";
|
|
19083
|
+
B[H] += L[X] * J;
|
|
19069
19084
|
});
|
|
19070
19085
|
}
|
|
19071
19086
|
return B;
|
|
@@ -19109,13 +19124,13 @@ function m2(n) {
|
|
|
19109
19124
|
allowedAutoPlacements: m
|
|
19110
19125
|
}) : ke);
|
|
19111
19126
|
}, []), R = e.rects.reference, C = e.rects.popper, F = /* @__PURE__ */ new Map(), z = !0, $ = y[0], B = 0; B < y.length; B++) {
|
|
19112
|
-
var P = y[B], L = Xt(P),
|
|
19127
|
+
var P = y[B], L = Xt(P), H = Lr(P) === Rr, J = [kt, Kt].indexOf(L) >= 0, X = J ? "width" : "height", Z = ui(e, {
|
|
19113
19128
|
placement: P,
|
|
19114
19129
|
boundary: u,
|
|
19115
19130
|
rootBoundary: d,
|
|
19116
19131
|
altBoundary: f,
|
|
19117
19132
|
padding: c
|
|
19118
|
-
}), ne = J ?
|
|
19133
|
+
}), ne = J ? H ? Gt : At : H ? Kt : kt;
|
|
19119
19134
|
R[X] > C[X] && (ne = Li(ne));
|
|
19120
19135
|
var j = Li(ne), ae = [];
|
|
19121
19136
|
if (o && ae.push(Z[L] <= 0), l && ae.push(Z[ne] <= 0, Z[j] <= 0), ae.every(function(Oe) {
|
|
@@ -19258,15 +19273,15 @@ function T2(n) {
|
|
|
19258
19273
|
};
|
|
19259
19274
|
if (C) {
|
|
19260
19275
|
if (o) {
|
|
19261
|
-
var
|
|
19276
|
+
var H, J = y === "y" ? kt : At, X = y === "y" ? Kt : Gt, Z = y === "y" ? "height" : "width", ne = C[y], j = ne + g[J], ae = ne - g[X], fe = h ? -z[Z] / 2 : 0, be = E === Rr ? F[Z] : z[Z], Ce = E === Rr ? -z[Z] : -F[Z], xe = e.elements.arrow, Oe = h && xe ? Fa(xe) : {
|
|
19262
19277
|
width: 0,
|
|
19263
19278
|
height: 0
|
|
19264
|
-
}, ke = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : _d(), Me = ke[J], ye = ke[X], k = Yr(0, F[Z], Oe[Z]), O = w ? F[Z] / 2 - fe - k - Me - B.mainAxis : be - k - Me - B.mainAxis, S = w ? -F[Z] / 2 + fe + k + ye + B.mainAxis : Ce + k + ye + B.mainAxis, A = e.elements.arrow && xi(e.elements.arrow), v = A ? y === "y" ? A.clientTop || 0 : A.clientLeft || 0 : 0, b = (
|
|
19279
|
+
}, ke = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : _d(), Me = ke[J], ye = ke[X], k = Yr(0, F[Z], Oe[Z]), O = w ? F[Z] / 2 - fe - k - Me - B.mainAxis : be - k - Me - B.mainAxis, S = w ? -F[Z] / 2 + fe + k + ye + B.mainAxis : Ce + k + ye + B.mainAxis, A = e.elements.arrow && xi(e.elements.arrow), v = A ? y === "y" ? A.clientTop || 0 : A.clientLeft || 0 : 0, b = (H = P == null ? void 0 : P[y]) != null ? H : 0, M = ne + O - b - v, I = ne + S - b, D = Yr(h ? to(j, M) : j, ne, h ? sr(ae, I) : ae);
|
|
19265
19280
|
C[y] = D, L[y] = D - ne;
|
|
19266
19281
|
}
|
|
19267
19282
|
if (l) {
|
|
19268
|
-
var N,
|
|
19269
|
-
C[R] =
|
|
19283
|
+
var N, U = y === "x" ? kt : At, W = y === "x" ? Kt : Gt, V = C[R], K = R === "y" ? "height" : "width", G = V + g[U], q = V - g[W], le = [kt, At].indexOf(x) !== -1, ge = (N = P == null ? void 0 : P[R]) != null ? N : 0, De = le ? G : V - F[K] - z[K] - ge + B.altAxis, Ve = le ? V + F[K] + z[K] - ge - B.altAxis : q, Ue = h && le ? Xy(De, V, Ve) : Yr(h ? De : G, V, h ? Ve : q);
|
|
19284
|
+
C[R] = Ue, L[R] = Ue - V;
|
|
19270
19285
|
}
|
|
19271
19286
|
e.modifiersData[r] = L;
|
|
19272
19287
|
}
|
|
@@ -19293,7 +19308,7 @@ function M2(n) {
|
|
|
19293
19308
|
}
|
|
19294
19309
|
function I2(n, e, t) {
|
|
19295
19310
|
t === void 0 && (t = !1);
|
|
19296
|
-
var r = Dt(e), i = Dt(e) && M2(e), o =
|
|
19311
|
+
var r = Dt(e), i = Dt(e) && M2(e), o = Kn(e), s = Nr(n, i, t), l = {
|
|
19297
19312
|
scrollLeft: 0,
|
|
19298
19313
|
scrollTop: 0
|
|
19299
19314
|
}, a = {
|
|
@@ -19301,7 +19316,7 @@ function I2(n, e, t) {
|
|
|
19301
19316
|
y: 0
|
|
19302
19317
|
};
|
|
19303
19318
|
return (r || !r && !t) && ((pn(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
19304
|
-
|
|
19319
|
+
Ua(o)) && (l = O2(e)), Dt(e) ? (a = Nr(e, !0), a.x += e.clientLeft, a.y += e.clientTop) : o && (a.x = $a(o))), {
|
|
19305
19320
|
x: s.left + l.scrollLeft - a.x,
|
|
19306
19321
|
y: s.top + l.scrollTop - a.y,
|
|
19307
19322
|
width: s.width,
|
|
@@ -19352,7 +19367,7 @@ function An(n) {
|
|
|
19352
19367
|
return i.replace(/%s/, o);
|
|
19353
19368
|
}, n);
|
|
19354
19369
|
}
|
|
19355
|
-
var
|
|
19370
|
+
var Jn = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', L2 = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', Oc = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
|
|
19356
19371
|
function P2(n) {
|
|
19357
19372
|
n.forEach(function(e) {
|
|
19358
19373
|
[].concat(Object.keys(e), Oc).filter(function(t, r, i) {
|
|
@@ -19360,25 +19375,25 @@ function P2(n) {
|
|
|
19360
19375
|
}).forEach(function(t) {
|
|
19361
19376
|
switch (t) {
|
|
19362
19377
|
case "name":
|
|
19363
|
-
typeof e.name != "string" && console.error(An(
|
|
19378
|
+
typeof e.name != "string" && console.error(An(Jn, String(e.name), '"name"', '"string"', '"' + String(e.name) + '"'));
|
|
19364
19379
|
break;
|
|
19365
19380
|
case "enabled":
|
|
19366
|
-
typeof e.enabled != "boolean" && console.error(An(
|
|
19381
|
+
typeof e.enabled != "boolean" && console.error(An(Jn, e.name, '"enabled"', '"boolean"', '"' + String(e.enabled) + '"'));
|
|
19367
19382
|
break;
|
|
19368
19383
|
case "phase":
|
|
19369
|
-
Qs.indexOf(e.phase) < 0 && console.error(An(
|
|
19384
|
+
Qs.indexOf(e.phase) < 0 && console.error(An(Jn, e.name, '"phase"', "either " + Qs.join(", "), '"' + String(e.phase) + '"'));
|
|
19370
19385
|
break;
|
|
19371
19386
|
case "fn":
|
|
19372
|
-
typeof e.fn != "function" && console.error(An(
|
|
19387
|
+
typeof e.fn != "function" && console.error(An(Jn, e.name, '"fn"', '"function"', '"' + String(e.fn) + '"'));
|
|
19373
19388
|
break;
|
|
19374
19389
|
case "effect":
|
|
19375
|
-
e.effect != null && typeof e.effect != "function" && console.error(An(
|
|
19390
|
+
e.effect != null && typeof e.effect != "function" && console.error(An(Jn, e.name, '"effect"', '"function"', '"' + String(e.fn) + '"'));
|
|
19376
19391
|
break;
|
|
19377
19392
|
case "requires":
|
|
19378
|
-
e.requires != null && !Array.isArray(e.requires) && console.error(An(
|
|
19393
|
+
e.requires != null && !Array.isArray(e.requires) && console.error(An(Jn, e.name, '"requires"', '"array"', '"' + String(e.requires) + '"'));
|
|
19379
19394
|
break;
|
|
19380
19395
|
case "requiresIfExists":
|
|
19381
|
-
Array.isArray(e.requiresIfExists) || console.error(An(
|
|
19396
|
+
Array.isArray(e.requiresIfExists) || console.error(An(Jn, e.name, '"requiresIfExists"', '"array"', '"' + String(e.requiresIfExists) + '"'));
|
|
19382
19397
|
break;
|
|
19383
19398
|
case "options":
|
|
19384
19399
|
case "data":
|
|
@@ -19550,9 +19565,9 @@ function $2(n) {
|
|
|
19550
19565
|
return h;
|
|
19551
19566
|
};
|
|
19552
19567
|
}
|
|
19553
|
-
var
|
|
19554
|
-
defaultModifiers:
|
|
19555
|
-
}), V2 = "tippy-box", of = "tippy-content", j2 = "tippy-backdrop", sf = "tippy-arrow", af = "tippy-svg-arrow",
|
|
19568
|
+
var U2 = [o2, w2, r2, Zd, S2, g2, k2, _y, y2], H2 = /* @__PURE__ */ $2({
|
|
19569
|
+
defaultModifiers: U2
|
|
19570
|
+
}), V2 = "tippy-box", of = "tippy-content", j2 = "tippy-backdrop", sf = "tippy-arrow", af = "tippy-svg-arrow", Yn = {
|
|
19556
19571
|
passive: !0,
|
|
19557
19572
|
capture: !0
|
|
19558
19573
|
}, lf = function() {
|
|
@@ -19568,7 +19583,7 @@ function ws(n, e, t) {
|
|
|
19568
19583
|
}
|
|
19569
19584
|
return n;
|
|
19570
19585
|
}
|
|
19571
|
-
function
|
|
19586
|
+
function Ha(n, e) {
|
|
19572
19587
|
var t = {}.toString.call(n);
|
|
19573
19588
|
return t.indexOf("[object") === 0 && t.indexOf(e + "]") > -1;
|
|
19574
19589
|
}
|
|
@@ -19621,14 +19636,14 @@ function Zr() {
|
|
|
19621
19636
|
}
|
|
19622
19637
|
function di(n) {
|
|
19623
19638
|
return ["Element", "Fragment"].some(function(e) {
|
|
19624
|
-
return
|
|
19639
|
+
return Ha(n, e);
|
|
19625
19640
|
});
|
|
19626
19641
|
}
|
|
19627
19642
|
function X2(n) {
|
|
19628
|
-
return
|
|
19643
|
+
return Ha(n, "NodeList");
|
|
19629
19644
|
}
|
|
19630
19645
|
function Z2(n) {
|
|
19631
|
-
return
|
|
19646
|
+
return Ha(n, "MouseEvent");
|
|
19632
19647
|
}
|
|
19633
19648
|
function Q2(n) {
|
|
19634
19649
|
return !!(n && n._tippy && n._tippy.reference === n);
|
|
@@ -19693,7 +19708,7 @@ function nb() {
|
|
|
19693
19708
|
}
|
|
19694
19709
|
}
|
|
19695
19710
|
function rb() {
|
|
19696
|
-
document.addEventListener("touchstart", tb,
|
|
19711
|
+
document.addEventListener("touchstart", tb, Yn), window.addEventListener("blur", nb);
|
|
19697
19712
|
}
|
|
19698
19713
|
var ib = typeof window < "u" && typeof document < "u", ob = ib ? (
|
|
19699
19714
|
// @ts-ignore
|
|
@@ -19876,11 +19891,11 @@ var pb = function() {
|
|
|
19876
19891
|
function ta(n, e) {
|
|
19877
19892
|
n[pb()] = e;
|
|
19878
19893
|
}
|
|
19879
|
-
function
|
|
19894
|
+
function Uc(n) {
|
|
19880
19895
|
var e = Zr();
|
|
19881
19896
|
return n === !0 ? e.className = sf : (e.className = af, di(n) ? e.appendChild(n) : ta(e, n)), e;
|
|
19882
19897
|
}
|
|
19883
|
-
function
|
|
19898
|
+
function Hc(n, e) {
|
|
19884
19899
|
di(e.content) ? (ta(n, ""), n.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? ta(n, e.content) : n.textContent = e.content);
|
|
19885
19900
|
}
|
|
19886
19901
|
function na(n) {
|
|
@@ -19902,10 +19917,10 @@ function mf(n) {
|
|
|
19902
19917
|
var e = Zr(), t = Zr();
|
|
19903
19918
|
t.className = V2, t.setAttribute("data-state", "hidden"), t.setAttribute("tabindex", "-1");
|
|
19904
19919
|
var r = Zr();
|
|
19905
|
-
r.className = of, r.setAttribute("data-state", "hidden"),
|
|
19920
|
+
r.className = of, r.setAttribute("data-state", "hidden"), Hc(r, n.props), e.appendChild(t), t.appendChild(r), i(n.props, n.props);
|
|
19906
19921
|
function i(o, s) {
|
|
19907
19922
|
var l = na(e), a = l.box, c = l.content, u = l.arrow;
|
|
19908
|
-
s.theme ? a.setAttribute("data-theme", s.theme) : a.removeAttribute("data-theme"), typeof s.animation == "string" ? a.setAttribute("data-animation", s.animation) : a.removeAttribute("data-animation"), s.inertia ? a.setAttribute("data-inertia", "") : a.removeAttribute("data-inertia"), a.style.maxWidth = typeof s.maxWidth == "number" ? s.maxWidth + "px" : s.maxWidth, s.role ? a.setAttribute("role", s.role) : a.removeAttribute("role"), (o.content !== s.content || o.allowHTML !== s.allowHTML) &&
|
|
19923
|
+
s.theme ? a.setAttribute("data-theme", s.theme) : a.removeAttribute("data-theme"), typeof s.animation == "string" ? a.setAttribute("data-animation", s.animation) : a.removeAttribute("data-animation"), s.inertia ? a.setAttribute("data-inertia", "") : a.removeAttribute("data-inertia"), a.style.maxWidth = typeof s.maxWidth == "number" ? s.maxWidth + "px" : s.maxWidth, s.role ? a.setAttribute("role", s.role) : a.removeAttribute("role"), (o.content !== s.content || o.allowHTML !== s.allowHTML) && Hc(c, n.props), s.arrow ? u ? o.arrow !== s.arrow && (a.removeChild(u), a.appendChild(Uc(s.arrow))) : a.appendChild(Uc(s.arrow)) : u && a.removeChild(u);
|
|
19909
19924
|
}
|
|
19910
19925
|
return {
|
|
19911
19926
|
popper: e,
|
|
@@ -19938,7 +19953,7 @@ function mb(n, e) {
|
|
|
19938
19953
|
// methods
|
|
19939
19954
|
clearDelayTimeouts: De,
|
|
19940
19955
|
setProps: Ve,
|
|
19941
|
-
setContent:
|
|
19956
|
+
setContent: Ue,
|
|
19942
19957
|
show: Ne,
|
|
19943
19958
|
hide: _e,
|
|
19944
19959
|
hideWithInteractivity: wt,
|
|
@@ -19970,11 +19985,11 @@ function mb(n, e) {
|
|
|
19970
19985
|
var Y;
|
|
19971
19986
|
return !!((Y = y.props.render) != null && Y.$$tippy);
|
|
19972
19987
|
}
|
|
19973
|
-
function
|
|
19988
|
+
function H() {
|
|
19974
19989
|
return m || n;
|
|
19975
19990
|
}
|
|
19976
19991
|
function J() {
|
|
19977
|
-
var Y =
|
|
19992
|
+
var Y = H().parentNode;
|
|
19978
19993
|
return Y ? _2(Y) : document;
|
|
19979
19994
|
}
|
|
19980
19995
|
function X() {
|
|
@@ -19999,11 +20014,11 @@ function mb(n, e) {
|
|
|
19999
20014
|
if (Y.content) {
|
|
20000
20015
|
var oe = "aria-" + Y.content, se = C.id, Se = br(y.props.triggerTarget || n);
|
|
20001
20016
|
Se.forEach(function(Te) {
|
|
20002
|
-
var
|
|
20017
|
+
var Ge = Te.getAttribute(oe);
|
|
20003
20018
|
if (y.state.isVisible)
|
|
20004
|
-
Te.setAttribute(oe,
|
|
20019
|
+
Te.setAttribute(oe, Ge ? Ge + " " + se : se);
|
|
20005
20020
|
else {
|
|
20006
|
-
var Ze =
|
|
20021
|
+
var Ze = Ge && Ge.replace(se, "").trim();
|
|
20007
20022
|
Ze ? Te.setAttribute(oe, Ze) : Te.removeAttribute(oe);
|
|
20008
20023
|
}
|
|
20009
20024
|
});
|
|
@@ -20013,7 +20028,7 @@ function mb(n, e) {
|
|
|
20013
20028
|
if (!($ || !y.props.aria.expanded)) {
|
|
20014
20029
|
var Y = br(y.props.triggerTarget || n);
|
|
20015
20030
|
Y.forEach(function(oe) {
|
|
20016
|
-
y.props.interactive ? oe.setAttribute("aria-expanded", y.state.isVisible && oe ===
|
|
20031
|
+
y.props.interactive ? oe.setAttribute("aria-expanded", y.state.isVisible && oe === H() ? "true" : "false") : oe.removeAttribute("aria-expanded");
|
|
20017
20032
|
});
|
|
20018
20033
|
}
|
|
20019
20034
|
}
|
|
@@ -20047,11 +20062,11 @@ function mb(n, e) {
|
|
|
20047
20062
|
}
|
|
20048
20063
|
function ke() {
|
|
20049
20064
|
var Y = J();
|
|
20050
|
-
Y.addEventListener("mousedown", Ce, !0), Y.addEventListener("touchend", Ce,
|
|
20065
|
+
Y.addEventListener("mousedown", Ce, !0), Y.addEventListener("touchend", Ce, Yn), Y.addEventListener("touchstart", Oe, Yn), Y.addEventListener("touchmove", xe, Yn);
|
|
20051
20066
|
}
|
|
20052
20067
|
function Me() {
|
|
20053
20068
|
var Y = J();
|
|
20054
|
-
Y.removeEventListener("mousedown", Ce, !0), Y.removeEventListener("touchend", Ce,
|
|
20069
|
+
Y.removeEventListener("mousedown", Ce, !0), Y.removeEventListener("touchend", Ce, Yn), Y.removeEventListener("touchstart", Oe, Yn), Y.removeEventListener("touchmove", xe, Yn);
|
|
20055
20070
|
}
|
|
20056
20071
|
function ye(Y, oe) {
|
|
20057
20072
|
O(Y, function() {
|
|
@@ -20118,10 +20133,10 @@ function mb(n, e) {
|
|
|
20118
20133
|
}
|
|
20119
20134
|
}
|
|
20120
20135
|
function M(Y) {
|
|
20121
|
-
var oe = Y.target, se =
|
|
20136
|
+
var oe = Y.target, se = H().contains(oe) || C.contains(oe);
|
|
20122
20137
|
if (!(Y.type === "mousemove" && se)) {
|
|
20123
20138
|
var Se = K().concat(C).map(function(Te) {
|
|
20124
|
-
var
|
|
20139
|
+
var Ge, Ze = Te._tippy, ht = (Ge = Ze.popperInstance) == null ? void 0 : Ge.state;
|
|
20125
20140
|
return ht ? {
|
|
20126
20141
|
popperRect: Te.getBoundingClientRect(),
|
|
20127
20142
|
popperState: ht,
|
|
@@ -20142,16 +20157,16 @@ function mb(n, e) {
|
|
|
20142
20157
|
}
|
|
20143
20158
|
}
|
|
20144
20159
|
function D(Y) {
|
|
20145
|
-
y.props.trigger.indexOf("focusin") < 0 && Y.target !==
|
|
20160
|
+
y.props.trigger.indexOf("focusin") < 0 && Y.target !== H() || y.props.interactive && Y.relatedTarget && C.contains(Y.relatedTarget) || q(Y);
|
|
20146
20161
|
}
|
|
20147
20162
|
function N(Y) {
|
|
20148
20163
|
return sn.isTouch ? P() !== Y.type.indexOf("touch") >= 0 : !1;
|
|
20149
20164
|
}
|
|
20150
|
-
function
|
|
20165
|
+
function U() {
|
|
20151
20166
|
W();
|
|
20152
|
-
var Y = y.props, oe = Y.popperOptions, se = Y.placement, Se = Y.offset, Te = Y.getReferenceClientRect,
|
|
20167
|
+
var Y = y.props, oe = Y.popperOptions, se = Y.placement, Se = Y.offset, Te = Y.getReferenceClientRect, Ge = Y.moveTransition, Ze = L() ? na(C).arrow : null, ht = Te ? {
|
|
20153
20168
|
getBoundingClientRect: Te,
|
|
20154
|
-
contextElement: Te.contextElement ||
|
|
20169
|
+
contextElement: Te.contextElement || H()
|
|
20155
20170
|
} : n, mt = {
|
|
20156
20171
|
name: "$$tippy",
|
|
20157
20172
|
enabled: !0,
|
|
@@ -20189,7 +20204,7 @@ function mb(n, e) {
|
|
|
20189
20204
|
}, {
|
|
20190
20205
|
name: "computeStyles",
|
|
20191
20206
|
options: {
|
|
20192
|
-
adaptive: !
|
|
20207
|
+
adaptive: !Ge
|
|
20193
20208
|
}
|
|
20194
20209
|
}, mt];
|
|
20195
20210
|
L() && Ze && it.push({
|
|
@@ -20198,7 +20213,7 @@ function mb(n, e) {
|
|
|
20198
20213
|
element: Ze,
|
|
20199
20214
|
padding: 3
|
|
20200
20215
|
}
|
|
20201
|
-
}), it.push.apply(it, (oe == null ? void 0 : oe.modifiers) || []), y.popperInstance =
|
|
20216
|
+
}), it.push.apply(it, (oe == null ? void 0 : oe.modifiers) || []), y.popperInstance = H2(ht, C, Object.assign({}, oe, {
|
|
20202
20217
|
placement: se,
|
|
20203
20218
|
onFirstUpdate: f,
|
|
20204
20219
|
modifiers: it
|
|
@@ -20208,8 +20223,8 @@ function mb(n, e) {
|
|
|
20208
20223
|
y.popperInstance && (y.popperInstance.destroy(), y.popperInstance = null);
|
|
20209
20224
|
}
|
|
20210
20225
|
function V() {
|
|
20211
|
-
var Y = y.props.appendTo, oe, se =
|
|
20212
|
-
y.props.interactive && Y === lf || Y === "parent" ? oe = se.parentNode : oe = cf(Y, [se]), oe.contains(C) || oe.appendChild(C), y.state.isMounted = !0,
|
|
20226
|
+
var Y = y.props.appendTo, oe, se = H();
|
|
20227
|
+
y.props.interactive && Y === lf || Y === "parent" ? oe = se.parentNode : oe = cf(Y, [se]), oe.contains(C) || oe.appendChild(C), y.state.isMounted = !0, U(), process.env.NODE_ENV !== "production" && bn(y.props.interactive && Y === Rt.appendTo && se.nextElementSibling !== C, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
20213
20228
|
|
|
20214
20229
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
20215
20230
|
|
|
@@ -20258,12 +20273,12 @@ function mb(n, e) {
|
|
|
20258
20273
|
}));
|
|
20259
20274
|
y.props = se, A(), oe.interactiveDebounce !== se.interactiveDebounce && (be(), p = Dc(M, se.interactiveDebounce)), oe.triggerTarget && !se.triggerTarget ? br(oe.triggerTarget).forEach(function(Se) {
|
|
20260
20275
|
Se.removeAttribute("aria-expanded");
|
|
20261
|
-
}) : se.triggerTarget && n.removeAttribute("aria-expanded"), fe(), ne(), F && F(oe, se), y.popperInstance && (
|
|
20276
|
+
}) : se.triggerTarget && n.removeAttribute("aria-expanded"), fe(), ne(), F && F(oe, se), y.popperInstance && (U(), K().forEach(function(Se) {
|
|
20262
20277
|
requestAnimationFrame(Se._tippy.popperInstance.forceUpdate);
|
|
20263
20278
|
})), j("onAfterUpdate", [y, Y]);
|
|
20264
20279
|
}
|
|
20265
20280
|
}
|
|
20266
|
-
function
|
|
20281
|
+
function Ue(Y) {
|
|
20267
20282
|
y.setProps({
|
|
20268
20283
|
content: Y
|
|
20269
20284
|
});
|
|
@@ -20271,9 +20286,9 @@ function mb(n, e) {
|
|
|
20271
20286
|
function Ne() {
|
|
20272
20287
|
process.env.NODE_ENV !== "production" && bn(y.state.isDestroyed, mr("show"));
|
|
20273
20288
|
var Y = y.state.isVisible, oe = y.state.isDestroyed, se = !y.state.isEnabled, Se = sn.isTouch && !y.props.touch, Te = ws(y.props.duration, 0, Rt.duration);
|
|
20274
|
-
if (!(Y || oe || se || Se) && !
|
|
20289
|
+
if (!(Y || oe || se || Se) && !H().hasAttribute("disabled") && (j("onShow", [y], !1), y.props.onShow(y) !== !1)) {
|
|
20275
20290
|
if (y.state.isVisible = !0, L() && (C.style.visibility = "visible"), ne(), ke(), y.state.isMounted || (C.style.transition = "none"), L()) {
|
|
20276
|
-
var
|
|
20291
|
+
var Ge = X(), Ze = Ge.box, ht = Ge.content;
|
|
20277
20292
|
Cs([Ze, ht], 0);
|
|
20278
20293
|
}
|
|
20279
20294
|
f = function() {
|
|
@@ -20295,8 +20310,8 @@ function mb(n, e) {
|
|
|
20295
20310
|
var Y = !y.state.isVisible, oe = y.state.isDestroyed, se = !y.state.isEnabled, Se = ws(y.props.duration, 1, Rt.duration);
|
|
20296
20311
|
if (!(Y || oe || se) && (j("onHide", [y], !1), y.props.onHide(y) !== !1)) {
|
|
20297
20312
|
if (y.state.isVisible = !1, y.state.isShown = !1, c = !1, s = !1, L() && (C.style.visibility = "hidden"), be(), Me(), ne(!0), L()) {
|
|
20298
|
-
var Te = X(),
|
|
20299
|
-
y.props.animation && (Cs([
|
|
20313
|
+
var Te = X(), Ge = Te.box, Ze = Te.content;
|
|
20314
|
+
y.props.animation && (Cs([Ge, Ze], Se), Pc([Ge, Ze], "hidden"));
|
|
20300
20315
|
}
|
|
20301
20316
|
ae(), fe(), y.props.animation ? L() && ye(Se, y.unmount) : y.unmount();
|
|
20302
20317
|
}
|
|
@@ -20610,7 +20625,7 @@ Be({
|
|
|
20610
20625
|
i.unregisterPlugin(r);
|
|
20611
20626
|
}), () => {
|
|
20612
20627
|
var r;
|
|
20613
|
-
return
|
|
20628
|
+
return er("div", { ref: t }, (r = e.default) === null || r === void 0 ? void 0 : r.call(e));
|
|
20614
20629
|
};
|
|
20615
20630
|
}
|
|
20616
20631
|
});
|
|
@@ -20688,15 +20703,15 @@ const bb = Be({
|
|
|
20688
20703
|
render() {
|
|
20689
20704
|
const n = [];
|
|
20690
20705
|
return this.editor && this.editor.vueRenderers.forEach((e) => {
|
|
20691
|
-
const t =
|
|
20706
|
+
const t = er(ou, {
|
|
20692
20707
|
to: e.teleportElement,
|
|
20693
20708
|
key: e.id
|
|
20694
|
-
},
|
|
20709
|
+
}, er(e.component, {
|
|
20695
20710
|
ref: e.id,
|
|
20696
20711
|
...e.props
|
|
20697
20712
|
}));
|
|
20698
20713
|
n.push(t);
|
|
20699
|
-
}),
|
|
20714
|
+
}), er("div", {
|
|
20700
20715
|
ref: (e) => {
|
|
20701
20716
|
this.rootEl = e;
|
|
20702
20717
|
}
|
|
@@ -20741,7 +20756,7 @@ Be({
|
|
|
20741
20756
|
i.unregisterPlugin(r);
|
|
20742
20757
|
}), () => {
|
|
20743
20758
|
var r;
|
|
20744
|
-
return
|
|
20759
|
+
return er("div", { ref: t }, (r = e.default) === null || r === void 0 ? void 0 : r.call(e));
|
|
20745
20760
|
};
|
|
20746
20761
|
}
|
|
20747
20762
|
});
|
|
@@ -20754,7 +20769,7 @@ Be({
|
|
|
20754
20769
|
}
|
|
20755
20770
|
},
|
|
20756
20771
|
render() {
|
|
20757
|
-
return
|
|
20772
|
+
return er(this.as, {
|
|
20758
20773
|
style: {
|
|
20759
20774
|
whiteSpace: "pre-wrap"
|
|
20760
20775
|
},
|
|
@@ -20773,7 +20788,7 @@ Be({
|
|
|
20773
20788
|
inject: ["onDragStart", "decorationClasses"],
|
|
20774
20789
|
render() {
|
|
20775
20790
|
var n, e;
|
|
20776
|
-
return
|
|
20791
|
+
return er(this.as, {
|
|
20777
20792
|
// @ts-ignore
|
|
20778
20793
|
class: this.decorationClasses,
|
|
20779
20794
|
style: {
|
|
@@ -20836,7 +20851,7 @@ const xb = (n = {}) => {
|
|
|
20836
20851
|
function Ob(n, e) {
|
|
20837
20852
|
return n in e || (e[n] = []), e[n];
|
|
20838
20853
|
}
|
|
20839
|
-
function
|
|
20854
|
+
function _n(n, e, t) {
|
|
20840
20855
|
e[ra] && (e[Pi] = !0, e[Oi] = !0), e[ia] && (e[Pi] = !0, e[oa] = !0), e[Pi] && (e[Oi] = !0), e[oa] && (e[Oi] = !0), e[Oi] && (e[sa] = !0), e[yf] && (e[sa] = !0);
|
|
20841
20856
|
for (const r in e) {
|
|
20842
20857
|
const i = Ob(r, t);
|
|
@@ -20908,7 +20923,7 @@ Ct.prototype = {
|
|
|
20908
20923
|
tr(n, e, t, r) {
|
|
20909
20924
|
r = r || Ct.groups;
|
|
20910
20925
|
let i;
|
|
20911
|
-
return e && e.j ? i = e : (i = new Ct(e), t && r &&
|
|
20926
|
+
return e && e.j ? i = e : (i = new Ct(e), t && r && _n(e, t, r)), this.jr.push([n, i]), i;
|
|
20912
20927
|
},
|
|
20913
20928
|
/**
|
|
20914
20929
|
* Short for "take transitions", will take as many sequential transitions as
|
|
@@ -20966,9 +20981,9 @@ Ct.prototype = {
|
|
|
20966
20981
|
if (r)
|
|
20967
20982
|
if (s.t && typeof s.t == "string") {
|
|
20968
20983
|
const a = Pr(Mb(s.t, r), t);
|
|
20969
|
-
|
|
20984
|
+
_n(o, a, r);
|
|
20970
20985
|
} else
|
|
20971
|
-
t &&
|
|
20986
|
+
t && _n(o, t, r);
|
|
20972
20987
|
s.t = o;
|
|
20973
20988
|
}
|
|
20974
20989
|
return i.j[n] = s, s;
|
|
@@ -21068,16 +21083,16 @@ function Db(n) {
|
|
|
21068
21083
|
On(t, Mi[d], la, vn, c);
|
|
21069
21084
|
for (let d = 0; d < Ii.length; d++)
|
|
21070
21085
|
On(t, Ii[d], ca, aa, u);
|
|
21071
|
-
|
|
21086
|
+
_n(la, {
|
|
21072
21087
|
tld: !0,
|
|
21073
21088
|
ascii: !0
|
|
21074
|
-
}, e),
|
|
21089
|
+
}, e), _n(ca, {
|
|
21075
21090
|
utld: !0,
|
|
21076
21091
|
alpha: !0
|
|
21077
|
-
}, e), On(t, "file", Fi, vn, c), On(t, "mailto", Fi, vn, c), On(t, "http", xr, vn, c), On(t, "https", xr, vn, c), On(t, "ftp", xr, vn, c), On(t, "ftps", xr, vn, c),
|
|
21092
|
+
}, e), On(t, "file", Fi, vn, c), On(t, "mailto", Fi, vn, c), On(t, "http", xr, vn, c), On(t, "https", xr, vn, c), On(t, "ftp", xr, vn, c), On(t, "ftps", xr, vn, c), _n(Fi, {
|
|
21078
21093
|
scheme: !0,
|
|
21079
21094
|
ascii: !0
|
|
21080
|
-
}, e),
|
|
21095
|
+
}, e), _n(xr, {
|
|
21081
21096
|
slashscheme: !0,
|
|
21082
21097
|
ascii: !0
|
|
21083
21098
|
}, e), n = n.sort((d, f) => d[0] > f[0] ? 1 : -1);
|
|
@@ -21436,8 +21451,8 @@ function Fb(n) {
|
|
|
21436
21451
|
[go, vo]
|
|
21437
21452
|
// <>
|
|
21438
21453
|
];
|
|
21439
|
-
for (let
|
|
21440
|
-
const [J, X] = L[
|
|
21454
|
+
for (let H = 0; H < L.length; H++) {
|
|
21455
|
+
const [J, X] = L[H], Z = ce(C, J);
|
|
21441
21456
|
ce(F, J, Z), ce(Z, X, C);
|
|
21442
21457
|
const ne = $t(Ri);
|
|
21443
21458
|
Ie(Z, t, ne);
|
|
@@ -21472,7 +21487,7 @@ function Is(n, e, t) {
|
|
|
21472
21487
|
return new n(o, t);
|
|
21473
21488
|
}
|
|
21474
21489
|
const zb = typeof console < "u" && console && console.warn || (() => {
|
|
21475
|
-
}), $b = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",
|
|
21490
|
+
}), $b = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", Je = {
|
|
21476
21491
|
scanner: null,
|
|
21477
21492
|
parser: null,
|
|
21478
21493
|
tokenQueue: [],
|
|
@@ -21480,33 +21495,33 @@ const zb = typeof console < "u" && console && console.warn || (() => {
|
|
|
21480
21495
|
customSchemes: [],
|
|
21481
21496
|
initialized: !1
|
|
21482
21497
|
};
|
|
21483
|
-
function
|
|
21484
|
-
Ct.groups = {},
|
|
21498
|
+
function Ub() {
|
|
21499
|
+
Ct.groups = {}, Je.scanner = null, Je.parser = null, Je.tokenQueue = [], Je.pluginQueue = [], Je.customSchemes = [], Je.initialized = !1;
|
|
21485
21500
|
}
|
|
21486
21501
|
function Qc(n, e) {
|
|
21487
|
-
if (e === void 0 && (e = !1),
|
|
21502
|
+
if (e === void 0 && (e = !1), Je.initialized && zb(`linkifyjs: already initialized - will not register custom scheme "${n}" ${$b}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(n))
|
|
21488
21503
|
throw new Error(`linkifyjs: incorrect scheme format.
|
|
21489
21504
|
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
21490
21505
|
2. Cannot start or end with "-"
|
|
21491
21506
|
3. "-" cannot repeat`);
|
|
21492
|
-
|
|
21507
|
+
Je.customSchemes.push([n, e]);
|
|
21493
21508
|
}
|
|
21494
|
-
function
|
|
21495
|
-
|
|
21496
|
-
for (let n = 0; n <
|
|
21497
|
-
|
|
21498
|
-
scanner:
|
|
21509
|
+
function Hb() {
|
|
21510
|
+
Je.scanner = Db(Je.customSchemes);
|
|
21511
|
+
for (let n = 0; n < Je.tokenQueue.length; n++)
|
|
21512
|
+
Je.tokenQueue[n][1]({
|
|
21513
|
+
scanner: Je.scanner
|
|
21499
21514
|
});
|
|
21500
|
-
|
|
21501
|
-
for (let n = 0; n <
|
|
21502
|
-
|
|
21503
|
-
scanner:
|
|
21504
|
-
parser:
|
|
21515
|
+
Je.parser = Fb(Je.scanner.tokens);
|
|
21516
|
+
for (let n = 0; n < Je.pluginQueue.length; n++)
|
|
21517
|
+
Je.pluginQueue[n][1]({
|
|
21518
|
+
scanner: Je.scanner,
|
|
21519
|
+
parser: Je.parser
|
|
21505
21520
|
});
|
|
21506
|
-
|
|
21521
|
+
Je.initialized = !0;
|
|
21507
21522
|
}
|
|
21508
21523
|
function Vb(n) {
|
|
21509
|
-
return
|
|
21524
|
+
return Je.initialized || Hb(), Bb(Je.parser.start, n, Nb(Je.scanner.start, n));
|
|
21510
21525
|
}
|
|
21511
21526
|
function Xa(n, e, t) {
|
|
21512
21527
|
if (e === void 0 && (e = null), t === void 0 && (t = null), e && typeof e == "object") {
|
|
@@ -21606,7 +21621,7 @@ const Gb = fn.create({
|
|
|
21606
21621
|
});
|
|
21607
21622
|
},
|
|
21608
21623
|
onDestroy() {
|
|
21609
|
-
|
|
21624
|
+
Ub();
|
|
21610
21625
|
},
|
|
21611
21626
|
inclusive() {
|
|
21612
21627
|
return this.options.autolink;
|
|
@@ -21729,7 +21744,7 @@ const Gb = fn.create({
|
|
|
21729
21744
|
if ((c || !this.options.showOnlyCurrent) && u) {
|
|
21730
21745
|
const d = [this.options.emptyNodeClass];
|
|
21731
21746
|
s && d.push(this.options.emptyEditorClass);
|
|
21732
|
-
const f =
|
|
21747
|
+
const f = Ht.node(a, a + l.nodeSize, {
|
|
21733
21748
|
class: d.join(" "),
|
|
21734
21749
|
"data-placeholder": typeof this.options.placeholder == "function" ? this.options.placeholder({
|
|
21735
21750
|
editor: this.editor,
|
|
@@ -22221,126 +22236,130 @@ const Gb = fn.create({
|
|
|
22221
22236
|
variant: { default: Rs.BASIC },
|
|
22222
22237
|
modelValue: {}
|
|
22223
22238
|
},
|
|
22224
|
-
emits: ["update:modelValue"],
|
|
22239
|
+
emits: ["update:modelValue", "upload"],
|
|
22225
22240
|
setup(n, { emit: e }) {
|
|
22226
|
-
const t = n, r =
|
|
22227
|
-
|
|
22241
|
+
const t = n, r = () => {
|
|
22242
|
+
e("upload");
|
|
22243
|
+
}, i = dr(t, "modelValue", e), o = [Sb, Eb, wb, Yb.configure({ placeholder: t.placeholder }), d5];
|
|
22244
|
+
t.variant === Rs.FULL && o.push(_b, i5, o5, s5, l5, u5, Jb.configure({
|
|
22228
22245
|
openOnClick: !1,
|
|
22229
|
-
validate: (
|
|
22246
|
+
validate: (h) => /^https?:\/\//.test(h)
|
|
22230
22247
|
}));
|
|
22231
|
-
const
|
|
22232
|
-
content:
|
|
22233
|
-
extensions:
|
|
22234
|
-
onUpdate: ({ editor:
|
|
22235
|
-
const { view:
|
|
22236
|
-
if (
|
|
22248
|
+
const s = xb({
|
|
22249
|
+
content: i.value,
|
|
22250
|
+
extensions: o,
|
|
22251
|
+
onUpdate: ({ editor: h }) => {
|
|
22252
|
+
const { view: p, state: m } = h, { from: g, to: x } = p.state.selection;
|
|
22253
|
+
if (m.doc.textBetween(g - 1, x, "") == " " && h.getAttributes("link").href != null && h.chain().setTextSelection({ from: g - 1, to: x }).toggleLink({ href: h.getAttributes("link").href }).setTextSelection({ from: x, to: x }).run(), h.getText().trim() === "") {
|
|
22237
22254
|
e("update:modelValue", "");
|
|
22238
22255
|
return;
|
|
22239
22256
|
}
|
|
22240
|
-
e("update:modelValue",
|
|
22257
|
+
e("update:modelValue", h.getHTML());
|
|
22241
22258
|
}
|
|
22242
22259
|
});
|
|
22243
|
-
|
|
22244
|
-
|
|
22260
|
+
Un(() => t.modelValue, (h) => {
|
|
22261
|
+
s.value.getHTML() !== h && s.value.commands.setContent(h, !0, {
|
|
22245
22262
|
preserveWhitespace: "full"
|
|
22246
22263
|
});
|
|
22247
22264
|
});
|
|
22248
|
-
const
|
|
22249
|
-
Re(() =>
|
|
22250
|
-
const
|
|
22251
|
-
return (
|
|
22265
|
+
const l = Re(() => t.state ? "is-invalid" : null), a = Re(() => f("bold")), c = Re(() => f("italic")), u = Re(() => f("underline"));
|
|
22266
|
+
Re(() => f("bulletList")), Re(() => f("orderedList"));
|
|
22267
|
+
const d = Re(() => t.variant === Rs.FULL), f = (h) => s.value && s.value.isActive(h) ? "active" : null;
|
|
22268
|
+
return (h, p) => (de(), ve(mi, null, [
|
|
22252
22269
|
ue("div", {
|
|
22253
|
-
class: je(["bd-markdown-editor",
|
|
22270
|
+
class: je(["bd-markdown-editor", l.value])
|
|
22254
22271
|
}, [
|
|
22255
|
-
|
|
22272
|
+
He(Ee(bb), { editor: Ee(s) }, null, 8, ["editor"]),
|
|
22273
|
+
We(h.$slots, "default"),
|
|
22256
22274
|
ue("div", f5, [
|
|
22257
|
-
|
|
22275
|
+
He(on, {
|
|
22258
22276
|
variant: "light",
|
|
22259
|
-
type: "button"
|
|
22277
|
+
type: "button",
|
|
22278
|
+
onClick: r
|
|
22260
22279
|
}, {
|
|
22261
22280
|
default: dt(() => [
|
|
22262
|
-
|
|
22281
|
+
He(Ee(Bi))
|
|
22263
22282
|
]),
|
|
22264
22283
|
_: 1
|
|
22265
22284
|
}),
|
|
22266
|
-
|
|
22267
|
-
|
|
22285
|
+
d.value ? (de(), ve("div", p5)) : Xe("", !0),
|
|
22286
|
+
d.value ? (de(), vt(on, {
|
|
22268
22287
|
key: 1,
|
|
22269
22288
|
variant: "light",
|
|
22270
22289
|
type: "button",
|
|
22271
|
-
class: je(
|
|
22272
|
-
onClick:
|
|
22290
|
+
class: je(a.value),
|
|
22291
|
+
onClick: p[0] || (p[0] = (m) => Ee(s).chain().focus().toggleBold().run())
|
|
22273
22292
|
}, {
|
|
22274
22293
|
default: dt(() => [
|
|
22275
|
-
|
|
22294
|
+
He(Ee(mu))
|
|
22276
22295
|
]),
|
|
22277
22296
|
_: 1
|
|
22278
22297
|
}, 8, ["class"])) : Xe("", !0),
|
|
22279
|
-
|
|
22298
|
+
d.value ? (de(), vt(on, {
|
|
22280
22299
|
key: 2,
|
|
22281
22300
|
variant: "light",
|
|
22282
22301
|
type: "button",
|
|
22283
|
-
class: je(
|
|
22284
|
-
onClick:
|
|
22302
|
+
class: je(c.value),
|
|
22303
|
+
onClick: p[1] || (p[1] = (m) => Ee(s).chain().focus().toggleItalic().run())
|
|
22285
22304
|
}, {
|
|
22286
22305
|
default: dt(() => [
|
|
22287
|
-
|
|
22306
|
+
He(Ee(hu))
|
|
22288
22307
|
]),
|
|
22289
22308
|
_: 1
|
|
22290
22309
|
}, 8, ["class"])) : Xe("", !0),
|
|
22291
|
-
|
|
22310
|
+
d.value ? (de(), vt(on, {
|
|
22292
22311
|
key: 3,
|
|
22293
22312
|
variant: "light",
|
|
22294
22313
|
type: "button",
|
|
22295
|
-
class: je(
|
|
22296
|
-
onClick:
|
|
22314
|
+
class: je(u.value),
|
|
22315
|
+
onClick: p[2] || (p[2] = (m) => Ee(s).chain().focus().toggleUnderline().run())
|
|
22297
22316
|
}, {
|
|
22298
22317
|
default: dt(() => [
|
|
22299
|
-
|
|
22318
|
+
He(Ee(gu))
|
|
22300
22319
|
]),
|
|
22301
22320
|
_: 1
|
|
22302
22321
|
}, 8, ["class"])) : Xe("", !0),
|
|
22303
|
-
|
|
22304
|
-
|
|
22322
|
+
d.value ? (de(), ve("div", h5)) : Xe("", !0),
|
|
22323
|
+
d.value ? (de(), vt(on, {
|
|
22305
22324
|
key: 5,
|
|
22306
22325
|
variant: "light",
|
|
22307
22326
|
type: "button",
|
|
22308
22327
|
class: "IsUnderlineActive",
|
|
22309
|
-
onClick:
|
|
22328
|
+
onClick: p[3] || (p[3] = (m) => Ee(s).chain().focus().toggleUnderline().run())
|
|
22310
22329
|
}, {
|
|
22311
22330
|
default: dt(() => [
|
|
22312
|
-
|
|
22331
|
+
He(Ee(vu))
|
|
22313
22332
|
]),
|
|
22314
22333
|
_: 1
|
|
22315
22334
|
})) : Xe("", !0),
|
|
22316
|
-
|
|
22335
|
+
d.value ? (de(), vt(on, {
|
|
22317
22336
|
key: 6,
|
|
22318
22337
|
variant: "light",
|
|
22319
22338
|
type: "button",
|
|
22320
22339
|
class: "IsBulletListActive",
|
|
22321
|
-
onClick:
|
|
22340
|
+
onClick: p[4] || (p[4] = (m) => Ee(s).chain().focus().toggleBulletList().run())
|
|
22322
22341
|
}, {
|
|
22323
22342
|
default: dt(() => [
|
|
22324
|
-
|
|
22343
|
+
He(Ee(yu))
|
|
22325
22344
|
]),
|
|
22326
22345
|
_: 1
|
|
22327
22346
|
})) : Xe("", !0),
|
|
22328
|
-
|
|
22329
|
-
|
|
22347
|
+
d.value ? (de(), ve("div", m5)) : Xe("", !0),
|
|
22348
|
+
d.value ? (de(), vt(on, {
|
|
22330
22349
|
key: 8,
|
|
22331
22350
|
variant: "light",
|
|
22332
22351
|
type: "button",
|
|
22333
22352
|
class: "IsOrderedListActive",
|
|
22334
|
-
onClick:
|
|
22353
|
+
onClick: p[5] || (p[5] = (m) => Ee(s).chain().focus().toggleOrderedList().run())
|
|
22335
22354
|
}, {
|
|
22336
22355
|
default: dt(() => [
|
|
22337
|
-
|
|
22356
|
+
He(Ee(bu))
|
|
22338
22357
|
]),
|
|
22339
22358
|
_: 1
|
|
22340
22359
|
})) : Xe("", !0)
|
|
22341
22360
|
])
|
|
22342
22361
|
], 2),
|
|
22343
|
-
|
|
22362
|
+
He(Ee(ma), {
|
|
22344
22363
|
text: t.errorText,
|
|
22345
22364
|
state: t.state
|
|
22346
22365
|
}, null, 8, ["text", "state"])
|
|
@@ -22365,8 +22384,8 @@ const Gb = fn.create({
|
|
|
22365
22384
|
return (r, i) => (de(), ve("div", v5, [
|
|
22366
22385
|
e.hideImage ? Xe("", !0) : (de(), vt(xu, wn({ key: 0 }, e.img, { size: "sm" }), null, 16)),
|
|
22367
22386
|
ue("div", y5, [
|
|
22368
|
-
ue("h5", b5,
|
|
22369
|
-
ue("span", x5,
|
|
22387
|
+
ue("h5", b5, Ke(e.name), 1),
|
|
22388
|
+
ue("span", x5, Ke(t.value), 1)
|
|
22370
22389
|
])
|
|
22371
22390
|
]));
|
|
22372
22391
|
}
|
|
@@ -22403,14 +22422,14 @@ const Gb = fn.create({
|
|
|
22403
22422
|
"data-bs-toggle": "dropdown"
|
|
22404
22423
|
}, i.value), {
|
|
22405
22424
|
default: dt(() => [
|
|
22406
|
-
ue("span", null,
|
|
22425
|
+
ue("span", null, Ke(e.text), 1)
|
|
22407
22426
|
]),
|
|
22408
22427
|
_: 1
|
|
22409
22428
|
}, 16)),
|
|
22410
22429
|
ue("ul", wn({
|
|
22411
22430
|
class: ["dropdown-menu", o.value]
|
|
22412
22431
|
}, s.value), [
|
|
22413
|
-
|
|
22432
|
+
We(l.$slots, "default")
|
|
22414
22433
|
], 16)
|
|
22415
22434
|
]));
|
|
22416
22435
|
}
|
|
@@ -22422,6 +22441,7 @@ const Gb = fn.create({
|
|
|
22422
22441
|
props: {
|
|
22423
22442
|
title: { default: "" },
|
|
22424
22443
|
submitButtonTitle: { default: "Opslaan" },
|
|
22444
|
+
closeButtonTitle: { default: "Annuleren" },
|
|
22425
22445
|
hideFooterCancelButton: { type: Boolean, default: !1 }
|
|
22426
22446
|
},
|
|
22427
22447
|
emits: ["submit", "cancel"],
|
|
@@ -22435,7 +22455,7 @@ const Gb = fn.create({
|
|
|
22435
22455
|
ue("div", T5, [
|
|
22436
22456
|
ue("div", k5, [
|
|
22437
22457
|
ue("div", A5, [
|
|
22438
|
-
ue("h2", O5,
|
|
22458
|
+
ue("h2", O5, Ke(t.title), 1),
|
|
22439
22459
|
ue("button", {
|
|
22440
22460
|
type: "button",
|
|
22441
22461
|
class: "btn-close w-auto",
|
|
@@ -22444,18 +22464,18 @@ const Gb = fn.create({
|
|
|
22444
22464
|
onClick: i
|
|
22445
22465
|
}, [
|
|
22446
22466
|
Sn("Sluiten "),
|
|
22447
|
-
|
|
22467
|
+
He(Ee(pu), { class: "bg-primary" })
|
|
22448
22468
|
])
|
|
22449
22469
|
]),
|
|
22450
22470
|
ue("div", M5, [
|
|
22451
|
-
|
|
22471
|
+
We(o.$slots, "default")
|
|
22452
22472
|
]),
|
|
22453
22473
|
ue("div", I5, [
|
|
22454
22474
|
ue("button", {
|
|
22455
22475
|
type: "button",
|
|
22456
22476
|
class: "btn btn-primary",
|
|
22457
22477
|
onClick: r
|
|
22458
|
-
},
|
|
22478
|
+
}, Ke(t.submitButtonTitle), 1),
|
|
22459
22479
|
t.hideFooterCancelButton ? Xe("", !0) : (de(), ve("button", {
|
|
22460
22480
|
key: 0,
|
|
22461
22481
|
type: "button",
|
|
@@ -22463,7 +22483,7 @@ const Gb = fn.create({
|
|
|
22463
22483
|
"data-bs-dismiss": "modal",
|
|
22464
22484
|
onClick: i,
|
|
22465
22485
|
"aria-label": "Annuleren"
|
|
22466
|
-
},
|
|
22486
|
+
}, Ke(t.closeButtonTitle), 1))
|
|
22467
22487
|
])
|
|
22468
22488
|
])
|
|
22469
22489
|
])
|
|
@@ -22511,8 +22531,8 @@ const Gb = fn.create({
|
|
|
22511
22531
|
class: ["bd-btn", r.value]
|
|
22512
22532
|
}, o.value, { onClick: s }), {
|
|
22513
22533
|
default: dt(() => [
|
|
22514
|
-
|
|
22515
|
-
Sn(
|
|
22534
|
+
We(l.$slots, "default", {}, () => [
|
|
22535
|
+
Sn(Ke(t.text), 1)
|
|
22516
22536
|
])
|
|
22517
22537
|
]),
|
|
22518
22538
|
_: 3
|