@innovastudio/contentbox-runtime 1.0.11 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,29 +12,29 @@ 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, qe = !1, xe = !1, Ce = !0;
15
+ var V, K, ve, be, X, we, ue = 0, qe = !1, xe = !1, Le = !0;
16
16
  if (typeof O != "function") throw new TypeError(s);
17
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
  }
21
- function Fe(Z) {
21
+ function Ye(Z) {
22
22
  var _e = Z - we;
23
23
  return we === void 0 || _e >= j || _e < 0 || xe && Z - ue >= ve;
24
24
  }
25
25
  function He() {
26
26
  var Z = b();
27
- if (Fe(Z)) return Ge(Z);
27
+ if (Ye(Z)) return Ge(Z);
28
28
  X = setTimeout(He, (function(_e) {
29
29
  var Ie = j - (_e - we);
30
30
  return xe ? S(Ie, ve - (_e - ue)) : Ie;
31
31
  })(Z));
32
32
  }
33
33
  function Ge(Z) {
34
- return X = void 0, Ce && V ? Re(Z) : (V = K = void 0, be);
34
+ return X = void 0, Le && V ? Re(Z) : (V = K = void 0, be);
35
35
  }
36
36
  function Oe() {
37
- var Z = b(), _e = Fe(Z);
37
+ var Z = b(), _e = Ye(Z);
38
38
  if (V = arguments, K = this, we = Z, _e) {
39
39
  if (X === void 0) return (function(Ie) {
40
40
  return ue = Ie, X = setTimeout(He, j), qe ? Re(Ie) : be;
@@ -43,7 +43,7 @@ function xs() {
43
43
  }
44
44
  return X === void 0 && (X = setTimeout(He, j)), be;
45
45
  }
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() {
46
+ return j = v(j) || 0, m(z) && (qe = !!z.leading, ve = (xe = "maxWait" in z) ? w(v(z.maxWait) || 0, j) : ve, Le = "trailing" in z ? !!z.trailing : Le), 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,7 +73,7 @@ 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]", 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() {
76
+ }, f = "Expected a function", y = NaN, k = "[object Symbol]", C = /^\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
77
  return M.Date.now();
78
78
  };
79
79
  function H(O) {
@@ -92,34 +92,34 @@ function xs() {
92
92
  O = H(j) ? j + "" : j;
93
93
  }
94
94
  if (typeof O != "string") return O === 0 ? O : +O;
95
- O = O.replace(L, "");
95
+ O = O.replace(C, "");
96
96
  var z = A.test(O);
97
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, qe = !1, xe = !1, Ce = !0;
100
+ var V, K, ve, be, X, we, ue = 0, qe = !1, xe = !1, Le = !0;
101
101
  if (typeof O != "function") throw new TypeError(f);
102
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
  }
106
- function Fe(Z) {
106
+ function Ye(Z) {
107
107
  var _e = Z - we;
108
108
  return we === void 0 || _e >= j || _e < 0 || xe && Z - ue >= ve;
109
109
  }
110
110
  function He() {
111
111
  var Z = $();
112
- if (Fe(Z)) return Ge(Z);
112
+ if (Ye(Z)) return Ge(Z);
113
113
  X = setTimeout(He, (function(_e) {
114
114
  var Ie = j - (_e - we);
115
115
  return xe ? E(Ie, ve - (_e - ue)) : Ie;
116
116
  })(Z));
117
117
  }
118
118
  function Ge(Z) {
119
- return X = void 0, Ce && V ? Re(Z) : (V = K = void 0, be);
119
+ return X = void 0, Le && V ? Re(Z) : (V = K = void 0, be);
120
120
  }
121
121
  function Oe() {
122
- var Z = $(), _e = Fe(Z);
122
+ var Z = $(), _e = Ye(Z);
123
123
  if (V = arguments, K = this, we = Z, _e) {
124
124
  if (X === void 0) return (function(Ie) {
125
125
  return ue = Ie, X = setTimeout(He, j), qe ? Re(Ie) : be;
@@ -128,12 +128,12 @@ function xs() {
128
128
  }
129
129
  return X === void 0 && (X = setTimeout(He, j)), be;
130
130
  }
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() {
131
+ return j = U(j) || 0, H(z) && (qe = !!z.leading, ve = (xe = "maxWait" in z) ? I(U(z.maxWait) || 0, j) : ve, Le = "trailing" in z ? !!z.trailing : Le), 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($());
135
135
  }, Oe;
136
- }, F = function() {
136
+ }, Y = function() {
137
137
  };
138
138
  function ee(O) {
139
139
  O && O.forEach(function(j) {
@@ -143,7 +143,7 @@ function xs() {
143
143
  for (be = 0; be < ve.length; be += 1)
144
144
  if ((X = ve[be]).dataset && X.dataset.aos || X.children && K(X.children)) return !0;
145
145
  return !1;
146
- })(z.concat(V))) return F();
146
+ })(z.concat(V))) return Y();
147
147
  });
148
148
  }
149
149
  function Q() {
@@ -153,7 +153,7 @@ function xs() {
153
153
  return !!Q();
154
154
  }, ready: function(O, j) {
155
155
  var z = window.document, V = new (Q())(ee);
156
- F = j, V.observe(z.documentElement, { childList: !0, subtree: !0, removedNodes: !0 });
156
+ Y = j, V.observe(z.documentElement, { childList: !0, subtree: !0, removedNodes: !0 });
157
157
  } }, Ee = function(O, j) {
158
158
  if (!(O instanceof j)) throw new TypeError("Cannot call a class as a function");
159
159
  }, me = /* @__PURE__ */ (function() {
@@ -221,15 +221,15 @@ function xs() {
221
221
  if (V === "false") return !1;
222
222
  }
223
223
  return V || z;
224
- }, Y = function(O, j) {
224
+ }, F = function(O, j) {
225
225
  return O.forEach(function(z, V) {
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
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;
230
+ var Le = window.innerHeight, Re = te(ue, "anchor"), Ye = te(ue, "anchor-placement"), He = Number(te(ue, "offset", Ye ? 0 : qe)), Ge = Ye || xe, Oe = ue;
231
231
  Re && document.querySelectorAll(Re) && (Oe = document.querySelectorAll(Re)[0]);
232
- var Z = se(Oe).top - Ce;
232
+ var Z = se(Oe).top - Le;
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 += Ce / 2;
243
+ Z += Le / 2;
244
244
  break;
245
245
  case "center-center":
246
- Z += Ce / 2 + Oe.offsetHeight / 2;
246
+ Z += Le / 2 + Oe.offsetHeight / 2;
247
247
  break;
248
248
  case "bottom-center":
249
- Z += Ce / 2 + Oe.offsetHeight;
249
+ Z += Le / 2 + Oe.offsetHeight;
250
250
  break;
251
251
  case "top-top":
252
- Z += Ce;
252
+ Z += Le;
253
253
  break;
254
254
  case "bottom-top":
255
- Z += Ce + Oe.offsetHeight;
255
+ Z += Le + Oe.offsetHeight;
256
256
  break;
257
257
  case "center-top":
258
- Z += Ce + Oe.offsetHeight / 2;
258
+ Z += Le + Oe.offsetHeight / 2;
259
259
  }
260
260
  return Z + He;
261
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;
262
+ var xe = te(ue, "anchor"), Le = te(ue, "offset", qe), Re = ue;
263
+ return xe && document.querySelectorAll(xe) && (Re = document.querySelectorAll(xe)[0]), se(Re).top + Re.offsetHeight - Le;
264
264
  })(z.node, j.offset) }, z.options = { once: ve, mirror: K, animatedClassNames: we, id: be };
265
265
  }), O;
266
266
  }, Se = function() {
@@ -270,18 +270,18 @@ function xs() {
270
270
  });
271
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
- }, 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() {
273
+ }, Ce = function() {
274
+ arguments.length > 0 && arguments[0] !== void 0 && arguments[0] && (Me = !0), Me && (pe = F(pe, ne), le(pe), window.addEventListener("scroll", _(function() {
275
275
  le(pe, ne.once);
276
276
  }, ne.throttleDelay)));
277
277
  }, De = function() {
278
- if (pe = Se(), Ye(ne.disable) || Pe()) return Ue();
279
- Le();
278
+ if (pe = Se(), Fe(ne.disable) || Pe()) return Ue();
279
+ Ce();
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);
283
283
  });
284
- }, Ye = function(O) {
284
+ }, Fe = function(O) {
285
285
  return O === !0 || O === "mobile" && ce.mobile() || O === "phone" && ce.phone() || O === "tablet" && ce.tablet() || typeof O == "function" && O() === !0;
286
286
  };
