sprintify-ui 0.0.109 → 0.0.110
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/sprintify-ui.es.js +858 -856
- package/dist/types/src/components/BaseField.vue.d.ts +1 -1
- package/dist/types/src/components/BaseFieldI18n.vue.d.ts +1 -1
- package/dist/types/src/components/BaseStatistic.vue.d.ts +1 -1
- package/dist/types/src/components/BaseTableColumn.vue.d.ts +1 -1
- package/dist/types/src/types/index.d.ts +7 -4
- package/package.json +1 -1
- package/src/components/BaseAutocomplete.stories.js +1 -1
- package/src/components/BaseAutocomplete.vue +17 -10
- package/src/components/BaseAutocompleteFetch.stories.js +1 -1
- package/src/components/BaseBelongsTo.stories.js +1 -1
- package/src/types/index.ts +8 -4
package/dist/sprintify-ui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import cs from "axios";
|
|
2
|
-
import { defineComponent as me, inject as ze, resolveComponent as Ke, openBlock as F, createBlock as Se, withCtx as pe, createElementVNode as R, normalizeClass as ue, withModifiers as Bt, renderSlot as ke, createElementBlock as J, createCommentVNode as we, toDisplayString as xe, h as Ge, unref as $, computed as Y, ref as ie, watch as je, Teleport as In, createVNode as he, Transition as kt, TransitionGroup as Pl, Fragment as Le, renderList as Re, normalizeStyle as
|
|
2
|
+
import { defineComponent as me, inject as ze, resolveComponent as Ke, openBlock as F, createBlock as Se, withCtx as pe, createElementVNode as R, normalizeClass as ue, withModifiers as Bt, renderSlot as ke, createElementBlock as J, createCommentVNode as we, toDisplayString as xe, h as Ge, unref as $, computed as Y, ref as ie, watch as je, Teleport as In, createVNode as he, Transition as kt, TransitionGroup as Pl, Fragment as Le, renderList as Re, normalizeStyle as Ze, onMounted as Ve, withDirectives as lt, isRef as On, vModelSelect as Br, normalizeProps as at, guardReactiveProps as st, vShow as Qt, nextTick as We, mergeProps as Lt, resolveDynamicComponent as Nn, createTextVNode as xt, onBeforeUnmount as yn, cloneVNode as fs, provide as $e, watchEffect as _t, onUnmounted as Ut, reactive as ds, withKeys as Yi, vModelText as Qi, useSlots as hs, createStaticVNode as $l, getCurrentInstance as ps, pushScopeId as vs, popScopeId as ms, createSlots as ys, readonly as Rr } from "vue";
|
|
3
3
|
import { useI18n as Pt, createI18n as gs } from "vue-i18n";
|
|
4
4
|
import { defineStore as ko } from "pinia";
|
|
5
5
|
import el from "qs";
|
|
@@ -1585,15 +1585,15 @@ var Ur = {}, Du = {
|
|
|
1585
1585
|
}), i.d(n, "addScrollableTarget", function() {
|
|
1586
1586
|
return le;
|
|
1587
1587
|
}), i.d(n, "removeScrollableTarget", function() {
|
|
1588
|
-
return
|
|
1588
|
+
return H;
|
|
1589
1589
|
}), i.d(n, "addScrollableSelector", function() {
|
|
1590
1590
|
return P;
|
|
1591
1591
|
}), i.d(n, "removeScrollableSelector", function() {
|
|
1592
|
-
return
|
|
1592
|
+
return C;
|
|
1593
1593
|
}), i.d(n, "addLockableTarget", function() {
|
|
1594
1594
|
return D;
|
|
1595
1595
|
}), i.d(n, "addLockableSelector", function() {
|
|
1596
|
-
return
|
|
1596
|
+
return V;
|
|
1597
1597
|
}), i.d(n, "setFillGapMethod", function() {
|
|
1598
1598
|
return ne;
|
|
1599
1599
|
}), i.d(n, "addFillGapTarget", function() {
|
|
@@ -1631,9 +1631,9 @@ var Ur = {}, Du = {
|
|
|
1631
1631
|
startTouchY: 0,
|
|
1632
1632
|
startTouchX: 0
|
|
1633
1633
|
}, b = function(Q) {
|
|
1634
|
-
x.queue <= 0 && (x.scroll = !1,
|
|
1634
|
+
x.queue <= 0 && (x.scroll = !1, L(), Ee()), le(Q), x.queue++;
|
|
1635
1635
|
}, S = function(Q) {
|
|
1636
|
-
x.queue > 0 && x.queue--, x.queue <= 0 && (x.scroll = !0, z(), Oe()),
|
|
1636
|
+
x.queue > 0 && x.queue--, x.queue <= 0 && (x.scroll = !0, z(), Oe()), H(Q);
|
|
1637
1637
|
}, T = function() {
|
|
1638
1638
|
return x.scroll;
|
|
1639
1639
|
}, N = function() {
|
|
@@ -1674,7 +1674,7 @@ var Ur = {}, Du = {
|
|
|
1674
1674
|
});
|
|
1675
1675
|
});
|
|
1676
1676
|
}
|
|
1677
|
-
},
|
|
1677
|
+
}, H = function(Q) {
|
|
1678
1678
|
if (Q) {
|
|
1679
1679
|
var ve = l(Q);
|
|
1680
1680
|
ve.map(function(_e) {
|
|
@@ -1690,7 +1690,7 @@ var Ur = {}, Du = {
|
|
|
1690
1690
|
x.scrollableSelectors.push(_e);
|
|
1691
1691
|
});
|
|
1692
1692
|
}
|
|
1693
|
-
},
|
|
1693
|
+
}, C = function(Q) {
|
|
1694
1694
|
if (Q) {
|
|
1695
1695
|
var ve = l(Q);
|
|
1696
1696
|
ve.map(function(_e) {
|
|
@@ -1706,14 +1706,14 @@ var Ur = {}, Du = {
|
|
|
1706
1706
|
p(_e, function(Ae) {
|
|
1707
1707
|
a(Ae) ? Ae.setAttribute("data-scroll-lock-lockable", "") : d('"'.concat(Ae, '" is not a Element.'));
|
|
1708
1708
|
});
|
|
1709
|
-
}), T() ||
|
|
1709
|
+
}), T() || L();
|
|
1710
1710
|
}
|
|
1711
|
-
},
|
|
1711
|
+
}, V = function(Q) {
|
|
1712
1712
|
if (Q) {
|
|
1713
1713
|
var ve = l(Q);
|
|
1714
1714
|
ve.map(function(_e) {
|
|
1715
1715
|
x.lockableSelectors.push(_e);
|
|
1716
|
-
}), T() ||
|
|
1716
|
+
}), T() || L(), ee(Q);
|
|
1717
1717
|
}
|
|
1718
1718
|
}, ne = function(Q) {
|
|
1719
1719
|
if (Q)
|
|
@@ -1760,7 +1760,7 @@ Available fill gap methods: `).concat(ve, "."));
|
|
|
1760
1760
|
}
|
|
1761
1761
|
}, I = function() {
|
|
1762
1762
|
x.scroll || Ee();
|
|
1763
|
-
},
|
|
1763
|
+
}, L = function() {
|
|
1764
1764
|
var Q = c(x.lockableSelectors);
|
|
1765
1765
|
te(Q);
|
|
1766
1766
|
}, z = function() {
|
|
@@ -1921,10 +1921,10 @@ Available fill gap methods: `).concat(ve, "."));
|
|
|
1921
1921
|
getPageScrollBarWidth: K,
|
|
1922
1922
|
getCurrentPageScrollBarWidth: G,
|
|
1923
1923
|
addScrollableSelector: P,
|
|
1924
|
-
removeScrollableSelector:
|
|
1924
|
+
removeScrollableSelector: C,
|
|
1925
1925
|
addScrollableTarget: le,
|
|
1926
|
-
removeScrollableTarget:
|
|
1927
|
-
addLockableSelector:
|
|
1926
|
+
removeScrollableTarget: H,
|
|
1927
|
+
addLockableSelector: V,
|
|
1928
1928
|
addLockableTarget: D,
|
|
1929
1929
|
addFillGapSelector: ee,
|
|
1930
1930
|
removeFillGapSelector: W,
|
|
@@ -2200,7 +2200,7 @@ const $r = /* @__PURE__ */ me({
|
|
|
2200
2200
|
}, [
|
|
2201
2201
|
R("div", {
|
|
2202
2202
|
class: "animate-shimmer absolute inset-0 -translate-x-full border-t border-white/80 bg-gradient-to-r from-transparent via-white/80 to-transparent",
|
|
2203
|
-
style:
|
|
2203
|
+
style: Ze({
|
|
2204
2204
|
animationDelay: e.delay
|
|
2205
2205
|
})
|
|
2206
2206
|
}, null, 4),
|
|
@@ -2533,25 +2533,25 @@ const ea = /* @__PURE__ */ ht(ec, [["render", ic]]), oc = { class: "relative w-f
|
|
|
2533
2533
|
), u = ie(null);
|
|
2534
2534
|
let p = 0;
|
|
2535
2535
|
const d = ie(""), c = ie(null), f = ie(null), s = ie(!1), v = ie(!1), g = a.normalizedOptions, w = a.normalizedModelValue, h = Y(() => {
|
|
2536
|
-
let
|
|
2536
|
+
let H = g.value;
|
|
2537
2537
|
if (n.showEmptyOption) {
|
|
2538
2538
|
const P = {
|
|
2539
2539
|
[n.valueKey]: null,
|
|
2540
2540
|
[n.labelKey]: n.emptyOptionLabel,
|
|
2541
2541
|
option: null
|
|
2542
2542
|
};
|
|
2543
|
-
|
|
2543
|
+
H = [
|
|
2544
2544
|
{ value: null, label: n.emptyOptionLabel, option: P },
|
|
2545
|
-
...
|
|
2545
|
+
...H
|
|
2546
2546
|
];
|
|
2547
2547
|
}
|
|
2548
|
-
return s.value === !1 ?
|
|
2548
|
+
return s.value === !1 ? H : H.filter((P) => n.filter !== void 0 ? n.filter(P) : P.label ? P.label.toLowerCase().includes(d.value.toLowerCase()) : !1);
|
|
2549
2549
|
});
|
|
2550
2550
|
je(
|
|
2551
2551
|
() => w.value,
|
|
2552
2552
|
() => {
|
|
2553
|
-
var
|
|
2554
|
-
w.value ? n.showModelValue && _((
|
|
2553
|
+
var H;
|
|
2554
|
+
w.value ? n.showModelValue && _((H = w.value) == null ? void 0 : H.label) : n.showModelValue && (n.showEmptyOption ? _(n.emptyOptionLabel) : _(""));
|
|
2555
2555
|
},
|
|
2556
2556
|
{ immediate: !0 }
|
|
2557
2557
|
), $o(c, () => {
|
|
@@ -2565,57 +2565,59 @@ const ea = /* @__PURE__ */ ht(ec, [["render", ic]]), oc = { class: "relative w-f
|
|
|
2565
2565
|
n.showModelValue && (w.value ? _(w.value.label) : n.showEmptyOption ? _(n.emptyOptionLabel) : _(""));
|
|
2566
2566
|
}, 10), r("close");
|
|
2567
2567
|
}
|
|
2568
|
-
const k = (
|
|
2569
|
-
y(), s.value = !0, _(an(
|
|
2570
|
-
}, m = (
|
|
2571
|
-
var
|
|
2572
|
-
const P =
|
|
2573
|
-
if ((
|
|
2574
|
-
|
|
2568
|
+
const k = (H) => {
|
|
2569
|
+
y(), s.value = !0, _(an(H, "target.value") + ""), r("typing", d.value), d.value == "" && !n.showEmptyOption && E(null);
|
|
2570
|
+
}, m = (H) => {
|
|
2571
|
+
var C;
|
|
2572
|
+
const P = H.key;
|
|
2573
|
+
if ((C = u.value) == null || C.onKeydown(H), P === "ArrowUp") {
|
|
2574
|
+
H.preventDefault();
|
|
2575
2575
|
return;
|
|
2576
2576
|
}
|
|
2577
2577
|
if (P === "ArrowDown") {
|
|
2578
|
-
|
|
2578
|
+
H.preventDefault();
|
|
2579
2579
|
return;
|
|
2580
2580
|
}
|
|
2581
2581
|
}, O = () => {
|
|
2582
2582
|
E(null), r("clear");
|
|
2583
2583
|
};
|
|
2584
|
-
function A(
|
|
2585
|
-
x(), E(
|
|
2584
|
+
function A(H) {
|
|
2585
|
+
x(), E(H), n.dropdownShow == "focus" && t();
|
|
2586
2586
|
}
|
|
2587
|
-
function E(
|
|
2587
|
+
function E(H) {
|
|
2588
2588
|
s.value = !1;
|
|
2589
|
-
let P =
|
|
2590
|
-
n.showEmptyOption &&
|
|
2589
|
+
let P = H ? H.option : null;
|
|
2590
|
+
n.showEmptyOption && H && H.value == null && (P = null), l(P);
|
|
2591
2591
|
}
|
|
2592
|
-
function _(
|
|
2593
|
-
d.value =
|
|
2592
|
+
function _(H) {
|
|
2593
|
+
d.value = H;
|
|
2594
2594
|
}
|
|
2595
2595
|
function x() {
|
|
2596
|
-
var
|
|
2597
|
-
(
|
|
2596
|
+
var H;
|
|
2597
|
+
(H = f.value) == null || H.focus();
|
|
2598
2598
|
}
|
|
2599
2599
|
function b() {
|
|
2600
|
-
var
|
|
2601
|
-
(
|
|
2600
|
+
var H;
|
|
2601
|
+
(H = f.value) == null || H.blur();
|
|
2602
2602
|
}
|
|
2603
2603
|
function S() {
|
|
2604
|
-
var
|
|
2605
|
-
(
|
|
2604
|
+
var H;
|
|
2605
|
+
(H = f.value) == null || H.select();
|
|
2606
2606
|
}
|
|
2607
2607
|
const T = ie(null);
|
|
2608
2608
|
je(
|
|
2609
2609
|
() => n.select,
|
|
2610
|
-
(
|
|
2611
|
-
|
|
2610
|
+
(H) => {
|
|
2611
|
+
H && H.options.length > 0 && (T.value = H.options[0].value);
|
|
2612
2612
|
},
|
|
2613
2613
|
{ immediate: !0 }
|
|
2614
2614
|
);
|
|
2615
|
-
function N(
|
|
2616
|
-
|
|
2617
|
-
const P = an(
|
|
2618
|
-
n.select && n.select.onChange && n.select.onChange(
|
|
2615
|
+
function N(H) {
|
|
2616
|
+
var D;
|
|
2617
|
+
const P = an(H, "target.value", null), C = (D = n.select) == null ? void 0 : D.options.find((V) => V.value == P);
|
|
2618
|
+
n.select && n.select.onChange && n.select.onChange(C ?? null), r("select", P), We(() => {
|
|
2619
|
+
x(), y(), S();
|
|
2620
|
+
});
|
|
2619
2621
|
}
|
|
2620
2622
|
const M = {
|
|
2621
2623
|
focus: x,
|
|
@@ -2630,7 +2632,7 @@ const ea = /* @__PURE__ */ ht(ec, [["render", ic]]), oc = { class: "relative w-f
|
|
|
2630
2632
|
close: t,
|
|
2631
2633
|
open: y,
|
|
2632
2634
|
setKeywords: _
|
|
2633
|
-
}), (
|
|
2635
|
+
}), (H, P) => (F(), J("div", {
|
|
2634
2636
|
ref_key: "autocomplete",
|
|
2635
2637
|
ref: c
|
|
2636
2638
|
}, [
|
|
@@ -2638,7 +2640,7 @@ const ea = /* @__PURE__ */ ht(ec, [["render", ic]]), oc = { class: "relative w-f
|
|
|
2638
2640
|
R("div", yc, [
|
|
2639
2641
|
e.select ? lt((F(), J("select", {
|
|
2640
2642
|
key: 0,
|
|
2641
|
-
"onUpdate:modelValue": P[0] || (P[0] = (
|
|
2643
|
+
"onUpdate:modelValue": P[0] || (P[0] = (C) => On(T) ? T.value = C : null),
|
|
2642
2644
|
disabled: e.disabled,
|
|
2643
2645
|
class: ue(["rounded-l border-r-transparent focus:z-[1] focus:border-r-blue-500 disabled:cursor-not-allowed disabled:text-slate-300 disabled:opacity-100", [
|
|
2644
2646
|
$(i) ? "border-red-600" : "border-slate-300",
|
|
@@ -2646,10 +2648,10 @@ const ea = /* @__PURE__ */ ht(ec, [["render", ic]]), oc = { class: "relative w-f
|
|
|
2646
2648
|
]]),
|
|
2647
2649
|
onChange: N
|
|
2648
2650
|
}, [
|
|
2649
|
-
(F(!0), J(Le, null, Re(e.select.options, (
|
|
2650
|
-
key:
|
|
2651
|
-
value:
|
|
2652
|
-
}, xe(
|
|
2651
|
+
(F(!0), J(Le, null, Re(e.select.options, (C) => (F(), J("option", {
|
|
2652
|
+
key: C.value + "",
|
|
2653
|
+
value: C.value
|
|
2654
|
+
}, xe(C.label), 9, bc))), 128))
|
|
2653
2655
|
], 42, gc)), [
|
|
2654
2656
|
[Br, $(T)]
|
|
2655
2657
|
]) : we("", !0),
|
|
@@ -2659,7 +2661,7 @@ const ea = /* @__PURE__ */ ht(ec, [["render", ic]]), oc = { class: "relative w-f
|
|
|
2659
2661
|
ref: f,
|
|
2660
2662
|
value: $(d),
|
|
2661
2663
|
type: "text",
|
|
2662
|
-
placeholder: e.placeholder ? e.placeholder :
|
|
2664
|
+
placeholder: e.placeholder ? e.placeholder : H.$t("sui.autocomplete_placeholder"),
|
|
2663
2665
|
class: ue(["relative w-full pr-9 disabled:cursor-not-allowed disabled:text-slate-300", [
|
|
2664
2666
|
e.select ? "-left-px rounded-r" : "rounded",
|
|
2665
2667
|
$(i) ? "border-red-600" : "border-slate-300",
|
|
@@ -2689,7 +2691,7 @@ const ea = /* @__PURE__ */ ht(ec, [["render", ic]]), oc = { class: "relative w-f
|
|
|
2689
2691
|
R("button", {
|
|
2690
2692
|
type: "button",
|
|
2691
2693
|
class: "group flex h-full items-center rounded p-1.5 enabled:hover:bg-slate-100",
|
|
2692
|
-
onClick: P[1] || (P[1] = (
|
|
2694
|
+
onClick: P[1] || (P[1] = (C) => O())
|
|
2693
2695
|
}, [
|
|
2694
2696
|
he($(qe), {
|
|
2695
2697
|
icon: "heroicons:x-mark",
|
|
@@ -2715,16 +2717,16 @@ const ea = /* @__PURE__ */ ht(ec, [["render", ic]]), oc = { class: "relative w-f
|
|
|
2715
2717
|
"drawer-class": e.inline ? "pt-1" : "p-1",
|
|
2716
2718
|
keywords: $(d),
|
|
2717
2719
|
onSelect: A,
|
|
2718
|
-
onScrollBottom: P[2] || (P[2] = (
|
|
2720
|
+
onScrollBottom: P[2] || (P[2] = (C) => r("scrollBottom"))
|
|
2719
2721
|
}, {
|
|
2720
|
-
empty: pe((
|
|
2721
|
-
ke(
|
|
2722
|
+
empty: pe((C) => [
|
|
2723
|
+
ke(H.$slots, "empty", at(st({ ...C, ...M })))
|
|
2722
2724
|
]),
|
|
2723
|
-
option: pe((
|
|
2724
|
-
ke(
|
|
2725
|
+
option: pe((C) => [
|
|
2726
|
+
ke(H.$slots, "option", at(st({ ...C, ...M })))
|
|
2725
2727
|
]),
|
|
2726
|
-
footer: pe((
|
|
2727
|
-
ke(
|
|
2728
|
+
footer: pe((C) => [
|
|
2729
|
+
ke(H.$slots, "footer", at(st({ ...C, ...M })))
|
|
2728
2730
|
]),
|
|
2729
2731
|
_: 3
|
|
2730
2732
|
}, 8, ["selected", "options", "size", "loading", "loading-bottom", "drawer-class", "keywords"])
|
|
@@ -2981,7 +2983,7 @@ const ea = /* @__PURE__ */ ht(ec, [["render", ic]]), oc = { class: "relative w-f
|
|
|
2981
2983
|
$(n),
|
|
2982
2984
|
e.detailsPosition == "left" ? "order-1 text-right" : "order-2 text-left"
|
|
2983
2985
|
]]),
|
|
2984
|
-
style:
|
|
2986
|
+
style: Ze({
|
|
2985
2987
|
marginLeft: e.detailsPosition == "right" ? $(i) : "0",
|
|
2986
2988
|
marginRight: e.detailsPosition == "left" ? $(i) : "0"
|
|
2987
2989
|
})
|
|
@@ -3033,7 +3035,7 @@ const ea = /* @__PURE__ */ ht(ec, [["render", ic]]), oc = { class: "relative w-f
|
|
|
3033
3035
|
class: "shrink-0",
|
|
3034
3036
|
"aria-label": l.full_name + `
|
|
3035
3037
|
` + l.email,
|
|
3036
|
-
style:
|
|
3038
|
+
style: Ze({
|
|
3037
3039
|
marginLeft: a === 0 ? "0" : "-" + $(r)
|
|
3038
3040
|
})
|
|
3039
3041
|
}, [
|
|
@@ -3081,7 +3083,7 @@ const ea = /* @__PURE__ */ ht(ec, [["render", ic]]), oc = { class: "relative w-f
|
|
|
3081
3083
|
}), i = Y(() => o.size == "base" ? "px-2.5 py-0.5 text-xs" : o.size == "lg" ? "px-3 py-0.5 text-sm" : "px-2.5 py-0.5 text-xs"), l = Y(() => o.size == "base" ? "h-3 w-3 mr-1 -ml-0.5" : o.size == "lg" ? "h-4 w-4 mr-1 -ml-0.5" : "h-3 w-3 mr-1 -ml-0.5");
|
|
3082
3084
|
return (a, u) => (F(), J("span", {
|
|
3083
3085
|
class: ue(["inline-flex items-center rounded-full font-medium", [$(r), $(i)]]),
|
|
3084
|
-
style:
|
|
3086
|
+
style: Ze($(n))
|
|
3085
3087
|
}, [
|
|
3086
3088
|
e.icon ? (F(), Se($(qe), {
|
|
3087
3089
|
key: 0,
|
|
@@ -3485,11 +3487,11 @@ const Qc = /* @__PURE__ */ ht(Hc, [["render", Yc]]), Zc = ["type", "disabled", "
|
|
|
3485
3487
|
}
|
|
3486
3488
|
return (d, c) => (F(), J("div", {
|
|
3487
3489
|
class: "flex flex-wrap",
|
|
3488
|
-
style:
|
|
3490
|
+
style: Ze({ margin: "-" + e.spacing })
|
|
3489
3491
|
}, [
|
|
3490
3492
|
(F(!0), J(Le, null, Re($(l), (f) => (F(), J("div", {
|
|
3491
3493
|
key: f.value ? f.value : "null",
|
|
3492
|
-
style:
|
|
3494
|
+
style: Ze({ padding: e.spacing })
|
|
3493
3495
|
}, [
|
|
3494
3496
|
R("button", {
|
|
3495
3497
|
type: e.buttonType,
|
|
@@ -3748,7 +3750,7 @@ const qo = /* @__PURE__ */ ht(Xc, [["render", ef]]), tf = {
|
|
|
3748
3750
|
}, {
|
|
3749
3751
|
option: pe((a) => [
|
|
3750
3752
|
R("div", {
|
|
3751
|
-
style:
|
|
3753
|
+
style: Ze({ backgroundColor: a.option.value + "" }),
|
|
3752
3754
|
class: ue(["rounded-md border-none p-3", [
|
|
3753
3755
|
a.selected.value ? "text-white" : "text-transparent",
|
|
3754
3756
|
e.disabled ? " cursor-not-allowed opacity-50" : ""
|
|
@@ -4089,17 +4091,17 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
4089
4091
|
}, { buffer: 3, lYpoI2: 11 }], 3: [function(r, n, i) {
|
|
4090
4092
|
(function(l, a, h, p, d, c, f, s, v) {
|
|
4091
4093
|
var g = r("base64-js"), w = r("ieee754");
|
|
4092
|
-
function h(I,
|
|
4094
|
+
function h(I, L, z) {
|
|
4093
4095
|
if (!(this instanceof h))
|
|
4094
|
-
return new h(I,
|
|
4096
|
+
return new h(I, L, z);
|
|
4095
4097
|
var te, re, se, de, Ee = typeof I;
|
|
4096
|
-
if (
|
|
4098
|
+
if (L === "base64" && Ee == "string")
|
|
4097
4099
|
for (I = (de = I).trim ? de.trim() : de.replace(/^\s+|\s+$/g, ""); I.length % 4 != 0; )
|
|
4098
4100
|
I += "=";
|
|
4099
4101
|
if (Ee == "number")
|
|
4100
4102
|
te = le(I);
|
|
4101
4103
|
else if (Ee == "string")
|
|
4102
|
-
te = h.byteLength(I,
|
|
4104
|
+
te = h.byteLength(I, L);
|
|
4103
4105
|
else {
|
|
4104
4106
|
if (Ee != "object")
|
|
4105
4107
|
throw new Error("First argument needs to be a number, array or string.");
|
|
@@ -4107,91 +4109,91 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
4107
4109
|
}
|
|
4108
4110
|
if (h._useTypedArrays ? re = h._augment(new Uint8Array(te)) : ((re = this).length = te, re._isBuffer = !0), h._useTypedArrays && typeof I.byteLength == "number")
|
|
4109
4111
|
re._set(I);
|
|
4110
|
-
else if (
|
|
4112
|
+
else if (H(de = I) || h.isBuffer(de) || de && typeof de == "object" && typeof de.length == "number")
|
|
4111
4113
|
for (se = 0; se < te; se++)
|
|
4112
4114
|
h.isBuffer(I) ? re[se] = I.readUInt8(se) : re[se] = I[se];
|
|
4113
4115
|
else if (Ee == "string")
|
|
4114
|
-
re.write(I, 0,
|
|
4116
|
+
re.write(I, 0, L);
|
|
4115
4117
|
else if (Ee == "number" && !h._useTypedArrays && !z)
|
|
4116
4118
|
for (se = 0; se < te; se++)
|
|
4117
4119
|
re[se] = 0;
|
|
4118
4120
|
return re;
|
|
4119
4121
|
}
|
|
4120
|
-
function y(I,
|
|
4121
|
-
return h._charsWritten =
|
|
4122
|
+
function y(I, L, z, te) {
|
|
4123
|
+
return h._charsWritten = V(function(re) {
|
|
4122
4124
|
for (var se = [], de = 0; de < re.length; de++)
|
|
4123
4125
|
se.push(255 & re.charCodeAt(de));
|
|
4124
4126
|
return se;
|
|
4125
|
-
}(
|
|
4127
|
+
}(L), I, z, te);
|
|
4126
4128
|
}
|
|
4127
|
-
function t(I,
|
|
4128
|
-
return h._charsWritten =
|
|
4129
|
+
function t(I, L, z, te) {
|
|
4130
|
+
return h._charsWritten = V(function(re) {
|
|
4129
4131
|
for (var se, de, Ee = [], Oe = 0; Oe < re.length; Oe++)
|
|
4130
4132
|
de = re.charCodeAt(Oe), se = de >> 8, de = de % 256, Ee.push(de), Ee.push(se);
|
|
4131
4133
|
return Ee;
|
|
4132
|
-
}(
|
|
4134
|
+
}(L), I, z, te);
|
|
4133
4135
|
}
|
|
4134
|
-
function k(I,
|
|
4136
|
+
function k(I, L, z) {
|
|
4135
4137
|
var te = "";
|
|
4136
4138
|
z = Math.min(I.length, z);
|
|
4137
|
-
for (var re =
|
|
4139
|
+
for (var re = L; re < z; re++)
|
|
4138
4140
|
te += String.fromCharCode(I[re]);
|
|
4139
4141
|
return te;
|
|
4140
4142
|
}
|
|
4141
|
-
function m(I,
|
|
4142
|
-
se || (W(typeof z == "boolean", "missing or invalid endian"), W(
|
|
4143
|
+
function m(I, L, z, se) {
|
|
4144
|
+
se || (W(typeof z == "boolean", "missing or invalid endian"), W(L != null, "missing offset"), W(L + 1 < I.length, "Trying to read beyond buffer length"));
|
|
4143
4145
|
var re, se = I.length;
|
|
4144
|
-
if (!(se <=
|
|
4145
|
-
return z ? (re = I[
|
|
4146
|
+
if (!(se <= L))
|
|
4147
|
+
return z ? (re = I[L], L + 1 < se && (re |= I[L + 1] << 8)) : (re = I[L] << 8, L + 1 < se && (re |= I[L + 1])), re;
|
|
4146
4148
|
}
|
|
4147
|
-
function O(I,
|
|
4148
|
-
se || (W(typeof z == "boolean", "missing or invalid endian"), W(
|
|
4149
|
+
function O(I, L, z, se) {
|
|
4150
|
+
se || (W(typeof z == "boolean", "missing or invalid endian"), W(L != null, "missing offset"), W(L + 3 < I.length, "Trying to read beyond buffer length"));
|
|
4149
4151
|
var re, se = I.length;
|
|
4150
|
-
if (!(se <=
|
|
4151
|
-
return z ? (
|
|
4152
|
+
if (!(se <= L))
|
|
4153
|
+
return z ? (L + 2 < se && (re = I[L + 2] << 16), L + 1 < se && (re |= I[L + 1] << 8), re |= I[L], L + 3 < se && (re += I[L + 3] << 24 >>> 0)) : (L + 1 < se && (re = I[L + 1] << 16), L + 2 < se && (re |= I[L + 2] << 8), L + 3 < se && (re |= I[L + 3]), re += I[L] << 24 >>> 0), re;
|
|
4152
4154
|
}
|
|
4153
|
-
function A(I,
|
|
4154
|
-
if (te || (W(typeof z == "boolean", "missing or invalid endian"), W(
|
|
4155
|
-
return te = m(I,
|
|
4155
|
+
function A(I, L, z, te) {
|
|
4156
|
+
if (te || (W(typeof z == "boolean", "missing or invalid endian"), W(L != null, "missing offset"), W(L + 1 < I.length, "Trying to read beyond buffer length")), !(I.length <= L))
|
|
4157
|
+
return te = m(I, L, z, !0), 32768 & te ? -1 * (65535 - te + 1) : te;
|
|
4156
4158
|
}
|
|
4157
|
-
function E(I,
|
|
4158
|
-
if (te || (W(typeof z == "boolean", "missing or invalid endian"), W(
|
|
4159
|
-
return te = O(I,
|
|
4159
|
+
function E(I, L, z, te) {
|
|
4160
|
+
if (te || (W(typeof z == "boolean", "missing or invalid endian"), W(L != null, "missing offset"), W(L + 3 < I.length, "Trying to read beyond buffer length")), !(I.length <= L))
|
|
4161
|
+
return te = O(I, L, z, !0), 2147483648 & te ? -1 * (4294967295 - te + 1) : te;
|
|
4160
4162
|
}
|
|
4161
|
-
function _(I,
|
|
4162
|
-
return te || (W(typeof z == "boolean", "missing or invalid endian"), W(
|
|
4163
|
+
function _(I, L, z, te) {
|
|
4164
|
+
return te || (W(typeof z == "boolean", "missing or invalid endian"), W(L + 3 < I.length, "Trying to read beyond buffer length")), w.read(I, L, z, 23, 4);
|
|
4163
4165
|
}
|
|
4164
|
-
function x(I,
|
|
4165
|
-
return te || (W(typeof z == "boolean", "missing or invalid endian"), W(
|
|
4166
|
+
function x(I, L, z, te) {
|
|
4167
|
+
return te || (W(typeof z == "boolean", "missing or invalid endian"), W(L + 7 < I.length, "Trying to read beyond buffer length")), w.read(I, L, z, 52, 8);
|
|
4166
4168
|
}
|
|
4167
|
-
function b(I,
|
|
4168
|
-
if (re || (W(
|
|
4169
|
+
function b(I, L, z, te, re) {
|
|
4170
|
+
if (re || (W(L != null, "missing value"), W(typeof te == "boolean", "missing or invalid endian"), W(z != null, "missing offset"), W(z + 1 < I.length, "trying to write beyond buffer length"), Z(L, 65535)), re = I.length, !(re <= z))
|
|
4169
4171
|
for (var se = 0, de = Math.min(re - z, 2); se < de; se++)
|
|
4170
|
-
I[z + se] = (
|
|
4172
|
+
I[z + se] = (L & 255 << 8 * (te ? se : 1 - se)) >>> 8 * (te ? se : 1 - se);
|
|
4171
4173
|
}
|
|
4172
|
-
function S(I,
|
|
4173
|
-
if (re || (W(
|
|
4174
|
+
function S(I, L, z, te, re) {
|
|
4175
|
+
if (re || (W(L != null, "missing value"), W(typeof te == "boolean", "missing or invalid endian"), W(z != null, "missing offset"), W(z + 3 < I.length, "trying to write beyond buffer length"), Z(L, 4294967295)), re = I.length, !(re <= z))
|
|
4174
4176
|
for (var se = 0, de = Math.min(re - z, 4); se < de; se++)
|
|
4175
|
-
I[z + se] =
|
|
4177
|
+
I[z + se] = L >>> 8 * (te ? se : 3 - se) & 255;
|
|
4176
4178
|
}
|
|
4177
|
-
function T(I,
|
|
4178
|
-
re || (W(
|
|
4179
|
+
function T(I, L, z, te, re) {
|
|
4180
|
+
re || (W(L != null, "missing value"), W(typeof te == "boolean", "missing or invalid endian"), W(z != null, "missing offset"), W(z + 1 < I.length, "Trying to write beyond buffer length"), U(L, 32767, -32768)), I.length <= z || b(I, 0 <= L ? L : 65535 + L + 1, z, te, re);
|
|
4179
4181
|
}
|
|
4180
|
-
function N(I,
|
|
4181
|
-
re || (W(
|
|
4182
|
+
function N(I, L, z, te, re) {
|
|
4183
|
+
re || (W(L != null, "missing value"), W(typeof te == "boolean", "missing or invalid endian"), W(z != null, "missing offset"), W(z + 3 < I.length, "Trying to write beyond buffer length"), U(L, 2147483647, -2147483648)), I.length <= z || S(I, 0 <= L ? L : 4294967295 + L + 1, z, te, re);
|
|
4182
4184
|
}
|
|
4183
|
-
function M(I,
|
|
4184
|
-
re || (W(
|
|
4185
|
+
function M(I, L, z, te, re) {
|
|
4186
|
+
re || (W(L != null, "missing value"), W(typeof te == "boolean", "missing or invalid endian"), W(z != null, "missing offset"), W(z + 3 < I.length, "Trying to write beyond buffer length"), ee(L, 34028234663852886e22, -34028234663852886e22)), I.length <= z || w.write(I, L, z, te, 23, 4);
|
|
4185
4187
|
}
|
|
4186
|
-
function q(I,
|
|
4187
|
-
re || (W(
|
|
4188
|
+
function q(I, L, z, te, re) {
|
|
4189
|
+
re || (W(L != null, "missing value"), W(typeof te == "boolean", "missing or invalid endian"), W(z != null, "missing offset"), W(z + 7 < I.length, "Trying to write beyond buffer length"), ee(L, 17976931348623157e292, -17976931348623157e292)), I.length <= z || w.write(I, L, z, te, 52, 8);
|
|
4188
4190
|
}
|
|
4189
4191
|
i.Buffer = h, i.SlowBuffer = h, i.INSPECT_MAX_BYTES = 50, h.poolSize = 8192, h._useTypedArrays = function() {
|
|
4190
4192
|
try {
|
|
4191
|
-
var I = new ArrayBuffer(0),
|
|
4192
|
-
return
|
|
4193
|
+
var I = new ArrayBuffer(0), L = new Uint8Array(I);
|
|
4194
|
+
return L.foo = function() {
|
|
4193
4195
|
return 42;
|
|
4194
|
-
},
|
|
4196
|
+
}, L.foo() === 42 && typeof L.subarray == "function";
|
|
4195
4197
|
} catch {
|
|
4196
4198
|
return !1;
|
|
4197
4199
|
}
|
|
@@ -4214,15 +4216,15 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
4214
4216
|
}
|
|
4215
4217
|
}, h.isBuffer = function(I) {
|
|
4216
4218
|
return !(I == null || !I._isBuffer);
|
|
4217
|
-
}, h.byteLength = function(I,
|
|
4219
|
+
}, h.byteLength = function(I, L) {
|
|
4218
4220
|
var z;
|
|
4219
|
-
switch (I += "",
|
|
4221
|
+
switch (I += "", L || "utf8") {
|
|
4220
4222
|
case "hex":
|
|
4221
4223
|
z = I.length / 2;
|
|
4222
4224
|
break;
|
|
4223
4225
|
case "utf8":
|
|
4224
4226
|
case "utf-8":
|
|
4225
|
-
z =
|
|
4227
|
+
z = C(I).length;
|
|
4226
4228
|
break;
|
|
4227
4229
|
case "ascii":
|
|
4228
4230
|
case "binary":
|
|
@@ -4242,23 +4244,23 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
4242
4244
|
throw new Error("Unknown encoding");
|
|
4243
4245
|
}
|
|
4244
4246
|
return z;
|
|
4245
|
-
}, h.concat = function(I,
|
|
4246
|
-
if (W(
|
|
4247
|
+
}, h.concat = function(I, L) {
|
|
4248
|
+
if (W(H(I), `Usage: Buffer.concat(list, [totalLength])
|
|
4247
4249
|
list should be an Array.`), I.length === 0)
|
|
4248
4250
|
return new h(0);
|
|
4249
4251
|
if (I.length === 1)
|
|
4250
4252
|
return I[0];
|
|
4251
|
-
if (typeof
|
|
4252
|
-
for (re =
|
|
4253
|
-
|
|
4254
|
-
for (var z = new h(
|
|
4253
|
+
if (typeof L != "number")
|
|
4254
|
+
for (re = L = 0; re < I.length; re++)
|
|
4255
|
+
L += I[re].length;
|
|
4256
|
+
for (var z = new h(L), te = 0, re = 0; re < I.length; re++) {
|
|
4255
4257
|
var se = I[re];
|
|
4256
4258
|
se.copy(z, te), te += se.length;
|
|
4257
4259
|
}
|
|
4258
4260
|
return z;
|
|
4259
|
-
}, h.prototype.write = function(I,
|
|
4260
|
-
isFinite(
|
|
4261
|
-
var re, se, de, Ee, Oe = this.length -
|
|
4261
|
+
}, h.prototype.write = function(I, L, z, te) {
|
|
4262
|
+
isFinite(L) ? isFinite(z) || (te = z, z = void 0) : (Oe = te, te = L, L = z, z = Oe), L = Number(L) || 0;
|
|
4263
|
+
var re, se, de, Ee, Oe = this.length - L;
|
|
4262
4264
|
switch ((!z || Oe < (z = Number(z))) && (z = Oe), te = String(te || "utf8").toLowerCase()) {
|
|
4263
4265
|
case "hex":
|
|
4264
4266
|
re = function(oe, ae, ye, be) {
|
|
@@ -4270,32 +4272,32 @@ list should be an Array.`), I.length === 0)
|
|
|
4270
4272
|
W(!isNaN(Ie), "Invalid hex string"), oe[ye + Be] = Ie;
|
|
4271
4273
|
}
|
|
4272
4274
|
return h._charsWritten = 2 * Be, Be;
|
|
4273
|
-
}(this, I,
|
|
4275
|
+
}(this, I, L, z);
|
|
4274
4276
|
break;
|
|
4275
4277
|
case "utf8":
|
|
4276
4278
|
case "utf-8":
|
|
4277
|
-
se = this, de =
|
|
4279
|
+
se = this, de = L, Ee = z, re = h._charsWritten = V(C(I), se, de, Ee);
|
|
4278
4280
|
break;
|
|
4279
4281
|
case "ascii":
|
|
4280
4282
|
case "binary":
|
|
4281
|
-
re = y(this, I,
|
|
4283
|
+
re = y(this, I, L, z);
|
|
4282
4284
|
break;
|
|
4283
4285
|
case "base64":
|
|
4284
|
-
se = this, de =
|
|
4286
|
+
se = this, de = L, Ee = z, re = h._charsWritten = V(D(I), se, de, Ee);
|
|
4285
4287
|
break;
|
|
4286
4288
|
case "ucs2":
|
|
4287
4289
|
case "ucs-2":
|
|
4288
4290
|
case "utf16le":
|
|
4289
4291
|
case "utf-16le":
|
|
4290
|
-
re = t(this, I,
|
|
4292
|
+
re = t(this, I, L, z);
|
|
4291
4293
|
break;
|
|
4292
4294
|
default:
|
|
4293
4295
|
throw new Error("Unknown encoding");
|
|
4294
4296
|
}
|
|
4295
4297
|
return re;
|
|
4296
|
-
}, h.prototype.toString = function(I,
|
|
4298
|
+
}, h.prototype.toString = function(I, L, z) {
|
|
4297
4299
|
var te, re, se, de, Ee = this;
|
|
4298
|
-
if (I = String(I || "utf8").toLowerCase(),
|
|
4300
|
+
if (I = String(I || "utf8").toLowerCase(), L = Number(L) || 0, (z = z !== void 0 ? Number(z) : Ee.length) === L)
|
|
4299
4301
|
return "";
|
|
4300
4302
|
switch (I) {
|
|
4301
4303
|
case "hex":
|
|
@@ -4305,7 +4307,7 @@ list should be an Array.`), I.length === 0)
|
|
|
4305
4307
|
for (var be = "", fe = oe; fe < ae; fe++)
|
|
4306
4308
|
be += P(Oe[fe]);
|
|
4307
4309
|
return be;
|
|
4308
|
-
}(Ee,
|
|
4310
|
+
}(Ee, L, z);
|
|
4309
4311
|
break;
|
|
4310
4312
|
case "utf8":
|
|
4311
4313
|
case "utf-8":
|
|
@@ -4315,14 +4317,14 @@ list should be an Array.`), I.length === 0)
|
|
|
4315
4317
|
for (var fe = oe; fe < ae; fe++)
|
|
4316
4318
|
Oe[fe] <= 127 ? (ye += ne(be) + String.fromCharCode(Oe[fe]), be = "") : be += "%" + Oe[fe].toString(16);
|
|
4317
4319
|
return ye + ne(be);
|
|
4318
|
-
}(Ee,
|
|
4320
|
+
}(Ee, L, z);
|
|
4319
4321
|
break;
|
|
4320
4322
|
case "ascii":
|
|
4321
4323
|
case "binary":
|
|
4322
|
-
te = k(Ee,
|
|
4324
|
+
te = k(Ee, L, z);
|
|
4323
4325
|
break;
|
|
4324
4326
|
case "base64":
|
|
4325
|
-
re = Ee, de = z, te = (se =
|
|
4327
|
+
re = Ee, de = z, te = (se = L) === 0 && de === re.length ? g.fromByteArray(re) : g.fromByteArray(re.slice(se, de));
|
|
4326
4328
|
break;
|
|
4327
4329
|
case "ucs2":
|
|
4328
4330
|
case "ucs-2":
|
|
@@ -4332,7 +4334,7 @@ list should be an Array.`), I.length === 0)
|
|
|
4332
4334
|
for (var ye = Oe.slice(oe, ae), be = "", fe = 0; fe < ye.length; fe += 2)
|
|
4333
4335
|
be += String.fromCharCode(ye[fe] + 256 * ye[fe + 1]);
|
|
4334
4336
|
return be;
|
|
4335
|
-
}(Ee,
|
|
4337
|
+
}(Ee, L, z);
|
|
4336
4338
|
break;
|
|
4337
4339
|
default:
|
|
4338
4340
|
throw new Error("Unknown encoding");
|
|
@@ -4340,93 +4342,93 @@ list should be an Array.`), I.length === 0)
|
|
|
4340
4342
|
return te;
|
|
4341
4343
|
}, h.prototype.toJSON = function() {
|
|
4342
4344
|
return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) };
|
|
4343
|
-
}, h.prototype.copy = function(I,
|
|
4344
|
-
if (
|
|
4345
|
-
W(z <= te, "sourceEnd < sourceStart"), W(0 <=
|
|
4346
|
-
var re = (te = I.length -
|
|
4345
|
+
}, h.prototype.copy = function(I, L, z, te) {
|
|
4346
|
+
if (L = L || 0, (te = te || te === 0 ? te : this.length) !== (z = z || 0) && I.length !== 0 && this.length !== 0) {
|
|
4347
|
+
W(z <= te, "sourceEnd < sourceStart"), W(0 <= L && L < I.length, "targetStart out of bounds"), W(0 <= z && z < this.length, "sourceStart out of bounds"), W(0 <= te && te <= this.length, "sourceEnd out of bounds"), te > this.length && (te = this.length);
|
|
4348
|
+
var re = (te = I.length - L < te - z ? I.length - L + z : te) - z;
|
|
4347
4349
|
if (re < 100 || !h._useTypedArrays)
|
|
4348
4350
|
for (var se = 0; se < re; se++)
|
|
4349
|
-
I[se +
|
|
4351
|
+
I[se + L] = this[se + z];
|
|
4350
4352
|
else
|
|
4351
|
-
I._set(this.subarray(z, z + re),
|
|
4353
|
+
I._set(this.subarray(z, z + re), L);
|
|
4352
4354
|
}
|
|
4353
|
-
}, h.prototype.slice = function(I,
|
|
4355
|
+
}, h.prototype.slice = function(I, L) {
|
|
4354
4356
|
var z = this.length;
|
|
4355
|
-
if (I = G(I, z, 0),
|
|
4356
|
-
return h._augment(this.subarray(I,
|
|
4357
|
-
for (var te =
|
|
4357
|
+
if (I = G(I, z, 0), L = G(L, z, z), h._useTypedArrays)
|
|
4358
|
+
return h._augment(this.subarray(I, L));
|
|
4359
|
+
for (var te = L - I, re = new h(te, void 0, !0), se = 0; se < te; se++)
|
|
4358
4360
|
re[se] = this[se + I];
|
|
4359
4361
|
return re;
|
|
4360
4362
|
}, h.prototype.get = function(I) {
|
|
4361
4363
|
return console.log(".get() is deprecated. Access using array indexes instead."), this.readUInt8(I);
|
|
4362
|
-
}, h.prototype.set = function(I,
|
|
4363
|
-
return console.log(".set() is deprecated. Access using array indexes instead."), this.writeUInt8(I,
|
|
4364
|
-
}, h.prototype.readUInt8 = function(I,
|
|
4365
|
-
if (
|
|
4364
|
+
}, h.prototype.set = function(I, L) {
|
|
4365
|
+
return console.log(".set() is deprecated. Access using array indexes instead."), this.writeUInt8(I, L);
|
|
4366
|
+
}, h.prototype.readUInt8 = function(I, L) {
|
|
4367
|
+
if (L || (W(I != null, "missing offset"), W(I < this.length, "Trying to read beyond buffer length")), !(I >= this.length))
|
|
4366
4368
|
return this[I];
|
|
4367
|
-
}, h.prototype.readUInt16LE = function(I,
|
|
4368
|
-
return m(this, I, !0,
|
|
4369
|
-
}, h.prototype.readUInt16BE = function(I,
|
|
4370
|
-
return m(this, I, !1,
|
|
4371
|
-
}, h.prototype.readUInt32LE = function(I,
|
|
4372
|
-
return O(this, I, !0,
|
|
4373
|
-
}, h.prototype.readUInt32BE = function(I,
|
|
4374
|
-
return O(this, I, !1,
|
|
4375
|
-
}, h.prototype.readInt8 = function(I,
|
|
4376
|
-
if (
|
|
4369
|
+
}, h.prototype.readUInt16LE = function(I, L) {
|
|
4370
|
+
return m(this, I, !0, L);
|
|
4371
|
+
}, h.prototype.readUInt16BE = function(I, L) {
|
|
4372
|
+
return m(this, I, !1, L);
|
|
4373
|
+
}, h.prototype.readUInt32LE = function(I, L) {
|
|
4374
|
+
return O(this, I, !0, L);
|
|
4375
|
+
}, h.prototype.readUInt32BE = function(I, L) {
|
|
4376
|
+
return O(this, I, !1, L);
|
|
4377
|
+
}, h.prototype.readInt8 = function(I, L) {
|
|
4378
|
+
if (L || (W(I != null, "missing offset"), W(I < this.length, "Trying to read beyond buffer length")), !(I >= this.length))
|
|
4377
4379
|
return 128 & this[I] ? -1 * (255 - this[I] + 1) : this[I];
|
|
4378
|
-
}, h.prototype.readInt16LE = function(I,
|
|
4379
|
-
return A(this, I, !0,
|
|
4380
|
-
}, h.prototype.readInt16BE = function(I,
|
|
4381
|
-
return A(this, I, !1,
|
|
4382
|
-
}, h.prototype.readInt32LE = function(I,
|
|
4383
|
-
return E(this, I, !0,
|
|
4384
|
-
}, h.prototype.readInt32BE = function(I,
|
|
4385
|
-
return E(this, I, !1,
|
|
4386
|
-
}, h.prototype.readFloatLE = function(I,
|
|
4387
|
-
return _(this, I, !0,
|
|
4388
|
-
}, h.prototype.readFloatBE = function(I,
|
|
4389
|
-
return _(this, I, !1,
|
|
4390
|
-
}, h.prototype.readDoubleLE = function(I,
|
|
4391
|
-
return x(this, I, !0,
|
|
4392
|
-
}, h.prototype.readDoubleBE = function(I,
|
|
4393
|
-
return x(this, I, !1,
|
|
4394
|
-
}, h.prototype.writeUInt8 = function(I,
|
|
4395
|
-
z || (W(I != null, "missing value"), W(
|
|
4396
|
-
}, h.prototype.writeUInt16LE = function(I,
|
|
4397
|
-
b(this, I,
|
|
4398
|
-
}, h.prototype.writeUInt16BE = function(I,
|
|
4399
|
-
b(this, I,
|
|
4400
|
-
}, h.prototype.writeUInt32LE = function(I,
|
|
4401
|
-
S(this, I,
|
|
4402
|
-
}, h.prototype.writeUInt32BE = function(I,
|
|
4403
|
-
S(this, I,
|
|
4404
|
-
}, h.prototype.writeInt8 = function(I,
|
|
4405
|
-
z || (W(I != null, "missing value"), W(
|
|
4406
|
-
}, h.prototype.writeInt16LE = function(I,
|
|
4407
|
-
T(this, I,
|
|
4408
|
-
}, h.prototype.writeInt16BE = function(I,
|
|
4409
|
-
T(this, I,
|
|
4410
|
-
}, h.prototype.writeInt32LE = function(I,
|
|
4411
|
-
N(this, I,
|
|
4412
|
-
}, h.prototype.writeInt32BE = function(I,
|
|
4413
|
-
N(this, I,
|
|
4414
|
-
}, h.prototype.writeFloatLE = function(I,
|
|
4415
|
-
M(this, I,
|
|
4416
|
-
}, h.prototype.writeFloatBE = function(I,
|
|
4417
|
-
M(this, I,
|
|
4418
|
-
}, h.prototype.writeDoubleLE = function(I,
|
|
4419
|
-
q(this, I,
|
|
4420
|
-
}, h.prototype.writeDoubleBE = function(I,
|
|
4421
|
-
q(this, I,
|
|
4422
|
-
}, h.prototype.fill = function(I,
|
|
4423
|
-
if (
|
|
4424
|
-
W(0 <=
|
|
4425
|
-
for (var te =
|
|
4380
|
+
}, h.prototype.readInt16LE = function(I, L) {
|
|
4381
|
+
return A(this, I, !0, L);
|
|
4382
|
+
}, h.prototype.readInt16BE = function(I, L) {
|
|
4383
|
+
return A(this, I, !1, L);
|
|
4384
|
+
}, h.prototype.readInt32LE = function(I, L) {
|
|
4385
|
+
return E(this, I, !0, L);
|
|
4386
|
+
}, h.prototype.readInt32BE = function(I, L) {
|
|
4387
|
+
return E(this, I, !1, L);
|
|
4388
|
+
}, h.prototype.readFloatLE = function(I, L) {
|
|
4389
|
+
return _(this, I, !0, L);
|
|
4390
|
+
}, h.prototype.readFloatBE = function(I, L) {
|
|
4391
|
+
return _(this, I, !1, L);
|
|
4392
|
+
}, h.prototype.readDoubleLE = function(I, L) {
|
|
4393
|
+
return x(this, I, !0, L);
|
|
4394
|
+
}, h.prototype.readDoubleBE = function(I, L) {
|
|
4395
|
+
return x(this, I, !1, L);
|
|
4396
|
+
}, h.prototype.writeUInt8 = function(I, L, z) {
|
|
4397
|
+
z || (W(I != null, "missing value"), W(L != null, "missing offset"), W(L < this.length, "trying to write beyond buffer length"), Z(I, 255)), L >= this.length || (this[L] = I);
|
|
4398
|
+
}, h.prototype.writeUInt16LE = function(I, L, z) {
|
|
4399
|
+
b(this, I, L, !0, z);
|
|
4400
|
+
}, h.prototype.writeUInt16BE = function(I, L, z) {
|
|
4401
|
+
b(this, I, L, !1, z);
|
|
4402
|
+
}, h.prototype.writeUInt32LE = function(I, L, z) {
|
|
4403
|
+
S(this, I, L, !0, z);
|
|
4404
|
+
}, h.prototype.writeUInt32BE = function(I, L, z) {
|
|
4405
|
+
S(this, I, L, !1, z);
|
|
4406
|
+
}, h.prototype.writeInt8 = function(I, L, z) {
|
|
4407
|
+
z || (W(I != null, "missing value"), W(L != null, "missing offset"), W(L < this.length, "Trying to write beyond buffer length"), U(I, 127, -128)), L >= this.length || (0 <= I ? this.writeUInt8(I, L, z) : this.writeUInt8(255 + I + 1, L, z));
|
|
4408
|
+
}, h.prototype.writeInt16LE = function(I, L, z) {
|
|
4409
|
+
T(this, I, L, !0, z);
|
|
4410
|
+
}, h.prototype.writeInt16BE = function(I, L, z) {
|
|
4411
|
+
T(this, I, L, !1, z);
|
|
4412
|
+
}, h.prototype.writeInt32LE = function(I, L, z) {
|
|
4413
|
+
N(this, I, L, !0, z);
|
|
4414
|
+
}, h.prototype.writeInt32BE = function(I, L, z) {
|
|
4415
|
+
N(this, I, L, !1, z);
|
|
4416
|
+
}, h.prototype.writeFloatLE = function(I, L, z) {
|
|
4417
|
+
M(this, I, L, !0, z);
|
|
4418
|
+
}, h.prototype.writeFloatBE = function(I, L, z) {
|
|
4419
|
+
M(this, I, L, !1, z);
|
|
4420
|
+
}, h.prototype.writeDoubleLE = function(I, L, z) {
|
|
4421
|
+
q(this, I, L, !0, z);
|
|
4422
|
+
}, h.prototype.writeDoubleBE = function(I, L, z) {
|
|
4423
|
+
q(this, I, L, !1, z);
|
|
4424
|
+
}, h.prototype.fill = function(I, L, z) {
|
|
4425
|
+
if (L = L || 0, z = z || this.length, W(typeof (I = typeof (I = I || 0) == "string" ? I.charCodeAt(0) : I) == "number" && !isNaN(I), "value is not a number"), W(L <= z, "end < start"), z !== L && this.length !== 0) {
|
|
4426
|
+
W(0 <= L && L < this.length, "start out of bounds"), W(0 <= z && z <= this.length, "end out of bounds");
|
|
4427
|
+
for (var te = L; te < z; te++)
|
|
4426
4428
|
this[te] = I;
|
|
4427
4429
|
}
|
|
4428
4430
|
}, h.prototype.inspect = function() {
|
|
4429
|
-
for (var I = [],
|
|
4431
|
+
for (var I = [], L = this.length, z = 0; z < L; z++)
|
|
4430
4432
|
if (I[z] = P(this[z]), z === i.INSPECT_MAX_BYTES) {
|
|
4431
4433
|
I[z + 1] = "...";
|
|
4432
4434
|
break;
|
|
@@ -4437,42 +4439,42 @@ list should be an Array.`), I.length === 0)
|
|
|
4437
4439
|
throw new Error("Buffer.toArrayBuffer not supported in this browser");
|
|
4438
4440
|
if (h._useTypedArrays)
|
|
4439
4441
|
return new h(this).buffer;
|
|
4440
|
-
for (var I = new Uint8Array(this.length),
|
|
4441
|
-
I[
|
|
4442
|
+
for (var I = new Uint8Array(this.length), L = 0, z = I.length; L < z; L += 1)
|
|
4443
|
+
I[L] = this[L];
|
|
4442
4444
|
return I.buffer;
|
|
4443
4445
|
};
|
|
4444
4446
|
var K = h.prototype;
|
|
4445
|
-
function G(I,
|
|
4446
|
-
return typeof I != "number" ? z :
|
|
4447
|
+
function G(I, L, z) {
|
|
4448
|
+
return typeof I != "number" ? z : L <= (I = ~~I) ? L : 0 <= I || 0 <= (I += L) ? I : 0;
|
|
4447
4449
|
}
|
|
4448
4450
|
function le(I) {
|
|
4449
4451
|
return (I = ~~Math.ceil(+I)) < 0 ? 0 : I;
|
|
4450
4452
|
}
|
|
4451
|
-
function
|
|
4452
|
-
return (Array.isArray || function(
|
|
4453
|
-
return Object.prototype.toString.call(
|
|
4453
|
+
function H(I) {
|
|
4454
|
+
return (Array.isArray || function(L) {
|
|
4455
|
+
return Object.prototype.toString.call(L) === "[object Array]";
|
|
4454
4456
|
})(I);
|
|
4455
4457
|
}
|
|
4456
4458
|
function P(I) {
|
|
4457
4459
|
return I < 16 ? "0" + I.toString(16) : I.toString(16);
|
|
4458
4460
|
}
|
|
4459
|
-
function
|
|
4460
|
-
for (var
|
|
4461
|
+
function C(I) {
|
|
4462
|
+
for (var L = [], z = 0; z < I.length; z++) {
|
|
4461
4463
|
var te = I.charCodeAt(z);
|
|
4462
4464
|
if (te <= 127)
|
|
4463
|
-
|
|
4465
|
+
L.push(I.charCodeAt(z));
|
|
4464
4466
|
else
|
|
4465
4467
|
for (var re = z, se = (55296 <= te && te <= 57343 && z++, encodeURIComponent(I.slice(re, z + 1)).substr(1).split("%")), de = 0; de < se.length; de++)
|
|
4466
|
-
|
|
4468
|
+
L.push(parseInt(se[de], 16));
|
|
4467
4469
|
}
|
|
4468
|
-
return
|
|
4470
|
+
return L;
|
|
4469
4471
|
}
|
|
4470
4472
|
function D(I) {
|
|
4471
4473
|
return g.toByteArray(I);
|
|
4472
4474
|
}
|
|
4473
|
-
function
|
|
4474
|
-
for (var re = 0; re < te && !(re + z >=
|
|
4475
|
-
|
|
4475
|
+
function V(I, L, z, te) {
|
|
4476
|
+
for (var re = 0; re < te && !(re + z >= L.length || re >= I.length); re++)
|
|
4477
|
+
L[re + z] = I[re];
|
|
4476
4478
|
return re;
|
|
4477
4479
|
}
|
|
4478
4480
|
function ne(I) {
|
|
@@ -4482,18 +4484,18 @@ list should be an Array.`), I.length === 0)
|
|
|
4482
4484
|
return String.fromCharCode(65533);
|
|
4483
4485
|
}
|
|
4484
4486
|
}
|
|
4485
|
-
function Z(I,
|
|
4486
|
-
W(typeof I == "number", "cannot write a non-number as a number"), W(0 <= I, "specified a negative value for writing an unsigned value"), W(I <=
|
|
4487
|
+
function Z(I, L) {
|
|
4488
|
+
W(typeof I == "number", "cannot write a non-number as a number"), W(0 <= I, "specified a negative value for writing an unsigned value"), W(I <= L, "value is larger than maximum value for type"), W(Math.floor(I) === I, "value has a fractional component");
|
|
4487
4489
|
}
|
|
4488
|
-
function U(I,
|
|
4489
|
-
W(typeof I == "number", "cannot write a non-number as a number"), W(I <=
|
|
4490
|
+
function U(I, L, z) {
|
|
4491
|
+
W(typeof I == "number", "cannot write a non-number as a number"), W(I <= L, "value larger than maximum allowed value"), W(z <= I, "value smaller than minimum allowed value"), W(Math.floor(I) === I, "value has a fractional component");
|
|
4490
4492
|
}
|
|
4491
|
-
function ee(I,
|
|
4492
|
-
W(typeof I == "number", "cannot write a non-number as a number"), W(I <=
|
|
4493
|
+
function ee(I, L, z) {
|
|
4494
|
+
W(typeof I == "number", "cannot write a non-number as a number"), W(I <= L, "value larger than maximum allowed value"), W(z <= I, "value smaller than minimum allowed value");
|
|
4493
4495
|
}
|
|
4494
|
-
function W(I,
|
|
4496
|
+
function W(I, L) {
|
|
4495
4497
|
if (!I)
|
|
4496
|
-
throw new Error(
|
|
4498
|
+
throw new Error(L || "Failed assertion");
|
|
4497
4499
|
}
|
|
4498
4500
|
h._augment = function(I) {
|
|
4499
4501
|
return I._isBuffer = !0, I._get = I.get, I._set = I.set, I.get = K.get, I.set = K.set, I.write = K.write, I.toString = K.toString, I.toLocaleString = K.toString, I.toJSON = K.toJSON, I.copy = K.copy, I.slice = K.slice, I.readUInt8 = K.readUInt8, I.readUInt16LE = K.readUInt16LE, I.readUInt16BE = K.readUInt16BE, I.readUInt32LE = K.readUInt32LE, I.readUInt32BE = K.readUInt32BE, I.readInt8 = K.readInt8, I.readInt16LE = K.readInt16LE, I.readInt16BE = K.readInt16BE, I.readInt32LE = K.readInt32LE, I.readInt32BE = K.readInt32BE, I.readFloatLE = K.readFloatLE, I.readFloatBE = K.readFloatBE, I.readDoubleLE = K.readDoubleLE, I.readDoubleBE = K.readDoubleBE, I.writeUInt8 = K.writeUInt8, I.writeUInt16LE = K.writeUInt16LE, I.writeUInt16BE = K.writeUInt16BE, I.writeUInt32LE = K.writeUInt32LE, I.writeUInt32BE = K.writeUInt32BE, I.writeInt8 = K.writeInt8, I.writeInt16LE = K.writeInt16LE, I.writeInt16BE = K.writeInt16BE, I.writeInt32LE = K.writeInt32LE, I.writeInt32BE = K.writeInt32BE, I.writeFloatLE = K.writeFloatLE, I.writeFloatBE = K.writeFloatBE, I.writeDoubleLE = K.writeDoubleLE, I.writeDoubleBE = K.writeDoubleBE, I.fill = K.fill, I.inspect = K.inspect, I.toArrayBuffer = K.toArrayBuffer, I;
|
|
@@ -4523,9 +4525,9 @@ list should be an Array.`), I.length === 0)
|
|
|
4523
4525
|
}, digest: function(M) {
|
|
4524
4526
|
var q = g.concat(N), q = S ? function(K, G, le) {
|
|
4525
4527
|
g.isBuffer(G) || (G = new g(G)), g.isBuffer(le) || (le = new g(le)), G.length > k ? G = K(G) : G.length < k && (G = g.concat([G, m], k));
|
|
4526
|
-
for (var
|
|
4527
|
-
|
|
4528
|
-
return le = K(g.concat([
|
|
4528
|
+
for (var H = new g(k), P = new g(k), C = 0; C < k; C++)
|
|
4529
|
+
H[C] = 54 ^ G[C], P[C] = 92 ^ G[C];
|
|
4530
|
+
return le = K(g.concat([H, le])), K(g.concat([P, le]));
|
|
4529
4531
|
}(T, S, q) : T(q);
|
|
4530
4532
|
return N = null, M ? q.toString(M) : q;
|
|
4531
4533
|
} };
|
|
@@ -4602,9 +4604,9 @@ list should be an Array.`), I.length === 0)
|
|
|
4602
4604
|
function w(t, k) {
|
|
4603
4605
|
t[k >> 5] |= 128 << 24 - k % 32, t[15 + (k + 64 >> 9 << 4)] = k;
|
|
4604
4606
|
for (var m, O, A, E = Array(80), _ = 1732584193, x = -271733879, b = -1732584194, S = 271733878, T = -1009589776, N = 0; N < t.length; N += 16) {
|
|
4605
|
-
for (var M = _, q = x, K = b, G = S, le = T,
|
|
4606
|
-
E[
|
|
4607
|
-
var P = h(h(y(_, 5), (P = x, O = b, A = S, (m =
|
|
4607
|
+
for (var M = _, q = x, K = b, G = S, le = T, H = 0; H < 80; H++) {
|
|
4608
|
+
E[H] = H < 16 ? t[N + H] : y(E[H - 3] ^ E[H - 8] ^ E[H - 14] ^ E[H - 16], 1);
|
|
4609
|
+
var P = h(h(y(_, 5), (P = x, O = b, A = S, (m = H) < 20 ? P & O | ~P & A : !(m < 40) && m < 60 ? P & O | P & A | O & A : P ^ O ^ A)), h(h(T, E[H]), (m = H) < 20 ? 1518500249 : m < 40 ? 1859775393 : m < 60 ? -1894007588 : -899497514)), T = S, S = b, b = y(x, 30), x = _, _ = P;
|
|
4608
4610
|
}
|
|
4609
4611
|
_ = h(_, M), x = h(x, q), b = h(b, K), S = h(S, G), T = h(T, le);
|
|
4610
4612
|
}
|
|
@@ -4631,9 +4633,9 @@ list should be an Array.`), I.length === 0)
|
|
|
4631
4633
|
var O, A = new Array(1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298), E = new Array(1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225), _ = new Array(64);
|
|
4632
4634
|
k[m >> 5] |= 128 << 24 - m % 32, k[15 + (m + 64 >> 9 << 4)] = m;
|
|
4633
4635
|
for (var x, b, S = 0; S < k.length; S += 16) {
|
|
4634
|
-
for (var T = E[0], N = E[1], M = E[2], q = E[3], K = E[4], G = E[5], le = E[6],
|
|
4635
|
-
_[P] = P < 16 ? k[P + S] : g(g(g((b = _[P - 2], y(b, 17) ^ y(b, 19) ^ t(b, 10)), _[P - 7]), (b = _[P - 15], y(b, 7) ^ y(b, 18) ^ t(b, 3))), _[P - 16]), O = g(g(g(g(
|
|
4636
|
-
E[0] = g(T, E[0]), E[1] = g(N, E[1]), E[2] = g(M, E[2]), E[3] = g(q, E[3]), E[4] = g(K, E[4]), E[5] = g(G, E[5]), E[6] = g(le, E[6]), E[7] = g(
|
|
4636
|
+
for (var T = E[0], N = E[1], M = E[2], q = E[3], K = E[4], G = E[5], le = E[6], H = E[7], P = 0; P < 64; P++)
|
|
4637
|
+
_[P] = P < 16 ? k[P + S] : g(g(g((b = _[P - 2], y(b, 17) ^ y(b, 19) ^ t(b, 10)), _[P - 7]), (b = _[P - 15], y(b, 7) ^ y(b, 18) ^ t(b, 3))), _[P - 16]), O = g(g(g(g(H, y(b = K, 6) ^ y(b, 11) ^ y(b, 25)), K & G ^ ~K & le), A[P]), _[P]), x = g(y(x = T, 2) ^ y(x, 13) ^ y(x, 22), T & N ^ T & M ^ N & M), H = le, le = G, G = K, K = g(q, O), q = M, M = N, N = T, T = g(O, x);
|
|
4638
|
+
E[0] = g(T, E[0]), E[1] = g(N, E[1]), E[2] = g(M, E[2]), E[3] = g(q, E[3]), E[4] = g(K, E[4]), E[5] = g(G, E[5]), E[6] = g(le, E[6]), E[7] = g(H, E[7]);
|
|
4637
4639
|
}
|
|
4638
4640
|
return E;
|
|
4639
4641
|
}
|
|
@@ -4791,7 +4793,7 @@ function yf() {
|
|
|
4791
4793
|
function It() {
|
|
4792
4794
|
return yf();
|
|
4793
4795
|
}
|
|
4794
|
-
var
|
|
4796
|
+
var Qe = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(Qe || {});
|
|
4795
4797
|
function gf(e) {
|
|
4796
4798
|
throw new Error("Unexpected object: " + e);
|
|
4797
4799
|
}
|
|
@@ -4903,7 +4905,7 @@ function Fo(e, o = 0) {
|
|
|
4903
4905
|
}
|
|
4904
4906
|
function ca(e) {
|
|
4905
4907
|
let o = sn(e);
|
|
4906
|
-
|
|
4908
|
+
We(() => {
|
|
4907
4909
|
o && !Fo(o.activeElement, 0) && vn(e);
|
|
4908
4910
|
});
|
|
4909
4911
|
}
|
|
@@ -5348,9 +5350,9 @@ let Sr = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Vf = me({ name: "Dialog", inher
|
|
|
5348
5350
|
return [...Array.from((_ = (E = v.value) == null ? void 0 : E.querySelectorAll("body > *, [data-headlessui-portal]")) != null ? _ : []).filter((b) => !(!(b instanceof HTMLElement) || b.contains(Ue(s)) || O.panelRef.value && b.contains(O.panelRef.value))), (x = O.panelRef.value) != null ? x : f.value];
|
|
5349
5351
|
}
|
|
5350
5352
|
return da(() => A(), (E, _) => {
|
|
5351
|
-
O.close(),
|
|
5353
|
+
O.close(), We(() => _ == null ? void 0 : _.focus());
|
|
5352
5354
|
}, Y(() => g.value === 0 && !h.value)), ha((l = v.value) == null ? void 0 : l.defaultView, "keydown", (E) => {
|
|
5353
|
-
E.defaultPrevented || E.key ===
|
|
5355
|
+
E.defaultPrevented || E.key === Qe.Escape && g.value === 0 && (h.value || (E.preventDefault(), E.stopPropagation(), O.close()));
|
|
5354
5356
|
}), _t((E) => {
|
|
5355
5357
|
var _;
|
|
5356
5358
|
if (g.value !== 0 || y)
|
|
@@ -5379,8 +5381,8 @@ let Sr = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Vf = me({ name: "Dialog", inher
|
|
|
5379
5381
|
let G = K.target.closest("a");
|
|
5380
5382
|
if (!G)
|
|
5381
5383
|
return;
|
|
5382
|
-
let { hash: le } = new URL(G.href),
|
|
5383
|
-
|
|
5384
|
+
let { hash: le } = new URL(G.href), H = x.querySelector(le);
|
|
5385
|
+
H && !A().some((P) => P.contains(H)) && (q = H);
|
|
5384
5386
|
} catch {
|
|
5385
5387
|
}
|
|
5386
5388
|
}, !0), b.addEventListener(x, "touchmove", (K) => {
|
|
@@ -5499,16 +5501,16 @@ let Yf = me({ name: "Menu", props: { as: { type: [Object, String], default: "tem
|
|
|
5499
5501
|
n({ el: i.buttonRef, $el: i.buttonRef });
|
|
5500
5502
|
function l(d) {
|
|
5501
5503
|
switch (d.key) {
|
|
5502
|
-
case
|
|
5503
|
-
case
|
|
5504
|
-
case
|
|
5505
|
-
d.preventDefault(), d.stopPropagation(), i.openMenu(),
|
|
5504
|
+
case Qe.Space:
|
|
5505
|
+
case Qe.Enter:
|
|
5506
|
+
case Qe.ArrowDown:
|
|
5507
|
+
d.preventDefault(), d.stopPropagation(), i.openMenu(), We(() => {
|
|
5506
5508
|
var c;
|
|
5507
5509
|
(c = Ue(i.itemsRef)) == null || c.focus({ preventScroll: !0 }), i.goToItem(Ot.First);
|
|
5508
5510
|
});
|
|
5509
5511
|
break;
|
|
5510
|
-
case
|
|
5511
|
-
d.preventDefault(), d.stopPropagation(), i.openMenu(),
|
|
5512
|
+
case Qe.ArrowUp:
|
|
5513
|
+
d.preventDefault(), d.stopPropagation(), i.openMenu(), We(() => {
|
|
5512
5514
|
var c;
|
|
5513
5515
|
(c = Ue(i.itemsRef)) == null || c.focus({ preventScroll: !0 }), i.goToItem(Ot.Last);
|
|
5514
5516
|
});
|
|
@@ -5517,13 +5519,13 @@ let Yf = me({ name: "Menu", props: { as: { type: [Object, String], default: "tem
|
|
|
5517
5519
|
}
|
|
5518
5520
|
function a(d) {
|
|
5519
5521
|
switch (d.key) {
|
|
5520
|
-
case
|
|
5522
|
+
case Qe.Space:
|
|
5521
5523
|
d.preventDefault();
|
|
5522
5524
|
break;
|
|
5523
5525
|
}
|
|
5524
5526
|
}
|
|
5525
5527
|
function u(d) {
|
|
5526
|
-
e.disabled || (i.menuState.value === 0 ? (i.closeMenu(),
|
|
5528
|
+
e.disabled || (i.menuState.value === 0 ? (i.closeMenu(), We(() => {
|
|
5527
5529
|
var c;
|
|
5528
5530
|
return (c = Ue(i.buttonRef)) == null ? void 0 : c.focus({ preventScroll: !0 });
|
|
5529
5531
|
})) : (d.preventDefault(), i.openMenu(), Wf(() => {
|
|
@@ -5547,34 +5549,34 @@ let Yf = me({ name: "Menu", props: { as: { type: [Object, String], default: "tem
|
|
|
5547
5549
|
function a(c) {
|
|
5548
5550
|
var f;
|
|
5549
5551
|
switch (l.value && clearTimeout(l.value), c.key) {
|
|
5550
|
-
case
|
|
5552
|
+
case Qe.Space:
|
|
5551
5553
|
if (i.searchQuery.value !== "")
|
|
5552
5554
|
return c.preventDefault(), c.stopPropagation(), i.search(c.key);
|
|
5553
|
-
case
|
|
5555
|
+
case Qe.Enter:
|
|
5554
5556
|
if (c.preventDefault(), c.stopPropagation(), i.activeItemIndex.value !== null) {
|
|
5555
5557
|
let s = i.items.value[i.activeItemIndex.value];
|
|
5556
5558
|
(f = Ue(s.dataRef.domRef)) == null || f.click();
|
|
5557
5559
|
}
|
|
5558
5560
|
i.closeMenu(), ca(Ue(i.buttonRef));
|
|
5559
5561
|
break;
|
|
5560
|
-
case
|
|
5562
|
+
case Qe.ArrowDown:
|
|
5561
5563
|
return c.preventDefault(), c.stopPropagation(), i.goToItem(Ot.Next);
|
|
5562
|
-
case
|
|
5564
|
+
case Qe.ArrowUp:
|
|
5563
5565
|
return c.preventDefault(), c.stopPropagation(), i.goToItem(Ot.Previous);
|
|
5564
|
-
case
|
|
5565
|
-
case
|
|
5566
|
+
case Qe.Home:
|
|
5567
|
+
case Qe.PageUp:
|
|
5566
5568
|
return c.preventDefault(), c.stopPropagation(), i.goToItem(Ot.First);
|
|
5567
|
-
case
|
|
5568
|
-
case
|
|
5569
|
+
case Qe.End:
|
|
5570
|
+
case Qe.PageDown:
|
|
5569
5571
|
return c.preventDefault(), c.stopPropagation(), i.goToItem(Ot.Last);
|
|
5570
|
-
case
|
|
5571
|
-
c.preventDefault(), c.stopPropagation(), i.closeMenu(),
|
|
5572
|
+
case Qe.Escape:
|
|
5573
|
+
c.preventDefault(), c.stopPropagation(), i.closeMenu(), We(() => {
|
|
5572
5574
|
var s;
|
|
5573
5575
|
return (s = Ue(i.buttonRef)) == null ? void 0 : s.focus({ preventScroll: !0 });
|
|
5574
5576
|
});
|
|
5575
5577
|
break;
|
|
5576
|
-
case
|
|
5577
|
-
c.preventDefault(), c.stopPropagation(), i.closeMenu(),
|
|
5578
|
+
case Qe.Tab:
|
|
5579
|
+
c.preventDefault(), c.stopPropagation(), i.closeMenu(), We(() => Ef(Ue(i.buttonRef), c.shiftKey ? Rt.Previous : Rt.Next));
|
|
5578
5580
|
break;
|
|
5579
5581
|
default:
|
|
5580
5582
|
c.key.length === 1 && (i.search(c.key), l.value = setTimeout(() => i.clearSearch(), 350));
|
|
@@ -5583,7 +5585,7 @@ let Yf = me({ name: "Menu", props: { as: { type: [Object, String], default: "tem
|
|
|
5583
5585
|
}
|
|
5584
5586
|
function u(c) {
|
|
5585
5587
|
switch (c.key) {
|
|
5586
|
-
case
|
|
5588
|
+
case Qe.Space:
|
|
5587
5589
|
c.preventDefault();
|
|
5588
5590
|
break;
|
|
5589
5591
|
}
|
|
@@ -5603,7 +5605,7 @@ let Yf = me({ name: "Menu", props: { as: { type: [Object, String], default: "tem
|
|
|
5603
5605
|
let h = (w = (g = Ue(l)) == null ? void 0 : g.textContent) == null ? void 0 : w.toLowerCase().trim();
|
|
5604
5606
|
h !== void 0 && (u.value.textValue = h);
|
|
5605
5607
|
}), Ve(() => i.registerItem(e.id, u)), Ut(() => i.unregisterItem(e.id)), _t(() => {
|
|
5606
|
-
i.menuState.value === 0 && (!a.value || i.activationTrigger.value !== 0 &&
|
|
5608
|
+
i.menuState.value === 0 && (!a.value || i.activationTrigger.value !== 0 && We(() => {
|
|
5607
5609
|
var g, w;
|
|
5608
5610
|
return (w = (g = Ue(l)) == null ? void 0 : g.scrollIntoView) == null ? void 0 : w.call(g, { block: "nearest" });
|
|
5609
5611
|
}));
|
|
@@ -5673,7 +5675,7 @@ let Jf = me({ name: "Label", props: { as: { type: [Object, String], default: "la
|
|
|
5673
5675
|
h.preventDefault(), p();
|
|
5674
5676
|
}
|
|
5675
5677
|
function v(h) {
|
|
5676
|
-
h.key ===
|
|
5678
|
+
h.key === Qe.Space ? (h.preventDefault(), p()) : h.key === Qe.Enter && Of(h.currentTarget);
|
|
5677
5679
|
}
|
|
5678
5680
|
function g(h) {
|
|
5679
5681
|
h.preventDefault();
|
|
@@ -6112,7 +6114,7 @@ const cd = { class: "flex items-center" }, fd = {
|
|
|
6112
6114
|
E.preventDefault(), y();
|
|
6113
6115
|
}
|
|
6114
6116
|
function y() {
|
|
6115
|
-
O(n.value),
|
|
6117
|
+
O(n.value), We(() => {
|
|
6116
6118
|
n.value = null;
|
|
6117
6119
|
});
|
|
6118
6120
|
}
|
|
@@ -6123,7 +6125,7 @@ const cd = { class: "flex items-center" }, fd = {
|
|
|
6123
6125
|
E.preventDefault(), m();
|
|
6124
6126
|
}
|
|
6125
6127
|
function m() {
|
|
6126
|
-
O(i.value), A(i.value) ||
|
|
6128
|
+
O(i.value), A(i.value) || We(() => {
|
|
6127
6129
|
i.value = r.modelValue;
|
|
6128
6130
|
});
|
|
6129
6131
|
}
|
|
@@ -6362,7 +6364,7 @@ const Cd = {
|
|
|
6362
6364
|
}, {
|
|
6363
6365
|
default: pe(() => [
|
|
6364
6366
|
lt(R("div", {
|
|
6365
|
-
style:
|
|
6367
|
+
style: Ze({
|
|
6366
6368
|
maxWidth: $(i)
|
|
6367
6369
|
}),
|
|
6368
6370
|
class: ue(["pb-safe py-safe relative z-[1] ml-auto mr-0 flex h-full w-full flex-col rounded-t-lg bg-white text-left shadow-xl sm:rounded-t-none", [$(l).animationClasses.value]])
|
|
@@ -6483,7 +6485,7 @@ const Cd = {
|
|
|
6483
6485
|
}), je(
|
|
6484
6486
|
() => m.value,
|
|
6485
6487
|
() => {
|
|
6486
|
-
|
|
6488
|
+
We(() => {
|
|
6487
6489
|
_();
|
|
6488
6490
|
});
|
|
6489
6491
|
}
|
|
@@ -6535,8 +6537,8 @@ const Cd = {
|
|
|
6535
6537
|
je(
|
|
6536
6538
|
() => a.query,
|
|
6537
6539
|
() => {
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
+
We(() => {
|
|
6541
|
+
H();
|
|
6540
6542
|
});
|
|
6541
6543
|
}
|
|
6542
6544
|
), je(
|
|
@@ -6548,7 +6550,7 @@ const Cd = {
|
|
|
6548
6550
|
function le() {
|
|
6549
6551
|
return He.parseQueryString(window.location.search.replace(/^(\?)/, ""));
|
|
6550
6552
|
}
|
|
6551
|
-
function
|
|
6553
|
+
function H() {
|
|
6552
6554
|
if (!r.historyMode || d || a.name != p)
|
|
6553
6555
|
return;
|
|
6554
6556
|
const Ee = le(), Oe = N(Ee);
|
|
@@ -6557,7 +6559,7 @@ const Cd = {
|
|
|
6557
6559
|
function P(de = !1) {
|
|
6558
6560
|
D(de, !0);
|
|
6559
6561
|
}
|
|
6560
|
-
function
|
|
6562
|
+
function C(de = !1) {
|
|
6561
6563
|
D(de, !1);
|
|
6562
6564
|
}
|
|
6563
6565
|
function D(de = !1, Ee = !0) {
|
|
@@ -6569,34 +6571,34 @@ const Cd = {
|
|
|
6569
6571
|
dt(ye)
|
|
6570
6572
|
), fe = He.formatQueryString(be), Be = oe + "?" + fe;
|
|
6571
6573
|
h == Be && !de || (Ee && (s.value = !0), h = Be, n.get(Be).then((Ie) => {
|
|
6572
|
-
|
|
6574
|
+
V.value = Ie.data, s.value = !1, v.value = !1, f.value = !0;
|
|
6573
6575
|
}).catch(() => {
|
|
6574
6576
|
s.value = !1, v.value = !0;
|
|
6575
6577
|
}));
|
|
6576
6578
|
}
|
|
6577
|
-
const
|
|
6579
|
+
const V = ie(null), ne = Y(() => V.value ? mt(V.value) ? V.value : V.value.data : []), Z = Y(() => {
|
|
6578
6580
|
const de = {
|
|
6579
6581
|
current_page: 1,
|
|
6580
6582
|
last_page: 1,
|
|
6581
6583
|
per_page: 1,
|
|
6582
6584
|
total: 0
|
|
6583
6585
|
};
|
|
6584
|
-
return !
|
|
6585
|
-
current_page:
|
|
6586
|
-
last_page:
|
|
6587
|
-
per_page:
|
|
6588
|
-
total:
|
|
6586
|
+
return !V.value || mt(V.value) ? de : "meta" in V.value ? V.value.meta : V.value.current_page ? {
|
|
6587
|
+
current_page: V.value.current_page,
|
|
6588
|
+
last_page: V.value.last_page,
|
|
6589
|
+
per_page: V.value.per_page,
|
|
6590
|
+
total: V.value.total
|
|
6589
6591
|
} : null;
|
|
6590
6592
|
}), U = Y(() => t.value.page && parseInt(t.value.page + "") ? parseInt(t.value.page + "") : 1), ee = Y(() => Z.value ? Z.value.last_page : 1), W = Y(() => {
|
|
6591
6593
|
var de;
|
|
6592
6594
|
return ((de = t.value.sort) == null ? void 0 : de.trim().replace(/^(-)/, "")) ?? "";
|
|
6593
|
-
}), I = Y(() => t.value.sort && t.value.sort.length && t.value.sort[0] == "-" ? "desc" : "asc"),
|
|
6595
|
+
}), I = Y(() => t.value.sort && t.value.sort.length && t.value.sort[0] == "-" ? "desc" : "asc"), L = Y(() => t.value.search ?? ""), z = () => {
|
|
6594
6596
|
i.value != null && i.value.scrollIntoView({
|
|
6595
6597
|
behavior: "smooth"
|
|
6596
6598
|
});
|
|
6597
6599
|
};
|
|
6598
6600
|
function te() {
|
|
6599
|
-
w.value =
|
|
6601
|
+
w.value = L.value;
|
|
6600
6602
|
}
|
|
6601
6603
|
let re = dt(t.value);
|
|
6602
6604
|
const se = le();
|
|
@@ -6605,7 +6607,7 @@ const Cd = {
|
|
|
6605
6607
|
}), o({
|
|
6606
6608
|
fetch: D,
|
|
6607
6609
|
fetchWithLoading: P,
|
|
6608
|
-
fetchWithoutLoading:
|
|
6610
|
+
fetchWithoutLoading: C,
|
|
6609
6611
|
scrollIntoView: z,
|
|
6610
6612
|
query: t
|
|
6611
6613
|
}), (de, Ee) => {
|
|
@@ -6955,33 +6957,33 @@ const $a = /* @__PURE__ */ ht(Xd, [["render", nh], ["__scopeId", "data-v-945515f
|
|
|
6955
6957
|
), je(
|
|
6956
6958
|
() => n.sortField,
|
|
6957
6959
|
() => {
|
|
6958
|
-
|
|
6960
|
+
C();
|
|
6959
6961
|
}
|
|
6960
6962
|
), je(
|
|
6961
6963
|
() => n.sortDirection,
|
|
6962
6964
|
() => {
|
|
6963
|
-
|
|
6965
|
+
C();
|
|
6964
6966
|
}
|
|
6965
6967
|
), Ve(() => {
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
+
We(() => {
|
|
6969
|
+
C();
|
|
6968
6970
|
});
|
|
6969
6971
|
});
|
|
6970
|
-
function O(I,
|
|
6971
|
-
!I || !I.sortable || (
|
|
6972
|
+
function O(I, L = !1, z = null) {
|
|
6973
|
+
!I || !I.sortable || (L || (d.value = I === p.value ? !d.value : n.sortDirection.toLowerCase() !== "desc"), r("sort", I.field, d.value ? "asc" : "desc", z), p.value = I);
|
|
6972
6974
|
}
|
|
6973
6975
|
function A(I) {
|
|
6974
|
-
return a.value.find((
|
|
6976
|
+
return a.value.find((L) => L[n.rowKey] == I[n.rowKey]) !== void 0;
|
|
6975
6977
|
}
|
|
6976
|
-
const E = Y(() => n.data.filter((
|
|
6978
|
+
const E = Y(() => n.data.filter((L) => n.isRowCheckable(L)).length === 0), _ = Y(() => {
|
|
6977
6979
|
const I = n.data.filter((z) => n.isRowCheckable(z));
|
|
6978
6980
|
return I.length === 0 ? !1 : !I.some((z) => !A(z));
|
|
6979
6981
|
});
|
|
6980
6982
|
function x(I) {
|
|
6981
|
-
const
|
|
6983
|
+
const L = a.value.findIndex(
|
|
6982
6984
|
(z) => z[n.rowKey] == I[n.rowKey]
|
|
6983
6985
|
);
|
|
6984
|
-
|
|
6986
|
+
L >= 0 && a.value.splice(L, 1);
|
|
6985
6987
|
}
|
|
6986
6988
|
function b() {
|
|
6987
6989
|
_.value ? a.value = [] : n.data.forEach((I) => {
|
|
@@ -6994,16 +6996,16 @@ const $a = /* @__PURE__ */ ht(Xd, [["render", nh], ["__scopeId", "data-v-945515f
|
|
|
6994
6996
|
function T() {
|
|
6995
6997
|
r("check", a.value), r("check-all", a.value), r("update:checkedRows", a.value);
|
|
6996
6998
|
}
|
|
6997
|
-
function N(I,
|
|
6999
|
+
function N(I, L, z) {
|
|
6998
7000
|
if (!n.isRowCheckable(I))
|
|
6999
7001
|
return;
|
|
7000
7002
|
const te = u.value;
|
|
7001
|
-
u.value =
|
|
7003
|
+
u.value = L, z.shiftKey && te !== null && L !== te ? M(I, L, te) : A(I) ? x(I) : a.value.push(I), r("check", a.value, I), r("update:checkedRows", a.value);
|
|
7002
7004
|
}
|
|
7003
|
-
function M(I,
|
|
7005
|
+
function M(I, L, z) {
|
|
7004
7006
|
const te = n.data.slice(
|
|
7005
|
-
Math.min(
|
|
7006
|
-
Math.max(
|
|
7007
|
+
Math.min(L, z),
|
|
7008
|
+
Math.max(L, z) + 1
|
|
7007
7009
|
), re = !A(I);
|
|
7008
7010
|
te.forEach((se) => {
|
|
7009
7011
|
x(se), re && n.isRowCheckable(se) && a.value.push(se);
|
|
@@ -7013,30 +7015,30 @@ const $a = /* @__PURE__ */ ht(Xd, [["render", nh], ["__scopeId", "data-v-945515f
|
|
|
7013
7015
|
le(I) ? (G(I), r("details-close", I)) : (K(I), r("details-open", I)), r("update:openedDetailed", l.value);
|
|
7014
7016
|
}
|
|
7015
7017
|
function K(I) {
|
|
7016
|
-
const
|
|
7017
|
-
l.value.push(
|
|
7018
|
+
const L = P(I);
|
|
7019
|
+
l.value.push(L);
|
|
7018
7020
|
}
|
|
7019
7021
|
function G(I) {
|
|
7020
|
-
const
|
|
7022
|
+
const L = P(I), z = l.value.indexOf(L);
|
|
7021
7023
|
z >= 0 && l.value.splice(z, 1);
|
|
7022
7024
|
}
|
|
7023
7025
|
function le(I) {
|
|
7024
|
-
const
|
|
7025
|
-
return l.value.indexOf(
|
|
7026
|
+
const L = P(I);
|
|
7027
|
+
return l.value.indexOf(L) >= 0;
|
|
7026
7028
|
}
|
|
7027
|
-
function
|
|
7029
|
+
function H(I) {
|
|
7028
7030
|
return n.detailed && le(I);
|
|
7029
7031
|
}
|
|
7030
7032
|
function P(I) {
|
|
7031
|
-
const
|
|
7032
|
-
return !
|
|
7033
|
+
const L = n.rowKey;
|
|
7034
|
+
return !L.length || !I ? I : I[L];
|
|
7033
7035
|
}
|
|
7034
|
-
function
|
|
7035
|
-
const I = n.sortField,
|
|
7036
|
+
function C() {
|
|
7037
|
+
const I = n.sortField, L = n.sortDirection, z = y.value.filter(
|
|
7036
7038
|
(te) => te.field === I
|
|
7037
7039
|
)[0];
|
|
7038
7040
|
if (z)
|
|
7039
|
-
p.value = z, d.value =
|
|
7041
|
+
p.value = z, d.value = L.toLowerCase() !== "desc";
|
|
7040
7042
|
else {
|
|
7041
7043
|
p.value = null;
|
|
7042
7044
|
return;
|
|
@@ -7044,35 +7046,35 @@ const $a = /* @__PURE__ */ ht(Xd, [["render", nh], ["__scopeId", "data-v-945515f
|
|
|
7044
7046
|
}
|
|
7045
7047
|
function D(I) {
|
|
7046
7048
|
c.value.push(I);
|
|
7047
|
-
const
|
|
7048
|
-
|
|
7049
|
-
const z = c.value.map((re) => `[data-id="${re.newKey}"]`).join(","), te = Array.from(
|
|
7049
|
+
const L = s.value;
|
|
7050
|
+
L && L.children && We(() => {
|
|
7051
|
+
const z = c.value.map((re) => `[data-id="${re.newKey}"]`).join(","), te = Array.from(L.querySelectorAll(z)).map(
|
|
7050
7052
|
(re) => re.getAttribute("data-id")
|
|
7051
7053
|
);
|
|
7052
7054
|
c.value = c.value.sort((re, se) => te.indexOf(`${re.newKey}`) - te.indexOf(`${se.newKey}`));
|
|
7053
7055
|
});
|
|
7054
7056
|
}
|
|
7055
|
-
function
|
|
7057
|
+
function V(I) {
|
|
7056
7058
|
c.value = c.value.filter(
|
|
7057
|
-
(
|
|
7059
|
+
(L) => L.newKey !== I.newKey
|
|
7058
7060
|
);
|
|
7059
7061
|
}
|
|
7060
7062
|
const ne = "border-b border-slate-300";
|
|
7061
|
-
function Z(I,
|
|
7062
|
-
return I < n.data.length - 1 ||
|
|
7063
|
+
function Z(I, L) {
|
|
7064
|
+
return I < n.data.length - 1 || H(L) ? ne : "";
|
|
7063
7065
|
}
|
|
7064
7066
|
function U(I) {
|
|
7065
7067
|
return I < n.data.length - 1 ? ne : "";
|
|
7066
7068
|
}
|
|
7067
|
-
function ee(I,
|
|
7068
|
-
|
|
7069
|
+
function ee(I, L, z, te, re) {
|
|
7070
|
+
L.clickable && r("cell-click", I, L, z, te, re);
|
|
7069
7071
|
}
|
|
7070
7072
|
function W() {
|
|
7071
7073
|
return f.value++;
|
|
7072
7074
|
}
|
|
7073
|
-
return $e("addColumn", D), $e("removeColumn",
|
|
7075
|
+
return $e("addColumn", D), $e("removeColumn", V), $e("nextSequence", W), o({
|
|
7074
7076
|
newColumns: y
|
|
7075
|
-
}), (I,
|
|
7077
|
+
}), (I, L) => {
|
|
7076
7078
|
const z = Ke("BaseIcon");
|
|
7077
7079
|
return F(), J("div", ih, [
|
|
7078
7080
|
R("div", {
|
|
@@ -7086,7 +7088,7 @@ const $a = /* @__PURE__ */ ht(Xd, [["render", nh], ["__scopeId", "data-v-945515f
|
|
|
7086
7088
|
R("div", {
|
|
7087
7089
|
class: "overflow-x-auto overflow-y-auto",
|
|
7088
7090
|
"data-scroll-lock-scrollable": "",
|
|
7089
|
-
style:
|
|
7091
|
+
style: Ze({ maxHeight: e.maxHeight ? e.maxHeight + "px" : void 0 })
|
|
7090
7092
|
}, [
|
|
7091
7093
|
R("div", lh, [
|
|
7092
7094
|
R("div", ah, [
|
|
@@ -7154,7 +7156,7 @@ const $a = /* @__PURE__ */ ht(Xd, [["render", nh], ["__scopeId", "data-v-945515f
|
|
|
7154
7156
|
R("td", {
|
|
7155
7157
|
colspan: $(k),
|
|
7156
7158
|
class: ue(["sticky z-[1] p-0", [ne]]),
|
|
7157
|
-
style:
|
|
7159
|
+
style: Ze({
|
|
7158
7160
|
top: g.value + "px"
|
|
7159
7161
|
})
|
|
7160
7162
|
}, [
|
|
@@ -7173,7 +7175,7 @@ const $a = /* @__PURE__ */ ht(Xd, [["render", nh], ["__scopeId", "data-v-945515f
|
|
|
7173
7175
|
R("button", {
|
|
7174
7176
|
type: "button",
|
|
7175
7177
|
class: "mr-3 inline text-slate-700 underline",
|
|
7176
|
-
onClick:
|
|
7178
|
+
onClick: L[0] || (L[0] = (re) => S())
|
|
7177
7179
|
}, xe(I.$t("sui.deselect_all")), 1)
|
|
7178
7180
|
]),
|
|
7179
7181
|
(te = e.checkableActions) != null && te.length ? (F(), Se(Cn, {
|
|
@@ -7262,7 +7264,7 @@ const $a = /* @__PURE__ */ ht(Xd, [["render", nh], ["__scopeId", "data-v-945515f
|
|
|
7262
7264
|
]),
|
|
7263
7265
|
he(kt, { name: e.detailTransition }, {
|
|
7264
7266
|
default: pe(() => [
|
|
7265
|
-
|
|
7267
|
+
H(te) ? (F(), J("tr", {
|
|
7266
7268
|
key: re + "detail"
|
|
7267
7269
|
}, [
|
|
7268
7270
|
R("td", {
|
|
@@ -7640,7 +7642,7 @@ const Uh = /* @__PURE__ */ ht(jh, [["render", Fh]]), zh = { class: "flex justify
|
|
|
7640
7642
|
sortDirection: K,
|
|
7641
7643
|
onSortChange: G,
|
|
7642
7644
|
error: le,
|
|
7643
|
-
firstLoad:
|
|
7645
|
+
firstLoad: H
|
|
7644
7646
|
}) => [
|
|
7645
7647
|
he(Tn, {
|
|
7646
7648
|
clipped: "",
|
|
@@ -7700,7 +7702,7 @@ const Uh = /* @__PURE__ */ ht(jh, [["render", Fh]]), zh = { class: "flex justify
|
|
|
7700
7702
|
type: "button",
|
|
7701
7703
|
class: "btn btn-white bg-transparent p-2",
|
|
7702
7704
|
disabled: !v(P),
|
|
7703
|
-
onClick: (
|
|
7705
|
+
onClick: (C) => g(P)
|
|
7704
7706
|
}, [
|
|
7705
7707
|
he(S, {
|
|
7706
7708
|
icon: "heroicons:trash-solid",
|
|
@@ -7727,7 +7729,7 @@ const Uh = /* @__PURE__ */ ht(jh, [["render", Fh]]), zh = { class: "flex justify
|
|
|
7727
7729
|
}),
|
|
7728
7730
|
R("p", Wh, xe(x.$t("sui.whoops")), 1)
|
|
7729
7731
|
])
|
|
7730
|
-
])) :
|
|
7732
|
+
])) : H ? (F(), J("div", Yh, [
|
|
7731
7733
|
R("div", Qh, [
|
|
7732
7734
|
he(Uh, { class: "w-32" }),
|
|
7733
7735
|
R("p", Zh, xe(x.$t("sui.nothing_found")), 1)
|
|
@@ -8200,7 +8202,7 @@ const op = { class: "-m-0.5 flex" }, lp = { class: "w-auto p-0.5" }, ap = ["disa
|
|
|
8200
8202
|
l.value ? y() : h();
|
|
8201
8203
|
}
|
|
8202
8204
|
function h() {
|
|
8203
|
-
A(), l.value = !0,
|
|
8205
|
+
A(), l.value = !0, We(() => {
|
|
8204
8206
|
g(), Lo(), o("open");
|
|
8205
8207
|
});
|
|
8206
8208
|
}
|
|
@@ -8235,8 +8237,8 @@ const op = { class: "-m-0.5 flex" }, lp = { class: "w-auto p-0.5" }, ap = ["disa
|
|
|
8235
8237
|
let M = r.placement.split("-")[0];
|
|
8236
8238
|
T && !N ? M = "bottom" : !T && N ? M = "top" : T && N && (b > S ? M = "top" : M = "bottom");
|
|
8237
8239
|
const q = a.value + p.value, K = window.innerWidth - a.value, G = q < s.value, le = K < s.value;
|
|
8238
|
-
let
|
|
8239
|
-
return G && !le ?
|
|
8240
|
+
let H = r.placement.split("-")[1];
|
|
8241
|
+
return G && !le ? H = "start" : !G && le ? H = "end" : G && le && (q > K ? H = "end" : H = "start"), `${M}-${H}`;
|
|
8240
8242
|
}), x = Y(() => {
|
|
8241
8243
|
let b = u.value;
|
|
8242
8244
|
(_.value == "bottom-start" || _.value == "bottom-end") && (b += d.value, b += r.padding), (_.value == "top-start" || _.value == "top-end") && (b -= v.value, b -= r.padding);
|
|
@@ -8262,7 +8264,7 @@ const op = { class: "-m-0.5 flex" }, lp = { class: "w-auto p-0.5" }, ap = ["disa
|
|
|
8262
8264
|
ref_key: "dropdown",
|
|
8263
8265
|
ref: i,
|
|
8264
8266
|
class: "z-menu",
|
|
8265
|
-
style:
|
|
8267
|
+
style: Ze($(x))
|
|
8266
8268
|
}, [
|
|
8267
8269
|
he(kt, {
|
|
8268
8270
|
"enter-active-class": e.animated ? "transition duration-200 ease-out" : "",
|
|
@@ -8391,16 +8393,16 @@ const op = { class: "-m-0.5 flex" }, lp = { class: "w-auto p-0.5" }, ap = ["disa
|
|
|
8391
8393
|
m(), v.value = !0, b(an(P, "target.value", "") + ""), r("typing", c.value), w.value = null;
|
|
8392
8394
|
}, E = (P) => {
|
|
8393
8395
|
var D;
|
|
8394
|
-
const
|
|
8395
|
-
if ((D = d.value) == null || D.onKeydown(P),
|
|
8396
|
+
const C = P.key;
|
|
8397
|
+
if ((D = d.value) == null || D.onKeydown(P), C === "ArrowUp") {
|
|
8396
8398
|
P.preventDefault();
|
|
8397
8399
|
return;
|
|
8398
8400
|
}
|
|
8399
|
-
if (
|
|
8401
|
+
if (C === "ArrowDown") {
|
|
8400
8402
|
P.preventDefault();
|
|
8401
8403
|
return;
|
|
8402
8404
|
}
|
|
8403
|
-
if (
|
|
8405
|
+
if (C === "Backspace" && c.value == "") {
|
|
8404
8406
|
M();
|
|
8405
8407
|
return;
|
|
8406
8408
|
}
|
|
@@ -8418,7 +8420,7 @@ const op = { class: "-m-0.5 flex" }, lp = { class: "w-auto p-0.5" }, ap = ["disa
|
|
|
8418
8420
|
h(P) || (w.value = null, x([...t.value, P]), b(""), r("typing", c.value));
|
|
8419
8421
|
};
|
|
8420
8422
|
function x(P) {
|
|
8421
|
-
v.value = !1, u(P.map((
|
|
8423
|
+
v.value = !1, u(P.map((C) => C.option));
|
|
8422
8424
|
}
|
|
8423
8425
|
function b(P) {
|
|
8424
8426
|
c.value = P;
|
|
@@ -8443,15 +8445,15 @@ const op = { class: "-m-0.5 flex" }, lp = { class: "w-auto p-0.5" }, ap = ["disa
|
|
|
8443
8445
|
q(w.value), w.value = null;
|
|
8444
8446
|
return;
|
|
8445
8447
|
}
|
|
8446
|
-
w.value = t.value.find((
|
|
8448
|
+
w.value = t.value.find((C) => C.value === P.value) ?? null;
|
|
8447
8449
|
}, q = (P) => {
|
|
8448
8450
|
S();
|
|
8449
|
-
let
|
|
8450
|
-
|
|
8451
|
+
let C = dt(t.value);
|
|
8452
|
+
C = C.filter((D) => D.value != P.value), x(C);
|
|
8451
8453
|
}, K = Y(() => n.size == "xs" ? "min-h-[34px]" : n.size == "sm" ? "min-h-[38px]" : "min-h-[42px]"), G = Y(() => {
|
|
8452
8454
|
const P = "h-[32px] text-base";
|
|
8453
8455
|
return n.size == "xs" ? P + " xs:text-xs xs:h-[22px]" : n.size == "sm" ? P + " xs:text-sm xs:h-[28px]" : P;
|
|
8454
|
-
}), le = (P) => w.value && w.value.value == P.value ? "bg-red-200 border-red-300 text-red-800" : "bg-slate-200 border-slate-300",
|
|
8456
|
+
}), le = (P) => w.value && w.value.value == P.value ? "bg-red-200 border-red-300 text-red-800" : "bg-slate-200 border-slate-300", H = Y(() => {
|
|
8455
8457
|
let P = "py-[5px] pl-[0.75em] text-sm";
|
|
8456
8458
|
return n.disabled ? P += " pr-[0.75em]" : P += " pr-1", n.size == "xs" ? P + " xs:py-[3px] xs:pl-2 xs:text-xs" : n.size == "sm" ? P + " xs:py-[3px] xs:pl-2 xs:text-sm" : P;
|
|
8457
8459
|
});
|
|
@@ -8461,7 +8463,7 @@ const op = { class: "-m-0.5 flex" }, lp = { class: "w-auto p-0.5" }, ap = ["disa
|
|
|
8461
8463
|
close: O,
|
|
8462
8464
|
open: m,
|
|
8463
8465
|
setKeywords: b
|
|
8464
|
-
}), (P,
|
|
8466
|
+
}), (P, C) => (F(), J("div", {
|
|
8465
8467
|
ref_key: "autocomplete",
|
|
8466
8468
|
ref: f
|
|
8467
8469
|
}, [
|
|
@@ -8483,13 +8485,13 @@ const op = { class: "-m-0.5 flex" }, lp = { class: "w-auto p-0.5" }, ap = ["disa
|
|
|
8483
8485
|
]])
|
|
8484
8486
|
}, [
|
|
8485
8487
|
R("div", {
|
|
8486
|
-
class: ue([$(
|
|
8488
|
+
class: ue([$(H)])
|
|
8487
8489
|
}, xe(D.label), 3),
|
|
8488
8490
|
e.disabled ? we("", !0) : (F(), J("button", {
|
|
8489
8491
|
key: 0,
|
|
8490
8492
|
type: "button",
|
|
8491
8493
|
class: "flex shrink-0 appearance-none items-center justify-center border-0 bg-transparent pl-1 pr-3 text-xs outline-none",
|
|
8492
|
-
onClick: (
|
|
8494
|
+
onClick: (V) => q(D)
|
|
8493
8495
|
}, " ✕ ", 8, Ap))
|
|
8494
8496
|
], 2)
|
|
8495
8497
|
]))), 128)),
|
|
@@ -8528,7 +8530,7 @@ const op = { class: "-m-0.5 flex" }, lp = { class: "w-auto p-0.5" }, ap = ["disa
|
|
|
8528
8530
|
"drawer-class": e.inline ? "pt-1" : "p-1",
|
|
8529
8531
|
keywords: $(c),
|
|
8530
8532
|
onSelect: _,
|
|
8531
|
-
onScrollBottom:
|
|
8533
|
+
onScrollBottom: C[0] || (C[0] = (D) => r("scrollBottom"))
|
|
8532
8534
|
}, {
|
|
8533
8535
|
empty: pe((D) => [
|
|
8534
8536
|
ke(P.$slots, "empty", at(st({ ...D, ...N })))
|
|
@@ -8749,7 +8751,7 @@ const op = { class: "-m-0.5 flex" }, lp = { class: "w-auto p-0.5" }, ap = ["disa
|
|
|
8749
8751
|
{ immediate: !0, deep: !0 }
|
|
8750
8752
|
);
|
|
8751
8753
|
function u() {
|
|
8752
|
-
|
|
8754
|
+
We(() => {
|
|
8753
8755
|
setTimeout(() => {
|
|
8754
8756
|
var s;
|
|
8755
8757
|
(s = i.value) == null || s.open();
|
|
@@ -8757,7 +8759,7 @@ const op = { class: "-m-0.5 flex" }, lp = { class: "w-auto p-0.5" }, ap = ["disa
|
|
|
8757
8759
|
});
|
|
8758
8760
|
}
|
|
8759
8761
|
function p() {
|
|
8760
|
-
|
|
8762
|
+
We(() => {
|
|
8761
8763
|
setTimeout(() => {
|
|
8762
8764
|
var s;
|
|
8763
8765
|
(s = i.value) == null || s.setKeywords("");
|
|
@@ -10497,7 +10499,7 @@ const dv = { class: "absolute inset-0 flex items-center justify-center w-full h-
|
|
|
10497
10499
|
e.modelValue ? (F(), J("div", {
|
|
10498
10500
|
key: 0,
|
|
10499
10501
|
class: ue(["pb-safe relative z-[1] mx-auto block w-full rounded-t-xl bg-white sm:rounded-xl sm:shadow-xl", [$(n).animationClasses.value]]),
|
|
10500
|
-
style:
|
|
10502
|
+
style: Ze({
|
|
10501
10503
|
maxWidth: e.maxWidth
|
|
10502
10504
|
})
|
|
10503
10505
|
}, [
|
|
@@ -10856,7 +10858,7 @@ function lm(e, o, r, n, i, l) {
|
|
|
10856
10858
|
R("circle", {
|
|
10857
10859
|
stroke: "currentColor",
|
|
10858
10860
|
"stroke-dasharray": `${e.circumference} ${e.circumference}`,
|
|
10859
|
-
style:
|
|
10861
|
+
style: Ze({ strokeDashoffset: e.strokeDashoffset }),
|
|
10860
10862
|
"stroke-width": e.stroke,
|
|
10861
10863
|
fill: "transparent",
|
|
10862
10864
|
r: e.normalizedRadius,
|
|
@@ -10868,7 +10870,7 @@ function lm(e, o, r, n, i, l) {
|
|
|
10868
10870
|
"alignment-baseline": "middle",
|
|
10869
10871
|
x: e.radius,
|
|
10870
10872
|
y: e.radius + e.fontSize / 10,
|
|
10871
|
-
style:
|
|
10873
|
+
style: Ze({ fontSize: e.fontSize + "px", fontWeight: 600 })
|
|
10872
10874
|
}, xe(Math.round(e.progress * 100)) + "% ", 13, om)
|
|
10873
10875
|
], 8, nm);
|
|
10874
10876
|
}
|
|
@@ -10978,7 +10980,7 @@ const am = /* @__PURE__ */ ht(tm, [["render", lm], ["__scopeId", "data-v-e5ae83e
|
|
|
10978
10980
|
a(), xo(
|
|
10979
10981
|
r.value,
|
|
10980
10982
|
() => {
|
|
10981
|
-
n.value = !1,
|
|
10983
|
+
n.value = !1, We(() => {
|
|
10982
10984
|
a();
|
|
10983
10985
|
});
|
|
10984
10986
|
},
|
|
@@ -10997,7 +10999,7 @@ const am = /* @__PURE__ */ ht(tm, [["render", lm], ["__scopeId", "data-v-e5ae83e
|
|
|
10997
10999
|
ref_key: "content",
|
|
10998
11000
|
ref: r,
|
|
10999
11001
|
class: "overflow-hidden whitespace-pre-line",
|
|
11000
|
-
style:
|
|
11002
|
+
style: Ze($(n) ? void 0 : $(l))
|
|
11001
11003
|
}, [
|
|
11002
11004
|
ke(u.$slots, "default")
|
|
11003
11005
|
], 4),
|
|
@@ -11496,9 +11498,9 @@ var yo = {}, vm = {
|
|
|
11496
11498
|
var G = q.split(`
|
|
11497
11499
|
`), le = G.shift();
|
|
11498
11500
|
le.length > 0 && (M < this.length() - 1 || this.children.tail == null ? a(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "insertAt", this).call(this, Math.min(M, this.length() - 1), le) : this.children.tail.insertAt(this.children.tail.length(), le), this.cache = {});
|
|
11499
|
-
var
|
|
11500
|
-
G.reduce(function(P,
|
|
11501
|
-
return
|
|
11501
|
+
var H = this;
|
|
11502
|
+
G.reduce(function(P, C) {
|
|
11503
|
+
return H = H.split(P, !0), H.insertAt(0, C), C.length;
|
|
11502
11504
|
}, M + le.length);
|
|
11503
11505
|
}
|
|
11504
11506
|
}
|
|
@@ -11558,21 +11560,21 @@ var yo = {}, vm = {
|
|
|
11558
11560
|
Object.defineProperty(n, "__esModule", {
|
|
11559
11561
|
value: !0
|
|
11560
11562
|
}), n.default = n.overload = n.expandConfig = void 0;
|
|
11561
|
-
var l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
11562
|
-
return typeof
|
|
11563
|
-
} : function(
|
|
11564
|
-
return
|
|
11563
|
+
var l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(H) {
|
|
11564
|
+
return typeof H;
|
|
11565
|
+
} : function(H) {
|
|
11566
|
+
return H && typeof Symbol == "function" && H.constructor === Symbol && H !== Symbol.prototype ? "symbol" : typeof H;
|
|
11565
11567
|
}, a = function() {
|
|
11566
|
-
function
|
|
11567
|
-
var D = [],
|
|
11568
|
+
function H(P, C) {
|
|
11569
|
+
var D = [], V = !0, ne = !1, Z = void 0;
|
|
11568
11570
|
try {
|
|
11569
|
-
for (var U = P[Symbol.iterator](), ee; !(
|
|
11571
|
+
for (var U = P[Symbol.iterator](), ee; !(V = (ee = U.next()).done) && (D.push(ee.value), !(C && D.length === C)); V = !0)
|
|
11570
11572
|
;
|
|
11571
11573
|
} catch (W) {
|
|
11572
11574
|
ne = !0, Z = W;
|
|
11573
11575
|
} finally {
|
|
11574
11576
|
try {
|
|
11575
|
-
!
|
|
11577
|
+
!V && U.return && U.return();
|
|
11576
11578
|
} finally {
|
|
11577
11579
|
if (ne)
|
|
11578
11580
|
throw Z;
|
|
@@ -11580,94 +11582,94 @@ var yo = {}, vm = {
|
|
|
11580
11582
|
}
|
|
11581
11583
|
return D;
|
|
11582
11584
|
}
|
|
11583
|
-
return function(P,
|
|
11585
|
+
return function(P, C) {
|
|
11584
11586
|
if (Array.isArray(P))
|
|
11585
11587
|
return P;
|
|
11586
11588
|
if (Symbol.iterator in Object(P))
|
|
11587
|
-
return
|
|
11589
|
+
return H(P, C);
|
|
11588
11590
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
11589
11591
|
};
|
|
11590
11592
|
}(), u = function() {
|
|
11591
|
-
function
|
|
11592
|
-
for (var D = 0; D <
|
|
11593
|
-
var
|
|
11594
|
-
|
|
11593
|
+
function H(P, C) {
|
|
11594
|
+
for (var D = 0; D < C.length; D++) {
|
|
11595
|
+
var V = C[D];
|
|
11596
|
+
V.enumerable = V.enumerable || !1, V.configurable = !0, "value" in V && (V.writable = !0), Object.defineProperty(P, V.key, V);
|
|
11595
11597
|
}
|
|
11596
11598
|
}
|
|
11597
|
-
return function(P,
|
|
11598
|
-
return
|
|
11599
|
+
return function(P, C, D) {
|
|
11600
|
+
return C && H(P.prototype, C), D && H(P, D), P;
|
|
11599
11601
|
};
|
|
11600
11602
|
}();
|
|
11601
11603
|
i(50);
|
|
11602
11604
|
var p = i(2), d = b(p), c = i(14), f = b(c), s = i(8), v = b(s), g = i(9), w = b(g), h = i(0), y = b(h), t = i(15), k = b(t), m = i(3), O = b(m), A = i(10), E = b(A), _ = i(34), x = b(_);
|
|
11603
|
-
function b(
|
|
11604
|
-
return
|
|
11605
|
+
function b(H) {
|
|
11606
|
+
return H && H.__esModule ? H : { default: H };
|
|
11605
11607
|
}
|
|
11606
|
-
function S(
|
|
11607
|
-
return P in
|
|
11608
|
+
function S(H, P, C) {
|
|
11609
|
+
return P in H ? Object.defineProperty(H, P, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : H[P] = C, H;
|
|
11608
11610
|
}
|
|
11609
|
-
function T(
|
|
11610
|
-
if (!(
|
|
11611
|
+
function T(H, P) {
|
|
11612
|
+
if (!(H instanceof P))
|
|
11611
11613
|
throw new TypeError("Cannot call a class as a function");
|
|
11612
11614
|
}
|
|
11613
11615
|
var N = (0, E.default)("quill"), M = function() {
|
|
11614
|
-
u(
|
|
11616
|
+
u(H, null, [{
|
|
11615
11617
|
key: "debug",
|
|
11616
|
-
value: function(
|
|
11617
|
-
|
|
11618
|
+
value: function(C) {
|
|
11619
|
+
C === !0 && (C = "log"), E.default.level(C);
|
|
11618
11620
|
}
|
|
11619
11621
|
}, {
|
|
11620
11622
|
key: "find",
|
|
11621
|
-
value: function(
|
|
11622
|
-
return
|
|
11623
|
+
value: function(C) {
|
|
11624
|
+
return C.__quill || y.default.find(C);
|
|
11623
11625
|
}
|
|
11624
11626
|
}, {
|
|
11625
11627
|
key: "import",
|
|
11626
|
-
value: function(
|
|
11627
|
-
return this.imports[
|
|
11628
|
+
value: function(C) {
|
|
11629
|
+
return this.imports[C] == null && N.error("Cannot import " + C + ". Are you sure it was registered?"), this.imports[C];
|
|
11628
11630
|
}
|
|
11629
11631
|
}, {
|
|
11630
11632
|
key: "register",
|
|
11631
|
-
value: function(
|
|
11632
|
-
var
|
|
11633
|
-
if (typeof
|
|
11634
|
-
var Z =
|
|
11635
|
-
typeof Z == "string" ? this.register("formats/" + Z,
|
|
11636
|
-
|
|
11633
|
+
value: function(C, D) {
|
|
11634
|
+
var V = this, ne = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
11635
|
+
if (typeof C != "string") {
|
|
11636
|
+
var Z = C.attrName || C.blotName;
|
|
11637
|
+
typeof Z == "string" ? this.register("formats/" + Z, C, D) : Object.keys(C).forEach(function(U) {
|
|
11638
|
+
V.register(U, C[U], D);
|
|
11637
11639
|
});
|
|
11638
11640
|
} else
|
|
11639
|
-
this.imports[
|
|
11641
|
+
this.imports[C] != null && !ne && N.warn("Overwriting " + C + " with", D), this.imports[C] = D, (C.startsWith("blots/") || C.startsWith("formats/")) && D.blotName !== "abstract" ? y.default.register(D) : C.startsWith("modules") && typeof D.register == "function" && D.register();
|
|
11640
11642
|
}
|
|
11641
11643
|
}]);
|
|
11642
|
-
function
|
|
11643
|
-
var
|
|
11644
|
-
if (T(this,
|
|
11644
|
+
function H(P) {
|
|
11645
|
+
var C = this, D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
11646
|
+
if (T(this, H), this.options = q(P, D), this.container = this.options.container, this.container == null)
|
|
11645
11647
|
return N.error("Invalid Quill container", P);
|
|
11646
|
-
this.options.debug &&
|
|
11647
|
-
var
|
|
11648
|
+
this.options.debug && H.debug(this.options.debug);
|
|
11649
|
+
var V = this.container.innerHTML.trim();
|
|
11648
11650
|
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 v.default(), this.scroll = y.default.create(this.root, {
|
|
11649
11651
|
emitter: this.emitter,
|
|
11650
11652
|
whitelist: this.options.formats
|
|
11651
11653
|
}), this.editor = new f.default(this.scroll), this.selection = new k.default(this.scroll, this.emitter), this.theme = new this.options.theme(this, this.options), this.keyboard = this.theme.addModule("keyboard"), this.clipboard = this.theme.addModule("clipboard"), this.history = this.theme.addModule("history"), this.theme.init(), this.emitter.on(v.default.events.EDITOR_CHANGE, function(Z) {
|
|
11652
|
-
Z === v.default.events.TEXT_CHANGE &&
|
|
11654
|
+
Z === v.default.events.TEXT_CHANGE && C.root.classList.toggle("ql-blank", C.editor.isBlank());
|
|
11653
11655
|
}), this.emitter.on(v.default.events.SCROLL_UPDATE, function(Z, U) {
|
|
11654
|
-
var ee =
|
|
11655
|
-
K.call(
|
|
11656
|
-
return
|
|
11656
|
+
var ee = C.selection.lastRange, W = ee && ee.length === 0 ? ee.index : void 0;
|
|
11657
|
+
K.call(C, function() {
|
|
11658
|
+
return C.editor.update(null, U, W);
|
|
11657
11659
|
}, Z);
|
|
11658
11660
|
});
|
|
11659
|
-
var ne = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` +
|
|
11661
|
+
var ne = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` + V + "<p><br></p></div>");
|
|
11660
11662
|
this.setContents(ne), this.history.clear(), this.options.placeholder && this.root.setAttribute("data-placeholder", this.options.placeholder), this.options.readOnly && this.disable();
|
|
11661
11663
|
}
|
|
11662
|
-
return u(
|
|
11664
|
+
return u(H, [{
|
|
11663
11665
|
key: "addContainer",
|
|
11664
|
-
value: function(
|
|
11666
|
+
value: function(C) {
|
|
11665
11667
|
var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
11666
|
-
if (typeof
|
|
11667
|
-
var
|
|
11668
|
-
|
|
11668
|
+
if (typeof C == "string") {
|
|
11669
|
+
var V = C;
|
|
11670
|
+
C = document.createElement("div"), C.classList.add(V);
|
|
11669
11671
|
}
|
|
11670
|
-
return this.container.insertBefore(
|
|
11672
|
+
return this.container.insertBefore(C, D), C;
|
|
11671
11673
|
}
|
|
11672
11674
|
}, {
|
|
11673
11675
|
key: "blur",
|
|
@@ -11676,11 +11678,11 @@ var yo = {}, vm = {
|
|
|
11676
11678
|
}
|
|
11677
11679
|
}, {
|
|
11678
11680
|
key: "deleteText",
|
|
11679
|
-
value: function(
|
|
11680
|
-
var ne = this, Z = G(
|
|
11681
|
-
return
|
|
11682
|
-
return ne.editor.deleteText(
|
|
11683
|
-
},
|
|
11681
|
+
value: function(C, D, V) {
|
|
11682
|
+
var ne = this, Z = G(C, D, V), U = a(Z, 4);
|
|
11683
|
+
return C = U[0], D = U[1], V = U[3], K.call(this, function() {
|
|
11684
|
+
return ne.editor.deleteText(C, D);
|
|
11685
|
+
}, V, C, -1 * D);
|
|
11684
11686
|
}
|
|
11685
11687
|
}, {
|
|
11686
11688
|
key: "disable",
|
|
@@ -11690,80 +11692,80 @@ var yo = {}, vm = {
|
|
|
11690
11692
|
}, {
|
|
11691
11693
|
key: "enable",
|
|
11692
11694
|
value: function() {
|
|
11693
|
-
var
|
|
11694
|
-
this.scroll.enable(
|
|
11695
|
+
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
11696
|
+
this.scroll.enable(C), this.container.classList.toggle("ql-disabled", !C);
|
|
11695
11697
|
}
|
|
11696
11698
|
}, {
|
|
11697
11699
|
key: "focus",
|
|
11698
11700
|
value: function() {
|
|
11699
|
-
var
|
|
11700
|
-
this.selection.focus(), this.scrollingContainer.scrollTop =
|
|
11701
|
+
var C = this.scrollingContainer.scrollTop;
|
|
11702
|
+
this.selection.focus(), this.scrollingContainer.scrollTop = C, this.scrollIntoView();
|
|
11701
11703
|
}
|
|
11702
11704
|
}, {
|
|
11703
11705
|
key: "format",
|
|
11704
|
-
value: function(
|
|
11705
|
-
var
|
|
11706
|
+
value: function(C, D) {
|
|
11707
|
+
var V = this, ne = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : v.default.sources.API;
|
|
11706
11708
|
return K.call(this, function() {
|
|
11707
|
-
var Z =
|
|
11709
|
+
var Z = V.getSelection(!0), U = new d.default();
|
|
11708
11710
|
if (Z == null)
|
|
11709
11711
|
return U;
|
|
11710
|
-
if (y.default.query(
|
|
11711
|
-
U =
|
|
11712
|
+
if (y.default.query(C, y.default.Scope.BLOCK))
|
|
11713
|
+
U = V.editor.formatLine(Z.index, Z.length, S({}, C, D));
|
|
11712
11714
|
else {
|
|
11713
11715
|
if (Z.length === 0)
|
|
11714
|
-
return
|
|
11715
|
-
U =
|
|
11716
|
+
return V.selection.format(C, D), U;
|
|
11717
|
+
U = V.editor.formatText(Z.index, Z.length, S({}, C, D));
|
|
11716
11718
|
}
|
|
11717
|
-
return
|
|
11719
|
+
return V.setSelection(Z, v.default.sources.SILENT), U;
|
|
11718
11720
|
}, ne);
|
|
11719
11721
|
}
|
|
11720
11722
|
}, {
|
|
11721
11723
|
key: "formatLine",
|
|
11722
|
-
value: function(
|
|
11723
|
-
var U = this, ee = void 0, W = G(
|
|
11724
|
-
return
|
|
11725
|
-
return U.editor.formatLine(
|
|
11726
|
-
}, Z,
|
|
11724
|
+
value: function(C, D, V, ne, Z) {
|
|
11725
|
+
var U = this, ee = void 0, W = G(C, D, V, ne, Z), I = a(W, 4);
|
|
11726
|
+
return C = I[0], D = I[1], ee = I[2], Z = I[3], K.call(this, function() {
|
|
11727
|
+
return U.editor.formatLine(C, D, ee);
|
|
11728
|
+
}, Z, C, 0);
|
|
11727
11729
|
}
|
|
11728
11730
|
}, {
|
|
11729
11731
|
key: "formatText",
|
|
11730
|
-
value: function(
|
|
11731
|
-
var U = this, ee = void 0, W = G(
|
|
11732
|
-
return
|
|
11733
|
-
return U.editor.formatText(
|
|
11734
|
-
}, Z,
|
|
11732
|
+
value: function(C, D, V, ne, Z) {
|
|
11733
|
+
var U = this, ee = void 0, W = G(C, D, V, ne, Z), I = a(W, 4);
|
|
11734
|
+
return C = I[0], D = I[1], ee = I[2], Z = I[3], K.call(this, function() {
|
|
11735
|
+
return U.editor.formatText(C, D, ee);
|
|
11736
|
+
}, Z, C, 0);
|
|
11735
11737
|
}
|
|
11736
11738
|
}, {
|
|
11737
11739
|
key: "getBounds",
|
|
11738
|
-
value: function(
|
|
11739
|
-
var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0,
|
|
11740
|
-
typeof
|
|
11740
|
+
value: function(C) {
|
|
11741
|
+
var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, V = void 0;
|
|
11742
|
+
typeof C == "number" ? V = this.selection.getBounds(C, D) : V = this.selection.getBounds(C.index, C.length);
|
|
11741
11743
|
var ne = this.container.getBoundingClientRect();
|
|
11742
11744
|
return {
|
|
11743
|
-
bottom:
|
|
11744
|
-
height:
|
|
11745
|
-
left:
|
|
11746
|
-
right:
|
|
11747
|
-
top:
|
|
11748
|
-
width:
|
|
11745
|
+
bottom: V.bottom - ne.top,
|
|
11746
|
+
height: V.height,
|
|
11747
|
+
left: V.left - ne.left,
|
|
11748
|
+
right: V.right - ne.left,
|
|
11749
|
+
top: V.top - ne.top,
|
|
11750
|
+
width: V.width
|
|
11749
11751
|
};
|
|
11750
11752
|
}
|
|
11751
11753
|
}, {
|
|
11752
11754
|
key: "getContents",
|
|
11753
11755
|
value: function() {
|
|
11754
|
-
var
|
|
11755
|
-
return
|
|
11756
|
+
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - C, V = G(C, D), ne = a(V, 2);
|
|
11757
|
+
return C = ne[0], D = ne[1], this.editor.getContents(C, D);
|
|
11756
11758
|
}
|
|
11757
11759
|
}, {
|
|
11758
11760
|
key: "getFormat",
|
|
11759
11761
|
value: function() {
|
|
11760
|
-
var
|
|
11761
|
-
return typeof
|
|
11762
|
+
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.getSelection(!0), D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
11763
|
+
return typeof C == "number" ? this.editor.getFormat(C, D) : this.editor.getFormat(C.index, C.length);
|
|
11762
11764
|
}
|
|
11763
11765
|
}, {
|
|
11764
11766
|
key: "getIndex",
|
|
11765
|
-
value: function(
|
|
11766
|
-
return
|
|
11767
|
+
value: function(C) {
|
|
11768
|
+
return C.offset(this.scroll);
|
|
11767
11769
|
}
|
|
11768
11770
|
}, {
|
|
11769
11771
|
key: "getLength",
|
|
@@ -11772,36 +11774,36 @@ var yo = {}, vm = {
|
|
|
11772
11774
|
}
|
|
11773
11775
|
}, {
|
|
11774
11776
|
key: "getLeaf",
|
|
11775
|
-
value: function(
|
|
11776
|
-
return this.scroll.leaf(
|
|
11777
|
+
value: function(C) {
|
|
11778
|
+
return this.scroll.leaf(C);
|
|
11777
11779
|
}
|
|
11778
11780
|
}, {
|
|
11779
11781
|
key: "getLine",
|
|
11780
|
-
value: function(
|
|
11781
|
-
return this.scroll.line(
|
|
11782
|
+
value: function(C) {
|
|
11783
|
+
return this.scroll.line(C);
|
|
11782
11784
|
}
|
|
11783
11785
|
}, {
|
|
11784
11786
|
key: "getLines",
|
|
11785
11787
|
value: function() {
|
|
11786
|
-
var
|
|
11787
|
-
return typeof
|
|
11788
|
+
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE;
|
|
11789
|
+
return typeof C != "number" ? this.scroll.lines(C.index, C.length) : this.scroll.lines(C, D);
|
|
11788
11790
|
}
|
|
11789
11791
|
}, {
|
|
11790
11792
|
key: "getModule",
|
|
11791
|
-
value: function(
|
|
11792
|
-
return this.theme.modules[
|
|
11793
|
+
value: function(C) {
|
|
11794
|
+
return this.theme.modules[C];
|
|
11793
11795
|
}
|
|
11794
11796
|
}, {
|
|
11795
11797
|
key: "getSelection",
|
|
11796
11798
|
value: function() {
|
|
11797
|
-
var
|
|
11798
|
-
return
|
|
11799
|
+
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
11800
|
+
return C && this.focus(), this.update(), this.selection.getRange()[0];
|
|
11799
11801
|
}
|
|
11800
11802
|
}, {
|
|
11801
11803
|
key: "getText",
|
|
11802
11804
|
value: function() {
|
|
11803
|
-
var
|
|
11804
|
-
return
|
|
11805
|
+
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - C, V = G(C, D), ne = a(V, 2);
|
|
11806
|
+
return C = ne[0], D = ne[1], this.editor.getText(C, D);
|
|
11805
11807
|
}
|
|
11806
11808
|
}, {
|
|
11807
11809
|
key: "hasFocus",
|
|
@@ -11810,19 +11812,19 @@ var yo = {}, vm = {
|
|
|
11810
11812
|
}
|
|
11811
11813
|
}, {
|
|
11812
11814
|
key: "insertEmbed",
|
|
11813
|
-
value: function(
|
|
11814
|
-
var ne = this, Z = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] :
|
|
11815
|
+
value: function(C, D, V) {
|
|
11816
|
+
var ne = this, Z = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : H.sources.API;
|
|
11815
11817
|
return K.call(this, function() {
|
|
11816
|
-
return ne.editor.insertEmbed(
|
|
11817
|
-
}, Z,
|
|
11818
|
+
return ne.editor.insertEmbed(C, D, V);
|
|
11819
|
+
}, Z, C);
|
|
11818
11820
|
}
|
|
11819
11821
|
}, {
|
|
11820
11822
|
key: "insertText",
|
|
11821
|
-
value: function(
|
|
11822
|
-
var U = this, ee = void 0, W = G(
|
|
11823
|
-
return
|
|
11824
|
-
return U.editor.insertText(
|
|
11825
|
-
}, Z,
|
|
11823
|
+
value: function(C, D, V, ne, Z) {
|
|
11824
|
+
var U = this, ee = void 0, W = G(C, 0, V, ne, Z), I = a(W, 4);
|
|
11825
|
+
return C = I[0], ee = I[2], Z = I[3], K.call(this, function() {
|
|
11826
|
+
return U.editor.insertText(C, D, ee);
|
|
11827
|
+
}, Z, C, D.length);
|
|
11826
11828
|
}
|
|
11827
11829
|
}, {
|
|
11828
11830
|
key: "isEnabled",
|
|
@@ -11846,16 +11848,16 @@ var yo = {}, vm = {
|
|
|
11846
11848
|
}
|
|
11847
11849
|
}, {
|
|
11848
11850
|
key: "pasteHTML",
|
|
11849
|
-
value: function(
|
|
11850
|
-
this.clipboard.dangerouslyPasteHTML(
|
|
11851
|
+
value: function(C, D, V) {
|
|
11852
|
+
this.clipboard.dangerouslyPasteHTML(C, D, V);
|
|
11851
11853
|
}
|
|
11852
11854
|
}, {
|
|
11853
11855
|
key: "removeFormat",
|
|
11854
|
-
value: function(
|
|
11855
|
-
var ne = this, Z = G(
|
|
11856
|
-
return
|
|
11857
|
-
return ne.editor.removeFormat(
|
|
11858
|
-
},
|
|
11856
|
+
value: function(C, D, V) {
|
|
11857
|
+
var ne = this, Z = G(C, D, V), U = a(Z, 4);
|
|
11858
|
+
return C = U[0], D = U[1], V = U[3], K.call(this, function() {
|
|
11859
|
+
return ne.editor.removeFormat(C, D);
|
|
11860
|
+
}, V, C);
|
|
11859
11861
|
}
|
|
11860
11862
|
}, {
|
|
11861
11863
|
key: "scrollIntoView",
|
|
@@ -11864,48 +11866,48 @@ var yo = {}, vm = {
|
|
|
11864
11866
|
}
|
|
11865
11867
|
}, {
|
|
11866
11868
|
key: "setContents",
|
|
11867
|
-
value: function(
|
|
11868
|
-
var D = this,
|
|
11869
|
+
value: function(C) {
|
|
11870
|
+
var D = this, V = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v.default.sources.API;
|
|
11869
11871
|
return K.call(this, function() {
|
|
11870
|
-
|
|
11871
|
-
var ne = D.getLength(), Z = D.editor.deleteText(0, ne), U = D.editor.applyDelta(
|
|
11872
|
+
C = new d.default(C);
|
|
11873
|
+
var ne = D.getLength(), Z = D.editor.deleteText(0, ne), U = D.editor.applyDelta(C), ee = U.ops[U.ops.length - 1];
|
|
11872
11874
|
ee != null && typeof ee.insert == "string" && ee.insert[ee.insert.length - 1] === `
|
|
11873
11875
|
` && (D.editor.deleteText(D.getLength() - 1, 1), U.delete(1));
|
|
11874
11876
|
var W = Z.compose(U);
|
|
11875
11877
|
return W;
|
|
11876
|
-
},
|
|
11878
|
+
}, V);
|
|
11877
11879
|
}
|
|
11878
11880
|
}, {
|
|
11879
11881
|
key: "setSelection",
|
|
11880
|
-
value: function(
|
|
11881
|
-
if (
|
|
11882
|
-
this.selection.setRange(null, D ||
|
|
11882
|
+
value: function(C, D, V) {
|
|
11883
|
+
if (C == null)
|
|
11884
|
+
this.selection.setRange(null, D || H.sources.API);
|
|
11883
11885
|
else {
|
|
11884
|
-
var ne = G(
|
|
11885
|
-
|
|
11886
|
+
var ne = G(C, D, V), Z = a(ne, 4);
|
|
11887
|
+
C = Z[0], D = Z[1], V = Z[3], this.selection.setRange(new t.Range(C, D), V), V !== v.default.sources.SILENT && this.selection.scrollIntoView(this.scrollingContainer);
|
|
11886
11888
|
}
|
|
11887
11889
|
}
|
|
11888
11890
|
}, {
|
|
11889
11891
|
key: "setText",
|
|
11890
|
-
value: function(
|
|
11891
|
-
var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v.default.sources.API,
|
|
11892
|
-
return this.setContents(
|
|
11892
|
+
value: function(C) {
|
|
11893
|
+
var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v.default.sources.API, V = new d.default().insert(C);
|
|
11894
|
+
return this.setContents(V, D);
|
|
11893
11895
|
}
|
|
11894
11896
|
}, {
|
|
11895
11897
|
key: "update",
|
|
11896
11898
|
value: function() {
|
|
11897
|
-
var
|
|
11898
|
-
return this.selection.update(
|
|
11899
|
+
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : v.default.sources.USER, D = this.scroll.update(C);
|
|
11900
|
+
return this.selection.update(C), D;
|
|
11899
11901
|
}
|
|
11900
11902
|
}, {
|
|
11901
11903
|
key: "updateContents",
|
|
11902
|
-
value: function(
|
|
11903
|
-
var D = this,
|
|
11904
|
+
value: function(C) {
|
|
11905
|
+
var D = this, V = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v.default.sources.API;
|
|
11904
11906
|
return K.call(this, function() {
|
|
11905
|
-
return
|
|
11906
|
-
},
|
|
11907
|
+
return C = new d.default(C), D.editor.applyDelta(C, V);
|
|
11908
|
+
}, V, !0);
|
|
11907
11909
|
}
|
|
11908
|
-
}]),
|
|
11910
|
+
}]), H;
|
|
11909
11911
|
}();
|
|
11910
11912
|
M.DEFAULTS = {
|
|
11911
11913
|
bounds: null,
|
|
@@ -11922,9 +11924,9 @@ var yo = {}, vm = {
|
|
|
11922
11924
|
"core/module": w.default,
|
|
11923
11925
|
"core/theme": x.default
|
|
11924
11926
|
};
|
|
11925
|
-
function q(
|
|
11927
|
+
function q(H, P) {
|
|
11926
11928
|
if (P = (0, O.default)(!0, {
|
|
11927
|
-
container:
|
|
11929
|
+
container: H,
|
|
11928
11930
|
modules: {
|
|
11929
11931
|
clipboard: !0,
|
|
11930
11932
|
keyboard: !0,
|
|
@@ -11934,29 +11936,29 @@ var yo = {}, vm = {
|
|
|
11934
11936
|
P.theme = x.default;
|
|
11935
11937
|
else if (P.theme = M.import("themes/" + P.theme), P.theme == null)
|
|
11936
11938
|
throw new Error("Invalid theme " + P.theme + ". Did you register it?");
|
|
11937
|
-
var
|
|
11938
|
-
[
|
|
11939
|
+
var C = (0, O.default)(!0, {}, P.theme.DEFAULTS);
|
|
11940
|
+
[C, P].forEach(function(ne) {
|
|
11939
11941
|
ne.modules = ne.modules || {}, Object.keys(ne.modules).forEach(function(Z) {
|
|
11940
11942
|
ne.modules[Z] === !0 && (ne.modules[Z] = {});
|
|
11941
11943
|
});
|
|
11942
11944
|
});
|
|
11943
|
-
var D = Object.keys(
|
|
11945
|
+
var D = Object.keys(C.modules).concat(Object.keys(P.modules)), V = D.reduce(function(ne, Z) {
|
|
11944
11946
|
var U = M.import("modules/" + Z);
|
|
11945
11947
|
return U == null ? N.error("Cannot load " + Z + " module. Are you sure you registered it?") : ne[Z] = U.DEFAULTS || {}, ne;
|
|
11946
11948
|
}, {});
|
|
11947
11949
|
return P.modules != null && P.modules.toolbar && P.modules.toolbar.constructor !== Object && (P.modules.toolbar = {
|
|
11948
11950
|
container: P.modules.toolbar
|
|
11949
|
-
}), P = (0, O.default)(!0, {}, M.DEFAULTS, { modules:
|
|
11951
|
+
}), P = (0, O.default)(!0, {}, M.DEFAULTS, { modules: V }, C, P), ["bounds", "container", "scrollingContainer"].forEach(function(ne) {
|
|
11950
11952
|
typeof P[ne] == "string" && (P[ne] = document.querySelector(P[ne]));
|
|
11951
11953
|
}), P.modules = Object.keys(P.modules).reduce(function(ne, Z) {
|
|
11952
11954
|
return P.modules[Z] && (ne[Z] = P.modules[Z]), ne;
|
|
11953
11955
|
}, {}), P;
|
|
11954
11956
|
}
|
|
11955
|
-
function K(
|
|
11957
|
+
function K(H, P, C, D) {
|
|
11956
11958
|
if (this.options.strict && !this.isEnabled() && P === v.default.sources.USER)
|
|
11957
11959
|
return new d.default();
|
|
11958
|
-
var
|
|
11959
|
-
if (
|
|
11960
|
+
var V = C == null ? null : this.getSelection(), ne = this.editor.delta, Z = H();
|
|
11961
|
+
if (V != null && (C === !0 && (C = V.index), D == null ? V = le(V, Z, P) : D !== 0 && (V = le(V, C, D, P)), this.setSelection(V, v.default.sources.SILENT)), Z.length() > 0) {
|
|
11960
11962
|
var U, ee = [v.default.events.TEXT_CHANGE, Z, ne, P];
|
|
11961
11963
|
if ((U = this.emitter).emit.apply(U, [v.default.events.EDITOR_CHANGE].concat(ee)), P !== v.default.sources.SILENT) {
|
|
11962
11964
|
var W;
|
|
@@ -11965,26 +11967,26 @@ var yo = {}, vm = {
|
|
|
11965
11967
|
}
|
|
11966
11968
|
return Z;
|
|
11967
11969
|
}
|
|
11968
|
-
function G(
|
|
11970
|
+
function G(H, P, C, D, V) {
|
|
11969
11971
|
var ne = {};
|
|
11970
|
-
return typeof
|
|
11972
|
+
return typeof H.index == "number" && typeof H.length == "number" ? typeof P != "number" ? (V = D, D = C, C = P, P = H.length, H = H.index) : (P = H.length, H = H.index) : typeof P != "number" && (V = D, D = C, C = P, P = 0), (typeof C > "u" ? "undefined" : l(C)) === "object" ? (ne = C, V = D) : typeof C == "string" && (D != null ? ne[C] = D : V = C), V = V || v.default.sources.API, [H, P, ne, V];
|
|
11971
11973
|
}
|
|
11972
|
-
function le(
|
|
11973
|
-
if (
|
|
11974
|
+
function le(H, P, C, D) {
|
|
11975
|
+
if (H == null)
|
|
11974
11976
|
return null;
|
|
11975
|
-
var
|
|
11977
|
+
var V = void 0, ne = void 0;
|
|
11976
11978
|
if (P instanceof d.default) {
|
|
11977
|
-
var Z = [
|
|
11979
|
+
var Z = [H.index, H.index + H.length].map(function(I) {
|
|
11978
11980
|
return P.transformPosition(I, D !== v.default.sources.USER);
|
|
11979
11981
|
}), U = a(Z, 2);
|
|
11980
|
-
|
|
11982
|
+
V = U[0], ne = U[1];
|
|
11981
11983
|
} else {
|
|
11982
|
-
var ee = [
|
|
11983
|
-
return I < P || I === P && D === v.default.sources.USER ? I :
|
|
11984
|
+
var ee = [H.index, H.index + H.length].map(function(I) {
|
|
11985
|
+
return I < P || I === P && D === v.default.sources.USER ? I : C >= 0 ? I + C : Math.max(P, I + C);
|
|
11984
11986
|
}), W = a(ee, 2);
|
|
11985
|
-
|
|
11987
|
+
V = W[0], ne = W[1];
|
|
11986
11988
|
}
|
|
11987
|
-
return new t.Range(
|
|
11989
|
+
return new t.Range(V, ne - V);
|
|
11988
11990
|
}
|
|
11989
11991
|
n.expandConfig = q, n.overload = G, n.default = M;
|
|
11990
11992
|
},
|
|
@@ -12412,8 +12414,8 @@ var yo = {}, vm = {
|
|
|
12412
12414
|
if (T !== 0 && !(f.default.query(N, f.default.Scope.BLOCK) == null || N === this.statics.blotName && M === this.statics.formats(this.domNode))) {
|
|
12413
12415
|
var q = this.newlineIndex(S);
|
|
12414
12416
|
if (!(q < 0 || q >= S + T)) {
|
|
12415
|
-
var K = this.newlineIndex(S, !0) + 1, G = q - K + 1, le = this.isolate(K, G),
|
|
12416
|
-
le.format(N, M),
|
|
12417
|
+
var K = this.newlineIndex(S, !0) + 1, G = q - K + 1, le = this.isolate(K, G), H = le.next;
|
|
12418
|
+
le.format(N, M), H instanceof x && H.formatAt(0, S - K + T - G, N, M);
|
|
12417
12419
|
}
|
|
12418
12420
|
}
|
|
12419
12421
|
}
|
|
@@ -12479,21 +12481,21 @@ var yo = {}, vm = {
|
|
|
12479
12481
|
Object.defineProperty(n, "__esModule", {
|
|
12480
12482
|
value: !0
|
|
12481
12483
|
});
|
|
12482
|
-
var l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
12483
|
-
return typeof
|
|
12484
|
-
} : function(
|
|
12485
|
-
return
|
|
12484
|
+
var l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(H) {
|
|
12485
|
+
return typeof H;
|
|
12486
|
+
} : function(H) {
|
|
12487
|
+
return H && typeof Symbol == "function" && H.constructor === Symbol && H !== Symbol.prototype ? "symbol" : typeof H;
|
|
12486
12488
|
}, a = function() {
|
|
12487
|
-
function
|
|
12488
|
-
var D = [],
|
|
12489
|
+
function H(P, C) {
|
|
12490
|
+
var D = [], V = !0, ne = !1, Z = void 0;
|
|
12489
12491
|
try {
|
|
12490
|
-
for (var U = P[Symbol.iterator](), ee; !(
|
|
12492
|
+
for (var U = P[Symbol.iterator](), ee; !(V = (ee = U.next()).done) && (D.push(ee.value), !(C && D.length === C)); V = !0)
|
|
12491
12493
|
;
|
|
12492
12494
|
} catch (W) {
|
|
12493
12495
|
ne = !0, Z = W;
|
|
12494
12496
|
} finally {
|
|
12495
12497
|
try {
|
|
12496
|
-
!
|
|
12498
|
+
!V && U.return && U.return();
|
|
12497
12499
|
} finally {
|
|
12498
12500
|
if (ne)
|
|
12499
12501
|
throw Z;
|
|
@@ -12501,53 +12503,53 @@ var yo = {}, vm = {
|
|
|
12501
12503
|
}
|
|
12502
12504
|
return D;
|
|
12503
12505
|
}
|
|
12504
|
-
return function(P,
|
|
12506
|
+
return function(P, C) {
|
|
12505
12507
|
if (Array.isArray(P))
|
|
12506
12508
|
return P;
|
|
12507
12509
|
if (Symbol.iterator in Object(P))
|
|
12508
|
-
return
|
|
12510
|
+
return H(P, C);
|
|
12509
12511
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
12510
12512
|
};
|
|
12511
12513
|
}(), u = function() {
|
|
12512
|
-
function
|
|
12513
|
-
for (var D = 0; D <
|
|
12514
|
-
var
|
|
12515
|
-
|
|
12514
|
+
function H(P, C) {
|
|
12515
|
+
for (var D = 0; D < C.length; D++) {
|
|
12516
|
+
var V = C[D];
|
|
12517
|
+
V.enumerable = V.enumerable || !1, V.configurable = !0, "value" in V && (V.writable = !0), Object.defineProperty(P, V.key, V);
|
|
12516
12518
|
}
|
|
12517
12519
|
}
|
|
12518
|
-
return function(P,
|
|
12519
|
-
return
|
|
12520
|
+
return function(P, C, D) {
|
|
12521
|
+
return C && H(P.prototype, C), D && H(P, D), P;
|
|
12520
12522
|
};
|
|
12521
12523
|
}(), p = i(2), d = T(p), c = i(20), f = T(c), s = i(0), v = T(s), g = i(13), w = T(g), h = i(24), y = T(h), t = i(4), k = T(t), m = i(16), O = T(m), A = i(21), E = T(A), _ = i(11), x = T(_), b = i(3), S = T(b);
|
|
12522
|
-
function T(
|
|
12523
|
-
return
|
|
12524
|
+
function T(H) {
|
|
12525
|
+
return H && H.__esModule ? H : { default: H };
|
|
12524
12526
|
}
|
|
12525
|
-
function N(
|
|
12526
|
-
return P in
|
|
12527
|
+
function N(H, P, C) {
|
|
12528
|
+
return P in H ? Object.defineProperty(H, P, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : H[P] = C, H;
|
|
12527
12529
|
}
|
|
12528
|
-
function M(
|
|
12529
|
-
if (!(
|
|
12530
|
+
function M(H, P) {
|
|
12531
|
+
if (!(H instanceof P))
|
|
12530
12532
|
throw new TypeError("Cannot call a class as a function");
|
|
12531
12533
|
}
|
|
12532
12534
|
var q = /^[ -~]*$/, K = function() {
|
|
12533
|
-
function
|
|
12534
|
-
M(this,
|
|
12535
|
+
function H(P) {
|
|
12536
|
+
M(this, H), this.scroll = P, this.delta = this.getDelta();
|
|
12535
12537
|
}
|
|
12536
|
-
return u(
|
|
12538
|
+
return u(H, [{
|
|
12537
12539
|
key: "applyDelta",
|
|
12538
|
-
value: function(
|
|
12539
|
-
var D = this,
|
|
12540
|
+
value: function(C) {
|
|
12541
|
+
var D = this, V = !1;
|
|
12540
12542
|
this.scroll.update();
|
|
12541
12543
|
var ne = this.scroll.length();
|
|
12542
|
-
return this.scroll.batchStart(),
|
|
12544
|
+
return this.scroll.batchStart(), C = le(C), C.reduce(function(Z, U) {
|
|
12543
12545
|
var ee = U.retain || U.delete || U.insert.length || 1, W = U.attributes || {};
|
|
12544
12546
|
if (U.insert != null) {
|
|
12545
12547
|
if (typeof U.insert == "string") {
|
|
12546
12548
|
var I = U.insert;
|
|
12547
12549
|
I.endsWith(`
|
|
12548
|
-
`) &&
|
|
12549
|
-
`) && (
|
|
12550
|
-
var
|
|
12550
|
+
`) && V && (V = !1, I = I.slice(0, -1)), Z >= ne && !I.endsWith(`
|
|
12551
|
+
`) && (V = !0), D.scroll.insertAt(Z, I);
|
|
12552
|
+
var L = D.scroll.line(Z), z = a(L, 2), te = z[0], re = z[1], se = (0, S.default)({}, (0, t.bubbleFormats)(te));
|
|
12551
12553
|
if (te instanceof k.default) {
|
|
12552
12554
|
var de = te.descendant(v.default.Leaf, re), Ee = a(de, 1), Oe = Ee[0];
|
|
12553
12555
|
se = (0, S.default)(se, (0, t.bubbleFormats)(Oe));
|
|
@@ -12564,64 +12566,64 @@ var yo = {}, vm = {
|
|
|
12564
12566
|
return Object.keys(W).forEach(function(ae) {
|
|
12565
12567
|
D.scroll.formatAt(Z, ee, ae, W[ae]);
|
|
12566
12568
|
}), Z + ee;
|
|
12567
|
-
}, 0),
|
|
12569
|
+
}, 0), C.reduce(function(Z, U) {
|
|
12568
12570
|
return typeof U.delete == "number" ? (D.scroll.deleteAt(Z, U.delete), Z) : Z + (U.retain || U.insert.length || 1);
|
|
12569
|
-
}, 0), this.scroll.batchEnd(), this.update(
|
|
12571
|
+
}, 0), this.scroll.batchEnd(), this.update(C);
|
|
12570
12572
|
}
|
|
12571
12573
|
}, {
|
|
12572
12574
|
key: "deleteText",
|
|
12573
|
-
value: function(
|
|
12574
|
-
return this.scroll.deleteAt(
|
|
12575
|
+
value: function(C, D) {
|
|
12576
|
+
return this.scroll.deleteAt(C, D), this.update(new d.default().retain(C).delete(D));
|
|
12575
12577
|
}
|
|
12576
12578
|
}, {
|
|
12577
12579
|
key: "formatLine",
|
|
12578
|
-
value: function(
|
|
12579
|
-
var
|
|
12580
|
+
value: function(C, D) {
|
|
12581
|
+
var V = this, ne = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
12580
12582
|
return this.scroll.update(), Object.keys(ne).forEach(function(Z) {
|
|
12581
|
-
if (!(
|
|
12582
|
-
var U =
|
|
12583
|
+
if (!(V.scroll.whitelist != null && !V.scroll.whitelist[Z])) {
|
|
12584
|
+
var U = V.scroll.lines(C, Math.max(D, 1)), ee = D;
|
|
12583
12585
|
U.forEach(function(W) {
|
|
12584
12586
|
var I = W.length();
|
|
12585
12587
|
if (!(W instanceof w.default))
|
|
12586
12588
|
W.format(Z, ne[Z]);
|
|
12587
12589
|
else {
|
|
12588
|
-
var
|
|
12589
|
-
W.formatAt(
|
|
12590
|
+
var L = C - W.offset(V.scroll), z = W.newlineIndex(L + ee) - L + 1;
|
|
12591
|
+
W.formatAt(L, z, Z, ne[Z]);
|
|
12590
12592
|
}
|
|
12591
12593
|
ee -= I;
|
|
12592
12594
|
});
|
|
12593
12595
|
}
|
|
12594
|
-
}), this.scroll.optimize(), this.update(new d.default().retain(
|
|
12596
|
+
}), this.scroll.optimize(), this.update(new d.default().retain(C).retain(D, (0, E.default)(ne)));
|
|
12595
12597
|
}
|
|
12596
12598
|
}, {
|
|
12597
12599
|
key: "formatText",
|
|
12598
|
-
value: function(
|
|
12599
|
-
var
|
|
12600
|
+
value: function(C, D) {
|
|
12601
|
+
var V = this, ne = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
12600
12602
|
return Object.keys(ne).forEach(function(Z) {
|
|
12601
|
-
|
|
12602
|
-
}), this.update(new d.default().retain(
|
|
12603
|
+
V.scroll.formatAt(C, D, Z, ne[Z]);
|
|
12604
|
+
}), this.update(new d.default().retain(C).retain(D, (0, E.default)(ne)));
|
|
12603
12605
|
}
|
|
12604
12606
|
}, {
|
|
12605
12607
|
key: "getContents",
|
|
12606
|
-
value: function(
|
|
12607
|
-
return this.delta.slice(
|
|
12608
|
+
value: function(C, D) {
|
|
12609
|
+
return this.delta.slice(C, C + D);
|
|
12608
12610
|
}
|
|
12609
12611
|
}, {
|
|
12610
12612
|
key: "getDelta",
|
|
12611
12613
|
value: function() {
|
|
12612
|
-
return this.scroll.lines().reduce(function(
|
|
12613
|
-
return
|
|
12614
|
+
return this.scroll.lines().reduce(function(C, D) {
|
|
12615
|
+
return C.concat(D.delta());
|
|
12614
12616
|
}, new d.default());
|
|
12615
12617
|
}
|
|
12616
12618
|
}, {
|
|
12617
12619
|
key: "getFormat",
|
|
12618
|
-
value: function(
|
|
12619
|
-
var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0,
|
|
12620
|
-
D === 0 ? this.scroll.path(
|
|
12620
|
+
value: function(C) {
|
|
12621
|
+
var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, V = [], ne = [];
|
|
12622
|
+
D === 0 ? this.scroll.path(C).forEach(function(U) {
|
|
12621
12623
|
var ee = a(U, 1), W = ee[0];
|
|
12622
|
-
W instanceof k.default ?
|
|
12623
|
-
}) : (
|
|
12624
|
-
var Z = [
|
|
12624
|
+
W instanceof k.default ? V.push(W) : W instanceof v.default.Leaf && ne.push(W);
|
|
12625
|
+
}) : (V = this.scroll.lines(C, D), ne = this.scroll.descendants(v.default.Leaf, C, D));
|
|
12626
|
+
var Z = [V, ne].map(function(U) {
|
|
12625
12627
|
if (U.length === 0)
|
|
12626
12628
|
return {};
|
|
12627
12629
|
for (var ee = (0, t.bubbleFormats)(U.shift()); Object.keys(ee).length > 0; ) {
|
|
@@ -12636,27 +12638,27 @@ var yo = {}, vm = {
|
|
|
12636
12638
|
}
|
|
12637
12639
|
}, {
|
|
12638
12640
|
key: "getText",
|
|
12639
|
-
value: function(
|
|
12640
|
-
return this.getContents(
|
|
12641
|
-
return typeof
|
|
12642
|
-
}).map(function(
|
|
12643
|
-
return
|
|
12641
|
+
value: function(C, D) {
|
|
12642
|
+
return this.getContents(C, D).filter(function(V) {
|
|
12643
|
+
return typeof V.insert == "string";
|
|
12644
|
+
}).map(function(V) {
|
|
12645
|
+
return V.insert;
|
|
12644
12646
|
}).join("");
|
|
12645
12647
|
}
|
|
12646
12648
|
}, {
|
|
12647
12649
|
key: "insertEmbed",
|
|
12648
|
-
value: function(
|
|
12649
|
-
return this.scroll.insertAt(
|
|
12650
|
+
value: function(C, D, V) {
|
|
12651
|
+
return this.scroll.insertAt(C, D, V), this.update(new d.default().retain(C).insert(N({}, D, V)));
|
|
12650
12652
|
}
|
|
12651
12653
|
}, {
|
|
12652
12654
|
key: "insertText",
|
|
12653
|
-
value: function(
|
|
12654
|
-
var
|
|
12655
|
+
value: function(C, D) {
|
|
12656
|
+
var V = this, ne = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
12655
12657
|
return D = D.replace(/\r\n/g, `
|
|
12656
12658
|
`).replace(/\r/g, `
|
|
12657
|
-
`), this.scroll.insertAt(
|
|
12658
|
-
|
|
12659
|
-
}), this.update(new d.default().retain(
|
|
12659
|
+
`), this.scroll.insertAt(C, D), Object.keys(ne).forEach(function(Z) {
|
|
12660
|
+
V.scroll.formatAt(C, D.length, Z, ne[Z]);
|
|
12661
|
+
}), this.update(new d.default().retain(C).insert(D, (0, E.default)(ne)));
|
|
12660
12662
|
}
|
|
12661
12663
|
}, {
|
|
12662
12664
|
key: "isBlank",
|
|
@@ -12665,51 +12667,51 @@ var yo = {}, vm = {
|
|
|
12665
12667
|
return !0;
|
|
12666
12668
|
if (this.scroll.children.length > 1)
|
|
12667
12669
|
return !1;
|
|
12668
|
-
var
|
|
12669
|
-
return
|
|
12670
|
+
var C = this.scroll.children.head;
|
|
12671
|
+
return C.statics.blotName !== k.default.blotName || C.children.length > 1 ? !1 : C.children.head instanceof O.default;
|
|
12670
12672
|
}
|
|
12671
12673
|
}, {
|
|
12672
12674
|
key: "removeFormat",
|
|
12673
|
-
value: function(
|
|
12674
|
-
var
|
|
12675
|
+
value: function(C, D) {
|
|
12676
|
+
var V = this.getText(C, D), ne = this.scroll.line(C + D), Z = a(ne, 2), U = Z[0], ee = Z[1], W = 0, I = new d.default();
|
|
12675
12677
|
U != null && (U instanceof w.default ? W = U.newlineIndex(ee) - ee + 1 : W = U.length() - ee, I = U.delta().slice(ee, ee + W - 1).insert(`
|
|
12676
12678
|
`));
|
|
12677
|
-
var
|
|
12679
|
+
var L = this.getContents(C, D + W), z = L.diff(new d.default().insert(V).concat(I)), te = new d.default().retain(C).concat(z);
|
|
12678
12680
|
return this.applyDelta(te);
|
|
12679
12681
|
}
|
|
12680
12682
|
}, {
|
|
12681
12683
|
key: "update",
|
|
12682
|
-
value: function(
|
|
12683
|
-
var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [],
|
|
12684
|
+
value: function(C) {
|
|
12685
|
+
var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], V = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0, ne = this.delta;
|
|
12684
12686
|
if (D.length === 1 && D[0].type === "characterData" && D[0].target.data.match(q) && v.default.find(D[0].target)) {
|
|
12685
|
-
var Z = v.default.find(D[0].target), U = (0, t.bubbleFormats)(Z), ee = Z.offset(this.scroll), W = D[0].oldValue.replace(y.default.CONTENTS, ""), I = new d.default().insert(W),
|
|
12686
|
-
|
|
12687
|
+
var Z = v.default.find(D[0].target), U = (0, t.bubbleFormats)(Z), ee = Z.offset(this.scroll), W = D[0].oldValue.replace(y.default.CONTENTS, ""), I = new d.default().insert(W), L = new d.default().insert(Z.value()), z = new d.default().retain(ee).concat(I.diff(L, V));
|
|
12688
|
+
C = z.reduce(function(te, re) {
|
|
12687
12689
|
return re.insert ? te.insert(re.insert, U) : te.push(re);
|
|
12688
|
-
}, new d.default()), this.delta = ne.compose(
|
|
12690
|
+
}, new d.default()), this.delta = ne.compose(C);
|
|
12689
12691
|
} else
|
|
12690
|
-
this.delta = this.getDelta(), (!
|
|
12691
|
-
return
|
|
12692
|
+
this.delta = this.getDelta(), (!C || !(0, x.default)(ne.compose(C), this.delta)) && (C = ne.diff(this.delta, V));
|
|
12693
|
+
return C;
|
|
12692
12694
|
}
|
|
12693
|
-
}]),
|
|
12695
|
+
}]), H;
|
|
12694
12696
|
}();
|
|
12695
|
-
function G(
|
|
12696
|
-
return Object.keys(P).reduce(function(
|
|
12697
|
-
return
|
|
12697
|
+
function G(H, P) {
|
|
12698
|
+
return Object.keys(P).reduce(function(C, D) {
|
|
12699
|
+
return H[D] == null || (P[D] === H[D] ? C[D] = P[D] : Array.isArray(P[D]) ? P[D].indexOf(H[D]) < 0 && (C[D] = P[D].concat([H[D]])) : C[D] = [P[D], H[D]]), C;
|
|
12698
12700
|
}, {});
|
|
12699
12701
|
}
|
|
12700
|
-
function le(
|
|
12701
|
-
return
|
|
12702
|
-
if (
|
|
12703
|
-
var D = (0, E.default)(
|
|
12704
|
-
return delete D.image, P.insert({ image:
|
|
12702
|
+
function le(H) {
|
|
12703
|
+
return H.reduce(function(P, C) {
|
|
12704
|
+
if (C.insert === 1) {
|
|
12705
|
+
var D = (0, E.default)(C.attributes);
|
|
12706
|
+
return delete D.image, P.insert({ image: C.attributes.image }, D);
|
|
12705
12707
|
}
|
|
12706
|
-
if (
|
|
12707
|
-
var
|
|
12708
|
+
if (C.attributes != null && (C.attributes.list === !0 || C.attributes.bullet === !0) && (C = (0, E.default)(C), C.attributes.list ? C.attributes.list = "ordered" : (C.attributes.list = "bullet", delete C.attributes.bullet)), typeof C.insert == "string") {
|
|
12709
|
+
var V = C.insert.replace(/\r\n/g, `
|
|
12708
12710
|
`).replace(/\r/g, `
|
|
12709
12711
|
`);
|
|
12710
|
-
return P.insert(
|
|
12712
|
+
return P.insert(V, C.attributes);
|
|
12711
12713
|
}
|
|
12712
|
-
return P.push(
|
|
12714
|
+
return P.push(C);
|
|
12713
12715
|
}, new d.default());
|
|
12714
12716
|
}
|
|
12715
12717
|
n.default = K;
|
|
@@ -12858,15 +12860,15 @@ var yo = {}, vm = {
|
|
|
12858
12860
|
var N = void 0, M = this.scroll.leaf(b), q = l(M, 2), K = q[0], G = q[1];
|
|
12859
12861
|
if (K == null)
|
|
12860
12862
|
return null;
|
|
12861
|
-
var le = K.position(G, !0),
|
|
12862
|
-
N =
|
|
12863
|
+
var le = K.position(G, !0), H = l(le, 2);
|
|
12864
|
+
N = H[0], G = H[1];
|
|
12863
12865
|
var P = document.createRange();
|
|
12864
12866
|
if (S > 0) {
|
|
12865
12867
|
P.setStart(N, G);
|
|
12866
|
-
var
|
|
12868
|
+
var C = this.scroll.leaf(b + S), D = l(C, 2);
|
|
12867
12869
|
if (K = D[0], G = D[1], K == null)
|
|
12868
12870
|
return null;
|
|
12869
|
-
var
|
|
12871
|
+
var V = K.position(G, !0), ne = l(V, 2);
|
|
12870
12872
|
return N = ne[0], G = ne[1], P.setEnd(N, G), P.getBoundingClientRect();
|
|
12871
12873
|
} else {
|
|
12872
12874
|
var Z = "left", U = void 0;
|
|
@@ -12912,8 +12914,8 @@ var yo = {}, vm = {
|
|
|
12912
12914
|
var S = this, T = [[b.start.node, b.start.offset]];
|
|
12913
12915
|
b.native.collapsed || T.push([b.end.node, b.end.offset]);
|
|
12914
12916
|
var N = T.map(function(K) {
|
|
12915
|
-
var G = l(K, 2), le = G[0],
|
|
12916
|
-
return
|
|
12917
|
+
var G = l(K, 2), le = G[0], H = G[1], P = p.default.find(le, !0), C = P.offset(S.scroll);
|
|
12918
|
+
return H === 0 ? C : P instanceof p.default.Container ? C + P.length() : C + P.index(le, H);
|
|
12917
12919
|
}), M = Math.min(Math.max.apply(Math, t(N)), this.scroll.length() - 1), q = Math.min.apply(Math, [M].concat(t(N)));
|
|
12918
12920
|
return new O(q, M - q);
|
|
12919
12921
|
}
|
|
@@ -12944,8 +12946,8 @@ var yo = {}, vm = {
|
|
|
12944
12946
|
var S = this, T = b.collapsed ? [b.index] : [b.index, b.index + b.length], N = [], M = this.scroll.length();
|
|
12945
12947
|
return T.forEach(function(q, K) {
|
|
12946
12948
|
q = Math.min(M - 1, q);
|
|
12947
|
-
var G = void 0, le = S.scroll.leaf(q),
|
|
12948
|
-
G =
|
|
12949
|
+
var G = void 0, le = S.scroll.leaf(q), H = l(le, 2), P = H[0], C = H[1], D = P.position(C, K !== 0), V = l(D, 2);
|
|
12950
|
+
G = V[0], C = V[1], N.push(G, C);
|
|
12949
12951
|
}), N.length < 2 && (N = N.concat(N)), N;
|
|
12950
12952
|
}
|
|
12951
12953
|
}, {
|
|
@@ -12957,8 +12959,8 @@ var yo = {}, vm = {
|
|
|
12957
12959
|
if (T != null) {
|
|
12958
12960
|
var N = this.scroll.length() - 1, M = this.scroll.line(Math.min(S.index, N)), q = l(M, 1), K = q[0], G = K;
|
|
12959
12961
|
if (S.length > 0) {
|
|
12960
|
-
var le = this.scroll.line(Math.min(S.index + S.length, N)),
|
|
12961
|
-
G =
|
|
12962
|
+
var le = this.scroll.line(Math.min(S.index + S.length, N)), H = l(le, 1);
|
|
12963
|
+
G = H[0];
|
|
12962
12964
|
}
|
|
12963
12965
|
if (!(K == null || G == null)) {
|
|
12964
12966
|
var P = b.getBoundingClientRect();
|
|
@@ -13444,11 +13446,11 @@ var yo = {}, vm = {
|
|
|
13444
13446
|
else if (l(_, u))
|
|
13445
13447
|
b = new u();
|
|
13446
13448
|
else if (l(_, p))
|
|
13447
|
-
b = new p(function(P,
|
|
13449
|
+
b = new p(function(P, C) {
|
|
13448
13450
|
_.then(function(D) {
|
|
13449
13451
|
P(E(D, x - 1));
|
|
13450
13452
|
}, function(D) {
|
|
13451
|
-
|
|
13453
|
+
C(E(D, x - 1));
|
|
13452
13454
|
});
|
|
13453
13455
|
});
|
|
13454
13456
|
else if (d.__isArray(_))
|
|
@@ -13468,12 +13470,12 @@ var yo = {}, vm = {
|
|
|
13468
13470
|
return O[T];
|
|
13469
13471
|
m.push(_), O.push(b);
|
|
13470
13472
|
}
|
|
13471
|
-
l(_, a) && _.forEach(function(P,
|
|
13472
|
-
var D = E(
|
|
13473
|
-
b.set(D,
|
|
13473
|
+
l(_, a) && _.forEach(function(P, C) {
|
|
13474
|
+
var D = E(C, x - 1), V = E(P, x - 1);
|
|
13475
|
+
b.set(D, V);
|
|
13474
13476
|
}), l(_, u) && _.forEach(function(P) {
|
|
13475
|
-
var
|
|
13476
|
-
b.add(
|
|
13477
|
+
var C = E(P, x - 1);
|
|
13478
|
+
b.add(C);
|
|
13477
13479
|
});
|
|
13478
13480
|
for (var N in _) {
|
|
13479
13481
|
var M;
|
|
@@ -13488,8 +13490,8 @@ var yo = {}, vm = {
|
|
|
13488
13490
|
}
|
|
13489
13491
|
if (k)
|
|
13490
13492
|
for (var le = Object.getOwnPropertyNames(_), N = 0; N < le.length; N++) {
|
|
13491
|
-
var
|
|
13492
|
-
G && G.enumerable || (b[
|
|
13493
|
+
var H = le[N], G = Object.getOwnPropertyDescriptor(_, H);
|
|
13494
|
+
G && G.enumerable || (b[H] = E(_[H], x - 1), Object.defineProperty(b, H, {
|
|
13493
13495
|
enumerable: !1
|
|
13494
13496
|
}));
|
|
13495
13497
|
}
|
|
@@ -13538,8 +13540,8 @@ var yo = {}, vm = {
|
|
|
13538
13540
|
try {
|
|
13539
13541
|
for (var G = S[Symbol.iterator](), le; !(M = (le = G.next()).done) && (N.push(le.value), !(T && N.length === T)); M = !0)
|
|
13540
13542
|
;
|
|
13541
|
-
} catch (
|
|
13542
|
-
q = !0, K =
|
|
13543
|
+
} catch (H) {
|
|
13544
|
+
q = !0, K = H;
|
|
13543
13545
|
} finally {
|
|
13544
13546
|
try {
|
|
13545
13547
|
!M && G.return && G.return();
|
|
@@ -13623,24 +13625,24 @@ var yo = {}, vm = {
|
|
|
13623
13625
|
}, {
|
|
13624
13626
|
key: "deleteAt",
|
|
13625
13627
|
value: function(N, M) {
|
|
13626
|
-
var q = this.line(N), K = l(q, 2), G = K[0], le = K[1],
|
|
13627
|
-
if (u(S.prototype.__proto__ || Object.getPrototypeOf(S.prototype), "deleteAt", this).call(this, N, M),
|
|
13628
|
-
if (G instanceof s.BlockEmbed ||
|
|
13628
|
+
var q = this.line(N), K = l(q, 2), G = K[0], le = K[1], H = this.line(N + M), P = l(H, 1), C = P[0];
|
|
13629
|
+
if (u(S.prototype.__proto__ || Object.getPrototypeOf(S.prototype), "deleteAt", this).call(this, N, M), C != null && G !== C && le > 0) {
|
|
13630
|
+
if (G instanceof s.BlockEmbed || C instanceof s.BlockEmbed) {
|
|
13629
13631
|
this.optimize();
|
|
13630
13632
|
return;
|
|
13631
13633
|
}
|
|
13632
13634
|
if (G instanceof y.default) {
|
|
13633
13635
|
var D = G.newlineIndex(G.length(), !0);
|
|
13634
|
-
if (D > -1 && (G = G.split(D + 1), G ===
|
|
13636
|
+
if (D > -1 && (G = G.split(D + 1), G === C)) {
|
|
13635
13637
|
this.optimize();
|
|
13636
13638
|
return;
|
|
13637
13639
|
}
|
|
13638
|
-
} else if (
|
|
13639
|
-
var
|
|
13640
|
-
|
|
13640
|
+
} else if (C instanceof y.default) {
|
|
13641
|
+
var V = C.newlineIndex(0);
|
|
13642
|
+
V > -1 && C.split(V + 1);
|
|
13641
13643
|
}
|
|
13642
|
-
var ne =
|
|
13643
|
-
G.moveChildren(
|
|
13644
|
+
var ne = C.children.head instanceof w.default ? null : C.children.head;
|
|
13645
|
+
G.moveChildren(C, ne), G.remove();
|
|
13644
13646
|
}
|
|
13645
13647
|
this.optimize();
|
|
13646
13648
|
}
|
|
@@ -13695,10 +13697,10 @@ var yo = {}, vm = {
|
|
|
13695
13697
|
}, {
|
|
13696
13698
|
key: "lines",
|
|
13697
13699
|
value: function() {
|
|
13698
|
-
var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, q = function K(G, le,
|
|
13699
|
-
var P = [],
|
|
13700
|
-
return G.children.forEachAt(le,
|
|
13701
|
-
_(D) ? P.push(D) : D instanceof d.default.Container && (P = P.concat(K(D,
|
|
13700
|
+
var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, q = function K(G, le, H) {
|
|
13701
|
+
var P = [], C = H;
|
|
13702
|
+
return G.children.forEachAt(le, H, function(D, V, ne) {
|
|
13703
|
+
_(D) ? P.push(D) : D instanceof d.default.Container && (P = P.concat(K(D, V, C))), C -= ne;
|
|
13702
13704
|
}), P;
|
|
13703
13705
|
};
|
|
13704
13706
|
return q(this, N, M);
|
|
@@ -13736,15 +13738,15 @@ var yo = {}, vm = {
|
|
|
13736
13738
|
return U && typeof Symbol == "function" && U.constructor === Symbol && U !== Symbol.prototype ? "symbol" : typeof U;
|
|
13737
13739
|
}, a = function() {
|
|
13738
13740
|
function U(ee, W) {
|
|
13739
|
-
var I = [],
|
|
13741
|
+
var I = [], L = !0, z = !1, te = void 0;
|
|
13740
13742
|
try {
|
|
13741
|
-
for (var re = ee[Symbol.iterator](), se; !(
|
|
13743
|
+
for (var re = ee[Symbol.iterator](), se; !(L = (se = re.next()).done) && (I.push(se.value), !(W && I.length === W)); L = !0)
|
|
13742
13744
|
;
|
|
13743
13745
|
} catch (de) {
|
|
13744
13746
|
z = !0, te = de;
|
|
13745
13747
|
} finally {
|
|
13746
13748
|
try {
|
|
13747
|
-
!
|
|
13749
|
+
!L && re.return && re.return();
|
|
13748
13750
|
} finally {
|
|
13749
13751
|
if (z)
|
|
13750
13752
|
throw te;
|
|
@@ -13762,8 +13764,8 @@ var yo = {}, vm = {
|
|
|
13762
13764
|
}(), u = function() {
|
|
13763
13765
|
function U(ee, W) {
|
|
13764
13766
|
for (var I = 0; I < W.length; I++) {
|
|
13765
|
-
var
|
|
13766
|
-
|
|
13767
|
+
var L = W[I];
|
|
13768
|
+
L.enumerable = L.enumerable || !1, L.configurable = !0, "value" in L && (L.writable = !0), Object.defineProperty(ee, L.key, L);
|
|
13767
13769
|
}
|
|
13768
13770
|
}
|
|
13769
13771
|
return function(ee, W, I) {
|
|
@@ -13793,36 +13795,36 @@ var yo = {}, vm = {
|
|
|
13793
13795
|
var q = (0, E.default)("quill:keyboard"), K = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", G = function(U) {
|
|
13794
13796
|
M(ee, U), u(ee, null, [{
|
|
13795
13797
|
key: "match",
|
|
13796
|
-
value: function(I,
|
|
13797
|
-
return
|
|
13798
|
-
return !!
|
|
13799
|
-
}) ? !1 :
|
|
13798
|
+
value: function(I, L) {
|
|
13799
|
+
return L = Z(L), ["altKey", "ctrlKey", "metaKey", "shiftKey"].some(function(z) {
|
|
13800
|
+
return !!L[z] !== I[z] && L[z] !== null;
|
|
13801
|
+
}) ? !1 : L.key === (I.which || I.keyCode);
|
|
13800
13802
|
}
|
|
13801
13803
|
}]);
|
|
13802
13804
|
function ee(W, I) {
|
|
13803
13805
|
T(this, ee);
|
|
13804
|
-
var
|
|
13805
|
-
return
|
|
13806
|
-
z === "list autofill" && W.scroll.whitelist != null && !W.scroll.whitelist.list ||
|
|
13807
|
-
}),
|
|
13808
|
-
}), /Firefox/i.test(navigator.userAgent) ? (
|
|
13806
|
+
var L = N(this, (ee.__proto__ || Object.getPrototypeOf(ee)).call(this, W, I));
|
|
13807
|
+
return L.bindings = {}, Object.keys(L.options.bindings).forEach(function(z) {
|
|
13808
|
+
z === "list autofill" && W.scroll.whitelist != null && !W.scroll.whitelist.list || L.options.bindings[z] && L.addBinding(L.options.bindings[z]);
|
|
13809
|
+
}), L.addBinding({ key: ee.keys.ENTER, shiftKey: null }, D), L.addBinding({ key: ee.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
|
|
13810
|
+
}), /Firefox/i.test(navigator.userAgent) ? (L.addBinding({ key: ee.keys.BACKSPACE }, { collapsed: !0 }, H), L.addBinding({ key: ee.keys.DELETE }, { collapsed: !0 }, P)) : (L.addBinding({ key: ee.keys.BACKSPACE }, { collapsed: !0, prefix: /^.?$/ }, H), L.addBinding({ key: ee.keys.DELETE }, { collapsed: !0, suffix: /^.?$/ }, P)), L.addBinding({ key: ee.keys.BACKSPACE }, { collapsed: !1 }, C), L.addBinding({ key: ee.keys.DELETE }, { collapsed: !1 }, C), L.addBinding({ key: ee.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: !0, offset: 0 }, H), L.listen(), L;
|
|
13809
13811
|
}
|
|
13810
13812
|
return u(ee, [{
|
|
13811
13813
|
key: "addBinding",
|
|
13812
13814
|
value: function(I) {
|
|
13813
|
-
var
|
|
13815
|
+
var L = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, z = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, te = Z(I);
|
|
13814
13816
|
if (te == null || te.key == null)
|
|
13815
13817
|
return q.warn("Attempted to add invalid keyboard binding", te);
|
|
13816
|
-
typeof
|
|
13818
|
+
typeof L == "function" && (L = { handler: L }), typeof z == "function" && (z = { handler: z }), te = (0, v.default)(te, L, z), this.bindings[te.key] = this.bindings[te.key] || [], this.bindings[te.key].push(te);
|
|
13817
13819
|
}
|
|
13818
13820
|
}, {
|
|
13819
13821
|
key: "listen",
|
|
13820
13822
|
value: function() {
|
|
13821
13823
|
var I = this;
|
|
13822
|
-
this.quill.root.addEventListener("keydown", function(
|
|
13823
|
-
if (!
|
|
13824
|
-
var z =
|
|
13825
|
-
return ee.match(
|
|
13824
|
+
this.quill.root.addEventListener("keydown", function(L) {
|
|
13825
|
+
if (!L.defaultPrevented) {
|
|
13826
|
+
var z = L.which || L.keyCode, te = (I.bindings[z] || []).filter(function(ve) {
|
|
13827
|
+
return ee.match(L, ve);
|
|
13826
13828
|
});
|
|
13827
13829
|
if (te.length !== 0) {
|
|
13828
13830
|
var re = I.quill.getSelection();
|
|
@@ -13848,7 +13850,7 @@ var yo = {}, vm = {
|
|
|
13848
13850
|
return !1;
|
|
13849
13851
|
return ve.prefix != null && !ve.prefix.test(ge.prefix) || ve.suffix != null && !ve.suffix.test(ge.suffix) ? !1 : ve.handler.call(I, re, ge) !== !0;
|
|
13850
13852
|
});
|
|
13851
|
-
Q &&
|
|
13853
|
+
Q && L.preventDefault();
|
|
13852
13854
|
}
|
|
13853
13855
|
}
|
|
13854
13856
|
}
|
|
@@ -13903,8 +13905,8 @@ var yo = {}, vm = {
|
|
|
13903
13905
|
W.format.indent != null ? this.quill.format("indent", "-1", O.default.sources.USER) : W.format.list != null && this.quill.format("list", !1, O.default.sources.USER);
|
|
13904
13906
|
}
|
|
13905
13907
|
},
|
|
13906
|
-
"indent code-block":
|
|
13907
|
-
"outdent code-block":
|
|
13908
|
+
"indent code-block": V(!0),
|
|
13909
|
+
"outdent code-block": V(!1),
|
|
13908
13910
|
"remove tab": {
|
|
13909
13911
|
key: G.keys.TAB,
|
|
13910
13912
|
shiftKey: !0,
|
|
@@ -13936,8 +13938,8 @@ var yo = {}, vm = {
|
|
|
13936
13938
|
collapsed: !0,
|
|
13937
13939
|
format: { list: "checked" },
|
|
13938
13940
|
handler: function(ee) {
|
|
13939
|
-
var W = this.quill.getLine(ee.index), I = a(W, 2),
|
|
13940
|
-
`, te).retain(
|
|
13941
|
+
var W = this.quill.getLine(ee.index), I = a(W, 2), L = I[0], z = I[1], te = (0, v.default)({}, L.formats(), { list: "checked" }), re = new w.default().retain(ee.index).insert(`
|
|
13942
|
+
`, te).retain(L.length() - z - 1).retain(1, { list: "unchecked" });
|
|
13941
13943
|
this.quill.updateContents(re, O.default.sources.USER), this.quill.setSelection(ee.index + 1, O.default.sources.SILENT), this.quill.scrollIntoView();
|
|
13942
13944
|
}
|
|
13943
13945
|
},
|
|
@@ -13947,7 +13949,7 @@ var yo = {}, vm = {
|
|
|
13947
13949
|
format: ["header"],
|
|
13948
13950
|
suffix: /^$/,
|
|
13949
13951
|
handler: function(ee, W) {
|
|
13950
|
-
var I = this.quill.getLine(ee.index),
|
|
13952
|
+
var I = this.quill.getLine(ee.index), L = a(I, 2), z = L[0], te = L[1], re = new w.default().retain(ee.index).insert(`
|
|
13951
13953
|
`, W.format).retain(z.length() - te - 1).retain(1, { header: null });
|
|
13952
13954
|
this.quill.updateContents(re, O.default.sources.USER), this.quill.setSelection(ee.index + 1, O.default.sources.SILENT), this.quill.scrollIntoView();
|
|
13953
13955
|
}
|
|
@@ -13958,7 +13960,7 @@ var yo = {}, vm = {
|
|
|
13958
13960
|
format: { list: !1 },
|
|
13959
13961
|
prefix: /^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,
|
|
13960
13962
|
handler: function(ee, W) {
|
|
13961
|
-
var I = W.prefix.length,
|
|
13963
|
+
var I = W.prefix.length, L = this.quill.getLine(ee.index), z = a(L, 2), te = z[0], re = z[1];
|
|
13962
13964
|
if (re > I)
|
|
13963
13965
|
return !0;
|
|
13964
13966
|
var se = void 0;
|
|
@@ -13989,7 +13991,7 @@ var yo = {}, vm = {
|
|
|
13989
13991
|
prefix: /\n\n$/,
|
|
13990
13992
|
suffix: /^\s+$/,
|
|
13991
13993
|
handler: function(ee) {
|
|
13992
|
-
var W = this.quill.getLine(ee.index), I = a(W, 2),
|
|
13994
|
+
var W = this.quill.getLine(ee.index), I = a(W, 2), L = I[0], z = I[1], te = new w.default().retain(ee.index + L.length() - z - 2).retain(1, { "code-block": null }).delete(1);
|
|
13993
13995
|
this.quill.updateContents(te, O.default.sources.USER);
|
|
13994
13996
|
}
|
|
13995
13997
|
},
|
|
@@ -14012,13 +14014,13 @@ var yo = {}, vm = {
|
|
|
14012
14014
|
return de instanceof k.default.Embed ? (U === G.keys.LEFT ? ee ? this.quill.setSelection(z.index - 1, z.length + 1, O.default.sources.USER) : this.quill.setSelection(z.index - 1, O.default.sources.USER) : ee ? this.quill.setSelection(z.index, z.length + 1, O.default.sources.USER) : this.quill.setSelection(z.index + z.length + 1, O.default.sources.USER), !1) : !0;
|
|
14013
14015
|
}), W;
|
|
14014
14016
|
}
|
|
14015
|
-
function
|
|
14017
|
+
function H(U, ee) {
|
|
14016
14018
|
if (!(U.index === 0 || this.quill.getLength() <= 1)) {
|
|
14017
|
-
var W = this.quill.getLine(U.index), I = a(W, 1),
|
|
14019
|
+
var W = this.quill.getLine(U.index), I = a(W, 1), L = I[0], z = {};
|
|
14018
14020
|
if (ee.offset === 0) {
|
|
14019
14021
|
var te = this.quill.getLine(U.index - 1), re = a(te, 1), se = re[0];
|
|
14020
14022
|
if (se != null && se.length() > 1) {
|
|
14021
|
-
var de =
|
|
14023
|
+
var de = L.formats(), Ee = this.quill.getFormat(U.index - 1, 1);
|
|
14022
14024
|
z = y.default.attributes.diff(de, Ee) || {};
|
|
14023
14025
|
}
|
|
14024
14026
|
}
|
|
@@ -14029,49 +14031,49 @@ var yo = {}, vm = {
|
|
|
14029
14031
|
function P(U, ee) {
|
|
14030
14032
|
var W = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(ee.suffix) ? 2 : 1;
|
|
14031
14033
|
if (!(U.index >= this.quill.getLength() - W)) {
|
|
14032
|
-
var I = {},
|
|
14034
|
+
var I = {}, L = 0, z = this.quill.getLine(U.index), te = a(z, 1), re = te[0];
|
|
14033
14035
|
if (ee.offset >= re.length() - 1) {
|
|
14034
14036
|
var se = this.quill.getLine(U.index + 1), de = a(se, 1), Ee = de[0];
|
|
14035
14037
|
if (Ee) {
|
|
14036
14038
|
var Oe = re.formats(), oe = this.quill.getFormat(U.index, 1);
|
|
14037
|
-
I = y.default.attributes.diff(Oe, oe) || {},
|
|
14039
|
+
I = y.default.attributes.diff(Oe, oe) || {}, L = Ee.length();
|
|
14038
14040
|
}
|
|
14039
14041
|
}
|
|
14040
|
-
this.quill.deleteText(U.index, W, O.default.sources.USER), Object.keys(I).length > 0 && this.quill.formatLine(U.index +
|
|
14042
|
+
this.quill.deleteText(U.index, W, O.default.sources.USER), Object.keys(I).length > 0 && this.quill.formatLine(U.index + L - 1, W, I, O.default.sources.USER);
|
|
14041
14043
|
}
|
|
14042
14044
|
}
|
|
14043
|
-
function
|
|
14045
|
+
function C(U) {
|
|
14044
14046
|
var ee = this.quill.getLines(U), W = {};
|
|
14045
14047
|
if (ee.length > 1) {
|
|
14046
|
-
var I = ee[0].formats(),
|
|
14047
|
-
W = y.default.attributes.diff(
|
|
14048
|
+
var I = ee[0].formats(), L = ee[ee.length - 1].formats();
|
|
14049
|
+
W = y.default.attributes.diff(L, I) || {};
|
|
14048
14050
|
}
|
|
14049
14051
|
this.quill.deleteText(U, O.default.sources.USER), Object.keys(W).length > 0 && this.quill.formatLine(U.index, 1, W, O.default.sources.USER), this.quill.setSelection(U.index, O.default.sources.SILENT), this.quill.focus();
|
|
14050
14052
|
}
|
|
14051
14053
|
function D(U, ee) {
|
|
14052
14054
|
var W = this;
|
|
14053
14055
|
U.length > 0 && this.quill.scroll.deleteAt(U.index, U.length);
|
|
14054
|
-
var I = Object.keys(ee.format).reduce(function(
|
|
14055
|
-
return k.default.query(z, k.default.Scope.BLOCK) && !Array.isArray(ee.format[z]) && (
|
|
14056
|
+
var I = Object.keys(ee.format).reduce(function(L, z) {
|
|
14057
|
+
return k.default.query(z, k.default.Scope.BLOCK) && !Array.isArray(ee.format[z]) && (L[z] = ee.format[z]), L;
|
|
14056
14058
|
}, {});
|
|
14057
14059
|
this.quill.insertText(U.index, `
|
|
14058
|
-
`, I, O.default.sources.USER), this.quill.setSelection(U.index + 1, O.default.sources.SILENT), this.quill.focus(), Object.keys(ee.format).forEach(function(
|
|
14059
|
-
I[
|
|
14060
|
+
`, I, O.default.sources.USER), this.quill.setSelection(U.index + 1, O.default.sources.SILENT), this.quill.focus(), Object.keys(ee.format).forEach(function(L) {
|
|
14061
|
+
I[L] == null && (Array.isArray(ee.format[L]) || L !== "link" && W.quill.format(L, ee.format[L], O.default.sources.USER));
|
|
14060
14062
|
});
|
|
14061
14063
|
}
|
|
14062
|
-
function
|
|
14064
|
+
function V(U) {
|
|
14063
14065
|
return {
|
|
14064
14066
|
key: G.keys.TAB,
|
|
14065
14067
|
shiftKey: !U,
|
|
14066
14068
|
format: { "code-block": !0 },
|
|
14067
14069
|
handler: function(W) {
|
|
14068
|
-
var I = k.default.query("code-block"),
|
|
14070
|
+
var I = k.default.query("code-block"), L = W.index, z = W.length, te = this.quill.scroll.descendant(I, L), re = a(te, 2), se = re[0], de = re[1];
|
|
14069
14071
|
if (se != null) {
|
|
14070
14072
|
var Ee = this.quill.getIndex(se), Oe = se.newlineIndex(de, !0) + 1, oe = se.newlineIndex(Ee + de + z), ae = se.domNode.textContent.slice(Oe, oe).split(`
|
|
14071
14073
|
`);
|
|
14072
14074
|
de = 0, ae.forEach(function(ye, be) {
|
|
14073
|
-
U ? (se.insertAt(Oe + de, I.TAB), de += I.TAB.length, be === 0 ?
|
|
14074
|
-
}), this.quill.update(O.default.sources.USER), this.quill.setSelection(
|
|
14075
|
+
U ? (se.insertAt(Oe + de, I.TAB), de += I.TAB.length, be === 0 ? L += I.TAB.length : z += I.TAB.length) : ye.startsWith(I.TAB) && (se.deleteAt(Oe + de, I.TAB.length), de -= I.TAB.length, be === 0 ? L -= I.TAB.length : z -= I.TAB.length), de += ye.length + 1;
|
|
14076
|
+
}), this.quill.update(O.default.sources.USER), this.quill.setSelection(L, z, O.default.sources.SILENT);
|
|
14075
14077
|
}
|
|
14076
14078
|
}
|
|
14077
14079
|
};
|
|
@@ -15233,20 +15235,20 @@ var yo = {}, vm = {
|
|
|
15233
15235
|
value: !0
|
|
15234
15236
|
}), n.default = n.BaseTooltip = void 0;
|
|
15235
15237
|
var l = function() {
|
|
15236
|
-
function D(
|
|
15238
|
+
function D(V, ne) {
|
|
15237
15239
|
for (var Z = 0; Z < ne.length; Z++) {
|
|
15238
15240
|
var U = ne[Z];
|
|
15239
|
-
U.enumerable = U.enumerable || !1, U.configurable = !0, "value" in U && (U.writable = !0), Object.defineProperty(
|
|
15241
|
+
U.enumerable = U.enumerable || !1, U.configurable = !0, "value" in U && (U.writable = !0), Object.defineProperty(V, U.key, U);
|
|
15240
15242
|
}
|
|
15241
15243
|
}
|
|
15242
|
-
return function(
|
|
15243
|
-
return ne && D(
|
|
15244
|
+
return function(V, ne, Z) {
|
|
15245
|
+
return ne && D(V.prototype, ne), Z && D(V, Z), V;
|
|
15244
15246
|
};
|
|
15245
|
-
}(), a = function D(
|
|
15246
|
-
|
|
15247
|
-
var U = Object.getOwnPropertyDescriptor(
|
|
15247
|
+
}(), a = function D(V, ne, Z) {
|
|
15248
|
+
V === null && (V = Function.prototype);
|
|
15249
|
+
var U = Object.getOwnPropertyDescriptor(V, ne);
|
|
15248
15250
|
if (U === void 0) {
|
|
15249
|
-
var ee = Object.getPrototypeOf(
|
|
15251
|
+
var ee = Object.getPrototypeOf(V);
|
|
15250
15252
|
return ee === null ? void 0 : D(ee, ne, Z);
|
|
15251
15253
|
} else {
|
|
15252
15254
|
if ("value" in U)
|
|
@@ -15258,37 +15260,37 @@ var yo = {}, vm = {
|
|
|
15258
15260
|
function x(D) {
|
|
15259
15261
|
return D && D.__esModule ? D : { default: D };
|
|
15260
15262
|
}
|
|
15261
|
-
function b(D,
|
|
15262
|
-
if (!(D instanceof
|
|
15263
|
+
function b(D, V) {
|
|
15264
|
+
if (!(D instanceof V))
|
|
15263
15265
|
throw new TypeError("Cannot call a class as a function");
|
|
15264
15266
|
}
|
|
15265
|
-
function S(D,
|
|
15267
|
+
function S(D, V) {
|
|
15266
15268
|
if (!D)
|
|
15267
15269
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15268
|
-
return
|
|
15270
|
+
return V && (typeof V == "object" || typeof V == "function") ? V : D;
|
|
15269
15271
|
}
|
|
15270
|
-
function T(D,
|
|
15271
|
-
if (typeof
|
|
15272
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
15273
|
-
D.prototype = Object.create(
|
|
15272
|
+
function T(D, V) {
|
|
15273
|
+
if (typeof V != "function" && V !== null)
|
|
15274
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof V);
|
|
15275
|
+
D.prototype = Object.create(V && V.prototype, { constructor: { value: D, enumerable: !1, writable: !0, configurable: !0 } }), V && (Object.setPrototypeOf ? Object.setPrototypeOf(D, V) : D.__proto__ = V);
|
|
15274
15276
|
}
|
|
15275
15277
|
var N = [!1, "center", "right", "justify"], M = ["#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"], K = ["1", "2", "3", !1], G = ["small", !1, "large", "huge"], le = function(D) {
|
|
15276
|
-
T(
|
|
15277
|
-
function
|
|
15278
|
-
b(this,
|
|
15279
|
-
var U = S(this, (
|
|
15278
|
+
T(V, D);
|
|
15279
|
+
function V(ne, Z) {
|
|
15280
|
+
b(this, V);
|
|
15281
|
+
var U = S(this, (V.__proto__ || Object.getPrototypeOf(V)).call(this, ne, Z)), ee = function W(I) {
|
|
15280
15282
|
if (!document.body.contains(ne.root))
|
|
15281
15283
|
return document.body.removeEventListener("click", W);
|
|
15282
|
-
U.tooltip != null && !U.tooltip.root.contains(I.target) && document.activeElement !== U.tooltip.textbox && !U.quill.hasFocus() && U.tooltip.hide(), U.pickers != null && U.pickers.forEach(function(
|
|
15283
|
-
|
|
15284
|
+
U.tooltip != null && !U.tooltip.root.contains(I.target) && document.activeElement !== U.tooltip.textbox && !U.quill.hasFocus() && U.tooltip.hide(), U.pickers != null && U.pickers.forEach(function(L) {
|
|
15285
|
+
L.container.contains(I.target) || L.close();
|
|
15284
15286
|
});
|
|
15285
15287
|
};
|
|
15286
15288
|
return ne.emitter.listenDOM("click", document.body, ee), U;
|
|
15287
15289
|
}
|
|
15288
|
-
return l(
|
|
15290
|
+
return l(V, [{
|
|
15289
15291
|
key: "addModule",
|
|
15290
15292
|
value: function(Z) {
|
|
15291
|
-
var U = a(
|
|
15293
|
+
var U = a(V.prototype.__proto__ || Object.getPrototypeOf(V.prototype), "addModule", this).call(this, Z);
|
|
15292
15294
|
return Z === "toolbar" && this.extendToolbar(U), U;
|
|
15293
15295
|
}
|
|
15294
15296
|
}, {
|
|
@@ -15303,8 +15305,8 @@ var yo = {}, vm = {
|
|
|
15303
15305
|
else if (typeof U[I] == "string")
|
|
15304
15306
|
ee.innerHTML = U[I];
|
|
15305
15307
|
else {
|
|
15306
|
-
var
|
|
15307
|
-
|
|
15308
|
+
var L = ee.value || "";
|
|
15309
|
+
L != null && U[I][L] && (ee.innerHTML = U[I][L]);
|
|
15308
15310
|
}
|
|
15309
15311
|
});
|
|
15310
15312
|
});
|
|
@@ -15315,21 +15317,21 @@ var yo = {}, vm = {
|
|
|
15315
15317
|
var ee = this;
|
|
15316
15318
|
this.pickers = Z.map(function(I) {
|
|
15317
15319
|
if (I.classList.contains("ql-align"))
|
|
15318
|
-
return I.querySelector("option") == null &&
|
|
15320
|
+
return I.querySelector("option") == null && C(I, N), new m.default(I, U.align);
|
|
15319
15321
|
if (I.classList.contains("ql-background") || I.classList.contains("ql-color")) {
|
|
15320
|
-
var
|
|
15321
|
-
return I.querySelector("option") == null &&
|
|
15322
|
+
var L = I.classList.contains("ql-background") ? "background" : "color";
|
|
15323
|
+
return I.querySelector("option") == null && C(I, M, L === "background" ? "#ffffff" : "#000000"), new t.default(I, U[L]);
|
|
15322
15324
|
} else
|
|
15323
|
-
return I.querySelector("option") == null && (I.classList.contains("ql-font") ?
|
|
15325
|
+
return I.querySelector("option") == null && (I.classList.contains("ql-font") ? C(I, q) : I.classList.contains("ql-header") ? C(I, K) : I.classList.contains("ql-size") && C(I, G)), new A.default(I);
|
|
15324
15326
|
});
|
|
15325
15327
|
var W = function() {
|
|
15326
|
-
ee.pickers.forEach(function(
|
|
15327
|
-
|
|
15328
|
+
ee.pickers.forEach(function(L) {
|
|
15329
|
+
L.update();
|
|
15328
15330
|
});
|
|
15329
15331
|
};
|
|
15330
15332
|
this.quill.on(s.default.events.EDITOR_CHANGE, W);
|
|
15331
15333
|
}
|
|
15332
|
-
}]),
|
|
15334
|
+
}]), V;
|
|
15333
15335
|
}(h.default);
|
|
15334
15336
|
le.DEFAULTS = (0, p.default)(!0, {}, h.default.DEFAULTS, {
|
|
15335
15337
|
modules: {
|
|
@@ -15339,13 +15341,13 @@ var yo = {}, vm = {
|
|
|
15339
15341
|
this.quill.theme.tooltip.edit("formula");
|
|
15340
15342
|
},
|
|
15341
15343
|
image: function() {
|
|
15342
|
-
var
|
|
15344
|
+
var V = this, ne = this.container.querySelector("input.ql-image[type=file]");
|
|
15343
15345
|
ne == null && (ne = document.createElement("input"), ne.setAttribute("type", "file"), ne.setAttribute("accept", "image/png, image/gif, image/jpeg, image/bmp, image/x-icon"), ne.classList.add("ql-image"), ne.addEventListener("change", function() {
|
|
15344
15346
|
if (ne.files != null && ne.files[0] != null) {
|
|
15345
15347
|
var Z = new FileReader();
|
|
15346
15348
|
Z.onload = function(U) {
|
|
15347
|
-
var ee =
|
|
15348
|
-
|
|
15349
|
+
var ee = V.quill.getSelection(!0);
|
|
15350
|
+
V.quill.updateContents(new c.default().retain(ee.index).delete(ee.length).insert({ image: U.target.result }), s.default.sources.USER), V.quill.setSelection(ee.index + 1, s.default.sources.SILENT), ne.value = "";
|
|
15349
15351
|
}, Z.readAsDataURL(ne.files[0]);
|
|
15350
15352
|
}
|
|
15351
15353
|
}), this.container.appendChild(ne)), ne.click();
|
|
@@ -15357,14 +15359,14 @@ var yo = {}, vm = {
|
|
|
15357
15359
|
}
|
|
15358
15360
|
}
|
|
15359
15361
|
});
|
|
15360
|
-
var
|
|
15361
|
-
T(
|
|
15362
|
-
function
|
|
15363
|
-
b(this,
|
|
15364
|
-
var U = S(this, (
|
|
15362
|
+
var H = function(D) {
|
|
15363
|
+
T(V, D);
|
|
15364
|
+
function V(ne, Z) {
|
|
15365
|
+
b(this, V);
|
|
15366
|
+
var U = S(this, (V.__proto__ || Object.getPrototypeOf(V)).call(this, ne, Z));
|
|
15365
15367
|
return U.textbox = U.root.querySelector('input[type="text"]'), U.listen(), U;
|
|
15366
15368
|
}
|
|
15367
|
-
return l(
|
|
15369
|
+
return l(V, [{
|
|
15368
15370
|
key: "listen",
|
|
15369
15371
|
value: function() {
|
|
15370
15372
|
var Z = this;
|
|
@@ -15414,20 +15416,20 @@ var yo = {}, vm = {
|
|
|
15414
15416
|
}
|
|
15415
15417
|
this.textbox.value = "", this.hide();
|
|
15416
15418
|
}
|
|
15417
|
-
}]),
|
|
15419
|
+
}]), V;
|
|
15418
15420
|
}(_.default);
|
|
15419
15421
|
function P(D) {
|
|
15420
|
-
var
|
|
15421
|
-
return
|
|
15422
|
+
var V = D.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || D.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
|
|
15423
|
+
return V ? (V[1] || "https") + "://www.youtube.com/embed/" + V[2] + "?showinfo=0" : (V = D.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (V[1] || "https") + "://player.vimeo.com/video/" + V[2] + "/" : D;
|
|
15422
15424
|
}
|
|
15423
|
-
function
|
|
15425
|
+
function C(D, V) {
|
|
15424
15426
|
var ne = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
15425
|
-
|
|
15427
|
+
V.forEach(function(Z) {
|
|
15426
15428
|
var U = document.createElement("option");
|
|
15427
15429
|
Z === ne ? U.setAttribute("selected", "selected") : U.setAttribute("value", Z), D.appendChild(U);
|
|
15428
15430
|
});
|
|
15429
15431
|
}
|
|
15430
|
-
n.BaseTooltip =
|
|
15432
|
+
n.BaseTooltip = H, n.default = le;
|
|
15431
15433
|
},
|
|
15432
15434
|
function(r, n, i) {
|
|
15433
15435
|
Object.defineProperty(n, "__esModule", { value: !0 });
|
|
@@ -15826,40 +15828,40 @@ var yo = {}, vm = {
|
|
|
15826
15828
|
for (var A = m.length, E = O.length, _ = Math.ceil((A + E) / 2), x = _, b = 2 * _, S = new Array(b), T = new Array(b), N = 0; N < b; N++)
|
|
15827
15829
|
S[N] = -1, T[N] = -1;
|
|
15828
15830
|
S[x + 1] = 0, T[x + 1] = 0;
|
|
15829
|
-
for (var M = A - E, q = M % 2 != 0, K = 0, G = 0, le = 0,
|
|
15830
|
-
for (var
|
|
15831
|
-
var D = x +
|
|
15832
|
-
|
|
15833
|
-
for (var ne =
|
|
15834
|
-
|
|
15835
|
-
if (S[D] =
|
|
15831
|
+
for (var M = A - E, q = M % 2 != 0, K = 0, G = 0, le = 0, H = 0, P = 0; P < _; P++) {
|
|
15832
|
+
for (var C = -P + K; C <= P - G; C += 2) {
|
|
15833
|
+
var D = x + C, V;
|
|
15834
|
+
C == -P || C != P && S[D - 1] < S[D + 1] ? V = S[D + 1] : V = S[D - 1] + 1;
|
|
15835
|
+
for (var ne = V - C; V < A && ne < E && m.charAt(V) == O.charAt(ne); )
|
|
15836
|
+
V++, ne++;
|
|
15837
|
+
if (S[D] = V, V > A)
|
|
15836
15838
|
G += 2;
|
|
15837
15839
|
else if (ne > E)
|
|
15838
15840
|
K += 2;
|
|
15839
15841
|
else if (q) {
|
|
15840
|
-
var Z = x + M -
|
|
15842
|
+
var Z = x + M - C;
|
|
15841
15843
|
if (Z >= 0 && Z < b && T[Z] != -1) {
|
|
15842
15844
|
var U = A - T[Z];
|
|
15843
|
-
if (
|
|
15844
|
-
return c(m, O,
|
|
15845
|
+
if (V >= U)
|
|
15846
|
+
return c(m, O, V, ne);
|
|
15845
15847
|
}
|
|
15846
15848
|
}
|
|
15847
15849
|
}
|
|
15848
|
-
for (var ee = -P + le; ee <= P -
|
|
15850
|
+
for (var ee = -P + le; ee <= P - H; ee += 2) {
|
|
15849
15851
|
var Z = x + ee, U;
|
|
15850
15852
|
ee == -P || ee != P && T[Z - 1] < T[Z + 1] ? U = T[Z + 1] : U = T[Z - 1] + 1;
|
|
15851
15853
|
for (var W = U - ee; U < A && W < E && m.charAt(A - U - 1) == O.charAt(E - W - 1); )
|
|
15852
15854
|
U++, W++;
|
|
15853
15855
|
if (T[Z] = U, U > A)
|
|
15854
|
-
|
|
15856
|
+
H += 2;
|
|
15855
15857
|
else if (W > E)
|
|
15856
15858
|
le += 2;
|
|
15857
15859
|
else if (!q) {
|
|
15858
15860
|
var D = x + M - ee;
|
|
15859
15861
|
if (D >= 0 && D < b && S[D] != -1) {
|
|
15860
|
-
var
|
|
15861
|
-
if (U = A - U,
|
|
15862
|
-
return c(m, O,
|
|
15862
|
+
var V = S[D], ne = x + V - D;
|
|
15863
|
+
if (U = A - U, V >= U)
|
|
15864
|
+
return c(m, O, V, ne);
|
|
15863
15865
|
}
|
|
15864
15866
|
}
|
|
15865
15867
|
}
|
|
@@ -15888,19 +15890,19 @@ var yo = {}, vm = {
|
|
|
15888
15890
|
var A = m.length > O.length ? m : O, E = m.length > O.length ? O : m;
|
|
15889
15891
|
if (A.length < 4 || E.length * 2 < A.length)
|
|
15890
15892
|
return null;
|
|
15891
|
-
function _(G, le,
|
|
15892
|
-
for (var P = G.substring(
|
|
15893
|
+
function _(G, le, H) {
|
|
15894
|
+
for (var P = G.substring(H, H + Math.floor(G.length / 4)), C = -1, D = "", V, ne, Z, U; (C = le.indexOf(P, C + 1)) != -1; ) {
|
|
15893
15895
|
var ee = f(
|
|
15894
|
-
G.substring(
|
|
15895
|
-
le.substring(
|
|
15896
|
+
G.substring(H),
|
|
15897
|
+
le.substring(C)
|
|
15896
15898
|
), W = s(
|
|
15897
|
-
G.substring(0,
|
|
15898
|
-
le.substring(0,
|
|
15899
|
+
G.substring(0, H),
|
|
15900
|
+
le.substring(0, C)
|
|
15899
15901
|
);
|
|
15900
|
-
D.length < W + ee && (D = le.substring(
|
|
15902
|
+
D.length < W + ee && (D = le.substring(C - W, C) + le.substring(C, C + ee), V = G.substring(0, H - W), ne = G.substring(H + ee), Z = le.substring(0, C - W), U = le.substring(C + ee));
|
|
15901
15903
|
}
|
|
15902
15904
|
return D.length * 2 >= G.length ? [
|
|
15903
|
-
|
|
15905
|
+
V,
|
|
15904
15906
|
ne,
|
|
15905
15907
|
Z,
|
|
15906
15908
|
U,
|
|
@@ -16208,16 +16210,16 @@ var yo = {}, vm = {
|
|
|
16208
16210
|
throw new TypeError("Super expression must either be null or a function, not " + typeof ae);
|
|
16209
16211
|
oe.prototype = Object.create(ae && ae.prototype, { constructor: { value: oe, enumerable: !1, writable: !0, configurable: !0 } }), ae && (Object.setPrototypeOf ? Object.setPrototypeOf(oe, ae) : oe.__proto__ = ae);
|
|
16210
16212
|
}
|
|
16211
|
-
var G = (0, y.default)("quill:clipboard"), le = "__ql-matcher",
|
|
16213
|
+
var G = (0, y.default)("quill:clipboard"), le = "__ql-matcher", H = [[Node.TEXT_NODE, Oe], [Node.TEXT_NODE, se], ["br", z], [Node.ELEMENT_NODE, se], [Node.ELEMENT_NODE, L], [Node.ELEMENT_NODE, de], [Node.ELEMENT_NODE, I], [Node.ELEMENT_NODE, Ee], ["li", re], ["b", W.bind(W, "bold")], ["i", W.bind(W, "italic")], ["style", te]], P = [m.AlignAttribute, x.DirectionAttribute].reduce(function(oe, ae) {
|
|
16212
16214
|
return oe[ae.keyName] = ae, oe;
|
|
16213
|
-
}, {}),
|
|
16215
|
+
}, {}), C = [m.AlignStyle, O.BackgroundStyle, _.ColorStyle, x.DirectionStyle, b.FontStyle, S.SizeStyle].reduce(function(oe, ae) {
|
|
16214
16216
|
return oe[ae.keyName] = ae, oe;
|
|
16215
16217
|
}, {}), D = function(oe) {
|
|
16216
16218
|
K(ae, oe);
|
|
16217
16219
|
function ae(ye, be) {
|
|
16218
16220
|
M(this, ae);
|
|
16219
16221
|
var fe = q(this, (ae.__proto__ || Object.getPrototypeOf(ae)).call(this, ye, be));
|
|
16220
|
-
return fe.quill.root.addEventListener("paste", fe.onPaste.bind(fe)), fe.container = fe.quill.addContainer("ql-clipboard"), fe.container.setAttribute("contenteditable", !0), fe.container.setAttribute("tabindex", -1), fe.matchers = [],
|
|
16222
|
+
return fe.quill.root.addEventListener("paste", fe.onPaste.bind(fe)), fe.container = fe.quill.addContainer("ql-clipboard"), fe.container.setAttribute("contenteditable", !0), fe.container.setAttribute("tabindex", -1), fe.matchers = [], H.concat(fe.options.matchers).forEach(function(Be) {
|
|
16221
16223
|
var Ie = a(Be, 2), Ne = Ie[0], tt = Ie[1];
|
|
16222
16224
|
!be.matchVisual && tt === de || fe.addMatcher(Ne, tt);
|
|
16223
16225
|
}), fe;
|
|
@@ -16290,9 +16292,9 @@ var yo = {}, vm = {
|
|
|
16290
16292
|
matchers: [],
|
|
16291
16293
|
matchVisual: !0
|
|
16292
16294
|
};
|
|
16293
|
-
function
|
|
16295
|
+
function V(oe, ae, ye) {
|
|
16294
16296
|
return (typeof ae > "u" ? "undefined" : l(ae)) === "object" ? Object.keys(ae).reduce(function(be, fe) {
|
|
16295
|
-
return
|
|
16297
|
+
return V(be, fe, ae[fe]);
|
|
16296
16298
|
}, oe) : oe.reduce(function(be, fe) {
|
|
16297
16299
|
return fe.attributes && fe.attributes[ae] ? be.push(fe) : be.insert(fe.insert, (0, d.default)({}, N({}, ae, ye), fe.attributes));
|
|
16298
16300
|
}, new f.default());
|
|
@@ -16331,16 +16333,16 @@ var yo = {}, vm = {
|
|
|
16331
16333
|
}, new f.default()) : new f.default();
|
|
16332
16334
|
}
|
|
16333
16335
|
function W(oe, ae, ye) {
|
|
16334
|
-
return
|
|
16336
|
+
return V(ye, oe, !0);
|
|
16335
16337
|
}
|
|
16336
16338
|
function I(oe, ae) {
|
|
16337
16339
|
var ye = v.default.Attributor.Attribute.keys(oe), be = v.default.Attributor.Class.keys(oe), fe = v.default.Attributor.Style.keys(oe), Be = {};
|
|
16338
16340
|
return ye.concat(be).concat(fe).forEach(function(Ie) {
|
|
16339
16341
|
var Ne = v.default.query(Ie, v.default.Scope.ATTRIBUTE);
|
|
16340
|
-
Ne != null && (Be[Ne.attrName] = Ne.value(oe), Be[Ne.attrName]) || (Ne = P[Ie], Ne != null && (Ne.attrName === Ie || Ne.keyName === Ie) && (Be[Ne.attrName] = Ne.value(oe) || void 0), Ne =
|
|
16341
|
-
}), Object.keys(Be).length > 0 && (ae =
|
|
16342
|
+
Ne != null && (Be[Ne.attrName] = Ne.value(oe), Be[Ne.attrName]) || (Ne = P[Ie], Ne != null && (Ne.attrName === Ie || Ne.keyName === Ie) && (Be[Ne.attrName] = Ne.value(oe) || void 0), Ne = C[Ie], Ne != null && (Ne.attrName === Ie || Ne.keyName === Ie) && (Ne = C[Ie], Be[Ne.attrName] = Ne.value(oe) || void 0));
|
|
16343
|
+
}), Object.keys(Be).length > 0 && (ae = V(ae, Be)), ae;
|
|
16342
16344
|
}
|
|
16343
|
-
function
|
|
16345
|
+
function L(oe, ae) {
|
|
16344
16346
|
var ye = v.default.query(oe);
|
|
16345
16347
|
if (ye == null)
|
|
16346
16348
|
return ae;
|
|
@@ -16348,7 +16350,7 @@ var yo = {}, vm = {
|
|
|
16348
16350
|
var be = {}, fe = ye.value(oe);
|
|
16349
16351
|
fe != null && (be[ye.blotName] = fe, ae = new f.default().insert(be, ye.formats(oe)));
|
|
16350
16352
|
} else
|
|
16351
|
-
typeof ye.formats == "function" && (ae =
|
|
16353
|
+
typeof ye.formats == "function" && (ae = V(ae, ye.blotName, ye.formats(oe)));
|
|
16352
16354
|
return ae;
|
|
16353
16355
|
}
|
|
16354
16356
|
function z(oe, ae) {
|
|
@@ -16385,7 +16387,7 @@ var yo = {}, vm = {
|
|
|
16385
16387
|
}
|
|
16386
16388
|
function Ee(oe, ae) {
|
|
16387
16389
|
var ye = {}, be = oe.style || {};
|
|
16388
|
-
return be.fontStyle && ne(oe).fontStyle === "italic" && (ye.italic = !0), be.fontWeight && (ne(oe).fontWeight.startsWith("bold") || parseInt(ne(oe).fontWeight) >= 700) && (ye.bold = !0), Object.keys(ye).length > 0 && (ae =
|
|
16390
|
+
return be.fontStyle && ne(oe).fontStyle === "italic" && (ye.italic = !0), be.fontWeight && (ne(oe).fontWeight.startsWith("bold") || parseInt(ne(oe).fontWeight) >= 700) && (ye.bold = !0), Object.keys(ye).length > 0 && (ae = V(ae, ye)), parseFloat(be.textIndent || 0) > 0 && (ae = new f.default().insert(" ").concat(ae)), ae;
|
|
16389
16391
|
}
|
|
16390
16392
|
function Oe(oe, ae) {
|
|
16391
16393
|
var ye = oe.data;
|
|
@@ -16401,7 +16403,7 @@ var yo = {}, vm = {
|
|
|
16401
16403
|
}
|
|
16402
16404
|
return ae.insert(ye);
|
|
16403
16405
|
}
|
|
16404
|
-
n.default = D, n.matchAttributor = I, n.matchBlot =
|
|
16406
|
+
n.default = D, n.matchAttributor = I, n.matchBlot = L, n.matchNewline = se, n.matchSpacing = de, n.matchText = Oe;
|
|
16405
16407
|
},
|
|
16406
16408
|
function(r, n, i) {
|
|
16407
16409
|
Object.defineProperty(n, "__esModule", {
|
|
@@ -16479,7 +16481,7 @@ var yo = {}, vm = {
|
|
|
16479
16481
|
function S(T, N) {
|
|
16480
16482
|
var M = [], q = !0, K = !1, G = void 0;
|
|
16481
16483
|
try {
|
|
16482
|
-
for (var le = T[Symbol.iterator](),
|
|
16484
|
+
for (var le = T[Symbol.iterator](), H; !(q = (H = le.next()).done) && (M.push(H.value), !(N && M.length === N)); q = !0)
|
|
16483
16485
|
;
|
|
16484
16486
|
} catch (P) {
|
|
16485
16487
|
K = !0, G = P;
|
|
@@ -16549,10 +16551,10 @@ var yo = {}, vm = {
|
|
|
16549
16551
|
q.addHandler(le, q.options.handlers[le]);
|
|
16550
16552
|
}), [].forEach.call(q.container.querySelectorAll("button, select"), function(le) {
|
|
16551
16553
|
q.attach(le);
|
|
16552
|
-
}), q.quill.on(s.default.events.EDITOR_CHANGE, function(le,
|
|
16553
|
-
le === s.default.events.SELECTION_CHANGE && q.update(
|
|
16554
|
+
}), q.quill.on(s.default.events.EDITOR_CHANGE, function(le, H) {
|
|
16555
|
+
le === s.default.events.SELECTION_CHANGE && q.update(H);
|
|
16554
16556
|
}), q.quill.on(s.default.events.SCROLL_OPTIMIZE, function() {
|
|
16555
|
-
var le = q.quill.selection.getRange(),
|
|
16557
|
+
var le = q.quill.selection.getRange(), H = l(le, 1), P = H[0];
|
|
16556
16558
|
q.update(P);
|
|
16557
16559
|
}), q;
|
|
16558
16560
|
}
|
|
@@ -16580,25 +16582,25 @@ var yo = {}, vm = {
|
|
|
16580
16582
|
}
|
|
16581
16583
|
var G = M.tagName === "SELECT" ? "change" : "click";
|
|
16582
16584
|
M.addEventListener(G, function(le) {
|
|
16583
|
-
var
|
|
16585
|
+
var H = void 0;
|
|
16584
16586
|
if (M.tagName === "SELECT") {
|
|
16585
16587
|
if (M.selectedIndex < 0)
|
|
16586
16588
|
return;
|
|
16587
16589
|
var P = M.options[M.selectedIndex];
|
|
16588
|
-
P.hasAttribute("selected") ?
|
|
16590
|
+
P.hasAttribute("selected") ? H = !1 : H = P.value || !1;
|
|
16589
16591
|
} else
|
|
16590
|
-
M.classList.contains("ql-active") ?
|
|
16592
|
+
M.classList.contains("ql-active") ? H = !1 : H = M.value || !M.hasAttribute("value"), le.preventDefault();
|
|
16591
16593
|
q.quill.focus();
|
|
16592
|
-
var
|
|
16594
|
+
var C = q.quill.selection.getRange(), D = l(C, 1), V = D[0];
|
|
16593
16595
|
if (q.handlers[K] != null)
|
|
16594
|
-
q.handlers[K].call(q,
|
|
16596
|
+
q.handlers[K].call(q, H);
|
|
16595
16597
|
else if (c.default.query(K).prototype instanceof c.default.Embed) {
|
|
16596
|
-
if (
|
|
16598
|
+
if (H = prompt("Enter " + K), !H)
|
|
16597
16599
|
return;
|
|
16598
|
-
q.quill.updateContents(new p.default().retain(
|
|
16600
|
+
q.quill.updateContents(new p.default().retain(V.index).delete(V.length).insert(t({}, K, H)), s.default.sources.USER);
|
|
16599
16601
|
} else
|
|
16600
|
-
q.quill.format(K,
|
|
16601
|
-
q.update(
|
|
16602
|
+
q.quill.format(K, H, s.default.sources.USER);
|
|
16603
|
+
q.update(V);
|
|
16602
16604
|
}), this.controls.push([K, M]);
|
|
16603
16605
|
}
|
|
16604
16606
|
}
|
|
@@ -16607,25 +16609,25 @@ var yo = {}, vm = {
|
|
|
16607
16609
|
value: function(M) {
|
|
16608
16610
|
var q = M == null ? {} : this.quill.getFormat(M);
|
|
16609
16611
|
this.controls.forEach(function(K) {
|
|
16610
|
-
var G = l(K, 2), le = G[0],
|
|
16611
|
-
if (
|
|
16612
|
+
var G = l(K, 2), le = G[0], H = G[1];
|
|
16613
|
+
if (H.tagName === "SELECT") {
|
|
16612
16614
|
var P = void 0;
|
|
16613
16615
|
if (M == null)
|
|
16614
16616
|
P = null;
|
|
16615
16617
|
else if (q[le] == null)
|
|
16616
|
-
P =
|
|
16618
|
+
P = H.querySelector("option[selected]");
|
|
16617
16619
|
else if (!Array.isArray(q[le])) {
|
|
16618
|
-
var
|
|
16619
|
-
typeof
|
|
16620
|
+
var C = q[le];
|
|
16621
|
+
typeof C == "string" && (C = C.replace(/\"/g, '\\"')), P = H.querySelector('option[value="' + C + '"]');
|
|
16620
16622
|
}
|
|
16621
|
-
P == null ? (
|
|
16623
|
+
P == null ? (H.value = "", H.selectedIndex = -1) : P.selected = !0;
|
|
16622
16624
|
} else if (M == null)
|
|
16623
|
-
|
|
16624
|
-
else if (
|
|
16625
|
-
var D = q[le] ===
|
|
16626
|
-
|
|
16625
|
+
H.classList.remove("ql-active");
|
|
16626
|
+
else if (H.hasAttribute("value")) {
|
|
16627
|
+
var D = q[le] === H.getAttribute("value") || q[le] != null && q[le].toString() === H.getAttribute("value") || q[le] == null && !H.getAttribute("value");
|
|
16628
|
+
H.classList.toggle("ql-active", D);
|
|
16627
16629
|
} else
|
|
16628
|
-
|
|
16630
|
+
H.classList.toggle("ql-active", q[le] != null);
|
|
16629
16631
|
});
|
|
16630
16632
|
}
|
|
16631
16633
|
}]), T;
|
|
@@ -16887,8 +16889,8 @@ var yo = {}, vm = {
|
|
|
16887
16889
|
try {
|
|
16888
16890
|
for (var G = S[Symbol.iterator](), le; !(M = (le = G.next()).done) && (N.push(le.value), !(T && N.length === T)); M = !0)
|
|
16889
16891
|
;
|
|
16890
|
-
} catch (
|
|
16891
|
-
q = !0, K =
|
|
16892
|
+
} catch (H) {
|
|
16893
|
+
q = !0, K = H;
|
|
16892
16894
|
} finally {
|
|
16893
16895
|
try {
|
|
16894
16896
|
!M && G.return && G.return();
|
|
@@ -17004,11 +17006,11 @@ var yo = {}, vm = {
|
|
|
17004
17006
|
}), this.quill.on(f.default.events.SELECTION_CHANGE, function(M, q, K) {
|
|
17005
17007
|
if (M != null) {
|
|
17006
17008
|
if (M.length === 0 && K === f.default.sources.USER) {
|
|
17007
|
-
var G = N.quill.scroll.descendant(w.default, M.index), le = l(G, 2),
|
|
17008
|
-
if (
|
|
17009
|
-
N.linkRange = new h.Range(M.index - P,
|
|
17010
|
-
var
|
|
17011
|
-
N.preview.textContent =
|
|
17009
|
+
var G = N.quill.scroll.descendant(w.default, M.index), le = l(G, 2), H = le[0], P = le[1];
|
|
17010
|
+
if (H != null) {
|
|
17011
|
+
N.linkRange = new h.Range(M.index - P, H.length());
|
|
17012
|
+
var C = w.default.formats(H.domNode);
|
|
17013
|
+
N.preview.textContent = C, N.preview.setAttribute("href", C), N.show(), N.position(N.quill.getBounds(N.linkRange));
|
|
17012
17014
|
return;
|
|
17013
17015
|
}
|
|
17014
17016
|
} else
|
|
@@ -17030,7 +17032,7 @@ var yo = {}, vm = {
|
|
|
17030
17032
|
Object.defineProperty(n, "__esModule", {
|
|
17031
17033
|
value: !0
|
|
17032
17034
|
});
|
|
17033
|
-
var l = i(29), a = fe(l), u = i(36), p = i(38), d = i(64), c = i(65), f = fe(c), s = i(66), v = fe(s), g = i(67), w = fe(g), h = i(37), y = i(26), t = i(39), k = i(40), m = i(56), O = fe(m), A = i(68), E = fe(A), _ = i(27), x = fe(_), b = i(69), S = fe(b), T = i(70), N = fe(T), M = i(71), q = fe(M), K = i(72), G = fe(K), le = i(73),
|
|
17035
|
+
var l = i(29), a = fe(l), u = i(36), p = i(38), d = i(64), c = i(65), f = fe(c), s = i(66), v = fe(s), g = i(67), w = fe(g), h = i(37), y = i(26), t = i(39), k = i(40), m = i(56), O = fe(m), A = i(68), E = fe(A), _ = i(27), x = fe(_), b = i(69), S = fe(b), T = i(70), N = fe(T), M = i(71), q = fe(M), K = i(72), G = fe(K), le = i(73), H = fe(le), P = i(13), C = fe(P), D = i(74), V = fe(D), ne = i(75), Z = fe(ne), U = i(57), ee = fe(U), W = i(41), I = fe(W), L = i(28), z = fe(L), te = i(59), re = fe(te), se = i(60), de = fe(se), Ee = i(61), Oe = fe(Ee), oe = i(108), ae = fe(oe), ye = i(62), be = fe(ye);
|
|
17034
17036
|
function fe(Be) {
|
|
17035
17037
|
return Be && Be.__esModule ? Be : { default: Be };
|
|
17036
17038
|
}
|
|
@@ -17057,7 +17059,7 @@ var yo = {}, vm = {
|
|
|
17057
17059
|
"formats/font": t.FontClass,
|
|
17058
17060
|
"formats/size": k.SizeClass,
|
|
17059
17061
|
"formats/blockquote": f.default,
|
|
17060
|
-
"formats/code-block":
|
|
17062
|
+
"formats/code-block": C.default,
|
|
17061
17063
|
"formats/header": v.default,
|
|
17062
17064
|
"formats/list": w.default,
|
|
17063
17065
|
"formats/bold": O.default,
|
|
@@ -17068,9 +17070,9 @@ var yo = {}, vm = {
|
|
|
17068
17070
|
"formats/strike": N.default,
|
|
17069
17071
|
"formats/underline": q.default,
|
|
17070
17072
|
"formats/image": G.default,
|
|
17071
|
-
"formats/video":
|
|
17073
|
+
"formats/video": H.default,
|
|
17072
17074
|
"formats/list/item": g.ListItem,
|
|
17073
|
-
"modules/formula":
|
|
17075
|
+
"modules/formula": V.default,
|
|
17074
17076
|
"modules/syntax": Z.default,
|
|
17075
17077
|
"modules/toolbar": ee.default,
|
|
17076
17078
|
"themes/bubble": ae.default,
|
|
@@ -18071,7 +18073,7 @@ var yo = {}, vm = {
|
|
|
18071
18073
|
if (K.length === 1)
|
|
18072
18074
|
S.position(S.quill.getBounds(N));
|
|
18073
18075
|
else {
|
|
18074
|
-
var G = K[K.length - 1], le = S.quill.getIndex(G),
|
|
18076
|
+
var G = K[K.length - 1], le = S.quill.getIndex(G), H = Math.min(G.length() - 1, N.index + N.length - le), P = S.quill.getBounds(new v.Range(le, H));
|
|
18075
18077
|
S.position(P);
|
|
18076
18078
|
}
|
|
18077
18079
|
} else
|
|
@@ -18385,9 +18387,9 @@ var km = ei, ir = {}, xm = {
|
|
|
18385
18387
|
}
|
|
18386
18388
|
};
|
|
18387
18389
|
(function(e, o) {
|
|
18388
|
-
var r = 200, n = "__lodash_hash_undefined__", i = 9007199254740991, l = "[object Arguments]", a = "[object Array]", u = "[object Boolean]", p = "[object Date]", d = "[object Error]", c = "[object Function]", f = "[object GeneratorFunction]", s = "[object Map]", v = "[object Number]", g = "[object Object]", w = "[object Promise]", h = "[object RegExp]", y = "[object Set]", t = "[object String]", k = "[object Symbol]", m = "[object WeakMap]", O = "[object ArrayBuffer]", A = "[object DataView]", E = "[object Float32Array]", _ = "[object Float64Array]", x = "[object Int8Array]", b = "[object Int16Array]", S = "[object Int32Array]", T = "[object Uint8Array]", N = "[object Uint8ClampedArray]", M = "[object Uint16Array]", q = "[object Uint32Array]", K = /[\\^$.*+?()[\]{}|]/g, G = /\w*$/, le = /^\[object .+?Constructor\]$/,
|
|
18390
|
+
var r = 200, n = "__lodash_hash_undefined__", i = 9007199254740991, l = "[object Arguments]", a = "[object Array]", u = "[object Boolean]", p = "[object Date]", d = "[object Error]", c = "[object Function]", f = "[object GeneratorFunction]", s = "[object Map]", v = "[object Number]", g = "[object Object]", w = "[object Promise]", h = "[object RegExp]", y = "[object Set]", t = "[object String]", k = "[object Symbol]", m = "[object WeakMap]", O = "[object ArrayBuffer]", A = "[object DataView]", E = "[object Float32Array]", _ = "[object Float64Array]", x = "[object Int8Array]", b = "[object Int16Array]", S = "[object Int32Array]", T = "[object Uint8Array]", N = "[object Uint8ClampedArray]", M = "[object Uint16Array]", q = "[object Uint32Array]", K = /[\\^$.*+?()[\]{}|]/g, G = /\w*$/, le = /^\[object .+?Constructor\]$/, H = /^(?:0|[1-9]\d*)$/, P = {};
|
|
18389
18391
|
P[l] = P[a] = P[O] = P[A] = P[u] = P[p] = P[E] = P[_] = P[x] = P[b] = P[S] = P[s] = P[v] = P[g] = P[h] = P[y] = P[t] = P[k] = P[T] = P[N] = P[M] = P[q] = !0, P[d] = P[c] = P[m] = !1;
|
|
18390
|
-
var
|
|
18392
|
+
var C = typeof nt == "object" && nt && nt.Object === Object && nt, D = typeof self == "object" && self && self.Object === Object && self, V = C || D || Function("return this")(), ne = o && !o.nodeType && o, Z = ne && !0 && e && !e.nodeType && e, U = Z && Z.exports === ne;
|
|
18391
18393
|
function ee(B, j) {
|
|
18392
18394
|
return B.set(j[0], j[1]), B;
|
|
18393
18395
|
}
|
|
@@ -18399,7 +18401,7 @@ var km = ei, ir = {}, xm = {
|
|
|
18399
18401
|
;
|
|
18400
18402
|
return B;
|
|
18401
18403
|
}
|
|
18402
|
-
function
|
|
18404
|
+
function L(B, j) {
|
|
18403
18405
|
for (var X = -1, ce = j.length, Ce = B.length; ++X < ce; )
|
|
18404
18406
|
B[Ce + X] = j[X];
|
|
18405
18407
|
return B;
|
|
@@ -18444,12 +18446,12 @@ var km = ei, ir = {}, xm = {
|
|
|
18444
18446
|
X[++j] = ce;
|
|
18445
18447
|
}), X;
|
|
18446
18448
|
}
|
|
18447
|
-
var oe = Array.prototype, ae = Function.prototype, ye = Object.prototype, be =
|
|
18449
|
+
var oe = Array.prototype, ae = Function.prototype, ye = Object.prototype, be = V["__core-js_shared__"], fe = function() {
|
|
18448
18450
|
var B = /[^.]+$/.exec(be && be.keys && be.keys.IE_PROTO || "");
|
|
18449
18451
|
return B ? "Symbol(src)_1." + B : "";
|
|
18450
18452
|
}(), Be = ae.toString, Ie = ye.hasOwnProperty, Ne = ye.toString, tt = RegExp(
|
|
18451
18453
|
"^" + Be.call(Ie).replace(K, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
18452
|
-
), Je = U ?
|
|
18454
|
+
), Je = U ? V.Buffer : void 0, ge = V.Symbol, Q = V.Uint8Array, ve = Ee(Object.getPrototypeOf, Object), _e = Object.create, Ae = ye.propertyIsEnumerable, St = oe.splice, Et = Object.getOwnPropertySymbols, pt = Je ? Je.isBuffer : void 0, zt = Ee(Object.keys, Object), Xt = Nt(V, "DataView"), $t = Nt(V, "Map"), De = Nt(V, "Promise"), Jt = Nt(V, "Set"), Vt = Nt(V, "WeakMap"), Tt = Nt(Object, "create"), Pn = vt(Xt), un = vt($t), $n = vt(De), Mn = vt(Jt), jn = vt(Vt), en = ge ? ge.prototype : void 0, ur = en ? en.valueOf : void 0;
|
|
18453
18455
|
function Ht(B) {
|
|
18454
18456
|
var j = -1, X = B ? B.length : 0;
|
|
18455
18457
|
for (this.clear(); ++j < X; ) {
|
|
@@ -18587,8 +18589,8 @@ var km = ei, ir = {}, xm = {
|
|
|
18587
18589
|
return Me;
|
|
18588
18590
|
if (!qt(B))
|
|
18589
18591
|
return B;
|
|
18590
|
-
var
|
|
18591
|
-
if (
|
|
18592
|
+
var Ye = Un(B);
|
|
18593
|
+
if (Ye) {
|
|
18592
18594
|
if (Me = Ii(B), !j)
|
|
18593
18595
|
return Ai(B, Me);
|
|
18594
18596
|
} else {
|
|
@@ -18610,7 +18612,7 @@ var km = ei, ir = {}, xm = {
|
|
|
18610
18612
|
var bt = Pe.get(B);
|
|
18611
18613
|
if (bt)
|
|
18612
18614
|
return bt;
|
|
18613
|
-
if (Pe.set(B, Me), !
|
|
18615
|
+
if (Pe.set(B, Me), !Ye)
|
|
18614
18616
|
var et = X ? Bi(B) : Vn(B);
|
|
18615
18617
|
return I(et || B, function(ft, it) {
|
|
18616
18618
|
et && (it = ft, ft = B[it]), fr(Me, it, Rn(ft, j, X, ce, it, B, Pe));
|
|
@@ -18621,7 +18623,7 @@ var km = ei, ir = {}, xm = {
|
|
|
18621
18623
|
}
|
|
18622
18624
|
function wi(B, j, X) {
|
|
18623
18625
|
var ce = j(B);
|
|
18624
|
-
return Un(B) ? ce :
|
|
18626
|
+
return Un(B) ? ce : L(ce, X(B));
|
|
18625
18627
|
}
|
|
18626
18628
|
function ki(B) {
|
|
18627
18629
|
return Ne.call(B);
|
|
@@ -18760,7 +18762,7 @@ var km = ei, ir = {}, xm = {
|
|
|
18760
18762
|
}
|
|
18761
18763
|
}
|
|
18762
18764
|
function Ci(B, j) {
|
|
18763
|
-
return j = j ?? i, !!j && (typeof B == "number" ||
|
|
18765
|
+
return j = j ?? i, !!j && (typeof B == "number" || H.test(B)) && B > -1 && B % 1 == 0 && B < j;
|
|
18764
18766
|
}
|
|
18765
18767
|
function Li(B) {
|
|
18766
18768
|
var j = typeof B;
|
|
@@ -18837,9 +18839,9 @@ var or = {}, _m = {
|
|
|
18837
18839
|
}
|
|
18838
18840
|
};
|
|
18839
18841
|
(function(e, o) {
|
|
18840
|
-
var r = 200, n = "__lodash_hash_undefined__", i = 1, l = 2, a = 9007199254740991, u = "[object Arguments]", p = "[object Array]", d = "[object AsyncFunction]", c = "[object Boolean]", f = "[object Date]", s = "[object Error]", v = "[object Function]", g = "[object GeneratorFunction]", w = "[object Map]", h = "[object Number]", y = "[object Null]", t = "[object Object]", k = "[object Promise]", m = "[object Proxy]", O = "[object RegExp]", A = "[object Set]", E = "[object String]", _ = "[object Symbol]", x = "[object Undefined]", b = "[object WeakMap]", S = "[object ArrayBuffer]", T = "[object DataView]", N = "[object Float32Array]", M = "[object Float64Array]", q = "[object Int8Array]", K = "[object Int16Array]", G = "[object Int32Array]", le = "[object Uint8Array]",
|
|
18841
|
-
Z[N] = Z[M] = Z[q] = Z[K] = Z[G] = Z[le] = Z[
|
|
18842
|
-
var U = typeof nt == "object" && nt && nt.Object === Object && nt, ee = typeof self == "object" && self && self.Object === Object && self, W = U || ee || Function("return this")(), I = o && !o.nodeType && o,
|
|
18842
|
+
var r = 200, n = "__lodash_hash_undefined__", i = 1, l = 2, a = 9007199254740991, u = "[object Arguments]", p = "[object Array]", d = "[object AsyncFunction]", c = "[object Boolean]", f = "[object Date]", s = "[object Error]", v = "[object Function]", g = "[object GeneratorFunction]", w = "[object Map]", h = "[object Number]", y = "[object Null]", t = "[object Object]", k = "[object Promise]", m = "[object Proxy]", O = "[object RegExp]", A = "[object Set]", E = "[object String]", _ = "[object Symbol]", x = "[object Undefined]", b = "[object WeakMap]", S = "[object ArrayBuffer]", T = "[object DataView]", N = "[object Float32Array]", M = "[object Float64Array]", q = "[object Int8Array]", K = "[object Int16Array]", G = "[object Int32Array]", le = "[object Uint8Array]", H = "[object Uint8ClampedArray]", P = "[object Uint16Array]", C = "[object Uint32Array]", D = /[\\^$.*+?()[\]{}|]/g, V = /^\[object .+?Constructor\]$/, ne = /^(?:0|[1-9]\d*)$/, Z = {};
|
|
18843
|
+
Z[N] = Z[M] = Z[q] = Z[K] = Z[G] = Z[le] = Z[H] = Z[P] = Z[C] = !0, Z[u] = Z[p] = Z[S] = Z[c] = Z[T] = Z[f] = Z[s] = Z[v] = Z[w] = Z[h] = Z[t] = Z[O] = Z[A] = Z[E] = Z[b] = !1;
|
|
18844
|
+
var U = typeof nt == "object" && nt && nt.Object === Object && nt, ee = typeof self == "object" && self && self.Object === Object && self, W = U || ee || Function("return this")(), I = o && !o.nodeType && o, L = I && !0 && e && !e.nodeType && e, z = L && L.exports === I, te = z && U.process, re = function() {
|
|
18843
18845
|
try {
|
|
18844
18846
|
return te && te.binding && te.binding("util");
|
|
18845
18847
|
} catch {
|
|
@@ -19032,9 +19034,9 @@ var or = {}, _m = {
|
|
|
19032
19034
|
}
|
|
19033
19035
|
Mt.prototype.clear = Rn, Mt.prototype.delete = bi, Mt.prototype.get = wi, Mt.prototype.has = ki, Mt.prototype.set = xi;
|
|
19034
19036
|
function _i(B, j) {
|
|
19035
|
-
var X = kn(B), ce = !X && mr(B), Ce = !X && !ce && xn(B), Te = !X && !ce && !Ce && br(B), Pe = X || ce || Ce || Te, Me = Pe ? oe(B.length, String) : [],
|
|
19037
|
+
var X = kn(B), ce = !X && mr(B), Ce = !X && !ce && xn(B), Te = !X && !ce && !Ce && br(B), Pe = X || ce || Ce || Te, Me = Pe ? oe(B.length, String) : [], Ye = Me.length;
|
|
19036
19038
|
for (var Fe in B)
|
|
19037
|
-
(j || ve.call(B, Fe)) && !(Pe && (Fe == "length" || Ce && (Fe == "offset" || Fe == "parent") || Te && (Fe == "buffer" || Fe == "byteLength" || Fe == "byteOffset") || Ni(Fe,
|
|
19039
|
+
(j || ve.call(B, Fe)) && !(Pe && (Fe == "length" || Ce && (Fe == "offset" || Fe == "parent") || Te && (Fe == "buffer" || Fe == "byteLength" || Fe == "byteOffset") || Ni(Fe, Ye))) && Me.push(Fe);
|
|
19038
19040
|
return Me;
|
|
19039
19041
|
}
|
|
19040
19042
|
function wn(B, j) {
|
|
@@ -19057,16 +19059,16 @@ var or = {}, _m = {
|
|
|
19057
19059
|
return B === j ? !0 : B == null || j == null || !qt(B) && !qt(j) ? B !== B && j !== j : Si(B, j, X, ce, hr, Ce);
|
|
19058
19060
|
}
|
|
19059
19061
|
function Si(B, j, X, ce, Ce, Te) {
|
|
19060
|
-
var Pe = kn(B), Me = kn(j),
|
|
19061
|
-
|
|
19062
|
-
var ct =
|
|
19062
|
+
var Pe = kn(B), Me = kn(j), Ye = Pe ? p : jt(B), Fe = Me ? p : jt(j);
|
|
19063
|
+
Ye = Ye == u ? t : Ye, Fe = Fe == u ? t : Fe;
|
|
19064
|
+
var ct = Ye == t, bt = Fe == t, et = Ye == Fe;
|
|
19063
19065
|
if (et && xn(B)) {
|
|
19064
19066
|
if (!xn(j))
|
|
19065
19067
|
return !1;
|
|
19066
19068
|
Pe = !0, ct = !1;
|
|
19067
19069
|
}
|
|
19068
19070
|
if (et && !ct)
|
|
19069
|
-
return Te || (Te = new Mt()), Pe || br(B) ? Fn(B, j, X, ce, Ce, Te) : Ti(B, j,
|
|
19071
|
+
return Te || (Te = new Mt()), Pe || br(B) ? Fn(B, j, X, ce, Ce, Te) : Ti(B, j, Ye, X, ce, Ce, Te);
|
|
19070
19072
|
if (!(X & i)) {
|
|
19071
19073
|
var ft = ct && ve.call(B, "__wrapped__"), it = bt && ve.call(j, "__wrapped__");
|
|
19072
19074
|
if (ft || it) {
|
|
@@ -19079,7 +19081,7 @@ var or = {}, _m = {
|
|
|
19079
19081
|
function Ei(B) {
|
|
19080
19082
|
if (!gr(B) || Li(B))
|
|
19081
19083
|
return !1;
|
|
19082
|
-
var j = yr(B) ? St :
|
|
19084
|
+
var j = yr(B) ? St : V;
|
|
19083
19085
|
return j.test(vt(B));
|
|
19084
19086
|
}
|
|
19085
19087
|
function Oi(B) {
|
|
@@ -19094,8 +19096,8 @@ var or = {}, _m = {
|
|
|
19094
19096
|
return j;
|
|
19095
19097
|
}
|
|
19096
19098
|
function Fn(B, j, X, ce, Ce, Te) {
|
|
19097
|
-
var Pe = X & i, Me = B.length,
|
|
19098
|
-
if (Me !=
|
|
19099
|
+
var Pe = X & i, Me = B.length, Ye = j.length;
|
|
19100
|
+
if (Me != Ye && !(Pe && Ye > Me))
|
|
19099
19101
|
return !1;
|
|
19100
19102
|
var Fe = Te.get(B);
|
|
19101
19103
|
if (Fe && Te.get(j))
|
|
@@ -19146,8 +19148,8 @@ var or = {}, _m = {
|
|
|
19146
19148
|
case w:
|
|
19147
19149
|
var Me = fe;
|
|
19148
19150
|
case A:
|
|
19149
|
-
var
|
|
19150
|
-
if (Me || (Me = Ie), B.size != j.size && !
|
|
19151
|
+
var Ye = ce & i;
|
|
19152
|
+
if (Me || (Me = Ie), B.size != j.size && !Ye)
|
|
19151
19153
|
return !1;
|
|
19152
19154
|
var Fe = Pe.get(B);
|
|
19153
19155
|
if (Fe)
|
|
@@ -19162,10 +19164,10 @@ var or = {}, _m = {
|
|
|
19162
19164
|
return !1;
|
|
19163
19165
|
}
|
|
19164
19166
|
function Bi(B, j, X, ce, Ce, Te) {
|
|
19165
|
-
var Pe = X & i, Me = fn(B),
|
|
19166
|
-
if (
|
|
19167
|
+
var Pe = X & i, Me = fn(B), Ye = Me.length, Fe = fn(j), ct = Fe.length;
|
|
19168
|
+
if (Ye != ct && !Pe)
|
|
19167
19169
|
return !1;
|
|
19168
|
-
for (var bt =
|
|
19170
|
+
for (var bt = Ye; bt--; ) {
|
|
19169
19171
|
var et = Me[bt];
|
|
19170
19172
|
if (!(Pe ? et in j : ve.call(j, et)))
|
|
19171
19173
|
return !1;
|
|
@@ -19175,7 +19177,7 @@ var or = {}, _m = {
|
|
|
19175
19177
|
return ft == j;
|
|
19176
19178
|
var it = !0;
|
|
19177
19179
|
Te.set(B, j), Te.set(j, B);
|
|
19178
|
-
for (var tn = Pe; ++bt <
|
|
19180
|
+
for (var tn = Pe; ++bt < Ye; ) {
|
|
19179
19181
|
et = Me[bt];
|
|
19180
19182
|
var Wt = B[et], dn = j[et];
|
|
19181
19183
|
if (ce)
|
|
@@ -19805,7 +19807,7 @@ const Nl = {
|
|
|
19805
19807
|
const S = r == null ? void 0 : r.clipboard.convert(x);
|
|
19806
19808
|
S && (r == null || r.setContents(S, b));
|
|
19807
19809
|
}, _ = () => {
|
|
19808
|
-
|
|
19810
|
+
We(() => {
|
|
19809
19811
|
var x;
|
|
19810
19812
|
!o.slots.toolbar && r && ((x = r.getModule("toolbar")) === null || x === void 0 || x.container.remove()), l();
|
|
19811
19813
|
});
|
|
@@ -19815,7 +19817,7 @@ const Nl = {
|
|
|
19815
19817
|
return;
|
|
19816
19818
|
p = x;
|
|
19817
19819
|
const b = r.getSelection();
|
|
19818
|
-
b &&
|
|
19820
|
+
b && We(() => r == null ? void 0 : r.setSelection(b)), t(x);
|
|
19819
19821
|
}), je(() => e.enable, (x) => {
|
|
19820
19822
|
r && r.enable(x);
|
|
19821
19823
|
}), {
|
|
@@ -20266,7 +20268,7 @@ const ry = /* @__PURE__ */ ht(Qm, [["render", ny]]), iy = { class: "inline-flex
|
|
|
20266
20268
|
"relative inline-flex shrink-0 cursor-pointer items-center rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 ",
|
|
20267
20269
|
$(l)
|
|
20268
20270
|
]),
|
|
20269
|
-
style:
|
|
20271
|
+
style: Ze({
|
|
20270
20272
|
width: $(c) + "px",
|
|
20271
20273
|
height: $(p) + "px"
|
|
20272
20274
|
}),
|
|
@@ -20275,7 +20277,7 @@ const ry = /* @__PURE__ */ ht(Qm, [["render", ny]]), iy = { class: "inline-flex
|
|
|
20275
20277
|
default: pe(() => [
|
|
20276
20278
|
R("span", {
|
|
20277
20279
|
"aria-hidden": "true",
|
|
20278
|
-
style:
|
|
20280
|
+
style: Ze({
|
|
20279
20281
|
height: $(a) + "px",
|
|
20280
20282
|
width: $(a) + "px",
|
|
20281
20283
|
transform: `translateX(${$(f)}px)`
|
|
@@ -20488,7 +20490,7 @@ const vy = /* @__PURE__ */ ht(uy, [["render", py]]), my = { role: "presentation"
|
|
|
20488
20490
|
ref_key: "wrapper",
|
|
20489
20491
|
ref: c,
|
|
20490
20492
|
class: "wrapper grid",
|
|
20491
|
-
style:
|
|
20493
|
+
style: Ze({ maxHeight: e.maxHeight + "px" })
|
|
20492
20494
|
}, [
|
|
20493
20495
|
R("textarea", {
|
|
20494
20496
|
value: e.modelValue,
|
|
@@ -20500,7 +20502,7 @@ const vy = /* @__PURE__ */ ht(uy, [["render", py]]), my = { role: "presentation"
|
|
|
20500
20502
|
n,
|
|
20501
20503
|
$(p) ? "border-red-500" : "border-slate-300"
|
|
20502
20504
|
]]),
|
|
20503
|
-
style:
|
|
20505
|
+
style: Ze({ maxHeight: e.maxHeight + "px", gridArea: i }),
|
|
20504
20506
|
rows: e.rows,
|
|
20505
20507
|
onInput: s,
|
|
20506
20508
|
onKeyup: g,
|
|
@@ -20512,7 +20514,7 @@ const vy = /* @__PURE__ */ ht(uy, [["render", py]]), my = { role: "presentation"
|
|
|
20512
20514
|
n,
|
|
20513
20515
|
$(p) ? "border-red-500" : "border-slate-300"
|
|
20514
20516
|
]]),
|
|
20515
|
-
style:
|
|
20517
|
+
style: Ze({
|
|
20516
20518
|
content: l,
|
|
20517
20519
|
maxHeight: e.maxHeight + "px",
|
|
20518
20520
|
gridArea: i
|