@soyio/soyio-widget 2.10.0 → 2.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,43 +1,43 @@
1
1
  var en = Object.defineProperty;
2
2
  var tn = Object.getPrototypeOf;
3
3
  var nn = Reflect.get;
4
- var rn = (f, d, l) => d in f ? en(f, d, { enumerable: !0, configurable: !0, writable: !0, value: l }) : f[d] = l;
5
- var L = (f, d, l) => (rn(f, typeof d != "symbol" ? d + "" : d, l), l), on = (f, d, l) => {
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
6
  if (!d.has(f))
7
- throw TypeError("Cannot " + l);
7
+ throw TypeError("Cannot " + m);
8
8
  };
9
- var gt = (f, d, l) => {
9
+ var gt = (f, d, m) => {
10
10
  if (d.has(f))
11
11
  throw TypeError("Cannot add the same private member more than once");
12
- d instanceof WeakSet ? d.add(f) : d.set(f, l);
12
+ d instanceof WeakSet ? d.add(f) : d.set(f, m);
13
13
  };
14
- var yt = (f, d, l) => (on(f, d, "access private method"), l), Et = (f, d, l) => nn(tn(f), l, d);
15
- var _ = (f, d, l) => new Promise((v, g) => {
16
- var y = (D) => {
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) => {
17
17
  try {
18
- I(l.next(D));
19
- } catch (M) {
20
- g(M);
18
+ I(m.next(N));
19
+ } catch (j) {
20
+ g(j);
21
21
  }
22
- }, E = (D) => {
22
+ }, E = (N) => {
23
23
  try {
24
- I(l.throw(D));
25
- } catch (M) {
26
- g(M);
24
+ I(m.throw(N));
25
+ } catch (j) {
26
+ g(j);
27
27
  }
28
- }, I = (D) => D.done ? v(D.value) : Promise.resolve(D.value).then(y, E);
29
- I((l = l.apply(f, d)).next());
28
+ }, I = (N) => N.done ? p(N.value) : Promise.resolve(N.value).then(y, E);
29
+ I((m = m.apply(f, d)).next());
30
30
  });
