@soyio/soyio-widget 2.22.0 → 2.22.1

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/index.js CHANGED
@@ -6,18 +6,18 @@ var Ri = (o) => {
6
6
  var mt = (o, a, d) => a in o ? Ct(o, a, { enumerable: !0, configurable: !0, writable: !0, value: d }) : o[a] = d;
7
7
  var xi = (o, a) => {
8
8
  var d = {};
9
- for (var f in o)
10
- Pt.call(o, f) && a.indexOf(f) < 0 && (d[f] = o[f]);
9
+ for (var s in o)
10
+ Pt.call(o, s) && a.indexOf(s) < 0 && (d[s] = o[s]);
11
11
  if (o != null && ki)
12
- for (var f of ki(o))
13
- a.indexOf(f) < 0 && $t.call(o, f) && (d[f] = o[f]);
12
+ for (var s of ki(o))
13
+ a.indexOf(s) < 0 && $t.call(o, s) && (d[s] = o[s]);
14
14
  return d;
15
15
  };
16
16
  var k = (o, a, d) => mt(o, typeof a != "symbol" ? a + "" : a, d), yt = (o, a, d) => a.has(o) || Ri("Cannot " + d);
17
17
  var Ei = (o, a, d) => a.has(o) ? Ri("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(o) : a.set(o, d);
18
18
  var Di = (o, a, d) => (yt(o, a, "access private method"), d);
19
19
  var ge = (o, a, d) => gt(ht(o), d, a);
20
- var W = (o, a, d) => new Promise((f, u) => {
20
+ var W = (o, a, d) => new Promise((s, u) => {
21
21
  var $ = (T) => {
22
22
  try {
23
23
  y(d.next(T));
@@ -30,19 +30,19 @@ var W = (o, a, d) => new Promise((f, u) => {
30
30
  } catch (L) {
31
31
  u(L);
32
32
  }
33
- }, y = (T) => T.done ? f(T.value) : Promise.resolve(T.value).then($, m);
33
+ }, y = (T) => T.done ? s(T.value) : Promise.resolve(T.value).then($, m);
34
34
  y((d = d.apply(o, a)).next());
35
35
  });
36
36
  function vt(o, a) {
37
37
  for (var d = 0; d < a.length; d++) {
38
- const f = a[d];
39
- if (typeof f != "string" && !Array.isArray(f)) {
40
- for (const u in f)
38
+ const s = a[d];
39
+ if (typeof s != "string" && !Array.isArray(s)) {
40
+ for (const u in s)
41
41
  if (u !== "default" && !(u in o)) {
42
- const $ = Object.getOwnPropertyDescriptor(f, u);
42
+ const $ = Object.getOwnPropertyDescriptor(s, u);
43
43
  $ && Object.defineProperty(o, u, $.get ? $ : {
44
44
  enumerable: !0,
45
- get: () => f[u]
45
+ get: () => s[u]
46
46
  });
47
47
  }
48
48
  }
@@ -84,24 +84,24 @@ class Ke {
84
84
  transform: scale(0.95);
85
85
  `, this.tooltipContent = document.createElement("div"), this.tooltipContent.className = "soyio-tooltip-content", this.tooltipElement.appendChild(this.tooltipContent), document.body.appendChild(this.tooltipElement);
86
86
  }
87
- show(a, d, f) {
87
+ show(a, d, s) {
88
88
  if (!this.tooltipElement || !this.tooltipContent) return;
89
89
  this.hideTimeout && (clearTimeout(this.hideTimeout), this.hideTimeout = null), this.tooltipContent.textContent = a, this.tooltipElement.style.opacity = "0", this.tooltipElement.style.transform = "scale(0.95)";
90
- const u = this.calculateOptimalPlacement(d, f);
90
+ const u = this.calculateOptimalPlacement(d, s);
91
91
  this.applyPlacement(u), requestAnimationFrame(() => {
92
92
  this.tooltipElement && (this.tooltipElement.style.opacity = "1", this.tooltipElement.style.transform = "scale(1)");
93
93
  });
94
94
  }
95
95
  calculateOptimalPlacement(a, d) {
96
- const f = this.tooltipElement.offsetWidth, u = this.tooltipElement.offsetHeight, { innerWidth: $, innerHeight: m } = window, y = 4, T = {
96
+ const s = this.tooltipElement.offsetWidth, u = this.tooltipElement.offsetHeight, { innerWidth: $, innerHeight: m } = window, y = 4, T = {
97
97
  top: {
98
98
  top: d - u - y,
99
- left: a - f / 2,
99
+ left: a - s / 2,
100
100
  placement: "top"
101
101
  },
102
102
  bottom: {
103
103
  top: d + y,
104
- left: a - f / 2,
104
+ left: a - s / 2,
105
105
  placement: "bottom"
106
106
  },
107
107
  right: {
@@ -111,18 +111,18 @@ class Ke {
111
111
  },
112
112
  left: {
113
113
  top: d - u / 2,
114
- left: a - f - y,
114
+ left: a - s - y,
115
115
  placement: "left"
116
116
  }
117
117
  };
118
118
  for (const [, O] of Object.entries(T))
119
- if (Ke.fitsInViewport(O, f, u, $, m))
119
+ if (Ke.fitsInViewport(O, s, u, $, m))
120
120
  return O;
121
121
  const L = T.top;
122
- return L.left = Math.max(y, Math.min(L.left, $ - f - y)), L.top = Math.max(y, Math.min(L.top, m - u - y)), L;
122
+ return L.left = Math.max(y, Math.min(L.left, $ - s - y)), L.top = Math.max(y, Math.min(L.top, m - u - y)), L;
123
123
  }
124
- static fitsInViewport(a, d, f, u, $) {
125
- return a.top >= 0 && a.left >= 0 && a.top + f <= $ && a.left + d <= u;
124
+ static fitsInViewport(a, d, s, u, $) {
125
+ return a.top >= 0 && a.left >= 0 && a.top + s <= $ && a.left + d <= u;
126
126
  }
127
127
  applyPlacement(a) {
128
128
  this.tooltipElement && (this.tooltipElement.style.left = `${a.left}px`, this.tooltipElement.style.top = `${a.top}px`);
@@ -139,9 +139,9 @@ function Li(o, a, d) {
139
139
  return W(this, null, function* () {
140
140
  if (!o.contentWindow)
141
141
  throw new Error("Invalid iframe: contentWindow is null");
142
- const f = yield Promise.resolve().then(() => ve);
142
+ const s = yield Promise.resolve().then(() => ve);
143
143
  try {
144
- yield f.send(o.contentWindow, "SET_APPEARANCE", { appearance: a, identifier: d });
144
+ yield s.send(o.contentWindow, "SET_APPEARANCE", { appearance: a, identifier: d });
145
145
  } catch (u) {
146
146
  console.error("Failed to send appearance config:", u);
147
147
  }
@@ -161,19 +161,19 @@ function Rt() {
161
161
  return W(this, null, function* () {
162
162
  const o = yield Promise.resolve().then(() => ve);
163
163
  Wi || Oi || Ni || Mi || Bi || (Wi = o.on(wt, (a) => W(null, null, function* () {
164
- const d = a.data, f = F.onHeightChange[d.identifier];
165
- return f && f(d.height), Promise.resolve();
164
+ const d = a.data, s = F.onHeightChange[d.identifier];
165
+ return s && s(d.height), Promise.resolve();
166
166
  })), Oi = o.on(bt, (a) => W(null, null, function* () {
167
- const d = a.data, f = F.onIframeReady[d.identifier];
168
- return f && f(), Promise.resolve();
167
+ const d = a.data, s = F.onIframeReady[d.identifier];
168
+ return s && s(), Promise.resolve();
169
169
  })), Ni = o.on(It, (a) => W(null, null, function* () {
170
- const d = a.data, f = F.onTooltipChange[d.identifier];
171
- return f && f(d), Promise.resolve();
170
+ const d = a.data, s = F.onTooltipChange[d.identifier];
171
+ return s && s(d), Promise.resolve();
172
172
  })), Mi = o.on(kt, (a) => W(null, null, function* () {
173
- const d = a.data, f = F.onStateChange[d.identifier];
174
- return f && f(d), Promise.resolve();
173
+ const d = a.data, s = F.onStateChange[d.identifier];
174
+ return s && s(d), Promise.resolve();
175
175
  })), Bi = o.on(Tt, (d) => W(null, [d], function* ({ data: a }) {
176
- const m = a, { identifier: f } = m, u = xi(m, ["identifier"]), $ = F.onInfo[f];
176
+ const m = a, { identifier: s } = m, u = xi(m, ["identifier"]), $ = F.onInfo[s];
177
177
  return $ && $(u), Promise.resolve();
178
178
  })));
179
179
  });
@@ -181,12 +181,12 @@ function Rt() {
181
181
  function Qe(o, a) {
182
182
  const {
183
183
  onHeightChange: d,
184
- onIframeReady: f,
184
+ onIframeReady: s,
185
185
  onTooltipChange: u,
186
186
  onStateChange: $,
187
187
  onInfo: m
188
188
  } = a;
189
- d && (F.onHeightChange[o] = d), f && (F.onIframeReady[o] = f), u && (F.onTooltipChange[o] = u), $ && (F.onStateChange[o] = $), m && (F.onInfo[o] = m);
189
+ d && (F.onHeightChange[o] = d), s && (F.onIframeReady[o] = s), u && (F.onTooltipChange[o] = u), $ && (F.onStateChange[o] = $), m && (F.onInfo[o] = m);
190
190
  }
191
191
  function xt(o) {
192
192
  delete F.onHeightChange[o], delete F.onIframeReady[o], delete F.onTooltipChange[o], delete F.onStateChange[o], delete F.onInfo[o];
@@ -220,8 +220,8 @@ function At(o) {
220
220
  `, a;
221
221
  }
222
222
  function Lt(o, a, d) {
223
- const f = document.createElement("iframe");
224
- return f.id = a, f.src = o, f.style.cssText += `
223
+ const s = document.createElement("iframe");
224
+ return s.id = a, s.src = o, s.allow = "fullscreen;camera;", s.setAttribute("allowfullscreen", ""), s.style.cssText += `
225
225
  width: 100% !important;
226
226
  min-width: ${d.minWidth} !important;
227
227
  border: none !important;
@@ -229,7 +229,7 @@ function Lt(o, a, d) {
229
229
  opacity: 1;
230
230
  transition: height 0.35s,
231
231
  opacity 0.4s 0.1s;
232
- `, f;
232
+ `, s;
233
233
  }
234
234
  function Wt() {
235
235
  return Math.random().toString(36).substring(2, 10);
@@ -284,8 +284,8 @@ class ye {
284
284
  }
285
285
  handleTooltipChange(a) {
286
286
  if (!this.iframe) return;
287
- const d = this.iframe.getBoundingClientRect(), { text: f, coordinates: u, isVisible: $ } = a, m = u.x + d.left, y = u.y + d.top;
288
- $ ? this.tooltipManager.show(f, m, y) : this.tooltipManager.hide();
287
+ const d = this.iframe.getBoundingClientRect(), { text: s, coordinates: u, isVisible: $ } = a, m = u.x + d.left, y = u.y + d.top;
288
+ $ ? this.tooltipManager.show(s, m, y) : this.tooltipManager.hide();
289
289
  }
290
290
  setupListeners() {
291
291
  return W(this, null, function* () {
@@ -304,8 +304,8 @@ class ye {
304
304
  var u;
305
305
  if (!Ee) return this;
306
306
  this.isIframeReady = !1, yield this.setupListeners(), Et(this.iframeIdentifier);
307
- const d = Dt(a), f = this.iframeUrl();
308
- if (this.wrapper = At(this.uniqueIdentifier), d.appendChild(this.wrapper), this.iframe = Lt(f, this.iframeIdentifier, this.defaultIframeCSSConfig), this.Skeleton) {
307
+ const d = Dt(a), s = this.iframeUrl();
308
+ if (this.wrapper = At(this.uniqueIdentifier), d.appendChild(this.wrapper), this.iframe = Lt(s, this.iframeIdentifier, this.defaultIframeCSSConfig), this.Skeleton) {
309
309
  const $ = (u = this.appearance) == null ? void 0 : u.theme;
310
310
  this.skeleton = new this.Skeleton(this.uniqueIdentifier, $), this.skeleton.mount(this.wrapper);
311
311
  }
@@ -330,7 +330,7 @@ class _t {
330
330
  k(this, "element");
331
331
  k(this, "identifier");
332
332
  this.identifier = `skeleton-${a}`, this.element = document.createElement("div"), this.element.id = this.identifier;
333
- const f = d === "night", u = f ? "#1E293B" : "#FFFFFF", $ = f ? "#334155" : "#E5E7EB", m = f ? "#334155" : "#f0f0f0", y = f ? "#475569" : "#e0e0e0", T = f ? "#334155" : "#f0f0f0";
333
+ const s = d === "night", u = s ? "#1E293B" : "#FFFFFF", $ = s ? "#334155" : "#E5E7EB", m = s ? "#334155" : "#f0f0f0", y = s ? "#475569" : "#e0e0e0", T = s ? "#334155" : "#f0f0f0";
334
334
  this.element.style.cssText = `
335
335
  position: absolute;
336
336
  top: 0;
@@ -467,7 +467,7 @@ class _t {
467
467
  this.element.style.animation = "skeletonFadeOut 0.2s ease-out forwards", setTimeout(() => this.element.remove(), 200);
468
468
  }
469
469
  }
470
- const Ae = "2.22.0";
470
+ const Ae = "2.22.1";
471
471
  function Gt(o) {
472
472
  var m;
473
473
  const a = [
@@ -476,12 +476,12 @@ function Gt(o) {
476
476
  "context",
477
477
  "optionalReconsentBehavior",
478
478
  "mandatoryReconsentBehavior"
479
- ], d = (m = o.isSandbox) != null ? m : !1, f = o.developmentUrl || (d ? Ui : Fi), u = new URLSearchParams();
479
+ ], d = (m = o.isSandbox) != null ? m : !1, s = o.developmentUrl || (d ? Ui : Fi), u = new URLSearchParams();
480
480
  u.set("sdkVersion", Ae), a.forEach((y) => {
481
481
  o[y] && u.set(y, o[y]);
482
482
  });
483
483
  const $ = u.toString();
484
- return `${f}/embed/consents/${o.consentTemplateId}${$ ? `?${$}` : ""}`;
484
+ return `${s}/embed/consents/${o.consentTemplateId}${$ ? `?${$}` : ""}`;
485
485
  }
486
486
  class Hi extends ye {
487
487
  constructor(d) {
@@ -501,10 +501,10 @@ class Hi extends ye {
501
501
  return Gt(this.options);
502
502
  }
503
503
  handleStateChange(d) {
504
- const { isSelected: f, actionToken: u } = d;
505
- this.state = { isSelected: f, actionToken: u }, this.options.onEvent({
504
+ const { isSelected: s, actionToken: u } = d;
505
+ this.state = { isSelected: s, actionToken: u }, this.options.onEvent({
506
506
  eventName: "CONSENT_CHECKBOX_CHANGE",
507
- isSelected: f,
507
+ isSelected: s,
508
508
  actionToken: u
509
509
  });
510
510
  }
@@ -524,9 +524,9 @@ function Vt(o, a, d) {
524
524
  if (!o.contentWindow)
525
525
  throw new Error("Invalid iframe: contentWindow is null");
526
526
  if (!a.redecOperationIds) return;
527
- const f = yield Promise.resolve().then(() => ve);
527
+ const s = yield Promise.resolve().then(() => ve);
528
528
  try {
529
- yield f.send(o.contentWindow, "SET_PRIVACY_CENTER_CONFIG", {
529
+ yield s.send(o.contentWindow, "SET_PRIVACY_CENTER_CONFIG", {
530
530
  identifier: d,
531
531
  redecOperationIds: a.redecOperationIds
532
532
  });
@@ -537,15 +537,15 @@ function Vt(o, a, d) {
537
537
  }
538
538
  function Yt(o) {
539
539
  var m, y, T, L, O, K;
540
- const a = (m = o.isSandbox) != null ? m : !1, d = o.developmentUrl || (a ? Nt : Ot), f = new URLSearchParams();
541
- if (f.set("sdkVersion", Ae), o.sessionToken ? f.set("sessionToken", o.sessionToken) : o.companyId && f.set("companyId", o.companyId), (y = o.enabledFeatures) != null && y.length && f.set("enabledFeatures", o.enabledFeatures.join(",")), (T = o.enabledRights) != null && T.length && f.set("enabledRights", o.enabledRights.join(",")), (L = o.dataSubjects) != null && L.length && f.set("dataSubjects", o.dataSubjects.join(",")), o.requestReference && f.set("requestReference", o.requestReference), o.fileRequisites) {
540
+ const a = (m = o.isSandbox) != null ? m : !1, d = o.developmentUrl || (a ? Nt : Ot), s = new URLSearchParams();
541
+ if (s.set("sdkVersion", Ae), o.sessionToken ? s.set("sessionToken", o.sessionToken) : o.companyId && s.set("companyId", o.companyId), (y = o.enabledFeatures) != null && y.length && s.set("enabledFeatures", o.enabledFeatures.join(",")), (T = o.enabledRights) != null && T.length && s.set("enabledRights", o.enabledRights.join(",")), (L = o.dataSubjects) != null && L.length && s.set("dataSubjects", o.dataSubjects.join(",")), o.requestReference && s.set("requestReference", o.requestReference), o.fileRequisites) {
542
542
  const H = JSON.stringify(o.fileRequisites);
543
- H !== "{}" && f.set("fileRequisites", H);
543
+ H !== "{}" && s.set("fileRequisites", H);
544
544
  }
545
- o.demo && f.set("demo", "true"), o.consentMode && f.set("consentMode", o.consentMode);
545
+ o.demo && s.set("demo", "true"), o.consentMode && s.set("consentMode", o.consentMode);
546
546
  const u = (K = (O = o.appearance) == null ? void 0 : O.config) == null ? void 0 : K.consentControl;
547
- u && f.set("consentControl", u), o.consentRetentionPeriod && f.set("consentRetentionPeriod", o.consentRetentionPeriod), o.showBatchConsentConfirmation && f.set("showBatchConsentConfirmation", "true");
548
- const $ = f.toString();
547
+ u && s.set("consentControl", u), o.consentRetentionPeriod && s.set("consentRetentionPeriod", o.consentRetentionPeriod), o.showBatchConsentConfirmation && s.set("showBatchConsentConfirmation", "true");
548
+ const $ = s.toString();
549
549
  return `${d}${$ ? `?${$}` : ""}`;
550
550
  }
551
551
  class qi extends ye {
@@ -579,37 +579,37 @@ function Jt(o) {
579
579
  }
580
580
  function Kt(o) {
581
581
  var $;
582
- const a = ($ = o.isSandbox) != null ? $ : !1, d = Le(o.developmentUrl, a), f = Object.entries(o.configProps).filter(([m, y]) => y || m === "disclosureRequestId").map(([m, y]) => `${m}=${encodeURIComponent(y)}`).join("&"), u = Jt(o);
583
- return `${d}/${u}?sdk=web&sdkVersion=${Ae}&${f}`;
582
+ const a = ($ = o.isSandbox) != null ? $ : !1, d = Le(o.developmentUrl, a), s = Object.entries(o.configProps).filter(([m, y]) => y || m === "disclosureRequestId").map(([m, y]) => `${m}=${encodeURIComponent(y)}`).join("&"), u = Jt(o);
583
+ return `${d}/${u}?sdk=web&sdkVersion=${Ae}&${s}`;
584
584
  }
585
585
  function Qt(o) {
586
586
  return `embed/widget/disclosures/${o.disclosureRequestId}`;
587
587
  }
588
588
  function Zt(o, a) {
589
589
  var m;
590
- const d = (m = o.isSandbox) != null ? m : !1, f = Le(o.developmentUrl, d), u = Qt(o), $ = new URLSearchParams({
590
+ const d = (m = o.isSandbox) != null ? m : !1, s = Le(o.developmentUrl, d), u = Qt(o), $ = new URLSearchParams({
591
591
  sdk: "web",
592
592
  sdkVersion: Ae,
593
593
  identifier: a
594
594
  });
595
- return o.customColor && $.set("customColor", o.customColor), `${f}/${u}?${$.toString()}`;
595
+ return o.customColor && $.set("customColor", o.customColor), `${s}/${u}?${$.toString()}`;
596
596
  }
597
597
  function Xt(o, a) {
598
598
  var u;
599
- const d = Le(o.developmentUrl, (u = o.isSandbox) != null ? u : !1), f = new URLSearchParams({
599
+ const d = Le(o.developmentUrl, (u = o.isSandbox) != null ? u : !1), s = new URLSearchParams({
600
600
  session_token: a.sessionToken,
601
601
  company_id: a.companyId,
602
602
  identifier: a.identifier
603
603
  });
604
- return `${d}/widget/register_passkey?${f.toString()}`;
604
+ return `${d}/widget/register_passkey?${s.toString()}`;
605
605
  }
606
606
  function er(o, a) {
607
607
  var u;
608
- const d = Le(o.developmentUrl, (u = o.isSandbox) != null ? u : !1), f = new URLSearchParams({
608
+ const d = Le(o.developmentUrl, (u = o.isSandbox) != null ? u : !1), s = new URLSearchParams({
609
609
  requestable_id: a.requestableToken,
610
610
  identifier: a.identifier
611
611
  });
612
- return `${d}/widget/passkey_authentication?${f.toString()}`;
612
+ return `${d}/widget/passkey_authentication?${s.toString()}`;
613
613
  }
614
614
  function ir(o) {
615
615
  return o.eventName === "PASSKEY_REQUIRED" && o.type === "PASSKEY_REQUIRED";
@@ -652,8 +652,8 @@ class Ye extends ye {
652
652
  });
653
653
  }
654
654
  notifyReady() {
655
- var d, f;
656
- this.isReadyCallbackFired || (this.isReadyCallbackFired = !0, (f = (d = this.options).onReady) == null || f.call(d));
655
+ var d, s;
656
+ this.isReadyCallbackFired || (this.isReadyCallbackFired = !0, (s = (d = this.options).onReady) == null || s.call(d));
657
657
  }
658
658
  triggerEvent(d) {
659
659
  this.options.onEvent(d);
@@ -661,12 +661,12 @@ class Ye extends ye {
661
661
  mountPopupListener() {
662
662
  return W(this, null, function* () {
663
663
  const d = yield Promise.resolve().then(() => ve);
664
- this.removePopupListener(), this.popupListener = d.on(_i, (u) => W(this, [u], function* ({ data: f }) {
665
- return f.eventName !== "PASSKEY_REGISTERED" && f.eventName !== "PASSKEY_AUTHENTICATED" || f.identifier !== this.uniqueIdentifier || (f.eventName === "PASSKEY_REGISTERED" && (this.notifyPasskeyRegistered(), this.triggerEvent({
664
+ this.removePopupListener(), this.popupListener = d.on(_i, (u) => W(this, [u], function* ({ data: s }) {
665
+ return s.eventName !== "PASSKEY_REGISTERED" && s.eventName !== "PASSKEY_AUTHENTICATED" || s.identifier !== this.uniqueIdentifier || (s.eventName === "PASSKEY_REGISTERED" && (this.notifyPasskeyRegistered(), this.triggerEvent({
666
666
  eventName: "PASSKEY_REGISTERED",
667
667
  type: "PASSKEY_REGISTERED",
668
668
  identifier: this.uniqueIdentifier
669
- })), f.eventName === "PASSKEY_AUTHENTICATED" && (this.notifyPasskeyAuthenticated(), this.triggerEvent({
669
+ })), s.eventName === "PASSKEY_AUTHENTICATED" && (this.notifyPasskeyAuthenticated(), this.triggerEvent({
670
670
  eventName: "PASSKEY_AUTHENTICATED",
671
671
  type: "PASSKEY_AUTHENTICATED",
672
672
  identifier: this.uniqueIdentifier
@@ -687,8 +687,8 @@ class Ye extends ye {
687
687
  notifyPasskeyEvent(d) {
688
688
  var u;
689
689
  if (!((u = this.iframe) != null && u.contentWindow)) return;
690
- const f = new URL(this.iframe.src).origin;
691
- this.iframe.contentWindow.postMessage(JSON.stringify({ type: d }), f);
690
+ const s = new URL(this.iframe.src).origin;
691
+ this.iframe.contentWindow.postMessage(JSON.stringify({ type: d }), s);
692
692
  }
693
693
  notifyPasskeyRegistered() {
694
694
  this.notifyPasskeyEvent("PASSKEY_REGISTERED");
@@ -698,20 +698,20 @@ class Ye extends ye {
698
698
  }
699
699
  openPasskeyRegistrationPopup(d) {
700
700
  if (!d.sessionToken || !d.companyId) return;
701
- const f = Xt(this.options, {
701
+ const s = Xt(this.options, {
702
702
  sessionToken: d.sessionToken,
703
703
  companyId: d.companyId,
704
704
  identifier: this.uniqueIdentifier
705
705
  });
706
- this.passkeyPopupWindow = window.open(f, "SoyioPasskeyRegistration", "width=420,height=720,scrollbars=yes");
706
+ this.passkeyPopupWindow = window.open(s, "SoyioPasskeyRegistration", "width=420,height=720,scrollbars=yes");
707
707
  }
708
708
  openPasskeyAuthenticationPopup(d) {
709
709
  if (!d.requestableToken) return;
710
- const f = er(this.options, {
710
+ const s = er(this.options, {
711
711
  requestableToken: d.requestableToken,
712
712
  identifier: this.uniqueIdentifier
713
713
  });
714
- this.passkeyPopupWindow = window.open(f, "SoyioPasskeyAuthentication", "width=420,height=720,scrollbars=yes");
714
+ this.passkeyPopupWindow = window.open(s, "SoyioPasskeyAuthentication", "width=420,height=720,scrollbars=yes");
715
715
  }
716
716
  }
717
717
  let Z = null, Ge = null;
@@ -727,10 +727,10 @@ function rr() {
727
727
  }, Ft);
728
728
  }
729
729
  function nr(o) {
730
- const a = Kt(o), d = jt, f = zt, u = window.screenLeft !== void 0 ? window.screenLeft : window.screenX, $ = window.screenTop !== void 0 ? window.screenTop : window.screenY, m = window.innerWidth || document.documentElement.clientWidth || window.screen.width, y = window.innerHeight || document.documentElement.clientHeight || window.screen.height, T = m / window.screen.availWidth, L = (m - d) / 2 / T + u, O = (y - f) / 2 / T + $, K = [
730
+ const a = Kt(o), d = jt, s = zt, u = window.screenLeft !== void 0 ? window.screenLeft : window.screenX, $ = window.screenTop !== void 0 ? window.screenTop : window.screenY, m = window.innerWidth || document.documentElement.clientWidth || window.screen.width, y = window.innerHeight || document.documentElement.clientHeight || window.screen.height, T = m / window.screen.availWidth, L = (m - d) / 2 / T + u, O = (y - s) / 2 / T + $, K = [
731
731
  "scrollbars=yes",
732
732
  `width=${d}`,
733
- `height=${f}`,
733
+ `height=${s}`,
734
734
  `top=${O}`,
735
735
  `left=${L}`
736
736
  ].join(","), H = window.open("about:blank", "Soyio", K);
@@ -746,8 +746,8 @@ function sr() {
746
746
  function fr(o) {
747
747
  return W(this, null, function* () {
748
748
  const { onEvent: a } = o, d = yield Promise.resolve().then(() => ve);
749
- me && sr(), me = d.on(_i, (u) => W(null, [u], function* ({ data: f }) {
750
- return a(f), Mt.includes(f.eventName) ? or() : f.eventName === Bt && We(), Promise.resolve();
749
+ me && sr(), me = d.on(_i, (u) => W(null, [u], function* ({ data: s }) {
750
+ return a(s), Mt.includes(s.eventName) ? or() : s.eventName === Bt && We(), Promise.resolve();
751
751
  }));
752
752
  });
753
753
  }
@@ -782,21 +782,21 @@ function Cr(o) {
782
782
  var Ve = { exports: {} }, xe = { exports: {} }, hr = xe.exports, ji;
783
783
  function Pr() {
784
784
  return ji || (ji = 1, function(o, a) {
785
- (function(d, f) {
786
- o.exports = f();
785
+ (function(d, s) {
786
+ o.exports = s();
787
787
  })(typeof self != "undefined" ? self : hr, function() {
788
788
  return function(d) {
789
- var f = {};
789
+ var s = {};
790
790
  function u($) {
791
- if (f[$]) return f[$].exports;
792
- var m = f[$] = {
791
+ if (s[$]) return s[$].exports;
792
+ var m = s[$] = {
793
793
  i: $,
794
794
  l: !1,
795
795
  exports: {}
796
796
  };
797
797
  return d[$].call(m.exports, m, m.exports, u), m.l = !0, m.exports;
798
798
  }
799
- return u.m = d, u.c = f, u.d = function($, m, y) {
799
+ return u.m = d, u.c = s, u.d = function($, m, y) {
800
800
  u.o($, m) || Object.defineProperty($, m, {
801
801
  enumerable: !0,
802
802
  get: y
@@ -827,36 +827,36 @@ function Pr() {
827
827
  }, u.o = function($, m) {
828
828
  return {}.hasOwnProperty.call($, m);
829
829
  }, u.p = "", u(u.s = 0);
830
- }([function(d, f, u) {
831
- u.r(f), u.d(f, "Promise", function() {
830
+ }([function(d, s, u) {
831
+ u.r(s), u.d(s, "Promise", function() {
832
832
  return R;
833
- }), u.d(f, "TYPES", function() {
833
+ }), u.d(s, "TYPES", function() {
834
834
  return St;
835
- }), u.d(f, "ProxyWindow", function() {
835
+ }), u.d(s, "ProxyWindow", function() {
836
836
  return G;
837
- }), u.d(f, "setup", function() {
837
+ }), u.d(s, "setup", function() {
838
838
  return Ti;
839
- }), u.d(f, "destroy", function() {
839
+ }), u.d(s, "destroy", function() {
840
840
  return lt;
841
- }), u.d(f, "serializeMessage", function() {
841
+ }), u.d(s, "serializeMessage", function() {
842
842
  return at;
843
- }), u.d(f, "deserializeMessage", function() {
843
+ }), u.d(s, "deserializeMessage", function() {
844
844
  return dt;
845
- }), u.d(f, "createProxyWindow", function() {
845
+ }), u.d(s, "createProxyWindow", function() {
846
846
  return ct;
847
- }), u.d(f, "toProxyWindow", function() {
847
+ }), u.d(s, "toProxyWindow", function() {
848
848
  return pt;
849
- }), u.d(f, "on", function() {
849
+ }), u.d(s, "on", function() {
850
850
  return se;
851
- }), u.d(f, "once", function() {
851
+ }), u.d(s, "once", function() {
852
852
  return ft;
853
- }), u.d(f, "send", function() {
853
+ }), u.d(s, "send", function() {
854
854
  return X;
855
- }), u.d(f, "markWindowKnown", function() {
855
+ }), u.d(s, "markWindowKnown", function() {
856
856
  return ui;
857
- }), u.d(f, "cleanUpWindow", function() {
857
+ }), u.d(s, "cleanUpWindow", function() {
858
858
  return ut;
859
- }), u.d(f, "bridge", function() {
859
+ }), u.d(s, "bridge", function() {
860
860
  });
861
861
  function $(e) {
862
862
  return {}.toString.call(e) === "[object RegExp]";
@@ -960,7 +960,7 @@ function Pr() {
960
960
  try {
961
961
  for (; r.parent !== r; )
962
962
  n.push(r.parent), r = r.parent;
963
- } catch (s) {
963
+ } catch (f) {
964
964
  }
965
965
  return n;
966
966
  }(t).indexOf(e) !== -1;
@@ -980,13 +980,13 @@ function Pr() {
980
980
  if (r === 0) return t;
981
981
  if (r) {
982
982
  for (var n = 0; n < r; n++) {
983
- var s = void 0;
983
+ var f = void 0;
984
984
  try {
985
- s = i[n];
985
+ f = i[n];
986
986
  } catch (l) {
987
987
  continue;
988
988
  }
989
- t.push(s);
989
+ t.push(f);
990
990
  }
991
991
  return t;
992
992
  }
@@ -1028,9 +1028,9 @@ function Pr() {
1028
1028
  if (!e.parent || !e.top) return !0;
1029
1029
  } catch (n) {
1030
1030
  }
1031
- var i = function(n, s) {
1031
+ var i = function(n, f) {
1032
1032
  for (var c = 0; c < n.length; c++) try {
1033
- if (n[c] === s) return c;
1033
+ if (n[c] === f) return c;
1034
1034
  } catch (S) {
1035
1035
  }
1036
1036
  return -1;
@@ -1039,10 +1039,10 @@ function Pr() {
1039
1039
  var r = de[i];
1040
1040
  if (r && function(n) {
1041
1041
  if (!n.contentWindow || !n.parentNode) return !0;
1042
- var s = n.ownerDocument;
1043
- if (s && s.documentElement && !s.documentElement.contains(n)) {
1042
+ var f = n.ownerDocument;
1043
+ if (f && f.documentElement && !f.documentElement.contains(n)) {
1044
1044
  for (var c = n; c.parentNode && c.parentNode !== c; ) c = c.parentNode;
1045
- if (!c.host || !s.documentElement.contains(c.host)) return !0;
1045
+ if (!c.host || !f.documentElement.contains(c.host)) return !0;
1046
1046
  }
1047
1047
  return !1;
1048
1048
  }(r)) return !0;
@@ -1158,19 +1158,19 @@ function Pr() {
1158
1158
  function e(i) {
1159
1159
  var r = this;
1160
1160
  if (this.resolved = void 0, this.rejected = void 0, this.errorHandled = void 0, this.value = void 0, this.error = void 0, this.handlers = void 0, this.dispatching = void 0, this.stack = void 0, this.resolved = !1, this.rejected = !1, this.errorHandled = !1, this.handlers = [], i) {
1161
- var n, s, c = !1, S = !1, l = !1;
1161
+ var n, f, c = !1, S = !1, l = !1;
1162
1162
  Ne();
1163
1163
  try {
1164
1164
  i(function(p) {
1165
1165
  l ? r.resolve(p) : (c = !0, n = p);
1166
1166
  }, function(p) {
1167
- l ? r.reject(p) : (S = !0, s = p);
1167
+ l ? r.reject(p) : (S = !0, f = p);
1168
1168
  });
1169
1169
  } catch (p) {
1170
1170
  le(), this.reject(p);
1171
1171
  return;
1172
1172
  }
1173
- le(), l = !0, c ? this.resolve(n) : S && this.reject(s);
1173
+ le(), l = !0, c ? this.resolve(n) : S && this.reject(f);
1174
1174
  }
1175
1175
  }
1176
1176
  var t = e.prototype;
@@ -1187,12 +1187,12 @@ function Pr() {
1187
1187
  i = new Error("Expected reject to be called with Error, got " + n);
1188
1188
  }
1189
1189
  return this.rejected = !0, this.error = i, this.errorHandled || setTimeout(function() {
1190
- r.errorHandled || function(s, c) {
1191
- if (ei.indexOf(s) === -1) {
1192
- ei.push(s), setTimeout(function() {
1193
- throw s;
1190
+ r.errorHandled || function(f, c) {
1191
+ if (ei.indexOf(f) === -1) {
1192
+ ei.push(f), setTimeout(function() {
1193
+ throw f;
1194
1194
  }, 1);
1195
- for (var S = 0; S < ce.length; S++) ce[S](s, c);
1195
+ for (var S = 0; S < ce.length; S++) ce[S](f, c);
1196
1196
  }
1197
1197
  }(i, r);
1198
1198
  }, 1), this.dispatch(), this;
@@ -1202,7 +1202,7 @@ function Pr() {
1202
1202
  var i = this.resolved, r = this.rejected, n = this.handlers;
1203
1203
  if (!this.dispatching && (i || r)) {
1204
1204
  this.dispatching = !0, Ne();
1205
- for (var s = function(g, w) {
1205
+ for (var f = function(g, w) {
1206
1206
  return g.then(function(v) {
1207
1207
  w.resolve(v);
1208
1208
  }, function(v) {
@@ -1231,7 +1231,7 @@ function Pr() {
1231
1231
  if (C instanceof e && (C.resolved || C.rejected)) {
1232
1232
  var h = C;
1233
1233
  h.resolved ? P.resolve(h.value) : P.reject(h.error), h.errorHandled = !0;
1234
- } else re(C) ? C instanceof e && (C.resolved || C.rejected) ? C.resolved ? P.resolve(C.value) : P.reject(C.error) : s(C, P) : P.resolve(C);
1234
+ } else re(C) ? C instanceof e && (C.resolved || C.rejected) ? C.resolved ? P.resolve(C.value) : P.reject(C.error) : f(C, P) : P.resolve(C);
1235
1235
  }
1236
1236
  n.length = 0, this.dispatching = !1, le();
1237
1237
  }
@@ -1260,11 +1260,11 @@ function Pr() {
1260
1260
  }, t.timeout = function(i, r) {
1261
1261
  var n = this;
1262
1262
  if (this.resolved || this.rejected) return this;
1263
- var s = setTimeout(function() {
1263
+ var f = setTimeout(function() {
1264
1264
  n.resolved || n.rejected || n.reject(r || new Error("Promise timed out after " + i + "ms"));
1265
1265
  }, i);
1266
1266
  return this.then(function(c) {
1267
- return clearTimeout(s), c;
1267
+ return clearTimeout(f), c;
1268
1268
  });
1269
1269
  }, t.toPromise = function() {
1270
1270
  if (typeof Promise == "undefined") throw new TypeError("Could not find Promise");
@@ -1280,12 +1280,12 @@ function Pr() {
1280
1280
  }, e.asyncReject = function(i) {
1281
1281
  return new e().asyncReject(i);
1282
1282
  }, e.all = function(i) {
1283
- var r = new e(), n = i.length, s = [].slice();
1283
+ var r = new e(), n = i.length, f = [].slice();
1284
1284
  if (!n)
1285
- return r.resolve(s), r;
1285
+ return r.resolve(f), r;
1286
1286
  for (var c = function(p, P, C) {
1287
1287
  return P.then(function(h) {
1288
- s[p] = h, (n -= 1) == 0 && r.resolve(s);
1288
+ f[p] = h, (n -= 1) == 0 && r.resolve(f);
1289
1289
  }, function(h) {
1290
1290
  C.reject(h);
1291
1291
  });
@@ -1293,18 +1293,18 @@ function Pr() {
1293
1293
  var l = i[S];
1294
1294
  if (l instanceof e) {
1295
1295
  if (l.resolved) {
1296
- s[S] = l.value, n -= 1;
1296
+ f[S] = l.value, n -= 1;
1297
1297
  continue;
1298
1298
  }
1299
1299
  } else if (!re(l)) {
1300
- s[S] = l, n -= 1;
1300
+ f[S] = l, n -= 1;
1301
1301
  continue;
1302
1302
  }
1303
1303
  c(S, e.resolve(l), r);
1304
1304
  }
1305
- return n === 0 && r.resolve(s), r;
1305
+ return n === 0 && r.resolve(f), r;
1306
1306
  }, e.hash = function(i) {
1307
- var r = {}, n = [], s = function(S) {
1307
+ var r = {}, n = [], f = function(S) {
1308
1308
  if (i.hasOwnProperty(S)) {
1309
1309
  var l = i[S];
1310
1310
  re(l) ? n.push(l.then(function(p) {
@@ -1312,7 +1312,7 @@ function Pr() {
1312
1312
  })) : r[S] = l;
1313
1313
  }
1314
1314
  };
1315
- for (var c in i) s(c);
1315
+ for (var c in i) f(c);
1316
1316
  return e.all(n).then(function() {
1317
1317
  return r;
1318
1318
  });
@@ -1328,14 +1328,14 @@ function Pr() {
1328
1328
  }(i);
1329
1329
  }, e.try = function(i, r, n) {
1330
1330
  if (i && typeof i != "function" && !i.call) throw new Error("Promise.try expected a function");
1331
- var s;
1331
+ var f;
1332
1332
  Ne();
1333
1333
  try {
1334
- s = i.apply(r, n || []);
1334
+ f = i.apply(r, n || []);
1335
1335
  } catch (c) {
1336
1336
  return le(), e.reject(c);
1337
1337
  }
1338
- return le(), e.resolve(s);
1338
+ return le(), e.resolve(f);
1339
1339
  }, e.delay = function(i) {
1340
1340
  return new e(function(r) {
1341
1341
  setTimeout(r, i);
@@ -1375,10 +1375,10 @@ function Pr() {
1375
1375
  var t = e.prototype;
1376
1376
  return t._cleanupClosedWindows = function() {
1377
1377
  for (var i = this.weakmap, r = this.keys, n = 0; n < r.length; n++) {
1378
- var s = r[n];
1379
- if (we(s) && V(s)) {
1378
+ var f = r[n];
1379
+ if (we(f) && V(f)) {
1380
1380
  if (i) try {
1381
- i.delete(s);
1381
+ i.delete(f);
1382
1382
  } catch (c) {
1383
1383
  }
1384
1384
  r.splice(n, 1), this.values.splice(n, 1), n -= 1;
@@ -1395,8 +1395,8 @@ function Pr() {
1395
1395
  delete this.weakmap;
1396
1396
  }
1397
1397
  if (this.isSafeToReadWrite(i)) try {
1398
- var s = this.name, c = i[s];
1399
- c && c[0] === i ? c[1] = r : Object.defineProperty(i, s, {
1398
+ var f = this.name, c = i[f];
1399
+ c && c[0] === i ? c[1] = r : Object.defineProperty(i, f, {
1400
1400
  value: [i, r],
1401
1401
  writable: !0
1402
1402
  });
@@ -1420,8 +1420,8 @@ function Pr() {
1420
1420
  } catch (c) {
1421
1421
  }
1422
1422
  this._cleanupClosedWindows();
1423
- var s = Ie(this.keys, i);
1424
- if (s !== -1) return this.values[s];
1423
+ var f = Ie(this.keys, i);
1424
+ if (f !== -1) return this.values[f];
1425
1425
  }, t.delete = function(i) {
1426
1426
  if (!i) throw new Error("WeakMap expected key");
1427
1427
  var r = this.weakmap;
@@ -1436,20 +1436,20 @@ function Pr() {
1436
1436
  } catch (S) {
1437
1437
  }
1438
1438
  this._cleanupClosedWindows();
1439
- var s = this.keys, c = Ie(s, i);
1440
- c !== -1 && (s.splice(c, 1), this.values.splice(c, 1));
1439
+ var f = this.keys, c = Ie(f, i);
1440
+ c !== -1 && (f.splice(c, 1), this.values.splice(c, 1));
1441
1441
  }, t.has = function(i) {
1442
1442
  if (!i) throw new Error("WeakMap expected key");
1443
1443
  var r = this.weakmap;
1444
1444
  if (r) try {
1445
1445
  if (r.has(i)) return !0;
1446
- } catch (s) {
1446
+ } catch (f) {
1447
1447
  delete this.weakmap;
1448
1448
  }
1449
1449
  if (this.isSafeToReadWrite(i)) try {
1450
1450
  var n = i[this.name];
1451
1451
  return !(!n || n[0] !== i);
1452
- } catch (s) {
1452
+ } catch (f) {
1453
1453
  }
1454
1454
  return this._cleanupClosedWindows(), Ie(this.keys, i) !== -1;
1455
1455
  }, t.getOrSet = function(i, r) {
@@ -1500,13 +1500,13 @@ function Pr() {
1500
1500
  var Se = 0, oi = 0;
1501
1501
  function ue(e, t) {
1502
1502
  t === void 0 && (t = {});
1503
- var i = t.thisNamespace, r = i !== void 0 && i, n = t.time, s, c, S = Se;
1503
+ var i = t.thisNamespace, r = i !== void 0 && i, n = t.time, f, c, S = Se;
1504
1504
  Se += 1;
1505
1505
  var l = function() {
1506
1506
  for (var p = arguments.length, P = new Array(p), C = 0; C < p; C++) P[C] = arguments[C];
1507
- S < oi && (s = null, c = null, S = Se, Se += 1);
1507
+ S < oi && (f = null, c = null, S = Se, Se += 1);
1508
1508
  var h;
1509
- h = r ? (c = c || new Me()).getOrSet(this, Ji) : s = s || {};
1509
+ h = r ? (c = c || new Me()).getOrSet(this, Ji) : f = f || {};
1510
1510
  var g;
1511
1511
  try {
1512
1512
  g = ni(P);
@@ -1522,7 +1522,7 @@ function Pr() {
1522
1522
  }, b;
1523
1523
  };
1524
1524
  return l.reset = function() {
1525
- s = null, c = null;
1525
+ f = null, c = null;
1526
1526
  }, ri(l, (t.name || ti(e)) + "::memoized");
1527
1527
  }
1528
1528
  ue.clear = function() {
@@ -1531,7 +1531,7 @@ function Pr() {
1531
1531
  function Ki(e) {
1532
1532
  var t = {};
1533
1533
  function i() {
1534
- for (var r = arguments, n = this, s = arguments.length, c = new Array(s), S = 0; S < s; S++) c[S] = arguments[S];
1534
+ for (var r = arguments, n = this, f = arguments.length, c = new Array(f), S = 0; S < f; S++) c[S] = arguments[S];
1535
1535
  var l = ni(c);
1536
1536
  return t.hasOwnProperty(l) || (t[l] = R.try(function() {
1537
1537
  return e.apply(n, r);
@@ -1611,8 +1611,8 @@ function Pr() {
1611
1611
  }(), t = /.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e), i = t && t[1];
1612
1612
  if (!i) return;
1613
1613
  for (var r = 0, n = [].slice.call(document.getElementsByTagName("script")).reverse(); r < n.length; r++) {
1614
- var s = n[r];
1615
- if (s.src && s.src === i) return s;
1614
+ var f = n[r];
1615
+ if (f.src && f.src === i) return f;
1616
1616
  }
1617
1617
  } catch (c) {
1618
1618
  }
@@ -1630,9 +1630,9 @@ function Pr() {
1630
1630
  if (t && typeof t == "string" || (t = e.getAttribute("data-uid-auto")) && typeof t == "string") return t;
1631
1631
  if (e.src) {
1632
1632
  var i = function(r) {
1633
- for (var n = "", s = 0; s < r.length; s++) {
1634
- var c = r[s].charCodeAt(0) * s;
1635
- r[s + 1] && (c += r[s + 1].charCodeAt(0) * (s - 1)), n += String.fromCharCode(97 + Math.abs(c) % 26);
1633
+ for (var n = "", f = 0; f < r.length; f++) {
1634
+ var c = r[f].charCodeAt(0) * f;
1635
+ r[f + 1] && (c += r[f + 1].charCodeAt(0) * (f - 1)), n += String.fromCharCode(97 + Math.abs(c) % 26);
1636
1636
  }
1637
1637
  return n;
1638
1638
  }(JSON.stringify({
@@ -1694,18 +1694,18 @@ function Pr() {
1694
1694
  has: function(n) {
1695
1695
  return r(n).hasOwnProperty(e);
1696
1696
  },
1697
- get: function(n, s) {
1697
+ get: function(n, f) {
1698
1698
  var c = r(n);
1699
- return c.hasOwnProperty(e) ? c[e] : s;
1699
+ return c.hasOwnProperty(e) ? c[e] : f;
1700
1700
  },
1701
- set: function(n, s) {
1702
- return r(n)[e] = s, s;
1701
+ set: function(n, f) {
1702
+ return r(n)[e] = f, f;
1703
1703
  },
1704
1704
  del: function(n) {
1705
1705
  delete r(n)[e];
1706
1706
  },
1707
- getOrSet: function(n, s) {
1708
- return he(r(n), e, s);
1707
+ getOrSet: function(n, f) {
1708
+ return he(r(n), e, f);
1709
1709
  }
1710
1710
  };
1711
1711
  });
@@ -1718,10 +1718,10 @@ function Pr() {
1718
1718
  n && n.resolve({
1719
1719
  domain: i
1720
1720
  });
1721
- var s = R.resolve({
1721
+ var f = R.resolve({
1722
1722
  domain: i
1723
1723
  });
1724
- return r.set(e, s), s;
1724
+ return r.set(e, f), f;
1725
1725
  }
1726
1726
  function je(e, t) {
1727
1727
  return (0, t.send)(e, "postrobot_hello", {
@@ -1833,16 +1833,16 @@ function Pr() {
1833
1833
  }
1834
1834
  }
1835
1835
  function hi(e, t) {
1836
- var i = t.send, r = t.id, n = r === void 0 ? Q() : r, s = e.then(function(l) {
1836
+ var i = t.send, r = t.id, n = r === void 0 ? Q() : r, f = e.then(function(l) {
1837
1837
  if (J(l)) return ie(l).name;
1838
1838
  }), c = e.then(function(l) {
1839
1839
  if (V(l)) throw new Error("Window is closed, can not determine type");
1840
1840
  return K(l) ? "popup" : "iframe";
1841
1841
  });
1842
- s.catch(ne), c.catch(ne);
1842
+ f.catch(ne), c.catch(ne);
1843
1843
  var S = function() {
1844
1844
  return e.then(function(l) {
1845
- if (!V(l)) return J(l) ? ie(l).name : s;
1845
+ if (!V(l)) return J(l) ? ie(l).name : f;
1846
1846
  });
1847
1847
  };
1848
1848
  return {
@@ -1907,15 +1907,15 @@ function Pr() {
1907
1907
  return e.then(function(p) {
1908
1908
  var P = J(p), C = Xe(p);
1909
1909
  if (!P) throw new Error("Can not set name for cross-domain window: " + l);
1910
- ie(p).name = l, C && C.setAttribute("name", l), s = R.resolve(l);
1910
+ ie(p).name = l, C && C.setAttribute("name", l), f = R.resolve(l);
1911
1911
  });
1912
1912
  }
1913
1913
  };
1914
1914
  }
1915
1915
  var G = function() {
1916
1916
  function e(i) {
1917
- var r = i.send, n = i.win, s = i.serializedWindow;
1918
- this.id = void 0, this.isProxyWindow = !0, this.serializedWindow = void 0, this.actualWindow = void 0, this.actualWindowPromise = void 0, this.send = void 0, this.name = void 0, this.actualWindowPromise = new R(), this.serializedWindow = s || hi(this.actualWindowPromise, {
1917
+ var r = i.send, n = i.win, f = i.serializedWindow;
1918
+ this.id = void 0, this.isProxyWindow = !0, this.serializedWindow = void 0, this.actualWindow = void 0, this.actualWindowPromise = void 0, this.send = void 0, this.name = void 0, this.actualWindowPromise = new R(), this.serializedWindow = f || hi(this.actualWindowPromise, {
1919
1919
  send: r
1920
1920
  }), j("idToProxyWindow").set(this.getID(), this), n && this.setWindow(n, {
1921
1921
  send: r
@@ -1948,14 +1948,14 @@ function Pr() {
1948
1948
  return i;
1949
1949
  });
1950
1950
  }, t.focus = function() {
1951
- var i = this, r = this.isPopup(), n = this.getName(), s = R.hash({
1951
+ var i = this, r = this.isPopup(), n = this.getName(), f = R.hash({
1952
1952
  isPopup: r,
1953
1953
  name: n
1954
1954
  }).then(function(S) {
1955
1955
  var l = S.name;
1956
1956
  S.isPopup && l && window.open("", l, "noopener");
1957
1957
  }), c = this.serializedWindow.focus();
1958
- return R.all([s, c]).then(function() {
1958
+ return R.all([f, c]).then(function() {
1959
1959
  return i;
1960
1960
  });
1961
1961
  }, t.isClosed = function() {
@@ -1971,17 +1971,17 @@ function Pr() {
1971
1971
  }, t.awaitWindow = function() {
1972
1972
  return this.actualWindowPromise;
1973
1973
  }, t.matchWindow = function(i, r) {
1974
- var n = this, s = r.send;
1974
+ var n = this, f = r.send;
1975
1975
  return R.try(function() {
1976
1976
  return n.actualWindow ? i === n.actualWindow : R.hash({
1977
1977
  proxyInstanceID: n.getInstanceID(),
1978
1978
  knownWindowInstanceID: Si(i, {
1979
- send: s
1979
+ send: f
1980
1980
  })
1981
1981
  }).then(function(c) {
1982
1982
  var S = c.proxyInstanceID === c.knownWindowInstanceID;
1983
1983
  return S && n.setWindow(i, {
1984
- send: s
1984
+ send: f
1985
1985
  }), S;
1986
1986
  });
1987
1987
  });
@@ -2011,21 +2011,21 @@ function Pr() {
2011
2011
  }, e.toProxyWindow = function(i, r) {
2012
2012
  var n = r.send;
2013
2013
  if (Fe(), e.isProxyWindow(i)) return i;
2014
- var s = i;
2015
- return U("winToProxyWindow").get(s) || new e({
2016
- win: s,
2014
+ var f = i;
2015
+ return U("winToProxyWindow").get(f) || new e({
2016
+ win: f,
2017
2017
  send: n
2018
2018
  });
2019
2019
  }, e;
2020
2020
  }();
2021
2021
  function Ue(e, t, i, r, n) {
2022
- var s = U("methodStore"), c = j("proxyWindowMethods");
2022
+ var f = U("methodStore"), c = j("proxyWindowMethods");
2023
2023
  G.isProxyWindow(r) ? c.set(e, {
2024
2024
  val: t,
2025
2025
  name: i,
2026
2026
  domain: n,
2027
2027
  source: r
2028
- }) : (c.del(e), s.getOrSet(r, function() {
2028
+ }) : (c.del(e), f.getOrSet(r, function() {
2029
2029
  return {};
2030
2030
  })[e] = {
2031
2031
  domain: n,
@@ -2041,10 +2041,10 @@ function Pr() {
2041
2041
  })[t] || r.get(t);
2042
2042
  }
2043
2043
  function $i(e, t, i, r, n) {
2044
- c = (s = {
2044
+ c = (f = {
2045
2045
  on: n.on,
2046
2046
  send: n.send
2047
- }).on, S = s.send, j("builtinListeners").getOrSet("functionCalls", function() {
2047
+ }).on, S = f.send, j("builtinListeners").getOrSet("functionCalls", function() {
2048
2048
  return c("postrobot_method", {
2049
2049
  domain: "*"
2050
2050
  }, function(P) {
@@ -2085,7 +2085,7 @@ function Pr() {
2085
2085
  });
2086
2086
  });
2087
2087
  });
2088
- var s, c, S, l = i.__id__ || Q();
2088
+ var f, c, S, l = i.__id__ || Q();
2089
2089
  e = G.unwrap(e);
2090
2090
  var p = i.__name__ || i.name || r;
2091
2091
  return typeof p == "string" && typeof p.indexOf == "function" && p.indexOf("anonymous::") === 0 && (p = p.replace("anonymous::", r + "::")), G.isProxyWindow(e) ? (Ue(l, i, p, e, t), e.awaitWindow().then(function(P) {
@@ -2096,7 +2096,7 @@ function Pr() {
2096
2096
  });
2097
2097
  }
2098
2098
  function gi(e, t, i, r) {
2099
- var n, s = r.on, c = r.send;
2099
+ var n, f = r.on, c = r.send;
2100
2100
  return function(S, l) {
2101
2101
  l === void 0 && (l = it);
2102
2102
  var p = JSON.stringify(S, function(P) {
@@ -2119,12 +2119,12 @@ function Pr() {
2119
2119
  })
2120
2120
  });
2121
2121
  }(e, t, S, l, {
2122
- on: s,
2122
+ on: f,
2123
2123
  send: c
2124
2124
  });
2125
2125
  }, n.function = function(S, l) {
2126
2126
  return $i(e, t, S, l, {
2127
- on: s,
2127
+ on: f,
2128
2128
  send: c
2129
2129
  });
2130
2130
  }, n.object = function(S) {
@@ -2134,7 +2134,7 @@ function Pr() {
2134
2134
  }, n));
2135
2135
  }
2136
2136
  function mi(e, t, i, r) {
2137
- var n, s = r.send;
2137
+ var n, f = r.send;
2138
2138
  return function(c, S) {
2139
2139
  if (S === void 0 && (S = rt), c !== "undefined") return JSON.parse(c, function(l, p) {
2140
2140
  if (ze(this)) return p;
@@ -2189,11 +2189,11 @@ function Pr() {
2189
2189
  fireAndForget: !0
2190
2190
  }), v;
2191
2191
  }(e, t, c, {
2192
- send: s
2192
+ send: f
2193
2193
  });
2194
2194
  }, n.cross_domain_window = function(c) {
2195
2195
  return G.deserialize(c, {
2196
- send: s
2196
+ send: f
2197
2197
  });
2198
2198
  }, n));
2199
2199
  }
@@ -2202,7 +2202,7 @@ function Pr() {
2202
2202
  i.indexOf("file:") === 0 && (i = "*"), e.postMessage(t, i);
2203
2203
  };
2204
2204
  function qe(e, t, i, r) {
2205
- var n = r.on, s = r.send;
2205
+ var n = r.on, f = r.send;
2206
2206
  return R.try(function() {
2207
2207
  var c = U().getOrSet(e, function() {
2208
2208
  return {};
@@ -2211,7 +2211,7 @@ function Pr() {
2211
2211
  if (V(e)) throw new Error("Window is closed");
2212
2212
  var S = gi(e, t, ((l = {}).__post_robot_10_0_46__ = c.buffer || [], l), {
2213
2213
  on: n,
2214
- send: s
2214
+ send: f
2215
2215
  }), l;
2216
2216
  delete c.buffer;
2217
2217
  for (var p = Object.keys(He), P = [], C = 0; C < p.length; C++) {
@@ -2246,8 +2246,8 @@ function Pr() {
2246
2246
  function wi(e) {
2247
2247
  var t = e.name, i = e.win, r = e.domain, n = U("requestListeners");
2248
2248
  if (i === "*" && (i = null), r === "*" && (r = null), !t) throw new Error("Name required to get request listener");
2249
- for (var s = 0, c = [i, Re()]; s < c.length; s++) {
2250
- var S = c[s];
2249
+ for (var f = 0, c = [i, Re()]; f < c.length; f++) {
2250
+ var S = c[f];
2251
2251
  if (S) {
2252
2252
  var l = n.get(S);
2253
2253
  if (l) {
@@ -2267,7 +2267,7 @@ function Pr() {
2267
2267
  }
2268
2268
  }
2269
2269
  function nt(e, t, i, r) {
2270
- var n = r.on, s = r.send, c = wi({
2270
+ var n = r.on, f = r.send, c = wi({
2271
2271
  name: i.name,
2272
2272
  win: e,
2273
2273
  domain: t
@@ -2286,7 +2286,7 @@ function Pr() {
2286
2286
  error: C
2287
2287
  }, {
2288
2288
  on: n,
2289
- send: s
2289
+ send: f
2290
2290
  });
2291
2291
  } catch (h) {
2292
2292
  throw new Error("Send response message failed for " + S + " in " + M() + `
@@ -2305,7 +2305,7 @@ function Pr() {
2305
2305
  name: i.name
2306
2306
  }, {
2307
2307
  on: n,
2308
- send: s
2308
+ send: f
2309
2309
  });
2310
2310
  } catch (p) {
2311
2311
  throw new Error("Send ack message failed for " + S + " in " + M() + `
@@ -2362,7 +2362,7 @@ function Pr() {
2362
2362
  } catch (P) {
2363
2363
  return;
2364
2364
  }
2365
- var s = e.source, c = e.origin, S = function(P, C, h, g) {
2365
+ var f = e.source, c = e.origin, S = function(P, C, h, g) {
2366
2366
  var w = g.on, v = g.send, b;
2367
2367
  try {
2368
2368
  b = mi(C, h, P, {
@@ -2376,21 +2376,21 @@ function Pr() {
2376
2376
  var x = b.__post_robot_10_0_46__;
2377
2377
  if (Array.isArray(x)) return x;
2378
2378
  }
2379
- }(e.data, s, c, {
2379
+ }(e.data, f, c, {
2380
2380
  on: i,
2381
2381
  send: r
2382
2382
  });
2383
2383
  if (S) {
2384
- ui(s);
2384
+ ui(f);
2385
2385
  for (var l = 0; l < S.length; l++) {
2386
2386
  var p = S[l];
2387
- if (n.has(p.id) || (n.set(p.id, !0), V(s) && !p.fireAndForget)) return;
2387
+ if (n.has(p.id) || (n.set(p.id, !0), V(f) && !p.fireAndForget)) return;
2388
2388
  p.origin.indexOf("file:") === 0 && (c = "file://");
2389
2389
  try {
2390
- p.type === "postrobot_message_request" ? nt(s, c, p, {
2390
+ p.type === "postrobot_message_request" ? nt(f, c, p, {
2391
2391
  on: i,
2392
2392
  send: r
2393
- }) : p.type === "postrobot_message_response" ? st(s, c, p) : p.type === "postrobot_message_ack" && ot(s, c, p);
2393
+ }) : p.type === "postrobot_message_response" ? st(f, c, p) : p.type === "postrobot_message_ack" && ot(f, c, p);
2394
2394
  } catch (P) {
2395
2395
  setTimeout(function() {
2396
2396
  throw P;
@@ -2402,8 +2402,8 @@ function Pr() {
2402
2402
  function se(e, t, i) {
2403
2403
  if (!e) throw new Error("Expected name");
2404
2404
  if (typeof (t = t || {}) == "function" && (i = t, t = {}), !i) throw new Error("Expected handler");
2405
- var r = function n(s, c) {
2406
- var S = s.name, l = s.win, p = s.domain, P = U("requestListeners");
2405
+ var r = function n(f, c) {
2406
+ var S = f.name, l = f.win, p = f.domain, P = U("requestListeners");
2407
2407
  if (!S || typeof S != "string") throw new Error("Name required to add request listener");
2408
2408
  if (l && l !== "*" && G.isProxyWindow(l)) {
2409
2409
  var C = l.awaitWindow().then(function(N) {
@@ -2488,14 +2488,14 @@ function Pr() {
2488
2488
  function ft(e, t, i) {
2489
2489
  typeof (t = t || {}) == "function" && (i = t, t = {});
2490
2490
  var r = new R(), n;
2491
- return t.errorHandler = function(s) {
2492
- n.cancel(), r.reject(s);
2493
- }, n = se(e, t, function(s) {
2494
- if (n.cancel(), r.resolve(s), i) return i(s);
2491
+ return t.errorHandler = function(f) {
2492
+ n.cancel(), r.reject(f);
2493
+ }, n = se(e, t, function(f) {
2494
+ if (n.cancel(), r.resolve(f), i) return i(f);
2495
2495
  }), r.cancel = n.cancel, r;
2496
2496
  }
2497
2497
  var X = function e(t, i, r, n) {
2498
- var s = (n = n || {}).domain || "*", c = n.timeout || -1, S = n.timeout || 5e3, l = n.fireAndForget || !1;
2498
+ var f = (n = n || {}).domain || "*", c = n.timeout || -1, S = n.timeout || 5e3, l = n.fireAndForget || !1;
2499
2499
  return G.toProxyWindow(t, {
2500
2500
  send: e
2501
2501
  }).awaitWindow().then(function(p) {
@@ -2504,7 +2504,7 @@ function Pr() {
2504
2504
  if (!P) throw new Error("Expected name");
2505
2505
  if (typeof h != "string" && !Array.isArray(h) && !Be(h)) throw new TypeError("Can not send " + P + ". Expected domain " + JSON.stringify(h) + " to be a string, array, or regex");
2506
2506
  if (V(C)) throw new Error("Can not send " + P + ". Target window is closed");
2507
- }(i, p, s), function(P, C) {
2507
+ }(i, p, f), function(P, C) {
2508
2508
  var h = Ze(C);
2509
2509
  if (h) return h === P;
2510
2510
  if (C === P || function(v) {
@@ -2564,7 +2564,7 @@ function Pr() {
2564
2564
  return b;
2565
2565
  });
2566
2566
  });
2567
- }(p, s, (P === void 0 ? {} : P).domain, {
2567
+ }(p, f, (P === void 0 ? {} : P).domain, {
2568
2568
  send: e
2569
2569
  });
2570
2570
  }).then(function(P) {
@@ -2662,7 +2662,7 @@ function Pr() {
2662
2662
  send: i
2663
2663
  });
2664
2664
  }, function(n) {
2665
- var s = n.on, c = n.send;
2665
+ var f = n.on, c = n.send;
2666
2666
  j().getOrSet("postMessageListener", function() {
2667
2667
  return function(S, l, p) {
2668
2668
  return S.addEventListener("message", p), {
@@ -2688,7 +2688,7 @@ function Pr() {
2688
2688
  }
2689
2689
  });
2690
2690
  })(S, {
2691
- on: s,
2691
+ on: f,
2692
2692
  send: c
2693
2693
  });
2694
2694
  });
@@ -2697,9 +2697,9 @@ function Pr() {
2697
2697
  on: se,
2698
2698
  send: X
2699
2699
  }), function(n) {
2700
- var s = n.on, c = n.send;
2700
+ var f = n.on, c = n.send;
2701
2701
  j("builtinListeners").getOrSet("helloListener", function() {
2702
- var S = s("postrobot_hello", {
2702
+ var S = f("postrobot_hello", {
2703
2703
  domain: "*"
2704
2704
  }, function(p) {
2705
2705
  return li(p.source, {
@@ -2722,8 +2722,8 @@ function Pr() {
2722
2722
  function lt() {
2723
2723
  (function() {
2724
2724
  for (var t = j("responseListeners"), i = 0, r = t.keys(); i < r.length; i++) {
2725
- var n = r[i], s = t.get(n);
2726
- s && (s.cancelled = !0), t.del(n);
2725
+ var n = r[i], f = t.get(n);
2726
+ f && (f.cancelled = !0), t.del(n);
2727
2727
  }
2728
2728
  })(), (e = j().get("postMessageListener")) && e.cancel();
2729
2729
  var e;