@agient/chatbot 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,13 +1,10 @@
1
1
  var ct = Object.defineProperty;
2
2
  var ut = (e, t, r) => t in e ? ct(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var Y = (e, t, r) => ut(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { computedAsync, useWindowSize } from "@vueuse/core";
3
+ var U = (e, t, r) => ut(e, typeof t != "symbol" ? t + "" : t, r);
5
4
  import { io } from "socket.io-client";
6
5
  import { validate, v4 } from "uuid";
7
- import { defineComponent, ref, watchEffect, computed, watch, createElementBlock, openBlock, normalizeStyle, createElementVNode, normalizeClass, createVNode, unref, createBlock, createStaticVNode, createCommentVNode, toDisplayString, withDirectives, withKeys, vModelText, toRefs, Fragment, renderList, onMounted, useTemplateRef, withModifiers, createApp, h, reactive, effect } from "vue";
8
- const createInstance = (e) => ({ on: (r, i) => {
9
- e.registeredTools[r] = i;
10
- } });
6
+ import { defineComponent, ref, watchEffect, computed, watch, createElementBlock, openBlock, normalizeStyle, createElementVNode, normalizeClass, createVNode, unref, createBlock, createStaticVNode, createCommentVNode, toDisplayString, withDirectives, withKeys, vModelText, toRefs, Fragment, renderList, useTemplateRef, renderSlot, onMounted, withCtx, withModifiers, createApp, h, reactive } from "vue";
7
+ import { computedAsync, useScroll, useElementBounding, useWindowSize } from "@vueuse/core";
11
8
  function getDefaultExportFromCjs(e) {
12
9
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
13
10
  }
@@ -310,17 +307,17 @@ function requireLottie() {
310
307
  i || (i = a(function(x) {
311
308
  function y() {
312
309
  function C(R, P) {
313
- var w, b, S = R.length, F, M, V, G;
314
- for (b = 0; b < S; b += 1)
310
+ var w, b, _ = R.length, F, M, O, G;
311
+ for (b = 0; b < _; b += 1)
315
312
  if (w = R[b], "ks" in w && !w.completed) {
316
313
  if (w.completed = !0, w.hasMask) {
317
- var U = w.masksProperties;
318
- for (M = U.length, F = 0; F < M; F += 1)
319
- if (U[F].pt.k.i)
320
- E(U[F].pt.k);
314
+ var Y = w.masksProperties;
315
+ for (M = Y.length, F = 0; F < M; F += 1)
316
+ if (Y[F].pt.k.i)
317
+ E(Y[F].pt.k);
321
318
  else
322
- for (G = U[F].pt.k.length, V = 0; V < G; V += 1)
323
- U[F].pt.k[V].s && E(U[F].pt.k[V].s[0]), U[F].pt.k[V].e && E(U[F].pt.k[V].e[0]);
319
+ for (G = Y[F].pt.k.length, O = 0; O < G; O += 1)
320
+ Y[F].pt.k[O].s && E(Y[F].pt.k[O].s[0]), Y[F].pt.k[O].e && E(Y[F].pt.k[O].e[0]);
324
321
  }
325
322
  w.ty === 0 ? (w.layers = u(w.refId, P), C(w.layers, P)) : w.ty === 4 ? v(w.shapes) : w.ty === 5 && z(w);
326
323
  }
@@ -345,13 +342,13 @@ function requireLottie() {
345
342
  return w ? w.layers.__used ? JSON.parse(JSON.stringify(w.layers)) : (w.layers.__used = !0, w.layers) : null;
346
343
  }
347
344
  function v(R) {
348
- var P, w = R.length, b, S;
345
+ var P, w = R.length, b, _;
349
346
  for (P = w - 1; P >= 0; P -= 1)
350
347
  if (R[P].ty === "sh")
351
348
  if (R[P].ks.k.i)
352
349
  E(R[P].ks.k);
353
350
  else
354
- for (S = R[P].ks.k.length, b = 0; b < S; b += 1)
351
+ for (_ = R[P].ks.k.length, b = 0; b < _; b += 1)
355
352
  R[P].ks.k[b].s && E(R[P].ks.k[b].s[0]), R[P].ks.k[b].e && E(R[P].ks.k[b].e[0]);
356
353
  else R[P].ty === "gr" && v(R[P].it);
357
354
  }
@@ -367,24 +364,24 @@ function requireLottie() {
367
364
  var T = /* @__PURE__ */ function() {
368
365
  var R = [4, 4, 14];
369
366
  function P(b) {
370
- var S = b.t.d;
367
+ var _ = b.t.d;
371
368
  b.t.d = {
372
369
  k: [{
373
- s: S,
370
+ s: _,
374
371
  t: 0
375
372
  }]
376
373
  };
377
374
  }
378
375
  function w(b) {
379
- var S, F = b.length;
380
- for (S = 0; S < F; S += 1)
381
- b[S].ty === 5 && P(b[S]);
376
+ var _, F = b.length;
377
+ for (_ = 0; _ < F; _ += 1)
378
+ b[_].ty === 5 && P(b[_]);
382
379
  }
383
380
  return function(b) {
384
381
  if (k(R, b.v) && (w(b.layers), b.assets)) {
385
- var S, F = b.assets.length;
386
- for (S = 0; S < F; S += 1)
387
- b.assets[S].layers && w(b.assets[S].layers);
382
+ var _, F = b.assets.length;
383
+ for (_ = 0; _ < F; _ += 1)
384
+ b.assets[_].layers && w(b.assets[_].layers);
388
385
  }
389
386
  };
390
387
  }(), A = /* @__PURE__ */ function() {
@@ -393,8 +390,8 @@ function requireLottie() {
393
390
  if (P.chars && !k(R, P.v)) {
394
391
  var w, b = P.chars.length;
395
392
  for (w = 0; w < b; w += 1) {
396
- var S = P.chars[w];
397
- S.data && S.data.shapes && (v(S.data.shapes), S.data.ip = 0, S.data.op = 99999, S.data.st = 0, S.data.sr = 1, S.data.ks = {
393
+ var _ = P.chars[w];
394
+ _.data && _.data.shapes && (v(_.data.shapes), _.data.ip = 0, _.data.op = 99999, _.data.st = 0, _.data.sr = 1, _.data.ks = {
398
395
  p: {
399
396
  k: [0, 0],
400
397
  a: 0
@@ -415,9 +412,9 @@ function requireLottie() {
415
412
  k: 100,
416
413
  a: 0
417
414
  }
418
- }, P.chars[w].t || (S.data.shapes.push({
415
+ }, P.chars[w].t || (_.data.shapes.push({
419
416
  ty: "no"
420
- }), S.data.shapes[0].it.push({
417
+ }), _.data.shapes[0].it.push({
421
418
  p: {
422
419
  k: [0, 0],
423
420
  a: 0
@@ -454,100 +451,100 @@ function requireLottie() {
454
451
  }(), L = /* @__PURE__ */ function() {
455
452
  var R = [5, 7, 15];
456
453
  function P(b) {
457
- var S = b.t.p;
458
- typeof S.a == "number" && (S.a = {
454
+ var _ = b.t.p;
455
+ typeof _.a == "number" && (_.a = {
459
456
  a: 0,
460
- k: S.a
461
- }), typeof S.p == "number" && (S.p = {
457
+ k: _.a
458
+ }), typeof _.p == "number" && (_.p = {
462
459
  a: 0,
463
- k: S.p
464
- }), typeof S.r == "number" && (S.r = {
460
+ k: _.p
461
+ }), typeof _.r == "number" && (_.r = {
465
462
  a: 0,
466
- k: S.r
463
+ k: _.r
467
464
  });
468
465
  }
469
466
  function w(b) {
470
- var S, F = b.length;
471
- for (S = 0; S < F; S += 1)
472
- b[S].ty === 5 && P(b[S]);
467
+ var _, F = b.length;
468
+ for (_ = 0; _ < F; _ += 1)
469
+ b[_].ty === 5 && P(b[_]);
473
470
  }
474
471
  return function(b) {
475
472
  if (k(R, b.v) && (w(b.layers), b.assets)) {
476
- var S, F = b.assets.length;
477
- for (S = 0; S < F; S += 1)
478
- b.assets[S].layers && w(b.assets[S].layers);
473
+ var _, F = b.assets.length;
474
+ for (_ = 0; _ < F; _ += 1)
475
+ b.assets[_].layers && w(b.assets[_].layers);
479
476
  }
480
477
  };
481
- }(), $ = /* @__PURE__ */ function() {
478
+ }(), H = /* @__PURE__ */ function() {
482
479
  var R = [4, 1, 9];
483
480
  function P(b) {
484
- var S, F = b.length, M, V;
485
- for (S = 0; S < F; S += 1)
486
- if (b[S].ty === "gr")
487
- P(b[S].it);
488
- else if (b[S].ty === "fl" || b[S].ty === "st")
489
- if (b[S].c.k && b[S].c.k[0].i)
490
- for (V = b[S].c.k.length, M = 0; M < V; M += 1)
491
- b[S].c.k[M].s && (b[S].c.k[M].s[0] /= 255, b[S].c.k[M].s[1] /= 255, b[S].c.k[M].s[2] /= 255, b[S].c.k[M].s[3] /= 255), b[S].c.k[M].e && (b[S].c.k[M].e[0] /= 255, b[S].c.k[M].e[1] /= 255, b[S].c.k[M].e[2] /= 255, b[S].c.k[M].e[3] /= 255);
481
+ var _, F = b.length, M, O;
482
+ for (_ = 0; _ < F; _ += 1)
483
+ if (b[_].ty === "gr")
484
+ P(b[_].it);
485
+ else if (b[_].ty === "fl" || b[_].ty === "st")
486
+ if (b[_].c.k && b[_].c.k[0].i)
487
+ for (O = b[_].c.k.length, M = 0; M < O; M += 1)
488
+ b[_].c.k[M].s && (b[_].c.k[M].s[0] /= 255, b[_].c.k[M].s[1] /= 255, b[_].c.k[M].s[2] /= 255, b[_].c.k[M].s[3] /= 255), b[_].c.k[M].e && (b[_].c.k[M].e[0] /= 255, b[_].c.k[M].e[1] /= 255, b[_].c.k[M].e[2] /= 255, b[_].c.k[M].e[3] /= 255);
492
489
  else
493
- b[S].c.k[0] /= 255, b[S].c.k[1] /= 255, b[S].c.k[2] /= 255, b[S].c.k[3] /= 255;
490
+ b[_].c.k[0] /= 255, b[_].c.k[1] /= 255, b[_].c.k[2] /= 255, b[_].c.k[3] /= 255;
494
491
  }
495
492
  function w(b) {
496
- var S, F = b.length;
497
- for (S = 0; S < F; S += 1)
498
- b[S].ty === 4 && P(b[S].shapes);
493
+ var _, F = b.length;
494
+ for (_ = 0; _ < F; _ += 1)
495
+ b[_].ty === 4 && P(b[_].shapes);
499
496
  }
500
497
  return function(b) {
501
498
  if (k(R, b.v) && (w(b.layers), b.assets)) {
502
- var S, F = b.assets.length;
503
- for (S = 0; S < F; S += 1)
504
- b.assets[S].layers && w(b.assets[S].layers);
499
+ var _, F = b.assets.length;
500
+ for (_ = 0; _ < F; _ += 1)
501
+ b.assets[_].layers && w(b.assets[_].layers);
505
502
  }
506
503
  };
507
- }(), O = /* @__PURE__ */ function() {
504
+ }(), B = /* @__PURE__ */ function() {
508
505
  var R = [4, 4, 18];
509
506
  function P(b) {
510
- var S, F = b.length, M, V;
511
- for (S = F - 1; S >= 0; S -= 1)
512
- if (b[S].ty === "sh")
513
- if (b[S].ks.k.i)
514
- b[S].ks.k.c = b[S].closed;
507
+ var _, F = b.length, M, O;
508
+ for (_ = F - 1; _ >= 0; _ -= 1)
509
+ if (b[_].ty === "sh")
510
+ if (b[_].ks.k.i)
511
+ b[_].ks.k.c = b[_].closed;
515
512
  else
516
- for (V = b[S].ks.k.length, M = 0; M < V; M += 1)
517
- b[S].ks.k[M].s && (b[S].ks.k[M].s[0].c = b[S].closed), b[S].ks.k[M].e && (b[S].ks.k[M].e[0].c = b[S].closed);
518
- else b[S].ty === "gr" && P(b[S].it);
513
+ for (O = b[_].ks.k.length, M = 0; M < O; M += 1)
514
+ b[_].ks.k[M].s && (b[_].ks.k[M].s[0].c = b[_].closed), b[_].ks.k[M].e && (b[_].ks.k[M].e[0].c = b[_].closed);
515
+ else b[_].ty === "gr" && P(b[_].it);
519
516
  }
520
517
  function w(b) {
521
- var S, F, M = b.length, V, G, U, q;
518
+ var _, F, M = b.length, O, G, Y, q;
522
519
  for (F = 0; F < M; F += 1) {
523
- if (S = b[F], S.hasMask) {
524
- var Z = S.masksProperties;
525
- for (G = Z.length, V = 0; V < G; V += 1)
526
- if (Z[V].pt.k.i)
527
- Z[V].pt.k.c = Z[V].cl;
520
+ if (_ = b[F], _.hasMask) {
521
+ var Z = _.masksProperties;
522
+ for (G = Z.length, O = 0; O < G; O += 1)
523
+ if (Z[O].pt.k.i)
524
+ Z[O].pt.k.c = Z[O].cl;
528
525
  else
529
- for (q = Z[V].pt.k.length, U = 0; U < q; U += 1)
530
- Z[V].pt.k[U].s && (Z[V].pt.k[U].s[0].c = Z[V].cl), Z[V].pt.k[U].e && (Z[V].pt.k[U].e[0].c = Z[V].cl);
526
+ for (q = Z[O].pt.k.length, Y = 0; Y < q; Y += 1)
527
+ Z[O].pt.k[Y].s && (Z[O].pt.k[Y].s[0].c = Z[O].cl), Z[O].pt.k[Y].e && (Z[O].pt.k[Y].e[0].c = Z[O].cl);
531
528
  }
532
- S.ty === 4 && P(S.shapes);
529
+ _.ty === 4 && P(_.shapes);
533
530
  }
534
531
  }
535
532
  return function(b) {
536
533
  if (k(R, b.v) && (w(b.layers), b.assets)) {
537
- var S, F = b.assets.length;
538
- for (S = 0; S < F; S += 1)
539
- b.assets[S].layers && w(b.assets[S].layers);
534
+ var _, F = b.assets.length;
535
+ for (_ = 0; _ < F; _ += 1)
536
+ b.assets[_].layers && w(b.assets[_].layers);
540
537
  }
541
538
  };
542
539
  }();
543
540
  function D(R) {
544
- R.__complete || ($(R), T(R), A(R), L(R), O(R), C(R.layers, R.assets), d(R.chars, R.assets), R.__complete = !0);
541
+ R.__complete || (H(R), T(R), A(R), L(R), B(R), C(R.layers, R.assets), d(R.chars, R.assets), R.__complete = !0);
545
542
  }
546
543
  function z(R) {
547
544
  R.t.a.length === 0 && "m" in R.t.p;
548
545
  }
549
546
  var N = {};
550
- return N.completeData = D, N.checkColors = $, N.checkChars = A, N.checkPathProperties = L, N.checkShapes = O, N.completeLayers = C, N;
547
+ return N.completeData = D, N.checkColors = H, N.checkChars = A, N.checkPathProperties = L, N.checkShapes = B, N.completeLayers = C, N;
551
548
  }
552
549
  if (n.dataManager || (n.dataManager = y()), n.assetLoader || (n.assetLoader = /* @__PURE__ */ function() {
553
550
  function C(g) {
@@ -646,7 +643,7 @@ function requireLottie() {
646
643
  id: m
647
644
  });
648
645
  }
649
- function _(p, x, y) {
646
+ function S(p, x, y) {
650
647
  o();
651
648
  var m = l(x, y);
652
649
  i.postMessage({
@@ -658,7 +655,7 @@ function requireLottie() {
658
655
  return {
659
656
  loadAnimation: f,
660
657
  loadData: c,
661
- completeAnimation: _
658
+ completeAnimation: S
662
659
  };
663
660
  }(), ImagePreloader = function() {
664
661
  var e = function() {
@@ -734,7 +731,7 @@ function requireLottie() {
734
731
  function c(d) {
735
732
  this.assetsPath = d || "";
736
733
  }
737
- function _(d) {
734
+ function S(d) {
738
735
  for (var g = 0, u = this.images.length; g < u; ) {
739
736
  if (this.images[g].assetData === d)
740
737
  return this.images[g].img;
@@ -764,7 +761,7 @@ function requireLottie() {
764
761
  loadedImages: x,
765
762
  loadedFootages: y,
766
763
  destroy: p,
767
- getAsset: _,
764
+ getAsset: S,
768
765
  createImgData: a,
769
766
  createImageData: n,
770
767
  imageLoaded: t,
@@ -1098,7 +1095,7 @@ function requireLottie() {
1098
1095
  var e = {}, t = [], r = 0, i = 0, s = 0, n = !0, a = !1;
1099
1096
  function o(P) {
1100
1097
  for (var w = 0, b = P.target; w < i; )
1101
- t[w].animation === b && (t.splice(w, 1), w -= 1, i -= 1, b.isPaused || _()), w += 1;
1098
+ t[w].animation === b && (t.splice(w, 1), w -= 1, i -= 1, b.isPaused || S()), w += 1;
1102
1099
  }
1103
1100
  function l(P, w) {
1104
1101
  if (!P)
@@ -1108,8 +1105,8 @@ function requireLottie() {
1108
1105
  return t[b].animation;
1109
1106
  b += 1;
1110
1107
  }
1111
- var S = new AnimationItem();
1112
- return p(S, P), S.setData(P, w), S;
1108
+ var _ = new AnimationItem();
1109
+ return p(_, P), _.setData(P, w), _;
1113
1110
  }
1114
1111
  function f() {
1115
1112
  var P, w = t.length, b = [];
@@ -1118,13 +1115,13 @@ function requireLottie() {
1118
1115
  return b;
1119
1116
  }
1120
1117
  function c() {
1121
- s += 1, $();
1118
+ s += 1, H();
1122
1119
  }
1123
- function _() {
1120
+ function S() {
1124
1121
  s -= 1;
1125
1122
  }
1126
1123
  function p(P, w) {
1127
- P.addEventListener("destroy", o), P.addEventListener("_active", c), P.addEventListener("_idle", _), t.push({
1124
+ P.addEventListener("destroy", o), P.addEventListener("_active", c), P.addEventListener("_idle", S), t.push({
1128
1125
  elem: w,
1129
1126
  animation: P
1130
1127
  }), i += 1;
@@ -1163,9 +1160,9 @@ function requireLottie() {
1163
1160
  t[w].animation.pause(P);
1164
1161
  }
1165
1162
  function v(P, w, b) {
1166
- var S;
1167
- for (S = 0; S < i; S += 1)
1168
- t[S].animation.goToAndStop(P, w, b);
1163
+ var _;
1164
+ for (_ = 0; _ < i; _ += 1)
1165
+ t[_].animation.goToAndStop(P, w, b);
1169
1166
  }
1170
1167
  function E(P) {
1171
1168
  var w;
@@ -1183,15 +1180,15 @@ function requireLottie() {
1183
1180
  t[w].animation.destroy(P);
1184
1181
  }
1185
1182
  function A(P, w, b) {
1186
- var S = [].concat([].slice.call(document.getElementsByClassName("lottie")), [].slice.call(document.getElementsByClassName("bodymovin"))), F, M = S.length;
1183
+ var _ = [].concat([].slice.call(document.getElementsByClassName("lottie")), [].slice.call(document.getElementsByClassName("bodymovin"))), F, M = _.length;
1187
1184
  for (F = 0; F < M; F += 1)
1188
- b && S[F].setAttribute("data-bm-type", b), l(S[F], P);
1185
+ b && _[F].setAttribute("data-bm-type", b), l(_[F], P);
1189
1186
  if (w && M === 0) {
1190
1187
  b || (b = "svg");
1191
- var V = document.getElementsByTagName("body")[0];
1192
- V.innerText = "";
1188
+ var O = document.getElementsByTagName("body")[0];
1189
+ O.innerText = "";
1193
1190
  var G = createTag("div");
1194
- G.style.width = "100%", G.style.height = "100%", G.setAttribute("data-bm-type", b), V.appendChild(G), l(G, P);
1191
+ G.style.width = "100%", G.style.height = "100%", G.setAttribute("data-bm-type", b), O.appendChild(G), l(G, P);
1195
1192
  }
1196
1193
  }
1197
1194
  function L() {
@@ -1199,14 +1196,14 @@ function requireLottie() {
1199
1196
  for (P = 0; P < i; P += 1)
1200
1197
  t[P].animation.resize();
1201
1198
  }
1202
- function $() {
1199
+ function H() {
1203
1200
  !a && s && n && (window.requestAnimationFrame(g), n = !1);
1204
1201
  }
1205
- function O() {
1202
+ function B() {
1206
1203
  a = !0;
1207
1204
  }
1208
1205
  function D() {
1209
- a = !1, $();
1206
+ a = !1, H();
1210
1207
  }
1211
1208
  function z(P, w) {
1212
1209
  var b;
@@ -1223,7 +1220,7 @@ function requireLottie() {
1223
1220
  for (w = 0; w < i; w += 1)
1224
1221
  t[w].animation.unmute(P);
1225
1222
  }
1226
- return e.registerAnimation = l, e.loadAnimation = x, e.setSpeed = y, e.setDirection = m, e.play = C, e.pause = u, e.stop = E, e.togglePause = k, e.searchAnimations = A, e.resize = L, e.goToAndStop = v, e.destroy = T, e.freeze = O, e.unfreeze = D, e.setVolume = z, e.mute = N, e.unmute = R, e.getRegisteredAnimations = f, e;
1223
+ return e.registerAnimation = l, e.loadAnimation = x, e.setSpeed = y, e.setDirection = m, e.play = C, e.pause = u, e.stop = E, e.togglePause = k, e.searchAnimations = A, e.resize = L, e.goToAndStop = v, e.destroy = T, e.freeze = B, e.unfreeze = D, e.setVolume = z, e.mute = N, e.unmute = R, e.getRegisteredAnimations = f, e;
1227
1224
  }(), BezierFactory = function() {
1228
1225
  var e = {};
1229
1226
  e.getBezierEasing = r;
@@ -1239,17 +1236,17 @@ function requireLottie() {
1239
1236
  function c(g, u) {
1240
1237
  return 1 - 3 * u + 3 * g;
1241
1238
  }
1242
- function _(g, u) {
1239
+ function S(g, u) {
1243
1240
  return 3 * u - 6 * g;
1244
1241
  }
1245
1242
  function p(g) {
1246
1243
  return 3 * g;
1247
1244
  }
1248
1245
  function x(g, u, v) {
1249
- return ((c(u, v) * g + _(u, v)) * g + p(u)) * g;
1246
+ return ((c(u, v) * g + S(u, v)) * g + p(u)) * g;
1250
1247
  }
1251
1248
  function y(g, u, v) {
1252
- return 3 * c(u, v) * g * g + 2 * _(u, v) * g + p(u);
1249
+ return 3 * c(u, v) * g * g + 2 * S(u, v) * g + p(u);
1253
1250
  }
1254
1251
  function m(g, u, v, E, k) {
1255
1252
  var T, A, L = 0;
@@ -1291,8 +1288,8 @@ function requireLottie() {
1291
1288
  for (var v = this._p[0], E = this._p[2], k = this._mSampleValues, T = 0, A = 1, L = o - 1; A !== L && k[A] <= u; ++A)
1292
1289
  T += l;
1293
1290
  --A;
1294
- var $ = (u - k[A]) / (k[A + 1] - k[A]), O = T + $ * l, D = y(O, v, E);
1295
- return D >= s ? C(u, O, v, E) : D === 0 ? O : m(u, T, T + l, v, E);
1291
+ var H = (u - k[A]) / (k[A + 1] - k[A]), B = T + H * l, D = y(B, v, E);
1292
+ return D >= s ? C(u, B, v, E) : D === 0 ? B : m(u, T, T + l, v, E);
1296
1293
  }
1297
1294
  }, e;
1298
1295
  }(), pooling = /* @__PURE__ */ function() {
@@ -1355,13 +1352,13 @@ function requireLottie() {
1355
1352
  }
1356
1353
  var i = /* @__PURE__ */ function() {
1357
1354
  return function(p, x, y, m) {
1358
- var C = getDefaultCurveSegments(), d, g, u, v, E, k = 0, T, A = [], L = [], $ = bezierLengthPool.newElement();
1355
+ var C = getDefaultCurveSegments(), d, g, u, v, E, k = 0, T, A = [], L = [], H = bezierLengthPool.newElement();
1359
1356
  for (u = y.length, d = 0; d < C; d += 1) {
1360
1357
  for (E = d / (C - 1), T = 0, g = 0; g < u; g += 1)
1361
1358
  v = bmPow(1 - E, 3) * p[g] + 3 * bmPow(1 - E, 2) * E * y[g] + 3 * (1 - E) * bmPow(E, 2) * m[g] + bmPow(E, 3) * x[g], A[g] = v, L[g] !== null && (T += bmPow(A[g] - L[g], 2)), L[g] = A[g];
1362
- T && (T = bmSqrt(T), k += T), $.percents[d] = E, $.lengths[d] = k;
1359
+ T && (T = bmSqrt(T), k += T), H.percents[d] = E, H.lengths[d] = k;
1363
1360
  }
1364
- return $.addedLength = k, $;
1361
+ return H.addedLength = k, H;
1365
1362
  };
1366
1363
  }();
1367
1364
  function s(p) {
@@ -1381,13 +1378,13 @@ function requireLottie() {
1381
1378
  return function(x, y, m, C) {
1382
1379
  var d = (x[0] + "_" + x[1] + "_" + y[0] + "_" + y[1] + "_" + m[0] + "_" + m[1] + "_" + C[0] + "_" + C[1]).replace(/\./g, "p");
1383
1380
  if (!p[d]) {
1384
- var g = getDefaultCurveSegments(), u, v, E, k, T, A = 0, L, $, O = null;
1381
+ var g = getDefaultCurveSegments(), u, v, E, k, T, A = 0, L, H, B = null;
1385
1382
  x.length === 2 && (x[0] !== y[0] || x[1] !== y[1]) && t(x[0], x[1], y[0], y[1], x[0] + m[0], x[1] + m[1]) && t(x[0], x[1], y[0], y[1], y[0] + C[0], y[1] + C[1]) && (g = 2);
1386
1383
  var D = new n(g);
1387
1384
  for (E = m.length, u = 0; u < g; u += 1) {
1388
- for ($ = createSizedArray(E), T = u / (g - 1), L = 0, v = 0; v < E; v += 1)
1389
- k = bmPow(1 - T, 3) * x[v] + 3 * bmPow(1 - T, 2) * T * (x[v] + m[v]) + 3 * (1 - T) * bmPow(T, 2) * (y[v] + C[v]) + bmPow(T, 3) * y[v], $[v] = k, O !== null && (L += bmPow($[v] - O[v], 2));
1390
- L = bmSqrt(L), A += L, D.points[u] = new a(L, $), O = $;
1385
+ for (H = createSizedArray(E), T = u / (g - 1), L = 0, v = 0; v < E; v += 1)
1386
+ k = bmPow(1 - T, 3) * x[v] + 3 * bmPow(1 - T, 2) * T * (x[v] + m[v]) + 3 * (1 - T) * bmPow(T, 2) * (y[v] + C[v]) + bmPow(T, 3) * y[v], H[v] = k, B !== null && (L += bmPow(H[v] - B[v], 2));
1387
+ L = bmSqrt(L), A += L, D.points[u] = new a(L, H), B = H;
1391
1388
  }
1392
1389
  D.segmentLength = A, p[d] = D;
1393
1390
  }
@@ -1411,18 +1408,18 @@ function requireLottie() {
1411
1408
  return [v, E];
1412
1409
  }
1413
1410
  var c = createTypedArray("float32", 8);
1414
- function _(p, x, y, m, C, d, g) {
1411
+ function S(p, x, y, m, C, d, g) {
1415
1412
  C < 0 ? C = 0 : C > 1 && (C = 1);
1416
1413
  var u = l(C, g);
1417
1414
  d = d > 1 ? 1 : d;
1418
- var v = l(d, g), E, k = p.length, T = 1 - u, A = 1 - v, L = T * T * T, $ = u * T * T * 3, O = u * u * T * 3, D = u * u * u, z = T * T * A, N = u * T * A + T * u * A + T * T * v, R = u * u * A + T * u * v + u * T * v, P = u * u * v, w = T * A * A, b = u * A * A + T * v * A + T * A * v, S = u * v * A + T * v * v + u * A * v, F = u * v * v, M = A * A * A, V = v * A * A + A * v * A + A * A * v, G = v * v * A + A * v * v + v * A * v, U = v * v * v;
1415
+ var v = l(d, g), E, k = p.length, T = 1 - u, A = 1 - v, L = T * T * T, H = u * T * T * 3, B = u * u * T * 3, D = u * u * u, z = T * T * A, N = u * T * A + T * u * A + T * T * v, R = u * u * A + T * u * v + u * T * v, P = u * u * v, w = T * A * A, b = u * A * A + T * v * A + T * A * v, _ = u * v * A + T * v * v + u * A * v, F = u * v * v, M = A * A * A, O = v * A * A + A * v * A + A * A * v, G = v * v * A + A * v * v + v * A * v, Y = v * v * v;
1419
1416
  for (E = 0; E < k; E += 1)
1420
- c[E * 4] = e.round((L * p[E] + $ * y[E] + O * m[E] + D * x[E]) * 1e3) / 1e3, c[E * 4 + 1] = e.round((z * p[E] + N * y[E] + R * m[E] + P * x[E]) * 1e3) / 1e3, c[E * 4 + 2] = e.round((w * p[E] + b * y[E] + S * m[E] + F * x[E]) * 1e3) / 1e3, c[E * 4 + 3] = e.round((M * p[E] + V * y[E] + G * m[E] + U * x[E]) * 1e3) / 1e3;
1417
+ c[E * 4] = e.round((L * p[E] + H * y[E] + B * m[E] + D * x[E]) * 1e3) / 1e3, c[E * 4 + 1] = e.round((z * p[E] + N * y[E] + R * m[E] + P * x[E]) * 1e3) / 1e3, c[E * 4 + 2] = e.round((w * p[E] + b * y[E] + _ * m[E] + F * x[E]) * 1e3) / 1e3, c[E * 4 + 3] = e.round((M * p[E] + O * y[E] + G * m[E] + Y * x[E]) * 1e3) / 1e3;
1421
1418
  return c;
1422
1419
  }
1423
1420
  return {
1424
1421
  getSegmentsLength: s,
1425
- getNewSegment: _,
1422
+ getNewSegment: S,
1426
1423
  getPointInSegment: f,
1427
1424
  buildBezierData: o,
1428
1425
  pointOnLine2D: t,
@@ -1445,25 +1442,25 @@ function requireLottie() {
1445
1442
  n < a - 1 ? n += 1 : (s = 0, o = !1);
1446
1443
  }
1447
1444
  c = this.keyframesMetadata[n] || {};
1448
- var _, p, x, y, m, C, d = f.t - r, g = l.t - r, u;
1445
+ var S, p, x, y, m, C, d = f.t - r, g = l.t - r, u;
1449
1446
  if (l.to) {
1450
1447
  c.bezierData || (c.bezierData = bez.buildBezierData(l.s, f.s || l.e, l.to, l.ti));
1451
1448
  var v = c.bezierData;
1452
1449
  if (e >= d || e < g) {
1453
1450
  var E = e >= d ? v.points.length - 1 : 0;
1454
- for (p = v.points[E].point.length, _ = 0; _ < p; _ += 1)
1455
- i[_] = v.points[E].point[_];
1451
+ for (p = v.points[E].point.length, S = 0; S < p; S += 1)
1452
+ i[S] = v.points[E].point[S];
1456
1453
  } else {
1457
1454
  c.__fnct ? C = c.__fnct : (C = BezierFactory.getBezierEasing(l.o.x, l.o.y, l.i.x, l.i.y, l.n).get, c.__fnct = C), x = C((e - g) / (d - g));
1458
1455
  var k = v.segmentLength * x, T, A = t.lastFrame < e && t._lastKeyframeIndex === n ? t._lastAddedLength : 0;
1459
1456
  for (m = t.lastFrame < e && t._lastKeyframeIndex === n ? t._lastPoint : 0, o = !0, y = v.points.length; o; ) {
1460
1457
  if (A += v.points[m].partialLength, k === 0 || x === 0 || m === v.points.length - 1) {
1461
- for (p = v.points[m].point.length, _ = 0; _ < p; _ += 1)
1462
- i[_] = v.points[m].point[_];
1458
+ for (p = v.points[m].point.length, S = 0; S < p; S += 1)
1459
+ i[S] = v.points[m].point[S];
1463
1460
  break;
1464
1461
  } else if (k >= A && k < A + v.points[m + 1].partialLength) {
1465
- for (T = (k - A) / v.points[m + 1].partialLength, p = v.points[m].point.length, _ = 0; _ < p; _ += 1)
1466
- i[_] = v.points[m].point[_] + (v.points[m + 1].point[_] - v.points[m].point[_]) * T;
1462
+ for (T = (k - A) / v.points[m + 1].partialLength, p = v.points[m].point.length, S = 0; S < p; S += 1)
1463
+ i[S] = v.points[m].point[S] + (v.points[m + 1].point[S] - v.points[m].point[S]) * T;
1467
1464
  break;
1468
1465
  }
1469
1466
  m < y - 1 ? m += 1 : o = !1;
@@ -1471,7 +1468,7 @@ function requireLottie() {
1471
1468
  t._lastPoint = m, t._lastAddedLength = A - v.points[m].partialLength, t._lastKeyframeIndex = n;
1472
1469
  }
1473
1470
  } else {
1474
- var L, $, O, D, z;
1471
+ var L, H, B, D, z;
1475
1472
  if (a = l.s.length, u = f.s || l.e, this.sh && l.h !== 1)
1476
1473
  if (e >= d)
1477
1474
  i[0] = u[0], i[1] = u[1], i[2] = u[2];
@@ -1483,21 +1480,21 @@ function requireLottie() {
1483
1480
  }
1484
1481
  else
1485
1482
  for (n = 0; n < a; n += 1)
1486
- l.h !== 1 && (e >= d ? x = 1 : e < g ? x = 0 : (l.o.x.constructor === Array ? (c.__fnct || (c.__fnct = []), c.__fnct[n] ? C = c.__fnct[n] : (L = l.o.x[n] === void 0 ? l.o.x[0] : l.o.x[n], $ = l.o.y[n] === void 0 ? l.o.y[0] : l.o.y[n], O = l.i.x[n] === void 0 ? l.i.x[0] : l.i.x[n], D = l.i.y[n] === void 0 ? l.i.y[0] : l.i.y[n], C = BezierFactory.getBezierEasing(L, $, O, D).get, c.__fnct[n] = C)) : c.__fnct ? C = c.__fnct : (L = l.o.x, $ = l.o.y, O = l.i.x, D = l.i.y, C = BezierFactory.getBezierEasing(L, $, O, D).get, l.keyframeMetadata = C), x = C((e - g) / (d - g)))), u = f.s || l.e, z = l.h === 1 ? l.s[n] : l.s[n] + (u[n] - l.s[n]) * x, this.propType === "multidimensional" ? i[n] = z : i = z;
1483
+ l.h !== 1 && (e >= d ? x = 1 : e < g ? x = 0 : (l.o.x.constructor === Array ? (c.__fnct || (c.__fnct = []), c.__fnct[n] ? C = c.__fnct[n] : (L = l.o.x[n] === void 0 ? l.o.x[0] : l.o.x[n], H = l.o.y[n] === void 0 ? l.o.y[0] : l.o.y[n], B = l.i.x[n] === void 0 ? l.i.x[0] : l.i.x[n], D = l.i.y[n] === void 0 ? l.i.y[0] : l.i.y[n], C = BezierFactory.getBezierEasing(L, H, B, D).get, c.__fnct[n] = C)) : c.__fnct ? C = c.__fnct : (L = l.o.x, H = l.o.y, B = l.i.x, D = l.i.y, C = BezierFactory.getBezierEasing(L, H, B, D).get, l.keyframeMetadata = C), x = C((e - g) / (d - g)))), u = f.s || l.e, z = l.h === 1 ? l.s[n] : l.s[n] + (u[n] - l.s[n]) * x, this.propType === "multidimensional" ? i[n] = z : i = z;
1487
1484
  }
1488
1485
  return t.lastIndex = s, i;
1489
1486
  }
1490
1487
  function slerp(e, t, r) {
1491
- var i = [], s = e[0], n = e[1], a = e[2], o = e[3], l = t[0], f = t[1], c = t[2], _ = t[3], p, x, y, m, C;
1492
- return x = s * l + n * f + a * c + o * _, x < 0 && (x = -x, l = -l, f = -f, c = -c, _ = -_), 1 - x > 1e-6 ? (p = Math.acos(x), y = Math.sin(p), m = Math.sin((1 - r) * p) / y, C = Math.sin(r * p) / y) : (m = 1 - r, C = r), i[0] = m * s + C * l, i[1] = m * n + C * f, i[2] = m * a + C * c, i[3] = m * o + C * _, i;
1488
+ var i = [], s = e[0], n = e[1], a = e[2], o = e[3], l = t[0], f = t[1], c = t[2], S = t[3], p, x, y, m, C;
1489
+ return x = s * l + n * f + a * c + o * S, x < 0 && (x = -x, l = -l, f = -f, c = -c, S = -S), 1 - x > 1e-6 ? (p = Math.acos(x), y = Math.sin(p), m = Math.sin((1 - r) * p) / y, C = Math.sin(r * p) / y) : (m = 1 - r, C = r), i[0] = m * s + C * l, i[1] = m * n + C * f, i[2] = m * a + C * c, i[3] = m * o + C * S, i;
1493
1490
  }
1494
1491
  function quaternionToEuler(e, t) {
1495
1492
  var r = t[0], i = t[1], s = t[2], n = t[3], a = Math.atan2(2 * i * n - 2 * r * s, 1 - 2 * i * i - 2 * s * s), o = Math.asin(2 * r * i + 2 * s * n), l = Math.atan2(2 * r * n - 2 * i * s, 1 - 2 * r * r - 2 * s * s);
1496
1493
  e[0] = a / degToRads, e[1] = o / degToRads, e[2] = l / degToRads;
1497
1494
  }
1498
1495
  function createQuaternion(e) {
1499
- var t = e[0] * degToRads, r = e[1] * degToRads, i = e[2] * degToRads, s = Math.cos(t / 2), n = Math.cos(r / 2), a = Math.cos(i / 2), o = Math.sin(t / 2), l = Math.sin(r / 2), f = Math.sin(i / 2), c = s * n * a - o * l * f, _ = o * l * a + s * n * f, p = o * n * a + s * l * f, x = s * l * a - o * n * f;
1500
- return [_, p, x, c];
1496
+ var t = e[0] * degToRads, r = e[1] * degToRads, i = e[2] * degToRads, s = Math.cos(t / 2), n = Math.cos(r / 2), a = Math.cos(i / 2), o = Math.sin(t / 2), l = Math.sin(r / 2), f = Math.sin(i / 2), c = s * n * a - o * l * f, S = o * l * a + s * n * f, p = o * n * a + s * l * f, x = s * l * a - o * n * f;
1497
+ return [S, p, x, c];
1501
1498
  }
1502
1499
  function getValueAtCurrentTime() {
1503
1500
  var e = this.comp.renderedFrame - this.offsetTime, t = this.keyframes[0].t - this.offsetTime, r = this.keyframes[this.keyframes.length - 1].t - this.offsetTime;
@@ -1704,29 +1701,29 @@ function requireLottie() {
1704
1701
  }(), ShapePropertyFactory = function() {
1705
1702
  var e = -999999;
1706
1703
  function t(d, g, u) {
1707
- var v = u.lastIndex, E, k, T, A, L, $, O, D, z, N = this.keyframes;
1704
+ var v = u.lastIndex, E, k, T, A, L, H, B, D, z, N = this.keyframes;
1708
1705
  if (d < N[0].t - this.offsetTime)
1709
1706
  E = N[0].s[0], T = !0, v = 0;
1710
1707
  else if (d >= N[N.length - 1].t - this.offsetTime)
1711
1708
  E = N[N.length - 1].s ? N[N.length - 1].s[0] : N[N.length - 2].e[0], T = !0;
1712
1709
  else {
1713
- for (var R = v, P = N.length - 1, w = !0, b, S, F; w && (b = N[R], S = N[R + 1], !(S.t - this.offsetTime > d)); )
1710
+ for (var R = v, P = N.length - 1, w = !0, b, _, F; w && (b = N[R], _ = N[R + 1], !(_.t - this.offsetTime > d)); )
1714
1711
  R < P - 1 ? R += 1 : w = !1;
1715
1712
  if (F = this.keyframesMetadata[R] || {}, T = b.h === 1, v = R, !T) {
1716
- if (d >= S.t - this.offsetTime)
1713
+ if (d >= _.t - this.offsetTime)
1717
1714
  D = 1;
1718
1715
  else if (d < b.t - this.offsetTime)
1719
1716
  D = 0;
1720
1717
  else {
1721
1718
  var M;
1722
- F.__fnct ? M = F.__fnct : (M = BezierFactory.getBezierEasing(b.o.x, b.o.y, b.i.x, b.i.y).get, F.__fnct = M), D = M((d - (b.t - this.offsetTime)) / (S.t - this.offsetTime - (b.t - this.offsetTime)));
1719
+ F.__fnct ? M = F.__fnct : (M = BezierFactory.getBezierEasing(b.o.x, b.o.y, b.i.x, b.i.y).get, F.__fnct = M), D = M((d - (b.t - this.offsetTime)) / (_.t - this.offsetTime - (b.t - this.offsetTime)));
1723
1720
  }
1724
- k = S.s ? S.s[0] : b.e[0];
1721
+ k = _.s ? _.s[0] : b.e[0];
1725
1722
  }
1726
1723
  E = b.s[0];
1727
1724
  }
1728
- for ($ = g._length, O = E.i[0].length, u.lastIndex = v, A = 0; A < $; A += 1)
1729
- for (L = 0; L < O; L += 1)
1725
+ for (H = g._length, B = E.i[0].length, u.lastIndex = v, A = 0; A < H; A += 1)
1726
+ for (L = 0; L < B; L += 1)
1730
1727
  z = T ? E.i[A][L] : E.i[A][L] + (k.i[A][L] - E.i[A][L]) * D, g.i[A][L] = z, z = T ? E.o[A][L] : E.o[A][L] + (k.o[A][L] - E.o[A][L]) * D, g.o[A][L] = z, z = T ? E.v[A][L] : E.v[A][L] + (k.v[A][L] - E.v[A][L]) * D, g.v[A][L] = z;
1731
1728
  }
1732
1729
  function r() {
@@ -1800,7 +1797,7 @@ function requireLottie() {
1800
1797
  L.v[0][0] = v, L.v[0][1] = E - T, L.v[1][0] = A ? v + k : v - k, L.v[1][1] = E, L.v[2][0] = v, L.v[2][1] = E + T, L.v[3][0] = A ? v - k : v + k, L.v[3][1] = E, L.i[0][0] = A ? v - k * d : v + k * d, L.i[0][1] = E - T, L.i[1][0] = A ? v + k : v - k, L.i[1][1] = E - T * d, L.i[2][0] = A ? v + k * d : v - k * d, L.i[2][1] = E + T, L.i[3][0] = A ? v - k : v + k, L.i[3][1] = E + T * d, L.o[0][0] = A ? v + k * d : v - k * d, L.o[0][1] = E - T, L.o[1][0] = A ? v + k : v - k, L.o[1][1] = E + T * d, L.o[2][0] = A ? v - k * d : v + k * d, L.o[2][1] = E + T, L.o[3][0] = A ? v - k : v + k, L.o[3][1] = E - T * d;
1801
1798
  }
1802
1799
  }, extendPrototype([DynamicPropertyContainer], g), g;
1803
- }(), _ = function() {
1800
+ }(), S = function() {
1804
1801
  function d(g, u) {
1805
1802
  this.v = shapePool.newElement(), this.v.setPathData(!0, 0), this.elem = g, this.comp = g.comp, this.data = u, this.frameId = -1, this.d = u.d, this.initDynamicPropertyContainer(g), u.sy === 1 ? (this.ir = PropertyFactory.getProp(g, u.ir, 0, 0, this), this.is = PropertyFactory.getProp(g, u.is, 0, 0.01, this), this.convertToPath = this.convertStarToPath) : this.convertToPath = this.convertPolygonToPath, this.pt = PropertyFactory.getProp(g, u.pt, 0, 0, this), this.p = PropertyFactory.getProp(g, u.p, 1, 0, this), this.r = PropertyFactory.getProp(g, u.r, 0, degToRads, this), this.or = PropertyFactory.getProp(g, u.or, 0, 0, this), this.os = PropertyFactory.getProp(g, u.os, 0, 0.01, this), this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.localShapeCollection.addShape(this.v), this.paths = this.localShapeCollection, this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertToPath());
1806
1803
  }
@@ -1810,20 +1807,20 @@ function requireLottie() {
1810
1807
  this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertToPath());
1811
1808
  },
1812
1809
  convertStarToPath: function() {
1813
- var u = Math.floor(this.pt.v) * 2, v = Math.PI * 2 / u, E = !0, k = this.or.v, T = this.ir.v, A = this.os.v, L = this.is.v, $ = 2 * Math.PI * k / (u * 2), O = 2 * Math.PI * T / (u * 2), D, z, N, R, P = -Math.PI / 2;
1810
+ var u = Math.floor(this.pt.v) * 2, v = Math.PI * 2 / u, E = !0, k = this.or.v, T = this.ir.v, A = this.os.v, L = this.is.v, H = 2 * Math.PI * k / (u * 2), B = 2 * Math.PI * T / (u * 2), D, z, N, R, P = -Math.PI / 2;
1814
1811
  P += this.r.v;
1815
1812
  var w = this.data.d === 3 ? -1 : 1;
1816
1813
  for (this.v._length = 0, D = 0; D < u; D += 1) {
1817
- z = E ? k : T, N = E ? A : L, R = E ? $ : O;
1818
- var b = z * Math.cos(P), S = z * Math.sin(P), F = b === 0 && S === 0 ? 0 : S / Math.sqrt(b * b + S * S), M = b === 0 && S === 0 ? 0 : -b / Math.sqrt(b * b + S * S);
1819
- b += +this.p.v[0], S += +this.p.v[1], this.v.setTripleAt(b, S, b - F * R * N * w, S - M * R * N * w, b + F * R * N * w, S + M * R * N * w, D, !0), E = !E, P += v * w;
1814
+ z = E ? k : T, N = E ? A : L, R = E ? H : B;
1815
+ var b = z * Math.cos(P), _ = z * Math.sin(P), F = b === 0 && _ === 0 ? 0 : _ / Math.sqrt(b * b + _ * _), M = b === 0 && _ === 0 ? 0 : -b / Math.sqrt(b * b + _ * _);
1816
+ b += +this.p.v[0], _ += +this.p.v[1], this.v.setTripleAt(b, _, b - F * R * N * w, _ - M * R * N * w, b + F * R * N * w, _ + M * R * N * w, D, !0), E = !E, P += v * w;
1820
1817
  }
1821
1818
  },
1822
1819
  convertPolygonToPath: function() {
1823
- var u = Math.floor(this.pt.v), v = Math.PI * 2 / u, E = this.or.v, k = this.os.v, T = 2 * Math.PI * E / (u * 4), A, L = -Math.PI * 0.5, $ = this.data.d === 3 ? -1 : 1;
1820
+ var u = Math.floor(this.pt.v), v = Math.PI * 2 / u, E = this.or.v, k = this.os.v, T = 2 * Math.PI * E / (u * 4), A, L = -Math.PI * 0.5, H = this.data.d === 3 ? -1 : 1;
1824
1821
  for (L += this.r.v, this.v._length = 0, A = 0; A < u; A += 1) {
1825
- var O = E * Math.cos(L), D = E * Math.sin(L), z = O === 0 && D === 0 ? 0 : D / Math.sqrt(O * O + D * D), N = O === 0 && D === 0 ? 0 : -O / Math.sqrt(O * O + D * D);
1826
- O += +this.p.v[0], D += +this.p.v[1], this.v.setTripleAt(O, D, O - z * T * k * $, D - N * T * k * $, O + z * T * k * $, D + N * T * k * $, A, !0), L += v * $;
1822
+ var B = E * Math.cos(L), D = E * Math.sin(L), z = B === 0 && D === 0 ? 0 : D / Math.sqrt(B * B + D * D), N = B === 0 && D === 0 ? 0 : -B / Math.sqrt(B * B + D * D);
1823
+ B += +this.p.v[0], D += +this.p.v[1], this.v.setTripleAt(B, D, B - z * T * k * H, D - N * T * k * H, B + z * T * k * H, D + N * T * k * H, A, !0), L += v * H;
1827
1824
  }
1828
1825
  this.paths.length = 0, this.paths[0] = this.v;
1829
1826
  }
@@ -1848,7 +1845,7 @@ function requireLottie() {
1848
1845
  if (u === 3 || u === 4) {
1849
1846
  var E = u === 3 ? g.pt : g.ks, k = E.k;
1850
1847
  k.length ? v = new f(d, g, u) : v = new o(d, g, u);
1851
- } else u === 5 ? v = new p(d, g) : u === 6 ? v = new c(d, g) : u === 7 && (v = new _(d, g));
1848
+ } else u === 5 ? v = new p(d, g) : u === 6 ? v = new c(d, g) : u === 7 && (v = new S(d, g));
1852
1849
  return v.k && d.addDynamicProperty(v), v;
1853
1850
  }
1854
1851
  function y() {
@@ -1876,144 +1873,144 @@ function requireLottie() {
1876
1873
  function n(b) {
1877
1874
  if (b === 0)
1878
1875
  return this;
1879
- var S = e(b), F = t(b);
1880
- return this._t(S, -F, 0, 0, F, S, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
1876
+ var _ = e(b), F = t(b);
1877
+ return this._t(_, -F, 0, 0, F, _, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
1881
1878
  }
1882
1879
  function a(b) {
1883
1880
  if (b === 0)
1884
1881
  return this;
1885
- var S = e(b), F = t(b);
1886
- return this._t(1, 0, 0, 0, 0, S, -F, 0, 0, F, S, 0, 0, 0, 0, 1);
1882
+ var _ = e(b), F = t(b);
1883
+ return this._t(1, 0, 0, 0, 0, _, -F, 0, 0, F, _, 0, 0, 0, 0, 1);
1887
1884
  }
1888
1885
  function o(b) {
1889
1886
  if (b === 0)
1890
1887
  return this;
1891
- var S = e(b), F = t(b);
1892
- return this._t(S, 0, F, 0, 0, 1, 0, 0, -F, 0, S, 0, 0, 0, 0, 1);
1888
+ var _ = e(b), F = t(b);
1889
+ return this._t(_, 0, F, 0, 0, 1, 0, 0, -F, 0, _, 0, 0, 0, 0, 1);
1893
1890
  }
1894
1891
  function l(b) {
1895
1892
  if (b === 0)
1896
1893
  return this;
1897
- var S = e(b), F = t(b);
1898
- return this._t(S, -F, 0, 0, F, S, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
1894
+ var _ = e(b), F = t(b);
1895
+ return this._t(_, -F, 0, 0, F, _, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
1899
1896
  }
1900
- function f(b, S) {
1901
- return this._t(1, S, b, 1, 0, 0);
1897
+ function f(b, _) {
1898
+ return this._t(1, _, b, 1, 0, 0);
1902
1899
  }
1903
- function c(b, S) {
1904
- return this.shear(r(b), r(S));
1900
+ function c(b, _) {
1901
+ return this.shear(r(b), r(_));
1905
1902
  }
1906
- function _(b, S) {
1907
- var F = e(S), M = t(S);
1903
+ function S(b, _) {
1904
+ var F = e(_), M = t(_);
1908
1905
  return this._t(F, M, 0, 0, -M, F, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, r(b), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(F, -M, 0, 0, M, F, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
1909
1906
  }
1910
- function p(b, S, F) {
1911
- return !F && F !== 0 && (F = 1), b === 1 && S === 1 && F === 1 ? this : this._t(b, 0, 0, 0, 0, S, 0, 0, 0, 0, F, 0, 0, 0, 0, 1);
1907
+ function p(b, _, F) {
1908
+ return !F && F !== 0 && (F = 1), b === 1 && _ === 1 && F === 1 ? this : this._t(b, 0, 0, 0, 0, _, 0, 0, 0, 0, F, 0, 0, 0, 0, 1);
1912
1909
  }
1913
- function x(b, S, F, M, V, G, U, q, Z, J, se, ue, ne, Q, ee, X) {
1914
- return this.props[0] = b, this.props[1] = S, this.props[2] = F, this.props[3] = M, this.props[4] = V, this.props[5] = G, this.props[6] = U, this.props[7] = q, this.props[8] = Z, this.props[9] = J, this.props[10] = se, this.props[11] = ue, this.props[12] = ne, this.props[13] = Q, this.props[14] = ee, this.props[15] = X, this;
1910
+ function x(b, _, F, M, O, G, Y, q, Z, J, se, ue, ne, Q, ee, X) {
1911
+ return this.props[0] = b, this.props[1] = _, this.props[2] = F, this.props[3] = M, this.props[4] = O, this.props[5] = G, this.props[6] = Y, this.props[7] = q, this.props[8] = Z, this.props[9] = J, this.props[10] = se, this.props[11] = ue, this.props[12] = ne, this.props[13] = Q, this.props[14] = ee, this.props[15] = X, this;
1915
1912
  }
1916
- function y(b, S, F) {
1917
- return F = F || 0, b !== 0 || S !== 0 || F !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, b, S, F, 1) : this;
1913
+ function y(b, _, F) {
1914
+ return F = F || 0, b !== 0 || _ !== 0 || F !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, b, _, F, 1) : this;
1918
1915
  }
1919
- function m(b, S, F, M, V, G, U, q, Z, J, se, ue, ne, Q, ee, X) {
1920
- var H = this.props;
1921
- if (b === 1 && S === 0 && F === 0 && M === 0 && V === 0 && G === 1 && U === 0 && q === 0 && Z === 0 && J === 0 && se === 1 && ue === 0)
1922
- return H[12] = H[12] * b + H[15] * ne, H[13] = H[13] * G + H[15] * Q, H[14] = H[14] * se + H[15] * ee, H[15] *= X, this._identityCalculated = !1, this;
1923
- var ge = H[0], ve = H[1], le = H[2], pe = H[3], de = H[4], ye = H[5], ae = H[6], xe = H[7], be = H[8], oe = H[9], ce = H[10], re = H[11], Se = H[12], Te = H[13], we = H[14], Ce = H[15];
1924
- return H[0] = ge * b + ve * V + le * Z + pe * ne, H[1] = ge * S + ve * G + le * J + pe * Q, H[2] = ge * F + ve * U + le * se + pe * ee, H[3] = ge * M + ve * q + le * ue + pe * X, H[4] = de * b + ye * V + ae * Z + xe * ne, H[5] = de * S + ye * G + ae * J + xe * Q, H[6] = de * F + ye * U + ae * se + xe * ee, H[7] = de * M + ye * q + ae * ue + xe * X, H[8] = be * b + oe * V + ce * Z + re * ne, H[9] = be * S + oe * G + ce * J + re * Q, H[10] = be * F + oe * U + ce * se + re * ee, H[11] = be * M + oe * q + ce * ue + re * X, H[12] = Se * b + Te * V + we * Z + Ce * ne, H[13] = Se * S + Te * G + we * J + Ce * Q, H[14] = Se * F + Te * U + we * se + Ce * ee, H[15] = Se * M + Te * q + we * ue + Ce * X, this._identityCalculated = !1, this;
1916
+ function m(b, _, F, M, O, G, Y, q, Z, J, se, ue, ne, Q, ee, X) {
1917
+ var $ = this.props;
1918
+ if (b === 1 && _ === 0 && F === 0 && M === 0 && O === 0 && G === 1 && Y === 0 && q === 0 && Z === 0 && J === 0 && se === 1 && ue === 0)
1919
+ return $[12] = $[12] * b + $[15] * ne, $[13] = $[13] * G + $[15] * Q, $[14] = $[14] * se + $[15] * ee, $[15] *= X, this._identityCalculated = !1, this;
1920
+ var ge = $[0], ve = $[1], le = $[2], pe = $[3], de = $[4], ye = $[5], ae = $[6], xe = $[7], be = $[8], oe = $[9], ce = $[10], re = $[11], _e = $[12], Te = $[13], we = $[14], Ce = $[15];
1921
+ return $[0] = ge * b + ve * O + le * Z + pe * ne, $[1] = ge * _ + ve * G + le * J + pe * Q, $[2] = ge * F + ve * Y + le * se + pe * ee, $[3] = ge * M + ve * q + le * ue + pe * X, $[4] = de * b + ye * O + ae * Z + xe * ne, $[5] = de * _ + ye * G + ae * J + xe * Q, $[6] = de * F + ye * Y + ae * se + xe * ee, $[7] = de * M + ye * q + ae * ue + xe * X, $[8] = be * b + oe * O + ce * Z + re * ne, $[9] = be * _ + oe * G + ce * J + re * Q, $[10] = be * F + oe * Y + ce * se + re * ee, $[11] = be * M + oe * q + ce * ue + re * X, $[12] = _e * b + Te * O + we * Z + Ce * ne, $[13] = _e * _ + Te * G + we * J + Ce * Q, $[14] = _e * F + Te * Y + we * se + Ce * ee, $[15] = _e * M + Te * q + we * ue + Ce * X, this._identityCalculated = !1, this;
1925
1922
  }
1926
1923
  function C(b) {
1927
- var S = b.props;
1928
- return this.transform(S[0], S[1], S[2], S[3], S[4], S[5], S[6], S[7], S[8], S[9], S[10], S[11], S[12], S[13], S[14], S[15]);
1924
+ var _ = b.props;
1925
+ return this.transform(_[0], _[1], _[2], _[3], _[4], _[5], _[6], _[7], _[8], _[9], _[10], _[11], _[12], _[13], _[14], _[15]);
1929
1926
  }
1930
1927
  function d() {
1931
1928
  return this._identityCalculated || (this._identity = !(this.props[0] !== 1 || this.props[1] !== 0 || this.props[2] !== 0 || this.props[3] !== 0 || this.props[4] !== 0 || this.props[5] !== 1 || this.props[6] !== 0 || this.props[7] !== 0 || this.props[8] !== 0 || this.props[9] !== 0 || this.props[10] !== 1 || this.props[11] !== 0 || this.props[12] !== 0 || this.props[13] !== 0 || this.props[14] !== 0 || this.props[15] !== 1), this._identityCalculated = !0), this._identity;
1932
1929
  }
1933
1930
  function g(b) {
1934
- for (var S = 0; S < 16; ) {
1935
- if (b.props[S] !== this.props[S])
1931
+ for (var _ = 0; _ < 16; ) {
1932
+ if (b.props[_] !== this.props[_])
1936
1933
  return !1;
1937
- S += 1;
1934
+ _ += 1;
1938
1935
  }
1939
1936
  return !0;
1940
1937
  }
1941
1938
  function u(b) {
1942
- var S;
1943
- for (S = 0; S < 16; S += 1)
1944
- b.props[S] = this.props[S];
1939
+ var _;
1940
+ for (_ = 0; _ < 16; _ += 1)
1941
+ b.props[_] = this.props[_];
1945
1942
  return b;
1946
1943
  }
1947
1944
  function v(b) {
1948
- var S;
1949
- for (S = 0; S < 16; S += 1)
1950
- this.props[S] = b[S];
1945
+ var _;
1946
+ for (_ = 0; _ < 16; _ += 1)
1947
+ this.props[_] = b[_];
1951
1948
  }
1952
- function E(b, S, F) {
1949
+ function E(b, _, F) {
1953
1950
  return {
1954
- x: b * this.props[0] + S * this.props[4] + F * this.props[8] + this.props[12],
1955
- y: b * this.props[1] + S * this.props[5] + F * this.props[9] + this.props[13],
1956
- z: b * this.props[2] + S * this.props[6] + F * this.props[10] + this.props[14]
1951
+ x: b * this.props[0] + _ * this.props[4] + F * this.props[8] + this.props[12],
1952
+ y: b * this.props[1] + _ * this.props[5] + F * this.props[9] + this.props[13],
1953
+ z: b * this.props[2] + _ * this.props[6] + F * this.props[10] + this.props[14]
1957
1954
  };
1958
1955
  }
1959
- function k(b, S, F) {
1960
- return b * this.props[0] + S * this.props[4] + F * this.props[8] + this.props[12];
1956
+ function k(b, _, F) {
1957
+ return b * this.props[0] + _ * this.props[4] + F * this.props[8] + this.props[12];
1961
1958
  }
1962
- function T(b, S, F) {
1963
- return b * this.props[1] + S * this.props[5] + F * this.props[9] + this.props[13];
1959
+ function T(b, _, F) {
1960
+ return b * this.props[1] + _ * this.props[5] + F * this.props[9] + this.props[13];
1964
1961
  }
1965
- function A(b, S, F) {
1966
- return b * this.props[2] + S * this.props[6] + F * this.props[10] + this.props[14];
1962
+ function A(b, _, F) {
1963
+ return b * this.props[2] + _ * this.props[6] + F * this.props[10] + this.props[14];
1967
1964
  }
1968
1965
  function L() {
1969
- var b = this.props[0] * this.props[5] - this.props[1] * this.props[4], S = this.props[5] / b, F = -this.props[1] / b, M = -this.props[4] / b, V = this.props[0] / b, G = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / b, U = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / b, q = new Matrix();
1970
- return q.props[0] = S, q.props[1] = F, q.props[4] = M, q.props[5] = V, q.props[12] = G, q.props[13] = U, q;
1966
+ var b = this.props[0] * this.props[5] - this.props[1] * this.props[4], _ = this.props[5] / b, F = -this.props[1] / b, M = -this.props[4] / b, O = this.props[0] / b, G = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / b, Y = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / b, q = new Matrix();
1967
+ return q.props[0] = _, q.props[1] = F, q.props[4] = M, q.props[5] = O, q.props[12] = G, q.props[13] = Y, q;
1971
1968
  }
1972
- function $(b) {
1973
- var S = this.getInverseMatrix();
1974
- return S.applyToPointArray(b[0], b[1], b[2] || 0);
1969
+ function H(b) {
1970
+ var _ = this.getInverseMatrix();
1971
+ return _.applyToPointArray(b[0], b[1], b[2] || 0);
1975
1972
  }
1976
- function O(b) {
1977
- var S, F = b.length, M = [];
1978
- for (S = 0; S < F; S += 1)
1979
- M[S] = $(b[S]);
1973
+ function B(b) {
1974
+ var _, F = b.length, M = [];
1975
+ for (_ = 0; _ < F; _ += 1)
1976
+ M[_] = H(b[_]);
1980
1977
  return M;
1981
1978
  }
1982
- function D(b, S, F) {
1979
+ function D(b, _, F) {
1983
1980
  var M = createTypedArray("float32", 6);
1984
1981
  if (this.isIdentity())
1985
- M[0] = b[0], M[1] = b[1], M[2] = S[0], M[3] = S[1], M[4] = F[0], M[5] = F[1];
1982
+ M[0] = b[0], M[1] = b[1], M[2] = _[0], M[3] = _[1], M[4] = F[0], M[5] = F[1];
1986
1983
  else {
1987
- var V = this.props[0], G = this.props[1], U = this.props[4], q = this.props[5], Z = this.props[12], J = this.props[13];
1988
- M[0] = b[0] * V + b[1] * U + Z, M[1] = b[0] * G + b[1] * q + J, M[2] = S[0] * V + S[1] * U + Z, M[3] = S[0] * G + S[1] * q + J, M[4] = F[0] * V + F[1] * U + Z, M[5] = F[0] * G + F[1] * q + J;
1984
+ var O = this.props[0], G = this.props[1], Y = this.props[4], q = this.props[5], Z = this.props[12], J = this.props[13];
1985
+ M[0] = b[0] * O + b[1] * Y + Z, M[1] = b[0] * G + b[1] * q + J, M[2] = _[0] * O + _[1] * Y + Z, M[3] = _[0] * G + _[1] * q + J, M[4] = F[0] * O + F[1] * Y + Z, M[5] = F[0] * G + F[1] * q + J;
1989
1986
  }
1990
1987
  return M;
1991
1988
  }
1992
- function z(b, S, F) {
1989
+ function z(b, _, F) {
1993
1990
  var M;
1994
- return this.isIdentity() ? M = [b, S, F] : M = [b * this.props[0] + S * this.props[4] + F * this.props[8] + this.props[12], b * this.props[1] + S * this.props[5] + F * this.props[9] + this.props[13], b * this.props[2] + S * this.props[6] + F * this.props[10] + this.props[14]], M;
1991
+ return this.isIdentity() ? M = [b, _, F] : M = [b * this.props[0] + _ * this.props[4] + F * this.props[8] + this.props[12], b * this.props[1] + _ * this.props[5] + F * this.props[9] + this.props[13], b * this.props[2] + _ * this.props[6] + F * this.props[10] + this.props[14]], M;
1995
1992
  }
1996
- function N(b, S) {
1993
+ function N(b, _) {
1997
1994
  if (this.isIdentity())
1998
- return b + "," + S;
1995
+ return b + "," + _;
1999
1996
  var F = this.props;
2000
- return Math.round((b * F[0] + S * F[4] + F[12]) * 100) / 100 + "," + Math.round((b * F[1] + S * F[5] + F[13]) * 100) / 100;
1997
+ return Math.round((b * F[0] + _ * F[4] + F[12]) * 100) / 100 + "," + Math.round((b * F[1] + _ * F[5] + F[13]) * 100) / 100;
2001
1998
  }
2002
1999
  function R() {
2003
- for (var b = 0, S = this.props, F = "matrix3d(", M = 1e4; b < 16; )
2004
- F += i(S[b] * M) / M, F += b === 15 ? ")" : ",", b += 1;
2000
+ for (var b = 0, _ = this.props, F = "matrix3d(", M = 1e4; b < 16; )
2001
+ F += i(_[b] * M) / M, F += b === 15 ? ")" : ",", b += 1;
2005
2002
  return F;
2006
2003
  }
2007
2004
  function P(b) {
2008
- var S = 1e4;
2009
- return b < 1e-6 && b > 0 || b > -1e-6 && b < 0 ? i(b * S) / S : b;
2005
+ var _ = 1e4;
2006
+ return b < 1e-6 && b > 0 || b > -1e-6 && b < 0 ? i(b * _) / _ : b;
2010
2007
  }
2011
2008
  function w() {
2012
- var b = this.props, S = P(b[0]), F = P(b[1]), M = P(b[4]), V = P(b[5]), G = P(b[12]), U = P(b[13]);
2013
- return "matrix(" + S + "," + F + "," + M + "," + V + "," + G + "," + U + ")";
2009
+ var b = this.props, _ = P(b[0]), F = P(b[1]), M = P(b[4]), O = P(b[5]), G = P(b[12]), Y = P(b[13]);
2010
+ return "matrix(" + _ + "," + F + "," + M + "," + O + "," + G + "," + Y + ")";
2014
2011
  }
2015
2012
  return function() {
2016
- this.reset = s, this.rotate = n, this.rotateX = a, this.rotateY = o, this.rotateZ = l, this.skew = c, this.skewFromAxis = _, this.shear = f, this.scale = p, this.setTransform = x, this.translate = y, this.transform = m, this.multiply = C, this.applyToPoint = E, this.applyToX = k, this.applyToY = T, this.applyToZ = A, this.applyToPointArray = z, this.applyToTriplePoints = D, this.applyToPointStringified = N, this.toCSS = R, this.to2dCSS = w, this.clone = u, this.cloneFromProps = v, this.equals = g, this.inversePoints = O, this.inversePoint = $, this.getInverseMatrix = L, this._t = this.transform, this.isIdentity = d, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
2013
+ this.reset = s, this.rotate = n, this.rotateX = a, this.rotateY = o, this.rotateZ = l, this.skew = c, this.skewFromAxis = S, this.shear = f, this.scale = p, this.setTransform = x, this.translate = y, this.transform = m, this.multiply = C, this.applyToPoint = E, this.applyToX = k, this.applyToY = T, this.applyToZ = A, this.applyToPointArray = z, this.applyToTriplePoints = D, this.applyToPointStringified = N, this.toCSS = R, this.to2dCSS = w, this.clone = u, this.cloneFromProps = v, this.equals = g, this.inversePoints = B, this.inversePoint = H, this.getInverseMatrix = L, this._t = this.transform, this.isIdentity = d, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
2017
2014
  };
2018
2015
  }();
2019
2016
  function _typeof$3(e) {
@@ -2152,8 +2149,8 @@ function requireLottie() {
2152
2149
  var a = [], o, l = n.length, f;
2153
2150
  for (o = 0; o < l; o += 1)
2154
2151
  if (f = n[o], !(f.e * s < i || f.s * s > i + r)) {
2155
- var c, _;
2156
- f.s * s <= i ? c = 0 : c = (f.s * s - i) / r, f.e * s >= i + r ? _ = 1 : _ = (f.e * s - i) / r, a.push([c, _]);
2152
+ var c, S;
2153
+ f.s * s <= i ? c = 0 : c = (f.s * s - i) / r, f.e * s >= i + r ? S = 1 : S = (f.e * s - i) / r, a.push([c, S]);
2157
2154
  }
2158
2155
  return a.length || a.push([0, 0]), a;
2159
2156
  }, TrimModifier.prototype.releasePathsData = function(e) {
@@ -2172,7 +2169,7 @@ function requireLottie() {
2172
2169
  t = Math.round(t * 1e4) * 1e-4, r = Math.round(r * 1e4) * 1e-4, this.sValue = t, this.eValue = r;
2173
2170
  } else
2174
2171
  t = this.sValue, r = this.eValue;
2175
- var n, a, o = this.shapes.length, l, f, c, _, p, x = 0;
2172
+ var n, a, o = this.shapes.length, l, f, c, S, p, x = 0;
2176
2173
  if (r === t)
2177
2174
  for (a = 0; a < o; a += 1)
2178
2175
  this.shapes[a].localShapeCollection.releaseShapes(), this.shapes[a].shape._mdf = !0, this.shapes[a].shape.paths = this.shapes[a].localShapeCollection, this._mdf && (this.shapes[a].pathsData.length = 0);
@@ -2190,7 +2187,7 @@ function requireLottie() {
2190
2187
  p = m.totalShapeLength;
2191
2188
  else {
2192
2189
  for (c = this.releasePathsData(m.pathsData), l = 0; l < f; l += 1)
2193
- _ = bez.getSegmentsLength(n.shapes[l]), c.push(_), p += _.totalLength;
2190
+ S = bez.getSegmentsLength(n.shapes[l]), c.push(S), p += S.totalLength;
2194
2191
  m.totalShapeLength = p, m.pathsData = c;
2195
2192
  }
2196
2193
  x += p, m.shape._mdf = !0;
@@ -2237,8 +2234,8 @@ function requireLottie() {
2237
2234
  }, TrimModifier.prototype.addSegmentFromArray = function(e, t, r, i) {
2238
2235
  t.setXYAt(e[1], e[5], "o", r), t.setXYAt(e[2], e[6], "i", r + 1), i && t.setXYAt(e[0], e[4], "v", r), t.setXYAt(e[3], e[7], "v", r + 1);
2239
2236
  }, TrimModifier.prototype.addShapes = function(e, t, r) {
2240
- var i = e.pathsData, s = e.shape.paths.shapes, n, a = e.shape.paths._length, o, l, f = 0, c, _, p, x, y = [], m, C = !0;
2241
- for (r ? (_ = r._length, m = r._length) : (r = shapePool.newElement(), _ = 0, m = 0), y.push(r), n = 0; n < a; n += 1) {
2237
+ var i = e.pathsData, s = e.shape.paths.shapes, n, a = e.shape.paths._length, o, l, f = 0, c, S, p, x, y = [], m, C = !0;
2238
+ for (r ? (S = r._length, m = r._length) : (r = shapePool.newElement(), S = 0, m = 0), y.push(r), n = 0; n < a; n += 1) {
2242
2239
  for (p = i[n].lengths, r.c = s[n].c, l = s[n].c ? p.length : p.length + 1, o = 1; o < l; o += 1)
2243
2240
  if (c = p[o - 1], f + c.addedLength < t.s)
2244
2241
  f += c.addedLength, r.c = !1;
@@ -2246,18 +2243,18 @@ function requireLottie() {
2246
2243
  r.c = !1;
2247
2244
  break;
2248
2245
  } else
2249
- t.s <= f && t.e >= f + c.addedLength ? (this.addSegment(s[n].v[o - 1], s[n].o[o - 1], s[n].i[o], s[n].v[o], r, _, C), C = !1) : (x = bez.getNewSegment(s[n].v[o - 1], s[n].v[o], s[n].o[o - 1], s[n].i[o], (t.s - f) / c.addedLength, (t.e - f) / c.addedLength, p[o - 1]), this.addSegmentFromArray(x, r, _, C), C = !1, r.c = !1), f += c.addedLength, _ += 1;
2246
+ t.s <= f && t.e >= f + c.addedLength ? (this.addSegment(s[n].v[o - 1], s[n].o[o - 1], s[n].i[o], s[n].v[o], r, S, C), C = !1) : (x = bez.getNewSegment(s[n].v[o - 1], s[n].v[o], s[n].o[o - 1], s[n].i[o], (t.s - f) / c.addedLength, (t.e - f) / c.addedLength, p[o - 1]), this.addSegmentFromArray(x, r, S, C), C = !1, r.c = !1), f += c.addedLength, S += 1;
2250
2247
  if (s[n].c && p.length) {
2251
2248
  if (c = p[o - 1], f <= t.e) {
2252
2249
  var d = p[o - 1].addedLength;
2253
- t.s <= f && t.e >= f + d ? (this.addSegment(s[n].v[o - 1], s[n].o[o - 1], s[n].i[0], s[n].v[0], r, _, C), C = !1) : (x = bez.getNewSegment(s[n].v[o - 1], s[n].v[0], s[n].o[o - 1], s[n].i[0], (t.s - f) / d, (t.e - f) / d, p[o - 1]), this.addSegmentFromArray(x, r, _, C), C = !1, r.c = !1);
2250
+ t.s <= f && t.e >= f + d ? (this.addSegment(s[n].v[o - 1], s[n].o[o - 1], s[n].i[0], s[n].v[0], r, S, C), C = !1) : (x = bez.getNewSegment(s[n].v[o - 1], s[n].v[0], s[n].o[o - 1], s[n].i[0], (t.s - f) / d, (t.e - f) / d, p[o - 1]), this.addSegmentFromArray(x, r, S, C), C = !1, r.c = !1);
2254
2251
  } else
2255
2252
  r.c = !1;
2256
- f += c.addedLength, _ += 1;
2253
+ f += c.addedLength, S += 1;
2257
2254
  }
2258
2255
  if (r._length && (r.setXYAt(r.v[m][0], r.v[m][1], "i", m), r.setXYAt(r.v[r._length - 1][0], r.v[r._length - 1][1], "o", r._length - 1)), f > t.e)
2259
2256
  break;
2260
- n < a - 1 && (r = shapePool.newElement(), C = !0, y.push(r), _ = 0);
2257
+ n < a - 1 && (r = shapePool.newElement(), C = !0, y.push(r), S = 0);
2261
2258
  }
2262
2259
  return y;
2263
2260
  };
@@ -2272,9 +2269,9 @@ function requireLottie() {
2272
2269
  i[0] /= s, i[1] /= s;
2273
2270
  var a = shapePool.newElement();
2274
2271
  a.c = e.c;
2275
- var o, l, f, c, _, p;
2272
+ var o, l, f, c, S, p;
2276
2273
  for (n = 0; n < s; n += 1)
2277
- o = e.v[n][0] + (i[0] - e.v[n][0]) * r, l = e.v[n][1] + (i[1] - e.v[n][1]) * r, f = e.o[n][0] + (i[0] - e.o[n][0]) * -r, c = e.o[n][1] + (i[1] - e.o[n][1]) * -r, _ = e.i[n][0] + (i[0] - e.i[n][0]) * -r, p = e.i[n][1] + (i[1] - e.i[n][1]) * -r, a.setTripleAt(o, l, f, c, _, p, n);
2274
+ o = e.v[n][0] + (i[0] - e.v[n][0]) * r, l = e.v[n][1] + (i[1] - e.v[n][1]) * r, f = e.o[n][0] + (i[0] - e.o[n][0]) * -r, c = e.o[n][1] + (i[1] - e.o[n][1]) * -r, S = e.i[n][0] + (i[0] - e.i[n][0]) * -r, p = e.i[n][1] + (i[1] - e.i[n][1]) * -r, a.setTripleAt(o, l, f, c, S, p, n);
2278
2275
  return a;
2279
2276
  }, PuckerAndBloatModifier.prototype.processShapes = function(e) {
2280
2277
  var t, r, i = this.shapes.length, s, n, a = this.amount.v;
@@ -2300,16 +2297,16 @@ function requireLottie() {
2300
2297
  if (this._isDirty && (this.precalculateMatrix(), this._isDirty = !1), this.iterateDynamicProperties(), this._mdf || l) {
2301
2298
  var f;
2302
2299
  if (this.v.cloneFromProps(this.pre.props), this.appliedTransformations < 1 && this.v.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]), this.appliedTransformations < 2 && this.v.scale(this.s.v[0], this.s.v[1], this.s.v[2]), this.sk && this.appliedTransformations < 3 && this.v.skewFromAxis(-this.sk.v, this.sa.v), this.r && this.appliedTransformations < 4 ? this.v.rotate(-this.r.v) : !this.r && this.appliedTransformations < 4 && this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]), this.autoOriented) {
2303
- var c, _;
2300
+ var c, S;
2304
2301
  if (f = this.elem.globalData.frameRate, this.p && this.p.keyframes && this.p.getValueAtTime)
2305
- this.p._caching.lastFrame + this.p.offsetTime <= this.p.keyframes[0].t ? (c = this.p.getValueAtTime((this.p.keyframes[0].t + 0.01) / f, 0), _ = this.p.getValueAtTime(this.p.keyframes[0].t / f, 0)) : this.p._caching.lastFrame + this.p.offsetTime >= this.p.keyframes[this.p.keyframes.length - 1].t ? (c = this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length - 1].t / f, 0), _ = this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length - 1].t - 0.05) / f, 0)) : (c = this.p.pv, _ = this.p.getValueAtTime((this.p._caching.lastFrame + this.p.offsetTime - 0.01) / f, this.p.offsetTime));
2302
+ this.p._caching.lastFrame + this.p.offsetTime <= this.p.keyframes[0].t ? (c = this.p.getValueAtTime((this.p.keyframes[0].t + 0.01) / f, 0), S = this.p.getValueAtTime(this.p.keyframes[0].t / f, 0)) : this.p._caching.lastFrame + this.p.offsetTime >= this.p.keyframes[this.p.keyframes.length - 1].t ? (c = this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length - 1].t / f, 0), S = this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length - 1].t - 0.05) / f, 0)) : (c = this.p.pv, S = this.p.getValueAtTime((this.p._caching.lastFrame + this.p.offsetTime - 0.01) / f, this.p.offsetTime));
2306
2303
  else if (this.px && this.px.keyframes && this.py.keyframes && this.px.getValueAtTime && this.py.getValueAtTime) {
2307
- c = [], _ = [];
2304
+ c = [], S = [];
2308
2305
  var p = this.px, x = this.py;
2309
- p._caching.lastFrame + p.offsetTime <= p.keyframes[0].t ? (c[0] = p.getValueAtTime((p.keyframes[0].t + 0.01) / f, 0), c[1] = x.getValueAtTime((x.keyframes[0].t + 0.01) / f, 0), _[0] = p.getValueAtTime(p.keyframes[0].t / f, 0), _[1] = x.getValueAtTime(x.keyframes[0].t / f, 0)) : p._caching.lastFrame + p.offsetTime >= p.keyframes[p.keyframes.length - 1].t ? (c[0] = p.getValueAtTime(p.keyframes[p.keyframes.length - 1].t / f, 0), c[1] = x.getValueAtTime(x.keyframes[x.keyframes.length - 1].t / f, 0), _[0] = p.getValueAtTime((p.keyframes[p.keyframes.length - 1].t - 0.01) / f, 0), _[1] = x.getValueAtTime((x.keyframes[x.keyframes.length - 1].t - 0.01) / f, 0)) : (c = [p.pv, x.pv], _[0] = p.getValueAtTime((p._caching.lastFrame + p.offsetTime - 0.01) / f, p.offsetTime), _[1] = x.getValueAtTime((x._caching.lastFrame + x.offsetTime - 0.01) / f, x.offsetTime));
2306
+ p._caching.lastFrame + p.offsetTime <= p.keyframes[0].t ? (c[0] = p.getValueAtTime((p.keyframes[0].t + 0.01) / f, 0), c[1] = x.getValueAtTime((x.keyframes[0].t + 0.01) / f, 0), S[0] = p.getValueAtTime(p.keyframes[0].t / f, 0), S[1] = x.getValueAtTime(x.keyframes[0].t / f, 0)) : p._caching.lastFrame + p.offsetTime >= p.keyframes[p.keyframes.length - 1].t ? (c[0] = p.getValueAtTime(p.keyframes[p.keyframes.length - 1].t / f, 0), c[1] = x.getValueAtTime(x.keyframes[x.keyframes.length - 1].t / f, 0), S[0] = p.getValueAtTime((p.keyframes[p.keyframes.length - 1].t - 0.01) / f, 0), S[1] = x.getValueAtTime((x.keyframes[x.keyframes.length - 1].t - 0.01) / f, 0)) : (c = [p.pv, x.pv], S[0] = p.getValueAtTime((p._caching.lastFrame + p.offsetTime - 0.01) / f, p.offsetTime), S[1] = x.getValueAtTime((x._caching.lastFrame + x.offsetTime - 0.01) / f, x.offsetTime));
2310
2307
  } else
2311
- _ = e, c = _;
2312
- this.v.rotate(-Math.atan2(c[1] - _[1], c[0] - _[0]));
2308
+ S = e, c = S;
2309
+ this.v.rotate(-Math.atan2(c[1] - S[1], c[0] - S[0]));
2313
2310
  }
2314
2311
  this.data.p && this.data.p.s ? this.data.p.z ? this.v.translate(this.px.v, this.py.v, -this.pz.v) : this.v.translate(this.px.v, this.py.v, 0) : this.v.translate(this.p.v[0], this.p.v[1], -this.p.v[2]);
2315
2312
  }
@@ -2342,9 +2339,9 @@ function requireLottie() {
2342
2339
  k: [0, 0, 0]
2343
2340
  }, 1, 0, this), f.rx) {
2344
2341
  if (this.rx = PropertyFactory.getProp(l, f.rx, 0, degToRads, this), this.ry = PropertyFactory.getProp(l, f.ry, 0, degToRads, this), this.rz = PropertyFactory.getProp(l, f.rz, 0, degToRads, this), f.or.k[0].ti) {
2345
- var _, p = f.or.k.length;
2346
- for (_ = 0; _ < p; _ += 1)
2347
- f.or.k[_].to = null, f.or.k[_].ti = null;
2342
+ var S, p = f.or.k.length;
2343
+ for (S = 0; S < p; S += 1)
2344
+ f.or.k[S].to = null, f.or.k[S].ti = null;
2348
2345
  }
2349
2346
  this.or = PropertyFactory.getProp(l, f.or, 1, degToRads, this), this.or.sh = !0;
2350
2347
  } else
@@ -2459,8 +2456,8 @@ function requireLottie() {
2459
2456
  var f;
2460
2457
  for (i = 0; i <= this._groups.length - 1; i += 1) {
2461
2458
  if (f = n < o, this._groups[i]._render = f, this.changeGroupRender(this._groups[i].it, f), !f) {
2462
- var c = this.elemsData[i].it, _ = c[c.length - 1];
2463
- _.transform.op.v !== 0 ? (_.transform.op._mdf = !0, _.transform.op.v = 0) : _.transform.op._mdf = !1;
2459
+ var c = this.elemsData[i].it, S = c[c.length - 1];
2460
+ S.transform.op.v !== 0 ? (S.transform.op._mdf = !0, S.transform.op.v = 0) : S.transform.op._mdf = !1;
2464
2461
  }
2465
2462
  n += 1;
2466
2463
  }
@@ -2501,9 +2498,9 @@ function requireLottie() {
2501
2498
  }, RoundCornersModifier.prototype.processPath = function(e, t) {
2502
2499
  var r = shapePool.newElement();
2503
2500
  r.c = e.c;
2504
- var i, s = e._length, n, a, o, l, f, c, _ = 0, p, x, y, m, C, d;
2501
+ var i, s = e._length, n, a, o, l, f, c, S = 0, p, x, y, m, C, d;
2505
2502
  for (i = 0; i < s; i += 1)
2506
- n = e.v[i], o = e.o[i], a = e.i[i], n[0] === o[0] && n[1] === o[1] && n[0] === a[0] && n[1] === a[1] ? (i === 0 || i === s - 1) && !e.c ? (r.setTripleAt(n[0], n[1], o[0], o[1], a[0], a[1], _), _ += 1) : (i === 0 ? l = e.v[s - 1] : l = e.v[i - 1], f = Math.sqrt(Math.pow(n[0] - l[0], 2) + Math.pow(n[1] - l[1], 2)), c = f ? Math.min(f / 2, t) / f : 0, C = n[0] + (l[0] - n[0]) * c, p = C, d = n[1] - (n[1] - l[1]) * c, x = d, y = p - (p - n[0]) * roundCorner, m = x - (x - n[1]) * roundCorner, r.setTripleAt(p, x, y, m, C, d, _), _ += 1, i === s - 1 ? l = e.v[0] : l = e.v[i + 1], f = Math.sqrt(Math.pow(n[0] - l[0], 2) + Math.pow(n[1] - l[1], 2)), c = f ? Math.min(f / 2, t) / f : 0, y = n[0] + (l[0] - n[0]) * c, p = y, m = n[1] + (l[1] - n[1]) * c, x = m, C = p - (p - n[0]) * roundCorner, d = x - (x - n[1]) * roundCorner, r.setTripleAt(p, x, y, m, C, d, _), _ += 1) : (r.setTripleAt(e.v[i][0], e.v[i][1], e.o[i][0], e.o[i][1], e.i[i][0], e.i[i][1], _), _ += 1);
2503
+ n = e.v[i], o = e.o[i], a = e.i[i], n[0] === o[0] && n[1] === o[1] && n[0] === a[0] && n[1] === a[1] ? (i === 0 || i === s - 1) && !e.c ? (r.setTripleAt(n[0], n[1], o[0], o[1], a[0], a[1], S), S += 1) : (i === 0 ? l = e.v[s - 1] : l = e.v[i - 1], f = Math.sqrt(Math.pow(n[0] - l[0], 2) + Math.pow(n[1] - l[1], 2)), c = f ? Math.min(f / 2, t) / f : 0, C = n[0] + (l[0] - n[0]) * c, p = C, d = n[1] - (n[1] - l[1]) * c, x = d, y = p - (p - n[0]) * roundCorner, m = x - (x - n[1]) * roundCorner, r.setTripleAt(p, x, y, m, C, d, S), S += 1, i === s - 1 ? l = e.v[0] : l = e.v[i + 1], f = Math.sqrt(Math.pow(n[0] - l[0], 2) + Math.pow(n[1] - l[1], 2)), c = f ? Math.min(f / 2, t) / f : 0, y = n[0] + (l[0] - n[0]) * c, p = y, m = n[1] + (l[1] - n[1]) * c, x = m, C = p - (p - n[0]) * roundCorner, d = x - (x - n[1]) * roundCorner, r.setTripleAt(p, x, y, m, C, d, S), S += 1) : (r.setTripleAt(e.v[i][0], e.v[i][1], e.o[i][0], e.o[i][1], e.i[i][0], e.i[i][1], S), S += 1);
2507
2504
  return r;
2508
2505
  }, RoundCornersModifier.prototype.processShapes = function(e) {
2509
2506
  var t, r, i = this.shapes.length, s, n, a = this.rd.v;
@@ -2684,8 +2681,8 @@ function requireLottie() {
2684
2681
  return Math.atan2(0, 1) - Math.atan2(a[1], a[0]);
2685
2682
  }
2686
2683
  function zigZagCorner(e, t, r, i, s, n, a) {
2687
- var o = getProjectingAngle(t, r), l = t.v[r % t._length], f = t.v[r === 0 ? t._length - 1 : r - 1], c = t.v[(r + 1) % t._length], _ = n === 2 ? Math.sqrt(Math.pow(l[0] - f[0], 2) + Math.pow(l[1] - f[1], 2)) : 0, p = n === 2 ? Math.sqrt(Math.pow(l[0] - c[0], 2) + Math.pow(l[1] - c[1], 2)) : 0;
2688
- setPoint(e, t.v[r % t._length], o, a, i, p / ((s + 1) * 2), _ / ((s + 1) * 2));
2684
+ var o = getProjectingAngle(t, r), l = t.v[r % t._length], f = t.v[r === 0 ? t._length - 1 : r - 1], c = t.v[(r + 1) % t._length], S = n === 2 ? Math.sqrt(Math.pow(l[0] - f[0], 2) + Math.pow(l[1] - f[1], 2)) : 0, p = n === 2 ? Math.sqrt(Math.pow(l[0] - c[0], 2) + Math.pow(l[1] - c[1], 2)) : 0;
2685
+ setPoint(e, t.v[r % t._length], o, a, i, p / ((s + 1) * 2), S / ((s + 1) * 2));
2689
2686
  }
2690
2687
  function zigZagSegment(e, t, r, i, s, n) {
2691
2688
  for (var a = 0; a < i; a += 1) {
@@ -2731,8 +2728,8 @@ function requireLottie() {
2731
2728
  var n = t.points[3], a = r.points[0];
2732
2729
  if (i === 3 || pointEqual(n, a)) return n;
2733
2730
  if (i === 2) {
2734
- var o = -t.tangentAngle(1), l = -r.tangentAngle(0) + Math.PI, f = lineIntersection(n, polarOffset(n, o + Math.PI / 2, 100), a, polarOffset(a, o + Math.PI / 2, 100)), c = f ? pointDistance(f, n) : pointDistance(n, a) / 2, _ = polarOffset(n, o, 2 * c * roundCorner);
2735
- return e.setXYAt(_[0], _[1], "o", e.length() - 1), _ = polarOffset(a, l, 2 * c * roundCorner), e.setTripleAt(a[0], a[1], a[0], a[1], _[0], _[1], e.length()), a;
2731
+ var o = -t.tangentAngle(1), l = -r.tangentAngle(0) + Math.PI, f = lineIntersection(n, polarOffset(n, o + Math.PI / 2, 100), a, polarOffset(a, o + Math.PI / 2, 100)), c = f ? pointDistance(f, n) : pointDistance(n, a) / 2, S = polarOffset(n, o, 2 * c * roundCorner);
2732
+ return e.setXYAt(S[0], S[1], "o", e.length() - 1), S = polarOffset(a, l, 2 * c * roundCorner), e.setTripleAt(a[0], a[1], a[0], a[1], S[0], S[1], e.length()), a;
2736
2733
  }
2737
2734
  var p = pointEqual(n, t.points[2]) ? t.points[0] : t.points[2], x = pointEqual(a, r.points[1]) ? r.points[3] : r.points[1], y = lineIntersection(p, n, a, x);
2738
2735
  return y && pointDistance(y, n) < s ? (e.setTripleAt(y[0], y[1], y[0], y[1], y[0], y[1], e.length()), y) : n;
@@ -2776,13 +2773,13 @@ function requireLottie() {
2776
2773
  for (a = n - 1; a >= 0; a -= 1)
2777
2774
  l = PolynomialBezier.shapeSegmentInverted(e, a), f.push(offsetSegmentSplit(l, t));
2778
2775
  f = pruneIntersections(f);
2779
- var c = null, _ = null;
2776
+ var c = null, S = null;
2780
2777
  for (a = 0; a < f.length; a += 1) {
2781
2778
  var p = f[a];
2782
- for (_ && (c = joinLines(s, _, p[0], r, i)), _ = p[p.length - 1], o = 0; o < p.length; o += 1)
2779
+ for (S && (c = joinLines(s, S, p[0], r, i)), S = p[p.length - 1], o = 0; o < p.length; o += 1)
2783
2780
  l = p[o], c && pointEqual(l.points[0], c) ? s.setXYAt(l.points[1][0], l.points[1][1], "o", s.length() - 1) : s.setTripleAt(l.points[0][0], l.points[0][1], l.points[1][0], l.points[1][1], l.points[0][0], l.points[0][1], s.length()), s.setTripleAt(l.points[3][0], l.points[3][1], l.points[3][0], l.points[3][1], l.points[2][0], l.points[2][1], s.length()), c = l.points[3];
2784
2781
  }
2785
- return f.length && joinLines(s, _, f[0][0], r, i), s;
2782
+ return f.length && joinLines(s, S, f[0][0], r, i), s;
2786
2783
  }, OffsetPathModifier.prototype.processShapes = function(e) {
2787
2784
  var t, r, i = this.shapes.length, s, n, a = this.amount.v, o = this.miterLimit.v, l = this.lineJoin;
2788
2785
  if (a !== 0) {
@@ -2835,42 +2832,42 @@ function requireLottie() {
2835
2832
  }
2836
2833
  }, r = [];
2837
2834
  r = r.concat([2304, 2305, 2306, 2307, 2362, 2363, 2364, 2364, 2366, 2367, 2368, 2369, 2370, 2371, 2372, 2373, 2374, 2375, 2376, 2377, 2378, 2379, 2380, 2381, 2382, 2383, 2387, 2388, 2389, 2390, 2391, 2402, 2403]);
2838
- var i = 127988, s = 917631, n = 917601, a = 917626, o = 65039, l = 8205, f = 127462, c = 127487, _ = ["d83cdffb", "d83cdffc", "d83cdffd", "d83cdffe", "d83cdfff"];
2835
+ var i = 127988, s = 917631, n = 917601, a = 917626, o = 65039, l = 8205, f = 127462, c = 127487, S = ["d83cdffb", "d83cdffc", "d83cdffd", "d83cdffe", "d83cdfff"];
2839
2836
  function p(P) {
2840
- var w = P.split(","), b, S = w.length, F = [];
2841
- for (b = 0; b < S; b += 1)
2837
+ var w = P.split(","), b, _ = w.length, F = [];
2838
+ for (b = 0; b < _; b += 1)
2842
2839
  w[b] !== "sans-serif" && w[b] !== "monospace" && F.push(w[b]);
2843
2840
  return F.join(",");
2844
2841
  }
2845
2842
  function x(P, w) {
2846
2843
  var b = createTag("span");
2847
2844
  b.setAttribute("aria-hidden", !0), b.style.fontFamily = w;
2848
- var S = createTag("span");
2849
- S.innerText = "giItT1WQy@!-/#", b.style.position = "absolute", b.style.left = "-10000px", b.style.top = "-10000px", b.style.fontSize = "300px", b.style.fontVariant = "normal", b.style.fontStyle = "normal", b.style.fontWeight = "normal", b.style.letterSpacing = "0", b.appendChild(S), document.body.appendChild(b);
2850
- var F = S.offsetWidth;
2851
- return S.style.fontFamily = p(P) + ", " + w, {
2852
- node: S,
2845
+ var _ = createTag("span");
2846
+ _.innerText = "giItT1WQy@!-/#", b.style.position = "absolute", b.style.left = "-10000px", b.style.top = "-10000px", b.style.fontSize = "300px", b.style.fontVariant = "normal", b.style.fontStyle = "normal", b.style.fontWeight = "normal", b.style.letterSpacing = "0", b.appendChild(_), document.body.appendChild(b);
2847
+ var F = _.offsetWidth;
2848
+ return _.style.fontFamily = p(P) + ", " + w, {
2849
+ node: _,
2853
2850
  w: F,
2854
2851
  parent: b
2855
2852
  };
2856
2853
  }
2857
2854
  function y() {
2858
- var P, w = this.fonts.length, b, S, F = w;
2855
+ var P, w = this.fonts.length, b, _, F = w;
2859
2856
  for (P = 0; P < w; P += 1)
2860
- this.fonts[P].loaded ? F -= 1 : this.fonts[P].fOrigin === "n" || this.fonts[P].origin === 0 ? this.fonts[P].loaded = !0 : (b = this.fonts[P].monoCase.node, S = this.fonts[P].monoCase.w, b.offsetWidth !== S ? (F -= 1, this.fonts[P].loaded = !0) : (b = this.fonts[P].sansCase.node, S = this.fonts[P].sansCase.w, b.offsetWidth !== S && (F -= 1, this.fonts[P].loaded = !0)), this.fonts[P].loaded && (this.fonts[P].sansCase.parent.parentNode.removeChild(this.fonts[P].sansCase.parent), this.fonts[P].monoCase.parent.parentNode.removeChild(this.fonts[P].monoCase.parent)));
2857
+ this.fonts[P].loaded ? F -= 1 : this.fonts[P].fOrigin === "n" || this.fonts[P].origin === 0 ? this.fonts[P].loaded = !0 : (b = this.fonts[P].monoCase.node, _ = this.fonts[P].monoCase.w, b.offsetWidth !== _ ? (F -= 1, this.fonts[P].loaded = !0) : (b = this.fonts[P].sansCase.node, _ = this.fonts[P].sansCase.w, b.offsetWidth !== _ && (F -= 1, this.fonts[P].loaded = !0)), this.fonts[P].loaded && (this.fonts[P].sansCase.parent.parentNode.removeChild(this.fonts[P].sansCase.parent), this.fonts[P].monoCase.parent.parentNode.removeChild(this.fonts[P].monoCase.parent)));
2861
2858
  F !== 0 && Date.now() - this.initTime < e ? setTimeout(this.checkLoadedFontsBinded, 20) : setTimeout(this.setIsLoadedBinded, 10);
2862
2859
  }
2863
2860
  function m(P, w) {
2864
- var b = document.body && w ? "svg" : "canvas", S, F = getFontProperties(P);
2861
+ var b = document.body && w ? "svg" : "canvas", _, F = getFontProperties(P);
2865
2862
  if (b === "svg") {
2866
2863
  var M = createNS("text");
2867
- M.style.fontSize = "100px", M.setAttribute("font-family", P.fFamily), M.setAttribute("font-style", F.style), M.setAttribute("font-weight", F.weight), M.textContent = "1", P.fClass ? (M.style.fontFamily = "inherit", M.setAttribute("class", P.fClass)) : M.style.fontFamily = P.fFamily, w.appendChild(M), S = M;
2864
+ M.style.fontSize = "100px", M.setAttribute("font-family", P.fFamily), M.setAttribute("font-style", F.style), M.setAttribute("font-weight", F.weight), M.textContent = "1", P.fClass ? (M.style.fontFamily = "inherit", M.setAttribute("class", P.fClass)) : M.style.fontFamily = P.fFamily, w.appendChild(M), _ = M;
2868
2865
  } else {
2869
- var V = new OffscreenCanvas(500, 500).getContext("2d");
2870
- V.font = F.style + " " + F.weight + " 100px " + P.fFamily, S = V;
2866
+ var O = new OffscreenCanvas(500, 500).getContext("2d");
2867
+ O.font = F.style + " " + F.weight + " 100px " + P.fFamily, _ = O;
2871
2868
  }
2872
- function G(U) {
2873
- return b === "svg" ? (S.textContent = U, S.getComputedTextLength()) : S.measureText(U).width;
2869
+ function G(Y) {
2870
+ return b === "svg" ? (_.textContent = Y, _.getComputedTextLength()) : _.measureText(Y).width;
2874
2871
  }
2875
2872
  return {
2876
2873
  measureText: G
@@ -2891,65 +2888,65 @@ function requireLottie() {
2891
2888
  }), this.fonts = P.list;
2892
2889
  return;
2893
2890
  }
2894
- var b = P.list, S, F = b.length, M = F;
2895
- for (S = 0; S < F; S += 1) {
2896
- var V = !0, G, U;
2897
- if (b[S].loaded = !1, b[S].monoCase = x(b[S].fFamily, "monospace"), b[S].sansCase = x(b[S].fFamily, "sans-serif"), !b[S].fPath)
2898
- b[S].loaded = !0, M -= 1;
2899
- else if (b[S].fOrigin === "p" || b[S].origin === 3) {
2900
- if (G = document.querySelectorAll('style[f-forigin="p"][f-family="' + b[S].fFamily + '"], style[f-origin="3"][f-family="' + b[S].fFamily + '"]'), G.length > 0 && (V = !1), V) {
2891
+ var b = P.list, _, F = b.length, M = F;
2892
+ for (_ = 0; _ < F; _ += 1) {
2893
+ var O = !0, G, Y;
2894
+ if (b[_].loaded = !1, b[_].monoCase = x(b[_].fFamily, "monospace"), b[_].sansCase = x(b[_].fFamily, "sans-serif"), !b[_].fPath)
2895
+ b[_].loaded = !0, M -= 1;
2896
+ else if (b[_].fOrigin === "p" || b[_].origin === 3) {
2897
+ if (G = document.querySelectorAll('style[f-forigin="p"][f-family="' + b[_].fFamily + '"], style[f-origin="3"][f-family="' + b[_].fFamily + '"]'), G.length > 0 && (O = !1), O) {
2901
2898
  var q = createTag("style");
2902
- q.setAttribute("f-forigin", b[S].fOrigin), q.setAttribute("f-origin", b[S].origin), q.setAttribute("f-family", b[S].fFamily), q.type = "text/css", q.innerText = "@font-face {font-family: " + b[S].fFamily + "; font-style: normal; src: url('" + b[S].fPath + "');}", w.appendChild(q);
2899
+ q.setAttribute("f-forigin", b[_].fOrigin), q.setAttribute("f-origin", b[_].origin), q.setAttribute("f-family", b[_].fFamily), q.type = "text/css", q.innerText = "@font-face {font-family: " + b[_].fFamily + "; font-style: normal; src: url('" + b[_].fPath + "');}", w.appendChild(q);
2903
2900
  }
2904
- } else if (b[S].fOrigin === "g" || b[S].origin === 1) {
2905
- for (G = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'), U = 0; U < G.length; U += 1)
2906
- G[U].href.indexOf(b[S].fPath) !== -1 && (V = !1);
2907
- if (V) {
2901
+ } else if (b[_].fOrigin === "g" || b[_].origin === 1) {
2902
+ for (G = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'), Y = 0; Y < G.length; Y += 1)
2903
+ G[Y].href.indexOf(b[_].fPath) !== -1 && (O = !1);
2904
+ if (O) {
2908
2905
  var Z = createTag("link");
2909
- Z.setAttribute("f-forigin", b[S].fOrigin), Z.setAttribute("f-origin", b[S].origin), Z.type = "text/css", Z.rel = "stylesheet", Z.href = b[S].fPath, document.body.appendChild(Z);
2906
+ Z.setAttribute("f-forigin", b[_].fOrigin), Z.setAttribute("f-origin", b[_].origin), Z.type = "text/css", Z.rel = "stylesheet", Z.href = b[_].fPath, document.body.appendChild(Z);
2910
2907
  }
2911
- } else if (b[S].fOrigin === "t" || b[S].origin === 2) {
2912
- for (G = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'), U = 0; U < G.length; U += 1)
2913
- b[S].fPath === G[U].src && (V = !1);
2914
- if (V) {
2908
+ } else if (b[_].fOrigin === "t" || b[_].origin === 2) {
2909
+ for (G = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'), Y = 0; Y < G.length; Y += 1)
2910
+ b[_].fPath === G[Y].src && (O = !1);
2911
+ if (O) {
2915
2912
  var J = createTag("link");
2916
- J.setAttribute("f-forigin", b[S].fOrigin), J.setAttribute("f-origin", b[S].origin), J.setAttribute("rel", "stylesheet"), J.setAttribute("href", b[S].fPath), w.appendChild(J);
2913
+ J.setAttribute("f-forigin", b[_].fOrigin), J.setAttribute("f-origin", b[_].origin), J.setAttribute("rel", "stylesheet"), J.setAttribute("href", b[_].fPath), w.appendChild(J);
2917
2914
  }
2918
2915
  }
2919
- b[S].helper = m(b[S], w), b[S].cache = {}, this.fonts.push(b[S]);
2916
+ b[_].helper = m(b[_], w), b[_].cache = {}, this.fonts.push(b[_]);
2920
2917
  }
2921
2918
  M === 0 ? this.isLoaded = !0 : setTimeout(this.checkLoadedFonts.bind(this), 100);
2922
2919
  }
2923
2920
  function d(P) {
2924
2921
  if (P) {
2925
2922
  this.chars || (this.chars = []);
2926
- var w, b = P.length, S, F = this.chars.length, M;
2923
+ var w, b = P.length, _, F = this.chars.length, M;
2927
2924
  for (w = 0; w < b; w += 1) {
2928
- for (S = 0, M = !1; S < F; )
2929
- this.chars[S].style === P[w].style && this.chars[S].fFamily === P[w].fFamily && this.chars[S].ch === P[w].ch && (M = !0), S += 1;
2925
+ for (_ = 0, M = !1; _ < F; )
2926
+ this.chars[_].style === P[w].style && this.chars[_].fFamily === P[w].fFamily && this.chars[_].ch === P[w].ch && (M = !0), _ += 1;
2930
2927
  M || (this.chars.push(P[w]), F += 1);
2931
2928
  }
2932
2929
  }
2933
2930
  }
2934
2931
  function g(P, w, b) {
2935
- for (var S = 0, F = this.chars.length; S < F; ) {
2936
- if (this.chars[S].ch === P && this.chars[S].style === w && this.chars[S].fFamily === b)
2937
- return this.chars[S];
2938
- S += 1;
2932
+ for (var _ = 0, F = this.chars.length; _ < F; ) {
2933
+ if (this.chars[_].ch === P && this.chars[_].style === w && this.chars[_].fFamily === b)
2934
+ return this.chars[_];
2935
+ _ += 1;
2939
2936
  }
2940
2937
  return (typeof P == "string" && P.charCodeAt(0) !== 13 || !P) && console && console.warn && !this._warned && (this._warned = !0, console.warn("Missing character from exported characters list: ", P, w, b)), t;
2941
2938
  }
2942
2939
  function u(P, w, b) {
2943
- var S = this.getFontByName(w), F = P;
2944
- if (!S.cache[F]) {
2945
- var M = S.helper;
2940
+ var _ = this.getFontByName(w), F = P;
2941
+ if (!_.cache[F]) {
2942
+ var M = _.helper;
2946
2943
  if (P === " ") {
2947
- var V = M.measureText("|" + P + "|"), G = M.measureText("||");
2948
- S.cache[F] = (V - G) / 100;
2944
+ var O = M.measureText("|" + P + "|"), G = M.measureText("||");
2945
+ _.cache[F] = (O - G) / 100;
2949
2946
  } else
2950
- S.cache[F] = M.measureText(P) / 100;
2947
+ _.cache[F] = M.measureText(P) / 100;
2951
2948
  }
2952
- return S.cache[F] * b;
2949
+ return _.cache[F] * b;
2953
2950
  }
2954
2951
  function v(P) {
2955
2952
  for (var w = 0, b = this.fonts.length; w < b; ) {
@@ -2962,14 +2959,14 @@ function requireLottie() {
2962
2959
  function E(P) {
2963
2960
  var w = 0, b = P.charCodeAt(0);
2964
2961
  if (b >= 55296 && b <= 56319) {
2965
- var S = P.charCodeAt(1);
2966
- S >= 56320 && S <= 57343 && (w = (b - 55296) * 1024 + S - 56320 + 65536);
2962
+ var _ = P.charCodeAt(1);
2963
+ _ >= 56320 && _ <= 57343 && (w = (b - 55296) * 1024 + _ - 56320 + 65536);
2967
2964
  }
2968
2965
  return w;
2969
2966
  }
2970
2967
  function k(P, w) {
2971
2968
  var b = P.toString(16) + w.toString(16);
2972
- return _.indexOf(b) !== -1;
2969
+ return S.indexOf(b) !== -1;
2973
2970
  }
2974
2971
  function T(P) {
2975
2972
  return P === l;
@@ -2981,21 +2978,21 @@ function requireLottie() {
2981
2978
  var w = E(P);
2982
2979
  return w >= f && w <= c;
2983
2980
  }
2984
- function $(P) {
2981
+ function H(P) {
2985
2982
  return L(P.substr(0, 2)) && L(P.substr(2, 2));
2986
2983
  }
2987
- function O(P) {
2984
+ function B(P) {
2988
2985
  return r.indexOf(P) !== -1;
2989
2986
  }
2990
2987
  function D(P, w) {
2991
2988
  var b = E(P.substr(w, 2));
2992
2989
  if (b !== i)
2993
2990
  return !1;
2994
- var S = 0;
2995
- for (w += 2; S < 5; ) {
2991
+ var _ = 0;
2992
+ for (w += 2; _ < 5; ) {
2996
2993
  if (b = E(P.substr(w, 2)), b < n || b > a)
2997
2994
  return !1;
2998
- S += 1, w += 2;
2995
+ _ += 1, w += 2;
2999
2996
  }
3000
2997
  return E(P.substr(w, 2)) === s;
3001
2998
  }
@@ -3005,7 +3002,7 @@ function requireLottie() {
3005
3002
  var N = function() {
3006
3003
  this.fonts = [], this.chars = null, this.typekitLoaded = 0, this.isLoaded = !1, this._warned = !1, this.initTime = Date.now(), this.setIsLoadedBinded = this.setIsLoaded.bind(this), this.checkLoadedFontsBinded = this.checkLoadedFonts.bind(this);
3007
3004
  };
3008
- N.isModifier = k, N.isZeroWidthJoiner = T, N.isFlagEmoji = $, N.isRegionalCode = L, N.isCombinedCharacter = O, N.isRegionalFlag = D, N.isVariationSelector = A, N.BLACK_FLAG_CODE_POINT = i;
3005
+ N.isModifier = k, N.isZeroWidthJoiner = T, N.isFlagEmoji = H, N.isRegionalCode = L, N.isCombinedCharacter = B, N.isRegionalFlag = D, N.isVariationSelector = A, N.BLACK_FLAG_CODE_POINT = i;
3009
3006
  var R = {
3010
3007
  addChars: d,
3011
3008
  addFonts: C,
@@ -3472,7 +3469,7 @@ function requireLottie() {
3472
3469
  this.data = e, this.element = t, this.globalData = r, this.storedData = [], this.masksProperties = this.data.masksProperties || [], this.maskElement = null;
3473
3470
  var i = this.globalData.defs, s, n = this.masksProperties ? this.masksProperties.length : 0;
3474
3471
  this.viewData = createSizedArray(n), this.solidPath = "";
3475
- var a, o = this.masksProperties, l = 0, f = [], c, _, p = createElementID(), x, y, m, C, d = "clipPath", g = "clip-path";
3472
+ var a, o = this.masksProperties, l = 0, f = [], c, S, p = createElementID(), x, y, m, C, d = "clipPath", g = "clip-path";
3476
3473
  for (s = 0; s < n; s += 1)
3477
3474
  if ((o[s].mode !== "a" && o[s].mode !== "n" || o[s].inv || o[s].o.k !== 100 || o[s].o.x) && (d = "mask", g = "mask"), (o[s].mode === "s" || o[s].mode === "i") && l === 0 ? (x = createNS("rect"), x.setAttribute("fill", "#ffffff"), x.setAttribute("width", this.element.comp.data.w || 0), x.setAttribute("height", this.element.comp.data.h || 0), f.push(x)) : x = null, a = createNS("path"), o[s].mode === "n")
3478
3475
  this.viewData[s] = {
@@ -3493,9 +3490,9 @@ function requireLottie() {
3493
3490
  filterId: u,
3494
3491
  lastRadius: 0
3495
3492
  }, o[s].mode === "i") {
3496
- _ = f.length;
3493
+ S = f.length;
3497
3494
  var v = createNS("g");
3498
- for (c = 0; c < _; c += 1)
3495
+ for (c = 0; c < S; c += 1)
3499
3496
  v.appendChild(f[c]);
3500
3497
  var E = createNS("mask");
3501
3498
  E.setAttribute("mask-type", "alpha"), E.setAttribute("id", p + "_" + l), E.appendChild(a), i.appendChild(E), v.setAttribute("mask", "url(" + getLocationHref() + "#" + p + "_" + l + ")"), f.length = 0, f.push(v);
@@ -3640,8 +3637,8 @@ function requireLottie() {
3640
3637
  l.appendChild(f), i = createElementID(), s = filtersFactory.createFilter(i);
3641
3638
  var c = createNS("feComponentTransfer");
3642
3639
  c.setAttribute("in", "SourceGraphic"), s.appendChild(c);
3643
- var _ = createNS("feFuncA");
3644
- _.setAttribute("type", "table"), _.setAttribute("tableValues", "1.0 0.0"), c.appendChild(_), this.globalData.defs.appendChild(s);
3640
+ var S = createNS("feFuncA");
3641
+ S.setAttribute("type", "table"), S.setAttribute("tableValues", "1.0 0.0"), c.appendChild(S), this.globalData.defs.appendChild(s);
3645
3642
  var p = createNS("rect");
3646
3643
  p.setAttribute("width", this.comp.data.w), p.setAttribute("height", this.comp.data.h), p.setAttribute("x", "0"), p.setAttribute("y", "0"), p.setAttribute("fill", "#ffffff"), p.setAttribute("opacity", "0"), f.setAttribute("filter", "url(" + getLocationHref() + "#" + i + ")"), f.appendChild(p), n = createNS("use"), n.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), f.appendChild(n), featureSupport.maskType || (l.setAttribute("mask-type", "luminance"), s.appendChild(filtersFactory.createAlphaToLuminanceFilter()), a = createNS("g"), f.appendChild(p), a.appendChild(this.layerElement), f.appendChild(a)), this.globalData.defs.appendChild(l);
3647
3644
  }
@@ -3936,8 +3933,8 @@ function requireLottie() {
3936
3933
  var e = new Matrix(), t = new Matrix(), r = {
3937
3934
  createRenderFunction: i
3938
3935
  };
3939
- function i(_) {
3940
- switch (_.ty) {
3936
+ function i(S) {
3937
+ switch (S.ty) {
3941
3938
  case "fl":
3942
3939
  return o;
3943
3940
  case "gf":
@@ -3959,12 +3956,12 @@ function requireLottie() {
3959
3956
  return null;
3960
3957
  }
3961
3958
  }
3962
- function s(_, p, x) {
3959
+ function s(S, p, x) {
3963
3960
  (x || p.transform.op._mdf) && p.transform.container.setAttribute("opacity", p.transform.op.v), (x || p.transform.mProps._mdf) && p.transform.container.setAttribute("transform", p.transform.mProps.v.to2dCSS());
3964
3961
  }
3965
3962
  function n() {
3966
3963
  }
3967
- function a(_, p, x) {
3964
+ function a(S, p, x) {
3968
3965
  var y, m, C, d, g, u, v = p.styles.length, E = p.lvl, k, T, A, L;
3969
3966
  for (u = 0; u < v; u += 1) {
3970
3967
  if (d = p.sh._mdf || x, p.styles[u].lvl < E) {
@@ -3981,24 +3978,24 @@ function requireLottie() {
3981
3978
  p.caches[u] = C;
3982
3979
  } else
3983
3980
  C = p.caches[u];
3984
- p.styles[u].d += _.hd === !0 ? "" : C, p.styles[u]._mdf = d || p.styles[u]._mdf;
3981
+ p.styles[u].d += S.hd === !0 ? "" : C, p.styles[u]._mdf = d || p.styles[u]._mdf;
3985
3982
  }
3986
3983
  }
3987
- function o(_, p, x) {
3984
+ function o(S, p, x) {
3988
3985
  var y = p.style;
3989
3986
  (p.c._mdf || x) && y.pElem.setAttribute("fill", "rgb(" + bmFloor(p.c.v[0]) + "," + bmFloor(p.c.v[1]) + "," + bmFloor(p.c.v[2]) + ")"), (p.o._mdf || x) && y.pElem.setAttribute("fill-opacity", p.o.v);
3990
3987
  }
3991
- function l(_, p, x) {
3992
- f(_, p, x), c(_, p, x);
3988
+ function l(S, p, x) {
3989
+ f(S, p, x), c(S, p, x);
3993
3990
  }
3994
- function f(_, p, x) {
3991
+ function f(S, p, x) {
3995
3992
  var y = p.gf, m = p.g._hasOpacity, C = p.s.v, d = p.e.v;
3996
3993
  if (p.o._mdf || x) {
3997
- var g = _.ty === "gf" ? "fill-opacity" : "stroke-opacity";
3994
+ var g = S.ty === "gf" ? "fill-opacity" : "stroke-opacity";
3998
3995
  p.style.pElem.setAttribute(g, p.o.v);
3999
3996
  }
4000
3997
  if (p.s._mdf || x) {
4001
- var u = _.t === 1 ? "x1" : "cx", v = u === "x1" ? "y1" : "cy";
3998
+ var u = S.t === 1 ? "x1" : "cx", v = u === "x1" ? "y1" : "cy";
4002
3999
  y.setAttribute(u, C[0]), y.setAttribute(v, C[1]), m && !p.g._collapsable && (p.of.setAttribute(u, C[0]), p.of.setAttribute(v, C[1]));
4003
4000
  }
4004
4001
  var E, k, T, A;
@@ -4009,24 +4006,24 @@ function requireLottie() {
4009
4006
  A = E[k], A.setAttribute("offset", L[k * 4] + "%"), A.setAttribute("stop-color", "rgb(" + L[k * 4 + 1] + "," + L[k * 4 + 2] + "," + L[k * 4 + 3] + ")");
4010
4007
  }
4011
4008
  if (m && (p.g._omdf || x)) {
4012
- var $ = p.g.o;
4009
+ var H = p.g.o;
4013
4010
  for (p.g._collapsable ? E = p.cst : E = p.ost, T = E.length, k = 0; k < T; k += 1)
4014
- A = E[k], p.g._collapsable || A.setAttribute("offset", $[k * 2] + "%"), A.setAttribute("stop-opacity", $[k * 2 + 1]);
4011
+ A = E[k], p.g._collapsable || A.setAttribute("offset", H[k * 2] + "%"), A.setAttribute("stop-opacity", H[k * 2 + 1]);
4015
4012
  }
4016
- if (_.t === 1)
4013
+ if (S.t === 1)
4017
4014
  (p.e._mdf || x) && (y.setAttribute("x2", d[0]), y.setAttribute("y2", d[1]), m && !p.g._collapsable && (p.of.setAttribute("x2", d[0]), p.of.setAttribute("y2", d[1])));
4018
4015
  else {
4019
- var O;
4020
- if ((p.s._mdf || p.e._mdf || x) && (O = Math.sqrt(Math.pow(C[0] - d[0], 2) + Math.pow(C[1] - d[1], 2)), y.setAttribute("r", O), m && !p.g._collapsable && p.of.setAttribute("r", O)), p.e._mdf || p.h._mdf || p.a._mdf || x) {
4021
- O || (O = Math.sqrt(Math.pow(C[0] - d[0], 2) + Math.pow(C[1] - d[1], 2)));
4016
+ var B;
4017
+ if ((p.s._mdf || p.e._mdf || x) && (B = Math.sqrt(Math.pow(C[0] - d[0], 2) + Math.pow(C[1] - d[1], 2)), y.setAttribute("r", B), m && !p.g._collapsable && p.of.setAttribute("r", B)), p.e._mdf || p.h._mdf || p.a._mdf || x) {
4018
+ B || (B = Math.sqrt(Math.pow(C[0] - d[0], 2) + Math.pow(C[1] - d[1], 2)));
4022
4019
  var D = Math.atan2(d[1] - C[1], d[0] - C[0]), z = p.h.v;
4023
4020
  z >= 1 ? z = 0.99 : z <= -1 && (z = -0.99);
4024
- var N = O * z, R = Math.cos(D + p.a.v) * N + C[0], P = Math.sin(D + p.a.v) * N + C[1];
4021
+ var N = B * z, R = Math.cos(D + p.a.v) * N + C[0], P = Math.sin(D + p.a.v) * N + C[1];
4025
4022
  y.setAttribute("fx", R), y.setAttribute("fy", P), m && !p.g._collapsable && (p.of.setAttribute("fx", R), p.of.setAttribute("fy", P));
4026
4023
  }
4027
4024
  }
4028
4025
  }
4029
- function c(_, p, x) {
4026
+ function c(S, p, x) {
4030
4027
  var y = p.style, m = p.d;
4031
4028
  m && (m._mdf || x) && m.dashStr && (y.pElem.setAttribute("stroke-dasharray", m.dashStr), y.pElem.setAttribute("stroke-dashoffset", m.dashoffset[0])), p.c && (p.c._mdf || x) && y.pElem.setAttribute("stroke", "rgb(" + bmFloor(p.c.v[0]) + "," + bmFloor(p.c.v[1]) + "," + bmFloor(p.c.v[2]) + ")"), (p.o._mdf || x) && y.pElem.setAttribute("stroke-opacity", p.o.v), (p.w._mdf || x) && (y.pElem.setAttribute("stroke-width", p.w.v), y.msElem && y.msElem.setAttribute("stroke-width", p.w.v));
4032
4029
  }
@@ -4096,7 +4093,7 @@ function requireLottie() {
4096
4093
  this.dynamicProperties[e].getValue();
4097
4094
  this.renderModifiers();
4098
4095
  }, SVGShapeElement.prototype.searchShapes = function(e, t, r, i, s, n, a) {
4099
- var o = [].concat(n), l, f = e.length - 1, c, _, p = [], x = [], y, m, C;
4096
+ var o = [].concat(n), l, f = e.length - 1, c, S, p = [], x = [], y, m, C;
4100
4097
  for (l = f; l >= 0; l -= 1) {
4101
4098
  if (C = this.searchProcessedElement(e[l]), C ? t[l] = r[C - 1] : e[l]._render = a, e[l].ty === "fl" || e[l].ty === "st" || e[l].ty === "gf" || e[l].ty === "gs" || e[l].ty === "no")
4102
4099
  C ? t[l].style.closed = !1 : t[l] = this.createStyleElement(e[l], s), e[l]._render && t[l].style.pElem.parentNode !== i && i.appendChild(t[l].style.pElem), p.push(t[l].style);
@@ -4104,7 +4101,7 @@ function requireLottie() {
4104
4101
  if (!C)
4105
4102
  t[l] = this.createGroupElement(e[l]);
4106
4103
  else
4107
- for (_ = t[l].it.length, c = 0; c < _; c += 1)
4104
+ for (S = t[l].it.length, c = 0; c < S; c += 1)
4108
4105
  t[l].prevViewData[c] = t[l].it[c];
4109
4106
  this.searchShapes(e[l].it, t[l].it, t[l].prevViewData, t[l].gr, s + 1, o, a), e[l]._render && t[l].gr.parentNode !== i && i.appendChild(t[l].gr);
4110
4107
  } else e[l].ty === "tr" ? (C || (t[l] = this.createTransformElement(e[l], i)), y = t[l].transform, o.push(y)) : e[l].ty === "sh" || e[l].ty === "rc" || e[l].ty === "el" || e[l].ty === "sr" ? (C || (t[l] = this.createShapeElement(e[l], o, s)), this.setElementStyles(t[l])) : e[l].ty === "tm" || e[l].ty === "rd" || e[l].ty === "ms" || e[l].ty === "pb" || e[l].ty === "zz" || e[l].ty === "op" ? (C ? (m = t[l], m.closed = !1) : (m = ShapeModifiers.getModifier(e[l].ty), m.init(this, e[l]), t[l] = m, this.shapeModifiers.push(m)), x.push(m)) : e[l].ty === "rp" && (C ? (m = t[l], m.closed = !0) : (m = ShapeModifiers.getModifier(e[l].ty), t[l] = m, m.init(this, e, l, t), this.shapeModifiers.push(m), a = !1), x.push(m));
@@ -4211,16 +4208,16 @@ function requireLottie() {
4211
4208
  return t;
4212
4209
  }, TextProperty.prototype.completeTextData = function(e) {
4213
4210
  e.__complete = !0;
4214
- var t = this.elem.globalData.fontManager, r = this.data, i = [], s, n, a, o = 0, l, f = r.m.g, c = 0, _ = 0, p = 0, x = [], y = 0, m = 0, C, d, g = t.getFontByName(e.f), u, v = 0, E = getFontProperties(g);
4211
+ var t = this.elem.globalData.fontManager, r = this.data, i = [], s, n, a, o = 0, l, f = r.m.g, c = 0, S = 0, p = 0, x = [], y = 0, m = 0, C, d, g = t.getFontByName(e.f), u, v = 0, E = getFontProperties(g);
4215
4212
  e.fWeight = E.weight, e.fStyle = E.style, e.finalSize = e.s, e.finalText = this.buildFinalText(e.t), n = e.finalText.length, e.finalLineHeight = e.lh;
4216
4213
  var k = e.tr / 1e3 * e.finalSize, T;
4217
4214
  if (e.sz)
4218
- for (var A = !0, L = e.sz[0], $ = e.sz[1], O, D; A; ) {
4219
- D = this.buildFinalText(e.t), O = 0, y = 0, n = D.length, k = e.tr / 1e3 * e.finalSize;
4215
+ for (var A = !0, L = e.sz[0], H = e.sz[1], B, D; A; ) {
4216
+ D = this.buildFinalText(e.t), B = 0, y = 0, n = D.length, k = e.tr / 1e3 * e.finalSize;
4220
4217
  var z = -1;
4221
4218
  for (s = 0; s < n; s += 1)
4222
- T = D[s].charCodeAt(0), a = !1, D[s] === " " ? z = s : (T === 13 || T === 3) && (y = 0, a = !0, O += e.finalLineHeight || e.finalSize * 1.2), t.chars ? (u = t.getCharData(D[s], g.fStyle, g.fFamily), v = a ? 0 : u.w * e.finalSize / 100) : v = t.measureText(D[s], e.f, e.finalSize), y + v > L && D[s] !== " " ? (z === -1 ? n += 1 : s = z, O += e.finalLineHeight || e.finalSize * 1.2, D.splice(s, z === s ? 1 : 0, "\r"), z = -1, y = 0) : (y += v, y += k);
4223
- O += g.ascent * e.finalSize / 100, this.canResize && e.finalSize > this.minimumFontSize && $ < O ? (e.finalSize -= 1, e.finalLineHeight = e.finalSize * e.lh / e.s) : (e.finalText = D, n = e.finalText.length, A = !1);
4219
+ T = D[s].charCodeAt(0), a = !1, D[s] === " " ? z = s : (T === 13 || T === 3) && (y = 0, a = !0, B += e.finalLineHeight || e.finalSize * 1.2), t.chars ? (u = t.getCharData(D[s], g.fStyle, g.fFamily), v = a ? 0 : u.w * e.finalSize / 100) : v = t.measureText(D[s], e.f, e.finalSize), y + v > L && D[s] !== " " ? (z === -1 ? n += 1 : s = z, B += e.finalLineHeight || e.finalSize * 1.2, D.splice(s, z === s ? 1 : 0, "\r"), z = -1, y = 0) : (y += v, y += k);
4220
+ B += g.ascent * e.finalSize / 100, this.canResize && e.finalSize > this.minimumFontSize && H < B ? (e.finalSize -= 1, e.finalLineHeight = e.finalSize * e.lh / e.s) : (e.finalText = D, n = e.finalText.length, A = !1);
4224
4221
  }
4225
4222
  y = -k, v = 0;
4226
4223
  var N = 0, R;
@@ -4236,14 +4233,14 @@ function requireLottie() {
4236
4233
  animatorJustifyOffset: 0
4237
4234
  }), f == 2) {
4238
4235
  if (c += v, l === "" || l === " " || s === n - 1) {
4239
- for ((l === "" || l === " ") && (c -= v); _ <= s; )
4240
- i[_].an = c, i[_].ind = o, i[_].extra = v, _ += 1;
4236
+ for ((l === "" || l === " ") && (c -= v); S <= s; )
4237
+ i[S].an = c, i[S].ind = o, i[S].extra = v, S += 1;
4241
4238
  o += 1, c = 0;
4242
4239
  }
4243
4240
  } else if (f == 3) {
4244
4241
  if (c += v, l === "" || s === n - 1) {
4245
- for (l === "" && (c -= v); _ <= s; )
4246
- i[_].an = c, i[_].ind = o, i[_].extra = v, _ += 1;
4242
+ for (l === "" && (c -= v); S <= s; )
4243
+ i[S].an = c, i[S].ind = o, i[S].extra = v, S += 1;
4247
4244
  c = 0, o += 1;
4248
4245
  }
4249
4246
  } else
@@ -4264,15 +4261,15 @@ function requireLottie() {
4264
4261
  e.lineWidths = x;
4265
4262
  var P = r.a, w, b;
4266
4263
  d = P.length;
4267
- var S, F, M = [];
4264
+ var _, F, M = [];
4268
4265
  for (C = 0; C < d; C += 1) {
4269
- for (w = P[C], w.a.sc && (e.strokeColorAnim = !0), w.a.sw && (e.strokeWidthAnim = !0), (w.a.fc || w.a.fh || w.a.fs || w.a.fb) && (e.fillColorAnim = !0), F = 0, S = w.s.b, s = 0; s < n; s += 1)
4270
- b = i[s], b.anIndexes[C] = F, (S == 1 && b.val !== "" || S == 2 && b.val !== "" && b.val !== " " || S == 3 && (b.n || b.val == " " || s == n - 1) || S == 4 && (b.n || s == n - 1)) && (w.s.rn === 1 && M.push(F), F += 1);
4266
+ for (w = P[C], w.a.sc && (e.strokeColorAnim = !0), w.a.sw && (e.strokeWidthAnim = !0), (w.a.fc || w.a.fh || w.a.fs || w.a.fb) && (e.fillColorAnim = !0), F = 0, _ = w.s.b, s = 0; s < n; s += 1)
4267
+ b = i[s], b.anIndexes[C] = F, (_ == 1 && b.val !== "" || _ == 2 && b.val !== "" && b.val !== " " || _ == 3 && (b.n || b.val == " " || s == n - 1) || _ == 4 && (b.n || s == n - 1)) && (w.s.rn === 1 && M.push(F), F += 1);
4271
4268
  r.a[C].s.totalChars = F;
4272
- var V = -1, G;
4269
+ var O = -1, G;
4273
4270
  if (w.s.rn === 1)
4274
4271
  for (s = 0; s < n; s += 1)
4275
- b = i[s], V != b.anIndexes[C] && (V = b.anIndexes[C], G = M.splice(Math.floor(Math.random() * M.length), 1)[0]), b.anIndexes[C] = G;
4272
+ b = i[s], O != b.anIndexes[C] && (O = b.anIndexes[C], G = M.splice(Math.floor(Math.random() * M.length), 1)[0]), b.anIndexes[C] = G;
4276
4273
  }
4277
4274
  e.yOffset = e.finalLineHeight || e.finalSize * 1.2, e.ls = e.ls || 0, e.ascent = g.ascent * e.finalSize / 100;
4278
4275
  }, TextProperty.prototype.updateDocumentData = function(e, t) {
@@ -4309,13 +4306,13 @@ function requireLottie() {
4309
4306
  this._currentTextLength !== this.elem.textProperty.currentData.l.length && this.getValue();
4310
4307
  var o = 0, l = 0, f = 1, c = 1;
4311
4308
  this.ne.v > 0 ? o = this.ne.v / 100 : l = -this.ne.v / 100, this.xe.v > 0 ? f = 1 - this.xe.v / 100 : c = 1 + this.xe.v / 100;
4312
- var _ = BezierFactory.getBezierEasing(o, l, f, c).get, p = 0, x = this.finalS, y = this.finalE, m = this.data.sh;
4309
+ var S = BezierFactory.getBezierEasing(o, l, f, c).get, p = 0, x = this.finalS, y = this.finalE, m = this.data.sh;
4313
4310
  if (m === 2)
4314
- y === x ? p = a >= y ? 1 : 0 : p = e(0, t(0.5 / (y - x) + (a - x) / (y - x), 1)), p = _(p);
4311
+ y === x ? p = a >= y ? 1 : 0 : p = e(0, t(0.5 / (y - x) + (a - x) / (y - x), 1)), p = S(p);
4315
4312
  else if (m === 3)
4316
- y === x ? p = a >= y ? 0 : 1 : p = 1 - e(0, t(0.5 / (y - x) + (a - x) / (y - x), 1)), p = _(p);
4313
+ y === x ? p = a >= y ? 0 : 1 : p = 1 - e(0, t(0.5 / (y - x) + (a - x) / (y - x), 1)), p = S(p);
4317
4314
  else if (m === 4)
4318
- y === x ? p = 0 : (p = e(0, t(0.5 / (y - x) + (a - x) / (y - x), 1)), p < 0.5 ? p *= 2 : p = 1 - 2 * (p - 0.5)), p = _(p);
4315
+ y === x ? p = 0 : (p = e(0, t(0.5 / (y - x) + (a - x) / (y - x), 1)), p < 0.5 ? p *= 2 : p = 1 - 2 * (p - 0.5)), p = S(p);
4319
4316
  else if (m === 5) {
4320
4317
  if (y === x)
4321
4318
  p = 0;
@@ -4325,8 +4322,8 @@ function requireLottie() {
4325
4322
  var d = -C / 2 + a, g = C / 2;
4326
4323
  p = Math.sqrt(1 - d * d / (g * g));
4327
4324
  }
4328
- p = _(p);
4329
- } else m === 6 ? (y === x ? p = 0 : (a = t(e(0, a + 0.5 - x), y - x), p = (1 + Math.cos(Math.PI + Math.PI * 2 * a / (y - x))) / 2), p = _(p)) : (a >= r(x) && (a - x < 0 ? p = e(0, t(t(y, 1) - (x - a), 1)) : p = e(0, t(y - a, 1))), p = _(p));
4325
+ p = S(p);
4326
+ } else m === 6 ? (y === x ? p = 0 : (a = t(e(0, a + 0.5 - x), y - x), p = (1 + Math.cos(Math.PI + Math.PI * 2 * a / (y - x))) / 2), p = S(p)) : (a >= r(x) && (a - x < 0 ? p = e(0, t(t(y, 1) - (x - a), 1)) : p = e(0, t(y - a, 1))), p = S(p));
4330
4327
  if (this.sm.v !== 100) {
4331
4328
  var u = this.sm.v * 0.01;
4332
4329
  u === 0 && (u = 1e-8);
@@ -4339,8 +4336,8 @@ function requireLottie() {
4339
4336
  this.iterateDynamicProperties(), this._mdf = a || this._mdf, this._currentTextLength = this.elem.textProperty.currentData.l.length || 0, a && this.data.r === 2 && (this.e.v = this._currentTextLength);
4340
4337
  var o = this.data.r === 2 ? 1 : 100 / this.data.totalChars, l = this.o.v / o, f = this.s.v / o + l, c = this.e.v / o + l;
4341
4338
  if (f > c) {
4342
- var _ = f;
4343
- f = c, c = _;
4339
+ var S = f;
4340
+ f = c, c = S;
4344
4341
  }
4345
4342
  this.finalS = f, this.finalE = c;
4346
4343
  }
@@ -4395,44 +4392,44 @@ function requireLottie() {
4395
4392
  }, TextAnimatorProperty.prototype.getMeasures = function(e, t) {
4396
4393
  if (this.lettersChangedFlag = t, !(!this._mdf && !this._isFirstFrame && !t && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
4397
4394
  this._isFirstFrame = !1;
4398
- var r = this._moreOptions.alignment.v, i = this._animatorsData, s = this._textData, n = this.mHelper, a = this._renderType, o = this.renderedLetters.length, l, f, c, _, p = e.l, x, y, m, C, d, g, u, v, E, k, T, A, L, $, O;
4395
+ var r = this._moreOptions.alignment.v, i = this._animatorsData, s = this._textData, n = this.mHelper, a = this._renderType, o = this.renderedLetters.length, l, f, c, S, p = e.l, x, y, m, C, d, g, u, v, E, k, T, A, L, H, B;
4399
4396
  if (this._hasMaskedPath) {
4400
- if (O = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
4401
- var D = O.v;
4397
+ if (B = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
4398
+ var D = B.v;
4402
4399
  this._pathData.r.v && (D = D.reverse()), x = {
4403
4400
  tLength: 0,
4404
4401
  segments: []
4405
- }, _ = D._length - 1;
4402
+ }, S = D._length - 1;
4406
4403
  var z;
4407
- for (A = 0, c = 0; c < _; c += 1)
4404
+ for (A = 0, c = 0; c < S; c += 1)
4408
4405
  z = bez.buildBezierData(D.v[c], D.v[c + 1], [D.o[c][0] - D.v[c][0], D.o[c][1] - D.v[c][1]], [D.i[c + 1][0] - D.v[c + 1][0], D.i[c + 1][1] - D.v[c + 1][1]]), x.tLength += z.segmentLength, x.segments.push(z), A += z.segmentLength;
4409
- c = _, O.v.c && (z = bez.buildBezierData(D.v[c], D.v[0], [D.o[c][0] - D.v[c][0], D.o[c][1] - D.v[c][1]], [D.i[0][0] - D.v[0][0], D.i[0][1] - D.v[0][1]]), x.tLength += z.segmentLength, x.segments.push(z), A += z.segmentLength), this._pathData.pi = x;
4406
+ c = S, B.v.c && (z = bez.buildBezierData(D.v[c], D.v[0], [D.o[c][0] - D.v[c][0], D.o[c][1] - D.v[c][1]], [D.i[0][0] - D.v[0][0], D.i[0][1] - D.v[0][1]]), x.tLength += z.segmentLength, x.segments.push(z), A += z.segmentLength), this._pathData.pi = x;
4410
4407
  }
4411
- if (x = this._pathData.pi, y = this._pathData.f.v, u = 0, g = 1, C = 0, d = !0, k = x.segments, y < 0 && O.v.c)
4408
+ if (x = this._pathData.pi, y = this._pathData.f.v, u = 0, g = 1, C = 0, d = !0, k = x.segments, y < 0 && B.v.c)
4412
4409
  for (x.tLength < Math.abs(y) && (y = -Math.abs(y) % x.tLength), u = k.length - 1, E = k[u].points, g = E.length - 1; y < 0; )
4413
4410
  y += E[g].partialLength, g -= 1, g < 0 && (u -= 1, E = k[u].points, g = E.length - 1);
4414
4411
  E = k[u].points, v = E[g - 1], m = E[g], T = m.partialLength;
4415
4412
  }
4416
- _ = p.length, l = 0, f = 0;
4417
- var N = e.finalSize * 1.2 * 0.714, R = !0, P, w, b, S, F;
4418
- S = i.length;
4419
- var M, V = -1, G, U, q, Z = y, J = u, se = g, ue = -1, ne, Q, ee, X, H, ge, ve, le, pe = "", de = this.defaultPropsArray, ye;
4413
+ S = p.length, l = 0, f = 0;
4414
+ var N = e.finalSize * 1.2 * 0.714, R = !0, P, w, b, _, F;
4415
+ _ = i.length;
4416
+ var M, O = -1, G, Y, q, Z = y, J = u, se = g, ue = -1, ne, Q, ee, X, $, ge, ve, le, pe = "", de = this.defaultPropsArray, ye;
4420
4417
  if (e.j === 2 || e.j === 1) {
4421
4418
  var ae = 0, xe = 0, be = e.j === 2 ? -0.5 : -1, oe = 0, ce = !0;
4422
- for (c = 0; c < _; c += 1)
4419
+ for (c = 0; c < S; c += 1)
4423
4420
  if (p[c].n) {
4424
4421
  for (ae && (ae += xe); oe < c; )
4425
4422
  p[oe].animatorJustifyOffset = ae, oe += 1;
4426
4423
  ae = 0, ce = !0;
4427
4424
  } else {
4428
- for (b = 0; b < S; b += 1)
4425
+ for (b = 0; b < _; b += 1)
4429
4426
  P = i[b].a, P.t.propType && (ce && e.j === 2 && (xe += P.t.v * be), w = i[b].s, M = w.getMult(p[c].anIndexes[b], s.a[b].s.totalChars), M.length ? ae += P.t.v * M[0] * be : ae += P.t.v * M * be);
4430
4427
  ce = !1;
4431
4428
  }
4432
4429
  for (ae && (ae += xe); oe < c; )
4433
4430
  p[oe].animatorJustifyOffset = ae, oe += 1;
4434
4431
  }
4435
- for (c = 0; c < _; c += 1) {
4432
+ for (c = 0; c < S; c += 1) {
4436
4433
  if (n.reset(), ne = 1, p[c].n)
4437
4434
  l = 0, f += e.yOffset, f += R ? 1 : 0, y = Z, R = !1, this._hasMaskedPath && (u = J, g = se, E = k[u].points, v = E[g - 1], m = E[g], T = m.partialLength, C = 0), pe = "", le = "", ge = "", ye = "", de = this.defaultPropsArray;
4438
4435
  else {
@@ -4448,41 +4445,41 @@ function requireLottie() {
4448
4445
  }
4449
4446
  ue = p[c].line;
4450
4447
  }
4451
- V !== p[c].ind && (p[V] && (y += p[V].extra), y += p[c].an / 2, V = p[c].ind), y += r[0] * p[c].an * 5e-3;
4448
+ O !== p[c].ind && (p[O] && (y += p[O].extra), y += p[c].an / 2, O = p[c].ind), y += r[0] * p[c].an * 5e-3;
4452
4449
  var re = 0;
4453
- for (b = 0; b < S; b += 1)
4450
+ for (b = 0; b < _; b += 1)
4454
4451
  P = i[b].a, P.p.propType && (w = i[b].s, M = w.getMult(p[c].anIndexes[b], s.a[b].s.totalChars), M.length ? re += P.p.v[0] * M[0] : re += P.p.v[0] * M), P.a.propType && (w = i[b].s, M = w.getMult(p[c].anIndexes[b], s.a[b].s.totalChars), M.length ? re += P.a.v[0] * M[0] : re += P.a.v[0] * M);
4455
- for (d = !0, this._pathData.a.v && (y = p[0].an * 0.5 + (A - this._pathData.f.v - p[0].an * 0.5 - p[p.length - 1].an * 0.5) * V / (_ - 1), y += this._pathData.f.v); d; )
4456
- C + T >= y + re || !E ? (L = (y + re - C) / m.partialLength, U = v.point[0] + (m.point[0] - v.point[0]) * L, q = v.point[1] + (m.point[1] - v.point[1]) * L, n.translate(-r[0] * p[c].an * 5e-3, -(r[1] * N) * 0.01), d = !1) : E && (C += m.partialLength, g += 1, g >= E.length && (g = 0, u += 1, k[u] ? E = k[u].points : O.v.c ? (g = 0, u = 0, E = k[u].points) : (C -= m.partialLength, E = null)), E && (v = m, m = E[g], T = m.partialLength));
4452
+ for (d = !0, this._pathData.a.v && (y = p[0].an * 0.5 + (A - this._pathData.f.v - p[0].an * 0.5 - p[p.length - 1].an * 0.5) * O / (S - 1), y += this._pathData.f.v); d; )
4453
+ C + T >= y + re || !E ? (L = (y + re - C) / m.partialLength, Y = v.point[0] + (m.point[0] - v.point[0]) * L, q = v.point[1] + (m.point[1] - v.point[1]) * L, n.translate(-r[0] * p[c].an * 5e-3, -(r[1] * N) * 0.01), d = !1) : E && (C += m.partialLength, g += 1, g >= E.length && (g = 0, u += 1, k[u] ? E = k[u].points : B.v.c ? (g = 0, u = 0, E = k[u].points) : (C -= m.partialLength, E = null)), E && (v = m, m = E[g], T = m.partialLength));
4457
4454
  G = p[c].an / 2 - p[c].add, n.translate(-G, 0, 0);
4458
4455
  } else
4459
4456
  G = p[c].an / 2 - p[c].add, n.translate(-G, 0, 0), n.translate(-r[0] * p[c].an * 5e-3, -r[1] * N * 0.01, 0);
4460
- for (b = 0; b < S; b += 1)
4457
+ for (b = 0; b < _; b += 1)
4461
4458
  P = i[b].a, P.t.propType && (w = i[b].s, M = w.getMult(p[c].anIndexes[b], s.a[b].s.totalChars), (l !== 0 || e.j !== 0) && (this._hasMaskedPath ? M.length ? y += P.t.v * M[0] : y += P.t.v * M : M.length ? l += P.t.v * M[0] : l += P.t.v * M));
4462
- for (e.strokeWidthAnim && (ee = e.sw || 0), e.strokeColorAnim && (e.sc ? Q = [e.sc[0], e.sc[1], e.sc[2]] : Q = [0, 0, 0]), e.fillColorAnim && e.fc && (X = [e.fc[0], e.fc[1], e.fc[2]]), b = 0; b < S; b += 1)
4459
+ for (e.strokeWidthAnim && (ee = e.sw || 0), e.strokeColorAnim && (e.sc ? Q = [e.sc[0], e.sc[1], e.sc[2]] : Q = [0, 0, 0]), e.fillColorAnim && e.fc && (X = [e.fc[0], e.fc[1], e.fc[2]]), b = 0; b < _; b += 1)
4463
4460
  P = i[b].a, P.a.propType && (w = i[b].s, M = w.getMult(p[c].anIndexes[b], s.a[b].s.totalChars), M.length ? n.translate(-P.a.v[0] * M[0], -P.a.v[1] * M[1], P.a.v[2] * M[2]) : n.translate(-P.a.v[0] * M, -P.a.v[1] * M, P.a.v[2] * M));
4464
- for (b = 0; b < S; b += 1)
4461
+ for (b = 0; b < _; b += 1)
4465
4462
  P = i[b].a, P.s.propType && (w = i[b].s, M = w.getMult(p[c].anIndexes[b], s.a[b].s.totalChars), M.length ? n.scale(1 + (P.s.v[0] - 1) * M[0], 1 + (P.s.v[1] - 1) * M[1], 1) : n.scale(1 + (P.s.v[0] - 1) * M, 1 + (P.s.v[1] - 1) * M, 1));
4466
- for (b = 0; b < S; b += 1) {
4463
+ for (b = 0; b < _; b += 1) {
4467
4464
  if (P = i[b].a, w = i[b].s, M = w.getMult(p[c].anIndexes[b], s.a[b].s.totalChars), P.sk.propType && (M.length ? n.skewFromAxis(-P.sk.v * M[0], P.sa.v * M[1]) : n.skewFromAxis(-P.sk.v * M, P.sa.v * M)), P.r.propType && (M.length ? n.rotateZ(-P.r.v * M[2]) : n.rotateZ(-P.r.v * M)), P.ry.propType && (M.length ? n.rotateY(P.ry.v * M[1]) : n.rotateY(P.ry.v * M)), P.rx.propType && (M.length ? n.rotateX(P.rx.v * M[0]) : n.rotateX(P.rx.v * M)), P.o.propType && (M.length ? ne += (P.o.v * M[0] - ne) * M[0] : ne += (P.o.v * M - ne) * M), e.strokeWidthAnim && P.sw.propType && (M.length ? ee += P.sw.v * M[0] : ee += P.sw.v * M), e.strokeColorAnim && P.sc.propType)
4468
- for (H = 0; H < 3; H += 1)
4469
- M.length ? Q[H] += (P.sc.v[H] - Q[H]) * M[0] : Q[H] += (P.sc.v[H] - Q[H]) * M;
4465
+ for ($ = 0; $ < 3; $ += 1)
4466
+ M.length ? Q[$] += (P.sc.v[$] - Q[$]) * M[0] : Q[$] += (P.sc.v[$] - Q[$]) * M;
4470
4467
  if (e.fillColorAnim && e.fc) {
4471
4468
  if (P.fc.propType)
4472
- for (H = 0; H < 3; H += 1)
4473
- M.length ? X[H] += (P.fc.v[H] - X[H]) * M[0] : X[H] += (P.fc.v[H] - X[H]) * M;
4469
+ for ($ = 0; $ < 3; $ += 1)
4470
+ M.length ? X[$] += (P.fc.v[$] - X[$]) * M[0] : X[$] += (P.fc.v[$] - X[$]) * M;
4474
4471
  P.fh.propType && (M.length ? X = addHueToRGB(X, P.fh.v * M[0]) : X = addHueToRGB(X, P.fh.v * M)), P.fs.propType && (M.length ? X = addSaturationToRGB(X, P.fs.v * M[0]) : X = addSaturationToRGB(X, P.fs.v * M)), P.fb.propType && (M.length ? X = addBrightnessToRGB(X, P.fb.v * M[0]) : X = addBrightnessToRGB(X, P.fb.v * M));
4475
4472
  }
4476
4473
  }
4477
- for (b = 0; b < S; b += 1)
4474
+ for (b = 0; b < _; b += 1)
4478
4475
  P = i[b].a, P.p.propType && (w = i[b].s, M = w.getMult(p[c].anIndexes[b], s.a[b].s.totalChars), this._hasMaskedPath ? M.length ? n.translate(0, P.p.v[1] * M[0], -P.p.v[2] * M[1]) : n.translate(0, P.p.v[1] * M, -P.p.v[2] * M) : M.length ? n.translate(P.p.v[0] * M[0], P.p.v[1] * M[1], -P.p.v[2] * M[2]) : n.translate(P.p.v[0] * M, P.p.v[1] * M, -P.p.v[2] * M));
4479
4476
  if (e.strokeWidthAnim && (ge = ee < 0 ? 0 : ee), e.strokeColorAnim && (ve = "rgb(" + Math.round(Q[0] * 255) + "," + Math.round(Q[1] * 255) + "," + Math.round(Q[2] * 255) + ")"), e.fillColorAnim && e.fc && (le = "rgb(" + Math.round(X[0] * 255) + "," + Math.round(X[1] * 255) + "," + Math.round(X[2] * 255) + ")"), this._hasMaskedPath) {
4480
4477
  if (n.translate(0, -e.ls), n.translate(0, r[1] * N * 0.01 + f, 0), this._pathData.p.v) {
4481
- $ = (m.point[1] - v.point[1]) / (m.point[0] - v.point[0]);
4482
- var Se = Math.atan($) * 180 / Math.PI;
4483
- m.point[0] < v.point[0] && (Se += 180), n.rotate(-Se * Math.PI / 180);
4478
+ H = (m.point[1] - v.point[1]) / (m.point[0] - v.point[0]);
4479
+ var _e = Math.atan(H) * 180 / Math.PI;
4480
+ m.point[0] < v.point[0] && (_e += 180), n.rotate(-_e * Math.PI / 180);
4484
4481
  }
4485
- n.translate(U, q, 0), y -= r[0] * p[c].an * 5e-3, p[c + 1] && V !== p[c + 1].ind && (y += p[c].an / 2, y += e.tr * 1e-3 * e.finalSize);
4482
+ n.translate(Y, q, 0), y -= r[0] * p[c].an * 5e-3, p[c + 1] && O !== p[c + 1].ind && (y += p[c].an / 2, y += e.tr * 1e-3 * e.finalSize);
4486
4483
  } else {
4487
4484
  switch (n.translate(l, f, 0), e.ps && n.translate(e.ps[0], e.ps[1] + e.ascent, 0), e.j) {
4488
4485
  case 1:
@@ -4571,8 +4568,8 @@ function requireLottie() {
4571
4568
  this.layerElement.setAttribute("aria-label", r.t);
4572
4569
  var a = r.l || [], o = !!this.globalData.fontManager.chars;
4573
4570
  t = a.length;
4574
- var l, f = this.mHelper, c = "", _ = this.data.singleShape, p = 0, x = 0, y = !0, m = r.tr * 1e-3 * r.finalSize;
4575
- if (_ && !o && !r.sz) {
4571
+ var l, f = this.mHelper, c = "", S = this.data.singleShape, p = 0, x = 0, y = !0, m = r.tr * 1e-3 * r.finalSize;
4572
+ if (S && !o && !r.sz) {
4576
4573
  var C = this.textContainer, d = "start";
4577
4574
  switch (r.j) {
4578
4575
  case 1:
@@ -4600,7 +4597,7 @@ function requireLottie() {
4600
4597
  span: null,
4601
4598
  childSpan: null,
4602
4599
  glyph: null
4603
- }), !o || !_ || e === 0) {
4600
+ }), !o || !S || e === 0) {
4604
4601
  if (l = u > e ? this.textSpans[e].span : createNS(o ? "g" : "text"), u <= e) {
4605
4602
  if (l.setAttribute("stroke-linecap", "butt"), l.setAttribute("stroke-linejoin", "round"), l.setAttribute("stroke-miterlimit", "4"), this.textSpans[e].span = l, o) {
4606
4603
  var E = createNS("g");
@@ -4610,7 +4607,7 @@ function requireLottie() {
4610
4607
  }
4611
4608
  l.style.display = "inherit";
4612
4609
  }
4613
- if (f.reset(), _ && (a[e].n && (p = -m, x += r.yOffset, x += y ? 1 : 0, y = !1), this.applyTextPropertiesToMatrix(r, f, a[e].line, p, x), p += a[e].l || 0, p += m), o) {
4610
+ if (f.reset(), S && (a[e].n && (p = -m, x += r.yOffset, x += y ? 1 : 0, y = !1), this.applyTextPropertiesToMatrix(r, f, a[e].line, p, x), p += a[e].l || 0, p += m), o) {
4614
4611
  v = this.globalData.fontManager.getCharData(r.finalText[e], i.fStyle, this.globalData.fontManager.getFontByName(r.f).fFamily);
4615
4612
  var k;
4616
4613
  if (v.t === 1)
@@ -4625,9 +4622,9 @@ function requireLottie() {
4625
4622
  }
4626
4623
  this.textSpans[e].glyph = k, k._debug = !0, k.prepareFrame(0), k.renderFrame(), this.textSpans[e].childSpan.appendChild(k.layerElement), v.t === 1 && this.textSpans[e].childSpan.setAttribute("transform", "scale(" + r.finalSize / 100 + "," + r.finalSize / 100 + ")");
4627
4624
  } else
4628
- _ && l.setAttribute("transform", "translate(" + f.props[12] + "," + f.props[13] + ")"), l.textContent = a[e].val, l.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve");
4625
+ S && l.setAttribute("transform", "translate(" + f.props[12] + "," + f.props[13] + ")"), l.textContent = a[e].val, l.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve");
4629
4626
  }
4630
- _ && l && l.setAttribute("d", c);
4627
+ S && l && l.setAttribute("d", c);
4631
4628
  }
4632
4629
  for (; e < this.textSpans.length; )
4633
4630
  this.textSpans[e].span.style.display = "none", e += 1;
@@ -5123,18 +5120,18 @@ function requireLottie() {
5123
5120
  for (t = 0; t < r; t += 1)
5124
5121
  e[t].closed = !0;
5125
5122
  }, CVShapeElement.prototype.searchShapes = function(e, t, r, i, s) {
5126
- var n, a = e.length - 1, o, l, f = [], c = [], _, p, x, y = [].concat(s);
5123
+ var n, a = e.length - 1, o, l, f = [], c = [], S, p, x, y = [].concat(s);
5127
5124
  for (n = a; n >= 0; n -= 1) {
5128
- if (_ = this.searchProcessedElement(e[n]), _ ? t[n] = r[_ - 1] : e[n]._shouldRender = i, e[n].ty === "fl" || e[n].ty === "st" || e[n].ty === "gf" || e[n].ty === "gs")
5129
- _ ? t[n].style.closed = !1 : t[n] = this.createStyleElement(e[n], y), f.push(t[n].style);
5125
+ if (S = this.searchProcessedElement(e[n]), S ? t[n] = r[S - 1] : e[n]._shouldRender = i, e[n].ty === "fl" || e[n].ty === "st" || e[n].ty === "gf" || e[n].ty === "gs")
5126
+ S ? t[n].style.closed = !1 : t[n] = this.createStyleElement(e[n], y), f.push(t[n].style);
5130
5127
  else if (e[n].ty === "gr") {
5131
- if (!_)
5128
+ if (!S)
5132
5129
  t[n] = this.createGroupElement(e[n]);
5133
5130
  else
5134
5131
  for (l = t[n].it.length, o = 0; o < l; o += 1)
5135
5132
  t[n].prevViewData[o] = t[n].it[o];
5136
5133
  this.searchShapes(e[n].it, t[n].it, t[n].prevViewData, i, y);
5137
- } else e[n].ty === "tr" ? (_ || (x = this.createTransformElement(e[n]), t[n] = x), y.push(t[n]), this.addTransformToStyleList(t[n])) : e[n].ty === "sh" || e[n].ty === "rc" || e[n].ty === "el" || e[n].ty === "sr" ? _ || (t[n] = this.createShapeElement(e[n])) : e[n].ty === "tm" || e[n].ty === "rd" || e[n].ty === "pb" || e[n].ty === "zz" || e[n].ty === "op" ? (_ ? (p = t[n], p.closed = !1) : (p = ShapeModifiers.getModifier(e[n].ty), p.init(this, e[n]), t[n] = p, this.shapeModifiers.push(p)), c.push(p)) : e[n].ty === "rp" && (_ ? (p = t[n], p.closed = !0) : (p = ShapeModifiers.getModifier(e[n].ty), t[n] = p, p.init(this, e, n, t), this.shapeModifiers.push(p), i = !1), c.push(p));
5134
+ } else e[n].ty === "tr" ? (S || (x = this.createTransformElement(e[n]), t[n] = x), y.push(t[n]), this.addTransformToStyleList(t[n])) : e[n].ty === "sh" || e[n].ty === "rc" || e[n].ty === "el" || e[n].ty === "sr" ? S || (t[n] = this.createShapeElement(e[n])) : e[n].ty === "tm" || e[n].ty === "rd" || e[n].ty === "pb" || e[n].ty === "zz" || e[n].ty === "op" ? (S ? (p = t[n], p.closed = !1) : (p = ShapeModifiers.getModifier(e[n].ty), p.init(this, e[n]), t[n] = p, this.shapeModifiers.push(p)), c.push(p)) : e[n].ty === "rp" && (S ? (p = t[n], p.closed = !0) : (p = ShapeModifiers.getModifier(e[n].ty), t[n] = p, p.init(this, e, n, t), this.shapeModifiers.push(p), i = !1), c.push(p));
5138
5135
  this.addProcessedElement(e[n], n + 1);
5139
5136
  }
5140
5137
  for (this.removeTransformFromStyleList(), this.closeStyles(f), a = c.length, n = 0; n < a; n += 1)
@@ -5144,15 +5141,15 @@ function requireLottie() {
5144
5141
  }, CVShapeElement.prototype.renderShapeTransform = function(e, t) {
5145
5142
  (e._opMdf || t.op._mdf || this._isFirstFrame) && (t.opacity = e.opacity, t.opacity *= t.op.v, t._opMdf = !0);
5146
5143
  }, CVShapeElement.prototype.drawLayer = function() {
5147
- var e, t = this.stylesList.length, r, i, s, n, a, o, l = this.globalData.renderer, f = this.globalData.canvasContext, c, _;
5144
+ var e, t = this.stylesList.length, r, i, s, n, a, o, l = this.globalData.renderer, f = this.globalData.canvasContext, c, S;
5148
5145
  for (e = 0; e < t; e += 1)
5149
- if (_ = this.stylesList[e], c = _.type, !((c === "st" || c === "gs") && _.wi === 0 || !_.data._shouldRender || _.coOp === 0 || this.globalData.currentGlobalAlpha === 0)) {
5150
- for (l.save(), a = _.elements, c === "st" || c === "gs" ? (l.ctxStrokeStyle(c === "st" ? _.co : _.grd), l.ctxLineWidth(_.wi), l.ctxLineCap(_.lc), l.ctxLineJoin(_.lj), l.ctxMiterLimit(_.ml || 0)) : l.ctxFillStyle(c === "fl" ? _.co : _.grd), l.ctxOpacity(_.coOp), c !== "st" && c !== "gs" && f.beginPath(), l.ctxTransform(_.preTransforms.finalTransform.props), i = a.length, r = 0; r < i; r += 1) {
5151
- for ((c === "st" || c === "gs") && (f.beginPath(), _.da && (f.setLineDash(_.da), f.lineDashOffset = _.do)), o = a[r].trNodes, n = o.length, s = 0; s < n; s += 1)
5146
+ if (S = this.stylesList[e], c = S.type, !((c === "st" || c === "gs") && S.wi === 0 || !S.data._shouldRender || S.coOp === 0 || this.globalData.currentGlobalAlpha === 0)) {
5147
+ for (l.save(), a = S.elements, c === "st" || c === "gs" ? (l.ctxStrokeStyle(c === "st" ? S.co : S.grd), l.ctxLineWidth(S.wi), l.ctxLineCap(S.lc), l.ctxLineJoin(S.lj), l.ctxMiterLimit(S.ml || 0)) : l.ctxFillStyle(c === "fl" ? S.co : S.grd), l.ctxOpacity(S.coOp), c !== "st" && c !== "gs" && f.beginPath(), l.ctxTransform(S.preTransforms.finalTransform.props), i = a.length, r = 0; r < i; r += 1) {
5148
+ for ((c === "st" || c === "gs") && (f.beginPath(), S.da && (f.setLineDash(S.da), f.lineDashOffset = S.do)), o = a[r].trNodes, n = o.length, s = 0; s < n; s += 1)
5152
5149
  o[s].t === "m" ? f.moveTo(o[s].p[0], o[s].p[1]) : o[s].t === "c" ? f.bezierCurveTo(o[s].pts[0], o[s].pts[1], o[s].pts[2], o[s].pts[3], o[s].pts[4], o[s].pts[5]) : f.closePath();
5153
- (c === "st" || c === "gs") && (l.ctxStroke(), _.da && f.setLineDash(this.dashResetter));
5150
+ (c === "st" || c === "gs") && (l.ctxStroke(), S.da && f.setLineDash(this.dashResetter));
5154
5151
  }
5155
- c !== "st" && c !== "gs" && this.globalData.renderer.ctxFill(_.r), l.restore();
5152
+ c !== "st" && c !== "gs" && this.globalData.renderer.ctxFill(S.r), l.restore();
5156
5153
  }
5157
5154
  }, CVShapeElement.prototype.renderShape = function(e, t, r, i) {
5158
5155
  var s, n = t.length - 1, a;
@@ -5206,7 +5203,7 @@ function requireLottie() {
5206
5203
  else {
5207
5204
  var l = Math.sqrt(Math.pow(a[0] - o[0], 2) + Math.pow(a[1] - o[1], 2)), f = Math.atan2(o[1] - a[1], o[0] - a[0]), c = t.h.v;
5208
5205
  c >= 1 ? c = 0.99 : c <= -1 && (c = -0.99);
5209
- var _ = l * c, p = Math.cos(f + t.a.v) * _ + a[0], x = Math.sin(f + t.a.v) * _ + a[1];
5206
+ var S = l * c, p = Math.cos(f + t.a.v) * S + a[0], x = Math.sin(f + t.a.v) * S + a[1];
5210
5207
  s = n.createRadialGradient(p, x, 0, a[0], a[1], l);
5211
5208
  }
5212
5209
  var y, m = e.g.p, C = t.g.c, d = 1;
@@ -5238,13 +5235,13 @@ function requireLottie() {
5238
5235
  e.sc && (r = !0, this.values.stroke = this.buildColor(e.sc), this.values.sWidth = e.sw);
5239
5236
  var i = this.globalData.fontManager.getFontByName(e.f), s, n, a = e.l, o = this.mHelper;
5240
5237
  this.stroke = r, this.values.fValue = e.finalSize + "px " + this.globalData.fontManager.getFontByName(e.f).fFamily, n = e.finalText.length;
5241
- var l, f, c, _, p, x, y, m, C, d, g = this.data.singleShape, u = e.tr * 1e-3 * e.finalSize, v = 0, E = 0, k = !0, T = 0;
5238
+ var l, f, c, S, p, x, y, m, C, d, g = this.data.singleShape, u = e.tr * 1e-3 * e.finalSize, v = 0, E = 0, k = !0, T = 0;
5242
5239
  for (s = 0; s < n; s += 1) {
5243
5240
  l = this.globalData.fontManager.getCharData(e.finalText[s], i.fStyle, this.globalData.fontManager.getFontByName(e.f).fFamily), f = l && l.data || {}, o.reset(), g && a[s].n && (v = -u, E += e.yOffset, E += k ? 1 : 0, k = !1), p = f.shapes ? f.shapes[0].it : [], y = p.length, o.scale(e.finalSize / 100, e.finalSize / 100), g && this.applyTextPropertiesToMatrix(e, o, a[s].line, v, E), C = createSizedArray(y - 1);
5244
5241
  var A = 0;
5245
5242
  for (x = 0; x < y; x += 1)
5246
5243
  if (p[x].ty === "sh") {
5247
- for (_ = p[x].ks.k.i.length, m = p[x].ks.k, d = [], c = 1; c < _; c += 1)
5244
+ for (S = p[x].ks.k.i.length, m = p[x].ks.k, d = [], c = 1; c < S; c += 1)
5248
5245
  c === 1 && d.push(o.applyToX(m.v[0][0], m.v[0][1], 0), o.applyToY(m.v[0][0], m.v[0][1], 0)), d.push(o.applyToX(m.o[c - 1][0], m.o[c - 1][1], 0), o.applyToY(m.o[c - 1][0], m.o[c - 1][1], 0), o.applyToX(m.i[c][0], m.i[c][1], 0), o.applyToY(m.i[c][0], m.i[c][1], 0), o.applyToX(m.v[c][0], m.v[c][1], 0), o.applyToY(m.v[c][0], m.v[c][1], 0));
5249
5246
  d.push(o.applyToX(m.o[c - 1][0], m.o[c - 1][1], 0), o.applyToY(m.o[c - 1][0], m.o[c - 1][1], 0), o.applyToX(m.i[0][0], m.i[0][1], 0), o.applyToY(m.i[0][0], m.i[0][1], 0), o.applyToX(m.v[0][0], m.v[0][1], 0), o.applyToY(m.v[0][0], m.v[0][1], 0)), C[A] = d, A += 1;
5250
5247
  }
@@ -5258,7 +5255,7 @@ function requireLottie() {
5258
5255
  e.font = this.values.fValue, this.globalData.renderer.ctxLineCap("butt"), this.globalData.renderer.ctxLineJoin("miter"), this.globalData.renderer.ctxMiterLimit(4), this.data.singleShape || this.textAnimator.getMeasures(this.textProperty.currentData, this.lettersChangedFlag);
5259
5256
  var t, r, i, s, n, a, o = this.textAnimator.renderedLetters, l = this.textProperty.currentData.l;
5260
5257
  r = l.length;
5261
- var f, c = null, _ = null, p = null, x, y, m = this.globalData.renderer;
5258
+ var f, c = null, S = null, p = null, x, y, m = this.globalData.renderer;
5262
5259
  for (t = 0; t < r; t += 1)
5263
5260
  if (!l[t].n) {
5264
5261
  if (f = o[t], f && (m.save(), m.ctxTransform(f.p), m.ctxOpacity(f.o)), this.fill) {
@@ -5268,7 +5265,7 @@ function requireLottie() {
5268
5265
  this.globalData.canvasContext.closePath(), m.ctxFill();
5269
5266
  }
5270
5267
  if (this.stroke) {
5271
- for (f && f.sw ? p !== f.sw && (p = f.sw, m.ctxLineWidth(f.sw)) : p !== this.values.sWidth && (p = this.values.sWidth, m.ctxLineWidth(this.values.sWidth)), f && f.sc ? _ !== f.sc && (_ = f.sc, m.ctxStrokeStyle(f.sc)) : _ !== this.values.stroke && (_ = this.values.stroke, m.ctxStrokeStyle(this.values.stroke)), x = this.textSpans[t].elem, s = x.length, this.globalData.canvasContext.beginPath(), i = 0; i < s; i += 1)
5268
+ for (f && f.sw ? p !== f.sw && (p = f.sw, m.ctxLineWidth(f.sw)) : p !== this.values.sWidth && (p = this.values.sWidth, m.ctxLineWidth(this.values.sWidth)), f && f.sc ? S !== f.sc && (S = f.sc, m.ctxStrokeStyle(f.sc)) : S !== this.values.stroke && (S = this.values.stroke, m.ctxStrokeStyle(this.values.stroke)), x = this.textSpans[t].elem, s = x.length, this.globalData.canvasContext.beginPath(), i = 0; i < s; i += 1)
5272
5269
  for (y = x[i], a = y.length, this.globalData.canvasContext.moveTo(y[0], y[1]), n = 2; n < a; n += 6)
5273
5270
  this.globalData.canvasContext.bezierCurveTo(y[n], y[n + 1], y[n + 2], y[n + 3], y[n + 4], y[n + 5]);
5274
5271
  this.globalData.canvasContext.closePath(), m.ctxStroke();
@@ -5603,8 +5600,8 @@ function requireLottie() {
5603
5600
  width: 0,
5604
5601
  height: 0
5605
5602
  }, HShapeElement.prototype.getBoundsOfCurve = function(e, t, r, i) {
5606
- for (var s = [[e[0], i[0]], [e[1], i[1]]], n, a, o, l, f, c, _, p = 0; p < 2; ++p)
5607
- a = 6 * e[p] - 12 * t[p] + 6 * r[p], n = -3 * e[p] + 9 * t[p] - 9 * r[p] + 3 * i[p], o = 3 * t[p] - 3 * e[p], a |= 0, n |= 0, o |= 0, n === 0 && a === 0 || (n === 0 ? (l = -o / a, l > 0 && l < 1 && s[p].push(this.calculateF(l, e, t, r, i, p))) : (f = a * a - 4 * o * n, f >= 0 && (c = (-a + bmSqrt(f)) / (2 * n), c > 0 && c < 1 && s[p].push(this.calculateF(c, e, t, r, i, p)), _ = (-a - bmSqrt(f)) / (2 * n), _ > 0 && _ < 1 && s[p].push(this.calculateF(_, e, t, r, i, p)))));
5603
+ for (var s = [[e[0], i[0]], [e[1], i[1]]], n, a, o, l, f, c, S, p = 0; p < 2; ++p)
5604
+ a = 6 * e[p] - 12 * t[p] + 6 * r[p], n = -3 * e[p] + 9 * t[p] - 9 * r[p] + 3 * i[p], o = 3 * t[p] - 3 * e[p], a |= 0, n |= 0, o |= 0, n === 0 && a === 0 || (n === 0 ? (l = -o / a, l > 0 && l < 1 && s[p].push(this.calculateF(l, e, t, r, i, p))) : (f = a * a - 4 * o * n, f >= 0 && (c = (-a + bmSqrt(f)) / (2 * n), c > 0 && c < 1 && s[p].push(this.calculateF(c, e, t, r, i, p)), S = (-a - bmSqrt(f)) / (2 * n), S > 0 && S < 1 && s[p].push(this.calculateF(S, e, t, r, i, p)))));
5608
5605
  this.shapeBoundingBox.left = bmMin.apply(null, s[0]), this.shapeBoundingBox.top = bmMin.apply(null, s[1]), this.shapeBoundingBox.right = bmMax.apply(null, s[0]), this.shapeBoundingBox.bottom = bmMax.apply(null, s[1]);
5609
5606
  }, HShapeElement.prototype.calculateF = function(e, t, r, i, s, n) {
5610
5607
  return bmPow(1 - e, 3) * t[n] + 3 * bmPow(1 - e, 2) * e * r[n] + 3 * (1 - e) * bmPow(e, 2) * i[n] + bmPow(e, 3) * s[n];
@@ -5670,22 +5667,22 @@ function requireLottie() {
5670
5667
  }
5671
5668
  var a, o, l = e.l;
5672
5669
  o = l.length;
5673
- var f, c, _, p = this.mHelper, x, y = "", m = 0;
5670
+ var f, c, S, p = this.mHelper, x, y = "", m = 0;
5674
5671
  for (a = 0; a < o; a += 1) {
5675
- if (this.globalData.fontManager.chars ? (this.textPaths[m] ? f = this.textPaths[m] : (f = createNS("path"), f.setAttribute("stroke-linecap", lineCapEnum[1]), f.setAttribute("stroke-linejoin", lineJoinEnum[2]), f.setAttribute("stroke-miterlimit", "4")), this.isMasked || (this.textSpans[m] ? (c = this.textSpans[m], _ = c.children[0]) : (c = createTag("div"), c.style.lineHeight = 0, _ = createNS("svg"), _.appendChild(f), styleDiv(c)))) : this.isMasked ? f = this.textPaths[m] ? this.textPaths[m] : createNS("text") : this.textSpans[m] ? (c = this.textSpans[m], f = this.textPaths[m]) : (c = createTag("span"), styleDiv(c), f = createTag("span"), styleDiv(f), c.appendChild(f)), this.globalData.fontManager.chars) {
5672
+ if (this.globalData.fontManager.chars ? (this.textPaths[m] ? f = this.textPaths[m] : (f = createNS("path"), f.setAttribute("stroke-linecap", lineCapEnum[1]), f.setAttribute("stroke-linejoin", lineJoinEnum[2]), f.setAttribute("stroke-miterlimit", "4")), this.isMasked || (this.textSpans[m] ? (c = this.textSpans[m], S = c.children[0]) : (c = createTag("div"), c.style.lineHeight = 0, S = createNS("svg"), S.appendChild(f), styleDiv(c)))) : this.isMasked ? f = this.textPaths[m] ? this.textPaths[m] : createNS("text") : this.textSpans[m] ? (c = this.textSpans[m], f = this.textPaths[m]) : (c = createTag("span"), styleDiv(c), f = createTag("span"), styleDiv(f), c.appendChild(f)), this.globalData.fontManager.chars) {
5676
5673
  var C = this.globalData.fontManager.getCharData(e.finalText[a], i.fStyle, this.globalData.fontManager.getFontByName(e.f).fFamily), d;
5677
5674
  if (C ? d = C.data : d = null, p.reset(), d && d.shapes && d.shapes.length && (x = d.shapes[0].it, p.scale(e.finalSize / 100, e.finalSize / 100), y = this.createPathShape(p, x), f.setAttribute("d", y)), this.isMasked)
5678
5675
  this.innerElem.appendChild(f);
5679
5676
  else {
5680
5677
  if (this.innerElem.appendChild(c), d && d.shapes) {
5681
- document.body.appendChild(_);
5682
- var g = _.getBBox();
5683
- _.setAttribute("width", g.width + 2), _.setAttribute("height", g.height + 2), _.setAttribute("viewBox", g.x - 1 + " " + (g.y - 1) + " " + (g.width + 2) + " " + (g.height + 2));
5684
- var u = _.style, v = "translate(" + (g.x - 1) + "px," + (g.y - 1) + "px)";
5678
+ document.body.appendChild(S);
5679
+ var g = S.getBBox();
5680
+ S.setAttribute("width", g.width + 2), S.setAttribute("height", g.height + 2), S.setAttribute("viewBox", g.x - 1 + " " + (g.y - 1) + " " + (g.width + 2) + " " + (g.height + 2));
5681
+ var u = S.style, v = "translate(" + (g.x - 1) + "px," + (g.y - 1) + "px)";
5685
5682
  u.transform = v, u.webkitTransform = v, l[a].yOffset = g.y - 1;
5686
5683
  } else
5687
- _.setAttribute("width", 1), _.setAttribute("height", 1);
5688
- c.appendChild(_);
5684
+ S.setAttribute("width", 1), S.setAttribute("height", 1);
5685
+ c.appendChild(S);
5689
5686
  }
5690
5687
  } else if (f.textContent = l[a].val, f.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), this.isMasked)
5691
5688
  this.innerElem.appendChild(f);
@@ -5719,9 +5716,9 @@ function requireLottie() {
5719
5716
  if (this.innerElem.getBBox && !this.hidden && (this._isFirstFrame || this._mdf)) {
5720
5717
  var c = this.innerElem.getBBox();
5721
5718
  this.currentBBox.w !== c.width && (this.currentBBox.w = c.width, this.svgElement.setAttribute("width", c.width)), this.currentBBox.h !== c.height && (this.currentBBox.h = c.height, this.svgElement.setAttribute("height", c.height));
5722
- var _ = 1;
5723
- if (this.currentBBox.w !== c.width + _ * 2 || this.currentBBox.h !== c.height + _ * 2 || this.currentBBox.x !== c.x - _ || this.currentBBox.y !== c.y - _) {
5724
- this.currentBBox.w = c.width + _ * 2, this.currentBBox.h = c.height + _ * 2, this.currentBBox.x = c.x - _, this.currentBBox.y = c.y - _, this.svgElement.setAttribute("viewBox", this.currentBBox.x + " " + this.currentBBox.y + " " + this.currentBBox.w + " " + this.currentBBox.h), e = this.svgElement.style;
5719
+ var S = 1;
5720
+ if (this.currentBBox.w !== c.width + S * 2 || this.currentBBox.h !== c.height + S * 2 || this.currentBBox.x !== c.x - S || this.currentBBox.y !== c.y - S) {
5721
+ this.currentBBox.w = c.width + S * 2, this.currentBBox.h = c.height + S * 2, this.currentBBox.x = c.x - S, this.currentBBox.y = c.y - S, this.svgElement.setAttribute("viewBox", this.currentBBox.x + " " + this.currentBBox.y + " " + this.currentBBox.w + " " + this.currentBBox.h), e = this.svgElement.style;
5725
5722
  var p = "translate(" + this.currentBBox.x + "px," + this.currentBBox.y + "px)";
5726
5723
  e.transform = p, e.webkitTransform = p;
5727
5724
  }
@@ -5771,14 +5768,14 @@ function requireLottie() {
5771
5768
  var c = !this._prevMat.equals(this.mat);
5772
5769
  if ((c || this.pe._mdf) && this.comp.threeDElements) {
5773
5770
  r = this.comp.threeDElements.length;
5774
- var _, p, x;
5771
+ var S, p, x;
5775
5772
  for (t = 0; t < r; t += 1)
5776
- if (_ = this.comp.threeDElements[t], _.type === "3d") {
5773
+ if (S = this.comp.threeDElements[t], S.type === "3d") {
5777
5774
  if (c) {
5778
5775
  var y = this.mat.toCSS();
5779
- x = _.container.style, x.transform = y, x.webkitTransform = y;
5776
+ x = S.container.style, x.transform = y, x.webkitTransform = y;
5780
5777
  }
5781
- this.pe._mdf && (p = _.perspectiveElem.style, p.perspective = this.pe.v + "px", p.webkitPerspective = this.pe.v + "px");
5778
+ this.pe._mdf && (p = S.perspectiveElem.style, p.perspective = this.pe.v + "px", p.webkitPerspective = this.pe.v + "px");
5782
5779
  }
5783
5780
  this.mat.clone(this._prevMat);
5784
5781
  }
@@ -5986,27 +5983,27 @@ function requireLottie() {
5986
5983
  }, _typeof$2(e);
5987
5984
  }
5988
5985
  function seedRandom(e, t) {
5989
- var r = this, i = 256, s = 6, n = 52, a = "random", o = t.pow(i, s), l = t.pow(2, n), f = l * 2, c = i - 1, _;
5986
+ var r = this, i = 256, s = 6, n = 52, a = "random", o = t.pow(i, s), l = t.pow(2, n), f = l * 2, c = i - 1, S;
5990
5987
  function p(u, v, E) {
5991
5988
  var k = [];
5992
5989
  v = v === !0 ? {
5993
5990
  entropy: !0
5994
5991
  } : v || {};
5995
5992
  var T = C(m(v.entropy ? [u, g(e)] : u === null ? d() : u, 3), k), A = new x(k), L = function() {
5996
- for (var O = A.g(s), D = o, z = 0; O < l; )
5997
- O = (O + z) * i, D *= i, z = A.g(1);
5998
- for (; O >= f; )
5999
- O /= 2, D /= 2, z >>>= 1;
6000
- return (O + z) / D;
5993
+ for (var B = A.g(s), D = o, z = 0; B < l; )
5994
+ B = (B + z) * i, D *= i, z = A.g(1);
5995
+ for (; B >= f; )
5996
+ B /= 2, D /= 2, z >>>= 1;
5997
+ return (B + z) / D;
6001
5998
  };
6002
5999
  return L.int32 = function() {
6003
6000
  return A.g(4) | 0;
6004
6001
  }, L.quick = function() {
6005
6002
  return A.g(4) / 4294967296;
6006
- }, L.double = L, C(g(A.S), e), (v.pass || E || function($, O, D, z) {
6007
- return z && (z.S && y(z, A), $.state = function() {
6003
+ }, L.double = L, C(g(A.S), e), (v.pass || E || function(H, B, D, z) {
6004
+ return z && (z.S && y(z, A), H.state = function() {
6008
6005
  return y(A, {});
6009
- }), D ? (t[a] = $, O) : $;
6006
+ }), D ? (t[a] = H, B) : H;
6010
6007
  })(L, T, "global" in v ? v.global : this == t, v.state);
6011
6008
  }
6012
6009
  t["seed" + a] = p;
@@ -6016,9 +6013,9 @@ function requireLottie() {
6016
6013
  L[T] = T++;
6017
6014
  for (T = 0; T < i; T++)
6018
6015
  L[T] = L[A = c & A + u[T % E] + (v = L[T])], L[A] = v;
6019
- k.g = function($) {
6020
- for (var O, D = 0, z = k.i, N = k.j, R = k.S; $--; )
6021
- O = R[z = c & z + 1], D = D * i + R[c & (R[z] = R[N = c & N + O]) + (R[N] = O)];
6016
+ k.g = function(H) {
6017
+ for (var B, D = 0, z = k.i, N = k.j, R = k.S; H--; )
6018
+ B = R[z = c & z + 1], D = D * i + R[c & (R[z] = R[N = c & N + B]) + (R[N] = B)];
6022
6019
  return k.i = z, k.j = N, D;
6023
6020
  };
6024
6021
  }
@@ -6455,8 +6452,8 @@ function requireLottie() {
6455
6452
  return 0;
6456
6453
  var c = "";
6457
6454
  "s" in o.keyframes[f - 1] ? c = o.keyframes[f - 1].s : "e" in o.keyframes[f - 2] ? c = o.keyframes[f - 2].e : c = o.keyframes[f - 2].s;
6458
- var _ = l === "unidimensional" ? new Number(c) : Object.assign({}, c);
6459
- return _.time = o.keyframes[f - 1].t / o.elem.comp.globalData.frameRate, _.value = l === "unidimensional" ? c[0] : c, _;
6455
+ var S = l === "unidimensional" ? new Number(c) : Object.assign({}, c);
6456
+ return S.time = o.keyframes[f - 1].t / o.elem.comp.globalData.frameRate, S.value = l === "unidimensional" ? c[0] : c, S;
6460
6457
  }, a.valueAtTime = o.getValueAtTime, a.speedAtTime = o.getSpeedAtTime, a.velocityAtTime = o.getVelocityAtTime, a.propertyGroup = o.propertyGroup;
6461
6458
  }
6462
6459
  function i(a) {
@@ -6471,8 +6468,8 @@ function requireLottie() {
6471
6468
  var o = 1 / a.mult, l = a.data && a.data.l || a.pv.length, f = createTypedArray("float32", l), c = createTypedArray("float32", l);
6472
6469
  return f.value = c, r(f, a, "multidimensional"), function() {
6473
6470
  a.k && a.getValue();
6474
- for (var _ = 0; _ < l; _ += 1)
6475
- c[_] = a.v[_] * o, f[_] = c[_];
6471
+ for (var S = 0; S < l; S += 1)
6472
+ c[S] = a.v[S] * o, f[S] = c[S];
6476
6473
  return f;
6477
6474
  };
6478
6475
  }
@@ -6564,8 +6561,8 @@ function requireLottie() {
6564
6561
  function e(f) {
6565
6562
  var c = new Matrix();
6566
6563
  if (f !== void 0) {
6567
- var _ = this._elem.finalTransform.mProp.getValueAtTime(f);
6568
- _.clone(c);
6564
+ var S = this._elem.finalTransform.mProp.getValueAtTime(f);
6565
+ S.clone(c);
6569
6566
  } else {
6570
6567
  var p = this._elem.finalTransform.mProp;
6571
6568
  p.applyToMatrix(c);
@@ -6573,43 +6570,43 @@ function requireLottie() {
6573
6570
  return c;
6574
6571
  }
6575
6572
  function t(f, c) {
6576
- var _ = this.getMatrix(c);
6577
- return _.props[12] = 0, _.props[13] = 0, _.props[14] = 0, this.applyPoint(_, f);
6573
+ var S = this.getMatrix(c);
6574
+ return S.props[12] = 0, S.props[13] = 0, S.props[14] = 0, this.applyPoint(S, f);
6578
6575
  }
6579
6576
  function r(f, c) {
6580
- var _ = this.getMatrix(c);
6581
- return this.applyPoint(_, f);
6577
+ var S = this.getMatrix(c);
6578
+ return this.applyPoint(S, f);
6582
6579
  }
6583
6580
  function i(f, c) {
6584
- var _ = this.getMatrix(c);
6585
- return _.props[12] = 0, _.props[13] = 0, _.props[14] = 0, this.invertPoint(_, f);
6581
+ var S = this.getMatrix(c);
6582
+ return S.props[12] = 0, S.props[13] = 0, S.props[14] = 0, this.invertPoint(S, f);
6586
6583
  }
6587
6584
  function s(f, c) {
6588
- var _ = this.getMatrix(c);
6589
- return this.invertPoint(_, f);
6585
+ var S = this.getMatrix(c);
6586
+ return this.invertPoint(S, f);
6590
6587
  }
6591
6588
  function n(f, c) {
6592
6589
  if (this._elem.hierarchy && this._elem.hierarchy.length) {
6593
- var _, p = this._elem.hierarchy.length;
6594
- for (_ = 0; _ < p; _ += 1)
6595
- this._elem.hierarchy[_].finalTransform.mProp.applyToMatrix(f);
6590
+ var S, p = this._elem.hierarchy.length;
6591
+ for (S = 0; S < p; S += 1)
6592
+ this._elem.hierarchy[S].finalTransform.mProp.applyToMatrix(f);
6596
6593
  }
6597
6594
  return f.applyToPointArray(c[0], c[1], c[2] || 0);
6598
6595
  }
6599
6596
  function a(f, c) {
6600
6597
  if (this._elem.hierarchy && this._elem.hierarchy.length) {
6601
- var _, p = this._elem.hierarchy.length;
6602
- for (_ = 0; _ < p; _ += 1)
6603
- this._elem.hierarchy[_].finalTransform.mProp.applyToMatrix(f);
6598
+ var S, p = this._elem.hierarchy.length;
6599
+ for (S = 0; S < p; S += 1)
6600
+ this._elem.hierarchy[S].finalTransform.mProp.applyToMatrix(f);
6604
6601
  }
6605
6602
  return f.inversePoint(c);
6606
6603
  }
6607
6604
  function o(f) {
6608
6605
  var c = new Matrix();
6609
6606
  if (c.reset(), this._elem.finalTransform.mProp.applyToMatrix(c), this._elem.hierarchy && this._elem.hierarchy.length) {
6610
- var _, p = this._elem.hierarchy.length;
6611
- for (_ = 0; _ < p; _ += 1)
6612
- this._elem.hierarchy[_].finalTransform.mProp.applyToMatrix(c);
6607
+ var S, p = this._elem.hierarchy.length;
6608
+ for (S = 0; S < p; S += 1)
6609
+ this._elem.hierarchy[S].finalTransform.mProp.applyToMatrix(c);
6613
6610
  return c.inversePoint(f);
6614
6611
  }
6615
6612
  return c.inversePoint(f);
@@ -6619,7 +6616,7 @@ function requireLottie() {
6619
6616
  }
6620
6617
  return function(f) {
6621
6618
  var c;
6622
- function _(m) {
6619
+ function S(m) {
6623
6620
  x.mask = new MaskManagerInterface(m, f);
6624
6621
  }
6625
6622
  function p(m) {
@@ -6677,7 +6674,7 @@ function requireLottie() {
6677
6674
  return f.isInRange;
6678
6675
  }
6679
6676
  }
6680
- }), x.startTime = f.data.st, x.index = f.data.ind, x.source = f.data.refId, x.height = f.data.ty === 0 ? f.data.h : 100, x.width = f.data.ty === 0 ? f.data.w : 100, x.inPoint = f.data.ip / f.comp.globalData.frameRate, x.outPoint = f.data.op / f.comp.globalData.frameRate, x._name = f.data.nm, x.registerMaskInterface = _, x.registerEffectsInterface = p, x;
6677
+ }), x.startTime = f.data.st, x.index = f.data.ind, x.source = f.data.refId, x.height = f.data.ty === 0 ? f.data.h : 100, x.width = f.data.ty === 0 ? f.data.w : 100, x.inPoint = f.data.ip / f.comp.globalData.frameRate, x.outPoint = f.data.op / f.comp.globalData.frameRate, x._name = f.data.nm, x.registerMaskInterface = S, x.registerEffectsInterface = p, x;
6681
6678
  };
6682
6679
  }(), propertyGroupFactory = /* @__PURE__ */ function() {
6683
6680
  return function(e, t) {
@@ -6704,7 +6701,7 @@ function requireLottie() {
6704
6701
  var a = [], o = s.data.ef, l, f = s.effectsManager.effectElements.length;
6705
6702
  for (l = 0; l < f; l += 1)
6706
6703
  a.push(r(o[l], s.effectsManager.effectElements[l], n, s));
6707
- var c = s.data.ef || [], _ = function(x) {
6704
+ var c = s.data.ef || [], S = function(x) {
6708
6705
  for (l = 0, f = c.length; l < f; ) {
6709
6706
  if (x === c[l].nm || x === c[l].mn || x === c[l].ix)
6710
6707
  return a[l];
@@ -6712,11 +6709,11 @@ function requireLottie() {
6712
6709
  }
6713
6710
  return null;
6714
6711
  };
6715
- return Object.defineProperty(_, "numProperties", {
6712
+ return Object.defineProperty(S, "numProperties", {
6716
6713
  get: function() {
6717
6714
  return c.length;
6718
6715
  }
6719
- }), _;
6716
+ }), S;
6720
6717
  }
6721
6718
  return null;
6722
6719
  }
@@ -6729,9 +6726,9 @@ function requireLottie() {
6729
6726
  }
6730
6727
  throw new Error();
6731
6728
  }
6732
- var f = propertyGroupFactory(l, a), c = [], _, p = s.ef.length;
6733
- for (_ = 0; _ < p; _ += 1)
6734
- s.ef[_].ty === 5 ? c.push(r(s.ef[_], n.effectElements[_], n.effectElements[_].propertyGroup, o)) : c.push(i(n.effectElements[_], s.ef[_].ty, o, f));
6729
+ var f = propertyGroupFactory(l, a), c = [], S, p = s.ef.length;
6730
+ for (S = 0; S < p; S += 1)
6731
+ s.ef[S].ty === 5 ? c.push(r(s.ef[S], n.effectElements[S], n.effectElements[S].propertyGroup, o)) : c.push(i(n.effectElements[S], s.ef[S].ty, o, f));
6735
6732
  return s.mn === "ADBE Color Control" && Object.defineProperty(l, "color", {
6736
6733
  get: function() {
6737
6734
  return c[0]();
@@ -6797,7 +6794,7 @@ function requireLottie() {
6797
6794
  function e(y, m, C) {
6798
6795
  var d = [], g, u = y ? y.length : 0;
6799
6796
  for (g = 0; g < u; g += 1)
6800
- y[g].ty === "gr" ? d.push(r(y[g], m[g], C)) : y[g].ty === "fl" ? d.push(i(y[g], m[g], C)) : y[g].ty === "st" ? d.push(a(y[g], m[g], C)) : y[g].ty === "tm" ? d.push(o(y[g], m[g], C)) : y[g].ty === "tr" || (y[g].ty === "el" ? d.push(f(y[g], m[g], C)) : y[g].ty === "sr" ? d.push(c(y[g], m[g], C)) : y[g].ty === "sh" ? d.push(ShapePathInterface(y[g], m[g], C)) : y[g].ty === "rc" ? d.push(_(y[g], m[g], C)) : y[g].ty === "rd" ? d.push(p(y[g], m[g], C)) : y[g].ty === "rp" ? d.push(x(y[g], m[g], C)) : y[g].ty === "gf" ? d.push(s(y[g], m[g], C)) : d.push(n(y[g], m[g])));
6797
+ y[g].ty === "gr" ? d.push(r(y[g], m[g], C)) : y[g].ty === "fl" ? d.push(i(y[g], m[g], C)) : y[g].ty === "st" ? d.push(a(y[g], m[g], C)) : y[g].ty === "tm" ? d.push(o(y[g], m[g], C)) : y[g].ty === "tr" || (y[g].ty === "el" ? d.push(f(y[g], m[g], C)) : y[g].ty === "sr" ? d.push(c(y[g], m[g], C)) : y[g].ty === "sh" ? d.push(ShapePathInterface(y[g], m[g], C)) : y[g].ty === "rc" ? d.push(S(y[g], m[g], C)) : y[g].ty === "rd" ? d.push(p(y[g], m[g], C)) : y[g].ty === "rp" ? d.push(x(y[g], m[g], C)) : y[g].ty === "gf" ? d.push(s(y[g], m[g], C)) : d.push(n(y[g], m[g])));
6801
6798
  return d;
6802
6799
  }
6803
6800
  function t(y, m, C) {
@@ -7026,7 +7023,7 @@ function requireLottie() {
7026
7023
  }
7027
7024
  }), d.mn = y.mn, d;
7028
7025
  }
7029
- function _(y, m, C) {
7026
+ function S(y, m, C) {
7030
7027
  function d(v) {
7031
7028
  return y.p.ix === v ? d.position : y.r.ix === v ? d.roundness : y.s.ix === v || v === "Size" || v === "ADBE Vector Rect Size" ? d.size : null;
7032
7029
  }
@@ -7178,9 +7175,9 @@ function requireLottie() {
7178
7175
  function r(a) {
7179
7176
  var o = -0.01, l = this.getValueAtTime(a), f = this.getValueAtTime(a + o), c = 0;
7180
7177
  if (l.length) {
7181
- var _;
7182
- for (_ = 0; _ < l.length; _ += 1)
7183
- c += Math.pow(f[_] - l[_], 2);
7178
+ var S;
7179
+ for (S = 0; S < l.length; S += 1)
7180
+ c += Math.pow(f[S] - l[S], 2);
7184
7181
  c = Math.sqrt(c) * 100;
7185
7182
  } else
7186
7183
  c = 0;
@@ -7192,9 +7189,9 @@ function requireLottie() {
7192
7189
  var o = -1e-3, l = this.getValueAtTime(a), f = this.getValueAtTime(a + o), c;
7193
7190
  if (l.length) {
7194
7191
  c = createTypedArray("float32", l.length);
7195
- var _;
7196
- for (_ = 0; _ < l.length; _ += 1)
7197
- c[_] = (f[_] - l[_]) / o;
7192
+ var S;
7193
+ for (S = 0; S < l.length; S += 1)
7194
+ c[S] = (f[S] - l[S]) / o;
7198
7195
  } else
7199
7196
  c = (f - l) / o;
7200
7197
  return c;
@@ -7230,13 +7227,13 @@ function requireLottie() {
7230
7227
  if (T % 2 !== 0)
7231
7228
  return this.getValueAtTime((g - (m - u) % g + u) / this.comp.globalData.frameRate, 0);
7232
7229
  } else if (p === "offset") {
7233
- var A = this.getValueAtTime(u / this.comp.globalData.frameRate, 0), L = this.getValueAtTime(d / this.comp.globalData.frameRate, 0), $ = this.getValueAtTime(((m - u) % g + u) / this.comp.globalData.frameRate, 0), O = Math.floor((m - u) / g);
7230
+ var A = this.getValueAtTime(u / this.comp.globalData.frameRate, 0), L = this.getValueAtTime(d / this.comp.globalData.frameRate, 0), H = this.getValueAtTime(((m - u) % g + u) / this.comp.globalData.frameRate, 0), B = Math.floor((m - u) / g);
7234
7231
  if (this.pv.length) {
7235
7232
  for (k = new Array(A.length), E = k.length, v = 0; v < E; v += 1)
7236
- k[v] = (L[v] - A[v]) * O + $[v];
7233
+ k[v] = (L[v] - A[v]) * B + H[v];
7237
7234
  return k;
7238
7235
  }
7239
- return (L - A) * O + $;
7236
+ return (L - A) * B + H;
7240
7237
  } else if (p === "continue") {
7241
7238
  var D = this.getValueAtTime(d / this.comp.globalData.frameRate, 0), z = this.getValueAtTime((d - 1e-3) / this.comp.globalData.frameRate, 0);
7242
7239
  if (this.pv.length) {
@@ -7263,13 +7260,13 @@ function requireLottie() {
7263
7260
  if (T % 2 === 0)
7264
7261
  return this.getValueAtTime(((d - m) % g + d) / this.comp.globalData.frameRate, 0);
7265
7262
  } else if (p === "offset") {
7266
- var A = this.getValueAtTime(d / this.comp.globalData.frameRate, 0), L = this.getValueAtTime(u / this.comp.globalData.frameRate, 0), $ = this.getValueAtTime((g - (d - m) % g + d) / this.comp.globalData.frameRate, 0), O = Math.floor((d - m) / g) + 1;
7263
+ var A = this.getValueAtTime(d / this.comp.globalData.frameRate, 0), L = this.getValueAtTime(u / this.comp.globalData.frameRate, 0), H = this.getValueAtTime((g - (d - m) % g + d) / this.comp.globalData.frameRate, 0), B = Math.floor((d - m) / g) + 1;
7267
7264
  if (this.pv.length) {
7268
7265
  for (k = new Array(A.length), E = k.length, v = 0; v < E; v += 1)
7269
- k[v] = $[v] - (L[v] - A[v]) * O;
7266
+ k[v] = H[v] - (L[v] - A[v]) * B;
7270
7267
  return k;
7271
7268
  }
7272
- return $ - (L - A) * O;
7269
+ return H - (L - A) * B;
7273
7270
  } else if (p === "continue") {
7274
7271
  var D = this.getValueAtTime(d / this.comp.globalData.frameRate, 0), z = this.getValueAtTime((d + 1e-3) / this.comp.globalData.frameRate, 0);
7275
7272
  if (this.pv.length) {
@@ -7335,8 +7332,8 @@ function requireLottie() {
7335
7332
  } else
7336
7333
  x.translate(T * this.px.mult, A * this.py.mult, 0);
7337
7334
  } else {
7338
- var $ = this.p.getValueAtTime(p);
7339
- x.translate($[0] * this.p.mult, $[1] * this.p.mult, -$[2] * this.p.mult);
7335
+ var H = this.p.getValueAtTime(p);
7336
+ x.translate(H[0] * this.p.mult, H[1] * this.p.mult, -H[2] * this.p.mult);
7340
7337
  }
7341
7338
  return x;
7342
7339
  }
@@ -7422,9 +7419,9 @@ function requireLottie() {
7422
7419
  setGroupProperty: expressionHelpers.setGroupProperty,
7423
7420
  getValueAtTime: expressionHelpers.getStaticValueAtTime
7424
7421
  }, extendPrototype([c], l), extendPrototype([c], f), f.prototype.getValueAtTime = o, f.prototype.initiateExpression = ExpressionManager.initiateExpression;
7425
- var _ = ShapePropertyFactory.getShapeProp;
7422
+ var S = ShapePropertyFactory.getShapeProp;
7426
7423
  ShapePropertyFactory.getShapeProp = function(p, x, y, m, C) {
7427
- var d = _(p, x, y, m, C);
7424
+ var d = S(p, x, y, m, C);
7428
7425
  return d.propertyIndex = x.ix, d.lock = !1, y === 3 ? expressionHelpers.searchExpressions(p, x.pt, d) : y === 4 && expressionHelpers.searchExpressions(p, x.ks, d), d.k && p.addDynamicProperty(d), d;
7429
7426
  };
7430
7427
  }
@@ -7520,8 +7517,8 @@ function requireLottie() {
7520
7517
  if (this.filterManager.effectElements[7].p.v !== 0 || this.filterManager.effectElements[8].p.v !== 100) {
7521
7518
  var a = Math.min(this.filterManager.effectElements[7].p.v, this.filterManager.effectElements[8].p.v) * 0.01, o = Math.max(this.filterManager.effectElements[7].p.v, this.filterManager.effectElements[8].p.v) * 0.01, l = s.getTotalLength();
7522
7519
  n = "0 0 0 " + l * a + " ";
7523
- var f = l * (o - a), c = 1 + this.filterManager.effectElements[4].p.v * 2 * this.filterManager.effectElements[9].p.v * 0.01, _ = Math.floor(f / c), p;
7524
- for (p = 0; p < _; p += 1)
7520
+ var f = l * (o - a), c = 1 + this.filterManager.effectElements[4].p.v * 2 * this.filterManager.effectElements[9].p.v * 0.01, S = Math.floor(f / c), p;
7521
+ for (p = 0; p < S; p += 1)
7525
7522
  n += "1 " + this.filterManager.effectElements[4].p.v * 2 * this.filterManager.effectElements[9].p.v * 0.01 + " ";
7526
7523
  n += "0 " + l * 10 + " 0 0";
7527
7524
  } else
@@ -7563,8 +7560,8 @@ function requireLottie() {
7563
7560
  }, SVGProLevelsFilter.prototype.getTableValue = function(e, t, r, i, s) {
7564
7561
  for (var n = 0, a = 256, o, l = Math.min(e, t), f = Math.max(e, t), c = Array.call(null, {
7565
7562
  length: a
7566
- }), _, p = 0, x = s - i, y = t - e; n <= 256; )
7567
- o = n / 256, o <= l ? _ = y < 0 ? s : i : o >= f ? _ = y < 0 ? i : s : _ = i + x * Math.pow((o - e) / y, 1 / r), c[p] = _, p += 1, n += 256 / (a - 1);
7563
+ }), S, p = 0, x = s - i, y = t - e; n <= 256; )
7564
+ o = n / 256, o <= l ? S = y < 0 ? s : i : o >= f ? S = y < 0 ? i : s : S = i + x * Math.pow((o - e) / y, 1 / r), c[p] = S, p += 1, n += 256 / (a - 1);
7568
7565
  return c.join(" ");
7569
7566
  }, SVGProLevelsFilter.prototype.renderFrame = function(e) {
7570
7567
  if (e || this.filterManager._mdf) {
@@ -7583,8 +7580,8 @@ function requireLottie() {
7583
7580
  f.setAttribute("flood-color", "#00ff00"), f.setAttribute("flood-opacity", "1"), f.setAttribute("result", i + "_drop_shadow_3"), this.feFlood = f, e.appendChild(f);
7584
7581
  var c = createNS("feComposite");
7585
7582
  c.setAttribute("in", i + "_drop_shadow_3"), c.setAttribute("in2", i + "_drop_shadow_2"), c.setAttribute("operator", "in"), c.setAttribute("result", i + "_drop_shadow_4"), e.appendChild(c);
7586
- var _ = this.createMergeNode(i, [i + "_drop_shadow_4", s]);
7587
- e.appendChild(_);
7583
+ var S = this.createMergeNode(i, [i + "_drop_shadow_4", s]);
7584
+ e.appendChild(S);
7588
7585
  }
7589
7586
  extendPrototype([SVGComposableEffect], SVGDropShadowEffect), SVGDropShadowEffect.prototype.renderFrame = function(e) {
7590
7587
  if (e || this.filterManager._mdf) {
@@ -7974,7 +7971,7 @@ const _sfc_main$f = defineComponent({
7974
7971
  };
7975
7972
  }
7976
7973
  });
7977
- function _sfc_render$5(e, t, r, i, s, n) {
7974
+ function _sfc_render$4(e, t, r, i, s, n) {
7978
7975
  return openBlock(), createElementBlock("div", {
7979
7976
  ref: "lottieAnimationContainer",
7980
7977
  class: "lottie-animation-container",
@@ -7983,13 +7980,13 @@ function _sfc_render$5(e, t, r, i, s, n) {
7983
7980
  onMouseleave: t[1] || (t[1] = (...a) => e.hoverEnded && e.hoverEnded(...a))
7984
7981
  }, null, 36);
7985
7982
  }
7986
- var Vue3Lottie = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["render", _sfc_render$5]]);
7987
- const _hoisted_1$9 = { class: "p-3 w-full h-full" }, _hoisted_2$2 = { class: "shrink-0 w-full h-full" }, _sfc_main$e = /* @__PURE__ */ defineComponent({
7983
+ var Vue3Lottie = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["render", _sfc_render$4]]);
7984
+ const _hoisted_1$a = { class: "p-3 w-full h-full" }, _hoisted_2$2 = { class: "shrink-0 w-full h-full" }, _sfc_main$e = /* @__PURE__ */ defineComponent({
7988
7985
  __name: "LaunchTemplate",
7989
7986
  emits: ["open"],
7990
7987
  setup(e, { emit: t }) {
7991
7988
  const r = t;
7992
- return (i, s) => (openBlock(), createElementBlock("div", _hoisted_1$9, [
7989
+ return (i, s) => (openBlock(), createElementBlock("div", _hoisted_1$a, [
7993
7990
  createElementVNode("button", {
7994
7991
  class: normalizeClass([
7995
7992
  "flex w-full h-full items-center justify-center rounded-full overflow-hidden",
@@ -8021,7 +8018,7 @@ const _hoisted_1$9 = { class: "p-3 w-full h-full" }, _hoisted_2$2 = { class: "sh
8021
8018
  for (const [i, s] of t)
8022
8019
  r[i] = s;
8023
8020
  return r;
8024
- }, _sfc_main$c = {}, _hoisted_1$8 = {
8021
+ }, _sfc_main$c = {}, _hoisted_1$9 = {
8025
8022
  xmlns: "http://www.w3.org/2000/svg",
8026
8023
  fill: "none",
8027
8024
  viewBox: "0 0 24 24",
@@ -8029,8 +8026,8 @@ const _hoisted_1$9 = { class: "p-3 w-full h-full" }, _hoisted_2$2 = { class: "sh
8029
8026
  stroke: "currentColor",
8030
8027
  class: "size-6"
8031
8028
  };
8032
- function _sfc_render$4(e, t) {
8033
- return openBlock(), createElementBlock("svg", _hoisted_1$8, t[0] || (t[0] = [
8029
+ function _sfc_render$3(e, t) {
8030
+ return openBlock(), createElementBlock("svg", _hoisted_1$9, t[0] || (t[0] = [
8034
8031
  createElementVNode("path", {
8035
8032
  "stroke-linecap": "round",
8036
8033
  "stroke-linejoin": "round",
@@ -8038,32 +8035,32 @@ function _sfc_render$4(e, t) {
8038
8035
  }, null, -1)
8039
8036
  ]));
8040
8037
  }
8041
- const CloseIcon = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$4]]), _sfc_main$b = {}, _hoisted_1$7 = {
8038
+ const CloseIcon = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$3]]), _sfc_main$b = {}, _hoisted_1$8 = {
8042
8039
  xmlns: "http://www.w3.org/2000/svg",
8043
8040
  width: "800",
8044
8041
  height: "800",
8045
8042
  viewBox: "0 0 800 800",
8046
8043
  fill: "none"
8047
8044
  };
8048
- function _sfc_render$3(e, t) {
8049
- return openBlock(), createElementBlock("svg", _hoisted_1$7, t[0] || (t[0] = [
8050
- createStaticVNode('<g clip-path="url(#clip0_396_191)"><circle cx="400" cy="400" r="400" fill="#0C0C16"></circle><path fill-rule="evenodd" clip-rule="evenodd" d="M400 70.6969C218.131 70.6969 70.6969 218.131 70.6969 400C70.6969 581.869 218.131 729.302 400 729.302C581.869 729.302 729.302 581.869 729.302 400C729.302 218.131 581.869 70.6969 400 70.6969ZM32.7812 400C32.7812 197.191 197.191 32.7812 400 32.7812C602.809 32.7812 767.218 197.191 767.218 400C767.218 602.809 602.809 767.218 400 767.218C197.191 767.218 32.7812 602.809 32.7812 400Z" fill="white"></path><path d="M398.598 156.088C280.531 156.088 184.823 252.692 184.823 371.839C184.823 490.986 280.531 486.482 398.598 486.482C516.665 486.482 612.385 490.998 612.385 371.839C612.385 252.681 516.665 156.088 398.598 156.088ZM295.031 356.592C265.733 362.36 237.066 342.093 231.011 311.312C224.945 280.531 243.776 250.9 273.075 245.132C302.373 239.364 331.04 259.643 337.095 290.413C343.161 321.193 324.318 350.825 295.031 356.592ZM502.177 356.592C472.878 350.825 454.036 321.193 460.102 290.413C466.157 259.643 494.824 239.364 524.122 245.132C553.42 250.9 572.252 280.531 566.197 311.312C560.13 342.093 531.464 362.36 502.177 356.592Z" fill="white"></path><path d="M155.64 364.842C155.64 388.533 157.834 411.374 161.879 432.803C162.2 434.503 160.121 435.629 158.868 434.423C137.762 414.212 125.583 390.372 125.583 364.842C125.583 339.312 137.762 315.471 158.868 295.261C160.121 294.054 162.2 295.18 161.879 296.881C157.823 318.309 155.64 341.139 155.64 364.842Z" fill="white"></path><path d="M641.568 364.842C641.568 341.15 639.374 318.309 635.329 296.881C635.008 295.18 637.087 294.054 638.34 295.261C659.446 315.471 671.625 339.312 671.625 364.842C671.625 390.372 659.446 414.212 638.34 434.423C637.087 435.629 635.008 434.503 635.329 432.803C639.385 411.374 641.568 388.545 641.568 364.842Z" fill="white"></path><path d="M165.983 534.527C178.944 532.101 187.776 521.185 185.71 510.145C183.644 499.105 171.462 492.122 158.501 494.548C145.54 496.973 136.708 507.889 138.774 518.929C140.84 529.969 153.022 536.952 165.983 534.527Z" fill="white"></path><path d="M661.019 518.896C663.085 507.856 654.253 496.94 641.292 494.514C628.331 492.089 616.149 499.072 614.083 510.112C612.017 521.152 620.849 532.068 633.81 534.493C646.771 536.919 658.953 529.936 661.019 518.896Z" fill="white"></path><path d="M346.275 367.669C346.275 367.669 367.876 392.762 401.621 392.762C435.366 392.762 453.542 367.669 453.542 367.669" stroke="#0C0C16" stroke-width="20" stroke-miterlimit="10" stroke-linecap="round"></path><path d="M534.733 296.602C537.949 286.239 532.558 275.356 522.691 272.294C512.825 269.232 502.22 275.152 499.004 285.515C495.788 295.878 501.179 306.761 511.045 309.823C520.912 312.885 531.517 306.966 534.733 296.602Z" fill="white"></path><path d="M288.955 309.813C298.821 306.752 304.212 295.869 300.997 285.505C297.781 275.142 287.175 269.223 277.309 272.284C267.443 275.346 262.051 286.229 265.267 296.593C268.483 306.956 279.088 312.875 288.955 309.813Z" fill="white"></path><path d="M556.132 525.41C556.132 563.187 539.392 601.103 510.197 629.436C501.947 637.445 492.997 644.465 483.506 650.416L474.705 728.499L468.11 786.821C467.915 788.59 466.525 789.992 464.755 790.187C443.155 792.611 421.29 793.841 399.219 793.841C377.147 793.841 355.294 792.611 333.694 790.187C331.924 789.992 330.534 788.59 330.327 786.821L323.744 728.499L314.805 649.267C305.981 643.568 297.639 636.951 289.907 629.459C260.643 601.103 243.868 563.187 243.868 525.41C243.868 501.638 250.555 478.521 263.217 458.54C275.143 439.709 292.423 423.543 313.196 411.812C321.319 407.251 331.292 407.343 339.266 412.008C347.274 416.695 352.249 425.381 352.249 434.676V487.264C352.249 502.166 352.743 518.769 358.695 527.168C364.451 535.291 379.055 539.415 402.08 539.415C425.105 539.415 439.697 535.291 445.453 527.168C451.416 518.769 451.91 502.166 451.91 487.264V437.135C451.91 427.61 457.069 418.809 465.376 414.191C473.625 409.583 483.748 409.802 491.79 414.765C512.23 427.346 528.316 443.719 539.3 462.585C550.272 481.462 556.132 502.833 556.132 525.41Z" fill="#0C0C16"></path><path d="M451.095 666.318C452.761 665.732 454.461 667.111 454.254 668.869L447.809 726.053L443.638 763.003C443.511 764.118 442.627 765.014 441.512 765.129C427.828 766.657 413.983 767.438 400 767.438C386.018 767.438 372.173 766.657 358.489 765.129C357.374 765.002 356.489 764.118 356.363 763.003L352.192 726.053L345.735 668.857C345.54 667.1 347.24 665.732 348.906 666.307C365.187 672.006 382.433 674.981 400.046 674.981C417.66 674.981 434.848 672.017 451.106 666.33L451.095 666.318Z" fill="white"></path><path d="M479.451 437.721C477.704 436.641 475.464 437.928 475.464 440.031V490.16C475.464 531.97 471.155 565.865 402.08 565.865C333.004 565.865 328.696 531.97 328.696 490.16V437.572C328.696 435.527 326.547 434.229 324.789 435.217C290.137 454.795 267.422 488.138 267.422 528.305C267.422 593.267 326.869 653.852 400.092 653.852C473.315 653.852 532.578 593.267 532.578 528.305C532.578 489.792 511.713 457.575 479.451 437.721ZM400.058 634.377C388.821 634.377 379.721 623.692 379.721 610.502C379.721 597.312 388.821 586.626 400.058 586.626C411.294 586.626 420.394 597.323 420.394 610.502C420.394 623.68 411.294 634.377 400.058 634.377Z" fill="white"></path></g><defs><clipPath id="clip0_396_191"><rect width="800" height="800" fill="white"></rect></clipPath></defs>', 2)
8045
+ function _sfc_render$2(e, t) {
8046
+ return openBlock(), createElementBlock("svg", _hoisted_1$8, t[0] || (t[0] = [
8047
+ createStaticVNode('<g clip-path="url(#clip0_396_191)"><circle cx="400" cy="400" r="400" fill="#07070B"></circle><path fill-rule="evenodd" clip-rule="evenodd" d="M400 70.6969C218.131 70.6969 70.6969 218.131 70.6969 400C70.6969 581.869 218.131 729.302 400 729.302C581.869 729.302 729.302 581.869 729.302 400C729.302 218.131 581.869 70.6969 400 70.6969ZM32.7812 400C32.7812 197.191 197.191 32.7812 400 32.7812C602.809 32.7812 767.218 197.191 767.218 400C767.218 602.809 602.809 767.218 400 767.218C197.191 767.218 32.7812 602.809 32.7812 400Z" fill="white"></path><path d="M398.598 156.088C280.531 156.088 184.823 252.692 184.823 371.839C184.823 490.986 280.531 486.482 398.598 486.482C516.665 486.482 612.385 490.998 612.385 371.839C612.385 252.681 516.665 156.088 398.598 156.088ZM295.031 356.592C265.733 362.36 237.066 342.093 231.011 311.312C224.945 280.531 243.776 250.9 273.075 245.132C302.373 239.364 331.04 259.643 337.095 290.413C343.161 321.193 324.318 350.825 295.031 356.592ZM502.177 356.592C472.878 350.825 454.036 321.193 460.102 290.413C466.157 259.643 494.824 239.364 524.122 245.132C553.42 250.9 572.252 280.531 566.197 311.312C560.13 342.093 531.464 362.36 502.177 356.592Z" fill="white"></path><path d="M155.64 364.842C155.64 388.533 157.834 411.374 161.879 432.803C162.2 434.503 160.121 435.629 158.868 434.423C137.762 414.212 125.583 390.372 125.583 364.842C125.583 339.312 137.762 315.471 158.868 295.261C160.121 294.054 162.2 295.18 161.879 296.881C157.823 318.309 155.64 341.139 155.64 364.842Z" fill="white"></path><path d="M641.568 364.842C641.568 341.15 639.374 318.309 635.329 296.881C635.008 295.18 637.087 294.054 638.34 295.261C659.446 315.471 671.625 339.312 671.625 364.842C671.625 390.372 659.446 414.212 638.34 434.423C637.087 435.629 635.008 434.503 635.329 432.803C639.385 411.374 641.568 388.545 641.568 364.842Z" fill="white"></path><path d="M165.983 534.527C178.944 532.101 187.776 521.185 185.71 510.145C183.644 499.105 171.462 492.122 158.501 494.548C145.54 496.973 136.708 507.889 138.774 518.929C140.84 529.969 153.022 536.952 165.983 534.527Z" fill="white"></path><path d="M661.019 518.896C663.085 507.856 654.253 496.94 641.292 494.514C628.331 492.089 616.149 499.072 614.083 510.112C612.017 521.152 620.849 532.068 633.81 534.493C646.771 536.919 658.953 529.936 661.019 518.896Z" fill="white"></path><path d="M346.275 367.669C346.275 367.669 367.876 392.762 401.621 392.762C435.366 392.762 453.542 367.669 453.542 367.669" stroke="#07070B" stroke-width="20" stroke-miterlimit="10" stroke-linecap="round"></path><path d="M534.733 296.602C537.949 286.239 532.558 275.356 522.691 272.294C512.825 269.232 502.22 275.152 499.004 285.515C495.788 295.878 501.179 306.761 511.045 309.823C520.912 312.885 531.517 306.966 534.733 296.602Z" fill="white"></path><path d="M288.955 309.813C298.821 306.752 304.212 295.869 300.997 285.505C297.781 275.142 287.175 269.223 277.309 272.284C267.443 275.346 262.051 286.229 265.267 296.593C268.483 306.956 279.088 312.875 288.955 309.813Z" fill="white"></path><path d="M556.132 525.41C556.132 563.187 539.392 601.103 510.197 629.436C501.947 637.445 492.997 644.465 483.506 650.416L474.705 728.499L468.11 786.821C467.915 788.59 466.525 789.992 464.755 790.187C443.155 792.611 421.29 793.841 399.219 793.841C377.147 793.841 355.294 792.611 333.694 790.187C331.924 789.992 330.534 788.59 330.327 786.821L323.744 728.499L314.805 649.267C305.981 643.568 297.639 636.951 289.907 629.459C260.643 601.103 243.868 563.187 243.868 525.41C243.868 501.638 250.555 478.521 263.217 458.54C275.143 439.709 292.423 423.543 313.196 411.812C321.319 407.251 331.292 407.343 339.266 412.008C347.274 416.695 352.249 425.381 352.249 434.676V487.264C352.249 502.166 352.743 518.769 358.695 527.168C364.451 535.291 379.055 539.415 402.08 539.415C425.105 539.415 439.697 535.291 445.453 527.168C451.416 518.769 451.91 502.166 451.91 487.264V437.135C451.91 427.61 457.069 418.809 465.376 414.191C473.625 409.583 483.748 409.802 491.79 414.765C512.23 427.346 528.316 443.719 539.3 462.585C550.272 481.462 556.132 502.833 556.132 525.41Z" fill="#07070B"></path><path d="M451.095 666.318C452.761 665.732 454.461 667.111 454.254 668.869L447.809 726.053L443.638 763.003C443.511 764.118 442.627 765.014 441.512 765.129C427.828 766.657 413.983 767.438 400 767.438C386.018 767.438 372.173 766.657 358.489 765.129C357.374 765.002 356.489 764.118 356.363 763.003L352.192 726.053L345.735 668.857C345.54 667.1 347.24 665.732 348.906 666.307C365.187 672.006 382.433 674.981 400.046 674.981C417.66 674.981 434.848 672.017 451.106 666.33L451.095 666.318Z" fill="white"></path><path d="M479.451 437.721C477.704 436.641 475.464 437.928 475.464 440.031V490.16C475.464 531.97 471.155 565.865 402.08 565.865C333.004 565.865 328.696 531.97 328.696 490.16V437.572C328.696 435.527 326.547 434.229 324.789 435.217C290.137 454.795 267.422 488.138 267.422 528.305C267.422 593.267 326.869 653.852 400.092 653.852C473.315 653.852 532.578 593.267 532.578 528.305C532.578 489.792 511.713 457.575 479.451 437.721ZM400.058 634.377C388.821 634.377 379.721 623.692 379.721 610.502C379.721 597.312 388.821 586.626 400.058 586.626C411.294 586.626 420.394 597.323 420.394 610.502C420.394 623.68 411.294 634.377 400.058 634.377Z" fill="white"></path></g><defs><clipPath id="clip0_396_191"><rect width="800" height="800" fill="white"></rect></clipPath></defs>', 2)
8051
8048
  ]));
8052
8049
  }
8053
- const AgientIcon = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$3]]), _hoisted_1$6 = { class: "flex gap-x-3 p-4 items-center border-b border-semantic-border" }, _hoisted_2$1 = { class: "text-semantic-text-muted text-body-small" }, _sfc_main$a = /* @__PURE__ */ defineComponent({
8050
+ const AgientIcon = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$2]]), _hoisted_1$7 = { class: "flex gap-x-3 p-4 items-center border-b border-semantic-border" }, _hoisted_2$1 = { class: "text-body-large-bold" }, _sfc_main$a = /* @__PURE__ */ defineComponent({
8054
8051
  __name: "ChatHeader",
8055
8052
  props: {
8056
8053
  isPlayground: { type: Boolean },
8057
- online: { type: Boolean }
8054
+ name: {}
8058
8055
  },
8059
8056
  emits: ["minimize"],
8060
8057
  setup(e, { emit: t }) {
8061
8058
  const r = t;
8062
- return (i, s) => (openBlock(), createElementBlock("div", _hoisted_1$6, [
8059
+ return (i, s) => (openBlock(), createElementBlock("div", _hoisted_1$7, [
8063
8060
  createVNode(AgientIcon, { class: "shrink-0 w-14 h-14 -my-2 -ml-1 rounded-full" }),
8064
8061
  createElementVNode("div", null, [
8065
- s[1] || (s[1] = createElementVNode("p", { class: "text-body-large-bold" }, "Agient", -1)),
8066
- createElementVNode("p", _hoisted_2$1, toDisplayString(i.online ? "Online" : "Offline"), 1)
8062
+ createElementVNode("p", _hoisted_2$1, toDisplayString(i.name), 1),
8063
+ s[1] || (s[1] = createElementVNode("p", { class: "text-semantic-text-muted text-body-small" }, "Online", -1))
8067
8064
  ]),
8068
8065
  i.isPlayground ? createCommentVNode("", !0) : (openBlock(), createElementBlock("button", {
8069
8066
  key: 0,
@@ -8074,7 +8071,7 @@ const AgientIcon = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_ren
8074
8071
  ]))
8075
8072
  ]));
8076
8073
  }
8077
- }), _sfc_main$9 = {}, _hoisted_1$5 = {
8074
+ }), _sfc_main$9 = {}, _hoisted_1$6 = {
8078
8075
  xmlns: "http://www.w3.org/2000/svg",
8079
8076
  fill: "none",
8080
8077
  viewBox: "0 0 24 24",
@@ -8082,8 +8079,8 @@ const AgientIcon = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_ren
8082
8079
  stroke: "currentColor",
8083
8080
  class: "size-6"
8084
8081
  };
8085
- function _sfc_render$2(e, t) {
8086
- return openBlock(), createElementBlock("svg", _hoisted_1$5, t[0] || (t[0] = [
8082
+ function _sfc_render$1(e, t) {
8083
+ return openBlock(), createElementBlock("svg", _hoisted_1$6, t[0] || (t[0] = [
8087
8084
  createElementVNode("path", {
8088
8085
  "stroke-linecap": "round",
8089
8086
  "stroke-linejoin": "round",
@@ -8091,29 +8088,35 @@ function _sfc_render$2(e, t) {
8091
8088
  }, null, -1)
8092
8089
  ]));
8093
8090
  }
8094
- const SendIcon = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$2]]), _hoisted_1$4 = { class: "flex items-end gap-1.5 md:gap-2 m-2 mt-0 p-2 bg-input-background rounded-sm" }, _hoisted_2 = { class: "w-full min-w-0 relative pl-2" }, _hoisted_3 = ["disabled"], _hoisted_4 = ["disabled"], _sfc_main$8 = /* @__PURE__ */ defineComponent({
8091
+ const SendIcon = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]]), _hoisted_1$5 = { class: "flex items-end gap-1.5 md:gap-2 p-2 bg-input-background rounded-sm max-w-full w-full" }, _hoisted_2 = { class: "w-full min-w-0 relative pl-2" }, _hoisted_3 = ["placeholder", "disabled"], _hoisted_4 = ["disabled"], _sfc_main$8 = /* @__PURE__ */ defineComponent({
8095
8092
  __name: "ChatInput",
8096
8093
  props: {
8097
- disabled: { type: Boolean }
8094
+ disabled: { type: Boolean },
8095
+ placeholder: {},
8096
+ initialValue: {}
8098
8097
  },
8099
8098
  emits: ["send"],
8100
8099
  setup(e, { emit: t }) {
8101
- const r = e, i = ref(""), s = computed(() => r.disabled || i.value.trim() === ""), n = (l) => {
8100
+ const r = e, i = ref(r.initialValue ?? ""), s = computed(() => r.disabled || i.value.trim() === ""), n = (l) => {
8102
8101
  l.shiftKey || (l.preventDefault(), a());
8103
8102
  }, a = () => {
8104
8103
  const l = i.value.trim();
8105
8104
  l !== "" && !s.value && (o("send", l), i.value = "");
8106
8105
  }, o = t;
8107
- return (l, f) => (openBlock(), createElementBlock("div", _hoisted_1$4, [
8106
+ return (l, f) => (openBlock(), createElementBlock("div", _hoisted_1$5, [
8108
8107
  createElementVNode("div", _hoisted_2, [
8109
8108
  withDirectives(createElementVNode("textarea", {
8110
8109
  "onUpdate:modelValue": f[0] || (f[0] = (c) => i.value = c),
8111
8110
  tabindex: "0",
8112
8111
  rows: "1",
8113
8112
  style: { "field-sizing": "content", "scrollbar-width": "thin" },
8114
- placeholder: "Ask Agient",
8113
+ placeholder: l.placeholder,
8115
8114
  disabled: l.disabled,
8116
- class: "bg-transparent text-input-text placeholder:text-input-placeholder resize-none m-0 border-0 px-0 max-h-[6.5rem] outline-hidden min-h-8 py-1 text-body-bold w-full",
8115
+ class: normalizeClass([
8116
+ "bg-transparent text-input-text placeholder:text-input-placeholder",
8117
+ "resize-none max-h-[6.5rem] outline-hidden min-h-8",
8118
+ "m-0 border-0 px-0 py-1 leading-[1.5rem] text-body w-full"
8119
+ ]),
8117
8120
  onKeydown: withKeys(n, ["enter"])
8118
8121
  }, null, 40, _hoisted_3), [
8119
8122
  [vModelText, i.value]
@@ -8128,14 +8131,17 @@ const SendIcon = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_rende
8128
8131
  ], 8, _hoisted_4)
8129
8132
  ]));
8130
8133
  }
8131
- }), _hoisted_1$3 = { class: "skeleton-text line-clamp-1 text-body-small text-semantic-text w-fit" }, _sfc_main$7 = /* @__PURE__ */ defineComponent({
8134
+ }), _hoisted_1$4 = { class: "skeleton-text line-clamp-1 py-2 px-3 text-body-small text-context-message-text w-fit" }, _sfc_main$7 = /* @__PURE__ */ defineComponent({
8132
8135
  __name: "ContextBubble",
8133
8136
  props: {
8134
8137
  context: {}
8135
8138
  },
8136
8139
  setup(e) {
8137
- const t = e, { context: r } = toRefs(t), i = computed(() => r.value.trim().replace(/\.{3,}$/, ""));
8138
- return (s, n) => (openBlock(), createElementBlock("p", _hoisted_1$3, toDisplayString(i.value), 1));
8140
+ const t = e, { context: r } = toRefs(t), i = computed(() => {
8141
+ const s = r.value.trim();
8142
+ return s.endsWith("...") ? s.slice(0, -3) : s;
8143
+ });
8144
+ return (s, n) => (openBlock(), createElementBlock("p", _hoisted_1$4, toDisplayString(i.value), 1));
8139
8145
  }
8140
8146
  });
8141
8147
  /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
@@ -8223,7 +8229,7 @@ function lookupGetter(e, t) {
8223
8229
  }
8224
8230
  return r;
8225
8231
  }
8226
- const html$1 = freeze(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), svg$1 = freeze(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), svgFilters = freeze(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), svgDisallowed = freeze(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), mathMl$1 = freeze(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), mathMlDisallowed = freeze(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), text = freeze(["#text"]), html$2 = freeze(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), svg = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), mathMl = freeze(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm), TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm), DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/), ARIA_ATTR = seal(/^aria-[\-\w]+$/), IS_ALLOWED_URI = seal(
8232
+ const html$1$1 = freeze(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), svg$1 = freeze(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), svgFilters = freeze(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), svgDisallowed = freeze(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), mathMl$1 = freeze(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), mathMlDisallowed = freeze(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), text = freeze(["#text"]), html$2 = freeze(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), svg = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), mathMl = freeze(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm), TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm), DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/), ARIA_ATTR = seal(/^aria-[\-\w]+$/), IS_ALLOWED_URI = seal(
8227
8233
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
8228
8234
  // eslint-disable-line no-useless-escape
8229
8235
  ), IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i), ATTR_WHITESPACE = seal(
@@ -8299,7 +8305,7 @@ function createDOMPurify() {
8299
8305
  Element: l,
8300
8306
  NodeFilter: f,
8301
8307
  NamedNodeMap: c = e.NamedNodeMap || e.MozNamedAttrMap,
8302
- HTMLFormElement: _,
8308
+ HTMLFormElement: S,
8303
8309
  DOMParser: p,
8304
8310
  trustedTypes: x
8305
8311
  } = e, y = l.prototype, m = lookupGetter(y, "cloneNode"), C = lookupGetter(y, "remove"), d = lookupGetter(y, "nextSibling"), g = lookupGetter(y, "childNodes"), u = lookupGetter(y, "parentNode");
@@ -8314,9 +8320,9 @@ function createDOMPurify() {
8314
8320
  createDocumentFragment: A,
8315
8321
  getElementsByTagName: L
8316
8322
  } = r, {
8317
- importNode: $
8323
+ importNode: H
8318
8324
  } = i;
8319
- let O = _createHooksMap();
8325
+ let B = _createHooksMap();
8320
8326
  t.isSupported = typeof entries == "function" && typeof u == "function" && k && k.createHTMLDocument !== void 0;
8321
8327
  const {
8322
8328
  MUSTACHE_EXPR: D,
@@ -8326,14 +8332,14 @@ function createDOMPurify() {
8326
8332
  ARIA_ATTR: P,
8327
8333
  IS_SCRIPT_OR_DATA: w,
8328
8334
  ATTR_WHITESPACE: b,
8329
- CUSTOM_ELEMENT: S
8335
+ CUSTOM_ELEMENT: _
8330
8336
  } = EXPRESSIONS;
8331
8337
  let {
8332
8338
  IS_ALLOWED_URI: F
8333
8339
  } = EXPRESSIONS, M = null;
8334
- const V = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);
8340
+ const O = addToSet({}, [...html$1$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);
8335
8341
  let G = null;
8336
- const U = addToSet({}, [...html$2, ...svg, ...mathMl, ...xml]);
8342
+ const Y = addToSet({}, [...html$2, ...svg, ...mathMl, ...xml]);
8337
8343
  let q = Object.seal(create(null, {
8338
8344
  tagNameCheck: {
8339
8345
  writable: !0,
@@ -8353,17 +8359,17 @@ function createDOMPurify() {
8353
8359
  enumerable: !0,
8354
8360
  value: !1
8355
8361
  }
8356
- })), Z = null, J = null, se = !0, ue = !0, ne = !1, Q = !0, ee = !1, X = !0, H = !1, ge = !1, ve = !1, le = !1, pe = !1, de = !1, ye = !0, ae = !1;
8362
+ })), Z = null, J = null, se = !0, ue = !0, ne = !1, Q = !0, ee = !1, X = !0, $ = !1, ge = !1, ve = !1, le = !1, pe = !1, de = !1, ye = !0, ae = !1;
8357
8363
  const xe = "user-content-";
8358
8364
  let be = !0, oe = !1, ce = {}, re = null;
8359
- const Se = addToSet({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
8365
+ const _e = addToSet({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
8360
8366
  let Te = null;
8361
8367
  const we = addToSet({}, ["audio", "video", "img", "source", "image", "track"]);
8362
8368
  let Ce = null;
8363
8369
  const qe = addToSet({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Re = "http://www.w3.org/1998/Math/MathML", De = "http://www.w3.org/2000/svg", Ee = "http://www.w3.org/1999/xhtml";
8364
- let Ae = Ee, Ve = !1, ze = null;
8370
+ let Ae = Ee, Oe = !1, ze = null;
8365
8371
  const nt = addToSet({}, [Re, De, Ee], stringToString);
8366
- let Oe = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]), Be = addToSet({}, ["annotation-xml"]);
8372
+ let Be = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]), Ve = addToSet({}, ["annotation-xml"]);
8367
8373
  const at = addToSet({}, ["title", "style", "font", "a", "script"]);
8368
8374
  let Fe = null;
8369
8375
  const ot = ["application/xhtml+xml", "text/html"], lt = "text/html";
@@ -8374,7 +8380,7 @@ function createDOMPurify() {
8374
8380
  let I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
8375
8381
  if (!(Me && Me === I)) {
8376
8382
  if ((!I || typeof I != "object") && (I = {}), I = clone(I), Fe = // eslint-disable-next-line unicorn/prefer-includes
8377
- ot.indexOf(I.PARSER_MEDIA_TYPE) === -1 ? lt : I.PARSER_MEDIA_TYPE, ie = Fe === "application/xhtml+xml" ? stringToString : stringToLowerCase, M = objectHasOwnProperty(I, "ALLOWED_TAGS") ? addToSet({}, I.ALLOWED_TAGS, ie) : V, G = objectHasOwnProperty(I, "ALLOWED_ATTR") ? addToSet({}, I.ALLOWED_ATTR, ie) : U, ze = objectHasOwnProperty(I, "ALLOWED_NAMESPACES") ? addToSet({}, I.ALLOWED_NAMESPACES, stringToString) : nt, Ce = objectHasOwnProperty(I, "ADD_URI_SAFE_ATTR") ? addToSet(clone(qe), I.ADD_URI_SAFE_ATTR, ie) : qe, Te = objectHasOwnProperty(I, "ADD_DATA_URI_TAGS") ? addToSet(clone(we), I.ADD_DATA_URI_TAGS, ie) : we, re = objectHasOwnProperty(I, "FORBID_CONTENTS") ? addToSet({}, I.FORBID_CONTENTS, ie) : Se, Z = objectHasOwnProperty(I, "FORBID_TAGS") ? addToSet({}, I.FORBID_TAGS, ie) : clone({}), J = objectHasOwnProperty(I, "FORBID_ATTR") ? addToSet({}, I.FORBID_ATTR, ie) : clone({}), ce = objectHasOwnProperty(I, "USE_PROFILES") ? I.USE_PROFILES : !1, se = I.ALLOW_ARIA_ATTR !== !1, ue = I.ALLOW_DATA_ATTR !== !1, ne = I.ALLOW_UNKNOWN_PROTOCOLS || !1, Q = I.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ee = I.SAFE_FOR_TEMPLATES || !1, X = I.SAFE_FOR_XML !== !1, H = I.WHOLE_DOCUMENT || !1, le = I.RETURN_DOM || !1, pe = I.RETURN_DOM_FRAGMENT || !1, de = I.RETURN_TRUSTED_TYPE || !1, ve = I.FORCE_BODY || !1, ye = I.SANITIZE_DOM !== !1, ae = I.SANITIZE_NAMED_PROPS || !1, be = I.KEEP_CONTENT !== !1, oe = I.IN_PLACE || !1, F = I.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, Ae = I.NAMESPACE || Ee, Oe = I.MATHML_TEXT_INTEGRATION_POINTS || Oe, Be = I.HTML_INTEGRATION_POINTS || Be, q = I.CUSTOM_ELEMENT_HANDLING || {}, I.CUSTOM_ELEMENT_HANDLING && Ue(I.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (q.tagNameCheck = I.CUSTOM_ELEMENT_HANDLING.tagNameCheck), I.CUSTOM_ELEMENT_HANDLING && Ue(I.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (q.attributeNameCheck = I.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), I.CUSTOM_ELEMENT_HANDLING && typeof I.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (q.allowCustomizedBuiltInElements = I.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ee && (ue = !1), pe && (le = !0), ce && (M = addToSet({}, text), G = [], ce.html === !0 && (addToSet(M, html$1), addToSet(G, html$2)), ce.svg === !0 && (addToSet(M, svg$1), addToSet(G, svg), addToSet(G, xml)), ce.svgFilters === !0 && (addToSet(M, svgFilters), addToSet(G, svg), addToSet(G, xml)), ce.mathMl === !0 && (addToSet(M, mathMl$1), addToSet(G, mathMl), addToSet(G, xml))), I.ADD_TAGS && (M === V && (M = clone(M)), addToSet(M, I.ADD_TAGS, ie)), I.ADD_ATTR && (G === U && (G = clone(G)), addToSet(G, I.ADD_ATTR, ie)), I.ADD_URI_SAFE_ATTR && addToSet(Ce, I.ADD_URI_SAFE_ATTR, ie), I.FORBID_CONTENTS && (re === Se && (re = clone(re)), addToSet(re, I.FORBID_CONTENTS, ie)), be && (M["#text"] = !0), H && addToSet(M, ["html", "head", "body"]), M.table && (addToSet(M, ["tbody"]), delete Z.tbody), I.TRUSTED_TYPES_POLICY) {
8383
+ ot.indexOf(I.PARSER_MEDIA_TYPE) === -1 ? lt : I.PARSER_MEDIA_TYPE, ie = Fe === "application/xhtml+xml" ? stringToString : stringToLowerCase, M = objectHasOwnProperty(I, "ALLOWED_TAGS") ? addToSet({}, I.ALLOWED_TAGS, ie) : O, G = objectHasOwnProperty(I, "ALLOWED_ATTR") ? addToSet({}, I.ALLOWED_ATTR, ie) : Y, ze = objectHasOwnProperty(I, "ALLOWED_NAMESPACES") ? addToSet({}, I.ALLOWED_NAMESPACES, stringToString) : nt, Ce = objectHasOwnProperty(I, "ADD_URI_SAFE_ATTR") ? addToSet(clone(qe), I.ADD_URI_SAFE_ATTR, ie) : qe, Te = objectHasOwnProperty(I, "ADD_DATA_URI_TAGS") ? addToSet(clone(we), I.ADD_DATA_URI_TAGS, ie) : we, re = objectHasOwnProperty(I, "FORBID_CONTENTS") ? addToSet({}, I.FORBID_CONTENTS, ie) : _e, Z = objectHasOwnProperty(I, "FORBID_TAGS") ? addToSet({}, I.FORBID_TAGS, ie) : clone({}), J = objectHasOwnProperty(I, "FORBID_ATTR") ? addToSet({}, I.FORBID_ATTR, ie) : clone({}), ce = objectHasOwnProperty(I, "USE_PROFILES") ? I.USE_PROFILES : !1, se = I.ALLOW_ARIA_ATTR !== !1, ue = I.ALLOW_DATA_ATTR !== !1, ne = I.ALLOW_UNKNOWN_PROTOCOLS || !1, Q = I.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ee = I.SAFE_FOR_TEMPLATES || !1, X = I.SAFE_FOR_XML !== !1, $ = I.WHOLE_DOCUMENT || !1, le = I.RETURN_DOM || !1, pe = I.RETURN_DOM_FRAGMENT || !1, de = I.RETURN_TRUSTED_TYPE || !1, ve = I.FORCE_BODY || !1, ye = I.SANITIZE_DOM !== !1, ae = I.SANITIZE_NAMED_PROPS || !1, be = I.KEEP_CONTENT !== !1, oe = I.IN_PLACE || !1, F = I.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, Ae = I.NAMESPACE || Ee, Be = I.MATHML_TEXT_INTEGRATION_POINTS || Be, Ve = I.HTML_INTEGRATION_POINTS || Ve, q = I.CUSTOM_ELEMENT_HANDLING || {}, I.CUSTOM_ELEMENT_HANDLING && Ue(I.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (q.tagNameCheck = I.CUSTOM_ELEMENT_HANDLING.tagNameCheck), I.CUSTOM_ELEMENT_HANDLING && Ue(I.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (q.attributeNameCheck = I.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), I.CUSTOM_ELEMENT_HANDLING && typeof I.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (q.allowCustomizedBuiltInElements = I.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ee && (ue = !1), pe && (le = !0), ce && (M = addToSet({}, text), G = [], ce.html === !0 && (addToSet(M, html$1$1), addToSet(G, html$2)), ce.svg === !0 && (addToSet(M, svg$1), addToSet(G, svg), addToSet(G, xml)), ce.svgFilters === !0 && (addToSet(M, svgFilters), addToSet(G, svg), addToSet(G, xml)), ce.mathMl === !0 && (addToSet(M, mathMl$1), addToSet(G, mathMl), addToSet(G, xml))), I.ADD_TAGS && (M === O && (M = clone(M)), addToSet(M, I.ADD_TAGS, ie)), I.ADD_ATTR && (G === Y && (G = clone(G)), addToSet(G, I.ADD_ATTR, ie)), I.ADD_URI_SAFE_ATTR && addToSet(Ce, I.ADD_URI_SAFE_ATTR, ie), I.FORBID_CONTENTS && (re === _e && (re = clone(re)), addToSet(re, I.FORBID_CONTENTS, ie)), be && (M["#text"] = !0), $ && addToSet(M, ["html", "head", "body"]), M.table && (addToSet(M, ["tbody"]), delete Z.tbody), I.TRUSTED_TYPES_POLICY) {
8378
8384
  if (typeof I.TRUSTED_TYPES_POLICY.createHTML != "function")
8379
8385
  throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
8380
8386
  if (typeof I.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -8385,14 +8391,14 @@ function createDOMPurify() {
8385
8391
  freeze && freeze(I), Me = I;
8386
8392
  }
8387
8393
  }, Ye = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]), Ze = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), ft = function(I) {
8388
- let B = u(I);
8389
- (!B || !B.tagName) && (B = {
8394
+ let V = u(I);
8395
+ (!V || !V.tagName) && (V = {
8390
8396
  namespaceURI: Ae,
8391
8397
  tagName: "template"
8392
8398
  });
8393
- const W = stringToLowerCase(I.tagName), K = stringToLowerCase(B.tagName);
8394
- return ze[I.namespaceURI] ? I.namespaceURI === De ? B.namespaceURI === Ee ? W === "svg" : B.namespaceURI === Re ? W === "svg" && (K === "annotation-xml" || Oe[K]) : !!Ye[W] : I.namespaceURI === Re ? B.namespaceURI === Ee ? W === "math" : B.namespaceURI === De ? W === "math" && Be[K] : !!Ze[W] : I.namespaceURI === Ee ? B.namespaceURI === De && !Be[K] || B.namespaceURI === Re && !Oe[K] ? !1 : !Ze[W] && (at[W] || !Ye[W]) : !!(Fe === "application/xhtml+xml" && ze[I.namespaceURI]) : !1;
8395
- }, _e = function(I) {
8399
+ const W = stringToLowerCase(I.tagName), K = stringToLowerCase(V.tagName);
8400
+ return ze[I.namespaceURI] ? I.namespaceURI === De ? V.namespaceURI === Ee ? W === "svg" : V.namespaceURI === Re ? W === "svg" && (K === "annotation-xml" || Be[K]) : !!Ye[W] : I.namespaceURI === Re ? V.namespaceURI === Ee ? W === "math" : V.namespaceURI === De ? W === "math" && Ve[K] : !!Ze[W] : I.namespaceURI === Ee ? V.namespaceURI === De && !Ve[K] || V.namespaceURI === Re && !Be[K] ? !1 : !Ze[W] && (at[W] || !Ye[W]) : !!(Fe === "application/xhtml+xml" && ze[I.namespaceURI]) : !1;
8401
+ }, Se = function(I) {
8396
8402
  arrayPush(t.removed, {
8397
8403
  element: I
8398
8404
  });
@@ -8401,31 +8407,31 @@ function createDOMPurify() {
8401
8407
  } catch {
8402
8408
  C(I);
8403
8409
  }
8404
- }, Ie = function(I, B) {
8410
+ }, Ie = function(I, V) {
8405
8411
  try {
8406
8412
  arrayPush(t.removed, {
8407
- attribute: B.getAttributeNode(I),
8408
- from: B
8413
+ attribute: V.getAttributeNode(I),
8414
+ from: V
8409
8415
  });
8410
8416
  } catch {
8411
8417
  arrayPush(t.removed, {
8412
8418
  attribute: null,
8413
- from: B
8419
+ from: V
8414
8420
  });
8415
8421
  }
8416
- if (B.removeAttribute(I), I === "is")
8422
+ if (V.removeAttribute(I), I === "is")
8417
8423
  if (le || pe)
8418
8424
  try {
8419
- _e(B);
8425
+ Se(V);
8420
8426
  } catch {
8421
8427
  }
8422
8428
  else
8423
8429
  try {
8424
- B.setAttribute(I, "");
8430
+ V.setAttribute(I, "");
8425
8431
  } catch {
8426
8432
  }
8427
8433
  }, Xe = function(I) {
8428
- let B = null, W = null;
8434
+ let V = null, W = null;
8429
8435
  if (ve)
8430
8436
  I = "<remove></remove>" + I;
8431
8437
  else {
@@ -8436,18 +8442,18 @@ function createDOMPurify() {
8436
8442
  const K = v ? v.createHTML(I) : I;
8437
8443
  if (Ae === Ee)
8438
8444
  try {
8439
- B = new p().parseFromString(K, Fe);
8445
+ V = new p().parseFromString(K, Fe);
8440
8446
  } catch {
8441
8447
  }
8442
- if (!B || !B.documentElement) {
8443
- B = k.createDocument(Ae, "template", null);
8448
+ if (!V || !V.documentElement) {
8449
+ V = k.createDocument(Ae, "template", null);
8444
8450
  try {
8445
- B.documentElement.innerHTML = Ve ? E : K;
8451
+ V.documentElement.innerHTML = Oe ? E : K;
8446
8452
  } catch {
8447
8453
  }
8448
8454
  }
8449
- const he = B.body || B.documentElement;
8450
- return I && W && he.insertBefore(r.createTextNode(W), he.childNodes[0] || null), Ae === Ee ? L.call(B, H ? "html" : "body")[0] : H ? B.documentElement : he;
8455
+ const he = V.body || V.documentElement;
8456
+ return I && W && he.insertBefore(r.createTextNode(W), he.childNodes[0] || null), Ae === Ee ? L.call(V, $ ? "html" : "body")[0] : $ ? V.documentElement : he;
8451
8457
  }, Ke = function(I) {
8452
8458
  return T.call(
8453
8459
  I.ownerDocument || I,
@@ -8457,25 +8463,25 @@ function createDOMPurify() {
8457
8463
  null
8458
8464
  );
8459
8465
  }, Ge = function(I) {
8460
- return I instanceof _ && (typeof I.nodeName != "string" || typeof I.textContent != "string" || typeof I.removeChild != "function" || !(I.attributes instanceof c) || typeof I.removeAttribute != "function" || typeof I.setAttribute != "function" || typeof I.namespaceURI != "string" || typeof I.insertBefore != "function" || typeof I.hasChildNodes != "function");
8466
+ return I instanceof S && (typeof I.nodeName != "string" || typeof I.textContent != "string" || typeof I.removeChild != "function" || !(I.attributes instanceof c) || typeof I.removeAttribute != "function" || typeof I.setAttribute != "function" || typeof I.namespaceURI != "string" || typeof I.insertBefore != "function" || typeof I.hasChildNodes != "function");
8461
8467
  }, Je = function(I) {
8462
8468
  return typeof o == "function" && I instanceof o;
8463
8469
  };
8464
- function ke(j, I, B) {
8470
+ function ke(j, I, V) {
8465
8471
  arrayForEach(j, (W) => {
8466
- W.call(t, I, B, Me);
8472
+ W.call(t, I, V, Me);
8467
8473
  });
8468
8474
  }
8469
8475
  const Qe = function(I) {
8470
- let B = null;
8471
- if (ke(O.beforeSanitizeElements, I, null), Ge(I))
8472
- return _e(I), !0;
8476
+ let V = null;
8477
+ if (ke(B.beforeSanitizeElements, I, null), Ge(I))
8478
+ return Se(I), !0;
8473
8479
  const W = ie(I.nodeName);
8474
- if (ke(O.uponSanitizeElement, I, {
8480
+ if (ke(B.uponSanitizeElement, I, {
8475
8481
  tagName: W,
8476
8482
  allowedTags: M
8477
8483
  }), X && I.hasChildNodes() && !Je(I.firstElementChild) && regExpTest(/<[/\w!]/g, I.innerHTML) && regExpTest(/<[/\w!]/g, I.textContent) || I.nodeType === NODE_TYPE.progressingInstruction || X && I.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, I.data))
8478
- return _e(I), !0;
8484
+ return Se(I), !0;
8479
8485
  if (!M[W] || Z[W]) {
8480
8486
  if (!Z[W] && tt(W) && (q.tagNameCheck instanceof RegExp && regExpTest(q.tagNameCheck, W) || q.tagNameCheck instanceof Function && q.tagNameCheck(W)))
8481
8487
  return !1;
@@ -8489,30 +8495,30 @@ function createDOMPurify() {
8489
8495
  }
8490
8496
  }
8491
8497
  }
8492
- return _e(I), !0;
8498
+ return Se(I), !0;
8493
8499
  }
8494
- return I instanceof l && !ft(I) || (W === "noscript" || W === "noembed" || W === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, I.innerHTML) ? (_e(I), !0) : (ee && I.nodeType === NODE_TYPE.text && (B = I.textContent, arrayForEach([D, z, N], (K) => {
8495
- B = stringReplace(B, K, " ");
8496
- }), I.textContent !== B && (arrayPush(t.removed, {
8500
+ return I instanceof l && !ft(I) || (W === "noscript" || W === "noembed" || W === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, I.innerHTML) ? (Se(I), !0) : (ee && I.nodeType === NODE_TYPE.text && (V = I.textContent, arrayForEach([D, z, N], (K) => {
8501
+ V = stringReplace(V, K, " ");
8502
+ }), I.textContent !== V && (arrayPush(t.removed, {
8497
8503
  element: I.cloneNode()
8498
- }), I.textContent = B)), ke(O.afterSanitizeElements, I, null), !1);
8499
- }, et = function(I, B, W) {
8500
- if (ye && (B === "id" || B === "name") && (W in r || W in ht))
8504
+ }), I.textContent = V)), ke(B.afterSanitizeElements, I, null), !1);
8505
+ }, et = function(I, V, W) {
8506
+ if (ye && (V === "id" || V === "name") && (W in r || W in ht))
8501
8507
  return !1;
8502
- if (!(ue && !J[B] && regExpTest(R, B))) {
8503
- if (!(se && regExpTest(P, B))) {
8504
- if (!G[B] || J[B]) {
8508
+ if (!(ue && !J[V] && regExpTest(R, V))) {
8509
+ if (!(se && regExpTest(P, V))) {
8510
+ if (!G[V] || J[V]) {
8505
8511
  if (
8506
8512
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
8507
8513
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
8508
8514
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
8509
- !(tt(I) && (q.tagNameCheck instanceof RegExp && regExpTest(q.tagNameCheck, I) || q.tagNameCheck instanceof Function && q.tagNameCheck(I)) && (q.attributeNameCheck instanceof RegExp && regExpTest(q.attributeNameCheck, B) || q.attributeNameCheck instanceof Function && q.attributeNameCheck(B)) || // Alternative, second condition checks if it's an `is`-attribute, AND
8515
+ !(tt(I) && (q.tagNameCheck instanceof RegExp && regExpTest(q.tagNameCheck, I) || q.tagNameCheck instanceof Function && q.tagNameCheck(I)) && (q.attributeNameCheck instanceof RegExp && regExpTest(q.attributeNameCheck, V) || q.attributeNameCheck instanceof Function && q.attributeNameCheck(V)) || // Alternative, second condition checks if it's an `is`-attribute, AND
8510
8516
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
8511
- B === "is" && q.allowCustomizedBuiltInElements && (q.tagNameCheck instanceof RegExp && regExpTest(q.tagNameCheck, W) || q.tagNameCheck instanceof Function && q.tagNameCheck(W)))
8517
+ V === "is" && q.allowCustomizedBuiltInElements && (q.tagNameCheck instanceof RegExp && regExpTest(q.tagNameCheck, W) || q.tagNameCheck instanceof Function && q.tagNameCheck(W)))
8512
8518
  ) return !1;
8513
- } else if (!Ce[B]) {
8519
+ } else if (!Ce[V]) {
8514
8520
  if (!regExpTest(F, stringReplace(W, b, ""))) {
8515
- if (!((B === "src" || B === "xlink:href" || B === "href") && I !== "script" && stringIndexOf(W, "data:") === 0 && Te[I])) {
8521
+ if (!((V === "src" || V === "xlink:href" || V === "href") && I !== "script" && stringIndexOf(W, "data:") === 0 && Te[I])) {
8516
8522
  if (!(ne && !regExpTest(w, stringReplace(W, b, "")))) {
8517
8523
  if (W)
8518
8524
  return !1;
@@ -8524,13 +8530,13 @@ function createDOMPurify() {
8524
8530
  }
8525
8531
  return !0;
8526
8532
  }, tt = function(I) {
8527
- return I !== "annotation-xml" && stringMatch(I, S);
8533
+ return I !== "annotation-xml" && stringMatch(I, _);
8528
8534
  }, rt = function(I) {
8529
- ke(O.beforeSanitizeAttributes, I, null);
8535
+ ke(B.beforeSanitizeAttributes, I, null);
8530
8536
  const {
8531
- attributes: B
8537
+ attributes: V
8532
8538
  } = I;
8533
- if (!B || Ge(I))
8539
+ if (!V || Ge(I))
8534
8540
  return;
8535
8541
  const W = {
8536
8542
  attrName: "",
@@ -8539,15 +8545,15 @@ function createDOMPurify() {
8539
8545
  allowedAttributes: G,
8540
8546
  forceKeepAttr: void 0
8541
8547
  };
8542
- let K = B.length;
8548
+ let K = V.length;
8543
8549
  for (; K--; ) {
8544
- const he = B[K], {
8550
+ const he = V[K], {
8545
8551
  name: te,
8546
8552
  namespaceURI: me,
8547
8553
  value: Pe
8548
- } = he, Le = ie(te), He = Pe;
8549
- let fe = te === "value" ? He : stringTrim(He);
8550
- if (W.attrName = Le, W.attrValue = fe, W.keepAttr = !0, W.forceKeepAttr = void 0, ke(O.uponSanitizeAttribute, I, W), fe = W.attrValue, ae && (Le === "id" || Le === "name") && (Ie(te, I), fe = xe + fe), X && regExpTest(/((--!?|])>)|<\/(style|title)/i, fe)) {
8554
+ } = he, Le = ie(te), $e = Pe;
8555
+ let fe = te === "value" ? $e : stringTrim($e);
8556
+ if (W.attrName = Le, W.attrValue = fe, W.keepAttr = !0, W.forceKeepAttr = void 0, ke(B.uponSanitizeAttribute, I, W), fe = W.attrValue, ae && (Le === "id" || Le === "name") && (Ie(te, I), fe = xe + fe), X && regExpTest(/((--!?|])>)|<\/(style|title)/i, fe)) {
8551
8557
  Ie(te, I);
8552
8558
  continue;
8553
8559
  }
@@ -8580,24 +8586,24 @@ function createDOMPurify() {
8580
8586
  break;
8581
8587
  }
8582
8588
  }
8583
- if (fe !== He)
8589
+ if (fe !== $e)
8584
8590
  try {
8585
- me ? I.setAttributeNS(me, te, fe) : I.setAttribute(te, fe), Ge(I) ? _e(I) : arrayPop(t.removed);
8591
+ me ? I.setAttributeNS(me, te, fe) : I.setAttribute(te, fe), Ge(I) ? Se(I) : arrayPop(t.removed);
8586
8592
  } catch {
8587
8593
  Ie(te, I);
8588
8594
  }
8589
8595
  }
8590
- ke(O.afterSanitizeAttributes, I, null);
8596
+ ke(B.afterSanitizeAttributes, I, null);
8591
8597
  }, pt = function j(I) {
8592
- let B = null;
8598
+ let V = null;
8593
8599
  const W = Ke(I);
8594
- for (ke(O.beforeSanitizeShadowDOM, I, null); B = W.nextNode(); )
8595
- ke(O.uponSanitizeShadowNode, B, null), Qe(B), rt(B), B.content instanceof n && j(B.content);
8596
- ke(O.afterSanitizeShadowDOM, I, null);
8600
+ for (ke(B.beforeSanitizeShadowDOM, I, null); V = W.nextNode(); )
8601
+ ke(B.uponSanitizeShadowNode, V, null), Qe(V), rt(V), V.content instanceof n && j(V.content);
8602
+ ke(B.afterSanitizeShadowDOM, I, null);
8597
8603
  };
8598
8604
  return t.sanitize = function(j) {
8599
- let I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, B = null, W = null, K = null, he = null;
8600
- if (Ve = !j, Ve && (j = "<!-->"), typeof j != "string" && !Je(j))
8605
+ let I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, V = null, W = null, K = null, he = null;
8606
+ if (Oe = !j, Oe && (j = "<!-->"), typeof j != "string" && !Je(j))
8601
8607
  if (typeof j.toString == "function") {
8602
8608
  if (j = j.toString(), typeof j != "string")
8603
8609
  throw typeErrorCreate("dirty is not a string, aborting");
@@ -8612,30 +8618,30 @@ function createDOMPurify() {
8612
8618
  throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
8613
8619
  }
8614
8620
  } else if (j instanceof o)
8615
- B = Xe("<!---->"), W = B.ownerDocument.importNode(j, !0), W.nodeType === NODE_TYPE.element && W.nodeName === "BODY" || W.nodeName === "HTML" ? B = W : B.appendChild(W);
8621
+ V = Xe("<!---->"), W = V.ownerDocument.importNode(j, !0), W.nodeType === NODE_TYPE.element && W.nodeName === "BODY" || W.nodeName === "HTML" ? V = W : V.appendChild(W);
8616
8622
  else {
8617
- if (!le && !ee && !H && // eslint-disable-next-line unicorn/prefer-includes
8623
+ if (!le && !ee && !$ && // eslint-disable-next-line unicorn/prefer-includes
8618
8624
  j.indexOf("<") === -1)
8619
8625
  return v && de ? v.createHTML(j) : j;
8620
- if (B = Xe(j), !B)
8626
+ if (V = Xe(j), !V)
8621
8627
  return le ? null : de ? E : "";
8622
8628
  }
8623
- B && ve && _e(B.firstChild);
8624
- const te = Ke(oe ? j : B);
8629
+ V && ve && Se(V.firstChild);
8630
+ const te = Ke(oe ? j : V);
8625
8631
  for (; K = te.nextNode(); )
8626
8632
  Qe(K), rt(K), K.content instanceof n && pt(K.content);
8627
8633
  if (oe)
8628
8634
  return j;
8629
8635
  if (le) {
8630
8636
  if (pe)
8631
- for (he = A.call(B.ownerDocument); B.firstChild; )
8632
- he.appendChild(B.firstChild);
8637
+ for (he = A.call(V.ownerDocument); V.firstChild; )
8638
+ he.appendChild(V.firstChild);
8633
8639
  else
8634
- he = B;
8635
- return (G.shadowroot || G.shadowrootmode) && (he = $.call(i, he, !0)), he;
8640
+ he = V;
8641
+ return (G.shadowroot || G.shadowrootmode) && (he = H.call(i, he, !0)), he;
8636
8642
  }
8637
- let me = H ? B.outerHTML : B.innerHTML;
8638
- return H && M["!doctype"] && B.ownerDocument && B.ownerDocument.doctype && B.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, B.ownerDocument.doctype.name) && (me = "<!DOCTYPE " + B.ownerDocument.doctype.name + `>
8643
+ let me = $ ? V.outerHTML : V.innerHTML;
8644
+ return $ && M["!doctype"] && V.ownerDocument && V.ownerDocument.doctype && V.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, V.ownerDocument.doctype.name) && (me = "<!DOCTYPE " + V.ownerDocument.doctype.name + `>
8639
8645
  ` + me), ee && arrayForEach([D, z, N], (Pe) => {
8640
8646
  me = stringReplace(me, Pe, " ");
8641
8647
  }), v && de ? v.createHTML(me) : me;
@@ -8644,22 +8650,22 @@ function createDOMPurify() {
8644
8650
  Ne(j), ge = !0;
8645
8651
  }, t.clearConfig = function() {
8646
8652
  Me = null, ge = !1;
8647
- }, t.isValidAttribute = function(j, I, B) {
8653
+ }, t.isValidAttribute = function(j, I, V) {
8648
8654
  Me || Ne({});
8649
8655
  const W = ie(j), K = ie(I);
8650
- return et(W, K, B);
8656
+ return et(W, K, V);
8651
8657
  }, t.addHook = function(j, I) {
8652
- typeof I == "function" && arrayPush(O[j], I);
8658
+ typeof I == "function" && arrayPush(B[j], I);
8653
8659
  }, t.removeHook = function(j, I) {
8654
8660
  if (I !== void 0) {
8655
- const B = arrayLastIndexOf(O[j], I);
8656
- return B === -1 ? void 0 : arraySplice(O[j], B, 1)[0];
8661
+ const V = arrayLastIndexOf(B[j], I);
8662
+ return V === -1 ? void 0 : arraySplice(B[j], V, 1)[0];
8657
8663
  }
8658
- return arrayPop(O[j]);
8664
+ return arrayPop(B[j]);
8659
8665
  }, t.removeHooks = function(j) {
8660
- O[j] = [];
8666
+ B[j] = [];
8661
8667
  }, t.removeAllHooks = function() {
8662
- O = _createHooksMap();
8668
+ B = _createHooksMap();
8663
8669
  }, t;
8664
8670
  }
8665
8671
  var purify = createDOMPurify();
@@ -8750,7 +8756,7 @@ var other = {
8750
8756
  fencesBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
8751
8757
  headingBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
8752
8758
  htmlBeginRegex: (e) => new RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i")
8753
- }, newline = /^(?:[ \t]*(?:\n|$))+/, blockCode = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, fences = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, hr = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, heading = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, bullet = /(?:[*+-]|\d{1,9}[.)])/, lheadingCore = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, lheading = edit(lheadingCore).replace(/bull/g, bullet).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), lheadingGfm = edit(lheadingCore).replace(/bull/g, bullet).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), _paragraph = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, blockText = /^[^\n]+/, _blockLabel = /(?!\s*\])(?:\\.|[^\[\]\\])+/, def = edit(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", _blockLabel).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), list = edit(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, bullet).getRegex(), _tag = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", _comment = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, html = edit(
8759
+ }, newline = /^(?:[ \t]*(?:\n|$))+/, blockCode = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, fences = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, hr = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, heading = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, bullet = /(?:[*+-]|\d{1,9}[.)])/, lheadingCore = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, lheading = edit(lheadingCore).replace(/bull/g, bullet).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), lheadingGfm = edit(lheadingCore).replace(/bull/g, bullet).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), _paragraph = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, blockText = /^[^\n]+/, _blockLabel = /(?!\s*\])(?:\\.|[^\[\]\\])+/, def = edit(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", _blockLabel).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), list = edit(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, bullet).getRegex(), _tag = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", _comment = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, html$1 = edit(
8754
8760
  "^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))",
8755
8761
  "i"
8756
8762
  ).replace("comment", _comment).replace("tag", _tag).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), paragraph = edit(_paragraph).replace("hr", hr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", _tag).getRegex(), blockquote = edit(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", paragraph).getRegex(), blockNormal = {
@@ -8760,7 +8766,7 @@ var other = {
8760
8766
  fences,
8761
8767
  heading,
8762
8768
  hr,
8763
- html,
8769
+ html: html$1,
8764
8770
  lheading,
8765
8771
  list,
8766
8772
  newline,
@@ -8930,10 +8936,10 @@ function indentCodeCompensation(e, t, r) {
8930
8936
  var _Tokenizer = class {
8931
8937
  // set by the lexer
8932
8938
  constructor(e) {
8933
- Y(this, "options");
8934
- Y(this, "rules");
8939
+ U(this, "options");
8940
+ U(this, "rules");
8935
8941
  // set by the lexer
8936
- Y(this, "lexer");
8942
+ U(this, "lexer");
8937
8943
  this.options = e || _defaults;
8938
8944
  }
8939
8945
  space(e) {
@@ -9020,8 +9026,8 @@ var _Tokenizer = class {
9020
9026
  i = i ? `${i}
9021
9027
  ${f}` : f, s = s ? `${s}
9022
9028
  ${c}` : c;
9023
- const _ = this.lexer.state.top;
9024
- if (this.lexer.state.top = !0, this.lexer.blockTokens(c, n, !0), this.lexer.state.top = _, r.length === 0)
9029
+ const S = this.lexer.state.top;
9030
+ if (this.lexer.state.top = !0, this.lexer.blockTokens(c, n, !0), this.lexer.state.top = S, r.length === 0)
9025
9031
  break;
9026
9032
  const p = n.at(-1);
9027
9033
  if ((p == null ? void 0 : p.type) === "code")
@@ -9069,10 +9075,10 @@ ${c}` : c;
9069
9075
  if (!(t = n.exec(e)) || this.rules.block.hr.test(e))
9070
9076
  break;
9071
9077
  f = t[0], e = e.substring(f.length);
9072
- let _ = t[2].split(`
9078
+ let S = t[2].split(`
9073
9079
  `, 1)[0].replace(this.rules.other.listReplaceTabs, (d) => " ".repeat(3 * d.length)), p = e.split(`
9074
- `, 1)[0], x = !_.trim(), y = 0;
9075
- if (this.options.pedantic ? (y = 2, c = _.trimStart()) : x ? y = t[1].length + 1 : (y = t[2].search(this.rules.other.nonSpaceChar), y = y > 4 ? 1 : y, c = _.slice(y), y += t[1].length), x && this.rules.other.blankLine.test(p) && (f += p + `
9080
+ `, 1)[0], x = !S.trim(), y = 0;
9081
+ if (this.options.pedantic ? (y = 2, c = S.trimStart()) : x ? y = t[1].length + 1 : (y = t[2].search(this.rules.other.nonSpaceChar), y = y > 4 ? 1 : y, c = S.slice(y), y += t[1].length), x && this.rules.other.blankLine.test(p) && (f += p + `
9076
9082
  `, e = e.substring(p.length + 1), l = !0), !l) {
9077
9083
  const d = this.rules.other.nextBulletRegex(y), g = this.rules.other.hrRegex(y), u = this.rules.other.fencesBeginRegex(y), v = this.rules.other.headingBeginRegex(y), E = this.rules.other.htmlBeginRegex(y);
9078
9084
  for (; e; ) {
@@ -9085,13 +9091,13 @@ ${c}` : c;
9085
9091
  c += `
9086
9092
  ` + T.slice(y);
9087
9093
  else {
9088
- if (x || _.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || u.test(_) || v.test(_) || g.test(_))
9094
+ if (x || S.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || u.test(S) || v.test(S) || g.test(S))
9089
9095
  break;
9090
9096
  c += `
9091
9097
  ` + p;
9092
9098
  }
9093
9099
  !x && !p.trim() && (x = !0), f += k + `
9094
- `, e = e.substring(k.length + 1), _ = T.slice(y);
9100
+ `, e = e.substring(k.length + 1), S = T.slice(y);
9095
9101
  }
9096
9102
  }
9097
9103
  s.loose || (a ? s.loose = !0 : this.rules.other.doubleBlankLine.test(f) && (a = !0));
@@ -9114,7 +9120,7 @@ ${c}` : c;
9114
9120
  s.raw = s.raw.trimEnd();
9115
9121
  for (let l = 0; l < s.items.length; l++)
9116
9122
  if (this.lexer.state.top = !1, s.items[l].tokens = this.lexer.blockTokens(s.items[l].text, []), !s.loose) {
9117
- const f = s.items[l].tokens.filter((_) => _.type === "space"), c = f.length > 0 && f.some((_) => this.rules.other.anyLine.test(_.raw));
9123
+ const f = s.items[l].tokens.filter((S) => S.type === "space"), c = f.length > 0 && f.some((S) => this.rules.other.anyLine.test(S.raw));
9118
9124
  s.loose = c;
9119
9125
  }
9120
9126
  if (s.loose)
@@ -9299,7 +9305,7 @@ ${c}` : c;
9299
9305
  }
9300
9306
  if (l -= o, l > 0) continue;
9301
9307
  o = Math.min(o, o + l + f);
9302
- const _ = [...i[0]][0].length, p = e.slice(0, n + i.index + _ + o);
9308
+ const S = [...i[0]][0].length, p = e.slice(0, n + i.index + S + o);
9303
9309
  if (Math.min(n, o) % 2) {
9304
9310
  const y = p.slice(1, -1);
9305
9311
  return {
@@ -9411,11 +9417,11 @@ ${c}` : c;
9411
9417
  }
9412
9418
  }, _Lexer = class We {
9413
9419
  constructor(t) {
9414
- Y(this, "tokens");
9415
- Y(this, "options");
9416
- Y(this, "state");
9417
- Y(this, "tokenizer");
9418
- Y(this, "inlineQueue");
9420
+ U(this, "tokens");
9421
+ U(this, "options");
9422
+ U(this, "state");
9423
+ U(this, "tokenizer");
9424
+ U(this, "inlineQueue");
9419
9425
  this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = t || _defaults, this.options.tokenizer = this.options.tokenizer || new _Tokenizer(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
9420
9426
  inLink: !1,
9421
9427
  inRawBlock: !1,
@@ -9529,9 +9535,9 @@ ${c}` : c;
9529
9535
  if ((a = this.options.extensions) != null && a.startBlock) {
9530
9536
  let f = 1 / 0;
9531
9537
  const c = t.slice(1);
9532
- let _;
9538
+ let S;
9533
9539
  this.options.extensions.startBlock.forEach((p) => {
9534
- _ = p.call({ lexer: this }, c), typeof _ == "number" && _ >= 0 && (f = Math.min(f, _));
9540
+ S = p.call({ lexer: this }, c), typeof S == "number" && S >= 0 && (f = Math.min(f, S));
9535
9541
  }), f < 1 / 0 && f >= 0 && (l = t.substring(0, f + 1));
9536
9542
  }
9537
9543
  if (this.state.top && (o = this.tokenizer.paragraph(l))) {
@@ -9627,16 +9633,16 @@ ${c}` : c;
9627
9633
  t = t.substring(c.raw.length), r.push(c);
9628
9634
  continue;
9629
9635
  }
9630
- let _ = t;
9636
+ let S = t;
9631
9637
  if ((f = this.options.extensions) != null && f.startInline) {
9632
9638
  let p = 1 / 0;
9633
9639
  const x = t.slice(1);
9634
9640
  let y;
9635
9641
  this.options.extensions.startInline.forEach((m) => {
9636
9642
  y = m.call({ lexer: this }, x), typeof y == "number" && y >= 0 && (p = Math.min(p, y));
9637
- }), p < 1 / 0 && p >= 0 && (_ = t.substring(0, p + 1));
9643
+ }), p < 1 / 0 && p >= 0 && (S = t.substring(0, p + 1));
9638
9644
  }
9639
- if (c = this.tokenizer.inlineText(_)) {
9645
+ if (c = this.tokenizer.inlineText(S)) {
9640
9646
  t = t.substring(c.raw.length), c.raw.slice(-1) !== "_" && (a = c.raw.slice(-1)), n = !0;
9641
9647
  const p = r.at(-1);
9642
9648
  (p == null ? void 0 : p.type) === "text" ? (p.raw += c.raw, p.text += c.text) : r.push(c);
@@ -9656,8 +9662,8 @@ ${c}` : c;
9656
9662
  }, _Renderer = class {
9657
9663
  // set by the parser
9658
9664
  constructor(e) {
9659
- Y(this, "options");
9660
- Y(this, "parser");
9665
+ U(this, "options");
9666
+ U(this, "parser");
9661
9667
  this.options = e || _defaults;
9662
9668
  }
9663
9669
  space(e) {
@@ -9819,9 +9825,9 @@ ${e}</tr>
9819
9825
  }
9820
9826
  }, _Parser = class je {
9821
9827
  constructor(t) {
9822
- Y(this, "options");
9823
- Y(this, "renderer");
9824
- Y(this, "textRenderer");
9828
+ U(this, "options");
9829
+ U(this, "renderer");
9830
+ U(this, "textRenderer");
9825
9831
  this.options = t || _defaults, this.options.renderer = this.options.renderer || new _Renderer(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new _TextRenderer();
9826
9832
  }
9827
9833
  /**
@@ -9979,10 +9985,10 @@ ${e}</tr>
9979
9985
  }
9980
9986
  return i;
9981
9987
  }
9982
- }, $e, _Hooks = ($e = class {
9988
+ }, He, _Hooks = (He = class {
9983
9989
  constructor(e) {
9984
- Y(this, "options");
9985
- Y(this, "block");
9990
+ U(this, "options");
9991
+ U(this, "block");
9986
9992
  this.options = e || _defaults;
9987
9993
  }
9988
9994
  /**
@@ -10015,22 +10021,22 @@ ${e}</tr>
10015
10021
  provideParser() {
10016
10022
  return this.block ? _Parser.parse : _Parser.parseInline;
10017
10023
  }
10018
- }, Y($e, "passThroughHooks", /* @__PURE__ */ new Set([
10024
+ }, U(He, "passThroughHooks", /* @__PURE__ */ new Set([
10019
10025
  "preprocess",
10020
10026
  "postprocess",
10021
10027
  "processAllTokens"
10022
- ])), $e), Marked = class {
10028
+ ])), He), Marked = class {
10023
10029
  constructor(...e) {
10024
- Y(this, "defaults", _getDefaults());
10025
- Y(this, "options", this.setOptions);
10026
- Y(this, "parse", this.parseMarkdown(!0));
10027
- Y(this, "parseInline", this.parseMarkdown(!1));
10028
- Y(this, "Parser", _Parser);
10029
- Y(this, "Renderer", _Renderer);
10030
- Y(this, "TextRenderer", _TextRenderer);
10031
- Y(this, "Lexer", _Lexer);
10032
- Y(this, "Tokenizer", _Tokenizer);
10033
- Y(this, "Hooks", _Hooks);
10030
+ U(this, "defaults", _getDefaults());
10031
+ U(this, "options", this.setOptions);
10032
+ U(this, "parse", this.parseMarkdown(!0));
10033
+ U(this, "parseInline", this.parseMarkdown(!1));
10034
+ U(this, "Parser", _Parser);
10035
+ U(this, "Renderer", _Renderer);
10036
+ U(this, "TextRenderer", _TextRenderer);
10037
+ U(this, "Lexer", _Lexer);
10038
+ U(this, "Tokenizer", _Tokenizer);
10039
+ U(this, "Hooks", _Hooks);
10034
10040
  this.use(...e);
10035
10041
  }
10036
10042
  /**
@@ -10126,7 +10132,7 @@ ${e}</tr>
10126
10132
  const a = n, o = r.hooks[a], l = s[a];
10127
10133
  _Hooks.passThroughHooks.has(n) ? s[a] = (f) => {
10128
10134
  if (this.defaults.async)
10129
- return Promise.resolve(o.call(s, f)).then((_) => l.call(s, _));
10135
+ return Promise.resolve(o.call(s, f)).then((S) => l.call(s, S));
10130
10136
  const c = o.call(s, f);
10131
10137
  return l.call(s, c);
10132
10138
  } : s[a] = (...f) => {
@@ -10224,7 +10230,7 @@ marked.parseInline;
10224
10230
  var parse = marked;
10225
10231
  _Parser.parse;
10226
10232
  _Lexer.lex;
10227
- const _hoisted_1$2 = ["innerHTML"], _sfc_main$6 = /* @__PURE__ */ defineComponent({
10233
+ const _hoisted_1$3 = ["innerHTML"], _sfc_main$6 = /* @__PURE__ */ defineComponent({
10228
10234
  __name: "Message",
10229
10235
  props: {
10230
10236
  message: {},
@@ -10237,12 +10243,12 @@ const _hoisted_1$2 = ["innerHTML"], _sfc_main$6 = /* @__PURE__ */ defineComponen
10237
10243
  return purify.sanitize(s).replace(/(?:\\r\\n|\\r|\\n)/g, "<br>");
10238
10244
  }, ""), i = computed(() => {
10239
10245
  const s = [];
10240
- return t.message.type === "ai" && (s.push("bg-chat-agent-background text-chat-agent-text rounded-r-bubble"), t.first ? s.push("rounded-tl-bubble") : s.push("rounded-tl-xs"), t.last ? s.push("rounded-bl-bubble") : s.push("rounded-bl-xs")), t.message.type === "human" && (s.push("text-chat-user-text bg-chat-user-background rounded-l-bubble"), t.first ? s.push("rounded-tr-bubble") : s.push("rounded-tr-xs"), t.last ? s.push("rounded-br-bubble") : s.push("rounded-br-xs")), s.join(" ");
10246
+ return t.message.type === "ai" && (s.push("bg-chat-agent-background text-chat-agent-text rounded-r-bubble"), t.first ? s.push("rounded-tl-bubble") : s.push("rounded-tl-bubble-tip"), t.last ? s.push("rounded-bl-bubble") : s.push("rounded-bl-bubble-tip")), t.message.type === "human" && (s.push("text-chat-user-text bg-chat-user-background rounded-l-bubble"), t.first ? s.push("rounded-tr-bubble") : s.push("rounded-tr-bubble-tip"), t.last ? s.push("rounded-br-bubble") : s.push("rounded-br-bubble-tip")), s.join(" ");
10241
10247
  });
10242
10248
  return (s, n) => (openBlock(), createElementBlock("div", {
10243
10249
  class: normalizeClass(["message w-fit py-2 px-3 text-body-small flex flex-col gap-y-2", i.value]),
10244
10250
  innerHTML: unref(r)
10245
- }, null, 10, _hoisted_1$2));
10251
+ }, null, 10, _hoisted_1$3));
10246
10252
  }
10247
10253
  }), _sfc_main$5 = /* @__PURE__ */ defineComponent({
10248
10254
  __name: "MessageGroup",
@@ -10263,14 +10269,14 @@ const _hoisted_1$2 = ["innerHTML"], _sfc_main$6 = /* @__PURE__ */ defineComponen
10263
10269
  }, null, 8, ["message", "first", "last"]))), 128))
10264
10270
  ], 2));
10265
10271
  }
10266
- }), _sfc_main$4 = {}, _hoisted_1$1 = {
10272
+ }), _sfc_main$4 = {}, _hoisted_1$2 = {
10267
10273
  class: /* @__PURE__ */ normalizeClass([
10268
10274
  "message w-fit py-2 px-3 text-body-small flex flex-col gap-y-2",
10269
10275
  "bg-chat-agent-background text-chat-agent-text rounded-bubble"
10270
10276
  ])
10271
10277
  };
10272
- function _sfc_render$1(e, t) {
10273
- return openBlock(), createElementBlock("div", _hoisted_1$1, t[0] || (t[0] = [
10278
+ function _sfc_render(e, t) {
10279
+ return openBlock(), createElementBlock("div", _hoisted_1$2, t[0] || (t[0] = [
10274
10280
  createElementVNode("div", { class: "flex gap-x-1 py-2 px-1 -my-px writing-bubble" }, [
10275
10281
  createElementVNode("div"),
10276
10282
  createElementVNode("div"),
@@ -10278,7 +10284,38 @@ function _sfc_render$1(e, t) {
10278
10284
  ], -1)
10279
10285
  ]));
10280
10286
  }
10281
- const WritingBubble = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$1]]), _hoisted_1 = { class: "overflow-hidden relative w-full" }, _sfc_main$3 = /* @__PURE__ */ defineComponent({
10287
+ const WritingBubble = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render]]), _sfc_main$3 = /* @__PURE__ */ defineComponent({
10288
+ __name: "ScrollContainer",
10289
+ setup(e) {
10290
+ const t = useTemplateRef("outer"), r = useTemplateRef("inner"), i = useScroll(t), s = useElementBounding(r), n = ref(!0);
10291
+ watch(i.isScrolling, (o) => {
10292
+ o || (i.measure(), n.value = i.arrivedState.bottom);
10293
+ }), watch(s.height, (o, l) => {
10294
+ l === 0 && o > 0 ? a("auto") : n.value && a("smooth");
10295
+ });
10296
+ const a = (o = "smooth") => {
10297
+ var l, f;
10298
+ (f = t.value) == null || f.scrollTo({
10299
+ top: (l = r.value) == null ? void 0 : l.scrollHeight,
10300
+ left: 0,
10301
+ behavior: o
10302
+ });
10303
+ };
10304
+ return (o, l) => (openBlock(), createElementBlock("div", {
10305
+ ref_key: "outer",
10306
+ ref: t,
10307
+ class: "relative overflow-y-auto w-full"
10308
+ }, [
10309
+ createElementVNode("div", {
10310
+ ref_key: "inner",
10311
+ ref: r,
10312
+ class: "min-h-full"
10313
+ }, [
10314
+ renderSlot(o.$slots, "default")
10315
+ ], 512)
10316
+ ], 512));
10317
+ }
10318
+ }), _hoisted_1$1 = { class: "flex flex-col gap-y-4 p-4" }, _sfc_main$2 = /* @__PURE__ */ defineComponent({
10282
10319
  __name: "ChatLog",
10283
10320
  props: {
10284
10321
  history: {},
@@ -10301,29 +10338,28 @@ const WritingBubble = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_
10301
10338
  l.scrollTo({ top: l.scrollHeight, behavior: o ? "smooth" : "auto" });
10302
10339
  }, 50);
10303
10340
  };
10304
- return onMounted(() => a()), t({ scrollToBottom: a, checkIsScrollAtBottom: n }), (o, l) => (openBlock(), createElementBlock("div", _hoisted_1, [
10305
- createElementVNode("div", {
10306
- ref_key: "wrapperRef",
10307
- ref: r,
10308
- class: "h-full flex flex-col gap-y-4 p-2 overflow-y-auto"
10309
- }, [
10310
- (openBlock(!0), createElementBlock(Fragment, null, renderList(s.value, (f) => (openBlock(), createBlock(_sfc_main$5, {
10311
- key: f.type + ":" + f.messageId,
10312
- messages: f.messages,
10313
- type: f.type
10314
- }, null, 8, ["messages", "type"]))), 128)),
10315
- o.context ? (openBlock(), createBlock(_sfc_main$7, {
10316
- key: 0,
10317
- context: o.context
10318
- }, null, 8, ["context"])) : o.isWriting ? (openBlock(), createBlock(WritingBubble, { key: 1 })) : createCommentVNode("", !0)
10319
- ], 512)
10320
- ]));
10341
+ return onMounted(() => a()), t({ scrollToBottom: a, checkIsScrollAtBottom: n }), (o, l) => (openBlock(), createBlock(_sfc_main$3, null, {
10342
+ default: withCtx(() => [
10343
+ createElementVNode("div", _hoisted_1$1, [
10344
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(s.value, (f) => (openBlock(), createBlock(_sfc_main$5, {
10345
+ key: f.type + ":" + f.messageId,
10346
+ messages: f.messages,
10347
+ type: f.type
10348
+ }, null, 8, ["messages", "type"]))), 128)),
10349
+ o.context ? (openBlock(), createBlock(_sfc_main$7, {
10350
+ key: 0,
10351
+ context: o.context
10352
+ }, null, 8, ["context"])) : o.isWriting ? (openBlock(), createBlock(WritingBubble, { key: 1 })) : createCommentVNode("", !0)
10353
+ ])
10354
+ ]),
10355
+ _: 1
10356
+ }));
10321
10357
  }
10322
- }), _sfc_main$2 = /* @__PURE__ */ defineComponent({
10358
+ }), _hoisted_1 = { class: "m-2 mt-0" }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
10323
10359
  __name: "ChatbotTemplate",
10324
10360
  props: {
10361
+ name: { default: "Agient" },
10325
10362
  isPlayground: { type: Boolean, default: !1 },
10326
- isOnline: { type: Boolean, default: !1 },
10327
10363
  isMobile: { type: Boolean, default: !1 },
10328
10364
  isWriting: { type: Boolean, default: !1 },
10329
10365
  history: { default: null },
@@ -10342,11 +10378,11 @@ const WritingBubble = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_
10342
10378
  ])
10343
10379
  }, [
10344
10380
  createVNode(_sfc_main$a, {
10381
+ name: a.name,
10345
10382
  "is-playground": a.isPlayground,
10346
- online: a.isOnline,
10347
10383
  onMinimize: o[0] || (o[0] = withModifiers((l) => s("minimize"), ["stop"]))
10348
- }, null, 8, ["is-playground", "online"]),
10349
- createVNode(_sfc_main$3, {
10384
+ }, null, 8, ["name", "is-playground"]),
10385
+ createVNode(_sfc_main$2, {
10350
10386
  ref_key: "log",
10351
10387
  ref: i,
10352
10388
  history: a.history ?? [],
@@ -10354,154 +10390,472 @@ const WritingBubble = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_
10354
10390
  context: a.context,
10355
10391
  class: "h-full"
10356
10392
  }, null, 8, ["history", "is-writing", "context"]),
10357
- createVNode(_sfc_main$8, {
10358
- onSend: o[1] || (o[1] = (l) => s("send", l))
10359
- })
10393
+ createElementVNode("div", _hoisted_1, [
10394
+ createVNode(_sfc_main$8, {
10395
+ placeholder: `Ask ${a.name}`,
10396
+ class: "",
10397
+ onSend: o[1] || (o[1] = (l) => s("send", l))
10398
+ }, null, 8, ["placeholder"])
10399
+ ])
10360
10400
  ], 2));
10361
10401
  }
10362
- }), _sfc_main$1 = /* @__PURE__ */ defineComponent({
10402
+ }), _sfc_main = /* @__PURE__ */ defineComponent({
10363
10403
  __name: "Widget",
10364
10404
  props: {
10365
10405
  provider: {}
10366
10406
  },
10367
10407
  setup(e) {
10368
- const t = useTemplateRef("chatbot-template"), r = computed(() => e.provider.writingMessageIds.length > 0), i = ref(e.provider.socket.connected), s = computed(() => e.provider.isMobileScreen.value);
10408
+ const t = useTemplateRef("chatbot-template"), r = computed(() => e.provider.state.writingMessageIds.length > 0), i = computed(() => e.provider.state.isMobileScreen.value);
10369
10409
  onMounted(() => {
10370
- e.provider.socket.on("connect", () => {
10371
- i.value = !0;
10372
- }), e.provider.socket.on("disconnect", () => {
10373
- i.value = !1;
10374
- }), e.provider.socket.on("response", () => {
10375
- var a;
10376
- return (a = t.value) == null ? void 0 : a.scrollToBottom({ animate: !0 });
10410
+ e.provider.socket.on("response", () => {
10411
+ var n;
10412
+ return (n = t.value) == null ? void 0 : n.scrollToBottom({ animate: !0 });
10377
10413
  }), e.provider.socket.on("set_history", () => {
10378
- var a;
10379
- return (a = t.value) == null ? void 0 : a.scrollToBottom({ force: !0 });
10380
- }), e.provider.options.autoStart !== !1 && e.provider.start();
10414
+ var n;
10415
+ return (n = t.value) == null ? void 0 : n.scrollToBottom({ force: !0 });
10416
+ });
10381
10417
  }), watch(
10382
- () => e.provider.isOpen.value,
10383
- (a) => {
10384
- var o;
10385
- a && ((o = t.value) == null || o.scrollToBottom());
10418
+ () => e.provider.state.isOpen.value,
10419
+ (n) => {
10420
+ var a;
10421
+ n && ((a = t.value) == null || a.scrollToBottom());
10386
10422
  }
10387
10423
  );
10388
- const n = (a) => {
10389
- var o;
10390
- e.provider.chat(a), e.provider.socket.connected ? (o = t.value) == null || o.scrollToBottom({ animate: !0 }) : console.error("Socket is not connected");
10424
+ const s = (n) => {
10425
+ var a;
10426
+ e.provider.chat(n), e.provider.socket.connected ? (a = t.value) == null || a.scrollToBottom({ animate: !0 }) : console.error("Socket is not connected");
10391
10427
  };
10392
- return (a, o) => (openBlock(), createBlock(_sfc_main$2, {
10428
+ return (n, a) => (openBlock(), createBlock(_sfc_main$1, {
10393
10429
  ref: "chatbot-template",
10394
- "is-playground": a.provider.isPlayground,
10395
- "is-online": i.value,
10396
- "is-mobile": s.value,
10430
+ "is-playground": n.provider.state.isPlayground.value,
10431
+ "is-mobile": i.value,
10397
10432
  "is-writing": r.value,
10398
- history: a.provider.history,
10399
- context: a.provider.context.value,
10400
- onSend: n,
10401
- onMinimize: o[0] || (o[0] = (l) => a.provider.setOpen(!1))
10402
- }, null, 8, ["is-playground", "is-online", "is-mobile", "is-writing", "history", "context"]));
10433
+ history: n.provider.state.history,
10434
+ context: n.provider.state.context.value,
10435
+ name: n.provider.state.metadata.name,
10436
+ onSend: s,
10437
+ onMinimize: a[0] || (a[0] = (o) => n.provider.setOpen(!1))
10438
+ }, null, 8, ["is-playground", "is-mobile", "is-writing", "history", "context", "name"]));
10403
10439
  }
10404
- }), styles = '/*! tailwindcss v4.1.7 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-outline-style:solid}}}@layer theme{.light,:root{color-scheme:light;--chat-agent-background:#f2ecf8;--chat-agent-text:#23232a;--chat-user-background:#1e1eb9;--chat-user-text:#fff;--input-background:#f2ecf8;--input-text:#23232a;--input-placeholder:#68687d;--context-bubble-background:#0a0a77;--context-bubble-text:#fff;--error-light:#ffccd9;--error-dark:#b3002d;--background:#f8f8fd;--border:#d3d3de;--text-muted:#68687d;--text:#23232a;--focus:#5162fb;--link:#2e2eb8}.dark{color-scheme:dark;--chat-agent-background:#2c2c2c;--chat-agent-text:#fff;--chat-user-background:#1e1eb9;--chat-user-text:#fff;--input-background:#2c2c2c;--input-text:#fff;--input-placeholder:#9d9d9d;--context-bubble-background:#0a0a77;--context-bubble-text:#fff;--error-light:#ffccd9;--error-dark:#b3002d;--background:#07070c;--border:#23232a;--text-muted:#68687d;--text:#fff;--focus:#5162fb;--link:#9f9fff}:root,:host{--color-chat-agent-background:var(--chat-agent-background);--color-chat-agent-text:var(--chat-agent-text);--color-chat-user-background:var(--chat-user-background);--color-chat-user-text:var(--chat-user-text);--color-input-background:var(--input-background);--color-input-text:var(--input-text);--color-input-placeholder:var(--input-placeholder);--color-context-bubble-background:var(--context-bubble-background);--color-context-bubble-text:var(--context-bubble-text);--color-semantic-background:var(--background);--color-semantic-border:var(--border);--color-semantic-text-muted:var(--text-muted);--color-semantic-text:var(--text);--color-semantic-link:var(--link);--color-semantic-focus:var(--focus);--text-body-large-bold:1.25rem;--text-body-large-bold--line-height:1.4;--text-body-large-bold--font-weight:500;--text-body-large-bold--letter-spacing:.005rem;--text-body-bold:.875rem;--text-body-bold--line-height:1.5;--text-body-bold--font-weight:500;--text-body-bold--letter-spacing:.004rem;--text-body-small-bold:.875rem;--text-body-small-bold--line-height:calc(10/7);--text-body-small-bold--font-weight:500;--text-body-small-bold--letter-spacing:.0035rem;--text-body-small:.875rem;--text-body-small--line-height:calc(10/7);--text-body-small--font-weight:400;--text-body-small--letter-spacing:0;--radius-xs:.25rem;--radius-sm:.5rem;--radius-bubble:1.125rem;--radius-full:calc(infinity*1px);--font-mono:ui-monospace,sfmono-regular,menlo,monaco,consolas,"Liberation Mono","Courier New",monospace;--font-poppins:"Poppins",sans-serif;--spacing:.25rem}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--font-poppins,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--font-mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}button,[role=button]{cursor:pointer}:disabled{cursor:default}.font-symbol,.font-symbol-filled{letter-spacing:normal;text-transform:none;white-space:nowrap;word-wrap:normal;font-feature-settings:"liga";-webkit-font-smoothing:antialiased;direction:ltr;font-size:1.5rem;font-style:normal;font-weight:400;line-height:1;display:inline-block}.font-symbol-filled{font-variation-settings:"FILL" 1}body>div{height:fit-content}}@layer utilities{.\\!absolute{position:absolute!important}.fixed{position:fixed}.relative{position:relative}.m-0{margin:calc(var(--spacing)*0)}.m-2{margin:calc(var(--spacing)*2)}.-my-2{margin-block:calc(var(--spacing)*-2)}.-my-px{margin-block:-1px}.mt-0{margin-top:calc(var(--spacing)*0)}.mr-8{margin-right:calc(var(--spacing)*8)}.-ml-1{margin-left:calc(var(--spacing)*-1)}.ml-8{margin-left:calc(var(--spacing)*8)}.ml-auto{margin-left:auto}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.hidden{display:none}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-14{height:calc(var(--spacing)*14)}.h-full{height:100%}.max-h-\\[6\\.5rem\\]{max-height:6.5rem}.min-h-8{min-height:calc(var(--spacing)*8)}.w-8{width:calc(var(--spacing)*8)}.w-14{width:calc(var(--spacing)*14)}.w-fit{width:fit-content}.w-full{width:100%}.min-w-0{min-width:calc(var(--spacing)*0)}.shrink-0{flex-shrink:0}.resize-none{resize:none}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-center{justify-content:center}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-x-1{column-gap:calc(var(--spacing)*1)}.gap-x-3{column-gap:calc(var(--spacing)*3)}.gap-y-0\\.5{row-gap:calc(var(--spacing)*.5)}.gap-y-2{row-gap:calc(var(--spacing)*2)}.gap-y-4{row-gap:calc(var(--spacing)*4)}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-bubble{border-radius:var(--radius-bubble)}.rounded-full{border-radius:3.40282e38px;border-radius:var(--radius-full)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-l-bubble{border-top-left-radius:var(--radius-bubble);border-bottom-left-radius:var(--radius-bubble)}.rounded-tl-bubble{border-top-left-radius:var(--radius-bubble)}.rounded-tl-xs{border-top-left-radius:var(--radius-xs)}.rounded-r-bubble{border-top-right-radius:var(--radius-bubble);border-bottom-right-radius:var(--radius-bubble)}.rounded-tr-bubble{border-top-right-radius:var(--radius-bubble)}.rounded-tr-xs{border-top-right-radius:var(--radius-xs)}.rounded-br-bubble{border-bottom-right-radius:var(--radius-bubble)}.rounded-br-xs{border-bottom-right-radius:var(--radius-xs)}.rounded-bl-bubble{border-bottom-left-radius:var(--radius-bubble)}.rounded-bl-xs{border-bottom-left-radius:var(--radius-xs)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-semantic-border{border-color:var(--color-semantic-border)}.bg-chat-agent-background{background-color:var(--color-chat-agent-background)}.bg-chat-user-background{background-color:var(--color-chat-user-background)}.bg-context-bubble-background{background-color:var(--color-context-bubble-background)}.bg-input-background{background-color:var(--color-input-background)}.bg-semantic-background{background-color:var(--color-semantic-background)}.bg-transparent{background-color:#0000}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.px-0{padding-inline:calc(var(--spacing)*0)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-3{padding-inline:calc(var(--spacing)*3)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.pl-2{padding-left:calc(var(--spacing)*2)}.text-body-bold{font-size:var(--text-body-bold);line-height:var(--tw-leading,var(--text-body-bold--line-height));letter-spacing:var(--tw-tracking,var(--text-body-bold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-bold--font-weight))}.text-body-large-bold{font-size:var(--text-body-large-bold);line-height:var(--tw-leading,var(--text-body-large-bold--line-height));letter-spacing:var(--tw-tracking,var(--text-body-large-bold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-large-bold--font-weight))}.text-body-small{font-size:var(--text-body-small);line-height:var(--tw-leading,var(--text-body-small--line-height));letter-spacing:var(--tw-tracking,var(--text-body-small--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-small--font-weight))}.text-chat-agent-text{color:var(--color-chat-agent-text)}.text-chat-user-text{color:var(--color-chat-user-text)}.text-context-bubble-text{color:var(--color-context-bubble-text)}.text-input-placeholder{color:var(--color-input-placeholder)}.text-input-text{color:var(--color-input-text)}.text-semantic-text{color:var(--color-semantic-text)}.text-semantic-text-muted{color:var(--color-semantic-text-muted)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline-offset-2{outline-offset:2px}.outline-semantic-focus{outline-color:var(--color-semantic-focus)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}@media (hover:hover){.group-hover\\:text-semantic-text:is(:where(.group):hover *){color:var(--color-semantic-text)}}.placeholder\\:text-input-placeholder::placeholder{color:var(--color-input-placeholder)}@media (hover:hover){.group-enabled\\:hover\\:text-input-text:is(:where(.group):enabled *):hover{color:var(--color-input-text)}.group-enabled\\:hover\\:text-semantic-text:is(:where(.group):enabled *):hover{color:var(--color-semantic-text)}}.focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}@layer utilities{.hide-scrollbar::-webkit-scrollbar{display:none}.hide-scrollbar{-ms-overflow-style:none;scrollbar-width:none}}}html,body{justify-content:center;align-items:center;width:100%;height:100%;font-family:Poppins,sans-serif;display:flex;overflow:hidden}.writing-bubble div{height:calc(var(--spacing)*1.5);width:calc(var(--spacing)*1.5);border-radius:3.40282e38px;border-radius:var(--radius-full);background-color:var(--color-chat-agent-text);animation:1s ease-in-out infinite bounce}.writing-bubble div:nth-child(2){animation-delay:.2s}.writing-bubble div:nth-child(3){animation-delay:.4s}@keyframes bounce{0%,70%,to{transform:translateY(0)}35%{transform:translateY(-5px)}}.message{max-width:100%}.message blockquote{padding-block:calc(var(--spacing)*2);padding-left:calc(var(--spacing)*4);color:var(--color-chat-agent-text);flex-direction:column;display:flex;position:relative}.message blockquote>br{display:none}.message blockquote:after{background-color:var(--color-semantic-text-muted);content:"";border-radius:2px;width:4px;position:absolute;top:.5rem;bottom:.5rem;left:0}.message strong{font-size:var(--text-body-bold);line-height:var(--tw-leading,var(--text-body-bold--line-height));letter-spacing:var(--tw-tracking,var(--text-body-bold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-bold--font-weight))}.message table{table-layout:fixed;width:100%}.message table th{border-style:var(--tw-border-style);padding-inline:calc(var(--spacing)*3);padding-block:calc(var(--spacing)*1);font-size:var(--text-body-small-bold);line-height:var(--tw-leading,var(--text-body-small-bold--line-height));letter-spacing:var(--tw-tracking,var(--text-body-small-bold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-small-bold--font-weight));color:var(--color-semantic-text);border-width:1px}.message table td{border-style:var(--tw-border-style);padding-inline:calc(var(--spacing)*3);padding-block:calc(var(--spacing)*1);font-size:var(--text-body-small);line-height:var(--tw-leading,var(--text-body-small--line-height));letter-spacing:var(--tw-tracking,var(--text-body-small--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-small--font-weight));color:var(--color-semantic-text);border-width:1px}.message ol{padding-left:calc(var(--spacing)*6);list-style-type:decimal}.message ul{padding-left:calc(var(--spacing)*6);list-style-type:disc}:is(.message ul,.message ol) li{margin-block:calc(var(--spacing)*1.5);padding-left:calc(var(--spacing)*1)}.message a{color:var(--color-semantic-link);text-decoration-line:underline}.message pre{margin-inline:calc(var(--spacing)*-1);border-radius:var(--radius-sm);background-color:var(--color-semantic-background);padding-inline:calc(var(--spacing)*3);padding-block:calc(var(--spacing)*2);overflow-x:auto}.message pre code{padding:calc(var(--spacing)*0)}.message code{border-radius:var(--radius-xs);background-color:var(--color-semantic-background);padding-inline:calc(var(--spacing)*1);font-size:var(--text-body-small);line-height:var(--tw-leading,var(--text-body-small--line-height));letter-spacing:var(--tw-tracking,var(--text-body-small--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-small--font-weight))}.skeleton-text{position:relative;overflow:hidden}.skeleton-text:before{content:"";z-index:1;background:linear-gradient(90deg,var(--color-semantic-background)0%,var(--color-semantic-background)40%,var(--color-semantic-background)60%,var(--color-semantic-background)100%)no-repeat;width:100%;height:100%;animation:2s infinite skeleton-text-animation;position:absolute;top:0;left:0;transform:translate(-100%)}@supports (color:color-mix(in lab,red,red)){.skeleton-text:before{background:linear-gradient(90deg,color-mix(in oklab,var(--color-semantic-background)0%,transparent),color-mix(in oklab,var(--color-semantic-background)70%,transparent)40%,color-mix(in oklab,var(--color-semantic-background)70%,transparent)60%,color-mix(in oklab,var(--color-semantic-background)0%,transparent))no-repeat}}@keyframes skeleton-text-animation{0%{transform:translate(-100%)}to{transform:translate(100%)}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}', _sfc_main = {};
10405
- function _sfc_render(e, t) {
10406
- return t[0] || (t[0] = createStaticVNode('<meta charset="utf-8"><title>agient.dev</title><link rel="shortcut icon" href="#"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="true"><link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&amp;display=swap" rel="stylesheet">', 6));
10407
- }
10408
- const HeadVue = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]), renderWidget = (e, t, r, i) => {
10409
- const s = createApp(HeadVue), n = createApp({ render: () => h(t, i) }), a = createWidgetFrame(e);
10440
+ }), styles = '/*! tailwindcss v4.1.7 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-outline-style:solid}}}@layer theme{:root,:host{--color-chat-agent-text:var(--chat-agent-text);--color-semantic-background:var(--background);--color-semantic-text-muted:var(--text-muted);--text-body-large-bold:1.25rem;--text-body-large-bold--line-height:1.4;--text-body-large-bold--font-weight:500;--text-body-large-bold--letter-spacing:.005rem;--text-body-bold:.875rem;--text-body-bold--line-height:calc(3/1.75);--text-body-bold--font-weight:500;--text-body-bold--letter-spacing:.004rem;--text-body:.875rem;--text-body--line-height:1.5;--text-body--font-weight:400;--text-body--letter-spacing:0;--text-body-small-bold:.875rem;--text-body-small-bold--line-height:calc(10/7);--text-body-small-bold--font-weight:500;--text-body-small-bold--letter-spacing:.0035rem;--text-body-small:.875rem;--text-body-small--line-height:calc(10/7);--text-body-small--font-weight:400;--text-body-small--letter-spacing:0;--radius-xs:calc(.25rem*var(--border-radius-factor,1));--radius-sm:calc(.5rem*var(--border-radius-factor,1));--radius-bubble-tip:min(var(--radius-xs),1rem);--radius-bubble:min(calc(1.125rem*var(--border-radius-factor,1)),1.5rem);--radius-full:calc(infinity*1px);--font-mono:ui-monospace,sfmono-regular,menlo,monaco,consolas,"Liberation Mono","Courier New",monospace;--font-poppins:"Poppins",sans-serif;--spacing:.25rem}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--font-poppins,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--font-mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}button,[role=button]{cursor:pointer}:disabled{cursor:default}.font-symbol,.font-symbol-filled{letter-spacing:normal;text-transform:none;white-space:nowrap;word-wrap:normal;font-feature-settings:"liga";-webkit-font-smoothing:antialiased;direction:ltr;font-size:1.5rem;font-style:normal;font-weight:400;line-height:1;display:inline-block}.font-symbol-filled{font-variation-settings:"FILL" 1}body>div{height:fit-content}}@layer utilities{.fixed{position:fixed}.relative{position:relative}.m-0{margin:calc(var(--spacing)*0)}.m-2{margin:calc(var(--spacing)*2)}.-my-2{margin-block:calc(var(--spacing)*-2)}.-my-px{margin-block:-1px}.mt-0{margin-top:calc(var(--spacing)*0)}.mr-8{margin-right:calc(var(--spacing)*8)}.-ml-1{margin-left:calc(var(--spacing)*-1)}.ml-8{margin-left:calc(var(--spacing)*8)}.ml-auto{margin-left:auto}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.hidden{display:none}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-14{height:calc(var(--spacing)*14)}.h-full{height:100%}.max-h-\\[6\\.5rem\\]{max-height:6.5rem}.min-h-8{min-height:calc(var(--spacing)*8)}.min-h-full{min-height:100%}.w-8{width:calc(var(--spacing)*8)}.w-14{width:calc(var(--spacing)*14)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing)*0)}.shrink-0{flex-shrink:0}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.resize-none{resize:none}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-center{justify-content:center}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-x-1{column-gap:calc(var(--spacing)*1)}.gap-x-3{column-gap:calc(var(--spacing)*3)}.gap-y-0\\.5{row-gap:calc(var(--spacing)*.5)}.gap-y-2{row-gap:calc(var(--spacing)*2)}.gap-y-4{row-gap:calc(var(--spacing)*4)}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-bubble{border-radius:var(--radius-bubble)}.rounded-full{border-radius:3.40282e38px;border-radius:var(--radius-full)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-l-bubble{border-top-left-radius:var(--radius-bubble);border-bottom-left-radius:var(--radius-bubble)}.rounded-tl-bubble{border-top-left-radius:var(--radius-bubble)}.rounded-tl-bubble-tip{border-top-left-radius:var(--radius-bubble-tip)}.rounded-r-bubble{border-top-right-radius:var(--radius-bubble);border-bottom-right-radius:var(--radius-bubble)}.rounded-tr-bubble{border-top-right-radius:var(--radius-bubble)}.rounded-tr-bubble-tip{border-top-right-radius:var(--radius-bubble-tip)}.rounded-br-bubble{border-bottom-right-radius:var(--radius-bubble)}.rounded-br-bubble-tip{border-bottom-right-radius:var(--radius-bubble-tip)}.rounded-bl-bubble{border-bottom-left-radius:var(--radius-bubble)}.rounded-bl-bubble-tip{border-bottom-left-radius:var(--radius-bubble-tip)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-semantic-border{border-color:var(--border)}.bg-chat-agent-background{background-color:var(--chat-agent-background)}.bg-chat-user-background{background-color:var(--chat-user-background)}.bg-input-background{background-color:var(--input-background)}.bg-semantic-background{background-color:var(--background)}.bg-transparent{background-color:#0000}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.px-0{padding-inline:calc(var(--spacing)*0)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-3{padding-inline:calc(var(--spacing)*3)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.pl-2{padding-left:calc(var(--spacing)*2)}.text-body{font-size:var(--text-body);line-height:var(--tw-leading,var(--text-body--line-height));letter-spacing:var(--tw-tracking,var(--text-body--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body--font-weight))}.text-body-large-bold{font-size:var(--text-body-large-bold);line-height:var(--tw-leading,var(--text-body-large-bold--line-height));letter-spacing:var(--tw-tracking,var(--text-body-large-bold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-large-bold--font-weight))}.text-body-small{font-size:var(--text-body-small);line-height:var(--tw-leading,var(--text-body-small--line-height));letter-spacing:var(--tw-tracking,var(--text-body-small--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-small--font-weight))}.leading-\\[1\\.5rem\\]{--tw-leading:1.5rem;line-height:1.5rem}.text-chat-agent-text{color:var(--chat-agent-text)}.text-chat-user-text{color:var(--chat-user-text)}.text-context-message-text{color:var(--context-message-text)}.text-input-placeholder{color:var(--input-placeholder)}.text-input-text{color:var(--input-text)}.text-semantic-text{color:var(--text)}.text-semantic-text-muted{color:var(--text-muted)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline-offset-2{outline-offset:2px}.outline-semantic-focus{outline-color:var(--focus)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}@media (hover:hover){.group-hover\\:text-semantic-text:is(:where(.group):hover *){color:var(--text)}}.placeholder\\:text-input-placeholder::placeholder{color:var(--input-placeholder)}@media (hover:hover){.group-enabled\\:hover\\:text-input-text:is(:where(.group):enabled *):hover{color:var(--input-text)}.group-enabled\\:hover\\:text-semantic-text:is(:where(.group):enabled *):hover{color:var(--text)}}.focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}@layer utilities{.hide-scrollbar::-webkit-scrollbar{display:none}.hide-scrollbar{-ms-overflow-style:none;scrollbar-width:none}}}html,body{justify-content:center;align-items:center;width:100%;height:100%;font-family:Poppins,sans-serif;display:flex;overflow:hidden}.writing-bubble div{height:calc(var(--spacing)*1.5);width:calc(var(--spacing)*1.5);border-radius:3.40282e38px;border-radius:var(--radius-full);background-color:var(--chat-agent-text);animation:1s ease-in-out infinite bounce}.writing-bubble div:nth-child(2){animation-delay:.2s}.writing-bubble div:nth-child(3){animation-delay:.4s}@keyframes bounce{0%,70%,to{transform:translateY(0)}35%{transform:translateY(-5px)}}.message{max-width:100%}.message blockquote{padding-block:calc(var(--spacing)*2);padding-left:calc(var(--spacing)*4);color:var(--chat-agent-text);flex-direction:column;display:flex;position:relative}.message blockquote>br{display:none}.message blockquote:after{background-color:var(--color-semantic-text-muted);content:"";border-radius:2px;width:4px;position:absolute;top:.5rem;bottom:.5rem;left:0}.message strong{font-size:var(--text-body-bold);line-height:var(--tw-leading,var(--text-body-bold--line-height));letter-spacing:var(--tw-tracking,var(--text-body-bold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-bold--font-weight))}.message table{table-layout:fixed;width:100%}.message table th{border-style:var(--tw-border-style);padding-inline:calc(var(--spacing)*3);padding-block:calc(var(--spacing)*1);font-size:var(--text-body-small-bold);line-height:var(--tw-leading,var(--text-body-small-bold--line-height));letter-spacing:var(--tw-tracking,var(--text-body-small-bold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-small-bold--font-weight));color:var(--text);border-width:1px}.message table td{border-style:var(--tw-border-style);padding-inline:calc(var(--spacing)*3);padding-block:calc(var(--spacing)*1);font-size:var(--text-body-small);line-height:var(--tw-leading,var(--text-body-small--line-height));letter-spacing:var(--tw-tracking,var(--text-body-small--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-small--font-weight));color:var(--text);border-width:1px}.message ol{padding-left:calc(var(--spacing)*6);list-style-type:decimal}.message ul{padding-left:calc(var(--spacing)*6);list-style-type:disc}:is(.message ul,.message ol) li{margin-block:calc(var(--spacing)*1.5);padding-left:calc(var(--spacing)*1)}.message a{color:var(--link);text-decoration-line:underline}.message pre{margin-inline:calc(var(--spacing)*-1);border-radius:var(--radius-sm);background-color:var(--background);padding-inline:calc(var(--spacing)*3);padding-block:calc(var(--spacing)*2);overflow-x:auto}.message pre code{padding:calc(var(--spacing)*0)}.message code{border-radius:var(--radius-xs);background-color:var(--background);padding-inline:calc(var(--spacing)*1);font-size:var(--text-body-small);line-height:var(--tw-leading,var(--text-body-small--line-height));letter-spacing:var(--tw-tracking,var(--text-body-small--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-small--font-weight))}.message hr{border-color:var(--color-chat-agent-text)}@supports (color:color-mix(in lab,red,red)){.message hr{border-color:color-mix(in oklab,var(--color-chat-agent-text)40%,transparent)}}.skeleton-text{position:relative;overflow:hidden}.skeleton-text:before{content:"";z-index:1;background:linear-gradient(90deg,var(--color-semantic-background)0%,var(--color-semantic-background)40%,var(--color-semantic-background)60%,var(--color-semantic-background)100%)no-repeat;width:100%;height:100%;animation:2s infinite skeleton-text-animation;position:absolute;top:0;left:0;transform:translate(-100%)}@supports (color:color-mix(in lab,red,red)){.skeleton-text:before{background:linear-gradient(90deg,color-mix(in oklab,var(--color-semantic-background)0%,transparent),color-mix(in oklab,var(--color-semantic-background)70%,transparent)40%,color-mix(in oklab,var(--color-semantic-background)70%,transparent)60%,color-mix(in oklab,var(--color-semantic-background)0%,transparent))no-repeat}}@keyframes skeleton-text-animation{0%{transform:translate(-100%)}to{transform:translate(100%)}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}', renderAgientElement = (e, t, r, i, s) => {
10441
+ const n = createApp({ render: () => h(e, t) }), a = createWidgetFrame();
10410
10442
  return a.onload = () => {
10411
10443
  if (!a.contentDocument)
10412
- throw new Error("iframe contentDocument failed to load");
10413
- const { head: o, body: l } = a.contentDocument;
10414
- s.mount(o), n.mount(l);
10415
- const f = document.createElement("style");
10416
- f.innerHTML = styles, f.setAttribute("type", "text/css"), o.appendChild(f);
10417
- }, r.appendChild(a), a;
10444
+ throw new Error("Chatbot iframe failed to load on the page");
10445
+ const { head: l, body: f } = a.contentDocument;
10446
+ l.innerHTML = headHtml, n.mount(f), r && l.appendChild(r), i && a.contentDocument.documentElement.classList.add("dark");
10447
+ const c = document.createElement("style");
10448
+ c.innerHTML = styles, c.setAttribute("type", "text/css"), l.appendChild(c);
10449
+ }, {
10450
+ iframe: a,
10451
+ stop: () => {
10452
+ var l;
10453
+ n.unmount(), (l = a.parentElement) == null || l.removeChild(a);
10454
+ }
10455
+ };
10418
10456
  }, createWidgetFrame = (e) => {
10419
10457
  const t = document.createElement("iframe");
10420
- return t.style.pointerEvents = "all", t.style.background = "none", t.style.border = "0px", t.style.float = "none", t.style.position = "relative", t.style.inset = "0px", t.style.width = "100%", t.style.height = "100%", t.style.margin = "0px", t.style.padding = "0px", t.style.minHeight = "0px", t.title = "Agient chat widget", t.id = e, t.name = e, t;
10421
- }, WIDGET_SESSION_ID_LOCAL_STORAGE_KEY = "agient-widget-session-id";
10458
+ return t.style.pointerEvents = "auto", t.style.background = "none", t.style.border = "0px", t.style.float = "none", t.style.position = "relative", t.style.inset = "0px", t.style.width = "100%", t.style.height = "100%", t.style.margin = "0px", t.style.padding = "0px", t.style.minHeight = "0px", t.title = "Agient chatbot", t;
10459
+ }, html = String.raw, headHtml = html`
10460
+ <meta charset="utf-8" />
10461
+ <title>agient.dev</title>
10462
+ <link rel="shortcut icon" href="#" />
10463
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
10464
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="true" />
10465
+ <link
10466
+ href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
10467
+ rel="stylesheet"
10468
+ />
10469
+ `, WIDGET_DEFAULT_THEME_LIGHT = {
10470
+ colorChatAgentBackground: "#f2ecf8",
10471
+ colorChatAgentText: "#23232a",
10472
+ colorChatUserBackground: "#1e1eb9",
10473
+ colorChatUserText: "#ffffff",
10474
+ colorInputBackground: "#f2ecf8",
10475
+ colorInputText: "#23232a",
10476
+ colorInputPlaceholder: "#68687d",
10477
+ colorContextMessageText: "#0a0a77",
10478
+ colorErrorLight: "#ffccd9",
10479
+ colorErrorDark: "#b3002d",
10480
+ colorBackground: "#f8f8fd",
10481
+ colorBorder: "#d3d3de",
10482
+ colorTextMuted: "#68687d",
10483
+ colorText: "#23232a",
10484
+ colorFocus: "#5162fb",
10485
+ colorLink: "#2e2eb8",
10486
+ isDarkMode: !1,
10487
+ borderRadiusFactor: 1,
10488
+ launchButtonSizeFactor: 1,
10489
+ widgetSizeFactor: 1
10490
+ }, WIDGET_DEFAULT_THEME_DARK = {
10491
+ colorChatAgentBackground: "#2c2c2c",
10492
+ colorChatAgentText: "#ffffff",
10493
+ colorChatUserBackground: "#1e1eb9",
10494
+ colorChatUserText: "#ffffff",
10495
+ colorInputBackground: "#2c2c2c",
10496
+ colorInputText: "#ffffff",
10497
+ colorInputPlaceholder: "#9d9d9d",
10498
+ colorContextMessageText: "#ffffff",
10499
+ colorErrorLight: "#ffccd9",
10500
+ colorErrorDark: "#b3002d",
10501
+ colorBackground: "#07070c",
10502
+ colorBorder: "#23232a",
10503
+ colorTextMuted: "#68687d",
10504
+ colorText: "#ffffff",
10505
+ colorFocus: "#5162fb",
10506
+ colorLink: "#9f9fff",
10507
+ isDarkMode: !0,
10508
+ borderRadiusFactor: 1,
10509
+ launchButtonSizeFactor: 1,
10510
+ widgetSizeFactor: 1
10511
+ }, getThemeStylesheet = (e) => {
10512
+ const t = document.createElement("style"), r = (s) => s.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, ""), i = (s) => Object.entries(s ? WIDGET_DEFAULT_THEME_DARK : WIDGET_DEFAULT_THEME_LIGHT).map(([n, a]) => {
10513
+ let o = n;
10514
+ return n.startsWith("color") && (o = n.substring(5)), [`--${r(o)}`, (e[n] || a).toString()];
10515
+ });
10516
+ return t.innerHTML = `
10517
+ .light, :root {
10518
+ color-scheme: light;
10519
+ ${i(!1).map(([s, n]) => `${s}: ${n};`).join(`
10520
+ `)}
10521
+ }
10522
+
10523
+ .dark {
10524
+ color-scheme: dark;
10525
+ ${i(!0).map(([s, n]) => `${s}: ${n};`).join(`
10526
+ `)}
10527
+ }
10528
+ `, t;
10529
+ };
10530
+ class AgientElement {
10531
+ constructor(t) {
10532
+ /**
10533
+ * The state of the widget.
10534
+ */
10535
+ U(this, "state");
10536
+ /**
10537
+ * Default margin of the widget in REM.
10538
+ */
10539
+ U(this, "widgetMargin", 1);
10540
+ /**
10541
+ * Default width of the widget in REM.
10542
+ */
10543
+ U(this, "widgetWidth", 24);
10544
+ /**
10545
+ * Default height of the widget in REM.
10546
+ */
10547
+ U(this, "widgetHeight", 42);
10548
+ /**
10549
+ * Default width and height of the launch button in REM.
10550
+ */
10551
+ U(this, "launchButtonSize", 5.5);
10552
+ /**
10553
+ * The function to stop the watchers.
10554
+ */
10555
+ U(this, "stopFn", null);
10556
+ this.state = t;
10557
+ const r = this.state.metadata.theme.launchButtonSizeFactor ?? 1, i = this.state.metadata.theme.widgetSizeFactor ?? 1;
10558
+ this.launchButtonSize = r * this.launchButtonSize, this.widgetWidth = i * this.widgetWidth, this.widgetHeight = i * this.widgetHeight;
10559
+ }
10560
+ /**
10561
+ * Creates the Vue instances for the widget and launch button.
10562
+ * Attaches the custom styles, and starts the watchers for the open state and mobile screen.
10563
+ * Appends the widget and launch button to the document body.
10564
+ * @param provider The provider for the widget.
10565
+ */
10566
+ mount(t) {
10567
+ const r = getThemeStylesheet(this.state.metadata.theme), { iframe: i, stop: s } = renderAgientElement(
10568
+ _sfc_main,
10569
+ { provider: t },
10570
+ r,
10571
+ this.state.metadata.theme.isDarkMode
10572
+ ), { iframe: n, stop: a } = renderAgientElement(
10573
+ _sfc_main$d,
10574
+ { provider: t },
10575
+ r.cloneNode(!0),
10576
+ this.state.metadata.theme.isDarkMode
10577
+ ), o = this.createWidgetWrapper();
10578
+ o.appendChild(i);
10579
+ const l = this.createLaunchWrapper();
10580
+ l.appendChild(n), document.body.appendChild(o), document.body.appendChild(l);
10581
+ const f = watch(
10582
+ [this.state.isOpen, this.state.isMobileScreen],
10583
+ () => {
10584
+ this.styleWidgetWrapperOpenState(o, this.state.isOpen.value, this.state.isMobileScreen.value), this.styleLaunchWrapperOpenState(l, this.state.isOpen.value);
10585
+ },
10586
+ { immediate: !0 }
10587
+ );
10588
+ this.stopFn = () => {
10589
+ f.stop(), s(), a();
10590
+ };
10591
+ }
10592
+ /**
10593
+ * Unmounts the widget and launch button.
10594
+ * Destroys all Vue instances and stops all watchers.
10595
+ */
10596
+ unmount() {
10597
+ var t;
10598
+ (t = this.stopFn) == null || t.call(this), this.stopFn = null;
10599
+ }
10600
+ /**
10601
+ * Creates a widget wrapper for the widget.
10602
+ * @returns The widget wrapper element.
10603
+ */
10604
+ createWidgetWrapper() {
10605
+ const t = this.createBaseWrapper();
10606
+ return t.id = "agient-chatbot", t;
10607
+ }
10608
+ /**
10609
+ * Creates a launch wrapper for the widget.
10610
+ * @returns The launch wrapper element.
10611
+ */
10612
+ createLaunchWrapper() {
10613
+ const t = this.createBaseWrapper();
10614
+ return t.id = "agient-chatbot-frame", t.style.width = `${this.launchButtonSize}rem`, t.style.height = `${this.launchButtonSize}rem`, t.style.borderRadius = "9999px", t;
10615
+ }
10616
+ /**
10617
+ * Styles the widget wrapper based on the open state and if it's on a mobile screen.
10618
+ * @param wrapper The widget wrapper element.
10619
+ * @param isOpen Whether the widget is open.
10620
+ * @param isMobile Whether the widget is on a mobile screen.
10621
+ */
10622
+ styleWidgetWrapperOpenState(t, r, i) {
10623
+ i ? (t.style.width = "100%", t.style.height = "100%", t.style.right = "0rem") : (t.style.width = `calc(${this.widgetWidth}rem - ${this.widgetMargin}rem)`, t.style.height = `calc(${this.widgetHeight}rem - ${this.widgetMargin}rem)`, t.style.right = `${this.widgetMargin}rem`), r ? (t.style.display = "block", setTimeout(() => t.style.bottom = `${i ? 0 : this.widgetMargin}rem`, 1)) : (t.style.display = "none", t.style.bottom = `calc(-${this.widgetHeight}rem - ${this.widgetMargin}rem)`);
10624
+ }
10625
+ /**
10626
+ * Styles the launch wrapper based on the open state.
10627
+ * This is used to animate the launch wrapper when the widget is opened or closed.
10628
+ * @param wrapper The launch wrapper element.
10629
+ * @param isOpen Whether the widget is open.
10630
+ */
10631
+ styleLaunchWrapperOpenState(t, r) {
10632
+ r ? (t.style.bottom = `calc(-${this.widgetHeight}rem - ${this.widgetMargin}rem)`, t.style.display = "none") : (t.style.display = "block", setTimeout(() => t.style.bottom = `${this.widgetMargin}rem`, 1));
10633
+ }
10634
+ /**
10635
+ * Creates a base wrapper for the widget and launch button.
10636
+ * @returns The base wrapper element.
10637
+ */
10638
+ createBaseWrapper() {
10639
+ const t = document.createElement("div");
10640
+ return t.style.border = "0px", t.style.backgroundColor = "transparent", t.style.zIndex = "2147483639", t.style.position = "fixed", t.style.right = `${this.widgetMargin}rem`, t.style.overflow = "hidden", t.style.display = "none", t.style.opacity = "1", t.style.maxWidth = "100%", t.style.maxHeight = "100%", t.style.transitionProperty = "display, opacity, bottom", t.style.transitionBehavior = "allow-discrete", t.style.transitionDuration = "0.3s", t.style.transitionTimingFunction = "ease-in-out", t;
10641
+ }
10642
+ }
10422
10643
  class AgientProvider {
10423
- constructor(t, r, i = !1) {
10424
- Y(this, "sessionId");
10425
- Y(this, "windowSize", useWindowSize());
10426
- Y(this, "apiKey");
10427
- Y(this, "isMobileScreen", computed(() => this.windowSize.width.value < 768));
10428
- Y(this, "isOpen", ref(!1));
10429
- Y(this, "context", ref(null));
10430
- Y(this, "history", reactive([]));
10431
- Y(this, "writingMessageIds", reactive([]));
10432
- Y(this, "isPlayground");
10433
- // TODO: Should come from widget options
10434
- Y(this, "widgetMargin", 1);
10435
- Y(this, "widgetWidth", 24);
10436
- Y(this, "widgetHeight", 42);
10437
- Y(this, "widgetFrame");
10438
- Y(this, "widgetWrapper");
10439
- Y(this, "launchFrame");
10440
- Y(this, "launchWrapper");
10441
- Y(this, "socket");
10442
- Y(this, "options");
10443
- Y(this, "registeredTools", {});
10444
- this.options = r, this.isOpen.value = i, this.isPlayground = i, this.widgetWrapper = this.createWidgetWrapper(), this.widgetFrame = renderWidget("agient-chatbot", _sfc_main$1, this.widgetWrapper, { provider: this }), this.launchWrapper = this.createLaunchWrapper(), this.launchFrame = renderWidget("agient-chatbot-launch", _sfc_main$d, this.launchWrapper, { provider: this }), effect(() => {
10445
- this.styleWidgetWrapperOpenState(this.widgetWrapper, this.isOpen.value, this.isMobileScreen.value), this.styleLaunchWrapperOpenState(this.launchWrapper, this.isOpen.value);
10446
- }), this.apiKey = t, this.sessionId = this.getSessionId(), this.socket = this.createSocket(this.apiKey, this.sessionId), this.socket.on("response", this.onResponse.bind(this)), this.socket.on("set_history", this.onSetHistory.bind(this)), this.socket.on("tool_call", this.onToolCall.bind(this)), this.socket.on("received", this.onReceived.bind(this)), this.socket.on("writing", this.onWriting.bind(this));
10447
- }
10448
- start() {
10449
- this.socket.active || this.socket.connect();
10644
+ constructor(t, r, i) {
10645
+ /**
10646
+ * The state of the chatbot.
10647
+ */
10648
+ U(this, "state");
10649
+ /**
10650
+ * The socket connection to the chatbot.
10651
+ */
10652
+ U(this, "socket");
10653
+ /**
10654
+ * The tools registered by the consumer of the widget.
10655
+ */
10656
+ U(this, "registeredTools");
10657
+ /**
10658
+ * The element of the chatbot.
10659
+ */
10660
+ U(this, "element");
10661
+ /**
10662
+ * Handle a response from the chatbot.
10663
+ * @param payload - The payload from the chatbot.
10664
+ */
10665
+ U(this, "onResponse", (t) => {
10666
+ this.state.history.push(t), this.state.context.value = null;
10667
+ const r = this.state.writingMessageIds.indexOf(t.messageId);
10668
+ r > -1 && this.state.writingMessageIds.splice(r, 1);
10669
+ });
10670
+ /**
10671
+ * Handle a writing event from the chatbot.
10672
+ * @param payload - The payload from the chatbot.
10673
+ */
10674
+ U(this, "onWriting", (t) => {
10675
+ this.state.writingMessageIds.includes(t) || this.state.writingMessageIds.push(t);
10676
+ });
10677
+ /**
10678
+ * Handle a received event from the chatbot.
10679
+ * @param message - The message from the chatbot.
10680
+ */
10681
+ U(this, "onReceived", (t) => {
10682
+ this.state.history.push(t), t.type === "tool-finished" && (this.state.context.value = null);
10683
+ });
10684
+ /**
10685
+ * Handle a tool call event from the chatbot.
10686
+ * @param payload - The payload from the chatbot.
10687
+ */
10688
+ U(this, "onToolCall", async (t) => {
10689
+ this.state.history.push(t);
10690
+ const r = this.registeredTools[t.name];
10691
+ let i = "", s;
10692
+ if (r) {
10693
+ typeof t.args.__context_message == "string" && (this.state.context.value = t.args.__context_message);
10694
+ try {
10695
+ const n = await r(t.args);
10696
+ typeof n == "string" ? i = n : i = JSON.stringify(n, null, 2);
10697
+ } catch (n) {
10698
+ s = n.message;
10699
+ }
10700
+ } else
10701
+ s = `Tool "${t.name}" was not found`;
10702
+ this.socket.emit("tools_response", { toolCall: t, content: i, error: s });
10703
+ });
10704
+ this.state = t, this.socket = r, this.registeredTools = i, this.element = new AgientElement(this.state), this.initialize();
10705
+ }
10706
+ /**
10707
+ * Initialize the provider.
10708
+ */
10709
+ initialize() {
10710
+ this.element.mount(this), this.socket.on("response", this.onResponse), this.socket.on("tool_call", this.onToolCall), this.socket.on("received", this.onReceived), this.socket.on("writing", this.onWriting);
10450
10711
  }
10712
+ /**
10713
+ * Stop the provider.
10714
+ */
10451
10715
  stop() {
10452
- this.socket.active && this.socket.disconnect();
10716
+ this.element.unmount(), this.socket.off("response", this.onResponse), this.socket.off("tool_call", this.onToolCall), this.socket.off("received", this.onReceived), this.socket.off("writing", this.onWriting);
10453
10717
  }
10454
- createNewSession() {
10455
- this.stop(), this.sessionId = this.getSessionId(), this.socket.auth = {
10456
- apiKey: this.apiKey,
10457
- sessionId: this.sessionId
10458
- }, this.start();
10718
+ /**
10719
+ * Set the open state of the chatbot.
10720
+ * @param open - Whether the chatbot should be open.
10721
+ */
10722
+ setOpen(t) {
10723
+ this.state.isOpen.value = t;
10459
10724
  }
10725
+ /**
10726
+ * Send a message to the chatbot.
10727
+ * @param message - The message to send to the chatbot.
10728
+ */
10460
10729
  chat(t) {
10461
10730
  this.socket.emit("chat", t);
10462
10731
  }
10463
- setOpen(t) {
10464
- this.isOpen.value = t;
10732
+ }
10733
+ class AgientState {
10734
+ constructor(t, r, i) {
10735
+ /**
10736
+ * Whether the chatbot is open.
10737
+ */
10738
+ U(this, "isOpen", ref(!1));
10739
+ /**
10740
+ * A message displayed in the chatbot while a tool is being executed.
10741
+ */
10742
+ U(this, "context", ref(null));
10743
+ /**
10744
+ * The history of the chatbot.
10745
+ */
10746
+ U(this, "history", reactive([]));
10747
+ /**
10748
+ * A list of message IDs that the chatbot is writing a response for.
10749
+ */
10750
+ U(this, "writingMessageIds", reactive([]));
10751
+ /**
10752
+ * Whether the chatbot is in playground mode.
10753
+ */
10754
+ U(this, "isPlayground", ref(!1));
10755
+ /**
10756
+ * Whether the chatbot is on a mobile screen.
10757
+ */
10758
+ U(this, "isMobileScreen");
10759
+ /**
10760
+ * The metadata of the chatbot.
10761
+ */
10762
+ U(this, "metadata");
10763
+ const s = useWindowSize();
10764
+ this.isMobileScreen = computed(() => s.width.value < 768), this.history.push(...t), this.metadata = r, this.isPlayground.value = i;
10465
10765
  }
10466
- onResponse(t) {
10467
- this.history.push(t), this.context.value = null;
10468
- const r = this.writingMessageIds.indexOf(t.messageId);
10469
- r > -1 && this.writingMessageIds.splice(r, 1);
10766
+ }
10767
+ const SESSION_ID_LOCAL_STORAGE_KEY = "agient-chatbot-session-id";
10768
+ class AgientInstance {
10769
+ constructor(t, r) {
10770
+ /**
10771
+ * The status of the chatbot.
10772
+ */
10773
+ U(this, "status", "stopped");
10774
+ /**
10775
+ * The session ID for the chatbot.
10776
+ */
10777
+ U(this, "_sessionId", null);
10778
+ /**
10779
+ * The socket for the chatbot.
10780
+ */
10781
+ U(this, "_socket", null);
10782
+ /**
10783
+ * Whether the chatbot is in playground mode. Used only internally at https://agient.dev
10784
+ */
10785
+ U(this, "isPlayground", !1);
10786
+ /**
10787
+ * When the chatbot is active, a provider object is initialized
10788
+ */
10789
+ U(this, "provider", null);
10790
+ /**
10791
+ * The tools registered by the consumer of the widget.
10792
+ */
10793
+ U(this, "registeredTools", {});
10794
+ this.apiKey = t, this.options = r;
10470
10795
  }
10471
- onSetHistory(t) {
10472
- this.history.length = 0, this.history.push(...t), this.context.value = null, this.writingMessageIds.length = 0;
10796
+ /**
10797
+ * Register a tool handler for a tool defined in the agient app.
10798
+ *
10799
+ * @param event - The name of the tool to register a handler for.
10800
+ * @param fn - The handler for the tool.
10801
+ */
10802
+ on(t, r) {
10803
+ this.registeredTools[t] = r;
10473
10804
  }
10474
- onWriting(t) {
10475
- this.writingMessageIds.includes(t) || this.writingMessageIds.push(t);
10805
+ /**
10806
+ * Start the chatbot.
10807
+ */
10808
+ async start() {
10809
+ if (this.status === "stopped")
10810
+ return this.status = "starting", new Promise((t, r) => {
10811
+ const i = (n) => {
10812
+ this.socket.off("connect", s), r(
10813
+ new Error("[Agient]: Failed to start the chatbot", {
10814
+ cause: n.message
10815
+ })
10816
+ );
10817
+ }, s = async () => {
10818
+ this.socket.off("connect_error", i);
10819
+ try {
10820
+ const { history: n, metadata: a } = await this.socket.connect().emitWithAck("initialize"), o = new AgientState(n, a, this.isPlayground);
10821
+ this.provider = new AgientProvider(o, this.socket, this.registeredTools), this.status = "started", this.socket.on("disconnect", this.onDisconnect.bind(this)), t();
10822
+ } catch (n) {
10823
+ r(
10824
+ new Error("[Agient]: Failed to start the chatbot", {
10825
+ cause: n
10826
+ })
10827
+ );
10828
+ }
10829
+ };
10830
+ this.socket.on("connect_error", i), this.socket.on("connect", s), this.socket.connect();
10831
+ });
10476
10832
  }
10477
- onReceived(t) {
10478
- this.history.push(t), t.type === "tool-finished" && (this.context.value = null);
10833
+ /**
10834
+ * Stop the chatbot.
10835
+ */
10836
+ async stop() {
10837
+ this.status === "started" && this.onDisconnect();
10479
10838
  }
10480
- async onToolCall(t) {
10481
- this.history.push(t);
10482
- const r = this.registeredTools[t.name];
10483
- let i = "", s;
10484
- if (r) {
10485
- typeof t.args.__context_message == "string" && (this.context.value = t.args.__context_message);
10486
- try {
10487
- const n = await r(t.args);
10488
- typeof n == "string" ? i = n : i = JSON.stringify(n, null, 2);
10489
- } catch (n) {
10490
- s = n.message;
10491
- }
10492
- } else
10493
- s = `Tool "${t.name}" was not found`;
10494
- this.socket.emit("tools_response", { toolCall: t, content: i, error: s });
10839
+ /**
10840
+ * Stop the chatbot and disconnect the socket.
10841
+ */
10842
+ onDisconnect(t) {
10843
+ this.status = "stopped", this.provider && this.provider.stop(), this.socket.removeAllListeners(), this.socket.connected && this.socket.disconnect(), t && console.error(new Error("[Agient]: Disconnected from the server", { cause: t }));
10495
10844
  }
10496
- getSessionId() {
10497
- const t = localStorage.getItem(WIDGET_SESSION_ID_LOCAL_STORAGE_KEY);
10498
- if (t && validate(t))
10499
- return t;
10500
- const r = v4();
10501
- return localStorage.setItem(WIDGET_SESSION_ID_LOCAL_STORAGE_KEY, r), r;
10845
+ get socket() {
10846
+ return this._socket ? this._socket : (this._socket = this.createSocket(this.apiKey, this.sessionId), this._socket);
10502
10847
  }
10848
+ get sessionId() {
10849
+ return this._sessionId ? this._sessionId : (this._sessionId = this.getSessionId(), this._sessionId);
10850
+ }
10851
+ /**
10852
+ * Create a socket for the chatbot.
10853
+ *
10854
+ * @param apiKey - The API key for the chatbot.
10855
+ * @param sessionId - The session ID for the chatbot.
10856
+ */
10503
10857
  createSocket(t, r) {
10504
- return io(void 0, {
10858
+ return io("https://api.agient.dev", {
10505
10859
  autoConnect: !1,
10506
10860
  auth: {
10507
10861
  apiKey: t,
@@ -10509,28 +10863,20 @@ class AgientProvider {
10509
10863
  }
10510
10864
  });
10511
10865
  }
10512
- createWidgetWrapper() {
10513
- const t = this.createBaseWrapper();
10514
- return t.id = "agient-chatbot", this.styleWidgetWrapperOpenState(t, this.isOpen.value, this.isMobileScreen.value), t;
10515
- }
10516
- createLaunchWrapper() {
10517
- const t = this.createBaseWrapper();
10518
- return t.id = "agient-chatbot-frame", t.style.width = "5.5rem", t.style.height = "5.5rem", t.style.borderRadius = "9999px", this.styleLaunchWrapperOpenState(t, this.isOpen.value), t;
10519
- }
10520
- styleWidgetWrapperOpenState(t, r, i) {
10521
- i ? (t.style.width = "100%", t.style.height = "100%", t.style.right = "0rem") : (t.style.width = `calc(${this.widgetWidth}rem - ${this.widgetMargin}rem)`, t.style.height = `calc(${this.widgetHeight}rem - ${this.widgetMargin}rem)`, t.style.right = `${this.widgetMargin}rem`), r ? (t.style.display = "block", setTimeout(() => t.style.bottom = `${i ? 0 : this.widgetMargin}rem`, 1)) : (t.style.display = "none", t.style.bottom = `calc(-${this.widgetHeight}rem - ${this.widgetMargin}rem)`);
10522
- }
10523
- styleLaunchWrapperOpenState(t, r) {
10524
- r ? (t.style.bottom = `calc(-${this.widgetHeight}rem - ${this.widgetMargin}rem)`, t.style.display = "none") : (t.style.display = "block", setTimeout(() => t.style.bottom = `${this.widgetMargin}rem`, 1));
10525
- }
10526
- createBaseWrapper() {
10527
- const t = document.createElement("div");
10528
- return t.style.border = "0px", t.style.backgroundColor = "transparent", t.style.pointerEvents = "none", t.style.zIndex = "2147483639", t.style.position = "fixed", t.style.right = `${this.widgetMargin}rem`, t.style.overflow = "hidden", t.style.opacity = "1", t.style.maxWidth = "100%", t.style.maxHeight = "100%", t.style.transitionProperty = "display, opacity, bottom", t.style.transitionBehavior = "allow-discrete", t.style.transitionDuration = "0.3s", t.style.transitionTimingFunction = "ease-in-out", t;
10866
+ /**
10867
+ * Get the session ID for the chatbot.
10868
+ */
10869
+ getSessionId() {
10870
+ const t = localStorage.getItem(SESSION_ID_LOCAL_STORAGE_KEY);
10871
+ if (t && validate(t))
10872
+ return t;
10873
+ const r = v4();
10874
+ return localStorage.setItem(SESSION_ID_LOCAL_STORAGE_KEY, r), r;
10529
10875
  }
10530
10876
  }
10531
10877
  const createAgient = (e, t = {}) => {
10532
- const r = new AgientProvider(e, t);
10533
- return document.body.appendChild(r.widgetWrapper), document.body.appendChild(r.launchWrapper), createInstance(r);
10878
+ const r = new AgientInstance(e, t);
10879
+ return t.autoStart !== !1 && r.start(), r;
10534
10880
  };
10535
10881
  export {
10536
10882
  createAgient