@avakhula/ui 0.0.505-alpha.92 → 0.0.505-alpha.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +728 -714
- package/dist/index.umd.cjs +31 -31
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Form/DatePicker/DatePicker.scss +11 -5
- package/src/components/Form/DatePicker/DatePicker.vue +1 -2
- package/src/components/Form/Input/Input.vue +2 -0
- package/src/components/Form/TextEditor/TextEditor.vue +17 -3
- package/src/components/TreeSelect/Option.vue +3 -1
- package/src/components/TreeSelect/Select.vue +1 -0
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { openBlock as G, createElementBlock as te, normalizeStyle as di, normalizeClass as ge, resolveComponent as ce, createElementVNode as ae, withModifiers as ot, renderSlot as we, createVNode as pe, Transition as Ui, withCtx as ye, withDirectives as Ne, vShow as Ge, createBlock as $e, resolveDynamicComponent as zi, mergeProps as
|
|
2
|
-
const
|
|
1
|
+
import { openBlock as G, createElementBlock as te, normalizeStyle as di, normalizeClass as ge, resolveComponent as ce, createElementVNode as ae, withModifiers as ot, renderSlot as we, createVNode as pe, Transition as Ui, withCtx as ye, withDirectives as Ne, vShow as Ge, createBlock as $e, resolveDynamicComponent as zi, mergeProps as Tt, Fragment as nt, renderList as Dt, createCommentVNode as ue, toDisplayString as Oe, resolveDirective as Gt, createSlots as ha, Teleport as pl, createTextVNode as Ye, createApp as gl, vModelDynamic as pa, withKeys as pt, vModelCheckbox as ml, pushScopeId as ga, popScopeId as ma, useCssVars as vl, vModelText as va, defineComponent as ya, mergeModels as co, shallowRef as Or, useModel as yl, watch as Ut, nextTick as Di, reactive as bl, computed as Yn, onMounted as ba, unref as fo, onBeforeUnmount as _l, ref as ho, h as $l, createStaticVNode as _a } from "vue";
|
|
2
|
+
const Te = (t, n) => {
|
|
3
3
|
const e = t.__vccOpts || t;
|
|
4
4
|
for (const [r, o] of n)
|
|
5
5
|
e[r] = o;
|
|
@@ -35,8 +35,8 @@ function kl(t, n, e, r, o, i) {
|
|
|
35
35
|
ref: "icon"
|
|
36
36
|
}, null, 14, Ol);
|
|
37
37
|
}
|
|
38
|
-
const Ze = /* @__PURE__ */
|
|
39
|
-
function
|
|
38
|
+
const Ze = /* @__PURE__ */ Te(wl, [["render", kl]]);
|
|
39
|
+
function At() {
|
|
40
40
|
return "_" + Math.random().toString(36).substr(2, 9);
|
|
41
41
|
}
|
|
42
42
|
const $a = {
|
|
@@ -77,7 +77,7 @@ const Cl = {
|
|
|
77
77
|
data() {
|
|
78
78
|
return {
|
|
79
79
|
isActive: this.isOpen,
|
|
80
|
-
uuid:
|
|
80
|
+
uuid: At()
|
|
81
81
|
};
|
|
82
82
|
},
|
|
83
83
|
methods: {
|
|
@@ -88,8 +88,8 @@ const Cl = {
|
|
|
88
88
|
components: {
|
|
89
89
|
IbIcon: Ze
|
|
90
90
|
}
|
|
91
|
-
}, El = ["id", "aria-controls", "aria-expanded"], xl = ["id", "aria-labelledby"],
|
|
92
|
-
function
|
|
91
|
+
}, El = ["id", "aria-controls", "aria-expanded"], xl = ["id", "aria-labelledby"], Sl = { class: "accordion-content-wrapper" };
|
|
92
|
+
function Tl(t, n, e, r, o, i) {
|
|
93
93
|
const a = ce("ib-icon");
|
|
94
94
|
return G(), te("div", {
|
|
95
95
|
class: ge(["ib-accordion", { active: o.isActive }])
|
|
@@ -121,7 +121,7 @@ function Sl(t, n, e, r, o, i) {
|
|
|
121
121
|
id: "accordion-section-" + o.uuid,
|
|
122
122
|
"aria-labelledby": "accordion" + o.uuid
|
|
123
123
|
}, [
|
|
124
|
-
ae("div",
|
|
124
|
+
ae("div", Sl, [
|
|
125
125
|
we(t.$slots, "default", {}, void 0, !0)
|
|
126
126
|
])
|
|
127
127
|
], 8, xl), [
|
|
@@ -132,7 +132,7 @@ function Sl(t, n, e, r, o, i) {
|
|
|
132
132
|
}, 8, ["onEnter", "onAfterEnter", "onLeave"])
|
|
133
133
|
], 2);
|
|
134
134
|
}
|
|
135
|
-
const sp = /* @__PURE__ */
|
|
135
|
+
const sp = /* @__PURE__ */ Te(Cl, [["render", Tl], ["__scopeId", "data-v-8ece19c1"]]), yn = {
|
|
136
136
|
primary: "primary",
|
|
137
137
|
secondary: "secondary",
|
|
138
138
|
tertiary: "tertiary",
|
|
@@ -234,7 +234,7 @@ const Al = {
|
|
|
234
234
|
inheritAttrs: !1
|
|
235
235
|
}, Nl = ["method", "action"], Pl = ["value"], Il = ["value"], Ml = ["name", "value"];
|
|
236
236
|
function Dl(t, n, e, r, o, i) {
|
|
237
|
-
return G(), $e(zi(e.href.length ? "a" : "button"),
|
|
237
|
+
return G(), $e(zi(e.href.length ? "a" : "button"), Tt({
|
|
238
238
|
onClick: n[0] || (n[0] = (a) => i.onClick(a)),
|
|
239
239
|
onMouseenter: i.onMouseenter,
|
|
240
240
|
onMouseleave: i.onMouseleave
|
|
@@ -258,7 +258,7 @@ function Dl(t, n, e, r, o, i) {
|
|
|
258
258
|
name: "_token",
|
|
259
259
|
value: i.token
|
|
260
260
|
}, null, 8, Il),
|
|
261
|
-
(G(!0), te(nt, null,
|
|
261
|
+
(G(!0), te(nt, null, Dt(Object.keys(e.postOptions), (a, l) => (G(), te("input", {
|
|
262
262
|
key: l,
|
|
263
263
|
type: "hidden",
|
|
264
264
|
name: a,
|
|
@@ -271,7 +271,7 @@ function Dl(t, n, e, r, o, i) {
|
|
|
271
271
|
_: 3
|
|
272
272
|
}, 16, ["onMouseenter", "onMouseleave"]);
|
|
273
273
|
}
|
|
274
|
-
const Ll = /* @__PURE__ */
|
|
274
|
+
const Ll = /* @__PURE__ */ Te(Al, [["render", Dl]]), Rl = ["top", "right", "bottom", "left"], po = ["start", "end"], go = /* @__PURE__ */ Rl.reduce((t, n) => t.concat(n, n + "-" + po[0], n + "-" + po[1]), []), mo = Math.min, ei = Math.max, Li = Math.round, sn = (t) => ({
|
|
275
275
|
x: t,
|
|
276
276
|
y: t
|
|
277
277
|
}), Bl = {
|
|
@@ -529,22 +529,22 @@ const Wl = function(t) {
|
|
|
529
529
|
const v = [b[Ki(g)], b[$[0]], b[$[1]]], w = [...((r = a.autoPlacement) == null ? void 0 : r.overflows) || [], {
|
|
530
530
|
placement: g,
|
|
531
531
|
overflows: v
|
|
532
|
-
}],
|
|
533
|
-
if (
|
|
532
|
+
}], S = p[m + 1];
|
|
533
|
+
if (S)
|
|
534
534
|
return {
|
|
535
535
|
data: {
|
|
536
536
|
index: m + 1,
|
|
537
537
|
overflows: w
|
|
538
538
|
},
|
|
539
539
|
reset: {
|
|
540
|
-
placement:
|
|
540
|
+
placement: S
|
|
541
541
|
}
|
|
542
542
|
};
|
|
543
543
|
const E = w.map((C) => {
|
|
544
544
|
const O = _n(C.placement);
|
|
545
545
|
return [C.placement, O && h ? (
|
|
546
546
|
// Check along the mainAxis and main crossAxis side.
|
|
547
|
-
C.overflows.slice(0, 2).reduce((k,
|
|
547
|
+
C.overflows.slice(0, 2).reduce((k, T) => k + T, 0)
|
|
548
548
|
) : (
|
|
549
549
|
// Check only the mainAxis.
|
|
550
550
|
C.overflows[0]
|
|
@@ -596,14 +596,14 @@ function ci(t) {
|
|
|
596
596
|
overflowX: e,
|
|
597
597
|
overflowY: r,
|
|
598
598
|
display: o
|
|
599
|
-
} =
|
|
599
|
+
} = Nt(t);
|
|
600
600
|
return /auto|scroll|overlay|hidden|clip/.test(n + r + e) && !["inline", "contents"].includes(o);
|
|
601
601
|
}
|
|
602
602
|
function Yl(t) {
|
|
603
603
|
return ["table", "td", "th"].includes(un(t));
|
|
604
604
|
}
|
|
605
605
|
function Kr(t) {
|
|
606
|
-
const n = Gr(), e =
|
|
606
|
+
const n = Gr(), e = Nt(t);
|
|
607
607
|
return e.transform !== "none" || e.perspective !== "none" || (e.containerType ? e.containerType !== "normal" : !1) || !n && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !n && (e.filter ? e.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (e.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (e.contain || "").includes(r));
|
|
608
608
|
}
|
|
609
609
|
function Zl(t) {
|
|
@@ -621,7 +621,7 @@ function Gr() {
|
|
|
621
621
|
function Gi(t) {
|
|
622
622
|
return ["html", "body", "#document"].includes(un(t));
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function Nt(t) {
|
|
625
625
|
return xt(t).getComputedStyle(t);
|
|
626
626
|
}
|
|
627
627
|
function Wi(t) {
|
|
@@ -655,8 +655,8 @@ function Lr(t, n, e) {
|
|
|
655
655
|
const o = xa(t), i = o === ((r = t.ownerDocument) == null ? void 0 : r.body), a = xt(o);
|
|
656
656
|
return i ? n.concat(a, a.visualViewport || [], ci(o) ? o : [], a.frameElement && e ? Lr(a.frameElement) : []) : n.concat(o, Lr(o, [], e));
|
|
657
657
|
}
|
|
658
|
-
function
|
|
659
|
-
const n =
|
|
658
|
+
function Sa(t) {
|
|
659
|
+
const n = Nt(t);
|
|
660
660
|
let e = parseFloat(n.width) || 0, r = parseFloat(n.height) || 0;
|
|
661
661
|
const o = Kt(t), i = o ? t.offsetWidth : e, a = o ? t.offsetHeight : r, l = Li(e) !== i || Li(r) !== a;
|
|
662
662
|
return l && (e = i, r = a), {
|
|
@@ -665,18 +665,18 @@ function Ta(t) {
|
|
|
665
665
|
$: l
|
|
666
666
|
};
|
|
667
667
|
}
|
|
668
|
-
function
|
|
668
|
+
function Ta(t) {
|
|
669
669
|
return nn(t) ? t : t.contextElement;
|
|
670
670
|
}
|
|
671
671
|
function An(t) {
|
|
672
|
-
const n =
|
|
672
|
+
const n = Ta(t);
|
|
673
673
|
if (!Kt(n))
|
|
674
674
|
return sn(1);
|
|
675
675
|
const e = n.getBoundingClientRect(), {
|
|
676
676
|
width: r,
|
|
677
677
|
height: o,
|
|
678
678
|
$: i
|
|
679
|
-
} =
|
|
679
|
+
} = Sa(n);
|
|
680
680
|
let a = (i ? Li(e.width) : e.width) / r, l = (i ? Li(e.height) : e.height) / o;
|
|
681
681
|
return (!a || !Number.isFinite(a)) && (a = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
682
682
|
x: a,
|
|
@@ -696,7 +696,7 @@ function Xl(t, n, e) {
|
|
|
696
696
|
}
|
|
697
697
|
function ii(t, n, e, r) {
|
|
698
698
|
n === void 0 && (n = !1), e === void 0 && (e = !1);
|
|
699
|
-
const o = t.getBoundingClientRect(), i =
|
|
699
|
+
const o = t.getBoundingClientRect(), i = Ta(t);
|
|
700
700
|
let a = sn(1);
|
|
701
701
|
n && (r ? nn(r) && (a = An(r)) : a = An(t));
|
|
702
702
|
const l = Xl(i, e, r) ? Aa(i) : sn(0);
|
|
@@ -705,7 +705,7 @@ function ii(t, n, e, r) {
|
|
|
705
705
|
const s = xt(i), f = r && nn(r) ? xt(r) : r;
|
|
706
706
|
let y = s, p = y.frameElement;
|
|
707
707
|
for (; p && r && f !== y; ) {
|
|
708
|
-
const b = An(p), m = p.getBoundingClientRect(), g =
|
|
708
|
+
const b = An(p), m = p.getBoundingClientRect(), g = Nt(p), $ = m.left + (p.clientLeft + parseFloat(g.paddingLeft)) * b.x, v = m.top + (p.clientTop + parseFloat(g.paddingTop)) * b.y;
|
|
709
709
|
d *= b.x, u *= b.y, h *= b.x, c *= b.y, d += $, u += v, y = xt(p), p = y.frameElement;
|
|
710
710
|
}
|
|
711
711
|
}
|
|
@@ -762,7 +762,7 @@ function ns(t) {
|
|
|
762
762
|
const n = dn(t), e = Wi(t), r = t.ownerDocument.body, o = ei(n.scrollWidth, n.clientWidth, r.scrollWidth, r.clientWidth), i = ei(n.scrollHeight, n.clientHeight, r.scrollHeight, r.clientHeight);
|
|
763
763
|
let a = -e.scrollLeft + Pa(t);
|
|
764
764
|
const l = -e.scrollTop;
|
|
765
|
-
return
|
|
765
|
+
return Nt(r).direction === "rtl" && (a += ei(n.clientWidth, r.clientWidth) - o), {
|
|
766
766
|
width: o,
|
|
767
767
|
height: i,
|
|
768
768
|
x: a,
|
|
@@ -813,17 +813,17 @@ function _o(t, n, e) {
|
|
|
813
813
|
}
|
|
814
814
|
function Ia(t, n) {
|
|
815
815
|
const e = In(t);
|
|
816
|
-
return e === n || !nn(e) || Gi(e) ? !1 :
|
|
816
|
+
return e === n || !nn(e) || Gi(e) ? !1 : Nt(e).position === "fixed" || Ia(e, n);
|
|
817
817
|
}
|
|
818
818
|
function os(t, n) {
|
|
819
819
|
const e = n.get(t);
|
|
820
820
|
if (e)
|
|
821
821
|
return e;
|
|
822
822
|
let r = Lr(t, [], !1).filter((l) => nn(l) && un(l) !== "body"), o = null;
|
|
823
|
-
const i =
|
|
823
|
+
const i = Nt(t).position === "fixed";
|
|
824
824
|
let a = i ? In(t) : t;
|
|
825
825
|
for (; nn(a) && !Gi(a); ) {
|
|
826
|
-
const l =
|
|
826
|
+
const l = Nt(a), d = Kr(a);
|
|
827
827
|
!d && l.position === "fixed" && (o = null), (i ? !d && !o : !d && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || ci(a) && !d && Ia(t, a)) ? r = r.filter((h) => h !== a) : o = l, a = In(a);
|
|
828
828
|
}
|
|
829
829
|
return n.set(t, r), r;
|
|
@@ -850,7 +850,7 @@ function ls(t) {
|
|
|
850
850
|
const {
|
|
851
851
|
width: n,
|
|
852
852
|
height: e
|
|
853
|
-
} =
|
|
853
|
+
} = Sa(t);
|
|
854
854
|
return {
|
|
855
855
|
width: n,
|
|
856
856
|
height: e
|
|
@@ -878,16 +878,16 @@ function ss(t, n, e) {
|
|
|
878
878
|
};
|
|
879
879
|
}
|
|
880
880
|
function $o(t, n) {
|
|
881
|
-
return !Kt(t) ||
|
|
881
|
+
return !Kt(t) || Nt(t).position === "fixed" ? null : n ? n(t) : t.offsetParent;
|
|
882
882
|
}
|
|
883
883
|
function Ma(t, n) {
|
|
884
884
|
const e = xt(t);
|
|
885
885
|
if (!Kt(t) || Na(t))
|
|
886
886
|
return e;
|
|
887
887
|
let r = $o(t, n);
|
|
888
|
-
for (; r && Yl(r) &&
|
|
888
|
+
for (; r && Yl(r) && Nt(r).position === "static"; )
|
|
889
889
|
r = $o(r, n);
|
|
890
|
-
return r && (un(r) === "html" || un(r) === "body" &&
|
|
890
|
+
return r && (un(r) === "html" || un(r) === "body" && Nt(r).position === "static" && !Kr(r)) ? e : r || Zl(t) || e;
|
|
891
891
|
}
|
|
892
892
|
const us = async function(t) {
|
|
893
893
|
const n = this.getOffsetParent || Ma, e = this.getDimensions;
|
|
@@ -901,7 +901,7 @@ const us = async function(t) {
|
|
|
901
901
|
};
|
|
902
902
|
};
|
|
903
903
|
function ds(t) {
|
|
904
|
-
return
|
|
904
|
+
return Nt(t).direction === "rtl";
|
|
905
905
|
}
|
|
906
906
|
const cs = {
|
|
907
907
|
convertOffsetParentRelativeRectToViewportRelativeRect: es,
|
|
@@ -1000,7 +1000,7 @@ function gs(t, n, e, r, o, i) {
|
|
|
1000
1000
|
_: 3
|
|
1001
1001
|
});
|
|
1002
1002
|
}
|
|
1003
|
-
const ms = /* @__PURE__ */
|
|
1003
|
+
const ms = /* @__PURE__ */ Te(ps, [["render", gs], ["__scopeId", "data-v-9313d095"]]);
|
|
1004
1004
|
const vs = {
|
|
1005
1005
|
name: "IbTooltip",
|
|
1006
1006
|
props: {
|
|
@@ -1040,7 +1040,7 @@ function bs(t, n, e, r, o, i) {
|
|
|
1040
1040
|
_: 1
|
|
1041
1041
|
}, 8, ["position", "always-visible", "class"]);
|
|
1042
1042
|
}
|
|
1043
|
-
const fi = /* @__PURE__ */
|
|
1043
|
+
const fi = /* @__PURE__ */ Te(vs, [["render", bs], ["__scopeId", "data-v-6fb94ac5"]]), wo = {
|
|
1044
1044
|
[yn.primary]: yn.primary,
|
|
1045
1045
|
[yn.tertiary]: yn.tertiary,
|
|
1046
1046
|
[yn.ghost]: yn.ghost,
|
|
@@ -1113,7 +1113,7 @@ const _s = {
|
|
|
1113
1113
|
};
|
|
1114
1114
|
function $s(t, n, e, r, o, i) {
|
|
1115
1115
|
const a = ce("ib-tooltip"), l = ce("ib-button");
|
|
1116
|
-
return G(), $e(l,
|
|
1116
|
+
return G(), $e(l, Tt(i.attrs, {
|
|
1117
1117
|
href: e.href,
|
|
1118
1118
|
kind: e.kind,
|
|
1119
1119
|
disabled: e.disabled,
|
|
@@ -1129,7 +1129,7 @@ function $s(t, n, e, r, o, i) {
|
|
|
1129
1129
|
_: 3
|
|
1130
1130
|
}, 16, ["href", "kind", "disabled", "prevent-default"]);
|
|
1131
1131
|
}
|
|
1132
|
-
const
|
|
1132
|
+
const Pt = /* @__PURE__ */ Te(_s, [["render", $s]]), Ei = {
|
|
1133
1133
|
alert: "alert",
|
|
1134
1134
|
error: "error",
|
|
1135
1135
|
warning: "warning",
|
|
@@ -1198,7 +1198,7 @@ const ws = {
|
|
|
1198
1198
|
},
|
|
1199
1199
|
components: {
|
|
1200
1200
|
IbIcon: Ze,
|
|
1201
|
-
IbIconButton:
|
|
1201
|
+
IbIconButton: Pt
|
|
1202
1202
|
}
|
|
1203
1203
|
}, Os = {
|
|
1204
1204
|
ref: "content",
|
|
@@ -1207,7 +1207,7 @@ const ws = {
|
|
|
1207
1207
|
key: 1,
|
|
1208
1208
|
class: "ib-alert-title"
|
|
1209
1209
|
}, Es = { class: "text-content" }, xs = { class: "link" };
|
|
1210
|
-
function
|
|
1210
|
+
function Ss(t, n, e, r, o, i) {
|
|
1211
1211
|
var d;
|
|
1212
1212
|
const a = ce("ib-icon"), l = ce("ib-icon-button");
|
|
1213
1213
|
return G(), te("div", {
|
|
@@ -1248,7 +1248,7 @@ function Ts(t, n, e, r, o, i) {
|
|
|
1248
1248
|
}, 8, ["onClick"])) : ue("", !0)
|
|
1249
1249
|
], 2);
|
|
1250
1250
|
}
|
|
1251
|
-
const $n = /* @__PURE__ */
|
|
1251
|
+
const $n = /* @__PURE__ */ Te(ws, [["render", Ss], ["__scopeId", "data-v-8437bad2"]]), Ts = {
|
|
1252
1252
|
M: "m",
|
|
1253
1253
|
L: "l",
|
|
1254
1254
|
XL: "xl"
|
|
@@ -1277,7 +1277,7 @@ const Ns = {
|
|
|
1277
1277
|
},
|
|
1278
1278
|
size: {
|
|
1279
1279
|
type: String,
|
|
1280
|
-
default:
|
|
1280
|
+
default: Ts.M
|
|
1281
1281
|
},
|
|
1282
1282
|
type: {
|
|
1283
1283
|
type: String,
|
|
@@ -1323,7 +1323,7 @@ function Is(t, n, e, r, o, i) {
|
|
|
1323
1323
|
pe(a, { name: "camera-outline" })
|
|
1324
1324
|
], 2));
|
|
1325
1325
|
}
|
|
1326
|
-
const up = /* @__PURE__ */
|
|
1326
|
+
const up = /* @__PURE__ */ Te(Ns, [["render", Is], ["__scopeId", "data-v-63abd28e"]]);
|
|
1327
1327
|
const Ms = {
|
|
1328
1328
|
name: "IbBadge",
|
|
1329
1329
|
props: {
|
|
@@ -1347,7 +1347,7 @@ function Ds(t, n, e, r, o, i) {
|
|
|
1347
1347
|
class: ge(i.classes)
|
|
1348
1348
|
}, Oe(i.normalizeContent), 3);
|
|
1349
1349
|
}
|
|
1350
|
-
const dp = /* @__PURE__ */
|
|
1350
|
+
const dp = /* @__PURE__ */ Te(Ms, [["render", Ds], ["__scopeId", "data-v-328df75a"]]);
|
|
1351
1351
|
const Ls = {
|
|
1352
1352
|
name: "IbButtonGroup"
|
|
1353
1353
|
}, Rs = { class: "ib-button-group" };
|
|
@@ -1356,7 +1356,7 @@ function Bs(t, n, e, r, o, i) {
|
|
|
1356
1356
|
we(t.$slots, "default")
|
|
1357
1357
|
]);
|
|
1358
1358
|
}
|
|
1359
|
-
const cp = /* @__PURE__ */
|
|
1359
|
+
const cp = /* @__PURE__ */ Te(Ls, [["render", Bs]]), Sn = {
|
|
1360
1360
|
success: "success",
|
|
1361
1361
|
neutral: "neutral",
|
|
1362
1362
|
info: "info",
|
|
@@ -1369,8 +1369,8 @@ const js = {
|
|
|
1369
1369
|
props: {
|
|
1370
1370
|
status: {
|
|
1371
1371
|
type: String,
|
|
1372
|
-
default:
|
|
1373
|
-
validator: (t) => Object.keys(
|
|
1372
|
+
default: Sn.neutral,
|
|
1373
|
+
validator: (t) => Object.keys(Sn).includes(t)
|
|
1374
1374
|
},
|
|
1375
1375
|
showIcon: {
|
|
1376
1376
|
type: Boolean,
|
|
@@ -1384,13 +1384,13 @@ const js = {
|
|
|
1384
1384
|
},
|
|
1385
1385
|
iconName() {
|
|
1386
1386
|
switch (this.status) {
|
|
1387
|
-
case
|
|
1387
|
+
case Sn.success:
|
|
1388
1388
|
return "checkmark-outline";
|
|
1389
|
-
case
|
|
1389
|
+
case Sn.neutral:
|
|
1390
1390
|
return "time-outline";
|
|
1391
|
-
case
|
|
1391
|
+
case Sn.info:
|
|
1392
1392
|
return "information-circle-outline";
|
|
1393
|
-
case
|
|
1393
|
+
case Sn.error:
|
|
1394
1394
|
return "close-outline";
|
|
1395
1395
|
default:
|
|
1396
1396
|
return "";
|
|
@@ -1413,7 +1413,7 @@ function qs(t, n, e, r, o, i) {
|
|
|
1413
1413
|
])
|
|
1414
1414
|
], 2);
|
|
1415
1415
|
}
|
|
1416
|
-
const fp = /* @__PURE__ */
|
|
1416
|
+
const fp = /* @__PURE__ */ Te(js, [["render", qs], ["__scopeId", "data-v-3604890c"]]), Fs = {
|
|
1417
1417
|
topLeft: "top-left",
|
|
1418
1418
|
topCenter: "top-center",
|
|
1419
1419
|
topRight: "top-right",
|
|
@@ -1472,7 +1472,7 @@ const Hs = {
|
|
|
1472
1472
|
}
|
|
1473
1473
|
},
|
|
1474
1474
|
components: {
|
|
1475
|
-
IbIconButton:
|
|
1475
|
+
IbIconButton: Pt,
|
|
1476
1476
|
IbIcon: Ze
|
|
1477
1477
|
}
|
|
1478
1478
|
}, Vs = { class: "ib-toggle-tip-head" }, Us = { class: "ib-toggle-tip-content" }, zs = { class: "ib-toggle-tip-button-set" };
|
|
@@ -1509,7 +1509,7 @@ function Ks(t, n, e, r, o, i) {
|
|
|
1509
1509
|
_: 3
|
|
1510
1510
|
});
|
|
1511
1511
|
}
|
|
1512
|
-
const Gs = /* @__PURE__ */
|
|
1512
|
+
const Gs = /* @__PURE__ */ Te(Hs, [["render", Ks], ["__scopeId", "data-v-9e7c679e"]]), Wr = 27, Da = 32, Ws = 13, ko = 9, Ys = 38, Zs = 37, Js = 39, La = 40, Xs = "click", { performance: xi } = window, Qs = typeof (xi == null ? void 0 : xi.now) == "function" && Date.now() > document.createEvent("Event").timeStamp ? () => xi.now() : () => Date.now(), ri = /* @__PURE__ */ new Map();
|
|
1513
1513
|
let oi = !1;
|
|
1514
1514
|
const Ra = (t) => {
|
|
1515
1515
|
ri.forEach(({ bindTimeStamp: n, callback: e }, r) => {
|
|
@@ -1712,7 +1712,7 @@ function lu(t, n, e, r, o, i) {
|
|
|
1712
1712
|
[a, i.close]
|
|
1713
1713
|
]);
|
|
1714
1714
|
}
|
|
1715
|
-
const Zr = /* @__PURE__ */
|
|
1715
|
+
const Zr = /* @__PURE__ */ Te(ru, [["render", lu], ["__scopeId", "data-v-dfb4a39a"]]);
|
|
1716
1716
|
const su = {
|
|
1717
1717
|
name: "IbList",
|
|
1718
1718
|
data() {
|
|
@@ -1774,7 +1774,7 @@ function uu(t, n, e, r, o, i) {
|
|
|
1774
1774
|
we(t.$slots, "default")
|
|
1775
1775
|
], 34);
|
|
1776
1776
|
}
|
|
1777
|
-
const Jr = /* @__PURE__ */
|
|
1777
|
+
const Jr = /* @__PURE__ */ Te(su, [["render", uu]]);
|
|
1778
1778
|
const du = {
|
|
1779
1779
|
props: {
|
|
1780
1780
|
vertical: {
|
|
@@ -1821,7 +1821,7 @@ const du = {
|
|
|
1821
1821
|
function fu(t, n, e, r, o, i) {
|
|
1822
1822
|
const a = ce("ib-list"), l = ce("ib-dropdown");
|
|
1823
1823
|
return G(), te("div", cu, [
|
|
1824
|
-
pe(l,
|
|
1824
|
+
pe(l, Tt({
|
|
1825
1825
|
horizontal: e.horizontal,
|
|
1826
1826
|
vertical: e.vertical,
|
|
1827
1827
|
isOpened: e.isOpened,
|
|
@@ -1854,7 +1854,7 @@ function fu(t, n, e, r, o, i) {
|
|
|
1854
1854
|
]), 1040, ["horizontal", "vertical", "isOpened", "closeOnClick", "disabled", "onAll"])
|
|
1855
1855
|
]);
|
|
1856
1856
|
}
|
|
1857
|
-
const Xr = /* @__PURE__ */
|
|
1857
|
+
const Xr = /* @__PURE__ */ Te(du, [["render", fu]]);
|
|
1858
1858
|
const hu = {
|
|
1859
1859
|
props: {
|
|
1860
1860
|
checked: {
|
|
@@ -1876,7 +1876,7 @@ const hu = {
|
|
|
1876
1876
|
}, pu = { class: "dropdown-item-wrapper" }, gu = { class: "dropdown-item-icon" };
|
|
1877
1877
|
function mu(t, n, e, r, o, i) {
|
|
1878
1878
|
return G(), te("li", pu, [
|
|
1879
|
-
(G(), $e(zi(e.href ? "a" : "div"),
|
|
1879
|
+
(G(), $e(zi(e.href ? "a" : "div"), Tt({
|
|
1880
1880
|
class: e.checked ? "active" : ""
|
|
1881
1881
|
}, i.attrs, { tabindex: "0" }), {
|
|
1882
1882
|
default: ye(() => [
|
|
@@ -1891,7 +1891,7 @@ function mu(t, n, e, r, o, i) {
|
|
|
1891
1891
|
}, 16, ["class"]))
|
|
1892
1892
|
]);
|
|
1893
1893
|
}
|
|
1894
|
-
const Ba = /* @__PURE__ */
|
|
1894
|
+
const Ba = /* @__PURE__ */ Te(hu, [["render", mu], ["__scopeId", "data-v-11b4be9b"]]), vu = {
|
|
1895
1895
|
common: "common",
|
|
1896
1896
|
danger: "danger"
|
|
1897
1897
|
};
|
|
@@ -1900,7 +1900,7 @@ const yu = {
|
|
|
1900
1900
|
props: {
|
|
1901
1901
|
id: {
|
|
1902
1902
|
type: String,
|
|
1903
|
-
default: () =>
|
|
1903
|
+
default: () => At()
|
|
1904
1904
|
},
|
|
1905
1905
|
kind: {
|
|
1906
1906
|
type: String,
|
|
@@ -1985,13 +1985,13 @@ function wu(t, n, e, r, o, i) {
|
|
|
1985
1985
|
return G(), te("div", {
|
|
1986
1986
|
class: ge(i.classes)
|
|
1987
1987
|
}, [
|
|
1988
|
-
o.isLink ? (G(), te("a",
|
|
1988
|
+
o.isLink ? (G(), te("a", Tt({
|
|
1989
1989
|
key: 1,
|
|
1990
1990
|
class: ["split-button-main", { disabled: e.disabled }],
|
|
1991
1991
|
disabled: e.disabled
|
|
1992
1992
|
}, o.mainButtonAttrs, {
|
|
1993
1993
|
onClick: n[0] || (n[0] = (...d) => i.onClickLink && i.onClickLink(...d))
|
|
1994
|
-
}), Oe(o.content), 17, bu)) : (G(), te("button",
|
|
1994
|
+
}), Oe(o.content), 17, bu)) : (G(), te("button", Tt({
|
|
1995
1995
|
key: 0,
|
|
1996
1996
|
class: "split-button-main"
|
|
1997
1997
|
}, o.mainButtonAttrs), Oe(o.content), 17)),
|
|
@@ -2018,7 +2018,7 @@ function wu(t, n, e, r, o, i) {
|
|
|
2018
2018
|
}, 8, ["disabled", "vertical", "horizontal"])
|
|
2019
2019
|
], 2);
|
|
2020
2020
|
}
|
|
2021
|
-
const hp = /* @__PURE__ */
|
|
2021
|
+
const hp = /* @__PURE__ */ Te(yu, [["render", wu]]);
|
|
2022
2022
|
const Ou = {
|
|
2023
2023
|
props: {
|
|
2024
2024
|
href: {
|
|
@@ -2034,14 +2034,14 @@ const Ou = {
|
|
|
2034
2034
|
}
|
|
2035
2035
|
};
|
|
2036
2036
|
function ku(t, n, e, r, o, i) {
|
|
2037
|
-
return G(), $e(zi(e.href.length ? "a" : "button"),
|
|
2037
|
+
return G(), $e(zi(e.href.length ? "a" : "button"), Tt(i.attrs, { class: "ib-dropdown-item" }), {
|
|
2038
2038
|
default: ye(() => [
|
|
2039
2039
|
we(t.$slots, "default", {}, void 0, !0)
|
|
2040
2040
|
]),
|
|
2041
2041
|
_: 3
|
|
2042
2042
|
}, 16);
|
|
2043
2043
|
}
|
|
2044
|
-
const pp = /* @__PURE__ */
|
|
2044
|
+
const pp = /* @__PURE__ */ Te(Ou, [["render", ku], ["__scopeId", "data-v-4cf00feb"]]), en = {
|
|
2045
2045
|
S: "s",
|
|
2046
2046
|
M: "m",
|
|
2047
2047
|
L: "l",
|
|
@@ -2149,7 +2149,7 @@ const Cu = {
|
|
|
2149
2149
|
}
|
|
2150
2150
|
},
|
|
2151
2151
|
components: {
|
|
2152
|
-
IbIconButton:
|
|
2152
|
+
IbIconButton: Pt,
|
|
2153
2153
|
IbIcon: Ze
|
|
2154
2154
|
},
|
|
2155
2155
|
beforeUnmount() {
|
|
@@ -2162,7 +2162,7 @@ const Cu = {
|
|
|
2162
2162
|
key: 2,
|
|
2163
2163
|
class: "modal-footer"
|
|
2164
2164
|
};
|
|
2165
|
-
function
|
|
2165
|
+
function Su(t, n, e, r, o, i) {
|
|
2166
2166
|
const a = ce("ib-icon"), l = ce("ib-icon-button"), d = Gt("outside");
|
|
2167
2167
|
return G(), te(nt, null, [
|
|
2168
2168
|
i.hasTrigger ? (G(), te("div", {
|
|
@@ -2214,11 +2214,11 @@ function Tu(t, n, e, r, o, i) {
|
|
|
2214
2214
|
]))
|
|
2215
2215
|
], 64);
|
|
2216
2216
|
}
|
|
2217
|
-
const gp = /* @__PURE__ */
|
|
2217
|
+
const gp = /* @__PURE__ */ Te(Cu, [["render", Su], ["__scopeId", "data-v-ad9343ef"]]);
|
|
2218
2218
|
function ja(t) {
|
|
2219
2219
|
return "#" + t.toLowerCase().replace(/ /g, "-");
|
|
2220
2220
|
}
|
|
2221
|
-
const
|
|
2221
|
+
const Tu = {
|
|
2222
2222
|
name: "IbTabDropdown",
|
|
2223
2223
|
props: {
|
|
2224
2224
|
tabs: {
|
|
@@ -2281,7 +2281,7 @@ function Pu(t, n, e, r, o, i) {
|
|
|
2281
2281
|
], 10, Nu)
|
|
2282
2282
|
]),
|
|
2283
2283
|
body: ye(() => [
|
|
2284
|
-
(G(!0), te(nt, null,
|
|
2284
|
+
(G(!0), te(nt, null, Dt(e.tabs.tabs, (u, h) => (G(), $e(l, {
|
|
2285
2285
|
key: h,
|
|
2286
2286
|
checked: u.id === e.selectedTab,
|
|
2287
2287
|
href: i.createHref(u.id),
|
|
@@ -2302,7 +2302,7 @@ function Pu(t, n, e, r, o, i) {
|
|
|
2302
2302
|
}, 8, ["disabled"])
|
|
2303
2303
|
]);
|
|
2304
2304
|
}
|
|
2305
|
-
const Iu = /* @__PURE__ */
|
|
2305
|
+
const Iu = /* @__PURE__ */ Te(Tu, [["render", Pu]]);
|
|
2306
2306
|
const Mu = {
|
|
2307
2307
|
name: "IbTabs",
|
|
2308
2308
|
props: {
|
|
@@ -2375,7 +2375,7 @@ function qu(t, n, e, r, o, i) {
|
|
|
2375
2375
|
const a = ce("ib-tab-dropdown");
|
|
2376
2376
|
return G(), te("div", Du, [
|
|
2377
2377
|
ae("ul", Lu, [
|
|
2378
|
-
(G(!0), te(nt, null,
|
|
2378
|
+
(G(!0), te(nt, null, Dt(o.tabs, (l, d) => (G(), te("li", {
|
|
2379
2379
|
class: "tab-item",
|
|
2380
2380
|
key: d
|
|
2381
2381
|
}, [
|
|
@@ -2403,7 +2403,7 @@ function qu(t, n, e, r, o, i) {
|
|
|
2403
2403
|
], 512)
|
|
2404
2404
|
]);
|
|
2405
2405
|
}
|
|
2406
|
-
const mp = /* @__PURE__ */
|
|
2406
|
+
const mp = /* @__PURE__ */ Te(Mu, [["render", qu], ["__scopeId", "data-v-47d103be"]]), Fu = {
|
|
2407
2407
|
name: "IbTab",
|
|
2408
2408
|
props: {
|
|
2409
2409
|
title: {
|
|
@@ -2440,7 +2440,7 @@ function Hu(t, n, e, r, o, i) {
|
|
|
2440
2440
|
[Ge, i.isTabActive]
|
|
2441
2441
|
]);
|
|
2442
2442
|
}
|
|
2443
|
-
const vp = /* @__PURE__ */
|
|
2443
|
+
const vp = /* @__PURE__ */ Te(Fu, [["render", Hu]]), Vu = {
|
|
2444
2444
|
LIST_VIEW: "list-sorting",
|
|
2445
2445
|
GRID_VIEW: "grid-sorting",
|
|
2446
2446
|
TABLE_VIEW: "table-sorting"
|
|
@@ -2475,7 +2475,7 @@ class qa {
|
|
|
2475
2475
|
return this.uuid;
|
|
2476
2476
|
}
|
|
2477
2477
|
generateUID() {
|
|
2478
|
-
this.uuid = "tooltip_" +
|
|
2478
|
+
this.uuid = "tooltip_" + At();
|
|
2479
2479
|
}
|
|
2480
2480
|
createTooltip(n, e, r) {
|
|
2481
2481
|
var i;
|
|
@@ -2700,7 +2700,7 @@ const Gu = {
|
|
|
2700
2700
|
directives: { Tooltip: Mn },
|
|
2701
2701
|
components: {
|
|
2702
2702
|
IbIcon: Ze,
|
|
2703
|
-
IbIconButton:
|
|
2703
|
+
IbIconButton: Pt,
|
|
2704
2704
|
IbToggleTip: Gs
|
|
2705
2705
|
}
|
|
2706
2706
|
}, Wu = { class: "sorting-wrapper" }, Yu = ["name"], Zu = ["aria-label"];
|
|
@@ -2777,7 +2777,7 @@ function Ju(t, n, e, r, o, i) {
|
|
|
2777
2777
|
])
|
|
2778
2778
|
]);
|
|
2779
2779
|
}
|
|
2780
|
-
const yp = /* @__PURE__ */
|
|
2780
|
+
const yp = /* @__PURE__ */ Te(Gu, [["render", Ju], ["__scopeId", "data-v-a4394881"]]);
|
|
2781
2781
|
const Xu = {
|
|
2782
2782
|
name: "IbBreadcrumbs",
|
|
2783
2783
|
props: {
|
|
@@ -2802,7 +2802,7 @@ const Xu = {
|
|
|
2802
2802
|
},
|
|
2803
2803
|
components: {
|
|
2804
2804
|
IbIcon: Ze,
|
|
2805
|
-
IbIconButton:
|
|
2805
|
+
IbIconButton: Pt,
|
|
2806
2806
|
IbDropdownItem: Ba,
|
|
2807
2807
|
IbDropdownList: Xr,
|
|
2808
2808
|
IbTooltip: fi
|
|
@@ -2812,7 +2812,7 @@ function rd(t, n, e, r, o, i) {
|
|
|
2812
2812
|
const a = ce("ib-icon"), l = ce("ib-tooltip"), d = ce("ib-icon-button"), u = ce("ib-dropdown-item"), h = ce("ib-dropdown-list");
|
|
2813
2813
|
return G(), te("nav", Qu, [
|
|
2814
2814
|
ae("ul", ed, [
|
|
2815
|
-
(G(!0), te(nt, null,
|
|
2815
|
+
(G(!0), te(nt, null, Dt(e.items, (c, s) => (G(), te("li", {
|
|
2816
2816
|
class: ge(["breadcrumb-item", s === i.last ? "active" : ""]),
|
|
2817
2817
|
"aria-current": "page",
|
|
2818
2818
|
key: s
|
|
@@ -2840,7 +2840,7 @@ function rd(t, n, e, r, o, i) {
|
|
|
2840
2840
|
})
|
|
2841
2841
|
]),
|
|
2842
2842
|
body: ye(() => [
|
|
2843
|
-
(G(!0), te(nt, null,
|
|
2843
|
+
(G(!0), te(nt, null, Dt(i.setItemsContextMenu, (f, y) => (G(), $e(u, { key: y }, {
|
|
2844
2844
|
default: ye(() => [
|
|
2845
2845
|
ae("a", {
|
|
2846
2846
|
class: "context-breadcrums",
|
|
@@ -2860,7 +2860,7 @@ function rd(t, n, e, r, o, i) {
|
|
|
2860
2860
|
])
|
|
2861
2861
|
]);
|
|
2862
2862
|
}
|
|
2863
|
-
const bp = /* @__PURE__ */
|
|
2863
|
+
const bp = /* @__PURE__ */ Te(Xu, [["render", rd], ["__scopeId", "data-v-5ef772a9"]]);
|
|
2864
2864
|
const od = {
|
|
2865
2865
|
name: "IbLabel",
|
|
2866
2866
|
props: {
|
|
@@ -2905,7 +2905,7 @@ const od = {
|
|
|
2905
2905
|
}
|
|
2906
2906
|
},
|
|
2907
2907
|
components: {
|
|
2908
|
-
IbIconButton:
|
|
2908
|
+
IbIconButton: Pt,
|
|
2909
2909
|
IbIcon: Ze
|
|
2910
2910
|
},
|
|
2911
2911
|
directives: {
|
|
@@ -2939,7 +2939,7 @@ function sd(t, n, e, r, o, i) {
|
|
|
2939
2939
|
]) : ue("", !0)
|
|
2940
2940
|
], 10, ad);
|
|
2941
2941
|
}
|
|
2942
|
-
const Yi = /* @__PURE__ */
|
|
2942
|
+
const Yi = /* @__PURE__ */ Te(od, [["render", sd], ["__scopeId", "data-v-20191b6d"]]), kr = {
|
|
2943
2943
|
text: "text",
|
|
2944
2944
|
password: "password",
|
|
2945
2945
|
email: "email",
|
|
@@ -2969,7 +2969,7 @@ const ud = {
|
|
|
2969
2969
|
id: {
|
|
2970
2970
|
type: [String],
|
|
2971
2971
|
default() {
|
|
2972
|
-
return
|
|
2972
|
+
return At();
|
|
2973
2973
|
}
|
|
2974
2974
|
},
|
|
2975
2975
|
debounce: {
|
|
@@ -3129,7 +3129,7 @@ const ud = {
|
|
|
3129
3129
|
],
|
|
3130
3130
|
components: {
|
|
3131
3131
|
IbAlert: $n,
|
|
3132
|
-
IbIconButton:
|
|
3132
|
+
IbIconButton: Pt,
|
|
3133
3133
|
IbIcon: Ze,
|
|
3134
3134
|
IbDropdown: Zr
|
|
3135
3135
|
},
|
|
@@ -3161,7 +3161,7 @@ function pd(t, n, e, r, o, i) {
|
|
|
3161
3161
|
class: "icon-search",
|
|
3162
3162
|
name: "search-outline"
|
|
3163
3163
|
})) : ue("", !0),
|
|
3164
|
-
Ne(ae("input",
|
|
3164
|
+
Ne(ae("input", Tt(i.attrs, {
|
|
3165
3165
|
"onUpdate:modelValue": n[0] || (n[0] = (c) => o.actualValue = c),
|
|
3166
3166
|
ref: "field",
|
|
3167
3167
|
"aria-invalid": !!i.hasErrorState,
|
|
@@ -3212,6 +3212,7 @@ function pd(t, n, e, r, o, i) {
|
|
|
3212
3212
|
disabled: e.readonly || e.disabled,
|
|
3213
3213
|
"prevent-default": "",
|
|
3214
3214
|
type: "button",
|
|
3215
|
+
"aria-label": "Decrement value",
|
|
3215
3216
|
onBlur: i.onBlur,
|
|
3216
3217
|
onClick: i.decrement,
|
|
3217
3218
|
onKeypress: pt(i.decrement, ["enter"])
|
|
@@ -3229,6 +3230,7 @@ function pd(t, n, e, r, o, i) {
|
|
|
3229
3230
|
disabled: e.readonly || e.disabled,
|
|
3230
3231
|
"prevent-default": "",
|
|
3231
3232
|
type: "button",
|
|
3233
|
+
"aria-label": "Increment value",
|
|
3232
3234
|
onBlur: i.onBlur,
|
|
3233
3235
|
onClick: i.increment,
|
|
3234
3236
|
onKeypress: pt(i.increment, ["enter"])
|
|
@@ -3289,7 +3291,7 @@ function pd(t, n, e, r, o, i) {
|
|
|
3289
3291
|
], 2)
|
|
3290
3292
|
]);
|
|
3291
3293
|
}
|
|
3292
|
-
const Fa = /* @__PURE__ */
|
|
3294
|
+
const Fa = /* @__PURE__ */ Te(ud, [["render", pd], ["__scopeId", "data-v-f580a226"]]);
|
|
3293
3295
|
const gd = {
|
|
3294
3296
|
name: "IbCheckbox",
|
|
3295
3297
|
model: {
|
|
@@ -3305,7 +3307,7 @@ const gd = {
|
|
|
3305
3307
|
id: {
|
|
3306
3308
|
type: String,
|
|
3307
3309
|
default() {
|
|
3308
|
-
return
|
|
3310
|
+
return At();
|
|
3309
3311
|
}
|
|
3310
3312
|
},
|
|
3311
3313
|
value: {
|
|
@@ -3396,7 +3398,7 @@ function kd(t, n, e, r, o, i) {
|
|
|
3396
3398
|
return G(), te("div", {
|
|
3397
3399
|
class: ge(["ib-checkbox-wrapper", this.$attrs.class])
|
|
3398
3400
|
}, [
|
|
3399
|
-
ae("label",
|
|
3401
|
+
ae("label", Tt(i.attrs, {
|
|
3400
3402
|
role: "checkbox",
|
|
3401
3403
|
for: e.id,
|
|
3402
3404
|
tabindex: e.disabled | e.disableFocus ? -1 : 0,
|
|
@@ -3452,7 +3454,7 @@ function kd(t, n, e, r, o, i) {
|
|
|
3452
3454
|
], 16, md)
|
|
3453
3455
|
], 2);
|
|
3454
3456
|
}
|
|
3455
|
-
const Ha = /* @__PURE__ */
|
|
3457
|
+
const Ha = /* @__PURE__ */ Te(gd, [["render", kd], ["__scopeId", "data-v-83ac97df"]]);
|
|
3456
3458
|
const Cd = {
|
|
3457
3459
|
name: "IbToggle",
|
|
3458
3460
|
model: {
|
|
@@ -3466,7 +3468,7 @@ const Cd = {
|
|
|
3466
3468
|
},
|
|
3467
3469
|
id: {
|
|
3468
3470
|
type: String,
|
|
3469
|
-
default: () =>
|
|
3471
|
+
default: () => At()
|
|
3470
3472
|
},
|
|
3471
3473
|
disabled: {
|
|
3472
3474
|
type: Boolean,
|
|
@@ -3527,10 +3529,10 @@ const Cd = {
|
|
|
3527
3529
|
}, Ed = ["aria-checked", "tabindex"], xd = {
|
|
3528
3530
|
class: "toggle-wrapper",
|
|
3529
3531
|
ref: "wrapper"
|
|
3530
|
-
},
|
|
3532
|
+
}, Sd = {
|
|
3531
3533
|
class: "toggle",
|
|
3532
3534
|
ref: "toggle"
|
|
3533
|
-
},
|
|
3535
|
+
}, Td = ["name", "checked", "id", "disabled"], Ad = /* @__PURE__ */ ae("span", { class: "toggle-slider round" }, null, -1), Nd = {
|
|
3534
3536
|
key: 0,
|
|
3535
3537
|
class: "toggle-label"
|
|
3536
3538
|
};
|
|
@@ -3547,7 +3549,7 @@ function Pd(t, n, e, r, o, i) {
|
|
|
3547
3549
|
]
|
|
3548
3550
|
}, [
|
|
3549
3551
|
ae("div", xd, [
|
|
3550
|
-
ae("div",
|
|
3552
|
+
ae("div", Sd, [
|
|
3551
3553
|
ae("input", {
|
|
3552
3554
|
tabindex: "-1",
|
|
3553
3555
|
type: "checkbox",
|
|
@@ -3559,7 +3561,7 @@ function Pd(t, n, e, r, o, i) {
|
|
|
3559
3561
|
onClick: n[0] || (n[0] = (...d) => i.onChange && i.onChange(...d)),
|
|
3560
3562
|
onInput: n[1] || (n[1] = ot(() => {
|
|
3561
3563
|
}, ["stop"]))
|
|
3562
|
-
}, null, 40,
|
|
3564
|
+
}, null, 40, Td),
|
|
3563
3565
|
Ad,
|
|
3564
3566
|
pe(a, {
|
|
3565
3567
|
class: "checked-icon",
|
|
@@ -3578,7 +3580,7 @@ function Pd(t, n, e, r, o, i) {
|
|
|
3578
3580
|
}, null, 8, ["text"])) : ue("", !0)
|
|
3579
3581
|
], 42, Ed);
|
|
3580
3582
|
}
|
|
3581
|
-
const Id = /* @__PURE__ */
|
|
3583
|
+
const Id = /* @__PURE__ */ Te(Cd, [["render", Pd]]);
|
|
3582
3584
|
function Va(t) {
|
|
3583
3585
|
return t.scrollHeight > t.clientHeight;
|
|
3584
3586
|
}
|
|
@@ -3640,7 +3642,8 @@ const Md = {
|
|
|
3640
3642
|
},
|
|
3641
3643
|
data() {
|
|
3642
3644
|
return {
|
|
3643
|
-
showTooltip: !1
|
|
3645
|
+
showTooltip: !1,
|
|
3646
|
+
generateUID: At
|
|
3644
3647
|
};
|
|
3645
3648
|
},
|
|
3646
3649
|
methods: {
|
|
@@ -3726,7 +3729,7 @@ const Md = {
|
|
|
3726
3729
|
components: {
|
|
3727
3730
|
IbIcon: Ze,
|
|
3728
3731
|
List: Jr,
|
|
3729
|
-
IbIconButton:
|
|
3732
|
+
IbIconButton: Pt
|
|
3730
3733
|
},
|
|
3731
3734
|
directives: { Tooltip: Mn }
|
|
3732
3735
|
}, Dd = ["aria-selected", "aria-label", "id"], Ld = {
|
|
@@ -3790,7 +3793,7 @@ function Hd(t, n, e, r, o, i) {
|
|
|
3790
3793
|
"aria-label": e.option.title,
|
|
3791
3794
|
name: i.actualName,
|
|
3792
3795
|
value: e.option.id,
|
|
3793
|
-
id: "input" + i.id,
|
|
3796
|
+
id: "input" + i.id + o.generateUID(),
|
|
3794
3797
|
"is-checked": i.isChecked(e.option),
|
|
3795
3798
|
disabled: e.option.isDisabled,
|
|
3796
3799
|
readonly: e.option.readonly,
|
|
@@ -3844,7 +3847,7 @@ function Hd(t, n, e, r, o, i) {
|
|
|
3844
3847
|
], 2),
|
|
3845
3848
|
i.hasChildren ? Ne((G(), $e(u, { key: 0 }, {
|
|
3846
3849
|
default: ye(() => [
|
|
3847
|
-
(G(!0), te(nt, null,
|
|
3850
|
+
(G(!0), te(nt, null, Dt(e.option.children, (c) => Ne((G(), $e(d, {
|
|
3848
3851
|
key: c.value,
|
|
3849
3852
|
option: c,
|
|
3850
3853
|
name: e.name,
|
|
@@ -3868,7 +3871,7 @@ function Hd(t, n, e, r, o, i) {
|
|
|
3868
3871
|
])
|
|
3869
3872
|
]);
|
|
3870
3873
|
}
|
|
3871
|
-
const Vd = /* @__PURE__ */
|
|
3874
|
+
const Vd = /* @__PURE__ */ Te(Md, [["render", Hd]]);
|
|
3872
3875
|
var et = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3873
3876
|
function hi(t) {
|
|
3874
3877
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
@@ -4307,7 +4310,7 @@ const zd = /* @__PURE__ */ hi(Ud), Kd = {
|
|
|
4307
4310
|
},
|
|
4308
4311
|
emits: ["loadMoreOptions"]
|
|
4309
4312
|
};
|
|
4310
|
-
function
|
|
4313
|
+
function So(t) {
|
|
4311
4314
|
return JSON.parse(JSON.stringify(t));
|
|
4312
4315
|
}
|
|
4313
4316
|
const Gd = {
|
|
@@ -4355,7 +4358,7 @@ const Gd = {
|
|
|
4355
4358
|
id: {
|
|
4356
4359
|
type: String,
|
|
4357
4360
|
default() {
|
|
4358
|
-
return
|
|
4361
|
+
return At();
|
|
4359
4362
|
}
|
|
4360
4363
|
},
|
|
4361
4364
|
options: {
|
|
@@ -4423,7 +4426,7 @@ const Gd = {
|
|
|
4423
4426
|
filterId: {
|
|
4424
4427
|
type: String,
|
|
4425
4428
|
default() {
|
|
4426
|
-
return
|
|
4429
|
+
return At();
|
|
4427
4430
|
}
|
|
4428
4431
|
},
|
|
4429
4432
|
staticPlaceholder: {
|
|
@@ -4510,7 +4513,7 @@ const Gd = {
|
|
|
4510
4513
|
},
|
|
4511
4514
|
options: {
|
|
4512
4515
|
handler(t) {
|
|
4513
|
-
this.initialOptions = typeof t == "function" ? t :
|
|
4516
|
+
this.initialOptions = typeof t == "function" ? t : So(t);
|
|
4514
4517
|
},
|
|
4515
4518
|
deep: !0
|
|
4516
4519
|
},
|
|
@@ -4553,7 +4556,7 @@ const Gd = {
|
|
|
4553
4556
|
const u = this.filterString.toLowerCase().trim();
|
|
4554
4557
|
this.filterFunc.call(this, d, u), u && this.keywordHighlighter && this.marker.mark(u);
|
|
4555
4558
|
}, {
|
|
4556
|
-
initialOptions: typeof this.options == "function" ? this.options :
|
|
4559
|
+
initialOptions: typeof this.options == "function" ? this.options : So(this.options),
|
|
4557
4560
|
val: this.modelValue ? this.modelValue : this.value,
|
|
4558
4561
|
size: {
|
|
4559
4562
|
left: this.initialSize && this.initialSize.left || 0,
|
|
@@ -4841,7 +4844,7 @@ const Gd = {
|
|
|
4841
4844
|
},
|
|
4842
4845
|
components: {
|
|
4843
4846
|
IbAlert: $n,
|
|
4844
|
-
IbIconButton:
|
|
4847
|
+
IbIconButton: Pt,
|
|
4845
4848
|
IbIcon: Ze,
|
|
4846
4849
|
IbDropdown: Zr,
|
|
4847
4850
|
IbInput: Fa,
|
|
@@ -4963,7 +4966,7 @@ function Jd(t, n, e, r, o, i) {
|
|
|
4963
4966
|
"only-end-nodes": e.onlyEndNodes,
|
|
4964
4967
|
"show-input": e.showInputs
|
|
4965
4968
|
}, null, 8, ["option", "name", "parent-auto-check", "is-multiple", "onCheck", "onToggleBookmark", "uid", "only-end-nodes", "show-input"])) : ue("", !0),
|
|
4966
|
-
Object.keys(o.actualBookmarkedOptions).length > 0 ? (G(!0), te(nt, { key: 3 },
|
|
4969
|
+
Object.keys(o.actualBookmarkedOptions).length > 0 ? (G(!0), te(nt, { key: 3 }, Dt(o.actualBookmarkedOptions, (y) => (G(), $e(h, {
|
|
4967
4970
|
key: "bookmark" + y.id,
|
|
4968
4971
|
class: "bookmarked-option",
|
|
4969
4972
|
option: y,
|
|
@@ -5004,7 +5007,7 @@ function Jd(t, n, e, r, o, i) {
|
|
|
5004
5007
|
onCheck: i.manageAll,
|
|
5005
5008
|
onOnFocus: n[9] || (n[9] = (y) => o.focusedOptionId = y)
|
|
5006
5009
|
}, null, 8, ["option", "is-toggle", "name", "is-multiple", "uid", "only-end-nodes", "show-input", "alphabetic-style", "onCheck"])) : ue("", !0),
|
|
5007
|
-
(G(!0), te(nt, null,
|
|
5010
|
+
(G(!0), te(nt, null, Dt(o.actualOptions, (y) => we(t.$slots, o.actualName, {
|
|
5008
5011
|
key: e.name + y.value,
|
|
5009
5012
|
option: y,
|
|
5010
5013
|
parentAutoCheck: e.parentAutoCheck,
|
|
@@ -5092,6 +5095,7 @@ function Jd(t, n, e, r, o, i) {
|
|
|
5092
5095
|
key: 2,
|
|
5093
5096
|
kind: "ghost",
|
|
5094
5097
|
class: "button-clear",
|
|
5098
|
+
"aria-label": "Clear selection",
|
|
5095
5099
|
onClick: ot(i.clearValue, ["prevent"]),
|
|
5096
5100
|
onKeypress: n[0] || (n[0] = pt(ot(() => {
|
|
5097
5101
|
}, ["stop", "prevent"]), ["enter"])),
|
|
@@ -5119,7 +5123,7 @@ function Jd(t, n, e, r, o, i) {
|
|
|
5119
5123
|
], 2)
|
|
5120
5124
|
], 64);
|
|
5121
5125
|
}
|
|
5122
|
-
const Xd = /* @__PURE__ */
|
|
5126
|
+
const Xd = /* @__PURE__ */ Te(Gd, [["render", Jd]]);
|
|
5123
5127
|
const Qd = {
|
|
5124
5128
|
name: "IbLimitSelector",
|
|
5125
5129
|
props: {
|
|
@@ -5185,7 +5189,7 @@ function tc(t, n, e, r, o, i) {
|
|
|
5185
5189
|
}, null, 8, ["value", "vertical", "options", "onInput"])
|
|
5186
5190
|
]);
|
|
5187
5191
|
}
|
|
5188
|
-
const nc = /* @__PURE__ */
|
|
5192
|
+
const nc = /* @__PURE__ */ Te(Qd, [["render", tc]]);
|
|
5189
5193
|
const ic = {
|
|
5190
5194
|
name: "IbPagination",
|
|
5191
5195
|
props: {
|
|
@@ -5289,7 +5293,7 @@ const ic = {
|
|
|
5289
5293
|
}
|
|
5290
5294
|
},
|
|
5291
5295
|
components: {
|
|
5292
|
-
IbIconButton:
|
|
5296
|
+
IbIconButton: Pt,
|
|
5293
5297
|
IbIcon: Ze,
|
|
5294
5298
|
IbInput: Fa,
|
|
5295
5299
|
IbLabel: Yi,
|
|
@@ -5342,7 +5346,7 @@ function dc(t, n, e, r, o, i) {
|
|
|
5342
5346
|
_: 1
|
|
5343
5347
|
}, 8, ["disabled"]),
|
|
5344
5348
|
ae("ul", sc, [
|
|
5345
|
-
(G(!0), te(nt, null,
|
|
5349
|
+
(G(!0), te(nt, null, Dt(i.countPagePagination, (s, f) => Ne((G(), te("li", {
|
|
5346
5350
|
key: f,
|
|
5347
5351
|
class: ge(["pagination-item", {
|
|
5348
5352
|
active: f + 1 === o.currentPage,
|
|
@@ -5375,7 +5379,7 @@ function dc(t, n, e, r, o, i) {
|
|
|
5375
5379
|
])
|
|
5376
5380
|
]);
|
|
5377
5381
|
}
|
|
5378
|
-
const _p = /* @__PURE__ */
|
|
5382
|
+
const _p = /* @__PURE__ */ Te(ic, [["render", dc]]), Zn = {
|
|
5379
5383
|
PROGRESS: "progress",
|
|
5380
5384
|
SUCCESS: "success",
|
|
5381
5385
|
FAILED: "failed",
|
|
@@ -5437,7 +5441,7 @@ function vc(t, n, e, r, o, i) {
|
|
|
5437
5441
|
])
|
|
5438
5442
|
]);
|
|
5439
5443
|
}
|
|
5440
|
-
const $p = /* @__PURE__ */
|
|
5444
|
+
const $p = /* @__PURE__ */ Te(cc, [["render", vc], ["__scopeId", "data-v-a0217859"]]), yc = {
|
|
5441
5445
|
new: `<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5442
5446
|
<circle id="Ellipse" cx="5.5" cy="5.5" r="5" fill="#0369E8"/>
|
|
5443
5447
|
</svg>
|
|
@@ -5500,7 +5504,7 @@ function wc(t, n, e, r, o, i) {
|
|
|
5500
5504
|
we(t.$slots, "default", {}, void 0, !0)
|
|
5501
5505
|
]);
|
|
5502
5506
|
}
|
|
5503
|
-
const wp = /* @__PURE__ */
|
|
5507
|
+
const wp = /* @__PURE__ */ Te(bc, [["render", wc], ["__scopeId", "data-v-e696394e"]]);
|
|
5504
5508
|
const Oc = {
|
|
5505
5509
|
name: "IbPanel",
|
|
5506
5510
|
mixins: [$a],
|
|
@@ -5540,15 +5544,15 @@ const Oc = {
|
|
|
5540
5544
|
};
|
|
5541
5545
|
},
|
|
5542
5546
|
components: {
|
|
5543
|
-
IconButton:
|
|
5547
|
+
IconButton: Pt,
|
|
5544
5548
|
Icon: Ze
|
|
5545
5549
|
},
|
|
5546
5550
|
directives: {
|
|
5547
5551
|
Tooltip: Mn
|
|
5548
5552
|
},
|
|
5549
5553
|
emits: ["update:isOpen"]
|
|
5550
|
-
}, kc = { class: "panel-head" }, Cc = { class: "head-title" }, Ec = { class: "divider" }, xc = { class: "head-content" },
|
|
5551
|
-
function
|
|
5554
|
+
}, kc = { class: "panel-head" }, Cc = { class: "head-title" }, Ec = { class: "divider" }, xc = { class: "head-content" }, Sc = { class: "panel-body" };
|
|
5555
|
+
function Tc(t, n, e, r, o, i) {
|
|
5552
5556
|
const a = ce("icon"), l = ce("icon-button"), d = Gt("tooltip");
|
|
5553
5557
|
return G(), te("div", {
|
|
5554
5558
|
class: ge(["ib-panel", { "panel-error": e.error }])
|
|
@@ -5588,7 +5592,7 @@ function Sc(t, n, e, r, o, i) {
|
|
|
5588
5592
|
onLeave: t.leave
|
|
5589
5593
|
}, {
|
|
5590
5594
|
default: ye(() => [
|
|
5591
|
-
Ne(ae("div",
|
|
5595
|
+
Ne(ae("div", Sc, [
|
|
5592
5596
|
we(t.$slots, "body", {}, void 0, !0)
|
|
5593
5597
|
], 512), [
|
|
5594
5598
|
[Ge, o.isOpenVal]
|
|
@@ -5598,7 +5602,7 @@ function Sc(t, n, e, r, o, i) {
|
|
|
5598
5602
|
}, 8, ["onEnter", "onAfterEnter", "onLeave"])
|
|
5599
5603
|
], 2);
|
|
5600
5604
|
}
|
|
5601
|
-
const Op = /* @__PURE__ */
|
|
5605
|
+
const Op = /* @__PURE__ */ Te(Oc, [["render", Tc], ["__scopeId", "data-v-1f178fc0"]]);
|
|
5602
5606
|
const Ac = {
|
|
5603
5607
|
props: {
|
|
5604
5608
|
showCloseIcon: {
|
|
@@ -5657,7 +5661,7 @@ function Mc(t, n, e, r, o, i) {
|
|
|
5657
5661
|
])) : ue("", !0)
|
|
5658
5662
|
], 10, Nc);
|
|
5659
5663
|
}
|
|
5660
|
-
const kp = /* @__PURE__ */
|
|
5664
|
+
const kp = /* @__PURE__ */ Te(Ac, [["render", Mc], ["__scopeId", "data-v-7f6d49d7"]]);
|
|
5661
5665
|
const Dc = {
|
|
5662
5666
|
name: "IbInputGroup",
|
|
5663
5667
|
props: {
|
|
@@ -5682,7 +5686,7 @@ function Rc(t, n, e, r, o, i) {
|
|
|
5682
5686
|
e.supportText.length ? (G(), te("p", Lc, Oe(e.supportText), 1)) : ue("", !0)
|
|
5683
5687
|
], 2);
|
|
5684
5688
|
}
|
|
5685
|
-
const Cp = /* @__PURE__ */
|
|
5689
|
+
const Cp = /* @__PURE__ */ Te(Dc, [["render", Rc]]);
|
|
5686
5690
|
const Qr = {
|
|
5687
5691
|
name: "IbInputGroup",
|
|
5688
5692
|
props: {
|
|
@@ -5718,12 +5722,12 @@ const Qr = {
|
|
|
5718
5722
|
IbLabel: Yi,
|
|
5719
5723
|
IbAlert: $n
|
|
5720
5724
|
}
|
|
5721
|
-
},
|
|
5725
|
+
}, To = () => {
|
|
5722
5726
|
vl((t) => ({
|
|
5723
5727
|
f99cce84: t.height
|
|
5724
5728
|
}));
|
|
5725
5729
|
}, Ao = Qr.setup;
|
|
5726
|
-
Qr.setup = Ao ? (t, n) => (
|
|
5730
|
+
Qr.setup = Ao ? (t, n) => (To(), Ao(t, n)) : To;
|
|
5727
5731
|
const Bc = { class: "ib-checkbox-group-content" };
|
|
5728
5732
|
function jc(t, n, e, r, o, i) {
|
|
5729
5733
|
const a = ce("ib-label"), l = ce("ib-alert");
|
|
@@ -5756,7 +5760,7 @@ function jc(t, n, e, r, o, i) {
|
|
|
5756
5760
|
])
|
|
5757
5761
|
], 2);
|
|
5758
5762
|
}
|
|
5759
|
-
const Ep = /* @__PURE__ */
|
|
5763
|
+
const Ep = /* @__PURE__ */ Te(Qr, [["render", jc]]);
|
|
5760
5764
|
const qc = {
|
|
5761
5765
|
name: "IbRadio",
|
|
5762
5766
|
props: {
|
|
@@ -5772,7 +5776,7 @@ const qc = {
|
|
|
5772
5776
|
id: {
|
|
5773
5777
|
type: String,
|
|
5774
5778
|
default() {
|
|
5775
|
-
return
|
|
5779
|
+
return At();
|
|
5776
5780
|
}
|
|
5777
5781
|
},
|
|
5778
5782
|
value: {
|
|
@@ -5787,7 +5791,7 @@ const qc = {
|
|
|
5787
5791
|
emits: ["update:modelValue"],
|
|
5788
5792
|
data() {
|
|
5789
5793
|
return {
|
|
5790
|
-
uid:
|
|
5794
|
+
uid: At()
|
|
5791
5795
|
};
|
|
5792
5796
|
},
|
|
5793
5797
|
mounted() {
|
|
@@ -5841,7 +5845,7 @@ function Kc(t, n, e, r, o, i) {
|
|
|
5841
5845
|
], 2)
|
|
5842
5846
|
], 10, Hc);
|
|
5843
5847
|
}
|
|
5844
|
-
const xp = /* @__PURE__ */
|
|
5848
|
+
const xp = /* @__PURE__ */ Te(qc, [["render", Kc], ["__scopeId", "data-v-903afa0e"]]);
|
|
5845
5849
|
const Gc = {
|
|
5846
5850
|
props: {
|
|
5847
5851
|
characterLimit: {
|
|
@@ -5869,7 +5873,7 @@ function Qc(t, n, e, r, o, i) {
|
|
|
5869
5873
|
], 64)) : (G(), te("p", Xc, Oe(e.characterLimit - e.characterLength), 1)) : (G(), te("p", Yc, "Max " + Oe(e.characterLimit), 1))
|
|
5870
5874
|
]);
|
|
5871
5875
|
}
|
|
5872
|
-
const Ka = /* @__PURE__ */
|
|
5876
|
+
const Ka = /* @__PURE__ */ Te(Gc, [["render", Qc], ["__scopeId", "data-v-be1f2629"]]);
|
|
5873
5877
|
const ef = {
|
|
5874
5878
|
name: "IbTextarea",
|
|
5875
5879
|
props: {
|
|
@@ -5880,7 +5884,7 @@ const ef = {
|
|
|
5880
5884
|
id: {
|
|
5881
5885
|
type: String,
|
|
5882
5886
|
default() {
|
|
5883
|
-
return
|
|
5887
|
+
return At();
|
|
5884
5888
|
}
|
|
5885
5889
|
},
|
|
5886
5890
|
error: {
|
|
@@ -5967,7 +5971,7 @@ function rf(t, n, e, r, o, i) {
|
|
|
5967
5971
|
}, 512), [
|
|
5968
5972
|
[Ge, e.characterLimitErrorMessage.length && i.characterOverLimit]
|
|
5969
5973
|
]),
|
|
5970
|
-
Ne(ae("textarea",
|
|
5974
|
+
Ne(ae("textarea", Tt(t.$attrs, {
|
|
5971
5975
|
"onUpdate:modelValue": n[0] || (n[0] = (d) => o.val = d),
|
|
5972
5976
|
onInput: n[1] || (n[1] = (...d) => i.onInput && i.onInput(...d)),
|
|
5973
5977
|
onBlur: n[2] || (n[2] = (...d) => i.onBlur && i.onBlur(...d)),
|
|
@@ -5981,7 +5985,7 @@ function rf(t, n, e, r, o, i) {
|
|
|
5981
5985
|
])
|
|
5982
5986
|
], 2);
|
|
5983
5987
|
}
|
|
5984
|
-
const
|
|
5988
|
+
const Sp = /* @__PURE__ */ Te(ef, [["render", rf], ["__scopeId", "data-v-718ebfc4"]]);
|
|
5985
5989
|
var Cr = [
|
|
5986
5990
|
"onChange",
|
|
5987
5991
|
"onClose",
|
|
@@ -6129,7 +6133,7 @@ var Cr = [
|
|
|
6129
6133
|
time_24hr: !1
|
|
6130
6134
|
}, wt = function(t, n) {
|
|
6131
6135
|
return n === void 0 && (n = 2), ("000" + t).slice(n * -1);
|
|
6132
|
-
},
|
|
6136
|
+
}, St = function(t) {
|
|
6133
6137
|
return t === !0 ? 1 : 0;
|
|
6134
6138
|
};
|
|
6135
6139
|
function No(t, n) {
|
|
@@ -6153,7 +6157,7 @@ function He(t, n, e) {
|
|
|
6153
6157
|
var r = window.document.createElement(t);
|
|
6154
6158
|
return n = n || "", e = e || "", r.className = n, e !== void 0 && (r.textContent = e), r;
|
|
6155
6159
|
}
|
|
6156
|
-
function
|
|
6160
|
+
function Si(t) {
|
|
6157
6161
|
for (; t.firstChild; )
|
|
6158
6162
|
t.removeChild(t.firstChild);
|
|
6159
6163
|
}
|
|
@@ -6163,7 +6167,7 @@ function Ga(t, n) {
|
|
|
6163
6167
|
if (t.parentNode)
|
|
6164
6168
|
return Ga(t.parentNode, n);
|
|
6165
6169
|
}
|
|
6166
|
-
function
|
|
6170
|
+
function Ti(t, n) {
|
|
6167
6171
|
var e = He("div", "numInputWrapper"), r = He("input", "numInput " + t), o = He("span", "arrowUp"), i = He("span", "arrowDown");
|
|
6168
6172
|
if (navigator.userAgent.indexOf("MSIE 9.0") === -1 ? r.type = "number" : (r.type = "text", r.pattern = "\\d*"), n !== void 0)
|
|
6169
6173
|
for (var a in n)
|
|
@@ -6199,7 +6203,7 @@ var xr = function() {
|
|
|
6199
6203
|
t.setDate(parseFloat(n));
|
|
6200
6204
|
},
|
|
6201
6205
|
K: function(t, n, e) {
|
|
6202
|
-
t.setHours(t.getHours() % 12 + 12 *
|
|
6206
|
+
t.setHours(t.getHours() % 12 + 12 * St(new RegExp(e.amPM[1], "i").test(n)));
|
|
6203
6207
|
},
|
|
6204
6208
|
M: function(t, n, e) {
|
|
6205
6209
|
t.setMonth(e.months.shorthand.indexOf(n));
|
|
@@ -6293,7 +6297,7 @@ var xr = function() {
|
|
|
6293
6297
|
return n.ordinal !== void 0 ? t.getDate() + n.ordinal(t.getDate()) : t.getDate();
|
|
6294
6298
|
},
|
|
6295
6299
|
K: function(t, n) {
|
|
6296
|
-
return n.amPM[
|
|
6300
|
+
return n.amPM[St(t.getHours() > 11)];
|
|
6297
6301
|
},
|
|
6298
6302
|
M: function(t, n) {
|
|
6299
6303
|
return ji(t.getMonth(), !0, n);
|
|
@@ -6373,10 +6377,10 @@ var xr = function() {
|
|
|
6373
6377
|
var $ = s[b], v = $ === "\\", w = s[b - 1] === "\\" || v;
|
|
6374
6378
|
if (bn[$] && !w) {
|
|
6375
6379
|
g += bn[$];
|
|
6376
|
-
var
|
|
6377
|
-
|
|
6380
|
+
var S = new RegExp(g).exec(i);
|
|
6381
|
+
S && (y = !0) && p[$ !== "Y" ? "push" : "unshift"]({
|
|
6378
6382
|
fn: of[$],
|
|
6379
|
-
val:
|
|
6383
|
+
val: S[++m]
|
|
6380
6384
|
});
|
|
6381
6385
|
} else
|
|
6382
6386
|
v || (g += ".");
|
|
@@ -6400,7 +6404,7 @@ function Et(t, n, e) {
|
|
|
6400
6404
|
}
|
|
6401
6405
|
var af = function(t, n, e) {
|
|
6402
6406
|
return t > Math.min(n, e) && t < Math.max(n, e);
|
|
6403
|
-
},
|
|
6407
|
+
}, Sr = function(t, n, e) {
|
|
6404
6408
|
return t * 3600 + n * 60 + e;
|
|
6405
6409
|
}, lf = function(t) {
|
|
6406
6410
|
var n = Math.floor(t / 3600), e = (t - n * 3600) / 60;
|
|
@@ -6408,7 +6412,7 @@ var af = function(t, n, e) {
|
|
|
6408
6412
|
}, sf = {
|
|
6409
6413
|
DAY: 864e5
|
|
6410
6414
|
};
|
|
6411
|
-
function
|
|
6415
|
+
function Tr(t) {
|
|
6412
6416
|
var n = t.defaultHour, e = t.defaultMinute, r = t.defaultSeconds;
|
|
6413
6417
|
if (t.minDate !== void 0) {
|
|
6414
6418
|
var o = t.minDate.getHours(), i = t.minDate.getMinutes(), a = t.minDate.getSeconds();
|
|
@@ -6457,7 +6461,7 @@ function df(t, n) {
|
|
|
6457
6461
|
config: ht(ht({}, Nn), Qe.defaultConfig),
|
|
6458
6462
|
l10n: ai
|
|
6459
6463
|
};
|
|
6460
|
-
e.parseDate = Rr({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = p, e._setHoursFromDate = s, e._positionCalendar = ne, e.changeMonth = N, e.changeYear = V, e.clear = A, e.close = I, e.onMouseOver = _e, e._createElement = He, e.createDay =
|
|
6464
|
+
e.parseDate = Rr({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = p, e._setHoursFromDate = s, e._positionCalendar = ne, e.changeMonth = N, e.changeYear = V, e.clear = A, e.close = I, e.onMouseOver = _e, e._createElement = He, e.createDay = S, e.destroy = U, e.isEnabled = Z, e.jumpToDate = g, e.updateValue = mt, e.open = Ie, e.redraw = oe, e.set = it, e.setDate = Fe, e.toggle = fn;
|
|
6461
6465
|
function r() {
|
|
6462
6466
|
e.utils = {
|
|
6463
6467
|
getDaysInMonth: function(M, B) {
|
|
@@ -6488,7 +6492,7 @@ function df(t, n) {
|
|
|
6488
6492
|
}
|
|
6489
6493
|
function d(M) {
|
|
6490
6494
|
if (e.selectedDates.length === 0) {
|
|
6491
|
-
var B = e.config.minDate === void 0 || Et(/* @__PURE__ */ new Date(), e.config.minDate) >= 0 ? /* @__PURE__ */ new Date() : new Date(e.config.minDate.getTime()), K =
|
|
6495
|
+
var B = e.config.minDate === void 0 || Et(/* @__PURE__ */ new Date(), e.config.minDate) >= 0 ? /* @__PURE__ */ new Date() : new Date(e.config.minDate.getTime()), K = Tr(e.config);
|
|
6492
6496
|
B.setHours(K.hours, K.minutes, K.seconds, B.getMilliseconds()), e.selectedDates = [B], e.latestSelectedDateObj = B;
|
|
6493
6497
|
}
|
|
6494
6498
|
M !== void 0 && M.type !== "blur" && hn(M);
|
|
@@ -6496,7 +6500,7 @@ function df(t, n) {
|
|
|
6496
6500
|
c(), mt(), e._input.value !== X && e._debouncedChange();
|
|
6497
6501
|
}
|
|
6498
6502
|
function u(M, B) {
|
|
6499
|
-
return M % 12 + 12 *
|
|
6503
|
+
return M % 12 + 12 * St(B === e.l10n.amPM[1]);
|
|
6500
6504
|
}
|
|
6501
6505
|
function h(M) {
|
|
6502
6506
|
switch (M % 24) {
|
|
@@ -6513,7 +6517,7 @@ function df(t, n) {
|
|
|
6513
6517
|
e.amPM !== void 0 && (M = u(M, e.amPM.textContent));
|
|
6514
6518
|
var X = e.config.minTime !== void 0 || e.config.minDate && e.minDateHasTime && e.latestSelectedDateObj && Et(e.latestSelectedDateObj, e.config.minDate, !0) === 0, le = e.config.maxTime !== void 0 || e.config.maxDate && e.maxDateHasTime && e.latestSelectedDateObj && Et(e.latestSelectedDateObj, e.config.maxDate, !0) === 0;
|
|
6515
6519
|
if (e.config.maxTime !== void 0 && e.config.minTime !== void 0 && e.config.minTime > e.config.maxTime) {
|
|
6516
|
-
var fe =
|
|
6520
|
+
var fe = Sr(e.config.minTime.getHours(), e.config.minTime.getMinutes(), e.config.minTime.getSeconds()), Ee = Sr(e.config.maxTime.getHours(), e.config.maxTime.getMinutes(), e.config.maxTime.getSeconds()), ve = Sr(M, B, K);
|
|
6517
6521
|
if (ve > Ee && ve < fe) {
|
|
6518
6522
|
var Me = lf(fe);
|
|
6519
6523
|
M = Me[0], B = Me[1], K = Me[2];
|
|
@@ -6536,7 +6540,7 @@ function df(t, n) {
|
|
|
6536
6540
|
B && B instanceof Date && f(B.getHours(), B.getMinutes(), B.getSeconds());
|
|
6537
6541
|
}
|
|
6538
6542
|
function f(M, B, K) {
|
|
6539
|
-
e.latestSelectedDateObj !== void 0 && e.latestSelectedDateObj.setHours(M % 24, B, K || 0, 0), !(!e.hourElement || !e.minuteElement || e.isMobile) && (e.hourElement.value = wt(e.config.time_24hr ? M : (12 + M) % 12 + 12 *
|
|
6543
|
+
e.latestSelectedDateObj !== void 0 && e.latestSelectedDateObj.setHours(M % 24, B, K || 0, 0), !(!e.hourElement || !e.minuteElement || e.isMobile) && (e.hourElement.value = wt(e.config.time_24hr ? M : (12 + M) % 12 + 12 * St(M % 12 === 0)), e.minuteElement.value = wt(B), e.amPM !== void 0 && (e.amPM.textContent = e.l10n.amPM[St(M >= 12)]), e.secondElement !== void 0 && (e.secondElement.value = wt(K)));
|
|
6540
6544
|
}
|
|
6541
6545
|
function y(M) {
|
|
6542
6546
|
var B = Ct(M), K = parseInt(B.value) + (M.delta || 0);
|
|
@@ -6591,7 +6595,7 @@ function df(t, n) {
|
|
|
6591
6595
|
} catch (fe) {
|
|
6592
6596
|
fe.message = "Invalid date supplied: " + K, e.config.errorHandler(fe);
|
|
6593
6597
|
}
|
|
6594
|
-
B && e.currentYear !== X && (Ve("onYearChange"),
|
|
6598
|
+
B && e.currentYear !== X && (Ve("onYearChange"), T()), B && (e.currentYear !== X || e.currentMonth !== le) && Ve("onMonthChange"), e.redraw();
|
|
6595
6599
|
}
|
|
6596
6600
|
function $(M) {
|
|
6597
6601
|
var B = Ct(M);
|
|
@@ -6618,7 +6622,7 @@ function df(t, n) {
|
|
|
6618
6622
|
}
|
|
6619
6623
|
!e.config.static && !e.config.inline && (e.config.appendTo !== void 0 ? e.config.appendTo : window.document.body).appendChild(e.calendarContainer);
|
|
6620
6624
|
}
|
|
6621
|
-
function
|
|
6625
|
+
function S(M, B, K, X) {
|
|
6622
6626
|
var le = Z(B, !0), fe = He("span", M, B.getDate().toString());
|
|
6623
6627
|
return fe.dateObj = B, fe.$i = X, fe.setAttribute("aria-label", e.formatDate(B, e.config.ariaDateFormat)), M.indexOf("hidden") === -1 && Et(B, e.now) === 0 && (e.todayDateElem = fe, fe.classList.add("today"), fe.setAttribute("aria-current", "date")), le ? (fe.tabIndex = -1, Bt(B) && (fe.classList.add("selected"), e.selectedDateElem = fe, e.config.mode === "range" && (yt(fe, "startRange", e.selectedDates[0] && Et(B, e.selectedDates[0], !0) === 0), yt(fe, "endRange", e.selectedDates[1] && Et(B, e.selectedDates[1], !0) === 0), M === "nextMonthDay" && fe.classList.add("inRange")))) : fe.classList.add("flatpickr-disabled"), e.config.mode === "range" && Wt(B) && !Bt(B) && fe.classList.add("inRange"), e.weekNumbers && e.config.showMonths === 1 && M !== "prevMonthDay" && X % 7 === 6 && e.weekNumbers.insertAdjacentHTML("beforeend", "<span class='flatpickr-day'>" + e.config.getWeek(B) + "</span>"), Ve("onDayCreate", fe), fe;
|
|
6624
6628
|
}
|
|
@@ -6648,17 +6652,17 @@ function df(t, n) {
|
|
|
6648
6652
|
}
|
|
6649
6653
|
function O(M, B) {
|
|
6650
6654
|
for (var K = (new Date(M, B, 1).getDay() - e.l10n.firstDayOfWeek + 7) % 7, X = e.utils.getDaysInMonth((B - 1 + 12) % 12, M), le = e.utils.getDaysInMonth(B, M), fe = window.document.createDocumentFragment(), Ee = e.config.showMonths > 1, ve = Ee ? "prevMonthDay hidden" : "prevMonthDay", Me = Ee ? "nextMonthDay hidden" : "nextMonthDay", me = X + 1 - K, Ce = 0; me <= X; me++, Ce++)
|
|
6651
|
-
fe.appendChild(
|
|
6655
|
+
fe.appendChild(S("flatpickr-day " + ve, new Date(M, B - 1, me), me, Ce));
|
|
6652
6656
|
for (me = 1; me <= le; me++, Ce++)
|
|
6653
|
-
fe.appendChild(
|
|
6657
|
+
fe.appendChild(S("flatpickr-day", new Date(M, B, me), me, Ce));
|
|
6654
6658
|
for (var je = le + 1; je <= 42 - K && (e.config.showMonths === 1 || Ce % 7 !== 0); je++, Ce++)
|
|
6655
|
-
fe.appendChild(
|
|
6659
|
+
fe.appendChild(S("flatpickr-day " + Me, new Date(M, B + 1, je % le), je, Ce));
|
|
6656
6660
|
var ze = He("div", "dayContainer");
|
|
6657
6661
|
return ze.appendChild(fe), ze;
|
|
6658
6662
|
}
|
|
6659
6663
|
function k() {
|
|
6660
6664
|
if (e.daysContainer !== void 0) {
|
|
6661
|
-
|
|
6665
|
+
Si(e.daysContainer), e.weekNumbers && Si(e.weekNumbers);
|
|
6662
6666
|
for (var M = document.createDocumentFragment(), B = 0; B < e.config.showMonths; B++) {
|
|
6663
6667
|
var K = new Date(e.currentYear, e.currentMonth, 1);
|
|
6664
6668
|
K.setMonth(e.currentMonth + B), M.appendChild(O(K.getFullYear(), K.getMonth()));
|
|
@@ -6666,7 +6670,7 @@ function df(t, n) {
|
|
|
6666
6670
|
e.daysContainer.appendChild(M), e.days = e.daysContainer.firstChild, e.config.mode === "range" && e.selectedDates.length === 1 && _e();
|
|
6667
6671
|
}
|
|
6668
6672
|
}
|
|
6669
|
-
function
|
|
6673
|
+
function T() {
|
|
6670
6674
|
if (!(e.config.showMonths > 1 || e.config.monthSelectorType !== "dropdown")) {
|
|
6671
6675
|
var M = function(X) {
|
|
6672
6676
|
return e.config.minDate !== void 0 && e.currentYear === e.config.minDate.getFullYear() && X < e.config.minDate.getMonth() ? !1 : !(e.config.maxDate !== void 0 && e.currentYear === e.config.maxDate.getFullYear() && X > e.config.maxDate.getMonth());
|
|
@@ -6684,8 +6688,8 @@ function df(t, n) {
|
|
|
6684
6688
|
e.config.showMonths > 1 || e.config.monthSelectorType === "static" ? K = He("span", "cur-month") : (e.monthsDropdownContainer = He("select", "flatpickr-monthDropdown-months"), e.monthsDropdownContainer.setAttribute("aria-label", e.l10n.monthAriaLabel), p(e.monthsDropdownContainer, "change", function(Ee) {
|
|
6685
6689
|
var ve = Ct(Ee), Me = parseInt(ve.value, 10);
|
|
6686
6690
|
e.changeMonth(Me - e.currentMonth), Ve("onMonthChange");
|
|
6687
|
-
}),
|
|
6688
|
-
var X =
|
|
6691
|
+
}), T(), K = e.monthsDropdownContainer);
|
|
6692
|
+
var X = Ti("cur-year", { tabindex: "-1" }), le = X.getElementsByTagName("input")[0];
|
|
6689
6693
|
le.setAttribute("aria-label", e.l10n.yearAriaLabel), e.config.minDate && le.setAttribute("min", e.config.minDate.getFullYear().toString()), e.config.maxDate && (le.setAttribute("max", e.config.maxDate.getFullYear().toString()), le.disabled = !!e.config.minDate && e.config.minDate.getFullYear() === e.config.maxDate.getFullYear());
|
|
6690
6694
|
var fe = He("div", "flatpickr-current-month");
|
|
6691
6695
|
return fe.appendChild(K), fe.appendChild(X), B.appendChild(fe), M.appendChild(B), {
|
|
@@ -6695,7 +6699,7 @@ function df(t, n) {
|
|
|
6695
6699
|
};
|
|
6696
6700
|
}
|
|
6697
6701
|
function q() {
|
|
6698
|
-
|
|
6702
|
+
Si(e.monthNav), e.monthNav.appendChild(e.prevMonthNav), e.config.showMonths && (e.yearElements = [], e.monthElements = []);
|
|
6699
6703
|
for (var M = e.config.showMonths; M--; ) {
|
|
6700
6704
|
var B = R();
|
|
6701
6705
|
e.yearElements.push(B.yearElement), e.monthElements.push(B.monthElement), e.monthNav.appendChild(B.container);
|
|
@@ -6721,24 +6725,24 @@ function df(t, n) {
|
|
|
6721
6725
|
}
|
|
6722
6726
|
function Y() {
|
|
6723
6727
|
e.calendarContainer.classList.add("hasTime"), e.config.noCalendar && e.calendarContainer.classList.add("noCalendar");
|
|
6724
|
-
var M =
|
|
6728
|
+
var M = Tr(e.config);
|
|
6725
6729
|
e.timeContainer = He("div", "flatpickr-time"), e.timeContainer.tabIndex = -1;
|
|
6726
|
-
var B = He("span", "flatpickr-time-separator", ":"), K =
|
|
6730
|
+
var B = He("span", "flatpickr-time-separator", ":"), K = Ti("flatpickr-hour", {
|
|
6727
6731
|
"aria-label": e.l10n.hourAriaLabel
|
|
6728
6732
|
});
|
|
6729
6733
|
e.hourElement = K.getElementsByTagName("input")[0];
|
|
6730
|
-
var X =
|
|
6734
|
+
var X = Ti("flatpickr-minute", {
|
|
6731
6735
|
"aria-label": e.l10n.minuteAriaLabel
|
|
6732
6736
|
});
|
|
6733
6737
|
if (e.minuteElement = X.getElementsByTagName("input")[0], e.hourElement.tabIndex = e.minuteElement.tabIndex = -1, e.hourElement.value = wt(e.latestSelectedDateObj ? e.latestSelectedDateObj.getHours() : e.config.time_24hr ? M.hours : h(M.hours)), e.minuteElement.value = wt(e.latestSelectedDateObj ? e.latestSelectedDateObj.getMinutes() : M.minutes), e.hourElement.setAttribute("step", e.config.hourIncrement.toString()), e.minuteElement.setAttribute("step", e.config.minuteIncrement.toString()), e.hourElement.setAttribute("min", e.config.time_24hr ? "0" : "1"), e.hourElement.setAttribute("max", e.config.time_24hr ? "23" : "12"), e.hourElement.setAttribute("maxlength", "2"), e.minuteElement.setAttribute("min", "0"), e.minuteElement.setAttribute("max", "59"), e.minuteElement.setAttribute("maxlength", "2"), e.timeContainer.appendChild(K), e.timeContainer.appendChild(B), e.timeContainer.appendChild(X), e.config.time_24hr && e.timeContainer.classList.add("time24hr"), e.config.enableSeconds) {
|
|
6734
6738
|
e.timeContainer.classList.add("hasSeconds");
|
|
6735
|
-
var le =
|
|
6739
|
+
var le = Ti("flatpickr-second");
|
|
6736
6740
|
e.secondElement = le.getElementsByTagName("input")[0], e.secondElement.value = wt(e.latestSelectedDateObj ? e.latestSelectedDateObj.getSeconds() : M.seconds), e.secondElement.setAttribute("step", e.minuteElement.getAttribute("step")), e.secondElement.setAttribute("min", "0"), e.secondElement.setAttribute("max", "59"), e.secondElement.setAttribute("maxlength", "2"), e.timeContainer.appendChild(He("span", "flatpickr-time-separator", ":")), e.timeContainer.appendChild(le);
|
|
6737
6741
|
}
|
|
6738
|
-
return e.config.time_24hr || (e.amPM = He("span", "flatpickr-am-pm", e.l10n.amPM[
|
|
6742
|
+
return e.config.time_24hr || (e.amPM = He("span", "flatpickr-am-pm", e.l10n.amPM[St((e.latestSelectedDateObj ? e.hourElement.value : e.config.defaultHour) > 11)]), e.amPM.title = e.l10n.toggleTitle, e.amPM.tabIndex = -1, e.timeContainer.appendChild(e.amPM)), e.timeContainer;
|
|
6739
6743
|
}
|
|
6740
6744
|
function re() {
|
|
6741
|
-
e.weekdayContainer ?
|
|
6745
|
+
e.weekdayContainer ? Si(e.weekdayContainer) : e.weekdayContainer = He("div", "flatpickr-weekdays");
|
|
6742
6746
|
for (var M = e.config.showMonths; M--; ) {
|
|
6743
6747
|
var B = He("div", "flatpickr-weekdaycontainer");
|
|
6744
6748
|
e.weekdayContainer.appendChild(B);
|
|
@@ -6770,11 +6774,11 @@ function df(t, n) {
|
|
|
6770
6774
|
function N(M, B) {
|
|
6771
6775
|
B === void 0 && (B = !0);
|
|
6772
6776
|
var K = B ? M : M - e.currentMonth;
|
|
6773
|
-
K < 0 && e._hidePrevMonthArrow === !0 || K > 0 && e._hideNextMonthArrow === !0 || (e.currentMonth += K, (e.currentMonth < 0 || e.currentMonth > 11) && (e.currentYear += e.currentMonth > 11 ? 1 : -1, e.currentMonth = (e.currentMonth + 12) % 12, Ve("onYearChange"),
|
|
6777
|
+
K < 0 && e._hidePrevMonthArrow === !0 || K > 0 && e._hideNextMonthArrow === !0 || (e.currentMonth += K, (e.currentMonth < 0 || e.currentMonth > 11) && (e.currentYear += e.currentMonth > 11 ? 1 : -1, e.currentMonth = (e.currentMonth + 12) % 12, Ve("onYearChange"), T()), k(), Ve("onMonthChange"), ut());
|
|
6774
6778
|
}
|
|
6775
6779
|
function A(M, B) {
|
|
6776
6780
|
if (M === void 0 && (M = !0), B === void 0 && (B = !0), e.input.value = "", e.altInput !== void 0 && (e.altInput.value = ""), e.mobileInput !== void 0 && (e.mobileInput.value = ""), e.selectedDates = [], e.latestSelectedDateObj = void 0, B === !0 && (e.currentYear = e._initialDate.getFullYear(), e.currentMonth = e._initialDate.getMonth()), e.config.enableTime === !0) {
|
|
6777
|
-
var K =
|
|
6781
|
+
var K = Tr(e.config), X = K.hours, le = K.minutes, fe = K.seconds;
|
|
6778
6782
|
f(X, le, fe);
|
|
6779
6783
|
}
|
|
6780
6784
|
e.redraw(), M && Ve("onChange");
|
|
@@ -6849,7 +6853,7 @@ function df(t, n) {
|
|
|
6849
6853
|
function V(M) {
|
|
6850
6854
|
if (!(!M || e.config.minDate && M < e.config.minDate.getFullYear() || e.config.maxDate && M > e.config.maxDate.getFullYear())) {
|
|
6851
6855
|
var B = M, K = e.currentYear !== B;
|
|
6852
|
-
e.currentYear = B || e.currentYear, e.config.maxDate && e.currentYear === e.config.maxDate.getFullYear() ? e.currentMonth = Math.min(e.config.maxDate.getMonth(), e.currentMonth) : e.config.minDate && e.currentYear === e.config.minDate.getFullYear() && (e.currentMonth = Math.max(e.config.minDate.getMonth(), e.currentMonth)), K && (e.redraw(), Ve("onYearChange"),
|
|
6856
|
+
e.currentYear = B || e.currentYear, e.config.maxDate && e.currentYear === e.config.maxDate.getFullYear() ? e.currentMonth = Math.min(e.config.maxDate.getMonth(), e.currentMonth) : e.config.minDate && e.currentYear === e.config.minDate.getFullYear() && (e.currentMonth = Math.max(e.config.minDate.getMonth(), e.currentMonth)), K && (e.redraw(), Ve("onYearChange"), T());
|
|
6853
6857
|
}
|
|
6854
6858
|
}
|
|
6855
6859
|
function Z(M, B) {
|
|
@@ -7135,7 +7139,7 @@ function df(t, n) {
|
|
|
7135
7139
|
return document.head.appendChild(M), M.sheet;
|
|
7136
7140
|
}
|
|
7137
7141
|
function oe() {
|
|
7138
|
-
e.config.noCalendar || e.isMobile || (
|
|
7142
|
+
e.config.noCalendar || e.isMobile || (T(), ut(), k());
|
|
7139
7143
|
}
|
|
7140
7144
|
function Ae() {
|
|
7141
7145
|
e._input.focus(), window.navigator.userAgent.indexOf("MSIE") !== -1 || navigator.msMaxTouchPoints !== void 0 ? setTimeout(e.close, 0) : e.close();
|
|
@@ -7158,7 +7162,7 @@ function df(t, n) {
|
|
|
7158
7162
|
}));
|
|
7159
7163
|
if (c(), fe) {
|
|
7160
7164
|
var ve = e.currentYear !== le.getFullYear();
|
|
7161
|
-
e.currentYear = le.getFullYear(), e.currentMonth = le.getMonth(), ve && (Ve("onYearChange"),
|
|
7165
|
+
e.currentYear = le.getFullYear(), e.currentMonth = le.getMonth(), ve && (Ve("onYearChange"), T()), Ve("onMonthChange");
|
|
7162
7166
|
}
|
|
7163
7167
|
if (ut(), k(), mt(), !fe && e.config.mode !== "range" && e.config.showMonths === 1 ? E(X) : e.selectedDateElem !== void 0 && e.hourElement === void 0 && e.selectedDateElem && e.selectedDateElem.focus(), e.hourElement !== void 0 && e.hourElement !== void 0 && e.hourElement.focus(), e.config.closeOnSelect) {
|
|
7164
7168
|
var Me = e.config.mode === "single" && !e.config.enableTime, me = e.config.mode === "range" && e.selectedDates.length === 2 && !e.config.enableTime;
|
|
@@ -7167,7 +7171,7 @@ function df(t, n) {
|
|
|
7167
7171
|
b();
|
|
7168
7172
|
}
|
|
7169
7173
|
}
|
|
7170
|
-
var
|
|
7174
|
+
var Se = {
|
|
7171
7175
|
locale: [Q, z],
|
|
7172
7176
|
showMonths: [q, l, re],
|
|
7173
7177
|
minDate: [g],
|
|
@@ -7183,11 +7187,11 @@ function df(t, n) {
|
|
|
7183
7187
|
if (M !== null && typeof M == "object") {
|
|
7184
7188
|
Object.assign(e.config, M);
|
|
7185
7189
|
for (var K in M)
|
|
7186
|
-
|
|
7190
|
+
Se[K] !== void 0 && Se[K].forEach(function(X) {
|
|
7187
7191
|
return X();
|
|
7188
7192
|
});
|
|
7189
7193
|
} else
|
|
7190
|
-
e.config[M] = B,
|
|
7194
|
+
e.config[M] = B, Se[M] !== void 0 ? Se[M].forEach(function(X) {
|
|
7191
7195
|
return X();
|
|
7192
7196
|
}) : Cr.indexOf(M) > -1 && (e.config[M] = Er(B));
|
|
7193
7197
|
e.redraw(), mt(!0);
|
|
@@ -7319,11 +7323,11 @@ function df(t, n) {
|
|
|
7319
7323
|
function hn(M) {
|
|
7320
7324
|
M.preventDefault();
|
|
7321
7325
|
var B = M.type === "keydown", K = Ct(M), X = K;
|
|
7322
|
-
e.amPM !== void 0 && K === e.amPM && (e.amPM.textContent = e.l10n.amPM[
|
|
7326
|
+
e.amPM !== void 0 && K === e.amPM && (e.amPM.textContent = e.l10n.amPM[St(e.amPM.textContent === e.l10n.amPM[0])]);
|
|
7323
7327
|
var le = parseFloat(X.getAttribute("min")), fe = parseFloat(X.getAttribute("max")), Ee = parseFloat(X.getAttribute("step")), ve = parseInt(X.value, 10), Me = M.delta || (B ? M.which === 38 ? 1 : -1 : 0), me = ve + Ee * Me;
|
|
7324
7328
|
if (typeof X.value < "u" && X.value.length === 2) {
|
|
7325
7329
|
var Ce = X === e.hourElement, je = X === e.minuteElement;
|
|
7326
|
-
me < le ? (me = fe + me +
|
|
7330
|
+
me < le ? (me = fe + me + St(!Ce) + (St(Ce) && St(!e.amPM)), je && v(void 0, -1, e.hourElement)) : me > fe && (me = X === e.hourElement ? me - fe - St(!e.amPM) : le, je && v(void 0, 1, e.hourElement)), e.amPM && Ce && (Ee === 1 ? me + ve === 23 : Math.abs(me - ve) > Ee) && (e.amPM.textContent = e.l10n.amPM[St(e.amPM.textContent === e.l10n.amPM[0])]), X.value = wt(me);
|
|
7327
7331
|
}
|
|
7328
7332
|
}
|
|
7329
7333
|
return o(), e;
|
|
@@ -7622,13 +7626,13 @@ const gf = "single", Ar = "range", mf = {
|
|
|
7622
7626
|
this.mode === Ar ? this.data = t.split(" to ") : this.data = t;
|
|
7623
7627
|
},
|
|
7624
7628
|
onDocumentKeyDown(t) {
|
|
7625
|
-
t.keyCode === Wr && this.
|
|
7629
|
+
t.keyCode === Wr && this.onClose();
|
|
7626
7630
|
},
|
|
7627
7631
|
onKeydownEndField(t) {
|
|
7628
7632
|
t.key === "ArrowDown" && this.flat.selectedDateElem.focus();
|
|
7629
7633
|
},
|
|
7630
7634
|
triggerChange() {
|
|
7631
|
-
|
|
7635
|
+
setTimeout(() => {
|
|
7632
7636
|
if (this.pickerOptions.mode === "range") {
|
|
7633
7637
|
let t = this.data;
|
|
7634
7638
|
t.length < 2 ? (this.$emit("input", ""), this.$emit("update:modelValue", this.data)) : (this.$emit("input", [t[0], t[1]]), this.$emit("update:modelValue", this.data));
|
|
@@ -7758,7 +7762,7 @@ function xf(t, n, e, r, o, i) {
|
|
|
7758
7762
|
])
|
|
7759
7763
|
], 2);
|
|
7760
7764
|
}
|
|
7761
|
-
const
|
|
7765
|
+
const Tp = /* @__PURE__ */ Te(mf, [["render", xf]]), Sf = [
|
|
7762
7766
|
[
|
|
7763
7767
|
"Afghanistan (افغانستان)",
|
|
7764
7768
|
"af",
|
|
@@ -9064,7 +9068,7 @@ const Sp = /* @__PURE__ */ Se(mf, [["render", xf]]), Tf = [
|
|
|
9064
9068
|
1,
|
|
9065
9069
|
["18"]
|
|
9066
9070
|
]
|
|
9067
|
-
],
|
|
9071
|
+
], Tf = Sf.map(([t, n, e, r = 0, o = null]) => ({
|
|
9068
9072
|
name: t,
|
|
9069
9073
|
iso2: n.toUpperCase(),
|
|
9070
9074
|
dialCode: e,
|
|
@@ -9091,7 +9095,7 @@ const Pf = [
|
|
|
9091
9095
|
{
|
|
9092
9096
|
name: "allCountries",
|
|
9093
9097
|
type: Array,
|
|
9094
|
-
default:
|
|
9098
|
+
default: Tf,
|
|
9095
9099
|
description: "All countries that are used in <code>libphonenumber-js</code>, can be overridden by this prop",
|
|
9096
9100
|
inDemo: !1
|
|
9097
9101
|
},
|
|
@@ -9945,11 +9949,11 @@ function Xa(t) {
|
|
|
9945
9949
|
var n = t.version;
|
|
9946
9950
|
typeof n == "number" ? (this.v1 = n === 1, this.v2 = n === 2, this.v3 = n === 3, this.v4 = n === 4) : n ? Do(n, Jf) === -1 ? this.v2 = !0 : Do(n, Xf) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
|
|
9947
9951
|
}
|
|
9948
|
-
var ah = ";ext=",
|
|
9952
|
+
var ah = ";ext=", Tn = function(t) {
|
|
9949
9953
|
return "([".concat(Lt, "]{1,").concat(t, "})");
|
|
9950
9954
|
};
|
|
9951
9955
|
function Qa(t) {
|
|
9952
|
-
var n = "20", e = "15", r = "9", o = "6", i = "[ \\t,]*", a = "[:\\..]?[ \\t,-]*", l = "#?", d = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", u = "(?:[xx##~~]|int|int)", h = "[- ]+", c = "[ \\t]*", s = "(?:,{2}|;)", f = ah +
|
|
9956
|
+
var n = "20", e = "15", r = "9", o = "6", i = "[ \\t,]*", a = "[:\\..]?[ \\t,-]*", l = "#?", d = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", u = "(?:[xx##~~]|int|int)", h = "[- ]+", c = "[ \\t]*", s = "(?:,{2}|;)", f = ah + Tn(n), y = i + d + a + Tn(n) + l, p = i + u + a + Tn(r) + l, b = h + Tn(o) + "#", m = c + s + a + Tn(e) + l, g = c + "(?:,)+" + a + Tn(r) + l;
|
|
9953
9957
|
return f + "|" + y + "|" + p + "|" + b + "|" + m + "|" + g;
|
|
9954
9958
|
}
|
|
9955
9959
|
var lh = "[" + Lt + "]{" + eo + "}", sh = "[" + to + "]{0,1}(?:[" + qi + "]*[" + Lt + "]){3,}[" + qi + Lt + "]*", uh = new RegExp("^[" + to + "]{0,1}(?:[" + qi + "]*[" + Lt + "]){1,2}$", "i"), dh = sh + // Phone number extensions
|
|
@@ -10242,13 +10246,13 @@ function xh(t, n, e) {
|
|
|
10242
10246
|
var r = n.v2 ? t.nationalNumber : t.phone;
|
|
10243
10247
|
return rn(r, e.nationalNumberPattern());
|
|
10244
10248
|
}
|
|
10245
|
-
function
|
|
10249
|
+
function Sh(t, n, e) {
|
|
10246
10250
|
var r = new _t(e), o = r.getCountryCodesForCallingCode(t);
|
|
10247
10251
|
return o ? o.filter(function(i) {
|
|
10248
|
-
return
|
|
10252
|
+
return Th(n, i, e);
|
|
10249
10253
|
}) : [];
|
|
10250
10254
|
}
|
|
10251
|
-
function
|
|
10255
|
+
function Th(t, n, e) {
|
|
10252
10256
|
var r = new _t(e);
|
|
10253
10257
|
return r.selectNumberingPlan(n), r.numberingPlan.possibleLengths().indexOf(t.length) >= 0;
|
|
10254
10258
|
}
|
|
@@ -10476,7 +10480,7 @@ var zh = /* @__PURE__ */ function() {
|
|
|
10476
10480
|
}, {
|
|
10477
10481
|
key: "getPossibleCountries",
|
|
10478
10482
|
value: function() {
|
|
10479
|
-
return this.country ? [this.country] :
|
|
10483
|
+
return this.country ? [this.country] : Sh(this.countryCallingCode, this.nationalNumber, this.getMetadata());
|
|
10480
10484
|
}
|
|
10481
10485
|
}, {
|
|
10482
10486
|
key: "isPossible",
|
|
@@ -10927,17 +10931,17 @@ function x1(t) {
|
|
|
10927
10931
|
for (var n = 1; n < arguments.length; n++) {
|
|
10928
10932
|
var e = arguments[n] != null ? arguments[n] : {};
|
|
10929
10933
|
n % 2 ? ia(Object(e), !0).forEach(function(r) {
|
|
10930
|
-
|
|
10934
|
+
S1(t, r, e[r]);
|
|
10931
10935
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : ia(Object(e)).forEach(function(r) {
|
|
10932
10936
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(e, r));
|
|
10933
10937
|
});
|
|
10934
10938
|
}
|
|
10935
10939
|
return t;
|
|
10936
10940
|
}
|
|
10937
|
-
function
|
|
10941
|
+
function S1(t, n, e) {
|
|
10938
10942
|
return n in t ? Object.defineProperty(t, n, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = e, t;
|
|
10939
10943
|
}
|
|
10940
|
-
function
|
|
10944
|
+
function T1(t, n) {
|
|
10941
10945
|
return I1(t) || P1(t, n) || N1(t, n) || A1();
|
|
10942
10946
|
}
|
|
10943
10947
|
function A1() {
|
|
@@ -10986,7 +10990,7 @@ function I1(t) {
|
|
|
10986
10990
|
return t;
|
|
10987
10991
|
}
|
|
10988
10992
|
function M1(t) {
|
|
10989
|
-
var n = Array.prototype.slice.call(t), e =
|
|
10993
|
+
var n = Array.prototype.slice.call(t), e = T1(n, 4), r = e[0], o = e[1], i = e[2], a = e[3], l, d, u;
|
|
10990
10994
|
if (typeof r == "string")
|
|
10991
10995
|
l = r;
|
|
10992
10996
|
else
|
|
@@ -11220,7 +11224,7 @@ const B1 = {
|
|
|
11220
11224
|
A && !d.value && (u.phone = A);
|
|
11221
11225
|
}));
|
|
11222
11226
|
}), Ut(() => l.inputOptions.placeholder, p), ba(() => {
|
|
11223
|
-
d.value && (u.phone = d.value.trim()),
|
|
11227
|
+
d.value && (u.phone = d.value.trim()), S(), b().then(() => {
|
|
11224
11228
|
var A;
|
|
11225
11229
|
!u.phone && (A = l.inputOptions) != null && A.showDialCode && u.activeCountryCode && (u.phone = `+${u.activeCountryCode}`), a("validate", y.value);
|
|
11226
11230
|
}).catch(console.error).then(() => {
|
|
@@ -11295,7 +11299,7 @@ const B1 = {
|
|
|
11295
11299
|
u.activeCountryCode = L.iso2, C(u.phone);
|
|
11296
11300
|
}
|
|
11297
11301
|
}
|
|
11298
|
-
function
|
|
11302
|
+
function S() {
|
|
11299
11303
|
const A = u.phone;
|
|
11300
11304
|
if (l.validCharactersOnly) {
|
|
11301
11305
|
const I = u.phone.match(/[()\-+0-9\s]*/g);
|
|
@@ -11326,7 +11330,7 @@ const B1 = {
|
|
|
11326
11330
|
function k(A) {
|
|
11327
11331
|
Nf(i.value, u.phone.length), a("focus", A);
|
|
11328
11332
|
}
|
|
11329
|
-
function
|
|
11333
|
+
function T(A) {
|
|
11330
11334
|
a("enter", A);
|
|
11331
11335
|
}
|
|
11332
11336
|
function R(A) {
|
|
@@ -11433,7 +11437,7 @@ const B1 = {
|
|
|
11433
11437
|
[va, u.searchQuery]
|
|
11434
11438
|
])
|
|
11435
11439
|
])) : ue("", !0),
|
|
11436
|
-
(G(!0), te(nt, null,
|
|
11440
|
+
(G(!0), te(nt, null, Dt(f.value, (F, L) => (G(), te("li", {
|
|
11437
11441
|
role: "option",
|
|
11438
11442
|
class: ge(["vti__dropdown-item", v(L, F.iso2)]),
|
|
11439
11443
|
key: F.iso2 + (F.preferred ? "-preferred" : ""),
|
|
@@ -11475,7 +11479,7 @@ const B1 = {
|
|
|
11475
11479
|
onFocus: k,
|
|
11476
11480
|
onInput: D,
|
|
11477
11481
|
onKeyup: [
|
|
11478
|
-
pt(
|
|
11482
|
+
pt(T, ["enter"]),
|
|
11479
11483
|
pt(R, ["space"])
|
|
11480
11484
|
]
|
|
11481
11485
|
}, null, 42, G1), [
|
|
@@ -11564,7 +11568,7 @@ function Z1(t, n, e, r, o, i) {
|
|
|
11564
11568
|
]),
|
|
11565
11569
|
_: 1
|
|
11566
11570
|
})) : ue("", !0),
|
|
11567
|
-
Ne((G(), $e(d,
|
|
11571
|
+
Ne((G(), $e(d, Tt({
|
|
11568
11572
|
modelValue: i.phone,
|
|
11569
11573
|
"onUpdate:modelValue": n[0] || (n[0] = (h) => i.phone = h)
|
|
11570
11574
|
}, t.$attrs, {
|
|
@@ -11587,7 +11591,7 @@ function Z1(t, n, e, r, o, i) {
|
|
|
11587
11591
|
])
|
|
11588
11592
|
], 64);
|
|
11589
11593
|
}
|
|
11590
|
-
const Ap = /* @__PURE__ */
|
|
11594
|
+
const Ap = /* @__PURE__ */ Te(Y1, [["render", Z1]]);
|
|
11591
11595
|
var il = { exports: {} };
|
|
11592
11596
|
/*!
|
|
11593
11597
|
* Quill Editor v1.3.7
|
|
@@ -11849,8 +11853,8 @@ var il = { exports: {} };
|
|
|
11849
11853
|
if (typeof v.retain == "number") {
|
|
11850
11854
|
var w = {};
|
|
11851
11855
|
typeof $.retain == "number" ? w.retain = g : w.insert = $.insert;
|
|
11852
|
-
var
|
|
11853
|
-
if (
|
|
11856
|
+
var S = d.attributes.compose($.attributes, v.attributes, typeof $.retain == "number");
|
|
11857
|
+
if (S && (w.attributes = S), m.push(w), !f.hasNext() && a(m.ops[m.ops.length - 1], w)) {
|
|
11854
11858
|
var E = new h(s.rest());
|
|
11855
11859
|
return m.concat(E).chop();
|
|
11856
11860
|
}
|
|
@@ -11884,8 +11888,8 @@ var il = { exports: {} };
|
|
|
11884
11888
|
break;
|
|
11885
11889
|
case i.EQUAL:
|
|
11886
11890
|
v = Math.min(b.peekLength(), m.peekLength(), $);
|
|
11887
|
-
var w = b.next(v),
|
|
11888
|
-
a(w.insert,
|
|
11891
|
+
var w = b.next(v), S = m.next(v);
|
|
11892
|
+
a(w.insert, S.insert) ? y.retain(v, d.attributes.diff(w.attributes, S.attributes)) : y.push(S).delete(v);
|
|
11889
11893
|
break;
|
|
11890
11894
|
}
|
|
11891
11895
|
$ -= v;
|
|
@@ -11970,11 +11974,11 @@ var il = { exports: {} };
|
|
|
11970
11974
|
return f[y];
|
|
11971
11975
|
};
|
|
11972
11976
|
e.exports = function s() {
|
|
11973
|
-
var f, y, p, b, m, g, $ = arguments[0], v = 1, w = arguments.length,
|
|
11974
|
-
for (typeof $ == "boolean" && (
|
|
11977
|
+
var f, y, p, b, m, g, $ = arguments[0], v = 1, w = arguments.length, S = !1;
|
|
11978
|
+
for (typeof $ == "boolean" && (S = $, $ = arguments[1] || {}, v = 2), ($ == null || typeof $ != "object" && typeof $ != "function") && ($ = {}); v < w; ++v)
|
|
11975
11979
|
if (f = arguments[v], f != null)
|
|
11976
11980
|
for (y in f)
|
|
11977
|
-
p = c($, y), b = c(f, y), $ !== b && (
|
|
11981
|
+
p = c($, y), b = c(f, y), $ !== b && (S && b && (u(b) || (m = d(b))) ? (m ? (m = !1, g = p && d(p) ? p : []) : g = p && u(p) ? p : {}, h($, { name: y, newValue: s(S, g, b) })) : typeof b < "u" && h($, { name: y, newValue: b }));
|
|
11978
11982
|
return $;
|
|
11979
11983
|
};
|
|
11980
11984
|
},
|
|
@@ -11985,21 +11989,21 @@ var il = { exports: {} };
|
|
|
11985
11989
|
value: !0
|
|
11986
11990
|
}), r.default = r.BlockEmbed = r.bubbleFormats = void 0;
|
|
11987
11991
|
var i = function() {
|
|
11988
|
-
function O(k,
|
|
11989
|
-
for (var R = 0; R <
|
|
11990
|
-
var q =
|
|
11992
|
+
function O(k, T) {
|
|
11993
|
+
for (var R = 0; R < T.length; R++) {
|
|
11994
|
+
var q = T[R];
|
|
11991
11995
|
q.enumerable = q.enumerable || !1, q.configurable = !0, "value" in q && (q.writable = !0), Object.defineProperty(k, q.key, q);
|
|
11992
11996
|
}
|
|
11993
11997
|
}
|
|
11994
|
-
return function(k,
|
|
11995
|
-
return
|
|
11998
|
+
return function(k, T, R) {
|
|
11999
|
+
return T && O(k.prototype, T), R && O(k, R), k;
|
|
11996
12000
|
};
|
|
11997
|
-
}(), a = function O(k,
|
|
12001
|
+
}(), a = function O(k, T, R) {
|
|
11998
12002
|
k === null && (k = Function.prototype);
|
|
11999
|
-
var q = Object.getOwnPropertyDescriptor(k,
|
|
12003
|
+
var q = Object.getOwnPropertyDescriptor(k, T);
|
|
12000
12004
|
if (q === void 0) {
|
|
12001
12005
|
var W = Object.getPrototypeOf(k);
|
|
12002
|
-
return W === null ? void 0 : O(W,
|
|
12006
|
+
return W === null ? void 0 : O(W, T, R);
|
|
12003
12007
|
} else {
|
|
12004
12008
|
if ("value" in q)
|
|
12005
12009
|
return q.value;
|
|
@@ -12019,13 +12023,13 @@ var il = { exports: {} };
|
|
|
12019
12023
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
12020
12024
|
return k && (typeof k == "object" || typeof k == "function") ? k : O;
|
|
12021
12025
|
}
|
|
12022
|
-
function
|
|
12026
|
+
function S(O, k) {
|
|
12023
12027
|
if (typeof k != "function" && k !== null)
|
|
12024
12028
|
throw new TypeError("Super expression must either be null or a function, not " + typeof k);
|
|
12025
12029
|
O.prototype = Object.create(k && k.prototype, { constructor: { value: O, enumerable: !1, writable: !0, configurable: !0 } }), k && (Object.setPrototypeOf ? Object.setPrototypeOf(O, k) : O.__proto__ = k);
|
|
12026
12030
|
}
|
|
12027
12031
|
var E = 1, x = function(O) {
|
|
12028
|
-
|
|
12032
|
+
S(k, O);
|
|
12029
12033
|
function k() {
|
|
12030
12034
|
return v(this, k), w(this, (k.__proto__ || Object.getPrototypeOf(k)).apply(this, arguments));
|
|
12031
12035
|
}
|
|
@@ -12064,10 +12068,10 @@ var il = { exports: {} };
|
|
|
12064
12068
|
}(s.default.Embed);
|
|
12065
12069
|
x.scope = s.default.Scope.BLOCK_BLOT;
|
|
12066
12070
|
var D = function(O) {
|
|
12067
|
-
|
|
12068
|
-
function k(
|
|
12071
|
+
S(k, O);
|
|
12072
|
+
function k(T) {
|
|
12069
12073
|
v(this, k);
|
|
12070
|
-
var R = w(this, (k.__proto__ || Object.getPrototypeOf(k)).call(this,
|
|
12074
|
+
var R = w(this, (k.__proto__ || Object.getPrototypeOf(k)).call(this, T));
|
|
12071
12075
|
return R.cache = {}, R;
|
|
12072
12076
|
}
|
|
12073
12077
|
return i(k, [{
|
|
@@ -12202,7 +12206,7 @@ var il = { exports: {} };
|
|
|
12202
12206
|
};
|
|
12203
12207
|
}();
|
|
12204
12208
|
o(50);
|
|
12205
|
-
var d = o(2), u = C(d), h = o(14), c = C(h), s = o(8), f = C(s), y = o(9), p = C(y), b = o(0), m = C(b), g = o(15), $ = C(g), v = o(3), w = C(v),
|
|
12209
|
+
var d = o(2), u = C(d), h = o(14), c = C(h), s = o(8), f = C(s), y = o(9), p = C(y), b = o(0), m = C(b), g = o(15), $ = C(g), v = o(3), w = C(v), S = o(10), E = C(S), x = o(34), D = C(x);
|
|
12206
12210
|
function C(z) {
|
|
12207
12211
|
return z && z.__esModule ? z : { default: z };
|
|
12208
12212
|
}
|
|
@@ -12213,7 +12217,7 @@ var il = { exports: {} };
|
|
|
12213
12217
|
if (!(z instanceof j))
|
|
12214
12218
|
throw new TypeError("Cannot call a class as a function");
|
|
12215
12219
|
}
|
|
12216
|
-
var
|
|
12220
|
+
var T = (0, E.default)("quill"), R = function() {
|
|
12217
12221
|
l(z, null, [{
|
|
12218
12222
|
key: "debug",
|
|
12219
12223
|
value: function(N) {
|
|
@@ -12227,7 +12231,7 @@ var il = { exports: {} };
|
|
|
12227
12231
|
}, {
|
|
12228
12232
|
key: "import",
|
|
12229
12233
|
value: function(N) {
|
|
12230
|
-
return this.imports[N] == null &&
|
|
12234
|
+
return this.imports[N] == null && T.error("Cannot import " + N + ". Are you sure it was registered?"), this.imports[N];
|
|
12231
12235
|
}
|
|
12232
12236
|
}, {
|
|
12233
12237
|
key: "register",
|
|
@@ -12239,13 +12243,13 @@ var il = { exports: {} };
|
|
|
12239
12243
|
I.register(L, N[L], A);
|
|
12240
12244
|
});
|
|
12241
12245
|
} else
|
|
12242
|
-
this.imports[N] != null && !U &&
|
|
12246
|
+
this.imports[N] != null && !U && T.warn("Overwriting " + N + " with", A), this.imports[N] = A, (N.startsWith("blots/") || N.startsWith("formats/")) && A.blotName !== "abstract" ? m.default.register(A) : N.startsWith("modules") && typeof A.register == "function" && A.register();
|
|
12243
12247
|
}
|
|
12244
12248
|
}]);
|
|
12245
12249
|
function z(j) {
|
|
12246
12250
|
var N = this, A = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
12247
12251
|
if (k(this, z), this.options = q(j, A), this.container = this.options.container, this.container == null)
|
|
12248
|
-
return
|
|
12252
|
+
return T.error("Invalid Quill container", j);
|
|
12249
12253
|
this.options.debug && z.debug(this.options.debug);
|
|
12250
12254
|
var I = this.container.innerHTML.trim();
|
|
12251
12255
|
this.container.classList.add("ql-container"), this.container.innerHTML = "", this.container.__quill = this, this.root = this.addContainer("ql-editor"), this.root.classList.add("ql-blank"), this.root.setAttribute("data-gramm", !1), this.scrollingContainer = this.options.scrollingContainer || this.root, this.emitter = new f.default(), this.scroll = m.default.create(this.root, {
|
|
@@ -12545,7 +12549,7 @@ var il = { exports: {} };
|
|
|
12545
12549
|
});
|
|
12546
12550
|
var A = Object.keys(N.modules).concat(Object.keys(j.modules)), I = A.reduce(function(U, F) {
|
|
12547
12551
|
var L = R.import("modules/" + F);
|
|
12548
|
-
return L == null ?
|
|
12552
|
+
return L == null ? T.error("Cannot load " + F + " module. Are you sure you registered it?") : U[F] = L.DEFAULTS || {}, U;
|
|
12549
12553
|
}, {});
|
|
12550
12554
|
return j.modules != null && j.modules.toolbar && j.modules.toolbar.constructor !== Object && (j.modules.toolbar = {
|
|
12551
12555
|
container: j.modules.toolbar
|
|
@@ -12616,8 +12620,8 @@ var il = { exports: {} };
|
|
|
12616
12620
|
} else {
|
|
12617
12621
|
if ("value" in v)
|
|
12618
12622
|
return v.value;
|
|
12619
|
-
var
|
|
12620
|
-
return
|
|
12623
|
+
var S = v.get;
|
|
12624
|
+
return S === void 0 ? void 0 : S.call($);
|
|
12621
12625
|
}
|
|
12622
12626
|
}, l = o(7), d = c(l), u = o(0), h = c(u);
|
|
12623
12627
|
function c(b) {
|
|
@@ -12644,12 +12648,12 @@ var il = { exports: {} };
|
|
|
12644
12648
|
}
|
|
12645
12649
|
return i(m, [{
|
|
12646
12650
|
key: "formatAt",
|
|
12647
|
-
value: function($, v, w,
|
|
12651
|
+
value: function($, v, w, S) {
|
|
12648
12652
|
if (m.compare(this.statics.blotName, w) < 0 && h.default.query(w, h.default.Scope.BLOT)) {
|
|
12649
12653
|
var E = this.isolate($, v);
|
|
12650
|
-
|
|
12654
|
+
S && E.wrap(w, S);
|
|
12651
12655
|
} else
|
|
12652
|
-
a(m.prototype.__proto__ || Object.getPrototypeOf(m.prototype), "formatAt", this).call(this, $, v, w,
|
|
12656
|
+
a(m.prototype.__proto__ || Object.getPrototypeOf(m.prototype), "formatAt", this).call(this, $, v, w, S);
|
|
12653
12657
|
}
|
|
12654
12658
|
}, {
|
|
12655
12659
|
key: "optimize",
|
|
@@ -12662,8 +12666,8 @@ var il = { exports: {} };
|
|
|
12662
12666
|
}], [{
|
|
12663
12667
|
key: "compare",
|
|
12664
12668
|
value: function($, v) {
|
|
12665
|
-
var w = m.order.indexOf($),
|
|
12666
|
-
return w >= 0 ||
|
|
12669
|
+
var w = m.order.indexOf($), S = m.order.indexOf(v);
|
|
12670
|
+
return w >= 0 || S >= 0 ? w - S : $ === v ? 0 : $ < v ? -1 : 1;
|
|
12667
12671
|
}
|
|
12668
12672
|
}]), m;
|
|
12669
12673
|
}(h.default.Inline);
|
|
@@ -12723,8 +12727,8 @@ var il = { exports: {} };
|
|
|
12723
12727
|
var i = function() {
|
|
12724
12728
|
function g($, v) {
|
|
12725
12729
|
for (var w = 0; w < v.length; w++) {
|
|
12726
|
-
var
|
|
12727
|
-
|
|
12730
|
+
var S = v[w];
|
|
12731
|
+
S.enumerable = S.enumerable || !1, S.configurable = !0, "value" in S && (S.writable = !0), Object.defineProperty($, S.key, S);
|
|
12728
12732
|
}
|
|
12729
12733
|
}
|
|
12730
12734
|
return function($, v, w) {
|
|
@@ -12732,14 +12736,14 @@ var il = { exports: {} };
|
|
|
12732
12736
|
};
|
|
12733
12737
|
}(), a = function g($, v, w) {
|
|
12734
12738
|
$ === null && ($ = Function.prototype);
|
|
12735
|
-
var
|
|
12736
|
-
if (
|
|
12739
|
+
var S = Object.getOwnPropertyDescriptor($, v);
|
|
12740
|
+
if (S === void 0) {
|
|
12737
12741
|
var E = Object.getPrototypeOf($);
|
|
12738
12742
|
return E === null ? void 0 : g(E, v, w);
|
|
12739
12743
|
} else {
|
|
12740
|
-
if ("value" in
|
|
12741
|
-
return
|
|
12742
|
-
var x =
|
|
12744
|
+
if ("value" in S)
|
|
12745
|
+
return S.value;
|
|
12746
|
+
var x = S.get;
|
|
12743
12747
|
return x === void 0 ? void 0 : x.call(w);
|
|
12744
12748
|
}
|
|
12745
12749
|
}, l = o(54), d = c(l), u = o(10), h = c(u);
|
|
@@ -12765,10 +12769,10 @@ var il = { exports: {} };
|
|
|
12765
12769
|
document.addEventListener(g, function() {
|
|
12766
12770
|
for (var $ = arguments.length, v = Array($), w = 0; w < $; w++)
|
|
12767
12771
|
v[w] = arguments[w];
|
|
12768
|
-
[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(
|
|
12769
|
-
if (
|
|
12772
|
+
[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(S) {
|
|
12773
|
+
if (S.__quill && S.__quill.emitter) {
|
|
12770
12774
|
var E;
|
|
12771
|
-
(E =
|
|
12775
|
+
(E = S.__quill.emitter).handleDOM.apply(E, v);
|
|
12772
12776
|
}
|
|
12773
12777
|
});
|
|
12774
12778
|
});
|
|
@@ -12788,7 +12792,7 @@ var il = { exports: {} };
|
|
|
12788
12792
|
}, {
|
|
12789
12793
|
key: "handleDOM",
|
|
12790
12794
|
value: function(w) {
|
|
12791
|
-
for (var
|
|
12795
|
+
for (var S = arguments.length, E = Array(S > 1 ? S - 1 : 0), x = 1; x < S; x++)
|
|
12792
12796
|
E[x - 1] = arguments[x];
|
|
12793
12797
|
(this.listeners[w.type] || []).forEach(function(D) {
|
|
12794
12798
|
var C = D.node, O = D.handler;
|
|
@@ -12797,8 +12801,8 @@ var il = { exports: {} };
|
|
|
12797
12801
|
}
|
|
12798
12802
|
}, {
|
|
12799
12803
|
key: "listenDOM",
|
|
12800
|
-
value: function(w,
|
|
12801
|
-
this.listeners[w] || (this.listeners[w] = []), this.listeners[w].push({ node:
|
|
12804
|
+
value: function(w, S, E) {
|
|
12805
|
+
this.listeners[w] || (this.listeners[w] = []), this.listeners[w].push({ node: S, handler: E });
|
|
12802
12806
|
}
|
|
12803
12807
|
}]), $;
|
|
12804
12808
|
}(d.default);
|
|
@@ -12935,17 +12939,17 @@ var il = { exports: {} };
|
|
|
12935
12939
|
}), r.default = r.Code = void 0;
|
|
12936
12940
|
var i = function() {
|
|
12937
12941
|
function x(D, C) {
|
|
12938
|
-
var O = [], k = !0,
|
|
12942
|
+
var O = [], k = !0, T = !1, R = void 0;
|
|
12939
12943
|
try {
|
|
12940
12944
|
for (var q = D[Symbol.iterator](), W; !(k = (W = q.next()).done) && (O.push(W.value), !(C && O.length === C)); k = !0)
|
|
12941
12945
|
;
|
|
12942
12946
|
} catch (Y) {
|
|
12943
|
-
|
|
12947
|
+
T = !0, R = Y;
|
|
12944
12948
|
} finally {
|
|
12945
12949
|
try {
|
|
12946
12950
|
!k && q.return && q.return();
|
|
12947
12951
|
} finally {
|
|
12948
|
-
if (
|
|
12952
|
+
if (T)
|
|
12949
12953
|
throw R;
|
|
12950
12954
|
}
|
|
12951
12955
|
}
|
|
@@ -12972,8 +12976,8 @@ var il = { exports: {} };
|
|
|
12972
12976
|
D === null && (D = Function.prototype);
|
|
12973
12977
|
var k = Object.getOwnPropertyDescriptor(D, C);
|
|
12974
12978
|
if (k === void 0) {
|
|
12975
|
-
var
|
|
12976
|
-
return
|
|
12979
|
+
var T = Object.getPrototypeOf(D);
|
|
12980
|
+
return T === null ? void 0 : x(T, C, O);
|
|
12977
12981
|
} else {
|
|
12978
12982
|
if ("value" in k)
|
|
12979
12983
|
return k.value;
|
|
@@ -12998,14 +13002,14 @@ var il = { exports: {} };
|
|
|
12998
13002
|
throw new TypeError("Super expression must either be null or a function, not " + typeof D);
|
|
12999
13003
|
x.prototype = Object.create(D && D.prototype, { constructor: { value: x, enumerable: !1, writable: !0, configurable: !0 } }), D && (Object.setPrototypeOf ? Object.setPrototypeOf(x, D) : x.__proto__ = D);
|
|
13000
13004
|
}
|
|
13001
|
-
var
|
|
13005
|
+
var S = function(x) {
|
|
13002
13006
|
w(D, x);
|
|
13003
13007
|
function D() {
|
|
13004
13008
|
return $(this, D), v(this, (D.__proto__ || Object.getPrototypeOf(D)).apply(this, arguments));
|
|
13005
13009
|
}
|
|
13006
13010
|
return D;
|
|
13007
13011
|
}(p.default);
|
|
13008
|
-
|
|
13012
|
+
S.blotName = "code", S.tagName = "CODE";
|
|
13009
13013
|
var E = function(x) {
|
|
13010
13014
|
w(D, x);
|
|
13011
13015
|
function D() {
|
|
@@ -13017,8 +13021,8 @@ var il = { exports: {} };
|
|
|
13017
13021
|
var O = this, k = this.domNode.textContent;
|
|
13018
13022
|
return k.endsWith(`
|
|
13019
13023
|
`) && (k = k.slice(0, -1)), k.split(`
|
|
13020
|
-
`).reduce(function(
|
|
13021
|
-
return
|
|
13024
|
+
`).reduce(function(T, R) {
|
|
13025
|
+
return T.insert(R).insert(`
|
|
13022
13026
|
`, O.formats());
|
|
13023
13027
|
}, new u.default());
|
|
13024
13028
|
}
|
|
@@ -13026,25 +13030,25 @@ var il = { exports: {} };
|
|
|
13026
13030
|
key: "format",
|
|
13027
13031
|
value: function(O, k) {
|
|
13028
13032
|
if (!(O === this.statics.blotName && k)) {
|
|
13029
|
-
var
|
|
13033
|
+
var T = this.descendant(m.default, this.length() - 1), R = i(T, 1), q = R[0];
|
|
13030
13034
|
q != null && q.deleteAt(q.length() - 1, 1), l(D.prototype.__proto__ || Object.getPrototypeOf(D.prototype), "format", this).call(this, O, k);
|
|
13031
13035
|
}
|
|
13032
13036
|
}
|
|
13033
13037
|
}, {
|
|
13034
13038
|
key: "formatAt",
|
|
13035
|
-
value: function(O, k,
|
|
13036
|
-
if (k !== 0 && !(c.default.query(
|
|
13039
|
+
value: function(O, k, T, R) {
|
|
13040
|
+
if (k !== 0 && !(c.default.query(T, c.default.Scope.BLOCK) == null || T === this.statics.blotName && R === this.statics.formats(this.domNode))) {
|
|
13037
13041
|
var q = this.newlineIndex(O);
|
|
13038
13042
|
if (!(q < 0 || q >= O + k)) {
|
|
13039
13043
|
var W = this.newlineIndex(O, !0) + 1, Y = q - W + 1, re = this.isolate(W, Y), z = re.next;
|
|
13040
|
-
re.format(
|
|
13044
|
+
re.format(T, R), z instanceof D && z.formatAt(0, O - W + k - Y, T, R);
|
|
13041
13045
|
}
|
|
13042
13046
|
}
|
|
13043
13047
|
}
|
|
13044
13048
|
}, {
|
|
13045
13049
|
key: "insertAt",
|
|
13046
|
-
value: function(O, k,
|
|
13047
|
-
if (
|
|
13050
|
+
value: function(O, k, T) {
|
|
13051
|
+
if (T == null) {
|
|
13048
13052
|
var R = this.descendant(m.default, O), q = i(R, 2), W = q[0], Y = q[1];
|
|
13049
13053
|
W.insertAt(Y, k);
|
|
13050
13054
|
}
|
|
@@ -13063,9 +13067,9 @@ var il = { exports: {} };
|
|
|
13063
13067
|
if (k)
|
|
13064
13068
|
return this.domNode.textContent.slice(0, O).lastIndexOf(`
|
|
13065
13069
|
`);
|
|
13066
|
-
var
|
|
13070
|
+
var T = this.domNode.textContent.slice(O).indexOf(`
|
|
13067
13071
|
`);
|
|
13068
|
-
return
|
|
13072
|
+
return T > -1 ? O + T : -1;
|
|
13069
13073
|
}
|
|
13070
13074
|
}, {
|
|
13071
13075
|
key: "optimize",
|
|
@@ -13080,8 +13084,8 @@ var il = { exports: {} };
|
|
|
13080
13084
|
key: "replace",
|
|
13081
13085
|
value: function(O) {
|
|
13082
13086
|
l(D.prototype.__proto__ || Object.getPrototypeOf(D.prototype), "replace", this).call(this, O), [].slice.call(this.domNode.querySelectorAll("*")).forEach(function(k) {
|
|
13083
|
-
var
|
|
13084
|
-
|
|
13087
|
+
var T = c.default.find(k);
|
|
13088
|
+
T == null ? k.parentNode.removeChild(k) : T instanceof c.default.Embed ? T.remove() : T.unwrap();
|
|
13085
13089
|
});
|
|
13086
13090
|
}
|
|
13087
13091
|
}], [{
|
|
@@ -13097,7 +13101,7 @@ var il = { exports: {} };
|
|
|
13097
13101
|
}
|
|
13098
13102
|
}]), D;
|
|
13099
13103
|
}(f.default);
|
|
13100
|
-
E.blotName = "code-block", E.tagName = "PRE", E.TAB = " ", r.Code =
|
|
13104
|
+
E.blotName = "code-block", E.tagName = "PRE", E.TAB = " ", r.Code = S, r.default = E;
|
|
13101
13105
|
},
|
|
13102
13106
|
/* 14 */
|
|
13103
13107
|
/***/
|
|
@@ -13144,11 +13148,11 @@ var il = { exports: {} };
|
|
|
13144
13148
|
return function(j, N, A) {
|
|
13145
13149
|
return N && z(j.prototype, N), A && z(j, A), j;
|
|
13146
13150
|
};
|
|
13147
|
-
}(), d = o(2), u = k(d), h = o(20), c = k(h), s = o(0), f = k(s), y = o(13), p = k(y), b = o(24), m = k(b), g = o(4), $ = k(g), v = o(16), w = k(v),
|
|
13151
|
+
}(), d = o(2), u = k(d), h = o(20), c = k(h), s = o(0), f = k(s), y = o(13), p = k(y), b = o(24), m = k(b), g = o(4), $ = k(g), v = o(16), w = k(v), S = o(21), E = k(S), x = o(11), D = k(x), C = o(3), O = k(C);
|
|
13148
13152
|
function k(z) {
|
|
13149
13153
|
return z && z.__esModule ? z : { default: z };
|
|
13150
13154
|
}
|
|
13151
|
-
function
|
|
13155
|
+
function T(z, j, N) {
|
|
13152
13156
|
return j in z ? Object.defineProperty(z, j, { value: N, enumerable: !0, configurable: !0, writable: !0 }) : z[j] = N, z;
|
|
13153
13157
|
}
|
|
13154
13158
|
function R(z, j) {
|
|
@@ -13272,7 +13276,7 @@ var il = { exports: {} };
|
|
|
13272
13276
|
}, {
|
|
13273
13277
|
key: "insertEmbed",
|
|
13274
13278
|
value: function(N, A, I) {
|
|
13275
|
-
return this.scroll.insertAt(N, A, I), this.update(new u.default().retain(N).insert(
|
|
13279
|
+
return this.scroll.insertAt(N, A, I), this.update(new u.default().retain(N).insert(T({}, A, I)));
|
|
13276
13280
|
}
|
|
13277
13281
|
}, {
|
|
13278
13282
|
key: "insertText",
|
|
@@ -13348,17 +13352,17 @@ var il = { exports: {} };
|
|
|
13348
13352
|
}), r.default = r.Range = void 0;
|
|
13349
13353
|
var i = function() {
|
|
13350
13354
|
function x(D, C) {
|
|
13351
|
-
var O = [], k = !0,
|
|
13355
|
+
var O = [], k = !0, T = !1, R = void 0;
|
|
13352
13356
|
try {
|
|
13353
13357
|
for (var q = D[Symbol.iterator](), W; !(k = (W = q.next()).done) && (O.push(W.value), !(C && O.length === C)); k = !0)
|
|
13354
13358
|
;
|
|
13355
13359
|
} catch (Y) {
|
|
13356
|
-
|
|
13360
|
+
T = !0, R = Y;
|
|
13357
13361
|
} finally {
|
|
13358
13362
|
try {
|
|
13359
13363
|
!k && q.return && q.return();
|
|
13360
13364
|
} finally {
|
|
13361
|
-
if (
|
|
13365
|
+
if (T)
|
|
13362
13366
|
throw R;
|
|
13363
13367
|
}
|
|
13364
13368
|
}
|
|
@@ -13400,13 +13404,13 @@ var il = { exports: {} };
|
|
|
13400
13404
|
var v = (0, b.default)("quill:selection"), w = function x(D) {
|
|
13401
13405
|
var C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
13402
13406
|
$(this, x), this.index = D, this.length = C;
|
|
13403
|
-
},
|
|
13407
|
+
}, S = function() {
|
|
13404
13408
|
function x(D, C) {
|
|
13405
13409
|
var O = this;
|
|
13406
13410
|
$(this, x), this.emitter = C, this.scroll = D, this.composing = !1, this.mouseDown = !1, this.root = this.scroll.domNode, this.cursor = d.default.create("cursor", this), this.lastRange = this.savedRange = new w(0, 0), this.handleComposition(), this.handleDragging(), this.emitter.listenDOM("selectionchange", document, function() {
|
|
13407
13411
|
O.mouseDown || setTimeout(O.update.bind(O, y.default.sources.USER), 1);
|
|
13408
|
-
}), this.emitter.on(y.default.events.EDITOR_CHANGE, function(k,
|
|
13409
|
-
k === y.default.events.TEXT_CHANGE &&
|
|
13412
|
+
}), this.emitter.on(y.default.events.EDITOR_CHANGE, function(k, T) {
|
|
13413
|
+
k === y.default.events.TEXT_CHANGE && T.length() > 0 && O.update(y.default.sources.SILENT);
|
|
13410
13414
|
}), this.emitter.on(y.default.events.SCROLL_BEFORE_UPDATE, function() {
|
|
13411
13415
|
if (O.hasFocus()) {
|
|
13412
13416
|
var k = O.getNativeRange();
|
|
@@ -13417,9 +13421,9 @@ var il = { exports: {} };
|
|
|
13417
13421
|
}
|
|
13418
13422
|
});
|
|
13419
13423
|
}
|
|
13420
|
-
}), this.emitter.on(y.default.events.SCROLL_OPTIMIZE, function(k,
|
|
13421
|
-
if (
|
|
13422
|
-
var R =
|
|
13424
|
+
}), this.emitter.on(y.default.events.SCROLL_OPTIMIZE, function(k, T) {
|
|
13425
|
+
if (T.range) {
|
|
13426
|
+
var R = T.range, q = R.startNode, W = R.startOffset, Y = R.endNode, re = R.endOffset;
|
|
13423
13427
|
O.setNativeRange(q, W, Y, re);
|
|
13424
13428
|
}
|
|
13425
13429
|
}), this.update(y.default.sources.SILENT);
|
|
@@ -13464,14 +13468,14 @@ var il = { exports: {} };
|
|
|
13464
13468
|
var k = this.getNativeRange();
|
|
13465
13469
|
if (!(k == null || !k.native.collapsed || d.default.query(C, d.default.Scope.BLOCK))) {
|
|
13466
13470
|
if (k.start.node !== this.cursor.textNode) {
|
|
13467
|
-
var
|
|
13468
|
-
if (
|
|
13471
|
+
var T = d.default.find(k.start.node, !1);
|
|
13472
|
+
if (T == null)
|
|
13469
13473
|
return;
|
|
13470
|
-
if (
|
|
13471
|
-
var R =
|
|
13472
|
-
|
|
13474
|
+
if (T instanceof d.default.Leaf) {
|
|
13475
|
+
var R = T.split(k.start.offset);
|
|
13476
|
+
T.parent.insertBefore(this.cursor, R);
|
|
13473
13477
|
} else
|
|
13474
|
-
|
|
13478
|
+
T.insertBefore(this.cursor, k.start.node);
|
|
13475
13479
|
this.cursor.attach();
|
|
13476
13480
|
}
|
|
13477
13481
|
this.cursor.format(C, O), this.scroll.optimize(), this.setNativeRange(this.cursor.textNode, this.cursor.textNode.data.length), this.update();
|
|
@@ -13483,22 +13487,22 @@ var il = { exports: {} };
|
|
|
13483
13487
|
value: function(C) {
|
|
13484
13488
|
var O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, k = this.scroll.length();
|
|
13485
13489
|
C = Math.min(C, k - 1), O = Math.min(C + O, k - 1) - C;
|
|
13486
|
-
var
|
|
13490
|
+
var T = void 0, R = this.scroll.leaf(C), q = i(R, 2), W = q[0], Y = q[1];
|
|
13487
13491
|
if (W == null)
|
|
13488
13492
|
return null;
|
|
13489
13493
|
var re = W.position(Y, !0), z = i(re, 2);
|
|
13490
|
-
|
|
13494
|
+
T = z[0], Y = z[1];
|
|
13491
13495
|
var j = document.createRange();
|
|
13492
13496
|
if (O > 0) {
|
|
13493
|
-
j.setStart(
|
|
13497
|
+
j.setStart(T, Y);
|
|
13494
13498
|
var N = this.scroll.leaf(C + O), A = i(N, 2);
|
|
13495
13499
|
if (W = A[0], Y = A[1], W == null)
|
|
13496
13500
|
return null;
|
|
13497
13501
|
var I = W.position(Y, !0), U = i(I, 2);
|
|
13498
|
-
return
|
|
13502
|
+
return T = U[0], Y = U[1], j.setEnd(T, Y), j.getBoundingClientRect();
|
|
13499
13503
|
} else {
|
|
13500
13504
|
var F = "left", L = void 0;
|
|
13501
|
-
return
|
|
13505
|
+
return T instanceof Text ? (Y < T.data.length ? (j.setStart(T, Y), j.setEnd(T, Y + 1)) : (j.setStart(T, Y - 1), j.setEnd(T, Y), F = "right"), L = j.getBoundingClientRect()) : (L = W.domNode.getBoundingClientRect(), Y > 0 && (F = "right")), {
|
|
13502
13506
|
bottom: L.top + L.height,
|
|
13503
13507
|
height: L.height,
|
|
13504
13508
|
left: L[F],
|
|
@@ -13539,10 +13543,10 @@ var il = { exports: {} };
|
|
|
13539
13543
|
value: function(C) {
|
|
13540
13544
|
var O = this, k = [[C.start.node, C.start.offset]];
|
|
13541
13545
|
C.native.collapsed || k.push([C.end.node, C.end.offset]);
|
|
13542
|
-
var
|
|
13546
|
+
var T = k.map(function(W) {
|
|
13543
13547
|
var Y = i(W, 2), re = Y[0], z = Y[1], j = d.default.find(re, !0), N = j.offset(O.scroll);
|
|
13544
13548
|
return z === 0 ? N : j instanceof d.default.Container ? N + j.length() : N + j.index(re, z);
|
|
13545
|
-
}), R = Math.min(Math.max.apply(Math, g(
|
|
13549
|
+
}), R = Math.min(Math.max.apply(Math, g(T)), this.scroll.length() - 1), q = Math.min.apply(Math, [R].concat(g(T)));
|
|
13546
13550
|
return new w(q, R - q);
|
|
13547
13551
|
}
|
|
13548
13552
|
}, {
|
|
@@ -13556,25 +13560,25 @@ var il = { exports: {} };
|
|
|
13556
13560
|
native: C
|
|
13557
13561
|
};
|
|
13558
13562
|
return [O.start, O.end].forEach(function(k) {
|
|
13559
|
-
for (var
|
|
13560
|
-
if (
|
|
13561
|
-
|
|
13562
|
-
else if (
|
|
13563
|
-
|
|
13563
|
+
for (var T = k.node, R = k.offset; !(T instanceof Text) && T.childNodes.length > 0; )
|
|
13564
|
+
if (T.childNodes.length > R)
|
|
13565
|
+
T = T.childNodes[R], R = 0;
|
|
13566
|
+
else if (T.childNodes.length === R)
|
|
13567
|
+
T = T.lastChild, R = T instanceof Text ? T.data.length : T.childNodes.length + 1;
|
|
13564
13568
|
else
|
|
13565
13569
|
break;
|
|
13566
|
-
k.node =
|
|
13570
|
+
k.node = T, k.offset = R;
|
|
13567
13571
|
}), O;
|
|
13568
13572
|
}
|
|
13569
13573
|
}, {
|
|
13570
13574
|
key: "rangeToNative",
|
|
13571
13575
|
value: function(C) {
|
|
13572
|
-
var O = this, k = C.collapsed ? [C.index] : [C.index, C.index + C.length],
|
|
13576
|
+
var O = this, k = C.collapsed ? [C.index] : [C.index, C.index + C.length], T = [], R = this.scroll.length();
|
|
13573
13577
|
return k.forEach(function(q, W) {
|
|
13574
13578
|
q = Math.min(R - 1, q);
|
|
13575
13579
|
var Y = void 0, re = O.scroll.leaf(q), z = i(re, 2), j = z[0], N = z[1], A = j.position(N, W !== 0), I = i(A, 2);
|
|
13576
|
-
Y = I[0], N = I[1],
|
|
13577
|
-
}),
|
|
13580
|
+
Y = I[0], N = I[1], T.push(Y, N);
|
|
13581
|
+
}), T.length < 2 && (T = T.concat(T)), T;
|
|
13578
13582
|
}
|
|
13579
13583
|
}, {
|
|
13580
13584
|
key: "scrollIntoView",
|
|
@@ -13583,9 +13587,9 @@ var il = { exports: {} };
|
|
|
13583
13587
|
if (O != null) {
|
|
13584
13588
|
var k = this.getBounds(O.index, O.length);
|
|
13585
13589
|
if (k != null) {
|
|
13586
|
-
var
|
|
13590
|
+
var T = this.scroll.length() - 1, R = this.scroll.line(Math.min(O.index, T)), q = i(R, 1), W = q[0], Y = W;
|
|
13587
13591
|
if (O.length > 0) {
|
|
13588
|
-
var re = this.scroll.line(Math.min(O.index + O.length,
|
|
13592
|
+
var re = this.scroll.line(Math.min(O.index + O.length, T)), z = i(re, 1);
|
|
13589
13593
|
Y = z[0];
|
|
13590
13594
|
}
|
|
13591
13595
|
if (!(W == null || Y == null)) {
|
|
@@ -13598,17 +13602,17 @@ var il = { exports: {} };
|
|
|
13598
13602
|
}, {
|
|
13599
13603
|
key: "setNativeRange",
|
|
13600
13604
|
value: function(C, O) {
|
|
13601
|
-
var k = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : C,
|
|
13602
|
-
if (v.info("setNativeRange", C, O, k,
|
|
13605
|
+
var k = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : C, T = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : O, R = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
|
|
13606
|
+
if (v.info("setNativeRange", C, O, k, T), !(C != null && (this.root.parentNode == null || C.parentNode == null || k.parentNode == null))) {
|
|
13603
13607
|
var q = document.getSelection();
|
|
13604
13608
|
if (q != null)
|
|
13605
13609
|
if (C != null) {
|
|
13606
13610
|
this.hasFocus() || this.root.focus();
|
|
13607
13611
|
var W = (this.getNativeRange() || {}).native;
|
|
13608
|
-
if (W == null || R || C !== W.startContainer || O !== W.startOffset || k !== W.endContainer ||
|
|
13609
|
-
C.tagName == "BR" && (O = [].indexOf.call(C.parentNode.childNodes, C), C = C.parentNode), k.tagName == "BR" && (
|
|
13612
|
+
if (W == null || R || C !== W.startContainer || O !== W.startOffset || k !== W.endContainer || T !== W.endOffset) {
|
|
13613
|
+
C.tagName == "BR" && (O = [].indexOf.call(C.parentNode.childNodes, C), C = C.parentNode), k.tagName == "BR" && (T = [].indexOf.call(k.parentNode.childNodes, k), k = k.parentNode);
|
|
13610
13614
|
var Y = document.createRange();
|
|
13611
|
-
Y.setStart(C, O), Y.setEnd(k,
|
|
13615
|
+
Y.setStart(C, O), Y.setEnd(k, T), q.removeAllRanges(), q.addRange(Y);
|
|
13612
13616
|
}
|
|
13613
13617
|
} else
|
|
13614
13618
|
q.removeAllRanges(), this.root.blur(), document.body.focus();
|
|
@@ -13619,8 +13623,8 @@ var il = { exports: {} };
|
|
|
13619
13623
|
value: function(C) {
|
|
13620
13624
|
var O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, k = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : y.default.sources.API;
|
|
13621
13625
|
if (typeof O == "string" && (k = O, O = !1), v.info("setRange", C), C != null) {
|
|
13622
|
-
var
|
|
13623
|
-
this.setNativeRange.apply(this, g(
|
|
13626
|
+
var T = this.rangeToNative(C);
|
|
13627
|
+
this.setNativeRange.apply(this, g(T).concat([O]));
|
|
13624
13628
|
} else
|
|
13625
13629
|
this.setNativeRange(null);
|
|
13626
13630
|
this.update(k);
|
|
@@ -13628,7 +13632,7 @@ var il = { exports: {} };
|
|
|
13628
13632
|
}, {
|
|
13629
13633
|
key: "update",
|
|
13630
13634
|
value: function() {
|
|
13631
|
-
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : y.default.sources.USER, O = this.lastRange, k = this.getRange(),
|
|
13635
|
+
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : y.default.sources.USER, O = this.lastRange, k = this.getRange(), T = i(k, 2), R = T[0], q = T[1];
|
|
13632
13636
|
if (this.lastRange = R, this.lastRange != null && (this.savedRange = this.lastRange), !(0, s.default)(O, this.lastRange)) {
|
|
13633
13637
|
var W;
|
|
13634
13638
|
!this.composing && q != null && q.native.collapsed && q.start.node !== this.cursor.textNode && this.cursor.restore();
|
|
@@ -13649,7 +13653,7 @@ var il = { exports: {} };
|
|
|
13649
13653
|
}
|
|
13650
13654
|
return D instanceof Text && (D = D.parentNode), x.contains(D);
|
|
13651
13655
|
}
|
|
13652
|
-
r.Range = w, r.default =
|
|
13656
|
+
r.Range = w, r.default = S;
|
|
13653
13657
|
},
|
|
13654
13658
|
/* 16 */
|
|
13655
13659
|
/***/
|
|
@@ -14079,7 +14083,7 @@ var il = { exports: {} };
|
|
|
14079
14083
|
}
|
|
14080
14084
|
function u(p, b, m, g, $) {
|
|
14081
14085
|
typeof b == "object" && (m = b.depth, g = b.prototype, $ = b.includeNonEnumerable, b = b.circular);
|
|
14082
|
-
var v = [], w = [],
|
|
14086
|
+
var v = [], w = [], S = typeof Buffer < "u";
|
|
14083
14087
|
typeof b > "u" && (b = !0), typeof m > "u" && (m = 1 / 0);
|
|
14084
14088
|
function E(x, D) {
|
|
14085
14089
|
if (x === null)
|
|
@@ -14108,7 +14112,7 @@ var il = { exports: {} };
|
|
|
14108
14112
|
else if (u.__isDate(x))
|
|
14109
14113
|
C = new Date(x.getTime());
|
|
14110
14114
|
else {
|
|
14111
|
-
if (
|
|
14115
|
+
if (S && Buffer.isBuffer(x))
|
|
14112
14116
|
return Buffer.allocUnsafe ? C = Buffer.allocUnsafe(x.length) : C = new Buffer(x.length), x.copy(C), C;
|
|
14113
14117
|
i(x, Error) ? C = Object.create(x) : typeof g > "u" ? (O = Object.getPrototypeOf(x), C = Object.create(O)) : (C = Object.create(g), O = g);
|
|
14114
14118
|
}
|
|
@@ -14125,20 +14129,20 @@ var il = { exports: {} };
|
|
|
14125
14129
|
var N = E(j, D - 1);
|
|
14126
14130
|
C.add(N);
|
|
14127
14131
|
});
|
|
14128
|
-
for (var
|
|
14132
|
+
for (var T in x) {
|
|
14129
14133
|
var R;
|
|
14130
|
-
O && (R = Object.getOwnPropertyDescriptor(O,
|
|
14134
|
+
O && (R = Object.getOwnPropertyDescriptor(O, T)), !(R && R.set == null) && (C[T] = E(x[T], D - 1));
|
|
14131
14135
|
}
|
|
14132
14136
|
if (Object.getOwnPropertySymbols)
|
|
14133
|
-
for (var q = Object.getOwnPropertySymbols(x),
|
|
14134
|
-
var W = q[
|
|
14137
|
+
for (var q = Object.getOwnPropertySymbols(x), T = 0; T < q.length; T++) {
|
|
14138
|
+
var W = q[T], Y = Object.getOwnPropertyDescriptor(x, W);
|
|
14135
14139
|
Y && !Y.enumerable && !$ || (C[W] = E(x[W], D - 1), Y.enumerable || Object.defineProperty(C, W, {
|
|
14136
14140
|
enumerable: !1
|
|
14137
14141
|
}));
|
|
14138
14142
|
}
|
|
14139
14143
|
if ($)
|
|
14140
|
-
for (var re = Object.getOwnPropertyNames(x),
|
|
14141
|
-
var z = re[
|
|
14144
|
+
for (var re = Object.getOwnPropertyNames(x), T = 0; T < re.length; T++) {
|
|
14145
|
+
var z = re[T], Y = Object.getOwnPropertyDescriptor(x, z);
|
|
14142
14146
|
Y && Y.enumerable || (C[z] = E(x[z], D - 1), Object.defineProperty(C, z, {
|
|
14143
14147
|
enumerable: !1
|
|
14144
14148
|
}));
|
|
@@ -14186,9 +14190,9 @@ var il = { exports: {} };
|
|
|
14186
14190
|
});
|
|
14187
14191
|
var i = function() {
|
|
14188
14192
|
function C(O, k) {
|
|
14189
|
-
var
|
|
14193
|
+
var T = [], R = !0, q = !1, W = void 0;
|
|
14190
14194
|
try {
|
|
14191
|
-
for (var Y = O[Symbol.iterator](), re; !(R = (re = Y.next()).done) && (
|
|
14195
|
+
for (var Y = O[Symbol.iterator](), re; !(R = (re = Y.next()).done) && (T.push(re.value), !(k && T.length === k)); R = !0)
|
|
14192
14196
|
;
|
|
14193
14197
|
} catch (z) {
|
|
14194
14198
|
q = !0, W = z;
|
|
@@ -14200,7 +14204,7 @@ var il = { exports: {} };
|
|
|
14200
14204
|
throw W;
|
|
14201
14205
|
}
|
|
14202
14206
|
}
|
|
14203
|
-
return
|
|
14207
|
+
return T;
|
|
14204
14208
|
}
|
|
14205
14209
|
return function(O, k) {
|
|
14206
14210
|
if (Array.isArray(O))
|
|
@@ -14211,25 +14215,25 @@ var il = { exports: {} };
|
|
|
14211
14215
|
};
|
|
14212
14216
|
}(), a = function() {
|
|
14213
14217
|
function C(O, k) {
|
|
14214
|
-
for (var
|
|
14215
|
-
var R = k[
|
|
14218
|
+
for (var T = 0; T < k.length; T++) {
|
|
14219
|
+
var R = k[T];
|
|
14216
14220
|
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(O, R.key, R);
|
|
14217
14221
|
}
|
|
14218
14222
|
}
|
|
14219
|
-
return function(O, k,
|
|
14220
|
-
return k && C(O.prototype, k),
|
|
14223
|
+
return function(O, k, T) {
|
|
14224
|
+
return k && C(O.prototype, k), T && C(O, T), O;
|
|
14221
14225
|
};
|
|
14222
|
-
}(), l = function C(O, k,
|
|
14226
|
+
}(), l = function C(O, k, T) {
|
|
14223
14227
|
O === null && (O = Function.prototype);
|
|
14224
14228
|
var R = Object.getOwnPropertyDescriptor(O, k);
|
|
14225
14229
|
if (R === void 0) {
|
|
14226
14230
|
var q = Object.getPrototypeOf(O);
|
|
14227
|
-
return q === null ? void 0 : C(q, k,
|
|
14231
|
+
return q === null ? void 0 : C(q, k, T);
|
|
14228
14232
|
} else {
|
|
14229
14233
|
if ("value" in R)
|
|
14230
14234
|
return R.value;
|
|
14231
14235
|
var W = R.get;
|
|
14232
|
-
return W === void 0 ? void 0 : W.call(
|
|
14236
|
+
return W === void 0 ? void 0 : W.call(T);
|
|
14233
14237
|
}
|
|
14234
14238
|
}, d = o(0), u = v(d), h = o(8), c = v(h), s = o(4), f = v(s), y = o(16), p = v(y), b = o(13), m = v(b), g = o(25), $ = v(g);
|
|
14235
14239
|
function v(C) {
|
|
@@ -14239,7 +14243,7 @@ var il = { exports: {} };
|
|
|
14239
14243
|
if (!(C instanceof O))
|
|
14240
14244
|
throw new TypeError("Cannot call a class as a function");
|
|
14241
14245
|
}
|
|
14242
|
-
function
|
|
14246
|
+
function S(C, O) {
|
|
14243
14247
|
if (!C)
|
|
14244
14248
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
14245
14249
|
return O && (typeof O == "object" || typeof O == "function") ? O : C;
|
|
@@ -14254,10 +14258,10 @@ var il = { exports: {} };
|
|
|
14254
14258
|
}
|
|
14255
14259
|
var D = function(C) {
|
|
14256
14260
|
E(O, C);
|
|
14257
|
-
function O(k,
|
|
14261
|
+
function O(k, T) {
|
|
14258
14262
|
w(this, O);
|
|
14259
|
-
var R =
|
|
14260
|
-
return R.emitter =
|
|
14263
|
+
var R = S(this, (O.__proto__ || Object.getPrototypeOf(O)).call(this, k));
|
|
14264
|
+
return R.emitter = T.emitter, Array.isArray(T.whitelist) && (R.whitelist = T.whitelist.reduce(function(q, W) {
|
|
14261
14265
|
return q[W] = !0, q;
|
|
14262
14266
|
}, {})), R.domNode.addEventListener("DOMNodeInserted", function() {
|
|
14263
14267
|
}), R.optimize(), R.enable(), R;
|
|
@@ -14274,9 +14278,9 @@ var il = { exports: {} };
|
|
|
14274
14278
|
}
|
|
14275
14279
|
}, {
|
|
14276
14280
|
key: "deleteAt",
|
|
14277
|
-
value: function(
|
|
14278
|
-
var q = this.line(
|
|
14279
|
-
if (l(O.prototype.__proto__ || Object.getPrototypeOf(O.prototype), "deleteAt", this).call(this,
|
|
14281
|
+
value: function(T, R) {
|
|
14282
|
+
var q = this.line(T), W = i(q, 2), Y = W[0], re = W[1], z = this.line(T + R), j = i(z, 1), N = j[0];
|
|
14283
|
+
if (l(O.prototype.__proto__ || Object.getPrototypeOf(O.prototype), "deleteAt", this).call(this, T, R), N != null && Y !== N && re > 0) {
|
|
14280
14284
|
if (Y instanceof s.BlockEmbed || N instanceof s.BlockEmbed) {
|
|
14281
14285
|
this.optimize();
|
|
14282
14286
|
return;
|
|
@@ -14299,19 +14303,19 @@ var il = { exports: {} };
|
|
|
14299
14303
|
}, {
|
|
14300
14304
|
key: "enable",
|
|
14301
14305
|
value: function() {
|
|
14302
|
-
var
|
|
14303
|
-
this.domNode.setAttribute("contenteditable",
|
|
14306
|
+
var T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
14307
|
+
this.domNode.setAttribute("contenteditable", T);
|
|
14304
14308
|
}
|
|
14305
14309
|
}, {
|
|
14306
14310
|
key: "formatAt",
|
|
14307
|
-
value: function(
|
|
14308
|
-
this.whitelist != null && !this.whitelist[q] || (l(O.prototype.__proto__ || Object.getPrototypeOf(O.prototype), "formatAt", this).call(this,
|
|
14311
|
+
value: function(T, R, q, W) {
|
|
14312
|
+
this.whitelist != null && !this.whitelist[q] || (l(O.prototype.__proto__ || Object.getPrototypeOf(O.prototype), "formatAt", this).call(this, T, R, q, W), this.optimize());
|
|
14309
14313
|
}
|
|
14310
14314
|
}, {
|
|
14311
14315
|
key: "insertAt",
|
|
14312
|
-
value: function(
|
|
14316
|
+
value: function(T, R, q) {
|
|
14313
14317
|
if (!(q != null && this.whitelist != null && !this.whitelist[R])) {
|
|
14314
|
-
if (
|
|
14318
|
+
if (T >= this.length())
|
|
14315
14319
|
if (q == null || u.default.query(R, u.default.Scope.BLOCK) == null) {
|
|
14316
14320
|
var W = u.default.create(this.statics.defaultChild);
|
|
14317
14321
|
this.appendChild(W), q == null && R.endsWith(`
|
|
@@ -14321,57 +14325,57 @@ var il = { exports: {} };
|
|
|
14321
14325
|
this.appendChild(Y);
|
|
14322
14326
|
}
|
|
14323
14327
|
else
|
|
14324
|
-
l(O.prototype.__proto__ || Object.getPrototypeOf(O.prototype), "insertAt", this).call(this,
|
|
14328
|
+
l(O.prototype.__proto__ || Object.getPrototypeOf(O.prototype), "insertAt", this).call(this, T, R, q);
|
|
14325
14329
|
this.optimize();
|
|
14326
14330
|
}
|
|
14327
14331
|
}
|
|
14328
14332
|
}, {
|
|
14329
14333
|
key: "insertBefore",
|
|
14330
|
-
value: function(
|
|
14331
|
-
if (
|
|
14334
|
+
value: function(T, R) {
|
|
14335
|
+
if (T.statics.scope === u.default.Scope.INLINE_BLOT) {
|
|
14332
14336
|
var q = u.default.create(this.statics.defaultChild);
|
|
14333
|
-
q.appendChild(
|
|
14337
|
+
q.appendChild(T), T = q;
|
|
14334
14338
|
}
|
|
14335
|
-
l(O.prototype.__proto__ || Object.getPrototypeOf(O.prototype), "insertBefore", this).call(this,
|
|
14339
|
+
l(O.prototype.__proto__ || Object.getPrototypeOf(O.prototype), "insertBefore", this).call(this, T, R);
|
|
14336
14340
|
}
|
|
14337
14341
|
}, {
|
|
14338
14342
|
key: "leaf",
|
|
14339
|
-
value: function(
|
|
14340
|
-
return this.path(
|
|
14343
|
+
value: function(T) {
|
|
14344
|
+
return this.path(T).pop() || [null, -1];
|
|
14341
14345
|
}
|
|
14342
14346
|
}, {
|
|
14343
14347
|
key: "line",
|
|
14344
|
-
value: function(
|
|
14345
|
-
return
|
|
14348
|
+
value: function(T) {
|
|
14349
|
+
return T === this.length() ? this.line(T - 1) : this.descendant(x, T);
|
|
14346
14350
|
}
|
|
14347
14351
|
}, {
|
|
14348
14352
|
key: "lines",
|
|
14349
14353
|
value: function() {
|
|
14350
|
-
var
|
|
14354
|
+
var T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, R = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, q = function W(Y, re, z) {
|
|
14351
14355
|
var j = [], N = z;
|
|
14352
14356
|
return Y.children.forEachAt(re, z, function(A, I, U) {
|
|
14353
14357
|
x(A) ? j.push(A) : A instanceof u.default.Container && (j = j.concat(W(A, I, N))), N -= U;
|
|
14354
14358
|
}), j;
|
|
14355
14359
|
};
|
|
14356
|
-
return q(this,
|
|
14360
|
+
return q(this, T, R);
|
|
14357
14361
|
}
|
|
14358
14362
|
}, {
|
|
14359
14363
|
key: "optimize",
|
|
14360
14364
|
value: function() {
|
|
14361
|
-
var
|
|
14362
|
-
this.batch !== !0 && (l(O.prototype.__proto__ || Object.getPrototypeOf(O.prototype), "optimize", this).call(this,
|
|
14365
|
+
var T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], R = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
14366
|
+
this.batch !== !0 && (l(O.prototype.__proto__ || Object.getPrototypeOf(O.prototype), "optimize", this).call(this, T, R), T.length > 0 && this.emitter.emit(c.default.events.SCROLL_OPTIMIZE, T, R));
|
|
14363
14367
|
}
|
|
14364
14368
|
}, {
|
|
14365
14369
|
key: "path",
|
|
14366
|
-
value: function(
|
|
14367
|
-
return l(O.prototype.__proto__ || Object.getPrototypeOf(O.prototype), "path", this).call(this,
|
|
14370
|
+
value: function(T) {
|
|
14371
|
+
return l(O.prototype.__proto__ || Object.getPrototypeOf(O.prototype), "path", this).call(this, T).slice(1);
|
|
14368
14372
|
}
|
|
14369
14373
|
}, {
|
|
14370
14374
|
key: "update",
|
|
14371
|
-
value: function(
|
|
14375
|
+
value: function(T) {
|
|
14372
14376
|
if (this.batch !== !0) {
|
|
14373
14377
|
var R = c.default.sources.USER;
|
|
14374
|
-
typeof
|
|
14378
|
+
typeof T == "string" && (R = T), Array.isArray(T) || (T = this.observer.takeRecords()), T.length > 0 && this.emitter.emit(c.default.events.SCROLL_BEFORE_UPDATE, R, T), l(O.prototype.__proto__ || Object.getPrototypeOf(O.prototype), "update", this).call(this, T.concat([])), T.length > 0 && this.emitter.emit(c.default.events.SCROLL_UPDATE, R, T);
|
|
14375
14379
|
}
|
|
14376
14380
|
}
|
|
14377
14381
|
}]), O;
|
|
@@ -14423,7 +14427,7 @@ var il = { exports: {} };
|
|
|
14423
14427
|
return function(V, Z, J) {
|
|
14424
14428
|
return Z && L(V.prototype, Z), J && L(V, J), V;
|
|
14425
14429
|
};
|
|
14426
|
-
}(), d = o(21), u = C(d), h = o(11), c = C(h), s = o(3), f = C(s), y = o(2), p = C(y), b = o(20), m = C(b), g = o(0), $ = C(g), v = o(5), w = C(v),
|
|
14430
|
+
}(), d = o(21), u = C(d), h = o(11), c = C(h), s = o(3), f = C(s), y = o(2), p = C(y), b = o(20), m = C(b), g = o(0), $ = C(g), v = o(5), w = C(v), S = o(10), E = C(S), x = o(9), D = C(x);
|
|
14427
14431
|
function C(L) {
|
|
14428
14432
|
return L && L.__esModule ? L : { default: L };
|
|
14429
14433
|
}
|
|
@@ -14434,7 +14438,7 @@ var il = { exports: {} };
|
|
|
14434
14438
|
if (!(L instanceof V))
|
|
14435
14439
|
throw new TypeError("Cannot call a class as a function");
|
|
14436
14440
|
}
|
|
14437
|
-
function
|
|
14441
|
+
function T(L, V) {
|
|
14438
14442
|
if (!L)
|
|
14439
14443
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
14440
14444
|
return V && (typeof V == "object" || typeof V == "function") ? V : L;
|
|
@@ -14455,7 +14459,7 @@ var il = { exports: {} };
|
|
|
14455
14459
|
}]);
|
|
14456
14460
|
function V(Z, J) {
|
|
14457
14461
|
k(this, V);
|
|
14458
|
-
var ie =
|
|
14462
|
+
var ie = T(this, (V.__proto__ || Object.getPrototypeOf(V)).call(this, Z, J));
|
|
14459
14463
|
return ie.bindings = {}, Object.keys(ie.options.bindings).forEach(function(he) {
|
|
14460
14464
|
he === "list autofill" && Z.scroll.whitelist != null && !Z.scroll.whitelist.list || ie.options.bindings[he] && ie.addBinding(ie.options.bindings[he]);
|
|
14461
14465
|
}), ie.addBinding({ key: V.keys.ENTER, shiftKey: null }, A), ie.addBinding({ key: V.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
|
|
@@ -14481,7 +14485,7 @@ var il = { exports: {} };
|
|
|
14481
14485
|
if (_e.length !== 0) {
|
|
14482
14486
|
var xe = J.quill.getSelection();
|
|
14483
14487
|
if (!(xe == null || !J.quill.hasFocus())) {
|
|
14484
|
-
var Ie = J.quill.getLine(xe.index), De = a(Ie, 2), We = De[0], Ke = De[1], Q = J.quill.getLeaf(xe.index), ne = a(Q, 2), se = ne[0], de = ne[1], oe = xe.length === 0 ? [se, de] : J.quill.getLeaf(xe.index + xe.length), Ae = a(oe, 2), ke = Ae[0],
|
|
14488
|
+
var Ie = J.quill.getLine(xe.index), De = a(Ie, 2), We = De[0], Ke = De[1], Q = J.quill.getLeaf(xe.index), ne = a(Q, 2), se = ne[0], de = ne[1], oe = xe.length === 0 ? [se, de] : J.quill.getLeaf(xe.index + xe.length), Ae = a(oe, 2), ke = Ae[0], Se = Ae[1], it = se instanceof $.default.Text ? se.value().slice(0, de) : "", Je = ke instanceof $.default.Text ? ke.value().slice(Se) : "", Fe = {
|
|
14485
14489
|
collapsed: xe.length === 0,
|
|
14486
14490
|
empty: xe.length === 0 && We.length() <= 1,
|
|
14487
14491
|
format: J.quill.getFormat(xe),
|
|
@@ -14763,17 +14767,17 @@ var il = { exports: {} };
|
|
|
14763
14767
|
});
|
|
14764
14768
|
var i = function() {
|
|
14765
14769
|
function m(g, $) {
|
|
14766
|
-
var v = [], w = !0,
|
|
14770
|
+
var v = [], w = !0, S = !1, E = void 0;
|
|
14767
14771
|
try {
|
|
14768
14772
|
for (var x = g[Symbol.iterator](), D; !(w = (D = x.next()).done) && (v.push(D.value), !($ && v.length === $)); w = !0)
|
|
14769
14773
|
;
|
|
14770
14774
|
} catch (C) {
|
|
14771
|
-
|
|
14775
|
+
S = !0, E = C;
|
|
14772
14776
|
} finally {
|
|
14773
14777
|
try {
|
|
14774
14778
|
!w && x.return && x.return();
|
|
14775
14779
|
} finally {
|
|
14776
|
-
if (
|
|
14780
|
+
if (S)
|
|
14777
14781
|
throw E;
|
|
14778
14782
|
}
|
|
14779
14783
|
}
|
|
@@ -14790,8 +14794,8 @@ var il = { exports: {} };
|
|
|
14790
14794
|
g === null && (g = Function.prototype);
|
|
14791
14795
|
var w = Object.getOwnPropertyDescriptor(g, $);
|
|
14792
14796
|
if (w === void 0) {
|
|
14793
|
-
var
|
|
14794
|
-
return
|
|
14797
|
+
var S = Object.getPrototypeOf(g);
|
|
14798
|
+
return S === null ? void 0 : m(S, $, v);
|
|
14795
14799
|
} else {
|
|
14796
14800
|
if ("value" in w)
|
|
14797
14801
|
return w.value;
|
|
@@ -14847,9 +14851,9 @@ var il = { exports: {} };
|
|
|
14847
14851
|
value: function(v, w) {
|
|
14848
14852
|
if (this._length !== 0)
|
|
14849
14853
|
return a(g.prototype.__proto__ || Object.getPrototypeOf(g.prototype), "format", this).call(this, v, w);
|
|
14850
|
-
for (var
|
|
14851
|
-
E +=
|
|
14852
|
-
|
|
14854
|
+
for (var S = this, E = 0; S != null && S.statics.scope !== u.default.Scope.BLOCK_BLOT; )
|
|
14855
|
+
E += S.offset(S.parent), S = S.parent;
|
|
14856
|
+
S != null && (this._length = g.CONTENTS.length, S.optimize(), S.formatAt(E, g.CONTENTS.length, v, w), this._length = 0);
|
|
14853
14857
|
}
|
|
14854
14858
|
}, {
|
|
14855
14859
|
key: "index",
|
|
@@ -14875,25 +14879,25 @@ var il = { exports: {} };
|
|
|
14875
14879
|
key: "restore",
|
|
14876
14880
|
value: function() {
|
|
14877
14881
|
if (!(this.selection.composing || this.parent == null)) {
|
|
14878
|
-
var v = this.textNode, w = this.selection.getNativeRange(),
|
|
14882
|
+
var v = this.textNode, w = this.selection.getNativeRange(), S = void 0, E = void 0, x = void 0;
|
|
14879
14883
|
if (w != null && w.start.node === v && w.end.node === v) {
|
|
14880
14884
|
var D = [v, w.start.offset, w.end.offset];
|
|
14881
|
-
|
|
14885
|
+
S = D[0], E = D[1], x = D[2];
|
|
14882
14886
|
}
|
|
14883
14887
|
for (; this.domNode.lastChild != null && this.domNode.lastChild !== this.textNode; )
|
|
14884
14888
|
this.domNode.parentNode.insertBefore(this.domNode.lastChild, this.domNode);
|
|
14885
14889
|
if (this.textNode.data !== g.CONTENTS) {
|
|
14886
14890
|
var C = this.textNode.data.split(g.CONTENTS).join("");
|
|
14887
|
-
this.next instanceof c.default ? (
|
|
14891
|
+
this.next instanceof c.default ? (S = this.next.domNode, this.next.insertAt(0, C), this.textNode.data = g.CONTENTS) : (this.textNode.data = C, this.parent.insertBefore(u.default.create(this.textNode), this), this.textNode = document.createTextNode(g.CONTENTS), this.domNode.appendChild(this.textNode));
|
|
14888
14892
|
}
|
|
14889
14893
|
if (this.remove(), E != null) {
|
|
14890
|
-
var O = [E, x].map(function(
|
|
14891
|
-
return Math.max(0, Math.min(
|
|
14894
|
+
var O = [E, x].map(function(T) {
|
|
14895
|
+
return Math.max(0, Math.min(S.data.length, T - 1));
|
|
14892
14896
|
}), k = i(O, 2);
|
|
14893
14897
|
return E = k[0], x = k[1], {
|
|
14894
|
-
startNode:
|
|
14898
|
+
startNode: S,
|
|
14895
14899
|
startOffset: E,
|
|
14896
|
-
endNode:
|
|
14900
|
+
endNode: S,
|
|
14897
14901
|
endOffset: x
|
|
14898
14902
|
};
|
|
14899
14903
|
}
|
|
@@ -14902,9 +14906,9 @@ var il = { exports: {} };
|
|
|
14902
14906
|
}, {
|
|
14903
14907
|
key: "update",
|
|
14904
14908
|
value: function(v, w) {
|
|
14905
|
-
var
|
|
14909
|
+
var S = this;
|
|
14906
14910
|
if (v.some(function(x) {
|
|
14907
|
-
return x.type === "characterData" && x.target ===
|
|
14911
|
+
return x.type === "characterData" && x.target === S.textNode;
|
|
14908
14912
|
})) {
|
|
14909
14913
|
var E = this.restore();
|
|
14910
14914
|
E && (w.range = E);
|
|
@@ -14977,8 +14981,8 @@ var il = { exports: {} };
|
|
|
14977
14981
|
} else {
|
|
14978
14982
|
if ("value" in v)
|
|
14979
14983
|
return v.value;
|
|
14980
|
-
var
|
|
14981
|
-
return
|
|
14984
|
+
var S = v.get;
|
|
14985
|
+
return S === void 0 ? void 0 : S.call($);
|
|
14982
14986
|
}
|
|
14983
14987
|
}, l = o(0), d = u(l);
|
|
14984
14988
|
function u(b) {
|
|
@@ -15246,7 +15250,7 @@ var il = { exports: {} };
|
|
|
15246
15250
|
Object.defineProperty(r, "__esModule", {
|
|
15247
15251
|
value: !0
|
|
15248
15252
|
});
|
|
15249
|
-
var i = o(0), a = q(i), l = o(5), d = q(l), u = o(4), h = q(u), c = o(16), s = q(c), f = o(25), y = q(f), p = o(24), b = q(p), m = o(35), g = q(m), $ = o(6), v = q($), w = o(22),
|
|
15253
|
+
var i = o(0), a = q(i), l = o(5), d = q(l), u = o(4), h = q(u), c = o(16), s = q(c), f = o(25), y = q(f), p = o(24), b = q(p), m = o(35), g = q(m), $ = o(6), v = q($), w = o(22), S = q(w), E = o(7), x = q(E), D = o(55), C = q(D), O = o(42), k = q(O), T = o(23), R = q(T);
|
|
15250
15254
|
function q(W) {
|
|
15251
15255
|
return W && W.__esModule ? W : { default: W };
|
|
15252
15256
|
}
|
|
@@ -15258,12 +15262,12 @@ var il = { exports: {} };
|
|
|
15258
15262
|
"blots/cursor": b.default,
|
|
15259
15263
|
"blots/embed": g.default,
|
|
15260
15264
|
"blots/inline": v.default,
|
|
15261
|
-
"blots/scroll":
|
|
15265
|
+
"blots/scroll": S.default,
|
|
15262
15266
|
"blots/text": x.default,
|
|
15263
15267
|
"modules/clipboard": C.default,
|
|
15264
15268
|
"modules/history": k.default,
|
|
15265
15269
|
"modules/keyboard": R.default
|
|
15266
|
-
}), a.default.register(h.default, s.default, b.default, v.default,
|
|
15270
|
+
}), a.default.register(h.default, s.default, b.default, v.default, S.default, x.default), r.default = d.default;
|
|
15267
15271
|
},
|
|
15268
15272
|
/* 30 */
|
|
15269
15273
|
/***/
|
|
@@ -15549,8 +15553,8 @@ var il = { exports: {} };
|
|
|
15549
15553
|
g === null && (g = Function.prototype);
|
|
15550
15554
|
var w = Object.getOwnPropertyDescriptor(g, $);
|
|
15551
15555
|
if (w === void 0) {
|
|
15552
|
-
var
|
|
15553
|
-
return
|
|
15556
|
+
var S = Object.getPrototypeOf(g);
|
|
15557
|
+
return S === null ? void 0 : m(S, $, v);
|
|
15554
15558
|
} else {
|
|
15555
15559
|
if ("value" in w)
|
|
15556
15560
|
return w.value;
|
|
@@ -15592,7 +15596,7 @@ var il = { exports: {} };
|
|
|
15592
15596
|
}, {
|
|
15593
15597
|
key: "restore",
|
|
15594
15598
|
value: function(v) {
|
|
15595
|
-
var w = void 0,
|
|
15599
|
+
var w = void 0, S = void 0, E = v.data.split(p).join("");
|
|
15596
15600
|
if (v === this.leftGuard)
|
|
15597
15601
|
if (this.prev instanceof h.default) {
|
|
15598
15602
|
var x = this.prev.length();
|
|
@@ -15601,16 +15605,16 @@ var il = { exports: {} };
|
|
|
15601
15605
|
startOffset: x + E.length
|
|
15602
15606
|
};
|
|
15603
15607
|
} else
|
|
15604
|
-
|
|
15605
|
-
startNode:
|
|
15608
|
+
S = document.createTextNode(E), this.parent.insertBefore(d.default.create(S), this), w = {
|
|
15609
|
+
startNode: S,
|
|
15606
15610
|
startOffset: E.length
|
|
15607
15611
|
};
|
|
15608
15612
|
else
|
|
15609
15613
|
v === this.rightGuard && (this.next instanceof h.default ? (this.next.insertAt(0, E), w = {
|
|
15610
15614
|
startNode: this.next.domNode,
|
|
15611
15615
|
startOffset: E.length
|
|
15612
|
-
}) : (
|
|
15613
|
-
startNode:
|
|
15616
|
+
}) : (S = document.createTextNode(E), this.parent.insertBefore(d.default.create(S), this.next), w = {
|
|
15617
|
+
startNode: S,
|
|
15614
15618
|
startOffset: E.length
|
|
15615
15619
|
}));
|
|
15616
15620
|
return v.data = p, w;
|
|
@@ -15618,10 +15622,10 @@ var il = { exports: {} };
|
|
|
15618
15622
|
}, {
|
|
15619
15623
|
key: "update",
|
|
15620
15624
|
value: function(v, w) {
|
|
15621
|
-
var
|
|
15625
|
+
var S = this;
|
|
15622
15626
|
v.forEach(function(E) {
|
|
15623
|
-
if (E.type === "characterData" && (E.target ===
|
|
15624
|
-
var x =
|
|
15627
|
+
if (E.type === "characterData" && (E.target === S.leftGuard || E.target === S.rightGuard)) {
|
|
15628
|
+
var x = S.restore(E.target);
|
|
15625
15629
|
x && (w.range = x);
|
|
15626
15630
|
}
|
|
15627
15631
|
});
|
|
@@ -15699,8 +15703,8 @@ var il = { exports: {} };
|
|
|
15699
15703
|
g === null && (g = Function.prototype);
|
|
15700
15704
|
var w = Object.getOwnPropertyDescriptor(g, $);
|
|
15701
15705
|
if (w === void 0) {
|
|
15702
|
-
var
|
|
15703
|
-
return
|
|
15706
|
+
var S = Object.getPrototypeOf(g);
|
|
15707
|
+
return S === null ? void 0 : m(S, $, v);
|
|
15704
15708
|
} else {
|
|
15705
15709
|
if ("value" in w)
|
|
15706
15710
|
return w.value;
|
|
@@ -15822,13 +15826,13 @@ var il = { exports: {} };
|
|
|
15822
15826
|
}), r.getLastChangeIndex = r.default = void 0;
|
|
15823
15827
|
var i = function() {
|
|
15824
15828
|
function $(v, w) {
|
|
15825
|
-
for (var
|
|
15826
|
-
var E = w[
|
|
15829
|
+
for (var S = 0; S < w.length; S++) {
|
|
15830
|
+
var E = w[S];
|
|
15827
15831
|
E.enumerable = E.enumerable || !1, E.configurable = !0, "value" in E && (E.writable = !0), Object.defineProperty(v, E.key, E);
|
|
15828
15832
|
}
|
|
15829
15833
|
}
|
|
15830
|
-
return function(v, w,
|
|
15831
|
-
return w && $(v.prototype, w),
|
|
15834
|
+
return function(v, w, S) {
|
|
15835
|
+
return w && $(v.prototype, w), S && $(v, S), v;
|
|
15832
15836
|
};
|
|
15833
15837
|
}(), a = o(0), l = s(a), d = o(5), u = s(d), h = o(9), c = s(h);
|
|
15834
15838
|
function s($) {
|
|
@@ -15850,20 +15854,20 @@ var il = { exports: {} };
|
|
|
15850
15854
|
}
|
|
15851
15855
|
var b = function($) {
|
|
15852
15856
|
p(v, $);
|
|
15853
|
-
function v(w,
|
|
15857
|
+
function v(w, S) {
|
|
15854
15858
|
f(this, v);
|
|
15855
|
-
var E = y(this, (v.__proto__ || Object.getPrototypeOf(v)).call(this, w,
|
|
15859
|
+
var E = y(this, (v.__proto__ || Object.getPrototypeOf(v)).call(this, w, S));
|
|
15856
15860
|
return E.lastRecorded = 0, E.ignoreChange = !1, E.clear(), E.quill.on(u.default.events.EDITOR_CHANGE, function(x, D, C, O) {
|
|
15857
15861
|
x !== u.default.events.TEXT_CHANGE || E.ignoreChange || (!E.options.userOnly || O === u.default.sources.USER ? E.record(D, C) : E.transform(D));
|
|
15858
15862
|
}), E.quill.keyboard.addBinding({ key: "Z", shortKey: !0 }, E.undo.bind(E)), E.quill.keyboard.addBinding({ key: "Z", shortKey: !0, shiftKey: !0 }, E.redo.bind(E)), /Win/i.test(navigator.platform) && E.quill.keyboard.addBinding({ key: "Y", shortKey: !0 }, E.redo.bind(E)), E;
|
|
15859
15863
|
}
|
|
15860
15864
|
return i(v, [{
|
|
15861
15865
|
key: "change",
|
|
15862
|
-
value: function(
|
|
15863
|
-
if (this.stack[
|
|
15864
|
-
var x = this.stack[
|
|
15865
|
-
this.stack[E].push(x), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(x[
|
|
15866
|
-
var D = g(x[
|
|
15866
|
+
value: function(S, E) {
|
|
15867
|
+
if (this.stack[S].length !== 0) {
|
|
15868
|
+
var x = this.stack[S].pop();
|
|
15869
|
+
this.stack[E].push(x), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(x[S], u.default.sources.USER), this.ignoreChange = !1;
|
|
15870
|
+
var D = g(x[S]);
|
|
15867
15871
|
this.quill.setSelection(D);
|
|
15868
15872
|
}
|
|
15869
15873
|
}
|
|
@@ -15879,17 +15883,17 @@ var il = { exports: {} };
|
|
|
15879
15883
|
}
|
|
15880
15884
|
}, {
|
|
15881
15885
|
key: "record",
|
|
15882
|
-
value: function(
|
|
15883
|
-
if (
|
|
15886
|
+
value: function(S, E) {
|
|
15887
|
+
if (S.ops.length !== 0) {
|
|
15884
15888
|
this.stack.redo = [];
|
|
15885
15889
|
var x = this.quill.getContents().diff(E), D = Date.now();
|
|
15886
15890
|
if (this.lastRecorded + this.options.delay > D && this.stack.undo.length > 0) {
|
|
15887
15891
|
var C = this.stack.undo.pop();
|
|
15888
|
-
x = x.compose(C.undo),
|
|
15892
|
+
x = x.compose(C.undo), S = C.redo.compose(S);
|
|
15889
15893
|
} else
|
|
15890
15894
|
this.lastRecorded = D;
|
|
15891
15895
|
this.stack.undo.push({
|
|
15892
|
-
redo:
|
|
15896
|
+
redo: S,
|
|
15893
15897
|
undo: x
|
|
15894
15898
|
}), this.stack.undo.length > this.options.maxStack && this.stack.undo.shift();
|
|
15895
15899
|
}
|
|
@@ -15901,11 +15905,11 @@ var il = { exports: {} };
|
|
|
15901
15905
|
}
|
|
15902
15906
|
}, {
|
|
15903
15907
|
key: "transform",
|
|
15904
|
-
value: function(
|
|
15908
|
+
value: function(S) {
|
|
15905
15909
|
this.stack.undo.forEach(function(E) {
|
|
15906
|
-
E.undo =
|
|
15910
|
+
E.undo = S.transform(E.undo, !0), E.redo = S.transform(E.redo, !0);
|
|
15907
15911
|
}), this.stack.redo.forEach(function(E) {
|
|
15908
|
-
E.undo =
|
|
15912
|
+
E.undo = S.transform(E.undo, !0), E.redo = S.transform(E.redo, !0);
|
|
15909
15913
|
});
|
|
15910
15914
|
}
|
|
15911
15915
|
}, {
|
|
@@ -15928,8 +15932,8 @@ var il = { exports: {} };
|
|
|
15928
15932
|
}) : !1;
|
|
15929
15933
|
}
|
|
15930
15934
|
function g($) {
|
|
15931
|
-
var v = $.reduce(function(
|
|
15932
|
-
return
|
|
15935
|
+
var v = $.reduce(function(S, E) {
|
|
15936
|
+
return S += E.delete || 0, S;
|
|
15933
15937
|
}, 0), w = $.length() - v;
|
|
15934
15938
|
return m($) && (w -= 1), w;
|
|
15935
15939
|
}
|
|
@@ -15963,7 +15967,7 @@ var il = { exports: {} };
|
|
|
15963
15967
|
var Z = L.get;
|
|
15964
15968
|
return Z === void 0 ? void 0 : Z.call(F);
|
|
15965
15969
|
}
|
|
15966
|
-
}, l = o(3), d = D(l), u = o(2), h = D(u), c = o(8), s = D(c), f = o(23), y = D(f), p = o(34), b = D(p), m = o(59), g = D(m), $ = o(60), v = D($), w = o(28),
|
|
15970
|
+
}, l = o(3), d = D(l), u = o(2), h = D(u), c = o(8), s = D(c), f = o(23), y = D(f), p = o(34), b = D(p), m = o(59), g = D(m), $ = o(60), v = D($), w = o(28), S = D(w), E = o(61), x = D(E);
|
|
15967
15971
|
function D(A) {
|
|
15968
15972
|
return A && A.__esModule ? A : { default: A };
|
|
15969
15973
|
}
|
|
@@ -15981,7 +15985,7 @@ var il = { exports: {} };
|
|
|
15981
15985
|
throw new TypeError("Super expression must either be null or a function, not " + typeof I);
|
|
15982
15986
|
A.prototype = Object.create(I && I.prototype, { constructor: { value: A, enumerable: !1, writable: !0, configurable: !0 } }), I && (Object.setPrototypeOf ? Object.setPrototypeOf(A, I) : A.__proto__ = I);
|
|
15983
15987
|
}
|
|
15984
|
-
var
|
|
15988
|
+
var T = [!1, "center", "right", "justify"], R = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], q = [!1, "serif", "monospace"], W = ["1", "2", "3", !1], Y = ["small", !1, "large", "huge"], re = function(A) {
|
|
15985
15989
|
k(I, A);
|
|
15986
15990
|
function I(U, F) {
|
|
15987
15991
|
C(this, I);
|
|
@@ -16024,12 +16028,12 @@ var il = { exports: {} };
|
|
|
16024
16028
|
var V = this;
|
|
16025
16029
|
this.pickers = F.map(function(J) {
|
|
16026
16030
|
if (J.classList.contains("ql-align"))
|
|
16027
|
-
return J.querySelector("option") == null && N(J,
|
|
16031
|
+
return J.querySelector("option") == null && N(J, T), new v.default(J, L.align);
|
|
16028
16032
|
if (J.classList.contains("ql-background") || J.classList.contains("ql-color")) {
|
|
16029
16033
|
var ie = J.classList.contains("ql-background") ? "background" : "color";
|
|
16030
16034
|
return J.querySelector("option") == null && N(J, R, ie === "background" ? "#ffffff" : "#000000"), new g.default(J, L[ie]);
|
|
16031
16035
|
} else
|
|
16032
|
-
return J.querySelector("option") == null && (J.classList.contains("ql-font") ? N(J, q) : J.classList.contains("ql-header") ? N(J, W) : J.classList.contains("ql-size") && N(J, Y)), new
|
|
16036
|
+
return J.querySelector("option") == null && (J.classList.contains("ql-font") ? N(J, q) : J.classList.contains("ql-header") ? N(J, W) : J.classList.contains("ql-size") && N(J, Y)), new S.default(J);
|
|
16033
16037
|
});
|
|
16034
16038
|
var Z = function() {
|
|
16035
16039
|
V.pickers.forEach(function(ie) {
|
|
@@ -16254,8 +16258,8 @@ var il = { exports: {} };
|
|
|
16254
16258
|
f === void 0 && (f = []), y === void 0 && (y = {}), c.prototype.optimize.call(this, y);
|
|
16255
16259
|
for (var b = [].slice.call(this.observer.takeRecords()); b.length > 0; )
|
|
16256
16260
|
f.push(b.pop());
|
|
16257
|
-
for (var m = function(w,
|
|
16258
|
-
|
|
16261
|
+
for (var m = function(w, S) {
|
|
16262
|
+
S === void 0 && (S = !0), !(w == null || w === p) && w.domNode.parentNode != null && (w.domNode[l.DATA_KEY].mutations == null && (w.domNode[l.DATA_KEY].mutations = []), S && m(w.parent));
|
|
16259
16263
|
}, g = function(w) {
|
|
16260
16264
|
// @ts-ignore
|
|
16261
16265
|
w.domNode[l.DATA_KEY] == null || // @ts-ignore
|
|
@@ -16264,13 +16268,13 @@ var il = { exports: {} };
|
|
|
16264
16268
|
if (v >= u)
|
|
16265
16269
|
throw new Error("[Parchment] Maximum optimize iterations reached");
|
|
16266
16270
|
for ($.forEach(function(w) {
|
|
16267
|
-
var
|
|
16268
|
-
|
|
16271
|
+
var S = l.find(w.target, !0);
|
|
16272
|
+
S != null && (S.domNode === w.target && (w.type === "childList" ? (m(l.find(w.previousSibling, !1)), [].forEach.call(w.addedNodes, function(E) {
|
|
16269
16273
|
var x = l.find(E, !1);
|
|
16270
16274
|
m(x, !1), x instanceof a.default && x.children.forEach(function(D) {
|
|
16271
16275
|
m(D, !1);
|
|
16272
16276
|
});
|
|
16273
|
-
})) : w.type === "attributes" && m(
|
|
16277
|
+
})) : w.type === "attributes" && m(S.prev)), m(S));
|
|
16274
16278
|
}), this.children.forEach(g), $ = [].slice.call(this.observer.takeRecords()), b = $.slice(); b.length > 0; )
|
|
16275
16279
|
f.push(b.pop());
|
|
16276
16280
|
}
|
|
@@ -16535,57 +16539,57 @@ var il = { exports: {} };
|
|
|
16535
16539
|
/***/
|
|
16536
16540
|
function(e, r) {
|
|
16537
16541
|
var o = -1, i = 1, a = 0;
|
|
16538
|
-
function l(v, w,
|
|
16542
|
+
function l(v, w, S) {
|
|
16539
16543
|
if (v == w)
|
|
16540
16544
|
return v ? [[a, v]] : [];
|
|
16541
|
-
(
|
|
16545
|
+
(S < 0 || v.length < S) && (S = null);
|
|
16542
16546
|
var E = c(v, w), x = v.substring(0, E);
|
|
16543
16547
|
v = v.substring(E), w = w.substring(E), E = s(v, w);
|
|
16544
16548
|
var D = v.substring(v.length - E);
|
|
16545
16549
|
v = v.substring(0, v.length - E), w = w.substring(0, w.length - E);
|
|
16546
16550
|
var C = d(v, w);
|
|
16547
|
-
return x && C.unshift([a, x]), D && C.push([a, D]), y(C),
|
|
16551
|
+
return x && C.unshift([a, x]), D && C.push([a, D]), y(C), S != null && (C = m(C, S)), C = g(C), C;
|
|
16548
16552
|
}
|
|
16549
16553
|
function d(v, w) {
|
|
16550
|
-
var
|
|
16554
|
+
var S;
|
|
16551
16555
|
if (!v)
|
|
16552
16556
|
return [[i, w]];
|
|
16553
16557
|
if (!w)
|
|
16554
16558
|
return [[o, v]];
|
|
16555
16559
|
var E = v.length > w.length ? v : w, x = v.length > w.length ? w : v, D = E.indexOf(x);
|
|
16556
16560
|
if (D != -1)
|
|
16557
|
-
return
|
|
16561
|
+
return S = [
|
|
16558
16562
|
[i, E.substring(0, D)],
|
|
16559
16563
|
[a, x],
|
|
16560
16564
|
[i, E.substring(D + x.length)]
|
|
16561
|
-
], v.length > w.length && (
|
|
16565
|
+
], v.length > w.length && (S[0][0] = S[2][0] = o), S;
|
|
16562
16566
|
if (x.length == 1)
|
|
16563
16567
|
return [[o, v], [i, w]];
|
|
16564
16568
|
var C = f(v, w);
|
|
16565
16569
|
if (C) {
|
|
16566
|
-
var O = C[0], k = C[1],
|
|
16570
|
+
var O = C[0], k = C[1], T = C[2], R = C[3], q = C[4], W = l(O, T), Y = l(k, R);
|
|
16567
16571
|
return W.concat([[a, q]], Y);
|
|
16568
16572
|
}
|
|
16569
16573
|
return u(v, w);
|
|
16570
16574
|
}
|
|
16571
16575
|
function u(v, w) {
|
|
16572
|
-
for (var
|
|
16573
|
-
O[
|
|
16576
|
+
for (var S = v.length, E = w.length, x = Math.ceil((S + E) / 2), D = x, C = 2 * x, O = new Array(C), k = new Array(C), T = 0; T < C; T++)
|
|
16577
|
+
O[T] = -1, k[T] = -1;
|
|
16574
16578
|
O[D + 1] = 0, k[D + 1] = 0;
|
|
16575
|
-
for (var R =
|
|
16579
|
+
for (var R = S - E, q = R % 2 != 0, W = 0, Y = 0, re = 0, z = 0, j = 0; j < x; j++) {
|
|
16576
16580
|
for (var N = -j + W; N <= j - Y; N += 2) {
|
|
16577
16581
|
var A = D + N, I;
|
|
16578
16582
|
N == -j || N != j && O[A - 1] < O[A + 1] ? I = O[A + 1] : I = O[A - 1] + 1;
|
|
16579
|
-
for (var U = I - N; I <
|
|
16583
|
+
for (var U = I - N; I < S && U < E && v.charAt(I) == w.charAt(U); )
|
|
16580
16584
|
I++, U++;
|
|
16581
|
-
if (O[A] = I, I >
|
|
16585
|
+
if (O[A] = I, I > S)
|
|
16582
16586
|
Y += 2;
|
|
16583
16587
|
else if (U > E)
|
|
16584
16588
|
W += 2;
|
|
16585
16589
|
else if (q) {
|
|
16586
16590
|
var F = D + R - N;
|
|
16587
16591
|
if (F >= 0 && F < C && k[F] != -1) {
|
|
16588
|
-
var L =
|
|
16592
|
+
var L = S - k[F];
|
|
16589
16593
|
if (I >= L)
|
|
16590
16594
|
return h(v, w, I, U);
|
|
16591
16595
|
}
|
|
@@ -16594,9 +16598,9 @@ var il = { exports: {} };
|
|
|
16594
16598
|
for (var V = -j + re; V <= j - z; V += 2) {
|
|
16595
16599
|
var F = D + V, L;
|
|
16596
16600
|
V == -j || V != j && k[F - 1] < k[F + 1] ? L = k[F + 1] : L = k[F - 1] + 1;
|
|
16597
|
-
for (var Z = L - V; L <
|
|
16601
|
+
for (var Z = L - V; L < S && Z < E && v.charAt(S - L - 1) == w.charAt(E - Z - 1); )
|
|
16598
16602
|
L++, Z++;
|
|
16599
|
-
if (k[F] = L, L >
|
|
16603
|
+
if (k[F] = L, L > S)
|
|
16600
16604
|
z += 2;
|
|
16601
16605
|
else if (Z > E)
|
|
16602
16606
|
re += 2;
|
|
@@ -16604,7 +16608,7 @@ var il = { exports: {} };
|
|
|
16604
16608
|
var A = D + R - V;
|
|
16605
16609
|
if (A >= 0 && A < C && O[A] != -1) {
|
|
16606
16610
|
var I = O[A], U = D + I - A;
|
|
16607
|
-
if (L =
|
|
16611
|
+
if (L = S - L, I >= L)
|
|
16608
16612
|
return h(v, w, I, U);
|
|
16609
16613
|
}
|
|
16610
16614
|
}
|
|
@@ -16612,27 +16616,27 @@ var il = { exports: {} };
|
|
|
16612
16616
|
}
|
|
16613
16617
|
return [[o, v], [i, w]];
|
|
16614
16618
|
}
|
|
16615
|
-
function h(v, w,
|
|
16616
|
-
var x = v.substring(0,
|
|
16617
|
-
return k.concat(
|
|
16619
|
+
function h(v, w, S, E) {
|
|
16620
|
+
var x = v.substring(0, S), D = w.substring(0, E), C = v.substring(S), O = w.substring(E), k = l(x, D), T = l(C, O);
|
|
16621
|
+
return k.concat(T);
|
|
16618
16622
|
}
|
|
16619
16623
|
function c(v, w) {
|
|
16620
16624
|
if (!v || !w || v.charAt(0) != w.charAt(0))
|
|
16621
16625
|
return 0;
|
|
16622
|
-
for (var
|
|
16623
|
-
v.substring(D, x) == w.substring(D, x) ? (
|
|
16626
|
+
for (var S = 0, E = Math.min(v.length, w.length), x = E, D = 0; S < x; )
|
|
16627
|
+
v.substring(D, x) == w.substring(D, x) ? (S = x, D = S) : E = x, x = Math.floor((E - S) / 2 + S);
|
|
16624
16628
|
return x;
|
|
16625
16629
|
}
|
|
16626
16630
|
function s(v, w) {
|
|
16627
16631
|
if (!v || !w || v.charAt(v.length - 1) != w.charAt(w.length - 1))
|
|
16628
16632
|
return 0;
|
|
16629
|
-
for (var
|
|
16630
|
-
v.substring(v.length - x, v.length - D) == w.substring(w.length - x, w.length - D) ? (
|
|
16633
|
+
for (var S = 0, E = Math.min(v.length, w.length), x = E, D = 0; S < x; )
|
|
16634
|
+
v.substring(v.length - x, v.length - D) == w.substring(w.length - x, w.length - D) ? (S = x, D = S) : E = x, x = Math.floor((E - S) / 2 + S);
|
|
16631
16635
|
return x;
|
|
16632
16636
|
}
|
|
16633
16637
|
function f(v, w) {
|
|
16634
|
-
var
|
|
16635
|
-
if (
|
|
16638
|
+
var S = v.length > w.length ? v : w, E = v.length > w.length ? w : v;
|
|
16639
|
+
if (S.length < 4 || E.length * 2 < S.length)
|
|
16636
16640
|
return null;
|
|
16637
16641
|
function x(Y, re, z) {
|
|
16638
16642
|
for (var j = Y.substring(z, z + Math.floor(Y.length / 4)), N = -1, A = "", I, U, F, L; (N = re.indexOf(j, N + 1)) != -1; ) {
|
|
@@ -16654,50 +16658,50 @@ var il = { exports: {} };
|
|
|
16654
16658
|
] : null;
|
|
16655
16659
|
}
|
|
16656
16660
|
var D = x(
|
|
16657
|
-
|
|
16661
|
+
S,
|
|
16658
16662
|
E,
|
|
16659
|
-
Math.ceil(
|
|
16663
|
+
Math.ceil(S.length / 4)
|
|
16660
16664
|
), C = x(
|
|
16661
|
-
|
|
16665
|
+
S,
|
|
16662
16666
|
E,
|
|
16663
|
-
Math.ceil(
|
|
16667
|
+
Math.ceil(S.length / 2)
|
|
16664
16668
|
), O;
|
|
16665
16669
|
if (!D && !C)
|
|
16666
16670
|
return null;
|
|
16667
16671
|
C ? D ? O = D[4].length > C[4].length ? D : C : O = C : O = D;
|
|
16668
|
-
var k,
|
|
16669
|
-
v.length > w.length ? (k = O[0],
|
|
16672
|
+
var k, T, R, q;
|
|
16673
|
+
v.length > w.length ? (k = O[0], T = O[1], R = O[2], q = O[3]) : (R = O[0], q = O[1], k = O[2], T = O[3]);
|
|
16670
16674
|
var W = O[4];
|
|
16671
|
-
return [k,
|
|
16675
|
+
return [k, T, R, q, W];
|
|
16672
16676
|
}
|
|
16673
16677
|
function y(v) {
|
|
16674
16678
|
v.push([a, ""]);
|
|
16675
|
-
for (var w = 0,
|
|
16679
|
+
for (var w = 0, S = 0, E = 0, x = "", D = "", C; w < v.length; )
|
|
16676
16680
|
switch (v[w][0]) {
|
|
16677
16681
|
case i:
|
|
16678
16682
|
E++, D += v[w][1], w++;
|
|
16679
16683
|
break;
|
|
16680
16684
|
case o:
|
|
16681
|
-
|
|
16685
|
+
S++, x += v[w][1], w++;
|
|
16682
16686
|
break;
|
|
16683
16687
|
case a:
|
|
16684
|
-
|
|
16688
|
+
S + E > 1 ? (S !== 0 && E !== 0 && (C = c(D, x), C !== 0 && (w - S - E > 0 && v[w - S - E - 1][0] == a ? v[w - S - E - 1][1] += D.substring(0, C) : (v.splice(0, 0, [
|
|
16685
16689
|
a,
|
|
16686
16690
|
D.substring(0, C)
|
|
16687
|
-
]), w++), D = D.substring(C), x = x.substring(C)), C = s(D, x), C !== 0 && (v[w][1] = D.substring(D.length - C) + v[w][1], D = D.substring(0, D.length - C), x = x.substring(0, x.length - C))),
|
|
16691
|
+
]), w++), D = D.substring(C), x = x.substring(C)), C = s(D, x), C !== 0 && (v[w][1] = D.substring(D.length - C) + v[w][1], D = D.substring(0, D.length - C), x = x.substring(0, x.length - C))), S === 0 ? v.splice(
|
|
16688
16692
|
w - E,
|
|
16689
|
-
|
|
16693
|
+
S + E,
|
|
16690
16694
|
[i, D]
|
|
16691
16695
|
) : E === 0 ? v.splice(
|
|
16692
|
-
w -
|
|
16693
|
-
|
|
16696
|
+
w - S,
|
|
16697
|
+
S + E,
|
|
16694
16698
|
[o, x]
|
|
16695
16699
|
) : v.splice(
|
|
16696
|
-
w -
|
|
16697
|
-
|
|
16700
|
+
w - S - E,
|
|
16701
|
+
S + E,
|
|
16698
16702
|
[o, x],
|
|
16699
16703
|
[i, D]
|
|
16700
|
-
), w = w -
|
|
16704
|
+
), w = w - S - E + (S ? 1 : 0) + (E ? 1 : 0) + 1) : w !== 0 && v[w - 1][0] == a ? (v[w - 1][1] += v[w][1], v.splice(w, 1)) : w++, E = 0, S = 0, x = "", D = "";
|
|
16701
16705
|
break;
|
|
16702
16706
|
}
|
|
16703
16707
|
v[v.length - 1][1] === "" && v.pop();
|
|
@@ -16711,24 +16715,24 @@ var il = { exports: {} };
|
|
|
16711
16715
|
function b(v, w) {
|
|
16712
16716
|
if (w === 0)
|
|
16713
16717
|
return [a, v];
|
|
16714
|
-
for (var
|
|
16718
|
+
for (var S = 0, E = 0; E < v.length; E++) {
|
|
16715
16719
|
var x = v[E];
|
|
16716
16720
|
if (x[0] === o || x[0] === a) {
|
|
16717
|
-
var D =
|
|
16721
|
+
var D = S + x[1].length;
|
|
16718
16722
|
if (w === D)
|
|
16719
16723
|
return [E + 1, v];
|
|
16720
16724
|
if (w < D) {
|
|
16721
16725
|
v = v.slice();
|
|
16722
|
-
var C = w -
|
|
16726
|
+
var C = w - S, O = [x[0], x[1].slice(0, C)], k = [x[0], x[1].slice(C)];
|
|
16723
16727
|
return v.splice(E, 1, O, k), [E + 1, v];
|
|
16724
16728
|
} else
|
|
16725
|
-
|
|
16729
|
+
S = D;
|
|
16726
16730
|
}
|
|
16727
16731
|
}
|
|
16728
16732
|
throw new Error("cursor_pos is out of bounds!");
|
|
16729
16733
|
}
|
|
16730
16734
|
function m(v, w) {
|
|
16731
|
-
var
|
|
16735
|
+
var S = b(v, w), E = S[1], x = S[0], D = E[x], C = E[x + 1];
|
|
16732
16736
|
if (D == null)
|
|
16733
16737
|
return v;
|
|
16734
16738
|
if (D[0] !== a)
|
|
@@ -16743,20 +16747,20 @@ var il = { exports: {} };
|
|
|
16743
16747
|
return v;
|
|
16744
16748
|
}
|
|
16745
16749
|
function g(v) {
|
|
16746
|
-
for (var w = !1,
|
|
16750
|
+
for (var w = !1, S = function(C) {
|
|
16747
16751
|
return C.charCodeAt(0) >= 56320 && C.charCodeAt(0) <= 57343;
|
|
16748
16752
|
}, E = function(C) {
|
|
16749
16753
|
return C.charCodeAt(C.length - 1) >= 55296 && C.charCodeAt(C.length - 1) <= 56319;
|
|
16750
16754
|
}, x = 2; x < v.length; x += 1)
|
|
16751
|
-
v[x - 2][0] === a && E(v[x - 2][1]) && v[x - 1][0] === o &&
|
|
16755
|
+
v[x - 2][0] === a && E(v[x - 2][1]) && v[x - 1][0] === o && S(v[x - 1][1]) && v[x][0] === i && S(v[x][1]) && (w = !0, v[x - 1][1] = v[x - 2][1].slice(-1) + v[x - 1][1], v[x][1] = v[x - 2][1].slice(-1) + v[x][1], v[x - 2][1] = v[x - 2][1].slice(0, -1));
|
|
16752
16756
|
if (!w)
|
|
16753
16757
|
return v;
|
|
16754
16758
|
for (var D = [], x = 0; x < v.length; x += 1)
|
|
16755
16759
|
v[x][1].length > 0 && D.push(v[x]);
|
|
16756
16760
|
return D;
|
|
16757
16761
|
}
|
|
16758
|
-
function $(v, w,
|
|
16759
|
-
for (var E = w +
|
|
16762
|
+
function $(v, w, S) {
|
|
16763
|
+
for (var E = w + S - 1; E >= 0 && E >= w - 1; E--)
|
|
16760
16764
|
if (E + 1 < v.length) {
|
|
16761
16765
|
var x = v[E], D = v[E + 1];
|
|
16762
16766
|
x[0] === D[1] && v.splice(E, 2, [x[0], x[1] + D[1]]);
|
|
@@ -16845,7 +16849,7 @@ var il = { exports: {} };
|
|
|
16845
16849
|
$[v - 1] = arguments[v];
|
|
16846
16850
|
m.fn.apply(m.context, $);
|
|
16847
16851
|
} else {
|
|
16848
|
-
var w = m.length,
|
|
16852
|
+
var w = m.length, S;
|
|
16849
16853
|
for (v = 0; v < w; v++)
|
|
16850
16854
|
switch (m[v].once && this.removeListener(h, m[v].fn, void 0, !0), g) {
|
|
16851
16855
|
case 1:
|
|
@@ -16862,8 +16866,8 @@ var il = { exports: {} };
|
|
|
16862
16866
|
break;
|
|
16863
16867
|
default:
|
|
16864
16868
|
if (!$)
|
|
16865
|
-
for (
|
|
16866
|
-
$[
|
|
16869
|
+
for (S = 1, $ = new Array(g - 1); S < g; S++)
|
|
16870
|
+
$[S - 1] = arguments[S];
|
|
16867
16871
|
m[v].fn.apply(m[v].context, $);
|
|
16868
16872
|
}
|
|
16869
16873
|
}
|
|
@@ -16910,13 +16914,13 @@ var il = { exports: {} };
|
|
|
16910
16914
|
function Q(ne, se) {
|
|
16911
16915
|
var de = [], oe = !0, Ae = !1, ke = void 0;
|
|
16912
16916
|
try {
|
|
16913
|
-
for (var
|
|
16917
|
+
for (var Se = ne[Symbol.iterator](), it; !(oe = (it = Se.next()).done) && (de.push(it.value), !(se && de.length === se)); oe = !0)
|
|
16914
16918
|
;
|
|
16915
16919
|
} catch (Je) {
|
|
16916
16920
|
Ae = !0, ke = Je;
|
|
16917
16921
|
} finally {
|
|
16918
16922
|
try {
|
|
16919
|
-
!oe &&
|
|
16923
|
+
!oe && Se.return && Se.return();
|
|
16920
16924
|
} finally {
|
|
16921
16925
|
if (Ae)
|
|
16922
16926
|
throw ke;
|
|
@@ -16941,11 +16945,11 @@ var il = { exports: {} };
|
|
|
16941
16945
|
return function(ne, se, de) {
|
|
16942
16946
|
return se && Q(ne.prototype, se), de && Q(ne, de), ne;
|
|
16943
16947
|
};
|
|
16944
|
-
}(), d = o(3), u = k(d), h = o(2), c = k(h), s = o(0), f = k(s), y = o(5), p = k(y), b = o(10), m = k(b), g = o(9), $ = k(g), v = o(36), w = o(37),
|
|
16948
|
+
}(), d = o(3), u = k(d), h = o(2), c = k(h), s = o(0), f = k(s), y = o(5), p = k(y), b = o(10), m = k(b), g = o(9), $ = k(g), v = o(36), w = o(37), S = o(13), E = k(S), x = o(26), D = o(38), C = o(39), O = o(40);
|
|
16945
16949
|
function k(Q) {
|
|
16946
16950
|
return Q && Q.__esModule ? Q : { default: Q };
|
|
16947
16951
|
}
|
|
16948
|
-
function
|
|
16952
|
+
function T(Q, ne, se) {
|
|
16949
16953
|
return ne in Q ? Object.defineProperty(Q, ne, { value: se, enumerable: !0, configurable: !0, writable: !0 }) : Q[ne] = se, Q;
|
|
16950
16954
|
}
|
|
16951
16955
|
function R(Q, ne) {
|
|
@@ -16972,8 +16976,8 @@ var il = { exports: {} };
|
|
|
16972
16976
|
R(this, ne);
|
|
16973
16977
|
var oe = q(this, (ne.__proto__ || Object.getPrototypeOf(ne)).call(this, se, de));
|
|
16974
16978
|
return oe.quill.root.addEventListener("paste", oe.onPaste.bind(oe)), oe.container = oe.quill.addContainer("ql-clipboard"), oe.container.setAttribute("contenteditable", !0), oe.container.setAttribute("tabindex", -1), oe.matchers = [], z.concat(oe.options.matchers).forEach(function(Ae) {
|
|
16975
|
-
var ke = a(Ae, 2),
|
|
16976
|
-
!de.matchVisual && it === De || oe.addMatcher(
|
|
16979
|
+
var ke = a(Ae, 2), Se = ke[0], it = ke[1];
|
|
16980
|
+
!de.matchVisual && it === De || oe.addMatcher(Se, it);
|
|
16977
16981
|
}), oe;
|
|
16978
16982
|
}
|
|
16979
16983
|
return l(ne, [{
|
|
@@ -16989,9 +16993,9 @@ var il = { exports: {} };
|
|
|
16989
16993
|
var oe = this.quill.getFormat(this.quill.selection.savedRange.index);
|
|
16990
16994
|
if (oe[E.default.blotName]) {
|
|
16991
16995
|
var Ae = this.container.innerText;
|
|
16992
|
-
return this.container.innerHTML = "", new c.default().insert(Ae,
|
|
16996
|
+
return this.container.innerHTML = "", new c.default().insert(Ae, T({}, E.default.blotName, oe[E.default.blotName]));
|
|
16993
16997
|
}
|
|
16994
|
-
var ke = this.prepareMatching(),
|
|
16998
|
+
var ke = this.prepareMatching(), Se = a(ke, 2), it = Se[0], Je = Se[1], Fe = V(this.container, it, Je);
|
|
16995
16999
|
return F(Fe, `
|
|
16996
17000
|
`) && Fe.ops[Fe.ops.length - 1].attributes == null && (Fe = Fe.compose(new c.default().retain(Fe.length() - 1).delete(1))), Y.log("convert", this.container.innerHTML, Fe), this.container.innerHTML = "", Fe;
|
|
16997
17001
|
}
|
|
@@ -17011,9 +17015,9 @@ var il = { exports: {} };
|
|
|
17011
17015
|
value: function(de) {
|
|
17012
17016
|
var oe = this;
|
|
17013
17017
|
if (!(de.defaultPrevented || !this.quill.isEnabled())) {
|
|
17014
|
-
var Ae = this.quill.getSelection(), ke = new c.default().retain(Ae.index),
|
|
17018
|
+
var Ae = this.quill.getSelection(), ke = new c.default().retain(Ae.index), Se = this.quill.scrollingContainer.scrollTop;
|
|
17015
17019
|
this.container.focus(), this.quill.selection.update(p.default.sources.SILENT), setTimeout(function() {
|
|
17016
|
-
ke = ke.concat(oe.convert()).delete(Ae.length), oe.quill.updateContents(ke, p.default.sources.USER), oe.quill.setSelection(ke.length() - Ae.length, p.default.sources.SILENT), oe.quill.scrollingContainer.scrollTop =
|
|
17020
|
+
ke = ke.concat(oe.convert()).delete(Ae.length), oe.quill.updateContents(ke, p.default.sources.USER), oe.quill.setSelection(ke.length() - Ae.length, p.default.sources.SILENT), oe.quill.scrollingContainer.scrollTop = Se, oe.quill.focus();
|
|
17017
17021
|
}, 1);
|
|
17018
17022
|
}
|
|
17019
17023
|
}
|
|
@@ -17022,7 +17026,7 @@ var il = { exports: {} };
|
|
|
17022
17026
|
value: function() {
|
|
17023
17027
|
var de = this, oe = [], Ae = [];
|
|
17024
17028
|
return this.matchers.forEach(function(ke) {
|
|
17025
|
-
var
|
|
17029
|
+
var Se = a(ke, 2), it = Se[0], Je = Se[1];
|
|
17026
17030
|
switch (it) {
|
|
17027
17031
|
case Node.TEXT_NODE:
|
|
17028
17032
|
Ae.push(Je);
|
|
@@ -17048,7 +17052,7 @@ var il = { exports: {} };
|
|
|
17048
17052
|
return (typeof ne > "u" ? "undefined" : i(ne)) === "object" ? Object.keys(ne).reduce(function(de, oe) {
|
|
17049
17053
|
return I(de, oe, ne[oe]);
|
|
17050
17054
|
}, Q) : Q.reduce(function(de, oe) {
|
|
17051
|
-
return oe.attributes && oe.attributes[ne] ? de.push(oe) : de.insert(oe.insert, (0, u.default)({},
|
|
17055
|
+
return oe.attributes && oe.attributes[ne] ? de.push(oe) : de.insert(oe.insert, (0, u.default)({}, T({}, ne, se), oe.attributes));
|
|
17052
17056
|
}, new c.default());
|
|
17053
17057
|
}
|
|
17054
17058
|
function U(Q) {
|
|
@@ -17077,10 +17081,10 @@ var il = { exports: {} };
|
|
|
17077
17081
|
return oe(Q, de);
|
|
17078
17082
|
}, new c.default()) : Q.nodeType === Q.ELEMENT_NODE ? [].reduce.call(Q.childNodes || [], function(de, oe) {
|
|
17079
17083
|
var Ae = V(oe, ne, se);
|
|
17080
|
-
return oe.nodeType === Q.ELEMENT_NODE && (Ae = ne.reduce(function(ke,
|
|
17081
|
-
return
|
|
17082
|
-
}, Ae), Ae = (oe[re] || []).reduce(function(ke,
|
|
17083
|
-
return
|
|
17084
|
+
return oe.nodeType === Q.ELEMENT_NODE && (Ae = ne.reduce(function(ke, Se) {
|
|
17085
|
+
return Se(oe, ke);
|
|
17086
|
+
}, Ae), Ae = (oe[re] || []).reduce(function(ke, Se) {
|
|
17087
|
+
return Se(oe, ke);
|
|
17084
17088
|
}, Ae)), de.concat(Ae);
|
|
17085
17089
|
}, new c.default()) : new c.default();
|
|
17086
17090
|
}
|
|
@@ -17090,8 +17094,8 @@ var il = { exports: {} };
|
|
|
17090
17094
|
function J(Q, ne) {
|
|
17091
17095
|
var se = f.default.Attributor.Attribute.keys(Q), de = f.default.Attributor.Class.keys(Q), oe = f.default.Attributor.Style.keys(Q), Ae = {};
|
|
17092
17096
|
return se.concat(de).concat(oe).forEach(function(ke) {
|
|
17093
|
-
var
|
|
17094
|
-
|
|
17097
|
+
var Se = f.default.query(ke, f.default.Scope.ATTRIBUTE);
|
|
17098
|
+
Se != null && (Ae[Se.attrName] = Se.value(Q), Ae[Se.attrName]) || (Se = j[ke], Se != null && (Se.attrName === ke || Se.keyName === ke) && (Ae[Se.attrName] = Se.value(Q) || void 0), Se = N[ke], Se != null && (Se.attrName === ke || Se.keyName === ke) && (Se = N[ke], Ae[Se.attrName] = Se.value(Q) || void 0));
|
|
17095
17099
|
}), Object.keys(Ae).length > 0 && (ne = I(ne, Ae)), ne;
|
|
17096
17100
|
}
|
|
17097
17101
|
function ie(Q, ne) {
|
|
@@ -17234,10 +17238,10 @@ var il = { exports: {} };
|
|
|
17234
17238
|
value: !0
|
|
17235
17239
|
}), r.addControls = r.default = void 0;
|
|
17236
17240
|
var i = function() {
|
|
17237
|
-
function O(k,
|
|
17241
|
+
function O(k, T) {
|
|
17238
17242
|
var R = [], q = !0, W = !1, Y = void 0;
|
|
17239
17243
|
try {
|
|
17240
|
-
for (var re = k[Symbol.iterator](), z; !(q = (z = re.next()).done) && (R.push(z.value), !(
|
|
17244
|
+
for (var re = k[Symbol.iterator](), z; !(q = (z = re.next()).done) && (R.push(z.value), !(T && R.length === T)); q = !0)
|
|
17241
17245
|
;
|
|
17242
17246
|
} catch (j) {
|
|
17243
17247
|
W = !0, Y = j;
|
|
@@ -17251,29 +17255,29 @@ var il = { exports: {} };
|
|
|
17251
17255
|
}
|
|
17252
17256
|
return R;
|
|
17253
17257
|
}
|
|
17254
|
-
return function(k,
|
|
17258
|
+
return function(k, T) {
|
|
17255
17259
|
if (Array.isArray(k))
|
|
17256
17260
|
return k;
|
|
17257
17261
|
if (Symbol.iterator in Object(k))
|
|
17258
|
-
return O(k,
|
|
17262
|
+
return O(k, T);
|
|
17259
17263
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
17260
17264
|
};
|
|
17261
17265
|
}(), a = function() {
|
|
17262
|
-
function O(k,
|
|
17263
|
-
for (var R = 0; R <
|
|
17264
|
-
var q =
|
|
17266
|
+
function O(k, T) {
|
|
17267
|
+
for (var R = 0; R < T.length; R++) {
|
|
17268
|
+
var q = T[R];
|
|
17265
17269
|
q.enumerable = q.enumerable || !1, q.configurable = !0, "value" in q && (q.writable = !0), Object.defineProperty(k, q.key, q);
|
|
17266
17270
|
}
|
|
17267
17271
|
}
|
|
17268
|
-
return function(k,
|
|
17269
|
-
return
|
|
17272
|
+
return function(k, T, R) {
|
|
17273
|
+
return T && O(k.prototype, T), R && O(k, R), k;
|
|
17270
17274
|
};
|
|
17271
17275
|
}(), l = o(2), d = m(l), u = o(0), h = m(u), c = o(5), s = m(c), f = o(10), y = m(f), p = o(9), b = m(p);
|
|
17272
17276
|
function m(O) {
|
|
17273
17277
|
return O && O.__esModule ? O : { default: O };
|
|
17274
17278
|
}
|
|
17275
|
-
function g(O, k,
|
|
17276
|
-
return k in O ? Object.defineProperty(O, k, { value:
|
|
17279
|
+
function g(O, k, T) {
|
|
17280
|
+
return k in O ? Object.defineProperty(O, k, { value: T, enumerable: !0, configurable: !0, writable: !0 }) : O[k] = T, O;
|
|
17277
17281
|
}
|
|
17278
17282
|
function $(O, k) {
|
|
17279
17283
|
if (!(O instanceof k))
|
|
@@ -17289,19 +17293,19 @@ var il = { exports: {} };
|
|
|
17289
17293
|
throw new TypeError("Super expression must either be null or a function, not " + typeof k);
|
|
17290
17294
|
O.prototype = Object.create(k && k.prototype, { constructor: { value: O, enumerable: !1, writable: !0, configurable: !0 } }), k && (Object.setPrototypeOf ? Object.setPrototypeOf(O, k) : O.__proto__ = k);
|
|
17291
17295
|
}
|
|
17292
|
-
var
|
|
17296
|
+
var S = (0, y.default)("quill:toolbar"), E = function(O) {
|
|
17293
17297
|
w(k, O);
|
|
17294
|
-
function k(
|
|
17298
|
+
function k(T, R) {
|
|
17295
17299
|
$(this, k);
|
|
17296
|
-
var q = v(this, (k.__proto__ || Object.getPrototypeOf(k)).call(this,
|
|
17300
|
+
var q = v(this, (k.__proto__ || Object.getPrototypeOf(k)).call(this, T, R));
|
|
17297
17301
|
if (Array.isArray(q.options.container)) {
|
|
17298
17302
|
var W = document.createElement("div");
|
|
17299
|
-
D(W, q.options.container),
|
|
17303
|
+
D(W, q.options.container), T.container.parentNode.insertBefore(W, T.container), q.container = W;
|
|
17300
17304
|
} else
|
|
17301
17305
|
typeof q.options.container == "string" ? q.container = document.querySelector(q.options.container) : q.container = q.options.container;
|
|
17302
17306
|
if (!(q.container instanceof HTMLElement)) {
|
|
17303
17307
|
var Y;
|
|
17304
|
-
return Y =
|
|
17308
|
+
return Y = S.error("Container required for toolbar", q.options), v(q, Y);
|
|
17305
17309
|
}
|
|
17306
17310
|
return q.container.classList.add("ql-toolbar"), q.controls = [], q.handlers = {}, Object.keys(q.options.handlers).forEach(function(re) {
|
|
17307
17311
|
q.addHandler(re, q.options.handlers[re]);
|
|
@@ -17328,11 +17332,11 @@ var il = { exports: {} };
|
|
|
17328
17332
|
if (W) {
|
|
17329
17333
|
if (W = W.slice(3), R.tagName === "BUTTON" && R.setAttribute("type", "button"), this.handlers[W] == null) {
|
|
17330
17334
|
if (this.quill.scroll.whitelist != null && this.quill.scroll.whitelist[W] == null) {
|
|
17331
|
-
|
|
17335
|
+
S.warn("ignoring attaching to disabled format", W, R);
|
|
17332
17336
|
return;
|
|
17333
17337
|
}
|
|
17334
17338
|
if (h.default.query(W) == null) {
|
|
17335
|
-
|
|
17339
|
+
S.warn("ignoring attaching to nonexistent format", W, R);
|
|
17336
17340
|
return;
|
|
17337
17341
|
}
|
|
17338
17342
|
}
|
|
@@ -17389,14 +17393,14 @@ var il = { exports: {} };
|
|
|
17389
17393
|
}]), k;
|
|
17390
17394
|
}(b.default);
|
|
17391
17395
|
E.DEFAULTS = {};
|
|
17392
|
-
function x(O, k,
|
|
17396
|
+
function x(O, k, T) {
|
|
17393
17397
|
var R = document.createElement("button");
|
|
17394
|
-
R.setAttribute("type", "button"), R.classList.add("ql-" + k),
|
|
17398
|
+
R.setAttribute("type", "button"), R.classList.add("ql-" + k), T != null && (R.value = T), O.appendChild(R);
|
|
17395
17399
|
}
|
|
17396
17400
|
function D(O, k) {
|
|
17397
|
-
Array.isArray(k[0]) || (k = [k]), k.forEach(function(
|
|
17401
|
+
Array.isArray(k[0]) || (k = [k]), k.forEach(function(T) {
|
|
17398
17402
|
var R = document.createElement("span");
|
|
17399
|
-
R.classList.add("ql-formats"),
|
|
17403
|
+
R.classList.add("ql-formats"), T.forEach(function(q) {
|
|
17400
17404
|
if (typeof q == "string")
|
|
17401
17405
|
x(R, q);
|
|
17402
17406
|
else {
|
|
@@ -17406,9 +17410,9 @@ var il = { exports: {} };
|
|
|
17406
17410
|
}), O.appendChild(R);
|
|
17407
17411
|
});
|
|
17408
17412
|
}
|
|
17409
|
-
function C(O, k,
|
|
17413
|
+
function C(O, k, T) {
|
|
17410
17414
|
var R = document.createElement("select");
|
|
17411
|
-
R.classList.add("ql-" + k),
|
|
17415
|
+
R.classList.add("ql-" + k), T.forEach(function(q) {
|
|
17412
17416
|
var W = document.createElement("option");
|
|
17413
17417
|
q !== !1 ? W.setAttribute("value", q) : W.setAttribute("selected", "selected"), R.appendChild(W);
|
|
17414
17418
|
}), O.appendChild(R);
|
|
@@ -17417,22 +17421,22 @@ var il = { exports: {} };
|
|
|
17417
17421
|
container: null,
|
|
17418
17422
|
handlers: {
|
|
17419
17423
|
clean: function() {
|
|
17420
|
-
var k = this,
|
|
17421
|
-
if (
|
|
17422
|
-
if (
|
|
17424
|
+
var k = this, T = this.quill.getSelection();
|
|
17425
|
+
if (T != null)
|
|
17426
|
+
if (T.length == 0) {
|
|
17423
17427
|
var R = this.quill.getFormat();
|
|
17424
17428
|
Object.keys(R).forEach(function(q) {
|
|
17425
17429
|
h.default.query(q, h.default.Scope.INLINE) != null && k.quill.format(q, !1);
|
|
17426
17430
|
});
|
|
17427
17431
|
} else
|
|
17428
|
-
this.quill.removeFormat(
|
|
17432
|
+
this.quill.removeFormat(T, s.default.sources.USER);
|
|
17429
17433
|
},
|
|
17430
17434
|
direction: function(k) {
|
|
17431
|
-
var
|
|
17432
|
-
k === "rtl" &&
|
|
17435
|
+
var T = this.quill.getFormat().align;
|
|
17436
|
+
k === "rtl" && T == null ? this.quill.format("align", "right", s.default.sources.USER) : !k && T === "right" && this.quill.format("align", !1, s.default.sources.USER), this.quill.format("direction", k, s.default.sources.USER);
|
|
17433
17437
|
},
|
|
17434
17438
|
indent: function(k) {
|
|
17435
|
-
var
|
|
17439
|
+
var T = this.quill.getSelection(), R = this.quill.getFormat(T), q = parseInt(R.indent || 0);
|
|
17436
17440
|
if (k === "+1" || k === "-1") {
|
|
17437
17441
|
var W = k === "+1" ? 1 : -1;
|
|
17438
17442
|
R.direction === "rtl" && (W *= -1), this.quill.format("indent", q + W, s.default.sources.USER);
|
|
@@ -17442,7 +17446,7 @@ var il = { exports: {} };
|
|
|
17442
17446
|
k === !0 && (k = prompt("Enter link URL:")), this.quill.format("link", k, s.default.sources.USER);
|
|
17443
17447
|
},
|
|
17444
17448
|
list: function(k) {
|
|
17445
|
-
var
|
|
17449
|
+
var T = this.quill.getSelection(), R = this.quill.getFormat(T);
|
|
17446
17450
|
k === "check" ? R.list === "checked" || R.list === "unchecked" ? this.quill.format("list", !1, s.default.sources.USER) : this.quill.format("list", "unchecked", s.default.sources.USER) : this.quill.format("list", k, s.default.sources.USER);
|
|
17447
17451
|
}
|
|
17448
17452
|
}
|
|
@@ -17651,9 +17655,9 @@ var il = { exports: {} };
|
|
|
17651
17655
|
});
|
|
17652
17656
|
var i = function() {
|
|
17653
17657
|
function C(O, k) {
|
|
17654
|
-
var
|
|
17658
|
+
var T = [], R = !0, q = !1, W = void 0;
|
|
17655
17659
|
try {
|
|
17656
|
-
for (var Y = O[Symbol.iterator](), re; !(R = (re = Y.next()).done) && (
|
|
17660
|
+
for (var Y = O[Symbol.iterator](), re; !(R = (re = Y.next()).done) && (T.push(re.value), !(k && T.length === k)); R = !0)
|
|
17657
17661
|
;
|
|
17658
17662
|
} catch (z) {
|
|
17659
17663
|
q = !0, W = z;
|
|
@@ -17665,7 +17669,7 @@ var il = { exports: {} };
|
|
|
17665
17669
|
throw W;
|
|
17666
17670
|
}
|
|
17667
17671
|
}
|
|
17668
|
-
return
|
|
17672
|
+
return T;
|
|
17669
17673
|
}
|
|
17670
17674
|
return function(O, k) {
|
|
17671
17675
|
if (Array.isArray(O))
|
|
@@ -17674,27 +17678,27 @@ var il = { exports: {} };
|
|
|
17674
17678
|
return C(O, k);
|
|
17675
17679
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
17676
17680
|
};
|
|
17677
|
-
}(), a = function C(O, k,
|
|
17681
|
+
}(), a = function C(O, k, T) {
|
|
17678
17682
|
O === null && (O = Function.prototype);
|
|
17679
17683
|
var R = Object.getOwnPropertyDescriptor(O, k);
|
|
17680
17684
|
if (R === void 0) {
|
|
17681
17685
|
var q = Object.getPrototypeOf(O);
|
|
17682
|
-
return q === null ? void 0 : C(q, k,
|
|
17686
|
+
return q === null ? void 0 : C(q, k, T);
|
|
17683
17687
|
} else {
|
|
17684
17688
|
if ("value" in R)
|
|
17685
17689
|
return R.value;
|
|
17686
17690
|
var W = R.get;
|
|
17687
|
-
return W === void 0 ? void 0 : W.call(
|
|
17691
|
+
return W === void 0 ? void 0 : W.call(T);
|
|
17688
17692
|
}
|
|
17689
17693
|
}, l = function() {
|
|
17690
17694
|
function C(O, k) {
|
|
17691
|
-
for (var
|
|
17692
|
-
var R = k[
|
|
17695
|
+
for (var T = 0; T < k.length; T++) {
|
|
17696
|
+
var R = k[T];
|
|
17693
17697
|
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(O, R.key, R);
|
|
17694
17698
|
}
|
|
17695
17699
|
}
|
|
17696
|
-
return function(O, k,
|
|
17697
|
-
return k && C(O.prototype, k),
|
|
17700
|
+
return function(O, k, T) {
|
|
17701
|
+
return k && C(O.prototype, k), T && C(O, T), O;
|
|
17698
17702
|
};
|
|
17699
17703
|
}(), d = o(3), u = $(d), h = o(8), c = $(h), s = o(43), f = $(s), y = o(27), p = $(y), b = o(15), m = o(41), g = $(m);
|
|
17700
17704
|
function $(C) {
|
|
@@ -17709,23 +17713,23 @@ var il = { exports: {} };
|
|
|
17709
17713
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
17710
17714
|
return O && (typeof O == "object" || typeof O == "function") ? O : C;
|
|
17711
17715
|
}
|
|
17712
|
-
function
|
|
17716
|
+
function S(C, O) {
|
|
17713
17717
|
if (typeof O != "function" && O !== null)
|
|
17714
17718
|
throw new TypeError("Super expression must either be null or a function, not " + typeof O);
|
|
17715
17719
|
C.prototype = Object.create(O && O.prototype, { constructor: { value: C, enumerable: !1, writable: !0, configurable: !0 } }), O && (Object.setPrototypeOf ? Object.setPrototypeOf(C, O) : C.__proto__ = O);
|
|
17716
17720
|
}
|
|
17717
17721
|
var E = [[{ header: ["1", "2", "3", !1] }], ["bold", "italic", "underline", "link"], [{ list: "ordered" }, { list: "bullet" }], ["clean"]], x = function(C) {
|
|
17718
|
-
|
|
17719
|
-
function O(k,
|
|
17720
|
-
v(this, O),
|
|
17721
|
-
var R = w(this, (O.__proto__ || Object.getPrototypeOf(O)).call(this, k,
|
|
17722
|
+
S(O, C);
|
|
17723
|
+
function O(k, T) {
|
|
17724
|
+
v(this, O), T.modules.toolbar != null && T.modules.toolbar.container == null && (T.modules.toolbar.container = E);
|
|
17725
|
+
var R = w(this, (O.__proto__ || Object.getPrototypeOf(O)).call(this, k, T));
|
|
17722
17726
|
return R.quill.container.classList.add("ql-snow"), R;
|
|
17723
17727
|
}
|
|
17724
17728
|
return l(O, [{
|
|
17725
17729
|
key: "extendToolbar",
|
|
17726
|
-
value: function(
|
|
17727
|
-
|
|
17728
|
-
|
|
17730
|
+
value: function(T) {
|
|
17731
|
+
T.container.classList.add("ql-snow"), this.buildButtons([].slice.call(T.container.querySelectorAll("button")), g.default), this.buildPickers([].slice.call(T.container.querySelectorAll("select")), g.default), this.tooltip = new D(this.quill, this.options.bounds), T.container.querySelector(".ql-link") && this.quill.keyboard.addBinding({ key: "K", shortKey: !0 }, function(R, q) {
|
|
17732
|
+
T.handlers.link.call(T, !q.format.link);
|
|
17729
17733
|
});
|
|
17730
17734
|
}
|
|
17731
17735
|
}]), O;
|
|
@@ -17739,10 +17743,10 @@ var il = { exports: {} };
|
|
|
17739
17743
|
var k = this.quill.getSelection();
|
|
17740
17744
|
if (k == null || k.length == 0)
|
|
17741
17745
|
return;
|
|
17742
|
-
var
|
|
17743
|
-
/^\S+@\S+\.\S+$/.test(
|
|
17746
|
+
var T = this.quill.getText(k);
|
|
17747
|
+
/^\S+@\S+\.\S+$/.test(T) && T.indexOf("mailto:") !== 0 && (T = "mailto:" + T);
|
|
17744
17748
|
var R = this.quill.theme.tooltip;
|
|
17745
|
-
R.edit("link",
|
|
17749
|
+
R.edit("link", T);
|
|
17746
17750
|
} else
|
|
17747
17751
|
this.quill.format("link", !1);
|
|
17748
17752
|
}
|
|
@@ -17751,37 +17755,37 @@ var il = { exports: {} };
|
|
|
17751
17755
|
}
|
|
17752
17756
|
});
|
|
17753
17757
|
var D = function(C) {
|
|
17754
|
-
|
|
17755
|
-
function O(k,
|
|
17758
|
+
S(O, C);
|
|
17759
|
+
function O(k, T) {
|
|
17756
17760
|
v(this, O);
|
|
17757
|
-
var R = w(this, (O.__proto__ || Object.getPrototypeOf(O)).call(this, k,
|
|
17761
|
+
var R = w(this, (O.__proto__ || Object.getPrototypeOf(O)).call(this, k, T));
|
|
17758
17762
|
return R.preview = R.root.querySelector("a.ql-preview"), R;
|
|
17759
17763
|
}
|
|
17760
17764
|
return l(O, [{
|
|
17761
17765
|
key: "listen",
|
|
17762
17766
|
value: function() {
|
|
17763
|
-
var
|
|
17767
|
+
var T = this;
|
|
17764
17768
|
a(O.prototype.__proto__ || Object.getPrototypeOf(O.prototype), "listen", this).call(this), this.root.querySelector("a.ql-action").addEventListener("click", function(R) {
|
|
17765
|
-
|
|
17769
|
+
T.root.classList.contains("ql-editing") ? T.save() : T.edit("link", T.preview.textContent), R.preventDefault();
|
|
17766
17770
|
}), this.root.querySelector("a.ql-remove").addEventListener("click", function(R) {
|
|
17767
|
-
if (
|
|
17768
|
-
var q =
|
|
17769
|
-
|
|
17771
|
+
if (T.linkRange != null) {
|
|
17772
|
+
var q = T.linkRange;
|
|
17773
|
+
T.restoreFocus(), T.quill.formatText(q, "link", !1, c.default.sources.USER), delete T.linkRange;
|
|
17770
17774
|
}
|
|
17771
|
-
R.preventDefault(),
|
|
17775
|
+
R.preventDefault(), T.hide();
|
|
17772
17776
|
}), this.quill.on(c.default.events.SELECTION_CHANGE, function(R, q, W) {
|
|
17773
17777
|
if (R != null) {
|
|
17774
17778
|
if (R.length === 0 && W === c.default.sources.USER) {
|
|
17775
|
-
var Y =
|
|
17779
|
+
var Y = T.quill.scroll.descendant(p.default, R.index), re = i(Y, 2), z = re[0], j = re[1];
|
|
17776
17780
|
if (z != null) {
|
|
17777
|
-
|
|
17781
|
+
T.linkRange = new b.Range(R.index - j, z.length());
|
|
17778
17782
|
var N = p.default.formats(z.domNode);
|
|
17779
|
-
|
|
17783
|
+
T.preview.textContent = N, T.preview.setAttribute("href", N), T.show(), T.position(T.quill.getBounds(T.linkRange));
|
|
17780
17784
|
return;
|
|
17781
17785
|
}
|
|
17782
17786
|
} else
|
|
17783
|
-
delete
|
|
17784
|
-
|
|
17787
|
+
delete T.linkRange;
|
|
17788
|
+
T.hide();
|
|
17785
17789
|
}
|
|
17786
17790
|
});
|
|
17787
17791
|
}
|
|
@@ -17800,7 +17804,7 @@ var il = { exports: {} };
|
|
|
17800
17804
|
Object.defineProperty(r, "__esModule", {
|
|
17801
17805
|
value: !0
|
|
17802
17806
|
});
|
|
17803
|
-
var i = o(29), a = oe(i), l = o(36), d = o(38), u = o(64), h = o(65), c = oe(h), s = o(66), f = oe(s), y = o(67), p = oe(y), b = o(37), m = o(26), g = o(39), $ = o(40), v = o(56), w = oe(v),
|
|
17807
|
+
var i = o(29), a = oe(i), l = o(36), d = o(38), u = o(64), h = o(65), c = oe(h), s = o(66), f = oe(s), y = o(67), p = oe(y), b = o(37), m = o(26), g = o(39), $ = o(40), v = o(56), w = oe(v), S = o(68), E = oe(S), x = o(27), D = oe(x), C = o(69), O = oe(C), k = o(70), T = oe(k), R = o(71), q = oe(R), W = o(72), Y = oe(W), re = o(73), z = oe(re), j = o(13), N = oe(j), A = o(74), I = oe(A), U = o(75), F = oe(U), L = o(57), V = oe(L), Z = o(41), J = oe(Z), ie = o(28), he = oe(ie), _e = o(59), xe = oe(_e), Ie = o(60), De = oe(Ie), We = o(61), Ke = oe(We), Q = o(108), ne = oe(Q), se = o(62), de = oe(se);
|
|
17804
17808
|
function oe(Ae) {
|
|
17805
17809
|
return Ae && Ae.__esModule ? Ae : { default: Ae };
|
|
17806
17810
|
}
|
|
@@ -17835,7 +17839,7 @@ var il = { exports: {} };
|
|
|
17835
17839
|
"formats/italic": E.default,
|
|
17836
17840
|
"formats/link": D.default,
|
|
17837
17841
|
"formats/script": O.default,
|
|
17838
|
-
"formats/strike":
|
|
17842
|
+
"formats/strike": T.default,
|
|
17839
17843
|
"formats/underline": q.default,
|
|
17840
17844
|
"formats/image": Y.default,
|
|
17841
17845
|
"formats/video": z.default,
|
|
@@ -18017,21 +18021,21 @@ var il = { exports: {} };
|
|
|
18017
18021
|
value: !0
|
|
18018
18022
|
}), r.default = r.ListItem = void 0;
|
|
18019
18023
|
var i = function() {
|
|
18020
|
-
function v(w,
|
|
18021
|
-
for (var E = 0; E <
|
|
18022
|
-
var x =
|
|
18024
|
+
function v(w, S) {
|
|
18025
|
+
for (var E = 0; E < S.length; E++) {
|
|
18026
|
+
var x = S[E];
|
|
18023
18027
|
x.enumerable = x.enumerable || !1, x.configurable = !0, "value" in x && (x.writable = !0), Object.defineProperty(w, x.key, x);
|
|
18024
18028
|
}
|
|
18025
18029
|
}
|
|
18026
|
-
return function(w,
|
|
18027
|
-
return
|
|
18030
|
+
return function(w, S, E) {
|
|
18031
|
+
return S && v(w.prototype, S), E && v(w, E), w;
|
|
18028
18032
|
};
|
|
18029
|
-
}(), a = function v(w,
|
|
18033
|
+
}(), a = function v(w, S, E) {
|
|
18030
18034
|
w === null && (w = Function.prototype);
|
|
18031
|
-
var x = Object.getOwnPropertyDescriptor(w,
|
|
18035
|
+
var x = Object.getOwnPropertyDescriptor(w, S);
|
|
18032
18036
|
if (x === void 0) {
|
|
18033
18037
|
var D = Object.getPrototypeOf(w);
|
|
18034
|
-
return D === null ? void 0 : v(D,
|
|
18038
|
+
return D === null ? void 0 : v(D, S, E);
|
|
18035
18039
|
} else {
|
|
18036
18040
|
if ("value" in x)
|
|
18037
18041
|
return x.value;
|
|
@@ -18042,8 +18046,8 @@ var il = { exports: {} };
|
|
|
18042
18046
|
function f(v) {
|
|
18043
18047
|
return v && v.__esModule ? v : { default: v };
|
|
18044
18048
|
}
|
|
18045
|
-
function y(v, w,
|
|
18046
|
-
return w in v ? Object.defineProperty(v, w, { value:
|
|
18049
|
+
function y(v, w, S) {
|
|
18050
|
+
return w in v ? Object.defineProperty(v, w, { value: S, enumerable: !0, configurable: !0, writable: !0 }) : v[w] = S, v;
|
|
18047
18051
|
}
|
|
18048
18052
|
function p(v, w) {
|
|
18049
18053
|
if (!(v instanceof w))
|
|
@@ -18103,15 +18107,15 @@ var il = { exports: {} };
|
|
|
18103
18107
|
return E.hasAttribute("data-checked") ? E.getAttribute("data-checked") === "true" ? "checked" : "unchecked" : "bullet";
|
|
18104
18108
|
}
|
|
18105
18109
|
}]);
|
|
18106
|
-
function w(
|
|
18110
|
+
function w(S) {
|
|
18107
18111
|
p(this, w);
|
|
18108
|
-
var E = b(this, (w.__proto__ || Object.getPrototypeOf(w)).call(this,
|
|
18109
|
-
if (C.target.parentNode ===
|
|
18110
|
-
var O = E.statics.formats(
|
|
18112
|
+
var E = b(this, (w.__proto__ || Object.getPrototypeOf(w)).call(this, S)), x = function(C) {
|
|
18113
|
+
if (C.target.parentNode === S) {
|
|
18114
|
+
var O = E.statics.formats(S), k = d.default.find(C.target);
|
|
18111
18115
|
O === "checked" ? k.format("list", "unchecked") : O === "unchecked" && k.format("list", "checked");
|
|
18112
18116
|
}
|
|
18113
18117
|
};
|
|
18114
|
-
return
|
|
18118
|
+
return S.addEventListener("touchstart", x), S.addEventListener("mousedown", x), E;
|
|
18115
18119
|
}
|
|
18116
18120
|
return i(w, [{
|
|
18117
18121
|
key: "format",
|
|
@@ -18345,8 +18349,8 @@ var il = { exports: {} };
|
|
|
18345
18349
|
} else {
|
|
18346
18350
|
if ("value" in v)
|
|
18347
18351
|
return v.value;
|
|
18348
|
-
var
|
|
18349
|
-
return
|
|
18352
|
+
var S = v.get;
|
|
18353
|
+
return S === void 0 ? void 0 : S.call($);
|
|
18350
18354
|
}
|
|
18351
18355
|
}, l = o(0), d = h(l), u = o(27);
|
|
18352
18356
|
function h(b) {
|
|
@@ -18433,8 +18437,8 @@ var il = { exports: {} };
|
|
|
18433
18437
|
} else {
|
|
18434
18438
|
if ("value" in v)
|
|
18435
18439
|
return v.value;
|
|
18436
|
-
var
|
|
18437
|
-
return
|
|
18440
|
+
var S = v.get;
|
|
18441
|
+
return S === void 0 ? void 0 : S.call($);
|
|
18438
18442
|
}
|
|
18439
18443
|
}, l = o(4), d = o(27), u = h(d);
|
|
18440
18444
|
function h(b) {
|
|
@@ -18499,25 +18503,25 @@ var il = { exports: {} };
|
|
|
18499
18503
|
}), r.default = r.FormulaBlot = void 0;
|
|
18500
18504
|
var i = function() {
|
|
18501
18505
|
function $(v, w) {
|
|
18502
|
-
for (var
|
|
18503
|
-
var E = w[
|
|
18506
|
+
for (var S = 0; S < w.length; S++) {
|
|
18507
|
+
var E = w[S];
|
|
18504
18508
|
E.enumerable = E.enumerable || !1, E.configurable = !0, "value" in E && (E.writable = !0), Object.defineProperty(v, E.key, E);
|
|
18505
18509
|
}
|
|
18506
18510
|
}
|
|
18507
|
-
return function(v, w,
|
|
18508
|
-
return w && $(v.prototype, w),
|
|
18511
|
+
return function(v, w, S) {
|
|
18512
|
+
return w && $(v.prototype, w), S && $(v, S), v;
|
|
18509
18513
|
};
|
|
18510
|
-
}(), a = function $(v, w,
|
|
18514
|
+
}(), a = function $(v, w, S) {
|
|
18511
18515
|
v === null && (v = Function.prototype);
|
|
18512
18516
|
var E = Object.getOwnPropertyDescriptor(v, w);
|
|
18513
18517
|
if (E === void 0) {
|
|
18514
18518
|
var x = Object.getPrototypeOf(v);
|
|
18515
|
-
return x === null ? void 0 : $(x, w,
|
|
18519
|
+
return x === null ? void 0 : $(x, w, S);
|
|
18516
18520
|
} else {
|
|
18517
18521
|
if ("value" in E)
|
|
18518
18522
|
return E.value;
|
|
18519
18523
|
var D = E.get;
|
|
18520
|
-
return D === void 0 ? void 0 : D.call(
|
|
18524
|
+
return D === void 0 ? void 0 : D.call(S);
|
|
18521
18525
|
}
|
|
18522
18526
|
}, l = o(35), d = f(l), u = o(5), h = f(u), c = o(9), s = f(c);
|
|
18523
18527
|
function f($) {
|
|
@@ -18544,17 +18548,17 @@ var il = { exports: {} };
|
|
|
18544
18548
|
}
|
|
18545
18549
|
return i(v, null, [{
|
|
18546
18550
|
key: "create",
|
|
18547
|
-
value: function(
|
|
18548
|
-
var E = a(v.__proto__ || Object.getPrototypeOf(v), "create", this).call(this,
|
|
18549
|
-
return typeof
|
|
18551
|
+
value: function(S) {
|
|
18552
|
+
var E = a(v.__proto__ || Object.getPrototypeOf(v), "create", this).call(this, S);
|
|
18553
|
+
return typeof S == "string" && (window.katex.render(S, E, {
|
|
18550
18554
|
throwOnError: !1,
|
|
18551
18555
|
errorColor: "#f00"
|
|
18552
|
-
}), E.setAttribute("data-value",
|
|
18556
|
+
}), E.setAttribute("data-value", S)), E;
|
|
18553
18557
|
}
|
|
18554
18558
|
}, {
|
|
18555
18559
|
key: "value",
|
|
18556
|
-
value: function(
|
|
18557
|
-
return
|
|
18560
|
+
value: function(S) {
|
|
18561
|
+
return S.getAttribute("data-value");
|
|
18558
18562
|
}
|
|
18559
18563
|
}]), v;
|
|
18560
18564
|
}(d.default);
|
|
@@ -18584,21 +18588,21 @@ var il = { exports: {} };
|
|
|
18584
18588
|
value: !0
|
|
18585
18589
|
}), r.default = r.CodeToken = r.CodeBlock = void 0;
|
|
18586
18590
|
var i = function() {
|
|
18587
|
-
function
|
|
18591
|
+
function S(E, x) {
|
|
18588
18592
|
for (var D = 0; D < x.length; D++) {
|
|
18589
18593
|
var C = x[D];
|
|
18590
18594
|
C.enumerable = C.enumerable || !1, C.configurable = !0, "value" in C && (C.writable = !0), Object.defineProperty(E, C.key, C);
|
|
18591
18595
|
}
|
|
18592
18596
|
}
|
|
18593
18597
|
return function(E, x, D) {
|
|
18594
|
-
return x &&
|
|
18598
|
+
return x && S(E.prototype, x), D && S(E, D), E;
|
|
18595
18599
|
};
|
|
18596
|
-
}(), a = function
|
|
18600
|
+
}(), a = function S(E, x, D) {
|
|
18597
18601
|
E === null && (E = Function.prototype);
|
|
18598
18602
|
var C = Object.getOwnPropertyDescriptor(E, x);
|
|
18599
18603
|
if (C === void 0) {
|
|
18600
18604
|
var O = Object.getPrototypeOf(E);
|
|
18601
|
-
return O === null ? void 0 :
|
|
18605
|
+
return O === null ? void 0 : S(O, x, D);
|
|
18602
18606
|
} else {
|
|
18603
18607
|
if ("value" in C)
|
|
18604
18608
|
return C.value;
|
|
@@ -18606,25 +18610,25 @@ var il = { exports: {} };
|
|
|
18606
18610
|
return k === void 0 ? void 0 : k.call(D);
|
|
18607
18611
|
}
|
|
18608
18612
|
}, l = o(0), d = p(l), u = o(5), h = p(u), c = o(9), s = p(c), f = o(13), y = p(f);
|
|
18609
|
-
function p(
|
|
18610
|
-
return
|
|
18613
|
+
function p(S) {
|
|
18614
|
+
return S && S.__esModule ? S : { default: S };
|
|
18611
18615
|
}
|
|
18612
|
-
function b(
|
|
18613
|
-
if (!(
|
|
18616
|
+
function b(S, E) {
|
|
18617
|
+
if (!(S instanceof E))
|
|
18614
18618
|
throw new TypeError("Cannot call a class as a function");
|
|
18615
18619
|
}
|
|
18616
|
-
function m(
|
|
18617
|
-
if (!
|
|
18620
|
+
function m(S, E) {
|
|
18621
|
+
if (!S)
|
|
18618
18622
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
18619
|
-
return E && (typeof E == "object" || typeof E == "function") ? E :
|
|
18623
|
+
return E && (typeof E == "object" || typeof E == "function") ? E : S;
|
|
18620
18624
|
}
|
|
18621
|
-
function g(
|
|
18625
|
+
function g(S, E) {
|
|
18622
18626
|
if (typeof E != "function" && E !== null)
|
|
18623
18627
|
throw new TypeError("Super expression must either be null or a function, not " + typeof E);
|
|
18624
|
-
|
|
18628
|
+
S.prototype = Object.create(E && E.prototype, { constructor: { value: S, enumerable: !1, writable: !0, configurable: !0 } }), E && (Object.setPrototypeOf ? Object.setPrototypeOf(S, E) : S.__proto__ = E);
|
|
18625
18629
|
}
|
|
18626
|
-
var $ = function(
|
|
18627
|
-
g(E,
|
|
18630
|
+
var $ = function(S) {
|
|
18631
|
+
g(E, S);
|
|
18628
18632
|
function E() {
|
|
18629
18633
|
return b(this, E), m(this, (E.__proto__ || Object.getPrototypeOf(E)).apply(this, arguments));
|
|
18630
18634
|
}
|
|
@@ -18644,8 +18648,8 @@ var il = { exports: {} };
|
|
|
18644
18648
|
$.className = "ql-syntax";
|
|
18645
18649
|
var v = new d.default.Attributor.Class("token", "hljs", {
|
|
18646
18650
|
scope: d.default.Scope.INLINE
|
|
18647
|
-
}), w = function(
|
|
18648
|
-
g(E,
|
|
18651
|
+
}), w = function(S) {
|
|
18652
|
+
g(E, S), i(E, null, [{
|
|
18649
18653
|
key: "register",
|
|
18650
18654
|
value: function() {
|
|
18651
18655
|
h.default.register(v, !0), h.default.register($, !0);
|
|
@@ -18679,8 +18683,8 @@ var il = { exports: {} };
|
|
|
18679
18683
|
}(s.default);
|
|
18680
18684
|
w.DEFAULTS = {
|
|
18681
18685
|
highlight: function() {
|
|
18682
|
-
return window.hljs == null ? null : function(
|
|
18683
|
-
var E = window.hljs.highlightAuto(
|
|
18686
|
+
return window.hljs == null ? null : function(S) {
|
|
18687
|
+
var E = window.hljs.highlightAuto(S);
|
|
18684
18688
|
return E.value;
|
|
18685
18689
|
};
|
|
18686
18690
|
}(),
|
|
@@ -18862,8 +18866,8 @@ var il = { exports: {} };
|
|
|
18862
18866
|
} else {
|
|
18863
18867
|
if ("value" in O)
|
|
18864
18868
|
return O.value;
|
|
18865
|
-
var
|
|
18866
|
-
return
|
|
18869
|
+
var T = O.get;
|
|
18870
|
+
return T === void 0 ? void 0 : T.call(C);
|
|
18867
18871
|
}
|
|
18868
18872
|
}, a = function() {
|
|
18869
18873
|
function E(x, D) {
|
|
@@ -18903,7 +18907,7 @@ var il = { exports: {} };
|
|
|
18903
18907
|
return a(x, [{
|
|
18904
18908
|
key: "extendToolbar",
|
|
18905
18909
|
value: function(C) {
|
|
18906
|
-
this.tooltip = new
|
|
18910
|
+
this.tooltip = new S(this.quill, this.options.bounds), this.tooltip.root.appendChild(C.container), this.buildButtons([].slice.call(C.container.querySelectorAll("button")), p.default), this.buildPickers([].slice.call(C.container.querySelectorAll("select")), p.default);
|
|
18907
18911
|
}
|
|
18908
18912
|
}]), x;
|
|
18909
18913
|
}(s.default);
|
|
@@ -18918,20 +18922,20 @@ var il = { exports: {} };
|
|
|
18918
18922
|
}
|
|
18919
18923
|
}
|
|
18920
18924
|
});
|
|
18921
|
-
var
|
|
18925
|
+
var S = function(E) {
|
|
18922
18926
|
$(x, E);
|
|
18923
18927
|
function x(D, C) {
|
|
18924
18928
|
m(this, x);
|
|
18925
18929
|
var O = g(this, (x.__proto__ || Object.getPrototypeOf(x)).call(this, D, C));
|
|
18926
|
-
return O.quill.on(h.default.events.EDITOR_CHANGE, function(k,
|
|
18930
|
+
return O.quill.on(h.default.events.EDITOR_CHANGE, function(k, T, R, q) {
|
|
18927
18931
|
if (k === h.default.events.SELECTION_CHANGE)
|
|
18928
|
-
if (
|
|
18932
|
+
if (T != null && T.length > 0 && q === h.default.sources.USER) {
|
|
18929
18933
|
O.show(), O.root.style.left = "0px", O.root.style.width = "", O.root.style.width = O.root.offsetWidth + "px";
|
|
18930
|
-
var W = O.quill.getLines(
|
|
18934
|
+
var W = O.quill.getLines(T.index, T.length);
|
|
18931
18935
|
if (W.length === 1)
|
|
18932
|
-
O.position(O.quill.getBounds(
|
|
18936
|
+
O.position(O.quill.getBounds(T));
|
|
18933
18937
|
else {
|
|
18934
|
-
var Y = W[W.length - 1], re = O.quill.getIndex(Y), z = Math.min(Y.length() - 1,
|
|
18938
|
+
var Y = W[W.length - 1], re = O.quill.getIndex(Y), z = Math.min(Y.length() - 1, T.index + T.length - re), j = O.quill.getBounds(new f.Range(re, z));
|
|
18935
18939
|
O.position(j);
|
|
18936
18940
|
}
|
|
18937
18941
|
} else
|
|
@@ -18968,7 +18972,7 @@ var il = { exports: {} };
|
|
|
18968
18972
|
}
|
|
18969
18973
|
}]), x;
|
|
18970
18974
|
}(c.BaseTooltip);
|
|
18971
|
-
|
|
18975
|
+
S.TEMPLATE = ['<span class="ql-tooltip-arrow"></span>', '<div class="ql-tooltip-editor">', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-close"></a>', "</div>"].join(""), r.BubbleTooltip = S, r.default = w;
|
|
18972
18976
|
},
|
|
18973
18977
|
/* 109 */
|
|
18974
18978
|
/***/
|
|
@@ -18982,7 +18986,7 @@ var il = { exports: {} };
|
|
|
18982
18986
|
})(il);
|
|
18983
18987
|
var J1 = il.exports;
|
|
18984
18988
|
const Be = /* @__PURE__ */ hi(J1);
|
|
18985
|
-
var zt = -1,
|
|
18989
|
+
var zt = -1, Mt = 1, Ot = 0;
|
|
18986
18990
|
function ui(t, n, e, r) {
|
|
18987
18991
|
if (t === n)
|
|
18988
18992
|
return t ? [[Ot, t]] : [];
|
|
@@ -19001,18 +19005,18 @@ function ui(t, n, e, r) {
|
|
|
19001
19005
|
function X1(t, n) {
|
|
19002
19006
|
var e;
|
|
19003
19007
|
if (!t)
|
|
19004
|
-
return [[
|
|
19008
|
+
return [[Mt, n]];
|
|
19005
19009
|
if (!n)
|
|
19006
19010
|
return [[zt, t]];
|
|
19007
19011
|
var r = t.length > n.length ? t : n, o = t.length > n.length ? n : t, i = r.indexOf(o);
|
|
19008
19012
|
if (i !== -1)
|
|
19009
19013
|
return e = [
|
|
19010
|
-
[
|
|
19014
|
+
[Mt, r.substring(0, i)],
|
|
19011
19015
|
[Ot, o],
|
|
19012
|
-
[
|
|
19016
|
+
[Mt, r.substring(i + o.length)]
|
|
19013
19017
|
], t.length > n.length && (e[0][0] = e[2][0] = zt), e;
|
|
19014
19018
|
if (o.length === 1)
|
|
19015
|
-
return [[zt, t], [
|
|
19019
|
+
return [[zt, t], [Mt, n]];
|
|
19016
19020
|
var a = e0(t, n);
|
|
19017
19021
|
if (a) {
|
|
19018
19022
|
var l = a[0], d = a[1], u = a[2], h = a[3], c = a[4], s = ui(l, u), f = ui(d, h);
|
|
@@ -19037,18 +19041,18 @@ function Q1(t, n) {
|
|
|
19037
19041
|
else if (c) {
|
|
19038
19042
|
var w = i + h - m;
|
|
19039
19043
|
if (w >= 0 && w < a && d[w] !== -1) {
|
|
19040
|
-
var
|
|
19041
|
-
if ($ >=
|
|
19044
|
+
var S = e - d[w];
|
|
19045
|
+
if ($ >= S)
|
|
19042
19046
|
return la(t, n, $, v);
|
|
19043
19047
|
}
|
|
19044
19048
|
}
|
|
19045
19049
|
}
|
|
19046
19050
|
for (var E = -b + y; E <= b - p; E += 2) {
|
|
19047
|
-
var w = i + E,
|
|
19048
|
-
E === -b || E !== b && d[w - 1] < d[w + 1] ?
|
|
19049
|
-
for (var x =
|
|
19050
|
-
|
|
19051
|
-
if (d[w] =
|
|
19051
|
+
var w = i + E, S;
|
|
19052
|
+
E === -b || E !== b && d[w - 1] < d[w + 1] ? S = d[w + 1] : S = d[w - 1] + 1;
|
|
19053
|
+
for (var x = S - E; S < e && x < r && t.charAt(e - S - 1) === n.charAt(r - x - 1); )
|
|
19054
|
+
S++, x++;
|
|
19055
|
+
if (d[w] = S, S > e)
|
|
19052
19056
|
p += 2;
|
|
19053
19057
|
else if (x > r)
|
|
19054
19058
|
y += 2;
|
|
@@ -19056,13 +19060,13 @@ function Q1(t, n) {
|
|
|
19056
19060
|
var g = i + h - E;
|
|
19057
19061
|
if (g >= 0 && g < a && l[g] !== -1) {
|
|
19058
19062
|
var $ = l[g], v = i + $ - g;
|
|
19059
|
-
if (
|
|
19063
|
+
if (S = e - S, $ >= S)
|
|
19060
19064
|
return la(t, n, $, v);
|
|
19061
19065
|
}
|
|
19062
19066
|
}
|
|
19063
19067
|
}
|
|
19064
19068
|
}
|
|
19065
|
-
return [[zt, t], [
|
|
19069
|
+
return [[zt, t], [Mt, n]];
|
|
19066
19070
|
}
|
|
19067
19071
|
function la(t, n, e, r) {
|
|
19068
19072
|
var o = t.substring(0, e), i = n.substring(0, r), a = t.substring(e), l = n.substring(r), d = ui(o, i), u = ui(a, l);
|
|
@@ -19087,7 +19091,7 @@ function e0(t, n) {
|
|
|
19087
19091
|
if (e.length < 4 || r.length * 2 < e.length)
|
|
19088
19092
|
return null;
|
|
19089
19093
|
function o(f, y, p) {
|
|
19090
|
-
for (var b = f.substring(p, p + Math.floor(f.length / 4)), m = -1, g = "", $, v, w,
|
|
19094
|
+
for (var b = f.substring(p, p + Math.floor(f.length / 4)), m = -1, g = "", $, v, w, S; (m = y.indexOf(b, m + 1)) !== -1; ) {
|
|
19091
19095
|
var E = oo(
|
|
19092
19096
|
f.substring(p),
|
|
19093
19097
|
y.substring(m)
|
|
@@ -19098,13 +19102,13 @@ function e0(t, n) {
|
|
|
19098
19102
|
g.length < x + E && (g = y.substring(
|
|
19099
19103
|
m - x,
|
|
19100
19104
|
m
|
|
19101
|
-
) + y.substring(m, m + E), $ = f.substring(0, p - x), v = f.substring(p + E), w = y.substring(0, m - x),
|
|
19105
|
+
) + y.substring(m, m + E), $ = f.substring(0, p - x), v = f.substring(p + E), w = y.substring(0, m - x), S = y.substring(m + E));
|
|
19102
19106
|
}
|
|
19103
19107
|
return g.length * 2 >= f.length ? [
|
|
19104
19108
|
$,
|
|
19105
19109
|
v,
|
|
19106
19110
|
w,
|
|
19107
|
-
|
|
19111
|
+
S,
|
|
19108
19112
|
g
|
|
19109
19113
|
] : null;
|
|
19110
19114
|
}
|
|
@@ -19125,7 +19129,7 @@ function rl(t, n) {
|
|
|
19125
19129
|
continue;
|
|
19126
19130
|
}
|
|
19127
19131
|
switch (t[e][0]) {
|
|
19128
|
-
case
|
|
19132
|
+
case Mt:
|
|
19129
19133
|
o++, a += t[e][1], e++;
|
|
19130
19134
|
break;
|
|
19131
19135
|
case zt:
|
|
@@ -19139,7 +19143,7 @@ function rl(t, n) {
|
|
|
19139
19143
|
if (t[d][1] = t[d][1].slice(0, -1), i = u + i, a = u + a, !t[d][1]) {
|
|
19140
19144
|
t.splice(d, 1), e--;
|
|
19141
19145
|
var h = d - 1;
|
|
19142
|
-
t[h] && t[h][0] ===
|
|
19146
|
+
t[h] && t[h][0] === Mt && (o++, a = t[h][1] + a, h--), t[h] && t[h][0] === zt && (r++, i = t[h][1] + i, h--), d = h;
|
|
19143
19147
|
}
|
|
19144
19148
|
}
|
|
19145
19149
|
if (ll(t[e][1])) {
|
|
@@ -19154,7 +19158,7 @@ function rl(t, n) {
|
|
|
19154
19158
|
if (i.length > 0 || a.length > 0) {
|
|
19155
19159
|
i.length > 0 && a.length > 0 && (l = oo(a, i), l !== 0 && (d >= 0 ? t[d][1] += a.substring(0, l) : (t.splice(0, 0, [Ot, a.substring(0, l)]), e++), a = a.substring(l), i = i.substring(l)), l = ao(a, i), l !== 0 && (t[e][1] = a.substring(a.length - l) + t[e][1], a = a.substring(0, a.length - l), i = i.substring(0, i.length - l)));
|
|
19156
19160
|
var c = o + r;
|
|
19157
|
-
i.length === 0 && a.length === 0 ? (t.splice(e - c, c), e = e - c) : i.length === 0 ? (t.splice(e - c, c, [
|
|
19161
|
+
i.length === 0 && a.length === 0 ? (t.splice(e - c, c), e = e - c) : i.length === 0 ? (t.splice(e - c, c, [Mt, a]), e = e - c + 1) : a.length === 0 ? (t.splice(e - c, c, [zt, i]), e = e - c + 1) : (t.splice(e - c, c, [zt, i], [Mt, a]), e = e - c + 2);
|
|
19158
19162
|
}
|
|
19159
19163
|
e !== 0 && t[e - 1][0] === Ot ? (t[e - 1][1] += t[e][1], t.splice(e, 1)) : e++, o = 0, r = 0, i = "", a = "";
|
|
19160
19164
|
break;
|
|
@@ -19187,7 +19191,7 @@ function Mr(t, n, e, r) {
|
|
|
19187
19191
|
return sl(t) || ll(r) ? null : t0([
|
|
19188
19192
|
[Ot, t],
|
|
19189
19193
|
[zt, n],
|
|
19190
|
-
[
|
|
19194
|
+
[Mt, e],
|
|
19191
19195
|
[Ot, r]
|
|
19192
19196
|
]);
|
|
19193
19197
|
}
|
|
@@ -19214,8 +19218,8 @@ function n0(t, n, e) {
|
|
|
19214
19218
|
var $ = l, s = n.slice(0, $), f = n.slice($);
|
|
19215
19219
|
if (s !== d)
|
|
19216
19220
|
break e;
|
|
19217
|
-
var v = Math.min(i - $, a - $), w = u.slice(u.length - v),
|
|
19218
|
-
if (w !==
|
|
19221
|
+
var v = Math.min(i - $, a - $), w = u.slice(u.length - v), S = f.slice(f.length - v);
|
|
19222
|
+
if (w !== S)
|
|
19219
19223
|
break e;
|
|
19220
19224
|
var m = u.slice(0, u.length - v), g = f.slice(0, f.length - v);
|
|
19221
19225
|
return Mr(d, m, g, w);
|
|
@@ -19226,8 +19230,8 @@ function n0(t, n, e) {
|
|
|
19226
19230
|
var p = t.slice(0, r.index), w = t.slice(r.index + r.length), y = p.length, v = w.length;
|
|
19227
19231
|
if (a < y + v)
|
|
19228
19232
|
break e;
|
|
19229
|
-
var b = n.slice(0, y),
|
|
19230
|
-
if (p !== b || w !==
|
|
19233
|
+
var b = n.slice(0, y), S = n.slice(a - v);
|
|
19234
|
+
if (p !== b || w !== S)
|
|
19231
19235
|
break e;
|
|
19232
19236
|
var m = t.slice(y, i - v), g = n.slice(y, a - v);
|
|
19233
19237
|
return Mr(p, m, g, w);
|
|
@@ -19237,14 +19241,14 @@ function n0(t, n, e) {
|
|
|
19237
19241
|
function Xi(t, n, e) {
|
|
19238
19242
|
return ui(t, n, e, !0);
|
|
19239
19243
|
}
|
|
19240
|
-
Xi.INSERT =
|
|
19244
|
+
Xi.INSERT = Mt;
|
|
19241
19245
|
Xi.DELETE = zt;
|
|
19242
19246
|
Xi.EQUAL = Ot;
|
|
19243
19247
|
var i0 = Xi, Hi = { exports: {} };
|
|
19244
19248
|
Hi.exports;
|
|
19245
19249
|
(function(t, n) {
|
|
19246
|
-
var e = 200, r = "__lodash_hash_undefined__", o = 9007199254740991, i = "[object Arguments]", a = "[object Array]", l = "[object Boolean]", d = "[object Date]", u = "[object Error]", h = "[object Function]", c = "[object GeneratorFunction]", s = "[object Map]", f = "[object Number]", y = "[object Object]", p = "[object Promise]", b = "[object RegExp]", m = "[object Set]", g = "[object String]", $ = "[object Symbol]", v = "[object WeakMap]", w = "[object ArrayBuffer]",
|
|
19247
|
-
j[i] = j[a] = j[w] = j[
|
|
19250
|
+
var e = 200, r = "__lodash_hash_undefined__", o = 9007199254740991, i = "[object Arguments]", a = "[object Array]", l = "[object Boolean]", d = "[object Date]", u = "[object Error]", h = "[object Function]", c = "[object GeneratorFunction]", s = "[object Map]", f = "[object Number]", y = "[object Object]", p = "[object Promise]", b = "[object RegExp]", m = "[object Set]", g = "[object String]", $ = "[object Symbol]", v = "[object WeakMap]", w = "[object ArrayBuffer]", S = "[object DataView]", E = "[object Float32Array]", x = "[object Float64Array]", D = "[object Int8Array]", C = "[object Int16Array]", O = "[object Int32Array]", k = "[object Uint8Array]", T = "[object Uint8ClampedArray]", R = "[object Uint16Array]", q = "[object Uint32Array]", W = /[\\^$.*+?()[\]{}|]/g, Y = /\w*$/, re = /^\[object .+?Constructor\]$/, z = /^(?:0|[1-9]\d*)$/, j = {};
|
|
19251
|
+
j[i] = j[a] = j[w] = j[S] = j[l] = j[d] = j[E] = j[x] = j[D] = j[C] = j[O] = j[s] = j[f] = j[y] = j[b] = j[m] = j[g] = j[$] = j[k] = j[T] = j[R] = j[q] = !0, j[u] = j[h] = j[v] = !1;
|
|
19248
19252
|
var N = typeof et == "object" && et && et.Object === Object && et, A = typeof self == "object" && self && self.Object === Object && self, I = N || A || Function("return this")(), U = n && !n.nodeType && n, F = U && !0 && t && !t.nodeType && t, L = F && F.exports === U;
|
|
19249
19253
|
function V(_, P) {
|
|
19250
19254
|
return _.set(P[0], P[1]), _;
|
|
@@ -19305,9 +19309,9 @@ Hi.exports;
|
|
|
19305
19309
|
var Q = Array.prototype, ne = Function.prototype, se = Object.prototype, de = I["__core-js_shared__"], oe = function() {
|
|
19306
19310
|
var _ = /[^.]+$/.exec(de && de.keys && de.keys.IE_PROTO || "");
|
|
19307
19311
|
return _ ? "Symbol(src)_1." + _ : "";
|
|
19308
|
-
}(), Ae = ne.toString, ke = se.hasOwnProperty,
|
|
19312
|
+
}(), Ae = ne.toString, ke = se.hasOwnProperty, Se = se.toString, it = RegExp(
|
|
19309
19313
|
"^" + Ae.call(ke).replace(W, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
19310
|
-
), Je = L ? I.Buffer : void 0, Fe = I.Symbol, Rt = I.Uint8Array, Le = We(Object.getPrototypeOf, Object), gt = Object.create, cn = se.propertyIsEnumerable, Dn = Q.splice, fn = Object.getOwnPropertySymbols, Ve = Je ? Je.isBuffer : void 0, on = We(Object.keys, Object), Bt =
|
|
19314
|
+
), Je = L ? I.Buffer : void 0, Fe = I.Symbol, Rt = I.Uint8Array, Le = We(Object.getPrototypeOf, Object), gt = Object.create, cn = se.propertyIsEnumerable, Dn = Q.splice, fn = Object.getOwnPropertySymbols, Ve = Je ? Je.isBuffer : void 0, on = We(Object.keys, Object), Bt = It(I, "DataView"), Wt = It(I, "Map"), ut = It(I, "Promise"), jt = It(I, "Set"), mt = It(I, "WeakMap"), Yt = It(Object, "create"), hn = vt(Bt), M = vt(Wt), B = vt(ut), K = vt(jt), X = vt(mt), le = Fe ? Fe.prototype : void 0, fe = le ? le.valueOf : void 0;
|
|
19311
19315
|
function Ee(_) {
|
|
19312
19316
|
var P = -1, H = _ ? _.length : 0;
|
|
19313
19317
|
for (this.clear(); ++P < H; ) {
|
|
@@ -19482,7 +19486,7 @@ Hi.exports;
|
|
|
19482
19486
|
return Kn(_) ? ee : ie(ee, H(_));
|
|
19483
19487
|
}
|
|
19484
19488
|
function ar(_) {
|
|
19485
|
-
return
|
|
19489
|
+
return Se.call(_);
|
|
19486
19490
|
}
|
|
19487
19491
|
function lr(_) {
|
|
19488
19492
|
if (!Vt(_) || br(_))
|
|
@@ -19555,17 +19559,17 @@ Hi.exports;
|
|
|
19555
19559
|
var H = _.__data__;
|
|
19556
19560
|
return yr(P) ? H[typeof P == "string" ? "string" : "hash"] : H.map;
|
|
19557
19561
|
}
|
|
19558
|
-
function
|
|
19562
|
+
function It(_, P) {
|
|
19559
19563
|
var H = xe(_, P);
|
|
19560
19564
|
return lr(H) ? H : void 0;
|
|
19561
19565
|
}
|
|
19562
19566
|
var Jt = fn ? We(fn, Object) : $r, Xt = ar;
|
|
19563
|
-
(Bt && Xt(new Bt(new ArrayBuffer(1))) !=
|
|
19564
|
-
var P =
|
|
19567
|
+
(Bt && Xt(new Bt(new ArrayBuffer(1))) != S || Wt && Xt(new Wt()) != s || ut && Xt(ut.resolve()) != p || jt && Xt(new jt()) != m || mt && Xt(new mt()) != v) && (Xt = function(_) {
|
|
19568
|
+
var P = Se.call(_), H = P == y ? _.constructor : void 0, ee = H ? vt(H) : void 0;
|
|
19565
19569
|
if (ee)
|
|
19566
19570
|
switch (ee) {
|
|
19567
19571
|
case hn:
|
|
19568
|
-
return
|
|
19572
|
+
return S;
|
|
19569
19573
|
case M:
|
|
19570
19574
|
return s;
|
|
19571
19575
|
case B:
|
|
@@ -19592,7 +19596,7 @@ Hi.exports;
|
|
|
19592
19596
|
case l:
|
|
19593
19597
|
case d:
|
|
19594
19598
|
return new Pe(+_);
|
|
19595
|
-
case
|
|
19599
|
+
case S:
|
|
19596
19600
|
return gn(_, ee);
|
|
19597
19601
|
case E:
|
|
19598
19602
|
case x:
|
|
@@ -19600,7 +19604,7 @@ Hi.exports;
|
|
|
19600
19604
|
case C:
|
|
19601
19605
|
case O:
|
|
19602
19606
|
case k:
|
|
19603
|
-
case
|
|
19607
|
+
case T:
|
|
19604
19608
|
case R:
|
|
19605
19609
|
case q:
|
|
19606
19610
|
return cr(_, ee);
|
|
@@ -19651,7 +19655,7 @@ Hi.exports;
|
|
|
19651
19655
|
return _ === P || _ !== _ && P !== P;
|
|
19652
19656
|
}
|
|
19653
19657
|
function En(_) {
|
|
19654
|
-
return _r(_) && ke.call(_, "callee") && (!cn.call(_, "callee") ||
|
|
19658
|
+
return _r(_) && ke.call(_, "callee") && (!cn.call(_, "callee") || Se.call(_) == i);
|
|
19655
19659
|
}
|
|
19656
19660
|
var Kn = Array.isArray;
|
|
19657
19661
|
function xn(_) {
|
|
@@ -19662,7 +19666,7 @@ Hi.exports;
|
|
|
19662
19666
|
}
|
|
19663
19667
|
var $i = Ve || wr;
|
|
19664
19668
|
function Gn(_) {
|
|
19665
|
-
var P = Vt(_) ?
|
|
19669
|
+
var P = Vt(_) ? Se.call(_) : "";
|
|
19666
19670
|
return P == h || P == c;
|
|
19667
19671
|
}
|
|
19668
19672
|
function wi(_) {
|
|
@@ -19689,8 +19693,8 @@ Hi.exports;
|
|
|
19689
19693
|
var ul = Hi.exports, Vi = { exports: {} };
|
|
19690
19694
|
Vi.exports;
|
|
19691
19695
|
(function(t, n) {
|
|
19692
|
-
var e = 200, r = "__lodash_hash_undefined__", o = 1, i = 2, a = 9007199254740991, l = "[object Arguments]", d = "[object Array]", u = "[object AsyncFunction]", h = "[object Boolean]", c = "[object Date]", s = "[object Error]", f = "[object Function]", y = "[object GeneratorFunction]", p = "[object Map]", b = "[object Number]", m = "[object Null]", g = "[object Object]", $ = "[object Promise]", v = "[object Proxy]", w = "[object RegExp]",
|
|
19693
|
-
F[
|
|
19696
|
+
var e = 200, r = "__lodash_hash_undefined__", o = 1, i = 2, a = 9007199254740991, l = "[object Arguments]", d = "[object Array]", u = "[object AsyncFunction]", h = "[object Boolean]", c = "[object Date]", s = "[object Error]", f = "[object Function]", y = "[object GeneratorFunction]", p = "[object Map]", b = "[object Number]", m = "[object Null]", g = "[object Object]", $ = "[object Promise]", v = "[object Proxy]", w = "[object RegExp]", S = "[object Set]", E = "[object String]", x = "[object Symbol]", D = "[object Undefined]", C = "[object WeakMap]", O = "[object ArrayBuffer]", k = "[object DataView]", T = "[object Float32Array]", R = "[object Float64Array]", q = "[object Int8Array]", W = "[object Int16Array]", Y = "[object Int32Array]", re = "[object Uint8Array]", z = "[object Uint8ClampedArray]", j = "[object Uint16Array]", N = "[object Uint32Array]", A = /[\\^$.*+?()[\]{}|]/g, I = /^\[object .+?Constructor\]$/, U = /^(?:0|[1-9]\d*)$/, F = {};
|
|
19697
|
+
F[T] = F[R] = F[q] = F[W] = F[Y] = F[re] = F[z] = F[j] = F[N] = !0, F[l] = F[d] = F[O] = F[h] = F[k] = F[c] = F[s] = F[f] = F[p] = F[b] = F[g] = F[w] = F[S] = F[E] = F[C] = !1;
|
|
19694
19698
|
var L = typeof et == "object" && et && et.Object === Object && et, V = typeof self == "object" && self && self.Object === Object && self, Z = L || V || Function("return this")(), J = n && !n.nodeType && n, ie = J && !0 && t && !t.nodeType && t, he = ie && ie.exports === J, _e = he && L.process, xe = function() {
|
|
19695
19699
|
try {
|
|
19696
19700
|
return _e && _e.binding && _e.binding("util");
|
|
@@ -19748,12 +19752,12 @@ Vi.exports;
|
|
|
19748
19752
|
H[++P] = ee;
|
|
19749
19753
|
}), H;
|
|
19750
19754
|
}
|
|
19751
|
-
var
|
|
19755
|
+
var Se = Array.prototype, it = Function.prototype, Je = Object.prototype, Fe = Z["__core-js_shared__"], Rt = it.toString, Le = Je.hasOwnProperty, gt = function() {
|
|
19752
19756
|
var _ = /[^.]+$/.exec(Fe && Fe.keys && Fe.keys.IE_PROTO || "");
|
|
19753
19757
|
return _ ? "Symbol(src)_1." + _ : "";
|
|
19754
19758
|
}(), cn = Je.toString, Dn = RegExp(
|
|
19755
19759
|
"^" + Rt.call(Le).replace(A, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
19756
|
-
), fn = he ? Z.Buffer : void 0, Ve = Z.Symbol, on = Z.Uint8Array, Bt = Je.propertyIsEnumerable, Wt =
|
|
19760
|
+
), fn = he ? Z.Buffer : void 0, Ve = Z.Symbol, on = Z.Uint8Array, Bt = Je.propertyIsEnumerable, Wt = Se.splice, ut = Ve ? Ve.toStringTag : void 0, jt = Object.getOwnPropertySymbols, mt = fn ? fn.isBuffer : void 0, Yt = Ae(Object.keys, Object), hn = Jt(Z, "DataView"), M = Jt(Z, "Map"), B = Jt(Z, "Promise"), K = Jt(Z, "Set"), X = Jt(Z, "WeakMap"), le = Jt(Object, "create"), fe = vt(hn), Ee = vt(M), ve = vt(B), Me = vt(K), me = vt(X), Ce = Ve ? Ve.prototype : void 0, je = Ce ? Ce.valueOf : void 0;
|
|
19757
19761
|
function ze(_) {
|
|
19758
19762
|
var P = -1, H = _ == null ? 0 : _.length;
|
|
19759
19763
|
for (this.clear(); ++P < H; ) {
|
|
@@ -19829,17 +19833,17 @@ Vi.exports;
|
|
|
19829
19833
|
};
|
|
19830
19834
|
}
|
|
19831
19835
|
function er(_) {
|
|
19832
|
-
var P =
|
|
19836
|
+
var P = It(this, _).delete(_);
|
|
19833
19837
|
return this.size -= P ? 1 : 0, P;
|
|
19834
19838
|
}
|
|
19835
19839
|
function tr(_) {
|
|
19836
|
-
return
|
|
19840
|
+
return It(this, _).get(_);
|
|
19837
19841
|
}
|
|
19838
19842
|
function nr(_) {
|
|
19839
|
-
return
|
|
19843
|
+
return It(this, _).has(_);
|
|
19840
19844
|
}
|
|
19841
19845
|
function ir(_, P) {
|
|
19842
|
-
var H =
|
|
19846
|
+
var H = It(this, _), ee = H.size;
|
|
19843
19847
|
return H.set(_, P), this.size += H.size == ee ? 0 : 1, this;
|
|
19844
19848
|
}
|
|
19845
19849
|
dt.prototype.clear = Hn, dt.prototype.delete = er, dt.prototype.get = tr, dt.prototype.has = nr, dt.prototype.set = ir;
|
|
@@ -20001,7 +20005,7 @@ Vi.exports;
|
|
|
20001
20005
|
return _ == P + "";
|
|
20002
20006
|
case p:
|
|
20003
20007
|
var qe = oe;
|
|
20004
|
-
case
|
|
20008
|
+
case S:
|
|
20005
20009
|
var Xe = ee & o;
|
|
20006
20010
|
if (qe || (qe = ke), _.size != P.size && !Xe)
|
|
20007
20011
|
return !1;
|
|
@@ -20051,7 +20055,7 @@ Vi.exports;
|
|
|
20051
20055
|
function mn(_) {
|
|
20052
20056
|
return Un(_, Wn, gr);
|
|
20053
20057
|
}
|
|
20054
|
-
function
|
|
20058
|
+
function It(_, P) {
|
|
20055
20059
|
var H = _.__data__;
|
|
20056
20060
|
return vr(P) ? H[typeof P == "string" ? "string" : "hash"] : H.map;
|
|
20057
20061
|
}
|
|
@@ -20074,7 +20078,7 @@ Vi.exports;
|
|
|
20074
20078
|
return Bt.call(_, P);
|
|
20075
20079
|
}));
|
|
20076
20080
|
} : $r, Ht = gn;
|
|
20077
|
-
(hn && Ht(new hn(new ArrayBuffer(1))) != k || M && Ht(new M()) != p || B && Ht(B.resolve()) != $ || K && Ht(new K()) !=
|
|
20081
|
+
(hn && Ht(new hn(new ArrayBuffer(1))) != k || M && Ht(new M()) != p || B && Ht(B.resolve()) != $ || K && Ht(new K()) != S || X && Ht(new X()) != C) && (Ht = function(_) {
|
|
20078
20082
|
var P = gn(_), H = P == g ? _.constructor : void 0, ee = H ? vt(H) : "";
|
|
20079
20083
|
if (ee)
|
|
20080
20084
|
switch (ee) {
|
|
@@ -20085,7 +20089,7 @@ Vi.exports;
|
|
|
20085
20089
|
case ve:
|
|
20086
20090
|
return $;
|
|
20087
20091
|
case Me:
|
|
20088
|
-
return
|
|
20092
|
+
return S;
|
|
20089
20093
|
case me:
|
|
20090
20094
|
return C;
|
|
20091
20095
|
}
|
|
@@ -20600,11 +20604,11 @@ const da = {
|
|
|
20600
20604
|
})()
|
|
20601
20605
|
}), t.modules) {
|
|
20602
20606
|
const k = (() => {
|
|
20603
|
-
var
|
|
20607
|
+
var T, R;
|
|
20604
20608
|
const q = {};
|
|
20605
20609
|
if (Array.isArray(t.modules))
|
|
20606
20610
|
for (const W of t.modules)
|
|
20607
|
-
q[W.name] = (
|
|
20611
|
+
q[W.name] = (T = W.options) !== null && T !== void 0 ? T : {};
|
|
20608
20612
|
else
|
|
20609
20613
|
q[t.modules.name] = (R = t.modules.options) !== null && R !== void 0 ? R : {};
|
|
20610
20614
|
return q;
|
|
@@ -20622,10 +20626,10 @@ const da = {
|
|
|
20622
20626
|
return !d(u.diff(O));
|
|
20623
20627
|
}
|
|
20624
20628
|
return !1;
|
|
20625
|
-
}, c = (O, k,
|
|
20626
|
-
u = l(g()), h(t.content) || n.emit("update:content", u), n.emit("textChange", { delta: O, oldContents: k, source:
|
|
20627
|
-
}, s = ho(), f = (O, k,
|
|
20628
|
-
s.value = !!(e != null && e.hasFocus()), n.emit("selectionChange", { range: O, oldRange: k, source:
|
|
20629
|
+
}, c = (O, k, T) => {
|
|
20630
|
+
u = l(g()), h(t.content) || n.emit("update:content", u), n.emit("textChange", { delta: O, oldContents: k, source: T });
|
|
20631
|
+
}, s = ho(), f = (O, k, T) => {
|
|
20632
|
+
s.value = !!(e != null && e.hasFocus()), n.emit("selectionChange", { range: O, oldRange: k, source: T });
|
|
20629
20633
|
};
|
|
20630
20634
|
Ut(s, (O) => {
|
|
20631
20635
|
O ? n.emit("focus", o) : n.emit("blur", o);
|
|
@@ -20651,22 +20655,22 @@ const da = {
|
|
|
20651
20655
|
throw `The quill editor hasn't been instantiated yet,
|
|
20652
20656
|
make sure to call this method when the editor ready
|
|
20653
20657
|
or use v-on:ready="onReady(quill)" event instead.`;
|
|
20654
|
-
}, g = (O, k) => t.contentType === "html" ?
|
|
20655
|
-
const
|
|
20656
|
-
t.contentType === "html" ? E(
|
|
20658
|
+
}, g = (O, k) => t.contentType === "html" ? S() : t.contentType === "text" ? v(O, k) : e == null ? void 0 : e.getContents(O, k), $ = (O, k = "api") => {
|
|
20659
|
+
const T = O || (t.contentType === "delta" ? new c0() : "");
|
|
20660
|
+
t.contentType === "html" ? E(T) : t.contentType === "text" ? w(T, k) : e == null || e.setContents(T, k), u = l(T);
|
|
20657
20661
|
}, v = (O, k) => {
|
|
20658
|
-
var
|
|
20659
|
-
return (
|
|
20662
|
+
var T;
|
|
20663
|
+
return (T = e == null ? void 0 : e.getText(O, k)) !== null && T !== void 0 ? T : "";
|
|
20660
20664
|
}, w = (O, k = "api") => {
|
|
20661
20665
|
e == null || e.setText(O, k);
|
|
20662
|
-
},
|
|
20666
|
+
}, S = () => {
|
|
20663
20667
|
var O;
|
|
20664
20668
|
return (O = e == null ? void 0 : e.root.innerHTML) !== null && O !== void 0 ? O : "";
|
|
20665
20669
|
}, E = (O) => {
|
|
20666
20670
|
e && (e.root.innerHTML = O);
|
|
20667
20671
|
}, x = (O, k = "api") => {
|
|
20668
|
-
const
|
|
20669
|
-
|
|
20672
|
+
const T = e == null ? void 0 : e.clipboard.convert(O);
|
|
20673
|
+
T && (e == null || e.setContents(T, k));
|
|
20670
20674
|
}, D = () => {
|
|
20671
20675
|
e == null || e.focus();
|
|
20672
20676
|
}, C = () => {
|
|
@@ -20689,7 +20693,7 @@ const da = {
|
|
|
20689
20693
|
getQuill: m,
|
|
20690
20694
|
getContents: g,
|
|
20691
20695
|
setContents: $,
|
|
20692
|
-
getHTML:
|
|
20696
|
+
getHTML: S,
|
|
20693
20697
|
setHTML: E,
|
|
20694
20698
|
pasteHTML: x,
|
|
20695
20699
|
focus: D,
|
|
@@ -20800,10 +20804,10 @@ var hl = { exports: {} };
|
|
|
20800
20804
|
var b = this;
|
|
20801
20805
|
i(this, f), this.quill = y, this.onTextChange = function(m, g, $) {
|
|
20802
20806
|
if ($ === d.sources.USER) {
|
|
20803
|
-
var v = b.quill.getContents(), w = v.diff(g),
|
|
20807
|
+
var v = b.quill.getContents(), w = v.diff(g), S = w.ops.filter(function(E) {
|
|
20804
20808
|
return E.insert && E.insert.placeholder && E.insert.placeholder.required;
|
|
20805
20809
|
}).length;
|
|
20806
|
-
|
|
20810
|
+
S && b.quill.updateContents(w, d.sources.SILENT);
|
|
20807
20811
|
}
|
|
20808
20812
|
}, this.onClick = function(m) {
|
|
20809
20813
|
var g = h.find(m.target.parentNode);
|
|
@@ -20888,8 +20892,8 @@ var hl = { exports: {} };
|
|
|
20888
20892
|
m.required && g.setAttribute("data-required", "true"), g.setAttribute("data-id", m.id), g.setAttribute("data-label", m.label), g.setAttribute("spellcheck", "false");
|
|
20889
20893
|
var $ = p.delimiters, v = typeof $ == "string" ? "" + $ + m.label + $ : "" + $[0] + m.label + ($[1] || $[0]), w = document.createTextNode(v);
|
|
20890
20894
|
if (c.version < "1.3") {
|
|
20891
|
-
var
|
|
20892
|
-
|
|
20895
|
+
var S = document.createElement("span");
|
|
20896
|
+
S.setAttribute("contenteditable", "false"), S.appendChild(w), g.appendChild(S);
|
|
20893
20897
|
} else
|
|
20894
20898
|
g.appendChild(w);
|
|
20895
20899
|
return g;
|
|
@@ -20964,14 +20968,14 @@ const b0 = `
|
|
|
20964
20968
|
<rect width="10" height="2" rx="1" transform="matrix(-1 0 0 1 17 15)" class="fill" fill="#1A1A1A"/>
|
|
20965
20969
|
</svg>
|
|
20966
20970
|
|
|
20967
|
-
`,
|
|
20971
|
+
`, S0 = `
|
|
20968
20972
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
20969
20973
|
<rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 3)" class="fill" fill="#1A1A1A"/>
|
|
20970
20974
|
<rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 7)" class="fill" fill="#1A1A1A"/>
|
|
20971
20975
|
<rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 11)" class="fill" fill="#1A1A1A"/>
|
|
20972
20976
|
<rect width="14" height="2" rx="1" transform="matrix(-1 0 0 1 17 15)" class="fill" fill="#1A1A1A"/>
|
|
20973
20977
|
</svg>
|
|
20974
|
-
`,
|
|
20978
|
+
`, T0 = `
|
|
20975
20979
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
20976
20980
|
<path d="M3.625 3.63672V6.5H3.00977V4.33203C2.97591 4.36198 2.93555 4.39062 2.88867 4.41797C2.8431 4.44401 2.79427 4.4681 2.74219 4.49023C2.6901 4.51107 2.63607 4.5293 2.58008 4.54492C2.52409 4.55924 2.46875 4.56966 2.41406 4.57617V4.05664C2.57422 4.00977 2.72526 3.94987 2.86719 3.87695C3.00911 3.80404 3.13737 3.72396 3.25195 3.63672H3.625Z" class="fill" fill="#1A1A1A"/>
|
|
20977
20981
|
<path d="M2.83789 10.9883H4.02539V11.5H2.16211V11.2891C2.16211 11.1458 2.1862 11.0176 2.23438 10.9043C2.28255 10.7897 2.3431 10.6875 2.41602 10.5977C2.48893 10.5065 2.56836 10.4264 2.6543 10.3574C2.74154 10.2871 2.82422 10.224 2.90234 10.168C2.98438 10.1094 3.05599 10.0534 3.11719 10C3.17969 9.94661 3.23177 9.89388 3.27344 9.8418C3.31641 9.78841 3.34831 9.73503 3.36914 9.68164C3.38997 9.62695 3.40039 9.56901 3.40039 9.50781C3.40039 9.38802 3.36654 9.29753 3.29883 9.23633C3.23112 9.17513 3.1276 9.14453 2.98828 9.14453C2.7474 9.14453 2.51693 9.24023 2.29688 9.43164V8.88867C2.54036 8.73112 2.8151 8.65234 3.12109 8.65234C3.26302 8.65234 3.38997 8.67122 3.50195 8.70898C3.61523 8.74544 3.71094 8.79818 3.78906 8.86719C3.86719 8.9362 3.92643 9.02018 3.9668 9.11914C4.00846 9.2168 4.0293 9.32617 4.0293 9.44727C4.0293 9.57617 4.00911 9.69076 3.96875 9.79102C3.92969 9.89128 3.87695 9.98242 3.81055 10.0645C3.74544 10.1465 3.66992 10.222 3.58398 10.291C3.49805 10.3587 3.40885 10.4245 3.31641 10.4883C3.25391 10.5326 3.19336 10.5768 3.13477 10.6211C3.07747 10.6641 3.02669 10.707 2.98242 10.75C2.93815 10.7917 2.90299 10.8327 2.87695 10.873C2.85091 10.9134 2.83789 10.9518 2.83789 10.9883Z" class="fill" fill="#1A1A1A"/>
|
|
@@ -21020,8 +21024,8 @@ kt.link = O0;
|
|
|
21020
21024
|
kt.align[""] = C0;
|
|
21021
21025
|
kt.align.center = E0;
|
|
21022
21026
|
kt.align.right = x0;
|
|
21023
|
-
kt.align.justify =
|
|
21024
|
-
kt.list.ordered =
|
|
21027
|
+
kt.align.justify = S0;
|
|
21028
|
+
kt.list.ordered = T0;
|
|
21025
21029
|
kt.list.bullet = A0;
|
|
21026
21030
|
kt["alphabet-list"] = N0;
|
|
21027
21031
|
Be.register({
|
|
@@ -21112,7 +21116,8 @@ const P0 = {
|
|
|
21112
21116
|
this.data = t;
|
|
21113
21117
|
},
|
|
21114
21118
|
data(t) {
|
|
21115
|
-
this
|
|
21119
|
+
const n = this.cleanPlaceholderSpans(t);
|
|
21120
|
+
this.$emit("update:modelValue", n);
|
|
21116
21121
|
},
|
|
21117
21122
|
characterOverLimit(t) {
|
|
21118
21123
|
this.$emit("onOverLimitHandler", t);
|
|
@@ -21120,16 +21125,25 @@ const P0 = {
|
|
|
21120
21125
|
},
|
|
21121
21126
|
methods: {
|
|
21122
21127
|
onChange() {
|
|
21123
|
-
this.updateCharacterLength(), this.$emit("change", this.data);
|
|
21128
|
+
this.updateCharacterLength(), this.$emit("change", this.cleanPlaceholderSpans(this.data));
|
|
21124
21129
|
},
|
|
21125
21130
|
onBlur(t) {
|
|
21126
|
-
this.$emit("blur", this.data, t), this.isFocus = !1;
|
|
21131
|
+
this.$emit("blur", this.cleanPlaceholderSpans(this.data), t), this.isFocus = !1;
|
|
21127
21132
|
},
|
|
21128
21133
|
onFocus() {
|
|
21129
21134
|
this.isFocus = !0;
|
|
21130
21135
|
},
|
|
21131
21136
|
updateCharacterLength() {
|
|
21132
21137
|
this.characterLength = m0(this.data).length;
|
|
21138
|
+
},
|
|
21139
|
+
cleanPlaceholderSpans(t) {
|
|
21140
|
+
if (!t)
|
|
21141
|
+
return t;
|
|
21142
|
+
let n;
|
|
21143
|
+
do
|
|
21144
|
+
n = t, t = t.replace(/<span contenteditable="false">([\s\S]*?)<\/span>/g, (e, r) => r.replace(/[\u200B-\u200F\uFEFF]/g, ""));
|
|
21145
|
+
while (n !== t);
|
|
21146
|
+
return t;
|
|
21133
21147
|
}
|
|
21134
21148
|
},
|
|
21135
21149
|
computed: {
|
|
@@ -21154,7 +21168,7 @@ const P0 = {
|
|
|
21154
21168
|
},
|
|
21155
21169
|
components: {
|
|
21156
21170
|
QuillEditor: f0,
|
|
21157
|
-
IbIconButton:
|
|
21171
|
+
IbIconButton: Pt,
|
|
21158
21172
|
IbAlert: $n,
|
|
21159
21173
|
IbCharacterCount: Ka
|
|
21160
21174
|
}
|
|
@@ -21235,7 +21249,7 @@ function G0(t, n, e, r, o, i) {
|
|
|
21235
21249
|
R0,
|
|
21236
21250
|
ae("select", B0, [
|
|
21237
21251
|
j0,
|
|
21238
|
-
(G(!0), te(nt, null,
|
|
21252
|
+
(G(!0), te(nt, null, Dt(e.placeholders, (h) => (G(), te("option", {
|
|
21239
21253
|
key: h.id,
|
|
21240
21254
|
value: h.id
|
|
21241
21255
|
}, Oe(h.label), 9, q0))), 128))
|
|
@@ -21327,7 +21341,7 @@ function G0(t, n, e, r, o, i) {
|
|
|
21327
21341
|
], 2)
|
|
21328
21342
|
], 2);
|
|
21329
21343
|
}
|
|
21330
|
-
const Np = /* @__PURE__ */
|
|
21344
|
+
const Np = /* @__PURE__ */ Te(P0, [["render", G0]]);
|
|
21331
21345
|
const W0 = {
|
|
21332
21346
|
name: "IbTable",
|
|
21333
21347
|
computed: {
|
|
@@ -21346,7 +21360,7 @@ function J0(t, n, e, r, o, i) {
|
|
|
21346
21360
|
])
|
|
21347
21361
|
]);
|
|
21348
21362
|
}
|
|
21349
|
-
const Pp = /* @__PURE__ */
|
|
21363
|
+
const Pp = /* @__PURE__ */ Te(W0, [["render", J0], ["__scopeId", "data-v-5dceb760"]]);
|
|
21350
21364
|
const X0 = {
|
|
21351
21365
|
name: "IbRow"
|
|
21352
21366
|
}, Q0 = { class: "ib-tr" };
|
|
@@ -21355,7 +21369,7 @@ function ep(t, n, e, r, o, i) {
|
|
|
21355
21369
|
we(t.$slots, "default", { ref: "row" })
|
|
21356
21370
|
]);
|
|
21357
21371
|
}
|
|
21358
|
-
const Ip = /* @__PURE__ */
|
|
21372
|
+
const Ip = /* @__PURE__ */ Te(X0, [["render", ep]]);
|
|
21359
21373
|
const tp = {
|
|
21360
21374
|
name: "IbCell",
|
|
21361
21375
|
props: {
|
|
@@ -21380,7 +21394,7 @@ const tp = {
|
|
|
21380
21394
|
}
|
|
21381
21395
|
}, np = { class: "cell" };
|
|
21382
21396
|
function ip(t, n, e, r, o, i) {
|
|
21383
|
-
return G(), te("td",
|
|
21397
|
+
return G(), te("td", Tt({
|
|
21384
21398
|
onResize: n[0] || (n[0] = (...a) => i.freezeCol && i.freezeCol(...a)),
|
|
21385
21399
|
class: "ib-cell"
|
|
21386
21400
|
}, this.attr), [
|
|
@@ -21389,7 +21403,7 @@ function ip(t, n, e, r, o, i) {
|
|
|
21389
21403
|
])
|
|
21390
21404
|
], 16);
|
|
21391
21405
|
}
|
|
21392
|
-
const rp = /* @__PURE__ */
|
|
21406
|
+
const rp = /* @__PURE__ */ Te(tp, [["render", ip], ["__scopeId", "data-v-e74bb0f3"]]);
|
|
21393
21407
|
const op = {
|
|
21394
21408
|
name: "IbCheckboxCell",
|
|
21395
21409
|
props: {
|
|
@@ -21419,7 +21433,7 @@ function ap(t, n, e, r, o, i) {
|
|
|
21419
21433
|
_: 1
|
|
21420
21434
|
}, 8, ["fixed"]);
|
|
21421
21435
|
}
|
|
21422
|
-
const Mp = /* @__PURE__ */
|
|
21436
|
+
const Mp = /* @__PURE__ */ Te(op, [["render", ap]]), so = new qa(), ca = (t, n) => {
|
|
21423
21437
|
if (Va(t)) {
|
|
21424
21438
|
const e = Object.keys(n.modifiers)[0] || n.arg, r = {
|
|
21425
21439
|
title: n.value.title || "",
|
|
@@ -21451,13 +21465,13 @@ export {
|
|
|
21451
21465
|
Mp as IbCheckboxCell,
|
|
21452
21466
|
Ep as IbCheckboxGroup,
|
|
21453
21467
|
kp as IbChips,
|
|
21454
|
-
|
|
21468
|
+
Tp as IbDatePicker,
|
|
21455
21469
|
Zr as IbDropdown,
|
|
21456
21470
|
Ba as IbDropdownItem,
|
|
21457
21471
|
Xr as IbDropdownList,
|
|
21458
21472
|
Cp as IbFormGroup,
|
|
21459
21473
|
Ze as IbIcon,
|
|
21460
|
-
|
|
21474
|
+
Pt as IbIconButton,
|
|
21461
21475
|
Fa as IbInput,
|
|
21462
21476
|
Yi as IbLabel,
|
|
21463
21477
|
nc as IbLimitSelector,
|
|
@@ -21479,7 +21493,7 @@ export {
|
|
|
21479
21493
|
mp as IbTabs,
|
|
21480
21494
|
fp as IbTagPill,
|
|
21481
21495
|
Np as IbTextEditor,
|
|
21482
|
-
|
|
21496
|
+
Sp as IbTextarea,
|
|
21483
21497
|
Id as IbToggle,
|
|
21484
21498
|
Gs as IbToggleTip,
|
|
21485
21499
|
fi as IbTooltip,
|