ablok-photobooth 0.1.13 → 0.1.15
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.
|
@@ -79,7 +79,7 @@ var gl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
79
79
|
*/
|
|
80
80
|
(function(_, d) {
|
|
81
81
|
(function() {
|
|
82
|
-
var m, R = "4.17.21",
|
|
82
|
+
var m, R = "4.17.21", j = 200, L = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", Q = "Expected a function", g = "Invalid `variable` option passed into `_.template`", o = "__lodash_hash_undefined__", u = 500, c = "__lodash_placeholder__", i = 1, s = 2, r = 4, l = 1, f = 2, a = 1, A = 2, p = 4, y = 8, C = 16, S = 32, E = 64, D = 128, B = 256, K = 512, rt = 30, At = "...", at = 800, tt = 16, pt = 1, mt = 2, Tt = 3, Ot = 1 / 0, wt = 9007199254740991, M = 17976931348623157e292, X = 0 / 0, Y = 4294967295, G = Y - 1, lt = Y >>> 1, U = [
|
|
83
83
|
["ary", D],
|
|
84
84
|
["bind", a],
|
|
85
85
|
["bindKey", A],
|
|
@@ -867,7 +867,7 @@ var gl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
867
867
|
var n = this.__data__;
|
|
868
868
|
if (n instanceof qe) {
|
|
869
869
|
var h = n.__data__;
|
|
870
|
-
if (!Zn || h.length <
|
|
870
|
+
if (!Zn || h.length < j - 1)
|
|
871
871
|
return h.push([t, e]), this.size = ++n.size, this;
|
|
872
872
|
n = this.__data__ = new Ze(h);
|
|
873
873
|
}
|
|
@@ -999,7 +999,7 @@ var gl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
999
999
|
var v = -1, w = yr, T = !0, O = t.length, P = [], V = e.length;
|
|
1000
1000
|
if (!O)
|
|
1001
1001
|
return P;
|
|
1002
|
-
n && (e = Gt(e, Ce(n))), h ? (w = xi, T = !1) : e.length >=
|
|
1002
|
+
n && (e = Gt(e, Ce(n))), h ? (w = xi, T = !1) : e.length >= j && (w = $n, T = !1, e = new Sn(e));
|
|
1003
1003
|
t:
|
|
1004
1004
|
for (; ++v < O; ) {
|
|
1005
1005
|
var z = t[v], $ = n == null ? z : n(z);
|
|
@@ -1433,7 +1433,7 @@ var gl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1433
1433
|
var h = -1, v = yr, w = t.length, T = !0, O = [], P = O;
|
|
1434
1434
|
if (n)
|
|
1435
1435
|
T = !1, v = xi;
|
|
1436
|
-
else if (w >=
|
|
1436
|
+
else if (w >= j) {
|
|
1437
1437
|
var V = e ? null : Hf(t);
|
|
1438
1438
|
if (V)
|
|
1439
1439
|
return br(V);
|
|
@@ -2304,7 +2304,7 @@ var gl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2304
2304
|
return "";
|
|
2305
2305
|
}
|
|
2306
2306
|
function oh(t, e) {
|
|
2307
|
-
return Oe(
|
|
2307
|
+
return Oe(U, function(n) {
|
|
2308
2308
|
var h = "_." + n[0];
|
|
2309
2309
|
e & n[1] && !yr(t, h) && t.push(h);
|
|
2310
2310
|
}), t.sort();
|
|
@@ -3753,8 +3753,8 @@ const Jv = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAYAAAB/HSuDAA
|
|
|
3753
3753
|
};
|
|
3754
3754
|
function mm(_) {
|
|
3755
3755
|
const d = atob(_.split(",")[1]), m = new ArrayBuffer(d.length), R = new Uint8Array(m);
|
|
3756
|
-
for (let
|
|
3757
|
-
R[
|
|
3756
|
+
for (let j = 0; j < d.length; j++)
|
|
3757
|
+
R[j] = d.charCodeAt(j);
|
|
3758
3758
|
return new Blob([m], { type: "image/png" });
|
|
3759
3759
|
}
|
|
3760
3760
|
const _m = /* @__PURE__ */ Il({
|
|
@@ -3794,7 +3794,7 @@ const _m = /* @__PURE__ */ Il({
|
|
|
3794
3794
|
},
|
|
3795
3795
|
emits: ["update:modelValue"],
|
|
3796
3796
|
setup(_, { expose: d, emit: m }) {
|
|
3797
|
-
const R = _,
|
|
3797
|
+
const R = _, j = {
|
|
3798
3798
|
"1-1": { width: 720, height: 720 },
|
|
3799
3799
|
"4-3": { width: 640, height: 480 },
|
|
3800
3800
|
"3-4": { width: 480, height: 640 },
|
|
@@ -3820,8 +3820,8 @@ const _m = /* @__PURE__ */ Il({
|
|
|
3820
3820
|
navigator.mediaDevices.getUserMedia({
|
|
3821
3821
|
audio: !1,
|
|
3822
3822
|
video: {
|
|
3823
|
-
width: { ideal:
|
|
3824
|
-
height: { ideal:
|
|
3823
|
+
width: { ideal: j[R.ratio] ? j[R.ratio].width : L.value.clientWidth },
|
|
3824
|
+
height: { ideal: j[R.ratio] ? j[R.ratio].height : L.value.clientHeight }
|
|
3825
3825
|
}
|
|
3826
3826
|
}).then((K) => {
|
|
3827
3827
|
L.value.srcObject = K;
|
|
@@ -3991,25 +3991,25 @@ const Qe = Array.isArray, ln = (_) => typeof _ == "function", Bt = (_) => typeof
|
|
|
3991
3991
|
), Cv = Object.prototype.toString, Bp = (_) => Cv.call(_), re = (_) => Bp(_) === "[object Object]", xm = (_) => _ == null ? "" : Qe(_) || re(_) && _.toString === Cv ? JSON.stringify(_, null, 2) : String(_), Vp = 2;
|
|
3992
3992
|
function Em(_, d = 0, m = _.length) {
|
|
3993
3993
|
const R = _.split(/\r?\n/);
|
|
3994
|
-
let
|
|
3994
|
+
let j = 0;
|
|
3995
3995
|
const L = [];
|
|
3996
3996
|
for (let Q = 0; Q < R.length; Q++)
|
|
3997
|
-
if (
|
|
3998
|
-
for (let g = Q - Vp; g <= Q + Vp || m >
|
|
3997
|
+
if (j += R[Q].length + 1, j >= d) {
|
|
3998
|
+
for (let g = Q - Vp; g <= Q + Vp || m > j; g++) {
|
|
3999
3999
|
if (g < 0 || g >= R.length)
|
|
4000
4000
|
continue;
|
|
4001
4001
|
const o = g + 1;
|
|
4002
4002
|
L.push(`${o}${" ".repeat(3 - String(o).length)}| ${R[g]}`);
|
|
4003
4003
|
const u = R[g].length;
|
|
4004
4004
|
if (g === Q) {
|
|
4005
|
-
const c = d - (
|
|
4005
|
+
const c = d - (j - u) + 1, i = Math.max(1, m > j ? u - c : m - d);
|
|
4006
4006
|
L.push(" | " + " ".repeat(c) + "^".repeat(i));
|
|
4007
4007
|
} else if (g > Q) {
|
|
4008
|
-
if (m >
|
|
4009
|
-
const c = Math.max(Math.min(m -
|
|
4008
|
+
if (m > j) {
|
|
4009
|
+
const c = Math.max(Math.min(m - j, u), 1);
|
|
4010
4010
|
L.push(" | " + "^".repeat(c));
|
|
4011
4011
|
}
|
|
4012
|
-
|
|
4012
|
+
j += u + 1;
|
|
4013
4013
|
}
|
|
4014
4014
|
}
|
|
4015
4015
|
break;
|
|
@@ -4022,15 +4022,15 @@ function Om() {
|
|
|
4022
4022
|
return {
|
|
4023
4023
|
events: _,
|
|
4024
4024
|
on(m, R) {
|
|
4025
|
-
const
|
|
4026
|
-
|
|
4025
|
+
const j = _.get(m);
|
|
4026
|
+
j && j.push(R) || _.set(m, [R]);
|
|
4027
4027
|
},
|
|
4028
4028
|
off(m, R) {
|
|
4029
|
-
const
|
|
4030
|
-
|
|
4029
|
+
const j = _.get(m);
|
|
4030
|
+
j && j.splice(j.indexOf(R) >>> 0, 1);
|
|
4031
4031
|
},
|
|
4032
4032
|
emit(m, R) {
|
|
4033
|
-
(_.get(m) || []).slice().map((
|
|
4033
|
+
(_.get(m) || []).slice().map((j) => j(R)), (_.get("*") || []).slice().map((j) => j(m, R));
|
|
4034
4034
|
}
|
|
4035
4035
|
};
|
|
4036
4036
|
}
|
|
@@ -4079,7 +4079,7 @@ const zt = {
|
|
|
4079
4079
|
[zt.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'"
|
|
4080
4080
|
};
|
|
4081
4081
|
function Ml(_, d, m = {}) {
|
|
4082
|
-
const { domain: R, messages:
|
|
4082
|
+
const { domain: R, messages: j, args: L } = m, Q = process.env.NODE_ENV !== "production" ? Ll((j || Im)[_] || "", ...L || []) : _, g = new SyntaxError(String(Q));
|
|
4083
4083
|
return g.code = _, d && (g.location = d), g.domain = R, g;
|
|
4084
4084
|
}
|
|
4085
4085
|
function Dm(_) {
|
|
@@ -4096,16 +4096,16 @@ const ai = " ", Lm = "\r", Dn = `
|
|
|
4096
4096
|
`, km = String.fromCharCode(8232), Mm = String.fromCharCode(8233);
|
|
4097
4097
|
function Fm(_) {
|
|
4098
4098
|
const d = _;
|
|
4099
|
-
let m = 0, R = 1,
|
|
4100
|
-
const Q = (D) => d[D] === Lm && d[D + 1] === Dn, g = (D) => d[D] === Dn, o = (D) => d[D] === Mm, u = (D) => d[D] === km, c = (D) => Q(D) || g(D) || o(D) || u(D), i = () => m, s = () => R, r = () =>
|
|
4099
|
+
let m = 0, R = 1, j = 1, L = 0;
|
|
4100
|
+
const Q = (D) => d[D] === Lm && d[D + 1] === Dn, g = (D) => d[D] === Dn, o = (D) => d[D] === Mm, u = (D) => d[D] === km, c = (D) => Q(D) || g(D) || o(D) || u(D), i = () => m, s = () => R, r = () => j, l = () => L, f = (D) => Q(D) || o(D) || u(D) ? Dn : d[D], a = () => f(m), A = () => f(m + L);
|
|
4101
4101
|
function p() {
|
|
4102
|
-
return L = 0, c(m) && (R++,
|
|
4102
|
+
return L = 0, c(m) && (R++, j = 0), Q(m) && m++, m++, j++, d[m];
|
|
4103
4103
|
}
|
|
4104
4104
|
function y() {
|
|
4105
4105
|
return Q(m + L) && L++, L++, d[m + L];
|
|
4106
4106
|
}
|
|
4107
4107
|
function C() {
|
|
4108
|
-
m = 0, R = 1,
|
|
4108
|
+
m = 0, R = 1, j = 1, L = 0;
|
|
4109
4109
|
}
|
|
4110
4110
|
function S(D = 0) {
|
|
4111
4111
|
L = D;
|
|
@@ -4133,7 +4133,7 @@ function Fm(_) {
|
|
|
4133
4133
|
}
|
|
4134
4134
|
const hi = void 0, zp = "'", Rm = "tokenizer";
|
|
4135
4135
|
function Bm(_, d = {}) {
|
|
4136
|
-
const m = d.location !== !1, R = Fm(_),
|
|
4136
|
+
const m = d.location !== !1, R = Fm(_), j = () => R.index(), L = () => Pm(R.line(), R.column(), R.index()), Q = L(), g = j(), o = {
|
|
4137
4137
|
currentType: 14,
|
|
4138
4138
|
offset: g,
|
|
4139
4139
|
startLoc: Q,
|
|
@@ -4361,14 +4361,14 @@ function Bm(_, d = {}) {
|
|
|
4361
4361
|
case "'":
|
|
4362
4362
|
return k.next(), `\\${x}`;
|
|
4363
4363
|
case "u":
|
|
4364
|
-
return
|
|
4364
|
+
return U(k, x, 4);
|
|
4365
4365
|
case "U":
|
|
4366
|
-
return
|
|
4366
|
+
return U(k, x, 6);
|
|
4367
4367
|
default:
|
|
4368
4368
|
return i(zt.UNKNOWN_ESCAPE_SEQUENCE, L(), 0, x), "";
|
|
4369
4369
|
}
|
|
4370
4370
|
}
|
|
4371
|
-
function
|
|
4371
|
+
function U(k, x, W) {
|
|
4372
4372
|
l(k, x);
|
|
4373
4373
|
let J = "";
|
|
4374
4374
|
for (let Z = 0; Z < W; Z++) {
|
|
@@ -4513,7 +4513,7 @@ function Bm(_, d = {}) {
|
|
|
4513
4513
|
}
|
|
4514
4514
|
function bt() {
|
|
4515
4515
|
const { currentType: k, offset: x, startLoc: W, endLoc: J } = o;
|
|
4516
|
-
return o.lastType = k, o.lastOffset = x, o.lastStartLoc = W, o.lastEndLoc = J, o.offset =
|
|
4516
|
+
return o.lastType = k, o.lastOffset = x, o.lastStartLoc = W, o.lastEndLoc = J, o.offset = j(), o.startLoc = L(), R.currentChar() === hi ? s(
|
|
4517
4517
|
o,
|
|
4518
4518
|
14
|
|
4519
4519
|
/* EOF */
|
|
@@ -4521,7 +4521,7 @@ function Bm(_, d = {}) {
|
|
|
4521
4521
|
}
|
|
4522
4522
|
return {
|
|
4523
4523
|
nextToken: bt,
|
|
4524
|
-
currentOffset:
|
|
4524
|
+
currentOffset: j,
|
|
4525
4525
|
currentPosition: L,
|
|
4526
4526
|
context: u
|
|
4527
4527
|
};
|
|
@@ -4551,7 +4551,7 @@ function jm(_ = {}) {
|
|
|
4551
4551
|
m(B);
|
|
4552
4552
|
}
|
|
4553
4553
|
}
|
|
4554
|
-
function
|
|
4554
|
+
function j(A, p, y) {
|
|
4555
4555
|
const C = {
|
|
4556
4556
|
type: A,
|
|
4557
4557
|
start: p,
|
|
@@ -4563,23 +4563,23 @@ function jm(_ = {}) {
|
|
|
4563
4563
|
A.end = p, C && (A.type = C), d && A.loc && (A.loc.end = y);
|
|
4564
4564
|
}
|
|
4565
4565
|
function Q(A, p) {
|
|
4566
|
-
const y = A.context(), C =
|
|
4566
|
+
const y = A.context(), C = j(3, y.offset, y.startLoc);
|
|
4567
4567
|
return C.value = p, L(C, A.currentOffset(), A.currentPosition()), C;
|
|
4568
4568
|
}
|
|
4569
4569
|
function g(A, p) {
|
|
4570
|
-
const y = A.context(), { lastOffset: C, lastStartLoc: S } = y, E =
|
|
4570
|
+
const y = A.context(), { lastOffset: C, lastStartLoc: S } = y, E = j(5, C, S);
|
|
4571
4571
|
return E.index = parseInt(p, 10), A.nextToken(), L(E, A.currentOffset(), A.currentPosition()), E;
|
|
4572
4572
|
}
|
|
4573
4573
|
function o(A, p) {
|
|
4574
|
-
const y = A.context(), { lastOffset: C, lastStartLoc: S } = y, E =
|
|
4574
|
+
const y = A.context(), { lastOffset: C, lastStartLoc: S } = y, E = j(4, C, S);
|
|
4575
4575
|
return E.key = p, A.nextToken(), L(E, A.currentOffset(), A.currentPosition()), E;
|
|
4576
4576
|
}
|
|
4577
4577
|
function u(A, p) {
|
|
4578
|
-
const y = A.context(), { lastOffset: C, lastStartLoc: S } = y, E =
|
|
4578
|
+
const y = A.context(), { lastOffset: C, lastStartLoc: S } = y, E = j(9, C, S);
|
|
4579
4579
|
return E.value = p.replace(Wm, Um), A.nextToken(), L(E, A.currentOffset(), A.currentPosition()), E;
|
|
4580
4580
|
}
|
|
4581
4581
|
function c(A) {
|
|
4582
|
-
const p = A.nextToken(), y = A.context(), { lastOffset: C, lastStartLoc: S } = y, E =
|
|
4582
|
+
const p = A.nextToken(), y = A.context(), { lastOffset: C, lastStartLoc: S } = y, E = j(8, C, S);
|
|
4583
4583
|
return p.type !== 12 ? (R(A, zt.UNEXPECTED_EMPTY_LINKED_MODIFIER, y.lastStartLoc, 0), E.value = "", L(E, C, S), {
|
|
4584
4584
|
nextConsumeToken: p,
|
|
4585
4585
|
node: E
|
|
@@ -4588,11 +4588,11 @@ function jm(_ = {}) {
|
|
|
4588
4588
|
});
|
|
4589
4589
|
}
|
|
4590
4590
|
function i(A, p) {
|
|
4591
|
-
const y = A.context(), C =
|
|
4591
|
+
const y = A.context(), C = j(7, y.offset, y.startLoc);
|
|
4592
4592
|
return C.value = p, L(C, A.currentOffset(), A.currentPosition()), C;
|
|
4593
4593
|
}
|
|
4594
4594
|
function s(A) {
|
|
4595
|
-
const p = A.context(), y =
|
|
4595
|
+
const p = A.context(), y = j(6, p.offset, p.startLoc);
|
|
4596
4596
|
let C = A.nextToken();
|
|
4597
4597
|
if (C.type === 9) {
|
|
4598
4598
|
const S = c(A);
|
|
@@ -4613,7 +4613,7 @@ function jm(_ = {}) {
|
|
|
4613
4613
|
break;
|
|
4614
4614
|
default:
|
|
4615
4615
|
R(A, zt.UNEXPECTED_EMPTY_LINKED_KEY, p.lastStartLoc, 0);
|
|
4616
|
-
const S = A.context(), E =
|
|
4616
|
+
const S = A.context(), E = j(7, S.offset, S.startLoc);
|
|
4617
4617
|
return E.value = "", L(E, S.offset, S.startLoc), y.key = E, L(y, S.offset, S.startLoc), {
|
|
4618
4618
|
nextConsumeToken: C,
|
|
4619
4619
|
node: y
|
|
@@ -4624,7 +4624,7 @@ function jm(_ = {}) {
|
|
|
4624
4624
|
};
|
|
4625
4625
|
}
|
|
4626
4626
|
function r(A) {
|
|
4627
|
-
const p = A.context(), y = p.currentType === 1 ? A.currentOffset() : p.offset, C = p.currentType === 1 ? p.endLoc : p.startLoc, S =
|
|
4627
|
+
const p = A.context(), y = p.currentType === 1 ? A.currentOffset() : p.offset, C = p.currentType === 1 ? p.endLoc : p.startLoc, S = j(2, y, C);
|
|
4628
4628
|
S.items = [];
|
|
4629
4629
|
let E = null;
|
|
4630
4630
|
do {
|
|
@@ -4654,7 +4654,7 @@ function jm(_ = {}) {
|
|
|
4654
4654
|
function l(A, p, y, C) {
|
|
4655
4655
|
const S = A.context();
|
|
4656
4656
|
let E = C.items.length === 0;
|
|
4657
|
-
const D =
|
|
4657
|
+
const D = j(1, p, y);
|
|
4658
4658
|
D.cases = [], D.cases.push(C);
|
|
4659
4659
|
do {
|
|
4660
4660
|
const B = r(A);
|
|
@@ -4667,7 +4667,7 @@ function jm(_ = {}) {
|
|
|
4667
4667
|
return p.currentType === 14 ? S : l(A, y, C, S);
|
|
4668
4668
|
}
|
|
4669
4669
|
function a(A) {
|
|
4670
|
-
const p = Bm(A, mn({}, _)), y = p.context(), C =
|
|
4670
|
+
const p = Bm(A, mn({}, _)), y = p.context(), C = j(0, y.offset, y.startLoc);
|
|
4671
4671
|
return d && C.loc && (C.loc.source = A), C.body = f(p), y.currentType !== 14 && R(p, zt.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, A[y.offset] || ""), L(C, p.currentOffset(), p.currentPosition()), C;
|
|
4672
4672
|
}
|
|
4673
4673
|
return { parse: a };
|
|
@@ -4739,7 +4739,7 @@ function Ym(_, d = {}) {
|
|
|
4739
4739
|
_.helpers = Array.from(R.helpers);
|
|
4740
4740
|
}
|
|
4741
4741
|
function Xm(_, d) {
|
|
4742
|
-
const { sourceMap: m, filename: R, breakLineCode:
|
|
4742
|
+
const { sourceMap: m, filename: R, breakLineCode: j, needIndent: L } = d, Q = {
|
|
4743
4743
|
source: _.loc.source,
|
|
4744
4744
|
filename: R,
|
|
4745
4745
|
code: "",
|
|
@@ -4747,7 +4747,7 @@ function Xm(_, d) {
|
|
|
4747
4747
|
line: 1,
|
|
4748
4748
|
offset: 0,
|
|
4749
4749
|
map: void 0,
|
|
4750
|
-
breakLineCode:
|
|
4750
|
+
breakLineCode: j,
|
|
4751
4751
|
needIndent: L,
|
|
4752
4752
|
indentLevel: 0
|
|
4753
4753
|
}, g = () => Q;
|
|
@@ -4755,7 +4755,7 @@ function Xm(_, d) {
|
|
|
4755
4755
|
Q.code += f;
|
|
4756
4756
|
}
|
|
4757
4757
|
function u(f, a = !0) {
|
|
4758
|
-
const A = a ?
|
|
4758
|
+
const A = a ? j : "";
|
|
4759
4759
|
o(L ? A + " ".repeat(f) : A);
|
|
4760
4760
|
}
|
|
4761
4761
|
function c(f = !0) {
|
|
@@ -4792,8 +4792,8 @@ function Vm(_, d) {
|
|
|
4792
4792
|
"normalize"
|
|
4793
4793
|
/* NORMALIZE */
|
|
4794
4794
|
)}([`), _.indent(R());
|
|
4795
|
-
const
|
|
4796
|
-
for (let L = 0; L <
|
|
4795
|
+
const j = d.items.length;
|
|
4796
|
+
for (let L = 0; L < j && (Ba(_, d.items[L]), L !== j - 1); L++)
|
|
4797
4797
|
_.push(", ");
|
|
4798
4798
|
_.deindent(R()), _.push("])");
|
|
4799
4799
|
}
|
|
@@ -4804,8 +4804,8 @@ function zm(_, d) {
|
|
|
4804
4804
|
"plural"
|
|
4805
4805
|
/* PLURAL */
|
|
4806
4806
|
)}([`), _.indent(R());
|
|
4807
|
-
const
|
|
4808
|
-
for (let L = 0; L <
|
|
4807
|
+
const j = d.cases.length;
|
|
4808
|
+
for (let L = 0; L < j && (Ba(_, d.cases[L]), L !== j - 1); L++)
|
|
4809
4809
|
_.push(", ");
|
|
4810
4810
|
_.deindent(R()), _.push("])");
|
|
4811
4811
|
}
|
|
@@ -4864,11 +4864,11 @@ function Ba(_, d) {
|
|
|
4864
4864
|
}
|
|
4865
4865
|
}
|
|
4866
4866
|
const Km = (_, d = {}) => {
|
|
4867
|
-
const m = Bt(d.mode) ? d.mode : "normal", R = Bt(d.filename) ? d.filename : "message.intl",
|
|
4867
|
+
const m = Bt(d.mode) ? d.mode : "normal", R = Bt(d.filename) ? d.filename : "message.intl", j = !!d.sourceMap, L = d.breakLineCode != null ? d.breakLineCode : m === "arrow" ? ";" : `
|
|
4868
4868
|
`, Q = d.needIndent ? d.needIndent : m !== "arrow", g = _.helpers || [], o = Xm(_, {
|
|
4869
4869
|
mode: m,
|
|
4870
4870
|
filename: R,
|
|
4871
|
-
sourceMap:
|
|
4871
|
+
sourceMap: j,
|
|
4872
4872
|
breakLineCode: L,
|
|
4873
4873
|
needIndent: Q
|
|
4874
4874
|
});
|
|
@@ -4882,8 +4882,8 @@ const Km = (_, d = {}) => {
|
|
|
4882
4882
|
};
|
|
4883
4883
|
};
|
|
4884
4884
|
function $m(_, d = {}) {
|
|
4885
|
-
const m = mn({}, d),
|
|
4886
|
-
return Ym(
|
|
4885
|
+
const m = mn({}, d), j = jm(m).parse(_);
|
|
4886
|
+
return Ym(j, m), Km(j, m);
|
|
4887
4887
|
}
|
|
4888
4888
|
/*!
|
|
4889
4889
|
* devtools-if v9.2.2
|
|
@@ -5138,7 +5138,7 @@ function e_(_) {
|
|
|
5138
5138
|
}
|
|
5139
5139
|
function n_(_) {
|
|
5140
5140
|
const d = [];
|
|
5141
|
-
let m = -1, R = 0,
|
|
5141
|
+
let m = -1, R = 0, j = 0, L, Q, g, o, u, c, i;
|
|
5142
5142
|
const s = [];
|
|
5143
5143
|
s[
|
|
5144
5144
|
0
|
|
@@ -5157,18 +5157,18 @@ function n_(_) {
|
|
|
5157
5157
|
s[
|
|
5158
5158
|
0
|
|
5159
5159
|
/* APPEND */
|
|
5160
|
-
](),
|
|
5160
|
+
](), j++;
|
|
5161
5161
|
}, s[
|
|
5162
5162
|
3
|
|
5163
5163
|
/* PUSH_SUB_PATH */
|
|
5164
5164
|
] = () => {
|
|
5165
|
-
if (
|
|
5166
|
-
|
|
5165
|
+
if (j > 0)
|
|
5166
|
+
j--, R = 4, s[
|
|
5167
5167
|
0
|
|
5168
5168
|
/* APPEND */
|
|
5169
5169
|
]();
|
|
5170
5170
|
else {
|
|
5171
|
-
if (
|
|
5171
|
+
if (j = 0, Q === void 0 || (Q = e_(Q), Q === !1))
|
|
5172
5172
|
return !1;
|
|
5173
5173
|
s[
|
|
5174
5174
|
1
|
|
@@ -5203,14 +5203,14 @@ function i_(_, d) {
|
|
|
5203
5203
|
if (m || (m = n_(d), m && Kp.set(d, m)), !m)
|
|
5204
5204
|
return null;
|
|
5205
5205
|
const R = m.length;
|
|
5206
|
-
let
|
|
5206
|
+
let j = _, L = 0;
|
|
5207
5207
|
for (; L < R; ) {
|
|
5208
|
-
const Q =
|
|
5208
|
+
const Q = j[m[L]];
|
|
5209
5209
|
if (Q === void 0)
|
|
5210
5210
|
return null;
|
|
5211
|
-
|
|
5211
|
+
j = Q, L++;
|
|
5212
5212
|
}
|
|
5213
|
-
return
|
|
5213
|
+
return j;
|
|
5214
5214
|
}
|
|
5215
5215
|
const a_ = (_) => _, s_ = (_) => "", o_ = "text", l_ = (_) => _.length === 0 ? "" : _.join(""), u_ = xm;
|
|
5216
5216
|
function $p(_, d) {
|
|
@@ -5224,7 +5224,7 @@ function f_(_, d) {
|
|
|
5224
5224
|
d.count || (d.count = _), d.n || (d.n = _);
|
|
5225
5225
|
}
|
|
5226
5226
|
function h_(_ = {}) {
|
|
5227
|
-
const d = _.locale, m = c_(_), R = xe(_.pluralRules) && Bt(d) && ln(_.pluralRules[d]) ? _.pluralRules[d] : $p,
|
|
5227
|
+
const d = _.locale, m = c_(_), R = xe(_.pluralRules) && Bt(d) && ln(_.pluralRules[d]) ? _.pluralRules[d] : $p, j = xe(_.pluralRules) && Bt(d) && ln(_.pluralRules[d]) ? $p : void 0, L = (A) => A[R(m, A.length, j)], Q = _.list || [], g = (A) => Q[A], o = _.named || {};
|
|
5228
5228
|
_n(_.pluralIndex) && f_(m, o);
|
|
5229
5229
|
const u = (A) => o[A];
|
|
5230
5230
|
function c(A) {
|
|
@@ -5291,42 +5291,42 @@ function m_(_, d, m) {
|
|
|
5291
5291
|
])];
|
|
5292
5292
|
}
|
|
5293
5293
|
function wv(_, d, m) {
|
|
5294
|
-
const R = Bt(m) ? m : Rl,
|
|
5295
|
-
|
|
5296
|
-
let L =
|
|
5294
|
+
const R = Bt(m) ? m : Rl, j = _;
|
|
5295
|
+
j.__localeChainCache || (j.__localeChainCache = /* @__PURE__ */ new Map());
|
|
5296
|
+
let L = j.__localeChainCache.get(R);
|
|
5297
5297
|
if (!L) {
|
|
5298
5298
|
L = [];
|
|
5299
5299
|
let Q = [m];
|
|
5300
5300
|
for (; Qe(Q); )
|
|
5301
5301
|
Q = qp(L, Q, d);
|
|
5302
5302
|
const g = Qe(d) || !re(d) ? d : d.default ? d.default : null;
|
|
5303
|
-
Q = Bt(g) ? [g] : g, Qe(Q) && qp(L, Q, !1),
|
|
5303
|
+
Q = Bt(g) ? [g] : g, Qe(Q) && qp(L, Q, !1), j.__localeChainCache.set(R, L);
|
|
5304
5304
|
}
|
|
5305
5305
|
return L;
|
|
5306
5306
|
}
|
|
5307
5307
|
function qp(_, d, m) {
|
|
5308
5308
|
let R = !0;
|
|
5309
|
-
for (let
|
|
5310
|
-
const L = d[
|
|
5311
|
-
Bt(L) && (R = __(_, d[
|
|
5309
|
+
for (let j = 0; j < d.length && Fe(R); j++) {
|
|
5310
|
+
const L = d[j];
|
|
5311
|
+
Bt(L) && (R = __(_, d[j], m));
|
|
5312
5312
|
}
|
|
5313
5313
|
return R;
|
|
5314
5314
|
}
|
|
5315
5315
|
function __(_, d, m) {
|
|
5316
5316
|
let R;
|
|
5317
|
-
const
|
|
5317
|
+
const j = d.split("-");
|
|
5318
5318
|
do {
|
|
5319
|
-
const L =
|
|
5320
|
-
R = y_(_, L, m),
|
|
5321
|
-
} while (
|
|
5319
|
+
const L = j.join("-");
|
|
5320
|
+
R = y_(_, L, m), j.splice(-1, 1);
|
|
5321
|
+
} while (j.length && R === !0);
|
|
5322
5322
|
return R;
|
|
5323
5323
|
}
|
|
5324
5324
|
function y_(_, d, m) {
|
|
5325
5325
|
let R = !1;
|
|
5326
5326
|
if (!_.includes(d) && (R = !0, d)) {
|
|
5327
5327
|
R = d[d.length - 1] !== "!";
|
|
5328
|
-
const
|
|
5329
|
-
_.push(
|
|
5328
|
+
const j = d.replace(/!/g, "");
|
|
5329
|
+
_.push(j), (Qe(m) || re(m)) && m[j] && (R = m[j]);
|
|
5330
5330
|
}
|
|
5331
5331
|
return R;
|
|
5332
5332
|
}
|
|
@@ -5360,14 +5360,14 @@ const tv = (_) => {
|
|
|
5360
5360
|
}, E_ = () => Ov;
|
|
5361
5361
|
let ev = 0;
|
|
5362
5362
|
function O_(_ = {}) {
|
|
5363
|
-
const d = Bt(_.version) ? _.version : C_, m = Bt(_.locale) ? _.locale : Rl, R = Qe(_.fallbackLocale) || re(_.fallbackLocale) || Bt(_.fallbackLocale) || _.fallbackLocale === !1 ? _.fallbackLocale : m,
|
|
5363
|
+
const d = Bt(_.version) ? _.version : C_, m = Bt(_.locale) ? _.locale : Rl, R = Qe(_.fallbackLocale) || re(_.fallbackLocale) || Bt(_.fallbackLocale) || _.fallbackLocale === !1 ? _.fallbackLocale : m, j = re(_.messages) ? _.messages : { [m]: {} }, L = re(_.datetimeFormats) ? _.datetimeFormats : { [m]: {} }, Q = re(_.numberFormats) ? _.numberFormats : { [m]: {} }, g = mn({}, _.modifiers || {}, b_()), o = _.pluralRules || {}, u = ln(_.missing) ? _.missing : null, c = Fe(_.missingWarn) || Ra(_.missingWarn) ? _.missingWarn : !0, i = Fe(_.fallbackWarn) || Ra(_.fallbackWarn) ? _.fallbackWarn : !0, s = !!_.fallbackFormat, r = !!_.unresolving, l = ln(_.postTranslation) ? _.postTranslation : null, f = re(_.processor) ? _.processor : null, a = Fe(_.warnHtmlMessage) ? _.warnHtmlMessage : !0, A = !!_.escapeParameter, p = ln(_.messageCompiler) ? _.messageCompiler : Sv, y = ln(_.messageResolver) ? _.messageResolver : Tv || r_, C = ln(_.localeFallbacker) ? _.localeFallbacker : xv || m_, S = xe(_.fallbackContext) ? _.fallbackContext : void 0, E = ln(_.onWarn) ? _.onWarn : Sl, D = _, B = xe(D.__datetimeFormatters) ? D.__datetimeFormatters : /* @__PURE__ */ new Map(), K = xe(D.__numberFormatters) ? D.__numberFormatters : /* @__PURE__ */ new Map(), rt = xe(D.__meta) ? D.__meta : {};
|
|
5364
5364
|
ev++;
|
|
5365
5365
|
const At = {
|
|
5366
5366
|
version: d,
|
|
5367
5367
|
cid: ev,
|
|
5368
5368
|
locale: m,
|
|
5369
5369
|
fallbackLocale: R,
|
|
5370
|
-
messages:
|
|
5370
|
+
messages: j,
|
|
5371
5371
|
modifiers: g,
|
|
5372
5372
|
pluralRules: o,
|
|
5373
5373
|
missing: u,
|
|
@@ -5394,19 +5394,19 @@ function Bl(_, d) {
|
|
|
5394
5394
|
function Iv(_, d) {
|
|
5395
5395
|
return _ instanceof RegExp ? _.test(d) : _;
|
|
5396
5396
|
}
|
|
5397
|
-
function Wp(_, d, m, R,
|
|
5397
|
+
function Wp(_, d, m, R, j) {
|
|
5398
5398
|
const { missing: L, onWarn: Q } = _;
|
|
5399
5399
|
if (process.env.NODE_ENV !== "production") {
|
|
5400
5400
|
const g = _.__v_emitter;
|
|
5401
5401
|
g && g.emit("missing", {
|
|
5402
5402
|
locale: m,
|
|
5403
5403
|
key: d,
|
|
5404
|
-
type:
|
|
5405
|
-
groupId: `${
|
|
5404
|
+
type: j,
|
|
5405
|
+
groupId: `${j}:${d}`
|
|
5406
5406
|
});
|
|
5407
5407
|
}
|
|
5408
5408
|
if (L !== null) {
|
|
5409
|
-
const g = L(_, m, d,
|
|
5409
|
+
const g = L(_, m, d, j);
|
|
5410
5410
|
return Bt(g) ? g : d;
|
|
5411
5411
|
} else
|
|
5412
5412
|
return process.env.NODE_ENV !== "production" && Iv(R, d) && Q(Na(zn.NOT_FOUND_KEY, { key: d, locale: m })), d;
|
|
@@ -5424,9 +5424,9 @@ let nv = /* @__PURE__ */ Object.create(null);
|
|
|
5424
5424
|
function k_(_, d = {}) {
|
|
5425
5425
|
{
|
|
5426
5426
|
process.env.NODE_ENV !== "production" && P_(_, d);
|
|
5427
|
-
const R = (d.onCacheKey || L_)(_),
|
|
5428
|
-
if (
|
|
5429
|
-
return
|
|
5427
|
+
const R = (d.onCacheKey || L_)(_), j = nv[R];
|
|
5428
|
+
if (j)
|
|
5429
|
+
return j;
|
|
5430
5430
|
let L = !1;
|
|
5431
5431
|
const Q = d.onError || Dm;
|
|
5432
5432
|
d.onError = (u) => {
|
|
@@ -5453,7 +5453,7 @@ const M_ = {
|
|
|
5453
5453
|
[oi.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string"
|
|
5454
5454
|
}, rv = () => "", Ar = (_) => ln(_);
|
|
5455
5455
|
function iv(_, ...d) {
|
|
5456
|
-
const { fallbackFormat: m, postTranslation: R, unresolving:
|
|
5456
|
+
const { fallbackFormat: m, postTranslation: R, unresolving: j, messageCompiler: L, fallbackLocale: Q, messages: g } = _, [o, u] = Tp(...d), c = Fe(u.missingWarn) ? u.missingWarn : _.missingWarn, i = Fe(u.fallbackWarn) ? u.fallbackWarn : _.fallbackWarn, s = Fe(u.escapeParameter) ? u.escapeParameter : _.escapeParameter, r = !!u.resolvedMessage, l = Bt(u.default) || Fe(u.default) ? Fe(u.default) ? L ? o : () => o : u.default : m ? L ? o : () => o : "", f = m || l !== "", a = Bt(u.locale) ? u.locale : _.locale;
|
|
5457
5457
|
s && F_(u);
|
|
5458
5458
|
let [A, p, y] = r ? [
|
|
5459
5459
|
o,
|
|
@@ -5461,7 +5461,7 @@ function iv(_, ...d) {
|
|
|
5461
5461
|
g[a] || {}
|
|
5462
5462
|
] : Pv(_, o, a, Q, i, c), C = A, S = o;
|
|
5463
5463
|
if (!r && !(Bt(C) || Ar(C)) && f && (C = l, S = C), !r && (!(Bt(C) || Ar(C)) || !Bt(p)))
|
|
5464
|
-
return
|
|
5464
|
+
return j ? Fl : o;
|
|
5465
5465
|
if (process.env.NODE_ENV !== "production" && Bt(C) && _.messageCompiler == null)
|
|
5466
5466
|
return Sl(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${o}'.`), o;
|
|
5467
5467
|
let E = !1;
|
|
@@ -5488,12 +5488,12 @@ function F_(_) {
|
|
|
5488
5488
|
Bt(_.named[d]) && (_.named[d] = Gp(_.named[d]));
|
|
5489
5489
|
});
|
|
5490
5490
|
}
|
|
5491
|
-
function Pv(_, d, m, R,
|
|
5491
|
+
function Pv(_, d, m, R, j, L) {
|
|
5492
5492
|
const { messages: Q, onWarn: g, messageResolver: o, localeFallbacker: u } = _, c = u(_, R, m);
|
|
5493
5493
|
let i = {}, s, r = null, l = m, f = null;
|
|
5494
5494
|
const a = "translate";
|
|
5495
5495
|
for (let A = 0; A < c.length; A++) {
|
|
5496
|
-
if (s = f = c[A], process.env.NODE_ENV !== "production" && m !== s && Bl(
|
|
5496
|
+
if (s = f = c[A], process.env.NODE_ENV !== "production" && m !== s && Bl(j, d) && g(Na(zn.FALLBACK_TO_TRANSLATE, {
|
|
5497
5497
|
key: d,
|
|
5498
5498
|
target: s
|
|
5499
5499
|
})), process.env.NODE_ENV !== "production" && m !== s) {
|
|
@@ -5532,7 +5532,7 @@ function Pv(_, d, m, R, U, L) {
|
|
|
5532
5532
|
}
|
|
5533
5533
|
return [r, s, i];
|
|
5534
5534
|
}
|
|
5535
|
-
function Lv(_, d, m, R,
|
|
5535
|
+
function Lv(_, d, m, R, j, L) {
|
|
5536
5536
|
const { messageCompiler: Q, warnHtmlMessage: g } = _;
|
|
5537
5537
|
if (Ar(R)) {
|
|
5538
5538
|
const s = R;
|
|
@@ -5544,7 +5544,7 @@ function Lv(_, d, m, R, U, L) {
|
|
|
5544
5544
|
}
|
|
5545
5545
|
let o = null, u, c;
|
|
5546
5546
|
process.env.NODE_ENV !== "production" && di && (o = window.performance.now(), u = "intlify-message-compilation-start", c = "intlify-message-compilation-end", Qn && Qn(u));
|
|
5547
|
-
const i = Q(R, B_(_, m,
|
|
5547
|
+
const i = Q(R, B_(_, m, j, R, g, L));
|
|
5548
5548
|
if (process.env.NODE_ENV !== "production" && di) {
|
|
5549
5549
|
const s = window.performance.now(), r = _.__v_emitter;
|
|
5550
5550
|
r && o && r.emit("message-compilation", {
|
|
@@ -5557,8 +5557,8 @@ function Lv(_, d, m, R, U, L) {
|
|
|
5557
5557
|
return i.locale = m, i.key = d, i.source = R, i;
|
|
5558
5558
|
}
|
|
5559
5559
|
function R_(_, d, m) {
|
|
5560
|
-
let R = null,
|
|
5561
|
-
process.env.NODE_ENV !== "production" && di && (R = window.performance.now(),
|
|
5560
|
+
let R = null, j, L;
|
|
5561
|
+
process.env.NODE_ENV !== "production" && di && (R = window.performance.now(), j = "intlify-message-evaluation-start", L = "intlify-message-evaluation-end", Qn && Qn(j));
|
|
5562
5562
|
const Q = d(m);
|
|
5563
5563
|
if (process.env.NODE_ENV !== "production" && di) {
|
|
5564
5564
|
const g = window.performance.now(), o = _.__v_emitter;
|
|
@@ -5567,20 +5567,20 @@ function R_(_, d, m) {
|
|
|
5567
5567
|
value: Q,
|
|
5568
5568
|
time: g - R,
|
|
5569
5569
|
groupId: `translate:${d.key}`
|
|
5570
|
-
}),
|
|
5570
|
+
}), j && L && Qn && La && (Qn(L), La("intlify message evaluation", j, L));
|
|
5571
5571
|
}
|
|
5572
5572
|
return Q;
|
|
5573
5573
|
}
|
|
5574
5574
|
function Tp(..._) {
|
|
5575
|
-
const [d, m, R] = _,
|
|
5575
|
+
const [d, m, R] = _, j = {};
|
|
5576
5576
|
if (!Bt(d) && !_n(d) && !Ar(d))
|
|
5577
5577
|
throw Fa(oi.INVALID_ARGUMENT);
|
|
5578
5578
|
const L = _n(d) ? String(d) : (Ar(d), d);
|
|
5579
|
-
return _n(m) ?
|
|
5579
|
+
return _n(m) ? j.plural = m : Bt(m) ? j.default = m : re(m) && !kl(m) ? j.named = m : Qe(m) && (j.list = m), _n(R) ? j.plural = R : Bt(R) ? j.default = R : re(R) && mn(j, R), [L, j];
|
|
5580
5580
|
}
|
|
5581
|
-
function B_(_, d, m, R,
|
|
5581
|
+
function B_(_, d, m, R, j, L) {
|
|
5582
5582
|
return {
|
|
5583
|
-
warnHtmlMessage:
|
|
5583
|
+
warnHtmlMessage: j,
|
|
5584
5584
|
onError: (Q) => {
|
|
5585
5585
|
if (L && L(Q), process.env.NODE_ENV !== "production") {
|
|
5586
5586
|
const g = `Message compilation error: ${Q.message}`, o = Q.location && Em(R, Q.location.start.offset, Q.location.end.offset), u = _.__v_emitter;
|
|
@@ -5599,9 +5599,9 @@ ${o}` : g);
|
|
|
5599
5599
|
};
|
|
5600
5600
|
}
|
|
5601
5601
|
function N_(_, d, m, R) {
|
|
5602
|
-
const { modifiers:
|
|
5602
|
+
const { modifiers: j, pluralRules: L, messageResolver: Q, fallbackLocale: g, fallbackWarn: o, missingWarn: u, fallbackContext: c } = _, s = {
|
|
5603
5603
|
locale: d,
|
|
5604
|
-
modifiers:
|
|
5604
|
+
modifiers: j,
|
|
5605
5605
|
pluralRules: L,
|
|
5606
5606
|
messages: (r) => {
|
|
5607
5607
|
let l = Q(m, r);
|
|
@@ -5626,13 +5626,13 @@ const av = typeof Intl < "u", kv = {
|
|
|
5626
5626
|
numberFormat: av && typeof Intl.NumberFormat < "u"
|
|
5627
5627
|
};
|
|
5628
5628
|
function sv(_, ...d) {
|
|
5629
|
-
const { datetimeFormats: m, unresolving: R, fallbackLocale:
|
|
5629
|
+
const { datetimeFormats: m, unresolving: R, fallbackLocale: j, onWarn: L, localeFallbacker: Q } = _, { __datetimeFormatters: g } = _;
|
|
5630
5630
|
if (process.env.NODE_ENV !== "production" && !kv.dateTimeFormat)
|
|
5631
5631
|
return L(Na(zn.CANNOT_FORMAT_DATE)), El;
|
|
5632
5632
|
const [o, u, c, i] = xp(...d), s = Fe(c.missingWarn) ? c.missingWarn : _.missingWarn, r = Fe(c.fallbackWarn) ? c.fallbackWarn : _.fallbackWarn, l = !!c.part, f = Bt(c.locale) ? c.locale : _.locale, a = Q(
|
|
5633
5633
|
_,
|
|
5634
5634
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
5635
|
-
|
|
5635
|
+
j,
|
|
5636
5636
|
f
|
|
5637
5637
|
);
|
|
5638
5638
|
if (!Bt(o) || o === "")
|
|
@@ -5687,7 +5687,7 @@ const Mv = [
|
|
|
5687
5687
|
"fractionalSecondDigits"
|
|
5688
5688
|
];
|
|
5689
5689
|
function xp(..._) {
|
|
5690
|
-
const [d, m, R,
|
|
5690
|
+
const [d, m, R, j] = _, L = {};
|
|
5691
5691
|
let Q = {}, g;
|
|
5692
5692
|
if (Bt(d)) {
|
|
5693
5693
|
const o = d.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
@@ -5710,23 +5710,23 @@ function xp(..._) {
|
|
|
5710
5710
|
throw Fa(oi.INVALID_ARGUMENT);
|
|
5711
5711
|
return Bt(m) ? L.key = m : re(m) && Object.keys(m).forEach((o) => {
|
|
5712
5712
|
Mv.includes(o) ? Q[o] = m[o] : L[o] = m[o];
|
|
5713
|
-
}), Bt(R) ? L.locale = R : re(R) && (Q = R), re(
|
|
5713
|
+
}), Bt(R) ? L.locale = R : re(R) && (Q = R), re(j) && (Q = j), [L.key || "", g, L, Q];
|
|
5714
5714
|
}
|
|
5715
5715
|
function ov(_, d, m) {
|
|
5716
5716
|
const R = _;
|
|
5717
|
-
for (const
|
|
5718
|
-
const L = `${d}__${
|
|
5717
|
+
for (const j in m) {
|
|
5718
|
+
const L = `${d}__${j}`;
|
|
5719
5719
|
R.__datetimeFormatters.has(L) && R.__datetimeFormatters.delete(L);
|
|
5720
5720
|
}
|
|
5721
5721
|
}
|
|
5722
5722
|
function lv(_, ...d) {
|
|
5723
|
-
const { numberFormats: m, unresolving: R, fallbackLocale:
|
|
5723
|
+
const { numberFormats: m, unresolving: R, fallbackLocale: j, onWarn: L, localeFallbacker: Q } = _, { __numberFormatters: g } = _;
|
|
5724
5724
|
if (process.env.NODE_ENV !== "production" && !kv.numberFormat)
|
|
5725
5725
|
return L(Na(zn.CANNOT_FORMAT_NUMBER)), El;
|
|
5726
5726
|
const [o, u, c, i] = Ep(...d), s = Fe(c.missingWarn) ? c.missingWarn : _.missingWarn, r = Fe(c.fallbackWarn) ? c.fallbackWarn : _.fallbackWarn, l = !!c.part, f = Bt(c.locale) ? c.locale : _.locale, a = Q(
|
|
5727
5727
|
_,
|
|
5728
5728
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
5729
|
-
|
|
5729
|
+
j,
|
|
5730
5730
|
f
|
|
5731
5731
|
);
|
|
5732
5732
|
if (!Bt(o) || o === "")
|
|
@@ -5781,19 +5781,19 @@ const Fv = [
|
|
|
5781
5781
|
"trailingZeroDisplay"
|
|
5782
5782
|
];
|
|
5783
5783
|
function Ep(..._) {
|
|
5784
|
-
const [d, m, R,
|
|
5784
|
+
const [d, m, R, j] = _, L = {};
|
|
5785
5785
|
let Q = {};
|
|
5786
5786
|
if (!_n(d))
|
|
5787
5787
|
throw Fa(oi.INVALID_ARGUMENT);
|
|
5788
5788
|
const g = d;
|
|
5789
5789
|
return Bt(m) ? L.key = m : re(m) && Object.keys(m).forEach((o) => {
|
|
5790
5790
|
Fv.includes(o) ? Q[o] = m[o] : L[o] = m[o];
|
|
5791
|
-
}), Bt(R) ? L.locale = R : re(R) && (Q = R), re(
|
|
5791
|
+
}), Bt(R) ? L.locale = R : re(R) && (Q = R), re(j) && (Q = j), [L.key || "", g, L, Q];
|
|
5792
5792
|
}
|
|
5793
5793
|
function uv(_, d, m) {
|
|
5794
5794
|
const R = _;
|
|
5795
|
-
for (const
|
|
5796
|
-
const L = `${d}__${
|
|
5795
|
+
for (const j in m) {
|
|
5796
|
+
const L = `${d}__${j}`;
|
|
5797
5797
|
R.__numberFormatters.has(L) && R.__numberFormatters.delete(L);
|
|
5798
5798
|
}
|
|
5799
5799
|
}
|
|
@@ -5890,22 +5890,22 @@ function kp(_) {
|
|
|
5890
5890
|
xe(_[d]) && kp(_[d]);
|
|
5891
5891
|
else {
|
|
5892
5892
|
const m = d.split("."), R = m.length - 1;
|
|
5893
|
-
let
|
|
5893
|
+
let j = _;
|
|
5894
5894
|
for (let L = 0; L < R; L++)
|
|
5895
|
-
m[L] in
|
|
5896
|
-
|
|
5895
|
+
m[L] in j || (j[m[L]] = {}), j = j[m[L]];
|
|
5896
|
+
j[m[R]] = _[d], delete _[d], xe(j[m[R]]) && kp(j[m[R]]);
|
|
5897
5897
|
}
|
|
5898
5898
|
return _;
|
|
5899
5899
|
}
|
|
5900
5900
|
function Up(_, d) {
|
|
5901
|
-
const { messages: m, __i18n: R, messageResolver:
|
|
5901
|
+
const { messages: m, __i18n: R, messageResolver: j, flatJson: L } = d, Q = re(m) ? m : Qe(R) ? {} : { [_]: {} };
|
|
5902
5902
|
if (Qe(R) && R.forEach((g) => {
|
|
5903
5903
|
if ("locale" in g && "resource" in g) {
|
|
5904
5904
|
const { locale: o, resource: u } = g;
|
|
5905
5905
|
o ? (Q[o] = Q[o] || {}, bl(u, Q[o])) : bl(u, Q);
|
|
5906
5906
|
} else
|
|
5907
5907
|
Bt(g) && bl(JSON.parse(g), Q);
|
|
5908
|
-
}),
|
|
5908
|
+
}), j == null && L)
|
|
5909
5909
|
for (const g in Q)
|
|
5910
5910
|
Rp(Q, g) && kp(Q[g]);
|
|
5911
5911
|
return Q;
|
|
@@ -5926,8 +5926,8 @@ function X_(_, d, m) {
|
|
|
5926
5926
|
messages: R,
|
|
5927
5927
|
__i18n: m.__i18nGlobal
|
|
5928
5928
|
}));
|
|
5929
|
-
const
|
|
5930
|
-
|
|
5929
|
+
const j = Object.keys(R);
|
|
5930
|
+
j.length && j.forEach((L) => {
|
|
5931
5931
|
_.mergeLocaleMessage(L, R[L]);
|
|
5932
5932
|
});
|
|
5933
5933
|
{
|
|
@@ -5951,7 +5951,7 @@ function cv(_) {
|
|
|
5951
5951
|
const fv = "__INTLIFY_META__";
|
|
5952
5952
|
let hv = 0;
|
|
5953
5953
|
function Av(_) {
|
|
5954
|
-
return (d, m, R,
|
|
5954
|
+
return (d, m, R, j) => _(m, R, Pl() || void 0, j);
|
|
5955
5955
|
}
|
|
5956
5956
|
const G_ = () => {
|
|
5957
5957
|
const _ = Pl();
|
|
@@ -5960,13 +5960,13 @@ const G_ = () => {
|
|
|
5960
5960
|
};
|
|
5961
5961
|
function V_(_ = {}, d) {
|
|
5962
5962
|
const { __root: m } = _, R = m === void 0;
|
|
5963
|
-
let
|
|
5963
|
+
let j = Fe(_.inheritLocale) ? _.inheritLocale : !0;
|
|
5964
5964
|
const L = fe(
|
|
5965
5965
|
// prettier-ignore
|
|
5966
|
-
m &&
|
|
5966
|
+
m && j ? m.locale.value : Bt(_.locale) ? _.locale : Rl
|
|
5967
5967
|
), Q = fe(
|
|
5968
5968
|
// prettier-ignore
|
|
5969
|
-
m &&
|
|
5969
|
+
m && j ? m.fallbackLocale.value : Bt(_.fallbackLocale) || Qe(_.fallbackLocale) || re(_.fallbackLocale) || _.fallbackLocale === !1 ? _.fallbackLocale : L.value
|
|
5970
5970
|
), g = fe(Up(L.value, _)), o = fe(re(_.datetimeFormats) ? _.datetimeFormats : { [L.value]: {} }), u = fe(re(_.numberFormats) ? _.numberFormats : { [L.value]: {} });
|
|
5971
5971
|
let c = m ? m.missingWarn : Fe(_.missingWarn) || Ra(_.missingWarn) ? _.missingWarn : !0, i = m ? m.fallbackWarn : Fe(_.fallbackWarn) || Ra(_.fallbackWarn) ? _.fallbackWarn : !0, s = m ? m.fallbackRoot : Fe(_.fallbackRoot) ? _.fallbackRoot : !0, r = !!_.fallbackFormat, l = ln(_.missing) ? _.missing : null, f = ln(_.missing) ? Av(_.missing) : null, a = ln(_.postTranslation) ? _.postTranslation : null, A = m ? m.warnHtmlMessage : Fe(_.warnHtmlMessage) ? _.warnHtmlMessage : !0, p = !!_.escapeParameter;
|
|
5972
5972
|
const y = m ? m.modifiers : re(_.modifiers) ? _.modifiers : {};
|
|
@@ -6178,19 +6178,19 @@ function V_(_ = {}, d) {
|
|
|
6178
6178
|
u.value[et] = mn(u.value[et] || {}, ht), S.numberFormats = u.value, uv(S, et, ht);
|
|
6179
6179
|
}
|
|
6180
6180
|
hv++, m && di && (Ai(m.locale, (et) => {
|
|
6181
|
-
|
|
6181
|
+
j && (L.value = et, S.locale = et, pl(S, L.value, Q.value));
|
|
6182
6182
|
}), Ai(m.fallbackLocale, (et) => {
|
|
6183
|
-
|
|
6183
|
+
j && (Q.value = et, S.fallbackLocale = et, pl(S, L.value, Q.value));
|
|
6184
6184
|
}));
|
|
6185
6185
|
const st = {
|
|
6186
6186
|
id: hv,
|
|
6187
6187
|
locale: B,
|
|
6188
6188
|
fallbackLocale: K,
|
|
6189
6189
|
get inheritLocale() {
|
|
6190
|
-
return
|
|
6190
|
+
return j;
|
|
6191
6191
|
},
|
|
6192
6192
|
set inheritLocale(et) {
|
|
6193
|
-
|
|
6193
|
+
j = et, et && m && (L.value = m.locale.value, Q.value = m.fallbackLocale.value, pl(S, L.value, Q.value));
|
|
6194
6194
|
},
|
|
6195
6195
|
get availableLocales() {
|
|
6196
6196
|
return Object.keys(g.value).sort();
|
|
@@ -6276,12 +6276,12 @@ const jp = {
|
|
|
6276
6276
|
}
|
|
6277
6277
|
};
|
|
6278
6278
|
function z_({ slots: _ }, d) {
|
|
6279
|
-
return d.length === 1 && d[0] === "default" ? (_.default ? _.default() : []).reduce((R,
|
|
6279
|
+
return d.length === 1 && d[0] === "default" ? (_.default ? _.default() : []).reduce((R, j) => R = [
|
|
6280
6280
|
...R,
|
|
6281
|
-
...Qe(
|
|
6281
|
+
...Qe(j.children) ? j.children : [j]
|
|
6282
6282
|
], []) : d.reduce((m, R) => {
|
|
6283
|
-
const
|
|
6284
|
-
return
|
|
6283
|
+
const j = _[R];
|
|
6284
|
+
return j && (m[R] = j()), m;
|
|
6285
6285
|
}, {});
|
|
6286
6286
|
}
|
|
6287
6287
|
function jv(_) {
|
|
@@ -6302,7 +6302,7 @@ function Q_(_) {
|
|
|
6302
6302
|
return Qe(_) && !Bt(_[0]);
|
|
6303
6303
|
}
|
|
6304
6304
|
function Hv(_, d, m, R) {
|
|
6305
|
-
const { slots:
|
|
6305
|
+
const { slots: j, attrs: L } = d;
|
|
6306
6306
|
return () => {
|
|
6307
6307
|
const Q = { part: !0 };
|
|
6308
6308
|
let g = {};
|
|
@@ -6310,7 +6310,7 @@ function Hv(_, d, m, R) {
|
|
|
6310
6310
|
const o = R(_.value, Q, g);
|
|
6311
6311
|
let u = [Q.key];
|
|
6312
6312
|
Qe(o) ? u = o.map((s, r) => {
|
|
6313
|
-
const l =
|
|
6313
|
+
const l = j[s.type], f = l ? l({ [s.type]: s.value, index: r, parts: o }) : [s.value];
|
|
6314
6314
|
return Q_(f) && (f[0].key = `${s.type}-${r}`), f;
|
|
6315
6315
|
}) : Bt(o) && (u = [o]);
|
|
6316
6316
|
const c = mn({}, L), i = Bt(_.tag) || xe(_.tag) ? _.tag : jv();
|
|
@@ -6344,14 +6344,14 @@ function Nl(_ = {}) {
|
|
|
6344
6344
|
throw li(Re.MUST_BE_CALL_SETUP_TOP);
|
|
6345
6345
|
if (!d.isCE && d.appContext.app != null && !d.appContext.app.__VUE_I18N_SYMBOL__)
|
|
6346
6346
|
throw li(Re.NOT_INSLALLED);
|
|
6347
|
-
const m = $_(d), R = Z_(m),
|
|
6347
|
+
const m = $_(d), R = Z_(m), j = Uv(d), L = q_(_, j);
|
|
6348
6348
|
if (__VUE_I18N_LEGACY_API__ && m.mode === "legacy" && !_.__useComponent) {
|
|
6349
6349
|
if (!m.allowComposition)
|
|
6350
6350
|
throw li(Re.NOT_AVAILABLE_IN_LEGACY_MODE);
|
|
6351
6351
|
return e0(d, L, R, _);
|
|
6352
6352
|
}
|
|
6353
6353
|
if (L === "global")
|
|
6354
|
-
return X_(R, _,
|
|
6354
|
+
return X_(R, _, j), R;
|
|
6355
6355
|
if (L === "parent") {
|
|
6356
6356
|
let o = J_(m, d, _.__useComponent);
|
|
6357
6357
|
return o == null && (process.env.NODE_ENV !== "production" && Sl(Bv(si.NOT_FOUND_PARENT_SCOPE)), o = R), o;
|
|
@@ -6360,7 +6360,7 @@ function Nl(_ = {}) {
|
|
|
6360
6360
|
let g = Q.__getInstance(d);
|
|
6361
6361
|
if (g == null) {
|
|
6362
6362
|
const o = mn({}, _);
|
|
6363
|
-
"__i18n" in
|
|
6363
|
+
"__i18n" in j && (o.__i18n = j.__i18n), R && (o.__root = R), g = V_(o), t0(Q, d, g), Q.__setInstance(d, g);
|
|
6364
6364
|
}
|
|
6365
6365
|
return g;
|
|
6366
6366
|
}
|
|
@@ -6380,7 +6380,7 @@ function Z_(_) {
|
|
|
6380
6380
|
}
|
|
6381
6381
|
function J_(_, d, m = !1) {
|
|
6382
6382
|
let R = null;
|
|
6383
|
-
const
|
|
6383
|
+
const j = d.root;
|
|
6384
6384
|
let L = d.parent;
|
|
6385
6385
|
for (; L != null; ) {
|
|
6386
6386
|
const Q = _;
|
|
@@ -6390,7 +6390,7 @@ function J_(_, d, m = !1) {
|
|
|
6390
6390
|
const g = Q.__getInstance(L);
|
|
6391
6391
|
g != null && (R = g.__composer, m && R && !R[Wv] && (R = null));
|
|
6392
6392
|
}
|
|
6393
|
-
if (R != null ||
|
|
6393
|
+
if (R != null || j === L)
|
|
6394
6394
|
break;
|
|
6395
6395
|
L = L.parent;
|
|
6396
6396
|
}
|
|
@@ -6401,29 +6401,29 @@ function t0(_, d, m) {
|
|
|
6401
6401
|
Dl(() => {
|
|
6402
6402
|
if (process.env.NODE_ENV !== "production" && d.vnode.el) {
|
|
6403
6403
|
d.vnode.el.__VUE_I18N__ = m, R = Om();
|
|
6404
|
-
const
|
|
6405
|
-
|
|
6404
|
+
const j = m;
|
|
6405
|
+
j[Pp] && j[Pp](R), R.on("*", dv);
|
|
6406
6406
|
}
|
|
6407
6407
|
}, d), Gv(() => {
|
|
6408
6408
|
if (process.env.NODE_ENV !== "production" && d.vnode.el && d.vnode.el.__VUE_I18N__) {
|
|
6409
6409
|
R && R.off("*", dv);
|
|
6410
|
-
const
|
|
6411
|
-
|
|
6410
|
+
const j = m;
|
|
6411
|
+
j[Lp] && j[Lp](), delete d.vnode.el.__VUE_I18N__;
|
|
6412
6412
|
}
|
|
6413
6413
|
_.__deleteInstance(d);
|
|
6414
6414
|
}, d);
|
|
6415
6415
|
}
|
|
6416
6416
|
function e0(_, d, m, R = {}) {
|
|
6417
|
-
const
|
|
6418
|
-
if (
|
|
6417
|
+
const j = d === "local", L = Vv(null);
|
|
6418
|
+
if (j && _.proxy && !(_.proxy.$options.i18n || _.proxy.$options.__i18n))
|
|
6419
6419
|
throw li(Re.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);
|
|
6420
6420
|
const Q = Fe(R.inheritLocale) ? R.inheritLocale : !0, g = fe(
|
|
6421
6421
|
// prettier-ignore
|
|
6422
|
-
|
|
6422
|
+
j && Q ? m.locale.value : Bt(R.locale) ? R.locale : Rl
|
|
6423
6423
|
), o = fe(
|
|
6424
6424
|
// prettier-ignore
|
|
6425
|
-
|
|
6426
|
-
), u = fe(Up(g.value, R)), c = fe(re(R.datetimeFormats) ? R.datetimeFormats : { [g.value]: {} }), i = fe(re(R.numberFormats) ? R.numberFormats : { [g.value]: {} }), s =
|
|
6425
|
+
j && Q ? m.fallbackLocale.value : Bt(R.fallbackLocale) || Qe(R.fallbackLocale) || re(R.fallbackLocale) || R.fallbackLocale === !1 ? R.fallbackLocale : g.value
|
|
6426
|
+
), u = fe(Up(g.value, R)), c = fe(re(R.datetimeFormats) ? R.datetimeFormats : { [g.value]: {} }), i = fe(re(R.numberFormats) ? R.numberFormats : { [g.value]: {} }), s = j ? m.missingWarn : Fe(R.missingWarn) || Ra(R.missingWarn) ? R.missingWarn : !0, r = j ? m.fallbackWarn : Fe(R.fallbackWarn) || Ra(R.fallbackWarn) ? R.fallbackWarn : !0, l = j ? m.fallbackRoot : Fe(R.fallbackRoot) ? R.fallbackRoot : !0, f = !!R.fallbackFormat, a = ln(R.missing) ? R.missing : null, A = ln(R.postTranslation) ? R.postTranslation : null, p = j ? m.warnHtmlMessage : Fe(R.warnHtmlMessage) ? R.warnHtmlMessage : !0, y = !!R.escapeParameter, C = j ? m.modifiers : re(R.modifiers) ? R.modifiers : {}, S = R.pluralRules || j && m.pluralRules;
|
|
6427
6427
|
function E() {
|
|
6428
6428
|
return [
|
|
6429
6429
|
g.value,
|
|
@@ -6480,7 +6480,7 @@ function e0(_, d, m, R = {}) {
|
|
|
6480
6480
|
function lt(x) {
|
|
6481
6481
|
return L.value ? L.value.getLocaleMessage(x) : {};
|
|
6482
6482
|
}
|
|
6483
|
-
function
|
|
6483
|
+
function U(x, W) {
|
|
6484
6484
|
L.value && (L.value.setLocaleMessage(x, W), u.value[x] = W);
|
|
6485
6485
|
}
|
|
6486
6486
|
function F(x, W) {
|
|
@@ -6578,7 +6578,7 @@ function e0(_, d, m, R = {}) {
|
|
|
6578
6578
|
tm: Y,
|
|
6579
6579
|
te: G,
|
|
6580
6580
|
getLocaleMessage: lt,
|
|
6581
|
-
setLocaleMessage:
|
|
6581
|
+
setLocaleMessage: U,
|
|
6582
6582
|
mergeLocaleMessage: F,
|
|
6583
6583
|
getDateTimeFormat: q,
|
|
6584
6584
|
setDateTimeFormat: nt,
|
|
@@ -6600,7 +6600,7 @@ function e0(_, d, m, R = {}) {
|
|
|
6600
6600
|
if (_.proxy == null || _.proxy.$i18n == null)
|
|
6601
6601
|
throw li(Re.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
|
|
6602
6602
|
const x = L.value = _.proxy.$i18n.__composer;
|
|
6603
|
-
d === "global" ? (g.value = x.locale.value, o.value = x.fallbackLocale.value, u.value = x.messages.value, c.value = x.datetimeFormats.value, i.value = x.numberFormats.value) :
|
|
6603
|
+
d === "global" ? (g.value = x.locale.value, o.value = x.fallbackLocale.value, u.value = x.messages.value, c.value = x.datetimeFormats.value, i.value = x.numberFormats.value) : j && k(x);
|
|
6604
6604
|
}), bt;
|
|
6605
6605
|
}
|
|
6606
6606
|
w_(k_);
|
|
@@ -6612,33 +6612,20 @@ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
|
6612
6612
|
_.__INTLIFY__ = !0, A_(_.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
6613
6613
|
}
|
|
6614
6614
|
process.env.NODE_ENV;
|
|
6615
|
-
async function n0(_) {
|
|
6616
|
-
let d = await fetch(_, { mode: "no-cors" }).then((m) => m.blob());
|
|
6617
|
-
return await new Promise((m) => {
|
|
6618
|
-
let R = new FileReader();
|
|
6619
|
-
R.onload = () => m(R.result), R.readAsDataURL(d);
|
|
6620
|
-
});
|
|
6621
|
-
}
|
|
6622
6615
|
async function gv(_) {
|
|
6623
6616
|
return await new Promise((d) => {
|
|
6624
6617
|
let m = new FileReader();
|
|
6625
6618
|
m.onload = () => d(m.result), m.readAsDataURL(_);
|
|
6626
6619
|
});
|
|
6627
6620
|
}
|
|
6628
|
-
function
|
|
6621
|
+
function n0(_) {
|
|
6629
6622
|
return new Promise((d, m) => {
|
|
6630
6623
|
const R = new Image();
|
|
6631
6624
|
R.onload = () => d(R), R.onerror = m, R.src = _;
|
|
6632
6625
|
});
|
|
6633
6626
|
}
|
|
6634
|
-
function
|
|
6635
|
-
|
|
6636
|
-
for (let U = 0; U < d.length; U++)
|
|
6637
|
-
R[U] = d.charCodeAt(U);
|
|
6638
|
-
return new Blob([m], { type: "image/png" });
|
|
6639
|
-
}
|
|
6640
|
-
function a0(_, d = 0, m = 0) {
|
|
6641
|
-
return new Promise((R, U) => {
|
|
6627
|
+
function r0(_, d = 0, m = 0) {
|
|
6628
|
+
return new Promise((R, j) => {
|
|
6642
6629
|
const L = new Image();
|
|
6643
6630
|
L.crossOrigin = "anonymous", L.naturalWidth, L.naturalHeight, L.onload = () => {
|
|
6644
6631
|
const Q = document.createElement("canvas"), g = Q.getContext("2d");
|
|
@@ -6650,23 +6637,23 @@ function a0(_, d = 0, m = 0) {
|
|
|
6650
6637
|
}
|
|
6651
6638
|
function pv(_, d = 1) {
|
|
6652
6639
|
return new Promise((m, R) => {
|
|
6653
|
-
const
|
|
6654
|
-
|
|
6655
|
-
const L =
|
|
6640
|
+
const j = new Image();
|
|
6641
|
+
j.crossOrigin = "anonymous", j.onload = () => {
|
|
6642
|
+
const L = j.naturalWidth, Q = j.naturalHeight, g = L / Q;
|
|
6656
6643
|
let o = L, u = Q;
|
|
6657
6644
|
g > d ? o = Q * d : g < d && (u = L / d);
|
|
6658
6645
|
const c = document.createElement("canvas");
|
|
6659
|
-
c.width = o, c.height = u, c.getContext("2d").drawImage(
|
|
6660
|
-
},
|
|
6646
|
+
c.width = o, c.height = u, c.getContext("2d").drawImage(j, c.width / 2 - j.width / 2, c.height / 2 - j.height / 2), m(c.toDataURL());
|
|
6647
|
+
}, j.src = _;
|
|
6661
6648
|
});
|
|
6662
6649
|
}
|
|
6663
|
-
const
|
|
6650
|
+
const i0 = (_) => {
|
|
6664
6651
|
var d = new FileReader();
|
|
6665
6652
|
return console.log("getOrientation infile", _), new Promise((m) => {
|
|
6666
6653
|
d.onload = (R) => {
|
|
6667
6654
|
if (!R.target)
|
|
6668
6655
|
return m(0);
|
|
6669
|
-
const
|
|
6656
|
+
const j = R.target, L = new DataView(j.result);
|
|
6670
6657
|
if (L.getUint16(0, !1) != 65496)
|
|
6671
6658
|
return m(-2);
|
|
6672
6659
|
const Q = L.byteLength;
|
|
@@ -6695,7 +6682,7 @@ const s0 = (_) => {
|
|
|
6695
6682
|
}, d.readAsArrayBuffer(_);
|
|
6696
6683
|
});
|
|
6697
6684
|
};
|
|
6698
|
-
function
|
|
6685
|
+
function a0(_) {
|
|
6699
6686
|
let d = 0;
|
|
6700
6687
|
switch (_) {
|
|
6701
6688
|
case 3:
|
|
@@ -6712,45 +6699,49 @@ function o0(_) {
|
|
|
6712
6699
|
}
|
|
6713
6700
|
return d;
|
|
6714
6701
|
}
|
|
6715
|
-
async function
|
|
6716
|
-
const d = await
|
|
6717
|
-
return await
|
|
6702
|
+
async function s0(_) {
|
|
6703
|
+
const d = await i0(_);
|
|
6704
|
+
return await a0(d);
|
|
6718
6705
|
}
|
|
6719
|
-
async function
|
|
6720
|
-
const m = await
|
|
6721
|
-
return R.width = m.width, R.height = m.height,
|
|
6706
|
+
async function o0(_, d) {
|
|
6707
|
+
const m = await n0(_), R = document.createElement("canvas"), j = R.getContext("2d");
|
|
6708
|
+
return R.width = m.width, R.height = m.height, j.setTransform(1, 0, 0, 1, R.width / 2, R.height / 2), j.rotate(d), j.drawImage(m, -m.width / 2, -m.height / 2), R.toDataURL();
|
|
6722
6709
|
}
|
|
6723
|
-
function
|
|
6710
|
+
function l0(_, d) {
|
|
6724
6711
|
return new Promise((m) => {
|
|
6725
6712
|
_.loadFromJSON(d, m);
|
|
6726
6713
|
});
|
|
6727
6714
|
}
|
|
6728
|
-
const
|
|
6715
|
+
const u0 = {
|
|
6729
6716
|
removeBg: async (_, d, m = "/media") => {
|
|
6730
|
-
const R =
|
|
6731
|
-
|
|
6732
|
-
|
|
6717
|
+
const R = JSON.stringify({
|
|
6718
|
+
dataUrl: d.dataUrl,
|
|
6719
|
+
removeBackground: !0
|
|
6720
|
+
});
|
|
6721
|
+
return await (await fetch(_, {
|
|
6722
|
+
headers: {
|
|
6723
|
+
"Content-Type": "application/json"
|
|
6724
|
+
},
|
|
6733
6725
|
method: "POST",
|
|
6734
6726
|
body: R
|
|
6735
|
-
}).then((L) => L.json()).catch((L) => [L]);
|
|
6736
|
-
return await n0(`${m}/${U.path}`);
|
|
6727
|
+
}).then((L) => L.json()).catch((L) => [L])).dataUrl;
|
|
6737
6728
|
}
|
|
6738
|
-
},
|
|
6729
|
+
}, c0 = ["src"], f0 = { class: "flex-grow-1 text-center" }, h0 = ["innerHTML"], A0 = { class: "ml-2" }, d0 = {
|
|
6739
6730
|
key: 0,
|
|
6740
6731
|
class: "d-flex flex-column align-center justify-center"
|
|
6741
|
-
},
|
|
6732
|
+
}, g0 = { key: 0 }, p0 = { class: "photo-app__drop-overlay" }, v0 = { class: "photo-app__errors mt-2" }, m0 = { class: "error--text" }, _0 = {
|
|
6742
6733
|
key: 1,
|
|
6743
6734
|
class: "photo-app__file-list"
|
|
6744
|
-
},
|
|
6735
|
+
}, y0 = { class: "row" }, C0 = { key: 0 }, b0 = { key: 1 }, w0 = { key: 2 }, S0 = { key: 3 }, T0 = { class: "photo-app__form-input text-center mt-2" }, x0 = { class: "photo-app__controls" }, E0 = { class: "row" }, O0 = { class: "col col-12" }, I0 = ["innerHTML"], D0 = {
|
|
6745
6736
|
key: 0,
|
|
6746
6737
|
class: "d-flex justify-center col-8 mx-auto"
|
|
6747
|
-
},
|
|
6738
|
+
}, P0 = { class: "col" }, L0 = {
|
|
6748
6739
|
key: 0,
|
|
6749
6740
|
class: "col"
|
|
6750
|
-
},
|
|
6741
|
+
}, k0 = {
|
|
6751
6742
|
key: 1,
|
|
6752
6743
|
class: "col"
|
|
6753
|
-
},
|
|
6744
|
+
}, M0 = ["onClick"], F0 = ["required", "value"], vv = {
|
|
6754
6745
|
title: "Take your best shot!",
|
|
6755
6746
|
launchCamera: "Launch Camera",
|
|
6756
6747
|
localFileTitle: "Already have an awesome selfie?",
|
|
@@ -6767,7 +6758,7 @@ const f0 = {
|
|
|
6767
6758
|
shoot: "Capture",
|
|
6768
6759
|
accept: "Accept",
|
|
6769
6760
|
or: "or"
|
|
6770
|
-
},
|
|
6761
|
+
}, ey = /* @__PURE__ */ Il({
|
|
6771
6762
|
__name: "photo-app",
|
|
6772
6763
|
props: {
|
|
6773
6764
|
modelValue: {
|
|
@@ -6894,13 +6885,17 @@ const f0 = {
|
|
|
6894
6885
|
type: String,
|
|
6895
6886
|
default: "4x3"
|
|
6896
6887
|
},
|
|
6888
|
+
enableRemoveBackground: {
|
|
6889
|
+
type: Boolean,
|
|
6890
|
+
default: !1
|
|
6891
|
+
},
|
|
6897
6892
|
removeBackground: null
|
|
6898
6893
|
},
|
|
6899
6894
|
emits: ["update:modelValue"],
|
|
6900
6895
|
setup(_, { emit: d }) {
|
|
6901
6896
|
const m = _;
|
|
6902
6897
|
Nl();
|
|
6903
|
-
const R = Pl(),
|
|
6898
|
+
const R = Pl(), j = R && R.appContext.config.globalProperties.$config, L = $e(() => j.baseMediaPath), Q = $e(() => i.value && i.value.length && i.value.filter((B) => B.response && Object.keys(B.response).length).length === i.value.length), g = $e(() => {
|
|
6904
6899
|
const B = i.value.find((K) => K.response && K.response.path);
|
|
6905
6900
|
return B && B.response.path;
|
|
6906
6901
|
}), o = $e(() => g.value ? `${L.value}${g.value}` : ""), u = $e(() => ({
|
|
@@ -6912,7 +6907,7 @@ const f0 = {
|
|
|
6912
6907
|
const c = $e(() => m.enableReview ? u.value.reviewTitle : u.value.captureTitle), i = fe([]), s = fe(), r = fe(), l = fe(!1), f = fe(), a = fe(), A = fe(!1), p = fe("");
|
|
6913
6908
|
Ai(f, async (B, K) => {
|
|
6914
6909
|
if (B) {
|
|
6915
|
-
const rt = B.blob && B.blob.type.split("/")[1], At = new File([B.blob], `${B.id}.${rt}`), at = await
|
|
6910
|
+
const rt = B.blob && B.blob.type.split("/")[1], At = new File([B.blob], `${B.id}.${rt}`), at = await s0(At), tt = await gv(At), pt = await o0(tt, at), Tt = await (await fetch(pt)).blob();
|
|
6916
6911
|
i.value.push(new File([Tt], `${B.id}.${rt}`, {
|
|
6917
6912
|
type: Tt.type
|
|
6918
6913
|
}));
|
|
@@ -6923,7 +6918,7 @@ const f0 = {
|
|
|
6923
6918
|
else {
|
|
6924
6919
|
const rt = await Promise.all(B.map(async (At) => {
|
|
6925
6920
|
let at = await gv(At);
|
|
6926
|
-
m.downScaleImages && Number(m.maxFileSize) && At.size > Number(m.maxFileSize) && (at = await
|
|
6921
|
+
m.downScaleImages && Number(m.maxFileSize) && At.size > Number(m.maxFileSize) && (at = await r0(at, 800, 800));
|
|
6927
6922
|
const tt = m.ratio.split("x");
|
|
6928
6923
|
return await pv(at, Number(tt[0]) / Number(tt[1]));
|
|
6929
6924
|
}));
|
|
@@ -6941,8 +6936,8 @@ const f0 = {
|
|
|
6941
6936
|
y(), l.value = !l.value;
|
|
6942
6937
|
}
|
|
6943
6938
|
const S = async () => {
|
|
6944
|
-
m.
|
|
6945
|
-
}, E = async () => `${await
|
|
6939
|
+
m.enableRemoveBackground && (A.value = !0, a.value = await E(), A.value = !1), d("update:modelValue", a.value);
|
|
6940
|
+
}, E = async () => `${await u0.removeBg(
|
|
6946
6941
|
`${m.removeBackground.endpoint}${m.removeBackground.search ? `?${m.removeBackground.search}` : ""}`,
|
|
6947
6942
|
{ dataUrl: a.value, resolution: m.fixedResolution },
|
|
6948
6943
|
m.removeBackground.basePath
|
|
@@ -6996,17 +6991,17 @@ const f0 = {
|
|
|
6996
6991
|
key: 0,
|
|
6997
6992
|
class: "img--cover",
|
|
6998
6993
|
src: Ke(o) || a.value
|
|
6999
|
-
}, null, 8,
|
|
6994
|
+
}, null, 8, c0)) : on("", !0)
|
|
7000
6995
|
], 4)) : l.value ? on("", !0) : (le(), _e("div", {
|
|
7001
6996
|
key: 2,
|
|
7002
6997
|
class: "photo-app__drop-target",
|
|
7003
6998
|
style: ci({ borderColor: _.color })
|
|
7004
6999
|
}, [
|
|
7005
|
-
Jt("div",
|
|
7000
|
+
Jt("div", f0, [
|
|
7006
7001
|
Jt("p", {
|
|
7007
7002
|
class: "headline h2 font-weight-bold",
|
|
7008
7003
|
innerHTML: Ke(u).title || B.$t("fileInput.coverTitle")
|
|
7009
|
-
}, null, 8,
|
|
7004
|
+
}, null, 8, h0),
|
|
7010
7005
|
_.enableCamera ? (le(), ka(At, {
|
|
7011
7006
|
key: 0,
|
|
7012
7007
|
type: "button",
|
|
@@ -7017,12 +7012,12 @@ const f0 = {
|
|
|
7017
7012
|
}, {
|
|
7018
7013
|
default: Ia(() => [
|
|
7019
7014
|
Vn(rt, { symbol: "camera" }),
|
|
7020
|
-
Jt("span",
|
|
7015
|
+
Jt("span", A0, He(Ke(u).launchCamera || B.$t("fileInput.coverLaunchCta")), 1)
|
|
7021
7016
|
]),
|
|
7022
7017
|
_: 1
|
|
7023
7018
|
}, 8, ["onClick", "style"])) : on("", !0)
|
|
7024
7019
|
]),
|
|
7025
|
-
_.enableLocalFileUpload ? (le(), _e("div",
|
|
7020
|
+
_.enableLocalFileUpload ? (le(), _e("div", d0, [
|
|
7026
7021
|
Jt("p", {
|
|
7027
7022
|
class: "subtitle fw-bold ma-0",
|
|
7028
7023
|
style: ci({ color: _.color })
|
|
@@ -7031,7 +7026,7 @@ const f0 = {
|
|
|
7031
7026
|
class: "text-body-1",
|
|
7032
7027
|
style: ci({ color: _.color })
|
|
7033
7028
|
}, [
|
|
7034
|
-
_.enableDragDrop ? (le(), _e("span",
|
|
7029
|
+
_.enableDragDrop ? (le(), _e("span", g0, He(Ke(u).dropTarget || B.$t("fileInput.coverDropTarget")) + " " + He(Ke(u).or || B.$t("common.or")) + " " + He(), 1)) : on("", !0),
|
|
7035
7030
|
Jt("label", {
|
|
7036
7031
|
for: "fileUpload",
|
|
7037
7032
|
role: "button",
|
|
@@ -7042,18 +7037,18 @@ const f0 = {
|
|
|
7042
7037
|
])) : on("", !0)
|
|
7043
7038
|
], 4))
|
|
7044
7039
|
], 6)) : on("", !0),
|
|
7045
|
-
ml(Jt("div",
|
|
7040
|
+
ml(Jt("div", p0, [
|
|
7046
7041
|
Jt("h3", null, He(Ke(u).dropTarget || B.$t("fileInput.dropTargetLabel")), 1)
|
|
7047
7042
|
], 512), [
|
|
7048
7043
|
[_l, _.enableLocalFileUpload && _.enableDragDrop && B.$refs.upload && s.value.dropActive]
|
|
7049
7044
|
]),
|
|
7050
|
-
ml(Jt("div",
|
|
7051
|
-
Jt("p",
|
|
7045
|
+
ml(Jt("div", v0, [
|
|
7046
|
+
Jt("p", m0, He(p.value), 1)
|
|
7052
7047
|
], 512), [
|
|
7053
7048
|
[_l, p.value]
|
|
7054
7049
|
]),
|
|
7055
|
-
_.enableFileList && i.value.length ? (le(), _e("div",
|
|
7056
|
-
Jt("div",
|
|
7050
|
+
_.enableFileList && i.value.length ? (le(), _e("div", _0, [
|
|
7051
|
+
Jt("div", y0, [
|
|
7057
7052
|
(le(!0), _e(yv, null, Qv(i.value, (tt) => (le(), _e("div", {
|
|
7058
7053
|
key: tt.id,
|
|
7059
7054
|
class: "col col-12"
|
|
@@ -7062,23 +7057,23 @@ const f0 = {
|
|
|
7062
7057
|
fi(" - "),
|
|
7063
7058
|
Jt("span", null, He(tt.size), 1),
|
|
7064
7059
|
fi(" - "),
|
|
7065
|
-
tt.error ? (le(), _e("span",
|
|
7060
|
+
tt.error ? (le(), _e("span", C0, He(tt.error), 1)) : tt.success ? (le(), _e("span", b0, He(B.$t("common.success")), 1)) : tt.active ? (le(), _e("span", w0, He(B.$t("common.active")), 1)) : (le(), _e("span", S0))
|
|
7066
7061
|
]))), 128))
|
|
7067
7062
|
])
|
|
7068
7063
|
])) : on("", !0),
|
|
7069
|
-
ml(Jt("div",
|
|
7070
|
-
Jt("div",
|
|
7071
|
-
Jt("div",
|
|
7072
|
-
Jt("div",
|
|
7064
|
+
ml(Jt("div", T0, [
|
|
7065
|
+
Jt("div", x0, [
|
|
7066
|
+
Jt("div", E0, [
|
|
7067
|
+
Jt("div", O0, [
|
|
7073
7068
|
wp(B.$slots, "headline", {}, () => [
|
|
7074
7069
|
_.enableTitle && (l.value || i.value.length) ? (le(), _e("p", {
|
|
7075
7070
|
key: 0,
|
|
7076
7071
|
class: "headline my-2",
|
|
7077
7072
|
innerHTML: Ke(c)
|
|
7078
|
-
}, null, 8,
|
|
7073
|
+
}, null, 8, I0)) : on("", !0)
|
|
7079
7074
|
]),
|
|
7080
|
-
!_.enableLegacyInput && (l.value || i.value.length) ? (le(), _e("div",
|
|
7081
|
-
Jt("div",
|
|
7075
|
+
!_.enableLegacyInput && (l.value || i.value.length) ? (le(), _e("div", D0, [
|
|
7076
|
+
Jt("div", P0, [
|
|
7082
7077
|
l.value || i.value.length && (!s.value || !s.value.active) ? (le(), ka(At, {
|
|
7083
7078
|
key: 0,
|
|
7084
7079
|
type: "button",
|
|
@@ -7088,7 +7083,7 @@ const f0 = {
|
|
|
7088
7083
|
default: Ia(() => [
|
|
7089
7084
|
Vn(rt, {
|
|
7090
7085
|
symbol: "x",
|
|
7091
|
-
"base-path": Ke(
|
|
7086
|
+
"base-path": Ke(j).iconSprite,
|
|
7092
7087
|
class: "primary"
|
|
7093
7088
|
}, null, 8, ["base-path"]),
|
|
7094
7089
|
fi(" " + He(_.enableButtonCaptions ? Ke(u).cancel || B.$t("fileInput.cancel") : ""), 1)
|
|
@@ -7096,7 +7091,7 @@ const f0 = {
|
|
|
7096
7091
|
_: 1
|
|
7097
7092
|
}, 8, ["class"])) : on("", !0)
|
|
7098
7093
|
]),
|
|
7099
|
-
l.value ? (le(), _e("div",
|
|
7094
|
+
l.value ? (le(), _e("div", L0, [
|
|
7100
7095
|
Vn(At, {
|
|
7101
7096
|
type: "button",
|
|
7102
7097
|
class: Kn(["btn btn-primary rounded-circle", `theme--${_.variant}`]),
|
|
@@ -7105,13 +7100,13 @@ const f0 = {
|
|
|
7105
7100
|
default: Ia(() => [
|
|
7106
7101
|
Vn(rt, {
|
|
7107
7102
|
symbol: "camera",
|
|
7108
|
-
"base-path": Ke(
|
|
7103
|
+
"base-path": Ke(j).iconSprite
|
|
7109
7104
|
}, null, 8, ["base-path"]),
|
|
7110
7105
|
fi(" " + He(_.enableButtonCaptions ? Ke(u).shoot || B.$t("fileInput.shoot") : ""), 1)
|
|
7111
7106
|
]),
|
|
7112
7107
|
_: 1
|
|
7113
7108
|
}, 8, ["class", "onClick"])
|
|
7114
|
-
])) : _.enableReview ? (le(), _e("div",
|
|
7109
|
+
])) : _.enableReview ? (le(), _e("div", k0, [
|
|
7115
7110
|
Vn(At, {
|
|
7116
7111
|
type: "button",
|
|
7117
7112
|
class: Kn(["btn btn-primary rounded-circle", {
|
|
@@ -7142,7 +7137,7 @@ const f0 = {
|
|
|
7142
7137
|
symbol: "camera"
|
|
7143
7138
|
})) : on("", !0),
|
|
7144
7139
|
fi(" " + He(_.enableButtonCaptions ? l.value ? Ke(u).cancel || B.$t("common.cancel") : Ke(u).camera || B.$t("fileInput.selectCameraCta") : ""), 1)
|
|
7145
|
-
], 10,
|
|
7140
|
+
], 10, M0),
|
|
7146
7141
|
l.value && (!B.$refs.upload || s.value.active) ? (le(), ka(At, {
|
|
7147
7142
|
key: 0,
|
|
7148
7143
|
type: "button",
|
|
@@ -7192,7 +7187,7 @@ const f0 = {
|
|
|
7192
7187
|
required: _.required,
|
|
7193
7188
|
value: a.value,
|
|
7194
7189
|
style: { display: "none" }
|
|
7195
|
-
}, null, 8,
|
|
7190
|
+
}, null, 8, F0)) : on("", !0)
|
|
7196
7191
|
])
|
|
7197
7192
|
])
|
|
7198
7193
|
])
|
|
@@ -7204,16 +7199,16 @@ const f0 = {
|
|
|
7204
7199
|
}
|
|
7205
7200
|
});
|
|
7206
7201
|
var vl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7207
|
-
function
|
|
7202
|
+
function R0(_) {
|
|
7208
7203
|
if (_.__esModule)
|
|
7209
7204
|
return _;
|
|
7210
7205
|
var d = _.default;
|
|
7211
7206
|
if (typeof d == "function") {
|
|
7212
7207
|
var m = function R() {
|
|
7213
7208
|
if (this instanceof R) {
|
|
7214
|
-
var
|
|
7215
|
-
|
|
7216
|
-
var L = Function.bind.apply(d,
|
|
7209
|
+
var j = [null];
|
|
7210
|
+
j.push.apply(j, arguments);
|
|
7211
|
+
var L = Function.bind.apply(d, j);
|
|
7217
7212
|
return new L();
|
|
7218
7213
|
}
|
|
7219
7214
|
return d.apply(this, arguments);
|
|
@@ -7222,8 +7217,8 @@ function N0(_) {
|
|
|
7222
7217
|
} else
|
|
7223
7218
|
m = {};
|
|
7224
7219
|
return Object.defineProperty(m, "__esModule", { value: !0 }), Object.keys(_).forEach(function(R) {
|
|
7225
|
-
var
|
|
7226
|
-
Object.defineProperty(m, R,
|
|
7220
|
+
var j = Object.getOwnPropertyDescriptor(_, R);
|
|
7221
|
+
Object.defineProperty(m, R, j.get ? j : {
|
|
7227
7222
|
enumerable: !0,
|
|
7228
7223
|
get: function() {
|
|
7229
7224
|
return _[R];
|
|
@@ -7232,10 +7227,10 @@ function N0(_) {
|
|
|
7232
7227
|
}), m;
|
|
7233
7228
|
}
|
|
7234
7229
|
var ze = {};
|
|
7235
|
-
const
|
|
7230
|
+
const B0 = {}, N0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7236
7231
|
__proto__: null,
|
|
7237
|
-
default:
|
|
7238
|
-
}, Symbol.toStringTag, { value: "Module" })), Cp = /* @__PURE__ */ N0
|
|
7232
|
+
default: B0
|
|
7233
|
+
}, Symbol.toStringTag, { value: "Module" })), Cp = /* @__PURE__ */ R0(N0);
|
|
7239
7234
|
(function(_) {
|
|
7240
7235
|
/*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */
|
|
7241
7236
|
var d = d || { version: "5.3.0" };
|
|
@@ -8484,8 +8479,8 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
8484
8479
|
m: "l",
|
|
8485
8480
|
M: "L"
|
|
8486
8481
|
};
|
|
8487
|
-
function c(M, X, Y, G, lt,
|
|
8488
|
-
var dt = d.util.cos(M), vt = d.util.sin(M), bt = d.util.cos(X), k = d.util.sin(X), x = Y * lt * bt - G *
|
|
8482
|
+
function c(M, X, Y, G, lt, U, F, q, nt, ct, it) {
|
|
8483
|
+
var dt = d.util.cos(M), vt = d.util.sin(M), bt = d.util.cos(X), k = d.util.sin(X), x = Y * lt * bt - G * U * k + F, W = G * lt * bt + Y * U * k + q, J = ct + nt * (-Y * lt * vt - G * U * dt), Z = it + nt * (-G * lt * vt + Y * U * dt), ut = x + nt * (Y * lt * k + G * U * bt), St = W + nt * (G * lt * k - Y * U * bt);
|
|
8489
8484
|
return [
|
|
8490
8485
|
"C",
|
|
8491
8486
|
J,
|
|
@@ -8496,7 +8491,7 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
8496
8491
|
W
|
|
8497
8492
|
];
|
|
8498
8493
|
}
|
|
8499
|
-
function i(M, X, Y, G, lt,
|
|
8494
|
+
function i(M, X, Y, G, lt, U, F) {
|
|
8500
8495
|
var q = Math.PI, nt = F * q / 180, ct = d.util.sin(nt), it = d.util.cos(nt), dt = 0, vt = 0;
|
|
8501
8496
|
Y = Math.abs(Y), G = Math.abs(G);
|
|
8502
8497
|
var bt = -it * M * 0.5 - ct * X * 0.5, k = -it * X * 0.5 + ct * M * 0.5, x = Y * Y, W = G * G, J = k * k, Z = bt * bt, ut = x * W - x * J - W * Z, St = 0;
|
|
@@ -8504,25 +8499,25 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
8504
8499
|
var Rt = Math.sqrt(1 - ut / (x * W));
|
|
8505
8500
|
Y *= Rt, G *= Rt;
|
|
8506
8501
|
} else
|
|
8507
|
-
St = (lt ===
|
|
8502
|
+
St = (lt === U ? -1 : 1) * Math.sqrt(ut / (x * J + W * Z));
|
|
8508
8503
|
var It = St * Y * k / G, st = -St * G * bt / Y, et = it * It - ct * st + M * 0.5, ht = ct * It + it * st + X * 0.5, Wt = s(1, 0, (bt - It) / Y, (k - st) / G), $t = s((bt - It) / Y, (k - st) / G, (-bt - It) / Y, (-k - st) / G);
|
|
8509
|
-
|
|
8504
|
+
U === 0 && $t > 0 ? $t -= 2 * q : U === 1 && $t < 0 && ($t += 2 * q);
|
|
8510
8505
|
for (var Qt = Math.ceil(Math.abs($t / q * 2)), oe = [], ie = $t / Qt, Be = 8 / 3 * Math.sin(ie / 4) * Math.sin(ie / 4) / Math.sin(ie / 2), yn = Wt + ie, Ye = 0; Ye < Qt; Ye++)
|
|
8511
8506
|
oe[Ye] = c(Wt, yn, it, ct, Y, G, et, ht, Be, dt, vt), dt = oe[Ye][5], vt = oe[Ye][6], Wt = yn, yn += ie;
|
|
8512
8507
|
return oe;
|
|
8513
8508
|
}
|
|
8514
8509
|
function s(M, X, Y, G) {
|
|
8515
|
-
var lt = Math.atan2(X, M),
|
|
8516
|
-
return
|
|
8510
|
+
var lt = Math.atan2(X, M), U = Math.atan2(G, Y);
|
|
8511
|
+
return U >= lt ? U - lt : 2 * Math.PI - (lt - U);
|
|
8517
8512
|
}
|
|
8518
|
-
function r(M, X, Y, G, lt,
|
|
8513
|
+
function r(M, X, Y, G, lt, U, F, q) {
|
|
8519
8514
|
var nt;
|
|
8520
8515
|
if (d.cachesBoundsOfCurve && (nt = g.call(arguments), d.boundsOfCurveCache[nt]))
|
|
8521
8516
|
return d.boundsOfCurveCache[nt];
|
|
8522
8517
|
var ct = Math.sqrt, it = Math.min, dt = Math.max, vt = Math.abs, bt = [], k = [[], []], x, W, J, Z, ut, St, Rt, It;
|
|
8523
8518
|
W = 6 * M - 12 * Y + 6 * lt, x = -3 * M + 9 * Y - 9 * lt + 3 * F, J = 3 * Y - 3 * M;
|
|
8524
8519
|
for (var st = 0; st < 2; ++st) {
|
|
8525
|
-
if (st > 0 && (W = 6 * X - 12 * G + 6 *
|
|
8520
|
+
if (st > 0 && (W = 6 * X - 12 * G + 6 * U, x = -3 * X + 9 * G - 9 * U + 3 * q, J = 3 * G - 3 * X), vt(x) < 1e-12) {
|
|
8526
8521
|
if (vt(W) < 1e-12)
|
|
8527
8522
|
continue;
|
|
8528
8523
|
Z = -J / W, 0 < Z && Z < 1 && bt.push(Z);
|
|
@@ -8531,7 +8526,7 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
8531
8526
|
Rt = W * W - 4 * J * x, !(Rt < 0) && (It = ct(Rt), ut = (-W + It) / (2 * x), 0 < ut && ut < 1 && bt.push(ut), St = (-W - It) / (2 * x), 0 < St && St < 1 && bt.push(St));
|
|
8532
8527
|
}
|
|
8533
8528
|
for (var et, ht, Wt = bt.length, $t = Wt, Qt; Wt--; )
|
|
8534
|
-
Z = bt[Wt], Qt = 1 - Z, et = Qt * Qt * Qt * M + 3 * Qt * Qt * Z * Y + 3 * Qt * Z * Z * lt + Z * Z * Z * F, k[0][Wt] = et, ht = Qt * Qt * Qt * X + 3 * Qt * Qt * Z * G + 3 * Qt * Z * Z *
|
|
8529
|
+
Z = bt[Wt], Qt = 1 - Z, et = Qt * Qt * Qt * M + 3 * Qt * Qt * Z * Y + 3 * Qt * Z * Z * lt + Z * Z * Z * F, k[0][Wt] = et, ht = Qt * Qt * Qt * X + 3 * Qt * Qt * Z * G + 3 * Qt * Z * Z * U + Z * Z * Z * q, k[1][Wt] = ht;
|
|
8535
8530
|
k[0][$t] = M, k[1][$t] = X, k[0][$t + 1] = F, k[1][$t + 1] = q;
|
|
8536
8531
|
var oe = [
|
|
8537
8532
|
{
|
|
@@ -8546,12 +8541,12 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
8546
8541
|
return d.cachesBoundsOfCurve && (d.boundsOfCurveCache[nt] = oe), oe;
|
|
8547
8542
|
}
|
|
8548
8543
|
function l(M, X, Y) {
|
|
8549
|
-
for (var G = Y[1], lt = Y[2],
|
|
8544
|
+
for (var G = Y[1], lt = Y[2], U = Y[3], F = Y[4], q = Y[5], nt = Y[6], ct = Y[7], it = i(nt - M, ct - X, G, lt, F, q, U), dt = 0, vt = it.length; dt < vt; dt++)
|
|
8550
8545
|
it[dt][1] += M, it[dt][2] += X, it[dt][3] += M, it[dt][4] += X, it[dt][5] += M, it[dt][6] += X;
|
|
8551
8546
|
return it;
|
|
8552
8547
|
}
|
|
8553
8548
|
function f(M) {
|
|
8554
|
-
var X = 0, Y = 0, G = M.length, lt = 0,
|
|
8549
|
+
var X = 0, Y = 0, G = M.length, lt = 0, U = 0, F, q, nt, ct = [], it, dt, vt;
|
|
8555
8550
|
for (q = 0; q < G; ++q) {
|
|
8556
8551
|
switch (nt = !1, F = M[q].slice(0), F[0]) {
|
|
8557
8552
|
case "l":
|
|
@@ -8572,7 +8567,7 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
8572
8567
|
case "m":
|
|
8573
8568
|
F[0] = "M", F[1] += X, F[2] += Y;
|
|
8574
8569
|
case "M":
|
|
8575
|
-
X = F[1], Y = F[2], lt = F[1],
|
|
8570
|
+
X = F[1], Y = F[2], lt = F[1], U = F[2];
|
|
8576
8571
|
break;
|
|
8577
8572
|
case "c":
|
|
8578
8573
|
F[0] = "C", F[1] += X, F[2] += Y, F[3] += X, F[4] += Y, F[5] += X, F[6] += Y;
|
|
@@ -8601,7 +8596,7 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
8601
8596
|
break;
|
|
8602
8597
|
case "z":
|
|
8603
8598
|
case "Z":
|
|
8604
|
-
X = lt, Y =
|
|
8599
|
+
X = lt, Y = U;
|
|
8605
8600
|
break;
|
|
8606
8601
|
}
|
|
8607
8602
|
nt || ct.push(F), it = F[0];
|
|
@@ -8623,18 +8618,18 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
8623
8618
|
function C(M) {
|
|
8624
8619
|
return (1 - M) * (1 - M) * (1 - M);
|
|
8625
8620
|
}
|
|
8626
|
-
function S(M, X, Y, G, lt,
|
|
8621
|
+
function S(M, X, Y, G, lt, U, F, q) {
|
|
8627
8622
|
return function(nt) {
|
|
8628
8623
|
var ct = A(nt), it = p(nt), dt = y(nt), vt = C(nt);
|
|
8629
8624
|
return {
|
|
8630
8625
|
x: F * ct + lt * it + Y * dt + M * vt,
|
|
8631
|
-
y: q * ct +
|
|
8626
|
+
y: q * ct + U * it + G * dt + X * vt
|
|
8632
8627
|
};
|
|
8633
8628
|
};
|
|
8634
8629
|
}
|
|
8635
|
-
function E(M, X, Y, G, lt,
|
|
8630
|
+
function E(M, X, Y, G, lt, U, F, q) {
|
|
8636
8631
|
return function(nt) {
|
|
8637
|
-
var ct = 1 - nt, it = 3 * ct * ct * (Y - M) + 6 * ct * nt * (lt - Y) + 3 * nt * nt * (F - lt), dt = 3 * ct * ct * (G - X) + 6 * ct * nt * (
|
|
8632
|
+
var ct = 1 - nt, it = 3 * ct * ct * (Y - M) + 6 * ct * nt * (lt - Y) + 3 * nt * nt * (F - lt), dt = 3 * ct * ct * (G - X) + 6 * ct * nt * (U - G) + 3 * nt * nt * (q - U);
|
|
8638
8633
|
return Math.atan2(dt, it);
|
|
8639
8634
|
};
|
|
8640
8635
|
}
|
|
@@ -8647,49 +8642,49 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
8647
8642
|
function K(M) {
|
|
8648
8643
|
return (1 - M) * (1 - M);
|
|
8649
8644
|
}
|
|
8650
|
-
function rt(M, X, Y, G, lt,
|
|
8645
|
+
function rt(M, X, Y, G, lt, U) {
|
|
8651
8646
|
return function(F) {
|
|
8652
8647
|
var q = D(F), nt = B(F), ct = K(F);
|
|
8653
8648
|
return {
|
|
8654
8649
|
x: lt * q + Y * nt + M * ct,
|
|
8655
|
-
y:
|
|
8650
|
+
y: U * q + G * nt + X * ct
|
|
8656
8651
|
};
|
|
8657
8652
|
};
|
|
8658
8653
|
}
|
|
8659
|
-
function At(M, X, Y, G, lt,
|
|
8654
|
+
function At(M, X, Y, G, lt, U) {
|
|
8660
8655
|
return function(F) {
|
|
8661
|
-
var q = 1 - F, nt = 2 * q * (Y - M) + 2 * F * (lt - Y), ct = 2 * q * (G - X) + 2 * F * (
|
|
8656
|
+
var q = 1 - F, nt = 2 * q * (Y - M) + 2 * F * (lt - Y), ct = 2 * q * (G - X) + 2 * F * (U - G);
|
|
8662
8657
|
return Math.atan2(ct, nt);
|
|
8663
8658
|
};
|
|
8664
8659
|
}
|
|
8665
8660
|
function at(M, X, Y) {
|
|
8666
|
-
var G = { x: X, y: Y }, lt,
|
|
8661
|
+
var G = { x: X, y: Y }, lt, U = 0, F;
|
|
8667
8662
|
for (F = 1; F <= 100; F += 1)
|
|
8668
|
-
lt = M(F / 100),
|
|
8669
|
-
return
|
|
8663
|
+
lt = M(F / 100), U += a(G.x, G.y, lt.x, lt.y), G = lt;
|
|
8664
|
+
return U;
|
|
8670
8665
|
}
|
|
8671
8666
|
function tt(M, X) {
|
|
8672
|
-
for (var Y = 0, G = 0, lt = M.iterator,
|
|
8673
|
-
F = lt(Y), it = Y, q = a(
|
|
8667
|
+
for (var Y = 0, G = 0, lt = M.iterator, U = { x: M.x, y: M.y }, F, q, nt = 0.01, ct = M.angleFinder, it; G < X && nt > 1e-4; )
|
|
8668
|
+
F = lt(Y), it = Y, q = a(U.x, U.y, F.x, F.y), q + G > X ? (Y -= nt, nt /= 2) : (U = F, Y += nt, G += q);
|
|
8674
8669
|
return F.angle = ct(it), F;
|
|
8675
8670
|
}
|
|
8676
8671
|
function pt(M) {
|
|
8677
|
-
for (var X = 0, Y = M.length, G, lt = 0,
|
|
8672
|
+
for (var X = 0, Y = M.length, G, lt = 0, U = 0, F = 0, q = 0, nt = [], ct, it, dt, vt = 0; vt < Y; vt++) {
|
|
8678
8673
|
switch (G = M[vt], it = {
|
|
8679
8674
|
x: lt,
|
|
8680
|
-
y:
|
|
8675
|
+
y: U,
|
|
8681
8676
|
command: G[0]
|
|
8682
8677
|
}, G[0]) {
|
|
8683
8678
|
case "M":
|
|
8684
|
-
it.length = 0, F = lt = G[1], q =
|
|
8679
|
+
it.length = 0, F = lt = G[1], q = U = G[2];
|
|
8685
8680
|
break;
|
|
8686
8681
|
case "L":
|
|
8687
|
-
it.length = a(lt,
|
|
8682
|
+
it.length = a(lt, U, G[1], G[2]), lt = G[1], U = G[2];
|
|
8688
8683
|
break;
|
|
8689
8684
|
case "C":
|
|
8690
8685
|
ct = S(
|
|
8691
8686
|
lt,
|
|
8692
|
-
|
|
8687
|
+
U,
|
|
8693
8688
|
G[1],
|
|
8694
8689
|
G[2],
|
|
8695
8690
|
G[3],
|
|
@@ -8698,46 +8693,46 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
8698
8693
|
G[6]
|
|
8699
8694
|
), dt = E(
|
|
8700
8695
|
lt,
|
|
8701
|
-
|
|
8696
|
+
U,
|
|
8702
8697
|
G[1],
|
|
8703
8698
|
G[2],
|
|
8704
8699
|
G[3],
|
|
8705
8700
|
G[4],
|
|
8706
8701
|
G[5],
|
|
8707
8702
|
G[6]
|
|
8708
|
-
), it.iterator = ct, it.angleFinder = dt, it.length = at(ct, lt,
|
|
8703
|
+
), it.iterator = ct, it.angleFinder = dt, it.length = at(ct, lt, U), lt = G[5], U = G[6];
|
|
8709
8704
|
break;
|
|
8710
8705
|
case "Q":
|
|
8711
8706
|
ct = rt(
|
|
8712
8707
|
lt,
|
|
8713
|
-
|
|
8708
|
+
U,
|
|
8714
8709
|
G[1],
|
|
8715
8710
|
G[2],
|
|
8716
8711
|
G[3],
|
|
8717
8712
|
G[4]
|
|
8718
8713
|
), dt = At(
|
|
8719
8714
|
lt,
|
|
8720
|
-
|
|
8715
|
+
U,
|
|
8721
8716
|
G[1],
|
|
8722
8717
|
G[2],
|
|
8723
8718
|
G[3],
|
|
8724
8719
|
G[4]
|
|
8725
|
-
), it.iterator = ct, it.angleFinder = dt, it.length = at(ct, lt,
|
|
8720
|
+
), it.iterator = ct, it.angleFinder = dt, it.length = at(ct, lt, U), lt = G[3], U = G[4];
|
|
8726
8721
|
break;
|
|
8727
8722
|
case "Z":
|
|
8728
8723
|
case "z":
|
|
8729
|
-
it.destX = F, it.destY = q, it.length = a(lt,
|
|
8724
|
+
it.destX = F, it.destY = q, it.length = a(lt, U, F, q), lt = F, U = q;
|
|
8730
8725
|
break;
|
|
8731
8726
|
}
|
|
8732
8727
|
X += it.length, nt.push(it);
|
|
8733
8728
|
}
|
|
8734
|
-
return nt.push({ length: X, x: lt, y:
|
|
8729
|
+
return nt.push({ length: X, x: lt, y: U }), nt;
|
|
8735
8730
|
}
|
|
8736
8731
|
function mt(M, X, Y) {
|
|
8737
8732
|
Y || (Y = pt(M));
|
|
8738
8733
|
for (var G = 0; X - Y[G].length > 0 && G < Y.length - 2; )
|
|
8739
8734
|
X -= Y[G].length, G++;
|
|
8740
|
-
var lt = Y[G],
|
|
8735
|
+
var lt = Y[G], U = X / lt.length, F = lt.command, q = M[G], nt;
|
|
8741
8736
|
switch (F) {
|
|
8742
8737
|
case "M":
|
|
8743
8738
|
return { x: lt.x, y: lt.y, angle: 0 };
|
|
@@ -8745,12 +8740,12 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
8745
8740
|
case "z":
|
|
8746
8741
|
return nt = new d.Point(lt.x, lt.y).lerp(
|
|
8747
8742
|
new d.Point(lt.destX, lt.destY),
|
|
8748
|
-
|
|
8743
|
+
U
|
|
8749
8744
|
), nt.angle = Math.atan2(lt.destY - lt.y, lt.destX - lt.x), nt;
|
|
8750
8745
|
case "L":
|
|
8751
8746
|
return nt = new d.Point(lt.x, lt.y).lerp(
|
|
8752
8747
|
new d.Point(q[1], q[2]),
|
|
8753
|
-
|
|
8748
|
+
U
|
|
8754
8749
|
), nt.angle = Math.atan2(q[2] - lt.y, q[1] - lt.x), nt;
|
|
8755
8750
|
case "C":
|
|
8756
8751
|
return tt(lt, X);
|
|
@@ -8759,7 +8754,7 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
8759
8754
|
}
|
|
8760
8755
|
}
|
|
8761
8756
|
function Tt(M) {
|
|
8762
|
-
var X = [], Y = [], G, lt,
|
|
8757
|
+
var X = [], Y = [], G, lt, U = d.rePathCommand, F = "[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*", q = "(" + F + ")" + d.commaWsp, nt = "([01])" + d.commaWsp + "?", ct = q + "?" + q + "?" + q + nt + nt + q + "?(" + F + ")", it = new RegExp(ct, "g"), dt, vt, bt;
|
|
8763
8758
|
if (!M || !M.match)
|
|
8764
8759
|
return X;
|
|
8765
8760
|
bt = M.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi);
|
|
@@ -8771,7 +8766,7 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
8771
8766
|
for (var ut = 1; ut < Z.length; ut++)
|
|
8772
8767
|
Y.push(Z[ut]);
|
|
8773
8768
|
else
|
|
8774
|
-
for (; dt =
|
|
8769
|
+
for (; dt = U.exec(vt); )
|
|
8775
8770
|
Y.push(dt[0]);
|
|
8776
8771
|
for (var ut = 0, St = Y.length; ut < St; ut++)
|
|
8777
8772
|
lt = parseFloat(Y[ut]), isNaN(lt) || x.push(lt);
|
|
@@ -8785,13 +8780,13 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
8785
8780
|
return X;
|
|
8786
8781
|
}
|
|
8787
8782
|
function Ot(M, X) {
|
|
8788
|
-
var Y = [], G, lt = new d.Point(M[0].x, M[0].y),
|
|
8789
|
-
for (X = X || 0, ct && (q = M[2].x <
|
|
8790
|
-
if (!lt.eq(
|
|
8791
|
-
var it = lt.midPointFrom(
|
|
8783
|
+
var Y = [], G, lt = new d.Point(M[0].x, M[0].y), U = new d.Point(M[1].x, M[1].y), F = M.length, q = 1, nt = 0, ct = F > 2;
|
|
8784
|
+
for (X = X || 0, ct && (q = M[2].x < U.x ? -1 : M[2].x === U.x ? 0 : 1, nt = M[2].y < U.y ? -1 : M[2].y === U.y ? 0 : 1), Y.push(["M", lt.x - q * X, lt.y - nt * X]), G = 1; G < F; G++) {
|
|
8785
|
+
if (!lt.eq(U)) {
|
|
8786
|
+
var it = lt.midPointFrom(U);
|
|
8792
8787
|
Y.push(["Q", lt.x, lt.y, it.x, it.y]);
|
|
8793
8788
|
}
|
|
8794
|
-
lt = M[G], G + 1 < M.length && (
|
|
8789
|
+
lt = M[G], G + 1 < M.length && (U = M[G + 1]);
|
|
8795
8790
|
}
|
|
8796
8791
|
return ct && (q = lt.x > M[G - 2].x ? 1 : lt.x === M[G - 2].x ? 0 : -1, nt = lt.y > M[G - 2].y ? 1 : lt.y === M[G - 2].y ? 0 : -1), Y.push(["L", lt.x + q * X, lt.y + nt * X]), Y;
|
|
8797
8792
|
}
|
|
@@ -8800,8 +8795,8 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
8800
8795
|
X,
|
|
8801
8796
|
[1, 0, 0, 1, -Y.x, -Y.y]
|
|
8802
8797
|
)), M.map(function(G) {
|
|
8803
|
-
for (var lt = G.slice(0),
|
|
8804
|
-
|
|
8798
|
+
for (var lt = G.slice(0), U = {}, F = 1; F < G.length - 1; F += 2)
|
|
8799
|
+
U.x = G[F], U.y = G[F + 1], U = d.util.transformPoint(U, X), lt[F] = U.x, lt[F + 1] = U.y;
|
|
8805
8800
|
return lt;
|
|
8806
8801
|
});
|
|
8807
8802
|
}
|
|
@@ -9202,7 +9197,7 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
9202
9197
|
}) : Tt - mt);
|
|
9203
9198
|
A.onStart && A.onStart(), function wt(M) {
|
|
9204
9199
|
K = M || +new Date();
|
|
9205
|
-
var X = K > B ? D : K - E, Y = X / D, G = pt ? mt.map(function(
|
|
9200
|
+
var X = K > B ? D : K - E, Y = X / D, G = pt ? mt.map(function(U, F) {
|
|
9206
9201
|
return tt(X, mt[F], Ot[F], D);
|
|
9207
9202
|
}) : tt(X, mt, Ot, D), lt = Math.abs(pt ? (G[0] - mt[0]) / Ot[0] : (G - mt) / Ot);
|
|
9208
9203
|
if (y.currentValue = pt ? G.slice() : G, y.completionRate = lt, y.durationRate = Y, !p) {
|
|
@@ -9327,33 +9322,33 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
9327
9322
|
return M /= G / 2, M < 1 ? -Y / 2 * (Math.sqrt(1 - M * M) - 1) + X : Y / 2 * (Math.sqrt(1 - (M -= 2) * M) + 1) + X;
|
|
9328
9323
|
}
|
|
9329
9324
|
function rt(M, X, Y, G) {
|
|
9330
|
-
var lt = 1.70158,
|
|
9325
|
+
var lt = 1.70158, U = 0, F = Y;
|
|
9331
9326
|
if (M === 0)
|
|
9332
9327
|
return X;
|
|
9333
9328
|
if (M /= G, M === 1)
|
|
9334
9329
|
return X + Y;
|
|
9335
|
-
|
|
9336
|
-
var q = g(F, Y,
|
|
9330
|
+
U || (U = G * 0.3);
|
|
9331
|
+
var q = g(F, Y, U, lt);
|
|
9337
9332
|
return -o(q, M, G) + X;
|
|
9338
9333
|
}
|
|
9339
9334
|
function At(M, X, Y, G) {
|
|
9340
|
-
var lt = 1.70158,
|
|
9335
|
+
var lt = 1.70158, U = 0, F = Y;
|
|
9341
9336
|
if (M === 0)
|
|
9342
9337
|
return X;
|
|
9343
9338
|
if (M /= G, M === 1)
|
|
9344
9339
|
return X + Y;
|
|
9345
|
-
|
|
9346
|
-
var q = g(F, Y,
|
|
9340
|
+
U || (U = G * 0.3);
|
|
9341
|
+
var q = g(F, Y, U, lt);
|
|
9347
9342
|
return q.a * Math.pow(2, -10 * M) * Math.sin((M * G - q.s) * (2 * Math.PI) / q.p) + q.c + X;
|
|
9348
9343
|
}
|
|
9349
9344
|
function at(M, X, Y, G) {
|
|
9350
|
-
var lt = 1.70158,
|
|
9345
|
+
var lt = 1.70158, U = 0, F = Y;
|
|
9351
9346
|
if (M === 0)
|
|
9352
9347
|
return X;
|
|
9353
9348
|
if (M /= G / 2, M === 2)
|
|
9354
9349
|
return X + Y;
|
|
9355
|
-
|
|
9356
|
-
var q = g(F, Y,
|
|
9350
|
+
U || (U = G * (0.3 * 1.5));
|
|
9351
|
+
var q = g(F, Y, U, lt);
|
|
9357
9352
|
return M < 1 ? -0.5 * o(q, M, G) + X : q.a * Math.pow(2, -10 * (M -= 1)) * Math.sin((M * G - q.s) * (2 * Math.PI) / q.p) * 0.5 + q.c + X;
|
|
9358
9353
|
}
|
|
9359
9354
|
function tt(M, X, Y, G, lt) {
|
|
@@ -9477,70 +9472,70 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
9477
9472
|
fill: "fillOpacity"
|
|
9478
9473
|
}, C = "font-size", S = "clip-path";
|
|
9479
9474
|
o.svgValidTagNamesRegEx = B(l), o.svgViewBoxElementsRegEx = B(f), o.svgInvalidAncestorsRegEx = B(a), o.svgValidParentsRegEx = B(A), o.cssRules = {}, o.gradientDefs = {}, o.clipPaths = {};
|
|
9480
|
-
function E(
|
|
9481
|
-
return
|
|
9475
|
+
function E(U) {
|
|
9476
|
+
return U in p ? p[U] : U;
|
|
9482
9477
|
}
|
|
9483
|
-
function D(
|
|
9478
|
+
function D(U, F, q, nt) {
|
|
9484
9479
|
var ct = Array.isArray(F), it;
|
|
9485
|
-
if ((
|
|
9480
|
+
if ((U === "fill" || U === "stroke") && F === "none")
|
|
9486
9481
|
F = "";
|
|
9487
9482
|
else {
|
|
9488
|
-
if (
|
|
9483
|
+
if (U === "strokeUniform")
|
|
9489
9484
|
return F === "non-scaling-stroke";
|
|
9490
|
-
if (
|
|
9485
|
+
if (U === "strokeDashArray")
|
|
9491
9486
|
F === "none" ? F = null : F = F.replace(/,/g, " ").split(/\s+/).map(parseFloat);
|
|
9492
|
-
else if (
|
|
9487
|
+
else if (U === "transformMatrix")
|
|
9493
9488
|
q && q.transformMatrix ? F = r(
|
|
9494
9489
|
q.transformMatrix,
|
|
9495
9490
|
o.parseTransformAttribute(F)
|
|
9496
9491
|
) : F = o.parseTransformAttribute(F);
|
|
9497
|
-
else if (
|
|
9492
|
+
else if (U === "visible")
|
|
9498
9493
|
F = F !== "none" && F !== "hidden", q && q.visible === !1 && (F = !1);
|
|
9499
|
-
else if (
|
|
9494
|
+
else if (U === "opacity")
|
|
9500
9495
|
F = parseFloat(F), q && typeof q.opacity < "u" && (F *= q.opacity);
|
|
9501
|
-
else if (
|
|
9496
|
+
else if (U === "textAnchor")
|
|
9502
9497
|
F = F === "start" ? "left" : F === "end" ? "right" : "center";
|
|
9503
|
-
else if (
|
|
9498
|
+
else if (U === "charSpacing")
|
|
9504
9499
|
it = s(F, nt) / nt * 1e3;
|
|
9505
|
-
else if (
|
|
9500
|
+
else if (U === "paintFirst") {
|
|
9506
9501
|
var dt = F.indexOf("fill"), vt = F.indexOf("stroke"), F = "fill";
|
|
9507
9502
|
(dt > -1 && vt > -1 && vt < dt || dt === -1 && vt > -1) && (F = "stroke");
|
|
9508
9503
|
} else {
|
|
9509
|
-
if (
|
|
9504
|
+
if (U === "href" || U === "xlink:href" || U === "font")
|
|
9510
9505
|
return F;
|
|
9511
|
-
if (
|
|
9506
|
+
if (U === "imageSmoothing")
|
|
9512
9507
|
return F === "optimizeQuality";
|
|
9513
9508
|
it = ct ? F.map(s) : s(F, nt);
|
|
9514
9509
|
}
|
|
9515
9510
|
}
|
|
9516
9511
|
return !ct && isNaN(it) ? F : it;
|
|
9517
9512
|
}
|
|
9518
|
-
function B(
|
|
9519
|
-
return new RegExp("^(" +
|
|
9513
|
+
function B(U) {
|
|
9514
|
+
return new RegExp("^(" + U.join("|") + ")\\b", "i");
|
|
9520
9515
|
}
|
|
9521
|
-
function K(
|
|
9516
|
+
function K(U) {
|
|
9522
9517
|
for (var F in y)
|
|
9523
|
-
if (!(typeof
|
|
9524
|
-
if (typeof
|
|
9518
|
+
if (!(typeof U[y[F]] > "u" || U[F] === "")) {
|
|
9519
|
+
if (typeof U[F] > "u") {
|
|
9525
9520
|
if (!o.Object.prototype[F])
|
|
9526
9521
|
continue;
|
|
9527
|
-
|
|
9522
|
+
U[F] = o.Object.prototype[F];
|
|
9528
9523
|
}
|
|
9529
|
-
if (
|
|
9530
|
-
var q = new o.Color(
|
|
9531
|
-
|
|
9524
|
+
if (U[F].indexOf("url(") !== 0) {
|
|
9525
|
+
var q = new o.Color(U[F]);
|
|
9526
|
+
U[F] = q.setAlpha(i(q.getAlpha() * U[y[F]], 2)).toRgba();
|
|
9532
9527
|
}
|
|
9533
9528
|
}
|
|
9534
|
-
return
|
|
9529
|
+
return U;
|
|
9535
9530
|
}
|
|
9536
|
-
function rt(
|
|
9531
|
+
function rt(U, F) {
|
|
9537
9532
|
var q, nt = [], ct, it, dt;
|
|
9538
9533
|
for (it = 0, dt = F.length; it < dt; it++)
|
|
9539
|
-
q = F[it], ct =
|
|
9534
|
+
q = F[it], ct = U.getElementsByTagName(q), nt = nt.concat(Array.prototype.slice.call(ct));
|
|
9540
9535
|
return nt;
|
|
9541
9536
|
}
|
|
9542
9537
|
o.parseTransformAttribute = function() {
|
|
9543
|
-
function
|
|
9538
|
+
function U(st, et) {
|
|
9544
9539
|
var ht = o.util.cos(et[0]), Wt = o.util.sin(et[0]), $t = 0, Qt = 0;
|
|
9545
9540
|
et.length === 3 && ($t = et[1], Qt = et[2]), st[0] = ht, st[1] = Wt, st[2] = -Wt, st[3] = ht, st[4] = $t - (ht * $t - Wt * Qt), st[5] = Qt - (Wt * $t + ht * Qt);
|
|
9546
9541
|
}
|
|
@@ -9568,7 +9563,7 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
9568
9563
|
nt(et, ie);
|
|
9569
9564
|
break;
|
|
9570
9565
|
case "rotate":
|
|
9571
|
-
ie[0] = o.util.degreesToRadians(ie[0]),
|
|
9566
|
+
ie[0] = o.util.degreesToRadians(ie[0]), U(et, ie);
|
|
9572
9567
|
break;
|
|
9573
9568
|
case "scale":
|
|
9574
9569
|
F(et, ie);
|
|
@@ -9590,57 +9585,57 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
9590
9585
|
return Wt;
|
|
9591
9586
|
};
|
|
9592
9587
|
}();
|
|
9593
|
-
function At(
|
|
9588
|
+
function At(U, F) {
|
|
9594
9589
|
var q, nt;
|
|
9595
|
-
|
|
9590
|
+
U.replace(/;\s*$/, "").split(";").forEach(function(ct) {
|
|
9596
9591
|
var it = ct.split(":");
|
|
9597
9592
|
q = it[0].trim().toLowerCase(), nt = it[1].trim(), F[q] = nt;
|
|
9598
9593
|
});
|
|
9599
9594
|
}
|
|
9600
|
-
function at(
|
|
9595
|
+
function at(U, F) {
|
|
9601
9596
|
var q, nt;
|
|
9602
|
-
for (var ct in
|
|
9603
|
-
typeof
|
|
9597
|
+
for (var ct in U)
|
|
9598
|
+
typeof U[ct] > "u" || (q = ct.toLowerCase(), nt = U[ct], F[q] = nt);
|
|
9604
9599
|
}
|
|
9605
|
-
function tt(
|
|
9600
|
+
function tt(U, F) {
|
|
9606
9601
|
var q = {};
|
|
9607
9602
|
for (var nt in o.cssRules[F])
|
|
9608
|
-
if (pt(
|
|
9603
|
+
if (pt(U, nt.split(" ")))
|
|
9609
9604
|
for (var ct in o.cssRules[F][nt])
|
|
9610
9605
|
q[ct] = o.cssRules[F][nt][ct];
|
|
9611
9606
|
return q;
|
|
9612
9607
|
}
|
|
9613
|
-
function pt(
|
|
9608
|
+
function pt(U, F) {
|
|
9614
9609
|
var q, nt = !0;
|
|
9615
|
-
return q = Tt(
|
|
9610
|
+
return q = Tt(U, F.pop()), q && F.length && (nt = mt(U, F)), q && nt && F.length === 0;
|
|
9616
9611
|
}
|
|
9617
|
-
function mt(
|
|
9618
|
-
for (var q, nt = !0;
|
|
9619
|
-
nt && (q = F.pop()),
|
|
9612
|
+
function mt(U, F) {
|
|
9613
|
+
for (var q, nt = !0; U.parentNode && U.parentNode.nodeType === 1 && F.length; )
|
|
9614
|
+
nt && (q = F.pop()), U = U.parentNode, nt = Tt(U, q);
|
|
9620
9615
|
return F.length === 0;
|
|
9621
9616
|
}
|
|
9622
|
-
function Tt(
|
|
9623
|
-
var q =
|
|
9617
|
+
function Tt(U, F) {
|
|
9618
|
+
var q = U.nodeName, nt = U.getAttribute("class"), ct = U.getAttribute("id"), it, dt;
|
|
9624
9619
|
if (it = new RegExp("^" + q, "i"), F = F.replace(it, ""), ct && F.length && (it = new RegExp("#" + ct + "(?![a-zA-Z\\-]+)", "i"), F = F.replace(it, "")), nt && F.length)
|
|
9625
9620
|
for (nt = nt.split(" "), dt = nt.length; dt--; )
|
|
9626
9621
|
it = new RegExp("\\." + nt[dt] + "(?![a-zA-Z\\-]+)", "i"), F = F.replace(it, "");
|
|
9627
9622
|
return F.length === 0;
|
|
9628
9623
|
}
|
|
9629
|
-
function Ot(
|
|
9624
|
+
function Ot(U, F) {
|
|
9630
9625
|
var q;
|
|
9631
|
-
if (
|
|
9626
|
+
if (U.getElementById && (q = U.getElementById(F)), q)
|
|
9632
9627
|
return q;
|
|
9633
|
-
var nt, ct, it, dt =
|
|
9628
|
+
var nt, ct, it, dt = U.getElementsByTagName("*");
|
|
9634
9629
|
for (ct = 0, it = dt.length; ct < it; ct++)
|
|
9635
9630
|
if (nt = dt[ct], F === nt.getAttribute("id"))
|
|
9636
9631
|
return nt;
|
|
9637
9632
|
}
|
|
9638
|
-
function wt(
|
|
9639
|
-
for (var F = rt(
|
|
9633
|
+
function wt(U) {
|
|
9634
|
+
for (var F = rt(U, ["use", "svg:use"]), q = 0; F.length && q < F.length; ) {
|
|
9640
9635
|
var nt = F[q], ct = nt.getAttribute("xlink:href") || nt.getAttribute("href");
|
|
9641
9636
|
if (ct === null)
|
|
9642
9637
|
return;
|
|
9643
|
-
var it = ct.slice(1), dt = nt.getAttribute("x") || 0, vt = nt.getAttribute("y") || 0, bt = Ot(
|
|
9638
|
+
var it = ct.slice(1), dt = nt.getAttribute("x") || 0, vt = nt.getAttribute("y") || 0, bt = Ot(U, it).cloneNode(!0), k = (bt.getAttribute("transform") || "") + " translate(" + dt + ", " + vt + ")", x, W = F.length, J, Z, ut, St, Rt = o.svgNS;
|
|
9644
9639
|
if (X(bt), /^svg$/i.test(bt.nodeName)) {
|
|
9645
9640
|
var It = bt.ownerDocument.createElementNS(Rt, "g");
|
|
9646
9641
|
for (Z = 0, ut = bt.attributes, St = ut.length; Z < St; Z++)
|
|
@@ -9657,36 +9652,36 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
9657
9652
|
var M = new RegExp(
|
|
9658
9653
|
"^\\s*(" + o.reNum + "+)\\s*,?\\s*(" + o.reNum + "+)\\s*,?\\s*(" + o.reNum + "+)\\s*,?\\s*(" + o.reNum + "+)\\s*$"
|
|
9659
9654
|
);
|
|
9660
|
-
function X(
|
|
9661
|
-
if (!o.svgViewBoxElementsRegEx.test(
|
|
9655
|
+
function X(U) {
|
|
9656
|
+
if (!o.svgViewBoxElementsRegEx.test(U.nodeName))
|
|
9662
9657
|
return {};
|
|
9663
|
-
var F =
|
|
9664
|
-
if (st.width = 0, st.height = 0, st.toBeParsed = It, St && (J || Z) &&
|
|
9658
|
+
var F = U.getAttribute("viewBox"), q = 1, nt = 1, ct = 0, it = 0, dt, vt, bt, k, x = U.getAttribute("width"), W = U.getAttribute("height"), J = U.getAttribute("x") || 0, Z = U.getAttribute("y") || 0, ut = U.getAttribute("preserveAspectRatio") || "", St = !F || !(F = F.match(M)), Rt = !x || !W || x === "100%" || W === "100%", It = St && Rt, st = {}, et = "", ht = 0, Wt = 0;
|
|
9659
|
+
if (st.width = 0, st.height = 0, st.toBeParsed = It, St && (J || Z) && U.parentNode && U.parentNode.nodeName !== "#document" && (et = " translate(" + s(J) + " " + s(Z) + ") ", bt = (U.getAttribute("transform") || "") + et, U.setAttribute("transform", bt), U.removeAttribute("x"), U.removeAttribute("y")), It)
|
|
9665
9660
|
return st;
|
|
9666
9661
|
if (St)
|
|
9667
9662
|
return st.width = s(x), st.height = s(W), st;
|
|
9668
9663
|
if (ct = -parseFloat(F[1]), it = -parseFloat(F[2]), dt = parseFloat(F[3]), vt = parseFloat(F[4]), st.minX = ct, st.minY = it, st.viewBoxWidth = dt, st.viewBoxHeight = vt, Rt ? (st.width = dt, st.height = vt) : (st.width = s(x), st.height = s(W), q = st.width / dt, nt = st.height / vt), ut = o.util.parsePreserveAspectRatioAttribute(ut), ut.alignX !== "none" && (ut.meetOrSlice === "meet" && (nt = q = q > nt ? nt : q), ut.meetOrSlice === "slice" && (nt = q = q > nt ? q : nt), ht = st.width - dt * q, Wt = st.height - vt * q, ut.alignX === "Mid" && (ht /= 2), ut.alignY === "Mid" && (Wt /= 2), ut.alignX === "Min" && (ht = 0), ut.alignY === "Min" && (Wt = 0)), q === 1 && nt === 1 && ct === 0 && it === 0 && J === 0 && Z === 0)
|
|
9669
9664
|
return st;
|
|
9670
|
-
if ((J || Z) &&
|
|
9671
|
-
for (k =
|
|
9672
|
-
k.appendChild(
|
|
9673
|
-
|
|
9665
|
+
if ((J || Z) && U.parentNode.nodeName !== "#document" && (et = " translate(" + s(J) + " " + s(Z) + ") "), bt = et + " matrix(" + q + " 0 0 " + nt + " " + (ct * q + ht) + " " + (it * nt + Wt) + ") ", U.nodeName === "svg") {
|
|
9666
|
+
for (k = U.ownerDocument.createElementNS(o.svgNS, "g"); U.firstChild; )
|
|
9667
|
+
k.appendChild(U.firstChild);
|
|
9668
|
+
U.appendChild(k);
|
|
9674
9669
|
} else
|
|
9675
|
-
k =
|
|
9670
|
+
k = U, k.removeAttribute("x"), k.removeAttribute("y"), bt = k.getAttribute("transform") + bt;
|
|
9676
9671
|
return k.setAttribute("transform", bt), st;
|
|
9677
9672
|
}
|
|
9678
|
-
function Y(
|
|
9679
|
-
for (;
|
|
9680
|
-
if (
|
|
9673
|
+
function Y(U, F) {
|
|
9674
|
+
for (; U && (U = U.parentNode); )
|
|
9675
|
+
if (U.nodeName && F.test(U.nodeName.replace("svg:", "")) && !U.getAttribute("instantiated_by_use"))
|
|
9681
9676
|
return !0;
|
|
9682
9677
|
return !1;
|
|
9683
9678
|
}
|
|
9684
|
-
o.parseSVGDocument = function(
|
|
9685
|
-
if (
|
|
9686
|
-
wt(
|
|
9687
|
-
var ct = o.Object.__uid++, it, dt, vt = X(
|
|
9679
|
+
o.parseSVGDocument = function(U, F, q, nt) {
|
|
9680
|
+
if (U) {
|
|
9681
|
+
wt(U);
|
|
9682
|
+
var ct = o.Object.__uid++, it, dt, vt = X(U), bt = o.util.toArray(U.getElementsByTagName("*"));
|
|
9688
9683
|
if (vt.crossOrigin = nt && nt.crossOrigin, vt.svgUid = ct, bt.length === 0 && o.isLikelyNode) {
|
|
9689
|
-
bt =
|
|
9684
|
+
bt = U.selectNodes('//*[name(.)!="svg"]');
|
|
9690
9685
|
var k = [];
|
|
9691
9686
|
for (it = 0, dt = bt.length; it < dt; it++)
|
|
9692
9687
|
k[it] = bt[it];
|
|
@@ -9707,14 +9702,14 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
9707
9702
|
W[Z] = o.util.toArray(J.getElementsByTagName("*")).filter(function(ut) {
|
|
9708
9703
|
return o.svgValidTagNamesRegEx.test(ut.nodeName.replace("svg:", ""));
|
|
9709
9704
|
});
|
|
9710
|
-
}), o.gradientDefs[ct] = o.getGradientDefs(
|
|
9705
|
+
}), o.gradientDefs[ct] = o.getGradientDefs(U), o.cssRules[ct] = o.getCSSRules(U), o.clipPaths[ct] = W, o.parseElements(x, function(J, Z) {
|
|
9711
9706
|
F && (F(J, vt, Z, bt), delete o.gradientDefs[ct], delete o.cssRules[ct], delete o.clipPaths[ct]);
|
|
9712
9707
|
}, c(vt), q, nt);
|
|
9713
9708
|
}
|
|
9714
9709
|
};
|
|
9715
|
-
function G(
|
|
9716
|
-
var q = ["gradientTransform", "x1", "x2", "y1", "y2", "gradientUnits", "cx", "cy", "r", "fx", "fy"], nt = "xlink:href", ct = F.getAttribute(nt).slice(1), it = Ot(
|
|
9717
|
-
if (it && it.getAttribute(nt) && G(
|
|
9710
|
+
function G(U, F) {
|
|
9711
|
+
var q = ["gradientTransform", "x1", "x2", "y1", "y2", "gradientUnits", "cx", "cy", "r", "fx", "fy"], nt = "xlink:href", ct = F.getAttribute(nt).slice(1), it = Ot(U, ct);
|
|
9712
|
+
if (it && it.getAttribute(nt) && G(U, it), q.forEach(function(vt) {
|
|
9718
9713
|
it && !F.hasAttribute(vt) && it.hasAttribute(vt) && F.setAttribute(vt, it.getAttribute(vt));
|
|
9719
9714
|
}), !F.children.length)
|
|
9720
9715
|
for (var dt = it.cloneNode(!0); dt.firstChild; )
|
|
@@ -9733,8 +9728,8 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
9733
9728
|
* @param {String} value font declaration
|
|
9734
9729
|
* @param {Object} oStyle definition
|
|
9735
9730
|
*/
|
|
9736
|
-
parseFontDeclaration: function(
|
|
9737
|
-
var q =
|
|
9731
|
+
parseFontDeclaration: function(U, F) {
|
|
9732
|
+
var q = U.match(lt);
|
|
9738
9733
|
if (q) {
|
|
9739
9734
|
var nt = q[1], ct = q[3], it = q[4], dt = q[5], vt = q[6];
|
|
9740
9735
|
nt && (F.fontStyle = nt), ct && (F.fontWeight = isNaN(parseFloat(ct)) ? ct : parseFloat(ct)), it && (F.fontSize = s(it)), vt && (F.fontFamily = vt), dt && (F.lineHeight = dt === "normal" ? 1 : dt);
|
|
@@ -9748,15 +9743,15 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
9748
9743
|
* @param {SVGDocument} doc SVG document to parse
|
|
9749
9744
|
* @return {Object} Gradient definitions; key corresponds to element id, value -- to gradient definition element
|
|
9750
9745
|
*/
|
|
9751
|
-
getGradientDefs: function(
|
|
9746
|
+
getGradientDefs: function(U) {
|
|
9752
9747
|
var F = [
|
|
9753
9748
|
"linearGradient",
|
|
9754
9749
|
"radialGradient",
|
|
9755
9750
|
"svg:linearGradient",
|
|
9756
9751
|
"svg:radialGradient"
|
|
9757
|
-
], q = rt(
|
|
9752
|
+
], q = rt(U, F), nt, ct = 0, it = {};
|
|
9758
9753
|
for (ct = q.length; ct--; )
|
|
9759
|
-
nt = q[ct], nt.getAttribute("xlink:href") && G(
|
|
9754
|
+
nt = q[ct], nt.getAttribute("xlink:href") && G(U, nt), it[nt.getAttribute("id")] = nt;
|
|
9760
9755
|
return it;
|
|
9761
9756
|
},
|
|
9762
9757
|
/**
|
|
@@ -9768,26 +9763,26 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
9768
9763
|
* @param {Array} attributes Array of attributes to parse
|
|
9769
9764
|
* @return {Object} object containing parsed attributes' names/values
|
|
9770
9765
|
*/
|
|
9771
|
-
parseAttributes: function(
|
|
9772
|
-
if (
|
|
9766
|
+
parseAttributes: function(U, F, q) {
|
|
9767
|
+
if (U) {
|
|
9773
9768
|
var nt, ct = {}, it, dt;
|
|
9774
|
-
typeof q > "u" && (q =
|
|
9769
|
+
typeof q > "u" && (q = U.getAttribute("svgUid")), U.parentNode && o.svgValidParentsRegEx.test(U.parentNode.nodeName) && (ct = o.parseAttributes(U.parentNode, F, q));
|
|
9775
9770
|
var vt = F.reduce(function(ut, St) {
|
|
9776
|
-
return nt =
|
|
9771
|
+
return nt = U.getAttribute(St), nt && (ut[St] = nt), ut;
|
|
9777
9772
|
}, {}), bt = u(
|
|
9778
|
-
tt(
|
|
9779
|
-
o.parseStyleAttribute(
|
|
9773
|
+
tt(U, q),
|
|
9774
|
+
o.parseStyleAttribute(U)
|
|
9780
9775
|
);
|
|
9781
9776
|
vt = u(
|
|
9782
9777
|
vt,
|
|
9783
9778
|
bt
|
|
9784
|
-
), bt[S] &&
|
|
9779
|
+
), bt[S] && U.setAttribute(S, bt[S]), it = dt = ct.fontSize || o.Text.DEFAULT_SVG_FONT_SIZE, vt[C] && (vt[C] = it = s(vt[C], dt));
|
|
9785
9780
|
var k, x, W = {};
|
|
9786
9781
|
for (var J in vt)
|
|
9787
9782
|
k = E(J), x = D(k, vt[J], ct, it), W[k] = x;
|
|
9788
9783
|
W && W.font && o.parseFontDeclaration(W.font, W);
|
|
9789
9784
|
var Z = u(ct, W);
|
|
9790
|
-
return o.svgValidParentsRegEx.test(
|
|
9785
|
+
return o.svgValidParentsRegEx.test(U.nodeName) ? Z : K(Z);
|
|
9791
9786
|
}
|
|
9792
9787
|
},
|
|
9793
9788
|
/**
|
|
@@ -9799,8 +9794,8 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
9799
9794
|
* @param {Object} [options] Options object
|
|
9800
9795
|
* @param {Function} [reviver] Method for further parsing of SVG elements, called after each fabric object created.
|
|
9801
9796
|
*/
|
|
9802
|
-
parseElements: function(
|
|
9803
|
-
new o.ElementsParser(
|
|
9797
|
+
parseElements: function(U, F, q, nt, ct) {
|
|
9798
|
+
new o.ElementsParser(U, F, q, nt, ct).parse();
|
|
9804
9799
|
},
|
|
9805
9800
|
/**
|
|
9806
9801
|
* Parses "style" attribute, retuning an object with values
|
|
@@ -9809,8 +9804,8 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
9809
9804
|
* @param {SVGElement} element Element to parse
|
|
9810
9805
|
* @return {Object} Objects with values parsed from style attribute of an element
|
|
9811
9806
|
*/
|
|
9812
|
-
parseStyleAttribute: function(
|
|
9813
|
-
var F = {}, q =
|
|
9807
|
+
parseStyleAttribute: function(U) {
|
|
9808
|
+
var F = {}, q = U.getAttribute("style");
|
|
9814
9809
|
return q && (typeof q == "string" ? At(q, F) : at(q, F)), F;
|
|
9815
9810
|
},
|
|
9816
9811
|
/**
|
|
@@ -9820,15 +9815,15 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
9820
9815
|
* @param {String} points points attribute string
|
|
9821
9816
|
* @return {Array} array of points
|
|
9822
9817
|
*/
|
|
9823
|
-
parsePointsAttribute: function(
|
|
9824
|
-
if (!
|
|
9818
|
+
parsePointsAttribute: function(U) {
|
|
9819
|
+
if (!U)
|
|
9825
9820
|
return null;
|
|
9826
|
-
|
|
9821
|
+
U = U.replace(/,/g, " ").trim(), U = U.split(/\s+/);
|
|
9827
9822
|
var F = [], q, nt;
|
|
9828
|
-
for (q = 0, nt =
|
|
9823
|
+
for (q = 0, nt = U.length; q < nt; q += 2)
|
|
9829
9824
|
F.push({
|
|
9830
|
-
x: parseFloat(
|
|
9831
|
-
y: parseFloat(
|
|
9825
|
+
x: parseFloat(U[q]),
|
|
9826
|
+
y: parseFloat(U[q + 1])
|
|
9832
9827
|
});
|
|
9833
9828
|
return F;
|
|
9834
9829
|
},
|
|
@@ -9840,8 +9835,8 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
9840
9835
|
* @param {SVGDocument} doc SVG document to parse
|
|
9841
9836
|
* @return {Object} CSS rules of this document
|
|
9842
9837
|
*/
|
|
9843
|
-
getCSSRules: function(
|
|
9844
|
-
var F =
|
|
9838
|
+
getCSSRules: function(U) {
|
|
9839
|
+
var F = U.getElementsByTagName("style"), q, nt, ct = {}, it;
|
|
9845
9840
|
for (q = 0, nt = F.length; q < nt; q++) {
|
|
9846
9841
|
var dt = F[q].textContent;
|
|
9847
9842
|
dt = dt.replace(/\/\*[\s\S]*?\*\//g, ""), dt.trim() !== "" && (it = dt.split("}"), it = it.filter(function(vt) {
|
|
@@ -9871,8 +9866,8 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
9871
9866
|
* @param {Object} [options] Object containing options for parsing
|
|
9872
9867
|
* @param {String} [options.crossOrigin] crossOrigin crossOrigin setting to use for external resources
|
|
9873
9868
|
*/
|
|
9874
|
-
loadSVGFromURL: function(
|
|
9875
|
-
|
|
9869
|
+
loadSVGFromURL: function(U, F, q, nt) {
|
|
9870
|
+
U = U.replace(/^\n\s*/, "").trim(), new o.util.request(U, {
|
|
9876
9871
|
method: "get",
|
|
9877
9872
|
onComplete: ct
|
|
9878
9873
|
});
|
|
@@ -9894,8 +9889,8 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
9894
9889
|
* @param {Object} [options] Object containing options for parsing
|
|
9895
9890
|
* @param {String} [options.crossOrigin] crossOrigin crossOrigin setting to use for external resources
|
|
9896
9891
|
*/
|
|
9897
|
-
loadSVGFromString: function(
|
|
9898
|
-
var ct = new o.window.DOMParser(), it = ct.parseFromString(
|
|
9892
|
+
loadSVGFromString: function(U, F, q, nt) {
|
|
9893
|
+
var ct = new o.window.DOMParser(), it = ct.parseFromString(U.trim(), "text/xml");
|
|
9899
9894
|
o.parseSVGDocument(it.documentElement, function(dt, vt, bt, k) {
|
|
9900
9895
|
F(dt, vt, bt, k);
|
|
9901
9896
|
}, q, nt);
|
|
@@ -10787,7 +10782,7 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
10787
10782
|
var st = Tt("skewing", mt(Y));
|
|
10788
10783
|
return st(k, x, W, J);
|
|
10789
10784
|
}
|
|
10790
|
-
function
|
|
10785
|
+
function U(k, x, W, J) {
|
|
10791
10786
|
var Z = x, ut = Z.target, St = ut.translateToOriginPoint(ut.getCenterPoint(), Z.originX, Z.originY);
|
|
10792
10787
|
if (ut.lockRotation)
|
|
10793
10788
|
return !1;
|
|
@@ -10841,7 +10836,7 @@ const W0 = {}, U0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
10841
10836
|
var Z = x.target, ut = W - x.offsetX, St = J - x.offsetY, Rt = !Z.get("lockMovementX") && Z.left !== ut, It = !Z.get("lockMovementY") && Z.top !== St;
|
|
10842
10837
|
return Rt && Z.set("left", ut), It && Z.set("top", St), (Rt || It) && S("moving", pt(k, x, W, J)), Rt || It;
|
|
10843
10838
|
}
|
|
10844
|
-
i.scaleCursorStyleHandler = K, i.skewCursorStyleHandler = rt, i.scaleSkewCursorStyleHandler = At, i.rotationWithSnapping = Tt("rotating", mt(
|
|
10839
|
+
i.scaleCursorStyleHandler = K, i.skewCursorStyleHandler = rt, i.scaleSkewCursorStyleHandler = At, i.rotationWithSnapping = Tt("rotating", mt(U)), i.scalingEqually = Tt("scaling", mt(q)), i.scalingX = Tt("scaling", mt(nt)), i.scalingY = Tt("scaling", mt(ct)), i.scalingYOrSkewingX = it, i.scalingXOrSkewingY = dt, i.changeWidth = Tt("resizing", mt(vt)), i.skewHandlerX = G, i.skewHandlerY = lt, i.dragHandler = bt, i.scaleOrSkewActionName = at, i.rotationStyleHandler = tt, i.fireEvent = S, i.wrapWithFixedAnchor = mt, i.wrapWithFireEvent = Tt, i.getLocalPoint = Ot, o.controlsUtils = i;
|
|
10845
10840
|
}(_), function(g) {
|
|
10846
10841
|
var o = g.fabric || (g.fabric = {}), u = o.util.degreesToRadians, c = o.controlsUtils;
|
|
10847
10842
|
function i(r, l, f, a, A) {
|
|
@@ -19824,7 +19819,7 @@ void main(){}`, s = u.createShader(u.FRAGMENT_SHADER);
|
|
|
19824
19819
|
}, p = f.createFramebuffer();
|
|
19825
19820
|
return f.bindFramebuffer(f.FRAMEBUFFER, p), u.forEach(function(y) {
|
|
19826
19821
|
y && y.applyTo(A);
|
|
19827
|
-
}),
|
|
19822
|
+
}), j(A), this.copyGLTo2D(f, A), f.bindTexture(f.TEXTURE_2D, null), f.deleteTexture(A.sourceTexture), f.deleteTexture(A.targetTexture), f.deleteFramebuffer(p), r.getContext("2d").setTransform(1, 0, 0, 1, 0, 0), A;
|
|
19828
19823
|
},
|
|
19829
19824
|
/**
|
|
19830
19825
|
* Detach event listeners, remove references, and clean up caches.
|
|
@@ -19906,7 +19901,7 @@ void main(){}`, s = u.createShader(u.FRAGMENT_SHADER);
|
|
|
19906
19901
|
}
|
|
19907
19902
|
};
|
|
19908
19903
|
}();
|
|
19909
|
-
function
|
|
19904
|
+
function j(g) {
|
|
19910
19905
|
var o = g.targetCanvas, u = o.width, c = o.height, i = g.destinationWidth, s = g.destinationHeight;
|
|
19911
19906
|
(u !== i || c !== s) && (o.width = i, o.height = s);
|
|
19912
19907
|
}
|
|
@@ -21782,13 +21777,13 @@ varying vec2 vTexCoord;
|
|
|
21782
21777
|
*/
|
|
21783
21778
|
lanczosResize: function(p, y, C, S, E) {
|
|
21784
21779
|
function D(Y) {
|
|
21785
|
-
var G, lt,
|
|
21780
|
+
var G, lt, U, F, q, nt, ct, it, dt, vt, bt;
|
|
21786
21781
|
for (M.x = (Y + 0.5) * at, X.x = c(M.x), G = 0; G < E; G++) {
|
|
21787
21782
|
for (M.y = (G + 0.5) * tt, X.y = c(M.y), q = 0, nt = 0, ct = 0, it = 0, dt = 0, lt = X.x - Tt; lt <= X.x + Tt; lt++)
|
|
21788
21783
|
if (!(lt < 0 || lt >= y)) {
|
|
21789
21784
|
vt = c(1e3 * s(lt - M.x)), wt[vt] || (wt[vt] = {});
|
|
21790
21785
|
for (var k = X.y - Ot; k <= X.y + Ot; k++)
|
|
21791
|
-
k < 0 || k >= C || (bt = c(1e3 * s(k - M.y)), wt[vt][bt] || (wt[vt][bt] = At(i(u(vt * pt, 2) + u(bt * mt, 2)) / 1e3)),
|
|
21786
|
+
k < 0 || k >= C || (bt = c(1e3 * s(k - M.y)), wt[vt][bt] || (wt[vt][bt] = At(i(u(vt * pt, 2) + u(bt * mt, 2)) / 1e3)), U = wt[vt][bt], U > 0 && (F = (k * y + lt) * 4, q += U, nt += U * B[F], ct += U * B[F + 1], it += U * B[F + 2], dt += U * B[F + 3]));
|
|
21792
21787
|
}
|
|
21793
21788
|
F = (G * S + Y) * 4, rt[F] = nt / q, rt[F + 1] = ct / q, rt[F + 2] = it / q, rt[F + 3] = dt / q;
|
|
21794
21789
|
}
|
|
@@ -21807,7 +21802,7 @@ varying vec2 vTexCoord;
|
|
|
21807
21802
|
* @returns {ImageData}
|
|
21808
21803
|
*/
|
|
21809
21804
|
bilinearFiltering: function(p, y, C, S, E) {
|
|
21810
|
-
var D, B, K, rt, At, at, tt, pt, mt, Tt, Ot, wt, M = 0, X, Y = this.rcpScaleX, G = this.rcpScaleY, lt = 4 * (y - 1),
|
|
21805
|
+
var D, B, K, rt, At, at, tt, pt, mt, Tt, Ot, wt, M = 0, X, Y = this.rcpScaleX, G = this.rcpScaleY, lt = 4 * (y - 1), U = p.imageData, F = U.data, q = p.ctx.createImageData(S, E), nt = q.data;
|
|
21811
21806
|
for (tt = 0; tt < E; tt++)
|
|
21812
21807
|
for (pt = 0; pt < S; pt++)
|
|
21813
21808
|
for (At = c(Y * pt), at = c(G * tt), mt = Y * pt - At, Tt = G * tt - at, X = 4 * (at * y + At), Ot = 0; Ot < 4; Ot++)
|
|
@@ -21826,12 +21821,12 @@ varying vec2 vTexCoord;
|
|
|
21826
21821
|
hermiteFastResize: function(p, y, C, S, E) {
|
|
21827
21822
|
for (var D = this.rcpScaleX, B = this.rcpScaleY, K = f(D / 2), rt = f(B / 2), At = p.imageData, at = At.data, tt = p.ctx.createImageData(S, E), pt = tt.data, mt = 0; mt < E; mt++)
|
|
21828
21823
|
for (var Tt = 0; Tt < S; Tt++) {
|
|
21829
|
-
for (var Ot = (Tt + mt * S) * 4, wt = 0, M = 0, X = 0, Y = 0, G = 0, lt = 0,
|
|
21824
|
+
for (var Ot = (Tt + mt * S) * 4, wt = 0, M = 0, X = 0, Y = 0, G = 0, lt = 0, U = 0, F = (mt + 0.5) * B, q = c(mt * B); q < (mt + 1) * B; q++)
|
|
21830
21825
|
for (var nt = s(F - (q + 0.5)) / rt, ct = (Tt + 0.5) * D, it = nt * nt, dt = c(Tt * D); dt < (Tt + 1) * D; dt++) {
|
|
21831
21826
|
var vt = s(ct - (dt + 0.5)) / K, bt = i(it + vt * vt);
|
|
21832
|
-
bt > 1 && bt < -1 || (wt = 2 * bt * bt * bt - 3 * bt * bt + 1, wt > 0 && (vt = 4 * (dt + q * y),
|
|
21827
|
+
bt > 1 && bt < -1 || (wt = 2 * bt * bt * bt - 3 * bt * bt + 1, wt > 0 && (vt = 4 * (dt + q * y), U += wt * at[vt + 3], X += wt, at[vt + 3] < 255 && (wt = wt * at[vt + 3] / 250), Y += wt * at[vt], G += wt * at[vt + 1], lt += wt * at[vt + 2], M += wt));
|
|
21833
21828
|
}
|
|
21834
|
-
pt[Ot] = Y / M, pt[Ot + 1] = G / M, pt[Ot + 2] = lt / M, pt[Ot + 3] =
|
|
21829
|
+
pt[Ot] = Y / M, pt[Ot + 1] = G / M, pt[Ot + 2] = lt / M, pt[Ot + 3] = U / X;
|
|
21835
21830
|
}
|
|
21836
21831
|
return tt;
|
|
21837
21832
|
},
|
|
@@ -25355,28 +25350,28 @@ function Wl(_) {
|
|
|
25355
25350
|
_.oncomplete = _.onsuccess = () => d(_.result), _.onabort = _.onerror = () => m(_.error);
|
|
25356
25351
|
});
|
|
25357
25352
|
}
|
|
25358
|
-
function
|
|
25353
|
+
function W0(_, d) {
|
|
25359
25354
|
const m = indexedDB.open(_);
|
|
25360
25355
|
m.onupgradeneeded = () => m.result.createObjectStore(d);
|
|
25361
25356
|
const R = Wl(m);
|
|
25362
|
-
return (
|
|
25363
|
-
(Q) => L(Q.transaction(d,
|
|
25357
|
+
return (j, L) => R.then(
|
|
25358
|
+
(Q) => L(Q.transaction(d, j).objectStore(d))
|
|
25364
25359
|
);
|
|
25365
25360
|
}
|
|
25366
25361
|
let bp;
|
|
25367
25362
|
function Hp() {
|
|
25368
|
-
return bp || (bp =
|
|
25363
|
+
return bp || (bp = W0("keyval-store", "keyval")), bp;
|
|
25369
25364
|
}
|
|
25370
|
-
function
|
|
25365
|
+
function U0(_, d = Hp()) {
|
|
25371
25366
|
return d("readonly", (m) => Wl(m.get(_)));
|
|
25372
25367
|
}
|
|
25373
|
-
function
|
|
25368
|
+
function j0(_, d, m = Hp()) {
|
|
25374
25369
|
return m("readwrite", (R) => (R.put(d, _), Wl(R.transaction)));
|
|
25375
25370
|
}
|
|
25376
|
-
function
|
|
25371
|
+
function H0(_, d = Hp()) {
|
|
25377
25372
|
return d("readwrite", (m) => (m.delete(_), Wl(m.transaction)));
|
|
25378
25373
|
}
|
|
25379
|
-
var Ol = {},
|
|
25374
|
+
var Ol = {}, Y0 = {
|
|
25380
25375
|
get exports() {
|
|
25381
25376
|
return Ol;
|
|
25382
25377
|
},
|
|
@@ -25394,7 +25389,7 @@ var Ol = {}, G0 = {
|
|
|
25394
25389
|
*/
|
|
25395
25390
|
(function(_, d) {
|
|
25396
25391
|
(function() {
|
|
25397
|
-
var m, R = "4.17.21",
|
|
25392
|
+
var m, R = "4.17.21", j = 200, L = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", Q = "Expected a function", g = "Invalid `variable` option passed into `_.template`", o = "__lodash_hash_undefined__", u = 500, c = "__lodash_placeholder__", i = 1, s = 2, r = 4, l = 1, f = 2, a = 1, A = 2, p = 4, y = 8, C = 16, S = 32, E = 64, D = 128, B = 256, K = 512, rt = 30, At = "...", at = 800, tt = 16, pt = 1, mt = 2, Tt = 3, Ot = 1 / 0, wt = 9007199254740991, M = 17976931348623157e292, X = 0 / 0, Y = 4294967295, G = Y - 1, lt = Y >>> 1, U = [
|
|
25398
25393
|
["ary", D],
|
|
25399
25394
|
["bind", a],
|
|
25400
25395
|
["bindKey", A],
|
|
@@ -26182,7 +26177,7 @@ var Ol = {}, G0 = {
|
|
|
26182
26177
|
var n = this.__data__;
|
|
26183
26178
|
if (n instanceof qe) {
|
|
26184
26179
|
var h = n.__data__;
|
|
26185
|
-
if (!Zn || h.length <
|
|
26180
|
+
if (!Zn || h.length < j - 1)
|
|
26186
26181
|
return h.push([t, e]), this.size = ++n.size, this;
|
|
26187
26182
|
n = this.__data__ = new Ze(h);
|
|
26188
26183
|
}
|
|
@@ -26314,7 +26309,7 @@ var Ol = {}, G0 = {
|
|
|
26314
26309
|
var v = -1, w = yr, T = !0, O = t.length, P = [], V = e.length;
|
|
26315
26310
|
if (!O)
|
|
26316
26311
|
return P;
|
|
26317
|
-
n && (e = Gt(e, Ce(n))), h ? (w = xi, T = !1) : e.length >=
|
|
26312
|
+
n && (e = Gt(e, Ce(n))), h ? (w = xi, T = !1) : e.length >= j && (w = $n, T = !1, e = new Sn(e));
|
|
26318
26313
|
t:
|
|
26319
26314
|
for (; ++v < O; ) {
|
|
26320
26315
|
var z = t[v], $ = n == null ? z : n(z);
|
|
@@ -26748,7 +26743,7 @@ var Ol = {}, G0 = {
|
|
|
26748
26743
|
var h = -1, v = yr, w = t.length, T = !0, O = [], P = O;
|
|
26749
26744
|
if (n)
|
|
26750
26745
|
T = !1, v = xi;
|
|
26751
|
-
else if (w >=
|
|
26746
|
+
else if (w >= j) {
|
|
26752
26747
|
var V = e ? null : Hf(t);
|
|
26753
26748
|
if (V)
|
|
26754
26749
|
return br(V);
|
|
@@ -27619,7 +27614,7 @@ var Ol = {}, G0 = {
|
|
|
27619
27614
|
return "";
|
|
27620
27615
|
}
|
|
27621
27616
|
function oh(t, e) {
|
|
27622
|
-
return Oe(
|
|
27617
|
+
return Oe(U, function(n) {
|
|
27623
27618
|
var h = "_." + n[0];
|
|
27624
27619
|
e & n[1] && !yr(t, h) && t.push(h);
|
|
27625
27620
|
}), t.sort();
|
|
@@ -29056,11 +29051,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
29056
29051
|
}, Rn = fc();
|
|
29057
29052
|
Cn ? ((Cn.exports = Rn)._ = Rn, Si._ = Rn) : ae._ = Rn;
|
|
29058
29053
|
}).call(vl);
|
|
29059
|
-
})(
|
|
29060
|
-
const
|
|
29054
|
+
})(Y0, Ol);
|
|
29055
|
+
const X0 = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNmZmZmZmZDQyIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItcm90YXRlLWN3Ij48cG9seWxpbmUgcG9pbnRzPSIyMyA0IDIzIDEwIDE3IDEwIj48L3BvbHlsaW5lPjxwYXRoIGQ9Ik0yMC40OSAxNWE5IDkgMCAxIDEtMi4xMi05LjM2TDIzIDEwIj48L3BhdGg+PC9zdmc+", G0 = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNmZmZmZmZDQyIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXIteC1jaXJjbGUiPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIiBmaWxsPSJub25lIj48L2NpcmNsZT48bGluZSB4MT0iMTUiIHkxPSI5IiB4Mj0iOSIgeTI9IjE1IiBmaWxsPSJub25lIj48L2xpbmU+PGxpbmUgeDE9IjkiIHkxPSI5IiB4Mj0iMTUiIHkyPSIxNSIgZmlsbD0ibm9uZSI+PC9saW5lPjwvc3ZnPg==", V0 = { class: "fabric-canvas__canvas" }, z0 = {
|
|
29061
29056
|
id: "fabricCanvas",
|
|
29062
29057
|
ref: "canvasRef"
|
|
29063
|
-
},
|
|
29058
|
+
}, ny = /* @__PURE__ */ Il({
|
|
29064
29059
|
__name: "fabric-canvas",
|
|
29065
29060
|
props: {
|
|
29066
29061
|
modelValue: {
|
|
@@ -29080,7 +29075,7 @@ const V0 = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
29080
29075
|
setup(_, { expose: d, emit: m }) {
|
|
29081
29076
|
const R = _;
|
|
29082
29077
|
d({ setBackgroundImage: i, setOverlayImage: r, addCanvasObject: l });
|
|
29083
|
-
const
|
|
29078
|
+
const j = fe(), L = fe(0), Q = fe(0);
|
|
29084
29079
|
let g;
|
|
29085
29080
|
const o = fe();
|
|
29086
29081
|
async function u(at) {
|
|
@@ -29138,7 +29133,7 @@ const V0 = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
29138
29133
|
return g.remove(pt), g.requestRenderAll(), !0;
|
|
29139
29134
|
}
|
|
29140
29135
|
function a() {
|
|
29141
|
-
L.value =
|
|
29136
|
+
L.value = j.value.parentElement.offsetWidth, Q.value = j.value.parentElement.offsetHeight;
|
|
29142
29137
|
const at = L.value / g.getWidth();
|
|
29143
29138
|
if (g.getZoom() * at, g.setDimensions({ width: L.value, height: Q.value }), g.getWidth() / g.getHeight(), g.backgroundImage && (g.backgroundImage = c(g.backgroundImage), g.centerObject(g.backgroundImage)), g.overlayImage) {
|
|
29144
29139
|
const tt = g.overlayImage;
|
|
@@ -29182,7 +29177,7 @@ const V0 = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
29182
29177
|
visible: !1
|
|
29183
29178
|
});
|
|
29184
29179
|
const pt = document.createElement("img");
|
|
29185
|
-
pt.src =
|
|
29180
|
+
pt.src = X0, ze.fabric.Object.prototype.controls.rotate = new ze.fabric.Control({
|
|
29186
29181
|
x: 0.5,
|
|
29187
29182
|
y: -0.5,
|
|
29188
29183
|
offsetX: 32,
|
|
@@ -29194,7 +29189,7 @@ const V0 = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
29194
29189
|
render: p(pt)
|
|
29195
29190
|
});
|
|
29196
29191
|
const mt = document.createElement("img");
|
|
29197
|
-
mt.src =
|
|
29192
|
+
mt.src = G0, ze.fabric.Object.prototype.controls.delete = new ze.fabric.Control({
|
|
29198
29193
|
x: 0.5,
|
|
29199
29194
|
y: -0.5,
|
|
29200
29195
|
offsetX: 32,
|
|
@@ -29217,7 +29212,7 @@ const V0 = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
29217
29212
|
}
|
|
29218
29213
|
function E() {
|
|
29219
29214
|
setTimeout(async () => {
|
|
29220
|
-
await
|
|
29215
|
+
await j0("fabric-canvas", JSON.stringify(g.toDatalessJSON(["selectable", "assetType", "filename"]))), D();
|
|
29221
29216
|
}, 120);
|
|
29222
29217
|
}
|
|
29223
29218
|
async function D() {
|
|
@@ -29248,7 +29243,7 @@ const V0 = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
29248
29243
|
return Ai(() => R.modelValue, async (at, tt) => {
|
|
29249
29244
|
At(at, tt);
|
|
29250
29245
|
}), Dl(async () => {
|
|
29251
|
-
L.value =
|
|
29246
|
+
L.value = j.value.parentElement.offsetWidth, Q.value = j.value.parentElement.offsetHeight, window.addEventListener("resize", A), ze.fabric.Object.NUM_FRACTION_DIGITS = 8, g = new ze.fabric.Canvas("fabricCanvas", {
|
|
29252
29247
|
width: L.value,
|
|
29253
29248
|
height: Q.value,
|
|
29254
29249
|
// enableRetinaScaling: false,
|
|
@@ -29256,20 +29251,20 @@ const V0 = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
29256
29251
|
// devicePixelRatio: 4,
|
|
29257
29252
|
allowTouchScrolling: !1
|
|
29258
29253
|
// backstoreOnly: true
|
|
29259
|
-
}), R.resetState && await
|
|
29254
|
+
}), R.resetState && await H0("fabric-canvas"), o.value = await U0("fabric-canvas"), o.value ? (await l0(g, o.value), g.renderAll()) : R.modelValue && At(R.modelValue, ""), g.on("object:added", E), g.on("object:removed", E), g.on("object:modified", E), y(), g.renderAll(), m("on-ready", g);
|
|
29260
29255
|
}), (at, tt) => (le(), _e("div", {
|
|
29261
29256
|
class: "fabric-canvas",
|
|
29262
29257
|
ref_key: "root",
|
|
29263
|
-
ref:
|
|
29258
|
+
ref: j
|
|
29264
29259
|
}, [
|
|
29265
|
-
Jt("div",
|
|
29266
|
-
Jt("canvas",
|
|
29260
|
+
Jt("div", V0, [
|
|
29261
|
+
Jt("canvas", z0, null, 512)
|
|
29267
29262
|
]),
|
|
29268
29263
|
wp(at.$slots, "default")
|
|
29269
29264
|
], 512));
|
|
29270
29265
|
}
|
|
29271
29266
|
});
|
|
29272
|
-
const
|
|
29267
|
+
const Q0 = { class: "creative-booth" }, K0 = { class: "creative-booth__thumbnails" }, $0 = { class: "container" }, q0 = { class: "row" }, Z0 = { class: "col-12 col-md-10 col-lg-8 mx-auto" }, J0 = [
|
|
29273
29268
|
{
|
|
29274
29269
|
type: "background",
|
|
29275
29270
|
thumbnail: "/themes/corp/backgrounds/corporate-your-background-1024x1024.jpg",
|
|
@@ -29314,7 +29309,7 @@ const $0 = { class: "creative-booth" }, q0 = { class: "creative-booth__thumbnail
|
|
|
29314
29309
|
mediaType: "svg",
|
|
29315
29310
|
filters: []
|
|
29316
29311
|
}
|
|
29317
|
-
],
|
|
29312
|
+
], ry = /* @__PURE__ */ Il({
|
|
29318
29313
|
__name: "creative-booth",
|
|
29319
29314
|
props: {
|
|
29320
29315
|
modelValue: {
|
|
@@ -29334,7 +29329,7 @@ const $0 = { class: "creative-booth" }, q0 = { class: "creative-booth__thumbnail
|
|
|
29334
29329
|
},
|
|
29335
29330
|
assets: {
|
|
29336
29331
|
type: Array,
|
|
29337
|
-
default: () =>
|
|
29332
|
+
default: () => J0
|
|
29338
29333
|
},
|
|
29339
29334
|
exportToSvg: {
|
|
29340
29335
|
type: Boolean,
|
|
@@ -29352,7 +29347,7 @@ const $0 = { class: "creative-booth" }, q0 = { class: "creative-booth__thumbnail
|
|
|
29352
29347
|
},
|
|
29353
29348
|
emits: ["update:modelValue"],
|
|
29354
29349
|
setup(_, { emit: d }) {
|
|
29355
|
-
const m = _, R = fe(),
|
|
29350
|
+
const m = _, R = fe(), j = fe(), L = $e({
|
|
29356
29351
|
get() {
|
|
29357
29352
|
return m.modelValue;
|
|
29358
29353
|
},
|
|
@@ -29360,7 +29355,7 @@ const $0 = { class: "creative-booth" }, q0 = { class: "creative-booth__thumbnail
|
|
|
29360
29355
|
d("update:modelValue", g);
|
|
29361
29356
|
}
|
|
29362
29357
|
});
|
|
29363
|
-
Ai(
|
|
29358
|
+
Ai(j, async (g, o) => {
|
|
29364
29359
|
g && g !== o && d("update:modelValue", g);
|
|
29365
29360
|
}, { deep: !0 });
|
|
29366
29361
|
function Q(g) {
|
|
@@ -29382,7 +29377,7 @@ const $0 = { class: "creative-booth" }, q0 = { class: "creative-booth__thumbnail
|
|
|
29382
29377
|
return Dl(async () => {
|
|
29383
29378
|
}), (g, o) => {
|
|
29384
29379
|
const u = Pa("fabric-canvas"), c = Pa("media-thumbnails");
|
|
29385
|
-
return le(), _e("div",
|
|
29380
|
+
return le(), _e("div", Q0, [
|
|
29386
29381
|
Jt("div", {
|
|
29387
29382
|
class: Kn(["media-container", `${_.ratio ? `ratio ratio-${_.ratio}` : ""}`])
|
|
29388
29383
|
}, [
|
|
@@ -29394,10 +29389,10 @@ const $0 = { class: "creative-booth" }, q0 = { class: "creative-booth__thumbnail
|
|
|
29394
29389
|
"reset-state": _.resetState
|
|
29395
29390
|
}, null, 8, ["modelValue", "reset-state"])
|
|
29396
29391
|
], 2),
|
|
29397
|
-
Jt("div",
|
|
29398
|
-
Jt("div",
|
|
29399
|
-
Jt("div",
|
|
29400
|
-
Jt("div",
|
|
29392
|
+
Jt("div", K0, [
|
|
29393
|
+
Jt("div", $0, [
|
|
29394
|
+
Jt("div", q0, [
|
|
29395
|
+
Jt("div", Z0, [
|
|
29401
29396
|
Vn(c, {
|
|
29402
29397
|
assets: _.assets,
|
|
29403
29398
|
onSelect: Q
|
|
@@ -29411,7 +29406,7 @@ const $0 = { class: "creative-booth" }, q0 = { class: "creative-booth__thumbnail
|
|
|
29411
29406
|
}
|
|
29412
29407
|
});
|
|
29413
29408
|
export {
|
|
29414
|
-
|
|
29415
|
-
|
|
29416
|
-
|
|
29409
|
+
ry as CreativeBooth,
|
|
29410
|
+
ny as FabricCanvas,
|
|
29411
|
+
ey as PhotoApp
|
|
29417
29412
|
};
|