presenter 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/animations/Hide.d.ts +2 -2
- package/dist/animations/Show.d.ts +2 -2
- package/dist/export/index.d.ts +1 -0
- package/dist/export/notes-renderer/NotesRenderer.d.ts +7 -0
- package/dist/export/notes-renderer/types/NotesEntry.d.ts +6 -0
- package/dist/export/notes-renderer/types/NotesRendererProps.d.ts +16 -0
- package/dist/export/notes-renderer/utils/getNotesEntries.d.ts +9 -0
- package/dist/export/notes-renderer/utils/getTypstDocument.d.ts +10 -0
- package/dist/export.js +96 -25
- package/dist/export.js.map +1 -1
- package/dist/export.mjs +1040 -852
- package/dist/export.mjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/navigator/navigatorHotReload.d.ts +1 -0
- package/dist/presenter.js +4 -2
- package/dist/presenter.js.map +1 -1
- package/dist/presenter.mjs +904 -856
- package/dist/presenter.mjs.map +1 -1
- package/dist/types/BaseUnitSlideAnimation.d.ts +1 -0
- package/dist/types/Pause.d.ts +2 -1
- package/dist/types/Slide.d.ts +1 -0
- package/dist/utils/slide/getSpeakerNotes.d.ts +16 -0
- package/package.json +1 -1
package/dist/presenter.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var I = (n, e, t) =>
|
|
4
|
-
const
|
|
1
|
+
var A0 = Object.defineProperty;
|
|
2
|
+
var T0 = (n, e, t) => e in n ? A0(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var I = (n, e, t) => T0(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
const dt = {
|
|
5
5
|
/** Represents an animated change in an object's properties. */
|
|
6
6
|
ANIMATE: "Animate",
|
|
7
7
|
/** Represents a pause in the animation timeline. */
|
|
@@ -9,13 +9,13 @@ const ut = {
|
|
|
9
9
|
/** Represents an immediate update to an object's properties without animation. */
|
|
10
10
|
UPDATE: "Update"
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function L0(n) {
|
|
13
13
|
return n * n * n;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function M0(n) {
|
|
16
16
|
return --n * n * n + 1;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function C0(n) {
|
|
19
19
|
return ((n *= 2) <= 1 ? n * n * n : (n -= 2) * n * n + 2) / 2;
|
|
20
20
|
}
|
|
21
21
|
var le = 1.70158;
|
|
@@ -33,7 +33,7 @@ var le = 1.70158;
|
|
|
33
33
|
}
|
|
34
34
|
return t.overshoot = n, t;
|
|
35
35
|
})(le);
|
|
36
|
-
var
|
|
36
|
+
var S0 = (function n(e) {
|
|
37
37
|
e = +e;
|
|
38
38
|
function t(o) {
|
|
39
39
|
return ((o *= 2) < 1 ? o * o * ((e + 1) * o - e) : (o -= 2) * o * ((e + 1) * o + e) + 2) / 2;
|
|
@@ -42,34 +42,35 @@ var M0 = (function n(e) {
|
|
|
42
42
|
})(le);
|
|
43
43
|
const he = {
|
|
44
44
|
LINEAR: (n) => n,
|
|
45
|
-
CUBIC:
|
|
46
|
-
CUBIC_IN:
|
|
47
|
-
CUBIC_OUT:
|
|
48
|
-
BACK_IN_OUT:
|
|
49
|
-
},
|
|
45
|
+
CUBIC: C0,
|
|
46
|
+
CUBIC_IN: L0,
|
|
47
|
+
CUBIC_OUT: M0,
|
|
48
|
+
BACK_IN_OUT: S0.overshoot(0.8)
|
|
49
|
+
}, P0 = he.LINEAR;
|
|
50
50
|
function ce(n, e, t = {}) {
|
|
51
51
|
return {
|
|
52
|
-
type:
|
|
52
|
+
type: dt.ANIMATE,
|
|
53
53
|
object: n,
|
|
54
54
|
props: e,
|
|
55
55
|
delay: 0,
|
|
56
56
|
duration: 1e3,
|
|
57
|
-
easing:
|
|
57
|
+
easing: P0,
|
|
58
58
|
block: !1,
|
|
59
59
|
interpolators: null,
|
|
60
60
|
isKey: !1,
|
|
61
|
+
notes: null,
|
|
61
62
|
shortcut: null,
|
|
62
63
|
...typeof t == "number" ? { duration: t } : t
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
|
-
function
|
|
66
|
+
function bi(n, e = {}) {
|
|
66
67
|
return ce(n, { opacity: 1 }, {
|
|
67
68
|
duration: 500,
|
|
68
69
|
easing: he.CUBIC,
|
|
69
70
|
...typeof e == "number" ? { duration: e } : e
|
|
70
71
|
});
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
+
function Ai(n, e = {}) {
|
|
73
74
|
return ce(n, { opacity: 0 }, {
|
|
74
75
|
duration: 500,
|
|
75
76
|
easing: he.CUBIC,
|
|
@@ -78,21 +79,22 @@ function xi(n, e = {}) {
|
|
|
78
79
|
}
|
|
79
80
|
function Ke(n, e, t = {}) {
|
|
80
81
|
return {
|
|
81
|
-
type:
|
|
82
|
+
type: dt.UPDATE,
|
|
82
83
|
isKey: !1,
|
|
84
|
+
notes: null,
|
|
83
85
|
object: n,
|
|
84
86
|
props: e,
|
|
85
87
|
shortcut: null,
|
|
86
88
|
...t
|
|
87
89
|
};
|
|
88
90
|
}
|
|
89
|
-
function
|
|
90
|
-
return Ke(n, { opacity: 0 });
|
|
91
|
+
function Ti(n, e = {}) {
|
|
92
|
+
return Ke(n, { opacity: 0 }, e);
|
|
91
93
|
}
|
|
92
|
-
function
|
|
93
|
-
return Ke(n, { opacity: 1 });
|
|
94
|
+
function Li(n, e = {}) {
|
|
95
|
+
return Ke(n, { opacity: 1 }, e);
|
|
94
96
|
}
|
|
95
|
-
const
|
|
97
|
+
const st = {
|
|
96
98
|
TOP_LEFT: "TopLeft",
|
|
97
99
|
TOP: "Top",
|
|
98
100
|
TOP_RIGHT: "TopRight",
|
|
@@ -102,7 +104,7 @@ const ot = {
|
|
|
102
104
|
BOTTOM_LEFT: "BottomLeft",
|
|
103
105
|
BOTTOM: "Bottom",
|
|
104
106
|
BOTTOM_RIGHT: "BottomRight"
|
|
105
|
-
},
|
|
107
|
+
}, et = st.TOP_LEFT;
|
|
106
108
|
function G(n, e = 0, t = 0, o = 1) {
|
|
107
109
|
if (typeof n == "string") {
|
|
108
110
|
const i = n.replace("#", ""), a = parseInt(i, 16);
|
|
@@ -143,7 +145,7 @@ function Ze(n = null) {
|
|
|
143
145
|
return {
|
|
144
146
|
content: null,
|
|
145
147
|
setup: null,
|
|
146
|
-
anchor:
|
|
148
|
+
anchor: st.TOP_LEFT,
|
|
147
149
|
height: 0,
|
|
148
150
|
width: 0,
|
|
149
151
|
x: 0,
|
|
@@ -158,7 +160,7 @@ function It(n, e = null) {
|
|
|
158
160
|
const { red: t, green: o, blue: i } = n, a = t << 16 | o << 8 | i, s = Math.round(Je(n, e) * 255);
|
|
159
161
|
return `#${a.toString(16).padStart(6, "0")}${s !== 255 ? s.toString(16).padStart(2, "0") : ""}`;
|
|
160
162
|
}
|
|
161
|
-
function
|
|
163
|
+
function Mi(n = null) {
|
|
162
164
|
const {
|
|
163
165
|
url: e = "https://wikipedia.org/",
|
|
164
166
|
backgroundColor: t = G.TRANSPARENT,
|
|
@@ -166,7 +168,7 @@ function wi(n = null) {
|
|
|
166
168
|
strokeWidth: i = 0,
|
|
167
169
|
pointerEvents: a = "auto",
|
|
168
170
|
scale: s = 1,
|
|
169
|
-
anchor: r =
|
|
171
|
+
anchor: r = et,
|
|
170
172
|
height: l = 1e3,
|
|
171
173
|
width: c = 1e3,
|
|
172
174
|
x: u = 0,
|
|
@@ -183,19 +185,19 @@ function wi(n = null) {
|
|
|
183
185
|
y: g
|
|
184
186
|
});
|
|
185
187
|
}
|
|
186
|
-
const
|
|
188
|
+
const vt = {
|
|
187
189
|
LEFT: "left",
|
|
188
190
|
CENTER: "center",
|
|
189
191
|
RIGHT: "right"
|
|
190
|
-
},
|
|
191
|
-
function
|
|
192
|
+
}, E0 = vt.LEFT;
|
|
193
|
+
function at(n, e) {
|
|
192
194
|
throw new Error("Unexpected value: " + n);
|
|
193
195
|
}
|
|
194
|
-
function
|
|
196
|
+
function Ci(n = null) {
|
|
195
197
|
const {
|
|
196
|
-
alignment: e =
|
|
198
|
+
alignment: e = vt.LEFT,
|
|
197
199
|
scale: t = 1,
|
|
198
|
-
anchor: o =
|
|
200
|
+
anchor: o = et,
|
|
199
201
|
height: i = 1e3,
|
|
200
202
|
width: a = 1e3,
|
|
201
203
|
x: s = 0,
|
|
@@ -204,17 +206,17 @@ function mi(n = null) {
|
|
|
204
206
|
function l(c) {
|
|
205
207
|
const u = document.createElement("video");
|
|
206
208
|
switch (u.autoplay = !0, u.style.transform = `scale(${t})`, e) {
|
|
207
|
-
case
|
|
209
|
+
case vt.LEFT:
|
|
208
210
|
u.style.transformOrigin = "top left";
|
|
209
211
|
break;
|
|
210
|
-
case
|
|
212
|
+
case vt.CENTER:
|
|
211
213
|
u.style.transformOrigin = "top center";
|
|
212
214
|
break;
|
|
213
|
-
case
|
|
215
|
+
case vt.RIGHT:
|
|
214
216
|
u.style.transformOrigin = "top right";
|
|
215
217
|
break;
|
|
216
218
|
default:
|
|
217
|
-
|
|
219
|
+
at(e);
|
|
218
220
|
}
|
|
219
221
|
c.appendChild(u);
|
|
220
222
|
const g = {
|
|
@@ -244,7 +246,7 @@ function mi(n = null) {
|
|
|
244
246
|
y: r
|
|
245
247
|
});
|
|
246
248
|
}
|
|
247
|
-
const
|
|
249
|
+
const V = {
|
|
248
250
|
ARROW: "Arrow",
|
|
249
251
|
CIRCLE: "Circle",
|
|
250
252
|
GROUP: "Group",
|
|
@@ -259,17 +261,17 @@ const z = {
|
|
|
259
261
|
SVG: "SVG",
|
|
260
262
|
TEXT: "Text"
|
|
261
263
|
};
|
|
262
|
-
function
|
|
264
|
+
function nt(n) {
|
|
263
265
|
return {
|
|
264
|
-
objectType:
|
|
266
|
+
objectType: V.SLIDE_OBJECT,
|
|
265
267
|
opacity: 1,
|
|
266
268
|
...n
|
|
267
269
|
};
|
|
268
270
|
}
|
|
269
|
-
function
|
|
271
|
+
function Si(n = null) {
|
|
270
272
|
const { arrowheadSize: e, width: t = 10, ...o } = n || {}, i = e ?? t * 4;
|
|
271
|
-
return
|
|
272
|
-
objectType:
|
|
273
|
+
return nt({
|
|
274
|
+
objectType: V.ARROW,
|
|
273
275
|
arrowheadSize: i,
|
|
274
276
|
color: J,
|
|
275
277
|
drawn: 1,
|
|
@@ -284,25 +286,25 @@ function bi(n = null) {
|
|
|
284
286
|
...o
|
|
285
287
|
});
|
|
286
288
|
}
|
|
287
|
-
const
|
|
288
|
-
function
|
|
289
|
-
return
|
|
290
|
-
objectType:
|
|
291
|
-
anchor:
|
|
289
|
+
const I0 = 50;
|
|
290
|
+
function Pi(n = null) {
|
|
291
|
+
return nt({
|
|
292
|
+
objectType: V.CIRCLE,
|
|
293
|
+
anchor: et,
|
|
292
294
|
strokeColor: J,
|
|
293
295
|
strokeWidth: 0,
|
|
294
296
|
drawn: 1,
|
|
295
297
|
fillColor: J,
|
|
296
|
-
radius:
|
|
298
|
+
radius: I0,
|
|
297
299
|
x: 0,
|
|
298
300
|
y: 0,
|
|
299
301
|
...n
|
|
300
302
|
});
|
|
301
303
|
}
|
|
302
304
|
function we(n, e = null) {
|
|
303
|
-
return
|
|
304
|
-
objectType:
|
|
305
|
-
anchor:
|
|
305
|
+
return nt({
|
|
306
|
+
objectType: V.GROUP,
|
|
307
|
+
anchor: et,
|
|
306
308
|
height: 0,
|
|
307
309
|
objects: n,
|
|
308
310
|
previewColor: null,
|
|
@@ -324,9 +326,9 @@ function we(n, e = null) {
|
|
|
324
326
|
...e
|
|
325
327
|
});
|
|
326
328
|
}
|
|
327
|
-
function
|
|
329
|
+
function Ei(n) {
|
|
328
330
|
const {
|
|
329
|
-
anchor: e =
|
|
331
|
+
anchor: e = et,
|
|
330
332
|
cols: t = 1,
|
|
331
333
|
rows: o = 1,
|
|
332
334
|
gapX: i = 0,
|
|
@@ -339,20 +341,20 @@ function Ti(n) {
|
|
|
339
341
|
objects: g = () => null
|
|
340
342
|
} = n, h = [], f = [];
|
|
341
343
|
let v = 0, y = 0;
|
|
342
|
-
for (let
|
|
343
|
-
const
|
|
344
|
+
for (let C = 0; C < o; C++) {
|
|
345
|
+
const M = [];
|
|
344
346
|
v = 0;
|
|
345
|
-
let
|
|
347
|
+
let L = 0;
|
|
346
348
|
for (let E = 0; E < t; E++) {
|
|
347
|
-
const
|
|
348
|
-
|
|
349
|
-
we([
|
|
349
|
+
const S = g(C, E), k = typeof r == "function" ? r(C, E) : r, F = typeof l == "function" ? l(C, E) : l;
|
|
350
|
+
M.push(S), S != null && f.push(
|
|
351
|
+
we([S], {
|
|
350
352
|
x: v,
|
|
351
353
|
y
|
|
352
354
|
})
|
|
353
|
-
), v +=
|
|
355
|
+
), v += k + i, L = Math.max(L, F);
|
|
354
356
|
}
|
|
355
|
-
h.push(
|
|
357
|
+
h.push(M), y += L + a;
|
|
356
358
|
}
|
|
357
359
|
return {
|
|
358
360
|
grid: we(f, {
|
|
@@ -366,10 +368,10 @@ function Ti(n) {
|
|
|
366
368
|
objects: h
|
|
367
369
|
};
|
|
368
370
|
}
|
|
369
|
-
function
|
|
370
|
-
return
|
|
371
|
-
objectType:
|
|
372
|
-
anchor:
|
|
371
|
+
function Ii(n = null) {
|
|
372
|
+
return nt({
|
|
373
|
+
objectType: V.IMAGE,
|
|
374
|
+
anchor: et,
|
|
373
375
|
cornerRadius: 0,
|
|
374
376
|
height: 100,
|
|
375
377
|
imageId: "",
|
|
@@ -380,9 +382,9 @@ function Li(n = null) {
|
|
|
380
382
|
...n
|
|
381
383
|
});
|
|
382
384
|
}
|
|
383
|
-
function
|
|
384
|
-
return
|
|
385
|
-
objectType:
|
|
385
|
+
function ki(n = null) {
|
|
386
|
+
return nt({
|
|
387
|
+
objectType: V.LINE,
|
|
386
388
|
color: J,
|
|
387
389
|
drawn: 1,
|
|
388
390
|
endX: 100,
|
|
@@ -395,10 +397,10 @@ function Mi(n = null) {
|
|
|
395
397
|
...n
|
|
396
398
|
});
|
|
397
399
|
}
|
|
398
|
-
function
|
|
399
|
-
return
|
|
400
|
-
objectType:
|
|
401
|
-
anchor:
|
|
400
|
+
function Oi(n, e = null) {
|
|
401
|
+
return nt({
|
|
402
|
+
objectType: V.MASK,
|
|
403
|
+
anchor: et,
|
|
402
404
|
height: 100,
|
|
403
405
|
objects: n,
|
|
404
406
|
preview: !1,
|
|
@@ -408,11 +410,11 @@ function Ci(n, e = null) {
|
|
|
408
410
|
...e
|
|
409
411
|
});
|
|
410
412
|
}
|
|
411
|
-
var
|
|
412
|
-
const e = (n && n.length > 0 ? n : "M0,0").match(
|
|
413
|
+
var k0 = Object.defineProperty, _ = (n, e) => k0(n, "name", { value: e, configurable: !0 }), Pt = { a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0 }, O0 = /([astvzqmhlc])([^astvzqmhlc]*)/gi, _0 = /-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi, N0 = _((n) => {
|
|
414
|
+
const e = (n && n.length > 0 ? n : "M0,0").match(O0);
|
|
413
415
|
if (!e) throw new Error(`No path elements found in string ${n}`);
|
|
414
416
|
return e.reduce((t, o) => {
|
|
415
|
-
let i = o.charAt(0), a = i.toLowerCase(), s =
|
|
417
|
+
let i = o.charAt(0), a = i.toLowerCase(), s = R0(o.substring(1));
|
|
416
418
|
if (a === "m" && s.length > 2 && (t.push([i, ...s.splice(0, 2)]), a = "l", i = i === "m" ? "l" : "L"), a.toLowerCase() === "a" && (s.length === 5 || s.length === 6)) {
|
|
417
419
|
const r = o.substring(1).trim().split(" ");
|
|
418
420
|
s = [Number(r[0]), Number(r[1]), Number(r[2]), Number(r[3].charAt(0)), Number(r[3].charAt(1)), Number(r[3].substring(2)), Number(r[4])];
|
|
@@ -427,33 +429,33 @@ var E0 = Object.defineProperty, O = (n, e) => E0(n, "name", { value: e, configur
|
|
|
427
429
|
}
|
|
428
430
|
return t;
|
|
429
431
|
}, []);
|
|
430
|
-
}, "default"),
|
|
431
|
-
const e = n.match(
|
|
432
|
+
}, "default"), R0 = _((n) => {
|
|
433
|
+
const e = n.match(_0);
|
|
432
434
|
return e ? e.map(Number) : [];
|
|
433
|
-
}, "parseValues"), bt,
|
|
435
|
+
}, "parseValues"), bt, tt = (bt = class {
|
|
434
436
|
constructor(e, t, o, i) {
|
|
435
437
|
I(this, "x0");
|
|
436
438
|
I(this, "x1");
|
|
437
439
|
I(this, "y0");
|
|
438
440
|
I(this, "y1");
|
|
439
|
-
I(this, "getTotalLength",
|
|
440
|
-
I(this, "getPointAtLength",
|
|
441
|
+
I(this, "getTotalLength", _(() => Math.sqrt(Math.pow(this.x0 - this.x1, 2) + Math.pow(this.y0 - this.y1, 2)), "getTotalLength"));
|
|
442
|
+
I(this, "getPointAtLength", _((e) => {
|
|
441
443
|
let t = e / Math.sqrt(Math.pow(this.x0 - this.x1, 2) + Math.pow(this.y0 - this.y1, 2));
|
|
442
444
|
t = Number.isNaN(t) ? 1 : t;
|
|
443
445
|
const o = (this.x1 - this.x0) * t, i = (this.y1 - this.y0) * t;
|
|
444
446
|
return { x: this.x0 + o, y: this.y0 + i };
|
|
445
447
|
}, "getPointAtLength"));
|
|
446
|
-
I(this, "getTangentAtLength",
|
|
448
|
+
I(this, "getTangentAtLength", _((e) => {
|
|
447
449
|
const t = Math.sqrt((this.x1 - this.x0) * (this.x1 - this.x0) + (this.y1 - this.y0) * (this.y1 - this.y0));
|
|
448
450
|
return { x: (this.x1 - this.x0) / t, y: (this.y1 - this.y0) / t };
|
|
449
451
|
}, "getTangentAtLength"));
|
|
450
|
-
I(this, "getPropertiesAtLength",
|
|
452
|
+
I(this, "getPropertiesAtLength", _((e) => {
|
|
451
453
|
const t = this.getPointAtLength(e), o = this.getTangentAtLength(e);
|
|
452
454
|
return { x: t.x, y: t.y, tangentX: o.x, tangentY: o.y };
|
|
453
455
|
}, "getPropertiesAtLength"));
|
|
454
456
|
this.x0 = e, this.x1 = t, this.y0 = o, this.y1 = i;
|
|
455
457
|
}
|
|
456
|
-
},
|
|
458
|
+
}, _(bt, "LinearPosition"), bt), At, me = (At = class {
|
|
457
459
|
constructor(e, t, o, i, a, s, r, l, c) {
|
|
458
460
|
I(this, "x0");
|
|
459
461
|
I(this, "y0");
|
|
@@ -465,13 +467,13 @@ var E0 = Object.defineProperty, O = (n, e) => E0(n, "name", { value: e, configur
|
|
|
465
467
|
I(this, "x1");
|
|
466
468
|
I(this, "y1");
|
|
467
469
|
I(this, "length");
|
|
468
|
-
I(this, "getTotalLength",
|
|
469
|
-
I(this, "getPointAtLength",
|
|
470
|
+
I(this, "getTotalLength", _(() => this.length, "getTotalLength"));
|
|
471
|
+
I(this, "getPointAtLength", _((e) => {
|
|
470
472
|
e < 0 ? e = 0 : e > this.length && (e = this.length);
|
|
471
473
|
const t = be({ x: this.x0, y: this.y0 }, this.rx, this.ry, this.xAxisRotate, this.LargeArcFlag, this.SweepFlag, { x: this.x1, y: this.y1 }, e / this.length);
|
|
472
474
|
return { x: t.x, y: t.y };
|
|
473
475
|
}, "getPointAtLength"));
|
|
474
|
-
I(this, "getTangentAtLength",
|
|
476
|
+
I(this, "getTangentAtLength", _((e) => {
|
|
475
477
|
e < 0 ? e = 0 : e > this.length && (e = this.length);
|
|
476
478
|
const t = 0.05, o = this.getPointAtLength(e);
|
|
477
479
|
let i;
|
|
@@ -479,74 +481,74 @@ var E0 = Object.defineProperty, O = (n, e) => E0(n, "name", { value: e, configur
|
|
|
479
481
|
const a = i.x - o.x, s = i.y - o.y, r = Math.sqrt(a * a + s * s);
|
|
480
482
|
return e < this.length - t ? { x: -a / r, y: -s / r } : { x: a / r, y: s / r };
|
|
481
483
|
}, "getTangentAtLength"));
|
|
482
|
-
I(this, "getPropertiesAtLength",
|
|
484
|
+
I(this, "getPropertiesAtLength", _((e) => {
|
|
483
485
|
const t = this.getTangentAtLength(e), o = this.getPointAtLength(e);
|
|
484
486
|
return { x: o.x, y: o.y, tangentX: t.x, tangentY: t.y };
|
|
485
487
|
}, "getPropertiesAtLength"));
|
|
486
488
|
this.x0 = e, this.y0 = t, this.rx = o, this.ry = i, this.xAxisRotate = a, this.LargeArcFlag = s, this.SweepFlag = r, this.x1 = l, this.y1 = c;
|
|
487
|
-
const u =
|
|
489
|
+
const u = F0(300, function(g) {
|
|
488
490
|
return be({ x: e, y: t }, o, i, a, s, r, { x: l, y: c }, g);
|
|
489
491
|
});
|
|
490
492
|
this.length = u.arcLength;
|
|
491
493
|
}
|
|
492
|
-
},
|
|
493
|
-
e = Math.abs(e), t = Math.abs(t), o =
|
|
494
|
-
const l =
|
|
494
|
+
}, _(At, "Arc"), At), be = _((n, e, t, o, i, a, s, r) => {
|
|
495
|
+
e = Math.abs(e), t = Math.abs(t), o = B0(o, 360);
|
|
496
|
+
const l = D0(o);
|
|
495
497
|
if (n.x === s.x && n.y === s.y) return { x: n.x, y: n.y, ellipticalArcAngle: 0 };
|
|
496
498
|
if (e === 0 || t === 0) return { x: 0, y: 0, ellipticalArcAngle: 0 };
|
|
497
499
|
const c = (n.x - s.x) / 2, u = (n.y - s.y) / 2, g = { x: Math.cos(l) * c + Math.sin(l) * u, y: -Math.sin(l) * c + Math.cos(l) * u }, h = Math.pow(g.x, 2) / Math.pow(e, 2) + Math.pow(g.y, 2) / Math.pow(t, 2);
|
|
498
500
|
h > 1 && (e = Math.sqrt(h) * e, t = Math.sqrt(h) * t);
|
|
499
501
|
let f = (Math.pow(e, 2) * Math.pow(t, 2) - Math.pow(e, 2) * Math.pow(g.y, 2) - Math.pow(t, 2) * Math.pow(g.x, 2)) / (Math.pow(e, 2) * Math.pow(g.y, 2) + Math.pow(t, 2) * Math.pow(g.x, 2));
|
|
500
502
|
f = f < 0 ? 0 : f;
|
|
501
|
-
const v = (i !== a ? 1 : -1) * Math.sqrt(f), y = v * (e * g.y / t), T = v * (-t * g.x / e),
|
|
502
|
-
let E = Te(
|
|
503
|
+
const v = (i !== a ? 1 : -1) * Math.sqrt(f), y = v * (e * g.y / t), T = v * (-t * g.x / e), C = { x: Math.cos(l) * y - Math.sin(l) * T + (n.x + s.x) / 2, y: Math.sin(l) * y + Math.cos(l) * T + (n.y + s.y) / 2 }, M = { x: (g.x - y) / e, y: (g.y - T) / t }, L = Te({ x: 1, y: 0 }, M);
|
|
504
|
+
let E = Te(M, { x: (-g.x - y) / e, y: (-g.y - T) / t });
|
|
503
505
|
!a && E > 0 ? E -= 2 * Math.PI : a && E < 0 && (E += 2 * Math.PI), E %= 2 * Math.PI;
|
|
504
|
-
const
|
|
505
|
-
return { x: Math.cos(l) *
|
|
506
|
-
}, "pointOnEllipticalArc"),
|
|
506
|
+
const S = L + E * r, k = e * Math.cos(S), F = t * Math.sin(S);
|
|
507
|
+
return { x: Math.cos(l) * k - Math.sin(l) * F + C.x, y: Math.sin(l) * k + Math.cos(l) * F + C.y, ellipticalArcStartAngle: L, ellipticalArcEndAngle: L + E, ellipticalArcAngle: S, ellipticalArcCenter: C, resultantRx: e, resultantRy: t };
|
|
508
|
+
}, "pointOnEllipticalArc"), F0 = _((n, e) => {
|
|
507
509
|
n = n ?? 500;
|
|
508
510
|
let t = 0;
|
|
509
511
|
const o = [], i = [];
|
|
510
512
|
let a, s = e(0);
|
|
511
513
|
for (let r = 0; r < n; r++) {
|
|
512
|
-
const l =
|
|
514
|
+
const l = q0(r * (1 / n), 0, 1);
|
|
513
515
|
a = e(l), t += Ae(s, a), i.push([s, a]), o.push({ t: l, arcLength: t }), s = a;
|
|
514
516
|
}
|
|
515
517
|
return a = e(1), i.push([s, a]), t += Ae(s, a), o.push({ t: 1, arcLength: t }), { arcLength: t, arcLengthMap: o, approximationLines: i };
|
|
516
|
-
}, "approximateArcLengthOfCurve"),
|
|
518
|
+
}, "approximateArcLengthOfCurve"), B0 = _((n, e) => (n % e + e) % e, "mod"), D0 = _((n) => n * (Math.PI / 180), "toRadians"), Ae = _((n, e) => Math.sqrt(Math.pow(e.x - n.x, 2) + Math.pow(e.y - n.y, 2)), "distance"), q0 = _((n, e, t) => Math.min(Math.max(n, e), t), "clamp"), Te = _((n, e) => {
|
|
517
519
|
const t = n.x * e.x + n.y * e.y, o = Math.sqrt((Math.pow(n.x, 2) + Math.pow(n.y, 2)) * (Math.pow(e.x, 2) + Math.pow(e.y, 2)));
|
|
518
520
|
return (n.x * e.y - n.y * e.x < 0 ? -1 : 1) * Math.acos(t / o);
|
|
519
|
-
}, "angleBetween"), D0 = [[], [], [-0.5773502691896257, 0.5773502691896258], [0, -0.7745966692414833, 0.7745966692414833], [-0.33998104358485626, 0.33998104358485626, -0.8611363115940526, 0.8611363115940526], [0, -0.5384693101056831, 0.5384693101056831, -0.906179845938664, 0.906179845938664], [0.6612093864662645, -0.6612093864662645, -0.2386191860831969, 0.2386191860831969, -0.932469514203152, 0.932469514203152], [0, 0.4058451513773972, -0.4058451513773972, -0.7415311855993945, 0.7415311855993945, -0.9491079123427585, 0.9491079123427585], [-0.1834346424956498, 0.1834346424956498, -0.525532409916329, 0.525532409916329, -0.7966664774136267, 0.7966664774136267, -0.9602898564975363, 0.9602898564975363], [0, -0.8360311073266358, 0.8360311073266358, -0.9681602395076261, 0.9681602395076261, -0.3242534234038089, 0.3242534234038089, -0.6133714327005904, 0.6133714327005904], [-0.14887433898163122, 0.14887433898163122, -0.4333953941292472, 0.4333953941292472, -0.6794095682990244, 0.6794095682990244, -0.8650633666889845, 0.8650633666889845, -0.9739065285171717, 0.9739065285171717], [0, -0.26954315595234496, 0.26954315595234496, -0.5190961292068118, 0.5190961292068118, -0.7301520055740494, 0.7301520055740494, -0.8870625997680953, 0.8870625997680953, -0.978228658146057, 0.978228658146057], [-0.1252334085114689, 0.1252334085114689, -0.3678314989981802, 0.3678314989981802, -0.5873179542866175, 0.5873179542866175, -0.7699026741943047, 0.7699026741943047, -0.9041172563704749, 0.9041172563704749, -0.9815606342467192, 0.9815606342467192], [0, -0.2304583159551348, 0.2304583159551348, -0.44849275103644687, 0.44849275103644687, -0.6423493394403402, 0.6423493394403402, -0.8015780907333099, 0.8015780907333099, -0.9175983992229779, 0.9175983992229779, -0.9841830547185881, 0.9841830547185881], [-0.10805494870734367, 0.10805494870734367, -0.31911236892788974, 0.31911236892788974, -0.5152486363581541, 0.5152486363581541, -0.6872929048116855, 0.6872929048116855, -0.827201315069765, 0.827201315069765, -0.9284348836635735, 0.9284348836635735, -0.9862838086968123, 0.9862838086968123], [0, -0.20119409399743451, 0.20119409399743451, -0.3941513470775634, 0.3941513470775634, -0.5709721726085388, 0.5709721726085388, -0.7244177313601701, 0.7244177313601701, -0.8482065834104272, 0.8482065834104272, -0.937273392400706, 0.937273392400706, -0.9879925180204854, 0.9879925180204854], [-0.09501250983763744, 0.09501250983763744, -0.2816035507792589, 0.2816035507792589, -0.45801677765722737, 0.45801677765722737, -0.6178762444026438, 0.6178762444026438, -0.755404408355003, 0.755404408355003, -0.8656312023878318, 0.8656312023878318, -0.9445750230732326, 0.9445750230732326, -0.9894009349916499, 0.9894009349916499], [0, -0.17848418149584785, 0.17848418149584785, -0.3512317634538763, 0.3512317634538763, -0.5126905370864769, 0.5126905370864769, -0.6576711592166907, 0.6576711592166907, -0.7815140038968014, 0.7815140038968014, -0.8802391537269859, 0.8802391537269859, -0.9506755217687678, 0.9506755217687678, -0.9905754753144174, 0.9905754753144174], [-0.0847750130417353, 0.0847750130417353, -0.2518862256915055, 0.2518862256915055, -0.41175116146284263, 0.41175116146284263, -0.5597708310739475, 0.5597708310739475, -0.6916870430603532, 0.6916870430603532, -0.8037049589725231, 0.8037049589725231, -0.8926024664975557, 0.8926024664975557, -0.9558239495713977, 0.9558239495713977, -0.9915651684209309, 0.9915651684209309], [0, -0.16035864564022537, 0.16035864564022537, -0.31656409996362983, 0.31656409996362983, -0.46457074137596094, 0.46457074137596094, -0.600545304661681, 0.600545304661681, -0.7209661773352294, 0.7209661773352294, -0.8227146565371428, 0.8227146565371428, -0.9031559036148179, 0.9031559036148179, -0.96020815213483, 0.96020815213483, -0.9924068438435844, 0.9924068438435844], [-0.07652652113349734, 0.07652652113349734, -0.22778585114164507, 0.22778585114164507, -0.37370608871541955, 0.37370608871541955, -0.5108670019508271, 0.5108670019508271, -0.636053680726515, 0.636053680726515, -0.7463319064601508, 0.7463319064601508, -0.8391169718222188, 0.8391169718222188, -0.912234428251326, 0.912234428251326, -0.9639719272779138, 0.9639719272779138, -0.9931285991850949, 0.9931285991850949], [0, -0.1455618541608951, 0.1455618541608951, -0.2880213168024011, 0.2880213168024011, -0.4243421202074388, 0.4243421202074388, -0.5516188358872198, 0.5516188358872198, -0.6671388041974123, 0.6671388041974123, -0.7684399634756779, 0.7684399634756779, -0.8533633645833173, 0.8533633645833173, -0.9200993341504008, 0.9200993341504008, -0.9672268385663063, 0.9672268385663063, -0.9937521706203895, 0.9937521706203895], [-0.06973927331972223, 0.06973927331972223, -0.20786042668822127, 0.20786042668822127, -0.34193582089208424, 0.34193582089208424, -0.469355837986757, 0.469355837986757, -0.5876404035069116, 0.5876404035069116, -0.6944872631866827, 0.6944872631866827, -0.7878168059792081, 0.7878168059792081, -0.8658125777203002, 0.8658125777203002, -0.926956772187174, 0.926956772187174, -0.9700604978354287, 0.9700604978354287, -0.9942945854823992, 0.9942945854823992], [0, -0.1332568242984661, 0.1332568242984661, -0.26413568097034495, 0.26413568097034495, -0.3903010380302908, 0.3903010380302908, -0.5095014778460075, 0.5095014778460075, -0.6196098757636461, 0.6196098757636461, -0.7186613631319502, 0.7186613631319502, -0.8048884016188399, 0.8048884016188399, -0.8767523582704416, 0.8767523582704416, -0.9329710868260161, 0.9329710868260161, -0.9725424712181152, 0.9725424712181152, -0.9947693349975522, 0.9947693349975522], [-0.06405689286260563, 0.06405689286260563, -0.1911188674736163, 0.1911188674736163, -0.3150426796961634, 0.3150426796961634, -0.4337935076260451, 0.4337935076260451, -0.5454214713888396, 0.5454214713888396, -0.6480936519369755, 0.6480936519369755, -0.7401241915785544, 0.7401241915785544, -0.820001985973903, 0.820001985973903, -0.8864155270044011, 0.8864155270044011, -0.9382745520027328, 0.9382745520027328, -0.9747285559713095, 0.9747285559713095, -0.9951872199970213, 0.9951872199970213]], q0 = [[], [], [1, 1], [0.8888888888888888, 0.5555555555555556, 0.5555555555555556], [0.6521451548625461, 0.6521451548625461, 0.34785484513745385, 0.34785484513745385], [0.5688888888888889, 0.47862867049936647, 0.47862867049936647, 0.23692688505618908, 0.23692688505618908], [0.3607615730481386, 0.3607615730481386, 0.46791393457269104, 0.46791393457269104, 0.17132449237917036, 0.17132449237917036], [0.4179591836734694, 0.3818300505051189, 0.3818300505051189, 0.27970539148927664, 0.27970539148927664, 0.1294849661688697, 0.1294849661688697], [0.362683783378362, 0.362683783378362, 0.31370664587788727, 0.31370664587788727, 0.22238103445337448, 0.22238103445337448, 0.10122853629037626, 0.10122853629037626], [0.3302393550012598, 0.1806481606948574, 0.1806481606948574, 0.08127438836157441, 0.08127438836157441, 0.31234707704000286, 0.31234707704000286, 0.26061069640293544, 0.26061069640293544], [0.29552422471475287, 0.29552422471475287, 0.26926671930999635, 0.26926671930999635, 0.21908636251598204, 0.21908636251598204, 0.1494513491505806, 0.1494513491505806, 0.06667134430868814, 0.06667134430868814], [0.2729250867779006, 0.26280454451024665, 0.26280454451024665, 0.23319376459199048, 0.23319376459199048, 0.18629021092773426, 0.18629021092773426, 0.1255803694649046, 0.1255803694649046, 0.05566856711617366, 0.05566856711617366], [0.24914704581340277, 0.24914704581340277, 0.2334925365383548, 0.2334925365383548, 0.20316742672306592, 0.20316742672306592, 0.16007832854334622, 0.16007832854334622, 0.10693932599531843, 0.10693932599531843, 0.04717533638651183, 0.04717533638651183], [0.2325515532308739, 0.22628318026289723, 0.22628318026289723, 0.2078160475368885, 0.2078160475368885, 0.17814598076194574, 0.17814598076194574, 0.13887351021978725, 0.13887351021978725, 0.09212149983772845, 0.09212149983772845, 0.04048400476531588, 0.04048400476531588], [0.2152638534631578, 0.2152638534631578, 0.2051984637212956, 0.2051984637212956, 0.18553839747793782, 0.18553839747793782, 0.15720316715819355, 0.15720316715819355, 0.12151857068790319, 0.12151857068790319, 0.08015808715976021, 0.08015808715976021, 0.03511946033175186, 0.03511946033175186], [0.2025782419255613, 0.19843148532711158, 0.19843148532711158, 0.1861610000155622, 0.1861610000155622, 0.16626920581699392, 0.16626920581699392, 0.13957067792615432, 0.13957067792615432, 0.10715922046717194, 0.10715922046717194, 0.07036604748810812, 0.07036604748810812, 0.03075324199611727, 0.03075324199611727], [0.1894506104550685, 0.1894506104550685, 0.18260341504492358, 0.18260341504492358, 0.16915651939500254, 0.16915651939500254, 0.14959598881657674, 0.14959598881657674, 0.12462897125553388, 0.12462897125553388, 0.09515851168249279, 0.09515851168249279, 0.062253523938647894, 0.062253523938647894, 0.027152459411754096, 0.027152459411754096], [0.17944647035620653, 0.17656270536699264, 0.17656270536699264, 0.16800410215645004, 0.16800410215645004, 0.15404576107681028, 0.15404576107681028, 0.13513636846852548, 0.13513636846852548, 0.11188384719340397, 0.11188384719340397, 0.08503614831717918, 0.08503614831717918, 0.0554595293739872, 0.0554595293739872, 0.02414830286854793, 0.02414830286854793], [0.1691423829631436, 0.1691423829631436, 0.16427648374583273, 0.16427648374583273, 0.15468467512626524, 0.15468467512626524, 0.14064291467065065, 0.14064291467065065, 0.12255520671147846, 0.12255520671147846, 0.10094204410628717, 0.10094204410628717, 0.07642573025488905, 0.07642573025488905, 0.0497145488949698, 0.0497145488949698, 0.02161601352648331, 0.02161601352648331], [0.1610544498487837, 0.15896884339395434, 0.15896884339395434, 0.15276604206585967, 0.15276604206585967, 0.1426067021736066, 0.1426067021736066, 0.12875396253933621, 0.12875396253933621, 0.11156664554733399, 0.11156664554733399, 0.09149002162245, 0.09149002162245, 0.06904454273764123, 0.06904454273764123, 0.0448142267656996, 0.0448142267656996, 0.019461788229726478, 0.019461788229726478], [0.15275338713072584, 0.15275338713072584, 0.14917298647260374, 0.14917298647260374, 0.14209610931838204, 0.14209610931838204, 0.13168863844917664, 0.13168863844917664, 0.11819453196151841, 0.11819453196151841, 0.10193011981724044, 0.10193011981724044, 0.08327674157670475, 0.08327674157670475, 0.06267204833410907, 0.06267204833410907, 0.04060142980038694, 0.04060142980038694, 0.017614007139152118, 0.017614007139152118], [0.14608113364969041, 0.14452440398997005, 0.14452440398997005, 0.13988739479107315, 0.13988739479107315, 0.13226893863333747, 0.13226893863333747, 0.12183141605372853, 0.12183141605372853, 0.10879729916714838, 0.10879729916714838, 0.09344442345603386, 0.09344442345603386, 0.0761001136283793, 0.0761001136283793, 0.057134425426857205, 0.057134425426857205, 0.036953789770852494, 0.036953789770852494, 0.016017228257774335, 0.016017228257774335], [0.13925187285563198, 0.13925187285563198, 0.13654149834601517, 0.13654149834601517, 0.13117350478706238, 0.13117350478706238, 0.12325237681051242, 0.12325237681051242, 0.11293229608053922, 0.11293229608053922, 0.10041414444288096, 0.10041414444288096, 0.08594160621706773, 0.08594160621706773, 0.06979646842452049, 0.06979646842452049, 0.052293335152683286, 0.052293335152683286, 0.03377490158481415, 0.03377490158481415, 0.0146279952982722, 0.0146279952982722], [0.13365457218610619, 0.1324620394046966, 0.1324620394046966, 0.12890572218808216, 0.12890572218808216, 0.12304908430672953, 0.12304908430672953, 0.11499664022241136, 0.11499664022241136, 0.10489209146454141, 0.10489209146454141, 0.09291576606003515, 0.09291576606003515, 0.07928141177671895, 0.07928141177671895, 0.06423242140852585, 0.06423242140852585, 0.04803767173108467, 0.04803767173108467, 0.030988005856979445, 0.030988005856979445, 0.013411859487141771, 0.013411859487141771], [0.12793819534675216, 0.12793819534675216, 0.1258374563468283, 0.1258374563468283, 0.12167047292780339, 0.12167047292780339, 0.1155056680537256, 0.1155056680537256, 0.10744427011596563, 0.10744427011596563, 0.09761865210411388, 0.09761865210411388, 0.08619016153195327, 0.08619016153195327, 0.0733464814110803, 0.0733464814110803, 0.05929858491543678, 0.05929858491543678, 0.04427743881741981, 0.04427743881741981, 0.028531388628933663, 0.028531388628933663, 0.0123412297999872, 0.0123412297999872]], z0 = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]], V0 = O((n, e, t) => ({ x: (1 - t) * (1 - t) * (1 - t) * n[0] + 3 * (1 - t) * (1 - t) * t * n[1] + 3 * (1 - t) * t * t * n[2] + t * t * t * n[3], y: (1 - t) * (1 - t) * (1 - t) * e[0] + 3 * (1 - t) * (1 - t) * t * e[1] + 3 * (1 - t) * t * t * e[2] + t * t * t * e[3] }), "cubicPoint"), j0 = O((n, e, t) => Qe([3 * (n[1] - n[0]), 3 * (n[2] - n[1]), 3 * (n[3] - n[2])], [3 * (e[1] - e[0]), 3 * (e[2] - e[1]), 3 * (e[3] - e[2])], t), "cubicDerivative"), U0 = O((n, e, t) => {
|
|
521
|
+
}, "angleBetween"), z0 = [[], [], [-0.5773502691896257, 0.5773502691896258], [0, -0.7745966692414833, 0.7745966692414833], [-0.33998104358485626, 0.33998104358485626, -0.8611363115940526, 0.8611363115940526], [0, -0.5384693101056831, 0.5384693101056831, -0.906179845938664, 0.906179845938664], [0.6612093864662645, -0.6612093864662645, -0.2386191860831969, 0.2386191860831969, -0.932469514203152, 0.932469514203152], [0, 0.4058451513773972, -0.4058451513773972, -0.7415311855993945, 0.7415311855993945, -0.9491079123427585, 0.9491079123427585], [-0.1834346424956498, 0.1834346424956498, -0.525532409916329, 0.525532409916329, -0.7966664774136267, 0.7966664774136267, -0.9602898564975363, 0.9602898564975363], [0, -0.8360311073266358, 0.8360311073266358, -0.9681602395076261, 0.9681602395076261, -0.3242534234038089, 0.3242534234038089, -0.6133714327005904, 0.6133714327005904], [-0.14887433898163122, 0.14887433898163122, -0.4333953941292472, 0.4333953941292472, -0.6794095682990244, 0.6794095682990244, -0.8650633666889845, 0.8650633666889845, -0.9739065285171717, 0.9739065285171717], [0, -0.26954315595234496, 0.26954315595234496, -0.5190961292068118, 0.5190961292068118, -0.7301520055740494, 0.7301520055740494, -0.8870625997680953, 0.8870625997680953, -0.978228658146057, 0.978228658146057], [-0.1252334085114689, 0.1252334085114689, -0.3678314989981802, 0.3678314989981802, -0.5873179542866175, 0.5873179542866175, -0.7699026741943047, 0.7699026741943047, -0.9041172563704749, 0.9041172563704749, -0.9815606342467192, 0.9815606342467192], [0, -0.2304583159551348, 0.2304583159551348, -0.44849275103644687, 0.44849275103644687, -0.6423493394403402, 0.6423493394403402, -0.8015780907333099, 0.8015780907333099, -0.9175983992229779, 0.9175983992229779, -0.9841830547185881, 0.9841830547185881], [-0.10805494870734367, 0.10805494870734367, -0.31911236892788974, 0.31911236892788974, -0.5152486363581541, 0.5152486363581541, -0.6872929048116855, 0.6872929048116855, -0.827201315069765, 0.827201315069765, -0.9284348836635735, 0.9284348836635735, -0.9862838086968123, 0.9862838086968123], [0, -0.20119409399743451, 0.20119409399743451, -0.3941513470775634, 0.3941513470775634, -0.5709721726085388, 0.5709721726085388, -0.7244177313601701, 0.7244177313601701, -0.8482065834104272, 0.8482065834104272, -0.937273392400706, 0.937273392400706, -0.9879925180204854, 0.9879925180204854], [-0.09501250983763744, 0.09501250983763744, -0.2816035507792589, 0.2816035507792589, -0.45801677765722737, 0.45801677765722737, -0.6178762444026438, 0.6178762444026438, -0.755404408355003, 0.755404408355003, -0.8656312023878318, 0.8656312023878318, -0.9445750230732326, 0.9445750230732326, -0.9894009349916499, 0.9894009349916499], [0, -0.17848418149584785, 0.17848418149584785, -0.3512317634538763, 0.3512317634538763, -0.5126905370864769, 0.5126905370864769, -0.6576711592166907, 0.6576711592166907, -0.7815140038968014, 0.7815140038968014, -0.8802391537269859, 0.8802391537269859, -0.9506755217687678, 0.9506755217687678, -0.9905754753144174, 0.9905754753144174], [-0.0847750130417353, 0.0847750130417353, -0.2518862256915055, 0.2518862256915055, -0.41175116146284263, 0.41175116146284263, -0.5597708310739475, 0.5597708310739475, -0.6916870430603532, 0.6916870430603532, -0.8037049589725231, 0.8037049589725231, -0.8926024664975557, 0.8926024664975557, -0.9558239495713977, 0.9558239495713977, -0.9915651684209309, 0.9915651684209309], [0, -0.16035864564022537, 0.16035864564022537, -0.31656409996362983, 0.31656409996362983, -0.46457074137596094, 0.46457074137596094, -0.600545304661681, 0.600545304661681, -0.7209661773352294, 0.7209661773352294, -0.8227146565371428, 0.8227146565371428, -0.9031559036148179, 0.9031559036148179, -0.96020815213483, 0.96020815213483, -0.9924068438435844, 0.9924068438435844], [-0.07652652113349734, 0.07652652113349734, -0.22778585114164507, 0.22778585114164507, -0.37370608871541955, 0.37370608871541955, -0.5108670019508271, 0.5108670019508271, -0.636053680726515, 0.636053680726515, -0.7463319064601508, 0.7463319064601508, -0.8391169718222188, 0.8391169718222188, -0.912234428251326, 0.912234428251326, -0.9639719272779138, 0.9639719272779138, -0.9931285991850949, 0.9931285991850949], [0, -0.1455618541608951, 0.1455618541608951, -0.2880213168024011, 0.2880213168024011, -0.4243421202074388, 0.4243421202074388, -0.5516188358872198, 0.5516188358872198, -0.6671388041974123, 0.6671388041974123, -0.7684399634756779, 0.7684399634756779, -0.8533633645833173, 0.8533633645833173, -0.9200993341504008, 0.9200993341504008, -0.9672268385663063, 0.9672268385663063, -0.9937521706203895, 0.9937521706203895], [-0.06973927331972223, 0.06973927331972223, -0.20786042668822127, 0.20786042668822127, -0.34193582089208424, 0.34193582089208424, -0.469355837986757, 0.469355837986757, -0.5876404035069116, 0.5876404035069116, -0.6944872631866827, 0.6944872631866827, -0.7878168059792081, 0.7878168059792081, -0.8658125777203002, 0.8658125777203002, -0.926956772187174, 0.926956772187174, -0.9700604978354287, 0.9700604978354287, -0.9942945854823992, 0.9942945854823992], [0, -0.1332568242984661, 0.1332568242984661, -0.26413568097034495, 0.26413568097034495, -0.3903010380302908, 0.3903010380302908, -0.5095014778460075, 0.5095014778460075, -0.6196098757636461, 0.6196098757636461, -0.7186613631319502, 0.7186613631319502, -0.8048884016188399, 0.8048884016188399, -0.8767523582704416, 0.8767523582704416, -0.9329710868260161, 0.9329710868260161, -0.9725424712181152, 0.9725424712181152, -0.9947693349975522, 0.9947693349975522], [-0.06405689286260563, 0.06405689286260563, -0.1911188674736163, 0.1911188674736163, -0.3150426796961634, 0.3150426796961634, -0.4337935076260451, 0.4337935076260451, -0.5454214713888396, 0.5454214713888396, -0.6480936519369755, 0.6480936519369755, -0.7401241915785544, 0.7401241915785544, -0.820001985973903, 0.820001985973903, -0.8864155270044011, 0.8864155270044011, -0.9382745520027328, 0.9382745520027328, -0.9747285559713095, 0.9747285559713095, -0.9951872199970213, 0.9951872199970213]], V0 = [[], [], [1, 1], [0.8888888888888888, 0.5555555555555556, 0.5555555555555556], [0.6521451548625461, 0.6521451548625461, 0.34785484513745385, 0.34785484513745385], [0.5688888888888889, 0.47862867049936647, 0.47862867049936647, 0.23692688505618908, 0.23692688505618908], [0.3607615730481386, 0.3607615730481386, 0.46791393457269104, 0.46791393457269104, 0.17132449237917036, 0.17132449237917036], [0.4179591836734694, 0.3818300505051189, 0.3818300505051189, 0.27970539148927664, 0.27970539148927664, 0.1294849661688697, 0.1294849661688697], [0.362683783378362, 0.362683783378362, 0.31370664587788727, 0.31370664587788727, 0.22238103445337448, 0.22238103445337448, 0.10122853629037626, 0.10122853629037626], [0.3302393550012598, 0.1806481606948574, 0.1806481606948574, 0.08127438836157441, 0.08127438836157441, 0.31234707704000286, 0.31234707704000286, 0.26061069640293544, 0.26061069640293544], [0.29552422471475287, 0.29552422471475287, 0.26926671930999635, 0.26926671930999635, 0.21908636251598204, 0.21908636251598204, 0.1494513491505806, 0.1494513491505806, 0.06667134430868814, 0.06667134430868814], [0.2729250867779006, 0.26280454451024665, 0.26280454451024665, 0.23319376459199048, 0.23319376459199048, 0.18629021092773426, 0.18629021092773426, 0.1255803694649046, 0.1255803694649046, 0.05566856711617366, 0.05566856711617366], [0.24914704581340277, 0.24914704581340277, 0.2334925365383548, 0.2334925365383548, 0.20316742672306592, 0.20316742672306592, 0.16007832854334622, 0.16007832854334622, 0.10693932599531843, 0.10693932599531843, 0.04717533638651183, 0.04717533638651183], [0.2325515532308739, 0.22628318026289723, 0.22628318026289723, 0.2078160475368885, 0.2078160475368885, 0.17814598076194574, 0.17814598076194574, 0.13887351021978725, 0.13887351021978725, 0.09212149983772845, 0.09212149983772845, 0.04048400476531588, 0.04048400476531588], [0.2152638534631578, 0.2152638534631578, 0.2051984637212956, 0.2051984637212956, 0.18553839747793782, 0.18553839747793782, 0.15720316715819355, 0.15720316715819355, 0.12151857068790319, 0.12151857068790319, 0.08015808715976021, 0.08015808715976021, 0.03511946033175186, 0.03511946033175186], [0.2025782419255613, 0.19843148532711158, 0.19843148532711158, 0.1861610000155622, 0.1861610000155622, 0.16626920581699392, 0.16626920581699392, 0.13957067792615432, 0.13957067792615432, 0.10715922046717194, 0.10715922046717194, 0.07036604748810812, 0.07036604748810812, 0.03075324199611727, 0.03075324199611727], [0.1894506104550685, 0.1894506104550685, 0.18260341504492358, 0.18260341504492358, 0.16915651939500254, 0.16915651939500254, 0.14959598881657674, 0.14959598881657674, 0.12462897125553388, 0.12462897125553388, 0.09515851168249279, 0.09515851168249279, 0.062253523938647894, 0.062253523938647894, 0.027152459411754096, 0.027152459411754096], [0.17944647035620653, 0.17656270536699264, 0.17656270536699264, 0.16800410215645004, 0.16800410215645004, 0.15404576107681028, 0.15404576107681028, 0.13513636846852548, 0.13513636846852548, 0.11188384719340397, 0.11188384719340397, 0.08503614831717918, 0.08503614831717918, 0.0554595293739872, 0.0554595293739872, 0.02414830286854793, 0.02414830286854793], [0.1691423829631436, 0.1691423829631436, 0.16427648374583273, 0.16427648374583273, 0.15468467512626524, 0.15468467512626524, 0.14064291467065065, 0.14064291467065065, 0.12255520671147846, 0.12255520671147846, 0.10094204410628717, 0.10094204410628717, 0.07642573025488905, 0.07642573025488905, 0.0497145488949698, 0.0497145488949698, 0.02161601352648331, 0.02161601352648331], [0.1610544498487837, 0.15896884339395434, 0.15896884339395434, 0.15276604206585967, 0.15276604206585967, 0.1426067021736066, 0.1426067021736066, 0.12875396253933621, 0.12875396253933621, 0.11156664554733399, 0.11156664554733399, 0.09149002162245, 0.09149002162245, 0.06904454273764123, 0.06904454273764123, 0.0448142267656996, 0.0448142267656996, 0.019461788229726478, 0.019461788229726478], [0.15275338713072584, 0.15275338713072584, 0.14917298647260374, 0.14917298647260374, 0.14209610931838204, 0.14209610931838204, 0.13168863844917664, 0.13168863844917664, 0.11819453196151841, 0.11819453196151841, 0.10193011981724044, 0.10193011981724044, 0.08327674157670475, 0.08327674157670475, 0.06267204833410907, 0.06267204833410907, 0.04060142980038694, 0.04060142980038694, 0.017614007139152118, 0.017614007139152118], [0.14608113364969041, 0.14452440398997005, 0.14452440398997005, 0.13988739479107315, 0.13988739479107315, 0.13226893863333747, 0.13226893863333747, 0.12183141605372853, 0.12183141605372853, 0.10879729916714838, 0.10879729916714838, 0.09344442345603386, 0.09344442345603386, 0.0761001136283793, 0.0761001136283793, 0.057134425426857205, 0.057134425426857205, 0.036953789770852494, 0.036953789770852494, 0.016017228257774335, 0.016017228257774335], [0.13925187285563198, 0.13925187285563198, 0.13654149834601517, 0.13654149834601517, 0.13117350478706238, 0.13117350478706238, 0.12325237681051242, 0.12325237681051242, 0.11293229608053922, 0.11293229608053922, 0.10041414444288096, 0.10041414444288096, 0.08594160621706773, 0.08594160621706773, 0.06979646842452049, 0.06979646842452049, 0.052293335152683286, 0.052293335152683286, 0.03377490158481415, 0.03377490158481415, 0.0146279952982722, 0.0146279952982722], [0.13365457218610619, 0.1324620394046966, 0.1324620394046966, 0.12890572218808216, 0.12890572218808216, 0.12304908430672953, 0.12304908430672953, 0.11499664022241136, 0.11499664022241136, 0.10489209146454141, 0.10489209146454141, 0.09291576606003515, 0.09291576606003515, 0.07928141177671895, 0.07928141177671895, 0.06423242140852585, 0.06423242140852585, 0.04803767173108467, 0.04803767173108467, 0.030988005856979445, 0.030988005856979445, 0.013411859487141771, 0.013411859487141771], [0.12793819534675216, 0.12793819534675216, 0.1258374563468283, 0.1258374563468283, 0.12167047292780339, 0.12167047292780339, 0.1155056680537256, 0.1155056680537256, 0.10744427011596563, 0.10744427011596563, 0.09761865210411388, 0.09761865210411388, 0.08619016153195327, 0.08619016153195327, 0.0733464814110803, 0.0733464814110803, 0.05929858491543678, 0.05929858491543678, 0.04427743881741981, 0.04427743881741981, 0.028531388628933663, 0.028531388628933663, 0.0123412297999872, 0.0123412297999872]], j0 = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]], H0 = _((n, e, t) => ({ x: (1 - t) * (1 - t) * (1 - t) * n[0] + 3 * (1 - t) * (1 - t) * t * n[1] + 3 * (1 - t) * t * t * n[2] + t * t * t * n[3], y: (1 - t) * (1 - t) * (1 - t) * e[0] + 3 * (1 - t) * (1 - t) * t * e[1] + 3 * (1 - t) * t * t * e[2] + t * t * t * e[3] }), "cubicPoint"), U0 = _((n, e, t) => Qe([3 * (n[1] - n[0]), 3 * (n[2] - n[1]), 3 * (n[3] - n[2])], [3 * (e[1] - e[0]), 3 * (e[2] - e[1]), 3 * (e[3] - e[2])], t), "cubicDerivative"), Y0 = _((n, e, t) => {
|
|
520
522
|
let o, i;
|
|
521
523
|
const a = t / 2;
|
|
522
524
|
o = 0;
|
|
523
|
-
for (let s = 0; s < 20; s++) i = a *
|
|
525
|
+
for (let s = 0; s < 20; s++) i = a * z0[20][s] + a, o += V0[20][s] * t0(n, e, i);
|
|
524
526
|
return a * o;
|
|
525
|
-
}, "getCubicArcLength"), Qe =
|
|
527
|
+
}, "getCubicArcLength"), Qe = _((n, e, t) => ({ x: (1 - t) * (1 - t) * n[0] + 2 * (1 - t) * t * n[1] + t * t * n[2], y: (1 - t) * (1 - t) * e[0] + 2 * (1 - t) * t * e[1] + t * t * e[2] }), "quadraticPoint"), $0 = _((n, e, t) => {
|
|
526
528
|
t === void 0 && (t = 1);
|
|
527
529
|
const o = n[0] - 2 * n[1] + n[2], i = e[0] - 2 * e[1] + e[2], a = 2 * n[1] - 2 * n[0], s = 2 * e[1] - 2 * e[0], r = 4 * (o * o + i * i), l = 4 * (o * a + i * s), c = a * a + s * s;
|
|
528
530
|
if (r === 0) return t * Math.sqrt(Math.pow(n[2] - n[0], 2) + Math.pow(e[2] - e[0], 2));
|
|
529
531
|
const u = l / (2 * r), g = t + u, h = c / r - u * u, f = g * g + h > 0 ? Math.sqrt(g * g + h) : 0, v = u * u + h > 0 ? Math.sqrt(u * u + h) : 0, y = u + Math.sqrt(u * u + h) !== 0 && (g + f) / (u + v) !== 0 ? h * Math.log(Math.abs((g + f) / (u + v))) : 0;
|
|
530
532
|
return Math.sqrt(r) / 2 * (g * f - u * v + y);
|
|
531
|
-
}, "getQuadraticArcLength"),
|
|
533
|
+
}, "getQuadraticArcLength"), W0 = _((n, e, t) => ({ x: 2 * (1 - t) * (n[1] - n[0]) + 2 * t * (n[2] - n[1]), y: 2 * (1 - t) * (e[1] - e[0]) + 2 * t * (e[2] - e[1]) }), "quadraticDerivative");
|
|
532
534
|
function t0(n, e, t) {
|
|
533
535
|
const o = te(1, t, n), i = te(1, t, e), a = o * o + i * i;
|
|
534
536
|
return Math.sqrt(a);
|
|
535
537
|
}
|
|
536
|
-
|
|
537
|
-
var te =
|
|
538
|
+
_(t0, "BFunc");
|
|
539
|
+
var te = _((n, e, t) => {
|
|
538
540
|
const o = t.length - 1;
|
|
539
541
|
let i, a;
|
|
540
542
|
if (o === 0) return 0;
|
|
541
543
|
if (n === 0) {
|
|
542
544
|
a = 0;
|
|
543
|
-
for (let s = 0; s <= o; s++) a +=
|
|
545
|
+
for (let s = 0; s <= o; s++) a += j0[o][s] * Math.pow(1 - e, o - s) * Math.pow(e, s) * t[s];
|
|
544
546
|
return a;
|
|
545
547
|
}
|
|
546
548
|
i = new Array(o);
|
|
547
549
|
for (let s = 0; s < o; s++) i[s] = o * (t[s + 1] - t[s]);
|
|
548
550
|
return te(n - 1, e, i);
|
|
549
|
-
}, "getDerivative"),
|
|
551
|
+
}, "getDerivative"), jt = _((n, e, t) => {
|
|
550
552
|
let o = 1, i = n / e, a = (n - t(i)) / e, s = 0;
|
|
551
553
|
for (; o > 1e-3; ) {
|
|
552
554
|
const r = t(i + a), l = Math.abs(n - r) / e;
|
|
@@ -558,7 +560,7 @@ var te = O((n, e, t) => {
|
|
|
558
560
|
if (s++, s > 500) break;
|
|
559
561
|
}
|
|
560
562
|
return i;
|
|
561
|
-
}, "t2length"), Tt,
|
|
563
|
+
}, "t2length"), Tt, ht = (Tt = class {
|
|
562
564
|
constructor(e, t, o, i, a, s, r, l) {
|
|
563
565
|
I(this, "a");
|
|
564
566
|
I(this, "b");
|
|
@@ -568,59 +570,59 @@ var te = O((n, e, t) => {
|
|
|
568
570
|
I(this, "getArcLength");
|
|
569
571
|
I(this, "getPoint");
|
|
570
572
|
I(this, "getDerivative");
|
|
571
|
-
I(this, "getTotalLength",
|
|
572
|
-
I(this, "getPointAtLength",
|
|
573
|
-
const t = [this.a.x, this.b.x, this.c.x, this.d.x], o = [this.a.y, this.b.y, this.c.y, this.d.y], i =
|
|
573
|
+
I(this, "getTotalLength", _(() => this.length, "getTotalLength"));
|
|
574
|
+
I(this, "getPointAtLength", _((e) => {
|
|
575
|
+
const t = [this.a.x, this.b.x, this.c.x, this.d.x], o = [this.a.y, this.b.y, this.c.y, this.d.y], i = jt(e, this.length, (a) => this.getArcLength(t, o, a));
|
|
574
576
|
return this.getPoint(t, o, i);
|
|
575
577
|
}, "getPointAtLength"));
|
|
576
|
-
I(this, "getTangentAtLength",
|
|
577
|
-
const t = [this.a.x, this.b.x, this.c.x, this.d.x], o = [this.a.y, this.b.y, this.c.y, this.d.y], i =
|
|
578
|
+
I(this, "getTangentAtLength", _((e) => {
|
|
579
|
+
const t = [this.a.x, this.b.x, this.c.x, this.d.x], o = [this.a.y, this.b.y, this.c.y, this.d.y], i = jt(e, this.length, (l) => this.getArcLength(t, o, l)), a = this.getDerivative(t, o, i), s = Math.sqrt(a.x * a.x + a.y * a.y);
|
|
578
580
|
let r;
|
|
579
581
|
return r = s > 0 ? { x: a.x / s, y: a.y / s } : { x: 0, y: 0 }, r;
|
|
580
582
|
}, "getTangentAtLength"));
|
|
581
|
-
I(this, "getPropertiesAtLength",
|
|
582
|
-
const t = [this.a.x, this.b.x, this.c.x, this.d.x], o = [this.a.y, this.b.y, this.c.y, this.d.y], i =
|
|
583
|
+
I(this, "getPropertiesAtLength", _((e) => {
|
|
584
|
+
const t = [this.a.x, this.b.x, this.c.x, this.d.x], o = [this.a.y, this.b.y, this.c.y, this.d.y], i = jt(e, this.length, (c) => this.getArcLength(t, o, c)), a = this.getDerivative(t, o, i), s = Math.sqrt(a.x * a.x + a.y * a.y);
|
|
583
585
|
let r;
|
|
584
586
|
r = s > 0 ? { x: a.x / s, y: a.y / s } : { x: 0, y: 0 };
|
|
585
587
|
const l = this.getPoint(t, o, i);
|
|
586
588
|
return { x: l.x, y: l.y, tangentX: r.x, tangentY: r.y };
|
|
587
589
|
}, "getPropertiesAtLength"));
|
|
588
|
-
I(this, "getC",
|
|
589
|
-
I(this, "getD",
|
|
590
|
-
this.a = { x: e, y: t }, this.b = { x: o, y: i }, this.c = { x: a, y: s }, r !== void 0 && l !== void 0 ? (this.getArcLength =
|
|
590
|
+
I(this, "getC", _(() => this.c, "getC"));
|
|
591
|
+
I(this, "getD", _(() => this.d, "getD"));
|
|
592
|
+
this.a = { x: e, y: t }, this.b = { x: o, y: i }, this.c = { x: a, y: s }, r !== void 0 && l !== void 0 ? (this.getArcLength = Y0, this.getPoint = H0, this.getDerivative = U0, this.d = { x: r, y: l }) : (this.getArcLength = $0, this.getPoint = Qe, this.getDerivative = W0, this.d = { x: 0, y: 0 }), this.length = this.getArcLength([this.a.x, this.b.x, this.c.x, this.d.x], [this.a.y, this.b.y, this.c.y, this.d.y], 1);
|
|
591
593
|
}
|
|
592
|
-
},
|
|
594
|
+
}, _(Tt, "Bezier"), Tt), Lt, G0 = (Lt = class {
|
|
593
595
|
constructor(e) {
|
|
594
596
|
I(this, "length", 0);
|
|
595
597
|
I(this, "partial_lengths", []);
|
|
596
598
|
I(this, "functions", []);
|
|
597
599
|
I(this, "initial_point", null);
|
|
598
|
-
I(this, "getPartAtLength",
|
|
600
|
+
I(this, "getPartAtLength", _((e) => {
|
|
599
601
|
e < 0 ? e = 0 : e > this.length && (e = this.length);
|
|
600
602
|
let t = this.partial_lengths.length - 1;
|
|
601
603
|
for (; this.partial_lengths[t] >= e && t > 0; ) t--;
|
|
602
604
|
return t++, { fraction: e - this.partial_lengths[t - 1], i: t };
|
|
603
605
|
}, "getPartAtLength"));
|
|
604
|
-
I(this, "getTotalLength",
|
|
605
|
-
I(this, "getPointAtLength",
|
|
606
|
+
I(this, "getTotalLength", _(() => this.length, "getTotalLength"));
|
|
607
|
+
I(this, "getPointAtLength", _((e) => {
|
|
606
608
|
const t = this.getPartAtLength(e), o = this.functions[t.i];
|
|
607
609
|
if (o) return o.getPointAtLength(t.fraction);
|
|
608
610
|
if (this.initial_point) return this.initial_point;
|
|
609
611
|
throw new Error("Wrong function at this part.");
|
|
610
612
|
}, "getPointAtLength"));
|
|
611
|
-
I(this, "getTangentAtLength",
|
|
613
|
+
I(this, "getTangentAtLength", _((e) => {
|
|
612
614
|
const t = this.getPartAtLength(e), o = this.functions[t.i];
|
|
613
615
|
if (o) return o.getTangentAtLength(t.fraction);
|
|
614
616
|
if (this.initial_point) return { x: 0, y: 0 };
|
|
615
617
|
throw new Error("Wrong function at this part.");
|
|
616
618
|
}, "getTangentAtLength"));
|
|
617
|
-
I(this, "getPropertiesAtLength",
|
|
619
|
+
I(this, "getPropertiesAtLength", _((e) => {
|
|
618
620
|
const t = this.getPartAtLength(e), o = this.functions[t.i];
|
|
619
621
|
if (o) return o.getPropertiesAtLength(t.fraction);
|
|
620
622
|
if (this.initial_point) return { x: this.initial_point.x, y: this.initial_point.y, tangentX: 0, tangentY: 0 };
|
|
621
623
|
throw new Error("Wrong function at this part.");
|
|
622
624
|
}, "getPropertiesAtLength"));
|
|
623
|
-
I(this, "getParts",
|
|
625
|
+
I(this, "getParts", _(() => {
|
|
624
626
|
const e = [];
|
|
625
627
|
for (let t = 0; t < this.functions.length; t++) if (this.functions[t] !== null) {
|
|
626
628
|
this.functions[t] = this.functions[t];
|
|
@@ -629,60 +631,60 @@ var te = O((n, e, t) => {
|
|
|
629
631
|
}
|
|
630
632
|
return e;
|
|
631
633
|
}, "getParts"));
|
|
632
|
-
const t = Array.isArray(e) ? e :
|
|
634
|
+
const t = Array.isArray(e) ? e : N0(e);
|
|
633
635
|
let o, i = [0, 0], a = [0, 0], s = [0, 0];
|
|
634
636
|
for (let r = 0; r < t.length; r++) {
|
|
635
637
|
if (t[r][0] === "M") i = [t[r][1], t[r][2]], s = [i[0], i[1]], this.functions.push(null), r === 0 && (this.initial_point = { x: t[r][1], y: t[r][2] });
|
|
636
638
|
else if (t[r][0] === "m") i = [t[r][1] + i[0], t[r][2] + i[1]], s = [i[0], i[1]], this.functions.push(null);
|
|
637
|
-
else if (t[r][0] === "L") this.length += Math.sqrt(Math.pow(i[0] - t[r][1], 2) + Math.pow(i[1] - t[r][2], 2)), this.functions.push(new
|
|
638
|
-
else if (t[r][0] === "l") this.length += Math.sqrt(Math.pow(t[r][1], 2) + Math.pow(t[r][2], 2)), this.functions.push(new
|
|
639
|
-
else if (t[r][0] === "H") this.length += Math.abs(i[0] - t[r][1]), this.functions.push(new
|
|
640
|
-
else if (t[r][0] === "h") this.length += Math.abs(t[r][1]), this.functions.push(new
|
|
641
|
-
else if (t[r][0] === "V") this.length += Math.abs(i[1] - t[r][1]), this.functions.push(new
|
|
642
|
-
else if (t[r][0] === "v") this.length += Math.abs(t[r][1]), this.functions.push(new
|
|
643
|
-
else if (t[r][0] === "z" || t[r][0] === "Z") this.length += Math.sqrt(Math.pow(s[0] - i[0], 2) + Math.pow(s[1] - i[1], 2)), this.functions.push(new
|
|
644
|
-
else if (t[r][0] === "C") o = new
|
|
645
|
-
else if (t[r][0] === "c") o = new
|
|
639
|
+
else if (t[r][0] === "L") this.length += Math.sqrt(Math.pow(i[0] - t[r][1], 2) + Math.pow(i[1] - t[r][2], 2)), this.functions.push(new tt(i[0], t[r][1], i[1], t[r][2])), i = [t[r][1], t[r][2]];
|
|
640
|
+
else if (t[r][0] === "l") this.length += Math.sqrt(Math.pow(t[r][1], 2) + Math.pow(t[r][2], 2)), this.functions.push(new tt(i[0], t[r][1] + i[0], i[1], t[r][2] + i[1])), i = [t[r][1] + i[0], t[r][2] + i[1]];
|
|
641
|
+
else if (t[r][0] === "H") this.length += Math.abs(i[0] - t[r][1]), this.functions.push(new tt(i[0], t[r][1], i[1], i[1])), i[0] = t[r][1];
|
|
642
|
+
else if (t[r][0] === "h") this.length += Math.abs(t[r][1]), this.functions.push(new tt(i[0], i[0] + t[r][1], i[1], i[1])), i[0] = t[r][1] + i[0];
|
|
643
|
+
else if (t[r][0] === "V") this.length += Math.abs(i[1] - t[r][1]), this.functions.push(new tt(i[0], i[0], i[1], t[r][1])), i[1] = t[r][1];
|
|
644
|
+
else if (t[r][0] === "v") this.length += Math.abs(t[r][1]), this.functions.push(new tt(i[0], i[0], i[1], i[1] + t[r][1])), i[1] = t[r][1] + i[1];
|
|
645
|
+
else if (t[r][0] === "z" || t[r][0] === "Z") this.length += Math.sqrt(Math.pow(s[0] - i[0], 2) + Math.pow(s[1] - i[1], 2)), this.functions.push(new tt(i[0], s[0], i[1], s[1])), i = [s[0], s[1]];
|
|
646
|
+
else if (t[r][0] === "C") o = new ht(i[0], i[1], t[r][1], t[r][2], t[r][3], t[r][4], t[r][5], t[r][6]), this.length += o.getTotalLength(), i = [t[r][5], t[r][6]], this.functions.push(o);
|
|
647
|
+
else if (t[r][0] === "c") o = new ht(i[0], i[1], i[0] + t[r][1], i[1] + t[r][2], i[0] + t[r][3], i[1] + t[r][4], i[0] + t[r][5], i[1] + t[r][6]), o.getTotalLength() > 0 ? (this.length += o.getTotalLength(), this.functions.push(o), i = [t[r][5] + i[0], t[r][6] + i[1]]) : this.functions.push(new tt(i[0], i[0], i[1], i[1]));
|
|
646
648
|
else if (t[r][0] === "S") {
|
|
647
649
|
if (r > 0 && ["C", "c", "S", "s"].indexOf(t[r - 1][0]) > -1) {
|
|
648
650
|
if (o) {
|
|
649
651
|
const l = o.getC();
|
|
650
|
-
o = new
|
|
652
|
+
o = new ht(i[0], i[1], 2 * i[0] - l.x, 2 * i[1] - l.y, t[r][1], t[r][2], t[r][3], t[r][4]);
|
|
651
653
|
}
|
|
652
|
-
} else o = new
|
|
654
|
+
} else o = new ht(i[0], i[1], i[0], i[1], t[r][1], t[r][2], t[r][3], t[r][4]);
|
|
653
655
|
o && (this.length += o.getTotalLength(), i = [t[r][3], t[r][4]], this.functions.push(o));
|
|
654
656
|
} else if (t[r][0] === "s") {
|
|
655
657
|
if (r > 0 && ["C", "c", "S", "s"].indexOf(t[r - 1][0]) > -1) {
|
|
656
658
|
if (o) {
|
|
657
659
|
const l = o.getC(), c = o.getD();
|
|
658
|
-
o = new
|
|
660
|
+
o = new ht(i[0], i[1], i[0] + c.x - l.x, i[1] + c.y - l.y, i[0] + t[r][1], i[1] + t[r][2], i[0] + t[r][3], i[1] + t[r][4]);
|
|
659
661
|
}
|
|
660
|
-
} else o = new
|
|
662
|
+
} else o = new ht(i[0], i[1], i[0], i[1], i[0] + t[r][1], i[1] + t[r][2], i[0] + t[r][3], i[1] + t[r][4]);
|
|
661
663
|
o && (this.length += o.getTotalLength(), i = [t[r][3] + i[0], t[r][4] + i[1]], this.functions.push(o));
|
|
662
664
|
} else if (t[r][0] === "Q") {
|
|
663
665
|
if (i[0] === t[r][1] && i[1] === t[r][2]) {
|
|
664
|
-
const l = new
|
|
666
|
+
const l = new tt(t[r][1], t[r][3], t[r][2], t[r][4]);
|
|
665
667
|
this.length += l.getTotalLength(), this.functions.push(l);
|
|
666
|
-
} else o = new
|
|
668
|
+
} else o = new ht(i[0], i[1], t[r][1], t[r][2], t[r][3], t[r][4], void 0, void 0), this.length += o.getTotalLength(), this.functions.push(o);
|
|
667
669
|
i = [t[r][3], t[r][4]], a = [t[r][1], t[r][2]];
|
|
668
670
|
} else if (t[r][0] === "q") {
|
|
669
|
-
if (t[r][1] !== 0 || t[r][2] !== 0) o = new
|
|
671
|
+
if (t[r][1] !== 0 || t[r][2] !== 0) o = new ht(i[0], i[1], i[0] + t[r][1], i[1] + t[r][2], i[0] + t[r][3], i[1] + t[r][4], void 0, void 0), this.length += o.getTotalLength(), this.functions.push(o);
|
|
670
672
|
else {
|
|
671
|
-
const l = new
|
|
673
|
+
const l = new tt(i[0] + t[r][1], i[0] + t[r][3], i[1] + t[r][2], i[1] + t[r][4]);
|
|
672
674
|
this.length += l.getTotalLength(), this.functions.push(l);
|
|
673
675
|
}
|
|
674
676
|
a = [i[0] + t[r][1], i[1] + t[r][2]], i = [t[r][3] + i[0], t[r][4] + i[1]];
|
|
675
677
|
} else if (t[r][0] === "T") {
|
|
676
|
-
if (r > 0 && ["Q", "q", "T", "t"].indexOf(t[r - 1][0]) > -1) o = new
|
|
678
|
+
if (r > 0 && ["Q", "q", "T", "t"].indexOf(t[r - 1][0]) > -1) o = new ht(i[0], i[1], 2 * i[0] - a[0], 2 * i[1] - a[1], t[r][1], t[r][2], void 0, void 0), this.functions.push(o), this.length += o.getTotalLength();
|
|
677
679
|
else {
|
|
678
|
-
const l = new
|
|
680
|
+
const l = new tt(i[0], t[r][1], i[1], t[r][2]);
|
|
679
681
|
this.functions.push(l), this.length += l.getTotalLength();
|
|
680
682
|
}
|
|
681
683
|
a = [2 * i[0] - a[0], 2 * i[1] - a[1]], i = [t[r][1], t[r][2]];
|
|
682
684
|
} else if (t[r][0] === "t") {
|
|
683
|
-
if (r > 0 && ["Q", "q", "T", "t"].indexOf(t[r - 1][0]) > -1) o = new
|
|
685
|
+
if (r > 0 && ["Q", "q", "T", "t"].indexOf(t[r - 1][0]) > -1) o = new ht(i[0], i[1], 2 * i[0] - a[0], 2 * i[1] - a[1], i[0] + t[r][1], i[1] + t[r][2], void 0, void 0), this.length += o.getTotalLength(), this.functions.push(o);
|
|
684
686
|
else {
|
|
685
|
-
const l = new
|
|
687
|
+
const l = new tt(i[0], i[0] + t[r][1], i[1], i[1] + t[r][2]);
|
|
686
688
|
this.length += l.getTotalLength(), this.functions.push(l);
|
|
687
689
|
}
|
|
688
690
|
a = [2 * i[0] - a[0], 2 * i[1] - a[1]], i = [t[r][1] + i[0], t[r][2] + i[1]];
|
|
@@ -696,28 +698,28 @@ var te = O((n, e, t) => {
|
|
|
696
698
|
this.partial_lengths.push(this.length);
|
|
697
699
|
}
|
|
698
700
|
}
|
|
699
|
-
},
|
|
701
|
+
}, _(Lt, "SVGPathProperties"), Lt), Mt, ee = (Mt = class {
|
|
700
702
|
constructor(e) {
|
|
701
703
|
I(this, "inst");
|
|
702
|
-
I(this, "getTotalLength",
|
|
703
|
-
I(this, "getPointAtLength",
|
|
704
|
-
I(this, "getTangentAtLength",
|
|
705
|
-
I(this, "getPropertiesAtLength",
|
|
706
|
-
I(this, "getParts",
|
|
707
|
-
if (this.inst = new
|
|
704
|
+
I(this, "getTotalLength", _(() => this.inst.getTotalLength(), "getTotalLength"));
|
|
705
|
+
I(this, "getPointAtLength", _((e) => this.inst.getPointAtLength(e), "getPointAtLength"));
|
|
706
|
+
I(this, "getTangentAtLength", _((e) => this.inst.getTangentAtLength(e), "getTangentAtLength"));
|
|
707
|
+
I(this, "getPropertiesAtLength", _((e) => this.inst.getPropertiesAtLength(e), "getPropertiesAtLength"));
|
|
708
|
+
I(this, "getParts", _(() => this.inst.getParts(), "getParts"));
|
|
709
|
+
if (this.inst = new G0(e), !(this instanceof ee)) return new ee(e);
|
|
708
710
|
}
|
|
709
|
-
},
|
|
710
|
-
function
|
|
711
|
+
}, _(Mt, "_svgPathProperties"), Mt);
|
|
712
|
+
function X0(n = G.BLACK) {
|
|
711
713
|
return { ...n, alpha: 0 };
|
|
712
714
|
}
|
|
713
|
-
function
|
|
715
|
+
function _i(n = null) {
|
|
714
716
|
const { path: e, height: t = 100, width: o = 100, viewboxHeight: i, viewboxWidth: a, ...s } = n ?? {}, r = e ?? "M 0 0 L 100 100", c = new ee(r).getTotalLength();
|
|
715
|
-
return
|
|
716
|
-
objectType:
|
|
717
|
-
anchor:
|
|
717
|
+
return nt({
|
|
718
|
+
objectType: V.PATH,
|
|
719
|
+
anchor: et,
|
|
718
720
|
strokeColor: J,
|
|
719
721
|
drawn: 1,
|
|
720
|
-
fillColor:
|
|
722
|
+
fillColor: X0(),
|
|
721
723
|
isRounded: !1,
|
|
722
724
|
height: t,
|
|
723
725
|
path: r,
|
|
@@ -731,9 +733,9 @@ function Si(n = null) {
|
|
|
731
733
|
...s
|
|
732
734
|
});
|
|
733
735
|
}
|
|
734
|
-
function
|
|
735
|
-
return
|
|
736
|
-
objectType:
|
|
736
|
+
function Ni(n = null) {
|
|
737
|
+
return nt({
|
|
738
|
+
objectType: V.POLYGON,
|
|
737
739
|
strokeColor: J,
|
|
738
740
|
strokeWidth: 0,
|
|
739
741
|
drawn: 1,
|
|
@@ -746,10 +748,10 @@ function Pi(n = null) {
|
|
|
746
748
|
...n
|
|
747
749
|
});
|
|
748
750
|
}
|
|
749
|
-
function
|
|
750
|
-
return
|
|
751
|
-
objectType:
|
|
752
|
-
anchor:
|
|
751
|
+
function Ri(n = null) {
|
|
752
|
+
return nt({
|
|
753
|
+
objectType: V.RECTANGLE,
|
|
754
|
+
anchor: et,
|
|
753
755
|
strokeColor: J,
|
|
754
756
|
strokeWidth: 0,
|
|
755
757
|
drawn: 1,
|
|
@@ -762,10 +764,10 @@ function Ei(n = null) {
|
|
|
762
764
|
...n
|
|
763
765
|
});
|
|
764
766
|
}
|
|
765
|
-
function
|
|
766
|
-
return
|
|
767
|
-
objectType:
|
|
768
|
-
anchor:
|
|
767
|
+
function Fi(n = null) {
|
|
768
|
+
return nt({
|
|
769
|
+
objectType: V.SPOTLIGHT,
|
|
770
|
+
anchor: et,
|
|
769
771
|
color: G(0, 0, 0, 0.8),
|
|
770
772
|
height: 200,
|
|
771
773
|
cornerRadius: 50,
|
|
@@ -775,10 +777,10 @@ function Ii(n = null) {
|
|
|
775
777
|
...n
|
|
776
778
|
});
|
|
777
779
|
}
|
|
778
|
-
function
|
|
779
|
-
return
|
|
780
|
-
objectType:
|
|
781
|
-
anchor:
|
|
780
|
+
function Bi(n = null) {
|
|
781
|
+
return nt({
|
|
782
|
+
objectType: V.SVG,
|
|
783
|
+
anchor: et,
|
|
782
784
|
height: 100,
|
|
783
785
|
svg: "",
|
|
784
786
|
width: 100,
|
|
@@ -787,11 +789,11 @@ function ki(n = null) {
|
|
|
787
789
|
...n
|
|
788
790
|
});
|
|
789
791
|
}
|
|
790
|
-
const
|
|
792
|
+
const K0 = {
|
|
791
793
|
NORMAL: "normal",
|
|
792
794
|
ITALIC: "italic",
|
|
793
795
|
OBLIQUE: "oblique"
|
|
794
|
-
},
|
|
796
|
+
}, Z0 = K0.NORMAL, J0 = {
|
|
795
797
|
THIN: 100,
|
|
796
798
|
EXTRA_LIGHT: 200,
|
|
797
799
|
LIGHT: 300,
|
|
@@ -801,12 +803,12 @@ const G0 = {
|
|
|
801
803
|
BOLD: 700,
|
|
802
804
|
EXTRA_BOLD: 800,
|
|
803
805
|
BLACK: 900
|
|
804
|
-
},
|
|
806
|
+
}, Q0 = J0.NORMAL, tn = {
|
|
805
807
|
color: J,
|
|
806
808
|
fontFamily: "sans-serif",
|
|
807
809
|
fontSize: 100,
|
|
808
|
-
fontStyle:
|
|
809
|
-
fontWeight:
|
|
810
|
+
fontStyle: Z0,
|
|
811
|
+
fontWeight: Q0,
|
|
810
812
|
ligatures: !1,
|
|
811
813
|
subscript: !1,
|
|
812
814
|
superscript: !1
|
|
@@ -814,48 +816,49 @@ const G0 = {
|
|
|
814
816
|
function e0(n) {
|
|
815
817
|
return typeof n == "string" ? [[{ text: n }]] : n.map((e) => e.map((t) => typeof t == "string" ? { text: t } : t));
|
|
816
818
|
}
|
|
817
|
-
function
|
|
819
|
+
function en(n) {
|
|
818
820
|
return e0(n).reduce(
|
|
819
821
|
(t, o) => t + o.reduce((i, a) => i + a.text.length, 0),
|
|
820
822
|
0
|
|
821
823
|
);
|
|
822
824
|
}
|
|
823
|
-
function
|
|
824
|
-
return
|
|
825
|
-
objectType:
|
|
826
|
-
alignment:
|
|
827
|
-
anchor:
|
|
825
|
+
function nn(n = "", e = null) {
|
|
826
|
+
return nt({
|
|
827
|
+
objectType: V.TEXT,
|
|
828
|
+
alignment: E0,
|
|
829
|
+
anchor: et,
|
|
828
830
|
length: null,
|
|
829
831
|
lineSpacing: 1,
|
|
830
832
|
text: n,
|
|
831
833
|
x: 0,
|
|
832
834
|
y: 0,
|
|
833
|
-
...
|
|
835
|
+
...tn,
|
|
834
836
|
...e
|
|
835
837
|
});
|
|
836
838
|
}
|
|
837
|
-
|
|
839
|
+
nn.writeOn = (n, e = {}) => ce(
|
|
838
840
|
n,
|
|
839
841
|
{
|
|
840
|
-
length:
|
|
842
|
+
length: en(n.text)
|
|
841
843
|
},
|
|
842
844
|
e
|
|
843
845
|
);
|
|
844
|
-
const ue = "presenter.navigator.state",
|
|
846
|
+
const ue = "presenter.navigator.state", xt = {
|
|
845
847
|
open: !1,
|
|
846
848
|
visibility: {
|
|
847
849
|
slides: !0,
|
|
848
850
|
current: !0,
|
|
849
|
-
next: !0
|
|
851
|
+
next: !0,
|
|
852
|
+
notes: !1
|
|
850
853
|
}
|
|
851
854
|
};
|
|
852
855
|
function fe() {
|
|
853
856
|
return typeof document > "u" ? !1 : Array.from(document.scripts).some((n) => n.src.includes("/@vite/client"));
|
|
854
857
|
}
|
|
855
|
-
function
|
|
858
|
+
function rn() {
|
|
856
859
|
return fe() ? de().open : !1;
|
|
857
860
|
}
|
|
858
|
-
function
|
|
861
|
+
function on() {
|
|
859
862
|
i0({
|
|
860
863
|
...de(),
|
|
861
864
|
open: !0
|
|
@@ -866,24 +869,25 @@ function n0() {
|
|
|
866
869
|
(n = ge()) == null || n.removeItem(ue);
|
|
867
870
|
}
|
|
868
871
|
function de() {
|
|
869
|
-
var n, e, t, o;
|
|
872
|
+
var n, e, t, o, i;
|
|
870
873
|
if (!fe())
|
|
871
|
-
return
|
|
874
|
+
return xt;
|
|
872
875
|
try {
|
|
873
|
-
const
|
|
874
|
-
if (
|
|
875
|
-
return
|
|
876
|
-
const
|
|
876
|
+
const a = (n = ge()) == null ? void 0 : n.getItem(ue);
|
|
877
|
+
if (a == null)
|
|
878
|
+
return xt;
|
|
879
|
+
const s = JSON.parse(a);
|
|
877
880
|
return {
|
|
878
|
-
open: typeof
|
|
881
|
+
open: typeof s.open == "boolean" ? s.open : xt.open,
|
|
879
882
|
visibility: {
|
|
880
|
-
slides: typeof ((e =
|
|
881
|
-
current: typeof ((t =
|
|
882
|
-
next: typeof ((o =
|
|
883
|
+
slides: typeof ((e = s.visibility) == null ? void 0 : e.slides) == "boolean" ? s.visibility.slides : xt.visibility.slides,
|
|
884
|
+
current: typeof ((t = s.visibility) == null ? void 0 : t.current) == "boolean" ? s.visibility.current : xt.visibility.current,
|
|
885
|
+
next: typeof ((o = s.visibility) == null ? void 0 : o.next) == "boolean" ? s.visibility.next : xt.visibility.next,
|
|
886
|
+
notes: typeof ((i = s.visibility) == null ? void 0 : i.notes) == "boolean" ? s.visibility.notes : xt.visibility.notes
|
|
883
887
|
}
|
|
884
888
|
};
|
|
885
889
|
} catch {
|
|
886
|
-
return
|
|
890
|
+
return xt;
|
|
887
891
|
}
|
|
888
892
|
}
|
|
889
893
|
function i0(n) {
|
|
@@ -897,6 +901,20 @@ function ge() {
|
|
|
897
901
|
return null;
|
|
898
902
|
}
|
|
899
903
|
}
|
|
904
|
+
function sn(n = null) {
|
|
905
|
+
return {
|
|
906
|
+
objects: [],
|
|
907
|
+
animations: [],
|
|
908
|
+
extras: [],
|
|
909
|
+
isAllKey: !1,
|
|
910
|
+
isEndKey: !0,
|
|
911
|
+
isStartKey: !1,
|
|
912
|
+
notes: null,
|
|
913
|
+
shortcut: null,
|
|
914
|
+
title: "",
|
|
915
|
+
...n
|
|
916
|
+
};
|
|
917
|
+
}
|
|
900
918
|
function r0(n) {
|
|
901
919
|
return n.altKey || n.ctrlKey || n.metaKey || n.shiftKey;
|
|
902
920
|
}
|
|
@@ -907,7 +925,7 @@ function Le(n) {
|
|
|
907
925
|
const e = n, t = (o = e.tagName) == null ? void 0 : o.toLowerCase();
|
|
908
926
|
return t === "input" || t === "textarea" || t === "select" || t === "button" || e.isContentEditable ? !0 : (((i = e.closest) == null ? void 0 : i.call(e, "[contenteditable=''], [contenteditable='true']")) ?? null) !== null;
|
|
909
927
|
}
|
|
910
|
-
function
|
|
928
|
+
function an(n) {
|
|
911
929
|
var o;
|
|
912
930
|
const { slides: e } = n, t = {
|
|
913
931
|
// First build of first slide
|
|
@@ -925,20 +943,20 @@ function rn(n) {
|
|
|
925
943
|
if (a === void 0)
|
|
926
944
|
continue;
|
|
927
945
|
const s = a.shortcut;
|
|
928
|
-
|
|
946
|
+
Ht(t, s, i, 0);
|
|
929
947
|
for (let r = 0; r < a.animations.length; r++) {
|
|
930
948
|
const l = a.animations[r];
|
|
931
949
|
if (l !== void 0)
|
|
932
950
|
if (Array.isArray(l))
|
|
933
951
|
for (const c of l)
|
|
934
|
-
|
|
952
|
+
Ht(t, c.shortcut, i, r + 1);
|
|
935
953
|
else
|
|
936
|
-
|
|
954
|
+
Ht(t, l.shortcut, i, r + 1);
|
|
937
955
|
}
|
|
938
956
|
}
|
|
939
957
|
return t;
|
|
940
958
|
}
|
|
941
|
-
function
|
|
959
|
+
function Ht(n, e, t, o) {
|
|
942
960
|
if (e !== null)
|
|
943
961
|
if (Array.isArray(e))
|
|
944
962
|
for (const i of e)
|
|
@@ -951,7 +969,7 @@ function Me(n, e) {
|
|
|
951
969
|
return t !== void 0 ? t : isNaN(Number(e)) ? null : { slideIndex: Number(e) - 1, buildIndex: 0 };
|
|
952
970
|
}
|
|
953
971
|
function o0(n, e, t, { onNext: o, onPrevious: i, onRenderSlide: a, onShowNavigator: s }, { focusOnPointerDown: r = !1, keyEventTarget: l = e, signal: c } = {}) {
|
|
954
|
-
t.shortcuts =
|
|
972
|
+
t.shortcuts = an(n);
|
|
955
973
|
const u = c === void 0 ? void 0 : { signal: c };
|
|
956
974
|
r && (e.hasAttribute("tabindex") || (e.tabIndex = -1), e.addEventListener(
|
|
957
975
|
"pointerdown",
|
|
@@ -983,7 +1001,7 @@ function o0(n, e, t, { onNext: o, onPrevious: i, onRenderSlide: a, onShowNavigat
|
|
|
983
1001
|
i(h.shiftKey);
|
|
984
1002
|
return;
|
|
985
1003
|
}
|
|
986
|
-
const f =
|
|
1004
|
+
const f = ln(h);
|
|
987
1005
|
if (f !== null) {
|
|
988
1006
|
const v = Me(
|
|
989
1007
|
t.shortcuts,
|
|
@@ -1017,10 +1035,32 @@ function o0(n, e, t, { onNext: o, onPrevious: i, onRenderSlide: a, onShowNavigat
|
|
|
1017
1035
|
u
|
|
1018
1036
|
);
|
|
1019
1037
|
}
|
|
1020
|
-
function
|
|
1038
|
+
function ln(n) {
|
|
1021
1039
|
return !n.altKey || n.ctrlKey || n.metaKey || n.shiftKey ? null : n.code.startsWith("Key") && n.code.length === 4 ? n.code.slice(3).toLowerCase() : n.code.startsWith("Digit") && n.code.length === 6 ? n.code.slice(5) : n.code.startsWith("Numpad") && n.code.length === 7 ? n.code.slice(6) : null;
|
|
1022
1040
|
}
|
|
1023
|
-
|
|
1041
|
+
function hn(n, e) {
|
|
1042
|
+
for (let t = Math.min(e, n.animations.length); t >= 0; t--) {
|
|
1043
|
+
const o = cn(n, t);
|
|
1044
|
+
if (o !== null)
|
|
1045
|
+
return o;
|
|
1046
|
+
}
|
|
1047
|
+
return null;
|
|
1048
|
+
}
|
|
1049
|
+
function cn(n, e) {
|
|
1050
|
+
if (e === 0)
|
|
1051
|
+
return n.notes;
|
|
1052
|
+
const t = n.animations[e - 1];
|
|
1053
|
+
return t === void 0 ? null : un(t);
|
|
1054
|
+
}
|
|
1055
|
+
function un(n) {
|
|
1056
|
+
if (!Array.isArray(n))
|
|
1057
|
+
return n.notes;
|
|
1058
|
+
const e = n.map(({ notes: t }) => t).filter((t) => t !== null);
|
|
1059
|
+
return e.length > 0 ? e.join(`
|
|
1060
|
+
|
|
1061
|
+
`) : null;
|
|
1062
|
+
}
|
|
1063
|
+
let N = null, Ft = null, wt = null;
|
|
1024
1064
|
const Ce = "__presenterNavigatorInstanceId";
|
|
1025
1065
|
let s0 = {
|
|
1026
1066
|
width: 700,
|
|
@@ -1028,7 +1068,7 @@ let s0 = {
|
|
|
1028
1068
|
left: 20,
|
|
1029
1069
|
top: 50
|
|
1030
1070
|
};
|
|
1031
|
-
function
|
|
1071
|
+
function fn({
|
|
1032
1072
|
presentation: n,
|
|
1033
1073
|
shortcutState: e,
|
|
1034
1074
|
onNavigateToSlide: t,
|
|
@@ -1037,20 +1077,20 @@ function sn({
|
|
|
1037
1077
|
onPrevious: a,
|
|
1038
1078
|
forceRefresh: s = !1
|
|
1039
1079
|
}) {
|
|
1040
|
-
if (
|
|
1041
|
-
return
|
|
1042
|
-
if ((
|
|
1080
|
+
if (N !== null && !N.closed && (Bt(N), !s))
|
|
1081
|
+
return N.focus(), Ft;
|
|
1082
|
+
if ((N === null || N.closed) && (N = window.open("", "Navigator", yn())), N === null)
|
|
1043
1083
|
return console.error("Failed to open navigator window."), null;
|
|
1044
|
-
|
|
1045
|
-
const r =
|
|
1046
|
-
|
|
1047
|
-
const c =
|
|
1084
|
+
wt == null || wt();
|
|
1085
|
+
const r = vn(N), l = new AbortController();
|
|
1086
|
+
wt = () => l.abort();
|
|
1087
|
+
const c = dn(
|
|
1048
1088
|
n,
|
|
1049
1089
|
t,
|
|
1050
1090
|
i,
|
|
1051
1091
|
r.isActive
|
|
1052
1092
|
);
|
|
1053
|
-
return
|
|
1093
|
+
return Ft = c, on(), N.document.title = n.title, N.document.body.replaceChildren(c.element), o0(
|
|
1054
1094
|
n,
|
|
1055
1095
|
c.element,
|
|
1056
1096
|
e,
|
|
@@ -1069,20 +1109,20 @@ function sn({
|
|
|
1069
1109
|
}
|
|
1070
1110
|
},
|
|
1071
1111
|
{
|
|
1072
|
-
keyEventTarget:
|
|
1112
|
+
keyEventTarget: N,
|
|
1073
1113
|
signal: l.signal
|
|
1074
1114
|
}
|
|
1075
|
-
),
|
|
1115
|
+
), N.addEventListener("resize", () => Bt(N), {
|
|
1076
1116
|
signal: l.signal
|
|
1077
|
-
}),
|
|
1117
|
+
}), N.addEventListener(
|
|
1078
1118
|
"beforeunload",
|
|
1079
1119
|
() => {
|
|
1080
|
-
|
|
1120
|
+
Bt(N), n0();
|
|
1081
1121
|
},
|
|
1082
1122
|
{
|
|
1083
1123
|
signal: l.signal
|
|
1084
1124
|
}
|
|
1085
|
-
),
|
|
1125
|
+
), N.addEventListener(
|
|
1086
1126
|
"keyup",
|
|
1087
1127
|
(u) => {
|
|
1088
1128
|
r.isActive() && (u.key === "Escape" || u.key === "`" && !r0(u)) && ne();
|
|
@@ -1090,10 +1130,10 @@ function sn({
|
|
|
1090
1130
|
{
|
|
1091
1131
|
signal: l.signal
|
|
1092
1132
|
}
|
|
1093
|
-
),
|
|
1133
|
+
), Ft;
|
|
1094
1134
|
}
|
|
1095
|
-
function
|
|
1096
|
-
const i = (
|
|
1135
|
+
function dn(n, e, t, o = () => !0) {
|
|
1136
|
+
const i = (N == null ? void 0 : N.document) ?? document, a = i.createElement("div");
|
|
1097
1137
|
a.style.boxSizing = "border-box", a.style.display = "grid", a.style.gridTemplateColumns = "260px 1fr", a.style.gap = "18px", a.style.height = "100vh", a.style.overflow = "hidden", a.style.padding = "18px", a.style.fontFamily = '-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif', a.style.backgroundColor = "#f5f6f8", a.style.color = "#1f2937", i.body.style.margin = "0", i.body.style.overflow = "hidden";
|
|
1098
1138
|
const s = i.createElement("div");
|
|
1099
1139
|
s.style.display = "flex", s.style.flexDirection = "column", s.style.gap = "8px", s.style.minHeight = "0", s.style.overflowY = "auto", s.style.paddingRight = "4px";
|
|
@@ -1103,50 +1143,55 @@ function an(n, e, t, o = () => !0) {
|
|
|
1103
1143
|
l.style.display = "flex", l.style.gap = "14px", l.style.alignItems = "center", l.style.flexWrap = "wrap", l.style.fontSize = "13px", l.style.color = "#4b5563";
|
|
1104
1144
|
const c = i.createElement("div");
|
|
1105
1145
|
c.style.display = "flex", c.style.gap = "14px", c.style.flex = "1 1 auto", c.style.minHeight = "0", c.style.minWidth = "0", c.style.overflow = "hidden";
|
|
1106
|
-
const u = Se("Current", n), g = Se("Next", n), h = de();
|
|
1146
|
+
const u = Se("Current", n), g = Se("Next", n), h = gn(), f = de();
|
|
1107
1147
|
g.container.style.cursor = "pointer", g.container.addEventListener("click", () => {
|
|
1108
1148
|
o() && t();
|
|
1109
1149
|
});
|
|
1110
|
-
const
|
|
1111
|
-
const
|
|
1112
|
-
return
|
|
1113
|
-
o() && (
|
|
1114
|
-
}), s.appendChild(
|
|
1115
|
-
}),
|
|
1150
|
+
const v = n.slides.map((k, F) => {
|
|
1151
|
+
const U = pn(k, F);
|
|
1152
|
+
return U.style.cursor = "pointer", U.addEventListener("click", (B) => {
|
|
1153
|
+
o() && (B.shiftKey && ne(), e(F));
|
|
1154
|
+
}), s.appendChild(U), U;
|
|
1155
|
+
}), y = Nt("Slides", s, f.visibility.slides), T = Nt(
|
|
1116
1156
|
"Current",
|
|
1117
1157
|
u.container,
|
|
1118
|
-
|
|
1119
|
-
),
|
|
1158
|
+
f.visibility.current
|
|
1159
|
+
), C = Nt(
|
|
1120
1160
|
"Next",
|
|
1121
1161
|
g.container,
|
|
1122
|
-
|
|
1123
|
-
), M = (
|
|
1124
|
-
|
|
1125
|
-
|
|
1162
|
+
f.visibility.next
|
|
1163
|
+
), M = Nt(
|
|
1164
|
+
"Notes",
|
|
1165
|
+
h.container,
|
|
1166
|
+
f.visibility.notes
|
|
1167
|
+
), L = () => {
|
|
1168
|
+
const k = T.input.checked && C.input.checked && S();
|
|
1169
|
+
a.style.gridTemplateColumns = y.input.checked ? "260px 1fr" : "1fr", c.style.flexDirection = k ? "column" : "row", u.container.style.flex = "1 1 0", g.container.style.flex = "1 1 0", requestAnimationFrame(() => {
|
|
1126
1170
|
u.resize(), g.resize();
|
|
1127
1171
|
}), i0({
|
|
1128
|
-
...
|
|
1172
|
+
...f,
|
|
1129
1173
|
open: !0,
|
|
1130
1174
|
visibility: {
|
|
1131
|
-
slides:
|
|
1132
|
-
current:
|
|
1133
|
-
next:
|
|
1175
|
+
slides: y.input.checked,
|
|
1176
|
+
current: T.input.checked,
|
|
1177
|
+
next: C.input.checked,
|
|
1178
|
+
notes: M.input.checked
|
|
1134
1179
|
}
|
|
1135
1180
|
});
|
|
1136
1181
|
};
|
|
1137
|
-
|
|
1138
|
-
function
|
|
1139
|
-
o() && (
|
|
1140
|
-
const
|
|
1141
|
-
|
|
1142
|
-
}), u.label.textContent = Pe(n,
|
|
1182
|
+
y.input.addEventListener("change", L), T.input.addEventListener("change", L), C.input.addEventListener("change", L), M.input.addEventListener("change", L), N == null || N.addEventListener("resize", L), l.appendChild(y.element), l.appendChild(T.element), l.appendChild(C.element), l.appendChild(M.element), c.appendChild(u.container), c.appendChild(g.container), r.appendChild(l), r.appendChild(c), r.appendChild(h.container), a.appendChild(s), a.appendChild(r);
|
|
1183
|
+
function E(k, F, U, B) {
|
|
1184
|
+
o() && (v.forEach((Y, lt) => {
|
|
1185
|
+
const Q = lt === k;
|
|
1186
|
+
Y.style.backgroundColor = Q ? "#dbeafe" : "#ffffff", Y.style.borderColor = Q ? "#60a5fa" : "#e5e7eb", Y.style.color = Q ? "#1e3a8a" : "#1f2937";
|
|
1187
|
+
}), u.label.textContent = Pe(n, k, F), g.label.textContent = Pe(n, U, B), h.content.textContent = hn(n.slides[k] ?? sn(), F) ?? "", xn(v[k], s), L());
|
|
1143
1188
|
}
|
|
1144
1189
|
function S() {
|
|
1145
|
-
const
|
|
1146
|
-
if (
|
|
1190
|
+
const k = N;
|
|
1191
|
+
if (k === null)
|
|
1147
1192
|
return !1;
|
|
1148
|
-
const
|
|
1149
|
-
return
|
|
1193
|
+
const F = y.input.checked ? 278 : 0, U = k.innerWidth - 36 - F, B = k.innerHeight - 36 - l.offsetHeight - 14;
|
|
1194
|
+
return U <= 0 || B <= 0 ? !1 : U / B < 1.1;
|
|
1150
1195
|
}
|
|
1151
1196
|
return {
|
|
1152
1197
|
element: a,
|
|
@@ -1154,12 +1199,20 @@ function an(n, e, t, o = () => !0) {
|
|
|
1154
1199
|
nextCanvas: g.canvas,
|
|
1155
1200
|
currentLabel: u.label,
|
|
1156
1201
|
nextLabel: g.label,
|
|
1157
|
-
isOpen: () =>
|
|
1158
|
-
update:
|
|
1202
|
+
isOpen: () => N !== null && !N.closed,
|
|
1203
|
+
update: E
|
|
1159
1204
|
};
|
|
1160
1205
|
}
|
|
1161
|
-
function
|
|
1162
|
-
const
|
|
1206
|
+
function gn() {
|
|
1207
|
+
const n = (N == null ? void 0 : N.document) ?? document, e = n.createElement("div");
|
|
1208
|
+
e.style.display = "flex", e.style.flex = "0 1 180px", e.style.flexDirection = "column", e.style.minHeight = "100px", e.style.maxHeight = "30vh", e.style.overflow = "hidden", e.style.backgroundColor = "#ffffff", e.style.border = "1px solid #e5e7eb", e.style.borderRadius = "6px", e.style.boxShadow = "0 1px 2px rgba(15, 23, 42, 0.06)";
|
|
1209
|
+
const t = n.createElement("div");
|
|
1210
|
+
t.textContent = "Notes", t.style.padding = "10px 12px 6px", t.style.fontSize = "12px", t.style.fontWeight = "700", t.style.textTransform = "uppercase", t.style.color = "#6b7280";
|
|
1211
|
+
const o = n.createElement("div");
|
|
1212
|
+
return o.style.flex = "1 1 auto", o.style.minHeight = "0", o.style.overflowY = "auto", o.style.padding = "4px 12px 12px", o.style.fontSize = "16px", o.style.lineHeight = "1.5", o.style.whiteSpace = "pre-wrap", e.appendChild(t), e.appendChild(o), { container: e, content: o };
|
|
1213
|
+
}
|
|
1214
|
+
function pn(n, e) {
|
|
1215
|
+
const t = (N == null ? void 0 : N.document) ?? document, o = t.createElement("div");
|
|
1163
1216
|
o.style.display = "flex", o.style.alignItems = "center", o.style.gap = "10px", o.style.padding = "8px 10px", o.style.backgroundColor = "#ffffff", o.style.border = "1px solid #e5e7eb", o.style.borderRadius = "6px", o.style.boxShadow = "0 1px 2px rgba(15, 23, 42, 0.06)", o.style.fontSize = "14px", o.style.lineHeight = "1", o.style.userSelect = "none";
|
|
1164
1217
|
const i = t.createElement("div");
|
|
1165
1218
|
i.textContent = `${e + 1}`, i.style.minWidth = "24px", i.style.fontWeight = "700", i.style.color = "#6b7280";
|
|
@@ -1168,7 +1221,7 @@ function ln(n, e) {
|
|
|
1168
1221
|
}
|
|
1169
1222
|
function Se(n, e) {
|
|
1170
1223
|
var u;
|
|
1171
|
-
const t = (
|
|
1224
|
+
const t = (N == null ? void 0 : N.document) ?? document, o = t.createElement("div");
|
|
1172
1225
|
o.style.display = "flex", o.style.alignItems = "center", o.style.flexDirection = "column", o.style.minHeight = "0", o.style.minWidth = "0";
|
|
1173
1226
|
const i = t.createElement("div");
|
|
1174
1227
|
i.textContent = n, i.style.marginBottom = "4px", i.style.fontSize = "12px", i.style.fontWeight = "700", i.style.textAlign = "center", i.style.textTransform = "uppercase", i.style.color = "#6b7280";
|
|
@@ -1186,10 +1239,10 @@ function Se(n, e) {
|
|
|
1186
1239
|
r.style.width = `${v}px`, r.style.height = `${y}px`;
|
|
1187
1240
|
}
|
|
1188
1241
|
const c = (u = t.defaultView) == null ? void 0 : u.ResizeObserver;
|
|
1189
|
-
return c !== void 0 && new c(l).observe(s),
|
|
1242
|
+
return c !== void 0 && new c(l).observe(s), N == null || N.addEventListener("resize", l), s.appendChild(r), o.appendChild(i), o.appendChild(a), o.appendChild(s), { container: o, label: a, canvas: r, resize: l };
|
|
1190
1243
|
}
|
|
1191
|
-
function
|
|
1192
|
-
const o = (
|
|
1244
|
+
function Nt(n, e, t) {
|
|
1245
|
+
const o = (N == null ? void 0 : N.document) ?? document, i = e.style.display || "block", a = o.createElement("label");
|
|
1193
1246
|
a.style.display = "inline-flex", a.style.alignItems = "center", a.style.gap = "6px", a.style.userSelect = "none";
|
|
1194
1247
|
const s = o.createElement("input");
|
|
1195
1248
|
return s.type = "checkbox", s.checked = t, e.style.display = t ? i : "none", s.addEventListener("change", () => {
|
|
@@ -1202,20 +1255,20 @@ function Pe(n, e, t) {
|
|
|
1202
1255
|
const o = n.slides[e];
|
|
1203
1256
|
return o === void 0 ? "No slide" : `Slide ${e + 1} of ${n.slides.length}, Build ${t + 1} of ${o.animations.length + 1}`;
|
|
1204
1257
|
}
|
|
1205
|
-
function
|
|
1258
|
+
function xn(n, e) {
|
|
1206
1259
|
if (n === void 0)
|
|
1207
1260
|
return;
|
|
1208
1261
|
const t = n.offsetTop, o = t + n.offsetHeight, i = e.scrollTop, a = i + e.clientHeight;
|
|
1209
1262
|
(t < i || o > a) && n.scrollIntoView({ block: "nearest" });
|
|
1210
1263
|
}
|
|
1211
1264
|
function ne() {
|
|
1212
|
-
|
|
1265
|
+
Bt(N), n0(), wt == null || wt(), N == null || N.close(), N = null, Ft = null, wt = null;
|
|
1213
1266
|
}
|
|
1214
|
-
function
|
|
1267
|
+
function yn() {
|
|
1215
1268
|
const { width: n, height: e, left: t, top: o } = s0;
|
|
1216
1269
|
return `width=${n},height=${e},left=${t},top=${o}`;
|
|
1217
1270
|
}
|
|
1218
|
-
function
|
|
1271
|
+
function Bt(n) {
|
|
1219
1272
|
n === null || n.closed || (s0 = {
|
|
1220
1273
|
width: n.outerWidth,
|
|
1221
1274
|
height: n.outerHeight,
|
|
@@ -1223,7 +1276,7 @@ function Ft(n) {
|
|
|
1223
1276
|
top: n.screenY
|
|
1224
1277
|
});
|
|
1225
1278
|
}
|
|
1226
|
-
function
|
|
1279
|
+
function vn(n) {
|
|
1227
1280
|
var o;
|
|
1228
1281
|
const e = typeof ((o = globalThis.crypto) == null ? void 0 : o.randomUUID) == "function" ? globalThis.crypto.randomUUID() : `${Date.now()}-${Math.random()}`, t = n;
|
|
1229
1282
|
return t[Ce] = e, {
|
|
@@ -1237,8 +1290,8 @@ function K(n = null) {
|
|
|
1237
1290
|
...n
|
|
1238
1291
|
};
|
|
1239
1292
|
}
|
|
1240
|
-
const
|
|
1241
|
-
function
|
|
1293
|
+
const wn = K({ width: 0, height: 0 });
|
|
1294
|
+
function mn(n = null) {
|
|
1242
1295
|
return {
|
|
1243
1296
|
backgroundColor: G.WHITE,
|
|
1244
1297
|
slides: [],
|
|
@@ -1250,21 +1303,21 @@ function dn(n = null) {
|
|
|
1250
1303
|
...n
|
|
1251
1304
|
};
|
|
1252
1305
|
}
|
|
1253
|
-
function
|
|
1306
|
+
function bn(n) {
|
|
1254
1307
|
const e = Array.isArray(n) ? n : [n];
|
|
1255
1308
|
let t = 0, o = 0;
|
|
1256
1309
|
for (const i of e)
|
|
1257
1310
|
switch (i.type) {
|
|
1258
|
-
case
|
|
1311
|
+
case dt.PAUSE:
|
|
1259
1312
|
t += i.duration;
|
|
1260
1313
|
break;
|
|
1261
|
-
case
|
|
1314
|
+
case dt.ANIMATE:
|
|
1262
1315
|
o = Math.max(o, t + i.delay + i.duration), i.block && (t += i.delay + i.duration);
|
|
1263
1316
|
break;
|
|
1264
|
-
case
|
|
1317
|
+
case dt.UPDATE:
|
|
1265
1318
|
break;
|
|
1266
1319
|
default:
|
|
1267
|
-
|
|
1320
|
+
at(i);
|
|
1268
1321
|
}
|
|
1269
1322
|
return o;
|
|
1270
1323
|
}
|
|
@@ -1275,7 +1328,7 @@ function pe(n, e = null) {
|
|
|
1275
1328
|
function a0(n) {
|
|
1276
1329
|
return n === document.body;
|
|
1277
1330
|
}
|
|
1278
|
-
function
|
|
1331
|
+
function An(n, e) {
|
|
1279
1332
|
const t = document.createElement("div");
|
|
1280
1333
|
if (t.style.width = "100%", t.style.aspectRatio = `${n.size.width} / ${n.size.height}`, t.style.position = "relative", a0(e)) {
|
|
1281
1334
|
t.style.top = "50%", t.style.transform = "translateY(-50%)", t.style.marginLeft = "auto", t.style.marginRight = "auto", t.style.overflowY = "clip", document.title = n.title, document.documentElement.style.height = "100%", document.body.style.margin = "0", document.body.style.height = "100%", document.body.style.width = "100%", document.body.style.backgroundColor = "#000000";
|
|
@@ -1287,7 +1340,7 @@ function pn(n, e) {
|
|
|
1287
1340
|
function Ee(n, e) {
|
|
1288
1341
|
window.innerHeight / window.innerWidth > e ? (n.style.width = "100%", n.style.height = "auto") : (n.style.width = "auto", n.style.height = "100%");
|
|
1289
1342
|
}
|
|
1290
|
-
const
|
|
1343
|
+
const Tn = {
|
|
1291
1344
|
check: (n) => typeof n == "object" && n !== null && typeof n.red == "number" && typeof n.green == "number" && typeof n.blue == "number" && typeof n.alpha == "number",
|
|
1292
1345
|
interpolate: (n, e, t) => ({
|
|
1293
1346
|
red: Math.round(n.red + (e.red - n.red) * t),
|
|
@@ -1295,18 +1348,18 @@ const xn = {
|
|
|
1295
1348
|
blue: Math.round(n.blue + (e.blue - n.blue) * t),
|
|
1296
1349
|
alpha: n.alpha + (e.alpha - n.alpha) * t
|
|
1297
1350
|
})
|
|
1298
|
-
},
|
|
1351
|
+
}, Ln = {
|
|
1299
1352
|
check: (n) => !0,
|
|
1300
1353
|
interpolate: (n, e) => e
|
|
1301
|
-
},
|
|
1354
|
+
}, Mn = {
|
|
1302
1355
|
check: (n) => typeof n == "number",
|
|
1303
1356
|
interpolate: (n, e, t) => n + (e - n) * t
|
|
1304
1357
|
}, Ie = [
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1358
|
+
Mn,
|
|
1359
|
+
Tn,
|
|
1360
|
+
Ln
|
|
1308
1361
|
];
|
|
1309
|
-
function
|
|
1362
|
+
function Cn(n, e, t, o = null) {
|
|
1310
1363
|
if (t === 0)
|
|
1311
1364
|
return n;
|
|
1312
1365
|
if (t === 1)
|
|
@@ -1335,7 +1388,7 @@ function ke(n, e, t = null) {
|
|
|
1335
1388
|
if (t !== null && i > t)
|
|
1336
1389
|
break;
|
|
1337
1390
|
switch (a.type) {
|
|
1338
|
-
case
|
|
1391
|
+
case dt.ANIMATE: {
|
|
1339
1392
|
const s = n.get(a.object);
|
|
1340
1393
|
if (s === void 0)
|
|
1341
1394
|
break;
|
|
@@ -1348,7 +1401,7 @@ function ke(n, e, t = null) {
|
|
|
1348
1401
|
);
|
|
1349
1402
|
n.set(a.object, {
|
|
1350
1403
|
...s,
|
|
1351
|
-
...
|
|
1404
|
+
...Cn(
|
|
1352
1405
|
s,
|
|
1353
1406
|
a.props,
|
|
1354
1407
|
a.easing(l),
|
|
@@ -1357,7 +1410,7 @@ function ke(n, e, t = null) {
|
|
|
1357
1410
|
}), a.block && (i += a.delay + a.duration);
|
|
1358
1411
|
break;
|
|
1359
1412
|
}
|
|
1360
|
-
case
|
|
1413
|
+
case dt.UPDATE: {
|
|
1361
1414
|
const s = n.get(a.object);
|
|
1362
1415
|
if (s === void 0)
|
|
1363
1416
|
break;
|
|
@@ -1367,18 +1420,18 @@ function ke(n, e, t = null) {
|
|
|
1367
1420
|
});
|
|
1368
1421
|
break;
|
|
1369
1422
|
}
|
|
1370
|
-
case
|
|
1423
|
+
case dt.PAUSE:
|
|
1371
1424
|
i += a.duration;
|
|
1372
1425
|
break;
|
|
1373
1426
|
default:
|
|
1374
|
-
|
|
1427
|
+
at(a);
|
|
1375
1428
|
}
|
|
1376
1429
|
}
|
|
1377
1430
|
}
|
|
1378
1431
|
function l0(n) {
|
|
1379
1432
|
return "objects" in n ? n.objects.filter((e) => "objectType" in e) : [];
|
|
1380
1433
|
}
|
|
1381
|
-
function
|
|
1434
|
+
function Sn({
|
|
1382
1435
|
slide: n,
|
|
1383
1436
|
buildIndex: e,
|
|
1384
1437
|
buildTime: t
|
|
@@ -1402,10 +1455,10 @@ function mn({
|
|
|
1402
1455
|
}
|
|
1403
1456
|
return o;
|
|
1404
1457
|
}
|
|
1405
|
-
function
|
|
1458
|
+
function Pn(n) {
|
|
1406
1459
|
const e = {};
|
|
1407
1460
|
function t(o) {
|
|
1408
|
-
if (o.objectType ===
|
|
1461
|
+
if (o.objectType === V.SVG) {
|
|
1409
1462
|
const a = o.svg;
|
|
1410
1463
|
a !== void 0 && a.length > 0 && (e[a] = a);
|
|
1411
1464
|
}
|
|
@@ -1418,26 +1471,26 @@ function bn(n) {
|
|
|
1418
1471
|
t(i);
|
|
1419
1472
|
return e;
|
|
1420
1473
|
}
|
|
1421
|
-
const
|
|
1422
|
-
function
|
|
1423
|
-
const t = localStorage.getItem(
|
|
1474
|
+
const yt = "presenterState";
|
|
1475
|
+
function En(n, e) {
|
|
1476
|
+
const t = localStorage.getItem(yt);
|
|
1424
1477
|
if (t === null)
|
|
1425
1478
|
return null;
|
|
1426
1479
|
if (e === null)
|
|
1427
|
-
return localStorage.removeItem(
|
|
1480
|
+
return localStorage.removeItem(yt), null;
|
|
1428
1481
|
let o;
|
|
1429
1482
|
try {
|
|
1430
1483
|
o = JSON.parse(t);
|
|
1431
1484
|
} catch (c) {
|
|
1432
|
-
return console.error("Failed to parse presentation state from localStorage:", c), localStorage.removeItem(
|
|
1485
|
+
return console.error("Failed to parse presentation state from localStorage:", c), localStorage.removeItem(yt), null;
|
|
1433
1486
|
}
|
|
1434
1487
|
const { title: i, timestamp: a } = o;
|
|
1435
1488
|
let { slideIndex: s, buildIndex: r } = o;
|
|
1436
1489
|
if (typeof i != "string" || typeof s != "number" || typeof r != "number" || typeof a != "number" || i !== n.title || Date.now() - a > 1e3 * 60 * e)
|
|
1437
|
-
return localStorage.removeItem(
|
|
1490
|
+
return localStorage.removeItem(yt), null;
|
|
1438
1491
|
s > n.slides.length - 1 && (s = n.slides.length - 1, r = 0);
|
|
1439
1492
|
const l = n.slides[s];
|
|
1440
|
-
return l === void 0 ? (localStorage.removeItem(
|
|
1493
|
+
return l === void 0 ? (localStorage.removeItem(yt), null) : (r > l.animations.length && (r = l.animations.length), {
|
|
1441
1494
|
title: i,
|
|
1442
1495
|
slideIndex: s,
|
|
1443
1496
|
buildIndex: r
|
|
@@ -1445,7 +1498,7 @@ function An(n, e) {
|
|
|
1445
1498
|
}
|
|
1446
1499
|
function Oe({ title: n, slideIndex: e, buildIndex: t }) {
|
|
1447
1500
|
localStorage.setItem(
|
|
1448
|
-
|
|
1501
|
+
yt,
|
|
1449
1502
|
JSON.stringify({ title: n, slideIndex: e, buildIndex: t, timestamp: Date.now() })
|
|
1450
1503
|
);
|
|
1451
1504
|
}
|
|
@@ -1465,45 +1518,45 @@ const _e = Object.freeze({
|
|
|
1465
1518
|
Browser: "browser",
|
|
1466
1519
|
Node: "node"
|
|
1467
1520
|
};
|
|
1468
|
-
function
|
|
1521
|
+
function In(n, e) {
|
|
1469
1522
|
e.context.clearRect(0, 0, n.width, n.height);
|
|
1470
1523
|
}
|
|
1471
|
-
function
|
|
1524
|
+
function kn(n) {
|
|
1472
1525
|
const e = document.createElement("canvas");
|
|
1473
1526
|
return e.setAttribute("width", n.width.toString()), e.setAttribute("height", n.height.toString()), e.style.position = "absolute", e.style.width = "100%", e;
|
|
1474
1527
|
}
|
|
1475
|
-
const
|
|
1528
|
+
const gt = {
|
|
1476
1529
|
Browser: "browser",
|
|
1477
1530
|
Node: "node"
|
|
1478
1531
|
};
|
|
1479
|
-
function
|
|
1532
|
+
function On(n) {
|
|
1480
1533
|
const e = new Path2D(n);
|
|
1481
1534
|
return {
|
|
1482
|
-
type:
|
|
1535
|
+
type: gt.Browser,
|
|
1483
1536
|
path: e
|
|
1484
1537
|
};
|
|
1485
1538
|
}
|
|
1486
|
-
function
|
|
1487
|
-
const { drawn: e, startX: t, startY: o, endX: i, endY: a, arrowheadSize: s, isArrowheadFilled: r, isDrawnFromCenter: l } = n, c = { x: t, y: o }, u = { x: i, y: a }, g = Math.atan2(u.y - c.y, u.x - c.x), h = { x: c.x + (u.x - c.x) / 2, y: c.y + (u.y - c.y) / 2 }, f = u.x - c.x, v = u.y - c.y, T = Math.hypot(f, v) * e,
|
|
1488
|
-
x: E.x -
|
|
1489
|
-
y: E.y -
|
|
1490
|
-
}, W = {
|
|
1491
|
-
x: E.x - _ * Math.cos(g + L),
|
|
1492
|
-
y: E.y - _ * Math.sin(g + L)
|
|
1539
|
+
function _n(n) {
|
|
1540
|
+
const { drawn: e, startX: t, startY: o, endX: i, endY: a, arrowheadSize: s, isArrowheadFilled: r, isDrawnFromCenter: l } = n, c = { x: t, y: o }, u = { x: i, y: a }, g = Math.atan2(u.y - c.y, u.x - c.x), h = { x: c.x + (u.x - c.x) / 2, y: c.y + (u.y - c.y) / 2 }, f = u.x - c.x, v = u.y - c.y, T = Math.hypot(f, v) * e, C = Math.cos(g), M = Math.sin(g), L = l ? { x: h.x - C * T / 2, y: h.y - M * T / 2 } : c, E = l ? { x: h.x + C * T / 2, y: h.y + M * T / 2 } : { x: c.x + C * T, y: c.y + M * T }, S = r ? Math.PI / 6 : Math.PI / 4.5, k = T < s * 2 ? T / 2 : s, F = {
|
|
1541
|
+
x: E.x - k * Math.cos(g - S),
|
|
1542
|
+
y: E.y - k * Math.sin(g - S)
|
|
1493
1543
|
}, U = {
|
|
1494
|
-
x:
|
|
1495
|
-
y:
|
|
1496
|
-
},
|
|
1497
|
-
x:
|
|
1498
|
-
y:
|
|
1544
|
+
x: E.x - k * Math.cos(g + S),
|
|
1545
|
+
y: E.y - k * Math.sin(g + S)
|
|
1546
|
+
}, B = {
|
|
1547
|
+
x: L.x + k * Math.cos(g - S),
|
|
1548
|
+
y: L.y + k * Math.sin(g - S)
|
|
1549
|
+
}, Y = {
|
|
1550
|
+
x: L.x + k * Math.cos(g + S),
|
|
1551
|
+
y: L.y + k * Math.sin(g + S)
|
|
1499
1552
|
};
|
|
1500
1553
|
return {
|
|
1501
|
-
arrowPoints: [
|
|
1502
|
-
arrowheadPoints: [F, E,
|
|
1503
|
-
doubledArrowheadPoints: [
|
|
1554
|
+
arrowPoints: [L, E],
|
|
1555
|
+
arrowheadPoints: [F, E, U],
|
|
1556
|
+
doubledArrowheadPoints: [B, L, Y]
|
|
1504
1557
|
};
|
|
1505
1558
|
}
|
|
1506
|
-
function
|
|
1559
|
+
function mt({
|
|
1507
1560
|
ctx: n,
|
|
1508
1561
|
color: e,
|
|
1509
1562
|
drawn: t = null,
|
|
@@ -1531,33 +1584,33 @@ function wt({
|
|
|
1531
1584
|
}
|
|
1532
1585
|
switch (n.type) {
|
|
1533
1586
|
case Z.Browser:
|
|
1534
|
-
s.type ===
|
|
1587
|
+
s.type === gt.Browser ? n.context.stroke(s.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
|
|
1535
1588
|
break;
|
|
1536
1589
|
case Z.Node:
|
|
1537
|
-
s.type ===
|
|
1590
|
+
s.type === gt.Node ? n.context.stroke(s.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
|
|
1538
1591
|
break;
|
|
1539
1592
|
default:
|
|
1540
|
-
|
|
1593
|
+
at(n);
|
|
1541
1594
|
}
|
|
1542
1595
|
}
|
|
1543
1596
|
}
|
|
1544
|
-
function
|
|
1597
|
+
function pt({ ctx: n, path: e, color: t, opacity: o = null }) {
|
|
1545
1598
|
if (n.context.fillStyle = pe(t, o), e === void 0) {
|
|
1546
1599
|
n.context.fill();
|
|
1547
1600
|
return;
|
|
1548
1601
|
}
|
|
1549
1602
|
switch (n.type) {
|
|
1550
1603
|
case Z.Browser:
|
|
1551
|
-
e.type ===
|
|
1604
|
+
e.type === gt.Browser ? n.context.fill(e.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
|
|
1552
1605
|
break;
|
|
1553
1606
|
case Z.Node:
|
|
1554
|
-
e.type ===
|
|
1607
|
+
e.type === gt.Node ? n.context.fill(e.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
|
|
1555
1608
|
break;
|
|
1556
1609
|
default:
|
|
1557
|
-
|
|
1610
|
+
at(n);
|
|
1558
1611
|
}
|
|
1559
1612
|
}
|
|
1560
|
-
function
|
|
1613
|
+
function Ut(n, e) {
|
|
1561
1614
|
const t = e(), o = n[0];
|
|
1562
1615
|
if (o === void 0)
|
|
1563
1616
|
return { path: t, length: 0 };
|
|
@@ -1572,7 +1625,7 @@ function Ht(n, e) {
|
|
|
1572
1625
|
}
|
|
1573
1626
|
return { path: t, length: i };
|
|
1574
1627
|
}
|
|
1575
|
-
const
|
|
1628
|
+
const Nn = ({
|
|
1576
1629
|
ctx: n,
|
|
1577
1630
|
object: e,
|
|
1578
1631
|
opacity: t,
|
|
@@ -1581,35 +1634,35 @@ const Sn = ({
|
|
|
1581
1634
|
const i = e.opacity * t;
|
|
1582
1635
|
if (i === 0 || e.drawn === 0)
|
|
1583
1636
|
return;
|
|
1584
|
-
const { arrowPoints: a, arrowheadPoints: s, doubledArrowheadPoints: r } =
|
|
1585
|
-
if (
|
|
1637
|
+
const { arrowPoints: a, arrowheadPoints: s, doubledArrowheadPoints: r } = _n(e), { path: l } = Ut(a, o), { path: c } = Ut(s, o);
|
|
1638
|
+
if (mt({
|
|
1586
1639
|
color: e.color,
|
|
1587
1640
|
ctx: n,
|
|
1588
1641
|
path: l,
|
|
1589
1642
|
opacity: i,
|
|
1590
1643
|
width: e.width
|
|
1591
|
-
}), e.isArrowheadFilled && (c.path.closePath(),
|
|
1644
|
+
}), e.isArrowheadFilled && (c.path.closePath(), pt({
|
|
1592
1645
|
ctx: n,
|
|
1593
1646
|
path: c,
|
|
1594
1647
|
color: e.color,
|
|
1595
1648
|
opacity: i
|
|
1596
|
-
})),
|
|
1649
|
+
})), mt({
|
|
1597
1650
|
color: e.color,
|
|
1598
1651
|
ctx: n,
|
|
1599
1652
|
path: c,
|
|
1600
1653
|
opacity: i,
|
|
1601
1654
|
width: e.width
|
|
1602
1655
|
}), e.isArrowheadDoubled) {
|
|
1603
|
-
const { path: u } =
|
|
1656
|
+
const { path: u } = Ut(
|
|
1604
1657
|
r,
|
|
1605
1658
|
o
|
|
1606
1659
|
);
|
|
1607
|
-
e.isArrowheadFilled && (u.path.closePath(),
|
|
1660
|
+
e.isArrowheadFilled && (u.path.closePath(), pt({
|
|
1608
1661
|
ctx: n,
|
|
1609
1662
|
path: u,
|
|
1610
1663
|
color: e.color,
|
|
1611
1664
|
opacity: i
|
|
1612
|
-
})),
|
|
1665
|
+
})), mt({
|
|
1613
1666
|
color: e.color,
|
|
1614
1667
|
ctx: n,
|
|
1615
1668
|
path: u,
|
|
@@ -1618,14 +1671,14 @@ const Sn = ({
|
|
|
1618
1671
|
});
|
|
1619
1672
|
}
|
|
1620
1673
|
};
|
|
1621
|
-
function
|
|
1674
|
+
function Rn(n, e) {
|
|
1622
1675
|
const t = n.radius - n.strokeWidth / 2;
|
|
1623
1676
|
if (t <= 0)
|
|
1624
1677
|
return;
|
|
1625
1678
|
const o = e(), i = -Math.PI / 2;
|
|
1626
1679
|
return o.path.arc(n.x, n.y, t, i, i + 2 * Math.PI), o;
|
|
1627
1680
|
}
|
|
1628
|
-
function
|
|
1681
|
+
function Fn(n, e) {
|
|
1629
1682
|
const t = e(), o = -Math.PI / 2;
|
|
1630
1683
|
t.path.arc(n.x, n.y, n.radius, o, o + 2 * Math.PI);
|
|
1631
1684
|
const i = 2 * Math.PI * n.radius;
|
|
@@ -1634,16 +1687,16 @@ function En(n, e) {
|
|
|
1634
1687
|
function h0(n, e) {
|
|
1635
1688
|
switch (n.type) {
|
|
1636
1689
|
case Z.Browser:
|
|
1637
|
-
e.type ===
|
|
1690
|
+
e.type === gt.Browser ? n.context.clip(e.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
|
|
1638
1691
|
break;
|
|
1639
1692
|
case Z.Node:
|
|
1640
|
-
e.type ===
|
|
1693
|
+
e.type === gt.Node ? n.context.clip(e.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
|
|
1641
1694
|
break;
|
|
1642
1695
|
default:
|
|
1643
|
-
|
|
1696
|
+
at(n);
|
|
1644
1697
|
}
|
|
1645
1698
|
}
|
|
1646
|
-
const
|
|
1699
|
+
const Bn = ({
|
|
1647
1700
|
ctx: n,
|
|
1648
1701
|
object: e,
|
|
1649
1702
|
opacity: t,
|
|
@@ -1652,13 +1705,13 @@ const In = ({
|
|
|
1652
1705
|
const i = e.opacity * t;
|
|
1653
1706
|
if (i === 0 || e.drawn === 0 && e.fillColor.alpha === 0)
|
|
1654
1707
|
return;
|
|
1655
|
-
const { path: a, length: s } =
|
|
1708
|
+
const { path: a, length: s } = Fn(e, o);
|
|
1656
1709
|
if (i < 1 && e.strokeWidth > 0) {
|
|
1657
|
-
const r =
|
|
1658
|
-
r !== void 0 && (n.context.save(), h0(n, r),
|
|
1710
|
+
const r = Rn(e, o);
|
|
1711
|
+
r !== void 0 && (n.context.save(), h0(n, r), pt({ ctx: n, path: a, color: e.fillColor, opacity: i }), n.context.restore());
|
|
1659
1712
|
} else
|
|
1660
|
-
|
|
1661
|
-
|
|
1713
|
+
pt({ ctx: n, path: a, color: e.fillColor, opacity: i });
|
|
1714
|
+
mt({
|
|
1662
1715
|
color: e.strokeColor,
|
|
1663
1716
|
ctx: n,
|
|
1664
1717
|
drawn: e.drawn,
|
|
@@ -1668,82 +1721,82 @@ const In = ({
|
|
|
1668
1721
|
width: e.strokeWidth
|
|
1669
1722
|
});
|
|
1670
1723
|
};
|
|
1671
|
-
function
|
|
1724
|
+
function $(n = null) {
|
|
1672
1725
|
return {
|
|
1673
1726
|
x: 0,
|
|
1674
1727
|
y: 0,
|
|
1675
1728
|
...n
|
|
1676
1729
|
};
|
|
1677
1730
|
}
|
|
1678
|
-
const
|
|
1679
|
-
function
|
|
1731
|
+
const Dn = $();
|
|
1732
|
+
function ct(n = null) {
|
|
1680
1733
|
return {
|
|
1681
|
-
origin:
|
|
1682
|
-
size:
|
|
1734
|
+
origin: Dn,
|
|
1735
|
+
size: wn,
|
|
1683
1736
|
...n
|
|
1684
1737
|
};
|
|
1685
1738
|
}
|
|
1686
|
-
|
|
1687
|
-
function
|
|
1739
|
+
ct();
|
|
1740
|
+
function ut(n, e, t) {
|
|
1688
1741
|
const { x: o, y: i } = n, { width: a, height: s } = t;
|
|
1689
1742
|
switch (e) {
|
|
1690
|
-
case
|
|
1691
|
-
return
|
|
1692
|
-
origin:
|
|
1743
|
+
case st.TOP_LEFT:
|
|
1744
|
+
return ct({
|
|
1745
|
+
origin: $({ x: o, y: i }),
|
|
1693
1746
|
size: t
|
|
1694
1747
|
});
|
|
1695
|
-
case
|
|
1696
|
-
return
|
|
1697
|
-
origin:
|
|
1748
|
+
case st.TOP:
|
|
1749
|
+
return ct({
|
|
1750
|
+
origin: $({ x: o - a / 2, y: i }),
|
|
1698
1751
|
size: t
|
|
1699
1752
|
});
|
|
1700
|
-
case
|
|
1701
|
-
return
|
|
1702
|
-
origin:
|
|
1753
|
+
case st.TOP_RIGHT:
|
|
1754
|
+
return ct({
|
|
1755
|
+
origin: $({ x: o - a, y: i }),
|
|
1703
1756
|
size: t
|
|
1704
1757
|
});
|
|
1705
|
-
case
|
|
1706
|
-
return
|
|
1707
|
-
origin:
|
|
1758
|
+
case st.LEFT:
|
|
1759
|
+
return ct({
|
|
1760
|
+
origin: $({ x: o, y: i - s / 2 }),
|
|
1708
1761
|
size: t
|
|
1709
1762
|
});
|
|
1710
|
-
case
|
|
1711
|
-
return
|
|
1712
|
-
origin:
|
|
1763
|
+
case st.CENTER:
|
|
1764
|
+
return ct({
|
|
1765
|
+
origin: $({ x: o - a / 2, y: i - s / 2 }),
|
|
1713
1766
|
size: t
|
|
1714
1767
|
});
|
|
1715
|
-
case
|
|
1716
|
-
return
|
|
1717
|
-
origin:
|
|
1768
|
+
case st.RIGHT:
|
|
1769
|
+
return ct({
|
|
1770
|
+
origin: $({ x: o - a, y: i - s / 2 }),
|
|
1718
1771
|
size: t
|
|
1719
1772
|
});
|
|
1720
|
-
case
|
|
1721
|
-
return
|
|
1722
|
-
origin:
|
|
1773
|
+
case st.BOTTOM_LEFT:
|
|
1774
|
+
return ct({
|
|
1775
|
+
origin: $({ x: o, y: i - s }),
|
|
1723
1776
|
size: t
|
|
1724
1777
|
});
|
|
1725
|
-
case
|
|
1726
|
-
return
|
|
1727
|
-
origin:
|
|
1778
|
+
case st.BOTTOM:
|
|
1779
|
+
return ct({
|
|
1780
|
+
origin: $({ x: o - a / 2, y: i - s }),
|
|
1728
1781
|
size: t
|
|
1729
1782
|
});
|
|
1730
|
-
case
|
|
1731
|
-
return
|
|
1732
|
-
origin:
|
|
1783
|
+
case st.BOTTOM_RIGHT:
|
|
1784
|
+
return ct({
|
|
1785
|
+
origin: $({ x: o - a, y: i - s }),
|
|
1733
1786
|
size: t
|
|
1734
1787
|
});
|
|
1735
1788
|
default:
|
|
1736
|
-
|
|
1789
|
+
at(e);
|
|
1737
1790
|
}
|
|
1738
1791
|
}
|
|
1739
|
-
const
|
|
1792
|
+
const qn = ({
|
|
1740
1793
|
ctx: n,
|
|
1741
1794
|
object: e,
|
|
1742
1795
|
renderObject: t,
|
|
1743
1796
|
opacity: o
|
|
1744
1797
|
}) => {
|
|
1745
|
-
const i = e.scale * e.scaleX, a = e.scale * e.scaleY, s =
|
|
1746
|
-
|
|
1798
|
+
const i = e.scale * e.scaleX, a = e.scale * e.scaleY, s = ut(
|
|
1799
|
+
$({ x: e.x, y: e.y }),
|
|
1747
1800
|
e.anchor,
|
|
1748
1801
|
K({
|
|
1749
1802
|
width: e.width * Math.abs(i),
|
|
@@ -1791,15 +1844,15 @@ function xe(n, e, t, o, i = 0) {
|
|
|
1791
1844
|
const kt = {
|
|
1792
1845
|
Browser: "browser",
|
|
1793
1846
|
Node: "node"
|
|
1794
|
-
},
|
|
1847
|
+
}, zn = ({
|
|
1795
1848
|
ctx: n,
|
|
1796
1849
|
imageById: e,
|
|
1797
1850
|
object: t,
|
|
1798
1851
|
opacity: o,
|
|
1799
1852
|
createPath2D: i
|
|
1800
1853
|
}) => {
|
|
1801
|
-
const a =
|
|
1802
|
-
|
|
1854
|
+
const a = ut(
|
|
1855
|
+
$({ x: t.x, y: t.y }),
|
|
1803
1856
|
t.anchor,
|
|
1804
1857
|
K({ width: t.width, height: t.height })
|
|
1805
1858
|
), s = e[t.imageId];
|
|
@@ -1813,13 +1866,13 @@ const kt = {
|
|
|
1813
1866
|
);
|
|
1814
1867
|
switch (n.type) {
|
|
1815
1868
|
case Z.Browser:
|
|
1816
|
-
r.path.type ===
|
|
1869
|
+
r.path.type === gt.Browser ? n.context.clip(r.path.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
|
|
1817
1870
|
break;
|
|
1818
1871
|
case Z.Node:
|
|
1819
|
-
r.path.type ===
|
|
1872
|
+
r.path.type === gt.Node ? n.context.clip(r.path.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
|
|
1820
1873
|
break;
|
|
1821
1874
|
default:
|
|
1822
|
-
|
|
1875
|
+
at(n);
|
|
1823
1876
|
}
|
|
1824
1877
|
}
|
|
1825
1878
|
switch (n.context.globalAlpha = o * t.opacity, n.context.imageSmoothingEnabled = t.smooth, n.type) {
|
|
@@ -1842,18 +1895,18 @@ const kt = {
|
|
|
1842
1895
|
) : console.warn("Attempted to use Browser Image in Node Canvas context");
|
|
1843
1896
|
break;
|
|
1844
1897
|
default:
|
|
1845
|
-
|
|
1898
|
+
at(n);
|
|
1846
1899
|
}
|
|
1847
1900
|
n.context.restore();
|
|
1848
1901
|
}
|
|
1849
1902
|
};
|
|
1850
|
-
function
|
|
1903
|
+
function Vn(n, e) {
|
|
1851
1904
|
const t = e();
|
|
1852
1905
|
t.path.moveTo(n.startX, n.startY), t.path.lineTo(n.endX, n.endY);
|
|
1853
1906
|
const o = Math.hypot(n.endX - n.startX, n.endY - n.startY);
|
|
1854
1907
|
return { path: t, length: o };
|
|
1855
1908
|
}
|
|
1856
|
-
const
|
|
1909
|
+
const jn = ({
|
|
1857
1910
|
ctx: n,
|
|
1858
1911
|
object: e,
|
|
1859
1912
|
opacity: t,
|
|
@@ -1862,8 +1915,8 @@ const Rn = ({
|
|
|
1862
1915
|
const i = e.opacity * t;
|
|
1863
1916
|
if (i === 0 || e.drawn === 0)
|
|
1864
1917
|
return;
|
|
1865
|
-
const { path: a, length: s } =
|
|
1866
|
-
|
|
1918
|
+
const { path: a, length: s } = Vn(e, o);
|
|
1919
|
+
mt({
|
|
1867
1920
|
color: e.color,
|
|
1868
1921
|
ctx: n,
|
|
1869
1922
|
drawn: e.drawn,
|
|
@@ -1874,15 +1927,15 @@ const Rn = ({
|
|
|
1874
1927
|
opacity: i,
|
|
1875
1928
|
width: e.width
|
|
1876
1929
|
});
|
|
1877
|
-
},
|
|
1930
|
+
}, Hn = ({
|
|
1878
1931
|
ctx: n,
|
|
1879
1932
|
object: e,
|
|
1880
1933
|
opacity: t,
|
|
1881
1934
|
renderObject: o
|
|
1882
1935
|
}) => {
|
|
1883
1936
|
n.context.save();
|
|
1884
|
-
const i =
|
|
1885
|
-
|
|
1937
|
+
const i = ut(
|
|
1938
|
+
$({ x: e.x, y: e.y }),
|
|
1886
1939
|
e.anchor,
|
|
1887
1940
|
K({ width: e.width, height: e.height })
|
|
1888
1941
|
);
|
|
@@ -1890,7 +1943,7 @@ const Rn = ({
|
|
|
1890
1943
|
for (const a of e.objects)
|
|
1891
1944
|
o(a, t * e.opacity);
|
|
1892
1945
|
n.context.restore();
|
|
1893
|
-
},
|
|
1946
|
+
}, Un = ({
|
|
1894
1947
|
ctx: n,
|
|
1895
1948
|
object: e,
|
|
1896
1949
|
opacity: t,
|
|
@@ -1899,17 +1952,17 @@ const Rn = ({
|
|
|
1899
1952
|
const i = e.opacity * t;
|
|
1900
1953
|
if (i === 0 || e.drawn === 0 && e.fillColor.alpha === 0)
|
|
1901
1954
|
return;
|
|
1902
|
-
const { origin: a } =
|
|
1903
|
-
|
|
1955
|
+
const { origin: a } = ut(
|
|
1956
|
+
$({ x: e.x, y: e.y }),
|
|
1904
1957
|
e.anchor,
|
|
1905
1958
|
K({ width: e.width, height: e.height })
|
|
1906
1959
|
), s = o(e.path);
|
|
1907
|
-
n.context.save(), n.context.translate(a.x, a.y), n.context.scale(e.width / e.viewboxWidth, e.height / e.viewboxHeight),
|
|
1960
|
+
n.context.save(), n.context.translate(a.x, a.y), n.context.scale(e.width / e.viewboxWidth, e.height / e.viewboxHeight), pt({
|
|
1908
1961
|
ctx: n,
|
|
1909
1962
|
path: s,
|
|
1910
1963
|
color: e.fillColor,
|
|
1911
1964
|
opacity: i
|
|
1912
|
-
}),
|
|
1965
|
+
}), mt({
|
|
1913
1966
|
color: e.strokeColor,
|
|
1914
1967
|
ctx: n,
|
|
1915
1968
|
drawn: e.drawn,
|
|
@@ -1920,7 +1973,7 @@ const Rn = ({
|
|
|
1920
1973
|
width: e.strokeWidth
|
|
1921
1974
|
}), n.context.restore();
|
|
1922
1975
|
};
|
|
1923
|
-
function
|
|
1976
|
+
function Yn(n, e) {
|
|
1924
1977
|
const t = e(), o = n.points, i = o[0];
|
|
1925
1978
|
if (i === void 0)
|
|
1926
1979
|
return { path: t, length: 0 };
|
|
@@ -1941,7 +1994,7 @@ function Dn(n, e) {
|
|
|
1941
1994
|
);
|
|
1942
1995
|
return a += r, { path: t, length: a };
|
|
1943
1996
|
}
|
|
1944
|
-
const
|
|
1997
|
+
const $n = ({
|
|
1945
1998
|
ctx: n,
|
|
1946
1999
|
object: e,
|
|
1947
2000
|
opacity: t,
|
|
@@ -1950,13 +2003,13 @@ const qn = ({
|
|
|
1950
2003
|
const i = e.opacity * t;
|
|
1951
2004
|
if (i === 0 || e.drawn === 0 && e.fillColor.alpha === 0)
|
|
1952
2005
|
return;
|
|
1953
|
-
const { path: a, length: s } =
|
|
1954
|
-
|
|
2006
|
+
const { path: a, length: s } = Yn(e, o);
|
|
2007
|
+
pt({
|
|
1955
2008
|
ctx: n,
|
|
1956
2009
|
path: a,
|
|
1957
2010
|
color: e.fillColor,
|
|
1958
2011
|
opacity: i
|
|
1959
|
-
}),
|
|
2012
|
+
}), mt({
|
|
1960
2013
|
color: e.strokeColor,
|
|
1961
2014
|
ctx: n,
|
|
1962
2015
|
drawn: e.drawn,
|
|
@@ -1966,15 +2019,15 @@ const qn = ({
|
|
|
1966
2019
|
width: e.strokeWidth
|
|
1967
2020
|
});
|
|
1968
2021
|
};
|
|
1969
|
-
function
|
|
1970
|
-
const t = n.strokeWidth / 2, { origin: o, size: i } =
|
|
1971
|
-
|
|
2022
|
+
function Wn(n, e) {
|
|
2023
|
+
const t = n.strokeWidth / 2, { origin: o, size: i } = ut(
|
|
2024
|
+
$({ x: n.x, y: n.y }),
|
|
1972
2025
|
n.anchor,
|
|
1973
2026
|
K({ width: n.width, height: n.height })
|
|
1974
2027
|
), a = i.width - n.strokeWidth, s = i.height - n.strokeWidth;
|
|
1975
2028
|
if (a <= 0 || s <= 0)
|
|
1976
2029
|
return;
|
|
1977
|
-
const r =
|
|
2030
|
+
const r = $({ x: o.x + t, y: o.y + t }), l = K({ width: a, height: s }), c = Math.max(
|
|
1978
2031
|
0,
|
|
1979
2032
|
Math.min(n.cornerRadius - t, Math.min(a, s) / 2)
|
|
1980
2033
|
);
|
|
@@ -1983,9 +2036,9 @@ function zn(n, e) {
|
|
|
1983
2036
|
const u = e();
|
|
1984
2037
|
return u.path.moveTo(r.x, r.y), u.path.lineTo(r.x + a, r.y), u.path.lineTo(r.x + a, r.y + s), u.path.lineTo(r.x, r.y + s), u.path.closePath(), u;
|
|
1985
2038
|
}
|
|
1986
|
-
function
|
|
1987
|
-
const { origin: t, size: o } =
|
|
1988
|
-
|
|
2039
|
+
function Gn(n, e) {
|
|
2040
|
+
const { origin: t, size: o } = ut(
|
|
2041
|
+
$({ x: n.x, y: n.y }),
|
|
1989
2042
|
n.anchor,
|
|
1990
2043
|
K({ width: n.width, height: n.height })
|
|
1991
2044
|
), i = Math.max(
|
|
@@ -2001,7 +2054,7 @@ function Vn(n, e) {
|
|
|
2001
2054
|
return { path: s, length: r };
|
|
2002
2055
|
}
|
|
2003
2056
|
}
|
|
2004
|
-
const
|
|
2057
|
+
const Xn = ({
|
|
2005
2058
|
ctx: n,
|
|
2006
2059
|
object: e,
|
|
2007
2060
|
opacity: t,
|
|
@@ -2010,13 +2063,13 @@ const jn = ({
|
|
|
2010
2063
|
const i = e.opacity * t;
|
|
2011
2064
|
if (i === 0 || e.drawn === 0 && e.fillColor.alpha === 0)
|
|
2012
2065
|
return;
|
|
2013
|
-
const { path: a, length: s } =
|
|
2066
|
+
const { path: a, length: s } = Gn(e, o);
|
|
2014
2067
|
if (i < 1 && e.strokeWidth > 0) {
|
|
2015
|
-
const r =
|
|
2016
|
-
r !== void 0 && (n.context.save(), h0(n, r),
|
|
2068
|
+
const r = Wn(e, o);
|
|
2069
|
+
r !== void 0 && (n.context.save(), h0(n, r), pt({ ctx: n, path: a, color: e.fillColor, opacity: i }), n.context.restore());
|
|
2017
2070
|
} else
|
|
2018
|
-
|
|
2019
|
-
|
|
2071
|
+
pt({ ctx: n, path: a, color: e.fillColor, opacity: i });
|
|
2072
|
+
mt({
|
|
2020
2073
|
color: e.strokeColor,
|
|
2021
2074
|
ctx: n,
|
|
2022
2075
|
drawn: e.drawn,
|
|
@@ -2026,9 +2079,9 @@ const jn = ({
|
|
|
2026
2079
|
width: e.strokeWidth
|
|
2027
2080
|
});
|
|
2028
2081
|
};
|
|
2029
|
-
function
|
|
2030
|
-
const { origin: e, size: t } =
|
|
2031
|
-
|
|
2082
|
+
function Kn(n) {
|
|
2083
|
+
const { origin: e, size: t } = ut(
|
|
2084
|
+
$({ x: n.x, y: n.y }),
|
|
2032
2085
|
n.anchor,
|
|
2033
2086
|
K({ width: n.width, height: n.height })
|
|
2034
2087
|
);
|
|
@@ -2041,11 +2094,11 @@ function Un(n) {
|
|
|
2041
2094
|
)
|
|
2042
2095
|
};
|
|
2043
2096
|
}
|
|
2044
|
-
function
|
|
2045
|
-
origin:
|
|
2097
|
+
function Zn(n, e, t, o = {
|
|
2098
|
+
origin: $({ x: 0, y: 0 }),
|
|
2046
2099
|
size: e
|
|
2047
2100
|
}) {
|
|
2048
|
-
const i = t(), { origin: a, size: s, cornerRadius: r } =
|
|
2101
|
+
const i = t(), { origin: a, size: s, cornerRadius: r } = Kn(n), { origin: l, size: c } = o;
|
|
2049
2102
|
return i.path.moveTo(l.x, l.y), i.path.lineTo(l.x + c.width, l.y), i.path.lineTo(l.x + c.width, l.y + c.height), i.path.lineTo(l.x, l.y + c.height), i.path.lineTo(l.x, l.y), r === 0 ? (i.path.moveTo(a.x, a.y), i.path.lineTo(a.x, a.y + s.height), i.path.lineTo(a.x + s.width, a.y + s.height), i.path.lineTo(a.x + s.width, a.y), i.path.lineTo(a.x, a.y), i) : (i.path.moveTo(a.x + r, a.y), i.path.arcTo(a.x, a.y, a.x, a.y + r, r), i.path.lineTo(a.x, a.y + s.height - r), i.path.arcTo(
|
|
2050
2103
|
a.x,
|
|
2051
2104
|
a.y + s.height,
|
|
@@ -2066,7 +2119,7 @@ function Hn(n, e, t, o = {
|
|
|
2066
2119
|
r
|
|
2067
2120
|
), i.path.lineTo(a.x + r, a.y), i);
|
|
2068
2121
|
}
|
|
2069
|
-
const
|
|
2122
|
+
const Jn = ({
|
|
2070
2123
|
createPath2D: n,
|
|
2071
2124
|
ctx: e,
|
|
2072
2125
|
object: t,
|
|
@@ -2080,15 +2133,15 @@ const Yn = ({
|
|
|
2080
2133
|
const r = K({
|
|
2081
2134
|
width: a.width / i,
|
|
2082
2135
|
height: a.height / i
|
|
2083
|
-
}), l =
|
|
2136
|
+
}), l = $({
|
|
2084
2137
|
x: (a.width - r.width) / 2,
|
|
2085
2138
|
y: (a.height - r.height) / 2
|
|
2086
|
-
}), c =
|
|
2139
|
+
}), c = Zn(t, a, n, {
|
|
2087
2140
|
origin: l,
|
|
2088
2141
|
size: r
|
|
2089
2142
|
});
|
|
2090
|
-
|
|
2091
|
-
},
|
|
2143
|
+
pt({ ctx: e, path: c, color: t.color, opacity: s });
|
|
2144
|
+
}, Qn = ({
|
|
2092
2145
|
ctx: n,
|
|
2093
2146
|
imageById: e,
|
|
2094
2147
|
object: t,
|
|
@@ -2100,8 +2153,8 @@ const Yn = ({
|
|
|
2100
2153
|
const a = e[t.svg];
|
|
2101
2154
|
if (a === void 0)
|
|
2102
2155
|
return;
|
|
2103
|
-
const s =
|
|
2104
|
-
|
|
2156
|
+
const s = ut(
|
|
2157
|
+
$({ x: t.x, y: t.y }),
|
|
2105
2158
|
t.anchor,
|
|
2106
2159
|
K({ width: t.width, height: t.height })
|
|
2107
2160
|
);
|
|
@@ -2125,11 +2178,11 @@ const Yn = ({
|
|
|
2125
2178
|
);
|
|
2126
2179
|
break;
|
|
2127
2180
|
default:
|
|
2128
|
-
|
|
2181
|
+
at(n);
|
|
2129
2182
|
}
|
|
2130
2183
|
n.context.restore();
|
|
2131
2184
|
};
|
|
2132
|
-
function
|
|
2185
|
+
function t1(n) {
|
|
2133
2186
|
return {
|
|
2134
2187
|
color: n.color,
|
|
2135
2188
|
fontFamily: n.fontFamily,
|
|
@@ -2141,7 +2194,7 @@ function Wn(n) {
|
|
|
2141
2194
|
superscript: n.superscript
|
|
2142
2195
|
};
|
|
2143
2196
|
}
|
|
2144
|
-
function
|
|
2197
|
+
function e1(n) {
|
|
2145
2198
|
return {
|
|
2146
2199
|
bottom: Math.max(...n.map((e) => e.bottom), 0),
|
|
2147
2200
|
height: Math.max(...n.map((e) => e.height), 0),
|
|
@@ -2150,9 +2203,9 @@ function Gn(n) {
|
|
|
2150
2203
|
width: n.reduce((e, t) => e + t.width, 0)
|
|
2151
2204
|
};
|
|
2152
2205
|
}
|
|
2153
|
-
function
|
|
2206
|
+
function n1(n, e = 1) {
|
|
2154
2207
|
var c;
|
|
2155
|
-
const t = n.map(
|
|
2208
|
+
const t = n.map(e1);
|
|
2156
2209
|
if (t.length === 0)
|
|
2157
2210
|
return {
|
|
2158
2211
|
lines: [],
|
|
@@ -2180,7 +2233,7 @@ function Xn(n, e = 1) {
|
|
|
2180
2233
|
})
|
|
2181
2234
|
};
|
|
2182
2235
|
}
|
|
2183
|
-
const
|
|
2236
|
+
const i1 = 0.7, r1 = 0.3;
|
|
2184
2237
|
function c0(n) {
|
|
2185
2238
|
const e = n.superscript, t = n.subscript && !e;
|
|
2186
2239
|
return !e && !t ? {
|
|
@@ -2189,8 +2242,8 @@ function c0(n) {
|
|
|
2189
2242
|
isSubscript: !1,
|
|
2190
2243
|
isSuperscript: !1
|
|
2191
2244
|
} : {
|
|
2192
|
-
baselineShift: n.fontSize *
|
|
2193
|
-
fontSize: n.fontSize *
|
|
2245
|
+
baselineShift: n.fontSize * r1 * (e ? -1 : 1),
|
|
2246
|
+
fontSize: n.fontSize * i1,
|
|
2194
2247
|
isSubscript: t,
|
|
2195
2248
|
isSuperscript: e
|
|
2196
2249
|
};
|
|
@@ -2198,7 +2251,7 @@ function c0(n) {
|
|
|
2198
2251
|
function Ne(n, e = 0) {
|
|
2199
2252
|
return n ?? e;
|
|
2200
2253
|
}
|
|
2201
|
-
function
|
|
2254
|
+
function o1(n) {
|
|
2202
2255
|
const e = Ne(
|
|
2203
2256
|
n.fontBoundingBoxAscent,
|
|
2204
2257
|
n.actualBoundingBoxAscent
|
|
@@ -2217,14 +2270,14 @@ function u0(n, e, t = 1) {
|
|
|
2217
2270
|
const o = c0(e);
|
|
2218
2271
|
n.context.fillStyle = pe(e.color, t), n.context.font = `${e.fontStyle} ${e.fontWeight} ${o.fontSize}px ${e.fontFamily}`, n.type === Z.Browser ? n.context.textRendering = e.ligatures ? "optimizeLegibility" : "optimizeSpeed" : n.context.fontVariant = e.ligatures ? "common-ligatures" : "no-common-ligatures";
|
|
2219
2272
|
}
|
|
2220
|
-
function
|
|
2273
|
+
function s1(n, e, t) {
|
|
2221
2274
|
const o = [];
|
|
2222
2275
|
for (const i of n) {
|
|
2223
2276
|
const a = [], s = i.length === 0 ? [{ text: "" }] : i;
|
|
2224
2277
|
for (const r of s) {
|
|
2225
2278
|
const { text: l, ...c } = r, u = { ...e, ...c };
|
|
2226
2279
|
u0(t, u);
|
|
2227
|
-
const g = t.context.measureText(l), h =
|
|
2280
|
+
const g = t.context.measureText(l), h = o1(g), { baselineShift: f } = c0(u), v = Math.max(0, h.top - f), y = Math.max(0, h.bottom + f);
|
|
2228
2281
|
a.push({
|
|
2229
2282
|
...h,
|
|
2230
2283
|
baselineShift: f,
|
|
@@ -2238,11 +2291,11 @@ function Qn(n, e, t) {
|
|
|
2238
2291
|
}
|
|
2239
2292
|
return o;
|
|
2240
2293
|
}
|
|
2241
|
-
const
|
|
2294
|
+
const a1 = ({ ctx: n, object: e, opacity: t }) => {
|
|
2242
2295
|
const o = e.opacity * t;
|
|
2243
2296
|
if (o === 0)
|
|
2244
2297
|
return;
|
|
2245
|
-
const { length: i } = e, a = e0(e.text), s =
|
|
2298
|
+
const { length: i } = e, a = e0(e.text), s = t1(e), r = s1(a, s, n), l = n1(r, e.lineSpacing), c = ut($({ x: e.x, y: e.y }), e.anchor, l.size);
|
|
2246
2299
|
let u = c.origin.x, g = 0;
|
|
2247
2300
|
for (let h = 0; h < a.length; h++) {
|
|
2248
2301
|
const f = a[h], v = r[h], y = l.lines[h];
|
|
@@ -2250,65 +2303,65 @@ const t1 = ({ ctx: n, object: e, opacity: t }) => {
|
|
|
2250
2303
|
console.error("Could not determine text units or sizes for line");
|
|
2251
2304
|
continue;
|
|
2252
2305
|
}
|
|
2253
|
-
const T = v.reduce((
|
|
2306
|
+
const T = v.reduce((M, L) => M + L.width, 0);
|
|
2254
2307
|
switch (e.alignment) {
|
|
2255
|
-
case
|
|
2308
|
+
case vt.LEFT:
|
|
2256
2309
|
u = c.origin.x;
|
|
2257
2310
|
break;
|
|
2258
|
-
case
|
|
2311
|
+
case vt.CENTER:
|
|
2259
2312
|
u = c.origin.x + (c.size.width - T) / 2;
|
|
2260
2313
|
break;
|
|
2261
|
-
case
|
|
2314
|
+
case vt.RIGHT:
|
|
2262
2315
|
u = c.origin.x + (c.size.width - T);
|
|
2263
2316
|
break;
|
|
2264
2317
|
default:
|
|
2265
|
-
|
|
2318
|
+
at(e.alignment);
|
|
2266
2319
|
break;
|
|
2267
2320
|
}
|
|
2268
|
-
const
|
|
2269
|
-
for (let
|
|
2270
|
-
const
|
|
2271
|
-
if (
|
|
2321
|
+
const C = c.origin.y + y.baselineY;
|
|
2322
|
+
for (let M = 0; M < f.length && !(i !== null && g >= i); M++) {
|
|
2323
|
+
const L = f[M], E = v[M];
|
|
2324
|
+
if (L == null || E == null) {
|
|
2272
2325
|
console.error("Could not determine text unit or size for unit");
|
|
2273
2326
|
continue;
|
|
2274
2327
|
}
|
|
2275
|
-
const { text:
|
|
2328
|
+
const { text: S, ...k } = L;
|
|
2276
2329
|
let F;
|
|
2277
|
-
if (i !== null && g +
|
|
2278
|
-
const
|
|
2279
|
-
F =
|
|
2330
|
+
if (i !== null && g + S.length > i) {
|
|
2331
|
+
const Y = i - g;
|
|
2332
|
+
F = S.slice(0, Y);
|
|
2280
2333
|
}
|
|
2281
|
-
const
|
|
2282
|
-
g +=
|
|
2283
|
-
const
|
|
2284
|
-
u0(n,
|
|
2334
|
+
const U = F ?? S;
|
|
2335
|
+
g += U.length;
|
|
2336
|
+
const B = { ...s, ...k };
|
|
2337
|
+
u0(n, B, o), n.context.fillText(U, u, C + E.baselineShift), u += E.width;
|
|
2285
2338
|
}
|
|
2286
2339
|
}
|
|
2287
|
-
},
|
|
2288
|
-
[
|
|
2289
|
-
[
|
|
2290
|
-
[
|
|
2291
|
-
[
|
|
2292
|
-
[
|
|
2293
|
-
[
|
|
2294
|
-
[
|
|
2295
|
-
[
|
|
2296
|
-
[
|
|
2297
|
-
[
|
|
2340
|
+
}, l1 = {
|
|
2341
|
+
[V.ARROW]: Nn,
|
|
2342
|
+
[V.CIRCLE]: Bn,
|
|
2343
|
+
[V.GROUP]: qn,
|
|
2344
|
+
[V.IMAGE]: zn,
|
|
2345
|
+
[V.LINE]: jn,
|
|
2346
|
+
[V.MASK]: Hn,
|
|
2347
|
+
[V.PATH]: Un,
|
|
2348
|
+
[V.POLYGON]: $n,
|
|
2349
|
+
[V.RECTANGLE]: Xn,
|
|
2350
|
+
[V.SLIDE_OBJECT]: () => {
|
|
2298
2351
|
},
|
|
2299
|
-
[
|
|
2300
|
-
[
|
|
2301
|
-
[
|
|
2352
|
+
[V.SPOTLIGHT]: Jn,
|
|
2353
|
+
[V.SVG]: Qn,
|
|
2354
|
+
[V.TEXT]: a1
|
|
2302
2355
|
};
|
|
2303
|
-
function
|
|
2356
|
+
function h1(n) {
|
|
2304
2357
|
const e = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
2305
2358
|
return e.setAttribute("viewBox", `0 0 ${n.width} ${n.height}`), e.style.backgroundColor = "transparent", e.style.position = "absolute", e.style.width = "100%", e;
|
|
2306
2359
|
}
|
|
2307
|
-
function
|
|
2360
|
+
function c1(n, e) {
|
|
2308
2361
|
if (n === null)
|
|
2309
2362
|
return null;
|
|
2310
|
-
const t =
|
|
2311
|
-
|
|
2363
|
+
const t = ut(
|
|
2364
|
+
$({ x: e.x, y: e.y }),
|
|
2312
2365
|
e.anchor,
|
|
2313
2366
|
K({ width: e.width, height: e.height })
|
|
2314
2367
|
), o = document.createElementNS("http://www.w3.org/2000/svg", "foreignObject");
|
|
@@ -2324,7 +2377,7 @@ function i1(n, e) {
|
|
|
2324
2377
|
a !== null && a(), n.removeChild(o);
|
|
2325
2378
|
};
|
|
2326
2379
|
}
|
|
2327
|
-
async function
|
|
2380
|
+
async function u1(n) {
|
|
2328
2381
|
if (Object.keys(n).length === 0)
|
|
2329
2382
|
return {};
|
|
2330
2383
|
const e = {}, t = (i) => new Promise((a, s) => {
|
|
@@ -2349,7 +2402,7 @@ async function r1(n) {
|
|
|
2349
2402
|
return e;
|
|
2350
2403
|
}
|
|
2351
2404
|
const Re = "presenterPendingVariables:";
|
|
2352
|
-
function
|
|
2405
|
+
function f1() {
|
|
2353
2406
|
const n = f0();
|
|
2354
2407
|
if (n === null)
|
|
2355
2408
|
return {};
|
|
@@ -2368,7 +2421,7 @@ function o1() {
|
|
|
2368
2421
|
return console.error("Failed to parse pending presenter variable state from sessionStorage:", e), n.removeItem(ie()), {};
|
|
2369
2422
|
}
|
|
2370
2423
|
}
|
|
2371
|
-
function
|
|
2424
|
+
function d1(n) {
|
|
2372
2425
|
const e = f0();
|
|
2373
2426
|
e !== null && e.setItem(ie(), JSON.stringify({ values: n }));
|
|
2374
2427
|
}
|
|
@@ -2382,60 +2435,60 @@ function f0() {
|
|
|
2382
2435
|
return null;
|
|
2383
2436
|
}
|
|
2384
2437
|
}
|
|
2385
|
-
const
|
|
2438
|
+
const g1 = 0, p1 = 1, d0 = 0, x1 = 0.01, qt = /* @__PURE__ */ new Map();
|
|
2386
2439
|
let Ot = /* @__PURE__ */ new Map(), Fe = !1, Be = 1;
|
|
2387
|
-
function
|
|
2388
|
-
|
|
2389
|
-
const e = n ?? {}, t =
|
|
2440
|
+
function Di(n = null) {
|
|
2441
|
+
m1();
|
|
2442
|
+
const e = n ?? {}, t = w1(), o = v1(t, e), i = Ot.get(o.id);
|
|
2390
2443
|
if (i !== void 0) {
|
|
2391
|
-
const a =
|
|
2444
|
+
const a = x0(i, o);
|
|
2392
2445
|
return Ot.set(o.id, a), a;
|
|
2393
2446
|
}
|
|
2394
2447
|
return o.default;
|
|
2395
2448
|
}
|
|
2396
|
-
function
|
|
2397
|
-
return Array.from(
|
|
2449
|
+
function g0() {
|
|
2450
|
+
return Array.from(qt.values());
|
|
2398
2451
|
}
|
|
2399
|
-
function
|
|
2400
|
-
const e =
|
|
2452
|
+
function p0(n) {
|
|
2453
|
+
const e = qt.get(n);
|
|
2401
2454
|
return e === void 0 ? d0 : Ot.get(e.id) ?? e.default;
|
|
2402
2455
|
}
|
|
2403
|
-
function
|
|
2404
|
-
const t =
|
|
2456
|
+
function y1(n, e) {
|
|
2457
|
+
const t = qt.get(n);
|
|
2405
2458
|
if (t === void 0)
|
|
2406
2459
|
return e;
|
|
2407
|
-
const o =
|
|
2460
|
+
const o = x0(e, t);
|
|
2408
2461
|
return Ot.set(t.id, o), o;
|
|
2409
2462
|
}
|
|
2410
|
-
function
|
|
2411
|
-
const t = e.min ??
|
|
2463
|
+
function v1(n, e) {
|
|
2464
|
+
const t = e.min ?? g1, o = e.max ?? p1, i = Math.min(t, o), a = Math.max(t, o), s = e.increment !== void 0 && e.increment > 0 ? e.increment : x1, r = {
|
|
2412
2465
|
id: n,
|
|
2413
2466
|
name: e.name ?? n,
|
|
2414
2467
|
min: i,
|
|
2415
2468
|
max: a,
|
|
2416
|
-
default:
|
|
2469
|
+
default: y0(e.default ?? d0, i, a),
|
|
2417
2470
|
increment: s
|
|
2418
2471
|
};
|
|
2419
|
-
return
|
|
2472
|
+
return qt.set(n, r), r;
|
|
2420
2473
|
}
|
|
2421
|
-
function
|
|
2474
|
+
function w1() {
|
|
2422
2475
|
const n = `var${Be}`;
|
|
2423
2476
|
return Be += 1, n;
|
|
2424
2477
|
}
|
|
2425
|
-
function
|
|
2426
|
-
Fe || (Ot = new Map(Object.entries(
|
|
2478
|
+
function m1() {
|
|
2479
|
+
Fe || (Ot = new Map(Object.entries(f1())), Fe = !0);
|
|
2427
2480
|
}
|
|
2428
|
-
function
|
|
2429
|
-
return
|
|
2481
|
+
function x0(n, e) {
|
|
2482
|
+
return y0(n, e.min, e.max);
|
|
2430
2483
|
}
|
|
2431
|
-
function
|
|
2484
|
+
function y0(n, e, t) {
|
|
2432
2485
|
return Math.max(e, Math.min(t, n));
|
|
2433
2486
|
}
|
|
2434
|
-
function
|
|
2487
|
+
function b1({
|
|
2435
2488
|
onCommit: n,
|
|
2436
2489
|
onPreview: e
|
|
2437
2490
|
}) {
|
|
2438
|
-
const t =
|
|
2491
|
+
const t = g0();
|
|
2439
2492
|
if (t.length === 0)
|
|
2440
2493
|
return null;
|
|
2441
2494
|
const o = document.createElement("div");
|
|
@@ -2462,10 +2515,10 @@ function x1({
|
|
|
2462
2515
|
backdropFilter: "blur(10px)"
|
|
2463
2516
|
});
|
|
2464
2517
|
for (const i of t)
|
|
2465
|
-
o.appendChild(
|
|
2518
|
+
o.appendChild(A1(i, e, n));
|
|
2466
2519
|
return o;
|
|
2467
2520
|
}
|
|
2468
|
-
function
|
|
2521
|
+
function A1(n, e, t) {
|
|
2469
2522
|
const o = document.createElement("div");
|
|
2470
2523
|
o.dataset.presenterVariableId = n.id, o.dataset.presenterVariableName = n.name, Object.assign(o.style, {
|
|
2471
2524
|
display: "grid",
|
|
@@ -2498,9 +2551,9 @@ function y1(n, e, t) {
|
|
|
2498
2551
|
color: "#ffffff",
|
|
2499
2552
|
font: "inherit"
|
|
2500
2553
|
});
|
|
2501
|
-
let r =
|
|
2554
|
+
let r = p0(n.id);
|
|
2502
2555
|
const l = (g) => {
|
|
2503
|
-
const h =
|
|
2556
|
+
const h = T1(g);
|
|
2504
2557
|
a.value = h, s.value = h;
|
|
2505
2558
|
}, c = (g) => {
|
|
2506
2559
|
Number.isFinite(g) && (r = e(n.id, g), l(r));
|
|
@@ -2509,32 +2562,38 @@ function y1(n, e, t) {
|
|
|
2509
2562
|
};
|
|
2510
2563
|
return a.addEventListener("input", () => c(a.valueAsNumber)), a.addEventListener("change", () => u(a.valueAsNumber)), s.addEventListener("change", () => u(s.valueAsNumber)), l(r), o.appendChild(i), o.appendChild(a), o.appendChild(s), o;
|
|
2511
2564
|
}
|
|
2512
|
-
function
|
|
2565
|
+
function T1(n) {
|
|
2513
2566
|
return Number.isInteger(n) ? n.toString() : parseFloat(n.toFixed(6)).toString();
|
|
2514
2567
|
}
|
|
2515
|
-
function
|
|
2516
|
-
const t =
|
|
2568
|
+
function L1({ container: n, onCommit: e }) {
|
|
2569
|
+
const t = b1({
|
|
2517
2570
|
onPreview: (o, i) => {
|
|
2518
|
-
const a =
|
|
2519
|
-
return
|
|
2571
|
+
const a = y1(o, i);
|
|
2572
|
+
return d1(M1()), a;
|
|
2520
2573
|
},
|
|
2521
2574
|
onCommit: e
|
|
2522
2575
|
});
|
|
2523
2576
|
t !== null && n.appendChild(t);
|
|
2524
2577
|
}
|
|
2525
|
-
|
|
2578
|
+
function M1() {
|
|
2579
|
+
const n = {};
|
|
2580
|
+
for (const e of g0())
|
|
2581
|
+
n[e.id] = p0(e.id);
|
|
2582
|
+
return n;
|
|
2583
|
+
}
|
|
2584
|
+
class qi {
|
|
2526
2585
|
constructor(e) {
|
|
2527
2586
|
this.navigator = null;
|
|
2528
2587
|
const { objectRenderers: t, scale: o = 1, ...i } = e;
|
|
2529
2588
|
this.props = {
|
|
2530
|
-
presentation:
|
|
2589
|
+
presentation: mn(),
|
|
2531
2590
|
element: document.body,
|
|
2532
2591
|
objectRenderers: {
|
|
2533
|
-
...
|
|
2592
|
+
...l1,
|
|
2534
2593
|
...t
|
|
2535
2594
|
},
|
|
2536
2595
|
cacheDurationMinutes: 15,
|
|
2537
|
-
scale:
|
|
2596
|
+
scale: C1(o),
|
|
2538
2597
|
...i
|
|
2539
2598
|
}, this.state = { ..._e };
|
|
2540
2599
|
}
|
|
@@ -2542,23 +2601,23 @@ class _i {
|
|
|
2542
2601
|
async present() {
|
|
2543
2602
|
const { presentation: e, element: t, scale: o } = this.props;
|
|
2544
2603
|
this.hideCursor();
|
|
2545
|
-
const i =
|
|
2604
|
+
const i = kn(e.size), a = h1(e.size);
|
|
2546
2605
|
a.style.transformOrigin = "center center", a.style.transform = `scale(${o})`, this.state = {
|
|
2547
2606
|
..._e,
|
|
2548
|
-
imageById: await
|
|
2607
|
+
imageById: await u1({
|
|
2549
2608
|
...e.resources.images,
|
|
2550
|
-
...
|
|
2609
|
+
...Pn(e)
|
|
2551
2610
|
}),
|
|
2552
2611
|
canvas: i,
|
|
2553
2612
|
extrasContainer: a
|
|
2554
2613
|
};
|
|
2555
|
-
const s =
|
|
2614
|
+
const s = An(e, t), r = a0(t), l = (g, h) => {
|
|
2556
2615
|
this.state.shortcutState.shortcuts.b = {
|
|
2557
2616
|
slideIndex: this.state.slideIndex,
|
|
2558
2617
|
buildIndex: this.state.buildIndex
|
|
2559
2618
|
}, this.renderSlide(g ?? this.state.slideIndex, h);
|
|
2560
2619
|
}, c = (g = !1) => {
|
|
2561
|
-
r && (this.navigator =
|
|
2620
|
+
r && (this.navigator = fn({
|
|
2562
2621
|
presentation: e,
|
|
2563
2622
|
shortcutState: this.state.shortcutState,
|
|
2564
2623
|
onNavigateToSlide: (h) => this.renderSlide(h),
|
|
@@ -2582,12 +2641,12 @@ class _i {
|
|
|
2582
2641
|
focusOnPointerDown: !r,
|
|
2583
2642
|
keyEventTarget: r ? window : s
|
|
2584
2643
|
}
|
|
2585
|
-
), t.replaceChildren(), s.appendChild(i), s.appendChild(a),
|
|
2644
|
+
), t.replaceChildren(), s.appendChild(i), s.appendChild(a), L1({
|
|
2586
2645
|
container: s,
|
|
2587
2646
|
onCommit: () => this.reloadAfterVariableChange()
|
|
2588
2647
|
}), t.appendChild(s);
|
|
2589
|
-
const u =
|
|
2590
|
-
u !== null ? this.renderSlide(u.slideIndex, u.buildIndex) : this.renderSlide(0),
|
|
2648
|
+
const u = En(e, this.props.cacheDurationMinutes);
|
|
2649
|
+
u !== null ? this.renderSlide(u.slideIndex, u.buildIndex) : this.renderSlide(0), rn() && c(!0);
|
|
2591
2650
|
}
|
|
2592
2651
|
reloadAfterVariableChange() {
|
|
2593
2652
|
const { presentation: e } = this.props;
|
|
@@ -2607,7 +2666,7 @@ class _i {
|
|
|
2607
2666
|
l();
|
|
2608
2667
|
this.state.mountedExtrasCleanups = [];
|
|
2609
2668
|
for (const l of r.extras) {
|
|
2610
|
-
const c =
|
|
2669
|
+
const c = c1(this.state.extrasContainer, l);
|
|
2611
2670
|
c !== null && this.state.mountedExtrasCleanups.push(c);
|
|
2612
2671
|
}
|
|
2613
2672
|
}
|
|
@@ -2624,26 +2683,26 @@ class _i {
|
|
|
2624
2683
|
type: Z.Browser,
|
|
2625
2684
|
context: c
|
|
2626
2685
|
};
|
|
2627
|
-
|
|
2686
|
+
In(e, u);
|
|
2628
2687
|
const g = r.slides[t];
|
|
2629
2688
|
if (g === void 0)
|
|
2630
2689
|
return;
|
|
2631
|
-
const h =
|
|
2690
|
+
const h = Sn({
|
|
2632
2691
|
slide: g,
|
|
2633
2692
|
buildIndex: o,
|
|
2634
2693
|
buildTime: i
|
|
2635
2694
|
});
|
|
2636
2695
|
u.context.fillStyle = pe(r.backgroundColor), u.context.fillRect(0, 0, e.width, e.height);
|
|
2637
2696
|
function f(y, T) {
|
|
2638
|
-
const
|
|
2639
|
-
|
|
2697
|
+
const C = s[y.objectType], M = h.get(y);
|
|
2698
|
+
C === void 0 || M === void 0 || C({
|
|
2640
2699
|
ctx: u,
|
|
2641
2700
|
imageById: l,
|
|
2642
|
-
object:
|
|
2701
|
+
object: M,
|
|
2643
2702
|
opacity: T,
|
|
2644
2703
|
renderScale: a,
|
|
2645
2704
|
renderObject: f,
|
|
2646
|
-
createPath2D:
|
|
2705
|
+
createPath2D: On,
|
|
2647
2706
|
slideSize: r.size
|
|
2648
2707
|
});
|
|
2649
2708
|
}
|
|
@@ -2685,7 +2744,7 @@ class _i {
|
|
|
2685
2744
|
return;
|
|
2686
2745
|
const r = s.animations[a];
|
|
2687
2746
|
if (r !== void 0 && !e) {
|
|
2688
|
-
const l = performance.now(), c =
|
|
2747
|
+
const l = performance.now(), c = bn(r), u = (g) => {
|
|
2689
2748
|
const h = g - l;
|
|
2690
2749
|
h < c ? (this.renderSlide(i, a + 1, h), this.state.currentAnimationId = requestAnimationFrame(u)) : this.renderSlide(i, a + 1, null);
|
|
2691
2750
|
};
|
|
@@ -2715,56 +2774,45 @@ class _i {
|
|
|
2715
2774
|
this.props.element.style.cursor = "none", (t = (e = this.state.canvas) == null ? void 0 : e.parentElement) == null || t.style.setProperty("cursor", "none");
|
|
2716
2775
|
}
|
|
2717
2776
|
}
|
|
2718
|
-
function
|
|
2777
|
+
function C1(n) {
|
|
2719
2778
|
return n <= 0 || n > 1 ? (console.warn(
|
|
2720
2779
|
`BrowserCanvasRenderer scale must be positive and no greater than 1. Received ${n}; using 1 instead.`
|
|
2721
2780
|
), 1) : n;
|
|
2722
2781
|
}
|
|
2723
|
-
function
|
|
2782
|
+
function zi(n = 1e3, e = {}) {
|
|
2724
2783
|
return {
|
|
2725
|
-
type:
|
|
2784
|
+
type: dt.PAUSE,
|
|
2726
2785
|
isKey: !1,
|
|
2727
2786
|
duration: n,
|
|
2728
|
-
|
|
2729
|
-
};
|
|
2730
|
-
}
|
|
2731
|
-
function Ri(n = null) {
|
|
2732
|
-
return {
|
|
2733
|
-
objects: [],
|
|
2734
|
-
animations: [],
|
|
2735
|
-
extras: [],
|
|
2736
|
-
isAllKey: !1,
|
|
2737
|
-
isEndKey: !0,
|
|
2738
|
-
isStartKey: !1,
|
|
2787
|
+
notes: null,
|
|
2739
2788
|
shortcut: null,
|
|
2740
|
-
|
|
2741
|
-
...n
|
|
2789
|
+
...e
|
|
2742
2790
|
};
|
|
2743
2791
|
}
|
|
2744
|
-
function
|
|
2792
|
+
function Vi(n, e = {}) {
|
|
2745
2793
|
return {
|
|
2746
2794
|
...e,
|
|
2747
2795
|
text: n
|
|
2748
2796
|
};
|
|
2749
2797
|
}
|
|
2750
|
-
function
|
|
2798
|
+
function ji(n = G.BLACK) {
|
|
2751
2799
|
return { ...n, alpha: 1 };
|
|
2752
2800
|
}
|
|
2753
|
-
function
|
|
2801
|
+
function S1(n) {
|
|
2754
2802
|
for (var e = -1, t = n.length, o, i = n[t - 1], a = 0; ++e < t; )
|
|
2755
2803
|
o = i, i = n[e], a += o[1] * i[0] - o[0] * i[1];
|
|
2756
2804
|
return a / 2;
|
|
2757
2805
|
}
|
|
2758
|
-
function
|
|
2806
|
+
function P1(n) {
|
|
2759
2807
|
for (var e = -1, t = n.length, o = n[t - 1], i, a, s = o[0], r = o[1], l = 0; ++e < t; )
|
|
2760
2808
|
i = s, a = r, o = n[e], s = o[0], r = o[1], i -= s, a -= r, l += Math.sqrt(i * i + a * a);
|
|
2761
2809
|
return l;
|
|
2762
2810
|
}
|
|
2763
|
-
function
|
|
2811
|
+
function E1(n) {
|
|
2764
2812
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
2765
2813
|
}
|
|
2766
2814
|
var Yt, De;
|
|
2767
|
-
function
|
|
2815
|
+
function I1() {
|
|
2768
2816
|
if (De) return Yt;
|
|
2769
2817
|
De = 1;
|
|
2770
2818
|
var n = { a: 7, c: 6, h: 1, l: 2, m: 2, r: 4, q: 4, s: 4, t: 2, v: 1, z: 0 }, e = [
|
|
@@ -2840,35 +2888,35 @@ function L1() {
|
|
|
2840
2888
|
f.err = "SvgPath: arc flag can be 0 or 1 only (at pos " + f.index + ")";
|
|
2841
2889
|
}
|
|
2842
2890
|
function u(f) {
|
|
2843
|
-
var v = f.index, y = v, T = f.max,
|
|
2891
|
+
var v = f.index, y = v, T = f.max, C = !1, M = !1, L = !1, E = !1, S;
|
|
2844
2892
|
if (y >= T) {
|
|
2845
2893
|
f.err = "SvgPath: missed param (at pos " + y + ")";
|
|
2846
2894
|
return;
|
|
2847
2895
|
}
|
|
2848
|
-
if (
|
|
2896
|
+
if (S = f.path.charCodeAt(y), (S === 43 || S === 45) && (y++, S = y < T ? f.path.charCodeAt(y) : 0), !a(S) && S !== 46) {
|
|
2849
2897
|
f.err = "SvgPath: param should start with 0..9 or `.` (at pos " + y + ")";
|
|
2850
2898
|
return;
|
|
2851
2899
|
}
|
|
2852
|
-
if (
|
|
2853
|
-
if (
|
|
2900
|
+
if (S !== 46) {
|
|
2901
|
+
if (C = S === 48, y++, S = y < T ? f.path.charCodeAt(y) : 0, C && y < T && S && a(S)) {
|
|
2854
2902
|
f.err = "SvgPath: numbers started with `0` such as `09` are illegal (at pos " + v + ")";
|
|
2855
2903
|
return;
|
|
2856
2904
|
}
|
|
2857
2905
|
for (; y < T && a(f.path.charCodeAt(y)); )
|
|
2858
|
-
y++,
|
|
2859
|
-
|
|
2906
|
+
y++, M = !0;
|
|
2907
|
+
S = y < T ? f.path.charCodeAt(y) : 0;
|
|
2860
2908
|
}
|
|
2861
|
-
if (
|
|
2909
|
+
if (S === 46) {
|
|
2862
2910
|
for (E = !0, y++; a(f.path.charCodeAt(y)); )
|
|
2863
|
-
y++,
|
|
2864
|
-
|
|
2911
|
+
y++, L = !0;
|
|
2912
|
+
S = y < T ? f.path.charCodeAt(y) : 0;
|
|
2865
2913
|
}
|
|
2866
|
-
if (
|
|
2867
|
-
if (E && !
|
|
2914
|
+
if (S === 101 || S === 69) {
|
|
2915
|
+
if (E && !M && !L) {
|
|
2868
2916
|
f.err = "SvgPath: invalid float exponent (at pos " + y + ")";
|
|
2869
2917
|
return;
|
|
2870
2918
|
}
|
|
2871
|
-
if (y++,
|
|
2919
|
+
if (y++, S = y < T ? f.path.charCodeAt(y) : 0, (S === 43 || S === 45) && y++, y < T && a(f.path.charCodeAt(y)))
|
|
2872
2920
|
for (; y < T && a(f.path.charCodeAt(y)); )
|
|
2873
2921
|
y++;
|
|
2874
2922
|
else {
|
|
@@ -2889,24 +2937,24 @@ function L1() {
|
|
|
2889
2937
|
;
|
|
2890
2938
|
}
|
|
2891
2939
|
function h(f) {
|
|
2892
|
-
var v = f.max, y, T,
|
|
2940
|
+
var v = f.max, y, T, C, M, L;
|
|
2893
2941
|
if (f.segmentStart = f.index, y = f.path.charCodeAt(f.index), T = i(y), !o(y)) {
|
|
2894
2942
|
f.err = "SvgPath: bad command " + f.path[f.index] + " (at pos " + f.index + ")";
|
|
2895
2943
|
return;
|
|
2896
2944
|
}
|
|
2897
|
-
if (
|
|
2945
|
+
if (M = n[f.path[f.index].toLowerCase()], f.index++, l(f), f.data = [], !M) {
|
|
2898
2946
|
g(f);
|
|
2899
2947
|
return;
|
|
2900
2948
|
}
|
|
2901
|
-
for (
|
|
2902
|
-
for (
|
|
2903
|
-
if (T && (
|
|
2949
|
+
for (C = !1; ; ) {
|
|
2950
|
+
for (L = M; L > 0; L--) {
|
|
2951
|
+
if (T && (L === 3 || L === 4) ? c(f) : u(f), f.err.length) {
|
|
2904
2952
|
g(f);
|
|
2905
2953
|
return;
|
|
2906
2954
|
}
|
|
2907
|
-
f.data.push(f.param), l(f),
|
|
2955
|
+
f.data.push(f.param), l(f), C = !1, f.index < v && f.path.charCodeAt(f.index) === 44 && (f.index++, l(f), C = !0);
|
|
2908
2956
|
}
|
|
2909
|
-
if (!
|
|
2957
|
+
if (!C && (f.index >= f.max || !s(f.path.charCodeAt(f.index))))
|
|
2910
2958
|
break;
|
|
2911
2959
|
}
|
|
2912
2960
|
g(f);
|
|
@@ -2922,7 +2970,7 @@ function L1() {
|
|
|
2922
2970
|
}, Yt;
|
|
2923
2971
|
}
|
|
2924
2972
|
var $t, qe;
|
|
2925
|
-
function
|
|
2973
|
+
function v0() {
|
|
2926
2974
|
if (qe) return $t;
|
|
2927
2975
|
qe = 1;
|
|
2928
2976
|
function n(t, o) {
|
|
@@ -2972,10 +3020,10 @@ function x0() {
|
|
|
2972
3020
|
}, $t = e, $t;
|
|
2973
3021
|
}
|
|
2974
3022
|
var Wt, ze;
|
|
2975
|
-
function
|
|
3023
|
+
function k1() {
|
|
2976
3024
|
if (ze) return Wt;
|
|
2977
3025
|
ze = 1;
|
|
2978
|
-
var n =
|
|
3026
|
+
var n = v0(), e = {
|
|
2979
3027
|
matrix: !0,
|
|
2980
3028
|
scale: !0,
|
|
2981
3029
|
rotate: !0,
|
|
@@ -3018,7 +3066,7 @@ function M1() {
|
|
|
3018
3066
|
}, Wt;
|
|
3019
3067
|
}
|
|
3020
3068
|
var Gt, Ve;
|
|
3021
|
-
function
|
|
3069
|
+
function O1() {
|
|
3022
3070
|
if (Ve) return Gt;
|
|
3023
3071
|
Ve = 1;
|
|
3024
3072
|
var n = Math.PI * 2;
|
|
@@ -3027,41 +3075,41 @@ function C1() {
|
|
|
3027
3075
|
return c > 1 && (c = 1), c < -1 && (c = -1), l * Math.acos(c);
|
|
3028
3076
|
}
|
|
3029
3077
|
function t(i, a, s, r, l, c, u, g, h, f) {
|
|
3030
|
-
var v = f * (i - s) / 2 + h * (a - r) / 2, y = -h * (i - s) / 2 + f * (a - r) / 2, T = u * u,
|
|
3031
|
-
E < 0 && (E = 0), E /= T *
|
|
3032
|
-
var
|
|
3033
|
-
return c === 0 &&
|
|
3078
|
+
var v = f * (i - s) / 2 + h * (a - r) / 2, y = -h * (i - s) / 2 + f * (a - r) / 2, T = u * u, C = g * g, M = v * v, L = y * y, E = T * C - T * L - C * M;
|
|
3079
|
+
E < 0 && (E = 0), E /= T * L + C * M, E = Math.sqrt(E) * (l === c ? -1 : 1);
|
|
3080
|
+
var S = E * u / g * y, k = E * -g / u * v, F = f * S - h * k + (i + s) / 2, U = h * S + f * k + (a + r) / 2, B = (v - S) / u, Y = (y - k) / g, lt = (-v - S) / u, Q = (-y - k) / g, ft = e(1, 0, B, Y), it = e(B, Y, lt, Q);
|
|
3081
|
+
return c === 0 && it > 0 && (it -= n), c === 1 && it < 0 && (it += n), [F, U, ft, it];
|
|
3034
3082
|
}
|
|
3035
3083
|
function o(i, a) {
|
|
3036
3084
|
var s = 1.3333333333333333 * Math.tan(a / 4), r = Math.cos(i), l = Math.sin(i), c = Math.cos(i + a), u = Math.sin(i + a);
|
|
3037
3085
|
return [r, l, r - l * s, l + r * s, c + u * s, u - c * s, c, u];
|
|
3038
3086
|
}
|
|
3039
3087
|
return Gt = function(a, s, r, l, c, u, g, h, f) {
|
|
3040
|
-
var v = Math.sin(f * n / 360), y = Math.cos(f * n / 360), T = y * (a - r) / 2 + v * (s - l) / 2,
|
|
3041
|
-
if (T === 0 &&
|
|
3088
|
+
var v = Math.sin(f * n / 360), y = Math.cos(f * n / 360), T = y * (a - r) / 2 + v * (s - l) / 2, C = -v * (a - r) / 2 + y * (s - l) / 2;
|
|
3089
|
+
if (T === 0 && C === 0)
|
|
3042
3090
|
return [];
|
|
3043
3091
|
if (g === 0 || h === 0)
|
|
3044
3092
|
return [];
|
|
3045
3093
|
g = Math.abs(g), h = Math.abs(h);
|
|
3046
|
-
var
|
|
3047
|
-
|
|
3048
|
-
var
|
|
3049
|
-
|
|
3050
|
-
for (var
|
|
3051
|
-
E.push(o(
|
|
3052
|
-
return E.map(function(
|
|
3053
|
-
for (var
|
|
3054
|
-
var
|
|
3055
|
-
|
|
3056
|
-
var
|
|
3057
|
-
|
|
3094
|
+
var M = T * T / (g * g) + C * C / (h * h);
|
|
3095
|
+
M > 1 && (g *= Math.sqrt(M), h *= Math.sqrt(M));
|
|
3096
|
+
var L = t(a, s, r, l, c, u, g, h, v, y), E = [], S = L[2], k = L[3], F = Math.max(Math.ceil(Math.abs(k) / (n / 4)), 1);
|
|
3097
|
+
k /= F;
|
|
3098
|
+
for (var U = 0; U < F; U++)
|
|
3099
|
+
E.push(o(S, k)), S += k;
|
|
3100
|
+
return E.map(function(B) {
|
|
3101
|
+
for (var Y = 0; Y < B.length; Y += 2) {
|
|
3102
|
+
var lt = B[Y + 0], Q = B[Y + 1];
|
|
3103
|
+
lt *= g, Q *= h;
|
|
3104
|
+
var ft = y * lt - v * Q, it = v * lt + y * Q;
|
|
3105
|
+
B[Y + 0] = ft + L[0], B[Y + 1] = it + L[1];
|
|
3058
3106
|
}
|
|
3059
|
-
return
|
|
3107
|
+
return B;
|
|
3060
3108
|
});
|
|
3061
3109
|
}, Gt;
|
|
3062
3110
|
}
|
|
3063
3111
|
var Xt, je;
|
|
3064
|
-
function
|
|
3112
|
+
function _1() {
|
|
3065
3113
|
if (je) return Xt;
|
|
3066
3114
|
je = 1;
|
|
3067
3115
|
var n = 1e-10, e = Math.PI / 180;
|
|
@@ -3089,11 +3137,11 @@ function S1() {
|
|
|
3089
3137
|
return this.rx < n * this.ry || this.ry < n * this.rx;
|
|
3090
3138
|
}, Xt = t, Xt;
|
|
3091
3139
|
}
|
|
3092
|
-
var Kt,
|
|
3093
|
-
function
|
|
3094
|
-
if (
|
|
3095
|
-
|
|
3096
|
-
var n =
|
|
3140
|
+
var Kt, He;
|
|
3141
|
+
function N1() {
|
|
3142
|
+
if (He) return Kt;
|
|
3143
|
+
He = 1;
|
|
3144
|
+
var n = I1(), e = k1(), t = v0(), o = O1(), i = _1();
|
|
3097
3145
|
function a(s) {
|
|
3098
3146
|
if (!(this instanceof a))
|
|
3099
3147
|
return new a(s);
|
|
@@ -3131,12 +3179,12 @@ function P1() {
|
|
|
3131
3179
|
break;
|
|
3132
3180
|
case "a":
|
|
3133
3181
|
case "A":
|
|
3134
|
-
var
|
|
3135
|
-
if (
|
|
3182
|
+
var C = s.toArray(), M = i(c[1], c[2], c[3]).transform(C);
|
|
3183
|
+
if (C[0] * C[3] - C[1] * C[2] < 0 && (c[5] = c[5] ? "0" : "1"), f = s.calc(c[6], c[7], c[0] === "a"), c[0] === "A" && c[6] === g && c[7] === h || c[0] === "a" && c[6] === 0 && c[7] === 0) {
|
|
3136
3184
|
v = [c[0] === "a" ? "l" : "L", f[0], f[1]];
|
|
3137
3185
|
break;
|
|
3138
3186
|
}
|
|
3139
|
-
|
|
3187
|
+
M.isDegenerate() ? v = [c[0] === "a" ? "l" : "L", f[0], f[1]] : v = [c[0], M.rx, M.ry, M.ax, c[4], c[5], f[0], f[1]];
|
|
3140
3188
|
break;
|
|
3141
3189
|
case "m":
|
|
3142
3190
|
T = u > 0, f = s.calc(c[1], c[2], T), v = ["m", f[0], f[1]];
|
|
@@ -3218,40 +3266,40 @@ function P1() {
|
|
|
3218
3266
|
}
|
|
3219
3267
|
}), this;
|
|
3220
3268
|
}, a.prototype.iterate = function(s, r) {
|
|
3221
|
-
var l = this.segments, c = {}, u = !1, g = 0, h = 0, f = 0, v = 0, y, T,
|
|
3222
|
-
if (r || this.__evaluateStack(), l.forEach(function(
|
|
3223
|
-
var E = s(
|
|
3224
|
-
Array.isArray(E) && (c[
|
|
3225
|
-
var
|
|
3226
|
-
switch (
|
|
3269
|
+
var l = this.segments, c = {}, u = !1, g = 0, h = 0, f = 0, v = 0, y, T, C;
|
|
3270
|
+
if (r || this.__evaluateStack(), l.forEach(function(M, L) {
|
|
3271
|
+
var E = s(M, L, g, h);
|
|
3272
|
+
Array.isArray(E) && (c[L] = E, u = !0);
|
|
3273
|
+
var S = M[0] === M[0].toLowerCase();
|
|
3274
|
+
switch (M[0]) {
|
|
3227
3275
|
case "m":
|
|
3228
3276
|
case "M":
|
|
3229
|
-
g =
|
|
3277
|
+
g = M[1] + (S ? g : 0), h = M[2] + (S ? h : 0), f = g, v = h;
|
|
3230
3278
|
return;
|
|
3231
3279
|
case "h":
|
|
3232
3280
|
case "H":
|
|
3233
|
-
g =
|
|
3281
|
+
g = M[1] + (S ? g : 0);
|
|
3234
3282
|
return;
|
|
3235
3283
|
case "v":
|
|
3236
3284
|
case "V":
|
|
3237
|
-
h =
|
|
3285
|
+
h = M[1] + (S ? h : 0);
|
|
3238
3286
|
return;
|
|
3239
3287
|
case "z":
|
|
3240
3288
|
case "Z":
|
|
3241
3289
|
g = f, h = v;
|
|
3242
3290
|
return;
|
|
3243
3291
|
default:
|
|
3244
|
-
g =
|
|
3292
|
+
g = M[M.length - 2] + (S ? g : 0), h = M[M.length - 1] + (S ? h : 0);
|
|
3245
3293
|
}
|
|
3246
3294
|
}), !u)
|
|
3247
3295
|
return this;
|
|
3248
|
-
for (
|
|
3296
|
+
for (C = [], y = 0; y < l.length; y++)
|
|
3249
3297
|
if (typeof c[y] < "u")
|
|
3250
3298
|
for (T = 0; T < c[y].length; T++)
|
|
3251
|
-
|
|
3299
|
+
C.push(c[y][T]);
|
|
3252
3300
|
else
|
|
3253
|
-
|
|
3254
|
-
return this.segments =
|
|
3301
|
+
C.push(l[y]);
|
|
3302
|
+
return this.segments = C, this;
|
|
3255
3303
|
}, a.prototype.abs = function() {
|
|
3256
3304
|
return this.iterate(function(s, r, l, c) {
|
|
3257
3305
|
var u = s[0], g = u.toUpperCase(), h;
|
|
@@ -3294,15 +3342,15 @@ function P1() {
|
|
|
3294
3342
|
}, a.prototype.unshort = function() {
|
|
3295
3343
|
var s = this.segments, r, l, c, u, g;
|
|
3296
3344
|
return this.iterate(function(h, f, v, y) {
|
|
3297
|
-
var T = h[0],
|
|
3298
|
-
f && (
|
|
3299
|
-
|
|
3345
|
+
var T = h[0], C = T.toUpperCase(), M;
|
|
3346
|
+
f && (C === "T" ? (M = T === "t", c = s[f - 1], c[0] === "Q" ? (r = c[1] - v, l = c[2] - y) : c[0] === "q" ? (r = c[1] - c[3], l = c[2] - c[4]) : (r = 0, l = 0), u = -r, g = -l, M || (u += v, g += y), s[f] = [
|
|
3347
|
+
M ? "q" : "Q",
|
|
3300
3348
|
u,
|
|
3301
3349
|
g,
|
|
3302
3350
|
h[1],
|
|
3303
3351
|
h[2]
|
|
3304
|
-
]) :
|
|
3305
|
-
|
|
3352
|
+
]) : C === "S" && (M = T === "s", c = s[f - 1], c[0] === "C" ? (r = c[3] - v, l = c[4] - y) : c[0] === "c" ? (r = c[3] - c[5], l = c[4] - c[6]) : (r = 0, l = 0), u = -r, g = -l, M || (u += v, g += y), s[f] = [
|
|
3353
|
+
M ? "c" : "C",
|
|
3306
3354
|
u,
|
|
3307
3355
|
g,
|
|
3308
3356
|
h[1],
|
|
@@ -3313,18 +3361,18 @@ function P1() {
|
|
|
3313
3361
|
}), this;
|
|
3314
3362
|
}, Kt = a, Kt;
|
|
3315
3363
|
}
|
|
3316
|
-
var Zt,
|
|
3317
|
-
function
|
|
3318
|
-
return
|
|
3364
|
+
var Zt, Ue;
|
|
3365
|
+
function R1() {
|
|
3366
|
+
return Ue || (Ue = 1, Zt = N1()), Zt;
|
|
3319
3367
|
}
|
|
3320
|
-
var
|
|
3321
|
-
const
|
|
3322
|
-
var Jt = { a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0 },
|
|
3323
|
-
function
|
|
3368
|
+
var F1 = R1();
|
|
3369
|
+
const B1 = /* @__PURE__ */ E1(F1);
|
|
3370
|
+
var Jt = { a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0 }, D1 = /([astvzqmhlc])([^astvzqmhlc]*)/ig;
|
|
3371
|
+
function q1(n) {
|
|
3324
3372
|
var e = [];
|
|
3325
|
-
return n.replace(
|
|
3373
|
+
return n.replace(D1, function(t, o, i) {
|
|
3326
3374
|
var a = o.toLowerCase();
|
|
3327
|
-
for (i =
|
|
3375
|
+
for (i = V1(i), a === "m" && i.length > 2 && (e.push([o].concat(i.splice(0, 2))), a = "l", o = o === "m" ? "l" : "L"); i.length >= 0; ) {
|
|
3328
3376
|
if (i.length === Jt[a])
|
|
3329
3377
|
return i.unshift(o), e.push(i);
|
|
3330
3378
|
if (i.length < Jt[a])
|
|
@@ -3333,16 +3381,16 @@ function _1(n) {
|
|
|
3333
3381
|
}
|
|
3334
3382
|
}), e;
|
|
3335
3383
|
}
|
|
3336
|
-
var
|
|
3337
|
-
function
|
|
3338
|
-
var e = n.match(
|
|
3384
|
+
var z1 = /-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;
|
|
3385
|
+
function V1(n) {
|
|
3386
|
+
var e = n.match(z1);
|
|
3339
3387
|
return e ? e.map(Number) : [];
|
|
3340
3388
|
}
|
|
3341
|
-
function
|
|
3389
|
+
function ot(n, e, t, o, i, a, s, r) {
|
|
3342
3390
|
return new re(n, e, t, o, i, a, s, r);
|
|
3343
3391
|
}
|
|
3344
3392
|
function re(n, e, t, o, i, a, s, r) {
|
|
3345
|
-
this.a = { x: n, y: e }, this.b = { x: t, y: o }, this.c = { x: i, y: a }, this.d = { x: s, y: r }, s != null && r !== null && r !== void 0 ? (this.getArcLength =
|
|
3393
|
+
this.a = { x: n, y: e }, this.b = { x: t, y: o }, this.c = { x: i, y: a }, this.d = { x: s, y: r }, s != null && r !== null && r !== void 0 ? (this.getArcLength = Z1, this.getPoint = U1, this.getDerivative = H1) : (this.getArcLength = Y1, this.getPoint = w0, this.getDerivative = j1), this.init();
|
|
3346
3394
|
}
|
|
3347
3395
|
re.prototype = {
|
|
3348
3396
|
constructor: re,
|
|
@@ -3404,14 +3452,14 @@ re.prototype = {
|
|
|
3404
3452
|
return { x: a.x, y: a.y, tangentX: i.x, tangentY: i.y };
|
|
3405
3453
|
}
|
|
3406
3454
|
};
|
|
3407
|
-
function
|
|
3455
|
+
function j1(n, e, t) {
|
|
3408
3456
|
return {
|
|
3409
3457
|
x: (1 - t) * 2 * (n[1] - n[0]) + t * 2 * (n[2] - n[1]),
|
|
3410
3458
|
y: (1 - t) * 2 * (e[1] - e[0]) + t * 2 * (e[2] - e[1])
|
|
3411
3459
|
};
|
|
3412
3460
|
}
|
|
3413
|
-
function
|
|
3414
|
-
var o =
|
|
3461
|
+
function H1(n, e, t) {
|
|
3462
|
+
var o = w0(
|
|
3415
3463
|
[3 * (n[1] - n[0]), 3 * (n[2] - n[1]), 3 * (n[3] - n[2])],
|
|
3416
3464
|
[3 * (e[1] - e[0]), 3 * (e[2] - e[1]), 3 * (e[3] - e[2])],
|
|
3417
3465
|
t
|
|
@@ -3425,15 +3473,15 @@ function Qt(n, e, t, o, i) {
|
|
|
3425
3473
|
}
|
|
3426
3474
|
return s;
|
|
3427
3475
|
}
|
|
3428
|
-
function
|
|
3476
|
+
function w0(n, e, t) {
|
|
3429
3477
|
var o = (1 - t) * (1 - t) * n[0] + 2 * (1 - t) * t * n[1] + t * t * n[2], i = (1 - t) * (1 - t) * e[0] + 2 * (1 - t) * t * e[1] + t * t * e[2];
|
|
3430
3478
|
return { x: o, y: i };
|
|
3431
3479
|
}
|
|
3432
|
-
function
|
|
3480
|
+
function U1(n, e, t) {
|
|
3433
3481
|
var o = (1 - t) * (1 - t) * (1 - t) * n[0] + 3 * (1 - t) * (1 - t) * t * n[1] + 3 * (1 - t) * t * t * n[2] + t * t * t * n[3], i = (1 - t) * (1 - t) * (1 - t) * e[0] + 3 * (1 - t) * (1 - t) * t * e[1] + 3 * (1 - t) * t * t * e[2] + t * t * t * e[3];
|
|
3434
3482
|
return { x: o, y: i };
|
|
3435
3483
|
}
|
|
3436
|
-
function
|
|
3484
|
+
function Y1(n, e, t) {
|
|
3437
3485
|
t === void 0 && (t = 1);
|
|
3438
3486
|
var o = n[0] - 2 * n[1] + n[2], i = e[0] - 2 * e[1] + e[2], a = 2 * n[1] - 2 * n[0], s = 2 * e[1] - 2 * e[0], r = 4 * (o * o + i * i), l = 4 * (o * a + i * s), c = a * a + s * s;
|
|
3439
3487
|
if (r === 0)
|
|
@@ -3443,7 +3491,7 @@ function q1(n, e, t) {
|
|
|
3443
3491
|
(h + Math.sqrt(h * h + f)) / (u + Math.sqrt(u * u + f))
|
|
3444
3492
|
)));
|
|
3445
3493
|
}
|
|
3446
|
-
var
|
|
3494
|
+
var $1 = [
|
|
3447
3495
|
[],
|
|
3448
3496
|
[],
|
|
3449
3497
|
[-0.5773502691896257, 0.5773502691896257],
|
|
@@ -3469,7 +3517,7 @@ var z1 = [
|
|
|
3469
3517
|
[-0.06973927331972223, 0.06973927331972223, -0.20786042668822127, 0.20786042668822127, -0.34193582089208424, 0.34193582089208424, -0.469355837986757, 0.469355837986757, -0.5876404035069116, 0.5876404035069116, -0.6944872631866827, 0.6944872631866827, -0.7878168059792081, 0.7878168059792081, -0.8658125777203002, 0.8658125777203002, -0.926956772187174, 0.926956772187174, -0.9700604978354287, 0.9700604978354287, -0.9942945854823992, 0.9942945854823992],
|
|
3470
3518
|
[0, -0.1332568242984661, 0.1332568242984661, -0.26413568097034495, 0.26413568097034495, -0.3903010380302908, 0.3903010380302908, -0.5095014778460075, 0.5095014778460075, -0.6196098757636461, 0.6196098757636461, -0.7186613631319502, 0.7186613631319502, -0.8048884016188399, 0.8048884016188399, -0.8767523582704416, 0.8767523582704416, -0.9329710868260161, 0.9329710868260161, -0.9725424712181152, 0.9725424712181152, -0.9947693349975522, 0.9947693349975522],
|
|
3471
3519
|
[-0.06405689286260563, 0.06405689286260563, -0.1911188674736163, 0.1911188674736163, -0.3150426796961634, 0.3150426796961634, -0.4337935076260451, 0.4337935076260451, -0.5454214713888396, 0.5454214713888396, -0.6480936519369755, 0.6480936519369755, -0.7401241915785544, 0.7401241915785544, -0.820001985973903, 0.820001985973903, -0.8864155270044011, 0.8864155270044011, -0.9382745520027328, 0.9382745520027328, -0.9747285559713095, 0.9747285559713095, -0.9951872199970213, 0.9951872199970213]
|
|
3472
|
-
],
|
|
3520
|
+
], W1 = [
|
|
3473
3521
|
[],
|
|
3474
3522
|
[],
|
|
3475
3523
|
[1, 1],
|
|
@@ -3495,9 +3543,9 @@ var z1 = [
|
|
|
3495
3543
|
[0.13925187285563198, 0.13925187285563198, 0.13654149834601517, 0.13654149834601517, 0.13117350478706238, 0.13117350478706238, 0.12325237681051242, 0.12325237681051242, 0.11293229608053922, 0.11293229608053922, 0.10041414444288096, 0.10041414444288096, 0.08594160621706773, 0.08594160621706773, 0.06979646842452049, 0.06979646842452049, 0.052293335152683286, 0.052293335152683286, 0.03377490158481415, 0.03377490158481415, 0.0146279952982722, 0.0146279952982722],
|
|
3496
3544
|
[0.13365457218610619, 0.1324620394046966, 0.1324620394046966, 0.12890572218808216, 0.12890572218808216, 0.12304908430672953, 0.12304908430672953, 0.11499664022241136, 0.11499664022241136, 0.10489209146454141, 0.10489209146454141, 0.09291576606003515, 0.09291576606003515, 0.07928141177671895, 0.07928141177671895, 0.06423242140852585, 0.06423242140852585, 0.04803767173108467, 0.04803767173108467, 0.030988005856979445, 0.030988005856979445, 0.013411859487141771, 0.013411859487141771],
|
|
3497
3545
|
[0.12793819534675216, 0.12793819534675216, 0.1258374563468283, 0.1258374563468283, 0.12167047292780339, 0.12167047292780339, 0.1155056680537256, 0.1155056680537256, 0.10744427011596563, 0.10744427011596563, 0.09761865210411388, 0.09761865210411388, 0.08619016153195327, 0.08619016153195327, 0.0733464814110803, 0.0733464814110803, 0.05929858491543678, 0.05929858491543678, 0.04427743881741981, 0.04427743881741981, 0.028531388628933663, 0.028531388628933663, 0.0123412297999872, 0.0123412297999872]
|
|
3498
|
-
],
|
|
3499
|
-
function
|
|
3500
|
-
return
|
|
3546
|
+
], G1 = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]];
|
|
3547
|
+
function X1(n, e) {
|
|
3548
|
+
return G1[n][e];
|
|
3501
3549
|
}
|
|
3502
3550
|
function oe(n, e, t) {
|
|
3503
3551
|
var o = t.length - 1, i, a, s;
|
|
@@ -3505,7 +3553,7 @@ function oe(n, e, t) {
|
|
|
3505
3553
|
return 0;
|
|
3506
3554
|
if (n === 0) {
|
|
3507
3555
|
for (a = 0, s = 0; s <= o; s++)
|
|
3508
|
-
a +=
|
|
3556
|
+
a += X1(o, s) * Math.pow(1 - e, o - s) * Math.pow(e, s) * t[s];
|
|
3509
3557
|
return a;
|
|
3510
3558
|
} else {
|
|
3511
3559
|
for (i = new Array(o), s = 0; s < o; s++)
|
|
@@ -3513,16 +3561,16 @@ function oe(n, e, t) {
|
|
|
3513
3561
|
return oe(n - 1, e, i);
|
|
3514
3562
|
}
|
|
3515
3563
|
}
|
|
3516
|
-
function
|
|
3564
|
+
function K1(n, e, t) {
|
|
3517
3565
|
var o = oe(1, t, n), i = oe(1, t, e), a = o * o + i * i;
|
|
3518
3566
|
return Math.sqrt(a);
|
|
3519
3567
|
}
|
|
3520
|
-
function
|
|
3568
|
+
function Z1(n, e, t) {
|
|
3521
3569
|
var o, i, a, s;
|
|
3522
3570
|
t === void 0 && (t = 1);
|
|
3523
3571
|
var r = 20;
|
|
3524
3572
|
for (o = t / 2, i = 0, a = 0; a < r; a++)
|
|
3525
|
-
s = o *
|
|
3573
|
+
s = o * $1[r][a] + o, i += W1[r][a] * K1(n, e, s);
|
|
3526
3574
|
return o * i;
|
|
3527
3575
|
}
|
|
3528
3576
|
var Et = Math.PI * 2;
|
|
@@ -3530,17 +3578,17 @@ function Ye(n, e, t, o) {
|
|
|
3530
3578
|
var i = n * o - e * t < 0 ? -1 : 1, a = n * t + e * o;
|
|
3531
3579
|
return a > 1 && (a = 1), a < -1 && (a = -1), i * Math.acos(a);
|
|
3532
3580
|
}
|
|
3533
|
-
function
|
|
3581
|
+
function J1(n, e, t, o, i, a, s, r, l, c) {
|
|
3534
3582
|
var u = c * (n - t) / 2 + l * (e - o) / 2, g = -l * (n - t) / 2 + c * (e - o) / 2, h = s * s, f = r * r, v = u * u, y = g * g, T = h * f - h * y - f * v;
|
|
3535
3583
|
T < 0 && (T = 0), T /= h * y + f * v, T = Math.sqrt(T) * (i === a ? -1 : 1);
|
|
3536
|
-
var
|
|
3537
|
-
return a === 0 &&
|
|
3584
|
+
var C = T * s / r * g, M = T * -r / s * u, L = c * C - l * M + (n + t) / 2, E = l * C + c * M + (e + o) / 2, S = (u - C) / s, k = (g - M) / r, F = (-u - C) / s, U = (-g - M) / r, B = Ye(1, 0, S, k), Y = Ye(S, k, F, U);
|
|
3585
|
+
return a === 0 && Y > 0 && (Y -= Et), a === 1 && Y < 0 && (Y += Et), [L, E, B, Y];
|
|
3538
3586
|
}
|
|
3539
|
-
function
|
|
3587
|
+
function Q1(n, e) {
|
|
3540
3588
|
var t = 1.3333333333333333 * Math.tan(e / 4), o = Math.cos(n), i = Math.sin(n), a = Math.cos(n + e), s = Math.sin(n + e);
|
|
3541
3589
|
return [o, i, o - i * t, i + o * t, a + s * t, s - a * t, a, s];
|
|
3542
3590
|
}
|
|
3543
|
-
function
|
|
3591
|
+
function ti(n, e, t, o, i, a, s, r, l) {
|
|
3544
3592
|
var c = Math.sin(i * Et / 360), u = Math.cos(i * Et / 360), g = u * (n - r) / 2 + c * (e - l) / 2, h = -c * (n - r) / 2 + u * (e - l) / 2;
|
|
3545
3593
|
if (g === 0 && h === 0)
|
|
3546
3594
|
return [];
|
|
@@ -3549,16 +3597,16 @@ function G1(n, e, t, o, i, a, s, r, l) {
|
|
|
3549
3597
|
t = Math.abs(t), o = Math.abs(o);
|
|
3550
3598
|
var f = g * g / (t * t) + h * h / (o * o);
|
|
3551
3599
|
f > 1 && (t *= Math.sqrt(f), o *= Math.sqrt(f));
|
|
3552
|
-
var v =
|
|
3553
|
-
|
|
3554
|
-
for (var
|
|
3555
|
-
y.push(
|
|
3600
|
+
var v = J1(n, e, r, l, a, s, t, o, c, u), y = [], T = v[2], C = v[3], M = Math.max(Math.ceil(Math.abs(C) / (Et / 4)), 1);
|
|
3601
|
+
C /= M;
|
|
3602
|
+
for (var L = 0; L < M; L++)
|
|
3603
|
+
y.push(Q1(T, C)), T += C;
|
|
3556
3604
|
return y.map(function(E) {
|
|
3557
|
-
for (var
|
|
3558
|
-
var
|
|
3559
|
-
|
|
3560
|
-
var
|
|
3561
|
-
E[
|
|
3605
|
+
for (var S = 0; S < E.length; S += 2) {
|
|
3606
|
+
var k = E[S + 0], F = E[S + 1];
|
|
3607
|
+
k *= t, F *= o;
|
|
3608
|
+
var U = u * k - c * F, B = c * k + u * F;
|
|
3609
|
+
E[S + 0] = U + v[0], E[S + 1] = B + v[1];
|
|
3562
3610
|
}
|
|
3563
3611
|
return E;
|
|
3564
3612
|
});
|
|
@@ -3567,9 +3615,9 @@ function $e(n, e, t, o, i, a, s, r, l) {
|
|
|
3567
3615
|
return new se(n, e, t, o, i, a, s, r, l);
|
|
3568
3616
|
}
|
|
3569
3617
|
function se(n, e, t, o, i, a, s, r, l) {
|
|
3570
|
-
var c = 0, u = [], g = [], h =
|
|
3618
|
+
var c = 0, u = [], g = [], h = ti(n, e, t, o, i, a, s, r, l);
|
|
3571
3619
|
h.forEach(function(f) {
|
|
3572
|
-
var v = new
|
|
3620
|
+
var v = new ot(f[0], f[1], f[2], f[3], f[4], f[5], f[6], f[7]), y = v.getTotalLength();
|
|
3573
3621
|
c += y, u.push(y), g.push(v);
|
|
3574
3622
|
}), this.length = c, this.partialLengths = u, this.curves = g;
|
|
3575
3623
|
}
|
|
@@ -3603,7 +3651,7 @@ se.prototype = {
|
|
|
3603
3651
|
return { x: t.x, y: t.y, tangentX: e.x, tangentY: e.y };
|
|
3604
3652
|
}
|
|
3605
3653
|
};
|
|
3606
|
-
function
|
|
3654
|
+
function rt(n, e, t, o) {
|
|
3607
3655
|
return new _t(n, e, t, o);
|
|
3608
3656
|
}
|
|
3609
3657
|
function _t(n, e, t, o) {
|
|
@@ -3624,13 +3672,13 @@ _t.prototype.getPropertiesAtLength = function(n) {
|
|
|
3624
3672
|
var e = this.getPointAtLength(n), t = this.getTangentAtLength();
|
|
3625
3673
|
return { x: e.x, y: e.y, tangentX: t.x, tangentY: t.y };
|
|
3626
3674
|
};
|
|
3627
|
-
function
|
|
3675
|
+
function ei(n) {
|
|
3628
3676
|
var e = 0, t = [], o = [];
|
|
3629
3677
|
function i(s) {
|
|
3630
3678
|
if (!s)
|
|
3631
3679
|
return null;
|
|
3632
|
-
for (var r =
|
|
3633
|
-
r[h][0] === "M" ? (l = [r[h][1], r[h][2]], g = [l[0], l[1]], o.push(null)) : r[h][0] === "m" ? (l = [r[h][1] + l[0], r[h][2] + l[1]], g = [l[0], l[1]], o.push(null)) : r[h][0] === "L" ? (e = e + Math.sqrt(Math.pow(l[0] - r[h][1], 2) + Math.pow(l[1] - r[h][2], 2)), o.push(new
|
|
3680
|
+
for (var r = q1(s), l = [0, 0], c = [0, 0], u, g, h = 0; h < r.length; h++)
|
|
3681
|
+
r[h][0] === "M" ? (l = [r[h][1], r[h][2]], g = [l[0], l[1]], o.push(null)) : r[h][0] === "m" ? (l = [r[h][1] + l[0], r[h][2] + l[1]], g = [l[0], l[1]], o.push(null)) : r[h][0] === "L" ? (e = e + Math.sqrt(Math.pow(l[0] - r[h][1], 2) + Math.pow(l[1] - r[h][2], 2)), o.push(new rt(l[0], r[h][1], l[1], r[h][2])), l = [r[h][1], r[h][2]]) : r[h][0] === "l" ? (e = e + Math.sqrt(Math.pow(r[h][1], 2) + Math.pow(r[h][2], 2)), o.push(new rt(l[0], r[h][1] + l[0], l[1], r[h][2] + l[1])), l = [r[h][1] + l[0], r[h][2] + l[1]]) : r[h][0] === "H" ? (e = e + Math.abs(l[0] - r[h][1]), o.push(new rt(l[0], r[h][1], l[1], l[1])), l[0] = r[h][1]) : r[h][0] === "h" ? (e = e + Math.abs(r[h][1]), o.push(new rt(l[0], l[0] + r[h][1], l[1], l[1])), l[0] = r[h][1] + l[0]) : r[h][0] === "V" ? (e = e + Math.abs(l[1] - r[h][1]), o.push(new rt(l[0], l[0], l[1], r[h][1])), l[1] = r[h][1]) : r[h][0] === "v" ? (e = e + Math.abs(r[h][1]), o.push(new rt(l[0], l[0], l[1], l[1] + r[h][1])), l[1] = r[h][1] + l[1]) : r[h][0] === "z" || r[h][0] === "Z" ? (e = e + Math.sqrt(Math.pow(g[0] - l[0], 2) + Math.pow(g[1] - l[1], 2)), o.push(new rt(l[0], g[0], l[1], g[1])), l = [g[0], g[1]]) : r[h][0] === "C" ? (u = new ot(l[0], l[1], r[h][1], r[h][2], r[h][3], r[h][4], r[h][5], r[h][6]), e = e + u.getTotalLength(), l = [r[h][5], r[h][6]], o.push(u)) : r[h][0] === "c" ? (u = new ot(l[0], l[1], l[0] + r[h][1], l[1] + r[h][2], l[0] + r[h][3], l[1] + r[h][4], l[0] + r[h][5], l[1] + r[h][6]), e = e + u.getTotalLength(), l = [r[h][5] + l[0], r[h][6] + l[1]], o.push(u)) : r[h][0] === "S" ? (h > 0 && ["C", "c", "S", "s"].indexOf(r[h - 1][0]) > -1 ? u = new ot(l[0], l[1], 2 * l[0] - r[h - 1][r[h - 1].length - 4], 2 * l[1] - r[h - 1][r[h - 1].length - 3], r[h][1], r[h][2], r[h][3], r[h][4]) : u = new ot(l[0], l[1], l[0], l[1], r[h][1], r[h][2], r[h][3], r[h][4]), e = e + u.getTotalLength(), l = [r[h][3], r[h][4]], o.push(u)) : r[h][0] === "s" ? (h > 0 && ["C", "c", "S", "s"].indexOf(r[h - 1][0]) > -1 ? u = new ot(l[0], l[1], l[0] + u.d.x - u.c.x, l[1] + u.d.y - u.c.y, l[0] + r[h][1], l[1] + r[h][2], l[0] + r[h][3], l[1] + r[h][4]) : u = new ot(l[0], l[1], l[0], l[1], l[0] + r[h][1], l[1] + r[h][2], l[0] + r[h][3], l[1] + r[h][4]), e = e + u.getTotalLength(), l = [r[h][3] + l[0], r[h][4] + l[1]], o.push(u)) : r[h][0] === "Q" ? (l[0] != r[h][1] && l[1] != r[h][2] ? u = new ot(l[0], l[1], r[h][1], r[h][2], r[h][3], r[h][4]) : u = new rt(r[h][1], r[h][3], r[h][2], r[h][4]), e = e + u.getTotalLength(), o.push(u), l = [r[h][3], r[h][4]], c = [r[h][1], r[h][2]]) : r[h][0] === "q" ? (r[h][1] == 0 && r[h][2] == 0 ? u = new rt(l[0] + r[h][1], l[0] + r[h][3], l[1] + r[h][2], l[1] + r[h][4]) : u = new ot(l[0], l[1], l[0] + r[h][1], l[1] + r[h][2], l[0] + r[h][3], l[1] + r[h][4]), e = e + u.getTotalLength(), c = [l[0] + r[h][1], l[1] + r[h][2]], l = [r[h][3] + l[0], r[h][4] + l[1]], o.push(u)) : r[h][0] === "T" ? (h > 0 && ["Q", "q", "T", "t"].indexOf(r[h - 1][0]) > -1 ? u = new ot(l[0], l[1], 2 * l[0] - c[0], 2 * l[1] - c[1], r[h][1], r[h][2]) : u = new rt(l[0], r[h][1], l[1], r[h][2]), o.push(u), e = e + u.getTotalLength(), c = [2 * l[0] - c[0], 2 * l[1] - c[1]], l = [r[h][1], r[h][2]]) : r[h][0] === "t" ? (h > 0 && ["Q", "q", "T", "t"].indexOf(r[h - 1][0]) > -1 ? u = new ot(l[0], l[1], 2 * l[0] - c[0], 2 * l[1] - c[1], l[0] + r[h][1], l[1] + r[h][2]) : u = new rt(l[0], l[0] + r[h][1], l[1], l[1] + r[h][2]), e = e + u.getTotalLength(), c = [2 * l[0] - c[0], 2 * l[1] - c[1]], l = [r[h][1] + l[0], r[h][2] + l[0]], o.push(u)) : r[h][0] === "A" ? (u = new $e(l[0], l[1], r[h][1], r[h][2], r[h][3], r[h][4], r[h][5], r[h][6], r[h][7]), e = e + u.getTotalLength(), l = [r[h][6], r[h][7]], o.push(u)) : r[h][0] === "a" && (u = new $e(l[0], l[1], r[h][1], r[h][2], r[h][3], r[h][4], r[h][5], l[0] + r[h][6], l[1] + r[h][7]), e = e + u.getTotalLength(), l = [l[0] + r[h][6], l[1] + r[h][7]], o.push(u)), t.push(e);
|
|
3634
3682
|
return i;
|
|
3635
3683
|
}
|
|
3636
3684
|
i.getTotalLength = function() {
|
|
@@ -3653,28 +3701,28 @@ function X1(n) {
|
|
|
3653
3701
|
};
|
|
3654
3702
|
return i(n);
|
|
3655
3703
|
}
|
|
3656
|
-
function
|
|
3704
|
+
function zt(n, e) {
|
|
3657
3705
|
return Math.sqrt((n[0] - e[0]) * (n[0] - e[0]) + (n[1] - e[1]) * (n[1] - e[1]));
|
|
3658
3706
|
}
|
|
3659
|
-
function
|
|
3707
|
+
function m0(n, e, t) {
|
|
3660
3708
|
return [n[0] + (e[0] - n[0]) * t, n[1] + (e[1] - n[1]) * t];
|
|
3661
3709
|
}
|
|
3662
|
-
function
|
|
3663
|
-
return
|
|
3710
|
+
function ni(n, e) {
|
|
3711
|
+
return zt(n, e) < 1e-9;
|
|
3664
3712
|
}
|
|
3665
|
-
function
|
|
3666
|
-
let o = n.map((i, a) =>
|
|
3713
|
+
function ii(n, e, t) {
|
|
3714
|
+
let o = n.map((i, a) => ri(i, e[a]));
|
|
3667
3715
|
return function(i) {
|
|
3668
3716
|
let a = o.map((s) => s(i));
|
|
3669
|
-
return t ?
|
|
3717
|
+
return t ? ai(a) : a;
|
|
3670
3718
|
};
|
|
3671
3719
|
}
|
|
3672
|
-
function
|
|
3720
|
+
function ri(n, e) {
|
|
3673
3721
|
return function(t) {
|
|
3674
3722
|
return n.map((o, i) => o + t * (e[i] - o));
|
|
3675
3723
|
};
|
|
3676
3724
|
}
|
|
3677
|
-
function
|
|
3725
|
+
function Dt(n) {
|
|
3678
3726
|
return typeof n == "number" && isFinite(n);
|
|
3679
3727
|
}
|
|
3680
3728
|
const ae = `All shapes must be supplied as arrays of [x, y] points or an SVG path string (https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d).
|
|
@@ -3682,20 +3730,20 @@ Example valid ways of supplying a shape would be:
|
|
|
3682
3730
|
[[0, 0], [10, 0], [10, 10]]
|
|
3683
3731
|
"M0,0 L10,0 L10,10Z"
|
|
3684
3732
|
`;
|
|
3685
|
-
function
|
|
3686
|
-
return new
|
|
3733
|
+
function oi(n) {
|
|
3734
|
+
return new B1(n).abs();
|
|
3687
3735
|
}
|
|
3688
|
-
function
|
|
3736
|
+
function si(n) {
|
|
3689
3737
|
return n.toString().split("M").map((e, t) => (e = e.trim(), t && e ? "M" + e : e)).filter((e) => e);
|
|
3690
3738
|
}
|
|
3691
|
-
function
|
|
3739
|
+
function ai(n) {
|
|
3692
3740
|
return "M" + n.join("L") + "Z";
|
|
3693
3741
|
}
|
|
3694
|
-
function
|
|
3695
|
-
let t =
|
|
3696
|
-
return
|
|
3742
|
+
function li(n, e) {
|
|
3743
|
+
let t = oi(n);
|
|
3744
|
+
return hi(t) || ci(t, e);
|
|
3697
3745
|
}
|
|
3698
|
-
function
|
|
3746
|
+
function hi(n) {
|
|
3699
3747
|
let e = n.segments || [], t = [];
|
|
3700
3748
|
if (!e.length || e[0][0] !== "M")
|
|
3701
3749
|
return !1;
|
|
@@ -3714,11 +3762,11 @@ function ii(n) {
|
|
|
3714
3762
|
}
|
|
3715
3763
|
return t.length ? { ring: t } : !1;
|
|
3716
3764
|
}
|
|
3717
|
-
function
|
|
3718
|
-
let t =
|
|
3765
|
+
function ci(n, e) {
|
|
3766
|
+
let t = si(n)[0], o = [], i, a, s = 3;
|
|
3719
3767
|
if (!t)
|
|
3720
3768
|
throw new TypeError(ae);
|
|
3721
|
-
a =
|
|
3769
|
+
a = ui(t), i = a.getTotalLength(), e && Dt(e) && e > 0 && (s = Math.max(s, Math.ceil(i / e)));
|
|
3722
3770
|
for (let r = 0; r < s; r++) {
|
|
3723
3771
|
let l = a.getPointAtLength(i * r / s);
|
|
3724
3772
|
o.push([l.x, l.y]);
|
|
@@ -3728,99 +3776,99 @@ function ri(n, e) {
|
|
|
3728
3776
|
skipBisect: !0
|
|
3729
3777
|
};
|
|
3730
3778
|
}
|
|
3731
|
-
function
|
|
3779
|
+
function ui(n) {
|
|
3732
3780
|
if (typeof window < "u" && window && window.document)
|
|
3733
3781
|
try {
|
|
3734
3782
|
let e = window.document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
3735
3783
|
return e.setAttributeNS(null, "d", n), e;
|
|
3736
3784
|
} catch {
|
|
3737
3785
|
}
|
|
3738
|
-
return
|
|
3786
|
+
return ei(n);
|
|
3739
3787
|
}
|
|
3740
3788
|
function We(n, e) {
|
|
3741
|
-
const t = n.length + e, o =
|
|
3789
|
+
const t = n.length + e, o = P1(n) / e;
|
|
3742
3790
|
let i = 0, a = 0, s = o / 2;
|
|
3743
3791
|
for (; n.length < t; ) {
|
|
3744
|
-
let r = n[i], l = n[(i + 1) % n.length], c =
|
|
3792
|
+
let r = n[i], l = n[(i + 1) % n.length], c = zt(r, l);
|
|
3745
3793
|
if (s <= a + c) {
|
|
3746
|
-
n.splice(i + 1, 0, c ?
|
|
3794
|
+
n.splice(i + 1, 0, c ? m0(r, l, (s - a) / c) : r.slice(0)), s += o;
|
|
3747
3795
|
continue;
|
|
3748
3796
|
}
|
|
3749
3797
|
a += c, i++;
|
|
3750
3798
|
}
|
|
3751
3799
|
}
|
|
3752
|
-
function
|
|
3800
|
+
function fi(n, e = 1 / 0) {
|
|
3753
3801
|
for (let t = 0; t < n.length; t++) {
|
|
3754
3802
|
let o = n[t], i = t === n.length - 1 ? n[0] : n[t + 1];
|
|
3755
|
-
for (;
|
|
3756
|
-
i =
|
|
3803
|
+
for (; zt(o, i) > e; )
|
|
3804
|
+
i = m0(o, i, 0.5), n.splice(t + 1, 0, i);
|
|
3757
3805
|
}
|
|
3758
3806
|
}
|
|
3759
3807
|
function Ge(n, e) {
|
|
3760
3808
|
let t, o, i;
|
|
3761
3809
|
if (typeof n == "string") {
|
|
3762
|
-
let a =
|
|
3810
|
+
let a = li(n, e);
|
|
3763
3811
|
n = a.ring, i = a.skipBisect;
|
|
3764
3812
|
} else if (!Array.isArray(n))
|
|
3765
3813
|
throw new TypeError(ae);
|
|
3766
|
-
if (t = n.slice(0), !
|
|
3814
|
+
if (t = n.slice(0), !di(t))
|
|
3767
3815
|
throw new TypeError(ae);
|
|
3768
|
-
return t.length > 1 &&
|
|
3816
|
+
return t.length > 1 && ni(t[0], t[t.length - 1]) && t.pop(), o = S1(t), o > 0 && t.reverse(), !i && e && Dt(e) && e > 0 && fi(t, e), t;
|
|
3769
3817
|
}
|
|
3770
|
-
function
|
|
3818
|
+
function di(n) {
|
|
3771
3819
|
return n.every(function(e) {
|
|
3772
|
-
return Array.isArray(e) && e.length >= 2 &&
|
|
3820
|
+
return Array.isArray(e) && e.length >= 2 && Dt(e[0]) && Dt(e[1]);
|
|
3773
3821
|
});
|
|
3774
3822
|
}
|
|
3775
|
-
function
|
|
3823
|
+
function gi(n, e) {
|
|
3776
3824
|
let t = n.length, o = 1 / 0, i, a, s;
|
|
3777
3825
|
for (let r = 0; r < t; r++)
|
|
3778
3826
|
a = 0, e.forEach(function(l, c) {
|
|
3779
|
-
let u =
|
|
3827
|
+
let u = zt(n[(r + c) % t], l);
|
|
3780
3828
|
a += u * u;
|
|
3781
3829
|
}), a < o && (o = a, i = r);
|
|
3782
3830
|
i && (s = n.splice(0, i), n.splice(n.length, 0, ...s));
|
|
3783
3831
|
}
|
|
3784
|
-
function
|
|
3785
|
-
let i = Ge(n, t), a = Ge(e, t), s =
|
|
3832
|
+
function pi(n, e, { maxSegmentLength: t = 10, string: o = !0 } = {}) {
|
|
3833
|
+
let i = Ge(n, t), a = Ge(e, t), s = xi(i, a, o);
|
|
3786
3834
|
return !o || typeof n != "string" && typeof e != "string" ? s : (r) => r < 1e-4 && typeof n == "string" ? n : 1 - r < 1e-4 && typeof e == "string" ? e : s(r);
|
|
3787
3835
|
}
|
|
3788
|
-
function
|
|
3836
|
+
function xi(n, e, t) {
|
|
3789
3837
|
let o;
|
|
3790
|
-
return o = n.length - e.length, We(n, o < 0 ? o * -1 : 0), We(e, o > 0 ? o : 0),
|
|
3838
|
+
return o = n.length - e.length, We(n, o < 0 ? o * -1 : 0), We(e, o > 0 ? o : 0), gi(n, e), ii(n, e, t);
|
|
3791
3839
|
}
|
|
3792
|
-
var
|
|
3793
|
-
function
|
|
3794
|
-
if (Xe) return
|
|
3795
|
-
Xe = 1,
|
|
3840
|
+
var Rt = { exports: {} }, Xe;
|
|
3841
|
+
function yi() {
|
|
3842
|
+
if (Xe) return Rt.exports;
|
|
3843
|
+
Xe = 1, Rt.exports = n, Rt.exports.default = n;
|
|
3796
3844
|
function n(d, x, p) {
|
|
3797
3845
|
p = p || 2;
|
|
3798
3846
|
var w = x && x.length, m = w ? x[0] * p : d.length, b = e(d, 0, m, p, !0), A = [];
|
|
3799
3847
|
if (!b || b.next === b.prev) return A;
|
|
3800
|
-
var P,
|
|
3848
|
+
var P, R, O, W, j, D, X;
|
|
3801
3849
|
if (w && (b = l(d, x, b, p)), d.length > 80 * p) {
|
|
3802
|
-
P =
|
|
3803
|
-
for (var
|
|
3804
|
-
|
|
3805
|
-
X = Math.max(
|
|
3850
|
+
P = O = d[0], R = W = d[1];
|
|
3851
|
+
for (var H = p; H < m; H += p)
|
|
3852
|
+
j = d[H], D = d[H + 1], j < P && (P = j), D < R && (R = D), j > O && (O = j), D > W && (W = D);
|
|
3853
|
+
X = Math.max(O - P, W - R), X = X !== 0 ? 32767 / X : 0;
|
|
3806
3854
|
}
|
|
3807
|
-
return o(b, A, p, P,
|
|
3855
|
+
return o(b, A, p, P, R, X, 0), A;
|
|
3808
3856
|
}
|
|
3809
3857
|
function e(d, x, p, w, m) {
|
|
3810
3858
|
var b, A;
|
|
3811
|
-
if (m ===
|
|
3812
|
-
for (b = x; b < p; b += w) A =
|
|
3859
|
+
if (m === Vt(d, x, p, w) > 0)
|
|
3860
|
+
for (b = x; b < p; b += w) A = Q(b, d[b], d[b + 1], A);
|
|
3813
3861
|
else
|
|
3814
|
-
for (b = p - w; b >= x; b -= w) A =
|
|
3815
|
-
return A && E(A, A.next) && (
|
|
3862
|
+
for (b = p - w; b >= x; b -= w) A = Q(b, d[b], d[b + 1], A);
|
|
3863
|
+
return A && E(A, A.next) && (ft(A), A = A.next), A;
|
|
3816
3864
|
}
|
|
3817
3865
|
function t(d, x) {
|
|
3818
3866
|
if (!d) return d;
|
|
3819
3867
|
x || (x = d);
|
|
3820
3868
|
var p = d, w;
|
|
3821
3869
|
do
|
|
3822
|
-
if (w = !1, !p.steiner && (E(p, p.next) ||
|
|
3823
|
-
if (
|
|
3870
|
+
if (w = !1, !p.steiner && (E(p, p.next) || L(p.prev, p, p.next) === 0)) {
|
|
3871
|
+
if (ft(p), p = x = p.prev, p === p.next) break;
|
|
3824
3872
|
w = !0;
|
|
3825
3873
|
} else
|
|
3826
3874
|
p = p.next;
|
|
@@ -3830,12 +3878,12 @@ function ui() {
|
|
|
3830
3878
|
function o(d, x, p, w, m, b, A) {
|
|
3831
3879
|
if (d) {
|
|
3832
3880
|
!A && b && f(d, w, m, b);
|
|
3833
|
-
for (var P = d,
|
|
3834
|
-
if (
|
|
3835
|
-
x.push(
|
|
3881
|
+
for (var P = d, R, O; d.prev !== d.next; ) {
|
|
3882
|
+
if (R = d.prev, O = d.next, b ? a(d, w, m, b) : i(d)) {
|
|
3883
|
+
x.push(R.i / p | 0), x.push(d.i / p | 0), x.push(O.i / p | 0), ft(d), d = O.next, P = O.next;
|
|
3836
3884
|
continue;
|
|
3837
3885
|
}
|
|
3838
|
-
if (d =
|
|
3886
|
+
if (d = O, d === P) {
|
|
3839
3887
|
A ? A === 1 ? (d = s(t(d), x, p), o(d, x, p, w, m, b, 2)) : A === 2 && r(d, x, p, w, m, b) : o(t(d), x, p, w, m, b, 1);
|
|
3840
3888
|
break;
|
|
3841
3889
|
}
|
|
@@ -3844,27 +3892,27 @@ function ui() {
|
|
|
3844
3892
|
}
|
|
3845
3893
|
function i(d) {
|
|
3846
3894
|
var x = d.prev, p = d, w = d.next;
|
|
3847
|
-
if (
|
|
3848
|
-
for (var m = x.x, b = p.x, A = w.x, P = x.y,
|
|
3849
|
-
if (
|
|
3850
|
-
|
|
3895
|
+
if (L(x, p, w) >= 0) return !1;
|
|
3896
|
+
for (var m = x.x, b = p.x, A = w.x, P = x.y, R = p.y, O = w.y, W = m < b ? m < A ? m : A : b < A ? b : A, j = P < R ? P < O ? P : O : R < O ? R : O, D = m > b ? m > A ? m : A : b > A ? b : A, X = P > R ? P > O ? P : O : R > O ? R : O, H = w.next; H !== x; ) {
|
|
3897
|
+
if (H.x >= W && H.x <= D && H.y >= j && H.y <= X && C(m, P, b, R, A, O, H.x, H.y) && L(H.prev, H, H.next) >= 0) return !1;
|
|
3898
|
+
H = H.next;
|
|
3851
3899
|
}
|
|
3852
3900
|
return !0;
|
|
3853
3901
|
}
|
|
3854
3902
|
function a(d, x, p, w) {
|
|
3855
3903
|
var m = d.prev, b = d, A = d.next;
|
|
3856
|
-
if (
|
|
3857
|
-
for (var P = m.x,
|
|
3858
|
-
if (
|
|
3859
|
-
|
|
3904
|
+
if (L(m, b, A) >= 0) return !1;
|
|
3905
|
+
for (var P = m.x, R = b.x, O = A.x, W = m.y, j = b.y, D = A.y, X = P < R ? P < O ? P : O : R < O ? R : O, H = W < j ? W < D ? W : D : j < D ? j : D, Ct = P > R ? P > O ? P : O : R > O ? R : O, St = W > j ? W > D ? W : D : j > D ? j : D, ye = y(X, H, x, p, w), ve = y(Ct, St, x, p, w), q = d.prevZ, z = d.nextZ; q && q.z >= ye && z && z.z <= ve; ) {
|
|
3906
|
+
if (q.x >= X && q.x <= Ct && q.y >= H && q.y <= St && q !== m && q !== A && C(P, W, R, j, O, D, q.x, q.y) && L(q.prev, q, q.next) >= 0 || (q = q.prevZ, z.x >= X && z.x <= Ct && z.y >= H && z.y <= St && z !== m && z !== A && C(P, W, R, j, O, D, z.x, z.y) && L(z.prev, z, z.next) >= 0)) return !1;
|
|
3907
|
+
z = z.nextZ;
|
|
3860
3908
|
}
|
|
3861
|
-
for (;
|
|
3862
|
-
if (
|
|
3863
|
-
|
|
3909
|
+
for (; q && q.z >= ye; ) {
|
|
3910
|
+
if (q.x >= X && q.x <= Ct && q.y >= H && q.y <= St && q !== m && q !== A && C(P, W, R, j, O, D, q.x, q.y) && L(q.prev, q, q.next) >= 0) return !1;
|
|
3911
|
+
q = q.prevZ;
|
|
3864
3912
|
}
|
|
3865
|
-
for (;
|
|
3866
|
-
if (
|
|
3867
|
-
|
|
3913
|
+
for (; z && z.z <= ve; ) {
|
|
3914
|
+
if (z.x >= X && z.x <= Ct && z.y >= H && z.y <= St && z !== m && z !== A && C(P, W, R, j, O, D, z.x, z.y) && L(z.prev, z, z.next) >= 0) return !1;
|
|
3915
|
+
z = z.nextZ;
|
|
3868
3916
|
}
|
|
3869
3917
|
return !0;
|
|
3870
3918
|
}
|
|
@@ -3872,7 +3920,7 @@ function ui() {
|
|
|
3872
3920
|
var w = d;
|
|
3873
3921
|
do {
|
|
3874
3922
|
var m = w.prev, b = w.next.next;
|
|
3875
|
-
!E(m, b) &&
|
|
3923
|
+
!E(m, b) && S(m, w, w.next, b) && B(m, b) && B(b, m) && (x.push(m.i / p | 0), x.push(w.i / p | 0), x.push(b.i / p | 0), ft(w), ft(w.next), w = d = b), w = w.next;
|
|
3876
3924
|
} while (w !== d);
|
|
3877
3925
|
return t(w);
|
|
3878
3926
|
}
|
|
@@ -3880,9 +3928,9 @@ function ui() {
|
|
|
3880
3928
|
var A = d;
|
|
3881
3929
|
do {
|
|
3882
3930
|
for (var P = A.next.next; P !== A.prev; ) {
|
|
3883
|
-
if (A.i !== P.i &&
|
|
3884
|
-
var
|
|
3885
|
-
A = t(A, A.next),
|
|
3931
|
+
if (A.i !== P.i && M(A, P)) {
|
|
3932
|
+
var R = lt(A, P);
|
|
3933
|
+
A = t(A, A.next), R = t(R, R.next), o(A, x, p, w, m, b, 0), o(R, x, p, w, m, b, 0);
|
|
3886
3934
|
return;
|
|
3887
3935
|
}
|
|
3888
3936
|
P = P.next;
|
|
@@ -3891,9 +3939,9 @@ function ui() {
|
|
|
3891
3939
|
} while (A !== d);
|
|
3892
3940
|
}
|
|
3893
3941
|
function l(d, x, p, w) {
|
|
3894
|
-
var m = [], b, A, P,
|
|
3942
|
+
var m = [], b, A, P, R, O;
|
|
3895
3943
|
for (b = 0, A = x.length; b < A; b++)
|
|
3896
|
-
P = x[b] * w,
|
|
3944
|
+
P = x[b] * w, R = b < A - 1 ? x[b + 1] * w : d.length, O = e(d, P, R, w, !1), O === O.next && (O.steiner = !0), m.push(T(O));
|
|
3897
3945
|
for (m.sort(c), b = 0; b < m.length; b++)
|
|
3898
3946
|
p = u(m[b], p);
|
|
3899
3947
|
return p;
|
|
@@ -3905,7 +3953,7 @@ function ui() {
|
|
|
3905
3953
|
var p = g(d, x);
|
|
3906
3954
|
if (!p)
|
|
3907
3955
|
return x;
|
|
3908
|
-
var w =
|
|
3956
|
+
var w = lt(p, d);
|
|
3909
3957
|
return t(w, w.next), t(p, p.next);
|
|
3910
3958
|
}
|
|
3911
3959
|
function g(d, x) {
|
|
@@ -3919,15 +3967,15 @@ function ui() {
|
|
|
3919
3967
|
p = p.next;
|
|
3920
3968
|
} while (p !== x);
|
|
3921
3969
|
if (!A) return null;
|
|
3922
|
-
var
|
|
3970
|
+
var R = A, O = A.x, W = A.y, j = 1 / 0, D;
|
|
3923
3971
|
p = A;
|
|
3924
3972
|
do
|
|
3925
|
-
w >= p.x && p.x >=
|
|
3926
|
-
while (p !==
|
|
3973
|
+
w >= p.x && p.x >= O && w !== p.x && C(m < W ? w : b, m, O, W, m < W ? b : w, m, p.x, p.y) && (D = Math.abs(m - p.y) / (w - p.x), B(p, d) && (D < j || D === j && (p.x > A.x || p.x === A.x && h(A, p))) && (A = p, j = D)), p = p.next;
|
|
3974
|
+
while (p !== R);
|
|
3927
3975
|
return A;
|
|
3928
3976
|
}
|
|
3929
3977
|
function h(d, x) {
|
|
3930
|
-
return
|
|
3978
|
+
return L(d.prev, d, x.prev) < 0 && L(x.next, d, d.next) < 0;
|
|
3931
3979
|
}
|
|
3932
3980
|
function f(d, x, p, w) {
|
|
3933
3981
|
var m = d;
|
|
@@ -3937,16 +3985,16 @@ function ui() {
|
|
|
3937
3985
|
m.prevZ.nextZ = null, m.prevZ = null, v(m);
|
|
3938
3986
|
}
|
|
3939
3987
|
function v(d) {
|
|
3940
|
-
var x, p, w, m, b, A, P,
|
|
3988
|
+
var x, p, w, m, b, A, P, R, O = 1;
|
|
3941
3989
|
do {
|
|
3942
3990
|
for (p = d, d = null, b = null, A = 0; p; ) {
|
|
3943
|
-
for (A++, w = p, P = 0, x = 0; x <
|
|
3991
|
+
for (A++, w = p, P = 0, x = 0; x < O && (P++, w = w.nextZ, !!w); x++)
|
|
3944
3992
|
;
|
|
3945
|
-
for (
|
|
3946
|
-
P !== 0 && (
|
|
3993
|
+
for (R = O; P > 0 || R > 0 && w; )
|
|
3994
|
+
P !== 0 && (R === 0 || !w || p.z <= w.z) ? (m = p, p = p.nextZ, P--) : (m = w, w = w.nextZ, R--), b ? b.nextZ = m : d = m, m.prevZ = b, b = m;
|
|
3947
3995
|
p = w;
|
|
3948
3996
|
}
|
|
3949
|
-
b.nextZ = null,
|
|
3997
|
+
b.nextZ = null, O *= 2;
|
|
3950
3998
|
} while (A > 1);
|
|
3951
3999
|
return d;
|
|
3952
4000
|
}
|
|
@@ -3960,80 +4008,80 @@ function ui() {
|
|
|
3960
4008
|
while (x !== d);
|
|
3961
4009
|
return p;
|
|
3962
4010
|
}
|
|
3963
|
-
function
|
|
4011
|
+
function C(d, x, p, w, m, b, A, P) {
|
|
3964
4012
|
return (m - A) * (x - P) >= (d - A) * (b - P) && (d - A) * (w - P) >= (p - A) * (x - P) && (p - A) * (b - P) >= (m - A) * (w - P);
|
|
3965
4013
|
}
|
|
3966
|
-
function
|
|
3967
|
-
return d.next.i !== x.i && d.prev.i !== x.i && !
|
|
3968
|
-
(
|
|
3969
|
-
(
|
|
3970
|
-
E(d, x) &&
|
|
4014
|
+
function M(d, x) {
|
|
4015
|
+
return d.next.i !== x.i && d.prev.i !== x.i && !U(d, x) && // dones't intersect other edges
|
|
4016
|
+
(B(d, x) && B(x, d) && Y(d, x) && // locally visible
|
|
4017
|
+
(L(d.prev, d, x.prev) || L(d, x.prev, x)) || // does not create opposite-facing sectors
|
|
4018
|
+
E(d, x) && L(d.prev, d, d.next) > 0 && L(x.prev, x, x.next) > 0);
|
|
3971
4019
|
}
|
|
3972
|
-
function
|
|
4020
|
+
function L(d, x, p) {
|
|
3973
4021
|
return (x.y - d.y) * (p.x - x.x) - (x.x - d.x) * (p.y - x.y);
|
|
3974
4022
|
}
|
|
3975
4023
|
function E(d, x) {
|
|
3976
4024
|
return d.x === x.x && d.y === x.y;
|
|
3977
4025
|
}
|
|
3978
|
-
function
|
|
3979
|
-
var m = F(
|
|
3980
|
-
return !!(m !== b && A !== P || m === 0 &&
|
|
4026
|
+
function S(d, x, p, w) {
|
|
4027
|
+
var m = F(L(d, x, p)), b = F(L(d, x, w)), A = F(L(p, w, d)), P = F(L(p, w, x));
|
|
4028
|
+
return !!(m !== b && A !== P || m === 0 && k(d, p, x) || b === 0 && k(d, w, x) || A === 0 && k(p, d, w) || P === 0 && k(p, x, w));
|
|
3981
4029
|
}
|
|
3982
|
-
function
|
|
4030
|
+
function k(d, x, p) {
|
|
3983
4031
|
return x.x <= Math.max(d.x, p.x) && x.x >= Math.min(d.x, p.x) && x.y <= Math.max(d.y, p.y) && x.y >= Math.min(d.y, p.y);
|
|
3984
4032
|
}
|
|
3985
4033
|
function F(d) {
|
|
3986
4034
|
return d > 0 ? 1 : d < 0 ? -1 : 0;
|
|
3987
4035
|
}
|
|
3988
|
-
function
|
|
4036
|
+
function U(d, x) {
|
|
3989
4037
|
var p = d;
|
|
3990
4038
|
do {
|
|
3991
|
-
if (p.i !== d.i && p.next.i !== d.i && p.i !== x.i && p.next.i !== x.i &&
|
|
4039
|
+
if (p.i !== d.i && p.next.i !== d.i && p.i !== x.i && p.next.i !== x.i && S(p, p.next, d, x)) return !0;
|
|
3992
4040
|
p = p.next;
|
|
3993
4041
|
} while (p !== d);
|
|
3994
4042
|
return !1;
|
|
3995
4043
|
}
|
|
3996
|
-
function
|
|
3997
|
-
return
|
|
4044
|
+
function B(d, x) {
|
|
4045
|
+
return L(d.prev, d, d.next) < 0 ? L(d, x, d.next) >= 0 && L(d, d.prev, x) >= 0 : L(d, x, d.prev) < 0 || L(d, d.next, x) < 0;
|
|
3998
4046
|
}
|
|
3999
|
-
function
|
|
4047
|
+
function Y(d, x) {
|
|
4000
4048
|
var p = d, w = !1, m = (d.x + x.x) / 2, b = (d.y + x.y) / 2;
|
|
4001
4049
|
do
|
|
4002
4050
|
p.y > b != p.next.y > b && p.next.y !== p.y && m < (p.next.x - p.x) * (b - p.y) / (p.next.y - p.y) + p.x && (w = !w), p = p.next;
|
|
4003
4051
|
while (p !== d);
|
|
4004
4052
|
return w;
|
|
4005
4053
|
}
|
|
4006
|
-
function
|
|
4007
|
-
var p = new
|
|
4054
|
+
function lt(d, x) {
|
|
4055
|
+
var p = new it(d.i, d.x, d.y), w = new it(x.i, x.x, x.y), m = d.next, b = x.prev;
|
|
4008
4056
|
return d.next = x, x.prev = d, p.next = m, m.prev = p, w.next = p, p.prev = w, b.next = w, w.prev = b, w;
|
|
4009
4057
|
}
|
|
4010
|
-
function
|
|
4011
|
-
var m = new
|
|
4058
|
+
function Q(d, x, p, w) {
|
|
4059
|
+
var m = new it(d, x, p);
|
|
4012
4060
|
return w ? (m.next = w.next, m.prev = w, w.next.prev = m, w.next = m) : (m.prev = m, m.next = m), m;
|
|
4013
4061
|
}
|
|
4014
|
-
function
|
|
4062
|
+
function ft(d) {
|
|
4015
4063
|
d.next.prev = d.prev, d.prev.next = d.next, d.prevZ && (d.prevZ.nextZ = d.nextZ), d.nextZ && (d.nextZ.prevZ = d.prevZ);
|
|
4016
4064
|
}
|
|
4017
|
-
function
|
|
4065
|
+
function it(d, x, p) {
|
|
4018
4066
|
this.i = d, this.x = x, this.y = p, this.prev = null, this.next = null, this.z = 0, this.prevZ = null, this.nextZ = null, this.steiner = !1;
|
|
4019
4067
|
}
|
|
4020
4068
|
n.deviation = function(d, x, p, w) {
|
|
4021
|
-
var m = x && x.length, b = m ? x[0] * p : d.length, A = Math.abs(
|
|
4069
|
+
var m = x && x.length, b = m ? x[0] * p : d.length, A = Math.abs(Vt(d, 0, b, p));
|
|
4022
4070
|
if (m)
|
|
4023
|
-
for (var P = 0,
|
|
4024
|
-
var
|
|
4025
|
-
A -= Math.abs(
|
|
4071
|
+
for (var P = 0, R = x.length; P < R; P++) {
|
|
4072
|
+
var O = x[P] * p, W = P < R - 1 ? x[P + 1] * p : d.length;
|
|
4073
|
+
A -= Math.abs(Vt(d, O, W, p));
|
|
4026
4074
|
}
|
|
4027
|
-
var
|
|
4075
|
+
var j = 0;
|
|
4028
4076
|
for (P = 0; P < w.length; P += 3) {
|
|
4029
|
-
var
|
|
4030
|
-
|
|
4031
|
-
(d[
|
|
4077
|
+
var D = w[P] * p, X = w[P + 1] * p, H = w[P + 2] * p;
|
|
4078
|
+
j += Math.abs(
|
|
4079
|
+
(d[D] - d[H]) * (d[X + 1] - d[D + 1]) - (d[D] - d[X]) * (d[H + 1] - d[D + 1])
|
|
4032
4080
|
);
|
|
4033
4081
|
}
|
|
4034
|
-
return A === 0 &&
|
|
4082
|
+
return A === 0 && j === 0 ? 0 : Math.abs((j - A) / A);
|
|
4035
4083
|
};
|
|
4036
|
-
function
|
|
4084
|
+
function Vt(d, x, p, w) {
|
|
4037
4085
|
for (var m = 0, b = x, A = p - w; b < p; b += w)
|
|
4038
4086
|
m += (d[A] - d[b]) * (d[b + 1] + d[A + 1]), A = b;
|
|
4039
4087
|
return m;
|
|
@@ -4045,14 +4093,14 @@ function ui() {
|
|
|
4045
4093
|
m > 0 && (w += d[m - 1].length, p.holes.push(w));
|
|
4046
4094
|
}
|
|
4047
4095
|
return p;
|
|
4048
|
-
},
|
|
4096
|
+
}, Rt.exports;
|
|
4049
4097
|
}
|
|
4050
|
-
|
|
4051
|
-
function
|
|
4098
|
+
yi();
|
|
4099
|
+
function b0(n, e) {
|
|
4052
4100
|
return n < e ? -1 : n > e ? 1 : n >= e ? 0 : NaN;
|
|
4053
4101
|
}
|
|
4054
|
-
function
|
|
4055
|
-
return n.length === 1 && (n =
|
|
4102
|
+
function vi(n) {
|
|
4103
|
+
return n.length === 1 && (n = wi(n)), {
|
|
4056
4104
|
left: function(e, t, o, i) {
|
|
4057
4105
|
for (o == null && (o = 0), i == null && (i = e.length); o < i; ) {
|
|
4058
4106
|
var a = o + i >>> 1;
|
|
@@ -4069,31 +4117,31 @@ function fi(n) {
|
|
|
4069
4117
|
}
|
|
4070
4118
|
};
|
|
4071
4119
|
}
|
|
4072
|
-
function
|
|
4120
|
+
function wi(n) {
|
|
4073
4121
|
return function(e, t) {
|
|
4074
|
-
return
|
|
4122
|
+
return b0(n(e), t);
|
|
4075
4123
|
};
|
|
4076
4124
|
}
|
|
4077
|
-
|
|
4078
|
-
function
|
|
4079
|
-
const o =
|
|
4125
|
+
vi(b0);
|
|
4126
|
+
function Hi(n, e, t = 3) {
|
|
4127
|
+
const o = pi(n, e, { maxSegmentLength: t });
|
|
4080
4128
|
return {
|
|
4081
4129
|
check: (i) => typeof i == "string",
|
|
4082
4130
|
interpolate: (i, a, s) => o(s)
|
|
4083
4131
|
};
|
|
4084
4132
|
}
|
|
4085
|
-
function
|
|
4133
|
+
function Ui(n) {
|
|
4086
4134
|
const e = (o) => n.width * o, t = (o) => n.height * o;
|
|
4087
4135
|
return {
|
|
4088
4136
|
scaleX: e,
|
|
4089
4137
|
scaleY: t,
|
|
4090
|
-
position: (o, i) =>
|
|
4138
|
+
position: (o, i) => $({
|
|
4091
4139
|
x: e(o),
|
|
4092
4140
|
y: t(i)
|
|
4093
4141
|
})
|
|
4094
4142
|
};
|
|
4095
4143
|
}
|
|
4096
|
-
function
|
|
4144
|
+
function Yi(n) {
|
|
4097
4145
|
const e = [];
|
|
4098
4146
|
if (n.isAllKey) {
|
|
4099
4147
|
for (let t = 0; t <= n.animations.length; t++)
|
|
@@ -4105,51 +4153,51 @@ function zi(n) {
|
|
|
4105
4153
|
}), n.isEndKey && e[e.length - 1] !== n.animations.length && e.push(n.animations.length), e;
|
|
4106
4154
|
}
|
|
4107
4155
|
export {
|
|
4108
|
-
|
|
4109
|
-
|
|
4156
|
+
vt as Alignment,
|
|
4157
|
+
st as Anchor,
|
|
4110
4158
|
ce as Animate,
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4159
|
+
Si as Arrow,
|
|
4160
|
+
qi as BrowserCanvasRenderer,
|
|
4161
|
+
Pi as Circle,
|
|
4114
4162
|
G as Color,
|
|
4115
4163
|
he as Easing,
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4164
|
+
bi as FadeIn,
|
|
4165
|
+
Ai as FadeOut,
|
|
4166
|
+
K0 as FontStyle,
|
|
4167
|
+
J0 as FontWeight,
|
|
4168
|
+
Ei as Grid,
|
|
4121
4169
|
we as Group,
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4170
|
+
Ti as Hide,
|
|
4171
|
+
Mi as IFrame,
|
|
4172
|
+
Ii as Image,
|
|
4173
|
+
ki as Line,
|
|
4174
|
+
Oi as Mask,
|
|
4175
|
+
V as ObjectType,
|
|
4176
|
+
ji as Opaque,
|
|
4177
|
+
_i as Path,
|
|
4178
|
+
zi as Pause,
|
|
4179
|
+
Ni as Polygon,
|
|
4180
|
+
$ as Position,
|
|
4181
|
+
mn as Presentation,
|
|
4182
|
+
Ri as Rectangle,
|
|
4183
|
+
Bi as SVG,
|
|
4184
|
+
Ci as ScreenCapture,
|
|
4185
|
+
Li as Show,
|
|
4138
4186
|
K as Size,
|
|
4139
|
-
|
|
4140
|
-
|
|
4187
|
+
sn as Slide,
|
|
4188
|
+
nt as SlideObject,
|
|
4141
4189
|
Ze as SlideWebExtra,
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4190
|
+
Fi as Spotlight,
|
|
4191
|
+
nn as Text,
|
|
4192
|
+
Vi as TextUnit,
|
|
4193
|
+
X0 as Transparent,
|
|
4146
4194
|
Ke as Update,
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4195
|
+
Di as Variable,
|
|
4196
|
+
Yi as getKeySlideBuildIndices,
|
|
4197
|
+
Ui as getSizingFunctions,
|
|
4198
|
+
Hi as getSmoothPathInterpolator,
|
|
4199
|
+
en as getTextContentLength,
|
|
4200
|
+
Tn as interpolateColor,
|
|
4201
|
+
Mn as interpolateNumber
|
|
4154
4202
|
};
|
|
4155
4203
|
//# sourceMappingURL=presenter.mjs.map
|