@soyio/soyio-widget 2.10.1 → 2.11.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,50 +1,58 @@
1
- var en = Object.defineProperty;
2
- var tn = Object.getPrototypeOf;
3
- var nn = Reflect.get;
4
- var rn = (f, d, m) => d in f ? en(f, d, { enumerable: !0, configurable: !0, writable: !0, value: m }) : f[d] = m;
5
- var O = (f, d, m) => (rn(f, typeof d != "symbol" ? d + "" : d, m), m), on = (f, d, m) => {
6
- if (!d.has(f))
7
- throw TypeError("Cannot " + m);
1
+ var rn = Object.defineProperty;
2
+ var vt = Object.getOwnPropertySymbols, on = Object.getPrototypeOf, an = Object.prototype.hasOwnProperty, sn = Object.prototype.propertyIsEnumerable, cn = Reflect.get;
3
+ var un = (d, f, h) => f in d ? rn(d, f, { enumerable: !0, configurable: !0, writable: !0, value: h }) : d[f] = h;
4
+ var wt = (d, f) => {
5
+ var h = {};
6
+ for (var l in d)
7
+ an.call(d, l) && f.indexOf(l) < 0 && (h[l] = d[l]);
8
+ if (d != null && vt)
9
+ for (var l of vt(d))
10
+ f.indexOf(l) < 0 && sn.call(d, l) && (h[l] = d[l]);
11
+ return h;
8
12
  };
9
- var gt = (f, d, m) => {
10
- if (d.has(f))
13
+ var O = (d, f, h) => (un(d, typeof f != "symbol" ? f + "" : f, h), h), dn = (d, f, h) => {
14
+ if (!f.has(d))
15
+ throw TypeError("Cannot " + h);
16
+ };
17
+ var gt = (d, f, h) => {
18
+ if (f.has(d))
11
19
  throw TypeError("Cannot add the same private member more than once");
12
- d instanceof WeakSet ? d.add(f) : d.set(f, m);
20
+ f instanceof WeakSet ? f.add(d) : f.set(d, h);
13
21
  };
14
- var yt = (f, d, m) => (on(f, d, "access private method"), m), Et = (f, d, m) => nn(tn(f), m, d);
15
- var $ = (f, d, m) => new Promise((p, g) => {
16
- var y = (N) => {
22
+ var yt = (d, f, h) => (dn(d, f, "access private method"), h), Et = (d, f, h) => cn(on(d), h, f);
23
+ var G = (d, f, h) => new Promise((l, g) => {
24
+ var y = (D) => {
17
25
  try {
18
- I(m.next(N));
26
+ I(h.next(D));
19
27
  } catch (j) {
20
28
  g(j);
21
29
  }
22
- }, E = (N) => {
30
+ }, E = (D) => {
23
31
  try {
24
- I(m.throw(N));
32
+ I(h.throw(D));
25
33
  } catch (j) {
26
34
  g(j);
27
35
  }
28
- }, I = (N) => N.done ? p(N.value) : Promise.resolve(N.value).then(y, E);
29
- I((m = m.apply(f, d)).next());
36
+ }, I = (D) => D.done ? l(D.value) : Promise.resolve(D.value).then(y, E);
37
+ I((h = h.apply(d, f)).next());
30
38
  });
31
- function an(f, d) {
32
- for (var m = 0; m < d.length; m++) {
33
- const p = d[m];
34
- if (typeof p != "string" && !Array.isArray(p)) {
35
- for (const g in p)
36
- if (g !== "default" && !(g in f)) {
37
- const y = Object.getOwnPropertyDescriptor(p, g);
38
- y && Object.defineProperty(f, g, y.get ? y : {
39
+ function fn(d, f) {
40
+ for (var h = 0; h < f.length; h++) {
41
+ const l = f[h];
42
+ if (typeof l != "string" && !Array.isArray(l)) {
43
+ for (const g in l)
44
+ if (g !== "default" && !(g in d)) {
45
+ const y = Object.getOwnPropertyDescriptor(l, g);
46
+ y && Object.defineProperty(d, g, y.get ? y : {
39
47
  enumerable: !0,
40
- get: () => p[g]
48
+ get: () => l[g]
41
49
  });
42
50
  }
43
51
  }
44
52
  }
45
- return Object.freeze(Object.defineProperty(f, Symbol.toStringTag, { value: "Module" }));
53
+ return Object.freeze(Object.defineProperty(d, Symbol.toStringTag, { value: "Module" }));
46
54
  }
47
- class sn {
55
+ class ln {
48
56
  constructor() {
49
57
  O(this, "tooltipElement", null);
50
58
  O(this, "tooltipContent", null);
@@ -53,8 +61,8 @@ class sn {
53
61
  this.createTooltipElement(), this.setupGlobalListeners();
54
62
  }
55
63
  createTooltipElement() {
56
- const d = document.querySelector(`.${this.tooltipClass}`);
57
- d == null || d.remove(), this.tooltipElement = document.createElement("div"), this.tooltipElement.className = this.tooltipClass, this.tooltipElement.style.cssText = `
64
+ const f = document.querySelector(`.${this.tooltipClass}`);
65
+ f == null || f.remove(), this.tooltipElement = document.createElement("div"), this.tooltipElement.className = this.tooltipClass, this.tooltipElement.style.cssText = `
58
66
  position: fixed;
59
67
  z-index: 99999;
60
68
  background: white;
@@ -71,8 +79,8 @@ class sn {
71
79
  transform: translateX(-50%) translateY(-100%);
72
80
  margin-top: -8px;
73
81
  `, this.tooltipContent = document.createElement("div"), this.tooltipContent.style.cssText = "text-align: center;", this.tooltipElement.appendChild(this.tooltipContent);
74
- const m = document.createElement("div");
75
- m.style.cssText = `
82
+ const h = document.createElement("div");
83
+ h.style.cssText = `
76
84
  position: absolute;
77
85
  bottom: -4px;
78
86
  left: 50%;
@@ -81,102 +89,107 @@ class sn {
81
89
  height: 8px;
82
90
  background: white;
83
91
  box-shadow: 2px 2px 2px rgba(0,0,0,0.1);
84
- `, this.tooltipElement.appendChild(m), document.body.appendChild(this.tooltipElement);
92
+ `, this.tooltipElement.appendChild(h), document.body.appendChild(this.tooltipElement);
85
93
  }
86
94
  setupGlobalListeners() {
87
95
  window.addEventListener("scroll", () => this.hide(), !0), window.addEventListener("resize", () => this.hide()), window.addEventListener("orientationchange", () => this.hide());
88
96
  }
89
- show(d, m, p) {
90
- !this.tooltipElement || !this.tooltipContent || (this.hideTimeout && (clearTimeout(this.hideTimeout), this.hideTimeout = null), this.tooltipContent.textContent = d, this.tooltipElement.style.left = `${m}px`, this.tooltipElement.style.top = `${p}px`, this.tooltipElement.style.opacity = "1");
97
+ show(f, h, l) {
98
+ !this.tooltipElement || !this.tooltipContent || (this.hideTimeout && (clearTimeout(this.hideTimeout), this.hideTimeout = null), this.tooltipContent.textContent = f, this.tooltipElement.style.left = `${h}px`, this.tooltipElement.style.top = `${l}px`, this.tooltipElement.style.opacity = "1");
91
99
  }
92
100
  hide() {
93
101
  this.tooltipElement && (this.tooltipElement.style.opacity = "0");
94
102
  }
95
103
  destroy() {
96
- var d;
97
- (d = this.tooltipElement) == null || d.remove(), this.tooltipElement = null, this.tooltipContent = null, this.hideTimeout && (clearTimeout(this.hideTimeout), this.hideTimeout = null);
104
+ var f;
105
+ (f = this.tooltipElement) == null || f.remove(), this.tooltipElement = null, this.tooltipContent = null, this.hideTimeout && (clearTimeout(this.hideTimeout), this.hideTimeout = null);
98
106
  }
99
107
  }
100
- const je = "https://app.soyio.id", ke = "https://sandbox.soyio.id", un = [
108
+ const Ct = "https://app.soyio.id", Pt = "https://sandbox.soyio.id", hn = "https://privacy.soyio.id", mn = "https://privacy-sandbox.soyio.id", pn = [
101
109
  "DISCLOSURE_REQUEST_SUCCESSFUL",
102
110
  "IDENTITY_REGISTERED",
103
111
  "IDENTITY_SIGNATURE",
104
112
  "UNEXPECTED_ERROR",
105
113
  "DENIED_CAMERA_PERMISSION",
106
114
  "REJECTED_SIGNATURE"
107
- ], cn = "WIDGET_CLOSED", dn = 420, fn = 720, ln = 500, hn = {
115
+ ], vn = "WIDGET_CLOSED", wn = 420, gn = 720, yn = 500, En = {
108
116
  minWidth: "375px",
109
117
  maxWidth: "50rem"
110
- }, mn = {
118
+ }, xn = {
111
119
  minWidth: "375px",
112
120
  maxWidth: "36rem"
113
- }, pn = {
121
+ }, Sn = {
114
122
  minWidth: "375px",
115
123
  maxWidth: "50rem"
116
124
  };
117
- function vn(f, d, m) {
118
- return $(this, null, function* () {
119
- if (!f.contentWindow)
125
+ function bn(d, f, h) {
126
+ return G(this, null, function* () {
127
+ if (!d.contentWindow)
120
128
  throw new Error("Invalid iframe: contentWindow is null");
121
- const p = yield Promise.resolve().then(() => Fe);
129
+ const l = yield Promise.resolve().then(() => ke);
122
130
  try {
123
- yield p.send(f.contentWindow, "SET_APPEARANCE", { appearance: d, identifier: m });
131
+ yield l.send(d.contentWindow, "SET_APPEARANCE", { appearance: f, identifier: h });
124
132
  } catch (g) {
125
133
  console.error("Failed to send appearance config:", g);
126
134
  }
127
135
  });
128
136
  }
129
- const wn = "IFRAME_READY", gn = "IFRAME_HEIGHT_CHANGE", yn = "TOOLTIP_STATE_CHANGE", En = "CONSENT_STATE_CHANGE", J = {
137
+ const In = "IFRAME_READY", Wn = "IFRAME_HEIGHT_CHANGE", Cn = "TOOLTIP_STATE_CHANGE", Pn = "INFO_EVENT", Tn = "CONSENT_STATE_CHANGE", k = {
130
138
  // BASE
131
139
  onHeightChange: {},
132
140
  onIframeReady: {},
133
141
  onTooltipChange: {},
142
+ onInfo: {},
134
143
  // CONSENT
135
144
  onStateChange: {}
136
145
  };
137
- let xt, St, bt, Wt;
138
- function xn() {
139
- return $(this, null, function* () {
140
- const f = yield Promise.resolve().then(() => Fe);
141
- xt || St || bt || Wt || (xt = f.on(gn, (d) => $(this, null, function* () {
142
- const m = d.data, p = J.onHeightChange[m.identifier];
143
- p && p(m.height);
144
- })), St = f.on(wn, (d) => $(this, null, function* () {
145
- const m = d.data, p = J.onIframeReady[m.identifier];
146
- p && p();
147
- })), bt = f.on(yn, (d) => $(this, null, function* () {
148
- const m = d.data, p = J.onTooltipChange[m.identifier];
149
- p && p(m);
150
- })), Wt = f.on(En, (d) => $(this, null, function* () {
151
- const m = d.data, p = J.onStateChange[m.identifier];
152
- p && p(m);
146
+ let xt, St, bt, It, Wt;
147
+ function Rn() {
148
+ return G(this, null, function* () {
149
+ const d = yield Promise.resolve().then(() => ke);
150
+ xt || St || bt || It || Wt || (xt = d.on(Wn, (f) => G(this, null, function* () {
151
+ const h = f.data, l = k.onHeightChange[h.identifier];
152
+ l && l(h.height);
153
+ })), St = d.on(In, (f) => G(this, null, function* () {
154
+ const h = f.data, l = k.onIframeReady[h.identifier];
155
+ l && l();
156
+ })), bt = d.on(Cn, (f) => G(this, null, function* () {
157
+ const h = f.data, l = k.onTooltipChange[h.identifier];
158
+ l && l(h);
159
+ })), It = d.on(Tn, (f) => G(this, null, function* () {
160
+ const h = f.data, l = k.onStateChange[h.identifier];
161
+ l && l(h);
162
+ })), Wt = d.on(Pn, (h) => G(this, [h], function* ({ data: f }) {
163
+ const E = f, { identifier: l } = E, g = wt(E, ["identifier"]), y = k.onInfo[l];
164
+ y && y(g);
153
165
  })));
154
166
  });
155
167
  }
156
- function It(f, d) {
168
+ function Tt(d, f) {
157
169
  const {
158
- onHeightChange: m,
159
- onIframeReady: p,
170
+ onHeightChange: h,
171
+ onIframeReady: l,
160
172
  onTooltipChange: g,
161
- onStateChange: y
162
- } = d;
163
- m && (J.onHeightChange[f] = m), p && (J.onIframeReady[f] = p), g && (J.onTooltipChange[f] = g), y && (J.onStateChange[f] = y);
173
+ onStateChange: y,
174
+ onInfo: E
175
+ } = f;
176
+ 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);
164
177
  }
165
- function Sn(f) {
166
- delete J.onHeightChange[f], delete J.onIframeReady[f], delete J.onTooltipChange[f], delete J.onStateChange[f];
178
+ function An(d) {
179
+ delete k.onHeightChange[d], delete k.onIframeReady[d], delete k.onTooltipChange[d], delete k.onStateChange[d], delete k.onInfo[d];
167
180
  }
168
- function bn(f) {
169
- const d = document.getElementById(f);
170
- d && (console.warn("ConsentBox iframe already exists. Removing existing before mounting new one."), d.remove());
181
+ function On(d) {
182
+ const f = document.getElementById(d);
183
+ f && (console.warn("ConsentBox iframe already exists. Removing existing before mounting new one."), f.remove());
171
184
  }
172
- function Wn(f) {
173
- const d = document.querySelector(f);
174
- if (!d)
175
- throw new Error(`Iframe div container with id '${f}' not found`);
176
- if (d.tagName.toLowerCase() !== "div")
177
- throw new Error(`Iframe container with id '${f}' must be a <div> element`);
178
- const m = d;
179
- return m.style.position = "relative", m.style.cssText += `
185
+ function Nn(d) {
186
+ const f = document.querySelector(d);
187
+ if (!f)
188
+ throw new Error(`Iframe div container with id '${d}' not found`);
189
+ if (f.tagName.toLowerCase() !== "div")
190
+ throw new Error(`Iframe container with id '${d}' must be a <div> element`);
191
+ const h = f;
192
+ return h.style.position = "relative", h.style.cssText += `
180
193
  padding: 0 !important;
181
194
  margin: 0 !important;
182
195
  display: flex !important;
@@ -185,38 +198,38 @@ function Wn(f) {
185
198
  border: none !important;
186
199
  transition: height 0.35s !important;
187
200
  opacity: 1 !important;
188
- `, m;
201
+ `, h;
189
202
  }
190
- function In(f, d, m) {
191
- const p = document.createElement("iframe");
192
- return p.id = d, p.src = f, p.style.cssText += `
203
+ function Dn(d, f, h) {
204
+ const l = document.createElement("iframe");
205
+ return l.id = f, l.src = d, l.style.cssText += `
193
206
  width: 100% !important;
194
- min-width: ${m.minWidth} !important;
195
- max-width: ${m.maxWidth} !important;
207
+ min-width: ${h.minWidth} !important;
208
+ max-width: ${h.maxWidth} !important;
196
209
  border: none !important;
197
210
  overflow: hidden !important;
198
211
  opacity: 1;
199
212
  transition: height 0.35s,
200
213
  opacity 0.4s 0.1s;
201
- `, p;
214
+ `, l;
202
215
  }
203
- function Cn() {
216
+ function Ln() {
204
217
  return Math.random().toString(36).substring(2, 10);
205
218
  }
206
219
  class be {
207
- constructor(d) {
220
+ constructor(f) {
208
221
  O(this, "iframe", null);
209
222
  O(this, "skeleton", null);
210
223
  O(this, "options");
211
224
  O(this, "appearance");
212
225
  O(this, "tooltipManager");
213
- O(this, "defaultIframeCSSConfig", hn);
226
+ O(this, "defaultIframeCSSConfig", En);
214
227
  O(this, "Skeleton", null);
215
228
  O(this, "defaultUniqueId");
216
- this.options = d, this.appearance = d.appearance || null, this.tooltipManager = new sn(), this.defaultUniqueId = be.generateUniqueId();
229
+ this.options = f, this.appearance = f.appearance || null, this.tooltipManager = new ln(), this.defaultUniqueId = be.generateUniqueId();
217
230
  }
218
231
  static generateUniqueId() {
219
- return Cn();
232
+ return Ln();
220
233
  }
221
234
  get uniqueIdentifier() {
222
235
  return this.defaultUniqueId;
@@ -224,48 +237,49 @@ class be {
224
237
  get iframeIdentifier() {
225
238
  return `${this.defaultIframePrefix}-${this.uniqueIdentifier}`;
226
239
  }
227
- handleHeightChange(d) {
228
- if (!this.iframe || (this.iframe.style.height = `${d}px`, d > 0))
240
+ handleHeightChange(f) {
241
+ if (!this.iframe || (this.iframe.style.height = `${f}px`, f > 0))
229
242
  return;
230
- const { parentElement: m } = this.iframe;
231
- m && (m.style.display = "none");
243
+ const { parentElement: h } = this.iframe;
244
+ h && (h.style.display = "none");
232
245
  }
233
246
  handleIframeReady() {
234
- this.iframe && (this.options.onReady && this.options.onReady(), vn(this.iframe, this.appearance, this.uniqueIdentifier), this.skeleton && this.skeleton.hide());
247
+ this.iframe && (this.options.onReady && this.options.onReady(), bn(this.iframe, this.appearance, this.uniqueIdentifier), this.skeleton && this.skeleton.hide());
235
248
  }
236
- handleTooltipChange(d) {
249
+ handleTooltipChange(f) {
237
250
  if (!this.iframe)
238
251
  return;
239
- const m = this.iframe.getBoundingClientRect(), { text: p, coordinates: g, isVisible: y } = d, E = g.x + m.left, I = g.y + m.top;
240
- y ? this.tooltipManager.show(p, E, I) : this.tooltipManager.hide();
252
+ const h = this.iframe.getBoundingClientRect(), { text: l, coordinates: g, isVisible: y } = f, E = g.x + h.left, I = g.y + h.top;
253
+ y ? this.tooltipManager.show(l, E, I) : this.tooltipManager.hide();
241
254
  }
242
255
  setupListeners() {
243
- return $(this, null, function* () {
244
- yield xn();
245
- const d = {
256
+ return G(this, null, function* () {
257
+ yield Rn();
258
+ const f = {
246
259
  onHeightChange: this.handleHeightChange.bind(this),
247
260
  onIframeReady: this.handleIframeReady.bind(this),
248
- onTooltipChange: this.handleTooltipChange.bind(this)
261
+ onTooltipChange: this.handleTooltipChange.bind(this),
262
+ onInfo: this.options.onEvent.bind(this)
249
263
  };
250
- It(this.uniqueIdentifier, d);
264
+ Tt(this.uniqueIdentifier, f);
251
265
  });
252
266
  }
253
- mount(d) {
254
- return $(this, null, function* () {
255
- yield this.setupListeners(), bn(this.iframeIdentifier);
256
- const m = Wn(d), p = this.iframeUrl();
257
- return this.iframe = In(p, this.iframeIdentifier, this.defaultIframeCSSConfig), this.Skeleton && (this.skeleton = new this.Skeleton(this.uniqueIdentifier), this.skeleton.mount(m)), m.appendChild(this.iframe), this;
267
+ mount(f) {
268
+ return G(this, null, function* () {
269
+ yield this.setupListeners(), On(this.iframeIdentifier);
270
+ const h = Nn(f), l = this.iframeUrl();
271
+ return this.iframe = Dn(l, this.iframeIdentifier, this.defaultIframeCSSConfig), this.Skeleton && (this.skeleton = new this.Skeleton(this.uniqueIdentifier), this.skeleton.mount(h)), h.appendChild(this.iframe), this;
258
272
  });
259
273
  }
260
274
  unmount() {
261
- Sn(this.uniqueIdentifier), this.skeleton && (this.skeleton.hide(), this.skeleton = null), this.iframe && (this.iframe.remove(), this.iframe = null);
275
+ An(this.uniqueIdentifier), this.skeleton && (this.skeleton.hide(), this.skeleton = null), this.iframe && (this.iframe.remove(), this.iframe = null);
262
276
  }
263
277
  }
264
- class Pn {
265
- constructor(d) {
278
+ class zn {
279
+ constructor(f) {
266
280
  O(this, "element");
267
281
  O(this, "identifier");
268
- this.identifier = `skeleton-${d}`, this.element = document.createElement("div"), this.element.id = this.identifier, this.element.style.cssText = `
282
+ this.identifier = `skeleton-${f}`, this.element = document.createElement("div"), this.element.id = this.identifier, this.element.style.cssText = `
269
283
  position: absolute;
270
284
  left: 50%;
271
285
  top: 50%;
@@ -283,8 +297,8 @@ class Pn {
283
297
  flex-direction: column;
284
298
  gap: 1rem;
285
299
  `;
286
- const m = document.createElement("div");
287
- m.style.cssText = `
300
+ const h = document.createElement("div");
301
+ h.style.cssText = `
288
302
  padding: 1rem;
289
303
  height: 100%;
290
304
  max-width: 100%;
@@ -292,8 +306,8 @@ class Pn {
292
306
  flex-direction: column;
293
307
  justify-content: space-between;
294
308
  `;
295
- const p = document.createElement("div");
296
- p.style.cssText = `
309
+ const l = document.createElement("div");
310
+ l.style.cssText = `
297
311
  display: flex;
298
312
  align-items: center;
299
313
  gap: 0.75rem;
@@ -334,8 +348,8 @@ class Pn {
334
348
  align-items: center;
335
349
  gap: 1rem;
336
350
  `;
337
- const N = document.createElement("div");
338
- N.style.cssText = `
351
+ const D = document.createElement("div");
352
+ D.style.cssText = `
339
353
  width: 1rem;
340
354
  height: 1rem;
341
355
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
@@ -352,8 +366,8 @@ class Pn {
352
366
  flex-direction: column;
353
367
  gap: 0.5rem;
354
368
  `;
355
- const q = document.createElement("div");
356
- q.style.cssText = `
369
+ const B = document.createElement("div");
370
+ B.style.cssText = `
357
371
  height: 0.875rem;
358
372
  width: 80%;
359
373
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
@@ -370,70 +384,70 @@ class Pn {
370
384
  animation: shimmer 1.5s infinite;
371
385
  border-radius: 0.125rem;
372
386
  `, !document.getElementById("skeleton-animation")) {
373
- const Z = document.createElement("style");
374
- Z.id = "skeleton-animation", Z.textContent = `
387
+ const X = document.createElement("style");
388
+ X.id = "skeleton-animation", X.textContent = `
375
389
  @keyframes shimmer {
376
390
  0% { background-position: 200% 0; }
377
391
  100% { background-position: -200% 0; }
378
392
  }
379
- `, document.head.appendChild(Z);
393
+ `, document.head.appendChild(X);
380
394
  }
381
- p.appendChild(g), p.appendChild(y), p.appendChild(E), j.appendChild(q), j.appendChild(oe), I.appendChild(N), I.appendChild(j), m.appendChild(p), m.appendChild(I), this.element.appendChild(m);
395
+ 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);
382
396
  }
383
397
  cleanupExistingSkeleton() {
384
- const d = document.getElementById(this.identifier);
385
- d && d.remove();
398
+ const f = document.getElementById(this.identifier);
399
+ f && f.remove();
386
400
  }
387
- mount(d) {
388
- this.cleanupExistingSkeleton(), d.appendChild(this.element);
401
+ mount(f) {
402
+ this.cleanupExistingSkeleton(), f.appendChild(this.element);
389
403
  }
390
404
  hide() {
391
405
  this.element.style.opacity = "0", setTimeout(() => this.element.remove(), 300);
392
406
  }
393
407
  }
394
- function Tn(f) {
408
+ function Mn(d) {
395
409
  var E;
396
- const d = [
410
+ const f = [
397
411
  "actionToken",
398
412
  "entityId",
399
413
  "context",
400
414
  "optionalReconsentBehavior",
401
415
  "mandatoryReconsentBehavior"
402
- ], m = (E = f.isSandbox) != null ? E : !1, p = f.developmentUrl || (m ? ke : je), g = new URLSearchParams();
403
- d.forEach((I) => {
404
- f[I] && g.set(I, f[I]);
416
+ ], h = (E = d.isSandbox) != null ? E : !1, l = d.developmentUrl || (h ? Pt : Ct), g = new URLSearchParams();
417
+ f.forEach((I) => {
418
+ d[I] && g.set(I, d[I]);
405
419
  });
406
420
  const y = g.toString();
407
- return `${p}/embed/consents/${f.consentTemplateId}${y ? `?${y}` : ""}`;
421
+ return `${l}/embed/consents/${d.consentTemplateId}${y ? `?${y}` : ""}`;
408
422
  }
409
- class Ct extends be {
410
- constructor(m) {
411
- super(m);
423
+ class Rt extends be {
424
+ constructor(h) {
425
+ super(h);
412
426
  O(this, "defaultIframePrefix", "consent-box");
413
- O(this, "defaultIframeCSSConfig", mn);
427
+ O(this, "defaultIframeCSSConfig", xn);
414
428
  O(this, "state", {
415
429
  isSelected: !1,
416
430
  actionToken: null
417
431
  });
418
- this.Skeleton = Pn;
432
+ this.Skeleton = zn;
419
433
  }
420
434
  get uniqueIdentifier() {
421
435
  return this.options.consentTemplateId;
422
436
  }
423
437
  iframeUrl() {
424
- return Tn(this.options);
438
+ return Mn(this.options);
425
439
  }
426
- handleStateChange(m) {
427
- const { isSelected: p, actionToken: g } = m;
428
- this.state = { isSelected: p, actionToken: g }, this.options.onEvent({
440
+ handleStateChange(h) {
441
+ const { isSelected: l, actionToken: g } = h;
442
+ this.state = { isSelected: l, actionToken: g }, this.options.onEvent({
429
443
  eventName: "CONSENT_CHECKBOX_CHANGE",
430
- isSelected: p,
444
+ isSelected: l,
431
445
  actionToken: g
432
446
  });
433
447
  }
434
448
  setupListeners() {
435
- return $(this, null, function* () {
436
- yield Et(Ct.prototype, this, "setupListeners").call(this), It(this.uniqueIdentifier, {
449
+ return G(this, null, function* () {
450
+ yield Et(Rt.prototype, this, "setupListeners").call(this), Tt(this.uniqueIdentifier, {
437
451
  onStateChange: this.handleStateChange.bind(this)
438
452
  });
439
453
  });
@@ -442,115 +456,123 @@ class Ct extends be {
442
456
  return this.state;
443
457
  }
444
458
  }
445
- function Rn(f) {
446
- var p;
447
- return f.developmentUrl ? f.developmentUrl : `${((p = f.isSandbox) != null ? p : !1) ? ke : je}/embed/privacy-center`;
459
+ function jn(d) {
460
+ var E;
461
+ const f = [
462
+ "subjectId",
463
+ "companyId"
464
+ ], h = (E = d.isSandbox) != null ? E : !1, l = d.developmentUrl || (h ? mn : hn), g = new URLSearchParams();
465
+ f.forEach((I) => {
466
+ d[I] && g.set(I, d[I]);
467
+ });
468
+ const y = g.toString();
469
+ return `${l}/${y ? `?${y}` : ""}`;
448
470
  }
449
- class Bn extends be {
471
+ class Qn extends be {
450
472
  constructor() {
451
473
  super(...arguments);
452
474
  O(this, "defaultIframePrefix", "privacy-center");
453
475
  O(this, "_uniqueIdentifier", "privacy-center");
454
- O(this, "defaultIframeCSSConfig", pn);
476
+ O(this, "defaultIframeCSSConfig", Sn);
455
477
  }
456
478
  get uniqueIdentifier() {
457
479
  return this._uniqueIdentifier;
458
480
  }
459
481
  iframeUrl() {
460
- return Rn(this.options);
482
+ return jn(this.options);
461
483
  }
462
484
  }
463
- const $n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
485
+ const er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
464
486
  __proto__: null
465
487
  }, Symbol.toStringTag, { value: "Module" }));
466
- function An(f) {
467
- let d = "widget/";
468
- return "disclosureRequestId" in f.configProps ? d += ["disclosures", f.configProps.disclosureRequestId].join("/") : d += f.request, d;
488
+ function kn(d) {
489
+ let f = "widget/";
490
+ return "disclosureRequestId" in d.configProps ? f += ["disclosures", d.configProps.disclosureRequestId].join("/") : f += d.request, f;
469
491
  }
470
- function On(f) {
492
+ function Un(d) {
471
493
  var y;
472
- const d = (y = f.isSandbox) != null ? y : !1, m = f.developmentUrl || (d ? ke : je), p = Object.entries(f.configProps).filter(([E, I]) => I || E === "disclosureRequestId").map(([E, I]) => `${E}=${encodeURIComponent(I)}`).join("&"), g = An(f);
473
- return `${m}/${g}?sdk=web&${p}`;
494
+ const f = (y = d.isSandbox) != null ? y : !1, h = d.developmentUrl || (f ? Pt : Ct), l = Object.entries(d.configProps).filter(([E, I]) => I || E === "disclosureRequestId").map(([E, I]) => `${E}=${encodeURIComponent(I)}`).join("&"), g = kn(d);
495
+ return `${h}/${g}?sdk=web&${l}`;
474
496
  }
475
- const Dn = !!(typeof window != "undefined" && window.document && window.document.createElement);
476
- let V = null, Le = null;
477
- function Me(f = null) {
478
- V && !V.closed && V.focus(), f == null || f.preventDefault();
497
+ const Fn = !!(typeof window != "undefined" && window.document && window.document.createElement);
498
+ let J = null, ze = null;
499
+ function Me(d = null) {
500
+ J && !J.closed && J.focus(), d == null || d.preventDefault();
479
501
  }
480
- function Ue() {
502
+ function je() {
481
503
  document.body.style.filter = "", document.body.removeEventListener("click", Me);
482
504
  }
483
- function Nn() {
484
- Le = setInterval(() => {
485
- (!V || V.closed) && (Le && clearInterval(Le), Ue());
486
- }, ln);
505
+ function Hn() {
506
+ ze = setInterval(() => {
507
+ (!J || J.closed) && (ze && clearInterval(ze), je());
508
+ }, yn);
487
509
  }
488
- function zn(f) {
489
- const d = On(f), m = dn, p = fn, 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, N = E / window.screen.availWidth, j = (E - m) / 2 / N + g, q = (I - p) / 2 / N + y;
490
- document.body.style.filter = "blur(5px)", document.body.addEventListener("click", Me), V = window.open(
491
- d,
510
+ function _n(d) {
511
+ const f = Un(d), h = wn, l = gn, 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;
512
+ document.body.style.filter = "blur(5px)", document.body.addEventListener("click", Me), J = window.open(
513
+ f,
492
514
  "Soyio",
493
515
  `scrollbars=yes,
494
- width=${m},
495
- height=${p},
496
- top=${q},
516
+ width=${h},
517
+ height=${l},
518
+ top=${B},
497
519
  left=${j}`
498
- ), Me(), Nn();
520
+ ), Me(), Hn();
499
521
  }
500
- function Ln() {
501
- V && (V.close(), V = null), Ue();
522
+ function qn() {
523
+ J && (J.close(), J = null), je();
502
524
  }
503
- const Mn = "WIDGET_EVENT";
525
+ const Gn = "WIDGET_EVENT";
504
526
  let me = null;
505
- function jn() {
527
+ function Bn() {
506
528
  me && (me.cancel(), me = null);
507
529
  }
508
- function kn(f) {
509
- return $(this, null, function* () {
510
- const { onEvent: d } = f, m = yield Promise.resolve().then(() => Fe);
511
- me && jn(), me = m.on(Mn, (p) => $(this, null, function* () {
512
- d(p.data), un.includes(p.data.eventName) ? Ln() : p.data.eventName === cn && Ue();
530
+ function $n(d) {
531
+ return G(this, null, function* () {
532
+ const { onEvent: f } = d, h = yield Promise.resolve().then(() => ke);
533
+ me && Bn(), me = h.on(Gn, (l) => G(this, null, function* () {
534
+ f(l.data), pn.includes(l.data.eventName) ? qn() : l.data.eventName === vn && je();
513
535
  }));
514
536
  });
515
537
  }
516
- function Un(f) {
517
- kn(f);
538
+ function Vn(d) {
539
+ $n(d);
518
540
  }
519
- var Se, Pt;
520
- class Jn {
521
- constructor(d) {
541
+ var Se, At;
542
+ class tr {
543
+ constructor(f) {
522
544
  gt(this, Se);
523
545
  O(this, "onEvent");
524
- this.onEvent = d.onEvent, Dn && (zn(d), Un({
525
- onEvent: yt(this, Se, Pt).bind(this)
546
+ this.onEvent = f.onEvent, Fn && (_n(f), Vn({
547
+ onEvent: yt(this, Se, At).bind(this)
526
548
  }));
527
549
  }
528
550
  }
529
- Se = new WeakSet(), Pt = function(d) {
530
- this.onEvent(d);
551
+ Se = new WeakSet(), At = function(f) {
552
+ this.onEvent(f);
531
553
  };
532
- var Fn = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
533
- function Hn(f) {
534
- return f && f.__esModule && Object.prototype.hasOwnProperty.call(f, "default") ? f.default : f;
554
+ var Yn = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
555
+ function Jn(d) {
556
+ return d && d.__esModule && Object.prototype.hasOwnProperty.call(d, "default") ? d.default : d;
535
557
  }
536
- var Tt = { exports: {} }, Rt = { exports: {} };
537
- (function(f, d) {
538
- (function(m, p) {
539
- f.exports = p();
540
- })(typeof self != "undefined" ? self : Fn, function() {
541
- return function(m) {
542
- var p = {};
558
+ var Ot = { exports: {} }, Nt = { exports: {} };
559
+ (function(d, f) {
560
+ (function(h, l) {
561
+ d.exports = l();
562
+ })(typeof self != "undefined" ? self : Yn, function() {
563
+ return function(h) {
564
+ var l = {};
543
565
  function g(y) {
544
- if (p[y])
545
- return p[y].exports;
546
- var E = p[y] = {
566
+ if (l[y])
567
+ return l[y].exports;
568
+ var E = l[y] = {
547
569
  i: y,
548
570
  l: !1,
549
571
  exports: {}
550
572
  };
551
- return m[y].call(E.exports, E, E.exports, g), E.l = !0, E.exports;
573
+ return h[y].call(E.exports, E, E.exports, g), E.l = !0, E.exports;
552
574
  }
553
- return g.m = m, g.c = p, g.d = function(y, E, I) {
575
+ return g.m = h, g.c = l, g.d = function(y, E, I) {
554
576
  g.o(y, E) || Object.defineProperty(y, E, {
555
577
  enumerable: !0,
556
578
  get: I
@@ -569,10 +591,10 @@ var Tt = { exports: {} }, Rt = { exports: {} };
569
591
  enumerable: !0,
570
592
  value: y
571
593
  }), 2 & E && typeof y != "string")
572
- for (var N in y)
573
- g.d(I, N, function(j) {
594
+ for (var D in y)
595
+ g.d(I, D, function(j) {
574
596
  return y[j];
575
- }.bind(null, N));
597
+ }.bind(null, D));
576
598
  return I;
577
599
  }, g.n = function(y) {
578
600
  var E = y && y.__esModule ? function() {
@@ -584,36 +606,36 @@ var Tt = { exports: {} }, Rt = { exports: {} };
584
606
  }, g.o = function(y, E) {
585
607
  return {}.hasOwnProperty.call(y, E);
586
608
  }, g.p = "", g(g.s = 0);
587
- }([function(m, p, g) {
588
- g.r(p), g.d(p, "Promise", function() {
609
+ }([function(h, l, g) {
610
+ g.r(l), g.d(l, "Promise", function() {
589
611
  return C;
590
- }), g.d(p, "TYPES", function() {
591
- return Kt;
592
- }), g.d(p, "ProxyWindow", function() {
593
- return _;
594
- }), g.d(p, "setup", function() {
595
- return wt;
596
- }), g.d(p, "destroy", function() {
612
+ }), g.d(l, "TYPES", function() {
613
+ return tn;
614
+ }), g.d(l, "ProxyWindow", function() {
615
+ return q;
616
+ }), g.d(l, "setup", function() {
617
+ return pt;
618
+ }), g.d(l, "destroy", function() {
619
+ return en;
620
+ }), g.d(l, "serializeMessage", function() {
597
621
  return Xt;
598
- }), g.d(p, "serializeMessage", function() {
599
- return Jt;
600
- }), g.d(p, "deserializeMessage", function() {
601
- return Yt;
602
- }), g.d(p, "createProxyWindow", function() {
603
- return Vt;
604
- }), g.d(p, "toProxyWindow", function() {
622
+ }), g.d(l, "deserializeMessage", function() {
605
623
  return Zt;
606
- }), g.d(p, "on", function() {
607
- return X;
608
- }), g.d(p, "once", function() {
609
- return $t;
610
- }), g.d(p, "send", function() {
611
- return K;
612
- }), g.d(p, "markWindowKnown", function() {
613
- return it;
614
- }), g.d(p, "cleanUpWindow", function() {
624
+ }), g.d(l, "createProxyWindow", function() {
625
+ return Kt;
626
+ }), g.d(l, "toProxyWindow", function() {
615
627
  return Qt;
616
- }), g.d(p, "bridge", function() {
628
+ }), g.d(l, "on", function() {
629
+ return Z;
630
+ }), g.d(l, "once", function() {
631
+ return Jt;
632
+ }), g.d(l, "send", function() {
633
+ return K;
634
+ }), g.d(l, "markWindowKnown", function() {
635
+ return rt;
636
+ }), g.d(l, "cleanUpWindow", function() {
637
+ return nn;
638
+ }), g.d(l, "bridge", function() {
617
639
  });
618
640
  function y(e) {
619
641
  return {}.toString.call(e) === "[object RegExp]";
@@ -623,7 +645,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
623
645
  function I(e) {
624
646
  return e === void 0 && (e = window), e.location.protocol;
625
647
  }
626
- function N(e) {
648
+ function D(e) {
627
649
  if (e === void 0 && (e = window), e.mockDomain) {
628
650
  var n = e.mockDomain.split("//")[0];
629
651
  if (n)
@@ -632,9 +654,9 @@ var Tt = { exports: {} }, Rt = { exports: {} };
632
654
  return I(e);
633
655
  }
634
656
  function j(e) {
635
- return e === void 0 && (e = window), N(e) === "about:";
657
+ return e === void 0 && (e = window), D(e) === "about:";
636
658
  }
637
- function q(e) {
659
+ function B(e) {
638
660
  if (e === void 0 && (e = window), e)
639
661
  try {
640
662
  if (e.parent && e.parent !== e)
@@ -643,13 +665,13 @@ var Tt = { exports: {} }, Rt = { exports: {} };
643
665
  }
644
666
  }
645
667
  function oe(e) {
646
- if (e === void 0 && (e = window), e && !q(e))
668
+ if (e === void 0 && (e = window), e && !B(e))
647
669
  try {
648
670
  return e.opener;
649
671
  } catch (n) {
650
672
  }
651
673
  }
652
- function Z(e) {
674
+ function X(e) {
653
675
  try {
654
676
  return !0;
655
677
  } catch (n) {
@@ -667,15 +689,15 @@ var Tt = { exports: {} }, Rt = { exports: {} };
667
689
  if (t === "file:")
668
690
  return "file://";
669
691
  if (t === "about:") {
670
- var r = q(e);
671
- return r && Z() ? pe(r) : "about://";
692
+ var r = B(e);
693
+ return r && X() ? pe(r) : "about://";
672
694
  }
673
695
  var o = n.host;
674
696
  if (!o)
675
697
  throw new Error("Can not read window host");
676
698
  return t + "//" + o;
677
699
  }
678
- function k(e) {
700
+ function U(e) {
679
701
  e === void 0 && (e = window);
680
702
  var n = pe(e);
681
703
  return n && e.mockDomain && e.mockDomain.indexOf("mock:") === 0 ? e.mockDomain : n;
@@ -694,14 +716,14 @@ var Tt = { exports: {} }, Rt = { exports: {} };
694
716
  } catch (r) {
695
717
  }
696
718
  try {
697
- if (j(n) && Z())
719
+ if (j(n) && X())
698
720
  return !0;
699
721
  } catch (r) {
700
722
  }
701
723
  try {
702
724
  if (function(r) {
703
- return r === void 0 && (r = window), N(r) === "mock:";
704
- }(n) && Z())
725
+ return r === void 0 && (r = window), D(r) === "mock:";
726
+ }(n) && X())
705
727
  return !0;
706
728
  } catch (r) {
707
729
  }
@@ -714,7 +736,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
714
736
  }(e))
715
737
  return !1;
716
738
  try {
717
- if (e === window || j(e) && Z() || k(window) === k(e))
739
+ if (e === window || j(e) && X() || U(window) === U(e))
718
740
  return !0;
719
741
  } catch (n) {
720
742
  }
@@ -725,10 +747,10 @@ var Tt = { exports: {} }, Rt = { exports: {} };
725
747
  throw new Error("Expected window to be same domain");
726
748
  return e;
727
749
  }
728
- function He(e, n) {
750
+ function Ue(e, n) {
729
751
  if (!e || !n)
730
752
  return !1;
731
- var t = q(n);
753
+ var t = B(n);
732
754
  return t ? t === e : function(r) {
733
755
  var o = [];
734
756
  try {
@@ -739,17 +761,17 @@ var Tt = { exports: {} }, Rt = { exports: {} };
739
761
  return o;
740
762
  }(n).indexOf(e) !== -1;
741
763
  }
742
- function _e(e) {
764
+ function Fe(e) {
743
765
  var n = [], t;
744
766
  try {
745
767
  t = e.frames;
746
- } catch (u) {
768
+ } catch (c) {
747
769
  t = e;
748
770
  }
749
771
  var r;
750
772
  try {
751
773
  r = t.length;
752
- } catch (u) {
774
+ } catch (c) {
753
775
  }
754
776
  if (r === 0)
755
777
  return n;
@@ -758,7 +780,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
758
780
  var i = void 0;
759
781
  try {
760
782
  i = t[o];
761
- } catch (u) {
783
+ } catch (c) {
762
784
  continue;
763
785
  }
764
786
  n.push(i);
@@ -766,20 +788,20 @@ var Tt = { exports: {} }, Rt = { exports: {} };
766
788
  return n;
767
789
  }
768
790
  for (var a = 0; a < 100; a++) {
769
- var c = void 0;
791
+ var u = void 0;
770
792
  try {
771
- c = t[a];
772
- } catch (u) {
793
+ u = t[a];
794
+ } catch (c) {
773
795
  return n;
774
796
  }
775
- if (!c)
797
+ if (!u)
776
798
  return n;
777
- n.push(c);
799
+ n.push(u);
778
800
  }
779
801
  return n;
780
802
  }
781
- var Ot = [], Dt = [];
782
- function G(e, n) {
803
+ var Lt = [], zt = [];
804
+ function $(e, n) {
783
805
  n === void 0 && (n = !0);
784
806
  try {
785
807
  if (e === window)
@@ -815,12 +837,12 @@ var Tt = { exports: {} }, Rt = { exports: {} };
815
837
  try {
816
838
  if (o[a] === i)
817
839
  return a;
818
- } catch (c) {
840
+ } catch (u) {
819
841
  }
820
842
  return -1;
821
- }(Ot, e);
843
+ }(Lt, e);
822
844
  if (t !== -1) {
823
- var r = Dt[t];
845
+ var r = zt[t];
824
846
  if (r && function(o) {
825
847
  if (!o.contentWindow || !o.parentNode)
826
848
  return !0;
@@ -837,8 +859,8 @@ var Tt = { exports: {} }, Rt = { exports: {} };
837
859
  }
838
860
  return !1;
839
861
  }
840
- function qe(e) {
841
- return e === void 0 && (e = window), oe(e = e || window) || q(e) || void 0;
862
+ function He(e) {
863
+ return e === void 0 && (e = window), oe(e = e || window) || B(e) || void 0;
842
864
  }
843
865
  function re(e, n) {
844
866
  if (typeof e == "string") {
@@ -907,7 +929,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
907
929
  }
908
930
  return !1;
909
931
  }
910
- function Ge(e) {
932
+ function _e(e) {
911
933
  if (Q(e))
912
934
  return ve(e).frameElement;
913
935
  for (var n = 0, t = document.querySelectorAll("iframe"); n < t.length; n++) {
@@ -916,11 +938,11 @@ var Tt = { exports: {} }, Rt = { exports: {} };
916
938
  return r;
917
939
  }
918
940
  }
919
- function Nt(e) {
941
+ function Mt(e) {
920
942
  if (function(t) {
921
- return t === void 0 && (t = window), !!q(t);
943
+ return t === void 0 && (t = window), !!B(t);
922
944
  }(e)) {
923
- var n = Ge(e);
945
+ var n = _e(e);
924
946
  if (n && n.parentElement) {
925
947
  n.parentElement.removeChild(n);
926
948
  return;
@@ -952,36 +974,36 @@ var Tt = { exports: {} }, Rt = { exports: {} };
952
974
  }
953
975
  return !1;
954
976
  }
955
- var Be = [], ie = [], We = 0, ae;
956
- function $e() {
957
- if (!We && ae) {
977
+ var qe = [], ie = [], Ie = 0, ae;
978
+ function Ge() {
979
+ if (!Ie && ae) {
958
980
  var e = ae;
959
981
  ae = null, e.resolve();
960
982
  }
961
983
  }
962
- function Ie() {
963
- We += 1;
984
+ function We() {
985
+ Ie += 1;
964
986
  }
965
987
  function se() {
966
- We -= 1, $e();
988
+ Ie -= 1, Ge();
967
989
  }
968
990
  var C = function() {
969
991
  function e(t) {
970
992
  var r = this;
971
993
  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) {
972
- var o, i, a = !1, c = !1, u = !1;
973
- Ie();
994
+ var o, i, a = !1, u = !1, c = !1;
995
+ We();
974
996
  try {
975
997
  t(function(s) {
976
- u ? r.resolve(s) : (a = !0, o = s);
998
+ c ? r.resolve(s) : (a = !0, o = s);
977
999
  }, function(s) {
978
- u ? r.reject(s) : (c = !0, i = s);
1000
+ c ? r.reject(s) : (u = !0, i = s);
979
1001
  });
980
1002
  } catch (s) {
981
1003
  se(), this.reject(s);
982
1004
  return;
983
1005
  }
984
- se(), u = !0, a ? this.resolve(o) : c && this.reject(i);
1006
+ se(), c = !0, a ? this.resolve(o) : u && this.reject(i);
985
1007
  }
986
1008
  }
987
1009
  var n = e.prototype;
@@ -1003,12 +1025,12 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1003
1025
  }
1004
1026
  return this.rejected = !0, this.error = t, this.errorHandled || setTimeout(function() {
1005
1027
  r.errorHandled || function(i, a) {
1006
- if (Be.indexOf(i) === -1) {
1007
- Be.push(i), setTimeout(function() {
1028
+ if (qe.indexOf(i) === -1) {
1029
+ qe.push(i), setTimeout(function() {
1008
1030
  throw i;
1009
1031
  }, 1);
1010
- for (var c = 0; c < ie.length; c++)
1011
- ie[c](i, a);
1032
+ for (var u = 0; u < ie.length; u++)
1033
+ ie[u](i, a);
1012
1034
  }
1013
1035
  }(t, r);
1014
1036
  }, 1), this.dispatch(), this;
@@ -1017,7 +1039,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1017
1039
  }, n.dispatch = function() {
1018
1040
  var t = this.resolved, r = this.rejected, o = this.handlers;
1019
1041
  if (!this.dispatching && (t || r)) {
1020
- this.dispatching = !0, Ie();
1042
+ this.dispatching = !0, We();
1021
1043
  for (var i = function(w, b) {
1022
1044
  return w.then(function(x) {
1023
1045
  b.resolve(x);
@@ -1025,10 +1047,10 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1025
1047
  b.reject(x);
1026
1048
  });
1027
1049
  }, a = 0; a < o.length; a++) {
1028
- var c = o[a], u = c.onSuccess, s = c.onError, v = c.promise, l = void 0;
1050
+ var u = o[a], c = u.onSuccess, s = u.onError, v = u.promise, m = void 0;
1029
1051
  if (t)
1030
1052
  try {
1031
- l = u ? u(this.value) : this.value;
1053
+ m = c ? c(this.value) : this.value;
1032
1054
  } catch (w) {
1033
1055
  v.reject(w);
1034
1056
  continue;
@@ -1039,17 +1061,17 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1039
1061
  continue;
1040
1062
  }
1041
1063
  try {
1042
- l = s(this.error);
1064
+ m = s(this.error);
1043
1065
  } catch (w) {
1044
1066
  v.reject(w);
1045
1067
  continue;
1046
1068
  }
1047
1069
  }
1048
- if (l instanceof e && (l.resolved || l.rejected)) {
1049
- var h = l;
1050
- h.resolved ? v.resolve(h.value) : v.reject(h.error), h.errorHandled = !0;
1070
+ if (m instanceof e && (m.resolved || m.rejected)) {
1071
+ var p = m;
1072
+ p.resolved ? v.resolve(p.value) : v.reject(p.error), p.errorHandled = !0;
1051
1073
  } else
1052
- ee(l) ? l instanceof e && (l.resolved || l.rejected) ? l.resolved ? v.resolve(l.value) : v.reject(l.error) : i(l, v) : v.resolve(l);
1074
+ ee(m) ? m instanceof e && (m.resolved || m.rejected) ? m.resolved ? v.resolve(m.value) : v.reject(m.error) : i(m, v) : v.resolve(m);
1053
1075
  }
1054
1076
  o.length = 0, this.dispatching = !1, se();
1055
1077
  }
@@ -1106,33 +1128,33 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1106
1128
  var r = new e(), o = t.length, i = [].slice();
1107
1129
  if (!o)
1108
1130
  return r.resolve(i), r;
1109
- for (var a = function(s, v, l) {
1110
- return v.then(function(h) {
1111
- i[s] = h, (o -= 1) == 0 && r.resolve(i);
1112
- }, function(h) {
1113
- l.reject(h);
1131
+ for (var a = function(s, v, m) {
1132
+ return v.then(function(p) {
1133
+ i[s] = p, (o -= 1) == 0 && r.resolve(i);
1134
+ }, function(p) {
1135
+ m.reject(p);
1114
1136
  });
1115
- }, c = 0; c < t.length; c++) {
1116
- var u = t[c];
1117
- if (u instanceof e) {
1118
- if (u.resolved) {
1119
- i[c] = u.value, o -= 1;
1137
+ }, u = 0; u < t.length; u++) {
1138
+ var c = t[u];
1139
+ if (c instanceof e) {
1140
+ if (c.resolved) {
1141
+ i[u] = c.value, o -= 1;
1120
1142
  continue;
1121
1143
  }
1122
- } else if (!ee(u)) {
1123
- i[c] = u, o -= 1;
1144
+ } else if (!ee(c)) {
1145
+ i[u] = c, o -= 1;
1124
1146
  continue;
1125
1147
  }
1126
- a(c, e.resolve(u), r);
1148
+ a(u, e.resolve(c), r);
1127
1149
  }
1128
1150
  return o === 0 && r.resolve(i), r;
1129
1151
  }, e.hash = function(t) {
1130
- var r = {}, o = [], i = function(c) {
1131
- if (t.hasOwnProperty(c)) {
1132
- var u = t[c];
1133
- ee(u) ? o.push(u.then(function(s) {
1134
- r[c] = s;
1135
- })) : r[c] = u;
1152
+ var r = {}, o = [], i = function(u) {
1153
+ if (t.hasOwnProperty(u)) {
1154
+ var c = t[u];
1155
+ ee(c) ? o.push(c.then(function(s) {
1156
+ r[u] = s;
1157
+ })) : r[u] = c;
1136
1158
  }
1137
1159
  };
1138
1160
  for (var a in t)
@@ -1154,7 +1176,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1154
1176
  if (t && typeof t != "function" && !t.call)
1155
1177
  throw new Error("Promise.try expected a function");
1156
1178
  var i;
1157
- Ie();
1179
+ We();
1158
1180
  try {
1159
1181
  i = t.apply(r, o || []);
1160
1182
  } catch (a) {
@@ -1170,7 +1192,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1170
1192
  }, e.flush = function() {
1171
1193
  return function(t) {
1172
1194
  var r = ae = ae || new t();
1173
- return $e(), r;
1195
+ return Ge(), r;
1174
1196
  }(e);
1175
1197
  }, e;
1176
1198
  }();
@@ -1205,7 +1227,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1205
1227
  return n._cleanupClosedWindows = function() {
1206
1228
  for (var t = this.weakmap, r = this.keys, o = 0; o < r.length; o++) {
1207
1229
  var i = r[o];
1208
- if (we(i) && G(i)) {
1230
+ if (we(i) && $(i)) {
1209
1231
  if (t)
1210
1232
  try {
1211
1233
  t.delete(i);
@@ -1237,8 +1259,8 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1237
1259
  } catch (v) {
1238
1260
  }
1239
1261
  this._cleanupClosedWindows();
1240
- var c = this.keys, u = this.values, s = ge(c, t);
1241
- s === -1 ? (c.push(t), u.push(r)) : u[s] = r;
1262
+ var u = this.keys, c = this.values, s = ge(u, t);
1263
+ s === -1 ? (u.push(t), c.push(r)) : c[s] = r;
1242
1264
  }, n.get = function(t) {
1243
1265
  if (!t)
1244
1266
  throw new Error("WeakMap expected key");
@@ -1267,14 +1289,14 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1267
1289
  if (r)
1268
1290
  try {
1269
1291
  r.delete(t);
1270
- } catch (c) {
1292
+ } catch (u) {
1271
1293
  delete this.weakmap;
1272
1294
  }
1273
1295
  if (this.isSafeToReadWrite(t))
1274
1296
  try {
1275
1297
  var o = t[this.name];
1276
1298
  o && o[0] === t && (o[0] = o[1] = void 0);
1277
- } catch (c) {
1299
+ } catch (u) {
1278
1300
  }
1279
1301
  this._cleanupClosedWindows();
1280
1302
  var i = this.keys, a = ge(i, t);
@@ -1304,10 +1326,10 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1304
1326
  return this.set(t, o), o;
1305
1327
  }, e;
1306
1328
  }();
1307
- function Je(e) {
1329
+ function Be(e) {
1308
1330
  return e.name || e.__name__ || e.displayName || "anonymous";
1309
1331
  }
1310
- function Ye(e, n) {
1332
+ function $e(e, n) {
1311
1333
  try {
1312
1334
  delete e.name, e.name = n;
1313
1335
  } catch (t) {
@@ -1343,57 +1365,57 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1343
1365
  throw new Error("Arguments not serializable -- can not be used to memoize");
1344
1366
  }
1345
1367
  }
1346
- function zt() {
1368
+ function jt() {
1347
1369
  return {};
1348
1370
  }
1349
- var ue = 0, Ze = 0;
1350
- function ce(e, n) {
1371
+ var ce = 0, Ye = 0;
1372
+ function ue(e, n) {
1351
1373
  n === void 0 && (n = {});
1352
- var t = n.thisNamespace, r = t !== void 0 && t, o = n.time, i, a, c = ue;
1353
- ue += 1;
1354
- var u = function() {
1355
- for (var s = arguments.length, v = new Array(s), l = 0; l < s; l++)
1356
- v[l] = arguments[l];
1357
- c < Ze && (i = null, a = null, c = ue, ue += 1);
1358
- var h;
1359
- h = r ? (a = a || new Ce()).getOrSet(this, zt) : i = i || {};
1374
+ var t = n.thisNamespace, r = t !== void 0 && t, o = n.time, i, a, u = ce;
1375
+ ce += 1;
1376
+ var c = function() {
1377
+ for (var s = arguments.length, v = new Array(s), m = 0; m < s; m++)
1378
+ v[m] = arguments[m];
1379
+ u < Ye && (i = null, a = null, u = ce, ce += 1);
1380
+ var p;
1381
+ p = r ? (a = a || new Ce()).getOrSet(this, jt) : i = i || {};
1360
1382
  var w;
1361
1383
  try {
1362
1384
  w = Ve(v);
1363
1385
  } catch (P) {
1364
1386
  return e.apply(this, arguments);
1365
1387
  }
1366
- var b = h[w];
1367
- if (b && o && Date.now() - b.time < o && (delete h[w], b = null), b)
1388
+ var b = p[w];
1389
+ if (b && o && Date.now() - b.time < o && (delete p[w], b = null), b)
1368
1390
  return b.value;
1369
1391
  var x = Date.now(), S = e.apply(this, arguments);
1370
- return h[w] = {
1392
+ return p[w] = {
1371
1393
  time: x,
1372
1394
  value: S
1373
1395
  }, S;
1374
1396
  };
1375
- return u.reset = function() {
1397
+ return c.reset = function() {
1376
1398
  i = null, a = null;
1377
- }, Ye(u, (n.name || Je(e)) + "::memoized");
1399
+ }, $e(c, (n.name || Be(e)) + "::memoized");
1378
1400
  }
1379
- ce.clear = function() {
1380
- Ze = ue;
1401
+ ue.clear = function() {
1402
+ Ye = ce;
1381
1403
  };
1382
- function Lt(e) {
1404
+ function kt(e) {
1383
1405
  var n = {};
1384
1406
  function t() {
1385
- for (var r = arguments, o = this, i = arguments.length, a = new Array(i), c = 0; c < i; c++)
1386
- a[c] = arguments[c];
1387
- var u = Ve(a);
1388
- return n.hasOwnProperty(u) || (n[u] = C.try(function() {
1407
+ for (var r = arguments, o = this, i = arguments.length, a = new Array(i), u = 0; u < i; u++)
1408
+ a[u] = arguments[u];
1409
+ var c = Ve(a);
1410
+ return n.hasOwnProperty(c) || (n[c] = C.try(function() {
1389
1411
  return e.apply(o, r);
1390
1412
  }).finally(function() {
1391
- delete n[u];
1392
- })), n[u];
1413
+ delete n[c];
1414
+ })), n[c];
1393
1415
  }
1394
1416
  return t.reset = function() {
1395
1417
  n = {};
1396
- }, Ye(t, Je(e) + "::promiseMemoized");
1418
+ }, $e(t, Be(e) + "::promiseMemoized");
1397
1419
  }
1398
1420
  function te() {
1399
1421
  }
@@ -1420,10 +1442,10 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1420
1442
  return "Error while stringifying error: " + de(o, n + 1);
1421
1443
  }
1422
1444
  }
1423
- function Xe(e) {
1445
+ function Je(e) {
1424
1446
  return typeof e == "string" ? e : e && e.toString && typeof e.toString == "function" ? e.toString() : {}.toString.call(e);
1425
1447
  }
1426
- ce(function(e) {
1448
+ ue(function(e) {
1427
1449
  if (Object.values)
1428
1450
  return Object.values(e);
1429
1451
  var n = [];
@@ -1440,29 +1462,29 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1440
1462
  var r = t();
1441
1463
  return e[n] = r, r;
1442
1464
  }
1443
- function Ke() {
1465
+ function Xe() {
1444
1466
  var e = document.body;
1445
1467
  if (!e)
1446
1468
  throw new Error("Body element not found");
1447
1469
  return e;
1448
1470
  }
1449
- function Qe() {
1471
+ function Ze() {
1450
1472
  return !!document.body && document.readyState === "complete";
1451
1473
  }
1452
- function et() {
1474
+ function Ke() {
1453
1475
  return !!document.body && document.readyState === "interactive";
1454
1476
  }
1455
- ce(function() {
1477
+ ue(function() {
1456
1478
  return new C(function(e) {
1457
- if (Qe() || et())
1479
+ if (Ze() || Ke())
1458
1480
  return e();
1459
1481
  var n = setInterval(function() {
1460
- if (Qe() || et())
1482
+ if (Ze() || Ke())
1461
1483
  return clearInterval(n), e();
1462
1484
  }, 10);
1463
1485
  });
1464
1486
  });
1465
- var Ee = typeof document != "undefined" ? document.currentScript : null, Mt = ce(function() {
1487
+ var Ee = typeof document != "undefined" ? document.currentScript : null, Ut = ue(function() {
1466
1488
  if (Ee || (Ee = function() {
1467
1489
  try {
1468
1490
  var e = function() {
@@ -1484,13 +1506,13 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1484
1506
  }()))
1485
1507
  return Ee;
1486
1508
  throw new Error("Can not determine current script");
1487
- }), jt = Y();
1488
- ce(function() {
1509
+ }), Ft = Y();
1510
+ ue(function() {
1489
1511
  var e;
1490
1512
  try {
1491
- e = Mt();
1513
+ e = Ut();
1492
1514
  } catch (r) {
1493
- return jt;
1515
+ return Ft;
1494
1516
  }
1495
1517
  var n = e.getAttribute("data-uid");
1496
1518
  if (n && typeof n == "string" || (n = e.getAttribute("data-uid-auto")) && typeof n == "string")
@@ -1516,11 +1538,11 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1516
1538
  var n = "__post_robot_10_0_46__";
1517
1539
  return e !== window ? e[n] : e[n] = e[n] || {};
1518
1540
  }
1519
- var tt = function() {
1541
+ var Qe = function() {
1520
1542
  return {};
1521
1543
  };
1522
- function L(e, n) {
1523
- return e === void 0 && (e = "store"), n === void 0 && (n = tt), fe(le(), e, function() {
1544
+ function z(e, n) {
1545
+ return e === void 0 && (e = "store"), n === void 0 && (n = Qe), fe(le(), e, function() {
1524
1546
  var t = n();
1525
1547
  return {
1526
1548
  has: function(r) {
@@ -1547,14 +1569,14 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1547
1569
  };
1548
1570
  });
1549
1571
  }
1550
- var kt = function() {
1572
+ var Ht = function() {
1551
1573
  };
1552
1574
  function xe() {
1553
1575
  var e = le();
1554
- return e.WINDOW_WILDCARD = e.WINDOW_WILDCARD || new kt(), e.WINDOW_WILDCARD;
1576
+ return e.WINDOW_WILDCARD = e.WINDOW_WILDCARD || new Ht(), e.WINDOW_WILDCARD;
1555
1577
  }
1556
- function U(e, n) {
1557
- return e === void 0 && (e = "store"), n === void 0 && (n = tt), L("windowStore").getOrSet(e, function() {
1578
+ function F(e, n) {
1579
+ return e === void 0 && (e = "store"), n === void 0 && (n = Qe), z("windowStore").getOrSet(e, function() {
1558
1580
  var t = new Ce(), r = function(o) {
1559
1581
  return t.getOrSet(o, n);
1560
1582
  };
@@ -1578,11 +1600,11 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1578
1600
  };
1579
1601
  });
1580
1602
  }
1581
- function nt() {
1582
- return L("instance").getOrSet("instanceID", Y);
1603
+ function et() {
1604
+ return z("instance").getOrSet("instanceID", Y);
1583
1605
  }
1584
- function rt(e, n) {
1585
- var t = n.domain, r = U("helloPromises"), o = r.get(e);
1606
+ function tt(e, n) {
1607
+ var t = n.domain, r = F("helloPromises"), o = r.get(e);
1586
1608
  o && o.resolve({
1587
1609
  domain: t
1588
1610
  });
@@ -1593,13 +1615,13 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1593
1615
  }
1594
1616
  function Te(e, n) {
1595
1617
  return (0, n.send)(e, "postrobot_hello", {
1596
- instanceID: nt()
1618
+ instanceID: et()
1597
1619
  }, {
1598
1620
  domain: "*",
1599
1621
  timeout: -1
1600
1622
  }).then(function(t) {
1601
1623
  var r = t.origin, o = t.data.instanceID;
1602
- return rt(e, {
1624
+ return tt(e, {
1603
1625
  domain: r
1604
1626
  }), {
1605
1627
  win: e,
@@ -1608,9 +1630,9 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1608
1630
  };
1609
1631
  });
1610
1632
  }
1611
- function ot(e, n) {
1633
+ function nt(e, n) {
1612
1634
  var t = n.send;
1613
- return U("windowInstanceIDPromises").getOrSet(e, function() {
1635
+ return F("windowInstanceIDPromises").getOrSet(e, function() {
1614
1636
  return Te(e, {
1615
1637
  send: t
1616
1638
  }).then(function(r) {
@@ -1618,13 +1640,13 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1618
1640
  });
1619
1641
  });
1620
1642
  }
1621
- function it(e) {
1622
- U("knownWindows").set(e, !0);
1643
+ function rt(e) {
1644
+ F("knownWindows").set(e, !0);
1623
1645
  }
1624
1646
  function Re(e) {
1625
1647
  return typeof e == "object" && e !== null && typeof e.__type__ == "string";
1626
1648
  }
1627
- function at(e) {
1649
+ function ot(e) {
1628
1650
  return e === void 0 ? "undefined" : e === null ? "null" : Array.isArray(e) ? "array" : typeof e == "function" ? "function" : typeof e == "object" ? e instanceof Error ? "error" : typeof e.then == "function" ? "promise" : {}.toString.call(e) === "[object RegExp]" ? "regex" : {}.toString.call(e) === "[object Date]" ? "date" : "object" : typeof e == "string" ? "string" : typeof e == "number" ? "number" : typeof e == "boolean" ? "boolean" : void 0;
1629
1651
  }
1630
1652
  function ne(e, n) {
@@ -1633,60 +1655,60 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1633
1655
  __val__: n
1634
1656
  };
1635
1657
  }
1636
- var F, Ut = ((F = {}).function = function() {
1637
- }, F.error = function(e) {
1658
+ var H, _t = ((H = {}).function = function() {
1659
+ }, H.error = function(e) {
1638
1660
  return ne("error", {
1639
1661
  message: e.message,
1640
1662
  stack: e.stack,
1641
1663
  code: e.code,
1642
1664
  data: e.data
1643
1665
  });
1644
- }, F.promise = function() {
1645
- }, F.regex = function(e) {
1666
+ }, H.promise = function() {
1667
+ }, H.regex = function(e) {
1646
1668
  return ne("regex", e.source);
1647
- }, F.date = function(e) {
1669
+ }, H.date = function(e) {
1648
1670
  return ne("date", e.toJSON());
1649
- }, F.array = function(e) {
1671
+ }, H.array = function(e) {
1650
1672
  return e;
1651
- }, F.object = function(e) {
1673
+ }, H.object = function(e) {
1652
1674
  return e;
1653
- }, F.string = function(e) {
1675
+ }, H.string = function(e) {
1654
1676
  return e;
1655
- }, F.number = function(e) {
1677
+ }, H.number = function(e) {
1656
1678
  return e;
1657
- }, F.boolean = function(e) {
1679
+ }, H.boolean = function(e) {
1658
1680
  return e;
1659
- }, F.null = function(e) {
1681
+ }, H.null = function(e) {
1660
1682
  return e;
1661
- }, F[void 0] = function(e) {
1683
+ }, H[void 0] = function(e) {
1662
1684
  return ne("undefined", e);
1663
- }, F), Ft = {}, H, Ht = ((H = {}).function = function() {
1685
+ }, H), qt = {}, _, Gt = ((_ = {}).function = function() {
1664
1686
  throw new Error("Function serialization is not implemented; nothing to deserialize");
1665
- }, H.error = function(e) {
1687
+ }, _.error = function(e) {
1666
1688
  var n = e.stack, t = e.code, r = e.data, o = new Error(e.message);
1667
1689
  return o.code = t, r && (o.data = r), o.stack = n + `
1668
1690
 
1669
1691
  ` + o.stack, o;
1670
- }, H.promise = function() {
1692
+ }, _.promise = function() {
1671
1693
  throw new Error("Promise serialization is not implemented; nothing to deserialize");
1672
- }, H.regex = function(e) {
1694
+ }, _.regex = function(e) {
1673
1695
  return new RegExp(e);
1674
- }, H.date = function(e) {
1696
+ }, _.date = function(e) {
1675
1697
  return new Date(e);
1676
- }, H.array = function(e) {
1698
+ }, _.array = function(e) {
1677
1699
  return e;
1678
- }, H.object = function(e) {
1700
+ }, _.object = function(e) {
1679
1701
  return e;
1680
- }, H.string = function(e) {
1702
+ }, _.string = function(e) {
1681
1703
  return e;
1682
- }, H.number = function(e) {
1704
+ }, _.number = function(e) {
1683
1705
  return e;
1684
- }, H.boolean = function(e) {
1706
+ }, _.boolean = function(e) {
1685
1707
  return e;
1686
- }, H.null = function(e) {
1708
+ }, _.null = function(e) {
1687
1709
  return e;
1688
- }, H[void 0] = function() {
1689
- }, H), _t = {};
1710
+ }, _[void 0] = function() {
1711
+ }, _), Bt = {};
1690
1712
  new C(function(e) {
1691
1713
  if (window.document && window.document.body)
1692
1714
  return e(window.document.body);
@@ -1696,25 +1718,25 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1696
1718
  }, 10);
1697
1719
  });
1698
1720
  function Ae() {
1699
- for (var e = L("idToProxyWindow"), n = 0, t = e.keys(); n < t.length; n++) {
1721
+ for (var e = z("idToProxyWindow"), n = 0, t = e.keys(); n < t.length; n++) {
1700
1722
  var r = t[n];
1701
1723
  e.get(r).shouldClean() && e.del(r);
1702
1724
  }
1703
1725
  }
1704
- function st(e, n) {
1705
- var t = n.send, r = n.id, o = r === void 0 ? Y() : r, i = e.then(function(u) {
1706
- if (Q(u))
1707
- return ve(u).name;
1708
- }), a = e.then(function(u) {
1709
- if (G(u))
1726
+ function it(e, n) {
1727
+ var t = n.send, r = n.id, o = r === void 0 ? Y() : r, i = e.then(function(c) {
1728
+ if (Q(c))
1729
+ return ve(c).name;
1730
+ }), a = e.then(function(c) {
1731
+ if ($(c))
1710
1732
  throw new Error("Window is closed, can not determine type");
1711
- return oe(u) ? "popup" : "iframe";
1733
+ return oe(c) ? "popup" : "iframe";
1712
1734
  });
1713
1735
  i.catch(te), a.catch(te);
1714
- var c = function() {
1715
- return e.then(function(u) {
1716
- if (!G(u))
1717
- return Q(u) ? ve(u).name : i;
1736
+ var u = function() {
1737
+ return e.then(function(c) {
1738
+ if (!$(c))
1739
+ return Q(c) ? ve(c).name : i;
1718
1740
  });
1719
1741
  };
1720
1742
  return {
@@ -1722,48 +1744,48 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1722
1744
  getType: function() {
1723
1745
  return a;
1724
1746
  },
1725
- getInstanceID: Lt(function() {
1726
- return e.then(function(u) {
1727
- return ot(u, {
1747
+ getInstanceID: kt(function() {
1748
+ return e.then(function(c) {
1749
+ return nt(c, {
1728
1750
  send: t
1729
1751
  });
1730
1752
  });
1731
1753
  }),
1732
1754
  close: function() {
1733
- return e.then(Nt);
1755
+ return e.then(Mt);
1734
1756
  },
1735
- getName: c,
1757
+ getName: u,
1736
1758
  focus: function() {
1737
- return e.then(function(u) {
1738
- u.focus();
1759
+ return e.then(function(c) {
1760
+ c.focus();
1739
1761
  });
1740
1762
  },
1741
1763
  isClosed: function() {
1742
- return e.then(function(u) {
1743
- return G(u);
1764
+ return e.then(function(c) {
1765
+ return $(c);
1744
1766
  });
1745
1767
  },
1746
- setLocation: function(u, s) {
1768
+ setLocation: function(c, s) {
1747
1769
  return s === void 0 && (s = {}), e.then(function(v) {
1748
- var l = window.location.protocol + "//" + window.location.host, h = s.method, w = h === void 0 ? "get" : h, b = s.body;
1749
- if (u.indexOf("/") === 0)
1750
- u = "" + l + u;
1751
- else if (!u.match(/^https?:\/\//) && u.indexOf(l) !== 0)
1752
- throw new Error("Expected url to be http or https url, or absolute path, got " + JSON.stringify(u));
1770
+ var m = window.location.protocol + "//" + window.location.host, p = s.method, w = p === void 0 ? "get" : p, b = s.body;
1771
+ if (c.indexOf("/") === 0)
1772
+ c = "" + m + c;
1773
+ else if (!c.match(/^https?:\/\//) && c.indexOf(m) !== 0)
1774
+ throw new Error("Expected url to be http or https url, or absolute path, got " + JSON.stringify(c));
1753
1775
  if (w === "post")
1754
- return c().then(function(x) {
1776
+ return u().then(function(x) {
1755
1777
  if (!x)
1756
1778
  throw new Error("Can not post to window without target name");
1757
1779
  (function(S) {
1758
- var P = S.url, z = S.target, R = S.body, T = S.method, M = T === void 0 ? "post" : T, W = document.createElement("form");
1759
- if (W.setAttribute("target", z), W.setAttribute("method", M), W.setAttribute("action", P), W.style.display = "none", R)
1760
- for (var A = 0, B = Object.keys(R); A < B.length; A++) {
1761
- var D, he = B[A], ze = document.createElement("input");
1762
- ze.setAttribute("name", he), ze.setAttribute("value", (D = R[he]) == null ? void 0 : D.toString()), W.appendChild(ze);
1780
+ var P = S.url, L = S.target, R = S.body, T = S.method, M = T === void 0 ? "post" : T, W = document.createElement("form");
1781
+ if (W.setAttribute("target", L), W.setAttribute("method", M), W.setAttribute("action", P), W.style.display = "none", R)
1782
+ for (var A = 0, V = Object.keys(R); A < V.length; A++) {
1783
+ var N, he = V[A], Le = document.createElement("input");
1784
+ Le.setAttribute("name", he), Le.setAttribute("value", (N = R[he]) == null ? void 0 : N.toString()), W.appendChild(Le);
1763
1785
  }
1764
- Ke().appendChild(W), W.submit(), Ke().removeChild(W);
1786
+ Xe().appendChild(W), W.submit(), Xe().removeChild(W);
1765
1787
  })({
1766
- url: u,
1788
+ url: c,
1767
1789
  target: x,
1768
1790
  method: w,
1769
1791
  body: b
@@ -1774,30 +1796,30 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1774
1796
  if (Q(v))
1775
1797
  try {
1776
1798
  if (v.location && typeof v.location.replace == "function") {
1777
- v.location.replace(u);
1799
+ v.location.replace(c);
1778
1800
  return;
1779
1801
  }
1780
1802
  } catch (x) {
1781
1803
  }
1782
- v.location = u;
1804
+ v.location = c;
1783
1805
  });
1784
1806
  },
1785
- setName: function(u) {
1807
+ setName: function(c) {
1786
1808
  return e.then(function(s) {
1787
- var v = Q(s), l = Ge(s);
1809
+ var v = Q(s), m = _e(s);
1788
1810
  if (!v)
1789
- throw new Error("Can not set name for cross-domain window: " + u);
1790
- ve(s).name = u, l && l.setAttribute("name", u), i = C.resolve(u);
1811
+ throw new Error("Can not set name for cross-domain window: " + c);
1812
+ ve(s).name = c, m && m.setAttribute("name", c), i = C.resolve(c);
1791
1813
  });
1792
1814
  }
1793
1815
  };
1794
1816
  }
1795
- var _ = function() {
1817
+ var q = function() {
1796
1818
  function e(t) {
1797
1819
  var r = t.send, o = t.win, i = t.serializedWindow;
1798
- 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 || st(this.actualWindowPromise, {
1820
+ 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 || it(this.actualWindowPromise, {
1799
1821
  send: r
1800
- }), L("idToProxyWindow").set(this.getID(), this), o && this.setWindow(o, {
1822
+ }), z("idToProxyWindow").set(this.getID(), this), o && this.setWindow(o, {
1801
1823
  send: r
1802
1824
  });
1803
1825
  }
@@ -1831,9 +1853,9 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1831
1853
  var t = this, r = this.isPopup(), o = this.getName(), i = C.hash({
1832
1854
  isPopup: r,
1833
1855
  name: o
1834
- }).then(function(c) {
1835
- var u = c.name;
1836
- c.isPopup && u && window.open("", u, "noopener");
1856
+ }).then(function(u) {
1857
+ var c = u.name;
1858
+ u.isPopup && c && window.open("", c, "noopener");
1837
1859
  }), a = this.serializedWindow.focus();
1838
1860
  return C.all([i, a]).then(function() {
1839
1861
  return t;
@@ -1844,10 +1866,10 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1844
1866
  return this.actualWindow;
1845
1867
  }, n.setWindow = function(t, r) {
1846
1868
  var o = r.send;
1847
- this.actualWindow = t, this.actualWindowPromise.resolve(this.actualWindow), this.serializedWindow = st(this.actualWindowPromise, {
1869
+ this.actualWindow = t, this.actualWindowPromise.resolve(this.actualWindow), this.serializedWindow = it(this.actualWindowPromise, {
1848
1870
  send: o,
1849
1871
  id: this.getID()
1850
- }), U("winToProxyWindow").set(t, this);
1872
+ }), F("winToProxyWindow").set(t, this);
1851
1873
  }, n.awaitWindow = function() {
1852
1874
  return this.actualWindowPromise;
1853
1875
  }, n.matchWindow = function(t, r) {
@@ -1855,14 +1877,14 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1855
1877
  return C.try(function() {
1856
1878
  return o.actualWindow ? t === o.actualWindow : C.hash({
1857
1879
  proxyInstanceID: o.getInstanceID(),
1858
- knownWindowInstanceID: ot(t, {
1880
+ knownWindowInstanceID: nt(t, {
1859
1881
  send: i
1860
1882
  })
1861
1883
  }).then(function(a) {
1862
- var c = a.proxyInstanceID === a.knownWindowInstanceID;
1863
- return c && o.setWindow(t, {
1884
+ var u = a.proxyInstanceID === a.knownWindowInstanceID;
1885
+ return u && o.setWindow(t, {
1864
1886
  send: i
1865
- }), c;
1887
+ }), u;
1866
1888
  });
1867
1889
  });
1868
1890
  }, n.unwrap = function() {
@@ -1870,7 +1892,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1870
1892
  }, n.getInstanceID = function() {
1871
1893
  return this.serializedWindow.getInstanceID();
1872
1894
  }, n.shouldClean = function() {
1873
- return !!(this.actualWindow && G(this.actualWindow));
1895
+ return !!(this.actualWindow && $(this.actualWindow));
1874
1896
  }, n.serialize = function() {
1875
1897
  return this.serializedWindow;
1876
1898
  }, e.unwrap = function(t) {
@@ -1882,7 +1904,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1882
1904
  }).serialize();
1883
1905
  }, e.deserialize = function(t, r) {
1884
1906
  var o = r.send;
1885
- return Ae(), L("idToProxyWindow").get(t.id) || new e({
1907
+ return Ae(), z("idToProxyWindow").get(t.id) || new e({
1886
1908
  serializedWindow: t,
1887
1909
  send: o
1888
1910
  });
@@ -1893,15 +1915,15 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1893
1915
  if (Ae(), e.isProxyWindow(t))
1894
1916
  return t;
1895
1917
  var i = t;
1896
- return U("winToProxyWindow").get(i) || new e({
1918
+ return F("winToProxyWindow").get(i) || new e({
1897
1919
  win: i,
1898
1920
  send: o
1899
1921
  });
1900
1922
  }, e;
1901
1923
  }();
1902
1924
  function Oe(e, n, t, r, o) {
1903
- var i = U("methodStore"), a = L("proxyWindowMethods");
1904
- _.isProxyWindow(r) ? a.set(e, {
1925
+ var i = F("methodStore"), a = z("proxyWindowMethods");
1926
+ q.isProxyWindow(r) ? a.set(e, {
1905
1927
  val: n,
1906
1928
  name: t,
1907
1929
  domain: o,
@@ -1915,38 +1937,38 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1915
1937
  source: r
1916
1938
  });
1917
1939
  }
1918
- function ut(e, n) {
1919
- var t = U("methodStore"), r = L("proxyWindowMethods");
1940
+ function at(e, n) {
1941
+ var t = F("methodStore"), r = z("proxyWindowMethods");
1920
1942
  return t.getOrSet(e, function() {
1921
1943
  return {};
1922
1944
  })[n] || r.get(n);
1923
1945
  }
1924
- function ct(e, n, t, r, o) {
1946
+ function st(e, n, t, r, o) {
1925
1947
  a = (i = {
1926
1948
  on: o.on,
1927
1949
  send: o.send
1928
- }).on, c = i.send, L("builtinListeners").getOrSet("functionCalls", function() {
1950
+ }).on, u = i.send, z("builtinListeners").getOrSet("functionCalls", function() {
1929
1951
  return a("postrobot_method", {
1930
1952
  domain: "*"
1931
1953
  }, function(v) {
1932
- var l = v.source, h = v.origin, w = v.data, b = w.id, x = w.name, S = ut(l, b);
1954
+ var m = v.source, p = v.origin, w = v.data, b = w.id, x = w.name, S = at(m, b);
1933
1955
  if (!S)
1934
- throw new Error("Could not find method '" + x + "' with id: " + w.id + " in " + k(window));
1935
- var P = S.source, z = S.domain, R = S.val;
1956
+ throw new Error("Could not find method '" + x + "' with id: " + w.id + " in " + U(window));
1957
+ var P = S.source, L = S.domain, R = S.val;
1936
1958
  return C.try(function() {
1937
- if (!re(z, h))
1938
- throw new Error("Method '" + w.name + "' domain " + JSON.stringify(Pe(S.domain) ? S.domain.source : S.domain) + " does not match origin " + h + " in " + k(window));
1939
- if (_.isProxyWindow(P))
1940
- return P.matchWindow(l, {
1941
- send: c
1959
+ if (!re(L, p))
1960
+ throw new Error("Method '" + w.name + "' domain " + JSON.stringify(Pe(S.domain) ? S.domain.source : S.domain) + " does not match origin " + p + " in " + U(window));
1961
+ if (q.isProxyWindow(P))
1962
+ return P.matchWindow(m, {
1963
+ send: u
1942
1964
  }).then(function(T) {
1943
1965
  if (!T)
1944
- throw new Error("Method call '" + w.name + "' failed - proxy window does not match source in " + k(window));
1966
+ throw new Error("Method call '" + w.name + "' failed - proxy window does not match source in " + U(window));
1945
1967
  });
1946
1968
  }).then(function() {
1947
1969
  return R.apply({
1948
- source: l,
1949
- origin: h
1970
+ source: m,
1971
+ origin: p
1950
1972
  }, w.args);
1951
1973
  }, function(T) {
1952
1974
  return C.try(function() {
@@ -1971,102 +1993,102 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1971
1993
  });
1972
1994
  });
1973
1995
  });
1974
- var i, a, c, u = t.__id__ || Y();
1975
- e = _.unwrap(e);
1996
+ var i, a, u, c = t.__id__ || Y();
1997
+ e = q.unwrap(e);
1976
1998
  var s = t.__name__ || t.name || r;
1977
- return typeof s == "string" && typeof s.indexOf == "function" && s.indexOf("anonymous::") === 0 && (s = s.replace("anonymous::", r + "::")), _.isProxyWindow(e) ? (Oe(u, t, s, e, n), e.awaitWindow().then(function(v) {
1978
- Oe(u, t, s, v, n);
1979
- })) : Oe(u, t, s, e, n), ne("cross_domain_function", {
1980
- id: u,
1999
+ return typeof s == "string" && typeof s.indexOf == "function" && s.indexOf("anonymous::") === 0 && (s = s.replace("anonymous::", r + "::")), q.isProxyWindow(e) ? (Oe(c, t, s, e, n), e.awaitWindow().then(function(v) {
2000
+ Oe(c, t, s, v, n);
2001
+ })) : Oe(c, t, s, e, n), ne("cross_domain_function", {
2002
+ id: c,
1981
2003
  name: s
1982
2004
  });
1983
2005
  }
1984
- function dt(e, n, t, r) {
2006
+ function ct(e, n, t, r) {
1985
2007
  var o, i = r.on, a = r.send;
1986
- return function(c, u) {
1987
- u === void 0 && (u = Ft);
1988
- var s = JSON.stringify(c, function(v) {
1989
- var l = this[v];
2008
+ return function(u, c) {
2009
+ c === void 0 && (c = qt);
2010
+ var s = JSON.stringify(u, function(v) {
2011
+ var m = this[v];
1990
2012
  if (Re(this))
1991
- return l;
1992
- var h = at(l);
1993
- if (!h)
1994
- return l;
1995
- var w = u[h] || Ut[h];
1996
- return w ? w(l, v) : l;
2013
+ return m;
2014
+ var p = ot(m);
2015
+ if (!p)
2016
+ return m;
2017
+ var w = c[p] || _t[p];
2018
+ return w ? w(m, v) : m;
1997
2019
  });
1998
2020
  return s === void 0 ? "undefined" : s;
1999
- }(t, ((o = {}).promise = function(c, u) {
2000
- return function(s, v, l, h, w) {
2021
+ }(t, ((o = {}).promise = function(u, c) {
2022
+ return function(s, v, m, p, w) {
2001
2023
  return ne("cross_domain_zalgo_promise", {
2002
- then: ct(s, v, function(b, x) {
2003
- return l.then(b, x);
2004
- }, h, {
2024
+ then: st(s, v, function(b, x) {
2025
+ return m.then(b, x);
2026
+ }, p, {
2005
2027
  on: w.on,
2006
2028
  send: w.send
2007
2029
  })
2008
2030
  });
2009
- }(e, n, c, u, {
2031
+ }(e, n, u, c, {
2010
2032
  on: i,
2011
2033
  send: a
2012
2034
  });
2013
- }, o.function = function(c, u) {
2014
- return ct(e, n, c, u, {
2035
+ }, o.function = function(u, c) {
2036
+ return st(e, n, u, c, {
2015
2037
  on: i,
2016
2038
  send: a
2017
2039
  });
2018
- }, o.object = function(c) {
2019
- return we(c) || _.isProxyWindow(c) ? ne("cross_domain_window", _.serialize(c, {
2040
+ }, o.object = function(u) {
2041
+ return we(u) || q.isProxyWindow(u) ? ne("cross_domain_window", q.serialize(u, {
2020
2042
  send: a
2021
- })) : c;
2043
+ })) : u;
2022
2044
  }, o));
2023
2045
  }
2024
- function ft(e, n, t, r) {
2046
+ function ut(e, n, t, r) {
2025
2047
  var o, i = r.send;
2026
- return function(a, c) {
2027
- if (c === void 0 && (c = _t), a !== "undefined")
2028
- return JSON.parse(a, function(u, s) {
2048
+ return function(a, u) {
2049
+ if (u === void 0 && (u = Bt), a !== "undefined")
2050
+ return JSON.parse(a, function(c, s) {
2029
2051
  if (Re(this))
2030
2052
  return s;
2031
- var v, l;
2032
- if (Re(s) ? (v = s.__type__, l = s.__val__) : (v = at(s), l = s), !v)
2033
- return l;
2034
- var h = c[v] || Ht[v];
2035
- return h ? h(l, u) : l;
2053
+ var v, m;
2054
+ if (Re(s) ? (v = s.__type__, m = s.__val__) : (v = ot(s), m = s), !v)
2055
+ return m;
2056
+ var p = u[v] || Gt[v];
2057
+ return p ? p(m, c) : m;
2036
2058
  });
2037
2059
  }(t, ((o = {}).cross_domain_zalgo_promise = function(a) {
2038
- return function(c, u, s) {
2060
+ return function(u, c, s) {
2039
2061
  return new C(s.then);
2040
2062
  }(0, 0, a);
2041
2063
  }, o.cross_domain_function = function(a) {
2042
- return function(c, u, s, v) {
2043
- var l = s.id, h = s.name, w = v.send, b = function(S) {
2064
+ return function(u, c, s, v) {
2065
+ var m = s.id, p = s.name, w = v.send, b = function(S) {
2044
2066
  S === void 0 && (S = {});
2045
2067
  function P() {
2046
- var z = arguments;
2047
- return _.toProxyWindow(c, {
2068
+ var L = arguments;
2069
+ return q.toProxyWindow(u, {
2048
2070
  send: w
2049
2071
  }).awaitWindow().then(function(R) {
2050
- var T = ut(R, l);
2072
+ var T = at(R, m);
2051
2073
  if (T && T.val !== P)
2052
2074
  return T.val.apply({
2053
2075
  source: window,
2054
- origin: k()
2055
- }, z);
2056
- var M = [].slice.call(z);
2076
+ origin: U()
2077
+ }, L);
2078
+ var M = [].slice.call(L);
2057
2079
  return S.fireAndForget ? w(R, "postrobot_method", {
2058
- id: l,
2059
- name: h,
2080
+ id: m,
2081
+ name: p,
2060
2082
  args: M
2061
2083
  }, {
2062
- domain: u,
2084
+ domain: c,
2063
2085
  fireAndForget: !0
2064
2086
  }) : w(R, "postrobot_method", {
2065
- id: l,
2066
- name: h,
2087
+ id: m,
2088
+ name: p,
2067
2089
  args: M
2068
2090
  }, {
2069
- domain: u,
2091
+ domain: c,
2070
2092
  fireAndForget: !1
2071
2093
  }).then(function(W) {
2072
2094
  return W.data.result;
@@ -2075,7 +2097,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2075
2097
  throw R;
2076
2098
  });
2077
2099
  }
2078
- return P.__name__ = h, P.__origin__ = u, P.__source__ = c, P.__id__ = l, P.origin = u, P;
2100
+ return P.__name__ = p, P.__origin__ = c, P.__source__ = u, P.__id__ = m, P.origin = c, P;
2079
2101
  }, x = b();
2080
2102
  return x.fireAndForget = b({
2081
2103
  fireAndForget: !0
@@ -2084,33 +2106,33 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2084
2106
  send: i
2085
2107
  });
2086
2108
  }, o.cross_domain_window = function(a) {
2087
- return _.deserialize(a, {
2109
+ return q.deserialize(a, {
2088
2110
  send: i
2089
2111
  });
2090
2112
  }, o));
2091
2113
  }
2092
- var De = {};
2093
- De.postrobot_post_message = function(e, n, t) {
2114
+ var Ne = {};
2115
+ Ne.postrobot_post_message = function(e, n, t) {
2094
2116
  t.indexOf("file:") === 0 && (t = "*"), e.postMessage(n, t);
2095
2117
  };
2096
- function Ne(e, n, t, r) {
2118
+ function De(e, n, t, r) {
2097
2119
  var o = r.on, i = r.send;
2098
2120
  return C.try(function() {
2099
- var a = U().getOrSet(e, function() {
2121
+ var a = F().getOrSet(e, function() {
2100
2122
  return {};
2101
2123
  });
2102
2124
  return a.buffer = a.buffer || [], a.buffer.push(t), a.flush = a.flush || C.flush().then(function() {
2103
- if (G(e))
2125
+ if ($(e))
2104
2126
  throw new Error("Window is closed");
2105
- var c = dt(e, n, ((u = {}).__post_robot_10_0_46__ = a.buffer || [], u), {
2127
+ var u = ct(e, n, ((c = {}).__post_robot_10_0_46__ = a.buffer || [], c), {
2106
2128
  on: o,
2107
2129
  send: i
2108
- }), u;
2130
+ }), c;
2109
2131
  delete a.buffer;
2110
- for (var s = Object.keys(De), v = [], l = 0; l < s.length; l++) {
2111
- var h = s[l];
2132
+ for (var s = Object.keys(Ne), v = [], m = 0; m < s.length; m++) {
2133
+ var p = s[m];
2112
2134
  try {
2113
- De[h](e, c, n);
2135
+ Ne[p](e, u, n);
2114
2136
  } catch (w) {
2115
2137
  v.push(w);
2116
2138
  }
@@ -2128,33 +2150,33 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2128
2150
  });
2129
2151
  }).then(te);
2130
2152
  }
2131
- function lt(e) {
2132
- return L("responseListeners").get(e);
2153
+ function dt(e) {
2154
+ return z("responseListeners").get(e);
2133
2155
  }
2134
- function ht(e) {
2135
- L("responseListeners").del(e);
2156
+ function ft(e) {
2157
+ z("responseListeners").del(e);
2136
2158
  }
2137
- function mt(e) {
2138
- return L("erroredResponseListeners").has(e);
2159
+ function lt(e) {
2160
+ return z("erroredResponseListeners").has(e);
2139
2161
  }
2140
- function pt(e) {
2141
- var n = e.name, t = e.win, r = e.domain, o = U("requestListeners");
2162
+ function ht(e) {
2163
+ var n = e.name, t = e.win, r = e.domain, o = F("requestListeners");
2142
2164
  if (t === "*" && (t = null), r === "*" && (r = null), !n)
2143
2165
  throw new Error("Name required to get request listener");
2144
2166
  for (var i = 0, a = [t, xe()]; i < a.length; i++) {
2145
- var c = a[i];
2146
- if (c) {
2147
- var u = o.get(c);
2148
- if (u) {
2149
- var s = u[n];
2167
+ var u = a[i];
2168
+ if (u) {
2169
+ var c = o.get(u);
2170
+ if (c) {
2171
+ var s = c[n];
2150
2172
  if (s) {
2151
2173
  if (r && typeof r == "string") {
2152
2174
  if (s[r])
2153
2175
  return s[r];
2154
2176
  if (s.__domain_regex__)
2155
- for (var v = 0, l = s.__domain_regex__; v < l.length; v++) {
2156
- var h = l[v], w = h.listener;
2157
- if (re(h.regex, r))
2177
+ for (var v = 0, m = s.__domain_regex__; v < m.length; v++) {
2178
+ var p = m[v], w = p.listener;
2179
+ if (re(p.regex, r))
2158
2180
  return w;
2159
2181
  }
2160
2182
  }
@@ -2165,42 +2187,42 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2165
2187
  }
2166
2188
  }
2167
2189
  }
2168
- function qt(e, n, t, r) {
2169
- var o = r.on, i = r.send, a = pt({
2190
+ function $t(e, n, t, r) {
2191
+ var o = r.on, i = r.send, a = ht({
2170
2192
  name: t.name,
2171
2193
  win: e,
2172
2194
  domain: n
2173
- }), c = t.name === "postrobot_method" && t.data && typeof t.data.name == "string" ? t.data.name + "()" : t.name;
2174
- function u(s, v, l) {
2195
+ }), u = t.name === "postrobot_method" && t.data && typeof t.data.name == "string" ? t.data.name + "()" : t.name;
2196
+ function c(s, v, m) {
2175
2197
  return C.flush().then(function() {
2176
- if (!t.fireAndForget && !G(e))
2198
+ if (!t.fireAndForget && !$(e))
2177
2199
  try {
2178
- return Ne(e, n, {
2200
+ return De(e, n, {
2179
2201
  id: Y(),
2180
- origin: k(window),
2202
+ origin: U(window),
2181
2203
  type: "postrobot_message_response",
2182
2204
  hash: t.hash,
2183
2205
  name: t.name,
2184
2206
  ack: s,
2185
2207
  data: v,
2186
- error: l
2208
+ error: m
2187
2209
  }, {
2188
2210
  on: o,
2189
2211
  send: i
2190
2212
  });
2191
- } catch (h) {
2192
- throw new Error("Send response message failed for " + c + " in " + k() + `
2213
+ } catch (p) {
2214
+ throw new Error("Send response message failed for " + u + " in " + U() + `
2193
2215
 
2194
- ` + de(h));
2216
+ ` + de(p));
2195
2217
  }
2196
2218
  });
2197
2219
  }
2198
2220
  return C.all([C.flush().then(function() {
2199
- if (!t.fireAndForget && !G(e))
2221
+ if (!t.fireAndForget && !$(e))
2200
2222
  try {
2201
- return Ne(e, n, {
2223
+ return De(e, n, {
2202
2224
  id: Y(),
2203
- origin: k(window),
2225
+ origin: U(window),
2204
2226
  type: "postrobot_message_ack",
2205
2227
  hash: t.hash,
2206
2228
  name: t.name
@@ -2209,7 +2231,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2209
2231
  send: i
2210
2232
  });
2211
2233
  } catch (s) {
2212
- throw new Error("Send ack message failed for " + c + " in " + k() + `
2234
+ throw new Error("Send ack message failed for " + u + " in " + U() + `
2213
2235
 
2214
2236
  ` + de(s));
2215
2237
  }
@@ -2222,18 +2244,18 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2222
2244
  data: t.data
2223
2245
  });
2224
2246
  }).then(function(s) {
2225
- return u("success", s);
2247
+ return c("success", s);
2226
2248
  }, function(s) {
2227
- return u("error", null, s);
2249
+ return c("error", null, s);
2228
2250
  })]).then(te).catch(function(s) {
2229
2251
  if (a && a.handleError)
2230
2252
  return a.handleError(s);
2231
2253
  throw s;
2232
2254
  });
2233
2255
  }
2234
- function Gt(e, n, t) {
2235
- if (!mt(t.hash)) {
2236
- var r = lt(t.hash);
2256
+ function Vt(e, n, t) {
2257
+ if (!lt(t.hash)) {
2258
+ var r = dt(t.hash);
2237
2259
  if (!r)
2238
2260
  throw new Error("No handler found for post message ack for message: " + t.name + " from " + n + " in " + window.location.protocol + "//" + window.location.host + window.location.pathname);
2239
2261
  try {
@@ -2247,9 +2269,9 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2247
2269
  r.ack = !0;
2248
2270
  }
2249
2271
  }
2250
- function Bt(e, n, t) {
2251
- if (!mt(t.hash)) {
2252
- var r = lt(t.hash);
2272
+ function Yt(e, n, t) {
2273
+ if (!lt(t.hash)) {
2274
+ var r = dt(t.hash);
2253
2275
  if (!r)
2254
2276
  throw new Error("No handler found for post message response for message: " + t.name + " from " + n + " in " + window.location.protocol + "//" + window.location.host + window.location.pathname);
2255
2277
  if (!re(r.domain, n))
@@ -2257,29 +2279,29 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2257
2279
  var o;
2258
2280
  if (e !== r.win)
2259
2281
  throw new Error("Response source does not match registered window");
2260
- ht(t.hash), t.ack === "error" ? r.promise.reject(t.error) : t.ack === "success" && r.promise.resolve({
2282
+ ft(t.hash), t.ack === "error" ? r.promise.reject(t.error) : t.ack === "success" && r.promise.resolve({
2261
2283
  source: e,
2262
2284
  origin: n,
2263
2285
  data: t.data
2264
2286
  });
2265
2287
  }
2266
2288
  }
2267
- function vt(e, n) {
2268
- var t = n.on, r = n.send, o = L("receivedMessages");
2289
+ function mt(e, n) {
2290
+ var t = n.on, r = n.send, o = z("receivedMessages");
2269
2291
  try {
2270
2292
  if (!window || window.closed || !e.source)
2271
2293
  return;
2272
2294
  } catch (v) {
2273
2295
  return;
2274
2296
  }
2275
- var i = e.source, a = e.origin, c = function(v, l, h, w) {
2297
+ var i = e.source, a = e.origin, u = function(v, m, p, w) {
2276
2298
  var b = w.on, x = w.send, S;
2277
2299
  try {
2278
- S = ft(l, h, v, {
2300
+ S = ut(m, p, v, {
2279
2301
  on: b,
2280
2302
  send: x
2281
2303
  });
2282
- } catch (z) {
2304
+ } catch (L) {
2283
2305
  return;
2284
2306
  }
2285
2307
  if (S && typeof S == "object" && S !== null) {
@@ -2291,18 +2313,18 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2291
2313
  on: t,
2292
2314
  send: r
2293
2315
  });
2294
- if (c) {
2295
- it(i);
2296
- for (var u = 0; u < c.length; u++) {
2297
- var s = c[u];
2298
- if (o.has(s.id) || (o.set(s.id, !0), G(i) && !s.fireAndForget))
2316
+ if (u) {
2317
+ rt(i);
2318
+ for (var c = 0; c < u.length; c++) {
2319
+ var s = u[c];
2320
+ if (o.has(s.id) || (o.set(s.id, !0), $(i) && !s.fireAndForget))
2299
2321
  return;
2300
2322
  s.origin.indexOf("file:") === 0 && (a = "file://");
2301
2323
  try {
2302
- s.type === "postrobot_message_request" ? qt(i, a, s, {
2324
+ s.type === "postrobot_message_request" ? $t(i, a, s, {
2303
2325
  on: t,
2304
2326
  send: r
2305
- }) : s.type === "postrobot_message_response" ? Bt(i, a, s) : s.type === "postrobot_message_ack" && Gt(i, a, s);
2327
+ }) : s.type === "postrobot_message_response" ? Yt(i, a, s) : s.type === "postrobot_message_ack" && Vt(i, a, s);
2306
2328
  } catch (v) {
2307
2329
  setTimeout(function() {
2308
2330
  throw v;
@@ -2311,82 +2333,82 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2311
2333
  }
2312
2334
  }
2313
2335
  }
2314
- function X(e, n, t) {
2336
+ function Z(e, n, t) {
2315
2337
  if (!e)
2316
2338
  throw new Error("Expected name");
2317
2339
  if (typeof (n = n || {}) == "function" && (t = n, n = {}), !t)
2318
2340
  throw new Error("Expected handler");
2319
2341
  var r = function o(i, a) {
2320
- var c = i.name, u = i.win, s = i.domain, v = U("requestListeners");
2321
- if (!c || typeof c != "string")
2342
+ var u = i.name, c = i.win, s = i.domain, v = F("requestListeners");
2343
+ if (!u || typeof u != "string")
2322
2344
  throw new Error("Name required to add request listener");
2323
- if (u && u !== "*" && _.isProxyWindow(u)) {
2324
- var l = u.awaitWindow().then(function(D) {
2345
+ if (c && c !== "*" && q.isProxyWindow(c)) {
2346
+ var m = c.awaitWindow().then(function(N) {
2325
2347
  return o({
2326
- name: c,
2327
- win: D,
2348
+ name: u,
2349
+ win: N,
2328
2350
  domain: s
2329
2351
  }, a);
2330
2352
  });
2331
2353
  return {
2332
2354
  cancel: function() {
2333
- l.then(function(D) {
2334
- return D.cancel();
2355
+ m.then(function(N) {
2356
+ return N.cancel();
2335
2357
  }, te);
2336
2358
  }
2337
2359
  };
2338
2360
  }
2339
- var h = u;
2340
- if (Array.isArray(h)) {
2341
- for (var w = [], b = 0, x = h; b < x.length; b++)
2361
+ var p = c;
2362
+ if (Array.isArray(p)) {
2363
+ for (var w = [], b = 0, x = p; b < x.length; b++)
2342
2364
  w.push(o({
2343
- name: c,
2365
+ name: u,
2344
2366
  domain: s,
2345
2367
  win: x[b]
2346
2368
  }, a));
2347
2369
  return {
2348
2370
  cancel: function() {
2349
- for (var D = 0; D < w.length; D++)
2350
- w[D].cancel();
2371
+ for (var N = 0; N < w.length; N++)
2372
+ w[N].cancel();
2351
2373
  }
2352
2374
  };
2353
2375
  }
2354
2376
  if (Array.isArray(s)) {
2355
- for (var S = [], P = 0, z = s; P < z.length; P++)
2377
+ for (var S = [], P = 0, L = s; P < L.length; P++)
2356
2378
  S.push(o({
2357
- name: c,
2358
- win: h,
2359
- domain: z[P]
2379
+ name: u,
2380
+ win: p,
2381
+ domain: L[P]
2360
2382
  }, a));
2361
2383
  return {
2362
2384
  cancel: function() {
2363
- for (var D = 0; D < S.length; D++)
2364
- S[D].cancel();
2385
+ for (var N = 0; N < S.length; N++)
2386
+ S[N].cancel();
2365
2387
  }
2366
2388
  };
2367
2389
  }
2368
- var R = pt({
2369
- name: c,
2370
- win: h,
2390
+ var R = ht({
2391
+ name: u,
2392
+ win: p,
2371
2393
  domain: s
2372
2394
  });
2373
- h && h !== "*" || (h = xe());
2395
+ p && p !== "*" || (p = xe());
2374
2396
  var T = (s = s || "*").toString();
2375
2397
  if (R)
2376
- throw h && s ? new Error("Request listener already exists for " + c + " on domain " + s.toString() + " for " + (h === xe() ? "wildcard" : "specified") + " window") : h ? new Error("Request listener already exists for " + c + " for " + (h === 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);
2377
- var M = v.getOrSet(h, function() {
2398
+ throw p && s ? new Error("Request listener already exists for " + u + " on domain " + s.toString() + " for " + (p === xe() ? "wildcard" : "specified") + " window") : p ? new Error("Request listener already exists for " + u + " for " + (p === xe() ? "wildcard" : "specified") + " window") : s ? new Error("Request listener already exists for " + u + " on domain " + s.toString()) : new Error("Request listener already exists for " + u);
2399
+ var M = v.getOrSet(p, function() {
2378
2400
  return {};
2379
- }), W = fe(M, c, function() {
2401
+ }), W = fe(M, u, function() {
2380
2402
  return {};
2381
- }), A, B;
2403
+ }), A, V;
2382
2404
  return Pe(s) ? (A = fe(W, "__domain_regex__", function() {
2383
2405
  return [];
2384
- })).push(B = {
2406
+ })).push(V = {
2385
2407
  regex: s,
2386
2408
  listener: a
2387
2409
  }) : W[T] = a, {
2388
2410
  cancel: function() {
2389
- delete W[T], B && (A.splice(A.indexOf(B, 1)), A.length || delete W.__domain_regex__), Object.keys(W).length || delete M[c], h && !Object.keys(M).length && v.del(h);
2411
+ delete W[T], V && (A.splice(A.indexOf(V, 1)), A.length || delete W.__domain_regex__), Object.keys(W).length || delete M[u], p && !Object.keys(M).length && v.del(p);
2390
2412
  }
2391
2413
  };
2392
2414
  }({
@@ -2405,99 +2427,99 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2405
2427
  }
2406
2428
  };
2407
2429
  }
2408
- function $t(e, n, t) {
2430
+ function Jt(e, n, t) {
2409
2431
  typeof (n = n || {}) == "function" && (t = n, n = {});
2410
2432
  var r = new C(), o;
2411
2433
  return n.errorHandler = function(i) {
2412
2434
  o.cancel(), r.reject(i);
2413
- }, o = X(e, n, function(i) {
2435
+ }, o = Z(e, n, function(i) {
2414
2436
  if (o.cancel(), r.resolve(i), t)
2415
2437
  return t(i);
2416
2438
  }), r.cancel = o.cancel, r;
2417
2439
  }
2418
2440
  var K = function e(n, t, r, o) {
2419
- var i = (o = o || {}).domain || "*", a = o.timeout || -1, c = o.timeout || 5e3, u = o.fireAndForget || !1;
2420
- return _.toProxyWindow(n, {
2441
+ var i = (o = o || {}).domain || "*", a = o.timeout || -1, u = o.timeout || 5e3, c = o.fireAndForget || !1;
2442
+ return q.toProxyWindow(n, {
2421
2443
  send: e
2422
2444
  }).awaitWindow().then(function(s) {
2423
2445
  return C.try(function() {
2424
- if (function(v, l, h) {
2446
+ if (function(v, m, p) {
2425
2447
  if (!v)
2426
2448
  throw new Error("Expected name");
2427
- if (h && typeof h != "string" && !Array.isArray(h) && !Pe(h))
2428
- throw new TypeError("Can not send " + v + ". Expected domain " + JSON.stringify(h) + " to be a string, array, or regex");
2429
- if (G(l))
2449
+ if (p && typeof p != "string" && !Array.isArray(p) && !Pe(p))
2450
+ throw new TypeError("Can not send " + v + ". Expected domain " + JSON.stringify(p) + " to be a string, array, or regex");
2451
+ if ($(m))
2430
2452
  throw new Error("Can not send " + v + ". Target window is closed");
2431
- }(t, s, i), function(v, l) {
2432
- var h = qe(l);
2433
- if (h)
2434
- return h === v;
2435
- if (l === v || function(x) {
2453
+ }(t, s, i), function(v, m) {
2454
+ var p = He(m);
2455
+ if (p)
2456
+ return p === v;
2457
+ if (m === v || function(x) {
2436
2458
  x === void 0 && (x = window);
2437
2459
  try {
2438
2460
  if (x.top)
2439
2461
  return x.top;
2440
2462
  } catch (R) {
2441
2463
  }
2442
- if (q(x) === x)
2464
+ if (B(x) === x)
2443
2465
  return x;
2444
2466
  try {
2445
- if (He(window, x) && window.top)
2467
+ if (Ue(window, x) && window.top)
2446
2468
  return window.top;
2447
2469
  } catch (R) {
2448
2470
  }
2449
2471
  try {
2450
- if (He(x, window) && window.top)
2472
+ if (Ue(x, window) && window.top)
2451
2473
  return window.top;
2452
2474
  } catch (R) {
2453
2475
  }
2454
2476
  for (var S = 0, P = function R(T) {
2455
- for (var M = [], W = 0, A = _e(T); W < A.length; W++) {
2456
- var B = A[W];
2457
- M.push(B);
2458
- for (var D = 0, he = R(B); D < he.length; D++)
2459
- M.push(he[D]);
2477
+ for (var M = [], W = 0, A = Fe(T); W < A.length; W++) {
2478
+ var V = A[W];
2479
+ M.push(V);
2480
+ for (var N = 0, he = R(V); N < he.length; N++)
2481
+ M.push(he[N]);
2460
2482
  }
2461
2483
  return M;
2462
2484
  }(x); S < P.length; S++) {
2463
- var z = P[S];
2485
+ var L = P[S];
2464
2486
  try {
2465
- if (z.top)
2466
- return z.top;
2487
+ if (L.top)
2488
+ return L.top;
2467
2489
  } catch (R) {
2468
2490
  }
2469
- if (q(z) === z)
2470
- return z;
2491
+ if (B(L) === L)
2492
+ return L;
2471
2493
  }
2472
- }(l) === l)
2494
+ }(m) === m)
2473
2495
  return !1;
2474
- for (var w = 0, b = _e(v); w < b.length; w++)
2475
- if (b[w] === l)
2496
+ for (var w = 0, b = Fe(v); w < b.length; w++)
2497
+ if (b[w] === m)
2476
2498
  return !0;
2477
2499
  return !1;
2478
2500
  }(window, s))
2479
- return function(v, l, h) {
2480
- l === void 0 && (l = 5e3), h === void 0 && (h = "Window");
2501
+ return function(v, m, p) {
2502
+ m === void 0 && (m = 5e3), p === void 0 && (p = "Window");
2481
2503
  var w = function(b) {
2482
- return U("helloPromises").getOrSet(b, function() {
2504
+ return F("helloPromises").getOrSet(b, function() {
2483
2505
  return new C();
2484
2506
  });
2485
2507
  }(v);
2486
- return l !== -1 && (w = w.timeout(l, new Error(h + " did not load after " + l + "ms"))), w;
2487
- }(s, c);
2508
+ return m !== -1 && (w = w.timeout(m, new Error(p + " did not load after " + m + "ms"))), w;
2509
+ }(s, u);
2488
2510
  }).then(function(v) {
2489
- return function(l, h, w, b) {
2511
+ return function(m, p, w, b) {
2490
2512
  var x = b.send;
2491
2513
  return C.try(function() {
2492
- return typeof h == "string" ? h : C.try(function() {
2493
- return w || Te(l, {
2514
+ return typeof p == "string" ? p : C.try(function() {
2515
+ return w || Te(m, {
2494
2516
  send: x
2495
2517
  }).then(function(S) {
2496
2518
  return S.domain;
2497
2519
  });
2498
2520
  }).then(function(S) {
2499
- if (!re(h, h))
2500
- throw new Error("Domain " + Xe(h) + " does not match " + Xe(h));
2521
+ if (!re(p, p))
2522
+ throw new Error("Domain " + Je(p) + " does not match " + Je(p));
2501
2523
  return S;
2502
2524
  });
2503
2525
  });
@@ -2505,42 +2527,42 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2505
2527
  send: e
2506
2528
  });
2507
2529
  }).then(function(v) {
2508
- var l = v, h = t === "postrobot_method" && r && typeof r.name == "string" ? r.name + "()" : t, w = new C(), b = t + "_" + Y();
2509
- if (!u) {
2530
+ var m = v, p = t === "postrobot_method" && r && typeof r.name == "string" ? r.name + "()" : t, w = new C(), b = t + "_" + Y();
2531
+ if (!c) {
2510
2532
  var x = {
2511
2533
  name: t,
2512
2534
  win: s,
2513
- domain: l,
2535
+ domain: m,
2514
2536
  promise: w
2515
2537
  };
2516
2538
  (function(W, A) {
2517
- L("responseListeners").set(W, A);
2539
+ z("responseListeners").set(W, A);
2518
2540
  })(b, x);
2519
- var S = U("requestPromises").getOrSet(s, function() {
2541
+ var S = F("requestPromises").getOrSet(s, function() {
2520
2542
  return [];
2521
2543
  });
2522
2544
  S.push(w), w.catch(function() {
2523
2545
  (function(W) {
2524
- L("erroredResponseListeners").set(W, !0);
2525
- })(b), ht(b);
2546
+ z("erroredResponseListeners").set(W, !0);
2547
+ })(b), ft(b);
2526
2548
  });
2527
2549
  var P = function(W) {
2528
- return U("knownWindows").get(W, !1);
2529
- }(s) ? 1e4 : 2e3, z = a, R = P, T = z, M = function(W, A) {
2530
- var B;
2531
- return function D() {
2532
- B = setTimeout(function() {
2550
+ return F("knownWindows").get(W, !1);
2551
+ }(s) ? 1e4 : 2e3, L = a, R = P, T = L, M = function(W, A) {
2552
+ var V;
2553
+ return function N() {
2554
+ V = setTimeout(function() {
2533
2555
  (function() {
2534
- if (G(s))
2556
+ if ($(s))
2535
2557
  return w.reject(new Error("Window closed for " + t + " before " + (x.ack ? "response" : "ack")));
2536
2558
  if (x.cancelled)
2537
2559
  return w.reject(new Error("Response listener was cancelled for " + t));
2538
- 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 " + h + " in " + k() + " in " + z + "ms")) : w.reject(new Error("No ack for postMessage " + h + " in " + k() + " in " + P + "ms"));
2539
- })(), D();
2560
+ 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"));
2561
+ })(), N();
2540
2562
  }, 500);
2541
2563
  }(), {
2542
2564
  cancel: function() {
2543
- clearTimeout(B);
2565
+ clearTimeout(V);
2544
2566
  }
2545
2567
  };
2546
2568
  }();
@@ -2548,151 +2570,151 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2548
2570
  M.cancel(), S.splice(S.indexOf(w, 1));
2549
2571
  }).catch(te);
2550
2572
  }
2551
- return Ne(s, l, {
2573
+ return De(s, m, {
2552
2574
  id: Y(),
2553
- origin: k(window),
2575
+ origin: U(window),
2554
2576
  type: "postrobot_message_request",
2555
2577
  hash: b,
2556
2578
  name: t,
2557
2579
  data: r,
2558
- fireAndForget: u
2580
+ fireAndForget: c
2559
2581
  }, {
2560
- on: X,
2582
+ on: Z,
2561
2583
  send: e
2562
2584
  }).then(function() {
2563
- return u ? w.resolve() : w;
2585
+ return c ? w.resolve() : w;
2564
2586
  }, function(W) {
2565
- throw new Error("Send request message failed for " + h + " in " + k() + `
2587
+ throw new Error("Send request message failed for " + p + " in " + U() + `
2566
2588
 
2567
2589
  ` + de(W));
2568
2590
  });
2569
2591
  });
2570
2592
  });
2571
2593
  };
2572
- function Jt(e, n, t) {
2573
- return dt(e, n, t, {
2574
- on: X,
2594
+ function Xt(e, n, t) {
2595
+ return ct(e, n, t, {
2596
+ on: Z,
2575
2597
  send: K
2576
2598
  });
2577
2599
  }
2578
- function Yt(e, n, t) {
2579
- return ft(e, n, t, {
2580
- on: X,
2600
+ function Zt(e, n, t) {
2601
+ return ut(e, n, t, {
2602
+ on: Z,
2581
2603
  send: K
2582
2604
  });
2583
2605
  }
2584
- function Vt(e) {
2585
- return new _({
2606
+ function Kt(e) {
2607
+ return new q({
2586
2608
  send: K,
2587
2609
  win: e
2588
2610
  });
2589
2611
  }
2590
- function Zt(e) {
2591
- return _.toProxyWindow(e, {
2612
+ function Qt(e) {
2613
+ return q.toProxyWindow(e, {
2592
2614
  send: K
2593
2615
  });
2594
2616
  }
2595
- function wt() {
2617
+ function pt() {
2596
2618
  le().initialized || (le().initialized = !0, n = (e = {
2597
- on: X,
2619
+ on: Z,
2598
2620
  send: K
2599
2621
  }).on, t = e.send, (r = le()).receiveMessage = r.receiveMessage || function(o) {
2600
- return vt(o, {
2622
+ return mt(o, {
2601
2623
  on: n,
2602
2624
  send: t
2603
2625
  });
2604
2626
  }, function(o) {
2605
2627
  var i = o.on, a = o.send;
2606
- L().getOrSet("postMessageListener", function() {
2607
- return function(c, u, s) {
2608
- return c.addEventListener("message", s), {
2628
+ z().getOrSet("postMessageListener", function() {
2629
+ return function(u, c, s) {
2630
+ return u.addEventListener("message", s), {
2609
2631
  cancel: function() {
2610
- c.removeEventListener("message", s);
2632
+ u.removeEventListener("message", s);
2611
2633
  }
2612
2634
  };
2613
- }(window, 0, function(c) {
2614
- (function(u, s) {
2615
- var v = s.on, l = s.send;
2635
+ }(window, 0, function(u) {
2636
+ (function(c, s) {
2637
+ var v = s.on, m = s.send;
2616
2638
  C.try(function() {
2617
- var h = u.source || u.sourceElement, w = u.origin || u.originalEvent && u.originalEvent.origin, b = u.data;
2618
- if (w === "null" && (w = "file://"), h) {
2639
+ var p = c.source || c.sourceElement, w = c.origin || c.originalEvent && c.originalEvent.origin, b = c.data;
2640
+ if (w === "null" && (w = "file://"), p) {
2619
2641
  if (!w)
2620
2642
  throw new Error("Post message did not have origin domain");
2621
- vt({
2622
- source: h,
2643
+ mt({
2644
+ source: p,
2623
2645
  origin: w,
2624
2646
  data: b
2625
2647
  }, {
2626
2648
  on: v,
2627
- send: l
2649
+ send: m
2628
2650
  });
2629
2651
  }
2630
2652
  });
2631
- })(c, {
2653
+ })(u, {
2632
2654
  on: i,
2633
2655
  send: a
2634
2656
  });
2635
2657
  });
2636
2658
  });
2637
2659
  }({
2638
- on: X,
2660
+ on: Z,
2639
2661
  send: K
2640
2662
  }), function(o) {
2641
2663
  var i = o.on, a = o.send;
2642
- L("builtinListeners").getOrSet("helloListener", function() {
2643
- var c = i("postrobot_hello", {
2664
+ z("builtinListeners").getOrSet("helloListener", function() {
2665
+ var u = i("postrobot_hello", {
2644
2666
  domain: "*"
2645
2667
  }, function(s) {
2646
- return rt(s.source, {
2668
+ return tt(s.source, {
2647
2669
  domain: s.origin
2648
2670
  }), {
2649
- instanceID: nt()
2671
+ instanceID: et()
2650
2672
  };
2651
- }), u = qe();
2652
- return u && Te(u, {
2673
+ }), c = He();
2674
+ return c && Te(c, {
2653
2675
  send: a
2654
2676
  }).catch(function(s) {
2655
- }), c;
2677
+ }), u;
2656
2678
  });
2657
2679
  }({
2658
- on: X,
2680
+ on: Z,
2659
2681
  send: K
2660
2682
  }));
2661
2683
  var e, n, t, r;
2662
2684
  }
2663
- function Xt() {
2685
+ function en() {
2664
2686
  (function() {
2665
- for (var n = L("responseListeners"), t = 0, r = n.keys(); t < r.length; t++) {
2687
+ for (var n = z("responseListeners"), t = 0, r = n.keys(); t < r.length; t++) {
2666
2688
  var o = r[t], i = n.get(o);
2667
2689
  i && (i.cancelled = !0), n.del(o);
2668
2690
  }
2669
- })(), (e = L().get("postMessageListener")) && e.cancel();
2691
+ })(), (e = z().get("postMessageListener")) && e.cancel();
2670
2692
  var e;
2671
2693
  delete window.__post_robot_10_0_46__;
2672
2694
  }
2673
- var Kt = !0;
2674
- function Qt(e) {
2675
- for (var n = 0, t = U("requestPromises").get(e, []); n < t.length; n++)
2676
- t[n].reject(new Error("Window " + (G(e) ? "closed" : "cleaned up") + " before response")).catch(te);
2695
+ var tn = !0;
2696
+ function nn(e) {
2697
+ for (var n = 0, t = F("requestPromises").get(e, []); n < t.length; n++)
2698
+ t[n].reject(new Error("Window " + ($(e) ? "closed" : "cleaned up") + " before response")).catch(te);
2677
2699
  }
2678
- wt();
2700
+ pt();
2679
2701
  }]);
2680
2702
  });
2681
- })(Rt);
2682
- var _n = Rt.exports;
2683
- (function(f) {
2684
- f.exports = _n, f.exports.default = f.exports;
2685
- })(Tt);
2686
- var At = Tt.exports;
2687
- const qn = /* @__PURE__ */ Hn(At), Fe = /* @__PURE__ */ an({
2703
+ })(Nt);
2704
+ var Xn = Nt.exports;
2705
+ (function(d) {
2706
+ d.exports = Xn, d.exports.default = d.exports;
2707
+ })(Ot);
2708
+ var Dt = Ot.exports;
2709
+ const Zn = /* @__PURE__ */ Jn(Dt), ke = /* @__PURE__ */ fn({
2688
2710
  __proto__: null,
2689
- default: qn
2690
- }, [At]);
2711
+ default: Zn
2712
+ }, [Dt]);
2691
2713
  export {
2692
- Ct as ConsentBox,
2693
- Bn as PrivacyCenterBox,
2694
- $n as SoyioTypes,
2695
- Jn as SoyioWidget,
2696
- sn as _TooltipManager,
2697
- Jn as default
2714
+ Rt as ConsentBox,
2715
+ Qn as PrivacyCenterBox,
2716
+ er as SoyioTypes,
2717
+ tr as SoyioWidget,
2718
+ ln as _TooltipManager,
2719
+ tr as default
2698
2720
  };