287
287
  return { init: function(O) {
@@ -289,12 +289,12 @@ 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]", 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);
292
+ `), ne.disableMutationObserver = !0), ne.disableMutationObserver || he.ready("[data-aos]", De), Fe(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
+ Ce(!0);
294
294
  }) : window.addEventListener("load", function() {
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 };
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: De };
298
298
  });
299
299
  })(Dt)), Dt.exports;
300
300
  }
@@ -431,43 +431,43 @@ 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 L, T = {};
434
+ var C, 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 && (L = Math.ceil(y.debugData.frameLengths.reduce(function(A, R) {
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, R) {
440
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) {
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) {
443
443
  var T = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : {};
444
- y.drivers.push(new v(k, L, T));
444
+ y.drivers.push(new v(k, C, T));
445
445
  }), t(this, "removeDriver", function(k) {
446
- y.drivers = y.drivers.filter(function(L) {
447
- return L.name !== k;
446
+ y.drivers = y.drivers.filter(function(C) {
447
+ return C.name !== k;
448
448
  });
449
449
  }), t(this, "findAndAddElements", function() {
450
450
  y.elements = [], document.querySelectorAll(".lax").forEach(function(k) {
451
- var L = [];
451
+ var C = [];
452
452
  k.classList.forEach(function(A) {
453
- A.includes("lax_preset") && (A = A.replace("lax_preset_", ""), L.push(A));
453
+ A.includes("lax_preset") && (A = A.replace("lax_preset_", ""), C.push(A));
454
454
  });
455
- var T = t({}, "scrollY", { presets: L });
455
+ var T = t({}, "scrollY", { presets: C });
456
456
  y.elements.push(new _(".lax", y, k, T, 0, {}));
457
457
  });
458
- }), t(this, "addElements", function(k, L, T) {
458
+ }), t(this, "addElements", function(k, C, T) {
459
459
  document.querySelectorAll(k).forEach(function(A, R) {
460
- y.elements.push(new _(k, y, A, L, R, T));
460
+ y.elements.push(new _(k, y, A, C, R, T));
461
461
  });
462
462
  }), t(this, "removeElements", function(k) {
463
- y.elements = y.elements.filter(function(L) {
464
- return L.selector !== k;
463
+ y.elements = y.elements.filter(function(C) {
464
+ return C.selector !== k;
465
465
  });
466
- }), t(this, "addElement", function(k, L, T) {
467
- y.elements.push(new _("", y, k, L, 0, T));
466
+ }), t(this, "addElement", function(k, C, T) {
467
+ y.elements.push(new _("", y, k, C, 0, T));
468
468
  }), t(this, "removeElement", function(k) {
469
- y.elements = y.elements.filter(function(L) {
470
- return L.domElement !== k;
469
+ y.elements = y.elements.filter(function(C) {
470
+ return C.domElement !== k;
471
471
  });
472
472
  });
473
473
  }());
@@ -477,31 +477,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
477
477
  return parseInt(R);
478
478
  }).sort(function(R, B) {
479
479
  return B < R ? 1 : -1;
480
- }), L = k[k.length - 1], T = 0; T < k.length; T++) {
480
+ }), C = k[k.length - 1], T = 0; T < k.length; T++) {
481
481
  var A = k[T];
482
482
  if (y < A) {
483
- L = A;
483
+ C = A;
484
484
  break;
485
485
  }
486
486
  }
487
- return f[L];
487
+ return f[C];
488
488
  }
489
489
  function m(f, E, k) {
490
- var L = E.width, T = E.height, M = E.x, I = E.y;
490
+ var C = E.width, T = E.height, M = E.x, I = E.y;
491
491
  if (typeof f == "number") return f;
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)))();
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 + C, 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, C).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 + C / 2 - P / 2).replace(/index/g, k)))();
494
494
  }
495
495
  function v(f, y) {
496
- var k = this, L = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : {};
496
+ var k = this, C = 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(L).forEach(function(T) {
501
- k[T] = L[T];
500
+ }), this.name = f, this.getValueFn = y, Object.keys(C).forEach(function(T) {
501
+ k[T] = C[T];
502
502
  }), this.lastValue = this.getValueFn(0);
503
503
  }
504
- function _(f, y, k, L) {
504
+ function _(f, y, k, C) {
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
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
507
  var M, q = T.transforms, I = {};
@@ -510,16 +510,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
510
510
  P[M] || console.error("No lax driver with name: ", M);
511
511
  var $, H = s(P[M], 2), U = H[0], J = H[1];
512
512
  for ($ in E) {
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];
513
+ var Y, 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
514
  D % Ee == 0 && (N = (function(G, ie, ce, fe) {
515
515
  var le = 0;
516
- if (G.forEach(function(Y) {
517
- Y < ce && le++;
516
+ if (G.forEach(function(F) {
517
+ F < ce && le++;
518
518
  }), le <= 0) return ie[0];
519
519
  if (le >= G.length) return ie[G.length - 1];
520
520
  var se, te = (te = G[se = le - 1], G = G[le], (ce - te) / (G - te));
521
521
  return fe && (te = fe(te)), se = ie[se], ie = ie[le], se * (1 - (te = te)) + ie * te;
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);
522
+ })(ee, Q, he ? U % he : U, N), me && (Y = J * me, Te === "absolute" && (Y = Math.abs(Y)), N += Y), Y = (re || p.includes($) ? "px" : g.includes($) ? "deg" : "") == "px" ? 0 : 3, Y = N.toFixed(Y), I[$] = ye ? ye(Y, T.domElement) : Y + re);
523
523
  }
524
524
  }
525
525
  T.applyStyles(I), T.onUpdate && T.onUpdate(P, T.domElement);
@@ -529,18 +529,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
529
529
  for (P in T.transformsData) (function(M) {
530
530
  var q = T.transformsData[M], I = {}, E = q.presets;
531
531
  (E === void 0 ? [] : E).forEach(function(ee) {
532
- var U, Q = s(ee.split(":"), 3), J = Q[0], F = Q[1], ee = Q[2], Q = window.lax.presets[J];
533
- Q ? (U = Q(F, ee), Object.keys(U).forEach(function(he) {
532
+ var U, Q = s(ee.split(":"), 3), J = Q[0], Y = Q[1], ee = Q[2], Q = window.lax.presets[J];
533
+ Q ? (U = Q(Y, ee), Object.keys(U).forEach(function(he) {
534
534
  q[he] = U[he];
535
535
  })) : console.error("Lax preset cannot be found with name: ", J);
536
536
  }), delete q.presets;
537
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) {
538
+ var U = s(q[H], 3), ee = U[0], Y = 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(), Y = x(Y, D).map(function(Q) {
539
539
  return m(Q, J, T.groupIndex);
540
540
  }), ee = x(ee, D).map(function(Q) {
541
541
  return m(Q, J, T.groupIndex);
542
542
  });
543
- I[H] = [F, ee, U];
543
+ I[H] = [Y, ee, U];
544
544
  })($);
545
545
  T.transforms[M] = I;
546
546
  })(P);
@@ -552,7 +552,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
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 = L, this.groupIndex = A;
555
+ }), this.selector = f, this.laxInstance = y, this.domElement = k, this.transformsData = C, this.groupIndex = A;
556
556
  var R = (A = B.style) === void 0 ? {} : A, B = B.onUpdate;
557
557
  Object.keys(R).forEach(function(P) {
558
558
  k.style.setProperty(P, R[P]);
@@ -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"), 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;
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"), 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 = {}, 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
598
+ let J = {}, Y = {}, ee = {}, Q = {}, he = {}, Ee = {}, me = {}, Te = {}, ye = {}, re = {}, N = {}, G = {}, ie = {}, ce = {}, fe = {}, le = {}, se = {}, te = {}, F = {}, Se = {}, pe = {}, Me = {}, ne = {}, Pe = {}, Ce = {}, De = {}, Ue = {}, Fe = {}, 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"), F = 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"), Ce = this.getObjVal(i, "data-t-2200"), De = this.getObjVal(i, "data-t-2300"), Ue = this.getObjVal(i, "data-t-2400"), Fe = 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") && (F = 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") && (Ce = 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") && (Fe = 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") && (F = 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") && (Ce = 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") && (Fe = 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") && (F = 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") && (Ce = 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") && (Fe = 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, Le = re, Re = N, Ye = G, He = ie, Ge = ce, Oe = fe, Z = le, _e = se, Ie = te, vt = F, wt = Se, xt = pe, _t = Me, kt = ne, St = Pe, Et = Ce, Tt = De, Lt = Ue, Ct = Fe, Ot = O, At = j, Mt = z, nt = window.innerHeight;
601
+ nt < 730 ? (J = ve, Y = be, ee = X, Q = we, he = ue, Ee = qe, me = xe, Te = Le, ye = Re, re = Ye, N = He, G = Ge, ie = Oe, ce = Z, fe = _e, le = Ie, se = vt, te = wt, F = xt, Se = _t, pe = kt, Me = St, ne = Et, Pe = Tt, Ce = Lt, De = Ct, Ue = Ot, Fe = At, O = Mt, j = {}, z = {}) : nt >= 730 && nt < 790 ? (Y = ve, ee = be, Q = X, he = we, Ee = ue, me = qe, Te = xe, ye = Le, re = Re, N = Ye, G = He, ie = Ge, ce = Oe, fe = Z, le = _e, se = Ie, te = vt, F = wt, Se = xt, pe = _t, Me = kt, ne = St, Pe = Et, Ce = Tt, De = Lt, Ue = Ct, Fe = 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 = Le, G = Re, ie = Ye, ce = He, fe = Ge, le = Oe, se = Z, te = _e, F = Ie, Se = vt, pe = wt, Me = xt, ne = _t, Pe = kt, Ce = St, De = Et, Ue = Tt, Fe = Lt, O = Ct, j = Ot, z = At, V = Mt) : (ee = {}, Q = {}, he = ve, Ee = be, me = X, Te = we, ye = ue, re = qe, N = xe, G = Le, ie = Re, ce = Ye, fe = He, le = Ge, se = Oe, te = Z, F = _e, Se = Ie, pe = vt, Me = wt, ne = xt, Pe = _t, Ce = kt, De = St, Ue = Et, Fe = Tt, O = Lt, j = Ct, z = Ot, V = At, K = Mt));
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(R).length !== 0 && (L = this.parseObj(R, "elInY+150", L)), Object.keys(B).length !== 0 && (L = this.parseObj(B, "elInY+300 ", L)), Object.keys(P).length !== 0 && (L = this.parseObj(P, "elCenterY-150", L)), Object.keys(D).length !== 0 && (L = this.parseObj(D, "elCenterY", L)), Object.keys(M).length !== 0 && (L = this.parseObj(M, "elCenterY+150", L)), Object.keys(q).length !== 0 && (L = this.parseObj(q, "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(Y).length !== 0 && (L = this.parseObj(Y, "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(F).length !== 0 && (L = this.parseObj(F, "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(Me).length !== 0 && (L = this.parseObj(Me, "elInY+1900 ", L)), Object.keys(ne).length !== 0 && (L = this.parseObj(ne, "elInY+2000 ", L)), Object.keys(Pe).length !== 0 && (L = this.parseObj(Pe, "elInY+2100 ", L)), Object.keys(Ce).length !== 0 && (L = this.parseObj(Ce, "elInY+2200 ", L)), Object.keys(De).length !== 0 && (L = this.parseObj(De, "elInY+2300 ", L)), Object.keys(Ue).length !== 0 && (L = this.parseObj(Ue, "elInY+2400 ", L)), Object.keys(Fe).length !== 0 && (L = this.parseObj(Fe, "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
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);
@@ -695,15 +695,15 @@ function mi() {
695
695
  * Date: 2013-04-10
696
696
  */
697
697
  var si, qi;
698
- function Cs() {
698
+ function Ls() {
699
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 Ls = Cs();
706
- const Yt = /* @__PURE__ */ gi(Ls);
705
+ var Cs = Ls();
706
+ const Ft = /* @__PURE__ */ gi(Cs);
707
707
  Array.prototype.each = function(u) {
708
708
  const e = this.length;
709
709
  for (let t = 0; t < e; t++) {
@@ -726,7 +726,7 @@ let $t = class {
726
726
  * @param {DefaultOptions.trigger} [options=DefaultOptions.trigger] options
727
727
  */
728
728
  constructor(e, t) {
729
- this.element = e, t = Yt(new mi().trigger, t), this.offset = t.offset, this.toggle = t.toggle, this.once = t.once, this.visible = null, this.active = !0;
729
+ this.element = e, t = Ft(new mi().trigger, t), this.offset = t.offset, this.toggle = t.toggle, this.once = t.once, this.visible = null, this.active = !0;
730
730
  }
731
731
  /**
732
732
  * Checks if the Trigger is in the viewport, calls the callbacks and toggles the classes
@@ -907,7 +907,7 @@ let $t = class {
907
907
  _parseOptions(e) {
908
908
  let t = new mi().scroll;
909
909
  typeof e != "function" ? (t.callback = () => {
910
- }, t = Yt(t, e)) : t.callback = e, this.element = t.element, this.sustain = t.sustain, this.callback = t.callback, this.startCallback = t.start, this.stopCallback = t.stop, this.directionChange = t.directionChange;
910
+ }, t = Ft(t, e)) : t.callback = e, this.element = t.element, this.sustain = t.sustain, this.callback = t.callback, this.startCallback = t.start, this.stopCallback = t.stop, this.directionChange = t.directionChange;
911
911
  }
912
912
  /**
913
913
  * Callback when the user scrolled the element
@@ -1001,7 +1001,7 @@ class Rs {
1001
1001
  * @private
1002
1002
  */
1003
1003
  _parseOptions(e) {
1004
- e = Yt(new mi(), e), this.defaultTrigger = e.trigger, this.scrollOptions = e.scroll;
1004
+ e = Ft(new mi(), e), this.defaultTrigger = e.trigger, this.scrollOptions = e.scroll;
1005
1005
  }
1006
1006
  /**
1007
1007
  * Initializes the collection, picks all [data-scroll] elements as initial elements
@@ -1074,7 +1074,7 @@ class Rs {
1074
1074
  * @returns Trigger
1075
1075
  */
1076
1076
  createTrigger(e, t) {
1077
- return new ct(e, Yt(this.defaultTrigger, t));
1077
+ return new ct(e, Ft(this.defaultTrigger, t));
1078
1078
  }
1079
1079
  /**
1080
1080
  * Creates an array of triggers
@@ -1420,14 +1420,14 @@ function Ds(u) {
1420
1420
  }
1421
1421
  });
1422
1422
  }
1423
- function Ft(u) {
1423
+ function Yt(u) {
1424
1424
  return Math.sqrt(u.x * u.x + u.y * u.y);
1425
1425
  }
1426
1426
  function $s(u, e) {
1427
1427
  return u.x * e.x + u.y * e.y;
1428
1428
  }
1429
1429
  function Hs(u, e) {
1430
- var t = Ft(u) * Ft(e);
1430
+ var t = Yt(u) * Yt(e);
1431
1431
  if (t === 0)
1432
1432
  return 0;
1433
1433
  var s = $s(u, e) / t;
@@ -1483,7 +1483,7 @@ class Us {
1483
1483
  if (i > 1) {
1484
1484
  this._cancelLongTap(), this._cancelSingleTap();
1485
1485
  var n = { x: e.touches[1].pageX - this.x1, y: e.touches[1].pageY - this.y1 };
1486
- s.x = n.x, s.y = n.y, this.pinchStartLen = Ft(s), this.multipointStart.dispatch(e, this.element);
1486
+ s.x = n.x, s.y = n.y, this.pinchStartLen = Yt(s), this.multipointStart.dispatch(e, this.element);
1487
1487
  }
1488
1488
  this._preventTap = !1, this.longTapTimeout = setTimeout(
1489
1489
  (function() {
@@ -1497,7 +1497,7 @@ class Us {
1497
1497
  var t = this.preV, s = e.touches.length, i = e.touches[0].pageX, n = e.touches[0].pageY;
1498
1498
  if (this.isDoubleTap = !1, s > 1) {
1499
1499
  var r = e.touches[1].pageX, a = e.touches[1].pageY, l = { x: e.touches[1].pageX - i, y: e.touches[1].pageY - n };
1500
- t.x !== null && (this.pinchStartLen > 0 && (e.zoom = Ft(l) / this.pinchStartLen, this.pinch.dispatch(e, this.element)), e.angle = Vs(l, t), this.rotate.dispatch(e, this.element)), t.x = l.x, t.y = l.y, this.x2 !== null && this.sx2 !== null ? (e.deltaX = (i - this.x2 + r - this.sx2) / 2, e.deltaY = (n - this.y2 + a - this.sy2) / 2) : (e.deltaX = 0, e.deltaY = 0), this.twoFingerPressMove.dispatch(e, this.element), this.sx2 = r, this.sy2 = a;
1500
+ t.x !== null && (this.pinchStartLen > 0 && (e.zoom = Yt(l) / this.pinchStartLen, this.pinch.dispatch(e, this.element)), e.angle = Vs(l, t), this.rotate.dispatch(e, this.element)), t.x = l.x, t.y = l.y, this.x2 !== null && this.sx2 !== null ? (e.deltaX = (i - this.x2 + r - this.sx2) / 2, e.deltaY = (n - this.y2 + a - this.sy2) / 2) : (e.deltaX = 0, e.deltaY = 0), this.twoFingerPressMove.dispatch(e, this.element), this.sx2 = r, this.sy2 = a;
1501
1501
  } else {
1502
1502
  if (this.x2 !== null) {
1503
1503
  e.deltaX = i - this.x2, e.deltaY = n - this.y2;
@@ -1559,29 +1559,29 @@ function ri(u) {
1559
1559
  }
1560
1560
  }), s.style.opacity = "", n && (n.style.opacity = "");
1561
1561
  }
1562
- function Ys(u) {
1562
+ function Fs(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 = {}, L = {}, T = 0, A = 0, R;
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, R;
1566
1566
  const B = document.getElementById("glightbox-slider"), P = document.querySelector(".goverlay"), D = new Us(B, {
1567
1567
  touchStart: (M) => {
1568
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)
1569
+ if (C = 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
1571
  M.preventDefault();
1572
1572
  }
1573
1573
  },
1574
1574
  touchMove: (M) => {
1575
- if (!i || (L = M.targetTouches[0], h || p))
1575
+ if (!i || (C = M.targetTouches[0], h || p))
1576
1576
  return;
1577
1577
  if (R && R.offsetHeight > s) {
1578
- const U = k.pageX - L.pageX;
1578
+ const U = k.pageX - C.pageX;
1579
1579
  if (Math.abs(U) <= 13)
1580
1580
  return !1;
1581
1581
  }
1582
1582
  l = !0;
1583
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;
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;
1585
1585
  let H;
1586
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)`);
@@ -1623,7 +1623,7 @@ function Ys(u) {
1623
1623
  },
