@soyio/soyio-widget 2.10.2 → 2.11.0

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