@innovastudio/contentbox-runtime 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,49 +2,49 @@ var Qt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2
2
  function Ct(m) {
3
3
  return m && m.__esModule && Object.prototype.hasOwnProperty.call(m, "default") ? m.default : m;
4
4
  }
5
- var vt = { exports: {} }, Ri = vt.exports, Kt;
6
- function qi() {
5
+ var vt = { exports: {} }, qi = vt.exports, Kt;
6
+ function Ri() {
7
7
  return Kt || (Kt = 1, (function(m, e) {
8
8
  (function(i, s) {
9
9
  m.exports = s();
10
- })(Ri, function() {
11
- var i = typeof window < "u" ? window : typeof Qt < "u" ? Qt : typeof self < "u" ? self : {}, s = "Expected a function", t = NaN, n = "[object Symbol]", r = /^\s+|\s+$/g, a = /^[-+]0x[0-9a-f]+$/i, u = /^0b[01]+$/i, c = /^0o[0-7]+$/i, d = parseInt, o = typeof i == "object" && i && i.Object === Object && i, h = typeof self == "object" && self && self.Object === Object && self, f = o || h || Function("return this")(), v = Object.prototype.toString, S = Math.max, q = Math.min, y = function() {
10
+ })(qi, function() {
11
+ var i = typeof window < "u" ? window : typeof Qt < "u" ? Qt : typeof self < "u" ? self : {}, s = "Expected a function", t = NaN, n = "[object Symbol]", r = /^\s+|\s+$/g, a = /^[-+]0x[0-9a-f]+$/i, u = /^0b[01]+$/i, c = /^0o[0-7]+$/i, d = parseInt, o = typeof i == "object" && i && i.Object === Object && i, h = typeof self == "object" && self && self.Object === Object && self, f = o || h || Function("return this")(), v = Object.prototype.toString, S = Math.max, R = Math.min, y = function() {
12
12
  return f.Date.now();
13
13
  };
14
- function T(A, j, U) {
15
- var F, Z, ee, te, K, me, oe = 0, Te = !1, pe = !1, xe = !0;
14
+ function E(A, j, U) {
15
+ var Y, Z, ee, te, K, me, oe = 0, Ee = !1, pe = !1, xe = !0;
16
16
  if (typeof A != "function") throw new TypeError(s);
17
17
  function Ce(le) {
18
- var qe = F, De = Z;
19
- return F = Z = void 0, oe = le, te = A.apply(De, qe);
18
+ var Re = Y, De = Z;
19
+ return Y = Z = void 0, oe = le, te = A.apply(De, Re);
20
20
  }
21
21
  function $e(le) {
22
- var qe = le - me;
23
- return me === void 0 || qe >= j || qe < 0 || pe && le - oe >= ee;
22
+ var Re = le - me;
23
+ return me === void 0 || Re >= j || Re < 0 || pe && le - oe >= ee;
24
24
  }
25
25
  function Ne() {
26
26
  var le = y();
27
27
  if ($e(le)) return Pe(le);
28
- K = setTimeout(Ne, (function(qe) {
29
- var De = j - (qe - me);
30
- return pe ? q(De, ee - (qe - oe)) : De;
28
+ K = setTimeout(Ne, (function(Re) {
29
+ var De = j - (Re - me);
30
+ return pe ? R(De, ee - (Re - oe)) : De;
31
31
  })(le));
32
32
  }
33
33
  function Pe(le) {
34
- return K = void 0, xe && F ? Ce(le) : (F = Z = void 0, te);
34
+ return K = void 0, xe && Y ? Ce(le) : (Y = Z = void 0, te);
35
35
  }
36
36
  function ke() {
37
- var le = y(), qe = $e(le);
38
- if (F = arguments, Z = this, me = le, qe) {
37
+ var le = y(), Re = $e(le);
38
+ if (Y = arguments, Z = this, me = le, Re) {
39
39
  if (K === void 0) return (function(De) {
40
- return oe = De, K = setTimeout(Ne, j), Te ? Ce(De) : te;
40
+ return oe = De, K = setTimeout(Ne, j), Ee ? Ce(De) : te;
41
41
  })(me);
42
42
  if (pe) return K = setTimeout(Ne, j), Ce(me);
43
43
  }
44
44
  return K === void 0 && (K = setTimeout(Ne, j)), te;
45
45
  }
46
- return j = k(j) || 0, b(U) && (Te = !!U.leading, ee = (pe = "maxWait" in U) ? S(k(U.maxWait) || 0, j) : ee, xe = "trailing" in U ? !!U.trailing : xe), ke.cancel = function() {
47
- K !== void 0 && clearTimeout(K), oe = 0, F = me = Z = K = void 0;
46
+ return j = k(j) || 0, b(U) && (Ee = !!U.leading, ee = (pe = "maxWait" in U) ? S(k(U.maxWait) || 0, j) : ee, xe = "trailing" in U ? !!U.trailing : xe), ke.cancel = function() {
47
+ K !== void 0 && clearTimeout(K), oe = 0, Y = me = Z = K = void 0;
48
48
  }, ke.flush = function() {
49
49
  return K === void 0 ? te : Pe(y());
50
50
  }, ke;
@@ -55,10 +55,10 @@ function qi() {
55
55
  }
56
56
  function k(A) {
57
57
  if (typeof A == "number") return A;
58
- if ((function(F) {
59
- return typeof F == "symbol" || /* @__PURE__ */ (function(Z) {
58
+ if ((function(Y) {
59
+ return typeof Y == "symbol" || /* @__PURE__ */ (function(Z) {
60
60
  return !!Z && typeof Z == "object";
61
- })(F) && v.call(F) == n;
61
+ })(Y) && v.call(Y) == n;
62
62
  })(A)) return t;
63
63
  if (b(A)) {
64
64
  var j = typeof A.valueOf == "function" ? A.valueOf() : A;
@@ -70,22 +70,22 @@ function qi() {
70
70
  return U || c.test(A) ? d(A.slice(2), U ? 2 : 8) : a.test(A) ? t : +A;
71
71
  }
72
72
  var C = function(A, j, U) {
73
- var F = !0, Z = !0;
73
+ var Y = !0, Z = !0;
74
74
  if (typeof A != "function") throw new TypeError(s);
75
- return b(U) && (F = "leading" in U ? !!U.leading : F, Z = "trailing" in U ? !!U.trailing : Z), T(A, j, { leading: F, maxWait: j, trailing: Z });
76
- }, g = "Expected a function", w = NaN, R = "[object Symbol]", V = /^\s+|\s+$/g, I = /^[-+]0x[0-9a-f]+$/i, Y = /^0b[01]+$/i, G = /^0o[0-7]+$/i, B = parseInt, M = typeof i == "object" && i && i.Object === Object && i, _ = typeof self == "object" && self && self.Object === Object && self, L = M || _ || Function("return this")(), P = Object.prototype.toString, W = Math.max, N = Math.min, J = function() {
75
+ return b(U) && (Y = "leading" in U ? !!U.leading : Y, Z = "trailing" in U ? !!U.trailing : Z), E(A, j, { leading: Y, maxWait: j, trailing: Z });
76
+ }, g = "Expected a function", w = NaN, q = "[object Symbol]", V = /^\s+|\s+$/g, I = /^[-+]0x[0-9a-f]+$/i, F = /^0b[01]+$/i, G = /^0o[0-7]+$/i, B = parseInt, M = typeof i == "object" && i && i.Object === Object && i, _ = typeof self == "object" && self && self.Object === Object && self, L = M || _ || Function("return this")(), P = Object.prototype.toString, W = Math.max, N = Math.min, J = function() {
77
77
  return L.Date.now();
78
78
  };
79
79
  function Q(A) {
80
80
  var j = typeof A;
81
81
  return !!A && (j == "object" || j == "function");
82
82
  }
83
- function ne(A) {
83
+ function se(A) {
84
84
  if (typeof A == "number") return A;
85
- if ((function(F) {
86
- return typeof F == "symbol" || /* @__PURE__ */ (function(Z) {
85
+ if ((function(Y) {
86
+ return typeof Y == "symbol" || /* @__PURE__ */ (function(Z) {
87
87
  return !!Z && typeof Z == "object";
88
- })(F) && P.call(F) == R;
88
+ })(Y) && P.call(Y) == q;
89
89
  })(A)) return w;
90
90
  if (Q(A)) {
91
91
  var j = typeof A.valueOf == "function" ? A.valueOf() : A;
@@ -93,43 +93,43 @@ function qi() {
93
93
  }
94
94
  if (typeof A != "string") return A === 0 ? A : +A;
95
95
  A = A.replace(V, "");
96
- var U = Y.test(A);
96
+ var U = F.test(A);
97
97
  return U || G.test(A) ? B(A.slice(2), U ? 2 : 8) : I.test(A) ? w : +A;
98
98
  }
99
99
  var re = function(A, j, U) {
100
- var F, Z, ee, te, K, me, oe = 0, Te = !1, pe = !1, xe = !0;
100
+ var Y, Z, ee, te, K, me, oe = 0, Ee = !1, pe = !1, xe = !0;
101
101
  if (typeof A != "function") throw new TypeError(g);
102
102
  function Ce(le) {
103
- var qe = F, De = Z;
104
- return F = Z = void 0, oe = le, te = A.apply(De, qe);
103
+ var Re = Y, De = Z;
104
+ return Y = Z = void 0, oe = le, te = A.apply(De, Re);
105
105
  }
106
106
  function $e(le) {
107
- var qe = le - me;
108
- return me === void 0 || qe >= j || qe < 0 || pe && le - oe >= ee;
107
+ var Re = le - me;
108
+ return me === void 0 || Re >= j || Re < 0 || pe && le - oe >= ee;
109
109
  }
110
110
  function Ne() {
111
111
  var le = J();
112
112
  if ($e(le)) return Pe(le);
113
- K = setTimeout(Ne, (function(qe) {
114
- var De = j - (qe - me);
115
- return pe ? N(De, ee - (qe - oe)) : De;
113
+ K = setTimeout(Ne, (function(Re) {
114
+ var De = j - (Re - me);
115
+ return pe ? N(De, ee - (Re - oe)) : De;
116
116
  })(le));
117
117
  }
118
118
  function Pe(le) {
119
- return K = void 0, xe && F ? Ce(le) : (F = Z = void 0, te);
119
+ return K = void 0, xe && Y ? Ce(le) : (Y = Z = void 0, te);
120
120
  }
121
121
  function ke() {
122
- var le = J(), qe = $e(le);
123
- if (F = arguments, Z = this, me = le, qe) {
122
+ var le = J(), Re = $e(le);
123
+ if (Y = arguments, Z = this, me = le, Re) {
124
124
  if (K === void 0) return (function(De) {
125
- return oe = De, K = setTimeout(Ne, j), Te ? Ce(De) : te;
125
+ return oe = De, K = setTimeout(Ne, j), Ee ? Ce(De) : te;
126
126
  })(me);
127
127
  if (pe) return K = setTimeout(Ne, j), Ce(me);
128
128
  }
129
129
  return K === void 0 && (K = setTimeout(Ne, j)), te;
130
130
  }
131
- return j = ne(j) || 0, Q(U) && (Te = !!U.leading, ee = (pe = "maxWait" in U) ? W(ne(U.maxWait) || 0, j) : ee, xe = "trailing" in U ? !!U.trailing : xe), ke.cancel = function() {
132
- K !== void 0 && clearTimeout(K), oe = 0, F = me = Z = K = void 0;
131
+ return j = se(j) || 0, Q(U) && (Ee = !!U.leading, ee = (pe = "maxWait" in U) ? W(se(U.maxWait) || 0, j) : ee, xe = "trailing" in U ? !!U.trailing : xe), ke.cancel = function() {
132
+ K !== void 0 && clearTimeout(K), oe = 0, Y = me = Z = K = void 0;
133
133
  }, ke.flush = function() {
134
134
  return K === void 0 ? te : Pe(J());
135
135
  }, ke;
@@ -137,13 +137,13 @@ function qi() {
137
137
  };
138
138
  function de(A) {
139
139
  A && A.forEach(function(j) {
140
- var U = Array.prototype.slice.call(j.addedNodes), F = Array.prototype.slice.call(j.removedNodes);
140
+ var U = Array.prototype.slice.call(j.addedNodes), Y = Array.prototype.slice.call(j.removedNodes);
141
141
  if ((function Z(ee) {
142
142
  var te = void 0, K = void 0;
143
143
  for (te = 0; te < ee.length; te += 1)
144
144
  if ((K = ee[te]).dataset && K.dataset.aos || K.children && Z(K.children)) return !0;
145
145
  return !1;
146
- })(U.concat(F))) return ae();
146
+ })(U.concat(Y))) return ae();
147
147
  });
148
148
  }
149
149
  function ue() {
@@ -152,27 +152,27 @@ function qi() {
152
152
  var Se = { isSupported: function() {
153
153
  return !!ue();
154
154
  }, ready: function(A, j) {
155
- var U = window.document, F = new (ue())(de);
156
- ae = j, F.observe(U.documentElement, { childList: !0, subtree: !0, removedNodes: !0 });
155
+ var U = window.document, Y = new (ue())(de);
156
+ ae = j, Y.observe(U.documentElement, { childList: !0, subtree: !0, removedNodes: !0 });
157
157
  } }, je = function(A, j) {
158
158
  if (!(A instanceof j)) throw new TypeError("Cannot call a class as a function");
159
159
  }, Ae = /* @__PURE__ */ (function() {
160
160
  function A(j, U) {
161
- for (var F = 0; F < U.length; F++) {
162
- var Z = U[F];
161
+ for (var Y = 0; Y < U.length; Y++) {
162
+ var Z = U[Y];
163
163
  Z.enumerable = Z.enumerable || !1, Z.configurable = !0, "value" in Z && (Z.writable = !0), Object.defineProperty(j, Z.key, Z);
164
164
  }
165
165
  }
166
- return function(j, U, F) {
167
- return U && A(j.prototype, U), F && A(j, F), j;
166
+ return function(j, U, Y) {
167
+ return U && A(j.prototype, U), Y && A(j, Y), j;
168
168
  };
169
- })(), Re = Object.assign || function(A) {
169
+ })(), qe = Object.assign || function(A) {
170
170
  for (var j = 1; j < arguments.length; j++) {
171
171
  var U = arguments[j];
172
- for (var F in U) Object.prototype.hasOwnProperty.call(U, F) && (A[F] = U[F]);
172
+ for (var Y in U) Object.prototype.hasOwnProperty.call(U, Y) && (A[Y] = U[Y]);
173
173
  }
174
174
  return A;
175
- }, Ee = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i, be = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i, X = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i, ie = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;
175
+ }, Te = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i, be = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i, X = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i, ie = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;
176
176
  function ge() {
177
177
  return navigator.userAgent || navigator.vendor || window.opera || "";
178
178
  }
@@ -182,7 +182,7 @@ function qi() {
182
182
  }
183
183
  return Ae(A, [{ key: "phone", value: function() {
184
184
  var j = ge();
185
- return !(!Ee.test(j) && !be.test(j.substr(0, 4)));
185
+ return !(!Te.test(j) && !be.test(j.substr(0, 4)));
186
186
  } }, { key: "mobile", value: function() {
187
187
  var j = ge();
188
188
  return !(!X.test(j) && !ie.test(j.substr(0, 4)));
@@ -196,38 +196,38 @@ function qi() {
196
196
  return ve.ie11() ? (U = document.createEvent("CustomEvent")).initCustomEvent(A, !0, !0, { detail: j }) : U = new CustomEvent(A, { detail: j }), document.dispatchEvent(U);
197
197
  }, ye = function(A) {
198
198
  return A.forEach(function(j, U) {
199
- return (function(F, Z) {
200
- var ee = F.options, te = F.position, K = F.node, me = (F.data, function() {
201
- F.animated && ((function(oe, Te) {
202
- Te && Te.forEach(function(pe) {
199
+ return (function(Y, Z) {
200
+ var ee = Y.options, te = Y.position, K = Y.node, me = (Y.data, function() {
201
+ Y.animated && ((function(oe, Ee) {
202
+ Ee && Ee.forEach(function(pe) {
203
203
  return oe.classList.remove(pe);
204
204
  });
205
- })(K, ee.animatedClassNames), Oe("aos:out", K), F.options.id && Oe("aos:in:" + F.options.id, K), F.animated = !1);
205
+ })(K, ee.animatedClassNames), Oe("aos:out", K), Y.options.id && Oe("aos:in:" + Y.options.id, K), Y.animated = !1);
206
206
  });
207
- ee.mirror && Z >= te.out && !ee.once ? me() : Z >= te.in ? F.animated || ((function(oe, Te) {
208
- Te && Te.forEach(function(pe) {
207
+ ee.mirror && Z >= te.out && !ee.once ? me() : Z >= te.in ? Y.animated || ((function(oe, Ee) {
208
+ Ee && Ee.forEach(function(pe) {
209
209
  return oe.classList.add(pe);
210
210
  });
211
- })(K, ee.animatedClassNames), Oe("aos:in", K), F.options.id && Oe("aos:in:" + F.options.id, K), F.animated = !0) : F.animated && !ee.once && me();
211
+ })(K, ee.animatedClassNames), Oe("aos:in", K), Y.options.id && Oe("aos:in:" + Y.options.id, K), Y.animated = !0) : Y.animated && !ee.once && me();
212
212
  })(j, window.pageYOffset);
213
213
  });
214
214
  }, fe = function(A) {
215
215
  for (var j = 0, U = 0; A && !isNaN(A.offsetLeft) && !isNaN(A.offsetTop); ) j += A.offsetLeft - (A.tagName != "BODY" ? A.scrollLeft : 0), U += A.offsetTop - (A.tagName != "BODY" ? A.scrollTop : 0), A = A.offsetParent;
216
216
  return { top: U, left: j };
217
217
  }, he = function(A, j, U) {
218
- var F = A.getAttribute("data-aos-" + j);
219
- if (F !== void 0) {
220
- if (F === "true") return !0;
221
- if (F === "false") return !1;
222
- }
223
- return F || U;
224
- }, se = function(A, j) {
225
- return A.forEach(function(U, F) {
218
+ var Y = A.getAttribute("data-aos-" + j);
219
+ if (Y !== void 0) {
220
+ if (Y === "true") return !0;
221
+ if (Y === "false") return !1;
222
+ }
223
+ return Y || U;
224
+ }, ne = function(A, j) {
225
+ return A.forEach(function(U, Y) {
226
226
  var Z = he(U.node, "mirror", j.mirror), ee = he(U.node, "once", j.once), te = he(U.node, "id"), K = j.useClassNames && U.node.getAttribute("data-aos"), me = [j.animatedClassName].concat(K ? K.split(" ") : []).filter(function(oe) {
227
227
  return typeof oe == "string";
228
228
  });
229
- j.initClassName && U.node.classList.add(j.initClassName), U.position = { in: (function(oe, Te, pe) {
230
- var xe = window.innerHeight, Ce = he(oe, "anchor"), $e = he(oe, "anchor-placement"), Ne = Number(he(oe, "offset", $e ? 0 : Te)), Pe = $e || pe, ke = oe;
229
+ j.initClassName && U.node.classList.add(j.initClassName), U.position = { in: (function(oe, Ee, pe) {
230
+ var xe = window.innerHeight, Ce = he(oe, "anchor"), $e = he(oe, "anchor-placement"), Ne = Number(he(oe, "offset", $e ? 0 : Ee)), Pe = $e || pe, ke = oe;
231
231
  Ce && document.querySelectorAll(Ce) && (ke = document.querySelectorAll(Ce)[0]);
232
232
  var le = fe(ke).top - xe;
233
233
  switch (Pe) {
@@ -258,8 +258,8 @@ function qi() {
258
258
  le += xe + ke.offsetHeight / 2;
259
259
  }
260
260
  return le + Ne;
261
- })(U.node, j.offset, j.anchorPlacement), out: Z && (function(oe, Te) {
262
- var pe = he(oe, "anchor"), xe = he(oe, "offset", Te), Ce = oe;
261
+ })(U.node, j.offset, j.anchorPlacement), out: Z && (function(oe, Ee) {
262
+ var pe = he(oe, "anchor"), xe = he(oe, "offset", Ee), Ce = oe;
263
263
  return pe && document.querySelectorAll(pe) && (Ce = document.querySelectorAll(pe)[0]), fe(Ce).top + Ce.offsetHeight - xe;
264
264
  })(U.node, j.offset) }, U.options = { once: ee, mirror: Z, animatedClassNames: me, id: te };
265
265
  }), A;
@@ -268,14 +268,14 @@ function qi() {
268
268
  return Array.prototype.map.call(A, function(j) {
269
269
  return { node: j };
270
270
  });
271
- }, l = [], p = !1, x = { 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 }, E = function() {
271
+ }, l = [], p = !1, x = { 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 }, T = function() {
272
272
  return document.all && !window.atob;
273
273
  }, O = function() {
274
- arguments.length > 0 && arguments[0] !== void 0 && arguments[0] && (p = !0), p && (l = se(l, x), ye(l), window.addEventListener("scroll", C(function() {
274
+ arguments.length > 0 && arguments[0] !== void 0 && arguments[0] && (p = !0), p && (l = ne(l, x), ye(l), window.addEventListener("scroll", C(function() {
275
275
  ye(l, x.once);
276
276
  }, x.throttleDelay)));
277
277
  }, D = function() {
278
- if (l = Me(), $(x.disable) || E()) return H();
278
+ if (l = Me(), $(x.disable) || T()) return H();
279
279
  O();
280
280
  }, H = function() {
281
281
  l.forEach(function(A, j) {
@@ -285,11 +285,11 @@ function qi() {
285
285
  return A === !0 || A === "mobile" && ve.mobile() || A === "phone" && ve.phone() || A === "tablet" && ve.tablet() || typeof A == "function" && A() === !0;
286
286
  };
287
287
  return { init: function(A) {
288
- return x = Re(x, A), l = Me(), x.disableMutationObserver || Se.isSupported() || (console.info(`
288
+ return x = qe(x, A), l = Me(), x.disableMutationObserver || Se.isSupported() || (console.info(`
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
- `), x.disableMutationObserver = !0), x.disableMutationObserver || Se.ready("[data-aos]", D), $(x.disable) || E() ? H() : (document.querySelector("body").setAttribute("data-aos-easing", x.easing), document.querySelector("body").setAttribute("data-aos-duration", x.duration), document.querySelector("body").setAttribute("data-aos-delay", x.delay), ["DOMContentLoaded", "load"].indexOf(x.startEvent) === -1 ? document.addEventListener(x.startEvent, function() {
292
+ `), x.disableMutationObserver = !0), x.disableMutationObserver || Se.ready("[data-aos]", D), $(x.disable) || T() ? H() : (document.querySelector("body").setAttribute("data-aos-easing", x.easing), document.querySelector("body").setAttribute("data-aos-duration", x.duration), document.querySelector("body").setAttribute("data-aos-delay", x.delay), ["DOMContentLoaded", "load"].indexOf(x.startEvent) === -1 ? document.addEventListener(x.startEvent, function() {
293
293
  O(!0);
294
294
  }) : window.addEventListener("load", function() {
295
295
  O(!0);
@@ -298,7 +298,7 @@ function qi() {
298
298
  });
299
299
  })(vt)), vt.exports;
300
300
  }
301
- var Mi = qi();
301
+ var Mi = Ri();
302
302
  const ji = /* @__PURE__ */ Ct(Mi);
303
303
  var Mt = { exports: {} }, ei;
304
304
  function Ii() {
@@ -332,12 +332,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
332
332
  if (typeof Symbol < "u" && Symbol.iterator in Object(c)) {
333
333
  var o = [], h = !0, f = !1, v = void 0;
334
334
  try {
335
- for (var S, q = c[Symbol.iterator](); !(h = (S = q.next()).done) && (o.push(S.value), !d || o.length !== d); h = !0) ;
335
+ for (var S, R = c[Symbol.iterator](); !(h = (S = R.next()).done) && (o.push(S.value), !d || o.length !== d); h = !0) ;
336
336
  } catch (y) {
337
337
  f = !0, v = y;
338
338
  } finally {
339
339
  try {
340
- h || q.return == null || q.return();
340
+ h || R.return == null || R.return();
341
341
  } finally {
342
342
  if (f) throw v;
343
343
  }
@@ -352,7 +352,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
352
352
  function c(g) {
353
353
  return ["elInY+elHeight", "elCenterY-".concat(g = 0 < arguments.length && g !== void 0 ? g : 30), "elCenterY", "elCenterY+".concat(g), "elOutY-elHeight"];
354
354
  }
355
- var d, o, h, f, v, S, q = { fadeInOut: function(g, w) {
355
+ var d, o, h, f, v, S, R = { fadeInOut: function(g, w) {
356
356
  return w = 1 < arguments.length && w !== void 0 ? w : 0, { opacity: [c(0 < arguments.length && g !== void 0 ? g : 30), [w, 1, 1, 1, w]] };
357
357
  }, fadeIn: function(g, w) {
358
358
  return { opacity: [["elInY+elHeight", 0 < arguments.length && g !== void 0 ? g : "elCenterY"], [1 < arguments.length && w !== void 0 ? w : 0, 1]] };
@@ -413,8 +413,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
413
413
  }, easeInOutQuint: function(g) {
414
414
  return g < 0.5 ? 16 * g * g * g * g * g : 1 + 16 * --g * g * g * g * g;
415
415
  }, easeOutBounce: function(g) {
416
- var w = 7.5625, R = 2.75;
417
- return g < 1 / R ? w * g * g : g < 2 / R ? w * (g -= 1.5 / R) * g + 0.75 : g < 2.5 / R ? w * (g -= 2.25 / R) * g + 0.9375 : w * (g -= 2.625 / R) * g + 0.984375;
416
+ var w = 7.5625, q = 2.75;
417
+ return g < 1 / q ? w * g * g : g < 2 / q ? w * (g -= 1.5 / q) * g + 0.75 : g < 2.5 / q ? w * (g -= 2.25 / q) * g + 0.9375 : w * (g -= 2.625 / q) * g + 0.984375;
418
418
  }, easeInBounce: function(g) {
419
419
  return 1 - S.easeOutBounce(1 - g);
420
420
  }, easeOutBack: function(g) {
@@ -423,103 +423,103 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
423
423
  return 2.70158 * g * g * g - 1.70158 * g * g;
424
424
  } }, new function g() {
425
425
  var w = this;
426
- e(this, g), i(this, "drivers", []), i(this, "elements", []), i(this, "frame", 0), i(this, "debug", !1), i(this, "windowWidth", 0), i(this, "windowHeight", 0), i(this, "presets", q), i(this, "debugData", { frameLengths: [] }), i(this, "init", function() {
426
+ e(this, g), i(this, "drivers", []), i(this, "elements", []), i(this, "frame", 0), i(this, "debug", !1), i(this, "windowWidth", 0), i(this, "windowHeight", 0), i(this, "presets", R), i(this, "debugData", { frameLengths: [] }), i(this, "init", function() {
427
427
  w.findAndAddElements(), window.requestAnimationFrame(w.onAnimationFrame), w.windowWidth = document.body.clientWidth, w.windowHeight = document.body.clientHeight, window.onresize = w.onWindowResize;
428
428
  }), i(this, "onWindowResize", function() {
429
- document.body.clientWidth === w.windowWidth && document.body.clientHeight === w.windowHeight || (w.windowWidth = document.body.clientWidth, w.windowHeight = document.body.clientHeight, w.elements.forEach(function(R) {
430
- return R.calculateTransforms();
429
+ document.body.clientWidth === w.windowWidth && document.body.clientHeight === w.windowHeight || (w.windowWidth = document.body.clientWidth, w.windowHeight = document.body.clientHeight, w.elements.forEach(function(q) {
430
+ return q.calculateTransforms();
431
431
  }));
432
- }), i(this, "onAnimationFrame", function(R) {
432
+ }), i(this, "onAnimationFrame", function(q) {
433
433
  w.debug && (w.debugData.frameStart = Date.now());
434
434
  var V, I = {};
435
- w.drivers.forEach(function(Y) {
436
- I[Y.name] = Y.getValue(w.frame);
437
- }), w.elements.forEach(function(Y) {
438
- Y.update(I, w.frame);
439
- }), w.debug && w.debugData.frameLengths.push(Date.now() - w.debugData.frameStart), w.frame % 60 == 0 && w.debug && (V = Math.ceil(w.debugData.frameLengths.reduce(function(Y, G) {
440
- return Y + G;
435
+ w.drivers.forEach(function(F) {
436
+ I[F.name] = F.getValue(w.frame);
437
+ }), w.elements.forEach(function(F) {
438
+ F.update(I, w.frame);
439
+ }), w.debug && w.debugData.frameLengths.push(Date.now() - w.debugData.frameStart), w.frame % 60 == 0 && w.debug && (V = Math.ceil(w.debugData.frameLengths.reduce(function(F, G) {
440
+ return F + G;
441
441
  }, 0) / 60), console.log("Average frame calculation time: ".concat(V, "ms")), w.debugData.frameLengths = []), w.frame++, window.requestAnimationFrame(w.onAnimationFrame);
442
- }), i(this, "addDriver", function(R, V) {
442
+ }), i(this, "addDriver", function(q, V) {
443
443
  var I = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : {};
444
- w.drivers.push(new k(R, V, I));
445
- }), i(this, "removeDriver", function(R) {
444
+ w.drivers.push(new k(q, V, I));
445
+ }), i(this, "removeDriver", function(q) {
446
446
  w.drivers = w.drivers.filter(function(V) {
447
- return V.name !== R;
447
+ return V.name !== q;
448
448
  });
449
449
  }), i(this, "findAndAddElements", function() {
450
- w.elements = [], document.querySelectorAll(".lax").forEach(function(R) {
450
+ w.elements = [], document.querySelectorAll(".lax").forEach(function(q) {
451
451
  var V = [];
452
- R.classList.forEach(function(Y) {
453
- Y.includes("lax_preset") && (Y = Y.replace("lax_preset_", ""), V.push(Y));
452
+ q.classList.forEach(function(F) {
453
+ F.includes("lax_preset") && (F = F.replace("lax_preset_", ""), V.push(F));
454
454
  });
455
455
  var I = i({}, "scrollY", { presets: V });
456
- w.elements.push(new C(".lax", w, R, I, 0, {}));
456
+ w.elements.push(new C(".lax", w, q, I, 0, {}));
457
457
  });
458
- }), i(this, "addElements", function(R, V, I) {
459
- document.querySelectorAll(R).forEach(function(Y, G) {
460
- w.elements.push(new C(R, w, Y, V, G, I));
458
+ }), i(this, "addElements", function(q, V, I) {
459
+ document.querySelectorAll(q).forEach(function(F, G) {
460
+ w.elements.push(new C(q, w, F, V, G, I));
461
461
  });
462
- }), i(this, "removeElements", function(R) {
462
+ }), i(this, "removeElements", function(q) {
463
463
  w.elements = w.elements.filter(function(V) {
464
- return V.selector !== R;
464
+ return V.selector !== q;
465
465
  });
466
- }), i(this, "addElement", function(R, V, I) {
467
- w.elements.push(new C("", w, R, V, 0, I));
468
- }), i(this, "removeElement", function(R) {
466
+ }), i(this, "addElement", function(q, V, I) {
467
+ w.elements.push(new C("", w, q, V, 0, I));
468
+ }), i(this, "removeElement", function(q) {
469
469
  w.elements = w.elements.filter(function(V) {
470
- return V.domElement !== R;
470
+ return V.domElement !== q;
471
471
  });
472
472
  });
473
473
  }());
474
- function T(g, w) {
474
+ function E(g, w) {
475
475
  if (Array.isArray(g)) return g;
476
- for (var R = Object.keys(g).map(function(G) {
476
+ for (var q = Object.keys(g).map(function(G) {
477
477
  return parseInt(G);
478
478
  }).sort(function(G, B) {
479
479
  return B < G ? 1 : -1;
480
- }), V = R[R.length - 1], I = 0; I < R.length; I++) {
481
- var Y = R[I];
482
- if (w < Y) {
483
- V = Y;
480
+ }), V = q[q.length - 1], I = 0; I < q.length; I++) {
481
+ var F = q[I];
482
+ if (w < F) {
483
+ V = F;
484
484
  break;
485
485
  }
486
486
  }
487
487
  return g[V];
488
488
  }
489
- function b(g, N, R) {
489
+ function b(g, N, q) {
490
490
  var V = N.width, I = N.height, L = N.x, W = N.y;
491
491
  if (typeof g == "number") return g;
492
- var Y, G = document.body.scrollHeight, B = document.body.scrollWidth, M = window.innerWidth, _ = window.innerHeight, P = s((Y = window.pageXOffset !== void 0, P = (document.compatMode || "") === "CSS1Compat", N = Y ? window.pageXOffset : (P ? document.documentElement : document.body).scrollLeft, [Y ? window.pageYOffset : (P ? document.documentElement : document.body).scrollTop, N]), 2), N = P[0], L = L + P[1], P = L + V, W = W + N, N = W + I;
493
- return Function("return ".concat(g.replace(/screenWidth/g, M).replace(/screenHeight/g, _).replace(/pageHeight/g, G).replace(/pageWidth/g, B).replace(/elWidth/g, V).replace(/elHeight/g, I).replace(/elInY/g, W - _).replace(/elOutY/g, N).replace(/elCenterY/g, W + I / 2 - _ / 2).replace(/elInX/g, L - M).replace(/elOutX/g, P).replace(/elCenterX/g, L + V / 2 - M / 2).replace(/index/g, R)))();
492
+ var F, G = document.body.scrollHeight, B = document.body.scrollWidth, M = window.innerWidth, _ = window.innerHeight, P = s((F = window.pageXOffset !== void 0, P = (document.compatMode || "") === "CSS1Compat", N = F ? window.pageXOffset : (P ? document.documentElement : document.body).scrollLeft, [F ? window.pageYOffset : (P ? document.documentElement : document.body).scrollTop, N]), 2), N = P[0], L = L + P[1], P = L + V, W = W + N, N = W + I;
493
+ return Function("return ".concat(g.replace(/screenWidth/g, M).replace(/screenHeight/g, _).replace(/pageHeight/g, G).replace(/pageWidth/g, B).replace(/elWidth/g, V).replace(/elHeight/g, I).replace(/elInY/g, W - _).replace(/elOutY/g, N).replace(/elCenterY/g, W + I / 2 - _ / 2).replace(/elInX/g, L - M).replace(/elOutX/g, P).replace(/elCenterX/g, L + V / 2 - M / 2).replace(/index/g, q)))();
494
494
  }
495
495
  function k(g, w) {
496
- var R = this, V = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : {};
496
+ var q = this, V = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : {};
497
497
  e(this, k), i(this, "getValueFn", void 0), i(this, "name", ""), i(this, "lastValue", 0), i(this, "frameStep", 1), i(this, "m1", 0), i(this, "m2", 0), i(this, "inertia", 0), i(this, "inertiaEnabled", !1), i(this, "getValue", function(I) {
498
- var Y = R.lastValue;
499
- return I % R.frameStep == 0 && (Y = R.getValueFn(I)), R.inertiaEnabled && (I = Y - R.lastValue, R.m1 = 0.8 * R.m1 + I * (1 - 0.8), R.m2 = 0.8 * R.m2 + R.m1 * (1 - 0.8), R.inertia = Math.round(5e3 * R.m2) / 15e3), R.lastValue = Y, [R.lastValue, R.inertia];
498
+ var F = q.lastValue;
499
+ return I % q.frameStep == 0 && (F = q.getValueFn(I)), q.inertiaEnabled && (I = F - q.lastValue, q.m1 = 0.8 * q.m1 + I * (1 - 0.8), q.m2 = 0.8 * q.m2 + q.m1 * (1 - 0.8), q.inertia = Math.round(5e3 * q.m2) / 15e3), q.lastValue = F, [q.lastValue, q.inertia];
500
500
  }), this.name = g, this.getValueFn = w, Object.keys(V).forEach(function(I) {
501
- R[I] = V[I];
501
+ q[I] = V[I];
502
502
  }), this.lastValue = this.getValueFn(0);
503
503
  }
504
- function C(g, w, R, V) {
505
- var I = this, Y = 4 < arguments.length && arguments[4] !== void 0 ? arguments[4] : 0, B = 5 < arguments.length && arguments[5] !== void 0 ? arguments[5] : {};
504
+ function C(g, w, q, V) {
505
+ var I = this, F = 4 < arguments.length && arguments[4] !== void 0 ? arguments[4] : 0, B = 5 < arguments.length && arguments[5] !== void 0 ? arguments[5] : {};
506
506
  e(this, C), i(this, "domElement", void 0), i(this, "transformsData", void 0), i(this, "styles", {}), i(this, "selector", ""), i(this, "groupIndex", 0), i(this, "laxInstance", void 0), i(this, "onUpdate", void 0), i(this, "update", function(M, _) {
507
507
  var L, P = I.transforms, W = {};
508
508
  for (L in P) {
509
509
  var N = P[L];
510
510
  M[L] || console.error("No lax driver with name: ", L);
511
- var J, Q = s(M[L], 2), ne = Q[0], re = Q[1];
511
+ var J, Q = s(M[L], 2), se = Q[0], re = Q[1];
512
512
  for (J in N) {
513
- var ae, Ae = s(N[J], 3), de = Ae[0], ue = Ae[1], Re = Ae[2], be = Re === void 0 ? {} : Re, Se = be.modValue, Ee = be.frameStep, je = Ee === void 0 ? 1 : Ee, X = be.easing, Ae = be.inertia, Re = be.inertiaMode, Ee = be.cssFn, be = be.cssUnit, be = be === void 0 ? "" : be, X = S[X];
513
+ var ae, Ae = s(N[J], 3), de = Ae[0], ue = Ae[1], qe = Ae[2], be = qe === void 0 ? {} : qe, Se = be.modValue, Te = be.frameStep, je = Te === void 0 ? 1 : Te, X = be.easing, Ae = be.inertia, qe = be.inertiaMode, Te = be.cssFn, be = be.cssUnit, be = be === void 0 ? "" : be, X = S[X];
514
514
  _ % je == 0 && (X = (function(ie, ge, ve, Oe) {
515
515
  var ye = 0;
516
- if (ie.forEach(function(se) {
517
- se < ve && ye++;
516
+ if (ie.forEach(function(ne) {
517
+ ne < ve && ye++;
518
518
  }), ye <= 0) return ge[0];
519
519
  if (ye >= ie.length) return ge[ie.length - 1];
520
520
  var fe, he = (he = ie[fe = ye - 1], ie = ie[ye], (ve - he) / (ie - he));
521
521
  return Oe && (he = Oe(he)), fe = ge[fe], ge = ge[ye], fe * (1 - (he = he)) + ge * he;
522
- })(de, ue, Se ? ne % Se : ne, X), Ae && (ae = re * Ae, Re === "absolute" && (ae = Math.abs(ae)), X += ae), ae = (be || f.includes(J) ? "px" : v.includes(J) ? "deg" : "") == "px" ? 0 : 3, ae = X.toFixed(ae), W[J] = Ee ? Ee(ae, I.domElement) : ae + be);
522
+ })(de, ue, Se ? se % Se : se, X), Ae && (ae = re * Ae, qe === "absolute" && (ae = Math.abs(ae)), X += ae), ae = (be || f.includes(J) ? "px" : v.includes(J) ? "deg" : "") == "px" ? 0 : 3, ae = X.toFixed(ae), W[J] = Te ? Te(ae, I.domElement) : ae + be);
523
523
  }
524
524
  }
525
525
  I.applyStyles(W), I.onUpdate && I.onUpdate(M, I.domElement);
@@ -529,18 +529,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
529
529
  for (M in I.transformsData) (function(L) {
530
530
  var P = I.transformsData[L], W = {}, N = P.presets;
531
531
  (N === void 0 ? [] : N).forEach(function(de) {
532
- var ne, ue = s(de.split(":"), 3), re = ue[0], ae = ue[1], de = ue[2], ue = window.lax.presets[re];
533
- ue ? (ne = ue(ae, de), Object.keys(ne).forEach(function(Se) {
534
- P[Se] = ne[Se];
532
+ var se, ue = s(de.split(":"), 3), re = ue[0], ae = ue[1], de = ue[2], ue = window.lax.presets[re];
533
+ ue ? (se = ue(ae, de), Object.keys(se).forEach(function(Se) {
534
+ P[Se] = se[Se];
535
535
  })) : console.error("Lax preset cannot be found with name: ", re);
536
536
  }), delete P.presets;
537
537
  for (var J in P) (function(Q) {
538
- var ne = s(P[Q], 3), de = ne[0], ae = de === void 0 ? [-1e9, 1e9] : de, de = ne[1], de = de === void 0 ? [-1e9, 1e9] : de, ne = ne[2], ne = ne === void 0 ? {} : ne, re = I.domElement.getBoundingClientRect(), ae = T(ae, _).map(function(ue) {
538
+ var se = s(P[Q], 3), de = se[0], ae = de === void 0 ? [-1e9, 1e9] : de, de = se[1], de = de === void 0 ? [-1e9, 1e9] : de, se = se[2], se = se === void 0 ? {} : se, re = I.domElement.getBoundingClientRect(), ae = E(ae, _).map(function(ue) {
539
539
  return b(ue, re, I.groupIndex);
540
- }), de = T(de, _).map(function(ue) {
540
+ }), de = E(de, _).map(function(ue) {
541
541
  return b(ue, re, I.groupIndex);
542
542
  });
543
- W[Q] = [ae, de, ne];
543
+ W[Q] = [ae, de, se];
544
544
  })(J);
545
545
  I.transforms[L] = W;
546
546
  })(M);
@@ -552,10 +552,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
552
552
  Object.keys(W).forEach(function(N) {
553
553
  I.domElement.style.setProperty(N, W[N]);
554
554
  });
555
- }), this.selector = g, this.laxInstance = w, this.domElement = R, this.transformsData = V, this.groupIndex = Y;
556
- var G = (Y = B.style) === void 0 ? {} : Y, B = B.onUpdate;
555
+ }), this.selector = g, this.laxInstance = w, this.domElement = q, this.transformsData = V, this.groupIndex = F;
556
+ var G = (F = B.style) === void 0 ? {} : F, B = B.onUpdate;
557
557
  Object.keys(G).forEach(function(M) {
558
- R.style.setProperty(M, G[M]);
558
+ q.style.setProperty(M, G[M]);
559
559
  }), B && (this.onUpdate = B), this.calculateTransforms();
560
560
  }
561
561
  m.exports !== void 0 ? m.exports = y : window.lax = y;
@@ -563,7 +563,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
563
563
  })(Mt)), Mt.exports;
564
564
  }
565
565
  var Ni = Ii();
566
- const st = /* @__PURE__ */ Ct(Ni);
566
+ const nt = /* @__PURE__ */ Ct(Ni);
567
567
  class Pi {
568
568
  constructor(e = {}) {
569
569
  const i = {
@@ -572,14 +572,14 @@ class Pi {
572
572
  this.settings = Object.assign(this, i, e), this.elements = [];
573
573
  }
574
574
  init() {
575
- st.init(), st.addDriver("scrollY", function() {
575
+ nt.init(), nt.addDriver("scrollY", function() {
576
576
  return window.scrollY;
577
- }), this.refresh(), this.lax = st, Object.assign(this, st);
577
+ }), this.refresh(), this.lax = nt, Object.assign(this, nt);
578
578
  }
579
579
  refresh() {
580
580
  let e = !1;
581
581
  document.body.hasAttribute("data-skrollrr-off") && (e = !0), this.elements.forEach((t) => {
582
- st.removeElement(t), t.style && (t.style.transition && (t.style.transition = ""), t.style.transform && (t.style.transform = ""));
582
+ nt.removeElement(t), t.style && (t.style.transition && (t.style.transition = ""), t.style.transform && (t.style.transform = ""));
583
583
  }), this.elements = [];
584
584
  let i = window.innerWidth;
585
585
  document.querySelectorAll("[data-bottom-top],[data-center],[data-center-bottom],[data-100-top],[data-50-top],[data-top],[data-top-bottom],[data-center-top],[data--300-bottom],[data--150-bottom],[data--50-bottom],[data-bottom],[data-100-bottom],[data-150-bottom],[data-400-bottom],[data--400-bottom],[data--200-bottom],[data--100-bottom],[data-50-bottom],[data-200-bottom],[data-300-bottom],[data-in],[data-in-150],[data-in-300],[data-cen--150],[data-cen],[data-cen-150],[data-out--300],[data-out--150],[data-out][data-t],[data-t-100],[data-t-200],[data-t-300],[data-t-400],[data-t-500],[data-t-600],[data-t-700],[data-t-800],[data-t-900],[data-t-1000],[data-t-1100],[data-t-1200],[data-t-1300],[data-t-1400],[data-t-1500],[data-t-1600],[data-t-1700],[data-t-1800],[data-t-1900],[data-t-2000],[data-t-2100],[data-t-2200],[data-t-2300],[data-t-2400],[data-t-2500],[data-t-2600],[data-t-2700],[data-t-2800]").forEach((t) => {
@@ -589,18 +589,18 @@ class Pi {
589
589
  return;
590
590
  }
591
591
  t.style.transform = "";
592
- let r = this.getObjVal(t, "data-top-bottom"), a = this.getObjVal(t, "data-top"), u = this.getObjVal(t, "data-50-top"), c = this.getObjVal(t, "data-100-top"), d = this.getObjVal(t, "data-center-bottom"), o = this.getObjVal(t, "data-center"), h = this.getObjVal(t, "data-center-top"), f = this.getObjVal(t, "data--400-bottom"), v = this.getObjVal(t, "data--300-bottom"), S = this.getObjVal(t, "data--200-bottom"), q = this.getObjVal(t, "data--150-bottom"), y = this.getObjVal(t, "data--100-bottom"), T = this.getObjVal(t, "data--50-bottom"), b = this.getObjVal(t, "data-bottom"), k = this.getObjVal(t, "data-50-bottom"), C = this.getObjVal(t, "data-100-bottom"), g = this.getObjVal(t, "data-150-bottom"), w = this.getObjVal(t, "data-200-bottom"), R = this.getObjVal(t, "data-300-bottom"), V = this.getObjVal(t, "data-400-bottom"), I = this.getObjVal(t, "data-bottom-top"), Y = this.getObjVal(t, "data-in"), G = this.getObjVal(t, "data-in-150"), B = this.getObjVal(t, "data-in-300"), M = this.getObjVal(t, "data-cen--150"), _ = this.getObjVal(t, "data-cen"), L = this.getObjVal(t, "data-cen-150"), P = this.getObjVal(t, "data-out--300"), W = this.getObjVal(t, "data-out--150"), N = this.getObjVal(t, "data-out"), J = !1;
592
+ let r = this.getObjVal(t, "data-top-bottom"), a = this.getObjVal(t, "data-top"), u = this.getObjVal(t, "data-50-top"), c = this.getObjVal(t, "data-100-top"), d = this.getObjVal(t, "data-center-bottom"), o = this.getObjVal(t, "data-center"), h = this.getObjVal(t, "data-center-top"), f = this.getObjVal(t, "data--400-bottom"), v = this.getObjVal(t, "data--300-bottom"), S = this.getObjVal(t, "data--200-bottom"), R = this.getObjVal(t, "data--150-bottom"), y = this.getObjVal(t, "data--100-bottom"), E = this.getObjVal(t, "data--50-bottom"), b = this.getObjVal(t, "data-bottom"), k = this.getObjVal(t, "data-50-bottom"), C = this.getObjVal(t, "data-100-bottom"), g = this.getObjVal(t, "data-150-bottom"), w = this.getObjVal(t, "data-200-bottom"), q = this.getObjVal(t, "data-300-bottom"), V = this.getObjVal(t, "data-400-bottom"), I = this.getObjVal(t, "data-bottom-top"), F = this.getObjVal(t, "data-in"), G = this.getObjVal(t, "data-in-150"), B = this.getObjVal(t, "data-in-300"), M = this.getObjVal(t, "data-cen--150"), _ = this.getObjVal(t, "data-cen"), L = this.getObjVal(t, "data-cen-150"), P = this.getObjVal(t, "data-out--300"), W = this.getObjVal(t, "data-out--150"), N = this.getObjVal(t, "data-out"), J = !1;
593
593
  t.hasAttribute("data-xs") && (J = !0);
594
594
  let Q = !1;
595
595
  t.hasAttribute("data-sm") && (Q = !0);
596
- let ne = !1;
597
- t.hasAttribute("data-md") && (ne = !0), t.hasAttribute("data-lg"), t.hasAttribute("data-xl");
598
- let re = {}, ae = {}, de = {}, ue = {}, Se = {}, je = {}, Ae = {}, Re = {}, Ee = {}, be = {}, X = {}, ie = {}, ge = {}, ve = {}, Oe = {}, ye = {}, fe = {}, he = {}, se = {}, Me = {}, l = {}, p = {}, x = {}, E = {}, O = {}, D = {}, H = {}, $ = {}, A = {}, j = {}, U = {}, F = {}, Z = {};
599
- (i > 1280 || i > 970 && i <= 1280 && !ne || i > 760 && i <= 970 && !Q || i <= 760 && !J) && (de = this.getObjVal(t, "data-t"), ue = this.getObjVal(t, "data-t-100"), Se = this.getObjVal(t, "data-t-200"), je = this.getObjVal(t, "data-t-300"), Ae = this.getObjVal(t, "data-t-400"), Re = this.getObjVal(t, "data-t-500"), Ee = this.getObjVal(t, "data-t-600"), be = this.getObjVal(t, "data-t-700"), X = this.getObjVal(t, "data-t-800"), ie = this.getObjVal(t, "data-t-900"), ge = this.getObjVal(t, "data-t-1000"), ve = this.getObjVal(t, "data-t-1100"), Oe = this.getObjVal(t, "data-t-1200"), ye = this.getObjVal(t, "data-t-1300"), fe = this.getObjVal(t, "data-t-1400"), he = this.getObjVal(t, "data-t-1500"), se = this.getObjVal(t, "data-t-1600"), Me = this.getObjVal(t, "data-t-1700"), l = this.getObjVal(t, "data-t-1800"), p = this.getObjVal(t, "data-t-1900"), x = this.getObjVal(t, "data-t-2000"), E = this.getObjVal(t, "data-t-2100"), O = this.getObjVal(t, "data-t-2200"), D = this.getObjVal(t, "data-t-2300"), H = this.getObjVal(t, "data-t-2400"), $ = this.getObjVal(t, "data-t-2500"), A = this.getObjVal(t, "data-t-2600"), j = this.getObjVal(t, "data-t-2700"), U = this.getObjVal(t, "data-t-2800")), i > 970 && i <= 1280 && ne && (t.hasAttribute("data-md-t") && (de = this.getObjVal(t, "data-md-t")), t.hasAttribute("data-md-t-100") && (ue = this.getObjVal(t, "data-md-t-100")), t.hasAttribute("data-md-t-200") && (Se = this.getObjVal(t, "data-md-t-200")), t.hasAttribute("data-md-t-300") && (je = this.getObjVal(t, "data-md-t-300")), t.hasAttribute("data-md-t-400") && (Ae = this.getObjVal(t, "data-md-t-400")), t.hasAttribute("data-md-t-500") && (Re = this.getObjVal(t, "data-md-t-500")), t.hasAttribute("data-md-t-600") && (Ee = this.getObjVal(t, "data-md-t-600")), t.hasAttribute("data-md-t-700") && (be = this.getObjVal(t, "data-md-t-700")), t.hasAttribute("data-md-t-800") && (X = this.getObjVal(t, "data-md-t-800")), t.hasAttribute("data-md-t-900") && (ie = this.getObjVal(t, "data-md-t-900")), t.hasAttribute("data-md-t-1000") && (ge = this.getObjVal(t, "data-md-t-1000")), t.hasAttribute("data-md-t-1100") && (ve = this.getObjVal(t, "data-md-t-1100")), t.hasAttribute("data-md-t-1200") && (Oe = this.getObjVal(t, "data-md-t-1200")), t.hasAttribute("data-md-t-1300") && (ye = this.getObjVal(t, "data-md-t-1300")), t.hasAttribute("data-md-t-1400") && (fe = this.getObjVal(t, "data-md-t-1400")), t.hasAttribute("data-md-t-1500") && (he = this.getObjVal(t, "data-md-t-1500")), t.hasAttribute("data-md-t-1600") && (se = this.getObjVal(t, "data-md-t-1600")), t.hasAttribute("data-md-t-1700") && (Me = this.getObjVal(t, "data-md-t-1700")), t.hasAttribute("data-md-t-1800") && (l = this.getObjVal(t, "data-md-t-1800")), t.hasAttribute("data-md-t-1900") && (p = this.getObjVal(t, "data-md-t-1900")), t.hasAttribute("data-md-t-2000") && (x = this.getObjVal(t, "data-md-t-2000")), t.hasAttribute("data-md-t-2100") && (E = this.getObjVal(t, "data-md-t-2100")), t.hasAttribute("data-md-t-2200") && (O = this.getObjVal(t, "data-md-t-2200")), t.hasAttribute("data-md-t-2300") && (D = this.getObjVal(t, "data-md-t-2300")), t.hasAttribute("data-md-t-2400") && (H = this.getObjVal(t, "data-md-t-2400")), t.hasAttribute("data-md-t-2500") && ($ = this.getObjVal(t, "data-md-t-2500")), t.hasAttribute("data-md-t-2600") && (A = this.getObjVal(t, "data-md-t-2600")), t.hasAttribute("data-md-t-2700") && (j = this.getObjVal(t, "data-md-t-2700")), t.hasAttribute("data-md-t-2800") && (U = this.getObjVal(t, "data-md-t-2800"))), i <= 970 && t.hasAttribute("m-data-out") && (N = this.getObjVal(t, "m-data-out")), (i > 760 && i <= 970 && Q || i <= 760 && !J && Q) && (t.hasAttribute("data-sm-t") && (de = this.getObjVal(t, "data-sm-t")), t.hasAttribute("data-sm-t-100") && (ue = this.getObjVal(t, "data-sm-t-100")), t.hasAttribute("data-sm-t-200") && (Se = this.getObjVal(t, "data-sm-t-200")), t.hasAttribute("data-sm-t-300") && (je = this.getObjVal(t, "data-sm-t-300")), t.hasAttribute("data-sm-t-400") && (Ae = this.getObjVal(t, "data-sm-t-400")), t.hasAttribute("data-sm-t-500") && (Re = this.getObjVal(t, "data-sm-t-500")), t.hasAttribute("data-sm-t-600") && (Ee = this.getObjVal(t, "data-sm-t-600")), t.hasAttribute("data-sm-t-700") && (be = this.getObjVal(t, "data-sm-t-700")), t.hasAttribute("data-sm-t-800") && (X = this.getObjVal(t, "data-sm-t-800")), t.hasAttribute("data-sm-t-900") && (ie = this.getObjVal(t, "data-sm-t-900")), t.hasAttribute("data-sm-t-1000") && (ge = this.getObjVal(t, "data-sm-t-1000")), t.hasAttribute("data-sm-t-1100") && (ve = this.getObjVal(t, "data-sm-t-1100")), t.hasAttribute("data-sm-t-1200") && (Oe = this.getObjVal(t, "data-sm-t-1200")), t.hasAttribute("data-sm-t-1300") && (ye = this.getObjVal(t, "data-sm-t-1300")), t.hasAttribute("data-sm-t-1400") && (fe = this.getObjVal(t, "data-sm-t-1400")), t.hasAttribute("data-sm-t-1500") && (he = this.getObjVal(t, "data-sm-t-1500")), t.hasAttribute("data-sm-t-1600") && (se = this.getObjVal(t, "data-sm-t-1600")), t.hasAttribute("data-sm-t-1700") && (Me = this.getObjVal(t, "data-sm-t-1700")), t.hasAttribute("data-sm-t-1800") && (l = this.getObjVal(t, "data-sm-t-1800")), t.hasAttribute("data-sm-t-1900") && (p = this.getObjVal(t, "data-sm-t-1900")), t.hasAttribute("data-sm-t-2000") && (x = this.getObjVal(t, "data-sm-t-2000")), t.hasAttribute("data-sm-t-2100") && (E = this.getObjVal(t, "data-sm-t-2100")), t.hasAttribute("data-sm-t-2200") && (O = this.getObjVal(t, "data-sm-t-2200")), t.hasAttribute("data-sm-t-2300") && (D = this.getObjVal(t, "data-sm-t-2300")), t.hasAttribute("data-sm-t-2400") && (H = this.getObjVal(t, "data-sm-t-2400")), t.hasAttribute("data-sm-t-2500") && ($ = this.getObjVal(t, "data-sm-t-2500")), t.hasAttribute("data-sm-t-2600") && (A = this.getObjVal(t, "data-sm-t-2600")), t.hasAttribute("data-sm-t-2700") && (j = this.getObjVal(t, "data-sm-t-2700")), t.hasAttribute("data-sm-t-2800") && (U = this.getObjVal(t, "data-sm-t-2800"))), i <= 414 && J && (t.hasAttribute("data-xs-t") && (de = this.getObjVal(t, "data-xs-t")), t.hasAttribute("data-xs-t-100") && (ue = this.getObjVal(t, "data-xs-t-100")), t.hasAttribute("data-xs-t-200") && (Se = this.getObjVal(t, "data-xs-t-200")), t.hasAttribute("data-xs-t-300") && (je = this.getObjVal(t, "data-xs-t-300")), t.hasAttribute("data-xs-t-400") && (Ae = this.getObjVal(t, "data-xs-t-400")), t.hasAttribute("data-xs-t-500") && (Re = this.getObjVal(t, "data-xs-t-500")), t.hasAttribute("data-xs-t-600") && (Ee = this.getObjVal(t, "data-xs-t-600")), t.hasAttribute("data-xs-t-700") && (be = this.getObjVal(t, "data-xs-t-700")), t.hasAttribute("data-xs-t-800") && (X = this.getObjVal(t, "data-xs-t-800")), t.hasAttribute("data-xs-t-900") && (ie = this.getObjVal(t, "data-xs-t-900")), t.hasAttribute("data-xs-t-1000") && (ge = this.getObjVal(t, "data-xs-t-1000")), t.hasAttribute("data-xs-t-1100") && (ve = this.getObjVal(t, "data-xs-t-1100")), t.hasAttribute("data-xs-t-1200") && (Oe = this.getObjVal(t, "data-xs-t-1200")), t.hasAttribute("data-xs-t-1300") && (ye = this.getObjVal(t, "data-xs-t-1300")), t.hasAttribute("data-xs-t-1400") && (fe = this.getObjVal(t, "data-xs-t-1400")), t.hasAttribute("data-xs-t-1500") && (he = this.getObjVal(t, "data-xs-t-1500")), t.hasAttribute("data-xs-t-1600") && (se = this.getObjVal(t, "data-xs-t-1600")), t.hasAttribute("data-xs-t-1700") && (Me = this.getObjVal(t, "data-xs-t-1700")), t.hasAttribute("data-xs-t-1800") && (l = this.getObjVal(t, "data-xs-t-1800")), t.hasAttribute("data-xs-t-1900") && (p = this.getObjVal(t, "data-xs-t-1900")), t.hasAttribute("data-xs-t-2000") && (x = this.getObjVal(t, "data-xs-t-2000")), t.hasAttribute("data-xs-t-2100") && (E = this.getObjVal(t, "data-xs-t-2100")), t.hasAttribute("data-xs-t-2200") && (O = this.getObjVal(t, "data-xs-t-2200")), t.hasAttribute("data-xs-t-2300") && (D = this.getObjVal(t, "data-xs-t-2300")), t.hasAttribute("data-xs-t-2400") && (H = this.getObjVal(t, "data-xs-t-2400")), t.hasAttribute("data-xs-t-2500") && ($ = this.getObjVal(t, "data-xs-t-2500")), t.hasAttribute("data-xs-t-2600") && (A = this.getObjVal(t, "data-xs-t-2600")), t.hasAttribute("data-xs-t-2700") && (j = this.getObjVal(t, "data-xs-t-2700")), t.hasAttribute("data-xs-t-2800") && (U = this.getObjVal(t, "data-xs-t-2800")));
600
- let ee = de, te = ue, K = Se, me = je, oe = Ae, Te = Re, pe = Ee, xe = be, Ce = X, $e = ie, Ne = ge, Pe = ve, ke = Oe, le = ye, qe = fe, De = he, We = se, et = Me, _e = l, He = p, Ue = x, Ge = E, tt = O, it = D, nt = H, dt = $, ht = A, pt = j, ft = U, Ze = window.innerHeight;
601
- Ze < 730 ? (re = ee, ae = te, de = K, ue = me, Se = oe, je = Te, Ae = pe, Re = xe, Ee = Ce, be = $e, X = Ne, ie = Pe, ge = ke, ve = le, Oe = qe, ye = De, fe = We, he = et, se = _e, Me = He, l = Ue, p = Ge, x = tt, E = it, O = nt, D = dt, H = ht, $ = pt, A = ft, j = {}, U = {}) : Ze >= 730 && Ze < 790 ? (ae = ee, de = te, ue = K, Se = me, je = oe, Ae = Te, Re = pe, Ee = xe, be = Ce, X = $e, ie = Ne, ge = Pe, ve = ke, Oe = le, ye = qe, fe = De, he = We, se = et, Me = _e, l = He, p = Ue, x = Ge, E = tt, O = it, D = nt, H = dt, $ = ht, A = pt, j = ft, U = {}) : Ze >= 790 && Ze < 840 || (Ze >= 840 && Ze < 1125 ? (de = {}, ue = ee, Se = te, je = K, Ae = me, Re = oe, Ee = Te, be = pe, X = xe, ie = Ce, ge = $e, ve = Ne, Oe = Pe, ye = ke, fe = le, he = qe, se = De, Me = We, l = et, p = _e, x = He, E = Ue, O = Ge, D = tt, H = it, $ = nt, A = dt, j = ht, U = pt, F = ft) : (de = {}, ue = {}, Se = ee, je = te, Ae = K, Re = me, Ee = oe, be = Te, X = pe, ie = xe, ge = Ce, ve = $e, Oe = Ne, ye = Pe, fe = ke, he = le, se = qe, Me = De, l = We, p = et, x = _e, E = He, O = Ue, D = Ge, H = tt, $ = it, A = nt, j = dt, U = ht, F = pt, Z = ft));
596
+ let se = !1;
597
+ t.hasAttribute("data-md") && (se = !0), t.hasAttribute("data-lg"), t.hasAttribute("data-xl");
598
+ let re = {}, ae = {}, de = {}, ue = {}, Se = {}, je = {}, Ae = {}, qe = {}, Te = {}, be = {}, X = {}, ie = {}, ge = {}, ve = {}, Oe = {}, ye = {}, fe = {}, he = {}, ne = {}, Me = {}, l = {}, p = {}, x = {}, T = {}, O = {}, D = {}, H = {}, $ = {}, A = {}, j = {}, U = {}, Y = {}, Z = {};
599
+ (i > 1280 || i > 970 && i <= 1280 && !se || i > 760 && i <= 970 && !Q || i <= 760 && !J) && (de = this.getObjVal(t, "data-t"), ue = this.getObjVal(t, "data-t-100"), Se = this.getObjVal(t, "data-t-200"), je = this.getObjVal(t, "data-t-300"), Ae = this.getObjVal(t, "data-t-400"), qe = this.getObjVal(t, "data-t-500"), Te = this.getObjVal(t, "data-t-600"), be = this.getObjVal(t, "data-t-700"), X = this.getObjVal(t, "data-t-800"), ie = this.getObjVal(t, "data-t-900"), ge = this.getObjVal(t, "data-t-1000"), ve = this.getObjVal(t, "data-t-1100"), Oe = this.getObjVal(t, "data-t-1200"), ye = this.getObjVal(t, "data-t-1300"), fe = this.getObjVal(t, "data-t-1400"), he = this.getObjVal(t, "data-t-1500"), ne = this.getObjVal(t, "data-t-1600"), Me = this.getObjVal(t, "data-t-1700"), l = this.getObjVal(t, "data-t-1800"), p = this.getObjVal(t, "data-t-1900"), x = this.getObjVal(t, "data-t-2000"), T = this.getObjVal(t, "data-t-2100"), O = this.getObjVal(t, "data-t-2200"), D = this.getObjVal(t, "data-t-2300"), H = this.getObjVal(t, "data-t-2400"), $ = this.getObjVal(t, "data-t-2500"), A = this.getObjVal(t, "data-t-2600"), j = this.getObjVal(t, "data-t-2700"), U = this.getObjVal(t, "data-t-2800")), i > 970 && i <= 1280 && se && (t.hasAttribute("data-md-t") && (de = this.getObjVal(t, "data-md-t")), t.hasAttribute("data-md-t-100") && (ue = this.getObjVal(t, "data-md-t-100")), t.hasAttribute("data-md-t-200") && (Se = this.getObjVal(t, "data-md-t-200")), t.hasAttribute("data-md-t-300") && (je = this.getObjVal(t, "data-md-t-300")), t.hasAttribute("data-md-t-400") && (Ae = this.getObjVal(t, "data-md-t-400")), t.hasAttribute("data-md-t-500") && (qe = this.getObjVal(t, "data-md-t-500")), t.hasAttribute("data-md-t-600") && (Te = this.getObjVal(t, "data-md-t-600")), t.hasAttribute("data-md-t-700") && (be = this.getObjVal(t, "data-md-t-700")), t.hasAttribute("data-md-t-800") && (X = this.getObjVal(t, "data-md-t-800")), t.hasAttribute("data-md-t-900") && (ie = this.getObjVal(t, "data-md-t-900")), t.hasAttribute("data-md-t-1000") && (ge = this.getObjVal(t, "data-md-t-1000")), t.hasAttribute("data-md-t-1100") && (ve = this.getObjVal(t, "data-md-t-1100")), t.hasAttribute("data-md-t-1200") && (Oe = this.getObjVal(t, "data-md-t-1200")), t.hasAttribute("data-md-t-1300") && (ye = this.getObjVal(t, "data-md-t-1300")), t.hasAttribute("data-md-t-1400") && (fe = this.getObjVal(t, "data-md-t-1400")), t.hasAttribute("data-md-t-1500") && (he = this.getObjVal(t, "data-md-t-1500")), t.hasAttribute("data-md-t-1600") && (ne = this.getObjVal(t, "data-md-t-1600")), t.hasAttribute("data-md-t-1700") && (Me = this.getObjVal(t, "data-md-t-1700")), t.hasAttribute("data-md-t-1800") && (l = this.getObjVal(t, "data-md-t-1800")), t.hasAttribute("data-md-t-1900") && (p = this.getObjVal(t, "data-md-t-1900")), t.hasAttribute("data-md-t-2000") && (x = this.getObjVal(t, "data-md-t-2000")), t.hasAttribute("data-md-t-2100") && (T = this.getObjVal(t, "data-md-t-2100")), t.hasAttribute("data-md-t-2200") && (O = this.getObjVal(t, "data-md-t-2200")), t.hasAttribute("data-md-t-2300") && (D = this.getObjVal(t, "data-md-t-2300")), t.hasAttribute("data-md-t-2400") && (H = this.getObjVal(t, "data-md-t-2400")), t.hasAttribute("data-md-t-2500") && ($ = this.getObjVal(t, "data-md-t-2500")), t.hasAttribute("data-md-t-2600") && (A = this.getObjVal(t, "data-md-t-2600")), t.hasAttribute("data-md-t-2700") && (j = this.getObjVal(t, "data-md-t-2700")), t.hasAttribute("data-md-t-2800") && (U = this.getObjVal(t, "data-md-t-2800"))), i <= 970 && t.hasAttribute("m-data-out") && (N = this.getObjVal(t, "m-data-out")), (i > 760 && i <= 970 && Q || i <= 760 && !J && Q) && (t.hasAttribute("data-sm-t") && (de = this.getObjVal(t, "data-sm-t")), t.hasAttribute("data-sm-t-100") && (ue = this.getObjVal(t, "data-sm-t-100")), t.hasAttribute("data-sm-t-200") && (Se = this.getObjVal(t, "data-sm-t-200")), t.hasAttribute("data-sm-t-300") && (je = this.getObjVal(t, "data-sm-t-300")), t.hasAttribute("data-sm-t-400") && (Ae = this.getObjVal(t, "data-sm-t-400")), t.hasAttribute("data-sm-t-500") && (qe = this.getObjVal(t, "data-sm-t-500")), t.hasAttribute("data-sm-t-600") && (Te = this.getObjVal(t, "data-sm-t-600")), t.hasAttribute("data-sm-t-700") && (be = this.getObjVal(t, "data-sm-t-700")), t.hasAttribute("data-sm-t-800") && (X = this.getObjVal(t, "data-sm-t-800")), t.hasAttribute("data-sm-t-900") && (ie = this.getObjVal(t, "data-sm-t-900")), t.hasAttribute("data-sm-t-1000") && (ge = this.getObjVal(t, "data-sm-t-1000")), t.hasAttribute("data-sm-t-1100") && (ve = this.getObjVal(t, "data-sm-t-1100")), t.hasAttribute("data-sm-t-1200") && (Oe = this.getObjVal(t, "data-sm-t-1200")), t.hasAttribute("data-sm-t-1300") && (ye = this.getObjVal(t, "data-sm-t-1300")), t.hasAttribute("data-sm-t-1400") && (fe = this.getObjVal(t, "data-sm-t-1400")), t.hasAttribute("data-sm-t-1500") && (he = this.getObjVal(t, "data-sm-t-1500")), t.hasAttribute("data-sm-t-1600") && (ne = this.getObjVal(t, "data-sm-t-1600")), t.hasAttribute("data-sm-t-1700") && (Me = this.getObjVal(t, "data-sm-t-1700")), t.hasAttribute("data-sm-t-1800") && (l = this.getObjVal(t, "data-sm-t-1800")), t.hasAttribute("data-sm-t-1900") && (p = this.getObjVal(t, "data-sm-t-1900")), t.hasAttribute("data-sm-t-2000") && (x = this.getObjVal(t, "data-sm-t-2000")), t.hasAttribute("data-sm-t-2100") && (T = this.getObjVal(t, "data-sm-t-2100")), t.hasAttribute("data-sm-t-2200") && (O = this.getObjVal(t, "data-sm-t-2200")), t.hasAttribute("data-sm-t-2300") && (D = this.getObjVal(t, "data-sm-t-2300")), t.hasAttribute("data-sm-t-2400") && (H = this.getObjVal(t, "data-sm-t-2400")), t.hasAttribute("data-sm-t-2500") && ($ = this.getObjVal(t, "data-sm-t-2500")), t.hasAttribute("data-sm-t-2600") && (A = this.getObjVal(t, "data-sm-t-2600")), t.hasAttribute("data-sm-t-2700") && (j = this.getObjVal(t, "data-sm-t-2700")), t.hasAttribute("data-sm-t-2800") && (U = this.getObjVal(t, "data-sm-t-2800"))), i <= 414 && J && (t.hasAttribute("data-xs-t") && (de = this.getObjVal(t, "data-xs-t")), t.hasAttribute("data-xs-t-100") && (ue = this.getObjVal(t, "data-xs-t-100")), t.hasAttribute("data-xs-t-200") && (Se = this.getObjVal(t, "data-xs-t-200")), t.hasAttribute("data-xs-t-300") && (je = this.getObjVal(t, "data-xs-t-300")), t.hasAttribute("data-xs-t-400") && (Ae = this.getObjVal(t, "data-xs-t-400")), t.hasAttribute("data-xs-t-500") && (qe = this.getObjVal(t, "data-xs-t-500")), t.hasAttribute("data-xs-t-600") && (Te = this.getObjVal(t, "data-xs-t-600")), t.hasAttribute("data-xs-t-700") && (be = this.getObjVal(t, "data-xs-t-700")), t.hasAttribute("data-xs-t-800") && (X = this.getObjVal(t, "data-xs-t-800")), t.hasAttribute("data-xs-t-900") && (ie = this.getObjVal(t, "data-xs-t-900")), t.hasAttribute("data-xs-t-1000") && (ge = this.getObjVal(t, "data-xs-t-1000")), t.hasAttribute("data-xs-t-1100") && (ve = this.getObjVal(t, "data-xs-t-1100")), t.hasAttribute("data-xs-t-1200") && (Oe = this.getObjVal(t, "data-xs-t-1200")), t.hasAttribute("data-xs-t-1300") && (ye = this.getObjVal(t, "data-xs-t-1300")), t.hasAttribute("data-xs-t-1400") && (fe = this.getObjVal(t, "data-xs-t-1400")), t.hasAttribute("data-xs-t-1500") && (he = this.getObjVal(t, "data-xs-t-1500")), t.hasAttribute("data-xs-t-1600") && (ne = this.getObjVal(t, "data-xs-t-1600")), t.hasAttribute("data-xs-t-1700") && (Me = this.getObjVal(t, "data-xs-t-1700")), t.hasAttribute("data-xs-t-1800") && (l = this.getObjVal(t, "data-xs-t-1800")), t.hasAttribute("data-xs-t-1900") && (p = this.getObjVal(t, "data-xs-t-1900")), t.hasAttribute("data-xs-t-2000") && (x = this.getObjVal(t, "data-xs-t-2000")), t.hasAttribute("data-xs-t-2100") && (T = this.getObjVal(t, "data-xs-t-2100")), t.hasAttribute("data-xs-t-2200") && (O = this.getObjVal(t, "data-xs-t-2200")), t.hasAttribute("data-xs-t-2300") && (D = this.getObjVal(t, "data-xs-t-2300")), t.hasAttribute("data-xs-t-2400") && (H = this.getObjVal(t, "data-xs-t-2400")), t.hasAttribute("data-xs-t-2500") && ($ = this.getObjVal(t, "data-xs-t-2500")), t.hasAttribute("data-xs-t-2600") && (A = this.getObjVal(t, "data-xs-t-2600")), t.hasAttribute("data-xs-t-2700") && (j = this.getObjVal(t, "data-xs-t-2700")), t.hasAttribute("data-xs-t-2800") && (U = this.getObjVal(t, "data-xs-t-2800")));
600
+ let ee = de, te = ue, K = Se, me = je, oe = Ae, Ee = qe, pe = Te, xe = be, Ce = X, $e = ie, Ne = ge, Pe = ve, ke = Oe, le = ye, Re = fe, De = he, We = ne, et = Me, _e = l, He = p, Ue = x, Ge = T, tt = O, it = D, st = H, dt = $, ht = A, pt = j, ft = U, Ze = window.innerHeight;
601
+ Ze < 730 ? (re = ee, ae = te, de = K, ue = me, Se = oe, je = Ee, Ae = pe, qe = xe, Te = Ce, be = $e, X = Ne, ie = Pe, ge = ke, ve = le, Oe = Re, ye = De, fe = We, he = et, ne = _e, Me = He, l = Ue, p = Ge, x = tt, T = it, O = st, D = dt, H = ht, $ = pt, A = ft, j = {}, U = {}) : Ze >= 730 && Ze < 790 ? (ae = ee, de = te, ue = K, Se = me, je = oe, Ae = Ee, qe = pe, Te = xe, be = Ce, X = $e, ie = Ne, ge = Pe, ve = ke, Oe = le, ye = Re, fe = De, he = We, ne = et, Me = _e, l = He, p = Ue, x = Ge, T = tt, O = it, D = st, H = dt, $ = ht, A = pt, j = ft, U = {}) : Ze >= 790 && Ze < 840 || (Ze >= 840 && Ze < 1125 ? (de = {}, ue = ee, Se = te, je = K, Ae = me, qe = oe, Te = Ee, be = pe, X = xe, ie = Ce, ge = $e, ve = Ne, Oe = Pe, ye = ke, fe = le, he = Re, ne = De, Me = We, l = et, p = _e, x = He, T = Ue, O = Ge, D = tt, H = it, $ = st, A = dt, j = ht, U = pt, Y = ft) : (de = {}, ue = {}, Se = ee, je = te, Ae = K, qe = me, Te = oe, be = Ee, X = pe, ie = xe, ge = Ce, ve = $e, Oe = Ne, ye = Pe, fe = ke, he = le, ne = Re, Me = De, l = We, p = et, x = _e, T = He, O = Ue, D = Ge, H = tt, $ = it, A = st, j = dt, U = ht, Y = pt, Z = ft));
602
602
  let z = {};
603
- Object.keys(I).length !== 0 && (z = this.parseObj(I, "elInY", z)), Object.keys(V).length !== 0 && (z = this.parseObj(V, "elInY+50", z)), Object.keys(R).length !== 0 && (z = this.parseObj(R, "elInY+100", z)), Object.keys(w).length !== 0 && (z = this.parseObj(w, "elInY+150", z)), Object.keys(g).length !== 0 && (z = this.parseObj(g, "elInY+200", z)), Object.keys(C).length !== 0 && (z = this.parseObj(C, "elInY+250", z)), Object.keys(k).length !== 0 && (z = this.parseObj(k, "elInY+300", z)), Object.keys(b).length !== 0 && (z = this.parseObj(b, "elInY+350", z)), Object.keys(T).length !== 0 && (z = this.parseObj(T, "elInY+400", z)), Object.keys(y).length !== 0 && (z = this.parseObj(y, "elInY+450", z)), Object.keys(q).length !== 0 && (z = this.parseObj(q, "elInY+500", z)), Object.keys(S).length !== 0 && (z = this.parseObj(S, "elInY+550", z)), Object.keys(v).length !== 0 && (z = this.parseObj(v, "elInY+600", z)), Object.keys(f).length !== 0 && (z = this.parseObj(f, "elInY+650", z)), Object.keys(h).length !== 0 && (z = this.parseObj(h, "elCenterY-300", z)), Object.keys(o).length !== 0 && (z = this.parseObj(o, "elCenterY", z)), Object.keys(d).length !== 0 && (z = this.parseObj(d, "elCenterY+100", z)), Object.keys(c).length !== 0 && (z = this.parseObj(c, "elCenterY+200", z)), Object.keys(u).length !== 0 && (z = this.parseObj(u, "elCenterY+300", z)), Object.keys(a).length !== 0 && (z = this.parseObj(a, "elOutY-300", z)), Object.keys(r).length !== 0 && (z = this.parseObj(r, "elOutY", z)), Object.keys(Y).length !== 0 && (z = this.parseObj(Y, "elInY", z)), Object.keys(G).length !== 0 && (z = this.parseObj(G, "elInY+150", z)), Object.keys(B).length !== 0 && (z = this.parseObj(B, "elInY+300 ", z)), Object.keys(M).length !== 0 && (z = this.parseObj(M, "elCenterY-150", z)), Object.keys(_).length !== 0 && (z = this.parseObj(_, "elCenterY", z)), Object.keys(L).length !== 0 && (z = this.parseObj(L, "elCenterY+150", z)), Object.keys(P).length !== 0 && (z = this.parseObj(P, "elOutY-300 ", z)), Object.keys(W).length !== 0 && (z = this.parseObj(W, "elOutY-150 ", z)), Object.keys(N).length !== 0 && (z = this.parseObj(N, "elOutY", z)), Object.keys(re).length !== 0 && (z = this.parseObj(re, "elInY-200", z)), Object.keys(ae).length !== 0 && (z = this.parseObj(ae, "elInY-100", z)), Object.keys(de).length !== 0 && (z = this.parseObj(de, "elInY", z)), Object.keys(ue).length !== 0 && (z = this.parseObj(ue, "elInY+100", z)), Object.keys(Se).length !== 0 && (z = this.parseObj(Se, "elInY+200", z)), Object.keys(je).length !== 0 && (z = this.parseObj(je, "elInY+300 ", z)), Object.keys(Ae).length !== 0 && (z = this.parseObj(Ae, "elInY+400 ", z)), Object.keys(Re).length !== 0 && (z = this.parseObj(Re, "elInY+500 ", z)), Object.keys(Ee).length !== 0 && (z = this.parseObj(Ee, "elInY+600 ", z)), Object.keys(be).length !== 0 && (z = this.parseObj(be, "elInY+700 ", z)), Object.keys(X).length !== 0 && (z = this.parseObj(X, "elInY+800 ", z)), Object.keys(ie).length !== 0 && (z = this.parseObj(ie, "elInY+900 ", z)), Object.keys(ge).length !== 0 && (z = this.parseObj(ge, "elInY+1000 ", z)), Object.keys(ve).length !== 0 && (z = this.parseObj(ve, "elInY+1100 ", z)), Object.keys(Oe).length !== 0 && (z = this.parseObj(Oe, "elInY+1200 ", z)), Object.keys(ye).length !== 0 && (z = this.parseObj(ye, "elInY+1300 ", z)), Object.keys(fe).length !== 0 && (z = this.parseObj(fe, "elInY+1400 ", z)), Object.keys(he).length !== 0 && (z = this.parseObj(he, "elInY+1500 ", z)), Object.keys(se).length !== 0 && (z = this.parseObj(se, "elInY+1600 ", z)), Object.keys(Me).length !== 0 && (z = this.parseObj(Me, "elInY+1700 ", z)), Object.keys(l).length !== 0 && (z = this.parseObj(l, "elInY+1800 ", z)), Object.keys(p).length !== 0 && (z = this.parseObj(p, "elInY+1900 ", z)), Object.keys(x).length !== 0 && (z = this.parseObj(x, "elInY+2000 ", z)), Object.keys(E).length !== 0 && (z = this.parseObj(E, "elInY+2100 ", z)), Object.keys(O).length !== 0 && (z = this.parseObj(O, "elInY+2200 ", z)), Object.keys(D).length !== 0 && (z = this.parseObj(D, "elInY+2300 ", z)), Object.keys(H).length !== 0 && (z = this.parseObj(H, "elInY+2400 ", z)), Object.keys($).length !== 0 && (z = this.parseObj($, "elInY+2500 ", z)), Object.keys(A).length !== 0 && (z = this.parseObj(A, "elInY+2600 ", z)), Object.keys(j).length !== 0 && (z = this.parseObj(j, "elInY+2700 ", z)), Object.keys(U).length !== 0 && (z = this.parseObj(U, "elInY+2800 ", z)), Object.keys(F).length !== 0 && (z = this.parseObj(F, "elInY+2900 ", z)), Object.keys(Z).length !== 0 && (z = this.parseObj(Z, "elInY+3000 ", z)), t.style.transition = "", t.setAttribute("data-dummy-selector", "1"), st.addElements("[data-dummy-selector]", {
603
+ Object.keys(I).length !== 0 && (z = this.parseObj(I, "elInY", z)), Object.keys(V).length !== 0 && (z = this.parseObj(V, "elInY+50", z)), Object.keys(q).length !== 0 && (z = this.parseObj(q, "elInY+100", z)), Object.keys(w).length !== 0 && (z = this.parseObj(w, "elInY+150", z)), Object.keys(g).length !== 0 && (z = this.parseObj(g, "elInY+200", z)), Object.keys(C).length !== 0 && (z = this.parseObj(C, "elInY+250", z)), Object.keys(k).length !== 0 && (z = this.parseObj(k, "elInY+300", z)), Object.keys(b).length !== 0 && (z = this.parseObj(b, "elInY+350", z)), Object.keys(E).length !== 0 && (z = this.parseObj(E, "elInY+400", z)), Object.keys(y).length !== 0 && (z = this.parseObj(y, "elInY+450", z)), Object.keys(R).length !== 0 && (z = this.parseObj(R, "elInY+500", z)), Object.keys(S).length !== 0 && (z = this.parseObj(S, "elInY+550", z)), Object.keys(v).length !== 0 && (z = this.parseObj(v, "elInY+600", z)), Object.keys(f).length !== 0 && (z = this.parseObj(f, "elInY+650", z)), Object.keys(h).length !== 0 && (z = this.parseObj(h, "elCenterY-300", z)), Object.keys(o).length !== 0 && (z = this.parseObj(o, "elCenterY", z)), Object.keys(d).length !== 0 && (z = this.parseObj(d, "elCenterY+100", z)), Object.keys(c).length !== 0 && (z = this.parseObj(c, "elCenterY+200", z)), Object.keys(u).length !== 0 && (z = this.parseObj(u, "elCenterY+300", z)), Object.keys(a).length !== 0 && (z = this.parseObj(a, "elOutY-300", z)), Object.keys(r).length !== 0 && (z = this.parseObj(r, "elOutY", z)), Object.keys(F).length !== 0 && (z = this.parseObj(F, "elInY", z)), Object.keys(G).length !== 0 && (z = this.parseObj(G, "elInY+150", z)), Object.keys(B).length !== 0 && (z = this.parseObj(B, "elInY+300 ", z)), Object.keys(M).length !== 0 && (z = this.parseObj(M, "elCenterY-150", z)), Object.keys(_).length !== 0 && (z = this.parseObj(_, "elCenterY", z)), Object.keys(L).length !== 0 && (z = this.parseObj(L, "elCenterY+150", z)), Object.keys(P).length !== 0 && (z = this.parseObj(P, "elOutY-300 ", z)), Object.keys(W).length !== 0 && (z = this.parseObj(W, "elOutY-150 ", z)), Object.keys(N).length !== 0 && (z = this.parseObj(N, "elOutY", z)), Object.keys(re).length !== 0 && (z = this.parseObj(re, "elInY-200", z)), Object.keys(ae).length !== 0 && (z = this.parseObj(ae, "elInY-100", z)), Object.keys(de).length !== 0 && (z = this.parseObj(de, "elInY", z)), Object.keys(ue).length !== 0 && (z = this.parseObj(ue, "elInY+100", z)), Object.keys(Se).length !== 0 && (z = this.parseObj(Se, "elInY+200", z)), Object.keys(je).length !== 0 && (z = this.parseObj(je, "elInY+300 ", z)), Object.keys(Ae).length !== 0 && (z = this.parseObj(Ae, "elInY+400 ", z)), Object.keys(qe).length !== 0 && (z = this.parseObj(qe, "elInY+500 ", z)), Object.keys(Te).length !== 0 && (z = this.parseObj(Te, "elInY+600 ", z)), Object.keys(be).length !== 0 && (z = this.parseObj(be, "elInY+700 ", z)), Object.keys(X).length !== 0 && (z = this.parseObj(X, "elInY+800 ", z)), Object.keys(ie).length !== 0 && (z = this.parseObj(ie, "elInY+900 ", z)), Object.keys(ge).length !== 0 && (z = this.parseObj(ge, "elInY+1000 ", z)), Object.keys(ve).length !== 0 && (z = this.parseObj(ve, "elInY+1100 ", z)), Object.keys(Oe).length !== 0 && (z = this.parseObj(Oe, "elInY+1200 ", z)), Object.keys(ye).length !== 0 && (z = this.parseObj(ye, "elInY+1300 ", z)), Object.keys(fe).length !== 0 && (z = this.parseObj(fe, "elInY+1400 ", z)), Object.keys(he).length !== 0 && (z = this.parseObj(he, "elInY+1500 ", z)), Object.keys(ne).length !== 0 && (z = this.parseObj(ne, "elInY+1600 ", z)), Object.keys(Me).length !== 0 && (z = this.parseObj(Me, "elInY+1700 ", z)), Object.keys(l).length !== 0 && (z = this.parseObj(l, "elInY+1800 ", z)), Object.keys(p).length !== 0 && (z = this.parseObj(p, "elInY+1900 ", z)), Object.keys(x).length !== 0 && (z = this.parseObj(x, "elInY+2000 ", z)), Object.keys(T).length !== 0 && (z = this.parseObj(T, "elInY+2100 ", z)), Object.keys(O).length !== 0 && (z = this.parseObj(O, "elInY+2200 ", z)), Object.keys(D).length !== 0 && (z = this.parseObj(D, "elInY+2300 ", z)), Object.keys(H).length !== 0 && (z = this.parseObj(H, "elInY+2400 ", z)), Object.keys($).length !== 0 && (z = this.parseObj($, "elInY+2500 ", z)), Object.keys(A).length !== 0 && (z = this.parseObj(A, "elInY+2600 ", z)), Object.keys(j).length !== 0 && (z = this.parseObj(j, "elInY+2700 ", z)), Object.keys(U).length !== 0 && (z = this.parseObj(U, "elInY+2800 ", z)), Object.keys(Y).length !== 0 && (z = this.parseObj(Y, "elInY+2900 ", z)), Object.keys(Z).length !== 0 && (z = this.parseObj(Z, "elInY+3000 ", z)), t.style.transition = "", t.setAttribute("data-dummy-selector", "1"), nt.addElements("[data-dummy-selector]", {
604
604
  scrollY: z
605
605
  }), this.elements.push(document.querySelector("[data-dummy-selector]")), t.removeAttribute("data-dummy-selector"), setTimeout(() => {
606
606
  t.style.opacity = 1, t.getAttribute("data-smooth-scrolling") === "off" || this.settings.transition && (t.style.transition = this.settings.transition);
@@ -804,8 +804,8 @@ function Di() {
804
804
  }, J = this.getBounds(), Q = this._checkVisibility(J, N, L);
805
805
  if (Q !== this.visible) {
806
806
  this.visible = Q;
807
- var ne = this._toggleCallback();
808
- ne instanceof Promise ? ne.then(this._toggleClass.bind(this)).catch(function(re) {
807
+ var se = this._toggleCallback();
808
+ se instanceof Promise ? se.then(this._toggleClass.bind(this)).catch(function(re) {
809
809
  console.error("Trigger promise failed"), console.error(re);
810
810
  }) : this._toggleClass(), this.visible && this.once && (this.active = !1);
811
811
  } else if (Q && typeof this.toggle.callback.visible == "function")
@@ -915,14 +915,14 @@ function Di() {
915
915
  L.enumerable = L.enumerable || !1, L.configurable = !0, "value" in L && (L.writable = !0), Object.defineProperty(B, L.key, L);
916
916
  }
917
917
  }
918
- function q(B, M, _) {
918
+ function R(B, M, _) {
919
919
  return M && S(B.prototype, M), B;
920
920
  }
921
921
  var y = /* @__PURE__ */ (function() {
922
922
  function B(M) {
923
923
  v(this, B), this.triggers = M instanceof Array ? M : [];
924
924
  }
925
- return q(B, [{
925
+ return R(B, [{
926
926
  key: "add",
927
927
  value: function(_) {
928
928
  var L = this;
@@ -989,7 +989,7 @@ function Di() {
989
989
  }
990
990
  }]), B;
991
991
  })();
992
- function T(B, M) {
992
+ function E(B, M) {
993
993
  if (!(B instanceof M))
994
994
  throw new TypeError("Cannot call a class as a function");
995
995
  }
@@ -1004,7 +1004,7 @@ function Di() {
1004
1004
  }
1005
1005
  var C = /* @__PURE__ */ (function() {
1006
1006
  function B(M, _) {
1007
- T(this, B), this._parseOptions(M), typeof _ == "function" && (this.callback = _), this.direction = "none", this.position = this.getPosition(), this.lastAction = this._getTimestamp(), this._startRun(), this._boundListener = this._didScroll.bind(this), this.element.addEventListener("scroll", this._boundListener);
1007
+ E(this, B), this._parseOptions(M), typeof _ == "function" && (this.callback = _), this.direction = "none", this.position = this.getPosition(), this.lastAction = this._getTimestamp(), this._startRun(), this._boundListener = this._didScroll.bind(this), this.element.addEventListener("scroll", this._boundListener);
1008
1008
  }
1009
1009
  return k(B, [{
1010
1010
  key: "_parseOptions",
@@ -1107,7 +1107,7 @@ function Di() {
1107
1107
  }), t.d(s, "TriggerCollection", function() {
1108
1108
  return I;
1109
1109
  }), t.d(s, "ScrollAnimationLoop", function() {
1110
- return Y;
1110
+ return F;
1111
1111
  }), t.d(s, "default", function() {
1112
1112
  return G;
1113
1113
  });
@@ -1121,7 +1121,7 @@ function Di() {
1121
1121
  L.enumerable = L.enumerable || !1, L.configurable = !0, "value" in L && (L.writable = !0), Object.defineProperty(B, L.key, L);
1122
1122
  }
1123
1123
  }
1124
- function R(B, M, _) {
1124
+ function q(B, M, _) {
1125
1125
  return M && w(B.prototype, M), B;
1126
1126
  }
1127
1127
  /*!
@@ -1135,11 +1135,11 @@ function Di() {
1135
1135
  *
1136
1136
  * Date: 2017-07-09
1137
1137
  */
1138
- var V = f, I = y, Y = C, G = /* @__PURE__ */ (function() {
1138
+ var V = f, I = y, F = C, G = /* @__PURE__ */ (function() {
1139
1139
  function B(M) {
1140
1140
  g(this, B), this._parseOptions(M), this._initCollection(), this._initLoop();
1141
1141
  }
1142
- return R(B, [{
1142
+ return q(B, [{
1143
1143
  key: "_parseOptions",
1144
1144
  value: function(_) {
1145
1145
  _ = a()(new n(), _), this.defaultTrigger = _.trigger, this.scrollOptions = _.scroll;
@@ -1162,7 +1162,7 @@ function Di() {
1162
1162
  key: "_initLoop",
1163
1163
  value: function() {
1164
1164
  var _ = this;
1165
- this.loop = new Y({
1165
+ this.loop = new F({
1166
1166
  sustain: this.scrollOptions.sustain,
1167
1167
  element: this.scrollOptions.element,
1168
1168
  callback: function(P, W) {
@@ -1325,19 +1325,19 @@ function Vi() {
1325
1325
  }
1326
1326
  function s(l, p) {
1327
1327
  for (var x = 0; x < p.length; x++) {
1328
- var E = p[x];
1329
- E.enumerable = E.enumerable || !1, E.configurable = !0, "value" in E && (E.writable = !0), Object.defineProperty(l, n(E.key), E);
1328
+ var T = p[x];
1329
+ T.enumerable = T.enumerable || !1, T.configurable = !0, "value" in T && (T.writable = !0), Object.defineProperty(l, n(T.key), T);
1330
1330
  }
1331
1331
  }
1332
1332
  function t(l, p, x) {
1333
1333
  return p && s(l.prototype, p), Object.defineProperty(l, "prototype", { writable: !1 }), l;
1334
1334
  }
1335
1335
  function n(l) {
1336
- var p = (function(x, E) {
1336
+ var p = (function(x, T) {
1337
1337
  if (typeof x != "object" || !x) return x;
1338
1338
  var O = x[Symbol.toPrimitive];
1339
1339
  if (O !== void 0) {
1340
- var D = O.call(x, E);
1340
+ var D = O.call(x, T);
1341
1341
  if (typeof D != "object") return D;
1342
1342
  throw new TypeError("@@toPrimitive must return a primitive value.");
1343
1343
  }
@@ -1354,11 +1354,11 @@ function Vi() {
1354
1354
  }
1355
1355
  var a = Date.now();
1356
1356
  function u() {
1357
- var l = {}, p = !0, x = 0, E = arguments.length;
1357
+ var l = {}, p = !0, x = 0, T = arguments.length;
1358
1358
  Object.prototype.toString.call(arguments[0]) === "[object Boolean]" && (p = arguments[0], x++);
1359
1359
  for (var O = function(H) {
1360
1360
  for (var $ in H) Object.prototype.hasOwnProperty.call(H, $) && (p && Object.prototype.toString.call(H[$]) === "[object Object]" ? l[$] = u(!0, l[$], H[$]) : l[$] = H[$]);
1361
- }; x < E; x++) {
1361
+ }; x < T; x++) {
1362
1362
  var D = arguments[x];
1363
1363
  O(D);
1364
1364
  }
@@ -1366,29 +1366,29 @@ function Vi() {
1366
1366
  }
1367
1367
  function c(l, p) {
1368
1368
  if ((G(l) || l === window || l === document) && (l = [l]), M(l) || _(l) || (l = [l]), W(l) != 0) {
1369
- if (M(l) && !_(l)) for (var x = l.length, E = 0; E < x && p.call(l[E], l[E], E, l) !== !1; E++) ;
1369
+ if (M(l) && !_(l)) for (var x = l.length, T = 0; T < x && p.call(l[T], l[T], T, l) !== !1; T++) ;
1370
1370
  else if (_(l)) {
1371
1371
  for (var O in l) if (P(l, O) && p.call(l[O], l[O], O, l) === !1) break;
1372
1372
  }
1373
1373
  }
1374
1374
  }
1375
1375
  function d(l) {
1376
- var p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, x = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, E = l[a] = l[a] || [], O = { all: E, evt: null, found: null };
1377
- return p && x && W(E) > 0 && c(E, (function(D, H) {
1376
+ var p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, x = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, T = l[a] = l[a] || [], O = { all: T, evt: null, found: null };
1377
+ return p && x && W(T) > 0 && c(T, (function(D, H) {
1378
1378
  if (D.eventName == p && D.fn.toString() == x.toString()) return O.found = !0, O.evt = H, !1;
1379
1379
  })), O;
1380
1380
  }
1381
1381
  function o(l) {
1382
- var p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, x = p.onElement, E = p.withCallback, O = p.avoidDuplicate, D = O === void 0 || O, H = p.once, $ = H !== void 0 && H, A = p.useCapture, j = A !== void 0 && A, U = arguments.length > 2 ? arguments[2] : void 0, F = x || [];
1382
+ var p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, x = p.onElement, T = p.withCallback, O = p.avoidDuplicate, D = O === void 0 || O, H = p.once, $ = H !== void 0 && H, A = p.useCapture, j = A !== void 0 && A, U = arguments.length > 2 ? arguments[2] : void 0, Y = x || [];
1383
1383
  function Z(ee) {
1384
- I(E) && E.call(U, ee, this), $ && Z.destroy();
1384
+ I(T) && T.call(U, ee, this), $ && Z.destroy();
1385
1385
  }
1386
- return Y(F) && (F = document.querySelectorAll(F)), Z.destroy = function() {
1387
- c(F, (function(ee) {
1386
+ return F(Y) && (Y = document.querySelectorAll(Y)), Z.destroy = function() {
1387
+ c(Y, (function(ee) {
1388
1388
  var te = d(ee, l, Z);
1389
1389
  te.found && te.all.splice(te.evt, 1), ee.removeEventListener && ee.removeEventListener(l, Z, j);
1390
1390
  }));
1391
- }, c(F, (function(ee) {
1391
+ }, c(Y, (function(ee) {
1392
1392
  var te = d(ee, l, Z);
1393
1393
  (ee.addEventListener && D && !te.found || !D) && (ee.addEventListener(l, Z, j), te.all.push({ eventName: l, fn: Z }));
1394
1394
  })), Z;
@@ -1412,14 +1412,14 @@ function Vi() {
1412
1412
  if (typeof l.matches == "function" ? l.matches(p) : l.msMatchesSelector(p)) return l;
1413
1413
  }
1414
1414
  }
1415
- function q(l) {
1415
+ function R(l) {
1416
1416
  var p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", x = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
1417
1417
  if (!l || p === "") return !1;
1418
1418
  if (p === "none") return I(x) && x(), !1;
1419
- var E = g(), O = p.split(" ");
1419
+ var T = g(), O = p.split(" ");
1420
1420
  c(O, (function(D) {
1421
1421
  h(l, "g" + D);
1422
- })), o(E, { onElement: l, avoidDuplicate: !1, once: !0, withCallback: function(D, H) {
1422
+ })), o(T, { onElement: l, avoidDuplicate: !1, once: !0, withCallback: function(D, H) {
1423
1423
  c(O, (function($) {
1424
1424
  f(H, "g" + $);
1425
1425
  })), I(x) && x();
@@ -1430,7 +1430,7 @@ function Vi() {
1430
1430
  if (p === "") return l.style.webkitTransform = "", l.style.MozTransform = "", l.style.msTransform = "", l.style.OTransform = "", l.style.transform = "", !1;
1431
1431
  l.style.webkitTransform = p, l.style.MozTransform = p, l.style.msTransform = p, l.style.OTransform = p, l.style.transform = p;
1432
1432
  }
1433
- function T(l) {
1433
+ function E(l) {
1434
1434
  l.style.display = "block";
1435
1435
  }
1436
1436
  function b(l) {
@@ -1448,7 +1448,7 @@ function Vi() {
1448
1448
  var l, p = document.createElement("fakeelement"), x = { animation: "animationend", OAnimation: "oAnimationEnd", MozAnimation: "animationend", WebkitAnimation: "webkitAnimationEnd" };
1449
1449
  for (l in x) if (p.style[l] !== void 0) return x[l];
1450
1450
  }
1451
- function w(l, p, x, E) {
1451
+ function w(l, p, x, T) {
1452
1452
  if (l()) p();
1453
1453
  else {
1454
1454
  var O;
@@ -1458,19 +1458,19 @@ function Vi() {
1458
1458
  }), x);
1459
1459
  }
1460
1460
  }
1461
- function R(l, p, x) {
1461
+ function q(l, p, x) {
1462
1462
  if (L(l)) console.error("Inject assets error");
1463
- else if (I(p) && (x = p, p = !1), Y(p) && p in window) I(x) && x();
1463
+ else if (I(p) && (x = p, p = !1), F(p) && p in window) I(x) && x();
1464
1464
  else {
1465
- var E;
1465
+ var T;
1466
1466
  if (l.indexOf(".css") !== -1) {
1467
- if ((E = document.querySelectorAll('link[href="' + l + '"]')) && E.length > 0) return void (I(x) && x());
1467
+ if ((T = document.querySelectorAll('link[href="' + l + '"]')) && T.length > 0) return void (I(x) && x());
1468
1468
  var O = document.getElementsByTagName("head")[0], D = O.querySelectorAll('link[rel="stylesheet"]'), H = document.createElement("link");
1469
1469
  return H.rel = "stylesheet", H.type = "text/css", H.href = l, H.media = "all", D ? O.insertBefore(H, D[0]) : O.appendChild(H), void (I(x) && x());
1470
1470
  }
1471
- if ((E = document.querySelectorAll('script[src="' + l + '"]')) && E.length > 0) {
1471
+ if ((T = document.querySelectorAll('script[src="' + l + '"]')) && T.length > 0) {
1472
1472
  if (I(x)) {
1473
- if (Y(p)) return w((function() {
1473
+ if (F(p)) return w((function() {
1474
1474
  return window[p] !== void 0;
1475
1475
  }), (function() {
1476
1476
  x();
@@ -1481,7 +1481,7 @@ function Vi() {
1481
1481
  var $ = document.createElement("script");
1482
1482
  $.type = "text/javascript", $.src = l, $.onload = function() {
1483
1483
  if (I(x)) {
1484
- if (Y(p)) return w((function() {
1484
+ if (F(p)) return w((function() {
1485
1485
  return window[p] !== void 0;
1486
1486
  }), (function() {
1487
1487
  x();
@@ -1498,7 +1498,7 @@ function Vi() {
1498
1498
  function I(l) {
1499
1499
  return typeof l == "function";
1500
1500
  }
1501
- function Y(l) {
1501
+ function F(l) {
1502
1502
  return typeof l == "string";
1503
1503
  }
1504
1504
  function G(l) {
@@ -1540,10 +1540,10 @@ function Vi() {
1540
1540
  c(p, (function($) {
1541
1541
  x.push($.getAttribute("data-taborder"));
1542
1542
  }));
1543
- var E = Math.max.apply(Math, x.map((function($) {
1543
+ var T = Math.max.apply(Math, x.map((function($) {
1544
1544
  return parseInt($);
1545
1545
  }))), O = l < 0 ? 1 : l + 1;
1546
- O > E && (O = "1");
1546
+ O > T && (O = "1");
1547
1547
  var D = x.filter((function($) {
1548
1548
  return $ >= parseInt(O);
1549
1549
  })), H = D.sort()[0];
@@ -1552,8 +1552,8 @@ function Vi() {
1552
1552
  function Q(l) {
1553
1553
  if (l.events.hasOwnProperty("keyboard")) return !1;
1554
1554
  l.events.keyboard = o("keydown", { onElement: window, withCallback: function(p, x) {
1555
- var E = (p = p || window.event).keyCode;
1556
- if (E == 9) {
1555
+ var T = (p = p || window.event).keyCode;
1556
+ if (T == 9) {
1557
1557
  var O = document.querySelector(".gbtn.focused");
1558
1558
  if (!O) {
1559
1559
  var D = !(!document.activeElement || !document.activeElement.nodeName) && document.activeElement.nodeName.toLocaleLowerCase();
@@ -1569,20 +1569,20 @@ function Vi() {
1569
1569
  var A = J(O.getAttribute("data-taborder"));
1570
1570
  f(O, "focused"), A && (A.focus(), h(A, "focused"));
1571
1571
  }
1572
- E == 39 && l.nextSlide(), E == 37 && l.prevSlide(), E == 27 && l.close();
1572
+ T == 39 && l.nextSlide(), T == 37 && l.prevSlide(), T == 27 && l.close();
1573
1573
  } });
1574
1574
  }
1575
- var ne = t((function l(p, x) {
1576
- var E = this, O = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null;
1575
+ var se = t((function l(p, x) {
1576
+ var T = this, O = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null;
1577
1577
  if (i(this, l), this.img = p, this.slide = x, this.onclose = O, this.img.setZoomEvents) return !1;
1578
1578
  this.active = !1, this.zoomedIn = !1, this.dragging = !1, this.currentX = null, this.currentY = null, this.initialX = null, this.initialY = null, this.xOffset = 0, this.yOffset = 0, this.img.addEventListener("mousedown", (function(D) {
1579
- return E.dragStart(D);
1579
+ return T.dragStart(D);
1580
1580
  }), !1), this.img.addEventListener("mouseup", (function(D) {
1581
- return E.dragEnd(D);
1581
+ return T.dragEnd(D);
1582
1582
  }), !1), this.img.addEventListener("mousemove", (function(D) {
1583
- return E.drag(D);
1583
+ return T.drag(D);
1584
1584
  }), !1), this.img.addEventListener("click", (function(D) {
1585
- return E.slide.classList.contains("dragging-nav") ? (E.zoomOut(), !1) : E.zoomedIn ? void (E.zoomedIn && !E.dragging && E.zoomOut()) : E.zoomIn();
1585
+ return T.slide.classList.contains("dragging-nav") ? (T.zoomOut(), !1) : T.zoomedIn ? void (T.zoomedIn && !T.dragging && T.zoomOut()) : T.zoomIn();
1586
1586
  }), !1), this.img.setZoomEvents = !0;
1587
1587
  }), [{ key: "zoomIn", value: function() {
1588
1588
  var l = this.widowWidth();
@@ -1617,8 +1617,8 @@ function Vi() {
1617
1617
  } }]), re = t((function l() {
1618
1618
  var p = this, x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1619
1619
  i(this, l);
1620
- var E = x.dragEl, O = x.toleranceX, D = O === void 0 ? 40 : O, H = x.toleranceY, $ = H === void 0 ? 65 : H, A = x.slide, j = A === void 0 ? null : A, U = x.instance, F = U === void 0 ? null : U;
1621
- this.el = E, this.active = !1, this.dragging = !1, this.currentX = null, this.currentY = null, this.initialX = null, this.initialY = null, this.xOffset = 0, this.yOffset = 0, this.direction = null, this.lastDirection = null, this.toleranceX = D, this.toleranceY = $, this.toleranceReached = !1, this.dragContainer = this.el, this.slide = j, this.instance = F, this.el.addEventListener("mousedown", (function(Z) {
1620
+ var T = x.dragEl, O = x.toleranceX, D = O === void 0 ? 40 : O, H = x.toleranceY, $ = H === void 0 ? 65 : H, A = x.slide, j = A === void 0 ? null : A, U = x.instance, Y = U === void 0 ? null : U;
1621
+ this.el = T, this.active = !1, this.dragging = !1, this.currentX = null, this.currentY = null, this.initialX = null, this.initialY = null, this.xOffset = 0, this.yOffset = 0, this.direction = null, this.lastDirection = null, this.toleranceX = D, this.toleranceY = $, this.toleranceReached = !1, this.dragContainer = this.el, this.slide = j, this.instance = Y, this.el.addEventListener("mousedown", (function(Z) {
1622
1622
  return p.dragStart(Z);
1623
1623
  }), !1), this.el.addEventListener("mouseup", (function(Z) {
1624
1624
  return p.dragEnd(Z);
@@ -1643,8 +1643,8 @@ function Vi() {
1643
1643
  var p = Math.abs(this.currentX), x = Math.abs(this.currentY);
1644
1644
  if (p > 0 && p >= Math.abs(this.currentY) && (!this.lastDirection || this.lastDirection == "x")) {
1645
1645
  this.yOffset = 0, this.lastDirection = "x", this.setTranslate(this.dragContainer, this.currentX, 0);
1646
- var E = this.shouldChange();
1647
- if (!this.instance.settings.dragAutoSnap && E && (this.doSlideChange = E), this.instance.settings.dragAutoSnap && E) return this.instance.preventOutsideClick = !0, this.toleranceReached = !0, this.active = !1, this.instance.preventOutsideClick = !0, this.dragEnd(null), E == "right" && this.instance.prevSlide(), void (E == "left" && this.instance.nextSlide());
1646
+ var T = this.shouldChange();
1647
+ if (!this.instance.settings.dragAutoSnap && T && (this.doSlideChange = T), this.instance.settings.dragAutoSnap && T) return this.instance.preventOutsideClick = !0, this.toleranceReached = !0, this.active = !1, this.instance.preventOutsideClick = !0, this.dragEnd(null), T == "right" && this.instance.prevSlide(), void (T == "left" && this.instance.nextSlide());
1648
1648
  }
1649
1649
  if (this.toleranceY > 0 && x > 0 && x >= p && (!this.lastDirection || this.lastDirection == "y")) {
1650
1650
  this.xOffset = 0, this.lastDirection = "y", this.setTranslate(this.dragContainer, 0, this.currentY);
@@ -1663,32 +1663,32 @@ function Vi() {
1663
1663
  var l = !1;
1664
1664
  return Math.abs(this.currentY) >= this.toleranceY && (l = !0), l;
1665
1665
  } }, { key: "setTranslate", value: function(l, p, x) {
1666
- var E = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
1667
- l.style.transition = E ? "all .2s ease" : "", l.style.transform = "translate3d(".concat(p, "px, ").concat(x, "px, 0)");
1666
+ var T = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
1667
+ l.style.transition = T ? "all .2s ease" : "", l.style.transform = "translate3d(".concat(p, "px, ").concat(x, "px, 0)");
1668
1668
  } }]);
1669
- function ae(l, p, x, E) {
1669
+ function ae(l, p, x, T) {
1670
1670
  var O = l.querySelector(".gslide-media"), D = new Image(), H = "gSlideTitle_" + x, $ = "gSlideDesc_" + x;
1671
1671
  D.addEventListener("load", (function() {
1672
- I(E) && E();
1672
+ I(T) && T();
1673
1673
  }), !1), D.src = p.href, p.sizes != "" && p.srcset != "" && (D.sizes = p.sizes, D.srcset = p.srcset), D.alt = "", L(p.alt) || p.alt === "" || (D.alt = p.alt), p.title !== "" && D.setAttribute("aria-labelledby", H), p.description !== "" && D.setAttribute("aria-describedby", $), p.hasOwnProperty("_hasCustomWidth") && p._hasCustomWidth && (D.style.width = p.width), p.hasOwnProperty("_hasCustomHeight") && p._hasCustomHeight && (D.style.height = p.height), O.insertBefore(D, O.firstChild);
1674
1674
  }
1675
- function de(l, p, x, E) {
1675
+ function de(l, p, x, T) {
1676
1676
  var O = this, D = l.querySelector(".ginner-container"), H = "gvideo" + x, $ = l.querySelector(".gslide-media"), A = this.getAllPlayers();
1677
1677
  h(D, "gvideo-container"), $.insertBefore(k('<div class="gvideo-wrapper"></div>'), $.firstChild);
1678
1678
  var j = l.querySelector(".gvideo-wrapper");
1679
- R(this.settings.plyr.css, "Plyr");
1680
- var U = p.href, F = p?.videoProvider, Z = !1;
1681
- $.style.maxWidth = p.width, R(this.settings.plyr.js, "Plyr", (function() {
1682
- if (!F && U.match(/vimeo\.com\/([0-9]*)/) && (F = "vimeo"), !F && (U.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/) || U.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/) || U.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/) || U.match(/(youtube\.com|youtube-nocookie\.com)\/shorts\/([a-zA-Z0-9\-_]+)/)) && (F = "youtube"), F === "local" || !F) {
1683
- F = "local";
1679
+ q(this.settings.plyr.css, "Plyr");
1680
+ var U = p.href, Y = p?.videoProvider, Z = !1;
1681
+ $.style.maxWidth = p.width, q(this.settings.plyr.js, "Plyr", (function() {
1682
+ if (!Y && U.match(/vimeo\.com\/([0-9]*)/) && (Y = "vimeo"), !Y && (U.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/) || U.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/) || U.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/) || U.match(/(youtube\.com|youtube-nocookie\.com)\/shorts\/([a-zA-Z0-9\-_]+)/)) && (Y = "youtube"), Y === "local" || !Y) {
1683
+ Y = "local";
1684
1684
  var ee = '<video id="' + H + '" ';
1685
1685
  ee += 'style="background:#000; max-width: '.concat(p.width, ';" '), ee += 'preload="metadata" ', ee += 'x-webkit-airplay="allow" ', ee += "playsinline ", ee += "controls ", ee += 'class="gvideo-local">', ee += '<source src="'.concat(U, '">'), Z = k(ee += "</video>");
1686
1686
  }
1687
- var te = Z || k('<div id="'.concat(H, '" data-plyr-provider="').concat(F, '" data-plyr-embed-id="').concat(U, '"></div>'));
1688
- h(j, "".concat(F, "-video gvideo")), j.appendChild(te), j.setAttribute("data-id", H), j.setAttribute("data-index", x);
1687
+ var te = Z || k('<div id="'.concat(H, '" data-plyr-provider="').concat(Y, '" data-plyr-embed-id="').concat(U, '"></div>'));
1688
+ h(j, "".concat(Y, "-video gvideo")), j.appendChild(te), j.setAttribute("data-id", H), j.setAttribute("data-index", x);
1689
1689
  var K = P(O.settings.plyr, "config") ? O.settings.plyr.config : {}, me = new Plyr("#" + H, K);
1690
1690
  me.on("ready", (function(oe) {
1691
- A[H] = oe.detail.plyr, I(E) && E();
1691
+ A[H] = oe.detail.plyr, I(T) && T();
1692
1692
  })), w((function() {
1693
1693
  return l.querySelector("iframe") && l.querySelector("iframe").dataset.ready == "true";
1694
1694
  }), (function() {
@@ -1700,9 +1700,9 @@ function Vi() {
1700
1700
  var p = S(l.target, ".gslide-media");
1701
1701
  l.type === "enterfullscreen" && h(p, "fullscreen"), l.type === "exitfullscreen" && f(p, "fullscreen");
1702
1702
  }
1703
- function Se(l, p, x, E) {
1703
+ function Se(l, p, x, T) {
1704
1704
  var O, D = this, H = l.querySelector(".gslide-media"), $ = !(!P(p, "href") || !p.href) && p.href.split("#").pop().trim(), A = !(!P(p, "content") || !p.content) && p.content;
1705
- if (A && (Y(A) && (O = k('<div class="ginlined-content">'.concat(A, "</div>"))), G(A))) {
1705
+ if (A && (F(A) && (O = k('<div class="ginlined-content">'.concat(A, "</div>"))), G(A))) {
1706
1706
  A.style.display == "none" && (A.style.display = "block");
1707
1707
  var j = document.createElement("div");
1708
1708
  j.className = "ginlined-content", j.appendChild(A), O = j;
@@ -1710,21 +1710,21 @@ function Vi() {
1710
1710
  if ($) {
1711
1711
  var U = document.getElementById($);
1712
1712
  if (!U) return !1;
1713
- var F = U.cloneNode(!0);
1714
- F.style.height = p.height, F.style.maxWidth = p.width, h(F, "ginlined-content"), O = F;
1713
+ var Y = U.cloneNode(!0);
1714
+ Y.style.height = p.height, Y.style.maxWidth = p.width, h(Y, "ginlined-content"), O = Y;
1715
1715
  }
1716
1716
  if (!O) return console.error("Unable to append inline slide content", p), !1;
1717
1717
  H.style.height = p.height, H.style.width = p.width, H.appendChild(O), this.events["inlineclose" + $] = o("click", { onElement: H.querySelectorAll(".gtrigger-close"), withCallback: function(Z) {
1718
1718
  Z.preventDefault(), D.close();
1719
- } }), I(E) && E();
1719
+ } }), I(T) && T();
1720
1720
  }
1721
- function je(l, p, x, E) {
1721
+ function je(l, p, x, T) {
1722
1722
  var O = l.querySelector(".gslide-media"), D = (function(H) {
1723
- var $ = H.url, A = H.allow, j = H.callback, U = H.appendTo, F = document.createElement("iframe");
1724
- return F.className = "vimeo-video gvideo", F.src = $, F.style.width = "100%", F.style.height = "100%", A && F.setAttribute("allow", A), F.onload = function() {
1725
- F.onload = null, h(F, "node-ready"), I(j) && j();
1726
- }, U && U.appendChild(F), F;
1727
- })({ url: p.href, callback: E });
1723
+ var $ = H.url, A = H.allow, j = H.callback, U = H.appendTo, Y = document.createElement("iframe");
1724
+ return Y.className = "vimeo-video gvideo", Y.src = $, Y.style.width = "100%", Y.style.height = "100%", A && Y.setAttribute("allow", A), Y.onload = function() {
1725
+ Y.onload = null, h(Y, "node-ready"), I(j) && j();
1726
+ }, U && U.appendChild(Y), Y;
1727
+ })({ url: p.href, callback: T });
1728
1728
  O.parentNode.style.maxWidth = p.width, O.parentNode.style.height = p.height, O.appendChild(D);
1729
1729
  }
1730
1730
  var Ae = t((function l() {
@@ -1734,89 +1734,89 @@ function Vi() {
1734
1734
  var p = l;
1735
1735
  return (l = l.toLowerCase()).match(/\.(jpeg|jpg|jpe|gif|png|apn|webp|avif|svg)/) !== null ? "image" : l.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/) || l.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/) || l.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/) || l.match(/(youtube\.com|youtube-nocookie\.com)\/shorts\/([a-zA-Z0-9\-_]+)/) || l.match(/vimeo\.com\/([0-9]*)/) || l.match(/\.(mp4|ogg|webm|mov)/) !== null ? "video" : l.match(/\.(mp3|wav|wma|aac|ogg)/) !== null ? "audio" : l.indexOf("#") > -1 && p.split("#").pop().trim() !== "" ? "inline" : l.indexOf("goajax=true") > -1 ? "ajax" : "external";
1736
1736
  } }, { key: "parseConfig", value: function(l, p) {
1737
- var x = this, E = u({ descPosition: p.descPosition }, this.defaults);
1737
+ var x = this, T = u({ descPosition: p.descPosition }, this.defaults);
1738
1738
  if (_(l) && !G(l)) {
1739
1739
  P(l, "type") || (P(l, "content") && l.content ? l.type = "inline" : P(l, "href") && (l.type = this.sourceType(l.href)));
1740
- var O = u(E, l);
1740
+ var O = u(T, l);
1741
1741
  return this.setSize(O, p), O;
1742
1742
  }
1743
1743
  var D = "", H = l.getAttribute("data-glightbox"), $ = l.nodeName.toLowerCase();
1744
- if ($ === "a" && (D = l.href), $ === "img" && (D = l.src, E.alt = l.alt), E.href = D, c(E, (function(ee, te) {
1745
- P(p, te) && te !== "width" && (E[te] = p[te]);
1744
+ if ($ === "a" && (D = l.href), $ === "img" && (D = l.src, T.alt = l.alt), T.href = D, c(T, (function(ee, te) {
1745
+ P(p, te) && te !== "width" && (T[te] = p[te]);
1746
1746
  var K = l.dataset[te];
1747
- L(K) || (E[te] = x.sanitizeValue(K));
1748
- })), E.content && (E.type = "inline"), !E.type && D && (E.type = this.sourceType(D)), L(H)) {
1749
- if (!E.title && $ == "a") {
1747
+ L(K) || (T[te] = x.sanitizeValue(K));
1748
+ })), T.content && (T.type = "inline"), !T.type && D && (T.type = this.sourceType(D)), L(H)) {
1749
+ if (!T.title && $ == "a") {
1750
1750
  var A = l.title;
1751
- L(A) || A === "" || (E.title = A);
1751
+ L(A) || A === "" || (T.title = A);
1752
1752
  }
1753
- if (!E.title && $ == "img") {
1753
+ if (!T.title && $ == "img") {
1754
1754
  var j = l.alt;
1755
- L(j) || j === "" || (E.title = j);
1755
+ L(j) || j === "" || (T.title = j);
1756
1756
  }
1757
1757
  } else {
1758
1758
  var U = [];
1759
- c(E, (function(ee, te) {
1759
+ c(T, (function(ee, te) {
1760
1760
  U.push(";\\s?" + te);
1761
- })), U = U.join("\\s?:|"), H.trim() !== "" && c(E, (function(ee, te) {
1761
+ })), U = U.join("\\s?:|"), H.trim() !== "" && c(T, (function(ee, te) {
1762
1762
  var K = H, me = new RegExp("s?" + te + "s?:s?(.*?)(" + U + "s?:|$)"), oe = K.match(me);
1763
1763
  if (oe && oe.length && oe[1]) {
1764
- var Te = oe[1].trim().replace(/;\s*$/, "");
1765
- E[te] = x.sanitizeValue(Te);
1764
+ var Ee = oe[1].trim().replace(/;\s*$/, "");
1765
+ T[te] = x.sanitizeValue(Ee);
1766
1766
  }
1767
1767
  }));
1768
1768
  }
1769
- if (E.description && E.description.substring(0, 1) === ".") {
1770
- var F;
1769
+ if (T.description && T.description.substring(0, 1) === ".") {
1770
+ var Y;
1771
1771
  try {
1772
- F = document.querySelector(E.description).innerHTML;
1772
+ Y = document.querySelector(T.description).innerHTML;
1773
1773
  } catch (ee) {
1774
1774
  if (!(ee instanceof DOMException)) throw ee;
1775
1775
  }
1776
- F && (E.description = F);
1776
+ Y && (T.description = Y);
1777
1777
  }
1778
- if (!E.description) {
1778
+ if (!T.description) {
1779
1779
  var Z = l.querySelector(".glightbox-desc");
1780
- Z && (E.description = Z.innerHTML);
1780
+ Z && (T.description = Z.innerHTML);
1781
1781
  }
1782
- return this.setSize(E, p, l), this.slideConfig = E, E;
1782
+ return this.setSize(T, p, l), this.slideConfig = T, T;
1783
1783
  } }, { key: "setSize", value: function(l, p) {
1784
- var x = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, E = l.type == "video" ? this.checkSize(p.videosWidth) : this.checkSize(p.width), O = this.checkSize(p.height);
1785
- return l.width = P(l, "width") && l.width !== "" ? this.checkSize(l.width) : E, l.height = P(l, "height") && l.height !== "" ? this.checkSize(l.height) : O, x && l.type == "image" && (l._hasCustomWidth = !!x.dataset.width, l._hasCustomHeight = !!x.dataset.height), l;
1784
+ var x = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, T = l.type == "video" ? this.checkSize(p.videosWidth) : this.checkSize(p.width), O = this.checkSize(p.height);
1785
+ return l.width = P(l, "width") && l.width !== "" ? this.checkSize(l.width) : T, l.height = P(l, "height") && l.height !== "" ? this.checkSize(l.height) : O, x && l.type == "image" && (l._hasCustomWidth = !!x.dataset.width, l._hasCustomHeight = !!x.dataset.height), l;
1786
1786
  } }, { key: "checkSize", value: function(l) {
1787
1787
  return N(l) ? "".concat(l, "px") : l;
1788
1788
  } }, { key: "sanitizeValue", value: function(l) {
1789
1789
  return l !== "true" && l !== "false" ? l : l === "true";
1790
- } }]), Re = t((function l(p, x, E) {
1791
- i(this, l), this.element = p, this.instance = x, this.index = E;
1790
+ } }]), qe = t((function l(p, x, T) {
1791
+ i(this, l), this.element = p, this.instance = x, this.index = T;
1792
1792
  }), [{ key: "setContent", value: function() {
1793
1793
  var l = this, p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null, x = arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
1794
1794
  if (v(p, "loaded")) return !1;
1795
- var E = this.instance.settings, O = this.slideConfig, D = V();
1796
- I(E.beforeSlideLoad) && E.beforeSlideLoad({ index: this.index, slide: p, player: !1 });
1797
- var H = O.type, $ = O.descPosition, A = p.querySelector(".gslide-media"), j = p.querySelector(".gslide-title"), U = p.querySelector(".gslide-desc"), F = p.querySelector(".gdesc-inner"), Z = x, ee = "gSlideTitle_" + this.index, te = "gSlideDesc_" + this.index;
1798
- if (I(E.afterSlideLoad) && (Z = function() {
1799
- I(x) && x(), E.afterSlideLoad({ index: l.index, slide: p, player: l.instance.getSlidePlayerInstance(l.index) });
1800
- }), O.title == "" && O.description == "" ? F && F.parentNode.parentNode.removeChild(F.parentNode) : (j && O.title !== "" ? (j.id = ee, j.innerHTML = O.title) : j.parentNode.removeChild(j), U && O.description !== "" ? (U.id = te, D && E.moreLength > 0 ? (O.smallDescription = this.slideShortDesc(O.description, E.moreLength, E.moreText), U.innerHTML = O.smallDescription, this.descriptionEvents(U, O)) : U.innerHTML = O.description) : U.parentNode.removeChild(U), h(A.parentNode, "desc-".concat($)), h(F.parentNode, "description-".concat($))), h(A, "gslide-".concat(H)), h(p, "loaded"), H !== "video") {
1801
- if (H !== "external") return H === "inline" ? (Se.apply(this.instance, [p, O, this.index, Z]), void (O.draggable && new re({ dragEl: p.querySelector(".gslide-inline"), toleranceX: E.dragToleranceX, toleranceY: E.dragToleranceY, slide: p, instance: this.instance }))) : void (H !== "image" ? I(Z) && Z() : ae(p, O, this.index, (function() {
1795
+ var T = this.instance.settings, O = this.slideConfig, D = V();
1796
+ I(T.beforeSlideLoad) && T.beforeSlideLoad({ index: this.index, slide: p, player: !1 });
1797
+ var H = O.type, $ = O.descPosition, A = p.querySelector(".gslide-media"), j = p.querySelector(".gslide-title"), U = p.querySelector(".gslide-desc"), Y = p.querySelector(".gdesc-inner"), Z = x, ee = "gSlideTitle_" + this.index, te = "gSlideDesc_" + this.index;
1798
+ if (I(T.afterSlideLoad) && (Z = function() {
1799
+ I(x) && x(), T.afterSlideLoad({ index: l.index, slide: p, player: l.instance.getSlidePlayerInstance(l.index) });
1800
+ }), O.title == "" && O.description == "" ? Y && Y.parentNode.parentNode.removeChild(Y.parentNode) : (j && O.title !== "" ? (j.id = ee, j.innerHTML = O.title) : j.parentNode.removeChild(j), U && O.description !== "" ? (U.id = te, D && T.moreLength > 0 ? (O.smallDescription = this.slideShortDesc(O.description, T.moreLength, T.moreText), U.innerHTML = O.smallDescription, this.descriptionEvents(U, O)) : U.innerHTML = O.description) : U.parentNode.removeChild(U), h(A.parentNode, "desc-".concat($)), h(Y.parentNode, "description-".concat($))), h(A, "gslide-".concat(H)), h(p, "loaded"), H !== "video") {
1801
+ if (H !== "external") return H === "inline" ? (Se.apply(this.instance, [p, O, this.index, Z]), void (O.draggable && new re({ dragEl: p.querySelector(".gslide-inline"), toleranceX: T.dragToleranceX, toleranceY: T.dragToleranceY, slide: p, instance: this.instance }))) : void (H !== "image" ? I(Z) && Z() : ae(p, O, this.index, (function() {
1802
1802
  var K = p.querySelector("img");
1803
- O.draggable && new re({ dragEl: K, toleranceX: E.dragToleranceX, toleranceY: E.dragToleranceY, slide: p, instance: l.instance }), O.zoomable && K.naturalWidth > K.offsetWidth && (h(K, "zoomable"), new ne(K, p, (function() {
1803
+ O.draggable && new re({ dragEl: K, toleranceX: T.dragToleranceX, toleranceY: T.dragToleranceY, slide: p, instance: l.instance }), O.zoomable && K.naturalWidth > K.offsetWidth && (h(K, "zoomable"), new se(K, p, (function() {
1804
1804
  l.instance.resize();
1805
1805
  }))), I(Z) && Z();
1806
1806
  })));
1807
1807
  je.apply(this, [p, O, this.index, Z]);
1808
1808
  } else de.apply(this.instance, [p, O, this.index, Z]);
1809
1809
  } }, { key: "slideShortDesc", value: function(l) {
1810
- var p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 50, x = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], E = document.createElement("div");
1811
- E.innerHTML = l;
1812
- var O = E.innerText, D = x;
1810
+ var p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 50, x = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], T = document.createElement("div");
1811
+ T.innerHTML = l;
1812
+ var O = T.innerText, D = x;
1813
1813
  if ((l = O.trim()).length <= p) return l;
1814
1814
  var H = l.substr(0, p - 1);
1815
- return D ? (E = null, H + '... <a href="#" class="desc-more">' + x + "</a>") : H;
1815
+ return D ? (T = null, H + '... <a href="#" class="desc-more">' + x + "</a>") : H;
1816
1816
  } }, { key: "descriptionEvents", value: function(l, p) {
1817
- var x = this, E = l.querySelector(".desc-more");
1818
- if (!E) return !1;
1819
- o("click", { onElement: E, withCallback: function(O, D) {
1817
+ var x = this, T = l.querySelector(".desc-more");
1818
+ if (!T) return !1;
1819
+ o("click", { onElement: T, withCallback: function(O, D) {
1820
1820
  O.preventDefault();
1821
1821
  var H = document.body, $ = S(D, ".gslide-desc");
1822
1822
  if (!$) return !1;
@@ -1834,20 +1834,20 @@ function Vi() {
1834
1834
  var l = new Ae(this.instance.settings.slideExtraAttributes);
1835
1835
  return this.slideConfig = l.parseConfig(this.element, this.instance.settings), this.slideConfig;
1836
1836
  } }]);
1837
- function Ee(l) {
1837
+ function Te(l) {
1838
1838
  return Math.sqrt(l.x * l.x + l.y * l.y);
1839
1839
  }
1840
1840
  function be(l, p) {
1841
- var x = (function(E, O) {
1842
- var D = Ee(E) * Ee(O);
1841
+ var x = (function(T, O) {
1842
+ var D = Te(T) * Te(O);
1843
1843
  if (D === 0) return 0;
1844
1844
  var H = (function($, A) {
1845
1845
  return $.x * A.x + $.y * A.y;
1846
- })(E, O) / D;
1846
+ })(T, O) / D;
1847
1847
  return H > 1 && (H = 1), Math.acos(H);
1848
1848
  })(l, p);
1849
- return (function(E, O) {
1850
- return E.x * O.y - O.x * E.y;
1849
+ return (function(T, O) {
1850
+ return T.x * O.y - O.x * T.y;
1851
1851
  })(l, p) > 0 && (x *= -1), 180 * x / Math.PI;
1852
1852
  }
1853
1853
  var X = t((function l(p) {
@@ -1869,9 +1869,9 @@ function Vi() {
1869
1869
  }
1870
1870
  var ge = t((function l(p, x) {
1871
1871
  i(this, l), this.element = typeof p == "string" ? document.querySelector(p) : p, this.start = this.start.bind(this), this.move = this.move.bind(this), this.end = this.end.bind(this), this.cancel = this.cancel.bind(this), this.element.addEventListener("touchstart", this.start, !1), this.element.addEventListener("touchmove", this.move, !1), this.element.addEventListener("touchend", this.end, !1), this.element.addEventListener("touchcancel", this.cancel, !1), this.preV = { x: null, y: null }, this.pinchStartLen = null, this.zoom = 1, this.isDoubleTap = !1;
1872
- var E = function() {
1872
+ var T = function() {
1873
1873
  };
1874
- this.rotate = ie(this.element, x.rotate || E), this.touchStart = ie(this.element, x.touchStart || E), this.multipointStart = ie(this.element, x.multipointStart || E), this.multipointEnd = ie(this.element, x.multipointEnd || E), this.pinch = ie(this.element, x.pinch || E), this.swipe = ie(this.element, x.swipe || E), this.tap = ie(this.element, x.tap || E), this.doubleTap = ie(this.element, x.doubleTap || E), this.longTap = ie(this.element, x.longTap || E), this.singleTap = ie(this.element, x.singleTap || E), this.pressMove = ie(this.element, x.pressMove || E), this.twoFingerPressMove = ie(this.element, x.twoFingerPressMove || E), this.touchMove = ie(this.element, x.touchMove || E), this.touchEnd = ie(this.element, x.touchEnd || E), this.touchCancel = ie(this.element, x.touchCancel || E), this.translateContainer = this.element, this._cancelAllHandler = this.cancelAll.bind(this), window.addEventListener("scroll", this._cancelAllHandler), this.delta = null, this.last = null, this.now = null, this.tapTimeout = null, this.singleTapTimeout = null, this.longTapTimeout = null, this.swipeTimeout = null, this.x1 = this.x2 = this.y1 = this.y2 = null, this.preTapPosition = { x: null, y: null };
1874
+ this.rotate = ie(this.element, x.rotate || T), this.touchStart = ie(this.element, x.touchStart || T), this.multipointStart = ie(this.element, x.multipointStart || T), this.multipointEnd = ie(this.element, x.multipointEnd || T), this.pinch = ie(this.element, x.pinch || T), this.swipe = ie(this.element, x.swipe || T), this.tap = ie(this.element, x.tap || T), this.doubleTap = ie(this.element, x.doubleTap || T), this.longTap = ie(this.element, x.longTap || T), this.singleTap = ie(this.element, x.singleTap || T), this.pressMove = ie(this.element, x.pressMove || T), this.twoFingerPressMove = ie(this.element, x.twoFingerPressMove || T), this.touchMove = ie(this.element, x.touchMove || T), this.touchEnd = ie(this.element, x.touchEnd || T), this.touchCancel = ie(this.element, x.touchCancel || T), this.translateContainer = this.element, this._cancelAllHandler = this.cancelAll.bind(this), window.addEventListener("scroll", this._cancelAllHandler), this.delta = null, this.last = null, this.now = null, this.tapTimeout = null, this.singleTapTimeout = null, this.longTapTimeout = null, this.swipeTimeout = null, this.x1 = this.x2 = this.y1 = this.y2 = null, this.preTapPosition = { x: null, y: null };
1875
1875
  }), [{ key: "start", value: function(l) {
1876
1876
  if (l.touches) if (l.target && l.target.nodeName && ["a", "button", "input"].indexOf(l.target.nodeName.toLowerCase()) >= 0) console.log("ignore drag for this touched element", l.target.nodeName.toLowerCase());
1877
1877
  else {
@@ -1880,7 +1880,7 @@ function Vi() {
1880
1880
  if (l.touches.length > 1) {
1881
1881
  this._cancelLongTap(), this._cancelSingleTap();
1882
1882
  var x = { x: l.touches[1].pageX - this.x1, y: l.touches[1].pageY - this.y1 };
1883
- p.x = x.x, p.y = x.y, this.pinchStartLen = Ee(p), this.multipointStart.dispatch(l, this.element);
1883
+ p.x = x.x, p.y = x.y, this.pinchStartLen = Te(p), this.multipointStart.dispatch(l, this.element);
1884
1884
  }
1885
1885
  this._preventTap = !1, this.longTapTimeout = setTimeout((function() {
1886
1886
  this.longTap.dispatch(l, this.element), this._preventTap = !0;
@@ -1888,19 +1888,19 @@ function Vi() {
1888
1888
  }
1889
1889
  } }, { key: "move", value: function(l) {
1890
1890
  if (l.touches) {
1891
- var p = this.preV, x = l.touches.length, E = l.touches[0].pageX, O = l.touches[0].pageY;
1891
+ var p = this.preV, x = l.touches.length, T = l.touches[0].pageX, O = l.touches[0].pageY;
1892
1892
  if (this.isDoubleTap = !1, x > 1) {
1893
- var D = l.touches[1].pageX, H = l.touches[1].pageY, $ = { x: l.touches[1].pageX - E, y: l.touches[1].pageY - O };
1894
- p.x !== null && (this.pinchStartLen > 0 && (l.zoom = Ee($) / this.pinchStartLen, this.pinch.dispatch(l, this.element)), l.angle = be($, p), this.rotate.dispatch(l, this.element)), p.x = $.x, p.y = $.y, this.x2 !== null && this.sx2 !== null ? (l.deltaX = (E - this.x2 + D - this.sx2) / 2, l.deltaY = (O - this.y2 + H - this.sy2) / 2) : (l.deltaX = 0, l.deltaY = 0), this.twoFingerPressMove.dispatch(l, this.element), this.sx2 = D, this.sy2 = H;
1893
+ var D = l.touches[1].pageX, H = l.touches[1].pageY, $ = { x: l.touches[1].pageX - T, y: l.touches[1].pageY - O };
1894
+ p.x !== null && (this.pinchStartLen > 0 && (l.zoom = Te($) / this.pinchStartLen, this.pinch.dispatch(l, this.element)), l.angle = be($, p), this.rotate.dispatch(l, this.element)), p.x = $.x, p.y = $.y, this.x2 !== null && this.sx2 !== null ? (l.deltaX = (T - this.x2 + D - this.sx2) / 2, l.deltaY = (O - this.y2 + H - this.sy2) / 2) : (l.deltaX = 0, l.deltaY = 0), this.twoFingerPressMove.dispatch(l, this.element), this.sx2 = D, this.sy2 = H;
1895
1895
  } else {
1896
1896
  if (this.x2 !== null) {
1897
- l.deltaX = E - this.x2, l.deltaY = O - this.y2;
1897
+ l.deltaX = T - this.x2, l.deltaY = O - this.y2;
1898
1898
  var A = Math.abs(this.x1 - this.x2), j = Math.abs(this.y1 - this.y2);
1899
1899
  (A > 10 || j > 10) && (this._preventTap = !0);
1900
1900
  } else l.deltaX = 0, l.deltaY = 0;
1901
1901
  this.pressMove.dispatch(l, this.element);
1902
1902
  }
1903
- this.touchMove.dispatch(l, this.element), this._cancelLongTap(), this.x2 = E, this.y2 = O, x > 1 && l.preventDefault();
1903
+ this.touchMove.dispatch(l, this.element), this._cancelLongTap(), this.x2 = T, this.y2 = O, x > 1 && l.preventDefault();
1904
1904
  }
1905
1905
  } }, { key: "end", value: function(l) {
1906
1906
  if (l.changedTouches) {
@@ -1922,8 +1922,8 @@ function Vi() {
1922
1922
  clearTimeout(this.longTapTimeout);
1923
1923
  } }, { key: "_cancelSingleTap", value: function() {
1924
1924
  clearTimeout(this.singleTapTimeout);
1925
- } }, { key: "_swipeDirection", value: function(l, p, x, E) {
1926
- return Math.abs(l - p) >= Math.abs(x - E) ? l - p > 0 ? "Left" : "Right" : x - E > 0 ? "Up" : "Down";
1925
+ } }, { key: "_swipeDirection", value: function(l, p, x, T) {
1926
+ return Math.abs(l - p) >= Math.abs(x - T) ? l - p > 0 ? "Left" : "Right" : x - T > 0 ? "Up" : "Down";
1927
1927
  } }, { key: "on", value: function(l, p) {
1928
1928
  this[l] && this[l].add(p);
1929
1929
  } }, { key: "off", value: function(l, p) {
@@ -1935,32 +1935,32 @@ function Vi() {
1935
1935
  var p = (function() {
1936
1936
  var H, $ = document.createElement("fakeelement"), A = { transition: "transitionend", OTransition: "oTransitionEnd", MozTransition: "transitionend", WebkitTransition: "webkitTransitionEnd" };
1937
1937
  for (H in A) if ($.style[H] !== void 0) return A[H];
1938
- })(), x = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, E = v(l, "gslide-media") ? l : l.querySelector(".gslide-media"), O = S(E, ".ginner-container"), D = l.querySelector(".gslide-description");
1939
- x > 769 && (E = O), h(E, "greset"), y(E, "translate3d(0, 0, 0)"), o(p, { onElement: E, once: !0, withCallback: function(H, $) {
1940
- f(E, "greset");
1941
- } }), E.style.opacity = "", D && (D.style.opacity = "");
1938
+ })(), x = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, T = v(l, "gslide-media") ? l : l.querySelector(".gslide-media"), O = S(T, ".ginner-container"), D = l.querySelector(".gslide-description");
1939
+ x > 769 && (T = O), h(T, "greset"), y(T, "translate3d(0, 0, 0)"), o(p, { onElement: T, once: !0, withCallback: function(H, $) {
1940
+ f(T, "greset");
1941
+ } }), T.style.opacity = "", D && (D.style.opacity = "");
1942
1942
  }
1943
1943
  function Oe(l) {
1944
1944
  if (l.events.hasOwnProperty("touch")) return !1;
1945
- var p, x, E, O = C(), D = O.width, H = O.height, $ = !1, A = null, j = null, U = null, F = !1, Z = 1, ee = 1, te = !1, K = !1, me = null, oe = null, Te = null, pe = null, xe = 0, Ce = 0, $e = !1, Ne = !1, Pe = {}, ke = {}, le = 0, qe = 0, De = document.getElementById("glightbox-slider"), We = document.querySelector(".goverlay"), et = new ge(De, { touchStart: function(_e) {
1945
+ var p, x, T, O = C(), D = O.width, H = O.height, $ = !1, A = null, j = null, U = null, Y = !1, Z = 1, ee = 1, te = !1, K = !1, me = null, oe = null, Ee = null, pe = null, xe = 0, Ce = 0, $e = !1, Ne = !1, Pe = {}, ke = {}, le = 0, Re = 0, De = document.getElementById("glightbox-slider"), We = document.querySelector(".goverlay"), et = new ge(De, { touchStart: function(_e) {
1946
1946
  if ($ = !0, (v(_e.targetTouches[0].target, "ginner-container") || S(_e.targetTouches[0].target, ".gslide-desc") || _e.targetTouches[0].target.nodeName.toLowerCase() == "a") && ($ = !1), S(_e.targetTouches[0].target, ".gslide-inline") && !v(_e.targetTouches[0].target.parentNode, "gslide-inline") && ($ = !1), $) {
1947
- if (ke = _e.targetTouches[0], Pe.pageX = _e.targetTouches[0].pageX, Pe.pageY = _e.targetTouches[0].pageY, le = _e.targetTouches[0].clientX, qe = _e.targetTouches[0].clientY, A = l.activeSlide, j = A.querySelector(".gslide-media"), E = A.querySelector(".gslide-inline"), U = null, v(j, "gslide-image") && (U = j.querySelector("img")), (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) > 769 && (j = A.querySelector(".ginner-container")), f(We, "greset"), _e.pageX > 20 && _e.pageX < window.innerWidth - 20) return;
1947
+ if (ke = _e.targetTouches[0], Pe.pageX = _e.targetTouches[0].pageX, Pe.pageY = _e.targetTouches[0].pageY, le = _e.targetTouches[0].clientX, Re = _e.targetTouches[0].clientY, A = l.activeSlide, j = A.querySelector(".gslide-media"), T = A.querySelector(".gslide-inline"), U = null, v(j, "gslide-image") && (U = j.querySelector("img")), (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) > 769 && (j = A.querySelector(".ginner-container")), f(We, "greset"), _e.pageX > 20 && _e.pageX < window.innerWidth - 20) return;
1948
1948
  _e.preventDefault();
1949
1949
  }
1950
1950
  }, touchMove: function(_e) {
1951
1951
  if ($ && (ke = _e.targetTouches[0], !te && !K)) {
1952
- if (E && E.offsetHeight > H) {
1952
+ if (T && T.offsetHeight > H) {
1953
1953
  var He = Pe.pageX - ke.pageX;
1954
1954
  if (Math.abs(He) <= 13) return !1;
1955
1955
  }
1956
- F = !0;
1957
- var Ue, Ge = _e.targetTouches[0].clientX, tt = _e.targetTouches[0].clientY, it = le - Ge, nt = qe - tt;
1958
- if (Math.abs(it) > Math.abs(nt) ? ($e = !1, Ne = !0) : (Ne = !1, $e = !0), p = ke.pageX - Pe.pageX, xe = 100 * p / D, x = ke.pageY - Pe.pageY, Ce = 100 * x / H, $e && U && (Ue = 1 - Math.abs(x) / H, We.style.opacity = Ue, l.settings.touchFollowAxis && (xe = 0)), Ne && (Ue = 1 - Math.abs(p) / D, j.style.opacity = Ue, l.settings.touchFollowAxis && (Ce = 0)), !U) return y(j, "translate3d(".concat(xe, "%, 0, 0)"));
1956
+ Y = !0;
1957
+ var Ue, Ge = _e.targetTouches[0].clientX, tt = _e.targetTouches[0].clientY, it = le - Ge, st = Re - tt;
1958
+ if (Math.abs(it) > Math.abs(st) ? ($e = !1, Ne = !0) : (Ne = !1, $e = !0), p = ke.pageX - Pe.pageX, xe = 100 * p / D, x = ke.pageY - Pe.pageY, Ce = 100 * x / H, $e && U && (Ue = 1 - Math.abs(x) / H, We.style.opacity = Ue, l.settings.touchFollowAxis && (xe = 0)), Ne && (Ue = 1 - Math.abs(p) / D, j.style.opacity = Ue, l.settings.touchFollowAxis && (Ce = 0)), !U) return y(j, "translate3d(".concat(xe, "%, 0, 0)"));
1959
1959
  y(j, "translate3d(".concat(xe, "%, ").concat(Ce, "%, 0)"));
1960
1960
  }
1961
1961
  }, touchEnd: function() {
1962
1962
  if ($) {
1963
- if (F = !1, K || te) return Te = me, void (pe = oe);
1963
+ if (Y = !1, K || te) return Ee = me, void (pe = oe);
1964
1964
  var _e = Math.abs(parseInt(Ce)), He = Math.abs(parseInt(xe));
1965
1965
  if (!(_e > 29 && U)) return _e < 29 && He < 25 ? (h(We, "greset"), We.style.opacity = 1, ve(j)) : void 0;
1966
1966
  l.close();
@@ -1972,15 +1972,15 @@ function Vi() {
1972
1972
  }, multipointStart: function() {
1973
1973
  te = !0, Z = ee || 1;
1974
1974
  }, pinch: function(_e) {
1975
- if (!U || F) return !1;
1975
+ if (!U || Y) return !1;
1976
1976
  te = !0, U.scaleX = U.scaleY = Z * _e.zoom;
1977
1977
  var He = Z * _e.zoom;
1978
- if (K = !0, He <= 1) return K = !1, He = 1, pe = null, Te = null, me = null, oe = null, void U.setAttribute("style", "");
1978
+ if (K = !0, He <= 1) return K = !1, He = 1, pe = null, Ee = null, me = null, oe = null, void U.setAttribute("style", "");
1979
1979
  He > 4.5 && (He = 4.5), U.style.transform = "scale3d(".concat(He, ", ").concat(He, ", 1)"), ee = He;
1980
1980
  }, pressMove: function(_e) {
1981
1981
  if (K && !te) {
1982
1982
  var He = ke.pageX - Pe.pageX, Ue = ke.pageY - Pe.pageY;
1983
- Te && (He += Te), pe && (Ue += pe), me = He, oe = Ue;
1983
+ Ee && (He += Ee), pe && (Ue += pe), me = He, oe = Ue;
1984
1984
  var Ge = "translate3d(".concat(He, "px, ").concat(Ue, "px, 0)");
1985
1985
  ee && (Ge += " scale3d(".concat(ee, ", ").concat(ee, ", 1)")), y(U, Ge);
1986
1986
  }
@@ -1999,7 +1999,7 @@ function Vi() {
1999
1999
  } });
2000
2000
  l.events.touch = et;
2001
2001
  }
2002
- var ye = V(), fe = V() !== null || document.createTouch !== void 0 || "ontouchstart" in window || "onmsgesturechange" in window || navigator.msMaxTouchPoints, he = document.getElementsByTagName("html")[0], se = { selector: ".glightbox", elements: null, skin: "clean", theme: "clean", closeButton: !0, startAt: null, autoplayVideos: !0, autofocusVideos: !0, descPosition: "bottom", width: "900px", height: "506px", videosWidth: "960px", beforeSlideChange: null, afterSlideChange: null, beforeSlideLoad: null, afterSlideLoad: null, slideInserted: null, slideRemoved: null, slideExtraAttributes: null, onOpen: null, onClose: null, loop: !1, zoomable: !0, draggable: !0, dragAutoSnap: !1, dragToleranceX: 40, dragToleranceY: 65, preload: !0, oneSlidePerOpen: !1, touchNavigation: !0, touchFollowAxis: !0, keyboardNavigation: !0, closeOnOutsideClick: !0, plugins: !1, plyr: { css: "https://cdn.plyr.io/3.6.12/plyr.css", js: "https://cdn.plyr.io/3.6.12/plyr.js", config: { ratio: "16:9", fullscreen: { enabled: !0, iosNative: !0 }, youtube: { noCookie: !0, rel: 0, showinfo: 0, iv_load_policy: 3 }, vimeo: { byline: !1, portrait: !1, title: !1, transparent: !1 } } }, openEffect: "zoom", closeEffect: "zoom", slideEffect: "slide", moreText: "See more", moreLength: 60, cssEfects: { fade: { in: "fadeIn", out: "fadeOut" }, zoom: { in: "zoomIn", out: "zoomOut" }, slide: { in: "slideInRight", out: "slideOutLeft" }, slideBack: { in: "slideInLeft", out: "slideOutRight" }, none: { in: "none", out: "none" } }, svg: { close: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" xml:space="preserve"><g><g><path d="M505.943,6.058c-8.077-8.077-21.172-8.077-29.249,0L6.058,476.693c-8.077,8.077-8.077,21.172,0,29.249C10.096,509.982,15.39,512,20.683,512c5.293,0,10.586-2.019,14.625-6.059L505.943,35.306C514.019,27.23,514.019,14.135,505.943,6.058z"/></g></g><g><g><path d="M505.942,476.694L35.306,6.059c-8.076-8.077-21.172-8.077-29.248,0c-8.077,8.076-8.077,21.171,0,29.248l470.636,470.636c4.038,4.039,9.332,6.058,14.625,6.058c5.293,0,10.587-2.019,14.624-6.057C514.018,497.866,514.018,484.771,505.942,476.694z"/></g></g></svg>', next: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"> <g><path d="M360.731,229.075l-225.1-225.1c-5.3-5.3-13.8-5.3-19.1,0s-5.3,13.8,0,19.1l215.5,215.5l-215.5,215.5c-5.3,5.3-5.3,13.8,0,19.1c2.6,2.6,6.1,4,9.5,4c3.4,0,6.9-1.3,9.5-4l225.1-225.1C365.931,242.875,365.931,234.275,360.731,229.075z"/></g></svg>', prev: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"><g><path d="M145.188,238.575l215.5-215.5c5.3-5.3,5.3-13.8,0-19.1s-13.8-5.3-19.1,0l-225.1,225.1c-5.3,5.3-5.3,13.8,0,19.1l225.1,225c2.6,2.6,6.1,4,9.5,4s6.9-1.3,9.5-4c5.3-5.3,5.3-13.8,0-19.1L145.188,238.575z"/></g></svg>' }, slideHTML: `<div class="gslide">
2002
+ var ye = V(), fe = V() !== null || document.createTouch !== void 0 || "ontouchstart" in window || "onmsgesturechange" in window || navigator.msMaxTouchPoints, he = document.getElementsByTagName("html")[0], ne = { selector: ".glightbox", elements: null, skin: "clean", theme: "clean", closeButton: !0, startAt: null, autoplayVideos: !0, autofocusVideos: !0, descPosition: "bottom", width: "900px", height: "506px", videosWidth: "960px", beforeSlideChange: null, afterSlideChange: null, beforeSlideLoad: null, afterSlideLoad: null, slideInserted: null, slideRemoved: null, slideExtraAttributes: null, onOpen: null, onClose: null, loop: !1, zoomable: !0, draggable: !0, dragAutoSnap: !1, dragToleranceX: 40, dragToleranceY: 65, preload: !0, oneSlidePerOpen: !1, touchNavigation: !0, touchFollowAxis: !0, keyboardNavigation: !0, closeOnOutsideClick: !0, plugins: !1, plyr: { css: "https://cdn.plyr.io/3.6.12/plyr.css", js: "https://cdn.plyr.io/3.6.12/plyr.js", config: { ratio: "16:9", fullscreen: { enabled: !0, iosNative: !0 }, youtube: { noCookie: !0, rel: 0, showinfo: 0, iv_load_policy: 3 }, vimeo: { byline: !1, portrait: !1, title: !1, transparent: !1 } } }, openEffect: "zoom", closeEffect: "zoom", slideEffect: "slide", moreText: "See more", moreLength: 60, cssEfects: { fade: { in: "fadeIn", out: "fadeOut" }, zoom: { in: "zoomIn", out: "zoomOut" }, slide: { in: "slideInRight", out: "slideOutLeft" }, slideBack: { in: "slideInLeft", out: "slideOutRight" }, none: { in: "none", out: "none" } }, svg: { close: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" xml:space="preserve"><g><g><path d="M505.943,6.058c-8.077-8.077-21.172-8.077-29.249,0L6.058,476.693c-8.077,8.077-8.077,21.172,0,29.249C10.096,509.982,15.39,512,20.683,512c5.293,0,10.586-2.019,14.625-6.059L505.943,35.306C514.019,27.23,514.019,14.135,505.943,6.058z"/></g></g><g><g><path d="M505.942,476.694L35.306,6.059c-8.076-8.077-21.172-8.077-29.248,0c-8.077,8.076-8.077,21.171,0,29.248l470.636,470.636c4.038,4.039,9.332,6.058,14.625,6.058c5.293,0,10.587-2.019,14.624-6.057C514.018,497.866,514.018,484.771,505.942,476.694z"/></g></g></svg>', next: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"> <g><path d="M360.731,229.075l-225.1-225.1c-5.3-5.3-13.8-5.3-19.1,0s-5.3,13.8,0,19.1l215.5,215.5l-215.5,215.5c-5.3,5.3-5.3,13.8,0,19.1c2.6,2.6,6.1,4,9.5,4c3.4,0,6.9-1.3,9.5-4l225.1-225.1C365.931,242.875,365.931,234.275,360.731,229.075z"/></g></svg>', prev: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"><g><path d="M145.188,238.575l215.5-215.5c5.3-5.3,5.3-13.8,0-19.1s-13.8-5.3-19.1,0l-225.1,225.1c-5.3,5.3-5.3,13.8,0,19.1l225.1,225c2.6,2.6,6.1,4,9.5,4s6.9-1.3,9.5-4c5.3-5.3,5.3-13.8,0-19.1L145.188,238.575z"/></g></svg>' }, slideHTML: `<div class="gslide">
2003
2003
  <div class="gslide-inner-content">
2004
2004
  <div class="ginner-container">
2005
2005
  <div class="gslide-media">
@@ -2023,11 +2023,11 @@ function Vi() {
2023
2023
  </div>
2024
2024
  </div>` }, Me = t((function l() {
2025
2025
  var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2026
- i(this, l), this.customOptions = p, this.settings = u(se, p), this.effectsClasses = this.getAnimationClasses(), this.videoPlayers = {}, this.apiEvents = [], this.fullElementsList = !1;
2026
+ i(this, l), this.customOptions = p, this.settings = u(ne, p), this.effectsClasses = this.getAnimationClasses(), this.videoPlayers = {}, this.apiEvents = [], this.fullElementsList = !1;
2027
2027
  }), [{ key: "init", value: function() {
2028
2028
  var l = this, p = this.getSelector();
2029
- p && (this.baseEvents = o("click", { onElement: p, withCallback: function(x, E) {
2030
- x.preventDefault(), l.open(E);
2029
+ p && (this.baseEvents = o("click", { onElement: p, withCallback: function(x, T) {
2030
+ x.preventDefault(), l.open(T);
2031
2031
  } })), this.elements = this.getElements();
2032
2032
  } }, { key: "open", value: function() {
2033
2033
  var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null, p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
@@ -2035,10 +2035,10 @@ function Vi() {
2035
2035
  this.activeSlide = null, this.prevActiveSlideIndex = null, this.prevActiveSlide = null;
2036
2036
  var x = N(p) ? p : this.settings.startAt;
2037
2037
  if (G(l)) {
2038
- var E = l.getAttribute("data-gallery");
2039
- E && (this.fullElementsList = this.elements, this.elements = this.getGalleryElements(this.elements, E)), L(x) && (x = this.getElementIndex(l)) < 0 && (x = 0);
2038
+ var T = l.getAttribute("data-gallery");
2039
+ T && (this.fullElementsList = this.elements, this.elements = this.getGalleryElements(this.elements, T)), L(x) && (x = this.getElementIndex(l)) < 0 && (x = 0);
2040
2040
  }
2041
- N(x) || (x = 0), this.build(), q(this.overlay, this.settings.openEffect === "none" ? "none" : this.settings.cssEfects.fade.in);
2041
+ N(x) || (x = 0), this.build(), R(this.overlay, this.settings.openEffect === "none" ? "none" : this.settings.cssEfects.fade.in);
2042
2042
  var O = document.body, D = window.innerWidth - document.documentElement.clientWidth;
2043
2043
  if (D > 0) {
2044
2044
  var H = document.createElement("style");
@@ -2050,13 +2050,13 @@ function Vi() {
2050
2050
  this.open(null, l);
2051
2051
  } }, { key: "showSlide", value: function() {
2052
2052
  var l = this, p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, x = arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
2053
- T(this.loader), this.index = parseInt(p);
2054
- var E = this.slidesContainer.querySelector(".current");
2055
- E && f(E, "current"), this.slideAnimateOut();
2053
+ E(this.loader), this.index = parseInt(p);
2054
+ var T = this.slidesContainer.querySelector(".current");
2055
+ T && f(T, "current"), this.slideAnimateOut();
2056
2056
  var O = this.slidesContainer.querySelectorAll(".gslide")[p];
2057
2057
  if (v(O, "loaded")) this.slideAnimateIn(O, x), b(this.loader);
2058
2058
  else {
2059
- T(this.loader);
2059
+ E(this.loader);
2060
2060
  var D = this.elements[p], H = { index: this.index, slide: O, slideNode: O, slideConfig: D.slideConfig, slideIndex: this.index, trigger: D.node, player: null };
2061
2061
  this.trigger("slide_before_load", H), D.instance.setContent(O, (function() {
2062
2062
  b(l.loader), l.resize(), l.slideAnimateIn(O, x), l.trigger("slide_after_load", H);
@@ -2068,12 +2068,12 @@ function Vi() {
2068
2068
  if (l < 0 || l > this.elements.length - 1 || L(this.elements[l])) return !1;
2069
2069
  var x = this.slidesContainer.querySelectorAll(".gslide")[l];
2070
2070
  if (v(x, "loaded")) return !1;
2071
- var E = this.elements[l], O = E.type, D = { index: l, slide: x, slideNode: x, slideConfig: E.slideConfig, slideIndex: l, trigger: E.node, player: null };
2071
+ var T = this.elements[l], O = T.type, D = { index: l, slide: x, slideNode: x, slideConfig: T.slideConfig, slideIndex: l, trigger: T.node, player: null };
2072
2072
  this.trigger("slide_before_load", D), O === "video" || O === "external" ? setTimeout((function() {
2073
- E.instance.setContent(x, (function() {
2073
+ T.instance.setContent(x, (function() {
2074
2074
  p.trigger("slide_after_load", D);
2075
2075
  }));
2076
- }), 200) : E.instance.setContent(x, (function() {
2076
+ }), 200) : T.instance.setContent(x, (function() {
2077
2077
  p.trigger("slide_after_load", D);
2078
2078
  }));
2079
2079
  } }, { key: "prevSlide", value: function() {
@@ -2087,8 +2087,8 @@ function Vi() {
2087
2087
  } }, { key: "insertSlide", value: function() {
2088
2088
  var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : -1;
2089
2089
  p < 0 && (p = this.elements.length);
2090
- var x = new Re(l, this, p), E = x.getConfig(), O = u({}, E), D = x.create(), H = this.elements.length - 1;
2091
- O.index = p, O.node = !1, O.instance = x, O.slideConfig = E, this.elements.splice(p, 0, O);
2090
+ var x = new qe(l, this, p), T = x.getConfig(), O = u({}, T), D = x.create(), H = this.elements.length - 1;
2091
+ O.index = p, O.node = !1, O.instance = x, O.slideConfig = T, this.elements.splice(p, 0, O);
2092
2092
  var $ = null, A = null;
2093
2093
  if (this.slidesContainer) {
2094
2094
  if (p > H) this.slidesContainer.appendChild(D);
@@ -2098,20 +2098,20 @@ function Vi() {
2098
2098
  }
2099
2099
  (this.settings.preload && this.index == 0 && p == 0 || this.index - 1 == p || this.index + 1 == p) && this.preloadSlide(p), this.index === 0 && p === 0 && (this.index = 1), this.updateNavigationClasses(), $ = this.slidesContainer.querySelectorAll(".gslide")[p], A = this.getSlidePlayerInstance(p), O.slideNode = $;
2100
2100
  }
2101
- this.trigger("slide_inserted", { index: p, slide: $, slideNode: $, slideConfig: E, slideIndex: p, trigger: null, player: A }), I(this.settings.slideInserted) && this.settings.slideInserted({ index: p, slide: $, player: A });
2101
+ this.trigger("slide_inserted", { index: p, slide: $, slideNode: $, slideConfig: T, slideIndex: p, trigger: null, player: A }), I(this.settings.slideInserted) && this.settings.slideInserted({ index: p, slide: $, player: A });
2102
2102
  } }, { key: "removeSlide", value: function() {
2103
2103
  var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : -1;
2104
2104
  if (l < 0 || l > this.elements.length - 1) return !1;
2105
2105
  var p = this.slidesContainer && this.slidesContainer.querySelectorAll(".gslide")[l];
2106
2106
  p && (this.getActiveSlideIndex() == l && (l == this.elements.length - 1 ? this.prevSlide() : this.nextSlide()), p.parentNode.removeChild(p)), this.elements.splice(l, 1), this.trigger("slide_removed", l), I(this.settings.slideRemoved) && this.settings.slideRemoved(l);
2107
2107
  } }, { key: "slideAnimateIn", value: function(l, p) {
2108
- var x = this, E = l.querySelector(".gslide-media"), O = l.querySelector(".gslide-description"), D = { index: this.prevActiveSlideIndex, slide: this.prevActiveSlide, slideNode: this.prevActiveSlide, slideIndex: this.prevActiveSlide, slideConfig: L(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].slideConfig, trigger: L(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].node, player: this.getSlidePlayerInstance(this.prevActiveSlideIndex) }, H = { index: this.index, slide: this.activeSlide, slideNode: this.activeSlide, slideConfig: this.elements[this.index].slideConfig, slideIndex: this.index, trigger: this.elements[this.index].node, player: this.getSlidePlayerInstance(this.index) };
2109
- if (E.offsetWidth > 0 && O && (b(O), O.style.display = ""), f(l, this.effectsClasses), p) q(l, this.settings.cssEfects[this.settings.openEffect].in, (function() {
2108
+ var x = this, T = l.querySelector(".gslide-media"), O = l.querySelector(".gslide-description"), D = { index: this.prevActiveSlideIndex, slide: this.prevActiveSlide, slideNode: this.prevActiveSlide, slideIndex: this.prevActiveSlide, slideConfig: L(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].slideConfig, trigger: L(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].node, player: this.getSlidePlayerInstance(this.prevActiveSlideIndex) }, H = { index: this.index, slide: this.activeSlide, slideNode: this.activeSlide, slideConfig: this.elements[this.index].slideConfig, slideIndex: this.index, trigger: this.elements[this.index].node, player: this.getSlidePlayerInstance(this.index) };
2109
+ if (T.offsetWidth > 0 && O && (b(O), O.style.display = ""), f(l, this.effectsClasses), p) R(l, this.settings.cssEfects[this.settings.openEffect].in, (function() {
2110
2110
  x.settings.autoplayVideos && x.slidePlayerPlay(l), x.trigger("slide_changed", { prev: D, current: H }), I(x.settings.afterSlideChange) && x.settings.afterSlideChange.apply(x, [D, H]);
2111
2111
  }));
2112
2112
  else {
2113
2113
  var $ = this.settings.slideEffect, A = $ !== "none" ? this.settings.cssEfects[$].in : $;
2114
- this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (A = this.settings.cssEfects.slideBack.in), q(l, A, (function() {
2114
+ this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (A = this.settings.cssEfects.slideBack.in), R(l, A, (function() {
2115
2115
  x.settings.autoplayVideos && x.slidePlayerPlay(l), x.trigger("slide_changed", { prev: D, current: H }), I(x.settings.afterSlideChange) && x.settings.afterSlideChange.apply(x, [D, H]);
2116
2116
  }));
2117
2117
  }
@@ -2123,9 +2123,9 @@ function Vi() {
2123
2123
  var l = this.prevActiveSlide;
2124
2124
  f(l, this.effectsClasses), h(l, "prev");
2125
2125
  var p = this.settings.slideEffect, x = p !== "none" ? this.settings.cssEfects[p].out : p;
2126
- this.slidePlayerPause(l), this.trigger("slide_before_change", { prev: { index: this.prevActiveSlideIndex, slide: this.prevActiveSlide, slideNode: this.prevActiveSlide, slideIndex: this.prevActiveSlideIndex, slideConfig: L(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].slideConfig, trigger: L(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].node, player: this.getSlidePlayerInstance(this.prevActiveSlideIndex) }, current: { index: this.index, slide: this.activeSlide, slideNode: this.activeSlide, slideIndex: this.index, slideConfig: this.elements[this.index].slideConfig, trigger: this.elements[this.index].node, player: this.getSlidePlayerInstance(this.index) } }), I(this.settings.beforeSlideChange) && this.settings.beforeSlideChange.apply(this, [{ index: this.prevActiveSlideIndex, slide: this.prevActiveSlide, player: this.getSlidePlayerInstance(this.prevActiveSlideIndex) }, { index: this.index, slide: this.activeSlide, player: this.getSlidePlayerInstance(this.index) }]), this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (x = this.settings.cssEfects.slideBack.out), q(l, x, (function() {
2127
- var E = l.querySelector(".ginner-container"), O = l.querySelector(".gslide-media"), D = l.querySelector(".gslide-description");
2128
- E.style.transform = "", O.style.transform = "", f(O, "greset"), O.style.opacity = "", D && (D.style.opacity = ""), f(l, "prev");
2126
+ this.slidePlayerPause(l), this.trigger("slide_before_change", { prev: { index: this.prevActiveSlideIndex, slide: this.prevActiveSlide, slideNode: this.prevActiveSlide, slideIndex: this.prevActiveSlideIndex, slideConfig: L(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].slideConfig, trigger: L(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].node, player: this.getSlidePlayerInstance(this.prevActiveSlideIndex) }, current: { index: this.index, slide: this.activeSlide, slideNode: this.activeSlide, slideIndex: this.index, slideConfig: this.elements[this.index].slideConfig, trigger: this.elements[this.index].node, player: this.getSlidePlayerInstance(this.index) } }), I(this.settings.beforeSlideChange) && this.settings.beforeSlideChange.apply(this, [{ index: this.prevActiveSlideIndex, slide: this.prevActiveSlide, player: this.getSlidePlayerInstance(this.prevActiveSlideIndex) }, { index: this.index, slide: this.activeSlide, player: this.getSlidePlayerInstance(this.index) }]), this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (x = this.settings.cssEfects.slideBack.out), R(l, x, (function() {
2127
+ var T = l.querySelector(".ginner-container"), O = l.querySelector(".gslide-media"), D = l.querySelector(".gslide-description");
2128
+ T.style.transform = "", O.style.transform = "", f(O, "greset"), O.style.opacity = "", D && (D.style.opacity = ""), f(l, "prev");
2129
2129
  }));
2130
2130
  } }, { key: "getAllPlayers", value: function() {
2131
2131
  return this.videoPlayers;
@@ -2162,35 +2162,35 @@ function Vi() {
2162
2162
  var x = l.querySelector(".gvideo-wrapper");
2163
2163
  x && (l = x.getAttribute("data-index"));
2164
2164
  }
2165
- var E = this.getSlidePlayerInstance(l);
2166
- E && !E.playing && (E.play(), this.settings.autofocusVideos && E.elements.container.focus());
2165
+ var T = this.getSlidePlayerInstance(l);
2166
+ T && !T.playing && (T.play(), this.settings.autofocusVideos && T.elements.container.focus());
2167
2167
  }
2168
2168
  } }, { key: "setElements", value: function(l) {
2169
2169
  var p = this;
2170
2170
  this.settings.elements = !1;
2171
2171
  var x = [];
2172
- l && l.length && c(l, (function(E, O) {
2173
- var D = new Re(E, p, O), H = D.getConfig(), $ = u({}, H);
2172
+ l && l.length && c(l, (function(T, O) {
2173
+ var D = new qe(T, p, O), H = D.getConfig(), $ = u({}, H);
2174
2174
  $.slideConfig = H, $.instance = D, $.index = O, x.push($);
2175
2175
  })), this.elements = x, this.lightboxOpen && (this.slidesContainer.innerHTML = "", this.elements.length && (c(this.elements, (function() {
2176
- var E = k(p.settings.slideHTML);
2177
- p.slidesContainer.appendChild(E);
2176
+ var T = k(p.settings.slideHTML);
2177
+ p.slidesContainer.appendChild(T);
2178
2178
  })), this.showSlide(0, !0)));
2179
2179
  } }, { key: "getElementIndex", value: function(l) {
2180
2180
  var p = !1;
2181
- return c(this.elements, (function(x, E) {
2182
- if (P(x, "node") && x.node == l) return p = E, !0;
2181
+ return c(this.elements, (function(x, T) {
2182
+ if (P(x, "node") && x.node == l) return p = T, !0;
2183
2183
  })), p;
2184
2184
  } }, { key: "getElements", value: function() {
2185
2185
  var l = this, p = [];
2186
- this.elements = this.elements ? this.elements : [], !L(this.settings.elements) && B(this.settings.elements) && this.settings.elements.length && c(this.settings.elements, (function(E, O) {
2187
- var D = new Re(E, l, O), H = D.getConfig(), $ = u({}, H);
2186
+ this.elements = this.elements ? this.elements : [], !L(this.settings.elements) && B(this.settings.elements) && this.settings.elements.length && c(this.settings.elements, (function(T, O) {
2187
+ var D = new qe(T, l, O), H = D.getConfig(), $ = u({}, H);
2188
2188
  $.node = !1, $.index = O, $.instance = D, $.slideConfig = H, p.push($);
2189
2189
  }));
2190
2190
  var x = !1;
2191
- return this.getSelector() && (x = document.querySelectorAll(this.getSelector())), x && c(x, (function(E, O) {
2192
- var D = new Re(E, l, O), H = D.getConfig(), $ = u({}, H);
2193
- $.node = E, $.index = O, $.instance = D, $.slideConfig = H, $.gallery = E.getAttribute("data-gallery"), p.push($);
2191
+ return this.getSelector() && (x = document.querySelectorAll(this.getSelector())), x && c(x, (function(T, O) {
2192
+ var D = new qe(T, l, O), H = D.getConfig(), $ = u({}, H);
2193
+ $.node = T, $.index = O, $.instance = D, $.slideConfig = H, $.gallery = T.getAttribute("data-gallery"), p.push($);
2194
2194
  })), p;
2195
2195
  } }, { key: "getGalleryElements", value: function(l, p) {
2196
2196
  return l.filter((function(x) {
@@ -2216,8 +2216,8 @@ function Vi() {
2216
2216
  c(p, (function(j) {
2217
2217
  j.parentNode == document.body && j.nodeName.charAt(0) !== "#" && j.hasAttribute && !j.hasAttribute("aria-hidden") && (x.push(j), j.setAttribute("aria-hidden", "true"));
2218
2218
  }));
2219
- var E = P(this.settings.svg, "next") ? this.settings.svg.next : "", O = P(this.settings.svg, "prev") ? this.settings.svg.prev : "", D = P(this.settings.svg, "close") ? this.settings.svg.close : "", H = this.settings.lightboxHTML;
2220
- H = k(H = (H = (H = H.replace(/{nextSVG}/g, E)).replace(/{prevSVG}/g, O)).replace(/{closeSVG}/g, D)), document.body.appendChild(H);
2219
+ var T = P(this.settings.svg, "next") ? this.settings.svg.next : "", O = P(this.settings.svg, "prev") ? this.settings.svg.prev : "", D = P(this.settings.svg, "close") ? this.settings.svg.close : "", H = this.settings.lightboxHTML;
2220
+ H = k(H = (H = (H = H.replace(/{nextSVG}/g, T)).replace(/{prevSVG}/g, O)).replace(/{closeSVG}/g, D)), document.body.appendChild(H);
2221
2221
  var $ = document.getElementById("glightbox-body");
2222
2222
  this.modal = $;
2223
2223
  var A = $.querySelector(".gclose");
@@ -2237,14 +2237,14 @@ function Vi() {
2237
2237
  } }, { key: "resize", value: function() {
2238
2238
  var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
2239
2239
  if ((l = l || this.activeSlide) && !v(l, "zoomed")) {
2240
- var p = C(), x = l.querySelector(".gvideo-wrapper"), E = l.querySelector(".gslide-image"), O = this.slideDescription, D = p.width, H = p.height;
2241
- if (D <= 768 ? h(document.body, "glightbox-mobile") : f(document.body, "glightbox-mobile"), x || E) {
2240
+ var p = C(), x = l.querySelector(".gvideo-wrapper"), T = l.querySelector(".gslide-image"), O = this.slideDescription, D = p.width, H = p.height;
2241
+ if (D <= 768 ? h(document.body, "glightbox-mobile") : f(document.body, "glightbox-mobile"), x || T) {
2242
2242
  var $ = !1;
2243
- if (O && (v(O, "description-bottom") || v(O, "description-top")) && !v(O, "gabsolute") && ($ = !0), E) {
2244
- if (D <= 768) E.querySelector("img");
2243
+ if (O && (v(O, "description-bottom") || v(O, "description-top")) && !v(O, "gabsolute") && ($ = !0), T) {
2244
+ if (D <= 768) T.querySelector("img");
2245
2245
  else if ($) {
2246
- var A, j, U = O.offsetHeight, F = E.querySelector("img"), Z = (A = this.elements[this.index]) === null || A === void 0 ? void 0 : A.node, ee = "100vh";
2247
- Z && (ee = (j = Z.getAttribute("data-height")) !== null && j !== void 0 ? j : ee), F.setAttribute("style", "max-height: calc(".concat(ee, " - ").concat(U, "px)")), O.setAttribute("style", "max-width: ".concat(F.offsetWidth, "px;"));
2246
+ var A, j, U = O.offsetHeight, Y = T.querySelector("img"), Z = (A = this.elements[this.index]) === null || A === void 0 ? void 0 : A.node, ee = "100vh";
2247
+ Z && (ee = (j = Z.getAttribute("data-height")) !== null && j !== void 0 ? j : ee), Y.setAttribute("style", "max-height: calc(".concat(ee, " - ").concat(U, "px)")), O.setAttribute("style", "max-width: ".concat(Y.offsetWidth, "px;"));
2248
2248
  }
2249
2249
  }
2250
2250
  if (x) {
@@ -2253,7 +2253,7 @@ function Vi() {
2253
2253
  var K = x.clientWidth, me = x.clientHeight, oe = K / me;
2254
2254
  te = "".concat(K / oe, ":").concat(me / oe);
2255
2255
  }
2256
- var Te = te.split(":"), pe = this.settings.videosWidth, xe = this.settings.videosWidth, Ce = (xe = N(pe) || pe.indexOf("px") !== -1 ? parseInt(pe) : pe.indexOf("vw") !== -1 ? D * parseInt(pe) / 100 : pe.indexOf("vh") !== -1 ? H * parseInt(pe) / 100 : pe.indexOf("%") !== -1 ? D * parseInt(pe) / 100 : parseInt(x.clientWidth)) / (parseInt(Te[0]) / parseInt(Te[1]));
2256
+ var Ee = te.split(":"), pe = this.settings.videosWidth, xe = this.settings.videosWidth, Ce = (xe = N(pe) || pe.indexOf("px") !== -1 ? parseInt(pe) : pe.indexOf("vw") !== -1 ? D * parseInt(pe) / 100 : pe.indexOf("vh") !== -1 ? H * parseInt(pe) / 100 : pe.indexOf("%") !== -1 ? D * parseInt(pe) / 100 : parseInt(x.clientWidth)) / (parseInt(Ee[0]) / parseInt(Ee[1]));
2257
2257
  if (Ce = Math.floor(Ce), $ && (H -= O.offsetHeight), xe > D || Ce > H || H < Ce && D > xe) {
2258
2258
  var $e = x.offsetWidth, Ne = x.offsetHeight, Pe = H / Ne, ke = { width: $e * Pe, height: Ne * Pe };
2259
2259
  x.parentNode.setAttribute("style", "max-width: ".concat(ke.width, "px")), $ && O.setAttribute("style", "max-width: ".concat(ke.width, "px;"));
@@ -2281,13 +2281,13 @@ function Vi() {
2281
2281
  if (this.closing) return !1;
2282
2282
  this.closing = !0, this.slidePlayerPause(this.activeSlide), this.fullElementsList && (this.elements = this.fullElementsList), this.bodyHiddenChildElms.length && c(this.bodyHiddenChildElms, (function(x) {
2283
2283
  x.removeAttribute("aria-hidden");
2284
- })), h(this.modal, "glightbox-closing"), q(this.overlay, this.settings.openEffect == "none" ? "none" : this.settings.cssEfects.fade.out), q(this.activeSlide, this.settings.cssEfects[this.settings.closeEffect].out, (function() {
2284
+ })), h(this.modal, "glightbox-closing"), R(this.overlay, this.settings.openEffect == "none" ? "none" : this.settings.cssEfects.fade.out), R(this.activeSlide, this.settings.cssEfects[this.settings.closeEffect].out, (function() {
2285
2285
  if (l.activeSlide = null, l.prevActiveSlideIndex = null, l.prevActiveSlide = null, l.built = !1, l.events) {
2286
2286
  for (var x in l.events) l.events.hasOwnProperty(x) && l.events[x].destroy();
2287
2287
  l.events = null;
2288
2288
  }
2289
- var E = document.body;
2290
- f(he, "glightbox-open"), f(E, "glightbox-open touching gdesc-open glightbox-touch glightbox-mobile gscrollbar-fixer"), l.modal.parentNode.removeChild(l.modal), l.trigger("close"), I(l.settings.onClose) && l.settings.onClose();
2289
+ var T = document.body;
2290
+ f(he, "glightbox-open"), f(T, "glightbox-open touching gdesc-open glightbox-touch glightbox-mobile gscrollbar-fixer"), l.modal.parentNode.removeChild(l.modal), l.trigger("close"), I(l.settings.onClose) && l.settings.onClose();
2291
2291
  var O = document.querySelector(".gcss-styles");
2292
2292
  O && O.parentNode.removeChild(O), l.lightboxOpen = !1, l.closing = null;
2293
2293
  }));
@@ -2300,11 +2300,11 @@ function Vi() {
2300
2300
  } }, { key: "once", value: function(l, p) {
2301
2301
  this.on(l, p, !0);
2302
2302
  } }, { key: "trigger", value: function(l) {
2303
- var p = this, x = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, E = [];
2303
+ var p = this, x = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, T = [];
2304
2304
  c(this.apiEvents, (function(O, D) {
2305
2305
  var H = O.evt, $ = O.once, A = O.callback;
2306
- H == l && (A(x), $ && E.push(D));
2307
- })), E.length && c(E, (function(O) {
2306
+ H == l && (A(x), $ && T.push(D));
2307
+ })), T.length && c(T, (function(O) {
2308
2308
  return p.apiEvents.splice(O, 1);
2309
2309
  }));
2310
2310
  } }, { key: "clearAllEvents", value: function() {
@@ -2320,13 +2320,77 @@ function Vi() {
2320
2320
  })(yt)), yt.exports;
2321
2321
  }
2322
2322
  var Ui = Vi();
2323
- const ni = /* @__PURE__ */ Ct(Ui);
2323
+ const si = /* @__PURE__ */ Ct(Ui);
2324
+ class Bi {
2325
+ constructor(e = {}) {
2326
+ this.animationTime = e.animationTime ?? 800, this.frameRate = e.frameRate ?? 150, this.stepSize = e.stepSize ?? 120, this.accelerationDelta = e.accelerationDelta ?? 300, this.accelerationMax = e.accelerationMax ?? 2, this.pulseScale = e.pulseScale ?? 4, this.pulseNormalize = 1 / this._pulseRaw(1), this.queue = [], this.pending = !1, this.lastScrollTime = 0, this.direction = { x: 0, y: 0 }, this._init();
2327
+ }
2328
+ _init() {
2329
+ window.addEventListener("wheel", this._onWheel.bind(this), { passive: !1 });
2330
+ }
2331
+ destroy() {
2332
+ window.removeEventListener("wheel", this._onWheel.bind(this)), this.queue = [], this.pending = !1;
2333
+ }
2334
+ _onWheel(e) {
2335
+ if (e.ctrlKey || e.defaultPrevented) return;
2336
+ let i = e.deltaX, s = e.deltaY;
2337
+ !i && !s && (s = -e.wheelDelta || 0), e.deltaMode === 1 && (i *= 40, s *= 40), Math.abs(i) > 1.2 && (i = i / 120 * this.stepSize), Math.abs(s) > 1.2 && (s = s / 120 * this.stepSize);
2338
+ const t = e.target, n = this._findScrollableAncestor(t);
2339
+ if (!n) return;
2340
+ const r = Date.now(), a = r - this.lastScrollTime;
2341
+ let u = 1;
2342
+ a < this.accelerationDelta && (u = Math.min(1 + 50 / a, this.accelerationMax), i *= u, s *= u), this.lastScrollTime = r;
2343
+ const c = Math.sign(i), d = Math.sign(s);
2344
+ (c !== this.direction.x || d !== this.direction.y) && (this.direction = { x: c, y: d }, this.queue = []), this._enqueueScroll(n, i, s), e.preventDefault();
2345
+ }
2346
+ _findScrollableAncestor(e) {
2347
+ const i = document.scrollingElement || document.documentElement;
2348
+ let s = e;
2349
+ for (; s && s !== document.body; ) {
2350
+ const n = window.getComputedStyle(s).overflowY, r = ["auto", "scroll"].includes(n), a = s.scrollHeight > s.clientHeight;
2351
+ if (r && a) return s;
2352
+ if (s === i) return i;
2353
+ s = s.parentElement;
2354
+ }
2355
+ return i;
2356
+ }
2357
+ _enqueueScroll(e, i, s) {
2358
+ this.queue.push({
2359
+ element: e,
2360
+ x: i,
2361
+ y: s,
2362
+ lastX: i < 0 ? 0.99 : -0.99,
2363
+ lastY: s < 0 ? 0.99 : -0.99,
2364
+ start: Date.now()
2365
+ }), this.pending || (this._animate(e), this.pending = !0);
2366
+ }
2367
+ _animate(e) {
2368
+ const i = Date.now();
2369
+ let s = 0, t = 0;
2370
+ for (let n = this.queue.length - 1; n >= 0; n--) {
2371
+ const r = this.queue[n], a = i - r.start, u = a >= this.animationTime, c = u ? 1 : a / this.animationTime, d = this._pulse(c), o = r.x * d - r.lastX | 0, h = r.y * d - r.lastY | 0;
2372
+ s += o, t += h, r.lastX += o, r.lastY += h, u && this.queue.splice(n, 1);
2373
+ }
2374
+ e === document.scrollingElement || e === document.documentElement ? window.scrollBy(s, t) : (s && (e.scrollLeft += s), t && (e.scrollTop += t)), this.queue.length > 0 ? (1e3 / this.frameRate, requestAnimationFrame(() => this._animate(e))) : this.pending = !1;
2375
+ }
2376
+ _pulseRaw(e) {
2377
+ if (e *= this.pulseScale, e < 1)
2378
+ return e - (1 - Math.exp(-e));
2379
+ {
2380
+ const i = Math.exp(-1), s = 1 - Math.exp(-(e - 1));
2381
+ return i + s * (1 - i);
2382
+ }
2383
+ }
2384
+ _pulse(e) {
2385
+ return e <= 0 ? 0 : e >= 1 ? 1 : this._pulseRaw(e) * this.pulseNormalize;
2386
+ }
2387
+ }
2324
2388
  /*!
2325
2389
  * Glide.js v3.7.1
2326
2390
  * (c) 2013-2024 Jędrzej Chałubek (https://github.com/jedrzejchalubek/)
2327
2391
  * Released under the MIT License.
2328
2392
  */
2329
- function si(m, e) {
2393
+ function ni(m, e) {
2330
2394
  var i = Object.keys(m);
2331
2395
  if (Object.getOwnPropertySymbols) {
2332
2396
  var s = Object.getOwnPropertySymbols(m);
@@ -2339,9 +2403,9 @@ function si(m, e) {
2339
2403
  function ri(m) {
2340
2404
  for (var e = 1; e < arguments.length; e++) {
2341
2405
  var i = arguments[e] != null ? arguments[e] : {};
2342
- e % 2 ? si(Object(i), !0).forEach(function(s) {
2406
+ e % 2 ? ni(Object(i), !0).forEach(function(s) {
2343
2407
  Fi(m, s, i[s]);
2344
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(m, Object.getOwnPropertyDescriptors(i)) : si(Object(i)).forEach(function(s) {
2408
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(m, Object.getOwnPropertyDescriptors(i)) : ni(Object(i)).forEach(function(s) {
2345
2409
  Object.defineProperty(m, s, Object.getOwnPropertyDescriptor(i, s));
2346
2410
  });
2347
2411
  }
@@ -2359,14 +2423,14 @@ function Lt(m, e) {
2359
2423
  if (!(m instanceof e))
2360
2424
  throw new TypeError("Cannot call a class as a function");
2361
2425
  }
2362
- function Bi(m, e) {
2426
+ function Yi(m, e) {
2363
2427
  for (var i = 0; i < e.length; i++) {
2364
2428
  var s = e[i];
2365
2429
  s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(m, s.key, s);
2366
2430
  }
2367
2431
  }
2368
2432
  function Ot(m, e, i) {
2369
- return e && Bi(m.prototype, e), m;
2433
+ return e && Yi(m.prototype, e), m;
2370
2434
  }
2371
2435
  function Fi(m, e, i) {
2372
2436
  return e in m ? Object.defineProperty(m, e, {
@@ -2376,7 +2440,7 @@ function Fi(m, e, i) {
2376
2440
  writable: !0
2377
2441
  }) : m[e] = i, m;
2378
2442
  }
2379
- function Yi(m, e) {
2443
+ function Wi(m, e) {
2380
2444
  if (typeof e != "function" && e !== null)
2381
2445
  throw new TypeError("Super expression must either be null or a function");
2382
2446
  m.prototype = Object.create(e && e.prototype, {
@@ -2397,7 +2461,7 @@ function It(m, e) {
2397
2461
  return s.__proto__ = t, s;
2398
2462
  }, It(m, e);
2399
2463
  }
2400
- function Wi() {
2464
+ function Gi() {
2401
2465
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
2402
2466
  if (typeof Proxy == "function") return !0;
2403
2467
  try {
@@ -2407,20 +2471,20 @@ function Wi() {
2407
2471
  return !1;
2408
2472
  }
2409
2473
  }
2410
- function Gi(m) {
2474
+ function Xi(m) {
2411
2475
  if (m === void 0)
2412
2476
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2413
2477
  return m;
2414
2478
  }
2415
- function Xi(m, e) {
2479
+ function Ji(m, e) {
2416
2480
  if (e && (typeof e == "object" || typeof e == "function"))
2417
2481
  return e;
2418
2482
  if (e !== void 0)
2419
2483
  throw new TypeError("Derived constructors may only return object or undefined");
2420
- return Gi(m);
2484
+ return Xi(m);
2421
2485
  }
2422
- function Ji(m) {
2423
- var e = Wi();
2486
+ function Zi(m) {
2487
+ var e = Gi();
2424
2488
  return function() {
2425
2489
  var s = rt(m), t;
2426
2490
  if (e) {
@@ -2428,24 +2492,24 @@ function Ji(m) {
2428
2492
  t = Reflect.construct(s, arguments, n);
2429
2493
  } else
2430
2494
  t = s.apply(this, arguments);
2431
- return Xi(this, t);
2495
+ return Ji(this, t);
2432
2496
  };
2433
2497
  }
2434
- function Zi(m, e) {
2498
+ function Qi(m, e) {
2435
2499
  for (; !Object.prototype.hasOwnProperty.call(m, e) && (m = rt(m), m !== null); )
2436
2500
  ;
2437
2501
  return m;
2438
2502
  }
2439
2503
  function xt() {
2440
2504
  return typeof Reflect < "u" && Reflect.get ? xt = Reflect.get : xt = function(e, i, s) {
2441
- var t = Zi(e, i);
2505
+ var t = Qi(e, i);
2442
2506
  if (t) {
2443
2507
  var n = Object.getOwnPropertyDescriptor(t, i);
2444
2508
  return n.get ? n.get.call(arguments.length < 3 ? e : s) : n.value;
2445
2509
  }
2446
2510
  }, xt.apply(this, arguments);
2447
2511
  }
2448
- var Qi = {
2512
+ var Ki = {
2449
2513
  /**
2450
2514
  * Type of the movement.
2451
2515
  *
@@ -2655,7 +2719,7 @@ function Xe(m) {
2655
2719
  function ze(m) {
2656
2720
  return parseInt(m);
2657
2721
  }
2658
- function Ki(m) {
2722
+ function es(m) {
2659
2723
  return parseFloat(m);
2660
2724
  }
2661
2725
  function Nt(m) {
@@ -2674,7 +2738,7 @@ function bi(m) {
2674
2738
  function Pt(m) {
2675
2739
  return m.constructor === Array;
2676
2740
  }
2677
- function en(m, e, i) {
2741
+ function ts(m, e, i) {
2678
2742
  var s = {};
2679
2743
  for (var t in e)
2680
2744
  _t(e[t]) ? s[t] = e[t](m, s, i) : Xe("Extension must be a function");
@@ -2685,7 +2749,7 @@ function en(m, e, i) {
2685
2749
  function Ie(m, e, i) {
2686
2750
  Object.defineProperty(m, e, i);
2687
2751
  }
2688
- function tn(m) {
2752
+ function is(m) {
2689
2753
  return Object.keys(m).sort().reduce(function(e, i) {
2690
2754
  return e[i] = m[i], e[i], e;
2691
2755
  }, {});
@@ -2701,7 +2765,7 @@ function Dt(m, e) {
2701
2765
  }
2702
2766
  return e.hasOwnProperty("breakpoints") && (i.breakpoints = Object.assign({}, m.breakpoints, e.breakpoints)), i;
2703
2767
  }
2704
- var nn = /* @__PURE__ */ (function() {
2768
+ var ss = /* @__PURE__ */ (function() {
2705
2769
  function m() {
2706
2770
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2707
2771
  Lt(this, m), this.events = e, this.hop = e.hasOwnProperty;
@@ -2741,16 +2805,16 @@ var nn = /* @__PURE__ */ (function() {
2741
2805
  });
2742
2806
  }
2743
2807
  }]), m;
2744
- })(), sn = /* @__PURE__ */ (function() {
2808
+ })(), ns = /* @__PURE__ */ (function() {
2745
2809
  function m(e) {
2746
2810
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2747
- Lt(this, m), this._c = {}, this._t = [], this._e = new nn(), this.disabled = !1, this.selector = e, this.settings = Dt(Qi, i), this.index = this.settings.startAt;
2811
+ Lt(this, m), this._c = {}, this._t = [], this._e = new ss(), this.disabled = !1, this.selector = e, this.settings = Dt(Ki, i), this.index = this.settings.startAt;
2748
2812
  }
2749
2813
  return Ot(m, [{
2750
2814
  key: "mount",
2751
2815
  value: function() {
2752
2816
  var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2753
- return this._e.emit("mount.before"), at(i) ? this._c = en(this, i, this._e) : Xe("You need to provide a object on `mount()`"), this._e.emit("mount.after"), this;
2817
+ return this._e.emit("mount.before"), at(i) ? this._c = ts(this, i, this._e) : Xe("You need to provide a object on `mount()`"), this._e.emit("mount.after"), this;
2754
2818
  }
2755
2819
  /**
2756
2820
  * Collects an instance `translate` transformers.
@@ -2931,7 +2995,7 @@ var nn = /* @__PURE__ */ (function() {
2931
2995
  }
2932
2996
  }]), m;
2933
2997
  })();
2934
- function rn(m, e, i) {
2998
+ function rs(m, e, i) {
2935
2999
  var s = {
2936
3000
  /**
2937
3001
  * Initializes autorunning of the glide.
@@ -3104,7 +3168,7 @@ var gt = {
3104
3168
  ltr: ["marginLeft", "marginRight"],
3105
3169
  rtl: ["marginRight", "marginLeft"]
3106
3170
  };
3107
- function an(m, e, i) {
3171
+ function as(m, e, i) {
3108
3172
  var s = {
3109
3173
  /**
3110
3174
  * Applies gaps between slides. First and last
@@ -3179,8 +3243,8 @@ function vi(m) {
3179
3243
  function Ht(m) {
3180
3244
  return Array.prototype.slice.call(m);
3181
3245
  }
3182
- var on = '[data-glide-el="track"]';
3183
- function ln(m, e, i) {
3246
+ var os = '[data-glide-el="track"]';
3247
+ function ls(m, e, i) {
3184
3248
  var s = {
3185
3249
  /**
3186
3250
  * Setup slider HTML nodes.
@@ -3188,7 +3252,7 @@ function ln(m, e, i) {
3188
3252
  * @param {Glide} glide
3189
3253
  */
3190
3254
  mount: function() {
3191
- this.root = m.selector, this.track = this.root.querySelector(on), this.collectSlides();
3255
+ this.root = m.selector, this.track = this.root.querySelector(os), this.collectSlides();
3192
3256
  },
3193
3257
  /**
3194
3258
  * Collect slides
@@ -3246,7 +3310,7 @@ function ln(m, e, i) {
3246
3310
  s.collectSlides();
3247
3311
  }), s;
3248
3312
  }
3249
- function cn(m, e, i) {
3313
+ function cs(m, e, i) {
3250
3314
  var s = {
3251
3315
  /**
3252
3316
  * Setups how much to peek based on settings.
@@ -3289,7 +3353,7 @@ function cn(m, e, i) {
3289
3353
  s.mount();
3290
3354
  }), s;
3291
3355
  }
3292
- function un(m, e, i) {
3356
+ function us(m, e, i) {
3293
3357
  var s = {
3294
3358
  /**
3295
3359
  * Constructs move component.
@@ -3356,7 +3420,7 @@ function un(m, e, i) {
3356
3420
  s.make();
3357
3421
  }), s;
3358
3422
  }
3359
- function dn(m, e, i) {
3423
+ function ds(m, e, i) {
3360
3424
  var s = {
3361
3425
  /**
3362
3426
  * Setups dimensions of slides.
@@ -3428,7 +3492,7 @@ function dn(m, e, i) {
3428
3492
  s.remove();
3429
3493
  }), s;
3430
3494
  }
3431
- function hn(m, e, i) {
3495
+ function hs(m, e, i) {
3432
3496
  var s = {
3433
3497
  /**
3434
3498
  * Init glide building. Adds classes, sets
@@ -3478,7 +3542,7 @@ function hn(m, e, i) {
3478
3542
  s.activeClass();
3479
3543
  }), s;
3480
3544
  }
3481
- function pn(m, e, i) {
3545
+ function ps(m, e, i) {
3482
3546
  var s = {
3483
3547
  /**
3484
3548
  * Create pattern map and collect slides to be cloned.
@@ -3495,12 +3559,12 @@ function pn(m, e, i) {
3495
3559
  var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], r = e.Html.slides, a = m.settings, u = a.perView, c = a.classes, d = a.cloningRatio;
3496
3560
  if (r.length > 0)
3497
3561
  for (var o = +!!m.settings.peek, h = u + o + Math.round(u / 2), f = r.slice(0, h).reverse(), v = r.slice(h * -1), S = 0; S < Math.max(d, Math.floor(u / r.length)); S++) {
3498
- for (var q = 0; q < f.length; q++) {
3499
- var y = f[q].cloneNode(!0);
3562
+ for (var R = 0; R < f.length; R++) {
3563
+ var y = f[R].cloneNode(!0);
3500
3564
  y.classList.add(c.slide.clone), n.push(y);
3501
3565
  }
3502
- for (var T = 0; T < v.length; T++) {
3503
- var b = v[T].cloneNode(!0);
3566
+ for (var E = 0; E < v.length; E++) {
3567
+ var b = v[E].cloneNode(!0);
3504
3568
  b.classList.add(c.slide.clone), n.unshift(b);
3505
3569
  }
3506
3570
  }
@@ -3587,7 +3651,7 @@ var Je = /* @__PURE__ */ (function() {
3587
3651
  }
3588
3652
  }]), m;
3589
3653
  })();
3590
- function fn(m, e, i) {
3654
+ function fs(m, e, i) {
3591
3655
  var s = new Je(), t = {
3592
3656
  /**
3593
3657
  * Initializes window bindings.
@@ -3619,12 +3683,12 @@ function fn(m, e, i) {
3619
3683
  t.unbind(), s.destroy();
3620
3684
  }), t;
3621
3685
  }
3622
- var gn = ["ltr", "rtl"], mn = {
3686
+ var gs = ["ltr", "rtl"], ms = {
3623
3687
  ">": "<",
3624
3688
  "<": ">",
3625
3689
  "=": "="
3626
3690
  };
3627
- function bn(m, e, i) {
3691
+ function bs(m, e, i) {
3628
3692
  var s = {
3629
3693
  /**
3630
3694
  * Setups gap value based on settings.
@@ -3642,7 +3706,7 @@ function bn(m, e, i) {
3642
3706
  */
3643
3707
  resolve: function(n) {
3644
3708
  var r = n.slice(0, 1);
3645
- return this.is("rtl") ? n.split(r).join(mn[r]) : n;
3709
+ return this.is("rtl") ? n.split(r).join(ms[r]) : n;
3646
3710
  },
3647
3711
  /**
3648
3712
  * Checks value of direction mode.
@@ -3686,7 +3750,7 @@ function bn(m, e, i) {
3686
3750
  * @return {Void}
3687
3751
  */
3688
3752
  set: function(n) {
3689
- gn.indexOf(n) > -1 ? s._v = n : Xe("Direction value must be `ltr` or `rtl`");
3753
+ gs.indexOf(n) > -1 ? s._v = n : Xe("Direction value must be `ltr` or `rtl`");
3690
3754
  }
3691
3755
  }), i.on(["destroy", "update"], function() {
3692
3756
  s.removeClass();
@@ -3696,7 +3760,7 @@ function bn(m, e, i) {
3696
3760
  s.addClass();
3697
3761
  }), s;
3698
3762
  }
3699
- function vn(m, e) {
3763
+ function vs(m, e) {
3700
3764
  return {
3701
3765
  /**
3702
3766
  * Negates the passed translate if glide is in RTL option.
@@ -3709,7 +3773,7 @@ function vn(m, e) {
3709
3773
  }
3710
3774
  };
3711
3775
  }
3712
- function yn(m, e) {
3776
+ function ys(m, e) {
3713
3777
  return {
3714
3778
  /**
3715
3779
  * Modifies passed translate value with number in the `gap` settings.
@@ -3723,7 +3787,7 @@ function yn(m, e) {
3723
3787
  }
3724
3788
  };
3725
3789
  }
3726
- function wn(m, e) {
3790
+ function ws(m, e) {
3727
3791
  return {
3728
3792
  /**
3729
3793
  * Adds to the passed translate width of the half of clones.
@@ -3736,7 +3800,7 @@ function wn(m, e) {
3736
3800
  }
3737
3801
  };
3738
3802
  }
3739
- function xn(m, e) {
3803
+ function xs(m, e) {
3740
3804
  return {
3741
3805
  /**
3742
3806
  * Modifies passed translate value with a `peek` setting.
@@ -3753,7 +3817,7 @@ function xn(m, e) {
3753
3817
  }
3754
3818
  };
3755
3819
  }
3756
- function kn(m, e) {
3820
+ function ks(m, e) {
3757
3821
  return {
3758
3822
  /**
3759
3823
  * Modifies passed translate value with index in the `focusAt` setting.
@@ -3767,8 +3831,8 @@ function kn(m, e) {
3767
3831
  }
3768
3832
  };
3769
3833
  }
3770
- function _n(m, e, i) {
3771
- var s = [yn, wn, xn, kn].concat(m._t, [vn]);
3834
+ function _s(m, e, i) {
3835
+ var s = [ys, ws, xs, ks].concat(m._t, [vs]);
3772
3836
  return {
3773
3837
  /**
3774
3838
  * Piplines translate value with registered transformers.
@@ -3785,7 +3849,7 @@ function _n(m, e, i) {
3785
3849
  }
3786
3850
  };
3787
3851
  }
3788
- function Sn(m, e, i) {
3852
+ function Ss(m, e, i) {
3789
3853
  var s = {
3790
3854
  /**
3791
3855
  * Sets value of translate on HTML element.
@@ -3794,7 +3858,7 @@ function Sn(m, e, i) {
3794
3858
  * @return {Void}
3795
3859
  */
3796
3860
  set: function(n) {
3797
- var r = _n(m, e).mutate(n), a = "translate3d(".concat(-1 * r, "px, 0px, 0px)");
3861
+ var r = _s(m, e).mutate(n), a = "translate3d(".concat(-1 * r, "px, 0px, 0px)");
3798
3862
  e.Html.wrapper.style.mozTransform = a, e.Html.wrapper.style.webkitTransform = a, e.Html.wrapper.style.transform = a;
3799
3863
  },
3800
3864
  /**
@@ -3832,7 +3896,7 @@ function Sn(m, e, i) {
3832
3896
  s.remove();
3833
3897
  }), s;
3834
3898
  }
3835
- function En(m, e, i) {
3899
+ function Ts(m, e, i) {
3836
3900
  var s = !1, t = {
3837
3901
  /**
3838
3902
  * Composes string of the CSS transition.
@@ -3922,7 +3986,7 @@ try {
3922
3986
  } catch {
3923
3987
  }
3924
3988
  var $t = yi, mt = ["touchstart", "mousedown"], li = ["touchmove", "mousemove"], ci = ["touchend", "touchcancel", "mouseup", "mouseleave"], ui = ["mousedown", "mousemove", "mouseup", "mouseleave"];
3925
- function Tn(m, e, i) {
3989
+ function Es(m, e, i) {
3926
3990
  var s = new Je(), t = 0, n = 0, r = 0, a = !1, u = $t ? {
3927
3991
  passive: !0
3928
3992
  } : !1, c = {
@@ -3954,9 +4018,9 @@ function Tn(m, e, i) {
3954
4018
  */
3955
4019
  move: function(o) {
3956
4020
  if (!m.disabled) {
3957
- var h = m.settings, f = h.touchAngle, v = h.touchRatio, S = h.classes, q = this.touches(o), y = ze(q.pageX) - n, T = ze(q.pageY) - r, b = Math.abs(y << 2), k = Math.abs(T << 2), C = Math.sqrt(b + k), g = Math.sqrt(k);
4021
+ var h = m.settings, f = h.touchAngle, v = h.touchRatio, S = h.classes, R = this.touches(o), y = ze(R.pageX) - n, E = ze(R.pageY) - r, b = Math.abs(y << 2), k = Math.abs(E << 2), C = Math.sqrt(b + k), g = Math.sqrt(k);
3958
4022
  if (t = Math.asin(g / C), t * 180 / Math.PI < f)
3959
- o.stopPropagation(), e.Move.make(y * Ki(v)), e.Html.root.classList.add(S.dragging), i.emit("swipe.move");
4023
+ o.stopPropagation(), e.Move.make(y * es(v)), e.Html.root.classList.add(S.dragging), i.emit("swipe.move");
3960
4024
  else
3961
4025
  return !1;
3962
4026
  }
@@ -3969,8 +4033,8 @@ function Tn(m, e, i) {
3969
4033
  */
3970
4034
  end: function(o) {
3971
4035
  if (!m.disabled) {
3972
- var h = m.settings, f = h.perSwipe, v = h.touchAngle, S = h.classes, q = this.touches(o), y = this.threshold(o), T = q.pageX - n, b = t * 180 / Math.PI;
3973
- this.enable(), T > y && b < v ? e.Run.make(e.Direction.resolve("".concat(f, "<"))) : T < -y && b < v ? e.Run.make(e.Direction.resolve("".concat(f, ">"))) : e.Move.make(), e.Html.root.classList.remove(S.dragging), this.unbindSwipeMove(), this.unbindSwipeEnd(), i.emit("swipe.end");
4036
+ var h = m.settings, f = h.perSwipe, v = h.touchAngle, S = h.classes, R = this.touches(o), y = this.threshold(o), E = R.pageX - n, b = t * 180 / Math.PI;
4037
+ this.enable(), E > y && b < v ? e.Run.make(e.Direction.resolve("".concat(f, "<"))) : E < -y && b < v ? e.Run.make(e.Direction.resolve("".concat(f, ">"))) : e.Move.make(), e.Html.root.classList.remove(S.dragging), this.unbindSwipeMove(), this.unbindSwipeEnd(), i.emit("swipe.end");
3974
4038
  }
3975
4039
  },
3976
4040
  /**
@@ -4072,7 +4136,7 @@ function Tn(m, e, i) {
4072
4136
  c.unbindSwipeStart(), c.unbindSwipeMove(), c.unbindSwipeEnd(), s.destroy();
4073
4137
  }), c;
4074
4138
  }
4075
- function Cn(m, e, i) {
4139
+ function Cs(m, e, i) {
4076
4140
  var s = new Je(), t = {
4077
4141
  /**
4078
4142
  * Binds listener to glide wrapper.
@@ -4111,7 +4175,7 @@ function Cn(m, e, i) {
4111
4175
  t.unbind(), s.destroy();
4112
4176
  }), t;
4113
4177
  }
4114
- function Ln(m, e, i) {
4178
+ function Ls(m, e, i) {
4115
4179
  var s = new Je(), t = !1, n = !1, r = {
4116
4180
  /**
4117
4181
  * Setups a initial state of anchors component.
@@ -4192,8 +4256,8 @@ function Ln(m, e, i) {
4192
4256
  r.attach(), r.unbind(), s.destroy();
4193
4257
  }), r;
4194
4258
  }
4195
- var On = '[data-glide-el="controls[nav]"]', Vt = '[data-glide-el^="controls"]', An = "".concat(Vt, ' [data-glide-dir*="<"]'), Rn = "".concat(Vt, ' [data-glide-dir*=">"]');
4196
- function qn(m, e, i) {
4259
+ var Os = '[data-glide-el="controls[nav]"]', Vt = '[data-glide-el^="controls"]', As = "".concat(Vt, ' [data-glide-dir*="<"]'), qs = "".concat(Vt, ' [data-glide-dir*=">"]');
4260
+ function Rs(m, e, i) {
4197
4261
  var s = new Je(), t = $t ? {
4198
4262
  passive: !0
4199
4263
  } : !1, n = {
@@ -4204,9 +4268,9 @@ function qn(m, e, i) {
4204
4268
  * @return {Void}
4205
4269
  */
4206
4270
  mount: function() {
4207
- this._n = e.Html.root.querySelectorAll(On), this._c = e.Html.root.querySelectorAll(Vt), this._arrowControls = {
4208
- previous: e.Html.root.querySelectorAll(An),
4209
- next: e.Html.root.querySelectorAll(Rn)
4271
+ this._n = e.Html.root.querySelectorAll(Os), this._c = e.Html.root.querySelectorAll(Vt), this._arrowControls = {
4272
+ previous: e.Html.root.querySelectorAll(As),
4273
+ next: e.Html.root.querySelectorAll(qs)
4210
4274
  }, this.addBindings();
4211
4275
  },
4212
4276
  /**
@@ -4355,7 +4419,7 @@ function qn(m, e, i) {
4355
4419
  n.removeBindings(), n.removeActive(), s.destroy();
4356
4420
  }), n;
4357
4421
  }
4358
- function Mn(m, e, i) {
4422
+ function Ms(m, e, i) {
4359
4423
  var s = new Je(), t = {
4360
4424
  /**
4361
4425
  * Binds keyboard events on component mount.
@@ -4403,7 +4467,7 @@ function Mn(m, e, i) {
4403
4467
  s.destroy();
4404
4468
  }), t;
4405
4469
  }
4406
- function jn(m, e, i) {
4470
+ function js(m, e, i) {
4407
4471
  var s = new Je(), t = {
4408
4472
  /**
4409
4473
  * Initializes autoplaying and events.
@@ -4499,9 +4563,9 @@ function jn(m, e, i) {
4499
4563
  }), t;
4500
4564
  }
4501
4565
  function di(m) {
4502
- return at(m) ? tn(m) : (Xe("Breakpoints option must be an object"), {});
4566
+ return at(m) ? is(m) : (Xe("Breakpoints option must be an object"), {});
4503
4567
  }
4504
- function In(m, e, i) {
4568
+ function Is(m, e, i) {
4505
4569
  var s = new Je(), t = m.settings, n = di(t.breakpoints), r = Object.assign({}, t), a = {
4506
4570
  /**
4507
4571
  * Matches settings for currectly matching media breakpoint.
@@ -4526,31 +4590,31 @@ function In(m, e, i) {
4526
4590
  s.off("resize", window);
4527
4591
  }), a;
4528
4592
  }
4529
- var Nn = {
4593
+ var Ns = {
4530
4594
  // Required
4531
- Html: ln,
4532
- Translate: Sn,
4533
- Transition: En,
4534
- Direction: bn,
4535
- Peek: cn,
4536
- Sizes: dn,
4537
- Gaps: an,
4538
- Move: un,
4539
- Clones: pn,
4540
- Resize: fn,
4541
- Build: hn,
4542
- Run: rn,
4595
+ Html: ls,
4596
+ Translate: Ss,
4597
+ Transition: Ts,
4598
+ Direction: bs,
4599
+ Peek: cs,
4600
+ Sizes: ds,
4601
+ Gaps: as,
4602
+ Move: us,
4603
+ Clones: ps,
4604
+ Resize: fs,
4605
+ Build: hs,
4606
+ Run: rs,
4543
4607
  // Optional
4544
- Swipe: Tn,
4545
- Images: Cn,
4546
- Anchors: Ln,
4547
- Controls: qn,
4548
- Keyboard: Mn,
4549
- Autoplay: jn,
4550
- Breakpoints: In
4551
- }, Pn = /* @__PURE__ */ (function(m) {
4552
- Yi(i, m);
4553
- var e = Ji(i);
4608
+ Swipe: Es,
4609
+ Images: Cs,
4610
+ Anchors: Ls,
4611
+ Controls: Rs,
4612
+ Keyboard: Ms,
4613
+ Autoplay: js,
4614
+ Breakpoints: Is
4615
+ }, Ps = /* @__PURE__ */ (function(m) {
4616
+ Wi(i, m);
4617
+ var e = Zi(i);
4554
4618
  function i() {
4555
4619
  return Lt(this, i), e.apply(this, arguments);
4556
4620
  }
@@ -4558,10 +4622,10 @@ var Nn = {
4558
4622
  key: "mount",
4559
4623
  value: function() {
4560
4624
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4561
- return xt(rt(i.prototype), "mount", this).call(this, Object.assign({}, Nn, t));
4625
+ return xt(rt(i.prototype), "mount", this).call(this, Object.assign({}, Ns, t));
4562
4626
  }
4563
4627
  }]), i;
4564
- })(sn);
4628
+ })(ns);
4565
4629
  function Ut() {
4566
4630
  return {
4567
4631
  async: !1,
@@ -4649,26 +4713,26 @@ const Ve = {
4649
4713
  fencesBeginRegex: (m) => new RegExp(`^ {0,${Math.min(3, m - 1)}}(?:\`\`\`|~~~)`),
4650
4714
  headingBeginRegex: (m) => new RegExp(`^ {0,${Math.min(3, m - 1)}}#`),
4651
4715
  htmlBeginRegex: (m) => new RegExp(`^ {0,${Math.min(3, m - 1)}}<(?:[a-z].*>|!--)`, "i")
4652
- }, Dn = /^(?:[ \t]*(?:\n|$))+/, Hn = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, $n = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ut = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, zn = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Bt = /(?:[*+-]|\d{1,9}[.)])/, xi = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ki = Le(xi).replace(/bull/g, Bt).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Vn = Le(xi).replace(/bull/g, Bt).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Ft = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Un = /^[^\n]+/, Yt = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Bn = Le(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Yt).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Fn = Le(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Bt).getRegex(), Rt = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Wt = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Yn = Le("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Wt).replace("tag", Rt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), _i = Le(Ft).replace("hr", ut).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Rt).getRegex(), Wn = Le(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", _i).getRegex(), Gt = {
4653
- blockquote: Wn,
4654
- code: Hn,
4655
- def: Bn,
4656
- fences: $n,
4657
- heading: zn,
4716
+ }, Ds = /^(?:[ \t]*(?:\n|$))+/, Hs = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, $s = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ut = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, zs = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Bt = /(?:[*+-]|\d{1,9}[.)])/, xi = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ki = Le(xi).replace(/bull/g, Bt).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Vs = Le(xi).replace(/bull/g, Bt).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Yt = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Us = /^[^\n]+/, Ft = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Bs = Le(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Ft).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ys = Le(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Bt).getRegex(), qt = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Wt = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Fs = Le("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Wt).replace("tag", qt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), _i = Le(Yt).replace("hr", ut).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", qt).getRegex(), Ws = Le(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", _i).getRegex(), Gt = {
4717
+ blockquote: Ws,
4718
+ code: Hs,
4719
+ def: Bs,
4720
+ fences: $s,
4721
+ heading: zs,
4658
4722
  hr: ut,
4659
- html: Yn,
4723
+ html: Fs,
4660
4724
  lheading: ki,
4661
- list: Fn,
4662
- newline: Dn,
4725
+ list: Ys,
4726
+ newline: Ds,
4663
4727
  paragraph: _i,
4664
4728
  table: ct,
4665
- text: Un
4666
- }, hi = Le("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", ut).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Rt).getRegex(), Gn = {
4729
+ text: Us
4730
+ }, hi = Le("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", ut).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", qt).getRegex(), Gs = {
4667
4731
  ...Gt,
4668
- lheading: Vn,
4732
+ lheading: Vs,
4669
4733
  table: hi,
4670
- paragraph: Le(Ft).replace("hr", ut).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", hi).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Rt).getRegex()
4671
- }, Xn = {
4734
+ paragraph: Le(Yt).replace("hr", ut).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", hi).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", qt).getRegex()
4735
+ }, Xs = {
4672
4736
  ...Gt,
4673
4737
  html: Le(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Wt).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
4674
4738
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
@@ -4676,62 +4740,62 @@ const Ve = {
4676
4740
  fences: ct,
4677
4741
  // fences not supported
4678
4742
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
4679
- paragraph: Le(Ft).replace("hr", ut).replace("heading", ` *#{1,6} *[^
4743
+ paragraph: Le(Yt).replace("hr", ut).replace("heading", ` *#{1,6} *[^
4680
4744
  ]`).replace("lheading", ki).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
4681
- }, Jn = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Zn = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Si = /^( {2,}|\\)\n(?!\s*$)/, Qn = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, qt = /[\p{P}\p{S}]/u, Xt = /[\s\p{P}\p{S}]/u, Ei = /[^\s\p{P}\p{S}]/u, Kn = Le(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Xt).getRegex(), Ti = /(?!~)[\p{P}\p{S}]/u, es = /(?!~)[\s\p{P}\p{S}]/u, ts = /(?:[^\s\p{P}\p{S}]|~)/u, is = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Ci = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, ns = Le(Ci, "u").replace(/punct/g, qt).getRegex(), ss = Le(Ci, "u").replace(/punct/g, Ti).getRegex(), Li = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", rs = Le(Li, "gu").replace(/notPunctSpace/g, Ei).replace(/punctSpace/g, Xt).replace(/punct/g, qt).getRegex(), as = Le(Li, "gu").replace(/notPunctSpace/g, ts).replace(/punctSpace/g, es).replace(/punct/g, Ti).getRegex(), os = Le("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Ei).replace(/punctSpace/g, Xt).replace(/punct/g, qt).getRegex(), ls = Le(/\\(punct)/, "gu").replace(/punct/g, qt).getRegex(), cs = Le(/^<(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(), us = Le(Wt).replace("(?:-->|$)", "-->").getRegex(), ds = Le("^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", us).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), St = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, hs = Le(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", St).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Oi = Le(/^!?\[(label)\]\[(ref)\]/).replace("label", St).replace("ref", Yt).getRegex(), Ai = Le(/^!?\[(ref)\](?:\[\])?/).replace("ref", Yt).getRegex(), ps = Le("reflink|nolink(?!\\()", "g").replace("reflink", Oi).replace("nolink", Ai).getRegex(), Jt = {
4745
+ }, Js = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Zs = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Si = /^( {2,}|\\)\n(?!\s*$)/, Qs = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Rt = /[\p{P}\p{S}]/u, Xt = /[\s\p{P}\p{S}]/u, Ti = /[^\s\p{P}\p{S}]/u, Ks = Le(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Xt).getRegex(), Ei = /(?!~)[\p{P}\p{S}]/u, en = /(?!~)[\s\p{P}\p{S}]/u, tn = /(?:[^\s\p{P}\p{S}]|~)/u, sn = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Ci = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, nn = Le(Ci, "u").replace(/punct/g, Rt).getRegex(), rn = Le(Ci, "u").replace(/punct/g, Ei).getRegex(), Li = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", an = Le(Li, "gu").replace(/notPunctSpace/g, Ti).replace(/punctSpace/g, Xt).replace(/punct/g, Rt).getRegex(), on = Le(Li, "gu").replace(/notPunctSpace/g, tn).replace(/punctSpace/g, en).replace(/punct/g, Ei).getRegex(), ln = Le("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Ti).replace(/punctSpace/g, Xt).replace(/punct/g, Rt).getRegex(), cn = Le(/\\(punct)/, "gu").replace(/punct/g, Rt).getRegex(), un = Le(/^<(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(), dn = Le(Wt).replace("(?:-->|$)", "-->").getRegex(), hn = Le("^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", dn).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), St = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, pn = Le(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", St).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Oi = Le(/^!?\[(label)\]\[(ref)\]/).replace("label", St).replace("ref", Ft).getRegex(), Ai = Le(/^!?\[(ref)\](?:\[\])?/).replace("ref", Ft).getRegex(), fn = Le("reflink|nolink(?!\\()", "g").replace("reflink", Oi).replace("nolink", Ai).getRegex(), Jt = {
4682
4746
  _backpedal: ct,
4683
4747
  // only used for GFM url
4684
- anyPunctuation: ls,
4685
- autolink: cs,
4686
- blockSkip: is,
4748
+ anyPunctuation: cn,
4749
+ autolink: un,
4750
+ blockSkip: sn,
4687
4751
  br: Si,
4688
- code: Zn,
4752
+ code: Zs,
4689
4753
  del: ct,
4690
- emStrongLDelim: ns,
4691
- emStrongRDelimAst: rs,
4692
- emStrongRDelimUnd: os,
4693
- escape: Jn,
4694
- link: hs,
4754
+ emStrongLDelim: nn,
4755
+ emStrongRDelimAst: an,
4756
+ emStrongRDelimUnd: ln,
4757
+ escape: Js,
4758
+ link: pn,
4695
4759
  nolink: Ai,
4696
- punctuation: Kn,
4760
+ punctuation: Ks,
4697
4761
  reflink: Oi,
4698
- reflinkSearch: ps,
4699
- tag: ds,
4700
- text: Qn,
4762
+ reflinkSearch: fn,
4763
+ tag: hn,
4764
+ text: Qs,
4701
4765
  url: ct
4702
- }, fs = {
4766
+ }, gn = {
4703
4767
  ...Jt,
4704
4768
  link: Le(/^!?\[(label)\]\((.*?)\)/).replace("label", St).getRegex(),
4705
4769
  reflink: Le(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", St).getRegex()
4706
4770
  }, zt = {
4707
4771
  ...Jt,
4708
- emStrongRDelimAst: as,
4709
- emStrongLDelim: ss,
4772
+ emStrongRDelimAst: on,
4773
+ emStrongLDelim: rn,
4710
4774
  url: Le(/^((?: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(),
4711
4775
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
4712
4776
  del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
4713
4777
  text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
4714
- }, gs = {
4778
+ }, mn = {
4715
4779
  ...zt,
4716
4780
  br: Le(Si).replace("{2,}", "*").getRegex(),
4717
4781
  text: Le(zt.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
4718
4782
  }, bt = {
4719
4783
  normal: Gt,
4720
- gfm: Gn,
4721
- pedantic: Xn
4784
+ gfm: Gs,
4785
+ pedantic: Xs
4722
4786
  }, ot = {
4723
4787
  normal: Jt,
4724
4788
  gfm: zt,
4725
- breaks: gs,
4726
- pedantic: fs
4727
- }, ms = {
4789
+ breaks: mn,
4790
+ pedantic: gn
4791
+ }, bn = {
4728
4792
  "&": "&amp;",
4729
4793
  "<": "&lt;",
4730
4794
  ">": "&gt;",
4731
4795
  '"': "&quot;",
4732
4796
  "'": "&#39;"
4733
- }, pi = (m) => ms[m];
4734
- function Ye(m, e) {
4797
+ }, pi = (m) => bn[m];
4798
+ function Fe(m, e) {
4735
4799
  if (e) {
4736
4800
  if (Ve.escapeTest.test(m))
4737
4801
  return m.replace(Ve.escapeReplace, pi);
@@ -4774,7 +4838,7 @@ function lt(m, e, i) {
4774
4838
  t++;
4775
4839
  return m.slice(0, s - t);
4776
4840
  }
4777
- function bs(m, e) {
4841
+ function vn(m, e) {
4778
4842
  if (m.indexOf(e[1]) === -1)
4779
4843
  return -1;
4780
4844
  let i = 0;
@@ -4800,7 +4864,7 @@ function mi(m, e, i, s, t) {
4800
4864
  };
4801
4865
  return s.state.inLink = !1, u;
4802
4866
  }
4803
- function vs(m, e, i) {
4867
+ function yn(m, e, i) {
4804
4868
  const s = m.match(i.other.indentCodeCompensation);
4805
4869
  if (s === null)
4806
4870
  return e;
@@ -4815,7 +4879,7 @@ function vs(m, e, i) {
4815
4879
  }).join(`
4816
4880
  `);
4817
4881
  }
4818
- class Et {
4882
+ class Tt {
4819
4883
  options;
4820
4884
  rules;
4821
4885
  // set by the lexer
@@ -4848,7 +4912,7 @@ class Et {
4848
4912
  fences(e) {
4849
4913
  const i = this.rules.block.fences.exec(e);
4850
4914
  if (i) {
4851
- const s = i[0], t = vs(s, i[3] || "", this.rules);
4915
+ const s = i[0], t = yn(s, i[3] || "", this.rules);
4852
4916
  return {
4853
4917
  type: "code",
4854
4918
  raw: s,
@@ -4917,14 +4981,14 @@ ${o}` : o;
4917
4981
  if (f?.type === "blockquote") {
4918
4982
  const v = f, S = v.raw + `
4919
4983
  ` + s.join(`
4920
- `), q = this.blockquote(S);
4921
- r[r.length - 1] = q, t = t.substring(0, t.length - v.raw.length) + q.raw, n = n.substring(0, n.length - v.text.length) + q.text;
4984
+ `), R = this.blockquote(S);
4985
+ r[r.length - 1] = R, t = t.substring(0, t.length - v.raw.length) + R.raw, n = n.substring(0, n.length - v.text.length) + R.text;
4922
4986
  break;
4923
4987
  } else if (f?.type === "list") {
4924
4988
  const v = f, S = v.raw + `
4925
4989
  ` + s.join(`
4926
- `), q = this.list(S);
4927
- r[r.length - 1] = q, t = t.substring(0, t.length - f.raw.length) + q.raw, n = n.substring(0, n.length - v.raw.length) + q.raw, s = S.substring(r.at(-1).raw.length).split(`
4990
+ `), R = this.list(S);
4991
+ r[r.length - 1] = R, t = t.substring(0, t.length - f.raw.length) + R.raw, n = n.substring(0, n.length - v.raw.length) + R.raw, s = S.substring(r.at(-1).raw.length).split(`
4928
4992
  `);
4929
4993
  continue;
4930
4994
  }
@@ -4958,20 +5022,20 @@ ${o}` : o;
4958
5022
  break;
4959
5023
  d = i[0], e = e.substring(d.length);
4960
5024
  let h = i[2].split(`
4961
- `, 1)[0].replace(this.rules.other.listReplaceTabs, (T) => " ".repeat(3 * T.length)), f = e.split(`
5025
+ `, 1)[0].replace(this.rules.other.listReplaceTabs, (E) => " ".repeat(3 * E.length)), f = e.split(`
4962
5026
  `, 1)[0], v = !h.trim(), S = 0;
4963
5027
  if (this.options.pedantic ? (S = 2, o = h.trimStart()) : v ? S = i[1].length + 1 : (S = i[2].search(this.rules.other.nonSpaceChar), S = S > 4 ? 1 : S, o = h.slice(S), S += i[1].length), v && this.rules.other.blankLine.test(f) && (d += f + `
4964
5028
  `, e = e.substring(f.length + 1), c = !0), !c) {
4965
- const T = this.rules.other.nextBulletRegex(S), b = this.rules.other.hrRegex(S), k = this.rules.other.fencesBeginRegex(S), C = this.rules.other.headingBeginRegex(S), g = this.rules.other.htmlBeginRegex(S);
5029
+ const E = this.rules.other.nextBulletRegex(S), b = this.rules.other.hrRegex(S), k = this.rules.other.fencesBeginRegex(S), C = this.rules.other.headingBeginRegex(S), g = this.rules.other.htmlBeginRegex(S);
4966
5030
  for (; e; ) {
4967
5031
  const w = e.split(`
4968
5032
  `, 1)[0];
4969
- let R;
4970
- if (f = w, this.options.pedantic ? (f = f.replace(this.rules.other.listReplaceNesting, " "), R = f) : R = f.replace(this.rules.other.tabCharGlobal, " "), k.test(f) || C.test(f) || g.test(f) || T.test(f) || b.test(f))
5033
+ let q;
5034
+ if (f = w, this.options.pedantic ? (f = f.replace(this.rules.other.listReplaceNesting, " "), q = f) : q = f.replace(this.rules.other.tabCharGlobal, " "), k.test(f) || C.test(f) || g.test(f) || E.test(f) || b.test(f))
4971
5035
  break;
4972
- if (R.search(this.rules.other.nonSpaceChar) >= S || !f.trim())
5036
+ if (q.search(this.rules.other.nonSpaceChar) >= S || !f.trim())
4973
5037
  o += `
4974
- ` + R.slice(S);
5038
+ ` + q.slice(S);
4975
5039
  else {
4976
5040
  if (v || h.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || k.test(h) || C.test(h) || b.test(h))
4977
5041
  break;
@@ -4979,15 +5043,15 @@ ${o}` : o;
4979
5043
  ` + f;
4980
5044
  }
4981
5045
  !v && !f.trim() && (v = !0), d += w + `
4982
- `, e = e.substring(w.length + 1), h = R.slice(S);
5046
+ `, e = e.substring(w.length + 1), h = q.slice(S);
4983
5047
  }
4984
5048
  }
4985
5049
  n.loose || (a ? n.loose = !0 : this.rules.other.doubleBlankLine.test(d) && (a = !0));
4986
- let q = null, y;
4987
- this.options.gfm && (q = this.rules.other.listIsTask.exec(o), q && (y = q[0] !== "[ ] ", o = o.replace(this.rules.other.listReplaceTask, ""))), n.items.push({
5050
+ let R = null, y;
5051
+ this.options.gfm && (R = this.rules.other.listIsTask.exec(o), R && (y = R[0] !== "[ ] ", o = o.replace(this.rules.other.listReplaceTask, ""))), n.items.push({
4988
5052
  type: "list_item",
4989
5053
  raw: d,
4990
- task: !!q,
5054
+ task: !!R,
4991
5055
  checked: y,
4992
5056
  loose: !1,
4993
5057
  text: o,
@@ -5133,7 +5197,7 @@ ${o}` : o;
5133
5197
  if ((s.length - r.length) % 2 === 0)
5134
5198
  return;
5135
5199
  } else {
5136
- const r = bs(i[2], "()");
5200
+ const r = vn(i[2], "()");
5137
5201
  if (r === -2)
5138
5202
  return;
5139
5203
  if (r > -1) {
@@ -5306,7 +5370,7 @@ class Be {
5306
5370
  tokenizer;
5307
5371
  inlineQueue;
5308
5372
  constructor(e) {
5309
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || Ke, this.options.tokenizer = this.options.tokenizer || new Et(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
5373
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || Ke, this.options.tokenizer = this.options.tokenizer || new Tt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
5310
5374
  inLink: !1,
5311
5375
  inRawBlock: !1,
5312
5376
  top: !0
@@ -5542,7 +5606,7 @@ class Be {
5542
5606
  return i;
5543
5607
  }
5544
5608
  }
5545
- class Tt {
5609
+ class Et {
5546
5610
  options;
5547
5611
  parser;
5548
5612
  // set by the parser
@@ -5555,8 +5619,8 @@ class Tt {
5555
5619
  code({ text: e, lang: i, escaped: s }) {
5556
5620
  const t = (i || "").match(Ve.notSpaceStart)?.[0], n = e.replace(Ve.endingNewline, "") + `
5557
5621
  `;
5558
- return t ? '<pre><code class="language-' + Ye(t) + '">' + (s ? n : Ye(n, !0)) + `</code></pre>
5559
- ` : "<pre><code>" + (s ? n : Ye(n, !0)) + `</code></pre>
5622
+ return t ? '<pre><code class="language-' + Fe(t) + '">' + (s ? n : Fe(n, !0)) + `</code></pre>
5623
+ ` : "<pre><code>" + (s ? n : Fe(n, !0)) + `</code></pre>
5560
5624
  `;
5561
5625
  }
5562
5626
  blockquote({ tokens: e }) {
@@ -5591,7 +5655,7 @@ ${this.parser.parse(e)}</blockquote>
5591
5655
  let i = "";
5592
5656
  if (e.task) {
5593
5657
  const s = this.checkbox({ checked: !!e.checked });
5594
- e.loose ? e.tokens[0]?.type === "paragraph" ? (e.tokens[0].text = s + " " + e.tokens[0].text, e.tokens[0].tokens && e.tokens[0].tokens.length > 0 && e.tokens[0].tokens[0].type === "text" && (e.tokens[0].tokens[0].text = s + " " + Ye(e.tokens[0].tokens[0].text), e.tokens[0].tokens[0].escaped = !0)) : e.tokens.unshift({
5658
+ e.loose ? e.tokens[0]?.type === "paragraph" ? (e.tokens[0].text = s + " " + e.tokens[0].text, e.tokens[0].tokens && e.tokens[0].tokens.length > 0 && e.tokens[0].tokens[0].type === "text" && (e.tokens[0].tokens[0].text = s + " " + Fe(e.tokens[0].tokens[0].text), e.tokens[0].tokens[0].escaped = !0)) : e.tokens.unshift({
5595
5659
  type: "text",
5596
5660
  raw: s + " ",
5597
5661
  text: s + " ",
@@ -5647,7 +5711,7 @@ ${e}</tr>
5647
5711
  return `<em>${this.parser.parseInline(e)}</em>`;
5648
5712
  }
5649
5713
  codespan({ text: e }) {
5650
- return `<code>${Ye(e, !0)}</code>`;
5714
+ return `<code>${Fe(e, !0)}</code>`;
5651
5715
  }
5652
5716
  br(e) {
5653
5717
  return "<br>";
@@ -5661,19 +5725,19 @@ ${e}</tr>
5661
5725
  return t;
5662
5726
  e = n;
5663
5727
  let r = '<a href="' + e + '"';
5664
- return i && (r += ' title="' + Ye(i) + '"'), r += ">" + t + "</a>", r;
5728
+ return i && (r += ' title="' + Fe(i) + '"'), r += ">" + t + "</a>", r;
5665
5729
  }
5666
5730
  image({ href: e, title: i, text: s, tokens: t }) {
5667
5731
  t && (s = this.parser.parseInline(t, this.parser.textRenderer));
5668
5732
  const n = fi(e);
5669
5733
  if (n === null)
5670
- return Ye(s);
5734
+ return Fe(s);
5671
5735
  e = n;
5672
5736
  let r = `<img src="${e}" alt="${s}"`;
5673
- return i && (r += ` title="${Ye(i)}"`), r += ">", r;
5737
+ return i && (r += ` title="${Fe(i)}"`), r += ">", r;
5674
5738
  }
5675
5739
  text(e) {
5676
- return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : Ye(e.text);
5740
+ return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : Fe(e.text);
5677
5741
  }
5678
5742
  }
5679
5743
  class Zt {
@@ -5706,24 +5770,24 @@ class Zt {
5706
5770
  return "";
5707
5771
  }
5708
5772
  }
5709
- class Fe {
5773
+ class Ye {
5710
5774
  options;
5711
5775
  renderer;
5712
5776
  textRenderer;
5713
5777
  constructor(e) {
5714
- this.options = e || Ke, this.options.renderer = this.options.renderer || new Tt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Zt();
5778
+ this.options = e || Ke, this.options.renderer = this.options.renderer || new Et(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Zt();
5715
5779
  }
5716
5780
  /**
5717
5781
  * Static Parse Method
5718
5782
  */
5719
5783
  static parse(e, i) {
5720
- return new Fe(i).parse(e);
5784
+ return new Ye(i).parse(e);
5721
5785
  }
5722
5786
  /**
5723
5787
  * Static Parse Inline Method
5724
5788
  */
5725
5789
  static parseInline(e, i) {
5726
- return new Fe(i).parseInline(e);
5790
+ return new Ye(i).parseInline(e);
5727
5791
  }
5728
5792
  /**
5729
5793
  * Parse Loop
@@ -5906,19 +5970,19 @@ class kt {
5906
5970
  * Provide function to parse tokens
5907
5971
  */
5908
5972
  provideParser() {
5909
- return this.block ? Fe.parse : Fe.parseInline;
5973
+ return this.block ? Ye.parse : Ye.parseInline;
5910
5974
  }
5911
5975
  }
5912
- class ys {
5976
+ class wn {
5913
5977
  defaults = Ut();
5914
5978
  options = this.setOptions;
5915
5979
  parse = this.parseMarkdown(!0);
5916
5980
  parseInline = this.parseMarkdown(!1);
5917
- Parser = Fe;
5918
- Renderer = Tt;
5981
+ Parser = Ye;
5982
+ Renderer = Et;
5919
5983
  TextRenderer = Zt;
5920
5984
  Lexer = Be;
5921
- Tokenizer = Et;
5985
+ Tokenizer = Tt;
5922
5986
  Hooks = kt;
5923
5987
  constructor(...e) {
5924
5988
  this.use(...e);
@@ -5976,7 +6040,7 @@ class ys {
5976
6040
  }
5977
6041
  "childTokens" in n && n.childTokens && (i.childTokens[n.name] = n.childTokens);
5978
6042
  }), t.extensions = i), s.renderer) {
5979
- const n = this.defaults.renderer || new Tt(this.defaults);
6043
+ const n = this.defaults.renderer || new Et(this.defaults);
5980
6044
  for (const r in s.renderer) {
5981
6045
  if (!(r in n))
5982
6046
  throw new Error(`renderer '${r}' does not exist`);
@@ -5991,7 +6055,7 @@ class ys {
5991
6055
  t.renderer = n;
5992
6056
  }
5993
6057
  if (s.tokenizer) {
5994
- const n = this.defaults.tokenizer || new Et(this.defaults);
6058
+ const n = this.defaults.tokenizer || new Tt(this.defaults);
5995
6059
  for (const r in s.tokenizer) {
5996
6060
  if (!(r in n))
5997
6061
  throw new Error(`tokenizer '${r}' does not exist`);
@@ -6042,7 +6106,7 @@ class ys {
6042
6106
  return Be.lex(e, i ?? this.defaults);
6043
6107
  }
6044
6108
  parser(e, i) {
6045
- return Fe.parse(e, i ?? this.defaults);
6109
+ return Ye.parse(e, i ?? this.defaults);
6046
6110
  }
6047
6111
  parseMarkdown(e) {
6048
6112
  return (s, t) => {
@@ -6054,7 +6118,7 @@ class ys {
6054
6118
  if (typeof s != "string")
6055
6119
  return a(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(s) + ", string expected"));
6056
6120
  r.hooks && (r.hooks.options = r, r.hooks.block = e);
6057
- const u = r.hooks ? r.hooks.provideLexer() : e ? Be.lex : Be.lexInline, c = r.hooks ? r.hooks.provideParser() : e ? Fe.parse : Fe.parseInline;
6121
+ const u = r.hooks ? r.hooks.provideLexer() : e ? Be.lex : Be.lexInline, c = r.hooks ? r.hooks.provideParser() : e ? Ye.parse : Ye.parseInline;
6058
6122
  if (r.async)
6059
6123
  return Promise.resolve(r.hooks ? r.hooks.preprocess(s) : s).then((d) => u(d, r)).then((d) => r.hooks ? r.hooks.processAllTokens(d) : d).then((d) => r.walkTokens ? Promise.all(this.walkTokens(d, r.walkTokens)).then(() => d) : d).then((d) => c(d, r)).then((d) => r.hooks ? r.hooks.postprocess(d) : d).catch(a);
6060
6124
  try {
@@ -6072,7 +6136,7 @@ class ys {
6072
6136
  return (s) => {
6073
6137
  if (s.message += `
6074
6138
  Please report this to https://github.com/markedjs/marked.`, e) {
6075
- const t = "<p>An error occurred:</p><pre>" + Ye(s.message + "", !0) + "</pre>";
6139
+ const t = "<p>An error occurred:</p><pre>" + Fe(s.message + "", !0) + "</pre>";
6076
6140
  return i ? Promise.resolve(t) : t;
6077
6141
  }
6078
6142
  if (i)
@@ -6081,7 +6145,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
6081
6145
  };
6082
6146
  }
6083
6147
  }
6084
- const Qe = new ys();
6148
+ const Qe = new wn();
6085
6149
  function we(m, e) {
6086
6150
  return Qe.parse(m, e);
6087
6151
  }
@@ -6097,13 +6161,13 @@ we.walkTokens = function(m, e) {
6097
6161
  return Qe.walkTokens(m, e);
6098
6162
  };
6099
6163
  we.parseInline = Qe.parseInline;
6100
- we.Parser = Fe;
6101
- we.parser = Fe.parse;
6102
- we.Renderer = Tt;
6164
+ we.Parser = Ye;
6165
+ we.parser = Ye.parse;
6166
+ we.Renderer = Et;
6103
6167
  we.TextRenderer = Zt;
6104
6168
  we.Lexer = Be;
6105
6169
  we.lexer = Be.lex;
6106
- we.Tokenizer = Et;
6170
+ we.Tokenizer = Tt;
6107
6171
  we.Hooks = kt;
6108
6172
  we.parse = we;
6109
6173
  we.options;
@@ -6111,9 +6175,9 @@ we.setOptions;
6111
6175
  we.use;
6112
6176
  we.walkTokens;
6113
6177
  we.parseInline;
6114
- Fe.parse;
6178
+ Ye.parse;
6115
6179
  Be.lex;
6116
- class ws {
6180
+ class xn {
6117
6181
  constructor(e = {}, i) {
6118
6182
  const s = {
6119
6183
  lang: []
@@ -7141,7 +7205,7 @@ Check the information and return the details.
7141
7205
  };
7142
7206
  {
7143
7207
  const d = r.data;
7144
- let o = "", h = "", f, v = !1, S = [], q = [];
7208
+ let o = "", h = "", f, v = !1, S = [], R = [];
7145
7209
  return d.entries && d.entries.forEach((y) => {
7146
7210
  f = y.url.split(".").pop().toLowerCase(), f === "mp4" ? (o += `
7147
7211
  <p class="responsive-video">
@@ -7165,13 +7229,13 @@ Check the information and return the details.
7165
7229
  <a class="link-download" href="${y.url}" download>${this.out("Download")}</a>
7166
7230
  </div>
7167
7231
  </div>
7168
- `, h += `![](${y.url})`, v = !0), S.push(y.url), q.push(y.file_url);
7232
+ `, h += `![](${y.url})`, v = !0), S.push(y.url), R.push(y.file_url);
7169
7233
  }), v && (o = `<div class="image-container">${o}</div>`), typeof d == "string" && (o = d, h = d), t ? (s.innerHTML = "", s.remove()) : (s.innerHTML = o, this.builder.outputHtml += `<div class="result-container">${o}</div>`), {
7170
7234
  mediaGenerated: !0,
7171
7235
  status: "success",
7172
7236
  markdown: h,
7173
7237
  output: S,
7174
- output2: q
7238
+ output2: R
7175
7239
  };
7176
7240
  }
7177
7241
  }
@@ -7729,17 +7793,17 @@ Check the information and return the details.
7729
7793
  body: JSON.stringify(n)
7730
7794
  });
7731
7795
  }
7732
- const q = await h.json();
7733
- this.builder.settings.consoleLog && console.log(q), this.builder.isMediaGenerating = !1;
7734
- const y = q.data;
7735
- this.builder.output.push(q);
7736
- let T = this.renderResult(y, i, s);
7796
+ const R = await h.json();
7797
+ this.builder.settings.consoleLog && console.log(R), this.builder.isMediaGenerating = !1;
7798
+ const y = R.data;
7799
+ this.builder.output.push(R);
7800
+ let E = this.renderResult(y, i, s);
7737
7801
  return {
7738
7802
  mediaGenerated: !0,
7739
7803
  status: "success",
7740
- markdown: T.markdown,
7741
- output: T.output,
7742
- output2: T.output2
7804
+ markdown: E.markdown,
7805
+ output: E.output,
7806
+ output2: E.output2
7743
7807
  };
7744
7808
  }
7745
7809
  async generateGoogle(e, i, s) {
@@ -7765,13 +7829,13 @@ Check the information and return the details.
7765
7829
  if (!(d && Object.keys(d).length === 0)) {
7766
7830
  for (const y of d)
7767
7831
  if (y.value instanceof FileList && y.type === "multifile") {
7768
- const T = y.value;
7769
- if (T.length > 0)
7770
- for (const b of T) {
7832
+ const E = y.value;
7833
+ if (E.length > 0)
7834
+ for (const b of E) {
7771
7835
  const k = await new Promise((C, g) => {
7772
7836
  const w = new FileReader();
7773
- w.onload = (R) => {
7774
- const V = R.target.result.split(",")[1];
7837
+ w.onload = (q) => {
7838
+ const V = q.target.result.split(",")[1];
7775
7839
  C(V);
7776
7840
  }, w.onerror = g, w.readAsDataURL(b);
7777
7841
  });
@@ -7800,13 +7864,13 @@ Check the information and return the details.
7800
7864
  })).json();
7801
7865
  this.builder.settings.consoleLog && console.log(v), this.builder.isMediaGenerating = !1;
7802
7866
  const S = v.data;
7803
- let q = this.renderResult(S, i, s);
7867
+ let R = this.renderResult(S, i, s);
7804
7868
  return {
7805
7869
  mediaGenerated: !0,
7806
7870
  status: "success",
7807
- markdown: q.markdown,
7808
- output: q.output,
7809
- output2: q.output2
7871
+ markdown: R.markdown,
7872
+ output: R.output,
7873
+ output2: R.output2
7810
7874
  };
7811
7875
  }
7812
7876
  async generateFal(e, i, s) {
@@ -7826,26 +7890,26 @@ Check the information and return the details.
7826
7890
  status: "error",
7827
7891
  message: this.out("Please input a prompt.")
7828
7892
  };
7829
- let q = e.width || 1280, y = e.height || 768, T = e.aspect_ratio, b = e.num_images || 1;
7830
- if (b > 4 && (b = 4), T) {
7893
+ let R = e.width || 1280, y = e.height || 768, E = e.aspect_ratio, b = e.num_images || 1;
7894
+ if (b > 4 && (b = 4), E) {
7831
7895
  let {
7832
- w: ne,
7896
+ w: se,
7833
7897
  h: re
7834
- } = this.getDimension(T);
7835
- q = ne, y = re;
7898
+ } = this.getDimension(E);
7899
+ R = se, y = re;
7836
7900
  }
7837
- let k = e.color1_red, C = e.color1_green, g = e.color1_blue, w = e.color2_red, R = e.color2_green, V = e.color2_blue, I = e.color3_red, Y = e.color3_green, G = e.color3_blue, B = e.color4_red, M = e.color4_green, _ = e.color4_blue, L = e.color5_red, P = e.color5_green, W = e.color5_blue, N = [];
7901
+ let k = e.color1_red, C = e.color1_green, g = e.color1_blue, w = e.color2_red, q = e.color2_green, V = e.color2_blue, I = e.color3_red, F = e.color3_green, G = e.color3_blue, B = e.color4_red, M = e.color4_green, _ = e.color4_blue, L = e.color5_red, P = e.color5_green, W = e.color5_blue, N = [];
7838
7902
  k && C && g && !(k === "0" && C === "0" && g === "0") && N.push({
7839
7903
  r: k,
7840
7904
  g: C,
7841
7905
  b: g
7842
- }), w && R && V && !(w === "0" && R === "0" && V === "0") && N.push({
7906
+ }), w && q && V && !(w === "0" && q === "0" && V === "0") && N.push({
7843
7907
  r: w,
7844
- g: R,
7908
+ g: q,
7845
7909
  b: V
7846
- }), I && Y && G && !(I === "0" && Y === "0" && G === "0") && N.push({
7910
+ }), I && F && G && !(I === "0" && F === "0" && G === "0") && N.push({
7847
7911
  r: I,
7848
- g: Y,
7912
+ g: F,
7849
7913
  b: G
7850
7914
  }), B && M && _ && !(B === "0" && M === "0" && _ === "0") && N.push({
7851
7915
  r: B,
@@ -7857,7 +7921,7 @@ Check the information and return the details.
7857
7921
  b: W
7858
7922
  });
7859
7923
  let Q = await (async () => {
7860
- let ne = [], re = this.builder.getFormValues();
7924
+ let se = [], re = this.builder.getFormValues();
7861
7925
  for (const ae of re)
7862
7926
  if (ae.value instanceof FileList && ae.type === "multifile") {
7863
7927
  const de = ae.value;
@@ -7868,37 +7932,37 @@ Check the information and return the details.
7868
7932
  const je = new FormData();
7869
7933
  je.append("file", Se), je.append("customData", this.builder.settings.customData);
7870
7934
  let Ae = this.builder.settings.uploadMediaUrl_Fal;
7871
- const Ee = await (await fetch(Ae, {
7935
+ const Te = await (await fetch(Ae, {
7872
7936
  method: "POST",
7873
7937
  body: je
7874
7938
  })).json();
7875
- if (Ee.ok) {
7876
- const be = Ee.url;
7877
- ne.push(be), this.builder.filesUploaded["file_" + ue] = be;
7939
+ if (Te.ok) {
7940
+ const be = Te.url;
7941
+ se.push(be), this.builder.filesUploaded["file_" + ue] = be;
7878
7942
  }
7879
7943
  }
7880
7944
  }
7881
7945
  }
7882
- return ne;
7946
+ return se;
7883
7947
  })();
7884
7948
  n = {
7885
7949
  prompt: S,
7886
7950
  image_size: {
7887
- width: q,
7951
+ width: R,
7888
7952
  height: y
7889
7953
  },
7890
7954
  num_images: b
7891
7955
  }, v.indexOf("gemini") !== -1 && (n = {
7892
7956
  prompt: S,
7893
7957
  input_image_urls: Q
7894
- }), v === "fal-ai/ideogram/v2a" && (T = this.getClosestAspectRatio(q, y), n = {
7958
+ }), v === "fal-ai/ideogram/v2a" && (E = this.getClosestAspectRatio(R, y), n = {
7895
7959
  prompt: S,
7896
- aspect_ratio: T,
7960
+ aspect_ratio: E,
7897
7961
  num_images: b
7898
7962
  }), v.indexOf("recraft") !== -1 && (n = {
7899
7963
  prompt: S,
7900
7964
  image_size: {
7901
- width: q,
7965
+ width: R,
7902
7966
  height: y
7903
7967
  },
7904
7968
  num_images: b,
@@ -7933,15 +7997,15 @@ Check the information and return the details.
7933
7997
  status: "error",
7934
7998
  message: y.error
7935
7999
  };
7936
- let T = y[e.image_url], b = y[e.image_url + "_mask"];
8000
+ let E = y[e.image_url], b = y[e.image_url + "_mask"];
7937
8001
  if (n = {
7938
- image_url: T,
8002
+ image_url: E,
7939
8003
  mask_url: b,
7940
8004
  prompt: S
7941
8005
  // num_images,
7942
8006
  }, r.model = v, !b) {
7943
8007
  n = {
7944
- image_url: T,
8008
+ image_url: E,
7945
8009
  prompt: S
7946
8010
  };
7947
8011
  let k = this.validateModel(e.model, t, "edit_image");
@@ -7963,19 +8027,19 @@ Check the information and return the details.
7963
8027
  status: "error",
7964
8028
  message: this.out("Please input a prompt.")
7965
8029
  };
7966
- let q = e.width || 1280, y = e.height || 768, T = e.num_images || 1;
7967
- T > 4 && (T = 4);
7968
- let b = e.style || "any", k = e.style_id || this.builder.settings._2dIllustrationStyleId, C = e.color1_red, g = e.color1_green, w = e.color1_blue, R = e.color2_red, V = e.color2_green, I = e.color2_blue, Y = e.color3_red, G = e.color3_green, B = e.color3_blue, M = e.color4_red, _ = e.color4_green, L = e.color4_blue, P = e.color5_red, W = e.color5_green, N = e.color5_blue, J = [];
8030
+ let R = e.width || 1280, y = e.height || 768, E = e.num_images || 1;
8031
+ E > 4 && (E = 4);
8032
+ let b = e.style || "any", k = e.style_id || this.builder.settings._2dIllustrationStyleId, C = e.color1_red, g = e.color1_green, w = e.color1_blue, q = e.color2_red, V = e.color2_green, I = e.color2_blue, F = e.color3_red, G = e.color3_green, B = e.color3_blue, M = e.color4_red, _ = e.color4_green, L = e.color4_blue, P = e.color5_red, W = e.color5_green, N = e.color5_blue, J = [];
7969
8033
  C && g && w && !(C === "0" && g === "0" && w === "0") && J.push({
7970
8034
  r: C,
7971
8035
  g,
7972
8036
  b: w
7973
- }), R && V && I && !(R === "0" && V === "0" && I === "0") && J.push({
7974
- r: R,
8037
+ }), q && V && I && !(q === "0" && V === "0" && I === "0") && J.push({
8038
+ r: q,
7975
8039
  g: V,
7976
8040
  b: I
7977
- }), Y && G && B && !(Y === "0" && G === "0" && B === "0") && J.push({
7978
- r: Y,
8041
+ }), F && G && B && !(F === "0" && G === "0" && B === "0") && J.push({
8042
+ r: F,
7979
8043
  g: G,
7980
8044
  b: B
7981
8045
  }), M && _ && L && !(M === "0" && _ === "0" && L === "0") && J.push({
@@ -7989,10 +8053,10 @@ Check the information and return the details.
7989
8053
  }), n = {
7990
8054
  prompt: S,
7991
8055
  image_size: {
7992
- width: q,
8056
+ width: R,
7993
8057
  height: y
7994
8058
  },
7995
- num_images: T,
8059
+ num_images: E,
7996
8060
  style: b,
7997
8061
  style_id: k,
7998
8062
  colors: J
@@ -8012,20 +8076,20 @@ Check the information and return the details.
8012
8076
  status: "error",
8013
8077
  message: this.out("Please input a prompt.")
8014
8078
  };
8015
- let q = e.width || 1280, y = e.height || 768, T = e.num_images || 1;
8016
- T > 4 && (T = 4);
8017
- let b = e.style || "digital_illustration", k = e.color1_red, C = e.color1_green, g = e.color1_blue, w = e.color2_red, R = e.color2_green, V = e.color2_blue, I = e.color3_red, Y = e.color3_green, G = e.color3_blue, B = e.color4_red, M = e.color4_green, _ = e.color4_blue, L = e.color5_red, P = e.color5_green, W = e.color5_blue, N = [];
8079
+ let R = e.width || 1280, y = e.height || 768, E = e.num_images || 1;
8080
+ E > 4 && (E = 4);
8081
+ let b = e.style || "digital_illustration", k = e.color1_red, C = e.color1_green, g = e.color1_blue, w = e.color2_red, q = e.color2_green, V = e.color2_blue, I = e.color3_red, F = e.color3_green, G = e.color3_blue, B = e.color4_red, M = e.color4_green, _ = e.color4_blue, L = e.color5_red, P = e.color5_green, W = e.color5_blue, N = [];
8018
8082
  k && C && g && !(k === "0" && C === "0" && g === "0") && N.push({
8019
8083
  r: k,
8020
8084
  g: C,
8021
8085
  b: g
8022
- }), w && R && V && !(w === "0" && R === "0" && V === "0") && N.push({
8086
+ }), w && q && V && !(w === "0" && q === "0" && V === "0") && N.push({
8023
8087
  r: w,
8024
- g: R,
8088
+ g: q,
8025
8089
  b: V
8026
- }), I && Y && G && !(I === "0" && Y === "0" && G === "0") && N.push({
8090
+ }), I && F && G && !(I === "0" && F === "0" && G === "0") && N.push({
8027
8091
  r: I,
8028
- g: Y,
8092
+ g: F,
8029
8093
  b: G
8030
8094
  }), B && M && _ && !(B === "0" && M === "0" && _ === "0") && N.push({
8031
8095
  r: B,
@@ -8038,10 +8102,10 @@ Check the information and return the details.
8038
8102
  }), n = {
8039
8103
  prompt: S,
8040
8104
  image_size: {
8041
- width: q,
8105
+ width: R,
8042
8106
  height: y
8043
8107
  },
8044
- num_images: T,
8108
+ num_images: E,
8045
8109
  style: b,
8046
8110
  // style_id,
8047
8111
  colors: N
@@ -8061,20 +8125,20 @@ Check the information and return the details.
8061
8125
  status: "error",
8062
8126
  message: this.out("Please input a prompt.")
8063
8127
  };
8064
- let q = e.width || 1024, y = e.height || 1365, T = e.num_images || 1;
8065
- T > 4 && (T = 1);
8066
- let b = "digital_illustration/cover", k = e.color1_red, C = e.color1_green, g = e.color1_blue, w = e.color2_red, R = e.color2_green, V = e.color2_blue, I = e.color3_red, Y = e.color3_green, G = e.color3_blue, B = e.color4_red, M = e.color4_green, _ = e.color4_blue, L = e.color5_red, P = e.color5_green, W = e.color5_blue, N = [];
8128
+ let R = e.width || 1024, y = e.height || 1365, E = e.num_images || 1;
8129
+ E > 4 && (E = 1);
8130
+ let b = "digital_illustration/cover", k = e.color1_red, C = e.color1_green, g = e.color1_blue, w = e.color2_red, q = e.color2_green, V = e.color2_blue, I = e.color3_red, F = e.color3_green, G = e.color3_blue, B = e.color4_red, M = e.color4_green, _ = e.color4_blue, L = e.color5_red, P = e.color5_green, W = e.color5_blue, N = [];
8067
8131
  k && C && g && !(k === "0" && C === "0" && g === "0") && N.push({
8068
8132
  r: k,
8069
8133
  g: C,
8070
8134
  b: g
8071
- }), w && R && V && !(w === "0" && R === "0" && V === "0") && N.push({
8135
+ }), w && q && V && !(w === "0" && q === "0" && V === "0") && N.push({
8072
8136
  r: w,
8073
- g: R,
8137
+ g: q,
8074
8138
  b: V
8075
- }), I && Y && G && !(I === "0" && Y === "0" && G === "0") && N.push({
8139
+ }), I && F && G && !(I === "0" && F === "0" && G === "0") && N.push({
8076
8140
  r: I,
8077
- g: Y,
8141
+ g: F,
8078
8142
  b: G
8079
8143
  }), B && M && _ && !(B === "0" && M === "0" && _ === "0") && N.push({
8080
8144
  r: B,
@@ -8087,10 +8151,10 @@ Check the information and return the details.
8087
8151
  }), n = {
8088
8152
  prompt: S,
8089
8153
  image_size: {
8090
- width: q,
8154
+ width: R,
8091
8155
  height: y
8092
8156
  },
8093
- num_images: T,
8157
+ num_images: E,
8094
8158
  style: b,
8095
8159
  // style_id,
8096
8160
  colors: N
@@ -8109,14 +8173,14 @@ Check the information and return the details.
8109
8173
  status: "error",
8110
8174
  message: this.out("Image reference not found.")
8111
8175
  };
8112
- const q = await this.builder.upload.getInputURLs(t);
8113
- if (q.error)
8176
+ const R = await this.builder.upload.getInputURLs(t);
8177
+ if (R.error)
8114
8178
  return {
8115
8179
  mediaGenerated: !1,
8116
8180
  status: "error",
8117
- message: q.error
8181
+ message: R.error
8118
8182
  };
8119
- let y = q[e.image_url];
8183
+ let y = R[e.image_url];
8120
8184
  if (!y)
8121
8185
  return {
8122
8186
  mediaGenerated: !1,
@@ -8155,15 +8219,15 @@ Check the information and return the details.
8155
8219
  status: "error",
8156
8220
  message: y.error
8157
8221
  };
8158
- let T = y[e.image_url];
8159
- if (!T)
8222
+ let E = y[e.image_url];
8223
+ if (!E)
8160
8224
  return {
8161
8225
  mediaGenerated: !1,
8162
8226
  status: "error",
8163
8227
  message: this.out("Image not provided.")
8164
8228
  };
8165
8229
  n = {
8166
- image_url: T,
8230
+ image_url: E,
8167
8231
  prompt: `${S}. No talk. Answer only.`
8168
8232
  }, r.model = v, r.customData = this.builder.settings.customData;
8169
8233
  } else if (e.image_to_video_generation) {
@@ -8176,8 +8240,8 @@ Check the information and return the details.
8176
8240
  };
8177
8241
  let S = e.prompt;
8178
8242
  S = e.prompt || "stunning video";
8179
- let q = e.duration || 5;
8180
- q > 10 && (q = 5);
8243
+ let R = e.duration || 5;
8244
+ R > 10 && (R = 5);
8181
8245
  const y = await this.builder.upload.getInputURLs(t);
8182
8246
  if (y.error)
8183
8247
  return {
@@ -8185,8 +8249,8 @@ Check the information and return the details.
8185
8249
  status: "error",
8186
8250
  message: y.error
8187
8251
  };
8188
- let T = y[e.image_url];
8189
- if (!T)
8252
+ let E = y[e.image_url];
8253
+ if (!E)
8190
8254
  return {
8191
8255
  mediaGenerated: !1,
8192
8256
  status: "error",
@@ -8194,8 +8258,8 @@ Check the information and return the details.
8194
8258
  };
8195
8259
  n = {
8196
8260
  prompt: S,
8197
- image_url: T,
8198
- duration: q,
8261
+ image_url: E,
8262
+ duration: R,
8199
8263
  aspect_ratio: "16:9"
8200
8264
  // 9:16, 1:1
8201
8265
  }, v.indexOf("fal-ai/luma-dream-machine") !== -1 && delete n.duration, r.model = v, r.customData = this.builder.settings.customData;
@@ -8214,10 +8278,10 @@ Check the information and return the details.
8214
8278
  status: "error",
8215
8279
  message: this.out("Please input a prompt.")
8216
8280
  };
8217
- let q = e.duration || 5;
8218
- q > 10 && (q = 5), n = {
8281
+ let R = e.duration || 5;
8282
+ R > 10 && (R = 5), n = {
8219
8283
  prompt: S,
8220
- duration: q,
8284
+ duration: R,
8221
8285
  aspect_ratio: "16:9"
8222
8286
  // 9:16, 1:1
8223
8287
  }, v.indexOf("fal-ai/luma-dream-machine") !== -1 && delete n.duration, r.model = v, r.customData = this.builder.settings.customData;
@@ -8388,10 +8452,10 @@ Check the information and return the details.
8388
8452
  message: this.out("Please provide model information in the context.")
8389
8453
  };
8390
8454
  let h = await this.uploadMultiple();
8391
- ((y, T) => {
8455
+ ((y, E) => {
8392
8456
  const b = (k) => {
8393
8457
  if (Array.isArray(k)) {
8394
- const C = k[0], g = T.find((w) => w.name === C);
8458
+ const C = k[0], g = E.find((w) => w.name === C);
8395
8459
  if (g && k.every((w) => w === C))
8396
8460
  return g.files;
8397
8461
  for (let w = 0; w < k.length; w++)
@@ -8411,60 +8475,60 @@ Check the information and return the details.
8411
8475
  message: S.error
8412
8476
  };
8413
8477
  Object.keys(d).forEach((y) => {
8414
- Object.keys(S).forEach((T) => {
8415
- if (d[y] === T) {
8416
- let b = S[T];
8478
+ Object.keys(S).forEach((E) => {
8479
+ if (d[y] === E) {
8480
+ let b = S[E];
8417
8481
  d[y] = b;
8418
8482
  }
8419
8483
  if (Array.isArray(d[y])) {
8420
8484
  for (let b = 0; b < d[y].length; b++)
8421
- if (d[y][b] === T) {
8422
- let k = S[T];
8485
+ if (d[y][b] === E) {
8486
+ let k = S[E];
8423
8487
  d[y][b] = k;
8424
8488
  }
8425
8489
  }
8426
8490
  });
8427
8491
  }), Object.keys(d).forEach((y) => {
8428
- let T = d[y];
8429
- if (v(T))
8430
- for (const b in T)
8431
- Object.prototype.hasOwnProperty.call(T, b) && Object.keys(S).forEach((k) => {
8432
- if (T[b] === k) {
8492
+ let E = d[y];
8493
+ if (v(E))
8494
+ for (const b in E)
8495
+ Object.prototype.hasOwnProperty.call(E, b) && Object.keys(S).forEach((k) => {
8496
+ if (E[b] === k) {
8433
8497
  let C = S[k];
8434
- T[b] = C, k === C && !C.startsWith("http") && (T[b] = "");
8498
+ E[b] = C, k === C && !C.startsWith("http") && (E[b] = "");
8435
8499
  }
8436
8500
  });
8437
- if (Array.isArray(T)) {
8438
- for (let b = 0; b < T.length; b++)
8439
- if (v(T[b]))
8440
- for (const k in T[b])
8441
- Object.prototype.hasOwnProperty.call(T[b], k) && Object.keys(S).forEach((C) => {
8442
- if (T[b][k] === C) {
8501
+ if (Array.isArray(E)) {
8502
+ for (let b = 0; b < E.length; b++)
8503
+ if (v(E[b]))
8504
+ for (const k in E[b])
8505
+ Object.prototype.hasOwnProperty.call(E[b], k) && Object.keys(S).forEach((C) => {
8506
+ if (E[b][k] === C) {
8443
8507
  let g = S[C];
8444
- T[b][k] = g, C === g && !g.startsWith("http") && (T[b][k] = "");
8508
+ E[b][k] = g, C === g && !g.startsWith("http") && (E[b][k] = "");
8445
8509
  }
8446
8510
  });
8447
- d[y] = [...T.filter((b) => b !== "")];
8511
+ d[y] = [...E.filter((b) => b !== "")];
8448
8512
  }
8449
8513
  });
8450
- let q = {};
8451
- if (q.model = o, q.customData = this.builder.settings.customData, s === "replicate" && o.indexOf(":") !== -1) {
8514
+ let R = {};
8515
+ if (R.model = o, R.customData = this.builder.settings.customData, s === "replicate" && o.indexOf(":") !== -1) {
8452
8516
  const y = o.split(":");
8453
- q.version = y[1];
8517
+ R.version = y[1];
8454
8518
  }
8455
8519
  if (s === "replicate")
8456
8520
  if (o.indexOf(":") !== -1) {
8457
8521
  let y = this.builder.settings.replicateEndpoint1;
8458
- q.endpoint = y, q.payload = d, this.builder.settings.consoleLog && console.log("JSON PAYLOAD 1");
8522
+ R.endpoint = y, R.payload = d, this.builder.settings.consoleLog && console.log("JSON PAYLOAD 1");
8459
8523
  } else {
8460
8524
  let y = this.builder.settings.replicateEndpoint2;
8461
- y = y.replace("{MODEL}", q.model), q.endpoint = y, q.payload = d, this.builder.settings.consoleLog && console.log("JSON PAYLOAD 2");
8525
+ y = y.replace("{MODEL}", R.model), R.endpoint = y, R.payload = d, this.builder.settings.consoleLog && console.log("JSON PAYLOAD 2");
8462
8526
  }
8463
8527
  else if (s === "fal") {
8464
- let y = `https://queue.fal.run/${q.model}`;
8465
- q.endpoint = y, q.payload = d, this.builder.settings.consoleLog && console.log("JSON PAYLOAD");
8528
+ let y = `https://queue.fal.run/${R.model}`;
8529
+ R.endpoint = y, R.payload = d, this.builder.settings.consoleLog && console.log("JSON PAYLOAD");
8466
8530
  }
8467
- return this.builder.payloads.push(q), this.builder.settings.consoleLog && console.log(q), this.generateMediaByJSON(q, s, r, a);
8531
+ return this.builder.payloads.push(R), this.builder.settings.consoleLog && console.log(R), this.generateMediaByJSON(R, s, r, a);
8468
8532
  }
8469
8533
  try {
8470
8534
  if (u = await this.checkIntent(e, s, n), this.builder.settings.consoleLog && console.log(u), !u)
@@ -8511,22 +8575,22 @@ Check the information and return the details.
8511
8575
  //this.out('Request failed.')
8512
8576
  };
8513
8577
  {
8514
- const T = y.url, b = `
8578
+ const E = y.url, b = `
8515
8579
  <div class="image-container">
8516
8580
  <div>
8517
- <img src="${T}" />
8581
+ <img src="${E}" />
8518
8582
  <div>
8519
- <a class="link-view" href="${T}" target="_blank" rel="noopener noreferrer">${this.out("View")}</a>
8520
- <a class="link-download" href="${T}" download>${this.out("Download")}</a>
8583
+ <a class="link-view" href="${E}" target="_blank" rel="noopener noreferrer">${this.out("View")}</a>
8584
+ <a class="link-download" href="${E}" download>${this.out("Download")}</a>
8521
8585
  </div>
8522
8586
  </div>
8523
8587
  </div>`;
8524
- let k = `![](${T})`;
8588
+ let k = `![](${E})`;
8525
8589
  return a ? (r.innerHTML = "", r.remove()) : (r.innerHTML = b, this.builder.outputHtml += `<div class="result-container">${b}</div>`), this.builder.isMediaGenerating = !1, {
8526
8590
  mediaGenerated: !0,
8527
8591
  status: "success",
8528
8592
  markdown: k,
8529
- output: [T]
8593
+ output: [E]
8530
8594
  };
8531
8595
  }
8532
8596
  } else {
@@ -8681,7 +8745,7 @@ Check the information and return the details.
8681
8745
  return e;
8682
8746
  }
8683
8747
  }
8684
- class xs {
8748
+ class kn {
8685
8749
  constructor(e = {}, i) {
8686
8750
  const s = {
8687
8751
  lang: []
@@ -8861,7 +8925,7 @@ class xs {
8861
8925
  return e;
8862
8926
  }
8863
8927
  }
8864
- class ks {
8928
+ class _n {
8865
8929
  constructor(e, i = {}) {
8866
8930
  const s = {
8867
8931
  lang: []
@@ -8956,24 +9020,24 @@ class ks {
8956
9020
  v.className = "imagemask";
8957
9021
  const S = v.getContext("2d", {
8958
9022
  willReadFrequently: !0
8959
- }), q = document.createElement("canvas"), y = q.getContext("2d", {
9023
+ }), R = document.createElement("canvas"), y = R.getContext("2d", {
8960
9024
  willReadFrequently: !0
8961
- }), T = this.element.querySelector(".inp-imagemask"), b = (N) => {
9025
+ }), E = this.element.querySelector(".inp-imagemask"), b = (N) => {
8962
9026
  const J = document.createElement("canvas"), Q = J.getContext("2d", {
8963
9027
  willReadFrequently: !0
8964
9028
  });
8965
9029
  J.width = N.width, J.height = N.height, Q.clearRect(0, 0, N.width, N.height), Q.fillStyle = "black", Q.fillRect(0, 0, N.width, N.height), Q.drawImage(N, 0, 0);
8966
- const ne = J.toDataURL("image/png");
9030
+ const se = J.toDataURL("image/png");
8967
9031
  let re = document.querySelector(".imagemask-output");
8968
- re || (re = document.createElement("img"), re.className = "imagemask-output", document.body.appendChild(re)), re.src = ne, this.empty || (T.value = ne);
9032
+ re || (re = document.createElement("img"), re.className = "imagemask-output", document.body.appendChild(re)), re.src = se, this.empty || (E.value = se);
8969
9033
  };
8970
9034
  let k = [], C = [];
8971
9035
  const g = () => {
8972
- k.push(q.toDataURL()), k.length > 10 && k.shift(), C = [];
9036
+ k.push(R.toDataURL()), k.length > 10 && k.shift(), C = [];
8973
9037
  }, w = (N) => {
8974
9038
  const J = new Image();
8975
9039
  J.src = N, J.onload = () => {
8976
- S.clearRect(0, 0, v.width, v.height), S.drawImage(J, 0, 0, v.width, v.height), y.clearRect(0, 0, q.width, q.height), y.drawImage(J, 0, 0, q.width, q.height), b(q);
9040
+ S.clearRect(0, 0, v.width, v.height), S.drawImage(J, 0, 0, v.width, v.height), y.clearRect(0, 0, R.width, R.height), y.drawImage(J, 0, 0, R.width, R.height), b(R);
8977
9041
  };
8978
9042
  };
8979
9043
  v.addEventListener("mousedown", () => {
@@ -8983,29 +9047,29 @@ class ks {
8983
9047
  }), d.addEventListener("click", (N) => {
8984
9048
  N.preventDefault(), C.length > 0 && (k.push(v.toDataURL()), w(C.pop()));
8985
9049
  });
8986
- const R = document.createElement("img");
8987
- n.appendChild(R), n.appendChild(v), this.loaded = () => {
9050
+ const q = document.createElement("img");
9051
+ n.appendChild(q), n.appendChild(v), this.loaded = () => {
8988
9052
  n.style.display = "flex";
8989
9053
  const N = document.querySelector(".imagemask-controls");
8990
- N.style.display = "flex", e.style.display = "flex", Y(), k = [], C = [], S.clearRect(0, 0, v.width, v.height), y.clearRect(0, 0, q.width, q.height), this.empty = !0, T.value = "";
9054
+ N.style.display = "flex", e.style.display = "flex", F(), k = [], C = [], S.clearRect(0, 0, v.width, v.height), y.clearRect(0, 0, R.width, R.height), this.empty = !0, E.value = "";
8991
9055
  try {
8992
- b(q);
9056
+ b(R);
8993
9057
  } catch {
8994
9058
  }
8995
- }, R.onload = () => {
9059
+ }, q.onload = () => {
8996
9060
  this.loaded();
8997
9061
  };
8998
9062
  let V = null, I = null;
8999
- const Y = () => {
9000
- v.width > 0 && v.height > 0 && (V = S.getImageData(0, 0, v.width, v.height), I = y.getImageData(0, 0, q.width, q.height));
9001
- const N = R.offsetWidth, J = R.offsetHeight, Q = window.devicePixelRatio || 1;
9063
+ const F = () => {
9064
+ v.width > 0 && v.height > 0 && (V = S.getImageData(0, 0, v.width, v.height), I = y.getImageData(0, 0, R.width, R.height));
9065
+ const N = q.offsetWidth, J = q.offsetHeight, Q = window.devicePixelRatio || 1;
9002
9066
  v.width = N * Q, v.height = J * Q, S.scale(Q, Q), v.style.width = `${N}px`, v.style.height = `${J}px`;
9003
- const ne = R.naturalWidth, re = R.naturalHeight;
9004
- if (q.width = ne * Q, q.height = re * Q, y.scale(Q, Q), q.style.width = `${ne}px`, q.style.height = `${re}px`, V) {
9067
+ const se = q.naturalWidth, re = q.naturalHeight;
9068
+ if (R.width = se * Q, R.height = re * Q, y.scale(Q, Q), R.style.width = `${se}px`, R.style.height = `${re}px`, V) {
9005
9069
  const ae = document.createElement("canvas");
9006
9070
  ae.width = V.width, ae.height = V.height, ae.getContext("2d").putImageData(V, 0, 0);
9007
9071
  const ue = document.createElement("canvas");
9008
- ue.width = I.width, ue.height = I.height, ue.getContext("2d").putImageData(I, 0, 0), S.drawImage(ae, 0, 0, V.width, V.height, 0, 0, v.width, v.height), y.drawImage(ue, 0, 0, I.width, I.height, 0, 0, q.width, q.height);
9072
+ ue.width = I.width, ue.height = I.height, ue.getContext("2d").putImageData(I, 0, 0), S.drawImage(ae, 0, 0, V.width, V.height, 0, 0, v.width, v.height), y.drawImage(ue, 0, 0, I.width, I.height, 0, 0, R.width, R.height);
9009
9073
  }
9010
9074
  };
9011
9075
  let G = !1, B = parseInt(u.value, 10);
@@ -9028,14 +9092,14 @@ class ks {
9028
9092
  }, _ = (N) => {
9029
9093
  G = !0, P(N);
9030
9094
  }, L = () => {
9031
- G = !1, S.beginPath(), this.empty = !1, b(q);
9095
+ G = !1, S.beginPath(), this.empty = !1, b(R);
9032
9096
  }, P = (N) => {
9033
9097
  if (!G) return;
9034
9098
  const {
9035
9099
  x: J,
9036
9100
  y: Q
9037
- } = M(N), ne = q.width / v.width, re = q.height / v.height, ae = J * ne, de = Q * re;
9038
- S.fillStyle = "rgb(255, 255, 255)", S.beginPath(), S.arc(J, Q, B / 2, 0, Math.PI * 2), S.fill(), y.fillStyle = "rgb(255, 255, 255)", y.beginPath(), y.arc(ae, de, B / 2 * ne, 0, Math.PI * 2), y.fill();
9101
+ } = M(N), se = R.width / v.width, re = R.height / v.height, ae = J * se, de = Q * re;
9102
+ S.fillStyle = "rgb(255, 255, 255)", S.beginPath(), S.arc(J, Q, B / 2, 0, Math.PI * 2), S.fill(), y.fillStyle = "rgb(255, 255, 255)", y.beginPath(), y.arc(ae, de, B / 2 * se, 0, Math.PI * 2), y.fill();
9039
9103
  };
9040
9104
  v.addEventListener("mousedown", _), v.addEventListener("mouseup", L), v.addEventListener("mousemove", P), v.addEventListener("touchstart", (N) => {
9041
9105
  _(N), N.preventDefault();
@@ -9048,10 +9112,10 @@ class ks {
9048
9112
  }, {
9049
9113
  passive: !1
9050
9114
  }), o.addEventListener("click", (N) => {
9051
- N.preventDefault(), g(), S.clearRect(0, 0, v.width, v.height), y.clearRect(0, 0, q.width, q.height), this.empty = !0, T.value = "", b(q);
9052
- }), window.addEventListener("resize", Y);
9115
+ N.preventDefault(), g(), S.clearRect(0, 0, v.width, v.height), y.clearRect(0, 0, R.width, R.height), this.empty = !0, E.value = "", b(R);
9116
+ }), window.addEventListener("resize", F);
9053
9117
  const W = (N) => {
9054
- N ? (e.setAttribute("aria-modal", "true"), e.setAttribute("role", "dialog"), e.classList.add("fullscreen"), i.style.display = "block", s.style.display = "flex", h.style.display = "none") : (e.removeAttribute("aria-modal"), e.removeAttribute("role"), e.classList.remove("fullscreen"), i.style.display = "none", s.style.display = "none", h.style.display = ""), Y();
9118
+ N ? (e.setAttribute("aria-modal", "true"), e.setAttribute("role", "dialog"), e.classList.add("fullscreen"), i.style.display = "block", s.style.display = "flex", h.style.display = "none") : (e.removeAttribute("aria-modal"), e.removeAttribute("role"), e.classList.remove("fullscreen"), i.style.display = "none", s.style.display = "none", h.style.display = ""), F();
9055
9119
  };
9056
9120
  h.addEventListener("click", (N) => {
9057
9121
  N.preventDefault(), W(!0);
@@ -9062,7 +9126,7 @@ class ks {
9062
9126
  });
9063
9127
  }
9064
9128
  }
9065
- class _s {
9129
+ class Sn {
9066
9130
  constructor(e, i = {}) {
9067
9131
  const s = {
9068
9132
  lang: [],
@@ -9209,9 +9273,9 @@ class _s {
9209
9273
  t && t.call(this, n);
9210
9274
  }, !e)
9211
9275
  throw new Error("A valid DOM element is required.");
9212
- e.classList.add("formview-container"), e.classList.add("fb-ui"), this.element = e, this.media = new ws({
9276
+ e.classList.add("formview-container"), e.classList.add("fb-ui"), this.element = e, this.media = new xn({
9213
9277
  lang: this.settings.lang
9214
- }, this), this.upload = new xs({
9278
+ }, this), this.upload = new kn({
9215
9279
  lang: this.settings.lang
9216
9280
  }, this);
9217
9281
  }
@@ -9243,10 +9307,10 @@ class _s {
9243
9307
  fal: f,
9244
9308
  replicate: v,
9245
9309
  web: S,
9246
- openai: q,
9310
+ openai: R,
9247
9311
  google: y
9248
9312
  } = this.settings.templatesConfig;
9249
- return !S && h.includes("web") || !y && h.includes("google") || !q && h.includes("openai") ? !1 : !f && !v ? !(h.includes("fal") || h.includes("replicate")) : !f && h.includes("fal") ? h.includes("replicate") : !v && h.includes("replicate") ? h.includes("fal") : !0;
9313
+ return !S && h.includes("web") || !y && h.includes("google") || !R && h.includes("openai") ? !1 : !f && !v ? !(h.includes("fal") || h.includes("replicate")) : !f && h.includes("fal") ? h.includes("replicate") : !v && h.includes("replicate") ? h.includes("fal") : !0;
9250
9314
  });
9251
9315
  const r = this.settings.templateFilters, a = {
9252
9316
  all: {
@@ -9432,8 +9496,8 @@ class _s {
9432
9496
  v && v.remove(), f.querySelectorAll(".link-view, .link-download").forEach((y) => {
9433
9497
  y.remove();
9434
9498
  }), f.style.position = "fixed", f.style.left = "-9999px", document.body.appendChild(f);
9435
- const q = f.innerText.trim();
9436
- document.body.removeChild(f), navigator.clipboard.writeText(q), d.innerHTML = `
9499
+ const R = f.innerText.trim();
9500
+ document.body.removeChild(f), navigator.clipboard.writeText(R), d.innerHTML = `
9437
9501
  <svg 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">
9438
9502
  <path stroke="none" d="M0 0h24v24H0z" fill="none"/><path stroke="none" d="M0 0h24v24H0z" /><path d="M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z" /><path d="M4.012 16.737a2 2 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1" /><path d="M11 14l2 2l4 -4" />
9439
9503
  </svg>
@@ -9571,8 +9635,8 @@ class _s {
9571
9635
  } else if (o.tag === "audio") {
9572
9636
  const y = document.createElement("audio");
9573
9637
  y.controls = !0;
9574
- let T = document.createElement("source");
9575
- T.src = o.url, T.type = "audio/mp3", y.appendChild(T), o.displayInOutput || r.appendChild(y);
9638
+ let E = document.createElement("source");
9639
+ E.src = o.url, E.type = "audio/mp3", y.appendChild(E), o.displayInOutput || r.appendChild(y);
9576
9640
  } else if (o.tag === "img") {
9577
9641
  const y = document.createElement("img");
9578
9642
  y.src = o.url, y.setAttribute("alt", this.out("Output Image")), o.displayInOutput || r.appendChild(y);
@@ -9587,15 +9651,15 @@ class _s {
9587
9651
  if (o.type === "video") {
9588
9652
  const y = document.createElement("video");
9589
9653
  y.style.width = "100%", y.style.height = "auto", y.controls = !0;
9590
- let T = document.createElement("source");
9591
- T.src = o.url, T.type = "video/mp4", y.appendChild(T), o.displayInOutput || r.appendChild(y);
9654
+ let E = document.createElement("source");
9655
+ E.src = o.url, E.type = "video/mp4", y.appendChild(E), o.displayInOutput || r.appendChild(y);
9592
9656
  return;
9593
9657
  }
9594
9658
  if (o.type === "audio") {
9595
9659
  const y = document.createElement("audio");
9596
9660
  y.controls = !0;
9597
- let T = document.createElement("source");
9598
- T.src = o.url, T.type = "audio/mp3", y.appendChild(T), o.displayInOutput || r.appendChild(y);
9661
+ let E = document.createElement("source");
9662
+ E.src = o.url, E.type = "audio/mp3", y.appendChild(E), o.displayInOutput || r.appendChild(y);
9599
9663
  return;
9600
9664
  }
9601
9665
  const f = document.createElement("div");
@@ -9604,8 +9668,8 @@ class _s {
9604
9668
  let S = o.name;
9605
9669
  if (r.querySelector(`[name="${S}"]`) && (a++, S = S + "_" + a), v === "short-text") {
9606
9670
  let y = this.getId();
9607
- const T = document.createElement("label");
9608
- if (T.setAttribute("for", `short_text_label_${y}`), T.className = "field-label", T.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(T), o.fieldNote) {
9671
+ const E = document.createElement("label");
9672
+ if (E.setAttribute("for", `short_text_label_${y}`), E.className = "field-label", E.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(E), o.fieldNote) {
9609
9673
  const k = document.createElement("div");
9610
9674
  k.className = "field-note", k.innerHTML = o.fieldNote, f.appendChild(k);
9611
9675
  }
@@ -9614,8 +9678,8 @@ class _s {
9614
9678
  }
9615
9679
  if (v === "long-text") {
9616
9680
  let y = this.getId();
9617
- const T = document.createElement("label");
9618
- if (T.setAttribute("for", `long_text_label_${y}`), T.className = "field-label", T.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(T), o.fieldNote) {
9681
+ const E = document.createElement("label");
9682
+ if (E.setAttribute("for", `long_text_label_${y}`), E.className = "field-label", E.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(E), o.fieldNote) {
9619
9683
  const k = document.createElement("div");
9620
9684
  k.className = "field-note", k.innerHTML = o.fieldNote, f.appendChild(k);
9621
9685
  }
@@ -9624,8 +9688,8 @@ class _s {
9624
9688
  }
9625
9689
  if (v === "number") {
9626
9690
  let y = this.getId();
9627
- const T = document.createElement("label");
9628
- if (T.setAttribute("for", `number_label_${y}`), T.className = "field-label", T.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(T), o.fieldNote) {
9691
+ const E = document.createElement("label");
9692
+ if (E.setAttribute("for", `number_label_${y}`), E.className = "field-label", E.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(E), o.fieldNote) {
9629
9693
  const k = document.createElement("div");
9630
9694
  k.className = "field-note", k.innerHTML = o.fieldNote, f.appendChild(k);
9631
9695
  }
@@ -9635,8 +9699,8 @@ class _s {
9635
9699
  if (v === "slider") {
9636
9700
  f.classList.add("input-slider");
9637
9701
  let y = this.getId();
9638
- const T = document.createElement("label");
9639
- if (T.setAttribute("for", `number_label_${y}`), T.className = "field-label", T.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(T), o.fieldNote) {
9702
+ const E = document.createElement("label");
9703
+ if (E.setAttribute("for", `number_label_${y}`), E.className = "field-label", E.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(E), o.fieldNote) {
9640
9704
  const V = document.createElement("div");
9641
9705
  V.className = "field-note", V.innerHTML = o.fieldNote, f.appendChild(V);
9642
9706
  }
@@ -9650,15 +9714,15 @@ class _s {
9650
9714
  k.appendChild(g), g.innerText = o.maxValue;
9651
9715
  const w = document.createElement("input");
9652
9716
  w.id = `number_label_${y}`, w.type = "range", w.name = S, w.setAttribute("min", o.minValue), w.setAttribute("max", o.maxValue), w.setAttribute("step", o.step), w.setAttribute("value", o.value || 0), b.appendChild(w);
9653
- const R = document.createElement("div");
9654
- R.className = "current-value", b.appendChild(R), b.querySelector(".current-value").textContent = o.value || 0, w.addEventListener("input", () => {
9717
+ const q = document.createElement("div");
9718
+ q.className = "current-value", b.appendChild(q), b.querySelector(".current-value").textContent = o.value || 0, w.addEventListener("input", () => {
9655
9719
  b.querySelector(".current-value").textContent = w.value;
9656
9720
  });
9657
9721
  }
9658
9722
  if (v === "select") {
9659
9723
  let y = this.getId();
9660
- const T = document.createElement("div");
9661
- if (T.id = `radio_group_label_${y}`, T.className = "field-label-normal", T.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(T), o.fieldNote) {
9724
+ const E = document.createElement("div");
9725
+ if (E.id = `radio_group_label_${y}`, E.className = "field-label-normal", E.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(E), o.fieldNote) {
9662
9726
  const k = document.createElement("div");
9663
9727
  k.className = "field-note", k.innerHTML = o.fieldNote, f.appendChild(k);
9664
9728
  }
@@ -9668,14 +9732,14 @@ class _s {
9668
9732
  o.choicesText && (g = o.choicesText[C] || k);
9669
9733
  const w = document.createElement("label");
9670
9734
  w.setAttribute("for", `${y}_${C}`), w.className = "option-label", b.appendChild(w);
9671
- const R = document.createElement("input");
9672
- R.type = "radio", R.className = "peer", R.id = `${y}_${C}`, R.name = S, R.value = k, w.appendChild(R), C === o.selected && (R.checked = !0);
9735
+ const q = document.createElement("input");
9736
+ q.type = "radio", q.className = "peer", q.id = `${y}_${C}`, q.name = S, q.value = k, w.appendChild(q), C === o.selected && (q.checked = !0);
9673
9737
  const V = document.createElement("span");
9674
9738
  V.className = "peer-span-rounded", w.appendChild(V);
9675
9739
  const I = '<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>';
9676
- V.innerHTML = I, C === 0 && o.isRequired && R.setAttribute("required", "required");
9677
- const Y = document.createElement("span");
9678
- Y.innerText = g, w.appendChild(Y), R.addEventListener("change", this.changeListener);
9740
+ V.innerHTML = I, C === 0 && o.isRequired && q.setAttribute("required", "required");
9741
+ const F = document.createElement("span");
9742
+ F.innerText = g, w.appendChild(F), q.addEventListener("change", this.changeListener);
9679
9743
  }), o.showOtherItem) {
9680
9744
  const k = document.createElement("label");
9681
9745
  k.setAttribute("for", y + "_other"), k.className = "option-label", b.appendChild(k);
@@ -9685,8 +9749,8 @@ class _s {
9685
9749
  g.className = "peer-span-rounded", k.appendChild(g);
9686
9750
  const w = '<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>';
9687
9751
  g.innerHTML = w;
9688
- const R = document.createElement("span");
9689
- R.innerText = o.otherText, k.appendChild(R);
9752
+ const q = document.createElement("span");
9753
+ q.innerText = o.otherText, k.appendChild(q);
9690
9754
  const V = document.createElement("div");
9691
9755
  f.appendChild(V);
9692
9756
  const I = document.createElement("input");
@@ -9695,8 +9759,8 @@ class _s {
9695
9759
  }
9696
9760
  if (v === "multi-select") {
9697
9761
  let y = this.getId();
9698
- const T = document.createElement("div");
9699
- if (T.id = `checkbox_group_label_${y}`, T.className = "field-label-normal", T.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(T), o.fieldNote) {
9762
+ const E = document.createElement("div");
9763
+ if (E.id = `checkbox_group_label_${y}`, E.className = "field-label-normal", E.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(E), o.fieldNote) {
9700
9764
  const k = document.createElement("div");
9701
9765
  k.className = "field-note", k.innerHTML = o.fieldNote, f.appendChild(k);
9702
9766
  }
@@ -9706,16 +9770,16 @@ class _s {
9706
9770
  o.choicesText && (g = o.choicesText[C] || k);
9707
9771
  const w = document.createElement("label");
9708
9772
  w.setAttribute("for", `${y}_${C}`), w.className = "option-label", b.appendChild(w);
9709
- const R = document.createElement("input");
9710
- R.type = "checkbox", R.className = "peer", R.id = `${y}_${C}`, R.name = S + "[]", R.value = k, w.appendChild(R);
9773
+ const q = document.createElement("input");
9774
+ q.type = "checkbox", q.className = "peer", q.id = `${y}_${C}`, q.name = S + "[]", q.value = k, w.appendChild(q);
9711
9775
  const V = document.createElement("span");
9712
9776
  V.className = "peer-span-square", w.appendChild(V);
9713
9777
  const I = `<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">
9714
9778
  <path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M5 12l5 5l10 -10" />
9715
9779
  </svg>`;
9716
9780
  V.innerHTML = I;
9717
- const Y = document.createElement("span");
9718
- Y.innerText = g, w.appendChild(Y), R.addEventListener("change", this.changeListener);
9781
+ const F = document.createElement("span");
9782
+ F.innerText = g, w.appendChild(F), q.addEventListener("change", this.changeListener);
9719
9783
  }), o.showOtherItem) {
9720
9784
  const k = document.createElement("label");
9721
9785
  k.setAttribute("for", y + "_other"), k.className = "option-label", b.appendChild(k);
@@ -9727,8 +9791,8 @@ class _s {
9727
9791
  <path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M5 12l5 5l10 -10" />
9728
9792
  </svg>`;
9729
9793
  g.innerHTML = w;
9730
- const R = document.createElement("span");
9731
- R.innerText = o.otherText, k.appendChild(R);
9794
+ const q = document.createElement("span");
9795
+ q.innerText = o.otherText, k.appendChild(q);
9732
9796
  const V = document.createElement("div");
9733
9797
  f.appendChild(V);
9734
9798
  const I = document.createElement("input");
@@ -9737,8 +9801,8 @@ class _s {
9737
9801
  }
9738
9802
  if (v === "switch") {
9739
9803
  let y = this.getId();
9740
- const T = document.createElement("label");
9741
- if (T.className = "field-label", T.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), T.id = `switch_${y}`, f.appendChild(T), o.fieldNote) {
9804
+ const E = document.createElement("label");
9805
+ if (E.className = "field-label", E.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), E.id = `switch_${y}`, f.appendChild(E), o.fieldNote) {
9742
9806
  const w = document.createElement("div");
9743
9807
  w.className = "field-note", w.innerHTML = o.fieldNote, f.appendChild(w);
9744
9808
  }
@@ -9747,14 +9811,14 @@ class _s {
9747
9811
  const k = document.createElement("div");
9748
9812
  k.className = "switch-thumb", b.appendChild(k);
9749
9813
  const C = document.createElement("input");
9750
- C.id = `switch_${y}`, C.type = "text", C.name = S, C.style.cssText = "opacity:0.01;width:1px;height:1px;position:absolute;bottom:0px;left:25px;", C.setAttribute("tabindex", "-1"), o.isRequired && (C.setAttribute("required", "required"), C.setCustomValidity(this.out("Please toggle this switch to proceed."))), b.appendChild(C), o.value === "true" ? (b.setAttribute("aria-checked", "true"), b.setAttribute("data-checked", "true"), C.value = "true", o.isRequired && C.setCustomValidity("")) : (b.setAttribute("aria-checked", "false"), b.setAttribute("data-checked", "false"), C.value = "false", o.isRequired && C.setCustomValidity(this.out("Please toggle this switch to proceed."))), T.addEventListener("click", () => {
9814
+ C.id = `switch_${y}`, C.type = "text", C.name = S, C.style.cssText = "opacity:0.01;width:1px;height:1px;position:absolute;bottom:0px;left:25px;", C.setAttribute("tabindex", "-1"), o.isRequired && (C.setAttribute("required", "required"), C.setCustomValidity(this.out("Please toggle this switch to proceed."))), b.appendChild(C), o.value === "true" ? (b.setAttribute("aria-checked", "true"), b.setAttribute("data-checked", "true"), C.value = "true", o.isRequired && C.setCustomValidity("")) : (b.setAttribute("aria-checked", "false"), b.setAttribute("data-checked", "false"), C.value = "false", o.isRequired && C.setCustomValidity(this.out("Please toggle this switch to proceed."))), E.addEventListener("click", () => {
9751
9815
  b.focus();
9752
9816
  });
9753
9817
  const g = () => {
9754
9818
  const w = b.getAttribute("aria-checked") === "true";
9755
9819
  b.setAttribute("aria-checked", !w), b.setAttribute("data-checked", !w), w ? (C.value = "false", o.isRequired && C.setCustomValidity(this.out("Please toggle this switch to proceed."))) : (C.value = "true", o.isRequired && C.setCustomValidity(""));
9756
- const R = this.getFormValues();
9757
- this.settings.onInputChange && this.settings.onInputChange(R);
9820
+ const q = this.getFormValues();
9821
+ this.settings.onInputChange && this.settings.onInputChange(q);
9758
9822
  };
9759
9823
  b.addEventListener("keydown", (w) => {
9760
9824
  (w.key === " " || w.key === "Enter") && (w.preventDefault(), g());
@@ -9764,10 +9828,10 @@ class _s {
9764
9828
  }
9765
9829
  if (v === "dropdown") {
9766
9830
  let y = this.getId();
9767
- const T = document.createElement("label");
9768
- if (T.setAttribute("for", `dropdown_${y}`), T.className = "field-label", T.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(T), o.fieldNote) {
9769
- const Y = document.createElement("div");
9770
- Y.className = "field-note", Y.innerHTML = o.fieldNote, f.appendChild(Y);
9831
+ const E = document.createElement("label");
9832
+ if (E.setAttribute("for", `dropdown_${y}`), E.className = "field-label", E.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(E), o.fieldNote) {
9833
+ const F = document.createElement("div");
9834
+ F.className = "field-note", F.innerHTML = o.fieldNote, f.appendChild(F);
9771
9835
  }
9772
9836
  const b = document.createElement("div");
9773
9837
  b.className = "relative", f.appendChild(b);
@@ -9776,14 +9840,14 @@ class _s {
9776
9840
  const C = document.createElement("select");
9777
9841
  C.id = `dropdown_${y}`, C.name = S, o.isRequired && C.setAttribute("required", "required"), k.appendChild(C);
9778
9842
  const g = document.createElement("option");
9779
- if (g.setAttribute("selected", "selected"), g.setAttribute("disabled", "disabled"), g.value = "", g.innerText = o.placeholder, C.appendChild(g), o.choices && o.choices.forEach((Y, G) => {
9780
- let B = Y;
9781
- o.choicesText && (B = o.choicesText[G] || Y);
9843
+ if (g.setAttribute("selected", "selected"), g.setAttribute("disabled", "disabled"), g.value = "", g.innerText = o.placeholder, C.appendChild(g), o.choices && o.choices.forEach((F, G) => {
9844
+ let B = F;
9845
+ o.choicesText && (B = o.choicesText[G] || F);
9782
9846
  const M = document.createElement("option");
9783
- M.value = Y, M.innerText = B, C.appendChild(M), G === o.selected && (g.remove(), M.setAttribute("selected", "selected"));
9847
+ M.value = F, M.innerText = B, C.appendChild(M), G === o.selected && (g.remove(), M.setAttribute("selected", "selected"));
9784
9848
  }), o.showOtherItem) {
9785
- const Y = document.createElement("option");
9786
- Y.value = "other", Y.innerText = o.otherText, C.appendChild(Y);
9849
+ const F = document.createElement("option");
9850
+ F.value = "other", F.innerText = o.otherText, C.appendChild(F);
9787
9851
  }
9788
9852
  const w = document.createElement("div");
9789
9853
  w.className = "select-arrow", k.appendChild(w), this.appendHtml(w, `
@@ -9791,19 +9855,19 @@ class _s {
9791
9855
  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
9792
9856
  </svg>
9793
9857
  `);
9794
- const R = document.createElement("input");
9795
- R.type = "text", R.id = `input_other_${y}`, R.name = S + "_other", R.className = "input-other hidden inp-base", f.appendChild(R);
9858
+ const q = document.createElement("input");
9859
+ q.type = "text", q.id = `input_other_${y}`, q.name = S + "_other", q.className = "input-other hidden inp-base", f.appendChild(q);
9796
9860
  const V = f.querySelector(`#dropdown_${y}`), I = f.querySelector(`#input_other_${y}`);
9797
9861
  V.addEventListener("change", () => {
9798
9862
  V.value === "other" ? (I.classList.remove("hidden"), I.focus()) : I.classList.add("hidden");
9799
- const Y = this.getFormValues();
9800
- this.settings.onInputChange && this.settings.onInputChange(Y);
9801
- }), R.addEventListener("input", this.inputListener);
9863
+ const F = this.getFormValues();
9864
+ this.settings.onInputChange && this.settings.onInputChange(F);
9865
+ }), q.addEventListener("input", this.inputListener);
9802
9866
  }
9803
9867
  if (v === "date") {
9804
9868
  let y = this.getId();
9805
- const T = document.createElement("label");
9806
- if (T.setAttribute("for", `date_${y}`), T.className = "field-label", T.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(T), o.fieldNote) {
9869
+ const E = document.createElement("label");
9870
+ if (E.setAttribute("for", `date_${y}`), E.className = "field-label", E.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(E), o.fieldNote) {
9807
9871
  const k = document.createElement("div");
9808
9872
  k.className = "field-note", k.innerHTML = o.fieldNote, f.appendChild(k);
9809
9873
  }
@@ -9812,8 +9876,8 @@ class _s {
9812
9876
  }
9813
9877
  if (v === "time") {
9814
9878
  let y = this.getId();
9815
- const T = document.createElement("label");
9816
- if (T.setAttribute("for", `time_${y}`), T.className = "field-label", T.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(T), o.fieldNote) {
9879
+ const E = document.createElement("label");
9880
+ if (E.setAttribute("for", `time_${y}`), E.className = "field-label", E.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(E), o.fieldNote) {
9817
9881
  const k = document.createElement("div");
9818
9882
  k.className = "field-note", k.innerHTML = o.fieldNote, f.appendChild(k);
9819
9883
  }
@@ -9822,8 +9886,8 @@ class _s {
9822
9886
  }
9823
9887
  if (v === "datetime") {
9824
9888
  let y = this.getId();
9825
- const T = document.createElement("label");
9826
- if (T.setAttribute("for", `datetime_${y}`), T.className = "field-label", T.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(T), o.fieldNote) {
9889
+ const E = document.createElement("label");
9890
+ if (E.setAttribute("for", `datetime_${y}`), E.className = "field-label", E.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(E), o.fieldNote) {
9827
9891
  const k = document.createElement("div");
9828
9892
  k.className = "field-note", k.innerHTML = o.fieldNote, f.appendChild(k);
9829
9893
  }
@@ -9832,8 +9896,8 @@ class _s {
9832
9896
  }
9833
9897
  if (v === "color") {
9834
9898
  let y = this.getId();
9835
- const T = document.createElement("label");
9836
- if (T.setAttribute("for", `color_${y}`), T.className = "field-label", T.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(T), o.fieldNote) {
9899
+ const E = document.createElement("label");
9900
+ if (E.setAttribute("for", `color_${y}`), E.className = "field-label", E.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(E), o.fieldNote) {
9837
9901
  const k = document.createElement("div");
9838
9902
  k.className = "field-note", k.innerHTML = o.fieldNote, f.appendChild(k);
9839
9903
  }
@@ -9842,8 +9906,8 @@ class _s {
9842
9906
  }
9843
9907
  if (v === "file" || v === "multifile") {
9844
9908
  let y = this.getId();
9845
- const T = document.createElement("label");
9846
- if (T.setAttribute("for", `file_${y}`), T.className = "field-label", T.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(T), o.fieldNote) {
9909
+ const E = document.createElement("label");
9910
+ if (E.setAttribute("for", `file_${y}`), E.className = "field-label", E.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(E), o.fieldNote) {
9847
9911
  const X = document.createElement("div");
9848
9912
  X.className = "field-note", X.innerHTML = o.fieldNote, f.appendChild(X);
9849
9913
  }
@@ -9852,7 +9916,7 @@ class _s {
9852
9916
  const k = document.createElement("input");
9853
9917
  k.id = `input_url_label_${y}`, k.type = "text", k.name = S + "__url", k.value = o.value || "", k.className = "inp-base input-file-url", k.placeholder = o.placeholder || this.out("Enter URL."), f.appendChild(k), k.addEventListener("input", () => {
9854
9918
  const X = f.querySelector(".btn-clearfile");
9855
- X && X.click(), this.inputListener(), k.value !== "" ? o.isRequired && C.removeAttribute("required") : o.isRequired && C.setAttribute("required", "required"), Re(k.value), this.clearSelectedFiles();
9919
+ X && X.click(), this.inputListener(), k.value !== "" ? o.isRequired && C.removeAttribute("required") : o.isRequired && C.setAttribute("required", "required"), qe(k.value), this.clearSelectedFiles();
9856
9920
  }), o.useURL ? k.style.display = "" : k.style.display = "none";
9857
9921
  const C = document.createElement("input");
9858
9922
  C.id = `file_${y}`, C.type = "file", v === "multifile" && (C.multiple = !0), C.name = S, o.isRequired && C.setAttribute("required", "required"), C.className = "peer", b.appendChild(C);
@@ -9860,8 +9924,8 @@ class _s {
9860
9924
  g.className = "file-drop-area", b.appendChild(g);
9861
9925
  const w = document.createElement("div");
9862
9926
  w.className = "file-controls", w.id = `drag_message_${y}`, b.appendChild(w);
9863
- let R;
9864
- (!o.source || o.source && o.source === "local" || o.source && o.source === "local_and_camera") && (R = document.createElement("div"), R.className = "file-drop-info", v === "file" && (R.innerHTML = this.out(this.settings.fileUploadText)), v === "multifile" && (R.innerHTML = this.out(this.settings.multiFileUploadText)), w.appendChild(R));
9927
+ let q;
9928
+ (!o.source || o.source && o.source === "local" || o.source && o.source === "local_and_camera") && (q = document.createElement("div"), q.className = "file-drop-info", v === "file" && (q.innerHTML = this.out(this.settings.fileUploadText)), v === "multifile" && (q.innerHTML = this.out(this.settings.multiFileUploadText)), w.appendChild(q));
9865
9929
  let V;
9866
9930
  (!o.source || o.source && o.source === "local" || o.source && o.source === "local_and_camera") && (V = document.createElement("button"), V.className = "btn-selectfile", V.innerHTML = `
9867
9931
  <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"/>
@@ -9876,8 +9940,8 @@ class _s {
9876
9940
  </svg>
9877
9941
  ${this.out("Take Photo")}
9878
9942
  `, w.appendChild(I));
9879
- const Y = document.createElement("div");
9880
- Y.className = "file-preview-container", b.appendChild(Y);
9943
+ const F = document.createElement("div");
9944
+ F.className = "file-preview-container", b.appendChild(F);
9881
9945
  const G = document.createElement("div");
9882
9946
  G.className = "file-drop-info-highlight", G.id = `file_name_${y}`, b.appendChild(G), V && V.addEventListener("click", (X) => {
9883
9947
  X.preventDefault(), C.click();
@@ -9889,11 +9953,11 @@ class _s {
9889
9953
  if (X.preventDefault(), X.dataTransfer.files && X.dataTransfer.files.length > 0) {
9890
9954
  b.classList.remove("drag-over");
9891
9955
  const ie = X.dataTransfer.files[0];
9892
- ie && (C.files = X.dataTransfer.files, Ee(ie), this.clearSelectedFiles());
9956
+ ie && (C.files = X.dataTransfer.files, Te(ie), this.clearSelectedFiles());
9893
9957
  }
9894
9958
  }) : v === "multifile" && b.addEventListener("drop", (X) => {
9895
9959
  if (X.preventDefault(), X.dataTransfer.files && X.dataTransfer.files.length > 0) {
9896
- b.classList.remove("drag-over"), Y.innerHTML = "";
9960
+ b.classList.remove("drag-over"), F.innerHTML = "";
9897
9961
  const ie = X.dataTransfer.files;
9898
9962
  ie.length > 0 && (C.files = ie, Array.from(ie).forEach((ge) => {
9899
9963
  be(ge);
@@ -9901,9 +9965,9 @@ class _s {
9901
9965
  }
9902
9966
  })), v === "file" ? C.addEventListener("change", () => {
9903
9967
  const X = C.files[0];
9904
- X && (Ee(X), this.clearSelectedFiles());
9968
+ X && (Te(X), this.clearSelectedFiles());
9905
9969
  }) : v === "multifile" && C.addEventListener("change", () => {
9906
- Y.innerHTML = "";
9970
+ F.innerHTML = "";
9907
9971
  const X = C.files;
9908
9972
  Array.from(X).forEach((ie) => {
9909
9973
  ie && (be(ie), this.clearSelectedFiles());
@@ -10002,7 +10066,7 @@ class _s {
10002
10066
  if (o.useImageMask) {
10003
10067
  f.classList.add("image-mask");
10004
10068
  const X = document.createElement("div");
10005
- f.appendChild(X), P = new ks(X, {
10069
+ f.appendChild(X), P = new _n(X, {
10006
10070
  lang: this.settings.lang,
10007
10071
  name: S + "_mask"
10008
10072
  }), this.objImageMask = P;
@@ -10046,10 +10110,10 @@ class _s {
10046
10110
  </div>
10047
10111
  `;
10048
10112
  this.appendHtml(b, N);
10049
- const J = f.querySelector(".livevideo"), Q = f.querySelector(".photo-captured"), ne = f.querySelector(".btn-selectfile2"), re = f.querySelector(".btn-takephoto2"), ae = f.querySelector(".btn-capturephoto"), de = f.querySelector(".btn-clearphoto"), ue = f.querySelector(".btn-stopcamera");
10113
+ const J = f.querySelector(".livevideo"), Q = f.querySelector(".photo-captured"), se = f.querySelector(".btn-selectfile2"), re = f.querySelector(".btn-takephoto2"), ae = f.querySelector(".btn-capturephoto"), de = f.querySelector(".btn-clearphoto"), ue = f.querySelector(".btn-stopcamera");
10050
10114
  this.photoBlob = {};
10051
10115
  let Se;
10052
- ne && ne.addEventListener("click", (X) => {
10116
+ se && se.addEventListener("click", (X) => {
10053
10117
  X.preventDefault(), V.click();
10054
10118
  });
10055
10119
  const je = async () => {
@@ -10063,7 +10127,7 @@ class _s {
10063
10127
  alert("Unable to access the camera."), J.style.display = "none", ae.style.display = "none", ue.style.display = "none", w.style.display = "none", G.style.display = "none";
10064
10128
  }
10065
10129
  setTimeout(() => {
10066
- re.style.display = "none", Q.style.display = "none", J.style.display = "", ae.style.display = "", de.style.display = "none", ne && (ne.style.display = "none"), re.style.display = "none", ue.style.display = "", w.style.display = "none", G.style.display = "none";
10130
+ re.style.display = "none", Q.style.display = "none", J.style.display = "", ae.style.display = "", de.style.display = "none", se && (se.style.display = "none"), re.style.display = "none", ue.style.display = "", w.style.display = "none", G.style.display = "none";
10067
10131
  }, 100);
10068
10132
  };
10069
10133
  I && I.addEventListener("click", async (X) => {
@@ -10073,7 +10137,7 @@ class _s {
10073
10137
  }), ue.addEventListener("click", () => {
10074
10138
  Se && Se.getTracks().forEach((X) => X.stop()), J.style.display = "none", ae.style.display = "none", ue.style.display = "none", re.style.display = "none", w.style.display = "", G.style.display = "";
10075
10139
  }), ae.addEventListener("click", (X) => {
10076
- if (X.preventDefault(), Q.style.display = "", Q.width = J.videoWidth, Q.height = J.videoHeight, Q.getContext("2d").drawImage(J, 0, 0, Q.width, Q.height), Se.getTracks().forEach((ie) => ie.stop()), J.style.display = "none", ae.style.display = "none", de.style.display = "", ne && (ne.style.display = ""), re.style.display = "", ue.style.display = "none", Q.toBlob((ie) => {
10140
+ if (X.preventDefault(), Q.style.display = "", Q.width = J.videoWidth, Q.height = J.videoHeight, Q.getContext("2d").drawImage(J, 0, 0, Q.width, Q.height), Se.getTracks().forEach((ie) => ie.stop()), J.style.display = "none", ae.style.display = "none", de.style.display = "", se && (se.style.display = ""), re.style.display = "", ue.style.display = "none", Q.toBlob((ie) => {
10077
10141
  this.photoBlob[S] = ie, C.removeAttribute("required");
10078
10142
  }, "image/jpeg"), re.style.display = "", o.useImageMask) {
10079
10143
  const ie = Q.toDataURL("image/jpeg");
@@ -10082,16 +10146,16 @@ class _s {
10082
10146
  this.clearSelectedFiles();
10083
10147
  });
10084
10148
  const Ae = () => {
10085
- this.photoBlob[S] = null, Q.style.display = "none", Q.getContext("2d").clearRect(0, 0, Q.width, Q.height), k.value !== "" ? o.isRequired && C.removeAttribute("required") : o.isRequired && C.setAttribute("required", "required"), de.style.display = "none", ne && (ne.style.display = "none"), re.style.display = "none", w.style.display = "", G.style.display = "";
10149
+ this.photoBlob[S] = null, Q.style.display = "none", Q.getContext("2d").clearRect(0, 0, Q.width, Q.height), k.value !== "" ? o.isRequired && C.removeAttribute("required") : o.isRequired && C.setAttribute("required", "required"), de.style.display = "none", se && (se.style.display = "none"), re.style.display = "none", w.style.display = "", G.style.display = "";
10086
10150
  };
10087
10151
  de.addEventListener("click", () => {
10088
10152
  Ae();
10089
10153
  });
10090
- const Re = (X, ie) => {
10154
+ const qe = (X, ie) => {
10091
10155
  const ge = `.${X.split(".").pop().toLowerCase()}`;
10092
- if (!M.some((se) => se.extensions.split(", ").includes(ge)))
10156
+ if (!M.some((ne) => ne.extensions.split(", ").includes(ge)))
10093
10157
  return;
10094
- let Oe = B.images.some((se) => se.extensions.split(", ").includes(ge));
10158
+ let Oe = B.images.some((ne) => ne.extensions.split(", ").includes(ge));
10095
10159
  if (o.useImageMask) {
10096
10160
  if (!Oe)
10097
10161
  return;
@@ -10105,29 +10169,29 @@ class _s {
10105
10169
  <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">
10106
10170
  <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" />
10107
10171
  </svg>
10108
- `, G.appendChild(fe), fe.addEventListener("click", (se) => {
10172
+ `, G.appendChild(fe), fe.addEventListener("click", (ne) => {
10109
10173
  let l = fe.closest(".form-field").querySelector(".img-preview");
10110
- l && l.remove(), k.value = "", C.value = "", G.innerHTML = "", R.innerText = this.out(this.settings.fileUploadText), o.useImageMask && P.clearImage();
10174
+ l && l.remove(), k.value = "", C.value = "", G.innerHTML = "", q.innerText = this.out(this.settings.fileUploadText), o.useImageMask && P.clearImage();
10111
10175
  const p = document.querySelector(".formview-container .submit-container");
10112
10176
  p && setTimeout(() => {
10113
10177
  this.stickyElement(p);
10114
- }, 1e3), se.preventDefault(), se.stopImmediatePropagation();
10178
+ }, 1e3), ne.preventDefault(), ne.stopImmediatePropagation();
10115
10179
  }), Oe) {
10116
- let se = b.querySelector(".formview-container .img-preview");
10117
- se || (se = document.createElement("img"), se.className = "img-preview", b.appendChild(se)), se.src = X;
10180
+ let ne = b.querySelector(".formview-container .img-preview");
10181
+ ne || (ne = document.createElement("img"), ne.className = "img-preview", b.appendChild(ne)), ne.src = X;
10118
10182
  } else
10119
10183
  W();
10120
10184
  if (!ie) {
10121
- const se = this.getFormValues();
10122
- this.settings.onInputChange && this.settings.onInputChange(se);
10185
+ const ne = this.getFormValues();
10186
+ this.settings.onInputChange && this.settings.onInputChange(ne);
10123
10187
  }
10124
10188
  const he = document.querySelector(".formview-container .submit-container");
10125
10189
  he && setTimeout(() => {
10126
10190
  this.stickyElement(he);
10127
10191
  }, 1e3);
10128
10192
  };
10129
- o.value && Re(o.value, !0);
10130
- const Ee = (X) => {
10193
+ o.value && qe(o.value, !0);
10194
+ const Te = (X) => {
10131
10195
  if (X) {
10132
10196
  if (!M.some((fe) => fe.type === X.type)) {
10133
10197
  alert(this.out("Invalid file type."));
@@ -10149,8 +10213,8 @@ class _s {
10149
10213
  <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" />
10150
10214
  </svg>
10151
10215
  `, G.appendChild(ve), ve.addEventListener("click", (fe) => {
10152
- let se = ve.closest(".form-field").querySelector(".img-preview");
10153
- se && se.remove(), C.value = "", G.innerHTML = "", R.innerText = this.out(this.settings.fileUploadText), o.useImageMask && P.clearImage();
10216
+ let ne = ve.closest(".form-field").querySelector(".img-preview");
10217
+ ne && ne.remove(), C.value = "", G.innerHTML = "", q.innerText = this.out(this.settings.fileUploadText), o.useImageMask && P.clearImage();
10154
10218
  const Me = document.querySelector(".formview-container .submit-container");
10155
10219
  Me && setTimeout(() => {
10156
10220
  this.stickyElement(Me);
@@ -10158,8 +10222,8 @@ class _s {
10158
10222
  }), X.type.startsWith("image/")) {
10159
10223
  const fe = new FileReader();
10160
10224
  fe.onload = function(he) {
10161
- let se = b.querySelector(".formview-container .img-preview");
10162
- se || (se = document.createElement("img"), se.className = "img-preview", b.appendChild(se)), se.src = he.target.result;
10225
+ let ne = b.querySelector(".formview-container .img-preview");
10226
+ ne || (ne = document.createElement("img"), ne.className = "img-preview", b.appendChild(ne)), ne.src = he.target.result;
10163
10227
  }, fe.readAsDataURL(X);
10164
10228
  } else
10165
10229
  W();
@@ -10172,12 +10236,12 @@ class _s {
10172
10236
  }
10173
10237
  }, be = (X) => {
10174
10238
  if (X) {
10175
- if (M = M.concat(B.images), !M.some((se) => se.type === X.type)) {
10239
+ if (M = M.concat(B.images), !M.some((ne) => ne.type === X.type)) {
10176
10240
  alert(this.out("Invalid file type."));
10177
10241
  return;
10178
10242
  }
10179
10243
  const ge = document.createElement("div");
10180
- ge.className = "image-item", Y.appendChild(ge);
10244
+ ge.className = "image-item", F.appendChild(ge);
10181
10245
  const ve = document.createElement("div");
10182
10246
  ve.className = "file-drop-info-highlight", ge.appendChild(ve);
10183
10247
  const Oe = document.createElement("div");
@@ -10187,24 +10251,24 @@ class _s {
10187
10251
  <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
10188
10252
  <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" />
10189
10253
  </svg>
10190
- `, ve.appendChild(ye), ye.addEventListener("click", (se) => {
10254
+ `, ve.appendChild(ye), ye.addEventListener("click", (ne) => {
10191
10255
  const Me = ye.closest(".image-item");
10192
10256
  Me && Me.remove(), ((x) => {
10193
- const E = new DataTransfer(), O = C.files;
10257
+ const T = new DataTransfer(), O = C.files;
10194
10258
  Array.from(O).forEach((D) => {
10195
- D !== x && E.items.add(D);
10196
- }), C.files = E.files;
10259
+ D !== x && T.items.add(D);
10260
+ }), C.files = T.files;
10197
10261
  })(X);
10198
10262
  const p = document.querySelector(".formview-container .submit-container");
10199
10263
  p && setTimeout(() => {
10200
10264
  this.stickyElement(p);
10201
- }, 1e3), se.preventDefault(), se.stopImmediatePropagation();
10265
+ }, 1e3), ne.preventDefault(), ne.stopImmediatePropagation();
10202
10266
  }), X.type.startsWith("image/")) {
10203
- const se = new FileReader();
10204
- se.onload = function(Me) {
10267
+ const ne = new FileReader();
10268
+ ne.onload = function(Me) {
10205
10269
  let l = document.createElement("img");
10206
10270
  l.className = "img-preview", ge.appendChild(l), l.src = Me.target.result;
10207
- }, se.readAsDataURL(X);
10271
+ }, ne.readAsDataURL(X);
10208
10272
  }
10209
10273
  const fe = this.getFormValues();
10210
10274
  this.settings.onInputChange && this.settings.onInputChange(fe);
@@ -10217,8 +10281,8 @@ class _s {
10217
10281
  }
10218
10282
  if (v === "email") {
10219
10283
  let y = this.getId();
10220
- const T = document.createElement("label");
10221
- if (T.setAttribute("for", `email_label_${y}`), T.className = "field-label", T.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(T), o.fieldNote) {
10284
+ const E = document.createElement("label");
10285
+ if (E.setAttribute("for", `email_label_${y}`), E.className = "field-label", E.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(E), o.fieldNote) {
10222
10286
  const k = document.createElement("div");
10223
10287
  k.className = "field-note", k.innerHTML = o.fieldNote, f.appendChild(k);
10224
10288
  }
@@ -10227,8 +10291,8 @@ class _s {
10227
10291
  }
10228
10292
  if (v === "phone") {
10229
10293
  let y = this.getId();
10230
- const T = document.createElement("label");
10231
- if (T.setAttribute("for", `phone_label_${y}`), T.className = "field-label", T.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(T), o.fieldNote) {
10294
+ const E = document.createElement("label");
10295
+ if (E.setAttribute("for", `phone_label_${y}`), E.className = "field-label", E.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(E), o.fieldNote) {
10232
10296
  const k = document.createElement("div");
10233
10297
  k.className = "field-note", k.innerHTML = o.fieldNote, f.appendChild(k);
10234
10298
  }
@@ -10237,8 +10301,8 @@ class _s {
10237
10301
  }
10238
10302
  if (v === "url") {
10239
10303
  let y = this.getId();
10240
- const T = document.createElement("label");
10241
- if (T.setAttribute("for", `url_label_${y}`), T.className = "field-label", T.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(T), o.fieldNote) {
10304
+ const E = document.createElement("label");
10305
+ if (E.setAttribute("for", `url_label_${y}`), E.className = "field-label", E.innerHTML = o.title + (o.isRequired ? ' <span class="text-red-500">*</span>' : ""), f.appendChild(E), o.fieldNote) {
10242
10306
  const k = document.createElement("div");
10243
10307
  k.className = "field-note", k.innerHTML = o.fieldNote, f.appendChild(k);
10244
10308
  }
@@ -10247,8 +10311,8 @@ class _s {
10247
10311
  }
10248
10312
  if (v === "hidden") {
10249
10313
  let y = this.getId();
10250
- const T = document.createElement("label");
10251
- T.setAttribute("for", `hidden_label_${y}`), T.className = "field-label hidden", T.innerText = o.title, f.appendChild(T);
10314
+ const E = document.createElement("label");
10315
+ E.setAttribute("for", `hidden_label_${y}`), E.className = "field-label hidden", E.innerText = o.title, f.appendChild(E);
10252
10316
  const b = document.createElement("input");
10253
10317
  b.id = `hidden_label_${y}`, b.type = "hidden", b.name = S, b.value = o.value, f.appendChild(b);
10254
10318
  }
@@ -10263,68 +10327,68 @@ class _s {
10263
10327
  o.className = "submit-container", r.appendChild(o);
10264
10328
  let h = !0;
10265
10329
  if ("hideReset" in i && (h = i.hideReset), !h) {
10266
- const q = document.createElement("button");
10267
- q.className = "btn-resetform";
10330
+ const R = document.createElement("button");
10331
+ R.className = "btn-resetform";
10268
10332
  const y = i.resetText || this.settings.resetText;
10269
- q.innerText = y, o.appendChild(q), q.addEventListener("click", (b) => {
10333
+ R.innerText = y, o.appendChild(R), R.addEventListener("click", (b) => {
10270
10334
  b.preventDefault();
10271
- const k = q.closest("form");
10335
+ const k = R.closest("form");
10272
10336
  k && (k.reset(), k.querySelectorAll(".btn-clearfile").forEach((w) => {
10273
10337
  w.click();
10274
10338
  }), k.querySelectorAll(".slider-container").forEach((w) => {
10275
- const R = w.querySelector("input");
10276
- w.querySelector(".current-value").textContent = R.value;
10339
+ const q = w.querySelector("input");
10340
+ w.querySelector(".current-value").textContent = q.value;
10277
10341
  }));
10278
- }), (i.fullWidthButton || !1) && q.classList.add("w-full");
10342
+ }), (i.fullWidthButton || !1) && R.classList.add("w-full");
10279
10343
  }
10280
10344
  const f = document.createElement("button");
10281
10345
  f.className = "btn-submitform";
10282
10346
  const v = i.submitText || this.settings.submitText;
10283
- f.innerText = v, o.appendChild(f), (i.fullWidthButton || !1) && f.classList.add("w-full"), this.settings.alwaysVisibleSubmit && o.classList.add("always-visible"), this.stickyElement(o), r.addEventListener("submit", async (q) => {
10284
- q.preventDefault(), this.steps && this.steps.length > 0 && this.process();
10347
+ f.innerText = v, o.appendChild(f), (i.fullWidthButton || !1) && f.classList.add("w-full"), this.settings.alwaysVisibleSubmit && o.classList.add("always-visible"), this.stickyElement(o), r.addEventListener("submit", async (R) => {
10348
+ R.preventDefault(), this.steps && this.steps.length > 0 && this.process();
10285
10349
  });
10286
10350
  } else {
10287
10351
  let o = "Reference Code:", h = "reference_code", f = "reference_code";
10288
10352
  const v = document.createElement("div");
10289
10353
  v.className = "form-field ", v.classList.add(f), r.appendChild(v);
10290
10354
  let S = this.getId();
10291
- const q = document.createElement("label");
10292
- q.setAttribute("for", `short_text_label_${S}`), q.className = "field-label", q.innerHTML = o, v.appendChild(q);
10355
+ const R = document.createElement("label");
10356
+ R.setAttribute("for", `short_text_label_${S}`), R.className = "field-label", R.innerHTML = o, v.appendChild(R);
10293
10357
  const y = document.createElement("input");
10294
10358
  if (y.id = `short_text_label_${S}`, y.type = "text", y.name = h, y.autocomplete = "off", y.setAttribute("aria-hidden", "true"), y.setAttribute("tabindex", "-1"), y.className = "inp-base", v.appendChild(y), this.settings.captchaContainer) {
10295
- const T = this.settings.captchaContainerClassName, b = document.createElement("div");
10296
- b.className = "captcha-container", T && b.classList.add(T), r.appendChild(b);
10359
+ const E = this.settings.captchaContainerClassName, b = document.createElement("div");
10360
+ b.className = "captcha-container", E && b.classList.add(E), r.appendChild(b);
10297
10361
  }
10298
10362
  if (i.useSubmitButton) {
10299
- const T = document.createElement("div");
10300
- T.className = "submit-container", r.appendChild(T);
10363
+ const E = document.createElement("div");
10364
+ E.className = "submit-container", r.appendChild(E);
10301
10365
  let b = !0;
10302
10366
  if ("hideReset" in i && (b = i.hideReset), !b) {
10303
- const R = document.createElement("button");
10304
- R.className = "btn-resetform";
10367
+ const q = document.createElement("button");
10368
+ q.className = "btn-resetform";
10305
10369
  const V = i.resetText || this.settings.resetText;
10306
- R.innerText = V, T.appendChild(R), R.addEventListener("click", (Y) => {
10307
- Y.preventDefault();
10308
- const G = R.closest("form");
10370
+ q.innerText = V, E.appendChild(q), q.addEventListener("click", (F) => {
10371
+ F.preventDefault();
10372
+ const G = q.closest("form");
10309
10373
  G && (G.reset(), G.querySelectorAll(".btn-clearfile").forEach((_) => {
10310
10374
  _.click();
10311
10375
  }), G.querySelectorAll(".slider-container").forEach((_) => {
10312
10376
  const L = _.querySelector("input");
10313
10377
  _.querySelector(".current-value").textContent = L.value;
10314
10378
  }));
10315
- }), (i.fullWidthButton || !1) && R.classList.add("w-full");
10379
+ }), (i.fullWidthButton || !1) && q.classList.add("w-full");
10316
10380
  }
10317
10381
  const k = document.createElement("button");
10318
10382
  k.className = "btn-submitform";
10319
10383
  const C = i.submitText;
10320
- k.innerText = C, T.appendChild(k), (i.fullWidthButton || !1) && k.classList.add("w-full"), this.settings.alwaysVisibleSubmit && T.classList.add("always-visible"), this.stickyElement(T), k.addEventListener("click", async (R) => {
10321
- this.trigger("submit", R);
10384
+ k.innerText = C, E.appendChild(k), (i.fullWidthButton || !1) && k.classList.add("w-full"), this.settings.alwaysVisibleSubmit && E.classList.add("always-visible"), this.stickyElement(E), k.addEventListener("click", async (q) => {
10385
+ this.trigger("submit", q);
10322
10386
  });
10323
10387
  const w = r.closest("form");
10324
- w ? w.addEventListener("submit", async (R) => {
10325
- this.steps && this.steps.length > 0 && (R.preventDefault(), R.stopImmediatePropagation(), this.process());
10326
- }) : k.addEventListener("click", async (R) => {
10327
- this.steps && this.steps.length > 0 && (R.preventDefault(), this.process());
10388
+ w ? w.addEventListener("submit", async (q) => {
10389
+ this.steps && this.steps.length > 0 && (q.preventDefault(), q.stopImmediatePropagation(), this.process());
10390
+ }) : k.addEventListener("click", async (q) => {
10391
+ this.steps && this.steps.length > 0 && (q.preventDefault(), this.process());
10328
10392
  });
10329
10393
  }
10330
10394
  }
@@ -10621,16 +10685,16 @@ ${e}`);
10621
10685
  let d = await this.search(e);
10622
10686
  const o = this.settings.scrapeExclude;
10623
10687
  let h = d.filter((y) => {
10624
- let T = new URL(y.link).hostname;
10625
- return !o.some((b) => T.includes(b));
10688
+ let E = new URL(y.link).hostname;
10689
+ return !o.some((b) => E.includes(b));
10626
10690
  });
10627
10691
  const f = this.settings.scrapeLimit, v = h.slice(0, f);
10628
10692
  t.innerHTML = "", c = document.createElement("p"), c.innerHTML = this.out("Getting more information..."), t.appendChild(c);
10629
10693
  let S = [];
10630
10694
  for (let y = 0; y < v.length; y++)
10631
10695
  S.push(d[y].link);
10632
- let q = await this.scrapeUrls(S);
10633
- n += q.data, a = q.urls, u = q.failed;
10696
+ let R = await this.scrapeUrls(S);
10697
+ n += R.data, a = R.urls, u = R.failed;
10634
10698
  }
10635
10699
  return {
10636
10700
  data: n,
@@ -10776,11 +10840,11 @@ ${e}`);
10776
10840
  if (w.value instanceof FileList && w.value.length > 0) {
10777
10841
  const V = w.value[0];
10778
10842
  if (!V) continue;
10779
- const I = await new Promise((Y, G) => {
10843
+ const I = await new Promise((F, G) => {
10780
10844
  const B = new FileReader();
10781
10845
  B.onload = (M) => {
10782
10846
  const _ = M.target.result.split(",")[1];
10783
- Y(_);
10847
+ F(_);
10784
10848
  }, B.onerror = G, B.readAsDataURL(V);
10785
10849
  });
10786
10850
  C = C.replaceAll(`{{${w.name}}}`, I), C = C.replaceAll(`{{${w.name.toUpperCase()}}}`, I);
@@ -10806,7 +10870,7 @@ ${e}`);
10806
10870
  }), k.context = C;
10807
10871
  });
10808
10872
  }
10809
- const f = async (k, C, g, w, R, V, I, Y) => {
10873
+ const f = async (k, C, g, w, q, V, I, F) => {
10810
10874
  const G = document.createElement("div");
10811
10875
  G.classList.add("result-container"), i.appendChild(G), G.innerHTML = `
10812
10876
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 20" width="27" height="20" fill="currentColor">
@@ -10843,7 +10907,7 @@ Use the following information to answer the request:
10843
10907
 
10844
10908
  ${P.data}
10845
10909
  `)), I && (I.image || I.video || I.audio) || B) {
10846
- const W = await this.media.generate(k, C, g, w, I, G, Y);
10910
+ const W = await this.media.generate(k, C, g, w, I, G, F);
10847
10911
  return this.needCleanup = !0, this.settings.consoleLog && console.log(W), W.mediaGenerated ? {
10848
10912
  media: W.output,
10849
10913
  media2: W.output2,
@@ -10852,9 +10916,9 @@ ${P.data}
10852
10916
  }
10853
10917
  if (this.settings.assistantId) {
10854
10918
  if (this.settings.assistantStreamUrl)
10855
- await this.assistantStream(k, C, R, V, async (W) => {
10919
+ await this.assistantStream(k, C, q, V, async (W) => {
10856
10920
  if (!(W && typeof W == "object")) {
10857
- if (_ += W, !Y) {
10921
+ if (_ += W, !F) {
10858
10922
  const N = we.parse(_);
10859
10923
  G.innerHTML = N, L += N;
10860
10924
  }
@@ -10864,12 +10928,12 @@ ${P.data}
10864
10928
  const N = setInterval(() => {
10865
10929
  G.innerHTML === we.parse(_) && (clearInterval(N), W());
10866
10930
  }, 10);
10867
- }), Y && (G.innerHTML = "", G.remove()), this.outputHtml += `<div class="result-container">${L}</div>`;
10931
+ }), F && (G.innerHTML = "", G.remove()), this.outputHtml += `<div class="result-container">${L}</div>`;
10868
10932
  else if (this.settings.assistantUrl) {
10869
- let W = await this.assistant(k, C, R, V);
10933
+ let W = await this.assistant(k, C, q, V);
10870
10934
  if (!W)
10871
10935
  return !1;
10872
- if (_ = W, Y)
10936
+ if (_ = W, F)
10873
10937
  G.innerHTML = "", G.remove();
10874
10938
  else {
10875
10939
  const N = we.parse(W);
@@ -10878,35 +10942,35 @@ ${P.data}
10878
10942
  }
10879
10943
  } else if (this.settings.sendCommandStreamUrl) {
10880
10944
  let W = "", N = "", J = "";
10881
- const Q = async (ne) => {
10945
+ const Q = async (se) => {
10882
10946
  let re = 0;
10883
- for (; re < ne.length; ) {
10884
- if (J = W.slice(0, J.length + 1), re++, !Y) {
10947
+ for (; re < se.length; ) {
10948
+ if (J = W.slice(0, J.length + 1), re++, !F) {
10885
10949
  const ae = we.parse(J);
10886
10950
  G.innerHTML = ae, N = ae;
10887
10951
  }
10888
10952
  await new Promise((ae) => setTimeout(ae, 50));
10889
10953
  }
10890
10954
  };
10891
- await this.sendStream(k, C, R, w, V, async (ne) => {
10892
- _ += ne, W += ne, await Q(ne);
10893
- }), await new Promise((ne) => {
10955
+ await this.sendStream(k, C, q, w, V, async (se) => {
10956
+ _ += se, W += se, await Q(se);
10957
+ }), await new Promise((se) => {
10894
10958
  const re = setInterval(() => {
10895
- J.length === W.length && (clearInterval(re), ne());
10959
+ J.length === W.length && (clearInterval(re), se());
10896
10960
  }, 10);
10897
- }), Y && (G.innerHTML = "", G.remove()), this.outputHtml += `<div class="result-container">${N}</div>`;
10961
+ }), F && (G.innerHTML = "", G.remove()), this.outputHtml += `<div class="result-container">${N}</div>`;
10898
10962
  } else {
10899
- let W = await this.send(k, C, R, w, V);
10963
+ let W = await this.send(k, C, q, w, V);
10900
10964
  if (!W)
10901
10965
  return !1;
10902
- if (_ = W, Y)
10966
+ if (_ = W, F)
10903
10967
  G.innerHTML = "", G.remove();
10904
10968
  else {
10905
10969
  const N = we.parse(W);
10906
10970
  G.innerHTML = N, this.outputHtml += `<div class="result-container">${N}</div>`;
10907
10971
  }
10908
10972
  }
10909
- if (!Y) {
10973
+ if (!F) {
10910
10974
  let W = "";
10911
10975
  if (P && P.urls.forEach((J) => {
10912
10976
  let Q = J;
@@ -10935,14 +10999,14 @@ ${P.data}
10935
10999
  let {
10936
11000
  prompt: g,
10937
11001
  context: w,
10938
- provider: R,
11002
+ provider: q,
10939
11003
  model: V,
10940
11004
  system: I,
10941
- functs: Y,
11005
+ functs: F,
10942
11006
  tools: G,
10943
11007
  hideOutput: B
10944
11008
  } = k[C];
10945
- R = R || "", w = w || "", I = I || "You are an assistant", Y = Y || [];
11009
+ q = q || "", w = w || "", I = I || "You are an assistant", F = F || [];
10946
11010
  let M = g;
10947
11011
  this.previousResults.forEach((L, P) => {
10948
11012
  const W = `{{output_step_${P + 1}}}`;
@@ -10951,7 +11015,7 @@ ${P.data}
10951
11015
  const W = `{{output_step_${P + 1}}}`;
10952
11016
  M = M.replace(new RegExp(W, "g"), d(L, g)), M = M.replace(new RegExp(W.toUpperCase(), "g"), d(L, g));
10953
11017
  }), w = M, w = w.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000\uFEFF]/g, " ").trim();
10954
- let _ = await f(g, w, R, V, I, Y, G, B);
11018
+ let _ = await f(g, w, q, V, I, F, G, B);
10955
11019
  if (!_)
10956
11020
  break;
10957
11021
  if (this.mediaGenerated.push(..._.media), _.media && _.media.length === 1) {
@@ -10965,24 +11029,24 @@ ${P.data}
10965
11029
  return;
10966
11030
  let {
10967
11031
  prompt: w,
10968
- context: R,
11032
+ context: q,
10969
11033
  provider: V,
10970
11034
  model: I,
10971
- system: Y,
11035
+ system: F,
10972
11036
  functs: G,
10973
11037
  tools: B,
10974
11038
  hideOutput: M
10975
11039
  } = C[g];
10976
- R = R || "", Y = Y || "You are an assistant", G = G || [];
11040
+ q = q || "", F = F || "You are an assistant", G = G || [];
10977
11041
  let _ = w;
10978
11042
  this.previousResults && this.previousResults.forEach((P, W) => {
10979
11043
  const N = `{{output_step_${W + 1}}}`;
10980
11044
  _ = _.replace(new RegExp(N, "g"), P), _ = _.replace(new RegExp(N.toUpperCase(), "g"), P);
10981
- }), w = _, w = w.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000\uFEFF]/g, " ").trim(), this.settings.consoleLog && console.log(w), _ = R, this.previousResults && this.previousResults.forEach((P, W) => {
11045
+ }), w = _, w = w.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000\uFEFF]/g, " ").trim(), this.settings.consoleLog && console.log(w), _ = q, this.previousResults && this.previousResults.forEach((P, W) => {
10982
11046
  const N = `{{output_step_${W + 1}}}`;
10983
11047
  _ = _.replace(new RegExp(N, "g"), P), _ = _.replace(new RegExp(N.toUpperCase(), "g"), P);
10984
- }), R = _, R = R.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000\uFEFF]/g, " ").trim(), this.settings.consoleLog && console.log(R);
10985
- let L = await f(w, R, V, I, Y, G, B, M);
11048
+ }), q = _, q = q.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000\uFEFF]/g, " ").trim(), this.settings.consoleLog && console.log(q);
11049
+ let L = await f(w, q, V, I, F, G, B, M);
10986
11050
  if (L && (this.mediaGenerated.push(...L.media), !!this.previousResults))
10987
11051
  if (L.media && L.media.length === 1) {
10988
11052
  let P = L.media[0], W = L.media2 && L.media2.length === 1 && L.media2[0];
@@ -10992,7 +11056,7 @@ ${P.data}
10992
11056
  })(o, e)), a.innerHTML = u, a.removeAttribute("disabled"), this.isGenerating = !1;
10993
11057
  const S = this.calculateCost();
10994
11058
  this.settings.onUsage && this.settings.onUsage(S), this.trigger("usage", S), this.isNormal = !1, this.isSingle = !1;
10995
- const q = (k, C = 100) => {
11059
+ const R = (k, C = 100) => {
10996
11060
  const g = document.createElement("div");
10997
11061
  if (g.innerHTML = k, g.querySelector("video"))
10998
11062
  return "Video";
@@ -11015,16 +11079,16 @@ ${P.data}
11015
11079
  body: JSON.stringify(this.filesUploaded)
11016
11080
  });
11017
11081
  }
11018
- let T = this.outputHtml;
11019
- this.mediaGenerated = this.mediaGenerated.filter((k) => T.indexOf(k) !== -1), this.trigger("resultReady", {
11020
- previewText: q(T),
11082
+ let E = this.outputHtml;
11083
+ this.mediaGenerated = this.mediaGenerated.filter((k) => E.indexOf(k) !== -1), this.trigger("resultReady", {
11084
+ previewText: R(E),
11021
11085
  markdown: this.previousResults,
11022
- html: T,
11086
+ html: E,
11023
11087
  media: this.mediaGenerated,
11024
11088
  // return the collected generated media from all steps
11025
11089
  input: this.payloads,
11026
11090
  output: this.output
11027
- }), this.settings.saveResults && (localStorage.setItem("_results", JSON.stringify(this.previousResults)), localStorage.setItem("_results_html", T)), this.addResultTool(), i.querySelectorAll(".link-download").forEach((k) => {
11091
+ }), this.settings.saveResults && (localStorage.setItem("_results", JSON.stringify(this.previousResults)), localStorage.setItem("_results_html", E)), this.addResultTool(), i.querySelectorAll(".link-download").forEach((k) => {
11028
11092
  k.addEventListener("click", async (C) => {
11029
11093
  C.preventDefault();
11030
11094
  const g = C.target.href;
@@ -11033,8 +11097,8 @@ ${P.data}
11033
11097
  mode: "cors"
11034
11098
  });
11035
11099
  if (!w.ok) throw new Error("Failed to fetch the image.");
11036
- const R = await w.blob(), V = g.substring(g.lastIndexOf("/") + 1), I = document.createElement("a");
11037
- I.href = URL.createObjectURL(R), I.download = V, I.click(), URL.revokeObjectURL(I.href);
11100
+ const q = await w.blob(), V = g.substring(g.lastIndexOf("/") + 1), I = document.createElement("a");
11101
+ I.href = URL.createObjectURL(q), I.download = V, I.click(), URL.revokeObjectURL(I.href);
11038
11102
  } catch (w) {
11039
11103
  console.error("Error downloading the image:", w);
11040
11104
  }
@@ -11223,14 +11287,14 @@ ${P.data}
11223
11287
  if (!h.ok)
11224
11288
  return console.error("Error:", h.statusText), !1;
11225
11289
  const f = h.body.getReader(), v = new TextDecoder();
11226
- let S = "", q = !1;
11227
- for (; !q; ) {
11290
+ let S = "", R = !1;
11291
+ for (; !R; ) {
11228
11292
  const {
11229
11293
  done: y,
11230
- value: T
11294
+ value: E
11231
11295
  } = await f.read();
11232
- if (q = y, q) break;
11233
- const b = v.decode(T, {
11296
+ if (R = y, R) break;
11297
+ const b = v.decode(E, {
11234
11298
  stream: !0
11235
11299
  });
11236
11300
  S += b;
@@ -11240,13 +11304,13 @@ ${P.data}
11240
11304
  let C = 0, g = 0;
11241
11305
  for (const w of k)
11242
11306
  if (w.trim() !== "" && w.startsWith("data:")) {
11243
- const R = w.slice(5).trim();
11244
- if (R === "[DONE]") {
11307
+ const q = w.slice(5).trim();
11308
+ if (q === "[DONE]") {
11245
11309
  this.settings.consoleLog && console.log("Stream completed.");
11246
11310
  break;
11247
11311
  }
11248
11312
  try {
11249
- const V = JSON.parse(R);
11313
+ const V = JSON.parse(q);
11250
11314
  if (V.usage && (C = V.usage.prompt_tokens, g = V.usage.completion_tokens), V.choices && V.choices[0].delta && V.choices[0].delta.content) {
11251
11315
  const I = V.choices[0].delta.content;
11252
11316
  r && r(I);
@@ -11332,14 +11396,14 @@ ${P.data}
11332
11396
  let v = "", S = !1;
11333
11397
  for (; !S; ) {
11334
11398
  const {
11335
- done: q,
11399
+ done: R,
11336
11400
  value: y
11337
11401
  } = await h.read();
11338
- if (S = q, S) break;
11339
- const T = f.decode(y, {
11402
+ if (S = R, S) break;
11403
+ const E = f.decode(y, {
11340
11404
  stream: !0
11341
11405
  });
11342
- v += T;
11406
+ v += E;
11343
11407
  const b = v.split(`
11344
11408
  `);
11345
11409
  v = "";
@@ -11413,7 +11477,7 @@ ${P.data}
11413
11477
  return i || e;
11414
11478
  }
11415
11479
  }
11416
- class Ss {
11480
+ class Tn {
11417
11481
  addClass(e, i) {
11418
11482
  e && (this.hasClass(e, i) || (e.classList.length === 0 ? e.className = i : e.className = e.className + " " + i, e.className = e.className.replace(/ +/g, " ")));
11419
11483
  }
@@ -11439,8 +11503,8 @@ class Ss {
11439
11503
  }
11440
11504
  }
11441
11505
  }
11442
- const ce = new Ss();
11443
- class Es {
11506
+ const ce = new Tn();
11507
+ class En {
11444
11508
  constructor(e = {}) {
11445
11509
  const i = {
11446
11510
  // onSearch: (keywords)=>{
@@ -11453,21 +11517,21 @@ class Es {
11453
11517
  const e = (h) => {
11454
11518
  const f = h.parentNode, v = h.nextElementSibling;
11455
11519
  if (ce.hasClass(v, "is-menu-links")) {
11456
- let q = v.querySelectorAll("li");
11457
- q.forEach((y) => {
11520
+ let R = v.querySelectorAll("li");
11521
+ R.forEach((y) => {
11458
11522
  if (y !== f) {
11459
- const T = y.querySelector("ul");
11460
- ce.removeClass(T, "active");
11523
+ const E = y.querySelector("ul");
11524
+ ce.removeClass(E, "active");
11461
11525
  }
11462
- }), q = document.querySelectorAll(".is-menu > ul > li ul"), q.forEach((y) => {
11463
- const T = y.querySelector("ul");
11464
- ce.removeClass(T, "active");
11526
+ }), R = document.querySelectorAll(".is-menu > ul > li ul"), R.forEach((y) => {
11527
+ const E = y.querySelector("ul");
11528
+ ce.removeClass(E, "active");
11465
11529
  });
11466
11530
  }
11467
11531
  ce.hasClass(v, "active") && !ce.hasClass(v, "is-menu-links") && v.querySelectorAll("li").forEach((y) => {
11468
11532
  if (y !== f) {
11469
- const T = y.querySelector("ul");
11470
- ce.removeClass(T, "active");
11533
+ const E = y.querySelector("ul");
11534
+ ce.removeClass(E, "active");
11471
11535
  }
11472
11536
  });
11473
11537
  const S = f.querySelector("ul");
@@ -11562,16 +11626,16 @@ class Es {
11562
11626
  const y = v.target.closest("li").querySelector("ul");
11563
11627
  y && (ce.hasClass(y, "active") ? (ce.removeClass(y, "active"), y.style.display = "") : ce.addClass(y, "active")), v.preventDefault(), v.stopImmediatePropagation();
11564
11628
  }), h.addEventListener("click", (v) => {
11565
- const S = h.querySelector("ul"), q = window.innerWidth;
11629
+ const S = h.querySelector("ul"), R = window.innerWidth;
11566
11630
  let y = v.target.tagName.toLowerCase();
11567
- if (q > 1024) {
11631
+ if (R > 1024) {
11568
11632
  if ((y === "a" || y === "i") && !v.target.getAttribute("href")) {
11569
11633
  v.preventDefault(), v.stopImmediatePropagation();
11570
11634
  return;
11571
11635
  }
11572
11636
  } else {
11573
- let T = !0;
11574
- if ((y === "a" || y === "i") && (v.target.getAttribute("href") || (v.preventDefault(), T = !1)), T) {
11637
+ let E = !0;
11638
+ if ((y === "a" || y === "i") && (v.target.getAttribute("href") || (v.preventDefault(), E = !1)), E) {
11575
11639
  const b = document.querySelector(".is-menu");
11576
11640
  if (b.style.right === "0px") {
11577
11641
  ce.removeClass(r, "active"), b.style.right = "-1000px";
@@ -11584,14 +11648,14 @@ class Es {
11584
11648
  }, 0)));
11585
11649
  }), h.addEventListener("mouseleave", (v) => {
11586
11650
  window.innerWidth <= 1024 || (this.timer = setTimeout(() => {
11587
- const q = h.querySelector("ul");
11588
- q && ce.removeClass(q, "active");
11651
+ const R = h.querySelector("ul");
11652
+ R && ce.removeClass(R, "active");
11589
11653
  }, 200), v.preventDefault(), v.stopImmediatePropagation());
11590
11654
  }), h.addEventListener("mouseenter", (v) => {
11591
11655
  const S = window.innerWidth;
11592
11656
  if (S <= 1024 || this.staticClose) return;
11593
- const q = document.querySelector(".is-menu-search-input");
11594
- if (ce.hasClass(q, "active")) return;
11657
+ const R = document.querySelector(".is-menu-search-input");
11658
+ if (ce.hasClass(R, "active")) return;
11595
11659
  clearTimeout(this.timer);
11596
11660
  const y = h.closest("ul");
11597
11661
  if (!h.querySelector("ul"))
@@ -11617,10 +11681,10 @@ class Es {
11617
11681
  ce.removeClass(C, "active");
11618
11682
  }
11619
11683
  });
11620
- const T = h.querySelector("ul");
11621
- if (T && ce.addClass(T, "active"), T.style.right = "", T.classList.contains("active")) {
11622
- const b = T.getBoundingClientRect();
11623
- b.left + b.width > S && (T.style.right = 0);
11684
+ const E = h.querySelector("ul");
11685
+ if (E && ce.addClass(E, "active"), E.style.right = "", E.classList.contains("active")) {
11686
+ const b = E.getBoundingClientRect();
11687
+ b.left + b.width > S && (E.style.right = 0);
11624
11688
  }
11625
11689
  v.preventDefault(), v.stopImmediatePropagation();
11626
11690
  });
@@ -11643,13 +11707,13 @@ class Es {
11643
11707
  }), window.addEventListener("resize", () => {
11644
11708
  document.body.style.overflowY = "auto", document.querySelector(".is-topbar-menu").style.paddingRight = "0px";
11645
11709
  const h = document.querySelector("#is-menu-toggle");
11646
- ce.removeClass(h, "active"), document.querySelectorAll(".is-menu li ul").forEach((q) => {
11647
- ce.removeClass(q, "active");
11710
+ ce.removeClass(h, "active"), document.querySelectorAll(".is-menu li ul").forEach((R) => {
11711
+ ce.removeClass(R, "active");
11648
11712
  });
11649
11713
  const v = document.querySelector(".is-menu");
11650
11714
  if (v.style.transition = "none", window.innerWidth > 1024) {
11651
- v.style.right = "0px", document.querySelectorAll(".is-menu li ul").forEach((T) => {
11652
- T.style.display = "";
11715
+ v.style.right = "0px", document.querySelectorAll(".is-menu li ul").forEach((E) => {
11716
+ E.style.display = "";
11653
11717
  });
11654
11718
  const y = document.querySelector(".is-menu-overlay");
11655
11719
  ce.removeClass(y, "active"), document.querySelector(".is-menu-search-input").style.display = "", document.querySelector(".is-menu-links").style.marginTop = "";
@@ -11660,14 +11724,14 @@ class Es {
11660
11724
  }, 30);
11661
11725
  }), window.addEventListener("scroll", () => {
11662
11726
  var h = 100, f = this.getCurrentScroll();
11663
- f >= h ? ce.addClass(document.querySelector(".is-topbar"), "shrink") : ce.removeClass(document.querySelector(".is-topbar"), "shrink"), window.innerWidth >= 1024 && document.querySelector(".is-topbar.static") && (f > 30 ? this.staticClose || (document.querySelectorAll(".is-menu li ul").forEach((q) => {
11664
- ce.removeClass(q, "active");
11727
+ f >= h ? ce.addClass(document.querySelector(".is-topbar"), "shrink") : ce.removeClass(document.querySelector(".is-topbar"), "shrink"), window.innerWidth >= 1024 && document.querySelector(".is-topbar.static") && (f > 30 ? this.staticClose || (document.querySelectorAll(".is-menu li ul").forEach((R) => {
11728
+ ce.removeClass(R, "active");
11665
11729
  }), this.staticClose = !0) : this.staticClose = !1);
11666
11730
  });
11667
11731
  const u = (h) => {
11668
11732
  const f = document.querySelector(".is-menu-search-input");
11669
- ce.addClass(f, "active"), f.querySelector("input").focus(), document.querySelectorAll(".is-menu li ul").forEach((q) => {
11670
- ce.removeClass(q, "active");
11733
+ ce.addClass(f, "active"), f.querySelector("input").focus(), document.querySelectorAll(".is-menu li ul").forEach((R) => {
11734
+ ce.removeClass(R, "active");
11671
11735
  }), h.preventDefault(), h.stopImmediatePropagation();
11672
11736
  }, c = document.querySelector(".is-menu-search");
11673
11737
  c && (c.addEventListener("click", (h) => {
@@ -11698,12 +11762,12 @@ class Es {
11698
11762
  return window.pageYOffset || document.documentElement.scrollTop;
11699
11763
  }
11700
11764
  }
11701
- class Ts {
11765
+ class Cn {
11702
11766
  constructor(e = {}) {
11703
11767
  const i = {
11704
11768
  skin: "light"
11705
11769
  };
11706
- this.settings = Object.assign(this, i, e), window.Glide = Pn, window.FormViewer = _s, window.NavBar = Es, window.pageReRender = () => {
11770
+ this.settings = Object.assign(this, i, e), window.Glide = Ps, window.FormViewer = Sn, window.NavBar = En, window.pageReRender = () => {
11707
11771
  this.pageReRender();
11708
11772
  };
11709
11773
  }
@@ -11712,7 +11776,7 @@ class Ts {
11712
11776
  ji.init({
11713
11777
  duration: 1200
11714
11778
  });
11715
- }, 300);
11779
+ }, 300), new Bi();
11716
11780
  }
11717
11781
  prepareContent() {
11718
11782
  const e = document.querySelector(".is-wrapper");
@@ -11944,7 +12008,7 @@ class Ts {
11944
12008
  });
11945
12009
  }
11946
12010
  refreshLightbox(e) {
11947
- this.glightbox && this.glightbox.destroy(), this.glightbox = ni(e), window.GLightbox = ni;
12011
+ this.glightbox && this.glightbox.destroy(), this.glightbox = si(e), window.GLightbox = si;
11948
12012
  }
11949
12013
  openLightbox(e, i, s) {
11950
12014
  let t = [], n = 0;
@@ -12141,5 +12205,5 @@ class Ts {
12141
12205
  }
12142
12206
  }
12143
12207
  export {
12144
- Ts as default
12208
+ Cn as default
12145
12209
  };