@persona/relay 0.1.3 → 0.1.5

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/relay.js CHANGED
@@ -94,7 +94,7 @@ function fn(e, {
94
94
  onFullscreenResize: R,
95
95
  host: v
96
96
  }) {
97
- const O = (p) => {
97
+ const E = (p) => {
98
98
  const m = Fr(v ?? "production");
99
99
  if (p.origin !== "")
100
100
  try {
@@ -128,8 +128,8 @@ function fn(e, {
128
128
  break;
129
129
  }
130
130
  };
131
- return window.addEventListener("message", O), () => {
132
- window.removeEventListener("message", O);
131
+ return window.addEventListener("message", E), () => {
132
+ window.removeEventListener("message", E);
133
133
  };
134
134
  }
135
135
  var Kr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -169,7 +169,7 @@ var Ue, Vr;
169
169
  function _e() {
170
170
  if (Vr) return Ue;
171
171
  Vr = 1;
172
- var e = typeof Map == "function" && Map.prototype, i = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, u = e && i && typeof i.get == "function" ? i.get : null, l = e && Map.prototype.forEach, g = typeof Set == "function" && Set.prototype, w = Object.getOwnPropertyDescriptor && g ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, R = g && w && typeof w.get == "function" ? w.get : null, v = g && Set.prototype.forEach, O = typeof WeakMap == "function" && WeakMap.prototype, p = O ? WeakMap.prototype.has : null, m = typeof WeakSet == "function" && WeakSet.prototype, y = m ? WeakSet.prototype.has : null, M = typeof WeakRef == "function" && WeakRef.prototype, A = M ? WeakRef.prototype.deref : null, a = Boolean.prototype.valueOf, f = Object.prototype.toString, o = Function.prototype.toString, I = String.prototype.match, h = String.prototype.slice, S = String.prototype.replace, D = String.prototype.toUpperCase, P = String.prototype.toLowerCase, b = RegExp.prototype.test, n = Array.prototype.concat, c = Array.prototype.join, d = Array.prototype.slice, E = Math.floor, _ = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, x = Object.getOwnPropertySymbols, U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, F = typeof Symbol == "function" && typeof Symbol.iterator == "object", W = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === F || !0) ? Symbol.toStringTag : null, $ = Object.prototype.propertyIsEnumerable, G = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
172
+ var e = typeof Map == "function" && Map.prototype, i = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, u = e && i && typeof i.get == "function" ? i.get : null, l = e && Map.prototype.forEach, g = typeof Set == "function" && Set.prototype, w = Object.getOwnPropertyDescriptor && g ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, R = g && w && typeof w.get == "function" ? w.get : null, v = g && Set.prototype.forEach, E = typeof WeakMap == "function" && WeakMap.prototype, p = E ? WeakMap.prototype.has : null, m = typeof WeakSet == "function" && WeakSet.prototype, y = m ? WeakSet.prototype.has : null, M = typeof WeakRef == "function" && WeakRef.prototype, A = M ? WeakRef.prototype.deref : null, a = Boolean.prototype.valueOf, f = Object.prototype.toString, o = Function.prototype.toString, I = String.prototype.match, h = String.prototype.slice, S = String.prototype.replace, D = String.prototype.toUpperCase, P = String.prototype.toLowerCase, b = RegExp.prototype.test, n = Array.prototype.concat, c = Array.prototype.join, d = Array.prototype.slice, O = Math.floor, _ = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, x = Object.getOwnPropertySymbols, U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, F = typeof Symbol == "function" && typeof Symbol.iterator == "object", W = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === F || !0) ? Symbol.toStringTag : null, $ = Object.prototype.propertyIsEnumerable, G = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
173
173
  return r.__proto__;
174
174
  } : null);
175
175
  function s(r, t) {
@@ -177,7 +177,7 @@ function _e() {
177
177
  return t;
178
178
  var N = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
179
179
  if (typeof r == "number") {
180
- var B = r < 0 ? -E(-r) : E(r);
180
+ var B = r < 0 ? -O(-r) : O(r);
181
181
  if (B !== r) {
182
182
  var z = String(B), q = h.call(t, z.length + 1);
183
183
  return S.call(z, N, "$&_") + "." + S.call(S.call(q, /([0-9]{3})/g, "$&_"), /_$/, "");
@@ -185,7 +185,7 @@ function _e() {
185
185
  }
186
186
  return S.call(t, N, "$&_");
187
187
  }
188
- var T = pn, K = T.custom, X = Q(K) ? K : null, ie = {
188
+ var L = pn, K = L.custom, X = Q(K) ? K : null, ie = {
189
189
  __proto__: null,
190
190
  double: '"',
191
191
  single: "'"
@@ -244,8 +244,8 @@ function _e() {
244
244
  return r(Se, q, B + 1, z);
245
245
  }
246
246
  if (typeof t == "function" && !j(t)) {
247
- var Lr = ve(t), Br = Re(t, ne);
248
- return "[Function" + (Lr ? ": " + Lr : " (anonymous)") + "]" + (Br.length > 0 ? " { " + c.call(Br, ", ") + " }" : "");
247
+ var Tr = ve(t), Br = Re(t, ne);
248
+ return "[Function" + (Tr ? ": " + Tr : " (anonymous)") + "]" + (Br.length > 0 ? " { " + c.call(Br, ", ") + " }" : "");
249
249
  }
250
250
  if (Q(t)) {
251
251
  var Ur = F ? S.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : U.call(t);
@@ -267,8 +267,8 @@ function _e() {
267
267
  return !("cause" in Error.prototype) && "cause" in t && !$.call(t, "cause") ? "{ [" + String(t) + "] " + c.call(n.call("[cause]: " + ne(t.cause), $e), ", ") + " }" : $e.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + c.call($e, ", ") + " }";
268
268
  }
269
269
  if (typeof t == "object" && se) {
270
- if (X && typeof t[X] == "function" && T)
271
- return T(t, { depth: Fe - B });
270
+ if (X && typeof t[X] == "function" && L)
271
+ return L(t, { depth: Fe - B });
272
272
  if (se !== "symbol" && typeof t.inspect == "function")
273
273
  return t.inspect();
274
274
  }
@@ -276,13 +276,13 @@ function _e() {
276
276
  var zr = [];
277
277
  return l && l.call(t, function(Se, Ie) {
278
278
  zr.push(ne(Ie, t, !0) + " => " + ne(Se, t));
279
- }), Tr("Map", u.call(t), zr, we);
279
+ }), Lr("Map", u.call(t), zr, we);
280
280
  }
281
281
  if (ge(t)) {
282
282
  var Wr = [];
283
283
  return v && v.call(t, function(Se) {
284
284
  Wr.push(ne(Se, t));
285
- }), Tr("Set", R.call(t), Wr, we);
285
+ }), Lr("Set", R.call(t), Wr, we);
286
286
  }
287
287
  if (he(t))
288
288
  return qe("WeakMap");
@@ -290,7 +290,7 @@ function _e() {
290
290
  return qe("WeakSet");
291
291
  if (me(t))
292
292
  return qe("WeakRef");
293
- if (L(t))
293
+ if (T(t))
294
294
  return Ee(ne(Number(t)));
295
295
  if (ee(t))
296
296
  return Ee(ne(_.call(t)));
@@ -303,8 +303,8 @@ function _e() {
303
303
  if (typeof globalThis < "u" && t === globalThis || typeof Kr < "u" && t === Kr)
304
304
  return "{ [object globalThis] }";
305
305
  if (!ue(t) && !j(t)) {
306
- var Ne = Re(t, ne), kr = G ? G(t) === Object.prototype : t instanceof Object || t.constructor === Object, Te = t instanceof Object ? "" : "null prototype", Gr = !kr && W && Object(t) === t && W in t ? h.call(re(t), 8, -1) : Te ? "Object" : "", rn = kr || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", Le = rn + (Gr || Te ? "[" + c.call(n.call([], Gr || [], Te || []), ": ") + "] " : "");
307
- return Ne.length === 0 ? Le + "{}" : we ? Le + "{" + Me(Ne, we) + "}" : Le + "{ " + c.call(Ne, ", ") + " }";
306
+ var Ne = Re(t, ne), kr = G ? G(t) === Object.prototype : t instanceof Object || t.constructor === Object, Le = t instanceof Object ? "" : "null prototype", Gr = !kr && W && Object(t) === t && W in t ? h.call(re(t), 8, -1) : Le ? "Object" : "", rn = kr || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", Te = rn + (Gr || Le ? "[" + c.call(n.call([], Gr || [], Le || []), ": ") + "] " : "");
307
+ return Ne.length === 0 ? Te + "{}" : we ? Te + "{" + Me(Ne, we) + "}" : Te + "{ " + c.call(Ne, ", ") + " }";
308
308
  }
309
309
  return String(t);
310
310
  };
@@ -333,7 +333,7 @@ function _e() {
333
333
  function k(r) {
334
334
  return re(r) === "[object String]" && Z(r);
335
335
  }
336
- function L(r) {
336
+ function T(r) {
337
337
  return re(r) === "[object Number]" && Z(r);
338
338
  }
339
339
  function H(r) {
@@ -482,7 +482,7 @@ function _e() {
482
482
  function qe(r) {
483
483
  return r + " { ? }";
484
484
  }
485
- function Tr(r, t, N, B) {
485
+ function Lr(r, t, N, B) {
486
486
  var z = B ? Me(N, B) : c.call(N, ", ");
487
487
  return r + " (" + t + ") {" + z + "}";
488
488
  }
@@ -540,53 +540,53 @@ var ze, Jr;
540
540
  function yn() {
541
541
  if (Jr) return ze;
542
542
  Jr = 1;
543
- var e = /* @__PURE__ */ _e(), i = /* @__PURE__ */ be(), u = function(v, O, p) {
543
+ var e = /* @__PURE__ */ _e(), i = /* @__PURE__ */ be(), u = function(v, E, p) {
544
544
  for (var m = v, y; (y = m.next) != null; m = y)
545
- if (y.key === O)
545
+ if (y.key === E)
546
546
  return m.next = y.next, p || (y.next = /** @type {NonNullable<typeof list.next>} */
547
547
  v.next, v.next = y), y;
548
- }, l = function(v, O) {
548
+ }, l = function(v, E) {
549
549
  if (v) {
550
- var p = u(v, O);
550
+ var p = u(v, E);
551
551
  return p && p.value;
552
552
  }
553
- }, g = function(v, O, p) {
554
- var m = u(v, O);
553
+ }, g = function(v, E, p) {
554
+ var m = u(v, E);
555
555
  m ? m.value = p : v.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
556
556
  {
557
557
  // eslint-disable-line no-param-reassign, no-extra-parens
558
- key: O,
558
+ key: E,
559
559
  next: v.next,
560
560
  value: p
561
561
  };
562
- }, w = function(v, O) {
563
- return v ? !!u(v, O) : !1;
564
- }, R = function(v, O) {
562
+ }, w = function(v, E) {
563
+ return v ? !!u(v, E) : !1;
564
+ }, R = function(v, E) {
565
565
  if (v)
566
- return u(v, O, !0);
566
+ return u(v, E, !0);
567
567
  };
568
568
  return ze = function() {
569
- var O, p = {
569
+ var E, p = {
570
570
  assert: function(m) {
571
571
  if (!p.has(m))
572
572
  throw new i("Side channel does not contain " + e(m));
573
573
  },
574
574
  delete: function(m) {
575
- var y = R(O, m);
576
- return y && O && !O.next && (O = void 0), !!y;
575
+ var y = R(E, m);
576
+ return y && E && !E.next && (E = void 0), !!y;
577
577
  },
578
578
  get: function(m) {
579
- return l(O, m);
579
+ return l(E, m);
580
580
  },
581
581
  has: function(m) {
582
- return w(O, m);
582
+ return w(E, m);
583
583
  },
584
584
  set: function(m, y) {
585
- O || (O = {
585
+ E || (E = {
586
586
  next: void 0
587
587
  }), g(
588
588
  /** @type {NonNullable<typeof $o>} */
589
- O,
589
+ E,
590
590
  m,
591
591
  y
592
592
  );
@@ -746,22 +746,22 @@ var cr, wt;
746
746
  function Fn() {
747
747
  if (wt) return cr;
748
748
  wt = 1;
749
- var e = "Function.prototype.bind called on incompatible ", i = Object.prototype.toString, u = Math.max, l = "[object Function]", g = function(O, p) {
750
- for (var m = [], y = 0; y < O.length; y += 1)
751
- m[y] = O[y];
749
+ var e = "Function.prototype.bind called on incompatible ", i = Object.prototype.toString, u = Math.max, l = "[object Function]", g = function(E, p) {
750
+ for (var m = [], y = 0; y < E.length; y += 1)
751
+ m[y] = E[y];
752
752
  for (var M = 0; M < p.length; M += 1)
753
- m[M + O.length] = p[M];
753
+ m[M + E.length] = p[M];
754
754
  return m;
755
- }, w = function(O, p) {
756
- for (var m = [], y = p, M = 0; y < O.length; y += 1, M += 1)
757
- m[M] = O[y];
755
+ }, w = function(E, p) {
756
+ for (var m = [], y = p, M = 0; y < E.length; y += 1, M += 1)
757
+ m[M] = E[y];
758
758
  return m;
759
- }, R = function(v, O) {
759
+ }, R = function(v, E) {
760
760
  for (var p = "", m = 0; m < v.length; m += 1)
761
- p += v[m], m + 1 < v.length && (p += O);
761
+ p += v[m], m + 1 < v.length && (p += E);
762
762
  return p;
763
763
  };
764
- return cr = function(O) {
764
+ return cr = function(E) {
765
765
  var p = this;
766
766
  if (typeof p != "function" || i.apply(p) !== l)
767
767
  throw new TypeError(e + p);
@@ -774,7 +774,7 @@ function Fn() {
774
774
  return Object(I) === I ? I : this;
775
775
  }
776
776
  return p.apply(
777
- O,
777
+ E,
778
778
  g(m, arguments)
779
779
  );
780
780
  }, A = u(0, p.length - m.length), a = [], f = 0; f < A; f++)
@@ -864,7 +864,7 @@ function Nn() {
864
864
  } : null, gr;
865
865
  }
866
866
  var wr, _t;
867
- function Tn() {
867
+ function Ln() {
868
868
  if (_t) return wr;
869
869
  _t = 1;
870
870
  var e = Function.prototype.call, i = Object.prototype.hasOwnProperty, u = xe();
@@ -874,7 +874,7 @@ var Sr, xt;
874
874
  function Cr() {
875
875
  if (xt) return Sr;
876
876
  xt = 1;
877
- var e, i = /* @__PURE__ */ Ut(), u = /* @__PURE__ */ dn(), l = /* @__PURE__ */ vn(), g = /* @__PURE__ */ hn(), w = /* @__PURE__ */ mn(), R = /* @__PURE__ */ gn(), v = /* @__PURE__ */ be(), O = /* @__PURE__ */ wn(), p = /* @__PURE__ */ Sn(), m = /* @__PURE__ */ bn(), y = /* @__PURE__ */ En(), M = /* @__PURE__ */ On(), A = /* @__PURE__ */ An(), a = /* @__PURE__ */ Rn(), f = /* @__PURE__ */ In(), o = Function, I = function(j) {
877
+ var e, i = /* @__PURE__ */ Ut(), u = /* @__PURE__ */ dn(), l = /* @__PURE__ */ vn(), g = /* @__PURE__ */ hn(), w = /* @__PURE__ */ mn(), R = /* @__PURE__ */ gn(), v = /* @__PURE__ */ be(), E = /* @__PURE__ */ wn(), p = /* @__PURE__ */ Sn(), m = /* @__PURE__ */ bn(), y = /* @__PURE__ */ En(), M = /* @__PURE__ */ On(), A = /* @__PURE__ */ An(), a = /* @__PURE__ */ Rn(), f = /* @__PURE__ */ In(), o = Function, I = function(j) {
878
878
  try {
879
879
  return o('"use strict"; return (' + j + ").constructor;")();
880
880
  } catch {
@@ -891,7 +891,7 @@ function Cr() {
891
891
  return D;
892
892
  }
893
893
  }
894
- })() : D, b = Mn()(), n = Nn(), c = kt(), d = Wt(), E = Gt(), _ = Dr(), x = {}, U = typeof Uint8Array > "u" || !n ? e : n(Uint8Array), F = {
894
+ })() : D, b = Mn()(), n = Nn(), c = kt(), d = Wt(), O = Gt(), _ = Dr(), x = {}, U = typeof Uint8Array > "u" || !n ? e : n(Uint8Array), F = {
895
895
  __proto__: null,
896
896
  "%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
897
897
  "%Array%": Array,
@@ -958,12 +958,12 @@ function Cr() {
958
958
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? e : Uint8ClampedArray,
959
959
  "%Uint16Array%": typeof Uint16Array > "u" ? e : Uint16Array,
960
960
  "%Uint32Array%": typeof Uint32Array > "u" ? e : Uint32Array,
961
- "%URIError%": O,
961
+ "%URIError%": E,
962
962
  "%WeakMap%": typeof WeakMap > "u" ? e : WeakMap,
963
963
  "%WeakRef%": typeof WeakRef > "u" ? e : WeakRef,
964
964
  "%WeakSet%": typeof WeakSet > "u" ? e : WeakSet,
965
965
  "%Function.prototype.call%": _,
966
- "%Function.prototype.apply%": E,
966
+ "%Function.prototype.apply%": O,
967
967
  "%Object.defineProperty%": S,
968
968
  "%Object.getPrototypeOf%": c,
969
969
  "%Math.abs%": p,
@@ -991,8 +991,8 @@ function Cr() {
991
991
  else if (C === "%AsyncGeneratorFunction%")
992
992
  k = I("async function* () {}");
993
993
  else if (C === "%AsyncGenerator%") {
994
- var L = j("%AsyncGeneratorFunction%");
995
- L && (k = L.prototype);
994
+ var T = j("%AsyncGeneratorFunction%");
995
+ T && (k = T.prototype);
996
996
  } else if (C === "%AsyncIteratorPrototype%") {
997
997
  var H = j("%AsyncGenerator%");
998
998
  H && n && (k = n(H.prototype));
@@ -1051,25 +1051,25 @@ function Cr() {
1051
1051
  "%URIErrorPrototype%": ["URIError", "prototype"],
1052
1052
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
1053
1053
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
1054
- }, s = xe(), T = /* @__PURE__ */ Tn(), K = s.call(_, Array.prototype.concat), X = s.call(E, Array.prototype.splice), ie = s.call(_, String.prototype.replace), oe = s.call(_, String.prototype.slice), le = s.call(_, RegExp.prototype.exec), ae = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Z = /\\(\\)?/g, fe = function(C) {
1055
- var k = oe(C, 0, 1), L = oe(C, -1);
1056
- if (k === "%" && L !== "%")
1054
+ }, s = xe(), L = /* @__PURE__ */ Ln(), K = s.call(_, Array.prototype.concat), X = s.call(O, Array.prototype.splice), ie = s.call(_, String.prototype.replace), oe = s.call(_, String.prototype.slice), le = s.call(_, RegExp.prototype.exec), ae = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Z = /\\(\\)?/g, fe = function(C) {
1055
+ var k = oe(C, 0, 1), T = oe(C, -1);
1056
+ if (k === "%" && T !== "%")
1057
1057
  throw new R("invalid intrinsic syntax, expected closing `%`");
1058
- if (L === "%" && k !== "%")
1058
+ if (T === "%" && k !== "%")
1059
1059
  throw new R("invalid intrinsic syntax, expected opening `%`");
1060
1060
  var H = [];
1061
1061
  return ie(C, ae, function(Q, ee, V, J) {
1062
1062
  H[H.length] = V ? ie(J, Z, "$1") : ee || Q;
1063
1063
  }), H;
1064
1064
  }, ue = function(C, k) {
1065
- var L = C, H;
1066
- if (T(G, L) && (H = G[L], L = "%" + H[0] + "%"), T(F, L)) {
1067
- var Q = F[L];
1068
- if (Q === x && (Q = $(L)), typeof Q > "u" && !k)
1065
+ var T = C, H;
1066
+ if (L(G, T) && (H = G[T], T = "%" + H[0] + "%"), L(F, T)) {
1067
+ var Q = F[T];
1068
+ if (Q === x && (Q = $(T)), typeof Q > "u" && !k)
1069
1069
  throw new v("intrinsic " + C + " exists, but is not available. Please file an issue!");
1070
1070
  return {
1071
1071
  alias: H,
1072
- name: L,
1072
+ name: T,
1073
1073
  value: Q
1074
1074
  };
1075
1075
  }
@@ -1082,13 +1082,13 @@ function Cr() {
1082
1082
  throw new v('"allowMissing" argument must be a boolean');
1083
1083
  if (le(/^%?[^%]*%?$/, C) === null)
1084
1084
  throw new R("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1085
- var L = fe(C), H = L.length > 0 ? L[0] : "", Q = ue("%" + H + "%", k), ee = Q.name, V = Q.value, J = !1, re = Q.alias;
1086
- re && (H = re[0], X(L, K([0, 1], re)));
1087
- for (var ve = 1, ce = !0; ve < L.length; ve += 1) {
1088
- var te = L[ve], he = oe(te, 0, 1), me = oe(te, -1);
1085
+ var T = fe(C), H = T.length > 0 ? T[0] : "", Q = ue("%" + H + "%", k), ee = Q.name, V = Q.value, J = !1, re = Q.alias;
1086
+ re && (H = re[0], X(T, K([0, 1], re)));
1087
+ for (var ve = 1, ce = !0; ve < T.length; ve += 1) {
1088
+ var te = T[ve], he = oe(te, 0, 1), me = oe(te, -1);
1089
1089
  if ((he === '"' || he === "'" || he === "`" || me === '"' || me === "'" || me === "`") && he !== me)
1090
1090
  throw new R("property names with quotes must have matching quotes");
1091
- if ((te === "constructor" || !ce) && (J = !0), H += "." + te, ee = "%" + H + "%", T(F, ee))
1091
+ if ((te === "constructor" || !ce) && (J = !0), H += "." + te, ee = "%" + H + "%", L(F, ee))
1092
1092
  V = F[ee];
1093
1093
  else if (V != null) {
1094
1094
  if (!(te in V)) {
@@ -1096,11 +1096,11 @@ function Cr() {
1096
1096
  throw new v("base intrinsic for " + C + " exists, but the property is not available.");
1097
1097
  return;
1098
1098
  }
1099
- if (h && ve + 1 >= L.length) {
1099
+ if (h && ve + 1 >= T.length) {
1100
1100
  var ge = h(V, te);
1101
1101
  ce = !!ge, ce && "get" in ge && !("originalValue" in ge.get) ? V = ge.get : V = V[te];
1102
1102
  } else
1103
- ce = T(V, te), V = V[te];
1103
+ ce = L(V, te), V = V[te];
1104
1104
  ce && !J && (F[ee] = V);
1105
1105
  }
1106
1106
  }
@@ -1127,7 +1127,7 @@ var Er, Mt;
1127
1127
  function Kt() {
1128
1128
  if (Mt) return Er;
1129
1129
  Mt = 1;
1130
- var e = /* @__PURE__ */ Cr(), i = /* @__PURE__ */ jt(), u = /* @__PURE__ */ _e(), l = /* @__PURE__ */ be(), g = e("%Map%", !0), w = i("Map.prototype.get", !0), R = i("Map.prototype.set", !0), v = i("Map.prototype.has", !0), O = i("Map.prototype.delete", !0), p = i("Map.prototype.size", !0);
1130
+ var e = /* @__PURE__ */ Cr(), i = /* @__PURE__ */ jt(), u = /* @__PURE__ */ _e(), l = /* @__PURE__ */ be(), g = e("%Map%", !0), w = i("Map.prototype.get", !0), R = i("Map.prototype.set", !0), v = i("Map.prototype.has", !0), E = i("Map.prototype.delete", !0), p = i("Map.prototype.size", !0);
1131
1131
  return Er = !!g && /** @type {Exclude<import('.'), false>} */
1132
1132
  function() {
1133
1133
  var y, M = {
@@ -1137,7 +1137,7 @@ function Kt() {
1137
1137
  },
1138
1138
  delete: function(A) {
1139
1139
  if (y) {
1140
- var a = O(y, A);
1140
+ var a = E(y, A);
1141
1141
  return p(y) === 0 && (y = void 0), a;
1142
1142
  }
1143
1143
  return !1;
@@ -1157,10 +1157,10 @@ function Kt() {
1157
1157
  }, Er;
1158
1158
  }
1159
1159
  var Or, Ft;
1160
- function Ln() {
1160
+ function Tn() {
1161
1161
  if (Ft) return Or;
1162
1162
  Ft = 1;
1163
- var e = /* @__PURE__ */ Cr(), i = /* @__PURE__ */ jt(), u = /* @__PURE__ */ _e(), l = Kt(), g = /* @__PURE__ */ be(), w = e("%WeakMap%", !0), R = i("WeakMap.prototype.get", !0), v = i("WeakMap.prototype.set", !0), O = i("WeakMap.prototype.has", !0), p = i("WeakMap.prototype.delete", !0);
1163
+ var e = /* @__PURE__ */ Cr(), i = /* @__PURE__ */ jt(), u = /* @__PURE__ */ _e(), l = Kt(), g = /* @__PURE__ */ be(), w = e("%WeakMap%", !0), R = i("WeakMap.prototype.get", !0), v = i("WeakMap.prototype.set", !0), E = i("WeakMap.prototype.has", !0), p = i("WeakMap.prototype.delete", !0);
1164
1164
  return Or = w ? (
1165
1165
  /** @type {Exclude<import('.'), false>} */
1166
1166
  function() {
@@ -1181,7 +1181,7 @@ function Ln() {
1181
1181
  return w && a && (typeof a == "object" || typeof a == "function") && y ? R(y, a) : M && M.get(a);
1182
1182
  },
1183
1183
  has: function(a) {
1184
- return w && a && (typeof a == "object" || typeof a == "function") && y ? O(y, a) : !!M && M.has(a);
1184
+ return w && a && (typeof a == "object" || typeof a == "function") && y ? E(y, a) : !!M && M.has(a);
1185
1185
  },
1186
1186
  set: function(a, f) {
1187
1187
  w && a && (typeof a == "object" || typeof a == "function") ? (y || (y = new w()), v(y, a, f)) : l && (M || (M = l()), M.set(a, f));
@@ -1195,11 +1195,11 @@ var Ar, Dt;
1195
1195
  function Qt() {
1196
1196
  if (Dt) return Ar;
1197
1197
  Dt = 1;
1198
- var e = /* @__PURE__ */ be(), i = /* @__PURE__ */ _e(), u = yn(), l = Kt(), g = Ln(), w = g || l || u;
1198
+ var e = /* @__PURE__ */ be(), i = /* @__PURE__ */ _e(), u = yn(), l = Kt(), g = Tn(), w = g || l || u;
1199
1199
  return Ar = function() {
1200
- var v, O = {
1200
+ var v, E = {
1201
1201
  assert: function(p) {
1202
- if (!O.has(p))
1202
+ if (!E.has(p))
1203
1203
  throw new e("Side channel does not contain " + i(p));
1204
1204
  },
1205
1205
  delete: function(p) {
@@ -1215,7 +1215,7 @@ function Qt() {
1215
1215
  v || (v = w()), v.set(p, m);
1216
1216
  }
1217
1217
  };
1218
- return O;
1218
+ return E;
1219
1219
  }, Ar;
1220
1220
  }
1221
1221
  var Rr, Ct;
@@ -1250,7 +1250,7 @@ function Vt() {
1250
1250
  return g.has(n);
1251
1251
  }, v = function(n) {
1252
1252
  return g.get(n);
1253
- }, O = function(n, c) {
1253
+ }, E = function(n, c) {
1254
1254
  g.set(n, c);
1255
1255
  }, p = (function() {
1256
1256
  for (var b = [], n = 0; n < 256; ++n)
@@ -1260,28 +1260,28 @@ function Vt() {
1260
1260
  for (; n.length > 1; ) {
1261
1261
  var c = n.pop(), d = c.obj[c.prop];
1262
1262
  if (l(d)) {
1263
- for (var E = [], _ = 0; _ < d.length; ++_)
1264
- typeof d[_] < "u" && (E[E.length] = d[_]);
1265
- c.obj[c.prop] = E;
1263
+ for (var O = [], _ = 0; _ < d.length; ++_)
1264
+ typeof d[_] < "u" && (O[O.length] = d[_]);
1265
+ c.obj[c.prop] = O;
1266
1266
  }
1267
1267
  }
1268
1268
  }, y = function(n, c) {
1269
- for (var d = c && c.plainObjects ? { __proto__: null } : {}, E = 0; E < n.length; ++E)
1270
- typeof n[E] < "u" && (d[E] = n[E]);
1269
+ for (var d = c && c.plainObjects ? { __proto__: null } : {}, O = 0; O < n.length; ++O)
1270
+ typeof n[O] < "u" && (d[O] = n[O]);
1271
1271
  return d;
1272
1272
  }, M = function b(n, c, d) {
1273
1273
  if (!c)
1274
1274
  return n;
1275
1275
  if (typeof c != "object" && typeof c != "function") {
1276
1276
  if (l(n)) {
1277
- var E = n.length;
1278
- if (d && typeof d.arrayLimit == "number" && E > d.arrayLimit)
1279
- return w(y(n.concat(c), d), E);
1280
- n[E] = c;
1277
+ var O = n.length;
1278
+ if (d && typeof d.arrayLimit == "number" && O > d.arrayLimit)
1279
+ return w(y(n.concat(c), d), O);
1280
+ n[O] = c;
1281
1281
  } else if (n && typeof n == "object")
1282
1282
  if (R(n)) {
1283
1283
  var _ = v(n) + 1;
1284
- n[_] = c, O(n, _);
1284
+ n[_] = c, E(n, _);
1285
1285
  } else {
1286
1286
  if (d && d.strictMerge)
1287
1287
  return [n, c];
@@ -1303,23 +1303,23 @@ function Vt() {
1303
1303
  return d && typeof d.arrayLimit == "number" && $.length > d.arrayLimit ? w(y($, d), $.length - 1) : $;
1304
1304
  }
1305
1305
  var G = n;
1306
- return l(n) && !l(c) && (G = y(n, d)), l(n) && l(c) ? (c.forEach(function(s, T) {
1307
- if (u.call(n, T)) {
1308
- var K = n[T];
1309
- K && typeof K == "object" && s && typeof s == "object" ? n[T] = b(K, s, d) : n[n.length] = s;
1306
+ return l(n) && !l(c) && (G = y(n, d)), l(n) && l(c) ? (c.forEach(function(s, L) {
1307
+ if (u.call(n, L)) {
1308
+ var K = n[L];
1309
+ K && typeof K == "object" && s && typeof s == "object" ? n[L] = b(K, s, d) : n[n.length] = s;
1310
1310
  } else
1311
- n[T] = s;
1312
- }), n) : Object.keys(c).reduce(function(s, T) {
1313
- var K = c[T];
1314
- if (u.call(s, T) ? s[T] = b(s[T], K, d) : s[T] = K, R(c) && !R(s) && w(s, v(c)), R(s)) {
1315
- var X = parseInt(T, 10);
1316
- String(X) === T && X >= 0 && X > v(s) && O(s, X);
1311
+ n[L] = s;
1312
+ }), n) : Object.keys(c).reduce(function(s, L) {
1313
+ var K = c[L];
1314
+ if (u.call(s, L) ? s[L] = b(s[L], K, d) : s[L] = K, R(c) && !R(s) && w(s, v(c)), R(s)) {
1315
+ var X = parseInt(L, 10);
1316
+ String(X) === L && X >= 0 && X > v(s) && E(s, X);
1317
1317
  }
1318
1318
  return s;
1319
1319
  }, G);
1320
1320
  }, A = function(n, c) {
1321
- return Object.keys(c).reduce(function(d, E) {
1322
- return d[E] = c[E], d;
1321
+ return Object.keys(c).reduce(function(d, O) {
1322
+ return d[O] = c[O], d;
1323
1323
  }, n);
1324
1324
  }, a = function(b, n, c) {
1325
1325
  var d = b.replace(/\+/g, " ");
@@ -1330,13 +1330,13 @@ function Vt() {
1330
1330
  } catch {
1331
1331
  return d;
1332
1332
  }
1333
- }, f = 1024, o = function(n, c, d, E, _) {
1333
+ }, f = 1024, o = function(n, c, d, O, _) {
1334
1334
  if (n.length === 0)
1335
1335
  return n;
1336
1336
  var x = n;
1337
1337
  if (typeof n == "symbol" ? x = Symbol.prototype.toString.call(n) : typeof n != "string" && (x = String(n)), d === "iso-8859-1")
1338
- return escape(x).replace(/%u[0-9a-f]{4}/gi, function(T) {
1339
- return "%26%23" + parseInt(T.slice(2), 16) + "%3B";
1338
+ return escape(x).replace(/%u[0-9a-f]{4}/gi, function(L) {
1339
+ return "%26%23" + parseInt(L.slice(2), 16) + "%3B";
1340
1340
  });
1341
1341
  for (var U = "", F = 0; F < x.length; F += f) {
1342
1342
  for (var W = x.length >= f ? x.slice(F, F + f) : x, $ = [], G = 0; G < W.length; ++G) {
@@ -1363,8 +1363,8 @@ function Vt() {
1363
1363
  }
1364
1364
  return U;
1365
1365
  }, I = function(n) {
1366
- for (var c = [{ obj: { o: n }, prop: "o" }], d = [], E = 0; E < c.length; ++E)
1367
- for (var _ = c[E], x = _.obj[_.prop], U = Object.keys(x), F = 0; F < U.length; ++F) {
1366
+ for (var c = [{ obj: { o: n }, prop: "o" }], d = [], O = 0; O < c.length; ++O)
1367
+ for (var _ = c[O], x = _.obj[_.prop], U = Object.keys(x), F = 0; F < U.length; ++F) {
1368
1368
  var W = U[F], $ = x[W];
1369
1369
  typeof $ == "object" && $ !== null && d.indexOf($) === -1 && (c[c.length] = { obj: x, prop: W }, d[d.length] = $);
1370
1370
  }
@@ -1373,17 +1373,17 @@ function Vt() {
1373
1373
  return Object.prototype.toString.call(n) === "[object RegExp]";
1374
1374
  }, S = function(n) {
1375
1375
  return !n || typeof n != "object" ? !1 : !!(n.constructor && n.constructor.isBuffer && n.constructor.isBuffer(n));
1376
- }, D = function(n, c, d, E) {
1376
+ }, D = function(n, c, d, O) {
1377
1377
  if (R(n)) {
1378
1378
  var _ = v(n) + 1;
1379
- return n[_] = c, O(n, _), n;
1379
+ return n[_] = c, E(n, _), n;
1380
1380
  }
1381
1381
  var x = [].concat(n, c);
1382
- return x.length > d ? w(y(x, { plainObjects: E }), x.length - 1) : x;
1382
+ return x.length > d ? w(y(x, { plainObjects: O }), x.length - 1) : x;
1383
1383
  }, P = function(n, c) {
1384
1384
  if (l(n)) {
1385
- for (var d = [], E = 0; E < n.length; E += 1)
1386
- d[d.length] = c(n[E]);
1385
+ for (var d = [], O = 0; O < n.length; O += 1)
1386
+ d[d.length] = c(n[O]);
1387
1387
  return d;
1388
1388
  }
1389
1389
  return c(n);
@@ -1420,7 +1420,7 @@ function Bn() {
1420
1420
  }
1421
1421
  }, w = Array.isArray, R = Array.prototype.push, v = function(f, o) {
1422
1422
  R.apply(f, w(o) ? o : [o]);
1423
- }, O = Date.prototype.toISOString, p = u.default, m = {
1423
+ }, E = Date.prototype.toISOString, p = u.default, m = {
1424
1424
  addQueryPrefix: !1,
1425
1425
  allowDots: !1,
1426
1426
  allowEmptyArrays: !1,
@@ -1439,21 +1439,21 @@ function Bn() {
1439
1439
  // deprecated
1440
1440
  indices: !1,
1441
1441
  serializeDate: function(o) {
1442
- return O.call(o);
1442
+ return E.call(o);
1443
1443
  },
1444
1444
  skipNulls: !1,
1445
1445
  strictNullHandling: !1
1446
1446
  }, y = function(o) {
1447
1447
  return typeof o == "string" || typeof o == "number" || typeof o == "boolean" || typeof o == "symbol" || typeof o == "bigint";
1448
- }, M = {}, A = function f(o, I, h, S, D, P, b, n, c, d, E, _, x, U, F, W, $, G) {
1449
- for (var s = o, T = G, K = 0, X = !1; (T = T.get(M)) !== void 0 && !X; ) {
1450
- var ie = T.get(o);
1448
+ }, M = {}, A = function f(o, I, h, S, D, P, b, n, c, d, O, _, x, U, F, W, $, G) {
1449
+ for (var s = o, L = G, K = 0, X = !1; (L = L.get(M)) !== void 0 && !X; ) {
1450
+ var ie = L.get(o);
1451
1451
  if (K += 1, typeof ie < "u") {
1452
1452
  if (ie === K)
1453
1453
  throw new RangeError("Cyclic object value");
1454
1454
  X = !0;
1455
1455
  }
1456
- typeof T.get(M) > "u" && (K = 0);
1456
+ typeof L.get(M) > "u" && (K = 0);
1457
1457
  }
1458
1458
  if (typeof d == "function" ? s = d(I, s) : s instanceof Date ? s = x(s) : h === "comma" && w(s) && (s = i.maybeMap(s, function(ee) {
1459
1459
  return ee instanceof Date ? x(ee) : ee;
@@ -1479,7 +1479,7 @@ function Bn() {
1479
1479
  ae = d;
1480
1480
  else {
1481
1481
  var Z = Object.keys(s);
1482
- ae = E ? Z.sort(E) : Z;
1482
+ ae = O ? Z.sort(O) : Z;
1483
1483
  }
1484
1484
  var fe = n ? String(I).replace(/\./g, "%2E") : String(I), ue = S && w(s) && s.length === 1 ? fe + "[]" : fe;
1485
1485
  if (D && w(s) && s.length === 0)
@@ -1487,7 +1487,7 @@ function Bn() {
1487
1487
  for (var j = 0; j < ae.length; ++j) {
1488
1488
  var C = ae[j], k = typeof C == "object" && C && typeof C.value < "u" ? C.value : s[C];
1489
1489
  if (!(b && k === null)) {
1490
- var L = _ && n ? String(C).replace(/\./g, "%2E") : String(C), H = w(s) ? typeof h == "function" ? h(ue, L) : ue : ue + (_ ? "." + L : "[" + L + "]");
1490
+ var T = _ && n ? String(C).replace(/\./g, "%2E") : String(C), H = w(s) ? typeof h == "function" ? h(ue, T) : ue : ue + (_ ? "." + T : "[" + T + "]");
1491
1491
  G.set(o, K);
1492
1492
  var Q = e();
1493
1493
  Q.set(M, G), v(le, f(
@@ -1501,7 +1501,7 @@ function Bn() {
1501
1501
  n,
1502
1502
  h === "comma" && W && w(s) ? null : c,
1503
1503
  d,
1504
- E,
1504
+ O,
1505
1505
  _,
1506
1506
  x,
1507
1507
  U,
@@ -1568,10 +1568,10 @@ function Bn() {
1568
1568
  var b = g[h.arrayFormat], n = b === "comma" && h.commaRoundTrip;
1569
1569
  S || (S = Object.keys(I)), h.sort && S.sort(h.sort);
1570
1570
  for (var c = e(), d = 0; d < S.length; ++d) {
1571
- var E = S[d], _ = I[E];
1571
+ var O = S[d], _ = I[O];
1572
1572
  h.skipNulls && _ === null || v(P, A(
1573
1573
  _,
1574
- E,
1574
+ O,
1575
1575
  b,
1576
1576
  n,
1577
1577
  h.allowEmptyArrays,
@@ -1594,10 +1594,10 @@ function Bn() {
1594
1594
  return h.charsetSentinel && (h.charset === "iso-8859-1" ? U += "utf8=%26%2310003%3B&" : U += "utf8=%E2%9C%93&"), x.length > 0 ? U + x : "";
1595
1595
  }, Ir;
1596
1596
  }
1597
- var _r, Tt;
1597
+ var _r, Lt;
1598
1598
  function Un() {
1599
- if (Tt) return _r;
1600
- Tt = 1;
1599
+ if (Lt) return _r;
1600
+ Lt = 1;
1601
1601
  var e = /* @__PURE__ */ Vt(), i = Object.prototype.hasOwnProperty, u = Array.isArray, l = {
1602
1602
  allowDots: !1,
1603
1603
  allowEmptyArrays: !1,
@@ -1631,7 +1631,7 @@ function Un() {
1631
1631
  if (a.throwOnLimitExceeded && f >= a.arrayLimit)
1632
1632
  throw new RangeError("Array limit exceeded. Only " + a.arrayLimit + " element" + (a.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
1633
1633
  return A;
1634
- }, R = "utf8=%26%2310003%3B", v = "utf8=%E2%9C%93", O = function(a, f) {
1634
+ }, R = "utf8=%26%2310003%3B", v = "utf8=%E2%9C%93", E = function(a, f) {
1635
1635
  var o = { __proto__: null }, I = f.ignoreQueryPrefix ? a.replace(/^\?/, "") : a;
1636
1636
  I = I.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1637
1637
  var h = f.parameterLimit === 1 / 0 ? void 0 : f.parameterLimit, S = I.split(
@@ -1646,12 +1646,12 @@ function Un() {
1646
1646
  S[P].indexOf("utf8=") === 0 && (S[P] === v ? b = "utf-8" : S[P] === R && (b = "iso-8859-1"), D = P, P = S.length);
1647
1647
  for (P = 0; P < S.length; ++P)
1648
1648
  if (P !== D) {
1649
- var n = S[P], c = n.indexOf("]="), d = c === -1 ? n.indexOf("=") : c + 1, E, _;
1650
- if (d === -1 ? (E = f.decoder(n, l.decoder, b, "key"), _ = f.strictNullHandling ? null : "") : (E = f.decoder(n.slice(0, d), l.decoder, b, "key"), E !== null && (_ = e.maybeMap(
1649
+ var n = S[P], c = n.indexOf("]="), d = c === -1 ? n.indexOf("=") : c + 1, O, _;
1650
+ if (d === -1 ? (O = f.decoder(n, l.decoder, b, "key"), _ = f.strictNullHandling ? null : "") : (O = f.decoder(n.slice(0, d), l.decoder, b, "key"), O !== null && (_ = e.maybeMap(
1651
1651
  w(
1652
1652
  n.slice(d + 1),
1653
1653
  f,
1654
- u(o[E]) ? o[E].length : 0
1654
+ u(o[O]) ? o[O].length : 0
1655
1655
  ),
1656
1656
  function(U) {
1657
1657
  return f.decoder(U, l.decoder, b, "value");
@@ -1661,14 +1661,14 @@ function Un() {
1661
1661
  throw new RangeError("Array limit exceeded. Only " + f.arrayLimit + " element" + (f.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
1662
1662
  _ = e.combine([], _, f.arrayLimit, f.plainObjects);
1663
1663
  }
1664
- if (E !== null) {
1665
- var x = i.call(o, E);
1666
- x && (f.duplicates === "combine" || n.indexOf("[]=") > -1) ? o[E] = e.combine(
1667
- o[E],
1664
+ if (O !== null) {
1665
+ var x = i.call(o, O);
1666
+ x && (f.duplicates === "combine" || n.indexOf("[]=") > -1) ? o[O] = e.combine(
1667
+ o[O],
1668
1668
  _,
1669
1669
  f.arrayLimit,
1670
1670
  f.plainObjects
1671
- ) : (!x || f.duplicates === "last") && (o[E] = _);
1671
+ ) : (!x || f.duplicates === "last") && (o[O] = _);
1672
1672
  }
1673
1673
  }
1674
1674
  return o;
@@ -1689,15 +1689,15 @@ function Un() {
1689
1689
  );
1690
1690
  else {
1691
1691
  P = f.plainObjects ? { __proto__: null } : {};
1692
- var n = b.charAt(0) === "[" && b.charAt(b.length - 1) === "]" ? b.slice(1, -1) : b, c = f.decodeDotInKeys ? n.replace(/%2E/g, ".") : n, d = parseInt(c, 10), E = !isNaN(d) && b !== c && String(d) === c && d >= 0 && f.parseArrays;
1692
+ var n = b.charAt(0) === "[" && b.charAt(b.length - 1) === "]" ? b.slice(1, -1) : b, c = f.decodeDotInKeys ? n.replace(/%2E/g, ".") : n, d = parseInt(c, 10), O = !isNaN(d) && b !== c && String(d) === c && d >= 0 && f.parseArrays;
1693
1693
  if (!f.parseArrays && c === "")
1694
1694
  P = { 0: S };
1695
- else if (E && d < f.arrayLimit)
1695
+ else if (O && d < f.arrayLimit)
1696
1696
  P = [], P[d] = S;
1697
1697
  else {
1698
- if (E && f.throwOnLimitExceeded)
1698
+ if (O && f.throwOnLimitExceeded)
1699
1699
  throw new RangeError("Array limit exceeded. Only " + f.arrayLimit + " element" + (f.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
1700
- E ? (P[d] = S, e.markOverflow(P, d)) : c !== "__proto__" && (P[c] = S);
1700
+ O ? (P[d] = S, e.markOverflow(P, d)) : c !== "__proto__" && (P[c] = S);
1701
1701
  }
1702
1702
  }
1703
1703
  S = P;
@@ -1779,17 +1779,17 @@ function Un() {
1779
1779
  var f = M(a);
1780
1780
  if (A === "" || A === null || typeof A > "u")
1781
1781
  return f.plainObjects ? { __proto__: null } : {};
1782
- for (var o = typeof A == "string" ? O(A, f) : A, I = f.plainObjects ? { __proto__: null } : {}, h = Object.keys(o), S = 0; S < h.length; ++S) {
1782
+ for (var o = typeof A == "string" ? E(A, f) : A, I = f.plainObjects ? { __proto__: null } : {}, h = Object.keys(o), S = 0; S < h.length; ++S) {
1783
1783
  var D = h[S], P = y(D, o[D], f, typeof A == "string");
1784
1784
  I = e.merge(I, P, f);
1785
1785
  }
1786
1786
  return f.allowSparse === !0 ? I : e.compact(I);
1787
1787
  }, _r;
1788
1788
  }
1789
- var xr, Lt;
1789
+ var xr, Tt;
1790
1790
  function zn() {
1791
- if (Lt) return xr;
1792
- Lt = 1;
1791
+ if (Tt) return xr;
1792
+ Tt = 1;
1793
1793
  var e = /* @__PURE__ */ Bn(), i = /* @__PURE__ */ Un(), u = /* @__PURE__ */ $r();
1794
1794
  return xr = {
1795
1795
  formats: u,
@@ -1798,7 +1798,7 @@ function zn() {
1798
1798
  }, xr;
1799
1799
  }
1800
1800
  var Wn = /* @__PURE__ */ zn();
1801
- const kn = "0.1.3", Gn = [
1801
+ const kn = "0.1.5", Gn = [
1802
1802
  "allow-scripts",
1803
1803
  // Run the widget app
1804
1804
  "allow-same-origin",
@@ -1825,10 +1825,12 @@ function qr(e, i, { accessToken: u, host: l, theme: g }, w = "/relay-widget") {
1825
1825
  skipNulls: !0
1826
1826
  }
1827
1827
  );
1828
- return w === "/relay-popover" ? (e.title = "Relay popover", e.className = "relay-widget__popover-iframe", e.allow = "clipboard-write") : w === "/relay-fullscreen" ? (e.title = "Relay fullscreen", e.className = "relay-widget__fullscreen-iframe", e.allow = "camera;microphone;clipboard-write") : (e.title = "Verify via Relay", e.className = "relay-widget__iframe", e.allow = "clipboard-write"), e.setAttribute(
1828
+ w === "/relay-popover" ? (e.title = "Relay popover", e.className = "relay-widget__popover-iframe", e.allow = "clipboard-write") : w === "/relay-fullscreen" ? (e.title = "Relay fullscreen", e.className = "relay-widget__fullscreen-iframe", e.allow = "camera;microphone;clipboard-write") : (e.title = "Verify via Relay", e.className = "relay-widget__iframe", e.allow = "clipboard-write"), e.setAttribute(
1829
1829
  "sandbox",
1830
1830
  Gn.concat(Hn).join(" ")
1831
- ), e.referrerPolicy = "no-referrer", e.src = R + w + v, e;
1831
+ ), e.referrerPolicy = "no-referrer";
1832
+ const E = R + w + v, p = E.replace(/&/g, "&amp;").replace(/"/g, "&quot;");
1833
+ return e.srcdoc = `<!doctype html><meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0;url=${p}">`, e.src = E, e;
1832
1834
  }
1833
1835
  class jn {
1834
1836
  /**
@@ -1838,7 +1840,7 @@ class jn {
1838
1840
  * @param options - Configuration options for the widget
1839
1841
  */
1840
1842
  constructor(i, u) {
1841
- this.relayCSS = new on("relay-widget-styles"), this.resizeObserver = null, this.removeResizeListener = null, this.options = u, this.baseUrl = Fr(this.options.host), this.containerParent = this.resolveContainer(i), this.containerId = an(), this.containerElement = Bt("div", {
1843
+ this.relayCSS = new on("relay-widget-styles"), this.removeResizeListener = null, this.options = u, this.baseUrl = Fr(this.options.host), this.containerParent = this.resolveContainer(i), this.containerId = an(), this.containerElement = Bt("div", {
1842
1844
  class: "relay-widget__container",
1843
1845
  id: this.containerId
1844
1846
  }), this.iframeElement = document.createElement("iframe"), this.popoverIframeElement = document.createElement("iframe"), this.fullscreenIframeElement = document.createElement("iframe"), this.unsubscribeFromEvents = fn(this.containerId, {
@@ -1907,23 +1909,32 @@ class jn {
1907
1909
  document.body.classList.remove("relay-widget__scroll-locked");
1908
1910
  }
1909
1911
  /**
1910
- * Sends the current parent container dimensions to the widget iframe.
1912
+ * Sends current document body dimensions to the given iframes for mobile
1913
+ * detection.
1911
1914
  */
1912
- sendResize() {
1913
- const { clientWidth: i, clientHeight: u } = document.body, l = {
1915
+ sendResize(...i) {
1916
+ const { clientWidth: u, clientHeight: l } = document.body, g = {
1914
1917
  action: Mr.Resize,
1915
1918
  containerId: this.containerId,
1916
- metadata: { width: i, height: u }
1919
+ metadata: { width: u, height: l }
1917
1920
  };
1918
- this.iframeElement.contentWindow?.postMessage(l, this.baseUrl), this.popoverIframeElement.contentWindow?.postMessage(l, this.baseUrl), this.fullscreenIframeElement.contentWindow?.postMessage(l, this.baseUrl);
1921
+ for (const w of i)
1922
+ w.contentWindow?.postMessage(g, this.baseUrl);
1919
1923
  }
1920
1924
  /**
1921
- * Observes the parent container for size changes and forwards
1922
- * dimensions to the widget via postMessage.
1925
+ * Observes the document body for size changes and forwards
1926
+ * resize events to iframes via postMessage. Also sends
1927
+ * once to each on initial iframe load.
1923
1928
  */
1924
1929
  setupResizeObserver() {
1925
- this.iframeElement.addEventListener("load", () => this.sendResize(), { once: !0 });
1926
- const i = () => this.sendResize();
1930
+ this.iframeElement.addEventListener("load", () => this.sendResize(this.iframeElement)), this.popoverIframeElement.addEventListener(
1931
+ "load",
1932
+ () => this.sendResize(this.popoverIframeElement)
1933
+ ), this.fullscreenIframeElement.addEventListener(
1934
+ "load",
1935
+ () => this.sendResize(this.fullscreenIframeElement)
1936
+ );
1937
+ const i = () => this.sendResize(this.iframeElement, this.popoverIframeElement, this.fullscreenIframeElement);
1927
1938
  window.addEventListener("resize", i), this.removeResizeListener = () => window.removeEventListener("resize", i);
1928
1939
  }
1929
1940
  /**
@@ -1932,7 +1943,7 @@ class jn {
1932
1943
  */
1933
1944
  destroy() {
1934
1945
  const i = { action: Mr.Destroy, metadata: {} };
1935
- this.iframeElement.contentWindow?.postMessage(i, this.baseUrl), this.popoverIframeElement.contentWindow?.postMessage(i, this.baseUrl), this.fullscreenIframeElement.contentWindow?.postMessage(i, this.baseUrl), this.relayCSS.unmount(), this.unlockScroll(), this.resizeObserver?.disconnect(), this.resizeObserver = null, this.removeResizeListener?.(), this.removeResizeListener = null, this.containerElement.parentNode && this.containerParent.removeChild(this.containerElement), this.fullscreenIframeElement.parentNode && this.fullscreenIframeElement.parentNode.removeChild(this.fullscreenIframeElement), this.unsubscribeFromEvents();
1946
+ this.iframeElement.contentWindow?.postMessage(i, this.baseUrl), this.popoverIframeElement.contentWindow?.postMessage(i, this.baseUrl), this.fullscreenIframeElement.contentWindow?.postMessage(i, this.baseUrl), this.relayCSS.unmount(), this.unlockScroll(), this.removeResizeListener?.(), this.removeResizeListener = null, this.containerElement.parentNode && this.containerParent.removeChild(this.containerElement), this.fullscreenIframeElement.parentNode && this.fullscreenIframeElement.parentNode.removeChild(this.fullscreenIframeElement), this.unsubscribeFromEvents();
1936
1947
  }
1937
1948
  }
1938
1949
  export {