@soyio/soyio-widget 2.15.3 → 2.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -17,20 +17,20 @@ var N = (c, d, h) => vn(c, typeof d != "symbol" ? d + "" : d, h), wn = (c, d, h)
17
17
  var It = (c, d, h) => d.has(c) ? xt("Cannot add the same private member more than once") : d instanceof WeakSet ? d.add(c) : d.set(c, h);
18
18
  var Wt = (c, d, h) => (wn(c, d, "access private method"), h);
19
19
  var Pt = (c, d, h) => pn(ln(c), h, d);
20
- var _ = (c, d, h) => new Promise((f, v) => {
21
- var y = (A) => {
20
+ var q = (c, d, h) => new Promise((f, v) => {
21
+ var y = (R) => {
22
22
  try {
23
- S(h.next(A));
23
+ S(h.next(R));
24
24
  } catch (D) {
25
25
  v(D);
26
26
  }
27
- }, E = (A) => {
27
+ }, E = (R) => {
28
28
  try {
29
- S(h.throw(A));
29
+ S(h.throw(R));
30
30
  } catch (D) {
31
31
  v(D);
32
32
  }
33
- }, S = (A) => A.done ? f(A.value) : Promise.resolve(A.value).then(y, E);
33
+ }, S = (R) => R.done ? f(R.value) : Promise.resolve(R.value).then(y, E);
34
34
  S((h = h.apply(c, d)).next());
35
35
  });
36
36
  function gn(c, d) {
@@ -49,7 +49,7 @@ function gn(c, d) {
49
49
  }
50
50
  return Object.freeze(Object.defineProperty(c, Symbol.toStringTag, { value: "Module" }));
51
51
  }
52
- const be = !!(typeof window != "undefined" && window.document && window.document.createElement), Ct = 200;
52
+ const be = !!(typeof window != "undefined" && window.document && window.document.createElement), Tt = 200;
53
53
  class He {
54
54
  constructor() {
55
55
  N(this, "tooltipElement", null);
@@ -78,7 +78,7 @@ class He {
78
78
  word-wrap: break-word;
79
79
  pointer-events: none;
80
80
  opacity: 0;
81
- transition: opacity ${Ct}ms ease, transform ${Ct}ms ease;
81
+ transition: opacity ${Tt}ms ease, transform ${Tt}ms ease;
82
82
  backdrop-filter: blur(5px);
83
83
  -webkit-backdrop-filter: blur(5px);
84
84
  transform: scale(0.95);
@@ -93,7 +93,7 @@ class He {
93
93
  });
94
94
  }
95
95
  calculateOptimalPlacement(d, h) {
96
- const f = this.tooltipElement.offsetWidth, v = this.tooltipElement.offsetHeight, { innerWidth: y, innerHeight: E } = window, S = 4, A = {
96
+ const f = this.tooltipElement.offsetWidth, v = this.tooltipElement.offsetHeight, { innerWidth: y, innerHeight: E } = window, S = 4, R = {
97
97
  top: {
98
98
  top: h - v - S,
99
99
  left: d - f / 2,
@@ -115,10 +115,10 @@ class He {
115
115
  placement: "left"
116
116
  }
117
117
  };
118
- for (const [, k] of Object.entries(A))
118
+ for (const [, k] of Object.entries(R))
119
119
  if (He.fitsInViewport(k, f, v, y, E))
120
120
  return k;
121
- const D = A.top;
121
+ const D = R.top;
122
122
  return D.left = Math.max(S, Math.min(D.left, y - f - S)), D.top = Math.max(S, Math.min(D.top, E - v - S)), D;
123
123
  }
124
124
  static fitsInViewport(d, h, f, v, y) {
@@ -136,10 +136,10 @@ class He {
136
136
  }
137
137
  }
138
138
  function yn(c, d, h) {
139
- return _(this, null, function* () {
139
+ return q(this, null, function* () {
140
140
  if (!c.contentWindow)
141
141
  throw new Error("Invalid iframe: contentWindow is null");
142
- const f = yield Promise.resolve().then(() => qe);
142
+ const f = yield Promise.resolve().then(() => _e);
143
143
  try {
144
144
  yield f.send(c.contentWindow, "SET_APPEARANCE", { appearance: d, identifier: h });
145
145
  } catch (v) {
@@ -156,23 +156,23 @@ const En = "IFRAME_READY", Sn = "IFRAME_HEIGHT_CHANGE", xn = "TOOLTIP_STATE_CHAN
156
156
  // CONSENT
157
157
  onStateChange: {}
158
158
  };
159
- let Tt, Rt, Ot, At, Nt;
159
+ let Ct, Rt, Ot, At, Nt;
160
160
  function Wn() {
161
- return _(this, null, function* () {
162
- const c = yield Promise.resolve().then(() => qe);
163
- Tt || Rt || Ot || At || Nt || (Tt = c.on(Sn, (d) => _(null, null, function* () {
161
+ return q(this, null, function* () {
162
+ const c = yield Promise.resolve().then(() => _e);
163
+ Ct || Rt || Ot || At || Nt || (Ct = c.on(Sn, (d) => q(null, null, function* () {
164
164
  const h = d.data, f = U.onHeightChange[h.identifier];
165
165
  return f && f(h.height), Promise.resolve();
166
- })), Rt = c.on(En, (d) => _(null, null, function* () {
166
+ })), Rt = c.on(En, (d) => q(null, null, function* () {
167
167
  const h = d.data, f = U.onIframeReady[h.identifier];
168
168
  return f && f(), Promise.resolve();
169
- })), Ot = c.on(xn, (d) => _(null, null, function* () {
169
+ })), Ot = c.on(xn, (d) => q(null, null, function* () {
170
170
  const h = d.data, f = U.onTooltipChange[h.identifier];
171
171
  return f && f(h), Promise.resolve();
172
- })), At = c.on(In, (d) => _(null, null, function* () {
172
+ })), At = c.on(In, (d) => q(null, null, function* () {
173
173
  const h = d.data, f = U.onStateChange[h.identifier];
174
174
  return f && f(h), Promise.resolve();
175
- })), Nt = c.on(bn, (h) => _(null, [h], function* ({ data: d }) {
175
+ })), Nt = c.on(bn, (h) => q(null, [h], function* ({ data: d }) {
176
176
  const E = d, { identifier: f } = E, v = bt(E, ["identifier"]), y = U.onInfo[f];
177
177
  return y && y(v), Promise.resolve();
178
178
  })));
@@ -191,11 +191,11 @@ function Mt(c, d) {
191
191
  function Pn(c) {
192
192
  delete U.onHeightChange[c], delete U.onIframeReady[c], delete U.onTooltipChange[c], delete U.onStateChange[c], delete U.onInfo[c];
193
193
  }
194
- function Cn(c) {
194
+ function Tn(c) {
195
195
  const d = document.getElementById(c);
196
196
  d && (console.warn("ConsentBox iframe already exists. Removing existing before mounting new one."), d.remove());
197
197
  }
198
- function Tn(c) {
198
+ function Cn(c) {
199
199
  const d = document.querySelector(c);
200
200
  if (!d)
201
201
  throw new Error(`Iframe div container with id '${c}' not found`);
@@ -270,7 +270,7 @@ class We {
270
270
  h && (h.style.display = "none");
271
271
  }
272
272
  handleIframeReady() {
273
- return _(this, null, function* () {
273
+ return q(this, null, function* () {
274
274
  this.iframe && (this.options.onReady && this.options.onReady(), yield yn(this.iframe, this.appearance, this.uniqueIdentifier), this.skeleton && this.skeleton.hide());
275
275
  });
276
276
  }
@@ -280,7 +280,7 @@ class We {
280
280
  y ? this.tooltipManager.show(f, E, S) : this.tooltipManager.hide();
281
281
  }
282
282
  setupListeners() {
283
- return _(this, null, function* () {
283
+ return q(this, null, function* () {
284
284
  yield Wn();
285
285
  const d = {
286
286
  onHeightChange: this.handleHeightChange.bind(this),
@@ -292,10 +292,10 @@ class We {
292
292
  });
293
293
  }
294
294
  mount(d) {
295
- return _(this, null, function* () {
295
+ return q(this, null, function* () {
296
296
  if (!be) return this;
297
- yield this.setupListeners(), Cn(this.iframeIdentifier);
298
- const h = Tn(d), f = this.iframeUrl();
297
+ yield this.setupListeners(), Tn(this.iframeIdentifier);
298
+ const h = Cn(d), f = this.iframeUrl();
299
299
  return this.iframe = Rn(f, this.iframeIdentifier, this.defaultIframeCSSConfig), this.Skeleton && (this.skeleton = new this.Skeleton(this.uniqueIdentifier), this.skeleton.mount(h)), h.appendChild(this.iframe), this;
300
300
  });
301
301
  }
@@ -375,8 +375,8 @@ class Hn {
375
375
  align-items: center;
376
376
  gap: 1rem;
377
377
  `;
378
- const A = document.createElement("div");
379
- A.style.cssText = `
378
+ const R = document.createElement("div");
379
+ R.style.cssText = `
380
380
  width: 1rem;
381
381
  height: 1rem;
382
382
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
@@ -419,7 +419,7 @@ class Hn {
419
419
  }
420
420
  `, document.head.appendChild(J);
421
421
  }
422
- f.appendChild(v), f.appendChild(y), f.appendChild(E), D.appendChild(k), D.appendChild(X), S.appendChild(A), S.appendChild(D), h.appendChild(f), h.appendChild(S), this.element.appendChild(h);
422
+ f.appendChild(v), f.appendChild(y), f.appendChild(E), D.appendChild(k), D.appendChild(X), S.appendChild(R), S.appendChild(D), h.appendChild(f), h.appendChild(S), this.element.appendChild(h);
423
423
  }
424
424
  cleanupExistingSkeleton() {
425
425
  const d = document.getElementById(this.identifier);
@@ -432,8 +432,8 @@ class Hn {
432
432
  this.element.style.opacity = "0", setTimeout(() => this.element.remove(), 300);
433
433
  }
434
434
  }
435
- const _e = "2.15.2";
436
- function _n(c) {
435
+ const qe = "2.16.1";
436
+ function qn(c) {
437
437
  var E;
438
438
  const d = [
439
439
  "actionToken",
@@ -442,7 +442,7 @@ function _n(c) {
442
442
  "optionalReconsentBehavior",
443
443
  "mandatoryReconsentBehavior"
444
444
  ], h = (E = c.isSandbox) != null ? E : !1, f = c.developmentUrl || (h ? Lt : zt), v = new URLSearchParams();
445
- v.set("sdkVersion", _e), d.forEach((S) => {
445
+ v.set("sdkVersion", qe), d.forEach((S) => {
446
446
  c[S] && v.set(S, c[S]);
447
447
  });
448
448
  const y = v.toString();
@@ -463,7 +463,7 @@ class kt extends We {
463
463
  return this.options.consentTemplateId;
464
464
  }
465
465
  iframeUrl() {
466
- return _n(this.options);
466
+ return qn(this.options);
467
467
  }
468
468
  handleStateChange(h) {
469
469
  const { isSelected: f, actionToken: v } = h;
@@ -474,7 +474,7 @@ class kt extends We {
474
474
  });
475
475
  }
476
476
  setupListeners() {
477
- return _(this, null, function* () {
477
+ return q(this, null, function* () {
478
478
  yield Pt(kt.prototype, this, "setupListeners").call(this), Mt(this.uniqueIdentifier, {
479
479
  onStateChange: this.handleStateChange.bind(this)
480
480
  });
@@ -484,10 +484,13 @@ class kt extends We {
484
484
  return this.state;
485
485
  }
486
486
  }
487
- function qn(c) {
487
+ function _n(c) {
488
488
  var y, E, S;
489
489
  const d = (y = c.isSandbox) != null ? y : !1, h = c.developmentUrl || (d ? Nn : An), f = new URLSearchParams();
490
- f.set("sdkVersion", _e), c.sessionToken ? f.set("sessionToken", c.sessionToken) : c.companyId && f.set("companyId", c.companyId), (E = c.enabledFeatures) != null && E.length && f.set("enabledFeatures", c.enabledFeatures.join(",")), (S = c.dataSubjects) != null && S.length && f.set("dataSubjects", c.dataSubjects.join(",")), c.requestReference && f.set("requestReference", c.requestReference);
490
+ if (f.set("sdkVersion", qe), c.sessionToken ? f.set("sessionToken", c.sessionToken) : c.companyId && f.set("companyId", c.companyId), (E = c.enabledFeatures) != null && E.length && f.set("enabledFeatures", c.enabledFeatures.join(",")), (S = c.dataSubjects) != null && S.length && f.set("dataSubjects", c.dataSubjects.join(",")), c.requestReference && f.set("requestReference", c.requestReference), c.fileRequisites) {
491
+ const R = JSON.stringify(c.fileRequisites);
492
+ R !== "{}" && f.set("fileRequisites", R);
493
+ }
491
494
  const v = f.toString();
492
495
  return `${h}${v ? `?${v}` : ""}`;
493
496
  }
@@ -502,7 +505,7 @@ class ir extends We {
502
505
  return this._uniqueIdentifier;
503
506
  }
504
507
  iframeUrl() {
505
- return qn(this.options);
508
+ return _n(this.options);
506
509
  }
507
510
  }
508
511
  const ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -515,7 +518,7 @@ function $n(c) {
515
518
  function Gn(c) {
516
519
  var y;
517
520
  const d = (y = c.isSandbox) != null ? y : !1, h = c.developmentUrl || (d ? Lt : zt), f = Object.entries(c.configProps).filter(([E, S]) => S || E === "disclosureRequestId").map(([E, S]) => `${E}=${encodeURIComponent(S)}`).join("&"), v = $n(c);
518
- return `${h}/${v}?sdk=web&sdkVersion=${_e}&${f}`;
521
+ return `${h}/${v}?sdk=web&sdkVersion=${qe}&${f}`;
519
522
  }
520
523
  let Z = null, ke = null;
521
524
  function Fe(c = null) {
@@ -530,7 +533,7 @@ function Vn() {
530
533
  }, Ln);
531
534
  }
532
535
  function Jn(c) {
533
- const d = Gn(c), h = Mn, f = zn, v = 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, S = window.innerHeight || document.documentElement.clientHeight || window.screen.height, A = E / window.screen.availWidth, D = (E - h) / 2 / A + v, k = (S - f) / 2 / A + y, X = [
536
+ const d = Gn(c), h = Mn, f = zn, v = 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, S = window.innerHeight || document.documentElement.clientHeight || window.screen.height, R = E / window.screen.availWidth, D = (E - h) / 2 / R + v, k = (S - f) / 2 / R + y, X = [
534
537
  "scrollbars=yes",
535
538
  `width=${h}`,
536
539
  `height=${f}`,
@@ -547,9 +550,9 @@ function Zn() {
547
550
  me && (me.cancel(), me = null);
548
551
  }
549
552
  function Kn(c) {
550
- return _(this, null, function* () {
551
- const { onEvent: d } = c, h = yield Promise.resolve().then(() => qe);
552
- me && Zn(), me = h.on(Bn, (v) => _(null, [v], function* ({ data: f }) {
553
+ return q(this, null, function* () {
554
+ const { onEvent: d } = c, h = yield Promise.resolve().then(() => _e);
555
+ me && Zn(), me = h.on(Bn, (v) => q(null, [v], function* ({ data: f }) {
553
556
  return d(f), Dn.includes(f.eventName) ? Yn() : f.eventName === jn && Pe(), Promise.resolve();
554
557
  }));
555
558
  });
@@ -607,9 +610,9 @@ function tr() {
607
610
  if (v.r(S), Object.defineProperty(S, "default", {
608
611
  enumerable: !0,
609
612
  value: y
610
- }), 2 & E && typeof y != "string") for (var A in y) v.d(S, A, function(D) {
613
+ }), 2 & E && typeof y != "string") for (var R in y) v.d(S, R, function(D) {
611
614
  return y[D];
612
- }.bind(null, A));
615
+ }.bind(null, R));
613
616
  return S;
614
617
  }, v.n = function(y) {
615
618
  var E = y && y.__esModule ? function() {
@@ -660,7 +663,7 @@ function tr() {
660
663
  function S(e) {
661
664
  return e === void 0 && (e = window), e.location.protocol;
662
665
  }
663
- function A(e) {
666
+ function R(e) {
664
667
  if (e === void 0 && (e = window), e.mockDomain) {
665
668
  var n = e.mockDomain.split("//")[0];
666
669
  if (n) return n;
@@ -668,7 +671,7 @@ function tr() {
668
671
  return S(e);
669
672
  }
670
673
  function D(e) {
671
- return e === void 0 && (e = window), A(e) === "about:";
674
+ return e === void 0 && (e = window), R(e) === "about:";
672
675
  }
673
676
  function k(e) {
674
677
  if (e === void 0 && (e = window), e) try {
@@ -726,7 +729,7 @@ function tr() {
726
729
  }
727
730
  try {
728
731
  if (function(r) {
729
- return r === void 0 && (r = window), A(r) === "mock:";
732
+ return r === void 0 && (r = window), R(r) === "mock:";
730
733
  }(n) && J()) return !0;
731
734
  } catch (r) {
732
735
  }
@@ -796,7 +799,7 @@ function tr() {
796
799
  }
797
800
  return n;
798
801
  }
799
- var Ht = [], _t = [];
802
+ var Ht = [], qt = [];
800
803
  function G(e, n) {
801
804
  n === void 0 && (n = !0);
802
805
  try {
@@ -830,7 +833,7 @@ function tr() {
830
833
  return -1;
831
834
  }(Ht, e);
832
835
  if (t !== -1) {
833
- var r = _t[t];
836
+ var r = qt[t];
834
837
  if (r && function(o) {
835
838
  if (!o.contentWindow || !o.parentNode) return !0;
836
839
  var i = o.ownerDocument;
@@ -904,7 +907,7 @@ function tr() {
904
907
  if (r && r.contentWindow && r.contentWindow === e) return r;
905
908
  }
906
909
  }
907
- function qt(e) {
910
+ function _t(e) {
908
911
  if (function(t) {
909
912
  return t === void 0 && (t = window), !!k(t);
910
913
  }(e)) {
@@ -935,25 +938,25 @@ function tr() {
935
938
  }
936
939
  return !1;
937
940
  }
938
- var Je = [], ie = [], Ce = 0, ae;
941
+ var Je = [], ie = [], Te = 0, ae;
939
942
  function Ye() {
940
- if (!Ce && ae) {
943
+ if (!Te && ae) {
941
944
  var e = ae;
942
945
  ae = null, e.resolve();
943
946
  }
944
947
  }
945
- function Te() {
946
- Ce += 1;
948
+ function Ce() {
949
+ Te += 1;
947
950
  }
948
951
  function se() {
949
- Ce -= 1, Ye();
952
+ Te -= 1, Ye();
950
953
  }
951
954
  var P = function() {
952
955
  function e(t) {
953
956
  var r = this;
954
957
  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) {
955
958
  var o, i, a = !1, l = !1, u = !1;
956
- Te();
959
+ Ce();
957
960
  try {
958
961
  t(function(s) {
959
962
  u ? r.resolve(s) : (a = !0, o = s);
@@ -995,7 +998,7 @@ function tr() {
995
998
  }, n.dispatch = function() {
996
999
  var t = this.resolved, r = this.rejected, o = this.handlers;
997
1000
  if (!this.dispatching && (t || r)) {
998
- this.dispatching = !0, Te();
1001
+ this.dispatching = !0, Ce();
999
1002
  for (var i = function(g, I) {
1000
1003
  return g.then(function(x) {
1001
1004
  I.resolve(x);
@@ -1123,7 +1126,7 @@ function tr() {
1123
1126
  }, e.try = function(t, r, o) {
1124
1127
  if (t && typeof t != "function" && !t.call) throw new Error("Promise.try expected a function");
1125
1128
  var i;
1126
- Te();
1129
+ Ce();
1127
1130
  try {
1128
1131
  i = t.apply(r, o || []);
1129
1132
  } catch (a) {
@@ -1304,7 +1307,7 @@ function tr() {
1304
1307
  var g;
1305
1308
  try {
1306
1309
  g = Xe(w);
1307
- } catch (C) {
1310
+ } catch (T) {
1308
1311
  return e.apply(this, arguments);
1309
1312
  }
1310
1313
  var I = p[g];
@@ -1559,34 +1562,34 @@ function tr() {
1559
1562
  __val__: n
1560
1563
  };
1561
1564
  }
1562
- var q, Yt = ((q = {}).function = function() {
1563
- }, q.error = function(e) {
1565
+ var _, Yt = ((_ = {}).function = function() {
1566
+ }, _.error = function(e) {
1564
1567
  return ne("error", {
1565
1568
  message: e.message,
1566
1569
  stack: e.stack,
1567
1570
  code: e.code,
1568
1571
  data: e.data
1569
1572
  });
1570
- }, q.promise = function() {
1571
- }, q.regex = function(e) {
1573
+ }, _.promise = function() {
1574
+ }, _.regex = function(e) {
1572
1575
  return ne("regex", e.source);
1573
- }, q.date = function(e) {
1576
+ }, _.date = function(e) {
1574
1577
  return ne("date", e.toJSON());
1575
- }, q.array = function(e) {
1578
+ }, _.array = function(e) {
1576
1579
  return e;
1577
- }, q.object = function(e) {
1580
+ }, _.object = function(e) {
1578
1581
  return e;
1579
- }, q.string = function(e) {
1582
+ }, _.string = function(e) {
1580
1583
  return e;
1581
- }, q.number = function(e) {
1584
+ }, _.number = function(e) {
1582
1585
  return e;
1583
- }, q.boolean = function(e) {
1586
+ }, _.boolean = function(e) {
1584
1587
  return e;
1585
- }, q.null = function(e) {
1588
+ }, _.null = function(e) {
1586
1589
  return e;
1587
- }, q[void 0] = function(e) {
1590
+ }, _[void 0] = function(e) {
1588
1591
  return ne("undefined", e);
1589
- }, q), Zt = {}, B, Kt = ((B = {}).function = function() {
1592
+ }, _), Zt = {}, B, Kt = ((B = {}).function = function() {
1590
1593
  throw new Error("Function serialization is not implemented; nothing to deserialize");
1591
1594
  }, B.error = function(e) {
1592
1595
  var n = e.stack, t = e.code, r = e.data, o = new Error(e.message);
@@ -1652,7 +1655,7 @@ function tr() {
1652
1655
  });
1653
1656
  }),
1654
1657
  close: function() {
1655
- return e.then(qt);
1658
+ return e.then(_t);
1656
1659
  },
1657
1660
  getName: l,
1658
1661
  focus: function() {
@@ -1673,10 +1676,10 @@ function tr() {
1673
1676
  if (g === "post") return l().then(function(x) {
1674
1677
  if (!x) throw new Error("Can not post to window without target name");
1675
1678
  (function(b) {
1676
- var C = b.url, M = b.target, R = b.body, T = b.method, L = T === void 0 ? "post" : T, W = document.createElement("form");
1677
- if (W.setAttribute("target", M), W.setAttribute("method", L), W.setAttribute("action", C), W.style.display = "none", R) for (var O = 0, V = Object.keys(R); O < V.length; O++) {
1678
- var j, he = V[O], Le = document.createElement("input");
1679
- Le.setAttribute("name", he), Le.setAttribute("value", (j = R[he]) == null ? void 0 : j.toString()), W.appendChild(Le);
1679
+ var T = b.url, M = b.target, O = b.body, C = b.method, L = C === void 0 ? "post" : C, W = document.createElement("form");
1680
+ if (W.setAttribute("target", M), W.setAttribute("method", L), W.setAttribute("action", T), W.style.display = "none", O) for (var A = 0, V = Object.keys(O); A < V.length; A++) {
1681
+ var j, he = V[A], Le = document.createElement("input");
1682
+ Le.setAttribute("name", he), Le.setAttribute("value", (j = O[he]) == null ? void 0 : j.toString()), W.appendChild(Le);
1680
1683
  }
1681
1684
  tt().appendChild(W), W.submit(), tt().removeChild(W);
1682
1685
  })({
@@ -1844,35 +1847,35 @@ function tr() {
1844
1847
  }, function(w) {
1845
1848
  var m = w.source, p = w.origin, g = w.data, I = g.id, x = g.name, b = ft(m, I);
1846
1849
  if (!b) throw new Error("Could not find method '" + x + "' with id: " + g.id + " in " + F(window));
1847
- var C = b.source, M = b.domain, R = b.val;
1850
+ var T = b.source, M = b.domain, O = b.val;
1848
1851
  return P.try(function() {
1849
1852
  if (!oe(M, p)) throw new Error("Method '" + g.name + "' domain " + JSON.stringify(Oe(b.domain) ? b.domain.source : b.domain) + " does not match origin " + p + " in " + F(window));
1850
- if ($.isProxyWindow(C)) return C.matchWindow(m, {
1853
+ if ($.isProxyWindow(T)) return T.matchWindow(m, {
1851
1854
  send: l
1852
- }).then(function(T) {
1853
- if (!T) throw new Error("Method call '" + g.name + "' failed - proxy window does not match source in " + F(window));
1855
+ }).then(function(C) {
1856
+ if (!C) throw new Error("Method call '" + g.name + "' failed - proxy window does not match source in " + F(window));
1854
1857
  });
1855
1858
  }).then(function() {
1856
- return R.apply({
1859
+ return O.apply({
1857
1860
  source: m,
1858
1861
  origin: p
1859
1862
  }, g.args);
1860
- }, function(T) {
1863
+ }, function(C) {
1861
1864
  return P.try(function() {
1862
- if (R.onError) return R.onError(T);
1865
+ if (O.onError) return O.onError(C);
1863
1866
  }).then(function() {
1864
- throw T.stack && (T.stack = "Remote call to " + x + "(" + function(L) {
1865
- return L === void 0 && (L = []), (W = L, [].slice.call(W)).map(function(O) {
1866
- return typeof O == "string" ? "'" + O + "'" : O === void 0 ? "undefined" : O === null ? "null" : typeof O == "boolean" ? O.toString() : Array.isArray(O) ? "[ ... ]" : typeof O == "object" ? "{ ... }" : typeof O == "function" ? "() => { ... }" : "<" + typeof O + ">";
1867
+ throw C.stack && (C.stack = "Remote call to " + x + "(" + function(L) {
1868
+ return L === void 0 && (L = []), (W = L, [].slice.call(W)).map(function(A) {
1869
+ return typeof A == "string" ? "'" + A + "'" : A === void 0 ? "undefined" : A === null ? "null" : typeof A == "boolean" ? A.toString() : Array.isArray(A) ? "[ ... ]" : typeof A == "object" ? "{ ... }" : typeof A == "function" ? "() => { ... }" : "<" + typeof A + ">";
1867
1870
  }).join(", ");
1868
1871
  var W;
1869
1872
  }(g.args) + `) failed
1870
1873
 
1871
- ` + T.stack), T;
1874
+ ` + C.stack), C;
1872
1875
  });
1873
- }).then(function(T) {
1876
+ }).then(function(C) {
1874
1877
  return {
1875
- result: T,
1878
+ result: C,
1876
1879
  id: I,
1877
1880
  name: x
1878
1881
  };
@@ -1945,25 +1948,25 @@ function tr() {
1945
1948
  return function(l, u, s, w) {
1946
1949
  var m = s.id, p = s.name, g = w.send, I = function(b) {
1947
1950
  b === void 0 && (b = {});
1948
- function C() {
1951
+ function T() {
1949
1952
  var M = arguments;
1950
1953
  return $.toProxyWindow(l, {
1951
1954
  send: g
1952
- }).awaitWindow().then(function(R) {
1953
- var T = ft(R, m);
1954
- if (T && T.val !== C) return T.val.apply({
1955
+ }).awaitWindow().then(function(O) {
1956
+ var C = ft(O, m);
1957
+ if (C && C.val !== T) return C.val.apply({
1955
1958
  source: window,
1956
1959
  origin: F()
1957
1960
  }, M);
1958
1961
  var L = [].slice.call(M);
1959
- return b.fireAndForget ? g(R, "postrobot_method", {
1962
+ return b.fireAndForget ? g(O, "postrobot_method", {
1960
1963
  id: m,
1961
1964
  name: p,
1962
1965
  args: L
1963
1966
  }, {
1964
1967
  domain: u,
1965
1968
  fireAndForget: !0
1966
- }) : g(R, "postrobot_method", {
1969
+ }) : g(O, "postrobot_method", {
1967
1970
  id: m,
1968
1971
  name: p,
1969
1972
  args: L
@@ -1973,11 +1976,11 @@ function tr() {
1973
1976
  }).then(function(W) {
1974
1977
  return W.data.result;
1975
1978
  });
1976
- }).catch(function(R) {
1977
- throw R;
1979
+ }).catch(function(O) {
1980
+ throw O;
1978
1981
  });
1979
1982
  }
1980
- return C.__name__ = p, C.__origin__ = u, C.__source__ = l, C.__id__ = m, C.origin = u, C;
1983
+ return T.__name__ = p, T.__origin__ = u, T.__source__ = l, T.__id__ = m, T.origin = u, T;
1981
1984
  }, x = I();
1982
1985
  return x.fireAndForget = I({
1983
1986
  fireAndForget: !0
@@ -2167,8 +2170,8 @@ function tr() {
2167
2170
  return;
2168
2171
  }
2169
2172
  if (b && typeof b == "object" && b !== null) {
2170
- var C = b.__post_robot_10_0_46__;
2171
- if (Array.isArray(C)) return C;
2173
+ var T = b.__post_robot_10_0_46__;
2174
+ if (Array.isArray(T)) return T;
2172
2175
  }
2173
2176
  }(e.data, i, a, {
2174
2177
  on: t,
@@ -2229,10 +2232,10 @@ function tr() {
2229
2232
  };
2230
2233
  }
2231
2234
  if (Array.isArray(s)) {
2232
- for (var b = [], C = 0, M = s; C < M.length; C++) b.push(o({
2235
+ for (var b = [], T = 0, M = s; T < M.length; T++) b.push(o({
2233
2236
  name: l,
2234
2237
  win: p,
2235
- domain: M[C]
2238
+ domain: M[T]
2236
2239
  }, a));
2237
2240
  return {
2238
2241
  cancel: function() {
@@ -2240,27 +2243,27 @@ function tr() {
2240
2243
  }
2241
2244
  };
2242
2245
  }
2243
- var R = gt({
2246
+ var O = gt({
2244
2247
  name: l,
2245
2248
  win: p,
2246
2249
  domain: s
2247
2250
  });
2248
2251
  p && p !== "*" || (p = Se());
2249
- var T = (s = s || "*").toString();
2250
- if (R) throw p && s ? new Error("Request listener already exists for " + l + " on domain " + s.toString() + " for " + (p === Se() ? "wildcard" : "specified") + " window") : p ? new Error("Request listener already exists for " + l + " for " + (p === Se() ? "wildcard" : "specified") + " window") : s ? new Error("Request listener already exists for " + l + " on domain " + s.toString()) : new Error("Request listener already exists for " + l);
2252
+ var C = (s = s || "*").toString();
2253
+ if (O) throw p && s ? new Error("Request listener already exists for " + l + " on domain " + s.toString() + " for " + (p === Se() ? "wildcard" : "specified") + " window") : p ? new Error("Request listener already exists for " + l + " for " + (p === Se() ? "wildcard" : "specified") + " window") : s ? new Error("Request listener already exists for " + l + " on domain " + s.toString()) : new Error("Request listener already exists for " + l);
2251
2254
  var L = w.getOrSet(p, function() {
2252
2255
  return {};
2253
2256
  }), W = fe(L, l, function() {
2254
2257
  return {};
2255
- }), O, V;
2256
- return Oe(s) ? (O = fe(W, "__domain_regex__", function() {
2258
+ }), A, V;
2259
+ return Oe(s) ? (A = fe(W, "__domain_regex__", function() {
2257
2260
  return [];
2258
2261
  })).push(V = {
2259
2262
  regex: s,
2260
2263
  listener: a
2261
- }) : W[T] = a, {
2264
+ }) : W[C] = a, {
2262
2265
  cancel: function() {
2263
- delete W[T], V && (O.splice(O.indexOf(V, 1)), O.length || delete W.__domain_regex__), Object.keys(W).length || delete L[l], p && !Object.keys(L).length && w.del(p);
2266
+ delete W[C], V && (A.splice(A.indexOf(V, 1)), A.length || delete W.__domain_regex__), Object.keys(W).length || delete L[l], p && !Object.keys(L).length && w.del(p);
2264
2267
  }
2265
2268
  };
2266
2269
  }({
@@ -2305,29 +2308,29 @@ function tr() {
2305
2308
  x === void 0 && (x = window);
2306
2309
  try {
2307
2310
  if (x.top) return x.top;
2308
- } catch (R) {
2311
+ } catch (O) {
2309
2312
  }
2310
2313
  if (k(x) === x) return x;
2311
2314
  try {
2312
2315
  if (Be(window, x) && window.top) return window.top;
2313
- } catch (R) {
2316
+ } catch (O) {
2314
2317
  }
2315
2318
  try {
2316
2319
  if (Be(x, window) && window.top) return window.top;
2317
- } catch (R) {
2320
+ } catch (O) {
2318
2321
  }
2319
- for (var b = 0, C = function R(T) {
2320
- for (var L = [], W = 0, O = $e(T); W < O.length; W++) {
2321
- var V = O[W];
2322
+ for (var b = 0, T = function O(C) {
2323
+ for (var L = [], W = 0, A = $e(C); W < A.length; W++) {
2324
+ var V = A[W];
2322
2325
  L.push(V);
2323
- for (var j = 0, he = R(V); j < he.length; j++) L.push(he[j]);
2326
+ for (var j = 0, he = O(V); j < he.length; j++) L.push(he[j]);
2324
2327
  }
2325
2328
  return L;
2326
- }(x); b < C.length; b++) {
2327
- var M = C[b];
2329
+ }(x); b < T.length; b++) {
2330
+ var M = T[b];
2328
2331
  try {
2329
2332
  if (M.top) return M.top;
2330
- } catch (R) {
2333
+ } catch (O) {
2331
2334
  }
2332
2335
  if (k(M) === M) return M;
2333
2336
  }
@@ -2370,8 +2373,8 @@ function tr() {
2370
2373
  domain: m,
2371
2374
  promise: g
2372
2375
  };
2373
- (function(W, O) {
2374
- z("responseListeners").set(W, O);
2376
+ (function(W, A) {
2377
+ z("responseListeners").set(W, A);
2375
2378
  })(I, x);
2376
2379
  var b = H("requestPromises").getOrSet(s, function() {
2377
2380
  return [];
@@ -2381,16 +2384,16 @@ function tr() {
2381
2384
  z("erroredResponseListeners").set(W, !0);
2382
2385
  })(I), vt(I);
2383
2386
  });
2384
- var C = function(W) {
2387
+ var T = function(W) {
2385
2388
  return H("knownWindows").get(W, !1);
2386
- }(s) ? 1e4 : 2e3, M = a, R = C, T = M, L = function(W, O) {
2389
+ }(s) ? 1e4 : 2e3, M = a, O = T, C = M, L = function(W, A) {
2387
2390
  var V;
2388
2391
  return function j() {
2389
2392
  V = setTimeout(function() {
2390
2393
  (function() {
2391
2394
  if (G(s)) return g.reject(new Error("Window closed for " + t + " before " + (x.ack ? "response" : "ack")));
2392
2395
  if (x.cancelled) return g.reject(new Error("Response listener was cancelled for " + t));
2393
- R = Math.max(R - 500, 0), T !== -1 && (T = Math.max(T - 500, 0)), x.ack || R !== 0 ? T === 0 && g.reject(new Error("No response for postMessage " + p + " in " + F() + " in " + M + "ms")) : g.reject(new Error("No ack for postMessage " + p + " in " + F() + " in " + C + "ms"));
2396
+ O = Math.max(O - 500, 0), C !== -1 && (C = Math.max(C - 500, 0)), x.ack || O !== 0 ? C === 0 && g.reject(new Error("No response for postMessage " + p + " in " + F() + " in " + M + "ms")) : g.reject(new Error("No ack for postMessage " + p + " in " + F() + " in " + T + "ms"));
2394
2397
  })(), j();
2395
2398
  }, 500);
2396
2399
  }(), {
@@ -2539,7 +2542,7 @@ function nr() {
2539
2542
  }(Ue)), Ue.exports;
2540
2543
  }
2541
2544
  var Ft = nr();
2542
- const rr = /* @__PURE__ */ Qn(Ft), qe = /* @__PURE__ */ gn({
2545
+ const rr = /* @__PURE__ */ Qn(Ft), _e = /* @__PURE__ */ gn({
2543
2546
  __proto__: null,
2544
2547
  default: rr
2545
2548
  }, [Ft]);