@soyio/soyio-widget 2.10.0 → 2.10.2

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, h) => d in f ? en(f, d, { enumerable: !0, configurable: !0, writable: !0, value: h }) : f[d] = h;
5
+ var O = (f, d, h) => (rn(f, typeof d != "symbol" ? d + "" : d, h), h), on = (f, d, h) => {
6
6
  if (!d.has(f))
7
- throw TypeError("Cannot " + l);
7
+ throw TypeError("Cannot " + h);
8
8
  };
9
- var gt = (f, d, l) => {
9
+ var vt = (f, d, h) => {
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, h);
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 wt = (f, d, h) => (on(f, d, "access private method"), h), gt = (f, d, h) => nn(tn(f), h, d);
15
+ var $ = (f, d, h) => new Promise((p, g) => {
16
+ var y = (N) => {
17
17
  try {
18
- I(l.next(D));
19
- } catch (M) {
20
- g(M);
18
+ I(h.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(h.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((h = h.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 h = 0; h < d.length; h++) {
33
+ const p = d[h];
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 h = document.createElement("div");
75
+ h.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(h), 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, h, p) {
90
+ !this.tooltipElement || !this.tooltipContent || (this.hideTimeout && (clearTimeout(this.hideTimeout), this.hideTimeout = null), this.tooltipContent.textContent = d, this.tooltipElement.style.left = `${h}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 bt = "https://app.soyio.id", It = "https://sandbox.soyio.id", un = "https://privacy.soyio.id", cn = "https://privacy-sandbox.soyio.id", dn = [
101
+ "DISCLOSURE_REQUEST_SUCCESSFUL",
102
+ "IDENTITY_REGISTERED",
103
+ "IDENTITY_SIGNATURE",
104
+ "UNEXPECTED_ERROR",
105
+ "DENIED_CAMERA_PERMISSION",
106
+ "REJECTED_SIGNATURE"
107
+ ], fn = "WIDGET_CLOSED", ln = 420, hn = 720, mn = 500, pn = {
108
+ minWidth: "375px",
109
+ maxWidth: "50rem"
110
+ }, vn = {
111
+ minWidth: "375px",
112
+ maxWidth: "36rem"
113
+ }, wn = {
114
+ minWidth: "375px",
115
+ maxWidth: "50rem"
116
+ };
117
+ function gn(f, d, h) {
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(() => ke);
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: h });
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 yn = "IFRAME_READY", En = "IFRAME_HEIGHT_CHANGE", xn = "TOOLTIP_STATE_CHANGE", Sn = "CONSENT_STATE_CHANGE", Y = {
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 yt, Et, xt, St;
138
+ function bn() {
139
+ return $(this, null, function* () {
140
+ const f = yield Promise.resolve().then(() => ke);
141
+ yt || Et || xt || St || (yt = f.on(En, (d) => $(this, null, function* () {
142
+ const h = d.data, p = Y.onHeightChange[h.identifier];
143
+ p && p(h.height);
144
+ })), Et = f.on(yn, (d) => $(this, null, function* () {
145
+ const h = d.data, p = Y.onIframeReady[h.identifier];
146
+ p && p();
147
+ })), xt = f.on(xn, (d) => $(this, null, function* () {
148
+ const h = d.data, p = Y.onTooltipChange[h.identifier];
149
+ p && p(h);
150
+ })), St = f.on(Sn, (d) => $(this, null, function* () {
151
+ const h = d.data, p = Y.onStateChange[h.identifier];
152
+ p && p(h);
136
153
  })));
137
154
  });
138
155
  }
139
- function It(f, d) {
156
+ function Wt(f, d) {
140
157
  const {
141
- onHeightChange: l,
142
- onIframeReady: v,
158
+ onHeightChange: h,
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
+ h && (Y.onHeightChange[f] = h), p && (Y.onIframeReady[f] = p), g && (Y.onTooltipChange[f] = g), y && (Y.onStateChange[f] = y);
147
164
  }
148
- function mn(f) {
149
- delete J.onHeightChange[f], delete J.onIframeReady[f], delete J.onTooltipChange[f], delete J.onStateChange[f];
165
+ function In(f) {
166
+ delete Y.onHeightChange[f], delete Y.onIframeReady[f], delete Y.onTooltipChange[f], delete Y.onStateChange[f];
150
167
  }
151
- function pn(f) {
168
+ function Wn(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 Cn(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 h = d;
179
+ return h.style.position = "relative", h.style.cssText += `
163
180
  padding: 0 !important;
164
181
  margin: 0 !important;
165
182
  display: flex !important;
@@ -168,90 +185,86 @@ function vn(f) {
168
185
  border: none !important;
169
186
  transition: height 0.35s !important;
170
187
  opacity: 1 !important;
171
- `, l;
188
+ `, h;
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 Pn(f, d, h) {
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: ${h.minWidth} !important;
195
+ max-width: ${h.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 Tn() {
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", pn);
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 Tn();
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: h } = this.iframe;
231
+ h && (h.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(), gn(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 h = this.iframe.getBoundingClientRect(), { text: p, coordinates: g, isVisible: y } = d, E = g.x + h.left, I = g.y + h.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 bn();
232
245
  const d = {
233
246
  onHeightChange: this.handleHeightChange.bind(this),
234
247
  onIframeReady: this.handleIframeReady.bind(this),
235
248
  onTooltipChange: this.handleTooltipChange.bind(this)
236
249
  };
237
- It(this.uniqueIdentifier, d);
250
+ Wt(this.uniqueIdentifier, d);
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(), Wn(this.iframeIdentifier);
256
+ const h = Cn(d), p = this.iframeUrl();
257
+ return this.iframe = Pn(p, this.iframeIdentifier, this.defaultIframeCSSConfig), this.Skeleton && (this.skeleton = new this.Skeleton(this.uniqueIdentifier), this.skeleton.mount(h)), h.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
+ In(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 Rn {
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 h = document.createElement("div");
287
+ h.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 X = document.createElement("style");
374
+ X.id = "skeleton-animation", X.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(X);
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), h.appendChild(p), h.appendChild(I), this.element.appendChild(h);
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 An(f) {
390
395
  var E;
391
396
  const d = [
392
397
  "actionToken",
@@ -394,39 +399,41 @@ 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
+ ], h = (E = f.isSandbox) != null ? E : !1, p = f.developmentUrl || (h ? It : bt), 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(h) {
411
+ super(h);
412
+ O(this, "defaultIframePrefix", "consent-box");
413
+ O(this, "defaultIframeCSSConfig", vn);
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 = Rn;
412
419
  }
413
420
  get uniqueIdentifier() {
414
421
  return this.options.consentTemplateId;
415
422
  }
416
423
  iframeUrl() {
417
- return In(this.options);
424
+ return An(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(h) {
427
+ const { isSelected: p, actionToken: g } = h;
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* () {
429
- yield Et(Ct.prototype, this, "setupListeners").call(this), It(this.uniqueIdentifier, {
435
+ return $(this, null, function* () {
436
+ yield gt(Ct.prototype, this, "setupListeners").call(this), Wt(this.uniqueIdentifier, {
430
437
  onStateChange: this.handleStateChange.bind(this)
431
438
  });
432
439
  });
@@ -435,109 +442,123 @@ 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 On(f) {
446
+ var E;
447
+ const d = [
448
+ "subjectId",
449
+ "companyId"
450
+ ], h = (E = f.isSandbox) != null ? E : !1, p = f.developmentUrl || (h ? cn : un), g = new URLSearchParams();
451
+ d.forEach((I) => {
452
+ f[I] && g.set(I, f[I]);
453
+ });
454
+ const y = g.toString();
455
+ return `${p}/${y ? `?${y}` : ""}`;
441
456
  }
442
- class qn extends Se {
443
- constructor(d) {
444
- super(d), this.defaultIframePrefix = "privacy-center";
457
+ class Yn extends be {
458
+ constructor() {
459
+ super(...arguments);
460
+ O(this, "defaultIframePrefix", "privacy-center");
461
+ O(this, "_uniqueIdentifier", "privacy-center");
462
+ O(this, "defaultIframeCSSConfig", wn);
463
+ }
464
+ get uniqueIdentifier() {
465
+ return this._uniqueIdentifier;
445
466
  }
446
467
  iframeUrl() {
447
- return Cn(this.options);
468
+ return On(this.options);
448
469
  }
449
470
  }
450
- const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
471
+ const Jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
451
472
  __proto__: null
452
473
  }, Symbol.toStringTag, { value: "Module" }));
453
- function Pn(f) {
474
+ function Dn(f) {
454
475
  let d = "widget/";
455
476
  return "disclosureRequestId" in f.configProps ? d += ["disclosures", f.configProps.disclosureRequestId].join("/") : d += f.request, d;
456
477
  }
457
- function Tn(f) {
478
+ function Nn(f) {
458
479
  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}`;
480
+ const d = (y = f.isSandbox) != null ? y : !1, h = f.developmentUrl || (d ? It : bt), p = Object.entries(f.configProps).filter(([E, I]) => I || E === "disclosureRequestId").map(([E, I]) => `${E}=${encodeURIComponent(I)}`).join("&"), g = Dn(f);
481
+ return `${h}/${g}?sdk=web&${p}`;
461
482
  }
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();
483
+ const Ln = !!(typeof window != "undefined" && window.document && window.document.createElement);
484
+ let V = null, ze = null;
485
+ function Me(f = null) {
486
+ V && !V.closed && V.focus(), f == null || f.preventDefault();
466
487
  }
467
- function Ue() {
468
- document.body.style.filter = "", document.body.removeEventListener("click", Le);
488
+ function je() {
489
+ document.body.style.filter = "", document.body.removeEventListener("click", Me);
469
490
  }
470
- function On() {
471
- je = setInterval(() => {
472
- (!Z || Z.closed) && (je && clearInterval(je), Ue());
473
- }, Wn);
491
+ function zn() {
492
+ ze = setInterval(() => {
493
+ (!V || V.closed) && (ze && clearInterval(ze), je());
494
+ }, mn);
474
495
  }
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(
496
+ function Mn(f) {
497
+ const d = Nn(f), h = ln, p = hn, 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 - h) / 2 / N + g, q = (I - p) / 2 / N + y;
498
+ document.body.style.filter = "blur(5px)", document.body.addEventListener("click", Me), V = window.open(
478
499
  d,
479
500
  "Soyio",
480
501
  `scrollbars=yes,
481
- width=${l},
482
- height=${v},
483
- top=${B},
484
- left=${M}`
485
- ), Le(), On();
502
+ width=${h},
503
+ height=${p},
504
+ top=${q},
505
+ left=${j}`
506
+ ), Me(), zn();
486
507
  }
487
- function Dn() {
488
- Z && (Z.close(), Z = null), Ue();
508
+ function jn() {
509
+ V && (V.close(), V = null), je();
489
510
  }
490
- const Nn = "WIDGET_EVENT";
511
+ const kn = "WIDGET_EVENT";
491
512
  let me = null;
492
- function zn() {
513
+ function Un() {
493
514
  me && (me.cancel(), me = null);
494
515
  }
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();
516
+ function Fn(f) {
517
+ return $(this, null, function* () {
518
+ const { onEvent: d } = f, h = yield Promise.resolve().then(() => ke);
519
+ me && Un(), me = h.on(kn, (p) => $(this, null, function* () {
520
+ d(p.data), dn.includes(p.data.eventName) ? jn() : p.data.eventName === fn && je();
500
521
  }));
501
522
  });
502
523
  }
503
- function Ln(f) {
504
- jn(f);
524
+ function Hn(f) {
525
+ Fn(f);
505
526
  }
506
- var be, Pt;
507
- class Gn {
527
+ var Se, Pt;
528
+ class Vn {
508
529
  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)
530
+ vt(this, Se);
531
+ O(this, "onEvent");
532
+ this.onEvent = d.onEvent, Ln && (Mn(d), Hn({
533
+ onEvent: wt(this, Se, Pt).bind(this)
513
534
  }));
514
535
  }
515
536
  }
516
- be = new WeakSet(), Pt = function(d) {
537
+ Se = new WeakSet(), Pt = function(d) {
517
538
  this.onEvent(d);
518
539
  };
519
- var Mn = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
520
- function kn(f) {
540
+ var _n = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
541
+ function qn(f) {
521
542
  return f && f.__esModule && Object.prototype.hasOwnProperty.call(f, "default") ? f.default : f;
522
543
  }
523
544
  var Tt = { exports: {} }, Rt = { exports: {} };
524
545
  (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 = {};
546
+ (function(h, p) {
547
+ f.exports = p();
548
+ })(typeof self != "undefined" ? self : _n, function() {
549
+ return function(h) {
550
+ var p = {};
530
551
  function g(y) {
531
- if (v[y])
532
- return v[y].exports;
533
- var E = v[y] = {
552
+ if (p[y])
553
+ return p[y].exports;
554
+ var E = p[y] = {
534
555
  i: y,
535
556
  l: !1,
536
557
  exports: {}
537
558
  };
538
- return l[y].call(E.exports, E, E.exports, g), E.l = !0, E.exports;
559
+ return h[y].call(E.exports, E, E.exports, g), E.l = !0, E.exports;
539
560
  }
540
- return g.m = l, g.c = v, g.d = function(y, E, I) {
561
+ return g.m = h, g.c = p, g.d = function(y, E, I) {
541
562
  g.o(y, E) || Object.defineProperty(y, E, {
542
563
  enumerable: !0,
543
564
  get: I
@@ -556,10 +577,10 @@ var Tt = { exports: {} }, Rt = { exports: {} };
556
577
  enumerable: !0,
557
578
  value: y
558
579
  }), 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));
580
+ for (var N in y)
581
+ g.d(I, N, function(j) {
582
+ return y[j];
583
+ }.bind(null, N));
563
584
  return I;
564
585
  }, g.n = function(y) {
565
586
  var E = y && y.__esModule ? function() {
@@ -571,36 +592,36 @@ var Tt = { exports: {} }, Rt = { exports: {} };
571
592
  }, g.o = function(y, E) {
572
593
  return {}.hasOwnProperty.call(y, E);
573
594
  }, g.p = "", g(g.s = 0);
574
- }([function(l, v, g) {
575
- g.r(v), g.d(v, "Promise", function() {
595
+ }([function(h, p, g) {
596
+ g.r(p), g.d(p, "Promise", function() {
576
597
  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() {
582
- return wt;
583
- }), g.d(v, "destroy", function() {
584
- return Vt;
585
- }), g.d(v, "serializeMessage", function() {
586
- return Jt;
587
- }), g.d(v, "deserializeMessage", function() {
588
- return Yt;
589
- }), g.d(v, "createProxyWindow", function() {
590
- return Zt;
591
- }), g.d(v, "toProxyWindow", function() {
598
+ }), g.d(p, "TYPES", function() {
592
599
  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() {
598
- return X;
599
- }), g.d(v, "markWindowKnown", function() {
600
- return it;
601
- }), g.d(v, "cleanUpWindow", function() {
600
+ }), g.d(p, "ProxyWindow", function() {
601
+ return _;
602
+ }), g.d(p, "setup", function() {
603
+ return pt;
604
+ }), g.d(p, "destroy", function() {
605
+ return Zt;
606
+ }), g.d(p, "serializeMessage", function() {
607
+ return Yt;
608
+ }), g.d(p, "deserializeMessage", function() {
609
+ return Jt;
610
+ }), g.d(p, "createProxyWindow", function() {
611
+ return Vt;
612
+ }), g.d(p, "toProxyWindow", function() {
613
+ return Xt;
614
+ }), g.d(p, "on", function() {
615
+ return Z;
616
+ }), g.d(p, "once", function() {
617
+ return $t;
618
+ }), g.d(p, "send", function() {
619
+ return K;
620
+ }), g.d(p, "markWindowKnown", function() {
621
+ return rt;
622
+ }), g.d(p, "cleanUpWindow", function() {
602
623
  return Qt;
603
- }), g.d(v, "bridge", function() {
624
+ }), g.d(p, "bridge", function() {
604
625
  });
605
626
  function y(e) {
606
627
  return {}.toString.call(e) === "[object RegExp]";
@@ -610,7 +631,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
610
631
  function I(e) {
611
632
  return e === void 0 && (e = window), e.location.protocol;
612
633
  }
613
- function D(e) {
634
+ function N(e) {
614
635
  if (e === void 0 && (e = window), e.mockDomain) {
615
636
  var n = e.mockDomain.split("//")[0];
616
637
  if (n)
@@ -618,10 +639,10 @@ var Tt = { exports: {} }, Rt = { exports: {} };
618
639
  }
619
640
  return I(e);
620
641
  }
621
- function M(e) {
622
- return e === void 0 && (e = window), D(e) === "about:";
642
+ function j(e) {
643
+ return e === void 0 && (e = window), N(e) === "about:";
623
644
  }
624
- function B(e) {
645
+ function q(e) {
625
646
  if (e === void 0 && (e = window), e)
626
647
  try {
627
648
  if (e.parent && e.parent !== e)
@@ -630,13 +651,13 @@ var Tt = { exports: {} }, Rt = { exports: {} };
630
651
  }
631
652
  }
632
653
  function oe(e) {
633
- if (e === void 0 && (e = window), e && !B(e))
654
+ if (e === void 0 && (e = window), e && !q(e))
634
655
  try {
635
656
  return e.opener;
636
657
  } catch (n) {
637
658
  }
638
659
  }
639
- function K(e) {
660
+ function X(e) {
640
661
  try {
641
662
  return !0;
642
663
  } catch (n) {
@@ -654,8 +675,8 @@ var Tt = { exports: {} }, Rt = { exports: {} };
654
675
  if (t === "file:")
655
676
  return "file://";
656
677
  if (t === "about:") {
657
- var r = B(e);
658
- return r && K() ? pe(r) : "about://";
678
+ var r = q(e);
679
+ return r && X() ? pe(r) : "about://";
659
680
  }
660
681
  var o = n.host;
661
682
  if (!o)
@@ -681,14 +702,14 @@ var Tt = { exports: {} }, Rt = { exports: {} };
681
702
  } catch (r) {
682
703
  }
683
704
  try {
684
- if (M(n) && K())
705
+ if (j(n) && X())
685
706
  return !0;
686
707
  } catch (r) {
687
708
  }
688
709
  try {
689
710
  if (function(r) {
690
- return r === void 0 && (r = window), D(r) === "mock:";
691
- }(n) && K())
711
+ return r === void 0 && (r = window), N(r) === "mock:";
712
+ }(n) && X())
692
713
  return !0;
693
714
  } catch (r) {
694
715
  }
@@ -701,7 +722,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
701
722
  }(e))
702
723
  return !1;
703
724
  try {
704
- if (e === window || M(e) && K() || k(window) === k(e))
725
+ if (e === window || j(e) && X() || k(window) === k(e))
705
726
  return !0;
706
727
  } catch (n) {
707
728
  }
@@ -712,10 +733,10 @@ var Tt = { exports: {} }, Rt = { exports: {} };
712
733
  throw new Error("Expected window to be same domain");
713
734
  return e;
714
735
  }
715
- function Fe(e, n) {
736
+ function Ue(e, n) {
716
737
  if (!e || !n)
717
738
  return !1;
718
- var t = B(n);
739
+ var t = q(n);
719
740
  return t ? t === e : function(r) {
720
741
  var o = [];
721
742
  try {
@@ -726,7 +747,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
726
747
  return o;
727
748
  }(n).indexOf(e) !== -1;
728
749
  }
729
- function qe(e) {
750
+ function Fe(e) {
730
751
  var n = [], t;
731
752
  try {
732
753
  t = e.frames;
@@ -765,7 +786,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
765
786
  }
766
787
  return n;
767
788
  }
768
- var At = [], Dt = [];
789
+ var Ot = [], Dt = [];
769
790
  function G(e, n) {
770
791
  n === void 0 && (n = !0);
771
792
  try {
@@ -805,7 +826,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
805
826
  } catch (c) {
806
827
  }
807
828
  return -1;
808
- }(At, e);
829
+ }(Ot, e);
809
830
  if (t !== -1) {
810
831
  var r = Dt[t];
811
832
  if (r && function(o) {
@@ -824,8 +845,8 @@ var Tt = { exports: {} }, Rt = { exports: {} };
824
845
  }
825
846
  return !1;
826
847
  }
827
- function Be(e) {
828
- return e === void 0 && (e = window), oe(e = e || window) || B(e) || void 0;
848
+ function He(e) {
849
+ return e === void 0 && (e = window), oe(e = e || window) || q(e) || void 0;
829
850
  }
830
851
  function re(e, n) {
831
852
  if (typeof e == "string") {
@@ -894,7 +915,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
894
915
  }
895
916
  return !1;
896
917
  }
897
- function Ge(e) {
918
+ function _e(e) {
898
919
  if (Q(e))
899
920
  return ve(e).frameElement;
900
921
  for (var n = 0, t = document.querySelectorAll("iframe"); n < t.length; n++) {
@@ -905,9 +926,9 @@ var Tt = { exports: {} }, Rt = { exports: {} };
905
926
  }
906
927
  function Nt(e) {
907
928
  if (function(t) {
908
- return t === void 0 && (t = window), !!B(t);
929
+ return t === void 0 && (t = window), !!q(t);
909
930
  }(e)) {
910
- var n = Ge(e);
931
+ var n = _e(e);
911
932
  if (n && n.parentElement) {
912
933
  n.parentElement.removeChild(n);
913
934
  return;
@@ -939,25 +960,25 @@ var Tt = { exports: {} }, Rt = { exports: {} };
939
960
  }
940
961
  return !1;
941
962
  }
942
- var $e = [], ie = [], We = 0, ae;
943
- function _e() {
944
- if (!We && ae) {
963
+ var qe = [], ie = [], Ie = 0, ae;
964
+ function Ge() {
965
+ if (!Ie && ae) {
945
966
  var e = ae;
946
967
  ae = null, e.resolve();
947
968
  }
948
969
  }
949
- function Ie() {
950
- We += 1;
970
+ function We() {
971
+ Ie += 1;
951
972
  }
952
973
  function se() {
953
- We -= 1, _e();
974
+ Ie -= 1, Ge();
954
975
  }
955
976
  var C = function() {
956
977
  function e(t) {
957
978
  var r = this;
958
979
  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) {
959
980
  var o, i, a = !1, c = !1, u = !1;
960
- Ie();
981
+ We();
961
982
  try {
962
983
  t(function(s) {
963
984
  u ? r.resolve(s) : (a = !0, o = s);
@@ -990,8 +1011,8 @@ var Tt = { exports: {} }, Rt = { exports: {} };
990
1011
  }
991
1012
  return this.rejected = !0, this.error = t, this.errorHandled || setTimeout(function() {
992
1013
  r.errorHandled || function(i, a) {
993
- if ($e.indexOf(i) === -1) {
994
- $e.push(i), setTimeout(function() {
1014
+ if (qe.indexOf(i) === -1) {
1015
+ qe.push(i), setTimeout(function() {
995
1016
  throw i;
996
1017
  }, 1);
997
1018
  for (var c = 0; c < ie.length; c++)
@@ -1004,39 +1025,39 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1004
1025
  }, n.dispatch = function() {
1005
1026
  var t = this.resolved, r = this.rejected, o = this.handlers;
1006
1027
  if (!this.dispatching && (t || r)) {
1007
- this.dispatching = !0, Ie();
1008
- for (var i = function(w, S) {
1028
+ this.dispatching = !0, We();
1029
+ for (var i = function(w, b) {
1009
1030
  return w.then(function(x) {
1010
- S.resolve(x);
1031
+ b.resolve(x);
1011
1032
  }, function(x) {
1012
- S.reject(x);
1033
+ b.reject(x);
1013
1034
  });
1014
1035
  }, a = 0; a < o.length; a++) {
1015
- var c = o[a], u = c.onSuccess, s = c.onError, p = c.promise, h = void 0;
1036
+ var c = o[a], u = c.onSuccess, s = c.onError, v = c.promise, l = void 0;
1016
1037
  if (t)
1017
1038
  try {
1018
- h = u ? u(this.value) : this.value;
1039
+ l = u ? u(this.value) : this.value;
1019
1040
  } catch (w) {
1020
- p.reject(w);
1041
+ v.reject(w);
1021
1042
  continue;
1022
1043
  }
1023
1044
  else if (r) {
1024
1045
  if (!s) {
1025
- p.reject(this.error);
1046
+ v.reject(this.error);
1026
1047
  continue;
1027
1048
  }
1028
1049
  try {
1029
- h = s(this.error);
1050
+ l = s(this.error);
1030
1051
  } catch (w) {
1031
- p.reject(w);
1052
+ v.reject(w);
1032
1053
  continue;
1033
1054
  }
1034
1055
  }
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;
1056
+ if (l instanceof e && (l.resolved || l.rejected)) {
1057
+ var m = l;
1058
+ m.resolved ? v.resolve(m.value) : v.reject(m.error), m.errorHandled = !0;
1038
1059
  } 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);
1060
+ 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
1061
  }
1041
1062
  o.length = 0, this.dispatching = !1, se();
1042
1063
  }
@@ -1093,11 +1114,11 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1093
1114
  var r = new e(), o = t.length, i = [].slice();
1094
1115
  if (!o)
1095
1116
  return r.resolve(i), r;
1096
- for (var a = function(s, p, h) {
1097
- return p.then(function(m) {
1117
+ for (var a = function(s, v, l) {
1118
+ return v.then(function(m) {
1098
1119
  i[s] = m, (o -= 1) == 0 && r.resolve(i);
1099
1120
  }, function(m) {
1100
- h.reject(m);
1121
+ l.reject(m);
1101
1122
  });
1102
1123
  }, c = 0; c < t.length; c++) {
1103
1124
  var u = t[c];
@@ -1141,7 +1162,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1141
1162
  if (t && typeof t != "function" && !t.call)
1142
1163
  throw new Error("Promise.try expected a function");
1143
1164
  var i;
1144
- Ie();
1165
+ We();
1145
1166
  try {
1146
1167
  i = t.apply(r, o || []);
1147
1168
  } catch (a) {
@@ -1157,7 +1178,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1157
1178
  }, e.flush = function() {
1158
1179
  return function(t) {
1159
1180
  var r = ae = ae || new t();
1160
- return _e(), r;
1181
+ return Ge(), r;
1161
1182
  }(e);
1162
1183
  }, e;
1163
1184
  }();
@@ -1210,7 +1231,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1210
1231
  if (o)
1211
1232
  try {
1212
1233
  o.set(t, r);
1213
- } catch (p) {
1234
+ } catch (v) {
1214
1235
  delete this.weakmap;
1215
1236
  }
1216
1237
  if (this.isSafeToReadWrite(t))
@@ -1221,7 +1242,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1221
1242
  writable: !0
1222
1243
  });
1223
1244
  return;
1224
- } catch (p) {
1245
+ } catch (v) {
1225
1246
  }
1226
1247
  this._cleanupClosedWindows();
1227
1248
  var c = this.keys, u = this.values, s = ge(c, t);
@@ -1291,17 +1312,17 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1291
1312
  return this.set(t, o), o;
1292
1313
  }, e;
1293
1314
  }();
1294
- function Je(e) {
1315
+ function Be(e) {
1295
1316
  return e.name || e.__name__ || e.displayName || "anonymous";
1296
1317
  }
1297
- function Ye(e, n) {
1318
+ function $e(e, n) {
1298
1319
  try {
1299
1320
  delete e.name, e.name = n;
1300
1321
  } catch (t) {
1301
1322
  }
1302
1323
  return e.__name__ = e.displayName = n, e;
1303
1324
  }
1304
- function Y() {
1325
+ function J() {
1305
1326
  var e = "0123456789abcdef";
1306
1327
  return "uid_" + "xxxxxxxxxx".replace(/./g, function() {
1307
1328
  return e.charAt(Math.floor(Math.random() * e.length));
@@ -1316,62 +1337,62 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1316
1337
  }((/* @__PURE__ */ new Date()).toISOString().slice(11, 19).replace("T", ".")).replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
1317
1338
  }
1318
1339
  var ye;
1319
- function Ze(e) {
1340
+ function Ye(e) {
1320
1341
  try {
1321
1342
  return JSON.stringify([].slice.call(e), function(n, t) {
1322
1343
  return typeof t == "function" ? "memoize[" + function(r) {
1323
1344
  if (ye = ye || new Ce(), r == null || typeof r != "object" && typeof r != "function")
1324
1345
  throw new Error("Invalid object");
1325
1346
  var o = ye.get(r);
1326
- return o || (o = typeof r + ":" + Y(), ye.set(r, o)), o;
1347
+ return o || (o = typeof r + ":" + J(), ye.set(r, o)), o;
1327
1348
  }(t) + "]" : typeof window != "undefined" && t instanceof window.Element || t !== null && typeof t == "object" && t.nodeType === 1 && typeof t.style == "object" && typeof t.ownerDocument == "object" ? {} : t;
1328
1349
  });
1329
1350
  } catch (n) {
1330
1351
  throw new Error("Arguments not serializable -- can not be used to memoize");
1331
1352
  }
1332
1353
  }
1333
- function zt() {
1354
+ function Lt() {
1334
1355
  return {};
1335
1356
  }
1336
- var ue = 0, Ke = 0;
1357
+ var ue = 0, Je = 0;
1337
1358
  function ce(e, n) {
1338
1359
  n === void 0 && (n = {});
1339
1360
  var t = n.thisNamespace, r = t !== void 0 && t, o = n.time, i, a, c = ue;
1340
1361
  ue += 1;
1341
1362
  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);
1363
+ for (var s = arguments.length, v = new Array(s), l = 0; l < s; l++)
1364
+ v[l] = arguments[l];
1365
+ c < Je && (i = null, a = null, c = ue, ue += 1);
1345
1366
  var m;
1346
- m = r ? (a = a || new Ce()).getOrSet(this, zt) : i = i || {};
1367
+ m = r ? (a = a || new Ce()).getOrSet(this, Lt) : i = i || {};
1347
1368
  var w;
1348
1369
  try {
1349
- w = Ze(p);
1370
+ w = Ye(v);
1350
1371
  } catch (P) {
1351
1372
  return e.apply(this, arguments);
1352
1373
  }
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);
1374
+ var b = m[w];
1375
+ if (b && o && Date.now() - b.time < o && (delete m[w], b = null), b)
1376
+ return b.value;
1377
+ var x = Date.now(), S = e.apply(this, arguments);
1357
1378
  return m[w] = {
1358
1379
  time: x,
1359
- value: b
1360
- }, b;
1380
+ value: S
1381
+ }, S;
1361
1382
  };
1362
1383
  return u.reset = function() {
1363
1384
  i = null, a = null;
1364
- }, Ye(u, (n.name || Je(e)) + "::memoized");
1385
+ }, $e(u, (n.name || Be(e)) + "::memoized");
1365
1386
  }
1366
1387
  ce.clear = function() {
1367
- Ke = ue;
1388
+ Je = ue;
1368
1389
  };
1369
- function jt(e) {
1390
+ function zt(e) {
1370
1391
  var n = {};
1371
1392
  function t() {
1372
1393
  for (var r = arguments, o = this, i = arguments.length, a = new Array(i), c = 0; c < i; c++)
1373
1394
  a[c] = arguments[c];
1374
- var u = Ze(a);
1395
+ var u = Ye(a);
1375
1396
  return n.hasOwnProperty(u) || (n[u] = C.try(function() {
1376
1397
  return e.apply(o, r);
1377
1398
  }).finally(function() {
@@ -1380,7 +1401,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1380
1401
  }
1381
1402
  return t.reset = function() {
1382
1403
  n = {};
1383
- }, Ye(t, Je(e) + "::promiseMemoized");
1404
+ }, $e(t, Be(e) + "::promiseMemoized");
1384
1405
  }
1385
1406
  function te() {
1386
1407
  }
@@ -1433,23 +1454,23 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1433
1454
  throw new Error("Body element not found");
1434
1455
  return e;
1435
1456
  }
1436
- function Qe() {
1457
+ function Ze() {
1437
1458
  return !!document.body && document.readyState === "complete";
1438
1459
  }
1439
- function et() {
1460
+ function Ke() {
1440
1461
  return !!document.body && document.readyState === "interactive";
1441
1462
  }
1442
1463
  ce(function() {
1443
1464
  return new C(function(e) {
1444
- if (Qe() || et())
1465
+ if (Ze() || Ke())
1445
1466
  return e();
1446
1467
  var n = setInterval(function() {
1447
- if (Qe() || et())
1468
+ if (Ze() || Ke())
1448
1469
  return clearInterval(n), e();
1449
1470
  }, 10);
1450
1471
  });
1451
1472
  });
1452
- var Ee = typeof document != "undefined" ? document.currentScript : null, Lt = ce(function() {
1473
+ var Ee = typeof document != "undefined" ? document.currentScript : null, Mt = ce(function() {
1453
1474
  if (Ee || (Ee = function() {
1454
1475
  try {
1455
1476
  var e = function() {
@@ -1471,13 +1492,13 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1471
1492
  }()))
1472
1493
  return Ee;
1473
1494
  throw new Error("Can not determine current script");
1474
- }), Mt = Y();
1495
+ }), jt = J();
1475
1496
  ce(function() {
1476
1497
  var e;
1477
1498
  try {
1478
- e = Lt();
1499
+ e = Mt();
1479
1500
  } catch (r) {
1480
- return Mt;
1501
+ return jt;
1481
1502
  }
1482
1503
  var n = e.getAttribute("data-uid");
1483
1504
  if (n && typeof n == "string" || (n = e.getAttribute("data-uid-auto")) && typeof n == "string")
@@ -1495,7 +1516,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1495
1516
  }));
1496
1517
  n = "uid_" + t.slice(t.length - 30);
1497
1518
  } else
1498
- n = Y();
1519
+ n = J();
1499
1520
  return e.setAttribute("data-uid-auto", n), n;
1500
1521
  });
1501
1522
  function le(e) {
@@ -1503,11 +1524,11 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1503
1524
  var n = "__post_robot_10_0_46__";
1504
1525
  return e !== window ? e[n] : e[n] = e[n] || {};
1505
1526
  }
1506
- var tt = function() {
1527
+ var Qe = function() {
1507
1528
  return {};
1508
1529
  };
1509
1530
  function z(e, n) {
1510
- return e === void 0 && (e = "store"), n === void 0 && (n = tt), fe(le(), e, function() {
1531
+ return e === void 0 && (e = "store"), n === void 0 && (n = Qe), fe(le(), e, function() {
1511
1532
  var t = n();
1512
1533
  return {
1513
1534
  has: function(r) {
@@ -1541,7 +1562,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1541
1562
  return e.WINDOW_WILDCARD = e.WINDOW_WILDCARD || new kt(), e.WINDOW_WILDCARD;
1542
1563
  }
1543
1564
  function U(e, n) {
1544
- return e === void 0 && (e = "store"), n === void 0 && (n = tt), z("windowStore").getOrSet(e, function() {
1565
+ return e === void 0 && (e = "store"), n === void 0 && (n = Qe), z("windowStore").getOrSet(e, function() {
1545
1566
  var t = new Ce(), r = function(o) {
1546
1567
  return t.getOrSet(o, n);
1547
1568
  };
@@ -1565,10 +1586,10 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1565
1586
  };
1566
1587
  });
1567
1588
  }
1568
- function nt() {
1569
- return z("instance").getOrSet("instanceID", Y);
1589
+ function et() {
1590
+ return z("instance").getOrSet("instanceID", J);
1570
1591
  }
1571
- function rt(e, n) {
1592
+ function tt(e, n) {
1572
1593
  var t = n.domain, r = U("helloPromises"), o = r.get(e);
1573
1594
  o && o.resolve({
1574
1595
  domain: t
@@ -1580,13 +1601,13 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1580
1601
  }
1581
1602
  function Te(e, n) {
1582
1603
  return (0, n.send)(e, "postrobot_hello", {
1583
- instanceID: nt()
1604
+ instanceID: et()
1584
1605
  }, {
1585
1606
  domain: "*",
1586
1607
  timeout: -1
1587
1608
  }).then(function(t) {
1588
1609
  var r = t.origin, o = t.data.instanceID;
1589
- return rt(e, {
1610
+ return tt(e, {
1590
1611
  domain: r
1591
1612
  }), {
1592
1613
  win: e,
@@ -1595,7 +1616,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1595
1616
  };
1596
1617
  });
1597
1618
  }
1598
- function ot(e, n) {
1619
+ function nt(e, n) {
1599
1620
  var t = n.send;
1600
1621
  return U("windowInstanceIDPromises").getOrSet(e, function() {
1601
1622
  return Te(e, {
@@ -1605,13 +1626,13 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1605
1626
  });
1606
1627
  });
1607
1628
  }
1608
- function it(e) {
1629
+ function rt(e) {
1609
1630
  U("knownWindows").set(e, !0);
1610
1631
  }
1611
1632
  function Re(e) {
1612
1633
  return typeof e == "object" && e !== null && typeof e.__type__ == "string";
1613
1634
  }
1614
- function at(e) {
1635
+ function ot(e) {
1615
1636
  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;
1616
1637
  }
1617
1638
  function ne(e, n) {
@@ -1620,60 +1641,60 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1620
1641
  __val__: n
1621
1642
  };
1622
1643
  }
1623
- var H, Ut = ((H = {}).function = function() {
1624
- }, H.error = function(e) {
1644
+ var F, Ut = ((F = {}).function = function() {
1645
+ }, F.error = function(e) {
1625
1646
  return ne("error", {
1626
1647
  message: e.message,
1627
1648
  stack: e.stack,
1628
1649
  code: e.code,
1629
1650
  data: e.data
1630
1651
  });
1631
- }, H.promise = function() {
1632
- }, H.regex = function(e) {
1652
+ }, F.promise = function() {
1653
+ }, F.regex = function(e) {
1633
1654
  return ne("regex", e.source);
1634
- }, H.date = function(e) {
1655
+ }, F.date = function(e) {
1635
1656
  return ne("date", e.toJSON());
1636
- }, H.array = function(e) {
1657
+ }, F.array = function(e) {
1637
1658
  return e;
1638
- }, H.object = function(e) {
1659
+ }, F.object = function(e) {
1639
1660
  return e;
1640
- }, H.string = function(e) {
1661
+ }, F.string = function(e) {
1641
1662
  return e;
1642
- }, H.number = function(e) {
1663
+ }, F.number = function(e) {
1643
1664
  return e;
1644
- }, H.boolean = function(e) {
1665
+ }, F.boolean = function(e) {
1645
1666
  return e;
1646
- }, H.null = function(e) {
1667
+ }, F.null = function(e) {
1647
1668
  return e;
1648
- }, H[void 0] = function(e) {
1669
+ }, F[void 0] = function(e) {
1649
1670
  return ne("undefined", e);
1650
- }, H), Ht = {}, F, Ft = ((F = {}).function = function() {
1671
+ }, F), Ft = {}, H, Ht = ((H = {}).function = function() {
1651
1672
  throw new Error("Function serialization is not implemented; nothing to deserialize");
1652
- }, F.error = function(e) {
1673
+ }, H.error = function(e) {
1653
1674
  var n = e.stack, t = e.code, r = e.data, o = new Error(e.message);
1654
1675
  return o.code = t, r && (o.data = r), o.stack = n + `
1655
1676
 
1656
1677
  ` + o.stack, o;
1657
- }, F.promise = function() {
1678
+ }, H.promise = function() {
1658
1679
  throw new Error("Promise serialization is not implemented; nothing to deserialize");
1659
- }, F.regex = function(e) {
1680
+ }, H.regex = function(e) {
1660
1681
  return new RegExp(e);
1661
- }, F.date = function(e) {
1682
+ }, H.date = function(e) {
1662
1683
  return new Date(e);
1663
- }, F.array = function(e) {
1684
+ }, H.array = function(e) {
1664
1685
  return e;
1665
- }, F.object = function(e) {
1686
+ }, H.object = function(e) {
1666
1687
  return e;
1667
- }, F.string = function(e) {
1688
+ }, H.string = function(e) {
1668
1689
  return e;
1669
- }, F.number = function(e) {
1690
+ }, H.number = function(e) {
1670
1691
  return e;
1671
- }, F.boolean = function(e) {
1692
+ }, H.boolean = function(e) {
1672
1693
  return e;
1673
- }, F.null = function(e) {
1694
+ }, H.null = function(e) {
1674
1695
  return e;
1675
- }, F[void 0] = function() {
1676
- }, F), qt = {};
1696
+ }, H[void 0] = function() {
1697
+ }, H), _t = {};
1677
1698
  new C(function(e) {
1678
1699
  if (window.document && window.document.body)
1679
1700
  return e(window.document.body);
@@ -1682,14 +1703,14 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1682
1703
  return clearInterval(n), e(window.document.body);
1683
1704
  }, 10);
1684
1705
  });
1685
- function Oe() {
1706
+ function Ae() {
1686
1707
  for (var e = z("idToProxyWindow"), n = 0, t = e.keys(); n < t.length; n++) {
1687
1708
  var r = t[n];
1688
1709
  e.get(r).shouldClean() && e.del(r);
1689
1710
  }
1690
1711
  }
1691
- function st(e, n) {
1692
- var t = n.send, r = n.id, o = r === void 0 ? Y() : r, i = e.then(function(u) {
1712
+ function it(e, n) {
1713
+ var t = n.send, r = n.id, o = r === void 0 ? J() : r, i = e.then(function(u) {
1693
1714
  if (Q(u))
1694
1715
  return ve(u).name;
1695
1716
  }), a = e.then(function(u) {
@@ -1709,9 +1730,9 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1709
1730
  getType: function() {
1710
1731
  return a;
1711
1732
  },
1712
- getInstanceID: jt(function() {
1733
+ getInstanceID: zt(function() {
1713
1734
  return e.then(function(u) {
1714
- return ot(u, {
1735
+ return nt(u, {
1715
1736
  send: t
1716
1737
  });
1717
1738
  });
@@ -1731,58 +1752,58 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1731
1752
  });
1732
1753
  },
1733
1754
  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;
1755
+ return s === void 0 && (s = {}), e.then(function(v) {
1756
+ var l = window.location.protocol + "//" + window.location.host, m = s.method, w = m === void 0 ? "get" : m, b = s.body;
1736
1757
  if (u.indexOf("/") === 0)
1737
- u = "" + h + u;
1738
- else if (!u.match(/^https?:\/\//) && u.indexOf(h) !== 0)
1758
+ u = "" + l + u;
1759
+ else if (!u.match(/^https?:\/\//) && u.indexOf(l) !== 0)
1739
1760
  throw new Error("Expected url to be http or https url, or absolute path, got " + JSON.stringify(u));
1740
1761
  if (w === "post")
1741
1762
  return c().then(function(x) {
1742
1763
  if (!x)
1743
1764
  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);
1765
+ (function(S) {
1766
+ var P = S.url, L = S.target, R = S.body, T = S.method, M = T === void 0 ? "post" : T, W = document.createElement("form");
1767
+ if (W.setAttribute("target", L), W.setAttribute("method", M), W.setAttribute("action", P), W.style.display = "none", R)
1768
+ for (var A = 0, B = Object.keys(R); A < B.length; A++) {
1769
+ var D, he = B[A], Le = document.createElement("input");
1770
+ Le.setAttribute("name", he), Le.setAttribute("value", (D = R[he]) == null ? void 0 : D.toString()), W.appendChild(Le);
1750
1771
  }
1751
1772
  Xe().appendChild(W), W.submit(), Xe().removeChild(W);
1752
1773
  })({
1753
1774
  url: u,
1754
1775
  target: x,
1755
1776
  method: w,
1756
- body: S
1777
+ body: b
1757
1778
  });
1758
1779
  });
1759
1780
  if (w !== "get")
1760
1781
  throw new Error("Unsupported method: " + w);
1761
- if (Q(p))
1782
+ if (Q(v))
1762
1783
  try {
1763
- if (p.location && typeof p.location.replace == "function") {
1764
- p.location.replace(u);
1784
+ if (v.location && typeof v.location.replace == "function") {
1785
+ v.location.replace(u);
1765
1786
  return;
1766
1787
  }
1767
1788
  } catch (x) {
1768
1789
  }
1769
- p.location = u;
1790
+ v.location = u;
1770
1791
  });
1771
1792
  },
1772
1793
  setName: function(u) {
1773
1794
  return e.then(function(s) {
1774
- var p = Q(s), h = Ge(s);
1775
- if (!p)
1795
+ var v = Q(s), l = _e(s);
1796
+ if (!v)
1776
1797
  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);
1798
+ ve(s).name = u, l && l.setAttribute("name", u), i = C.resolve(u);
1778
1799
  });
1779
1800
  }
1780
1801
  };
1781
1802
  }
1782
- var q = function() {
1803
+ var _ = function() {
1783
1804
  function e(t) {
1784
1805
  var r = t.send, o = t.win, i = t.serializedWindow;
1785
- 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, {
1806
+ 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, {
1786
1807
  send: r
1787
1808
  }), z("idToProxyWindow").set(this.getID(), this), o && this.setWindow(o, {
1788
1809
  send: r
@@ -1831,7 +1852,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1831
1852
  return this.actualWindow;
1832
1853
  }, n.setWindow = function(t, r) {
1833
1854
  var o = r.send;
1834
- this.actualWindow = t, this.actualWindowPromise.resolve(this.actualWindow), this.serializedWindow = st(this.actualWindowPromise, {
1855
+ this.actualWindow = t, this.actualWindowPromise.resolve(this.actualWindow), this.serializedWindow = it(this.actualWindowPromise, {
1835
1856
  send: o,
1836
1857
  id: this.getID()
1837
1858
  }), U("winToProxyWindow").set(t, this);
@@ -1842,7 +1863,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1842
1863
  return C.try(function() {
1843
1864
  return o.actualWindow ? t === o.actualWindow : C.hash({
1844
1865
  proxyInstanceID: o.getInstanceID(),
1845
- knownWindowInstanceID: ot(t, {
1866
+ knownWindowInstanceID: nt(t, {
1846
1867
  send: i
1847
1868
  })
1848
1869
  }).then(function(a) {
@@ -1864,12 +1885,12 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1864
1885
  return e.isProxyWindow(t) ? t.unwrap() : t;
1865
1886
  }, e.serialize = function(t, r) {
1866
1887
  var o = r.send;
1867
- return Oe(), e.toProxyWindow(t, {
1888
+ return Ae(), e.toProxyWindow(t, {
1868
1889
  send: o
1869
1890
  }).serialize();
1870
1891
  }, e.deserialize = function(t, r) {
1871
1892
  var o = r.send;
1872
- return Oe(), z("idToProxyWindow").get(t.id) || new e({
1893
+ return Ae(), z("idToProxyWindow").get(t.id) || new e({
1873
1894
  serializedWindow: t,
1874
1895
  send: o
1875
1896
  });
@@ -1877,7 +1898,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1877
1898
  return !!(t && !we(t) && t.isProxyWindow);
1878
1899
  }, e.toProxyWindow = function(t, r) {
1879
1900
  var o = r.send;
1880
- if (Oe(), e.isProxyWindow(t))
1901
+ if (Ae(), e.isProxyWindow(t))
1881
1902
  return t;
1882
1903
  var i = t;
1883
1904
  return U("winToProxyWindow").get(i) || new e({
@@ -1886,9 +1907,9 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1886
1907
  });
1887
1908
  }, e;
1888
1909
  }();
1889
- function Ae(e, n, t, r, o) {
1910
+ function Oe(e, n, t, r, o) {
1890
1911
  var i = U("methodStore"), a = z("proxyWindowMethods");
1891
- q.isProxyWindow(r) ? a.set(e, {
1912
+ _.isProxyWindow(r) ? a.set(e, {
1892
1913
  val: n,
1893
1914
  name: t,
1894
1915
  domain: o,
@@ -1902,29 +1923,29 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1902
1923
  source: r
1903
1924
  });
1904
1925
  }
1905
- function ut(e, n) {
1926
+ function at(e, n) {
1906
1927
  var t = U("methodStore"), r = z("proxyWindowMethods");
1907
1928
  return t.getOrSet(e, function() {
1908
1929
  return {};
1909
1930
  })[n] || r.get(n);
1910
1931
  }
1911
- function ct(e, n, t, r, o) {
1932
+ function st(e, n, t, r, o) {
1912
1933
  a = (i = {
1913
1934
  on: o.on,
1914
1935
  send: o.send
1915
1936
  }).on, c = i.send, z("builtinListeners").getOrSet("functionCalls", function() {
1916
1937
  return a("postrobot_method", {
1917
1938
  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)
1939
+ }, function(v) {
1940
+ var l = v.source, m = v.origin, w = v.data, b = w.id, x = w.name, S = at(l, b);
1941
+ if (!S)
1921
1942
  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;
1943
+ var P = S.source, L = S.domain, R = S.val;
1923
1944
  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, {
1945
+ if (!re(L, m))
1946
+ throw new Error("Method '" + w.name + "' domain " + JSON.stringify(Pe(S.domain) ? S.domain.source : S.domain) + " does not match origin " + m + " in " + k(window));
1947
+ if (_.isProxyWindow(P))
1948
+ return P.matchWindow(l, {
1928
1949
  send: c
1929
1950
  }).then(function(T) {
1930
1951
  if (!T)
@@ -1932,7 +1953,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1932
1953
  });
1933
1954
  }).then(function() {
1934
1955
  return R.apply({
1935
- source: h,
1956
+ source: l,
1936
1957
  origin: m
1937
1958
  }, w.args);
1938
1959
  }, function(T) {
@@ -1940,9 +1961,9 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1940
1961
  if (R.onError)
1941
1962
  return R.onError(T);
1942
1963
  }).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 + ">";
1964
+ throw T.stack && (T.stack = "Remote call to " + x + "(" + function(M) {
1965
+ return M === void 0 && (M = []), (W = M, [].slice.call(W)).map(function(A) {
1966
+ 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
1967
  }).join(", ");
1947
1968
  var W;
1948
1969
  }(w.args) + `) failed
@@ -1952,42 +1973,42 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1952
1973
  }).then(function(T) {
1953
1974
  return {
1954
1975
  result: T,
1955
- id: S,
1976
+ id: b,
1956
1977
  name: x
1957
1978
  };
1958
1979
  });
1959
1980
  });
1960
1981
  });
1961
- var i, a, c, u = t.__id__ || Y();
1962
- e = q.unwrap(e);
1982
+ var i, a, c, u = t.__id__ || J();
1983
+ e = _.unwrap(e);
1963
1984
  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", {
1985
+ 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) {
1986
+ Oe(u, t, s, v, n);
1987
+ })) : Oe(u, t, s, e, n), ne("cross_domain_function", {
1967
1988
  id: u,
1968
1989
  name: s
1969
1990
  });
1970
1991
  }
1971
- function dt(e, n, t, r) {
1992
+ function ut(e, n, t, r) {
1972
1993
  var o, i = r.on, a = r.send;
1973
1994
  return function(c, u) {
1974
- u === void 0 && (u = Ht);
1975
- var s = JSON.stringify(c, function(p) {
1976
- var h = this[p];
1995
+ u === void 0 && (u = Ft);
1996
+ var s = JSON.stringify(c, function(v) {
1997
+ var l = this[v];
1977
1998
  if (Re(this))
1978
- return h;
1979
- var m = at(h);
1999
+ return l;
2000
+ var m = ot(l);
1980
2001
  if (!m)
1981
- return h;
2002
+ return l;
1982
2003
  var w = u[m] || Ut[m];
1983
- return w ? w(h, p) : h;
2004
+ return w ? w(l, v) : l;
1984
2005
  });
1985
2006
  return s === void 0 ? "undefined" : s;
1986
2007
  }(t, ((o = {}).promise = function(c, u) {
1987
- return function(s, p, h, m, w) {
2008
+ return function(s, v, l, m, w) {
1988
2009
  return ne("cross_domain_zalgo_promise", {
1989
- then: ct(s, p, function(S, x) {
1990
- return h.then(S, x);
2010
+ then: st(s, v, function(b, x) {
2011
+ return l.then(b, x);
1991
2012
  }, m, {
1992
2013
  on: w.on,
1993
2014
  send: w.send
@@ -1998,60 +2019,60 @@ var Tt = { exports: {} }, Rt = { exports: {} };
1998
2019
  send: a
1999
2020
  });
2000
2021
  }, o.function = function(c, u) {
2001
- return ct(e, n, c, u, {
2022
+ return st(e, n, c, u, {
2002
2023
  on: i,
2003
2024
  send: a
2004
2025
  });
2005
2026
  }, o.object = function(c) {
2006
- return we(c) || q.isProxyWindow(c) ? ne("cross_domain_window", q.serialize(c, {
2027
+ return we(c) || _.isProxyWindow(c) ? ne("cross_domain_window", _.serialize(c, {
2007
2028
  send: a
2008
2029
  })) : c;
2009
2030
  }, o));
2010
2031
  }
2011
- function ft(e, n, t, r) {
2032
+ function ct(e, n, t, r) {
2012
2033
  var o, i = r.send;
2013
2034
  return function(a, c) {
2014
- if (c === void 0 && (c = qt), a !== "undefined")
2035
+ if (c === void 0 && (c = _t), a !== "undefined")
2015
2036
  return JSON.parse(a, function(u, s) {
2016
2037
  if (Re(this))
2017
2038
  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;
2039
+ var v, l;
2040
+ if (Re(s) ? (v = s.__type__, l = s.__val__) : (v = ot(s), l = s), !v)
2041
+ return l;
2042
+ var m = c[v] || Ht[v];
2043
+ return m ? m(l, u) : l;
2023
2044
  });
2024
2045
  }(t, ((o = {}).cross_domain_zalgo_promise = function(a) {
2025
2046
  return function(c, u, s) {
2026
2047
  return new C(s.then);
2027
2048
  }(0, 0, a);
2028
2049
  }, 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 = {});
2050
+ return function(c, u, s, v) {
2051
+ var l = s.id, m = s.name, w = v.send, b = function(S) {
2052
+ S === void 0 && (S = {});
2032
2053
  function P() {
2033
- var N = arguments;
2034
- return q.toProxyWindow(c, {
2054
+ var L = arguments;
2055
+ return _.toProxyWindow(c, {
2035
2056
  send: w
2036
2057
  }).awaitWindow().then(function(R) {
2037
- var T = ut(R, h);
2058
+ var T = at(R, l);
2038
2059
  if (T && T.val !== P)
2039
2060
  return T.val.apply({
2040
2061
  source: window,
2041
2062
  origin: k()
2042
- }, N);
2043
- var j = [].slice.call(N);
2044
- return b.fireAndForget ? w(R, "postrobot_method", {
2045
- id: h,
2063
+ }, L);
2064
+ var M = [].slice.call(L);
2065
+ return S.fireAndForget ? w(R, "postrobot_method", {
2066
+ id: l,
2046
2067
  name: m,
2047
- args: j
2068
+ args: M
2048
2069
  }, {
2049
2070
  domain: u,
2050
2071
  fireAndForget: !0
2051
2072
  }) : w(R, "postrobot_method", {
2052
- id: h,
2073
+ id: l,
2053
2074
  name: m,
2054
- args: j
2075
+ args: M
2055
2076
  }, {
2056
2077
  domain: u,
2057
2078
  fireAndForget: !1
@@ -2062,16 +2083,16 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2062
2083
  throw R;
2063
2084
  });
2064
2085
  }
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({
2086
+ return P.__name__ = m, P.__origin__ = u, P.__source__ = c, P.__id__ = l, P.origin = u, P;
2087
+ }, x = b();
2088
+ return x.fireAndForget = b({
2068
2089
  fireAndForget: !0
2069
2090
  }), x;
2070
2091
  }(e, n, a, {
2071
2092
  send: i
2072
2093
  });
2073
2094
  }, o.cross_domain_window = function(a) {
2074
- return q.deserialize(a, {
2095
+ return _.deserialize(a, {
2075
2096
  send: i
2076
2097
  });
2077
2098
  }, o));
@@ -2089,24 +2110,24 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2089
2110
  return a.buffer = a.buffer || [], a.buffer.push(t), a.flush = a.flush || C.flush().then(function() {
2090
2111
  if (G(e))
2091
2112
  throw new Error("Window is closed");
2092
- var c = dt(e, n, ((u = {}).__post_robot_10_0_46__ = a.buffer || [], u), {
2113
+ var c = ut(e, n, ((u = {}).__post_robot_10_0_46__ = a.buffer || [], u), {
2093
2114
  on: o,
2094
2115
  send: i
2095
2116
  }), u;
2096
2117
  delete a.buffer;
2097
- for (var s = Object.keys(De), p = [], h = 0; h < s.length; h++) {
2098
- var m = s[h];
2118
+ for (var s = Object.keys(De), v = [], l = 0; l < s.length; l++) {
2119
+ var m = s[l];
2099
2120
  try {
2100
2121
  De[m](e, c, n);
2101
2122
  } catch (w) {
2102
- p.push(w);
2123
+ v.push(w);
2103
2124
  }
2104
2125
  }
2105
- if (p.length === s.length)
2126
+ if (v.length === s.length)
2106
2127
  throw new Error(`All post-robot messaging strategies failed:
2107
2128
 
2108
- ` + p.map(function(w, S) {
2109
- return S + ". " + de(w);
2129
+ ` + v.map(function(w, b) {
2130
+ return b + ". " + de(w);
2110
2131
  }).join(`
2111
2132
 
2112
2133
  `));
@@ -2115,16 +2136,16 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2115
2136
  });
2116
2137
  }).then(te);
2117
2138
  }
2118
- function lt(e) {
2139
+ function dt(e) {
2119
2140
  return z("responseListeners").get(e);
2120
2141
  }
2121
- function ht(e) {
2142
+ function ft(e) {
2122
2143
  z("responseListeners").del(e);
2123
2144
  }
2124
- function mt(e) {
2145
+ function lt(e) {
2125
2146
  return z("erroredResponseListeners").has(e);
2126
2147
  }
2127
- function pt(e) {
2148
+ function ht(e) {
2128
2149
  var n = e.name, t = e.win, r = e.domain, o = U("requestListeners");
2129
2150
  if (t === "*" && (t = null), r === "*" && (r = null), !n)
2130
2151
  throw new Error("Name required to get request listener");
@@ -2139,8 +2160,8 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2139
2160
  if (s[r])
2140
2161
  return s[r];
2141
2162
  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;
2163
+ for (var v = 0, l = s.__domain_regex__; v < l.length; v++) {
2164
+ var m = l[v], w = m.listener;
2144
2165
  if (re(m.regex, r))
2145
2166
  return w;
2146
2167
  }
@@ -2152,25 +2173,25 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2152
2173
  }
2153
2174
  }
2154
2175
  }
2155
- function Bt(e, n, t, r) {
2156
- var o = r.on, i = r.send, a = pt({
2176
+ function qt(e, n, t, r) {
2177
+ var o = r.on, i = r.send, a = ht({
2157
2178
  name: t.name,
2158
2179
  win: e,
2159
2180
  domain: n
2160
2181
  }), c = t.name === "postrobot_method" && t.data && typeof t.data.name == "string" ? t.data.name + "()" : t.name;
2161
- function u(s, p, h) {
2182
+ function u(s, v, l) {
2162
2183
  return C.flush().then(function() {
2163
2184
  if (!t.fireAndForget && !G(e))
2164
2185
  try {
2165
2186
  return Ne(e, n, {
2166
- id: Y(),
2187
+ id: J(),
2167
2188
  origin: k(window),
2168
2189
  type: "postrobot_message_response",
2169
2190
  hash: t.hash,
2170
2191
  name: t.name,
2171
2192
  ack: s,
2172
- data: p,
2173
- error: h
2193
+ data: v,
2194
+ error: l
2174
2195
  }, {
2175
2196
  on: o,
2176
2197
  send: i
@@ -2186,7 +2207,7 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2186
2207
  if (!t.fireAndForget && !G(e))
2187
2208
  try {
2188
2209
  return Ne(e, n, {
2189
- id: Y(),
2210
+ id: J(),
2190
2211
  origin: k(window),
2191
2212
  type: "postrobot_message_ack",
2192
2213
  hash: t.hash,
@@ -2219,8 +2240,8 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2219
2240
  });
2220
2241
  }
2221
2242
  function Gt(e, n, t) {
2222
- if (!mt(t.hash)) {
2223
- var r = lt(t.hash);
2243
+ if (!lt(t.hash)) {
2244
+ var r = dt(t.hash);
2224
2245
  if (!r)
2225
2246
  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);
2226
2247
  try {
@@ -2234,9 +2255,9 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2234
2255
  r.ack = !0;
2235
2256
  }
2236
2257
  }
2237
- function $t(e, n, t) {
2238
- if (!mt(t.hash)) {
2239
- var r = lt(t.hash);
2258
+ function Bt(e, n, t) {
2259
+ if (!lt(t.hash)) {
2260
+ var r = dt(t.hash);
2240
2261
  if (!r)
2241
2262
  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);
2242
2263
  if (!re(r.domain, n))
@@ -2244,33 +2265,33 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2244
2265
  var o;
2245
2266
  if (e !== r.win)
2246
2267
  throw new Error("Response source does not match registered window");
2247
- ht(t.hash), t.ack === "error" ? r.promise.reject(t.error) : t.ack === "success" && r.promise.resolve({
2268
+ ft(t.hash), t.ack === "error" ? r.promise.reject(t.error) : t.ack === "success" && r.promise.resolve({
2248
2269
  source: e,
2249
2270
  origin: n,
2250
2271
  data: t.data
2251
2272
  });
2252
2273
  }
2253
2274
  }
2254
- function vt(e, n) {
2275
+ function mt(e, n) {
2255
2276
  var t = n.on, r = n.send, o = z("receivedMessages");
2256
2277
  try {
2257
2278
  if (!window || window.closed || !e.source)
2258
2279
  return;
2259
- } catch (p) {
2280
+ } catch (v) {
2260
2281
  return;
2261
2282
  }
2262
- var i = e.source, a = e.origin, c = function(p, h, m, w) {
2263
- var S = w.on, x = w.send, b;
2283
+ var i = e.source, a = e.origin, c = function(v, l, m, w) {
2284
+ var b = w.on, x = w.send, S;
2264
2285
  try {
2265
- b = ft(h, m, p, {
2266
- on: S,
2286
+ S = ct(l, m, v, {
2287
+ on: b,
2267
2288
  send: x
2268
2289
  });
2269
- } catch (N) {
2290
+ } catch (L) {
2270
2291
  return;
2271
2292
  }
2272
- if (b && typeof b == "object" && b !== null) {
2273
- var P = b.__post_robot_10_0_46__;
2293
+ if (S && typeof S == "object" && S !== null) {
2294
+ var P = S.__post_robot_10_0_46__;
2274
2295
  if (Array.isArray(P))
2275
2296
  return P;
2276
2297
  }
@@ -2279,80 +2300,80 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2279
2300
  send: r
2280
2301
  });
2281
2302
  if (c) {
2282
- it(i);
2303
+ rt(i);
2283
2304
  for (var u = 0; u < c.length; u++) {
2284
2305
  var s = c[u];
2285
2306
  if (o.has(s.id) || (o.set(s.id, !0), G(i) && !s.fireAndForget))
2286
2307
  return;
2287
2308
  s.origin.indexOf("file:") === 0 && (a = "file://");
2288
2309
  try {
2289
- s.type === "postrobot_message_request" ? Bt(i, a, s, {
2310
+ s.type === "postrobot_message_request" ? qt(i, a, s, {
2290
2311
  on: t,
2291
2312
  send: r
2292
- }) : s.type === "postrobot_message_response" ? $t(i, a, s) : s.type === "postrobot_message_ack" && Gt(i, a, s);
2293
- } catch (p) {
2313
+ }) : s.type === "postrobot_message_response" ? Bt(i, a, s) : s.type === "postrobot_message_ack" && Gt(i, a, s);
2314
+ } catch (v) {
2294
2315
  setTimeout(function() {
2295
- throw p;
2316
+ throw v;
2296
2317
  }, 0);
2297
2318
  }
2298
2319
  }
2299
2320
  }
2300
2321
  }
2301
- function V(e, n, t) {
2322
+ function Z(e, n, t) {
2302
2323
  if (!e)
2303
2324
  throw new Error("Expected name");
2304
2325
  if (typeof (n = n || {}) == "function" && (t = n, n = {}), !t)
2305
2326
  throw new Error("Expected handler");
2306
2327
  var r = function o(i, a) {
2307
- var c = i.name, u = i.win, s = i.domain, p = U("requestListeners");
2328
+ var c = i.name, u = i.win, s = i.domain, v = U("requestListeners");
2308
2329
  if (!c || typeof c != "string")
2309
2330
  throw new Error("Name required to add request listener");
2310
- if (u && u !== "*" && q.isProxyWindow(u)) {
2311
- var h = u.awaitWindow().then(function(A) {
2331
+ if (u && u !== "*" && _.isProxyWindow(u)) {
2332
+ var l = u.awaitWindow().then(function(D) {
2312
2333
  return o({
2313
2334
  name: c,
2314
- win: A,
2335
+ win: D,
2315
2336
  domain: s
2316
2337
  }, a);
2317
2338
  });
2318
2339
  return {
2319
2340
  cancel: function() {
2320
- h.then(function(A) {
2321
- return A.cancel();
2341
+ l.then(function(D) {
2342
+ return D.cancel();
2322
2343
  }, te);
2323
2344
  }
2324
2345
  };
2325
2346
  }
2326
2347
  var m = u;
2327
2348
  if (Array.isArray(m)) {
2328
- for (var w = [], S = 0, x = m; S < x.length; S++)
2349
+ for (var w = [], b = 0, x = m; b < x.length; b++)
2329
2350
  w.push(o({
2330
2351
  name: c,
2331
2352
  domain: s,
2332
- win: x[S]
2353
+ win: x[b]
2333
2354
  }, a));
2334
2355
  return {
2335
2356
  cancel: function() {
2336
- for (var A = 0; A < w.length; A++)
2337
- w[A].cancel();
2357
+ for (var D = 0; D < w.length; D++)
2358
+ w[D].cancel();
2338
2359
  }
2339
2360
  };
2340
2361
  }
2341
2362
  if (Array.isArray(s)) {
2342
- for (var b = [], P = 0, N = s; P < N.length; P++)
2343
- b.push(o({
2363
+ for (var S = [], P = 0, L = s; P < L.length; P++)
2364
+ S.push(o({
2344
2365
  name: c,
2345
2366
  win: m,
2346
- domain: N[P]
2367
+ domain: L[P]
2347
2368
  }, a));
2348
2369
  return {
2349
2370
  cancel: function() {
2350
- for (var A = 0; A < b.length; A++)
2351
- b[A].cancel();
2371
+ for (var D = 0; D < S.length; D++)
2372
+ S[D].cancel();
2352
2373
  }
2353
2374
  };
2354
2375
  }
2355
- var R = pt({
2376
+ var R = ht({
2356
2377
  name: c,
2357
2378
  win: m,
2358
2379
  domain: s
@@ -2361,19 +2382,19 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2361
2382
  var T = (s = s || "*").toString();
2362
2383
  if (R)
2363
2384
  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() {
2385
+ var M = v.getOrSet(m, function() {
2365
2386
  return {};
2366
- }), W = fe(j, c, function() {
2387
+ }), W = fe(M, c, function() {
2367
2388
  return {};
2368
- }), O, $;
2369
- return Pe(s) ? (O = fe(W, "__domain_regex__", function() {
2389
+ }), A, B;
2390
+ return Pe(s) ? (A = fe(W, "__domain_regex__", function() {
2370
2391
  return [];
2371
- })).push($ = {
2392
+ })).push(B = {
2372
2393
  regex: s,
2373
2394
  listener: a
2374
2395
  }) : W[T] = a, {
2375
2396
  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);
2397
+ delete W[T], B && (A.splice(A.indexOf(B, 1)), A.length || delete W.__domain_regex__), Object.keys(W).length || delete M[c], m && !Object.keys(M).length && v.del(m);
2377
2398
  }
2378
2399
  };
2379
2400
  }({
@@ -2392,159 +2413,159 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2392
2413
  }
2393
2414
  };
2394
2415
  }
2395
- function _t(e, n, t) {
2416
+ function $t(e, n, t) {
2396
2417
  typeof (n = n || {}) == "function" && (t = n, n = {});
2397
2418
  var r = new C(), o;
2398
2419
  return n.errorHandler = function(i) {
2399
2420
  o.cancel(), r.reject(i);
2400
- }, o = V(e, n, function(i) {
2421
+ }, o = Z(e, n, function(i) {
2401
2422
  if (o.cancel(), r.resolve(i), t)
2402
2423
  return t(i);
2403
2424
  }), r.cancel = o.cancel, r;
2404
2425
  }
2405
- var X = function e(n, t, r, o) {
2426
+ var K = function e(n, t, r, o) {
2406
2427
  var i = (o = o || {}).domain || "*", a = o.timeout || -1, c = o.timeout || 5e3, u = o.fireAndForget || !1;
2407
- return q.toProxyWindow(n, {
2428
+ return _.toProxyWindow(n, {
2408
2429
  send: e
2409
2430
  }).awaitWindow().then(function(s) {
2410
2431
  return C.try(function() {
2411
- if (function(p, h, m) {
2412
- if (!p)
2432
+ if (function(v, l, m) {
2433
+ if (!v)
2413
2434
  throw new Error("Expected name");
2414
2435
  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);
2436
+ throw new TypeError("Can not send " + v + ". Expected domain " + JSON.stringify(m) + " to be a string, array, or regex");
2437
+ if (G(l))
2438
+ throw new Error("Can not send " + v + ". Target window is closed");
2439
+ }(t, s, i), function(v, l) {
2440
+ var m = He(l);
2420
2441
  if (m)
2421
- return m === p;
2422
- if (h === p || function(x) {
2442
+ return m === v;
2443
+ if (l === v || function(x) {
2423
2444
  x === void 0 && (x = window);
2424
2445
  try {
2425
2446
  if (x.top)
2426
2447
  return x.top;
2427
2448
  } catch (R) {
2428
2449
  }
2429
- if (B(x) === x)
2450
+ if (q(x) === x)
2430
2451
  return x;
2431
2452
  try {
2432
- if (Fe(window, x) && window.top)
2453
+ if (Ue(window, x) && window.top)
2433
2454
  return window.top;
2434
2455
  } catch (R) {
2435
2456
  }
2436
2457
  try {
2437
- if (Fe(x, window) && window.top)
2458
+ if (Ue(x, window) && window.top)
2438
2459
  return window.top;
2439
2460
  } catch (R) {
2440
2461
  }
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]);
2462
+ for (var S = 0, P = function R(T) {
2463
+ for (var M = [], W = 0, A = Fe(T); W < A.length; W++) {
2464
+ var B = A[W];
2465
+ M.push(B);
2466
+ for (var D = 0, he = R(B); D < he.length; D++)
2467
+ M.push(he[D]);
2447
2468
  }
2448
- return j;
2449
- }(x); b < P.length; b++) {
2450
- var N = P[b];
2469
+ return M;
2470
+ }(x); S < P.length; S++) {
2471
+ var L = P[S];
2451
2472
  try {
2452
- if (N.top)
2453
- return N.top;
2473
+ if (L.top)
2474
+ return L.top;
2454
2475
  } catch (R) {
2455
2476
  }
2456
- if (B(N) === N)
2457
- return N;
2477
+ if (q(L) === L)
2478
+ return L;
2458
2479
  }
2459
- }(h) === h)
2480
+ }(l) === l)
2460
2481
  return !1;
2461
- for (var w = 0, S = qe(p); w < S.length; w++)
2462
- if (S[w] === h)
2482
+ for (var w = 0, b = Fe(v); w < b.length; w++)
2483
+ if (b[w] === l)
2463
2484
  return !0;
2464
2485
  return !1;
2465
2486
  }(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() {
2487
+ return function(v, l, m) {
2488
+ l === void 0 && (l = 5e3), m === void 0 && (m = "Window");
2489
+ var w = function(b) {
2490
+ return U("helloPromises").getOrSet(b, function() {
2470
2491
  return new C();
2471
2492
  });
2472
- }(p);
2473
- return h !== -1 && (w = w.timeout(h, new Error(m + " did not load after " + h + "ms"))), w;
2493
+ }(v);
2494
+ return l !== -1 && (w = w.timeout(l, new Error(m + " did not load after " + l + "ms"))), w;
2474
2495
  }(s, c);
2475
- }).then(function(p) {
2476
- return function(h, m, w, S) {
2477
- var x = S.send;
2496
+ }).then(function(v) {
2497
+ return function(l, m, w, b) {
2498
+ var x = b.send;
2478
2499
  return C.try(function() {
2479
2500
  return typeof m == "string" ? m : C.try(function() {
2480
- return w || Te(h, {
2501
+ return w || Te(l, {
2481
2502
  send: x
2482
- }).then(function(b) {
2483
- return b.domain;
2503
+ }).then(function(S) {
2504
+ return S.domain;
2484
2505
  });
2485
- }).then(function(b) {
2506
+ }).then(function(S) {
2486
2507
  if (!re(m, m))
2487
2508
  throw new Error("Domain " + Ve(m) + " does not match " + Ve(m));
2488
- return b;
2509
+ return S;
2489
2510
  });
2490
2511
  });
2491
- }(s, i, (p === void 0 ? {} : p).domain, {
2512
+ }(s, i, (v === void 0 ? {} : v).domain, {
2492
2513
  send: e
2493
2514
  });
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();
2515
+ }).then(function(v) {
2516
+ var l = v, m = t === "postrobot_method" && r && typeof r.name == "string" ? r.name + "()" : t, w = new C(), b = t + "_" + J();
2496
2517
  if (!u) {
2497
2518
  var x = {
2498
2519
  name: t,
2499
2520
  win: s,
2500
- domain: h,
2521
+ domain: l,
2501
2522
  promise: w
2502
2523
  };
2503
- (function(W, O) {
2504
- z("responseListeners").set(W, O);
2505
- })(S, x);
2506
- var b = U("requestPromises").getOrSet(s, function() {
2524
+ (function(W, A) {
2525
+ z("responseListeners").set(W, A);
2526
+ })(b, x);
2527
+ var S = U("requestPromises").getOrSet(s, function() {
2507
2528
  return [];
2508
2529
  });
2509
- b.push(w), w.catch(function() {
2530
+ S.push(w), w.catch(function() {
2510
2531
  (function(W) {
2511
2532
  z("erroredResponseListeners").set(W, !0);
2512
- })(S), ht(S);
2533
+ })(b), ft(b);
2513
2534
  });
2514
2535
  var P = function(W) {
2515
2536
  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() {
2537
+ }(s) ? 1e4 : 2e3, L = a, R = P, T = L, M = function(W, A) {
2538
+ var B;
2539
+ return function D() {
2540
+ B = setTimeout(function() {
2520
2541
  (function() {
2521
2542
  if (G(s))
2522
2543
  return w.reject(new Error("Window closed for " + t + " before " + (x.ack ? "response" : "ack")));
2523
2544
  if (x.cancelled)
2524
2545
  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();
2546
+ 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 " + L + "ms")) : w.reject(new Error("No ack for postMessage " + m + " in " + k() + " in " + P + "ms"));
2547
+ })(), D();
2527
2548
  }, 500);
2528
2549
  }(), {
2529
2550
  cancel: function() {
2530
- clearTimeout($);
2551
+ clearTimeout(B);
2531
2552
  }
2532
2553
  };
2533
2554
  }();
2534
2555
  w.finally(function() {
2535
- j.cancel(), b.splice(b.indexOf(w, 1));
2556
+ M.cancel(), S.splice(S.indexOf(w, 1));
2536
2557
  }).catch(te);
2537
2558
  }
2538
- return Ne(s, h, {
2539
- id: Y(),
2559
+ return Ne(s, l, {
2560
+ id: J(),
2540
2561
  origin: k(window),
2541
2562
  type: "postrobot_message_request",
2542
- hash: S,
2563
+ hash: b,
2543
2564
  name: t,
2544
2565
  data: r,
2545
2566
  fireAndForget: u
2546
2567
  }, {
2547
- on: V,
2568
+ on: Z,
2548
2569
  send: e
2549
2570
  }).then(function() {
2550
2571
  return u ? w.resolve() : w;
@@ -2556,35 +2577,35 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2556
2577
  });
2557
2578
  });
2558
2579
  };
2559
- function Jt(e, n, t) {
2560
- return dt(e, n, t, {
2561
- on: V,
2562
- send: X
2580
+ function Yt(e, n, t) {
2581
+ return ut(e, n, t, {
2582
+ on: Z,
2583
+ send: K
2563
2584
  });
2564
2585
  }
2565
- function Yt(e, n, t) {
2566
- return ft(e, n, t, {
2567
- on: V,
2568
- send: X
2586
+ function Jt(e, n, t) {
2587
+ return ct(e, n, t, {
2588
+ on: Z,
2589
+ send: K
2569
2590
  });
2570
2591
  }
2571
- function Zt(e) {
2572
- return new q({
2573
- send: X,
2592
+ function Vt(e) {
2593
+ return new _({
2594
+ send: K,
2574
2595
  win: e
2575
2596
  });
2576
2597
  }
2577
- function Kt(e) {
2578
- return q.toProxyWindow(e, {
2579
- send: X
2598
+ function Xt(e) {
2599
+ return _.toProxyWindow(e, {
2600
+ send: K
2580
2601
  });
2581
2602
  }
2582
- function wt() {
2603
+ function pt() {
2583
2604
  le().initialized || (le().initialized = !0, n = (e = {
2584
- on: V,
2585
- send: X
2605
+ on: Z,
2606
+ send: K
2586
2607
  }).on, t = e.send, (r = le()).receiveMessage = r.receiveMessage || function(o) {
2587
- return vt(o, {
2608
+ return mt(o, {
2588
2609
  on: n,
2589
2610
  send: t
2590
2611
  });
@@ -2599,19 +2620,19 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2599
2620
  };
2600
2621
  }(window, 0, function(c) {
2601
2622
  (function(u, s) {
2602
- var p = s.on, h = s.send;
2623
+ var v = s.on, l = s.send;
2603
2624
  C.try(function() {
2604
- var m = u.source || u.sourceElement, w = u.origin || u.originalEvent && u.originalEvent.origin, S = u.data;
2625
+ var m = u.source || u.sourceElement, w = u.origin || u.originalEvent && u.originalEvent.origin, b = u.data;
2605
2626
  if (w === "null" && (w = "file://"), m) {
2606
2627
  if (!w)
2607
2628
  throw new Error("Post message did not have origin domain");
2608
- vt({
2629
+ mt({
2609
2630
  source: m,
2610
2631
  origin: w,
2611
- data: S
2632
+ data: b
2612
2633
  }, {
2613
- on: p,
2614
- send: h
2634
+ on: v,
2635
+ send: l
2615
2636
  });
2616
2637
  }
2617
2638
  });
@@ -2622,32 +2643,32 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2622
2643
  });
2623
2644
  });
2624
2645
  }({
2625
- on: V,
2626
- send: X
2646
+ on: Z,
2647
+ send: K
2627
2648
  }), function(o) {
2628
2649
  var i = o.on, a = o.send;
2629
2650
  z("builtinListeners").getOrSet("helloListener", function() {
2630
2651
  var c = i("postrobot_hello", {
2631
2652
  domain: "*"
2632
2653
  }, function(s) {
2633
- return rt(s.source, {
2654
+ return tt(s.source, {
2634
2655
  domain: s.origin
2635
2656
  }), {
2636
- instanceID: nt()
2657
+ instanceID: et()
2637
2658
  };
2638
- }), u = Be();
2659
+ }), u = He();
2639
2660
  return u && Te(u, {
2640
2661
  send: a
2641
2662
  }).catch(function(s) {
2642
2663
  }), c;
2643
2664
  });
2644
2665
  }({
2645
- on: V,
2646
- send: X
2666
+ on: Z,
2667
+ send: K
2647
2668
  }));
2648
2669
  var e, n, t, r;
2649
2670
  }
2650
- function Vt() {
2671
+ function Zt() {
2651
2672
  (function() {
2652
2673
  for (var n = z("responseListeners"), t = 0, r = n.keys(); t < r.length; t++) {
2653
2674
  var o = r[t], i = n.get(o);
@@ -2657,29 +2678,29 @@ var Tt = { exports: {} }, Rt = { exports: {} };
2657
2678
  var e;
2658
2679
  delete window.__post_robot_10_0_46__;
2659
2680
  }
2660
- var Xt = !0;
2681
+ var Kt = !0;
2661
2682
  function Qt(e) {
2662
2683
  for (var n = 0, t = U("requestPromises").get(e, []); n < t.length; n++)
2663
2684
  t[n].reject(new Error("Window " + (G(e) ? "closed" : "cleaned up") + " before response")).catch(te);
2664
2685
  }
2665
- wt();
2686
+ pt();
2666
2687
  }]);
2667
2688
  });
2668
2689
  })(Rt);
2669
- var Un = Rt.exports;
2690
+ var Gn = Rt.exports;
2670
2691
  (function(f) {
2671
- f.exports = Un, f.exports.default = f.exports;
2692
+ f.exports = Gn, f.exports.default = f.exports;
2672
2693
  })(Tt);
2673
- var Ot = Tt.exports;
2674
- const Hn = /* @__PURE__ */ kn(Ot), He = /* @__PURE__ */ an({
2694
+ var At = Tt.exports;
2695
+ const Bn = /* @__PURE__ */ qn(At), ke = /* @__PURE__ */ an({
2675
2696
  __proto__: null,
2676
- default: Hn
2677
- }, [Ot]);
2697
+ default: Bn
2698
+ }, [At]);
2678
2699
  export {
2679
2700
  Ct as ConsentBox,
2680
- qn as PrivacyCenterBox,
2681
- Bn as SoyioTypes,
2682
- Gn as SoyioWidget,
2701
+ Yn as PrivacyCenterBox,
2702
+ Jn as SoyioTypes,
2703
+ Vn as SoyioWidget,
2683
2704
  sn as _TooltipManager,
2684
- Gn as default
2705
+ Vn as default
2685
2706
  };