1624
1624
  pressMove: (M) => {
1625
1625
  if (p && !h) {
1626
- var q = L.pageX - k.pageX, I = L.pageY - k.pageY;
1626
+ var q = C.pageX - k.pageX, I = C.pageY - k.pageY;
1627
1627
  S && (q = q + S), b && (I = I + b), g = q, w = I;
1628
1628
  let E = `translate3d(${q}px, ${I}px, 0)`;
1629
1629
  o && (E += ` scale3d(${o}, ${o}, 1)`), Ht(a, E);
@@ -1650,7 +1650,7 @@ function Ys(u) {
1650
1650
  });
1651
1651
  u.events.touch = D;
1652
1652
  }
1653
- class Fs {
1653
+ class Ys {
1654
1654
  constructor(e, t, s = null) {
1655
1655
  if (this.img = e, this.slide = t, this.onclose = s, this.img.setZoomEvents)
1656
1656
  return !1;
@@ -2000,7 +2000,7 @@ class It {
2000
2000
  toleranceY: s.dragToleranceY,
2001
2001
  slide: e,
2002
2002
  instance: this.instance
2003
- }), i.zoomable && w.naturalWidth > w.offsetWidth && (ae(w, "zoomable"), new Fs(w, e, () => {
2003
+ }), i.zoomable && w.naturalWidth > w.offsetWidth && (ae(w, "zoomable"), new Ys(w, e, () => {
2004
2004
  this.instance.resize();
2005
2005
  })), ge(h) && h();
2006
2006
  });
@@ -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 && Ds(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 && Fs(this), this.settings.keyboardNavigation && Ds(this);
2201
2201
  }
2202
2202
  /**
2203
2203
  * Open at specific index
@@ -2949,7 +2949,7 @@ function Ui(u, e) {
2949
2949
  }
2950
2950
  return t;
2951
2951
  }
2952
- function Yi(u) {
2952
+ function Fi(u) {
2953
2953
  for (var e = 1; e < arguments.length; e++) {
2954
2954
  var t = arguments[e] != null ? arguments[e] : {};
2955
2955
  e % 2 ? Ui(Object(t), !0).forEach(function(s) {
@@ -3309,7 +3309,7 @@ function di(u, e) {
3309
3309
  t.classes = Object.assign({}, u.classes, e.classes);
3310
3310
  var s = ["direction", "type", "slide", "arrow", "nav"];
3311
3311
  s.forEach(function(i) {
3312
- e.classes.hasOwnProperty(i) && (t.classes[i] = Yi(Yi({}, u.classes[i]), e.classes[i]));
3312
+ e.classes.hasOwnProperty(i) && (t.classes[i] = Fi(Fi({}, u.classes[i]), e.classes[i]));
3313
3313
  });
3314
3314
  }
3315
3315
  return e.hasOwnProperty("breakpoints") && (t.breakpoints = Object.assign({}, u.breakpoints, e.breakpoints)), t;
@@ -3697,14 +3697,14 @@ function gn(u, e, t) {
3697
3697
  }
3698
3698
  }), s;
3699
3699
  }
3700
- function Fi() {
3700
+ function Yi() {
3701
3701
  return (/* @__PURE__ */ new Date()).getTime();
