@launchdarkly/o11y 1.3.0 → 1.3.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/CHANGELOG.md +7 -0
- package/dist/{LDObserve-CHIjcqIn.js → LDObserve-DhF3vCDR.js} +2 -2
- package/dist/{LDObserve-CHIjcqIn.js.map → LDObserve-DhF3vCDR.js.map} +1 -1
- package/dist/LDObserve.d.ts +5 -0
- package/dist/LDObserve.js +2 -2
- package/dist/LDRecord.d.ts +5 -0
- package/dist/LDRecord.js +1 -1
- package/dist/assets/highlight-client-worker-DrDPRCrv.js.map +1 -0
- package/dist/buffer-BjzLorpP.js +124 -0
- package/dist/buffer-BjzLorpP.js.map +1 -0
- package/dist/{common-BkAGcE30.js → common-BjaGmQrE.js} +367 -360
- package/dist/{common-BkAGcE30.js.map → common-BjaGmQrE.js.map} +1 -1
- package/dist/index.d.ts +23 -0
- package/dist/index.js +260 -258
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +113 -113
- package/dist/index.umd.js.map +1 -1
- package/dist/{observe-xxoYHNEh.js → observe-D78YYNE1.js} +2362 -2338
- package/dist/observe-D78YYNE1.js.map +1 -0
- package/dist/observe.d.ts +9 -0
- package/dist/observe.js +4 -4
- package/dist/{record-DTawahUk.js → record-BZHDLKsW.js} +1713 -1709
- package/dist/{record-DTawahUk.js.map → record-BZHDLKsW.js.map} +1 -1
- package/dist/record.d.ts +23 -0
- package/dist/record.js +3 -3
- package/package.json +1 -1
- package/dist/assets/highlight-client-worker-DsbKMpxq.js.map +0 -1
- package/dist/buffer-DIFxvF2Q.js +0 -102
- package/dist/buffer-DIFxvF2Q.js.map +0 -1
- package/dist/observe-xxoYHNEh.js.map +0 -1
|
@@ -12,8 +12,8 @@ var De = (e, t, n) => t in e ? tn(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
12
12
|
for (var n of ce(t))
|
|
13
13
|
it.call(t, n) && De(e, n, t[n]);
|
|
14
14
|
return e;
|
|
15
|
-
},
|
|
16
|
-
var
|
|
15
|
+
}, H = (e, t) => nn(e, rn(t));
|
|
16
|
+
var G = (e, t) => {
|
|
17
17
|
var n = {};
|
|
18
18
|
for (var r in e)
|
|
19
19
|
rt.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
@@ -22,8 +22,8 @@ var H = (e, t) => {
|
|
|
22
22
|
t.indexOf(r) < 0 && it.call(e, r) && (n[r] = e[r]);
|
|
23
23
|
return n;
|
|
24
24
|
};
|
|
25
|
-
var
|
|
26
|
-
var
|
|
25
|
+
var Y = (e, t, n) => De(e, typeof t != "symbol" ? t + "" : t, n);
|
|
26
|
+
var B = (e, t, n) => new Promise((r, i) => {
|
|
27
27
|
var s = (c) => {
|
|
28
28
|
try {
|
|
29
29
|
a(n.next(c));
|
|
@@ -59,25 +59,25 @@ var we = (e) => {
|
|
|
59
59
|
throw s;
|
|
60
60
|
}, "return" in t && r("return"), i;
|
|
61
61
|
};
|
|
62
|
-
import { a as
|
|
62
|
+
import { d as $, a as an, B as cn, i as st } from "./buffer-BjzLorpP.js";
|
|
63
63
|
function de(e, t) {
|
|
64
64
|
if (!!!e)
|
|
65
65
|
throw new Error(t);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function un(e) {
|
|
68
68
|
return typeof e == "object" && e !== null;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function ln(e, t) {
|
|
71
71
|
if (!!!e)
|
|
72
72
|
throw new Error(
|
|
73
73
|
"Unexpected invariant triggered."
|
|
74
74
|
);
|
|
75
75
|
}
|
|
76
|
-
const
|
|
76
|
+
const fn = /\r\n|[\n\r]/g;
|
|
77
77
|
function Ue(e, t) {
|
|
78
78
|
let n = 0, r = 1;
|
|
79
|
-
for (const i of e.body.matchAll(
|
|
80
|
-
if (typeof i.index == "number" ||
|
|
79
|
+
for (const i of e.body.matchAll(fn)) {
|
|
80
|
+
if (typeof i.index == "number" || ln(!1), i.index >= t)
|
|
81
81
|
break;
|
|
82
82
|
n = i.index + i[0].length, r += 1;
|
|
83
83
|
}
|
|
@@ -86,7 +86,7 @@ function Ue(e, t) {
|
|
|
86
86
|
column: t + 1 - n
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function hn(e) {
|
|
90
90
|
return At(
|
|
91
91
|
e.source,
|
|
92
92
|
Ue(e.source, e.start)
|
|
@@ -119,7 +119,7 @@ function ot(e) {
|
|
|
119
119
|
return t.map(([r, i]) => r.padStart(n) + (i ? " " + i : "")).join(`
|
|
120
120
|
`);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function dn(e) {
|
|
123
123
|
const t = e[0];
|
|
124
124
|
return t == null || "kind" in t || "length" in t ? {
|
|
125
125
|
nodes: t,
|
|
@@ -171,7 +171,7 @@ class Qe extends Error {
|
|
|
171
171
|
*/
|
|
172
172
|
constructor(t, ...n) {
|
|
173
173
|
var r, i, s;
|
|
174
|
-
const { nodes: o, source: a, positions: c, path: f, originalError: h, extensions: m } =
|
|
174
|
+
const { nodes: o, source: a, positions: c, path: f, originalError: h, extensions: m } = dn(n);
|
|
175
175
|
super(t), this.name = "GraphQLError", this.path = f != null ? f : void 0, this.originalError = h != null ? h : void 0, this.nodes = at(
|
|
176
176
|
Array.isArray(o) ? o : o ? [o] : void 0
|
|
177
177
|
);
|
|
@@ -179,7 +179,7 @@ class Qe extends Error {
|
|
|
179
179
|
(r = this.nodes) === null || r === void 0 ? void 0 : r.map((y) => y.loc).filter((y) => y != null)
|
|
180
180
|
);
|
|
181
181
|
this.source = a != null ? a : E == null || (i = E[0]) === null || i === void 0 ? void 0 : i.source, this.positions = c != null ? c : E == null ? void 0 : E.map((y) => y.start), this.locations = c && a ? c.map((y) => Ue(a, y)) : E == null ? void 0 : E.map((y) => Ue(y.source, y.start));
|
|
182
|
-
const S =
|
|
182
|
+
const S = un(
|
|
183
183
|
h == null ? void 0 : h.extensions
|
|
184
184
|
) ? h == null ? void 0 : h.extensions : void 0;
|
|
185
185
|
this.extensions = (s = m != null ? m : S) !== null && s !== void 0 ? s : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
|
|
@@ -221,7 +221,7 @@ class Qe extends Error {
|
|
|
221
221
|
for (const n of this.nodes)
|
|
222
222
|
n.loc && (t += `
|
|
223
223
|
|
|
224
|
-
` +
|
|
224
|
+
` + hn(n.loc));
|
|
225
225
|
else if (this.source && this.locations)
|
|
226
226
|
for (const n of this.locations)
|
|
227
227
|
t += `
|
|
@@ -245,7 +245,7 @@ function O(e, t, n) {
|
|
|
245
245
|
positions: [t]
|
|
246
246
|
});
|
|
247
247
|
}
|
|
248
|
-
class
|
|
248
|
+
class pn {
|
|
249
249
|
/**
|
|
250
250
|
* The character offset at which this Node begins.
|
|
251
251
|
*/
|
|
@@ -390,15 +390,15 @@ const It = {
|
|
|
390
390
|
UnionTypeExtension: ["name", "directives", "types"],
|
|
391
391
|
EnumTypeExtension: ["name", "directives", "values"],
|
|
392
392
|
InputObjectTypeExtension: ["name", "directives", "fields"]
|
|
393
|
-
},
|
|
393
|
+
}, mn = new Set(Object.keys(It));
|
|
394
394
|
function ct(e) {
|
|
395
395
|
const t = e == null ? void 0 : e.kind;
|
|
396
|
-
return typeof t == "string" &&
|
|
396
|
+
return typeof t == "string" && mn.has(t);
|
|
397
397
|
}
|
|
398
|
-
var
|
|
398
|
+
var X;
|
|
399
399
|
(function(e) {
|
|
400
400
|
e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
|
|
401
|
-
})(
|
|
401
|
+
})(X || (X = {}));
|
|
402
402
|
var Be;
|
|
403
403
|
(function(e) {
|
|
404
404
|
e.QUERY = "QUERY", e.MUTATION = "MUTATION", e.SUBSCRIPTION = "SUBSCRIPTION", e.FIELD = "FIELD", e.FRAGMENT_DEFINITION = "FRAGMENT_DEFINITION", e.FRAGMENT_SPREAD = "FRAGMENT_SPREAD", e.INLINE_FRAGMENT = "INLINE_FRAGMENT", e.VARIABLE_DEFINITION = "VARIABLE_DEFINITION", e.SCHEMA = "SCHEMA", e.SCALAR = "SCALAR", e.OBJECT = "OBJECT", e.FIELD_DEFINITION = "FIELD_DEFINITION", e.ARGUMENT_DEFINITION = "ARGUMENT_DEFINITION", e.INTERFACE = "INTERFACE", e.UNION = "UNION", e.ENUM = "ENUM", e.ENUM_VALUE = "ENUM_VALUE", e.INPUT_OBJECT = "INPUT_OBJECT", e.INPUT_FIELD_DEFINITION = "INPUT_FIELD_DEFINITION";
|
|
@@ -420,15 +420,15 @@ function bt(e) {
|
|
|
420
420
|
function xt(e) {
|
|
421
421
|
return bt(e) || e === 95;
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function gn(e) {
|
|
424
424
|
return bt(e) || ie(e) || e === 95;
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function yn(e) {
|
|
427
427
|
var t;
|
|
428
428
|
let n = Number.MAX_SAFE_INTEGER, r = null, i = -1;
|
|
429
429
|
for (let o = 0; o < e.length; ++o) {
|
|
430
430
|
var s;
|
|
431
|
-
const a = e[o], c =
|
|
431
|
+
const a = e[o], c = En(a);
|
|
432
432
|
c !== a.length && (r = (s = r) !== null && s !== void 0 ? s : o, i = o, o !== 0 && c < n && (n = c));
|
|
433
433
|
}
|
|
434
434
|
return e.map((o, a) => a === 0 ? o : o.slice(n)).slice(
|
|
@@ -436,13 +436,13 @@ function gn(e) {
|
|
|
436
436
|
i + 1
|
|
437
437
|
);
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function En(e) {
|
|
440
440
|
let t = 0;
|
|
441
441
|
for (; t < e.length && Ve(e.charCodeAt(t)); )
|
|
442
442
|
++t;
|
|
443
443
|
return t;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function _n(e, t) {
|
|
446
446
|
const n = e.replace(/"""/g, '\\"""'), r = n.split(/\r\n|[\n\r]/g), i = r.length === 1, s = r.length > 1 && r.slice(1).every((S) => S.length === 0 || Ve(S.charCodeAt(0))), o = n.endsWith('\\"""'), a = e.endsWith('"') && !o, c = e.endsWith("\\"), f = a || c, h = (
|
|
447
447
|
// add leading and trailing new lines only if it improves readability
|
|
448
448
|
!i || e.length > 70 || f || s || o
|
|
@@ -457,7 +457,7 @@ var l;
|
|
|
457
457
|
(function(e) {
|
|
458
458
|
e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
|
|
459
459
|
})(l || (l = {}));
|
|
460
|
-
class
|
|
460
|
+
class Tn {
|
|
461
461
|
/**
|
|
462
462
|
* The previously focused non-ignored token.
|
|
463
463
|
*/
|
|
@@ -494,14 +494,14 @@ class _n {
|
|
|
494
494
|
if (t.next)
|
|
495
495
|
t = t.next;
|
|
496
496
|
else {
|
|
497
|
-
const n =
|
|
497
|
+
const n = Sn(this, t.end);
|
|
498
498
|
t.next = n, n.prev = t, t = n;
|
|
499
499
|
}
|
|
500
500
|
while (t.kind === l.COMMENT);
|
|
501
501
|
return t;
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function vn(e) {
|
|
505
505
|
return e === l.BANG || e === l.DOLLAR || e === l.AMP || e === l.PAREN_L || e === l.PAREN_R || e === l.SPREAD || e === l.COLON || e === l.EQUALS || e === l.AT || e === l.BRACKET_L || e === l.BRACKET_R || e === l.BRACE_L || e === l.PIPE || e === l.BRACE_R;
|
|
506
506
|
}
|
|
507
507
|
function Z(e) {
|
|
@@ -516,7 +516,7 @@ function Ot(e) {
|
|
|
516
516
|
function Dt(e) {
|
|
517
517
|
return e >= 56320 && e <= 57343;
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function V(e, t) {
|
|
520
520
|
const n = e.source.body.codePointAt(t);
|
|
521
521
|
if (n === void 0)
|
|
522
522
|
return l.EOF;
|
|
@@ -530,7 +530,7 @@ function I(e, t, n, r, i) {
|
|
|
530
530
|
const s = e.line, o = 1 + n - e.lineStart;
|
|
531
531
|
return new Nt(t, n, r, s, o, i);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function Sn(e, t) {
|
|
534
534
|
const n = e.source.body, r = n.length;
|
|
535
535
|
let i = t;
|
|
536
536
|
for (; i < r; ) {
|
|
@@ -571,7 +571,7 @@ function vn(e, t) {
|
|
|
571
571
|
continue;
|
|
572
572
|
// Comment
|
|
573
573
|
case 35:
|
|
574
|
-
return
|
|
574
|
+
return An(e, i);
|
|
575
575
|
// Token ::
|
|
576
576
|
// - Punctuator
|
|
577
577
|
// - Name
|
|
@@ -612,21 +612,21 @@ function vn(e, t) {
|
|
|
612
612
|
return I(e, l.BRACE_R, i, i + 1);
|
|
613
613
|
// StringValue
|
|
614
614
|
case 34:
|
|
615
|
-
return n.charCodeAt(i + 1) === 34 && n.charCodeAt(i + 2) === 34 ?
|
|
615
|
+
return n.charCodeAt(i + 1) === 34 && n.charCodeAt(i + 2) === 34 ? Dn(e, i) : In(e, i);
|
|
616
616
|
}
|
|
617
617
|
if (ie(s) || s === 45)
|
|
618
|
-
return
|
|
618
|
+
return Nn(e, i, s);
|
|
619
619
|
if (xt(s))
|
|
620
|
-
return
|
|
620
|
+
return wn(e, i);
|
|
621
621
|
throw O(
|
|
622
622
|
e.source,
|
|
623
623
|
i,
|
|
624
|
-
s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : Z(s) || ve(n, i) ? `Unexpected character: ${
|
|
624
|
+
s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : Z(s) || ve(n, i) ? `Unexpected character: ${V(e, i)}.` : `Invalid character: ${V(e, i)}.`
|
|
625
625
|
);
|
|
626
626
|
}
|
|
627
627
|
return I(e, l.EOF, r, r);
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function An(e, t) {
|
|
630
630
|
const n = e.source.body, r = n.length;
|
|
631
631
|
let i = t + 1;
|
|
632
632
|
for (; i < r; ) {
|
|
@@ -648,7 +648,7 @@ function Sn(e, t) {
|
|
|
648
648
|
n.slice(t + 1, i)
|
|
649
649
|
);
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function Nn(e, t, n) {
|
|
652
652
|
const r = e.source.body;
|
|
653
653
|
let i = t, s = n, o = !1;
|
|
654
654
|
if (s === 45 && (s = r.charCodeAt(++i)), s === 48) {
|
|
@@ -656,7 +656,7 @@ function An(e, t, n) {
|
|
|
656
656
|
throw O(
|
|
657
657
|
e.source,
|
|
658
658
|
i,
|
|
659
|
-
`Invalid number, unexpected digit after 0: ${
|
|
659
|
+
`Invalid number, unexpected digit after 0: ${V(
|
|
660
660
|
e,
|
|
661
661
|
i
|
|
662
662
|
)}.`
|
|
@@ -667,7 +667,7 @@ function An(e, t, n) {
|
|
|
667
667
|
throw O(
|
|
668
668
|
e.source,
|
|
669
669
|
i,
|
|
670
|
-
`Invalid number, expected digit but got: ${
|
|
670
|
+
`Invalid number, expected digit but got: ${V(
|
|
671
671
|
e,
|
|
672
672
|
i
|
|
673
673
|
)}.`
|
|
@@ -685,7 +685,7 @@ function Ce(e, t, n) {
|
|
|
685
685
|
throw O(
|
|
686
686
|
e.source,
|
|
687
687
|
t,
|
|
688
|
-
`Invalid number, expected digit but got: ${
|
|
688
|
+
`Invalid number, expected digit but got: ${V(
|
|
689
689
|
e,
|
|
690
690
|
t
|
|
691
691
|
)}.`
|
|
@@ -696,7 +696,7 @@ function Ce(e, t, n) {
|
|
|
696
696
|
++i;
|
|
697
697
|
return i;
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function In(e, t) {
|
|
700
700
|
const n = e.source.body, r = n.length;
|
|
701
701
|
let i = t + 1, s = i, o = "";
|
|
702
702
|
for (; i < r; ) {
|
|
@@ -705,7 +705,7 @@ function Nn(e, t) {
|
|
|
705
705
|
return o += n.slice(s, i), I(e, l.STRING, t, i + 1, o);
|
|
706
706
|
if (a === 92) {
|
|
707
707
|
o += n.slice(s, i);
|
|
708
|
-
const c = n.charCodeAt(i + 1) === 117 ? n.charCodeAt(i + 2) === 123 ?
|
|
708
|
+
const c = n.charCodeAt(i + 1) === 117 ? n.charCodeAt(i + 2) === 123 ? bn(e, i) : xn(e, i) : On(e, i);
|
|
709
709
|
o += c.value, i += c.size, s = i;
|
|
710
710
|
continue;
|
|
711
711
|
}
|
|
@@ -719,7 +719,7 @@ function Nn(e, t) {
|
|
|
719
719
|
throw O(
|
|
720
720
|
e.source,
|
|
721
721
|
i,
|
|
722
|
-
`Invalid character within String: ${
|
|
722
|
+
`Invalid character within String: ${V(
|
|
723
723
|
e,
|
|
724
724
|
i
|
|
725
725
|
)}.`
|
|
@@ -727,7 +727,7 @@ function Nn(e, t) {
|
|
|
727
727
|
}
|
|
728
728
|
throw O(e.source, i, "Unterminated string.");
|
|
729
729
|
}
|
|
730
|
-
function
|
|
730
|
+
function bn(e, t) {
|
|
731
731
|
const n = e.source.body;
|
|
732
732
|
let r = 0, i = 3;
|
|
733
733
|
for (; i < 12; ) {
|
|
@@ -752,7 +752,7 @@ function In(e, t) {
|
|
|
752
752
|
)}".`
|
|
753
753
|
);
|
|
754
754
|
}
|
|
755
|
-
function
|
|
755
|
+
function xn(e, t) {
|
|
756
756
|
const n = e.source.body, r = ut(n, t + 2);
|
|
757
757
|
if (Z(r))
|
|
758
758
|
return {
|
|
@@ -779,7 +779,7 @@ function ut(e, t) {
|
|
|
779
779
|
function re(e) {
|
|
780
780
|
return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function On(e, t) {
|
|
783
783
|
const n = e.source.body;
|
|
784
784
|
switch (n.charCodeAt(t + 1)) {
|
|
785
785
|
case 34:
|
|
@@ -833,7 +833,7 @@ function xn(e, t) {
|
|
|
833
833
|
)}".`
|
|
834
834
|
);
|
|
835
835
|
}
|
|
836
|
-
function
|
|
836
|
+
function Dn(e, t) {
|
|
837
837
|
const n = e.source.body, r = n.length;
|
|
838
838
|
let i = e.lineStart, s = t + 3, o = s, a = "";
|
|
839
839
|
const c = [];
|
|
@@ -847,7 +847,7 @@ function On(e, t) {
|
|
|
847
847
|
t,
|
|
848
848
|
s + 3,
|
|
849
849
|
// Return a string of the lines joined with U+000A.
|
|
850
|
-
|
|
850
|
+
yn(c).join(`
|
|
851
851
|
`)
|
|
852
852
|
);
|
|
853
853
|
return e.line += c.length - 1, e.lineStart = i, h;
|
|
@@ -868,7 +868,7 @@ function On(e, t) {
|
|
|
868
868
|
throw O(
|
|
869
869
|
e.source,
|
|
870
870
|
s,
|
|
871
|
-
`Invalid character within String: ${
|
|
871
|
+
`Invalid character within String: ${V(
|
|
872
872
|
e,
|
|
873
873
|
s
|
|
874
874
|
)}.`
|
|
@@ -876,12 +876,12 @@ function On(e, t) {
|
|
|
876
876
|
}
|
|
877
877
|
throw O(e.source, s, "Unterminated string.");
|
|
878
878
|
}
|
|
879
|
-
function
|
|
879
|
+
function wn(e, t) {
|
|
880
880
|
const n = e.source.body, r = n.length;
|
|
881
881
|
let i = t + 1;
|
|
882
882
|
for (; i < r; ) {
|
|
883
883
|
const s = n.charCodeAt(i);
|
|
884
|
-
if (
|
|
884
|
+
if (gn(s))
|
|
885
885
|
++i;
|
|
886
886
|
else
|
|
887
887
|
break;
|
|
@@ -894,7 +894,7 @@ function Dn(e, t) {
|
|
|
894
894
|
n.slice(t, i)
|
|
895
895
|
);
|
|
896
896
|
}
|
|
897
|
-
const
|
|
897
|
+
const Cn = 10, wt = 2;
|
|
898
898
|
function Ke(e) {
|
|
899
899
|
return Se(e, []);
|
|
900
900
|
}
|
|
@@ -905,45 +905,45 @@ function Se(e, t) {
|
|
|
905
905
|
case "function":
|
|
906
906
|
return e.name ? `[function ${e.name}]` : "[function]";
|
|
907
907
|
case "object":
|
|
908
|
-
return
|
|
908
|
+
return Rn(e, t);
|
|
909
909
|
default:
|
|
910
910
|
return String(e);
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function Rn(e, t) {
|
|
914
914
|
if (e === null)
|
|
915
915
|
return "null";
|
|
916
916
|
if (t.includes(e))
|
|
917
917
|
return "[Circular]";
|
|
918
918
|
const n = [...t, e];
|
|
919
|
-
if (
|
|
919
|
+
if (kn(e)) {
|
|
920
920
|
const r = e.toJSON();
|
|
921
921
|
if (r !== e)
|
|
922
922
|
return typeof r == "string" ? r : Se(r, n);
|
|
923
923
|
} else if (Array.isArray(e))
|
|
924
|
-
return
|
|
925
|
-
return
|
|
924
|
+
return Pn(e, n);
|
|
925
|
+
return Ln(e, n);
|
|
926
926
|
}
|
|
927
|
-
function
|
|
927
|
+
function kn(e) {
|
|
928
928
|
return typeof e.toJSON == "function";
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function Ln(e, t) {
|
|
931
931
|
const n = Object.entries(e);
|
|
932
|
-
return n.length === 0 ? "{}" : t.length > wt ? "[" +
|
|
932
|
+
return n.length === 0 ? "{}" : t.length > wt ? "[" + Fn(e) + "]" : "{ " + n.map(
|
|
933
933
|
([i, s]) => i + ": " + Se(s, t)
|
|
934
934
|
).join(", ") + " }";
|
|
935
935
|
}
|
|
936
|
-
function
|
|
936
|
+
function Pn(e, t) {
|
|
937
937
|
if (e.length === 0)
|
|
938
938
|
return "[]";
|
|
939
939
|
if (t.length > wt)
|
|
940
940
|
return "[Array]";
|
|
941
|
-
const n = Math.min(
|
|
941
|
+
const n = Math.min(Cn, e.length), r = e.length - n, i = [];
|
|
942
942
|
for (let s = 0; s < n; ++s)
|
|
943
943
|
i.push(Se(e[s], t));
|
|
944
944
|
return r === 1 ? i.push("... 1 more item") : r > 1 && i.push(`... ${r} more items`), "[" + i.join(", ") + "]";
|
|
945
945
|
}
|
|
946
|
-
function
|
|
946
|
+
function Fn(e) {
|
|
947
947
|
const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
|
|
948
948
|
if (t === "Object" && typeof e.constructor == "function") {
|
|
949
949
|
const n = e.constructor.name;
|
|
@@ -952,11 +952,11 @@ function Pn(e) {
|
|
|
952
952
|
}
|
|
953
953
|
return t;
|
|
954
954
|
}
|
|
955
|
-
const
|
|
956
|
-
process.env.NODE_ENV === "production",
|
|
955
|
+
const Mn = globalThis.process && // eslint-disable-next-line no-undef
|
|
956
|
+
process.env.NODE_ENV === "production", $n = (
|
|
957
957
|
/* c8 ignore next 6 */
|
|
958
958
|
// FIXME: https://github.com/graphql/graphql-js/issues/2317
|
|
959
|
-
|
|
959
|
+
Mn ? function(t, n) {
|
|
960
960
|
return t instanceof n;
|
|
961
961
|
} : function(t, n) {
|
|
962
962
|
if (t instanceof n)
|
|
@@ -1003,20 +1003,20 @@ class Ct {
|
|
|
1003
1003
|
return "Source";
|
|
1004
1004
|
}
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1007
|
-
return
|
|
1006
|
+
function Un(e) {
|
|
1007
|
+
return $n(e, Ct);
|
|
1008
1008
|
}
|
|
1009
1009
|
function Rt(e, t) {
|
|
1010
|
-
const n = new
|
|
1010
|
+
const n = new Bn(e, t), r = n.parseDocument();
|
|
1011
1011
|
return Object.defineProperty(r, "tokenCount", {
|
|
1012
1012
|
enumerable: !1,
|
|
1013
1013
|
value: n.tokenCount
|
|
1014
1014
|
}), r;
|
|
1015
1015
|
}
|
|
1016
|
-
class
|
|
1016
|
+
class Bn {
|
|
1017
1017
|
constructor(t, n = {}) {
|
|
1018
|
-
const r =
|
|
1019
|
-
this._lexer = new
|
|
1018
|
+
const r = Un(t) ? t : new Ct(t);
|
|
1019
|
+
this._lexer = new Tn(r), this._options = n, this._tokenCounter = 0;
|
|
1020
1020
|
}
|
|
1021
1021
|
get tokenCount() {
|
|
1022
1022
|
return this._tokenCounter;
|
|
@@ -1121,7 +1121,7 @@ class Un {
|
|
|
1121
1121
|
if (this.peek(l.BRACE_L))
|
|
1122
1122
|
return this.node(t, {
|
|
1123
1123
|
kind: g.OPERATION_DEFINITION,
|
|
1124
|
-
operation:
|
|
1124
|
+
operation: X.QUERY,
|
|
1125
1125
|
name: void 0,
|
|
1126
1126
|
variableDefinitions: [],
|
|
1127
1127
|
directives: [],
|
|
@@ -1145,11 +1145,11 @@ class Un {
|
|
|
1145
1145
|
const t = this.expectToken(l.NAME);
|
|
1146
1146
|
switch (t.value) {
|
|
1147
1147
|
case "query":
|
|
1148
|
-
return
|
|
1148
|
+
return X.QUERY;
|
|
1149
1149
|
case "mutation":
|
|
1150
|
-
return
|
|
1150
|
+
return X.MUTATION;
|
|
1151
1151
|
case "subscription":
|
|
1152
|
-
return
|
|
1152
|
+
return X.SUBSCRIPTION;
|
|
1153
1153
|
}
|
|
1154
1154
|
throw this.unexpected(t);
|
|
1155
1155
|
}
|
|
@@ -1986,7 +1986,7 @@ class Un {
|
|
|
1986
1986
|
* given parsed object.
|
|
1987
1987
|
*/
|
|
1988
1988
|
node(t, n) {
|
|
1989
|
-
return this._options.noLocation !== !0 && (n.loc = new
|
|
1989
|
+
return this._options.noLocation !== !0 && (n.loc = new pn(
|
|
1990
1990
|
t,
|
|
1991
1991
|
this._lexer.lastToken,
|
|
1992
1992
|
this._lexer.source
|
|
@@ -2122,16 +2122,16 @@ function ue(e) {
|
|
|
2122
2122
|
return kt(e.kind) + (t != null ? ` "${t}"` : "");
|
|
2123
2123
|
}
|
|
2124
2124
|
function kt(e) {
|
|
2125
|
-
return
|
|
2125
|
+
return vn(e) ? `"${e}"` : e;
|
|
2126
2126
|
}
|
|
2127
|
-
function
|
|
2128
|
-
return `"${e.replace(
|
|
2127
|
+
function Vn(e) {
|
|
2128
|
+
return `"${e.replace(jn, qn)}"`;
|
|
2129
2129
|
}
|
|
2130
|
-
const
|
|
2131
|
-
function
|
|
2132
|
-
return
|
|
2130
|
+
const jn = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
|
|
2131
|
+
function qn(e) {
|
|
2132
|
+
return Hn[e.charCodeAt(0)];
|
|
2133
2133
|
}
|
|
2134
|
-
const
|
|
2134
|
+
const Hn = [
|
|
2135
2135
|
"\\u0000",
|
|
2136
2136
|
"\\u0001",
|
|
2137
2137
|
"\\u0002",
|
|
@@ -2297,29 +2297,29 @@ const qn = [
|
|
|
2297
2297
|
"\\u009D",
|
|
2298
2298
|
"\\u009E",
|
|
2299
2299
|
"\\u009F"
|
|
2300
|
-
],
|
|
2301
|
-
function
|
|
2300
|
+
], Gn = Object.freeze({});
|
|
2301
|
+
function Yn(e, t, n = It) {
|
|
2302
2302
|
const r = /* @__PURE__ */ new Map();
|
|
2303
2303
|
for (const x of Object.values(g))
|
|
2304
|
-
r.set(x,
|
|
2304
|
+
r.set(x, zn(t, x));
|
|
2305
2305
|
let i, s = Array.isArray(e), o = [e], a = -1, c = [], f = e, h, m;
|
|
2306
2306
|
const E = [], S = [];
|
|
2307
2307
|
do {
|
|
2308
2308
|
a++;
|
|
2309
|
-
const x = a === o.length,
|
|
2309
|
+
const x = a === o.length, j = x && c.length !== 0;
|
|
2310
2310
|
if (x) {
|
|
2311
|
-
if (h = S.length === 0 ? void 0 : E[E.length - 1], f = m, m = S.pop(),
|
|
2311
|
+
if (h = S.length === 0 ? void 0 : E[E.length - 1], f = m, m = S.pop(), j)
|
|
2312
2312
|
if (s) {
|
|
2313
2313
|
f = f.slice();
|
|
2314
2314
|
let P = 0;
|
|
2315
|
-
for (const [
|
|
2316
|
-
const oe =
|
|
2315
|
+
for (const [q, se] of c) {
|
|
2316
|
+
const oe = q - P;
|
|
2317
2317
|
se === null ? (f.splice(oe, 1), P++) : f[oe] = se;
|
|
2318
2318
|
}
|
|
2319
2319
|
} else {
|
|
2320
2320
|
f = _({}, f);
|
|
2321
|
-
for (const [P,
|
|
2322
|
-
f[P] =
|
|
2321
|
+
for (const [P, q] of c)
|
|
2322
|
+
f[P] = q;
|
|
2323
2323
|
}
|
|
2324
2324
|
a = i.index, o = i.keys, c = i.edits, s = i.inArray, i = i.prev;
|
|
2325
2325
|
} else if (m) {
|
|
@@ -2332,7 +2332,7 @@ function Gn(e, t, n = It) {
|
|
|
2332
2332
|
var y, N;
|
|
2333
2333
|
ct(f) || de(!1, `Invalid AST Node: ${Ke(f)}.`);
|
|
2334
2334
|
const P = x ? (y = r.get(f.kind)) === null || y === void 0 ? void 0 : y.leave : (N = r.get(f.kind)) === null || N === void 0 ? void 0 : N.enter;
|
|
2335
|
-
if (k = P == null ? void 0 : P.call(t, f, h, m, E, S), k ===
|
|
2335
|
+
if (k = P == null ? void 0 : P.call(t, f, h, m, E, S), k === Gn)
|
|
2336
2336
|
break;
|
|
2337
2337
|
if (k === !1) {
|
|
2338
2338
|
if (!x) {
|
|
@@ -2347,7 +2347,7 @@ function Gn(e, t, n = It) {
|
|
|
2347
2347
|
continue;
|
|
2348
2348
|
}
|
|
2349
2349
|
}
|
|
2350
|
-
if (k === void 0 &&
|
|
2350
|
+
if (k === void 0 && j && c.push([h, f]), x)
|
|
2351
2351
|
E.pop();
|
|
2352
2352
|
else {
|
|
2353
2353
|
var b;
|
|
@@ -2362,7 +2362,7 @@ function Gn(e, t, n = It) {
|
|
|
2362
2362
|
} while (i !== void 0);
|
|
2363
2363
|
return c.length !== 0 ? c[c.length - 1][1] : e;
|
|
2364
2364
|
}
|
|
2365
|
-
function
|
|
2365
|
+
function zn(e, t) {
|
|
2366
2366
|
const n = e[t];
|
|
2367
2367
|
return typeof n == "object" ? n : typeof n == "function" ? {
|
|
2368
2368
|
enter: n,
|
|
@@ -2372,10 +2372,10 @@ function Yn(e, t) {
|
|
|
2372
2372
|
leave: e.leave
|
|
2373
2373
|
};
|
|
2374
2374
|
}
|
|
2375
|
-
function
|
|
2376
|
-
return
|
|
2375
|
+
function Jn(e) {
|
|
2376
|
+
return Yn(e, Qn);
|
|
2377
2377
|
}
|
|
2378
|
-
const
|
|
2378
|
+
const Xn = 80, Qn = {
|
|
2379
2379
|
Name: {
|
|
2380
2380
|
leave: (e) => e.value
|
|
2381
2381
|
},
|
|
@@ -2411,7 +2411,7 @@ const Jn = 80, Xn = {
|
|
|
2411
2411
|
leave({ alias: e, name: t, arguments: n, directives: r, selectionSet: i }) {
|
|
2412
2412
|
const s = v("", e, ": ") + t;
|
|
2413
2413
|
let o = s + v("(", p(n, ", "), ")");
|
|
2414
|
-
return o.length >
|
|
2414
|
+
return o.length > Xn && (o = s + v(`(
|
|
2415
2415
|
`, pe(p(n, `
|
|
2416
2416
|
`)), `
|
|
2417
2417
|
)`)), p([o, p(r, " "), i], " ");
|
|
@@ -2449,7 +2449,7 @@ const Jn = 80, Xn = {
|
|
|
2449
2449
|
leave: ({ value: e }) => e
|
|
2450
2450
|
},
|
|
2451
2451
|
StringValue: {
|
|
2452
|
-
leave: ({ value: e, block: t }) => t ?
|
|
2452
|
+
leave: ({ value: e, block: t }) => t ? _n(e) : Vn(e)
|
|
2453
2453
|
},
|
|
2454
2454
|
BooleanValue: {
|
|
2455
2455
|
leave: ({ value: e }) => e ? "true" : "false"
|
|
@@ -2634,22 +2634,22 @@ function lt(e) {
|
|
|
2634
2634
|
return (t = e == null ? void 0 : e.some((n) => n.includes(`
|
|
2635
2635
|
`))) !== null && t !== void 0 ? t : !1;
|
|
2636
2636
|
}
|
|
2637
|
-
const We = JSON,
|
|
2637
|
+
const We = JSON, Kn = (e) => e.toUpperCase(), Wn = (e) => {
|
|
2638
2638
|
const t = {};
|
|
2639
2639
|
return e.forEach((n, r) => {
|
|
2640
2640
|
t[r] = n;
|
|
2641
2641
|
}), t;
|
|
2642
|
-
},
|
|
2642
|
+
}, Zn = (e, t, n) => e.document ? e : {
|
|
2643
2643
|
document: e,
|
|
2644
2644
|
variables: t,
|
|
2645
2645
|
requestHeaders: n,
|
|
2646
2646
|
signal: void 0
|
|
2647
|
-
},
|
|
2647
|
+
}, er = (e, t, n) => e.query ? e : {
|
|
2648
2648
|
query: e,
|
|
2649
2649
|
variables: t,
|
|
2650
2650
|
requestHeaders: n,
|
|
2651
2651
|
signal: void 0
|
|
2652
|
-
},
|
|
2652
|
+
}, tr = (e, t) => e.documents ? e : {
|
|
2653
2653
|
documents: e,
|
|
2654
2654
|
requestHeaders: t,
|
|
2655
2655
|
signal: void 0
|
|
@@ -2669,28 +2669,28 @@ const We = JSON, Qn = (e) => e.toUpperCase(), Kn = (e) => {
|
|
|
2669
2669
|
return { query: e, operationName: n };
|
|
2670
2670
|
}
|
|
2671
2671
|
const t = ft(e);
|
|
2672
|
-
return { query:
|
|
2672
|
+
return { query: Jn(e), operationName: t };
|
|
2673
2673
|
};
|
|
2674
|
-
class
|
|
2674
|
+
class Q extends Error {
|
|
2675
2675
|
constructor(t, n) {
|
|
2676
|
-
const r = `${
|
|
2676
|
+
const r = `${Q.extractMessage(t)}: ${JSON.stringify({
|
|
2677
2677
|
response: t,
|
|
2678
2678
|
request: n
|
|
2679
2679
|
})}`;
|
|
2680
|
-
super(r), Object.setPrototypeOf(this,
|
|
2680
|
+
super(r), Object.setPrototypeOf(this, Q.prototype), this.response = t, this.request = n, typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this, Q);
|
|
2681
2681
|
}
|
|
2682
2682
|
static extractMessage(t) {
|
|
2683
2683
|
var n, r, i;
|
|
2684
2684
|
return (i = (r = (n = t.errors) == null ? void 0 : n[0]) == null ? void 0 : r.message) != null ? i : `GraphQL Error (Code: ${t.status})`;
|
|
2685
2685
|
}
|
|
2686
2686
|
}
|
|
2687
|
-
var
|
|
2687
|
+
var nr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
2688
2688
|
function Ze(e) {
|
|
2689
2689
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2690
2690
|
}
|
|
2691
2691
|
var je = { exports: {} };
|
|
2692
2692
|
(function(e, t) {
|
|
2693
|
-
var n = typeof self != "undefined" ? self :
|
|
2693
|
+
var n = typeof self != "undefined" ? self : nr, r = function() {
|
|
2694
2694
|
function s() {
|
|
2695
2695
|
this.fetch = !1, this.DOMException = n.DOMException;
|
|
2696
2696
|
}
|
|
@@ -2805,7 +2805,7 @@ var je = { exports: {} };
|
|
|
2805
2805
|
var d = new FileReader(), T = b(d);
|
|
2806
2806
|
return d.readAsArrayBuffer(u), T;
|
|
2807
2807
|
}
|
|
2808
|
-
function
|
|
2808
|
+
function j(u) {
|
|
2809
2809
|
var d = new FileReader(), T = b(d);
|
|
2810
2810
|
return d.readAsText(u), T;
|
|
2811
2811
|
}
|
|
@@ -2820,7 +2820,7 @@ var je = { exports: {} };
|
|
|
2820
2820
|
var d = new Uint8Array(u.byteLength);
|
|
2821
2821
|
return d.set(new Uint8Array(u)), d.buffer;
|
|
2822
2822
|
}
|
|
2823
|
-
function
|
|
2823
|
+
function q() {
|
|
2824
2824
|
return this.bodyUsed = !1, this._initBody = function(u) {
|
|
2825
2825
|
this._bodyInit = u, u ? typeof u == "string" ? this._bodyText = u : a.blob && Blob.prototype.isPrototypeOf(u) ? this._bodyBlob = u : a.formData && FormData.prototype.isPrototypeOf(u) ? this._bodyFormData = u : a.searchParams && URLSearchParams.prototype.isPrototypeOf(u) ? this._bodyText = u.toString() : a.arrayBuffer && a.blob && c(u) ? (this._bodyArrayBuffer = P(u.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : a.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(u) || h(u)) ? this._bodyArrayBuffer = P(u) : this._bodyText = u = Object.prototype.toString.call(u) : this._bodyText = "", this.headers.get("content-type") || (typeof u == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : a.searchParams && URLSearchParams.prototype.isPrototypeOf(u) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
2826
2826
|
}, a.blob && (this.blob = function() {
|
|
@@ -2841,7 +2841,7 @@ var je = { exports: {} };
|
|
|
2841
2841
|
if (u)
|
|
2842
2842
|
return u;
|
|
2843
2843
|
if (this._bodyBlob)
|
|
2844
|
-
return
|
|
2844
|
+
return j(this._bodyBlob);
|
|
2845
2845
|
if (this._bodyArrayBuffer)
|
|
2846
2846
|
return Promise.resolve(k(this._bodyArrayBuffer));
|
|
2847
2847
|
if (this._bodyFormData)
|
|
@@ -2858,10 +2858,10 @@ var je = { exports: {} };
|
|
|
2858
2858
|
var d = u.toUpperCase();
|
|
2859
2859
|
return se.indexOf(d) > -1 ? d : u;
|
|
2860
2860
|
}
|
|
2861
|
-
function
|
|
2861
|
+
function U(u, d) {
|
|
2862
2862
|
d = d || {};
|
|
2863
2863
|
var T = d.body;
|
|
2864
|
-
if (u instanceof
|
|
2864
|
+
if (u instanceof U) {
|
|
2865
2865
|
if (u.bodyUsed)
|
|
2866
2866
|
throw new TypeError("Already read");
|
|
2867
2867
|
this.url = u.url, this.credentials = u.credentials, d.headers || (this.headers = new y(u.headers)), this.method = u.method, this.mode = u.mode, this.signal = u.signal, !T && u._bodyInit != null && (T = u._bodyInit, u.bodyUsed = !0);
|
|
@@ -2871,8 +2871,8 @@ var je = { exports: {} };
|
|
|
2871
2871
|
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
2872
2872
|
this._initBody(T);
|
|
2873
2873
|
}
|
|
2874
|
-
|
|
2875
|
-
return new
|
|
2874
|
+
U.prototype.clone = function() {
|
|
2875
|
+
return new U(this, { body: this._bodyInit });
|
|
2876
2876
|
};
|
|
2877
2877
|
function Wt(u) {
|
|
2878
2878
|
var d = new FormData();
|
|
@@ -2893,11 +2893,11 @@ var je = { exports: {} };
|
|
|
2893
2893
|
}
|
|
2894
2894
|
}), d;
|
|
2895
2895
|
}
|
|
2896
|
-
|
|
2896
|
+
q.call(U.prototype);
|
|
2897
2897
|
function M(u, d) {
|
|
2898
2898
|
d || (d = {}), this.type = "default", this.status = d.status === void 0 ? 200 : d.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in d ? d.statusText : "OK", this.headers = new y(d.headers), this.url = d.url || "", this._initBody(u);
|
|
2899
2899
|
}
|
|
2900
|
-
|
|
2900
|
+
q.call(M.prototype), M.prototype.clone = function() {
|
|
2901
2901
|
return new M(this._bodyInit, {
|
|
2902
2902
|
status: this.status,
|
|
2903
2903
|
statusText: this.statusText,
|
|
@@ -2925,7 +2925,7 @@ var je = { exports: {} };
|
|
|
2925
2925
|
}
|
|
2926
2926
|
function be(u, d) {
|
|
2927
2927
|
return new Promise(function(T, w) {
|
|
2928
|
-
var D = new
|
|
2928
|
+
var D = new U(u, d);
|
|
2929
2929
|
if (D.signal && D.signal.aborted)
|
|
2930
2930
|
return w(new o.DOMException("Aborted", "AbortError"));
|
|
2931
2931
|
var A = new XMLHttpRequest();
|
|
@@ -2954,22 +2954,22 @@ var je = { exports: {} };
|
|
|
2954
2954
|
}), A.send(typeof D._bodyInit == "undefined" ? null : D._bodyInit);
|
|
2955
2955
|
});
|
|
2956
2956
|
}
|
|
2957
|
-
return be.polyfill = !0, s.fetch || (s.fetch = be, s.Headers = y, s.Request =
|
|
2957
|
+
return be.polyfill = !0, s.fetch || (s.fetch = be, s.Headers = y, s.Request = U, s.Response = M), o.Headers = y, o.Request = U, o.Response = M, o.fetch = be, Object.defineProperty(o, "__esModule", { value: !0 }), o;
|
|
2958
2958
|
})({});
|
|
2959
2959
|
})(r), r.fetch.ponyfill = !0, delete r.fetch.polyfill;
|
|
2960
2960
|
var i = r;
|
|
2961
2961
|
t = i.fetch, t.default = i.fetch, t.fetch = i.fetch, t.Headers = i.Headers, t.Request = i.Request, t.Response = i.Response, e.exports = t;
|
|
2962
2962
|
})(je, je.exports);
|
|
2963
2963
|
var qe = je.exports;
|
|
2964
|
-
const me = /* @__PURE__ */ Ze(qe),
|
|
2964
|
+
const me = /* @__PURE__ */ Ze(qe), rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2965
2965
|
__proto__: null,
|
|
2966
2966
|
default: me
|
|
2967
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2967
|
+
}, Symbol.toStringTag, { value: "Module" })), z = (e) => {
|
|
2968
2968
|
let t = {};
|
|
2969
|
-
return e && (typeof Headers != "undefined" && e instanceof Headers ||
|
|
2969
|
+
return e && (typeof Headers != "undefined" && e instanceof Headers || rr && qe.Headers && e instanceof qe.Headers ? t = Wn(e) : Array.isArray(e) ? e.forEach(([n, r]) => {
|
|
2970
2970
|
n && r !== void 0 && (t[n] = r);
|
|
2971
2971
|
}) : t = e), t;
|
|
2972
|
-
}, ht = (e) => e.replace(/([\s,]|#[^\n\r]+)+/g, " ").trim(),
|
|
2972
|
+
}, ht = (e) => e.replace(/([\s,]|#[^\n\r]+)+/g, " ").trim(), ir = (e) => {
|
|
2973
2973
|
if (!Array.isArray(e.query)) {
|
|
2974
2974
|
const r = e, i = [`query=${encodeURIComponent(ht(r.query))}`];
|
|
2975
2975
|
return e.variables && i.push(`variables=${encodeURIComponent(r.jsonSerializer.stringify(r.variables))}`), r.operationName && i.push(`operationName=${encodeURIComponent(r.operationName)}`), i.join("&");
|
|
@@ -2981,11 +2981,11 @@ const me = /* @__PURE__ */ Ze(qe), nr = /* @__PURE__ */ Object.freeze(/* @__PURE
|
|
|
2981
2981
|
variables: t.variables ? t.jsonSerializer.stringify(t.variables[s]) : void 0
|
|
2982
2982
|
}), r), []);
|
|
2983
2983
|
return `query=${encodeURIComponent(t.jsonSerializer.stringify(n))}`;
|
|
2984
|
-
},
|
|
2984
|
+
}, sr = (e) => (t) => B(void 0, null, function* () {
|
|
2985
2985
|
var N;
|
|
2986
2986
|
const { url: n, query: r, variables: i, operationName: s, fetch: o, fetchOptions: a, middleware: c } = t, f = _({}, t.headers);
|
|
2987
2987
|
let h = "", m;
|
|
2988
|
-
e === "POST" ? (m =
|
|
2988
|
+
e === "POST" ? (m = or(r, i, s, a.jsonSerializer), typeof m == "string" && (f["Content-Type"] = "application/json")) : h = ir({
|
|
2989
2989
|
query: r,
|
|
2990
2990
|
variables: i,
|
|
2991
2991
|
operationName: s,
|
|
@@ -2998,22 +2998,22 @@ const me = /* @__PURE__ */ Ze(qe), nr = /* @__PURE__ */ Object.freeze(/* @__PURE
|
|
|
2998
2998
|
}, a);
|
|
2999
2999
|
let S = n, y = E;
|
|
3000
3000
|
if (c) {
|
|
3001
|
-
const b = yield Promise.resolve(c(
|
|
3002
|
-
S =
|
|
3001
|
+
const b = yield Promise.resolve(c(H(_({}, E), { url: n, operationName: s, variables: i }))), { url: j } = b, k = G(b, ["url"]);
|
|
3002
|
+
S = j, y = k;
|
|
3003
3003
|
}
|
|
3004
3004
|
return h && (S = `${S}?${h}`), yield o(S, y);
|
|
3005
3005
|
});
|
|
3006
|
-
class
|
|
3006
|
+
class Si {
|
|
3007
3007
|
constructor(t, n = {}) {
|
|
3008
|
-
this.url = t, this.requestConfig = n, this.rawRequest = (...r) =>
|
|
3009
|
-
const [i, s, o] = r, a =
|
|
3008
|
+
this.url = t, this.requestConfig = n, this.rawRequest = (...r) => B(this, null, function* () {
|
|
3009
|
+
const [i, s, o] = r, a = er(i, s, o), b = this.requestConfig, { headers: c, fetch: f = me, method: h = "POST", requestMiddleware: m, responseMiddleware: E } = b, S = G(b, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: y } = this;
|
|
3010
3010
|
a.signal !== void 0 && (S.signal = a.signal);
|
|
3011
3011
|
const { operationName: N } = Re(a.query);
|
|
3012
3012
|
return ke({
|
|
3013
3013
|
url: y,
|
|
3014
3014
|
query: a.query,
|
|
3015
3015
|
variables: a.variables,
|
|
3016
|
-
headers: _(_({},
|
|
3016
|
+
headers: _(_({}, z(Le(c))), z(a.requestHeaders)),
|
|
3017
3017
|
operationName: N,
|
|
3018
3018
|
fetch: f,
|
|
3019
3019
|
method: h,
|
|
@@ -3025,15 +3025,15 @@ class vi {
|
|
|
3025
3025
|
});
|
|
3026
3026
|
}
|
|
3027
3027
|
request(t, ...n) {
|
|
3028
|
-
return
|
|
3029
|
-
const [r, i] = n, s =
|
|
3028
|
+
return B(this, null, function* () {
|
|
3029
|
+
const [r, i] = n, s = Zn(t, r, i), N = this.requestConfig, { headers: o, fetch: a = me, method: c = "POST", requestMiddleware: f, responseMiddleware: h } = N, m = G(N, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: E } = this;
|
|
3030
3030
|
s.signal !== void 0 && (m.signal = s.signal);
|
|
3031
3031
|
const { query: S, operationName: y } = Re(s.document);
|
|
3032
3032
|
return ke({
|
|
3033
3033
|
url: E,
|
|
3034
3034
|
query: S,
|
|
3035
3035
|
variables: s.variables,
|
|
3036
|
-
headers: _(_({},
|
|
3036
|
+
headers: _(_({}, z(Le(o))), z(s.requestHeaders)),
|
|
3037
3037
|
operationName: y,
|
|
3038
3038
|
fetch: a,
|
|
3039
3039
|
method: c,
|
|
@@ -3047,7 +3047,7 @@ class vi {
|
|
|
3047
3047
|
// prettier-ignore
|
|
3048
3048
|
batchRequests(t, n) {
|
|
3049
3049
|
var f;
|
|
3050
|
-
const r =
|
|
3050
|
+
const r = tr(t, n), c = this.requestConfig, { headers: i } = c, s = G(c, ["headers"]);
|
|
3051
3051
|
r.signal !== void 0 && (s.signal = r.signal);
|
|
3052
3052
|
const o = r.documents.map(({ document: h }) => Re(h).query), a = r.documents.map(({ variables: h }) => h);
|
|
3053
3053
|
return ke({
|
|
@@ -3055,7 +3055,7 @@ class vi {
|
|
|
3055
3055
|
query: o,
|
|
3056
3056
|
// @ts-expect-error TODO reconcile batch variables into system.
|
|
3057
3057
|
variables: a,
|
|
3058
|
-
headers: _(_({},
|
|
3058
|
+
headers: _(_({}, z(Le(i))), z(r.requestHeaders)),
|
|
3059
3059
|
operationName: void 0,
|
|
3060
3060
|
fetch: (f = this.requestConfig.fetch) != null ? f : me,
|
|
3061
3061
|
method: this.requestConfig.method || "POST",
|
|
@@ -3082,12 +3082,12 @@ class vi {
|
|
|
3082
3082
|
return this.url = t, this;
|
|
3083
3083
|
}
|
|
3084
3084
|
}
|
|
3085
|
-
const ke = (e) =>
|
|
3085
|
+
const ke = (e) => B(void 0, null, function* () {
|
|
3086
3086
|
var h, m;
|
|
3087
|
-
const { query: t, variables: n, fetchOptions: r } = e, i =
|
|
3087
|
+
const { query: t, variables: n, fetchOptions: r } = e, i = sr(Kn((h = e.method) != null ? h : "post")), s = Array.isArray(e.query), o = yield i(e), a = yield ar(o, (m = r.jsonSerializer) != null ? m : We), c = Array.isArray(a) ? !a.some(({ data: S }) => !S) : !!a.data, f = Array.isArray(a) || !a.errors || Array.isArray(a.errors) && !a.errors.length || r.errorPolicy === "all" || r.errorPolicy === "ignore";
|
|
3088
3088
|
if (o.ok && f && c) {
|
|
3089
|
-
const E = (Array.isArray(a), a), { errors: S } = E, y =
|
|
3090
|
-
return
|
|
3089
|
+
const E = (Array.isArray(a), a), { errors: S } = E, y = G(E, ["errors"]), N = r.errorPolicy === "ignore" ? y : a;
|
|
3090
|
+
return H(_({}, s ? { data: N } : N), {
|
|
3091
3091
|
headers: o.headers,
|
|
3092
3092
|
status: o.status
|
|
3093
3093
|
});
|
|
@@ -3095,13 +3095,13 @@ const ke = (e) => U(void 0, null, function* () {
|
|
|
3095
3095
|
const S = typeof a == "string" ? {
|
|
3096
3096
|
error: a
|
|
3097
3097
|
} : a;
|
|
3098
|
-
throw new
|
|
3098
|
+
throw new Q(
|
|
3099
3099
|
// @ts-expect-error TODO
|
|
3100
|
-
|
|
3100
|
+
H(_({}, S), { status: o.status, headers: o.headers }),
|
|
3101
3101
|
{ query: t, variables: n }
|
|
3102
3102
|
);
|
|
3103
3103
|
}
|
|
3104
|
-
}),
|
|
3104
|
+
}), or = (e, t, n, r) => {
|
|
3105
3105
|
const i = r != null ? r : We;
|
|
3106
3106
|
if (!Array.isArray(e))
|
|
3107
3107
|
return i.stringify({ query: e, variables: t, operationName: n });
|
|
@@ -3109,7 +3109,7 @@ const ke = (e) => U(void 0, null, function* () {
|
|
|
3109
3109
|
throw new Error("Cannot create request body with given variable type, array expected");
|
|
3110
3110
|
const s = e.reduce((o, a, c) => (o.push({ query: a, variables: t ? t[c] : void 0 }), o), []);
|
|
3111
3111
|
return i.stringify(s);
|
|
3112
|
-
},
|
|
3112
|
+
}, ar = (e, t) => B(void 0, null, function* () {
|
|
3113
3113
|
let n;
|
|
3114
3114
|
return e.headers.forEach((r, i) => {
|
|
3115
3115
|
i.toLowerCase() === "content-type" && (n = r);
|
|
@@ -3134,8 +3134,8 @@ var He = { exports: {} };
|
|
|
3134
3134
|
};
|
|
3135
3135
|
}
|
|
3136
3136
|
})(He, He.exports);
|
|
3137
|
-
var
|
|
3138
|
-
const
|
|
3137
|
+
var cr = He.exports;
|
|
3138
|
+
const Ai = /* @__PURE__ */ Ze(cr);
|
|
3139
3139
|
var ye = function() {
|
|
3140
3140
|
return ye = Object.assign || function(t) {
|
|
3141
3141
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
@@ -3148,14 +3148,14 @@ var ye = function() {
|
|
|
3148
3148
|
function Pt(e) {
|
|
3149
3149
|
return e.replace(/[\s,]+/g, " ").trim();
|
|
3150
3150
|
}
|
|
3151
|
-
function
|
|
3151
|
+
function ur(e) {
|
|
3152
3152
|
return Pt(e.source.body.substring(e.start, e.end));
|
|
3153
3153
|
}
|
|
3154
|
-
function
|
|
3154
|
+
function lr(e) {
|
|
3155
3155
|
var t = /* @__PURE__ */ new Set(), n = [];
|
|
3156
3156
|
return e.definitions.forEach(function(r) {
|
|
3157
3157
|
if (r.kind === "FragmentDefinition") {
|
|
3158
|
-
var i = r.name.value, s =
|
|
3158
|
+
var i = r.name.value, s = ur(r.loc), o = Ge.get(i);
|
|
3159
3159
|
o && !o.has(s) ? Lt && console.warn("Warning: fragment with name " + i + ` already exists.
|
|
3160
3160
|
graphql-tag enforces all fragment names across your application to be unique; read more about
|
|
3161
3161
|
this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`) : o || Ge.set(i, o = /* @__PURE__ */ new Set()), o.add(s), t.has(s) || (t.add(s), n.push(r));
|
|
@@ -3163,7 +3163,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`) :
|
|
|
3163
3163
|
n.push(r);
|
|
3164
3164
|
}), ye(ye({}, e), { definitions: n });
|
|
3165
3165
|
}
|
|
3166
|
-
function
|
|
3166
|
+
function fr(e) {
|
|
3167
3167
|
var t = new Set(e.definitions);
|
|
3168
3168
|
t.forEach(function(r) {
|
|
3169
3169
|
r.loc && delete r.loc, Object.keys(r).forEach(function(i) {
|
|
@@ -3174,7 +3174,7 @@ function lr(e) {
|
|
|
3174
3174
|
var n = e.loc;
|
|
3175
3175
|
return n && (delete n.startToken, delete n.endToken), e;
|
|
3176
3176
|
}
|
|
3177
|
-
function
|
|
3177
|
+
function hr(e) {
|
|
3178
3178
|
var t = Pt(e);
|
|
3179
3179
|
if (!ge.has(t)) {
|
|
3180
3180
|
var n = Rt(e, {
|
|
@@ -3183,7 +3183,7 @@ function fr(e) {
|
|
|
3183
3183
|
});
|
|
3184
3184
|
if (!n || n.kind !== "Document")
|
|
3185
3185
|
throw new Error("Not a valid GraphQL document.");
|
|
3186
|
-
ge.set(t, lr(
|
|
3186
|
+
ge.set(t, fr(lr(n)));
|
|
3187
3187
|
}
|
|
3188
3188
|
return ge.get(t);
|
|
3189
3189
|
}
|
|
@@ -3194,26 +3194,26 @@ function R(e) {
|
|
|
3194
3194
|
var r = e[0];
|
|
3195
3195
|
return t.forEach(function(i, s) {
|
|
3196
3196
|
i && i.kind === "Document" ? r += i.loc.source.body : r += i, r += e[s + 1];
|
|
3197
|
-
}),
|
|
3197
|
+
}), hr(r);
|
|
3198
3198
|
}
|
|
3199
|
-
function
|
|
3199
|
+
function dr() {
|
|
3200
3200
|
ge.clear(), Ge.clear();
|
|
3201
3201
|
}
|
|
3202
|
-
function
|
|
3202
|
+
function pr() {
|
|
3203
3203
|
Lt = !1;
|
|
3204
3204
|
}
|
|
3205
|
-
function
|
|
3205
|
+
function mr() {
|
|
3206
3206
|
Ee = !0;
|
|
3207
3207
|
}
|
|
3208
|
-
function
|
|
3208
|
+
function gr() {
|
|
3209
3209
|
Ee = !1;
|
|
3210
3210
|
}
|
|
3211
3211
|
var ne = {
|
|
3212
3212
|
gql: R,
|
|
3213
|
-
resetCaches:
|
|
3214
|
-
disableFragmentWarnings:
|
|
3215
|
-
enableExperimentalFragmentVariables:
|
|
3216
|
-
disableExperimentalFragmentVariables:
|
|
3213
|
+
resetCaches: dr,
|
|
3214
|
+
disableFragmentWarnings: pr,
|
|
3215
|
+
enableExperimentalFragmentVariables: mr,
|
|
3216
|
+
disableExperimentalFragmentVariables: gr
|
|
3217
3217
|
};
|
|
3218
3218
|
(function(e) {
|
|
3219
3219
|
e.gql = ne.gql, e.resetCaches = ne.resetCaches, e.disableFragmentWarnings = ne.disableFragmentWarnings, e.enableExperimentalFragmentVariables = ne.enableExperimentalFragmentVariables, e.disableExperimentalFragmentVariables = ne.disableExperimentalFragmentVariables;
|
|
@@ -3224,7 +3224,7 @@ const Ft = R`
|
|
|
3224
3224
|
regexValue
|
|
3225
3225
|
matchValue
|
|
3226
3226
|
}
|
|
3227
|
-
`,
|
|
3227
|
+
`, yr = R`
|
|
3228
3228
|
mutation PushPayload(
|
|
3229
3229
|
$session_secure_id: String!
|
|
3230
3230
|
$payload_id: ID!
|
|
@@ -3250,7 +3250,7 @@ const Ft = R`
|
|
|
3250
3250
|
highlight_logs: $highlight_logs
|
|
3251
3251
|
)
|
|
3252
3252
|
}
|
|
3253
|
-
`,
|
|
3253
|
+
`, Er = R`
|
|
3254
3254
|
mutation PushSessionEvents(
|
|
3255
3255
|
$session_secure_id: String!
|
|
3256
3256
|
$payload_id: Int64ID!
|
|
@@ -3262,7 +3262,7 @@ const Ft = R`
|
|
|
3262
3262
|
data: $data
|
|
3263
3263
|
)
|
|
3264
3264
|
}
|
|
3265
|
-
`,
|
|
3265
|
+
`, _r = R`
|
|
3266
3266
|
mutation identifySession(
|
|
3267
3267
|
$session_secure_id: String!
|
|
3268
3268
|
$user_identifier: String!
|
|
@@ -3274,7 +3274,7 @@ const Ft = R`
|
|
|
3274
3274
|
user_object: $user_object
|
|
3275
3275
|
)
|
|
3276
3276
|
}
|
|
3277
|
-
`,
|
|
3277
|
+
`, Tr = R`
|
|
3278
3278
|
mutation addSessionProperties(
|
|
3279
3279
|
$session_secure_id: String!
|
|
3280
3280
|
$properties_object: Any
|
|
@@ -3284,11 +3284,11 @@ const Ft = R`
|
|
|
3284
3284
|
properties_object: $properties_object
|
|
3285
3285
|
)
|
|
3286
3286
|
}
|
|
3287
|
-
`,
|
|
3287
|
+
`, vr = R`
|
|
3288
3288
|
mutation pushMetrics($metrics: [MetricInput]!) {
|
|
3289
3289
|
pushMetrics(metrics: $metrics)
|
|
3290
3290
|
}
|
|
3291
|
-
`,
|
|
3291
|
+
`, Sr = R`
|
|
3292
3292
|
mutation addSessionFeedback(
|
|
3293
3293
|
$session_secure_id: String!
|
|
3294
3294
|
$user_name: String
|
|
@@ -3304,7 +3304,7 @@ const Ft = R`
|
|
|
3304
3304
|
timestamp: $timestamp
|
|
3305
3305
|
)
|
|
3306
3306
|
}
|
|
3307
|
-
`,
|
|
3307
|
+
`, Ar = R`
|
|
3308
3308
|
mutation initializeSession(
|
|
3309
3309
|
$session_secure_id: String!
|
|
3310
3310
|
$session_key: String
|
|
@@ -3392,11 +3392,11 @@ const Ft = R`
|
|
|
3392
3392
|
}
|
|
3393
3393
|
}
|
|
3394
3394
|
${Ft}
|
|
3395
|
-
`,
|
|
3395
|
+
`, Nr = R`
|
|
3396
3396
|
query Ignore($id: ID!) {
|
|
3397
3397
|
ignore(id: $id)
|
|
3398
3398
|
}
|
|
3399
|
-
`,
|
|
3399
|
+
`, Ir = R`
|
|
3400
3400
|
query GetSamplingConfig($organization_verbose_id: String!) {
|
|
3401
3401
|
sampling(organization_verbose_id: $organization_verbose_id) {
|
|
3402
3402
|
spans {
|
|
@@ -3446,13 +3446,13 @@ const Ft = R`
|
|
|
3446
3446
|
}
|
|
3447
3447
|
}
|
|
3448
3448
|
${Ft}
|
|
3449
|
-
`,
|
|
3450
|
-
function
|
|
3449
|
+
`, br = (e, t, n, r) => e();
|
|
3450
|
+
function Ni(e, t = br) {
|
|
3451
3451
|
return {
|
|
3452
3452
|
PushPayload(n, r) {
|
|
3453
3453
|
return t(
|
|
3454
3454
|
(i) => e.request(
|
|
3455
|
-
|
|
3455
|
+
yr,
|
|
3456
3456
|
n,
|
|
3457
3457
|
_(_({}, r), i)
|
|
3458
3458
|
),
|
|
@@ -3464,7 +3464,7 @@ function Ai(e, t = Ir) {
|
|
|
3464
3464
|
PushSessionEvents(n, r) {
|
|
3465
3465
|
return t(
|
|
3466
3466
|
(i) => e.request(
|
|
3467
|
-
|
|
3467
|
+
Er,
|
|
3468
3468
|
n,
|
|
3469
3469
|
_(_({}, r), i)
|
|
3470
3470
|
),
|
|
@@ -3476,7 +3476,7 @@ function Ai(e, t = Ir) {
|
|
|
3476
3476
|
identifySession(n, r) {
|
|
3477
3477
|
return t(
|
|
3478
3478
|
(i) => e.request(
|
|
3479
|
-
|
|
3479
|
+
_r,
|
|
3480
3480
|
n,
|
|
3481
3481
|
_(_({}, r), i)
|
|
3482
3482
|
),
|
|
@@ -3488,7 +3488,7 @@ function Ai(e, t = Ir) {
|
|
|
3488
3488
|
addSessionProperties(n, r) {
|
|
3489
3489
|
return t(
|
|
3490
3490
|
(i) => e.request(
|
|
3491
|
-
|
|
3491
|
+
Tr,
|
|
3492
3492
|
n,
|
|
3493
3493
|
_(_({}, r), i)
|
|
3494
3494
|
),
|
|
@@ -3500,7 +3500,7 @@ function Ai(e, t = Ir) {
|
|
|
3500
3500
|
pushMetrics(n, r) {
|
|
3501
3501
|
return t(
|
|
3502
3502
|
(i) => e.request(
|
|
3503
|
-
|
|
3503
|
+
vr,
|
|
3504
3504
|
n,
|
|
3505
3505
|
_(_({}, r), i)
|
|
3506
3506
|
),
|
|
@@ -3512,7 +3512,7 @@ function Ai(e, t = Ir) {
|
|
|
3512
3512
|
addSessionFeedback(n, r) {
|
|
3513
3513
|
return t(
|
|
3514
3514
|
(i) => e.request(
|
|
3515
|
-
|
|
3515
|
+
Sr,
|
|
3516
3516
|
n,
|
|
3517
3517
|
_(_({}, r), i)
|
|
3518
3518
|
),
|
|
@@ -3524,7 +3524,7 @@ function Ai(e, t = Ir) {
|
|
|
3524
3524
|
initializeSession(n, r) {
|
|
3525
3525
|
return t(
|
|
3526
3526
|
(i) => e.request(
|
|
3527
|
-
|
|
3527
|
+
Ar,
|
|
3528
3528
|
n,
|
|
3529
3529
|
_(_({}, r), i)
|
|
3530
3530
|
),
|
|
@@ -3535,7 +3535,7 @@ function Ai(e, t = Ir) {
|
|
|
3535
3535
|
},
|
|
3536
3536
|
Ignore(n, r) {
|
|
3537
3537
|
return t(
|
|
3538
|
-
(i) => e.request(
|
|
3538
|
+
(i) => e.request(Nr, n, _(_({}, r), i)),
|
|
3539
3539
|
"Ignore",
|
|
3540
3540
|
"query",
|
|
3541
3541
|
n
|
|
@@ -3544,7 +3544,7 @@ function Ai(e, t = Ir) {
|
|
|
3544
3544
|
GetSamplingConfig(n, r) {
|
|
3545
3545
|
return t(
|
|
3546
3546
|
(i) => e.request(
|
|
3547
|
-
|
|
3547
|
+
Ir,
|
|
3548
3548
|
n,
|
|
3549
3549
|
_(_({}, r), i)
|
|
3550
3550
|
),
|
|
@@ -3555,7 +3555,7 @@ function Ai(e, t = Ir) {
|
|
|
3555
3555
|
}
|
|
3556
3556
|
};
|
|
3557
3557
|
}
|
|
3558
|
-
function
|
|
3558
|
+
function Ii(e, t, n) {
|
|
3559
3559
|
try {
|
|
3560
3560
|
if (!(t in e))
|
|
3561
3561
|
return () => {
|
|
@@ -3574,7 +3574,7 @@ function Ni(e, t, n) {
|
|
|
3574
3574
|
};
|
|
3575
3575
|
}
|
|
3576
3576
|
}
|
|
3577
|
-
function
|
|
3577
|
+
function xr(e) {
|
|
3578
3578
|
if (!e || !e.outerHTML)
|
|
3579
3579
|
return "";
|
|
3580
3580
|
let t = "";
|
|
@@ -3605,7 +3605,7 @@ function Mt(e, t) {
|
|
|
3605
3605
|
return !0;
|
|
3606
3606
|
return !1;
|
|
3607
3607
|
}
|
|
3608
|
-
function
|
|
3608
|
+
function bi(e, t) {
|
|
3609
3609
|
const n = {
|
|
3610
3610
|
numOfKeysLimit: 50,
|
|
3611
3611
|
depthOfLimit: 4
|
|
@@ -3626,7 +3626,7 @@ function Ii(e, t) {
|
|
|
3626
3626
|
const f = {};
|
|
3627
3627
|
for (const h in c) {
|
|
3628
3628
|
const m = c[h];
|
|
3629
|
-
Array.isArray(m) ? f[h] =
|
|
3629
|
+
Array.isArray(m) ? f[h] = xr(
|
|
3630
3630
|
m.length ? m[0] : null
|
|
3631
3631
|
) : f[h] = m;
|
|
3632
3632
|
}
|
|
@@ -3647,12 +3647,12 @@ function Ii(e, t) {
|
|
|
3647
3647
|
return n.stringLengthLimit && c.length > n.stringLengthLimit && (c = `${c.slice(0, n.stringLengthLimit)}...`), c;
|
|
3648
3648
|
}
|
|
3649
3649
|
}
|
|
3650
|
-
function
|
|
3650
|
+
function Or() {
|
|
3651
3651
|
var e = document.createElement("canvas");
|
|
3652
3652
|
return e.getContext && e.getContext("2d") ? e.toDataURL("image/webp").indexOf("data:image/webp") == 0 : !1;
|
|
3653
3653
|
}
|
|
3654
|
-
function
|
|
3655
|
-
return
|
|
3654
|
+
function xi() {
|
|
3655
|
+
return Or() ? {
|
|
3656
3656
|
type: "image/webp",
|
|
3657
3657
|
quality: 0.9
|
|
3658
3658
|
} : {
|
|
@@ -3660,10 +3660,10 @@ function bi() {
|
|
|
3660
3660
|
quality: 0.6
|
|
3661
3661
|
};
|
|
3662
3662
|
}
|
|
3663
|
-
function
|
|
3663
|
+
function Oi(e) {
|
|
3664
3664
|
return typeof e == "number" && !isNaN(e) && isFinite(e);
|
|
3665
3665
|
}
|
|
3666
|
-
const
|
|
3666
|
+
const Di = "exception.message", wi = "exception.stacktrace", Ci = "exception.type", Ri = "http.response.status_code", ki = "server.address", Li = "service.name", Pi = "service.version", Fi = "telemetry.sdk.name", Mi = "telemetry.sdk.version", $i = "url.full", Ui = "url.path", Bi = "url.query", Vi = "user_agent.original", ji = 1e3, qi = 1e3 * 2, Hi = 4 * 60 * 60 * 1e3, et = 15 * 60 * 1e3, Gi = {
|
|
3667
3667
|
normal: {
|
|
3668
3668
|
bytes: 1e7,
|
|
3669
3669
|
time: 4 * 60 * 1e3
|
|
@@ -3672,11 +3672,11 @@ const Oi = "exception.message", Di = "exception.stacktrace", wi = "exception.typ
|
|
|
3672
3672
|
bytes: 16e6,
|
|
3673
3673
|
time: 5e3
|
|
3674
3674
|
}
|
|
3675
|
-
},
|
|
3675
|
+
}, Yi = 100, zi = "app.highlight.io", Ji = "https://app.launchdarkly.com", Xi = {
|
|
3676
3676
|
"observability.ld-stg.launchdarkly.com": "ld-stg.launchdarkly.com",
|
|
3677
3677
|
"observability.app.launchdarkly.com": "app.launchdarkly.com",
|
|
3678
3678
|
"observability.app.ld.catamorphic.com": "app.ld.catamorphic.com"
|
|
3679
|
-
},
|
|
3679
|
+
}, Qi = "/projects/default", Ki = new RegExp("pub\\.(?<domain>.+)");
|
|
3680
3680
|
/*! js-cookie v3.0.8 | MIT */
|
|
3681
3681
|
function le(e) {
|
|
3682
3682
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -3686,7 +3686,7 @@ function le(e) {
|
|
|
3686
3686
|
}
|
|
3687
3687
|
return e;
|
|
3688
3688
|
}
|
|
3689
|
-
var
|
|
3689
|
+
var Dr = {
|
|
3690
3690
|
read: function(e) {
|
|
3691
3691
|
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
3692
3692
|
},
|
|
@@ -3747,11 +3747,11 @@ function ze(e, t) {
|
|
|
3747
3747
|
}
|
|
3748
3748
|
);
|
|
3749
3749
|
}
|
|
3750
|
-
var fe = ze(
|
|
3750
|
+
var fe = ze(Dr, { path: "/" }), wr = /* @__PURE__ */ ((e) => (e.CLIENT_ID = "highlightClientID", e))(wr || {});
|
|
3751
3751
|
let _e = "localStorage", Je = !0;
|
|
3752
|
-
class
|
|
3752
|
+
class Cr {
|
|
3753
3753
|
constructor() {
|
|
3754
|
-
|
|
3754
|
+
Y(this, "storage", {});
|
|
3755
3755
|
}
|
|
3756
3756
|
get length() {
|
|
3757
3757
|
return Object.keys(this.storage).length;
|
|
@@ -3771,7 +3771,7 @@ class wr {
|
|
|
3771
3771
|
delete this.storage[t];
|
|
3772
3772
|
}
|
|
3773
3773
|
}
|
|
3774
|
-
class
|
|
3774
|
+
class Rr {
|
|
3775
3775
|
getItem(t) {
|
|
3776
3776
|
var n;
|
|
3777
3777
|
return (n = fe.get(t)) != null ? n : "";
|
|
@@ -3790,10 +3790,10 @@ class Cr {
|
|
|
3790
3790
|
return Object.keys((t = fe.get()) != null ? t : {});
|
|
3791
3791
|
}
|
|
3792
3792
|
}
|
|
3793
|
-
const
|
|
3793
|
+
const K = new Cr(), W = new Rr(), Ae = () => {
|
|
3794
3794
|
let e = null;
|
|
3795
3795
|
if (typeof window == "undefined")
|
|
3796
|
-
return
|
|
3796
|
+
return K;
|
|
3797
3797
|
try {
|
|
3798
3798
|
switch (_e) {
|
|
3799
3799
|
case "localStorage":
|
|
@@ -3803,23 +3803,23 @@ const Q = new wr(), W = new Cr(), Ae = () => {
|
|
|
3803
3803
|
e = window.sessionStorage;
|
|
3804
3804
|
break;
|
|
3805
3805
|
}
|
|
3806
|
-
e || (
|
|
3806
|
+
e || ($(
|
|
3807
3807
|
"storage",
|
|
3808
3808
|
"getPersistentStorage",
|
|
3809
3809
|
"debug",
|
|
3810
3810
|
`persistent storage was not found for mode ${_e}; using global storage`
|
|
3811
|
-
), e =
|
|
3811
|
+
), e = K);
|
|
3812
3812
|
} catch (t) {
|
|
3813
|
-
|
|
3813
|
+
$(
|
|
3814
3814
|
"storage",
|
|
3815
3815
|
"getPersistentStorage",
|
|
3816
3816
|
"debug",
|
|
3817
3817
|
"failed to get persistent storage; using global storage",
|
|
3818
3818
|
t
|
|
3819
|
-
), e =
|
|
3819
|
+
), e = K;
|
|
3820
3820
|
}
|
|
3821
3821
|
return e;
|
|
3822
|
-
},
|
|
3822
|
+
}, kr = (e) => {
|
|
3823
3823
|
_e = e;
|
|
3824
3824
|
}, dt = (e) => {
|
|
3825
3825
|
Je = e;
|
|
@@ -3827,49 +3827,55 @@ const Q = new wr(), W = new Cr(), Ae = () => {
|
|
|
3827
3827
|
try {
|
|
3828
3828
|
return Ae().getItem(e);
|
|
3829
3829
|
} catch (t) {
|
|
3830
|
-
return
|
|
3830
|
+
return $(
|
|
3831
3831
|
"storage",
|
|
3832
3832
|
"getItem",
|
|
3833
3833
|
"debug",
|
|
3834
3834
|
`failed to get item ${e}; using global storage`,
|
|
3835
3835
|
t
|
|
3836
|
-
),
|
|
3836
|
+
), K.getItem(e);
|
|
3837
3837
|
}
|
|
3838
3838
|
}, $t = (e, t) => {
|
|
3839
3839
|
W.setItem(e, t);
|
|
3840
3840
|
try {
|
|
3841
3841
|
return Ae().setItem(e, t);
|
|
3842
3842
|
} catch (n) {
|
|
3843
|
-
return
|
|
3843
|
+
return $(
|
|
3844
3844
|
"storage",
|
|
3845
3845
|
"setItem",
|
|
3846
3846
|
"debug",
|
|
3847
3847
|
`failed to set item ${e}; using global storage`,
|
|
3848
3848
|
n
|
|
3849
|
-
),
|
|
3849
|
+
), K.setItem(e, t);
|
|
3850
3850
|
}
|
|
3851
3851
|
}, Ut = (e) => {
|
|
3852
3852
|
W.removeItem(e);
|
|
3853
3853
|
try {
|
|
3854
3854
|
return Ae().removeItem(e);
|
|
3855
3855
|
} catch (t) {
|
|
3856
|
-
return
|
|
3856
|
+
return $(
|
|
3857
3857
|
"storage",
|
|
3858
3858
|
"removeItem",
|
|
3859
3859
|
"debug",
|
|
3860
3860
|
`failed to remove item ${e}; using global storage`,
|
|
3861
3861
|
t
|
|
3862
|
-
),
|
|
3862
|
+
), K.removeItem(e);
|
|
3863
3863
|
}
|
|
3864
|
-
},
|
|
3864
|
+
}, Wi = (e) => {
|
|
3865
3865
|
if (_e === "sessionStorage") {
|
|
3866
|
-
|
|
3866
|
+
$(
|
|
3867
|
+
"segment",
|
|
3868
|
+
"sessionStorage",
|
|
3869
|
+
"warn",
|
|
3867
3870
|
"highlight.io cannot use local storage; segment integration will not work"
|
|
3868
3871
|
);
|
|
3869
3872
|
return;
|
|
3870
3873
|
}
|
|
3871
3874
|
if (typeof window == "undefined") {
|
|
3872
|
-
|
|
3875
|
+
$(
|
|
3876
|
+
"segment",
|
|
3877
|
+
"no-window",
|
|
3878
|
+
"warn",
|
|
3873
3879
|
"highlight.io cannot use local storage (not a window); segment integration will not work"
|
|
3874
3880
|
);
|
|
3875
3881
|
return;
|
|
@@ -3881,32 +3887,32 @@ const Q = new wr(), W = new Cr(), Ae = () => {
|
|
|
3881
3887
|
};
|
|
3882
3888
|
};
|
|
3883
3889
|
var ee = /* @__PURE__ */ ((e) => (e.SEGMENT_LAST_SENT_HASH_KEY = "HIGHLIGHT_SEGMENT_LAST_SENT_HASH_KEY", e.SESSION_ID = "sessionID", e.SESSION_DATA = "sessionData", e.USER_IDENTIFIER = "highlightIdentifier", e.USER_OBJECT = "highlightUserObject", e))(ee || {});
|
|
3884
|
-
const Ne = (e) => `${ee.SESSION_DATA}_${e}`,
|
|
3890
|
+
const Ne = (e) => `${ee.SESSION_DATA}_${e}`, Lr = () => {
|
|
3885
3891
|
var e;
|
|
3886
3892
|
return typeof globalThis != "undefined" && ((e = globalThis.persistentSessionSecureID) != null && e.length) ? globalThis.persistentSessionSecureID : Bt();
|
|
3887
|
-
},
|
|
3893
|
+
}, Pr = (e) => {
|
|
3888
3894
|
typeof globalThis != "undefined" && (e != null && e.length) && (globalThis.persistentSessionSecureID = e);
|
|
3889
3895
|
}, Bt = () => {
|
|
3890
3896
|
var e;
|
|
3891
3897
|
return (e = tt(ee.SESSION_ID)) != null ? e : "";
|
|
3892
3898
|
}, Vt = (e) => {
|
|
3893
3899
|
$t(ee.SESSION_ID, e);
|
|
3894
|
-
},
|
|
3900
|
+
}, Fr = (e) => {
|
|
3895
3901
|
const t = Ne(e);
|
|
3896
3902
|
return JSON.parse(tt(t) || "{}");
|
|
3897
|
-
},
|
|
3903
|
+
}, Mr = (e) => {
|
|
3898
3904
|
e || (e = Bt());
|
|
3899
|
-
let t =
|
|
3905
|
+
let t = Fr(e);
|
|
3900
3906
|
if (t && t.lastPushTime && Date.now() - t.lastPushTime < et)
|
|
3901
3907
|
return t;
|
|
3902
3908
|
Ut(Ne(e));
|
|
3903
3909
|
}, jt = function(e) {
|
|
3904
3910
|
if (!(e != null && e.sessionSecureID)) return;
|
|
3905
3911
|
const t = e.sessionSecureID;
|
|
3906
|
-
|
|
3912
|
+
Pr(t);
|
|
3907
3913
|
const n = Ne(t);
|
|
3908
|
-
$t(n, JSON.stringify(e)),
|
|
3909
|
-
},
|
|
3914
|
+
$t(n, JSON.stringify(e)), Ur(n);
|
|
3915
|
+
}, $r = function() {
|
|
3910
3916
|
const e = W.getItem(
|
|
3911
3917
|
ee.SESSION_ID
|
|
3912
3918
|
);
|
|
@@ -3917,7 +3923,7 @@ const Ne = (e) => `${ee.SESSION_DATA}_${e}`, kr = () => {
|
|
|
3917
3923
|
} catch (r) {
|
|
3918
3924
|
}
|
|
3919
3925
|
};
|
|
3920
|
-
function
|
|
3926
|
+
function Ur(e) {
|
|
3921
3927
|
var i;
|
|
3922
3928
|
const t = `${ee.SESSION_DATA}_`, n = /* @__PURE__ */ new Set(), r = Ae();
|
|
3923
3929
|
for (let s = r.length - 1; s >= 0; s--) {
|
|
@@ -3933,7 +3939,7 @@ function $r(e) {
|
|
|
3933
3939
|
o = f === void 0 || Date.now() - f >= et;
|
|
3934
3940
|
} catch (a) {
|
|
3935
3941
|
}
|
|
3936
|
-
o && (
|
|
3942
|
+
o && ($(
|
|
3937
3943
|
"highlightSession",
|
|
3938
3944
|
"pruneSessionData",
|
|
3939
3945
|
"debug",
|
|
@@ -3942,23 +3948,23 @@ function $r(e) {
|
|
|
3942
3948
|
}
|
|
3943
3949
|
}
|
|
3944
3950
|
var qt = /* @__PURE__ */ ((e) => (e.BillingQuotaExceeded = "BillingQuotaExceeded", e))(qt || {});
|
|
3945
|
-
const
|
|
3951
|
+
const Br = 3, Vr = 1e3, jr = 500, qr = [qt.BillingQuotaExceeded.toString()], Hr = (e) => {
|
|
3946
3952
|
var n;
|
|
3947
3953
|
return ((n = e.response.errors) == null ? void 0 : n.find(
|
|
3948
|
-
(r) =>
|
|
3954
|
+
(r) => qr.includes(r.message)
|
|
3949
3955
|
)) === void 0;
|
|
3950
|
-
},
|
|
3951
|
-
const e = (t, n, r, i, s = 0) =>
|
|
3956
|
+
}, Zi = () => {
|
|
3957
|
+
const e = (t, n, r, i, s = 0) => B(void 0, null, function* () {
|
|
3952
3958
|
try {
|
|
3953
3959
|
return yield t();
|
|
3954
3960
|
} catch (o) {
|
|
3955
|
-
if (o instanceof
|
|
3961
|
+
if (o instanceof Q && !Hr(o))
|
|
3956
3962
|
throw o;
|
|
3957
|
-
if (s <
|
|
3963
|
+
if (s < Br)
|
|
3958
3964
|
return yield new Promise(
|
|
3959
3965
|
(a) => setTimeout(
|
|
3960
3966
|
a,
|
|
3961
|
-
|
|
3967
|
+
Vr + jr * Math.pow(2, s)
|
|
3962
3968
|
)
|
|
3963
3969
|
), yield e(
|
|
3964
3970
|
t,
|
|
@@ -3967,13 +3973,14 @@ const Ur = 3, Br = 1e3, Vr = 500, jr = [qt.BillingQuotaExceeded.toString()], qr
|
|
|
3967
3973
|
i,
|
|
3968
3974
|
s + 1
|
|
3969
3975
|
);
|
|
3970
|
-
throw
|
|
3976
|
+
throw an(
|
|
3977
|
+
"error",
|
|
3971
3978
|
`highlight.io: data request failed after ${s} retries`
|
|
3972
3979
|
), o;
|
|
3973
3980
|
}
|
|
3974
3981
|
});
|
|
3975
3982
|
return e;
|
|
3976
|
-
}, C = "feature_flag", Ht = "launchdarkly", Gt = "evaluation",
|
|
3983
|
+
}, C = "feature_flag", Ht = "launchdarkly", Gt = "evaluation", Gr = `${C}.${Gt}`, es = `${C}.set.id`, Yr = `${C}.key`, zr = `${C}.contextKeys`, Jr = `${C}.context.id`, Xr = `${C}.result.value`, Qr = `${C}.provider.name`, pt = {
|
|
3977
3984
|
kind: `${C}.result.reason.kind`,
|
|
3978
3985
|
errorKind: `${C}.result.reason.errorKind`,
|
|
3979
3986
|
ruleIndex: `${C}.result.reason.ruleIndex`,
|
|
@@ -3981,7 +3988,7 @@ const Ur = 3, Br = 1e3, Vr = 500, jr = [qt.BillingQuotaExceeded.toString()], qr
|
|
|
3981
3988
|
prerequisiteKey: `${C}.result.reason.prerequisiteKey`,
|
|
3982
3989
|
inExperiment: `${C}.result.reason.inExperiment`,
|
|
3983
3990
|
bigSegmentsStatus: `${C}.result.reason.bigSegmentsStatus`
|
|
3984
|
-
},
|
|
3991
|
+
}, Kr = `${C}.result.variationIndex`, ts = `${Ht}.application.id`, ns = `${Ht}.application.version`, Wr = "context", rs = `${Wr}.contextKeys`, Zr = "$ld:telemetry:session:init", mt = "$ld:telemetry:track", is = "launchdarkly.track", ss = "page_view", os = "document_load", as = "result.status";
|
|
3985
3992
|
function gt(e) {
|
|
3986
3993
|
return e.includes("%") || e.includes(":") ? e.replace(/%/g, "%25").replace(/:/g, "%3A") : e;
|
|
3987
3994
|
}
|
|
@@ -4000,52 +4007,52 @@ function Et(e) {
|
|
|
4000
4007
|
user: e.key
|
|
4001
4008
|
};
|
|
4002
4009
|
}
|
|
4003
|
-
function
|
|
4010
|
+
function cs(e, t, n) {
|
|
4004
4011
|
t.addHook({
|
|
4005
4012
|
getMetadata: () => ({
|
|
4006
4013
|
name: "highlight.run"
|
|
4007
4014
|
}),
|
|
4008
4015
|
afterIdentify: (r, i, s) => {
|
|
4009
4016
|
var a, c;
|
|
4010
|
-
const o =
|
|
4017
|
+
const o = H(_({}, Et(r.context)), {
|
|
4011
4018
|
key: (c = (a = n == null ? void 0 : n.contextFriendlyName) == null ? void 0 : a.call(n, r.context)) != null ? c : yt(r.context)
|
|
4012
4019
|
});
|
|
4013
4020
|
return e.log("LD.identify", "INFO", o), s.status === "completed" && e.identify(o.key, o, "LaunchDarkly"), i;
|
|
4014
4021
|
},
|
|
4015
4022
|
afterEvaluation: (r, i, s) => {
|
|
4016
4023
|
const o = _({
|
|
4017
|
-
[
|
|
4018
|
-
[
|
|
4019
|
-
[
|
|
4024
|
+
[Qr]: "LaunchDarkly",
|
|
4025
|
+
[Yr]: r.flagKey,
|
|
4026
|
+
[Xr]: JSON.stringify(s.value)
|
|
4020
4027
|
}, s.variationIndex !== void 0 && s.variationIndex !== null ? {
|
|
4021
|
-
[
|
|
4028
|
+
[Kr]: s.variationIndex
|
|
4022
4029
|
} : {});
|
|
4023
4030
|
if (s.reason)
|
|
4024
4031
|
for (const a in pt) {
|
|
4025
4032
|
const c = a, f = s.reason[c];
|
|
4026
4033
|
f != null && (o[pt[c]] = f);
|
|
4027
4034
|
}
|
|
4028
|
-
return r.context && (o[
|
|
4035
|
+
return r.context && (o[zr] = JSON.stringify(
|
|
4029
4036
|
Et(r.context)
|
|
4030
|
-
), o[
|
|
4037
|
+
), o[Jr] = yt(
|
|
4031
4038
|
r.context
|
|
4032
4039
|
)), e.startSpan(Gt, (a) => {
|
|
4033
|
-
a && a.addEvent(
|
|
4040
|
+
a && a.addEvent(Gr, o);
|
|
4034
4041
|
}), i;
|
|
4035
4042
|
}
|
|
4036
4043
|
});
|
|
4037
4044
|
}
|
|
4038
|
-
class
|
|
4045
|
+
class ei {
|
|
4039
4046
|
constructor(t, n) {
|
|
4040
|
-
|
|
4041
|
-
|
|
4047
|
+
Y(this, "client");
|
|
4048
|
+
Y(this, "metadata");
|
|
4042
4049
|
this.client = t, this.metadata = n;
|
|
4043
4050
|
}
|
|
4044
4051
|
getHooks(t) {
|
|
4045
4052
|
return [];
|
|
4046
4053
|
}
|
|
4047
4054
|
init(t) {
|
|
4048
|
-
this.client.track(
|
|
4055
|
+
this.client.track(Zr, {
|
|
4049
4056
|
sessionID: t
|
|
4050
4057
|
});
|
|
4051
4058
|
}
|
|
@@ -4059,17 +4066,17 @@ class Zr {
|
|
|
4059
4066
|
const r = n.event;
|
|
4060
4067
|
this.client.track(
|
|
4061
4068
|
r ? `${mt}:${r}` : mt,
|
|
4062
|
-
|
|
4069
|
+
H(_({}, n), {
|
|
4063
4070
|
sessionID: t
|
|
4064
4071
|
})
|
|
4065
4072
|
);
|
|
4066
4073
|
}
|
|
4067
4074
|
}
|
|
4068
|
-
class
|
|
4075
|
+
class us extends cn {
|
|
4069
4076
|
constructor(n, r) {
|
|
4070
4077
|
super();
|
|
4071
|
-
|
|
4072
|
-
this.client = new
|
|
4078
|
+
Y(this, "client");
|
|
4079
|
+
this.client = new ei(n, r);
|
|
4073
4080
|
}
|
|
4074
4081
|
getHooks(n) {
|
|
4075
4082
|
return [
|
|
@@ -4102,7 +4109,7 @@ class cs extends an {
|
|
|
4102
4109
|
return this._bufferCall("track", [n, r]);
|
|
4103
4110
|
}
|
|
4104
4111
|
}
|
|
4105
|
-
const
|
|
4112
|
+
const ls = (e) => {
|
|
4106
4113
|
e(window.location.href);
|
|
4107
4114
|
const t = history.pushState;
|
|
4108
4115
|
history.pushState = /* @__PURE__ */ ((s) => function() {
|
|
@@ -4124,15 +4131,15 @@ const us = (e) => {
|
|
|
4124
4131
|
return window.addEventListener("locationchange", i), () => {
|
|
4125
4132
|
window.removeEventListener("popstate", r), window.removeEventListener("locationchange", i), history.pushState = t, history.replaceState = n;
|
|
4126
4133
|
};
|
|
4127
|
-
},
|
|
4128
|
-
version:
|
|
4129
|
-
},
|
|
4134
|
+
}, ti = "1.3.1", ni = {
|
|
4135
|
+
version: ti
|
|
4136
|
+
}, fs = ni.version;
|
|
4130
4137
|
let L, nt;
|
|
4131
|
-
function
|
|
4138
|
+
function hs(e, t) {
|
|
4132
4139
|
return e.nodeType, Node.ELEMENT_NODE, Xe(e);
|
|
4133
|
-
return
|
|
4140
|
+
return ri(e, t);
|
|
4134
4141
|
}
|
|
4135
|
-
function
|
|
4142
|
+
function ds(e) {
|
|
4136
4143
|
if (e.id.length)
|
|
4137
4144
|
return `#${e.id}`;
|
|
4138
4145
|
if (e.classList.length) {
|
|
@@ -4143,7 +4150,7 @@ function hs(e) {
|
|
|
4143
4150
|
}
|
|
4144
4151
|
return e.nodeName.toLowerCase();
|
|
4145
4152
|
}
|
|
4146
|
-
function
|
|
4153
|
+
function ri(e, t) {
|
|
4147
4154
|
if (e.tagName.toLowerCase() === "html")
|
|
4148
4155
|
return "html";
|
|
4149
4156
|
try {
|
|
@@ -4159,7 +4166,7 @@ function ni(e, t) {
|
|
|
4159
4166
|
maxNumberOfTries: 1e3,
|
|
4160
4167
|
optimized: !0
|
|
4161
4168
|
};
|
|
4162
|
-
L = _(_({}, n), t), nt =
|
|
4169
|
+
L = _(_({}, n), t), nt = ii(L.root, n);
|
|
4163
4170
|
let r = Pe(
|
|
4164
4171
|
e,
|
|
4165
4172
|
0,
|
|
@@ -4185,14 +4192,14 @@ function ni(e, t) {
|
|
|
4185
4192
|
return Xe(e);
|
|
4186
4193
|
}
|
|
4187
4194
|
}
|
|
4188
|
-
function
|
|
4195
|
+
function ii(e, t) {
|
|
4189
4196
|
return e.nodeType === Node.DOCUMENT_NODE ? e : e === t.root ? e.ownerDocument : e;
|
|
4190
4197
|
}
|
|
4191
4198
|
function Pe(e, t, n) {
|
|
4192
4199
|
let r = null, i = [], s = e, o = 0;
|
|
4193
4200
|
for (; s && s !== L.root.parentElement; ) {
|
|
4194
|
-
let a = he(
|
|
4195
|
-
const c =
|
|
4201
|
+
let a = he(si(s)) || he(...oi(s)) || he(...ai(s)) || he(ci(s)) || [ui()];
|
|
4202
|
+
const c = li(s);
|
|
4196
4203
|
if (t === 0)
|
|
4197
4204
|
c && (a = a.concat(
|
|
4198
4205
|
a.filter(Me).map((f) => Fe(f, c))
|
|
@@ -4243,14 +4250,14 @@ function zt(e) {
|
|
|
4243
4250
|
return !1;
|
|
4244
4251
|
}
|
|
4245
4252
|
}
|
|
4246
|
-
function
|
|
4253
|
+
function si(e) {
|
|
4247
4254
|
const t = e.getAttribute("id");
|
|
4248
4255
|
return t && L.idName(t) ? {
|
|
4249
4256
|
name: "#" + Te(t, { isIdentifier: !0 }),
|
|
4250
4257
|
penalty: 0
|
|
4251
4258
|
} : null;
|
|
4252
4259
|
}
|
|
4253
|
-
function
|
|
4260
|
+
function oi(e) {
|
|
4254
4261
|
return Array.from(e.attributes).filter(
|
|
4255
4262
|
(n) => L.attr(n.name, n.value)
|
|
4256
4263
|
).map(
|
|
@@ -4260,7 +4267,7 @@ function si(e) {
|
|
|
4260
4267
|
})
|
|
4261
4268
|
);
|
|
4262
4269
|
}
|
|
4263
|
-
function
|
|
4270
|
+
function ai(e) {
|
|
4264
4271
|
return Array.from(e.classList).filter(L.className).map(
|
|
4265
4272
|
(n) => ({
|
|
4266
4273
|
name: "." + Te(n, { isIdentifier: !0 }),
|
|
@@ -4268,20 +4275,20 @@ function oi(e) {
|
|
|
4268
4275
|
})
|
|
4269
4276
|
);
|
|
4270
4277
|
}
|
|
4271
|
-
function
|
|
4278
|
+
function ci(e) {
|
|
4272
4279
|
const t = e.tagName.toLowerCase();
|
|
4273
4280
|
return L.tagName(t) ? {
|
|
4274
4281
|
name: t,
|
|
4275
4282
|
penalty: 2
|
|
4276
4283
|
} : null;
|
|
4277
4284
|
}
|
|
4278
|
-
function
|
|
4285
|
+
function ui() {
|
|
4279
4286
|
return {
|
|
4280
4287
|
name: "*",
|
|
4281
4288
|
penalty: 3
|
|
4282
4289
|
};
|
|
4283
4290
|
}
|
|
4284
|
-
function
|
|
4291
|
+
function li(e) {
|
|
4285
4292
|
const t = e.parentNode;
|
|
4286
4293
|
if (!t)
|
|
4287
4294
|
return null;
|
|
@@ -4303,10 +4310,10 @@ function Me(e) {
|
|
|
4303
4310
|
return e.name !== "html" && !e.name.startsWith("#");
|
|
4304
4311
|
}
|
|
4305
4312
|
function he(...e) {
|
|
4306
|
-
const t = e.filter(
|
|
4313
|
+
const t = e.filter(fi);
|
|
4307
4314
|
return t.length > 0 ? t : null;
|
|
4308
4315
|
}
|
|
4309
|
-
function
|
|
4316
|
+
function fi(e) {
|
|
4310
4317
|
return e != null;
|
|
4311
4318
|
}
|
|
4312
4319
|
function* Jt(e, t = []) {
|
|
@@ -4333,20 +4340,20 @@ function* Qt(e, t, n = {
|
|
|
4333
4340
|
const s = Ie(i);
|
|
4334
4341
|
if (n.visited.has(s))
|
|
4335
4342
|
return;
|
|
4336
|
-
zt(i) &&
|
|
4343
|
+
zt(i) && hi(i, t) && (yield i, n.visited.set(s, !0), yield* we(Qt(i, t, n)));
|
|
4337
4344
|
}
|
|
4338
4345
|
}
|
|
4339
|
-
function
|
|
4346
|
+
function hi(e, t) {
|
|
4340
4347
|
return nt.querySelector(Ie(e)) === t;
|
|
4341
4348
|
}
|
|
4342
|
-
const
|
|
4349
|
+
const di = /[ -,\.\/:-@\[-\^`\{-~]/, pi = /[ -,\.\/:-@\[\]\^`\{-~]/, mi = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g, gi = {
|
|
4343
4350
|
escapeEverything: !1,
|
|
4344
4351
|
isIdentifier: !1,
|
|
4345
4352
|
quotes: "single",
|
|
4346
4353
|
wrap: !1
|
|
4347
4354
|
};
|
|
4348
4355
|
function Te(e, t = {}) {
|
|
4349
|
-
const n = _(_({},
|
|
4356
|
+
const n = _(_({}, gi), t);
|
|
4350
4357
|
n.quotes != "single" && n.quotes != "double" && (n.quotes = "single");
|
|
4351
4358
|
const r = n.quotes == "double" ? '"' : "'", i = n.isIdentifier, s = e.charAt(0);
|
|
4352
4359
|
let o = "", a = 0;
|
|
@@ -4361,10 +4368,10 @@ function Te(e, t = {}) {
|
|
|
4361
4368
|
}
|
|
4362
4369
|
m = "\\" + h.toString(16).toUpperCase() + " ";
|
|
4363
4370
|
} else
|
|
4364
|
-
n.escapeEverything ?
|
|
4371
|
+
n.escapeEverything ? di.test(f) ? m = "\\" + f : m = "\\" + h.toString(16).toUpperCase() + " " : /[\t\n\f\r\x0B]/.test(f) ? m = "\\" + h.toString(16).toUpperCase() + " " : f == "\\" || !i && (f == '"' && r == f || f == "'" && r == f) || i && pi.test(f) ? m = "\\" + f : m = f;
|
|
4365
4372
|
o += m;
|
|
4366
4373
|
}
|
|
4367
|
-
return i && (/^-[-\d]/.test(o) ? o = "\\-" + o.slice(1) : /\d/.test(s) && (o = "\\3" + s + " " + o.slice(1))), o = o.replace(
|
|
4374
|
+
return i && (/^-[-\d]/.test(o) ? o = "\\-" + o.slice(1) : /\d/.test(s) && (o = "\\3" + s + " " + o.slice(1))), o = o.replace(mi, function(f, h, m) {
|
|
4368
4375
|
return h && h.length % 2 ? f : (h || "") + m;
|
|
4369
4376
|
}), !i && n.wrap ? r + o + r : o;
|
|
4370
4377
|
}
|
|
@@ -4372,7 +4379,7 @@ const Xe = (e) => {
|
|
|
4372
4379
|
let t = "";
|
|
4373
4380
|
const n = e.getAttribute("class"), r = e.getAttribute("id");
|
|
4374
4381
|
return r && (t = t.concat(vt(r, "#"))), n && (t = t.concat(vt(n, "."))), t === "" && (t = t.concat(e.tagName.toLowerCase())), t;
|
|
4375
|
-
}, vt = (e, t) => `${t}${e.trim().split(" ").join(t)}`,
|
|
4382
|
+
}, vt = (e, t) => `${t}${e.trim().split(" ").join(t)}`, ps = (e) => {
|
|
4376
4383
|
let t;
|
|
4377
4384
|
const r = () => {
|
|
4378
4385
|
clearTimeout(t), t = setTimeout(() => {
|
|
@@ -4444,33 +4451,33 @@ var Kt = { exports: {} };
|
|
|
4444
4451
|
}, t = new n(), e.exports = n;
|
|
4445
4452
|
})();
|
|
4446
4453
|
})(Kt);
|
|
4447
|
-
var
|
|
4448
|
-
const
|
|
4454
|
+
var yi = Kt.exports;
|
|
4455
|
+
const Ei = /* @__PURE__ */ Ze(yi), $e = 28, J = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", _i = 2246822507, St = (e) => {
|
|
4449
4456
|
var n;
|
|
4450
4457
|
var t = "";
|
|
4451
4458
|
if (e) {
|
|
4452
|
-
const r =
|
|
4459
|
+
const r = Ei(e).result();
|
|
4453
4460
|
for (let i = 0; i < $e; i++) {
|
|
4454
|
-
const o = ((r ^ i *
|
|
4455
|
-
t +=
|
|
4461
|
+
const o = ((r ^ i * _i) >>> 0) % J.length;
|
|
4462
|
+
t += J.charAt(o);
|
|
4456
4463
|
}
|
|
4457
4464
|
} else {
|
|
4458
4465
|
const r = typeof window != "undefined" && ((n = window.crypto) == null ? void 0 : n.getRandomValues), i = new Uint32Array($e);
|
|
4459
4466
|
r && window.crypto.getRandomValues(i);
|
|
4460
4467
|
for (let s = 0; s < $e; s++)
|
|
4461
|
-
r ? t +=
|
|
4462
|
-
i[s] %
|
|
4463
|
-
) : t +=
|
|
4464
|
-
Math.floor(Math.random() *
|
|
4468
|
+
r ? t += J.charAt(
|
|
4469
|
+
i[s] % J.length
|
|
4470
|
+
) : t += J.charAt(
|
|
4471
|
+
Math.floor(Math.random() * J.length)
|
|
4465
4472
|
);
|
|
4466
4473
|
}
|
|
4467
4474
|
return t;
|
|
4468
4475
|
};
|
|
4469
|
-
class
|
|
4476
|
+
class ms {
|
|
4470
4477
|
constructor(t) {
|
|
4471
|
-
|
|
4478
|
+
Y(this, "sessionSecureID");
|
|
4472
4479
|
try {
|
|
4473
|
-
t != null && t.storageMode &&
|
|
4480
|
+
t != null && t.storageMode && kr(t == null ? void 0 : t.storageMode), dt(!!(t != null && t.sessionCookie)), t != null && t.sessionCookie ? $r() : dt(!1);
|
|
4474
4481
|
} catch (n) {
|
|
4475
4482
|
st(
|
|
4476
4483
|
"Error initializing @launchdarkly observability plugin",
|
|
@@ -4481,8 +4488,8 @@ class ps {
|
|
|
4481
4488
|
}
|
|
4482
4489
|
configureSession(t, n) {
|
|
4483
4490
|
try {
|
|
4484
|
-
const r =
|
|
4485
|
-
let i =
|
|
4491
|
+
const r = Lr();
|
|
4492
|
+
let i = Mr(
|
|
4486
4493
|
r
|
|
4487
4494
|
);
|
|
4488
4495
|
i != null && i.sessionSecureID ? this.sessionSecureID = i.sessionSecureID : (n != null && n.sessionKey ? this.sessionSecureID = St(
|
|
@@ -4504,84 +4511,84 @@ class ps {
|
|
|
4504
4511
|
}
|
|
4505
4512
|
}
|
|
4506
4513
|
export {
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
+
Vr as $,
|
|
4515
|
+
Ki as A,
|
|
4516
|
+
Ji as B,
|
|
4517
|
+
Xi as C,
|
|
4518
|
+
Qi as D,
|
|
4519
|
+
ms as E,
|
|
4520
|
+
ji as F,
|
|
4514
4521
|
St as G,
|
|
4515
|
-
|
|
4522
|
+
zi as H,
|
|
4516
4523
|
yt as I,
|
|
4517
4524
|
Et as J,
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4525
|
+
ns as K,
|
|
4526
|
+
us as L,
|
|
4527
|
+
Hi as M,
|
|
4528
|
+
ts as N,
|
|
4529
|
+
Qr as O,
|
|
4530
|
+
ls as P,
|
|
4531
|
+
es as Q,
|
|
4532
|
+
Mi as R,
|
|
4526
4533
|
ee as S,
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4534
|
+
Fi as T,
|
|
4535
|
+
nr as U,
|
|
4536
|
+
Yi as V,
|
|
4530
4537
|
Ze as W,
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4538
|
+
Ii as X,
|
|
4539
|
+
bi as Y,
|
|
4540
|
+
Lr as Z,
|
|
4541
|
+
Br as _,
|
|
4535
4542
|
tt as a,
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4543
|
+
jr as a0,
|
|
4544
|
+
$i as a1,
|
|
4545
|
+
ss as a2,
|
|
4546
|
+
Ri as a3,
|
|
4547
|
+
Vi as a4,
|
|
4548
|
+
Pi as a5,
|
|
4549
|
+
Li as a6,
|
|
4550
|
+
os as a7,
|
|
4551
|
+
Bi as a8,
|
|
4552
|
+
Ui as a9,
|
|
4553
|
+
Ci as aa,
|
|
4554
|
+
Di as ab,
|
|
4555
|
+
wi as ac,
|
|
4556
|
+
rs as ad,
|
|
4557
|
+
ki as ae,
|
|
4558
|
+
is as af,
|
|
4559
|
+
Xr as ag,
|
|
4553
4560
|
Gt as ah,
|
|
4554
4561
|
C as ai,
|
|
4555
|
-
|
|
4556
|
-
|
|
4562
|
+
Kr as aj,
|
|
4563
|
+
Yr as ak,
|
|
4557
4564
|
pt as al,
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4565
|
+
zr as am,
|
|
4566
|
+
Jr as an,
|
|
4567
|
+
as as ao,
|
|
4568
|
+
xi as b,
|
|
4569
|
+
Ni as c,
|
|
4563
4570
|
$t as d,
|
|
4564
4571
|
Vt as e,
|
|
4565
4572
|
jt as f,
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4573
|
+
Mr as g,
|
|
4574
|
+
ps as h,
|
|
4575
|
+
qi as i,
|
|
4569
4576
|
dt as j,
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
+
Gi as k,
|
|
4578
|
+
wr as l,
|
|
4579
|
+
kr as m,
|
|
4580
|
+
Zi as n,
|
|
4581
|
+
Si as o,
|
|
4582
|
+
Jn as p,
|
|
4583
|
+
ds as q,
|
|
4577
4584
|
Ut as r,
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4585
|
+
Ai as s,
|
|
4586
|
+
Oi as t,
|
|
4587
|
+
Er as u,
|
|
4588
|
+
cs as v,
|
|
4589
|
+
$r as w,
|
|
4590
|
+
fs as x,
|
|
4591
|
+
hs as y,
|
|
4592
|
+
Wi as z
|
|
4586
4593
|
};
|
|
4587
|
-
//# sourceMappingURL=common-
|
|
4594
|
+
//# sourceMappingURL=common-BjaGmQrE.js.map
|