31
31
  function an(f, d) {
32
- for (var l = 0; l < d.length; l++) {
33
- const v = d[l];
34
- if (typeof v != "string" && !Array.isArray(v)) {
35
- for (const g in v)
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
36
  if (g !== "default" && !(g in f)) {
37
- const y = Object.getOwnPropertyDescriptor(v, g);
37
+ const y = Object.getOwnPropertyDescriptor(p, g);
38
38
  y && Object.defineProperty(f, g, y.get ? y : {
39
39
  enumerable: !0,
40
- get: () => v[g]
40
+ get: () => p[g]
41
41
  });
42
42
  }
43
43
  }
@@ -46,10 +46,10 @@ function an(f, d) {
46
46
  }
47
47
  class sn {
48
48
  constructor() {
49
- L(this, "tooltipElement", null);
50
- L(this, "tooltipContent", null);
51
- L(this, "tooltipClass", "soyio-tooltip");
52
- L(this, "hideTimeout", null);
49
+ O(this, "tooltipElement", null);
50
+ O(this, "tooltipContent", null);
51
+ O(this, "tooltipClass", "soyio-tooltip");
52
+ O(this, "hideTimeout", null);
53
53
  this.createTooltipElement(), this.setupGlobalListeners();
54
54
  }
55
55
  createTooltipElement() {
@@ -71,8 +71,8 @@ class sn {
71
71
  transform: translateX(-50%) translateY(-100%);
72
72
  margin-top: -8px;
73
73
  `, this.tooltipContent = document.createElement("div"), this.tooltipContent.style.cssText = "text-align: center;", this.tooltipElement.appendChild(this.tooltipContent);
74
- const l = document.createElement("div");
75
- l.style.cssText = `
74
+ const m = document.createElement("div");
75
+ m.style.cssText = `
76
76
  position: absolute;
77
77
  bottom: -4px;
78
78
  left: 50%;
@@ -81,13 +81,13 @@ class sn {
81
81
  height: 8px;
82
82
  background: white;
83
83
  box-shadow: 2px 2px 2px rgba(0,0,0,0.1);
84
- `, this.tooltipElement.appendChild(l), document.body.appendChild(this.tooltipElement);
84
+ `, this.tooltipElement.appendChild(m), document.body.appendChild(this.tooltipElement);
85
85
  }
86
86
  setupGlobalListeners() {
87
87
  window.addEventListener("scroll", () => this.hide(), !0), window.addEventListener("resize", () => this.hide()), window.addEventListener("orientationchange", () => this.hide());
88
88
  }
89
- show(d, l, v) {
90
- !this.tooltipElement || !this.tooltipContent || (this.hideTimeout && (clearTimeout(this.hideTimeout), this.hideTimeout = null), this.tooltipContent.textContent = d, this.tooltipElement.style.left = `${l}px`, this.tooltipElement.style.top = `${v}px`, this.tooltipElement.style.opacity = "1");
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");
91
91
  }
92
92
  hide() {
93
93
  this.tooltipElement && (this.tooltipElement.style.opacity = "0");
@@ -97,19 +97,36 @@ class sn {
97
97
  (d = this.tooltipElement) == null || d.remove(), this.tooltipElement = null, this.tooltipContent = null, this.hideTimeout && (clearTimeout(this.hideTimeout), this.hideTimeout = null);
98
98
  }
99
99
  }
100
- function un(f, d, l) {
101
- return _(this, null, function* () {
100
+ const je = "https://app.soyio.id", ke = "https://sandbox.soyio.id", un = [
101
+ "DISCLOSURE_REQUEST_SUCCESSFUL",
102
+ "IDENTITY_REGISTERED",
103
+ "IDENTITY_SIGNATURE",
104
+ "UNEXPECTED_ERROR",
105
+ "DENIED_CAMERA_PERMISSION",
106
+ "REJECTED_SIGNATURE"
107
+ ], cn = "WIDGET_CLOSED", dn = 420, fn = 720, ln = 500, hn = {
108
+ minWidth: "375px",
109
+ maxWidth: "50rem"
110
+ }, mn = {
111
+ minWidth: "375px",
112
+ maxWidth: "36rem"
113
+ }, pn = {
114
+ minWidth: "375px",
115
+ maxWidth: "50rem"
116
+ };
117
+ function vn(f, d, m) {
118
+ return $(this, null, function* () {
102
119
  if (!f.contentWindow)
103
120
  throw new Error("Invalid iframe: contentWindow is null");
104
- const v = yield Promise.resolve().then(() => He);
121
+ const p = yield Promise.resolve().then(() => Fe);
105
122
  try {
106
- yield v.send(f.contentWindow, "SET_APPEARANCE", { appearance: d, identifier: l });
123
+ yield p.send(f.contentWindow, "SET_APPEARANCE", { appearance: d, identifier: m });
107
124
  } catch (g) {
108
125
  console.error("Failed to send appearance config:", g);
109
126
  }
110
127
  });
111
128
  }
112
- const cn = "IFRAME_READY", dn = "IFRAME_HEIGHT_CHANGE", fn = "TOOLTIP_STATE_CHANGE", ln = "CONSENT_STATE_CHANGE", J = {
129
+ const wn = "IFRAME_READY", gn = "IFRAME_HEIGHT_CHANGE", yn = "TOOLTIP_STATE_CHANGE", En = "CONSENT_STATE_CHANGE", J = {
113
130
  // BASE
114
131
  onHeightChange: {},
115
132
  onIframeReady: {},
@@ -117,49 +134,49 @@ const cn = "IFRAME_READY", dn = "IFRAME_HEIGHT_CHANGE", fn = "TOOLTIP_STATE_CHAN
117
134
  // CONSENT
118
135
  onStateChange: {}
119
136
  };
120
- let xt, bt, St, Wt;
121
- function hn() {
122
- return _(this, null, function* () {
123
- const f = yield Promise.resolve().then(() => He);
124
- xt || bt || St || Wt || (xt = f.on(dn, (d) => _(this, null, function* () {
125
- const l = d.data, v = J.onHeightChange[l.identifier];
126
- v && v(l.height);
127
- })), bt = f.on(cn, (d) => _(this, null, function* () {
128
- const l = d.data, v = J.onIframeReady[l.identifier];
129
- v && v();
130
- })), St = f.on(fn, (d) => _(this, null, function* () {
131
- const l = d.data, v = J.onTooltipChange[l.identifier];
132
- v && v(l);
133
- })), Wt = f.on(ln, (d) => _(this, null, function* () {
134
- const l = d.data, v = J.onStateChange[l.identifier];
135
- v && v(l);
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);
136
153
  })));
137
154
  });
138
155
  }
139
156
  function It(f, d) {
140
157
  const {
141
- onHeightChange: l,
142
- onIframeReady: v,
158
+ onHeightChange: m,
159
+ onIframeReady: p,
143
160
  onTooltipChange: g,
144
161
  onStateChange: y
145
162
  } = d;
146
- l && (J.onHeightChange[f] = l), v && (J.onIframeReady[f] = v), g && (J.onTooltipChange[f] = g), y && (J.onStateChange[f] = y);
163
+ m && (J.onHeightChange[f] = m), p && (J.onIframeReady[f] = p), g && (J.onTooltipChange[f] = g), y && (J.onStateChange[f] = y);
147
164
  }
148
- function mn(f) {
165
+ function Sn(f) {
149
166
  delete J.onHeightChange[f], delete J.onIframeReady[f], delete J.onTooltipChange[f], delete J.onStateChange[f];
150
167
  }
151
- function pn(f) {
168
+ function bn(f) {
152
169
  const d = document.getElementById(f);
153
170
  d && (console.warn("ConsentBox iframe already exists. Removing existing before mounting new one."), d.remove());
154
171
  }
155
- function vn(f) {
172
+ function Wn(f) {
156
173
  const d = document.querySelector(f);
157
174
  if (!d)
158
175
  throw new Error(`Iframe div container with id '${f}' not found`);
159
176
  if (d.tagName.toLowerCase() !== "div")
160
177
  throw new Error(`Iframe container with id '${f}' must be a <div> element`);
161
- const l = d;
162
- return l.style.position = "relative", l.style.cssText += `
178
+ const m = d;
179
+ return m.style.position = "relative", m.style.cssText += `
163
180
  padding: 0 !important;
164
181
  margin: 0 !important;
165
182
  display: flex !important;
@@ -168,67 +185,63 @@ function vn(f) {
168
185
  border: none !important;
169
186
  transition: height 0.35s !important;
170
187
  opacity: 1 !important;
171
- `, l;
188
+ `, m;
172
189
  }
173
- function wn(f, d) {
174
- const l = document.createElement("iframe");
175
- return l.id = d, l.src = f, l.style.cssText += `
190
+ function In(f, d, m) {
191
+ const p = document.createElement("iframe");
192
+ return p.id = d, p.src = f, p.style.cssText += `
176
193
  width: 100% !important;
177
- min-width: 375px !important;
178
- max-width: 36rem !important;
194
+ min-width: ${m.minWidth} !important;
195
+ max-width: ${m.maxWidth} !important;
179
196
  border: none !important;
180
- height: 120px !important;
181
197
  overflow: hidden !important;
182
198
  opacity: 1;
183
199
  transition: height 0.35s,
184
200
  opacity 0.4s 0.1s;
185
- `, l;
201
+ `, p;
186
202
  }
187
- function gn() {
203
+ function Cn() {
188
204
  return Math.random().toString(36).substring(2, 10);
189
205
  }
190
- class Se {
206
+ class be {
191
207
  constructor(d) {
192
- L(this, "iframe", null);
193
- L(this, "skeleton", null);
194
- L(this, "defaultIframePrefix", "soyio-iframe");
195
- L(this, "options");
196
- L(this, "appearance");
197
- L(this, "tooltipManager");
198
- L(this, "SkeletonKlass", null);
199
- L(this, "defaultUniqueId");
200
- this.options = d, this.appearance = d.appearance || null, this.tooltipManager = new sn(), this.defaultUniqueId = Se.generateUniqueId();
208
+ O(this, "iframe", null);
209
+ O(this, "skeleton", null);
210
+ O(this, "options");
211
+ O(this, "appearance");
212
+ O(this, "tooltipManager");
213
+ O(this, "defaultIframeCSSConfig", hn);
214
+ O(this, "Skeleton", null);
215
+ O(this, "defaultUniqueId");
216
+ this.options = d, this.appearance = d.appearance || null, this.tooltipManager = new sn(), this.defaultUniqueId = be.generateUniqueId();
201
217
  }
202
218
  static generateUniqueId() {
203
- return gn();
219
+ return Cn();
204
220
  }
205
221
  get uniqueIdentifier() {
206
222
  return this.defaultUniqueId;
207
223
  }
208
- get iframePrefix() {
209
- return this.defaultIframePrefix;
210
- }
211
224
  get iframeIdentifier() {
212
- return `${this.iframePrefix}-${this.uniqueIdentifier}`;
225
+ return `${this.defaultIframePrefix}-${this.uniqueIdentifier}`;
213
226
  }
214
227
  handleHeightChange(d) {
215
228
  if (!this.iframe || (this.iframe.style.height = `${d}px`, d > 0))
216
229
  return;
217
- const { parentElement: l } = this.iframe;
218
- l && (l.style.display = "none");
230
+ const { parentElement: m } = this.iframe;
231
+ m && (m.style.display = "none");
219
232
  }
220
233
  handleIframeReady() {
221
- this.iframe && (this.options.onReady && this.options.onReady(), this.appearance && un(this.iframe, this.appearance, this.uniqueIdentifier), this.skeleton && this.skeleton.hide());
234
+ this.iframe && (this.options.onReady && this.options.onReady(), vn(this.iframe, this.appearance, this.uniqueIdentifier), this.skeleton && this.skeleton.hide());
222
235
  }
223
236
  handleTooltipChange(d) {
224
237
  if (!this.iframe)
225
238
  return;
226
- const l = this.iframe.getBoundingClientRect(), { text: v, coordinates: g, isVisible: y } = d, E = g.x + l.left, I = g.y + l.top;
227
- y ? this.tooltipManager.show(v, E, I) : this.tooltipManager.hide();
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();
228
241
  }
229
242
  setupListeners() {
230
- return _(this, null, function* () {
231
- yield hn();
243
+ return $(this, null, function* () {
244
+ yield xn();
232
245
  const d = {
233
246
  onHeightChange: this.handleHeightChange.bind(this),
234
247
  onIframeReady: this.handleIframeReady.bind(this),
@@ -238,20 +251,20 @@ class Se {
238
251
  });
239
252
  }
240
253
  mount(d) {
241
- return _(this, null, function* () {
242
- yield this.setupListeners(), pn(this.iframeIdentifier);
243
- const l = vn(d), v = this.iframeUrl();
244
- return this.iframe = wn(v, this.iframeIdentifier), this.SkeletonKlass && (this.skeleton = new this.SkeletonKlass(this.uniqueIdentifier), this.skeleton.mount(l)), l.appendChild(this.iframe), this;
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;
245
258
  });
246
259
  }
247
260
  unmount() {
248
- mn(this.uniqueIdentifier), this.skeleton && (this.skeleton.hide(), this.skeleton = null), this.iframe && (this.iframe.remove(), this.iframe = null);
261
+ Sn(this.uniqueIdentifier), this.skeleton && (this.skeleton.hide(), this.skeleton = null), this.iframe && (this.iframe.remove(), this.iframe = null);
249
262
  }
250
263
  }
251
- class yn {
264
+ class Pn {
252
265
  constructor(d) {
253
- L(this, "element");
254
- L(this, "identifier");
266
+ O(this, "element");
267
+ O(this, "identifier");
255
268
  this.identifier = `skeleton-${d}`, this.element = document.createElement("div"), this.element.id = this.identifier, this.element.style.cssText = `
256
269
  position: absolute;
257
270
  left: 50%;
@@ -270,8 +283,8 @@ class yn {
270
283
  flex-direction: column;
271
284
  gap: 1rem;
272
285
  `;
273
- const l = document.createElement("div");
274
- l.style.cssText = `
286
+ const m = document.createElement("div");
287
+ m.style.cssText = `
275
288
  padding: 1rem;
276
289
  height: 100%;
277
290
  max-width: 100%;
@@ -279,8 +292,8 @@ class yn {
279
292
  flex-direction: column;
280
293
  justify-content: space-between;
281
294
  `;
282
- const v = document.createElement("div");
283
- v.style.cssText = `
295
+ const p = document.createElement("div");
296
+ p.style.cssText = `
284
297
  display: flex;
285
298
  align-items: center;
286
299
  gap: 0.75rem;
@@ -321,8 +334,8 @@ class yn {
321
334
  align-items: center;
322
335
  gap: 1rem;
323
336
  `;
324
- const D = document.createElement("div");
325
- D.style.cssText = `
337
+ const N = document.createElement("div");
338
+ N.style.cssText = `
326
339
  width: 1rem;
327
340
  height: 1rem;
328
341
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
@@ -332,15 +345,15 @@ class yn {
332
345
  flex-shrink: 0;
333
346
  margin-left: 10px;
334
347
  `;
335
- const M = document.createElement("div");
336
- M.style.cssText = `
348
+ const j = document.createElement("div");
349
+ j.style.cssText = `
337
350
  flex-grow: 1;
338
351
  display: flex;
339
352
  flex-direction: column;
340
353
  gap: 0.5rem;
341
354
  `;
342
- const B = document.createElement("div");
343
- B.style.cssText = `
355
+ const q = document.createElement("div");
356
+ q.style.cssText = `
344
357
  height: 0.875rem;
345
358
  width: 80%;
346
359
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
@@ -357,15 +370,15 @@ class yn {
357
370
  animation: shimmer 1.5s infinite;
358
371
  border-radius: 0.125rem;
359
372
  `, !document.getElementById("skeleton-animation")) {
360
- const K = document.createElement("style");
361
- K.id = "skeleton-animation", K.textContent = `
373
+ const Z = document.createElement("style");
374
+ Z.id = "skeleton-animation", Z.textContent = `
362
375
  @keyframes shimmer {
363
376
  0% { background-position: 200% 0; }
364
377
  100% { background-position: -200% 0; }
365
378
  }
366
- `, document.head.appendChild(K);
379
+ `, document.head.appendChild(Z);
367
380
  }
368
- v.appendChild(g), v.appendChild(y), v.appendChild(E), M.appendChild(B), M.appendChild(oe), I.appendChild(D), I.appendChild(M), l.appendChild(v), l.appendChild(I), this.element.appendChild(l);
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);
369
382
  }
370
383
  cleanupExistingSkeleton() {
371
384
  const d = document.getElementById(this.identifier);
@@ -378,15 +391,7 @@ class yn {
378
391
  this.element.style.opacity = "0", setTimeout(() => this.element.remove(), 300);
379
392
  }
380
393
  }
381
- const Me = "https://app.soyio.id", ke = "https://sandbox.soyio.id", En = [
382
- "DISCLOSURE_REQUEST_SUCCESSFUL",
383
- "IDENTITY_REGISTERED",
384
- "IDENTITY_SIGNATURE",
385
- "UNEXPECTED_ERROR",
386
- "DENIED_CAMERA_PERMISSION",
387
- "REJECTED_SIGNATURE"
388
- ], xn = "WIDGET_CLOSED", bn = 420, Sn = 720, Wn = 500;
389
- function In(f) {
394
+ function Tn(f) {
390
395
  var E;
391
396
  const d = [
392
397
  "actionToken",
@@ -394,38 +399,40 @@ function In(f) {
394
399
  "context",
395
400
  "optionalReconsentBehavior",
396
401
  "mandatoryReconsentBehavior"
397
- ], l = (E = f.isSandbox) != null ? E : !1, v = f.developmentUrl || (l ? ke : Me), g = new URLSearchParams();
402
+ ], m = (E = f.isSandbox) != null ? E : !1, p = f.developmentUrl || (m ? ke : je), g = new URLSearchParams();
398
403
  d.forEach((I) => {
399
404
  f[I] && g.set(I, f[I]);
400
405
  });
401
406
  const y = g.toString();
402
- return `${v}/embed/consents/${f.consentTemplateId}${y ? `?${y}` : ""}`;
407
+ return `${p}/embed/consents/${f.consentTemplateId}${y ? `?${y}` : ""}`;
403
408
  }
404
- class Ct extends Se {
405
- constructor(l) {
406
- super(l);
407
- L(this, "state", {
409
+ class Ct extends be {
410
+ constructor(m) {
411
+ super(m);
412
+ O(this, "defaultIframePrefix", "consent-box");
413
+ O(this, "defaultIframeCSSConfig", mn);
414
+ O(this, "state", {
408
415
  isSelected: !1,
409
416
  actionToken: null
410
417
  });
411
- this.defaultIframePrefix = "consent-box", this.SkeletonKlass = yn;
418
+ this.Skeleton = Pn;
412
419
  }
413
420
  get uniqueIdentifier() {
414
421
  return this.options.consentTemplateId;
415
422
  }
416
423
  iframeUrl() {
417
- return In(this.options);
424
+ return Tn(this.options);
418
425
  }
419
- handleStateChange(l) {
420
- const { isSelected: v, actionToken: g } = l;
421
- this.state = { isSelected: v, actionToken: g }, this.options.onEvent({
426
+ handleStateChange(m) {
427
+ const { isSelected: p, actionToken: g } = m;
428
+ this.state = { isSelected: p, actionToken: g }, this.options.onEvent({
422
429
  eventName: "CONSENT_CHECKBOX_CHANGE",
423
- isSelected: v,
430
+ isSelected: p,
424
431
  actionToken: g
425
432
  });
426
433
  }
427
434
  setupListeners() {
428
- return _(this, null, function* () {
435
+ return $(this, null, function* () {
429
436
  yield Et(Ct.prototype, this, "setupListeners").call(this), It(this.uniqueIdentifier, {
430
437
  onStateChange: this.handleStateChange.bind(this)
431
438
  });
@@ -435,109 +442,115 @@ class Ct extends Se {
435
442
  return this.state;
436
443
  }
437
444
  }
438
- function Cn(f) {
439
- var v;
440
- return f.developmentUrl ? f.developmentUrl : `${((v = f.isSandbox) != null ? v : !1) ? ke : Me}/embed/privacy-center`;
445
+ function Rn(f) {
446
+ var p;
447
+ return f.developmentUrl ? f.developmentUrl : `${((p = f.isSandbox) != null ? p : !1) ? ke : je}/embed/privacy-center`;
441
448
  }
442
- class qn extends Se {
443
- constructor(d) {
444
- super(d), this.defaultIframePrefix = "privacy-center";
449
+ class Bn extends be {
450
+ constructor() {
451
+ super(...arguments);
452
+ O(this, "defaultIframePrefix", "privacy-center");
453
+ O(this, "_uniqueIdentifier", "privacy-center");
454
+ O(this, "defaultIframeCSSConfig", pn);
455
+ }
456
+ get uniqueIdentifier() {
457
+ return this._uniqueIdentifier;
445
458
  }
446
459
  iframeUrl() {
447
- return Cn(this.options);
460
+ return Rn(this.options);
448
461
  }
449
462
  }
450
- const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
463
+ const $n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
451
464
  __proto__: null
452
465
  }, Symbol.toStringTag, { value: "Module" }));
453
- function Pn(f) {
466
+ function An(f) {
454
467
  let d = "widget/";
455
468
  return "disclosureRequestId" in f.configProps ? d += ["disclosures", f.configProps.disclosureRequestId].join("/") : d += f.request, d;
456
469
  }
457
- function Tn(f) {
470
+ function On(f) {
458
471
  var y;
459
- const d = (y = f.isSandbox) != null ? y : !1, l = f.developmentUrl || (d ? ke : Me), v = Object.entries(f.configProps).filter(([E, I]) => I || E === "disclosureRequestId").map(([E, I]) => `${E}=${encodeURIComponent(I)}`).join("&"), g = Pn(f);
460
- return `${l}/${g}?sdk=web&${v}`;
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}`;
461
474
  }
462
- const Rn = !!(typeof window != "undefined" && window.document && window.document.createElement);
463
- let Z = null, je = null;
464
- function Le(f = null) {
465
- Z && !Z.closed && Z.focus(), f == null || f.preventDefault();
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();
466
479
  }
467
480
  function Ue() {
468
- document.body.style.filter = "", document.body.removeEventListener("click", Le);
481
+ document.body.style.filter = "", document.body.removeEventListener("click", Me);
469
482
  }
470
- function On() {
471
- je = setInterval(() => {
472
- (!Z || Z.closed) && (je && clearInterval(je), Ue());
473
- }, Wn);
483
+ function Nn() {
484
+ Le = setInterval(() => {
485
+ (!V || V.closed) && (Le && clearInterval(Le), Ue());
486
+ }, ln);
474
487
  }
475
- function An(f) {
476
- const d = Tn(f), l = bn, v = Sn, 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, M = (E - l) / 2 / D + g, B = (I - v) / 2 / D + y;
477
- document.body.style.filter = "blur(5px)", document.body.addEventListener("click", Le), Z = window.open(
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(
478
491
  d,
479
492
  "Soyio",
480
493
  `scrollbars=yes,
481
- width=${l},
482
- height=${v},
483
- top=${B},
484
- left=${M}`
485
- ), Le(), On();
494
+ width=${m},
495
+ height=${p},
496
+ top=${q},
497
+ left=${j}`
498
+ ), Me(), Nn();
486
499
  }
487
- function Dn() {
488
- Z && (Z.close(), Z = null), Ue();
500
+ function Ln() {
501
+ V && (V.close(), V = null), Ue();
489
502
  }
490
- const Nn = "WIDGET_EVENT";
503
+ const Mn = "WIDGET_EVENT";
491
504
  let me = null;
492
- function zn() {
505
+ function jn() {
493
506
  me && (me.cancel(), me = null);
494
507
  }
495
- function jn(f) {
496
- return _(this, null, function* () {
497
- const { onEvent: d } = f, l = yield Promise.resolve().then(() => He);
498
- me && zn(), me = l.on(Nn, (v) => _(this, null, function* () {
499
- d(v.data), En.includes(v.data.eventName) ? Dn() : v.data.eventName === xn && Ue();
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();
500
513
  }));
501
514
  });
502
515
  }
503
- function Ln(f) {
504
- jn(f);
516
+ function Un(f) {
517
+ kn(f);
505
518
  }
506
- var be, Pt;
507
- class Gn {
519
+ var Se, Pt;
520
+ class Jn {
508
521
  constructor(d) {
509
- gt(this, be);
510
- L(this, "onEvent");
511
- this.onEvent = d.onEvent, Rn && (An(d), Ln({
512
- onEvent: yt(this, be, Pt).bind(this)
522
+ gt(this, Se);
523
+ O(this, "onEvent");
524
+ this.onEvent = d.onEvent, Dn && (zn(d), Un({
525
+ onEvent: yt(this, Se, Pt).bind(this)
513
526
  }));
514
527
  }
515
528
  }
516
- be = new WeakSet(), Pt = function(d) {
529
+ Se = new WeakSet(), Pt = function(d) {
517
530
  this.onEvent(d);
518
531
  };
519
- var Mn = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
520
- function kn(f) {
532
+ var Fn = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
533
+ function Hn(f) {
521
534
  return f && f.__esModule && Object.prototype.hasOwnProperty.call(f, "default") ? f.default : f;
522
535
  }
523
536
  var Tt = { exports: {} }, Rt = { exports: {} };
524
537
  (function(f, d) {
525
- (function(l, v) {
526
- f.exports = v();
527
- })(typeof self != "undefined" ? self : Mn, function() {
528
- return function(l) {
529
- var v = {};
538
+ (function(m, p) {
539
+ f.exports = p();
540
+ })(typeof self != "undefined" ? self : Fn, function() {
541
+ return function(m) {
542
+ var p = {};
530
543
  function g(y) {
531
- if (v[y])
532
- return v[y].exports;
533
- var E = v[y] = {
544
+ if (p[y])
545
+ return p[y].exports;
546
+ var E = p[y] = {
534
547
  i: y,
535
548
  l: !1,
536
549
  exports: {}
537
550
  };
538
- return l[y].call(E.exports, E, E.exports, g), E.l = !0, E.exports;
551
+ return m[y].call(E.exports, E, E.exports, g), E.l = !0, E.exports;
539
552
  }
540
- return g.m = l, g.c = v, g.d = function(y, E, I) {
553
+ return g.m = m, g.c = p, g.d = function(y, E, I) {
541
554
  g.o(y, E) || Object.defineProperty(y, E, {
542
555
  enumerable: !0,
543
556
  get: I
@@ -556,10 +569,10 @@ var Tt = { exports: {} }, Rt = { exports: {} };
556
569
  enumerable: !0,
557
570
  value: y
558
571
  }), 2 & E && typeof y != "string")
559
- for (var D in y)
560
- g.d(I, D, function(M) {
561
- return y[M];
562
- }.bind(null, D));
572
+ for (var N in y)
573
+ g.d(I, N, function(j) {
574
+ return y[j];
575
+ }.bind(null, N));
563
576
  return I;
564
577
  }, g.n = function(y) {
565
578
  var E = y && y.__esModule ? function() {
@@ -571,36 +584,36 @@ var Tt = { exports: {} }, Rt = { exports: {} };
571
584
  }, g.o = function(y, E) {
572
585
  return {}.hasOwnProperty.call(y, E);
573
586
  }, g.p = "", g(g.s = 0);
574
- }([function(l, v, g) {
575
- g.r(v), g.d(v, "Promise", function() {
587
+ }([function(m, p, g) {
588
+ g.r(p), g.d(p, "Promise", function() {
576
589
  return C;
577
- }), g.d(v, "TYPES", function() {
578
- return Xt;
579
- }), g.d(v, "ProxyWindow", function() {
580
- return q;
581
- }), g.d(v, "setup", function() {
590
+ }), g.d(p, "TYPES", function() {
591
+ return Kt;
592
+ }), g.d(p, "ProxyWindow", function() {
593
+ return _;
594
+ }), g.d(p, "setup", function() {
582
595
  return wt;
583
- }), g.d(v, "destroy", function() {
584
- return Vt;
585
- }), g.d(v, "serializeMessage", function() {
596
+ }), g.d(p, "destroy", function() {
597
+ return Xt;
598
+ }), g.d(p, "serializeMessage", function() {
586
599
  return Jt;
587
- }), g.d(v, "deserializeMessage", function() {
600
+ }), g.d(p, "deserializeMessage", function() {
588
601
  return Yt;
589
- }), g.d(v, "createProxyWindow", function() {
602
+ }), g.d(p, "createProxyWindow", function() {
603
+ return Vt;
604
+ }), g.d(p, "toProxyWindow", function() {
590
605
  return Zt;
591
- }), g.d(v, "toProxyWindow", function() {
592
- return Kt;
593
- }), g.d(v, "on", function() {
594
- return V;
595
- }), g.d(v, "once", function() {
596
- return _t;
597
- }), g.d(v, "send", function() {
606
+ }), g.d(p, "on", function() {
598
607
  return X;
599
- }), g.d(v, "markWindowKnown", function() {
608
+ }), g.d(p, "once", function() {
609
+ return $t;
610
+ }), g.d(p, "send", function() {
611
+ return K;
612
+ }), g.d(p, "markWindowKnown", function() {
600
613
  return it;
601
- }), g.d(v, "cleanUpWindow", function() {
614
+ }), g.d(p, "cleanUpWindow", function() {
602
615
  return Qt;
603
- }), g.d(v, "bridge", function() {
616
+ }), g.d(p, "bridge", function() {
604
617
  });
605
618
  function y(e) {
606
619
  return {}.toString.call(e) === "[object RegExp]";
@@ -610,7 +623,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
610
623
  function I(e) {
611
624
  return e === void 0 && (e = window), e.location.protocol;
612
625
  }
613
- function D(e) {
626
+ function N(e) {
614
627
  if (e === void 0 && (e = window), e.mockDomain) {
615
628
  var n = e.mockDomain.split("//")[0];
616
629
  if (n)
@@ -618,10 +631,10 @@ var Tt = { exports: {} }, Rt = { exports: {} };
618
631
  }
619
632
  return I(e);
620
633
  }
621
- function M(e) {
622
- return e === void 0 && (e = window), D(e) === "about:";
634
+ function j(e) {
635
+ return e === void 0 && (e = window), N(e) === "about:";
623
636
  }
624
- function B(e) {
637
+ function q(e) {
625
638
  if (e === void 0 && (e = window), e)
626
639
  try {
627
640
  if (e.parent && e.parent !== e)
@@ -630,13 +643,13 @@ var Tt = { exports: {} }, Rt = { exports: {} };
630
643
  }
631
644
  }
632
645
  function oe(e) {
633
- if (e === void 0 && (e = window), e && !B(e))
646
+ if (e === void 0 && (e = window), e && !q(e))
634
647
  try {
635
648
  return e.opener;
636
649
  } catch (n) {
637
650
  }
638
651
  }
639
- function K(e) {
652
+ function Z(e) {
640
653
  try {
641
654
  return !0;
642
655
  } catch (n) {
@@ -654,8 +667,8 @@ var Tt = { exports: {} }, Rt = { exports: {} };
654
667
  if (t === "file:")
655
668
  return "file://";
656
669
  if (t === "about:") {
657
- var r = B(e);
658
- return r && K() ? pe(r) : "about://";
670
+ var r = q(e);
671
+ return r && Z() ? pe(r) : "about://";
659
672
  }
660
673
  var o = n.host;
661
674
  if (!o)
@@ -681,14 +694,14 @@ var Tt = { exports: {} }, Rt = { exports: {} };
681
694
  } catch (r) {
682
695
  }
683
696
  try {
684
- if (M(n) && K())
697
+ if (j(n) && Z())
685
698
  return !0;
686
699
  } catch (r) {
687
700
  }
688
701
  try {
689
702
  if (function(r) {
690
- return r === void 0 && (r = window), D(r) === "mock:";
691
- }(n) && K())
703
+ return r === void 0 && (r = window), N(r) === "mock:";
704
+ }(n) && Z())
692
705
  return !0;
693
706
  } catch (r) {
694
707
  }
@@ -701,7 +714,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
701
714
  }(e))
702
715
  return !1;
703
716
  try {
704
- if (e === window || M(e) && K() || k(window) === k(e))
717
+ if (e === window || j(e) && Z() || k(window) === k(e))
705
718
  return !0;
706
719
  } catch (n) {
707
720
  }
@@ -712,10 +725,10 @@ var Tt = { exports: {} }, Rt = { exports: {} };
712
725
  throw new Error("Expected window to be same domain");
713
726
  return e;
714
727
  }
715
- function Fe(e, n) {
728
+ function He(e, n) {
716
729
  if (!e || !n)
717
730
  return !1;
718
- var t = B(n);
731
+ var t = q(n);
719
732
  return t ? t === e : function(r) {
720
733
  var o = [];
721
734
  try {
@@ -726,7 +739,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
726
739
  return o;
727
740
  }(n).indexOf(e) !== -1;
728
741
  }
729
- function qe(e) {
742
+ function _e(e) {
730
743
  var n = [], t;
731
744
  try {
732
745
  t = e.frames;
@@ -765,7 +778,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
765
778
  }
766
779
  return n;
767
780
  }
768
- var At = [], Dt = [];
781
+ var Ot = [], Dt = [];
769
782
  function G(e, n) {
770
783
  n === void 0 && (n = !0);
771
784
  try {
@@ -805,7 +818,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
805
818
  } catch (c) {
806
819
  }
807
820
  return -1;
808
- }(At, e);
821
+ }(Ot, e);
809
822
  if (t !== -1) {
810
823
  var r = Dt[t];
811
824
  if (r && function(o) {
@@ -824,8 +837,8 @@ var Tt = { exports: {} }, Rt = { exports: {} };
824
837
  }
825
838
  return !1;
826
839
  }
827
- function Be(e) {
828
- return e === void 0 && (e = window), oe(e = e || window) || B(e) || void 0;
840
+ function qe(e) {
841
+ return e === void 0 && (e = window), oe(e = e || window) || q(e) || void 0;
829
842
  }
830
843
  function re(e, n) {
831
844
  if (typeof e == "string") {
@@ -905,7 +918,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
905
918
  }
906
919
  function Nt(e) {
907
920
  if (function(t) {
908
- return t === void 0 && (t = window), !!B(t);
921
+ return t === void 0 && (t = window), !!q(t);
909
922
  }(e)) {
910
923
  var n = Ge(e);
911
924
  if (n && n.parentElement) {
@@ -939,8 +952,8 @@ var Tt = { exports: {} }, Rt = { exports: {} };
939
952
  }
940
953
  return !1;
941
954
  }
942
- var $e = [], ie = [], We = 0, ae;
943
- function _e() {
955
+ var Be = [], ie = [], We = 0, ae;
956
+ function $e() {
944
957
  if (!We && ae) {
945
958
  var e = ae;
946
959
  ae = null, e.resolve();
@@ -950,7 +963,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
950
963
  We += 1;
951
964
  }
952
965
  function se() {
953
- We -= 1, _e();
966
+ We -= 1, $e();
954
967
  }
955
968
  var C = function() {
956
969
  function e(t) {
@@ -990,8 +1003,8 @@ var Tt = { exports: {} }, Rt = { exports: {} };
990
1003
  }
991
1004
  return this.rejected = !0, this.error = t, this.errorHandled || setTimeout(function() {
992
1005
  r.errorHandled || function(i, a) {
993
- if ($e.indexOf(i) === -1) {
994
- $e.push(i), setTimeout(function() {
1006
+ if (Be.indexOf(i) === -1) {
1007
+ Be.push(i), setTimeout(function() {
995
1008
  throw i;
996
1009
  }, 1);
997
1010
  for (var c = 0; c < ie.length; c++)
@@ -1005,38 +1018,38 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1005
1018
  var t = this.resolved, r = this.rejected, o = this.handlers;
1006
1019
  if (!this.dispatching && (t || r)) {
1007
1020
  this.dispatching = !0, Ie();
1008
- for (var i = function(w, S) {
1021
+ for (var i = function(w, b) {
1009
1022
  return w.then(function(x) {
1010
- S.resolve(x);
1023
+ b.resolve(x);
1011
1024
  }, function(x) {
1012
- S.reject(x);
1025
+ b.reject(x);
1013
1026
  });
1014
1027
  }, a = 0; a < o.length; a++) {
1015
- var c = o[a], u = c.onSuccess, s = c.onError, p = c.promise, h = void 0;
1028
+ var c = o[a], u = c.onSuccess, s = c.onError, v = c.promise, l = void 0;
1016
1029
  if (t)
1017
1030
  try {
1018
- h = u ? u(this.value) : this.value;
1031
+ l = u ? u(this.value) : this.value;
1019
1032
  } catch (w) {
1020
- p.reject(w);
1033
+ v.reject(w);
1021
1034
  continue;
1022
1035
  }
1023
1036
  else if (r) {
1024
1037
  if (!s) {
1025
- p.reject(this.error);
1038
+ v.reject(this.error);
1026
1039
  continue;
1027
1040
  }
1028
1041
  try {
1029
- h = s(this.error);
1042
+ l = s(this.error);
1030
1043
  } catch (w) {
1031
- p.reject(w);
1044
+ v.reject(w);
1032
1045
  continue;
1033
1046
  }
1034
1047
  }
1035
- if (h instanceof e && (h.resolved || h.rejected)) {
1036
- var m = h;
1037
- m.resolved ? p.resolve(m.value) : p.reject(m.error), m.errorHandled = !0;
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;
1038
1051
  } else
1039
- ee(h) ? h instanceof e && (h.resolved || h.rejected) ? h.resolved ? p.resolve(h.value) : p.reject(h.error) : i(h, p) : p.resolve(h);
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);
1040
1053
  }
1041
1054
  o.length = 0, this.dispatching = !1, se();
1042
1055
  }
@@ -1093,11 +1106,11 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1093
1106
  var r = new e(), o = t.length, i = [].slice();
1094
1107
  if (!o)
1095
1108
  return r.resolve(i), r;
1096
- for (var a = function(s, p, h) {
1097
- return p.then(function(m) {
1098
- i[s] = m, (o -= 1) == 0 && r.resolve(i);
1099
- }, function(m) {
1100
- h.reject(m);
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);
1101
1114
  });
1102
1115
  }, c = 0; c < t.length; c++) {
1103
1116
  var u = t[c];
@@ -1157,7 +1170,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1157
1170
  }, e.flush = function() {
1158
1171
  return function(t) {
1159
1172
  var r = ae = ae || new t();
1160
- return _e(), r;
1173
+ return $e(), r;
1161
1174
  }(e);
1162
1175
  }, e;
1163
1176
  }();
@@ -1210,7 +1223,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1210
1223
  if (o)
1211
1224
  try {
1212
1225
  o.set(t, r);
1213
- } catch (p) {
1226
+ } catch (v) {
1214
1227
  delete this.weakmap;
1215
1228
  }
1216
1229
  if (this.isSafeToReadWrite(t))
@@ -1221,7 +1234,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1221
1234
  writable: !0
1222
1235
  });
1223
1236
  return;
1224
- } catch (p) {
1237
+ } catch (v) {
1225
1238
  }
1226
1239
  this._cleanupClosedWindows();
1227
1240
  var c = this.keys, u = this.values, s = ge(c, t);
@@ -1316,7 +1329,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1316
1329
  }((/* @__PURE__ */ new Date()).toISOString().slice(11, 19).replace("T", ".")).replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
1317
1330
  }
1318
1331
  var ye;
1319
- function Ze(e) {
1332
+ function Ve(e) {
1320
1333
  try {
1321
1334
  return JSON.stringify([].slice.call(e), function(n, t) {
1322
1335
  return typeof t == "function" ? "memoize[" + function(r) {
@@ -1333,45 +1346,45 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1333
1346
  function zt() {
1334
1347
  return {};
1335
1348
  }
1336
- var ue = 0, Ke = 0;
1349
+ var ue = 0, Ze = 0;
1337
1350
  function ce(e, n) {
1338
1351
  n === void 0 && (n = {});
1339
1352
  var t = n.thisNamespace, r = t !== void 0 && t, o = n.time, i, a, c = ue;
1340
1353
  ue += 1;
1341
1354
  var u = function() {
1342
- for (var s = arguments.length, p = new Array(s), h = 0; h < s; h++)
1343
- p[h] = arguments[h];
1344
- c < Ke && (i = null, a = null, c = ue, ue += 1);
1345
- var m;
1346
- m = r ? (a = a || new Ce()).getOrSet(this, zt) : i = i || {};
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 || {};
1347
1360
  var w;
1348
1361
  try {
1349
- w = Ze(p);
1362
+ w = Ve(v);
1350
1363
  } catch (P) {
1351
1364
  return e.apply(this, arguments);
1352
1365
  }
1353
- var S = m[w];
1354
- if (S && o && Date.now() - S.time < o && (delete m[w], S = null), S)
1355
- return S.value;
1356
- var x = Date.now(), b = e.apply(this, arguments);
1357
- return m[w] = {
1366
+ var b = h[w];
1367
+ if (b && o && Date.now() - b.time < o && (delete h[w], b = null), b)
1368
+ return b.value;
1369
+ var x = Date.now(), S = e.apply(this, arguments);
1370
+ return h[w] = {
1358
1371
  time: x,
1359
- value: b
1360
- }, b;
1372
+ value: S
1373
+ }, S;
1361
1374
  };
1362
1375
  return u.reset = function() {
1363
1376
  i = null, a = null;
1364
1377
  }, Ye(u, (n.name || Je(e)) + "::memoized");
1365
1378
  }
1366
1379
  ce.clear = function() {
1367
- Ke = ue;
1380
+ Ze = ue;
1368
1381
  };
1369
- function jt(e) {
1382
+ function Lt(e) {
1370
1383
  var n = {};
1371
1384
  function t() {
1372
1385
  for (var r = arguments, o = this, i = arguments.length, a = new Array(i), c = 0; c < i; c++)
1373
1386
  a[c] = arguments[c];
1374
- var u = Ze(a);
1387
+ var u = Ve(a);
1375
1388
  return n.hasOwnProperty(u) || (n[u] = C.try(function() {
1376
1389
  return e.apply(o, r);
1377
1390
  }).finally(function() {
@@ -1407,7 +1420,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1407
1420
  return "Error while stringifying error: " + de(o, n + 1);
1408
1421
  }
1409
1422
  }
1410
- function Ve(e) {
1423
+ function Xe(e) {
1411
1424
  return typeof e == "string" ? e : e && e.toString && typeof e.toString == "function" ? e.toString() : {}.toString.call(e);
1412
1425
  }
1413
1426
  ce(function(e) {
@@ -1427,7 +1440,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1427
1440
  var r = t();
1428
1441
  return e[n] = r, r;
1429
1442
  }
1430
- function Xe() {
1443
+ function Ke() {
1431
1444
  var e = document.body;
1432
1445
  if (!e)
1433
1446
  throw new Error("Body element not found");
@@ -1449,7 +1462,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1449
1462
  }, 10);
1450
1463
  });
1451
1464
  });
1452
- var Ee = typeof document != "undefined" ? document.currentScript : null, Lt = ce(function() {
1465
+ var Ee = typeof document != "undefined" ? document.currentScript : null, Mt = ce(function() {
1453
1466
  if (Ee || (Ee = function() {
1454
1467
  try {
1455
1468
  var e = function() {
@@ -1471,13 +1484,13 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1471
1484
  }()))
1472
1485
  return Ee;
1473
1486
  throw new Error("Can not determine current script");
1474
- }), Mt = Y();
1487
+ }), jt = Y();
1475
1488
  ce(function() {
1476
1489
  var e;
1477
1490
  try {
1478
- e = Lt();
1491
+ e = Mt();
1479
1492
  } catch (r) {
1480
- return Mt;
1493
+ return jt;
1481
1494
  }
1482
1495
  var n = e.getAttribute("data-uid");
1483
1496
  if (n && typeof n == "string" || (n = e.getAttribute("data-uid-auto")) && typeof n == "string")
@@ -1506,7 +1519,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1506
1519
  var tt = function() {
1507
1520
  return {};
1508
1521
  };
1509
- function z(e, n) {
1522
+ function L(e, n) {
1510
1523
  return e === void 0 && (e = "store"), n === void 0 && (n = tt), fe(le(), e, function() {
1511
1524
  var t = n();
1512
1525
  return {
@@ -1541,7 +1554,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1541
1554
  return e.WINDOW_WILDCARD = e.WINDOW_WILDCARD || new kt(), e.WINDOW_WILDCARD;
1542
1555
  }
1543
1556
  function U(e, n) {
1544
- return e === void 0 && (e = "store"), n === void 0 && (n = tt), z("windowStore").getOrSet(e, function() {
1557
+ return e === void 0 && (e = "store"), n === void 0 && (n = tt), L("windowStore").getOrSet(e, function() {
1545
1558
  var t = new Ce(), r = function(o) {
1546
1559
  return t.getOrSet(o, n);
1547
1560
  };
@@ -1566,7 +1579,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1566
1579
  });
1567
1580
  }
1568
1581
  function nt() {
1569
- return z("instance").getOrSet("instanceID", Y);
1582
+ return L("instance").getOrSet("instanceID", Y);
1570
1583
  }
1571
1584
  function rt(e, n) {
1572
1585
  var t = n.domain, r = U("helloPromises"), o = r.get(e);
@@ -1620,60 +1633,60 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1620
1633
  __val__: n
1621
1634
  };
1622
1635
  }
1623
- var H, Ut = ((H = {}).function = function() {
1624
- }, H.error = function(e) {
1636
+ var F, Ut = ((F = {}).function = function() {
1637
+ }, F.error = function(e) {
1625
1638
  return ne("error", {
1626
1639
  message: e.message,
1627
1640
  stack: e.stack,
1628
1641
  code: e.code,
1629
1642
  data: e.data
1630
1643
  });
1631
- }, H.promise = function() {
1632
- }, H.regex = function(e) {
1644
+ }, F.promise = function() {
1645
+ }, F.regex = function(e) {
1633
1646
  return ne("regex", e.source);
1634
- }, H.date = function(e) {
1647
+ }, F.date = function(e) {
1635
1648
  return ne("date", e.toJSON());
1636
- }, H.array = function(e) {
1649
+ }, F.array = function(e) {
1637
1650
  return e;
1638
- }, H.object = function(e) {
1651
+ }, F.object = function(e) {
1639
1652
  return e;
1640
- }, H.string = function(e) {
1653
+ }, F.string = function(e) {
1641
1654
  return e;
1642
- }, H.number = function(e) {
1655
+ }, F.number = function(e) {
1643
1656
  return e;
1644
- }, H.boolean = function(e) {
1657
+ }, F.boolean = function(e) {
1645
1658
  return e;
1646
- }, H.null = function(e) {
1659
+ }, F.null = function(e) {
1647
1660
  return e;
1648
- }, H[void 0] = function(e) {
1661
+ }, F[void 0] = function(e) {
1649
1662
  return ne("undefined", e);
1650
- }, H), Ht = {}, F, Ft = ((F = {}).function = function() {
1663
+ }, F), Ft = {}, H, Ht = ((H = {}).function = function() {
1651
1664
  throw new Error("Function serialization is not implemented; nothing to deserialize");
1652
- }, F.error = function(e) {
1665
+ }, H.error = function(e) {
1653
1666
  var n = e.stack, t = e.code, r = e.data, o = new Error(e.message);
1654
1667
  return o.code = t, r && (o.data = r), o.stack = n + `
1655
1668
 
1656
1669
  ` + o.stack, o;
1657
- }, F.promise = function() {
1670
+ }, H.promise = function() {
1658
1671
  throw new Error("Promise serialization is not implemented; nothing to deserialize");
1659
- }, F.regex = function(e) {
1672
+ }, H.regex = function(e) {
1660
1673
  return new RegExp(e);
1661
- }, F.date = function(e) {
1674
+ }, H.date = function(e) {
1662
1675
  return new Date(e);
1663
- }, F.array = function(e) {
1676
+ }, H.array = function(e) {
1664
1677
  return e;
1665
- }, F.object = function(e) {
1678
+ }, H.object = function(e) {
1666
1679
  return e;
1667
- }, F.string = function(e) {
1680
+ }, H.string = function(e) {
1668
1681
  return e;
1669
- }, F.number = function(e) {
1682
+ }, H.number = function(e) {
1670
1683
  return e;
1671
- }, F.boolean = function(e) {
1684
+ }, H.boolean = function(e) {
1672
1685
  return e;
1673
- }, F.null = function(e) {
1686
+ }, H.null = function(e) {
1674
1687
  return e;
1675
- }, F[void 0] = function() {
1676
- }, F), qt = {};
1688
+ }, H[void 0] = function() {
1689
+ }, H), _t = {};
1677
1690
  new C(function(e) {
1678
1691
  if (window.document && window.document.body)
1679
1692
  return e(window.document.body);
@@ -1682,8 +1695,8 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1682
1695
  return clearInterval(n), e(window.document.body);
1683
1696
  }, 10);
1684
1697
  });
1685
- function Oe() {
1686
- for (var e = z("idToProxyWindow"), n = 0, t = e.keys(); n < t.length; n++) {
1698
+ function Ae() {
1699
+ for (var e = L("idToProxyWindow"), n = 0, t = e.keys(); n < t.length; n++) {
1687
1700
  var r = t[n];
1688
1701
  e.get(r).shouldClean() && e.del(r);
1689
1702
  }
@@ -1709,7 +1722,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1709
1722
  getType: function() {
1710
1723
  return a;
1711
1724
  },
1712
- getInstanceID: jt(function() {
1725
+ getInstanceID: Lt(function() {
1713
1726
  return e.then(function(u) {
1714
1727
  return ot(u, {
1715
1728
  send: t
@@ -1731,60 +1744,60 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1731
1744
  });
1732
1745
  },
1733
1746
  setLocation: function(u, s) {
1734
- return s === void 0 && (s = {}), e.then(function(p) {
1735
- var h = window.location.protocol + "//" + window.location.host, m = s.method, w = m === void 0 ? "get" : m, S = s.body;
1747
+ 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;
1736
1749
  if (u.indexOf("/") === 0)
1737
- u = "" + h + u;
1738
- else if (!u.match(/^https?:\/\//) && u.indexOf(h) !== 0)
1750
+ u = "" + l + u;
1751
+ else if (!u.match(/^https?:\/\//) && u.indexOf(l) !== 0)
1739
1752
  throw new Error("Expected url to be http or https url, or absolute path, got " + JSON.stringify(u));
1740
1753
  if (w === "post")
1741
1754
  return c().then(function(x) {
1742
1755
  if (!x)
1743
1756
  throw new Error("Can not post to window without target name");
1744
- (function(b) {
1745
- var P = b.url, N = b.target, R = b.body, T = b.method, j = T === void 0 ? "post" : T, W = document.createElement("form");
1746
- if (W.setAttribute("target", N), W.setAttribute("method", j), W.setAttribute("action", P), W.style.display = "none", R)
1747
- for (var O = 0, $ = Object.keys(R); O < $.length; O++) {
1748
- var A, he = $[O], ze = document.createElement("input");
1749
- ze.setAttribute("name", he), ze.setAttribute("value", (A = R[he]) == null ? void 0 : A.toString()), W.appendChild(ze);
1757
+ (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);
1750
1763
  }
1751
- Xe().appendChild(W), W.submit(), Xe().removeChild(W);
1764
+ Ke().appendChild(W), W.submit(), Ke().removeChild(W);
1752
1765
  })({
1753
1766
  url: u,
1754
1767
  target: x,
1755
1768
  method: w,
1756
- body: S
1769
+ body: b
1757
1770
  });
1758
1771
  });
1759
1772
  if (w !== "get")
1760
1773
  throw new Error("Unsupported method: " + w);
1761
- if (Q(p))
1774
+ if (Q(v))
1762
1775
  try {
1763
- if (p.location && typeof p.location.replace == "function") {
1764
- p.location.replace(u);
1776
+ if (v.location && typeof v.location.replace == "function") {
1777
+ v.location.replace(u);
1765
1778
  return;
1766
1779
  }
1767
1780
  } catch (x) {
1768
1781
  }
1769
- p.location = u;
1782
+ v.location = u;
1770
1783
  });
1771
1784
  },
1772
1785
  setName: function(u) {
1773
1786
  return e.then(function(s) {
1774
- var p = Q(s), h = Ge(s);
1775
- if (!p)
1787
+ var v = Q(s), l = Ge(s);
1788
+ if (!v)
1776
1789
  throw new Error("Can not set name for cross-domain window: " + u);
1777
- ve(s).name = u, h && h.setAttribute("name", u), i = C.resolve(u);
1790
+ ve(s).name = u, l && l.setAttribute("name", u), i = C.resolve(u);
1778
1791
  });
1779
1792
  }
1780
1793
  };
1781
1794
  }
1782
- var q = function() {
1795
+ var _ = function() {
1783
1796
  function e(t) {
1784
1797
  var r = t.send, o = t.win, i = t.serializedWindow;
1785
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, {
1786
1799
  send: r
1787
- }), z("idToProxyWindow").set(this.getID(), this), o && this.setWindow(o, {
1800
+ }), L("idToProxyWindow").set(this.getID(), this), o && this.setWindow(o, {
1788
1801
  send: r
1789
1802
  });
1790
1803
  }
@@ -1864,12 +1877,12 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1864
1877
  return e.isProxyWindow(t) ? t.unwrap() : t;
1865
1878
  }, e.serialize = function(t, r) {
1866
1879
  var o = r.send;
1867
- return Oe(), e.toProxyWindow(t, {
1880
+ return Ae(), e.toProxyWindow(t, {
1868
1881
  send: o
1869
1882
  }).serialize();
1870
1883
  }, e.deserialize = function(t, r) {
1871
1884
  var o = r.send;
1872
- return Oe(), z("idToProxyWindow").get(t.id) || new e({
1885
+ return Ae(), L("idToProxyWindow").get(t.id) || new e({
1873
1886
  serializedWindow: t,
1874
1887
  send: o
1875
1888
  });
@@ -1877,7 +1890,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1877
1890
  return !!(t && !we(t) && t.isProxyWindow);
1878
1891
  }, e.toProxyWindow = function(t, r) {
1879
1892
  var o = r.send;
1880
- if (Oe(), e.isProxyWindow(t))
1893
+ if (Ae(), e.isProxyWindow(t))
1881
1894
  return t;
1882
1895
  var i = t;
1883
1896
  return U("winToProxyWindow").get(i) || new e({
@@ -1886,9 +1899,9 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1886
1899
  });
1887
1900
  }, e;
1888
1901
  }();
1889
- function Ae(e, n, t, r, o) {
1890
- var i = U("methodStore"), a = z("proxyWindowMethods");
1891
- q.isProxyWindow(r) ? a.set(e, {
1902
+ function Oe(e, n, t, r, o) {
1903
+ var i = U("methodStore"), a = L("proxyWindowMethods");
1904
+ _.isProxyWindow(r) ? a.set(e, {
1892
1905
  val: n,
1893
1906
  name: t,
1894
1907
  domain: o,
@@ -1903,7 +1916,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1903
1916
  });
1904
1917
  }
1905
1918
  function ut(e, n) {
1906
- var t = U("methodStore"), r = z("proxyWindowMethods");
1919
+ var t = U("methodStore"), r = L("proxyWindowMethods");
1907
1920
  return t.getOrSet(e, function() {
1908
1921
  return {};
1909
1922
  })[n] || r.get(n);
@@ -1912,19 +1925,19 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1912
1925
  a = (i = {
1913
1926
  on: o.on,
1914
1927
  send: o.send
1915
- }).on, c = i.send, z("builtinListeners").getOrSet("functionCalls", function() {
1928
+ }).on, c = i.send, L("builtinListeners").getOrSet("functionCalls", function() {
1916
1929
  return a("postrobot_method", {
1917
1930
  domain: "*"
1918
- }, function(p) {
1919
- var h = p.source, m = p.origin, w = p.data, S = w.id, x = w.name, b = ut(h, S);
1920
- if (!b)
1931
+ }, function(v) {
1932
+ var l = v.source, h = v.origin, w = v.data, b = w.id, x = w.name, S = ut(l, b);
1933
+ if (!S)
1921
1934
  throw new Error("Could not find method '" + x + "' with id: " + w.id + " in " + k(window));
1922
- var P = b.source, N = b.domain, R = b.val;
1935
+ var P = S.source, z = S.domain, R = S.val;
1923
1936
  return C.try(function() {
1924
- if (!re(N, m))
1925
- throw new Error("Method '" + w.name + "' domain " + JSON.stringify(Pe(b.domain) ? b.domain.source : b.domain) + " does not match origin " + m + " in " + k(window));
1926
- if (q.isProxyWindow(P))
1927
- return P.matchWindow(h, {
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, {
1928
1941
  send: c
1929
1942
  }).then(function(T) {
1930
1943
  if (!T)
@@ -1932,17 +1945,17 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1932
1945
  });
1933
1946
  }).then(function() {
1934
1947
  return R.apply({
1935
- source: h,
1936
- origin: m
1948
+ source: l,
1949
+ origin: h
1937
1950
  }, w.args);
1938
1951
  }, function(T) {
1939
1952
  return C.try(function() {
1940
1953
  if (R.onError)
1941
1954
  return R.onError(T);
1942
1955
  }).then(function() {
1943
- throw T.stack && (T.stack = "Remote call to " + x + "(" + function(j) {
1944
- return j === void 0 && (j = []), (W = j, [].slice.call(W)).map(function(O) {
1945
- return typeof O == "string" ? "'" + O + "'" : O === void 0 ? "undefined" : O === null ? "null" : typeof O == "boolean" ? O.toString() : Array.isArray(O) ? "[ ... ]" : typeof O == "object" ? "{ ... }" : typeof O == "function" ? "() => { ... }" : "<" + typeof O + ">";
1956
+ throw T.stack && (T.stack = "Remote call to " + x + "(" + function(M) {
1957
+ return M === void 0 && (M = []), (W = M, [].slice.call(W)).map(function(A) {
1958
+ return typeof A == "string" ? "'" + A + "'" : A === void 0 ? "undefined" : A === null ? "null" : typeof A == "boolean" ? A.toString() : Array.isArray(A) ? "[ ... ]" : typeof A == "object" ? "{ ... }" : typeof A == "function" ? "() => { ... }" : "<" + typeof A + ">";
1946
1959
  }).join(", ");
1947
1960
  var W;
1948
1961
  }(w.args) + `) failed
@@ -1952,18 +1965,18 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1952
1965
  }).then(function(T) {
1953
1966
  return {
1954
1967
  result: T,
1955
- id: S,
1968
+ id: b,
1956
1969
  name: x
1957
1970
  };
1958
1971
  });
1959
1972
  });
1960
1973
  });
1961
1974
  var i, a, c, u = t.__id__ || Y();
1962
- e = q.unwrap(e);
1975
+ e = _.unwrap(e);
1963
1976
  var s = t.__name__ || t.name || r;
1964
- return typeof s == "string" && typeof s.indexOf == "function" && s.indexOf("anonymous::") === 0 && (s = s.replace("anonymous::", r + "::")), q.isProxyWindow(e) ? (Ae(u, t, s, e, n), e.awaitWindow().then(function(p) {
1965
- Ae(u, t, s, p, n);
1966
- })) : Ae(u, t, s, e, n), ne("cross_domain_function", {
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", {
1967
1980
  id: u,
1968
1981
  name: s
1969
1982
  });
@@ -1971,24 +1984,24 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1971
1984
  function dt(e, n, t, r) {
1972
1985
  var o, i = r.on, a = r.send;
1973
1986
  return function(c, u) {
1974
- u === void 0 && (u = Ht);
1975
- var s = JSON.stringify(c, function(p) {
1976
- var h = this[p];
1987
+ u === void 0 && (u = Ft);
1988
+ var s = JSON.stringify(c, function(v) {
1989
+ var l = this[v];
1977
1990
  if (Re(this))
1978
- return h;
1979
- var m = at(h);
1980
- if (!m)
1981
- return h;
1982
- var w = u[m] || Ut[m];
1983
- return w ? w(h, p) : h;
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;
1984
1997
  });
1985
1998
  return s === void 0 ? "undefined" : s;
1986
1999
  }(t, ((o = {}).promise = function(c, u) {
1987
- return function(s, p, h, m, w) {
2000
+ return function(s, v, l, h, w) {
1988
2001
  return ne("cross_domain_zalgo_promise", {
1989
- then: ct(s, p, function(S, x) {
1990
- return h.then(S, x);
1991
- }, m, {
2002
+ then: ct(s, v, function(b, x) {
2003
+ return l.then(b, x);
2004
+ }, h, {
1992
2005
  on: w.on,
1993
2006
  send: w.send
1994
2007
  })
@@ -2003,7 +2016,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2003
2016
  send: a
2004
2017
  });
2005
2018
  }, o.object = function(c) {
2006
- return we(c) || q.isProxyWindow(c) ? ne("cross_domain_window", q.serialize(c, {
2019
+ return we(c) || _.isProxyWindow(c) ? ne("cross_domain_window", _.serialize(c, {
2007
2020
  send: a
2008
2021
  })) : c;
2009
2022
  }, o));
@@ -2011,47 +2024,47 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2011
2024
  function ft(e, n, t, r) {
2012
2025
  var o, i = r.send;
2013
2026
  return function(a, c) {
2014
- if (c === void 0 && (c = qt), a !== "undefined")
2027
+ if (c === void 0 && (c = _t), a !== "undefined")
2015
2028
  return JSON.parse(a, function(u, s) {
2016
2029
  if (Re(this))
2017
2030
  return s;
2018
- var p, h;
2019
- if (Re(s) ? (p = s.__type__, h = s.__val__) : (p = at(s), h = s), !p)
2020
- return h;
2021
- var m = c[p] || Ft[p];
2022
- return m ? m(h, u) : h;
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;
2023
2036
  });
2024
2037
  }(t, ((o = {}).cross_domain_zalgo_promise = function(a) {
2025
2038
  return function(c, u, s) {
2026
2039
  return new C(s.then);
2027
2040
  }(0, 0, a);
2028
2041
  }, o.cross_domain_function = function(a) {
2029
- return function(c, u, s, p) {
2030
- var h = s.id, m = s.name, w = p.send, S = function(b) {
2031
- b === void 0 && (b = {});
2042
+ return function(c, u, s, v) {
2043
+ var l = s.id, h = s.name, w = v.send, b = function(S) {
2044
+ S === void 0 && (S = {});
2032
2045
  function P() {
2033
- var N = arguments;
2034
- return q.toProxyWindow(c, {
2046
+ var z = arguments;
2047
+ return _.toProxyWindow(c, {
2035
2048
  send: w
2036
2049
  }).awaitWindow().then(function(R) {
2037
- var T = ut(R, h);
2050
+ var T = ut(R, l);
2038
2051
  if (T && T.val !== P)
2039
2052
  return T.val.apply({
2040
2053
  source: window,
2041
2054
  origin: k()
2042
- }, N);
2043
- var j = [].slice.call(N);
2044
- return b.fireAndForget ? w(R, "postrobot_method", {
2045
- id: h,
2046
- name: m,
2047
- args: j
2055
+ }, z);
2056
+ var M = [].slice.call(z);
2057
+ return S.fireAndForget ? w(R, "postrobot_method", {
2058
+ id: l,
2059
+ name: h,
2060
+ args: M
2048
2061
  }, {
2049
2062
  domain: u,
2050
2063
  fireAndForget: !0
2051
2064
  }) : w(R, "postrobot_method", {
2052
- id: h,
2053
- name: m,
2054
- args: j
2065
+ id: l,
2066
+ name: h,
2067
+ args: M
2055
2068
  }, {
2056
2069
  domain: u,
2057
2070
  fireAndForget: !1
@@ -2062,16 +2075,16 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2062
2075
  throw R;
2063
2076
  });
2064
2077
  }
2065
- return P.__name__ = m, P.__origin__ = u, P.__source__ = c, P.__id__ = h, P.origin = u, P;
2066
- }, x = S();
2067
- return x.fireAndForget = S({
2078
+ return P.__name__ = h, P.__origin__ = u, P.__source__ = c, P.__id__ = l, P.origin = u, P;
2079
+ }, x = b();
2080
+ return x.fireAndForget = b({
2068
2081
  fireAndForget: !0
2069
2082
  }), x;
2070
2083
  }(e, n, a, {
2071
2084
  send: i
2072
2085
  });
2073
2086
  }, o.cross_domain_window = function(a) {
2074
- return q.deserialize(a, {
2087
+ return _.deserialize(a, {
2075
2088
  send: i
2076
2089
  });
2077
2090
  }, o));
@@ -2094,19 +2107,19 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2094
2107
  send: i
2095
2108
  }), u;
2096
2109
  delete a.buffer;
2097
- for (var s = Object.keys(De), p = [], h = 0; h < s.length; h++) {
2098
- var m = s[h];
2110
+ for (var s = Object.keys(De), v = [], l = 0; l < s.length; l++) {
2111
+ var h = s[l];
2099
2112
  try {
2100
- De[m](e, c, n);
2113
+ De[h](e, c, n);
2101
2114
  } catch (w) {
2102
- p.push(w);
2115
+ v.push(w);
2103
2116
  }
2104
2117
  }
2105
- if (p.length === s.length)
2118
+ if (v.length === s.length)
2106
2119
  throw new Error(`All post-robot messaging strategies failed:
2107
2120
 
2108
- ` + p.map(function(w, S) {
2109
- return S + ". " + de(w);
2121
+ ` + v.map(function(w, b) {
2122
+ return b + ". " + de(w);
2110
2123
  }).join(`
2111
2124
 
2112
2125
  `));
@@ -2116,13 +2129,13 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2116
2129
  }).then(te);
2117
2130
  }
2118
2131
  function lt(e) {
2119
- return z("responseListeners").get(e);
2132
+ return L("responseListeners").get(e);
2120
2133
  }
2121
2134
  function ht(e) {
2122
- z("responseListeners").del(e);
2135
+ L("responseListeners").del(e);
2123
2136
  }
2124
2137
  function mt(e) {
2125
- return z("erroredResponseListeners").has(e);
2138
+ return L("erroredResponseListeners").has(e);
2126
2139
  }
2127
2140
  function pt(e) {
2128
2141
  var n = e.name, t = e.win, r = e.domain, o = U("requestListeners");
@@ -2139,9 +2152,9 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2139
2152
  if (s[r])
2140
2153
  return s[r];
2141
2154
  if (s.__domain_regex__)
2142
- for (var p = 0, h = s.__domain_regex__; p < h.length; p++) {
2143
- var m = h[p], w = m.listener;
2144
- if (re(m.regex, r))
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))
2145
2158
  return w;
2146
2159
  }
2147
2160
  }
@@ -2152,13 +2165,13 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2152
2165
  }
2153
2166
  }
2154
2167
  }
2155
- function Bt(e, n, t, r) {
2168
+ function qt(e, n, t, r) {
2156
2169
  var o = r.on, i = r.send, a = pt({
2157
2170
  name: t.name,
2158
2171
  win: e,
2159
2172
  domain: n
2160
2173
  }), c = t.name === "postrobot_method" && t.data && typeof t.data.name == "string" ? t.data.name + "()" : t.name;
2161
- function u(s, p, h) {
2174
+ function u(s, v, l) {
2162
2175
  return C.flush().then(function() {
2163
2176
  if (!t.fireAndForget && !G(e))
2164
2177
  try {
@@ -2169,16 +2182,16 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2169
2182
  hash: t.hash,
2170
2183
  name: t.name,
2171
2184
  ack: s,
2172
- data: p,
2173
- error: h
2185
+ data: v,
2186
+ error: l
2174
2187
  }, {
2175
2188
  on: o,
2176
2189
  send: i
2177
2190
  });
2178
- } catch (m) {
2191
+ } catch (h) {
2179
2192
  throw new Error("Send response message failed for " + c + " in " + k() + `
2180
2193
 
2181
- ` + de(m));
2194
+ ` + de(h));
2182
2195
  }
2183
2196
  });
2184
2197
  }
@@ -2234,7 +2247,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2234
2247
  r.ack = !0;
2235
2248
  }
2236
2249
  }
2237
- function $t(e, n, t) {
2250
+ function Bt(e, n, t) {
2238
2251
  if (!mt(t.hash)) {
2239
2252
  var r = lt(t.hash);
2240
2253
  if (!r)
@@ -2252,25 +2265,25 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2252
2265
  }
2253
2266
  }
2254
2267
  function vt(e, n) {
2255
- var t = n.on, r = n.send, o = z("receivedMessages");
2268
+ var t = n.on, r = n.send, o = L("receivedMessages");
2256
2269
  try {
2257
2270
  if (!window || window.closed || !e.source)
2258
2271
  return;
2259
- } catch (p) {
2272
+ } catch (v) {
2260
2273
  return;
2261
2274
  }
2262
- var i = e.source, a = e.origin, c = function(p, h, m, w) {
2263
- var S = w.on, x = w.send, b;
2275
+ var i = e.source, a = e.origin, c = function(v, l, h, w) {
2276
+ var b = w.on, x = w.send, S;
2264
2277
  try {
2265
- b = ft(h, m, p, {
2266
- on: S,
2278
+ S = ft(l, h, v, {
2279
+ on: b,
2267
2280
  send: x
2268
2281
  });
2269
- } catch (N) {
2282
+ } catch (z) {
2270
2283
  return;
2271
2284
  }
2272
- if (b && typeof b == "object" && b !== null) {
2273
- var P = b.__post_robot_10_0_46__;
2285
+ if (S && typeof S == "object" && S !== null) {
2286
+ var P = S.__post_robot_10_0_46__;
2274
2287
  if (Array.isArray(P))
2275
2288
  return P;
2276
2289
  }
@@ -2286,94 +2299,94 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2286
2299
  return;
2287
2300
  s.origin.indexOf("file:") === 0 && (a = "file://");
2288
2301
  try {
2289
- s.type === "postrobot_message_request" ? Bt(i, a, s, {
2302
+ s.type === "postrobot_message_request" ? qt(i, a, s, {
2290
2303
  on: t,
2291
2304
  send: r
2292
- }) : s.type === "postrobot_message_response" ? $t(i, a, s) : s.type === "postrobot_message_ack" && Gt(i, a, s);
2293
- } catch (p) {
2305
+ }) : s.type === "postrobot_message_response" ? Bt(i, a, s) : s.type === "postrobot_message_ack" && Gt(i, a, s);
2306
+ } catch (v) {
2294
2307
  setTimeout(function() {
2295
- throw p;
2308
+ throw v;
2296
2309
  }, 0);
2297
2310
  }
2298
2311
  }
2299
2312
  }
2300
2313
  }
2301
- function V(e, n, t) {
2314
+ function X(e, n, t) {
2302
2315
  if (!e)
2303
2316
  throw new Error("Expected name");
2304
2317
  if (typeof (n = n || {}) == "function" && (t = n, n = {}), !t)
2305
2318
  throw new Error("Expected handler");
2306
2319
  var r = function o(i, a) {
2307
- var c = i.name, u = i.win, s = i.domain, p = U("requestListeners");
2320
+ var c = i.name, u = i.win, s = i.domain, v = U("requestListeners");
2308
2321
  if (!c || typeof c != "string")
2309
2322
  throw new Error("Name required to add request listener");
2310
- if (u && u !== "*" && q.isProxyWindow(u)) {
2311
- var h = u.awaitWindow().then(function(A) {
2323
+ if (u && u !== "*" && _.isProxyWindow(u)) {
2324
+ var l = u.awaitWindow().then(function(D) {
2312
2325
  return o({
2313
2326
  name: c,
2314
- win: A,
2327
+ win: D,
2315
2328
  domain: s
2316
2329
  }, a);
2317
2330
  });
2318
2331
  return {
2319
2332
  cancel: function() {
2320
- h.then(function(A) {
2321
- return A.cancel();
2333
+ l.then(function(D) {
2334
+ return D.cancel();
2322
2335
  }, te);
2323
2336
  }
2324
2337
  };
2325
2338
  }
2326
- var m = u;
2327
- if (Array.isArray(m)) {
2328
- for (var w = [], S = 0, x = m; S < x.length; S++)
2339
+ var h = u;
2340
+ if (Array.isArray(h)) {
2341
+ for (var w = [], b = 0, x = h; b < x.length; b++)
2329
2342
  w.push(o({
2330
2343
  name: c,
2331
2344
  domain: s,
2332
- win: x[S]
2345
+ win: x[b]
2333
2346
  }, a));
2334
2347
  return {
2335
2348
  cancel: function() {
2336
- for (var A = 0; A < w.length; A++)
2337
- w[A].cancel();
2349
+ for (var D = 0; D < w.length; D++)
2350
+ w[D].cancel();
2338
2351
  }
2339
2352
  };
2340
2353
  }
2341
2354
  if (Array.isArray(s)) {
2342
- for (var b = [], P = 0, N = s; P < N.length; P++)
2343
- b.push(o({
2355
+ for (var S = [], P = 0, z = s; P < z.length; P++)
2356
+ S.push(o({
2344
2357
  name: c,
2345
- win: m,
2346
- domain: N[P]
2358
+ win: h,
2359
+ domain: z[P]
2347
2360
  }, a));
2348
2361
  return {
2349
2362
  cancel: function() {
2350
- for (var A = 0; A < b.length; A++)
2351
- b[A].cancel();
2363
+ for (var D = 0; D < S.length; D++)
2364
+ S[D].cancel();
2352
2365
  }
2353
2366
  };
2354
2367
  }
2355
2368
  var R = pt({
2356
2369
  name: c,
2357
- win: m,
2370
+ win: h,
2358
2371
  domain: s
2359
2372
  });
2360
- m && m !== "*" || (m = xe());
2373
+ h && h !== "*" || (h = xe());
2361
2374
  var T = (s = s || "*").toString();
2362
2375
  if (R)
2363
- throw m && s ? new Error("Request listener already exists for " + c + " on domain " + s.toString() + " for " + (m === xe() ? "wildcard" : "specified") + " window") : m ? new Error("Request listener already exists for " + c + " for " + (m === 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);
2364
- var j = p.getOrSet(m, function() {
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() {
2365
2378
  return {};
2366
- }), W = fe(j, c, function() {
2379
+ }), W = fe(M, c, function() {
2367
2380
  return {};
2368
- }), O, $;
2369
- return Pe(s) ? (O = fe(W, "__domain_regex__", function() {
2381
+ }), A, B;
2382
+ return Pe(s) ? (A = fe(W, "__domain_regex__", function() {
2370
2383
  return [];
2371
- })).push($ = {
2384
+ })).push(B = {
2372
2385
  regex: s,
2373
2386
  listener: a
2374
2387
  }) : W[T] = a, {
2375
2388
  cancel: function() {
2376
- delete W[T], $ && (O.splice(O.indexOf($, 1)), O.length || delete W.__domain_regex__), Object.keys(W).length || delete j[c], m && !Object.keys(j).length && p.del(m);
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);
2377
2390
  }
2378
2391
  };
2379
2392
  }({
@@ -2392,164 +2405,164 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2392
2405
  }
2393
2406
  };
2394
2407
  }
2395
- function _t(e, n, t) {
2408
+ function $t(e, n, t) {
2396
2409
  typeof (n = n || {}) == "function" && (t = n, n = {});
2397
2410
  var r = new C(), o;
2398
2411
  return n.errorHandler = function(i) {
2399
2412
  o.cancel(), r.reject(i);
2400
- }, o = V(e, n, function(i) {
2413
+ }, o = X(e, n, function(i) {
2401
2414
  if (o.cancel(), r.resolve(i), t)
2402
2415
  return t(i);
2403
2416
  }), r.cancel = o.cancel, r;
2404
2417
  }
2405
- var X = function e(n, t, r, o) {
2418
+ var K = function e(n, t, r, o) {
2406
2419
  var i = (o = o || {}).domain || "*", a = o.timeout || -1, c = o.timeout || 5e3, u = o.fireAndForget || !1;
2407
- return q.toProxyWindow(n, {
2420
+ return _.toProxyWindow(n, {
2408
2421
  send: e
2409
2422
  }).awaitWindow().then(function(s) {
2410
2423
  return C.try(function() {
2411
- if (function(p, h, m) {
2412
- if (!p)
2424
+ if (function(v, l, h) {
2425
+ if (!v)
2413
2426
  throw new Error("Expected name");
2414
- if (m && typeof m != "string" && !Array.isArray(m) && !Pe(m))
2415
- throw new TypeError("Can not send " + p + ". Expected domain " + JSON.stringify(m) + " to be a string, array, or regex");
2416
- if (G(h))
2417
- throw new Error("Can not send " + p + ". Target window is closed");
2418
- }(t, s, i), function(p, h) {
2419
- var m = Be(h);
2420
- if (m)
2421
- return m === p;
2422
- if (h === p || function(x) {
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))
2430
+ 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) {
2423
2436
  x === void 0 && (x = window);
2424
2437
  try {
2425
2438
  if (x.top)
2426
2439
  return x.top;
2427
2440
  } catch (R) {
2428
2441
  }
2429
- if (B(x) === x)
2442
+ if (q(x) === x)
2430
2443
  return x;
2431
2444
  try {
2432
- if (Fe(window, x) && window.top)
2445
+ if (He(window, x) && window.top)
2433
2446
  return window.top;
2434
2447
  } catch (R) {
2435
2448
  }
2436
2449
  try {
2437
- if (Fe(x, window) && window.top)
2450
+ if (He(x, window) && window.top)
2438
2451
  return window.top;
2439
2452
  } catch (R) {
2440
2453
  }
2441
- for (var b = 0, P = function R(T) {
2442
- for (var j = [], W = 0, O = qe(T); W < O.length; W++) {
2443
- var $ = O[W];
2444
- j.push($);
2445
- for (var A = 0, he = R($); A < he.length; A++)
2446
- j.push(he[A]);
2454
+ 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]);
2447
2460
  }
2448
- return j;
2449
- }(x); b < P.length; b++) {
2450
- var N = P[b];
2461
+ return M;
2462
+ }(x); S < P.length; S++) {
2463
+ var z = P[S];
2451
2464
  try {
2452
- if (N.top)
2453
- return N.top;
2465
+ if (z.top)
2466
+ return z.top;
2454
2467
  } catch (R) {
2455
2468
  }
2456
- if (B(N) === N)
2457
- return N;
2469
+ if (q(z) === z)
2470
+ return z;
2458
2471
  }
2459
- }(h) === h)
2472
+ }(l) === l)
2460
2473
  return !1;
2461
- for (var w = 0, S = qe(p); w < S.length; w++)
2462
- if (S[w] === h)
2474
+ for (var w = 0, b = _e(v); w < b.length; w++)
2475
+ if (b[w] === l)
2463
2476
  return !0;
2464
2477
  return !1;
2465
2478
  }(window, s))
2466
- return function(p, h, m) {
2467
- h === void 0 && (h = 5e3), m === void 0 && (m = "Window");
2468
- var w = function(S) {
2469
- return U("helloPromises").getOrSet(S, function() {
2479
+ return function(v, l, h) {
2480
+ l === void 0 && (l = 5e3), h === void 0 && (h = "Window");
2481
+ var w = function(b) {
2482
+ return U("helloPromises").getOrSet(b, function() {
2470
2483
  return new C();
2471
2484
  });
2472
- }(p);
2473
- return h !== -1 && (w = w.timeout(h, new Error(m + " did not load after " + h + "ms"))), w;
2485
+ }(v);
2486
+ return l !== -1 && (w = w.timeout(l, new Error(h + " did not load after " + l + "ms"))), w;
2474
2487
  }(s, c);
2475
- }).then(function(p) {
2476
- return function(h, m, w, S) {
2477
- var x = S.send;
2488
+ }).then(function(v) {
2489
+ return function(l, h, w, b) {
2490
+ var x = b.send;
2478
2491
  return C.try(function() {
2479
- return typeof m == "string" ? m : C.try(function() {
2480
- return w || Te(h, {
2492
+ return typeof h == "string" ? h : C.try(function() {
2493
+ return w || Te(l, {
2481
2494
  send: x
2482
- }).then(function(b) {
2483
- return b.domain;
2495
+ }).then(function(S) {
2496
+ return S.domain;
2484
2497
  });
2485
- }).then(function(b) {
2486
- if (!re(m, m))
2487
- throw new Error("Domain " + Ve(m) + " does not match " + Ve(m));
2488
- return b;
2498
+ }).then(function(S) {
2499
+ if (!re(h, h))
2500
+ throw new Error("Domain " + Xe(h) + " does not match " + Xe(h));
2501
+ return S;
2489
2502
  });
2490
2503
  });
2491
- }(s, i, (p === void 0 ? {} : p).domain, {
2504
+ }(s, i, (v === void 0 ? {} : v).domain, {
2492
2505
  send: e
2493
2506
  });
2494
- }).then(function(p) {
2495
- var h = p, m = t === "postrobot_method" && r && typeof r.name == "string" ? r.name + "()" : t, w = new C(), S = t + "_" + Y();
2507
+ }).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();
2496
2509
  if (!u) {
2497
2510
  var x = {
2498
2511
  name: t,
2499
2512
  win: s,
2500
- domain: h,
2513
+ domain: l,
2501
2514
  promise: w
2502
2515
  };
2503
- (function(W, O) {
2504
- z("responseListeners").set(W, O);
2505
- })(S, x);
2506
- var b = U("requestPromises").getOrSet(s, function() {
2516
+ (function(W, A) {
2517
+ L("responseListeners").set(W, A);
2518
+ })(b, x);
2519
+ var S = U("requestPromises").getOrSet(s, function() {
2507
2520
  return [];
2508
2521
  });
2509
- b.push(w), w.catch(function() {
2522
+ S.push(w), w.catch(function() {
2510
2523
  (function(W) {
2511
- z("erroredResponseListeners").set(W, !0);
2512
- })(S), ht(S);
2524
+ L("erroredResponseListeners").set(W, !0);
2525
+ })(b), ht(b);
2513
2526
  });
2514
2527
  var P = function(W) {
2515
2528
  return U("knownWindows").get(W, !1);
2516
- }(s) ? 1e4 : 2e3, N = a, R = P, T = N, j = function(W, O) {
2517
- var $;
2518
- return function A() {
2519
- $ = setTimeout(function() {
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() {
2520
2533
  (function() {
2521
2534
  if (G(s))
2522
2535
  return w.reject(new Error("Window closed for " + t + " before " + (x.ack ? "response" : "ack")));
2523
2536
  if (x.cancelled)
2524
2537
  return w.reject(new Error("Response listener was cancelled for " + t));
2525
- 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 " + m + " in " + k() + " in " + N + "ms")) : w.reject(new Error("No ack for postMessage " + m + " in " + k() + " in " + P + "ms"));
2526
- })(), A();
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();
2527
2540
  }, 500);
2528
2541
  }(), {
2529
2542
  cancel: function() {
2530
- clearTimeout($);
2543
+ clearTimeout(B);
2531
2544
  }
2532
2545
  };
2533
2546
  }();
2534
2547
  w.finally(function() {
2535
- j.cancel(), b.splice(b.indexOf(w, 1));
2548
+ M.cancel(), S.splice(S.indexOf(w, 1));
2536
2549
  }).catch(te);
2537
2550
  }
2538
- return Ne(s, h, {
2551
+ return Ne(s, l, {
2539
2552
  id: Y(),
2540
2553
  origin: k(window),
2541
2554
  type: "postrobot_message_request",
2542
- hash: S,
2555
+ hash: b,
2543
2556
  name: t,
2544
2557
  data: r,
2545
2558
  fireAndForget: u
2546
2559
  }, {
2547
- on: V,
2560
+ on: X,
2548
2561
  send: e
2549
2562
  }).then(function() {
2550
2563
  return u ? w.resolve() : w;
2551
2564
  }, function(W) {
2552
- throw new Error("Send request message failed for " + m + " in " + k() + `
2565
+ throw new Error("Send request message failed for " + h + " in " + k() + `
2553
2566
 
2554
2567
  ` + de(W));
2555
2568
  });
@@ -2558,31 +2571,31 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2558
2571
  };
2559
2572
  function Jt(e, n, t) {
2560
2573
  return dt(e, n, t, {
2561
- on: V,
2562
- send: X
2574
+ on: X,
2575
+ send: K
2563
2576
  });
2564
2577
  }
2565
2578
  function Yt(e, n, t) {
2566
2579
  return ft(e, n, t, {
2567
- on: V,
2568
- send: X
2580
+ on: X,
2581
+ send: K
2569
2582
  });
2570
2583
  }
2571
- function Zt(e) {
2572
- return new q({
2573
- send: X,
2584
+ function Vt(e) {
2585
+ return new _({
2586
+ send: K,
2574
2587
  win: e
2575
2588
  });
2576
2589
  }
2577
- function Kt(e) {
2578
- return q.toProxyWindow(e, {
2579
- send: X
2590
+ function Zt(e) {
2591
+ return _.toProxyWindow(e, {
2592
+ send: K
2580
2593
  });
2581
2594
  }
2582
2595
  function wt() {
2583
2596
  le().initialized || (le().initialized = !0, n = (e = {
2584
- on: V,
2585
- send: X
2597
+ on: X,
2598
+ send: K
2586
2599
  }).on, t = e.send, (r = le()).receiveMessage = r.receiveMessage || function(o) {
2587
2600
  return vt(o, {
2588
2601
  on: n,
@@ -2590,7 +2603,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2590
2603
  });
2591
2604
  }, function(o) {
2592
2605
  var i = o.on, a = o.send;
2593
- z().getOrSet("postMessageListener", function() {
2606
+ L().getOrSet("postMessageListener", function() {
2594
2607
  return function(c, u, s) {
2595
2608
  return c.addEventListener("message", s), {
2596
2609
  cancel: function() {
@@ -2599,19 +2612,19 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2599
2612
  };
2600
2613
  }(window, 0, function(c) {
2601
2614
  (function(u, s) {
2602
- var p = s.on, h = s.send;
2615
+ var v = s.on, l = s.send;
2603
2616
  C.try(function() {
2604
- var m = u.source || u.sourceElement, w = u.origin || u.originalEvent && u.originalEvent.origin, S = u.data;
2605
- if (w === "null" && (w = "file://"), m) {
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) {
2606
2619
  if (!w)
2607
2620
  throw new Error("Post message did not have origin domain");
2608
2621
  vt({
2609
- source: m,
2622
+ source: h,
2610
2623
  origin: w,
2611
- data: S
2624
+ data: b
2612
2625
  }, {
2613
- on: p,
2614
- send: h
2626
+ on: v,
2627
+ send: l
2615
2628
  });
2616
2629
  }
2617
2630
  });
@@ -2622,11 +2635,11 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2622
2635
  });
2623
2636
  });
2624
2637
  }({
2625
- on: V,
2626
- send: X
2638
+ on: X,
2639
+ send: K
2627
2640
  }), function(o) {
2628
2641
  var i = o.on, a = o.send;
2629
- z("builtinListeners").getOrSet("helloListener", function() {
2642
+ L("builtinListeners").getOrSet("helloListener", function() {
2630
2643
  var c = i("postrobot_hello", {
2631
2644
  domain: "*"
2632
2645
  }, function(s) {
@@ -2635,29 +2648,29 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2635
2648
  }), {
2636
2649
  instanceID: nt()
2637
2650
  };
2638
- }), u = Be();
2651
+ }), u = qe();
2639
2652
  return u && Te(u, {
2640
2653
  send: a
2641
2654
  }).catch(function(s) {
2642
2655
  }), c;
2643
2656
  });
2644
2657
  }({
2645
- on: V,
2646
- send: X
2658
+ on: X,
2659
+ send: K
2647
2660
  }));
2648
2661
  var e, n, t, r;
2649
2662
  }
2650
- function Vt() {
2663
+ function Xt() {
2651
2664
  (function() {
2652
- for (var n = z("responseListeners"), t = 0, r = n.keys(); t < r.length; t++) {
2665
+ for (var n = L("responseListeners"), t = 0, r = n.keys(); t < r.length; t++) {
2653
2666
  var o = r[t], i = n.get(o);
2654
2667
  i && (i.cancelled = !0), n.del(o);
2655
2668
  }
2656
- })(), (e = z().get("postMessageListener")) && e.cancel();
2669
+ })(), (e = L().get("postMessageListener")) && e.cancel();
2657
2670
  var e;
2658
2671
  delete window.__post_robot_10_0_46__;
2659
2672
  }
2660
- var Xt = !0;
2673
+ var Kt = !0;
2661
2674
  function Qt(e) {
2662
2675
  for (var n = 0, t = U("requestPromises").get(e, []); n < t.length; n++)
2663
2676
  t[n].reject(new Error("Window " + (G(e) ? "closed" : "cleaned up") + " before response")).catch(te);
@@ -2666,20 +2679,20 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2666
2679
  }]);
2667
2680
  });
2668
2681
  })(Rt);
2669
- var Un = Rt.exports;
2682
+ var _n = Rt.exports;
2670
2683
  (function(f) {
2671
- f.exports = Un, f.exports.default = f.exports;
2684
+ f.exports = _n, f.exports.default = f.exports;
2672
2685
  })(Tt);
2673
- var Ot = Tt.exports;
2674
- const Hn = /* @__PURE__ */ kn(Ot), He = /* @__PURE__ */ an({
2686
+ var At = Tt.exports;
2687
+ const qn = /* @__PURE__ */ Hn(At), Fe = /* @__PURE__ */ an({
2675
2688
  __proto__: null,
2676
- default: Hn
2677
- }, [Ot]);
2689
+ default: qn
2690
+ }, [At]);
2678
2691
  export {
2679
2692
  Ct as ConsentBox,
2680
- qn as PrivacyCenterBox,
2681
- Bn as SoyioTypes,
2682
- Gn as SoyioWidget,
2693
+ Bn as PrivacyCenterBox,
2694
+ $n as SoyioTypes,
2695
+ Jn as SoyioWidget,
2683
2696
  sn as _TooltipManager,
2684
- Gn as default
2697
+ Jn as default
2685
2698
  };