reacthub-pixitweenjs 0.2.19 → 0.2.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +687 -692
- package/dist/index.umd.js +41 -41
- package/dist/utils/PixiTransformer.d.ts +1 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as ot from "react";
|
|
2
2
|
import Wl, { useState as le, useRef as dt, useLayoutEffect as Yl, useCallback as Pe, useEffect as Pr, useContext as yi, useReducer as Xh } from "react";
|
|
3
3
|
import { PixiComponent as Wh, applyDefaultProps as Yh, withFilters as sa, Container as Ft, Sprite as aa, useApp as Kl, AnimatedSprite as Kh, Graphics as Zh, Text as Qh } from "@pixi/react";
|
|
4
4
|
import _e from "gsap";
|
|
@@ -535,7 +535,7 @@ ti.exports;
|
|
|
535
535
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
536
536
|
"invalid-input": "Invalid input"
|
|
537
537
|
}, v = l - h, x = Math.floor, S = String.fromCharCode, w;
|
|
538
|
-
function
|
|
538
|
+
function T(k) {
|
|
539
539
|
throw new RangeError(_[k]);
|
|
540
540
|
}
|
|
541
541
|
function N(k, I) {
|
|
@@ -549,7 +549,7 @@ ti.exports;
|
|
|
549
549
|
var j = k.split("."), G = N(j, I).join(".");
|
|
550
550
|
return L + G;
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function E(k) {
|
|
553
553
|
for (var I = [], P = 0, L = k.length, j, G; P < L; )
|
|
554
554
|
j = k.charCodeAt(P++), j >= 55296 && j <= 56319 && P < L ? (G = k.charCodeAt(P++), (G & 64512) == 56320 ? I.push(((j & 1023) << 10) + (G & 1023) + 65536) : (I.push(j), P--)) : I.push(j);
|
|
555
555
|
return I;
|
|
@@ -573,30 +573,30 @@ ti.exports;
|
|
|
573
573
|
return x(L + (v + 1) * k / (k + f));
|
|
574
574
|
}
|
|
575
575
|
function U(k) {
|
|
576
|
-
var I = [], P = k.length, L, j = 0, G = p, M = d, B, q, H, X, K, tt, rt,
|
|
576
|
+
var I = [], P = k.length, L, j = 0, G = p, M = d, B, q, H, X, K, tt, rt, at, ut;
|
|
577
577
|
for (B = k.lastIndexOf(m), B < 0 && (B = 0), q = 0; q < B; ++q)
|
|
578
|
-
k.charCodeAt(q) >= 128 &&
|
|
578
|
+
k.charCodeAt(q) >= 128 && T("not-basic"), I.push(k.charCodeAt(q));
|
|
579
579
|
for (H = B > 0 ? B + 1 : 0; H < P; ) {
|
|
580
|
-
for (X = j, K = 1, tt = l; H >= P &&
|
|
581
|
-
ut = l -
|
|
582
|
-
L = I.length + 1, M = F(j - X, L, X == 0), x(j / L) > o - G &&
|
|
580
|
+
for (X = j, K = 1, tt = l; H >= P && T("invalid-input"), rt = R(k.charCodeAt(H++)), (rt >= l || rt > x((o - j) / K)) && T("overflow"), j += rt * K, at = tt <= M ? h : tt >= M + c ? c : tt - M, !(rt < at); tt += l)
|
|
581
|
+
ut = l - at, K > x(o / ut) && T("overflow"), K *= ut;
|
|
582
|
+
L = I.length + 1, M = F(j - X, L, X == 0), x(j / L) > o - G && T("overflow"), G += x(j / L), j %= L, I.splice(j++, 0, G);
|
|
583
583
|
}
|
|
584
584
|
return O(I);
|
|
585
585
|
}
|
|
586
586
|
function D(k) {
|
|
587
|
-
var I, P, L, j, G, M, B, q, H, X, K, tt = [], rt,
|
|
588
|
-
for (k =
|
|
587
|
+
var I, P, L, j, G, M, B, q, H, X, K, tt = [], rt, at, ut, It;
|
|
588
|
+
for (k = E(k), rt = k.length, I = p, P = 0, G = d, M = 0; M < rt; ++M)
|
|
589
589
|
K = k[M], K < 128 && tt.push(S(K));
|
|
590
590
|
for (L = j = tt.length, j && tt.push(m); L < rt; ) {
|
|
591
591
|
for (B = o, M = 0; M < rt; ++M)
|
|
592
592
|
K = k[M], K >= I && K < B && (B = K);
|
|
593
|
-
for (
|
|
594
|
-
if (K = k[M], K < I && ++P > o &&
|
|
593
|
+
for (at = L + 1, B - I > x((o - P) / at) && T("overflow"), P += (B - I) * at, I = B, M = 0; M < rt; ++M)
|
|
594
|
+
if (K = k[M], K < I && ++P > o && T("overflow"), K == I) {
|
|
595
595
|
for (q = P, H = l; X = H <= G ? h : H >= G + c ? c : H - G, !(q < X); H += l)
|
|
596
596
|
It = q - X, ut = l - X, tt.push(
|
|
597
597
|
S(C(X + It % ut, 0))
|
|
598
598
|
), q = x(It / ut);
|
|
599
|
-
tt.push(S(C(q, 0))), G = F(P,
|
|
599
|
+
tt.push(S(C(q, 0))), G = F(P, at, L == j), P = 0, ++L;
|
|
600
600
|
}
|
|
601
601
|
++P, ++I;
|
|
602
602
|
}
|
|
@@ -627,7 +627,7 @@ ti.exports;
|
|
|
627
627
|
* @type Object
|
|
628
628
|
*/
|
|
629
629
|
ucs2: {
|
|
630
|
-
decode:
|
|
630
|
+
decode: E,
|
|
631
631
|
encode: O
|
|
632
632
|
},
|
|
633
633
|
decode: U,
|
|
@@ -1075,7 +1075,7 @@ var ks = sf, fo = ks.custom, po = cu(fo) ? fo : null, yf = function e(t, r, n, i
|
|
|
1075
1075
|
if (bf(t))
|
|
1076
1076
|
return qr(u(String(t)));
|
|
1077
1077
|
if (!vf(t) && !yo(t)) {
|
|
1078
|
-
var w = En(t, u),
|
|
1078
|
+
var w = En(t, u), T = ho ? ho(t) === Object.prototype : t instanceof Object || t.constructor === Object, N = t instanceof Object ? "" : "null prototype", A = !T && Vt && Object(t) === t && Vt in t ? da.call($e(t), 8, -1) : N ? "Object" : "", E = T || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", O = E + (A || N ? "[" + ge.call(lo.call([], A || [], N || []), ": ") + "] " : "");
|
|
1079
1079
|
return w.length === 0 ? O + "{}" : f ? O + "{" + Ms(w, f) + "}" : O + "{ " + ge.call(w, ", ") + " }";
|
|
1080
1080
|
}
|
|
1081
1081
|
return String(t);
|
|
@@ -1540,17 +1540,17 @@ var pa = ha, Lr = ef, Mf = yf, Lf = pa("%TypeError%"), Tn = pa("%WeakMap%", !0),
|
|
|
1540
1540
|
var w = [];
|
|
1541
1541
|
if (typeof y > "u")
|
|
1542
1542
|
return w;
|
|
1543
|
-
var
|
|
1543
|
+
var T;
|
|
1544
1544
|
if (n === "comma" && Ae(y))
|
|
1545
|
-
p && o && (y = qn.maybeMap(y, o)),
|
|
1545
|
+
p && o && (y = qn.maybeMap(y, o)), T = [{ value: y.length > 0 ? y.join(",") || null : void 0 }];
|
|
1546
1546
|
else if (Ae(l))
|
|
1547
|
-
|
|
1547
|
+
T = l;
|
|
1548
1548
|
else {
|
|
1549
1549
|
var N = Object.keys(y);
|
|
1550
|
-
|
|
1550
|
+
T = h ? N.sort(h) : N;
|
|
1551
1551
|
}
|
|
1552
|
-
for (var A = i && Ae(y) && y.length === 1 ? r + "[]" : r,
|
|
1553
|
-
var O = E
|
|
1552
|
+
for (var A = i && Ae(y) && y.length === 1 ? r + "[]" : r, E = 0; E < T.length; ++E) {
|
|
1553
|
+
var O = T[E], R = typeof O == "object" && typeof O.value < "u" ? O.value : y[O];
|
|
1554
1554
|
if (!(a && R === null)) {
|
|
1555
1555
|
var C = Ae(y) ? typeof n == "function" ? n(A, O) : A : A + (c ? "." + O : "[" + O + "]");
|
|
1556
1556
|
g.set(t, _);
|
|
@@ -1847,15 +1847,15 @@ he.prototype.parse = function(e, t, r) {
|
|
|
1847
1847
|
for (var x = "", S = 0, w = v.length; S < w; S++)
|
|
1848
1848
|
v.charCodeAt(S) > 127 ? x += "x" : x += v[S];
|
|
1849
1849
|
if (!x.match(xo)) {
|
|
1850
|
-
var
|
|
1851
|
-
A && (
|
|
1850
|
+
var T = b.slice(0, d), N = b.slice(d + 1), A = v.match(kd);
|
|
1851
|
+
A && (T.push(A[1]), N.unshift(A[2])), N.length && (o = "/" + N.join(".") + o), this.hostname = T.join(".");
|
|
1852
1852
|
break;
|
|
1853
1853
|
}
|
|
1854
1854
|
}
|
|
1855
1855
|
}
|
|
1856
1856
|
this.hostname.length > Cd ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), y || (this.hostname = Ad.toASCII(this.hostname));
|
|
1857
|
-
var
|
|
1858
|
-
this.host = O +
|
|
1857
|
+
var E = this.port ? ":" + this.port : "", O = this.hostname || "";
|
|
1858
|
+
this.host = O + E, this.href += this.host, y && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), o[0] !== "/" && (o = "/" + o));
|
|
1859
1859
|
}
|
|
1860
1860
|
if (!Pd[c])
|
|
1861
1861
|
for (var d = 0, _ = Fs.length; d < _; d++) {
|
|
@@ -1869,8 +1869,8 @@ he.prototype.parse = function(e, t, r) {
|
|
|
1869
1869
|
F !== -1 && (this.hash = o.substr(F), o = o.slice(0, F));
|
|
1870
1870
|
var U = o.indexOf("?");
|
|
1871
1871
|
if (U !== -1 ? (this.search = o.substr(U), this.query = o.substr(U + 1), t && (this.query = Ds.parse(this.query)), o = o.slice(0, U)) : t && (this.search = "", this.query = {}), o && (this.pathname = o), Tr[c] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
|
|
1872
|
-
var
|
|
1873
|
-
this.path =
|
|
1872
|
+
var E = this.pathname || "", D = this.search || "";
|
|
1873
|
+
this.path = E + D;
|
|
1874
1874
|
}
|
|
1875
1875
|
return this.href = this.format(), this;
|
|
1876
1876
|
};
|
|
@@ -1946,10 +1946,10 @@ he.prototype.resolveObject = function(e) {
|
|
|
1946
1946
|
}
|
|
1947
1947
|
if (!b.length)
|
|
1948
1948
|
return r.pathname = null, r.search ? r.path = "/" + r.search : r.path = null, r.href = r.format(), r;
|
|
1949
|
-
for (var S = b.slice(-1)[0], w = (r.host || e.host || b.length > 1) && (S === "." || S === "..") || S === "",
|
|
1950
|
-
S = b[N], S === "." ? b.splice(N, 1) : S === ".." ? (b.splice(N, 1),
|
|
1949
|
+
for (var S = b.slice(-1)[0], w = (r.host || e.host || b.length > 1) && (S === "." || S === "..") || S === "", T = 0, N = b.length; N >= 0; N--)
|
|
1950
|
+
S = b[N], S === "." ? b.splice(N, 1) : S === ".." ? (b.splice(N, 1), T++) : T && (b.splice(N, 1), T--);
|
|
1951
1951
|
if (!g && !y)
|
|
1952
|
-
for (;
|
|
1952
|
+
for (; T--; T)
|
|
1953
1953
|
b.unshift("..");
|
|
1954
1954
|
g && b[0] !== "" && (!b[0] || b[0].charAt(0) !== "/") && b.unshift(""), w && b.join("/").substr(-1) !== "/" && b.push("");
|
|
1955
1955
|
var A = b[0] === "" || b[0] && b[0].charAt(0) === "/";
|
|
@@ -3074,8 +3074,8 @@ class Tt {
|
|
|
3074
3074
|
}
|
|
3075
3075
|
intersects(t, r) {
|
|
3076
3076
|
if (!r) {
|
|
3077
|
-
const
|
|
3078
|
-
if ((this.right > t.right ? t.right : this.right) <=
|
|
3077
|
+
const T = this.x < t.x ? t.x : this.x;
|
|
3078
|
+
if ((this.right > t.right ? t.right : this.right) <= T)
|
|
3079
3079
|
return !1;
|
|
3080
3080
|
const A = this.y < t.y ? t.y : this.y;
|
|
3081
3081
|
return (this.bottom > t.bottom ? t.bottom : this.bottom) > A;
|
|
@@ -8695,12 +8695,12 @@ class Yo {
|
|
|
8695
8695
|
const o = a[a.length - 2], h = a[a.length - 1] - r, c = o - t, f = i - r, u = n - t, d = Math.abs(h * u - c * f);
|
|
8696
8696
|
if (d < 1e-8 || s === 0)
|
|
8697
8697
|
return (a[a.length - 2] !== t || a[a.length - 1] !== r) && a.push(t, r), null;
|
|
8698
|
-
const p = h * h + c * c, m = f * f + u * u, g = h * f + c * u, y = s * Math.sqrt(p) / d, b = s * Math.sqrt(m) / d, _ = y * g / p, v = b * g / m, x = y * u + b * c, S = y * f + b * h, w = c * (b + _),
|
|
8698
|
+
const p = h * h + c * c, m = f * f + u * u, g = h * f + c * u, y = s * Math.sqrt(p) / d, b = s * Math.sqrt(m) / d, _ = y * g / p, v = b * g / m, x = y * u + b * c, S = y * f + b * h, w = c * (b + _), T = h * (b + _), N = u * (y + v), A = f * (y + v), E = Math.atan2(T - S, w - x), O = Math.atan2(A - S, N - x);
|
|
8699
8699
|
return {
|
|
8700
8700
|
cx: x + t,
|
|
8701
8701
|
cy: S + r,
|
|
8702
8702
|
radius: s,
|
|
8703
|
-
startAngle:
|
|
8703
|
+
startAngle: E,
|
|
8704
8704
|
endAngle: O,
|
|
8705
8705
|
anticlockwise: c * f > u * h
|
|
8706
8706
|
};
|
|
@@ -8785,18 +8785,18 @@ function wy(e, t) {
|
|
|
8785
8785
|
const c = t.points, f = n.length / 2;
|
|
8786
8786
|
let u = n.length;
|
|
8787
8787
|
const d = c.length / 2, p = s.width / 2, m = p * p, g = s.miterLimit * s.miterLimit;
|
|
8788
|
-
let y = n[0], b = n[1], _ = n[2], v = n[3], x = 0, S = 0, w = -(b - v),
|
|
8789
|
-
w /=
|
|
8788
|
+
let y = n[0], b = n[1], _ = n[2], v = n[3], x = 0, S = 0, w = -(b - v), T = y - _, N = 0, A = 0, E = Math.sqrt(w * w + T * T);
|
|
8789
|
+
w /= E, T /= E, w *= p, T *= p;
|
|
8790
8790
|
const O = s.alignment, R = (1 - O) * 2, C = O * 2;
|
|
8791
|
-
l || (s.cap === Je.ROUND ? u += qe(y - w * (R - C) * 0.5, b -
|
|
8791
|
+
l || (s.cap === Je.ROUND ? u += qe(y - w * (R - C) * 0.5, b - T * (R - C) * 0.5, y - w * R, b - T * R, y + w * C, b + T * C, c, !0) + 2 : s.cap === Je.SQUARE && (u += Ko(y, b, w, T, R, C, !0, c))), c.push(y - w * R, b - T * R, y + w * C, b + T * C);
|
|
8792
8792
|
for (let D = 1; D < f - 1; ++D) {
|
|
8793
|
-
y = n[(D - 1) * 2], b = n[(D - 1) * 2 + 1], _ = n[D * 2], v = n[D * 2 + 1], x = n[(D + 1) * 2], S = n[(D + 1) * 2 + 1], w = -(b - v),
|
|
8793
|
+
y = n[(D - 1) * 2], b = n[(D - 1) * 2 + 1], _ = n[D * 2], v = n[D * 2 + 1], x = n[(D + 1) * 2], S = n[(D + 1) * 2 + 1], w = -(b - v), T = y - _, E = Math.sqrt(w * w + T * T), w /= E, T /= E, w *= p, T *= p, N = -(v - S), A = _ - x, E = Math.sqrt(N * N + A * A), N /= E, A /= E, N *= p, A *= p;
|
|
8794
8794
|
const z = _ - y, $ = b - v, k = _ - x, I = S - v, P = z * k + $ * I, L = $ * k - I * z, j = L < 0;
|
|
8795
8795
|
if (Math.abs(L) < 1e-3 * Math.abs(P)) {
|
|
8796
|
-
c.push(_ - w * R, v -
|
|
8796
|
+
c.push(_ - w * R, v - T * R, _ + w * C, v + T * C), P >= 0 && (s.join === se.ROUND ? u += qe(_, v, _ - w * R, v - T * R, _ - N * R, v - A * R, c, !1) + 4 : u += 2, c.push(_ - N * C, v - A * C, _ + N * R, v + A * R));
|
|
8797
8797
|
continue;
|
|
8798
8798
|
}
|
|
8799
|
-
const G = (-w + y) * (-
|
|
8799
|
+
const G = (-w + y) * (-T + v) - (-w + _) * (-T + b), M = (-N + x) * (-A + v) - (-N + _) * (-A + S), B = (z * M - k * G) / L, q = (I * G - $ * M) / L, H = (B - _) * (B - _) + (q - v) * (q - v), X = _ + (B - _) * R, K = v + (q - v) * R, tt = _ - (B - _) * C, rt = v - (q - v) * C, at = Math.min(z * z + $ * $, k * k + I * I), ut = j ? R : C, It = at + ut * ut * m, St = H <= It;
|
|
8800
8800
|
let V = s.join;
|
|
8801
8801
|
if (V === se.MITER && H / m > g && (V = se.BEVEL), St)
|
|
8802
8802
|
switch (V) {
|
|
@@ -8805,29 +8805,29 @@ function wy(e, t) {
|
|
|
8805
8805
|
break;
|
|
8806
8806
|
}
|
|
8807
8807
|
case se.BEVEL: {
|
|
8808
|
-
j ? c.push(X, K, _ + w * C, v +
|
|
8808
|
+
j ? c.push(X, K, _ + w * C, v + T * C, X, K, _ + N * C, v + A * C) : c.push(_ - w * R, v - T * R, tt, rt, _ - N * R, v - A * R, tt, rt), u += 2;
|
|
8809
8809
|
break;
|
|
8810
8810
|
}
|
|
8811
8811
|
case se.ROUND: {
|
|
8812
|
-
j ? (c.push(X, K, _ + w * C, v +
|
|
8812
|
+
j ? (c.push(X, K, _ + w * C, v + T * C), u += qe(_, v, _ + w * C, v + T * C, _ + N * C, v + A * C, c, !0) + 4, c.push(X, K, _ + N * C, v + A * C)) : (c.push(_ - w * R, v - T * R, tt, rt), u += qe(_, v, _ - w * R, v - T * R, _ - N * R, v - A * R, c, !1) + 4, c.push(_ - N * R, v - A * R, tt, rt));
|
|
8813
8813
|
break;
|
|
8814
8814
|
}
|
|
8815
8815
|
}
|
|
8816
8816
|
else {
|
|
8817
|
-
switch (c.push(_ - w * R, v -
|
|
8817
|
+
switch (c.push(_ - w * R, v - T * R, _ + w * C, v + T * C), V) {
|
|
8818
8818
|
case se.MITER: {
|
|
8819
8819
|
j ? c.push(tt, rt, tt, rt) : c.push(X, K, X, K), u += 2;
|
|
8820
8820
|
break;
|
|
8821
8821
|
}
|
|
8822
8822
|
case se.ROUND: {
|
|
8823
|
-
j ? u += qe(_, v, _ + w * C, v +
|
|
8823
|
+
j ? u += qe(_, v, _ + w * C, v + T * C, _ + N * C, v + A * C, c, !0) + 2 : u += qe(_, v, _ - w * R, v - T * R, _ - N * R, v - A * R, c, !1) + 2;
|
|
8824
8824
|
break;
|
|
8825
8825
|
}
|
|
8826
8826
|
}
|
|
8827
8827
|
c.push(_ - N * R, v - A * R, _ + N * C, v + A * C), u += 2;
|
|
8828
8828
|
}
|
|
8829
8829
|
}
|
|
8830
|
-
y = n[(f - 2) * 2], b = n[(f - 2) * 2 + 1], _ = n[(f - 1) * 2], v = n[(f - 1) * 2 + 1], w = -(b - v),
|
|
8830
|
+
y = n[(f - 2) * 2], b = n[(f - 2) * 2 + 1], _ = n[(f - 1) * 2], v = n[(f - 1) * 2 + 1], w = -(b - v), T = y - _, E = Math.sqrt(w * w + T * T), w /= E, T /= E, w *= p, T *= p, c.push(_ - w * R, v - T * R, _ + w * C, v + T * C), l || (s.cap === Je.ROUND ? u += qe(_ - w * (R - C) * 0.5, v - T * (R - C) * 0.5, _ - w * R, v - T * R, _ + w * C, v + T * C, c, !1) + 2 : s.cap === Je.SQUARE && (u += Ko(_, v, w, T, R, C, !1, c)));
|
|
8831
8831
|
const F = t.indices, U = kr.epsilon * kr.epsilon;
|
|
8832
8832
|
for (let D = d; D < u + d - 2; ++D)
|
|
8833
8833
|
y = c[D * 2], b = c[D * 2 + 1], _ = c[(D + 1) * 2], v = c[(D + 1) * 2 + 1], x = c[(D + 2) * 2], S = c[(D + 2) * 2 + 1], !(Math.abs(y * (v - S) + _ * (S - b) + x * (b - v)) < U) && F.push(D, D + 1, D + 2);
|
|
@@ -10457,79 +10457,77 @@ const jn = {}, Yy = Rt.IDENTITY, Ky = {
|
|
|
10457
10457
|
}), Sa = ({
|
|
10458
10458
|
pixiTransformerRef: e,
|
|
10459
10459
|
imageRef: t,
|
|
10460
|
-
|
|
10461
|
-
|
|
10462
|
-
|
|
10463
|
-
|
|
10464
|
-
|
|
10465
|
-
uniqueId: o = ""
|
|
10460
|
+
transformCommit: r,
|
|
10461
|
+
transformChange: n,
|
|
10462
|
+
mouseoverEvent: i,
|
|
10463
|
+
onDoubleClick: s,
|
|
10464
|
+
uniqueId: a = ""
|
|
10466
10465
|
}) => {
|
|
10467
|
-
|
|
10466
|
+
console.log("transformer props", {
|
|
10467
|
+
pixiTransformerRef: e,
|
|
10468
|
+
imageRef: t,
|
|
10469
|
+
transformCommit: r,
|
|
10470
|
+
transformChange: n,
|
|
10471
|
+
mouseoverEvent: i,
|
|
10472
|
+
onDoubleClick: s,
|
|
10473
|
+
uniqueId: a
|
|
10474
|
+
});
|
|
10475
|
+
const o = de.utils.string2hex("#F3C409"), l = de.utils.string2hex("#F3C409"), h = ot.useRef({
|
|
10468
10476
|
isDragging: !1
|
|
10469
|
-
}),
|
|
10470
|
-
|
|
10471
|
-
}, [
|
|
10472
|
-
|
|
10473
|
-
}, [
|
|
10474
|
-
|
|
10475
|
-
}, []),
|
|
10476
|
-
|
|
10477
|
-
}, []),
|
|
10478
|
-
|
|
10479
|
-
|
|
10480
|
-
console.log("dobule click in pixi transformer"), a && a({ uniqueId: o });
|
|
10481
|
-
}, [a]), y = at.useCallback(
|
|
10482
|
-
(_) => {
|
|
10483
|
-
c.current.isDragging = !0, i && i(_);
|
|
10477
|
+
}), c = ot.useCallback(() => {
|
|
10478
|
+
i && !h.current.isDragging && i(!0);
|
|
10479
|
+
}, [i]), f = ot.useCallback(() => {
|
|
10480
|
+
i && !h.current.isDragging && i(!1);
|
|
10481
|
+
}, [i]), u = ot.useCallback(() => {
|
|
10482
|
+
h.current.isDragging = !0;
|
|
10483
|
+
}, []), d = ot.useCallback(() => {
|
|
10484
|
+
h.current.isDragging = !1;
|
|
10485
|
+
}, []), p = ot.useCallback(
|
|
10486
|
+
(g) => {
|
|
10487
|
+
h.current.isDragging = !0, n && n(g);
|
|
10484
10488
|
},
|
|
10485
|
-
[
|
|
10486
|
-
),
|
|
10489
|
+
[n]
|
|
10490
|
+
), m = ot.useCallback(() => {
|
|
10487
10491
|
if (t.current === null)
|
|
10488
10492
|
return;
|
|
10489
|
-
const
|
|
10493
|
+
const g = t.current.x, y = t.current.y, b = t.current.width, _ = t.current.height, v = t.current.rotation, x = [
|
|
10490
10494
|
t.current.scale.x,
|
|
10491
10495
|
t.current.scale.y
|
|
10492
10496
|
];
|
|
10493
|
-
|
|
10494
|
-
uniqueId:
|
|
10497
|
+
r && r({
|
|
10498
|
+
uniqueId: a,
|
|
10495
10499
|
transformation: {
|
|
10496
|
-
x: Math.round(
|
|
10497
|
-
y: Math.round(
|
|
10498
|
-
width: Math.round(Math.max(5,
|
|
10499
|
-
height: Math.round(Math.max(5,
|
|
10500
|
-
rotate: Math.round(
|
|
10501
|
-
scale:
|
|
10500
|
+
x: Math.round(g),
|
|
10501
|
+
y: Math.round(y),
|
|
10502
|
+
width: Math.round(Math.max(5, b)),
|
|
10503
|
+
height: Math.round(Math.max(5, _)),
|
|
10504
|
+
rotate: Math.round(v),
|
|
10505
|
+
scale: x
|
|
10502
10506
|
}
|
|
10503
|
-
}),
|
|
10504
|
-
}, [
|
|
10505
|
-
return
|
|
10506
|
-
e.current && (e.current.off("mouseover",
|
|
10507
|
-
"mouseupoutside",
|
|
10508
|
-
m
|
|
10509
|
-
), e.current.removeListener(
|
|
10510
|
-
"dblclick",
|
|
10511
|
-
g
|
|
10512
|
-
));
|
|
10507
|
+
}), h.current.isDragging = !1;
|
|
10508
|
+
}, [r]);
|
|
10509
|
+
return ot.useEffect(() => (e.current && (e.current.on("mouseover", c), e.current.on("mouseout", f), e.current.on("mousedown", u), e.current.on("mouseup", d)), () => {
|
|
10510
|
+
e.current && (e.current.off("mouseover", c), e.current.off("mouseout", f), e.current.off("mousedown", u), e.current.off("mouseup", d));
|
|
10513
10511
|
}), []), /* @__PURE__ */ ft.jsx(
|
|
10514
10512
|
Zy,
|
|
10515
10513
|
{
|
|
10516
10514
|
ref: e,
|
|
10517
|
-
group:
|
|
10515
|
+
group: [t.current],
|
|
10518
10516
|
rotateEnabled: !0,
|
|
10519
10517
|
boxRotationEnabled: !0,
|
|
10520
10518
|
centeredScaling: !0,
|
|
10521
10519
|
boxScalingEnabled: !0,
|
|
10522
|
-
wireframeStyle: { thickness: 1, color:
|
|
10520
|
+
wireframeStyle: { thickness: 1, color: l },
|
|
10523
10521
|
lockAspectRatio: !0,
|
|
10524
10522
|
scaleEnabled: !0,
|
|
10525
10523
|
handleStyle: {
|
|
10526
10524
|
// color: colorYellow,
|
|
10527
|
-
outlineColor:
|
|
10525
|
+
outlineColor: o,
|
|
10528
10526
|
shape: "circle",
|
|
10529
10527
|
radius: 9
|
|
10530
10528
|
},
|
|
10531
|
-
transformchange:
|
|
10532
|
-
transformcommit:
|
|
10529
|
+
transformchange: p,
|
|
10530
|
+
transformcommit: m
|
|
10533
10531
|
}
|
|
10534
10532
|
);
|
|
10535
10533
|
};
|
|
@@ -10571,7 +10569,7 @@ function em() {
|
|
|
10571
10569
|
var ll = Ii.emitCustomEvent = tm;
|
|
10572
10570
|
Ii.newCustomEventEmitter = em;
|
|
10573
10571
|
var dn = Ii.useCustomEventListener = Jy;
|
|
10574
|
-
const vn =
|
|
10572
|
+
const vn = ot.createContext({}), tr = {
|
|
10575
10573
|
STOP: "GSAP_STOP",
|
|
10576
10574
|
PAUSE: "GSAP_PAUSE",
|
|
10577
10575
|
PLAY: "GSAP_PLAY",
|
|
@@ -10901,7 +10899,7 @@ function Yg(e) {
|
|
|
10901
10899
|
}
|
|
10902
10900
|
var Kg = Yg;
|
|
10903
10901
|
const ee = /* @__PURE__ */ Mr(Kg), Zg = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], Ma = (e) => {
|
|
10904
|
-
const [t, r] =
|
|
10902
|
+
const [t, r] = ot.useState(!1), [, n] = le(!1), [, i] = le(!1), s = dt(null), a = dt(null), o = dt(null), l = dt(null), { tl: h } = yi(vn), {
|
|
10905
10903
|
uniqueId: c,
|
|
10906
10904
|
startAt: f,
|
|
10907
10905
|
endAt: u,
|
|
@@ -10913,18 +10911,18 @@ const ee = /* @__PURE__ */ Mr(Kg), Zg = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
|
|
|
10913
10911
|
const {
|
|
10914
10912
|
contrast: S = 1,
|
|
10915
10913
|
saturation: w = 1,
|
|
10916
|
-
brightness:
|
|
10914
|
+
brightness: T = 1,
|
|
10917
10915
|
alpha: N = 1,
|
|
10918
10916
|
blurRadius: A = 0
|
|
10919
|
-
} = b || {},
|
|
10920
|
-
...
|
|
10917
|
+
} = b || {}, E = {
|
|
10918
|
+
...T > 1 && { brightness: T },
|
|
10921
10919
|
...S > 1 && { contrast: S },
|
|
10922
10920
|
...w > 1 && { saturation: w },
|
|
10923
10921
|
...N !== 0 && { alpha: N }
|
|
10924
10922
|
};
|
|
10925
|
-
|
|
10923
|
+
ot.useEffect(() => {
|
|
10926
10924
|
s.current && r(!0);
|
|
10927
|
-
}, []),
|
|
10925
|
+
}, []), ot.useEffect(() => {
|
|
10928
10926
|
let U = _e.context(() => {
|
|
10929
10927
|
});
|
|
10930
10928
|
if (s.current && h.current) {
|
|
@@ -10951,16 +10949,16 @@ const ee = /* @__PURE__ */ Mr(Kg), Zg = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
|
|
|
10951
10949
|
}
|
|
10952
10950
|
return () => U.revert();
|
|
10953
10951
|
}, [_, f, u]);
|
|
10954
|
-
const O =
|
|
10952
|
+
const O = ot.useCallback(() => {
|
|
10955
10953
|
n(!0);
|
|
10956
|
-
}, []), R =
|
|
10954
|
+
}, []), R = ot.useCallback(
|
|
10957
10955
|
(U) => {
|
|
10958
10956
|
console.log("changeEnd", U), e.onAnchorTransformationEnd && (console.log("running onAnchorTransformationEnd"), e.onAnchorTransformationEnd(U));
|
|
10959
10957
|
},
|
|
10960
10958
|
[]
|
|
10961
10959
|
), C = sa(Ft, {
|
|
10962
10960
|
...A > 0 && { blur: de.filters.BlurFilter },
|
|
10963
|
-
...!ee(
|
|
10961
|
+
...!ee(E) && { adjust: wa },
|
|
10964
10962
|
matrix: de.filters.ColorMatrixFilter
|
|
10965
10963
|
}), F = (b == null ? void 0 : b.enabled) || v && v !== Ye.Normal;
|
|
10966
10964
|
return /* @__PURE__ */ ft.jsxs(Ft, { ref: a, children: [
|
|
@@ -10979,7 +10977,7 @@ const ee = /* @__PURE__ */ Mr(Kg), Zg = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
|
|
|
10979
10977
|
{
|
|
10980
10978
|
scale: 1,
|
|
10981
10979
|
blur: { blur: A, quality: 4 },
|
|
10982
|
-
adjust:
|
|
10980
|
+
adjust: E,
|
|
10983
10981
|
apply: ({ matrix: U }) => {
|
|
10984
10982
|
v === Ye.BlackAndWhite ? U.desaturate() : v === Ye.Sepia ? U.sepia() : v === Ye.RetroVintage || v === Ye.NightVision ? U.negative() : v === Ye.Normal && U.reset();
|
|
10985
10983
|
},
|
|
@@ -10995,12 +10993,11 @@ const ee = /* @__PURE__ */ Mr(Kg), Zg = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
|
|
|
10995
10993
|
]
|
|
10996
10994
|
}
|
|
10997
10995
|
),
|
|
10998
|
-
x && /* @__PURE__ */ ft.jsx(
|
|
10996
|
+
x && t && /* @__PURE__ */ ft.jsx(
|
|
10999
10997
|
Sa,
|
|
11000
10998
|
{
|
|
11001
10999
|
pixiTransformerRef: l,
|
|
11002
11000
|
imageRef: s,
|
|
11003
|
-
isMounted: t,
|
|
11004
11001
|
transformCommit: R,
|
|
11005
11002
|
transformChange: O,
|
|
11006
11003
|
mouseoverEvent: i,
|
|
@@ -11864,8 +11861,8 @@ var T0 = function() {
|
|
|
11864
11861
|
}, S0 = function(t, r, n, i, s, a, o, l, h, c, f, u) {
|
|
11865
11862
|
var d = Math.pow(s, 2), p = Math.pow(a, 2), m = Math.pow(f, 2), g = Math.pow(u, 2), y = d * p - d * g - p * m;
|
|
11866
11863
|
y < 0 && (y = 0), y /= d * g + p * m, y = Math.sqrt(y) * (o === l ? -1 : 1);
|
|
11867
|
-
var b = y * s / a * u, _ = y * -a / s * f, v = c * b - h * _ + (t + n) / 2, x = h * b + c * _ + (r + i) / 2, S = (f - b) / s, w = (u - _) / a,
|
|
11868
|
-
return l === 0 &&
|
|
11864
|
+
var b = y * s / a * u, _ = y * -a / s * f, v = c * b - h * _ + (t + n) / 2, x = h * b + c * _ + (r + i) / 2, S = (f - b) / s, w = (u - _) / a, T = (-f - b) / s, N = (-u - _) / a, A = Ol(1, 0, S, w), E = Ol(S, w, T, N);
|
|
11865
|
+
return l === 0 && E > 0 && (E -= rn), l === 1 && E < 0 && (E += rn), [v, x, A, E];
|
|
11869
11866
|
}, Rl = function(t) {
|
|
11870
11867
|
var r = t.px, n = t.py, i = t.cx, s = t.cy, a = t.rx, o = t.ry, l = t.xAxisRotation, h = l === void 0 ? 0 : l, c = t.largeArcFlag, f = c === void 0 ? 0 : c, u = t.sweepFlag, d = u === void 0 ? 0 : u, p = [];
|
|
11871
11868
|
if (a === 0 || o === 0)
|
|
@@ -11876,12 +11873,12 @@ var T0 = function() {
|
|
|
11876
11873
|
a = Math.abs(a), o = Math.abs(o);
|
|
11877
11874
|
var _ = Math.pow(y, 2) / Math.pow(a, 2) + Math.pow(b, 2) / Math.pow(o, 2);
|
|
11878
11875
|
_ > 1 && (a *= Math.sqrt(_), o *= Math.sqrt(_));
|
|
11879
|
-
var v = S0(r, n, i, s, a, o, f, d, m, g, y, b), x = T0(v, 4), S = x[0], w = x[1],
|
|
11876
|
+
var v = S0(r, n, i, s, a, o, f, d, m, g, y, b), x = T0(v, 4), S = x[0], w = x[1], T = x[2], N = x[3], A = Math.abs(N) / (rn / 4);
|
|
11880
11877
|
Math.abs(1 - A) < 1e-7 && (A = 1);
|
|
11881
|
-
var
|
|
11882
|
-
N /=
|
|
11883
|
-
for (var O = 0; O <
|
|
11884
|
-
p.push(A0(
|
|
11878
|
+
var E = Math.max(Math.ceil(A), 1);
|
|
11879
|
+
N /= E;
|
|
11880
|
+
for (var O = 0; O < E; O++)
|
|
11881
|
+
p.push(A0(T, N)), T += N;
|
|
11885
11882
|
return p.map(function(R) {
|
|
11886
11883
|
var C = xs(R[0], a, o, g, m, S, w), F = C.x, U = C.y, D = xs(R[1], a, o, g, m, S, w), z = D.x, $ = D.y, k = xs(R[2], a, o, g, m, S, w), I = k.x, P = k.y;
|
|
11887
11884
|
return { x1: F, y1: U, x2: z, y2: $, x: I, y: P };
|
|
@@ -12426,7 +12423,7 @@ function Il(e, t, r, n) {
|
|
|
12426
12423
|
function H0(e, t, r, n, i, s, a, o, l, h) {
|
|
12427
12424
|
var c = h * (e - r) / 2 + l * (t - n) / 2, f = -l * (e - r) / 2 + h * (t - n) / 2, u = a * a, d = o * o, p = c * c, m = f * f, g = u * d - u * m - d * p;
|
|
12428
12425
|
g < 0 && (g = 0), g /= u * m + d * p, g = Math.sqrt(g) * (i === s ? -1 : 1);
|
|
12429
|
-
var y = g * a / o * f, b = g * -o / a * c, _ = h * y - l * b + (e + r) / 2, v = l * y + h * b + (t + n) / 2, x = (c - y) / a, S = (f - b) / o, w = (-c - y) / a,
|
|
12426
|
+
var y = g * a / o * f, b = g * -o / a * c, _ = h * y - l * b + (e + r) / 2, v = l * y + h * b + (t + n) / 2, x = (c - y) / a, S = (f - b) / o, w = (-c - y) / a, T = (-f - b) / o, N = Il(1, 0, x, S), A = Il(x, S, w, T);
|
|
12430
12427
|
return s === 0 && A > 0 && (A -= nn), s === 1 && A < 0 && (A += nn), [_, v, N, A];
|
|
12431
12428
|
}
|
|
12432
12429
|
function z0(e, t) {
|
|
@@ -12448,9 +12445,9 @@ var V0 = function(t, r, n, i, s, a, o, l, h) {
|
|
|
12448
12445
|
g.push(z0(y, b)), y += b;
|
|
12449
12446
|
return g.map(function(x) {
|
|
12450
12447
|
for (var S = 0; S < x.length; S += 2) {
|
|
12451
|
-
var w = x[S + 0],
|
|
12452
|
-
w *= o,
|
|
12453
|
-
var N = f * w - c *
|
|
12448
|
+
var w = x[S + 0], T = x[S + 1];
|
|
12449
|
+
w *= o, T *= l;
|
|
12450
|
+
var N = f * w - c * T, A = c * w + f * T;
|
|
12454
12451
|
x[S + 0] = N + m[0], x[S + 1] = A + m[1];
|
|
12455
12452
|
}
|
|
12456
12453
|
return x;
|
|
@@ -12717,7 +12714,7 @@ Pt.prototype.unshort = function() {
|
|
|
12717
12714
|
};
|
|
12718
12715
|
var Q0 = Pt, J0 = Q0;
|
|
12719
12716
|
const tb = /* @__PURE__ */ Mr(J0), iA = (e) => {
|
|
12720
|
-
const [t, r] =
|
|
12717
|
+
const [t, r] = ot.useState(null), n = dt(null), i = dt(null), s = dt(null), {
|
|
12721
12718
|
path: a,
|
|
12722
12719
|
transformation: {
|
|
12723
12720
|
x: o,
|
|
@@ -12737,11 +12734,11 @@ const tb = /* @__PURE__ */ Mr(J0), iA = (e) => {
|
|
|
12737
12734
|
mouseover: v,
|
|
12738
12735
|
mouseout: x
|
|
12739
12736
|
} = e, S = Kl();
|
|
12740
|
-
return
|
|
12741
|
-
const w = tb(a).scale(5).translate(0, 0).toString(),
|
|
12737
|
+
return ot.useEffect(() => {
|
|
12738
|
+
const w = tb(a).scale(5).translate(0, 0).toString(), T = `<svg xmlns="http://www.w3.org/2000/svg" width="${h}" height="${c}">
|
|
12742
12739
|
<path stroke="${d}" stroke-width="${p}" fill="${u}" d="${w}">
|
|
12743
12740
|
</path>
|
|
12744
|
-
</svg>`, N = new O0(
|
|
12741
|
+
</svg>`, N = new O0(T), A = S.renderer.generateTexture(N);
|
|
12745
12742
|
return r(A), () => {
|
|
12746
12743
|
};
|
|
12747
12744
|
}, [S, a, d, p, u]), /* @__PURE__ */ ft.jsx(Ma, { ...e, children: /* @__PURE__ */ ft.jsx(Ft, { ref: i, children: /* @__PURE__ */ ft.jsx(Ft, { ref: s, children: t && /* @__PURE__ */ ft.jsx(
|
|
@@ -12774,9 +12771,9 @@ const tb = /* @__PURE__ */ Mr(J0), iA = (e) => {
|
|
|
12774
12771
|
loaded: !1,
|
|
12775
12772
|
size: { width: 50, height: 50 },
|
|
12776
12773
|
isDragging: !1
|
|
12777
|
-
}, [, r] =
|
|
12774
|
+
}, [, r] = ot.useState(!1), n = dt(t);
|
|
12778
12775
|
console.log("allProps", e);
|
|
12779
|
-
const i = dt(null), s = dt(null), { tl: a, playerTimeRef: o } = yi(vn), { uniqueId: l, src: h, startAt: c, endAt: f, mute: u, speed: d } = e, p =
|
|
12776
|
+
const i = dt(null), s = dt(null), { tl: a, playerTimeRef: o } = yi(vn), { uniqueId: l, src: h, startAt: c, endAt: f, mute: u, speed: d } = e, p = ot.useRef(null);
|
|
12780
12777
|
dn(tr.PAUSE, () => {
|
|
12781
12778
|
var v;
|
|
12782
12779
|
console.log("pause event"), i.current && ((v = p.current) == null || v.pause(), n.current.isPlaying = !1);
|
|
@@ -12820,18 +12817,18 @@ const tb = /* @__PURE__ */ Mr(J0), iA = (e) => {
|
|
|
12820
12817
|
});
|
|
12821
12818
|
}
|
|
12822
12819
|
return () => v.revert();
|
|
12823
|
-
}, [c, f]),
|
|
12820
|
+
}, [c, f]), ot.useEffect(() => {
|
|
12824
12821
|
i.current && r(!0);
|
|
12825
|
-
}, []),
|
|
12822
|
+
}, []), ot.useEffect(() => {
|
|
12826
12823
|
i.current && p.current && (console.log("soundref", p.current), n.current.mute = u, n.current.speed = d, console.log("containerAudio", p.current.volume), p.current.volume = u ? 0 : 1);
|
|
12827
12824
|
}, [u, d]);
|
|
12828
|
-
const _ =
|
|
12825
|
+
const _ = ot.useCallback(
|
|
12829
12826
|
(v, x) => {
|
|
12830
12827
|
p.current = x, n.current.loaded = !0;
|
|
12831
12828
|
},
|
|
12832
12829
|
[]
|
|
12833
12830
|
);
|
|
12834
|
-
return
|
|
12831
|
+
return ot.useEffect(() => (ee(h) || (p.current = Jh.from({
|
|
12835
12832
|
url: h,
|
|
12836
12833
|
preload: !0,
|
|
12837
12834
|
singleInstance: !0,
|
|
@@ -13781,12 +13778,12 @@ Object.defineProperty($i, "__esModule", {
|
|
|
13781
13778
|
});
|
|
13782
13779
|
$i.lzw = void 0;
|
|
13783
13780
|
var gT = function(t, r, n) {
|
|
13784
|
-
var i = 4096, s = -1, a = n, o, l, h, c, f, u, d, S, p, m, x, g, w,
|
|
13781
|
+
var i = 4096, s = -1, a = n, o, l, h, c, f, u, d, S, p, m, x, g, w, T, A, N, y = new Array(n), b = new Array(i), _ = new Array(i), v = new Array(i + 1);
|
|
13785
13782
|
for (g = t, l = 1 << g, f = l + 1, o = l + 2, d = s, c = g + 1, h = (1 << c) - 1, p = 0; p < l; p++)
|
|
13786
13783
|
b[p] = 0, _[p] = p;
|
|
13787
|
-
var x, S, w,
|
|
13788
|
-
for (x = S = w =
|
|
13789
|
-
if (
|
|
13784
|
+
var x, S, w, T, N, A;
|
|
13785
|
+
for (x = S = w = T = N = A = 0, m = 0; m < a; ) {
|
|
13786
|
+
if (T === 0) {
|
|
13790
13787
|
if (S < c) {
|
|
13791
13788
|
x += r[A] << S, S += 8, A++;
|
|
13792
13789
|
continue;
|
|
@@ -13798,14 +13795,14 @@ var gT = function(t, r, n) {
|
|
|
13798
13795
|
continue;
|
|
13799
13796
|
}
|
|
13800
13797
|
if (d == s) {
|
|
13801
|
-
v[
|
|
13798
|
+
v[T++] = _[p], d = p, w = p;
|
|
13802
13799
|
continue;
|
|
13803
13800
|
}
|
|
13804
|
-
for (u = p, p == o && (v[
|
|
13805
|
-
v[
|
|
13806
|
-
w = _[p] & 255, v[
|
|
13801
|
+
for (u = p, p == o && (v[T++] = w, p = d); p > l; )
|
|
13802
|
+
v[T++] = _[p], p = b[p];
|
|
13803
|
+
w = _[p] & 255, v[T++] = w, o < i && (b[o] = d, _[o] = w, o++, !(o & h) && o < i && (c++, h += o)), d = u;
|
|
13807
13804
|
}
|
|
13808
|
-
|
|
13805
|
+
T--, y[N++] = v[T], m++;
|
|
13809
13806
|
}
|
|
13810
13807
|
for (m = N; m < a; m++)
|
|
13811
13808
|
y[m] = 0;
|
|
@@ -13942,10 +13939,10 @@ const kT = (e) => ({
|
|
|
13942
13939
|
forwardRef: t,
|
|
13943
13940
|
...r
|
|
13944
13941
|
}) => {
|
|
13945
|
-
const n =
|
|
13946
|
-
return
|
|
13942
|
+
const n = ot.useRef(null);
|
|
13943
|
+
return ot.useImperativeHandle(t, () => n.current, [
|
|
13947
13944
|
n
|
|
13948
|
-
]),
|
|
13945
|
+
]), ot.useEffect(() => {
|
|
13949
13946
|
if (n.current === null)
|
|
13950
13947
|
return;
|
|
13951
13948
|
const i = n.current;
|
|
@@ -13958,7 +13955,7 @@ const kT = (e) => ({
|
|
|
13958
13955
|
isPlaying: e
|
|
13959
13956
|
}
|
|
13960
13957
|
);
|
|
13961
|
-
}, UT =
|
|
13958
|
+
}, UT = ot.memo(DT), $T = sa(Ft, {
|
|
13962
13959
|
blur: de.filters.BlurFilter,
|
|
13963
13960
|
adjust: wa,
|
|
13964
13961
|
matrix: de.filters.ColorMatrixFilter
|
|
@@ -13972,11 +13969,11 @@ const kT = (e) => ({
|
|
|
13972
13969
|
size: { width: 50, height: 50 },
|
|
13973
13970
|
isDragging: !1
|
|
13974
13971
|
}, aA = (e) => {
|
|
13975
|
-
const [t, r] =
|
|
13976
|
-
uniqueId:
|
|
13972
|
+
const [t, r] = ot.useState([]), [, n] = ot.useState(0), [i, s] = ot.useState([]), [, a] = le(0), [, o] = le(!1), [l, h] = le(!1), [, c] = le(!1), [f, u] = IT({ autoPlay: !1 }), d = ot.useRef(null), p = dt(null), m = dt(null), g = dt(null), y = dt(null), b = dt(null), _ = dt(GT), { tl: v } = yi(vn), { frames: x, delays: S, loaded: w } = f, {
|
|
13973
|
+
uniqueId: T,
|
|
13977
13974
|
src: N,
|
|
13978
13975
|
startAt: A,
|
|
13979
|
-
endAt:
|
|
13976
|
+
endAt: E,
|
|
13980
13977
|
initialAlpha: O,
|
|
13981
13978
|
locked: R,
|
|
13982
13979
|
loop: C,
|
|
@@ -14002,27 +13999,27 @@ const kT = (e) => ({
|
|
|
14002
13999
|
applyTransformer: tt,
|
|
14003
14000
|
onAnchorTransformationEnd: rt
|
|
14004
14001
|
} = e, {
|
|
14005
|
-
contrast:
|
|
14002
|
+
contrast: at = 1,
|
|
14006
14003
|
saturation: ut = 1,
|
|
14007
14004
|
exposure: It = 1,
|
|
14008
14005
|
blurRadius: St = 0,
|
|
14009
14006
|
alpha: V = 1
|
|
14010
14007
|
} = P || {}, W = {
|
|
14011
14008
|
brightness: It,
|
|
14012
|
-
contrast:
|
|
14009
|
+
contrast: at,
|
|
14013
14010
|
saturation: ut,
|
|
14014
14011
|
alpha: V
|
|
14015
14012
|
}, Q = Kl();
|
|
14016
14013
|
BT(N, u), dn(tr.PAUSE, (_t) => {
|
|
14017
14014
|
console.log("pause event", _t), p.current && (p.current.stop(), _.current.isPlaying = !1);
|
|
14018
14015
|
});
|
|
14019
|
-
const J =
|
|
14016
|
+
const J = ot.useCallback(
|
|
14020
14017
|
(_t) => {
|
|
14021
14018
|
console.log("changeEnd", _t), rt && rt(_t);
|
|
14022
14019
|
},
|
|
14023
14020
|
[]
|
|
14024
14021
|
);
|
|
14025
|
-
|
|
14022
|
+
ot.useEffect(() => {
|
|
14026
14023
|
if (!ee(x)) {
|
|
14027
14024
|
const _t = sT(x, (re) => {
|
|
14028
14025
|
const { data: qt, width: $a, height: zh } = re, Vh = new Uint8Array(qt);
|
|
@@ -14056,7 +14053,7 @@ const kT = (e) => ({
|
|
|
14056
14053
|
});
|
|
14057
14054
|
if (m.current && v.current) {
|
|
14058
14055
|
const xt = {
|
|
14059
|
-
duration: Number(
|
|
14056
|
+
duration: Number(E) - Number(A),
|
|
14060
14057
|
onStart: Y,
|
|
14061
14058
|
onComplete: ht,
|
|
14062
14059
|
onStartParams: [A],
|
|
@@ -14070,28 +14067,28 @@ const kT = (e) => ({
|
|
|
14070
14067
|
ee(Mt.from) ? ee(Mt.to) ? ee(Mt.fromTo) ? v.current.to(m.current, { alpha: 1, duration: 0.01 }, A).from(y.current, { ...xt }, A).to(
|
|
14071
14068
|
m.current,
|
|
14072
14069
|
{ alpha: 0, duration: 0.1 },
|
|
14073
|
-
Number(
|
|
14070
|
+
Number(E) - 0.1
|
|
14074
14071
|
) : v.current.fromTo(
|
|
14075
14072
|
m.current,
|
|
14076
14073
|
(re = Mt.fromTo) == null ? void 0 : re.from,
|
|
14077
14074
|
(qt = Mt.fromTo) == null ? void 0 : qt.to,
|
|
14078
14075
|
A
|
|
14079
|
-
).from(y.current, { ...xt }, A).to(m.current, { alpha: 0, duration: 0.2 },
|
|
14076
|
+
).from(y.current, { ...xt }, A).to(m.current, { alpha: 0, duration: 0.2 }, E - 0.2) : v.current.to(
|
|
14080
14077
|
m.current,
|
|
14081
14078
|
{ alpha: 1, duration: 0.2, ...Mt.to },
|
|
14082
14079
|
A
|
|
14083
|
-
).from(y.current, { ...xt }, A).to(m.current, { alpha: 0, duration: 0.2 },
|
|
14080
|
+
).from(y.current, { ...xt }, A).to(m.current, { alpha: 0, duration: 0.2 }, E - 0.2) : v.current.from(m.current, { ...Mt.from }, A).to(y.current, { alpha: 1, duration: 0.2 }, A).from(y.current, { ...xt }, A).to(m.current, { alpha: 0, duration: 0.2 }, E - 0.2);
|
|
14084
14081
|
});
|
|
14085
14082
|
}
|
|
14086
14083
|
return () => _t.revert();
|
|
14087
|
-
}, [I, A,
|
|
14088
|
-
const Gt =
|
|
14084
|
+
}, [I, A, E]);
|
|
14085
|
+
const Gt = ot.useCallback(() => {
|
|
14089
14086
|
h(!0);
|
|
14090
14087
|
}, []);
|
|
14091
14088
|
Q.ticker.add((_t) => {
|
|
14092
14089
|
d.current && (d.current.rotation += 0.01 * _t, d.current.clear().lineStyle(4, 16777215, 1).moveTo(40, 0).arc(0, 0, 40, 0, Math.PI * 2 * 0.6, !1));
|
|
14093
14090
|
});
|
|
14094
|
-
const bt =
|
|
14091
|
+
const bt = ot.useCallback((_t) => {
|
|
14095
14092
|
_t.clear();
|
|
14096
14093
|
}, []);
|
|
14097
14094
|
return (
|
|
@@ -14158,16 +14155,15 @@ const kT = (e) => ({
|
|
|
14158
14155
|
] })
|
|
14159
14156
|
}
|
|
14160
14157
|
),
|
|
14161
|
-
tt && /* @__PURE__ */ ft.jsx(
|
|
14158
|
+
tt && w && /* @__PURE__ */ ft.jsx(
|
|
14162
14159
|
Sa,
|
|
14163
14160
|
{
|
|
14164
14161
|
pixiTransformerRef: b,
|
|
14165
14162
|
imageRef: m,
|
|
14166
|
-
isMounted: w,
|
|
14167
14163
|
transformCommit: J,
|
|
14168
14164
|
transformChange: Gt,
|
|
14169
14165
|
mouseoverEvent: c,
|
|
14170
|
-
uniqueId:
|
|
14166
|
+
uniqueId: T
|
|
14171
14167
|
}
|
|
14172
14168
|
)
|
|
14173
14169
|
] })
|
|
@@ -14570,21 +14566,21 @@ var Hh = { exports: {} };
|
|
|
14570
14566
|
value: !0
|
|
14571
14567
|
}), n.default = n.BlockEmbed = n.bubbleFormats = void 0;
|
|
14572
14568
|
var s = function() {
|
|
14573
|
-
function
|
|
14569
|
+
function E(O, R) {
|
|
14574
14570
|
for (var C = 0; C < R.length; C++) {
|
|
14575
14571
|
var F = R[C];
|
|
14576
14572
|
F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(O, F.key, F);
|
|
14577
14573
|
}
|
|
14578
14574
|
}
|
|
14579
14575
|
return function(O, R, C) {
|
|
14580
|
-
return R &&
|
|
14576
|
+
return R && E(O.prototype, R), C && E(O, C), O;
|
|
14581
14577
|
};
|
|
14582
|
-
}(), a = function
|
|
14578
|
+
}(), a = function E(O, R, C) {
|
|
14583
14579
|
O === null && (O = Function.prototype);
|
|
14584
14580
|
var F = Object.getOwnPropertyDescriptor(O, R);
|
|
14585
14581
|
if (F === void 0) {
|
|
14586
14582
|
var U = Object.getPrototypeOf(O);
|
|
14587
|
-
return U === null ? void 0 :
|
|
14583
|
+
return U === null ? void 0 : E(U, R, C);
|
|
14588
14584
|
} else {
|
|
14589
14585
|
if ("value" in F)
|
|
14590
14586
|
return F.value;
|
|
@@ -14592,25 +14588,25 @@ var Hh = { exports: {} };
|
|
|
14592
14588
|
return D === void 0 ? void 0 : D.call(C);
|
|
14593
14589
|
}
|
|
14594
14590
|
}, o = i(3), l = _(o), h = i(2), c = _(h), f = i(0), u = _(f), d = i(16), p = _(d), m = i(6), g = _(m), y = i(7), b = _(y);
|
|
14595
|
-
function _(
|
|
14596
|
-
return
|
|
14591
|
+
function _(E) {
|
|
14592
|
+
return E && E.__esModule ? E : { default: E };
|
|
14597
14593
|
}
|
|
14598
|
-
function v(
|
|
14599
|
-
if (!(
|
|
14594
|
+
function v(E, O) {
|
|
14595
|
+
if (!(E instanceof O))
|
|
14600
14596
|
throw new TypeError("Cannot call a class as a function");
|
|
14601
14597
|
}
|
|
14602
|
-
function x(
|
|
14603
|
-
if (!
|
|
14598
|
+
function x(E, O) {
|
|
14599
|
+
if (!E)
|
|
14604
14600
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
14605
|
-
return O && (typeof O == "object" || typeof O == "function") ? O :
|
|
14601
|
+
return O && (typeof O == "object" || typeof O == "function") ? O : E;
|
|
14606
14602
|
}
|
|
14607
|
-
function S(
|
|
14603
|
+
function S(E, O) {
|
|
14608
14604
|
if (typeof O != "function" && O !== null)
|
|
14609
14605
|
throw new TypeError("Super expression must either be null or a function, not " + typeof O);
|
|
14610
|
-
|
|
14606
|
+
E.prototype = Object.create(O && O.prototype, { constructor: { value: E, enumerable: !1, writable: !0, configurable: !0 } }), O && (Object.setPrototypeOf ? Object.setPrototypeOf(E, O) : E.__proto__ = O);
|
|
14611
14607
|
}
|
|
14612
|
-
var w = 1,
|
|
14613
|
-
S(O,
|
|
14608
|
+
var w = 1, T = function(E) {
|
|
14609
|
+
S(O, E);
|
|
14614
14610
|
function O() {
|
|
14615
14611
|
return v(this, O), x(this, (O.__proto__ || Object.getPrototypeOf(O)).apply(this, arguments));
|
|
14616
14612
|
}
|
|
@@ -14647,9 +14643,9 @@ var Hh = { exports: {} };
|
|
|
14647
14643
|
}
|
|
14648
14644
|
}]), O;
|
|
14649
14645
|
}(u.default.Embed);
|
|
14650
|
-
|
|
14651
|
-
var N = function(
|
|
14652
|
-
S(O,
|
|
14646
|
+
T.scope = u.default.Scope.BLOCK_BLOT;
|
|
14647
|
+
var N = function(E) {
|
|
14648
|
+
S(O, E);
|
|
14653
14649
|
function O(R) {
|
|
14654
14650
|
v(this, O);
|
|
14655
14651
|
var C = x(this, (O.__proto__ || Object.getPrototypeOf(O)).call(this, R));
|
|
@@ -14734,11 +14730,11 @@ var Hh = { exports: {} };
|
|
|
14734
14730
|
}]), O;
|
|
14735
14731
|
}(u.default.Block);
|
|
14736
14732
|
N.blotName = "block", N.tagName = "P", N.defaultChild = "break", N.allowedChildren = [g.default, u.default.Embed, b.default];
|
|
14737
|
-
function A(
|
|
14733
|
+
function A(E) {
|
|
14738
14734
|
var O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
14739
|
-
return
|
|
14735
|
+
return E == null || (typeof E.formats == "function" && (O = (0, l.default)(O, E.formats())), E.parent == null || E.parent.blotName == "scroll" || E.parent.statics.scope !== E.statics.scope) ? O : A(E.parent, O);
|
|
14740
14736
|
}
|
|
14741
|
-
n.bubbleFormats = A, n.BlockEmbed =
|
|
14737
|
+
n.bubbleFormats = A, n.BlockEmbed = T, n.default = N;
|
|
14742
14738
|
},
|
|
14743
14739
|
/* 5 */
|
|
14744
14740
|
/***/
|
|
@@ -14787,11 +14783,11 @@ var Hh = { exports: {} };
|
|
|
14787
14783
|
};
|
|
14788
14784
|
}();
|
|
14789
14785
|
i(50);
|
|
14790
|
-
var l = i(2), h = A(l), c = i(14), f = A(c), u = i(8), d = A(u), p = i(9), m = A(p), g = i(0), y = A(g), b = i(15), _ = A(b), v = i(3), x = A(v), S = i(10), w = A(S),
|
|
14786
|
+
var l = i(2), h = A(l), c = i(14), f = A(c), u = i(8), d = A(u), p = i(9), m = A(p), g = i(0), y = A(g), b = i(15), _ = A(b), v = i(3), x = A(v), S = i(10), w = A(S), T = i(34), N = A(T);
|
|
14791
14787
|
function A($) {
|
|
14792
14788
|
return $ && $.__esModule ? $ : { default: $ };
|
|
14793
14789
|
}
|
|
14794
|
-
function
|
|
14790
|
+
function E($, k, I) {
|
|
14795
14791
|
return k in $ ? Object.defineProperty($, k, { value: I, enumerable: !0, configurable: !0, writable: !0 }) : $[k] = I, $;
|
|
14796
14792
|
}
|
|
14797
14793
|
function O($, k) {
|
|
@@ -14896,11 +14892,11 @@ var Hh = { exports: {} };
|
|
|
14896
14892
|
if (G == null)
|
|
14897
14893
|
return M;
|
|
14898
14894
|
if (y.default.query(I, y.default.Scope.BLOCK))
|
|
14899
|
-
M = L.editor.formatLine(G.index, G.length,
|
|
14895
|
+
M = L.editor.formatLine(G.index, G.length, E({}, I, P));
|
|
14900
14896
|
else {
|
|
14901
14897
|
if (G.length === 0)
|
|
14902
14898
|
return L.selection.format(I, P), M;
|
|
14903
|
-
M = L.editor.formatText(G.index, G.length,
|
|
14899
|
+
M = L.editor.formatText(G.index, G.length, E({}, I, P));
|
|
14904
14900
|
}
|
|
14905
14901
|
return L.setSelection(G, d.default.sources.SILENT), M;
|
|
14906
14902
|
}, j);
|
|
@@ -15324,8 +15320,8 @@ var Hh = { exports: {} };
|
|
|
15324
15320
|
} else {
|
|
15325
15321
|
if ("value" in S)
|
|
15326
15322
|
return S.value;
|
|
15327
|
-
var
|
|
15328
|
-
return
|
|
15323
|
+
var T = S.get;
|
|
15324
|
+
return T === void 0 ? void 0 : T.call(x);
|
|
15329
15325
|
}
|
|
15330
15326
|
}, o = i(54), l = f(o), h = i(10), c = f(h);
|
|
15331
15327
|
function f(b) {
|
|
@@ -15373,11 +15369,11 @@ var Hh = { exports: {} };
|
|
|
15373
15369
|
}, {
|
|
15374
15370
|
key: "handleDOM",
|
|
15375
15371
|
value: function(x) {
|
|
15376
|
-
for (var S = arguments.length, w = Array(S > 1 ? S - 1 : 0),
|
|
15377
|
-
w[
|
|
15372
|
+
for (var S = arguments.length, w = Array(S > 1 ? S - 1 : 0), T = 1; T < S; T++)
|
|
15373
|
+
w[T - 1] = arguments[T];
|
|
15378
15374
|
(this.listeners[x.type] || []).forEach(function(N) {
|
|
15379
|
-
var A = N.node,
|
|
15380
|
-
(x.target === A || A.contains(x.target)) &&
|
|
15375
|
+
var A = N.node, E = N.handler;
|
|
15376
|
+
(x.target === A || A.contains(x.target)) && E.apply(void 0, [x].concat(w));
|
|
15381
15377
|
});
|
|
15382
15378
|
}
|
|
15383
15379
|
}, {
|
|
@@ -15519,10 +15515,10 @@ var Hh = { exports: {} };
|
|
|
15519
15515
|
value: !0
|
|
15520
15516
|
}), n.default = n.Code = void 0;
|
|
15521
15517
|
var s = function() {
|
|
15522
|
-
function
|
|
15523
|
-
var
|
|
15518
|
+
function T(N, A) {
|
|
15519
|
+
var E = [], O = !0, R = !1, C = void 0;
|
|
15524
15520
|
try {
|
|
15525
|
-
for (var F = N[Symbol.iterator](), U; !(O = (U = F.next()).done) && (
|
|
15521
|
+
for (var F = N[Symbol.iterator](), U; !(O = (U = F.next()).done) && (E.push(U.value), !(A && E.length === A)); O = !0)
|
|
15526
15522
|
;
|
|
15527
15523
|
} catch (D) {
|
|
15528
15524
|
R = !0, C = D;
|
|
@@ -15534,145 +15530,145 @@ var Hh = { exports: {} };
|
|
|
15534
15530
|
throw C;
|
|
15535
15531
|
}
|
|
15536
15532
|
}
|
|
15537
|
-
return
|
|
15533
|
+
return E;
|
|
15538
15534
|
}
|
|
15539
15535
|
return function(N, A) {
|
|
15540
15536
|
if (Array.isArray(N))
|
|
15541
15537
|
return N;
|
|
15542
15538
|
if (Symbol.iterator in Object(N))
|
|
15543
|
-
return
|
|
15539
|
+
return T(N, A);
|
|
15544
15540
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
15545
15541
|
};
|
|
15546
15542
|
}(), a = function() {
|
|
15547
|
-
function
|
|
15548
|
-
for (var
|
|
15549
|
-
var O = A[
|
|
15543
|
+
function T(N, A) {
|
|
15544
|
+
for (var E = 0; E < A.length; E++) {
|
|
15545
|
+
var O = A[E];
|
|
15550
15546
|
O.enumerable = O.enumerable || !1, O.configurable = !0, "value" in O && (O.writable = !0), Object.defineProperty(N, O.key, O);
|
|
15551
15547
|
}
|
|
15552
15548
|
}
|
|
15553
|
-
return function(N, A,
|
|
15554
|
-
return A &&
|
|
15549
|
+
return function(N, A, E) {
|
|
15550
|
+
return A && T(N.prototype, A), E && T(N, E), N;
|
|
15555
15551
|
};
|
|
15556
|
-
}(), o = function
|
|
15552
|
+
}(), o = function T(N, A, E) {
|
|
15557
15553
|
N === null && (N = Function.prototype);
|
|
15558
15554
|
var O = Object.getOwnPropertyDescriptor(N, A);
|
|
15559
15555
|
if (O === void 0) {
|
|
15560
15556
|
var R = Object.getPrototypeOf(N);
|
|
15561
|
-
return R === null ? void 0 :
|
|
15557
|
+
return R === null ? void 0 : T(R, A, E);
|
|
15562
15558
|
} else {
|
|
15563
15559
|
if ("value" in O)
|
|
15564
15560
|
return O.value;
|
|
15565
15561
|
var C = O.get;
|
|
15566
|
-
return C === void 0 ? void 0 : C.call(
|
|
15562
|
+
return C === void 0 ? void 0 : C.call(E);
|
|
15567
15563
|
}
|
|
15568
15564
|
}, l = i(2), h = b(l), c = i(0), f = b(c), u = i(4), d = b(u), p = i(6), m = b(p), g = i(7), y = b(g);
|
|
15569
|
-
function b(
|
|
15570
|
-
return
|
|
15565
|
+
function b(T) {
|
|
15566
|
+
return T && T.__esModule ? T : { default: T };
|
|
15571
15567
|
}
|
|
15572
|
-
function _(
|
|
15573
|
-
if (!(
|
|
15568
|
+
function _(T, N) {
|
|
15569
|
+
if (!(T instanceof N))
|
|
15574
15570
|
throw new TypeError("Cannot call a class as a function");
|
|
15575
15571
|
}
|
|
15576
|
-
function v(
|
|
15577
|
-
if (!
|
|
15572
|
+
function v(T, N) {
|
|
15573
|
+
if (!T)
|
|
15578
15574
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15579
|
-
return N && (typeof N == "object" || typeof N == "function") ? N :
|
|
15575
|
+
return N && (typeof N == "object" || typeof N == "function") ? N : T;
|
|
15580
15576
|
}
|
|
15581
|
-
function x(
|
|
15577
|
+
function x(T, N) {
|
|
15582
15578
|
if (typeof N != "function" && N !== null)
|
|
15583
15579
|
throw new TypeError("Super expression must either be null or a function, not " + typeof N);
|
|
15584
|
-
|
|
15580
|
+
T.prototype = Object.create(N && N.prototype, { constructor: { value: T, enumerable: !1, writable: !0, configurable: !0 } }), N && (Object.setPrototypeOf ? Object.setPrototypeOf(T, N) : T.__proto__ = N);
|
|
15585
15581
|
}
|
|
15586
|
-
var S = function(
|
|
15587
|
-
x(N,
|
|
15582
|
+
var S = function(T) {
|
|
15583
|
+
x(N, T);
|
|
15588
15584
|
function N() {
|
|
15589
15585
|
return _(this, N), v(this, (N.__proto__ || Object.getPrototypeOf(N)).apply(this, arguments));
|
|
15590
15586
|
}
|
|
15591
15587
|
return N;
|
|
15592
15588
|
}(m.default);
|
|
15593
15589
|
S.blotName = "code", S.tagName = "CODE";
|
|
15594
|
-
var w = function(
|
|
15595
|
-
x(N,
|
|
15590
|
+
var w = function(T) {
|
|
15591
|
+
x(N, T);
|
|
15596
15592
|
function N() {
|
|
15597
15593
|
return _(this, N), v(this, (N.__proto__ || Object.getPrototypeOf(N)).apply(this, arguments));
|
|
15598
15594
|
}
|
|
15599
15595
|
return a(N, [{
|
|
15600
15596
|
key: "delta",
|
|
15601
15597
|
value: function() {
|
|
15602
|
-
var
|
|
15598
|
+
var E = this, O = this.domNode.textContent;
|
|
15603
15599
|
return O.endsWith(`
|
|
15604
15600
|
`) && (O = O.slice(0, -1)), O.split(`
|
|
15605
15601
|
`).reduce(function(R, C) {
|
|
15606
15602
|
return R.insert(C).insert(`
|
|
15607
|
-
`,
|
|
15603
|
+
`, E.formats());
|
|
15608
15604
|
}, new h.default());
|
|
15609
15605
|
}
|
|
15610
15606
|
}, {
|
|
15611
15607
|
key: "format",
|
|
15612
|
-
value: function(
|
|
15613
|
-
if (!(
|
|
15608
|
+
value: function(E, O) {
|
|
15609
|
+
if (!(E === this.statics.blotName && O)) {
|
|
15614
15610
|
var R = this.descendant(y.default, this.length() - 1), C = s(R, 1), F = C[0];
|
|
15615
|
-
F != null && F.deleteAt(F.length() - 1, 1), o(N.prototype.__proto__ || Object.getPrototypeOf(N.prototype), "format", this).call(this,
|
|
15611
|
+
F != null && F.deleteAt(F.length() - 1, 1), o(N.prototype.__proto__ || Object.getPrototypeOf(N.prototype), "format", this).call(this, E, O);
|
|
15616
15612
|
}
|
|
15617
15613
|
}
|
|
15618
15614
|
}, {
|
|
15619
15615
|
key: "formatAt",
|
|
15620
|
-
value: function(
|
|
15616
|
+
value: function(E, O, R, C) {
|
|
15621
15617
|
if (O !== 0 && !(f.default.query(R, f.default.Scope.BLOCK) == null || R === this.statics.blotName && C === this.statics.formats(this.domNode))) {
|
|
15622
|
-
var F = this.newlineIndex(
|
|
15623
|
-
if (!(F < 0 || F >=
|
|
15624
|
-
var U = this.newlineIndex(
|
|
15625
|
-
z.format(R, C), $ instanceof N && $.formatAt(0,
|
|
15618
|
+
var F = this.newlineIndex(E);
|
|
15619
|
+
if (!(F < 0 || F >= E + O)) {
|
|
15620
|
+
var U = this.newlineIndex(E, !0) + 1, D = F - U + 1, z = this.isolate(U, D), $ = z.next;
|
|
15621
|
+
z.format(R, C), $ instanceof N && $.formatAt(0, E - U + O - D, R, C);
|
|
15626
15622
|
}
|
|
15627
15623
|
}
|
|
15628
15624
|
}
|
|
15629
15625
|
}, {
|
|
15630
15626
|
key: "insertAt",
|
|
15631
|
-
value: function(
|
|
15627
|
+
value: function(E, O, R) {
|
|
15632
15628
|
if (R == null) {
|
|
15633
|
-
var C = this.descendant(y.default,
|
|
15629
|
+
var C = this.descendant(y.default, E), F = s(C, 2), U = F[0], D = F[1];
|
|
15634
15630
|
U.insertAt(D, O);
|
|
15635
15631
|
}
|
|
15636
15632
|
}
|
|
15637
15633
|
}, {
|
|
15638
15634
|
key: "length",
|
|
15639
15635
|
value: function() {
|
|
15640
|
-
var
|
|
15636
|
+
var E = this.domNode.textContent.length;
|
|
15641
15637
|
return this.domNode.textContent.endsWith(`
|
|
15642
|
-
`) ?
|
|
15638
|
+
`) ? E : E + 1;
|
|
15643
15639
|
}
|
|
15644
15640
|
}, {
|
|
15645
15641
|
key: "newlineIndex",
|
|
15646
|
-
value: function(
|
|
15642
|
+
value: function(E) {
|
|
15647
15643
|
var O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
15648
15644
|
if (O)
|
|
15649
|
-
return this.domNode.textContent.slice(0,
|
|
15645
|
+
return this.domNode.textContent.slice(0, E).lastIndexOf(`
|
|
15650
15646
|
`);
|
|
15651
|
-
var R = this.domNode.textContent.slice(
|
|
15647
|
+
var R = this.domNode.textContent.slice(E).indexOf(`
|
|
15652
15648
|
`);
|
|
15653
|
-
return R > -1 ?
|
|
15649
|
+
return R > -1 ? E + R : -1;
|
|
15654
15650
|
}
|
|
15655
15651
|
}, {
|
|
15656
15652
|
key: "optimize",
|
|
15657
|
-
value: function(
|
|
15653
|
+
value: function(E) {
|
|
15658
15654
|
this.domNode.textContent.endsWith(`
|
|
15659
15655
|
`) || this.appendChild(f.default.create("text", `
|
|
15660
|
-
`)), o(N.prototype.__proto__ || Object.getPrototypeOf(N.prototype), "optimize", this).call(this,
|
|
15656
|
+
`)), o(N.prototype.__proto__ || Object.getPrototypeOf(N.prototype), "optimize", this).call(this, E);
|
|
15661
15657
|
var O = this.next;
|
|
15662
|
-
O != null && O.prev === this && O.statics.blotName === this.statics.blotName && this.statics.formats(this.domNode) === O.statics.formats(O.domNode) && (O.optimize(
|
|
15658
|
+
O != null && O.prev === this && O.statics.blotName === this.statics.blotName && this.statics.formats(this.domNode) === O.statics.formats(O.domNode) && (O.optimize(E), O.moveChildren(this), O.remove());
|
|
15663
15659
|
}
|
|
15664
15660
|
}, {
|
|
15665
15661
|
key: "replace",
|
|
15666
|
-
value: function(
|
|
15667
|
-
o(N.prototype.__proto__ || Object.getPrototypeOf(N.prototype), "replace", this).call(this,
|
|
15662
|
+
value: function(E) {
|
|
15663
|
+
o(N.prototype.__proto__ || Object.getPrototypeOf(N.prototype), "replace", this).call(this, E), [].slice.call(this.domNode.querySelectorAll("*")).forEach(function(O) {
|
|
15668
15664
|
var R = f.default.find(O);
|
|
15669
15665
|
R == null ? O.parentNode.removeChild(O) : R instanceof f.default.Embed ? R.remove() : R.unwrap();
|
|
15670
15666
|
});
|
|
15671
15667
|
}
|
|
15672
15668
|
}], [{
|
|
15673
15669
|
key: "create",
|
|
15674
|
-
value: function(
|
|
15675
|
-
var O = o(N.__proto__ || Object.getPrototypeOf(N), "create", this).call(this,
|
|
15670
|
+
value: function(E) {
|
|
15671
|
+
var O = o(N.__proto__ || Object.getPrototypeOf(N), "create", this).call(this, E);
|
|
15676
15672
|
return O.setAttribute("spellcheck", !1), O;
|
|
15677
15673
|
}
|
|
15678
15674
|
}, {
|
|
@@ -15729,7 +15725,7 @@ var Hh = { exports: {} };
|
|
|
15729
15725
|
return function(k, I, P) {
|
|
15730
15726
|
return I && $(k.prototype, I), P && $(k, P), k;
|
|
15731
15727
|
};
|
|
15732
|
-
}(), l = i(2), h = O(l), c = i(20), f = O(c), u = i(0), d = O(u), p = i(13), m = O(p), g = i(24), y = O(g), b = i(4), _ = O(b), v = i(16), x = O(v), S = i(21), w = O(S),
|
|
15728
|
+
}(), l = i(2), h = O(l), c = i(20), f = O(c), u = i(0), d = O(u), p = i(13), m = O(p), g = i(24), y = O(g), b = i(4), _ = O(b), v = i(16), x = O(v), S = i(21), w = O(S), T = i(11), N = O(T), A = i(3), E = O(A);
|
|
15733
15729
|
function O($) {
|
|
15734
15730
|
return $ && $.__esModule ? $ : { default: $ };
|
|
15735
15731
|
}
|
|
@@ -15758,12 +15754,12 @@ var Hh = { exports: {} };
|
|
|
15758
15754
|
H.endsWith(`
|
|
15759
15755
|
`) && L && (L = !1, H = H.slice(0, -1)), G >= j && !H.endsWith(`
|
|
15760
15756
|
`) && (L = !0), P.scroll.insertAt(G, H);
|
|
15761
|
-
var X = P.scroll.line(G), K = a(X, 2), tt = K[0], rt = K[1],
|
|
15757
|
+
var X = P.scroll.line(G), K = a(X, 2), tt = K[0], rt = K[1], at = (0, E.default)({}, (0, b.bubbleFormats)(tt));
|
|
15762
15758
|
if (tt instanceof _.default) {
|
|
15763
15759
|
var ut = tt.descendant(d.default.Leaf, rt), It = a(ut, 1), St = It[0];
|
|
15764
|
-
|
|
15760
|
+
at = (0, E.default)(at, (0, b.bubbleFormats)(St));
|
|
15765
15761
|
}
|
|
15766
|
-
q = f.default.attributes.diff(
|
|
15762
|
+
q = f.default.attributes.diff(at, q) || {};
|
|
15767
15763
|
} else if (s(M.insert) === "object") {
|
|
15768
15764
|
var V = Object.keys(M.insert)[0];
|
|
15769
15765
|
if (V == null)
|
|
@@ -15843,7 +15839,7 @@ var Hh = { exports: {} };
|
|
|
15843
15839
|
}
|
|
15844
15840
|
return B;
|
|
15845
15841
|
});
|
|
15846
|
-
return
|
|
15842
|
+
return E.default.apply(E.default, G);
|
|
15847
15843
|
}
|
|
15848
15844
|
}, {
|
|
15849
15845
|
key: "getText",
|
|
@@ -15932,10 +15928,10 @@ var Hh = { exports: {} };
|
|
|
15932
15928
|
value: !0
|
|
15933
15929
|
}), n.default = n.Range = void 0;
|
|
15934
15930
|
var s = function() {
|
|
15935
|
-
function
|
|
15936
|
-
var
|
|
15931
|
+
function T(N, A) {
|
|
15932
|
+
var E = [], O = !0, R = !1, C = void 0;
|
|
15937
15933
|
try {
|
|
15938
|
-
for (var F = N[Symbol.iterator](), U; !(O = (U = F.next()).done) && (
|
|
15934
|
+
for (var F = N[Symbol.iterator](), U; !(O = (U = F.next()).done) && (E.push(U.value), !(A && E.length === A)); O = !0)
|
|
15939
15935
|
;
|
|
15940
15936
|
} catch (D) {
|
|
15941
15937
|
R = !0, C = D;
|
|
@@ -15947,57 +15943,57 @@ var Hh = { exports: {} };
|
|
|
15947
15943
|
throw C;
|
|
15948
15944
|
}
|
|
15949
15945
|
}
|
|
15950
|
-
return
|
|
15946
|
+
return E;
|
|
15951
15947
|
}
|
|
15952
15948
|
return function(N, A) {
|
|
15953
15949
|
if (Array.isArray(N))
|
|
15954
15950
|
return N;
|
|
15955
15951
|
if (Symbol.iterator in Object(N))
|
|
15956
|
-
return
|
|
15952
|
+
return T(N, A);
|
|
15957
15953
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
15958
15954
|
};
|
|
15959
15955
|
}(), a = function() {
|
|
15960
|
-
function
|
|
15961
|
-
for (var
|
|
15962
|
-
var O = A[
|
|
15956
|
+
function T(N, A) {
|
|
15957
|
+
for (var E = 0; E < A.length; E++) {
|
|
15958
|
+
var O = A[E];
|
|
15963
15959
|
O.enumerable = O.enumerable || !1, O.configurable = !0, "value" in O && (O.writable = !0), Object.defineProperty(N, O.key, O);
|
|
15964
15960
|
}
|
|
15965
15961
|
}
|
|
15966
|
-
return function(N, A,
|
|
15967
|
-
return A &&
|
|
15962
|
+
return function(N, A, E) {
|
|
15963
|
+
return A && T(N.prototype, A), E && T(N, E), N;
|
|
15968
15964
|
};
|
|
15969
15965
|
}(), o = i(0), l = y(o), h = i(21), c = y(h), f = i(11), u = y(f), d = i(8), p = y(d), m = i(10), g = y(m);
|
|
15970
|
-
function y(
|
|
15971
|
-
return
|
|
15966
|
+
function y(T) {
|
|
15967
|
+
return T && T.__esModule ? T : { default: T };
|
|
15972
15968
|
}
|
|
15973
|
-
function b(
|
|
15974
|
-
if (Array.isArray(
|
|
15975
|
-
for (var N = 0, A = Array(
|
|
15976
|
-
A[N] =
|
|
15969
|
+
function b(T) {
|
|
15970
|
+
if (Array.isArray(T)) {
|
|
15971
|
+
for (var N = 0, A = Array(T.length); N < T.length; N++)
|
|
15972
|
+
A[N] = T[N];
|
|
15977
15973
|
return A;
|
|
15978
15974
|
} else
|
|
15979
|
-
return Array.from(
|
|
15975
|
+
return Array.from(T);
|
|
15980
15976
|
}
|
|
15981
|
-
function _(
|
|
15982
|
-
if (!(
|
|
15977
|
+
function _(T, N) {
|
|
15978
|
+
if (!(T instanceof N))
|
|
15983
15979
|
throw new TypeError("Cannot call a class as a function");
|
|
15984
15980
|
}
|
|
15985
|
-
var v = (0, g.default)("quill:selection"), x = function
|
|
15981
|
+
var v = (0, g.default)("quill:selection"), x = function T(N) {
|
|
15986
15982
|
var A = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
15987
|
-
_(this,
|
|
15983
|
+
_(this, T), this.index = N, this.length = A;
|
|
15988
15984
|
}, S = function() {
|
|
15989
|
-
function
|
|
15990
|
-
var
|
|
15991
|
-
_(this,
|
|
15992
|
-
|
|
15985
|
+
function T(N, A) {
|
|
15986
|
+
var E = this;
|
|
15987
|
+
_(this, T), this.emitter = A, this.scroll = N, this.composing = !1, this.mouseDown = !1, this.root = this.scroll.domNode, this.cursor = l.default.create("cursor", this), this.lastRange = this.savedRange = new x(0, 0), this.handleComposition(), this.handleDragging(), this.emitter.listenDOM("selectionchange", document, function() {
|
|
15988
|
+
E.mouseDown || setTimeout(E.update.bind(E, p.default.sources.USER), 1);
|
|
15993
15989
|
}), this.emitter.on(p.default.events.EDITOR_CHANGE, function(O, R) {
|
|
15994
|
-
O === p.default.events.TEXT_CHANGE && R.length() > 0 &&
|
|
15990
|
+
O === p.default.events.TEXT_CHANGE && R.length() > 0 && E.update(p.default.sources.SILENT);
|
|
15995
15991
|
}), this.emitter.on(p.default.events.SCROLL_BEFORE_UPDATE, function() {
|
|
15996
|
-
if (
|
|
15997
|
-
var O =
|
|
15998
|
-
O != null && O.start.node !==
|
|
15992
|
+
if (E.hasFocus()) {
|
|
15993
|
+
var O = E.getNativeRange();
|
|
15994
|
+
O != null && O.start.node !== E.cursor.textNode && E.emitter.once(p.default.events.SCROLL_UPDATE, function() {
|
|
15999
15995
|
try {
|
|
16000
|
-
|
|
15996
|
+
E.setNativeRange(O.start.node, O.start.offset, O.end.node, O.end.offset);
|
|
16001
15997
|
} catch {
|
|
16002
15998
|
}
|
|
16003
15999
|
});
|
|
@@ -16005,11 +16001,11 @@ var Hh = { exports: {} };
|
|
|
16005
16001
|
}), this.emitter.on(p.default.events.SCROLL_OPTIMIZE, function(O, R) {
|
|
16006
16002
|
if (R.range) {
|
|
16007
16003
|
var C = R.range, F = C.startNode, U = C.startOffset, D = C.endNode, z = C.endOffset;
|
|
16008
|
-
|
|
16004
|
+
E.setNativeRange(F, U, D, z);
|
|
16009
16005
|
}
|
|
16010
16006
|
}), this.update(p.default.sources.SILENT);
|
|
16011
16007
|
}
|
|
16012
|
-
return a(
|
|
16008
|
+
return a(T, [{
|
|
16013
16009
|
key: "handleComposition",
|
|
16014
16010
|
value: function() {
|
|
16015
16011
|
var A = this;
|
|
@@ -16017,11 +16013,11 @@ var Hh = { exports: {} };
|
|
|
16017
16013
|
A.composing = !0;
|
|
16018
16014
|
}), this.root.addEventListener("compositionend", function() {
|
|
16019
16015
|
if (A.composing = !1, A.cursor.parent) {
|
|
16020
|
-
var
|
|
16021
|
-
if (!
|
|
16016
|
+
var E = A.cursor.restore();
|
|
16017
|
+
if (!E)
|
|
16022
16018
|
return;
|
|
16023
16019
|
setTimeout(function() {
|
|
16024
|
-
A.setNativeRange(
|
|
16020
|
+
A.setNativeRange(E.startNode, E.startOffset, E.endNode, E.endOffset);
|
|
16025
16021
|
}, 1);
|
|
16026
16022
|
}
|
|
16027
16023
|
});
|
|
@@ -16043,7 +16039,7 @@ var Hh = { exports: {} };
|
|
|
16043
16039
|
}
|
|
16044
16040
|
}, {
|
|
16045
16041
|
key: "format",
|
|
16046
|
-
value: function(A,
|
|
16042
|
+
value: function(A, E) {
|
|
16047
16043
|
if (!(this.scroll.whitelist != null && !this.scroll.whitelist[A])) {
|
|
16048
16044
|
this.scroll.update();
|
|
16049
16045
|
var O = this.getNativeRange();
|
|
@@ -16059,24 +16055,24 @@ var Hh = { exports: {} };
|
|
|
16059
16055
|
R.insertBefore(this.cursor, O.start.node);
|
|
16060
16056
|
this.cursor.attach();
|
|
16061
16057
|
}
|
|
16062
|
-
this.cursor.format(A,
|
|
16058
|
+
this.cursor.format(A, E), this.scroll.optimize(), this.setNativeRange(this.cursor.textNode, this.cursor.textNode.data.length), this.update();
|
|
16063
16059
|
}
|
|
16064
16060
|
}
|
|
16065
16061
|
}
|
|
16066
16062
|
}, {
|
|
16067
16063
|
key: "getBounds",
|
|
16068
16064
|
value: function(A) {
|
|
16069
|
-
var
|
|
16070
|
-
A = Math.min(A, O - 1),
|
|
16065
|
+
var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, O = this.scroll.length();
|
|
16066
|
+
A = Math.min(A, O - 1), E = Math.min(A + E, O - 1) - A;
|
|
16071
16067
|
var R = void 0, C = this.scroll.leaf(A), F = s(C, 2), U = F[0], D = F[1];
|
|
16072
16068
|
if (U == null)
|
|
16073
16069
|
return null;
|
|
16074
16070
|
var z = U.position(D, !0), $ = s(z, 2);
|
|
16075
16071
|
R = $[0], D = $[1];
|
|
16076
16072
|
var k = document.createRange();
|
|
16077
|
-
if (
|
|
16073
|
+
if (E > 0) {
|
|
16078
16074
|
k.setStart(R, D);
|
|
16079
|
-
var I = this.scroll.leaf(A +
|
|
16075
|
+
var I = this.scroll.leaf(A + E), P = s(I, 2);
|
|
16080
16076
|
if (U = P[0], D = P[1], U == null)
|
|
16081
16077
|
return null;
|
|
16082
16078
|
var L = U.position(D, !0), j = s(L, 2);
|
|
@@ -16099,10 +16095,10 @@ var Hh = { exports: {} };
|
|
|
16099
16095
|
var A = document.getSelection();
|
|
16100
16096
|
if (A == null || A.rangeCount <= 0)
|
|
16101
16097
|
return null;
|
|
16102
|
-
var
|
|
16103
|
-
if (
|
|
16098
|
+
var E = A.getRangeAt(0);
|
|
16099
|
+
if (E == null)
|
|
16104
16100
|
return null;
|
|
16105
|
-
var O = this.normalizeNative(
|
|
16101
|
+
var O = this.normalizeNative(E);
|
|
16106
16102
|
return v.info("getNativeRange", O), O;
|
|
16107
16103
|
}
|
|
16108
16104
|
}, {
|
|
@@ -16111,8 +16107,8 @@ var Hh = { exports: {} };
|
|
|
16111
16107
|
var A = this.getNativeRange();
|
|
16112
16108
|
if (A == null)
|
|
16113
16109
|
return [null, null];
|
|
16114
|
-
var
|
|
16115
|
-
return [
|
|
16110
|
+
var E = this.normalizedToRange(A);
|
|
16111
|
+
return [E, A];
|
|
16116
16112
|
}
|
|
16117
16113
|
}, {
|
|
16118
16114
|
key: "hasFocus",
|
|
@@ -16122,10 +16118,10 @@ var Hh = { exports: {} };
|
|
|
16122
16118
|
}, {
|
|
16123
16119
|
key: "normalizedToRange",
|
|
16124
16120
|
value: function(A) {
|
|
16125
|
-
var
|
|
16121
|
+
var E = this, O = [[A.start.node, A.start.offset]];
|
|
16126
16122
|
A.native.collapsed || O.push([A.end.node, A.end.offset]);
|
|
16127
16123
|
var R = O.map(function(U) {
|
|
16128
|
-
var D = s(U, 2), z = D[0], $ = D[1], k = l.default.find(z, !0), I = k.offset(
|
|
16124
|
+
var D = s(U, 2), z = D[0], $ = D[1], k = l.default.find(z, !0), I = k.offset(E.scroll);
|
|
16129
16125
|
return $ === 0 ? I : k instanceof l.default.Container ? I + k.length() : I + k.index(z, $);
|
|
16130
16126
|
}), C = Math.min(Math.max.apply(Math, b(R)), this.scroll.length() - 1), F = Math.min.apply(Math, [C].concat(b(R)));
|
|
16131
16127
|
return new x(F, C - F);
|
|
@@ -16135,12 +16131,12 @@ var Hh = { exports: {} };
|
|
|
16135
16131
|
value: function(A) {
|
|
16136
16132
|
if (!w(this.root, A.startContainer) || !A.collapsed && !w(this.root, A.endContainer))
|
|
16137
16133
|
return null;
|
|
16138
|
-
var
|
|
16134
|
+
var E = {
|
|
16139
16135
|
start: { node: A.startContainer, offset: A.startOffset },
|
|
16140
16136
|
end: { node: A.endContainer, offset: A.endOffset },
|
|
16141
16137
|
native: A
|
|
16142
16138
|
};
|
|
16143
|
-
return [
|
|
16139
|
+
return [E.start, E.end].forEach(function(O) {
|
|
16144
16140
|
for (var R = O.node, C = O.offset; !(R instanceof Text) && R.childNodes.length > 0; )
|
|
16145
16141
|
if (R.childNodes.length > C)
|
|
16146
16142
|
R = R.childNodes[C], C = 0;
|
|
@@ -16149,28 +16145,28 @@ var Hh = { exports: {} };
|
|
|
16149
16145
|
else
|
|
16150
16146
|
break;
|
|
16151
16147
|
O.node = R, O.offset = C;
|
|
16152
|
-
}),
|
|
16148
|
+
}), E;
|
|
16153
16149
|
}
|
|
16154
16150
|
}, {
|
|
16155
16151
|
key: "rangeToNative",
|
|
16156
16152
|
value: function(A) {
|
|
16157
|
-
var
|
|
16153
|
+
var E = this, O = A.collapsed ? [A.index] : [A.index, A.index + A.length], R = [], C = this.scroll.length();
|
|
16158
16154
|
return O.forEach(function(F, U) {
|
|
16159
16155
|
F = Math.min(C - 1, F);
|
|
16160
|
-
var D = void 0, z =
|
|
16156
|
+
var D = void 0, z = E.scroll.leaf(F), $ = s(z, 2), k = $[0], I = $[1], P = k.position(I, U !== 0), L = s(P, 2);
|
|
16161
16157
|
D = L[0], I = L[1], R.push(D, I);
|
|
16162
16158
|
}), R.length < 2 && (R = R.concat(R)), R;
|
|
16163
16159
|
}
|
|
16164
16160
|
}, {
|
|
16165
16161
|
key: "scrollIntoView",
|
|
16166
16162
|
value: function(A) {
|
|
16167
|
-
var
|
|
16168
|
-
if (
|
|
16169
|
-
var O = this.getBounds(
|
|
16163
|
+
var E = this.lastRange;
|
|
16164
|
+
if (E != null) {
|
|
16165
|
+
var O = this.getBounds(E.index, E.length);
|
|
16170
16166
|
if (O != null) {
|
|
16171
|
-
var R = this.scroll.length() - 1, C = this.scroll.line(Math.min(
|
|
16172
|
-
if (
|
|
16173
|
-
var z = this.scroll.line(Math.min(
|
|
16167
|
+
var R = this.scroll.length() - 1, C = this.scroll.line(Math.min(E.index, R)), F = s(C, 1), U = F[0], D = U;
|
|
16168
|
+
if (E.length > 0) {
|
|
16169
|
+
var z = this.scroll.line(Math.min(E.index + E.length, R)), $ = s(z, 1);
|
|
16174
16170
|
D = $[0];
|
|
16175
16171
|
}
|
|
16176
16172
|
if (!(U == null || D == null)) {
|
|
@@ -16182,18 +16178,18 @@ var Hh = { exports: {} };
|
|
|
16182
16178
|
}
|
|
16183
16179
|
}, {
|
|
16184
16180
|
key: "setNativeRange",
|
|
16185
|
-
value: function(A,
|
|
16186
|
-
var O = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : A, R = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] :
|
|
16187
|
-
if (v.info("setNativeRange", A,
|
|
16181
|
+
value: function(A, E) {
|
|
16182
|
+
var O = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : A, R = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : E, C = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
|
|
16183
|
+
if (v.info("setNativeRange", A, E, O, R), !(A != null && (this.root.parentNode == null || A.parentNode == null || O.parentNode == null))) {
|
|
16188
16184
|
var F = document.getSelection();
|
|
16189
16185
|
if (F != null)
|
|
16190
16186
|
if (A != null) {
|
|
16191
16187
|
this.hasFocus() || this.root.focus();
|
|
16192
16188
|
var U = (this.getNativeRange() || {}).native;
|
|
16193
|
-
if (U == null || C || A !== U.startContainer ||
|
|
16194
|
-
A.tagName == "BR" && (
|
|
16189
|
+
if (U == null || C || A !== U.startContainer || E !== U.startOffset || O !== U.endContainer || R !== U.endOffset) {
|
|
16190
|
+
A.tagName == "BR" && (E = [].indexOf.call(A.parentNode.childNodes, A), A = A.parentNode), O.tagName == "BR" && (R = [].indexOf.call(O.parentNode.childNodes, O), O = O.parentNode);
|
|
16195
16191
|
var D = document.createRange();
|
|
16196
|
-
D.setStart(A,
|
|
16192
|
+
D.setStart(A, E), D.setEnd(O, R), F.removeAllRanges(), F.addRange(D);
|
|
16197
16193
|
}
|
|
16198
16194
|
} else
|
|
16199
16195
|
F.removeAllRanges(), this.root.blur(), document.body.focus();
|
|
@@ -16202,10 +16198,10 @@ var Hh = { exports: {} };
|
|
|
16202
16198
|
}, {
|
|
16203
16199
|
key: "setRange",
|
|
16204
16200
|
value: function(A) {
|
|
16205
|
-
var
|
|
16206
|
-
if (typeof
|
|
16201
|
+
var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, O = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : p.default.sources.API;
|
|
16202
|
+
if (typeof E == "string" && (O = E, E = !1), v.info("setRange", A), A != null) {
|
|
16207
16203
|
var R = this.rangeToNative(A);
|
|
16208
|
-
this.setNativeRange.apply(this, b(R).concat([
|
|
16204
|
+
this.setNativeRange.apply(this, b(R).concat([E]));
|
|
16209
16205
|
} else
|
|
16210
16206
|
this.setNativeRange(null);
|
|
16211
16207
|
this.update(O);
|
|
@@ -16213,26 +16209,26 @@ var Hh = { exports: {} };
|
|
|
16213
16209
|
}, {
|
|
16214
16210
|
key: "update",
|
|
16215
16211
|
value: function() {
|
|
16216
|
-
var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : p.default.sources.USER,
|
|
16217
|
-
if (this.lastRange = C, this.lastRange != null && (this.savedRange = this.lastRange), !(0, u.default)(
|
|
16212
|
+
var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : p.default.sources.USER, E = this.lastRange, O = this.getRange(), R = s(O, 2), C = R[0], F = R[1];
|
|
16213
|
+
if (this.lastRange = C, this.lastRange != null && (this.savedRange = this.lastRange), !(0, u.default)(E, this.lastRange)) {
|
|
16218
16214
|
var U;
|
|
16219
16215
|
!this.composing && F != null && F.native.collapsed && F.start.node !== this.cursor.textNode && this.cursor.restore();
|
|
16220
|
-
var D = [p.default.events.SELECTION_CHANGE, (0, c.default)(this.lastRange), (0, c.default)(
|
|
16216
|
+
var D = [p.default.events.SELECTION_CHANGE, (0, c.default)(this.lastRange), (0, c.default)(E), A];
|
|
16221
16217
|
if ((U = this.emitter).emit.apply(U, [p.default.events.EDITOR_CHANGE].concat(D)), A !== p.default.sources.SILENT) {
|
|
16222
16218
|
var z;
|
|
16223
16219
|
(z = this.emitter).emit.apply(z, D);
|
|
16224
16220
|
}
|
|
16225
16221
|
}
|
|
16226
16222
|
}
|
|
16227
|
-
}]),
|
|
16223
|
+
}]), T;
|
|
16228
16224
|
}();
|
|
16229
|
-
function w(
|
|
16225
|
+
function w(T, N) {
|
|
16230
16226
|
try {
|
|
16231
16227
|
N.parentNode;
|
|
16232
16228
|
} catch {
|
|
16233
16229
|
return !1;
|
|
16234
16230
|
}
|
|
16235
|
-
return N instanceof Text && (N = N.parentNode),
|
|
16231
|
+
return N instanceof Text && (N = N.parentNode), T.contains(N);
|
|
16236
16232
|
}
|
|
16237
16233
|
n.Range = x, n.default = S;
|
|
16238
16234
|
},
|
|
@@ -16666,65 +16662,65 @@ var Hh = { exports: {} };
|
|
|
16666
16662
|
typeof g == "object" && (y = g.depth, b = g.prototype, _ = g.includeNonEnumerable, g = g.circular);
|
|
16667
16663
|
var v = [], x = [], S = typeof Buffer < "u";
|
|
16668
16664
|
typeof g > "u" && (g = !0), typeof y > "u" && (y = 1 / 0);
|
|
16669
|
-
function w(
|
|
16670
|
-
if (
|
|
16665
|
+
function w(T, N) {
|
|
16666
|
+
if (T === null)
|
|
16671
16667
|
return null;
|
|
16672
16668
|
if (N === 0)
|
|
16673
|
-
return
|
|
16674
|
-
var A,
|
|
16675
|
-
if (typeof
|
|
16676
|
-
return
|
|
16677
|
-
if (s(
|
|
16669
|
+
return T;
|
|
16670
|
+
var A, E;
|
|
16671
|
+
if (typeof T != "object")
|
|
16672
|
+
return T;
|
|
16673
|
+
if (s(T, a))
|
|
16678
16674
|
A = new a();
|
|
16679
|
-
else if (s(
|
|
16675
|
+
else if (s(T, o))
|
|
16680
16676
|
A = new o();
|
|
16681
|
-
else if (s(
|
|
16677
|
+
else if (s(T, l))
|
|
16682
16678
|
A = new l(function(k, I) {
|
|
16683
|
-
|
|
16679
|
+
T.then(function(P) {
|
|
16684
16680
|
k(w(P, N - 1));
|
|
16685
16681
|
}, function(P) {
|
|
16686
16682
|
I(w(P, N - 1));
|
|
16687
16683
|
});
|
|
16688
16684
|
});
|
|
16689
|
-
else if (h.__isArray(
|
|
16685
|
+
else if (h.__isArray(T))
|
|
16690
16686
|
A = [];
|
|
16691
|
-
else if (h.__isRegExp(
|
|
16692
|
-
A = new RegExp(
|
|
16693
|
-
else if (h.__isDate(
|
|
16694
|
-
A = new Date(
|
|
16687
|
+
else if (h.__isRegExp(T))
|
|
16688
|
+
A = new RegExp(T.source, p(T)), T.lastIndex && (A.lastIndex = T.lastIndex);
|
|
16689
|
+
else if (h.__isDate(T))
|
|
16690
|
+
A = new Date(T.getTime());
|
|
16695
16691
|
else {
|
|
16696
|
-
if (S && Buffer.isBuffer(
|
|
16697
|
-
return Buffer.allocUnsafe ? A = Buffer.allocUnsafe(
|
|
16698
|
-
s(
|
|
16692
|
+
if (S && Buffer.isBuffer(T))
|
|
16693
|
+
return Buffer.allocUnsafe ? A = Buffer.allocUnsafe(T.length) : A = new Buffer(T.length), T.copy(A), A;
|
|
16694
|
+
s(T, Error) ? A = Object.create(T) : typeof b > "u" ? (E = Object.getPrototypeOf(T), A = Object.create(E)) : (A = Object.create(b), E = b);
|
|
16699
16695
|
}
|
|
16700
16696
|
if (g) {
|
|
16701
|
-
var O = v.indexOf(
|
|
16697
|
+
var O = v.indexOf(T);
|
|
16702
16698
|
if (O != -1)
|
|
16703
16699
|
return x[O];
|
|
16704
|
-
v.push(
|
|
16700
|
+
v.push(T), x.push(A);
|
|
16705
16701
|
}
|
|
16706
|
-
s(
|
|
16702
|
+
s(T, a) && T.forEach(function(k, I) {
|
|
16707
16703
|
var P = w(I, N - 1), L = w(k, N - 1);
|
|
16708
16704
|
A.set(P, L);
|
|
16709
|
-
}), s(
|
|
16705
|
+
}), s(T, o) && T.forEach(function(k) {
|
|
16710
16706
|
var I = w(k, N - 1);
|
|
16711
16707
|
A.add(I);
|
|
16712
16708
|
});
|
|
16713
|
-
for (var R in
|
|
16709
|
+
for (var R in T) {
|
|
16714
16710
|
var C;
|
|
16715
|
-
|
|
16711
|
+
E && (C = Object.getOwnPropertyDescriptor(E, R)), !(C && C.set == null) && (A[R] = w(T[R], N - 1));
|
|
16716
16712
|
}
|
|
16717
16713
|
if (Object.getOwnPropertySymbols)
|
|
16718
|
-
for (var F = Object.getOwnPropertySymbols(
|
|
16719
|
-
var U = F[R], D = Object.getOwnPropertyDescriptor(
|
|
16720
|
-
D && !D.enumerable && !_ || (A[U] = w(
|
|
16714
|
+
for (var F = Object.getOwnPropertySymbols(T), R = 0; R < F.length; R++) {
|
|
16715
|
+
var U = F[R], D = Object.getOwnPropertyDescriptor(T, U);
|
|
16716
|
+
D && !D.enumerable && !_ || (A[U] = w(T[U], N - 1), D.enumerable || Object.defineProperty(A, U, {
|
|
16721
16717
|
enumerable: !1
|
|
16722
16718
|
}));
|
|
16723
16719
|
}
|
|
16724
16720
|
if (_)
|
|
16725
|
-
for (var z = Object.getOwnPropertyNames(
|
|
16726
|
-
var $ = z[R], D = Object.getOwnPropertyDescriptor(
|
|
16727
|
-
D && D.enumerable || (A[$] = w(
|
|
16721
|
+
for (var z = Object.getOwnPropertyNames(T), R = 0; R < z.length; R++) {
|
|
16722
|
+
var $ = z[R], D = Object.getOwnPropertyDescriptor(T, $);
|
|
16723
|
+
D && D.enumerable || (A[$] = w(T[$], N - 1), Object.defineProperty(A, $, {
|
|
16728
16724
|
enumerable: !1
|
|
16729
16725
|
}));
|
|
16730
16726
|
}
|
|
@@ -16770,10 +16766,10 @@ var Hh = { exports: {} };
|
|
|
16770
16766
|
value: !0
|
|
16771
16767
|
});
|
|
16772
16768
|
var s = function() {
|
|
16773
|
-
function A(
|
|
16769
|
+
function A(E, O) {
|
|
16774
16770
|
var R = [], C = !0, F = !1, U = void 0;
|
|
16775
16771
|
try {
|
|
16776
|
-
for (var D =
|
|
16772
|
+
for (var D = E[Symbol.iterator](), z; !(C = (z = D.next()).done) && (R.push(z.value), !(O && R.length === O)); C = !0)
|
|
16777
16773
|
;
|
|
16778
16774
|
} catch ($) {
|
|
16779
16775
|
F = !0, U = $;
|
|
@@ -16787,28 +16783,28 @@ var Hh = { exports: {} };
|
|
|
16787
16783
|
}
|
|
16788
16784
|
return R;
|
|
16789
16785
|
}
|
|
16790
|
-
return function(
|
|
16791
|
-
if (Array.isArray(
|
|
16792
|
-
return
|
|
16793
|
-
if (Symbol.iterator in Object(
|
|
16794
|
-
return A(
|
|
16786
|
+
return function(E, O) {
|
|
16787
|
+
if (Array.isArray(E))
|
|
16788
|
+
return E;
|
|
16789
|
+
if (Symbol.iterator in Object(E))
|
|
16790
|
+
return A(E, O);
|
|
16795
16791
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
16796
16792
|
};
|
|
16797
16793
|
}(), a = function() {
|
|
16798
|
-
function A(
|
|
16794
|
+
function A(E, O) {
|
|
16799
16795
|
for (var R = 0; R < O.length; R++) {
|
|
16800
16796
|
var C = O[R];
|
|
16801
|
-
C.enumerable = C.enumerable || !1, C.configurable = !0, "value" in C && (C.writable = !0), Object.defineProperty(
|
|
16797
|
+
C.enumerable = C.enumerable || !1, C.configurable = !0, "value" in C && (C.writable = !0), Object.defineProperty(E, C.key, C);
|
|
16802
16798
|
}
|
|
16803
16799
|
}
|
|
16804
|
-
return function(
|
|
16805
|
-
return O && A(
|
|
16800
|
+
return function(E, O, R) {
|
|
16801
|
+
return O && A(E.prototype, O), R && A(E, R), E;
|
|
16806
16802
|
};
|
|
16807
|
-
}(), o = function A(
|
|
16808
|
-
|
|
16809
|
-
var C = Object.getOwnPropertyDescriptor(
|
|
16803
|
+
}(), o = function A(E, O, R) {
|
|
16804
|
+
E === null && (E = Function.prototype);
|
|
16805
|
+
var C = Object.getOwnPropertyDescriptor(E, O);
|
|
16810
16806
|
if (C === void 0) {
|
|
16811
|
-
var F = Object.getPrototypeOf(
|
|
16807
|
+
var F = Object.getPrototypeOf(E);
|
|
16812
16808
|
return F === null ? void 0 : A(F, O, R);
|
|
16813
16809
|
} else {
|
|
16814
16810
|
if ("value" in C)
|
|
@@ -16820,34 +16816,34 @@ var Hh = { exports: {} };
|
|
|
16820
16816
|
function v(A) {
|
|
16821
16817
|
return A && A.__esModule ? A : { default: A };
|
|
16822
16818
|
}
|
|
16823
|
-
function x(A,
|
|
16824
|
-
if (!(A instanceof
|
|
16819
|
+
function x(A, E) {
|
|
16820
|
+
if (!(A instanceof E))
|
|
16825
16821
|
throw new TypeError("Cannot call a class as a function");
|
|
16826
16822
|
}
|
|
16827
|
-
function S(A,
|
|
16823
|
+
function S(A, E) {
|
|
16828
16824
|
if (!A)
|
|
16829
16825
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16830
|
-
return
|
|
16826
|
+
return E && (typeof E == "object" || typeof E == "function") ? E : A;
|
|
16831
16827
|
}
|
|
16832
|
-
function w(A,
|
|
16833
|
-
if (typeof
|
|
16834
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
16835
|
-
A.prototype = Object.create(
|
|
16828
|
+
function w(A, E) {
|
|
16829
|
+
if (typeof E != "function" && E !== null)
|
|
16830
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof E);
|
|
16831
|
+
A.prototype = Object.create(E && E.prototype, { constructor: { value: A, enumerable: !1, writable: !0, configurable: !0 } }), E && (Object.setPrototypeOf ? Object.setPrototypeOf(A, E) : A.__proto__ = E);
|
|
16836
16832
|
}
|
|
16837
|
-
function
|
|
16833
|
+
function T(A) {
|
|
16838
16834
|
return A instanceof d.default || A instanceof u.BlockEmbed;
|
|
16839
16835
|
}
|
|
16840
16836
|
var N = function(A) {
|
|
16841
|
-
w(
|
|
16842
|
-
function
|
|
16843
|
-
x(this,
|
|
16844
|
-
var C = S(this, (
|
|
16837
|
+
w(E, A);
|
|
16838
|
+
function E(O, R) {
|
|
16839
|
+
x(this, E);
|
|
16840
|
+
var C = S(this, (E.__proto__ || Object.getPrototypeOf(E)).call(this, O));
|
|
16845
16841
|
return C.emitter = R.emitter, Array.isArray(R.whitelist) && (C.whitelist = R.whitelist.reduce(function(F, U) {
|
|
16846
16842
|
return F[U] = !0, F;
|
|
16847
16843
|
}, {})), C.domNode.addEventListener("DOMNodeInserted", function() {
|
|
16848
16844
|
}), C.optimize(), C.enable(), C;
|
|
16849
16845
|
}
|
|
16850
|
-
return a(
|
|
16846
|
+
return a(E, [{
|
|
16851
16847
|
key: "batchStart",
|
|
16852
16848
|
value: function() {
|
|
16853
16849
|
this.batch = !0;
|
|
@@ -16861,7 +16857,7 @@ var Hh = { exports: {} };
|
|
|
16861
16857
|
key: "deleteAt",
|
|
16862
16858
|
value: function(R, C) {
|
|
16863
16859
|
var F = this.line(R), U = s(F, 2), D = U[0], z = U[1], $ = this.line(R + C), k = s($, 1), I = k[0];
|
|
16864
|
-
if (o(
|
|
16860
|
+
if (o(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "deleteAt", this).call(this, R, C), I != null && D !== I && z > 0) {
|
|
16865
16861
|
if (D instanceof u.BlockEmbed || I instanceof u.BlockEmbed) {
|
|
16866
16862
|
this.optimize();
|
|
16867
16863
|
return;
|
|
@@ -16890,7 +16886,7 @@ var Hh = { exports: {} };
|
|
|
16890
16886
|
}, {
|
|
16891
16887
|
key: "formatAt",
|
|
16892
16888
|
value: function(R, C, F, U) {
|
|
16893
|
-
this.whitelist != null && !this.whitelist[F] || (o(
|
|
16889
|
+
this.whitelist != null && !this.whitelist[F] || (o(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "formatAt", this).call(this, R, C, F, U), this.optimize());
|
|
16894
16890
|
}
|
|
16895
16891
|
}, {
|
|
16896
16892
|
key: "insertAt",
|
|
@@ -16906,7 +16902,7 @@ var Hh = { exports: {} };
|
|
|
16906
16902
|
this.appendChild(D);
|
|
16907
16903
|
}
|
|
16908
16904
|
else
|
|
16909
|
-
o(
|
|
16905
|
+
o(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "insertAt", this).call(this, R, C, F);
|
|
16910
16906
|
this.optimize();
|
|
16911
16907
|
}
|
|
16912
16908
|
}
|
|
@@ -16917,7 +16913,7 @@ var Hh = { exports: {} };
|
|
|
16917
16913
|
var F = h.default.create(this.statics.defaultChild);
|
|
16918
16914
|
F.appendChild(R), R = F;
|
|
16919
16915
|
}
|
|
16920
|
-
o(
|
|
16916
|
+
o(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "insertBefore", this).call(this, R, C);
|
|
16921
16917
|
}
|
|
16922
16918
|
}, {
|
|
16923
16919
|
key: "leaf",
|
|
@@ -16927,7 +16923,7 @@ var Hh = { exports: {} };
|
|
|
16927
16923
|
}, {
|
|
16928
16924
|
key: "line",
|
|
16929
16925
|
value: function(R) {
|
|
16930
|
-
return R === this.length() ? this.line(R - 1) : this.descendant(
|
|
16926
|
+
return R === this.length() ? this.line(R - 1) : this.descendant(T, R);
|
|
16931
16927
|
}
|
|
16932
16928
|
}, {
|
|
16933
16929
|
key: "lines",
|
|
@@ -16935,7 +16931,7 @@ var Hh = { exports: {} };
|
|
|
16935
16931
|
var R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, F = function U(D, z, $) {
|
|
16936
16932
|
var k = [], I = $;
|
|
16937
16933
|
return D.children.forEachAt(z, $, function(P, L, j) {
|
|
16938
|
-
|
|
16934
|
+
T(P) ? k.push(P) : P instanceof h.default.Container && (k = k.concat(U(P, L, I))), I -= j;
|
|
16939
16935
|
}), k;
|
|
16940
16936
|
};
|
|
16941
16937
|
return F(this, R, C);
|
|
@@ -16944,22 +16940,22 @@ var Hh = { exports: {} };
|
|
|
16944
16940
|
key: "optimize",
|
|
16945
16941
|
value: function() {
|
|
16946
16942
|
var R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
16947
|
-
this.batch !== !0 && (o(
|
|
16943
|
+
this.batch !== !0 && (o(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "optimize", this).call(this, R, C), R.length > 0 && this.emitter.emit(f.default.events.SCROLL_OPTIMIZE, R, C));
|
|
16948
16944
|
}
|
|
16949
16945
|
}, {
|
|
16950
16946
|
key: "path",
|
|
16951
16947
|
value: function(R) {
|
|
16952
|
-
return o(
|
|
16948
|
+
return o(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "path", this).call(this, R).slice(1);
|
|
16953
16949
|
}
|
|
16954
16950
|
}, {
|
|
16955
16951
|
key: "update",
|
|
16956
16952
|
value: function(R) {
|
|
16957
16953
|
if (this.batch !== !0) {
|
|
16958
16954
|
var C = f.default.sources.USER;
|
|
16959
|
-
typeof R == "string" && (C = R), Array.isArray(R) || (R = this.observer.takeRecords()), R.length > 0 && this.emitter.emit(f.default.events.SCROLL_BEFORE_UPDATE, C, R), o(
|
|
16955
|
+
typeof R == "string" && (C = R), Array.isArray(R) || (R = this.observer.takeRecords()), R.length > 0 && this.emitter.emit(f.default.events.SCROLL_BEFORE_UPDATE, C, R), o(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "update", this).call(this, R.concat([])), R.length > 0 && this.emitter.emit(f.default.events.SCROLL_UPDATE, C, R);
|
|
16960
16956
|
}
|
|
16961
16957
|
}
|
|
16962
|
-
}]),
|
|
16958
|
+
}]), E;
|
|
16963
16959
|
}(h.default.Scroll);
|
|
16964
16960
|
N.blotName = "scroll", N.className = "ql-editor", N.tagName = "DIV", N.defaultChild = "block", N.allowedChildren = [d.default, u.BlockEmbed, _.default], n.default = N;
|
|
16965
16961
|
},
|
|
@@ -16977,7 +16973,7 @@ var Hh = { exports: {} };
|
|
|
16977
16973
|
function M(B, q) {
|
|
16978
16974
|
var H = [], X = !0, K = !1, tt = void 0;
|
|
16979
16975
|
try {
|
|
16980
|
-
for (var rt = B[Symbol.iterator](),
|
|
16976
|
+
for (var rt = B[Symbol.iterator](), at; !(X = (at = rt.next()).done) && (H.push(at.value), !(q && H.length === q)); X = !0)
|
|
16981
16977
|
;
|
|
16982
16978
|
} catch (ut) {
|
|
16983
16979
|
K = !0, tt = ut;
|
|
@@ -17008,11 +17004,11 @@ var Hh = { exports: {} };
|
|
|
17008
17004
|
return function(B, q, H) {
|
|
17009
17005
|
return q && M(B.prototype, q), H && M(B, H), B;
|
|
17010
17006
|
};
|
|
17011
|
-
}(), l = i(21), h = A(l), c = i(11), f = A(c), u = i(3), d = A(u), p = i(2), m = A(p), g = i(20), y = A(g), b = i(0), _ = A(b), v = i(5), x = A(v), S = i(10), w = A(S),
|
|
17007
|
+
}(), l = i(21), h = A(l), c = i(11), f = A(c), u = i(3), d = A(u), p = i(2), m = A(p), g = i(20), y = A(g), b = i(0), _ = A(b), v = i(5), x = A(v), S = i(10), w = A(S), T = i(9), N = A(T);
|
|
17012
17008
|
function A(M) {
|
|
17013
17009
|
return M && M.__esModule ? M : { default: M };
|
|
17014
17010
|
}
|
|
17015
|
-
function
|
|
17011
|
+
function E(M, B, q) {
|
|
17016
17012
|
return B in M ? Object.defineProperty(M, B, { value: q, enumerable: !0, configurable: !0, writable: !0 }) : M[B] = q, M;
|
|
17017
17013
|
}
|
|
17018
17014
|
function O(M, B) {
|
|
@@ -17066,7 +17062,7 @@ var Hh = { exports: {} };
|
|
|
17066
17062
|
if (tt.length !== 0) {
|
|
17067
17063
|
var rt = H.quill.getSelection();
|
|
17068
17064
|
if (!(rt == null || !H.quill.hasFocus())) {
|
|
17069
|
-
var
|
|
17065
|
+
var at = H.quill.getLine(rt.index), ut = a(at, 2), It = ut[0], St = ut[1], V = H.quill.getLeaf(rt.index), W = a(V, 2), Q = W[0], J = W[1], Y = rt.length === 0 ? [Q, J] : H.quill.getLeaf(rt.index + rt.length), ht = a(Y, 2), Z = ht[0], it = ht[1], At = Q instanceof _.default.Text ? Q.value().slice(0, J) : "", Gt = Z instanceof _.default.Text ? Z.value().slice(it) : "", bt = {
|
|
17070
17066
|
collapsed: rt.length === 0,
|
|
17071
17067
|
empty: rt.length === 0 && It.length() <= 1,
|
|
17072
17068
|
format: H.quill.getFormat(rt),
|
|
@@ -17202,24 +17198,24 @@ var Hh = { exports: {} };
|
|
|
17202
17198
|
var H = q.prefix.length, X = this.quill.getLine(B.index), K = a(X, 2), tt = K[0], rt = K[1];
|
|
17203
17199
|
if (rt > H)
|
|
17204
17200
|
return !0;
|
|
17205
|
-
var
|
|
17201
|
+
var at = void 0;
|
|
17206
17202
|
switch (q.prefix.trim()) {
|
|
17207
17203
|
case "[]":
|
|
17208
17204
|
case "[ ]":
|
|
17209
|
-
|
|
17205
|
+
at = "unchecked";
|
|
17210
17206
|
break;
|
|
17211
17207
|
case "[x]":
|
|
17212
|
-
|
|
17208
|
+
at = "checked";
|
|
17213
17209
|
break;
|
|
17214
17210
|
case "-":
|
|
17215
17211
|
case "*":
|
|
17216
|
-
|
|
17212
|
+
at = "bullet";
|
|
17217
17213
|
break;
|
|
17218
17214
|
default:
|
|
17219
|
-
|
|
17215
|
+
at = "ordered";
|
|
17220
17216
|
}
|
|
17221
17217
|
this.quill.insertText(B.index, " ", x.default.sources.USER), this.quill.history.cutoff();
|
|
17222
|
-
var ut = new m.default().retain(B.index - rt).delete(H + 1).retain(tt.length() - 2 - rt).retain(1, { list:
|
|
17218
|
+
var ut = new m.default().retain(B.index - rt).delete(H + 1).retain(tt.length() - 2 - rt).retain(1, { list: at });
|
|
17223
17219
|
this.quill.updateContents(ut, x.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(B.index - H, x.default.sources.SILENT);
|
|
17224
17220
|
}
|
|
17225
17221
|
},
|
|
@@ -17246,10 +17242,10 @@ var Hh = { exports: {} };
|
|
|
17246
17242
|
key: M,
|
|
17247
17243
|
shiftKey: B,
|
|
17248
17244
|
altKey: null
|
|
17249
|
-
},
|
|
17245
|
+
}, E(q, H, /^$/), E(q, "handler", function(K) {
|
|
17250
17246
|
var tt = K.index;
|
|
17251
17247
|
M === D.keys.RIGHT && (tt += K.length + 1);
|
|
17252
|
-
var rt = this.quill.getLeaf(tt),
|
|
17248
|
+
var rt = this.quill.getLeaf(tt), at = a(rt, 1), ut = at[0];
|
|
17253
17249
|
return ut instanceof _.default.Embed ? (M === D.keys.LEFT ? B ? this.quill.setSelection(K.index - 1, K.length + 1, x.default.sources.USER) : this.quill.setSelection(K.index - 1, x.default.sources.USER) : B ? this.quill.setSelection(K.index, K.length + 1, x.default.sources.USER) : this.quill.setSelection(K.index + K.length + 1, x.default.sources.USER), !1) : !0;
|
|
17254
17250
|
}), q;
|
|
17255
17251
|
}
|
|
@@ -17257,8 +17253,8 @@ var Hh = { exports: {} };
|
|
|
17257
17253
|
if (!(M.index === 0 || this.quill.getLength() <= 1)) {
|
|
17258
17254
|
var q = this.quill.getLine(M.index), H = a(q, 1), X = H[0], K = {};
|
|
17259
17255
|
if (B.offset === 0) {
|
|
17260
|
-
var tt = this.quill.getLine(M.index - 1), rt = a(tt, 1),
|
|
17261
|
-
if (
|
|
17256
|
+
var tt = this.quill.getLine(M.index - 1), rt = a(tt, 1), at = rt[0];
|
|
17257
|
+
if (at != null && at.length() > 1) {
|
|
17262
17258
|
var ut = X.formats(), It = this.quill.getFormat(M.index - 1, 1);
|
|
17263
17259
|
K = y.default.attributes.diff(ut, It) || {};
|
|
17264
17260
|
}
|
|
@@ -17272,7 +17268,7 @@ var Hh = { exports: {} };
|
|
|
17272
17268
|
if (!(M.index >= this.quill.getLength() - q)) {
|
|
17273
17269
|
var H = {}, X = 0, K = this.quill.getLine(M.index), tt = a(K, 1), rt = tt[0];
|
|
17274
17270
|
if (B.offset >= rt.length() - 1) {
|
|
17275
|
-
var
|
|
17271
|
+
var at = this.quill.getLine(M.index + 1), ut = a(at, 1), It = ut[0];
|
|
17276
17272
|
if (It) {
|
|
17277
17273
|
var St = rt.formats(), V = this.quill.getFormat(M.index, 1);
|
|
17278
17274
|
H = y.default.attributes.diff(St, V) || {}, X = It.length();
|
|
@@ -17306,12 +17302,12 @@ var Hh = { exports: {} };
|
|
|
17306
17302
|
shiftKey: !M,
|
|
17307
17303
|
format: { "code-block": !0 },
|
|
17308
17304
|
handler: function(q) {
|
|
17309
|
-
var H = _.default.query("code-block"), X = q.index, K = q.length, tt = this.quill.scroll.descendant(H, X), rt = a(tt, 2),
|
|
17310
|
-
if (
|
|
17311
|
-
var It = this.quill.getIndex(
|
|
17305
|
+
var H = _.default.query("code-block"), X = q.index, K = q.length, tt = this.quill.scroll.descendant(H, X), rt = a(tt, 2), at = rt[0], ut = rt[1];
|
|
17306
|
+
if (at != null) {
|
|
17307
|
+
var It = this.quill.getIndex(at), St = at.newlineIndex(ut, !0) + 1, V = at.newlineIndex(It + ut + K), W = at.domNode.textContent.slice(St, V).split(`
|
|
17312
17308
|
`);
|
|
17313
17309
|
ut = 0, W.forEach(function(Q, J) {
|
|
17314
|
-
M ? (
|
|
17310
|
+
M ? (at.insertAt(St + ut, H.TAB), ut += H.TAB.length, J === 0 ? X += H.TAB.length : K += H.TAB.length) : Q.startsWith(H.TAB) && (at.deleteAt(St + ut, H.TAB.length), ut -= H.TAB.length, J === 0 ? X -= H.TAB.length : K -= H.TAB.length), ut += Q.length + 1;
|
|
17315
17311
|
}), this.quill.update(x.default.sources.USER), this.quill.setSelection(X, K, x.default.sources.SILENT);
|
|
17316
17312
|
}
|
|
17317
17313
|
}
|
|
@@ -17350,13 +17346,13 @@ var Hh = { exports: {} };
|
|
|
17350
17346
|
function y(b, _) {
|
|
17351
17347
|
var v = [], x = !0, S = !1, w = void 0;
|
|
17352
17348
|
try {
|
|
17353
|
-
for (var
|
|
17349
|
+
for (var T = b[Symbol.iterator](), N; !(x = (N = T.next()).done) && (v.push(N.value), !(_ && v.length === _)); x = !0)
|
|
17354
17350
|
;
|
|
17355
17351
|
} catch (A) {
|
|
17356
17352
|
S = !0, w = A;
|
|
17357
17353
|
} finally {
|
|
17358
17354
|
try {
|
|
17359
|
-
!x &&
|
|
17355
|
+
!x && T.return && T.return();
|
|
17360
17356
|
} finally {
|
|
17361
17357
|
if (S)
|
|
17362
17358
|
throw w;
|
|
@@ -17460,10 +17456,10 @@ var Hh = { exports: {} };
|
|
|
17460
17456
|
key: "restore",
|
|
17461
17457
|
value: function() {
|
|
17462
17458
|
if (!(this.selection.composing || this.parent == null)) {
|
|
17463
|
-
var v = this.textNode, x = this.selection.getNativeRange(), S = void 0, w = void 0,
|
|
17459
|
+
var v = this.textNode, x = this.selection.getNativeRange(), S = void 0, w = void 0, T = void 0;
|
|
17464
17460
|
if (x != null && x.start.node === v && x.end.node === v) {
|
|
17465
17461
|
var N = [v, x.start.offset, x.end.offset];
|
|
17466
|
-
S = N[0], w = N[1],
|
|
17462
|
+
S = N[0], w = N[1], T = N[2];
|
|
17467
17463
|
}
|
|
17468
17464
|
for (; this.domNode.lastChild != null && this.domNode.lastChild !== this.textNode; )
|
|
17469
17465
|
this.domNode.parentNode.insertBefore(this.domNode.lastChild, this.domNode);
|
|
@@ -17472,14 +17468,14 @@ var Hh = { exports: {} };
|
|
|
17472
17468
|
this.next instanceof f.default ? (S = this.next.domNode, this.next.insertAt(0, A), this.textNode.data = b.CONTENTS) : (this.textNode.data = A, this.parent.insertBefore(h.default.create(this.textNode), this), this.textNode = document.createTextNode(b.CONTENTS), this.domNode.appendChild(this.textNode));
|
|
17473
17469
|
}
|
|
17474
17470
|
if (this.remove(), w != null) {
|
|
17475
|
-
var
|
|
17471
|
+
var E = [w, T].map(function(R) {
|
|
17476
17472
|
return Math.max(0, Math.min(S.data.length, R - 1));
|
|
17477
|
-
}), O = s(
|
|
17478
|
-
return w = O[0],
|
|
17473
|
+
}), O = s(E, 2);
|
|
17474
|
+
return w = O[0], T = O[1], {
|
|
17479
17475
|
startNode: S,
|
|
17480
17476
|
startOffset: w,
|
|
17481
17477
|
endNode: S,
|
|
17482
|
-
endOffset:
|
|
17478
|
+
endOffset: T
|
|
17483
17479
|
};
|
|
17484
17480
|
}
|
|
17485
17481
|
}
|
|
@@ -17488,8 +17484,8 @@ var Hh = { exports: {} };
|
|
|
17488
17484
|
key: "update",
|
|
17489
17485
|
value: function(v, x) {
|
|
17490
17486
|
var S = this;
|
|
17491
|
-
if (v.some(function(
|
|
17492
|
-
return
|
|
17487
|
+
if (v.some(function(T) {
|
|
17488
|
+
return T.type === "characterData" && T.target === S.textNode;
|
|
17493
17489
|
})) {
|
|
17494
17490
|
var w = this.restore();
|
|
17495
17491
|
w && (x.range = w);
|
|
@@ -17831,7 +17827,7 @@ var Hh = { exports: {} };
|
|
|
17831
17827
|
Object.defineProperty(n, "__esModule", {
|
|
17832
17828
|
value: !0
|
|
17833
17829
|
});
|
|
17834
|
-
var s = i(0), a = F(s), o = i(5), l = F(o), h = i(4), c = F(h), f = i(16), u = F(f), d = i(25), p = F(d), m = i(24), g = F(m), y = i(35), b = F(y), _ = i(6), v = F(_), x = i(22), S = F(x), w = i(7),
|
|
17830
|
+
var s = i(0), a = F(s), o = i(5), l = F(o), h = i(4), c = F(h), f = i(16), u = F(f), d = i(25), p = F(d), m = i(24), g = F(m), y = i(35), b = F(y), _ = i(6), v = F(_), x = i(22), S = F(x), w = i(7), T = F(w), N = i(55), A = F(N), E = i(42), O = F(E), R = i(23), C = F(R);
|
|
17835
17831
|
function F(U) {
|
|
17836
17832
|
return U && U.__esModule ? U : { default: U };
|
|
17837
17833
|
}
|
|
@@ -17844,11 +17840,11 @@ var Hh = { exports: {} };
|
|
|
17844
17840
|
"blots/embed": b.default,
|
|
17845
17841
|
"blots/inline": v.default,
|
|
17846
17842
|
"blots/scroll": S.default,
|
|
17847
|
-
"blots/text":
|
|
17843
|
+
"blots/text": T.default,
|
|
17848
17844
|
"modules/clipboard": A.default,
|
|
17849
17845
|
"modules/history": O.default,
|
|
17850
17846
|
"modules/keyboard": C.default
|
|
17851
|
-
}), a.default.register(c.default, u.default, g.default, v.default, S.default,
|
|
17847
|
+
}), a.default.register(c.default, u.default, g.default, v.default, S.default, T.default), n.default = l.default;
|
|
17852
17848
|
},
|
|
17853
17849
|
/* 30 */
|
|
17854
17850
|
/***/
|
|
@@ -18180,10 +18176,10 @@ var Hh = { exports: {} };
|
|
|
18180
18176
|
var x = void 0, S = void 0, w = v.data.split(m).join("");
|
|
18181
18177
|
if (v === this.leftGuard)
|
|
18182
18178
|
if (this.prev instanceof c.default) {
|
|
18183
|
-
var
|
|
18184
|
-
this.prev.insertAt(
|
|
18179
|
+
var T = this.prev.length();
|
|
18180
|
+
this.prev.insertAt(T, w), x = {
|
|
18185
18181
|
startNode: this.prev.domNode,
|
|
18186
|
-
startOffset:
|
|
18182
|
+
startOffset: T + w.length
|
|
18187
18183
|
};
|
|
18188
18184
|
} else
|
|
18189
18185
|
S = document.createTextNode(w), this.parent.insertBefore(l.default.create(S), this), x = {
|
|
@@ -18206,8 +18202,8 @@ var Hh = { exports: {} };
|
|
|
18206
18202
|
var S = this;
|
|
18207
18203
|
v.forEach(function(w) {
|
|
18208
18204
|
if (w.type === "characterData" && (w.target === S.leftGuard || w.target === S.rightGuard)) {
|
|
18209
|
-
var
|
|
18210
|
-
|
|
18205
|
+
var T = S.restore(w.target);
|
|
18206
|
+
T && (x.range = T);
|
|
18211
18207
|
}
|
|
18212
18208
|
});
|
|
18213
18209
|
}
|
|
@@ -18438,17 +18434,17 @@ var Hh = { exports: {} };
|
|
|
18438
18434
|
function v(x, S) {
|
|
18439
18435
|
d(this, v);
|
|
18440
18436
|
var w = p(this, (v.__proto__ || Object.getPrototypeOf(v)).call(this, x, S));
|
|
18441
|
-
return w.lastRecorded = 0, w.ignoreChange = !1, w.clear(), w.quill.on(h.default.events.EDITOR_CHANGE, function(
|
|
18442
|
-
|
|
18437
|
+
return w.lastRecorded = 0, w.ignoreChange = !1, w.clear(), w.quill.on(h.default.events.EDITOR_CHANGE, function(T, N, A, E) {
|
|
18438
|
+
T !== h.default.events.TEXT_CHANGE || w.ignoreChange || (!w.options.userOnly || E === h.default.sources.USER ? w.record(N, A) : w.transform(N));
|
|
18443
18439
|
}), w.quill.keyboard.addBinding({ key: "Z", shortKey: !0 }, w.undo.bind(w)), w.quill.keyboard.addBinding({ key: "Z", shortKey: !0, shiftKey: !0 }, w.redo.bind(w)), /Win/i.test(navigator.platform) && w.quill.keyboard.addBinding({ key: "Y", shortKey: !0 }, w.redo.bind(w)), w;
|
|
18444
18440
|
}
|
|
18445
18441
|
return s(v, [{
|
|
18446
18442
|
key: "change",
|
|
18447
18443
|
value: function(S, w) {
|
|
18448
18444
|
if (this.stack[S].length !== 0) {
|
|
18449
|
-
var
|
|
18450
|
-
this.stack[w].push(
|
|
18451
|
-
var N = b(
|
|
18445
|
+
var T = this.stack[S].pop();
|
|
18446
|
+
this.stack[w].push(T), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(T[S], h.default.sources.USER), this.ignoreChange = !1;
|
|
18447
|
+
var N = b(T[S]);
|
|
18452
18448
|
this.quill.setSelection(N);
|
|
18453
18449
|
}
|
|
18454
18450
|
}
|
|
@@ -18467,15 +18463,15 @@ var Hh = { exports: {} };
|
|
|
18467
18463
|
value: function(S, w) {
|
|
18468
18464
|
if (S.ops.length !== 0) {
|
|
18469
18465
|
this.stack.redo = [];
|
|
18470
|
-
var
|
|
18466
|
+
var T = this.quill.getContents().diff(w), N = Date.now();
|
|
18471
18467
|
if (this.lastRecorded + this.options.delay > N && this.stack.undo.length > 0) {
|
|
18472
18468
|
var A = this.stack.undo.pop();
|
|
18473
|
-
|
|
18469
|
+
T = T.compose(A.undo), S = A.redo.compose(S);
|
|
18474
18470
|
} else
|
|
18475
18471
|
this.lastRecorded = N;
|
|
18476
18472
|
this.stack.undo.push({
|
|
18477
18473
|
redo: S,
|
|
18478
|
-
undo:
|
|
18474
|
+
undo: T
|
|
18479
18475
|
}), this.stack.undo.length > this.options.maxStack && this.stack.undo.shift();
|
|
18480
18476
|
}
|
|
18481
18477
|
}
|
|
@@ -18548,7 +18544,7 @@ var Hh = { exports: {} };
|
|
|
18548
18544
|
var q = M.get;
|
|
18549
18545
|
return q === void 0 ? void 0 : q.call(G);
|
|
18550
18546
|
}
|
|
18551
|
-
}, o = i(3), l = N(o), h = i(2), c = N(h), f = i(8), u = N(f), d = i(23), p = N(d), m = i(34), g = N(m), y = i(59), b = N(y), _ = i(60), v = N(_), x = i(28), S = N(x), w = i(61),
|
|
18547
|
+
}, o = i(3), l = N(o), h = i(2), c = N(h), f = i(8), u = N(f), d = i(23), p = N(d), m = i(34), g = N(m), y = i(59), b = N(y), _ = i(60), v = N(_), x = i(28), S = N(x), w = i(61), T = N(w);
|
|
18552
18548
|
function N(P) {
|
|
18553
18549
|
return P && P.__esModule ? P : { default: P };
|
|
18554
18550
|
}
|
|
@@ -18556,7 +18552,7 @@ var Hh = { exports: {} };
|
|
|
18556
18552
|
if (!(P instanceof L))
|
|
18557
18553
|
throw new TypeError("Cannot call a class as a function");
|
|
18558
18554
|
}
|
|
18559
|
-
function
|
|
18555
|
+
function E(P, L) {
|
|
18560
18556
|
if (!P)
|
|
18561
18557
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
18562
18558
|
return L && (typeof L == "object" || typeof L == "function") ? L : P;
|
|
@@ -18570,7 +18566,7 @@ var Hh = { exports: {} };
|
|
|
18570
18566
|
O(L, P);
|
|
18571
18567
|
function L(j, G) {
|
|
18572
18568
|
A(this, L);
|
|
18573
|
-
var M =
|
|
18569
|
+
var M = E(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, j, G)), B = function q(H) {
|
|
18574
18570
|
if (!document.body.contains(j.root))
|
|
18575
18571
|
return document.body.removeEventListener("click", q);
|
|
18576
18572
|
M.tooltip != null && !M.tooltip.root.contains(H.target) && document.activeElement !== M.tooltip.textbox && !M.quill.hasFocus() && M.tooltip.hide(), M.pickers != null && M.pickers.forEach(function(X) {
|
|
@@ -18655,7 +18651,7 @@ var Hh = { exports: {} };
|
|
|
18655
18651
|
O(L, P);
|
|
18656
18652
|
function L(j, G) {
|
|
18657
18653
|
A(this, L);
|
|
18658
|
-
var M =
|
|
18654
|
+
var M = E(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, j, G));
|
|
18659
18655
|
return M.textbox = M.root.querySelector('input[type="text"]'), M.listen(), M;
|
|
18660
18656
|
}
|
|
18661
18657
|
return s(L, [{
|
|
@@ -18709,7 +18705,7 @@ var Hh = { exports: {} };
|
|
|
18709
18705
|
this.textbox.value = "", this.hide();
|
|
18710
18706
|
}
|
|
18711
18707
|
}]), L;
|
|
18712
|
-
}(
|
|
18708
|
+
}(T.default);
|
|
18713
18709
|
function k(P) {
|
|
18714
18710
|
var L = P.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || P.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
|
|
18715
18711
|
return L ? (L[1] || "https") + "://www.youtube.com/embed/" + L[2] + "?showinfo=0" : (L = P.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (L[1] || "https") + "://player.vimeo.com/video/" + L[2] + "/" : P;
|
|
@@ -18851,8 +18847,8 @@ var Hh = { exports: {} };
|
|
|
18851
18847
|
for (_.forEach(function(x) {
|
|
18852
18848
|
var S = o.find(x.target, !0);
|
|
18853
18849
|
S != null && (S.domNode === x.target && (x.type === "childList" ? (y(o.find(x.previousSibling, !1)), [].forEach.call(x.addedNodes, function(w) {
|
|
18854
|
-
var
|
|
18855
|
-
y(
|
|
18850
|
+
var T = o.find(w, !1);
|
|
18851
|
+
y(T, !1), T instanceof a.default && T.children.forEach(function(N) {
|
|
18856
18852
|
y(N, !1);
|
|
18857
18853
|
});
|
|
18858
18854
|
})) : x.type === "attributes" && y(S.prev)), y(S));
|
|
@@ -19124,12 +19120,12 @@ var Hh = { exports: {} };
|
|
|
19124
19120
|
if (v == x)
|
|
19125
19121
|
return v ? [[a, v]] : [];
|
|
19126
19122
|
(S < 0 || v.length < S) && (S = null);
|
|
19127
|
-
var w = f(v, x),
|
|
19123
|
+
var w = f(v, x), T = v.substring(0, w);
|
|
19128
19124
|
v = v.substring(w), x = x.substring(w), w = u(v, x);
|
|
19129
19125
|
var N = v.substring(v.length - w);
|
|
19130
19126
|
v = v.substring(0, v.length - w), x = x.substring(0, x.length - w);
|
|
19131
19127
|
var A = l(v, x);
|
|
19132
|
-
return
|
|
19128
|
+
return T && A.unshift([a, T]), N && A.push([a, N]), p(A), S != null && (A = y(A, S)), A = b(A), A;
|
|
19133
19129
|
}
|
|
19134
19130
|
function l(v, x) {
|
|
19135
19131
|
var S;
|
|
@@ -19137,33 +19133,33 @@ var Hh = { exports: {} };
|
|
|
19137
19133
|
return [[s, x]];
|
|
19138
19134
|
if (!x)
|
|
19139
19135
|
return [[i, v]];
|
|
19140
|
-
var w = v.length > x.length ? v : x,
|
|
19136
|
+
var w = v.length > x.length ? v : x, T = v.length > x.length ? x : v, N = w.indexOf(T);
|
|
19141
19137
|
if (N != -1)
|
|
19142
19138
|
return S = [
|
|
19143
19139
|
[s, w.substring(0, N)],
|
|
19144
|
-
[a,
|
|
19145
|
-
[s, w.substring(N +
|
|
19140
|
+
[a, T],
|
|
19141
|
+
[s, w.substring(N + T.length)]
|
|
19146
19142
|
], v.length > x.length && (S[0][0] = S[2][0] = i), S;
|
|
19147
|
-
if (
|
|
19143
|
+
if (T.length == 1)
|
|
19148
19144
|
return [[i, v], [s, x]];
|
|
19149
19145
|
var A = d(v, x);
|
|
19150
19146
|
if (A) {
|
|
19151
|
-
var
|
|
19147
|
+
var E = A[0], O = A[1], R = A[2], C = A[3], F = A[4], U = o(E, R), D = o(O, C);
|
|
19152
19148
|
return U.concat([[a, F]], D);
|
|
19153
19149
|
}
|
|
19154
19150
|
return h(v, x);
|
|
19155
19151
|
}
|
|
19156
19152
|
function h(v, x) {
|
|
19157
|
-
for (var S = v.length, w = x.length,
|
|
19158
|
-
|
|
19159
|
-
|
|
19160
|
-
for (var C = S - w, F = C % 2 != 0, U = 0, D = 0, z = 0, $ = 0, k = 0; k <
|
|
19153
|
+
for (var S = v.length, w = x.length, T = Math.ceil((S + w) / 2), N = T, A = 2 * T, E = new Array(A), O = new Array(A), R = 0; R < A; R++)
|
|
19154
|
+
E[R] = -1, O[R] = -1;
|
|
19155
|
+
E[N + 1] = 0, O[N + 1] = 0;
|
|
19156
|
+
for (var C = S - w, F = C % 2 != 0, U = 0, D = 0, z = 0, $ = 0, k = 0; k < T; k++) {
|
|
19161
19157
|
for (var I = -k + U; I <= k - D; I += 2) {
|
|
19162
19158
|
var P = N + I, L;
|
|
19163
|
-
I == -k || I != k &&
|
|
19159
|
+
I == -k || I != k && E[P - 1] < E[P + 1] ? L = E[P + 1] : L = E[P - 1] + 1;
|
|
19164
19160
|
for (var j = L - I; L < S && j < w && v.charAt(L) == x.charAt(j); )
|
|
19165
19161
|
L++, j++;
|
|
19166
|
-
if (
|
|
19162
|
+
if (E[P] = L, L > S)
|
|
19167
19163
|
D += 2;
|
|
19168
19164
|
else if (j > w)
|
|
19169
19165
|
U += 2;
|
|
@@ -19187,8 +19183,8 @@ var Hh = { exports: {} };
|
|
|
19187
19183
|
z += 2;
|
|
19188
19184
|
else if (!F) {
|
|
19189
19185
|
var P = N + C - B;
|
|
19190
|
-
if (P >= 0 && P < A &&
|
|
19191
|
-
var L =
|
|
19186
|
+
if (P >= 0 && P < A && E[P] != -1) {
|
|
19187
|
+
var L = E[P], j = N + L - P;
|
|
19192
19188
|
if (M = S - M, L >= M)
|
|
19193
19189
|
return c(v, x, L, j);
|
|
19194
19190
|
}
|
|
@@ -19198,28 +19194,28 @@ var Hh = { exports: {} };
|
|
|
19198
19194
|
return [[i, v], [s, x]];
|
|
19199
19195
|
}
|
|
19200
19196
|
function c(v, x, S, w) {
|
|
19201
|
-
var
|
|
19197
|
+
var T = v.substring(0, S), N = x.substring(0, w), A = v.substring(S), E = x.substring(w), O = o(T, N), R = o(A, E);
|
|
19202
19198
|
return O.concat(R);
|
|
19203
19199
|
}
|
|
19204
19200
|
function f(v, x) {
|
|
19205
19201
|
if (!v || !x || v.charAt(0) != x.charAt(0))
|
|
19206
19202
|
return 0;
|
|
19207
|
-
for (var S = 0, w = Math.min(v.length, x.length),
|
|
19208
|
-
v.substring(N,
|
|
19209
|
-
return
|
|
19203
|
+
for (var S = 0, w = Math.min(v.length, x.length), T = w, N = 0; S < T; )
|
|
19204
|
+
v.substring(N, T) == x.substring(N, T) ? (S = T, N = S) : w = T, T = Math.floor((w - S) / 2 + S);
|
|
19205
|
+
return T;
|
|
19210
19206
|
}
|
|
19211
19207
|
function u(v, x) {
|
|
19212
19208
|
if (!v || !x || v.charAt(v.length - 1) != x.charAt(x.length - 1))
|
|
19213
19209
|
return 0;
|
|
19214
|
-
for (var S = 0, w = Math.min(v.length, x.length),
|
|
19215
|
-
v.substring(v.length -
|
|
19216
|
-
return
|
|
19210
|
+
for (var S = 0, w = Math.min(v.length, x.length), T = w, N = 0; S < T; )
|
|
19211
|
+
v.substring(v.length - T, v.length - N) == x.substring(x.length - T, x.length - N) ? (S = T, N = S) : w = T, T = Math.floor((w - S) / 2 + S);
|
|
19212
|
+
return T;
|
|
19217
19213
|
}
|
|
19218
19214
|
function d(v, x) {
|
|
19219
19215
|
var S = v.length > x.length ? v : x, w = v.length > x.length ? x : v;
|
|
19220
19216
|
if (S.length < 4 || w.length * 2 < S.length)
|
|
19221
19217
|
return null;
|
|
19222
|
-
function
|
|
19218
|
+
function T(D, z, $) {
|
|
19223
19219
|
for (var k = D.substring($, $ + Math.floor(D.length / 4)), I = -1, P = "", L, j, G, M; (I = z.indexOf(k, I + 1)) != -1; ) {
|
|
19224
19220
|
var B = f(
|
|
19225
19221
|
D.substring($),
|
|
@@ -19238,58 +19234,58 @@ var Hh = { exports: {} };
|
|
|
19238
19234
|
P
|
|
19239
19235
|
] : null;
|
|
19240
19236
|
}
|
|
19241
|
-
var N =
|
|
19237
|
+
var N = T(
|
|
19242
19238
|
S,
|
|
19243
19239
|
w,
|
|
19244
19240
|
Math.ceil(S.length / 4)
|
|
19245
|
-
), A =
|
|
19241
|
+
), A = T(
|
|
19246
19242
|
S,
|
|
19247
19243
|
w,
|
|
19248
19244
|
Math.ceil(S.length / 2)
|
|
19249
|
-
),
|
|
19245
|
+
), E;
|
|
19250
19246
|
if (!N && !A)
|
|
19251
19247
|
return null;
|
|
19252
|
-
A ? N ?
|
|
19248
|
+
A ? N ? E = N[4].length > A[4].length ? N : A : E = A : E = N;
|
|
19253
19249
|
var O, R, C, F;
|
|
19254
|
-
v.length > x.length ? (O =
|
|
19255
|
-
var U =
|
|
19250
|
+
v.length > x.length ? (O = E[0], R = E[1], C = E[2], F = E[3]) : (C = E[0], F = E[1], O = E[2], R = E[3]);
|
|
19251
|
+
var U = E[4];
|
|
19256
19252
|
return [O, R, C, F, U];
|
|
19257
19253
|
}
|
|
19258
19254
|
function p(v) {
|
|
19259
19255
|
v.push([a, ""]);
|
|
19260
|
-
for (var x = 0, S = 0, w = 0,
|
|
19256
|
+
for (var x = 0, S = 0, w = 0, T = "", N = "", A; x < v.length; )
|
|
19261
19257
|
switch (v[x][0]) {
|
|
19262
19258
|
case s:
|
|
19263
19259
|
w++, N += v[x][1], x++;
|
|
19264
19260
|
break;
|
|
19265
19261
|
case i:
|
|
19266
|
-
S++,
|
|
19262
|
+
S++, T += v[x][1], x++;
|
|
19267
19263
|
break;
|
|
19268
19264
|
case a:
|
|
19269
|
-
S + w > 1 ? (S !== 0 && w !== 0 && (A = f(N,
|
|
19265
|
+
S + w > 1 ? (S !== 0 && w !== 0 && (A = f(N, T), A !== 0 && (x - S - w > 0 && v[x - S - w - 1][0] == a ? v[x - S - w - 1][1] += N.substring(0, A) : (v.splice(0, 0, [
|
|
19270
19266
|
a,
|
|
19271
19267
|
N.substring(0, A)
|
|
19272
|
-
]), x++), N = N.substring(A),
|
|
19268
|
+
]), x++), N = N.substring(A), T = T.substring(A)), A = u(N, T), A !== 0 && (v[x][1] = N.substring(N.length - A) + v[x][1], N = N.substring(0, N.length - A), T = T.substring(0, T.length - A))), S === 0 ? v.splice(
|
|
19273
19269
|
x - w,
|
|
19274
19270
|
S + w,
|
|
19275
19271
|
[s, N]
|
|
19276
19272
|
) : w === 0 ? v.splice(
|
|
19277
19273
|
x - S,
|
|
19278
19274
|
S + w,
|
|
19279
|
-
[i,
|
|
19275
|
+
[i, T]
|
|
19280
19276
|
) : v.splice(
|
|
19281
19277
|
x - S - w,
|
|
19282
19278
|
S + w,
|
|
19283
|
-
[i,
|
|
19279
|
+
[i, T],
|
|
19284
19280
|
[s, N]
|
|
19285
|
-
), x = x - S - w + (S ? 1 : 0) + (w ? 1 : 0) + 1) : x !== 0 && v[x - 1][0] == a ? (v[x - 1][1] += v[x][1], v.splice(x, 1)) : x++, w = 0, S = 0,
|
|
19281
|
+
), x = x - S - w + (S ? 1 : 0) + (w ? 1 : 0) + 1) : x !== 0 && v[x - 1][0] == a ? (v[x - 1][1] += v[x][1], v.splice(x, 1)) : x++, w = 0, S = 0, T = "", N = "";
|
|
19286
19282
|
break;
|
|
19287
19283
|
}
|
|
19288
19284
|
v[v.length - 1][1] === "" && v.pop();
|
|
19289
|
-
var
|
|
19285
|
+
var E = !1;
|
|
19290
19286
|
for (x = 1; x < v.length - 1; )
|
|
19291
|
-
v[x - 1][0] == a && v[x + 1][0] == a && (v[x][1].substring(v[x][1].length - v[x - 1][1].length) == v[x - 1][1] ? (v[x][1] = v[x - 1][1] + v[x][1].substring(0, v[x][1].length - v[x - 1][1].length), v[x + 1][1] = v[x - 1][1] + v[x + 1][1], v.splice(x - 1, 1),
|
|
19292
|
-
|
|
19287
|
+
v[x - 1][0] == a && v[x + 1][0] == a && (v[x][1].substring(v[x][1].length - v[x - 1][1].length) == v[x - 1][1] ? (v[x][1] = v[x - 1][1] + v[x][1].substring(0, v[x][1].length - v[x - 1][1].length), v[x + 1][1] = v[x - 1][1] + v[x + 1][1], v.splice(x - 1, 1), E = !0) : v[x][1].substring(0, v[x + 1][1].length) == v[x + 1][1] && (v[x - 1][1] += v[x + 1][1], v[x][1] = v[x][1].substring(v[x + 1][1].length) + v[x + 1][1], v.splice(x + 1, 1), E = !0)), x++;
|
|
19288
|
+
E && p(v);
|
|
19293
19289
|
}
|
|
19294
19290
|
var m = o;
|
|
19295
19291
|
m.INSERT = s, m.DELETE = i, m.EQUAL = a, r.exports = m;
|
|
@@ -19297,15 +19293,15 @@ var Hh = { exports: {} };
|
|
|
19297
19293
|
if (x === 0)
|
|
19298
19294
|
return [a, v];
|
|
19299
19295
|
for (var S = 0, w = 0; w < v.length; w++) {
|
|
19300
|
-
var
|
|
19301
|
-
if (
|
|
19302
|
-
var N = S +
|
|
19296
|
+
var T = v[w];
|
|
19297
|
+
if (T[0] === i || T[0] === a) {
|
|
19298
|
+
var N = S + T[1].length;
|
|
19303
19299
|
if (x === N)
|
|
19304
19300
|
return [w + 1, v];
|
|
19305
19301
|
if (x < N) {
|
|
19306
19302
|
v = v.slice();
|
|
19307
|
-
var A = x - S,
|
|
19308
|
-
return v.splice(w, 1,
|
|
19303
|
+
var A = x - S, E = [T[0], T[1].slice(0, A)], O = [T[0], T[1].slice(A)];
|
|
19304
|
+
return v.splice(w, 1, E, O), [w + 1, v];
|
|
19309
19305
|
} else
|
|
19310
19306
|
S = N;
|
|
19311
19307
|
}
|
|
@@ -19313,17 +19309,17 @@ var Hh = { exports: {} };
|
|
|
19313
19309
|
throw new Error("cursor_pos is out of bounds!");
|
|
19314
19310
|
}
|
|
19315
19311
|
function y(v, x) {
|
|
19316
|
-
var S = g(v, x), w = S[1],
|
|
19312
|
+
var S = g(v, x), w = S[1], T = S[0], N = w[T], A = w[T + 1];
|
|
19317
19313
|
if (N == null)
|
|
19318
19314
|
return v;
|
|
19319
19315
|
if (N[0] !== a)
|
|
19320
19316
|
return v;
|
|
19321
19317
|
if (A != null && N[1] + A[1] === A[1] + N[1])
|
|
19322
|
-
return w.splice(
|
|
19318
|
+
return w.splice(T, 2, A, N), _(w, T, 2);
|
|
19323
19319
|
if (A != null && A[1].indexOf(N[1]) === 0) {
|
|
19324
|
-
w.splice(
|
|
19325
|
-
var
|
|
19326
|
-
return
|
|
19320
|
+
w.splice(T, 2, [A[0], N[1]], [0, N[1]]);
|
|
19321
|
+
var E = A[1].slice(N[1].length);
|
|
19322
|
+
return E.length > 0 && w.splice(T + 2, 0, [A[0], E]), _(w, T, 3);
|
|
19327
19323
|
} else
|
|
19328
19324
|
return v;
|
|
19329
19325
|
}
|
|
@@ -19332,19 +19328,19 @@ var Hh = { exports: {} };
|
|
|
19332
19328
|
return A.charCodeAt(0) >= 56320 && A.charCodeAt(0) <= 57343;
|
|
19333
19329
|
}, w = function(A) {
|
|
19334
19330
|
return A.charCodeAt(A.length - 1) >= 55296 && A.charCodeAt(A.length - 1) <= 56319;
|
|
19335
|
-
},
|
|
19336
|
-
v[
|
|
19331
|
+
}, T = 2; T < v.length; T += 1)
|
|
19332
|
+
v[T - 2][0] === a && w(v[T - 2][1]) && v[T - 1][0] === i && S(v[T - 1][1]) && v[T][0] === s && S(v[T][1]) && (x = !0, v[T - 1][1] = v[T - 2][1].slice(-1) + v[T - 1][1], v[T][1] = v[T - 2][1].slice(-1) + v[T][1], v[T - 2][1] = v[T - 2][1].slice(0, -1));
|
|
19337
19333
|
if (!x)
|
|
19338
19334
|
return v;
|
|
19339
|
-
for (var N = [],
|
|
19340
|
-
v[
|
|
19335
|
+
for (var N = [], T = 0; T < v.length; T += 1)
|
|
19336
|
+
v[T][1].length > 0 && N.push(v[T]);
|
|
19341
19337
|
return N;
|
|
19342
19338
|
}
|
|
19343
19339
|
function _(v, x, S) {
|
|
19344
19340
|
for (var w = x + S - 1; w >= 0 && w >= x - 1; w--)
|
|
19345
19341
|
if (w + 1 < v.length) {
|
|
19346
|
-
var
|
|
19347
|
-
|
|
19342
|
+
var T = v[w], N = v[w + 1];
|
|
19343
|
+
T[0] === N[1] && v.splice(w, 2, [T[0], T[1] + N[1]]);
|
|
19348
19344
|
}
|
|
19349
19345
|
return v;
|
|
19350
19346
|
}
|
|
@@ -19526,7 +19522,7 @@ var Hh = { exports: {} };
|
|
|
19526
19522
|
return function(W, Q, J) {
|
|
19527
19523
|
return Q && V(W.prototype, Q), J && V(W, J), W;
|
|
19528
19524
|
};
|
|
19529
|
-
}(), l = i(3), h = O(l), c = i(2), f = O(c), u = i(0), d = O(u), p = i(5), m = O(p), g = i(10), y = O(g), b = i(9), _ = O(b), v = i(36), x = i(37), S = i(13), w = O(S),
|
|
19525
|
+
}(), l = i(3), h = O(l), c = i(2), f = O(c), u = i(0), d = O(u), p = i(5), m = O(p), g = i(10), y = O(g), b = i(9), _ = O(b), v = i(36), x = i(37), S = i(13), w = O(S), T = i(26), N = i(38), A = i(39), E = i(40);
|
|
19530
19526
|
function O(V) {
|
|
19531
19527
|
return V && V.__esModule ? V : { default: V };
|
|
19532
19528
|
}
|
|
@@ -19547,9 +19543,9 @@ var Hh = { exports: {} };
|
|
|
19547
19543
|
throw new TypeError("Super expression must either be null or a function, not " + typeof W);
|
|
19548
19544
|
V.prototype = Object.create(W && W.prototype, { constructor: { value: V, enumerable: !1, writable: !0, configurable: !0 } }), W && (Object.setPrototypeOf ? Object.setPrototypeOf(V, W) : V.__proto__ = W);
|
|
19549
19545
|
}
|
|
19550
|
-
var D = (0, y.default)("quill:clipboard"), z = "__ql-matcher", $ = [[Node.TEXT_NODE, St], [Node.TEXT_NODE,
|
|
19546
|
+
var D = (0, y.default)("quill:clipboard"), z = "__ql-matcher", $ = [[Node.TEXT_NODE, St], [Node.TEXT_NODE, at], ["br", K], [Node.ELEMENT_NODE, at], [Node.ELEMENT_NODE, X], [Node.ELEMENT_NODE, ut], [Node.ELEMENT_NODE, H], [Node.ELEMENT_NODE, It], ["li", rt], ["b", q.bind(q, "bold")], ["i", q.bind(q, "italic")], ["style", tt]], k = [v.AlignAttribute, N.DirectionAttribute].reduce(function(V, W) {
|
|
19551
19547
|
return V[W.keyName] = W, V;
|
|
19552
|
-
}, {}), I = [v.AlignStyle, x.BackgroundStyle,
|
|
19548
|
+
}, {}), I = [v.AlignStyle, x.BackgroundStyle, T.ColorStyle, N.DirectionStyle, A.FontStyle, E.SizeStyle].reduce(function(V, W) {
|
|
19553
19549
|
return V[W.keyName] = W, V;
|
|
19554
19550
|
}, {}), P = function(V) {
|
|
19555
19551
|
U(W, V);
|
|
@@ -19707,7 +19703,7 @@ var Hh = { exports: {} };
|
|
|
19707
19703
|
(d.default.query(Y) || {}).blotName === "list" && (J += 1), Y = Y.parentNode;
|
|
19708
19704
|
return J <= 0 ? W : W.compose(new f.default().retain(W.length() - 1).retain(1, { indent: J }));
|
|
19709
19705
|
}
|
|
19710
|
-
function
|
|
19706
|
+
function at(V, W) {
|
|
19711
19707
|
return G(W, `
|
|
19712
19708
|
`) || (M(V) || W.length() > 0 && V.nextSibling && M(V.nextSibling)) && W.insert(`
|
|
19713
19709
|
`), W;
|
|
@@ -19740,7 +19736,7 @@ var Hh = { exports: {} };
|
|
|
19740
19736
|
}
|
|
19741
19737
|
return W.insert(Q);
|
|
19742
19738
|
}
|
|
19743
|
-
n.default = P, n.matchAttributor = H, n.matchBlot = X, n.matchNewline =
|
|
19739
|
+
n.default = P, n.matchAttributor = H, n.matchBlot = X, n.matchNewline = at, n.matchSpacing = ut, n.matchText = St;
|
|
19744
19740
|
},
|
|
19745
19741
|
/* 56 */
|
|
19746
19742
|
/***/
|
|
@@ -19819,7 +19815,7 @@ var Hh = { exports: {} };
|
|
|
19819
19815
|
value: !0
|
|
19820
19816
|
}), n.addControls = n.default = void 0;
|
|
19821
19817
|
var s = function() {
|
|
19822
|
-
function
|
|
19818
|
+
function E(O, R) {
|
|
19823
19819
|
var C = [], F = !0, U = !1, D = void 0;
|
|
19824
19820
|
try {
|
|
19825
19821
|
for (var z = O[Symbol.iterator](), $; !(F = ($ = z.next()).done) && (C.push($.value), !(R && C.length === R)); F = !0)
|
|
@@ -19840,42 +19836,42 @@ var Hh = { exports: {} };
|
|
|
19840
19836
|
if (Array.isArray(O))
|
|
19841
19837
|
return O;
|
|
19842
19838
|
if (Symbol.iterator in Object(O))
|
|
19843
|
-
return
|
|
19839
|
+
return E(O, R);
|
|
19844
19840
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
19845
19841
|
};
|
|
19846
19842
|
}(), a = function() {
|
|
19847
|
-
function
|
|
19843
|
+
function E(O, R) {
|
|
19848
19844
|
for (var C = 0; C < R.length; C++) {
|
|
19849
19845
|
var F = R[C];
|
|
19850
19846
|
F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(O, F.key, F);
|
|
19851
19847
|
}
|
|
19852
19848
|
}
|
|
19853
19849
|
return function(O, R, C) {
|
|
19854
|
-
return R &&
|
|
19850
|
+
return R && E(O.prototype, R), C && E(O, C), O;
|
|
19855
19851
|
};
|
|
19856
19852
|
}(), o = i(2), l = y(o), h = i(0), c = y(h), f = i(5), u = y(f), d = i(10), p = y(d), m = i(9), g = y(m);
|
|
19857
|
-
function y(
|
|
19858
|
-
return
|
|
19853
|
+
function y(E) {
|
|
19854
|
+
return E && E.__esModule ? E : { default: E };
|
|
19859
19855
|
}
|
|
19860
|
-
function b(
|
|
19861
|
-
return O in
|
|
19856
|
+
function b(E, O, R) {
|
|
19857
|
+
return O in E ? Object.defineProperty(E, O, { value: R, enumerable: !0, configurable: !0, writable: !0 }) : E[O] = R, E;
|
|
19862
19858
|
}
|
|
19863
|
-
function _(
|
|
19864
|
-
if (!(
|
|
19859
|
+
function _(E, O) {
|
|
19860
|
+
if (!(E instanceof O))
|
|
19865
19861
|
throw new TypeError("Cannot call a class as a function");
|
|
19866
19862
|
}
|
|
19867
|
-
function v(
|
|
19868
|
-
if (!
|
|
19863
|
+
function v(E, O) {
|
|
19864
|
+
if (!E)
|
|
19869
19865
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
19870
|
-
return O && (typeof O == "object" || typeof O == "function") ? O :
|
|
19866
|
+
return O && (typeof O == "object" || typeof O == "function") ? O : E;
|
|
19871
19867
|
}
|
|
19872
|
-
function x(
|
|
19868
|
+
function x(E, O) {
|
|
19873
19869
|
if (typeof O != "function" && O !== null)
|
|
19874
19870
|
throw new TypeError("Super expression must either be null or a function, not " + typeof O);
|
|
19875
|
-
|
|
19871
|
+
E.prototype = Object.create(O && O.prototype, { constructor: { value: E, enumerable: !1, writable: !0, configurable: !0 } }), O && (Object.setPrototypeOf ? Object.setPrototypeOf(E, O) : E.__proto__ = O);
|
|
19876
19872
|
}
|
|
19877
|
-
var S = (0, p.default)("quill:toolbar"), w = function(
|
|
19878
|
-
x(O,
|
|
19873
|
+
var S = (0, p.default)("quill:toolbar"), w = function(E) {
|
|
19874
|
+
x(O, E);
|
|
19879
19875
|
function O(R, C) {
|
|
19880
19876
|
_(this, O);
|
|
19881
19877
|
var F = v(this, (O.__proto__ || Object.getPrototypeOf(O)).call(this, R, C));
|
|
@@ -19974,29 +19970,29 @@ var Hh = { exports: {} };
|
|
|
19974
19970
|
}]), O;
|
|
19975
19971
|
}(g.default);
|
|
19976
19972
|
w.DEFAULTS = {};
|
|
19977
|
-
function E
|
|
19973
|
+
function T(E, O, R) {
|
|
19978
19974
|
var C = document.createElement("button");
|
|
19979
|
-
C.setAttribute("type", "button"), C.classList.add("ql-" + O), R != null && (C.value = R),
|
|
19975
|
+
C.setAttribute("type", "button"), C.classList.add("ql-" + O), R != null && (C.value = R), E.appendChild(C);
|
|
19980
19976
|
}
|
|
19981
|
-
function N(
|
|
19977
|
+
function N(E, O) {
|
|
19982
19978
|
Array.isArray(O[0]) || (O = [O]), O.forEach(function(R) {
|
|
19983
19979
|
var C = document.createElement("span");
|
|
19984
19980
|
C.classList.add("ql-formats"), R.forEach(function(F) {
|
|
19985
19981
|
if (typeof F == "string")
|
|
19986
|
-
|
|
19982
|
+
T(C, F);
|
|
19987
19983
|
else {
|
|
19988
19984
|
var U = Object.keys(F)[0], D = F[U];
|
|
19989
|
-
Array.isArray(D) ? A(C, U, D) :
|
|
19985
|
+
Array.isArray(D) ? A(C, U, D) : T(C, U, D);
|
|
19990
19986
|
}
|
|
19991
|
-
}),
|
|
19987
|
+
}), E.appendChild(C);
|
|
19992
19988
|
});
|
|
19993
19989
|
}
|
|
19994
|
-
function A(
|
|
19990
|
+
function A(E, O, R) {
|
|
19995
19991
|
var C = document.createElement("select");
|
|
19996
19992
|
C.classList.add("ql-" + O), R.forEach(function(F) {
|
|
19997
19993
|
var U = document.createElement("option");
|
|
19998
19994
|
F !== !1 ? U.setAttribute("value", F) : U.setAttribute("selected", "selected"), C.appendChild(U);
|
|
19999
|
-
}),
|
|
19995
|
+
}), E.appendChild(C);
|
|
20000
19996
|
}
|
|
20001
19997
|
w.DEFAULTS = {
|
|
20002
19998
|
container: null,
|
|
@@ -20235,10 +20231,10 @@ var Hh = { exports: {} };
|
|
|
20235
20231
|
value: !0
|
|
20236
20232
|
});
|
|
20237
20233
|
var s = function() {
|
|
20238
|
-
function A(
|
|
20234
|
+
function A(E, O) {
|
|
20239
20235
|
var R = [], C = !0, F = !1, U = void 0;
|
|
20240
20236
|
try {
|
|
20241
|
-
for (var D =
|
|
20237
|
+
for (var D = E[Symbol.iterator](), z; !(C = (z = D.next()).done) && (R.push(z.value), !(O && R.length === O)); C = !0)
|
|
20242
20238
|
;
|
|
20243
20239
|
} catch ($) {
|
|
20244
20240
|
F = !0, U = $;
|
|
@@ -20252,18 +20248,18 @@ var Hh = { exports: {} };
|
|
|
20252
20248
|
}
|
|
20253
20249
|
return R;
|
|
20254
20250
|
}
|
|
20255
|
-
return function(
|
|
20256
|
-
if (Array.isArray(
|
|
20257
|
-
return
|
|
20258
|
-
if (Symbol.iterator in Object(
|
|
20259
|
-
return A(
|
|
20251
|
+
return function(E, O) {
|
|
20252
|
+
if (Array.isArray(E))
|
|
20253
|
+
return E;
|
|
20254
|
+
if (Symbol.iterator in Object(E))
|
|
20255
|
+
return A(E, O);
|
|
20260
20256
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
20261
20257
|
};
|
|
20262
|
-
}(), a = function A(
|
|
20263
|
-
|
|
20264
|
-
var C = Object.getOwnPropertyDescriptor(
|
|
20258
|
+
}(), a = function A(E, O, R) {
|
|
20259
|
+
E === null && (E = Function.prototype);
|
|
20260
|
+
var C = Object.getOwnPropertyDescriptor(E, O);
|
|
20265
20261
|
if (C === void 0) {
|
|
20266
|
-
var F = Object.getPrototypeOf(
|
|
20262
|
+
var F = Object.getPrototypeOf(E);
|
|
20267
20263
|
return F === null ? void 0 : A(F, O, R);
|
|
20268
20264
|
} else {
|
|
20269
20265
|
if ("value" in C)
|
|
@@ -20272,55 +20268,55 @@ var Hh = { exports: {} };
|
|
|
20272
20268
|
return U === void 0 ? void 0 : U.call(R);
|
|
20273
20269
|
}
|
|
20274
20270
|
}, o = function() {
|
|
20275
|
-
function A(
|
|
20271
|
+
function A(E, O) {
|
|
20276
20272
|
for (var R = 0; R < O.length; R++) {
|
|
20277
20273
|
var C = O[R];
|
|
20278
|
-
C.enumerable = C.enumerable || !1, C.configurable = !0, "value" in C && (C.writable = !0), Object.defineProperty(
|
|
20274
|
+
C.enumerable = C.enumerable || !1, C.configurable = !0, "value" in C && (C.writable = !0), Object.defineProperty(E, C.key, C);
|
|
20279
20275
|
}
|
|
20280
20276
|
}
|
|
20281
|
-
return function(
|
|
20282
|
-
return O && A(
|
|
20277
|
+
return function(E, O, R) {
|
|
20278
|
+
return O && A(E.prototype, O), R && A(E, R), E;
|
|
20283
20279
|
};
|
|
20284
20280
|
}(), l = i(3), h = _(l), c = i(8), f = _(c), u = i(43), d = _(u), p = i(27), m = _(p), g = i(15), y = i(41), b = _(y);
|
|
20285
20281
|
function _(A) {
|
|
20286
20282
|
return A && A.__esModule ? A : { default: A };
|
|
20287
20283
|
}
|
|
20288
|
-
function v(A,
|
|
20289
|
-
if (!(A instanceof
|
|
20284
|
+
function v(A, E) {
|
|
20285
|
+
if (!(A instanceof E))
|
|
20290
20286
|
throw new TypeError("Cannot call a class as a function");
|
|
20291
20287
|
}
|
|
20292
|
-
function x(A,
|
|
20288
|
+
function x(A, E) {
|
|
20293
20289
|
if (!A)
|
|
20294
20290
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
20295
|
-
return
|
|
20291
|
+
return E && (typeof E == "object" || typeof E == "function") ? E : A;
|
|
20296
20292
|
}
|
|
20297
|
-
function S(A,
|
|
20298
|
-
if (typeof
|
|
20299
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
20300
|
-
A.prototype = Object.create(
|
|
20293
|
+
function S(A, E) {
|
|
20294
|
+
if (typeof E != "function" && E !== null)
|
|
20295
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof E);
|
|
20296
|
+
A.prototype = Object.create(E && E.prototype, { constructor: { value: A, enumerable: !1, writable: !0, configurable: !0 } }), E && (Object.setPrototypeOf ? Object.setPrototypeOf(A, E) : A.__proto__ = E);
|
|
20301
20297
|
}
|
|
20302
|
-
var w = [[{ header: ["1", "2", "3", !1] }], ["bold", "italic", "underline", "link"], [{ list: "ordered" }, { list: "bullet" }], ["clean"]],
|
|
20303
|
-
S(
|
|
20304
|
-
function
|
|
20305
|
-
v(this,
|
|
20306
|
-
var C = x(this, (
|
|
20298
|
+
var w = [[{ header: ["1", "2", "3", !1] }], ["bold", "italic", "underline", "link"], [{ list: "ordered" }, { list: "bullet" }], ["clean"]], T = function(A) {
|
|
20299
|
+
S(E, A);
|
|
20300
|
+
function E(O, R) {
|
|
20301
|
+
v(this, E), R.modules.toolbar != null && R.modules.toolbar.container == null && (R.modules.toolbar.container = w);
|
|
20302
|
+
var C = x(this, (E.__proto__ || Object.getPrototypeOf(E)).call(this, O, R));
|
|
20307
20303
|
return C.quill.container.classList.add("ql-snow"), C;
|
|
20308
20304
|
}
|
|
20309
|
-
return o(
|
|
20305
|
+
return o(E, [{
|
|
20310
20306
|
key: "extendToolbar",
|
|
20311
20307
|
value: function(R) {
|
|
20312
20308
|
R.container.classList.add("ql-snow"), this.buildButtons([].slice.call(R.container.querySelectorAll("button")), b.default), this.buildPickers([].slice.call(R.container.querySelectorAll("select")), b.default), this.tooltip = new N(this.quill, this.options.bounds), R.container.querySelector(".ql-link") && this.quill.keyboard.addBinding({ key: "K", shortKey: !0 }, function(C, F) {
|
|
20313
20309
|
R.handlers.link.call(R, !F.format.link);
|
|
20314
20310
|
});
|
|
20315
20311
|
}
|
|
20316
|
-
}]),
|
|
20312
|
+
}]), E;
|
|
20317
20313
|
}(d.default);
|
|
20318
|
-
|
|
20314
|
+
T.DEFAULTS = (0, h.default)(!0, {}, d.default.DEFAULTS, {
|
|
20319
20315
|
modules: {
|
|
20320
20316
|
toolbar: {
|
|
20321
20317
|
handlers: {
|
|
20322
|
-
link: function(
|
|
20323
|
-
if (
|
|
20318
|
+
link: function(E) {
|
|
20319
|
+
if (E) {
|
|
20324
20320
|
var O = this.quill.getSelection();
|
|
20325
20321
|
if (O == null || O.length == 0)
|
|
20326
20322
|
return;
|
|
@@ -20336,17 +20332,17 @@ var Hh = { exports: {} };
|
|
|
20336
20332
|
}
|
|
20337
20333
|
});
|
|
20338
20334
|
var N = function(A) {
|
|
20339
|
-
S(
|
|
20340
|
-
function
|
|
20341
|
-
v(this,
|
|
20342
|
-
var C = x(this, (
|
|
20335
|
+
S(E, A);
|
|
20336
|
+
function E(O, R) {
|
|
20337
|
+
v(this, E);
|
|
20338
|
+
var C = x(this, (E.__proto__ || Object.getPrototypeOf(E)).call(this, O, R));
|
|
20343
20339
|
return C.preview = C.root.querySelector("a.ql-preview"), C;
|
|
20344
20340
|
}
|
|
20345
|
-
return o(
|
|
20341
|
+
return o(E, [{
|
|
20346
20342
|
key: "listen",
|
|
20347
20343
|
value: function() {
|
|
20348
20344
|
var R = this;
|
|
20349
|
-
a(
|
|
20345
|
+
a(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "listen", this).call(this), this.root.querySelector("a.ql-action").addEventListener("click", function(C) {
|
|
20350
20346
|
R.root.classList.contains("ql-editing") ? R.save() : R.edit("link", R.preview.textContent), C.preventDefault();
|
|
20351
20347
|
}), this.root.querySelector("a.ql-remove").addEventListener("click", function(C) {
|
|
20352
20348
|
if (R.linkRange != null) {
|
|
@@ -20373,11 +20369,11 @@ var Hh = { exports: {} };
|
|
|
20373
20369
|
}, {
|
|
20374
20370
|
key: "show",
|
|
20375
20371
|
value: function() {
|
|
20376
|
-
a(
|
|
20372
|
+
a(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "show", this).call(this), this.root.removeAttribute("data-mode");
|
|
20377
20373
|
}
|
|
20378
|
-
}]),
|
|
20374
|
+
}]), E;
|
|
20379
20375
|
}(u.BaseTooltip);
|
|
20380
|
-
N.TEMPLATE = ['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join(""), n.default =
|
|
20376
|
+
N.TEMPLATE = ['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join(""), n.default = T;
|
|
20381
20377
|
},
|
|
20382
20378
|
/* 63 */
|
|
20383
20379
|
/***/
|
|
@@ -20385,7 +20381,7 @@ var Hh = { exports: {} };
|
|
|
20385
20381
|
Object.defineProperty(n, "__esModule", {
|
|
20386
20382
|
value: !0
|
|
20387
20383
|
});
|
|
20388
|
-
var s = i(29), a = Y(s), o = i(36), l = i(38), h = i(64), c = i(65), f = Y(c), u = i(66), d = Y(u), p = i(67), m = Y(p), g = i(37), y = i(26), b = i(39), _ = i(40), v = i(56), x = Y(v), S = i(68), w = Y(S),
|
|
20384
|
+
var s = i(29), a = Y(s), o = i(36), l = i(38), h = i(64), c = i(65), f = Y(c), u = i(66), d = Y(u), p = i(67), m = Y(p), g = i(37), y = i(26), b = i(39), _ = i(40), v = i(56), x = Y(v), S = i(68), w = Y(S), T = i(27), N = Y(T), A = i(69), E = Y(A), O = i(70), R = Y(O), C = i(71), F = Y(C), U = i(72), D = Y(U), z = i(73), $ = Y(z), k = i(13), I = Y(k), P = i(74), L = Y(P), j = i(75), G = Y(j), M = i(57), B = Y(M), q = i(41), H = Y(q), X = i(28), K = Y(X), tt = i(59), rt = Y(tt), at = i(60), ut = Y(at), It = i(61), St = Y(It), V = i(108), W = Y(V), Q = i(62), J = Y(Q);
|
|
20389
20385
|
function Y(ht) {
|
|
20390
20386
|
return ht && ht.__esModule ? ht : { default: ht };
|
|
20391
20387
|
}
|
|
@@ -20419,7 +20415,7 @@ var Hh = { exports: {} };
|
|
|
20419
20415
|
"formats/code": k.Code,
|
|
20420
20416
|
"formats/italic": w.default,
|
|
20421
20417
|
"formats/link": N.default,
|
|
20422
|
-
"formats/script":
|
|
20418
|
+
"formats/script": E.default,
|
|
20423
20419
|
"formats/strike": R.default,
|
|
20424
20420
|
"formats/underline": F.default,
|
|
20425
20421
|
"formats/image": D.default,
|
|
@@ -20604,8 +20600,8 @@ var Hh = { exports: {} };
|
|
|
20604
20600
|
var s = function() {
|
|
20605
20601
|
function v(x, S) {
|
|
20606
20602
|
for (var w = 0; w < S.length; w++) {
|
|
20607
|
-
var
|
|
20608
|
-
|
|
20603
|
+
var T = S[w];
|
|
20604
|
+
T.enumerable = T.enumerable || !1, T.configurable = !0, "value" in T && (T.writable = !0), Object.defineProperty(x, T.key, T);
|
|
20609
20605
|
}
|
|
20610
20606
|
}
|
|
20611
20607
|
return function(x, S, w) {
|
|
@@ -20613,14 +20609,14 @@ var Hh = { exports: {} };
|
|
|
20613
20609
|
};
|
|
20614
20610
|
}(), a = function v(x, S, w) {
|
|
20615
20611
|
x === null && (x = Function.prototype);
|
|
20616
|
-
var
|
|
20617
|
-
if (
|
|
20612
|
+
var T = Object.getOwnPropertyDescriptor(x, S);
|
|
20613
|
+
if (T === void 0) {
|
|
20618
20614
|
var N = Object.getPrototypeOf(x);
|
|
20619
20615
|
return N === null ? void 0 : v(N, S, w);
|
|
20620
20616
|
} else {
|
|
20621
|
-
if ("value" in
|
|
20622
|
-
return
|
|
20623
|
-
var A =
|
|
20617
|
+
if ("value" in T)
|
|
20618
|
+
return T.value;
|
|
20619
|
+
var A = T.get;
|
|
20624
20620
|
return A === void 0 ? void 0 : A.call(w);
|
|
20625
20621
|
}
|
|
20626
20622
|
}, o = i(0), l = d(o), h = i(4), c = d(h), f = i(25), u = d(f);
|
|
@@ -20651,8 +20647,8 @@ var Hh = { exports: {} };
|
|
|
20651
20647
|
}
|
|
20652
20648
|
return s(x, [{
|
|
20653
20649
|
key: "format",
|
|
20654
|
-
value: function(w,
|
|
20655
|
-
w === _.blotName && !
|
|
20650
|
+
value: function(w, T) {
|
|
20651
|
+
w === _.blotName && !T ? this.replaceWith(l.default.create(this.statics.scope)) : a(x.prototype.__proto__ || Object.getPrototypeOf(x.prototype), "format", this).call(this, w, T);
|
|
20656
20652
|
}
|
|
20657
20653
|
}, {
|
|
20658
20654
|
key: "remove",
|
|
@@ -20661,8 +20657,8 @@ var Hh = { exports: {} };
|
|
|
20661
20657
|
}
|
|
20662
20658
|
}, {
|
|
20663
20659
|
key: "replaceWith",
|
|
20664
|
-
value: function(w,
|
|
20665
|
-
return this.parent.isolate(this.offset(this.parent), this.length()), w === this.parent.statics.blotName ? (this.parent.replaceWith(w,
|
|
20660
|
+
value: function(w, T) {
|
|
20661
|
+
return this.parent.isolate(this.offset(this.parent), this.length()), w === this.parent.statics.blotName ? (this.parent.replaceWith(w, T), this) : (this.parent.unwrap(), a(x.prototype.__proto__ || Object.getPrototypeOf(x.prototype), "replaceWith", this).call(this, w, T));
|
|
20666
20662
|
}
|
|
20667
20663
|
}], [{
|
|
20668
20664
|
key: "formats",
|
|
@@ -20676,7 +20672,7 @@ var Hh = { exports: {} };
|
|
|
20676
20672
|
y(x, v), s(x, null, [{
|
|
20677
20673
|
key: "create",
|
|
20678
20674
|
value: function(w) {
|
|
20679
|
-
var
|
|
20675
|
+
var T = w === "ordered" ? "OL" : "UL", N = a(x.__proto__ || Object.getPrototypeOf(x), "create", this).call(this, T);
|
|
20680
20676
|
return (w === "checked" || w === "unchecked") && N.setAttribute("data-checked", w === "checked"), N;
|
|
20681
20677
|
}
|
|
20682
20678
|
}, {
|
|
@@ -20690,18 +20686,18 @@ var Hh = { exports: {} };
|
|
|
20690
20686
|
}]);
|
|
20691
20687
|
function x(S) {
|
|
20692
20688
|
m(this, x);
|
|
20693
|
-
var w = g(this, (x.__proto__ || Object.getPrototypeOf(x)).call(this, S)),
|
|
20689
|
+
var w = g(this, (x.__proto__ || Object.getPrototypeOf(x)).call(this, S)), T = function(A) {
|
|
20694
20690
|
if (A.target.parentNode === S) {
|
|
20695
|
-
var
|
|
20696
|
-
|
|
20691
|
+
var E = w.statics.formats(S), O = l.default.find(A.target);
|
|
20692
|
+
E === "checked" ? O.format("list", "unchecked") : E === "unchecked" && O.format("list", "checked");
|
|
20697
20693
|
}
|
|
20698
20694
|
};
|
|
20699
|
-
return S.addEventListener("touchstart",
|
|
20695
|
+
return S.addEventListener("touchstart", T), S.addEventListener("mousedown", T), w;
|
|
20700
20696
|
}
|
|
20701
20697
|
return s(x, [{
|
|
20702
20698
|
key: "format",
|
|
20703
|
-
value: function(w,
|
|
20704
|
-
this.children.length > 0 && this.children.tail.format(w,
|
|
20699
|
+
value: function(w, T) {
|
|
20700
|
+
this.children.length > 0 && this.children.tail.format(w, T);
|
|
20705
20701
|
}
|
|
20706
20702
|
}, {
|
|
20707
20703
|
key: "formats",
|
|
@@ -20710,11 +20706,11 @@ var Hh = { exports: {} };
|
|
|
20710
20706
|
}
|
|
20711
20707
|
}, {
|
|
20712
20708
|
key: "insertBefore",
|
|
20713
|
-
value: function(w,
|
|
20709
|
+
value: function(w, T) {
|
|
20714
20710
|
if (w instanceof b)
|
|
20715
|
-
a(x.prototype.__proto__ || Object.getPrototypeOf(x.prototype), "insertBefore", this).call(this, w,
|
|
20711
|
+
a(x.prototype.__proto__ || Object.getPrototypeOf(x.prototype), "insertBefore", this).call(this, w, T);
|
|
20716
20712
|
else {
|
|
20717
|
-
var N =
|
|
20713
|
+
var N = T == null ? this.length() : T.offset(this), A = this.split(N);
|
|
20718
20714
|
A.parent.insertBefore(w, A);
|
|
20719
20715
|
}
|
|
20720
20716
|
}
|
|
@@ -20722,15 +20718,15 @@ var Hh = { exports: {} };
|
|
|
20722
20718
|
key: "optimize",
|
|
20723
20719
|
value: function(w) {
|
|
20724
20720
|
a(x.prototype.__proto__ || Object.getPrototypeOf(x.prototype), "optimize", this).call(this, w);
|
|
20725
|
-
var
|
|
20726
|
-
|
|
20721
|
+
var T = this.next;
|
|
20722
|
+
T != null && T.prev === this && T.statics.blotName === this.statics.blotName && T.domNode.tagName === this.domNode.tagName && T.domNode.getAttribute("data-checked") === this.domNode.getAttribute("data-checked") && (T.moveChildren(this), T.remove());
|
|
20727
20723
|
}
|
|
20728
20724
|
}, {
|
|
20729
20725
|
key: "replace",
|
|
20730
20726
|
value: function(w) {
|
|
20731
20727
|
if (w.statics.blotName !== this.statics.blotName) {
|
|
20732
|
-
var
|
|
20733
|
-
w.moveChildren(
|
|
20728
|
+
var T = l.default.create(this.statics.defaultChild);
|
|
20729
|
+
w.moveChildren(T), this.appendChild(T);
|
|
20734
20730
|
}
|
|
20735
20731
|
a(x.prototype.__proto__ || Object.getPrototypeOf(x.prototype), "replace", this).call(this, w);
|
|
20736
20732
|
}
|
|
@@ -21096,8 +21092,8 @@ var Hh = { exports: {} };
|
|
|
21096
21092
|
v === null && (v = Function.prototype);
|
|
21097
21093
|
var w = Object.getOwnPropertyDescriptor(v, x);
|
|
21098
21094
|
if (w === void 0) {
|
|
21099
|
-
var
|
|
21100
|
-
return
|
|
21095
|
+
var T = Object.getPrototypeOf(v);
|
|
21096
|
+
return T === null ? void 0 : _(T, x, S);
|
|
21101
21097
|
} else {
|
|
21102
21098
|
if ("value" in w)
|
|
21103
21099
|
return w.value;
|
|
@@ -21169,21 +21165,21 @@ var Hh = { exports: {} };
|
|
|
21169
21165
|
value: !0
|
|
21170
21166
|
}), n.default = n.CodeToken = n.CodeBlock = void 0;
|
|
21171
21167
|
var s = function() {
|
|
21172
|
-
function S(w,
|
|
21173
|
-
for (var N = 0; N <
|
|
21174
|
-
var A =
|
|
21168
|
+
function S(w, T) {
|
|
21169
|
+
for (var N = 0; N < T.length; N++) {
|
|
21170
|
+
var A = T[N];
|
|
21175
21171
|
A.enumerable = A.enumerable || !1, A.configurable = !0, "value" in A && (A.writable = !0), Object.defineProperty(w, A.key, A);
|
|
21176
21172
|
}
|
|
21177
21173
|
}
|
|
21178
|
-
return function(w,
|
|
21179
|
-
return
|
|
21174
|
+
return function(w, T, N) {
|
|
21175
|
+
return T && S(w.prototype, T), N && S(w, N), w;
|
|
21180
21176
|
};
|
|
21181
|
-
}(), a = function S(w,
|
|
21177
|
+
}(), a = function S(w, T, N) {
|
|
21182
21178
|
w === null && (w = Function.prototype);
|
|
21183
|
-
var A = Object.getOwnPropertyDescriptor(w,
|
|
21179
|
+
var A = Object.getOwnPropertyDescriptor(w, T);
|
|
21184
21180
|
if (A === void 0) {
|
|
21185
|
-
var
|
|
21186
|
-
return
|
|
21181
|
+
var E = Object.getPrototypeOf(w);
|
|
21182
|
+
return E === null ? void 0 : S(E, T, N);
|
|
21187
21183
|
} else {
|
|
21188
21184
|
if ("value" in A)
|
|
21189
21185
|
return A.value;
|
|
@@ -21236,15 +21232,15 @@ var Hh = { exports: {} };
|
|
|
21236
21232
|
c.default.register(v, !0), c.default.register(_, !0);
|
|
21237
21233
|
}
|
|
21238
21234
|
}]);
|
|
21239
|
-
function w(
|
|
21235
|
+
function w(T, N) {
|
|
21240
21236
|
g(this, w);
|
|
21241
|
-
var A = y(this, (w.__proto__ || Object.getPrototypeOf(w)).call(this,
|
|
21237
|
+
var A = y(this, (w.__proto__ || Object.getPrototypeOf(w)).call(this, T, N));
|
|
21242
21238
|
if (typeof A.options.highlight != "function")
|
|
21243
21239
|
throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");
|
|
21244
|
-
var
|
|
21240
|
+
var E = null;
|
|
21245
21241
|
return A.quill.on(c.default.events.SCROLL_OPTIMIZE, function() {
|
|
21246
|
-
clearTimeout(
|
|
21247
|
-
A.highlight(),
|
|
21242
|
+
clearTimeout(E), E = setTimeout(function() {
|
|
21243
|
+
A.highlight(), E = null;
|
|
21248
21244
|
}, A.options.interval);
|
|
21249
21245
|
}), A.highlight(), A;
|
|
21250
21246
|
}
|
|
@@ -21255,8 +21251,8 @@ var Hh = { exports: {} };
|
|
|
21255
21251
|
if (!this.quill.selection.composing) {
|
|
21256
21252
|
this.quill.update(c.default.sources.USER);
|
|
21257
21253
|
var A = this.quill.getSelection();
|
|
21258
|
-
this.quill.scroll.descendants(_).forEach(function(
|
|
21259
|
-
|
|
21254
|
+
this.quill.scroll.descendants(_).forEach(function(E) {
|
|
21255
|
+
E.highlight(N.options.highlight);
|
|
21260
21256
|
}), this.quill.update(c.default.sources.SILENT), A != null && this.quill.setSelection(A, c.default.sources.SILENT);
|
|
21261
21257
|
}
|
|
21262
21258
|
}
|
|
@@ -21438,102 +21434,102 @@ var Hh = { exports: {} };
|
|
|
21438
21434
|
Object.defineProperty(n, "__esModule", {
|
|
21439
21435
|
value: !0
|
|
21440
21436
|
}), n.default = n.BubbleTooltip = void 0;
|
|
21441
|
-
var s = function w(
|
|
21442
|
-
|
|
21443
|
-
var
|
|
21444
|
-
if (
|
|
21445
|
-
var O = Object.getPrototypeOf(
|
|
21437
|
+
var s = function w(T, N, A) {
|
|
21438
|
+
T === null && (T = Function.prototype);
|
|
21439
|
+
var E = Object.getOwnPropertyDescriptor(T, N);
|
|
21440
|
+
if (E === void 0) {
|
|
21441
|
+
var O = Object.getPrototypeOf(T);
|
|
21446
21442
|
return O === null ? void 0 : w(O, N, A);
|
|
21447
21443
|
} else {
|
|
21448
|
-
if ("value" in
|
|
21449
|
-
return
|
|
21450
|
-
var R =
|
|
21444
|
+
if ("value" in E)
|
|
21445
|
+
return E.value;
|
|
21446
|
+
var R = E.get;
|
|
21451
21447
|
return R === void 0 ? void 0 : R.call(A);
|
|
21452
21448
|
}
|
|
21453
21449
|
}, a = function() {
|
|
21454
|
-
function w(
|
|
21450
|
+
function w(T, N) {
|
|
21455
21451
|
for (var A = 0; A < N.length; A++) {
|
|
21456
|
-
var
|
|
21457
|
-
|
|
21452
|
+
var E = N[A];
|
|
21453
|
+
E.enumerable = E.enumerable || !1, E.configurable = !0, "value" in E && (E.writable = !0), Object.defineProperty(T, E.key, E);
|
|
21458
21454
|
}
|
|
21459
21455
|
}
|
|
21460
|
-
return function(
|
|
21461
|
-
return N && w(
|
|
21456
|
+
return function(T, N, A) {
|
|
21457
|
+
return N && w(T.prototype, N), A && w(T, A), T;
|
|
21462
21458
|
};
|
|
21463
21459
|
}(), o = i(3), l = g(o), h = i(8), c = g(h), f = i(43), u = g(f), d = i(15), p = i(41), m = g(p);
|
|
21464
21460
|
function g(w) {
|
|
21465
21461
|
return w && w.__esModule ? w : { default: w };
|
|
21466
21462
|
}
|
|
21467
|
-
function y(w,
|
|
21468
|
-
if (!(w instanceof
|
|
21463
|
+
function y(w, T) {
|
|
21464
|
+
if (!(w instanceof T))
|
|
21469
21465
|
throw new TypeError("Cannot call a class as a function");
|
|
21470
21466
|
}
|
|
21471
|
-
function b(w,
|
|
21467
|
+
function b(w, T) {
|
|
21472
21468
|
if (!w)
|
|
21473
21469
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
21474
|
-
return
|
|
21470
|
+
return T && (typeof T == "object" || typeof T == "function") ? T : w;
|
|
21475
21471
|
}
|
|
21476
|
-
function _(w,
|
|
21477
|
-
if (typeof
|
|
21478
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
21479
|
-
w.prototype = Object.create(
|
|
21472
|
+
function _(w, T) {
|
|
21473
|
+
if (typeof T != "function" && T !== null)
|
|
21474
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof T);
|
|
21475
|
+
w.prototype = Object.create(T && T.prototype, { constructor: { value: w, enumerable: !1, writable: !0, configurable: !0 } }), T && (Object.setPrototypeOf ? Object.setPrototypeOf(w, T) : w.__proto__ = T);
|
|
21480
21476
|
}
|
|
21481
21477
|
var v = [["bold", "italic", "link"], [{ header: 1 }, { header: 2 }, "blockquote"]], x = function(w) {
|
|
21482
|
-
_(
|
|
21483
|
-
function
|
|
21484
|
-
y(this,
|
|
21485
|
-
var
|
|
21486
|
-
return
|
|
21478
|
+
_(T, w);
|
|
21479
|
+
function T(N, A) {
|
|
21480
|
+
y(this, T), A.modules.toolbar != null && A.modules.toolbar.container == null && (A.modules.toolbar.container = v);
|
|
21481
|
+
var E = b(this, (T.__proto__ || Object.getPrototypeOf(T)).call(this, N, A));
|
|
21482
|
+
return E.quill.container.classList.add("ql-bubble"), E;
|
|
21487
21483
|
}
|
|
21488
|
-
return a(
|
|
21484
|
+
return a(T, [{
|
|
21489
21485
|
key: "extendToolbar",
|
|
21490
21486
|
value: function(A) {
|
|
21491
21487
|
this.tooltip = new S(this.quill, this.options.bounds), this.tooltip.root.appendChild(A.container), this.buildButtons([].slice.call(A.container.querySelectorAll("button")), m.default), this.buildPickers([].slice.call(A.container.querySelectorAll("select")), m.default);
|
|
21492
21488
|
}
|
|
21493
|
-
}]),
|
|
21489
|
+
}]), T;
|
|
21494
21490
|
}(u.default);
|
|
21495
21491
|
x.DEFAULTS = (0, l.default)(!0, {}, u.default.DEFAULTS, {
|
|
21496
21492
|
modules: {
|
|
21497
21493
|
toolbar: {
|
|
21498
21494
|
handlers: {
|
|
21499
|
-
link: function(
|
|
21500
|
-
|
|
21495
|
+
link: function(T) {
|
|
21496
|
+
T ? this.quill.theme.tooltip.edit() : this.quill.format("link", !1);
|
|
21501
21497
|
}
|
|
21502
21498
|
}
|
|
21503
21499
|
}
|
|
21504
21500
|
}
|
|
21505
21501
|
});
|
|
21506
21502
|
var S = function(w) {
|
|
21507
|
-
_(
|
|
21508
|
-
function
|
|
21509
|
-
y(this,
|
|
21510
|
-
var
|
|
21511
|
-
return
|
|
21503
|
+
_(T, w);
|
|
21504
|
+
function T(N, A) {
|
|
21505
|
+
y(this, T);
|
|
21506
|
+
var E = b(this, (T.__proto__ || Object.getPrototypeOf(T)).call(this, N, A));
|
|
21507
|
+
return E.quill.on(c.default.events.EDITOR_CHANGE, function(O, R, C, F) {
|
|
21512
21508
|
if (O === c.default.events.SELECTION_CHANGE)
|
|
21513
21509
|
if (R != null && R.length > 0 && F === c.default.sources.USER) {
|
|
21514
|
-
|
|
21515
|
-
var U =
|
|
21510
|
+
E.show(), E.root.style.left = "0px", E.root.style.width = "", E.root.style.width = E.root.offsetWidth + "px";
|
|
21511
|
+
var U = E.quill.getLines(R.index, R.length);
|
|
21516
21512
|
if (U.length === 1)
|
|
21517
|
-
|
|
21513
|
+
E.position(E.quill.getBounds(R));
|
|
21518
21514
|
else {
|
|
21519
|
-
var D = U[U.length - 1], z =
|
|
21520
|
-
|
|
21515
|
+
var D = U[U.length - 1], z = E.quill.getIndex(D), $ = Math.min(D.length() - 1, R.index + R.length - z), k = E.quill.getBounds(new d.Range(z, $));
|
|
21516
|
+
E.position(k);
|
|
21521
21517
|
}
|
|
21522
21518
|
} else
|
|
21523
|
-
document.activeElement !==
|
|
21524
|
-
}),
|
|
21519
|
+
document.activeElement !== E.textbox && E.quill.hasFocus() && E.hide();
|
|
21520
|
+
}), E;
|
|
21525
21521
|
}
|
|
21526
|
-
return a(
|
|
21522
|
+
return a(T, [{
|
|
21527
21523
|
key: "listen",
|
|
21528
21524
|
value: function() {
|
|
21529
21525
|
var A = this;
|
|
21530
|
-
s(
|
|
21526
|
+
s(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "listen", this).call(this), this.root.querySelector(".ql-close").addEventListener("click", function() {
|
|
21531
21527
|
A.root.classList.remove("ql-editing");
|
|
21532
21528
|
}), this.quill.on(c.default.events.SCROLL_OPTIMIZE, function() {
|
|
21533
21529
|
setTimeout(function() {
|
|
21534
21530
|
if (!A.root.classList.contains("ql-hidden")) {
|
|
21535
|
-
var
|
|
21536
|
-
|
|
21531
|
+
var E = A.quill.getSelection();
|
|
21532
|
+
E != null && A.position(A.quill.getBounds(E));
|
|
21537
21533
|
}
|
|
21538
21534
|
}, 1);
|
|
21539
21535
|
});
|
|
@@ -21546,12 +21542,12 @@ var Hh = { exports: {} };
|
|
|
21546
21542
|
}, {
|
|
21547
21543
|
key: "position",
|
|
21548
21544
|
value: function(A) {
|
|
21549
|
-
var
|
|
21550
|
-
if (O.style.marginLeft = "",
|
|
21551
|
-
return
|
|
21552
|
-
O.style.marginLeft = -1 *
|
|
21545
|
+
var E = s(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "position", this).call(this, A), O = this.root.querySelector(".ql-tooltip-arrow");
|
|
21546
|
+
if (O.style.marginLeft = "", E === 0)
|
|
21547
|
+
return E;
|
|
21548
|
+
O.style.marginLeft = -1 * E - O.offsetWidth / 2 + "px";
|
|
21553
21549
|
}
|
|
21554
|
-
}]),
|
|
21550
|
+
}]), T;
|
|
21555
21551
|
}(f.BaseTooltip);
|
|
21556
21552
|
S.TEMPLATE = ['<span class="ql-tooltip-arrow"></span>', '<div class="ql-tooltip-editor">', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-close"></a>', "</div>"].join(""), n.BubbleTooltip = S, n.default = x;
|
|
21557
21553
|
},
|
|
@@ -21587,11 +21583,11 @@ const oA = (e) => {
|
|
|
21587
21583
|
scale: x = [1, 1],
|
|
21588
21584
|
x: S,
|
|
21589
21585
|
y: w,
|
|
21590
|
-
rotation:
|
|
21586
|
+
rotation: T = 1,
|
|
21591
21587
|
/// font
|
|
21592
21588
|
fontFamily: N = "Arial",
|
|
21593
21589
|
fontWeight: A = "normal",
|
|
21594
|
-
fontStyle:
|
|
21590
|
+
fontStyle: E = "normal",
|
|
21595
21591
|
fontSize: O = 16,
|
|
21596
21592
|
// fill
|
|
21597
21593
|
fill: R = "black",
|
|
@@ -21607,12 +21603,12 @@ const oA = (e) => {
|
|
|
21607
21603
|
leading: k = 0,
|
|
21608
21604
|
letterSpacing: I
|
|
21609
21605
|
} = u;
|
|
21610
|
-
|
|
21606
|
+
ot.useEffect(() => {
|
|
21611
21607
|
o.current = Number(O);
|
|
21612
21608
|
}, [O]);
|
|
21613
|
-
const P = ["italic", "oblique"].includes(
|
|
21609
|
+
const P = ["italic", "oblique"].includes(E) ? E : void 0, L = ["bold", "lighter", "100", "200", "300"].includes(
|
|
21614
21610
|
A
|
|
21615
|
-
) ? A : void 0, j = Number(I) > 0 ? I : void 0, G =
|
|
21611
|
+
) ? A : void 0, j = Number(I) > 0 ? I : void 0, G = ot.useMemo(() => new de.TextStyle({
|
|
21616
21612
|
fontFamily: N,
|
|
21617
21613
|
fontSize: O,
|
|
21618
21614
|
fill: R || "white",
|
|
@@ -21653,7 +21649,7 @@ const oA = (e) => {
|
|
|
21653
21649
|
F,
|
|
21654
21650
|
$
|
|
21655
21651
|
]);
|
|
21656
|
-
|
|
21652
|
+
ot.useEffect(() => {
|
|
21657
21653
|
l.current = {
|
|
21658
21654
|
...u
|
|
21659
21655
|
};
|
|
@@ -21665,7 +21661,7 @@ const oA = (e) => {
|
|
|
21665
21661
|
droptype: "titles"
|
|
21666
21662
|
});
|
|
21667
21663
|
};
|
|
21668
|
-
return
|
|
21664
|
+
return ot.useEffect(() => {
|
|
21669
21665
|
if (t && s.current) {
|
|
21670
21666
|
let q = document.getElementById("note-editor");
|
|
21671
21667
|
if (q) {
|
|
@@ -21713,7 +21709,7 @@ const oA = (e) => {
|
|
|
21713
21709
|
style: G,
|
|
21714
21710
|
x: S,
|
|
21715
21711
|
y: w,
|
|
21716
|
-
rotation:
|
|
21712
|
+
rotation: T,
|
|
21717
21713
|
anchor: 0.5,
|
|
21718
21714
|
text: c,
|
|
21719
21715
|
...!t && !f && {
|
|
@@ -21746,10 +21742,10 @@ const oA = (e) => {
|
|
|
21746
21742
|
size: { width: 50, height: 50 },
|
|
21747
21743
|
isDragging: !1
|
|
21748
21744
|
}, lA = (e) => {
|
|
21749
|
-
const [t, r] =
|
|
21745
|
+
const [t, r] = ot.useState(!1), [, n] = le(!1), [, i] = ot.useState({
|
|
21750
21746
|
isWaiting: !1,
|
|
21751
21747
|
isStalled: !1
|
|
21752
|
-
}), [s, a] =
|
|
21748
|
+
}), [s, a] = ot.useState(), [o, l] = le(!1), h = dt(null), c = dt(null), f = dt(null), u = dt(null), d = dt(null), p = dt(null), m = dt(XT), {
|
|
21753
21749
|
tl: g,
|
|
21754
21750
|
playerTimeRef: y,
|
|
21755
21751
|
isDragging: b
|
|
@@ -21759,10 +21755,10 @@ const oA = (e) => {
|
|
|
21759
21755
|
locked: x = !1,
|
|
21760
21756
|
src: S,
|
|
21761
21757
|
startAt: w,
|
|
21762
|
-
endAt:
|
|
21758
|
+
endAt: T,
|
|
21763
21759
|
frameStartAt: N,
|
|
21764
21760
|
frameEndAt: A,
|
|
21765
|
-
initialAlpha:
|
|
21761
|
+
initialAlpha: E,
|
|
21766
21762
|
transformation: {
|
|
21767
21763
|
x: O,
|
|
21768
21764
|
y: R,
|
|
@@ -21787,21 +21783,21 @@ const oA = (e) => {
|
|
|
21787
21783
|
contrast: K = 1,
|
|
21788
21784
|
saturation: tt = 1,
|
|
21789
21785
|
exposure: rt = 1,
|
|
21790
|
-
blurRadius:
|
|
21786
|
+
blurRadius: at = 0,
|
|
21791
21787
|
alpha: ut = 1
|
|
21792
21788
|
} = $ || {}, It = {
|
|
21793
21789
|
brightness: rt,
|
|
21794
21790
|
contrast: K,
|
|
21795
21791
|
saturation: tt,
|
|
21796
21792
|
alpha: ut
|
|
21797
|
-
}, St =
|
|
21793
|
+
}, St = ot.useCallback(() => {
|
|
21798
21794
|
l(!0);
|
|
21799
|
-
}, []), V =
|
|
21795
|
+
}, []), V = ot.useCallback(
|
|
21800
21796
|
(Z) => {
|
|
21801
21797
|
console.log("changeEnd", Z), H && (console.log("running onAnchorTransformationEnd"), H(Z));
|
|
21802
21798
|
},
|
|
21803
21799
|
[]
|
|
21804
|
-
), W =
|
|
21800
|
+
), W = ot.useMemo(() => {
|
|
21805
21801
|
const Z = document.createElement("video");
|
|
21806
21802
|
return Z.src = S, Z.crossOrigin = "Anonymus", Z.autoplay = !1, Z.currentTime = 1e-4, Z;
|
|
21807
21803
|
}, [S]);
|
|
@@ -21810,11 +21806,11 @@ const oA = (e) => {
|
|
|
21810
21806
|
const it = p.current;
|
|
21811
21807
|
it.currentTime > 0 && !it.paused && !it.ended && it.readyState > it.HAVE_CURRENT_DATA && p.current.pause(), m.current.isPlaying = !1;
|
|
21812
21808
|
}
|
|
21813
|
-
}),
|
|
21809
|
+
}), ot.useEffect(() => {
|
|
21814
21810
|
console.log("current", p.current, b), p.current && (b ? (p.current.pause(), m.current.isPlaying = !1, m.current.isDragging = !0) : m.current.isDragging = !1);
|
|
21815
21811
|
}, [b]);
|
|
21816
21812
|
const Q = (Z) => {
|
|
21817
|
-
p.current && (console.log("video gsapOnStart", y.current, b), y.current >= Z && y.current <=
|
|
21813
|
+
p.current && (console.log("video gsapOnStart", y.current, b), y.current >= Z && y.current <= T && !b && (p.current.currentTime = Number(N) || Number(Z), p.current.play(), m.current.isPlaying = !0));
|
|
21818
21814
|
}, J = () => {
|
|
21819
21815
|
if (console.log("onComplete triggered"), p.current) {
|
|
21820
21816
|
const Z = p.current;
|
|
@@ -21837,7 +21833,7 @@ const oA = (e) => {
|
|
|
21837
21833
|
});
|
|
21838
21834
|
if (c.current && g.current) {
|
|
21839
21835
|
const it = {
|
|
21840
|
-
duration: Number(
|
|
21836
|
+
duration: Number(T) - Number(w),
|
|
21841
21837
|
onStart: Q,
|
|
21842
21838
|
onComplete: J,
|
|
21843
21839
|
onStartParams: [w],
|
|
@@ -21851,30 +21847,30 @@ const oA = (e) => {
|
|
|
21851
21847
|
ee(At.from) ? ee(At.to) ? ee(At.fromTo) ? g.current.to(c.current, { alpha: 1, duration: 0.01 }, w).from(u.current, { ...it }, w).to(
|
|
21852
21848
|
c.current,
|
|
21853
21849
|
{ alpha: 0, duration: 0.1 },
|
|
21854
|
-
Number(
|
|
21850
|
+
Number(T) - 0.1
|
|
21855
21851
|
) : g.current.fromTo(
|
|
21856
21852
|
c.current,
|
|
21857
21853
|
(Gt = At.fromTo) == null ? void 0 : Gt.from,
|
|
21858
21854
|
(bt = At.fromTo) == null ? void 0 : bt.to,
|
|
21859
21855
|
w
|
|
21860
|
-
).from(u.current, { ...it }, w).to(c.current, { alpha: 0, duration: 0.2 },
|
|
21856
|
+
).from(u.current, { ...it }, w).to(c.current, { alpha: 0, duration: 0.2 }, T - 0.2) : g.current.to(
|
|
21861
21857
|
c.current,
|
|
21862
21858
|
{ alpha: 1, duration: 0.2, ...At.to },
|
|
21863
21859
|
w
|
|
21864
|
-
).from(u.current, { ...it }, w).to(c.current, { alpha: 0, duration: 0.2 },
|
|
21860
|
+
).from(u.current, { ...it }, w).to(c.current, { alpha: 0, duration: 0.2 }, T - 0.2) : g.current.from(c.current, { ...At.from }, w).to(u.current, { alpha: 1, duration: 0.2 }, w).from(u.current, { ...it }, w).to(c.current, { alpha: 0, duration: 0.2 }, T - 0.2);
|
|
21865
21861
|
});
|
|
21866
21862
|
}
|
|
21867
21863
|
return () => Z.revert();
|
|
21868
|
-
}, [z, w,
|
|
21864
|
+
}, [z, w, T]), ot.useEffect(() => {
|
|
21869
21865
|
c.current && r(!0);
|
|
21870
|
-
}, []),
|
|
21866
|
+
}, []), ot.useEffect(() => {
|
|
21871
21867
|
p.current && (p.current.muted = v);
|
|
21872
|
-
}, [v]),
|
|
21868
|
+
}, [v]), ot.useEffect(() => {
|
|
21873
21869
|
if (p.current) {
|
|
21874
21870
|
const Z = p.current;
|
|
21875
21871
|
Z.currentTime > 0 && !Z.paused && !Z.ended && Z.readyState > Z.HAVE_CURRENT_DATA && (o || b) && (p.current.pause(), m.current.isPlaying = !1);
|
|
21876
21872
|
}
|
|
21877
|
-
}, [o, b]),
|
|
21873
|
+
}, [o, b]), ot.useEffect(() => {
|
|
21878
21874
|
const Z = Math.round((Number(N) + Number.EPSILON) * 100) / 100, it = function() {
|
|
21879
21875
|
p.current && (p.current.currentTime = Z);
|
|
21880
21876
|
}, At = function() {
|
|
@@ -21911,7 +21907,7 @@ const oA = (e) => {
|
|
|
21911
21907
|
Ft,
|
|
21912
21908
|
{
|
|
21913
21909
|
ref: c,
|
|
21914
|
-
alpha:
|
|
21910
|
+
alpha: E,
|
|
21915
21911
|
position: [O, R],
|
|
21916
21912
|
pivot: [O, R],
|
|
21917
21913
|
width: C,
|
|
@@ -21920,7 +21916,7 @@ const oA = (e) => {
|
|
|
21920
21916
|
zT,
|
|
21921
21917
|
{
|
|
21922
21918
|
scale: 1,
|
|
21923
|
-
blur: { blur:
|
|
21919
|
+
blur: { blur: at, quality: 4 },
|
|
21924
21920
|
adjust: It,
|
|
21925
21921
|
apply: ({ matrix: Z }) => {
|
|
21926
21922
|
k === "BlackAndWhite" ? Z.desaturate() : k === "Sepia" ? Z.sepia() : k === "RetroVintage" || k === "NightVision" ? Z.negative() : k === "Normal" && Z.reset();
|
|
@@ -21960,12 +21956,11 @@ const oA = (e) => {
|
|
|
21960
21956
|
)
|
|
21961
21957
|
}
|
|
21962
21958
|
),
|
|
21963
|
-
q && /* @__PURE__ */ ft.jsx(
|
|
21959
|
+
q && t && /* @__PURE__ */ ft.jsx(
|
|
21964
21960
|
Sa,
|
|
21965
21961
|
{
|
|
21966
21962
|
pixiTransformerRef: d,
|
|
21967
21963
|
imageRef: c,
|
|
21968
|
-
isMounted: t,
|
|
21969
21964
|
transformCommit: V,
|
|
21970
21965
|
transformChange: St,
|
|
21971
21966
|
mouseoverEvent: n,
|