@soyio/soyio-widget 2.11.3 → 2.13.0

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
@@ -1,64 +1,64 @@
1
1
  var on = Object.defineProperty;
2
2
  var wt = Object.getOwnPropertySymbols, an = Object.getPrototypeOf, sn = Object.prototype.hasOwnProperty, un = Object.prototype.propertyIsEnumerable, cn = Reflect.get;
3
- var dn = (d, f, h) => f in d ? on(d, f, { enumerable: !0, configurable: !0, writable: !0, value: h }) : d[f] = h;
4
- var gt = (d, f) => {
3
+ var dn = (c, f, h) => f in c ? on(c, f, { enumerable: !0, configurable: !0, writable: !0, value: h }) : c[f] = h;
4
+ var gt = (c, f) => {
5
5
  var h = {};
6
- for (var l in d)
7
- sn.call(d, l) && f.indexOf(l) < 0 && (h[l] = d[l]);
8
- if (d != null && wt)
9
- for (var l of wt(d))
10
- f.indexOf(l) < 0 && un.call(d, l) && (h[l] = d[l]);
6
+ for (var l in c)
7
+ sn.call(c, l) && f.indexOf(l) < 0 && (h[l] = c[l]);
8
+ if (c != null && wt)
9
+ for (var l of wt(c))
10
+ f.indexOf(l) < 0 && un.call(c, l) && (h[l] = c[l]);
11
11
  return h;
12
12
  };
13
- var O = (d, f, h) => (dn(d, typeof f != "symbol" ? f + "" : f, h), h), fn = (d, f, h) => {
14
- if (!f.has(d))
13
+ var A = (c, f, h) => (dn(c, typeof f != "symbol" ? f + "" : f, h), h), fn = (c, f, h) => {
14
+ if (!f.has(c))
15
15
  throw TypeError("Cannot " + h);
16
16
  };
17
- var yt = (d, f, h) => {
18
- if (f.has(d))
17
+ var yt = (c, f, h) => {
18
+ if (f.has(c))
19
19
  throw TypeError("Cannot add the same private member more than once");
20
- f instanceof WeakSet ? f.add(d) : f.set(d, h);
20
+ f instanceof WeakSet ? f.add(c) : f.set(c, h);
21
21
  };
22
- var Et = (d, f, h) => (fn(d, f, "access private method"), h), xt = (d, f, h) => cn(an(d), h, f);
23
- var H = (d, f, h) => new Promise((l, g) => {
22
+ var Et = (c, f, h) => (fn(c, f, "access private method"), h), xt = (c, f, h) => cn(an(c), h, f);
23
+ var H = (c, f, h) => new Promise((l, g) => {
24
24
  var y = (D) => {
25
25
  try {
26
- I(h.next(D));
27
- } catch (j) {
28
- g(j);
26
+ W(h.next(D));
27
+ } catch (M) {
28
+ g(M);
29
29
  }
30
30
  }, E = (D) => {
31
31
  try {
32
- I(h.throw(D));
33
- } catch (j) {
34
- g(j);
32
+ W(h.throw(D));
33
+ } catch (M) {
34
+ g(M);
35
35
  }
36
- }, I = (D) => D.done ? l(D.value) : Promise.resolve(D.value).then(y, E);
37
- I((h = h.apply(d, f)).next());
36
+ }, W = (D) => D.done ? l(D.value) : Promise.resolve(D.value).then(y, E);
37
+ W((h = h.apply(c, f)).next());
38
38
  });
39
- function ln(d, f) {
39
+ function ln(c, f) {
40
40
  for (var h = 0; h < f.length; h++) {
41
41
  const l = f[h];
42
42
  if (typeof l != "string" && !Array.isArray(l)) {
43
43
  for (const g in l)
44
- if (g !== "default" && !(g in d)) {
44
+ if (g !== "default" && !(g in c)) {
45
45
  const y = Object.getOwnPropertyDescriptor(l, g);
46
- y && Object.defineProperty(d, g, y.get ? y : {
46
+ y && Object.defineProperty(c, g, y.get ? y : {
47
47
  enumerable: !0,
48
48
  get: () => l[g]
49
49
  });
50
50
  }
51
51
  }
52
52
  }
53
- return Object.freeze(Object.defineProperty(d, Symbol.toStringTag, { value: "Module" }));
53
+ return Object.freeze(Object.defineProperty(c, Symbol.toStringTag, { value: "Module" }));
54
54
  }
55
55
  const Se = !!(typeof window != "undefined" && window.document && window.document.createElement);
56
56
  class hn {
57
57
  constructor() {
58
- O(this, "tooltipElement", null);
59
- O(this, "tooltipContent", null);
60
- O(this, "tooltipClass", "soyio-tooltip");
61
- O(this, "hideTimeout", null);
58
+ A(this, "tooltipElement", null);
59
+ A(this, "tooltipContent", null);
60
+ A(this, "tooltipClass", "soyio-tooltip");
61
+ A(this, "hideTimeout", null);
62
62
  Se && (this.createTooltipElement(), this.setupGlobalListeners());
63
63
  }
64
64
  createTooltipElement() {
@@ -97,13 +97,13 @@ class hn {
97
97
  (f = this.tooltipElement) == null || f.remove(), this.tooltipElement = null, this.tooltipContent = null, this.hideTimeout && (clearTimeout(this.hideTimeout), this.hideTimeout = null);
98
98
  }
99
99
  }
100
- function mn(d, f, h) {
100
+ function mn(c, f, h) {
101
101
  return H(this, null, function* () {
102
- if (!d.contentWindow)
102
+ if (!c.contentWindow)
103
103
  throw new Error("Invalid iframe: contentWindow is null");
104
104
  const l = yield Promise.resolve().then(() => Ue);
105
105
  try {
106
- yield l.send(d.contentWindow, "SET_APPEARANCE", { appearance: f, identifier: h });
106
+ yield l.send(c.contentWindow, "SET_APPEARANCE", { appearance: f, identifier: h });
107
107
  } catch (g) {
108
108
  console.error("Failed to send appearance config:", g);
109
109
  }
@@ -118,29 +118,29 @@ const pn = "IFRAME_READY", vn = "IFRAME_HEIGHT_CHANGE", wn = "TOOLTIP_STATE_CHAN
118
118
  // CONSENT
119
119
  onStateChange: {}
120
120
  };
121
- let St, bt, It, Wt, Ct;
121
+ let St, bt, It, Wt, Pt;
122
122
  function En() {
123
123
  return H(this, null, function* () {
124
- const d = yield Promise.resolve().then(() => Ue);
125
- St || bt || It || Wt || Ct || (St = d.on(vn, (f) => H(this, null, function* () {
124
+ const c = yield Promise.resolve().then(() => Ue);
125
+ St || bt || It || Wt || Pt || (St = c.on(vn, (f) => H(this, null, function* () {
126
126
  const h = f.data, l = k.onHeightChange[h.identifier];
127
127
  return l && l(h.height), Promise.resolve();
128
- })), bt = d.on(pn, (f) => H(this, null, function* () {
128
+ })), bt = c.on(pn, (f) => H(this, null, function* () {
129
129
  const h = f.data, l = k.onIframeReady[h.identifier];
130
130
  return l && l(), Promise.resolve();
131
- })), It = d.on(wn, (f) => H(this, null, function* () {
131
+ })), It = c.on(wn, (f) => H(this, null, function* () {
132
132
  const h = f.data, l = k.onTooltipChange[h.identifier];
133
133
  return l && l(h), Promise.resolve();
134
- })), Wt = d.on(yn, (f) => H(this, null, function* () {
134
+ })), Wt = c.on(yn, (f) => H(this, null, function* () {
135
135
  const h = f.data, l = k.onStateChange[h.identifier];
136
136
  return l && l(h), Promise.resolve();
137
- })), Ct = d.on(gn, (h) => H(this, [h], function* ({ data: f }) {
137
+ })), Pt = c.on(gn, (h) => H(this, [h], function* ({ data: f }) {
138
138
  const E = f, { identifier: l } = E, g = gt(E, ["identifier"]), y = k.onInfo[l];
139
139
  return y && y(g), Promise.resolve();
140
140
  })));
141
141
  });
142
142
  }
143
- function Pt(d, f) {
143
+ function Ct(c, f) {
144
144
  const {
145
145
  onHeightChange: h,
146
146
  onIframeReady: l,
@@ -148,21 +148,21 @@ function Pt(d, f) {
148
148
  onStateChange: y,
149
149
  onInfo: E
150
150
  } = f;
151
- h && (k.onHeightChange[d] = h), l && (k.onIframeReady[d] = l), g && (k.onTooltipChange[d] = g), y && (k.onStateChange[d] = y), E && (k.onInfo[d] = E);
151
+ h && (k.onHeightChange[c] = h), l && (k.onIframeReady[c] = l), g && (k.onTooltipChange[c] = g), y && (k.onStateChange[c] = y), E && (k.onInfo[c] = E);
152
152
  }
153
- function xn(d) {
154
- delete k.onHeightChange[d], delete k.onIframeReady[d], delete k.onTooltipChange[d], delete k.onStateChange[d], delete k.onInfo[d];
153
+ function xn(c) {
154
+ delete k.onHeightChange[c], delete k.onIframeReady[c], delete k.onTooltipChange[c], delete k.onStateChange[c], delete k.onInfo[c];
155
155
  }
156
- function Sn(d) {
157
- const f = document.getElementById(d);
156
+ function Sn(c) {
157
+ const f = document.getElementById(c);
158
158
  f && (console.warn("ConsentBox iframe already exists. Removing existing before mounting new one."), f.remove());
159
159
  }
160
- function bn(d) {
161
- const f = document.querySelector(d);
160
+ function bn(c) {
161
+ const f = document.querySelector(c);
162
162
  if (!f)
163
- throw new Error(`Iframe div container with id '${d}' not found`);
163
+ throw new Error(`Iframe div container with id '${c}' not found`);
164
164
  if (f.tagName.toLowerCase() !== "div")
165
- throw new Error(`Iframe container with id '${d}' must be a <div> element`);
165
+ throw new Error(`Iframe container with id '${c}' must be a <div> element`);
166
166
  const h = f;
167
167
  return h.style.position = "relative", h.style.cssText += `
168
168
  padding: 0 !important;
@@ -175,9 +175,9 @@ function bn(d) {
175
175
  opacity: 1 !important;
176
176
  `, h;
177
177
  }
178
- function In(d, f, h) {
178
+ function In(c, f, h) {
179
179
  const l = document.createElement("iframe");
180
- return l.id = f, l.src = d, l.style.cssText += `
180
+ return l.id = f, l.src = c, l.style.cssText += `
181
181
  width: 100% !important;
182
182
  min-width: ${h.minWidth} !important;
183
183
  max-width: ${h.maxWidth} !important;
@@ -191,14 +191,15 @@ function In(d, f, h) {
191
191
  function Wn() {
192
192
  return Math.random().toString(36).substring(2, 10);
193
193
  }
194
- const Tt = "https://app.soyio.id", Rt = "https://sandbox.soyio.id", Cn = "https://privacy.soyio.id", Pn = "https://privacy-sandbox.soyio.id", Tn = [
194
+ const Tt = "https://app.soyio.id", Rt = "https://sandbox.soyio.id", Pn = "https://privacy.soyio.id", Cn = "https://privacy-sandbox.soyio.id", Tn = [
195
195
  "DISCLOSURE_REQUEST_SUCCESSFUL",
196
196
  "IDENTITY_REGISTERED",
197
197
  "IDENTITY_SIGNATURE",
198
198
  "UNEXPECTED_ERROR",
199
199
  "DENIED_CAMERA_PERMISSION",
200
- "REJECTED_SIGNATURE"
201
- ], Rn = "WIDGET_CLOSED", An = 420, On = 720, Nn = 500, Dn = {
200
+ "REJECTED_SIGNATURE",
201
+ "CLOSE_POPUP"
202
+ ], Rn = "WIDGET_CLOSED", On = 420, An = 720, Nn = 500, Dn = {
202
203
  minWidth: "375px",
203
204
  maxWidth: "50rem"
204
205
  }, Ln = {
@@ -210,14 +211,14 @@ const Tt = "https://app.soyio.id", Rt = "https://sandbox.soyio.id", Cn = "https:
210
211
  };
211
212
  class Ie {
212
213
  constructor(f) {
213
- O(this, "iframe", null);
214
- O(this, "skeleton", null);
215
- O(this, "options");
216
- O(this, "appearance");
217
- O(this, "tooltipManager");
218
- O(this, "defaultIframeCSSConfig", Dn);
219
- O(this, "Skeleton", null);
220
- O(this, "defaultUniqueId");
214
+ A(this, "iframe", null);
215
+ A(this, "skeleton", null);
216
+ A(this, "options");
217
+ A(this, "appearance");
218
+ A(this, "tooltipManager");
219
+ A(this, "defaultIframeCSSConfig", Dn);
220
+ A(this, "Skeleton", null);
221
+ A(this, "defaultUniqueId");
221
222
  this.options = f, this.appearance = f.appearance || null, this.tooltipManager = new hn(), this.defaultUniqueId = Ie.generateUniqueId();
222
223
  }
223
224
  static generateUniqueId() {
@@ -243,8 +244,8 @@ class Ie {
243
244
  handleTooltipChange(f) {
244
245
  if (!this.iframe)
245
246
  return;
246
- const h = this.iframe.getBoundingClientRect(), { text: l, coordinates: g, isVisible: y } = f, E = g.x + h.left, I = g.y + h.top;
247
- y ? this.tooltipManager.show(l, E, I) : this.tooltipManager.hide();
247
+ const h = this.iframe.getBoundingClientRect(), { text: l, coordinates: g, isVisible: y } = f, E = g.x + h.left, W = g.y + h.top;
248
+ y ? this.tooltipManager.show(l, E, W) : this.tooltipManager.hide();
248
249
  }
249
250
  setupListeners() {
250
251
  return H(this, null, function* () {
@@ -255,7 +256,7 @@ class Ie {
255
256
  onTooltipChange: this.handleTooltipChange.bind(this),
256
257
  onInfo: this.options.onEvent.bind(this)
257
258
  };
258
- Pt(this.uniqueIdentifier, f);
259
+ Ct(this.uniqueIdentifier, f);
259
260
  });
260
261
  }
261
262
  mount(f) {
@@ -271,10 +272,10 @@ class Ie {
271
272
  Se && (xn(this.uniqueIdentifier), this.skeleton && (this.skeleton.hide(), this.skeleton = null), this.iframe && (this.iframe.remove(), this.iframe = null));
272
273
  }
273
274
  }
274
- class Mn {
275
+ class jn {
275
276
  constructor(f) {
276
- O(this, "element");
277
- O(this, "identifier");
277
+ A(this, "element");
278
+ A(this, "identifier");
278
279
  this.identifier = `skeleton-${f}`, this.element = document.createElement("div"), this.element.id = this.identifier, this.element.style.cssText = `
279
280
  position: absolute;
280
281
  left: 50%;
@@ -338,8 +339,8 @@ class Mn {
338
339
  margin-left: auto;
339
340
  margin-right: 3px;
340
341
  `;
341
- const I = document.createElement("div");
342
- I.style.cssText = `
342
+ const W = document.createElement("div");
343
+ W.style.cssText = `
343
344
  display: flex;
344
345
  align-items: center;
345
346
  gap: 1rem;
@@ -355,8 +356,8 @@ class Mn {
355
356
  flex-shrink: 0;
356
357
  margin-left: 10px;
357
358
  `;
358
- const j = document.createElement("div");
359
- j.style.cssText = `
359
+ const M = document.createElement("div");
360
+ M.style.cssText = `
360
361
  flex-grow: 1;
361
362
  display: flex;
362
363
  flex-direction: column;
@@ -388,7 +389,7 @@ class Mn {
388
389
  }
389
390
  `, document.head.appendChild(Z);
390
391
  }
391
- l.appendChild(g), l.appendChild(y), l.appendChild(E), j.appendChild(B), j.appendChild(oe), I.appendChild(D), I.appendChild(j), h.appendChild(l), h.appendChild(I), this.element.appendChild(h);
392
+ l.appendChild(g), l.appendChild(y), l.appendChild(E), M.appendChild(B), M.appendChild(oe), W.appendChild(D), W.appendChild(M), h.appendChild(l), h.appendChild(W), this.element.appendChild(h);
392
393
  }
393
394
  cleanupExistingSkeleton() {
394
395
  const f = document.getElementById(this.identifier);
@@ -401,7 +402,7 @@ class Mn {
401
402
  this.element.style.opacity = "0", setTimeout(() => this.element.remove(), 300);
402
403
  }
403
404
  }
404
- function jn(d) {
405
+ function Mn(c) {
405
406
  var E;
406
407
  const f = [
407
408
  "actionToken",
@@ -409,29 +410,29 @@ function jn(d) {
409
410
  "context",
410
411
  "optionalReconsentBehavior",
411
412
  "mandatoryReconsentBehavior"
412
- ], h = (E = d.isSandbox) != null ? E : !1, l = d.developmentUrl || (h ? Rt : Tt), g = new URLSearchParams();
413
- f.forEach((I) => {
414
- d[I] && g.set(I, d[I]);
413
+ ], h = (E = c.isSandbox) != null ? E : !1, l = c.developmentUrl || (h ? Rt : Tt), g = new URLSearchParams();
414
+ f.forEach((W) => {
415
+ c[W] && g.set(W, c[W]);
415
416
  });
416
417
  const y = g.toString();
417
- return `${l}/embed/consents/${d.consentTemplateId}${y ? `?${y}` : ""}`;
418
+ return `${l}/embed/consents/${c.consentTemplateId}${y ? `?${y}` : ""}`;
418
419
  }
419
- class At extends Ie {
420
+ class Ot extends Ie {
420
421
  constructor(h) {
421
422
  super(h);
422
- O(this, "defaultIframePrefix", "consent-box");
423
- O(this, "defaultIframeCSSConfig", Ln);
424
- O(this, "state", {
423
+ A(this, "defaultIframePrefix", "consent-box");
424
+ A(this, "defaultIframeCSSConfig", Ln);
425
+ A(this, "state", {
425
426
  isSelected: !1,
426
427
  actionToken: null
427
428
  });
428
- this.Skeleton = Mn;
429
+ this.Skeleton = jn;
429
430
  }
430
431
  get uniqueIdentifier() {
431
432
  return this.options.consentTemplateId;
432
433
  }
433
434
  iframeUrl() {
434
- return jn(this.options);
435
+ return Mn(this.options);
435
436
  }
436
437
  handleStateChange(h) {
437
438
  const { isSelected: l, actionToken: g } = h;
@@ -443,7 +444,7 @@ class At extends Ie {
443
444
  }
444
445
  setupListeners() {
445
446
  return H(this, null, function* () {
446
- yield xt(At.prototype, this, "setupListeners").call(this), Pt(this.uniqueIdentifier, {
447
+ yield xt(Ot.prototype, this, "setupListeners").call(this), Ct(this.uniqueIdentifier, {
447
448
  onStateChange: this.handleStateChange.bind(this)
448
449
  });
449
450
  });
@@ -452,24 +453,19 @@ class At extends Ie {
452
453
  return this.state;
453
454
  }
454
455
  }
455
- function kn(d) {
456
- var E;
457
- const f = [
458
- "subjectId",
459
- "companyId"
460
- ], h = (E = d.isSandbox) != null ? E : !1, l = d.developmentUrl || (h ? Pn : Cn), g = new URLSearchParams();
461
- f.forEach((I) => {
462
- d[I] && g.set(I, d[I]);
463
- });
464
- const y = g.toString();
465
- return `${l}/${y ? `?${y}` : ""}`;
456
+ function kn(c) {
457
+ var y, E;
458
+ const f = (y = c.isSandbox) != null ? y : !1, h = c.developmentUrl || (f ? Cn : Pn), l = new URLSearchParams();
459
+ c.sessionToken ? l.set("sessionToken", c.sessionToken) : c.companyId && (l.set("companyId", c.companyId), c.subjectId && l.set("subjectId", c.subjectId)), (E = c.enabledFeatures) != null && E.length && l.set("enabledFeatures", c.enabledFeatures.join(","));
460
+ const g = l.toString();
461
+ return `${h}${g ? `?${g}` : ""}`;
466
462
  }
467
463
  class Qn extends Ie {
468
464
  constructor() {
469
465
  super(...arguments);
470
- O(this, "defaultIframePrefix", "privacy-center");
471
- O(this, "_uniqueIdentifier", "privacy-center");
472
- O(this, "defaultIframeCSSConfig", zn);
466
+ A(this, "defaultIframePrefix", "privacy-center");
467
+ A(this, "_uniqueIdentifier", "privacy-center");
468
+ A(this, "defaultIframeCSSConfig", zn);
473
469
  }
474
470
  get uniqueIdentifier() {
475
471
  return this._uniqueIdentifier;
@@ -481,38 +477,38 @@ class Qn extends Ie {
481
477
  const er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
482
478
  __proto__: null
483
479
  }, Symbol.toStringTag, { value: "Module" })), Un = "WIDGET_EVENT";
484
- function Fn(d) {
480
+ function Fn(c) {
485
481
  let f = "widget/";
486
- return "disclosureRequestId" in d.configProps ? f += ["disclosures", d.configProps.disclosureRequestId].join("/") : f += d.request, f;
482
+ return "disclosureRequestId" in c.configProps ? f += ["disclosures", c.configProps.disclosureRequestId].join("/") : f += c.request, f;
487
483
  }
488
- function Hn(d) {
484
+ function Hn(c) {
489
485
  var y;
490
- const f = (y = d.isSandbox) != null ? y : !1, h = d.developmentUrl || (f ? Rt : Tt), l = Object.entries(d.configProps).filter(([E, I]) => I || E === "disclosureRequestId").map(([E, I]) => `${E}=${encodeURIComponent(I)}`).join("&"), g = Fn(d);
486
+ const f = (y = c.isSandbox) != null ? y : !1, h = c.developmentUrl || (f ? Rt : Tt), l = Object.entries(c.configProps).filter(([E, W]) => W || E === "disclosureRequestId").map(([E, W]) => `${E}=${encodeURIComponent(W)}`).join("&"), g = Fn(c);
491
487
  return `${h}/${g}?sdk=web&${l}`;
492
488
  }
493
- let J = null, Me = null;
494
- function je(d = null) {
495
- J && !J.closed && J.focus(), d == null || d.preventDefault();
489
+ let J = null, je = null;
490
+ function Me(c = null) {
491
+ J && !J.closed && J.focus(), c == null || c.preventDefault();
496
492
  }
497
493
  function ke() {
498
- document.body.style.filter = "", document.body.removeEventListener("click", je);
494
+ document.body.style.filter = "", document.body.removeEventListener("click", Me);
499
495
  }
500
496
  function _n() {
501
- Me = setInterval(() => {
502
- (!J || J.closed) && (Me && clearInterval(Me), ke());
497
+ je = setInterval(() => {
498
+ (!J || J.closed) && (je && clearInterval(je), ke());
503
499
  }, Nn);
504
500
  }
505
- function qn(d) {
506
- const f = Hn(d), h = An, l = On, g = window.screenLeft !== void 0 ? window.screenLeft : window.screenX, y = window.screenTop !== void 0 ? window.screenTop : window.screenY, E = window.innerWidth || document.documentElement.clientWidth || window.screen.width, I = window.innerHeight || document.documentElement.clientHeight || window.screen.height, D = E / window.screen.availWidth, j = (E - h) / 2 / D + g, B = (I - l) / 2 / D + y;
507
- document.body.style.filter = "blur(5px)", document.body.addEventListener("click", je), J = window.open(
501
+ function qn(c) {
502
+ const f = Hn(c), h = On, l = An, g = window.screenLeft !== void 0 ? window.screenLeft : window.screenX, y = window.screenTop !== void 0 ? window.screenTop : window.screenY, E = window.innerWidth || document.documentElement.clientWidth || window.screen.width, W = window.innerHeight || document.documentElement.clientHeight || window.screen.height, D = E / window.screen.availWidth, M = (E - h) / 2 / D + g, B = (W - l) / 2 / D + y;
503
+ document.body.style.filter = "blur(5px)", document.body.addEventListener("click", Me), J = window.open(
508
504
  f,
509
505
  "Soyio",
510
506
  `scrollbars=yes,
511
507
  width=${h},
512
508
  height=${l},
513
509
  top=${B},
514
- left=${j}`
515
- ), je(), _n();
510
+ left=${M}`
511
+ ), Me(), _n();
516
512
  }
517
513
  function Gn() {
518
514
  J && (J.close(), J = null), ke();
@@ -521,38 +517,38 @@ let me = null;
521
517
  function Bn() {
522
518
  me && (me.cancel(), me = null);
523
519
  }
524
- function $n(d) {
520
+ function $n(c) {
525
521
  return H(this, null, function* () {
526
- const { onEvent: f } = d, h = yield Promise.resolve().then(() => Ue);
522
+ const { onEvent: f } = c, h = yield Promise.resolve().then(() => Ue);
527
523
  me && Bn(), me = h.on(Un, (g) => H(this, [g], function* ({ data: l }) {
528
524
  return f(l), Tn.includes(l.eventName) ? Gn() : l.eventName === Rn && ke(), Promise.resolve();
529
525
  }));
530
526
  });
531
527
  }
532
- function Vn(d) {
533
- $n(d);
528
+ function Vn(c) {
529
+ $n(c);
534
530
  }
535
- var be, Ot;
531
+ var be, At;
536
532
  class tr {
537
533
  constructor(f) {
538
534
  yt(this, be);
539
- O(this, "onEvent");
535
+ A(this, "onEvent");
540
536
  this.onEvent = f.onEvent, Se && (qn(f), Vn({
541
- onEvent: Et(this, be, Ot).bind(this)
537
+ onEvent: Et(this, be, At).bind(this)
542
538
  }));
543
539
  }
544
540
  }
545
- be = new WeakSet(), Ot = function(f) {
541
+ be = new WeakSet(), At = function(f) {
546
542
  this.onEvent(f);
547
543
  };
548
544
  var Yn = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
549
- function Jn(d) {
550
- return d && d.__esModule && Object.prototype.hasOwnProperty.call(d, "default") ? d.default : d;
545
+ function Jn(c) {
546
+ return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
551
547
  }
552
548
  var Nt = { exports: {} }, Dt = { exports: {} };
553
- (function(d, f) {
549
+ (function(c, f) {
554
550
  (function(h, l) {
555
- d.exports = l();
551
+ c.exports = l();
556
552
  })(typeof self != "undefined" ? self : Yn, function() {
557
553
  return function(h) {
558
554
  var l = {};
@@ -566,10 +562,10 @@ var Nt = { exports: {} }, Dt = { exports: {} };
566
562
  };
567
563
  return h[y].call(E.exports, E, E.exports, g), E.l = !0, E.exports;
568
564
  }
569
- return g.m = h, g.c = l, g.d = function(y, E, I) {
565
+ return g.m = h, g.c = l, g.d = function(y, E, W) {
570
566
  g.o(y, E) || Object.defineProperty(y, E, {
571
567
  enumerable: !0,
572
- get: I
568
+ get: W
573
569
  });
574
570
  }, g.r = function(y) {
575
571
  typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(y, Symbol.toStringTag, {
@@ -580,16 +576,16 @@ var Nt = { exports: {} }, Dt = { exports: {} };
580
576
  }, g.t = function(y, E) {
581
577
  if (1 & E && (y = g(y)), 8 & E || 4 & E && typeof y == "object" && y && y.__esModule)
582
578
  return y;
583
- var I = /* @__PURE__ */ Object.create(null);
584
- if (g.r(I), Object.defineProperty(I, "default", {
579
+ var W = /* @__PURE__ */ Object.create(null);
580
+ if (g.r(W), Object.defineProperty(W, "default", {
585
581
  enumerable: !0,
586
582
  value: y
587
583
  }), 2 & E && typeof y != "string")
588
584
  for (var D in y)
589
- g.d(I, D, function(j) {
590
- return y[j];
585
+ g.d(W, D, function(M) {
586
+ return y[M];
591
587
  }.bind(null, D));
592
- return I;
588
+ return W;
593
589
  }, g.n = function(y) {
594
590
  var E = y && y.__esModule ? function() {
595
591
  return y.default;
@@ -602,7 +598,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
602
598
  }, g.p = "", g(g.s = 0);
603
599
  }([function(h, l, g) {
604
600
  g.r(l), g.d(l, "Promise", function() {
605
- return C;
601
+ return P;
606
602
  }), g.d(l, "TYPES", function() {
607
603
  return nn;
608
604
  }), g.d(l, "ProxyWindow", function() {
@@ -636,7 +632,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
636
632
  }
637
633
  var E = `Call was rejected by callee.\r
638
634
  `;
639
- function I(e) {
635
+ function W(e) {
640
636
  return e === void 0 && (e = window), e.location.protocol;
641
637
  }
642
638
  function D(e) {
@@ -645,9 +641,9 @@ var Nt = { exports: {} }, Dt = { exports: {} };
645
641
  if (n)
646
642
  return n;
647
643
  }
648
- return I(e);
644
+ return W(e);
649
645
  }
650
- function j(e) {
646
+ function M(e) {
651
647
  return e === void 0 && (e = window), D(e) === "about:";
652
648
  }
653
649
  function B(e) {
@@ -677,7 +673,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
677
673
  var n = e.location;
678
674
  if (!n)
679
675
  throw new Error("Can not read window location");
680
- var t = I(e);
676
+ var t = W(e);
681
677
  if (!t)
682
678
  throw new Error("Can not read window protocol");
683
679
  if (t === "file:")
@@ -710,7 +706,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
710
706
  } catch (r) {
711
707
  }
712
708
  try {
713
- if (j(n) && Z())
709
+ if (M(n) && Z())
714
710
  return !0;
715
711
  } catch (r) {
716
712
  }
@@ -730,7 +726,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
730
726
  }(e))
731
727
  return !1;
732
728
  try {
733
- if (e === window || j(e) && Z() || U(window) === U(e))
729
+ if (e === window || M(e) && Z() || U(window) === U(e))
734
730
  return !0;
735
731
  } catch (n) {
736
732
  }
@@ -782,19 +778,19 @@ var Nt = { exports: {} }, Dt = { exports: {} };
782
778
  return n;
783
779
  }
784
780
  for (var a = 0; a < 100; a++) {
785
- var c = void 0;
781
+ var d = void 0;
786
782
  try {
787
- c = t[a];
783
+ d = t[a];
788
784
  } catch (u) {
789
785
  return n;
790
786
  }
791
- if (!c)
787
+ if (!d)
792
788
  return n;
793
- n.push(c);
789
+ n.push(d);
794
790
  }
795
791
  return n;
796
792
  }
797
- var zt = [], Mt = [];
793
+ var zt = [], jt = [];
798
794
  function $(e, n) {
799
795
  n === void 0 && (n = !0);
800
796
  try {
@@ -831,12 +827,12 @@ var Nt = { exports: {} }, Dt = { exports: {} };
831
827
  try {
832
828
  if (o[a] === i)
833
829
  return a;
834
- } catch (c) {
830
+ } catch (d) {
835
831
  }
836
832
  return -1;
837
833
  }(zt, e);
838
834
  if (t !== -1) {
839
- var r = Mt[t];
835
+ var r = jt[t];
840
836
  if (r && function(o) {
841
837
  if (!o.contentWindow || !o.parentNode)
842
838
  return !0;
@@ -932,7 +928,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
932
928
  return r;
933
929
  }
934
930
  }
935
- function jt(e) {
931
+ function Mt(e) {
936
932
  if (function(t) {
937
933
  return t === void 0 && (t = window), !!B(t);
938
934
  }(e)) {
@@ -975,29 +971,29 @@ var Nt = { exports: {} }, Dt = { exports: {} };
975
971
  ae = null, e.resolve();
976
972
  }
977
973
  }
978
- function Ce() {
974
+ function Pe() {
979
975
  We += 1;
980
976
  }
981
977
  function se() {
982
978
  We -= 1, Be();
983
979
  }
984
- var C = function() {
980
+ var P = function() {
985
981
  function e(t) {
986
982
  var r = this;
987
983
  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 = [], t) {
988
- var o, i, a = !1, c = !1, u = !1;
989
- Ce();
984
+ var o, i, a = !1, d = !1, u = !1;
985
+ Pe();
990
986
  try {
991
987
  t(function(s) {
992
988
  u ? r.resolve(s) : (a = !0, o = s);
993
989
  }, function(s) {
994
- u ? r.reject(s) : (c = !0, i = s);
990
+ u ? r.reject(s) : (d = !0, i = s);
995
991
  });
996
992
  } catch (s) {
997
993
  se(), this.reject(s);
998
994
  return;
999
995
  }
1000
- se(), u = !0, a ? this.resolve(o) : c && this.reject(i);
996
+ se(), u = !0, a ? this.resolve(o) : d && this.reject(i);
1001
997
  }
1002
998
  }
1003
999
  var n = e.prototype;
@@ -1023,8 +1019,8 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1023
1019
  Ge.push(i), setTimeout(function() {
1024
1020
  throw i;
1025
1021
  }, 1);
1026
- for (var c = 0; c < ie.length; c++)
1027
- ie[c](i, a);
1022
+ for (var d = 0; d < ie.length; d++)
1023
+ ie[d](i, a);
1028
1024
  }
1029
1025
  }(t, r);
1030
1026
  }, 1), this.dispatch(), this;
@@ -1033,7 +1029,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1033
1029
  }, n.dispatch = function() {
1034
1030
  var t = this.resolved, r = this.rejected, o = this.handlers;
1035
1031
  if (!this.dispatching && (t || r)) {
1036
- this.dispatching = !0, Ce();
1032
+ this.dispatching = !0, Pe();
1037
1033
  for (var i = function(w, b) {
1038
1034
  return w.then(function(x) {
1039
1035
  b.resolve(x);
@@ -1041,7 +1037,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1041
1037
  b.reject(x);
1042
1038
  });
1043
1039
  }, a = 0; a < o.length; a++) {
1044
- var c = o[a], u = c.onSuccess, s = c.onError, v = c.promise, m = void 0;
1040
+ var d = o[a], u = d.onSuccess, s = d.onError, v = d.promise, m = void 0;
1045
1041
  if (t)
1046
1042
  try {
1047
1043
  m = u ? u(this.value) : this.value;
@@ -1128,27 +1124,27 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1128
1124
  }, function(p) {
1129
1125
  m.reject(p);
1130
1126
  });
1131
- }, c = 0; c < t.length; c++) {
1132
- var u = t[c];
1127
+ }, d = 0; d < t.length; d++) {
1128
+ var u = t[d];
1133
1129
  if (u instanceof e) {
1134
1130
  if (u.resolved) {
1135
- i[c] = u.value, o -= 1;
1131
+ i[d] = u.value, o -= 1;
1136
1132
  continue;
1137
1133
  }
1138
1134
  } else if (!ee(u)) {
1139
- i[c] = u, o -= 1;
1135
+ i[d] = u, o -= 1;
1140
1136
  continue;
1141
1137
  }
1142
- a(c, e.resolve(u), r);
1138
+ a(d, e.resolve(u), r);
1143
1139
  }
1144
1140
  return o === 0 && r.resolve(i), r;
1145
1141
  }, e.hash = function(t) {
1146
- var r = {}, o = [], i = function(c) {
1147
- if (t.hasOwnProperty(c)) {
1148
- var u = t[c];
1142
+ var r = {}, o = [], i = function(d) {
1143
+ if (t.hasOwnProperty(d)) {
1144
+ var u = t[d];
1149
1145
  ee(u) ? o.push(u.then(function(s) {
1150
- r[c] = s;
1151
- })) : r[c] = u;
1146
+ r[d] = s;
1147
+ })) : r[d] = u;
1152
1148
  }
1153
1149
  };
1154
1150
  for (var a in t)
@@ -1170,7 +1166,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1170
1166
  if (t && typeof t != "function" && !t.call)
1171
1167
  throw new Error("Promise.try expected a function");
1172
1168
  var i;
1173
- Ce();
1169
+ Pe();
1174
1170
  try {
1175
1171
  i = t.apply(r, o || []);
1176
1172
  } catch (a) {
@@ -1199,7 +1195,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1199
1195
  }
1200
1196
  return -1;
1201
1197
  }
1202
- var Pe = function() {
1198
+ var Ce = function() {
1203
1199
  function e() {
1204
1200
  if (this.name = void 0, this.weakmap = void 0, this.keys = void 0, this.values = void 0, this.name = "__weakmap_" + (1e9 * Math.random() >>> 0) + "__", function() {
1205
1201
  if (typeof WeakMap == "undefined" || Object.freeze === void 0)
@@ -1253,8 +1249,8 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1253
1249
  } catch (v) {
1254
1250
  }
1255
1251
  this._cleanupClosedWindows();
1256
- var c = this.keys, u = this.values, s = ge(c, t);
1257
- s === -1 ? (c.push(t), u.push(r)) : u[s] = r;
1252
+ var d = this.keys, u = this.values, s = ge(d, t);
1253
+ s === -1 ? (d.push(t), u.push(r)) : u[s] = r;
1258
1254
  }, n.get = function(t) {
1259
1255
  if (!t)
1260
1256
  throw new Error("WeakMap expected key");
@@ -1283,14 +1279,14 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1283
1279
  if (r)
1284
1280
  try {
1285
1281
  r.delete(t);
1286
- } catch (c) {
1282
+ } catch (d) {
1287
1283
  delete this.weakmap;
1288
1284
  }
1289
1285
  if (this.isSafeToReadWrite(t))
1290
1286
  try {
1291
1287
  var o = t[this.name];
1292
1288
  o && o[0] === t && (o[0] = o[1] = void 0);
1293
- } catch (c) {
1289
+ } catch (d) {
1294
1290
  }
1295
1291
  this._cleanupClosedWindows();
1296
1292
  var i = this.keys, a = ge(i, t);
@@ -1349,7 +1345,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1349
1345
  try {
1350
1346
  return JSON.stringify([].slice.call(e), function(n, t) {
1351
1347
  return typeof t == "function" ? "memoize[" + function(r) {
1352
- if (ye = ye || new Pe(), r == null || typeof r != "object" && typeof r != "function")
1348
+ if (ye = ye || new Ce(), r == null || typeof r != "object" && typeof r != "function")
1353
1349
  throw new Error("Invalid object");
1354
1350
  var o = ye.get(r);
1355
1351
  return o || (o = typeof r + ":" + Y(), ye.set(r, o)), o;
@@ -1365,18 +1361,18 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1365
1361
  var ue = 0, Je = 0;
1366
1362
  function ce(e, n) {
1367
1363
  n === void 0 && (n = {});
1368
- var t = n.thisNamespace, r = t !== void 0 && t, o = n.time, i, a, c = ue;
1364
+ var t = n.thisNamespace, r = t !== void 0 && t, o = n.time, i, a, d = ue;
1369
1365
  ue += 1;
1370
1366
  var u = function() {
1371
1367
  for (var s = arguments.length, v = new Array(s), m = 0; m < s; m++)
1372
1368
  v[m] = arguments[m];
1373
- c < Je && (i = null, a = null, c = ue, ue += 1);
1369
+ d < Je && (i = null, a = null, d = ue, ue += 1);
1374
1370
  var p;
1375
- p = r ? (a = a || new Pe()).getOrSet(this, kt) : i = i || {};
1371
+ p = r ? (a = a || new Ce()).getOrSet(this, kt) : i = i || {};
1376
1372
  var w;
1377
1373
  try {
1378
1374
  w = Ye(v);
1379
- } catch (P) {
1375
+ } catch (C) {
1380
1376
  return e.apply(this, arguments);
1381
1377
  }
1382
1378
  var b = p[w];
@@ -1398,10 +1394,10 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1398
1394
  function Ut(e) {
1399
1395
  var n = {};
1400
1396
  function t() {
1401
- for (var r = arguments, o = this, i = arguments.length, a = new Array(i), c = 0; c < i; c++)
1402
- a[c] = arguments[c];
1397
+ for (var r = arguments, o = this, i = arguments.length, a = new Array(i), d = 0; d < i; d++)
1398
+ a[d] = arguments[d];
1403
1399
  var u = Ye(a);
1404
- return n.hasOwnProperty(u) || (n[u] = C.try(function() {
1400
+ return n.hasOwnProperty(u) || (n[u] = P.try(function() {
1405
1401
  return e.apply(o, r);
1406
1402
  }).finally(function() {
1407
1403
  delete n[u];
@@ -1469,7 +1465,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1469
1465
  return !!document.body && document.readyState === "interactive";
1470
1466
  }
1471
1467
  ce(function() {
1472
- return new C(function(e) {
1468
+ return new P(function(e) {
1473
1469
  if (Ke() || Qe())
1474
1470
  return e();
1475
1471
  var n = setInterval(function() {
@@ -1571,7 +1567,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1571
1567
  }
1572
1568
  function F(e, n) {
1573
1569
  return e === void 0 && (e = "store"), n === void 0 && (n = et), z("windowStore").getOrSet(e, function() {
1574
- var t = new Pe(), r = function(o) {
1570
+ var t = new Ce(), r = function(o) {
1575
1571
  return t.getOrSet(o, n);
1576
1572
  };
1577
1573
  return {
@@ -1602,7 +1598,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1602
1598
  o && o.resolve({
1603
1599
  domain: t
1604
1600
  });
1605
- var i = C.resolve({
1601
+ var i = P.resolve({
1606
1602
  domain: t
1607
1603
  });
1608
1604
  return r.set(e, i), i;
@@ -1637,7 +1633,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1637
1633
  function ot(e) {
1638
1634
  F("knownWindows").set(e, !0);
1639
1635
  }
1640
- function Ae(e) {
1636
+ function Oe(e) {
1641
1637
  return typeof e == "object" && e !== null && typeof e.__type__ == "string";
1642
1638
  }
1643
1639
  function it(e) {
@@ -1703,7 +1699,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1703
1699
  return e;
1704
1700
  }, q[void 0] = function() {
1705
1701
  }, q), $t = {};
1706
- new C(function(e) {
1702
+ new P(function(e) {
1707
1703
  if (window.document && window.document.body)
1708
1704
  return e(window.document.body);
1709
1705
  var n = setInterval(function() {
@@ -1711,7 +1707,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1711
1707
  return clearInterval(n), e(window.document.body);
1712
1708
  }, 10);
1713
1709
  });
1714
- function Oe() {
1710
+ function Ae() {
1715
1711
  for (var e = z("idToProxyWindow"), n = 0, t = e.keys(); n < t.length; n++) {
1716
1712
  var r = t[n];
1717
1713
  e.get(r).shouldClean() && e.del(r);
@@ -1727,7 +1723,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1727
1723
  return oe(u) ? "popup" : "iframe";
1728
1724
  });
1729
1725
  i.catch(te), a.catch(te);
1730
- var c = function() {
1726
+ var d = function() {
1731
1727
  return e.then(function(u) {
1732
1728
  if (!$(u))
1733
1729
  return Q(u) ? ve(u).name : i;
@@ -1746,9 +1742,9 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1746
1742
  });
1747
1743
  }),
1748
1744
  close: function() {
1749
- return e.then(jt);
1745
+ return e.then(Mt);
1750
1746
  },
1751
- getName: c,
1747
+ getName: d,
1752
1748
  focus: function() {
1753
1749
  return e.then(function(u) {
1754
1750
  u.focus();
@@ -1767,17 +1763,17 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1767
1763
  else if (!u.match(/^https?:\/\//) && u.indexOf(m) !== 0)
1768
1764
  throw new Error("Expected url to be http or https url, or absolute path, got " + JSON.stringify(u));
1769
1765
  if (w === "post")
1770
- return c().then(function(x) {
1766
+ return d().then(function(x) {
1771
1767
  if (!x)
1772
1768
  throw new Error("Can not post to window without target name");
1773
1769
  (function(S) {
1774
- var P = S.url, L = S.target, R = S.body, T = S.method, M = T === void 0 ? "post" : T, W = document.createElement("form");
1775
- if (W.setAttribute("target", L), W.setAttribute("method", M), W.setAttribute("action", P), W.style.display = "none", R)
1776
- for (var A = 0, V = Object.keys(R); A < V.length; A++) {
1777
- var N, he = V[A], ze = document.createElement("input");
1778
- ze.setAttribute("name", he), ze.setAttribute("value", (N = R[he]) == null ? void 0 : N.toString()), W.appendChild(ze);
1770
+ var C = S.url, L = S.target, R = S.body, T = S.method, j = T === void 0 ? "post" : T, I = document.createElement("form");
1771
+ if (I.setAttribute("target", L), I.setAttribute("method", j), I.setAttribute("action", C), I.style.display = "none", R)
1772
+ for (var O = 0, V = Object.keys(R); O < V.length; O++) {
1773
+ var N, he = V[O], ze = document.createElement("input");
1774
+ ze.setAttribute("name", he), ze.setAttribute("value", (N = R[he]) == null ? void 0 : N.toString()), I.appendChild(ze);
1779
1775
  }
1780
- Xe().appendChild(W), W.submit(), Xe().removeChild(W);
1776
+ Xe().appendChild(I), I.submit(), Xe().removeChild(I);
1781
1777
  })({
1782
1778
  url: u,
1783
1779
  target: x,
@@ -1803,7 +1799,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1803
1799
  var v = Q(s), m = qe(s);
1804
1800
  if (!v)
1805
1801
  throw new Error("Can not set name for cross-domain window: " + u);
1806
- ve(s).name = u, m && m.setAttribute("name", u), i = C.resolve(u);
1802
+ ve(s).name = u, m && m.setAttribute("name", u), i = P.resolve(u);
1807
1803
  });
1808
1804
  }
1809
1805
  };
@@ -1811,7 +1807,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1811
1807
  var G = function() {
1812
1808
  function e(t) {
1813
1809
  var r = t.send, o = t.win, i = t.serializedWindow;
1814
- 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 C(), this.serializedWindow = i || at(this.actualWindowPromise, {
1810
+ 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 P(), this.serializedWindow = i || at(this.actualWindowPromise, {
1815
1811
  send: r
1816
1812
  }), z("idToProxyWindow").set(this.getID(), this), o && this.setWindow(o, {
1817
1813
  send: r
@@ -1844,14 +1840,14 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1844
1840
  return t;
1845
1841
  });
1846
1842
  }, n.focus = function() {
1847
- var t = this, r = this.isPopup(), o = this.getName(), i = C.hash({
1843
+ var t = this, r = this.isPopup(), o = this.getName(), i = P.hash({
1848
1844
  isPopup: r,
1849
1845
  name: o
1850
- }).then(function(c) {
1851
- var u = c.name;
1852
- c.isPopup && u && window.open("", u, "noopener");
1846
+ }).then(function(d) {
1847
+ var u = d.name;
1848
+ d.isPopup && u && window.open("", u, "noopener");
1853
1849
  }), a = this.serializedWindow.focus();
1854
- return C.all([i, a]).then(function() {
1850
+ return P.all([i, a]).then(function() {
1855
1851
  return t;
1856
1852
  });
1857
1853
  }, n.isClosed = function() {
@@ -1868,17 +1864,17 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1868
1864
  return this.actualWindowPromise;
1869
1865
  }, n.matchWindow = function(t, r) {
1870
1866
  var o = this, i = r.send;
1871
- return C.try(function() {
1872
- return o.actualWindow ? t === o.actualWindow : C.hash({
1867
+ return P.try(function() {
1868
+ return o.actualWindow ? t === o.actualWindow : P.hash({
1873
1869
  proxyInstanceID: o.getInstanceID(),
1874
1870
  knownWindowInstanceID: rt(t, {
1875
1871
  send: i
1876
1872
  })
1877
1873
  }).then(function(a) {
1878
- var c = a.proxyInstanceID === a.knownWindowInstanceID;
1879
- return c && o.setWindow(t, {
1874
+ var d = a.proxyInstanceID === a.knownWindowInstanceID;
1875
+ return d && o.setWindow(t, {
1880
1876
  send: i
1881
- }), c;
1877
+ }), d;
1882
1878
  });
1883
1879
  });
1884
1880
  }, n.unwrap = function() {
@@ -1893,12 +1889,12 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1893
1889
  return e.isProxyWindow(t) ? t.unwrap() : t;
1894
1890
  }, e.serialize = function(t, r) {
1895
1891
  var o = r.send;
1896
- return Oe(), e.toProxyWindow(t, {
1892
+ return Ae(), e.toProxyWindow(t, {
1897
1893
  send: o
1898
1894
  }).serialize();
1899
1895
  }, e.deserialize = function(t, r) {
1900
1896
  var o = r.send;
1901
- return Oe(), z("idToProxyWindow").get(t.id) || new e({
1897
+ return Ae(), z("idToProxyWindow").get(t.id) || new e({
1902
1898
  serializedWindow: t,
1903
1899
  send: o
1904
1900
  });
@@ -1906,7 +1902,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1906
1902
  return !!(t && !we(t) && t.isProxyWindow);
1907
1903
  }, e.toProxyWindow = function(t, r) {
1908
1904
  var o = r.send;
1909
- if (Oe(), e.isProxyWindow(t))
1905
+ if (Ae(), e.isProxyWindow(t))
1910
1906
  return t;
1911
1907
  var i = t;
1912
1908
  return F("winToProxyWindow").get(i) || new e({
@@ -1941,20 +1937,20 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1941
1937
  a = (i = {
1942
1938
  on: o.on,
1943
1939
  send: o.send
1944
- }).on, c = i.send, z("builtinListeners").getOrSet("functionCalls", function() {
1940
+ }).on, d = i.send, z("builtinListeners").getOrSet("functionCalls", function() {
1945
1941
  return a("postrobot_method", {
1946
1942
  domain: "*"
1947
1943
  }, function(v) {
1948
1944
  var m = v.source, p = v.origin, w = v.data, b = w.id, x = w.name, S = st(m, b);
1949
1945
  if (!S)
1950
1946
  throw new Error("Could not find method '" + x + "' with id: " + w.id + " in " + U(window));
1951
- var P = S.source, L = S.domain, R = S.val;
1952
- return C.try(function() {
1947
+ var C = S.source, L = S.domain, R = S.val;
1948
+ return P.try(function() {
1953
1949
  if (!re(L, p))
1954
1950
  throw new Error("Method '" + w.name + "' domain " + JSON.stringify(Te(S.domain) ? S.domain.source : S.domain) + " does not match origin " + p + " in " + U(window));
1955
- if (G.isProxyWindow(P))
1956
- return P.matchWindow(m, {
1957
- send: c
1951
+ if (G.isProxyWindow(C))
1952
+ return C.matchWindow(m, {
1953
+ send: d
1958
1954
  }).then(function(T) {
1959
1955
  if (!T)
1960
1956
  throw new Error("Method call '" + w.name + "' failed - proxy window does not match source in " + U(window));
@@ -1965,15 +1961,15 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1965
1961
  origin: p
1966
1962
  }, w.args);
1967
1963
  }, function(T) {
1968
- return C.try(function() {
1964
+ return P.try(function() {
1969
1965
  if (R.onError)
1970
1966
  return R.onError(T);
1971
1967
  }).then(function() {
1972
- throw T.stack && (T.stack = "Remote call to " + x + "(" + function(M) {
1973
- return M === void 0 && (M = []), (W = M, [].slice.call(W)).map(function(A) {
1974
- return typeof A == "string" ? "'" + A + "'" : A === void 0 ? "undefined" : A === null ? "null" : typeof A == "boolean" ? A.toString() : Array.isArray(A) ? "[ ... ]" : typeof A == "object" ? "{ ... }" : typeof A == "function" ? "() => { ... }" : "<" + typeof A + ">";
1968
+ throw T.stack && (T.stack = "Remote call to " + x + "(" + function(j) {
1969
+ return j === void 0 && (j = []), (I = j, [].slice.call(I)).map(function(O) {
1970
+ return typeof O == "string" ? "'" + O + "'" : O === void 0 ? "undefined" : O === null ? "null" : typeof O == "boolean" ? O.toString() : Array.isArray(O) ? "[ ... ]" : typeof O == "object" ? "{ ... }" : typeof O == "function" ? "() => { ... }" : "<" + typeof O + ">";
1975
1971
  }).join(", ");
1976
- var W;
1972
+ var I;
1977
1973
  }(w.args) + `) failed
1978
1974
 
1979
1975
  ` + T.stack), T;
@@ -1987,7 +1983,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1987
1983
  });
1988
1984
  });
1989
1985
  });
1990
- var i, a, c, u = t.__id__ || Y();
1986
+ var i, a, d, u = t.__id__ || Y();
1991
1987
  e = G.unwrap(e);
1992
1988
  var s = t.__name__ || t.name || r;
1993
1989
  return typeof s == "string" && typeof s.indexOf == "function" && s.indexOf("anonymous::") === 0 && (s = s.replace("anonymous::", r + "::")), G.isProxyWindow(e) ? (Ne(u, t, s, e, n), e.awaitWindow().then(function(v) {
@@ -1999,11 +1995,11 @@ var Nt = { exports: {} }, Dt = { exports: {} };
1999
1995
  }
2000
1996
  function ct(e, n, t, r) {
2001
1997
  var o, i = r.on, a = r.send;
2002
- return function(c, u) {
1998
+ return function(d, u) {
2003
1999
  u === void 0 && (u = Gt);
2004
- var s = JSON.stringify(c, function(v) {
2000
+ var s = JSON.stringify(d, function(v) {
2005
2001
  var m = this[v];
2006
- if (Ae(this))
2002
+ if (Oe(this))
2007
2003
  return m;
2008
2004
  var p = it(m);
2009
2005
  if (!p)
@@ -2012,7 +2008,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2012
2008
  return w ? w(m, v) : m;
2013
2009
  });
2014
2010
  return s === void 0 ? "undefined" : s;
2015
- }(t, ((o = {}).promise = function(c, u) {
2011
+ }(t, ((o = {}).promise = function(d, u) {
2016
2012
  return function(s, v, m, p, w) {
2017
2013
  return ne("cross_domain_zalgo_promise", {
2018
2014
  then: ut(s, v, function(b, x) {
@@ -2022,76 +2018,76 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2022
2018
  send: w.send
2023
2019
  })
2024
2020
  });
2025
- }(e, n, c, u, {
2021
+ }(e, n, d, u, {
2026
2022
  on: i,
2027
2023
  send: a
2028
2024
  });
2029
- }, o.function = function(c, u) {
2030
- return ut(e, n, c, u, {
2025
+ }, o.function = function(d, u) {
2026
+ return ut(e, n, d, u, {
2031
2027
  on: i,
2032
2028
  send: a
2033
2029
  });
2034
- }, o.object = function(c) {
2035
- return we(c) || G.isProxyWindow(c) ? ne("cross_domain_window", G.serialize(c, {
2030
+ }, o.object = function(d) {
2031
+ return we(d) || G.isProxyWindow(d) ? ne("cross_domain_window", G.serialize(d, {
2036
2032
  send: a
2037
- })) : c;
2033
+ })) : d;
2038
2034
  }, o));
2039
2035
  }
2040
2036
  function dt(e, n, t, r) {
2041
2037
  var o, i = r.send;
2042
- return function(a, c) {
2043
- if (c === void 0 && (c = $t), a !== "undefined")
2038
+ return function(a, d) {
2039
+ if (d === void 0 && (d = $t), a !== "undefined")
2044
2040
  return JSON.parse(a, function(u, s) {
2045
- if (Ae(this))
2041
+ if (Oe(this))
2046
2042
  return s;
2047
2043
  var v, m;
2048
- if (Ae(s) ? (v = s.__type__, m = s.__val__) : (v = it(s), m = s), !v)
2044
+ if (Oe(s) ? (v = s.__type__, m = s.__val__) : (v = it(s), m = s), !v)
2049
2045
  return m;
2050
- var p = c[v] || Bt[v];
2046
+ var p = d[v] || Bt[v];
2051
2047
  return p ? p(m, u) : m;
2052
2048
  });
2053
2049
  }(t, ((o = {}).cross_domain_zalgo_promise = function(a) {
2054
- return function(c, u, s) {
2055
- return new C(s.then);
2050
+ return function(d, u, s) {
2051
+ return new P(s.then);
2056
2052
  }(0, 0, a);
2057
2053
  }, o.cross_domain_function = function(a) {
2058
- return function(c, u, s, v) {
2054
+ return function(d, u, s, v) {
2059
2055
  var m = s.id, p = s.name, w = v.send, b = function(S) {
2060
2056
  S === void 0 && (S = {});
2061
- function P() {
2057
+ function C() {
2062
2058
  var L = arguments;
2063
- return G.toProxyWindow(c, {
2059
+ return G.toProxyWindow(d, {
2064
2060
  send: w
2065
2061
  }).awaitWindow().then(function(R) {
2066
2062
  var T = st(R, m);
2067
- if (T && T.val !== P)
2063
+ if (T && T.val !== C)
2068
2064
  return T.val.apply({
2069
2065
  source: window,
2070
2066
  origin: U()
2071
2067
  }, L);
2072
- var M = [].slice.call(L);
2068
+ var j = [].slice.call(L);
2073
2069
  return S.fireAndForget ? w(R, "postrobot_method", {
2074
2070
  id: m,
2075
2071
  name: p,
2076
- args: M
2072
+ args: j
2077
2073
  }, {
2078
2074
  domain: u,
2079
2075
  fireAndForget: !0
2080
2076
  }) : w(R, "postrobot_method", {
2081
2077
  id: m,
2082
2078
  name: p,
2083
- args: M
2079
+ args: j
2084
2080
  }, {
2085
2081
  domain: u,
2086
2082
  fireAndForget: !1
2087
- }).then(function(W) {
2088
- return W.data.result;
2083
+ }).then(function(I) {
2084
+ return I.data.result;
2089
2085
  });
2090
2086
  }).catch(function(R) {
2091
2087
  throw R;
2092
2088
  });
2093
2089
  }
2094
- return P.__name__ = p, P.__origin__ = u, P.__source__ = c, P.__id__ = m, P.origin = u, P;
2090
+ return C.__name__ = p, C.__origin__ = u, C.__source__ = d, C.__id__ = m, C.origin = u, C;
2095
2091
  }, x = b();
2096
2092
  return x.fireAndForget = b({
2097
2093
  fireAndForget: !0
@@ -2111,14 +2107,14 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2111
2107
  };
2112
2108
  function Le(e, n, t, r) {
2113
2109
  var o = r.on, i = r.send;
2114
- return C.try(function() {
2110
+ return P.try(function() {
2115
2111
  var a = F().getOrSet(e, function() {
2116
2112
  return {};
2117
2113
  });
2118
- return a.buffer = a.buffer || [], a.buffer.push(t), a.flush = a.flush || C.flush().then(function() {
2114
+ return a.buffer = a.buffer || [], a.buffer.push(t), a.flush = a.flush || P.flush().then(function() {
2119
2115
  if ($(e))
2120
2116
  throw new Error("Window is closed");
2121
- var c = ct(e, n, ((u = {}).__post_robot_10_0_46__ = a.buffer || [], u), {
2117
+ var d = ct(e, n, ((u = {}).__post_robot_10_0_46__ = a.buffer || [], u), {
2122
2118
  on: o,
2123
2119
  send: i
2124
2120
  }), u;
@@ -2126,7 +2122,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2126
2122
  for (var s = Object.keys(De), v = [], m = 0; m < s.length; m++) {
2127
2123
  var p = s[m];
2128
2124
  try {
2129
- De[p](e, c, n);
2125
+ De[p](e, d, n);
2130
2126
  } catch (w) {
2131
2127
  v.push(w);
2132
2128
  }
@@ -2158,9 +2154,9 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2158
2154
  if (t === "*" && (t = null), r === "*" && (r = null), !n)
2159
2155
  throw new Error("Name required to get request listener");
2160
2156
  for (var i = 0, a = [t, xe()]; i < a.length; i++) {
2161
- var c = a[i];
2162
- if (c) {
2163
- var u = o.get(c);
2157
+ var d = a[i];
2158
+ if (d) {
2159
+ var u = o.get(d);
2164
2160
  if (u) {
2165
2161
  var s = u[n];
2166
2162
  if (s) {
@@ -2186,9 +2182,9 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2186
2182
  name: t.name,
2187
2183
  win: e,
2188
2184
  domain: n
2189
- }), c = t.name === "postrobot_method" && t.data && typeof t.data.name == "string" ? t.data.name + "()" : t.name;
2185
+ }), d = t.name === "postrobot_method" && t.data && typeof t.data.name == "string" ? t.data.name + "()" : t.name;
2190
2186
  function u(s, v, m) {
2191
- return C.flush().then(function() {
2187
+ return P.flush().then(function() {
2192
2188
  if (!t.fireAndForget && !$(e))
2193
2189
  try {
2194
2190
  return Le(e, n, {
@@ -2205,13 +2201,13 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2205
2201
  send: i
2206
2202
  });
2207
2203
  } catch (p) {
2208
- throw new Error("Send response message failed for " + c + " in " + U() + `
2204
+ throw new Error("Send response message failed for " + d + " in " + U() + `
2209
2205
 
2210
2206
  ` + de(p));
2211
2207
  }
2212
2208
  });
2213
2209
  }
2214
- return C.all([C.flush().then(function() {
2210
+ return P.all([P.flush().then(function() {
2215
2211
  if (!t.fireAndForget && !$(e))
2216
2212
  try {
2217
2213
  return Le(e, n, {
@@ -2225,11 +2221,11 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2225
2221
  send: i
2226
2222
  });
2227
2223
  } catch (s) {
2228
- throw new Error("Send ack message failed for " + c + " in " + U() + `
2224
+ throw new Error("Send ack message failed for " + d + " in " + U() + `
2229
2225
 
2230
2226
  ` + de(s));
2231
2227
  }
2232
- }), C.try(function() {
2228
+ }), P.try(function() {
2233
2229
  if (!a)
2234
2230
  throw new Error("No handler found for post message: " + t.name + " from " + n + " in " + window.location.protocol + "//" + window.location.host + window.location.pathname);
2235
2231
  return a.handler({
@@ -2288,7 +2284,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2288
2284
  } catch (v) {
2289
2285
  return;
2290
2286
  }
2291
- var i = e.source, a = e.origin, c = function(v, m, p, w) {
2287
+ var i = e.source, a = e.origin, d = function(v, m, p, w) {
2292
2288
  var b = w.on, x = w.send, S;
2293
2289
  try {
2294
2290
  S = dt(m, p, v, {
@@ -2299,18 +2295,18 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2299
2295
  return;
2300
2296
  }
2301
2297
  if (S && typeof S == "object" && S !== null) {
2302
- var P = S.__post_robot_10_0_46__;
2303
- if (Array.isArray(P))
2304
- return P;
2298
+ var C = S.__post_robot_10_0_46__;
2299
+ if (Array.isArray(C))
2300
+ return C;
2305
2301
  }
2306
2302
  }(e.data, i, a, {
2307
2303
  on: t,
2308
2304
  send: r
2309
2305
  });
2310
- if (c) {
2306
+ if (d) {
2311
2307
  ot(i);
2312
- for (var u = 0; u < c.length; u++) {
2313
- var s = c[u];
2308
+ for (var u = 0; u < d.length; u++) {
2309
+ var s = d[u];
2314
2310
  if (o.has(s.id) || (o.set(s.id, !0), $(i) && !s.fireAndForget))
2315
2311
  return;
2316
2312
  s.origin.indexOf("file:") === 0 && (a = "file://");
@@ -2333,13 +2329,13 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2333
2329
  if (typeof (n = n || {}) == "function" && (t = n, n = {}), !t)
2334
2330
  throw new Error("Expected handler");
2335
2331
  var r = function o(i, a) {
2336
- var c = i.name, u = i.win, s = i.domain, v = F("requestListeners");
2337
- if (!c || typeof c != "string")
2332
+ var d = i.name, u = i.win, s = i.domain, v = F("requestListeners");
2333
+ if (!d || typeof d != "string")
2338
2334
  throw new Error("Name required to add request listener");
2339
2335
  if (u && u !== "*" && G.isProxyWindow(u)) {
2340
2336
  var m = u.awaitWindow().then(function(N) {
2341
2337
  return o({
2342
- name: c,
2338
+ name: d,
2343
2339
  win: N,
2344
2340
  domain: s
2345
2341
  }, a);
@@ -2356,7 +2352,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2356
2352
  if (Array.isArray(p)) {
2357
2353
  for (var w = [], b = 0, x = p; b < x.length; b++)
2358
2354
  w.push(o({
2359
- name: c,
2355
+ name: d,
2360
2356
  domain: s,
2361
2357
  win: x[b]
2362
2358
  }, a));
@@ -2368,11 +2364,11 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2368
2364
  };
2369
2365
  }
2370
2366
  if (Array.isArray(s)) {
2371
- for (var S = [], P = 0, L = s; P < L.length; P++)
2367
+ for (var S = [], C = 0, L = s; C < L.length; C++)
2372
2368
  S.push(o({
2373
- name: c,
2369
+ name: d,
2374
2370
  win: p,
2375
- domain: L[P]
2371
+ domain: L[C]
2376
2372
  }, a));
2377
2373
  return {
2378
2374
  cancel: function() {
@@ -2382,27 +2378,27 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2382
2378
  };
2383
2379
  }
2384
2380
  var R = mt({
2385
- name: c,
2381
+ name: d,
2386
2382
  win: p,
2387
2383
  domain: s
2388
2384
  });
2389
2385
  p && p !== "*" || (p = xe());
2390
2386
  var T = (s = s || "*").toString();
2391
2387
  if (R)
2392
- throw p && s ? new Error("Request listener already exists for " + c + " on domain " + s.toString() + " for " + (p === xe() ? "wildcard" : "specified") + " window") : p ? new Error("Request listener already exists for " + c + " for " + (p === xe() ? "wildcard" : "specified") + " window") : s ? new Error("Request listener already exists for " + c + " on domain " + s.toString()) : new Error("Request listener already exists for " + c);
2393
- var M = v.getOrSet(p, function() {
2388
+ throw p && s ? new Error("Request listener already exists for " + d + " on domain " + s.toString() + " for " + (p === xe() ? "wildcard" : "specified") + " window") : p ? new Error("Request listener already exists for " + d + " for " + (p === xe() ? "wildcard" : "specified") + " window") : s ? new Error("Request listener already exists for " + d + " on domain " + s.toString()) : new Error("Request listener already exists for " + d);
2389
+ var j = v.getOrSet(p, function() {
2394
2390
  return {};
2395
- }), W = fe(M, c, function() {
2391
+ }), I = fe(j, d, function() {
2396
2392
  return {};
2397
- }), A, V;
2398
- return Te(s) ? (A = fe(W, "__domain_regex__", function() {
2393
+ }), O, V;
2394
+ return Te(s) ? (O = fe(I, "__domain_regex__", function() {
2399
2395
  return [];
2400
2396
  })).push(V = {
2401
2397
  regex: s,
2402
2398
  listener: a
2403
- }) : W[T] = a, {
2399
+ }) : I[T] = a, {
2404
2400
  cancel: function() {
2405
- delete W[T], V && (A.splice(A.indexOf(V, 1)), A.length || delete W.__domain_regex__), Object.keys(W).length || delete M[c], p && !Object.keys(M).length && v.del(p);
2401
+ delete I[T], V && (O.splice(O.indexOf(V, 1)), O.length || delete I.__domain_regex__), Object.keys(I).length || delete j[d], p && !Object.keys(j).length && v.del(p);
2406
2402
  }
2407
2403
  };
2408
2404
  }({
@@ -2423,7 +2419,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2423
2419
  }
2424
2420
  function Zt(e, n, t) {
2425
2421
  typeof (n = n || {}) == "function" && (t = n, n = {});
2426
- var r = new C(), o;
2422
+ var r = new P(), o;
2427
2423
  return n.errorHandler = function(i) {
2428
2424
  o.cancel(), r.reject(i);
2429
2425
  }, o = X(e, n, function(i) {
@@ -2432,11 +2428,11 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2432
2428
  }), r.cancel = o.cancel, r;
2433
2429
  }
2434
2430
  var K = function e(n, t, r, o) {
2435
- var i = (o = o || {}).domain || "*", a = o.timeout || -1, c = o.timeout || 5e3, u = o.fireAndForget || !1;
2431
+ var i = (o = o || {}).domain || "*", a = o.timeout || -1, d = o.timeout || 5e3, u = o.fireAndForget || !1;
2436
2432
  return G.toProxyWindow(n, {
2437
2433
  send: e
2438
2434
  }).awaitWindow().then(function(s) {
2439
- return C.try(function() {
2435
+ return P.try(function() {
2440
2436
  if (function(v, m, p) {
2441
2437
  if (!v)
2442
2438
  throw new Error("Expected name");
@@ -2467,16 +2463,16 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2467
2463
  return window.top;
2468
2464
  } catch (R) {
2469
2465
  }
2470
- for (var S = 0, P = function R(T) {
2471
- for (var M = [], W = 0, A = He(T); W < A.length; W++) {
2472
- var V = A[W];
2473
- M.push(V);
2466
+ for (var S = 0, C = function R(T) {
2467
+ for (var j = [], I = 0, O = He(T); I < O.length; I++) {
2468
+ var V = O[I];
2469
+ j.push(V);
2474
2470
  for (var N = 0, he = R(V); N < he.length; N++)
2475
- M.push(he[N]);
2471
+ j.push(he[N]);
2476
2472
  }
2477
- return M;
2478
- }(x); S < P.length; S++) {
2479
- var L = P[S];
2473
+ return j;
2474
+ }(x); S < C.length; S++) {
2475
+ var L = C[S];
2480
2476
  try {
2481
2477
  if (L.top)
2482
2478
  return L.top;
@@ -2496,16 +2492,16 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2496
2492
  m === void 0 && (m = 5e3), p === void 0 && (p = "Window");
2497
2493
  var w = function(b) {
2498
2494
  return F("helloPromises").getOrSet(b, function() {
2499
- return new C();
2495
+ return new P();
2500
2496
  });
2501
2497
  }(v);
2502
2498
  return m !== -1 && (w = w.timeout(m, new Error(p + " did not load after " + m + "ms"))), w;
2503
- }(s, c);
2499
+ }(s, d);
2504
2500
  }).then(function(v) {
2505
2501
  return function(m, p, w, b) {
2506
2502
  var x = b.send;
2507
- return C.try(function() {
2508
- return typeof p == "string" ? p : C.try(function() {
2503
+ return P.try(function() {
2504
+ return typeof p == "string" ? p : P.try(function() {
2509
2505
  return w || Re(m, {
2510
2506
  send: x
2511
2507
  }).then(function(S) {
@@ -2521,7 +2517,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2521
2517
  send: e
2522
2518
  });
2523
2519
  }).then(function(v) {
2524
- var m = v, p = t === "postrobot_method" && r && typeof r.name == "string" ? r.name + "()" : t, w = new C(), b = t + "_" + Y();
2520
+ var m = v, p = t === "postrobot_method" && r && typeof r.name == "string" ? r.name + "()" : t, w = new P(), b = t + "_" + Y();
2525
2521
  if (!u) {
2526
2522
  var x = {
2527
2523
  name: t,
@@ -2529,20 +2525,20 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2529
2525
  domain: m,
2530
2526
  promise: w
2531
2527
  };
2532
- (function(W, A) {
2533
- z("responseListeners").set(W, A);
2528
+ (function(I, O) {
2529
+ z("responseListeners").set(I, O);
2534
2530
  })(b, x);
2535
2531
  var S = F("requestPromises").getOrSet(s, function() {
2536
2532
  return [];
2537
2533
  });
2538
2534
  S.push(w), w.catch(function() {
2539
- (function(W) {
2540
- z("erroredResponseListeners").set(W, !0);
2535
+ (function(I) {
2536
+ z("erroredResponseListeners").set(I, !0);
2541
2537
  })(b), lt(b);
2542
2538
  });
2543
- var P = function(W) {
2544
- return F("knownWindows").get(W, !1);
2545
- }(s) ? 1e4 : 2e3, L = a, R = P, T = L, M = function(W, A) {
2539
+ var C = function(I) {
2540
+ return F("knownWindows").get(I, !1);
2541
+ }(s) ? 1e4 : 2e3, L = a, R = C, T = L, j = function(I, O) {
2546
2542
  var V;
2547
2543
  return function N() {
2548
2544
  V = setTimeout(function() {
@@ -2551,7 +2547,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2551
2547
  return w.reject(new Error("Window closed for " + t + " before " + (x.ack ? "response" : "ack")));
2552
2548
  if (x.cancelled)
2553
2549
  return w.reject(new Error("Response listener was cancelled for " + t));
2554
- R = Math.max(R - 500, 0), T !== -1 && (T = Math.max(T - 500, 0)), x.ack || R !== 0 ? T === 0 && w.reject(new Error("No response for postMessage " + p + " in " + U() + " in " + L + "ms")) : w.reject(new Error("No ack for postMessage " + p + " in " + U() + " in " + P + "ms"));
2550
+ R = Math.max(R - 500, 0), T !== -1 && (T = Math.max(T - 500, 0)), x.ack || R !== 0 ? T === 0 && w.reject(new Error("No response for postMessage " + p + " in " + U() + " in " + L + "ms")) : w.reject(new Error("No ack for postMessage " + p + " in " + U() + " in " + C + "ms"));
2555
2551
  })(), N();
2556
2552
  }, 500);
2557
2553
  }(), {
@@ -2561,7 +2557,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2561
2557
  };
2562
2558
  }();
2563
2559
  w.finally(function() {
2564
- M.cancel(), S.splice(S.indexOf(w, 1));
2560
+ j.cancel(), S.splice(S.indexOf(w, 1));
2565
2561
  }).catch(te);
2566
2562
  }
2567
2563
  return Le(s, m, {
@@ -2577,10 +2573,10 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2577
2573
  send: e
2578
2574
  }).then(function() {
2579
2575
  return u ? w.resolve() : w;
2580
- }, function(W) {
2576
+ }, function(I) {
2581
2577
  throw new Error("Send request message failed for " + p + " in " + U() + `
2582
2578
 
2583
- ` + de(W));
2579
+ ` + de(I));
2584
2580
  });
2585
2581
  });
2586
2582
  });
@@ -2620,16 +2616,16 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2620
2616
  }, function(o) {
2621
2617
  var i = o.on, a = o.send;
2622
2618
  z().getOrSet("postMessageListener", function() {
2623
- return function(c, u, s) {
2624
- return c.addEventListener("message", s), {
2619
+ return function(d, u, s) {
2620
+ return d.addEventListener("message", s), {
2625
2621
  cancel: function() {
2626
- c.removeEventListener("message", s);
2622
+ d.removeEventListener("message", s);
2627
2623
  }
2628
2624
  };
2629
- }(window, 0, function(c) {
2625
+ }(window, 0, function(d) {
2630
2626
  (function(u, s) {
2631
2627
  var v = s.on, m = s.send;
2632
- C.try(function() {
2628
+ P.try(function() {
2633
2629
  var p = u.source || u.sourceElement, w = u.origin || u.originalEvent && u.originalEvent.origin, b = u.data;
2634
2630
  if (w === "null" && (w = "file://"), p) {
2635
2631
  if (!w)
@@ -2644,7 +2640,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2644
2640
  });
2645
2641
  }
2646
2642
  });
2647
- })(c, {
2643
+ })(d, {
2648
2644
  on: i,
2649
2645
  send: a
2650
2646
  });
@@ -2656,7 +2652,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2656
2652
  }), function(o) {
2657
2653
  var i = o.on, a = o.send;
2658
2654
  z("builtinListeners").getOrSet("helloListener", function() {
2659
- var c = i("postrobot_hello", {
2655
+ var d = i("postrobot_hello", {
2660
2656
  domain: "*"
2661
2657
  }, function(s) {
2662
2658
  return nt(s.source, {
@@ -2668,7 +2664,7 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2668
2664
  return u && Re(u, {
2669
2665
  send: a
2670
2666
  }).catch(function(s) {
2671
- }), c;
2667
+ }), d;
2672
2668
  });
2673
2669
  }({
2674
2670
  on: X,
@@ -2696,8 +2692,8 @@ var Nt = { exports: {} }, Dt = { exports: {} };
2696
2692
  });
2697
2693
  })(Dt);
2698
2694
  var Zn = Dt.exports;
2699
- (function(d) {
2700
- d.exports = Zn, d.exports.default = d.exports;
2695
+ (function(c) {
2696
+ c.exports = Zn, c.exports.default = c.exports;
2701
2697
  })(Nt);
2702
2698
  var Lt = Nt.exports;
2703
2699
  const Xn = /* @__PURE__ */ Jn(Lt), Ue = /* @__PURE__ */ ln({
@@ -2705,7 +2701,7 @@ const Xn = /* @__PURE__ */ Jn(Lt), Ue = /* @__PURE__ */ ln({
2705
2701
  default: Xn
2706
2702
  }, [Lt]);
2707
2703
  export {
2708
- At as ConsentBox,
2704
+ Ot as ConsentBox,
2709
2705
  Qn as PrivacyCenterBox,
2710
2706
  er as SoyioTypes,
2711
2707
  tr as SoyioWidget,