@regulaforensics/idv-capture-web 3.2.283 → 3.2.284-nightly

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1,15 +1,15 @@
1
- var Cc = Object.defineProperty, bc = Object.defineProperties;
2
- var Lc = Object.getOwnPropertyDescriptors;
1
+ var vc = Object.defineProperty, Cc = Object.defineProperties;
2
+ var bc = Object.getOwnPropertyDescriptors;
3
3
  var Si = Object.getOwnPropertySymbols;
4
4
  var Qo = Object.prototype.hasOwnProperty, Po = Object.prototype.propertyIsEnumerable;
5
- var Ro = (t, e, r) => e in t ? Cc(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, j = (t, e) => {
5
+ var Ro = (t, e, r) => e in t ? vc(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, j = (t, e) => {
6
6
  for (var r in e || (e = {}))
7
7
  Qo.call(e, r) && Ro(t, r, e[r]);
8
8
  if (Si)
9
9
  for (var r of Si(e))
10
10
  Po.call(e, r) && Ro(t, r, e[r]);
11
11
  return t;
12
- }, ee = (t, e) => bc(t, Lc(e));
12
+ }, ee = (t, e) => Cc(t, bc(e));
13
13
  var Xt = (t, e) => {
14
14
  var r = {};
15
15
  for (var i in t)
@@ -59,14 +59,14 @@ let Gs = class {
59
59
  return this.cssText;
60
60
  }
61
61
  };
62
- const kc = (t) => new Gs(typeof t == "string" ? t : t + "", void 0, to), Uc = (t, ...e) => {
62
+ const Lc = (t) => new Gs(typeof t == "string" ? t : t + "", void 0, to), kc = (t, ...e) => {
63
63
  const r = t.length === 1 ? t[0] : e.reduce(((i, n, o) => i + ((s) => {
64
64
  if (s._$cssResult$ === !0) return s.cssText;
65
65
  if (typeof s == "number") return s;
66
66
  throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
67
67
  })(n) + t[o + 1]), t[0]);
68
68
  return new Gs(r, t, to);
69
- }, Rc = (t, e) => {
69
+ }, Uc = (t, e) => {
70
70
  if (eo) t.adoptedStyleSheets = e.map(((r) => r instanceof CSSStyleSheet ? r : r.styleSheet));
71
71
  else for (const r of e) {
72
72
  const i = document.createElement("style"), n = zi.litNonce;
@@ -75,17 +75,17 @@ const kc = (t) => new Gs(typeof t == "string" ? t : t + "", void 0, to), Uc = (t
75
75
  }, Fo = eo ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
76
76
  let r = "";
77
77
  for (const i of e.cssRules) r += i.cssText;
78
- return kc(r);
78
+ return Lc(r);
79
79
  })(t) : t;
80
80
  /**
81
81
  * @license
82
82
  * Copyright 2017 Google LLC
83
83
  * SPDX-License-Identifier: BSD-3-Clause
84
84
  */
85
- const { is: Qc, defineProperty: Pc, getOwnPropertyDescriptor: Yc, getOwnPropertyNames: Fc, getOwnPropertySymbols: Vc, getPrototypeOf: Bc } = Object, Zt = globalThis, Vo = Zt.trustedTypes, Wc = Vo ? Vo.emptyScript : "", jn = Zt.reactiveElementPolyfillSupport, Cr = (t, e) => t, Ci = { toAttribute(t, e) {
85
+ const { is: Rc, defineProperty: Qc, getOwnPropertyDescriptor: Pc, getOwnPropertyNames: Yc, getOwnPropertySymbols: Fc, getPrototypeOf: Vc } = Object, Zt = globalThis, Vo = Zt.trustedTypes, Bc = Vo ? Vo.emptyScript : "", jn = Zt.reactiveElementPolyfillSupport, Cr = (t, e) => t, Ci = { toAttribute(t, e) {
86
86
  switch (e) {
87
87
  case Boolean:
88
- t = t ? Wc : null;
88
+ t = t ? Bc : null;
89
89
  break;
90
90
  case Object:
91
91
  case Array:
@@ -110,7 +110,7 @@ const { is: Qc, defineProperty: Pc, getOwnPropertyDescriptor: Yc, getOwnProperty
110
110
  }
111
111
  }
112
112
  return r;
113
- } }, ro = (t, e) => !Qc(t, e), Bo = { attribute: !0, type: String, converter: Ci, reflect: !1, useDefault: !1, hasChanged: ro };
113
+ } }, ro = (t, e) => !Rc(t, e), Bo = { attribute: !0, type: String, converter: Ci, reflect: !1, useDefault: !1, hasChanged: ro };
114
114
  var Vs, Bs;
115
115
  (Vs = Symbol.metadata) != null || (Symbol.metadata = Symbol("metadata")), (Bs = Zt.litPropertyMetadata) != null || (Zt.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
116
116
  let hr = class extends HTMLElement {
@@ -124,12 +124,12 @@ let hr = class extends HTMLElement {
124
124
  static createProperty(e, r = Bo) {
125
125
  if (r.state && (r.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((r = Object.create(r)).wrapped = !0), this.elementProperties.set(e, r), !r.noAccessor) {
126
126
  const i = Symbol(), n = this.getPropertyDescriptor(e, i, r);
127
- n !== void 0 && Pc(this.prototype, e, n);
127
+ n !== void 0 && Qc(this.prototype, e, n);
128
128
  }
129
129
  }
130
130
  static getPropertyDescriptor(e, r, i) {
131
131
  var s;
132
- const { get: n, set: o } = (s = Yc(this.prototype, e)) != null ? s : { get() {
132
+ const { get: n, set: o } = (s = Pc(this.prototype, e)) != null ? s : { get() {
133
133
  return this[r];
134
134
  }, set(a) {
135
135
  this[r] = a;
@@ -145,13 +145,13 @@ let hr = class extends HTMLElement {
145
145
  }
146
146
  static _$Ei() {
147
147
  if (this.hasOwnProperty(Cr("elementProperties"))) return;
148
- const e = Bc(this);
148
+ const e = Vc(this);
149
149
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
150
150
  }
151
151
  static finalize() {
152
152
  if (this.hasOwnProperty(Cr("finalized"))) return;
153
153
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Cr("properties"))) {
154
- const r = this.properties, i = [...Fc(r), ...Vc(r)];
154
+ const r = this.properties, i = [...Yc(r), ...Fc(r)];
155
155
  for (const n of i) this.createProperty(n, r[n]);
156
156
  }
157
157
  const e = this[Symbol.metadata];
@@ -201,7 +201,7 @@ let hr = class extends HTMLElement {
201
201
  createRenderRoot() {
202
202
  var r;
203
203
  const e = (r = this.shadowRoot) != null ? r : this.attachShadow(this.constructor.shadowRootOptions);
204
- return Rc(e, this.constructor.elementStyles), e;
204
+ return Uc(e, this.constructor.elementStyles), e;
205
205
  }
206
206
  connectedCallback() {
207
207
  var e, r;
@@ -330,14 +330,14 @@ hr.elementStyles = [], hr.shadowRootOptions = { mode: "open" }, hr[Cr("elementPr
330
330
  * Copyright 2017 Google LLC
331
331
  * SPDX-License-Identifier: BSD-3-Clause
332
332
  */
333
- const br = globalThis, bi = br.trustedTypes, Wo = bi ? bi.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Ks = "$lit$", Ht = `lit$${Math.random().toFixed(9).slice(2)}$`, Js = "?" + Ht, $c = `<${Js}>`, cr = document, Br = () => cr.createComment(""), Wr = (t) => t === null || typeof t != "object" && typeof t != "function", io = Array.isArray, Hc = (t) => io(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", wn = `[
333
+ const br = globalThis, bi = br.trustedTypes, Wo = bi ? bi.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Ks = "$lit$", Ht = `lit$${Math.random().toFixed(9).slice(2)}$`, Js = "?" + Ht, Wc = `<${Js}>`, cr = document, Br = () => cr.createComment(""), Wr = (t) => t === null || typeof t != "object" && typeof t != "function", io = Array.isArray, $c = (t) => io(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", wn = `[
334
334
  \f\r]`, _r = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $o = /-->/g, Ho = />/g, qt = RegExp(`>|${wn}(?:([^\\s"'>=/]+)(${wn}*=${wn}*(?:[^
335
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Zo = /'/g, Go = /"/g, Xs = /^(?:script|style|textarea|title)$/i, Zc = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), Sn = Zc(1), Ar = Symbol.for("lit-noChange"), ze = Symbol.for("lit-nothing"), Ko = /* @__PURE__ */ new WeakMap(), or = cr.createTreeWalker(cr, 129);
335
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Zo = /'/g, Go = /"/g, Xs = /^(?:script|style|textarea|title)$/i, Hc = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), Sn = Hc(1), Ar = Symbol.for("lit-noChange"), ze = Symbol.for("lit-nothing"), Ko = /* @__PURE__ */ new WeakMap(), or = cr.createTreeWalker(cr, 129);
336
336
  function qs(t, e) {
337
337
  if (!io(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
338
338
  return Wo !== void 0 ? Wo.createHTML(e) : e;
339
339
  }
340
- const Gc = (t, e) => {
340
+ const Zc = (t, e) => {
341
341
  const r = t.length - 1, i = [];
342
342
  let n, o = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", s = _r;
343
343
  for (let a = 0; a < r; a++) {
@@ -345,7 +345,7 @@ const Gc = (t, e) => {
345
345
  let l, I, d = -1, u = 0;
346
346
  for (; u < c.length && (s.lastIndex = u, I = s.exec(c), I !== null); ) u = s.lastIndex, s === _r ? I[1] === "!--" ? s = $o : I[1] !== void 0 ? s = Ho : I[2] !== void 0 ? (Xs.test(I[2]) && (n = RegExp("</" + I[2], "g")), s = qt) : I[3] !== void 0 && (s = qt) : s === qt ? I[0] === ">" ? (s = n != null ? n : _r, d = -1) : I[1] === void 0 ? d = -2 : (d = s.lastIndex - I[2].length, l = I[1], s = I[3] === void 0 ? qt : I[3] === '"' ? Go : Zo) : s === Go || s === Zo ? s = qt : s === $o || s === Ho ? s = _r : (s = qt, n = void 0);
347
347
  const f = s === qt && t[a + 1].startsWith("/>") ? " " : "";
348
- o += s === _r ? c + $c : d >= 0 ? (i.push(l), c.slice(0, d) + Ks + c.slice(d) + Ht + f) : c + Ht + (d === -2 ? a : f);
348
+ o += s === _r ? c + Wc : d >= 0 ? (i.push(l), c.slice(0, d) + Ks + c.slice(d) + Ht + f) : c + Ht + (d === -2 ? a : f);
349
349
  }
350
350
  return [qs(t, o + (t[r] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
351
351
  };
@@ -354,7 +354,7 @@ let Fn = class ea {
354
354
  let n;
355
355
  this.parts = [];
356
356
  let o = 0, s = 0;
357
- const a = e.length - 1, c = this.parts, [l, I] = Gc(e, r);
357
+ const a = e.length - 1, c = this.parts, [l, I] = Zc(e, r);
358
358
  if (this.el = ea.createElement(l, i), or.currentNode = this.el.content, r === 2 || r === 3) {
359
359
  const d = this.el.content.firstChild;
360
360
  d.replaceWith(...d.childNodes);
@@ -363,7 +363,7 @@ let Fn = class ea {
363
363
  if (n.nodeType === 1) {
364
364
  if (n.hasAttributes()) for (const d of n.getAttributeNames()) if (d.endsWith(Ks)) {
365
365
  const u = I[s++], f = n.getAttribute(d).split(Ht), D = /([.?@])?(.*)/.exec(u);
366
- c.push({ type: 1, index: o, name: D[2], strings: f, ctor: D[1] === "." ? Jc : D[1] === "?" ? Xc : D[1] === "@" ? qc : qi }), n.removeAttribute(d);
366
+ c.push({ type: 1, index: o, name: D[2], strings: f, ctor: D[1] === "." ? Kc : D[1] === "?" ? Jc : D[1] === "@" ? Xc : Xi }), n.removeAttribute(d);
367
367
  } else d.startsWith(Ht) && (c.push({ type: 6, index: o }), n.removeAttribute(d));
368
368
  if (Xs.test(n.tagName)) {
369
369
  const d = n.textContent.split(Ht), u = d.length - 1;
@@ -393,7 +393,7 @@ function Er(t, e, r = t, i) {
393
393
  const o = Wr(e) ? void 0 : e._$litDirective$;
394
394
  return (n == null ? void 0 : n.constructor) !== o && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), o === void 0 ? n = void 0 : (n = new o(t), n._$AT(t, r, i)), i !== void 0 ? ((c = r._$Co) != null ? c : r._$Co = [])[i] = n : r._$Cl = n), n !== void 0 && (e = Er(t, n._$AS(t, e.values), n, i)), e;
395
395
  }
396
- let Kc = class {
396
+ let Gc = class {
397
397
  constructor(e, r) {
398
398
  this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = r;
399
399
  }
@@ -411,7 +411,7 @@ let Kc = class {
411
411
  for (; c !== void 0; ) {
412
412
  if (s === c.index) {
413
413
  let I;
414
- c.type === 2 ? I = new no(o, o.nextSibling, this, e) : c.type === 1 ? I = new c.ctor(o, c.name, c.strings, this, e) : c.type === 6 && (I = new eu(o, this, e)), this._$AV.push(I), c = i[++a];
414
+ c.type === 2 ? I = new no(o, o.nextSibling, this, e) : c.type === 1 ? I = new c.ctor(o, c.name, c.strings, this, e) : c.type === 6 && (I = new qc(o, this, e)), this._$AV.push(I), c = i[++a];
415
415
  }
416
416
  s !== (c == null ? void 0 : c.index) && (o = or.nextNode(), s++);
417
417
  }
@@ -442,7 +442,7 @@ let Kc = class {
442
442
  return this._$AB;
443
443
  }
444
444
  _$AI(e, r = this) {
445
- e = Er(this, e, r), Wr(e) ? e === ze || e == null || e === "" ? (this._$AH !== ze && this._$AR(), this._$AH = ze) : e !== this._$AH && e !== Ar && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Hc(e) ? this.k(e) : this._(e);
445
+ e = Er(this, e, r), Wr(e) ? e === ze || e == null || e === "" ? (this._$AH !== ze && this._$AR(), this._$AH = ze) : e !== this._$AH && e !== Ar && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : $c(e) ? this.k(e) : this._(e);
446
446
  }
447
447
  O(e) {
448
448
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -458,7 +458,7 @@ let Kc = class {
458
458
  const { values: r, _$litType$: i } = e, n = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = Fn.createElement(qs(i.h, i.h[0]), this.options)), i);
459
459
  if (((o = this._$AH) == null ? void 0 : o._$AD) === n) this._$AH.p(r);
460
460
  else {
461
- const s = new Kc(n, this), a = s.u(this.options);
461
+ const s = new Gc(n, this), a = s.u(this.options);
462
462
  s.p(r), this.T(a), this._$AH = s;
463
463
  }
464
464
  }
@@ -484,7 +484,7 @@ let Kc = class {
484
484
  var r;
485
485
  this._$AM === void 0 && (this._$Cv = e, (r = this._$AP) == null || r.call(this, e));
486
486
  }
487
- }, qi = class {
487
+ }, Xi = class {
488
488
  get tagName() {
489
489
  return this.element.tagName;
490
490
  }
@@ -508,21 +508,21 @@ let Kc = class {
508
508
  j(e) {
509
509
  e === ze ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e != null ? e : "");
510
510
  }
511
- }, Jc = class extends qi {
511
+ }, Kc = class extends Xi {
512
512
  constructor() {
513
513
  super(...arguments), this.type = 3;
514
514
  }
515
515
  j(e) {
516
516
  this.element[this.name] = e === ze ? void 0 : e;
517
517
  }
518
- }, Xc = class extends qi {
518
+ }, Jc = class extends Xi {
519
519
  constructor() {
520
520
  super(...arguments), this.type = 4;
521
521
  }
522
522
  j(e) {
523
523
  this.element.toggleAttribute(this.name, !!e && e !== ze);
524
524
  }
525
- }, qc = class extends qi {
525
+ }, Xc = class extends Xi {
526
526
  constructor(e, r, i, n, o) {
527
527
  super(e, r, i, n, o), this.type = 5;
528
528
  }
@@ -536,7 +536,7 @@ let Kc = class {
536
536
  var r, i;
537
537
  typeof this._$AH == "function" ? this._$AH.call((i = (r = this.options) == null ? void 0 : r.host) != null ? i : this.element, e) : this._$AH.handleEvent(e);
538
538
  }
539
- }, eu = class {
539
+ }, qc = class {
540
540
  constructor(e, r, i) {
541
541
  this.element = e, this.type = 6, this._$AN = void 0, this._$AM = r, this.options = i;
542
542
  }
@@ -550,7 +550,7 @@ let Kc = class {
550
550
  const _n = br.litHtmlPolyfillSupport;
551
551
  var $s;
552
552
  _n == null || _n(Fn, no), (($s = br.litHtmlVersions) != null ? $s : br.litHtmlVersions = []).push("3.3.1");
553
- const tu = (t, e, r) => {
553
+ const eu = (t, e, r) => {
554
554
  var o, s;
555
555
  const i = (o = r == null ? void 0 : r.renderBefore) != null ? o : e;
556
556
  let n = i._$litPart$;
@@ -577,7 +577,7 @@ let Lr = class extends hr {
577
577
  }
578
578
  update(e) {
579
579
  const r = this.render();
580
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = tu(r, this.renderRoot, this.renderOptions);
580
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = eu(r, this.renderRoot, this.renderOptions);
581
581
  }
582
582
  connectedCallback() {
583
583
  var e;
@@ -602,7 +602,7 @@ var Zs;
602
602
  * Copyright 2017 Google LLC
603
603
  * SPDX-License-Identifier: BSD-3-Clause
604
604
  */
605
- const ru = { attribute: !0, type: String, converter: Ci, reflect: !1, hasChanged: ro }, iu = (t = ru, e, r) => {
605
+ const tu = { attribute: !0, type: String, converter: Ci, reflect: !1, hasChanged: ro }, ru = (t = tu, e, r) => {
606
606
  const { kind: i, metadata: n } = r;
607
607
  let o = globalThis.litPropertyMetadata.get(n);
608
608
  if (o === void 0 && globalThis.litPropertyMetadata.set(n, o = /* @__PURE__ */ new Map()), i === "setter" && ((t = Object.create(t)).wrapped = !0), o.set(r.name, t), i === "accessor") {
@@ -623,8 +623,8 @@ const ru = { attribute: !0, type: String, converter: Ci, reflect: !1, hasChanged
623
623
  }
624
624
  throw Error("Unsupported decorator location: " + i);
625
625
  };
626
- function nu(t) {
627
- return (e, r) => typeof r == "object" ? iu(t, e, r) : ((i, n, o) => {
626
+ function iu(t) {
627
+ return (e, r) => typeof r == "object" ? ru(t, e, r) : ((i, n, o) => {
628
628
  const s = n.hasOwnProperty(o);
629
629
  return n.constructor.createProperty(o, i), s ? Object.getOwnPropertyDescriptor(n, o) : void 0;
630
630
  })(t, e, r);
@@ -635,9 +635,9 @@ function nu(t) {
635
635
  * SPDX-License-Identifier: BSD-3-Clause
636
636
  */
637
637
  function lr(t) {
638
- return nu(ee(j({}, t), { state: !0, attribute: !1 }));
638
+ return iu(ee(j({}, t), { state: !0, attribute: !1 }));
639
639
  }
640
- class ou {
640
+ class nu {
641
641
  constructor() {
642
642
  this._domains = [], this._transports = [], this._logs = [], this._prevTime = 0;
643
643
  try {
@@ -682,7 +682,7 @@ class ou {
682
682
  n.download = "log.txt", n.href = i, n.click(), window.URL.revokeObjectURL(i), this.clearLogs();
683
683
  }
684
684
  }
685
- const ra = new ou(), su = Uc`
685
+ const ra = new nu(), ou = kc`
686
686
  *,
687
687
  ::after,
688
688
  ::before {
@@ -746,12 +746,14 @@ const ra = new ou(), su = Uc`
746
746
  `, Li = {
747
747
  MESSAGE: "MESSAGE",
748
748
  ERROR: "ERROR"
749
- }, au = {
749
+ }, su = {
750
750
  DATA: "DATA",
751
- QUESTIONARY: "QUESTIONARY"
752
- }, cu = Object.values(au);
753
- var ia = /* @__PURE__ */ ((t) => (t.Rtl = "rtl", t.Ltr = "ltr", t))(ia || {}), kr = /* @__PURE__ */ ((t) => (t.DID_START_SESSION = "DID_START_SESSION", t.DID_END_SESSION = "DID_END_SESSION", t.DID_START_RESTORE_SESSION = "DID_START_RESTORE_SESSION", t.DID_CONTINUE_REMOTE_SESSION = "DID_CONTINUE_REMOTE_SESSION", t))(kr || {}), jt = /* @__PURE__ */ ((t) => (t[t.INITIALIZATION_REQUIRED = 0] = "INITIALIZATION_REQUIRED", t[t.CONNECTION_ISSUE = 1] = "CONNECTION_ISSUE", t[t.WORKFLOW_ISSUE = 2] = "WORKFLOW_ISSUE", t[t.INTERNAL_ISSUE = 3] = "INTERNAL_ISSUE", t[t.SCENARIO_IN_PROGRESS = 4] = "SCENARIO_IN_PROGRESS", t))(jt || {}), Re = /* @__PURE__ */ ((t) => (t[t.CONNECTION_ISSUE = 0] = "CONNECTION_ISSUE", t[t.CONFIG_MISSED_OR_INVALID = 1] = "CONFIG_MISSED_OR_INVALID", t[t.INITIALIZATION_REQUIRED = 2] = "INITIALIZATION_REQUIRED", t[t.SCENARIO_IN_PROGRESS = 3] = "SCENARIO_IN_PROGRESS", t))(Re || {}), We = /* @__PURE__ */ ((t) => (t[t.INITIALIZATION_REQUIRED = 0] = "INITIALIZATION_REQUIRED", t[t.PREPARED_REQUIRED = 1] = "PREPARED_REQUIRED", t[t.START_SESSION_FAILED = 2] = "START_SESSION_FAILED", t[t.UNKNOWN_STEP = 3] = "UNKNOWN_STEP", t[t.MODULES_ISSUE = 4] = "MODULES_ISSUE", t[t.ALREADY_STARTED = 5] = "ALREADY_STARTED", t[t.INTERNAL_ISSUE = 6] = "INTERNAL_ISSUE", t))(We || {}), en = /* @__PURE__ */ ((t) => (t[t.CONFIG_MISSED_OR_INVALID = 0] = "CONFIG_MISSED_OR_INVALID", t[t.MODULES_INSTANTIATION_FAILURE = 1] = "MODULES_INSTANTIATION_FAILURE", t[t.INITIALIZATION_IN_PROGRESS = 2] = "INITIALIZATION_IN_PROGRESS", t))(en || {}), ki = /* @__PURE__ */ ((t) => (t[t.CONNECTION_ISSUE = 0] = "CONNECTION_ISSUE", t[t.WORKFLOW_ISSUE = 1] = "WORKFLOW_ISSUE", t))(ki || {}), wt = /* @__PURE__ */ ((t) => (t[t.HTTP_ISSUE = 0] = "HTTP_ISSUE", t[t.PROVIDER_ERROR = 1] = "PROVIDER_ERROR", t[t.DECODING_FAILED = 2] = "DECODING_FAILED", t))(wt || {}), tr = /* @__PURE__ */ ((t) => (t[t.HTTP_ISSUE = 0] = "HTTP_ISSUE", t[t.PROVIDER_ERROR = 1] = "PROVIDER_ERROR", t[t.DECODING_FAILED = 2] = "DECODING_FAILED", t[t.TOKEN_ERROR = 3] = "TOKEN_ERROR", t[t.CONNECTION_ISSUE = 4] = "CONNECTION_ISSUE", t))(tr || {}), at = /* @__PURE__ */ ((t) => (t[t.HTTP_ISSUE = 0] = "HTTP_ISSUE", t[t.PROVIDER_ERROR = 1] = "PROVIDER_ERROR", t[t.DECODING_FAILED = 2] = "DECODING_FAILED", t[t.SAME_STEP = 3] = "SAME_STEP", t[t.IS_PROCESSING = 4] = "IS_PROCESSING", t[t.NOT_DATA_TYPE = 5] = "NOT_DATA_TYPE", t))(at || {}), Ui = /* @__PURE__ */ ((t) => (t[t.INITIALIZATION_REQUIRED = 0] = "INITIALIZATION_REQUIRED", t[t.SCENARIO_IN_PROGRESS = 3] = "SCENARIO_IN_PROGRESS", t))(Ui || {}), $t = /* @__PURE__ */ ((t) => (t[t.HTTP_ISSUE = 0] = "HTTP_ISSUE", t[t.PROVIDER_ERROR = 1] = "PROVIDER_ERROR", t))($t || {});
754
- const uu = 120, lu = 200, Vn = "PROGRESS", pt = "IDV", er = "idv-session-data", Or = "idv-session-auth-token", du = "rgl-uid", Mu = "en", Jo = (t) => {
751
+ QUESTIONARY: "QUESTIONARY",
752
+ DOCREADER: "DOCREADER",
753
+ LIVENESS: "LIVENESS"
754
+ }, au = Object.values(su);
755
+ var ia = /* @__PURE__ */ ((t) => (t.Rtl = "rtl", t.Ltr = "ltr", t))(ia || {}), kr = /* @__PURE__ */ ((t) => (t.DID_START_SESSION = "DID_START_SESSION", t.DID_END_SESSION = "DID_END_SESSION", t.DID_START_RESTORE_SESSION = "DID_START_RESTORE_SESSION", t.DID_CONTINUE_REMOTE_SESSION = "DID_CONTINUE_REMOTE_SESSION", t))(kr || {}), jt = /* @__PURE__ */ ((t) => (t[t.INITIALIZATION_REQUIRED = 0] = "INITIALIZATION_REQUIRED", t[t.CONNECTION_ISSUE = 1] = "CONNECTION_ISSUE", t[t.WORKFLOW_ISSUE = 2] = "WORKFLOW_ISSUE", t[t.INTERNAL_ISSUE = 3] = "INTERNAL_ISSUE", t[t.SCENARIO_IN_PROGRESS = 4] = "SCENARIO_IN_PROGRESS", t))(jt || {}), Re = /* @__PURE__ */ ((t) => (t[t.CONNECTION_ISSUE = 0] = "CONNECTION_ISSUE", t[t.CONFIG_MISSED_OR_INVALID = 1] = "CONFIG_MISSED_OR_INVALID", t[t.INITIALIZATION_REQUIRED = 2] = "INITIALIZATION_REQUIRED", t[t.SCENARIO_IN_PROGRESS = 3] = "SCENARIO_IN_PROGRESS", t))(Re || {}), We = /* @__PURE__ */ ((t) => (t[t.INITIALIZATION_REQUIRED = 0] = "INITIALIZATION_REQUIRED", t[t.PREPARED_REQUIRED = 1] = "PREPARED_REQUIRED", t[t.START_SESSION_FAILED = 2] = "START_SESSION_FAILED", t[t.UNKNOWN_STEP = 3] = "UNKNOWN_STEP", t[t.MODULES_ISSUE = 4] = "MODULES_ISSUE", t[t.ALREADY_STARTED = 5] = "ALREADY_STARTED", t[t.INTERNAL_ISSUE = 6] = "INTERNAL_ISSUE", t))(We || {}), qi = /* @__PURE__ */ ((t) => (t[t.CONFIG_MISSED_OR_INVALID = 0] = "CONFIG_MISSED_OR_INVALID", t[t.MODULES_INSTANTIATION_FAILURE = 1] = "MODULES_INSTANTIATION_FAILURE", t[t.INITIALIZATION_IN_PROGRESS = 2] = "INITIALIZATION_IN_PROGRESS", t))(qi || {}), ki = /* @__PURE__ */ ((t) => (t[t.CONNECTION_ISSUE = 0] = "CONNECTION_ISSUE", t[t.WORKFLOW_ISSUE = 1] = "WORKFLOW_ISSUE", t))(ki || {}), wt = /* @__PURE__ */ ((t) => (t[t.HTTP_ISSUE = 0] = "HTTP_ISSUE", t[t.PROVIDER_ERROR = 1] = "PROVIDER_ERROR", t[t.DECODING_FAILED = 2] = "DECODING_FAILED", t))(wt || {}), tr = /* @__PURE__ */ ((t) => (t[t.HTTP_ISSUE = 0] = "HTTP_ISSUE", t[t.PROVIDER_ERROR = 1] = "PROVIDER_ERROR", t[t.DECODING_FAILED = 2] = "DECODING_FAILED", t[t.TOKEN_ERROR = 3] = "TOKEN_ERROR", t[t.CONNECTION_ISSUE = 4] = "CONNECTION_ISSUE", t))(tr || {}), at = /* @__PURE__ */ ((t) => (t[t.HTTP_ISSUE = 0] = "HTTP_ISSUE", t[t.PROVIDER_ERROR = 1] = "PROVIDER_ERROR", t[t.DECODING_FAILED = 2] = "DECODING_FAILED", t[t.SAME_STEP = 3] = "SAME_STEP", t[t.IS_PROCESSING = 4] = "IS_PROCESSING", t[t.NOT_DATA_TYPE = 5] = "NOT_DATA_TYPE", t))(at || {}), Ui = /* @__PURE__ */ ((t) => (t[t.INITIALIZATION_REQUIRED = 0] = "INITIALIZATION_REQUIRED", t[t.SCENARIO_IN_PROGRESS = 3] = "SCENARIO_IN_PROGRESS", t))(Ui || {}), $t = /* @__PURE__ */ ((t) => (t[t.HTTP_ISSUE = 0] = "HTTP_ISSUE", t[t.PROVIDER_ERROR = 1] = "PROVIDER_ERROR", t))($t || {});
756
+ const cu = 120, uu = 200, Vn = "PROGRESS", pt = "IDV", er = "idv-session-data", Or = "idv-session-auth-token", lu = "rgl-uid", du = "en", Jo = (t) => {
755
757
  let e;
756
758
  const r = /* @__PURE__ */ new Set(), i = (l, I) => {
757
759
  const d = typeof l == "function" ? l(e) : l;
@@ -761,8 +763,8 @@ const uu = 120, lu = 200, Vn = "PROGRESS", pt = "IDV", er = "idv-session-data",
761
763
  }
762
764
  }, n = () => e, a = { setState: i, getState: n, getInitialState: () => c, subscribe: (l) => (r.add(l), () => r.delete(l)) }, c = e = t(i, n, a);
763
765
  return a;
764
- }, gu = (t) => t ? Jo(t) : Jo;
765
- var Zr, ue, na, rr, Xo, oa, sa, aa, oo, Bn, Wn, ca, $r = {}, ua = [], Nu = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Gr = Array.isArray;
766
+ }, Mu = (t) => t ? Jo(t) : Jo;
767
+ var Zr, ue, na, rr, Xo, oa, sa, aa, oo, Bn, Wn, ca, $r = {}, ua = [], gu = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Gr = Array.isArray;
766
768
  function Dt(t, e) {
767
769
  for (var r in e) t[r] = e[r];
768
770
  return t;
@@ -813,12 +815,12 @@ function Ri() {
813
815
  }
814
816
  function Ma(t, e, r, i, n, o, s, a, c, l, I) {
815
817
  var d, u, f, D, M, g, E, A = i && i.__k || ua, p = e.length;
816
- for (c = Iu(r, e, A, c, p), d = 0; d < p; d++) (f = r.__k[d]) != null && (u = f.__i == -1 ? $r : A[f.__i] || $r, f.__i = d, g = ao(t, f, u, n, o, s, a, c, l, I), D = f.__e, f.ref && u.ref != f.ref && (u.ref && co(u.ref, null, f), I.push(f.ref, f.__c || D, f)), M == null && D != null && (M = D), (E = !!(4 & f.__u)) || u.__k === f.__k ? c = ga(f, c, t, E) : typeof f.type == "function" && g !== void 0 ? c = g : D && (c = D.nextSibling), f.__u &= -7);
818
+ for (c = Nu(r, e, A, c, p), d = 0; d < p; d++) (f = r.__k[d]) != null && (u = f.__i == -1 ? $r : A[f.__i] || $r, f.__i = d, g = ao(t, f, u, n, o, s, a, c, l, I), D = f.__e, f.ref && u.ref != f.ref && (u.ref && co(u.ref, null, f), I.push(f.ref, f.__c || D, f)), M == null && D != null && (M = D), (E = !!(4 & f.__u)) || u.__k === f.__k ? c = ga(f, c, t, E) : typeof f.type == "function" && g !== void 0 ? c = g : D && (c = D.nextSibling), f.__u &= -7);
817
819
  return r.__e = M, c;
818
820
  }
819
- function Iu(t, e, r, i, n) {
821
+ function Nu(t, e, r, i, n) {
820
822
  var o, s, a, c, l, I = r.length, d = I, u = 0;
821
- for (t.__k = new Array(n), o = 0; o < n; o++) (s = e[o]) != null && typeof s != "boolean" && typeof s != "function" ? (c = o + u, (s = t.__k[o] = typeof s == "string" || typeof s == "number" || typeof s == "bigint" || s.constructor == String ? Ur(null, s, null, null, null) : Gr(s) ? Ur(Ze, { children: s }, null, null, null) : s.constructor == null && s.__b > 0 ? Ur(s.type, s.props, s.key, s.ref ? s.ref : null, s.__v) : s).__ = t, s.__b = t.__b + 1, a = null, (l = s.__i = fu(s, r, c, d)) != -1 && (d--, (a = r[l]) && (a.__u |= 2)), a == null || a.__v == null ? (l == -1 && (n > I ? u-- : n < I && u++), typeof s.type != "function" && (s.__u |= 4)) : l != c && (l == c - 1 ? u-- : l == c + 1 ? u++ : (l > c ? u-- : u++, s.__u |= 4))) : t.__k[o] = null;
823
+ for (t.__k = new Array(n), o = 0; o < n; o++) (s = e[o]) != null && typeof s != "boolean" && typeof s != "function" ? (typeof s == "string" || typeof s == "number" || typeof s == "bigint" || s.constructor == String ? s = t.__k[o] = Ur(null, s, null, null, null) : Gr(s) ? s = t.__k[o] = Ur(Ze, { children: s }, null, null, null) : s.constructor === void 0 && s.__b > 0 ? s = t.__k[o] = Ur(s.type, s.props, s.key, s.ref ? s.ref : null, s.__v) : t.__k[o] = s, c = o + u, s.__ = t, s.__b = t.__b + 1, a = null, (l = s.__i = Iu(s, r, c, d)) != -1 && (d--, (a = r[l]) && (a.__u |= 2)), a == null || a.__v == null ? (l == -1 && (n > I ? u-- : n < I && u++), typeof s.type != "function" && (s.__u |= 4)) : l != c && (l == c - 1 ? u-- : l == c + 1 ? u++ : (l > c ? u-- : u++, s.__u |= 4))) : t.__k[o] = null;
822
824
  if (d) for (o = 0; o < I; o++) (a = r[o]) != null && (2 & a.__u) == 0 && (a.__e == i && (i = mr(a)), fa(a, a));
823
825
  return i;
824
826
  }
@@ -839,16 +841,16 @@ function Pt(t, e) {
839
841
  Pt(r, e);
840
842
  }) : e.push(t)), e;
841
843
  }
842
- function fu(t, e, r, i) {
844
+ function Iu(t, e, r, i) {
843
845
  var n, o, s, a = t.key, c = t.type, l = e[r], I = l != null && (2 & l.__u) == 0;
844
- if (l === null && t.key == null || I && a == l.key && c == l.type) return r;
846
+ if (l === null && a == null || I && a == l.key && c == l.type) return r;
845
847
  if (i > (I ? 1 : 0)) {
846
848
  for (n = r - 1, o = r + 1; n >= 0 || o < e.length; ) if ((l = e[s = n >= 0 ? n-- : o++]) != null && (2 & l.__u) == 0 && a == l.key && c == l.type) return s;
847
849
  }
848
850
  return -1;
849
851
  }
850
852
  function qo(t, e, r) {
851
- e[0] == "-" ? t.setProperty(e, r == null ? "" : r) : t[e] = r == null ? "" : typeof r != "number" || Nu.test(e) ? r : r + "px";
853
+ e[0] == "-" ? t.setProperty(e, r == null ? "" : r) : t[e] = r == null ? "" : typeof r != "number" || gu.test(e) ? r : r + "px";
852
854
  }
853
855
  function _i(t, e, r, i, n) {
854
856
  var o, s;
@@ -880,12 +882,12 @@ function es(t) {
880
882
  }
881
883
  function ao(t, e, r, i, n, o, s, a, c, l) {
882
884
  var I, d, u, f, D, M, g, E, A, p, S, k, v, x, ae, B, J, V = e.type;
883
- if (e.constructor != null) return null;
885
+ if (e.constructor !== void 0) return null;
884
886
  128 & r.__u && (c = !!(32 & r.__u), o = [a = e.__e = r.__e]), (I = ue.__b) && I(e);
885
887
  e: if (typeof V == "function") try {
886
- if (E = e.props, A = "prototype" in V && V.prototype.render, p = (I = V.contextType) && i[I.__c], S = I ? p ? p.props.value : I.__ : i, r.__c ? g = (d = e.__c = r.__c).__ = d.__E : (A ? e.__c = d = new V(E, S) : (e.__c = d = new Mt(E, S), d.constructor = V, d.render = hu), p && p.sub(d), d.props = E, d.state || (d.state = {}), d.context = S, d.__n = i, u = d.__d = !0, d.__h = [], d._sb = []), A && d.__s == null && (d.__s = d.state), A && V.getDerivedStateFromProps != null && (d.__s == d.state && (d.__s = Dt({}, d.__s)), Dt(d.__s, V.getDerivedStateFromProps(E, d.__s))), f = d.props, D = d.state, d.__v = e, u) A && V.getDerivedStateFromProps == null && d.componentWillMount != null && d.componentWillMount(), A && d.componentDidMount != null && d.__h.push(d.componentDidMount);
888
+ if (E = e.props, A = "prototype" in V && V.prototype.render, p = (I = V.contextType) && i[I.__c], S = I ? p ? p.props.value : I.__ : i, r.__c ? g = (d = e.__c = r.__c).__ = d.__E : (A ? e.__c = d = new V(E, S) : (e.__c = d = new Mt(E, S), d.constructor = V, d.render = Du), p && p.sub(d), d.state || (d.state = {}), d.__n = i, u = d.__d = !0, d.__h = [], d._sb = []), A && d.__s == null && (d.__s = d.state), A && V.getDerivedStateFromProps != null && (d.__s == d.state && (d.__s = Dt({}, d.__s)), Dt(d.__s, V.getDerivedStateFromProps(E, d.__s))), f = d.props, D = d.state, d.__v = e, u) A && V.getDerivedStateFromProps == null && d.componentWillMount != null && d.componentWillMount(), A && d.componentDidMount != null && d.__h.push(d.componentDidMount);
887
889
  else {
888
- if (A && V.getDerivedStateFromProps == null && E !== f && d.componentWillReceiveProps != null && d.componentWillReceiveProps(E, S), !d.__e && d.shouldComponentUpdate != null && d.shouldComponentUpdate(E, d.__s, S) === !1 || e.__v == r.__v) {
890
+ if (A && V.getDerivedStateFromProps == null && E !== f && d.componentWillReceiveProps != null && d.componentWillReceiveProps(E, S), e.__v == r.__v || !d.__e && d.shouldComponentUpdate != null && d.shouldComponentUpdate(E, d.__s, S) === !1) {
889
891
  for (e.__v != r.__v && (d.props = E, d.state = d.__s, d.__d = !1), e.__e = r.__e, e.__k = r.__k, e.__k.some(function(F) {
890
892
  F && (F.__ = e);
891
893
  }), k = 0; k < d._sb.length; k++) d.__h.push(d._sb[k]);
@@ -914,7 +916,7 @@ function ao(t, e, r, i, n, o, s, a, c, l) {
914
916
  else e.__e = r.__e, e.__k = r.__k, F.then || Hn(e);
915
917
  ue.__e(F, e, r);
916
918
  }
917
- else o == null && e.__v == r.__v ? (e.__k = r.__k, e.__e = r.__e) : a = e.__e = Du(r.__e, e, r, i, n, o, s, c, l);
919
+ else o == null && e.__v == r.__v ? (e.__k = r.__k, e.__e = r.__e) : a = e.__e = fu(r.__e, e, r, i, n, o, s, c, l);
918
920
  return (I = ue.diffed) && I(e), 128 & e.__u ? void 0 : a;
919
921
  }
920
922
  function Hn(t) {
@@ -935,8 +937,8 @@ function Na(t, e, r) {
935
937
  function Ia(t) {
936
938
  return typeof t != "object" || t == null || t.__b && t.__b > 0 ? t : Gr(t) ? t.map(Ia) : Dt({}, t);
937
939
  }
938
- function Du(t, e, r, i, n, o, s, a, c) {
939
- var l, I, d, u, f, D, M, g = r.props, E = e.props, A = e.type;
940
+ function fu(t, e, r, i, n, o, s, a, c) {
941
+ var l, I, d, u, f, D, M, g = r.props || $r, E = e.props, A = e.type;
940
942
  if (A == "svg" ? n = "http://www.w3.org/2000/svg" : A == "math" ? n = "http://www.w3.org/1998/Math/MathML" : n || (n = "http://www.w3.org/1999/xhtml"), o != null) {
941
943
  for (l = 0; l < o.length; l++) if ((f = o[l]) && "setAttribute" in f == !!A && (A ? f.localName == A : f.nodeType == 3)) {
942
944
  t = f, o[l] = null;
@@ -949,7 +951,7 @@ function Du(t, e, r, i, n, o, s, a, c) {
949
951
  }
950
952
  if (A == null) g === E || a && t.data == E || (t.data = E);
951
953
  else {
952
- if (o = o && Zr.call(t.childNodes), g = r.props || $r, !a && o != null) for (g = {}, l = 0; l < t.attributes.length; l++) g[(f = t.attributes[l]).name] = f.value;
954
+ if (o = o && Zr.call(t.childNodes), !a && o != null) for (g = {}, l = 0; l < t.attributes.length; l++) g[(f = t.attributes[l]).name] = f.value;
953
955
  for (l in g) if (f = g[l], l != "children") {
954
956
  if (l == "dangerouslySetInnerHTML") d = f;
955
957
  else if (!(l in E)) {
@@ -987,7 +989,7 @@ function fa(t, e, r) {
987
989
  if (i = t.__k) for (n = 0; n < i.length; n++) i[n] && fa(i[n], e, r || typeof t.type != "function");
988
990
  r || so(t.__e), t.__c = t.__ = t.__e = void 0;
989
991
  }
990
- function hu(t, e, r) {
992
+ function Du(t, e, r) {
991
993
  return this.constructor(t, r);
992
994
  }
993
995
  function ur(t, e, r) {
@@ -997,7 +999,7 @@ function ur(t, e, r) {
997
999
  function Da(t, e) {
998
1000
  ur(t, e, Da);
999
1001
  }
1000
- function yu(t, e, r) {
1002
+ function hu(t, e, r) {
1001
1003
  var i, n, o, s, a = Dt({}, t.props);
1002
1004
  for (o in t.type && t.type.defaultProps && (s = t.type.defaultProps), e) o == "key" ? i = e[o] : o == "ref" ? n = e[o] : a[o] = e[o] === void 0 && s != null ? s[o] : e[o];
1003
1005
  return arguments.length > 2 && (a.children = arguments.length > 3 ? Zr.call(arguments, 2) : r), Ur(t.type, a, i || t.key, n || t.ref, null);
@@ -1047,9 +1049,9 @@ function dr(t, e) {
1047
1049
  return t >= r.__.length && r.__.push({}), r.__[t];
1048
1050
  }
1049
1051
  function be(t) {
1050
- return jr = 1, tn(ya, t);
1052
+ return jr = 1, en(ya, t);
1051
1053
  }
1052
- function tn(t, e, r) {
1054
+ function en(t, e, r) {
1053
1055
  var i = dr(Yt++, 2);
1054
1056
  if (i.t = t, !i.__c && (i.__ = [r ? r(e) : ya(void 0, e), function(a) {
1055
1057
  var c = i.__N ? i.__N[0] : i.__[0], l = i.t(c, a);
@@ -1125,7 +1127,7 @@ function wr(t) {
1125
1127
  function go(t, e) {
1126
1128
  je.useDebugValue && je.useDebugValue(e ? e(t) : t);
1127
1129
  }
1128
- function pu(t) {
1130
+ function yu(t) {
1129
1131
  var e = dr(Yt++, 10), r = be();
1130
1132
  return e.__ = t, Te.componentDidCatch || (Te.componentDidCatch = function(i, n) {
1131
1133
  e.__ && e.__(i, n), r[1](i);
@@ -1142,7 +1144,7 @@ function No() {
1142
1144
  }
1143
1145
  return t.__;
1144
1146
  }
1145
- function Tu() {
1147
+ function pu() {
1146
1148
  for (var t; t = ha.shift(); ) if (t.__P && t.__H) try {
1147
1149
  t.__H.__h.forEach(vi), t.__H.__h.forEach(Zn), t.__H.__h = [];
1148
1150
  } catch (e) {
@@ -1162,7 +1164,7 @@ je.__b = function(t) {
1162
1164
  }, je.diffed = function(t) {
1163
1165
  ns && ns(t);
1164
1166
  var e = t.__c;
1165
- e && e.__H && (e.__H.__h.length && (ha.push(e) !== 1 && ts === je.requestAnimationFrame || ((ts = je.requestAnimationFrame) || Au)(Tu)), e.__H.__.forEach(function(r) {
1167
+ e && e.__H && (e.__H.__h.length && (ha.push(e) !== 1 && ts === je.requestAnimationFrame || ((ts = je.requestAnimationFrame) || Tu)(pu)), e.__H.__.forEach(function(r) {
1166
1168
  r.u && (r.__H = r.u), r.u = void 0;
1167
1169
  })), xn = Te = null;
1168
1170
  }, je.__c = function(t, e) {
@@ -1189,7 +1191,7 @@ je.__b = function(t) {
1189
1191
  }), r.__H = void 0, e && je.__e(e, r.__v));
1190
1192
  };
1191
1193
  var cs = typeof requestAnimationFrame == "function";
1192
- function Au(t) {
1194
+ function Tu(t) {
1193
1195
  var e, r = function() {
1194
1196
  clearTimeout(i), cs && cancelAnimationFrame(e), setTimeout(t);
1195
1197
  }, i = setTimeout(r, 35);
@@ -1269,13 +1271,13 @@ var us = ue.__b;
1269
1271
  ue.__b = function(t) {
1270
1272
  t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null), us && us(t);
1271
1273
  };
1272
- var Eu = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
1274
+ var Au = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
1273
1275
  function Aa(t) {
1274
1276
  function e(r) {
1275
1277
  var i = pa({}, r);
1276
1278
  return delete i.ref, t(i, r.ref || null);
1277
1279
  }
1278
- return e.$$typeof = Eu, e.render = t, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e;
1280
+ return e.$$typeof = Au, e.render = t, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e;
1279
1281
  }
1280
1282
  var ls = function(t, e) {
1281
1283
  return t == null ? null : Pt(Pt(t).map(e));
@@ -1285,12 +1287,12 @@ var ls = function(t, e) {
1285
1287
  var e = Pt(t);
1286
1288
  if (e.length !== 1) throw "Children.only";
1287
1289
  return e[0];
1288
- }, toArray: Pt }, mu = ue.__e;
1290
+ }, toArray: Pt }, Eu = ue.__e;
1289
1291
  ue.__e = function(t, e, r, i) {
1290
1292
  if (t.then) {
1291
1293
  for (var n, o = e; o = o.__; ) if ((n = o.__c) && n.__c) return e.__e == null && (e.__e = r.__e, e.__k = r.__k), n.__c(t, e);
1292
1294
  }
1293
- mu(t, e, r, i);
1295
+ Eu(t, e, r, i);
1294
1296
  };
1295
1297
  var ds = ue.unmount;
1296
1298
  function ma(t, e, r) {
@@ -1313,17 +1315,17 @@ function wa(t) {
1313
1315
  return e && e.__a && e.__a(t);
1314
1316
  }
1315
1317
  function Sa(t) {
1316
- var e, r, i;
1317
- function n(o) {
1318
- if (e || (e = t()).then(function(s) {
1319
- r = s.default || s;
1320
- }, function(s) {
1321
- i = s;
1322
- }), i) throw i;
1323
- if (!r) throw e;
1324
- return ht(r, o);
1325
- }
1326
- return n.displayName = "Lazy", n.__f = !0, n;
1318
+ var e, r, i, n = null;
1319
+ function o(s) {
1320
+ if (e || (e = t()).then(function(a) {
1321
+ a && (n = a.default || a), i = !0;
1322
+ }, function(a) {
1323
+ r = a, i = !0;
1324
+ }), r) throw r;
1325
+ if (!i) throw e;
1326
+ return n ? ht(n, s) : null;
1327
+ }
1328
+ return o.displayName = "Lazy", o.__f = !0, o;
1327
1329
  }
1328
1330
  function pr() {
1329
1331
  this.i = null, this.l = null;
@@ -1369,12 +1371,12 @@ var Ms = function(t, e, r) {
1369
1371
  t.i = r = r[2];
1370
1372
  }
1371
1373
  };
1372
- function ju(t) {
1374
+ function mu(t) {
1373
1375
  return this.getChildContext = function() {
1374
1376
  return t.context;
1375
1377
  }, t.children;
1376
1378
  }
1377
- function wu(t) {
1379
+ function ju(t) {
1378
1380
  var e = this, r = t.h;
1379
1381
  if (e.componentWillUnmount = function() {
1380
1382
  ur(null, e.v), e.v = null, e.h = null;
@@ -1388,10 +1390,10 @@ function wu(t) {
1388
1390
  this.childNodes.splice(this.childNodes.indexOf(n) >>> 1, 1), e.h.removeChild(n);
1389
1391
  } };
1390
1392
  }
1391
- ur(ht(ju, { context: e.context }, t.__v), e.v);
1393
+ ur(ht(mu, { context: e.context }, t.__v), e.v);
1392
1394
  }
1393
1395
  function _a(t, e) {
1394
- var r = ht(wu, { __v: t, h: e });
1396
+ var r = ht(ju, { __v: t, h: e });
1395
1397
  return r.containerInfo = e, r;
1396
1398
  }
1397
1399
  (pr.prototype = new Mt()).__a = function(t) {
@@ -1414,7 +1416,7 @@ function _a(t, e) {
1414
1416
  Ms(t, r, e);
1415
1417
  });
1416
1418
  };
1417
- var Oa = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.element") || 60103, Su = /^(?: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]/, _u = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Ou = /[A-Z0-9]/g, xu = typeof document != "undefined", zu = function(t) {
1419
+ var Oa = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.element") || 60103, wu = /^(?: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]/, Su = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, _u = /[A-Z0-9]/g, Ou = typeof document != "undefined", xu = function(t) {
1418
1420
  return (typeof Symbol != "undefined" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(t);
1419
1421
  };
1420
1422
  function xa(t, e, r) {
@@ -1431,18 +1433,18 @@ Mt.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceive
1431
1433
  } });
1432
1434
  });
1433
1435
  var gs = ue.event;
1434
- function vu() {
1436
+ function zu() {
1435
1437
  }
1436
- function Cu() {
1438
+ function vu() {
1437
1439
  return this.cancelBubble;
1438
1440
  }
1439
- function bu() {
1441
+ function Cu() {
1440
1442
  return this.defaultPrevented;
1441
1443
  }
1442
1444
  ue.event = function(t) {
1443
- return gs && (t = gs(t)), t.persist = vu, t.isPropagationStopped = Cu, t.isDefaultPrevented = bu, t.nativeEvent = t;
1445
+ return gs && (t = gs(t)), t.persist = zu, t.isPropagationStopped = vu, t.isDefaultPrevented = Cu, t.nativeEvent = t;
1444
1446
  };
1445
- var To, Lu = { enumerable: !1, configurable: !0, get: function() {
1447
+ var To, bu = { enumerable: !1, configurable: !0, get: function() {
1446
1448
  return this.class;
1447
1449
  } }, Ns = ue.vnode;
1448
1450
  ue.vnode = function(t) {
@@ -1450,16 +1452,16 @@ ue.vnode = function(t) {
1450
1452
  var r = e.props, i = e.type, n = {}, o = i.indexOf("-") === -1;
1451
1453
  for (var s in r) {
1452
1454
  var a = r[s];
1453
- if (!(s === "value" && "defaultValue" in r && a == null || xu && s === "children" && i === "noscript" || s === "class" || s === "className")) {
1455
+ if (!(s === "value" && "defaultValue" in r && a == null || Ou && s === "children" && i === "noscript" || s === "class" || s === "className")) {
1454
1456
  var c = s.toLowerCase();
1455
- s === "defaultValue" && "value" in r && r.value == null ? s = "value" : s === "download" && a === !0 ? a = "" : c === "translate" && a === "no" ? a = !1 : c[0] === "o" && c[1] === "n" ? c === "ondoubleclick" ? s = "ondblclick" : c !== "onchange" || i !== "input" && i !== "textarea" || zu(r.type) ? c === "onfocus" ? s = "onfocusin" : c === "onblur" ? s = "onfocusout" : _u.test(s) && (s = c) : c = s = "oninput" : o && Su.test(s) ? s = s.replace(Ou, "-$&").toLowerCase() : a === null && (a = void 0), c === "oninput" && n[s = c] && (s = "oninputCapture"), n[s] = a;
1457
+ s === "defaultValue" && "value" in r && r.value == null ? s = "value" : s === "download" && a === !0 ? a = "" : c === "translate" && a === "no" ? a = !1 : c[0] === "o" && c[1] === "n" ? c === "ondoubleclick" ? s = "ondblclick" : c !== "onchange" || i !== "input" && i !== "textarea" || xu(r.type) ? c === "onfocus" ? s = "onfocusin" : c === "onblur" ? s = "onfocusout" : Su.test(s) && (s = c) : c = s = "oninput" : o && wu.test(s) ? s = s.replace(_u, "-$&").toLowerCase() : a === null && (a = void 0), c === "oninput" && n[s = c] && (s = "oninputCapture"), n[s] = a;
1456
1458
  }
1457
1459
  }
1458
1460
  i == "select" && n.multiple && Array.isArray(n.value) && (n.value = Pt(r.children).forEach(function(l) {
1459
1461
  l.props.selected = n.value.indexOf(l.props.value) != -1;
1460
1462
  })), i == "select" && n.defaultValue != null && (n.value = Pt(r.children).forEach(function(l) {
1461
1463
  l.props.selected = n.multiple ? n.defaultValue.indexOf(l.props.value) != -1 : n.defaultValue == l.props.value;
1462
- })), r.class && !r.className ? (n.class = r.class, Object.defineProperty(n, "className", Lu)) : (r.className && !r.class || r.class && r.className) && (n.class = n.className = r.className), e.props = n;
1464
+ })), r.class && !r.className ? (n.class = r.class, Object.defineProperty(n, "className", bu)) : (r.className && !r.class || r.class && r.className) && (n.class = n.className = r.className), e.props = n;
1463
1465
  })(t), t.$$typeof = Oa, Ns && Ns(t);
1464
1466
  };
1465
1467
  var Is = ue.__r;
@@ -1474,7 +1476,7 @@ ue.diffed = function(t) {
1474
1476
  };
1475
1477
  var va = { ReactCurrentDispatcher: { current: { readContext: function(t) {
1476
1478
  return To.__n[t.__c].props.value;
1477
- }, useCallback: Mo, useContext: wr, useDebugValue: go, useDeferredValue: ho, useEffect: tt, useId: No, useImperativeHandle: lo, useInsertionEffect: po, useLayoutEffect: Gt, useMemo: Kr, useReducer: tn, useRef: gt, useState: be, useSyncExternalStore: fo, useTransition: yo } } }, ku = "18.3.1";
1479
+ }, useCallback: Mo, useContext: wr, useDebugValue: go, useDeferredValue: ho, useEffect: tt, useId: No, useImperativeHandle: lo, useInsertionEffect: po, useLayoutEffect: Gt, useMemo: Kr, useReducer: en, useRef: gt, useState: be, useSyncExternalStore: fo, useTransition: yo } } }, Lu = "18.3.1";
1478
1480
  function Ca(t) {
1479
1481
  return ht.bind(null, t);
1480
1482
  }
@@ -1488,7 +1490,7 @@ function La(t) {
1488
1490
  return !!t && !!t.displayName && (typeof t.displayName == "string" || t.displayName instanceof String) && t.displayName.startsWith("Memo(");
1489
1491
  }
1490
1492
  function ka(t) {
1491
- return Jr(t) ? yu.apply(null, arguments) : t;
1493
+ return Jr(t) ? hu.apply(null, arguments) : t;
1492
1494
  }
1493
1495
  function Ua(t) {
1494
1496
  return !!t.__k && (ur(null, t), !0);
@@ -1500,8 +1502,8 @@ var Qa = function(t, e) {
1500
1502
  return t(e);
1501
1503
  }, Pa = function(t, e) {
1502
1504
  return t(e);
1503
- }, Ya = Ze, Fa = Jr, Me = { useState: be, useId: No, useReducer: tn, useEffect: tt, useLayoutEffect: Gt, useInsertionEffect: po, useTransition: yo, useDeferredValue: ho, useSyncExternalStore: fo, startTransition: Do, useRef: gt, useImperativeHandle: lo, useMemo: Kr, useCallback: Mo, useContext: wr, useDebugValue: go, version: "18.3.1", Children: Ea, render: xa, hydrate: za, unmountComponentAtNode: Ua, createPortal: _a, createElement: ht, createContext: uo, createFactory: Ca, cloneElement: ka, createRef: la, Fragment: Ze, isValidElement: Jr, isElement: Fa, isFragment: ba, isMemo: La, findDOMNode: Ra, Component: Mt, PureComponent: Qi, memo: Ta, forwardRef: Aa, flushSync: Pa, unstable_batchedUpdates: Qa, StrictMode: Ya, Suspense: Rr, SuspenseList: pr, lazy: Sa, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: va };
1504
- const Uu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1505
+ }, Ya = Ze, Fa = Jr, Me = { useState: be, useId: No, useReducer: en, useEffect: tt, useLayoutEffect: Gt, useInsertionEffect: po, useTransition: yo, useDeferredValue: ho, useSyncExternalStore: fo, startTransition: Do, useRef: gt, useImperativeHandle: lo, useMemo: Kr, useCallback: Mo, useContext: wr, useDebugValue: go, version: "18.3.1", Children: Ea, render: xa, hydrate: za, unmountComponentAtNode: Ua, createPortal: _a, createElement: ht, createContext: uo, createFactory: Ca, cloneElement: ka, createRef: la, Fragment: Ze, isValidElement: Jr, isElement: Fa, isFragment: ba, isMemo: La, findDOMNode: Ra, Component: Mt, PureComponent: Qi, memo: Ta, forwardRef: Aa, flushSync: Pa, unstable_batchedUpdates: Qa, StrictMode: Ya, Suspense: Rr, SuspenseList: pr, lazy: Sa, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: va };
1506
+ const ku = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1505
1507
  __proto__: null,
1506
1508
  Children: Ea,
1507
1509
  Component: Mt,
@@ -1537,20 +1539,20 @@ const Uu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1537
1539
  useDebugValue: go,
1538
1540
  useDeferredValue: ho,
1539
1541
  useEffect: tt,
1540
- useErrorBoundary: pu,
1542
+ useErrorBoundary: yu,
1541
1543
  useId: No,
1542
1544
  useImperativeHandle: lo,
1543
1545
  useInsertionEffect: po,
1544
1546
  useLayoutEffect: Gt,
1545
1547
  useMemo: Kr,
1546
- useReducer: tn,
1548
+ useReducer: en,
1547
1549
  useRef: gt,
1548
1550
  useState: be,
1549
1551
  useSyncExternalStore: fo,
1550
1552
  useTransition: yo,
1551
- version: ku
1552
- }, Symbol.toStringTag, { value: "Module" })), Ru = (t) => t;
1553
- function Qu(t, e = Ru) {
1553
+ version: Lu
1554
+ }, Symbol.toStringTag, { value: "Module" })), Uu = (t) => t;
1555
+ function Ru(t, e = Uu) {
1554
1556
  const r = Me.useSyncExternalStore(
1555
1557
  t.subscribe,
1556
1558
  () => e(t.getState()),
@@ -1559,10 +1561,10 @@ function Qu(t, e = Ru) {
1559
1561
  return Me.useDebugValue(r), r;
1560
1562
  }
1561
1563
  const Ds = (t) => {
1562
- const e = gu(t), r = (i) => Qu(e, i);
1564
+ const e = Mu(t), r = (i) => Ru(e, i);
1563
1565
  return Object.assign(r, e), r;
1564
- }, Pu = (t) => t ? Ds(t) : Ds;
1565
- function Yu(t) {
1566
+ }, Qu = (t) => t ? Ds(t) : Ds;
1567
+ function Pu(t) {
1566
1568
  if (Object.prototype.hasOwnProperty.call(t, "__esModule")) return t;
1567
1569
  var e = t.default;
1568
1570
  if (typeof e == "function") {
@@ -1587,9 +1589,9 @@ function Yu(t) {
1587
1589
  }), r;
1588
1590
  }
1589
1591
  var Y = {};
1590
- const Fu = /* @__PURE__ */ Yu(Uu);
1591
- var vr = { exports: {} }, Vu = vr.exports, hs;
1592
- function Bu() {
1592
+ const Yu = /* @__PURE__ */ Pu(ku);
1593
+ var vr = { exports: {} }, Fu = vr.exports, hs;
1594
+ function Vu() {
1593
1595
  return hs || (hs = 1, (function(t, e) {
1594
1596
  (function(r, i) {
1595
1597
  var n = "1.0.41", o = "", s = "?", a = "function", c = "undefined", l = "object", I = "string", d = "major", u = "model", f = "name", D = "type", M = "vendor", g = "version", E = "architecture", A = "console", p = "mobile", S = "tablet", k = "smarttv", v = "wearable", x = "embedded", ae = 500, B = "Amazon", J = "Apple", V = "ASUS", F = "BlackBerry", Z = "Browser", de = "Chrome", le = "Edge", he = "Firefox", ye = "Google", re = "Honor", H = "Huawei", U = "Lenovo", X = "LG", ie = "Microsoft", Ee = "Motorola", ne = "Nvidia", P = "OnePlus", te = "Opera", Ye = "OPPO", Ve = "Samsung", nt = "Sharp", Xe = "Sony", Tt = "Xiaomi", ot = "Zebra", Ft = "Facebook", At = "Chromium OS", Nt = "Mac OS", Et = " Browser", Vt = function(q, ce) {
@@ -1668,17 +1670,17 @@ function Bu() {
1668
1670
  De.ua[$] = ce[$];
1669
1671
  };
1670
1672
  }
1671
- })(typeof window == "object" ? window : Vu);
1673
+ })(typeof window == "object" ? window : Fu);
1672
1674
  })(vr, vr.exports)), vr.exports;
1673
1675
  }
1674
1676
  var ys;
1675
- function Wu() {
1677
+ function Bu() {
1676
1678
  if (ys) return Y;
1677
1679
  ys = 1, Object.defineProperty(Y, "__esModule", { value: !0 });
1678
1680
  function t(m) {
1679
1681
  return m && typeof m == "object" && "default" in m ? m.default : m;
1680
1682
  }
1681
- var e = Fu, r = t(e), i = Bu(), n = new i(), o = n.getBrowser(), s = n.getCPU(), a = n.getDevice(), c = n.getEngine(), l = n.getOS(), I = n.getUA(), d = function(N) {
1683
+ var e = Yu, r = t(e), i = Vu(), n = new i(), o = n.getBrowser(), s = n.getCPU(), a = n.getDevice(), c = n.getEngine(), l = n.getOS(), I = n.getUA(), d = function(N) {
1682
1684
  return n.setUA(N);
1683
1685
  }, u = function(N) {
1684
1686
  if (!N) {
@@ -1999,14 +2001,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1999
2001
  };
2000
2002
  };
2001
2003
  function At(m) {
2002
- var N = m ? u(m) : f, h = N.device, _ = N.browser, z = N.engine, Ie = N.os, Oe = N.ua, Ge = Ee(h.type), wi = Ge.isBrowser, zc = Ge.isMobile, vc = Ge.isTablet, bo = Ge.isSmartTV, Lo = Ge.isConsole, ko = Ge.isWearable, Uo = Ge.isEmbedded;
2004
+ var N = m ? u(m) : f, h = N.device, _ = N.browser, z = N.engine, Ie = N.os, Oe = N.ua, Ge = Ee(h.type), wi = Ge.isBrowser, xc = Ge.isMobile, zc = Ge.isTablet, bo = Ge.isSmartTV, Lo = Ge.isConsole, ko = Ge.isWearable, Uo = Ge.isEmbedded;
2003
2005
  if (wi)
2004
2006
  return Ve(wi, _, z, Ie, Oe);
2005
2007
  if (bo)
2006
2008
  return Xe(bo, z, Ie, Oe);
2007
2009
  if (Lo)
2008
2010
  return Tt(Lo, z, Ie, Oe);
2009
- if (zc || vc)
2011
+ if (xc || zc)
2010
2012
  return nt(Ge, h, Ie, Oe);
2011
2013
  if (ko)
2012
2014
  return ot(ko, z, Ie, Oe);
@@ -2180,7 +2182,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2180
2182
  isSamsungBrowser: ti(_)
2181
2183
  };
2182
2184
  }
2183
- var gi = It(a), Ni = w(a), Ii = y(a), sn = O(a), an = Be(o) || it(), cn = Fe(o), Nr = Vt(a) || it(), fi = Nt(a), Di = Et(a) || it(), hi = rt(a), un = rt(a), yi = W(l), pi = De(l), Ti = Le(l) || it(), ln = $(o), dn = fe(o), Mn = K(o), gn = Bt(o), Ai = Jt(o), Nn = q(l), In = ce(l), fn = ri(o), Dn = ii(o), hn = ni(o), yn = Q(a), pn = C(a), Tn = oi(c), An = si(c), En = di(I), ft = _e(o) || Wt(I), mn = Ne(o), se = b(a), st = ci(), Ir = it(), Ei = ui(), mi = li(), ji = ai(), uc = Wt(I), lc = _e(o) && !Wt(I), dc = oe(l), Mc = G(l), gc = ei(o), Nc = ti(o), Ic = function(N) {
2185
+ var gi = It(a), Ni = w(a), Ii = y(a), sn = O(a), an = Be(o) || it(), cn = Fe(o), Nr = Vt(a) || it(), fi = Nt(a), Di = Et(a) || it(), hi = rt(a), un = rt(a), yi = W(l), pi = De(l), Ti = Le(l) || it(), ln = $(o), dn = fe(o), Mn = K(o), gn = Bt(o), Ai = Jt(o), Nn = q(l), In = ce(l), fn = ri(o), Dn = ii(o), hn = ni(o), yn = Q(a), pn = C(a), Tn = oi(c), An = si(c), En = di(I), ft = _e(o) || Wt(I), mn = Ne(o), se = b(a), st = ci(), Ir = it(), Ei = ui(), mi = li(), ji = ai(), cc = Wt(I), uc = _e(o) && !Wt(I), lc = oe(l), dc = G(l), Mc = ei(o), gc = ti(o), Nc = function(N) {
2184
2186
  if (!N || typeof N != "string") {
2185
2187
  console.error("No valid user agent string was provided");
2186
2188
  return;
@@ -2193,48 +2195,48 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2193
2195
  engine: Oe,
2194
2196
  ua: Ge
2195
2197
  });
2196
- }, fc = function(N) {
2198
+ }, Ic = function(N) {
2197
2199
  var h = N.renderWithFragment, _ = N.children, z = J(N, ["renderWithFragment", "children"]);
2198
2200
  return yi ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", z, _) : null;
2199
- }, Dc = function(N) {
2201
+ }, fc = function(N) {
2200
2202
  var h = N.renderWithFragment, _ = N.children, z = J(N, ["renderWithFragment", "children"]);
2201
2203
  return hi ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", z, _) : null;
2202
- }, hc = function(N) {
2204
+ }, Dc = function(N) {
2203
2205
  var h = N.renderWithFragment, _ = N.children, z = J(N, ["renderWithFragment", "children"]);
2204
2206
  return Ai ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", z, _) : null;
2205
- }, yc = function(N) {
2207
+ }, hc = function(N) {
2206
2208
  var h = N.renderWithFragment, _ = N.children, z = J(N, ["renderWithFragment", "children"]);
2207
2209
  return Ti ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", z, _) : null;
2208
- }, pc = function(N) {
2210
+ }, yc = function(N) {
2209
2211
  var h = N.renderWithFragment, _ = N.children, z = J(N, ["renderWithFragment", "children"]);
2210
2212
  return Nr ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", z, _) : null;
2211
- }, Tc = function(N) {
2213
+ }, pc = function(N) {
2212
2214
  var h = N.renderWithFragment, _ = N.children, z = J(N, ["renderWithFragment", "children"]);
2213
2215
  return Di ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", z, _) : null;
2214
- }, Ac = function(N) {
2216
+ }, Tc = function(N) {
2215
2217
  var h = N.renderWithFragment, _ = N.children, z = J(N, ["renderWithFragment", "children"]);
2216
2218
  return pi ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", z, _) : null;
2217
- }, Ec = function(N) {
2219
+ }, Ac = function(N) {
2218
2220
  var h = N.renderWithFragment, _ = N.children;
2219
2221
  N.viewClassName, N.style;
2220
2222
  var z = J(N, ["renderWithFragment", "children", "viewClassName", "style"]);
2221
2223
  return fi ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", z, _) : null;
2222
- }, mc = function(N) {
2224
+ }, Ec = function(N) {
2223
2225
  var h = N.renderWithFragment, _ = N.children, z = J(N, ["renderWithFragment", "children"]);
2224
2226
  return gi ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", z, _) : null;
2225
- }, jc = function(N) {
2227
+ }, mc = function(N) {
2226
2228
  var h = N.renderWithFragment, _ = N.children, z = J(N, ["renderWithFragment", "children"]);
2227
2229
  return Ni ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", z, _) : null;
2228
- }, wc = function(N) {
2230
+ }, jc = function(N) {
2229
2231
  var h = N.renderWithFragment, _ = N.children, z = J(N, ["renderWithFragment", "children"]);
2230
2232
  return Ii ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", z, _) : null;
2231
- }, Sc = function(N) {
2233
+ }, wc = function(N) {
2232
2234
  var h = N.renderWithFragment, _ = N.children;
2233
2235
  N.viewClassName, N.style;
2234
2236
  var z = N.condition, Ie = J(N, ["renderWithFragment", "children", "viewClassName", "style", "condition"]);
2235
2237
  return z ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", Ie, _) : null;
2236
2238
  };
2237
- function _c(m) {
2239
+ function Sc(m) {
2238
2240
  return /* @__PURE__ */ (function(N) {
2239
2241
  v(h, N);
2240
2242
  function h(_) {
@@ -2285,7 +2287,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2285
2287
  }]), h;
2286
2288
  })(r.Component);
2287
2289
  }
2288
- function Oc() {
2290
+ function _c() {
2289
2291
  var m = e.useState(function() {
2290
2292
  var Ie = window.innerWidth > window.innerHeight ? 90 : 0;
2291
2293
  return {
@@ -2311,14 +2313,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2311
2313
  var N = m || window.navigator.userAgent;
2312
2314
  return u(N);
2313
2315
  }
2314
- function xc(m) {
2316
+ function Oc(m) {
2315
2317
  var N = m || window.navigator.userAgent, h = Co(N), _ = Mi(h);
2316
2318
  return [_, h];
2317
2319
  }
2318
- return Y.AndroidView = fc, Y.BrowserTypes = U, Y.BrowserView = Dc, Y.ConsoleView = jc, Y.CustomView = Sc, Y.IEView = hc, Y.IOSView = yc, Y.MobileOnlyView = Ec, Y.MobileView = pc, Y.OsTypes = X, Y.SmartTVView = mc, Y.TabletView = Tc, Y.WearableView = wc, Y.WinPhoneView = Ac, Y.browserName = hn, Y.browserVersion = Dn, Y.deviceDetect = At, Y.deviceType = se, Y.engineName = Tn, Y.engineVersion = An, Y.fullBrowserVersion = fn, Y.getSelectorsByUserAgent = Ic, Y.getUA = En, Y.isAndroid = yi, Y.isBrowser = hi, Y.isChrome = ln, Y.isChromium = cn, Y.isConsole = Ni, Y.isDesktop = un, Y.isEdge = ft, Y.isEdgeChromium = uc, Y.isElectron = ji, Y.isEmbedded = sn, Y.isFirefox = dn, Y.isIE = Ai, Y.isIOS = Ti, Y.isIOS13 = st, Y.isIPad13 = Ir, Y.isIPhone13 = Ei, Y.isIPod13 = mi, Y.isLegacyEdge = lc, Y.isMIUI = gc, Y.isMacOs = Mc, Y.isMobile = Nr, Y.isMobileOnly = fi, Y.isMobileSafari = an, Y.isOpera = gn, Y.isSafari = Mn, Y.isSamsungBrowser = Nc, Y.isSmartTV = gi, Y.isTablet = Di, Y.isWearable = Ii, Y.isWinPhone = pi, Y.isWindows = dc, Y.isYandex = mn, Y.mobileModel = pn, Y.mobileVendor = yn, Y.osName = In, Y.osVersion = Nn, Y.parseUserAgent = u, Y.setUserAgent = ne, Y.useDeviceData = Co, Y.useDeviceSelectors = xc, Y.useMobileOrientation = Oc, Y.withOrientationChange = _c, Y;
2320
+ return Y.AndroidView = Ic, Y.BrowserTypes = U, Y.BrowserView = fc, Y.ConsoleView = mc, Y.CustomView = wc, Y.IEView = Dc, Y.IOSView = hc, Y.MobileOnlyView = Ac, Y.MobileView = yc, Y.OsTypes = X, Y.SmartTVView = Ec, Y.TabletView = pc, Y.WearableView = jc, Y.WinPhoneView = Tc, Y.browserName = hn, Y.browserVersion = Dn, Y.deviceDetect = At, Y.deviceType = se, Y.engineName = Tn, Y.engineVersion = An, Y.fullBrowserVersion = fn, Y.getSelectorsByUserAgent = Nc, Y.getUA = En, Y.isAndroid = yi, Y.isBrowser = hi, Y.isChrome = ln, Y.isChromium = cn, Y.isConsole = Ni, Y.isDesktop = un, Y.isEdge = ft, Y.isEdgeChromium = cc, Y.isElectron = ji, Y.isEmbedded = sn, Y.isFirefox = dn, Y.isIE = Ai, Y.isIOS = Ti, Y.isIOS13 = st, Y.isIPad13 = Ir, Y.isIPhone13 = Ei, Y.isIPod13 = mi, Y.isLegacyEdge = uc, Y.isMIUI = Mc, Y.isMacOs = dc, Y.isMobile = Nr, Y.isMobileOnly = fi, Y.isMobileSafari = an, Y.isOpera = gn, Y.isSafari = Mn, Y.isSamsungBrowser = gc, Y.isSmartTV = gi, Y.isTablet = Di, Y.isWearable = Ii, Y.isWinPhone = pi, Y.isWindows = lc, Y.isYandex = mn, Y.mobileModel = pn, Y.mobileVendor = yn, Y.osName = In, Y.osVersion = Nn, Y.parseUserAgent = u, Y.setUserAgent = ne, Y.useDeviceData = Co, Y.useDeviceSelectors = Oc, Y.useMobileOrientation = _c, Y.withOrientationChange = Sc, Y;
2319
2321
  }
2320
- var Je = Wu();
2321
- const $u = (t, e) => Ao(t, e), Ao = (t, e) => {
2322
+ var Je = Bu();
2323
+ const Wu = (t, e) => Ao(t, e), Ao = (t, e) => {
2322
2324
  const r = Kn(t, e);
2323
2325
  for (const i in r)
2324
2326
  if (Object.prototype.hasOwnProperty.call(r, i)) {
@@ -2334,12 +2336,12 @@ const $u = (t, e) => Ao(t, e), Ao = (t, e) => {
2334
2336
  }
2335
2337
  return r;
2336
2338
  }, Kn = (t, e) => {
2337
- const r = Hu(t), i = t.layout;
2339
+ const r = $u(t), i = t.layout;
2338
2340
  if (!i || i.length === 0) return r;
2339
2341
  let n = null;
2340
2342
  if (i.forEach((o) => {
2341
2343
  const s = e[o];
2342
- n ? s && Zu(s, n) : n = s;
2344
+ n ? s && Hu(s, n) : n = s;
2343
2345
  }), n) {
2344
2346
  const o = Kn(n, e);
2345
2347
  for (const s in o)
@@ -2349,41 +2351,41 @@ const $u = (t, e) => Ao(t, e), Ao = (t, e) => {
2349
2351
  }
2350
2352
  }
2351
2353
  return Ao(r, e);
2352
- }, Hu = (t) => {
2354
+ }, $u = (t) => {
2353
2355
  const e = {};
2354
2356
  for (const r in t)
2355
2357
  Object.prototype.hasOwnProperty.call(t, r) && r.toLowerCase() !== "layout" && (e[r] = t[r]);
2356
2358
  return e;
2357
- }, Zu = (t, e) => {
2359
+ }, Hu = (t, e) => {
2358
2360
  for (const r in t)
2359
2361
  Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
2360
2362
  }, ke = [];
2361
2363
  for (let t = 0; t < 256; ++t)
2362
2364
  ke.push((t + 256).toString(16).slice(1));
2363
- function Gu(t, e = 0) {
2365
+ function Zu(t, e = 0) {
2364
2366
  return (ke[t[e + 0]] + ke[t[e + 1]] + ke[t[e + 2]] + ke[t[e + 3]] + "-" + ke[t[e + 4]] + ke[t[e + 5]] + "-" + ke[t[e + 6]] + ke[t[e + 7]] + "-" + ke[t[e + 8]] + ke[t[e + 9]] + "-" + ke[t[e + 10]] + ke[t[e + 11]] + ke[t[e + 12]] + ke[t[e + 13]] + ke[t[e + 14]] + ke[t[e + 15]]).toLowerCase();
2365
2367
  }
2366
2368
  let vn;
2367
- const Ku = new Uint8Array(16);
2368
- function Ju() {
2369
+ const Gu = new Uint8Array(16);
2370
+ function Ku() {
2369
2371
  if (!vn) {
2370
2372
  if (typeof crypto == "undefined" || !crypto.getRandomValues)
2371
2373
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
2372
2374
  vn = crypto.getRandomValues.bind(crypto);
2373
2375
  }
2374
- return vn(Ku);
2376
+ return vn(Gu);
2375
2377
  }
2376
- const Xu = typeof crypto != "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ps = { randomUUID: Xu };
2377
- function qu(t, e, r) {
2378
+ const Ju = typeof crypto != "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ps = { randomUUID: Ju };
2379
+ function Xu(t, e, r) {
2378
2380
  var n, o, s;
2379
2381
  t = t || {};
2380
- const i = (s = (o = t.random) != null ? o : (n = t.rng) == null ? void 0 : n.call(t)) != null ? s : Ju();
2382
+ const i = (s = (o = t.random) != null ? o : (n = t.rng) == null ? void 0 : n.call(t)) != null ? s : Ku();
2381
2383
  if (i.length < 16)
2382
2384
  throw new Error("Random bytes length must be >= 16");
2383
- return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, Gu(i);
2385
+ return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, Zu(i);
2384
2386
  }
2385
- function el(t, e, r) {
2386
- return ps.randomUUID && !t ? ps.randomUUID() : qu(t);
2387
+ function qu(t, e, r) {
2388
+ return ps.randomUUID && !t ? ps.randomUUID() : Xu(t);
2387
2389
  }
2388
2390
  function Eo(t) {
2389
2391
  try {
@@ -2395,36 +2397,36 @@ function Eo(t) {
2395
2397
  const Ts = (t, e) => {
2396
2398
  if (!t || !e) return null;
2397
2399
  let r = null;
2398
- return r = Eo(t), r && (r = $u(r, e)), r;
2400
+ return r = Eo(t), r && (r = Wu(r, e)), r;
2399
2401
  };
2400
- function tl(t) {
2402
+ function el(t) {
2401
2403
  return L(this, null, function* () {
2402
2404
  return new Promise((e) => setTimeout(e, t));
2403
2405
  });
2404
2406
  }
2405
- function rl(n, o) {
2406
- return L(this, arguments, function* (t, e, r = uu, i = lu) {
2407
+ function tl(n, o) {
2408
+ return L(this, arguments, function* (t, e, r = cu, i = uu) {
2407
2409
  let s = 0;
2408
2410
  for (; s < r; ) {
2409
2411
  const a = yield t();
2410
2412
  if (a !== null)
2411
2413
  return a;
2412
- s++, s < r && (yield tl(i));
2414
+ s++, s < r && (yield el(i));
2413
2415
  }
2414
2416
  return e();
2415
2417
  });
2416
2418
  }
2417
- const il = (t, e, r) => {
2419
+ const rl = (t, e, r) => {
2418
2420
  const i = t.reduce((o, s) => (o.push(...s.supportedTemplates), o), []), n = e.find((o) => o.id === r);
2419
2421
  return i.includes(n == null ? void 0 : n.client.templateId);
2420
- }, nl = (t, e) => {
2422
+ }, il = (t, e) => {
2421
2423
  if (!t || !e) return !1;
2422
2424
  const r = t.find((n) => n.id === e);
2423
2425
  return (r == null ? void 0 : r.type) !== "PROCESSING";
2424
- }, ol = (t, e) => {
2426
+ }, nl = (t, e) => {
2425
2427
  const r = t.reduce((s, a) => (s.push(...a.supportedTemplates), s), []), i = Array.from(
2426
2428
  new Set(
2427
- e.filter((s) => !s.releaseClientApp && cu.includes(s.type)).map((s) => s.client.templateId)
2429
+ e.filter((s) => !s.releaseClientApp && au.includes(s.type)).map((s) => s.client.templateId)
2428
2430
  )
2429
2431
  );
2430
2432
  function n(s, a) {
@@ -2515,10 +2517,10 @@ const il = (t, e, r) => {
2515
2517
  return !1;
2516
2518
  }
2517
2519
  }
2518
- }, sl = (t) => {
2520
+ }, ol = (t) => {
2519
2521
  var i;
2520
2522
  let e;
2521
- const r = el();
2523
+ const r = qu();
2522
2524
  try {
2523
2525
  e = (i = window.localStorage.getItem(t)) != null ? i : r, window.localStorage.setItem(t, e);
2524
2526
  } catch (n) {
@@ -2526,22 +2528,22 @@ const il = (t, e, r) => {
2526
2528
  }
2527
2529
  return e;
2528
2530
  };
2529
- function al(t) {
2531
+ function sl(t) {
2530
2532
  return Object.prototype.toString.call(t) === "[object Object]" && Object.keys(t).length > 0;
2531
2533
  }
2532
- function cl(t) {
2534
+ function al(t) {
2533
2535
  return typeof t == "object" && t !== null && !Array.isArray(t) && Object.getPrototypeOf(t) === Object.prototype;
2534
2536
  }
2535
- function ul() {
2537
+ function cl() {
2536
2538
  return typeof document == "undefined" ? null : document.documentElement.getAttribute("lang") || null;
2537
2539
  }
2538
- function ll() {
2540
+ function ul() {
2539
2541
  return typeof navigator != "undefined" ? navigator.language : null;
2540
2542
  }
2541
- const dl = (t) => {
2542
- const e = Mu, r = typeof t == "string" ? t : null, i = ul(), n = ll();
2543
+ const ll = (t) => {
2544
+ const e = du, r = typeof t == "string" ? t : null, i = cl(), n = ul();
2543
2545
  return r || i || n || e;
2544
- }, Ml = (t) => {
2546
+ }, dl = (t) => {
2545
2547
  try {
2546
2548
  return new URL(t).searchParams.get("sessionId");
2547
2549
  } catch (e) {
@@ -2573,8 +2575,8 @@ const Es = () => {
2573
2575
  } catch (t) {
2574
2576
  return window.location.origin;
2575
2577
  }
2576
- }, gl = (t) => {
2577
- const e = sl(du);
2578
+ }, Ml = (t) => {
2579
+ const e = ol(lu);
2578
2580
  return {
2579
2581
  deviceId: e,
2580
2582
  metadata: {
@@ -2582,7 +2584,7 @@ const Es = () => {
2582
2584
  osVersion: `${Je.osVersion}`,
2583
2585
  hostAppId: Es(),
2584
2586
  host: Es(),
2585
- sdkVersion: "3.2.283".trim(),
2587
+ sdkVersion: "3.2.284-nightly".trim(),
2586
2588
  name: navigator.userAgent,
2587
2589
  deviceModel: `${Je.osName}/${Je.osVersion} ${Je.browserName}/${Je.fullBrowserVersion}`,
2588
2590
  hostAppVersion: `${Je.browserName}/${Je.fullBrowserVersion}`,
@@ -2594,7 +2596,7 @@ const Es = () => {
2594
2596
  macAddress: ""
2595
2597
  };
2596
2598
  };
2597
- function Nl() {
2599
+ function gl() {
2598
2600
  return L(this, null, function* () {
2599
2601
  if (typeof navigator == "undefined" || !("geolocation" in navigator)) return null;
2600
2602
  try {
@@ -2636,7 +2638,7 @@ const ms = {
2636
2638
  trackLocation: !1,
2637
2639
  listener: () => {
2638
2640
  }
2639
- }, Il = (t, e) => ee(j({}, ms), {
2641
+ }, Nl = (t, e) => ee(j({}, ms), {
2640
2642
  setApiKeyAuthTokenCollection: (r, i, n) => {
2641
2643
  t({ apiKeyAuthTokenCollection: {
2642
2644
  authToken: i,
@@ -2746,9 +2748,9 @@ class Ae {
2746
2748
  return this.underlyingBaseError instanceof Ae && (e += `-${this.underlyingBaseError.fullChain}`), e;
2747
2749
  }
2748
2750
  }
2749
- class fl extends HTMLElement {
2751
+ class Il extends HTMLElement {
2750
2752
  }
2751
- function Dl(t, e) {
2753
+ function fl(t, e) {
2752
2754
  if (e.displayName ? console.log(`Register module: ${e.displayName}`) : console.error('Missed "displayName" when register module'), e.getSupportedTemplates && typeof e.getSupportedTemplates == "function") {
2753
2755
  const r = e.getSupportedTemplates();
2754
2756
  console.log(`${e == null ? void 0 : e.displayName} supported templates: ${r.join(", ")}`);
@@ -2761,7 +2763,7 @@ function Dl(t, e) {
2761
2763
  console.error('Missed "getIdentifier" when register module');
2762
2764
  customElements.get(e.getIdentifier()) ? console.log(`Module ${t} has already registered`) : customElements.define(t, e), console.log("-------");
2763
2765
  }
2764
- const Pi = {
2766
+ const tn = {
2765
2767
  FORM: "form",
2766
2768
  DATA: "data"
2767
2769
  }, _t = class _t extends Ae {
@@ -2771,7 +2773,7 @@ const Pi = {
2771
2773
  underlyingError: i,
2772
2774
  underlyingBaseError: n
2773
2775
  }) {
2774
- const o = Ae.getErrorKey(e, en);
2776
+ const o = Ae.getErrorKey(e, qi);
2775
2777
  super({
2776
2778
  errorCode: e,
2777
2779
  errorCodeKey: o,
@@ -2786,7 +2788,7 @@ const Pi = {
2786
2788
  }
2787
2789
  };
2788
2790
  _t.MODULE = pt, _t.ERROR_ENUM_NAME = "InitializeError", _t.SHORT_CODE = "IN";
2789
- let Yi = _t;
2791
+ let Pi = _t;
2790
2792
  const Ot = class Ot extends Ae {
2791
2793
  constructor({
2792
2794
  errorCode: e,
@@ -2809,7 +2811,7 @@ const Ot = class Ot extends Ae {
2809
2811
  }
2810
2812
  };
2811
2813
  Ot.MODULE = pt, Ot.ERROR_ENUM_NAME = "TokenInitializeError", Ot.SHORT_CODE = "TI";
2812
- let Fi = Ot;
2814
+ let Yi = Ot;
2813
2815
  const xt = class xt extends Ae {
2814
2816
  constructor({
2815
2817
  errorCode: e,
@@ -2970,7 +2972,7 @@ const kt = class kt extends Ae {
2970
2972
  }
2971
2973
  };
2972
2974
  kt.MODULE = pt, kt.ERROR_ENUM_NAME = "DeinitializationError", kt.SHORT_CODE = "DE";
2973
- let Vi = kt;
2975
+ let Fi = kt;
2974
2976
  const Ut = class Ut extends Ae {
2975
2977
  constructor({
2976
2978
  errorCode: e,
@@ -2993,7 +2995,7 @@ const Ut = class Ut extends Ae {
2993
2995
  }
2994
2996
  };
2995
2997
  Ut.MODULE = pt, Ut.ERROR_ENUM_NAME = "WorkflowPlatformError", Ut.SHORT_CODE = "WPE";
2996
- let Bi = Ut;
2998
+ let Vi = Ut;
2997
2999
  class Tr {
2998
3000
  constructor() {
2999
3001
  this.webSocket = null, this.callbacks = /* @__PURE__ */ new Set(), this.connected = !1;
@@ -3033,16 +3035,16 @@ class Tr {
3033
3035
  }
3034
3036
  }
3035
3037
  const ut = Tr.getInstance();
3036
- var hl = 0;
3038
+ var Dl = 0;
3037
3039
  function T(t, e, r, i, n, o) {
3038
3040
  e || (e = {});
3039
3041
  var s, a, c = e;
3040
3042
  if ("ref" in c) for (a in c = {}, e) a == "ref" ? s = e[a] : c[a] = e[a];
3041
- var l = { type: t, props: c, key: r, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --hl, __i: -1, __u: 0, __source: n, __self: o };
3043
+ var l = { type: t, props: c, key: r, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Dl, __i: -1, __u: 0, __source: n, __self: o };
3042
3044
  if (typeof t == "function" && (s = t.defaultProps)) for (a in s) c[a] === void 0 && (c[a] = s[a]);
3043
3045
  return ue.vnode && ue.vnode(l), l;
3044
3046
  }
3045
- const rn = uo(void 0), js = ({ perform: t, children: e, setIsProcessingCallback: r, devSettings: i }) => /* @__PURE__ */ T(rn.Provider, { value: { perform: t, setIsProcessingCallback: r, devSettings: i }, children: e }), yl = () => {
3047
+ const rn = uo(void 0), js = ({ perform: t, children: e, setIsProcessingCallback: r, devSettings: i }) => /* @__PURE__ */ T(rn.Provider, { value: { perform: t, setIsProcessingCallback: r, devSettings: i }, children: e }), hl = () => {
3046
3048
  const t = wr(rn);
3047
3049
  if (!t)
3048
3050
  throw new Error("useDevSettings must be used within a Context Provider");
@@ -3052,12 +3054,12 @@ const rn = uo(void 0), js = ({ perform: t, children: e, setIsProcessingCallback:
3052
3054
  if (!t)
3053
3055
  throw new Error("usePerform must be used within a PerformProvider");
3054
3056
  return { perform: t.perform };
3055
- }, pl = () => {
3057
+ }, yl = () => {
3056
3058
  const t = wr(rn);
3057
3059
  if (!t)
3058
3060
  throw new Error("useSetIsProcessingCallback must be used within a Context Provider");
3059
3061
  return { setIsProcessingCallback: t.setIsProcessingCallback };
3060
- }, Tl = {
3062
+ }, pl = {
3061
3063
  width: "86px",
3062
3064
  height: "86px",
3063
3065
  flex: "0 0 86px",
@@ -3075,7 +3077,7 @@ const rn = uo(void 0), js = ({ perform: t, children: e, setIsProcessingCallback:
3075
3077
  CAMERA: "CAMERA",
3076
3078
  GALLERY: "GALLERY",
3077
3079
  GEOLOCATION: "GEOLOCATION"
3078
- }, Wi = {
3080
+ }, Bi = {
3079
3081
  LEFT: "LEFT",
3080
3082
  CENTER: "CENTER",
3081
3083
  RIGHT: "RIGHT"
@@ -3095,7 +3097,7 @@ const rn = uo(void 0), js = ({ perform: t, children: e, setIsProcessingCallback:
3095
3097
  EMAIL: "EMAIL",
3096
3098
  NUMBER: "NUMBER",
3097
3099
  SECURE: "SECURE"
3098
- }, Al = ({ dataUrl: t }) => {
3100
+ }, Tl = ({ dataUrl: t }) => {
3099
3101
  const e = gt(null), r = 360 / 1e3;
3100
3102
  return tt(() => {
3101
3103
  if (!e.current) return;
@@ -3173,8 +3175,8 @@ const rn = uo(void 0), js = ({ perform: t, children: e, setIsProcessingCallback:
3173
3175
  [pe.DEFAULT]: () => ""
3174
3176
  }, Va = ({ type: t, color: e }) => {
3175
3177
  const r = Jn[t] || Jn[pe.DEFAULT], i = r == null ? void 0 : r(e);
3176
- return t === pe.SPINNER ? /* @__PURE__ */ T(Al, { dataUrl: i }) : /* @__PURE__ */ T("img", { src: i, style: { width: "auto", height: "auto", maxWidth: "100%", maxHeight: "100%" } });
3177
- }, Xr = "#005fcc", $i = "idv-gui", Hi = {
3178
+ return t === pe.SPINNER ? /* @__PURE__ */ T(Tl, { dataUrl: i }) : /* @__PURE__ */ T("img", { src: i, style: { width: "auto", height: "auto", maxWidth: "100%", maxHeight: "100%" } });
3179
+ }, Xr = "#005fcc", Wi = "idv-gui", $i = {
3178
3180
  DECODING_FAILED: "DECODING_FAILED"
3179
3181
  }, Un = {
3180
3182
  text: "text",
@@ -3183,11 +3185,11 @@ const rn = uo(void 0), js = ({ perform: t, children: e, setIsProcessingCallback:
3183
3185
  }, ws = {
3184
3186
  NOT_EMPTY: "notEmpty",
3185
3187
  REGEX: "regex"
3186
- }, El = {
3188
+ }, Al = {
3187
3189
  SYSTEM_RESTRICTED: "system_restricted"
3188
3190
  };
3189
3191
  function Ba(t) {
3190
- return t === Wi.CENTER ? "center" : t === Wi.RIGHT ? "right" : "left";
3192
+ return t === Bi.CENTER ? "center" : t === Bi.RIGHT ? "right" : "left";
3191
3193
  }
3192
3194
  function mo(t) {
3193
3195
  if (typeof t == "object" && t !== null)
@@ -3195,17 +3197,17 @@ function mo(t) {
3195
3197
  typeof t[e] == "object" ? mo(t[e]) : t[e] === "true" ? t[e] = !0 : t[e] === "false" && (t[e] = !1);
3196
3198
  return t;
3197
3199
  }
3198
- function ml(t) {
3200
+ function El(t) {
3199
3201
  return Object.entries(t).map(([e, r]) => ({
3200
3202
  id: e,
3201
3203
  value: typeof r == "string" ? r.trim() : r
3202
3204
  })).filter((e) => !!e.value);
3203
3205
  }
3204
- const jl = (t) => Array.isArray(t) ? t.length === 0 : t === 0 ? !1 : !t;
3206
+ const ml = (t) => Array.isArray(t) ? t.length === 0 : t === 0 ? !1 : !t;
3205
3207
  function ge(t) {
3206
3208
  return t && /^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t) ? t : void 0;
3207
3209
  }
3208
- const wl = (t, e) => t.reduce((r, i) => {
3210
+ const jl = (t, e) => t.reduce((r, i) => {
3209
3211
  var n, o, s;
3210
3212
  if (i.answerType === Un.text && (n = i.property) != null && n.id) {
3211
3213
  const a = e.find((c) => c.name === i.property.id);
@@ -3233,13 +3235,13 @@ const wl = (t, e) => t.reduce((r, i) => {
3233
3235
  } else
3234
3236
  r(new Error("Unexpected result type"));
3235
3237
  }, i.onerror = () => r(i.error), i.readAsDataURL(t);
3236
- }), Sl = () => L(null, null, function* () {
3238
+ }), wl = () => L(null, null, function* () {
3237
3239
  try {
3238
3240
  return (yield navigator.mediaDevices.getUserMedia({ video: !0 })).getTracks().forEach((e) => e.stop()), "allowed";
3239
3241
  } catch (t) {
3240
3242
  return (t == null ? void 0 : t.name) === "NotAllowedError" ? "denied" : "error";
3241
3243
  }
3242
- }), _l = () => String.fromCharCode(Math.floor(Math.random() * 26) + 97) + Number(Math.random()).toString(16).slice(2) + Date.now().toString(16).slice(4), $a = (t) => (t == null ? void 0 : t.some((r) => r.type === "FORM")) ? Pi.FORM : Pi.DATA, Pe = ({
3244
+ }), Sl = () => String.fromCharCode(Math.floor(Math.random() * 26) + 97) + Number(Math.random()).toString(16).slice(2) + Date.now().toString(16).slice(4), Pe = ({
3243
3245
  imageId: t,
3244
3246
  imageURL: e,
3245
3247
  base64: r,
@@ -3306,7 +3308,7 @@ const wl = (t, e) => t.reduce((r, i) => {
3306
3308
  }
3307
3309
  )
3308
3310
  ] });
3309
- }, Ol = ({ signature: t }) => /* @__PURE__ */ T(
3311
+ }, _l = ({ signature: t }) => /* @__PURE__ */ T(
3310
3312
  "footer",
3311
3313
  {
3312
3314
  "data-ui": "gui-footer",
@@ -3321,7 +3323,7 @@ const wl = (t, e) => t.reduce((r, i) => {
3321
3323
  },
3322
3324
  children: /* @__PURE__ */ T("a", { href: "", children: /* @__PURE__ */ T(Pe, j({}, t)) })
3323
3325
  }
3324
- ), xl = {
3326
+ ), Ol = {
3325
3327
  display: "flex",
3326
3328
  justifyContent: "center",
3327
3329
  alignItems: "center",
@@ -3330,7 +3332,7 @@ const wl = (t, e) => t.reduce((r, i) => {
3330
3332
  minWidth: "36px",
3331
3333
  border: "none",
3332
3334
  cursor: "pointer"
3333
- }, zl = ({
3335
+ }, xl = ({
3334
3336
  dataTestId: t,
3335
3337
  responseBody: e,
3336
3338
  image: r,
@@ -3349,10 +3351,10 @@ const wl = (t, e) => t.reduce((r, i) => {
3349
3351
  "data-test": t,
3350
3352
  onClick: () => {
3351
3353
  const f = JSON.parse(JSON.stringify(e));
3352
- mo(f), I(f, Pi.DATA);
3354
+ mo(f), I(f, tn.DATA);
3353
3355
  },
3354
3356
  className: "hover-button",
3355
- style: ee(j(j({}, xl), o && { borderRadius: o }), {
3357
+ style: ee(j(j({}, Ol), o && { borderRadius: o }), {
3356
3358
  backgroundColor: (u = ge(l)) != null ? u : "transparent"
3357
3359
  }),
3358
3360
  onMouseEnter: () => c(!0),
@@ -3375,7 +3377,7 @@ const wl = (t, e) => t.reduce((r, i) => {
3375
3377
  ]
3376
3378
  }
3377
3379
  );
3378
- }, vl = ({ closeButton: t }) => /* @__PURE__ */ T(
3380
+ }, zl = ({ closeButton: t }) => /* @__PURE__ */ T(
3379
3381
  "header",
3380
3382
  {
3381
3383
  style: {
@@ -3388,10 +3390,10 @@ const wl = (t, e) => t.reduce((r, i) => {
3388
3390
  },
3389
3391
  "data-ui": "gui-header",
3390
3392
  part: "gui-header",
3391
- children: /* @__PURE__ */ T("div", { children: t && /* @__PURE__ */ T(zl, j({ dataTestId: "close-btn" }, t)) })
3393
+ children: /* @__PURE__ */ T("div", { children: t && /* @__PURE__ */ T(xl, j({ dataTestId: "close-btn" }, t)) })
3392
3394
  }
3393
3395
  );
3394
- function Cl(t) {
3396
+ function vl(t) {
3395
3397
  var n;
3396
3398
  const e = /\[([^\]]+)\]\(((https?:\/\/|www\.)?[^\s)]+\.[^\s)]+)\)/g, r = [];
3397
3399
  let i = 0;
@@ -3405,11 +3407,11 @@ function Cl(t) {
3405
3407
  }
3406
3408
  return i < t.length && r.push(t.slice(i)), r;
3407
3409
  }
3408
- function Ha(t) {
3410
+ function $a(t) {
3409
3411
  const e = t.split(`
3410
3412
  `);
3411
3413
  return e.flatMap((r, i) => {
3412
- const n = Cl(r);
3414
+ const n = vl(r);
3413
3415
  return i === e.length - 1 ? n : [...n, /* @__PURE__ */ T("br", {}, "br-" + i)];
3414
3416
  });
3415
3417
  }
@@ -3418,7 +3420,7 @@ const we = ({
3418
3420
  fontName: e = "",
3419
3421
  fontSize: r = "17px",
3420
3422
  fontColor: i,
3421
- alignment: n = Wi.LEFT,
3423
+ alignment: n = Bi.LEFT,
3422
3424
  backgroundColor: o,
3423
3425
  cornerRadius: s = 0,
3424
3426
  htmlFor: a
@@ -3430,9 +3432,9 @@ const we = ({
3430
3432
  textAlign: Ba(n),
3431
3433
  backgroundColor: ge(o) || "transparent",
3432
3434
  borderRadius: s
3433
- }, l = typeof t == "string" && t.trim() && Ha(t);
3435
+ }, l = typeof t == "string" && t.trim() && $a(t);
3434
3436
  return a ? /* @__PURE__ */ T("label", { "data-ui": "gui-label", part: "gui-label", style: c, htmlFor: a, children: l }) : /* @__PURE__ */ T("div", { "data-ui": "gui-label", part: "gui-label", style: c, children: l });
3435
- }, Zi = ({
3437
+ }, Hi = ({
3436
3438
  title: t,
3437
3439
  image: e,
3438
3440
  responseBody: r,
@@ -3449,7 +3451,7 @@ const we = ({
3449
3451
  const [d, u] = be(!1), f = d && ge(o) ? o : i, { perform: D } = Mr(), M = (p) => {
3450
3452
  if (I && I(p), l !== "RESPONSE_BODY") return;
3451
3453
  const S = JSON.parse(JSON.stringify(r));
3452
- mo(S), D(S, Pi.DATA);
3454
+ mo(S), D(S, tn.DATA);
3453
3455
  }, g = {
3454
3456
  height: "50px",
3455
3457
  width: "100%",
@@ -3497,7 +3499,7 @@ const we = ({
3497
3499
  ]
3498
3500
  }
3499
3501
  );
3500
- }, bl = (r) => {
3502
+ }, Cl = (r) => {
3501
3503
  var i = r, { items: t } = i, e = Xt(i, ["items"]);
3502
3504
  return /* @__PURE__ */ T("div", { part: "gui-buttons", "data-ui": "gui-buttons", style: j(j({}, {
3503
3505
  display: "flex",
@@ -3513,7 +3515,7 @@ const we = ({
3513
3515
  paddingTop: "20px"
3514
3516
  }), e), children: t.map((o) => {
3515
3517
  var s;
3516
- return /* @__PURE__ */ T(Zi, j({ dataTestId: "button-" + ((s = o.title) == null ? void 0 : s.text) }, o), _l());
3518
+ return /* @__PURE__ */ T(Hi, j({ dataTestId: "button-" + ((s = o.title) == null ? void 0 : s.text) }, o), Sl());
3517
3519
  }) });
3518
3520
  }, Kt = ({
3519
3521
  children: t,
@@ -3557,11 +3559,11 @@ const we = ({
3557
3559
  width: "100%",
3558
3560
  height: o
3559
3561
  },
3560
- children: /* @__PURE__ */ T(vl, { closeButton: e.closeButton })
3562
+ children: /* @__PURE__ */ T(zl, { closeButton: e.closeButton })
3561
3563
  }
3562
3564
  ),
3563
3565
  /* @__PURE__ */ T("div", { style: { height: "100%", width: "100%", flex: "1 1 100%", overflow: "hidden" }, children: t }),
3564
- (n == null ? void 0 : n.length) && /* @__PURE__ */ T(bl, { items: n }),
3566
+ (n == null ? void 0 : n.length) && /* @__PURE__ */ T(Cl, { items: n }),
3565
3567
  r && /* @__PURE__ */ T(
3566
3568
  "div",
3567
3569
  {
@@ -3572,7 +3574,7 @@ const we = ({
3572
3574
  width: "100%",
3573
3575
  height: s
3574
3576
  },
3575
- children: /* @__PURE__ */ T(Ol, j({}, r))
3577
+ children: /* @__PURE__ */ T(_l, j({}, r))
3576
3578
  }
3577
3579
  )
3578
3580
  ]
@@ -3582,7 +3584,7 @@ const we = ({
3582
3584
  text: t,
3583
3585
  fontName: e = "",
3584
3586
  fontColor: r,
3585
- alignment: i = Wi.LEFT,
3587
+ alignment: i = Bi.LEFT,
3586
3588
  fontSize: n = 17,
3587
3589
  backgroundColor: o,
3588
3590
  cornerRadius: s = 0
@@ -3600,9 +3602,9 @@ const we = ({
3600
3602
  backgroundColor: ge(o) || "transparent",
3601
3603
  whiteSpace: "pre-line"
3602
3604
  },
3603
- children: t && Ha(t)
3605
+ children: t && $a(t)
3604
3606
  }
3605
- ), Ll = ({
3607
+ ), bl = ({
3606
3608
  header: t,
3607
3609
  footer: e,
3608
3610
  image: r,
@@ -3628,7 +3630,7 @@ const we = ({
3628
3630
  flexDirection: "column"
3629
3631
  },
3630
3632
  children: [
3631
- r && /* @__PURE__ */ T("div", { style: Tl, children: /* @__PURE__ */ T(Pe, j({}, r)) }),
3633
+ r && /* @__PURE__ */ T("div", { style: pl, children: /* @__PURE__ */ T(Pe, j({}, r)) }),
3632
3634
  (i == null ? void 0 : i.text) && /* @__PURE__ */ T(
3633
3635
  "div",
3634
3636
  {
@@ -3662,12 +3664,12 @@ const we = ({
3662
3664
  ]
3663
3665
  }
3664
3666
  ) });
3665
- }, kl = {
3667
+ }, Ll = {
3666
3668
  width: "100%",
3667
3669
  height: "auto",
3668
3670
  marginBottom: "32px",
3669
3671
  aspectRatio: "1.68"
3670
- }, Ul = {
3672
+ }, kl = {
3671
3673
  position: "relative",
3672
3674
  display: "flex",
3673
3675
  flexDirection: "column",
@@ -3678,7 +3680,7 @@ const we = ({
3678
3680
  width: "100%",
3679
3681
  minHeight: "100%",
3680
3682
  overflow: "auto"
3681
- }, Rl = ({
3683
+ }, Ul = ({
3682
3684
  title: t,
3683
3685
  header: e,
3684
3686
  footer: r,
@@ -3692,16 +3694,16 @@ const we = ({
3692
3694
  part: "gui-info-screen-container",
3693
3695
  "data-ui": "gui-info-screen-container",
3694
3696
  id: "info-screen-container",
3695
- style: ee(j({}, Ul), {
3697
+ style: ee(j({}, kl), {
3696
3698
  justifyContent: i ? "flex-start" : "center"
3697
3699
  }),
3698
3700
  children: [
3699
- i && /* @__PURE__ */ T("div", { style: kl, children: /* @__PURE__ */ T(Pe, j({}, i)) }),
3701
+ i && /* @__PURE__ */ T("div", { style: Ll, children: /* @__PURE__ */ T(Pe, j({}, i)) }),
3700
3702
  t && /* @__PURE__ */ T("div", { style: { marginBottom: 20, lineHeight: "39.2px" }, children: /* @__PURE__ */ T(we, j({}, t)) }),
3701
3703
  n && /* @__PURE__ */ T("div", { style: { lineHeight: "28px", fontWeight: "400" }, children: /* @__PURE__ */ T(nn, j({}, n)) })
3702
3704
  ]
3703
3705
  }
3704
- ) }) }), Ql = ({ indicatorColor: t = "#7E57C5" }) => /* @__PURE__ */ T(Va, { type: pe.SPINNER, color: t }), Ss = ({
3706
+ ) }) }), Rl = ({ indicatorColor: t = "#7E57C5" }) => /* @__PURE__ */ T(Va, { type: pe.SPINNER, color: t }), Ss = ({
3705
3707
  progressView: t,
3706
3708
  footer: e,
3707
3709
  backgroundColor: r
@@ -3719,9 +3721,9 @@ const we = ({
3719
3721
  height: "100%",
3720
3722
  width: "100%"
3721
3723
  },
3722
- children: /* @__PURE__ */ T(Ql, { indicatorColor: ge(t == null ? void 0 : t.indicatorColor) || "#000000" })
3724
+ children: /* @__PURE__ */ T(Rl, { indicatorColor: ge(t == null ? void 0 : t.indicatorColor) || "#000000" })
3723
3725
  }
3724
- ) }), Pl = ({
3726
+ ) }), Ql = ({
3725
3727
  title: t,
3726
3728
  description: e,
3727
3729
  image: r,
@@ -3759,21 +3761,21 @@ const we = ({
3759
3761
  /* @__PURE__ */ T("div", { style: { aspectRatio: "1 / 1", width: 120, height: 120, flex: "0 0 120px" }, children: /* @__PURE__ */ T(Pe, j({}, r)) })
3760
3762
  ]
3761
3763
  }
3762
- ), Yl = {
3764
+ ), Pl = {
3763
3765
  display: "flex",
3764
3766
  flexDirection: "column",
3765
3767
  padding: "0 16px"
3766
- }, Fl = ({ items: t, backgroundColor: e, cornerRadius: r = 16 }) => /* @__PURE__ */ T(
3768
+ }, Yl = ({ items: t, backgroundColor: e, cornerRadius: r = 16 }) => /* @__PURE__ */ T(
3767
3769
  "div",
3768
3770
  {
3769
3771
  className: "details",
3770
- style: ee(j({}, Yl), {
3772
+ style: ee(j({}, Pl), {
3771
3773
  backgroundColor: ge(e) || "white",
3772
3774
  borderRadius: r
3773
3775
  }),
3774
- children: t.map((i, n) => /* @__PURE__ */ T(Pl, j({ isLastChild: n === t.length - 1 }, i), n))
3776
+ children: t.map((i, n) => /* @__PURE__ */ T(Ql, j({ isLastChild: n === t.length - 1 }, i), n))
3775
3777
  }
3776
- ), Vl = ({
3778
+ ), Fl = ({
3777
3779
  title: t,
3778
3780
  header: e,
3779
3781
  footer: r,
@@ -3798,14 +3800,14 @@ const we = ({
3798
3800
  ref: s,
3799
3801
  children: [
3800
3802
  /* @__PURE__ */ T("div", { style: { marginBottom: t ? "16px" : "0", fontWeight: 400, fontSize: "28px" }, children: t && /* @__PURE__ */ T(we, j({}, t)) }),
3801
- i && /* @__PURE__ */ T(Fl, j({}, i))
3803
+ i && /* @__PURE__ */ T(Yl, j({}, i))
3802
3804
  ]
3803
3805
  }
3804
3806
  ) });
3805
3807
  };
3806
3808
  var qr = (t) => t.type === "checkbox", sr = (t) => t instanceof Date, He = (t) => t == null;
3807
- const Za = (t) => typeof t == "object";
3808
- var ve = (t) => !He(t) && !Array.isArray(t) && Za(t) && !sr(t), Ga = (t) => ve(t) && t.target ? qr(t.target) ? t.target.checked : t.target.value : t, Bl = (t) => t.substring(0, t.search(/\.\d+(\.|$)/)) || t, Ka = (t, e) => t.has(Bl(e)), Wl = (t) => {
3809
+ const Ha = (t) => typeof t == "object";
3810
+ var ve = (t) => !He(t) && !Array.isArray(t) && Ha(t) && !sr(t), Za = (t) => ve(t) && t.target ? qr(t.target) ? t.target.checked : t.target.value : t, Vl = (t) => t.substring(0, t.search(/\.\d+(\.|$)/)) || t, Ga = (t, e) => t.has(Vl(e)), Bl = (t) => {
3809
3811
  const e = t.constructor && t.constructor.prototype;
3810
3812
  return ve(e) && e.hasOwnProperty("isPrototypeOf");
3811
3813
  }, jo = typeof window != "undefined" && typeof window.HTMLElement != "undefined" && typeof document != "undefined";
@@ -3815,7 +3817,7 @@ function Ce(t) {
3815
3817
  if (t instanceof Date)
3816
3818
  e = new Date(t);
3817
3819
  else if (!(jo && (t instanceof Blob || i)) && (r || ve(t)))
3818
- if (e = r ? [] : Object.create(Object.getPrototypeOf(t)), !r && !Wl(t))
3820
+ if (e = r ? [] : Object.create(Object.getPrototypeOf(t)), !r && !Bl(t))
3819
3821
  e = t;
3820
3822
  else
3821
3823
  for (const n in t)
@@ -3844,7 +3846,7 @@ var on = (t) => /^\w*$/.test(t), Se = (t) => t === void 0, wo = (t) => Array.isA
3844
3846
  t[a] = c, t = t[a];
3845
3847
  }
3846
3848
  };
3847
- const Gi = {
3849
+ const Zi = {
3848
3850
  BLUR: "blur",
3849
3851
  FOCUS_OUT: "focusout",
3850
3852
  CHANGE: "change"
@@ -3862,10 +3864,10 @@ const Gi = {
3862
3864
  pattern: "pattern",
3863
3865
  required: "required",
3864
3866
  validate: "validate"
3865
- }, Ja = Me.createContext(null);
3866
- Ja.displayName = "HookFormContext";
3867
- const _o = () => Me.useContext(Ja);
3868
- var Xa = (t, e, r, i = !0) => {
3867
+ }, Ka = Me.createContext(null);
3868
+ Ka.displayName = "HookFormContext";
3869
+ const _o = () => Me.useContext(Ka);
3870
+ var Ja = (t, e, r, i = !0) => {
3869
3871
  const n = {
3870
3872
  defaultValues: e._defaultValues
3871
3873
  };
@@ -3879,7 +3881,7 @@ var Xa = (t, e, r, i = !0) => {
3879
3881
  return n;
3880
3882
  };
3881
3883
  const Oo = typeof window != "undefined" ? Me.useLayoutEffect : Me.useEffect;
3882
- function $l(t) {
3884
+ function Wl(t) {
3883
3885
  const e = _o(), { control: r = e.control, disabled: i, name: n, exact: o } = t || {}, [s, a] = Me.useState(r._formState), c = Me.useRef({
3884
3886
  isDirty: !1,
3885
3887
  isLoading: !1,
@@ -3899,9 +3901,9 @@ function $l(t) {
3899
3901
  }
3900
3902
  }), [n, i, o]), Me.useEffect(() => {
3901
3903
  c.current.isValid && r._setValid(!0);
3902
- }, [r]), Me.useMemo(() => Xa(s, r, c.current, !1), [s, r]);
3904
+ }, [r]), Me.useMemo(() => Ja(s, r, c.current, !1), [s, r]);
3903
3905
  }
3904
- var et = (t) => typeof t == "string", qa = (t, e, r, i, n) => et(t) ? (i && e.watch.add(t), R(r, t, n)) : Array.isArray(t) ? t.map((o) => (i && e.watch.add(o), R(r, o))) : (i && (e.watchAll = !0), r), Xn = (t) => He(t) || !Za(t);
3906
+ var et = (t) => typeof t == "string", Xa = (t, e, r, i, n) => et(t) ? (i && e.watch.add(t), R(r, t, n)) : Array.isArray(t) ? t.map((o) => (i && e.watch.add(o), R(r, o))) : (i && (e.watchAll = !0), r), Xn = (t) => He(t) || !Ha(t);
3905
3907
  function Qt(t, e, r = /* @__PURE__ */ new WeakSet()) {
3906
3908
  if (Xn(t) || Xn(e))
3907
3909
  return t === e;
@@ -3925,7 +3927,7 @@ function Qt(t, e, r = /* @__PURE__ */ new WeakSet()) {
3925
3927
  }
3926
3928
  return !0;
3927
3929
  }
3928
- function Hl(t) {
3930
+ function $l(t) {
3929
3931
  const e = _o(), { control: r = e.control, name: i, defaultValue: n, disabled: o, exact: s, compute: a } = t || {}, c = Me.useRef(n), l = Me.useRef(a), I = Me.useRef(void 0);
3930
3932
  l.current = a;
3931
3933
  const d = Me.useMemo(() => r._getWatch(i, c.current), [r, i]), [u, f] = Me.useState(l.current ? l.current(d) : d);
@@ -3937,7 +3939,7 @@ function Hl(t) {
3937
3939
  exact: s,
3938
3940
  callback: (D) => {
3939
3941
  if (!o) {
3940
- const M = qa(i, r._names, D.values || r._formValues, !1, c.current);
3942
+ const M = Xa(i, r._names, D.values || r._formValues, !1, c.current);
3941
3943
  if (l.current) {
3942
3944
  const g = l.current(M);
3943
3945
  Qt(g, I.current) || (f(g), I.current = g);
@@ -3947,13 +3949,13 @@ function Hl(t) {
3947
3949
  }
3948
3950
  }), [r, o, i, s]), Me.useEffect(() => r._removeUnmounted()), u;
3949
3951
  }
3950
- function Zl(t) {
3951
- const e = _o(), { name: r, disabled: i, control: n = e.control, shouldUnregister: o, defaultValue: s } = t, a = Ka(n._names.array, r), c = Me.useMemo(() => R(n._formValues, r, R(n._defaultValues, r, s)), [n, r, s]), l = Hl({
3952
+ function Hl(t) {
3953
+ const e = _o(), { name: r, disabled: i, control: n = e.control, shouldUnregister: o, defaultValue: s } = t, a = Ga(n._names.array, r), c = Me.useMemo(() => R(n._formValues, r, R(n._defaultValues, r, s)), [n, r, s]), l = $l({
3952
3954
  control: n,
3953
3955
  name: r,
3954
3956
  defaultValue: c,
3955
3957
  exact: !0
3956
- }), I = $l({
3958
+ }), I = Wl({
3957
3959
  control: n,
3958
3960
  name: r,
3959
3961
  exact: !0
@@ -3984,16 +3986,16 @@ function Zl(t) {
3984
3986
  }
3985
3987
  }), [I, r]), M = Me.useCallback((p) => f.current.onChange({
3986
3988
  target: {
3987
- value: Ga(p),
3989
+ value: Za(p),
3988
3990
  name: r
3989
3991
  },
3990
- type: Gi.CHANGE
3992
+ type: Zi.CHANGE
3991
3993
  }), [r]), g = Me.useCallback(() => f.current.onBlur({
3992
3994
  target: {
3993
3995
  value: R(n._formValues, r),
3994
3996
  name: r
3995
3997
  },
3996
- type: Gi.BLUR
3998
+ type: Zi.BLUR
3997
3999
  }), [r, n._formValues]), E = Me.useCallback((p) => {
3998
4000
  const S = R(n._fields, r);
3999
4001
  S && p && (S._f.ref = {
@@ -4035,8 +4037,8 @@ function Zl(t) {
4035
4037
  fieldState: D
4036
4038
  }), [A, I, D]);
4037
4039
  }
4038
- const ec = (t) => t.render(Zl(t));
4039
- var Gl = (t, e, r, i, n) => e ? ee(j({}, r[t]), {
4040
+ const qa = (t) => t.render(Hl(t));
4041
+ var Zl = (t, e, r, i, n) => e ? ee(j({}, r[t]), {
4040
4042
  types: ee(j({}, r[t] && r[t].types ? r[t].types : {}), {
4041
4043
  [i]: n || !0
4042
4044
  })
@@ -4060,66 +4062,66 @@ var Gl = (t, e, r, i, n) => e ? ee(j({}, r[t]), {
4060
4062
  }
4061
4063
  };
4062
4064
  };
4063
- function tc(t, e) {
4065
+ function ec(t, e) {
4064
4066
  const r = {};
4065
4067
  for (const i in t)
4066
4068
  if (t.hasOwnProperty(i)) {
4067
4069
  const n = t[i], o = e[i];
4068
4070
  if (n && ve(n) && o) {
4069
- const s = tc(n, o);
4071
+ const s = ec(n, o);
4070
4072
  ve(s) && (r[i] = s);
4071
4073
  } else t[i] && (r[i] = o);
4072
4074
  }
4073
4075
  return r;
4074
4076
  }
4075
- var Ke = (t) => ve(t) && !Object.keys(t).length, xo = (t) => t.type === "file", dt = (t) => typeof t == "function", Ki = (t) => {
4077
+ var Ke = (t) => ve(t) && !Object.keys(t).length, xo = (t) => t.type === "file", dt = (t) => typeof t == "function", Gi = (t) => {
4076
4078
  if (!jo)
4077
4079
  return !1;
4078
4080
  const e = t ? t.ownerDocument : 0;
4079
4081
  return t instanceof (e && e.defaultView ? e.defaultView.HTMLElement : HTMLElement);
4080
- }, rc = (t) => t.type === "select-multiple", zo = (t) => t.type === "radio", Kl = (t) => zo(t) || qr(t), Rn = (t) => Ki(t) && t.isConnected;
4081
- function Jl(t, e) {
4082
+ }, tc = (t) => t.type === "select-multiple", zo = (t) => t.type === "radio", Gl = (t) => zo(t) || qr(t), Rn = (t) => Gi(t) && t.isConnected;
4083
+ function Kl(t, e) {
4082
4084
  const r = e.slice(0, -1).length;
4083
4085
  let i = 0;
4084
4086
  for (; i < r; )
4085
4087
  t = Se(t) ? i++ : t[e[i++]];
4086
4088
  return t;
4087
4089
  }
4088
- function Xl(t) {
4090
+ function Jl(t) {
4089
4091
  for (const e in t)
4090
4092
  if (t.hasOwnProperty(e) && !Se(t[e]))
4091
4093
  return !1;
4092
4094
  return !0;
4093
4095
  }
4094
4096
  function xe(t, e) {
4095
- const r = Array.isArray(e) ? e : on(e) ? [e] : So(e), i = r.length === 1 ? t : Jl(t, r), n = r.length - 1, o = r[n];
4096
- return i && delete i[o], n !== 0 && (ve(i) && Ke(i) || Array.isArray(i) && Xl(i)) && xe(t, r.slice(0, -1)), t;
4097
+ const r = Array.isArray(e) ? e : on(e) ? [e] : So(e), i = r.length === 1 ? t : Kl(t, r), n = r.length - 1, o = r[n];
4098
+ return i && delete i[o], n !== 0 && (ve(i) && Ke(i) || Array.isArray(i) && Jl(i)) && xe(t, r.slice(0, -1)), t;
4097
4099
  }
4098
- var ql = (t) => {
4100
+ var Xl = (t) => {
4099
4101
  for (const e in t)
4100
4102
  if (dt(t[e]))
4101
4103
  return !0;
4102
4104
  return !1;
4103
4105
  };
4104
- function ic(t) {
4105
- return Array.isArray(t) || ve(t) && !ql(t);
4106
+ function rc(t) {
4107
+ return Array.isArray(t) || ve(t) && !Xl(t);
4106
4108
  }
4107
4109
  function qn(t, e = {}) {
4108
4110
  for (const r in t)
4109
- ic(t[r]) ? (e[r] = Array.isArray(t[r]) ? [] : {}, qn(t[r], e[r])) : He(t[r]) || (e[r] = !0);
4111
+ rc(t[r]) ? (e[r] = Array.isArray(t[r]) ? [] : {}, qn(t[r], e[r])) : He(t[r]) || (e[r] = !0);
4110
4112
  return e;
4111
4113
  }
4112
4114
  function yr(t, e, r) {
4113
4115
  r || (r = qn(e));
4114
4116
  for (const i in t)
4115
- ic(t[i]) ? Se(e) || Xn(r[i]) ? r[i] = qn(t[i], Array.isArray(t[i]) ? [] : {}) : yr(t[i], He(e) ? {} : e[i], r[i]) : r[i] = !Qt(t[i], e[i]);
4117
+ rc(t[i]) ? Se(e) || Xn(r[i]) ? r[i] = qn(t[i], Array.isArray(t[i]) ? [] : {}) : yr(t[i], He(e) ? {} : e[i], r[i]) : r[i] = !Qt(t[i], e[i]);
4116
4118
  return r;
4117
4119
  }
4118
4120
  const Os = {
4119
4121
  value: !1,
4120
4122
  isValid: !1
4121
4123
  }, xs = { value: !0, isValid: !0 };
4122
- var nc = (t) => {
4124
+ var ic = (t) => {
4123
4125
  if (Array.isArray(t)) {
4124
4126
  if (t.length > 1) {
4125
4127
  const e = t.filter((r) => r && r.checked && !r.disabled).map((r) => r.value);
@@ -4131,20 +4133,20 @@ var nc = (t) => {
4131
4133
  ) : Os;
4132
4134
  }
4133
4135
  return Os;
4134
- }, oc = (t, { valueAsNumber: e, valueAsDate: r, setValueAs: i }) => Se(t) ? t : e ? t === "" ? NaN : t && +t : r && et(t) ? new Date(t) : i ? i(t) : t;
4136
+ }, nc = (t, { valueAsNumber: e, valueAsDate: r, setValueAs: i }) => Se(t) ? t : e ? t === "" ? NaN : t && +t : r && et(t) ? new Date(t) : i ? i(t) : t;
4135
4137
  const zs = {
4136
4138
  isValid: !1,
4137
4139
  value: null
4138
4140
  };
4139
- var sc = (t) => Array.isArray(t) ? t.reduce((e, r) => r && r.checked && !r.disabled ? {
4141
+ var oc = (t) => Array.isArray(t) ? t.reduce((e, r) => r && r.checked && !r.disabled ? {
4140
4142
  isValid: !0,
4141
4143
  value: r.value
4142
4144
  } : e, zs) : zs;
4143
4145
  function vs(t) {
4144
4146
  const e = t.ref;
4145
- return xo(e) ? e.files : zo(e) ? sc(t.refs).value : rc(e) ? [...e.selectedOptions].map(({ value: r }) => r) : qr(e) ? nc(t.refs).value : oc(Se(e.value) ? t.ref.value : e.value, t);
4147
+ return xo(e) ? e.files : zo(e) ? oc(t.refs).value : tc(e) ? [...e.selectedOptions].map(({ value: r }) => r) : qr(e) ? ic(t.refs).value : nc(Se(e.value) ? t.ref.value : e.value, t);
4146
4148
  }
4147
- var ed = (t, e, r, i) => {
4149
+ var ql = (t, e, r, i) => {
4148
4150
  const n = {};
4149
4151
  for (const o of t) {
4150
4152
  const s = R(e, o);
@@ -4156,7 +4158,7 @@ var ed = (t, e, r, i) => {
4156
4158
  fields: n,
4157
4159
  shouldUseNativeValidation: i
4158
4160
  };
4159
- }, Ji = (t) => t instanceof RegExp, xr = (t) => Se(t) ? t : Ji(t) ? t.source : ve(t) ? Ji(t.value) ? t.value.source : t.value : t, Cs = (t) => ({
4161
+ }, Ki = (t) => t instanceof RegExp, xr = (t) => Se(t) ? t : Ki(t) ? t.source : ve(t) ? Ki(t.value) ? t.value.source : t.value : t, Cs = (t) => ({
4160
4162
  isOnSubmit: !t || t === lt.onSubmit,
4161
4163
  isOnBlur: t === lt.onBlur,
4162
4164
  isOnChange: t === lt.onChange,
@@ -4164,7 +4166,7 @@ var ed = (t, e, r, i) => {
4164
4166
  isOnTouch: t === lt.onTouched
4165
4167
  });
4166
4168
  const bs = "AsyncFunction";
4167
- var td = (t) => !!t && !!t.validate && !!(dt(t.validate) && t.validate.constructor.name === bs || ve(t.validate) && Object.values(t.validate).find((e) => e.constructor.name === bs)), rd = (t) => t.mount && (t.required || t.min || t.max || t.maxLength || t.minLength || t.pattern || t.validate), Ls = (t, e, r) => !r && (e.watchAll || e.watch.has(t) || [...e.watch].some((i) => t.startsWith(i) && /^\.\w+/.test(t.slice(i.length))));
4169
+ var ed = (t) => !!t && !!t.validate && !!(dt(t.validate) && t.validate.constructor.name === bs || ve(t.validate) && Object.values(t.validate).find((e) => e.constructor.name === bs)), td = (t) => t.mount && (t.required || t.min || t.max || t.maxLength || t.minLength || t.pattern || t.validate), Ls = (t, e, r) => !r && (e.watchAll || e.watch.has(t) || [...e.watch].some((i) => t.startsWith(i) && /^\.\w+/.test(t.slice(i.length))));
4168
4170
  const Fr = (t, e, r, i) => {
4169
4171
  for (const o of r || Object.keys(t)) {
4170
4172
  const s = R(t, o);
@@ -4210,11 +4212,11 @@ function ks(t, e, r) {
4210
4212
  name: r
4211
4213
  };
4212
4214
  }
4213
- var id = (t, e, r, i) => {
4215
+ var rd = (t, e, r, i) => {
4214
4216
  r(t);
4215
4217
  const s = t, { name: n } = s, o = Xt(s, ["name"]);
4216
4218
  return Ke(o) || Object.keys(o).length >= Object.keys(e).length || Object.keys(o).find((a) => e[a] === (!i || lt.all));
4217
- }, nd = (t, e, r) => !t || !e || t === e || Yr(t).some((i) => i && (r ? i === e : i.startsWith(e) || e.startsWith(i))), od = (t, e, r, i, n) => n.isOnAll ? !1 : !r && n.isOnTouch ? !(e || t) : (r ? i.isOnBlur : n.isOnBlur) ? !t : (r ? i.isOnChange : n.isOnChange) ? t : !0, sd = (t, e) => !wo(R(t, e)).length && xe(t, e), ad = (t, e, r) => {
4219
+ }, id = (t, e, r) => !t || !e || t === e || Yr(t).some((i) => i && (r ? i === e : i.startsWith(e) || e.startsWith(i))), nd = (t, e, r, i, n) => n.isOnAll ? !1 : !r && n.isOnTouch ? !(e || t) : (r ? i.isOnBlur : n.isOnBlur) ? !t : (r ? i.isOnChange : n.isOnChange) ? t : !0, od = (t, e) => !wo(R(t, e)).length && xe(t, e), sd = (t, e, r) => {
4218
4220
  const i = Yr(R(t, r));
4219
4221
  return me(i, "root", e[r]), me(t, r, i), t;
4220
4222
  };
@@ -4226,7 +4228,7 @@ function Us(t, e, r = "validate") {
4226
4228
  ref: e
4227
4229
  };
4228
4230
  }
4229
- var Dr = (t) => ve(t) && !Ji(t) ? t : {
4231
+ var Dr = (t) => ve(t) && !Ki(t) ? t : {
4230
4232
  value: t,
4231
4233
  message: ""
4232
4234
  }, Rs = (t, e, r, i, n, o) => L(null, null, function* () {
@@ -4235,7 +4237,7 @@ var Dr = (t) => ve(t) && !Ji(t) ? t : {
4235
4237
  return {};
4236
4238
  const p = a ? a[0] : s, S = (F) => {
4237
4239
  n && p.reportValidity && (p.setCustomValidity(qe(F) ? "" : F || ""), p.reportValidity());
4238
- }, k = {}, v = zo(s), x = qr(s), ae = v || x, B = (g || xo(s)) && Se(s.value) && Se(A) || Ki(s) && s.value === "" || A === "" || Array.isArray(A) && !A.length, J = Gl.bind(null, M, i, k), V = (F, Z, de, le = mt.maxLength, he = mt.minLength) => {
4240
+ }, k = {}, v = zo(s), x = qr(s), ae = v || x, B = (g || xo(s)) && Se(s.value) && Se(A) || Gi(s) && s.value === "" || A === "" || Array.isArray(A) && !A.length, J = Zl.bind(null, M, i, k), V = (F, Z, de, le = mt.maxLength, he = mt.minLength) => {
4239
4241
  const ye = F ? Z : de;
4240
4242
  k[M] = j({
4241
4243
  type: F ? le : he,
@@ -4243,7 +4245,7 @@ var Dr = (t) => ve(t) && !Ji(t) ? t : {
4243
4245
  ref: s
4244
4246
  }, J(F ? le : he, ye));
4245
4247
  };
4246
- if (o ? !Array.isArray(A) || !A.length : c && (!ae && (B || He(A)) || qe(A) && !A || x && !nc(a).isValid || v && !sc(a).isValid)) {
4248
+ if (o ? !Array.isArray(A) || !A.length : c && (!ae && (B || He(A)) || qe(A) && !A || x && !ic(a).isValid || v && !oc(a).isValid)) {
4247
4249
  const { value: F, message: Z } = et(c) ? { value: !!c, message: c } : Dr(c);
4248
4250
  if (F && (k[M] = j({
4249
4251
  type: mt.required,
@@ -4272,7 +4274,7 @@ var Dr = (t) => ve(t) && !Ji(t) ? t : {
4272
4274
  }
4273
4275
  if (f && !B && et(A)) {
4274
4276
  const { value: F, message: Z } = Dr(f);
4275
- if (Ji(F) && !A.match(F) && (k[M] = j({
4277
+ if (Ki(F) && !A.match(F) && (k[M] = j({
4276
4278
  type: mt.pattern,
4277
4279
  message: Z,
4278
4280
  ref: s
@@ -4300,13 +4302,13 @@ var Dr = (t) => ve(t) && !Ji(t) ? t : {
4300
4302
  }
4301
4303
  return S(!0), k;
4302
4304
  });
4303
- const cd = {
4305
+ const ad = {
4304
4306
  mode: lt.onSubmit,
4305
4307
  reValidateMode: lt.onChange,
4306
4308
  shouldFocusError: !0
4307
4309
  };
4308
- function ud(t = {}) {
4309
- let e = j(j({}, cd), t), r = {
4310
+ function cd(t = {}) {
4311
+ let e = j(j({}, ad), t), r = {
4310
4312
  submitCount: 0,
4311
4313
  isDirty: !1,
4312
4314
  isReady: !1,
@@ -4369,7 +4371,7 @@ function ud(t = {}) {
4369
4371
  }
4370
4372
  if (b && Array.isArray(R(r.errors, y))) {
4371
4373
  const W = O(R(r.errors, y), Q.argA, Q.argB);
4372
- C && me(r.errors, y, W), sd(r.errors, y);
4374
+ C && me(r.errors, y, W), od(r.errors, y);
4373
4375
  }
4374
4376
  if ((I.touchedFields || d.touchedFields) && b && Array.isArray(R(r.touchedFields, y))) {
4375
4377
  const W = O(R(r.touchedFields, y), Q.argA, Q.argB);
@@ -4428,7 +4430,7 @@ function ud(t = {}) {
4428
4430
  }
4429
4431
  }, x = (y) => L(null, null, function* () {
4430
4432
  g(y, !0);
4431
- const w = yield e.resolver(o, e.context, ed(y || a.mount, i, e.criteriaMode, e.shouldUseNativeValidation));
4433
+ const w = yield e.resolver(o, e.context, ql(y || a.mount, i, e.criteriaMode, e.shouldUseNativeValidation));
4432
4434
  return g(y), w;
4433
4435
  }), ae = (y) => L(null, null, function* () {
4434
4436
  const { errors: w } = yield x(y);
@@ -4448,12 +4450,12 @@ function ud(t = {}) {
4448
4450
  if (G) {
4449
4451
  const W = G, { _f: De } = W, Le = Xt(W, ["_f"]);
4450
4452
  if (De) {
4451
- const q = a.array.has(De.name), ce = G._f && td(G._f);
4453
+ const q = a.array.has(De.name), ce = G._f && ed(G._f);
4452
4454
  ce && I.validatingFields && g([De.name], !0);
4453
4455
  const $ = yield Rs(G, a.disabled, o, f, e.shouldUseNativeValidation && !w, q);
4454
4456
  if (ce && I.validatingFields && g([De.name]), $[De.name] && (O.valid = !1, w))
4455
4457
  break;
4456
- !w && (R($, De.name) ? q ? ad(r.errors, $, De.name) : me(r.errors, De.name, $[De.name]) : xe(r.errors, De.name));
4458
+ !w && (R($, De.name) ? q ? sd(r.errors, $, De.name) : me(r.errors, De.name, $[De.name]) : xe(r.errors, De.name));
4457
4459
  }
4458
4460
  !Ke(Le) && (yield B(Le, w, O));
4459
4461
  }
@@ -4465,12 +4467,12 @@ function ud(t = {}) {
4465
4467
  w && (w._f.refs ? w._f.refs.every((O) => !Rn(O)) : !Rn(w._f.ref)) && Ye(y);
4466
4468
  }
4467
4469
  a.unMount = /* @__PURE__ */ new Set();
4468
- }, V = (y, w) => !e.disabled && (y && w && me(o, y, w), !Qt(U(), n)), F = (y, w, O) => qa(y, a, j({}, s.mount ? o : Se(w) ? n : et(y) ? { [y]: w } : w), O, w), Z = (y) => wo(R(s.mount ? o : n, y, e.shouldUnregister ? R(n, y, []) : [])), de = (y, w, O = {}) => {
4470
+ }, V = (y, w) => !e.disabled && (y && w && me(o, y, w), !Qt(U(), n)), F = (y, w, O) => Xa(y, a, j({}, s.mount ? o : Se(w) ? n : et(y) ? { [y]: w } : w), O, w), Z = (y) => wo(R(s.mount ? o : n, y, e.shouldUnregister ? R(n, y, []) : [])), de = (y, w, O = {}) => {
4469
4471
  const Q = R(i, y);
4470
4472
  let C = w;
4471
4473
  if (Q) {
4472
4474
  const b = Q._f;
4473
- b && (!b.disabled && me(o, y, oc(w, b)), C = Ki(b.ref) && He(w) ? "" : w, rc(b.ref) ? [...b.ref.options].forEach((W) => W.selected = C.includes(W.value)) : b.refs ? qr(b.ref) ? b.refs.forEach((W) => {
4475
+ b && (!b.disabled && me(o, y, nc(w, b)), C = Gi(b.ref) && He(w) ? "" : w, tc(b.ref) ? [...b.ref.options].forEach((W) => W.selected = C.includes(W.value)) : b.refs ? qr(b.ref) ? b.refs.forEach((W) => {
4474
4476
  (!W.defaultChecked || !W.disabled) && (Array.isArray(C) ? W.checked = !!C.find((oe) => oe === W.value) : W.checked = C === W.value || !!C);
4475
4477
  }) : b.refs.forEach((W) => W.checked = W.value === C) : xo(b.ref) ? b.ref.value = "" : (b.ref.value = C, b.ref.type || u.state.next({
4476
4478
  name: y,
@@ -4507,7 +4509,7 @@ function ud(t = {}) {
4507
4509
  }, W = Cs(e.mode), oe = Cs(e.reValidateMode);
4508
4510
  if (C) {
4509
4511
  let G, De;
4510
- const Le = w.type ? vs(C._f) : Ga(y), q = y.type === Gi.BLUR || y.type === Gi.FOCUS_OUT, ce = !rd(C._f) && !e.resolver && !R(r.errors, O) && !C._f.deps || od(q, R(r.touchedFields, O), r.isSubmitted, oe, W), $ = Ls(O, a, q);
4512
+ const Le = w.type ? vs(C._f) : Za(y), q = y.type === Zi.BLUR || y.type === Zi.FOCUS_OUT, ce = !td(C._f) && !e.resolver && !R(r.errors, O) && !C._f.deps || nd(q, R(r.touchedFields, O), r.isSubmitted, oe, W), $ = Ls(O, a, q);
4511
4513
  me(o, O, Le), q ? (!w || !w.readOnly) && (C._f.onBlur && C._f.onBlur(y), c && c(0)) : C._f.onChange && C._f.onChange(y);
4512
4514
  const fe = k(O, Le, q), Fe = !Ke(fe) || $;
4513
4515
  if (!q && u.state.next({
@@ -4544,7 +4546,7 @@ function ud(t = {}) {
4544
4546
  })), w.shouldFocus && !b && Fr(i, re, y ? W : a.mount), b;
4545
4547
  }), U = (y, w) => {
4546
4548
  let O = j({}, s.mount ? o : n);
4547
- return w && (O = tc(w.dirtyFields ? r.dirtyFields : r.touchedFields, O)), Se(y) ? O : et(y) ? R(O, y) : y.map((Q) => R(O, Q));
4549
+ return w && (O = ec(w.dirtyFields ? r.dirtyFields : r.touchedFields, O)), Se(y) ? O : et(y) ? R(O, y) : y.map((Q) => R(O, Q));
4548
4550
  }, X = (y, w) => ({
4549
4551
  invalid: !!R((w || r).errors, y),
4550
4552
  isDirty: !!R((w || r).dirtyFields, y),
@@ -4568,7 +4570,7 @@ function ud(t = {}) {
4568
4570
  next: (O) => "values" in O && y(F(void 0, w), O)
4569
4571
  }) : F(y, w, !0), P = (y) => u.state.subscribe({
4570
4572
  next: (w) => {
4571
- nd(y.name, w.name, y.exact) && id(w, y.formState || I, Vt, y.reRenderRoot) && y.callback(ee(j(j({
4573
+ id(y.name, w.name, y.exact) && rd(w, y.formState || I, Vt, y.reRenderRoot) && y.callback(ee(j(j({
4572
4574
  values: j({}, o)
4573
4575
  }, r), w), {
4574
4576
  defaultValues: n
@@ -4609,7 +4611,7 @@ function ud(t = {}) {
4609
4611
  ref: (C) => {
4610
4612
  if (C) {
4611
4613
  nt(y, w), O = R(i, y);
4612
- const b = Se(C.value) && C.querySelectorAll && C.querySelectorAll("input,select,textarea")[0] || C, W = Kl(b), oe = O._f.refs || [];
4614
+ const b = Se(C.value) && C.querySelectorAll && C.querySelectorAll("input,select,textarea")[0] || C, W = Gl(b), oe = O._f.refs || [];
4613
4615
  if (W ? oe.find((G) => G === b) : b === O._f.ref)
4614
4616
  return;
4615
4617
  me(i, y, {
@@ -4623,7 +4625,7 @@ function ud(t = {}) {
4623
4625
  } : { ref: b })
4624
4626
  }), S(y, !1, void 0, b);
4625
4627
  } else
4626
- O = R(i, y, {}), O._f && (O._f.mount = !1), (e.shouldUnregister || w.shouldUnregister) && !(Ka(a.array, y) && s.action) && a.unMount.add(y);
4628
+ O = R(i, y, {}), O._f && (O._f.mount = !1), (e.shouldUnregister || w.shouldUnregister) && !(Ga(a.array, y) && s.action) && a.unMount.add(y);
4627
4629
  }
4628
4630
  });
4629
4631
  }, Xe = () => e.shouldFocusError && Fr(i, re, a.mount), Tt = (y) => {
@@ -4684,7 +4686,7 @@ function ud(t = {}) {
4684
4686
  const oe = R(i, W);
4685
4687
  if (oe && oe._f) {
4686
4688
  const G = Array.isArray(oe._f.refs) ? oe._f.refs[0] : oe._f.ref;
4687
- if (Ki(G)) {
4689
+ if (Gi(G)) {
4688
4690
  const De = G.closest("form");
4689
4691
  if (De) {
4690
4692
  De.reset();
@@ -4809,7 +4811,7 @@ function ud(t = {}) {
4809
4811
  formControl: rt
4810
4812
  });
4811
4813
  }
4812
- function ld(t = {}) {
4814
+ function ud(t = {}) {
4813
4815
  const e = Me.useRef(void 0), r = Me.useRef(void 0), [i, n] = Me.useState({
4814
4816
  isDirty: !1,
4815
4817
  isValidating: !1,
@@ -4833,7 +4835,7 @@ function ld(t = {}) {
4833
4835
  formState: i
4834
4836
  }), t.defaultValues && !dt(t.defaultValues) && t.formControl.reset(t.defaultValues, t.resetOptions);
4835
4837
  else {
4836
- const s = ud(t), { formControl: a } = s, c = Xt(s, ["formControl"]);
4838
+ const s = cd(t), { formControl: a } = s, c = Xt(s, ["formControl"]);
4837
4839
  e.current = ee(j({}, c), {
4838
4840
  formState: i
4839
4841
  });
@@ -4869,17 +4871,17 @@ function ld(t = {}) {
4869
4871
  }, o._options.resetOptions)), r.current = t.values, n((a) => j({}, a))) : o._resetDefaultValues();
4870
4872
  }, [o, t.values]), Me.useEffect(() => {
4871
4873
  o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next(j({}, o._formState))), o._removeUnmounted();
4872
- }), e.current.formState = Xa(i, o), e.current;
4874
+ }), e.current.formState = Ja(i, o), e.current;
4873
4875
  }
4874
4876
  const Sr = (t, e) => {
4875
4877
  const r = {};
4876
4878
  return t.forEach((i, n) => {
4877
- if (i.type === ws.NOT_EMPTY && (r.required = (o) => e && jl(o) ? i.message : !0), i.type === ws.REGEX) {
4879
+ if (i.type === ws.NOT_EMPTY && (r.required = (o) => e && ml(o) ? i.message : !0), i.type === ws.REGEX) {
4878
4880
  const o = new RegExp(i.regex);
4879
4881
  r[`regex_${n}`] = (s) => !e && !s ? !0 : typeof s != "string" ? i.message : o.test(s) || i.message;
4880
4882
  }
4881
4883
  }), r;
4882
- }, dd = ({ isOpen: t, image: e }) => /* @__PURE__ */ T(
4884
+ }, ld = ({ isOpen: t, image: e }) => /* @__PURE__ */ T(
4883
4885
  "div",
4884
4886
  {
4885
4887
  "data-ui": "gui-custom-select-chevron",
@@ -4896,7 +4898,7 @@ const Sr = (t, e) => {
4896
4898
  },
4897
4899
  children: e ? /* @__PURE__ */ T(Pe, j({}, e)) : /* @__PURE__ */ T(Pe, { imageId: "chevronDown" })
4898
4900
  }
4899
- ), Md = ({
4901
+ ), dd = ({
4900
4902
  isChosen: t,
4901
4903
  option: e,
4902
4904
  onOptionClickCallback: r,
@@ -4945,7 +4947,7 @@ const Sr = (t, e) => {
4945
4947
  },
4946
4948
  e.value
4947
4949
  );
4948
- }, ac = ({
4950
+ }, sc = ({
4949
4951
  name: t,
4950
4952
  options: e,
4951
4953
  isMulti: r = !1,
@@ -5112,7 +5114,7 @@ const Sr = (t, e) => {
5112
5114
  }
5113
5115
  }
5114
5116
  ) : null,
5115
- /* @__PURE__ */ T(dd, { isOpen: u, image: I == null ? void 0 : I.expandButton }),
5117
+ /* @__PURE__ */ T(ld, { isOpen: u, image: I == null ? void 0 : I.expandButton }),
5116
5118
  u && /* @__PURE__ */ T(
5117
5119
  "div",
5118
5120
  {
@@ -5143,7 +5145,7 @@ const Sr = (t, e) => {
5143
5145
  children: e.map((U) => {
5144
5146
  const X = D.some((ie) => ie.value === U.value);
5145
5147
  return /* @__PURE__ */ T(
5146
- Md,
5148
+ dd,
5147
5149
  {
5148
5150
  isChosen: X,
5149
5151
  option: U,
@@ -5160,7 +5162,7 @@ const Sr = (t, e) => {
5160
5162
  ]
5161
5163
  }
5162
5164
  ) });
5163
- }, gd = ({
5165
+ }, Md = ({
5164
5166
  control: t,
5165
5167
  layout: e,
5166
5168
  dataSourceQuestion: r,
@@ -5184,7 +5186,7 @@ const Sr = (t, e) => {
5184
5186
  children: [
5185
5187
  e.title && /* @__PURE__ */ T(we, ee(j({}, e.title), { text: r.text, htmlFor: o })),
5186
5188
  /* @__PURE__ */ T(
5187
- ec,
5189
+ qa,
5188
5190
  {
5189
5191
  name: o,
5190
5192
  control: t,
@@ -5195,7 +5197,7 @@ const Sr = (t, e) => {
5195
5197
  render: ({ field: s }) => {
5196
5198
  const a = n.find((c) => c.value === s.value);
5197
5199
  return /* @__PURE__ */ T(
5198
- ac,
5200
+ sc,
5199
5201
  {
5200
5202
  options: n,
5201
5203
  placeholder: r.placeholder,
@@ -5219,7 +5221,7 @@ const Sr = (t, e) => {
5219
5221
  ]
5220
5222
  }
5221
5223
  );
5222
- }, Nd = ({
5224
+ }, gd = ({
5223
5225
  control: t,
5224
5226
  layout: e,
5225
5227
  dataSourceQuestion: r,
@@ -5243,7 +5245,7 @@ const Sr = (t, e) => {
5243
5245
  children: [
5244
5246
  e.title && /* @__PURE__ */ T(we, ee(j({}, e.title), { text: r.text, htmlFor: o })),
5245
5247
  /* @__PURE__ */ T(
5246
- ec,
5248
+ qa,
5247
5249
  {
5248
5250
  name: o,
5249
5251
  control: t,
@@ -5257,7 +5259,7 @@ const Sr = (t, e) => {
5257
5259
  return (l = s.value) == null ? void 0 : l.includes(c.value);
5258
5260
  });
5259
5261
  return /* @__PURE__ */ T(
5260
- ac,
5262
+ sc,
5261
5263
  {
5262
5264
  name: o,
5263
5265
  options: n,
@@ -5281,7 +5283,7 @@ const Sr = (t, e) => {
5281
5283
  ]
5282
5284
  }
5283
5285
  );
5284
- }, cc = () => {
5286
+ }, ac = () => {
5285
5287
  const [t, e] = be(!1);
5286
5288
  return tt(() => {
5287
5289
  const r = () => e(!0), i = () => e(!1);
@@ -5289,14 +5291,14 @@ const Sr = (t, e) => {
5289
5291
  window.removeEventListener("keydown", r), window.removeEventListener("mousedown", i);
5290
5292
  };
5291
5293
  }, []), t;
5292
- }, Id = ({
5294
+ }, Nd = ({
5293
5295
  option: t,
5294
5296
  layout: e,
5295
5297
  dataSourceQuestion: r,
5296
5298
  register: i,
5297
5299
  watch: n
5298
5300
  }) => {
5299
- const [o, s] = be(!1), a = cc(), c = String(r.id), I = n(c) === String(t.id), d = e.option, u = e.optionSelected, f = {
5301
+ const [o, s] = be(!1), a = ac(), c = String(r.id), I = n(c) === String(t.id), d = e.option, u = e.optionSelected, f = {
5300
5302
  backgroundColor: ge(u == null ? void 0 : u.backgroundColor),
5301
5303
  borderRadius: u.cornerRadius
5302
5304
  }, D = {
@@ -5353,7 +5355,7 @@ const Sr = (t, e) => {
5353
5355
  ]
5354
5356
  }
5355
5357
  ) }, t.id);
5356
- }, fd = ({
5358
+ }, Id = ({
5357
5359
  layout: t,
5358
5360
  register: e,
5359
5361
  watch: r,
@@ -5382,7 +5384,7 @@ const Sr = (t, e) => {
5382
5384
  }
5383
5385
  ),
5384
5386
  i.options.map((n) => /* @__PURE__ */ T(
5385
- Id,
5387
+ Nd,
5386
5388
  {
5387
5389
  register: e,
5388
5390
  watch: r,
@@ -5394,14 +5396,14 @@ const Sr = (t, e) => {
5394
5396
  ))
5395
5397
  ]
5396
5398
  }
5397
- ) }), Dd = ({
5399
+ ) }), fd = ({
5398
5400
  option: t,
5399
5401
  layout: e,
5400
5402
  dataSourceQuestion: r,
5401
5403
  register: i,
5402
5404
  watch: n
5403
5405
  }) => {
5404
- const [o, s] = be(!1), a = cc(), c = String(r.id), I = n(c) === String(t.id), d = e.option, u = e.optionSelected, f = {
5406
+ const [o, s] = be(!1), a = ac(), c = String(r.id), I = n(c) === String(t.id), d = e.option, u = e.optionSelected, f = {
5405
5407
  borderRadius: d == null ? void 0 : d.cornerRadius,
5406
5408
  background: ge(d == null ? void 0 : d.backgroundColor),
5407
5409
  borderColor: ge(d == null ? void 0 : d.borderColor),
@@ -5460,7 +5462,7 @@ const Sr = (t, e) => {
5460
5462
  },
5461
5463
  t.id
5462
5464
  );
5463
- }, hd = ({
5465
+ }, Dd = ({
5464
5466
  layout: t,
5465
5467
  watch: e,
5466
5468
  register: r,
@@ -5486,7 +5488,7 @@ const Sr = (t, e) => {
5486
5488
  }
5487
5489
  ),
5488
5490
  /* @__PURE__ */ T("div", { style: { display: "flex", justifyContent: "center", gap: 5 }, children: i.options.map((n) => /* @__PURE__ */ T(
5489
- Dd,
5491
+ fd,
5490
5492
  {
5491
5493
  register: r,
5492
5494
  watch: e,
@@ -5498,7 +5500,7 @@ const Sr = (t, e) => {
5498
5500
  )) })
5499
5501
  ]
5500
5502
  }
5501
- ) }), yd = ({
5503
+ ) }), hd = ({
5502
5504
  children: t,
5503
5505
  backgroundColor: e,
5504
5506
  cornerRadius: r = 0,
@@ -5537,7 +5539,7 @@ const Sr = (t, e) => {
5537
5539
  ),
5538
5540
  t
5539
5541
  ] });
5540
- }, pd = ({ validationErrorsTypes: t, title: e }) => t ? /* @__PURE__ */ T("div", { style: { width: "100%", fontSize: 12 }, children: Object.entries(t).map(([r, i]) => /* @__PURE__ */ T(we, ee(j({}, e), { text: i }), r)) }) : null, Td = ({
5542
+ }, yd = ({ validationErrorsTypes: t, title: e }) => t ? /* @__PURE__ */ T("div", { style: { width: "100%", fontSize: 12 }, children: Object.entries(t).map(([r, i]) => /* @__PURE__ */ T(we, ee(j({}, e), { text: i }), r)) }) : null, pd = ({
5541
5543
  layout: t,
5542
5544
  dataSourceQuestion: e,
5543
5545
  register: r
@@ -5583,7 +5585,7 @@ const Sr = (t, e) => {
5583
5585
  ]
5584
5586
  }
5585
5587
  );
5586
- }, Ad = ({
5588
+ }, Td = ({
5587
5589
  layout: t,
5588
5590
  dataSourceQuestion: e,
5589
5591
  register: r
@@ -5641,7 +5643,7 @@ const Sr = (t, e) => {
5641
5643
  underlyingError: i,
5642
5644
  underlyingBaseError: n
5643
5645
  }) {
5644
- const o = Ae.getErrorKey(e, Hi);
5646
+ const o = Ae.getErrorKey(e, $i);
5645
5647
  super({
5646
5648
  errorCode: e,
5647
5649
  errorCodeKey: o,
@@ -5655,17 +5657,17 @@ const Sr = (t, e) => {
5655
5657
  });
5656
5658
  }
5657
5659
  };
5658
- Rt.MODULE = $i, Rt.ERROR_ENUM_NAME = "GuiModuleError", Rt.SHORT_CODE = "GM";
5660
+ Rt.MODULE = Wi, Rt.ERROR_ENUM_NAME = "GuiModuleError", Rt.SHORT_CODE = "GM";
5659
5661
  let Hr = Rt;
5660
- const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSource: o, properties: s, backgroundColor: a }) => {
5661
- const c = $a(r), { perform: l } = Mr(), I = s ? wl(o.questions, s) : {}, d = gt(null), {
5662
+ const Ad = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSource: o, properties: s, backgroundColor: a }) => {
5663
+ const c = tn.FORM, { perform: l } = Mr(), I = s ? jl(o.questions, s) : {}, d = gt(null), {
5662
5664
  register: u,
5663
5665
  handleSubmit: f,
5664
5666
  formState: { errors: D },
5665
5667
  reset: M,
5666
5668
  watch: g,
5667
5669
  control: E
5668
- } = ld({
5670
+ } = ud({
5669
5671
  criteriaMode: "all",
5670
5672
  defaultValues: I
5671
5673
  });
@@ -5673,7 +5675,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
5673
5675
  "form",
5674
5676
  {
5675
5677
  onSubmit: f((p) => {
5676
- l(ml(p), c), M();
5678
+ l(El(p), c), M();
5677
5679
  }),
5678
5680
  style: {
5679
5681
  height: "100%",
@@ -5720,7 +5722,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
5720
5722
  }), v = (V, F) => F.find((Z) => !Z.questionIds && Z.answerType === V), x = S ? k(String(p.id), n.itemTypes) || v(p.answerType, n.itemTypes) : n.itemTypes.find((V) => V.answerType === p.answerType);
5721
5723
  if (!x) {
5722
5724
  const V = new Hr({
5723
- errorCode: Hi.DECODING_FAILED,
5725
+ errorCode: $i.DECODING_FAILED,
5724
5726
  message: "The question template has not been found"
5725
5727
  });
5726
5728
  l(V);
@@ -5731,7 +5733,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
5731
5733
  /** Question */
5732
5734
  /* @__PURE__ */ T(Ze, { children: [
5733
5735
  /* @__PURE__ */ T(
5734
- yd,
5736
+ hd,
5735
5737
  {
5736
5738
  backgroundColor: x == null ? void 0 : x.backgroundColor,
5737
5739
  cornerRadius: x == null ? void 0 : x.cornerRadius,
@@ -5741,7 +5743,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
5741
5743
  validationBorderWidth: x == null ? void 0 : x.validationBorderWidth,
5742
5744
  children: [
5743
5745
  ae === fr.TEXT_EXPANDABLE && /* @__PURE__ */ T(
5744
- Ad,
5746
+ Td,
5745
5747
  {
5746
5748
  layout: x,
5747
5749
  dataSourceQuestion: p,
@@ -5749,7 +5751,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
5749
5751
  }
5750
5752
  ),
5751
5753
  ae === fr.TEXT_SINGLE_LINE && /* @__PURE__ */ T(
5752
- Td,
5754
+ pd,
5753
5755
  {
5754
5756
  layout: x,
5755
5757
  dataSourceQuestion: p,
@@ -5757,7 +5759,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
5757
5759
  }
5758
5760
  ),
5759
5761
  ae === fr.SELECTOR_OPTIONS && /* @__PURE__ */ T(
5760
- fd,
5762
+ Id,
5761
5763
  {
5762
5764
  layout: x,
5763
5765
  dataSourceQuestion: p,
@@ -5766,7 +5768,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
5766
5768
  }
5767
5769
  ),
5768
5770
  ae === fr.SELECTOR_BUTTONS && /* @__PURE__ */ T(
5769
- hd,
5771
+ Dd,
5770
5772
  {
5771
5773
  layout: x,
5772
5774
  dataSourceQuestion: p,
@@ -5775,7 +5777,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
5775
5777
  }
5776
5778
  ),
5777
5779
  ae === fr.SELECTOR_DROPDOWN && /* @__PURE__ */ T(
5778
- gd,
5780
+ Md,
5779
5781
  {
5780
5782
  control: E,
5781
5783
  layout: x,
@@ -5784,7 +5786,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
5784
5786
  }
5785
5787
  ),
5786
5788
  ae === fr.MULTI_SELECTOR_DROPDOWN && /* @__PURE__ */ T(
5787
- Nd,
5789
+ gd,
5788
5790
  {
5789
5791
  control: E,
5790
5792
  layout: x,
@@ -5796,7 +5798,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
5796
5798
  }
5797
5799
  ),
5798
5800
  B && /* @__PURE__ */ T(
5799
- pd,
5801
+ yd,
5800
5802
  {
5801
5803
  validationErrorsTypes: B,
5802
5804
  title: x.validationMessage
@@ -5825,15 +5827,15 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
5825
5827
  alignItems: "flex-end",
5826
5828
  padding: "2px"
5827
5829
  },
5828
- children: r.map((p, S) => /* @__PURE__ */ T(Zi, j({ dataTestId: "question-button" }, p), S))
5830
+ children: r.map((p, S) => /* @__PURE__ */ T(Hi, j({ dataTestId: "question-button" }, p), S))
5829
5831
  }
5830
5832
  )
5831
5833
  ]
5832
5834
  }
5833
5835
  ) });
5834
- }, md = {
5836
+ }, Ed = {
5835
5837
  display: "none"
5836
- }, jd = {
5838
+ }, md = {
5837
5839
  display: "flex",
5838
5840
  alignItems: "center",
5839
5841
  justifyContent: "center",
@@ -5843,7 +5845,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
5843
5845
  borderRadius: "16px",
5844
5846
  backgroundColor: "#7e57c5",
5845
5847
  cursor: "pointer"
5846
- }, wd = {
5848
+ }, jd = {
5847
5849
  position: "relative",
5848
5850
  display: "flex",
5849
5851
  flexGrow: 1,
@@ -5855,7 +5857,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
5855
5857
  width: "100%",
5856
5858
  minHeight: "100%",
5857
5859
  overflow: "auto"
5858
- }, Sd = ({
5860
+ }, wd = ({
5859
5861
  header: t,
5860
5862
  footer: e,
5861
5863
  buttons: r,
@@ -5898,14 +5900,14 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
5898
5900
  return /* @__PURE__ */ T(Kt, { header: t, footer: e, backgroundColor: i, children: /* @__PURE__ */ T(Ze, { children: /* @__PURE__ */ T(
5899
5901
  "div",
5900
5902
  {
5901
- style: ee(j({}, wd), {
5903
+ style: ee(j({}, jd), {
5902
5904
  justifyContent: "center"
5903
5905
  }),
5904
5906
  children: [
5905
5907
  /* @__PURE__ */ T(
5906
5908
  "input",
5907
5909
  ee(j({
5908
- style: md,
5910
+ style: Ed,
5909
5911
  ref: s,
5910
5912
  type: "file",
5911
5913
  accept: "image/*"
@@ -5913,13 +5915,13 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
5913
5915
  onInput: c
5914
5916
  })
5915
5917
  ),
5916
- /* @__PURE__ */ T("button", { style: jd, onClick: l, children: /* @__PURE__ */ T(Pe, { imageId: (d = (I = r == null ? void 0 : r[0]) == null ? void 0 : I.image) == null ? void 0 : d.imageId }) })
5918
+ /* @__PURE__ */ T("button", { style: md, onClick: l, children: /* @__PURE__ */ T(Pe, { imageId: (d = (I = r == null ? void 0 : r[0]) == null ? void 0 : I.image) == null ? void 0 : d.imageId }) })
5917
5919
  ]
5918
5920
  }
5919
5921
  ) }) });
5920
- }, _d = {
5922
+ }, Sd = {
5921
5923
  display: "none"
5922
- }, Od = {
5924
+ }, _d = {
5923
5925
  display: "flex",
5924
5926
  alignItems: "center",
5925
5927
  justifyContent: "center",
@@ -5929,7 +5931,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
5929
5931
  borderRadius: "16px",
5930
5932
  background: "#7e57c5",
5931
5933
  cursor: "pointer"
5932
- }, xd = {
5934
+ }, Od = {
5933
5935
  position: "relative",
5934
5936
  display: "flex",
5935
5937
  alignItems: "center",
@@ -5938,7 +5940,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
5938
5940
  width: "100%",
5939
5941
  minHeight: "100%",
5940
5942
  overflow: "auto"
5941
- }, zd = ({
5943
+ }, xd = ({
5942
5944
  header: t,
5943
5945
  footer: e,
5944
5946
  backgroundColor: r,
@@ -5981,7 +5983,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
5981
5983
  return tt(() => {
5982
5984
  L(null, null, function* () {
5983
5985
  if (Je.isDesktop) return;
5984
- const u = yield Sl();
5986
+ const u = yield wl();
5985
5987
  (u === "denied" || u === "error") && o({
5986
5988
  cancel: !1,
5987
5989
  permissionDenied: !0,
@@ -5991,14 +5993,14 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
5991
5993
  }, []), /* @__PURE__ */ T(Kt, { header: t, footer: e, backgroundColor: r, children: /* @__PURE__ */ T(Ze, { children: /* @__PURE__ */ T(
5992
5994
  "div",
5993
5995
  {
5994
- style: ee(j({}, xd), {
5996
+ style: ee(j({}, Od), {
5995
5997
  justifyContent: "center"
5996
5998
  }),
5997
5999
  children: [
5998
6000
  /* @__PURE__ */ T(
5999
6001
  "input",
6000
6002
  ee(j({
6001
- style: _d,
6003
+ style: Sd,
6002
6004
  ref: s,
6003
6005
  type: "file",
6004
6006
  accept: "image/*",
@@ -6007,7 +6009,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
6007
6009
  onInput: c
6008
6010
  })
6009
6011
  ),
6010
- /* @__PURE__ */ T("button", { style: Od, onClick: l, children: /* @__PURE__ */ T(Pe, { imageId: (d = (I = i == null ? void 0 : i[0]) == null ? void 0 : I.image) == null ? void 0 : d.imageId }) })
6012
+ /* @__PURE__ */ T("button", { style: _d, onClick: l, children: /* @__PURE__ */ T(Pe, { imageId: (d = (I = i == null ? void 0 : i[0]) == null ? void 0 : I.image) == null ? void 0 : d.imageId }) })
6011
6013
  ]
6012
6014
  }
6013
6015
  ) }) });
@@ -6019,7 +6021,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
6019
6021
  } catch (e) {
6020
6022
  return "unknown";
6021
6023
  }
6022
- }), vd = () => L(null, null, function* () {
6024
+ }), zd = () => L(null, null, function* () {
6023
6025
  try {
6024
6026
  return yield navigator.permissions.query({ name: "geolocation" });
6025
6027
  } catch (t) {
@@ -6065,13 +6067,13 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
6065
6067
  t
6066
6068
  );
6067
6069
  });
6068
- }), Cd = {
6070
+ }), vd = {
6069
6071
  height: "100%",
6070
6072
  fontFamily: "sans-serif",
6071
6073
  display: "flex",
6072
6074
  flexDirection: "column",
6073
6075
  gap: "15px"
6074
- }, bd = {
6076
+ }, Cd = {
6075
6077
  flex: "1 1 100%",
6076
6078
  display: "flex",
6077
6079
  justifyContent: "flex-start",
@@ -6083,7 +6085,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
6083
6085
  width: "100%",
6084
6086
  overflow: "auto",
6085
6087
  position: "relative"
6086
- }, Ld = {
6088
+ }, bd = {
6087
6089
  position: "absolute",
6088
6090
  // TODO: move popup with styles with overlay styles to common component (BaseContainer?)
6089
6091
  width: "100%",
@@ -6098,25 +6100,25 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
6098
6100
  zIndex: 1e3,
6099
6101
  pointerEvents: "auto",
6100
6102
  cursor: "default"
6101
- }, kd = {
6103
+ }, Ld = {
6102
6104
  width: "100%",
6103
6105
  height: "auto",
6104
6106
  marginBottom: "32px",
6105
6107
  aspectRatio: 1.61
6106
- }, Ud = {
6108
+ }, kd = {
6107
6109
  marginBottom: 20,
6108
6110
  lineHeight: "39.2px",
6109
6111
  width: "100%"
6110
- }, Rd = {
6112
+ }, Ud = {
6111
6113
  lineHeight: "28px",
6112
6114
  fontWeight: "400",
6113
6115
  width: "100%"
6114
- }, Qd = {
6116
+ }, Rd = {
6115
6117
  position: "relative",
6116
6118
  padding: "32px 24px 0 24px",
6117
6119
  border: "1px solid rgba(0, 0, 0, 0.06)",
6118
6120
  width: "min(400px, calc(100vw - 32px))"
6119
- }, Pd = {
6121
+ }, Qd = {
6120
6122
  marginBottom: "10px",
6121
6123
  fontWeight: 500,
6122
6124
  display: "-webkit-box",
@@ -6125,20 +6127,20 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
6125
6127
  overflow: "hidden",
6126
6128
  textOverflow: "ellipsis",
6127
6129
  lineClamp: 2
6128
- }, Yd = {
6130
+ }, Pd = {
6129
6131
  marginBottom: "84px",
6130
6132
  fontWeight: 400
6131
- }, Fd = {
6133
+ }, Yd = {
6132
6134
  height: "100%",
6133
6135
  overflow: "scroll",
6134
6136
  maxHeight: "calc(100dvh - 190px)"
6135
- }, Vd = {
6137
+ }, Fd = {
6136
6138
  position: "absolute",
6137
6139
  bottom: 0,
6138
6140
  left: 0,
6139
6141
  padding: "24px",
6140
6142
  width: "100%"
6141
- }, Bd = ({
6143
+ }, Vd = ({
6142
6144
  title: t,
6143
6145
  header: e,
6144
6146
  footer: r,
@@ -6150,13 +6152,13 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
6150
6152
  askEveryTime: c
6151
6153
  }) => {
6152
6154
  var x, ae;
6153
- const l = $a(o), { perform: I } = Mr(), { setIsProcessingCallback: d } = pl(), [u, f] = be(!1), D = () => {
6155
+ const l = tn.FORM, { perform: I } = Mr(), { setIsProcessingCallback: d } = yl(), [u, f] = be(!1), D = () => {
6154
6156
  var B;
6155
6157
  (B = g == null ? void 0 : g.popups) != null && B.system_restricted || f(!0);
6156
6158
  }, M = () => {
6157
6159
  var B;
6158
6160
  (B = g == null ? void 0 : g.popups) != null && B.system_restricted || f(!1);
6159
- }, { devSettings: g } = yl(), E = !!((ae = (x = g == null ? void 0 : g.popups) == null ? void 0 : x.system_restricted) != null && ae.isOpen);
6161
+ }, { devSettings: g } = hl(), E = !!((ae = (x = g == null ? void 0 : g.popups) == null ? void 0 : x.system_restricted) != null && ae.isOpen);
6160
6162
  tt(() => {
6161
6163
  g && f(E);
6162
6164
  }, [E, g]);
@@ -6164,7 +6166,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
6164
6166
  enableHighAccuracy: !0,
6165
6167
  timeout: 15e3,
6166
6168
  maximumAge: 6e4
6167
- }, p = a == null ? void 0 : a.find((B) => B.reason === El.SYSTEM_RESTRICTED);
6169
+ }, p = a == null ? void 0 : a.find((B) => B.reason === Al.SYSTEM_RESTRICTED);
6168
6170
  Gt(() => {
6169
6171
  Je.isSafari || c || d == null || d(!0);
6170
6172
  }, []), tt(() => {
@@ -6184,7 +6186,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
6184
6186
  if (Je.isSafari) return;
6185
6187
  let B = !0, J = null;
6186
6188
  return L(null, null, function* () {
6187
- const V = yield vd();
6189
+ const V = yield zd();
6188
6190
  V && (J = V, V.onchange = () => L(null, null, function* () {
6189
6191
  if (V.state === "denied" && (d == null || d(!0), I(
6190
6192
  {
@@ -6230,11 +6232,11 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
6230
6232
  B.preventDefault(), M();
6231
6233
  };
6232
6234
  return /* @__PURE__ */ T(Kt, { header: e, footer: r, backgroundColor: s, children: [
6233
- /* @__PURE__ */ T("div", { style: Cd, children: [
6234
- /* @__PURE__ */ T("div", { style: bd, children: [
6235
- i && /* @__PURE__ */ T("div", { style: kd, children: /* @__PURE__ */ T(Pe, j({}, i)) }),
6236
- t && /* @__PURE__ */ T("div", { style: Ud, children: /* @__PURE__ */ T(we, j({}, t)) }),
6237
- n && /* @__PURE__ */ T("div", { style: Rd, children: /* @__PURE__ */ T(nn, j({}, n)) })
6235
+ /* @__PURE__ */ T("div", { style: vd, children: [
6236
+ /* @__PURE__ */ T("div", { style: Cd, children: [
6237
+ i && /* @__PURE__ */ T("div", { style: Ld, children: /* @__PURE__ */ T(Pe, j({}, i)) }),
6238
+ t && /* @__PURE__ */ T("div", { style: kd, children: /* @__PURE__ */ T(we, j({}, t)) }),
6239
+ n && /* @__PURE__ */ T("div", { style: Ud, children: /* @__PURE__ */ T(nn, j({}, n)) })
6238
6240
  ] }),
6239
6241
  !!(o != null && o.length) && /* @__PURE__ */ T(
6240
6242
  "div",
@@ -6244,7 +6246,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
6244
6246
  flexDirection: "column"
6245
6247
  },
6246
6248
  children: o.map((B, J) => /* @__PURE__ */ T("div", { style: { padding: "5px" }, children: /* @__PURE__ */ T(
6247
- Zi,
6249
+ Hi,
6248
6250
  j(j({
6249
6251
  dataTestId: "question-button"
6250
6252
  }, B), B.type === "FORM" ? {
@@ -6257,22 +6259,22 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
6257
6259
  p && u && /* @__PURE__ */ T(
6258
6260
  "div",
6259
6261
  {
6260
- style: Ld,
6262
+ style: bd,
6261
6263
  onPointerDown: (B) => {
6262
6264
  B.preventDefault(), B.stopPropagation(), M();
6263
6265
  },
6264
6266
  children: /* @__PURE__ */ T(
6265
6267
  "div",
6266
6268
  {
6267
- style: ee(j({}, Qd), {
6269
+ style: ee(j({}, Rd), {
6268
6270
  borderRadius: (p == null ? void 0 : p.cornerRadius) || "27px",
6269
6271
  backgroundColor: (p == null ? void 0 : p.backgroundColor) || "#ffffff"
6270
6272
  }),
6271
6273
  children: [
6272
- /* @__PURE__ */ T("div", { style: Pd, children: /* @__PURE__ */ T(we, j({}, j({ fontSize: "24px" }, p.title))) }),
6273
- /* @__PURE__ */ T("div", { style: Yd, children: /* @__PURE__ */ T("div", { style: Fd, children: /* @__PURE__ */ T(we, j({}, j({ fontSize: "17px" }, p.message))) }) }),
6274
- p.actionButton1 && /* @__PURE__ */ T("div", { style: Vd, children: /* @__PURE__ */ T(
6275
- Zi,
6274
+ /* @__PURE__ */ T("div", { style: Qd, children: /* @__PURE__ */ T(we, j({}, j({ fontSize: "24px" }, p.title))) }),
6275
+ /* @__PURE__ */ T("div", { style: Pd, children: /* @__PURE__ */ T("div", { style: Yd, children: /* @__PURE__ */ T(we, j({}, j({ fontSize: "17px" }, p.message))) }) }),
6276
+ p.actionButton1 && /* @__PURE__ */ T("div", { style: Fd, children: /* @__PURE__ */ T(
6277
+ Hi,
6276
6278
  j(j({
6277
6279
  dataTestId: "question-button"
6278
6280
  }, p.actionButton1), p.actionButton1.type === "FORM" ? { onClick: v } : {})
@@ -6289,7 +6291,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
6289
6291
  const s = n != null && n.length ? JSON.stringify(n) : "default-key";
6290
6292
  if (e === ct.STATUS)
6291
6293
  return /* @__PURE__ */ T(
6292
- Ll,
6294
+ bl,
6293
6295
  {
6294
6296
  header: r == null ? void 0 : r.header,
6295
6297
  footer: r == null ? void 0 : r.footer,
@@ -6302,7 +6304,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
6302
6304
  );
6303
6305
  if (e === ct.INFO)
6304
6306
  return /* @__PURE__ */ T(
6305
- Rl,
6307
+ Ul,
6306
6308
  {
6307
6309
  header: r == null ? void 0 : r.header,
6308
6310
  footer: r == null ? void 0 : r.footer,
@@ -6315,7 +6317,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
6315
6317
  );
6316
6318
  if (e === ct.GEOLOCATION)
6317
6319
  return /* @__PURE__ */ T(
6318
- Bd,
6320
+ Vd,
6319
6321
  {
6320
6322
  header: r.header,
6321
6323
  footer: r.footer,
@@ -6340,7 +6342,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
6340
6342
  );
6341
6343
  if (e === ct.INFO_DETAILS)
6342
6344
  return /* @__PURE__ */ T(
6343
- Vl,
6345
+ Fl,
6344
6346
  {
6345
6347
  header: r == null ? void 0 : r.header,
6346
6348
  title: r == null ? void 0 : r.title,
@@ -6352,7 +6354,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
6352
6354
  );
6353
6355
  if (e === ct.CAMERA)
6354
6356
  return /* @__PURE__ */ T(
6355
- zd,
6357
+ xd,
6356
6358
  {
6357
6359
  header: r == null ? void 0 : r.header,
6358
6360
  buttons: r == null ? void 0 : r.buttons,
@@ -6363,7 +6365,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
6363
6365
  );
6364
6366
  if (e === ct.GALLERY)
6365
6367
  return /* @__PURE__ */ T(
6366
- Sd,
6368
+ wd,
6367
6369
  {
6368
6370
  header: r == null ? void 0 : r.header,
6369
6371
  buttons: r == null ? void 0 : r.buttons,
@@ -6374,7 +6376,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
6374
6376
  );
6375
6377
  if (i && (i != null && i.questions.length) && e === ct.QUESTIONS)
6376
6378
  return /* @__PURE__ */ T(
6377
- Ed,
6379
+ Ad,
6378
6380
  {
6379
6381
  dataSource: i,
6380
6382
  properties: n,
@@ -6389,19 +6391,19 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
6389
6391
  );
6390
6392
  if (e === ct.QUESTIONS && !i) {
6391
6393
  const c = new Hr({
6392
- errorCode: Hi.DECODING_FAILED,
6394
+ errorCode: $i.DECODING_FAILED,
6393
6395
  message: "No data for questions"
6394
6396
  });
6395
6397
  return o(c), null;
6396
6398
  }
6397
6399
  const a = new Hr({
6398
- errorCode: Hi.DECODING_FAILED,
6400
+ errorCode: $i.DECODING_FAILED,
6399
6401
  message: "Unsupported step template"
6400
6402
  });
6401
6403
  return o(a), null;
6402
6404
  };
6403
6405
  let Pn = !1;
6404
- const Ps = ({ children: t }) => /* @__PURE__ */ T("div", { part: "gui-idv", id: "gui-idv-web-c", style: { backgroundColor: "white", height: "100%", width: "100%" }, children: t }), Wd = ({ isProcessing: t, moduleProps: e, perform: r, devSettings: i }) => {
6406
+ const Ps = ({ children: t }) => /* @__PURE__ */ T("div", { part: "gui-idv", id: "gui-idv-web-c", style: { backgroundColor: "white", height: "100%", width: "100%" }, children: t }), Bd = ({ isProcessing: t, moduleProps: e, perform: r, devSettings: i }) => {
6405
6407
  const { templateId: n, templateLayout: o, dataSource: s, properties: a } = e, c = (l, I) => {
6406
6408
  r && r(l, I);
6407
6409
  };
@@ -6428,7 +6430,7 @@ const Ps = ({ children: t }) => /* @__PURE__ */ T("div", { part: "gui-idv", id:
6428
6430
  ) })
6429
6431
  }
6430
6432
  );
6431
- }, Vr = class Vr extends fl {
6433
+ }, Vr = class Vr extends Il {
6432
6434
  constructor() {
6433
6435
  super(), this._mounted = !1, this._shadowRoot = this.attachShadow({ mode: "open" }), this.props = null;
6434
6436
  }
@@ -6470,7 +6472,7 @@ const Ps = ({ children: t }) => /* @__PURE__ */ T("div", { part: "gui-idv", id:
6470
6472
  }
6471
6473
  ur(
6472
6474
  /* @__PURE__ */ T(
6473
- Wd,
6475
+ Bd,
6474
6476
  {
6475
6477
  moduleProps: this.props.moduleProps,
6476
6478
  perform: this.props.perform,
@@ -6498,10 +6500,10 @@ const Ps = ({ children: t }) => /* @__PURE__ */ T("div", { part: "gui-idv", id:
6498
6500
  Pn = !1;
6499
6501
  }
6500
6502
  };
6501
- Vr.displayName = $i, Vr.getSupportedTemplates = () => Object.values(ct), Vr.getIdentifier = () => $i;
6502
- let Xi = Vr;
6503
- Dl($i, Xi);
6504
- const $d = (t, e) => ({
6503
+ Vr.displayName = Wi, Vr.getSupportedTemplates = () => Object.values(ct), Vr.getIdentifier = () => Wi;
6504
+ let Ji = Vr;
6505
+ fl(Wi, Ji);
6506
+ const Wd = (t, e) => ({
6505
6507
  _isInitialized: !1,
6506
6508
  _initializationInProgress: !1,
6507
6509
  _isConnectedToPlatform: !1,
@@ -6603,13 +6605,13 @@ const $d = (t, e) => ({
6603
6605
  if (e()._isInitialized)
6604
6606
  return console.warn("Idv:: Already initialized"), {};
6605
6607
  if (e()._initializationInProgress)
6606
- return { error: new Yi({
6607
- errorCode: en.INITIALIZATION_IN_PROGRESS
6608
+ return { error: new Pi({
6609
+ errorCode: qi.INITIALIZATION_IN_PROGRESS
6608
6610
  }) };
6609
6611
  t({ _initializationInProgress: !0 }), yield e().setAndInitFetchService(), t({
6610
6612
  modulesConfig: i.modulesConfig || {}
6611
6613
  });
6612
- let n = [Xi];
6614
+ let n = [Ji];
6613
6615
  if (Array.isArray(i == null ? void 0 : i.includedModules)) {
6614
6616
  const s = i.includedModules.filter(
6615
6617
  (a) => typeof a == "function" && a.displayName && !n.some((c) => c.displayName === a.displayName)
@@ -6690,7 +6692,7 @@ const $d = (t, e) => ({
6690
6692
  errorCode: Re.SCENARIO_IN_PROGRESS
6691
6693
  })
6692
6694
  };
6693
- const n = Ml(i);
6695
+ const n = dl(i);
6694
6696
  n && (e().removeCurrentSessionDataLsAndStore(), t({ _sessionIdFromUrl: n }));
6695
6697
  const o = yield e().connectByUrl(i);
6696
6698
  if (o.error)
@@ -6780,7 +6782,7 @@ const $d = (t, e) => ({
6780
6782
  }) };
6781
6783
  const n = yield e().fetchService.listWorkflows(i);
6782
6784
  if (n.code !== 0) {
6783
- const o = n.code === 4 ? wt.HTTP_ISSUE : wt.PROVIDER_ERROR, s = new Bi({ errorCode: o });
6785
+ const o = n.code === 4 ? wt.HTTP_ISSUE : wt.PROVIDER_ERROR, s = new Vi({ errorCode: o });
6784
6786
  return { error: new St({
6785
6787
  errorCode: jt.WORKFLOW_ISSUE,
6786
6788
  message: "No workflow list",
@@ -6808,7 +6810,7 @@ const $d = (t, e) => ({
6808
6810
  const n = e()._sessionIdFromUrl, o = yield e().fetchService.getWorkflow(i, n), s = Eo(o.data), a = ((M = s.client) == null ? void 0 : M.steps) && s.client.steps.some((g) => g.templateId === Vn);
6809
6811
  let c = null;
6810
6812
  if (o.code === 4 && (c = wt.HTTP_ISSUE), o.code !== 0 && o.code !== 4 && (c = wt.PROVIDER_ERROR), o.code === 0 && !o.data.id && (c = wt.DECODING_FAILED), o.code === 0 && o.data.id && s === null && (c = wt.DECODING_FAILED), a || (c = wt.DECODING_FAILED), c !== null) {
6811
- const g = new Bi({
6813
+ const g = new Vi({
6812
6814
  errorCode: c
6813
6815
  });
6814
6816
  return { error: new St({
@@ -6816,7 +6818,7 @@ const $d = (t, e) => ({
6816
6818
  underlyingBaseError: g
6817
6819
  }) };
6818
6820
  }
6819
- const l = e().externalModules, I = s.steps, { isAllTemplatesSupported: d, unsupportedSteps: u } = ol(l, I);
6821
+ const l = e().externalModules, I = s.steps, { isAllTemplatesSupported: d, unsupportedSteps: u } = nl(l, I);
6820
6822
  d || console.log("IDV:: Warning. Unsupported steps found: ", u);
6821
6823
  const f = e().workflowId;
6822
6824
  f && i !== f && l.forEach((g) => {
@@ -6934,11 +6936,11 @@ const $d = (t, e) => ({
6934
6936
  deinitialize() {
6935
6937
  return L(this, null, function* () {
6936
6938
  if (!e()._isInitialized)
6937
- return { error: new Vi({
6939
+ return { error: new Fi({
6938
6940
  errorCode: Ui.INITIALIZATION_REQUIRED
6939
6941
  }) };
6940
6942
  if (e().currentScreenConfig)
6941
- return { error: new Vi({
6943
+ return { error: new Fi({
6942
6944
  errorCode: Ui.SCENARIO_IN_PROGRESS
6943
6945
  }) };
6944
6946
  const i = yield e().deinitializationIdv();
@@ -6946,7 +6948,7 @@ const $d = (t, e) => ({
6946
6948
  });
6947
6949
  }
6948
6950
  });
6949
- class Hd {
6951
+ class $d {
6950
6952
  constructor() {
6951
6953
  this._connectionTokenExpirationBufferMs = 6e4, this._origin = "", this._locale = "", this._workflowId = "", this._session = null, this._apiKeyAuthToken = { token: "", expiresAt: 0 }, this._connectionToken = { token: "", expiresAt: 0 }, this._connect = null, this._getErrorTextFromError = (e) => e instanceof Error ? e.message : String(e);
6952
6954
  }
@@ -7090,7 +7092,7 @@ class Hd {
7090
7092
  authorization: e,
7091
7093
  "content-type": "application/json"
7092
7094
  },
7093
- body: JSON.stringify(j(j({}, gl()), r && { sessionId: r })),
7095
+ body: JSON.stringify(j(j({}, Ml()), r && { sessionId: r })),
7094
7096
  method: i
7095
7097
  }), s = { httpCode: o.status, method: i, url: n };
7096
7098
  if (!o.ok) {
@@ -7389,7 +7391,7 @@ class Hd {
7389
7391
  const s = {
7390
7392
  locale: r
7391
7393
  };
7392
- al(i) && (s.metadata = i), n && (s.location = n);
7394
+ sl(i) && (s.metadata = i), n && (s.location = n);
7393
7395
  const a = yield this.getConnectionToken(!1), c = this._getAuthorizationHeaderFromConnectionToken(a), l = yield this._fetchSessionByWorkflowId(c, e, s);
7394
7396
  return l.code === 0 && (this._session = l.data, this._locale = r), l;
7395
7397
  });
@@ -7438,12 +7440,12 @@ class Hd {
7438
7440
  });
7439
7441
  }
7440
7442
  }
7441
- const Zd = (t, e) => ({
7443
+ const Hd = (t, e) => ({
7442
7444
  fetchService: null,
7443
7445
  isProcessing: !1,
7444
7446
  isFinalWaitingUi: !1,
7445
7447
  setAndInitFetchService: () => L(null, null, function* () {
7446
- const i = new Hd();
7448
+ const i = new $d();
7447
7449
  t({ fetchService: i });
7448
7450
  }),
7449
7451
  setFinalWaitingUi: (i) => {
@@ -7457,7 +7459,7 @@ const Zd = (t, e) => ({
7457
7459
  errorCode: s,
7458
7460
  message: JSON.stringify(o.data)
7459
7461
  });
7460
- return { error: new Fi({
7462
+ return { error: new Yi({
7461
7463
  errorCode: ki.CONNECTION_ISSUE,
7462
7464
  underlyingBaseError: a
7463
7465
  }) };
@@ -7485,7 +7487,7 @@ const Zd = (t, e) => ({
7485
7487
  const s = o.code === 4 ? $t.HTTP_ISSUE : $t.PROVIDER_ERROR, a = new Qr({
7486
7488
  errorCode: s,
7487
7489
  message: JSON.stringify(o.data)
7488
- }), c = new Fi({
7490
+ }), c = new Yi({
7489
7491
  errorCode: ki.CONNECTION_ISSUE,
7490
7492
  underlyingBaseError: a
7491
7493
  });
@@ -7526,11 +7528,11 @@ const Zd = (t, e) => ({
7526
7528
  },
7527
7529
  loadModules: (i) => L(null, null, function* () {
7528
7530
  try {
7529
- const n = yield Gd(i);
7531
+ const n = yield Zd(i);
7530
7532
  return t(() => ({ externalModules: n })), {};
7531
7533
  } catch (n) {
7532
- return e().resetFetchService(), e().resetProps(), { error: new Yi({
7533
- errorCode: en.MODULES_INSTANTIATION_FAILURE
7534
+ return e().resetFetchService(), e().resetProps(), { error: new Pi({
7535
+ errorCode: qi.MODULES_INSTANTIATION_FAILURE
7534
7536
  }) };
7535
7537
  }
7536
7538
  }),
@@ -7545,7 +7547,7 @@ const Zd = (t, e) => ({
7545
7547
  },
7546
7548
  _pushStep: (i, n, o) => L(null, null, function* () {
7547
7549
  let s = null;
7548
- return yield rl(() => L(null, null, function* () {
7550
+ return yield tl(() => L(null, null, function* () {
7549
7551
  const l = yield e().fetchService.pushData(i, n, o);
7550
7552
  let I = null;
7551
7553
  if (l.code === 4 && (I = at.HTTP_ISSUE), l.code !== 0 && l.code !== 4 && (I = at.PROVIDER_ERROR), I !== null) {
@@ -7569,7 +7571,7 @@ const Zd = (t, e) => ({
7569
7571
  },
7570
7572
  _getSessionStateNextStepConditionResult: () => L(null, null, function* () {
7571
7573
  var D, M, g;
7572
- const i = yield e().fetchService.getSessionState(), n = i.code === 0, o = n ? i.data : null, s = (D = o == null ? void 0 : o.currentStep) != null ? D : "", a = o == null ? void 0 : o.isProcessingFiles, c = (g = (M = o == null ? void 0 : o.workflow) == null ? void 0 : M.steps) != null ? g : [], l = nl(c, s), I = i.code === 4, d = i.code !== 0 && i.code !== 4, u = n && (!i.data.workflow || !i.data.currentStep);
7574
+ const i = yield e().fetchService.getSessionState(), n = i.code === 0, o = n ? i.data : null, s = (D = o == null ? void 0 : o.currentStep) != null ? D : "", a = o == null ? void 0 : o.isProcessingFiles, c = (g = (M = o == null ? void 0 : o.workflow) == null ? void 0 : M.steps) != null ? g : [], l = il(c, s), I = i.code === 4, d = i.code !== 0 && i.code !== 4, u = n && (!i.data.workflow || !i.data.currentStep);
7573
7575
  let f = null;
7574
7576
  if (c && !l && (f = at.NOT_DATA_TYPE), I && (f = at.HTTP_ISSUE), d && (f = at.PROVIDER_ERROR), a && (f = at.IS_PROCESSING), u && (f = at.DECODING_FAILED), f !== null) {
7575
7577
  const E = new Pr({ errorCode: f });
@@ -7669,7 +7671,7 @@ const Zd = (t, e) => ({
7669
7671
  e().setFinalStepAndStopProcess();
7670
7672
  return;
7671
7673
  }
7672
- if (i.errorCode) {
7674
+ if (i.errorEnumName) {
7673
7675
  const u = i, f = new $e({
7674
7676
  errorCode: We.MODULES_ISSUE,
7675
7677
  message: "Error from external module",
@@ -7718,13 +7720,14 @@ const Zd = (t, e) => ({
7718
7720
  templateId: u.client.templateId,
7719
7721
  dataSource: (l = u.dataSource) != null ? l : null,
7720
7722
  properties: o,
7723
+ stepType: u.type,
7721
7724
  locale: e().locale
7722
- })), s && (s.sessionId = (I = e().currentSessionData) == null ? void 0 : I.sessionId, s.serviceToken = e().serviceToken), s && cl((d = u == null ? void 0 : u.client) == null ? void 0 : d.templateLayout)) {
7725
+ })), s && (s.sessionId = (I = e().currentSessionData) == null ? void 0 : I.sessionId, s.serviceToken = e().serviceToken), s && al((d = u == null ? void 0 : u.client) == null ? void 0 : d.templateLayout)) {
7723
7726
  const f = Ts(u.client.templateLayout, e().layout);
7724
7727
  f && (s.templateLayout = f);
7725
7728
  }
7726
7729
  }
7727
- const a = il(e().externalModules, n.steps, i);
7730
+ const a = rl(e().externalModules, n.steps, i);
7728
7731
  if (s === null || !a) {
7729
7732
  const u = new $e({
7730
7733
  errorCode: We.UNKNOWN_STEP,
@@ -7755,7 +7758,7 @@ const Zd = (t, e) => ({
7755
7758
  })),
7756
7759
  resetFetchService: () => t(() => ({ fetchService: null }))
7757
7760
  });
7758
- function Gd(t) {
7761
+ function Zd(t) {
7759
7762
  return L(this, null, function* () {
7760
7763
  const e = [];
7761
7764
  for (const i of t)
@@ -7767,15 +7770,15 @@ function Gd(t) {
7767
7770
  return e.filter((i) => i !== null);
7768
7771
  });
7769
7772
  }
7770
- const Ue = Pu(
7771
- (...t) => j(j(j({}, Il(...t)), $d(...t)), Zd(...t))
7772
- ), Kd = (t) => /^[a-z][a-z0-9]*-[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t) && t.length <= 100, Ys = (t, e) => {
7773
- if (!Kd(t))
7773
+ const Ue = Qu(
7774
+ (...t) => j(j(j({}, Nl(...t)), Wd(...t)), Hd(...t))
7775
+ ), Gd = (t) => /^[a-z][a-z0-9]*-[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t) && t.length <= 100, Ys = (t, e) => {
7776
+ if (!Gd(t))
7774
7777
  throw new Error(`Invalid component name: ${t}`);
7775
7778
  const r = document.createElement(t);
7776
7779
  return r.style.width = "100%", r.style.height = "100%", r.setProps(e), r;
7777
7780
  };
7778
- class Jd {
7781
+ class Kd {
7779
7782
  constructor(e) {
7780
7783
  this.isPortrait = !1, this.isLandscape = !1, this.orientation = "portrait", this._handleOrientationChange = () => {
7781
7784
  const r = this._getOrientation();
@@ -7793,7 +7796,7 @@ class Jd {
7793
7796
  }
7794
7797
  }
7795
7798
  var Yn = { exports: {} }, Fs;
7796
- function Xd() {
7799
+ function Jd() {
7797
7800
  return Fs || (Fs = 1, (function(t) {
7798
7801
  t.exports = /******/
7799
7802
  (function(e) {
@@ -8214,14 +8217,14 @@ function Xd() {
8214
8217
  ]);
8215
8218
  })(Yn)), Yn.exports;
8216
8219
  }
8217
- var qd = Xd(), eM = Object.defineProperty, gr = (t, e, r, i) => {
8220
+ var Xd = Jd(), qd = Object.defineProperty, gr = (t, e, r, i) => {
8218
8221
  for (var n = void 0, o = t.length - 1, s; o >= 0; o--)
8219
8222
  (s = t[o]) && (n = s(e, r, n) || n);
8220
- return n && eM(e, r, n), n;
8223
+ return n && qd(e, r, n), n;
8221
8224
  };
8222
8225
  const vo = class vo extends Lr {
8223
8226
  constructor() {
8224
- super(...arguments), this._currentProgressElement = null, this._currentScreenElement = null, this._currentScreenModuleId = "", this._currentScreenConfig = null, this.orientation = new Jd(this), this.store = Ue.getInitialState(), this.currentScreenConfig = this.store.currentScreenConfig, this.processingScreenFromWorkflow = this.store.processingTransformedTemplate, this.isProcessing = this.store.isProcessing, this.loadedModules = this.store.externalModules, this.modulesConfig = this.store.modulesConfig, this.nonce = this.store.nonce, this._listenerFromModule = (e, r) => {
8227
+ super(...arguments), this._currentProgressElement = null, this._currentScreenElement = null, this._currentScreenModuleId = "", this._currentScreenConfig = null, this.orientation = new Kd(this), this.store = Ue.getInitialState(), this.currentScreenConfig = this.store.currentScreenConfig, this.processingScreenFromWorkflow = this.store.processingTransformedTemplate, this.isProcessing = this.store.isProcessing, this.loadedModules = this.store.externalModules, this.modulesConfig = this.store.modulesConfig, this.nonce = this.store.nonce, this._listenerFromModule = (e, r) => {
8225
8228
  this.store.listener({
8226
8229
  eventType: Li.MESSAGE,
8227
8230
  message: r,
@@ -8272,7 +8275,7 @@ const vo = class vo extends Lr {
8272
8275
  return (!this._currentScreenElement || !this._isTheSameModuleAndScreen(e)) && (this._currentScreenElement = Ys(e.id, r), this._currentScreenModuleId = e.id, this._currentScreenConfig = this.currentScreenConfig), this._currentScreenElement;
8273
8276
  }
8274
8277
  get version() {
8275
- return `${"3.2.283".trim()}`;
8278
+ return `${"3.2.284-nightly".trim()}`;
8276
8279
  }
8277
8280
  disconnectedCallback() {
8278
8281
  var e;
@@ -8282,7 +8285,7 @@ const vo = class vo extends Lr {
8282
8285
  return !this.currentScreenConfig && !this.processingScreenFromWorkflow ? null : Sn`<div
8283
8286
  part="idv"
8284
8287
  class="idv"
8285
- data-device="${qd.isMobile && this.orientation.isPortrait ? "mobile" : "desktop"}"
8288
+ data-device="${Xd.isMobile && this.orientation.isPortrait ? "mobile" : "desktop"}"
8286
8289
  data-direction="${ia.Ltr}"
8287
8290
  >
8288
8291
  <div class="container">
@@ -8292,7 +8295,7 @@ const vo = class vo extends Lr {
8292
8295
  </div>`;
8293
8296
  }
8294
8297
  };
8295
- vo.styles = [su];
8298
+ vo.styles = [ou];
8296
8299
  let yt = vo;
8297
8300
  gr([
8298
8301
  lr()
@@ -8315,7 +8318,7 @@ gr([
8315
8318
  gr([
8316
8319
  lr()
8317
8320
  ], yt.prototype, "nonce");
8318
- class MM {
8321
+ class dM {
8319
8322
  /** main commands */
8320
8323
  initialize(e) {
8321
8324
  return L(this, null, function* () {
@@ -8344,11 +8347,11 @@ class MM {
8344
8347
  }
8345
8348
  startWorkflow(e) {
8346
8349
  return L(this, null, function* () {
8347
- const i = Ue.getState().trackLocation ? yield Nl() : null;
8350
+ const i = Ue.getState().trackLocation ? yield gl() : null;
8348
8351
  return new Promise((n) => {
8349
8352
  const o = (l) => {
8350
8353
  n(l);
8351
- }, s = e == null ? void 0 : e.locale, a = e == null ? void 0 : e.metadata, c = dl(s);
8354
+ }, s = e == null ? void 0 : e.locale, a = e == null ? void 0 : e.metadata, c = ll(s);
8352
8355
  Ue.getState().startNewSession({ completion: o, locale: c, metadata: a, location: i }).then((l) => {
8353
8356
  l.error && (Ue.getState().removeCurrentSessionDataLsAndStore(), o(l)), l.results && (Ue.getState().removeCurrentSessionDataLsAndStore(), o(l)), Ue.getState().playWorkflow();
8354
8357
  });
@@ -8362,7 +8365,7 @@ class MM {
8362
8365
  }
8363
8366
  /** service commands */
8364
8367
  get version() {
8365
- return "3.2.283";
8368
+ return "3.2.284-nightly";
8366
8369
  }
8367
8370
  set nonce(e) {
8368
8371
  Ue.getState().setNonce(e);
@@ -8378,22 +8381,22 @@ class MM {
8378
8381
  Ue.getState().setSessionRestoreMode(e);
8379
8382
  }
8380
8383
  }
8381
- const tM = window.customElements.get("idv-flow");
8382
- tM || window.customElements.define("idv-flow", yt);
8384
+ const eM = window.customElements.get("idv-flow");
8385
+ eM || window.customElements.define("idv-flow", yt);
8383
8386
  export {
8384
8387
  Ae as BaseError,
8385
- fl as BaseModule,
8388
+ Il as BaseModule,
8386
8389
  $t as ConnectionError,
8387
8390
  Ui as DeinitializationError,
8388
8391
  Li as IdvEventTypesEnum,
8389
- MM as IdvIntegrationService,
8392
+ dM as IdvIntegrationService,
8390
8393
  kr as IdvServiceMessages,
8391
8394
  yt as IdvWebComponent,
8392
- en as InitializeError,
8395
+ qi as InitializeError,
8393
8396
  jt as PrepareWorkflowError,
8394
8397
  at as SessionError,
8395
8398
  tr as StartSessionError,
8396
8399
  We as WorkflowError,
8397
8400
  wt as WorkflowPlatformError,
8398
- Dl as registerModule
8401
+ fl as registerModule
8399
8402
  };