@sprig-technologies/sprig-bundled 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,45 +1,45 @@
1
- import { g as dr, a as pr, C as b, b as G, T as z, c as bt, D as vt, A as fe, I as ee, e as Re, s as Me, S as re, d as ve, P as Ge, f as fr, R as _r, u as Qe, h as hr, i as mr, j as w, E as gr, k as V, l as ye, m as it, n as de, o as br, p as q, q as ke, r as H, t as L, M as Q, v as vr, w as yr, x as xr, y as yt, z as Cr } from "./index-BuamjNZy.js";
2
- var we, x, Xt, ce, xt, en, Ke, tn, Se = {}, nn = [], kr = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ue = Array.isArray;
1
+ import { g as pr, a as fr, C as b, b as G, T as W, i as ze, c as yt, D as xt, A as _e, I as ee, e as Le, s as $e, S as oe, d as ye, P as Ke, f as _r, R as hr, u as Ye, h as mr, j as gr, k as br, l as w, E as vr, m as H, n as xe, o as st, p as pe, q as z, r as Se, t as B, v as I, M as Q, w as yr, x as xr, y as Cr, z as Ct, B as kr } from "./index-Ist5vU7V.js";
2
+ var Te, x, tn, ce, kt, nn, Je, rn, we = {}, on = [], Sr = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ve = Array.isArray;
3
3
  function J(e, t) {
4
4
  for (var n in t)
5
5
  e[n] = t[n];
6
6
  return e;
7
7
  }
