presenter 0.7.2 → 0.7.4

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.
@@ -12,10 +12,10 @@ const u0 = {
12
12
  function Ut(n) {
13
13
  return n * n * n;
14
14
  }
15
- function Ht(n) {
15
+ function Yt(n) {
16
16
  return --n * n * n + 1;
17
17
  }
18
- function Gt(n) {
18
+ function Xt(n) {
19
19
  return ((n *= 2) <= 1 ? n * n * n : (n -= 2) * n * n + 2) / 2;
20
20
  }
21
21
  var J0 = 1.70158;
@@ -33,7 +33,7 @@ var J0 = 1.70158;
33
33
  }
34
34
  return t.overshoot = n, t;
35
35
  })(J0);
36
- var $t = (function n(e) {
36
+ var Ht = (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,11 +42,11 @@ var $t = (function n(e) {
42
42
  })(J0);
43
43
  const tt = {
44
44
  LINEAR: (n) => n,
45
- CUBIC: Gt,
45
+ CUBIC: Xt,
46
46
  CUBIC_IN: Ut,
47
- CUBIC_OUT: Ht,
48
- BACK_IN_OUT: $t.overshoot(0.8)
49
- }, Wt = tt.LINEAR;
47
+ CUBIC_OUT: Yt,
48
+ BACK_IN_OUT: Ht.overshoot(0.8)
49
+ }, Gt = tt.LINEAR;
50
50
  function et(n, e, t = {}) {
51
51
  return {
52
52
  type: u0.ANIMATE,
@@ -54,7 +54,7 @@ function et(n, e, t = {}) {
54
54
  props: e,
55
55
  delay: 0,
56
56
  duration: 1e3,
57
- easing: Wt,
57
+ easing: Gt,
58
58
  block: !1,
59
59
  interpolators: null,
60
60
  isKey: !1,
@@ -102,7 +102,7 @@ const n0 = {
102
102
  BOTTOM: "Bottom",
103
103
  BOTTOM_RIGHT: "BottomRight"
104
104
  }, o0 = n0.TOP_LEFT;
105
- function W(n, e = 0, t = 0, o = 1) {
105
+ function G(n, e = 0, t = 0, o = 1) {
106
106
  if (typeof n == "string") {
107
107
  const i = n.replace("#", ""), a = parseInt(i, 16);
108
108
  return isNaN(a) ? (console.warn("Invalid hex color format:", n), K) : i.length === 6 ? {
@@ -131,12 +131,12 @@ function W(n, e = 0, t = 0, o = 1) {
131
131
  ...n
132
132
  };
133
133
  }
134
- W.BLACK = W(0, 0, 0);
135
- W.BLUE = W(0, 0, 255);
136
- W.GREEN = W(0, 255, 0);
137
- W.RED = W(255, 0, 0);
138
- W.TRANSPARENT = W(0, 0, 0, 0);
139
- W.WHITE = W(255, 255, 255);
134
+ G.BLACK = G(0, 0, 0);
135
+ G.BLUE = G(0, 0, 255);
136
+ G.GREEN = G(0, 255, 0);
137
+ G.RED = G(255, 0, 0);
138
+ G.TRANSPARENT = G(0, 0, 0, 0);
139
+ G.WHITE = G(255, 255, 255);
140
140
  const K = { red: 0, green: 0, blue: 0, alpha: 1 };
141
141
  function Et(n = null) {
142
142
  return {
@@ -160,7 +160,7 @@ function E0(n, e = null) {
160
160
  function pn(n = null) {
161
161
  const {
162
162
  url: e = "https://wikipedia.org/",
163
- backgroundColor: t = W.TRANSPARENT,
163
+ backgroundColor: t = G.TRANSPARENT,
164
164
  borderColor: o = K,
165
165
  borderWidth: i = 0,
166
166
  pointerEvents: a = "auto",
@@ -186,7 +186,7 @@ const x0 = {
186
186
  LEFT: "left",
187
187
  CENTER: "center",
188
188
  RIGHT: "right"
189
- }, Yt = x0.LEFT;
189
+ }, $t = x0.LEFT;
190
190
  function r0(n, e) {
191
191
  throw new Error("Unexpected value: " + n);
192
192
  }
@@ -282,7 +282,7 @@ function xn(n = null) {
282
282
  ...o
283
283
  });
284
284
  }
285
- const Xt = 50;
285
+ const Wt = 50;
286
286
  function yn(n = null) {
287
287
  return s0({
288
288
  objectType: j.CIRCLE,
@@ -291,7 +291,7 @@ function yn(n = null) {
291
291
  borderWidth: 0,
292
292
  drawn: 1,
293
293
  fill: K,
294
- radius: Xt,
294
+ radius: Wt,
295
295
  x: 0,
296
296
  y: 0,
297
297
  ...n
@@ -308,7 +308,14 @@ function st(n, e = null) {
308
308
  rotateOriginX: 0,
309
309
  rotateOriginY: 0,
310
310
  rotation: 0,
311
+ skewOriginPreviewSize: 0,
312
+ skewOriginX: 0,
313
+ skewOriginY: 0,
314
+ skewX: 0,
315
+ skewY: 0,
311
316
  scale: 1,
317
+ scaleX: 1,
318
+ scaleY: 1,
312
319
  width: 0,
313
320
  x: 0,
314
321
  y: 0,
@@ -322,37 +329,39 @@ function vn(n) {
322
329
  rows: o = 1,
323
330
  gapX: i = 0,
324
331
  gapY: a = 0,
325
- width: s = 0,
326
- height: r = 0,
327
- x: h = 0,
328
- y: c = 0,
329
- objects: f = () => null
330
- } = n, x = [], l = [];
331
- let u = 0, m = 0;
332
- for (let M = 0; M < o; M++) {
333
- const C = [];
334
- u = 0;
335
- let E = 0;
336
- for (let L = 0; L < t; L++) {
337
- const S = f(M, L), P = typeof s == "function" ? s(M, L) : s, F = typeof r == "function" ? r(M, L) : r;
338
- C.push(S), S != null && l.push(
339
- st([S], {
340
- x: u,
341
- y: m
332
+ groupProps: s = {},
333
+ width: r = 0,
334
+ height: h = 0,
335
+ x: c = 0,
336
+ y: f = 0,
337
+ objects: x = () => null
338
+ } = n, l = [], u = [];
339
+ let m = 0, y = 0;
340
+ for (let C = 0; C < o; C++) {
341
+ const E = [];
342
+ m = 0;
343
+ let L = 0;
344
+ for (let S = 0; S < t; S++) {
345
+ const P = x(C, S), F = typeof r == "function" ? r(C, S) : r, z = typeof h == "function" ? h(C, S) : h;
346
+ E.push(P), P != null && u.push(
347
+ st([P], {
348
+ x: m,
349
+ y
342
350
  })
343
- ), u += P + i, E = Math.max(E, F);
351
+ ), m += F + i, L = Math.max(L, z);
344
352
  }
345
- x.push(C), m += E + a;
353
+ l.push(E), y += L + a;
346
354
  }
347
355
  return {
348
- grid: st(l, {
349
- x: h,
350
- y: c,
351
- height: m - a,
352
- width: u - i,
353
- anchor: e
356
+ grid: st(u, {
357
+ x: c,
358
+ y: f,
359
+ height: y - a,
360
+ width: m - i,
361
+ anchor: e,
362
+ ...s
354
363
  }),
355
- objects: x
364
+ objects: l
356
365
  };
357
366
  }
358
367
  function wn(n = null) {
@@ -384,7 +393,7 @@ function mn(n = null) {
384
393
  ...n
385
394
  });
386
395
  }
387
- function An(n, e = null) {
396
+ function bn(n, e = null) {
388
397
  return s0({
389
398
  objectType: j.MASK,
390
399
  anchor: o0,
@@ -397,7 +406,7 @@ function An(n, e = null) {
397
406
  ...e
398
407
  });
399
408
  }
400
- var Zt = Object.defineProperty, k = (n, e) => Zt(n, "name", { value: e, configurable: !0 }), P0 = { a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0 }, Vt = /([astvzqmhlc])([^astvzqmhlc]*)/gi, Kt = /-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi, Qt = k((n) => {
409
+ var Zt = Object.defineProperty, _ = (n, e) => Zt(n, "name", { value: e, configurable: !0 }), P0 = { a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0 }, Vt = /([astvzqmhlc])([^astvzqmhlc]*)/gi, Kt = /-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi, Qt = _((n) => {
401
410
  const e = (n && n.length > 0 ? n : "M0,0").match(Vt);
402
411
  if (!e) throw new Error(`No path elements found in string ${n}`);
403
412
  return e.reduce((t, o) => {
@@ -416,7 +425,7 @@ var Zt = Object.defineProperty, k = (n, e) => Zt(n, "name", { value: e, configur
416
425
  }
417
426
  return t;
418
427
  }, []);
419
- }, "default"), Jt = k((n) => {
428
+ }, "default"), Jt = _((n) => {
420
429
  const e = n.match(Kt);
421
430
  return e ? e.map(Number) : [];
422
431
  }, "parseValues"), w0, Q = (w0 = class {
@@ -425,24 +434,24 @@ var Zt = Object.defineProperty, k = (n, e) => Zt(n, "name", { value: e, configur
425
434
  I(this, "x1");
426
435
  I(this, "y0");
427
436
  I(this, "y1");
428
- I(this, "getTotalLength", k(() => Math.sqrt(Math.pow(this.x0 - this.x1, 2) + Math.pow(this.y0 - this.y1, 2)), "getTotalLength"));
429
- I(this, "getPointAtLength", k((e) => {
437
+ I(this, "getTotalLength", _(() => Math.sqrt(Math.pow(this.x0 - this.x1, 2) + Math.pow(this.y0 - this.y1, 2)), "getTotalLength"));
438
+ I(this, "getPointAtLength", _((e) => {
430
439
  let t = e / Math.sqrt(Math.pow(this.x0 - this.x1, 2) + Math.pow(this.y0 - this.y1, 2));
431
440
  t = Number.isNaN(t) ? 1 : t;
432
441
  const o = (this.x1 - this.x0) * t, i = (this.y1 - this.y0) * t;
433
442
  return { x: this.x0 + o, y: this.y0 + i };
434
443
  }, "getPointAtLength"));
435
- I(this, "getTangentAtLength", k((e) => {
444
+ I(this, "getTangentAtLength", _((e) => {
436
445
  const t = Math.sqrt((this.x1 - this.x0) * (this.x1 - this.x0) + (this.y1 - this.y0) * (this.y1 - this.y0));
437
446
  return { x: (this.x1 - this.x0) / t, y: (this.y1 - this.y0) / t };
438
447
  }, "getTangentAtLength"));
439
- I(this, "getPropertiesAtLength", k((e) => {
448
+ I(this, "getPropertiesAtLength", _((e) => {
440
449
  const t = this.getPointAtLength(e), o = this.getTangentAtLength(e);
441
450
  return { x: t.x, y: t.y, tangentX: o.x, tangentY: o.y };
442
451
  }, "getPropertiesAtLength"));
443
452
  this.x0 = e, this.x1 = t, this.y0 = o, this.y1 = i;
444
453
  }
445
- }, k(w0, "LinearPosition"), w0), m0, at = (m0 = class {
454
+ }, _(w0, "LinearPosition"), w0), m0, at = (m0 = class {
446
455
  constructor(e, t, o, i, a, s, r, h, c) {
447
456
  I(this, "x0");
448
457
  I(this, "y0");
@@ -454,13 +463,13 @@ var Zt = Object.defineProperty, k = (n, e) => Zt(n, "name", { value: e, configur
454
463
  I(this, "x1");
455
464
  I(this, "y1");
456
465
  I(this, "length");
457
- I(this, "getTotalLength", k(() => this.length, "getTotalLength"));
458
- I(this, "getPointAtLength", k((e) => {
466
+ I(this, "getTotalLength", _(() => this.length, "getTotalLength"));
467
+ I(this, "getPointAtLength", _((e) => {
459
468
  e < 0 ? e = 0 : e > this.length && (e = this.length);
460
469
  const t = ht({ 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);
461
470
  return { x: t.x, y: t.y };
462
471
  }, "getPointAtLength"));
463
- I(this, "getTangentAtLength", k((e) => {
472
+ I(this, "getTangentAtLength", _((e) => {
464
473
  e < 0 ? e = 0 : e > this.length && (e = this.length);
465
474
  const t = 0.05, o = this.getPointAtLength(e);
466
475
  let i;
@@ -468,7 +477,7 @@ var Zt = Object.defineProperty, k = (n, e) => Zt(n, "name", { value: e, configur
468
477
  const a = i.x - o.x, s = i.y - o.y, r = Math.sqrt(a * a + s * s);
469
478
  return e < this.length - t ? { x: -a / r, y: -s / r } : { x: a / r, y: s / r };
470
479
  }, "getTangentAtLength"));
471
- I(this, "getPropertiesAtLength", k((e) => {
480
+ I(this, "getPropertiesAtLength", _((e) => {
472
481
  const t = this.getTangentAtLength(e), o = this.getPointAtLength(e);
473
482
  return { x: o.x, y: o.y, tangentX: t.x, tangentY: t.y };
474
483
  }, "getPropertiesAtLength"));
@@ -478,7 +487,7 @@ var Zt = Object.defineProperty, k = (n, e) => Zt(n, "name", { value: e, configur
478
487
  });
479
488
  this.length = f.arcLength;
480
489
  }
481
- }, k(m0, "Arc"), m0), ht = k((n, e, t, o, i, a, s, r) => {
490
+ }, _(m0, "Arc"), m0), ht = _((n, e, t, o, i, a, s, r) => {
482
491
  e = Math.abs(e), t = Math.abs(t), o = e1(o, 360);
483
492
  const h = n1(o);
484
493
  if (n.x === s.x && n.y === s.y) return { x: n.x, y: n.y, ellipticalArcAngle: 0 };
@@ -490,9 +499,9 @@ var Zt = Object.defineProperty, k = (n, e) => Zt(n, "name", { value: e, configur
490
499
  const m = (i !== a ? 1 : -1) * Math.sqrt(u), y = m * (e * x.y / t), M = m * (-t * x.x / e), C = { x: Math.cos(h) * y - Math.sin(h) * M + (n.x + s.x) / 2, y: Math.sin(h) * y + Math.cos(h) * M + (n.y + s.y) / 2 }, E = { x: (x.x - y) / e, y: (x.y - M) / t }, L = ct({ x: 1, y: 0 }, E);
491
500
  let S = ct(E, { x: (-x.x - y) / e, y: (-x.y - M) / t });
492
501
  !a && S > 0 ? S -= 2 * Math.PI : a && S < 0 && (S += 2 * Math.PI), S %= 2 * Math.PI;
493
- const P = L + S * r, F = e * Math.cos(P), H = t * Math.sin(P);
494
- return { x: Math.cos(h) * F - Math.sin(h) * H + C.x, y: Math.sin(h) * F + Math.cos(h) * H + C.y, ellipticalArcStartAngle: L, ellipticalArcEndAngle: L + S, ellipticalArcAngle: P, ellipticalArcCenter: C, resultantRx: e, resultantRy: t };
495
- }, "pointOnEllipticalArc"), t1 = k((n, e) => {
502
+ const P = L + S * r, F = e * Math.cos(P), z = t * Math.sin(P);
503
+ return { x: Math.cos(h) * F - Math.sin(h) * z + C.x, y: Math.sin(h) * F + Math.cos(h) * z + C.y, ellipticalArcStartAngle: L, ellipticalArcEndAngle: L + S, ellipticalArcAngle: P, ellipticalArcCenter: C, resultantRx: e, resultantRy: t };
504
+ }, "pointOnEllipticalArc"), t1 = _((n, e) => {
496
505
  n = n ?? 500;
497
506
  let t = 0;
498
507
  const o = [], i = [];
@@ -502,28 +511,28 @@ var Zt = Object.defineProperty, k = (n, e) => Zt(n, "name", { value: e, configur
502
511
  a = e(h), t += lt(s, a), i.push([s, a]), o.push({ t: h, arcLength: t }), s = a;
503
512
  }
504
513
  return a = e(1), i.push([s, a]), t += lt(s, a), o.push({ t: 1, arcLength: t }), { arcLength: t, arcLengthMap: o, approximationLines: i };
505
- }, "approximateArcLengthOfCurve"), e1 = k((n, e) => (n % e + e) % e, "mod"), n1 = k((n) => n * (Math.PI / 180), "toRadians"), lt = k((n, e) => Math.sqrt(Math.pow(e.x - n.x, 2) + Math.pow(e.y - n.y, 2)), "distance"), r1 = k((n, e, t) => Math.min(Math.max(n, e), t), "clamp"), ct = k((n, e) => {
514
+ }, "approximateArcLengthOfCurve"), e1 = _((n, e) => (n % e + e) % e, "mod"), n1 = _((n) => n * (Math.PI / 180), "toRadians"), lt = _((n, e) => Math.sqrt(Math.pow(e.x - n.x, 2) + Math.pow(e.y - n.y, 2)), "distance"), r1 = _((n, e, t) => Math.min(Math.max(n, e), t), "clamp"), ct = _((n, e) => {
506
515
  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)));
507
516
  return (n.x * e.y - n.y * e.x < 0 ? -1 : 1) * Math.acos(t / o);
508
- }, "angleBetween"), i1 = [[], [], [-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]], o1 = [[], [], [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]], s1 = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]], a1 = k((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"), h1 = k((n, e, t) => It([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"), l1 = k((n, e, t) => {
517
+ }, "angleBetween"), i1 = [[], [], [-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]], o1 = [[], [], [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]], s1 = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]], a1 = _((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"), h1 = _((n, e, t) => It([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"), l1 = _((n, e, t) => {
509
518
  let o, i;
510
519
  const a = t / 2;
511
520
  o = 0;
512
- for (let s = 0; s < 20; s++) i = a * i1[20][s] + a, o += o1[20][s] * _t(n, e, i);
521
+ for (let s = 0; s < 20; s++) i = a * i1[20][s] + a, o += o1[20][s] * kt(n, e, i);
513
522
  return a * o;
514
- }, "getCubicArcLength"), It = k((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"), c1 = k((n, e, t) => {
523
+ }, "getCubicArcLength"), It = _((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"), c1 = _((n, e, t) => {
515
524
  t === void 0 && (t = 1);
516
525
  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), h = 4 * (o * a + i * s), c = a * a + s * s;
517
526
  if (r === 0) return t * Math.sqrt(Math.pow(n[2] - n[0], 2) + Math.pow(e[2] - e[0], 2));
518
527
  const f = h / (2 * r), x = t + f, l = c / r - f * f, u = x * x + l > 0 ? Math.sqrt(x * x + l) : 0, m = f * f + l > 0 ? Math.sqrt(f * f + l) : 0, y = f + Math.sqrt(f * f + l) !== 0 && (x + u) / (f + m) !== 0 ? l * Math.log(Math.abs((x + u) / (f + m))) : 0;
519
528
  return Math.sqrt(r) / 2 * (x * u - f * m + y);
520
- }, "getQuadraticArcLength"), u1 = k((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");
521
- function _t(n, e, t) {
522
- const o = Y0(1, t, n), i = Y0(1, t, e), a = o * o + i * i;
529
+ }, "getQuadraticArcLength"), u1 = _((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");
530
+ function kt(n, e, t) {
531
+ const o = $0(1, t, n), i = $0(1, t, e), a = o * o + i * i;
523
532
  return Math.sqrt(a);
524
533
  }
525
- k(_t, "BFunc");
526
- var Y0 = k((n, e, t) => {
534
+ _(kt, "BFunc");
535
+ var $0 = _((n, e, t) => {
527
536
  const o = t.length - 1;
528
537
  let i, a;
529
538
  if (o === 0) return 0;
@@ -534,8 +543,8 @@ var Y0 = k((n, e, t) => {
534
543
  }
535
544
  i = new Array(o);
536
545
  for (let s = 0; s < o; s++) i[s] = o * (t[s + 1] - t[s]);
537
- return Y0(n - 1, e, i);
538
- }, "getDerivative"), R0 = k((n, e, t) => {
546
+ return $0(n - 1, e, i);
547
+ }, "getDerivative"), R0 = _((n, e, t) => {
539
548
  let o = 1, i = n / e, a = (n - t(i)) / e, s = 0;
540
549
  for (; o > 1e-3; ) {
541
550
  const r = t(i + a), h = Math.abs(n - r) / e;
@@ -547,7 +556,7 @@ var Y0 = k((n, e, t) => {
547
556
  if (s++, s > 500) break;
548
557
  }
549
558
  return i;
550
- }, "t2length"), A0, h0 = (A0 = class {
559
+ }, "t2length"), b0, h0 = (b0 = class {
551
560
  constructor(e, t, o, i, a, s, r, h) {
552
561
  I(this, "a");
553
562
  I(this, "b");
@@ -557,59 +566,59 @@ var Y0 = k((n, e, t) => {
557
566
  I(this, "getArcLength");
558
567
  I(this, "getPoint");
559
568
  I(this, "getDerivative");
560
- I(this, "getTotalLength", k(() => this.length, "getTotalLength"));
561
- I(this, "getPointAtLength", k((e) => {
569
+ I(this, "getTotalLength", _(() => this.length, "getTotalLength"));
570
+ I(this, "getPointAtLength", _((e) => {
562
571
  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 = R0(e, this.length, (a) => this.getArcLength(t, o, a));
563
572
  return this.getPoint(t, o, i);
564
573
  }, "getPointAtLength"));
565
- I(this, "getTangentAtLength", k((e) => {
574
+ I(this, "getTangentAtLength", _((e) => {
566
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 = R0(e, this.length, (h) => this.getArcLength(t, o, h)), a = this.getDerivative(t, o, i), s = Math.sqrt(a.x * a.x + a.y * a.y);
567
576
  let r;
568
577
  return r = s > 0 ? { x: a.x / s, y: a.y / s } : { x: 0, y: 0 }, r;
569
578
  }, "getTangentAtLength"));
570
- I(this, "getPropertiesAtLength", k((e) => {
579
+ I(this, "getPropertiesAtLength", _((e) => {
571
580
  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 = R0(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);
572
581
  let r;
573
582
  r = s > 0 ? { x: a.x / s, y: a.y / s } : { x: 0, y: 0 };
574
583
  const h = this.getPoint(t, o, i);
575
584
  return { x: h.x, y: h.y, tangentX: r.x, tangentY: r.y };
576
585
  }, "getPropertiesAtLength"));
577
- I(this, "getC", k(() => this.c, "getC"));
578
- I(this, "getD", k(() => this.d, "getD"));
586
+ I(this, "getC", _(() => this.c, "getC"));
587
+ I(this, "getD", _(() => this.d, "getD"));
579
588
  this.a = { x: e, y: t }, this.b = { x: o, y: i }, this.c = { x: a, y: s }, r !== void 0 && h !== void 0 ? (this.getArcLength = l1, this.getPoint = a1, this.getDerivative = h1, this.d = { x: r, y: h }) : (this.getArcLength = c1, this.getPoint = It, this.getDerivative = u1, 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);
580
589
  }
581
- }, k(A0, "Bezier"), A0), b0, f1 = (b0 = class {
590
+ }, _(b0, "Bezier"), b0), A0, f1 = (A0 = class {
582
591
  constructor(e) {
583
592
  I(this, "length", 0);
584
593
  I(this, "partial_lengths", []);
585
594
  I(this, "functions", []);
586
595
  I(this, "initial_point", null);
587
- I(this, "getPartAtLength", k((e) => {
596
+ I(this, "getPartAtLength", _((e) => {
588
597
  e < 0 ? e = 0 : e > this.length && (e = this.length);
589
598
  let t = this.partial_lengths.length - 1;
590
599
  for (; this.partial_lengths[t] >= e && t > 0; ) t--;
591
600
  return t++, { fraction: e - this.partial_lengths[t - 1], i: t };
592
601
  }, "getPartAtLength"));
593
- I(this, "getTotalLength", k(() => this.length, "getTotalLength"));
594
- I(this, "getPointAtLength", k((e) => {
602
+ I(this, "getTotalLength", _(() => this.length, "getTotalLength"));
603
+ I(this, "getPointAtLength", _((e) => {
595
604
  const t = this.getPartAtLength(e), o = this.functions[t.i];
596
605
  if (o) return o.getPointAtLength(t.fraction);
597
606
  if (this.initial_point) return this.initial_point;
598
607
  throw new Error("Wrong function at this part.");
599
608
  }, "getPointAtLength"));
600
- I(this, "getTangentAtLength", k((e) => {
609
+ I(this, "getTangentAtLength", _((e) => {
601
610
  const t = this.getPartAtLength(e), o = this.functions[t.i];
602
611
  if (o) return o.getTangentAtLength(t.fraction);
603
612
  if (this.initial_point) return { x: 0, y: 0 };
604
613
  throw new Error("Wrong function at this part.");
605
614
  }, "getTangentAtLength"));
606
- I(this, "getPropertiesAtLength", k((e) => {
615
+ I(this, "getPropertiesAtLength", _((e) => {
607
616
  const t = this.getPartAtLength(e), o = this.functions[t.i];
608
617
  if (o) return o.getPropertiesAtLength(t.fraction);
609
618
  if (this.initial_point) return { x: this.initial_point.x, y: this.initial_point.y, tangentX: 0, tangentY: 0 };
610
619
  throw new Error("Wrong function at this part.");
611
620
  }, "getPropertiesAtLength"));
612
- I(this, "getParts", k(() => {
621
+ I(this, "getParts", _(() => {
613
622
  const e = [];
614
623
  for (let t = 0; t < this.functions.length; t++) if (this.functions[t] !== null) {
615
624
  this.functions[t] = this.functions[t];
@@ -685,22 +694,22 @@ var Y0 = k((n, e, t) => {
685
694
  this.partial_lengths.push(this.length);
686
695
  }
687
696
  }
688
- }, k(b0, "SVGPathProperties"), b0), M0, X0 = (M0 = class {
697
+ }, _(A0, "SVGPathProperties"), A0), M0, W0 = (M0 = class {
689
698
  constructor(e) {
690
699
  I(this, "inst");
691
- I(this, "getTotalLength", k(() => this.inst.getTotalLength(), "getTotalLength"));
692
- I(this, "getPointAtLength", k((e) => this.inst.getPointAtLength(e), "getPointAtLength"));
693
- I(this, "getTangentAtLength", k((e) => this.inst.getTangentAtLength(e), "getTangentAtLength"));
694
- I(this, "getPropertiesAtLength", k((e) => this.inst.getPropertiesAtLength(e), "getPropertiesAtLength"));
695
- I(this, "getParts", k(() => this.inst.getParts(), "getParts"));
696
- if (this.inst = new f1(e), !(this instanceof X0)) return new X0(e);
697
- }
698
- }, k(M0, "_svgPathProperties"), M0);
699
- function g1(n = W.BLACK) {
700
+ I(this, "getTotalLength", _(() => this.inst.getTotalLength(), "getTotalLength"));
701
+ I(this, "getPointAtLength", _((e) => this.inst.getPointAtLength(e), "getPointAtLength"));
702
+ I(this, "getTangentAtLength", _((e) => this.inst.getTangentAtLength(e), "getTangentAtLength"));
703
+ I(this, "getPropertiesAtLength", _((e) => this.inst.getPropertiesAtLength(e), "getPropertiesAtLength"));
704
+ I(this, "getParts", _(() => this.inst.getParts(), "getParts"));
705
+ if (this.inst = new f1(e), !(this instanceof W0)) return new W0(e);
706
+ }
707
+ }, _(M0, "_svgPathProperties"), M0);
708
+ function g1(n = G.BLACK) {
700
709
  return { ...n, alpha: 0 };
701
710
  }
702
- function bn(n = null) {
703
- 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 X0(r).getTotalLength();
711
+ function An(n = null) {
712
+ 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 W0(r).getTotalLength();
704
713
  return s0({
705
714
  objectType: j.PATH,
706
715
  anchor: o0,
@@ -785,11 +794,11 @@ const p1 = {
785
794
  fontWeight: y1,
786
795
  ligatures: !1
787
796
  };
788
- function kt(n) {
797
+ function _t(n) {
789
798
  return typeof n == "string" ? [[{ text: n }]] : n.map((e) => e.map((t) => typeof t == "string" ? { text: t } : t));
790
799
  }
791
800
  function w1(n) {
792
- return kt(n).reduce(
801
+ return _t(n).reduce(
793
802
  (t, o) => t + o.reduce((i, a) => i + a.text.length, 0),
794
803
  0
795
804
  );
@@ -797,7 +806,7 @@ function w1(n) {
797
806
  function m1(n = "", e = null) {
798
807
  return s0({
799
808
  objectType: j.TEXT,
800
- alignment: Yt,
809
+ alignment: $t,
801
810
  anchor: o0,
802
811
  length: null,
803
812
  lineSpacing: 1,
@@ -816,7 +825,7 @@ m1.writeOn = (n, e = {}) => et(
816
825
  e
817
826
  );
818
827
  let Z = null;
819
- function A1({ presentation: n, onNavigateToSlide: e }) {
828
+ function b1({ presentation: n, onNavigateToSlide: e }) {
820
829
  if (Z !== null && !Z.closed) {
821
830
  Z.focus();
822
831
  return;
@@ -825,12 +834,12 @@ function A1({ presentation: n, onNavigateToSlide: e }) {
825
834
  console.error("Failed to open navigator window.");
826
835
  return;
827
836
  }
828
- const t = b1(n, e);
837
+ const t = A1(n, e);
829
838
  Z.document.title = n.title, Z.document.body.appendChild(t), Z.addEventListener("keyup", (o) => {
830
839
  (o.key === "Escape" || o.key === "`") && (Z == null || Z.close(), Z = null);
831
840
  });
832
841
  }
833
- function b1(n, e) {
842
+ function A1(n, e) {
834
843
  const t = document.createElement("div");
835
844
  return t.style.fontFamily = "Arial, sans-serif", n.slides.forEach((o, i) => {
836
845
  const a = M1(o, i);
@@ -853,7 +862,7 @@ function i0(n = null) {
853
862
  const L1 = i0({ width: 0, height: 0 });
854
863
  function T1(n = null) {
855
864
  return {
856
- backgroundColor: W.WHITE,
865
+ backgroundColor: G.WHITE,
857
866
  slides: [],
858
867
  title: "Presentation",
859
868
  size: i0({ width: 3840, height: 2160 }),
@@ -911,15 +920,15 @@ const S1 = {
911
920
  }, I1 = {
912
921
  check: (n) => !0,
913
922
  interpolate: (n, e) => e
914
- }, _1 = {
923
+ }, k1 = {
915
924
  check: (n) => typeof n == "number",
916
925
  interpolate: (n, e, t) => n + (e - n) * t
917
926
  }, ft = [
918
- _1,
927
+ k1,
919
928
  S1,
920
929
  I1
921
930
  ];
922
- function k1(n, e, t, o = null) {
931
+ function _1(n, e, t, o = null) {
923
932
  if (t === 0)
924
933
  return n;
925
934
  if (t === 1)
@@ -961,7 +970,7 @@ function gt(n, e, t = null) {
961
970
  );
962
971
  n.set(a.object, {
963
972
  ...s,
964
- ...k1(
973
+ ..._1(
965
974
  s,
966
975
  a.props,
967
976
  a.easing(h),
@@ -1173,23 +1182,23 @@ function z1(n) {
1173
1182
  };
1174
1183
  }
1175
1184
  function U1(n) {
1176
- const { drawn: e, startX: t, startY: o, endX: i, endY: a, arrowheadSize: s, isArrowheadFilled: r, isDrawnFromCenter: h } = n, c = { x: t, y: o }, f = { x: i, y: a }, x = Math.atan2(f.y - c.y, f.x - c.x), l = { x: c.x + (f.x - c.x) / 2, y: c.y + (f.y - c.y) / 2 }, u = f.x - c.x, m = f.y - c.y, M = Math.hypot(u, m) * e, C = Math.cos(x), E = Math.sin(x), L = h ? { x: l.x - C * M / 2, y: l.y - E * M / 2 } : c, S = h ? { x: l.x + C * M / 2, y: l.y + E * M / 2 } : { x: c.x + C * M, y: c.y + E * M }, P = r ? Math.PI / 6 : Math.PI / 4.5, F = M < s * 2 ? M / 2 : s, H = {
1185
+ const { drawn: e, startX: t, startY: o, endX: i, endY: a, arrowheadSize: s, isArrowheadFilled: r, isDrawnFromCenter: h } = n, c = { x: t, y: o }, f = { x: i, y: a }, x = Math.atan2(f.y - c.y, f.x - c.x), l = { x: c.x + (f.x - c.x) / 2, y: c.y + (f.y - c.y) / 2 }, u = f.x - c.x, m = f.y - c.y, M = Math.hypot(u, m) * e, C = Math.cos(x), E = Math.sin(x), L = h ? { x: l.x - C * M / 2, y: l.y - E * M / 2 } : c, S = h ? { x: l.x + C * M / 2, y: l.y + E * M / 2 } : { x: c.x + C * M, y: c.y + E * M }, P = r ? Math.PI / 6 : Math.PI / 4.5, F = M < s * 2 ? M / 2 : s, z = {
1177
1186
  x: S.x - F * Math.cos(x - P),
1178
1187
  y: S.y - F * Math.sin(x - P)
1179
- }, X = {
1188
+ }, W = {
1180
1189
  x: S.x - F * Math.cos(x + P),
1181
1190
  y: S.y - F * Math.sin(x + P)
1182
- }, z = {
1191
+ }, U = {
1183
1192
  x: L.x + F * Math.cos(x - P),
1184
1193
  y: L.y + F * Math.sin(x - P)
1185
- }, G = {
1194
+ }, X = {
1186
1195
  x: L.x + F * Math.cos(x + P),
1187
1196
  y: L.y + F * Math.sin(x + P)
1188
1197
  };
1189
1198
  return {
1190
1199
  arrowPoints: [L, S],
1191
- arrowheadPoints: [H, S, X],
1192
- doubledArrowheadPoints: [z, L, G]
1200
+ arrowheadPoints: [z, S, W],
1201
+ doubledArrowheadPoints: [U, L, X]
1193
1202
  };
1194
1203
  }
1195
1204
  function y0({
@@ -1261,7 +1270,7 @@ function q0(n, e) {
1261
1270
  }
1262
1271
  return { path: t, length: i };
1263
1272
  }
1264
- const H1 = ({
1273
+ const Y1 = ({
1265
1274
  ctx: n,
1266
1275
  object: e,
1267
1276
  opacity: t,
@@ -1307,14 +1316,14 @@ const H1 = ({
1307
1316
  });
1308
1317
  }
1309
1318
  };
1310
- function G1(n, e) {
1319
+ function X1(n, e) {
1311
1320
  const t = n.radius - n.borderWidth / 2;
1312
1321
  if (t <= 0)
1313
1322
  return;
1314
1323
  const o = e(), i = -Math.PI / 2;
1315
1324
  return o.path.arc(n.x, n.y, t, i, i + 2 * Math.PI), o;
1316
1325
  }
1317
- function $1(n, e) {
1326
+ function H1(n, e) {
1318
1327
  const t = e(), o = -Math.PI / 2;
1319
1328
  t.path.arc(n.x, n.y, n.radius, o, o + 2 * Math.PI);
1320
1329
  const i = 2 * Math.PI * n.radius;
@@ -1332,7 +1341,7 @@ function Ft(n, e) {
1332
1341
  r0(n);
1333
1342
  }
1334
1343
  }
1335
- const W1 = ({
1344
+ const G1 = ({
1336
1345
  ctx: n,
1337
1346
  object: e,
1338
1347
  opacity: t,
@@ -1341,9 +1350,9 @@ const W1 = ({
1341
1350
  const i = e.opacity * t;
1342
1351
  if (i === 0 || e.drawn === 0 && e.fill.alpha === 0)
1343
1352
  return;
1344
- const { path: a, length: s } = $1(e, o);
1353
+ const { path: a, length: s } = H1(e, o);
1345
1354
  if (i < 1 && e.borderWidth > 0) {
1346
- const r = G1(e, o);
1355
+ const r = X1(e, o);
1347
1356
  r !== void 0 && (n.context.save(), Ft(n, r), v0({ ctx: n, path: a, color: e.fill, opacity: i }), n.context.restore());
1348
1357
  } else
1349
1358
  v0({ ctx: n, path: a, color: e.fill, opacity: i });
@@ -1357,17 +1366,17 @@ const W1 = ({
1357
1366
  width: e.borderWidth
1358
1367
  });
1359
1368
  };
1360
- function $(n = null) {
1369
+ function H(n = null) {
1361
1370
  return {
1362
1371
  x: 0,
1363
1372
  y: 0,
1364
1373
  ...n
1365
1374
  };
1366
1375
  }
1367
- const Y1 = $();
1376
+ const $1 = H();
1368
1377
  function l0(n = null) {
1369
1378
  return {
1370
- origin: Y1,
1379
+ origin: $1,
1371
1380
  size: L1,
1372
1381
  ...n
1373
1382
  };
@@ -1378,72 +1387,79 @@ function g0(n, e, t) {
1378
1387
  switch (e) {
1379
1388
  case n0.TOP_LEFT:
1380
1389
  return l0({
1381
- origin: $({ x: o, y: i }),
1390
+ origin: H({ x: o, y: i }),
1382
1391
  size: t
1383
1392
  });
1384
1393
  case n0.TOP:
1385
1394
  return l0({
1386
- origin: $({ x: o - a / 2, y: i }),
1395
+ origin: H({ x: o - a / 2, y: i }),
1387
1396
  size: t
1388
1397
  });
1389
1398
  case n0.TOP_RIGHT:
1390
1399
  return l0({
1391
- origin: $({ x: o - a, y: i }),
1400
+ origin: H({ x: o - a, y: i }),
1392
1401
  size: t
1393
1402
  });
1394
1403
  case n0.LEFT:
1395
1404
  return l0({
1396
- origin: $({ x: o, y: i - s / 2 }),
1405
+ origin: H({ x: o, y: i - s / 2 }),
1397
1406
  size: t
1398
1407
  });
1399
1408
  case n0.CENTER:
1400
1409
  return l0({
1401
- origin: $({ x: o - a / 2, y: i - s / 2 }),
1410
+ origin: H({ x: o - a / 2, y: i - s / 2 }),
1402
1411
  size: t
1403
1412
  });
1404
1413
  case n0.RIGHT:
1405
1414
  return l0({
1406
- origin: $({ x: o - a, y: i - s / 2 }),
1415
+ origin: H({ x: o - a, y: i - s / 2 }),
1407
1416
  size: t
1408
1417
  });
1409
1418
  case n0.BOTTOM_LEFT:
1410
1419
  return l0({
1411
- origin: $({ x: o, y: i - s }),
1420
+ origin: H({ x: o, y: i - s }),
1412
1421
  size: t
1413
1422
  });
1414
1423
  case n0.BOTTOM:
1415
1424
  return l0({
1416
- origin: $({ x: o - a / 2, y: i - s }),
1425
+ origin: H({ x: o - a / 2, y: i - s }),
1417
1426
  size: t
1418
1427
  });
1419
1428
  case n0.BOTTOM_RIGHT:
1420
1429
  return l0({
1421
- origin: $({ x: o - a, y: i - s }),
1430
+ origin: H({ x: o - a, y: i - s }),
1422
1431
  size: t
1423
1432
  });
1424
1433
  default:
1425
1434
  r0(e);
1426
1435
  }
1427
1436
  }
1428
- const X1 = ({
1437
+ const W1 = ({
1429
1438
  ctx: n,
1430
1439
  object: e,
1431
1440
  renderObject: t,
1432
1441
  opacity: o
1433
1442
  }) => {
1434
- const i = g0(
1435
- $({ x: e.x, y: e.y }),
1443
+ const i = e.scale * e.scaleX, a = e.scale * e.scaleY, s = g0(
1444
+ H({ x: e.x, y: e.y }),
1436
1445
  e.anchor,
1437
1446
  i0({
1438
- width: e.width * e.scale,
1439
- height: e.height * e.scale
1447
+ width: e.width * Math.abs(i),
1448
+ height: e.height * Math.abs(a)
1440
1449
  })
1441
- ), { rotation: a, rotateOriginX: s, rotateOriginY: r } = e;
1442
- if (e.scale !== 0) {
1443
- n.context.translate(i.origin.x, i.origin.y), n.context.scale(e.scale, e.scale), n.context.translate(s, r), n.context.rotate(a * Math.PI / 180), n.context.translate(-s, -r);
1444
- for (const h of e.objects)
1445
- t(h, o * e.opacity);
1446
- e.previewColor !== null && (n.context.fillStyle = E0(e.previewColor), n.context.fillRect(0, 0, e.width, e.height)), n.context.translate(s, r), n.context.rotate(-a * Math.PI / 180), n.context.translate(-s, -r), e.rotateOriginPreviewSize > 0 && (n.context.fillStyle = "red", n.context.beginPath(), n.context.arc(s, r, e.rotateOriginPreviewSize, 0, 2 * Math.PI), n.context.fill()), n.context.scale(1 / e.scale, 1 / e.scale), n.context.translate(-i.origin.x, -i.origin.y);
1450
+ ), { rotation: r, rotateOriginX: h, rotateOriginY: c, skewOriginX: f, skewOriginY: x, skewX: l, skewY: u } = e;
1451
+ if (!(i === 0 || a === 0)) {
1452
+ n.context.save(), n.context.translate(s.origin.x, s.origin.y), n.context.scale(i, a), n.context.translate(h, c), n.context.rotate(r * Math.PI / 180), n.context.translate(-h, -c), n.context.translate(f, x), n.context.transform(
1453
+ 1,
1454
+ Math.tan(u * Math.PI / 180),
1455
+ Math.tan(l * Math.PI / 180),
1456
+ 1,
1457
+ 0,
1458
+ 0
1459
+ ), n.context.translate(-f, -x);
1460
+ for (const m of e.objects)
1461
+ t(m, o * e.opacity);
1462
+ e.previewColor !== null && (n.context.fillStyle = E0(e.previewColor), n.context.fillRect(0, 0, e.width, e.height)), e.rotateOriginPreviewSize > 0 && (n.context.fillStyle = "red", n.context.beginPath(), n.context.arc(h, c, e.rotateOriginPreviewSize, 0, 2 * Math.PI), n.context.fill()), e.skewOriginPreviewSize > 0 && (n.context.fillStyle = "blue", n.context.beginPath(), n.context.arc(f, x, e.skewOriginPreviewSize, 0, 2 * Math.PI), n.context.fill()), n.context.restore();
1447
1463
  }
1448
1464
  };
1449
1465
  function rt(n, e, t, o, i = 0) {
@@ -1481,7 +1497,7 @@ const S0 = {
1481
1497
  createPath2D: i
1482
1498
  }) => {
1483
1499
  const a = g0(
1484
- $({ x: t.x, y: t.y }),
1500
+ H({ x: t.x, y: t.y }),
1485
1501
  t.anchor,
1486
1502
  i0({ width: t.width, height: t.height })
1487
1503
  ), s = e[t.imageId];
@@ -1564,11 +1580,11 @@ const K1 = ({
1564
1580
  }) => {
1565
1581
  n.context.save();
1566
1582
  const i = g0(
1567
- $({ x: e.x, y: e.y }),
1583
+ H({ x: e.x, y: e.y }),
1568
1584
  e.anchor,
1569
1585
  i0({ width: e.width, height: e.height })
1570
1586
  );
1571
- e.preview && (n.context.lineWidth = 4, n.context.strokeStyle = E0(W.RED), n.context.rect(i.origin.x, i.origin.y, i.size.width, i.size.height), n.context.stroke()), n.context.beginPath(), n.context.rect(i.origin.x, i.origin.y, i.size.width, i.size.height), n.context.closePath(), n.context.clip();
1587
+ e.preview && (n.context.lineWidth = 4, n.context.strokeStyle = E0(G.RED), n.context.rect(i.origin.x, i.origin.y, i.size.width, i.size.height), n.context.stroke()), n.context.beginPath(), n.context.rect(i.origin.x, i.origin.y, i.size.width, i.size.height), n.context.closePath(), n.context.clip();
1572
1588
  for (const a of e.objects)
1573
1589
  o(a, t * e.opacity);
1574
1590
  n.context.restore();
@@ -1582,7 +1598,7 @@ const K1 = ({
1582
1598
  if (i === 0 || e.drawn === 0 && e.fill.alpha === 0)
1583
1599
  return;
1584
1600
  const { origin: a } = g0(
1585
- $({ x: e.x, y: e.y }),
1601
+ H({ x: e.x, y: e.y }),
1586
1602
  e.anchor,
1587
1603
  i0({ width: e.width, height: e.height })
1588
1604
  ), s = o(e.path);
@@ -1650,13 +1666,13 @@ const ee = ({
1650
1666
  };
1651
1667
  function ne(n, e) {
1652
1668
  const t = n.borderWidth / 2, { origin: o, size: i } = g0(
1653
- $({ x: n.x, y: n.y }),
1669
+ H({ x: n.x, y: n.y }),
1654
1670
  n.anchor,
1655
1671
  i0({ width: n.width, height: n.height })
1656
1672
  ), a = i.width - n.borderWidth, s = i.height - n.borderWidth;
1657
1673
  if (a <= 0 || s <= 0)
1658
1674
  return;
1659
- const r = $({ x: o.x + t, y: o.y + t }), h = i0({ width: a, height: s }), c = Math.max(
1675
+ const r = H({ x: o.x + t, y: o.y + t }), h = i0({ width: a, height: s }), c = Math.max(
1660
1676
  0,
1661
1677
  Math.min(n.rounding - t, Math.min(a, s) / 2)
1662
1678
  );
@@ -1667,7 +1683,7 @@ function ne(n, e) {
1667
1683
  }
1668
1684
  function re(n, e) {
1669
1685
  const { origin: t, size: o } = g0(
1670
- $({ x: n.x, y: n.y }),
1686
+ H({ x: n.x, y: n.y }),
1671
1687
  n.anchor,
1672
1688
  i0({ width: n.width, height: n.height })
1673
1689
  ), i = Math.max(0, Math.min(n.rounding, Math.min(o.width, o.height) / 2)), a = Math.min(n.borderWidth * 2, o.width - i);
@@ -1717,7 +1733,7 @@ const ie = ({
1717
1733
  if (a === void 0)
1718
1734
  return;
1719
1735
  const s = g0(
1720
- $({ x: t.x, y: t.y }),
1736
+ H({ x: t.x, y: t.y }),
1721
1737
  t.anchor,
1722
1738
  i0({ width: t.width, height: t.height })
1723
1739
  );
@@ -1797,7 +1813,7 @@ const ce = ({ ctx: n, object: e, opacity: t }) => {
1797
1813
  const o = e.opacity * t;
1798
1814
  if (o === 0)
1799
1815
  return;
1800
- const { length: i } = e, a = kt(e.text), s = se(e), r = le(a, s, n), h = ae(r, e.lineSpacing), c = g0($({ x: e.x, y: e.y }), e.anchor, h);
1816
+ const { length: i } = e, a = _t(e.text), s = se(e), r = le(a, s, n), h = ae(r, e.lineSpacing), c = g0(H({ x: e.x, y: e.y }), e.anchor, h);
1801
1817
  let f = c.origin.x, x = c.origin.y, l = 0, u = 0;
1802
1818
  for (let m = 0; m < a.length; m++) {
1803
1819
  const y = a[m], M = r[m];
@@ -1827,22 +1843,22 @@ const ce = ({ ctx: n, object: e, opacity: t }) => {
1827
1843
  console.error("Could not determine text unit or size for unit");
1828
1844
  continue;
1829
1845
  }
1830
- const { text: F, ...H } = S;
1831
- let X;
1846
+ const { text: F, ...z } = S;
1847
+ let W;
1832
1848
  if (i !== null && l + F.length > i) {
1833
1849
  const a0 = i - l;
1834
- X = F.slice(0, a0);
1850
+ W = F.slice(0, a0);
1835
1851
  }
1836
- const z = X ?? F;
1837
- l += z.length;
1838
- const G = { ...s, ...H };
1839
- Rt(n, G, o), n.context.fillText(z, f, x), f += P.width;
1852
+ const U = W ?? F;
1853
+ l += U.length;
1854
+ const X = { ...s, ...z };
1855
+ Rt(n, X, o), n.context.fillText(U, f, x), f += P.width;
1840
1856
  }
1841
1857
  }
1842
1858
  }, ue = {
1843
- [j.ARROW]: H1,
1844
- [j.CIRCLE]: W1,
1845
- [j.GROUP]: X1,
1859
+ [j.ARROW]: Y1,
1860
+ [j.CIRCLE]: G1,
1861
+ [j.GROUP]: W1,
1846
1862
  [j.IMAGE]: Z1,
1847
1863
  [j.LINE]: K1,
1848
1864
  [j.MASK]: Q1,
@@ -1862,7 +1878,7 @@ function ge(n, e) {
1862
1878
  if (n === null)
1863
1879
  return null;
1864
1880
  const t = g0(
1865
- $({ x: e.x, y: e.y }),
1881
+ H({ x: e.x, y: e.y }),
1866
1882
  e.anchor,
1867
1883
  i0({ width: e.width, height: e.height })
1868
1884
  ), o = document.createElementNS("http://www.w3.org/2000/svg", "foreignObject");
@@ -1938,7 +1954,7 @@ class Pn {
1938
1954
  buildIndex: this.state.buildIndex
1939
1955
  }, this.renderSlide(r ?? this.state.slideIndex, h);
1940
1956
  },
1941
- onShowNavigator: () => A1({
1957
+ onShowNavigator: () => b1({
1942
1958
  presentation: e,
1943
1959
  onNavigateToSlide: (r) => this.renderSlide(r)
1944
1960
  })
@@ -2042,7 +2058,7 @@ function Sn(n, e = {}) {
2042
2058
  text: n
2043
2059
  };
2044
2060
  }
2045
- function In(n = W.BLACK) {
2061
+ function In(n = G.BLACK) {
2046
2062
  return { ...n, alpha: 1 };
2047
2063
  }
2048
2064
  function de(n) {
@@ -2324,8 +2340,8 @@ function me() {
2324
2340
  function t(i, a, s, r, h, c, f, x, l, u) {
2325
2341
  var m = u * (i - s) / 2 + l * (a - r) / 2, y = -l * (i - s) / 2 + u * (a - r) / 2, M = f * f, C = x * x, E = m * m, L = y * y, S = M * C - M * L - C * E;
2326
2342
  S < 0 && (S = 0), S /= M * L + C * E, S = Math.sqrt(S) * (h === c ? -1 : 1);
2327
- var P = S * f / x * y, F = S * -x / f * m, H = u * P - l * F + (i + s) / 2, X = l * P + u * F + (a + r) / 2, z = (m - P) / f, G = (y - F) / x, a0 = (-m - P) / f, p0 = (-y - F) / x, c0 = e(1, 0, z, G), J = e(z, G, a0, p0);
2328
- return c === 0 && J > 0 && (J -= n), c === 1 && J < 0 && (J += n), [H, X, c0, J];
2343
+ var P = S * f / x * y, F = S * -x / f * m, z = u * P - l * F + (i + s) / 2, W = l * P + u * F + (a + r) / 2, U = (m - P) / f, X = (y - F) / x, a0 = (-m - P) / f, p0 = (-y - F) / x, c0 = e(1, 0, U, X), J = e(U, X, a0, p0);
2344
+ return c === 0 && J > 0 && (J -= n), c === 1 && J < 0 && (J += n), [z, W, c0, J];
2329
2345
  }
2330
2346
  function o(i, a) {
2331
2347
  var s = 1.3333333333333333 * Math.tan(a / 4), r = Math.cos(i), h = Math.sin(i), c = Math.cos(i + a), f = Math.sin(i + a);
@@ -2340,23 +2356,23 @@ function me() {
2340
2356
  x = Math.abs(x), l = Math.abs(l);
2341
2357
  var E = M * M / (x * x) + C * C / (l * l);
2342
2358
  E > 1 && (x *= Math.sqrt(E), l *= Math.sqrt(E));
2343
- var L = t(a, s, r, h, c, f, x, l, m, y), S = [], P = L[2], F = L[3], H = Math.max(Math.ceil(Math.abs(F) / (n / 4)), 1);
2344
- F /= H;
2345
- for (var X = 0; X < H; X++)
2359
+ var L = t(a, s, r, h, c, f, x, l, m, y), S = [], P = L[2], F = L[3], z = Math.max(Math.ceil(Math.abs(F) / (n / 4)), 1);
2360
+ F /= z;
2361
+ for (var W = 0; W < z; W++)
2346
2362
  S.push(o(P, F)), P += F;
2347
- return S.map(function(z) {
2348
- for (var G = 0; G < z.length; G += 2) {
2349
- var a0 = z[G + 0], p0 = z[G + 1];
2363
+ return S.map(function(U) {
2364
+ for (var X = 0; X < U.length; X += 2) {
2365
+ var a0 = U[X + 0], p0 = U[X + 1];
2350
2366
  a0 *= x, p0 *= l;
2351
2367
  var c0 = y * a0 - m * p0, J = m * a0 + y * p0;
2352
- z[G + 0] = c0 + L[0], z[G + 1] = J + L[1];
2368
+ U[X + 0] = c0 + L[0], U[X + 1] = J + L[1];
2353
2369
  }
2354
- return z;
2370
+ return U;
2355
2371
  });
2356
2372
  }, z0;
2357
2373
  }
2358
2374
  var U0, wt;
2359
- function Ae() {
2375
+ function be() {
2360
2376
  if (wt) return U0;
2361
2377
  wt = 1;
2362
2378
  var n = 1e-10, e = Math.PI / 180;
@@ -2384,11 +2400,11 @@ function Ae() {
2384
2400
  return this.rx < n * this.ry || this.ry < n * this.rx;
2385
2401
  }, U0 = t, U0;
2386
2402
  }
2387
- var H0, mt;
2388
- function be() {
2389
- if (mt) return H0;
2403
+ var Y0, mt;
2404
+ function Ae() {
2405
+ if (mt) return Y0;
2390
2406
  mt = 1;
2391
- var n = ve(), e = we(), t = Nt(), o = me(), i = Ae();
2407
+ var n = ve(), e = we(), t = Nt(), o = me(), i = be();
2392
2408
  function a(s) {
2393
2409
  if (!(this instanceof a))
2394
2410
  return new a(s);
@@ -2606,25 +2622,25 @@ function be() {
2606
2622
  l[4]
2607
2623
  ]));
2608
2624
  }), this;
2609
- }, H0 = a, H0;
2625
+ }, Y0 = a, Y0;
2610
2626
  }
2611
- var G0, At;
2627
+ var X0, bt;
2612
2628
  function Me() {
2613
- return At || (At = 1, G0 = be()), G0;
2629
+ return bt || (bt = 1, X0 = Ae()), X0;
2614
2630
  }
2615
2631
  var Le = Me();
2616
2632
  const Te = /* @__PURE__ */ ye(Le);
2617
- var $0 = { a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0 }, Pe = /([astvzqmhlc])([^astvzqmhlc]*)/ig;
2633
+ var H0 = { a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0 }, Pe = /([astvzqmhlc])([^astvzqmhlc]*)/ig;
2618
2634
  function Ce(n) {
2619
2635
  var e = [];
2620
2636
  return n.replace(Pe, function(t, o, i) {
2621
2637
  var a = o.toLowerCase();
2622
2638
  for (i = Se(i), a === "m" && i.length > 2 && (e.push([o].concat(i.splice(0, 2))), a = "l", o = o === "m" ? "l" : "L"); i.length >= 0; ) {
2623
- if (i.length === $0[a])
2639
+ if (i.length === H0[a])
2624
2640
  return i.unshift(o), e.push(i);
2625
- if (i.length < $0[a])
2641
+ if (i.length < H0[a])
2626
2642
  throw new Error("malformed path data");
2627
- e.push([o].concat(i.splice(0, $0[a])));
2643
+ e.push([o].concat(i.splice(0, H0[a])));
2628
2644
  }
2629
2645
  }), e;
2630
2646
  }
@@ -2637,7 +2653,7 @@ function e0(n, e, t, o, i, a, s, r) {
2637
2653
  return new Z0(n, e, t, o, i, a, s, r);
2638
2654
  }
2639
2655
  function Z0(n, e, t, o, i, a, s, r) {
2640
- 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 = De, this.getPoint = ke, this.getDerivative = _e) : (this.getArcLength = Oe, this.getPoint = qt, this.getDerivative = Ie), this.init();
2656
+ 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 = De, this.getPoint = _e, this.getDerivative = ke) : (this.getArcLength = Oe, this.getPoint = qt, this.getDerivative = Ie), this.init();
2641
2657
  }
2642
2658
  Z0.prototype = {
2643
2659
  constructor: Z0,
@@ -2651,7 +2667,7 @@ Z0.prototype = {
2651
2667
  return this.length;
2652
2668
  },
2653
2669
  getPointAtLength: function(n) {
2654
- var e = W0(
2670
+ var e = G0(
2655
2671
  n,
2656
2672
  this.length,
2657
2673
  this.getArcLength,
@@ -2665,7 +2681,7 @@ Z0.prototype = {
2665
2681
  );
2666
2682
  },
2667
2683
  getTangentAtLength: function(n) {
2668
- var e = W0(
2684
+ var e = G0(
2669
2685
  n,
2670
2686
  this.length,
2671
2687
  this.getArcLength,
@@ -2679,7 +2695,7 @@ Z0.prototype = {
2679
2695
  return o > 0 ? i = { x: t.x / o, y: t.y / o } : i = { x: 0, y: 0 }, i;
2680
2696
  },
2681
2697
  getPropertiesAtLength: function(n) {
2682
- var e = W0(
2698
+ var e = G0(
2683
2699
  n,
2684
2700
  this.length,
2685
2701
  this.getArcLength,
@@ -2705,7 +2721,7 @@ function Ie(n, e, t) {
2705
2721
  y: (1 - t) * 2 * (e[1] - e[0]) + t * 2 * (e[2] - e[1])
2706
2722
  };
2707
2723
  }
2708
- function _e(n, e, t) {
2724
+ function ke(n, e, t) {
2709
2725
  var o = qt(
2710
2726
  [3 * (n[1] - n[0]), 3 * (n[2] - n[1]), 3 * (n[3] - n[2])],
2711
2727
  [3 * (e[1] - e[0]), 3 * (e[2] - e[1]), 3 * (e[3] - e[2])],
@@ -2713,7 +2729,7 @@ function _e(n, e, t) {
2713
2729
  );
2714
2730
  return o;
2715
2731
  }
2716
- function W0(n, e, t, o, i) {
2732
+ function G0(n, e, t, o, i) {
2717
2733
  for (var a = 1, s = n / e, r = (n - t(o, i, s)) / e; a > 1e-3; ) {
2718
2734
  var h = t(o, i, s + r), c = t(o, i, s - r), f = Math.abs(n - h) / e, x = Math.abs(n - c) / e;
2719
2735
  f < a ? (a = f, s += r) : x < a ? (a = x, s -= r) : r /= 2;
@@ -2724,7 +2740,7 @@ function qt(n, e, t) {
2724
2740
  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];
2725
2741
  return { x: o, y: i };
2726
2742
  }
2727
- function ke(n, e, t) {
2743
+ function _e(n, e, t) {
2728
2744
  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];
2729
2745
  return { x: o, y: i };
2730
2746
  }
@@ -2821,15 +2837,15 @@ function De(n, e, t) {
2821
2837
  return o * i;
2822
2838
  }
2823
2839
  var C0 = Math.PI * 2;
2824
- function bt(n, e, t, o) {
2840
+ function At(n, e, t, o) {
2825
2841
  var i = n * o - e * t < 0 ? -1 : 1, a = n * t + e * o;
2826
2842
  return a > 1 && (a = 1), a < -1 && (a = -1), i * Math.acos(a);
2827
2843
  }
2828
2844
  function je(n, e, t, o, i, a, s, r, h, c) {
2829
2845
  var f = c * (n - t) / 2 + h * (e - o) / 2, x = -h * (n - t) / 2 + c * (e - o) / 2, l = s * s, u = r * r, m = f * f, y = x * x, M = l * u - l * y - u * m;
2830
2846
  M < 0 && (M = 0), M /= l * y + u * m, M = Math.sqrt(M) * (i === a ? -1 : 1);
2831
- var C = M * s / r * x, E = M * -r / s * f, L = c * C - h * E + (n + t) / 2, S = h * C + c * E + (e + o) / 2, P = (f - C) / s, F = (x - E) / r, H = (-f - C) / s, X = (-x - E) / r, z = bt(1, 0, P, F), G = bt(P, F, H, X);
2832
- return a === 0 && G > 0 && (G -= C0), a === 1 && G < 0 && (G += C0), [L, S, z, G];
2847
+ var C = M * s / r * x, E = M * -r / s * f, L = c * C - h * E + (n + t) / 2, S = h * C + c * E + (e + o) / 2, P = (f - C) / s, F = (x - E) / r, z = (-f - C) / s, W = (-x - E) / r, U = At(1, 0, P, F), X = At(P, F, z, W);
2848
+ return a === 0 && X > 0 && (X -= C0), a === 1 && X < 0 && (X += C0), [L, S, U, X];
2833
2849
  }
2834
2850
  function ze(n, e) {
2835
2851
  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);
@@ -2850,10 +2866,10 @@ function Ue(n, e, t, o, i, a, s, r, h) {
2850
2866
  y.push(ze(M, C)), M += C;
2851
2867
  return y.map(function(S) {
2852
2868
  for (var P = 0; P < S.length; P += 2) {
2853
- var F = S[P + 0], H = S[P + 1];
2854
- F *= t, H *= o;
2855
- var X = f * F - c * H, z = c * F + f * H;
2856
- S[P + 0] = X + m[0], S[P + 1] = z + m[1];
2869
+ var F = S[P + 0], z = S[P + 1];
2870
+ F *= t, z *= o;
2871
+ var W = f * F - c * z, U = c * F + f * z;
2872
+ S[P + 0] = W + m[0], S[P + 1] = U + m[1];
2857
2873
  }
2858
2874
  return S;
2859
2875
  });
@@ -2919,7 +2935,7 @@ I0.prototype.getPropertiesAtLength = function(n) {
2919
2935
  var e = this.getPointAtLength(n), t = this.getTangentAtLength();
2920
2936
  return { x: e.x, y: e.y, tangentX: t.x, tangentY: t.y };
2921
2937
  };
2922
- function He(n) {
2938
+ function Ye(n) {
2923
2939
  var e = 0, t = [], o = [];
2924
2940
  function i(s) {
2925
2941
  if (!s)
@@ -2954,22 +2970,22 @@ function O0(n, e) {
2954
2970
  function Bt(n, e, t) {
2955
2971
  return [n[0] + (e[0] - n[0]) * t, n[1] + (e[1] - n[1]) * t];
2956
2972
  }
2957
- function Ge(n, e) {
2973
+ function Xe(n, e) {
2958
2974
  return O0(n, e) < 1e-9;
2959
2975
  }
2960
- function $e(n, e, t) {
2961
- let o = n.map((i, a) => We(i, e[a]));
2976
+ function He(n, e, t) {
2977
+ let o = n.map((i, a) => Ge(i, e[a]));
2962
2978
  return function(i) {
2963
2979
  let a = o.map((s) => s(i));
2964
2980
  return t ? Ze(a) : a;
2965
2981
  };
2966
2982
  }
2967
- function We(n, e) {
2983
+ function Ge(n, e) {
2968
2984
  return function(t) {
2969
2985
  return n.map((o, i) => o + t * (e[i] - o));
2970
2986
  };
2971
2987
  }
2972
- function k0(n) {
2988
+ function _0(n) {
2973
2989
  return typeof n == "number" && isFinite(n);
2974
2990
  }
2975
2991
  const Q0 = `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).
@@ -2977,17 +2993,17 @@ Example valid ways of supplying a shape would be:
2977
2993
  [[0, 0], [10, 0], [10, 10]]
2978
2994
  "M0,0 L10,0 L10,10Z"
2979
2995
  `;
2980
- function Ye(n) {
2996
+ function $e(n) {
2981
2997
  return new Te(n).abs();
2982
2998
  }
2983
- function Xe(n) {
2999
+ function We(n) {
2984
3000
  return n.toString().split("M").map((e, t) => (e = e.trim(), t && e ? "M" + e : e)).filter((e) => e);
2985
3001
  }
2986
3002
  function Ze(n) {
2987
3003
  return "M" + n.join("L") + "Z";
2988
3004
  }
2989
3005
  function Ve(n, e) {
2990
- let t = Ye(n);
3006
+ let t = $e(n);
2991
3007
  return Ke(t) || Qe(t, e);
2992
3008
  }
2993
3009
  function Ke(n) {
@@ -3010,10 +3026,10 @@ function Ke(n) {
3010
3026
  return t.length ? { ring: t } : !1;
3011
3027
  }
3012
3028
  function Qe(n, e) {
3013
- let t = Xe(n)[0], o = [], i, a, s = 3;
3029
+ let t = We(n)[0], o = [], i, a, s = 3;
3014
3030
  if (!t)
3015
3031
  throw new TypeError(Q0);
3016
- a = Je(t), i = a.getTotalLength(), e && k0(e) && e > 0 && (s = Math.max(s, Math.ceil(i / e)));
3032
+ a = Je(t), i = a.getTotalLength(), e && _0(e) && e > 0 && (s = Math.max(s, Math.ceil(i / e)));
3017
3033
  for (let r = 0; r < s; r++) {
3018
3034
  let h = a.getPointAtLength(i * r / s);
3019
3035
  o.push([h.x, h.y]);
@@ -3030,7 +3046,7 @@ function Je(n) {
3030
3046
  return e.setAttributeNS(null, "d", n), e;
3031
3047
  } catch {
3032
3048
  }
3033
- return He(n);
3049
+ return Ye(n);
3034
3050
  }
3035
3051
  function Lt(n, e) {
3036
3052
  const t = n.length + e, o = xe(n) / e;
@@ -3060,11 +3076,11 @@ function Tt(n, e) {
3060
3076
  throw new TypeError(Q0);
3061
3077
  if (t = n.slice(0), !en(t))
3062
3078
  throw new TypeError(Q0);
3063
- return t.length > 1 && Ge(t[0], t[t.length - 1]) && t.pop(), o = de(t), o > 0 && t.reverse(), !i && e && k0(e) && e > 0 && tn(t, e), t;
3079
+ return t.length > 1 && Xe(t[0], t[t.length - 1]) && t.pop(), o = de(t), o > 0 && t.reverse(), !i && e && _0(e) && e > 0 && tn(t, e), t;
3064
3080
  }
3065
3081
  function en(n) {
3066
3082
  return n.every(function(e) {
3067
- return Array.isArray(e) && e.length >= 2 && k0(e[0]) && k0(e[1]);
3083
+ return Array.isArray(e) && e.length >= 2 && _0(e[0]) && _0(e[1]);
3068
3084
  });
3069
3085
  }
3070
3086
  function nn(n, e) {
@@ -3082,32 +3098,32 @@ function rn(n, e, { maxSegmentLength: t = 10, string: o = !0 } = {}) {
3082
3098
  }
3083
3099
  function on(n, e, t) {
3084
3100
  let o;
3085
- return o = n.length - e.length, Lt(n, o < 0 ? o * -1 : 0), Lt(e, o > 0 ? o : 0), nn(n, e), $e(n, e, t);
3101
+ return o = n.length - e.length, Lt(n, o < 0 ? o * -1 : 0), Lt(e, o > 0 ? o : 0), nn(n, e), He(n, e, t);
3086
3102
  }
3087
- var _0 = { exports: {} }, Pt;
3103
+ var k0 = { exports: {} }, Pt;
3088
3104
  function sn() {
3089
- if (Pt) return _0.exports;
3090
- Pt = 1, _0.exports = n, _0.exports.default = n;
3105
+ if (Pt) return k0.exports;
3106
+ Pt = 1, k0.exports = n, k0.exports.default = n;
3091
3107
  function n(g, d, p) {
3092
3108
  p = p || 2;
3093
- var v = d && d.length, w = v ? d[0] * p : g.length, A = e(g, 0, w, p, !0), b = [];
3094
- if (!A || A.next === A.prev) return b;
3095
- var T, O, _, U, B, R, Y;
3096
- if (v && (A = h(g, d, A, p)), g.length > 80 * p) {
3097
- T = _ = g[0], O = U = g[1];
3109
+ var v = d && d.length, w = v ? d[0] * p : g.length, b = e(g, 0, w, p, !0), A = [];
3110
+ if (!b || b.next === b.prev) return A;
3111
+ var T, O, k, Y, B, R, $;
3112
+ if (v && (b = h(g, d, b, p)), g.length > 80 * p) {
3113
+ T = k = g[0], O = Y = g[1];
3098
3114
  for (var D = p; D < w; D += p)
3099
- B = g[D], R = g[D + 1], B < T && (T = B), R < O && (O = R), B > _ && (_ = B), R > U && (U = R);
3100
- Y = Math.max(_ - T, U - O), Y = Y !== 0 ? 32767 / Y : 0;
3115
+ B = g[D], R = g[D + 1], B < T && (T = B), R < O && (O = R), B > k && (k = B), R > Y && (Y = R);
3116
+ $ = Math.max(k - T, Y - O), $ = $ !== 0 ? 32767 / $ : 0;
3101
3117
  }
3102
- return o(A, b, p, T, O, Y, 0), b;
3118
+ return o(b, A, p, T, O, $, 0), A;
3103
3119
  }
3104
3120
  function e(g, d, p, v, w) {
3105
- var A, b;
3121
+ var b, A;
3106
3122
  if (w === F0(g, d, p, v) > 0)
3107
- for (A = d; A < p; A += v) b = p0(A, g[A], g[A + 1], b);
3123
+ for (b = d; b < p; b += v) A = p0(b, g[b], g[b + 1], A);
3108
3124
  else
3109
- for (A = p - v; A >= d; A -= v) b = p0(A, g[A], g[A + 1], b);
3110
- return b && S(b, b.next) && (c0(b), b = b.next), b;
3125
+ for (b = p - v; b >= d; b -= v) A = p0(b, g[b], g[b + 1], A);
3126
+ return A && S(A, A.next) && (c0(A), A = A.next), A;
3111
3127
  }
3112
3128
  function t(g, d) {
3113
3129
  if (!g) return g;
@@ -3122,16 +3138,16 @@ function sn() {
3122
3138
  while (v || p !== d);
3123
3139
  return d;
3124
3140
  }
3125
- function o(g, d, p, v, w, A, b) {
3141
+ function o(g, d, p, v, w, b, A) {
3126
3142
  if (g) {
3127
- !b && A && u(g, v, w, A);
3128
- for (var T = g, O, _; g.prev !== g.next; ) {
3129
- if (O = g.prev, _ = g.next, A ? a(g, v, w, A) : i(g)) {
3130
- d.push(O.i / p | 0), d.push(g.i / p | 0), d.push(_.i / p | 0), c0(g), g = _.next, T = _.next;
3143
+ !A && b && u(g, v, w, b);
3144
+ for (var T = g, O, k; g.prev !== g.next; ) {
3145
+ if (O = g.prev, k = g.next, b ? a(g, v, w, b) : i(g)) {
3146
+ d.push(O.i / p | 0), d.push(g.i / p | 0), d.push(k.i / p | 0), c0(g), g = k.next, T = k.next;
3131
3147
  continue;
3132
3148
  }
3133
- if (g = _, g === T) {
3134
- b ? b === 1 ? (g = s(t(g), d, p), o(g, d, p, v, w, A, 2)) : b === 2 && r(g, d, p, v, w, A) : o(t(g), d, p, v, w, A, 1);
3149
+ if (g = k, g === T) {
3150
+ A ? A === 1 ? (g = s(t(g), d, p), o(g, d, p, v, w, b, 2)) : A === 2 && r(g, d, p, v, w, b) : o(t(g), d, p, v, w, b, 1);
3135
3151
  break;
3136
3152
  }
3137
3153
  }
@@ -3140,25 +3156,25 @@ function sn() {
3140
3156
  function i(g) {
3141
3157
  var d = g.prev, p = g, v = g.next;
3142
3158
  if (L(d, p, v) >= 0) return !1;
3143
- for (var w = d.x, A = p.x, b = v.x, T = d.y, O = p.y, _ = v.y, U = w < A ? w < b ? w : b : A < b ? A : b, B = T < O ? T < _ ? T : _ : O < _ ? O : _, R = w > A ? w > b ? w : b : A > b ? A : b, Y = T > O ? T > _ ? T : _ : O > _ ? O : _, D = v.next; D !== d; ) {
3144
- if (D.x >= U && D.x <= R && D.y >= B && D.y <= Y && C(w, T, A, O, b, _, D.x, D.y) && L(D.prev, D, D.next) >= 0) return !1;
3159
+ for (var w = d.x, b = p.x, A = v.x, T = d.y, O = p.y, k = v.y, Y = w < b ? w < A ? w : A : b < A ? b : A, B = T < O ? T < k ? T : k : O < k ? O : k, R = w > b ? w > A ? w : A : b > A ? b : A, $ = T > O ? T > k ? T : k : O > k ? O : k, D = v.next; D !== d; ) {
3160
+ if (D.x >= Y && D.x <= R && D.y >= B && D.y <= $ && C(w, T, b, O, A, k, D.x, D.y) && L(D.prev, D, D.next) >= 0) return !1;
3145
3161
  D = D.next;
3146
3162
  }
3147
3163
  return !0;
3148
3164
  }
3149
3165
  function a(g, d, p, v) {
3150
- var w = g.prev, A = g, b = g.next;
3151
- if (L(w, A, b) >= 0) return !1;
3152
- for (var T = w.x, O = A.x, _ = b.x, U = w.y, B = A.y, R = b.y, Y = T < O ? T < _ ? T : _ : O < _ ? O : _, D = U < B ? U < R ? U : R : B < R ? B : R, L0 = T > O ? T > _ ? T : _ : O > _ ? O : _, T0 = U > B ? U > R ? U : R : B > R ? B : R, it = y(Y, D, d, p, v), ot = y(L0, T0, d, p, v), N = g.prevZ, q = g.nextZ; N && N.z >= it && q && q.z <= ot; ) {
3153
- if (N.x >= Y && N.x <= L0 && N.y >= D && N.y <= T0 && N !== w && N !== b && C(T, U, O, B, _, R, N.x, N.y) && L(N.prev, N, N.next) >= 0 || (N = N.prevZ, q.x >= Y && q.x <= L0 && q.y >= D && q.y <= T0 && q !== w && q !== b && C(T, U, O, B, _, R, q.x, q.y) && L(q.prev, q, q.next) >= 0)) return !1;
3166
+ var w = g.prev, b = g, A = g.next;
3167
+ if (L(w, b, A) >= 0) return !1;
3168
+ for (var T = w.x, O = b.x, k = A.x, Y = w.y, B = b.y, R = A.y, $ = T < O ? T < k ? T : k : O < k ? O : k, D = Y < B ? Y < R ? Y : R : B < R ? B : R, L0 = T > O ? T > k ? T : k : O > k ? O : k, T0 = Y > B ? Y > R ? Y : R : B > R ? B : R, it = y($, D, d, p, v), ot = y(L0, T0, d, p, v), N = g.prevZ, q = g.nextZ; N && N.z >= it && q && q.z <= ot; ) {
3169
+ if (N.x >= $ && N.x <= L0 && N.y >= D && N.y <= T0 && N !== w && N !== A && C(T, Y, O, B, k, R, N.x, N.y) && L(N.prev, N, N.next) >= 0 || (N = N.prevZ, q.x >= $ && q.x <= L0 && q.y >= D && q.y <= T0 && q !== w && q !== A && C(T, Y, O, B, k, R, q.x, q.y) && L(q.prev, q, q.next) >= 0)) return !1;
3154
3170
  q = q.nextZ;
3155
3171
  }
3156
3172
  for (; N && N.z >= it; ) {
3157
- if (N.x >= Y && N.x <= L0 && N.y >= D && N.y <= T0 && N !== w && N !== b && C(T, U, O, B, _, R, N.x, N.y) && L(N.prev, N, N.next) >= 0) return !1;
3173
+ if (N.x >= $ && N.x <= L0 && N.y >= D && N.y <= T0 && N !== w && N !== A && C(T, Y, O, B, k, R, N.x, N.y) && L(N.prev, N, N.next) >= 0) return !1;
3158
3174
  N = N.prevZ;
3159
3175
  }
3160
3176
  for (; q && q.z <= ot; ) {
3161
- if (q.x >= Y && q.x <= L0 && q.y >= D && q.y <= T0 && q !== w && q !== b && C(T, U, O, B, _, R, q.x, q.y) && L(q.prev, q, q.next) >= 0) return !1;
3177
+ if (q.x >= $ && q.x <= L0 && q.y >= D && q.y <= T0 && q !== w && q !== A && C(T, Y, O, B, k, R, q.x, q.y) && L(q.prev, q, q.next) >= 0) return !1;
3162
3178
  q = q.nextZ;
3163
3179
  }
3164
3180
  return !0;
@@ -3166,31 +3182,31 @@ function sn() {
3166
3182
  function s(g, d, p) {
3167
3183
  var v = g;
3168
3184
  do {
3169
- var w = v.prev, A = v.next.next;
3170
- !S(w, A) && P(w, v, v.next, A) && z(w, A) && z(A, w) && (d.push(w.i / p | 0), d.push(v.i / p | 0), d.push(A.i / p | 0), c0(v), c0(v.next), v = g = A), v = v.next;
3185
+ var w = v.prev, b = v.next.next;
3186
+ !S(w, b) && P(w, v, v.next, b) && U(w, b) && U(b, w) && (d.push(w.i / p | 0), d.push(v.i / p | 0), d.push(b.i / p | 0), c0(v), c0(v.next), v = g = b), v = v.next;
3171
3187
  } while (v !== g);
3172
3188
  return t(v);
3173
3189
  }
3174
- function r(g, d, p, v, w, A) {
3175
- var b = g;
3190
+ function r(g, d, p, v, w, b) {
3191
+ var A = g;
3176
3192
  do {
3177
- for (var T = b.next.next; T !== b.prev; ) {
3178
- if (b.i !== T.i && E(b, T)) {
3179
- var O = a0(b, T);
3180
- b = t(b, b.next), O = t(O, O.next), o(b, d, p, v, w, A, 0), o(O, d, p, v, w, A, 0);
3193
+ for (var T = A.next.next; T !== A.prev; ) {
3194
+ if (A.i !== T.i && E(A, T)) {
3195
+ var O = a0(A, T);
3196
+ A = t(A, A.next), O = t(O, O.next), o(A, d, p, v, w, b, 0), o(O, d, p, v, w, b, 0);
3181
3197
  return;
3182
3198
  }
3183
3199
  T = T.next;
3184
3200
  }
3185
- b = b.next;
3186
- } while (b !== g);
3201
+ A = A.next;
3202
+ } while (A !== g);
3187
3203
  }
3188
3204
  function h(g, d, p, v) {
3189
- var w = [], A, b, T, O, _;
3190
- for (A = 0, b = d.length; A < b; A++)
3191
- T = d[A] * v, O = A < b - 1 ? d[A + 1] * v : g.length, _ = e(g, T, O, v, !1), _ === _.next && (_.steiner = !0), w.push(M(_));
3192
- for (w.sort(c), A = 0; A < w.length; A++)
3193
- p = f(w[A], p);
3205
+ var w = [], b, A, T, O, k;
3206
+ for (b = 0, A = d.length; b < A; b++)
3207
+ T = d[b] * v, O = b < A - 1 ? d[b + 1] * v : g.length, k = e(g, T, O, v, !1), k === k.next && (k.steiner = !0), w.push(M(k));
3208
+ for (w.sort(c), b = 0; b < w.length; b++)
3209
+ p = f(w[b], p);
3194
3210
  return p;
3195
3211
  }
3196
3212
  function c(g, d) {
@@ -3204,22 +3220,22 @@ function sn() {
3204
3220
  return t(v, v.next), t(p, p.next);
3205
3221
  }
3206
3222
  function x(g, d) {
3207
- var p = d, v = g.x, w = g.y, A = -1 / 0, b;
3223
+ var p = d, v = g.x, w = g.y, b = -1 / 0, A;
3208
3224
  do {
3209
3225
  if (w <= p.y && w >= p.next.y && p.next.y !== p.y) {
3210
3226
  var T = p.x + (w - p.y) * (p.next.x - p.x) / (p.next.y - p.y);
3211
- if (T <= v && T > A && (A = T, b = p.x < p.next.x ? p : p.next, T === v))
3212
- return b;
3227
+ if (T <= v && T > b && (b = T, A = p.x < p.next.x ? p : p.next, T === v))
3228
+ return A;
3213
3229
  }
3214
3230
  p = p.next;
3215
3231
  } while (p !== d);
3216
- if (!b) return null;
3217
- var O = b, _ = b.x, U = b.y, B = 1 / 0, R;
3218
- p = b;
3232
+ if (!A) return null;
3233
+ var O = A, k = A.x, Y = A.y, B = 1 / 0, R;
3234
+ p = A;
3219
3235
  do
3220
- v >= p.x && p.x >= _ && v !== p.x && C(w < U ? v : A, w, _, U, w < U ? A : v, w, p.x, p.y) && (R = Math.abs(w - p.y) / (v - p.x), z(p, g) && (R < B || R === B && (p.x > b.x || p.x === b.x && l(b, p))) && (b = p, B = R)), p = p.next;
3236
+ v >= p.x && p.x >= k && v !== p.x && C(w < Y ? v : b, w, k, Y, w < Y ? b : v, w, p.x, p.y) && (R = Math.abs(w - p.y) / (v - p.x), U(p, g) && (R < B || R === B && (p.x > A.x || p.x === A.x && l(A, p))) && (A = p, B = R)), p = p.next;
3221
3237
  while (p !== O);
3222
- return b;
3238
+ return A;
3223
3239
  }
3224
3240
  function l(g, d) {
3225
3241
  return L(g.prev, g, d.prev) < 0 && L(d.next, g, g.next) < 0;
@@ -3232,17 +3248,17 @@ function sn() {
3232
3248
  w.prevZ.nextZ = null, w.prevZ = null, m(w);
3233
3249
  }
3234
3250
  function m(g) {
3235
- var d, p, v, w, A, b, T, O, _ = 1;
3251
+ var d, p, v, w, b, A, T, O, k = 1;
3236
3252
  do {
3237
- for (p = g, g = null, A = null, b = 0; p; ) {
3238
- for (b++, v = p, T = 0, d = 0; d < _ && (T++, v = v.nextZ, !!v); d++)
3253
+ for (p = g, g = null, b = null, A = 0; p; ) {
3254
+ for (A++, v = p, T = 0, d = 0; d < k && (T++, v = v.nextZ, !!v); d++)
3239
3255
  ;
3240
- for (O = _; T > 0 || O > 0 && v; )
3241
- T !== 0 && (O === 0 || !v || p.z <= v.z) ? (w = p, p = p.nextZ, T--) : (w = v, v = v.nextZ, O--), A ? A.nextZ = w : g = w, w.prevZ = A, A = w;
3256
+ for (O = k; T > 0 || O > 0 && v; )
3257
+ T !== 0 && (O === 0 || !v || p.z <= v.z) ? (w = p, p = p.nextZ, T--) : (w = v, v = v.nextZ, O--), b ? b.nextZ = w : g = w, w.prevZ = b, b = w;
3242
3258
  p = v;
3243
3259
  }
3244
- A.nextZ = null, _ *= 2;
3245
- } while (b > 1);
3260
+ b.nextZ = null, k *= 2;
3261
+ } while (A > 1);
3246
3262
  return g;
3247
3263
  }
3248
3264
  function y(g, d, p, v, w) {
@@ -3255,12 +3271,12 @@ function sn() {
3255
3271
  while (d !== g);
3256
3272
  return p;
3257
3273
  }
3258
- function C(g, d, p, v, w, A, b, T) {
3259
- return (w - b) * (d - T) >= (g - b) * (A - T) && (g - b) * (v - T) >= (p - b) * (d - T) && (p - b) * (A - T) >= (w - b) * (v - T);
3274
+ function C(g, d, p, v, w, b, A, T) {
3275
+ return (w - A) * (d - T) >= (g - A) * (b - T) && (g - A) * (v - T) >= (p - A) * (d - T) && (p - A) * (b - T) >= (w - A) * (v - T);
3260
3276
  }
3261
3277
  function E(g, d) {
3262
- return g.next.i !== d.i && g.prev.i !== d.i && !X(g, d) && // dones't intersect other edges
3263
- (z(g, d) && z(d, g) && G(g, d) && // locally visible
3278
+ return g.next.i !== d.i && g.prev.i !== d.i && !W(g, d) && // dones't intersect other edges
3279
+ (U(g, d) && U(d, g) && X(g, d) && // locally visible
3264
3280
  (L(g.prev, g, d.prev) || L(g, d.prev, d)) || // does not create opposite-facing sectors
3265
3281
  S(g, d) && L(g.prev, g, g.next) > 0 && L(d.prev, d, d.next) > 0);
3266
3282
  }
@@ -3271,16 +3287,16 @@ function sn() {
3271
3287
  return g.x === d.x && g.y === d.y;
3272
3288
  }
3273
3289
  function P(g, d, p, v) {
3274
- var w = H(L(g, d, p)), A = H(L(g, d, v)), b = H(L(p, v, g)), T = H(L(p, v, d));
3275
- return !!(w !== A && b !== T || w === 0 && F(g, p, d) || A === 0 && F(g, v, d) || b === 0 && F(p, g, v) || T === 0 && F(p, d, v));
3290
+ var w = z(L(g, d, p)), b = z(L(g, d, v)), A = z(L(p, v, g)), T = z(L(p, v, d));
3291
+ return !!(w !== b && A !== T || w === 0 && F(g, p, d) || b === 0 && F(g, v, d) || A === 0 && F(p, g, v) || T === 0 && F(p, d, v));
3276
3292
  }
3277
3293
  function F(g, d, p) {
3278
3294
  return d.x <= Math.max(g.x, p.x) && d.x >= Math.min(g.x, p.x) && d.y <= Math.max(g.y, p.y) && d.y >= Math.min(g.y, p.y);
3279
3295
  }
3280
- function H(g) {
3296
+ function z(g) {
3281
3297
  return g > 0 ? 1 : g < 0 ? -1 : 0;
3282
3298
  }
3283
- function X(g, d) {
3299
+ function W(g, d) {
3284
3300
  var p = g;
3285
3301
  do {
3286
3302
  if (p.i !== g.i && p.next.i !== g.i && p.i !== d.i && p.next.i !== d.i && P(p, p.next, g, d)) return !0;
@@ -3288,19 +3304,19 @@ function sn() {
3288
3304
  } while (p !== g);
3289
3305
  return !1;
3290
3306
  }
3291
- function z(g, d) {
3307
+ function U(g, d) {
3292
3308
  return L(g.prev, g, g.next) < 0 ? L(g, d, g.next) >= 0 && L(g, g.prev, d) >= 0 : L(g, d, g.prev) < 0 || L(g, g.next, d) < 0;
3293
3309
  }
3294
- function G(g, d) {
3295
- var p = g, v = !1, w = (g.x + d.x) / 2, A = (g.y + d.y) / 2;
3310
+ function X(g, d) {
3311
+ var p = g, v = !1, w = (g.x + d.x) / 2, b = (g.y + d.y) / 2;
3296
3312
  do
3297
- p.y > A != p.next.y > A && p.next.y !== p.y && w < (p.next.x - p.x) * (A - p.y) / (p.next.y - p.y) + p.x && (v = !v), p = p.next;
3313
+ p.y > b != p.next.y > b && p.next.y !== p.y && w < (p.next.x - p.x) * (b - p.y) / (p.next.y - p.y) + p.x && (v = !v), p = p.next;
3298
3314
  while (p !== g);
3299
3315
  return v;
3300
3316
  }
3301
3317
  function a0(g, d) {
3302
- var p = new J(g.i, g.x, g.y), v = new J(d.i, d.x, d.y), w = g.next, A = d.prev;
3303
- return g.next = d, d.prev = g, p.next = w, w.prev = p, v.next = p, p.prev = v, A.next = v, v.prev = A, v;
3318
+ var p = new J(g.i, g.x, g.y), v = new J(d.i, d.x, d.y), w = g.next, b = d.prev;
3319
+ return g.next = d, d.prev = g, p.next = w, w.prev = p, v.next = p, p.prev = v, b.next = v, v.prev = b, v;
3304
3320
  }
3305
3321
  function p0(g, d, p, v) {
3306
3322
  var w = new J(g, d, p);
@@ -3313,34 +3329,34 @@ function sn() {
3313
3329
  this.i = g, this.x = d, this.y = p, this.prev = null, this.next = null, this.z = 0, this.prevZ = null, this.nextZ = null, this.steiner = !1;
3314
3330
  }
3315
3331
  n.deviation = function(g, d, p, v) {
3316
- var w = d && d.length, A = w ? d[0] * p : g.length, b = Math.abs(F0(g, 0, A, p));
3332
+ var w = d && d.length, b = w ? d[0] * p : g.length, A = Math.abs(F0(g, 0, b, p));
3317
3333
  if (w)
3318
3334
  for (var T = 0, O = d.length; T < O; T++) {
3319
- var _ = d[T] * p, U = T < O - 1 ? d[T + 1] * p : g.length;
3320
- b -= Math.abs(F0(g, _, U, p));
3335
+ var k = d[T] * p, Y = T < O - 1 ? d[T + 1] * p : g.length;
3336
+ A -= Math.abs(F0(g, k, Y, p));
3321
3337
  }
3322
3338
  var B = 0;
3323
3339
  for (T = 0; T < v.length; T += 3) {
3324
- var R = v[T] * p, Y = v[T + 1] * p, D = v[T + 2] * p;
3340
+ var R = v[T] * p, $ = v[T + 1] * p, D = v[T + 2] * p;
3325
3341
  B += Math.abs(
3326
- (g[R] - g[D]) * (g[Y + 1] - g[R + 1]) - (g[R] - g[Y]) * (g[D + 1] - g[R + 1])
3342
+ (g[R] - g[D]) * (g[$ + 1] - g[R + 1]) - (g[R] - g[$]) * (g[D + 1] - g[R + 1])
3327
3343
  );
3328
3344
  }
3329
- return b === 0 && B === 0 ? 0 : Math.abs((B - b) / b);
3345
+ return A === 0 && B === 0 ? 0 : Math.abs((B - A) / A);
3330
3346
  };
3331
3347
  function F0(g, d, p, v) {
3332
- for (var w = 0, A = d, b = p - v; A < p; A += v)
3333
- w += (g[b] - g[A]) * (g[A + 1] + g[b + 1]), b = A;
3348
+ for (var w = 0, b = d, A = p - v; b < p; b += v)
3349
+ w += (g[A] - g[b]) * (g[b + 1] + g[A + 1]), A = b;
3334
3350
  return w;
3335
3351
  }
3336
3352
  return n.flatten = function(g) {
3337
3353
  for (var d = g[0][0].length, p = { vertices: [], holes: [], dimensions: d }, v = 0, w = 0; w < g.length; w++) {
3338
- for (var A = 0; A < g[w].length; A++)
3339
- for (var b = 0; b < d; b++) p.vertices.push(g[w][A][b]);
3354
+ for (var b = 0; b < g[w].length; b++)
3355
+ for (var A = 0; A < d; A++) p.vertices.push(g[w][b][A]);
3340
3356
  w > 0 && (v += g[w - 1].length, p.holes.push(v));
3341
3357
  }
3342
3358
  return p;
3343
- }, _0.exports;
3359
+ }, k0.exports;
3344
3360
  }
3345
3361
  sn();
3346
3362
  function Dt(n, e) {
@@ -3370,19 +3386,19 @@ function hn(n) {
3370
3386
  };
3371
3387
  }
3372
3388
  an(Dt);
3373
- function _n(n, e, t = 3) {
3389
+ function kn(n, e, t = 3) {
3374
3390
  const o = rn(n, e, { maxSegmentLength: t });
3375
3391
  return {
3376
3392
  check: (i) => typeof i == "string",
3377
3393
  interpolate: (i, a, s) => o(s)
3378
3394
  };
3379
3395
  }
3380
- function kn(n) {
3396
+ function _n(n) {
3381
3397
  const e = (o) => n.width * o, t = (o) => n.height * o;
3382
3398
  return {
3383
3399
  scaleX: e,
3384
3400
  scaleY: t,
3385
- position: (o, i) => $({
3401
+ position: (o, i) => H({
3386
3402
  x: e(o),
3387
3403
  y: t(i)
3388
3404
  })
@@ -3406,7 +3422,7 @@ export {
3406
3422
  xn as Arrow,
3407
3423
  Pn as BrowserCanvasRenderer,
3408
3424
  yn as Circle,
3409
- W as Color,
3425
+ G as Color,
3410
3426
  tt as Easing,
3411
3427
  cn as FadeIn,
3412
3428
  un as FadeOut,
@@ -3418,13 +3434,13 @@ export {
3418
3434
  pn as IFrame,
3419
3435
  wn as Image,
3420
3436
  mn as Line,
3421
- An as Mask,
3437
+ bn as Mask,
3422
3438
  j as ObjectType,
3423
3439
  In as Opaque,
3424
- bn as Path,
3440
+ An as Path,
3425
3441
  Cn as Pause,
3426
3442
  Mn as Polygon,
3427
- $ as Position,
3443
+ H as Position,
3428
3444
  T1 as Presentation,
3429
3445
  Ln as Rectangle,
3430
3446
  Tn as SVG,
@@ -3439,10 +3455,10 @@ export {
3439
3455
  g1 as Transparent,
3440
3456
  Ct as Update,
3441
3457
  On as getKeySlideBuildIndices,
3442
- kn as getSizingFunctions,
3443
- _n as getSmoothPathInterpolator,
3458
+ _n as getSizingFunctions,
3459
+ kn as getSmoothPathInterpolator,
3444
3460
  w1 as getTextContentLength,
3445
3461
  S1 as interpolateColor,
3446
- _1 as interpolateNumber
3462
+ k1 as interpolateNumber
3447
3463
  };
3448
3464
  //# sourceMappingURL=presenter.mjs.map