@persona/relay 0.1.4 → 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/index.d.ts +2 -1
- package/dist/relay.cjs +2 -2
- package/dist/relay.cjs.map +1 -1
- package/dist/relay.js +164 -160
- package/dist/relay.js.map +1 -1
- package/dist/relay.umd.js +3 -3
- package/dist/relay.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/relay.js
CHANGED
|
@@ -94,7 +94,7 @@ function fn(e, {
|
|
|
94
94
|
onFullscreenResize: R,
|
|
95
95
|
host: v
|
|
96
96
|
}) {
|
|
97
|
-
const
|
|
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",
|
|
132
|
-
window.removeEventListener("message",
|
|
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,
|
|
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,10 +177,10 @@ 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 ? -
|
|
180
|
+
var B = r < 0 ? -O(-r) : O(r);
|
|
181
181
|
if (B !== r) {
|
|
182
|
-
var
|
|
183
|
-
return S.call(
|
|
182
|
+
var z = String(B), q = h.call(t, z.length + 1);
|
|
183
|
+
return S.call(z, N, "$&_") + "." + S.call(S.call(q, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
return S.call(t, N, "$&_");
|
|
@@ -194,7 +194,7 @@ function _e() {
|
|
|
194
194
|
double: /(["\\])/g,
|
|
195
195
|
single: /(['\\])/g
|
|
196
196
|
};
|
|
197
|
-
Ue = function r(t, N, B,
|
|
197
|
+
Ue = function r(t, N, B, z) {
|
|
198
198
|
var q = N || {};
|
|
199
199
|
if (J(q, "quoteStyle") && !J(ie, q.quoteStyle))
|
|
200
200
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -230,18 +230,18 @@ function _e() {
|
|
|
230
230
|
if (typeof B > "u" && (B = 0), B >= Fe && Fe > 0 && typeof t == "object")
|
|
231
231
|
return fe(t) ? "[Array]" : "[Object]";
|
|
232
232
|
var we = en(q, B);
|
|
233
|
-
if (typeof
|
|
234
|
-
|
|
235
|
-
else if (ce(
|
|
233
|
+
if (typeof z > "u")
|
|
234
|
+
z = [];
|
|
235
|
+
else if (ce(z, t) >= 0)
|
|
236
236
|
return "[Circular]";
|
|
237
237
|
function ne(Se, Ie, tn) {
|
|
238
|
-
if (Ie && (
|
|
238
|
+
if (Ie && (z = d.call(z), z.push(Ie)), tn) {
|
|
239
239
|
var Hr = {
|
|
240
240
|
depth: q.depth
|
|
241
241
|
};
|
|
242
|
-
return J(q, "quoteStyle") && (Hr.quoteStyle = q.quoteStyle), r(Se, Hr, B + 1,
|
|
242
|
+
return J(q, "quoteStyle") && (Hr.quoteStyle = q.quoteStyle), r(Se, Hr, B + 1, z);
|
|
243
243
|
}
|
|
244
|
-
return r(Se, q, B + 1,
|
|
244
|
+
return r(Se, q, B + 1, z);
|
|
245
245
|
}
|
|
246
246
|
if (typeof t == "function" && !j(t)) {
|
|
247
247
|
var Tr = ve(t), Br = Re(t, ne);
|
|
@@ -273,16 +273,16 @@ function _e() {
|
|
|
273
273
|
return t.inspect();
|
|
274
274
|
}
|
|
275
275
|
if (te(t)) {
|
|
276
|
-
var
|
|
276
|
+
var zr = [];
|
|
277
277
|
return l && l.call(t, function(Se, Ie) {
|
|
278
|
-
|
|
279
|
-
}), Lr("Map", u.call(t),
|
|
278
|
+
zr.push(ne(Ie, t, !0) + " => " + ne(Se, t));
|
|
279
|
+
}), Lr("Map", u.call(t), zr, we);
|
|
280
280
|
}
|
|
281
281
|
if (ge(t)) {
|
|
282
|
-
var
|
|
282
|
+
var Wr = [];
|
|
283
283
|
return v && v.call(t, function(Se) {
|
|
284
|
-
|
|
285
|
-
}), Lr("Set", R.call(t),
|
|
284
|
+
Wr.push(ne(Se, t));
|
|
285
|
+
}), Lr("Set", R.call(t), Wr, we);
|
|
286
286
|
}
|
|
287
287
|
if (he(t))
|
|
288
288
|
return qe("WeakMap");
|
|
@@ -303,20 +303,20 @@ 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, Le = t instanceof Object ? "" : "null prototype", Gr = !kr &&
|
|
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
307
|
return Ne.length === 0 ? Te + "{}" : we ? Te + "{" + Me(Ne, we) + "}" : Te + "{ " + c.call(Ne, ", ") + " }";
|
|
308
308
|
}
|
|
309
309
|
return String(t);
|
|
310
310
|
};
|
|
311
311
|
function le(r, t, N) {
|
|
312
|
-
var B = N.quoteStyle || t,
|
|
313
|
-
return
|
|
312
|
+
var B = N.quoteStyle || t, z = ie[B];
|
|
313
|
+
return z + r + z;
|
|
314
314
|
}
|
|
315
315
|
function ae(r) {
|
|
316
316
|
return S.call(String(r), /"/g, """);
|
|
317
317
|
}
|
|
318
318
|
function Z(r) {
|
|
319
|
-
return !
|
|
319
|
+
return !W || !(typeof r == "object" && (W in r || typeof r[W] < "u"));
|
|
320
320
|
}
|
|
321
321
|
function fe(r) {
|
|
322
322
|
return re(r) === "[object Array]" && Z(r);
|
|
@@ -461,9 +461,9 @@ function _e() {
|
|
|
461
461
|
var N = r.length - t.maxStringLength, B = "... " + N + " more character" + (N > 1 ? "s" : "");
|
|
462
462
|
return Nr(h.call(r, 0, t.maxStringLength), t) + B;
|
|
463
463
|
}
|
|
464
|
-
var
|
|
465
|
-
|
|
466
|
-
var q = S.call(S.call(r,
|
|
464
|
+
var z = oe[t.quoteStyle || "single"];
|
|
465
|
+
z.lastIndex = 0;
|
|
466
|
+
var q = S.call(S.call(r, z, "\\$1"), /[\x00-\x1f]/g, Xt);
|
|
467
467
|
return le(q, "single", t);
|
|
468
468
|
}
|
|
469
469
|
function Xt(r) {
|
|
@@ -483,8 +483,8 @@ function _e() {
|
|
|
483
483
|
return r + " { ? }";
|
|
484
484
|
}
|
|
485
485
|
function Lr(r, t, N, B) {
|
|
486
|
-
var
|
|
487
|
-
return r + " (" + t + ") {" +
|
|
486
|
+
var z = B ? Me(N, B) : c.call(N, ", ");
|
|
487
|
+
return r + " (" + t + ") {" + z + "}";
|
|
488
488
|
}
|
|
489
489
|
function Zt(r) {
|
|
490
490
|
for (var t = 0; t < r.length; t++)
|
|
@@ -518,8 +518,8 @@ function _e() {
|
|
|
518
518
|
var N = fe(r), B = [];
|
|
519
519
|
if (N) {
|
|
520
520
|
B.length = r.length;
|
|
521
|
-
for (var
|
|
522
|
-
B[
|
|
521
|
+
for (var z = 0; z < r.length; z++)
|
|
522
|
+
B[z] = J(r, z) ? t(r[z], r) : "";
|
|
523
523
|
}
|
|
524
524
|
var q = typeof x == "function" ? x(r) : [], se;
|
|
525
525
|
if (F) {
|
|
@@ -536,68 +536,68 @@ function _e() {
|
|
|
536
536
|
}
|
|
537
537
|
return Ue;
|
|
538
538
|
}
|
|
539
|
-
var
|
|
539
|
+
var ze, Jr;
|
|
540
540
|
function yn() {
|
|
541
|
-
if (Jr) return
|
|
541
|
+
if (Jr) return ze;
|
|
542
542
|
Jr = 1;
|
|
543
|
-
var e = /* @__PURE__ */ _e(), i = /* @__PURE__ */ be(), u = function(v,
|
|
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 ===
|
|
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,
|
|
548
|
+
}, l = function(v, E) {
|
|
549
549
|
if (v) {
|
|
550
|
-
var p = u(v,
|
|
550
|
+
var p = u(v, E);
|
|
551
551
|
return p && p.value;
|
|
552
552
|
}
|
|
553
|
-
}, g = function(v,
|
|
554
|
-
var m = u(v,
|
|
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:
|
|
558
|
+
key: E,
|
|
559
559
|
next: v.next,
|
|
560
560
|
value: p
|
|
561
561
|
};
|
|
562
|
-
}, w = function(v,
|
|
563
|
-
return v ? !!u(v,
|
|
564
|
-
}, R = function(v,
|
|
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,
|
|
566
|
+
return u(v, E, !0);
|
|
567
567
|
};
|
|
568
|
-
return
|
|
569
|
-
var
|
|
568
|
+
return ze = function() {
|
|
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(
|
|
576
|
-
return 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(
|
|
579
|
+
return l(E, m);
|
|
580
580
|
},
|
|
581
581
|
has: function(m) {
|
|
582
|
-
return w(
|
|
582
|
+
return w(E, m);
|
|
583
583
|
},
|
|
584
584
|
set: function(m, y) {
|
|
585
|
-
|
|
585
|
+
E || (E = {
|
|
586
586
|
next: void 0
|
|
587
587
|
}), g(
|
|
588
588
|
/** @type {NonNullable<typeof $o>} */
|
|
589
|
-
|
|
589
|
+
E,
|
|
590
590
|
m,
|
|
591
591
|
y
|
|
592
592
|
);
|
|
593
593
|
}
|
|
594
594
|
};
|
|
595
595
|
return p;
|
|
596
|
-
},
|
|
596
|
+
}, ze;
|
|
597
597
|
}
|
|
598
|
-
var
|
|
598
|
+
var We, Yr;
|
|
599
599
|
function Ut() {
|
|
600
|
-
return Yr || (Yr = 1,
|
|
600
|
+
return Yr || (Yr = 1, We = Object), We;
|
|
601
601
|
}
|
|
602
602
|
var ke, Xr;
|
|
603
603
|
function dn() {
|
|
@@ -667,7 +667,7 @@ function _n() {
|
|
|
667
667
|
return pt || (pt = 1, nr = Object.getOwnPropertyDescriptor), nr;
|
|
668
668
|
}
|
|
669
669
|
var ar, yt;
|
|
670
|
-
function
|
|
670
|
+
function zt() {
|
|
671
671
|
if (yt) return ar;
|
|
672
672
|
yt = 1;
|
|
673
673
|
var e = /* @__PURE__ */ _n();
|
|
@@ -732,7 +732,7 @@ function Mn() {
|
|
|
732
732
|
}, lr;
|
|
733
733
|
}
|
|
734
734
|
var fr, mt;
|
|
735
|
-
function
|
|
735
|
+
function Wt() {
|
|
736
736
|
return mt || (mt = 1, fr = typeof Reflect < "u" && Reflect.getPrototypeOf || null), fr;
|
|
737
737
|
}
|
|
738
738
|
var ur, gt;
|
|
@@ -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(
|
|
750
|
-
for (var m = [], y = 0; y <
|
|
751
|
-
m[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 +
|
|
753
|
+
m[M + E.length] = p[M];
|
|
754
754
|
return m;
|
|
755
|
-
}, w = function(
|
|
756
|
-
for (var m = [], y = p, M = 0; y <
|
|
757
|
-
m[M] =
|
|
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,
|
|
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 +=
|
|
761
|
+
p += v[m], m + 1 < v.length && (p += E);
|
|
762
762
|
return p;
|
|
763
763
|
};
|
|
764
|
-
return cr = function(
|
|
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
|
-
|
|
777
|
+
E,
|
|
778
778
|
g(m, arguments)
|
|
779
779
|
);
|
|
780
780
|
}, A = u(0, p.length - m.length), a = [], f = 0; f < A; f++)
|
|
@@ -828,7 +828,7 @@ var mr, Pt;
|
|
|
828
828
|
function $n() {
|
|
829
829
|
if (Pt) return mr;
|
|
830
830
|
Pt = 1;
|
|
831
|
-
var e = Ht(), i = /* @__PURE__ */
|
|
831
|
+
var e = Ht(), i = /* @__PURE__ */ zt(), u;
|
|
832
832
|
try {
|
|
833
833
|
u = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
834
834
|
[].__proto__ === Array.prototype;
|
|
@@ -852,7 +852,7 @@ var gr, It;
|
|
|
852
852
|
function Nn() {
|
|
853
853
|
if (It) return gr;
|
|
854
854
|
It = 1;
|
|
855
|
-
var e =
|
|
855
|
+
var e = Wt(), i = kt(), u = /* @__PURE__ */ $n();
|
|
856
856
|
return gr = e ? function(g) {
|
|
857
857
|
return e(g);
|
|
858
858
|
} : i ? function(g) {
|
|
@@ -874,12 +874,12 @@ 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(),
|
|
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 {
|
|
881
881
|
}
|
|
882
|
-
}, h = /* @__PURE__ */
|
|
882
|
+
}, h = /* @__PURE__ */ zt(), S = /* @__PURE__ */ xn(), D = function() {
|
|
883
883
|
throw new v();
|
|
884
884
|
}, P = h ? (function() {
|
|
885
885
|
try {
|
|
@@ -891,7 +891,7 @@ function Cr() {
|
|
|
891
891
|
return D;
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
|
-
})() : D, b = Mn()(), n = Nn(), c = kt(), d =
|
|
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%":
|
|
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%":
|
|
966
|
+
"%Function.prototype.apply%": O,
|
|
967
967
|
"%Object.defineProperty%": S,
|
|
968
968
|
"%Object.getPrototypeOf%": c,
|
|
969
969
|
"%Math.abs%": p,
|
|
@@ -979,8 +979,8 @@ function Cr() {
|
|
|
979
979
|
try {
|
|
980
980
|
null.error;
|
|
981
981
|
} catch (j) {
|
|
982
|
-
var
|
|
983
|
-
F["%Error.prototype%"] =
|
|
982
|
+
var W = n(n(j));
|
|
983
|
+
F["%Error.prototype%"] = W;
|
|
984
984
|
}
|
|
985
985
|
var $ = function j(C) {
|
|
986
986
|
var k;
|
|
@@ -1051,7 +1051,7 @@ function Cr() {
|
|
|
1051
1051
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
1052
1052
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
1053
1053
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
1054
|
-
}, s = xe(), L = /* @__PURE__ */ Ln(), K = s.call(_, Array.prototype.concat), X = s.call(
|
|
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
1055
|
var k = oe(C, 0, 1), T = oe(C, -1);
|
|
1056
1056
|
if (k === "%" && T !== "%")
|
|
1057
1057
|
throw new R("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -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),
|
|
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 =
|
|
1140
|
+
var a = E(y, A);
|
|
1141
1141
|
return p(y) === 0 && (y = void 0), a;
|
|
1142
1142
|
}
|
|
1143
1143
|
return !1;
|
|
@@ -1160,7 +1160,7 @@ var Or, Ft;
|
|
|
1160
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),
|
|
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 Tn() {
|
|
|
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 ?
|
|
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));
|
|
@@ -1197,9 +1197,9 @@ function Qt() {
|
|
|
1197
1197
|
Dt = 1;
|
|
1198
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,
|
|
1200
|
+
var v, E = {
|
|
1201
1201
|
assert: function(p) {
|
|
1202
|
-
if (!
|
|
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
|
|
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
|
-
},
|
|
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
|
|
1264
|
-
typeof d[_] < "u" && (
|
|
1265
|
-
c.obj[c.prop] =
|
|
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 } : {},
|
|
1270
|
-
typeof n[
|
|
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
|
|
1278
|
-
if (d && typeof d.arrayLimit == "number" &&
|
|
1279
|
-
return w(y(n.concat(c), d),
|
|
1280
|
-
n[
|
|
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,
|
|
1284
|
+
n[_] = c, E(n, _);
|
|
1285
1285
|
} else {
|
|
1286
1286
|
if (d && d.strictMerge)
|
|
1287
1287
|
return [n, c];
|
|
@@ -1294,8 +1294,8 @@ function Vt() {
|
|
|
1294
1294
|
if (!n || typeof n != "object") {
|
|
1295
1295
|
if (R(c)) {
|
|
1296
1296
|
for (var x = Object.keys(c), U = d && d.plainObjects ? { __proto__: null, 0: n } : { 0: n }, F = 0; F < x.length; F++) {
|
|
1297
|
-
var
|
|
1298
|
-
U[
|
|
1297
|
+
var W = parseInt(x[F], 10);
|
|
1298
|
+
U[W + 1] = c[x[F]];
|
|
1299
1299
|
}
|
|
1300
1300
|
return w(U, v(c) + 1);
|
|
1301
1301
|
}
|
|
@@ -1313,13 +1313,13 @@ function Vt() {
|
|
|
1313
1313
|
var K = c[L];
|
|
1314
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
1315
|
var X = parseInt(L, 10);
|
|
1316
|
-
String(X) === L && X >= 0 && X > v(s) &&
|
|
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,
|
|
1322
|
-
return 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,7 +1330,7 @@ function Vt() {
|
|
|
1330
1330
|
} catch {
|
|
1331
1331
|
return d;
|
|
1332
1332
|
}
|
|
1333
|
-
}, f = 1024, o = function(n, c, d,
|
|
1333
|
+
}, f = 1024, o = function(n, c, d, O, _) {
|
|
1334
1334
|
if (n.length === 0)
|
|
1335
1335
|
return n;
|
|
1336
1336
|
var x = n;
|
|
@@ -1339,10 +1339,10 @@ function Vt() {
|
|
|
1339
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
|
-
for (var
|
|
1343
|
-
var s =
|
|
1342
|
+
for (var W = x.length >= f ? x.slice(F, F + f) : x, $ = [], G = 0; G < W.length; ++G) {
|
|
1343
|
+
var s = W.charCodeAt(G);
|
|
1344
1344
|
if (s === 45 || s === 46 || s === 95 || s === 126 || s >= 48 && s <= 57 || s >= 65 && s <= 90 || s >= 97 && s <= 122 || _ === e.RFC1738 && (s === 40 || s === 41)) {
|
|
1345
|
-
$[$.length] =
|
|
1345
|
+
$[$.length] = W.charAt(G);
|
|
1346
1346
|
continue;
|
|
1347
1347
|
}
|
|
1348
1348
|
if (s < 128) {
|
|
@@ -1357,33 +1357,33 @@ function Vt() {
|
|
|
1357
1357
|
$[$.length] = p[224 | s >> 12] + p[128 | s >> 6 & 63] + p[128 | s & 63];
|
|
1358
1358
|
continue;
|
|
1359
1359
|
}
|
|
1360
|
-
G += 1, s = 65536 + ((s & 1023) << 10 |
|
|
1360
|
+
G += 1, s = 65536 + ((s & 1023) << 10 | W.charCodeAt(G) & 1023), $[$.length] = p[240 | s >> 18] + p[128 | s >> 12 & 63] + p[128 | s >> 6 & 63] + p[128 | s & 63];
|
|
1361
1361
|
}
|
|
1362
1362
|
U += $.join("");
|
|
1363
1363
|
}
|
|
1364
1364
|
return U;
|
|
1365
1365
|
}, I = function(n) {
|
|
1366
|
-
for (var c = [{ obj: { o: n }, prop: "o" }], d = [],
|
|
1367
|
-
for (var _ = c[
|
|
1368
|
-
var
|
|
1369
|
-
typeof $ == "object" && $ !== null && d.indexOf($) === -1 && (c[c.length] = { obj: x, prop:
|
|
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
|
+
var W = U[F], $ = x[W];
|
|
1369
|
+
typeof $ == "object" && $ !== null && d.indexOf($) === -1 && (c[c.length] = { obj: x, prop: W }, d[d.length] = $);
|
|
1370
1370
|
}
|
|
1371
1371
|
return m(c), n;
|
|
1372
1372
|
}, h = function(n) {
|
|
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,
|
|
1376
|
+
}, D = function(n, c, d, O) {
|
|
1377
1377
|
if (R(n)) {
|
|
1378
1378
|
var _ = v(n) + 1;
|
|
1379
|
-
return n[_] = c,
|
|
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:
|
|
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 = [],
|
|
1386
|
-
d[d.length] = c(n[
|
|
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
|
-
},
|
|
1423
|
+
}, E = Date.prototype.toISOString, p = u.default, m = {
|
|
1424
1424
|
addQueryPrefix: !1,
|
|
1425
1425
|
allowDots: !1,
|
|
1426
1426
|
allowEmptyArrays: !1,
|
|
@@ -1439,13 +1439,13 @@ function Bn() {
|
|
|
1439
1439
|
// deprecated
|
|
1440
1440
|
indices: !1,
|
|
1441
1441
|
serializeDate: function(o) {
|
|
1442
|
-
return
|
|
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,
|
|
1448
|
+
}, M = {}, A = function f(o, I, h, S, D, P, b, n, c, d, O, _, x, U, F, W, $, G) {
|
|
1449
1449
|
for (var s = o, L = G, K = 0, X = !1; (L = L.get(M)) !== void 0 && !X; ) {
|
|
1450
1450
|
var ie = L.get(o);
|
|
1451
1451
|
if (K += 1, typeof ie < "u") {
|
|
@@ -1459,12 +1459,12 @@ function Bn() {
|
|
|
1459
1459
|
return ee instanceof Date ? x(ee) : ee;
|
|
1460
1460
|
})), s === null) {
|
|
1461
1461
|
if (P)
|
|
1462
|
-
return c && !
|
|
1462
|
+
return c && !W ? c(I, m.encoder, $, "key", U) : I;
|
|
1463
1463
|
s = "";
|
|
1464
1464
|
}
|
|
1465
1465
|
if (y(s) || i.isBuffer(s)) {
|
|
1466
1466
|
if (c) {
|
|
1467
|
-
var oe =
|
|
1467
|
+
var oe = W ? I : c(I, m.encoder, $, "key", U);
|
|
1468
1468
|
return [F(oe) + "=" + F(c(s, m.encoder, $, "value", U))];
|
|
1469
1469
|
}
|
|
1470
1470
|
return [F(I) + "=" + F(String(s))];
|
|
@@ -1474,12 +1474,12 @@ function Bn() {
|
|
|
1474
1474
|
return le;
|
|
1475
1475
|
var ae;
|
|
1476
1476
|
if (h === "comma" && w(s))
|
|
1477
|
-
|
|
1477
|
+
W && c && (s = i.maybeMap(s, c)), ae = [{ value: s.length > 0 ? s.join(",") || null : void 0 }];
|
|
1478
1478
|
else if (w(d))
|
|
1479
1479
|
ae = d;
|
|
1480
1480
|
else {
|
|
1481
1481
|
var Z = Object.keys(s);
|
|
1482
|
-
ae =
|
|
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)
|
|
@@ -1499,14 +1499,14 @@ function Bn() {
|
|
|
1499
1499
|
P,
|
|
1500
1500
|
b,
|
|
1501
1501
|
n,
|
|
1502
|
-
h === "comma" &&
|
|
1502
|
+
h === "comma" && W && w(s) ? null : c,
|
|
1503
1503
|
d,
|
|
1504
|
-
|
|
1504
|
+
O,
|
|
1505
1505
|
_,
|
|
1506
1506
|
x,
|
|
1507
1507
|
U,
|
|
1508
1508
|
F,
|
|
1509
|
-
|
|
1509
|
+
W,
|
|
1510
1510
|
$,
|
|
1511
1511
|
Q
|
|
1512
1512
|
));
|
|
@@ -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
|
|
1571
|
+
var O = S[d], _ = I[O];
|
|
1572
1572
|
h.skipNulls && _ === null || v(P, A(
|
|
1573
1573
|
_,
|
|
1574
|
-
|
|
1574
|
+
O,
|
|
1575
1575
|
b,
|
|
1576
1576
|
n,
|
|
1577
1577
|
h.allowEmptyArrays,
|
|
@@ -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",
|
|
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,
|
|
1650
|
-
if (d === -1 ? (
|
|
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[
|
|
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 (
|
|
1665
|
-
var x = i.call(o,
|
|
1666
|
-
x && (f.duplicates === "combine" || n.indexOf("[]=") > -1) ? o[
|
|
1667
|
-
o[
|
|
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[
|
|
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),
|
|
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 (
|
|
1695
|
+
else if (O && d < f.arrayLimit)
|
|
1696
1696
|
P = [], P[d] = S;
|
|
1697
1697
|
else {
|
|
1698
|
-
if (
|
|
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
|
-
|
|
1700
|
+
O ? (P[d] = S, e.markOverflow(P, d)) : c !== "__proto__" && (P[c] = S);
|
|
1701
1701
|
}
|
|
1702
1702
|
}
|
|
1703
1703
|
S = P;
|
|
@@ -1779,7 +1779,7 @@ 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" ?
|
|
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
|
}
|
|
@@ -1787,7 +1787,7 @@ function Un() {
|
|
|
1787
1787
|
}, _r;
|
|
1788
1788
|
}
|
|
1789
1789
|
var xr, Tt;
|
|
1790
|
-
function
|
|
1790
|
+
function zn() {
|
|
1791
1791
|
if (Tt) return xr;
|
|
1792
1792
|
Tt = 1;
|
|
1793
1793
|
var e = /* @__PURE__ */ Bn(), i = /* @__PURE__ */ Un(), u = /* @__PURE__ */ $r();
|
|
@@ -1797,8 +1797,8 @@ function Wn() {
|
|
|
1797
1797
|
stringify: e
|
|
1798
1798
|
}, xr;
|
|
1799
1799
|
}
|
|
1800
|
-
var
|
|
1801
|
-
const kn = "0.1.
|
|
1800
|
+
var Wn = /* @__PURE__ */ zn();
|
|
1801
|
+
const kn = "0.1.5", Gn = [
|
|
1802
1802
|
"allow-scripts",
|
|
1803
1803
|
// Run the widget app
|
|
1804
1804
|
"allow-same-origin",
|
|
@@ -1813,7 +1813,7 @@ const kn = "0.1.4", Gn = [
|
|
|
1813
1813
|
function qr(e, i, { accessToken: u, host: l, theme: g }, w = "/relay-widget") {
|
|
1814
1814
|
if (!u)
|
|
1815
1815
|
throw new Error("[PersonaRelay] accessToken is required to initialize the relay widget");
|
|
1816
|
-
const R = Fr(l), v =
|
|
1816
|
+
const R = Fr(l), v = Wn.stringify(
|
|
1817
1817
|
{
|
|
1818
1818
|
"client-version": kn,
|
|
1819
1819
|
"container-id": i,
|
|
@@ -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
|
-
|
|
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"
|
|
1831
|
+
), e.referrerPolicy = "no-referrer";
|
|
1832
|
+
const E = R + w + v, p = E.replace(/&/g, "&").replace(/"/g, """);
|
|
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
|
/**
|
|
@@ -1907,15 +1909,17 @@ class jn {
|
|
|
1907
1909
|
document.body.classList.remove("relay-widget__scroll-locked");
|
|
1908
1910
|
}
|
|
1909
1911
|
/**
|
|
1910
|
-
* Sends current document body dimensions to iframes for mobile
|
|
1912
|
+
* Sends current document body dimensions to the given iframes for mobile
|
|
1913
|
+
* detection.
|
|
1911
1914
|
*/
|
|
1912
|
-
sendResize() {
|
|
1913
|
-
const { clientWidth:
|
|
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:
|
|
1919
|
+
metadata: { width: u, height: l }
|
|
1917
1920
|
};
|
|
1918
|
-
|
|
1921
|
+
for (const w of i)
|
|
1922
|
+
w.contentWindow?.postMessage(g, this.baseUrl);
|
|
1919
1923
|
}
|
|
1920
1924
|
/**
|
|
1921
1925
|
* Observes the document body for size changes and forwards
|
|
@@ -1923,14 +1927,14 @@ class jn {
|
|
|
1923
1927
|
* once to each on initial iframe load.
|
|
1924
1928
|
*/
|
|
1925
1929
|
setupResizeObserver() {
|
|
1926
|
-
this.iframeElement.addEventListener("load", () => this.sendResize(),
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
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);
|
|
1934
1938
|
window.addEventListener("resize", i), this.removeResizeListener = () => window.removeEventListener("resize", i);
|
|
1935
1939
|
}
|
|
1936
1940
|
/**
|