8
- function rn(e) {
8
+ function an(e) {
9
9
  var t = e.parentNode;
10
10
  t && t.removeChild(e);
11
11
  }
12
- function U(e, t, n) {
12
+ function V(e, t, n) {
13
13
  var r, o, i, a = {};
14
14
  for (i in t)
15
15
  i == "key" ? r = t[i] : i == "ref" ? o = t[i] : a[i] = t[i];
16
- if (arguments.length > 2 && (a.children = arguments.length > 3 ? we.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null)
16
+ if (arguments.length > 2 && (a.children = arguments.length > 3 ? Te.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null)
17
17
  for (i in e.defaultProps)
18
18
  a[i] === void 0 && (a[i] = e.defaultProps[i]);
19
- return xe(e, a, r, o, null);
19
+ return Ce(e, a, r, o, null);
20
20
  }
21
- function xe(e, t, n, r, o) {
22
- var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: o ?? ++Xt, __i: -1, __u: 0 };
21
+ function Ce(e, t, n, r, o) {
22
+ var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: o ?? ++tn, __i: -1, __u: 0 };
23
23
  return o == null && x.vnode != null && x.vnode(i), i;
24
24
  }
25
- function on() {
25
+ function sn() {
26
26
  return { current: null };
27
27
  }
28
- function D(e) {
28
+ function j(e) {
29
29
  return e.children;
30
30
  }
31
- function W(e, t) {
31
+ function Z(e, t) {
32
32
  this.props = e, this.context = t;
33
33
  }
34
- function _e(e, t) {
34
+ function he(e, t) {
35
35
  if (t == null)
36
- return e.__ ? _e(e.__, e.__i + 1) : null;
36
+ return e.__ ? he(e.__, e.__i + 1) : null;
37
37
  for (var n; t < e.__k.length; t++)
38
38
  if ((n = e.__k[t]) != null && n.__e != null)
39
39
  return n.__e;
40
- return typeof e.type == "function" ? _e(e) : null;
40
+ return typeof e.type == "function" ? he(e) : null;
41
41
  }
42
- function an(e) {
42
+ function ln(e) {
43
43
  var t, n;
44
44
  if ((e = e.__) != null && e.__c != null) {
45
45
  for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++)
@@ -47,47 +47,47 @@ function an(e) {
47
47
  e.__e = e.__c.base = n.__e;
48
48
  break;
49
49
  }
50
- return an(e);
50
+ return ln(e);
51
51
  }
52
52
  }
53
- function Ye(e) {
54
- (!e.__d && (e.__d = !0) && ce.push(e) && !$e.__r++ || xt !== x.debounceRendering) && ((xt = x.debounceRendering) || en)($e);
53
+ function Xe(e) {
54
+ (!e.__d && (e.__d = !0) && ce.push(e) && !Oe.__r++ || kt !== x.debounceRendering) && ((kt = x.debounceRendering) || nn)(Oe);
55
55
  }
56
- function $e() {
56
+ function Oe() {
57
57
  var e, t, n, r, o, i, a, l, c;
58
- for (ce.sort(Ke); e = ce.shift(); )
59
- e.__d && (t = ce.length, r = void 0, i = (o = (n = e).__v).__e, l = [], c = [], (a = n.__P) && ((r = J({}, o)).__v = o.__v + 1, x.vnode && x.vnode(r), at(a, r, o, n.__n, a.ownerSVGElement !== void 0, 32 & o.__u ? [i] : null, l, i ?? _e(o), !!(32 & o.__u), c), r.__.__k[r.__i] = r, cn(l, r, c), r.__e != i && an(r)), ce.length > t && ce.sort(Ke));
60
- $e.__r = 0;
58
+ for (ce.sort(Je); e = ce.shift(); )
59
+ e.__d && (t = ce.length, r = void 0, i = (o = (n = e).__v).__e, l = [], c = [], (a = n.__P) && ((r = J({}, o)).__v = o.__v + 1, x.vnode && x.vnode(r), lt(a, r, o, n.__n, a.ownerSVGElement !== void 0, 32 & o.__u ? [i] : null, l, i ?? he(o), !!(32 & o.__u), c), r.__.__k[r.__i] = r, dn(l, r, c), r.__e != i && ln(r)), ce.length > t && ce.sort(Je));
60
+ Oe.__r = 0;
61
61
  }
62
- function sn(e, t, n, r, o, i, a, l, c, d, p) {
63
- var s, _, f, g, m, y = r && r.__k || nn, v = t.length;
64
- for (n.__d = c, Sr(n, t, y), c = n.__d, s = 0; s < v; s++)
65
- (f = n.__k[s]) != null && typeof f != "boolean" && typeof f != "function" && (_ = f.__i === -1 ? Se : y[f.__i] || Se, f.__i = s, at(e, f, _, o, i, a, l, c, d, p), g = f.__e, f.ref && _.ref != f.ref && (_.ref && st(_.ref, null, f), p.push(f.ref, f.__c || g, f)), m == null && g != null && (m = g), 65536 & f.__u || _.__k === f.__k ? c = ln(f, c, e) : typeof f.type == "function" && f.__d !== void 0 ? c = f.__d : g && (c = g.nextSibling), f.__d = void 0, f.__u &= -196609);
66
- n.__d = c, n.__e = m;
62
+ function cn(e, t, n, r, o, i, a, l, c, d, p) {
63
+ var s, _, f, m, g, y = r && r.__k || on, v = t.length;
64
+ for (n.__d = c, wr(n, t, y), c = n.__d, s = 0; s < v; s++)
65
+ (f = n.__k[s]) != null && typeof f != "boolean" && typeof f != "function" && (_ = f.__i === -1 ? we : y[f.__i] || we, f.__i = s, lt(e, f, _, o, i, a, l, c, d, p), m = f.__e, f.ref && _.ref != f.ref && (_.ref && ct(_.ref, null, f), p.push(f.ref, f.__c || m, f)), g == null && m != null && (g = m), 65536 & f.__u || _.__k === f.__k ? c = un(f, c, e) : typeof f.type == "function" && f.__d !== void 0 ? c = f.__d : m && (c = m.nextSibling), f.__d = void 0, f.__u &= -196609);
66
+ n.__d = c, n.__e = g;
67
67
  }
68
- function Sr(e, t, n) {
68
+ function wr(e, t, n) {
69
69
  var r, o, i, a, l, c = t.length, d = n.length, p = d, s = 0;
70
70
  for (e.__k = [], r = 0; r < c; r++)
71
- (o = e.__k[r] = (o = t[r]) == null || typeof o == "boolean" || typeof o == "function" ? null : typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? xe(null, o, null, null, o) : Ue(o) ? xe(D, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? xe(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = e, o.__b = e.__b + 1, l = wr(o, n, a = r + s, p), o.__i = l, i = null, l !== -1 && (p--, (i = n[l]) && (i.__u |= 131072)), i == null || i.__v === null ? (l == -1 && s--, typeof o.type != "function" && (o.__u |= 65536)) : l !== a && (l === a + 1 ? s++ : l > a ? p > c - a ? s += l - a : s-- : s = l < a && l == a - 1 ? l - a : 0, l !== r + s && (o.__u |= 65536))) : (i = n[r]) && i.key == null && i.__e && (i.__e == e.__d && (e.__d = _e(i)), Je(i, i, !1), n[r] = null, p--);
71
+ (o = e.__k[r] = (o = t[r]) == null || typeof o == "boolean" || typeof o == "function" ? null : typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? Ce(null, o, null, null, o) : Ve(o) ? Ce(j, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? Ce(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = e, o.__b = e.__b + 1, l = Tr(o, n, a = r + s, p), o.__i = l, i = null, l !== -1 && (p--, (i = n[l]) && (i.__u |= 131072)), i == null || i.__v === null ? (l == -1 && s--, typeof o.type != "function" && (o.__u |= 65536)) : l !== a && (l === a + 1 ? s++ : l > a ? p > c - a ? s += l - a : s-- : s = l < a && l == a - 1 ? l - a : 0, l !== r + s && (o.__u |= 65536))) : (i = n[r]) && i.key == null && i.__e && (i.__e == e.__d && (e.__d = he(i)), et(i, i, !1), n[r] = null, p--);
72
72
  if (p)
73
73
  for (r = 0; r < d; r++)
74
- (i = n[r]) != null && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = _e(i)), Je(i, i));
74
+ (i = n[r]) != null && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = he(i)), et(i, i));
75
75
  }
76
- function ln(e, t, n) {
76
+ function un(e, t, n) {
77
77
  var r, o;
78
78
  if (typeof e.type == "function") {
79
79
  for (r = e.__k, o = 0; r && o < r.length; o++)
80
- r[o] && (r[o].__ = e, t = ln(r[o], t, n));
80
+ r[o] && (r[o].__ = e, t = un(r[o], t, n));
81
81
  return t;
82
82
  }
83
83
  return e.__e != t && (n.insertBefore(e.__e, t || null), t = e.__e), t && t.nextSibling;
84
84
  }
85
85
  function X(e, t) {
86
- return t = t || [], e == null || typeof e == "boolean" || (Ue(e) ? e.some(function(n) {
86
+ return t = t || [], e == null || typeof e == "boolean" || (Ve(e) ? e.some(function(n) {
87
87
  X(n, t);
88
88
  }) : t.push(e)), t;
89
89
  }
90
- function wr(e, t, n, r) {
90
+ function Tr(e, t, n, r) {
91
91
  var o = e.key, i = e.type, a = n - 1, l = n + 1, c = t[n];
92
92
  if (c === null || c && o == c.key && i === c.type)
93
93
  return n;
@@ -106,8 +106,8 @@ function wr(e, t, n, r) {
106
106
  }
107
107
  return -1;
108
108
  }
109
- function Ct(e, t, n) {
110
- t[0] === "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || kr.test(t) ? n : n + "px";
109
+ function St(e, t, n) {
110
+ t[0] === "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || Sr.test(t) ? n : n + "px";
111
111
  }
112
112
  function Ne(e, t, n, r, o) {
113
113
  var i;
@@ -118,13 +118,13 @@ function Ne(e, t, n, r, o) {
118
118
  else {
119
119
  if (typeof r == "string" && (e.style.cssText = r = ""), r)
120
120
  for (t in r)
121
- n && t in n || Ct(e.style, t, "");
121
+ n && t in n || St(e.style, t, "");
122
122
  if (n)
123
123
  for (t in n)
124
- r && n[t] === r[t] || Ct(e.style, t, n[t]);
124
+ r && n[t] === r[t] || St(e.style, t, n[t]);
125
125
  }
126
126
  else if (t[0] === "o" && t[1] === "n")
127
- i = t !== (t = t.replace(/(PointerCapture)$|Capture$/, "$1")), t = t.toLowerCase() in e ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u = Date.now(), e.addEventListener(t, i ? St : kt, i)) : e.removeEventListener(t, i ? St : kt, i);
127
+ i = t !== (t = t.replace(/(PointerCapture)$|Capture$/, "$1")), t = t.toLowerCase() in e ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u = Date.now(), e.addEventListener(t, i ? Tt : wt, i)) : e.removeEventListener(t, i ? Tt : wt, i);
128
128
  else {
129
129
  if (o)
130
130
  t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
@@ -137,7 +137,7 @@ function Ne(e, t, n, r, o) {
137
137
  typeof n == "function" || (n == null || n === !1 && t[4] !== "-" ? e.removeAttribute(t) : e.setAttribute(t, n));
138
138
  }
139
139
  }
140
- function kt(e) {
140
+ function wt(e) {
141
141
  var t = this.l[e.type + !1];
142
142
  if (e.t) {
143
143
  if (e.t <= t.u)
@@ -146,52 +146,52 @@ function kt(e) {
146
146
  e.t = Date.now();
147
147
  return t(x.event ? x.event(e) : e);
148
148
  }
149
- function St(e) {
149
+ function Tt(e) {
150
150
  return this.l[e.type + !0](x.event ? x.event(e) : e);
151
151
  }
152
- function at(e, t, n, r, o, i, a, l, c, d) {
153
- var p, s, _, f, g, m, y, v, C, S, E, h, T, I, N, k = t.type;
152
+ function lt(e, t, n, r, o, i, a, l, c, d) {
153
+ var p, s, _, f, m, g, y, v, C, k, R, P, S, A, N, h = t.type;
154
154
  if (t.constructor !== void 0)
155
155
  return null;
156
156
  128 & n.__u && (c = !!(32 & n.__u), i = [l = t.__e = n.__e]), (p = x.__b) && p(t);
157
157
  e:
158
- if (typeof k == "function")
158
+ if (typeof h == "function")
159
159
  try {
160
- if (v = t.props, C = (p = k.contextType) && r[p.__c], S = p ? C ? C.props.value : p.__ : r, n.__c ? y = (s = t.__c = n.__c).__ = s.__E : ("prototype" in k && k.prototype.render ? t.__c = s = new k(v, S) : (t.__c = s = new W(v, S), s.constructor = k, s.render = Pr), C && C.sub(s), s.props = v, s.state || (s.state = {}), s.context = S, s.__n = r, _ = s.__d = !0, s.__h = [], s._sb = []), s.__s == null && (s.__s = s.state), k.getDerivedStateFromProps != null && (s.__s == s.state && (s.__s = J({}, s.__s)), J(s.__s, k.getDerivedStateFromProps(v, s.__s))), f = s.props, g = s.state, s.__v = t, _)
161
- k.getDerivedStateFromProps == null && s.componentWillMount != null && s.componentWillMount(), s.componentDidMount != null && s.__h.push(s.componentDidMount);
160
+ if (v = t.props, C = (p = h.contextType) && r[p.__c], k = p ? C ? C.props.value : p.__ : r, n.__c ? y = (s = t.__c = n.__c).__ = s.__E : ("prototype" in h && h.prototype.render ? t.__c = s = new h(v, k) : (t.__c = s = new Z(v, k), s.constructor = h, s.render = Er), C && C.sub(s), s.props = v, s.state || (s.state = {}), s.context = k, s.__n = r, _ = s.__d = !0, s.__h = [], s._sb = []), s.__s == null && (s.__s = s.state), h.getDerivedStateFromProps != null && (s.__s == s.state && (s.__s = J({}, s.__s)), J(s.__s, h.getDerivedStateFromProps(v, s.__s))), f = s.props, m = s.state, s.__v = t, _)
161
+ h.getDerivedStateFromProps == null && s.componentWillMount != null && s.componentWillMount(), s.componentDidMount != null && s.__h.push(s.componentDidMount);
162
162
  else {
163
- if (k.getDerivedStateFromProps == null && v !== f && s.componentWillReceiveProps != null && s.componentWillReceiveProps(v, S), !s.__e && (s.shouldComponentUpdate != null && s.shouldComponentUpdate(v, s.__s, S) === !1 || t.__v === n.__v)) {
164
- for (t.__v !== n.__v && (s.props = v, s.state = s.__s, s.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function($) {
165
- $ && ($.__ = t);
166
- }), E = 0; E < s._sb.length; E++)
167
- s.__h.push(s._sb[E]);
163
+ if (h.getDerivedStateFromProps == null && v !== f && s.componentWillReceiveProps != null && s.componentWillReceiveProps(v, k), !s.__e && (s.shouldComponentUpdate != null && s.shouldComponentUpdate(v, s.__s, k) === !1 || t.__v === n.__v)) {
164
+ for (t.__v !== n.__v && (s.props = v, s.state = s.__s, s.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(T) {
165
+ T && (T.__ = t);
166
+ }), R = 0; R < s._sb.length; R++)
167
+ s.__h.push(s._sb[R]);
168
168
  s._sb = [], s.__h.length && a.push(s);
169
169
  break e;
170
170
  }
171
- s.componentWillUpdate != null && s.componentWillUpdate(v, s.__s, S), s.componentDidUpdate != null && s.__h.push(function() {
172
- s.componentDidUpdate(f, g, m);
171
+ s.componentWillUpdate != null && s.componentWillUpdate(v, s.__s, k), s.componentDidUpdate != null && s.__h.push(function() {
172
+ s.componentDidUpdate(f, m, g);
173
173
  });
174
174
  }
175
- if (s.context = S, s.props = v, s.__P = e, s.__e = !1, h = x.__r, T = 0, "prototype" in k && k.prototype.render) {
176
- for (s.state = s.__s, s.__d = !1, h && h(t), p = s.render(s.props, s.state, s.context), I = 0; I < s._sb.length; I++)
177
- s.__h.push(s._sb[I]);
175
+ if (s.context = k, s.props = v, s.__P = e, s.__e = !1, P = x.__r, S = 0, "prototype" in h && h.prototype.render) {
176
+ for (s.state = s.__s, s.__d = !1, P && P(t), p = s.render(s.props, s.state, s.context), A = 0; A < s._sb.length; A++)
177
+ s.__h.push(s._sb[A]);
178
178
  s._sb = [];
179
179
  } else
180
180
  do
181
- s.__d = !1, h && h(t), p = s.render(s.props, s.state, s.context), s.state = s.__s;
182
- while (s.__d && ++T < 25);
183
- s.state = s.__s, s.getChildContext != null && (r = J(J({}, r), s.getChildContext())), _ || s.getSnapshotBeforeUpdate == null || (m = s.getSnapshotBeforeUpdate(f, g)), sn(e, Ue(N = p != null && p.type === D && p.key == null ? p.props.children : p) ? N : [N], t, n, r, o, i, a, l, c, d), s.base = t.__e, t.__u &= -161, s.__h.length && a.push(s), y && (s.__E = s.__ = null);
184
- } catch ($) {
185
- t.__v = null, c || i != null ? (t.__e = l, t.__u |= c ? 160 : 32, i[i.indexOf(l)] = null) : (t.__e = n.__e, t.__k = n.__k), x.__e($, t, n);
181
+ s.__d = !1, P && P(t), p = s.render(s.props, s.state, s.context), s.state = s.__s;
182
+ while (s.__d && ++S < 25);
183
+ s.state = s.__s, s.getChildContext != null && (r = J(J({}, r), s.getChildContext())), _ || s.getSnapshotBeforeUpdate == null || (g = s.getSnapshotBeforeUpdate(f, m)), cn(e, Ve(N = p != null && p.type === j && p.key == null ? p.props.children : p) ? N : [N], t, n, r, o, i, a, l, c, d), s.base = t.__e, t.__u &= -161, s.__h.length && a.push(s), y && (s.__E = s.__ = null);
184
+ } catch (T) {
185
+ t.__v = null, c || i != null ? (t.__e = l, t.__u |= c ? 160 : 32, i[i.indexOf(l)] = null) : (t.__e = n.__e, t.__k = n.__k), x.__e(T, t, n);
186
186
  }
187
187
  else
188
- i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = Tr(n.__e, t, n, r, o, i, a, c, d);
188
+ i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = Pr(n.__e, t, n, r, o, i, a, c, d);
189
189
  (p = x.diffed) && p(t);
190
190
  }
191
- function cn(e, t, n) {
191
+ function dn(e, t, n) {
192
192
  t.__d = void 0;
193
193
  for (var r = 0; r < n.length; r++)
194
- st(n[r], n[++r], n[++r]);
194
+ ct(n[r], n[++r], n[++r]);
195
195
  x.__c && x.__c(t, e), e.some(function(o) {
196
196
  try {
197
197
  e = o.__h, o.__h = [], e.some(function(i) {
@@ -202,8 +202,8 @@ function cn(e, t, n) {
202
202
  }
203
203
  });
204
204
  }
205
- function Tr(e, t, n, r, o, i, a, l, c) {
206
- var d, p, s, _, f, g, m, y = n.props, v = t.props, C = t.type;
205
+ function Pr(e, t, n, r, o, i, a, l, c) {
206
+ var d, p, s, _, f, m, g, y = n.props, v = t.props, C = t.type;
207
207
  if (C === "svg" && (o = !0), i != null) {
208
208
  for (d = 0; d < i.length; d++)
209
209
  if ((f = i[d]) && "setAttribute" in f == !!C && (C ? f.localName === C : f.nodeType === 3)) {
@@ -219,32 +219,32 @@ function Tr(e, t, n, r, o, i, a, l, c) {
219
219
  if (C === null)
220
220
  y === v || l && e.data === v || (e.data = v);
221
221
  else {
222
- if (i = i && we.call(e.childNodes), y = n.props || Se, !l && i != null)
222
+ if (i = i && Te.call(e.childNodes), y = n.props || we, !l && i != null)
223
223
  for (y = {}, d = 0; d < e.attributes.length; d++)
224
224
  y[(f = e.attributes[d]).name] = f.value;
225
225
  for (d in y)
226
226
  f = y[d], d == "children" || (d == "dangerouslySetInnerHTML" ? s = f : d === "key" || d in v || Ne(e, d, null, f, o));
227
227
  for (d in v)
228
- f = v[d], d == "children" ? _ = f : d == "dangerouslySetInnerHTML" ? p = f : d == "value" ? g = f : d == "checked" ? m = f : d === "key" || l && typeof f != "function" || y[d] === f || Ne(e, d, f, y[d], o);
228
+ f = v[d], d == "children" ? _ = f : d == "dangerouslySetInnerHTML" ? p = f : d == "value" ? m = f : d == "checked" ? g = f : d === "key" || l && typeof f != "function" || y[d] === f || Ne(e, d, f, y[d], o);
229
229
  if (p)
230
230
  l || s && (p.__html === s.__html || p.__html === e.innerHTML) || (e.innerHTML = p.__html), t.__k = [];
231
- else if (s && (e.innerHTML = ""), sn(e, Ue(_) ? _ : [_], t, n, r, o && C !== "foreignObject", i, a, i ? i[0] : n.__k && _e(n, 0), l, c), i != null)
231
+ else if (s && (e.innerHTML = ""), cn(e, Ve(_) ? _ : [_], t, n, r, o && C !== "foreignObject", i, a, i ? i[0] : n.__k && he(n, 0), l, c), i != null)
232
232
  for (d = i.length; d--; )
233
- i[d] != null && rn(i[d]);
234
- l || (d = "value", g !== void 0 && (g !== e[d] || C === "progress" && !g || C === "option" && g !== y[d]) && Ne(e, d, g, y[d], !1), d = "checked", m !== void 0 && m !== e[d] && Ne(e, d, m, y[d], !1));
233
+ i[d] != null && an(i[d]);
234
+ l || (d = "value", m !== void 0 && (m !== e[d] || C === "progress" && !m || C === "option" && m !== y[d]) && Ne(e, d, m, y[d], !1), d = "checked", g !== void 0 && g !== e[d] && Ne(e, d, g, y[d], !1));
235
235
  }
236
236
  return e;
237
237
  }
238
- function st(e, t, n) {
238
+ function ct(e, t, n) {
239
239
  try {
240
240
  typeof e == "function" ? e(t) : e.current = t;
241
241
  } catch (r) {
242
242
  x.__e(r, n);
243
243
  }
244
244
  }
245
- function Je(e, t, n) {
245
+ function et(e, t, n) {
246
246
  var r, o;
247
- if (x.unmount && x.unmount(e), (r = e.ref) && (r.current && r.current !== e.__e || st(r, null, t)), (r = e.__c) != null) {
247
+ if (x.unmount && x.unmount(e), (r = e.ref) && (r.current && r.current !== e.__e || ct(r, null, t)), (r = e.__c) != null) {
248
248
  if (r.componentWillUnmount)
249
249
  try {
250
250
  r.componentWillUnmount();
@@ -255,27 +255,27 @@ function Je(e, t, n) {
255
255
  }
256
256
  if (r = e.__k)
257
257
  for (o = 0; o < r.length; o++)
258
- r[o] && Je(r[o], t, n || typeof e.type != "function");
259
- n || e.__e == null || rn(e.__e), e.__ = e.__e = e.__d = void 0;
258
+ r[o] && et(r[o], t, n || typeof e.type != "function");
259
+ n || e.__e == null || an(e.__e), e.__ = e.__e = e.__d = void 0;
260
260
  }
261
- function Pr(e, t, n) {
261
+ function Er(e, t, n) {
262
262
  return this.constructor(e, n);
263
263
  }
264
- function he(e, t, n) {
264
+ function me(e, t, n) {
265
265
  var r, o, i, a;
266
- x.__ && x.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], at(t, e = (!r && n || t).__k = U(D, null, [e]), o || Se, Se, t.ownerSVGElement !== void 0, !r && n ? [n] : o ? null : t.firstChild ? we.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, a), cn(i, e, a);
266
+ x.__ && x.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], lt(t, e = (!r && n || t).__k = V(j, null, [e]), o || we, we, t.ownerSVGElement !== void 0, !r && n ? [n] : o ? null : t.firstChild ? Te.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, a), dn(i, e, a);
267
267
  }
268
- function un(e, t) {
269
- he(e, t, un);
268
+ function pn(e, t) {
269
+ me(e, t, pn);
270
270
  }
271
- function Er(e, t, n) {
271
+ function Rr(e, t, n) {
272
272
  var r, o, i, a, l = J({}, e.props);
273
273
  for (i in e.type && e.type.defaultProps && (a = e.type.defaultProps), t)
274
274
  i == "key" ? r = t[i] : i == "ref" ? o = t[i] : l[i] = t[i] === void 0 && a !== void 0 ? a[i] : t[i];
275
- return arguments.length > 2 && (l.children = arguments.length > 3 ? we.call(arguments, 2) : n), xe(e.type, l, r || e.key, o || e.ref, null);
275
+ return arguments.length > 2 && (l.children = arguments.length > 3 ? Te.call(arguments, 2) : n), Ce(e.type, l, r || e.key, o || e.ref, null);
276
276
  }
277
- function dn(e, t) {
278
- var n = { __c: t = "__cC" + tn++, __: e, Consumer: function(r, o) {
277
+ function fn(e, t) {
278
+ var n = { __c: t = "__cC" + rn++, __: e, Consumer: function(r, o) {
279
279
  return r.children(o);
280
280
  }, Provider: function(r) {
281
281
  var o, i;
@@ -283,7 +283,7 @@ function dn(e, t) {
283
283
  return i;
284
284
  }, this.shouldComponentUpdate = function(a) {
285
285
  this.props.value !== a.value && o.some(function(l) {
286
- l.__e = !0, Ye(l);
286
+ l.__e = !0, Xe(l);
287
287
  });
288
288
  }, this.sub = function(a) {
289
289
  o.push(a);
@@ -295,7 +295,7 @@ function dn(e, t) {
295
295
  } };
296
296
  return n.Provider.__ = n.Consumer.contextType = n;
297
297
  }
298
- we = nn.slice, x = { __e: function(e, t, n, r) {
298
+ Te = on.slice, x = { __e: function(e, t, n, r) {
299
299
  for (var o, i, a; t = t.__; )
300
300
  if ((o = t.__c) && !o.__)
301
301
  try {
@@ -305,47 +305,47 @@ we = nn.slice, x = { __e: function(e, t, n, r) {
305
305
  e = l;
306
306
  }
307
307
  throw e;
308
- } }, Xt = 0, W.prototype.setState = function(e, t) {
308
+ } }, tn = 0, Z.prototype.setState = function(e, t) {
309
309
  var n;
310
- n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = J({}, this.state), typeof e == "function" && (e = e(J({}, n), this.props)), e && J(n, e), e != null && this.__v && (t && this._sb.push(t), Ye(this));
311
- }, W.prototype.forceUpdate = function(e) {
312
- this.__v && (this.__e = !0, e && this.__h.push(e), Ye(this));
313
- }, W.prototype.render = D, ce = [], en = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Ke = function(e, t) {
310
+ n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = J({}, this.state), typeof e == "function" && (e = e(J({}, n), this.props)), e && J(n, e), e != null && this.__v && (t && this._sb.push(t), Xe(this));
311
+ }, Z.prototype.forceUpdate = function(e) {
312
+ this.__v && (this.__e = !0, e && this.__h.push(e), Xe(this));
313
+ }, Z.prototype.render = j, ce = [], nn = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Je = function(e, t) {
314
314
  return e.__v.__b - t.__v.__b;
315
- }, $e.__r = 0, tn = 0;
316
- function pn(e) {
315
+ }, Oe.__r = 0, rn = 0;
316
+ function _n(e) {
317
317
  var t, n, r = "";
318
318
  if (typeof e == "string" || typeof e == "number")
319
319
  r += e;
320
320
  else if (typeof e == "object")
321
321
  if (Array.isArray(e))
322
322
  for (t = 0; t < e.length; t++)
323
- e[t] && (n = pn(e[t])) && (r && (r += " "), r += n);
323
+ e[t] && (n = _n(e[t])) && (r && (r += " "), r += n);
324
324
  else
325
325
  for (t in e)
326
326
  e[t] && (r && (r += " "), r += t);
327
327
  return r;
328
328
  }
329
- function R() {
329
+ function L() {
330
330
  for (var e, t, n = 0, r = ""; n < arguments.length; )
331
- (e = arguments[n++]) && (t = pn(e)) && (r && (r += " "), r += t);
331
+ (e = arguments[n++]) && (t = _n(e)) && (r && (r += " "), r += t);
332
332
  return r;
333
333
  }
334
- var te, A, qe, wt, me = 0, fn = [], Ie = [], Tt = x.__b, Pt = x.__r, Et = x.diffed, Nt = x.__c, Rt = x.unmount;
334
+ var te, M, We, Pt, ge = 0, hn = [], Ie = [], Et = x.__b, Rt = x.__r, Nt = x.diffed, Lt = x.__c, It = x.unmount;
335
335
  function ue(e, t) {
336
- x.__h && x.__h(A, e, me || t), me = 0;
337
- var n = A.__H || (A.__H = { __: [], __h: [] });
336
+ x.__h && x.__h(M, e, ge || t), ge = 0;
337
+ var n = M.__H || (M.__H = { __: [], __h: [] });
338
338
  return e >= n.__.length && n.__.push({ __V: Ie }), n.__[e];
339
339
  }
340
- function B(e) {
341
- return me = 1, lt(bn, e);
340
+ function D(e) {
341
+ return ge = 1, ut(yn, e);
342
342
  }
343
- function lt(e, t, n) {
343
+ function ut(e, t, n) {
344
344
  var r = ue(te++, 2);
345
- if (r.t = e, !r.__c && (r.__ = [n ? n(t) : bn(void 0, t), function(l) {
345
+ if (r.t = e, !r.__c && (r.__ = [n ? n(t) : yn(void 0, t), function(l) {
346
346
  var c = r.__N ? r.__N[0] : r.__[0], d = r.t(c, l);
347
347
  c !== d && (r.__N = [d, r.__[1]], r.__c.setState({}));
348
- }], r.__c = A, !A.u)) {
348
+ }], r.__c = M, !M.u)) {
349
349
  var o = function(l, c, d) {
350
350
  if (!r.__c.__H)
351
351
  return !0;
@@ -364,33 +364,33 @@ function lt(e, t, n) {
364
364
  }
365
365
  }), !(!s && r.__c.props === l) && (!i || i.call(this, l, c, d));
366
366
  };
367
- A.u = !0;
368
- var i = A.shouldComponentUpdate, a = A.componentWillUpdate;
369
- A.componentWillUpdate = function(l, c, d) {
367
+ M.u = !0;
368
+ var i = M.shouldComponentUpdate, a = M.componentWillUpdate;
369
+ M.componentWillUpdate = function(l, c, d) {
370
370
  if (this.__e) {
371
371
  var p = i;
372
372
  i = void 0, o(l, c, d), i = p;
373
373
  }
374
374
  a && a.call(this, l, c, d);
375
- }, A.shouldComponentUpdate = o;
375
+ }, M.shouldComponentUpdate = o;
376
376
  }
377
377
  return r.__N || r.__;
378
378
  }
379
379
  function F(e, t) {
380
380
  var n = ue(te++, 3);
381
- !x.__s && ut(n.__H, t) && (n.__ = e, n.i = t, A.__H.__h.push(n));
381
+ !x.__s && pt(n.__H, t) && (n.__ = e, n.i = t, M.__H.__h.push(n));
382
382
  }
383
- function Te(e, t) {
383
+ function Pe(e, t) {
384
384
  var n = ue(te++, 4);
385
- !x.__s && ut(n.__H, t) && (n.__ = e, n.i = t, A.__h.push(n));
385
+ !x.__s && pt(n.__H, t) && (n.__ = e, n.i = t, M.__h.push(n));
386
386
  }
387
- function ie(e) {
388
- return me = 5, Ve(function() {
387
+ function ne(e) {
388
+ return ge = 5, He(function() {
389
389
  return { current: e };
390
390
  }, []);
391
391
  }
392
- function _n(e, t, n) {
393
- me = 6, Te(function() {
392
+ function mn(e, t, n) {
393
+ ge = 6, Pe(function() {
394
394
  return typeof e == "function" ? (e(t()), function() {
395
395
  return e(null);
396
396
  }) : e ? (e.current = t(), function() {
@@ -398,115 +398,115 @@ function _n(e, t, n) {
398
398
  }) : void 0;
399
399
  }, n == null ? n : n.concat(e));
400
400
  }
401
- function Ve(e, t) {
401
+ function He(e, t) {
402
402
  var n = ue(te++, 7);
403
- return ut(n.__H, t) ? (n.__V = e(), n.i = t, n.__h = e, n.__V) : n.__;
403
+ return pt(n.__H, t) ? (n.__V = e(), n.i = t, n.__h = e, n.__V) : n.__;
404
404
  }
405
- function hn(e, t) {
406
- return me = 8, Ve(function() {
405
+ function gn(e, t) {
406
+ return ge = 8, He(function() {
407
407
  return e;
408
408
  }, t);
409
409
  }
410
- function mn(e) {
411
- var t = A.context[e.__c], n = ue(te++, 9);
412
- return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(A)), t.props.value) : e.__;
410
+ function bn(e) {
411
+ var t = M.context[e.__c], n = ue(te++, 9);
412
+ return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(M)), t.props.value) : e.__;
413
413
  }
414
- function ct(e, t) {
414
+ function dt(e, t) {
415
415
  x.useDebugValue && x.useDebugValue(t ? t(e) : e);
416
416
  }
417
417
  function Nr(e) {
418
- var t = ue(te++, 10), n = B();
419
- return t.__ = e, A.componentDidCatch || (A.componentDidCatch = function(r, o) {
418
+ var t = ue(te++, 10), n = D();
419
+ return t.__ = e, M.componentDidCatch || (M.componentDidCatch = function(r, o) {
420
420
  t.__ && t.__(r, o), n[1](r);
421
421
  }), [n[0], function() {
422
422
  n[1](void 0);
423
423
  }];
424
424
  }
425
- function gn() {
425
+ function vn() {
426
426
  var e = ue(te++, 11);
427
427
  if (!e.__) {
428
- for (var t = A.__v; t !== null && !t.__m && t.__ !== null; )
428
+ for (var t = M.__v; t !== null && !t.__m && t.__ !== null; )
429
429
  t = t.__;
430
430
  var n = t.__m || (t.__m = [0, 0]);
431
431
  e.__ = "P" + n[0] + "-" + n[1]++;
432
432
  }
433
433
  return e.__;
434
434
  }
435
- function Rr() {
436
- for (var e; e = fn.shift(); )
435
+ function Lr() {
436
+ for (var e; e = hn.shift(); )
437
437
  if (e.__P && e.__H)
438
438
  try {
439
- e.__H.__h.forEach(Le), e.__H.__h.forEach(Xe), e.__H.__h = [];
439
+ e.__H.__h.forEach(Ae), e.__H.__h.forEach(tt), e.__H.__h = [];
440
440
  } catch (t) {
441
441
  e.__H.__h = [], x.__e(t, e.__v);
442
442
  }
443
443
  }
444
444
  x.__b = function(e) {
445
- A = null, Tt && Tt(e);
445
+ M = null, Et && Et(e);
446
446
  }, x.__r = function(e) {
447
- Pt && Pt(e), te = 0;
448
- var t = (A = e.__c).__H;
449
- t && (qe === A ? (t.__h = [], A.__h = [], t.__.forEach(function(n) {
447
+ Rt && Rt(e), te = 0;
448
+ var t = (M = e.__c).__H;
449
+ t && (We === M ? (t.__h = [], M.__h = [], t.__.forEach(function(n) {
450
450
  n.__N && (n.__ = n.__N), n.__V = Ie, n.__N = n.i = void 0;
451
- })) : (t.__h.forEach(Le), t.__h.forEach(Xe), t.__h = [], te = 0)), qe = A;
451
+ })) : (t.__h.forEach(Ae), t.__h.forEach(tt), t.__h = [], te = 0)), We = M;
452
452
  }, x.diffed = function(e) {
453
- Et && Et(e);
453
+ Nt && Nt(e);
454
454
  var t = e.__c;
455
- t && t.__H && (t.__H.__h.length && (fn.push(t) !== 1 && wt === x.requestAnimationFrame || ((wt = x.requestAnimationFrame) || Ir)(Rr)), t.__H.__.forEach(function(n) {
455
+ t && t.__H && (t.__H.__h.length && (hn.push(t) !== 1 && Pt === x.requestAnimationFrame || ((Pt = x.requestAnimationFrame) || Ir)(Lr)), t.__H.__.forEach(function(n) {
456
456
  n.i && (n.__H = n.i), n.__V !== Ie && (n.__ = n.__V), n.i = void 0, n.__V = Ie;
457
- })), qe = A = null;
457
+ })), We = M = null;
458
458
  }, x.__c = function(e, t) {
459
459
  t.some(function(n) {
460
460
  try {
461
- n.__h.forEach(Le), n.__h = n.__h.filter(function(r) {
462
- return !r.__ || Xe(r);
461
+ n.__h.forEach(Ae), n.__h = n.__h.filter(function(r) {
462
+ return !r.__ || tt(r);
463
463
  });
464
464
  } catch (r) {
465
465
  t.some(function(o) {
466
466
  o.__h && (o.__h = []);
467
467
  }), t = [], x.__e(r, n.__v);
468
468
  }
469
- }), Nt && Nt(e, t);
469
+ }), Lt && Lt(e, t);
470
470
  }, x.unmount = function(e) {
471
- Rt && Rt(e);
471
+ It && It(e);
472
472
  var t, n = e.__c;
473
473
  n && n.__H && (n.__H.__.forEach(function(r) {
474
474
  try {
475
- Le(r);
475
+ Ae(r);
476
476
  } catch (o) {
477
477
  t = o;
478
478
  }
479
479
  }), n.__H = void 0, t && x.__e(t, n.__v));
480
480
  };
481
- var It = typeof requestAnimationFrame == "function";
481
+ var At = typeof requestAnimationFrame == "function";
482
482
  function Ir(e) {
483
483
  var t, n = function() {
484
- clearTimeout(r), It && cancelAnimationFrame(t), setTimeout(e);
484
+ clearTimeout(r), At && cancelAnimationFrame(t), setTimeout(e);
485
485
  }, r = setTimeout(n, 100);
486
- It && (t = requestAnimationFrame(n));
486
+ At && (t = requestAnimationFrame(n));
487
487
  }
488
- function Le(e) {
489
- var t = A, n = e.__c;
490
- typeof n == "function" && (e.__c = void 0, n()), A = t;
488
+ function Ae(e) {
489
+ var t = M, n = e.__c;
490
+ typeof n == "function" && (e.__c = void 0, n()), M = t;
491
491
  }
492
- function Xe(e) {
493
- var t = A;
494
- e.__c = e.__(), A = t;
492
+ function tt(e) {
493
+ var t = M;
494
+ e.__c = e.__(), M = t;
495
495
  }
496
- function ut(e, t) {
496
+ function pt(e, t) {
497
497
  return !e || e.length !== t.length || t.some(function(n, r) {
498
498
  return n !== e[r];
499
499
  });
500
500
  }
501
- function bn(e, t) {
501
+ function yn(e, t) {
502
502
  return typeof t == "function" ? t(e) : t;
503
503
  }
504
- function vn(e, t) {
504
+ function xn(e, t) {
505
505
  for (var n in t)
506
506
  e[n] = t[n];
507
507
  return e;
508
508
  }
509
- function et(e, t) {
509
+ function nt(e, t) {
510
510
  for (var n in e)
511
511
  if (n !== "__source" && !(n in t))
512
512
  return !0;
@@ -515,73 +515,73 @@ function et(e, t) {
515
515
  return !0;
516
516
  return !1;
517
517
  }
518
- function Oe(e) {
518
+ function Ue(e) {
519
519
  this.props = e;
520
520
  }
521
- function yn(e, t) {
521
+ function Cn(e, t) {
522
522
  function n(o) {
523
523
  var i = this.props.ref, a = i == o.ref;
524
- return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : et(this.props, o);
524
+ return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : nt(this.props, o);
525
525
  }
526
526
  function r(o) {
527
- return this.shouldComponentUpdate = n, U(e, o);
527
+ return this.shouldComponentUpdate = n, V(e, o);
528
528
  }
529
529
  return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
530
530
  }
531
- (Oe.prototype = new W()).isPureReactComponent = !0, Oe.prototype.shouldComponentUpdate = function(e, t) {
532
- return et(this.props, e) || et(this.state, t);
531
+ (Ue.prototype = new Z()).isPureReactComponent = !0, Ue.prototype.shouldComponentUpdate = function(e, t) {
532
+ return nt(this.props, e) || nt(this.state, t);
533
533
  };
534
- var Lt = x.__b;
534
+ var Mt = x.__b;
535
535
  x.__b = function(e) {
536
- e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Lt && Lt(e);
536
+ e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Mt && Mt(e);
537
537
  };
538
- var Lr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
539
- function xn(e) {
538
+ var Ar = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
539
+ function kn(e) {
540
540
  function t(n) {
541
- var r = vn({}, n);
541
+ var r = xn({}, n);
542
542
  return delete r.ref, e(r, n.ref || null);
543
543
  }
544
- return t.$$typeof = Lr, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
544
+ return t.$$typeof = Ar, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
545
545
  }
546
- var At = function(e, t) {
546
+ var $t = function(e, t) {
547
547
  return e == null ? null : X(X(e).map(t));
548
- }, Cn = { map: At, forEach: At, count: function(e) {
548
+ }, Sn = { map: $t, forEach: $t, count: function(e) {
549
549
  return e ? X(e).length : 0;
550
550
  }, only: function(e) {
551
551
  var t = X(e);
552
552
  if (t.length !== 1)
553
553
  throw "Children.only";
554
554
  return t[0];
555
- }, toArray: X }, Ar = x.__e;
555
+ }, toArray: X }, Mr = x.__e;
556
556
  x.__e = function(e, t, n, r) {
557
557
  if (e.then) {
558
558
  for (var o, i = t; i = i.__; )
559
559
  if ((o = i.__c) && o.__c)
560
560
  return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
561
561
  }
562
- Ar(e, t, n, r);
562
+ Mr(e, t, n, r);
563
563
  };
564
- var Mt = x.unmount;
565
- function kn(e, t, n) {
564
+ var Ot = x.unmount;
565
+ function wn(e, t, n) {
566
566
  return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
567
567
  typeof r.__c == "function" && r.__c();
568
- }), e.__c.__H = null), (e = vn({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
569
- return kn(r, t, n);
568
+ }), e.__c.__H = null), (e = xn({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
569
+ return wn(r, t, n);
570
570
  })), e;
571
571
  }
572
- function Sn(e, t, n) {
572
+ function Tn(e, t, n) {
573
573
  return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
574
- return Sn(r, t, n);
574
+ return Tn(r, t, n);
575
575
  }), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
576
576
  }
577
- function Ce() {
577
+ function ke() {
578
578
  this.__u = 0, this.t = null, this.__b = null;
579
579
  }
580
- function wn(e) {
580
+ function Pn(e) {
581
581
  var t = e.__.__c;
582
582
  return t && t.__a && t.__a(e);
583
583
  }
584
- function Tn(e) {
584
+ function En(e) {
585
585
  var t, n, r;
586
586
  function o(i) {
587
587
  if (t || (t = e()).then(function(a) {
@@ -592,20 +592,20 @@ function Tn(e) {
592
592
  throw r;
593
593
  if (!n)
594
594
  throw t;
595
- return U(n, i);
595
+ return V(n, i);
596
596
  }
597
597
  return o.displayName = "Lazy", o.__f = !0, o;
598
598
  }
599
- function pe() {
599
+ function fe() {
600
600
  this.u = null, this.o = null;
601
601
  }
602
602
  x.unmount = function(e) {
603
603
  var t = e.__c;
604
- t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Mt && Mt(e);
605
- }, (Ce.prototype = new W()).__c = function(e, t) {
604
+ t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Ot && Ot(e);
605
+ }, (ke.prototype = new Z()).__c = function(e, t) {
606
606
  var n = t.__c, r = this;
607
607
  r.t == null && (r.t = []), r.t.push(n);
608
- var o = wn(r.__v), i = !1, a = function() {
608
+ var o = Pn(r.__v), i = !1, a = function() {
609
609
  i || (i = !0, n.__R = null, o ? o(l) : l());
610
610
  };
611
611
  n.__R = a;
@@ -613,7 +613,7 @@ x.unmount = function(e) {
613
613
  if (!--r.__u) {
614
614
  if (r.state.__a) {
615
615
  var c = r.state.__a;
616
- r.__v.__k[0] = Sn(c, c.__c.__P, c.__c.__O);
616
+ r.__v.__k[0] = Tn(c, c.__c.__P, c.__c.__O);
617
617
  }
618
618
  var d;
619
619
  for (r.setState({ __a: r.__b = null }); d = r.t.pop(); )
@@ -621,20 +621,20 @@ x.unmount = function(e) {
621
621
  }
622
622
  };
623
623
  r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(a, a);
624
- }, Ce.prototype.componentWillUnmount = function() {
624
+ }, ke.prototype.componentWillUnmount = function() {
625
625
  this.t = [];
626
- }, Ce.prototype.render = function(e, t) {
626
+ }, ke.prototype.render = function(e, t) {
627
627
  if (this.__b) {
628
628
  if (this.__v.__k) {
629
629
  var n = document.createElement("div"), r = this.__v.__k[0].__c;
630
- this.__v.__k[0] = kn(this.__b, n, r.__O = r.__P);
630
+ this.__v.__k[0] = wn(this.__b, n, r.__O = r.__P);
631
631
  }
632
632
  this.__b = null;
633
633
  }
634
- var o = t.__a && U(D, null, e.fallback);
635
- return o && (o.__u &= -33), [U(D, null, t.__a ? null : e.children), o];
634
+ var o = t.__a && V(j, null, e.fallback);
635
+ return o && (o.__u &= -33), [V(j, null, t.__a ? null : e.children), o];
636
636
  };
637
- var $t = function(e, t, n) {
637
+ var Ut = function(e, t, n) {
638
638
  if (++n[1] === n[0] && e.o.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.o.size))
639
639
  for (n = e.u; n; ) {
640
640
  for (; n.length > 3; )
@@ -644,153 +644,153 @@ var $t = function(e, t, n) {
644
644
  e.u = n = n[2];
645
645
  }
646
646
  };
647
- function Mr(e) {
647
+ function $r(e) {
648
648
  return this.getChildContext = function() {
649
649
  return e.context;
650
650
  }, e.children;
651
651
  }
652
- function $r(e) {
652
+ function Or(e) {
653
653
  var t = this, n = e.i;
654
654
  t.componentWillUnmount = function() {
655
- he(null, t.l), t.l = null, t.i = null;
655
+ me(null, t.l), t.l = null, t.i = null;
656
656
  }, t.i && t.i !== n && t.componentWillUnmount(), t.l || (t.i = n, t.l = { nodeType: 1, parentNode: n, childNodes: [], appendChild: function(r) {
657
657
  this.childNodes.push(r), t.i.appendChild(r);
658
658
  }, insertBefore: function(r, o) {
659
659
  this.childNodes.push(r), t.i.appendChild(r);
660
660
  }, removeChild: function(r) {
661
661
  this.childNodes.splice(this.childNodes.indexOf(r) >>> 1, 1), t.i.removeChild(r);
662
- } }), he(U(Mr, { context: t.context }, e.__v), t.l);
662
+ } }), me(V($r, { context: t.context }, e.__v), t.l);
663
663
  }
664
- function Pn(e, t) {
665
- var n = U($r, { __v: e, i: t });
664
+ function Rn(e, t) {
665
+ var n = V(Or, { __v: e, i: t });
666
666
  return n.containerInfo = t, n;
667
667
  }
668
- (pe.prototype = new W()).__a = function(e) {
669
- var t = this, n = wn(t.__v), r = t.o.get(e);
668
+ (fe.prototype = new Z()).__a = function(e) {
669
+ var t = this, n = Pn(t.__v), r = t.o.get(e);
670
670
  return r[0]++, function(o) {
671
671
  var i = function() {
672
- t.props.revealOrder ? (r.push(o), $t(t, e, r)) : o();
672
+ t.props.revealOrder ? (r.push(o), Ut(t, e, r)) : o();
673
673
  };
674
674
  n ? n(i) : i();
675
675
  };
676
- }, pe.prototype.render = function(e) {
676
+ }, fe.prototype.render = function(e) {
677
677
  this.u = null, this.o = /* @__PURE__ */ new Map();
678
678
  var t = X(e.children);
679
679
  e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
680
680
  for (var n = t.length; n--; )
681
681
  this.o.set(t[n], this.u = [1, 0, this.u]);
682
682
  return e.children;
683
- }, pe.prototype.componentDidUpdate = pe.prototype.componentDidMount = function() {
683
+ }, fe.prototype.componentDidUpdate = fe.prototype.componentDidMount = function() {
684
684
  var e = this;
685
685
  this.o.forEach(function(t, n) {
686
- $t(e, n, t);
686
+ Ut(e, n, t);
687
687
  });
688
688
  };
689
- var En = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Or = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Ur = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Vr = /[A-Z0-9]/g, Hr = typeof document < "u", Br = function(e) {
689
+ var Nn = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Ur = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Vr = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Hr = /[A-Z0-9]/g, Br = typeof document < "u", Dr = function(e) {
690
690
  return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
691
691
  };
692
- function Nn(e, t, n) {
693
- return t.__k == null && (t.textContent = ""), he(e, t), typeof n == "function" && n(), e ? e.__c : null;
692
+ function Ln(e, t, n) {
693
+ return t.__k == null && (t.textContent = ""), me(e, t), typeof n == "function" && n(), e ? e.__c : null;
694
694
  }
695
- function Rn(e, t, n) {
696
- return un(e, t), typeof n == "function" && n(), e ? e.__c : null;
695
+ function In(e, t, n) {
696
+ return pn(e, t), typeof n == "function" && n(), e ? e.__c : null;
697
697
  }
698
- W.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
699
- Object.defineProperty(W.prototype, e, { configurable: !0, get: function() {
698
+ Z.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
699
+ Object.defineProperty(Z.prototype, e, { configurable: !0, get: function() {
700
700
  return this["UNSAFE_" + e];
701
701
  }, set: function(t) {
702
702
  Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
703
703
  } });
704
704
  });
705
- var Ot = x.event;
706
- function Dr() {
707
- }
705
+ var Vt = x.event;
708
706
  function jr() {
709
- return this.cancelBubble;
710
707
  }
711
708
  function Fr() {
709
+ return this.cancelBubble;
710
+ }
711
+ function qr() {
712
712
  return this.defaultPrevented;
713
713
  }
714
714
  x.event = function(e) {
715
- return Ot && (e = Ot(e)), e.persist = Dr, e.isPropagationStopped = jr, e.isDefaultPrevented = Fr, e.nativeEvent = e;
715
+ return Vt && (e = Vt(e)), e.persist = jr, e.isPropagationStopped = Fr, e.isDefaultPrevented = qr, e.nativeEvent = e;
716
716
  };
717
- var dt, qr = { enumerable: !1, configurable: !0, get: function() {
717
+ var ft, zr = { enumerable: !1, configurable: !0, get: function() {
718
718
  return this.class;
719
- } }, Ut = x.vnode;
719
+ } }, Ht = x.vnode;
720
720
  x.vnode = function(e) {
721
721
  typeof e.type == "string" && function(t) {
722
722
  var n = t.props, r = t.type, o = {};
723
723
  for (var i in n) {
724
724
  var a = n[i];
725
- if (!(i === "value" && "defaultValue" in n && a == null || Hr && i === "children" && r === "noscript" || i === "class" || i === "className")) {
725
+ if (!(i === "value" && "defaultValue" in n && a == null || Br && i === "children" && r === "noscript" || i === "class" || i === "className")) {
726
726
  var l = i.toLowerCase();
727
- i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && a === !0 ? a = "" : l === "ondoubleclick" ? i = "ondblclick" : l !== "onchange" || r !== "input" && r !== "textarea" || Br(n.type) ? l === "onfocus" ? i = "onfocusin" : l === "onblur" ? i = "onfocusout" : Ur.test(i) ? i = l : r.indexOf("-") === -1 && Or.test(i) ? i = i.replace(Vr, "-$&").toLowerCase() : a === null && (a = void 0) : l = i = "oninput", l === "oninput" && o[i = l] && (i = "oninputCapture"), o[i] = a;
727
+ i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && a === !0 ? a = "" : l === "ondoubleclick" ? i = "ondblclick" : l !== "onchange" || r !== "input" && r !== "textarea" || Dr(n.type) ? l === "onfocus" ? i = "onfocusin" : l === "onblur" ? i = "onfocusout" : Vr.test(i) ? i = l : r.indexOf("-") === -1 && Ur.test(i) ? i = i.replace(Hr, "-$&").toLowerCase() : a === null && (a = void 0) : l = i = "oninput", l === "oninput" && o[i = l] && (i = "oninputCapture"), o[i] = a;
728
728
  }
729
729
  }
730
730
  r == "select" && o.multiple && Array.isArray(o.value) && (o.value = X(n.children).forEach(function(c) {
731
731
  c.props.selected = o.value.indexOf(c.props.value) != -1;
732
732
  })), r == "select" && o.defaultValue != null && (o.value = X(n.children).forEach(function(c) {
733
733
  c.props.selected = o.multiple ? o.defaultValue.indexOf(c.props.value) != -1 : o.defaultValue == c.props.value;
734
- })), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", qr)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
735
- }(e), e.$$typeof = En, Ut && Ut(e);
734
+ })), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", zr)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
735
+ }(e), e.$$typeof = Nn, Ht && Ht(e);
736
736
  };
737
- var Vt = x.__r;
737
+ var Bt = x.__r;
738
738
  x.__r = function(e) {
739
- Vt && Vt(e), dt = e.__c;
739
+ Bt && Bt(e), ft = e.__c;
740
740
  };
741
- var Ht = x.diffed;
741
+ var Dt = x.diffed;
742
742
  x.diffed = function(e) {
743
- Ht && Ht(e);
743
+ Dt && Dt(e);
744
744
  var t = e.props, n = e.__e;
745
- n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), dt = null;
745
+ n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), ft = null;
746
746
  };
747
- var In = { ReactCurrentDispatcher: { current: { readContext: function(e) {
748
- return dt.__n[e.__c].props.value;
749
- } } } }, zr = "17.0.2";
750
- function Ln(e) {
751
- return U.bind(null, e);
752
- }
753
- function Pe(e) {
754
- return !!e && e.$$typeof === En;
755
- }
756
- function An(e) {
757
- return Pe(e) && e.type === D;
758
- }
747
+ var An = { ReactCurrentDispatcher: { current: { readContext: function(e) {
748
+ return ft.__n[e.__c].props.value;
749
+ } } } }, Wr = "17.0.2";
759
750
  function Mn(e) {
760
- return Pe(e) ? Er.apply(null, arguments) : e;
751
+ return V.bind(null, e);
752
+ }
753
+ function Ee(e) {
754
+ return !!e && e.$$typeof === Nn;
761
755
  }
762
756
  function $n(e) {
763
- return !!e.__k && (he(null, e), !0);
757
+ return Ee(e) && e.type === j;
764
758
  }
765
759
  function On(e) {
760
+ return Ee(e) ? Rr.apply(null, arguments) : e;
761
+ }
762
+ function Un(e) {
763
+ return !!e.__k && (me(null, e), !0);
764
+ }
765
+ function Vn(e) {
766
766
  return e && (e.base || e.nodeType === 1 && e) || null;
767
767
  }
768
- var Un = function(e, t) {
768
+ var Hn = function(e, t) {
769
769
  return e(t);
770
- }, Vn = function(e, t) {
770
+ }, Bn = function(e, t) {
771
771
  return e(t);
772
- }, Hn = D;
773
- function pt(e) {
772
+ }, Dn = j;
773
+ function _t(e) {
774
774
  e();
775
775
  }
776
- function Bn(e) {
776
+ function jn(e) {
777
777
  return e;
778
778
  }
779
- function Dn() {
780
- return [!1, pt];
779
+ function Fn() {
780
+ return [!1, _t];
781
781
  }
782
- var jn = Te, Fn = Pe;
783
- function qn(e, t) {
784
- var n = t(), r = B({ h: { __: n, v: t } }), o = r[0].h, i = r[1];
785
- return Te(function() {
786
- o.__ = n, o.v = t, ze(o) && i({ h: o });
782
+ var qn = Pe, zn = Ee;
783
+ function Wn(e, t) {
784
+ var n = t(), r = D({ h: { __: n, v: t } }), o = r[0].h, i = r[1];
785
+ return Pe(function() {
786
+ o.__ = n, o.v = t, Ze(o) && i({ h: o });
787
787
  }, [e, n, t]), F(function() {
788
- return ze(o) && i({ h: o }), e(function() {
789
- ze(o) && i({ h: o });
788
+ return Ze(o) && i({ h: o }), e(function() {
789
+ Ze(o) && i({ h: o });
790
790
  });
791
791
  }, [e]), n;
792
792
  }
793
- function ze(e) {
793
+ function Ze(e) {
794
794
  var t, n, r = e.v, o = e.__;
795
795
  try {
796
796
  var i = r();
@@ -799,55 +799,55 @@ function ze(e) {
799
799
  return !0;
800
800
  }
801
801
  }
802
- var Wr = { useState: B, useId: gn, useReducer: lt, useEffect: F, useLayoutEffect: Te, useInsertionEffect: jn, useTransition: Dn, useDeferredValue: Bn, useSyncExternalStore: qn, startTransition: pt, useRef: ie, useImperativeHandle: _n, useMemo: Ve, useCallback: hn, useContext: mn, useDebugValue: ct, version: "17.0.2", Children: Cn, render: Nn, hydrate: Rn, unmountComponentAtNode: $n, createPortal: Pn, createElement: U, createContext: dn, createFactory: Ln, cloneElement: Mn, createRef: on, Fragment: D, isValidElement: Pe, isElement: Fn, isFragment: An, findDOMNode: On, Component: W, PureComponent: Oe, memo: yn, forwardRef: xn, flushSync: Vn, unstable_batchedUpdates: Un, StrictMode: Hn, Suspense: Ce, SuspenseList: pe, lazy: Tn, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: In };
803
- const Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
802
+ var Zr = { useState: D, useId: vn, useReducer: ut, useEffect: F, useLayoutEffect: Pe, useInsertionEffect: qn, useTransition: Fn, useDeferredValue: jn, useSyncExternalStore: Wn, startTransition: _t, useRef: ne, useImperativeHandle: mn, useMemo: He, useCallback: gn, useContext: bn, useDebugValue: dt, version: "17.0.2", Children: Sn, render: Ln, hydrate: In, unmountComponentAtNode: Un, createPortal: Rn, createElement: V, createContext: fn, createFactory: Mn, cloneElement: On, createRef: sn, Fragment: j, isValidElement: Ee, isElement: zn, isFragment: $n, findDOMNode: Vn, Component: Z, PureComponent: Ue, memo: Cn, forwardRef: kn, flushSync: Bn, unstable_batchedUpdates: Hn, StrictMode: Dn, Suspense: ke, SuspenseList: fe, lazy: En, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: An };
803
+ const Gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
804
804
  __proto__: null,
805
- Children: Cn,
806
- Component: W,
807
- Fragment: D,
808
- PureComponent: Oe,
809
- StrictMode: Hn,
810
- Suspense: Ce,
811
- SuspenseList: pe,
812
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: In,
813
- cloneElement: Mn,
814
- createContext: dn,
815
- createElement: U,
816
- createFactory: Ln,
817
- createPortal: Pn,
818
- createRef: on,
819
- default: Wr,
820
- findDOMNode: On,
821
- flushSync: Vn,
822
- forwardRef: xn,
823
- hydrate: Rn,
824
- isElement: Fn,
825
- isFragment: An,
826
- isValidElement: Pe,
827
- lazy: Tn,
828
- memo: yn,
829
- render: Nn,
830
- startTransition: pt,
831
- unmountComponentAtNode: $n,
832
- unstable_batchedUpdates: Un,
833
- useCallback: hn,
834
- useContext: mn,
835
- useDebugValue: ct,
836
- useDeferredValue: Bn,
805
+ Children: Sn,
806
+ Component: Z,
807
+ Fragment: j,
808
+ PureComponent: Ue,
809
+ StrictMode: Dn,
810
+ Suspense: ke,
811
+ SuspenseList: fe,
812
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: An,
813
+ cloneElement: On,
814
+ createContext: fn,
815
+ createElement: V,
816
+ createFactory: Mn,
817
+ createPortal: Rn,
818
+ createRef: sn,
819
+ default: Zr,
820
+ findDOMNode: Vn,
821
+ flushSync: Bn,
822
+ forwardRef: kn,
823
+ hydrate: In,
824
+ isElement: zn,
825
+ isFragment: $n,
826
+ isValidElement: Ee,
827
+ lazy: En,
828
+ memo: Cn,
829
+ render: Ln,
830
+ startTransition: _t,
831
+ unmountComponentAtNode: Un,
832
+ unstable_batchedUpdates: Hn,
833
+ useCallback: gn,
834
+ useContext: bn,
835
+ useDebugValue: dt,
836
+ useDeferredValue: jn,
837
837
  useEffect: F,
838
838
  useErrorBoundary: Nr,
839
- useId: gn,
840
- useImperativeHandle: _n,
841
- useInsertionEffect: jn,
842
- useLayoutEffect: Te,
843
- useMemo: Ve,
844
- useReducer: lt,
845
- useRef: ie,
846
- useState: B,
847
- useSyncExternalStore: qn,
848
- useTransition: Dn,
849
- version: zr
850
- }, Symbol.toStringTag, { value: "Module" })), Bt = (e) => {
839
+ useId: vn,
840
+ useImperativeHandle: mn,
841
+ useInsertionEffect: qn,
842
+ useLayoutEffect: Pe,
843
+ useMemo: He,
844
+ useReducer: ut,
845
+ useRef: ne,
846
+ useState: D,
847
+ useSyncExternalStore: Wn,
848
+ useTransition: Fn,
849
+ version: Wr
850
+ }, Symbol.toStringTag, { value: "Module" })), jt = (e) => {
851
851
  let t;
852
852
  const n = /* @__PURE__ */ new Set(), r = (c, d) => {
853
853
  const p = typeof c == "function" ? c(t) : c;
@@ -857,10 +857,10 @@ const Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
857
857
  }
858
858
  }, o = () => t, l = { setState: r, getState: o, subscribe: (c) => (n.add(c), () => n.delete(c)), destroy: () => n.clear() };
859
859
  return t = e(r, o, l), l;
860
- }, Gr = (e) => e ? Bt(e) : Bt;
861
- var zn = { exports: {} }, Wn = {};
862
- const Zn = /* @__PURE__ */ dr(Zr);
863
- var Gn = { exports: {} }, Qn = {};
860
+ }, Qr = (e) => e ? jt(e) : jt;
861
+ var Zn = { exports: {} }, Gn = {};
862
+ const Qn = /* @__PURE__ */ pr(Gr);
863
+ var Kn = { exports: {} }, Yn = {};
864
864
  /**
865
865
  * @license React
866
866
  * use-sync-external-store-shim.production.min.js
@@ -870,38 +870,38 @@ var Gn = { exports: {} }, Qn = {};
870
870
  * This source code is licensed under the MIT license found in the
871
871
  * LICENSE file in the root directory of this source tree.
872
872
  */
873
- var ge = Zn;
874
- function Qr(e, t) {
873
+ var be = Qn;
874
+ function Kr(e, t) {
875
875
  return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
876
876
  }
877
- var Kr = typeof Object.is == "function" ? Object.is : Qr, Yr = ge.useState, Jr = ge.useEffect, Xr = ge.useLayoutEffect, eo = ge.useDebugValue;
878
- function to(e, t) {
879
- var n = t(), r = Yr({ inst: { value: n, getSnapshot: t } }), o = r[0].inst, i = r[1];
880
- return Xr(function() {
881
- o.value = n, o.getSnapshot = t, We(o) && i({ inst: o });
882
- }, [e, n, t]), Jr(function() {
883
- return We(o) && i({ inst: o }), e(function() {
884
- We(o) && i({ inst: o });
877
+ var Yr = typeof Object.is == "function" ? Object.is : Kr, Jr = be.useState, Xr = be.useEffect, eo = be.useLayoutEffect, to = be.useDebugValue;
878
+ function no(e, t) {
879
+ var n = t(), r = Jr({ inst: { value: n, getSnapshot: t } }), o = r[0].inst, i = r[1];
880
+ return eo(function() {
881
+ o.value = n, o.getSnapshot = t, Ge(o) && i({ inst: o });
882
+ }, [e, n, t]), Xr(function() {
883
+ return Ge(o) && i({ inst: o }), e(function() {
884
+ Ge(o) && i({ inst: o });
885
885
  });
886
- }, [e]), eo(n), n;
886
+ }, [e]), to(n), n;
887
887
  }
888
- function We(e) {
888
+ function Ge(e) {
889
889
  var t = e.getSnapshot;
890
890
  e = e.value;
891
891
  try {
892
892
  var n = t();
893
- return !Kr(e, n);
893
+ return !Yr(e, n);
894
894
  } catch {
895
895
  return !0;
896
896
  }
897
897
  }
898
- function no(e, t) {
898
+ function ro(e, t) {
899
899
  return t();
900
900
  }
901
- var ro = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? no : to;
902
- Qn.useSyncExternalStore = ge.useSyncExternalStore !== void 0 ? ge.useSyncExternalStore : ro;
903
- Gn.exports = Qn;
904
- var oo = Gn.exports;
901
+ var oo = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? ro : no;
902
+ Yn.useSyncExternalStore = be.useSyncExternalStore !== void 0 ? be.useSyncExternalStore : oo;
903
+ Kn.exports = Yn;
904
+ var io = Kn.exports;
905
905
  /**
906
906
  * @license React
907
907
  * use-sync-external-store-shim/with-selector.production.min.js
@@ -911,32 +911,32 @@ var oo = Gn.exports;
911
911
  * This source code is licensed under the MIT license found in the
912
912
  * LICENSE file in the root directory of this source tree.
913
913
  */
914
- var He = Zn, io = oo;
915
- function ao(e, t) {
914
+ var Be = Qn, ao = io;
915
+ function so(e, t) {
916
916
  return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
917
917
  }
918
- var so = typeof Object.is == "function" ? Object.is : ao, lo = io.useSyncExternalStore, co = He.useRef, uo = He.useEffect, po = He.useMemo, fo = He.useDebugValue;
919
- Wn.useSyncExternalStoreWithSelector = function(e, t, n, r, o) {
920
- var i = co(null);
918
+ var lo = typeof Object.is == "function" ? Object.is : so, co = ao.useSyncExternalStore, uo = Be.useRef, po = Be.useEffect, fo = Be.useMemo, _o = Be.useDebugValue;
919
+ Gn.useSyncExternalStoreWithSelector = function(e, t, n, r, o) {
920
+ var i = uo(null);
921
921
  if (i.current === null) {
922
922
  var a = { hasValue: !1, value: null };
923
923
  i.current = a;
924
924
  } else
925
925
  a = i.current;
926
- i = po(function() {
926
+ i = fo(function() {
927
927
  function c(f) {
928
928
  if (!d) {
929
929
  if (d = !0, p = f, f = r(f), o !== void 0 && a.hasValue) {
930
- var g = a.value;
931
- if (o(g, f))
932
- return s = g;
930
+ var m = a.value;
931
+ if (o(m, f))
932
+ return s = m;
933
933
  }
934
934
  return s = f;
935
935
  }
936
- if (g = s, so(p, f))
937
- return g;
938
- var m = r(f);
939
- return o !== void 0 && o(g, m) ? g : (p = f, s = m);
936
+ if (m = s, lo(p, f))
937
+ return m;
938
+ var g = r(f);
939
+ return o !== void 0 && o(m, g) ? m : (p = f, s = g);
940
940
  }
941
941
  var d = !1, p, s, _ = n === void 0 ? null : n;
942
942
  return [function() {
@@ -945,30 +945,30 @@ Wn.useSyncExternalStoreWithSelector = function(e, t, n, r, o) {
945
945
  return c(_());
946
946
  }];
947
947
  }, [t, n, r, o]);
948
- var l = lo(e, i[0], i[1]);
949
- return uo(function() {
948
+ var l = co(e, i[0], i[1]);
949
+ return po(function() {
950
950
  a.hasValue = !0, a.value = l;
951
- }, [l]), fo(l), l;
951
+ }, [l]), _o(l), l;
952
952
  };
953
- zn.exports = Wn;
954
- var _o = zn.exports;
955
- const ho = /* @__PURE__ */ pr(_o), { useSyncExternalStoreWithSelector: mo } = ho;
956
- function go(e, t = e.getState, n) {
957
- const r = mo(
953
+ Zn.exports = Gn;
954
+ var ho = Zn.exports;
955
+ const mo = /* @__PURE__ */ fr(ho), { useSyncExternalStoreWithSelector: go } = mo;
956
+ function bo(e, t = e.getState, n) {
957
+ const r = go(
958
958
  e.subscribe,
959
959
  e.getState,
960
960
  e.getServerState || e.getState,
961
961
  t,
962
962
  n
963
963
  );
964
- return ct(r), r;
964
+ return dt(r), r;
965
965
  }
966
- const Dt = (e) => {
967
- const t = typeof e == "function" ? Gr(e) : e, n = (r, o) => go(t, r, o);
966
+ const Ft = (e) => {
967
+ const t = typeof e == "function" ? Qr(e) : e, n = (r, o) => bo(t, r, o);
968
968
  return Object.assign(n, t), n;
969
- }, Kn = (e) => e ? Dt(e) : Dt;
970
- var tt = /* @__PURE__ */ ((e) => (e[e.And = 1] = "And", e[e.Or = 2] = "Or", e))(tt || {});
971
- const jt = 1, ft = {
969
+ }, Jn = (e) => e ? Ft(e) : Ft;
970
+ var rt = /* @__PURE__ */ ((e) => (e[e.And = 1] = "And", e[e.Or = 2] = "Or", e))(rt || {});
971
+ const qt = 1, ht = {
972
972
  eq(e, t) {
973
973
  return e == t;
974
974
  },
@@ -1028,7 +1028,7 @@ const jt = 1, ft = {
1028
1028
  notcontains(e, t) {
1029
1029
  return !this.contains(e, t);
1030
1030
  }
1031
- }, bo = (e, t, n) => {
1031
+ }, vo = (e, t, n) => {
1032
1032
  switch (t) {
1033
1033
  case b.VideoVoice:
1034
1034
  return !!(e && e.value);
@@ -1037,7 +1037,7 @@ const jt = 1, ft = {
1037
1037
  case b.MultipleSelect:
1038
1038
  return !!(n && Object.keys(n).length);
1039
1039
  case b.RecordedTask:
1040
- return (n == null ? void 0 : n.taskStatus) === z.Completed;
1040
+ return (n == null ? void 0 : n.taskStatus) === W.Completed;
1041
1041
  case b.TextUrlPrompt:
1042
1042
  return !e.value;
1043
1043
  case b.ConsentLegal:
@@ -1053,13 +1053,13 @@ const jt = 1, ft = {
1053
1053
  default:
1054
1054
  return !0;
1055
1055
  }
1056
- }, Yn = (e, t) => {
1056
+ }, Xn = (e, t) => {
1057
1057
  if (t === b.Matrix) {
1058
1058
  const n = Object.keys(e).length, r = Object.values(e).filter((o) => o !== null).length;
1059
1059
  return r > 0 && r < n;
1060
1060
  }
1061
1061
  return !1;
1062
- }, Jn = ({
1062
+ }, er = ({
1063
1063
  cards: e,
1064
1064
  index: t,
1065
1065
  hasEndCard: n,
@@ -1081,7 +1081,7 @@ const jt = 1, ft = {
1081
1081
  const f = s[0];
1082
1082
  if (f.questionIndex === void 0 || f.questionIndex > r.length)
1083
1083
  continue;
1084
- let g = Ft({
1084
+ let m = zt({
1085
1085
  comparator: f.comparator,
1086
1086
  // @ts-expect-error - unknown response type
1087
1087
  response: r[f.questionIndex],
@@ -1089,8 +1089,8 @@ const jt = 1, ft = {
1089
1089
  type: i.type,
1090
1090
  value: f.value
1091
1091
  });
1092
- for (let m = 1; m < s.length; m += 2) {
1093
- const y = s[m], v = s[m + 1], C = Ft({
1092
+ for (let g = 1; g < s.length; g += 2) {
1093
+ const y = s[g], v = s[g + 1], C = zt({
1094
1094
  comparator: v.comparator,
1095
1095
  // @ts-expect-error - unknown response type
1096
1096
  response: r[v.questionIndex],
@@ -1098,9 +1098,9 @@ const jt = 1, ft = {
1098
1098
  type: e[v.questionIndex].type,
1099
1099
  value: v.value
1100
1100
  });
1101
- y === tt.And ? g && (g = C) : y === tt.Or && (g || (g = C));
1101
+ y === rt.And ? m && (m = C) : y === rt.Or && (m || (m = C));
1102
1102
  }
1103
- if (g) {
1103
+ if (m) {
1104
1104
  a = _ === -1 && n ? e.length - 1 : _;
1105
1105
  break;
1106
1106
  }
@@ -1108,7 +1108,7 @@ const jt = 1, ft = {
1108
1108
  const c = e.findIndex((p) => p.type === b.Uploading);
1109
1109
  let d;
1110
1110
  return c > 0 ? d = n ? e.length - 3 : e.length - 2 : d = e.length - 1, t >= d || a === -1 || a !== null && a > d ? c > 0 && Object.values(o).some((s) => s.isSubmitted && !s.isComplete) ? c : n ? e.length - 1 : null : a === -1 ? null : a;
1111
- }, Ft = ({
1111
+ }, zt = ({
1112
1112
  comparator: e,
1113
1113
  response: t,
1114
1114
  type: n,
@@ -1121,7 +1121,7 @@ const jt = 1, ft = {
1121
1121
  case b.ConsentLegal:
1122
1122
  return t && t.submitted === !0;
1123
1123
  case b.RecordedTask:
1124
- return "taskStatus" in t && t.taskStatus === z.Completed;
1124
+ return "taskStatus" in t && t.taskStatus === W.Completed;
1125
1125
  case b.Likert:
1126
1126
  return Number.isInteger(t);
1127
1127
  case b.Open:
@@ -1139,9 +1139,9 @@ const jt = 1, ft = {
1139
1139
  return !1;
1140
1140
  }
1141
1141
  if (e === G.GivenUp)
1142
- return n === b.RecordedTask ? "taskStatus" in t && t.taskStatus === z.GivenUp : !0;
1142
+ return n === b.RecordedTask ? "taskStatus" in t && t.taskStatus === W.GivenUp : !0;
1143
1143
  if (e === G.Partial)
1144
- return n === b.Matrix ? Yn(t, n) : !1;
1144
+ return n === b.Matrix ? Xn(t, n) : !1;
1145
1145
  if (e === G.Skipped)
1146
1146
  switch (n) {
1147
1147
  case b.TextUrlPrompt:
@@ -1149,7 +1149,7 @@ const jt = 1, ft = {
1149
1149
  case b.ConsentLegal:
1150
1150
  return t === null;
1151
1151
  case b.RecordedTask:
1152
- return "taskStatus" in t && t.taskStatus === z.Abandoned;
1152
+ return "taskStatus" in t && t.taskStatus === W.Abandoned;
1153
1153
  case b.Likert:
1154
1154
  return t === null;
1155
1155
  case b.Open:
@@ -1167,12 +1167,12 @@ const jt = 1, ft = {
1167
1167
  default:
1168
1168
  return !1;
1169
1169
  }
1170
- return ft[e](t, r);
1171
- }, vo = 13, yo = (e, t) => e.reduce((n, r) => n.concat(n.map((o) => [...o, r])), [[]]).filter((n) => t || n.length > 0), xo = (e) => {
1170
+ return ht[e](t, r);
1171
+ }, yo = 13, xo = (e, t) => e.reduce((n, r) => n.concat(n.map((o) => [...o, r])), [[]]).filter((n) => t || n.length > 0), Co = (e) => {
1172
1172
  var t, n, r;
1173
1173
  switch (e.type) {
1174
1174
  case b.MultipleSelect:
1175
- return !e || !e.props || !e.props.options ? null : e.props.options.length > vo ? e.props.options.map((o) => [o.value]) : yo(e.props.options.map((o) => o.value), !e.props.properties.required);
1175
+ return !e || !e.props || !e.props.options ? null : e.props.options.length > yo ? e.props.options.map((o) => [o.value]) : xo(e.props.options.map((o) => o.value), !e.props.properties.required);
1176
1176
  case b.MultipleChoice: {
1177
1177
  if (!e || !e.props || !e.props.options)
1178
1178
  return null;
@@ -1199,22 +1199,22 @@ const jt = 1, ft = {
1199
1199
  return ["1", ...e.props.properties.required ? [] : [""]];
1200
1200
  case b.RecordedTask:
1201
1201
  return [{
1202
- taskStatus: z.Completed
1202
+ taskStatus: W.Completed
1203
1203
  }, {
1204
- taskStatus: z.GivenUp
1204
+ taskStatus: W.GivenUp
1205
1205
  }, ...e.props.properties.required ? [] : [{
1206
- taskStatus: z.Abandoned
1206
+ taskStatus: W.Abandoned
1207
1207
  }]];
1208
1208
  case b.TextUrlPrompt:
1209
1209
  return [void 0, ...e.props.properties.required ? [] : [{
1210
1210
  skipped: !0
1211
1211
  }]];
1212
1212
  case b.ConsentLegal:
1213
- return [jt, ...e.props.properties.required ? [] : [null]];
1213
+ return [qt, ...e.props.properties.required ? [] : [null]];
1214
1214
  default:
1215
- return [jt];
1215
+ return [qt];
1216
1216
  }
1217
- }, Co = (e) => e in ft, ko = (e) => typeof e == "object" && e !== null && "taskStatus" in e, So = (e, t = []) => t.reduce((n, r) => {
1217
+ }, ko = (e) => e in ht, So = (e) => typeof e == "object" && e !== null && "taskStatus" in e, wo = (e, t = []) => t.reduce((n, r) => {
1218
1218
  const {
1219
1219
  group: o,
1220
1220
  target: i
@@ -1233,7 +1233,7 @@ const jt = 1, ft = {
1233
1233
  };
1234
1234
  });
1235
1235
  return [...n, ...a];
1236
- }, []), wo = (e, t) => {
1236
+ }, []), To = (e, t) => {
1237
1237
  const n = /* @__PURE__ */ new Set([b.Thanks, b.Uploading]);
1238
1238
  if (t >= e.length || t < 0 || n.has(e[t].type))
1239
1239
  return 0;
@@ -1245,12 +1245,12 @@ const jt = 1, ft = {
1245
1245
  [-1]: 0
1246
1246
  };
1247
1247
  for (let i = r.length - 2; i >= t; i--) {
1248
- const a = r[i], l = So(i, a.props.routingOptions);
1248
+ const a = r[i], l = wo(i, a.props.routingOptions);
1249
1249
  if (l.length === 0) {
1250
1250
  o[i] = o[i + 1] + 1;
1251
1251
  continue;
1252
1252
  }
1253
- let c = 0, d = xo(a);
1253
+ let c = 0, d = Co(a);
1254
1254
  if (d === null)
1255
1255
  return r.length - 1 - t;
1256
1256
  for (let p = 0; p < l.length && d.length !== 0; p++) {
@@ -1258,39 +1258,39 @@ const jt = 1, ft = {
1258
1258
  comparator: s,
1259
1259
  target: _,
1260
1260
  value: f
1261
- } = l[p], g = d.filter((m) => {
1262
- const y = bo({
1263
- value: m
1264
- }, a.type, m), v = Yn(m, a.type);
1265
- return !(y && s === G.Answered || v && s === G.Partial || !y && !v && s === G.Skipped || s === G.GivenUp && ko(m) && m.taskStatus === z.GivenUp || y && a.type === b.Open && (s === G.Contains || s === G.DoesNotContain) || y && Co(s) && ft[s](m, f));
1261
+ } = l[p], m = d.filter((g) => {
1262
+ const y = vo({
1263
+ value: g
1264
+ }, a.type, g), v = Xn(g, a.type);
1265
+ return !(y && s === G.Answered || v && s === G.Partial || !y && !v && s === G.Skipped || s === G.GivenUp && So(g) && g.taskStatus === W.GivenUp || y && a.type === b.Open && (s === G.Contains || s === G.DoesNotContain) || y && ko(s) && ht[s](g, f));
1266
1266
  });
1267
- if (g.length < d.length) {
1268
- const m = parseInt(String(_), 10);
1269
- if (m !== -1 && m <= i || m >= r.length)
1267
+ if (m.length < d.length) {
1268
+ const g = parseInt(String(_), 10);
1269
+ if (g !== -1 && g <= i || g >= r.length)
1270
1270
  return r.length - 1 - t;
1271
- c = Math.max(o[m] + 1, c);
1271
+ c = Math.max(o[g] + 1, c);
1272
1272
  }
1273
- d = g;
1273
+ d = m;
1274
1274
  }
1275
1275
  d.length > 0 && (c = Math.max(o[i + 1] + 1, c)), o[i] = c;
1276
1276
  }
1277
1277
  return o[t];
1278
- }, To = (e) => !(e.type === b.Thanks || e.type === b.Uploading), M = Kn()((e, t) => ({
1278
+ }, Po = (e) => !(e.type === b.Thanks || e.type === b.Uploading), $ = Jn()((e, t) => ({
1279
1279
  allResponses: [],
1280
1280
  answers: void 0,
1281
1281
  apiURL: "",
1282
1282
  border: "#000000",
1283
1283
  cards: [],
1284
- close: async (n = fe) => {
1284
+ close: async (n = _e) => {
1285
1285
  const r = t(), {
1286
1286
  fadeout: o,
1287
1287
  remove: i,
1288
1288
  trackHistory: a
1289
1289
  } = r;
1290
- await o(n), Ze(r) || a({
1290
+ await o(n), Qe(r) || a({
1291
1291
  event: "closed"
1292
- }), bt.enable(), i({
1293
- initiator: vt.Closed
1292
+ }), ze(`Closing survey: ${r.surveyId}`), yt.enable(), i({
1293
+ initiator: xt.Closed
1294
1294
  });
1295
1295
  },
1296
1296
  configureExitOnOverlayClick: () => {
@@ -1302,22 +1302,22 @@ const jt = 1, ft = {
1302
1302
  fadeout: o,
1303
1303
  remove: i
1304
1304
  } = t();
1305
- r(ee.SurveyComplete), await o(n), bt.enable(), i({
1306
- initiator: vt.Complete
1305
+ r(ee.SurveyComplete), await o(n), yt.enable(), i({
1306
+ initiator: xt.Complete
1307
1307
  });
1308
1308
  },
1309
1309
  endCard: {
1310
1310
  headline: ""
1311
1311
  },
1312
1312
  envId: "",
1313
- eventEmitFn: Re.emit.bind(Re),
1313
+ eventEmitFn: Le.emit.bind(Le),
1314
1314
  fadeout: async (n) => {
1315
1315
  const {
1316
1316
  eventEmitFn: r,
1317
1317
  headers: o,
1318
1318
  viewDocument: i
1319
1319
  } = t();
1320
- return Me(o) ? Promise.resolve() : (r(re.SurveyFadingOut), new Promise((a) => {
1320
+ return $e(o) ? Promise.resolve() : (r(oe.SurveyFadingOut), new Promise((a) => {
1321
1321
  const l = i.getElementById(n);
1322
1322
  l ? (l.addEventListener("transitionend", () => {
1323
1323
  a();
@@ -1333,8 +1333,8 @@ const jt = 1, ft = {
1333
1333
  index: i
1334
1334
  } = t();
1335
1335
  o(n, {
1336
- [ve.QuestionId]: r[i].name,
1337
- [ve.Props]: r[i].props
1336
+ [ye.QuestionId]: r[i].name,
1337
+ [ye.Props]: r[i].props
1338
1338
  // Only return the upcoming card
1339
1339
  }), e(() => ({
1340
1340
  hasViewedEmbed: !0
@@ -1346,7 +1346,7 @@ const jt = 1, ft = {
1346
1346
  progressPct: o,
1347
1347
  isSubmitted: i
1348
1348
  }) => {
1349
- var f, g, m;
1349
+ var f, m, g;
1350
1350
  const {
1351
1351
  cards: a,
1352
1352
  destroy: l,
@@ -1355,9 +1355,9 @@ const jt = 1, ft = {
1355
1355
  } = t(), p = r || ((f = d[n]) == null ? void 0 : f.isComplete), s = {
1356
1356
  ...d,
1357
1357
  [n]: {
1358
- progressPct: p ? 100 : o || ((g = d[n]) == null ? void 0 : g.progressPct),
1358
+ progressPct: p ? 100 : o || ((m = d[n]) == null ? void 0 : m.progressPct),
1359
1359
  isComplete: p,
1360
- isSubmitted: i || ((m = d[n]) == null ? void 0 : m.isSubmitted)
1360
+ isSubmitted: i || ((g = d[n]) == null ? void 0 : g.isSubmitted)
1361
1361
  }
1362
1362
  };
1363
1363
  if (e({
@@ -1366,7 +1366,7 @@ const jt = 1, ft = {
1366
1366
  return;
1367
1367
  const _ = Object.entries(d).every(([y, v]) => !v.isSubmitted || v.isComplete || n == y && r);
1368
1368
  if (_ && c >= a.length - 1)
1369
- return l(fe);
1369
+ return l(_e);
1370
1370
  e({
1371
1371
  index: _ ? c + 1 : c,
1372
1372
  uploadingCardViewed: !0
@@ -1376,9 +1376,9 @@ const jt = 1, ft = {
1376
1376
  headers: {
1377
1377
  Authorization: "",
1378
1378
  "Content-Type": "",
1379
- "userleap-platform": Ge.Web,
1379
+ "userleap-platform": Ke.Web,
1380
1380
  "x-ul-environment-id": "",
1381
- "x-ul-installation-method": fr.Snippet,
1381
+ "x-ul-installation-method": _r.Snippet,
1382
1382
  "x-ul-sdk-version": "",
1383
1383
  "x-ul-visitor-id": ""
1384
1384
  },
@@ -1406,51 +1406,51 @@ const jt = 1, ft = {
1406
1406
  trackHistory: d,
1407
1407
  uploadProgress: p,
1408
1408
  viewedCardCount: s
1409
- } = t(), _ = Date.now(), f = [...o], g = f[a], {
1410
- type: m
1409
+ } = t(), _ = Date.now(), f = [...o], m = f[a], {
1410
+ type: g
1411
1411
  } = n.data, y = {
1412
1412
  ...n.data
1413
1413
  }, v = y.value;
1414
- To(g) && (g.value = v), y.answeredAt = _, delete y.type;
1414
+ Po(m) && (m.value = v), y.answeredAt = _, delete y.type;
1415
1415
  const C = {
1416
1416
  response: y,
1417
1417
  responseGroupUid: l,
1418
1418
  questionIndex: a
1419
1419
  };
1420
- let S = m === b.MultipleChoice ? Object.values(v).find((N) => N !== !1) : v;
1421
- m === b.MultipleSelect && (S = f[a].props.options.reduce((N, k) => (v[k.id] && N.push(k.value), N), []));
1422
- const E = r.slice(0);
1423
- E[a] = S, e({
1424
- allResponses: E
1420
+ let k = g === b.MultipleChoice ? Object.values(v).find((N) => N !== !1) : v;
1421
+ g === b.MultipleSelect && (k = f[a].props.options.reduce((N, h) => (v[h.id] && N.push(h.value), N), []));
1422
+ const R = r.slice(0);
1423
+ R[a] = k, e({
1424
+ allResponses: R
1425
1425
  });
1426
- const h = Jn({
1426
+ const P = er({
1427
1427
  cards: f,
1428
1428
  index: a,
1429
1429
  hasEndCard: !!n.endCard,
1430
1430
  uploadProgress: p,
1431
- allResponses: E
1431
+ allResponses: R
1432
1432
  });
1433
- if (h === null) {
1433
+ if (P === null) {
1434
1434
  C.completedAt = _, c(C), n.completeSurvey();
1435
1435
  return;
1436
1436
  } else
1437
- [b.Thanks, b.Uploading].includes(f[h].type) && (C.completedAt = _);
1438
- const T = c(C);
1439
- [b.Thanks, b.Uploading].includes(f[h].type) || T.finally(() => {
1437
+ [b.Thanks, b.Uploading].includes(f[P].type) && (C.completedAt = _);
1438
+ const S = c(C);
1439
+ [b.Thanks, b.Uploading].includes(f[P].type) || S.finally(() => {
1440
1440
  d({
1441
1441
  event: "seen",
1442
- index: h
1442
+ index: P
1443
1443
  });
1444
1444
  });
1445
- const I = f[h];
1446
- f[h] && i && i(ee.CurrentQuestion, {
1447
- [ve.QuestionId]: I.name,
1448
- [ve.Props]: I.props
1445
+ const A = f[P];
1446
+ f[P] && i && i(ee.CurrentQuestion, {
1447
+ [ye.QuestionId]: A.name,
1448
+ [ye.Props]: A.props
1449
1449
  // Only return the upcoming card
1450
1450
  }), e({
1451
1451
  cards: f,
1452
1452
  hasViewedEmbed: !1,
1453
- index: h,
1453
+ index: P,
1454
1454
  viewedCardCount: s + 1
1455
1455
  });
1456
1456
  },
@@ -1458,7 +1458,7 @@ const jt = 1, ft = {
1458
1458
  previewKey: null,
1459
1459
  recorder: () => {
1460
1460
  },
1461
- recorderEventEmitter: Re,
1461
+ recorderEventEmitter: Le,
1462
1462
  resolveTrackedPromise: () => {
1463
1463
  const {
1464
1464
  removeIframeIfReady: n
@@ -1484,8 +1484,8 @@ const jt = 1, ft = {
1484
1484
  pendingRemoveIframeReason: r,
1485
1485
  unresolvedRequestCount: o
1486
1486
  } = t();
1487
- r && o === 0 && (n(re.SurveyWillClose, {
1488
- name: re.SurveyWillClose,
1487
+ r && o === 0 && (n(oe.SurveyWillClose, {
1488
+ name: oe.SurveyWillClose,
1489
1489
  initiator: r
1490
1490
  }), e({
1491
1491
  pendingRemoveIframeReason: null
@@ -1511,7 +1511,7 @@ const jt = 1, ft = {
1511
1511
  responseGroupUid: i
1512
1512
  }) => {
1513
1513
  const a = t();
1514
- if (!i || Ze(a))
1514
+ if (!i || Qe(a))
1515
1515
  return;
1516
1516
  const l = {
1517
1517
  responseGroupUid: i,
@@ -1521,19 +1521,20 @@ const jt = 1, ft = {
1521
1521
  completedAt: n,
1522
1522
  previewKey: a.previewKey
1523
1523
  };
1524
- n && _r({
1525
- id: a.surveyId
1526
- });
1527
- const c = await a.trackPromise(Qe(`${a.apiURL}/sdk/1/environments/${a.envId}/visitors/${a.userId}/responses/submit`, {
1524
+ ze(`Submitting response: ${JSON.stringify(o.value, null, 2)} for survey: ${a.surveyId}`), n && (ze("Survey complete"), hr({
1525
+ id: a.surveyId,
1526
+ userAgent: window.navigator.userAgent
1527
+ }));
1528
+ const c = await a.trackPromise(Ye(`${a.apiURL}/sdk/1/environments/${a.envId}/visitors/${a.userId}/responses/submit`, {
1528
1529
  body: JSON.stringify(l),
1529
1530
  headers: a.headers,
1530
1531
  method: "POST"
1531
1532
  }));
1532
1533
  if (!c.ok) {
1533
- c.reportError && (console.warn("[Sprig] (ERR-427) Failed to submit response", c.error), await a.trackPromise(qt(a, "submitResponse", c.error)));
1534
+ c.reportError && (console.warn("[Sprig] (ERR-427) Failed to submit response", c.error), await a.trackPromise(Wt(a, "submitResponse", c.error)));
1534
1535
  return;
1535
1536
  }
1536
- a.eventEmitFn(re.QuestionAnswered, {
1537
+ a.eventEmitFn(oe.QuestionAnswered, {
1537
1538
  ...o,
1538
1539
  questionIndex: r
1539
1540
  });
@@ -1546,7 +1547,7 @@ const jt = 1, ft = {
1546
1547
  isNew: o = !1
1547
1548
  }) => {
1548
1549
  const i = t();
1549
- if (Ze(i))
1550
+ if (Qe(i))
1550
1551
  return;
1551
1552
  const {
1552
1553
  cards: a,
@@ -1560,12 +1561,12 @@ const jt = 1, ft = {
1560
1561
  isNew: o,
1561
1562
  responseGroupUid: i.responseGroupUid,
1562
1563
  previewKey: i.previewKey
1563
- }, p = await i.trackPromise(Qe(`${i.apiURL}/sdk/1/visitors/${i.userId}/surveys/${i.surveyId}/history`, {
1564
+ }, p = await i.trackPromise(Ye(`${i.apiURL}/sdk/1/visitors/${i.userId}/surveys/${i.surveyId}/history`, {
1564
1565
  body: JSON.stringify(d),
1565
1566
  headers: i.headers,
1566
1567
  method: "POST"
1567
1568
  }));
1568
- !p.ok && p.reportError && (console.warn("[Sprig] (ERR-428) Failed to track survey event", p.error), await i.trackPromise(qt(i, "trackHistory", p.error)));
1569
+ !p.ok && p.reportError && (console.warn("[Sprig] (ERR-428) Failed to track survey event", p.error), await i.trackPromise(Wt(i, "trackHistory", p.error)));
1569
1570
  },
1570
1571
  trackPromise: async (n) => {
1571
1572
  let {
@@ -1585,15 +1586,16 @@ const jt = 1, ft = {
1585
1586
  headers: o,
1586
1587
  eventEmitFn: i,
1587
1588
  frame: a,
1588
- viewDocument: l
1589
- } = t(), d = n[r].type === b.Matrix;
1589
+ useMobileStyling: l,
1590
+ viewDocument: c
1591
+ } = t(), p = n[r].type === b.Matrix;
1590
1592
  setTimeout(() => {
1591
- var _, f;
1592
- const [p, s] = hr(l);
1593
- Me(o) ? i(re.SurveyHeight, {
1594
- name: re.SurveyHeight,
1595
- contentFrameHeight: p
1596
- }) : ((_ = a.setHeight) == null || _.call(a, p), (f = a.setWidth) == null || f.call(a, d ? s : parseInt(mr)));
1593
+ var f, m;
1594
+ const [s, _] = mr(c);
1595
+ $e(o) ? i(oe.SurveyHeight, {
1596
+ name: oe.SurveyHeight,
1597
+ contentFrameHeight: s
1598
+ }) : ((f = a.setHeight) == null || f.call(a, s), l || (m = a.setWidth) == null || m.call(a, p ? _ : parseInt(gr)));
1597
1599
  }, 100);
1598
1600
  },
1599
1601
  uploadingCardViewed: !1,
@@ -1603,7 +1605,7 @@ const jt = 1, ft = {
1603
1605
  userId: "",
1604
1606
  viewDocument: window.document,
1605
1607
  viewedCardCount: 0
1606
- })), Ze = (e) => !e.userId || e.meta && e.meta.mode === "test" || e.isPreview, qt = async (e, t, n) => {
1608
+ })), Qe = (e) => !e.userId || e.meta && e.meta.mode === "test" || e.isPreview, Wt = async (e, t, n) => {
1607
1609
  const {
1608
1610
  mode: r,
1609
1611
  userId: o,
@@ -1628,36 +1630,43 @@ const jt = 1, ft = {
1628
1630
  meta: p,
1629
1631
  vid: o,
1630
1632
  envId: i
1631
- };
1632
- (await Qe(`${a}/sdk/1/errors`, {
1633
+ }, _ = await Ye(`${a}/sdk/1/errors`, {
1633
1634
  method: "POST",
1634
1635
  headers: Object.assign({
1635
1636
  "x-ul-error": window.btoa(`userleap-${Date.now()}-error`)
1636
1637
  }, l),
1637
1638
  body: JSON.stringify(s)
1638
- })).ok || console.warn("[Sprig] (ERR-444) Failed to report error to API", n);
1639
+ });
1640
+ if (!_.ok)
1641
+ console.warn("[Sprig] (ERR-444) Failed to report error to API", n);
1642
+ else {
1643
+ const {
1644
+ presignedUrl: f
1645
+ } = _.json;
1646
+ br(f);
1647
+ }
1639
1648
  };
1640
- var Po = 0;
1649
+ var Eo = 0;
1641
1650
  function u(e, t, n, r, o, i) {
1642
1651
  var a, l, c = {};
1643
1652
  for (l in t)
1644
1653
  l == "ref" ? a = t[l] : c[l] = t[l];
1645
- var d = { type: e, props: c, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --Po, __i: -1, __u: 0, __source: o, __self: i };
1654
+ var d = { type: e, props: c, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --Eo, __i: -1, __u: 0, __source: o, __self: i };
1646
1655
  if (typeof e == "function" && (a = e.defaultProps))
1647
1656
  for (l in a)
1648
1657
  c[l] === void 0 && (c[l] = a[l]);
1649
1658
  return x.vnode && x.vnode(d), d;
1650
1659
  }
1651
- const j = (e) => u("button", {
1660
+ const q = (e) => u("button", {
1652
1661
  ...e,
1653
- className: R("ul-card-text__button", e.className),
1662
+ className: L("ul-card-text__button", e.className),
1654
1663
  id: "ul-card-text__button"
1655
1664
  }), Y = ({
1656
1665
  message: e,
1657
1666
  properties: t
1658
1667
  }) => {
1659
1668
  const n = t == null ? void 0 : t.captionText;
1660
- return u(D, {
1669
+ return u(j, {
1661
1670
  children: [e && u("h1", {
1662
1671
  className: w.QuestionHeader,
1663
1672
  id: w.QuestionHeader,
@@ -1673,7 +1682,7 @@ const j = (e) => u("button", {
1673
1682
  children: n
1674
1683
  })]
1675
1684
  });
1676
- }, zt = ({
1685
+ }, Zt = ({
1677
1686
  buttonText: e = "View Prototype",
1678
1687
  handleClick: t
1679
1688
  }) => u("button", {
@@ -1691,23 +1700,23 @@ const j = (e) => u("button", {
1691
1700
  hasViewedEmbed: o,
1692
1701
  headers: i,
1693
1702
  useDesktopPrototype: a
1694
- } = M((_) => ({
1703
+ } = $((_) => ({
1695
1704
  handleClickEmbedButton: _.handleClickEmbedButton,
1696
1705
  hasViewedEmbed: _.hasViewedEmbed,
1697
1706
  headers: _.headers,
1698
1707
  useDesktopPrototype: _.useDesktopPrototype
1699
- })), l = (n == null ? void 0 : n.conceptUrl) || ((s = n == null ? void 0 : n.consentDocument) == null ? void 0 : s.url), c = window.innerWidth < gr, d = i["userleap-platform"], p = (_, f) => {
1708
+ })), l = (n == null ? void 0 : n.conceptUrl) || ((s = n == null ? void 0 : n.consentDocument) == null ? void 0 : s.url), c = window.innerWidth < vr, d = i["userleap-platform"], p = (_, f) => {
1700
1709
  _.preventDefault(), r(f);
1701
1710
  };
1702
1711
  if (!a && c && !o && l && ["email", "link"].includes(d)) {
1703
1712
  if (t === "prototype")
1704
- return u(zt, {
1713
+ return u(Zt, {
1705
1714
  handleClick: (_) => {
1706
1715
  p(_, ee.ViewPrototypeClick);
1707
1716
  }
1708
1717
  });
1709
1718
  if (t === "pdf")
1710
- return u(zt, {
1719
+ return u(Zt, {
1711
1720
  buttonText: (n == null ? void 0 : n.viewDocumentText) || "View Document",
1712
1721
  handleClick: (_) => {
1713
1722
  p(_, ee.ViewAgreementClick);
@@ -1715,8 +1724,8 @@ const j = (e) => u("button", {
1715
1724
  });
1716
1725
  }
1717
1726
  return e();
1718
- }, Xn = (e, t) => {
1719
- const n = ie(0), r = () => {
1727
+ }, tr = (e, t) => {
1728
+ const n = ne(0), r = () => {
1720
1729
  if (e.current) {
1721
1730
  const o = e.current;
1722
1731
  o.style.height = "1px";
@@ -1725,7 +1734,7 @@ const j = (e) => u("button", {
1725
1734
  }
1726
1735
  };
1727
1736
  return F(r, []), r;
1728
- }, _t = ({
1737
+ }, mt = ({
1729
1738
  ariaLabel: e,
1730
1739
  border: t,
1731
1740
  choiceStyle: n = {},
@@ -1738,71 +1747,73 @@ const j = (e) => u("button", {
1738
1747
  useMobileStyling: d,
1739
1748
  error: p,
1740
1749
  allowTextEntry: s,
1741
- promptText: _,
1742
- onUserInputChanged: f
1750
+ noneOfTheAbove: _,
1751
+ promptText: f,
1752
+ onUserInputChanged: m
1743
1753
  }) => {
1744
1754
  const {
1745
1755
  styleNonce: g,
1746
- viewDocument: m
1747
- } = M((O) => ({
1748
- styleNonce: O.styleNonce,
1749
- viewDocument: O.viewDocument
1750
- })), [y, v] = B(!1);
1751
- Ro(m, t, g);
1752
- const C = ({
1753
- isSelected: O,
1754
- userText: se
1756
+ viewDocument: y
1757
+ } = $((U) => ({
1758
+ styleNonce: U.styleNonce,
1759
+ viewDocument: U.viewDocument
1760
+ })), [v, C] = D(!1);
1761
+ Lo(y, t, g);
1762
+ const k = ({
1763
+ isSelected: U,
1764
+ userText: de
1755
1765
  }) => {
1756
- f && f({
1766
+ m && m({
1757
1767
  id: l || "",
1758
- selected: O,
1768
+ selected: U,
1759
1769
  value: i,
1760
- userText: se
1770
+ userText: de,
1771
+ noneOfTheAbove: _
1761
1772
  });
1762
- }, S = (O) => {
1763
- O.stopPropagation(), C({
1773
+ }, R = (U) => {
1774
+ U.stopPropagation(), k({
1764
1775
  isSelected: c || !o,
1765
1776
  userText: a
1766
- }), v(!1);
1767
- }, E = () => {
1768
- y || v(!0);
1769
- }, h = () => {
1770
- y && v(!1);
1771
- }, T = (O) => {
1772
- (O.key === "Enter" || O.key === " ") && S(O);
1773
- }, I = {
1774
- onClick: (O) => S(O),
1775
- onKeyPress: (O) => T(O)
1777
+ }), C(!1);
1778
+ }, P = () => {
1779
+ v || C(!0);
1780
+ }, S = () => {
1781
+ v && C(!1);
1782
+ }, A = (U) => {
1783
+ (U.key === "Enter" || U.key === " ") && R(U);
1784
+ }, N = {
1785
+ onClick: (U) => R(U),
1786
+ onKeyPress: (U) => A(U)
1776
1787
  };
1777
- "ontouchstart" in m.documentElement ? (I.onTouchStart = h, I.onTouchCancel = h, I.onTouchEnd = h) : (I.onMouseDown = E, I.onMouseLeave = h);
1778
- const N = c ? `radio-${l}` : `checkbox-${l}`, k = o || y ? [Ae] : [], $ = [...p ? [er] : [], ...k], Z = r ? {
1788
+ "ontouchstart" in y.documentElement ? (N.onTouchStart = S, N.onTouchCancel = S, N.onTouchEnd = S) : (N.onMouseDown = P, N.onMouseLeave = S);
1789
+ const h = c ? `radio-${l}` : `checkbox-${l}`, T = o || v ? [Me] : [], O = [...p ? [nr] : [], ...T], se = r ? {
1779
1790
  "aria-labelledby": `label-${l}`
1780
1791
  } : {
1781
1792
  "aria-label": e
1782
1793
  };
1783
1794
  return u("div", {
1784
- className: R([...V(w.Choice, d), ...$]),
1795
+ className: L([...H(w.Choice, d), ...O]),
1785
1796
  id: `choice-div-${l}`,
1786
1797
  style: {
1787
1798
  ...n,
1788
1799
  ...p ? {
1789
- borderColor: ye
1800
+ borderColor: xe
1790
1801
  } : {}
1791
1802
  },
1792
- ...I,
1803
+ ...N,
1793
1804
  children: [u("div", {
1794
- className: R([w.ChoiceLabelContainer]),
1805
+ className: L([w.ChoiceLabelContainer]),
1795
1806
  children: [c ? u("div", {
1796
- ...Z,
1797
- className: R([w.ChoiceRadio, ...k]),
1798
- id: N,
1807
+ ...se,
1808
+ className: L([w.ChoiceRadio, ...T]),
1809
+ id: h,
1799
1810
  role: "radio",
1800
1811
  tabIndex: 0
1801
1812
  }) : u("div", {
1802
1813
  "aria-checked": o,
1803
1814
  "aria-labelledby": `label-${l}`,
1804
1815
  className: w.ChoiceCheckbox,
1805
- id: N,
1816
+ id: h,
1806
1817
  role: "checkbox",
1807
1818
  style: o ? {
1808
1819
  backgroundColor: t,
@@ -1824,42 +1835,42 @@ const j = (e) => u("button", {
1824
1835
  })
1825
1836
  })
1826
1837
  }), r && u("label", {
1827
- className: R(V(w.ChoiceLabel, d)),
1828
- htmlFor: N,
1838
+ className: L(H(w.ChoiceLabel, d)),
1839
+ htmlFor: h,
1829
1840
  id: `label-${l}`,
1830
1841
  children: r
1831
1842
  })]
1832
1843
  }), s && o && u("div", {
1833
- className: R([w.ChoiceTextEntryContainer, ...k]),
1834
- children: u(Eo, {
1835
- onTextChange: (O) => C({
1844
+ className: L([w.ChoiceTextEntryContainer, ...T]),
1845
+ children: u(Ro, {
1846
+ onTextChange: (U) => k({
1836
1847
  isSelected: o,
1837
- userText: O
1848
+ userText: U
1838
1849
  }),
1839
- promptText: _ || "Please specify",
1850
+ promptText: f || "Please specify",
1840
1851
  textValue: a,
1841
1852
  useMobileStyling: d
1842
1853
  })
1843
1854
  })]
1844
1855
  });
1845
- }, Eo = ({
1856
+ }, Ro = ({
1846
1857
  promptText: e,
1847
1858
  textValue: t,
1848
1859
  onTextChange: n,
1849
1860
  useMobileStyling: r
1850
1861
  }) => {
1851
- const o = ie(null), {
1862
+ const o = ne(null), {
1852
1863
  update: i
1853
- } = M((l) => ({
1864
+ } = $((l) => ({
1854
1865
  update: l.update
1855
- })), a = Xn(o, () => i());
1866
+ })), a = tr(o, () => i());
1856
1867
  return F(() => {
1857
1868
  o.current && o.current.focus();
1858
1869
  }, []), u("textarea", {
1859
1870
  "aria-label": e,
1860
1871
  "aria-multiline": "true",
1861
1872
  "aria-placeholder": e,
1862
- className: R(V(w.ChoiceTextInput, r)),
1873
+ className: L(H(w.ChoiceTextInput, r)),
1863
1874
  "data-gramm": "false",
1864
1875
  maxLength: 5e3,
1865
1876
  name: "text",
@@ -1878,21 +1889,21 @@ const j = (e) => u("button", {
1878
1889
  rows: 1,
1879
1890
  value: t
1880
1891
  });
1881
- }, Wt = "ul-select-style-element", Ae = "ul-select-active-dynamic-style", er = "ul-select-error-dynamic-style", No = (e) => e.tagName.toLowerCase() === "style", Ro = (e, t, n) => {
1882
- let r = e.getElementById(Wt), o = !1;
1883
- r || (r = e.createElement("style"), o = !0), No(r) && (r.id = Wt, n && (r.nonce = n), r.textContent = Io(t), o && e.head.appendChild(r));
1892
+ }, Gt = "ul-select-style-element", Me = "ul-select-active-dynamic-style", nr = "ul-select-error-dynamic-style", No = (e) => e.tagName.toLowerCase() === "style", Lo = (e, t, n) => {
1893
+ let r = e.getElementById(Gt), o = !1;
1894
+ r || (r = e.createElement("style"), o = !0), No(r) && (r.id = Gt, n && (r.nonce = n), r.textContent = Io(t), o && e.head.appendChild(r));
1884
1895
  }, Io = (e) => `
1885
- .${Ae} {
1896
+ .${Me} {
1886
1897
  border-color: ${e};
1887
1898
  }
1888
- .${Ae} .${w.ChoiceRadio}, .${Ae}.${w.ChoiceRadio} {
1899
+ .${Me} .${w.ChoiceRadio}, .${Me}.${w.ChoiceRadio} {
1889
1900
  border: 6px solid ${e};
1890
1901
  box-shadow: none;
1891
1902
  }
1892
- .${er} {
1893
- border-color: ${ye};
1903
+ .${nr} {
1904
+ border-color: ${xe};
1894
1905
  }
1895
- `, be = (e) => (e == null ? void 0 : e.buttonText) || "Next", tr = (e) => (e == null ? void 0 : e.skipButtonText) || "Skip", Lo = ({
1906
+ `, ve = (e) => (e == null ? void 0 : e.buttonText) || "Next", rr = (e) => (e == null ? void 0 : e.skipButtonText) || "Skip", Ao = ({
1896
1907
  className: e,
1897
1908
  message: t,
1898
1909
  next: n,
@@ -1903,34 +1914,34 @@ const j = (e) => u("button", {
1903
1914
  const {
1904
1915
  useMobileStyling: a,
1905
1916
  border: l
1906
- } = M((k) => ({
1907
- useMobileStyling: k.useMobileStyling,
1908
- border: k.border
1909
- })), [c, d] = B(!1), [p, s] = B(""), [_, f] = B(!1), g = r == null ? void 0 : r.collectName, m = (r == null ? void 0 : r.nameLabelText) || "Full Name", y = (r == null ? void 0 : r.consentText) || "I agree to the stated conditions", v = (r == null ? void 0 : r.submitButtonText) || "Submit", C = !!p.trim(), S = c && (!g || C), E = (k, $ = !1) => {
1910
- k.preventDefault(), k.stopPropagation();
1911
- let Z = null;
1912
- if (!$) {
1913
- if (!S) {
1917
+ } = $((h) => ({
1918
+ useMobileStyling: h.useMobileStyling,
1919
+ border: h.border
1920
+ })), [c, d] = D(!1), [p, s] = D(""), [_, f] = D(!1), m = r == null ? void 0 : r.collectName, g = (r == null ? void 0 : r.nameLabelText) || "Full Name", y = (r == null ? void 0 : r.consentText) || "I agree to the stated conditions", v = (r == null ? void 0 : r.submitButtonText) || "Submit", C = !!p.trim(), k = c && (!m || C), R = (h, T = !1) => {
1921
+ h.preventDefault(), h.stopPropagation();
1922
+ let O = null;
1923
+ if (!T) {
1924
+ if (!k) {
1914
1925
  f(!0);
1915
1926
  return;
1916
1927
  }
1917
- Z = {
1928
+ O = {
1918
1929
  submitted: !0
1919
- }, g && (Z.name = p);
1930
+ }, m && (O.name = p);
1920
1931
  }
1921
1932
  n({
1922
- value: Z,
1933
+ value: O,
1923
1934
  questionId: o,
1924
1935
  type: i
1925
1936
  });
1926
- }, h = (k) => {
1927
- k.preventDefault(), k.stopPropagation(), s(k.currentTarget.value);
1928
- }, T = (k) => {
1929
- k.currentTarget.style.borderColor = _ && !C ? ye : l;
1930
- }, I = (k) => {
1931
- k.currentTarget.style.borderColor = _ && !C ? ye : it;
1937
+ }, P = (h) => {
1938
+ h.preventDefault(), h.stopPropagation(), s(h.currentTarget.value);
1939
+ }, S = (h) => {
1940
+ h.currentTarget.style.borderColor = _ && !C ? xe : l;
1941
+ }, A = (h) => {
1942
+ h.currentTarget.style.borderColor = _ && !C ? xe : st;
1932
1943
  }, N = () => u("div", {
1933
- children: [u(_t, {
1944
+ children: [u(mt, {
1934
1945
  allowTextEntry: !1,
1935
1946
  border: l,
1936
1947
  error: _ && !c,
@@ -1938,42 +1949,42 @@ const j = (e) => u("button", {
1938
1949
  isSelected: c,
1939
1950
  label: y,
1940
1951
  onUserInputChanged: ({
1941
- selected: k
1952
+ selected: h
1942
1953
  }) => {
1943
- k !== c && d(!c);
1954
+ h !== c && d(!c);
1944
1955
  },
1945
1956
  useMobileStyling: a
1946
- }), g && u("input", {
1947
- "aria-label": m,
1948
- "aria-placeholder": m,
1949
- className: R(V(w.ConsentLegalNameInput, a)),
1957
+ }), m && u("input", {
1958
+ "aria-label": g,
1959
+ "aria-placeholder": g,
1960
+ className: L(H(w.ConsentLegalNameInput, a)),
1950
1961
  "data-gramm": "false",
1951
1962
  maxLength: 250,
1952
1963
  name: "name",
1953
- onBlur: I,
1954
- onFocus: T,
1955
- onInput: h,
1956
- placeholder: m,
1964
+ onBlur: A,
1965
+ onFocus: S,
1966
+ onInput: P,
1967
+ placeholder: g,
1957
1968
  style: _ && !C ? {
1958
- borderColor: ye
1969
+ borderColor: xe
1959
1970
  } : {},
1960
1971
  tabIndex: 0,
1961
1972
  value: p
1962
1973
  }), u("div", {
1963
1974
  className: "ul-card__button-wrapper ul-card-vertical__button-wrapper",
1964
- children: [u(j, {
1965
- className: S ? "" : w.ButtonDisabled,
1966
- onClick: E,
1975
+ children: [u(q, {
1976
+ className: k ? "" : w.ButtonDisabled,
1977
+ onClick: R,
1967
1978
  children: v
1968
1979
  }), r.required === !1 && u("button", {
1969
1980
  className: w.SkipButton,
1970
- onClick: (k) => E(k, !0),
1971
- children: tr(r)
1981
+ onClick: (h) => R(h, !0),
1982
+ children: rr(r)
1972
1983
  })]
1973
1984
  })]
1974
1985
  });
1975
1986
  return u("div", {
1976
- className: R([e, "ul-card__consent-legal", w.FadeInTransition]),
1987
+ className: L([e, "ul-card__consent-legal", w.FadeInTransition]),
1977
1988
  children: [u(Y, {
1978
1989
  message: t
1979
1990
  }), u("div", {
@@ -1988,7 +1999,7 @@ const j = (e) => u("button", {
1988
1999
  embeddedType: "pdf"
1989
2000
  })]
1990
2001
  }, o);
1991
- }, Ao = ({
2002
+ }, Mo = ({
1992
2003
  activeValue: e,
1993
2004
  border: t,
1994
2005
  icon: n,
@@ -2001,14 +2012,14 @@ const j = (e) => u("button", {
2001
2012
  useMobileStyling: d,
2002
2013
  value: p
2003
2014
  }) => {
2004
- const s = `option-${p}`, _ = a === de.Number, f = a === de.Star, g = _ && p === e, [m, y] = p <= e && f || p === e ? r ? [t, 1] : [t, 0.3] : ["", 1], v = () => {
2015
+ const s = `option-${p}`, _ = a === pe.Number, f = a === pe.Star, m = _ && p === e, [g, y] = p <= e && f || p === e ? r ? [t, 1] : [t, 0.3] : ["", 1], v = () => {
2005
2016
  switch (a) {
2006
- case de.Star:
2007
- return R([...V(w.LikertStar, d), ...V(`${w.LikertStar}-${p}`, d)]);
2008
- case de.Smiley:
2009
- return R([...V(w.LikertSmiley, d), ...V(`${w.LikertSmiley}-${p}`, d)]);
2017
+ case pe.Star:
2018
+ return L([...H(w.LikertStar, d), ...H(`${w.LikertStar}-${p}`, d)]);
2019
+ case pe.Smiley:
2020
+ return L([...H(w.LikertSmiley, d), ...H(`${w.LikertSmiley}-${p}`, d)]);
2010
2021
  default:
2011
- return R(p === i ? [...V(w.LikertNumber, d), ...V(`${w.LikertNumber}-${p}`, d), ...V("likert-last-option", d)] : [...V(w.LikertNumber, d), ...V(`${w.LikertNumber}-${p}`, d)]);
2022
+ return L(p === i ? [...H(w.LikertNumber, d), ...H(`${w.LikertNumber}-${p}`, d), ...H("likert-last-option", d)] : [...H(w.LikertNumber, d), ...H(`${w.LikertNumber}-${p}`, d)]);
2012
2023
  }
2013
2024
  }, C = () => {
2014
2025
  l(-1), c(!1);
@@ -2026,14 +2037,14 @@ const j = (e) => u("button", {
2026
2037
  onPointerLeave: C,
2027
2038
  role: "radio",
2028
2039
  style: {
2029
- color: _ ? "" : m,
2030
- borderColor: g ? m : "",
2031
- fillOpacity: g ? "" : y,
2032
- zIndex: g ? 3 : "auto"
2040
+ color: _ ? "" : g,
2041
+ borderColor: m ? g : "",
2042
+ fillOpacity: m ? "" : y,
2043
+ zIndex: m ? 3 : "auto"
2033
2044
  },
2034
2045
  tabIndex: 0
2035
2046
  });
2036
- }, Mo = ({
2047
+ }, $o = ({
2037
2048
  className: e,
2038
2049
  labels: t,
2039
2050
  message: n,
@@ -2045,84 +2056,84 @@ const j = (e) => u("button", {
2045
2056
  const {
2046
2057
  border: l,
2047
2058
  useMobileStyling: c
2048
- } = M((N) => ({
2059
+ } = $((N) => ({
2049
2060
  border: N.border,
2050
2061
  useMobileStyling: N.useMobileStyling
2051
- })), [d, p] = B(-1), [s, _] = B(!1), f = t && t.left, g = t && t.right;
2052
- let m;
2062
+ })), [d, p] = D(-1), [s, _] = D(!1), f = t && t.left, m = t && t.right;
2063
+ let g;
2053
2064
  const {
2054
2065
  range: y,
2055
2066
  scaleLabelType: v,
2056
2067
  ratingIcons: C
2057
2068
  } = o;
2058
- y && (m = Number(y));
2059
- const S = m || 5, E = (N) => {
2060
- var k, $;
2069
+ y && (g = Number(y));
2070
+ const k = g || 5, R = (N) => {
2071
+ var h, T;
2061
2072
  switch (v) {
2062
- case de.Star:
2063
- return (k = C[0]) == null ? void 0 : k.svg;
2064
- case de.Smiley:
2065
- return ($ = C[N]) == null ? void 0 : $.svg;
2073
+ case pe.Star:
2074
+ return (h = C[0]) == null ? void 0 : h.svg;
2075
+ case pe.Smiley:
2076
+ return (T = C[N]) == null ? void 0 : T.svg;
2066
2077
  default:
2067
2078
  return String(N + 1);
2068
2079
  }
2069
- }, h = [...Array(S)].map((N, k) => {
2070
- const $ = k + 1;
2071
- return u(Ao, {
2080
+ }, P = [...Array(k)].map((N, h) => {
2081
+ const T = h + 1;
2082
+ return u(Mo, {
2072
2083
  activeValue: d,
2073
2084
  border: l,
2074
- icon: E(k),
2085
+ icon: R(h),
2075
2086
  isPressed: s,
2076
2087
  onSubmit: () => r({
2077
- value: $,
2088
+ value: T,
2078
2089
  questionId: i,
2079
2090
  type: a
2080
2091
  }),
2081
- range: S,
2092
+ range: k,
2082
2093
  scaleLabelType: v,
2083
2094
  setActiveValue: p,
2084
2095
  setIsPressed: _,
2085
2096
  useMobileStyling: c,
2086
- value: $
2087
- }, k);
2088
- }), T = (N) => {
2097
+ value: T
2098
+ }, h);
2099
+ }), S = (N) => {
2089
2100
  N.preventDefault(), N.stopPropagation(), r({
2090
2101
  value: null,
2091
2102
  questionId: i,
2092
2103
  type: a
2093
2104
  });
2094
- }, I = () => u(D, {
2105
+ }, A = () => u(j, {
2095
2106
  children: [u("div", {
2096
- "aria-label": `Rating (1 - ${S})`,
2107
+ "aria-label": `Rating (1 - ${k})`,
2097
2108
  className: "ul-card--likert__numbers",
2098
2109
  role: "radiogroup",
2099
- children: h
2110
+ children: P
2100
2111
  }), u("div", {
2101
2112
  className: "ul-card--likert__labels",
2102
2113
  children: [u("span", {
2103
2114
  children: f
2104
2115
  }), u("span", {
2105
- children: g
2116
+ children: m
2106
2117
  })]
2107
2118
  }), !o.required && u("div", {
2108
2119
  className: "ul-vertical-centered-container",
2109
- children: u(j, {
2110
- onClick: T,
2111
- children: be(o)
2120
+ children: u(q, {
2121
+ onClick: S,
2122
+ children: ve(o)
2112
2123
  })
2113
2124
  })]
2114
2125
  });
2115
2126
  return u("form", {
2116
- className: R([e, "ul-card--likert", w.FadeInTransition]),
2127
+ className: L([e, "ul-card--likert", w.FadeInTransition]),
2117
2128
  children: [u(Y, {
2118
2129
  message: n,
2119
2130
  properties: o
2120
2131
  }), u(ae, {
2121
2132
  properties: o,
2122
- defaultBody: I
2133
+ defaultBody: A
2123
2134
  })]
2124
2135
  }, i);
2125
- }, $o = ({
2136
+ }, Oo = ({
2126
2137
  className: e,
2127
2138
  message: t,
2128
2139
  next: n,
@@ -2134,21 +2145,37 @@ const j = (e) => u("button", {
2134
2145
  const {
2135
2146
  border: l,
2136
2147
  useMobileStyling: c
2137
- } = M((h) => ({
2148
+ } = $((h) => ({
2138
2149
  border: h.border,
2139
2150
  useMobileStyling: h.useMobileStyling
2140
- })), d = o.matrixColumn, p = r.length, s = d.length, _ = o.required, f = (h) => {
2151
+ })), d = o.matrixColumn, p = r.length, s = d.length, _ = o.required, f = ne(null), [m, g] = D(!1), y = () => {
2152
+ const h = f.current;
2153
+ h && g(h.clientWidth + Math.abs(h.scrollLeft) < h.scrollWidth);
2154
+ };
2155
+ F(() => {
2156
+ let h;
2157
+ if (f.current) {
2158
+ h = f.current;
2159
+ const T = new ResizeObserver((O) => {
2160
+ g(Math.round(O[0].contentRect.width) < h.scrollWidth);
2161
+ });
2162
+ return T.observe(h), () => {
2163
+ h && T.unobserve(h);
2164
+ };
2165
+ }
2166
+ }, []);
2167
+ const v = (h) => {
2141
2168
  h.preventDefault(), h.stopPropagation(), n({
2142
- value: m,
2169
+ value: k,
2143
2170
  questionId: i,
2144
2171
  type: a
2145
2172
  });
2146
- }, g = r.reduce((h, T) => (h[T.id] = null, h), {}), [m, y] = B(g), v = (h, T) => {
2147
- y((I) => ({
2148
- ...I,
2173
+ }, C = r.reduce((h, T) => (h[T.id] = null, h), {}), [k, R] = D(C), P = (h, T) => {
2174
+ R((O) => ({
2175
+ ...O,
2149
2176
  [h]: T
2150
2177
  }));
2151
- }, C = _ && Object.values(m).every((h) => h == null), S = r.map((h) => u(D, {
2178
+ }, S = _ && Object.values(k).every((h) => h == null), A = r.map((h) => u(j, {
2152
2179
  children: [u("div", {
2153
2180
  "aria-label": h.label,
2154
2181
  className: "ul-matrix-row-label",
@@ -2156,11 +2183,11 @@ const j = (e) => u("button", {
2156
2183
  }, h.label), u("div", {
2157
2184
  className: "ul-matrix-row-options",
2158
2185
  role: "radiogroup",
2159
- children: d.map((T, I) => {
2160
- const N = I === s - 1;
2186
+ children: d.map((T, O) => {
2187
+ const se = O === s - 1;
2161
2188
  return u("div", {
2162
- className: R("ul-matrix-option-wrapper", N && "ul-matrix-last-option"),
2163
- children: u(_t, {
2189
+ className: L("ul-matrix-option-wrapper", se && "ul-matrix-last-option"),
2190
+ children: u(mt, {
2164
2191
  allowTextEntry: !1,
2165
2192
  ariaLabel: `${h.label}-${T.label}`,
2166
2193
  border: l,
@@ -2173,46 +2200,70 @@ const j = (e) => u("button", {
2173
2200
  error: !1,
2174
2201
  id: `${h.id}-${T.value}`,
2175
2202
  isRadio: !0,
2176
- isSelected: m[h.id] === T.value,
2177
- onUserInputChanged: () => v(h.id, T.value),
2203
+ isSelected: k[h.id] === T.value,
2204
+ onUserInputChanged: () => P(h.id, T.value),
2178
2205
  useMobileStyling: c
2179
2206
  })
2180
2207
  }, T.value);
2181
2208
  })
2182
2209
  })]
2183
- })), E = () => u("div", {
2210
+ })), N = () => u("div", {
2211
+ className: "ul-card--matrix_question_container",
2184
2212
  children: [u("div", {
2185
- className: "ul-card--matrix_container",
2186
- style: `--maxWidth: ${br() - 74}px`,
2213
+ className: L(["ul-card--matrix_container", m && "ul-matrix-scroll-gradient"]),
2214
+ onScroll: () => {
2215
+ y();
2216
+ },
2217
+ ref: f,
2187
2218
  children: u("div", {
2188
2219
  className: "ul-card--matrix_grid",
2189
2220
  style: `--numColumns: ${s}; --numRows: ${p + 1}`,
2190
2221
  children: [u("div", {}), " ", d.map((h) => u("div", {
2191
2222
  className: "ul-matrix-column-label",
2192
2223
  children: h.label
2193
- }, h.label)), S]
2224
+ }, h.label)), A]
2225
+ })
2226
+ }), m && u("button", {
2227
+ className: "ul-matrix-scroll-arrow",
2228
+ onClick: (h) => {
2229
+ h.preventDefault();
2230
+ const T = f.current;
2231
+ if (T) {
2232
+ const O = getComputedStyle(T).direction === "rtl";
2233
+ T.scrollLeft = O ? T.clientWidth - T.scrollWidth : T.scrollWidth;
2234
+ }
2235
+ },
2236
+ children: u("svg", {
2237
+ fill: "currentColor",
2238
+ height: "32",
2239
+ viewBox: "0 0 256 256",
2240
+ width: "32",
2241
+ xmlns: "http://www.w3.org/2000/svg",
2242
+ children: u("path", {
2243
+ d: "M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"
2244
+ })
2194
2245
  })
2195
2246
  }), u("div", {
2196
2247
  className: "ul-card__button-wrapper",
2197
- children: u(j, {
2198
- disabled: C,
2199
- children: be(o)
2248
+ children: u(q, {
2249
+ disabled: S,
2250
+ children: ve(o)
2200
2251
  })
2201
2252
  })]
2202
2253
  });
2203
2254
  return u("form", {
2204
- className: R([e, w.FadeInTransition]),
2255
+ className: L([e, w.FadeInTransition, "ul-card__matrix"]),
2205
2256
  id: "text-form",
2206
- onSubmit: f,
2257
+ onSubmit: v,
2207
2258
  children: [u(Y, {
2208
2259
  message: t,
2209
2260
  properties: o
2210
2261
  }), u(ae, {
2211
2262
  properties: o,
2212
- defaultBody: E
2263
+ defaultBody: N
2213
2264
  })]
2214
2265
  }, i);
2215
- }, nr = ({
2266
+ }, or = ({
2216
2267
  className: e,
2217
2268
  message: t,
2218
2269
  onSubmit: n,
@@ -2224,86 +2275,95 @@ const j = (e) => u("button", {
2224
2275
  const {
2225
2276
  border: l,
2226
2277
  useMobileStyling: c
2227
- } = M((h) => ({
2228
- border: h.border,
2229
- useMobileStyling: h.useMobileStyling
2230
- })), d = r.reduce((h, T) => (h[T.id] = {
2278
+ } = $((S) => ({
2279
+ border: S.border,
2280
+ useMobileStyling: S.useMobileStyling
2281
+ })), d = r.reduce((S, A) => (S[A.id] = {
2231
2282
  isSelected: !1
2232
- }, h), {}), [p, s] = B(d), _ = a === b.MultipleChoice, f = o.required, g = Object.entries(p).some(([h, T]) => {
2233
- var k;
2234
- const I = r.find(($) => `${$.id}` === h), N = T.userText === void 0 || T.userText.trim() === "";
2235
- return ((k = I == null ? void 0 : I.optionProperties) == null ? void 0 : k.allowsTextEntry) && N && T.isSelected;
2236
- }), m = Object.values(p).some((h) => h.isSelected), y = g || f && !m, v = r.map(({
2237
- id: h,
2238
- label: T,
2239
- value: I,
2240
- optionProperties: N
2283
+ }, S), {}), [p, s] = D(d), _ = a === b.MultipleChoice, f = o.required, m = r.find((S) => {
2284
+ var A;
2285
+ return (A = S.optionProperties) == null ? void 0 : A.noneOfTheAbove;
2286
+ }), g = Object.entries(p).some(([S, A]) => {
2287
+ var T;
2288
+ const N = r.find((O) => `${O.id}` === S), h = A.userText === void 0 || A.userText.trim() === "";
2289
+ return ((T = N == null ? void 0 : N.optionProperties) == null ? void 0 : T.allowsTextEntry) && h && A.isSelected;
2290
+ }), y = Object.values(p).some((S) => S.isSelected), v = g || f && !y, C = r.map(({
2291
+ id: S,
2292
+ label: A,
2293
+ value: N,
2294
+ optionProperties: h
2241
2295
  }) => {
2242
- var Z, O;
2243
- const k = `${h}`, {
2244
- allowsTextEntry: $
2245
- } = N || {
2246
- allowsTextEntry: !1
2296
+ var U, de;
2297
+ const T = `${S}`, {
2298
+ allowsTextEntry: O,
2299
+ noneOfTheAbove: se
2300
+ } = {
2301
+ allowsTextEntry: !1,
2302
+ noneOfTheAbove: !1,
2303
+ ...h
2247
2304
  };
2248
- return u(_t, {
2249
- allowTextEntry: $,
2305
+ return u(mt, {
2306
+ allowTextEntry: O,
2250
2307
  border: l,
2251
2308
  error: !1,
2252
- id: k,
2309
+ id: T,
2253
2310
  isRadio: _,
2254
- isSelected: !!((Z = p[k]) != null && Z.isSelected),
2255
- label: T,
2256
- onUserInputChanged: (se) => S(se.id, se.selected, se.userText),
2311
+ noneOfTheAbove: se,
2312
+ isSelected: !!((U = p[T]) != null && U.isSelected),
2313
+ label: A,
2314
+ onUserInputChanged: (E) => R(E.id, E.selected, E.userText, E.noneOfTheAbove),
2257
2315
  promptText: "Please specify",
2258
- text: (O = p[h]) == null ? void 0 : O.userText,
2316
+ text: (de = p[S]) == null ? void 0 : de.userText,
2259
2317
  useMobileStyling: c,
2260
- value: I
2261
- }, k);
2262
- }), C = (h) => {
2263
- h.preventDefault(), h.stopPropagation(), n(p);
2264
- }, S = (h, T, I) => {
2265
- const N = Object.assign({}, p);
2266
- if (_ && T)
2267
- for (const k of Object.values(N))
2268
- k.isSelected = !1, delete k.userText;
2269
- N[h] = {
2270
- isSelected: T,
2271
- userText: I
2272
- }, s(N);
2273
- }, E = () => u("div", {
2318
+ value: N
2319
+ }, T);
2320
+ }), k = (S) => {
2321
+ S.preventDefault(), S.stopPropagation(), n(p);
2322
+ }, R = (S, A, N, h) => {
2323
+ const T = Object.assign({}, p);
2324
+ if ((_ || h) && A)
2325
+ for (const O of Object.values(T))
2326
+ O.isSelected = !1, delete O.userText;
2327
+ else
2328
+ m && !h && p[m.id].isSelected && (T[m.id].isSelected = !1);
2329
+ T[S] = {
2330
+ isSelected: A,
2331
+ userText: N
2332
+ }, s(T);
2333
+ }, P = () => u("div", {
2274
2334
  children: [u("div", {
2275
- className: R(V(w.ChoiceGroup, c)),
2335
+ className: L(H(w.ChoiceGroup, c)),
2276
2336
  role: _ ? "radiogroup" : "group",
2277
- children: v
2337
+ children: C
2278
2338
  }), u("div", {
2279
2339
  className: "ul-card__button-wrapper",
2280
- children: u(j, {
2281
- disabled: y,
2282
- onClick: C,
2283
- children: be(o)
2340
+ children: u(q, {
2341
+ disabled: v,
2342
+ onClick: k,
2343
+ children: ve(o)
2284
2344
  })
2285
2345
  })]
2286
2346
  });
2287
2347
  return u("form", {
2288
- className: R([e, "ul-card--multiple", w.FadeInTransition]),
2348
+ className: L([e, "ul-card--multiple", w.FadeInTransition]),
2289
2349
  id: "text-form",
2290
- onSubmit: C,
2350
+ onSubmit: k,
2291
2351
  children: [u(Y, {
2292
2352
  message: t,
2293
2353
  properties: o
2294
2354
  }), u(ae, {
2295
2355
  properties: o,
2296
- defaultBody: E
2356
+ defaultBody: P
2297
2357
  })]
2298
2358
  }, i);
2299
- }, Oo = (e) => {
2359
+ }, Uo = (e) => {
2300
2360
  const {
2301
2361
  questionId: t,
2302
2362
  type: n,
2303
2363
  next: r,
2304
2364
  options: o
2305
2365
  } = e;
2306
- return u(nr, {
2366
+ return u(or, {
2307
2367
  ...e,
2308
2368
  onSubmit: (a) => {
2309
2369
  const l = Object.entries(a).find(([, _]) => _.isSelected) || [void 0, void 0], [c, d] = l, p = o.find((_) => `${_.id}` === c), s = d != null && d.userText ? {
@@ -2321,13 +2381,13 @@ const j = (e) => u("button", {
2321
2381
  });
2322
2382
  }
2323
2383
  });
2324
- }, Uo = (e) => {
2384
+ }, Vo = (e) => {
2325
2385
  const {
2326
2386
  questionId: t,
2327
2387
  type: n,
2328
2388
  next: r
2329
2389
  } = e;
2330
- return u(nr, {
2390
+ return u(or, {
2331
2391
  ...e,
2332
2392
  onSubmit: (i) => {
2333
2393
  const a = {}, l = Object.entries(i).reduce((d, [p, s]) => (d[p] = s.isSelected, d), a), c = Object.entries(i).reduce((d, [p, s]) => {
@@ -2346,7 +2406,7 @@ const j = (e) => u("button", {
2346
2406
  });
2347
2407
  }
2348
2408
  });
2349
- }, Vo = ({
2409
+ }, Ho = ({
2350
2410
  className: e,
2351
2411
  props: {
2352
2412
  labels: t,
@@ -2360,20 +2420,20 @@ const j = (e) => u("button", {
2360
2420
  const {
2361
2421
  border: l,
2362
2422
  useMobileStyling: c
2363
- } = M((g) => ({
2364
- border: g.border,
2365
- useMobileStyling: g.useMobileStyling
2366
- })), d = t && t.left, p = t && t.right, s = [...Array(11)].map((g, m) => u("div", {
2367
- className: R([...V(w.NPSNumber, c), ...V(`${w.NPSNumber}-${m}`, c)]),
2368
- id: `option-${m}`,
2423
+ } = $((m) => ({
2424
+ border: m.border,
2425
+ useMobileStyling: m.useMobileStyling
2426
+ })), d = t && t.left, p = t && t.right, s = [...Array(11)].map((m, g) => u("div", {
2427
+ className: L([...H(w.NPSNumber, c), ...H(`${w.NPSNumber}-${g}`, c)]),
2428
+ id: `option-${g}`,
2369
2429
  onClick: () => o({
2370
- value: m,
2430
+ value: g,
2371
2431
  questionId: i,
2372
2432
  type: a
2373
2433
  }),
2374
2434
  onKeyPress: (y) => {
2375
2435
  y.preventDefault(), (y.key === "Enter" || y.key === " ") && o({
2376
- value: m,
2436
+ value: g,
2377
2437
  questionId: i,
2378
2438
  type: a
2379
2439
  });
@@ -2382,13 +2442,13 @@ const j = (e) => u("button", {
2382
2442
  y.currentTarget.style.zIndex = "2", y.currentTarget.style.borderColor = l;
2383
2443
  },
2384
2444
  onPointerLeave: (y) => {
2385
- y.currentTarget.style.zIndex = "auto", y.currentTarget.style.borderColor = it;
2445
+ y.currentTarget.style.zIndex = "auto", y.currentTarget.style.borderColor = st;
2386
2446
  },
2387
2447
  role: "radio",
2388
2448
  tabIndex: 0,
2389
- children: m
2390
- }, m)), _ = (g) => {
2391
- g.preventDefault(), g.stopPropagation(), o({
2449
+ children: g
2450
+ }, g)), _ = (m) => {
2451
+ m.preventDefault(), m.stopPropagation(), o({
2392
2452
  value: null,
2393
2453
  questionId: i,
2394
2454
  type: a
@@ -2406,14 +2466,14 @@ const j = (e) => u("button", {
2406
2466
  })]
2407
2467
  }), !r.required && u("div", {
2408
2468
  className: "ul-vertical-centered-container",
2409
- children: u(j, {
2469
+ children: u(q, {
2410
2470
  onClick: _,
2411
- children: be(r)
2471
+ children: ve(r)
2412
2472
  })
2413
2473
  })]
2414
2474
  });
2415
2475
  return u("form", {
2416
- className: R([e, "ul-card--nps", w.FadeInTransition]),
2476
+ className: L([e, "ul-card--nps", w.FadeInTransition]),
2417
2477
  children: [u(Y, {
2418
2478
  message: n,
2419
2479
  properties: r
@@ -2422,7 +2482,7 @@ const j = (e) => u("button", {
2422
2482
  defaultBody: f
2423
2483
  })]
2424
2484
  }, i);
2425
- }, Ho = ({
2485
+ }, Bo = ({
2426
2486
  className: e,
2427
2487
  message: t,
2428
2488
  next: n,
@@ -2434,23 +2494,23 @@ const j = (e) => u("button", {
2434
2494
  border: a,
2435
2495
  useMobileStyling: l,
2436
2496
  update: c
2437
- } = M((h) => ({
2438
- border: h.border,
2439
- useMobileStyling: h.useMobileStyling,
2440
- update: h.update
2441
- })), [d, p] = B(""), s = ie(null), _ = d.trim(), f = r.required === !0 && !_, g = Xn(s, () => c()), m = (h) => {
2442
- g(), h.preventDefault(), h.stopPropagation(), p(h.currentTarget.value);
2443
- }, y = (h) => {
2444
- h.preventDefault(), h.stopPropagation(), n({
2497
+ } = $((P) => ({
2498
+ border: P.border,
2499
+ useMobileStyling: P.useMobileStyling,
2500
+ update: P.update
2501
+ })), [d, p] = D(""), s = ne(null), _ = d.trim(), f = r.required === !0 && !_, m = tr(s, () => c()), g = (P) => {
2502
+ m(), P.preventDefault(), P.stopPropagation(), p(P.currentTarget.value);
2503
+ }, y = (P) => {
2504
+ P.preventDefault(), P.stopPropagation(), n({
2445
2505
  value: d,
2446
2506
  questionId: o,
2447
2507
  type: i
2448
2508
  });
2449
- }, v = r && r.openTextPlaceholder ? r.openTextPlaceholder : "", C = (h) => {
2450
- h.currentTarget.style.borderColor = a;
2451
- }, S = (h) => {
2452
- h.currentTarget.style.borderColor = it;
2453
- }, E = () => u("div", {
2509
+ }, v = r && r.openTextPlaceholder ? r.openTextPlaceholder : "", C = (P) => {
2510
+ P.currentTarget.style.borderColor = a;
2511
+ }, k = (P) => {
2512
+ P.currentTarget.style.borderColor = st;
2513
+ }, R = () => u("div", {
2454
2514
  className: "ul-card-text",
2455
2515
  children: [u("div", {
2456
2516
  className: "ul-card-text__container",
@@ -2459,50 +2519,50 @@ const j = (e) => u("button", {
2459
2519
  "aria-labelledby": w.QuestionHeader,
2460
2520
  "aria-multiline": "true",
2461
2521
  "aria-placeholder": v,
2462
- className: R(V(w.OpenTextInput, l)),
2522
+ className: L(H(w.OpenTextInput, l)),
2463
2523
  "data-gramm": "false",
2464
2524
  maxLength: 5e3,
2465
2525
  name: "text",
2466
- onBlur: S,
2467
- onChange: m,
2526
+ onBlur: k,
2527
+ onChange: g,
2468
2528
  onFocus: C,
2469
2529
  placeholder: v,
2470
2530
  ref: s,
2471
2531
  role: "textbox",
2472
2532
  tabIndex: 0
2473
2533
  })
2474
- }), u(j, {
2534
+ }), u(q, {
2475
2535
  disabled: f,
2476
2536
  onClick: y,
2477
2537
  style: {
2478
2538
  backgroundColor: f ? "" : a
2479
2539
  },
2480
- children: be(r)
2540
+ children: ve(r)
2481
2541
  })]
2482
2542
  });
2483
2543
  return u("form", {
2484
- className: R([e, "ul-card--text", w.FadeInTransition]),
2544
+ className: L([e, "ul-card--text", w.FadeInTransition]),
2485
2545
  id: "text-form",
2486
2546
  children: [u(Y, {
2487
2547
  message: t,
2488
2548
  properties: r
2489
2549
  }), u(ae, {
2490
- defaultBody: E,
2550
+ defaultBody: R,
2491
2551
  properties: r
2492
2552
  })]
2493
2553
  }, o);
2494
2554
  };
2495
- var oe = /* @__PURE__ */ ((e) => (e[e.RequestNeeded = 1] = "RequestNeeded", e[e.TryAgain = 2] = "TryAgain", e[e.Ready = 3] = "Ready", e))(oe || {});
2496
- const Be = (e) => e.type === q.AvPermission, rr = (e) => e.type === q.ScreenPermission, Bo = (e, t) => !(Be(t) ? t.permissionDescriptors : []).includes(ke.Camera) || e.getVideoTracks().length > 0, or = (e, t) => {
2555
+ var ie = /* @__PURE__ */ ((e) => (e[e.RequestNeeded = 1] = "RequestNeeded", e[e.TryAgain = 2] = "TryAgain", e[e.Ready = 3] = "Ready", e))(ie || {});
2556
+ const De = (e) => e.type === z.AvPermission, ir = (e) => e.type === z.ScreenPermission, Do = (e, t) => !(De(t) ? t.permissionDescriptors : []).includes(Se.Camera) || e.getVideoTracks().length > 0, ar = (e, t) => {
2497
2557
  if (e === void 0)
2498
- return oe.RequestNeeded;
2558
+ return ie.RequestNeeded;
2499
2559
  if (e) {
2500
- if (!Bo(e, t))
2501
- return oe.RequestNeeded;
2560
+ if (!Do(e, t))
2561
+ return ie.RequestNeeded;
2502
2562
  } else
2503
- return oe.TryAgain;
2504
- return oe.Ready;
2505
- }, Zt = {
2563
+ return ie.TryAgain;
2564
+ return ie.Ready;
2565
+ }, Qt = {
2506
2566
  avStream: null,
2507
2567
  currentPage: null,
2508
2568
  mediaRecordingUids: null,
@@ -2512,16 +2572,16 @@ const Be = (e) => e.type === q.AvPermission, rr = (e) => e.type === q.ScreenPerm
2512
2572
  recordingMediaTypes: void 0,
2513
2573
  screenPermissionRequested: !1,
2514
2574
  type: void 0
2515
- }, K = Kn((e) => ({
2516
- ...Zt,
2575
+ }, K = Jn((e) => ({
2576
+ ...Qt,
2517
2577
  reset: () => {
2518
- e(Zt);
2578
+ e(Qt);
2519
2579
  },
2520
2580
  updatePage: (t) => {
2521
2581
  e(t);
2522
2582
  }
2523
2583
  }));
2524
- function nt({
2584
+ function ot({
2525
2585
  currentPage: e,
2526
2586
  pages: t
2527
2587
  }) {
@@ -2531,18 +2591,18 @@ function nt({
2531
2591
  updatePage: o
2532
2592
  } = K.getState(), {
2533
2593
  recorderEventEmitter: i
2534
- } = M.getState();
2535
- i.emit(H.AvPermission, {
2536
- [L.PermissionDescriptors]: e.permissionDescriptors,
2537
- [L.StreamReadyCallback]: (a, l) => {
2594
+ } = $.getState();
2595
+ i.emit(B.AvPermission, {
2596
+ [I.PermissionDescriptors]: e.permissionDescriptors,
2597
+ [I.StreamReadyCallback]: (a, l) => {
2538
2598
  if (n === a)
2539
2599
  return;
2540
2600
  let c = e;
2541
- if (a && !e.permissionDescriptors.includes(ke.Camera)) {
2601
+ if (a && !e.permissionDescriptors.includes(Se.Camera)) {
2542
2602
  const d = t.indexOf(e), p = l != null && l.active ? d + 2 : d + 1;
2543
- l != null && l.active && r && i.emit(H.BeginRecording, {
2544
- [L.RecordingMediaTypes]: r,
2545
- [L.StartRecordingCallback]: (s) => o({
2603
+ l != null && l.active && r && i.emit(B.BeginRecording, {
2604
+ [I.RecordingMediaTypes]: r,
2605
+ [I.StartRecordingCallback]: (s) => o({
2546
2606
  mediaRecordingUids: s
2547
2607
  })
2548
2608
  }), c = t[p];
@@ -2554,7 +2614,7 @@ function nt({
2554
2614
  }
2555
2615
  });
2556
2616
  }
2557
- function Do({
2617
+ function jo({
2558
2618
  pages: e,
2559
2619
  userId: t,
2560
2620
  responseGroupUid: n,
@@ -2567,50 +2627,50 @@ function Do({
2567
2627
  } = K.getState(), {
2568
2628
  eventEmitFn: l,
2569
2629
  recorderEventEmitter: c
2570
- } = M.getState(), d = {
2630
+ } = $.getState(), d = {
2571
2631
  questionId: o,
2572
2632
  surveyId: r,
2573
2633
  visitorId: t,
2574
2634
  responseGroupUid: n
2575
2635
  };
2576
2636
  let p = 0;
2577
- c.emit(ee.RecordedTaskPermissionScreen), l(ee.RecordedTaskPermissionScreen), c.emit(H.PermissionStatus, {
2578
- [L.PermissionStatusCallback]: (_, f, g, m) => {
2637
+ c.emit(ee.RecordedTaskPermissionScreen), l(ee.RecordedTaskPermissionScreen), c.emit(B.PermissionStatus, {
2638
+ [I.PermissionStatusCallback]: (_, f, m, g) => {
2579
2639
  const y = e[p], {
2580
2640
  type: v
2581
2641
  } = y, C = [Q.Screen];
2582
- if (Be(y)) {
2642
+ if (De(y)) {
2583
2643
  const {
2584
- permissionDescriptors: S
2585
- } = y, E = S == null ? void 0 : S.includes(ke.Microphone), h = S == null ? void 0 : S.includes(ke.Camera);
2586
- E && C.push(Q.Audio), h && C.push(Q.Video);
2587
- const T = (_ == null ? void 0 : _.active) && !h, I = (_ == null ? void 0 : _.active) && f;
2588
- (T || I) && p++;
2644
+ permissionDescriptors: k
2645
+ } = y, R = k == null ? void 0 : k.includes(Se.Microphone), P = k == null ? void 0 : k.includes(Se.Camera);
2646
+ R && C.push(Q.Audio), P && C.push(Q.Video);
2647
+ const S = (_ == null ? void 0 : _.active) && !P, A = (_ == null ? void 0 : _.active) && f;
2648
+ (S || A) && p++;
2589
2649
  }
2590
- rr(e[p]) && g && (p++, c.emit(H.BeginRecording, {
2591
- [L.RecordingMediaTypes]: C,
2592
- [L.StartRecordingCallback]: (S) => a({
2593
- mediaRecordingUids: S
2650
+ ir(e[p]) && m && (p++, c.emit(B.BeginRecording, {
2651
+ [I.RecordingMediaTypes]: C,
2652
+ [I.StartRecordingCallback]: (k) => a({
2653
+ mediaRecordingUids: k
2594
2654
  })
2595
2655
  })), a({
2596
2656
  currentPage: e[p],
2597
2657
  avStream: _,
2598
- screenPermissionRequested: g,
2658
+ screenPermissionRequested: m,
2599
2659
  nextQuestion: i,
2600
2660
  type: v,
2601
2661
  passthroughData: d,
2602
2662
  recordingMediaTypes: C,
2603
- captureStream: m
2663
+ captureStream: g
2604
2664
  });
2605
2665
  }
2606
2666
  });
2607
2667
  const s = e[p];
2608
- return s.type === q.AvPermission && nt({
2668
+ return s.type === z.AvPermission && ot({
2609
2669
  currentPage: s,
2610
2670
  pages: e
2611
2671
  }), s;
2612
2672
  }
2613
- function rt({
2673
+ function it({
2614
2674
  status: e
2615
2675
  }) {
2616
2676
  const {
@@ -2622,15 +2682,15 @@ function rt({
2622
2682
  recorderEventEmitter: i,
2623
2683
  handleUploadUpdate: a,
2624
2684
  index: l
2625
- } = M.getState(), c = {
2685
+ } = $.getState(), c = {
2626
2686
  value: {
2627
2687
  taskStatus: e
2628
2688
  },
2629
2689
  type: b.RecordedTask,
2630
2690
  questionId: (n == null ? void 0 : n.questionId) || 1
2631
2691
  };
2632
- n && i.emit(H.FinishTask, {
2633
- [L.BeginCallback]: (d) => {
2692
+ n && i.emit(B.FinishTask, {
2693
+ [I.BeginCallback]: (d) => {
2634
2694
  a({
2635
2695
  mediaRecordingUid: d,
2636
2696
  isSubmitted: !0,
@@ -2638,7 +2698,7 @@ function rt({
2638
2698
  isComplete: !1
2639
2699
  });
2640
2700
  },
2641
- [L.ProgressCallback]: (d, p) => {
2701
+ [I.ProgressCallback]: (d, p) => {
2642
2702
  a({
2643
2703
  mediaRecordingUid: d,
2644
2704
  progressPct: p.detail,
@@ -2646,7 +2706,7 @@ function rt({
2646
2706
  isComplete: !1
2647
2707
  });
2648
2708
  },
2649
- [L.UploadCallback]: (d) => {
2709
+ [I.UploadCallback]: (d) => {
2650
2710
  d && a({
2651
2711
  mediaRecordingUid: d,
2652
2712
  isComplete: !0,
@@ -2654,22 +2714,22 @@ function rt({
2654
2714
  progressPct: 100
2655
2715
  });
2656
2716
  },
2657
- [L.PassthroughData]: n,
2658
- [L.CurrentIndex]: l,
2659
- [L.TaskResponse]: c,
2660
- [L.TaskCompleteCallback]: (d) => {
2717
+ [I.PassthroughData]: n,
2718
+ [I.CurrentIndex]: l,
2719
+ [I.TaskResponse]: c,
2720
+ [I.TaskCompleteCallback]: (d) => {
2661
2721
  c.value.taskDurationMillisecond = d, r && (c.value.mediaRecordingUids = r), o(), t(c);
2662
2722
  }
2663
2723
  });
2664
2724
  }
2665
- function ht({
2725
+ function gt({
2666
2726
  pages: e,
2667
2727
  setIsRequestingPermission: t
2668
2728
  }) {
2669
2729
  const {
2670
2730
  recorderEventEmitter: n,
2671
2731
  eventEmitFn: r
2672
- } = M.getState(), {
2732
+ } = $.getState(), {
2673
2733
  updatePage: o,
2674
2734
  currentPage: i,
2675
2735
  recordingMediaTypes: a,
@@ -2679,11 +2739,11 @@ function ht({
2679
2739
  return;
2680
2740
  const c = e.indexOf(i);
2681
2741
  switch (i.type) {
2682
- case q.AvPermission: {
2742
+ case z.AvPermission: {
2683
2743
  const d = l ? c + 2 : c + 1;
2684
- l && a && n.emit(H.BeginRecording, {
2685
- [L.RecordingMediaTypes]: a,
2686
- [L.StartRecordingCallback]: (p) => {
2744
+ l && a && n.emit(B.BeginRecording, {
2745
+ [I.RecordingMediaTypes]: a,
2746
+ [I.StartRecordingCallback]: (p) => {
2687
2747
  o({
2688
2748
  mediaRecordingUids: p
2689
2749
  });
@@ -2693,14 +2753,14 @@ function ht({
2693
2753
  });
2694
2754
  return;
2695
2755
  }
2696
- case q.ScreenPermission:
2697
- n.emit(H.ScreenPermission, {
2698
- [L.ScreenPermissionRequested]: t,
2699
- [L.StreamReadyCallback]: (d, p) => {
2756
+ case z.ScreenPermission:
2757
+ n.emit(B.ScreenPermission, {
2758
+ [I.ScreenPermissionRequested]: t,
2759
+ [I.StreamReadyCallback]: (d, p) => {
2700
2760
  const s = p ? e[c + 1] : i;
2701
- p && a && n.emit(H.BeginRecording, {
2702
- [L.RecordingMediaTypes]: a,
2703
- [L.StartRecordingCallback]: (_) => {
2761
+ p && a && n.emit(B.BeginRecording, {
2762
+ [I.RecordingMediaTypes]: a,
2763
+ [I.StartRecordingCallback]: (_) => {
2704
2764
  o({
2705
2765
  captureStream: p,
2706
2766
  mediaRecordingUids: _
@@ -2714,17 +2774,17 @@ function ht({
2714
2774
  }
2715
2775
  });
2716
2776
  return;
2717
- case q.StartTask:
2718
- r(ee.RecordedTaskStart), n.emit(ee.RecordedTaskStart), n.emit(H.StartTask), o({
2777
+ case z.StartTask:
2778
+ r(ee.RecordedTaskStart), n.emit(ee.RecordedTaskStart), n.emit(B.StartTask), o({
2719
2779
  currentPage: e[c + 1],
2720
2780
  screenPermissionRequested: !0
2721
2781
  });
2722
2782
  return;
2723
- case q.CompleteTask:
2783
+ case z.CompleteTask:
2724
2784
  return;
2725
2785
  }
2726
2786
  }
2727
- const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R([ir, "ul_recorded-task-inset-spacing"]), De = R(["ul-horizontal-button-container", "ul-horizontal-button-container-left"]), lr = ({
2787
+ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = L([sr, "ul_recorded-task-inset-spacing"]), je = L(["ul-horizontal-button-container", "ul-horizontal-button-container-left"]), ur = ({
2728
2788
  richTextBody: e
2729
2789
  }) => u("div", {
2730
2790
  className: "ul-rich-text-body",
@@ -2732,17 +2792,17 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
2732
2792
  __html: e
2733
2793
  },
2734
2794
  id: "ul-task-detail-container"
2735
- }), je = ({
2795
+ }), Fe = ({
2736
2796
  required: e,
2737
2797
  skipButtonText: t,
2738
2798
  bottom: n = !1
2739
- }) => e ? null : u(j, {
2740
- className: R([n && "ul-skip-button-below", w.InactiveButton]),
2741
- onClick: rt.bind(null, {
2742
- status: z.Abandoned
2799
+ }) => e ? null : u(q, {
2800
+ className: L([n && "ul-skip-button-below", w.InactiveButton]),
2801
+ onClick: it.bind(null, {
2802
+ status: W.Abandoned
2743
2803
  }),
2744
2804
  children: t || "Skip"
2745
- }), mt = (e) => {
2805
+ }), bt = (e) => {
2746
2806
  const {
2747
2807
  avStream: t,
2748
2808
  captureStream: n,
@@ -2761,7 +2821,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
2761
2821
  }, 1e3);
2762
2822
  return () => clearInterval(a);
2763
2823
  }, [t, n, i, e, r, o]);
2764
- }, jo = ({
2824
+ }, Fo = ({
2765
2825
  content: e,
2766
2826
  pages: t,
2767
2827
  required: n
@@ -2771,24 +2831,24 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
2771
2831
  skipButtonText: o,
2772
2832
  taskDetail: i
2773
2833
  } = e;
2774
- return mt(t), u("div", {
2834
+ return bt(t), u("div", {
2775
2835
  className: "ul-task-page",
2776
- children: [u(lr, {
2836
+ children: [i && u(ur, {
2777
2837
  richTextBody: i
2778
2838
  }), u("div", {
2779
- className: De,
2780
- children: [u(j, {
2781
- onClick: ht.bind(null, {
2839
+ className: je,
2840
+ children: [u(q, {
2841
+ onClick: gt.bind(null, {
2782
2842
  pages: t
2783
2843
  }),
2784
2844
  children: r
2785
- }), u(je, {
2845
+ }), u(Fe, {
2786
2846
  required: n,
2787
2847
  skipButtonText: o
2788
2848
  })]
2789
2849
  })]
2790
2850
  }, "start-task");
2791
- }, Fo = ({
2851
+ }, qo = ({
2792
2852
  content: e,
2793
2853
  pages: t,
2794
2854
  properties: n
@@ -2797,21 +2857,21 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
2797
2857
  buttonText: r,
2798
2858
  skipButtonText: o
2799
2859
  } = e;
2800
- mt(t);
2860
+ bt(t);
2801
2861
  const a = u(ae, {
2802
2862
  properties: n,
2803
2863
  defaultBody: () => u("div", {
2804
- className: De,
2805
- children: [u(j, {
2864
+ className: je,
2865
+ children: [u(q, {
2806
2866
  className: "ul-complete-task-button",
2807
- onClick: rt.bind(null, {
2808
- status: z.Completed
2867
+ onClick: it.bind(null, {
2868
+ status: W.Completed
2809
2869
  }),
2810
2870
  children: r
2811
- }), u(j, {
2812
- className: R([w.InactiveButton]),
2813
- onClick: rt.bind(null, {
2814
- status: z.GivenUp
2871
+ }), u(q, {
2872
+ className: L([w.InactiveButton]),
2873
+ onClick: it.bind(null, {
2874
+ status: W.GivenUp
2815
2875
  }),
2816
2876
  children: o
2817
2877
  })]
@@ -2819,11 +2879,11 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
2819
2879
  });
2820
2880
  return u("div", {
2821
2881
  className: "ul-task-page",
2822
- children: [u(lr, {
2882
+ children: [e.taskDetail && u(ur, {
2823
2883
  richTextBody: e.taskDetail
2824
2884
  }), a]
2825
2885
  }, "complete-task");
2826
- }, qo = ({
2886
+ }, zo = ({
2827
2887
  content: e,
2828
2888
  pages: t,
2829
2889
  required: n
@@ -2831,10 +2891,10 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
2831
2891
  const {
2832
2892
  buttonText: r,
2833
2893
  skipButtonText: o
2834
- } = e, [i] = M((c) => [c.tabTitle]), [a, l] = B(!1);
2894
+ } = e, [i] = $((c) => [c.tabTitle]), [a, l] = D(!1);
2835
2895
  return u("div", {
2836
2896
  children: [u("div", {
2837
- className: sr,
2897
+ className: cr,
2838
2898
  children: [u("p", {
2839
2899
  style: {
2840
2900
  marginTop: "auto"
@@ -2843,33 +2903,33 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
2843
2903
  }), u("div", {
2844
2904
  className: "ul-select-tab-container",
2845
2905
  children: u("p", {
2846
- className: ar,
2906
+ className: lr,
2847
2907
  children: i
2848
2908
  })
2849
2909
  })]
2850
2910
  }), u("div", {
2851
- className: n ? "" : De,
2852
- children: [u(j, {
2911
+ className: n ? "" : je,
2912
+ children: [u(q, {
2853
2913
  disabled: a,
2854
- onClick: ht.bind(null, {
2914
+ onClick: gt.bind(null, {
2855
2915
  pages: t,
2856
2916
  setIsRequestingPermission: l
2857
2917
  }),
2858
2918
  children: r
2859
- }), u(je, {
2919
+ }), u(Fe, {
2860
2920
  required: n,
2861
2921
  skipButtonText: o
2862
2922
  })]
2863
2923
  })]
2864
2924
  });
2865
- }, zo = ({
2925
+ }, Wo = ({
2866
2926
  content: e
2867
2927
  }) => u("div", {
2868
- className: R([ir, "ul_permission_svg_container", "ul_recorded-task-inset-spacing", "ul-center-horizontally"]),
2928
+ className: L([sr, "ul_permission_svg_container", "ul_recorded-task-inset-spacing", "ul-center-horizontally"]),
2869
2929
  dangerouslySetInnerHTML: {
2870
2930
  __html: e.svg
2871
2931
  }
2872
- }, "ul-permission-request-graphic"), Wo = ({
2932
+ }, "ul-permission-request-graphic"), Zo = ({
2873
2933
  content: e,
2874
2934
  pages: t,
2875
2935
  required: n
@@ -2879,10 +2939,10 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
2879
2939
  permissionDeniedBody: o,
2880
2940
  skipButtonText: i,
2881
2941
  tryAgainButtonText: a
2882
- } = e, l = Be(t[0]) ? t[0] : null;
2942
+ } = e, l = De(t[0]) ? t[0] : null;
2883
2943
  return F(() => {
2884
2944
  const c = setInterval(() => {
2885
- l !== null && nt({
2945
+ l !== null && ot({
2886
2946
  currentPage: l,
2887
2947
  pages: t
2888
2948
  });
@@ -2890,42 +2950,42 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
2890
2950
  return () => clearInterval(c);
2891
2951
  }, [l, t]), l ? u("div", {
2892
2952
  children: [u("div", {
2893
- className: sr,
2953
+ className: cr,
2894
2954
  children: u("p", {
2895
2955
  className: "ul-av-permission-denied-paragraph",
2896
2956
  children: [u("span", {
2897
2957
  className: "ul-av-permission-denied-headline",
2898
2958
  children: r
2899
2959
  }), u("span", {
2900
- className: ar,
2960
+ className: lr,
2901
2961
  children: o
2902
2962
  })]
2903
2963
  })
2904
2964
  }), u("div", {
2905
- className: De,
2906
- children: [u(j, {
2907
- onClick: nt.bind(null, {
2965
+ className: je,
2966
+ children: [u(q, {
2967
+ onClick: ot.bind(null, {
2908
2968
  currentPage: l,
2909
2969
  pages: t
2910
2970
  }),
2911
2971
  children: a
2912
- }), u(je, {
2972
+ }), u(Fe, {
2913
2973
  required: n,
2914
2974
  skipButtonText: i
2915
2975
  })]
2916
2976
  })]
2917
2977
  }) : null;
2918
- }, Zo = ({
2978
+ }, Go = ({
2919
2979
  stream: e
2920
2980
  }) => u("video", {
2921
2981
  autoPlay: !0,
2922
- className: R(["ul_recorded-task-inset-spacing"]),
2982
+ className: L(["ul_recorded-task-inset-spacing"]),
2923
2983
  id: "ul-record-task-video-preview",
2924
2984
  muted: !0,
2925
2985
  ref: (t) => {
2926
2986
  t && (t.srcObject = e || null);
2927
2987
  }
2928
- }), Go = ({
2988
+ }), Qo = ({
2929
2989
  content: e,
2930
2990
  pages: t,
2931
2991
  required: n
@@ -2935,24 +2995,24 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
2935
2995
  } = e, {
2936
2996
  avStream: o
2937
2997
  } = K.getState();
2938
- return mt(t), u("div", {
2939
- children: [u(Zo, {
2998
+ return bt(t), u("div", {
2999
+ children: [u(Go, {
2940
3000
  stream: o
2941
3001
  }), u("div", {
2942
3002
  className: "ul-vertical-button-container-center",
2943
- children: [u(j, {
2944
- onClick: ht.bind(null, {
3003
+ children: [u(q, {
3004
+ onClick: gt.bind(null, {
2945
3005
  pages: t
2946
3006
  }),
2947
3007
  children: e.buttonText
2948
- }), u(je, {
3008
+ }), u(Fe, {
2949
3009
  bottom: !0,
2950
3010
  required: n,
2951
3011
  skipButtonText: r
2952
3012
  })]
2953
3013
  })]
2954
3014
  });
2955
- }, Qo = ({
3015
+ }, Ko = ({
2956
3016
  properties: e
2957
3017
  }) => {
2958
3018
  const {
@@ -2965,34 +3025,34 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
2965
3025
  if (o === void 0)
2966
3026
  return null;
2967
3027
  switch (o == null ? void 0 : o.type) {
2968
- case q.AvPermission: {
2969
- const i = or(r, o);
2970
- return i === oe.RequestNeeded ? u(zo, {
3028
+ case z.AvPermission: {
3029
+ const i = ar(r, o);
3030
+ return i === ie.RequestNeeded ? u(Wo, {
2971
3031
  content: o
2972
- }) : i === oe.TryAgain ? u(Wo, {
3032
+ }) : i === ie.TryAgain ? u(Zo, {
2973
3033
  content: o,
2974
3034
  pages: t,
2975
3035
  required: n
2976
- }) : u(Go, {
3036
+ }) : u(Qo, {
2977
3037
  content: o,
2978
3038
  pages: t,
2979
3039
  required: n
2980
3040
  });
2981
3041
  }
2982
- case q.ScreenPermission:
2983
- return u(qo, {
3042
+ case z.ScreenPermission:
3043
+ return u(zo, {
2984
3044
  content: o,
2985
3045
  pages: t,
2986
3046
  required: n
2987
3047
  });
2988
- case q.StartTask:
2989
- return u(jo, {
3048
+ case z.StartTask:
3049
+ return u(Fo, {
2990
3050
  content: o,
2991
3051
  pages: t,
2992
3052
  required: n
2993
3053
  });
2994
- case q.CompleteTask:
2995
- return u(Fo, {
3054
+ case z.CompleteTask:
3055
+ return u(qo, {
2996
3056
  content: o,
2997
3057
  pages: t,
2998
3058
  properties: e
@@ -3000,52 +3060,52 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
3000
3060
  default:
3001
3061
  return null;
3002
3062
  }
3003
- }, Ko = ({
3063
+ }, Yo = ({
3004
3064
  className: e,
3005
3065
  properties: t,
3006
3066
  next: n,
3007
3067
  questionId: r
3008
3068
  }) => {
3009
- const o = M(), {
3069
+ const o = $(), {
3010
3070
  surveyId: i,
3011
3071
  responseGroupUid: a,
3012
3072
  userId: l
3013
3073
  } = o, c = K(), {
3014
3074
  screenPermissionRequested: d
3015
- } = c, p = K((m) => m.avStream);
3016
- let s = K((m) => m.currentPage);
3017
- s || (s = Do({
3075
+ } = c, p = K((g) => g.avStream);
3076
+ let s = K((g) => g.currentPage);
3077
+ s || (s = jo({
3018
3078
  questionId: r,
3019
3079
  surveyId: i,
3020
- next: (m) => {
3021
- n(m);
3080
+ next: (g) => {
3081
+ n(g);
3022
3082
  },
3023
3083
  pages: t.pages,
3024
3084
  responseGroupUid: a,
3025
3085
  userId: l
3026
3086
  }));
3027
3087
  let _ = s.headline, f = s.captionText;
3028
- const g = or(p, s);
3029
- return rr(s) && d && (_ = s.permissionDeniedHeadline, f = s.permissionDeniedCaptionText), Be(s) && g === oe.Ready && (_ = s.permissionGrantedHeadline, f = s.permissionGrantedCaptionText), u("div", {
3030
- className: R([e, "ul-center-horizontally", w.FadeInTransition]),
3088
+ const m = ar(p, s);
3089
+ return ir(s) && d && (_ = s.permissionDeniedHeadline, f = s.permissionDeniedCaptionText), De(s) && m === ie.Ready && (_ = s.permissionGrantedHeadline, f = s.permissionGrantedCaptionText), u("div", {
3090
+ className: L([e, "ul-center-horizontally", w.FadeInTransition]),
3031
3091
  children: [u(Y, {
3032
3092
  message: _,
3033
3093
  properties: {
3034
3094
  captionText: f
3035
3095
  }
3036
- }), u(Qo, {
3096
+ }), u(Ko, {
3037
3097
  properties: t
3038
3098
  })]
3039
3099
  });
3040
- }, Yo = {
3100
+ }, Jo = {
3041
3101
  "{{user_id}}": "externalUserId",
3042
3102
  "{{email}}": "email"
3043
- }, Jo = (e = void 0, t = {}) => {
3103
+ }, Xo = (e = void 0, t = {}) => {
3044
3104
  if (!e)
3045
3105
  return e;
3046
3106
  let n = e;
3047
3107
  const r = [];
3048
- for (const [c, d] of Object.entries(Yo))
3108
+ for (const [c, d] of Object.entries(Jo))
3049
3109
  if (n.toLowerCase().includes(c))
3050
3110
  if (t[d]) {
3051
3111
  const p = new RegExp(c, "gi");
@@ -3059,7 +3119,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
3059
3119
  return o;
3060
3120
  const l = a.map((c) => c.join("=")).join("&");
3061
3121
  return `${o}?${l}`;
3062
- }, Xo = ({
3122
+ }, ei = ({
3063
3123
  className: e,
3064
3124
  message: t,
3065
3125
  next: n,
@@ -3069,7 +3129,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
3069
3129
  }) => {
3070
3130
  const {
3071
3131
  visitorAttributes: a
3072
- } = M((s) => ({
3132
+ } = $((s) => ({
3073
3133
  visitorAttributes: s.visitorAttributes
3074
3134
  })), l = (s, _ = !1) => {
3075
3135
  n({
@@ -3086,7 +3146,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
3086
3146
  type: i
3087
3147
  });
3088
3148
  }, d = () => {
3089
- const s = Jo(r && r.buttonUrl, a);
3149
+ const s = Xo(r && r.buttonUrl, a);
3090
3150
  return u("div", {
3091
3151
  className: "ul-card-button-group",
3092
3152
  children: [u("a", {
@@ -3099,11 +3159,11 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
3099
3159
  role: s ? "link" : "button",
3100
3160
  tabIndex: 0,
3101
3161
  target: "_blank",
3102
- children: be(r)
3162
+ children: ve(r)
3103
3163
  }), r.required === !1 && u("button", {
3104
3164
  className: w.SkipButton,
3105
3165
  onClick: (_) => l(_, !0),
3106
- children: tr(r)
3166
+ children: rr(r)
3107
3167
  })]
3108
3168
  });
3109
3169
  }, p = (s, _) => s ? u("div", {
@@ -3115,12 +3175,12 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
3115
3175
  }) : u("div", {
3116
3176
  className: "ul-rich-text-body",
3117
3177
  id: "ul-card__text-url-body-container",
3118
- children: (_ ? _.split(/\n\s*\n/g) : []).map((f, g) => u("p", {
3178
+ children: (_ ? _.split(/\n\s*\n/g) : []).map((f, m) => u("p", {
3119
3179
  children: f
3120
- }, g))
3180
+ }, m))
3121
3181
  });
3122
3182
  return u("div", {
3123
- className: R([e, "ul-card__text-url-prompt", w.FadeInTransition]),
3183
+ className: L([e, "ul-card__text-url-prompt", w.FadeInTransition]),
3124
3184
  children: [u(Y, {
3125
3185
  message: t
3126
3186
  }), p(r == null ? void 0 : r.richTextBody, r == null ? void 0 : r.body), u(ae, {
@@ -3128,7 +3188,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
3128
3188
  properties: r
3129
3189
  })]
3130
3190
  }, o);
3131
- }, ei = ({
3191
+ }, ti = ({
3132
3192
  className: e,
3133
3193
  questionId: t
3134
3194
  }) => {
@@ -3137,7 +3197,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
3137
3197
  destroy: r,
3138
3198
  endCard: o,
3139
3199
  forceBrandedLogo: i
3140
- } = M((c) => ({
3200
+ } = $((c) => ({
3141
3201
  border: c.border,
3142
3202
  destroy: c.destroy,
3143
3203
  endCard: c.endCard,
@@ -3145,7 +3205,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
3145
3205
  }));
3146
3206
  F(() => {
3147
3207
  setTimeout(() => {
3148
- r(fe);
3208
+ r(_e);
3149
3209
  }, i ? 4e3 : 2e3);
3150
3210
  }, [r, i]);
3151
3211
  const a = o && o.subheader ? u("p", {
@@ -3153,7 +3213,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
3153
3213
  children: o.subheader
3154
3214
  }) : null, l = o && o.headline ? o.headline : "";
3155
3215
  return u("div", {
3156
- className: R([e, "ul-card--thanks", w.FadeInTransition]),
3216
+ className: L([e, "ul-card--thanks", w.FadeInTransition]),
3157
3217
  children: u("div", {
3158
3218
  children: u("div", {
3159
3219
  className: "ul-card--thanks-content",
@@ -3188,19 +3248,19 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
3188
3248
  })
3189
3249
  })
3190
3250
  }, t);
3191
- }, ti = ({
3251
+ }, ni = ({
3192
3252
  className: e
3193
3253
  }) => {
3194
3254
  const {
3195
3255
  uploadProgress: t
3196
- } = M((i) => ({
3256
+ } = $((i) => ({
3197
3257
  uploadProgress: i.uploadProgress
3198
3258
  }));
3199
3259
  let n, r;
3200
3260
  Object.values(t).filter((i) => i.isSubmitted).length > 1 ? (n = "Your responses are processing", r = "Please keep this tab open until your responses are fully processed.") : (n = "Your response is processing", r = "Please keep this tab open until your response is fully processed.");
3201
3261
  const o = Math.round(Math.min(99, ...Object.values(t).filter((i) => i.isSubmitted).map((i) => i.progressPct || 0)));
3202
3262
  return u("div", {
3203
- className: R([e, "ul-card--uploading", w.FadeInTransition]),
3263
+ className: L([e, "ul-card--uploading", w.FadeInTransition]),
3204
3264
  children: [u("div", {
3205
3265
  "aria-busy": "true",
3206
3266
  "aria-label": "Processing...",
@@ -3226,7 +3286,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
3226
3286
  children: r
3227
3287
  })]
3228
3288
  });
3229
- }, Gt = ({
3289
+ }, Kt = ({
3230
3290
  logoOnly: e = !1,
3231
3291
  style: t = {}
3232
3292
  }) => u("svg", {
@@ -3265,7 +3325,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
3265
3325
  fill: "black",
3266
3326
  fillOpacity: "0.7"
3267
3327
  })]
3268
- }), ni = () => {
3328
+ }), ri = () => {
3269
3329
  const {
3270
3330
  border: e,
3271
3331
  cards: t,
@@ -3277,22 +3337,22 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
3277
3337
  slugName: l,
3278
3338
  surveyId: c,
3279
3339
  viewedCardCount: d
3280
- } = M((S) => ({
3281
- border: S.border,
3282
- cards: S.cards,
3283
- forceBrandedLogo: S.forceBrandedLogo,
3284
- headers: S.headers,
3285
- index: S.index,
3286
- marketingUrl: S.marketingUrl,
3287
- showSurveyBrand: S.showSurveyBrand,
3288
- slugName: S.slugName,
3289
- surveyId: S.surveyId,
3290
- viewedCardCount: S.viewedCardCount
3291
- })), p = ie(null), s = t.filter((S) => S.type !== b.Uploading && S.type !== b.Thanks), _ = wo(t, o), f = d + 1, g = f / (f + _), m = `${i}?utm_source=survey_branding&utm_medium=website&utm_campaign=${l}&utm_content=${c}${n && "&utm_term=poweredby_pill"}`;
3340
+ } = $((k) => ({
3341
+ border: k.border,
3342
+ cards: k.cards,
3343
+ forceBrandedLogo: k.forceBrandedLogo,
3344
+ headers: k.headers,
3345
+ index: k.index,
3346
+ marketingUrl: k.marketingUrl,
3347
+ showSurveyBrand: k.showSurveyBrand,
3348
+ slugName: k.slugName,
3349
+ surveyId: k.surveyId,
3350
+ viewedCardCount: k.viewedCardCount
3351
+ })), p = ne(null), s = t.filter((k) => k.type !== b.Uploading && k.type !== b.Thanks), _ = To(t, o), f = d + 1, m = f / (f + _), g = `${i}?utm_source=survey_branding&utm_medium=website&utm_campaign=${l}&utm_content=${c}${n && "&utm_term=poweredby_pill"}`;
3292
3352
  F(() => {
3293
- p.current && (p.current.style.width = `${g * 100}%`);
3294
- }, [g]);
3295
- const y = () => u(D, {
3353
+ p.current && (p.current.style.width = `${m * 100}%`);
3354
+ }, [m]);
3355
+ const y = () => u(j, {
3296
3356
  children: [s.length > 1 && u("div", {
3297
3357
  id: "ul-progress-bar-container",
3298
3358
  children: u("div", {
@@ -3308,16 +3368,16 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
3308
3368
  marginTop: "4px"
3309
3369
  },
3310
3370
  children: u("a", {
3311
- href: m,
3371
+ href: g,
3312
3372
  rel: "noreferrer",
3313
3373
  target: "_blank",
3314
3374
  children: u("div", {
3315
3375
  style: {
3316
3376
  display: "flex"
3317
3377
  },
3318
- children: [u(Gt, {
3378
+ children: [u(Kt, {
3319
3379
  logoOnly: !1
3320
- }), n && u(Qt, {
3380
+ }), n && u(Yt, {
3321
3381
  style: {
3322
3382
  display: "block",
3323
3383
  margin: "auto 0 auto 4px",
@@ -3329,14 +3389,14 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
3329
3389
  }) : null]
3330
3390
  }), v = () => u("a", {
3331
3391
  dir: "ltr",
3332
- href: m,
3392
+ href: g,
3333
3393
  rel: "noreferrer",
3334
3394
  target: "_blank",
3335
3395
  children: u("div", {
3336
3396
  className: "thank-you-card-link",
3337
3397
  children: [u("div", {
3338
3398
  className: "sprig-box-logo",
3339
- children: u(Gt, {
3399
+ children: u(Kt, {
3340
3400
  logoOnly: !0,
3341
3401
  style: {
3342
3402
  margin: "auto"
@@ -3344,7 +3404,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
3344
3404
  })
3345
3405
  }), u("div", {
3346
3406
  children: u("p", {
3347
- children: ["Capture insights about your own product", u(Qt, {
3407
+ children: ["Capture insights about your own product", u(Yt, {
3348
3408
  style: {
3349
3409
  display: "inline-flex",
3350
3410
  marginInlineStart: "4px",
@@ -3362,7 +3422,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
3362
3422
  },
3363
3423
  children: C && n ? v() : y()
3364
3424
  });
3365
- }, Qt = ({
3425
+ }, Yt = ({
3366
3426
  style: e
3367
3427
  }) => u("svg", {
3368
3428
  fill: "none",
@@ -3384,7 +3444,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
3384
3444
  strokeLinejoin: "round",
3385
3445
  strokeWidth: "1.35"
3386
3446
  })]
3387
- }), ri = () => {
3447
+ }), oi = () => {
3388
3448
  const {
3389
3449
  answers: e,
3390
3450
  border: t,
@@ -3400,177 +3460,177 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
3400
3460
  next: s,
3401
3461
  showStripes: _,
3402
3462
  surveyId: f,
3403
- update: g,
3404
- useMobileStyling: m,
3463
+ update: m,
3464
+ useMobileStyling: g,
3405
3465
  viewDocument: y
3406
- } = M((P) => ({
3407
- answers: P.answers,
3408
- border: P.border,
3409
- cards: P.cards,
3410
- close: P.close,
3411
- configureExitOnOverlayClick: P.configureExitOnOverlayClick,
3412
- destroy: P.destroy,
3413
- endCard: P.endCard,
3414
- eventEmitFn: P.eventEmitFn,
3415
- fontFamily: P.fontFamily,
3416
- headers: P.headers,
3417
- index: P.index,
3418
- next: P.next,
3419
- showStripes: P.showStripes,
3420
- surveyId: P.surveyId,
3421
- update: P.update,
3422
- useMobileStyling: P.useMobileStyling,
3423
- viewDocument: P.viewDocument
3424
- })), v = ie(null), C = ie(!1), S = d["userleap-platform"], {
3425
- props: E,
3426
- type: h,
3427
- name: T
3428
- } = n[p], I = n.length;
3466
+ } = $((E) => ({
3467
+ answers: E.answers,
3468
+ border: E.border,
3469
+ cards: E.cards,
3470
+ close: E.close,
3471
+ configureExitOnOverlayClick: E.configureExitOnOverlayClick,
3472
+ destroy: E.destroy,
3473
+ endCard: E.endCard,
3474
+ eventEmitFn: E.eventEmitFn,
3475
+ fontFamily: E.fontFamily,
3476
+ headers: E.headers,
3477
+ index: E.index,
3478
+ next: E.next,
3479
+ showStripes: E.showStripes,
3480
+ surveyId: E.surveyId,
3481
+ update: E.update,
3482
+ useMobileStyling: E.useMobileStyling,
3483
+ viewDocument: E.viewDocument
3484
+ })), v = ne(null), C = ne(!1), k = d["userleap-platform"], {
3485
+ props: R,
3486
+ type: P,
3487
+ name: S
3488
+ } = n[p], A = n.length;
3429
3489
  F(() => {
3430
- v.current && (v.current.classList.contains("ul-app--visible") || v.current.classList.add("ul-app--visible"), !C.current && l && (C.current = !0, l(re.SurveyAppeared, {
3431
- name: re.SurveyAppeared,
3432
- [yr.SurveyId]: f
3490
+ v.current && (v.current.classList.contains("ul-app--visible") || v.current.classList.add("ul-app--visible"), !C.current && l && (C.current = !0, l(oe.SurveyAppeared, {
3491
+ name: oe.SurveyAppeared,
3492
+ [xr.SurveyId]: f
3433
3493
  })));
3434
3494
  }, [l, f]), F(() => {
3435
- g();
3436
- }, [p, g]), F(() => {
3495
+ m();
3496
+ }, [p, m]), F(() => {
3437
3497
  o(() => r());
3438
3498
  }, [r, o]);
3439
- const N = () => r(fe), k = (P) => {
3440
- P.key === "Enter" && N();
3441
- }, $ = async function(P) {
3499
+ const N = () => r(_e), h = (E) => {
3500
+ E.key === "Enter" && N();
3501
+ }, T = async function(E) {
3442
3502
  s({
3443
- data: P,
3503
+ data: E,
3444
3504
  completeSurvey: () => {
3445
- i(fe);
3505
+ i(_e);
3446
3506
  },
3447
3507
  endCard: a
3448
- }), xr(y);
3508
+ }), Cr(y);
3449
3509
  };
3450
3510
  if (e) {
3451
- for (const P of e)
3452
- if (P.questionId === T) {
3453
- let ne;
3454
- if (h === b.MultipleChoice) {
3455
- const le = E.options.find(({
3456
- value: Fe
3457
- }) => Fe === P.value);
3511
+ for (const E of e)
3512
+ if (E.questionId === S) {
3513
+ let re;
3514
+ if (P === b.MultipleChoice) {
3515
+ const le = R.options.find(({
3516
+ value: qe
3517
+ }) => qe === E.value);
3458
3518
  if (!le)
3459
3519
  break;
3460
- ne = {
3520
+ re = {
3461
3521
  [le.id]: le.value
3462
3522
  };
3463
3523
  } else
3464
- ne = P.value;
3465
- $({
3466
- value: ne,
3467
- type: h,
3468
- questionId: P.questionId
3524
+ re = E.value;
3525
+ T({
3526
+ value: re,
3527
+ type: P,
3528
+ questionId: E.questionId
3469
3529
  });
3470
3530
  break;
3471
3531
  }
3472
3532
  }
3473
- const Z = () => [Ge.Email, Ge.Link].includes(d["userleap-platform"]) ? !1 : !a || p + 1 !== I, O = () => m ? {
3533
+ const O = () => [Ke.Email, Ke.Link].includes(d["userleap-platform"]) ? !1 : !a || p + 1 !== A, se = () => g ? {
3474
3534
  borderColor: t
3475
3535
  } : {
3476
3536
  borderColor: t,
3477
3537
  margin: "15px"
3478
- }, se = () => {
3479
- const P = {
3538
+ }, U = () => {
3539
+ const E = {
3480
3540
  className: "ul-card",
3481
- next: $,
3482
- questionId: T,
3483
- type: h
3541
+ next: T,
3542
+ questionId: S,
3543
+ type: P
3484
3544
  };
3485
- switch (h) {
3545
+ switch (P) {
3486
3546
  case b.ConsentLegal:
3487
- return U(Lo, {
3488
- ...P,
3547
+ return V(Ao, {
3489
3548
  ...E,
3490
- key: T
3549
+ ...R,
3550
+ key: S
3491
3551
  });
3492
3552
  case b.Likert:
3493
- return U(Mo, {
3494
- ...P,
3553
+ return V($o, {
3495
3554
  ...E,
3496
- key: T
3555
+ ...R,
3556
+ key: S
3497
3557
  });
3498
3558
  case b.Matrix:
3499
- return U($o, {
3500
- ...P,
3559
+ return V(Oo, {
3501
3560
  ...E,
3502
- key: T
3561
+ ...R,
3562
+ key: S
3503
3563
  });
3504
3564
  case b.MultipleChoice:
3505
- return U(Oo, {
3506
- ...P,
3565
+ return V(Uo, {
3507
3566
  ...E,
3508
- key: T
3567
+ ...R,
3568
+ key: S
3509
3569
  });
3510
3570
  case b.MultipleSelect:
3511
- return U(Uo, {
3512
- ...P,
3571
+ return V(Vo, {
3513
3572
  ...E,
3514
- key: T
3573
+ ...R,
3574
+ key: S
3515
3575
  });
3516
3576
  case b.NPS:
3517
- return U(Vo, {
3518
- ...P,
3519
- key: T,
3520
- props: E
3577
+ return V(Ho, {
3578
+ ...E,
3579
+ key: S,
3580
+ props: R
3521
3581
  });
3522
3582
  case b.Open:
3523
- return U(Ho, {
3524
- ...P,
3583
+ return V(Bo, {
3525
3584
  ...E,
3526
- key: T
3585
+ ...R,
3586
+ key: S
3527
3587
  });
3528
3588
  case b.RecordedTask:
3529
- return U(Ko, {
3530
- ...P,
3589
+ return V(Yo, {
3531
3590
  ...E,
3532
- key: T
3591
+ ...R,
3592
+ key: S
3533
3593
  });
3534
3594
  case b.TextUrlPrompt:
3535
- return U(Xo, {
3536
- ...P,
3595
+ return V(ei, {
3537
3596
  ...E,
3538
- key: T
3597
+ ...R,
3598
+ key: S
3539
3599
  });
3540
3600
  case b.Thanks:
3541
- return U(ei, {
3542
- ...P,
3601
+ return V(ti, {
3543
3602
  ...E,
3544
- key: T
3603
+ ...R,
3604
+ key: S
3545
3605
  });
3546
3606
  case b.Uploading:
3547
- return U(ti, {
3548
- ...P,
3607
+ return V(ni, {
3549
3608
  ...E,
3550
- key: T
3609
+ ...R,
3610
+ key: S
3551
3611
  });
3552
3612
  case b.VideoVoice:
3553
3613
  return null;
3554
3614
  default:
3555
3615
  return null;
3556
3616
  }
3557
- }, ur = (P) => {
3558
- var gt;
3559
- const ne = window.sprigAPI, le = P.target;
3560
- if (!ne || !le)
3617
+ }, de = (E) => {
3618
+ var vt;
3619
+ const re = window.sprigAPI, le = E.target;
3620
+ if (!re || !le)
3561
3621
  return;
3562
- const Fe = [le, le.parentElement];
3563
- for (const Ee of Fe)
3564
- if (((gt = Ee == null ? void 0 : Ee.tagName) == null ? void 0 : gt.toLowerCase()) === "a") {
3565
- P.preventDefault(), ne == null || ne.openUrl(Ee.href);
3622
+ const qe = [le, le.parentElement];
3623
+ for (const Re of qe)
3624
+ if (((vt = Re == null ? void 0 : Re.tagName) == null ? void 0 : vt.toLowerCase()) === "a") {
3625
+ E.preventDefault(), re == null || re.openUrl(Re.href);
3566
3626
  return;
3567
3627
  }
3568
3628
  };
3569
3629
  return u("div", {
3570
- className: R("ul-app", Me(d) ? "ul-app--visible" : "ul-app--overlay"),
3630
+ className: L("ul-app", $e(d) ? "ul-app--visible" : "ul-app--overlay"),
3571
3631
  dir: "auto",
3572
- id: fe,
3573
- onClick: ur,
3632
+ id: _e,
3633
+ onClick: de,
3574
3634
  ref: v,
3575
3635
  style: {
3576
3636
  "--theme": t,
@@ -3581,15 +3641,15 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
3581
3641
  children: u("div", {
3582
3642
  className: "ul-app__container",
3583
3643
  children: u("div", {
3584
- className: R(V(w.CardContainer, m)),
3585
- style: O(),
3586
- children: [Z() && u("div", {
3587
- className: R(V(w.CloseContainer, m)),
3644
+ className: L(H(w.CardContainer, g)),
3645
+ style: se(),
3646
+ children: [O() && u("div", {
3647
+ className: L(H(w.CloseContainer, g)),
3588
3648
  children: u("div", {
3589
3649
  "aria-label": "Close button",
3590
3650
  className: w.CloseButton,
3591
3651
  onClick: N,
3592
- onKeyPress: k,
3652
+ onKeyPress: h,
3593
3653
  role: "button",
3594
3654
  tabIndex: 0,
3595
3655
  children: u("svg", {
@@ -3612,13 +3672,13 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
3612
3672
  children: "For development purposes only"
3613
3673
  })
3614
3674
  }), u("div", {
3615
- className: R(vr(w.CardMainContent, S)),
3616
- children: se()
3617
- }), u(ni, {})]
3675
+ className: L(yr(w.CardMainContent, k)),
3676
+ children: U()
3677
+ }), u(ri, {})]
3618
3678
  })
3619
3679
  })
3620
3680
  });
3621
- }, oi = 'html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}button,input,select,textarea{margin:0}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}ol,ul{padding-inline-start:1em}.ul-card{flex:1 1 auto;border-radius:2px;display:flex;flex-direction:column;font-size:17px;line-height:19px;text-align:start;margin:auto}.ul-card__container--desktop{border:2px solid #fff;box-shadow:0 0 15px #00000026}.ul-card__container--mobile{border-width:0;box-shadow:0 0 5px #00000040;margin-top:5px}.ul-card__container{background:#fff;border-radius:6px;display:flex;flex-direction:column;flex-grow:1;flex:1 1 auto;font-size:17px;line-height:23px;overflow:auto;padding:20px 20px 5px;position:relative;text-align:center;word-break:break-word;min-width:min-content}.ul-card-vertical__button-wrapper{flex-direction:column;align-items:center}.ul-card__button-wrapper{margin-top:4px;margin-bottom:3px;display:flex;gap:16px;justify-content:center}.ul-rich-text-body{min-height:2em}.ul-rich-text-body,.ul-rich-text-body p{margin-top:10px;margin-bottom:10px}.ul-rich-text-body li{margin:5px 0}.ul-rich-text-body p,.ul-rich-text-body li{font-size:15px;line-height:130.35%;letter-spacing:.02em;color:#343442;text-align:start;white-space:pre-line}.ul-rich-text-body:last-child,.ul-rich-text-body li:last-child{margin-bottom:15px}.ul-card-main-content__link,.ul-card-main-content__email{flex-grow:55;display:flex}.ul-card-main-content__web,.ul-card-main-content__android,.ul-card-main-content__ios{margin-bottom:5px}.ul-question{color:#343442;display:block;font-size:20px;line-height:125%;font-weight:500;cursor:default;text-align:start}.ul-caption{flex:1 0 auto;margin-top:8px;margin-bottom:15px;font-size:15px;line-height:130.35%;letter-spacing:.02em;color:#6c6c6e;text-align:start}.ul-card__choices{margin:5px 0 0;flex:1 0}.choice--mobile{border:2px solid #e6e6e6}.choice--desktop{border:1px solid #e6e6e6}.choice{align-items:flex-start;color:#262136;cursor:pointer;display:flex;justify-content:flex-start;flex-direction:column;box-sizing:border-box;border-radius:3px;margin-bottom:7px;font-size:15px;line-height:20px;padding:10px 20px 10px 15px;background-color:#00000003}.choice--desktop:hover,.choice--desktop:active,.choice--mobile:active{background-color:#0000000d}.choice-label-container{align-items:center;display:flex;flex-direction:row;flex:0 0 fit-content;gap:15px;height:fit-content;justify-content:flex-start;width:100%}.choice-text-entry-container{width:100%;height:fit-content;flex:0 1 fit-content;overflow:hidden}.choice .choice-text-input--mobile{max-height:63px}.choice .choice-text-input--desktop{max-height:150px}.choice .choice-text-input{box-sizing:border-box;background-color:transparent;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;min-height:20px;max-height:60px;padding:0;margin-top:8px;resize:none;width:100%;font-size:14px;line-height:20px;outline:none;border:none;overflow-wrap:break-word}.choice .choice-text-input::placeholder{color:#6c6c6e80}.ul-thanks-check{text-align:center;margin-bottom:20px}.ul-card--thanks-content{padding:20px 0 10px}.ul-card--thanks .ul-question{padding-top:0;text-align:center}.ul-card--thanks .ul-caption{padding-top:0;text-align:center;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-lines:no-limit}.ul-card--uploading .ul-question{padding-top:15px;text-align:center}.ul-card--uploading .ul-caption{padding-top:5px;text-align:center;overflow-wrap:break-word}.ul-loading-spinner-container{font-size:1.8rem;flex-grow:1;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.ul-loading-spinner{display:inline-block;position:relative;width:6rem;height:6rem}.ul-loading-spinner div{box-sizing:border-box;display:block;position:absolute;width:80%;height:80%;margin:5px;border:5px solid #152e3e;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#152e3e transparent transparent transparent}.ul-loading-spinner .first{animation-delay:-.45s}.ul-loading-spinner .second{animation-delay:-.3s}.ul-loading-spinner .third{animation-delay:-.15s}@keyframes lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.select-checkbox{height:16px;width:16px;border-radius:3px;border:1px solid #323232;display:flex;box-sizing:border-box;box-shadow:inset 3px 3px #0000001a;background-color:"transparent";align-items:center;justify-content:center}.select-radio{height:16px;width:16px;border-radius:16px;border:1px solid #323232;display:flex;box-sizing:border-box;box-shadow:inset 2px 2px #0000001a;background-color:"transparent";align-items:center;justify-content:center}.fade-in-transition{animation:fadeIn .4s ease-in;-webkit-animation:fadeIn .4s ease-in;-moz-animation:fadeIn .4s ease-in;-o-animation:fadeIn .4s ease-in;-ms-animation:fadeIn .4s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-moz-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-o-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-ms-keyframes fadeIn{0%{opacity:0}to{opacity:1}}[class^=CenteredSurveyLayout] .ul-header__container,[class^=QuestionConceptTestLayout] .ul-header__container,.ul-websurvey-frame .ul-card__container,.ul-websurvey-frame-mobile .ul-card__container{margin-bottom:unset}[class^=CenteredSurveyLayout] .ul-card__container,[class^=QuestionConceptTestLayout] .ul-card__container,.ul-websurvey-frame .ul-card__container,.ul-websurvey-frame-mobile .ul-card__container{align-self:center;box-shadow:unset;border-radius:unset;border:none!important;position:unset;width:100%}@media only screen and (min-height: 600px) and (width: 600px){.ul-card{position:relative;top:-20px}}.ul-vertical-centered-container{display:flex;flex-direction:column;align-items:center}.ul-consent-legal__name-input--mobile{border:2px solid #e6e6e6}.ul-consent-legal__name-input--desktop{border:1px solid #e6e6e6}.ul-consent-legal__name-input{background:#00000003;box-sizing:border-box;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;padding:10px 20px 10px 15px;border-radius:3px;font-size:15px;line-height:20px;margin-bottom:7px;width:100%}.ul-consent-legal__name-input::placeholder{color:#6c6c6e80}.ul-consent-legal__name-input:focus{outline:none;background:#fff}.ul-consent-legal__name-input--desktop:hover:not(:focus){background-color:#0000000d}.ul-card__consent-legal .choice{font-size:15px;padding:10px 15px;background-color:#00000003}.ul-card__consent-legal .choice--desktop:hover,.ul-card__consent-legal .choice--desktop:active,.ul-card__consent-legal .choice--mobile:active{background-color:#0000000d}.ul-card--likert__numbers{align-items:center;border-radius:5px;display:flex;flex-direction:row;flex:1 0;justify-content:center;margin:5px 0 0}.likert-number--mobile{border:2px solid #e6e6e6}.likert-number--mobile:not(:first-child){margin-inline-start:-2px}.likert-number--desktop{border:1px solid #e6e6e6}.likert-number--desktop:not(:first-child){margin-inline-start:-1px}.likert-number{align-items:center;cursor:pointer;display:flex;justify-content:center;flex:1 0;background-color:#00000003;font-size:18px;line-height:24px;height:67px}.likert-number:first-child{border-start-start-radius:5px;border-end-start-radius:5px}.likert-number:last-child{border-start-end-radius:5px;border-end-end-radius:5px}.likert-number:active,.likert-number--desktop:hover{background-color:#0000000d;font-weight:500}.likert-star--mobile:not(:first-child){margin-inline-start:-2px}.likert-star--desktop:not(:first-child){margin-inline-start:-1px}.likert-star{align-items:center;cursor:pointer;display:flex;justify-content:space-between;flex:1 0;color:transparent;font-size:18px;line-height:24px;height:67px}.likert-smiley--mobile:not(:first-child){margin-inline-start:-2px}.likert-smiley--desktop:not(:first-child){margin-inline-start:-1px}.likert-smiley{align-items:center;cursor:pointer;display:flex;justify-content:space-between;flex:1 0;color:transparent;line-height:24px;height:67px}.likert-smiley circle:not(:first-child){fill-opacity:1}.ul-card--likert__labels{align-items:center;color:#262136;display:flex;flex-direction:row;flex:1 0;font-weight:500;font-size:13px;line-height:15px;justify-content:space-between;margin:7px 0 10px}.ul-card--matrix_grid{display:grid;grid-template-columns:max-content repeat(var(--numColumns),minmax(93px,1fr));grid-template-rows:repeat(var(--numRows),min-content);margin:0 auto;row-gap:4px;width:max-content}.ul-matrix-row-options{display:grid;grid-column:2/-1;grid-template-columns:subgrid}.ul-matrix-column-label{font-size:15px;max-width:150px;padding:10px 12px;text-align:center}.ul-card--matrix_container{margin-bottom:16px;max-width:var(--maxWidth);overflow:auto}.ul-matrix-option-wrapper{align-items:center;background:#f9f9f8;display:flex;justify-content:center;padding:10px 12px}.ul-matrix-last-option{border-start-end-radius:4px;border-end-end-radius:4px}.ul-matrix-row-label{align-items:center;background:#f9f9f8;border-end-start-radius:4px;border-start-start-radius:4px;display:flex;font-size:15px;left:0;right:0;max-width:200px;min-width:100px;padding:10px 12px;position:sticky}.ul-matrix-option-selected{border:6px solid var(--border);box-shadow:none}.select-label{cursor:pointer;flex:1;overflow-wrap:anywhere;text-align:start}.ul-card--nps__numbers{align-items:center;border-radius:5px;display:flex;flex-direction:row;flex:1 0;justify-content:center;margin:5px 0 0}.nps-number--mobile{border:2px solid #e6e6e6}.nps-number--mobile:not(:first-child){margin-inline-start:-2px}.nps-number--desktop{border:1px solid #e6e6e6}.nps-number--desktop:not(:first-child){margin-inline-start:-1px}.nps-number{align-items:center;cursor:pointer;display:flex;justify-content:center;flex:1 0;background-color:#00000003;font-size:18px;line-height:24px;height:67px}.nps-number:first-child{border-start-start-radius:5px;border-end-start-radius:5px}.nps-number:last-child{border-start-end-radius:5px;border-end-end-radius:5px}.nps-number:active,.nps-number--desktop:hover{background-color:#0000000d;font-weight:500}.ul-card--nps__labels{align-items:center;color:#262136;display:flex;flex-direction:row;flex:1 0;font-weight:500;font-size:13px;line-height:15px;justify-content:space-between;margin:7px 0 10px}.ul-card-text{flex:1 0 auto;margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-wrap:wrap;justify-content:center;padding:0}.ul-card-text__container{align-items:center;box-sizing:border-box;border-radius:3px;display:flex;justify-content:center;margin-bottom:12px;flex:1 0 100%}.ul-card-text__input--mobile{border:2px solid #e6e6e6;max-height:63px}.ul-card-text__input--desktop{border:1px solid #e6e6e6;max-height:150px}.ul-card-text__input{background:#00000003;box-sizing:border-box;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;min-height:63px;overflow:auto;padding:12px;resize:none;width:100%;border-radius:3px;font-size:15px;line-height:20px;overflow-wrap:break-word}.ul-card-text__input::placeholder{color:#6c6c6e80}.ul-card-text__input:focus{outline:none;background:#fff}.ul-card-text__input--desktop:hover:not(:focus){background-color:#0000000d}.ul-card__text-url-prompt-button{text-decoration:none;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}#ul-card-voice__video{align-items:center;display:flex;flex-direction:column}#ul-card-voice__video>div{margin-bottom:10px;width:100%}#ul-card-video__player_recorder{width:100%;width:-moz-available;width:-webkit-fill-available;width:fill-available}.ul-card-record__task{flex:1 0 auto;margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-wrap:wrap;justify-content:center;padding:0}#ul-record-task-upload-progress,#ul-record-task-video-preview{width:100%;height:150px}.ul-permission-graphics-container{width:100%;height:150px;background-color:#0000000d;text-align:center;flex-direction:column;margin-left:auto;margin-right:auto;border-radius:5px;display:flex;align-items:center;font-size:15px;color:#000000b3}.ul-av-permission-denied-paragraph{margin:auto 15px;font-size:12px}.ul-av-permission-denied-headline{font-size:14px;color:#262136;text-decoration:underline;font-size:12px}.ul-permission-body{color:#000;margin:5px auto 5px 5px;line-height:135%;text-align:center}.ul-select-tab-container{width:240px;height:46px;background:#fff;border-radius:5px;text-align:start;align-items:center;display:flex;padding:0 5px;margin-top:20px;margin-bottom:auto}.ul-select-tab-text{color:#4b575d;margin:5px;line-height:135%;text-align:center}button.ul-task-skip-button{color:#000;background-color:#fff}#ul-task-detail-container{margin-top:0;margin-bottom:0;overflow:auto}#ul-task-detail-container.ul-rich-text-body p,#ul-task-detail-container.ul-rich-text-body li,#ul-task-detail-container.ul-rich-text-body{color:#4c4c4c}#ul-task-detail-container :first-child{margin-top:0}#ul-task-detail-container :last-child{margin-bottom:20px}.ul-horizontal-button-container{width:100%;display:flex;flex-direction:row}.ul-skip-button-below{margin-top:5px}.ul-horizontal-button-container-center{justify-content:center}.ul-vertical-button-container-center{display:flex;flex-direction:column;align-items:center}.ul-horizontal-button-container-left{justify-content:flex-start}.ul_recorded-task-inset-spacing{margin-top:5px;margin-bottom:24px}.ul_permission_svg_container{justify-content:center}.ul-card-text__button{background-color:var(--theme);border-radius:3px;border:none;color:#fff;cursor:pointer;font-size:15px;font-weight:500;line-height:18px;padding:10.5px 21px}.ul-card-text__button:disabled,.ul-card-text__button.sprig-button-disabled{background-color:#0000001a;color:#0003}.ul-card-text__button.ul-button-inactive{background-color:#fff!important;color:#5d696f!important}.ul-card-skip__button{color:#00000080;background:none;border:none;font-size:15px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;cursor:pointer}.ul-card-button-group{align-items:center;display:flex;gap:30px;justify-content:center}html,body{cursor:default;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;height:100%;overflow:hidden;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-webkit-touch-callout:none}b{font-weight:500}#ul-app{opacity:0;width:100%;flex-grow:2;display:flex}#ul-app.ul-app--overlay{position:absolute;bottom:0;transition:opacity .1s ease-out;transition-delay:.1s}#ul-app.ul-app--visible{opacity:1;bottom:0}.ul-app__container{width:100%;display:flex;flex-direction:column;max-height:100vh}.ul-header__container{margin-bottom:15px}.ul-header{align-items:center;background:repeating-linear-gradient(120deg,#ebebeb,#ebebeb 24px,#fff 24px,#fff 48px);border-bottom:2px solid #ebebeb;display:flex;font-size:14px;font-weight:500;height:40px;justify-content:center;left:0;position:absolute;top:0;width:100%}.ul-footer{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:auto;flex-grow:1;width:100%}.ul-footer>.yellow-footer-logo{background:#fad133;border:1px solid #f9c600;border-radius:14px;padding:6px 12px}.ul-footer>.yellow-footer-logo:hover{background:#f9c600}.ul-footer .thank-you-card-link{background:#00000003;border:1px solid #e6e6e6;border-radius:8px;cursor:pointer;display:inline-flex;font-size:14px;gap:12px;margin-bottom:15px;padding:12px;text-align:initial;width:280px}.ul-footer .thank-you-card-link:hover{background:#00000008}.ul-footer>a{color:inherit}.ul-footer-bubble{display:inline-block;margin:0 3px;width:7px;height:7px;border-radius:3px;border:1px solid transparent}.sprig-box-logo{background:#f9c600;border-radius:5px;display:flex;padding:4px}.close-container{display:flex;justify-content:flex-end;width:100%}.close-btn{cursor:pointer;height:18px;margin-inline-end:-10px;position:relative;top:-10px;width:18px;z-index:1}.ul-app__container{transition:opacity .3s ease-out}.ul-center-horizontally{text-align:center}#ul-progress-bar-container{width:100%;height:2px;background-color:#0000001a;border-radius:2px;max-width:250px;margin:25px 0}#ul-progress-bar-current{transition:width 1s ease;width:0%;height:0;border-radius:2px}.prototype-button{width:100%;background:#00000003;border:1.5px solid #e6e6e6;border-radius:4px 0 0 4px;flex:none;flex-grow:1;margin:0;padding:20px 0;font-size:14px;font-family:inherit;text-decoration:underline}.prototype-button:hover{cursor:pointer}', ii = async (e, t) => {
3681
+ }, ii = 'html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}button,input,select,textarea{margin:0}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}ol,ul{padding-inline-start:1em}.ul-card{flex:1 1 auto;border-radius:2px;display:flex;flex-direction:column;font-size:17px;line-height:19px;margin:auto;text-align:start;min-width:200px}.ul-card__container--desktop{border:2px solid #fff;box-shadow:0 0 15px #00000026}.ul-card__container--mobile{border-width:0;box-shadow:0 0 5px #00000040;margin-top:5px}.ul-card__container{background:#fff;border-radius:6px;display:flex;flex-direction:column;flex-grow:1;flex:1 1 auto;font-size:17px;line-height:23px;overflow:auto;padding:20px 20px 5px;position:relative;text-align:center;word-break:break-word}.ul-card-vertical__button-wrapper{flex-direction:column;align-items:center}.ul-card__button-wrapper{margin-top:4px;margin-bottom:3px;display:flex;gap:16px;justify-content:center}.ul-rich-text-body{min-height:2em}.ul-rich-text-body,.ul-rich-text-body p{margin-top:10px;margin-bottom:10px}.ul-rich-text-body li{margin:5px 0}.ul-rich-text-body p,.ul-rich-text-body li{font-size:15px;line-height:130.35%;letter-spacing:.02em;color:#343442;text-align:start;white-space:pre-line}.ul-rich-text-body:last-child,.ul-rich-text-body li:last-child{margin-bottom:15px}.ul-card-main-content__link,.ul-card-main-content__email{flex-grow:55;display:flex}.ul-card-main-content__web,.ul-card-main-content__android,.ul-card-main-content__ios{margin-bottom:5px}.ul-question{color:#343442;display:block;font-size:20px;line-height:125%;font-weight:500;cursor:default;text-align:start}.ul-caption{flex:1 0 auto;margin-top:8px;margin-bottom:15px;font-size:15px;line-height:130.35%;letter-spacing:.02em;color:#6c6c6e;text-align:start}.ul-card__choices{margin:5px 0 0;flex:1 0}.choice--mobile{border:2px solid #e6e6e6}.choice--desktop{border:1px solid #e6e6e6}.choice{align-items:flex-start;color:#262136;cursor:pointer;display:flex;justify-content:flex-start;flex-direction:column;box-sizing:border-box;border-radius:3px;margin-bottom:7px;font-size:15px;line-height:20px;padding:10px 20px 10px 15px;background-color:#00000003}.choice--desktop:hover,.choice--desktop:active,.choice--mobile:active{background-color:#0000000d}.choice-label-container{align-items:center;display:flex;flex-direction:row;flex:0 0 fit-content;gap:15px;height:fit-content;justify-content:flex-start;width:100%}.choice-text-entry-container{width:100%;height:fit-content;flex:0 1 fit-content;overflow:hidden}.choice .choice-text-input--mobile{max-height:63px}.choice .choice-text-input--desktop{max-height:150px}.choice .choice-text-input{box-sizing:border-box;background-color:transparent;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;min-height:20px;max-height:60px;padding:0;margin-top:8px;resize:none;width:100%;font-size:14px;line-height:20px;outline:none;border:none;overflow-wrap:break-word}.choice .choice-text-input::placeholder{color:#6c6c6e80}.ul-thanks-check{text-align:center;margin-bottom:20px}.ul-card--thanks-content{padding:20px 0 10px}.ul-card--thanks .ul-question{padding-top:0;text-align:center}.ul-card--thanks .ul-caption{padding-top:0;text-align:center;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-lines:no-limit}.ul-card--uploading .ul-question{padding-top:15px;text-align:center}.ul-card--uploading .ul-caption{padding-top:5px;text-align:center;overflow-wrap:break-word}.ul-loading-spinner-container{font-size:1.8rem;flex-grow:1;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.ul-loading-spinner{display:inline-block;position:relative;width:6rem;height:6rem}.ul-loading-spinner div{box-sizing:border-box;display:block;position:absolute;width:80%;height:80%;margin:5px;border:5px solid #152e3e;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#152e3e transparent transparent transparent}.ul-loading-spinner .first{animation-delay:-.45s}.ul-loading-spinner .second{animation-delay:-.3s}.ul-loading-spinner .third{animation-delay:-.15s}@keyframes lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.select-checkbox{height:16px;width:16px;border-radius:3px;border:1px solid #323232;display:flex;box-sizing:border-box;box-shadow:inset 3px 3px #0000001a;background-color:"transparent";align-items:center;justify-content:center}.select-radio{height:16px;width:16px;border-radius:16px;border:1px solid #323232;display:flex;box-sizing:border-box;box-shadow:inset 2px 2px #0000001a;background-color:"transparent";align-items:center;justify-content:center}.fade-in-transition{animation:fadeIn .4s ease-in;-webkit-animation:fadeIn .4s ease-in;-moz-animation:fadeIn .4s ease-in;-o-animation:fadeIn .4s ease-in;-ms-animation:fadeIn .4s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-moz-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-o-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-ms-keyframes fadeIn{0%{opacity:0}to{opacity:1}}[class^=CenteredSurveyLayout] .ul-header__container,[class^=QuestionConceptTestLayout] .ul-header__container,.ul-websurvey-frame .ul-card__container,.ul-websurvey-frame-mobile .ul-card__container{margin-bottom:unset}[class^=CenteredSurveyLayout] .ul-card__container,[class^=QuestionConceptTestLayout] .ul-card__container,.ul-websurvey-frame .ul-card__container,.ul-websurvey-frame-mobile .ul-card__container{align-self:center;box-shadow:unset;border-radius:unset;border:none!important;position:unset;width:100%}@media only screen and (min-height: 600px) and (width: 600px){.ul-card{position:relative;top:-20px}}.ul-vertical-centered-container{display:flex;flex-direction:column;align-items:center}.ul-consent-legal__name-input--mobile{border:2px solid #e6e6e6}.ul-consent-legal__name-input--desktop{border:1px solid #e6e6e6}.ul-consent-legal__name-input{background:#00000003;box-sizing:border-box;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;padding:10px 20px 10px 15px;border-radius:3px;font-size:15px;line-height:20px;margin-bottom:7px;width:100%}.ul-consent-legal__name-input::placeholder{color:#6c6c6e80}.ul-consent-legal__name-input:focus{outline:none;background:#fff}.ul-consent-legal__name-input--desktop:hover:not(:focus){background-color:#0000000d}.ul-card__consent-legal .choice{font-size:15px;padding:10px 15px;background-color:#00000003}.ul-card__consent-legal .choice--desktop:hover,.ul-card__consent-legal .choice--desktop:active,.ul-card__consent-legal .choice--mobile:active{background-color:#0000000d}.ul-card--likert__numbers{align-items:center;border-radius:5px;display:flex;flex-direction:row;flex:1 0;justify-content:center;margin:5px 0 0}.likert-number--mobile{border:2px solid #e6e6e6}.likert-number--mobile:not(:first-child){margin-inline-start:-2px}.likert-number--desktop{border:1px solid #e6e6e6}.likert-number--desktop:not(:first-child){margin-inline-start:-1px}.likert-number{align-items:center;cursor:pointer;display:flex;justify-content:center;flex:1 0;background-color:#00000003;font-size:18px;line-height:24px;height:67px}.likert-number:first-child{border-start-start-radius:5px;border-end-start-radius:5px}.likert-number:last-child{border-start-end-radius:5px;border-end-end-radius:5px}.likert-number:active,.likert-number--desktop:hover{background-color:#0000000d;font-weight:500}.likert-star--mobile:not(:first-child){margin-inline-start:-2px}.likert-star--desktop:not(:first-child){margin-inline-start:-1px}.likert-star{align-items:center;cursor:pointer;display:flex;justify-content:space-between;flex:1 0;color:transparent;font-size:18px;line-height:24px;height:67px}.likert-smiley--mobile:not(:first-child){margin-inline-start:-2px}.likert-smiley--desktop:not(:first-child){margin-inline-start:-1px}.likert-smiley{align-items:center;cursor:pointer;display:flex;justify-content:space-between;flex:1 0;color:transparent;line-height:24px;height:67px}.likert-smiley circle:not(:first-child){fill-opacity:1}.ul-card--likert__labels{align-items:center;color:#262136;display:flex;flex-direction:row;flex:1 0;font-weight:500;font-size:13px;line-height:15px;justify-content:space-between;margin:7px 0 10px}.ul-card--matrix_grid{display:grid;grid-template-columns:max-content repeat(var(--numColumns),minmax(93px,1fr));grid-template-rows:repeat(var(--numRows),min-content);margin:0 auto;row-gap:4px;width:max-content}.ul-matrix-row-options{display:grid;grid-column:2/-1;grid-template-columns:subgrid}.ul-matrix-column-label{font-size:15px;max-width:150px;padding:10px 12px;text-align:center}.ul-card--matrix_container{margin-bottom:16px;overflow:auto}.ul-card--matrix_question_container{display:flex;flex-direction:column}.ul-matrix-scroll-gradient{-webkit-mask-image:linear-gradient(90deg,#000 90%,transparent);mask-image:linear-gradient(90deg,#000 90%,transparent)}.ul-matrix-scroll-gradient:dir(rtl){-webkit-mask-image:linear-gradient(270deg,#000,90%,transparent);mask-image:linear-gradient(270deg,#000,90%,transparent)}.ul-matrix-scroll-gradient:dir(rtl)+.ul-matrix-scroll-arrow{rotate:180deg}.ul-matrix-scroll-arrow{align-self:flex-end;background:none;border:none;color:#000;padding:0;position:absolute;top:45%}.ul-matrix-scroll-arrow:hover{cursor:pointer}.ul-matrix-option-wrapper{align-items:center;background:#f9f9f8;display:flex;justify-content:center;padding:10px 12px}.ul-matrix-last-option{border-start-end-radius:4px;border-end-end-radius:4px}.ul-matrix-row-label{align-items:center;background:#f9f9f8;border-end-start-radius:4px;border-start-start-radius:4px;display:flex;font-size:15px;left:0;right:0;max-width:200px;min-width:100px;padding:10px 12px;position:sticky}.ul-matrix-option-selected{border:6px solid var(--border);box-shadow:none}.ul-card__matrix{max-width:100%}.select-label{cursor:pointer;flex:1;overflow-wrap:anywhere;text-align:start}.ul-card--nps__numbers{align-items:center;border-radius:5px;display:flex;flex-direction:row;flex:1 0;justify-content:center;margin:5px 0 0}.nps-number--mobile{border:2px solid #e6e6e6}.nps-number--mobile:not(:first-child){margin-inline-start:-2px}.nps-number--desktop{border:1px solid #e6e6e6}.nps-number--desktop:not(:first-child){margin-inline-start:-1px}.nps-number{align-items:center;cursor:pointer;display:flex;justify-content:center;flex:1 0;background-color:#00000003;font-size:18px;line-height:24px;height:67px}.nps-number:first-child{border-start-start-radius:5px;border-end-start-radius:5px}.nps-number:last-child{border-start-end-radius:5px;border-end-end-radius:5px}.nps-number:active,.nps-number--desktop:hover{background-color:#0000000d;font-weight:500}.ul-card--nps__labels{align-items:center;color:#262136;display:flex;flex-direction:row;flex:1 0;font-weight:500;font-size:13px;line-height:15px;justify-content:space-between;margin:7px 0 10px}.ul-card-text{flex:1 0 auto;margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-wrap:wrap;justify-content:center;padding:0}.ul-card-text__container{align-items:center;box-sizing:border-box;border-radius:3px;display:flex;justify-content:center;margin-bottom:12px;flex:1 0 100%}.ul-card-text__input--mobile{border:2px solid #e6e6e6;max-height:63px}.ul-card-text__input--desktop{border:1px solid #e6e6e6;max-height:150px}.ul-card-text__input{background:#00000003;box-sizing:border-box;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;min-height:63px;overflow:auto;padding:12px;resize:none;width:100%;border-radius:3px;font-size:15px;line-height:20px;overflow-wrap:break-word}.ul-card-text__input::placeholder{color:#6c6c6e80}.ul-card-text__input:focus{outline:none;background:#fff}.ul-card-text__input--desktop:hover:not(:focus){background-color:#0000000d}.ul-card__text-url-prompt-button{text-decoration:none;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:-webkit-fill-available}#ul-card-voice__video{align-items:center;display:flex;flex-direction:column}#ul-card-voice__video>div{margin-bottom:10px;width:100%}#ul-card-video__player_recorder{width:100%;width:-moz-available;width:-webkit-fill-available;width:fill-available}.ul-card-record__task{flex:1 0 auto;margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-wrap:wrap;justify-content:center;padding:0}#ul-record-task-upload-progress,#ul-record-task-video-preview{width:100%;height:150px}.ul-permission-graphics-container{width:100%;height:150px;background-color:#0000000d;text-align:center;flex-direction:column;margin-left:auto;margin-right:auto;border-radius:5px;display:flex;align-items:center;font-size:15px;color:#000000b3}.ul-av-permission-denied-paragraph{margin:auto 15px;font-size:12px}.ul-av-permission-denied-headline{font-size:14px;color:#262136;text-decoration:underline;font-size:12px}.ul-permission-body{color:#000;margin:5px auto 5px 5px;line-height:135%;text-align:center}.ul-select-tab-container{width:240px;height:46px;background:#fff;border-radius:5px;text-align:start;align-items:center;display:flex;padding:0 5px;margin-top:20px;margin-bottom:auto}.ul-select-tab-text{color:#4b575d;margin:5px;line-height:135%;text-align:center}button.ul-task-skip-button{color:#000;background-color:#fff}#ul-task-detail-container{margin-top:0;margin-bottom:0;overflow:auto}#ul-task-detail-container.ul-rich-text-body p,#ul-task-detail-container.ul-rich-text-body li,#ul-task-detail-container.ul-rich-text-body{color:#4c4c4c}#ul-task-detail-container :first-child{margin-top:0}#ul-task-detail-container :last-child{margin-bottom:20px}.ul-horizontal-button-container{width:100%;display:flex;flex-direction:row}.ul-skip-button-below{margin-top:5px}.ul-horizontal-button-container-center{justify-content:center}.ul-vertical-button-container-center{display:flex;flex-direction:column;align-items:center}.ul-horizontal-button-container-left{justify-content:flex-start}.ul_recorded-task-inset-spacing{margin-top:5px;margin-bottom:24px}.ul_permission_svg_container{justify-content:center}.ul-card-text__button{background-color:var(--theme);border-radius:3px;border:none;color:#fff;cursor:pointer;font-size:15px;font-weight:500;line-height:18px;padding:10.5px 21px}.ul-card-text__button:disabled,.ul-card-text__button.sprig-button-disabled{background-color:#0000001a;color:#0003}.ul-card-text__button.ul-button-inactive{background-color:#fff!important;color:#5d696f!important}.ul-card-skip__button{color:#00000080;background:none;border:none;font-size:15px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;cursor:pointer}.ul-card-button-group{align-items:center;display:flex;gap:15px;justify-content:center;flex-direction:column}html,body{cursor:default;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;height:100%;overflow:hidden;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-webkit-touch-callout:none}b{font-weight:500}#ul-app{opacity:0;width:100%;flex-grow:2;display:flex}#ul-app.ul-app--overlay{position:absolute;bottom:0;transition:opacity .1s ease-out;transition-delay:.1s}#ul-app.ul-app--visible{opacity:1;bottom:0}.ul-app__container{width:100%;display:flex;flex-direction:column;max-height:100vh}.ul-header__container{margin-bottom:15px}.ul-header{align-items:center;background:repeating-linear-gradient(120deg,#ebebeb,#ebebeb 24px,#fff 24px,#fff 48px);border-bottom:2px solid #ebebeb;display:flex;font-size:14px;font-weight:500;height:40px;justify-content:center;left:0;position:absolute;top:0;width:100%}.ul-footer{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:auto;flex-grow:1;width:100%}.ul-footer>.yellow-footer-logo{background:#fad133;border:1px solid #f9c600;border-radius:14px;padding:6px 12px}.ul-footer>.yellow-footer-logo:hover{background:#f9c600}.ul-footer .thank-you-card-link{background:#00000003;border:1px solid #e6e6e6;border-radius:8px;cursor:pointer;display:inline-flex;font-size:14px;gap:12px;margin-bottom:15px;padding:12px;text-align:initial;width:280px}.ul-footer .thank-you-card-link:hover{background:#00000008}.ul-footer>a{color:inherit}.ul-footer-bubble{display:inline-block;margin:0 3px;width:7px;height:7px;border-radius:3px;border:1px solid transparent}.sprig-box-logo{background:#f9c600;border-radius:5px;display:flex;padding:4px}.close-container{display:flex;justify-content:flex-end;width:100%}.close-btn{cursor:pointer;height:18px;margin-inline-end:-10px;position:relative;top:-10px;width:18px;z-index:1}.ul-app__container{transition:opacity .3s ease-out}.ul-center-horizontally{text-align:center}#ul-progress-bar-container{width:100%;height:2px;background-color:#0000001a;border-radius:2px;max-width:250px;margin:25px 0}#ul-progress-bar-current{transition:width 1s ease;width:0%;height:0;border-radius:2px}.prototype-button{width:100%;background:#00000003;border:1.5px solid #e6e6e6;border-radius:4px 0 0 4px;flex:none;flex-grow:1;margin:0;padding:20px 0;font-size:14px;font-family:inherit;text-decoration:underline}.prototype-button:hover{cursor:pointer}', ai = async (e, t) => {
3622
3682
  var r;
3623
3683
  const n = await fetch(t, {
3624
3684
  method: "POST",
@@ -3633,42 +3693,42 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
3633
3693
  return (r = o == null ? void 0 : o.upload) == null ? void 0 : r.url;
3634
3694
  } else
3635
3695
  return null;
3636
- }, cr = () => MediaRecorder.isTypeSupported(
3696
+ }, dr = () => MediaRecorder.isTypeSupported(
3637
3697
  "video/webm"
3638
3698
  /* Webm */
3639
- ) ? "video/webm" : "video/mp4", Kt = (e) => {
3699
+ ) ? "video/webm" : "video/mp4", Jt = (e) => {
3640
3700
  const t = {
3641
3701
  audioBitsPerSecond: 128e3,
3642
3702
  //standard setting based on documentation's example
3643
3703
  videoBitsPerSecond: 25e5,
3644
- mimeType: cr()
3704
+ mimeType: dr()
3645
3705
  };
3646
3706
  return new MediaRecorder(e, t);
3647
- }, Yt = (e, t, n) => {
3707
+ }, Xt = (e, t, n) => {
3648
3708
  n[t] = [], e.ondataavailable = function(r) {
3649
3709
  n[t].push(r.data);
3650
3710
  }, e.currentMediaRecordingUid = t, e.start();
3651
3711
  };
3652
- function Jt(e, t, n, r, o, i) {
3712
+ function en(e, t, n, r, o, i) {
3653
3713
  if (e && e.state !== "inactive") {
3654
3714
  const {
3655
- [L.BeginCallback]: a
3715
+ [I.BeginCallback]: a
3656
3716
  } = r, l = e.currentMediaRecordingUid;
3657
3717
  if (!l)
3658
3718
  return;
3659
- a && a(l), e.onstop = () => ai(t, e, n, r, l, o, i), e.stop();
3719
+ a && a(l), e.onstop = () => si(t, e, n, r, l, o, i), e.stop();
3660
3720
  }
3661
3721
  }
3662
- async function ai(e, t, n, r, o, i, a) {
3663
- const l = M.getState().viewDocument, {
3664
- [L.UploadCallback]: c,
3665
- [L.ProgressCallback]: d
3722
+ async function si(e, t, n, r, o, i, a) {
3723
+ const l = $.getState().viewDocument, {
3724
+ [I.UploadCallback]: c,
3725
+ [I.ProgressCallback]: d
3666
3726
  } = r, p = {
3667
3727
  mediaType: n,
3668
3728
  updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
3669
3729
  mediaRecordingUid: o,
3670
- ...r[L.PassthroughData]
3671
- }, s = await ii(p, e);
3730
+ ...r[I.PassthroughData]
3731
+ }, s = await ai(p, e);
3672
3732
  if (!s) {
3673
3733
  c && c(null, {
3674
3734
  message: "failed to get upload url"
@@ -3676,30 +3736,30 @@ async function ai(e, t, n, r, o, i, a) {
3676
3736
  return;
3677
3737
  }
3678
3738
  const _ = new Blob(a, {
3679
- type: cr()
3739
+ type: dr()
3680
3740
  });
3681
3741
  if (!l.defaultView)
3682
3742
  return;
3683
- const f = new l.defaultView.File([_], `recording video ${Date.now()}`), g = i.createUpload({
3743
+ const f = new l.defaultView.File([_], `recording video ${Date.now()}`), m = i.createUpload({
3684
3744
  // endpoint computed from backend separately and hacked together
3685
3745
  endpoint: s,
3686
3746
  file: f,
3687
3747
  chunkSize: 5120
3688
3748
  // Uploads the file in ~5mb chunks
3689
3749
  });
3690
- g.on("error", (m) => {
3691
- c && c(null, m);
3692
- }), g.on("progress", (m) => {
3693
- d && d(o, m);
3694
- }), g.on("success", () => {
3750
+ m.on("error", (g) => {
3751
+ c && c(null, g);
3752
+ }), m.on("progress", (g) => {
3753
+ d && d(o, g);
3754
+ }), m.on("success", () => {
3695
3755
  c && c(o, !0);
3696
3756
  });
3697
3757
  }
3698
- const si = {
3758
+ const li = {
3699
3759
  chunks: {}
3700
- }, li = {
3760
+ }, ci = {
3701
3761
  state: {
3702
- ...si
3762
+ ...li
3703
3763
  },
3704
3764
  stopRecording(e) {
3705
3765
  const {
@@ -3708,7 +3768,7 @@ const si = {
3708
3768
  screenRecorder: r,
3709
3769
  UpChunk: o
3710
3770
  } = this.state, i = this.state.avStream && this.state.avStream.getVideoTracks().length > 0 ? Q.Video : Q.Audio;
3711
- this.state.chunks && t && o && (n != null && n.currentMediaRecordingUid && Jt(n, t, i, e, o, this.state.chunks[n == null ? void 0 : n.currentMediaRecordingUid]), r != null && r.currentMediaRecordingUid && Jt(r, t, Q.Screen, e, o, this.state.chunks[r == null ? void 0 : r.currentMediaRecordingUid]));
3771
+ this.state.chunks && t && o && (n != null && n.currentMediaRecordingUid && en(n, t, i, e, o, this.state.chunks[n == null ? void 0 : n.currentMediaRecordingUid]), r != null && r.currentMediaRecordingUid && en(r, t, Q.Screen, e, o, this.state.chunks[r == null ? void 0 : r.currentMediaRecordingUid]));
3712
3772
  },
3713
3773
  handleCancelledStream(e) {
3714
3774
  const t = e.getVideoTracks(), n = e.getAudioTracks();
@@ -3733,23 +3793,23 @@ const si = {
3733
3793
  this.state.UpChunk = e;
3734
3794
  },
3735
3795
  configure(e, t) {
3736
- Object.assign(this.state, t), this.state.uploadApiEndpoint = `${t.apiURL}/2/environments/integrations/upload`, this.state.chunks = {}, e.on(H.PermissionStatus, this.permissionStatusCallback.bind(this)), e.on(H.AvPermission, async (n) => {
3796
+ Object.assign(this.state, t), this.state.uploadApiEndpoint = `${t.apiURL}/2/environments/integrations/upload`, this.state.chunks = {}, e.on(B.PermissionStatus, this.permissionStatusCallback.bind(this)), e.on(B.AvPermission, async (n) => {
3737
3797
  this.avPermissionCallback(n);
3738
- }), e.on(H.BeginRecording, this.beginRecordingCallback.bind(this)), e.on(H.StartTask, this.startTaskCallback.bind(this)), e.on(H.ScreenPermission, async (n) => {
3798
+ }), e.on(B.BeginRecording, this.beginRecordingCallback.bind(this)), e.on(B.StartTask, this.startTaskCallback.bind(this)), e.on(B.ScreenPermission, async (n) => {
3739
3799
  this.screenPermissionCallback(n);
3740
- }), e.on(H.FinishTask, async (n) => {
3800
+ }), e.on(B.FinishTask, async (n) => {
3741
3801
  this.finishTaskCallback(n);
3742
3802
  });
3743
3803
  },
3744
3804
  async avPermissionCallback(e) {
3745
3805
  var r, o, i;
3746
3806
  const {
3747
- [L.StreamReadyCallback]: t,
3748
- [L.PermissionDescriptors]: n
3807
+ [I.StreamReadyCallback]: t,
3808
+ [I.PermissionDescriptors]: n
3749
3809
  } = e;
3750
3810
  try {
3751
3811
  (r = this.state.avStream) != null && r.active && (this.state.avStream.getTracks().map((a) => a.readyState === "live" && a.stop()), ((o = this.state.captureStream) == null ? void 0 : o.getAudioTracks().length) === 1 && this.state.captureStream.removeTrack(this.state.captureStream.getAudioTracks()[0])), this.state.avStream = await navigator.mediaDevices.getUserMedia({
3752
- video: n.includes(ke.Camera),
3812
+ video: n.includes(Se.Camera),
3753
3813
  audio: !0
3754
3814
  }), ((i = this.state.captureStream) == null ? void 0 : i.getAudioTracks().length) === 0 && this.state.captureStream.addTrack(this.state.avStream.getAudioTracks()[0]), this.handleCancelledStream(this.state.avStream);
3755
3815
  } catch (a) {
@@ -3760,8 +3820,8 @@ const si = {
3760
3820
  },
3761
3821
  async screenPermissionCallback(e) {
3762
3822
  const {
3763
- [L.ScreenPermissionRequested]: t,
3764
- [L.StreamReadyCallback]: n
3823
+ [I.ScreenPermissionRequested]: t,
3824
+ [I.StreamReadyCallback]: n
3765
3825
  } = e;
3766
3826
  t == null || t(!0);
3767
3827
  try {
@@ -3779,29 +3839,29 @@ const si = {
3779
3839
  },
3780
3840
  beginRecordingCallback(e) {
3781
3841
  const {
3782
- [L.RecordingMediaTypes]: t,
3783
- [L.StartRecordingCallback]: n
3842
+ [I.RecordingMediaTypes]: t,
3843
+ [I.StartRecordingCallback]: n
3784
3844
  } = e;
3785
3845
  if (!t)
3786
3846
  return;
3787
3847
  const r = [];
3788
3848
  if (t.includes(Q.Video) && this.state.avStream) {
3789
- this.state.avRecorder = Kt(this.state.avStream);
3790
- const o = yt();
3791
- Yt(this.state.avRecorder, o, this.state.chunks), r.push(o);
3849
+ this.state.avRecorder = Jt(this.state.avStream);
3850
+ const o = Ct();
3851
+ Xt(this.state.avRecorder, o, this.state.chunks), r.push(o);
3792
3852
  }
3793
3853
  if (t.includes(Q.Screen) && this.state.captureStream) {
3794
- this.state.screenRecorder = Kt(this.state.captureStream);
3795
- const o = yt();
3796
- Yt(this.state.screenRecorder, o, this.state.chunks), r.push(o);
3854
+ this.state.screenRecorder = Jt(this.state.captureStream);
3855
+ const o = Ct();
3856
+ Xt(this.state.screenRecorder, o, this.state.chunks), r.push(o);
3797
3857
  }
3798
3858
  r && n && n(r);
3799
3859
  },
3800
3860
  async finishTaskCallback(e) {
3801
3861
  const {
3802
- [L.CurrentIndex]: t,
3803
- [L.TaskResponse]: n,
3804
- [L.TaskCompleteCallback]: r
3862
+ [I.CurrentIndex]: t,
3863
+ [I.TaskResponse]: n,
3864
+ [I.TaskCompleteCallback]: r
3805
3865
  } = e;
3806
3866
  await this.stopRecording(e), r && r(this.taskDurationMillisecond()), this.state.cards && this.state.hasEndCard !== void 0 && this.lookAheadAndStopStream(t, n, this.state.cards, this.state.hasEndCard);
3807
3867
  },
@@ -3811,7 +3871,7 @@ const si = {
3811
3871
  permissionStatusCallback(e) {
3812
3872
  var r;
3813
3873
  const {
3814
- [L.PermissionStatusCallback]: t
3874
+ [I.PermissionStatusCallback]: t
3815
3875
  } = e, n = this.state.avStream;
3816
3876
  t && t(n, n ? (n == null ? void 0 : n.getVideoTracks().length) > 0 : !1, !!((r = this.state.captureStream) != null && r.active), this.state.captureStream);
3817
3877
  },
@@ -3821,7 +3881,7 @@ const si = {
3821
3881
  screenRecorder: i
3822
3882
  } = this.state, {
3823
3883
  allResponses: a
3824
- } = M.getState(), l = Jn({
3884
+ } = $.getState(), l = er({
3825
3885
  cards: n,
3826
3886
  index: e,
3827
3887
  hasEndCard: r,
@@ -3833,9 +3893,9 @@ const si = {
3833
3893
  }));
3834
3894
  });
3835
3895
  }
3836
- }, ot = Object.create(li);
3837
- Object.freeze(ot);
3838
- const ci = (e, t) => {
3896
+ }, at = Object.create(ci);
3897
+ Object.freeze(at);
3898
+ const ui = (e, t) => {
3839
3899
  const n = [...e], r = /* @__PURE__ */ new Set([b.VideoVoice, b.RecordedTask]);
3840
3900
  return e.some((o) => r.has(o.type)) && n.push({
3841
3901
  name: -2,
@@ -3850,7 +3910,7 @@ const ci = (e, t) => {
3850
3910
  },
3851
3911
  type: b.Thanks
3852
3912
  }), n;
3853
- }, ui = ({
3913
+ }, di = ({
3854
3914
  mode: e = null,
3855
3915
  viewWindow: t,
3856
3916
  viewDocument: n
@@ -3872,8 +3932,8 @@ const ci = (e, t) => {
3872
3932
  l: t.navigator.language
3873
3933
  };
3874
3934
  };
3875
- function di(e, t = !0) {
3876
- var h;
3935
+ function pi(e, t = !0) {
3936
+ var P;
3877
3937
  const {
3878
3938
  answers: n,
3879
3939
  apiURL: r,
@@ -3885,18 +3945,18 @@ function di(e, t = !0) {
3885
3945
  previewKey: d,
3886
3946
  viewDocument: p,
3887
3947
  viewWindow: s
3888
- } = e, _ = Me(e.headers) ? e.frame : p.body, f = e.UpChunk || window.UpChunk, g = Re, m = ci(e.cards, !!i);
3889
- ot.configure(g, {
3890
- cards: m,
3948
+ } = e, _ = $e(e.headers) ? e.frame : p.body, f = e.UpChunk || window.UpChunk, m = Le, g = ui(e.cards, !!i);
3949
+ at.configure(m, {
3950
+ cards: g,
3891
3951
  hasEndCard: !!i,
3892
3952
  apiURL: r,
3893
3953
  UpChunk: f
3894
- }), M.setState({
3954
+ }), $.setState({
3895
3955
  apiURL: r,
3896
3956
  answers: n,
3897
3957
  border: e.border,
3898
3958
  index: e.startingQuestionIdx || 0,
3899
- cards: m,
3959
+ cards: g,
3900
3960
  configureExitOnOverlayClick: e.configureExitOnOverlayClick,
3901
3961
  customMetadata: e.customMetadata,
3902
3962
  endCard: e.endCard,
@@ -3909,15 +3969,15 @@ function di(e, t = !0) {
3909
3969
  hasViewedEmbed: !1,
3910
3970
  isPreview: e.isPreview,
3911
3971
  marketingUrl: "https://sprig.com",
3912
- meta: ui({
3972
+ meta: di({
3913
3973
  mode: e.mode,
3914
3974
  viewWindow: s,
3915
3975
  viewDocument: p
3916
3976
  }),
3917
3977
  mode: e.mode,
3918
3978
  previewKey: d,
3919
- recorder: ot,
3920
- recorderEventEmitter: g,
3979
+ recorder: at,
3980
+ recorderEventEmitter: m,
3921
3981
  responseGroupUid: e.responseGroupUid,
3922
3982
  showStripes: e.showStripes,
3923
3983
  showSurveyBrand: e.showSurveyBrand,
@@ -3936,24 +3996,24 @@ function di(e, t = !0) {
3936
3996
  });
3937
3997
  const {
3938
3998
  seen: y
3939
- } = M.getState();
3999
+ } = $.getState();
3940
4000
  y();
3941
4001
  const {
3942
4002
  head: v
3943
4003
  } = p, C = p.createElement("style");
3944
- if (C.id = "sprig-style", C.textContent = oi, C.nonce = e.styleNonce, v.appendChild(C), e.fontFamily && l && parent) {
3945
- const T = p.createElement("link");
3946
- T.rel = "stylesheet", T.href = l, v.appendChild(T);
4004
+ if (C.id = "sprig-style", C.textContent = ii, C.nonce = e.styleNonce, v.appendChild(C), e.fontFamily && l && parent) {
4005
+ const S = p.createElement("link");
4006
+ S.rel = "stylesheet", S.href = l, v.appendChild(S);
3947
4007
  }
3948
- e.customStyles && Cr(p, o, e.styleNonce);
3949
- const S = "2.25.1", E = a || ((h = c.eventEmitter) == null ? void 0 : h.emit);
3950
- E == null || E(ee.VerifyViewVersion, {
3951
- [ve.ViewVersion]: S
3952
- }), _ && t && he(u(ri, {}), _);
3953
- }
3954
- const fi = {
3955
- configure: di
4008
+ e.customStyles && kr(p, o, e.styleNonce);
4009
+ const k = "2.26.6", R = a || ((P = c.eventEmitter) == null ? void 0 : P.emit);
4010
+ R == null || R(ee.VerifyViewVersion, {
4011
+ [ye.ViewVersion]: k
4012
+ }), _ && t && me(u(oi, {}), _);
4013
+ }
4014
+ const _i = {
4015
+ configure: pi
3956
4016
  };
3957
4017
  export {
3958
- fi as default
4018
+ _i as default
3959
4019
  };