@innovastudio/contentbox-runtime 1.0.10 → 1.0.11

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.
@@ -2,7 +2,7 @@ var Oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2
2
  function gi(u) {
3
3
  return u && u.__esModule && Object.prototype.hasOwnProperty.call(u, "default") ? u.default : u;
4
4
  }
5
- var Pt = { exports: {} }, ws = Pt.exports, Ai;
5
+ var Dt = { exports: {} }, ws = Dt.exports, Ai;
6
6
  function xs() {
7
7
  return Ai || (Ai = 1, (function(u, e) {
8
8
  (function(t, s) {
@@ -12,9 +12,9 @@ function xs() {
12
12
  return p.Date.now();
13
13
  };
14
14
  function x(O, j, z) {
15
- var V, K, ve, be, X, we, ue = 0, Re = !1, xe = !1, Le = !0;
15
+ var V, K, ve, be, X, we, ue = 0, qe = !1, xe = !1, Ce = !0;
16
16
  if (typeof O != "function") throw new TypeError(s);
17
- function Me(Z) {
17
+ function Re(Z) {
18
18
  var _e = V, Ie = K;
19
19
  return V = K = void 0, ue = Z, be = O.apply(Ie, _e);
20
20
  }
@@ -31,19 +31,19 @@ function xs() {
31
31
  })(Z));
32
32
  }
33
33
  function Ge(Z) {
34
- return X = void 0, Le && V ? Me(Z) : (V = K = void 0, be);
34
+ return X = void 0, Ce && V ? Re(Z) : (V = K = void 0, be);
35
35
  }
36
36
  function Oe() {
37
37
  var Z = b(), _e = Fe(Z);
38
38
  if (V = arguments, K = this, we = Z, _e) {
39
39
  if (X === void 0) return (function(Ie) {
40
- return ue = Ie, X = setTimeout(He, j), Re ? Me(Ie) : be;
40
+ return ue = Ie, X = setTimeout(He, j), qe ? Re(Ie) : be;
41
41
  })(we);
42
- if (xe) return X = setTimeout(He, j), Me(we);
42
+ if (xe) return X = setTimeout(He, j), Re(we);
43
43
  }
44
44
  return X === void 0 && (X = setTimeout(He, j)), be;
45
45
  }
46
- return j = v(j) || 0, m(z) && (Re = !!z.leading, ve = (xe = "maxWait" in z) ? w(v(z.maxWait) || 0, j) : ve, Le = "trailing" in z ? !!z.trailing : Le), Oe.cancel = function() {
46
+ return j = v(j) || 0, m(z) && (qe = !!z.leading, ve = (xe = "maxWait" in z) ? w(v(z.maxWait) || 0, j) : ve, Ce = "trailing" in z ? !!z.trailing : Ce), Oe.cancel = function() {
47
47
  X !== void 0 && clearTimeout(X), ue = 0, V = we = K = X = void 0;
48
48
  }, Oe.flush = function() {
49
49
  return X === void 0 ? be : Ge(b());
@@ -73,8 +73,8 @@ function xs() {
73
73
  var V = !0, K = !0;
74
74
  if (typeof O != "function") throw new TypeError(s);
75
75
  return m(z) && (V = "leading" in z ? !!z.leading : V, K = "trailing" in z ? !!z.trailing : K), x(O, j, { leading: V, maxWait: j, trailing: K });
76
- }, f = "Expected a function", y = NaN, k = "[object Symbol]", C = /^\s+|\s+$/g, T = /^[-+]0x[0-9a-f]+$/i, A = /^0b[01]+$/i, M = /^0o[0-7]+$/i, B = parseInt, D = typeof t == "object" && t && t.Object === Object && t, P = typeof self == "object" && self && self.Object === Object && self, q = D || P || Function("return this")(), R = Object.prototype.toString, I = Math.max, E = Math.min, $ = function() {
77
- return q.Date.now();
76
+ }, f = "Expected a function", y = NaN, k = "[object Symbol]", L = /^\s+|\s+$/g, T = /^[-+]0x[0-9a-f]+$/i, A = /^0b[01]+$/i, R = /^0o[0-7]+$/i, B = parseInt, P = typeof t == "object" && t && t.Object === Object && t, D = typeof self == "object" && self && self.Object === Object && self, M = P || D || Function("return this")(), q = Object.prototype.toString, I = Math.max, E = Math.min, $ = function() {
77
+ return M.Date.now();
78
78
  };
79
79
  function H(O) {
80
80
  var j = typeof O;
@@ -85,21 +85,21 @@ function xs() {
85
85
  if ((function(V) {
86
86
  return typeof V == "symbol" || /* @__PURE__ */ (function(K) {
87
87
  return !!K && typeof K == "object";
88
- })(V) && R.call(V) == k;
88
+ })(V) && q.call(V) == k;
89
89
  })(O)) return y;
90
90
  if (H(O)) {
91
91
  var j = typeof O.valueOf == "function" ? O.valueOf() : O;
92
92
  O = H(j) ? j + "" : j;
93
93
  }
94
94
  if (typeof O != "string") return O === 0 ? O : +O;
95
- O = O.replace(C, "");
95
+ O = O.replace(L, "");
96
96
  var z = A.test(O);
97
- return z || M.test(O) ? B(O.slice(2), z ? 2 : 8) : T.test(O) ? y : +O;
97
+ return z || R.test(O) ? B(O.slice(2), z ? 2 : 8) : T.test(O) ? y : +O;
98
98
  }
99
99
  var J = function(O, j, z) {
100
- var V, K, ve, be, X, we, ue = 0, Re = !1, xe = !1, Le = !0;
100
+ var V, K, ve, be, X, we, ue = 0, qe = !1, xe = !1, Ce = !0;
101
101
  if (typeof O != "function") throw new TypeError(f);
102
- function Me(Z) {
102
+ function Re(Z) {
103
103
  var _e = V, Ie = K;
104
104
  return V = K = void 0, ue = Z, be = O.apply(Ie, _e);
105
105
  }
@@ -116,19 +116,19 @@ function xs() {
116
116
  })(Z));
117
117
  }
118
118
  function Ge(Z) {
119
- return X = void 0, Le && V ? Me(Z) : (V = K = void 0, be);
119
+ return X = void 0, Ce && V ? Re(Z) : (V = K = void 0, be);
120
120
  }
121
121
  function Oe() {
122
122
  var Z = $(), _e = Fe(Z);
123
123
  if (V = arguments, K = this, we = Z, _e) {
124
124
  if (X === void 0) return (function(Ie) {
125
- return ue = Ie, X = setTimeout(He, j), Re ? Me(Ie) : be;
125
+ return ue = Ie, X = setTimeout(He, j), qe ? Re(Ie) : be;
126
126
  })(we);
127
- if (xe) return X = setTimeout(He, j), Me(we);
127
+ if (xe) return X = setTimeout(He, j), Re(we);
128
128
  }
129
129
  return X === void 0 && (X = setTimeout(He, j)), be;
130
130
  }
131
- return j = U(j) || 0, H(z) && (Re = !!z.leading, ve = (xe = "maxWait" in z) ? I(U(z.maxWait) || 0, j) : ve, Le = "trailing" in z ? !!z.trailing : Le), Oe.cancel = function() {
131
+ return j = U(j) || 0, H(z) && (qe = !!z.leading, ve = (xe = "maxWait" in z) ? I(U(z.maxWait) || 0, j) : ve, Ce = "trailing" in z ? !!z.trailing : Ce), Oe.cancel = function() {
132
132
  X !== void 0 && clearTimeout(X), ue = 0, V = we = K = X = void 0;
133
133
  }, Oe.flush = function() {
134
134
  return X === void 0 ? be : Ge($());
@@ -198,14 +198,14 @@ function xs() {
198
198
  return O.forEach(function(j, z) {
199
199
  return (function(V, K) {
200
200
  var ve = V.options, be = V.position, X = V.node, we = (V.data, function() {
201
- V.animated && ((function(ue, Re) {
202
- Re && Re.forEach(function(xe) {
201
+ V.animated && ((function(ue, qe) {
202
+ qe && qe.forEach(function(xe) {
203
203
  return ue.classList.remove(xe);
204
204
  });
205
205
  })(X, ve.animatedClassNames), fe("aos:out", X), V.options.id && fe("aos:in:" + V.options.id, X), V.animated = !1);
206
206
  });
207
- ve.mirror && K >= be.out && !ve.once ? we() : K >= be.in ? V.animated || ((function(ue, Re) {
208
- Re && Re.forEach(function(xe) {
207
+ ve.mirror && K >= be.out && !ve.once ? we() : K >= be.in ? V.animated || ((function(ue, qe) {
208
+ qe && qe.forEach(function(xe) {
209
209
  return ue.classList.add(xe);
210
210
  });
211
211
  })(X, ve.animatedClassNames), fe("aos:in", X), V.options.id && fe("aos:in:" + V.options.id, X), V.animated = !0) : V.animated && !ve.once && we();
@@ -226,10 +226,10 @@ function xs() {
226
226
  var K = te(z.node, "mirror", j.mirror), ve = te(z.node, "once", j.once), be = te(z.node, "id"), X = j.useClassNames && z.node.getAttribute("data-aos"), we = [j.animatedClassName].concat(X ? X.split(" ") : []).filter(function(ue) {
227
227
  return typeof ue == "string";
228
228
  });
229
- j.initClassName && z.node.classList.add(j.initClassName), z.position = { in: (function(ue, Re, xe) {
230
- var Le = window.innerHeight, Me = te(ue, "anchor"), Fe = te(ue, "anchor-placement"), He = Number(te(ue, "offset", Fe ? 0 : Re)), Ge = Fe || xe, Oe = ue;
231
- Me && document.querySelectorAll(Me) && (Oe = document.querySelectorAll(Me)[0]);
232
- var Z = se(Oe).top - Le;
229
+ j.initClassName && z.node.classList.add(j.initClassName), z.position = { in: (function(ue, qe, xe) {
230
+ var Ce = window.innerHeight, Re = te(ue, "anchor"), Fe = te(ue, "anchor-placement"), He = Number(te(ue, "offset", Fe ? 0 : qe)), Ge = Fe || xe, Oe = ue;
231
+ Re && document.querySelectorAll(Re) && (Oe = document.querySelectorAll(Re)[0]);
232
+ var Z = se(Oe).top - Ce;
233
233
  switch (Ge) {
234
234
  case "top-bottom":
235
235
  break;
@@ -240,27 +240,27 @@ function xs() {
240
240
  Z += Oe.offsetHeight;
241
241
  break;
242
242
  case "top-center":
243
- Z += Le / 2;
243
+ Z += Ce / 2;
244
244
  break;
245
245
  case "center-center":
246
- Z += Le / 2 + Oe.offsetHeight / 2;
246
+ Z += Ce / 2 + Oe.offsetHeight / 2;
247
247
  break;
248
248
  case "bottom-center":
249
- Z += Le / 2 + Oe.offsetHeight;
249
+ Z += Ce / 2 + Oe.offsetHeight;
250
250
  break;
251
251
  case "top-top":
252
- Z += Le;
252
+ Z += Ce;
253
253
  break;
254
254
  case "bottom-top":
255
- Z += Le + Oe.offsetHeight;
255
+ Z += Ce + Oe.offsetHeight;
256
256
  break;
257
257
  case "center-top":
258
- Z += Le + Oe.offsetHeight / 2;
258
+ Z += Ce + Oe.offsetHeight / 2;
259
259
  }
260
260
  return Z + He;
261
- })(z.node, j.offset, j.anchorPlacement), out: K && (function(ue, Re) {
262
- var xe = te(ue, "anchor"), Le = te(ue, "offset", Re), Me = ue;
263
- return xe && document.querySelectorAll(xe) && (Me = document.querySelectorAll(xe)[0]), se(Me).top + Me.offsetHeight - Le;
261
+ })(z.node, j.offset, j.anchorPlacement), out: K && (function(ue, qe) {
262
+ var xe = te(ue, "anchor"), Ce = te(ue, "offset", qe), Re = ue;
263
+ return xe && document.querySelectorAll(xe) && (Re = document.querySelectorAll(xe)[0]), se(Re).top + Re.offsetHeight - Ce;
264
264
  })(z.node, j.offset) }, z.options = { once: ve, mirror: K, animatedClassNames: we, id: be };
265
265
  }), O;
266
266
  }, Se = function() {
@@ -268,15 +268,15 @@ function xs() {
268
268
  return Array.prototype.map.call(O, function(j) {
269
269
  return { node: j };
270
270
  });
271
- }, pe = [], qe = !1, ne = { offset: 120, delay: 0, easing: "ease", duration: 400, disable: !1, once: !1, mirror: !1, anchorPlacement: "top-bottom", startEvent: "DOMContentLoaded", animatedClassName: "aos-animate", initClassName: "aos-init", useClassNames: !1, disableMutationObserver: !1, throttleDelay: 99, debounceDelay: 50 }, De = function() {
271
+ }, pe = [], Me = !1, ne = { offset: 120, delay: 0, easing: "ease", duration: 400, disable: !1, once: !1, mirror: !1, anchorPlacement: "top-bottom", startEvent: "DOMContentLoaded", animatedClassName: "aos-animate", initClassName: "aos-init", useClassNames: !1, disableMutationObserver: !1, throttleDelay: 99, debounceDelay: 50 }, Pe = function() {
272
272
  return document.all && !window.atob;
273
- }, Ce = function() {
274
- arguments.length > 0 && arguments[0] !== void 0 && arguments[0] && (qe = !0), qe && (pe = Y(pe, ne), le(pe), window.addEventListener("scroll", _(function() {
273
+ }, Le = function() {
274
+ arguments.length > 0 && arguments[0] !== void 0 && arguments[0] && (Me = !0), Me && (pe = Y(pe, ne), le(pe), window.addEventListener("scroll", _(function() {
275
275
  le(pe, ne.once);
276
276
  }, ne.throttleDelay)));
277
- }, Pe = function() {
278
- if (pe = Se(), Ye(ne.disable) || De()) return Ue();
279
- Ce();
277
+ }, De = function() {
278
+ if (pe = Se(), Ye(ne.disable) || Pe()) return Ue();
279
+ Le();
280
280
  }, Ue = function() {
281
281
  pe.forEach(function(O, j) {
282
282
  O.node.removeAttribute("data-aos"), O.node.removeAttribute("data-aos-easing"), O.node.removeAttribute("data-aos-duration"), O.node.removeAttribute("data-aos-delay"), ne.initClassName && O.node.classList.remove(ne.initClassName), ne.animatedClassName && O.node.classList.remove(ne.animatedClassName);
@@ -289,20 +289,20 @@ function xs() {
289
289
  aos: MutationObserver is not supported on this browser,
290
290
  code mutations observing has been disabled.
291
291
  You may have to call "refreshHard()" by yourself.
292
- `), ne.disableMutationObserver = !0), ne.disableMutationObserver || he.ready("[data-aos]", Pe), Ye(ne.disable) || De() ? Ue() : (document.querySelector("body").setAttribute("data-aos-easing", ne.easing), document.querySelector("body").setAttribute("data-aos-duration", ne.duration), document.querySelector("body").setAttribute("data-aos-delay", ne.delay), ["DOMContentLoaded", "load"].indexOf(ne.startEvent) === -1 ? document.addEventListener(ne.startEvent, function() {
293
- Ce(!0);
292
+ `), ne.disableMutationObserver = !0), ne.disableMutationObserver || he.ready("[data-aos]", De), Ye(ne.disable) || Pe() ? Ue() : (document.querySelector("body").setAttribute("data-aos-easing", ne.easing), document.querySelector("body").setAttribute("data-aos-duration", ne.duration), document.querySelector("body").setAttribute("data-aos-delay", ne.delay), ["DOMContentLoaded", "load"].indexOf(ne.startEvent) === -1 ? document.addEventListener(ne.startEvent, function() {
293
+ Le(!0);
294
294
  }) : window.addEventListener("load", function() {
295
- Ce(!0);
296
- }), ne.startEvent === "DOMContentLoaded" && ["complete", "interactive"].indexOf(document.readyState) > -1 && Ce(!0), window.addEventListener("resize", J(Ce, ne.debounceDelay, !0)), window.addEventListener("orientationchange", J(Ce, ne.debounceDelay, !0)), pe);
297
- }, refresh: Ce, refreshHard: Pe };
295
+ Le(!0);
296
+ }), ne.startEvent === "DOMContentLoaded" && ["complete", "interactive"].indexOf(document.readyState) > -1 && Le(!0), window.addEventListener("resize", J(Le, ne.debounceDelay, !0)), window.addEventListener("orientationchange", J(Le, ne.debounceDelay, !0)), pe);
297
+ }, refresh: Le, refreshHard: De };
298
298
  });
299
- })(Pt)), Pt.exports;
299
+ })(Dt)), Dt.exports;
300
300
  }
301
301
  var _s = xs();
302
302
  const ks = /* @__PURE__ */ gi(_s);
303
- var ii = { exports: {} }, qi;
303
+ var ii = { exports: {} }, Mi;
304
304
  function Ss() {
305
- return qi || (qi = 1, (function(u) {
305
+ return Mi || (Mi = 1, (function(u) {
306
306
  function e(c, d) {
307
307
  if (!(c instanceof d)) throw new TypeError("Cannot call a class as a function");
308
308
  }
@@ -431,87 +431,87 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
431
431
  }));
432
432
  }), t(this, "onAnimationFrame", function(k) {
433
433
  y.debug && (y.debugData.frameStart = Date.now());
434
- var C, T = {};
434
+ var L, T = {};
435
435
  y.drivers.forEach(function(A) {
436
436
  T[A.name] = A.getValue(y.frame);
437
437
  }), y.elements.forEach(function(A) {
438
438
  A.update(T, y.frame);
439
- }), y.debug && y.debugData.frameLengths.push(Date.now() - y.debugData.frameStart), y.frame % 60 == 0 && y.debug && (C = Math.ceil(y.debugData.frameLengths.reduce(function(A, M) {
440
- return A + M;
441
- }, 0) / 60), console.log("Average frame calculation time: ".concat(C, "ms")), y.debugData.frameLengths = []), y.frame++, window.requestAnimationFrame(y.onAnimationFrame);
442
- }), t(this, "addDriver", function(k, C) {
439
+ }), y.debug && y.debugData.frameLengths.push(Date.now() - y.debugData.frameStart), y.frame % 60 == 0 && y.debug && (L = Math.ceil(y.debugData.frameLengths.reduce(function(A, R) {
440
+ return A + R;
441
+ }, 0) / 60), console.log("Average frame calculation time: ".concat(L, "ms")), y.debugData.frameLengths = []), y.frame++, window.requestAnimationFrame(y.onAnimationFrame);
442
+ }), t(this, "addDriver", function(k, L) {
443
443
  var T = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : {};
444
- y.drivers.push(new v(k, C, T));
444
+ y.drivers.push(new v(k, L, T));
445
445
  }), t(this, "removeDriver", function(k) {
446
- y.drivers = y.drivers.filter(function(C) {
447
- return C.name !== k;
446
+ y.drivers = y.drivers.filter(function(L) {
447
+ return L.name !== k;
448
448
  });
449
449
  }), t(this, "findAndAddElements", function() {
450
450
  y.elements = [], document.querySelectorAll(".lax").forEach(function(k) {
451
- var C = [];
451
+ var L = [];
452
452
  k.classList.forEach(function(A) {
453
- A.includes("lax_preset") && (A = A.replace("lax_preset_", ""), C.push(A));
453
+ A.includes("lax_preset") && (A = A.replace("lax_preset_", ""), L.push(A));
454
454
  });
455
- var T = t({}, "scrollY", { presets: C });
455
+ var T = t({}, "scrollY", { presets: L });
456
456
  y.elements.push(new _(".lax", y, k, T, 0, {}));
457
457
  });
458
- }), t(this, "addElements", function(k, C, T) {
459
- document.querySelectorAll(k).forEach(function(A, M) {
460
- y.elements.push(new _(k, y, A, C, M, T));
458
+ }), t(this, "addElements", function(k, L, T) {
459
+ document.querySelectorAll(k).forEach(function(A, R) {
460
+ y.elements.push(new _(k, y, A, L, R, T));
461
461
  });
462
462
  }), t(this, "removeElements", function(k) {
463
- y.elements = y.elements.filter(function(C) {
464
- return C.selector !== k;
463
+ y.elements = y.elements.filter(function(L) {
464
+ return L.selector !== k;
465
465
  });
466
- }), t(this, "addElement", function(k, C, T) {
467
- y.elements.push(new _("", y, k, C, 0, T));
466
+ }), t(this, "addElement", function(k, L, T) {
467
+ y.elements.push(new _("", y, k, L, 0, T));
468
468
  }), t(this, "removeElement", function(k) {
469
- y.elements = y.elements.filter(function(C) {
470
- return C.domElement !== k;
469
+ y.elements = y.elements.filter(function(L) {
470
+ return L.domElement !== k;
471
471
  });
472
472
  });
473
473
  }());
474
474
  function x(f, y) {
475
475
  if (Array.isArray(f)) return f;
476
- for (var k = Object.keys(f).map(function(M) {
477
- return parseInt(M);
478
- }).sort(function(M, B) {
479
- return B < M ? 1 : -1;
480
- }), C = k[k.length - 1], T = 0; T < k.length; T++) {
476
+ for (var k = Object.keys(f).map(function(R) {
477
+ return parseInt(R);
478
+ }).sort(function(R, B) {
479
+ return B < R ? 1 : -1;
480
+ }), L = k[k.length - 1], T = 0; T < k.length; T++) {
481
481
  var A = k[T];
482
482
  if (y < A) {
483
- C = A;
483
+ L = A;
484
484
  break;
485
485
  }
486
486
  }
487
- return f[C];
487
+ return f[L];
488
488
  }
489
489
  function m(f, E, k) {
490
- var C = E.width, T = E.height, q = E.x, I = E.y;
490
+ var L = E.width, T = E.height, M = E.x, I = E.y;
491
491
  if (typeof f == "number") return f;
492
- var A, M = document.body.scrollHeight, B = document.body.scrollWidth, D = window.innerWidth, P = window.innerHeight, R = s((A = window.pageXOffset !== void 0, R = (document.compatMode || "") === "CSS1Compat", E = A ? window.pageXOffset : (R ? document.documentElement : document.body).scrollLeft, [A ? window.pageYOffset : (R ? document.documentElement : document.body).scrollTop, E]), 2), E = R[0], q = q + R[1], R = q + C, I = I + E, E = I + T;
493
- return Function("return ".concat(f.replace(/screenWidth/g, D).replace(/screenHeight/g, P).replace(/pageHeight/g, M).replace(/pageWidth/g, B).replace(/elWidth/g, C).replace(/elHeight/g, T).replace(/elInY/g, I - P).replace(/elOutY/g, E).replace(/elCenterY/g, I + T / 2 - P / 2).replace(/elInX/g, q - D).replace(/elOutX/g, R).replace(/elCenterX/g, q + C / 2 - D / 2).replace(/index/g, k)))();
492
+ var A, R = document.body.scrollHeight, B = document.body.scrollWidth, P = window.innerWidth, D = window.innerHeight, q = s((A = window.pageXOffset !== void 0, q = (document.compatMode || "") === "CSS1Compat", E = A ? window.pageXOffset : (q ? document.documentElement : document.body).scrollLeft, [A ? window.pageYOffset : (q ? document.documentElement : document.body).scrollTop, E]), 2), E = q[0], M = M + q[1], q = M + L, I = I + E, E = I + T;
493
+ return Function("return ".concat(f.replace(/screenWidth/g, P).replace(/screenHeight/g, D).replace(/pageHeight/g, R).replace(/pageWidth/g, B).replace(/elWidth/g, L).replace(/elHeight/g, T).replace(/elInY/g, I - D).replace(/elOutY/g, E).replace(/elCenterY/g, I + T / 2 - D / 2).replace(/elInX/g, M - P).replace(/elOutX/g, q).replace(/elCenterX/g, M + L / 2 - P / 2).replace(/index/g, k)))();
494
494
  }
495
495
  function v(f, y) {
496
- var k = this, C = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : {};
496
+ var k = this, L = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : {};
497
497
  e(this, v), t(this, "getValueFn", void 0), t(this, "name", ""), t(this, "lastValue", 0), t(this, "frameStep", 1), t(this, "m1", 0), t(this, "m2", 0), t(this, "inertia", 0), t(this, "inertiaEnabled", !1), t(this, "getValue", function(T) {
498
498
  var A = k.lastValue;
499
499
  return T % k.frameStep == 0 && (A = k.getValueFn(T)), k.inertiaEnabled && (T = A - k.lastValue, k.m1 = 0.8 * k.m1 + T * (1 - 0.8), k.m2 = 0.8 * k.m2 + k.m1 * (1 - 0.8), k.inertia = Math.round(5e3 * k.m2) / 15e3), k.lastValue = A, [k.lastValue, k.inertia];
500
- }), this.name = f, this.getValueFn = y, Object.keys(C).forEach(function(T) {
501
- k[T] = C[T];
500
+ }), this.name = f, this.getValueFn = y, Object.keys(L).forEach(function(T) {
501
+ k[T] = L[T];
502
502
  }), this.lastValue = this.getValueFn(0);
503
503
  }
504
- function _(f, y, k, C) {
504
+ function _(f, y, k, L) {
505
505
  var T = this, A = 4 < arguments.length && arguments[4] !== void 0 ? arguments[4] : 0, B = 5 < arguments.length && arguments[5] !== void 0 ? arguments[5] : {};
506
- e(this, _), t(this, "domElement", void 0), t(this, "transformsData", void 0), t(this, "styles", {}), t(this, "selector", ""), t(this, "groupIndex", 0), t(this, "laxInstance", void 0), t(this, "onUpdate", void 0), t(this, "update", function(D, P) {
507
- var q, R = T.transforms, I = {};
508
- for (q in R) {
509
- var E = R[q];
510
- D[q] || console.error("No lax driver with name: ", q);
511
- var $, H = s(D[q], 2), U = H[0], J = H[1];
506
+ e(this, _), t(this, "domElement", void 0), t(this, "transformsData", void 0), t(this, "styles", {}), t(this, "selector", ""), t(this, "groupIndex", 0), t(this, "laxInstance", void 0), t(this, "onUpdate", void 0), t(this, "update", function(P, D) {
507
+ var M, q = T.transforms, I = {};
508
+ for (M in q) {
509
+ var E = q[M];
510
+ P[M] || console.error("No lax driver with name: ", M);
511
+ var $, H = s(P[M], 2), U = H[0], J = H[1];
512
512
  for ($ in E) {
513
513
  var F, me = s(E[$], 3), ee = me[0], Q = me[1], Te = me[2], re = Te === void 0 ? {} : Te, he = re.modValue, ye = re.frameStep, Ee = ye === void 0 ? 1 : ye, N = re.easing, me = re.inertia, Te = re.inertiaMode, ye = re.cssFn, re = re.cssUnit, re = re === void 0 ? "" : re, N = w[N];
514
- P % Ee == 0 && (N = (function(G, ie, ce, fe) {
514
+ D % Ee == 0 && (N = (function(G, ie, ce, fe) {
515
515
  var le = 0;
516
516
  if (G.forEach(function(Y) {
517
517
  Y < ce && le++;
@@ -522,40 +522,40 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
522
522
  })(ee, Q, he ? U % he : U, N), me && (F = J * me, Te === "absolute" && (F = Math.abs(F)), N += F), F = (re || p.includes($) ? "px" : g.includes($) ? "deg" : "") == "px" ? 0 : 3, F = N.toFixed(F), I[$] = ye ? ye(F, T.domElement) : F + re);
523
523
  }
524
524
  }
525
- T.applyStyles(I), T.onUpdate && T.onUpdate(D, T.domElement);
525
+ T.applyStyles(I), T.onUpdate && T.onUpdate(P, T.domElement);
526
526
  }), t(this, "calculateTransforms", function() {
527
527
  T.transforms = {};
528
- var D, P = T.laxInstance.windowWidth;
529
- for (D in T.transformsData) (function(q) {
530
- var R = T.transformsData[q], I = {}, E = R.presets;
528
+ var P, D = T.laxInstance.windowWidth;
529
+ for (P in T.transformsData) (function(M) {
530
+ var q = T.transformsData[M], I = {}, E = q.presets;
531
531
  (E === void 0 ? [] : E).forEach(function(ee) {
532
532
  var U, Q = s(ee.split(":"), 3), J = Q[0], F = Q[1], ee = Q[2], Q = window.lax.presets[J];
533
533
  Q ? (U = Q(F, ee), Object.keys(U).forEach(function(he) {
534
- R[he] = U[he];
534
+ q[he] = U[he];
535
535
  })) : console.error("Lax preset cannot be found with name: ", J);
536
- }), delete R.presets;
537
- for (var $ in R) (function(H) {
538
- var U = s(R[H], 3), ee = U[0], F = ee === void 0 ? [-1e9, 1e9] : ee, ee = U[1], ee = ee === void 0 ? [-1e9, 1e9] : ee, U = U[2], U = U === void 0 ? {} : U, J = T.domElement.getBoundingClientRect(), F = x(F, P).map(function(Q) {
536
+ }), delete q.presets;
537
+ for (var $ in q) (function(H) {
538
+ var U = s(q[H], 3), ee = U[0], F = ee === void 0 ? [-1e9, 1e9] : ee, ee = U[1], ee = ee === void 0 ? [-1e9, 1e9] : ee, U = U[2], U = U === void 0 ? {} : U, J = T.domElement.getBoundingClientRect(), F = x(F, D).map(function(Q) {
539
539
  return m(Q, J, T.groupIndex);
540
- }), ee = x(ee, P).map(function(Q) {
540
+ }), ee = x(ee, D).map(function(Q) {
541
541
  return m(Q, J, T.groupIndex);
542
542
  });
543
543
  I[H] = [F, ee, U];
544
544
  })($);
545
- T.transforms[q] = I;
546
- })(D);
547
- }), t(this, "applyStyles", function(D) {
548
- var P, q, R, I = (P = D, q = { transform: "", filter: "" }, R = { translateX: 1e-5, translateY: 1e-5, translateZ: 1e-5 }, Object.keys(P).forEach(function(E) {
549
- var $ = P[E], H = p.includes(E) ? "px" : g.includes(E) ? "deg" : "";
550
- h.includes(E) ? R[E] = $ : d.includes(E) ? q.transform += "".concat(E, "(").concat($).concat(H, ") ") : o.includes(E) ? q.filter += "".concat(E, "(").concat($).concat(H, ") ") : q[E] = "".concat($).concat(H, " ");
551
- }), q.transform = "translate3d(".concat(R.translateX, "px, ").concat(R.translateY, "px, ").concat(R.translateZ, "px) ").concat(q.transform), q);
545
+ T.transforms[M] = I;
546
+ })(P);
547
+ }), t(this, "applyStyles", function(P) {
548
+ var D, M, q, I = (D = P, M = { transform: "", filter: "" }, q = { translateX: 1e-5, translateY: 1e-5, translateZ: 1e-5 }, Object.keys(D).forEach(function(E) {
549
+ var $ = D[E], H = p.includes(E) ? "px" : g.includes(E) ? "deg" : "";
550
+ h.includes(E) ? q[E] = $ : d.includes(E) ? M.transform += "".concat(E, "(").concat($).concat(H, ") ") : o.includes(E) ? M.filter += "".concat(E, "(").concat($).concat(H, ") ") : M[E] = "".concat($).concat(H, " ");
551
+ }), M.transform = "translate3d(".concat(q.translateX, "px, ").concat(q.translateY, "px, ").concat(q.translateZ, "px) ").concat(M.transform), M);
552
552
  Object.keys(I).forEach(function(E) {
553
553
  T.domElement.style.setProperty(E, I[E]);
554
554
  });
555
- }), this.selector = f, this.laxInstance = y, this.domElement = k, this.transformsData = C, this.groupIndex = A;
556
- var M = (A = B.style) === void 0 ? {} : A, B = B.onUpdate;
557
- Object.keys(M).forEach(function(D) {
558
- k.style.setProperty(D, M[D]);
555
+ }), this.selector = f, this.laxInstance = y, this.domElement = k, this.transformsData = L, this.groupIndex = A;
556
+ var R = (A = B.style) === void 0 ? {} : A, B = B.onUpdate;
557
+ Object.keys(R).forEach(function(P) {
558
+ k.style.setProperty(P, R[P]);
559
559
  }), B && (this.onUpdate = B), this.calculateTransforms();
560
560
  }
561
561
  u.exports !== void 0 ? u.exports = b : window.lax = b;
@@ -589,19 +589,19 @@ class Ts {
589
589
  return;
590
590
  }
591
591
  i.style.transform = "";
592
- let r = this.getObjVal(i, "data-top-bottom"), a = this.getObjVal(i, "data-top"), l = this.getObjVal(i, "data-50-top"), c = this.getObjVal(i, "data-100-top"), d = this.getObjVal(i, "data-center-bottom"), o = this.getObjVal(i, "data-center"), h = this.getObjVal(i, "data-center-top"), p = this.getObjVal(i, "data--400-bottom"), g = this.getObjVal(i, "data--300-bottom"), w = this.getObjVal(i, "data--200-bottom"), S = this.getObjVal(i, "data--150-bottom"), b = this.getObjVal(i, "data--100-bottom"), x = this.getObjVal(i, "data--50-bottom"), m = this.getObjVal(i, "data-bottom"), v = this.getObjVal(i, "data-50-bottom"), _ = this.getObjVal(i, "data-100-bottom"), f = this.getObjVal(i, "data-150-bottom"), y = this.getObjVal(i, "data-200-bottom"), k = this.getObjVal(i, "data-300-bottom"), C = this.getObjVal(i, "data-400-bottom"), T = this.getObjVal(i, "data-bottom-top"), A = this.getObjVal(i, "data-in"), M = this.getObjVal(i, "data-in-150"), B = this.getObjVal(i, "data-in-300"), D = this.getObjVal(i, "data-cen--150"), P = this.getObjVal(i, "data-cen"), q = this.getObjVal(i, "data-cen-150"), R = this.getObjVal(i, "data-out--300"), I = this.getObjVal(i, "data-out--150"), E = this.getObjVal(i, "data-out"), $ = !1;
592
+ let r = this.getObjVal(i, "data-top-bottom"), a = this.getObjVal(i, "data-top"), l = this.getObjVal(i, "data-50-top"), c = this.getObjVal(i, "data-100-top"), d = this.getObjVal(i, "data-center-bottom"), o = this.getObjVal(i, "data-center"), h = this.getObjVal(i, "data-center-top"), p = this.getObjVal(i, "data--400-bottom"), g = this.getObjVal(i, "data--300-bottom"), w = this.getObjVal(i, "data--200-bottom"), S = this.getObjVal(i, "data--150-bottom"), b = this.getObjVal(i, "data--100-bottom"), x = this.getObjVal(i, "data--50-bottom"), m = this.getObjVal(i, "data-bottom"), v = this.getObjVal(i, "data-50-bottom"), _ = this.getObjVal(i, "data-100-bottom"), f = this.getObjVal(i, "data-150-bottom"), y = this.getObjVal(i, "data-200-bottom"), k = this.getObjVal(i, "data-300-bottom"), L = this.getObjVal(i, "data-400-bottom"), T = this.getObjVal(i, "data-bottom-top"), A = this.getObjVal(i, "data-in"), R = this.getObjVal(i, "data-in-150"), B = this.getObjVal(i, "data-in-300"), P = this.getObjVal(i, "data-cen--150"), D = this.getObjVal(i, "data-cen"), M = this.getObjVal(i, "data-cen-150"), q = this.getObjVal(i, "data-out--300"), I = this.getObjVal(i, "data-out--150"), E = this.getObjVal(i, "data-out"), $ = !1;
593
593
  i.hasAttribute("data-xs") && ($ = !0);
594
594
  let H = !1;
595
595
  i.hasAttribute("data-sm") && (H = !0);
596
596
  let U = !1;
597
597
  i.hasAttribute("data-md") && (U = !0), i.hasAttribute("data-lg"), i.hasAttribute("data-xl");
598
- let J = {}, F = {}, ee = {}, Q = {}, he = {}, Ee = {}, me = {}, Te = {}, ye = {}, re = {}, N = {}, G = {}, ie = {}, ce = {}, fe = {}, le = {}, se = {}, te = {}, Y = {}, Se = {}, pe = {}, qe = {}, ne = {}, De = {}, Ce = {}, Pe = {}, Ue = {}, Ye = {}, O = {}, j = {}, z = {}, V = {}, K = {};
599
- (t > 1280 || t > 970 && t <= 1280 && !U || t > 760 && t <= 970 && !H || t <= 760 && !$) && (ee = this.getObjVal(i, "data-t"), Q = this.getObjVal(i, "data-t-100"), he = this.getObjVal(i, "data-t-200"), Ee = this.getObjVal(i, "data-t-300"), me = this.getObjVal(i, "data-t-400"), Te = this.getObjVal(i, "data-t-500"), ye = this.getObjVal(i, "data-t-600"), re = this.getObjVal(i, "data-t-700"), N = this.getObjVal(i, "data-t-800"), G = this.getObjVal(i, "data-t-900"), ie = this.getObjVal(i, "data-t-1000"), ce = this.getObjVal(i, "data-t-1100"), fe = this.getObjVal(i, "data-t-1200"), le = this.getObjVal(i, "data-t-1300"), se = this.getObjVal(i, "data-t-1400"), te = this.getObjVal(i, "data-t-1500"), Y = this.getObjVal(i, "data-t-1600"), Se = this.getObjVal(i, "data-t-1700"), pe = this.getObjVal(i, "data-t-1800"), qe = this.getObjVal(i, "data-t-1900"), ne = this.getObjVal(i, "data-t-2000"), De = this.getObjVal(i, "data-t-2100"), Ce = this.getObjVal(i, "data-t-2200"), Pe = this.getObjVal(i, "data-t-2300"), Ue = this.getObjVal(i, "data-t-2400"), Ye = this.getObjVal(i, "data-t-2500"), O = this.getObjVal(i, "data-t-2600"), j = this.getObjVal(i, "data-t-2700"), z = this.getObjVal(i, "data-t-2800")), t > 970 && t <= 1280 && U && (i.hasAttribute("data-md-t") && (ee = this.getObjVal(i, "data-md-t")), i.hasAttribute("data-md-t-100") && (Q = this.getObjVal(i, "data-md-t-100")), i.hasAttribute("data-md-t-200") && (he = this.getObjVal(i, "data-md-t-200")), i.hasAttribute("data-md-t-300") && (Ee = this.getObjVal(i, "data-md-t-300")), i.hasAttribute("data-md-t-400") && (me = this.getObjVal(i, "data-md-t-400")), i.hasAttribute("data-md-t-500") && (Te = this.getObjVal(i, "data-md-t-500")), i.hasAttribute("data-md-t-600") && (ye = this.getObjVal(i, "data-md-t-600")), i.hasAttribute("data-md-t-700") && (re = this.getObjVal(i, "data-md-t-700")), i.hasAttribute("data-md-t-800") && (N = this.getObjVal(i, "data-md-t-800")), i.hasAttribute("data-md-t-900") && (G = this.getObjVal(i, "data-md-t-900")), i.hasAttribute("data-md-t-1000") && (ie = this.getObjVal(i, "data-md-t-1000")), i.hasAttribute("data-md-t-1100") && (ce = this.getObjVal(i, "data-md-t-1100")), i.hasAttribute("data-md-t-1200") && (fe = this.getObjVal(i, "data-md-t-1200")), i.hasAttribute("data-md-t-1300") && (le = this.getObjVal(i, "data-md-t-1300")), i.hasAttribute("data-md-t-1400") && (se = this.getObjVal(i, "data-md-t-1400")), i.hasAttribute("data-md-t-1500") && (te = this.getObjVal(i, "data-md-t-1500")), i.hasAttribute("data-md-t-1600") && (Y = this.getObjVal(i, "data-md-t-1600")), i.hasAttribute("data-md-t-1700") && (Se = this.getObjVal(i, "data-md-t-1700")), i.hasAttribute("data-md-t-1800") && (pe = this.getObjVal(i, "data-md-t-1800")), i.hasAttribute("data-md-t-1900") && (qe = this.getObjVal(i, "data-md-t-1900")), i.hasAttribute("data-md-t-2000") && (ne = this.getObjVal(i, "data-md-t-2000")), i.hasAttribute("data-md-t-2100") && (De = this.getObjVal(i, "data-md-t-2100")), i.hasAttribute("data-md-t-2200") && (Ce = this.getObjVal(i, "data-md-t-2200")), i.hasAttribute("data-md-t-2300") && (Pe = this.getObjVal(i, "data-md-t-2300")), i.hasAttribute("data-md-t-2400") && (Ue = this.getObjVal(i, "data-md-t-2400")), i.hasAttribute("data-md-t-2500") && (Ye = this.getObjVal(i, "data-md-t-2500")), i.hasAttribute("data-md-t-2600") && (O = this.getObjVal(i, "data-md-t-2600")), i.hasAttribute("data-md-t-2700") && (j = this.getObjVal(i, "data-md-t-2700")), i.hasAttribute("data-md-t-2800") && (z = this.getObjVal(i, "data-md-t-2800"))), t <= 970 && i.hasAttribute("m-data-out") && (E = this.getObjVal(i, "m-data-out")), (t > 760 && t <= 970 && H || t <= 760 && !$ && H) && (i.hasAttribute("data-sm-t") && (ee = this.getObjVal(i, "data-sm-t")), i.hasAttribute("data-sm-t-100") && (Q = this.getObjVal(i, "data-sm-t-100")), i.hasAttribute("data-sm-t-200") && (he = this.getObjVal(i, "data-sm-t-200")), i.hasAttribute("data-sm-t-300") && (Ee = this.getObjVal(i, "data-sm-t-300")), i.hasAttribute("data-sm-t-400") && (me = this.getObjVal(i, "data-sm-t-400")), i.hasAttribute("data-sm-t-500") && (Te = this.getObjVal(i, "data-sm-t-500")), i.hasAttribute("data-sm-t-600") && (ye = this.getObjVal(i, "data-sm-t-600")), i.hasAttribute("data-sm-t-700") && (re = this.getObjVal(i, "data-sm-t-700")), i.hasAttribute("data-sm-t-800") && (N = this.getObjVal(i, "data-sm-t-800")), i.hasAttribute("data-sm-t-900") && (G = this.getObjVal(i, "data-sm-t-900")), i.hasAttribute("data-sm-t-1000") && (ie = this.getObjVal(i, "data-sm-t-1000")), i.hasAttribute("data-sm-t-1100") && (ce = this.getObjVal(i, "data-sm-t-1100")), i.hasAttribute("data-sm-t-1200") && (fe = this.getObjVal(i, "data-sm-t-1200")), i.hasAttribute("data-sm-t-1300") && (le = this.getObjVal(i, "data-sm-t-1300")), i.hasAttribute("data-sm-t-1400") && (se = this.getObjVal(i, "data-sm-t-1400")), i.hasAttribute("data-sm-t-1500") && (te = this.getObjVal(i, "data-sm-t-1500")), i.hasAttribute("data-sm-t-1600") && (Y = this.getObjVal(i, "data-sm-t-1600")), i.hasAttribute("data-sm-t-1700") && (Se = this.getObjVal(i, "data-sm-t-1700")), i.hasAttribute("data-sm-t-1800") && (pe = this.getObjVal(i, "data-sm-t-1800")), i.hasAttribute("data-sm-t-1900") && (qe = this.getObjVal(i, "data-sm-t-1900")), i.hasAttribute("data-sm-t-2000") && (ne = this.getObjVal(i, "data-sm-t-2000")), i.hasAttribute("data-sm-t-2100") && (De = this.getObjVal(i, "data-sm-t-2100")), i.hasAttribute("data-sm-t-2200") && (Ce = this.getObjVal(i, "data-sm-t-2200")), i.hasAttribute("data-sm-t-2300") && (Pe = this.getObjVal(i, "data-sm-t-2300")), i.hasAttribute("data-sm-t-2400") && (Ue = this.getObjVal(i, "data-sm-t-2400")), i.hasAttribute("data-sm-t-2500") && (Ye = this.getObjVal(i, "data-sm-t-2500")), i.hasAttribute("data-sm-t-2600") && (O = this.getObjVal(i, "data-sm-t-2600")), i.hasAttribute("data-sm-t-2700") && (j = this.getObjVal(i, "data-sm-t-2700")), i.hasAttribute("data-sm-t-2800") && (z = this.getObjVal(i, "data-sm-t-2800"))), t <= 414 && $ && (i.hasAttribute("data-xs-t") && (ee = this.getObjVal(i, "data-xs-t")), i.hasAttribute("data-xs-t-100") && (Q = this.getObjVal(i, "data-xs-t-100")), i.hasAttribute("data-xs-t-200") && (he = this.getObjVal(i, "data-xs-t-200")), i.hasAttribute("data-xs-t-300") && (Ee = this.getObjVal(i, "data-xs-t-300")), i.hasAttribute("data-xs-t-400") && (me = this.getObjVal(i, "data-xs-t-400")), i.hasAttribute("data-xs-t-500") && (Te = this.getObjVal(i, "data-xs-t-500")), i.hasAttribute("data-xs-t-600") && (ye = this.getObjVal(i, "data-xs-t-600")), i.hasAttribute("data-xs-t-700") && (re = this.getObjVal(i, "data-xs-t-700")), i.hasAttribute("data-xs-t-800") && (N = this.getObjVal(i, "data-xs-t-800")), i.hasAttribute("data-xs-t-900") && (G = this.getObjVal(i, "data-xs-t-900")), i.hasAttribute("data-xs-t-1000") && (ie = this.getObjVal(i, "data-xs-t-1000")), i.hasAttribute("data-xs-t-1100") && (ce = this.getObjVal(i, "data-xs-t-1100")), i.hasAttribute("data-xs-t-1200") && (fe = this.getObjVal(i, "data-xs-t-1200")), i.hasAttribute("data-xs-t-1300") && (le = this.getObjVal(i, "data-xs-t-1300")), i.hasAttribute("data-xs-t-1400") && (se = this.getObjVal(i, "data-xs-t-1400")), i.hasAttribute("data-xs-t-1500") && (te = this.getObjVal(i, "data-xs-t-1500")), i.hasAttribute("data-xs-t-1600") && (Y = this.getObjVal(i, "data-xs-t-1600")), i.hasAttribute("data-xs-t-1700") && (Se = this.getObjVal(i, "data-xs-t-1700")), i.hasAttribute("data-xs-t-1800") && (pe = this.getObjVal(i, "data-xs-t-1800")), i.hasAttribute("data-xs-t-1900") && (qe = this.getObjVal(i, "data-xs-t-1900")), i.hasAttribute("data-xs-t-2000") && (ne = this.getObjVal(i, "data-xs-t-2000")), i.hasAttribute("data-xs-t-2100") && (De = this.getObjVal(i, "data-xs-t-2100")), i.hasAttribute("data-xs-t-2200") && (Ce = this.getObjVal(i, "data-xs-t-2200")), i.hasAttribute("data-xs-t-2300") && (Pe = this.getObjVal(i, "data-xs-t-2300")), i.hasAttribute("data-xs-t-2400") && (Ue = this.getObjVal(i, "data-xs-t-2400")), i.hasAttribute("data-xs-t-2500") && (Ye = this.getObjVal(i, "data-xs-t-2500")), i.hasAttribute("data-xs-t-2600") && (O = this.getObjVal(i, "data-xs-t-2600")), i.hasAttribute("data-xs-t-2700") && (j = this.getObjVal(i, "data-xs-t-2700")), i.hasAttribute("data-xs-t-2800") && (z = this.getObjVal(i, "data-xs-t-2800")));
600
- let ve = ee, be = Q, X = he, we = Ee, ue = me, Re = Te, xe = ye, Le = re, Me = N, Fe = G, He = ie, Ge = ce, Oe = fe, Z = le, _e = se, Ie = te, vt = Y, wt = Se, xt = pe, _t = qe, kt = ne, St = De, Et = Ce, Tt = Pe, Lt = Ue, Ct = Ye, Ot = O, At = j, qt = z, nt = window.innerHeight;
601
- nt < 730 ? (J = ve, F = be, ee = X, Q = we, he = ue, Ee = Re, me = xe, Te = Le, ye = Me, re = Fe, N = He, G = Ge, ie = Oe, ce = Z, fe = _e, le = Ie, se = vt, te = wt, Y = xt, Se = _t, pe = kt, qe = St, ne = Et, De = Tt, Ce = Lt, Pe = Ct, Ue = Ot, Ye = At, O = qt, j = {}, z = {}) : nt >= 730 && nt < 790 ? (F = ve, ee = be, Q = X, he = we, Ee = ue, me = Re, Te = xe, ye = Le, re = Me, N = Fe, G = He, ie = Ge, ce = Oe, fe = Z, le = _e, se = Ie, te = vt, Y = wt, Se = xt, pe = _t, qe = kt, ne = St, De = Et, Ce = Tt, Pe = Lt, Ue = Ct, Ye = Ot, O = At, j = qt, z = {}) : nt >= 790 && nt < 840 || (nt >= 840 && nt < 1125 ? (ee = {}, Q = ve, he = be, Ee = X, me = we, Te = ue, ye = Re, re = xe, N = Le, G = Me, ie = Fe, ce = He, fe = Ge, le = Oe, se = Z, te = _e, Y = Ie, Se = vt, pe = wt, qe = xt, ne = _t, De = kt, Ce = St, Pe = Et, Ue = Tt, Ye = Lt, O = Ct, j = Ot, z = At, V = qt) : (ee = {}, Q = {}, he = ve, Ee = be, me = X, Te = we, ye = ue, re = Re, N = xe, G = Le, ie = Me, ce = Fe, fe = He, le = Ge, se = Oe, te = Z, Y = _e, Se = Ie, pe = vt, qe = wt, ne = xt, De = _t, Ce = kt, Pe = St, Ue = Et, Ye = Tt, O = Lt, j = Ct, z = Ot, V = At, K = qt));
602
- let L = {};
603
- Object.keys(T).length !== 0 && (L = this.parseObj(T, "elInY", L)), Object.keys(C).length !== 0 && (L = this.parseObj(C, "elInY+50", L)), Object.keys(k).length !== 0 && (L = this.parseObj(k, "elInY+100", L)), Object.keys(y).length !== 0 && (L = this.parseObj(y, "elInY+150", L)), Object.keys(f).length !== 0 && (L = this.parseObj(f, "elInY+200", L)), Object.keys(_).length !== 0 && (L = this.parseObj(_, "elInY+250", L)), Object.keys(v).length !== 0 && (L = this.parseObj(v, "elInY+300", L)), Object.keys(m).length !== 0 && (L = this.parseObj(m, "elInY+350", L)), Object.keys(x).length !== 0 && (L = this.parseObj(x, "elInY+400", L)), Object.keys(b).length !== 0 && (L = this.parseObj(b, "elInY+450", L)), Object.keys(S).length !== 0 && (L = this.parseObj(S, "elInY+500", L)), Object.keys(w).length !== 0 && (L = this.parseObj(w, "elInY+550", L)), Object.keys(g).length !== 0 && (L = this.parseObj(g, "elInY+600", L)), Object.keys(p).length !== 0 && (L = this.parseObj(p, "elInY+650", L)), Object.keys(h).length !== 0 && (L = this.parseObj(h, "elCenterY-300", L)), Object.keys(o).length !== 0 && (L = this.parseObj(o, "elCenterY", L)), Object.keys(d).length !== 0 && (L = this.parseObj(d, "elCenterY+100", L)), Object.keys(c).length !== 0 && (L = this.parseObj(c, "elCenterY+200", L)), Object.keys(l).length !== 0 && (L = this.parseObj(l, "elCenterY+300", L)), Object.keys(a).length !== 0 && (L = this.parseObj(a, "elOutY-300", L)), Object.keys(r).length !== 0 && (L = this.parseObj(r, "elOutY", L)), Object.keys(A).length !== 0 && (L = this.parseObj(A, "elInY", L)), Object.keys(M).length !== 0 && (L = this.parseObj(M, "elInY+150", L)), Object.keys(B).length !== 0 && (L = this.parseObj(B, "elInY+300 ", L)), Object.keys(D).length !== 0 && (L = this.parseObj(D, "elCenterY-150", L)), Object.keys(P).length !== 0 && (L = this.parseObj(P, "elCenterY", L)), Object.keys(q).length !== 0 && (L = this.parseObj(q, "elCenterY+150", L)), Object.keys(R).length !== 0 && (L = this.parseObj(R, "elOutY-300 ", L)), Object.keys(I).length !== 0 && (L = this.parseObj(I, "elOutY-150 ", L)), Object.keys(E).length !== 0 && (L = this.parseObj(E, "elOutY", L)), Object.keys(J).length !== 0 && (L = this.parseObj(J, "elInY-200", L)), Object.keys(F).length !== 0 && (L = this.parseObj(F, "elInY-100", L)), Object.keys(ee).length !== 0 && (L = this.parseObj(ee, "elInY", L)), Object.keys(Q).length !== 0 && (L = this.parseObj(Q, "elInY+100", L)), Object.keys(he).length !== 0 && (L = this.parseObj(he, "elInY+200", L)), Object.keys(Ee).length !== 0 && (L = this.parseObj(Ee, "elInY+300 ", L)), Object.keys(me).length !== 0 && (L = this.parseObj(me, "elInY+400 ", L)), Object.keys(Te).length !== 0 && (L = this.parseObj(Te, "elInY+500 ", L)), Object.keys(ye).length !== 0 && (L = this.parseObj(ye, "elInY+600 ", L)), Object.keys(re).length !== 0 && (L = this.parseObj(re, "elInY+700 ", L)), Object.keys(N).length !== 0 && (L = this.parseObj(N, "elInY+800 ", L)), Object.keys(G).length !== 0 && (L = this.parseObj(G, "elInY+900 ", L)), Object.keys(ie).length !== 0 && (L = this.parseObj(ie, "elInY+1000 ", L)), Object.keys(ce).length !== 0 && (L = this.parseObj(ce, "elInY+1100 ", L)), Object.keys(fe).length !== 0 && (L = this.parseObj(fe, "elInY+1200 ", L)), Object.keys(le).length !== 0 && (L = this.parseObj(le, "elInY+1300 ", L)), Object.keys(se).length !== 0 && (L = this.parseObj(se, "elInY+1400 ", L)), Object.keys(te).length !== 0 && (L = this.parseObj(te, "elInY+1500 ", L)), Object.keys(Y).length !== 0 && (L = this.parseObj(Y, "elInY+1600 ", L)), Object.keys(Se).length !== 0 && (L = this.parseObj(Se, "elInY+1700 ", L)), Object.keys(pe).length !== 0 && (L = this.parseObj(pe, "elInY+1800 ", L)), Object.keys(qe).length !== 0 && (L = this.parseObj(qe, "elInY+1900 ", L)), Object.keys(ne).length !== 0 && (L = this.parseObj(ne, "elInY+2000 ", L)), Object.keys(De).length !== 0 && (L = this.parseObj(De, "elInY+2100 ", L)), Object.keys(Ce).length !== 0 && (L = this.parseObj(Ce, "elInY+2200 ", L)), Object.keys(Pe).length !== 0 && (L = this.parseObj(Pe, "elInY+2300 ", L)), Object.keys(Ue).length !== 0 && (L = this.parseObj(Ue, "elInY+2400 ", L)), Object.keys(Ye).length !== 0 && (L = this.parseObj(Ye, "elInY+2500 ", L)), Object.keys(O).length !== 0 && (L = this.parseObj(O, "elInY+2600 ", L)), Object.keys(j).length !== 0 && (L = this.parseObj(j, "elInY+2700 ", L)), Object.keys(z).length !== 0 && (L = this.parseObj(z, "elInY+2800 ", L)), Object.keys(V).length !== 0 && (L = this.parseObj(V, "elInY+2900 ", L)), Object.keys(K).length !== 0 && (L = this.parseObj(K, "elInY+3000 ", L)), i.style.transition = "", i.setAttribute("data-dummy-selector", "1"), lt.addElements("[data-dummy-selector]", {
604
- scrollY: L
598
+ let J = {}, F = {}, ee = {}, Q = {}, he = {}, Ee = {}, me = {}, Te = {}, ye = {}, re = {}, N = {}, G = {}, ie = {}, ce = {}, fe = {}, le = {}, se = {}, te = {}, Y = {}, Se = {}, pe = {}, Me = {}, ne = {}, Pe = {}, Le = {}, De = {}, Ue = {}, Ye = {}, O = {}, j = {}, z = {}, V = {}, K = {};
599
+ (t > 1280 || t > 970 && t <= 1280 && !U || t > 760 && t <= 970 && !H || t <= 760 && !$) && (ee = this.getObjVal(i, "data-t"), Q = this.getObjVal(i, "data-t-100"), he = this.getObjVal(i, "data-t-200"), Ee = this.getObjVal(i, "data-t-300"), me = this.getObjVal(i, "data-t-400"), Te = this.getObjVal(i, "data-t-500"), ye = this.getObjVal(i, "data-t-600"), re = this.getObjVal(i, "data-t-700"), N = this.getObjVal(i, "data-t-800"), G = this.getObjVal(i, "data-t-900"), ie = this.getObjVal(i, "data-t-1000"), ce = this.getObjVal(i, "data-t-1100"), fe = this.getObjVal(i, "data-t-1200"), le = this.getObjVal(i, "data-t-1300"), se = this.getObjVal(i, "data-t-1400"), te = this.getObjVal(i, "data-t-1500"), Y = this.getObjVal(i, "data-t-1600"), Se = this.getObjVal(i, "data-t-1700"), pe = this.getObjVal(i, "data-t-1800"), Me = this.getObjVal(i, "data-t-1900"), ne = this.getObjVal(i, "data-t-2000"), Pe = this.getObjVal(i, "data-t-2100"), Le = this.getObjVal(i, "data-t-2200"), De = this.getObjVal(i, "data-t-2300"), Ue = this.getObjVal(i, "data-t-2400"), Ye = this.getObjVal(i, "data-t-2500"), O = this.getObjVal(i, "data-t-2600"), j = this.getObjVal(i, "data-t-2700"), z = this.getObjVal(i, "data-t-2800")), t > 970 && t <= 1280 && U && (i.hasAttribute("data-md-t") && (ee = this.getObjVal(i, "data-md-t")), i.hasAttribute("data-md-t-100") && (Q = this.getObjVal(i, "data-md-t-100")), i.hasAttribute("data-md-t-200") && (he = this.getObjVal(i, "data-md-t-200")), i.hasAttribute("data-md-t-300") && (Ee = this.getObjVal(i, "data-md-t-300")), i.hasAttribute("data-md-t-400") && (me = this.getObjVal(i, "data-md-t-400")), i.hasAttribute("data-md-t-500") && (Te = this.getObjVal(i, "data-md-t-500")), i.hasAttribute("data-md-t-600") && (ye = this.getObjVal(i, "data-md-t-600")), i.hasAttribute("data-md-t-700") && (re = this.getObjVal(i, "data-md-t-700")), i.hasAttribute("data-md-t-800") && (N = this.getObjVal(i, "data-md-t-800")), i.hasAttribute("data-md-t-900") && (G = this.getObjVal(i, "data-md-t-900")), i.hasAttribute("data-md-t-1000") && (ie = this.getObjVal(i, "data-md-t-1000")), i.hasAttribute("data-md-t-1100") && (ce = this.getObjVal(i, "data-md-t-1100")), i.hasAttribute("data-md-t-1200") && (fe = this.getObjVal(i, "data-md-t-1200")), i.hasAttribute("data-md-t-1300") && (le = this.getObjVal(i, "data-md-t-1300")), i.hasAttribute("data-md-t-1400") && (se = this.getObjVal(i, "data-md-t-1400")), i.hasAttribute("data-md-t-1500") && (te = this.getObjVal(i, "data-md-t-1500")), i.hasAttribute("data-md-t-1600") && (Y = this.getObjVal(i, "data-md-t-1600")), i.hasAttribute("data-md-t-1700") && (Se = this.getObjVal(i, "data-md-t-1700")), i.hasAttribute("data-md-t-1800") && (pe = this.getObjVal(i, "data-md-t-1800")), i.hasAttribute("data-md-t-1900") && (Me = this.getObjVal(i, "data-md-t-1900")), i.hasAttribute("data-md-t-2000") && (ne = this.getObjVal(i, "data-md-t-2000")), i.hasAttribute("data-md-t-2100") && (Pe = this.getObjVal(i, "data-md-t-2100")), i.hasAttribute("data-md-t-2200") && (Le = this.getObjVal(i, "data-md-t-2200")), i.hasAttribute("data-md-t-2300") && (De = this.getObjVal(i, "data-md-t-2300")), i.hasAttribute("data-md-t-2400") && (Ue = this.getObjVal(i, "data-md-t-2400")), i.hasAttribute("data-md-t-2500") && (Ye = this.getObjVal(i, "data-md-t-2500")), i.hasAttribute("data-md-t-2600") && (O = this.getObjVal(i, "data-md-t-2600")), i.hasAttribute("data-md-t-2700") && (j = this.getObjVal(i, "data-md-t-2700")), i.hasAttribute("data-md-t-2800") && (z = this.getObjVal(i, "data-md-t-2800"))), t <= 970 && i.hasAttribute("m-data-out") && (E = this.getObjVal(i, "m-data-out")), (t > 760 && t <= 970 && H || t <= 760 && !$ && H) && (i.hasAttribute("data-sm-t") && (ee = this.getObjVal(i, "data-sm-t")), i.hasAttribute("data-sm-t-100") && (Q = this.getObjVal(i, "data-sm-t-100")), i.hasAttribute("data-sm-t-200") && (he = this.getObjVal(i, "data-sm-t-200")), i.hasAttribute("data-sm-t-300") && (Ee = this.getObjVal(i, "data-sm-t-300")), i.hasAttribute("data-sm-t-400") && (me = this.getObjVal(i, "data-sm-t-400")), i.hasAttribute("data-sm-t-500") && (Te = this.getObjVal(i, "data-sm-t-500")), i.hasAttribute("data-sm-t-600") && (ye = this.getObjVal(i, "data-sm-t-600")), i.hasAttribute("data-sm-t-700") && (re = this.getObjVal(i, "data-sm-t-700")), i.hasAttribute("data-sm-t-800") && (N = this.getObjVal(i, "data-sm-t-800")), i.hasAttribute("data-sm-t-900") && (G = this.getObjVal(i, "data-sm-t-900")), i.hasAttribute("data-sm-t-1000") && (ie = this.getObjVal(i, "data-sm-t-1000")), i.hasAttribute("data-sm-t-1100") && (ce = this.getObjVal(i, "data-sm-t-1100")), i.hasAttribute("data-sm-t-1200") && (fe = this.getObjVal(i, "data-sm-t-1200")), i.hasAttribute("data-sm-t-1300") && (le = this.getObjVal(i, "data-sm-t-1300")), i.hasAttribute("data-sm-t-1400") && (se = this.getObjVal(i, "data-sm-t-1400")), i.hasAttribute("data-sm-t-1500") && (te = this.getObjVal(i, "data-sm-t-1500")), i.hasAttribute("data-sm-t-1600") && (Y = this.getObjVal(i, "data-sm-t-1600")), i.hasAttribute("data-sm-t-1700") && (Se = this.getObjVal(i, "data-sm-t-1700")), i.hasAttribute("data-sm-t-1800") && (pe = this.getObjVal(i, "data-sm-t-1800")), i.hasAttribute("data-sm-t-1900") && (Me = this.getObjVal(i, "data-sm-t-1900")), i.hasAttribute("data-sm-t-2000") && (ne = this.getObjVal(i, "data-sm-t-2000")), i.hasAttribute("data-sm-t-2100") && (Pe = this.getObjVal(i, "data-sm-t-2100")), i.hasAttribute("data-sm-t-2200") && (Le = this.getObjVal(i, "data-sm-t-2200")), i.hasAttribute("data-sm-t-2300") && (De = this.getObjVal(i, "data-sm-t-2300")), i.hasAttribute("data-sm-t-2400") && (Ue = this.getObjVal(i, "data-sm-t-2400")), i.hasAttribute("data-sm-t-2500") && (Ye = this.getObjVal(i, "data-sm-t-2500")), i.hasAttribute("data-sm-t-2600") && (O = this.getObjVal(i, "data-sm-t-2600")), i.hasAttribute("data-sm-t-2700") && (j = this.getObjVal(i, "data-sm-t-2700")), i.hasAttribute("data-sm-t-2800") && (z = this.getObjVal(i, "data-sm-t-2800"))), t <= 414 && $ && (i.hasAttribute("data-xs-t") && (ee = this.getObjVal(i, "data-xs-t")), i.hasAttribute("data-xs-t-100") && (Q = this.getObjVal(i, "data-xs-t-100")), i.hasAttribute("data-xs-t-200") && (he = this.getObjVal(i, "data-xs-t-200")), i.hasAttribute("data-xs-t-300") && (Ee = this.getObjVal(i, "data-xs-t-300")), i.hasAttribute("data-xs-t-400") && (me = this.getObjVal(i, "data-xs-t-400")), i.hasAttribute("data-xs-t-500") && (Te = this.getObjVal(i, "data-xs-t-500")), i.hasAttribute("data-xs-t-600") && (ye = this.getObjVal(i, "data-xs-t-600")), i.hasAttribute("data-xs-t-700") && (re = this.getObjVal(i, "data-xs-t-700")), i.hasAttribute("data-xs-t-800") && (N = this.getObjVal(i, "data-xs-t-800")), i.hasAttribute("data-xs-t-900") && (G = this.getObjVal(i, "data-xs-t-900")), i.hasAttribute("data-xs-t-1000") && (ie = this.getObjVal(i, "data-xs-t-1000")), i.hasAttribute("data-xs-t-1100") && (ce = this.getObjVal(i, "data-xs-t-1100")), i.hasAttribute("data-xs-t-1200") && (fe = this.getObjVal(i, "data-xs-t-1200")), i.hasAttribute("data-xs-t-1300") && (le = this.getObjVal(i, "data-xs-t-1300")), i.hasAttribute("data-xs-t-1400") && (se = this.getObjVal(i, "data-xs-t-1400")), i.hasAttribute("data-xs-t-1500") && (te = this.getObjVal(i, "data-xs-t-1500")), i.hasAttribute("data-xs-t-1600") && (Y = this.getObjVal(i, "data-xs-t-1600")), i.hasAttribute("data-xs-t-1700") && (Se = this.getObjVal(i, "data-xs-t-1700")), i.hasAttribute("data-xs-t-1800") && (pe = this.getObjVal(i, "data-xs-t-1800")), i.hasAttribute("data-xs-t-1900") && (Me = this.getObjVal(i, "data-xs-t-1900")), i.hasAttribute("data-xs-t-2000") && (ne = this.getObjVal(i, "data-xs-t-2000")), i.hasAttribute("data-xs-t-2100") && (Pe = this.getObjVal(i, "data-xs-t-2100")), i.hasAttribute("data-xs-t-2200") && (Le = this.getObjVal(i, "data-xs-t-2200")), i.hasAttribute("data-xs-t-2300") && (De = this.getObjVal(i, "data-xs-t-2300")), i.hasAttribute("data-xs-t-2400") && (Ue = this.getObjVal(i, "data-xs-t-2400")), i.hasAttribute("data-xs-t-2500") && (Ye = this.getObjVal(i, "data-xs-t-2500")), i.hasAttribute("data-xs-t-2600") && (O = this.getObjVal(i, "data-xs-t-2600")), i.hasAttribute("data-xs-t-2700") && (j = this.getObjVal(i, "data-xs-t-2700")), i.hasAttribute("data-xs-t-2800") && (z = this.getObjVal(i, "data-xs-t-2800")));
600
+ let ve = ee, be = Q, X = he, we = Ee, ue = me, qe = Te, xe = ye, Ce = re, Re = N, Fe = G, He = ie, Ge = ce, Oe = fe, Z = le, _e = se, Ie = te, vt = Y, wt = Se, xt = pe, _t = Me, kt = ne, St = Pe, Et = Le, Tt = De, Ct = Ue, Lt = Ye, Ot = O, At = j, Mt = z, nt = window.innerHeight;
601
+ nt < 730 ? (J = ve, F = be, ee = X, Q = we, he = ue, Ee = qe, me = xe, Te = Ce, ye = Re, re = Fe, N = He, G = Ge, ie = Oe, ce = Z, fe = _e, le = Ie, se = vt, te = wt, Y = xt, Se = _t, pe = kt, Me = St, ne = Et, Pe = Tt, Le = Ct, De = Lt, Ue = Ot, Ye = At, O = Mt, j = {}, z = {}) : nt >= 730 && nt < 790 ? (F = ve, ee = be, Q = X, he = we, Ee = ue, me = qe, Te = xe, ye = Ce, re = Re, N = Fe, G = He, ie = Ge, ce = Oe, fe = Z, le = _e, se = Ie, te = vt, Y = wt, Se = xt, pe = _t, Me = kt, ne = St, Pe = Et, Le = Tt, De = Ct, Ue = Lt, Ye = Ot, O = At, j = Mt, z = {}) : nt >= 790 && nt < 840 || (nt >= 840 && nt < 1125 ? (ee = {}, Q = ve, he = be, Ee = X, me = we, Te = ue, ye = qe, re = xe, N = Ce, G = Re, ie = Fe, ce = He, fe = Ge, le = Oe, se = Z, te = _e, Y = Ie, Se = vt, pe = wt, Me = xt, ne = _t, Pe = kt, Le = St, De = Et, Ue = Tt, Ye = Ct, O = Lt, j = Ot, z = At, V = Mt) : (ee = {}, Q = {}, he = ve, Ee = be, me = X, Te = we, ye = ue, re = qe, N = xe, G = Ce, ie = Re, ce = Fe, fe = He, le = Ge, se = Oe, te = Z, Y = _e, Se = Ie, pe = vt, Me = wt, ne = xt, Pe = _t, Le = kt, De = St, Ue = Et, Ye = Tt, O = Ct, j = Lt, z = Ot, V = At, K = Mt));
602
+ let C = {};
603
+ Object.keys(T).length !== 0 && (C = this.parseObj(T, "elInY", C)), Object.keys(L).length !== 0 && (C = this.parseObj(L, "elInY+50", C)), Object.keys(k).length !== 0 && (C = this.parseObj(k, "elInY+100", C)), Object.keys(y).length !== 0 && (C = this.parseObj(y, "elInY+150", C)), Object.keys(f).length !== 0 && (C = this.parseObj(f, "elInY+200", C)), Object.keys(_).length !== 0 && (C = this.parseObj(_, "elInY+250", C)), Object.keys(v).length !== 0 && (C = this.parseObj(v, "elInY+300", C)), Object.keys(m).length !== 0 && (C = this.parseObj(m, "elInY+350", C)), Object.keys(x).length !== 0 && (C = this.parseObj(x, "elInY+400", C)), Object.keys(b).length !== 0 && (C = this.parseObj(b, "elInY+450", C)), Object.keys(S).length !== 0 && (C = this.parseObj(S, "elInY+500", C)), Object.keys(w).length !== 0 && (C = this.parseObj(w, "elInY+550", C)), Object.keys(g).length !== 0 && (C = this.parseObj(g, "elInY+600", C)), Object.keys(p).length !== 0 && (C = this.parseObj(p, "elInY+650", C)), Object.keys(h).length !== 0 && (C = this.parseObj(h, "elCenterY-300", C)), Object.keys(o).length !== 0 && (C = this.parseObj(o, "elCenterY", C)), Object.keys(d).length !== 0 && (C = this.parseObj(d, "elCenterY+100", C)), Object.keys(c).length !== 0 && (C = this.parseObj(c, "elCenterY+200", C)), Object.keys(l).length !== 0 && (C = this.parseObj(l, "elCenterY+300", C)), Object.keys(a).length !== 0 && (C = this.parseObj(a, "elOutY-300", C)), Object.keys(r).length !== 0 && (C = this.parseObj(r, "elOutY", C)), Object.keys(A).length !== 0 && (C = this.parseObj(A, "elInY", C)), Object.keys(R).length !== 0 && (C = this.parseObj(R, "elInY+150", C)), Object.keys(B).length !== 0 && (C = this.parseObj(B, "elInY+300 ", C)), Object.keys(P).length !== 0 && (C = this.parseObj(P, "elCenterY-150", C)), Object.keys(D).length !== 0 && (C = this.parseObj(D, "elCenterY", C)), Object.keys(M).length !== 0 && (C = this.parseObj(M, "elCenterY+150", C)), Object.keys(q).length !== 0 && (C = this.parseObj(q, "elOutY-300 ", C)), Object.keys(I).length !== 0 && (C = this.parseObj(I, "elOutY-150 ", C)), Object.keys(E).length !== 0 && (C = this.parseObj(E, "elOutY", C)), Object.keys(J).length !== 0 && (C = this.parseObj(J, "elInY-200", C)), Object.keys(F).length !== 0 && (C = this.parseObj(F, "elInY-100", C)), Object.keys(ee).length !== 0 && (C = this.parseObj(ee, "elInY", C)), Object.keys(Q).length !== 0 && (C = this.parseObj(Q, "elInY+100", C)), Object.keys(he).length !== 0 && (C = this.parseObj(he, "elInY+200", C)), Object.keys(Ee).length !== 0 && (C = this.parseObj(Ee, "elInY+300 ", C)), Object.keys(me).length !== 0 && (C = this.parseObj(me, "elInY+400 ", C)), Object.keys(Te).length !== 0 && (C = this.parseObj(Te, "elInY+500 ", C)), Object.keys(ye).length !== 0 && (C = this.parseObj(ye, "elInY+600 ", C)), Object.keys(re).length !== 0 && (C = this.parseObj(re, "elInY+700 ", C)), Object.keys(N).length !== 0 && (C = this.parseObj(N, "elInY+800 ", C)), Object.keys(G).length !== 0 && (C = this.parseObj(G, "elInY+900 ", C)), Object.keys(ie).length !== 0 && (C = this.parseObj(ie, "elInY+1000 ", C)), Object.keys(ce).length !== 0 && (C = this.parseObj(ce, "elInY+1100 ", C)), Object.keys(fe).length !== 0 && (C = this.parseObj(fe, "elInY+1200 ", C)), Object.keys(le).length !== 0 && (C = this.parseObj(le, "elInY+1300 ", C)), Object.keys(se).length !== 0 && (C = this.parseObj(se, "elInY+1400 ", C)), Object.keys(te).length !== 0 && (C = this.parseObj(te, "elInY+1500 ", C)), Object.keys(Y).length !== 0 && (C = this.parseObj(Y, "elInY+1600 ", C)), Object.keys(Se).length !== 0 && (C = this.parseObj(Se, "elInY+1700 ", C)), Object.keys(pe).length !== 0 && (C = this.parseObj(pe, "elInY+1800 ", C)), Object.keys(Me).length !== 0 && (C = this.parseObj(Me, "elInY+1900 ", C)), Object.keys(ne).length !== 0 && (C = this.parseObj(ne, "elInY+2000 ", C)), Object.keys(Pe).length !== 0 && (C = this.parseObj(Pe, "elInY+2100 ", C)), Object.keys(Le).length !== 0 && (C = this.parseObj(Le, "elInY+2200 ", C)), Object.keys(De).length !== 0 && (C = this.parseObj(De, "elInY+2300 ", C)), Object.keys(Ue).length !== 0 && (C = this.parseObj(Ue, "elInY+2400 ", C)), Object.keys(Ye).length !== 0 && (C = this.parseObj(Ye, "elInY+2500 ", C)), Object.keys(O).length !== 0 && (C = this.parseObj(O, "elInY+2600 ", C)), Object.keys(j).length !== 0 && (C = this.parseObj(j, "elInY+2700 ", C)), Object.keys(z).length !== 0 && (C = this.parseObj(z, "elInY+2800 ", C)), Object.keys(V).length !== 0 && (C = this.parseObj(V, "elInY+2900 ", C)), Object.keys(K).length !== 0 && (C = this.parseObj(K, "elInY+3000 ", C)), i.style.transition = "", i.setAttribute("data-dummy-selector", "1"), lt.addElements("[data-dummy-selector]", {
604
+ scrollY: C
605
605
  }), this.elements.push(document.querySelector("[data-dummy-selector]")), i.removeAttribute("data-dummy-selector"), setTimeout(() => {
606
606
  i.style.opacity = 1, i.getAttribute("data-smooth-scrolling") === "off" || this.settings.transition && (i.style.transition = this.settings.transition);
607
607
  }, 100);
@@ -694,16 +694,16 @@ function mi() {
694
694
  *
695
695
  * Date: 2013-04-10
696
696
  */
697
- var si, Ri;
698
- function Ls() {
699
- return Ri || (Ri = 1, si = function u(e, t) {
697
+ var si, qi;
698
+ function Cs() {
699
+ return qi || (qi = 1, si = function u(e, t) {
700
700
  return e == null || t == null || Object.keys(t).forEach(function(s) {
701
701
  Object.prototype.toString.call(t[s]) == "[object Object]" ? Object.prototype.toString.call(e[s]) != "[object Object]" ? e[s] = t[s] : e[s] = u(e[s], t[s]) : e[s] = t[s];
702
702
  }), e;
703
703
  }), si;
704
704
  }
705
- var Cs = Ls();
706
- const Yt = /* @__PURE__ */ gi(Cs);
705
+ var Ls = Cs();
706
+ const Yt = /* @__PURE__ */ gi(Ls);
707
707
  Array.prototype.each = function(u) {
708
708
  const e = this.length;
709
709
  for (let t = 0; t < e; t++) {
@@ -712,10 +712,10 @@ Array.prototype.each = function(u) {
712
712
  }
713
713
  };
714
714
  typeof window < "u" && typeof NodeList < "u" && (NodeList.prototype.each = Array.prototype.each, NodeList.prototype.filter = Array.prototype.filter);
715
- function Rt(u) {
715
+ function qt(u) {
716
716
  return Number(u) === u && u % 1 === 0;
717
717
  }
718
- function Mt(u) {
718
+ function Rt(u) {
719
719
  return Number(u) === u && u % 1 !== 0;
720
720
  }
721
721
  let $t = class {
@@ -764,7 +764,7 @@ let $t = class {
764
764
  */
765
765
  _getElementOffset(e, t) {
766
766
  let s = { x: 0, y: 0 };
767
- return typeof this.offset.element.x == "function" ? s.x = e.width * this.offset.element.x(this, e, t) : Mt(this.offset.element.x) ? s.x = e.width * this.offset.element.x : Rt(this.offset.element.x) && (s.x = this.offset.element.x), typeof this.offset.element.y == "function" ? s.y = e.height * this.offset.element.y(this, e, t) : Mt(this.offset.element.y) ? s.y = e.height * this.offset.element.y : Rt(this.offset.element.y) && (s.y = this.offset.element.y), s;
767
+ return typeof this.offset.element.x == "function" ? s.x = e.width * this.offset.element.x(this, e, t) : Rt(this.offset.element.x) ? s.x = e.width * this.offset.element.x : qt(this.offset.element.x) && (s.x = this.offset.element.x), typeof this.offset.element.y == "function" ? s.y = e.height * this.offset.element.y(this, e, t) : Rt(this.offset.element.y) ? s.y = e.height * this.offset.element.y : qt(this.offset.element.y) && (s.y = this.offset.element.y), s;
768
768
  }
769
769
  /**
770
770
  * Get the calculated offset to place on the viewport
@@ -775,7 +775,7 @@ let $t = class {
775
775
  */
776
776
  _getViewportOffset(e, t) {
777
777
  let s = { x: 0, y: 0 };
778
- return typeof this.offset.viewport.x == "function" ? s.x = e.w * this.offset.viewport.x(this, e, t) : Mt(this.offset.viewport.x) ? s.x = e.w * this.offset.viewport.x : Rt(this.offset.viewport.x) && (s.x = this.offset.viewport.x), typeof this.offset.viewport.y == "function" ? s.y = e.h * this.offset.viewport.y(this, e, t) : Mt(this.offset.viewport.y) ? s.y = e.h * this.offset.viewport.y : Rt(this.offset.viewport.y) && (s.y = this.offset.viewport.y), s;
778
+ return typeof this.offset.viewport.x == "function" ? s.x = e.w * this.offset.viewport.x(this, e, t) : Rt(this.offset.viewport.x) ? s.x = e.w * this.offset.viewport.x : qt(this.offset.viewport.x) && (s.x = this.offset.viewport.x), typeof this.offset.viewport.y == "function" ? s.y = e.h * this.offset.viewport.y(this, e, t) : Rt(this.offset.viewport.y) ? s.y = e.h * this.offset.viewport.y : qt(this.offset.viewport.y) && (s.y = this.offset.viewport.y), s;
779
779
  }
780
780
  /**
781
781
  * Check the visibility of the trigger in the viewport, with offsets applied
@@ -986,8 +986,8 @@ let $t = class {
986
986
  *
987
987
  * Date: 2017-07-09
988
988
  */
989
- const ct = $t, qs = Os, Rs = As;
990
- class Ms {
989
+ const ct = $t, Ms = Os, qs = As;
990
+ class Rs {
991
991
  /**
992
992
  * Constructor for the scroll trigger
993
993
  * @param {DefaultOptions} [options=DefaultOptions] options
@@ -1010,14 +1010,14 @@ class Ms {
1010
1010
  _initCollection() {
1011
1011
  const e = document.querySelectorAll("[data-scroll]");
1012
1012
  let t = [];
1013
- e.length > 0 && (t = this.createTriggers(e)), this.collection = new qs(t);
1013
+ e.length > 0 && (t = this.createTriggers(e)), this.collection = new Ms(t);
1014
1014
  }
1015
1015
  /**
1016
1016
  * Initializes the scroll loop
1017
1017
  * @private
1018
1018
  */
1019
1019
  _initLoop() {
1020
- this.loop = new Rs({
1020
+ this.loop = new qs({
1021
1021
  sustain: this.scrollOptions.sustain,
1022
1022
  element: this.scrollOptions.element,
1023
1023
  callback: (e, t) => {
@@ -1134,7 +1134,7 @@ class Ms {
1134
1134
  this.loop.kill(), this.loop = null;
1135
1135
  }
1136
1136
  }
1137
- const Mi = Date.now();
1137
+ const Ri = Date.now();
1138
1138
  function et() {
1139
1139
  let u = {}, e = !0, t = 0, s = arguments.length;
1140
1140
  Object.prototype.toString.call(arguments[0]) === "[object Boolean]" && (e = arguments[0], t++);
@@ -1149,8 +1149,8 @@ function et() {
1149
1149
  return u;
1150
1150
  }
1151
1151
  function Ae(u, e) {
1152
- if ((tt(u) || u === window || u === document) && (u = [u]), !Di(u) && !dt(u) && (u = [u]), rs(u) != 0) {
1153
- if (Di(u) && !dt(u)) {
1152
+ if ((tt(u) || u === window || u === document) && (u = [u]), !Pi(u) && !dt(u) && (u = [u]), rs(u) != 0) {
1153
+ if (Pi(u) && !dt(u)) {
1154
1154
  let t = u.length, s = 0;
1155
1155
  for (; s < t && e.call(u[s], u[s], s, u) !== !1; s++)
1156
1156
  ;
@@ -1162,7 +1162,7 @@ function Ae(u, e) {
1162
1162
  }
1163
1163
  }
1164
1164
  function Ii(u, e = null, t = null) {
1165
- const s = u[Mi] = u[Mi] || [], i = { all: s, evt: null, found: null };
1165
+ const s = u[Ri] = u[Ri] || [], i = { all: s, evt: null, found: null };
1166
1166
  return e && t && rs(s) > 0 && Ae(s, (n, r) => {
1167
1167
  if (n.eventName == e && n.fn.toString() == t.toString())
1168
1168
  return i.found = !0, i.evt = r, !1;
@@ -1331,7 +1331,7 @@ function Ni(u, e, t) {
1331
1331
  function bi() {
1332
1332
  return typeof window > "u" ? !1 : "navigator" in window && window.navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i);
1333
1333
  }
1334
- function Ds() {
1334
+ function Ps() {
1335
1335
  return typeof document > "u" ? !1 : bi() !== null || document.createTouch !== void 0 || "ontouchstart" in window || "onmsgesturechange" in window || navigator.msMaxTouchPoints;
1336
1336
  }
1337
1337
  function ge(u) {
@@ -1346,7 +1346,7 @@ function tt(u) {
1346
1346
  function ns(u) {
1347
1347
  return Array.isArray(u);
1348
1348
  }
1349
- function Di(u) {
1349
+ function Pi(u) {
1350
1350
  return u && u.length && isFinite(u.length);
1351
1351
  }
1352
1352
  function dt(u) {
@@ -1372,7 +1372,7 @@ function rs(u) {
1372
1372
  function zt(u) {
1373
1373
  return !isNaN(parseFloat(u)) && isFinite(u);
1374
1374
  }
1375
- function Pi(u = -1) {
1375
+ function Di(u = -1) {
1376
1376
  const e = document.querySelectorAll(".gbtn[data-taborder]:not(.disabled)");
1377
1377
  if (!e.length)
1378
1378
  return !1;
@@ -1389,7 +1389,7 @@ function Pi(u = -1) {
1389
1389
  const r = t.filter((a) => a >= parseInt(i)).sort()[0];
1390
1390
  return document.querySelector(`.gbtn[data-taborder="${r}"]`);
1391
1391
  }
1392
- function Ps(u) {
1392
+ function Ds(u) {
1393
1393
  if (u.events.hasOwnProperty("keyboard"))
1394
1394
  return !1;
1395
1395
  u.events.keyboard = Xe("keydown", {
@@ -1409,11 +1409,11 @@ function Ps(u) {
1409
1409
  if (!n || n.length <= 0)
1410
1410
  return;
1411
1411
  if (!i) {
1412
- const l = Pi();
1412
+ const l = Di();
1413
1413
  l && (l.focus(), ae(l, "focused"));
1414
1414
  return;
1415
1415
  }
1416
- let r = i.getAttribute("data-taborder"), a = Pi(r);
1416
+ let r = i.getAttribute("data-taborder"), a = Di(r);
1417
1417
  je(i, "focused"), a && (a.focus(), ae(a, "focused"));
1418
1418
  }
1419
1419
  s == 39 && u.nextSlide(), s == 37 && u.prevSlide(), s == 27 && u.close();
@@ -1562,28 +1562,28 @@ function ri(u) {
1562
1562
  function Ys(u) {
1563
1563
  if (u.events.hasOwnProperty("touch"))
1564
1564
  return !1;
1565
- let e = ss(), t = e.width, s = e.height, i = !1, n = null, r = null, a = null, l = !1, c = 1, d = 4.5, o = 1, h = !1, p = !1, g = null, w = null, S = null, b = null, x, m, v = 0, _ = 0, f = !1, y = !1, k = {}, C = {}, T = 0, A = 0, M;
1566
- const B = document.getElementById("glightbox-slider"), D = document.querySelector(".goverlay"), P = new Us(B, {
1567
- touchStart: (q) => {
1568
- if (i = !0, (Ve(q.targetTouches[0].target, "ginner-container") || Qe(q.targetTouches[0].target, ".gslide-desc") || q.targetTouches[0].target.nodeName.toLowerCase() == "a") && (i = !1), Qe(q.targetTouches[0].target, ".gslide-inline") && !Ve(q.targetTouches[0].target.parentNode, "gslide-inline") && (i = !1), i) {
1569
- if (C = q.targetTouches[0], k.pageX = q.targetTouches[0].pageX, k.pageY = q.targetTouches[0].pageY, T = q.targetTouches[0].clientX, A = q.targetTouches[0].clientY, n = u.activeSlide, r = n.querySelector(".gslide-media"), M = n.querySelector(".gslide-inline"), a = null, Ve(r, "gslide-image") && (a = r.querySelector("img")), (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) > 769 && (r = n.querySelector(".ginner-container")), je(D, "greset"), q.pageX > 20 && q.pageX < window.innerWidth - 20)
1565
+ let e = ss(), t = e.width, s = e.height, i = !1, n = null, r = null, a = null, l = !1, c = 1, d = 4.5, o = 1, h = !1, p = !1, g = null, w = null, S = null, b = null, x, m, v = 0, _ = 0, f = !1, y = !1, k = {}, L = {}, T = 0, A = 0, R;
1566
+ const B = document.getElementById("glightbox-slider"), P = document.querySelector(".goverlay"), D = new Us(B, {
1567
+ touchStart: (M) => {
1568
+ if (i = !0, (Ve(M.targetTouches[0].target, "ginner-container") || Qe(M.targetTouches[0].target, ".gslide-desc") || M.targetTouches[0].target.nodeName.toLowerCase() == "a") && (i = !1), Qe(M.targetTouches[0].target, ".gslide-inline") && !Ve(M.targetTouches[0].target.parentNode, "gslide-inline") && (i = !1), i) {
1569
+ if (L = M.targetTouches[0], k.pageX = M.targetTouches[0].pageX, k.pageY = M.targetTouches[0].pageY, T = M.targetTouches[0].clientX, A = M.targetTouches[0].clientY, n = u.activeSlide, r = n.querySelector(".gslide-media"), R = n.querySelector(".gslide-inline"), a = null, Ve(r, "gslide-image") && (a = r.querySelector("img")), (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) > 769 && (r = n.querySelector(".ginner-container")), je(P, "greset"), M.pageX > 20 && M.pageX < window.innerWidth - 20)
1570
1570
  return;
1571
- q.preventDefault();
1571
+ M.preventDefault();
1572
1572
  }
1573
1573
  },
1574
- touchMove: (q) => {
1575
- if (!i || (C = q.targetTouches[0], h || p))
1574
+ touchMove: (M) => {
1575
+ if (!i || (L = M.targetTouches[0], h || p))
1576
1576
  return;
1577
- if (M && M.offsetHeight > s) {
1578
- const U = k.pageX - C.pageX;
1577
+ if (R && R.offsetHeight > s) {
1578
+ const U = k.pageX - L.pageX;
1579
1579
  if (Math.abs(U) <= 13)
1580
1580
  return !1;
1581
1581
  }
1582
1582
  l = !0;
1583
- let R = q.targetTouches[0].clientX, I = q.targetTouches[0].clientY, E = T - R, $ = A - I;
1584
- Math.abs(E) > Math.abs($) ? (f = !1, y = !0) : (y = !1, f = !0), x = C.pageX - k.pageX, v = x * 100 / t, m = C.pageY - k.pageY, _ = m * 100 / s;
1583
+ let q = M.targetTouches[0].clientX, I = M.targetTouches[0].clientY, E = T - q, $ = A - I;
1584
+ Math.abs(E) > Math.abs($) ? (f = !1, y = !0) : (y = !1, f = !0), x = L.pageX - k.pageX, v = x * 100 / t, m = L.pageY - k.pageY, _ = m * 100 / s;
1585
1585
  let H;
1586
- if (f && a && (H = 1 - Math.abs(m) / s, D.style.opacity = H, u.settings.touchFollowAxis && (v = 0)), y && (H = 1 - Math.abs(x) / t, r.style.opacity = H, u.settings.touchFollowAxis && (_ = 0)), !a)
1586
+ if (f && a && (H = 1 - Math.abs(m) / s, P.style.opacity = H, u.settings.touchFollowAxis && (v = 0)), y && (H = 1 - Math.abs(x) / t, r.style.opacity = H, u.settings.touchFollowAxis && (_ = 0)), !a)
1587
1587
  return Ht(r, `translate3d(${v}%, 0, 0)`);
1588
1588
  Ht(r, `translate3d(${v}%, ${_}%, 0)`);
1589
1589
  },
@@ -1594,13 +1594,13 @@ function Ys(u) {
1594
1594
  S = g, b = w;
1595
1595
  return;
1596
1596
  }
1597
- const q = Math.abs(parseInt(_)), R = Math.abs(parseInt(v));
1598
- if (q > 29 && a) {
1597
+ const M = Math.abs(parseInt(_)), q = Math.abs(parseInt(v));
1598
+ if (M > 29 && a) {
1599
1599
  u.close();
1600
1600
  return;
1601
1601
  }
1602
- if (q < 29 && R < 25)
1603
- return ae(D, "greset"), D.style.opacity = 1, ri(r);
1602
+ if (M < 29 && q < 25)
1603
+ return ae(P, "greset"), P.style.opacity = 1, ri(r);
1604
1604
  },
1605
1605
  multipointEnd: () => {
1606
1606
  setTimeout(() => {
@@ -1610,37 +1610,37 @@ function Ys(u) {
1610
1610
  multipointStart: () => {
1611
1611
  h = !0, c = o || 1;
1612
1612
  },
1613
- pinch: (q) => {
1613
+ pinch: (M) => {
1614
1614
  if (!a || l)
1615
1615
  return !1;
1616
- h = !0, a.scaleX = a.scaleY = c * q.zoom;
1617
- let R = c * q.zoom;
1618
- if (p = !0, R <= 1) {
1619
- p = !1, R = 1, b = null, S = null, g = null, w = null, a.setAttribute("style", "");
1616
+ h = !0, a.scaleX = a.scaleY = c * M.zoom;
1617
+ let q = c * M.zoom;
1618
+ if (p = !0, q <= 1) {
1619
+ p = !1, q = 1, b = null, S = null, g = null, w = null, a.setAttribute("style", "");
1620
1620
  return;
1621
1621
  }
1622
- R > d && (R = d), a.style.transform = `scale3d(${R}, ${R}, 1)`, o = R;
1622
+ q > d && (q = d), a.style.transform = `scale3d(${q}, ${q}, 1)`, o = q;
1623
1623
  },
1624
- pressMove: (q) => {
1624
+ pressMove: (M) => {
1625
1625
  if (p && !h) {
1626
- var R = C.pageX - k.pageX, I = C.pageY - k.pageY;
1627
- S && (R = R + S), b && (I = I + b), g = R, w = I;
1628
- let E = `translate3d(${R}px, ${I}px, 0)`;
1626
+ var q = L.pageX - k.pageX, I = L.pageY - k.pageY;
1627
+ S && (q = q + S), b && (I = I + b), g = q, w = I;
1628
+ let E = `translate3d(${q}px, ${I}px, 0)`;
1629
1629
  o && (E += ` scale3d(${o}, ${o}, 1)`), Ht(a, E);
1630
1630
  }
1631
1631
  },
1632
- swipe: (q) => {
1632
+ swipe: (M) => {
1633
1633
  if (!p) {
1634
1634
  if (h) {
1635
1635
  h = !1;
1636
1636
  return;
1637
1637
  }
1638
- if (q.direction == "Left") {
1638
+ if (M.direction == "Left") {
1639
1639
  if (u.index == u.elements.length - 1)
1640
1640
  return ri(r);
1641
1641
  u.nextSlide();
1642
1642
  }
1643
- if (q.direction == "Right") {
1643
+ if (M.direction == "Right") {
1644
1644
  if (u.index == 0)
1645
1645
  return ri(r);
1646
1646
  u.prevSlide();
@@ -1648,7 +1648,7 @@ function Ys(u) {
1648
1648
  }
1649
1649
  }
1650
1650
  });
1651
- u.events.touch = P;
1651
+ u.events.touch = D;
1652
1652
  }
1653
1653
  class Fs {
1654
1654
  constructor(e, t, s = null) {
@@ -2064,7 +2064,7 @@ class It {
2064
2064
  return this.slideConfig = e.parseConfig(this.element, this.instance.settings), this.slideConfig;
2065
2065
  }
2066
2066
  }
2067
- const Qs = "3.2.0", zi = bi(), Vi = Ds();
2067
+ const Qs = "3.2.0", zi = bi(), Vi = Ps();
2068
2068
  let oi;
2069
2069
  typeof document > "u" || (oi = document.getElementsByTagName("html")[0]);
2070
2070
  const yi = {
@@ -2197,7 +2197,7 @@ class Bi {
2197
2197
  var r = document.createElement("style");
2198
2198
  r.type = "text/css", r.className = "gcss-styles", r.innerText = `.gscrollbar-fixer {margin-right: ${n}px}`, document.head.appendChild(r), ae(i, "gscrollbar-fixer");
2199
2199
  }
2200
- ae(i, "glightbox-open"), ae(oi, "glightbox-open"), zi && (ae(document.body, "glightbox-mobile"), this.settings.slideEffect = "slide"), this.showSlide(s, !0), this.elements.length === 1 ? (ae(this.prevButton, "glightbox-button-hidden"), ae(this.nextButton, "glightbox-button-hidden")) : (je(this.prevButton, "glightbox-button-hidden"), je(this.nextButton, "glightbox-button-hidden")), this.lightboxOpen = !0, this.trigger("open"), ge(this.settings.onOpen) && this.settings.onOpen(), Vi && this.settings.touchNavigation && Ys(this), this.settings.keyboardNavigation && Ps(this);
2200
+ ae(i, "glightbox-open"), ae(oi, "glightbox-open"), zi && (ae(document.body, "glightbox-mobile"), this.settings.slideEffect = "slide"), this.showSlide(s, !0), this.elements.length === 1 ? (ae(this.prevButton, "glightbox-button-hidden"), ae(this.nextButton, "glightbox-button-hidden")) : (je(this.prevButton, "glightbox-button-hidden"), je(this.nextButton, "glightbox-button-hidden")), this.lightboxOpen = !0, this.trigger("open"), ge(this.settings.onOpen) && this.settings.onOpen(), Vi && this.settings.touchNavigation && Ys(this), this.settings.keyboardNavigation && Ds(this);
2201
2201
  }
2202
2202
  /**
2203
2203
  * Open at specific index
@@ -4237,7 +4237,7 @@ var En = ["ltr", "rtl"], Tn = {
4237
4237
  "<": ">",
4238
4238
  "=": "="
4239
4239
  };
4240
- function Ln(u, e, t) {
4240
+ function Cn(u, e, t) {
4241
4241
  var s = {
4242
4242
  /**
4243
4243
  * Setups gap value based on settings.
@@ -4309,7 +4309,7 @@ function Ln(u, e, t) {
4309
4309
  s.addClass();
4310
4310
  }), s;
4311
4311
  }
4312
- function Cn(u, e) {
4312
+ function Ln(u, e) {
4313
4313
  return {
4314
4314
  /**
4315
4315
  * Negates the passed translate if glide is in RTL option.
@@ -4349,7 +4349,7 @@ function An(u, e) {
4349
4349
  }
4350
4350
  };
4351
4351
  }
4352
- function qn(u, e) {
4352
+ function Mn(u, e) {
4353
4353
  return {
4354
4354
  /**
4355
4355
  * Modifies passed translate value with a `peek` setting.
@@ -4366,7 +4366,7 @@ function qn(u, e) {
4366
4366
  }
4367
4367
  };
4368
4368
  }
4369
- function Rn(u, e) {
4369
+ function qn(u, e) {
4370
4370
  return {
4371
4371
  /**
4372
4372
  * Modifies passed translate value with index in the `focusAt` setting.
@@ -4380,8 +4380,8 @@ function Rn(u, e) {
4380
4380
  }
4381
4381
  };
4382
4382
  }
4383
- function Mn(u, e, t) {
4384
- var s = [On, An, qn, Rn].concat(u._t, [Cn]);
4383
+ function Rn(u, e, t) {
4384
+ var s = [On, An, Mn, qn].concat(u._t, [Ln]);
4385
4385
  return {
4386
4386
  /**
4387
4387
  * Piplines translate value with registered transformers.
@@ -4407,7 +4407,7 @@ function In(u, e, t) {
4407
4407
  * @return {Void}
4408
4408
  */
4409
4409
  set: function(n) {
4410
- var r = Mn(u, e).mutate(n), a = "translate3d(".concat(-1 * r, "px, 0px, 0px)");
4410
+ var r = Rn(u, e).mutate(n), a = "translate3d(".concat(-1 * r, "px, 0px, 0px)");
4411
4411
  e.Html.wrapper.style.mozTransform = a, e.Html.wrapper.style.webkitTransform = a, e.Html.wrapper.style.transform = a;
4412
4412
  },
4413
4413
  /**
@@ -4685,7 +4685,7 @@ function Nn(u, e, t) {
4685
4685
  c.unbindSwipeStart(), c.unbindSwipeMove(), c.unbindSwipeEnd(), s.destroy();
4686
4686
  }), c;
4687
4687
  }
4688
- function Dn(u, e, t) {
4688
+ function Pn(u, e, t) {
4689
4689
  var s = new st(), i = {
4690
4690
  /**
4691
4691
  * Binds listener to glide wrapper.
@@ -4724,7 +4724,7 @@ function Dn(u, e, t) {
4724
4724
  i.unbind(), s.destroy();
4725
4725
  }), i;
4726
4726
  }
4727
- function Pn(u, e, t) {
4727
+ function Dn(u, e, t) {
4728
4728
  var s = new st(), i = !1, n = !1, r = {
4729
4729
  /**
4730
4730
  * Setups a initial state of anchors component.
@@ -5144,7 +5144,7 @@ var Fn = {
5144
5144
  Html: yn,
5145
5145
  Translate: In,
5146
5146
  Transition: jn,
5147
- Direction: Ln,
5147
+ Direction: Cn,
5148
5148
  Peek: vn,
5149
5149
  Sizes: xn,
5150
5150
  Gaps: mn,
@@ -5155,8 +5155,8 @@ var Fn = {
5155
5155
  Run: gn,
5156
5156
  // Optional
5157
5157
  Swipe: Nn,
5158
- Images: Dn,
5159
- Anchors: Pn,
5158
+ Images: Pn,
5159
+ Anchors: Dn,
5160
5160
  Controls: Vn,
5161
5161
  Keyboard: Bn,
5162
5162
  Autoplay: Un,
@@ -5291,7 +5291,7 @@ const Be = {
5291
5291
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
5292
5292
  paragraph: de(_i).replace("hr", yt).replace("heading", ` *#{1,6} *[^
5293
5293
  ]`).replace("lheading", ds).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
5294
- }, ar = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, or = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ps = /^( {2,}|\\)\n(?!\s*$)/, lr = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ti = /[\p{P}\p{S}]/u, Ti = /[\s\p{P}\p{S}]/u, fs = /[^\s\p{P}\p{S}]/u, cr = de(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ti).getRegex(), gs = /(?!~)[\p{P}\p{S}]/u, ur = /(?!~)[\s\p{P}\p{S}]/u, dr = /(?:[^\s\p{P}\p{S}]|~)/u, hr = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, ms = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, pr = de(ms, "u").replace(/punct/g, ti).getRegex(), fr = de(ms, "u").replace(/punct/g, gs).getRegex(), bs = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", gr = de(bs, "gu").replace(/notPunctSpace/g, fs).replace(/punctSpace/g, Ti).replace(/punct/g, ti).getRegex(), mr = de(bs, "gu").replace(/notPunctSpace/g, dr).replace(/punctSpace/g, ur).replace(/punct/g, gs).getRegex(), br = de("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, fs).replace(/punctSpace/g, Ti).replace(/punct/g, ti).getRegex(), yr = de(/\\(punct)/, "gu").replace(/punct/g, ti).getRegex(), vr = de(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), wr = de(Si).replace("(?:-->|$)", "-->").getRegex(), xr = de("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", wr).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Gt = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, _r = de(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Gt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ys = de(/^!?\[(label)\]\[(ref)\]/).replace("label", Gt).replace("ref", ki).getRegex(), vs = de(/^!?\[(ref)\](?:\[\])?/).replace("ref", ki).getRegex(), kr = de("reflink|nolink(?!\\()", "g").replace("reflink", ys).replace("nolink", vs).getRegex(), Li = {
5294
+ }, ar = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, or = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ps = /^( {2,}|\\)\n(?!\s*$)/, lr = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ti = /[\p{P}\p{S}]/u, Ti = /[\s\p{P}\p{S}]/u, fs = /[^\s\p{P}\p{S}]/u, cr = de(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ti).getRegex(), gs = /(?!~)[\p{P}\p{S}]/u, ur = /(?!~)[\s\p{P}\p{S}]/u, dr = /(?:[^\s\p{P}\p{S}]|~)/u, hr = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, ms = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, pr = de(ms, "u").replace(/punct/g, ti).getRegex(), fr = de(ms, "u").replace(/punct/g, gs).getRegex(), bs = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", gr = de(bs, "gu").replace(/notPunctSpace/g, fs).replace(/punctSpace/g, Ti).replace(/punct/g, ti).getRegex(), mr = de(bs, "gu").replace(/notPunctSpace/g, dr).replace(/punctSpace/g, ur).replace(/punct/g, gs).getRegex(), br = de("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, fs).replace(/punctSpace/g, Ti).replace(/punct/g, ti).getRegex(), yr = de(/\\(punct)/, "gu").replace(/punct/g, ti).getRegex(), vr = de(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), wr = de(Si).replace("(?:-->|$)", "-->").getRegex(), xr = de("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", wr).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Gt = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, _r = de(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Gt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ys = de(/^!?\[(label)\]\[(ref)\]/).replace("label", Gt).replace("ref", ki).getRegex(), vs = de(/^!?\[(ref)\](?:\[\])?/).replace("ref", ki).getRegex(), kr = de("reflink|nolink(?!\\()", "g").replace("reflink", ys).replace("nolink", vs).getRegex(), Ci = {
5295
5295
  _backpedal: bt,
5296
5296
  // only used for GFM url
5297
5297
  anyPunctuation: yr,
@@ -5313,11 +5313,11 @@ const Be = {
5313
5313
  text: lr,
5314
5314
  url: bt
5315
5315
  }, Sr = {
5316
- ...Li,
5316
+ ...Ci,
5317
5317
  link: de(/^!?\[(label)\]\((.*?)\)/).replace("label", Gt).getRegex(),
5318
5318
  reflink: de(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Gt).getRegex()
5319
5319
  }, fi = {
5320
- ...Li,
5320
+ ...Ci,
5321
5321
  emStrongRDelimAst: mr,
5322
5322
  emStrongLDelim: fr,
5323
5323
  url: de(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
@@ -5328,12 +5328,12 @@ const Be = {
5328
5328
  ...fi,
5329
5329
  br: de(ps).replace("{2,}", "*").getRegex(),
5330
5330
  text: de(fi.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
5331
- }, Dt = {
5331
+ }, Pt = {
5332
5332
  normal: Ei,
5333
5333
  gfm: nr,
5334
5334
  pedantic: rr
5335
5335
  }, ft = {
5336
- normal: Li,
5336
+ normal: Ci,
5337
5337
  gfm: fi,
5338
5338
  breaks: Er,
5339
5339
  pedantic: Sr
@@ -5387,7 +5387,7 @@ function gt(u, e, t) {
5387
5387
  i++;
5388
5388
  return u.slice(0, s - i);
5389
5389
  }
5390
- function Lr(u, e) {
5390
+ function Cr(u, e) {
5391
5391
  if (u.indexOf(e[1]) === -1)
5392
5392
  return -1;
5393
5393
  let t = 0;
@@ -5413,7 +5413,7 @@ function is(u, e, t, s, i) {
5413
5413
  };
5414
5414
  return s.state.inLink = !1, l;
5415
5415
  }
5416
- function Cr(u, e, t) {
5416
+ function Lr(u, e, t) {
5417
5417
  const s = u.match(t.other.indentCodeCompensation);
5418
5418
  if (s === null)
5419
5419
  return e;
@@ -5461,7 +5461,7 @@ class Xt {
5461
5461
  fences(e) {
5462
5462
  const t = this.rules.block.fences.exec(e);
5463
5463
  if (t) {
5464
- const s = t[0], i = Cr(s, t[3] || "", this.rules);
5464
+ const s = t[0], i = Lr(s, t[3] || "", this.rules);
5465
5465
  return {
5466
5466
  type: "code",
5467
5467
  raw: s,
@@ -5746,7 +5746,7 @@ ${o}` : o;
5746
5746
  if ((s.length - r.length) % 2 === 0)
5747
5747
  return;
5748
5748
  } else {
5749
- const r = Lr(t[2], "()");
5749
+ const r = Cr(t[2], "()");
5750
5750
  if (r === -2)
5751
5751
  return;
5752
5752
  if (r > -1) {
@@ -5926,17 +5926,17 @@ class Je {
5926
5926
  };
5927
5927
  const t = {
5928
5928
  other: Be,
5929
- block: Dt.normal,
5929
+ block: Pt.normal,
5930
5930
  inline: ft.normal
5931
5931
  };
5932
- this.options.pedantic ? (t.block = Dt.pedantic, t.inline = ft.pedantic) : this.options.gfm && (t.block = Dt.gfm, this.options.breaks ? t.inline = ft.breaks : t.inline = ft.gfm), this.tokenizer.rules = t;
5932
+ this.options.pedantic ? (t.block = Pt.pedantic, t.inline = ft.pedantic) : this.options.gfm && (t.block = Pt.gfm, this.options.breaks ? t.inline = ft.breaks : t.inline = ft.gfm), this.tokenizer.rules = t;
5933
5933
  }
5934
5934
  /**
5935
5935
  * Expose Rules
5936
5936
  */
5937
5937
  static get rules() {
5938
5938
  return {
5939
- block: Dt,
5939
+ block: Pt,
5940
5940
  inline: ft
5941
5941
  };
5942
5942
  }
@@ -6289,7 +6289,7 @@ ${e}</tr>
6289
6289
  return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : Ke(e.text);
6290
6290
  }
6291
6291
  }
6292
- class Ci {
6292
+ class Li {
6293
6293
  // no need for block level renderers
6294
6294
  strong({ text: e }) {
6295
6295
  return e;
@@ -6324,7 +6324,7 @@ class Ze {
6324
6324
  renderer;
6325
6325
  textRenderer;
6326
6326
  constructor(e) {
6327
- this.options = e || ot, this.options.renderer = this.options.renderer || new Jt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Ci();
6327
+ this.options = e || ot, this.options.renderer = this.options.renderer || new Jt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Li();
6328
6328
  }
6329
6329
  /**
6330
6330
  * Static Parse Method
@@ -6529,7 +6529,7 @@ class Or {
6529
6529
  parseInline = this.parseMarkdown(!1);
6530
6530
  Parser = Ze;
6531
6531
  Renderer = Jt;
6532
- TextRenderer = Ci;
6532
+ TextRenderer = Li;
6533
6533
  Lexer = Je;
6534
6534
  Tokenizer = Xt;
6535
6535
  Hooks = Ut;
@@ -6713,7 +6713,7 @@ oe.parseInline = at.parseInline;
6713
6713
  oe.Parser = Ze;
6714
6714
  oe.parser = Ze.parse;
6715
6715
  oe.Renderer = Jt;
6716
- oe.TextRenderer = Ci;
6716
+ oe.TextRenderer = Li;
6717
6717
  oe.Lexer = Je;
6718
6718
  oe.lexer = Je.lex;
6719
6719
  oe.Tokenizer = Xt;
@@ -8384,8 +8384,8 @@ Check the information and return the details.
8384
8384
  const v = await new Promise((_, f) => {
8385
8385
  const y = new FileReader();
8386
8386
  y.onload = (k) => {
8387
- const C = k.target.result.split(",")[1];
8388
- _(C);
8387
+ const L = k.target.result.split(",")[1];
8388
+ _(L);
8389
8389
  }, y.onerror = f, y.readAsDataURL(m);
8390
8390
  });
8391
8391
  c.push({
@@ -8447,26 +8447,26 @@ Check the information and return the details.
8447
8447
  } = this.getDimension(x);
8448
8448
  S = U, b = J;
8449
8449
  }
8450
- let v = e.color1_red, _ = e.color1_green, f = e.color1_blue, y = e.color2_red, k = e.color2_green, C = e.color2_blue, T = e.color3_red, A = e.color3_green, M = e.color3_blue, B = e.color4_red, D = e.color4_green, P = e.color4_blue, q = e.color5_red, R = e.color5_green, I = e.color5_blue, E = [];
8450
+ let v = e.color1_red, _ = e.color1_green, f = e.color1_blue, y = e.color2_red, k = e.color2_green, L = e.color2_blue, T = e.color3_red, A = e.color3_green, R = e.color3_blue, B = e.color4_red, P = e.color4_green, D = e.color4_blue, M = e.color5_red, q = e.color5_green, I = e.color5_blue, E = [];
8451
8451
  v && _ && f && !(v === "0" && _ === "0" && f === "0") && E.push({
8452
8452
  r: v,
8453
8453
  g: _,
8454
8454
  b: f
8455
- }), y && k && C && !(y === "0" && k === "0" && C === "0") && E.push({
8455
+ }), y && k && L && !(y === "0" && k === "0" && L === "0") && E.push({
8456
8456
  r: y,
8457
8457
  g: k,
8458
- b: C
8459
- }), T && A && M && !(T === "0" && A === "0" && M === "0") && E.push({
8458
+ b: L
8459
+ }), T && A && R && !(T === "0" && A === "0" && R === "0") && E.push({
8460
8460
  r: T,
8461
8461
  g: A,
8462
- b: M
8463
- }), B && D && P && !(B === "0" && D === "0" && P === "0") && E.push({
8462
+ b: R
8463
+ }), B && P && D && !(B === "0" && P === "0" && D === "0") && E.push({
8464
8464
  r: B,
8465
- g: D,
8466
- b: P
8467
- }), q && R && I && !(q === "0" && R === "0" && I === "0") && E.push({
8468
- r: q,
8469
- g: R,
8465
+ g: P,
8466
+ b: D
8467
+ }), M && q && I && !(M === "0" && q === "0" && I === "0") && E.push({
8468
+ r: M,
8469
+ g: q,
8470
8470
  b: I
8471
8471
  });
8472
8472
  let H = await (async () => {
@@ -8578,25 +8578,25 @@ Check the information and return the details.
8578
8578
  };
8579
8579
  let S = e.width || 1280, b = e.height || 768, x = e.num_images || 1;
8580
8580
  x > 4 && (x = 4);
8581
- let m = e.style || "any", v = e.style_id || this.builder.settings._2dIllustrationStyleId, _ = e.color1_red, f = e.color1_green, y = e.color1_blue, k = e.color2_red, C = e.color2_green, T = e.color2_blue, A = e.color3_red, M = e.color3_green, B = e.color3_blue, D = e.color4_red, P = e.color4_green, q = e.color4_blue, R = e.color5_red, I = e.color5_green, E = e.color5_blue, $ = [];
8581
+ let m = e.style || "any", v = e.style_id || this.builder.settings._2dIllustrationStyleId, _ = e.color1_red, f = e.color1_green, y = e.color1_blue, k = e.color2_red, L = e.color2_green, T = e.color2_blue, A = e.color3_red, R = e.color3_green, B = e.color3_blue, P = e.color4_red, D = e.color4_green, M = e.color4_blue, q = e.color5_red, I = e.color5_green, E = e.color5_blue, $ = [];
8582
8582
  _ && f && y && !(_ === "0" && f === "0" && y === "0") && $.push({
8583
8583
  r: _,
8584
8584
  g: f,
8585
8585
  b: y
8586
- }), k && C && T && !(k === "0" && C === "0" && T === "0") && $.push({
8586
+ }), k && L && T && !(k === "0" && L === "0" && T === "0") && $.push({
8587
8587
  r: k,
8588
- g: C,
8588
+ g: L,
8589
8589
  b: T
8590
- }), A && M && B && !(A === "0" && M === "0" && B === "0") && $.push({
8590
+ }), A && R && B && !(A === "0" && R === "0" && B === "0") && $.push({
8591
8591
  r: A,
8592
- g: M,
8592
+ g: R,
8593
8593
  b: B
8594
- }), D && P && q && !(D === "0" && P === "0" && q === "0") && $.push({
8595
- r: D,
8596
- g: P,
8597
- b: q
8598
- }), R && I && E && !(R === "0" && I === "0" && E === "0") && $.push({
8599
- r: R,
8594
+ }), P && D && M && !(P === "0" && D === "0" && M === "0") && $.push({
8595
+ r: P,
8596
+ g: D,
8597
+ b: M
8598
+ }), q && I && E && !(q === "0" && I === "0" && E === "0") && $.push({
8599
+ r: q,
8600
8600
  g: I,
8601
8601
  b: E
8602
8602
  }), n = {
@@ -8627,26 +8627,26 @@ Check the information and return the details.
8627
8627
  };
8628
8628
  let S = e.width || 1280, b = e.height || 768, x = e.num_images || 1;
8629
8629
  x > 4 && (x = 4);
8630
- let m = e.style || "digital_illustration", v = e.color1_red, _ = e.color1_green, f = e.color1_blue, y = e.color2_red, k = e.color2_green, C = e.color2_blue, T = e.color3_red, A = e.color3_green, M = e.color3_blue, B = e.color4_red, D = e.color4_green, P = e.color4_blue, q = e.color5_red, R = e.color5_green, I = e.color5_blue, E = [];
8630
+ let m = e.style || "digital_illustration", v = e.color1_red, _ = e.color1_green, f = e.color1_blue, y = e.color2_red, k = e.color2_green, L = e.color2_blue, T = e.color3_red, A = e.color3_green, R = e.color3_blue, B = e.color4_red, P = e.color4_green, D = e.color4_blue, M = e.color5_red, q = e.color5_green, I = e.color5_blue, E = [];
8631
8631
  v && _ && f && !(v === "0" && _ === "0" && f === "0") && E.push({
8632
8632
  r: v,
8633
8633
  g: _,
8634
8634
  b: f
8635
- }), y && k && C && !(y === "0" && k === "0" && C === "0") && E.push({
8635
+ }), y && k && L && !(y === "0" && k === "0" && L === "0") && E.push({
8636
8636
  r: y,
8637
8637
  g: k,
8638
- b: C
8639
- }), T && A && M && !(T === "0" && A === "0" && M === "0") && E.push({
8638
+ b: L
8639
+ }), T && A && R && !(T === "0" && A === "0" && R === "0") && E.push({
8640
8640
  r: T,
8641
8641
  g: A,
8642
- b: M
8643
- }), B && D && P && !(B === "0" && D === "0" && P === "0") && E.push({
8642
+ b: R
8643
+ }), B && P && D && !(B === "0" && P === "0" && D === "0") && E.push({
8644
8644
  r: B,
8645
- g: D,
8646
- b: P
8647
- }), q && R && I && !(q === "0" && R === "0" && I === "0") && E.push({
8648
- r: q,
8649
- g: R,
8645
+ g: P,
8646
+ b: D
8647
+ }), M && q && I && !(M === "0" && q === "0" && I === "0") && E.push({
8648
+ r: M,
8649
+ g: q,
8650
8650
  b: I
8651
8651
  }), n = {
8652
8652
  prompt: w,
@@ -8676,26 +8676,26 @@ Check the information and return the details.
8676
8676
  };
8677
8677
  let S = e.width || 1024, b = e.height || 1365, x = e.num_images || 1;
8678
8678
  x > 4 && (x = 1);
8679
- let m = "digital_illustration/cover", v = e.color1_red, _ = e.color1_green, f = e.color1_blue, y = e.color2_red, k = e.color2_green, C = e.color2_blue, T = e.color3_red, A = e.color3_green, M = e.color3_blue, B = e.color4_red, D = e.color4_green, P = e.color4_blue, q = e.color5_red, R = e.color5_green, I = e.color5_blue, E = [];
8679
+ let m = "digital_illustration/cover", v = e.color1_red, _ = e.color1_green, f = e.color1_blue, y = e.color2_red, k = e.color2_green, L = e.color2_blue, T = e.color3_red, A = e.color3_green, R = e.color3_blue, B = e.color4_red, P = e.color4_green, D = e.color4_blue, M = e.color5_red, q = e.color5_green, I = e.color5_blue, E = [];
8680
8680
  v && _ && f && !(v === "0" && _ === "0" && f === "0") && E.push({
8681
8681
  r: v,
8682
8682
  g: _,
8683
8683
  b: f
8684
- }), y && k && C && !(y === "0" && k === "0" && C === "0") && E.push({
8684
+ }), y && k && L && !(y === "0" && k === "0" && L === "0") && E.push({
8685
8685
  r: y,
8686
8686
  g: k,
8687
- b: C
8688
- }), T && A && M && !(T === "0" && A === "0" && M === "0") && E.push({
8687
+ b: L
8688
+ }), T && A && R && !(T === "0" && A === "0" && R === "0") && E.push({
8689
8689
  r: T,
8690
8690
  g: A,
8691
- b: M
8692
- }), B && D && P && !(B === "0" && D === "0" && P === "0") && E.push({
8691
+ b: R
8692
+ }), B && P && D && !(B === "0" && P === "0" && D === "0") && E.push({
8693
8693
  r: B,
8694
- g: D,
8695
- b: P
8696
- }), q && R && I && !(q === "0" && R === "0" && I === "0") && E.push({
8697
- r: q,
8698
- g: R,
8694
+ g: P,
8695
+ b: D
8696
+ }), M && q && I && !(M === "0" && q === "0" && I === "0") && E.push({
8697
+ r: M,
8698
+ g: q,
8699
8699
  b: I
8700
8700
  }), n = {
8701
8701
  prompt: w,
@@ -9294,7 +9294,7 @@ Check the information and return the details.
9294
9294
  return e;
9295
9295
  }
9296
9296
  }
9297
- class qr {
9297
+ class Mr {
9298
9298
  constructor(e = {}, t) {
9299
9299
  const s = {
9300
9300
  lang: []
@@ -9474,7 +9474,7 @@ class qr {
9474
9474
  return e;
9475
9475
  }
9476
9476
  }
9477
- class Rr {
9477
+ class qr {
9478
9478
  constructor(e, t = {}) {
9479
9479
  const s = {
9480
9480
  lang: []
@@ -9608,24 +9608,24 @@ class Rr {
9608
9608
  }, k.onload = () => {
9609
9609
  this.loaded();
9610
9610
  };
9611
- let C = null, T = null;
9611
+ let L = null, T = null;
9612
9612
  const A = () => {
9613
- g.width > 0 && g.height > 0 && (C = w.getImageData(0, 0, g.width, g.height), T = b.getImageData(0, 0, S.width, S.height));
9613
+ g.width > 0 && g.height > 0 && (L = w.getImageData(0, 0, g.width, g.height), T = b.getImageData(0, 0, S.width, S.height));
9614
9614
  const E = k.offsetWidth, $ = k.offsetHeight, H = window.devicePixelRatio || 1;
9615
9615
  g.width = E * H, g.height = $ * H, w.scale(H, H), g.style.width = `${E}px`, g.style.height = `${$}px`;
9616
9616
  const U = k.naturalWidth, J = k.naturalHeight;
9617
- if (S.width = U * H, S.height = J * H, b.scale(H, H), S.style.width = `${U}px`, S.style.height = `${J}px`, C) {
9617
+ if (S.width = U * H, S.height = J * H, b.scale(H, H), S.style.width = `${U}px`, S.style.height = `${J}px`, L) {
9618
9618
  const F = document.createElement("canvas");
9619
- F.width = C.width, F.height = C.height, F.getContext("2d").putImageData(C, 0, 0);
9619
+ F.width = L.width, F.height = L.height, F.getContext("2d").putImageData(L, 0, 0);
9620
9620
  const Q = document.createElement("canvas");
9621
- Q.width = T.width, Q.height = T.height, Q.getContext("2d").putImageData(T, 0, 0), w.drawImage(F, 0, 0, C.width, C.height, 0, 0, g.width, g.height), b.drawImage(Q, 0, 0, T.width, T.height, 0, 0, S.width, S.height);
9621
+ Q.width = T.width, Q.height = T.height, Q.getContext("2d").putImageData(T, 0, 0), w.drawImage(F, 0, 0, L.width, L.height, 0, 0, g.width, g.height), b.drawImage(Q, 0, 0, T.width, T.height, 0, 0, S.width, S.height);
9622
9622
  }
9623
9623
  };
9624
- let M = !1, B = parseInt(l.value, 10);
9624
+ let R = !1, B = parseInt(l.value, 10);
9625
9625
  l.addEventListener("input", (E) => {
9626
9626
  B = parseInt(E.target.value, 10);
9627
9627
  });
9628
- const D = (E) => {
9628
+ const P = (E) => {
9629
9629
  const $ = g.getBoundingClientRect();
9630
9630
  if (E.touches) {
9631
9631
  const H = E.touches[0];
@@ -9638,26 +9638,26 @@ class Rr {
9638
9638
  x: E.clientX - $.left,
9639
9639
  y: E.clientY - $.top
9640
9640
  };
9641
- }, P = (E) => {
9642
- M = !0, R(E);
9643
- }, q = () => {
9644
- M = !1, w.beginPath(), this.empty = !1, m(S);
9645
- }, R = (E) => {
9646
- if (!M) return;
9641
+ }, D = (E) => {
9642
+ R = !0, q(E);
9643
+ }, M = () => {
9644
+ R = !1, w.beginPath(), this.empty = !1, m(S);
9645
+ }, q = (E) => {
9646
+ if (!R) return;
9647
9647
  const {
9648
9648
  x: $,
9649
9649
  y: H
9650
- } = D(E), U = S.width / g.width, J = S.height / g.height, F = $ * U, ee = H * J;
9650
+ } = P(E), U = S.width / g.width, J = S.height / g.height, F = $ * U, ee = H * J;
9651
9651
  w.fillStyle = "rgb(255, 255, 255)", w.beginPath(), w.arc($, H, B / 2, 0, Math.PI * 2), w.fill(), b.fillStyle = "rgb(255, 255, 255)", b.beginPath(), b.arc(F, ee, B / 2 * U, 0, Math.PI * 2), b.fill();
9652
9652
  };
9653
- g.addEventListener("mousedown", P), g.addEventListener("mouseup", q), g.addEventListener("mousemove", R), g.addEventListener("touchstart", (E) => {
9654
- P(E), E.preventDefault();
9653
+ g.addEventListener("mousedown", D), g.addEventListener("mouseup", M), g.addEventListener("mousemove", q), g.addEventListener("touchstart", (E) => {
9654
+ D(E), E.preventDefault();
9655
9655
  }, {
9656
9656
  passive: !1
9657
9657
  }), g.addEventListener("touchend", (E) => {
9658
- q(), E.preventDefault();
9658
+ M(), E.preventDefault();
9659
9659
  }), g.addEventListener("touchmove", (E) => {
9660
- R(E), E.preventDefault();
9660
+ q(E), E.preventDefault();
9661
9661
  }, {
9662
9662
  passive: !1
9663
9663
  }), o.addEventListener("click", (E) => {
@@ -9675,7 +9675,7 @@ class Rr {
9675
9675
  });
9676
9676
  }
9677
9677
  }
9678
- class Mr {
9678
+ class Rr {
9679
9679
  constructor(e, t = {}) {
9680
9680
  const s = {
9681
9681
  lang: [],
@@ -9824,7 +9824,7 @@ class Mr {
9824
9824
  throw new Error("A valid DOM element is required.");
9825
9825
  e.classList.add("formview-container"), e.classList.add("fb-ui"), this.element = e, this.media = new Ar({
9826
9826
  lang: this.settings.lang
9827
- }, this), this.upload = new qr({
9827
+ }, this), this.upload = new Mr({
9828
9828
  lang: this.settings.lang
9829
9829
  }, this);
9830
9830
  }
@@ -10250,8 +10250,8 @@ class Mr {
10250
10250
  let b = this.getId();
10251
10251
  const x = document.createElement("label");
10252
10252
  if (x.setAttribute("for", `number_label_${b}`), x.className = "field-label", x.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), p.appendChild(x), o.fieldNote) {
10253
- const C = document.createElement("div");
10254
- C.className = "field-note", C.innerHTML = o.fieldNote, p.appendChild(C);
10253
+ const L = document.createElement("div");
10254
+ L.className = "field-note", L.innerHTML = o.fieldNote, p.appendChild(L);
10255
10255
  }
10256
10256
  const m = document.createElement("div");
10257
10257
  m.className = "slider-container", p.appendChild(m);
@@ -10283,10 +10283,10 @@ class Mr {
10283
10283
  y.setAttribute("for", `${b}_${_}`), y.className = "option-label", m.appendChild(y);
10284
10284
  const k = document.createElement("input");
10285
10285
  k.type = "radio", k.className = "peer", k.id = `${b}_${_}`, k.name = w, k.value = v, y.appendChild(k), _ === o.selected && (k.checked = !0);
10286
- const C = document.createElement("span");
10287
- C.className = "peer-span-rounded", y.appendChild(C);
10286
+ const L = document.createElement("span");
10287
+ L.className = "peer-span-rounded", y.appendChild(L);
10288
10288
  const T = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M12 7a5 5 0 1 1 -4.995 5.217l-.005 -.217l.005 -.217a5 5 0 0 1 4.995 -4.783z"></path></svg>';
10289
- C.innerHTML = T, _ === 0 && o.isRequired && k.setAttribute("required", "required");
10289
+ L.innerHTML = T, _ === 0 && o.isRequired && k.setAttribute("required", "required");
10290
10290
  const A = document.createElement("span");
10291
10291
  A.innerText = f, y.appendChild(A), k.addEventListener("change", this.changeListener);
10292
10292
  }), o.showOtherItem) {
@@ -10300,10 +10300,10 @@ class Mr {
10300
10300
  f.innerHTML = y;
10301
10301
  const k = document.createElement("span");
10302
10302
  k.innerText = o.otherText, v.appendChild(k);
10303
- const C = document.createElement("div");
10304
- p.appendChild(C);
10303
+ const L = document.createElement("div");
10304
+ p.appendChild(L);
10305
10305
  const T = document.createElement("input");
10306
- T.type = "text", T.name = w + "_other", T.className = "inp-base", C.appendChild(T), _.addEventListener("change", this.changeListener), T.addEventListener("input", this.inputListener);
10306
+ T.type = "text", T.name = w + "_other", T.className = "inp-base", L.appendChild(T), _.addEventListener("change", this.changeListener), T.addEventListener("input", this.inputListener);
10307
10307
  }
10308
10308
  }
10309
10309
  if (g === "multi-select") {
@@ -10321,12 +10321,12 @@ class Mr {
10321
10321
  y.setAttribute("for", `${b}_${_}`), y.className = "option-label", m.appendChild(y);
10322
10322
  const k = document.createElement("input");
10323
10323
  k.type = "checkbox", k.className = "peer", k.id = `${b}_${_}`, k.name = w + "[]", k.value = v, y.appendChild(k);
10324
- const C = document.createElement("span");
10325
- C.className = "peer-span-square", y.appendChild(C);
10324
+ const L = document.createElement("span");
10325
+ L.className = "peer-span-square", y.appendChild(L);
10326
10326
  const T = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round">
10327
10327
  <path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M5 12l5 5l10 -10" />
10328
10328
  </svg>`;
10329
- C.innerHTML = T;
10329
+ L.innerHTML = T;
10330
10330
  const A = document.createElement("span");
10331
10331
  A.innerText = f, y.appendChild(A), k.addEventListener("change", this.changeListener);
10332
10332
  }), o.showOtherItem) {
@@ -10342,10 +10342,10 @@ class Mr {
10342
10342
  f.innerHTML = y;
10343
10343
  const k = document.createElement("span");
10344
10344
  k.innerText = o.otherText, v.appendChild(k);
10345
- const C = document.createElement("div");
10346
- p.appendChild(C);
10345
+ const L = document.createElement("div");
10346
+ p.appendChild(L);
10347
10347
  const T = document.createElement("input");
10348
- T.type = "text", T.name = w + "_other", T.className = "inp-base", C.appendChild(T), _.addEventListener("change", this.changeListener), T.addEventListener("input", this.inputListener);
10348
+ T.type = "text", T.name = w + "_other", T.className = "inp-base", L.appendChild(T), _.addEventListener("change", this.changeListener), T.addEventListener("input", this.inputListener);
10349
10349
  }
10350
10350
  }
10351
10351
  if (g === "switch") {
@@ -10389,11 +10389,11 @@ class Mr {
10389
10389
  const _ = document.createElement("select");
10390
10390
  _.id = `dropdown_${b}`, _.name = w, o.isRequired && _.setAttribute("required", "required"), v.appendChild(_);
10391
10391
  const f = document.createElement("option");
10392
- if (f.setAttribute("selected", "selected"), f.setAttribute("disabled", "disabled"), f.value = "", f.innerText = o.placeholder, _.appendChild(f), o.choices && o.choices.forEach((A, M) => {
10392
+ if (f.setAttribute("selected", "selected"), f.setAttribute("disabled", "disabled"), f.value = "", f.innerText = o.placeholder, _.appendChild(f), o.choices && o.choices.forEach((A, R) => {
10393
10393
  let B = A;
10394
- o.choicesText && (B = o.choicesText[M] || A);
10395
- const D = document.createElement("option");
10396
- D.value = A, D.innerText = B, _.appendChild(D), M === o.selected && (f.remove(), D.setAttribute("selected", "selected"));
10394
+ o.choicesText && (B = o.choicesText[R] || A);
10395
+ const P = document.createElement("option");
10396
+ P.value = A, P.innerText = B, _.appendChild(P), R === o.selected && (f.remove(), P.setAttribute("selected", "selected"));
10397
10397
  }), o.showOtherItem) {
10398
10398
  const A = document.createElement("option");
10399
10399
  A.value = "other", A.innerText = o.otherText, _.appendChild(A);
@@ -10406,9 +10406,9 @@ class Mr {
10406
10406
  `);
10407
10407
  const k = document.createElement("input");
10408
10408
  k.type = "text", k.id = `input_other_${b}`, k.name = w + "_other", k.className = "input-other hidden inp-base", p.appendChild(k);
10409
- const C = p.querySelector(`#dropdown_${b}`), T = p.querySelector(`#input_other_${b}`);
10410
- C.addEventListener("change", () => {
10411
- C.value === "other" ? (T.classList.remove("hidden"), T.focus()) : T.classList.add("hidden");
10409
+ const L = p.querySelector(`#dropdown_${b}`), T = p.querySelector(`#input_other_${b}`);
10410
+ L.addEventListener("change", () => {
10411
+ L.value === "other" ? (T.classList.remove("hidden"), T.focus()) : T.classList.add("hidden");
10412
10412
  const A = this.getFormValues();
10413
10413
  this.settings.onInputChange && this.settings.onInputChange(A);
10414
10414
  }), k.addEventListener("input", this.inputListener);
@@ -10475,13 +10475,13 @@ class Mr {
10475
10475
  y.className = "file-controls", y.id = `drag_message_${b}`, m.appendChild(y);
10476
10476
  let k;
10477
10477
  (!o.source || o.source && o.source === "local" || o.source && o.source === "local_and_camera") && (k = document.createElement("div"), k.className = "file-drop-info", g === "file" && (k.innerHTML = this.out(this.settings.fileUploadText)), g === "multifile" && (k.innerHTML = this.out(this.settings.multiFileUploadText)), y.appendChild(k));
10478
- let C;
10479
- (!o.source || o.source && o.source === "local" || o.source && o.source === "local_and_camera") && (C = document.createElement("button"), C.className = "btn-selectfile", C.innerHTML = `
10478
+ let L;
10479
+ (!o.source || o.source && o.source === "local" || o.source && o.source === "local_and_camera") && (L = document.createElement("button"), L.className = "btn-selectfile", L.innerHTML = `
10480
10480
  <svg style="fill:none"xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" class="icon-folder-open"><path stroke="none" d="M0 0h24v24H0z" fill="none"/>
10481
10481
  <path d="M5 19l2.757 -7.351a1 1 0 0 1 .936 -.649h12.307a1 1 0 0 1 .986 1.164l-.996 5.211a2 2 0 0 1 -1.964 1.625h-14.026a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v2" />
10482
10482
  </svg>
10483
10483
  ${this.out("Select File")}
10484
- `, y.appendChild(C));
10484
+ `, y.appendChild(L));
10485
10485
  let T;
10486
10486
  (o.source && o.source === "camera" || o.source && o.source === "local_and_camera") && (T = document.createElement("button"), T.className = "btn-takephoto", T.innerHTML = `
10487
10487
  <svg style="fill:none"xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" class="icon-camera">
@@ -10491,8 +10491,8 @@ class Mr {
10491
10491
  `, y.appendChild(T));
10492
10492
  const A = document.createElement("div");
10493
10493
  A.className = "file-preview-container", m.appendChild(A);
10494
- const M = document.createElement("div");
10495
- M.className = "file-drop-info-highlight", M.id = `file_name_${b}`, m.appendChild(M), C && C.addEventListener("click", (N) => {
10494
+ const R = document.createElement("div");
10495
+ R.className = "file-drop-info-highlight", R.id = `file_name_${b}`, m.appendChild(R), L && L.addEventListener("click", (N) => {
10496
10496
  N.preventDefault(), _.click();
10497
10497
  }), m.classList.add("disabledrop"), (!o.source || o.source && o.source === "local" || o.source && o.source === "local_and_camera") && (m.classList.remove("disabledrop"), m.addEventListener("dragover", (N) => {
10498
10498
  N.preventDefault(), Array.from(N.dataTransfer.items).some((ie) => ie.kind === "file") && m.classList.add("drag-over");
@@ -10589,41 +10589,41 @@ class Mr {
10589
10589
  extensions: ".rar"
10590
10590
  }]
10591
10591
  };
10592
- let D = [];
10592
+ let P = [];
10593
10593
  (o.allowedFileTypes || ["images", "videos", "audio", "documents", "others"]).forEach((N) => {
10594
10594
  switch (N) {
10595
10595
  case "images":
10596
- D = D.concat(B.images);
10596
+ P = P.concat(B.images);
10597
10597
  break;
10598
10598
  case "videos":
10599
- D = D.concat(B.videos);
10599
+ P = P.concat(B.videos);
10600
10600
  break;
10601
10601
  case "audio":
10602
- D = D.concat(B.audio);
10602
+ P = P.concat(B.audio);
10603
10603
  break;
10604
10604
  case "documents":
10605
- D = D.concat(B.documents);
10605
+ P = P.concat(B.documents);
10606
10606
  break;
10607
10607
  case "others":
10608
- D = D.concat(B.others);
10608
+ P = P.concat(B.others);
10609
10609
  break;
10610
10610
  }
10611
10611
  });
10612
- const q = D.map((N) => N.type).join(",");
10613
- _.setAttribute("accept", q);
10614
- let R;
10612
+ const M = P.map((N) => N.type).join(",");
10613
+ _.setAttribute("accept", M);
10614
+ let q;
10615
10615
  if (o.useImageMask) {
10616
10616
  p.classList.add("image-mask");
10617
10617
  const N = document.createElement("div");
10618
- p.appendChild(N), R = new Rr(N, {
10618
+ p.appendChild(N), q = new qr(N, {
10619
10619
  lang: this.settings.lang,
10620
10620
  name: w + "_mask"
10621
- }), this.objImageMask = R;
10621
+ }), this.objImageMask = q;
10622
10622
  }
10623
10623
  o.largePreview && p.classList.add("large-preview");
10624
10624
  const I = () => {
10625
10625
  const N = m.querySelector(".img-preview");
10626
- N && (N.remove(), o.useImageMask && R.clearImage());
10626
+ N && (N.remove(), o.useImageMask && q.clearImage());
10627
10627
  };
10628
10628
  let E = `
10629
10629
  <div class="div-livevideo">
@@ -10663,7 +10663,7 @@ class Mr {
10663
10663
  this.photoBlob = {};
10664
10664
  let he;
10665
10665
  U && U.addEventListener("click", (N) => {
10666
- N.preventDefault(), C.click();
10666
+ N.preventDefault(), L.click();
10667
10667
  });
10668
10668
  const Ee = async () => {
10669
10669
  const N = p.querySelector(".btn-clearfile");
@@ -10673,10 +10673,10 @@ class Mr {
10673
10673
  video: !0
10674
10674
  }), $.srcObject = he;
10675
10675
  } catch {
10676
- alert("Unable to access the camera."), $.style.display = "none", F.style.display = "none", Q.style.display = "none", y.style.display = "none", M.style.display = "none";
10676
+ alert("Unable to access the camera."), $.style.display = "none", F.style.display = "none", Q.style.display = "none", y.style.display = "none", R.style.display = "none";
10677
10677
  }
10678
10678
  setTimeout(() => {
10679
- J.style.display = "none", H.style.display = "none", $.style.display = "", F.style.display = "", ee.style.display = "none", U && (U.style.display = "none"), J.style.display = "none", Q.style.display = "", y.style.display = "none", M.style.display = "none";
10679
+ J.style.display = "none", H.style.display = "none", $.style.display = "", F.style.display = "", ee.style.display = "none", U && (U.style.display = "none"), J.style.display = "none", Q.style.display = "", y.style.display = "none", R.style.display = "none";
10680
10680
  }, 100);
10681
10681
  };
10682
10682
  T && T.addEventListener("click", async (N) => {
@@ -10684,46 +10684,46 @@ class Mr {
10684
10684
  }), J.addEventListener("click", async (N) => {
10685
10685
  N.preventDefault(), Ee();
10686
10686
  }), Q.addEventListener("click", () => {
10687
- he && he.getTracks().forEach((N) => N.stop()), $.style.display = "none", F.style.display = "none", Q.style.display = "none", J.style.display = "none", y.style.display = "", M.style.display = "";
10687
+ he && he.getTracks().forEach((N) => N.stop()), $.style.display = "none", F.style.display = "none", Q.style.display = "none", J.style.display = "none", y.style.display = "", R.style.display = "";
10688
10688
  }), F.addEventListener("click", (N) => {
10689
10689
  if (N.preventDefault(), H.style.display = "", H.width = $.videoWidth, H.height = $.videoHeight, H.getContext("2d").drawImage($, 0, 0, H.width, H.height), he.getTracks().forEach((G) => G.stop()), $.style.display = "none", F.style.display = "none", ee.style.display = "", U && (U.style.display = ""), J.style.display = "", Q.style.display = "none", H.toBlob((G) => {
10690
10690
  this.photoBlob[w] = G, _.removeAttribute("required");
10691
10691
  }, "image/jpeg"), J.style.display = "", o.useImageMask) {
10692
10692
  const G = H.toDataURL("image/jpeg");
10693
- R.setImage(G);
10693
+ q.setImage(G);
10694
10694
  }
10695
10695
  this.clearSelectedFiles();
10696
10696
  });
10697
10697
  const me = () => {
10698
- this.photoBlob[w] = null, H.style.display = "none", H.getContext("2d").clearRect(0, 0, H.width, H.height), v.value !== "" ? o.isRequired && _.removeAttribute("required") : o.isRequired && _.setAttribute("required", "required"), ee.style.display = "none", U && (U.style.display = "none"), J.style.display = "none", y.style.display = "", M.style.display = "";
10698
+ this.photoBlob[w] = null, H.style.display = "none", H.getContext("2d").clearRect(0, 0, H.width, H.height), v.value !== "" ? o.isRequired && _.removeAttribute("required") : o.isRequired && _.setAttribute("required", "required"), ee.style.display = "none", U && (U.style.display = "none"), J.style.display = "none", y.style.display = "", R.style.display = "";
10699
10699
  };
10700
10700
  ee.addEventListener("click", () => {
10701
10701
  me();
10702
10702
  });
10703
10703
  const Te = (N, G) => {
10704
10704
  const ie = `.${N.split(".").pop().toLowerCase()}`;
10705
- if (!D.some((Y) => Y.extensions.split(", ").includes(ie)))
10705
+ if (!P.some((Y) => Y.extensions.split(", ").includes(ie)))
10706
10706
  return;
10707
10707
  let fe = B.images.some((Y) => Y.extensions.split(", ").includes(ie));
10708
10708
  if (o.useImageMask) {
10709
10709
  if (!fe)
10710
10710
  return;
10711
- R.loadUrl(N);
10711
+ q.loadUrl(N);
10712
10712
  }
10713
- me(), M.innerHTML = "";
10713
+ me(), R.innerHTML = "";
10714
10714
  const le = document.createElement("div");
10715
- M.appendChild(le);
10715
+ R.appendChild(le);
10716
10716
  const se = document.createElement("button");
10717
10717
  if (se.className = "btn-clearfile", se.innerHTML = `
10718
10718
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round">
10719
10719
  <path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M19 20h-10.5l-4.21 -4.3a1 1 0 0 1 0 -1.41l10 -10a1 1 0 0 1 1.41 0l5 5a1 1 0 0 1 0 1.41l-9.2 9.3" /><path d="M18 13.3l-6.3 -6.3" />
10720
10720
  </svg>
10721
- `, M.appendChild(se), se.addEventListener("click", (Y) => {
10721
+ `, R.appendChild(se), se.addEventListener("click", (Y) => {
10722
10722
  let pe = se.closest(".form-field").querySelector(".img-preview");
10723
- pe && pe.remove(), v.value = "", _.value = "", M.innerHTML = "", k.innerText = this.out(this.settings.fileUploadText), o.useImageMask && R.clearImage();
10724
- const qe = document.querySelector(".formview-container .submit-container");
10725
- qe && setTimeout(() => {
10726
- this.stickyElement(qe);
10723
+ pe && pe.remove(), v.value = "", _.value = "", R.innerHTML = "", k.innerText = this.out(this.settings.fileUploadText), o.useImageMask && q.clearImage();
10724
+ const Me = document.querySelector(".formview-container .submit-container");
10725
+ Me && setTimeout(() => {
10726
+ this.stickyElement(Me);
10727
10727
  }, 1e3), Y.preventDefault(), Y.stopImmediatePropagation();
10728
10728
  }), fe) {
10729
10729
  let Y = m.querySelector(".formview-container .img-preview");
@@ -10742,7 +10742,7 @@ class Mr {
10742
10742
  o.value && Te(o.value, !0);
10743
10743
  const ye = (N) => {
10744
10744
  if (N) {
10745
- if (!D.some((se) => se.type === N.type)) {
10745
+ if (!P.some((se) => se.type === N.type)) {
10746
10746
  alert(this.out("Invalid file type."));
10747
10747
  return;
10748
10748
  }
@@ -10751,19 +10751,19 @@ class Mr {
10751
10751
  alert(this.out("Invalid file type."));
10752
10752
  return;
10753
10753
  }
10754
- R.loadImage(N);
10754
+ q.loadImage(N);
10755
10755
  }
10756
- me(), v.value = "", M.innerHTML = "";
10756
+ me(), v.value = "", R.innerHTML = "";
10757
10757
  const ie = document.createElement("div");
10758
- ie.innerText = N.name, M.appendChild(ie);
10758
+ ie.innerText = N.name, R.appendChild(ie);
10759
10759
  const ce = document.createElement("button");
10760
10760
  if (ce.className = "btn-clearfile", ce.innerHTML = `
10761
10761
  <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
10762
10762
  <path stroke-linecap="round" stroke-linejoin="round" d="m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0" />
10763
10763
  </svg>
10764
- `, M.appendChild(ce), ce.addEventListener("click", (se) => {
10764
+ `, R.appendChild(ce), ce.addEventListener("click", (se) => {
10765
10765
  let Y = ce.closest(".form-field").querySelector(".img-preview");
10766
- Y && Y.remove(), _.value = "", M.innerHTML = "", k.innerText = this.out(this.settings.fileUploadText), o.useImageMask && R.clearImage();
10766
+ Y && Y.remove(), _.value = "", R.innerHTML = "", k.innerText = this.out(this.settings.fileUploadText), o.useImageMask && q.clearImage();
10767
10767
  const Se = document.querySelector(".formview-container .submit-container");
10768
10768
  Se && setTimeout(() => {
10769
10769
  this.stickyElement(Se);
@@ -10785,7 +10785,7 @@ class Mr {
10785
10785
  }
10786
10786
  }, re = (N) => {
10787
10787
  if (N) {
10788
- if (D = D.concat(B.images), !D.some((Y) => Y.type === N.type)) {
10788
+ if (P = P.concat(B.images), !P.some((Y) => Y.type === N.type)) {
10789
10789
  alert(this.out("Invalid file type."));
10790
10790
  return;
10791
10791
  }
@@ -10803,14 +10803,14 @@ class Mr {
10803
10803
  `, ce.appendChild(le), le.addEventListener("click", (Y) => {
10804
10804
  const Se = le.closest(".image-item");
10805
10805
  Se && Se.remove(), ((ne) => {
10806
- const De = new DataTransfer(), Ce = _.files;
10807
- Array.from(Ce).forEach((Pe) => {
10808
- Pe !== ne && De.items.add(Pe);
10809
- }), _.files = De.files;
10806
+ const Pe = new DataTransfer(), Le = _.files;
10807
+ Array.from(Le).forEach((De) => {
10808
+ De !== ne && Pe.items.add(De);
10809
+ }), _.files = Pe.files;
10810
10810
  })(N);
10811
- const qe = document.querySelector(".formview-container .submit-container");
10812
- qe && setTimeout(() => {
10813
- this.stickyElement(qe);
10811
+ const Me = document.querySelector(".formview-container .submit-container");
10812
+ Me && setTimeout(() => {
10813
+ this.stickyElement(Me);
10814
10814
  }, 1e3), Y.preventDefault(), Y.stopImmediatePropagation();
10815
10815
  }), N.type.startsWith("image/")) {
10816
10816
  const Y = new FileReader();
@@ -10915,15 +10915,15 @@ class Mr {
10915
10915
  if ("hideReset" in t && (m = t.hideReset), !m) {
10916
10916
  const k = document.createElement("button");
10917
10917
  k.className = "btn-resetform";
10918
- const C = t.resetText || this.settings.resetText;
10919
- k.innerText = C, x.appendChild(k), k.addEventListener("click", (A) => {
10918
+ const L = t.resetText || this.settings.resetText;
10919
+ k.innerText = L, x.appendChild(k), k.addEventListener("click", (A) => {
10920
10920
  A.preventDefault();
10921
- const M = k.closest("form");
10922
- M && (M.reset(), M.querySelectorAll(".btn-clearfile").forEach((P) => {
10923
- P.click();
10924
- }), M.querySelectorAll(".slider-container").forEach((P) => {
10925
- const q = P.querySelector("input");
10926
- P.querySelector(".current-value").textContent = q.value;
10921
+ const R = k.closest("form");
10922
+ R && (R.reset(), R.querySelectorAll(".btn-clearfile").forEach((D) => {
10923
+ D.click();
10924
+ }), R.querySelectorAll(".slider-container").forEach((D) => {
10925
+ const M = D.querySelector("input");
10926
+ D.querySelector(".current-value").textContent = M.value;
10927
10927
  }));
10928
10928
  }), (t.fullWidthButton || !1) && k.classList.add("w-full");
10929
10929
  }
@@ -11387,14 +11387,14 @@ ${e}`);
11387
11387
  if (v.provider === "google") {
11388
11388
  for (const y of h)
11389
11389
  if (y.value instanceof FileList && y.value.length > 0) {
11390
- const C = y.value[0];
11391
- if (!C) continue;
11392
- const T = await new Promise((A, M) => {
11390
+ const L = y.value[0];
11391
+ if (!L) continue;
11392
+ const T = await new Promise((A, R) => {
11393
11393
  const B = new FileReader();
11394
- B.onload = (D) => {
11395
- const P = D.target.result.split(",")[1];
11396
- A(P);
11397
- }, B.onerror = M, B.readAsDataURL(C);
11394
+ B.onload = (P) => {
11395
+ const D = P.target.result.split(",")[1];
11396
+ A(D);
11397
+ }, B.onerror = R, B.readAsDataURL(L);
11398
11398
  });
11399
11399
  _ = _.replaceAll(`{{${y.name}}}`, T), _ = _.replaceAll(`{{${y.name.toUpperCase()}}}`, T);
11400
11400
  }
@@ -11419,9 +11419,9 @@ ${e}`);
11419
11419
  }), v.context = _;
11420
11420
  });
11421
11421
  }
11422
- const p = async (v, _, f, y, k, C, T, A) => {
11423
- const M = document.createElement("div");
11424
- M.classList.add("result-container"), t.appendChild(M), M.innerHTML = `
11422
+ const p = async (v, _, f, y, k, L, T, A) => {
11423
+ const R = document.createElement("div");
11424
+ R.classList.add("result-container"), t.appendChild(R), R.innerHTML = `
11425
11425
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 20" width="27" height="20" fill="currentColor">
11426
11426
  <circle cx="15" cy="15" r="10">
11427
11427
  <animate attributeName="cy" dur="0.6s" values="15;5;15" repeatCount="indefinite"></animate>
@@ -11434,12 +11434,12 @@ ${e}`);
11434
11434
  </circle>
11435
11435
  </svg>
11436
11436
  `;
11437
- let B = !1, D;
11437
+ let B = !1, P;
11438
11438
  if (v.trim().startsWith("{"))
11439
11439
  try {
11440
- D = JSON.parse(v), D && typeof D == "object" && (B = !0);
11440
+ P = JSON.parse(v), P && typeof P == "object" && (B = !0);
11441
11441
  } catch {
11442
- return M.innerHTML = `<p>${this.out("Incorrect JSON format.")}</p>`, !1;
11442
+ return R.innerHTML = `<p>${this.out("Incorrect JSON format.")}</p>`, !1;
11443
11443
  }
11444
11444
  (T && (T.image || T.video || T.audio) || B) && (c || (a.innerHTML = `&nbsp;
11445
11445
  <span class="loading-icon" style="width:60px;display:flex;align-items:center;justify-content:center">
@@ -11450,43 +11450,43 @@ ${e}`);
11450
11450
  </span>
11451
11451
  &nbsp;
11452
11452
  `, a.setAttribute("disabled", "")));
11453
- let P = "", q = "", R;
11454
- if (T && T.search && (R = await this.getRelevantInfo(v, _, M), R.data !== "" && (_ += `
11453
+ let D = "", M = "", q;
11454
+ if (T && T.search && (q = await this.getRelevantInfo(v, _, R), q.data !== "" && (_ += `
11455
11455
  Use the following information to answer the request:
11456
11456
 
11457
- ${R.data}
11457
+ ${q.data}
11458
11458
  `)), T && (T.image || T.video || T.audio) || B) {
11459
- const I = await this.media.generate(v, _, f, y, T, M, A);
11459
+ const I = await this.media.generate(v, _, f, y, T, R, A);
11460
11460
  return this.needCleanup = !0, this.settings.consoleLog && console.log(I), I.mediaGenerated ? {
11461
11461
  media: I.output,
11462
11462
  media2: I.output2,
11463
11463
  markdown: I.markdown
11464
- } : (M.innerHTML = `<p>${I.message}</p>`, !1);
11464
+ } : (R.innerHTML = `<p>${I.message}</p>`, !1);
11465
11465
  }
11466
11466
  if (this.settings.assistantId) {
11467
11467
  if (this.settings.assistantStreamUrl)
11468
- await this.assistantStream(v, _, k, C, async (I) => {
11468
+ await this.assistantStream(v, _, k, L, async (I) => {
11469
11469
  if (!(I && typeof I == "object")) {
11470
- if (P += I, !A) {
11471
- const E = oe.parse(P);
11472
- M.innerHTML = E, q += E;
11470
+ if (D += I, !A) {
11471
+ const E = oe.parse(D);
11472
+ R.innerHTML = E, M += E;
11473
11473
  }
11474
11474
  await new Promise((E) => setTimeout(E, 50));
11475
11475
  }
11476
11476
  }), await new Promise((I) => {
11477
11477
  const E = setInterval(() => {
11478
- M.innerHTML === oe.parse(P) && (clearInterval(E), I());
11478
+ R.innerHTML === oe.parse(D) && (clearInterval(E), I());
11479
11479
  }, 10);
11480
- }), A && (M.innerHTML = "", M.remove()), this.outputHtml += `<div class="result-container">${q}</div>`;
11480
+ }), A && (R.innerHTML = "", R.remove()), this.outputHtml += `<div class="result-container">${M}</div>`;
11481
11481
  else if (this.settings.assistantUrl) {
11482
- let I = await this.assistant(v, _, k, C);
11482
+ let I = await this.assistant(v, _, k, L);
11483
11483
  if (!I)
11484
11484
  return !1;
11485
- if (P = I, A)
11486
- M.innerHTML = "", M.remove();
11485
+ if (D = I, A)
11486
+ R.innerHTML = "", R.remove();
11487
11487
  else {
11488
11488
  const E = oe.parse(I);
11489
- M.innerHTML = E, this.outputHtml += `<div class="result-container">${E}</div>`;
11489
+ R.innerHTML = E, this.outputHtml += `<div class="result-container">${E}</div>`;
11490
11490
  }
11491
11491
  }
11492
11492
  } else if (this.settings.sendCommandStreamUrl) {
@@ -11496,35 +11496,35 @@ ${R.data}
11496
11496
  for (; J < U.length; ) {
11497
11497
  if ($ = I.slice(0, $.length + 1), J++, !A) {
11498
11498
  const F = oe.parse($);
11499
- M.innerHTML = F, E = F;
11499
+ R.innerHTML = F, E = F;
11500
11500
  }
11501
11501
  await new Promise((F) => setTimeout(F, 50));
11502
11502
  }
11503
11503
  };
11504
- await this.sendStream(v, _, k, y, C, async (U) => {
11505
- P += U, I += U, await H(U);
11504
+ await this.sendStream(v, _, k, y, L, async (U) => {
11505
+ D += U, I += U, await H(U);
11506
11506
  }), await new Promise((U) => {
11507
11507
  const J = setInterval(() => {
11508
11508
  $.length === I.length && (clearInterval(J), U());
11509
11509
  }, 10);
11510
- }), A && (M.innerHTML = "", M.remove()), this.outputHtml += `<div class="result-container">${E}</div>`;
11510
+ }), A && (R.innerHTML = "", R.remove()), this.outputHtml += `<div class="result-container">${E}</div>`;
11511
11511
  } else {
11512
- let I = await this.send(v, _, k, y, C);
11512
+ let I = await this.send(v, _, k, y, L);
11513
11513
  if (!I)
11514
11514
  return !1;
11515
- if (P = I, A)
11516
- M.innerHTML = "", M.remove();
11515
+ if (D = I, A)
11516
+ R.innerHTML = "", R.remove();
11517
11517
  else {
11518
11518
  const E = oe.parse(I);
11519
- M.innerHTML = E, this.outputHtml += `<div class="result-container">${E}</div>`;
11519
+ R.innerHTML = E, this.outputHtml += `<div class="result-container">${E}</div>`;
11520
11520
  }
11521
11521
  }
11522
11522
  if (!A) {
11523
11523
  let I = "";
11524
- if (R && R.urls.forEach(($) => {
11524
+ if (q && q.urls.forEach(($) => {
11525
11525
  let H = $;
11526
11526
  H.length > 75 && (H = H.slice(0, 75) + "..."), I += `<div><a class="source_url" href="${$}">${H}</url></div>`;
11527
- }), R && R.failed.forEach(($) => {
11527
+ }), q && q.failed.forEach(($) => {
11528
11528
  let H = $;
11529
11529
  H.length > 75 && (H = H.slice(0, 75) + "..."), I += `<div><a class="source_url" style="opacity:0.5" href="${$}">${H}</url></div>`;
11530
11530
  }), I !== "") {
@@ -11535,9 +11535,9 @@ ${R.data}
11535
11535
  return this.payloads.push({
11536
11536
  prompt: v,
11537
11537
  context: _
11538
- }), this.output.push(P), {
11538
+ }), this.output.push(D), {
11539
11539
  media: [],
11540
- markdown: P
11540
+ markdown: D
11541
11541
  };
11542
11542
  };
11543
11543
  c || await (async (v) => {
@@ -11549,29 +11549,29 @@ ${R.data}
11549
11549
  prompt: f,
11550
11550
  context: y,
11551
11551
  provider: k,
11552
- model: C,
11552
+ model: L,
11553
11553
  system: T,
11554
11554
  functs: A,
11555
- tools: M,
11555
+ tools: R,
11556
11556
  hideOutput: B
11557
11557
  } = v[_];
11558
11558
  k = k || "", y = y || "", T = T || "You are an assistant", A = A || [];
11559
- let D = f;
11560
- this.previousResults.forEach((q, R) => {
11561
- const I = `{{output_step_${R + 1}}}`;
11562
- D = D.replace(new RegExp(I, "g"), d(q, f)), D = D.replace(new RegExp(I.toUpperCase(), "g"), d(q, f));
11563
- }), f = D, f = f.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000\uFEFF]/g, " ").trim(), this.settings.consoleLog && console.log(f), D = y, this.previousResults.forEach((q, R) => {
11564
- const I = `{{output_step_${R + 1}}}`;
11565
- D = D.replace(new RegExp(I, "g"), d(q, f)), D = D.replace(new RegExp(I.toUpperCase(), "g"), d(q, f));
11566
- }), y = D, y = y.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000\uFEFF]/g, " ").trim();
11567
- let P = await p(f, y, k, C, T, A, M, B);
11568
- if (!P)
11559
+ let P = f;
11560
+ this.previousResults.forEach((M, q) => {
11561
+ const I = `{{output_step_${q + 1}}}`;
11562
+ P = P.replace(new RegExp(I, "g"), d(M, f)), P = P.replace(new RegExp(I.toUpperCase(), "g"), d(M, f));
11563
+ }), f = P, f = f.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000\uFEFF]/g, " ").trim(), this.settings.consoleLog && console.log(f), P = y, this.previousResults.forEach((M, q) => {
11564
+ const I = `{{output_step_${q + 1}}}`;
11565
+ P = P.replace(new RegExp(I, "g"), d(M, f)), P = P.replace(new RegExp(I.toUpperCase(), "g"), d(M, f));
11566
+ }), y = P, y = y.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000\uFEFF]/g, " ").trim();
11567
+ let D = await p(f, y, k, L, T, A, R, B);
11568
+ if (!D)
11569
11569
  break;
11570
- if (this.mediaGenerated.push(...P.media), P.media && P.media.length === 1) {
11571
- let q = P.media[0], R = P.media2 && P.media2.length === 1 && P.media2[0];
11572
- this.previousResults.push(R || q), B && (this.filesUploaded[`output_step_${_}`] = q);
11570
+ if (this.mediaGenerated.push(...D.media), D.media && D.media.length === 1) {
11571
+ let M = D.media[0], q = D.media2 && D.media2.length === 1 && D.media2[0];
11572
+ this.previousResults.push(q || M), B && (this.filesUploaded[`output_step_${_}`] = M);
11573
11573
  } else
11574
- this.previousResults.push(P.markdown);
11574
+ this.previousResults.push(D.markdown);
11575
11575
  }
11576
11576
  })(o), c && (e === 0 && (this.previousResults = []), await (async (_, f) => {
11577
11577
  if (!this.isGenerating)
@@ -11579,29 +11579,29 @@ ${R.data}
11579
11579
  let {
11580
11580
  prompt: y,
11581
11581
  context: k,
11582
- provider: C,
11582
+ provider: L,
11583
11583
  model: T,
11584
11584
  system: A,
11585
- functs: M,
11585
+ functs: R,
11586
11586
  tools: B,
11587
- hideOutput: D
11587
+ hideOutput: P
11588
11588
  } = _[f];
11589
- k = k || "", A = A || "You are an assistant", M = M || [];
11590
- let P = y;
11591
- this.previousResults && this.previousResults.forEach((R, I) => {
11589
+ k = k || "", A = A || "You are an assistant", R = R || [];
11590
+ let D = y;
11591
+ this.previousResults && this.previousResults.forEach((q, I) => {
11592
11592
  const E = `{{output_step_${I + 1}}}`;
11593
- P = P.replace(new RegExp(E, "g"), R), P = P.replace(new RegExp(E.toUpperCase(), "g"), R);
11594
- }), y = P, y = y.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000\uFEFF]/g, " ").trim(), this.settings.consoleLog && console.log(y), P = k, this.previousResults && this.previousResults.forEach((R, I) => {
11593
+ D = D.replace(new RegExp(E, "g"), q), D = D.replace(new RegExp(E.toUpperCase(), "g"), q);
11594
+ }), y = D, y = y.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000\uFEFF]/g, " ").trim(), this.settings.consoleLog && console.log(y), D = k, this.previousResults && this.previousResults.forEach((q, I) => {
11595
11595
  const E = `{{output_step_${I + 1}}}`;
11596
- P = P.replace(new RegExp(E, "g"), R), P = P.replace(new RegExp(E.toUpperCase(), "g"), R);
11597
- }), k = P, k = k.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000\uFEFF]/g, " ").trim(), this.settings.consoleLog && console.log(k);
11598
- let q = await p(y, k, C, T, A, M, B, D);
11599
- if (q && (this.mediaGenerated.push(...q.media), !!this.previousResults))
11600
- if (q.media && q.media.length === 1) {
11601
- let R = q.media[0], I = q.media2 && q.media2.length === 1 && q.media2[0];
11602
- this.previousResults[f] = I || R, D && (this.filesUploaded[`output_step_${f}`] = R);
11596
+ D = D.replace(new RegExp(E, "g"), q), D = D.replace(new RegExp(E.toUpperCase(), "g"), q);
11597
+ }), k = D, k = k.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000\uFEFF]/g, " ").trim(), this.settings.consoleLog && console.log(k);
11598
+ let M = await p(y, k, L, T, A, R, B, P);
11599
+ if (M && (this.mediaGenerated.push(...M.media), !!this.previousResults))
11600
+ if (M.media && M.media.length === 1) {
11601
+ let q = M.media[0], I = M.media2 && M.media2.length === 1 && M.media2[0];
11602
+ this.previousResults[f] = I || q, P && (this.filesUploaded[`output_step_${f}`] = q);
11603
11603
  } else
11604
- this.previousResults[f] = q.markdown;
11604
+ this.previousResults[f] = M.markdown;
11605
11605
  })(o, e)), a.innerHTML = l, a.removeAttribute("disabled"), this.isGenerating = !1;
11606
11606
  const w = this.calculateCost();
11607
11607
  this.settings.onUsage && this.settings.onUsage(w), this.trigger("usage", w), this.isNormal = !1, this.isSingle = !1;
@@ -11646,8 +11646,8 @@ ${R.data}
11646
11646
  mode: "cors"
11647
11647
  });
11648
11648
  if (!y.ok) throw new Error("Failed to fetch the image.");
11649
- const k = await y.blob(), C = f.substring(f.lastIndexOf("/") + 1), T = document.createElement("a");
11650
- T.href = URL.createObjectURL(k), T.download = C, T.click(), URL.revokeObjectURL(T.href);
11649
+ const k = await y.blob(), L = f.substring(f.lastIndexOf("/") + 1), T = document.createElement("a");
11650
+ T.href = URL.createObjectURL(k), T.download = L, T.click(), URL.revokeObjectURL(T.href);
11651
11651
  } catch (y) {
11652
11652
  console.error("Error downloading the image:", y);
11653
11653
  }
@@ -11859,9 +11859,9 @@ ${R.data}
11859
11859
  break;
11860
11860
  }
11861
11861
  try {
11862
- const C = JSON.parse(k);
11863
- if (C.usage && (_ = C.usage.prompt_tokens, f = C.usage.completion_tokens), C.choices && C.choices[0].delta && C.choices[0].delta.content) {
11864
- const T = C.choices[0].delta.content;
11862
+ const L = JSON.parse(k);
11863
+ if (L.usage && (_ = L.usage.prompt_tokens, f = L.usage.completion_tokens), L.choices && L.choices[0].delta && L.choices[0].delta.content) {
11864
+ const T = L.choices[0].delta.content;
11865
11865
  r && r(T);
11866
11866
  }
11867
11867
  } catch {
@@ -12311,17 +12311,324 @@ class jr {
12311
12311
  return window.pageYOffset || document.documentElement.scrollTop;
12312
12312
  }
12313
12313
  }
12314
- class $r {
12314
+ class Nr {
12315
+ constructor(e = {}) {
12316
+ this.config = {
12317
+ plugins: {},
12318
+ // Plugin registry
12319
+ autoLoad: !0,
12320
+ pluginBaseUrl: "",
12321
+ ...e
12322
+ }, this.plugins = /* @__PURE__ */ new Map(), this.loadedStyles = /* @__PURE__ */ new Set(), this.components = /* @__PURE__ */ new Map();
12323
+ }
12324
+ /**
12325
+ * Auto-detect and load plugins based on DOM elements
12326
+ */
12327
+ async autoLoadPlugins() {
12328
+ const t = this.detectComponentTypes().filter(
12329
+ (s) => this.config.plugins[s] && !this.plugins.has(s)
12330
+ );
12331
+ return t.length > 0 && await Promise.all(
12332
+ t.map((s) => this.loadPlugin(s))
12333
+ ), t;
12334
+ }
12335
+ /**
12336
+ * Detect all component types used in the page
12337
+ */
12338
+ detectComponentTypes() {
12339
+ const e = /* @__PURE__ */ new Set();
12340
+ return document.querySelectorAll("[data-cb-type]").forEach((t) => {
12341
+ e.add(t.dataset.cbType);
12342
+ }), document.querySelectorAll('[class*="cb-"]').forEach((t) => {
12343
+ t.classList.forEach((s) => {
12344
+ if (s.startsWith("cb-")) {
12345
+ const i = s.replace("cb-", "");
12346
+ e.add(i);
12347
+ }
12348
+ });
12349
+ }), Array.from(e);
12350
+ }
12351
+ /**
12352
+ * Load a plugin dynamically
12353
+ */
12354
+ async loadPlugin(e) {
12355
+ if (this.plugins.has(e))
12356
+ return this.plugins.get(e);
12357
+ const t = this.config.plugins[e];
12358
+ if (!t)
12359
+ return console.warn(`[PluginManager] Plugin "${e}" not found in registry`), null;
12360
+ try {
12361
+ t.css && this.loadCSS(this.resolveUrl(t.css));
12362
+ const s = this.resolveUrl(t.url), i = await this.importModule(s), n = i.default || i;
12363
+ return this.plugins.set(e, n), typeof n.init == "function" && await n.init(this), this.emit("plugin-loaded", { name: e, plugin: n }), console.log(`[PluginManager] Plugin "${e}" loaded successfully`), n;
12364
+ } catch (s) {
12365
+ return console.error(`[PluginManager] Failed to load plugin "${e}":`, s), null;
12366
+ }
12367
+ }
12368
+ /**
12369
+ * Dynamically import ES module
12370
+ */
12371
+ async importModule(e) {
12372
+ return import(
12373
+ /* @vite-ignore */
12374
+ e
12375
+ );
12376
+ }
12377
+ /**
12378
+ * Load CSS file
12379
+ */
12380
+ loadCSS(e) {
12381
+ if (this.loadedStyles.has(e)) return;
12382
+ const t = document.createElement("link");
12383
+ t.rel = "stylesheet", t.href = e, t.onload = () => {
12384
+ this.emit("css-loaded", { url: e });
12385
+ }, t.onerror = () => {
12386
+ console.error(`[PluginManager] Failed to load CSS: ${e}`);
12387
+ }, document.head.appendChild(t), this.loadedStyles.add(e);
12388
+ }
12389
+ /**
12390
+ * Resolve URL (handle relative paths)
12391
+ */
12392
+ resolveUrl(e) {
12393
+ return e.startsWith("http://") || e.startsWith("https://") || e.startsWith("//") ? e : this.config.pluginBaseUrl + e;
12394
+ }
12395
+ /**
12396
+ * Initialize all components in the page
12397
+ */
12398
+ initializeComponents() {
12399
+ return document.querySelectorAll("[data-cb-type]").forEach((t) => {
12400
+ const s = t.dataset.cbType, i = this.plugins.get(s);
12401
+ if (i && typeof i.mount == "function")
12402
+ try {
12403
+ const n = this.parseOptions(t), r = i.mount(t, n);
12404
+ this.components.set(t, r);
12405
+ } catch (n) {
12406
+ console.error(`[PluginManager] Failed to mount component "${s}":`, n);
12407
+ }
12408
+ }), this.components.size;
12409
+ }
12410
+ /**
12411
+ * Parse component options from data attributes
12412
+ */
12413
+ parseOptions(e) {
12414
+ const t = {};
12415
+ return Array.from(e.attributes).forEach((s) => {
12416
+ if (s.name.startsWith("data-cb-")) {
12417
+ const i = s.name.replace("data-cb-", "").replace(/-([a-z])/g, (n, r) => r.toUpperCase());
12418
+ t[i] = this.parseValue(s.value);
12419
+ }
12420
+ }), t;
12421
+ }
12422
+ /**
12423
+ * Parse string value to appropriate type
12424
+ */
12425
+ parseValue(e) {
12426
+ if (e === "true") return !0;
12427
+ if (e === "false") return !1;
12428
+ if (!isNaN(e) && e !== "") return Number(e);
12429
+ try {
12430
+ return JSON.parse(e);
12431
+ } catch {
12432
+ return e;
12433
+ }
12434
+ }
12435
+ /**
12436
+ * Manually load a plugin (if not auto-loaded)
12437
+ */
12438
+ async use(e) {
12439
+ return await this.loadPlugin(e);
12440
+ }
12441
+ /**
12442
+ * Get a loaded plugin by name
12443
+ */
12444
+ getPlugin(e) {
12445
+ return this.plugins.get(e);
12446
+ }
12447
+ /**
12448
+ * Get all loaded plugins
12449
+ */
12450
+ getAllPlugins() {
12451
+ return Array.from(this.plugins.entries());
12452
+ }
12453
+ /**
12454
+ * Check if a plugin is loaded
12455
+ */
12456
+ hasPlugin(e) {
12457
+ return this.plugins.has(e);
12458
+ }
12459
+ /**
12460
+ * Get component instance for an element
12461
+ */
12462
+ getComponent(e) {
12463
+ return this.components.get(e);
12464
+ }
12465
+ /**
12466
+ * Reinitialize components in a specific container
12467
+ * Useful when content is dynamically updated
12468
+ * @param {HTMLElement} container - Container element (defaults to document)
12469
+ */
12470
+ async reinitialize(e = document) {
12471
+ console.log("[PluginManager] Reinitializing components in container");
12472
+ const t = [];
12473
+ this.components.forEach((a, l) => {
12474
+ (e === document || e.contains(l)) && t.push({ element: l, instance: a });
12475
+ }), t.forEach(({ element: a, instance: l }) => {
12476
+ const c = a.dataset.cbType, d = this.plugins.get(c);
12477
+ d && typeof d.unmount == "function" && d.unmount(a, l), this.components.delete(a);
12478
+ }), console.log(`[PluginManager] Destroyed ${t.length} components`);
12479
+ const i = this.detectComponentTypesInContainer(e).filter(
12480
+ (a) => this.config.plugins[a] && !this.plugins.has(a)
12481
+ );
12482
+ i.length > 0 && await Promise.all(
12483
+ i.map((a) => this.loadPlugin(a))
12484
+ );
12485
+ const n = e.querySelectorAll("[data-cb-type]");
12486
+ let r = 0;
12487
+ return n.forEach((a) => {
12488
+ const l = a.dataset.cbType, c = this.plugins.get(l);
12489
+ if (c && typeof c.mount == "function")
12490
+ try {
12491
+ const d = this.parseOptions(a), o = c.mount(a, d);
12492
+ this.components.set(a, o), r++;
12493
+ } catch (d) {
12494
+ console.error(`[PluginManager] Failed to mount component "${l}":`, d);
12495
+ }
12496
+ }), console.log(`[PluginManager] Mounted ${r} new components`), this.emit("reinitialized", { container: e, count: r }), r;
12497
+ }
12498
+ /**
12499
+ * Detect component types within a specific container
12500
+ * @param {HTMLElement} container
12501
+ */
12502
+ detectComponentTypesInContainer(e) {
12503
+ const t = /* @__PURE__ */ new Set();
12504
+ return e.querySelectorAll("[data-cb-type]").forEach((i) => {
12505
+ t.add(i.dataset.cbType);
12506
+ }), Array.from(t);
12507
+ }
12508
+ /**
12509
+ * Destroy all components and plugins
12510
+ */
12511
+ destroy() {
12512
+ this.components.forEach((e, t) => {
12513
+ const s = t.dataset.cbType, i = this.plugins.get(s);
12514
+ i && typeof i.unmount == "function" && i.unmount(t, e);
12515
+ }), this.plugins.forEach((e, t) => {
12516
+ typeof e.destroy == "function" && e.destroy(this);
12517
+ }), this.components.clear(), this.plugins.clear();
12518
+ }
12519
+ /**
12520
+ * Event emitter (delegate to runtime if available)
12521
+ */
12522
+ emit(e, t) {
12523
+ if (this.runtime && typeof this.runtime.emit == "function")
12524
+ this.runtime.emit(e, t);
12525
+ else {
12526
+ const s = new CustomEvent(`contentbox:${e}`, { detail: t });
12527
+ document.dispatchEvent(s);
12528
+ }
12529
+ }
12530
+ /**
12531
+ * Set runtime reference (for event delegation)
12532
+ */
12533
+ setRuntime(e) {
12534
+ this.runtime = e;
12535
+ }
12536
+ }
12537
+ class Hr {
12315
12538
  constructor(e = {}) {
12316
12539
  const t = {
12317
12540
  skin: "light",
12318
- smoothScroll: !0
12541
+ smoothScroll: !0,
12542
+ plugins: {},
12543
+ // Plugin registry: { 'plugin-name': { url: '...', css: '...' } }
12544
+ autoLoadPlugins: !0,
12545
+ // Auto-load plugins based on detected components
12546
+ pluginBaseUrl: ""
12547
+ // Base URL for plugins if using relative paths
12319
12548
  };
12320
- this.settings = Object.assign(this, t, e), window.Glide = Wn, window.FormViewer = Mr, window.NavBar = jr, window.pageReRender = () => {
12549
+ this.settings = { ...t, ...e }, this.initialized = !1, this.pluginManager = new Nr({
12550
+ plugins: this.settings.plugins,
12551
+ autoLoad: this.settings.autoLoadPlugins,
12552
+ pluginBaseUrl: this.settings.pluginBaseUrl
12553
+ }), this.pluginManager.setRuntime(this), window.Glide = Wn, window.FormViewer = Rr, window.NavBar = jr, window.pageReRender = () => {
12321
12554
  this.pageReRender();
12322
12555
  };
12323
12556
  }
12324
- init() {
12557
+ /**
12558
+ * Plugin management delegation methods
12559
+ */
12560
+ /**
12561
+ * Manually load a plugin
12562
+ */
12563
+ async use(e) {
12564
+ return await this.pluginManager.use(e);
12565
+ }
12566
+ /**
12567
+ * Get a loaded plugin
12568
+ */
12569
+ getPlugin(e) {
12570
+ return this.pluginManager.getPlugin(e);
12571
+ }
12572
+ /**
12573
+ * Get all loaded plugins
12574
+ */
12575
+ getPlugins() {
12576
+ return this.pluginManager.getAllPlugins();
12577
+ }
12578
+ /**
12579
+ * Check if plugin is loaded
12580
+ */
12581
+ hasPlugin(e) {
12582
+ return this.pluginManager.hasPlugin(e);
12583
+ }
12584
+ /**
12585
+ * Get component instance for an element
12586
+ */
12587
+ getComponent(e) {
12588
+ return this.pluginManager.getComponent(e);
12589
+ }
12590
+ /**
12591
+ * Get all component instances
12592
+ */
12593
+ getComponents() {
12594
+ return this.pluginManager.components;
12595
+ }
12596
+ /**
12597
+ * Reinitialize components (after content update)
12598
+ * @param {HTMLElement} container - Container to reinitialize (optional, defaults to document)
12599
+ */
12600
+ async reinitialize(e) {
12601
+ return await this.pluginManager.reinitialize(e);
12602
+ }
12603
+ /**
12604
+ * Simple event emitter
12605
+ */
12606
+ emit(e, t) {
12607
+ const s = new CustomEvent(`contentbox:${e}`, { detail: t });
12608
+ document.dispatchEvent(s);
12609
+ }
12610
+ /**
12611
+ * Listen to events
12612
+ */
12613
+ on(e, t) {
12614
+ document.addEventListener(`contentbox:${e}`, t);
12615
+ }
12616
+ /**
12617
+ * Remove event listener
12618
+ */
12619
+ off(e, t) {
12620
+ document.removeEventListener(`contentbox:${e}`, t);
12621
+ }
12622
+ async init() {
12623
+ if (this.initialized) return;
12624
+ if (this.initCore(), this.settings.autoLoadPlugins) {
12625
+ const t = await this.pluginManager.autoLoadPlugins();
12626
+ console.log(`[ContentBox] Auto-loaded ${t.length} plugins`);
12627
+ }
12628
+ const e = this.pluginManager.initializeComponents();
12629
+ console.log(`[ContentBox] Initialized ${e} components`), this.initialized = !0, this.emit("init");
12630
+ }
12631
+ initCore() {
12325
12632
  this.prepareContent(), this.updateOnResize(), this.blockInit(), this.initeSkrollrr(), this.contentBoxOnRenderUpdate(), this.functionLightboxInit(), this.inViewSetup(), setTimeout(() => {
12326
12633
  ks.init({
12327
12634
  duration: 1200
@@ -12471,7 +12778,7 @@ class $r {
12471
12778
  }), document.querySelectorAll(".is-container video").forEach((i) => {
12472
12779
  i.parentNode.setAttribute("data-scroll", "");
12473
12780
  });
12474
- const s = new Ms({
12781
+ const s = new Rs({
12475
12782
  trigger: {
12476
12783
  once: !0,
12477
12784
  offset: {
@@ -12752,9 +13059,9 @@ class $r {
12752
13059
  destroy() {
12753
13060
  this.glightbox && (this.glightbox.destroy(), this.glightbox = null), document.querySelectorAll(".is-lightbox,.block-click").forEach((t) => {
12754
13061
  t._lightboxHandler && (t.removeEventListener("click", t._lightboxHandler), delete t._lightboxHandler);
12755
- });
13062
+ }), this.pluginManager.destroy(), this.initialized = !1, this.emit("destroy");
12756
13063
  }
12757
13064
  }
12758
13065
  export {
12759
- $r as default
13066
+ Hr as default
12760
13067
  };