3702
3702
  }
3703
3703
  function Kt(u, e) {
3704
3704
  var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s, i, n, r, a = 0, l = function() {
3705
- a = t.leading === !1 ? 0 : Fi(), s = null, r = u.apply(i, n), s || (i = n = null);
3705
+ a = t.leading === !1 ? 0 : Yi(), s = null, r = u.apply(i, n), s || (i = n = null);
3706
3706
  }, c = function() {
3707
- var o = Fi();
3707
+ var o = Yi();
3708
3708
  !a && t.leading === !1 && (a = o);
3709
3709
  var h = e - (o - a);
3710
3710
  return i = this, n = arguments, h <= 0 || h > e ? (s && (clearTimeout(s), s = null), a = o, r = u.apply(i, n), s || (i = n = null)) : !s && t.trailing !== !1 && (s = setTimeout(l, h)), r;
@@ -4237,7 +4237,7 @@ var En = ["ltr", "rtl"], Tn = {
4237
4237
  "<": ">",
4238
4238
  "=": "="
4239
4239
  };
4240
- function Cn(u, e, t) {
4240
+ function Ln(u, e, t) {
4241
4241
  var s = {
4242
4242
  /**
4243
4243
  * Setups gap value based on settings.
@@ -4309,7 +4309,7 @@ function Cn(u, e, t) {
4309
4309
  s.addClass();
4310
4310
  }), s;
4311
4311
  }
4312
- function Ln(u, e) {
4312
+ function Cn(u, e) {
4313
4313
  return {
4314
4314
  /**
4315
4315
  * Negates the passed translate if glide is in RTL option.
@@ -4381,7 +4381,7 @@ function qn(u, e) {
4381
4381
  };
4382
4382
  }
4383
4383
  function Rn(u, e, t) {
4384
- var s = [On, An, Mn, qn].concat(u._t, [Ln]);
4384
+ var s = [On, An, Mn, qn].concat(u._t, [Cn]);
4385
4385
  return {
4386
4386
  /**
4387
4387
  * Piplines translate value with registered transformers.
@@ -5114,7 +5114,7 @@ function Un(u, e, t) {
5114
5114
  function Zi(u) {
5115
5115
  return pt(u) ? hn(u) : (it("Breakpoints option must be an object"), {});
5116
5116
  }
5117
- function Yn(u, e, t) {
5117
+ function Fn(u, e, t) {
5118
5118
  var s = new st(), i = u.settings, n = Zi(i.breakpoints), r = Object.assign({}, i), a = {
5119
5119
  /**
5120
5120
  * Matches settings for currectly matching media breakpoint.
@@ -5139,12 +5139,12 @@ function Yn(u, e, t) {
5139
5139
  s.off("resize", window);
5140
5140
  }), a;
5141
5141
  }
5142
- var Fn = {
5142
+ var Yn = {
5143
5143
  // Required
5144
5144
  Html: yn,
5145
5145
  Translate: In,
5146
5146
  Transition: jn,
5147
- Direction: Cn,
5147
+ Direction: Ln,
5148
5148
  Peek: vn,
5149
5149
  Sizes: xn,
5150
5150
  Gaps: mn,
@@ -5160,7 +5160,7 @@ var Fn = {
5160
5160
  Controls: Vn,
5161
5161
  Keyboard: Bn,
5162
5162
  Autoplay: Un,
5163
- Breakpoints: Yn
5163
+ Breakpoints: Fn
5164
5164
  }, Wn = /* @__PURE__ */ (function(u) {
5165
5165
  sn(t, u);
5166
5166
  var e = on(t);
@@ -5171,7 +5171,7 @@ var Fn = {
5171
5171
  key: "mount",
5172
5172
  value: function() {
5173
5173
  var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5174
- return Bt(ht(t.prototype), "mount", this).call(this, Object.assign({}, Fn, i));
5174
+ return Bt(ht(t.prototype), "mount", this).call(this, Object.assign({}, Yn, i));
5175
5175
  }
5176
5176
  }]), t;
5177
5177
  })(fn);
@@ -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(), Ci = {
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 = {
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
- ...Ci,
5316
+ ...Li,
5317
5317
  link: de(/^!?\[(label)\]\((.*?)\)/).replace("label", Gt).getRegex(),
5318
5318
  reflink: de(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Gt).getRegex()
5319
5319
  }, fi = {
5320
- ...Ci,
5320
+ ...Li,
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(),
@@ -5333,7 +5333,7 @@ const Be = {
5333
5333
  gfm: nr,
5334
5334
  pedantic: rr
5335
5335
  }, ft = {
5336
- normal: Ci,
5336
+ normal: Li,
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 Cr(u, e) {
5390
+ function Lr(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 Lr(u, e, t) {
5416
+ function Cr(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 = Lr(s, t[3] || "", this.rules);
5464
+ const s = t[0], i = Cr(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 = Cr(t[2], "()");
5749
+ const r = Lr(t[2], "()");
5750
5750
  if (r === -2)
5751
5751
  return;
5752
5752
  if (r > -1) {
@@ -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 Li {
6292
+ class Ci {
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 Li();
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();
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 = Li;
6532
+ TextRenderer = Ci;
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 = Li;
6716
+ oe.TextRenderer = Ci;
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 L = k.target.result.split(",")[1];
8388
- _(L);
8387
+ const C = k.target.result.split(",")[1];
8388
+ _(C);
8389
8389
  }, y.onerror = f, y.readAsDataURL(m);
8390
8390
  });
8391
8391
  c.push({
@@ -8447,15 +8447,15 @@ 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, 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 = [];
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, 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 && L && !(y === "0" && k === "0" && L === "0") && E.push({
8455
+ }), y && k && C && !(y === "0" && k === "0" && C === "0") && E.push({
8456
8456
  r: y,
8457
8457
  g: k,
8458
- b: L
8458
+ b: C
8459
8459
  }), T && A && R && !(T === "0" && A === "0" && R === "0") && E.push({
8460
8460
  r: T,
8461
8461
  g: A,
@@ -8471,9 +8471,9 @@ Check the information and return the details.
8471
8471
  });
8472
8472
  let H = await (async () => {
8473
8473
  let U = [], J = this.builder.getFormValues();
8474
- for (const F of J)
8475
- if (F.value instanceof FileList && F.type === "multifile") {
8476
- const ee = F.value;
8474
+ for (const Y of J)
8475
+ if (Y.value instanceof FileList && Y.type === "multifile") {
8476
+ const ee = Y.value;
8477
8477
  if (ee.length > 0) {
8478
8478
  let Q = 0;
8479
8479
  for (const he of ee) {
@@ -8578,14 +8578,14 @@ 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, 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, $ = [];
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, 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 && L && T && !(k === "0" && L === "0" && T === "0") && $.push({
8586
+ }), k && C && T && !(k === "0" && C === "0" && T === "0") && $.push({
8587
8587
  r: k,
8588
- g: L,
8588
+ g: C,
8589
8589
  b: T
8590
8590
  }), A && R && B && !(A === "0" && R === "0" && B === "0") && $.push({
8591
8591
  r: A,
@@ -8627,15 +8627,15 @@ 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, 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 = [];
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, 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 && L && !(y === "0" && k === "0" && L === "0") && E.push({
8635
+ }), y && k && C && !(y === "0" && k === "0" && C === "0") && E.push({
8636
8636
  r: y,
8637
8637
  g: k,
8638
- b: L
8638
+ b: C
8639
8639
  }), T && A && R && !(T === "0" && A === "0" && R === "0") && E.push({
8640
8640
  r: T,
8641
8641
  g: A,
@@ -8676,15 +8676,15 @@ 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, 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 = [];
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, 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 && L && !(y === "0" && k === "0" && L === "0") && E.push({
8684
+ }), y && k && C && !(y === "0" && k === "0" && C === "0") && E.push({
8685
8685
  r: y,
8686
8686
  g: k,
8687
- b: L
8687
+ b: C
8688
8688
  }), T && A && R && !(T === "0" && A === "0" && R === "0") && E.push({
8689
8689
  r: T,
8690
8690
  g: A,
@@ -9608,17 +9608,17 @@ class qr {
9608
9608
  }, k.onload = () => {
9609
9609
  this.loaded();
9610
9610
  };
9611
- let L = null, T = null;
9611
+ let C = null, T = null;
9612
9612
  const A = () => {
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));
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));
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`, L) {
9618
- const F = document.createElement("canvas");
9619
- F.width = L.width, F.height = L.height, F.getContext("2d").putImageData(L, 0, 0);
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) {
9618
+ const Y = document.createElement("canvas");
9619
+ Y.width = C.width, Y.height = C.height, Y.getContext("2d").putImageData(C, 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, 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);
9621
+ Q.width = T.width, Q.height = T.height, Q.getContext("2d").putImageData(T, 0, 0), w.drawImage(Y, 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);
9622
9622
  }
9623
9623
  };
9624
9624
  let R = !1, B = parseInt(l.value, 10);
@@ -9647,8 +9647,8 @@ class qr {
9647
9647
  const {
9648
9648
  x: $,
9649
9649
  y: H
9650
- } = P(E), U = S.width / g.width, J = S.height / g.height, F = $ * U, ee = H * J;
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();
9650
+ } = P(E), U = S.width / g.width, J = S.height / g.height, Y = $ * U, ee = H * J;
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(Y, ee, B / 2 * U, 0, Math.PI * 2), b.fill();
9652
9652
  };
9653
9653
  g.addEventListener("mousedown", D), g.addEventListener("mouseup", M), g.addEventListener("mousemove", q), g.addEventListener("touchstart", (E) => {
9654
9654
  D(E), E.preventDefault();
@@ -10250,8 +10250,8 @@ class Rr {
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 L = document.createElement("div");
10254
- L.className = "field-note", L.innerHTML = o.fieldNote, p.appendChild(L);
10253
+ const C = document.createElement("div");
10254
+ C.className = "field-note", C.innerHTML = o.fieldNote, p.appendChild(C);
10255
10255
  }
10256
10256
  const m = document.createElement("div");
10257
10257
  m.className = "slider-container", p.appendChild(m);
@@ -10283,10 +10283,10 @@ class Rr {
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 L = document.createElement("span");
10287
- L.className = "peer-span-rounded", y.appendChild(L);
10286
+ const C = document.createElement("span");
10287
+ C.className = "peer-span-rounded", y.appendChild(C);
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
- L.innerHTML = T, _ === 0 && o.isRequired && k.setAttribute("required", "required");
10289
+ C.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 Rr {
10300
10300
  f.innerHTML = y;
10301
10301
  const k = document.createElement("span");
10302
10302
  k.innerText = o.otherText, v.appendChild(k);
10303
- const L = document.createElement("div");
10304
- p.appendChild(L);
10303
+ const C = document.createElement("div");
10304
+ p.appendChild(C);
10305
10305
  const T = document.createElement("input");
10306
- T.type = "text", T.name = w + "_other", T.className = "inp-base", L.appendChild(T), _.addEventListener("change", this.changeListener), T.addEventListener("input", this.inputListener);
10306
+ T.type = "text", T.name = w + "_other", T.className = "inp-base", C.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 Rr {
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 L = document.createElement("span");
10325
- L.className = "peer-span-square", y.appendChild(L);
10324
+ const C = document.createElement("span");
10325
+ C.className = "peer-span-square", y.appendChild(C);
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
- L.innerHTML = T;
10329
+ C.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 Rr {
10342
10342
  f.innerHTML = y;
10343
10343
  const k = document.createElement("span");
10344
10344
  k.innerText = o.otherText, v.appendChild(k);
10345
- const L = document.createElement("div");
10346
- p.appendChild(L);
10345
+ const C = document.createElement("div");
10346
+ p.appendChild(C);
10347
10347
  const T = document.createElement("input");
10348
- T.type = "text", T.name = w + "_other", T.className = "inp-base", L.appendChild(T), _.addEventListener("change", this.changeListener), T.addEventListener("input", this.inputListener);
10348
+ T.type = "text", T.name = w + "_other", T.className = "inp-base", C.appendChild(T), _.addEventListener("change", this.changeListener), T.addEventListener("input", this.inputListener);
10349
10349
  }
10350
10350
  }
10351
10351
  if (g === "switch") {
@@ -10406,9 +10406,9 @@ class Rr {
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 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");
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");
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 Rr {
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 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 = `
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 = `
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(L));
10484
+ `, y.appendChild(C));
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">
@@ -10492,7 +10492,7 @@ class Rr {
10492
10492
  const A = document.createElement("div");
10493
10493
  A.className = "file-preview-container", m.appendChild(A);
10494
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) => {
10495
+ R.className = "file-drop-info-highlight", R.id = `file_name_${b}`, m.appendChild(R), C && C.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");
@@ -10659,11 +10659,11 @@ class Rr {
10659
10659
  </div>
10660
10660
  `;
10661
10661
  this.appendHtml(m, E);
10662
- const $ = p.querySelector(".livevideo"), H = p.querySelector(".photo-captured"), U = p.querySelector(".btn-selectfile2"), J = p.querySelector(".btn-takephoto2"), F = p.querySelector(".btn-capturephoto"), ee = p.querySelector(".btn-clearphoto"), Q = p.querySelector(".btn-stopcamera");
10662
+ const $ = p.querySelector(".livevideo"), H = p.querySelector(".photo-captured"), U = p.querySelector(".btn-selectfile2"), J = p.querySelector(".btn-takephoto2"), Y = p.querySelector(".btn-capturephoto"), ee = p.querySelector(".btn-clearphoto"), Q = p.querySelector(".btn-stopcamera");
10663
10663
  this.photoBlob = {};
10664
10664
  let he;
10665
10665
  U && U.addEventListener("click", (N) => {
10666
- N.preventDefault(), L.click();
10666
+ N.preventDefault(), C.click();
10667
10667
  });
10668
10668
  const Ee = async () => {
10669
10669
  const N = p.querySelector(".btn-clearfile");
@@ -10673,10 +10673,10 @@ class Rr {
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", R.style.display = "none";
10676
+ alert("Unable to access the camera."), $.style.display = "none", Y.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", R.style.display = "none";
10679
+ J.style.display = "none", H.style.display = "none", $.style.display = "", Y.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,9 +10684,9 @@ class Rr {
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 = "", R.style.display = "";
10688
- }), F.addEventListener("click", (N) => {
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) => {
10687
+ he && he.getTracks().forEach((N) => N.stop()), $.style.display = "none", Y.style.display = "none", Q.style.display = "none", J.style.display = "none", y.style.display = "", R.style.display = "";
10688
+ }), Y.addEventListener("click", (N) => {
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", Y.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");
@@ -10702,9 +10702,9 @@ class Rr {
10702
10702
  });
10703
10703
  const Te = (N, G) => {
10704
10704
  const ie = `.${N.split(".").pop().toLowerCase()}`;
10705
- if (!P.some((Y) => Y.extensions.split(", ").includes(ie)))
10705
+ if (!P.some((F) => F.extensions.split(", ").includes(ie)))
10706
10706
  return;
10707
- let fe = B.images.some((Y) => Y.extensions.split(", ").includes(ie));
10707
+ let fe = B.images.some((F) => F.extensions.split(", ").includes(ie));
10708
10708
  if (o.useImageMask) {
10709
10709
  if (!fe)
10710
10710
  return;
@@ -10718,21 +10718,21 @@ class Rr {
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
- `, R.appendChild(se), se.addEventListener("click", (Y) => {
10721
+ `, R.appendChild(se), se.addEventListener("click", (F) => {
10722
10722
  let pe = se.closest(".form-field").querySelector(".img-preview");
10723
10723
  pe && pe.remove(), v.value = "", _.value = "", R.innerHTML = "", k.innerText = this.out(this.settings.fileUploadText), o.useImageMask && q.clearImage();
10724
10724
  const Me = document.querySelector(".formview-container .submit-container");
10725
10725
  Me && setTimeout(() => {
10726
10726
  this.stickyElement(Me);
10727
- }, 1e3), Y.preventDefault(), Y.stopImmediatePropagation();
10727
+ }, 1e3), F.preventDefault(), F.stopImmediatePropagation();
10728
10728
  }), fe) {
10729
- let Y = m.querySelector(".formview-container .img-preview");
10730
- Y || (Y = document.createElement("img"), Y.className = "img-preview", m.appendChild(Y)), Y.src = N;
10729
+ let F = m.querySelector(".formview-container .img-preview");
10730
+ F || (F = document.createElement("img"), F.className = "img-preview", m.appendChild(F)), F.src = N;
10731
10731
  } else
10732
10732
  I();
10733
10733
  if (!G) {
10734
- const Y = this.getFormValues();
10735
- this.settings.onInputChange && this.settings.onInputChange(Y);
10734
+ const F = this.getFormValues();
10735
+ this.settings.onInputChange && this.settings.onInputChange(F);
10736
10736
  }
10737
10737
  const te = document.querySelector(".formview-container .submit-container");
10738
10738
  te && setTimeout(() => {
@@ -10762,8 +10762,8 @@ class Rr {
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
10764
  `, R.appendChild(ce), ce.addEventListener("click", (se) => {
10765
- let Y = ce.closest(".form-field").querySelector(".img-preview");
10766
- Y && Y.remove(), _.value = "", R.innerHTML = "", k.innerText = this.out(this.settings.fileUploadText), o.useImageMask && q.clearImage();
10765
+ let F = ce.closest(".form-field").querySelector(".img-preview");
10766
+ F && F.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);
@@ -10771,8 +10771,8 @@ class Rr {
10771
10771
  }), N.type.startsWith("image/")) {
10772
10772
  const se = new FileReader();
10773
10773
  se.onload = function(te) {
10774
- let Y = m.querySelector(".formview-container .img-preview");
10775
- Y || (Y = document.createElement("img"), Y.className = "img-preview", m.appendChild(Y)), Y.src = te.target.result;
10774
+ let F = m.querySelector(".formview-container .img-preview");
10775
+ F || (F = document.createElement("img"), F.className = "img-preview", m.appendChild(F)), F.src = te.target.result;
10776
10776
  }, se.readAsDataURL(N);
10777
10777
  } else
10778
10778
  I();
@@ -10785,7 +10785,7 @@ class Rr {
10785
10785
  }
10786
10786
  }, re = (N) => {
10787
10787
  if (N) {
10788
- if (P = P.concat(B.images), !P.some((Y) => Y.type === N.type)) {
10788
+ if (P = P.concat(B.images), !P.some((F) => F.type === N.type)) {
10789
10789
  alert(this.out("Invalid file type."));
10790
10790
  return;
10791
10791
  }
@@ -10800,24 +10800,24 @@ class Rr {
10800
10800
  <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
10801
10801
  <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" />
10802
10802
  </svg>
10803
- `, ce.appendChild(le), le.addEventListener("click", (Y) => {
10803
+ `, ce.appendChild(le), le.addEventListener("click", (F) => {
10804
10804
  const Se = le.closest(".image-item");
10805
10805
  Se && Se.remove(), ((ne) => {
10806
- const Pe = new DataTransfer(), Le = _.files;
10807
- Array.from(Le).forEach((De) => {
10806
+ const Pe = new DataTransfer(), Ce = _.files;
10807
+ Array.from(Ce).forEach((De) => {
10808
10808
  De !== ne && Pe.items.add(De);
10809
10809
  }), _.files = Pe.files;
10810
10810
  })(N);
10811
10811
  const Me = document.querySelector(".formview-container .submit-container");
10812
10812
  Me && setTimeout(() => {
10813
10813
  this.stickyElement(Me);
10814
- }, 1e3), Y.preventDefault(), Y.stopImmediatePropagation();
10814
+ }, 1e3), F.preventDefault(), F.stopImmediatePropagation();
10815
10815
  }), N.type.startsWith("image/")) {
10816
- const Y = new FileReader();
10817
- Y.onload = function(Se) {
10816
+ const F = new FileReader();
10817
+ F.onload = function(Se) {
10818
10818
  let pe = document.createElement("img");
10819
10819
  pe.className = "img-preview", ie.appendChild(pe), pe.src = Se.target.result;
10820
- }, Y.readAsDataURL(N);
10820
+ }, F.readAsDataURL(N);
10821
10821
  }
10822
10822
  const se = this.getFormValues();
10823
10823
  this.settings.onInputChange && this.settings.onInputChange(se);
@@ -10915,8 +10915,8 @@ class Rr {
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 L = t.resetText || this.settings.resetText;
10919
- k.innerText = L, x.appendChild(k), k.addEventListener("click", (A) => {
10918
+ const C = t.resetText || this.settings.resetText;
10919
+ k.innerText = C, x.appendChild(k), k.addEventListener("click", (A) => {
10920
10920
  A.preventDefault();
10921
10921
  const R = k.closest("form");
10922
10922
  R && (R.reset(), R.querySelectorAll(".btn-clearfile").forEach((D) => {
@@ -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 L = y.value[0];
11391
- if (!L) continue;
11390
+ const C = y.value[0];
11391
+ if (!C) continue;
11392
11392
  const T = await new Promise((A, R) => {
11393
11393
  const B = new FileReader();
11394
11394
  B.onload = (P) => {
11395
11395
  const D = P.target.result.split(",")[1];
11396
11396
  A(D);
11397
- }, B.onerror = R, B.readAsDataURL(L);
11397
+ }, B.onerror = R, B.readAsDataURL(C);
11398
11398
  });
11399
11399
  _ = _.replaceAll(`{{${y.name}}}`, T), _ = _.replaceAll(`{{${y.name.toUpperCase()}}}`, T);
11400
11400
  }
@@ -11419,7 +11419,7 @@ ${e}`);
11419
11419
  }), v.context = _;
11420
11420
  });
11421
11421
  }
11422
- const p = async (v, _, f, y, k, L, T, A) => {
11422
+ const p = async (v, _, f, y, k, C, T, A) => {
11423
11423
  const R = document.createElement("div");
11424
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">
@@ -11465,7 +11465,7 @@ ${q.data}
11465
11465
  }
11466
11466
  if (this.settings.assistantId) {
11467
11467
  if (this.settings.assistantStreamUrl)
11468
- await this.assistantStream(v, _, k, L, async (I) => {
11468
+ await this.assistantStream(v, _, k, C, async (I) => {
11469
11469
  if (!(I && typeof I == "object")) {
11470
11470
  if (D += I, !A) {
11471
11471
  const E = oe.parse(D);
@@ -11479,7 +11479,7 @@ ${q.data}
11479
11479
  }, 10);
11480
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, L);
11482
+ let I = await this.assistant(v, _, k, C);
11483
11483
  if (!I)
11484
11484
  return !1;
11485
11485
  if (D = I, A)
@@ -11495,13 +11495,13 @@ ${q.data}
11495
11495
  let J = 0;
11496
11496
  for (; J < U.length; ) {
11497
11497
  if ($ = I.slice(0, $.length + 1), J++, !A) {
11498
- const F = oe.parse($);
11499
- R.innerHTML = F, E = F;
11498
+ const Y = oe.parse($);
11499
+ R.innerHTML = Y, E = Y;
11500
11500
  }
11501
- await new Promise((F) => setTimeout(F, 50));
11501
+ await new Promise((Y) => setTimeout(Y, 50));
11502
11502
  }
11503
11503
  };
11504
- await this.sendStream(v, _, k, y, L, async (U) => {
11504
+ await this.sendStream(v, _, k, y, C, async (U) => {
11505
11505
  D += U, I += U, await H(U);
11506
11506
  }), await new Promise((U) => {
11507
11507
  const J = setInterval(() => {
@@ -11509,7 +11509,7 @@ ${q.data}
11509
11509
  }, 10);
11510
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, L);
11512
+ let I = await this.send(v, _, k, y, C);
11513
11513
  if (!I)
11514
11514
  return !1;
11515
11515
  if (D = I, A)
@@ -11549,7 +11549,7 @@ ${q.data}
11549
11549
  prompt: f,
11550
11550
  context: y,
11551
11551
  provider: k,
11552
- model: L,
11552
+ model: C,
11553
11553
  system: T,
11554
11554
  functs: A,
11555
11555
  tools: R,
@@ -11564,7 +11564,7 @@ ${q.data}
11564
11564
  const I = `{{output_step_${q + 1}}}`;
11565
11565
  P = P.replace(new RegExp(I, "g"), d(M, f)), P = P.replace(new RegExp(I.toUpperCase(), "g"), d(M, f));
11566
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);
11567
+ let D = await p(f, y, k, C, T, A, R, B);
11568
11568
  if (!D)
11569
11569
  break;
11570
11570
  if (this.mediaGenerated.push(...D.media), D.media && D.media.length === 1) {
@@ -11579,7 +11579,7 @@ ${q.data}
11579
11579
  let {
11580
11580
  prompt: y,
11581
11581
  context: k,
11582
- provider: L,
11582
+ provider: C,
11583
11583
  model: T,
11584
11584
  system: A,
11585
11585
  functs: R,
@@ -11595,7 +11595,7 @@ ${q.data}
11595
11595
  const E = `{{output_step_${I + 1}}}`;
11596
11596
  D = D.replace(new RegExp(E, "g"), q), D = D.replace(new RegExp(E.toUpperCase(), "g"), q);
11597
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);
11598
+ let M = await p(y, k, C, T, A, R, B, P);
11599
11599
  if (M && (this.mediaGenerated.push(...M.media), !!this.previousResults))
11600
11600
  if (M.media && M.media.length === 1) {
11601
11601
  let q = M.media[0], I = M.media2 && M.media2.length === 1 && M.media2[0];
@@ -11646,8 +11646,8 @@ ${q.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(), 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);
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);
11651
11651
  } catch (y) {
11652
11652
  console.error("Error downloading the image:", y);
11653
11653
  }
@@ -11859,9 +11859,9 @@ ${q.data}
11859
11859
  break;
11860
11860
  }
11861
11861
  try {
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;
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;
11865
11865
  r && r(T);
11866
11866
  }
11867
11867
  } catch {
@@ -12318,8 +12318,12 @@ class Nr {
12318
12318
  // Plugin registry
12319
12319
  autoLoad: !0,
12320
12320
  pluginBaseUrl: "",
12321
+ allowExternalPlugins: !0,
12322
+ // Simple on/off for external plugins
12323
+ trustedDomains: [],
12324
+ // Optional: whitelist specific domains
12321
12325
  ...e
12322
- }, this.plugins = /* @__PURE__ */ new Map(), this.loadedStyles = /* @__PURE__ */ new Set(), this.components = /* @__PURE__ */ new Map();
12326
+ }, this.plugins = /* @__PURE__ */ new Map(), this.loadedStyles = /* @__PURE__ */ new Set(), this.components = /* @__PURE__ */ new Map(), this.externalPlugins = /* @__PURE__ */ new Map();
12323
12327
  }
12324
12328
  /**
12325
12329
  * Auto-detect and load plugins based on DOM elements
@@ -12360,7 +12364,7 @@ class Nr {
12360
12364
  try {
12361
12365
  t.css && this.loadCSS(this.resolveUrl(t.css));
12362
12366
  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;
12367
+ return this.plugins.set(e, n), typeof n.init == "function" && await n.init(this), this.emit("plugin-loaded", { name: e, plugin: n }), n;
12364
12368
  } catch (s) {
12365
12369
  return console.error(`[PluginManager] Failed to load plugin "${e}":`, s), null;
12366
12370
  }
@@ -12400,8 +12404,10 @@ class Nr {
12400
12404
  const s = t.dataset.cbType, i = this.plugins.get(s);
12401
12405
  if (i && typeof i.mount == "function")
12402
12406
  try {
12403
- const n = this.parseOptions(t), r = i.mount(t, n);
12404
- this.components.set(t, r);
12407
+ const n = this.parseOptions(t);
12408
+ t.hasAttribute("data-cb-original-content") || t.setAttribute("data-cb-original-content", t.innerHTML);
12409
+ const r = i.mount(t, n);
12410
+ this.components.set(t, r), t.setAttribute("data-cb-loaded", "true");
12405
12411
  } catch (n) {
12406
12412
  console.error(`[PluginManager] Failed to mount component "${s}":`, n);
12407
12413
  }
@@ -12467,33 +12473,113 @@ class Nr {
12467
12473
  * Useful when content is dynamically updated
12468
12474
  * @param {HTMLElement} container - Container element (defaults to document)
12469
12475
  */
12476
+ /*
12477
+ async reinitialize(container = document) {
12478
+ console.log('[PluginManager] Reinitializing components in container');
12479
+
12480
+ // Step 1: Destroy existing components in this container
12481
+ const elementsToDestroy = [];
12482
+ this.components.forEach((instance, element) => {
12483
+ if (container === document || container.contains(element)) {
12484
+ elementsToDestroy.push({ element, instance });
12485
+ }
12486
+ });
12487
+
12488
+ elementsToDestroy.forEach(({ element, instance }) => {
12489
+ const type = element.dataset.cbType;
12490
+ const plugin = this.plugins.get(type);
12491
+
12492
+ if (plugin && typeof plugin.unmount === 'function') {
12493
+ plugin.unmount(element, instance);
12494
+ }
12495
+
12496
+ this.components.delete(element);
12497
+ });
12498
+
12499
+ console.log(`[PluginManager] Destroyed ${elementsToDestroy.length} components`);
12500
+
12501
+ // Step 2: Detect new component types in container
12502
+ const componentTypes = this.detectComponentTypesInContainer(container);
12503
+
12504
+ // Step 3: Load any new plugins that aren't loaded yet
12505
+ const pluginsToLoad = componentTypes.filter(type =>
12506
+ this.config.plugins[type] && !this.plugins.has(type)
12507
+ );
12508
+
12509
+ if (pluginsToLoad.length > 0) {
12510
+ await Promise.all(
12511
+ pluginsToLoad.map(type => this.loadPlugin(type))
12512
+ );
12513
+ }
12514
+
12515
+ // Step 4: Initialize all components in container
12516
+ const newElements = container.querySelectorAll('[data-cb-type]');
12517
+ let mountedCount = 0;
12518
+
12519
+ newElements.forEach(el => {
12520
+ const type = el.dataset.cbType;
12521
+ const plugin = this.plugins.get(type);
12522
+
12523
+ if (plugin && typeof plugin.mount === 'function') {
12524
+ try {
12525
+ const options = this.parseOptions(el);
12526
+ const instance = plugin.mount(el, options);
12527
+ this.components.set(el, instance);
12528
+ mountedCount++;
12529
+ } catch (error) {
12530
+ console.error(`[PluginManager] Failed to mount component "${type}":`, error);
12531
+ }
12532
+ }
12533
+ });
12534
+
12535
+ console.log(`[PluginManager] Mounted ${mountedCount} new components`);
12536
+ this.emit('reinitialized', { container, count: mountedCount });
12537
+
12538
+ return mountedCount;
12539
+ }
12540
+ */
12470
12541
  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;
12542
+ if (this.reinitializeInProgress)
12543
+ return clearTimeout(this.pendingReinitialize), new Promise((t) => {
12544
+ this.pendingReinitialize = setTimeout(async () => {
12545
+ this.pendingReinitialize = null;
12546
+ const s = await this.reinitialize(e);
12547
+ t(s);
12548
+ }, 100);
12549
+ });
12550
+ this.reinitializeInProgress = !0;
12551
+ try {
12552
+ const t = [];
12553
+ this.components.forEach((a, l) => {
12554
+ (e === document || e.contains(l)) && t.push({ element: l, instance: a });
12555
+ }), t.forEach(({ element: a, instance: l }) => {
12556
+ const c = a.dataset.cbType, d = this.plugins.get(c);
12557
+ d && typeof d.unmount == "function" && d.unmount(a, l), this.components.delete(a);
12558
+ });
12559
+ const i = this.detectComponentTypesInContainer(e).filter(
12560
+ (a) => this.config.plugins[a] && !this.plugins.has(a)
12561
+ );
12562
+ i.length > 0 && await Promise.all(
12563
+ i.map((a) => this.loadPlugin(a))
12564
+ );
12565
+ const n = e.querySelectorAll("[data-cb-type]");
12566
+ let r = 0;
12567
+ for (const a of n) {
12568
+ const l = a.dataset.cbType, c = this.plugins.get(l);
12569
+ if (c && typeof c.mount == "function")
12570
+ try {
12571
+ const d = this.parseOptions(a);
12572
+ a.hasAttribute("data-cb-original-content") ? a.innerHTML = a.getAttribute("data-cb-original-content") : a.setAttribute("data-cb-original-content", a.innerHTML);
12573
+ const o = await c.mount(a, d);
12574
+ this.components.set(a, o), a.setAttribute("data-cb-loaded", "true"), r++;
12575
+ } catch (d) {
12576
+ console.error(`[PluginManager] Failed to mount component "${l}":`, d);
12577
+ }
12578
+ }
12579
+ return this.emit("reinitialized", { container: e, count: r }), r;
12580
+ } finally {
12581
+ this.reinitializeInProgress = !1;
12582
+ }
12497
12583
  }
12498
12584
  /**
12499
12585
  * Detect component types within a specific container
@@ -12505,6 +12591,126 @@ class Nr {
12505
12591
  t.add(i.dataset.cbType);
12506
12592
  }), Array.from(t);
12507
12593
  }
12594
+ /**
12595
+ * Register and load plugin from external URL
12596
+ * @param {string} pluginId - Unique identifier for the plugin
12597
+ * @param {object} config - Plugin configuration
12598
+ * @param {string} config.url - JavaScript module URL
12599
+ * @param {string} config.css - CSS file URL (optional)
12600
+ */
12601
+ async loadExternalPlugin(e, t) {
12602
+ if (!e || typeof e != "string")
12603
+ throw new Error("Plugin ID is required and must be a string");
12604
+ if (!t.url)
12605
+ throw new Error("Plugin URL is required");
12606
+ if (this.plugins.has(e))
12607
+ return console.warn(`[PluginManager] Plugin "${e}" is already loaded`), this.plugins.get(e);
12608
+ const s = this.validatePluginSource(t.url);
12609
+ if (!s.allowed)
12610
+ throw new Error(`Security: ${s.reason}`);
12611
+ s.warning && (console.warn(`[PluginManager] ${s.warning}`), this.emit("plugin-security-warning", {
12612
+ pluginId: e,
12613
+ url: t.url,
12614
+ warning: s.warning
12615
+ }));
12616
+ try {
12617
+ this.config.plugins[e] = {
12618
+ url: t.url,
12619
+ css: t.css || null,
12620
+ source: "external",
12621
+ loadedAt: (/* @__PURE__ */ new Date()).toISOString()
12622
+ }, this.externalPlugins.set(e, this.config.plugins[e]);
12623
+ const i = await this.loadPlugin(e);
12624
+ return this.emit("external-plugin-loaded", {
12625
+ pluginId: e,
12626
+ url: t.url
12627
+ }), i;
12628
+ } catch (i) {
12629
+ throw delete this.config.plugins[e], this.externalPlugins.delete(e), console.error(`[PluginManager] Failed to load external plugin "${e}":`, i), i;
12630
+ }
12631
+ }
12632
+ /**
12633
+ * Validate plugin source URL
12634
+ * @param {string} url - Plugin URL to validate
12635
+ * @returns {object} Validation result
12636
+ */
12637
+ validatePluginSource(e) {
12638
+ const t = e.includes("localhost") || e.includes("127.0.0.1");
12639
+ if (!e.startsWith("https://") && !t)
12640
+ return {
12641
+ allowed: !1,
12642
+ reason: "Only HTTPS URLs are allowed (except localhost for development)"
12643
+ };
12644
+ if (!this.config.allowExternalPlugins)
12645
+ return {
12646
+ allowed: !1,
12647
+ reason: "External plugins are disabled. Enable allowExternalPlugins in configuration."
12648
+ };
12649
+ if (this.config.trustedDomains.length > 0) {
12650
+ const i = new URL(e).hostname;
12651
+ if (!this.config.trustedDomains.some((r) => {
12652
+ if (r.startsWith("*.")) {
12653
+ const a = r.slice(2);
12654
+ return i === a || i.endsWith("." + a);
12655
+ }
12656
+ return i === r;
12657
+ }))
12658
+ return {
12659
+ allowed: !0,
12660
+ warning: `Loading plugin from external domain: ${i}. Only add plugins from sources you trust.`
12661
+ };
12662
+ } else
12663
+ return {
12664
+ allowed: !0,
12665
+ warning: `Loading external plugin from: ${new URL(e).hostname}. This plugin will have full access to your page.`
12666
+ };
12667
+ return { allowed: !0 };
12668
+ }
12669
+ /**
12670
+ * Batch load external plugins
12671
+ * Useful for loading user's saved plugins on page init
12672
+ * @param {object} pluginsConfig - Object with pluginId as key and config as value
12673
+ */
12674
+ async loadExternalPlugins(e) {
12675
+ const t = [];
12676
+ for (const [s, i] of Object.entries(e))
12677
+ try {
12678
+ const n = await this.loadExternalPlugin(s, i);
12679
+ t.push({ pluginId: s, success: !0, plugin: n });
12680
+ } catch (n) {
12681
+ t.push({ pluginId: s, success: !1, error: n.message }), console.error(`[PluginManager] Failed to load external plugin "${s}":`, n);
12682
+ }
12683
+ return t;
12684
+ }
12685
+ /**
12686
+ * Remove/unregister an external plugin
12687
+ * @param {string} pluginId - Plugin to remove
12688
+ */
12689
+ unregisterPlugin(e) {
12690
+ if (!this.externalPlugins.has(e))
12691
+ return console.warn(`[PluginManager] Plugin "${e}" is not an external plugin`), !1;
12692
+ const t = this.plugins.get(e), s = [];
12693
+ return this.components.forEach((i, n) => {
12694
+ n.dataset.cbType === e && s.push({ element: n, instance: i });
12695
+ }), s.forEach(({ element: i, instance: n }) => {
12696
+ t && typeof t.unmount == "function" && t.unmount(i, n), this.components.delete(i);
12697
+ }), t && typeof t.destroy == "function" && t.destroy(this), this.plugins.delete(e), this.externalPlugins.delete(e), delete this.config.plugins[e], this.emit("plugin-unregistered", { pluginId: e }), !0;
12698
+ }
12699
+ /**
12700
+ * Get list of all external (user-added) plugins
12701
+ */
12702
+ getExternalPlugins() {
12703
+ return Array.from(this.externalPlugins.entries()).map(([e, t]) => ({
12704
+ id: e,
12705
+ ...t
12706
+ }));
12707
+ }
12708
+ /**
12709
+ * Check if a plugin is external (user-added)
12710
+ */
12711
+ isExternalPlugin(e) {
12712
+ return this.externalPlugins.has(e);
12713
+ }
12508
12714
  /**
12509
12715
  * Destroy all components and plugins
12510
12716
  */
@@ -12543,13 +12749,19 @@ class Hr {
12543
12749
  // Plugin registry: { 'plugin-name': { url: '...', css: '...' } }
12544
12750
  autoLoadPlugins: !0,
12545
12751
  // Auto-load plugins based on detected components
12546
- pluginBaseUrl: ""
12752
+ pluginBaseUrl: "",
12547
12753
  // Base URL for plugins if using relative paths
12754
+ allowExternalPlugins: !0,
12755
+ // Simple on/off for external plugins
12756
+ trustedDomains: []
12757
+ // Optional: whitelist specific domains
12548
12758
  };
12549
12759
  this.settings = { ...t, ...e }, this.initialized = !1, this.pluginManager = new Nr({
12550
12760
  plugins: this.settings.plugins,
12551
12761
  autoLoad: this.settings.autoLoadPlugins,
12552
- pluginBaseUrl: this.settings.pluginBaseUrl
12762
+ pluginBaseUrl: this.settings.pluginBaseUrl,
12763
+ allowExternalPlugins: this.settings.allowExternalPlugins,
12764
+ trustedDomains: this.settings.trustedDomains
12553
12765
  }), this.pluginManager.setRuntime(this), window.Glide = Wn, window.FormViewer = Rr, window.NavBar = jr, window.pageReRender = () => {
12554
12766
  this.pageReRender();
12555
12767
  };
@@ -12600,6 +12812,24 @@ class Hr {
12600
12812
  async reinitialize(e) {
12601
12813
  return await this.pluginManager.reinitialize(e);
12602
12814
  }
12815
+ /**
12816
+ * Register and load plugin from external URL
12817
+ */
12818
+ async loadExternalPlugin(e, t) {
12819
+ return await this.pluginManager.loadExternalPlugin(e, t);
12820
+ }
12821
+ /**
12822
+ * Batch load external plugins
12823
+ */
12824
+ async loadExternalPlugins(e) {
12825
+ return await this.pluginManager.loadExternalPlugins(e);
12826
+ }
12827
+ /**
12828
+ * Remove/unregister an external plugin
12829
+ */
12830
+ unregisterPlugin(e) {
12831
+ return this.pluginManager.unregisterPlugin(e);
12832
+ }
12603
12833
  /**
12604
12834
  * Simple event emitter
12605
12835
  */
@@ -12620,13 +12850,10 @@ class Hr {
12620
12850
  document.removeEventListener(`contentbox:${e}`, t);
12621
12851
  }
12622
12852
  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");
12853
+ this.initialized || (this.initCore(), this.initPlugins(), this.initialized = !0, this.emit("init"));
12854
+ }
12855
+ async initPlugins() {
12856
+ this.settings.autoLoadPlugins && await this.pluginManager.autoLoadPlugins(), this.pluginManager.initializeComponents();
12630
12857
  }
12631
12858
  initCore() {
12632
12859
  this.prepareContent(), this.updateOnResize(), this.blockInit(), this.initeSkrollrr(), this.contentBoxOnRenderUpdate(), this.functionLightboxInit(), this.inViewSetup(), setTimeout(() => {