ablok-components 0.1.99 → 0.1.101
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/ablok-components.es.js +129 -129
- package/dist/ablok-components.umd.js +14 -14
- package/package.json +1 -1
|
@@ -4143,7 +4143,7 @@ class je extends ft {
|
|
|
4143
4143
|
}
|
|
4144
4144
|
}
|
|
4145
4145
|
ft.jsonID("replace", je);
|
|
4146
|
-
class
|
|
4146
|
+
class Pe extends ft {
|
|
4147
4147
|
/**
|
|
4148
4148
|
Create a replace-around step with the given range and gap.
|
|
4149
4149
|
`insert` should be the point in the slice into which the content
|
|
@@ -4174,11 +4174,11 @@ class Ke extends ft {
|
|
|
4174
4174
|
}
|
|
4175
4175
|
invert(A) {
|
|
4176
4176
|
let e = this.gapTo - this.gapFrom;
|
|
4177
|
-
return new
|
|
4177
|
+
return new Pe(this.from, this.from + this.slice.size + e, this.from + this.insert, this.from + this.insert + e, A.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
|
|
4178
4178
|
}
|
|
4179
4179
|
map(A) {
|
|
4180
4180
|
let e = A.mapResult(this.from, 1), n = A.mapResult(this.to, -1), r = A.map(this.gapFrom, -1), i = A.map(this.gapTo, 1);
|
|
4181
|
-
return e.deletedAcross && n.deletedAcross || r < e.pos || i > n.pos ? null : new
|
|
4181
|
+
return e.deletedAcross && n.deletedAcross || r < e.pos || i > n.pos ? null : new Pe(e.pos, n.pos, r, i, this.slice, this.insert, this.structure);
|
|
4182
4182
|
}
|
|
4183
4183
|
toJSON() {
|
|
4184
4184
|
let A = {
|
|
@@ -4197,10 +4197,10 @@ class Ke extends ft {
|
|
|
4197
4197
|
static fromJSON(A, e) {
|
|
4198
4198
|
if (typeof e.from != "number" || typeof e.to != "number" || typeof e.gapFrom != "number" || typeof e.gapTo != "number" || typeof e.insert != "number")
|
|
4199
4199
|
throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
|
|
4200
|
-
return new
|
|
4200
|
+
return new Pe(e.from, e.to, e.gapFrom, e.gapTo, AA.fromJSON(A, e.slice), e.insert, !!e.structure);
|
|
4201
4201
|
}
|
|
4202
4202
|
}
|
|
4203
|
-
ft.jsonID("replaceAround",
|
|
4203
|
+
ft.jsonID("replaceAround", Pe);
|
|
4204
4204
|
function Vf(t, A, e) {
|
|
4205
4205
|
let n = t.resolve(A), r = e - A, i = n.depth;
|
|
4206
4206
|
for (; r > 0 && i > 0 && n.indexAfter(i) == n.node(i).childCount; )
|
|
@@ -4301,7 +4301,7 @@ function yT(t, A, e) {
|
|
|
4301
4301
|
let p = J.empty, B = 0;
|
|
4302
4302
|
for (let m = i, E = !1; m > e; m--)
|
|
4303
4303
|
E || r.after(m + 1) < r.end(m) ? (E = !0, p = J.from(r.node(m).copy(p)), B++) : c++;
|
|
4304
|
-
t.step(new
|
|
4304
|
+
t.step(new Pe(u, c, s, a, new AA(f.append(p), h, B), f.size - h, !0));
|
|
4305
4305
|
}
|
|
4306
4306
|
function $d(t, A, e = null, n = t) {
|
|
4307
4307
|
let r = vT(t, A), i = r && QT(n, A);
|
|
@@ -4337,7 +4337,7 @@ function ET(t, A, e) {
|
|
|
4337
4337
|
n = J.from(e[s].type.create(e[s].attrs, n));
|
|
4338
4338
|
}
|
|
4339
4339
|
let r = A.start, i = A.end;
|
|
4340
|
-
t.step(new
|
|
4340
|
+
t.step(new Pe(r, i, r, i, new AA(n, 0, 0), e.length, !0));
|
|
4341
4341
|
}
|
|
4342
4342
|
function FT(t, A, e, n, r) {
|
|
4343
4343
|
if (!n.isTextblock)
|
|
@@ -4347,7 +4347,7 @@ function FT(t, A, e, n, r) {
|
|
|
4347
4347
|
if (s.isTextblock && !s.hasMarkup(n, r) && UT(t.doc, t.mapping.slice(i).map(a), n)) {
|
|
4348
4348
|
t.clearIncompatible(t.mapping.slice(i).map(a, 1), n);
|
|
4349
4349
|
let u = t.mapping.slice(i), c = u.map(a, 1), f = u.map(a + s.nodeSize, 1);
|
|
4350
|
-
return t.step(new
|
|
4350
|
+
return t.step(new Pe(c, f, c + 1, f - 1, new AA(J.from(n.create(r, null, s.marks)), 0, 0), 1, !0)), !1;
|
|
4351
4351
|
}
|
|
4352
4352
|
});
|
|
4353
4353
|
}
|
|
@@ -4365,7 +4365,7 @@ function bT(t, A, e, n, r) {
|
|
|
4365
4365
|
return t.replaceWith(A, A + i.nodeSize, s);
|
|
4366
4366
|
if (!e.validContent(i.content))
|
|
4367
4367
|
throw new RangeError("Invalid content for node type " + e.name);
|
|
4368
|
-
t.step(new
|
|
4368
|
+
t.step(new Pe(A, A + i.nodeSize, A + 1, A + i.nodeSize - 1, new AA(J.from(s), 0, 0), 1, !0));
|
|
4369
4369
|
}
|
|
4370
4370
|
function Es(t, A, e = 1, n) {
|
|
4371
4371
|
let r = t.resolve(A), i = r.depth - e, s = n && n[n.length - 1] || r.parent;
|
|
@@ -4495,7 +4495,7 @@ class _T {
|
|
|
4495
4495
|
for (; s && a && i.childCount == 1; )
|
|
4496
4496
|
i = i.firstChild.content, s--, a--;
|
|
4497
4497
|
let u = new AA(i, s, a);
|
|
4498
|
-
return A > -1 ? new
|
|
4498
|
+
return A > -1 ? new Pe(n.pos, A, this.$to.pos, this.$to.end(), u, e) : u.size || n.pos != this.$to.pos ? new je(n.pos, r.pos, u) : null;
|
|
4499
4499
|
}
|
|
4500
4500
|
// Find a position on the start spine of `this.unplaced` that has
|
|
4501
4501
|
// content that can be moved somewhere on the frontier. Returns two
|
|
@@ -5426,7 +5426,7 @@ function hB(t, A, e) {
|
|
|
5426
5426
|
if (n < A)
|
|
5427
5427
|
return;
|
|
5428
5428
|
let r = t.steps[n];
|
|
5429
|
-
if (!(r instanceof je || r instanceof
|
|
5429
|
+
if (!(r instanceof je || r instanceof Pe))
|
|
5430
5430
|
return;
|
|
5431
5431
|
let i = t.mapping.maps[n], s;
|
|
5432
5432
|
i.forEach((a, u, c, f) => {
|
|
@@ -9806,7 +9806,7 @@ function B0(t, A, e) {
|
|
|
9806
9806
|
for (let E = i.length - 1; E >= 0; E--)
|
|
9807
9807
|
p = J.from(i[E].create(null, p));
|
|
9808
9808
|
p = J.from(n.copy(p));
|
|
9809
|
-
let B = t.tr.step(new
|
|
9809
|
+
let B = t.tr.step(new Pe(A.pos - 1, h, A.pos, h, new AA(p, 1, 0), i.length, !0)), m = h + 2 * i.length;
|
|
9810
9810
|
ei(B.doc, m) && B.join(m), e(B.scrollIntoView());
|
|
9811
9811
|
}
|
|
9812
9812
|
return !0;
|
|
@@ -9826,7 +9826,7 @@ function B0(t, A, e) {
|
|
|
9826
9826
|
let E = J.empty;
|
|
9827
9827
|
for (let y = p.length - 1; y >= 0; y--)
|
|
9828
9828
|
E = J.from(p[y].copy(E));
|
|
9829
|
-
let F = t.tr.step(new
|
|
9829
|
+
let F = t.tr.step(new Pe(A.pos - p.length, A.pos + r.nodeSize, A.pos + m, A.pos + r.nodeSize - m, new AA(E, p.length, 0), 0, !0));
|
|
9830
9830
|
e(F.scrollIntoView());
|
|
9831
9831
|
}
|
|
9832
9832
|
return !0;
|
|
@@ -9902,7 +9902,7 @@ function Wx(t, A, e, n, r) {
|
|
|
9902
9902
|
let i = J.empty;
|
|
9903
9903
|
for (let f = e.length - 1; f >= 0; f--)
|
|
9904
9904
|
i = J.from(e[f].type.create(e[f].attrs, i));
|
|
9905
|
-
t.step(new
|
|
9905
|
+
t.step(new Pe(A.start - (n ? 2 : 0), A.end, A.start, A.end, new AA(i, 0, 0), e.length, !0));
|
|
9906
9906
|
let s = 0;
|
|
9907
9907
|
for (let f = 0; f < e.length; f++)
|
|
9908
9908
|
e[f].type == r && (s = f + 1);
|
|
@@ -9919,7 +9919,7 @@ function $x(t) {
|
|
|
9919
9919
|
}
|
|
9920
9920
|
function Jx(t, A, e, n) {
|
|
9921
9921
|
let r = t.tr, i = n.end, s = n.$to.end(n.depth);
|
|
9922
|
-
i < s && (r.step(new
|
|
9922
|
+
i < s && (r.step(new Pe(i - 1, s, i, s, new AA(J.from(e.create(null, n.parent.copy())), 1, 0), 1, !0)), n = new Tl(r.doc.resolve(n.$from.pos), r.doc.resolve(s), n.depth));
|
|
9923
9923
|
const a = Ds(n);
|
|
9924
9924
|
if (a == null)
|
|
9925
9925
|
return !1;
|
|
@@ -9938,7 +9938,7 @@ function Xx(t, A, e) {
|
|
|
9938
9938
|
if (!c.canReplace(f + (a ? 0 : 1), f + 1, s.content.append(u ? J.empty : J.from(r))))
|
|
9939
9939
|
return !1;
|
|
9940
9940
|
let h = i.pos, p = h + s.nodeSize;
|
|
9941
|
-
return n.step(new
|
|
9941
|
+
return n.step(new Pe(h - (a ? 1 : 0), p + (u ? 1 : 0), h + 1, p - 1, new AA((a ? J.empty : J.from(r.copy(J.empty))).append(u ? J.empty : J.from(r.copy(J.empty))), a ? 0 : 1, u ? 0 : 1), a ? 0 : 1)), A(n.scrollIntoView()), !0;
|
|
9942
9942
|
}
|
|
9943
9943
|
function Yx(t) {
|
|
9944
9944
|
return function(A, e) {
|
|
@@ -9953,7 +9953,7 @@ function Yx(t) {
|
|
|
9953
9953
|
return !1;
|
|
9954
9954
|
if (e) {
|
|
9955
9955
|
let c = u.lastChild && u.lastChild.type == a.type, f = J.from(c ? t.create() : null), h = new AA(J.from(t.create(null, J.from(a.type.create(null, f)))), c ? 3 : 1, 0), p = i.start, B = i.end;
|
|
9956
|
-
e(A.tr.step(new
|
|
9956
|
+
e(A.tr.step(new Pe(p - (c ? 3 : 1), B, p, B, h, 1, !0)).scrollIntoView());
|
|
9957
9957
|
}
|
|
9958
9958
|
return !0;
|
|
9959
9959
|
};
|
|
@@ -10130,7 +10130,7 @@ function w0(t) {
|
|
|
10130
10130
|
});
|
|
10131
10131
|
}), A;
|
|
10132
10132
|
}
|
|
10133
|
-
function
|
|
10133
|
+
function Ge(t, A) {
|
|
10134
10134
|
if (typeof t == "string") {
|
|
10135
10135
|
if (!A.nodes[t])
|
|
10136
10136
|
throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);
|
|
@@ -10625,7 +10625,7 @@ class Cs {
|
|
|
10625
10625
|
options: n.options,
|
|
10626
10626
|
storage: n.storage,
|
|
10627
10627
|
editor: A,
|
|
10628
|
-
type:
|
|
10628
|
+
type: Ge(n.name, this.schema)
|
|
10629
10629
|
}, s = oA(n, "addNodeView", i);
|
|
10630
10630
|
if (!s)
|
|
10631
10631
|
return [];
|
|
@@ -10768,7 +10768,7 @@ const uO = ct.create({
|
|
|
10768
10768
|
}
|
|
10769
10769
|
return !1;
|
|
10770
10770
|
}, mO = (t) => ({ tr: A, state: e, dispatch: n }) => {
|
|
10771
|
-
const r =
|
|
10771
|
+
const r = Ge(t, e.schema), i = A.selection.$anchor;
|
|
10772
10772
|
for (let s = i.depth; s > 0; s -= 1)
|
|
10773
10773
|
if (i.node(s).type === r) {
|
|
10774
10774
|
if (n) {
|
|
@@ -10906,7 +10906,7 @@ function SO(t, A, e) {
|
|
|
10906
10906
|
if (n < A)
|
|
10907
10907
|
return;
|
|
10908
10908
|
const r = t.steps[n];
|
|
10909
|
-
if (!(r instanceof je || r instanceof
|
|
10909
|
+
if (!(r instanceof je || r instanceof Pe))
|
|
10910
10910
|
return;
|
|
10911
10911
|
const i = t.mapping.maps[n];
|
|
10912
10912
|
let s = 0;
|
|
@@ -10997,7 +10997,7 @@ const NO = (t) => ({ editor: A, view: e, tr: n, dispatch: r }) => {
|
|
|
10997
10997
|
}), !0;
|
|
10998
10998
|
};
|
|
10999
10999
|
function Ro(t, A, e = {}) {
|
|
11000
|
-
const { from: n, to: r, empty: i } = t.selection, s = A ?
|
|
11000
|
+
const { from: n, to: r, empty: i } = t.selection, s = A ? Ge(A, t.schema) : null, a = [];
|
|
11001
11001
|
t.doc.nodesBetween(n, r, (h, p) => {
|
|
11002
11002
|
if (h.isText)
|
|
11003
11003
|
return;
|
|
@@ -11012,10 +11012,10 @@ function Ro(t, A, e = {}) {
|
|
|
11012
11012
|
return i ? !!c.length : c.reduce((h, p) => h + p.to - p.from, 0) >= u;
|
|
11013
11013
|
}
|
|
11014
11014
|
const RO = (t, A = {}) => ({ state: e, dispatch: n }) => {
|
|
11015
|
-
const r =
|
|
11015
|
+
const r = Ge(t, e.schema);
|
|
11016
11016
|
return Ro(e, r, A) ? Hx(e, n) : !1;
|
|
11017
11017
|
}, KO = () => ({ state: t, dispatch: A }) => kx(t, A), PO = (t) => ({ state: A, dispatch: e }) => {
|
|
11018
|
-
const n =
|
|
11018
|
+
const n = Ge(t, A.schema);
|
|
11019
11019
|
return $x(n)(A, e);
|
|
11020
11020
|
}, VO = () => ({ state: t, dispatch: A }) => Lx(t, A);
|
|
11021
11021
|
function du(t, A) {
|
|
@@ -11028,7 +11028,7 @@ function tm(t, A) {
|
|
|
11028
11028
|
const GO = (t, A) => ({ tr: e, state: n, dispatch: r }) => {
|
|
11029
11029
|
let i = null, s = null;
|
|
11030
11030
|
const a = du(typeof t == "string" ? t : t.name, n.schema);
|
|
11031
|
-
return a ? (a === "node" && (i =
|
|
11031
|
+
return a ? (a === "node" && (i = Ge(t, n.schema)), a === "mark" && (s = ni(t, n.schema)), r && e.selection.ranges.forEach((u) => {
|
|
11032
11032
|
n.doc.nodesBetween(u.$from.pos, u.$to.pos, (c, f) => {
|
|
11033
11033
|
i && i === c.type && e.setNodeMarkup(f, void 0, tm(c.attrs, A)), s && c.marks.length && c.marks.forEach((h) => {
|
|
11034
11034
|
s === h.type && e.addMark(f, f + c.nodeSize, s.create(tm(h.attrs, A)));
|
|
@@ -11089,7 +11089,7 @@ function tH(t, A) {
|
|
|
11089
11089
|
return y0(t, e, A);
|
|
11090
11090
|
}
|
|
11091
11091
|
function nH(t, A) {
|
|
11092
|
-
const e =
|
|
11092
|
+
const e = Ge(A, t.schema), { from: n, to: r } = t.selection, i = [];
|
|
11093
11093
|
t.doc.nodesBetween(n, r, (a) => {
|
|
11094
11094
|
i.push(a);
|
|
11095
11095
|
});
|
|
@@ -11232,7 +11232,7 @@ const lH = (t, A = {}) => ({ tr: e, state: n, dispatch: r }) => {
|
|
|
11232
11232
|
});
|
|
11233
11233
|
return aH(n, e, u);
|
|
11234
11234
|
}, uH = (t, A) => ({ tr: e }) => (e.setMeta(t, A), !0), cH = (t, A = {}) => ({ state: e, dispatch: n, chain: r }) => {
|
|
11235
|
-
const i =
|
|
11235
|
+
const i = Ge(t, e.schema);
|
|
11236
11236
|
return i.isTextblock ? r().command(({ commands: s }) => qB(i, A)(e) ? !0 : s.clearNodes()).command(({ state: s }) => qB(i, A)(s, n)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
11237
11237
|
}, fH = (t) => ({ tr: A, dispatch: e }) => {
|
|
11238
11238
|
if (e) {
|
|
@@ -11247,7 +11247,7 @@ const lH = (t, A = {}) => ({ tr: e, state: n, dispatch: r }) => {
|
|
|
11247
11247
|
}
|
|
11248
11248
|
return !0;
|
|
11249
11249
|
}, hH = (t) => ({ state: A, dispatch: e }) => {
|
|
11250
|
-
const n =
|
|
11250
|
+
const n = Ge(t, A.schema);
|
|
11251
11251
|
return Yx(n)(A, e);
|
|
11252
11252
|
};
|
|
11253
11253
|
function rm(t, A) {
|
|
@@ -11287,7 +11287,7 @@ const pH = ({ keepMarks: t = !0 } = {}) => ({ tr: A, state: e, dispatch: n, edit
|
|
|
11287
11287
|
return !0;
|
|
11288
11288
|
}, gH = (t) => ({ tr: A, state: e, dispatch: n, editor: r }) => {
|
|
11289
11289
|
var i;
|
|
11290
|
-
const s =
|
|
11290
|
+
const s = Ge(t, e.schema), { $from: a, $to: u } = e.selection, c = e.selection.node;
|
|
11291
11291
|
if (c && c.isBlock || a.depth < 2 || !a.sameParent(u))
|
|
11292
11292
|
return !1;
|
|
11293
11293
|
const f = a.node(-1);
|
|
@@ -11350,7 +11350,7 @@ const pH = ({ keepMarks: t = !0 } = {}) => ({ tr: A, state: e, dispatch: n, edit
|
|
|
11350
11350
|
const r = t.doc.nodeAt(n);
|
|
11351
11351
|
return e.node.type === (r == null ? void 0 : r.type) && ei(t.doc, n) && t.join(n), !0;
|
|
11352
11352
|
}, BH = (t, A, e, n = {}) => ({ editor: r, tr: i, state: s, dispatch: a, chain: u, commands: c, can: f }) => {
|
|
11353
|
-
const { extensions: h, splittableMarks: p } = r.extensionManager, B =
|
|
11353
|
+
const { extensions: h, splittableMarks: p } = r.extensionManager, B = Ge(t, s.schema), m = Ge(A, s.schema), { selection: E, storedMarks: F } = s, { $from: y, $to: b } = E, L = y.blockRange(b), v = F || E.$to.parentOffset && E.$from.marks();
|
|
11354
11354
|
if (!L)
|
|
11355
11355
|
return !1;
|
|
11356
11356
|
const M = lh((S) => nm(S.type.name, h))(E);
|
|
@@ -11368,10 +11368,10 @@ const pH = ({ keepMarks: t = !0 } = {}) => ({ tr: A, state: e, dispatch: n, edit
|
|
|
11368
11368
|
const { extendEmptyMarkRange: i = !1 } = e, s = ni(t, n.schema);
|
|
11369
11369
|
return td(n, s, A) ? r.unsetMark(s, { extendEmptyMarkRange: i }) : r.setMark(s, A);
|
|
11370
11370
|
}, wH = (t, A, e = {}) => ({ state: n, commands: r }) => {
|
|
11371
|
-
const i =
|
|
11371
|
+
const i = Ge(t, n.schema), s = Ge(A, n.schema);
|
|
11372
11372
|
return Ro(n, i, e) ? r.setNode(s) : r.setNode(i, e);
|
|
11373
11373
|
}, CH = (t, A = {}) => ({ state: e, commands: n }) => {
|
|
11374
|
-
const r =
|
|
11374
|
+
const r = Ge(t, e.schema);
|
|
11375
11375
|
return Ro(e, r, A) ? n.lift(r) : n.wrapIn(r, A);
|
|
11376
11376
|
}, yH = () => ({ state: t, dispatch: A }) => {
|
|
11377
11377
|
const e = t.plugins;
|
|
@@ -11415,7 +11415,7 @@ const pH = ({ keepMarks: t = !0 } = {}) => ({ tr: A, state: e, dispatch: n, edit
|
|
|
11415
11415
|
}, EH = (t, A = {}) => ({ tr: e, state: n, dispatch: r }) => {
|
|
11416
11416
|
let i = null, s = null;
|
|
11417
11417
|
const a = du(typeof t == "string" ? t : t.name, n.schema);
|
|
11418
|
-
return a ? (a === "node" && (i =
|
|
11418
|
+
return a ? (a === "node" && (i = Ge(t, n.schema)), a === "mark" && (s = ni(t, n.schema)), r && e.selection.ranges.forEach((u) => {
|
|
11419
11419
|
const c = u.$from.pos, f = u.$to.pos;
|
|
11420
11420
|
n.doc.nodesBetween(c, f, (h, p) => {
|
|
11421
11421
|
i && i === h.type && e.setNodeMarkup(p, void 0, {
|
|
@@ -11433,10 +11433,10 @@ const pH = ({ keepMarks: t = !0 } = {}) => ({ tr: A, state: e, dispatch: n, edit
|
|
|
11433
11433
|
});
|
|
11434
11434
|
}), !0) : !1;
|
|
11435
11435
|
}, FH = (t, A = {}) => ({ state: e, dispatch: n }) => {
|
|
11436
|
-
const r =
|
|
11436
|
+
const r = Ge(t, e.schema);
|
|
11437
11437
|
return Vx(r, A)(e, n);
|
|
11438
11438
|
}, UH = (t, A = {}) => ({ state: e, dispatch: n }) => {
|
|
11439
|
-
const r =
|
|
11439
|
+
const r = Ge(t, e.schema);
|
|
11440
11440
|
return Gx(r, A)(e, n);
|
|
11441
11441
|
};
|
|
11442
11442
|
var bH = /* @__PURE__ */ Object.freeze({
|
|
@@ -13046,36 +13046,36 @@ const hL = ct.create({
|
|
|
13046
13046
|
}));
|
|
13047
13047
|
}
|
|
13048
13048
|
});
|
|
13049
|
-
var Kl = 200,
|
|
13049
|
+
var Kl = 200, Ve = function() {
|
|
13050
13050
|
};
|
|
13051
|
-
|
|
13052
|
-
return A.length ? (A =
|
|
13051
|
+
Ve.prototype.append = function(A) {
|
|
13052
|
+
return A.length ? (A = Ve.from(A), !this.length && A || A.length < Kl && this.leafAppend(A) || this.length < Kl && A.leafPrepend(this) || this.appendInner(A)) : this;
|
|
13053
13053
|
};
|
|
13054
|
-
|
|
13055
|
-
return A.length ?
|
|
13054
|
+
Ve.prototype.prepend = function(A) {
|
|
13055
|
+
return A.length ? Ve.from(A).append(this) : this;
|
|
13056
13056
|
};
|
|
13057
|
-
|
|
13057
|
+
Ve.prototype.appendInner = function(A) {
|
|
13058
13058
|
return new BL(this, A);
|
|
13059
13059
|
};
|
|
13060
|
-
|
|
13061
|
-
return A === void 0 && (A = 0), e === void 0 && (e = this.length), A >= e ?
|
|
13060
|
+
Ve.prototype.slice = function(A, e) {
|
|
13061
|
+
return A === void 0 && (A = 0), e === void 0 && (e = this.length), A >= e ? Ve.empty : this.sliceInner(Math.max(0, A), Math.min(this.length, e));
|
|
13062
13062
|
};
|
|
13063
|
-
|
|
13063
|
+
Ve.prototype.get = function(A) {
|
|
13064
13064
|
if (!(A < 0 || A >= this.length))
|
|
13065
13065
|
return this.getInner(A);
|
|
13066
13066
|
};
|
|
13067
|
-
|
|
13067
|
+
Ve.prototype.forEach = function(A, e, n) {
|
|
13068
13068
|
e === void 0 && (e = 0), n === void 0 && (n = this.length), e <= n ? this.forEachInner(A, e, n, 0) : this.forEachInvertedInner(A, e, n, 0);
|
|
13069
13069
|
};
|
|
13070
|
-
|
|
13070
|
+
Ve.prototype.map = function(A, e, n) {
|
|
13071
13071
|
e === void 0 && (e = 0), n === void 0 && (n = this.length);
|
|
13072
13072
|
var r = [];
|
|
13073
13073
|
return this.forEach(function(i, s) {
|
|
13074
13074
|
return r.push(A(i, s));
|
|
13075
13075
|
}, e, n), r;
|
|
13076
13076
|
};
|
|
13077
|
-
|
|
13078
|
-
return A instanceof
|
|
13077
|
+
Ve.from = function(A) {
|
|
13078
|
+
return A instanceof Ve ? A : A && A.length ? new b0(A) : Ve.empty;
|
|
13079
13079
|
};
|
|
13080
13080
|
var b0 = /* @__PURE__ */ function(t) {
|
|
13081
13081
|
function A(n) {
|
|
@@ -13108,8 +13108,8 @@ var b0 = /* @__PURE__ */ function(t) {
|
|
|
13108
13108
|
}, e.depth.get = function() {
|
|
13109
13109
|
return 0;
|
|
13110
13110
|
}, Object.defineProperties(A.prototype, e), A;
|
|
13111
|
-
}(
|
|
13112
|
-
|
|
13111
|
+
}(Ve);
|
|
13112
|
+
Ve.empty = new b0([]);
|
|
13113
13113
|
var BL = /* @__PURE__ */ function(t) {
|
|
13114
13114
|
function A(e, n) {
|
|
13115
13115
|
t.call(this), this.left = e, this.right = n, this.length = e.length + n.length, this.depth = Math.max(e.depth, n.depth) + 1;
|
|
@@ -13142,7 +13142,7 @@ var BL = /* @__PURE__ */ function(t) {
|
|
|
13142
13142
|
}, A.prototype.appendInner = function(n) {
|
|
13143
13143
|
return this.left.depth >= Math.max(this.right.depth, n.depth) + 1 ? new A(this.left, new A(this.right, n)) : new A(this, n);
|
|
13144
13144
|
}, A;
|
|
13145
|
-
}(
|
|
13145
|
+
}(Ve);
|
|
13146
13146
|
const mL = 500;
|
|
13147
13147
|
class vn {
|
|
13148
13148
|
constructor(A, e) {
|
|
@@ -13254,10 +13254,10 @@ class vn {
|
|
|
13254
13254
|
}
|
|
13255
13255
|
} else
|
|
13256
13256
|
s.map && n--;
|
|
13257
|
-
}, this.items.length, 0), new vn(
|
|
13257
|
+
}, this.items.length, 0), new vn(Ve.from(r.reverse()), i);
|
|
13258
13258
|
}
|
|
13259
13259
|
}
|
|
13260
|
-
vn.empty = new vn(
|
|
13260
|
+
vn.empty = new vn(Ve.empty, 0);
|
|
13261
13261
|
function wL(t, A) {
|
|
13262
13262
|
let e;
|
|
13263
13263
|
return t.forEach((n, r) => {
|
|
@@ -14251,7 +14251,7 @@ function hM(t, A) {
|
|
|
14251
14251
|
var R = LA();
|
|
14252
14252
|
R.removeEventListener("mousedown", fe, !0), R.removeEventListener("touchend", fe, mi), R.removeEventListener("touchstart", te, mi), R.removeEventListener("touchmove", JA, mi);
|
|
14253
14253
|
}
|
|
14254
|
-
function
|
|
14254
|
+
function ke(R, sA) {
|
|
14255
14255
|
tt(R, function() {
|
|
14256
14256
|
!v.state.isVisible && S.parentNode && S.parentNode.contains(S) && sA();
|
|
14257
14257
|
});
|
|
@@ -14496,7 +14496,7 @@ function hM(t, A) {
|
|
|
14496
14496
|
var KA = ae(), Xe = KA.box, Ut = KA.content;
|
|
14497
14497
|
v.props.animation && (ff([Xe, Ut], XA), hm([Xe, Ut], "hidden"));
|
|
14498
14498
|
}
|
|
14499
|
-
BA(), DA(), v.props.animation ? gA() &&
|
|
14499
|
+
BA(), DA(), v.props.animation ? gA() && ke(XA, v.unmount) : v.unmount();
|
|
14500
14500
|
}
|
|
14501
14501
|
}
|
|
14502
14502
|
function zt(R) {
|
|
@@ -15817,7 +15817,7 @@ function tD(t, A = {}) {
|
|
|
15817
15817
|
k += U;
|
|
15818
15818
|
return k;
|
|
15819
15819
|
}
|
|
15820
|
-
function
|
|
15820
|
+
function ke(_) {
|
|
15821
15821
|
const U = (k = !1, q) => {
|
|
15822
15822
|
const uA = _.currentChar();
|
|
15823
15823
|
return uA === "{" || uA === "%" || uA === "@" || uA === "|" || uA === "(" || uA === ")" || !uA || uA === rr ? q : uA === wt || uA === AD ? (q += uA, _.next(), U(k, q)) : (q += uA, _.next(), U(!0, q));
|
|
@@ -15897,7 +15897,7 @@ function tD(t, A = {}) {
|
|
|
15897
15897
|
/* TokenChars.LinkedDelimiter */
|
|
15898
15898
|
);
|
|
15899
15899
|
default:
|
|
15900
|
-
return aA(_) ? (q = p(U, 1, dt(_)), U.braceNest = 0, U.inLinked = !1, q) : S(_, U) || Y(_, U) ? (F(_), We(_, U)) : H(_, U) ? (F(_), p(U, 12, we(_))) : V(_, U) ? (F(_), uA === "{" ? tt(_, U) || q : p(U, 11,
|
|
15900
|
+
return aA(_) ? (q = p(U, 1, dt(_)), U.braceNest = 0, U.inLinked = !1, q) : S(_, U) || Y(_, U) ? (F(_), We(_, U)) : H(_, U) ? (F(_), p(U, 12, we(_))) : V(_, U) ? (F(_), uA === "{" ? tt(_, U) || q : p(U, 11, ke(_))) : (k === 8 && h(CA.INVALID_LINKED_FORMAT, i(), 0), U.braceNest = 0, U.inLinked = !1, ht(_, U));
|
|
15901
15901
|
}
|
|
15902
15902
|
}
|
|
15903
15903
|
function ht(_, U) {
|
|
@@ -16741,7 +16741,7 @@ const yt = {
|
|
|
16741
16741
|
function Di(t, ...A) {
|
|
16742
16742
|
return fh(RD[t], ...A);
|
|
16743
16743
|
}
|
|
16744
|
-
const X0 = CA.__EXTEND_POINT__, gi = dh(X0),
|
|
16744
|
+
const X0 = CA.__EXTEND_POINT__, gi = dh(X0), Ke = {
|
|
16745
16745
|
INVALID_ARGUMENT: X0,
|
|
16746
16746
|
INVALID_DATE_ARGUMENT: gi(),
|
|
16747
16747
|
INVALID_ISO_DATE_ARGUMENT: gi(),
|
|
@@ -16756,13 +16756,13 @@ function Rn(t) {
|
|
|
16756
16756
|
return Ns(t, null, process.env.NODE_ENV !== "production" ? { messages: KD } : void 0);
|
|
16757
16757
|
}
|
|
16758
16758
|
const KD = {
|
|
16759
|
-
[
|
|
16760
|
-
[
|
|
16761
|
-
[
|
|
16762
|
-
[
|
|
16763
|
-
[
|
|
16764
|
-
[
|
|
16765
|
-
[
|
|
16759
|
+
[Ke.INVALID_ARGUMENT]: "Invalid arguments",
|
|
16760
|
+
[Ke.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
16761
|
+
[Ke.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
16762
|
+
[Ke.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
|
|
16763
|
+
[Ke.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
|
|
16764
|
+
[Ke.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
16765
|
+
[Ke.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
16766
16766
|
};
|
|
16767
16767
|
function ph(t, A) {
|
|
16768
16768
|
return A.locale != null ? xm(A.locale) : xm(t.locale);
|
|
@@ -16777,12 +16777,12 @@ function xm(t) {
|
|
|
16777
16777
|
if (t.constructor.name === "Function") {
|
|
16778
16778
|
const A = t();
|
|
16779
16779
|
if (MM(A))
|
|
16780
|
-
throw Rn(
|
|
16780
|
+
throw Rn(Ke.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
16781
16781
|
return pf = A;
|
|
16782
16782
|
} else
|
|
16783
|
-
throw Rn(
|
|
16783
|
+
throw Rn(Ke.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
16784
16784
|
} else
|
|
16785
|
-
throw Rn(
|
|
16785
|
+
throw Rn(Ke.NOT_SUPPORT_LOCALE_TYPE);
|
|
16786
16786
|
}
|
|
16787
16787
|
function PD(t, A, e) {
|
|
16788
16788
|
return [.../* @__PURE__ */ new Set([
|
|
@@ -16984,7 +16984,7 @@ function ry(t, A = {}) {
|
|
|
16984
16984
|
}
|
|
16985
16985
|
const ek = /* @__NO_SIDE_EFFECTS__ */ (t, A) => {
|
|
16986
16986
|
if (!iA(t))
|
|
16987
|
-
throw Rn(
|
|
16987
|
+
throw Rn(Ke.NOT_SUPPORT_NON_STRING_MESSAGE);
|
|
16988
16988
|
{
|
|
16989
16989
|
const e = oe(A.warnHtmlMessage) ? A.warnHtmlMessage : !0;
|
|
16990
16990
|
process.env.NODE_ENV !== "production" && ty(t, e);
|
|
@@ -17142,7 +17142,7 @@ function rk(t, A, e) {
|
|
|
17142
17142
|
function ud(...t) {
|
|
17143
17143
|
const [A, e, n] = t, r = {};
|
|
17144
17144
|
if (!iA(A) && !lt(A) && !ln(A) && !ki(A))
|
|
17145
|
-
throw Rn(
|
|
17145
|
+
throw Rn(Ke.INVALID_ARGUMENT);
|
|
17146
17146
|
const i = lt(A) ? String(A) : (ln(A), A);
|
|
17147
17147
|
return lt(e) ? r.plural = e : iA(e) ? r.default = e : RA(e) && !pu(e) ? r.named = e : _e(e) && (r.list = e), lt(n) ? r.plural = n : iA(n) ? r.default = n : RA(n) && ut(r, n), [i, r];
|
|
17148
17148
|
}
|
|
@@ -17268,22 +17268,22 @@ function cd(...t) {
|
|
|
17268
17268
|
if (iA(A)) {
|
|
17269
17269
|
const u = A.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
17270
17270
|
if (!u)
|
|
17271
|
-
throw Rn(
|
|
17271
|
+
throw Rn(Ke.INVALID_ISO_DATE_ARGUMENT);
|
|
17272
17272
|
const c = u[3] ? u[3].trim().startsWith("T") ? `${u[1].trim()}${u[3].trim()}` : `${u[1].trim()}T${u[3].trim()}` : u[1].trim();
|
|
17273
17273
|
a = new Date(c);
|
|
17274
17274
|
try {
|
|
17275
17275
|
a.toISOString();
|
|
17276
17276
|
} catch {
|
|
17277
|
-
throw Rn(
|
|
17277
|
+
throw Rn(Ke.INVALID_ISO_DATE_ARGUMENT);
|
|
17278
17278
|
}
|
|
17279
17279
|
} else if (HM(A)) {
|
|
17280
17280
|
if (isNaN(A.getTime()))
|
|
17281
|
-
throw Rn(
|
|
17281
|
+
throw Rn(Ke.INVALID_DATE_ARGUMENT);
|
|
17282
17282
|
a = A;
|
|
17283
17283
|
} else if (lt(A))
|
|
17284
17284
|
a = A;
|
|
17285
17285
|
else
|
|
17286
|
-
throw Rn(
|
|
17286
|
+
throw Rn(Ke.INVALID_ARGUMENT);
|
|
17287
17287
|
return iA(e) ? i.key = e : RA(e) && Object.keys(e).forEach((u) => {
|
|
17288
17288
|
ay.includes(u) ? s[u] = e[u] : i[u] = e[u];
|
|
17289
17289
|
}), iA(n) ? i.locale = n : RA(n) && (s = n), RA(r) && (s = r), [i.key || "", a, i, s];
|
|
@@ -17360,7 +17360,7 @@ function fd(...t) {
|
|
|
17360
17360
|
const [A, e, n, r] = t, i = {};
|
|
17361
17361
|
let s = {};
|
|
17362
17362
|
if (!lt(A))
|
|
17363
|
-
throw Rn(
|
|
17363
|
+
throw Rn(Ke.INVALID_ARGUMENT);
|
|
17364
17364
|
const a = A;
|
|
17365
17365
|
return iA(e) ? i.key = e : RA(e) && Object.keys(e).forEach((u) => {
|
|
17366
17366
|
ly.includes(u) ? s[u] = e[u] : i[u] = e[u];
|
|
@@ -17408,7 +17408,7 @@ const uy = yt.__EXTEND_POINT__, Tr = dh(uy), sn = {
|
|
|
17408
17408
|
function Bh(t, ...A) {
|
|
17409
17409
|
return fh(uk[t], ...A);
|
|
17410
17410
|
}
|
|
17411
|
-
const cy =
|
|
17411
|
+
const cy = Ke.__EXTEND_POINT__, _t = dh(cy), ye = {
|
|
17412
17412
|
// composer module errors
|
|
17413
17413
|
UNEXPECTED_RETURN_TYPE: cy,
|
|
17414
17414
|
// legacy module errors
|
|
@@ -17654,7 +17654,7 @@ function gk(t = {}, A) {
|
|
|
17654
17654
|
function YA(K) {
|
|
17655
17655
|
return K.map((X) => iA(X) || lt(X) || oe(X) ? $m(String(X)) : X);
|
|
17656
17656
|
}
|
|
17657
|
-
const
|
|
17657
|
+
const ke = {
|
|
17658
17658
|
normalize: YA,
|
|
17659
17659
|
interpolate: (K) => K,
|
|
17660
17660
|
type: "vnode"
|
|
@@ -17665,7 +17665,7 @@ function gk(t = {}, A) {
|
|
|
17665
17665
|
let TA;
|
|
17666
17666
|
const jA = X;
|
|
17667
17667
|
try {
|
|
17668
|
-
jA.processor =
|
|
17668
|
+
jA.processor = ke, TA = Reflect.apply(Rm, null, [jA, ...K]);
|
|
17669
17669
|
} finally {
|
|
17670
17670
|
jA.processor = null;
|
|
17671
17671
|
}
|
|
@@ -18079,7 +18079,7 @@ function Uk(t, A, e, n = {}) {
|
|
|
18079
18079
|
function we(U) {
|
|
18080
18080
|
return i.value ? i.value.getDateTimeFormat(U) : {};
|
|
18081
18081
|
}
|
|
18082
|
-
function
|
|
18082
|
+
function ke(U, k) {
|
|
18083
18083
|
i.value && (i.value.setDateTimeFormat(U, k), f.value[U] = k);
|
|
18084
18084
|
}
|
|
18085
18085
|
function dt(U, k) {
|
|
@@ -18171,7 +18171,7 @@ function Uk(t, A, e, n = {}) {
|
|
|
18171
18171
|
setLocaleMessage: te,
|
|
18172
18172
|
mergeLocaleMessage: YA,
|
|
18173
18173
|
getDateTimeFormat: we,
|
|
18174
|
-
setDateTimeFormat:
|
|
18174
|
+
setDateTimeFormat: ke,
|
|
18175
18175
|
mergeDateTimeFormat: dt,
|
|
18176
18176
|
getNumberFormat: tt,
|
|
18177
18177
|
setNumberFormat: We,
|
|
@@ -18395,7 +18395,7 @@ Gl.exports;
|
|
|
18395
18395
|
["partial", M],
|
|
18396
18396
|
["partialRight", S],
|
|
18397
18397
|
["rearg", Y]
|
|
18398
|
-
], YA = "[object Arguments]", we = "[object Array]",
|
|
18398
|
+
], YA = "[object Arguments]", we = "[object Array]", ke = "[object AsyncFunction]", dt = "[object Boolean]", tt = "[object Date]", We = "[object DOMException]", ht = "[object Error]", Lt = "[object Function]", _ = "[object GeneratorFunction]", U = "[object Map]", k = "[object Number]", q = "[object Null]", uA = "[object Object]", OA = "[object Promise]", pt = "[object Proxy]", $e = "[object RegExp]", Je = "[object Set]", In = "[object String]", pn = "[object Symbol]", ge = "[object Undefined]", K = "[object WeakMap]", X = "[object WeakSet]", TA = "[object ArrayBuffer]", jA = "[object DataView]", Mt = "[object Float32Array]", Sn = "[object Float64Array]", zt = "[object Int8Array]", Dt = "[object Int16Array]", si = "[object Int32Array]", R = "[object Uint8Array]", sA = "[object Uint8ClampedArray]", hA = "[object Uint16Array]", XA = "[object Uint32Array]", KA = /\b__p \+= '';/g, Xe = /\b(__p \+=) '' \+/g, Ut = /(__e\(.*?\)|\b__t\)) \+\n'';/g, $n = /&(?:amp|lt|gt|quot|#39);/g, Ks = /[&<>"']/g, Jn = RegExp($n.source), Ps = RegExp(Ks.source), Ki = /<%-([\s\S]+?)%>/g, wr = /<%([\s\S]+?)%>/g, ea = /<%=([\s\S]+?)%>/g, Vs = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Pi = /^\w*$/, Ev = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Su = /[\\^$.*+?()[\]{}|]/g, Fv = RegExp(Su.source), Tu = /^\s+/, Uv = /\s/, bv = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Iv = /\{\n\/\* \[wrapped with (.+)\] \*/, Sv = /,? & /, Tv = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, _v = /[()=,{}\[\]\/\s]/, xv = /\\(\\)?/g, Ov = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Sh = /\w*$/, Hv = /^[-+]0x[0-9a-f]+$/i, Lv = /^0b[01]+$/i, Mv = /^\[object .+?Constructor\]$/, Dv = /^0o[0-7]+$/i, kv = /^(?:0|[1-9]\d*)$/, Nv = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, ta = /($^)/, Rv = /['\n\r\u2028\u2029\\]/g, na = "\\ud800-\\udfff", Kv = "\\u0300-\\u036f", Pv = "\\ufe20-\\ufe2f", Vv = "\\u20d0-\\u20ff", Th = Kv + Pv + Vv, _h = "\\u2700-\\u27bf", xh = "a-z\\xdf-\\xf6\\xf8-\\xff", Gv = "\\xac\\xb1\\xd7\\xf7", Wv = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", $v = "\\u2000-\\u206f", Jv = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Oh = "A-Z\\xc0-\\xd6\\xd8-\\xde", Hh = "\\ufe0e\\ufe0f", Lh = Gv + Wv + $v + Jv, _u = "['’]", Xv = "[" + na + "]", Mh = "[" + Lh + "]", ra = "[" + Th + "]", Dh = "\\d+", Yv = "[" + _h + "]", kh = "[" + xh + "]", Nh = "[^" + na + Lh + Dh + _h + xh + Oh + "]", xu = "\\ud83c[\\udffb-\\udfff]", zv = "(?:" + ra + "|" + xu + ")", Rh = "[^" + na + "]", Ou = "(?:\\ud83c[\\udde6-\\uddff]){2}", Hu = "[\\ud800-\\udbff][\\udc00-\\udfff]", Vi = "[" + Oh + "]", Kh = "\\u200d", Ph = "(?:" + kh + "|" + Nh + ")", qv = "(?:" + Vi + "|" + Nh + ")", Vh = "(?:" + _u + "(?:d|ll|m|re|s|t|ve))?", Gh = "(?:" + _u + "(?:D|LL|M|RE|S|T|VE))?", Wh = zv + "?", $h = "[" + Hh + "]?", Zv = "(?:" + Kh + "(?:" + [Rh, Ou, Hu].join("|") + ")" + $h + Wh + ")*", jv = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", AQ = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Jh = $h + Wh + Zv, eQ = "(?:" + [Yv, Ou, Hu].join("|") + ")" + Jh, tQ = "(?:" + [Rh + ra + "?", ra, Ou, Hu, Xv].join("|") + ")", nQ = RegExp(_u, "g"), rQ = RegExp(ra, "g"), Lu = RegExp(xu + "(?=" + xu + ")|" + tQ + Jh, "g"), iQ = RegExp([
|
|
18399
18399
|
Vi + "?" + kh + "+" + Vh + "(?=" + [Mh, Vi, "$"].join("|") + ")",
|
|
18400
18400
|
qv + "+" + Gh + "(?=" + [Mh, Vi + Ph, "$"].join("|") + ")",
|
|
18401
18401
|
Vi + "?" + Ph + "+" + Vh,
|
|
@@ -19219,7 +19219,7 @@ Gl.exports;
|
|
|
19219
19219
|
}), g;
|
|
19220
19220
|
}
|
|
19221
19221
|
function vp(o, l) {
|
|
19222
|
-
return o && _n(l,
|
|
19222
|
+
return o && _n(l, Ne(l), o);
|
|
19223
19223
|
}
|
|
19224
19224
|
function LE(o, l) {
|
|
19225
19225
|
return o && _n(l, St(l), o);
|
|
@@ -19272,13 +19272,13 @@ Gl.exports;
|
|
|
19272
19272
|
}) : kg(o) && o.forEach(function(wA, HA) {
|
|
19273
19273
|
I.set(HA, en(wA, l, d, HA, o, Q));
|
|
19274
19274
|
});
|
|
19275
|
-
var mA = G ? O ? mc : Bc : O ? St :
|
|
19275
|
+
var mA = G ? O ? mc : Bc : O ? St : Ne, UA = W ? e : mA(o);
|
|
19276
19276
|
return Zt(UA || o, function(wA, HA) {
|
|
19277
19277
|
UA && (HA = wA, wA = o[HA]), zs(I, HA, en(wA, l, d, HA, o, Q));
|
|
19278
19278
|
}), I;
|
|
19279
19279
|
}
|
|
19280
19280
|
function ME(o) {
|
|
19281
|
-
var l =
|
|
19281
|
+
var l = Ne(o);
|
|
19282
19282
|
return function(d) {
|
|
19283
19283
|
return Qp(d, o, l);
|
|
19284
19284
|
};
|
|
@@ -19356,10 +19356,10 @@ Gl.exports;
|
|
|
19356
19356
|
}
|
|
19357
19357
|
var ju = Zp(), bp = Zp(!0);
|
|
19358
19358
|
function Tn(o, l) {
|
|
19359
|
-
return o && ju(o, l,
|
|
19359
|
+
return o && ju(o, l, Ne);
|
|
19360
19360
|
}
|
|
19361
19361
|
function Ac(o, l) {
|
|
19362
|
-
return o && bp(o, l,
|
|
19362
|
+
return o && bp(o, l, Ne);
|
|
19363
19363
|
}
|
|
19364
19364
|
function Ea(o, l) {
|
|
19365
19365
|
return Cr(l, function(d) {
|
|
@@ -20006,7 +20006,7 @@ Gl.exports;
|
|
|
20006
20006
|
var w = se(l);
|
|
20007
20007
|
if (!It(l)) {
|
|
20008
20008
|
var Q = pA(d, 3);
|
|
20009
|
-
l =
|
|
20009
|
+
l = Ne(l), d = function(T) {
|
|
20010
20010
|
return Q(w[T], T, w);
|
|
20011
20011
|
};
|
|
20012
20012
|
}
|
|
@@ -20299,7 +20299,7 @@ Gl.exports;
|
|
|
20299
20299
|
return Fc(hg(o, e, Qg), o + "");
|
|
20300
20300
|
}
|
|
20301
20301
|
function Bc(o) {
|
|
20302
|
-
return Ip(o,
|
|
20302
|
+
return Ip(o, Ne, yc);
|
|
20303
20303
|
}
|
|
20304
20304
|
function mc(o) {
|
|
20305
20305
|
return Ip(o, St, lg);
|
|
@@ -20328,7 +20328,7 @@ Gl.exports;
|
|
|
20328
20328
|
return bF(l) ? d[typeof l == "string" ? "string" : "hash"] : d.map;
|
|
20329
20329
|
}
|
|
20330
20330
|
function Cc(o) {
|
|
20331
|
-
for (var l =
|
|
20331
|
+
for (var l = Ne(o), d = l.length; d--; ) {
|
|
20332
20332
|
var g = l[d], w = o[g];
|
|
20333
20333
|
l[d] = [g, w, fg(w)];
|
|
20334
20334
|
}
|
|
@@ -21251,7 +21251,7 @@ Gl.exports;
|
|
|
21251
21251
|
return l = typeof l == "function" ? l : e, en(o, h | B, l);
|
|
21252
21252
|
}
|
|
21253
21253
|
function xb(o, l) {
|
|
21254
|
-
return l == null || Qp(o, l,
|
|
21254
|
+
return l == null || Qp(o, l, Ne(l));
|
|
21255
21255
|
}
|
|
21256
21256
|
function mn(o, l) {
|
|
21257
21257
|
return o === l || o !== o && l !== l;
|
|
@@ -21312,7 +21312,7 @@ Gl.exports;
|
|
|
21312
21312
|
if (!Ce(o))
|
|
21313
21313
|
return !1;
|
|
21314
21314
|
var l = gt(o);
|
|
21315
|
-
return l == Lt || l == _ || l ==
|
|
21315
|
+
return l == Lt || l == _ || l == ke || l == pt;
|
|
21316
21316
|
}
|
|
21317
21317
|
function Dg(o) {
|
|
21318
21318
|
return typeof o == "number" && o == FA(o);
|
|
@@ -21436,7 +21436,7 @@ Gl.exports;
|
|
|
21436
21436
|
}
|
|
21437
21437
|
var tI = Zi(function(o, l) {
|
|
21438
21438
|
if (to(l) || It(l)) {
|
|
21439
|
-
_n(l,
|
|
21439
|
+
_n(l, Ne(l), o);
|
|
21440
21440
|
return;
|
|
21441
21441
|
}
|
|
21442
21442
|
for (var d in l)
|
|
@@ -21446,7 +21446,7 @@ Gl.exports;
|
|
|
21446
21446
|
}), Va = Zi(function(o, l, d, g) {
|
|
21447
21447
|
_n(l, St(l), o, g);
|
|
21448
21448
|
}), nI = Zi(function(o, l, d, g) {
|
|
21449
|
-
_n(l,
|
|
21449
|
+
_n(l, Ne(l), o, g);
|
|
21450
21450
|
}), rI = Zn(Zu);
|
|
21451
21451
|
function iI(o, l) {
|
|
21452
21452
|
var d = qi(o);
|
|
@@ -21483,7 +21483,7 @@ Gl.exports;
|
|
|
21483
21483
|
return o && Ac(o, pA(l, 3));
|
|
21484
21484
|
}
|
|
21485
21485
|
function hI(o) {
|
|
21486
|
-
return o == null ? [] : Ea(o,
|
|
21486
|
+
return o == null ? [] : Ea(o, Ne(o));
|
|
21487
21487
|
}
|
|
21488
21488
|
function pI(o) {
|
|
21489
21489
|
return o == null ? [] : Ea(o, St(o));
|
|
@@ -21503,7 +21503,7 @@ Gl.exports;
|
|
|
21503
21503
|
}, Lc(Tt)), mI = tg(function(o, l, d) {
|
|
21504
21504
|
l != null && typeof l.toString != "function" && (l = ca.call(l)), ne.call(o, l) ? o[l].push(d) : o[l] = [d];
|
|
21505
21505
|
}, pA), wI = _A(Zs);
|
|
21506
|
-
function
|
|
21506
|
+
function Ne(o) {
|
|
21507
21507
|
return It(o) ? Cp(o) : rc(o);
|
|
21508
21508
|
}
|
|
21509
21509
|
function St(o) {
|
|
@@ -21568,7 +21568,7 @@ Gl.exports;
|
|
|
21568
21568
|
function II(o, l, d, g) {
|
|
21569
21569
|
return g = typeof g == "function" ? g : e, o == null ? o : Ao(o, l, d, g);
|
|
21570
21570
|
}
|
|
21571
|
-
var Jg = ig(
|
|
21571
|
+
var Jg = ig(Ne), Xg = ig(St);
|
|
21572
21572
|
function SI(o, l, d) {
|
|
21573
21573
|
var g = vA(o), w = g || Ir(o) || es(o);
|
|
21574
21574
|
if (l = pA(l, 4), d == null) {
|
|
@@ -21589,7 +21589,7 @@ Gl.exports;
|
|
|
21589
21589
|
return g = typeof g == "function" ? g : e, o == null ? o : Pp(o, l, dc(d), g);
|
|
21590
21590
|
}
|
|
21591
21591
|
function ts(o) {
|
|
21592
|
-
return o == null ? [] : Wu(o,
|
|
21592
|
+
return o == null ? [] : Wu(o, Ne(o));
|
|
21593
21593
|
}
|
|
21594
21594
|
function OI(o) {
|
|
21595
21595
|
return o == null ? [] : Wu(o, St(o));
|
|
@@ -21681,7 +21681,7 @@ Gl.exports;
|
|
|
21681
21681
|
function A1(o, l, d) {
|
|
21682
21682
|
var g = C.templateSettings;
|
|
21683
21683
|
d && Bt(o, l, d) && (l = e), o = Ae(o), l = Va({}, l, g, sg);
|
|
21684
|
-
var w = Va({}, l.imports, g.imports, sg), Q =
|
|
21684
|
+
var w = Va({}, l.imports, g.imports, sg), Q = Ne(w), I = Wu(w, Q), T, O, G = 0, W = l.interpolate || ta, $ = "__p += '", z = Ju(
|
|
21685
21685
|
(l.escape || ta).source + "|" + W.source + "|" + (W === ea ? Ov : ta).source + "|" + (l.evaluate || ta).source + "|$",
|
|
21686
21686
|
"g"
|
|
21687
21687
|
), lA = "//# sourceURL=" + (ne.call(l, "sourceURL") ? (l.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++lQ + "]") + `
|
|
@@ -21849,8 +21849,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
21849
21849
|
};
|
|
21850
21850
|
});
|
|
21851
21851
|
function Dc(o, l, d) {
|
|
21852
|
-
var g =
|
|
21853
|
-
d == null && !(Ce(l) && (w.length || !g.length)) && (d = l, l = o, o = this, w = Ea(l,
|
|
21852
|
+
var g = Ne(l), w = Ea(l, g);
|
|
21853
|
+
d == null && !(Ce(l) && (w.length || !g.length)) && (d = l, l = o, o = this, w = Ea(l, Ne(l)));
|
|
21854
21854
|
var Q = !(Ce(d) && "chain" in d) || !!d.chain, I = Ar(o);
|
|
21855
21855
|
return Zt(w, function(T) {
|
|
21856
21856
|
var O = l[T];
|
|
@@ -21949,7 +21949,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
21949
21949
|
function J1(o, l) {
|
|
21950
21950
|
return o && o.length ? Vu(o, pA(l, 2)) : 0;
|
|
21951
21951
|
}
|
|
21952
|
-
return C.after = pb, C.ary = Tg, C.assign = tI, C.assignIn = Gg, C.assignInWith = Va, C.assignWith = nI, C.at = rI, C.before = _g, C.bind = Ic, C.bindAll = l1, C.bindKey = xg, C.castArray = bb, C.chain = bg, C.chunk = MF, C.compact = DF, C.concat = kF, C.cond = u1, C.conforms = c1, C.constant = Lc, C.countBy = $U, C.create = iI, C.curry = Og, C.curryRight = Hg, C.debounce = Lg, C.defaults = sI, C.defaultsDeep = oI, C.defer = gb, C.delay = Bb, C.difference = NF, C.differenceBy = RF, C.differenceWith = KF, C.drop = PF, C.dropRight = VF, C.dropRightWhile = GF, C.dropWhile = WF, C.fill = $F, C.filter = XU, C.flatMap = qU, C.flatMapDeep = ZU, C.flatMapDepth = jU, C.flatten = Qg, C.flattenDeep = JF, C.flattenDepth = XF, C.flip = mb, C.flow = d1, C.flowRight = h1, C.fromPairs = YF, C.functions = hI, C.functionsIn = pI, C.groupBy = Ab, C.initial = qF, C.intersection = ZF, C.intersectionBy = jF, C.intersectionWith = AU, C.invert = BI, C.invertBy = mI, C.invokeMap = tb, C.iteratee = Mc, C.keyBy = nb, C.keys =
|
|
21952
|
+
return C.after = pb, C.ary = Tg, C.assign = tI, C.assignIn = Gg, C.assignInWith = Va, C.assignWith = nI, C.at = rI, C.before = _g, C.bind = Ic, C.bindAll = l1, C.bindKey = xg, C.castArray = bb, C.chain = bg, C.chunk = MF, C.compact = DF, C.concat = kF, C.cond = u1, C.conforms = c1, C.constant = Lc, C.countBy = $U, C.create = iI, C.curry = Og, C.curryRight = Hg, C.debounce = Lg, C.defaults = sI, C.defaultsDeep = oI, C.defer = gb, C.delay = Bb, C.difference = NF, C.differenceBy = RF, C.differenceWith = KF, C.drop = PF, C.dropRight = VF, C.dropRightWhile = GF, C.dropWhile = WF, C.fill = $F, C.filter = XU, C.flatMap = qU, C.flatMapDeep = ZU, C.flatMapDepth = jU, C.flatten = Qg, C.flattenDeep = JF, C.flattenDepth = XF, C.flip = mb, C.flow = d1, C.flowRight = h1, C.fromPairs = YF, C.functions = hI, C.functionsIn = pI, C.groupBy = Ab, C.initial = qF, C.intersection = ZF, C.intersectionBy = jF, C.intersectionWith = AU, C.invert = BI, C.invertBy = mI, C.invokeMap = tb, C.iteratee = Mc, C.keyBy = nb, C.keys = Ne, C.keysIn = St, C.map = Da, C.mapKeys = CI, C.mapValues = yI, C.matches = p1, C.matchesProperty = g1, C.memoize = Na, C.merge = vI, C.mergeWith = Wg, C.method = B1, C.methodOf = m1, C.mixin = Dc, C.negate = Ra, C.nthArg = C1, C.omit = QI, C.omitBy = EI, C.once = wb, C.orderBy = rb, C.over = y1, C.overArgs = Cb, C.overEvery = v1, C.overSome = Q1, C.partial = Sc, C.partialRight = Mg, C.partition = ib, C.pick = FI, C.pickBy = $g, C.property = jg, C.propertyOf = E1, C.pull = rU, C.pullAll = Fg, C.pullAllBy = iU, C.pullAllWith = sU, C.pullAt = oU, C.range = F1, C.rangeRight = U1, C.rearg = yb, C.reject = ab, C.remove = aU, C.rest = vb, C.reverse = Uc, C.sampleSize = ub, C.set = bI, C.setWith = II, C.shuffle = cb, C.slice = lU, C.sortBy = hb, C.sortedUniq = gU, C.sortedUniqBy = BU, C.split = qI, C.spread = Qb, C.tail = mU, C.take = wU, C.takeRight = CU, C.takeRightWhile = yU, C.takeWhile = vU, C.tap = DU, C.throttle = Eb, C.thru = Ma, C.toArray = Kg, C.toPairs = Jg, C.toPairsIn = Xg, C.toPath = _1, C.toPlainObject = Vg, C.transform = SI, C.unary = Fb, C.union = QU, C.unionBy = EU, C.unionWith = FU, C.uniq = UU, C.uniqBy = bU, C.uniqWith = IU, C.unset = TI, C.unzip = bc, C.unzipWith = Ug, C.update = _I, C.updateWith = xI, C.values = ts, C.valuesIn = OI, C.without = SU, C.words = qg, C.wrap = Ub, C.xor = TU, C.xorBy = _U, C.xorWith = xU, C.zip = OU, C.zipObject = HU, C.zipObjectDeep = LU, C.zipWith = MU, C.entries = Jg, C.entriesIn = Xg, C.extend = Gg, C.extendWith = Va, Dc(C, C), C.add = O1, C.attempt = Zg, C.camelCase = DI, C.capitalize = Yg, C.ceil = H1, C.clamp = HI, C.clone = Ib, C.cloneDeep = Tb, C.cloneDeepWith = _b, C.cloneWith = Sb, C.conformsTo = xb, C.deburr = zg, C.defaultTo = f1, C.divide = L1, C.endsWith = kI, C.eq = mn, C.escape = NI, C.escapeRegExp = RI, C.every = JU, C.find = YU, C.findIndex = yg, C.findKey = aI, C.findLast = zU, C.findLastIndex = vg, C.findLastKey = lI, C.floor = M1, C.forEach = Ig, C.forEachRight = Sg, C.forIn = uI, C.forInRight = cI, C.forOwn = fI, C.forOwnRight = dI, C.get = xc, C.gt = Ob, C.gte = Hb, C.has = gI, C.hasIn = Oc, C.head = Eg, C.identity = Tt, C.includes = eb, C.indexOf = zF, C.inRange = LI, C.invoke = wI, C.isArguments = pi, C.isArray = vA, C.isArrayBuffer = Lb, C.isArrayLike = It, C.isArrayLikeObject = Fe, C.isBoolean = Mb, C.isBuffer = Ir, C.isDate = Db, C.isElement = kb, C.isEmpty = Nb, C.isEqual = Rb, C.isEqualWith = Kb, C.isError = Tc, C.isFinite = Pb, C.isFunction = Ar, C.isInteger = Dg, C.isLength = Ka, C.isMap = kg, C.isMatch = Vb, C.isMatchWith = Gb, C.isNaN = Wb, C.isNative = $b, C.isNil = Xb, C.isNull = Jb, C.isNumber = Ng, C.isObject = Ce, C.isObjectLike = ve, C.isPlainObject = ro, C.isRegExp = _c, C.isSafeInteger = Yb, C.isSet = Rg, C.isString = Pa, C.isSymbol = Kt, C.isTypedArray = es, C.isUndefined = zb, C.isWeakMap = qb, C.isWeakSet = Zb, C.join = eU, C.kebabCase = KI, C.last = nn, C.lastIndexOf = tU, C.lowerCase = PI, C.lowerFirst = VI, C.lt = jb, C.lte = AI, C.max = D1, C.maxBy = k1, C.mean = N1, C.meanBy = R1, C.min = K1, C.minBy = P1, C.stubArray = Nc, C.stubFalse = Rc, C.stubObject = b1, C.stubString = I1, C.stubTrue = S1, C.multiply = V1, C.nth = nU, C.noConflict = w1, C.noop = kc, C.now = ka, C.pad = GI, C.padEnd = WI, C.padStart = $I, C.parseInt = JI, C.random = MI, C.reduce = sb, C.reduceRight = ob, C.repeat = XI, C.replace = YI, C.result = UI, C.round = G1, C.runInContext = x, C.sample = lb, C.size = fb, C.snakeCase = zI, C.some = db, C.sortedIndex = uU, C.sortedIndexBy = cU, C.sortedIndexOf = fU, C.sortedLastIndex = dU, C.sortedLastIndexBy = hU, C.sortedLastIndexOf = pU, C.startCase = ZI, C.startsWith = jI, C.subtract = W1, C.sum = $1, C.sumBy = J1, C.template = A1, C.times = T1, C.toFinite = er, C.toInteger = FA, C.toLength = Pg, C.toLower = e1, C.toNumber = rn, C.toSafeInteger = eI, C.toString = Ae, C.toUpper = t1, C.trim = n1, C.trimEnd = r1, C.trimStart = i1, C.truncate = s1, C.unescape = o1, C.uniqueId = x1, C.upperCase = a1, C.upperFirst = Hc, C.each = Ig, C.eachRight = Sg, C.first = Eg, Dc(C, function() {
|
|
21953
21953
|
var o = {};
|
|
21954
21954
|
return Tn(C, function(l, d) {
|
|
21955
21955
|
ne.call(C.prototype, d) || (o[d] = l);
|
|
@@ -22105,7 +22105,7 @@ const e3 = /* @__PURE__ */ GA({
|
|
|
22105
22105
|
},
|
|
22106
22106
|
ratio: {
|
|
22107
22107
|
type: String,
|
|
22108
|
-
default: "
|
|
22108
|
+
default: "16x9"
|
|
22109
22109
|
},
|
|
22110
22110
|
enableAudio: {
|
|
22111
22111
|
type: Boolean,
|
|
@@ -22119,11 +22119,11 @@ const e3 = /* @__PURE__ */ GA({
|
|
|
22119
22119
|
emits: ["update:modelValue"],
|
|
22120
22120
|
setup(t, { expose: A, emit: e }) {
|
|
22121
22121
|
const n = {
|
|
22122
|
-
"
|
|
22123
|
-
"
|
|
22124
|
-
"
|
|
22125
|
-
"
|
|
22126
|
-
"
|
|
22122
|
+
"1x1": { width: 720, height: 720 },
|
|
22123
|
+
"4x3": { width: 640, height: 480 },
|
|
22124
|
+
"3x4": { width: 480, height: 640 },
|
|
22125
|
+
"16x9": { width: 1280, height: 720 },
|
|
22126
|
+
"9x16": { width: 720, height: 1280 }
|
|
22127
22127
|
}, r = t, i = e, s = xA(), a = xA(), u = xA(!1), c = xA([]), f = xA(), h = xA(), p = xA(!1), B = xA(!1), m = xA(0), E = xA(0), F = xA(), y = VA(() => c.value.filter((rA) => rA.kind === "videoinput")), b = VA(() => c.value.filter((rA) => rA.kind === "audioinput")), L = VA({
|
|
22128
22128
|
get() {
|
|
22129
22129
|
return f.value && f.value.deviceId;
|
|
@@ -22146,7 +22146,7 @@ const e3 = /* @__PURE__ */ GA({
|
|
|
22146
22146
|
return M.value ? `${M.value} mirror-device-${rA}` : "";
|
|
22147
22147
|
});
|
|
22148
22148
|
function H() {
|
|
22149
|
-
m.value = s.value && s.value.clientWidth, E.value = s.value && s.value.clientHeight;
|
|
22149
|
+
m.value = n[r.ratio] ? n[r.ratio].width : s.value.parentElement && s.value.parentElement.clientWidth, E.value = n[r.ratio] ? n[r.ratio].height : s.value.parentElement && s.value.parentElement.clientHeight;
|
|
22150
22150
|
}
|
|
22151
22151
|
const Y = gy.debounce(() => {
|
|
22152
22152
|
H();
|
|
@@ -22204,8 +22204,8 @@ const e3 = /* @__PURE__ */ GA({
|
|
|
22204
22204
|
te * we,
|
|
22205
22205
|
YA
|
|
22206
22206
|
), rA.restore();
|
|
22207
|
-
const
|
|
22208
|
-
MA(
|
|
22207
|
+
const ke = a.value.toDataURL("image/png");
|
|
22208
|
+
console.log("dataUrl", ke), MA(ke);
|
|
22209
22209
|
}
|
|
22210
22210
|
function MA(rA) {
|
|
22211
22211
|
const BA = nN(rA);
|
|
@@ -24266,7 +24266,7 @@ var qR = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
24266
24266
|
}
|
|
24267
24267
|
}, zr = function(t) {
|
|
24268
24268
|
return (255 & t) === 0;
|
|
24269
|
-
},
|
|
24269
|
+
}, Re = function(t) {
|
|
24270
24270
|
var A = 255 & t, e = 255 & t >> 8, n = 255 & t >> 16, r = 255 & t >> 24;
|
|
24271
24271
|
return A < 255 ? "rgba(" + r + "," + n + "," + e + "," + A / 255 + ")" : "rgb(" + r + "," + n + "," + e + ")";
|
|
24272
24272
|
}, Vr = function(t, A, e, n) {
|
|
@@ -27616,11 +27616,11 @@ var me = function(t, A, e, n, r) {
|
|
|
27616
27616
|
h.forEach(function(E) {
|
|
27617
27617
|
switch (E) {
|
|
27618
27618
|
case 0:
|
|
27619
|
-
p.ctx.fillStyle =
|
|
27619
|
+
p.ctx.fillStyle = Re(n.color), p.renderTextWithLetterSpacing(m, n.letterSpacing, c);
|
|
27620
27620
|
var F = n.textShadow;
|
|
27621
27621
|
F.length && m.text.trim().length && (F.slice(0).reverse().forEach(function(y) {
|
|
27622
|
-
p.ctx.shadowColor =
|
|
27623
|
-
}), p.ctx.shadowColor = "", p.ctx.shadowOffsetX = 0, p.ctx.shadowOffsetY = 0, p.ctx.shadowBlur = 0), n.textDecorationLine.length && (p.ctx.fillStyle =
|
|
27622
|
+
p.ctx.shadowColor = Re(y.color), p.ctx.shadowOffsetX = y.offsetX.number * p.options.scale, p.ctx.shadowOffsetY = y.offsetY.number * p.options.scale, p.ctx.shadowBlur = y.blur.number, p.renderTextWithLetterSpacing(m, n.letterSpacing, c);
|
|
27623
|
+
}), p.ctx.shadowColor = "", p.ctx.shadowOffsetX = 0, p.ctx.shadowOffsetY = 0, p.ctx.shadowBlur = 0), n.textDecorationLine.length && (p.ctx.fillStyle = Re(n.textDecorationColor || n.color), n.textDecorationLine.forEach(function(y) {
|
|
27624
27624
|
switch (y) {
|
|
27625
27625
|
case 1:
|
|
27626
27626
|
p.ctx.fillRect(m.bounds.left, Math.round(m.bounds.top + c), m.bounds.width, 1);
|
|
@@ -27635,7 +27635,7 @@ var me = function(t, A, e, n, r) {
|
|
|
27635
27635
|
}));
|
|
27636
27636
|
break;
|
|
27637
27637
|
case 1:
|
|
27638
|
-
n.webkitTextStrokeWidth && m.text.trim().length && (p.ctx.strokeStyle =
|
|
27638
|
+
n.webkitTextStrokeWidth && m.text.trim().length && (p.ctx.strokeStyle = Re(n.webkitTextStrokeColor), p.ctx.lineWidth = n.webkitTextStrokeWidth, p.ctx.lineJoin = window.chrome ? "miter" : "round", p.ctx.strokeText(m.text, m.bounds.left, m.bounds.top + c)), p.ctx.strokeStyle = "", p.ctx.lineWidth = 0, p.ctx.lineJoin = "miter";
|
|
27639
27639
|
break;
|
|
27640
27640
|
}
|
|
27641
27641
|
});
|
|
@@ -27706,8 +27706,8 @@ var me = function(t, A, e, n, r) {
|
|
|
27706
27706
|
new j(n.bounds.left + h * 0.72983, n.bounds.top + h * 0.23),
|
|
27707
27707
|
new j(n.bounds.left + h * 0.84, n.bounds.top + h * 0.34085),
|
|
27708
27708
|
new j(n.bounds.left + h * 0.39363, n.bounds.top + h * 0.79)
|
|
27709
|
-
]), this.ctx.fillStyle =
|
|
27710
|
-
switch (p = this.createFontStyle(i), v = p[0], B = p[1], m = this.fontMetrics.getMetrics(v, B).baseline, this.ctx.font = v, this.ctx.fillStyle =
|
|
27709
|
+
]), this.ctx.fillStyle = Re(Nw), this.ctx.fill(), this.ctx.restore()) : n.type === Yl && n.checked && (this.ctx.save(), this.ctx.beginPath(), this.ctx.arc(n.bounds.left + h / 2, n.bounds.top + h / 2, h / 4, 0, Math.PI * 2, !0), this.ctx.fillStyle = Re(Nw), this.ctx.fill(), this.ctx.restore())), WV(n) && n.value.length) {
|
|
27710
|
+
switch (p = this.createFontStyle(i), v = p[0], B = p[1], m = this.fontMetrics.getMetrics(v, B).baseline, this.ctx.font = v, this.ctx.fillStyle = Re(i.color), this.ctx.textBaseline = "alphabetic", this.ctx.textAlign = JV(n.styles.textAlign), M = Au(n), E = 0, n.styles.textAlign) {
|
|
27711
27711
|
case 1:
|
|
27712
27712
|
E += M.width / 2;
|
|
27713
27713
|
break;
|
|
@@ -27742,7 +27742,7 @@ var me = function(t, A, e, n, r) {
|
|
|
27742
27742
|
case 18:
|
|
27743
27743
|
return [3, 20];
|
|
27744
27744
|
case 19:
|
|
27745
|
-
e.listValue && n.styles.listStyleType !== -1 && (v = this.createFontStyle(i)[0], this.ctx.font = v, this.ctx.fillStyle =
|
|
27745
|
+
e.listValue && n.styles.listStyleType !== -1 && (v = this.createFontStyle(i)[0], this.ctx.font = v, this.ctx.fillStyle = Re(i.color), this.ctx.textBaseline = "middle", this.ctx.textAlign = "right", M = new gr(n.bounds.left, n.bounds.top + ue(n.styles.paddingTop, n.bounds.width), n.bounds.width, vw(i.lineHeight, i.fontSize.number) / 2 + 1), this.renderTextWithLetterSpacing(new xo(e.listValue, M), i.letterSpacing, vw(i.lineHeight, i.fontSize.number) / 2 + 2), this.ctx.textBaseline = "bottom", this.ctx.textAlign = "left"), S.label = 20;
|
|
27746
27746
|
case 20:
|
|
27747
27747
|
return [
|
|
27748
27748
|
2
|
|
@@ -27877,14 +27877,14 @@ var me = function(t, A, e, n, r) {
|
|
|
27877
27877
|
h.width / h.height
|
|
27878
27878
|
]), aA = B[0], WA = B[1], MA = B[2], cA = B[3], LA = B[4], Y = i.ctx.createPattern(i.resizeImage(h, cA, LA), "repeat"), i.renderRepeat(aA, Y, WA, MA)), [3, 6];
|
|
27879
27879
|
case 5:
|
|
27880
|
-
TK(f) ? (m = kf(e, n, [null, null, null]), aA = m[0], WA = m[1], MA = m[2], cA = m[3], LA = m[4], E = FK(f.angle, cA, LA), F = E[0], y = E[1], b = E[2], L = E[3], v = E[4], M = document.createElement("canvas"), M.width = cA, M.height = LA, S = M.getContext("2d"), H = S.createLinearGradient(y, L, b, v), Cw(f.stops, F).forEach(function(
|
|
27881
|
-
return H.addColorStop(
|
|
27880
|
+
TK(f) ? (m = kf(e, n, [null, null, null]), aA = m[0], WA = m[1], MA = m[2], cA = m[3], LA = m[4], E = FK(f.angle, cA, LA), F = E[0], y = E[1], b = E[2], L = E[3], v = E[4], M = document.createElement("canvas"), M.width = cA, M.height = LA, S = M.getContext("2d"), H = S.createLinearGradient(y, L, b, v), Cw(f.stops, F).forEach(function(ke) {
|
|
27881
|
+
return H.addColorStop(ke.stop, Re(ke.color));
|
|
27882
27882
|
}), S.fillStyle = H, S.fillRect(0, 0, cA, LA), cA > 0 && LA > 0 && (Y = i.ctx.createPattern(M, "repeat"), i.renderRepeat(aA, Y, WA, MA))) : _K(f) && (V = kf(e, n, [
|
|
27883
27883
|
null,
|
|
27884
27884
|
null,
|
|
27885
27885
|
null
|
|
27886
|
-
]), aA = V[0], QA = V[1], gA = V[2], cA = V[3], LA = V[4], ae = f.position.length === 0 ? [Qh] : f.position, WA = ue(ae[0], cA), MA = ue(ae[ae.length - 1], LA), rA = UK(f, WA, MA, cA, LA), BA = rA[0], DA = rA[1], BA > 0 && DA > 0 && ($A = i.ctx.createRadialGradient(QA + WA, gA + MA, 0, QA + WA, gA + MA, BA), Cw(f.stops, BA * 2).forEach(function(
|
|
27887
|
-
return $A.addColorStop(
|
|
27886
|
+
]), aA = V[0], QA = V[1], gA = V[2], cA = V[3], LA = V[4], ae = f.position.length === 0 ? [Qh] : f.position, WA = ue(ae[0], cA), MA = ue(ae[ae.length - 1], LA), rA = UK(f, WA, MA, cA, LA), BA = rA[0], DA = rA[1], BA > 0 && DA > 0 && ($A = i.ctx.createRadialGradient(QA + WA, gA + MA, 0, QA + WA, gA + MA, BA), Cw(f.stops, BA * 2).forEach(function(ke) {
|
|
27887
|
+
return $A.addColorStop(ke.stop, Re(ke.color));
|
|
27888
27888
|
}), i.path(aA), i.ctx.fillStyle = $A, BA !== DA ? (fe = e.bounds.left + 0.5 * e.bounds.width, JA = e.bounds.top + 0.5 * e.bounds.height, te = DA / BA, YA = 1 / te, i.ctx.save(), i.ctx.translate(fe, JA), i.ctx.transform(1, 0, 0, te, 0, 0), i.ctx.translate(-fe, -JA), i.ctx.fillRect(QA, YA * (gA - JA) + JA, cA, LA * YA), i.ctx.restore()) : i.ctx.fill())), we.label = 6;
|
|
27889
27889
|
case 6:
|
|
27890
27890
|
return n--, [
|
|
@@ -27911,7 +27911,7 @@ var me = function(t, A, e, n, r) {
|
|
|
27911
27911
|
}, A.prototype.renderSolidBorder = function(e, n, r) {
|
|
27912
27912
|
return Ct(this, void 0, void 0, function() {
|
|
27913
27913
|
return it(this, function(i) {
|
|
27914
|
-
return this.path(qw(r, n)), this.ctx.fillStyle =
|
|
27914
|
+
return this.path(qw(r, n)), this.ctx.fillStyle = Re(e), this.ctx.fill(), [
|
|
27915
27915
|
2
|
|
27916
27916
|
/*return*/
|
|
27917
27917
|
];
|
|
@@ -27930,7 +27930,7 @@ var me = function(t, A, e, n, r) {
|
|
|
27930
27930
|
/*return*/
|
|
27931
27931
|
];
|
|
27932
27932
|
case 2:
|
|
27933
|
-
return s = HV(i, r), this.path(s), this.ctx.fillStyle =
|
|
27933
|
+
return s = HV(i, r), this.path(s), this.ctx.fillStyle = Re(e), this.ctx.fill(), a = LV(i, r), this.path(a), this.ctx.fill(), [
|
|
27934
27934
|
2
|
|
27935
27935
|
/*return*/
|
|
27936
27936
|
];
|
|
@@ -27951,12 +27951,12 @@ var me = function(t, A, e, n, r) {
|
|
|
27951
27951
|
{ style: n.borderRightStyle, color: n.borderRightColor, width: n.borderRightWidth },
|
|
27952
27952
|
{ style: n.borderBottomStyle, color: n.borderBottomColor, width: n.borderBottomWidth },
|
|
27953
27953
|
{ style: n.borderLeftStyle, color: n.borderLeftColor, width: n.borderLeftWidth }
|
|
27954
|
-
], s = $V(ms(n.backgroundClip, 0), e.curves), r || n.boxShadow.length ? (this.ctx.save(), this.path(s), this.ctx.clip(), zr(n.backgroundColor) || (this.ctx.fillStyle =
|
|
27954
|
+
], s = $V(ms(n.backgroundClip, 0), e.curves), r || n.boxShadow.length ? (this.ctx.save(), this.path(s), this.ctx.clip(), zr(n.backgroundColor) || (this.ctx.fillStyle = Re(n.backgroundColor), this.ctx.fill()), [4, this.renderBackgroundImage(e.container)]) : [3, 2];
|
|
27955
27955
|
case 1:
|
|
27956
27956
|
p.sent(), this.ctx.restore(), n.boxShadow.slice(0).reverse().forEach(function(B) {
|
|
27957
27957
|
h.ctx.save();
|
|
27958
27958
|
var m = Zl(e.curves), E = B.inset ? 0 : VV, F = xV(m, -E + (B.inset ? 1 : -1) * B.spread.number, (B.inset ? 1 : -1) * B.spread.number, B.spread.number * (B.inset ? -2 : 2), B.spread.number * (B.inset ? -2 : 2));
|
|
27959
|
-
B.inset ? (h.path(m), h.ctx.clip(), h.mask(F)) : (h.mask(m), h.ctx.clip(), h.path(F)), h.ctx.shadowOffsetX = B.offsetX.number + E, h.ctx.shadowOffsetY = B.offsetY.number, h.ctx.shadowColor =
|
|
27959
|
+
B.inset ? (h.path(m), h.ctx.clip(), h.mask(F)) : (h.mask(m), h.ctx.clip(), h.path(F)), h.ctx.shadowOffsetX = B.offsetX.number + E, h.ctx.shadowOffsetY = B.offsetY.number, h.ctx.shadowColor = Re(B.color), h.ctx.shadowBlur = B.blur.number, h.ctx.fillStyle = B.inset ? Re(B.color) : "rgba(0,0,0,1)", h.ctx.fill(), h.ctx.restore();
|
|
27960
27960
|
}), p.label = 2;
|
|
27961
27961
|
case 2:
|
|
27962
27962
|
a = 0, u = 0, c = i, p.label = 3;
|
|
@@ -28006,7 +28006,7 @@ var me = function(t, A, e, n, r) {
|
|
|
28006
28006
|
return Ct(this, void 0, void 0, function() {
|
|
28007
28007
|
var a, u, c, f, h, p, B, m, E, F, y, b, L, v, M, S, M, S;
|
|
28008
28008
|
return it(this, function(H) {
|
|
28009
|
-
return this.ctx.save(), a = MV(i, r), u = qw(i, r), s === 2 && (this.path(u), this.ctx.clip()), un(u[0]) ? (c = u[0].start.x, f = u[0].start.y) : (c = u[0].x, f = u[0].y), un(u[1]) ? (h = u[1].end.x, p = u[1].end.y) : (h = u[1].x, p = u[1].y), r === 0 || r === 2 ? B = Math.abs(c - h) : B = Math.abs(f - p), this.ctx.beginPath(), s === 3 ? this.formatPath(a) : this.formatPath(u.slice(0, 2)), m = n < 3 ? n * 3 : n * 2, E = n < 3 ? n * 2 : n, s === 3 && (m = n, E = n), F = !0, B <= m * 2 ? F = !1 : B <= m * 2 + E ? (y = B / (2 * m + E), m *= y, E *= y) : (b = Math.floor((B + E) / (m + E)), L = (B - b * m) / (b - 1), v = (B - (b + 1) * m) / b, E = v <= 0 || Math.abs(E - L) < Math.abs(E - v) ? L : v), F && (s === 3 ? this.ctx.setLineDash([0, m + E]) : this.ctx.setLineDash([m, E])), s === 3 ? (this.ctx.lineCap = "round", this.ctx.lineWidth = n) : this.ctx.lineWidth = n * 2 + 1.1, this.ctx.strokeStyle =
|
|
28009
|
+
return this.ctx.save(), a = MV(i, r), u = qw(i, r), s === 2 && (this.path(u), this.ctx.clip()), un(u[0]) ? (c = u[0].start.x, f = u[0].start.y) : (c = u[0].x, f = u[0].y), un(u[1]) ? (h = u[1].end.x, p = u[1].end.y) : (h = u[1].x, p = u[1].y), r === 0 || r === 2 ? B = Math.abs(c - h) : B = Math.abs(f - p), this.ctx.beginPath(), s === 3 ? this.formatPath(a) : this.formatPath(u.slice(0, 2)), m = n < 3 ? n * 3 : n * 2, E = n < 3 ? n * 2 : n, s === 3 && (m = n, E = n), F = !0, B <= m * 2 ? F = !1 : B <= m * 2 + E ? (y = B / (2 * m + E), m *= y, E *= y) : (b = Math.floor((B + E) / (m + E)), L = (B - b * m) / (b - 1), v = (B - (b + 1) * m) / b, E = v <= 0 || Math.abs(E - L) < Math.abs(E - v) ? L : v), F && (s === 3 ? this.ctx.setLineDash([0, m + E]) : this.ctx.setLineDash([m, E])), s === 3 ? (this.ctx.lineCap = "round", this.ctx.lineWidth = n) : this.ctx.lineWidth = n * 2 + 1.1, this.ctx.strokeStyle = Re(e), this.ctx.stroke(), this.ctx.setLineDash([]), s === 2 && (un(u[0]) && (M = u[3], S = u[0], this.ctx.beginPath(), this.formatPath([new j(M.end.x, M.end.y), new j(S.start.x, S.start.y)]), this.ctx.stroke()), un(u[1]) && (M = u[1], S = u[2], this.ctx.beginPath(), this.formatPath([new j(M.end.x, M.end.y), new j(S.start.x, S.start.y)]), this.ctx.stroke())), this.ctx.restore(), [
|
|
28010
28010
|
2
|
|
28011
28011
|
/*return*/
|
|
28012
28012
|
];
|
|
@@ -28018,7 +28018,7 @@ var me = function(t, A, e, n, r) {
|
|
|
28018
28018
|
return it(this, function(r) {
|
|
28019
28019
|
switch (r.label) {
|
|
28020
28020
|
case 0:
|
|
28021
|
-
return this.options.backgroundColor && (this.ctx.fillStyle =
|
|
28021
|
+
return this.options.backgroundColor && (this.ctx.fillStyle = Re(this.options.backgroundColor), this.ctx.fillRect(this.options.x, this.options.y, this.options.width, this.options.height)), n = OV(e), [4, this.renderStack(n)];
|
|
28022
28022
|
case 1:
|
|
28023
28023
|
return r.sent(), this.applyEffects([]), [2, this.canvas];
|
|
28024
28024
|
}
|
|
@@ -28068,7 +28068,7 @@ var me = function(t, A, e, n, r) {
|
|
|
28068
28068
|
case 0:
|
|
28069
28069
|
return n = Dd(this.options.width * this.options.scale, this.options.height * this.options.scale, this.options.scale, this.options.scale, e), [4, qV(n)];
|
|
28070
28070
|
case 1:
|
|
28071
|
-
return r = i.sent(), this.options.backgroundColor && (this.ctx.fillStyle =
|
|
28071
|
+
return r = i.sent(), this.options.backgroundColor && (this.ctx.fillStyle = Re(this.options.backgroundColor), this.ctx.fillRect(0, 0, this.options.width * this.options.scale, this.options.height * this.options.scale)), this.ctx.drawImage(r, -this.options.x * this.options.scale, -this.options.y * this.options.scale), [2, this.canvas];
|
|
28072
28072
|
}
|
|
28073
28073
|
});
|
|
28074
28074
|
});
|