@sprig-technologies/sprig-bundled 2.36.0 → 2.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-DUrh-8K2.js → index-BO6_4fuH.js} +205 -203
- package/dist/{index-BKyswg0t.cjs → index-M_lw8BlN.cjs} +14 -14
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1 -1
- package/dist/view-BLTLs8qM.js +2260 -0
- package/dist/view-CiIcnVI2.cjs +12 -0
- package/package.json +2 -2
- package/dist/view-DGwoaf-2.js +0 -2209
- package/dist/view-DtYclioL.cjs +0 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var vd = Object.defineProperty;
|
|
2
2
|
var bd = (e, t, r) => t in e ? vd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var ue = (e, t, r) => bd(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
var Sd = Object.create, lo = Object.defineProperty, Id = Object.getOwnPropertyDescriptor, Cd = Object.getOwnPropertyNames, kd = Object.getPrototypeOf,
|
|
4
|
+
var Sd = Object.create, lo = Object.defineProperty, Id = Object.getOwnPropertyDescriptor, Cd = Object.getOwnPropertyNames, kd = Object.getPrototypeOf, Ed = Object.prototype.hasOwnProperty, hr = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), xd = hr((e, t) => {
|
|
5
5
|
var r;
|
|
6
6
|
r = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t.exports = r;
|
|
7
7
|
}), Rd = hr((e, t) => {
|
|
@@ -36,7 +36,7 @@ var Sd = Object.create, lo = Object.defineProperty, Id = Object.getOwnPropertyDe
|
|
|
36
36
|
};
|
|
37
37
|
var r = Object.prototype.hasOwnProperty;
|
|
38
38
|
}), Ad = hr((e, t) => {
|
|
39
|
-
var r =
|
|
39
|
+
var r = xd(), n = Rd(), s = Ld(), i = Od();
|
|
40
40
|
function a(c, u, d) {
|
|
41
41
|
var p = c;
|
|
42
42
|
return n(u) ? (d = u, typeof c == "string" && (p = { uri: c })) : p = i(u, { uri: c }), p.callback = d, p;
|
|
@@ -66,20 +66,20 @@ var Sd = Object.create, lo = Object.defineProperty, Id = Object.getOwnPropertyDe
|
|
|
66
66
|
return L;
|
|
67
67
|
}
|
|
68
68
|
function f(L) {
|
|
69
|
-
return clearTimeout(g), L instanceof Error || (L = new Error("" + (L || "Unknown XMLHttpRequest Error"))), L.statusCode = 0, d(L,
|
|
69
|
+
return clearTimeout(g), L instanceof Error || (L = new Error("" + (L || "Unknown XMLHttpRequest Error"))), L.statusCode = 0, d(L, E);
|
|
70
70
|
}
|
|
71
71
|
function y() {
|
|
72
72
|
if (!m) {
|
|
73
73
|
var L;
|
|
74
74
|
clearTimeout(g), L = c.useXDR && h.status === void 0 ? 200 : h.status === 1223 ? 204 : h.status;
|
|
75
|
-
var O =
|
|
75
|
+
var O = E, S = null;
|
|
76
76
|
return L !== 0 ? (O = { body: p(), statusCode: L, method: I, headers: {}, url: v, rawRequest: h }, h.getAllResponseHeaders && (O.headers = s(h.getAllResponseHeaders()))) : S = new Error("Internal XMLHttpRequest Error"), d(S, O, O.body);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
var h = c.xhr || null;
|
|
80
80
|
h || (h = c.cors || c.useXDR ? new o.XDomainRequest() : new o.XMLHttpRequest());
|
|
81
|
-
var k, m, g, v = h.url = c.uri || c.url, I = h.method = c.method || "GET", M = c.body || c.data,
|
|
82
|
-
if ("json" in c && c.json !== !1 && (A = !0,
|
|
81
|
+
var k, m, g, v = h.url = c.uri || c.url, I = h.method = c.method || "GET", M = c.body || c.data, x = h.headers = c.headers || {}, U = !!c.sync, A = !1, E = { body: void 0, headers: {}, statusCode: 0, method: I, url: v, rawRequest: h };
|
|
82
|
+
if ("json" in c && c.json !== !1 && (A = !0, x.accept || x.Accept || (x.Accept = "application/json"), I !== "GET" && I !== "HEAD" && (x["content-type"] || x["Content-Type"] || (x["Content-Type"] = "application/json"), M = JSON.stringify(c.json === !0 ? M : c.json))), h.onreadystatechange = function() {
|
|
83
83
|
h.readyState === 4 && setTimeout(y, 0);
|
|
84
84
|
}, h.onload = y, h.onerror = f, h.onprogress = function() {
|
|
85
85
|
}, h.onabort = function() {
|
|
@@ -90,7 +90,7 @@ var Sd = Object.create, lo = Object.defineProperty, Id = Object.getOwnPropertyDe
|
|
|
90
90
|
var L = new Error("XMLHttpRequest timeout");
|
|
91
91
|
L.code = "ETIMEDOUT", f(L);
|
|
92
92
|
}
|
|
93
|
-
}, c.timeout)), h.setRequestHeader) for (k in
|
|
93
|
+
}, c.timeout)), h.setRequestHeader) for (k in x) x.hasOwnProperty(k) && h.setRequestHeader(k, x[k]);
|
|
94
94
|
else if (c.headers && !function(L) {
|
|
95
95
|
for (var O in L) if (L.hasOwnProperty(O)) return !1;
|
|
96
96
|
return !0;
|
|
@@ -375,8 +375,8 @@ var Tn = class {
|
|
|
375
375
|
d === -1 ? function(p, f, y, h, k, m) {
|
|
376
376
|
let g;
|
|
377
377
|
m && (g = bo.bind(null, p, f, y), m.addEventListener("abort", g));
|
|
378
|
-
let v = function(I, M,
|
|
379
|
-
return { callback: I, flags: (M ? 1 : 0) | (
|
|
378
|
+
let v = function(I, M, x, U, A, E) {
|
|
379
|
+
return { callback: I, flags: (M ? 1 : 0) | (x ? 2 : 0) | (U ? 4 : 0), signal: A, signalListener: E };
|
|
380
380
|
}(f, y, h, k, m, g);
|
|
381
381
|
p.cow ? (p.cow = !1, p.listeners = [...p.listeners, v]) : p.listeners.push(v);
|
|
382
382
|
}(u, s, i, o, a, l) : function(p, f, y, h) {
|
|
@@ -431,12 +431,12 @@ var Qn = Object.getOwnPropertyNames(Tn.prototype);
|
|
|
431
431
|
for (let e = 0; e < Qn.length; ++e) Qn[e] !== "constructor" && Object.defineProperty(Tn.prototype, Qn[e], { enumerable: !0 });
|
|
432
432
|
Me !== void 0 && Me.EventTarget !== void 0 && Object.setPrototypeOf(Tn.prototype, Me.EventTarget.prototype);
|
|
433
433
|
var Io, Bd = ((e, t, r) => (r = e != null ? Sd(kd(e)) : {}, ((n, s, i, a) => {
|
|
434
|
-
if (s && typeof s == "object" || typeof s == "function") for (let o of Cd(s)) !
|
|
434
|
+
if (s && typeof s == "object" || typeof s == "function") for (let o of Cd(s)) !Ed.call(n, o) && o !== i && lo(n, o, { get: () => s[o], enumerable: !(a = Id(s, o)) || a.enumerable });
|
|
435
435
|
return n;
|
|
436
|
-
})(e && e.__esModule ? r : lo(r, "default", { value: e, enumerable: !0 }), e)))(Ad()), Dn = 512e3, Pn = 256, ks = (e, { minChunkSize: t = Pn, maxChunkSize: r = Dn } = {}) => e == null || typeof e == "number" && e >= 256 && e % 256 == 0 && e >= t && e <= r,
|
|
436
|
+
})(e && e.__esModule ? r : lo(r, "default", { value: e, enumerable: !0 }), e)))(Ad()), Dn = 512e3, Pn = 256, ks = (e, { minChunkSize: t = Pn, maxChunkSize: r = Dn } = {}) => e == null || typeof e == "number" && e >= 256 && e % 256 == 0 && e >= t && e <= r, Es = (e, { minChunkSize: t = Pn, maxChunkSize: r = Dn } = {}) => new TypeError(`chunkSize ${e} must be a positive number in multiples of 256, between ${t} and ${r}`), zd = class {
|
|
437
437
|
constructor(e, t = {}) {
|
|
438
438
|
var r, n, s;
|
|
439
|
-
if (this.readableStream = e, !ks(t.defaultChunkSize, t)) throw
|
|
439
|
+
if (this.readableStream = e, !ks(t.defaultChunkSize, t)) throw Es(t.defaultChunkSize, t);
|
|
440
440
|
this.defaultChunkSize = (r = t.defaultChunkSize) != null ? r : 30720, this.minChunkSize = (n = t.minChunkSize) != null ? n : Pn, this.maxChunkSize = (s = t.maxChunkSize) != null ? s : Dn;
|
|
441
441
|
}
|
|
442
442
|
get chunkSize() {
|
|
@@ -444,7 +444,7 @@ var Io, Bd = ((e, t, r) => (r = e != null ? Sd(kd(e)) : {}, ((n, s, i, a) => {
|
|
|
444
444
|
return (e = this._chunkSize) != null ? e : this.defaultChunkSize;
|
|
445
445
|
}
|
|
446
446
|
set chunkSize(e) {
|
|
447
|
-
if (!ks(e, this)) throw
|
|
447
|
+
if (!ks(e, this)) throw Es(e, this);
|
|
448
448
|
this._chunkSize = e;
|
|
449
449
|
}
|
|
450
450
|
get chunkByteSize() {
|
|
@@ -546,7 +546,7 @@ var Io, Bd = ((e, t, r) => (r = e != null ? Sd(kd(e)) : {}, ((n, s, i, a) => {
|
|
|
546
546
|
if (!this.endpoint || typeof this.endpoint != "function" && typeof this.endpoint != "string") throw new TypeError("endpoint must be defined as a string or a function that returns a promise");
|
|
547
547
|
if (!(this.file instanceof File)) throw new TypeError("file must be a File object");
|
|
548
548
|
if (this.headers && typeof this.headers != "function" && typeof this.headers != "object") throw new TypeError("headers must be null, an object, or a function that returns an object or a promise");
|
|
549
|
-
if (!ks(this.chunkSize, { maxChunkSize: this.maxChunkSize, minChunkSize: this.minChunkSize })) throw
|
|
549
|
+
if (!ks(this.chunkSize, { maxChunkSize: this.maxChunkSize, minChunkSize: this.minChunkSize })) throw Es(this.chunkSize, { maxChunkSize: this.maxChunkSize, minChunkSize: this.minChunkSize });
|
|
550
550
|
if (this.maxChunkSize && (typeof this.maxChunkSize != "number" || this.maxChunkSize < 256 || this.maxChunkSize % 256 != 0 || this.maxChunkSize < this.chunkSize || this.maxChunkSize < this.minChunkSize)) throw new TypeError(`maxChunkSize must be a positive number in multiples of 256, and larger than or equal to both ${this.minChunkSize} and ${this.chunkSize}`);
|
|
551
551
|
if (this.minChunkSize && (typeof this.minChunkSize != "number" || this.minChunkSize < 256 || this.minChunkSize % 256 != 0 || this.minChunkSize > this.chunkSize || this.minChunkSize > this.maxChunkSize)) throw new TypeError(`minChunkSize must be a positive number in multiples of 256, and smaller than ${this.chunkSize} and ${this.maxChunkSize}`);
|
|
552
552
|
if (this.maxFileBytes > 0 && this.maxFileBytes < this.file.size) throw new Error(`file size exceeds maximum (${this.file.size} > ${this.maxFileBytes})`);
|
|
@@ -610,13 +610,13 @@ var Io, Bd = ((e, t, r) => (r = e != null ? Sd(kd(e)) : {}, ((n, s, i, a) => {
|
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
612
|
}, Vd = Il.createUpload, Gd = Object.defineProperty, R = (e, t, r) => ((n, s, i) => s in n ? Gd(n, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[s] = i)(e, typeof t != "symbol" ? t + "" : t, r), Hd = Object.defineProperty, Co = (e, t, r) => ((n, s, i) => s in n ? Hd(n, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[s] = i)(e, typeof t != "symbol" ? t + "" : t, r), me = ((e) => (e[e.Document = 0] = "Document", e[e.DocumentType = 1] = "DocumentType", e[e.Element = 2] = "Element", e[e.Text = 3] = "Text", e[e.CDATA = 4] = "CDATA", e[e.Comment = 5] = "Comment", e))(me || {});
|
|
613
|
-
const ko = { Node: ["childNodes", "parentNode", "parentElement", "textContent"], ShadowRoot: ["host", "styleSheets"], Element: ["shadowRoot", "querySelector", "querySelectorAll"], MutationObserver: [] },
|
|
613
|
+
const ko = { Node: ["childNodes", "parentNode", "parentElement", "textContent"], ShadowRoot: ["host", "styleSheets"], Element: ["shadowRoot", "querySelector", "querySelectorAll"], MutationObserver: [] }, Eo = { Node: ["contains", "getRootNode"], ShadowRoot: ["getSelection"], Element: [], MutationObserver: ["constructor"] }, br = {};
|
|
614
614
|
function Mi(e) {
|
|
615
615
|
if (br[e]) return br[e];
|
|
616
616
|
const t = globalThis[e], r = t.prototype, n = e in ko ? ko[e] : void 0, s = !!(n && n.every((o) => {
|
|
617
617
|
var l, c;
|
|
618
618
|
return !!((c = (l = Object.getOwnPropertyDescriptor(r, o)) == null ? void 0 : l.get) != null && c.toString().includes("[native code]"));
|
|
619
|
-
})), i = e in
|
|
619
|
+
})), i = e in Eo ? Eo[e] : void 0, a = !!(i && i.every((o) => {
|
|
620
620
|
var l;
|
|
621
621
|
return typeof r[o] == "function" && ((l = r[o]) == null ? void 0 : l.toString().includes("[native code]"));
|
|
622
622
|
}));
|
|
@@ -641,7 +641,7 @@ function Qe(e, t, r) {
|
|
|
641
641
|
return a ? (es[s] = a, a.call(t)) : t[r];
|
|
642
642
|
}
|
|
643
643
|
const ts = {};
|
|
644
|
-
function
|
|
644
|
+
function xo(e, t, r) {
|
|
645
645
|
const n = `${e}.${String(r)}`;
|
|
646
646
|
if (ts[n]) return ts[n].bind(t);
|
|
647
647
|
const s = Mi(e)[r];
|
|
@@ -656,9 +656,9 @@ const ge = { childNodes: function(e) {
|
|
|
656
656
|
}, textContent: function(e) {
|
|
657
657
|
return Qe("Node", e, "textContent");
|
|
658
658
|
}, contains: function(e, t) {
|
|
659
|
-
return
|
|
659
|
+
return xo("Node", e, "contains")(t);
|
|
660
660
|
}, getRootNode: function(e) {
|
|
661
|
-
return
|
|
661
|
+
return xo("Node", e, "getRootNode")();
|
|
662
662
|
}, host: function(e) {
|
|
663
663
|
return e && "host" in e ? Qe("ShadowRoot", e, "host") : null;
|
|
664
664
|
}, styleSheets: function(e) {
|
|
@@ -718,7 +718,7 @@ function kl(e, t) {
|
|
|
718
718
|
}(r)), t ? gn(r, t) : r;
|
|
719
719
|
}
|
|
720
720
|
}
|
|
721
|
-
class
|
|
721
|
+
class El {
|
|
722
722
|
constructor() {
|
|
723
723
|
Co(this, "idNodeMap", /* @__PURE__ */ new Map()), Co(this, "nodeMetaMap", /* @__PURE__ */ new WeakMap());
|
|
724
724
|
}
|
|
@@ -803,7 +803,7 @@ function gn(e, t) {
|
|
|
803
803
|
}
|
|
804
804
|
let Zd = 1;
|
|
805
805
|
const Kd = new RegExp("[^a-z0-9-_:]");
|
|
806
|
-
function
|
|
806
|
+
function xl() {
|
|
807
807
|
return Zd++;
|
|
808
808
|
}
|
|
809
809
|
let wt, Oo;
|
|
@@ -907,7 +907,7 @@ function tp(e, t) {
|
|
|
907
907
|
return { type: me.DocumentType, name: e.name, publicId: e.publicId, systemId: e.systemId, rootId: k };
|
|
908
908
|
case e.ELEMENT_NODE:
|
|
909
909
|
return function(m, g) {
|
|
910
|
-
const { doc: v, blockClass: I, blockSelector: M, inlineStylesheet:
|
|
910
|
+
const { doc: v, blockClass: I, blockSelector: M, inlineStylesheet: x, maskInputOptions: U = {}, maskInputFn: A, dataURLOptions: E = {}, inlineImages: L, recordCanvas: O, keepIframeSrcFn: S, newlyAddedElement: N = !1, rootId: P } = g, b = function(C, D, K) {
|
|
911
911
|
try {
|
|
912
912
|
if (typeof D == "string") {
|
|
913
913
|
if (C.classList.contains(D)) return !0;
|
|
@@ -930,7 +930,7 @@ function tp(e, t) {
|
|
|
930
930
|
const D = m.attributes[C];
|
|
931
931
|
Ll(w, D.name, D.value) || (T[D.name] = Rl(v, w, ht(D.name), D.value));
|
|
932
932
|
}
|
|
933
|
-
if (w === "link" &&
|
|
933
|
+
if (w === "link" && x) {
|
|
934
934
|
const C = Array.from(v.styleSheets).find((K) => K.href === m.href);
|
|
935
935
|
let D = null;
|
|
936
936
|
C && (D = Yr(C)), D && (delete T.rel, delete T.href, T._cssText = D);
|
|
@@ -952,10 +952,10 @@ function tp(e, t) {
|
|
|
952
952
|
if (new Uint32Array(ct.call(D, K, Y, Math.min(50, C.width - K), Math.min(50, C.height - Y)).data.buffer).some((Se) => Se !== 0)) return !1;
|
|
953
953
|
}
|
|
954
954
|
return !0;
|
|
955
|
-
})(m) || (T.rr_dataURL = m.toDataURL(
|
|
955
|
+
})(m) || (T.rr_dataURL = m.toDataURL(E.type, E.quality));
|
|
956
956
|
else if (!("__context" in m)) {
|
|
957
|
-
const C = m.toDataURL(
|
|
958
|
-
D.width = m.width, D.height = m.height, C !== D.toDataURL(
|
|
957
|
+
const C = m.toDataURL(E.type, E.quality), D = v.createElement("canvas");
|
|
958
|
+
D.width = m.width, D.height = m.height, C !== D.toDataURL(E.type, E.quality) && (T.rr_dataURL = C);
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
961
|
if (w === "img" && L) {
|
|
@@ -963,7 +963,7 @@ function tp(e, t) {
|
|
|
963
963
|
const C = m, D = C.currentSrc || C.getAttribute("src") || "<unknown-src>", K = C.crossOrigin, Y = () => {
|
|
964
964
|
C.removeEventListener("load", Y);
|
|
965
965
|
try {
|
|
966
|
-
wt.width = C.naturalWidth, wt.height = C.naturalHeight, Oo.drawImage(C, 0, 0), T.rr_dataURL = wt.toDataURL(
|
|
966
|
+
wt.width = C.naturalWidth, wt.height = C.naturalHeight, Oo.drawImage(C, 0, 0), T.rr_dataURL = wt.toDataURL(E.type, E.quality);
|
|
967
967
|
} catch (he) {
|
|
968
968
|
if (C.crossOrigin !== "anonymous") return C.crossOrigin = "anonymous", void (C.complete && C.naturalWidth !== 0 ? Y() : C.addEventListener("load", Y));
|
|
969
969
|
console.warn(`Cannot inline img src=${D}! Error: ${he}`);
|
|
@@ -991,18 +991,18 @@ function tp(e, t) {
|
|
|
991
991
|
case e.TEXT_NODE:
|
|
992
992
|
return function(m, g) {
|
|
993
993
|
var v;
|
|
994
|
-
const { needsMask: I, maskTextFn: M, rootId:
|
|
995
|
-
let
|
|
994
|
+
const { needsMask: I, maskTextFn: M, rootId: x } = g, U = ge.parentNode(m), A = U && U.tagName;
|
|
995
|
+
let E = ge.textContent(m);
|
|
996
996
|
const L = A === "STYLE" || void 0, O = A === "SCRIPT" || void 0;
|
|
997
|
-
if (L &&
|
|
997
|
+
if (L && E) {
|
|
998
998
|
try {
|
|
999
|
-
m.nextSibling || m.previousSibling || (v = U.sheet) != null && v.cssRules && (
|
|
999
|
+
m.nextSibling || m.previousSibling || (v = U.sheet) != null && v.cssRules && (E = Yr(U.sheet));
|
|
1000
1000
|
} catch (S) {
|
|
1001
1001
|
console.warn(`Cannot get CSS styles from text's parentNode. Error: ${S}`, m);
|
|
1002
1002
|
}
|
|
1003
|
-
|
|
1003
|
+
E = gn(E, Di(g.doc));
|
|
1004
1004
|
}
|
|
1005
|
-
return O && (
|
|
1005
|
+
return O && (E = "SCRIPT_PLACEHOLDER"), !L && !O && E && I && (E = M ? M(E, ge.parentElement(m)) : E.replace(/[\S]/g, "*")), { type: me.Text, textContent: E || "", isStyle: L, rootId: x };
|
|
1006
1006
|
}(e, { doc: r, needsMask: a, maskTextFn: c, rootId: k });
|
|
1007
1007
|
case e.CDATA_SECTION_NODE:
|
|
1008
1008
|
return { type: me.CDATA, textContent: "", rootId: k };
|
|
@@ -1016,15 +1016,15 @@ function ee(e) {
|
|
|
1016
1016
|
return e == null ? "" : e.toLowerCase();
|
|
1017
1017
|
}
|
|
1018
1018
|
function Ct(e, t) {
|
|
1019
|
-
const { doc: r, mirror: n, blockClass: s, blockSelector: i, maskTextClass: a, maskTextSelector: o, skipChild: l = !1, inlineStylesheet: c = !0, maskInputOptions: u = {}, maskTextFn: d, maskInputFn: p, slimDOMOptions: f, dataURLOptions: y = {}, inlineImages: h = !1, recordCanvas: k = !1, onSerialize: m, onIframeLoad: g, iframeLoadTimeout: v = 5e3, onStylesheetLoad: I, stylesheetLoadTimeout: M = 5e3, keepIframeSrcFn:
|
|
1020
|
-
let { needsMask: A } = t, { preserveWhiteSpace:
|
|
1019
|
+
const { doc: r, mirror: n, blockClass: s, blockSelector: i, maskTextClass: a, maskTextSelector: o, skipChild: l = !1, inlineStylesheet: c = !0, maskInputOptions: u = {}, maskTextFn: d, maskInputFn: p, slimDOMOptions: f, dataURLOptions: y = {}, inlineImages: h = !1, recordCanvas: k = !1, onSerialize: m, onIframeLoad: g, iframeLoadTimeout: v = 5e3, onStylesheetLoad: I, stylesheetLoadTimeout: M = 5e3, keepIframeSrcFn: x = () => !1, newlyAddedElement: U = !1 } = t;
|
|
1020
|
+
let { needsMask: A } = t, { preserveWhiteSpace: E = !0 } = t;
|
|
1021
1021
|
A || (A = Ol(e, a, o, A === void 0));
|
|
1022
|
-
const L = tp(e, { doc: r, mirror: n, blockClass: s, blockSelector: i, needsMask: A, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: p, dataURLOptions: y, inlineImages: h, recordCanvas: k, keepIframeSrcFn:
|
|
1022
|
+
const L = tp(e, { doc: r, mirror: n, blockClass: s, blockSelector: i, needsMask: A, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: p, dataURLOptions: y, inlineImages: h, recordCanvas: k, keepIframeSrcFn: x, newlyAddedElement: U });
|
|
1023
1023
|
if (!L) return console.warn(e, "not serialized"), null;
|
|
1024
1024
|
let O;
|
|
1025
1025
|
O = n.hasNode(e) ? n.getId(e) : !function(b, w) {
|
|
1026
1026
|
return !!(w.comment && b.type === me.Comment || b.type === me.Element && (w.script && (b.tagName === "script" || b.tagName === "link" && (b.attributes.rel === "preload" || b.attributes.rel === "modulepreload") && b.attributes.as === "script" || b.tagName === "link" && b.attributes.rel === "prefetch" && typeof b.attributes.href == "string" && Lo(b.attributes.href) === "js") || w.headFavicon && (b.tagName === "link" && b.attributes.rel === "shortcut icon" || b.tagName === "meta" && (ee(b.attributes.name).match(/^msapplication-tile(image|color)$/) || ee(b.attributes.name) === "application-name" || ee(b.attributes.rel) === "icon" || ee(b.attributes.rel) === "apple-touch-icon" || ee(b.attributes.rel) === "shortcut icon")) || b.tagName === "meta" && (w.headMetaDescKeywords && ee(b.attributes.name).match(/^description|keywords$/) || w.headMetaSocial && (ee(b.attributes.property).match(/^(og|twitter|fb):/) || ee(b.attributes.name).match(/^(og|twitter):/) || ee(b.attributes.name) === "pinterest") || w.headMetaRobots && (ee(b.attributes.name) === "robots" || ee(b.attributes.name) === "googlebot" || ee(b.attributes.name) === "bingbot") || w.headMetaHttpEquiv && b.attributes["http-equiv"] !== void 0 || w.headMetaAuthorship && (ee(b.attributes.name) === "author" || ee(b.attributes.name) === "generator" || ee(b.attributes.name) === "framework" || ee(b.attributes.name) === "publisher" || ee(b.attributes.name) === "progid" || ee(b.attributes.property).match(/^article:/) || ee(b.attributes.property).match(/^product:/)) || w.headMetaVerification && (ee(b.attributes.name) === "google-site-verification" || ee(b.attributes.name) === "yandex-verification" || ee(b.attributes.name) === "csrf-token" || ee(b.attributes.name) === "p:domain_verify" || ee(b.attributes.name) === "verify-v1" || ee(b.attributes.name) === "verification" || ee(b.attributes.name) === "shopify-checkout-api-token"))));
|
|
1027
|
-
}(L, f) && (
|
|
1027
|
+
}(L, f) && (E || L.type !== me.Text || L.isStyle || L.textContent.replace(/^\s+|\s+$/gm, "").length) ? xl() : -2;
|
|
1028
1028
|
const S = Object.assign(L, { id: O });
|
|
1029
1029
|
if (n.add(e, S), O === -2) return null;
|
|
1030
1030
|
m && m(e);
|
|
@@ -1035,8 +1035,8 @@ function Ct(e, t) {
|
|
|
1035
1035
|
b && Zt(b) && (S.isShadowHost = !0);
|
|
1036
1036
|
}
|
|
1037
1037
|
if ((S.type === me.Document || S.type === me.Element) && N) {
|
|
1038
|
-
f.headWhitespace && S.type === me.Element && S.tagName === "head" && (
|
|
1039
|
-
const b = { doc: r, mirror: n, blockClass: s, blockSelector: i, needsMask: A, maskTextClass: a, maskTextSelector: o, skipChild: l, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: p, slimDOMOptions: f, dataURLOptions: y, inlineImages: h, recordCanvas: k, preserveWhiteSpace:
|
|
1038
|
+
f.headWhitespace && S.type === me.Element && S.tagName === "head" && (E = !1);
|
|
1039
|
+
const b = { doc: r, mirror: n, blockClass: s, blockSelector: i, needsMask: A, maskTextClass: a, maskTextSelector: o, skipChild: l, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: p, slimDOMOptions: f, dataURLOptions: y, inlineImages: h, recordCanvas: k, preserveWhiteSpace: E, onSerialize: m, onIframeLoad: g, iframeLoadTimeout: v, onStylesheetLoad: I, stylesheetLoadTimeout: M, keepIframeSrcFn: x };
|
|
1040
1040
|
if (!(S.type === me.Element && S.tagName === "textarea" && S.attributes.value !== void 0)) for (const T of Array.from(ge.childNodes(e))) {
|
|
1041
1041
|
const F = Ct(T, b);
|
|
1042
1042
|
F && S.childNodes.push(F);
|
|
@@ -1071,7 +1071,7 @@ function Ct(e, t) {
|
|
|
1071
1071
|
}(e, () => {
|
|
1072
1072
|
const b = e.contentDocument;
|
|
1073
1073
|
if (b && g) {
|
|
1074
|
-
const w = Ct(b, { doc: b, mirror: n, blockClass: s, blockSelector: i, needsMask: A, maskTextClass: a, maskTextSelector: o, skipChild: !1, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: p, slimDOMOptions: f, dataURLOptions: y, inlineImages: h, recordCanvas: k, preserveWhiteSpace:
|
|
1074
|
+
const w = Ct(b, { doc: b, mirror: n, blockClass: s, blockSelector: i, needsMask: A, maskTextClass: a, maskTextSelector: o, skipChild: !1, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: p, slimDOMOptions: f, dataURLOptions: y, inlineImages: h, recordCanvas: k, preserveWhiteSpace: E, onSerialize: m, onIframeLoad: g, iframeLoadTimeout: v, onStylesheetLoad: I, stylesheetLoadTimeout: M, keepIframeSrcFn: x });
|
|
1075
1075
|
w && g(e, w);
|
|
1076
1076
|
}
|
|
1077
1077
|
}, v), S.type === me.Element && S.tagName === "link" && typeof S.attributes.rel == "string" && (S.attributes.rel === "stylesheet" || S.attributes.rel === "preload" && typeof S.attributes.href == "string" && Lo(S.attributes.href) === "css") && function(b, w, T) {
|
|
@@ -1090,7 +1090,7 @@ function Ct(e, t) {
|
|
|
1090
1090
|
});
|
|
1091
1091
|
}(e, () => {
|
|
1092
1092
|
if (I) {
|
|
1093
|
-
const b = Ct(e, { doc: r, mirror: n, blockClass: s, blockSelector: i, needsMask: A, maskTextClass: a, maskTextSelector: o, skipChild: !1, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: p, slimDOMOptions: f, dataURLOptions: y, inlineImages: h, recordCanvas: k, preserveWhiteSpace:
|
|
1093
|
+
const b = Ct(e, { doc: r, mirror: n, blockClass: s, blockSelector: i, needsMask: A, maskTextClass: a, maskTextSelector: o, skipChild: !1, inlineStylesheet: c, maskInputOptions: u, maskTextFn: d, maskInputFn: p, slimDOMOptions: f, dataURLOptions: y, inlineImages: h, recordCanvas: k, preserveWhiteSpace: E, onSerialize: m, onIframeLoad: g, iframeLoadTimeout: v, onStylesheetLoad: I, stylesheetLoadTimeout: M, keepIframeSrcFn: x });
|
|
1094
1094
|
b && I(e, b);
|
|
1095
1095
|
}
|
|
1096
1096
|
}, M), S;
|
|
@@ -1114,11 +1114,11 @@ function np(e) {
|
|
|
1114
1114
|
} });
|
|
1115
1115
|
}), r;
|
|
1116
1116
|
}
|
|
1117
|
-
var
|
|
1117
|
+
var xs = { exports: {} }, ne = String, Mo = function() {
|
|
1118
1118
|
return { isColorSupported: !1, reset: ne, bold: ne, dim: ne, italic: ne, underline: ne, inverse: ne, hidden: ne, strikethrough: ne, black: ne, red: ne, green: ne, yellow: ne, blue: ne, magenta: ne, cyan: ne, white: ne, gray: ne, bgBlack: ne, bgRed: ne, bgGreen: ne, bgYellow: ne, bgBlue: ne, bgMagenta: ne, bgCyan: ne, bgWhite: ne };
|
|
1119
1119
|
};
|
|
1120
|
-
|
|
1121
|
-
var sp =
|
|
1120
|
+
xs.exports = Mo(), xs.exports.createColors = Mo;
|
|
1121
|
+
var sp = xs.exports;
|
|
1122
1122
|
const Te = np(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
|
|
1123
1123
|
let Uo = sp, To = Te, Rs = class Al extends Error {
|
|
1124
1124
|
constructor(t, r, n, s, i, a) {
|
|
@@ -1952,7 +1952,7 @@ Je.default = Je, Je.rebuild = (e) => {
|
|
|
1952
1952
|
Je.rebuild(t);
|
|
1953
1953
|
});
|
|
1954
1954
|
};
|
|
1955
|
-
let Yl, ql,
|
|
1955
|
+
let Yl, ql, Ep = ft, sr = class extends Ep {
|
|
1956
1956
|
constructor(e) {
|
|
1957
1957
|
super({ type: "document", ...e }), this.nodes || (this.nodes = []);
|
|
1958
1958
|
}
|
|
@@ -1985,7 +1985,7 @@ let Ns = class {
|
|
|
1985
1985
|
};
|
|
1986
1986
|
var Zl = Ns;
|
|
1987
1987
|
Ns.default = Ns;
|
|
1988
|
-
let
|
|
1988
|
+
let xp = Zl, Fs = class {
|
|
1989
1989
|
constructor(e, t, r) {
|
|
1990
1990
|
this.processor = e, this.messages = [], this.root = t, this.opts = r, this.css = void 0, this.map = void 0;
|
|
1991
1991
|
}
|
|
@@ -1994,7 +1994,7 @@ let Ep = Zl, Fs = class {
|
|
|
1994
1994
|
}
|
|
1995
1995
|
warn(e, t = {}) {
|
|
1996
1996
|
t.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (t.plugin = this.lastPlugin.postcssPlugin);
|
|
1997
|
-
let r = new
|
|
1997
|
+
let r = new xp(e, t);
|
|
1998
1998
|
return this.messages.push(r), r;
|
|
1999
1999
|
}
|
|
2000
2000
|
warnings() {
|
|
@@ -2006,7 +2006,7 @@ let Ep = Zl, Fs = class {
|
|
|
2006
2006
|
};
|
|
2007
2007
|
var Bi = Fs;
|
|
2008
2008
|
Fs.default = Fs;
|
|
2009
|
-
const is = 39, Wo = 34, Cr = 92, Vo = 47, kr = 10, Nt = 32,
|
|
2009
|
+
const is = 39, Wo = 34, Cr = 92, Vo = 47, kr = 10, Nt = 32, Er = 12, xr = 9, Rr = 13, Rp = 91, Lp = 93, Op = 40, Ap = 41, Mp = 123, Up = 125, Tp = 59, Dp = 42, Pp = 58, _p = 64, Lr = /[\t\n\f\r "#'()/;[\\\]{}]/g, Or = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Np = /.[\r\n"'(/\\]/, Go = /[\da-f]/i;
|
|
2010
2010
|
let Kl = ft, Kr = class extends Kl {
|
|
2011
2011
|
constructor(e) {
|
|
2012
2012
|
super(e), this.type = "atrule";
|
|
@@ -2085,13 +2085,13 @@ let Bp = Fn, zp = function(e, t = {}) {
|
|
|
2085
2085
|
switch (r = p.charCodeAt(h), r) {
|
|
2086
2086
|
case kr:
|
|
2087
2087
|
case Nt:
|
|
2088
|
-
case Er:
|
|
2089
|
-
case Rr:
|
|
2090
2088
|
case xr:
|
|
2089
|
+
case Rr:
|
|
2090
|
+
case Er:
|
|
2091
2091
|
n = h;
|
|
2092
2092
|
do
|
|
2093
2093
|
n += 1, r = p.charCodeAt(n);
|
|
2094
|
-
while (r === Nt || r === kr || r ===
|
|
2094
|
+
while (r === Nt || r === kr || r === xr || r === Rr || r === Er);
|
|
2095
2095
|
d = ["space", p.slice(h, n)], h = n - 1;
|
|
2096
2096
|
break;
|
|
2097
2097
|
case Rp:
|
|
@@ -2106,7 +2106,7 @@ let Bp = Fn, zp = function(e, t = {}) {
|
|
|
2106
2106
|
break;
|
|
2107
2107
|
}
|
|
2108
2108
|
case Op:
|
|
2109
|
-
if (c = k.length ? k.pop()[1] : "", u = p.charCodeAt(h + 1), c === "url" && u !== is && u !== Wo && u !== Nt && u !== kr && u !==
|
|
2109
|
+
if (c = k.length ? k.pop()[1] : "", u = p.charCodeAt(h + 1), c === "url" && u !== is && u !== Wo && u !== Nt && u !== kr && u !== xr && u !== Er && u !== Rr) {
|
|
2110
2110
|
n = h;
|
|
2111
2111
|
do {
|
|
2112
2112
|
if (o = !1, n = p.indexOf(")", n + 1), n === -1) {
|
|
@@ -2141,7 +2141,7 @@ let Bp = Fn, zp = function(e, t = {}) {
|
|
|
2141
2141
|
break;
|
|
2142
2142
|
case Cr:
|
|
2143
2143
|
for (n = h, a = !0; p.charCodeAt(n + 1) === Cr; ) n += 1, a = !a;
|
|
2144
|
-
if (r = p.charCodeAt(n + 1), a && r !== Vo && r !== Nt && r !== kr && r !==
|
|
2144
|
+
if (r = p.charCodeAt(n + 1), a && r !== Vo && r !== Nt && r !== kr && r !== xr && r !== Rr && r !== Er && (n += 1, Go.test(p.charAt(n)))) {
|
|
2145
2145
|
for (; Go.test(p.charAt(n + 1)); ) n += 1;
|
|
2146
2146
|
p.charCodeAt(n + 1) === Nt && (n += 1);
|
|
2147
2147
|
}
|
|
@@ -2771,7 +2771,7 @@ function or(e, t) {
|
|
|
2771
2771
|
}
|
|
2772
2772
|
var Ch = or;
|
|
2773
2773
|
or.default = or;
|
|
2774
|
-
let kh = Pi, Jo = Fn,
|
|
2774
|
+
let kh = Pi, Jo = Fn, Eh = ic, xh = ft, Ws = fh, Rh = _n, Lh = Ch, Zo = Fi, Oh = Zl, Ko = zn, Xo = zi, Ah = Bi, Mh = Bn, Uh = Wi, Th = tc, Qo = ji, ea = mr, Dh = Nn;
|
|
2775
2775
|
function J(...e) {
|
|
2776
2776
|
return e.length === 1 && Array.isArray(e[0]) && (e = e[0]), new Ws(e);
|
|
2777
2777
|
}
|
|
@@ -2787,7 +2787,7 @@ https://www.w3ctech.com/topic/2226`));
|
|
|
2787
2787
|
return Object.defineProperty(s, "postcss", { get: () => (r || (r = s()), r) }), s.process = function(i, a, o) {
|
|
2788
2788
|
return J([s(o)]).process(i, a);
|
|
2789
2789
|
}, s;
|
|
2790
|
-
}, J.stringify = Rh, J.parse = Uh, J.fromJSON = Lh, J.list = Th, J.comment = (e) => new Ko(e), J.atRule = (e) => new Xo(e), J.decl = (e) => new Jo(e), J.rule = (e) => new Qo(e), J.root = (e) => new ea(e), J.document = (e) => new Zo(e), J.CssSyntaxError = kh, J.Declaration = Jo, J.Container =
|
|
2790
|
+
}, J.stringify = Rh, J.parse = Uh, J.fromJSON = Lh, J.list = Th, J.comment = (e) => new Ko(e), J.atRule = (e) => new Xo(e), J.decl = (e) => new Jo(e), J.rule = (e) => new Qo(e), J.root = (e) => new ea(e), J.document = (e) => new Zo(e), J.CssSyntaxError = kh, J.Declaration = Jo, J.Container = xh, J.Processor = Ws, J.Document = Zo, J.Comment = Ko, J.Warning = Oh, J.AtRule = Xo, J.Result = Ah, J.Input = Mh, J.Rule = Qo, J.Root = ea, J.Node = Dh, Eh.registerPostcss(J);
|
|
2791
2791
|
var Ph = J;
|
|
2792
2792
|
J.default = J;
|
|
2793
2793
|
const oe = rp(Ph);
|
|
@@ -3666,7 +3666,7 @@ lr.registerLazyResult = (e) => {
|
|
|
3666
3666
|
var $i = lr;
|
|
3667
3667
|
lr.default = lr;
|
|
3668
3668
|
let da = {};
|
|
3669
|
-
var
|
|
3669
|
+
var Ec = function(e) {
|
|
3670
3670
|
da[e] || (da[e] = !0, typeof console < "u" && console.warn && console.warn(e));
|
|
3671
3671
|
};
|
|
3672
3672
|
let ei = class {
|
|
@@ -3681,9 +3681,9 @@ let ei = class {
|
|
|
3681
3681
|
return this.node ? this.node.error(this.text, { index: this.index, plugin: this.plugin, word: this.word }).message : this.plugin ? this.plugin + ": " + this.text : this.text;
|
|
3682
3682
|
}
|
|
3683
3683
|
};
|
|
3684
|
-
var
|
|
3684
|
+
var xc = ei;
|
|
3685
3685
|
ei.default = ei;
|
|
3686
|
-
let am =
|
|
3686
|
+
let am = xc, ti = class {
|
|
3687
3687
|
constructor(e, t, r) {
|
|
3688
3688
|
this.processor = e, this.messages = [], this.root = t, this.opts = r, this.css = void 0, this.map = void 0;
|
|
3689
3689
|
}
|
|
@@ -3854,7 +3854,7 @@ let bm = Vn, Sm = function(e, t = {}) {
|
|
|
3854
3854
|
} };
|
|
3855
3855
|
}, Im = Hn, Cm = qi, km = fr, fa = Ji;
|
|
3856
3856
|
const ga = { empty: !0, space: !0 };
|
|
3857
|
-
var
|
|
3857
|
+
var Em = class {
|
|
3858
3858
|
constructor(e) {
|
|
3859
3859
|
this.input = e, this.root = new km(), this.current = this.root, this.spaces = "", this.semicolon = !1, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
|
|
3860
3860
|
}
|
|
@@ -4098,7 +4098,7 @@ var xm = class {
|
|
|
4098
4098
|
throw this.input.error("At-rule without name", { offset: t[2] }, { offset: t[2] + t[1].length });
|
|
4099
4099
|
}
|
|
4100
4100
|
};
|
|
4101
|
-
let
|
|
4101
|
+
let xm = gt, Rm = Em, Lm = Gn;
|
|
4102
4102
|
function on(e, t) {
|
|
4103
4103
|
let r = new Lm(e, t), n = new Rm(r);
|
|
4104
4104
|
try {
|
|
@@ -4112,8 +4112,8 @@ You tried to parse Less with the standard CSS parser; try again with the postcss
|
|
|
4112
4112
|
return n.root;
|
|
4113
4113
|
}
|
|
4114
4114
|
var Zi = on;
|
|
4115
|
-
on.default = on,
|
|
4116
|
-
let { isClean: Ne, my: Om } = ar, Am = hc, Mm = jn, Um = gt, Tm = $i, Dm =
|
|
4115
|
+
on.default = on, xm.registerParse(on);
|
|
4116
|
+
let { isClean: Ne, my: Om } = ar, Am = hc, Mm = jn, Um = gt, Tm = $i, Dm = Ec, ya = Yi, Pm = Zi, _m = fr;
|
|
4117
4117
|
const Nm = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, Fm = { AtRule: !0, AtRuleExit: !0, Comment: !0, CommentExit: !0, Declaration: !0, DeclarationExit: !0, Document: !0, DocumentExit: !0, Once: !0, OnceExit: !0, postcssPlugin: !0, prepare: !0, Root: !0, RootExit: !0, Rule: !0, RuleExit: !0 }, Bm = { Once: !0, postcssPlugin: !0, prepare: !0 };
|
|
4118
4118
|
function zt(e) {
|
|
4119
4119
|
return typeof e == "object" && typeof e.then == "function";
|
|
@@ -4129,7 +4129,7 @@ function wa(e) {
|
|
|
4129
4129
|
function ri(e) {
|
|
4130
4130
|
return e[Ne] = !1, e.nodes && e.nodes.forEach((t) => ri(t)), e;
|
|
4131
4131
|
}
|
|
4132
|
-
let ni = {},
|
|
4132
|
+
let ni = {}, Et = class Dc {
|
|
4133
4133
|
constructor(t, r, n) {
|
|
4134
4134
|
let s;
|
|
4135
4135
|
if (this.stringified = !1, this.processed = !1, typeof r != "object" || r === null || r.type !== "root" && r.type !== "document") if (r instanceof Dc || r instanceof ya) s = ri(r.root), r.map && (n.map === void 0 && (n.map = {}), n.map.inline || (n.map.inline = !1), n.map.prev = r.map);
|
|
@@ -4344,12 +4344,12 @@ let ni = {}, xt = class Dc {
|
|
|
4344
4344
|
return "LazyResult";
|
|
4345
4345
|
}
|
|
4346
4346
|
};
|
|
4347
|
-
|
|
4347
|
+
Et.registerPostcss = (e) => {
|
|
4348
4348
|
ni = e;
|
|
4349
4349
|
};
|
|
4350
|
-
var Pc =
|
|
4351
|
-
|
|
4352
|
-
let zm = hc, jm = jn, Wm =
|
|
4350
|
+
var Pc = Et;
|
|
4351
|
+
Et.default = Et, _m.registerLazyResult(Et), Tm.registerLazyResult(Et);
|
|
4352
|
+
let zm = hc, jm = jn, Wm = Ec, Vm = Zi;
|
|
4353
4353
|
const Gm = Yi;
|
|
4354
4354
|
let si = class {
|
|
4355
4355
|
constructor(e, t, r) {
|
|
@@ -4469,7 +4469,7 @@ function ur(e, t) {
|
|
|
4469
4469
|
}
|
|
4470
4470
|
var sf = ur;
|
|
4471
4471
|
ur.default = ur;
|
|
4472
|
-
let of = Vi, va = Vn, af = Pc, lf = gt, ii = Zm, cf = jn, uf = sf, ba = $i, df =
|
|
4472
|
+
let of = Vi, va = Vn, af = Pc, lf = gt, ii = Zm, cf = jn, uf = sf, ba = $i, df = xc, Sa = Hn, Ia = qi, pf = Yi, hf = Gn, mf = Zi, ff = Mc, Ca = Ji, ka = fr, gf = Wn;
|
|
4473
4473
|
function Z(...e) {
|
|
4474
4474
|
return e.length === 1 && Array.isArray(e[0]) && (e = e[0]), new ii(e);
|
|
4475
4475
|
}
|
|
@@ -4522,13 +4522,13 @@ class Ki {
|
|
|
4522
4522
|
return "RRNode";
|
|
4523
4523
|
}
|
|
4524
4524
|
}
|
|
4525
|
-
const
|
|
4525
|
+
const Ea = { Node: ["childNodes", "parentNode", "parentElement", "textContent"], ShadowRoot: ["host", "styleSheets"], Element: ["shadowRoot", "querySelector", "querySelectorAll"], MutationObserver: [] }, xa = { Node: ["contains", "getRootNode"], ShadowRoot: ["getSelection"], Element: [], MutationObserver: ["constructor"] }, Br = {};
|
|
4526
4526
|
function Xi(e) {
|
|
4527
4527
|
if (Br[e]) return Br[e];
|
|
4528
|
-
const t = globalThis[e], r = t.prototype, n = e in
|
|
4528
|
+
const t = globalThis[e], r = t.prototype, n = e in Ea ? Ea[e] : void 0, s = !!(n && n.every((o) => {
|
|
4529
4529
|
var l, c;
|
|
4530
4530
|
return !!((c = (l = Object.getOwnPropertyDescriptor(r, o)) == null ? void 0 : l.get) != null && c.toString().includes("[native code]"));
|
|
4531
|
-
})), i = e in
|
|
4531
|
+
})), i = e in xa ? xa[e] : void 0, a = !!(i && i.every((o) => {
|
|
4532
4532
|
var l;
|
|
4533
4533
|
return typeof r[o] == "function" && ((l = r[o]) == null ? void 0 : l.toString().includes("[native code]"));
|
|
4534
4534
|
}));
|
|
@@ -5063,7 +5063,7 @@ function kf(e, t = {}) {
|
|
|
5063
5063
|
};
|
|
5064
5064
|
let n;
|
|
5065
5065
|
(function(m, g) {
|
|
5066
|
-
const { mutationCb: v, mousemoveCb: I, mouseInteractionCb: M, scrollCb:
|
|
5066
|
+
const { mutationCb: v, mousemoveCb: I, mouseInteractionCb: M, scrollCb: x, viewportResizeCb: U, inputCb: A, mediaInteractionCb: E, styleSheetRuleCb: L, styleDeclarationCb: O, canvasMutationCb: S, fontCb: N, selectionCb: P, customElementCb: b } = m;
|
|
5067
5067
|
m.mutationCb = (...w) => {
|
|
5068
5068
|
g.mutation && g.mutation(...w), v(...w);
|
|
5069
5069
|
}, m.mousemoveCb = (...w) => {
|
|
@@ -5071,13 +5071,13 @@ function kf(e, t = {}) {
|
|
|
5071
5071
|
}, m.mouseInteractionCb = (...w) => {
|
|
5072
5072
|
g.mouseInteraction && g.mouseInteraction(...w), M(...w);
|
|
5073
5073
|
}, m.scrollCb = (...w) => {
|
|
5074
|
-
g.scroll && g.scroll(...w),
|
|
5074
|
+
g.scroll && g.scroll(...w), x(...w);
|
|
5075
5075
|
}, m.viewportResizeCb = (...w) => {
|
|
5076
5076
|
g.viewportResize && g.viewportResize(...w), U(...w);
|
|
5077
5077
|
}, m.inputCb = (...w) => {
|
|
5078
5078
|
g.input && g.input(...w), A(...w);
|
|
5079
5079
|
}, m.mediaInteractionCb = (...w) => {
|
|
5080
|
-
g.mediaInteaction && g.mediaInteaction(...w),
|
|
5080
|
+
g.mediaInteaction && g.mediaInteaction(...w), E(...w);
|
|
5081
5081
|
}, m.styleSheetRuleCb = (...w) => {
|
|
5082
5082
|
g.styleSheetRule && g.styleSheetRule(...w), L(...w);
|
|
5083
5083
|
}, m.styleDeclarationCb = (...w) => {
|
|
@@ -5095,14 +5095,14 @@ function kf(e, t = {}) {
|
|
|
5095
5095
|
const s = function({ mousemoveCb: m, sampling: g, doc: v, mirror: I }) {
|
|
5096
5096
|
if (g.mousemove === !1) return () => {
|
|
5097
5097
|
};
|
|
5098
|
-
const M = typeof g.mousemove == "number" ? g.mousemove : 50,
|
|
5098
|
+
const M = typeof g.mousemove == "number" ? g.mousemove : 50, x = typeof g.mousemoveCallback == "number" ? g.mousemoveCallback : 500;
|
|
5099
5099
|
let U, A = [];
|
|
5100
|
-
const
|
|
5100
|
+
const E = Gt(H((S) => {
|
|
5101
5101
|
const N = Date.now() - U;
|
|
5102
5102
|
m(A.map((P) => (P.timeOffset -= N, P)), S), A = [], U = null;
|
|
5103
|
-
}),
|
|
5103
|
+
}), x), L = H(Gt(H((S) => {
|
|
5104
5104
|
const N = Xt(S), { clientX: P, clientY: b } = oi(S) ? S.changedTouches[0] : S;
|
|
5105
|
-
U || (U = wn()), A.push({ x: P, y: b, id: I.getId(N), timeOffset: wn() - U }),
|
|
5105
|
+
U || (U = wn()), A.push({ x: P, y: b, id: I.getId(N), timeOffset: wn() - U }), E(typeof DragEvent < "u" && S instanceof DragEvent ? G.Drag : S instanceof MouseEvent ? G.MouseMove : G.TouchMove);
|
|
5106
5106
|
}), M, { trailing: !1 })), O = [ye("mousemove", L, v), ye("touchmove", L, v), ye("drag", L, v)];
|
|
5107
5107
|
return H(() => {
|
|
5108
5108
|
O.forEach((S) => S());
|
|
@@ -5110,17 +5110,17 @@ function kf(e, t = {}) {
|
|
|
5110
5110
|
}(e), i = If(e), a = qc(e), o = function({ viewportResizeCb: m }, { win: g }) {
|
|
5111
5111
|
let v = -1, I = -1;
|
|
5112
5112
|
return ye("resize", H(Gt(H(() => {
|
|
5113
|
-
const M = Fc(),
|
|
5114
|
-
v === M && I ===
|
|
5113
|
+
const M = Fc(), x = Bc();
|
|
5114
|
+
v === M && I === x || (m({ width: Number(x), height: Number(M) }), v = M, I = x);
|
|
5115
5115
|
}), 200)), g);
|
|
5116
|
-
}(e, { win: r }), l = function({ inputCb: m, doc: g, mirror: v, blockClass: I, blockSelector: M, ignoreClass:
|
|
5116
|
+
}(e, { win: r }), l = function({ inputCb: m, doc: g, mirror: v, blockClass: I, blockSelector: M, ignoreClass: x, ignoreSelector: U, maskInputOptions: A, maskInputFn: E, sampling: L, userTriggeredOnInput: O }) {
|
|
5117
5117
|
function S(F) {
|
|
5118
5118
|
let j = Xt(F);
|
|
5119
5119
|
const C = F.isTrusted, D = j && j.tagName;
|
|
5120
|
-
if (j && D === "OPTION" && (j = V.parentElement(j)), !j || !D || Cf.indexOf(D) < 0 || ve(j, I, M, !0) || j.classList.contains(
|
|
5120
|
+
if (j && D === "OPTION" && (j = V.parentElement(j)), !j || !D || Cf.indexOf(D) < 0 || ve(j, I, M, !0) || j.classList.contains(x) || U && j.matches(U)) return;
|
|
5121
5121
|
let K = j.value, Y = !1;
|
|
5122
5122
|
const he = Ti(j) || "";
|
|
5123
|
-
he === "radio" || he === "checkbox" ? Y = j.checked : (A[D.toLowerCase()] || A[he]) && (K = Ui({ element: j, maskInputOptions: A, tagName: D, type: he, value: K, maskInputFn:
|
|
5123
|
+
he === "radio" || he === "checkbox" ? Y = j.checked : (A[D.toLowerCase()] || A[he]) && (K = Ui({ element: j, maskInputOptions: A, tagName: D, type: he, value: K, maskInputFn: E })), N(j, O ? { text: K, isChecked: Y, userTriggered: C } : { text: K, isChecked: Y });
|
|
5124
5124
|
const ct = j.name;
|
|
5125
5125
|
he === "radio" && ct && Y && g.querySelectorAll(`input[type="radio"][name="${ct}"]`).forEach((Se) => {
|
|
5126
5126
|
if (Se !== j) {
|
|
@@ -5147,15 +5147,15 @@ function kf(e, t = {}) {
|
|
|
5147
5147
|
} }, !1, b))), H(() => {
|
|
5148
5148
|
P.forEach((F) => F());
|
|
5149
5149
|
});
|
|
5150
|
-
}(e), c = function({ mediaInteractionCb: m, blockClass: g, blockSelector: v, mirror: I, sampling: M, doc:
|
|
5151
|
-
const U = H((
|
|
5150
|
+
}(e), c = function({ mediaInteractionCb: m, blockClass: g, blockSelector: v, mirror: I, sampling: M, doc: x }) {
|
|
5151
|
+
const U = H((E) => Gt(H((L) => {
|
|
5152
5152
|
const O = Xt(L);
|
|
5153
5153
|
if (!O || ve(O, g, v, !0)) return;
|
|
5154
5154
|
const { currentTime: S, volume: N, muted: P, playbackRate: b, loop: w } = O;
|
|
5155
|
-
m({ type:
|
|
5156
|
-
}), M.media || 500)), A = [ye("play", U(It.Play),
|
|
5155
|
+
m({ type: E, id: I.getId(O), currentTime: S, volume: N, muted: P, playbackRate: b, loop: w });
|
|
5156
|
+
}), M.media || 500)), A = [ye("play", U(It.Play), x), ye("pause", U(It.Pause), x), ye("seeked", U(It.Seeked), x), ye("volumechange", U(It.VolumeChange), x), ye("ratechange", U(It.RateChange), x)];
|
|
5157
5157
|
return H(() => {
|
|
5158
|
-
A.forEach((
|
|
5158
|
+
A.forEach((E) => E());
|
|
5159
5159
|
});
|
|
5160
5160
|
}(e);
|
|
5161
5161
|
let u = () => {
|
|
@@ -5174,9 +5174,9 @@ function kf(e, t = {}) {
|
|
|
5174
5174
|
const P = `${O} { ${S} }`;
|
|
5175
5175
|
return I.CSSStyleSheet.prototype.insertRule.apply(this, [P, N]);
|
|
5176
5176
|
};
|
|
5177
|
-
const
|
|
5177
|
+
const x = I.CSSStyleSheet.prototype.deleteRule;
|
|
5178
5178
|
let U, A;
|
|
5179
|
-
I.CSSStyleSheet.prototype.deleteRule = new Proxy(
|
|
5179
|
+
I.CSSStyleSheet.prototype.deleteRule = new Proxy(x, { apply: H((O, S, N) => {
|
|
5180
5180
|
const [P] = N, { id: b, styleId: w } = tt(S, g, v.styleMirror);
|
|
5181
5181
|
return (b && b !== -1 || w && w !== -1) && m({ id: b, styleId: w, removes: [{ index: P }] }), O.apply(S, N);
|
|
5182
5182
|
}) }), I.CSSStyleSheet.prototype.removeRule = function(O) {
|
|
@@ -5188,10 +5188,10 @@ function kf(e, t = {}) {
|
|
|
5188
5188
|
const [P] = N, { id: b, styleId: w } = tt(S, g, v.styleMirror);
|
|
5189
5189
|
return (b && b !== -1 || w && w !== -1) && m({ id: b, styleId: w, replaceSync: P }), O.apply(S, N);
|
|
5190
5190
|
}) }));
|
|
5191
|
-
const
|
|
5192
|
-
Wr("CSSGroupingRule") ?
|
|
5191
|
+
const E = {};
|
|
5192
|
+
Wr("CSSGroupingRule") ? E.CSSGroupingRule = I.CSSGroupingRule : (Wr("CSSMediaRule") && (E.CSSMediaRule = I.CSSMediaRule), Wr("CSSConditionRule") && (E.CSSConditionRule = I.CSSConditionRule), Wr("CSSSupportsRule") && (E.CSSSupportsRule = I.CSSSupportsRule));
|
|
5193
5193
|
const L = {};
|
|
5194
|
-
return Object.entries(
|
|
5194
|
+
return Object.entries(E).forEach(([O, S]) => {
|
|
5195
5195
|
L[O] = { insertRule: S.prototype.insertRule, deleteRule: S.prototype.deleteRule }, S.prototype.insertRule = new Proxy(L[O].insertRule, { apply: H((N, P, b) => {
|
|
5196
5196
|
const [w, T] = b, { id: F, styleId: j } = tt(P.parentStyleSheet, g, v.styleMirror);
|
|
5197
5197
|
return (F && F !== -1 || j && j !== -1) && m({ id: F, styleId: j, adds: [{ rule: w, index: [...zr(P), T || 0] }] }), N.apply(P, b);
|
|
@@ -5200,77 +5200,77 @@ function kf(e, t = {}) {
|
|
|
5200
5200
|
return (T && T !== -1 || F && F !== -1) && m({ id: T, styleId: F, removes: [{ index: [...zr(P), w] }] }), N.apply(P, b);
|
|
5201
5201
|
}) });
|
|
5202
5202
|
}), H(() => {
|
|
5203
|
-
I.CSSStyleSheet.prototype.insertRule = M, I.CSSStyleSheet.prototype.deleteRule =
|
|
5203
|
+
I.CSSStyleSheet.prototype.insertRule = M, I.CSSStyleSheet.prototype.deleteRule = x, U && (I.CSSStyleSheet.prototype.replace = U), A && (I.CSSStyleSheet.prototype.replaceSync = A), Object.entries(E).forEach(([O, S]) => {
|
|
5204
5204
|
S.prototype.insertRule = L[O].insertRule, S.prototype.deleteRule = L[O].deleteRule;
|
|
5205
5205
|
});
|
|
5206
5206
|
});
|
|
5207
5207
|
}(e, { win: r }), d = Jc(e, e.doc), p = function({ styleDeclarationCb: m, mirror: g, ignoreCSSAttributes: v, stylesheetManager: I }, { win: M }) {
|
|
5208
|
-
const
|
|
5209
|
-
M.CSSStyleDeclaration.prototype.setProperty = new Proxy(
|
|
5208
|
+
const x = M.CSSStyleDeclaration.prototype.setProperty;
|
|
5209
|
+
M.CSSStyleDeclaration.prototype.setProperty = new Proxy(x, { apply: H((A, E, L) => {
|
|
5210
5210
|
var O;
|
|
5211
5211
|
const [S, N, P] = L;
|
|
5212
|
-
if (v.has(S)) return
|
|
5213
|
-
const { id: b, styleId: w } = tt((O =
|
|
5214
|
-
return (b && b !== -1 || w && w !== -1) && m({ id: b, styleId: w, set: { property: S, value: N, priority: P }, index: zr(
|
|
5212
|
+
if (v.has(S)) return x.apply(E, [S, N, P]);
|
|
5213
|
+
const { id: b, styleId: w } = tt((O = E.parentRule) == null ? void 0 : O.parentStyleSheet, g, I.styleMirror);
|
|
5214
|
+
return (b && b !== -1 || w && w !== -1) && m({ id: b, styleId: w, set: { property: S, value: N, priority: P }, index: zr(E.parentRule) }), A.apply(E, L);
|
|
5215
5215
|
}) });
|
|
5216
5216
|
const U = M.CSSStyleDeclaration.prototype.removeProperty;
|
|
5217
|
-
return M.CSSStyleDeclaration.prototype.removeProperty = new Proxy(U, { apply: H((A,
|
|
5217
|
+
return M.CSSStyleDeclaration.prototype.removeProperty = new Proxy(U, { apply: H((A, E, L) => {
|
|
5218
5218
|
var O;
|
|
5219
5219
|
const [S] = L;
|
|
5220
|
-
if (v.has(S)) return U.apply(
|
|
5221
|
-
const { id: N, styleId: P } = tt((O =
|
|
5222
|
-
return (N && N !== -1 || P && P !== -1) && m({ id: N, styleId: P, remove: { property: S }, index: zr(
|
|
5220
|
+
if (v.has(S)) return U.apply(E, [S]);
|
|
5221
|
+
const { id: N, styleId: P } = tt((O = E.parentRule) == null ? void 0 : O.parentStyleSheet, g, I.styleMirror);
|
|
5222
|
+
return (N && N !== -1 || P && P !== -1) && m({ id: N, styleId: P, remove: { property: S }, index: zr(E.parentRule) }), A.apply(E, L);
|
|
5223
5223
|
}) }), H(() => {
|
|
5224
|
-
M.CSSStyleDeclaration.prototype.setProperty =
|
|
5224
|
+
M.CSSStyleDeclaration.prototype.setProperty = x, M.CSSStyleDeclaration.prototype.removeProperty = U;
|
|
5225
5225
|
});
|
|
5226
5226
|
}(e, { win: r }), e.collectFonts && (f = function({ fontCb: m, doc: g }) {
|
|
5227
5227
|
const v = g.defaultView;
|
|
5228
5228
|
if (!v) return () => {
|
|
5229
5229
|
};
|
|
5230
|
-
const I = [], M = /* @__PURE__ */ new WeakMap(),
|
|
5231
|
-
v.FontFace = function(A,
|
|
5232
|
-
const O = new
|
|
5233
|
-
return M.set(O, { family: A, buffer: typeof
|
|
5230
|
+
const I = [], M = /* @__PURE__ */ new WeakMap(), x = v.FontFace;
|
|
5231
|
+
v.FontFace = function(A, E, L) {
|
|
5232
|
+
const O = new x(A, E, L);
|
|
5233
|
+
return M.set(O, { family: A, buffer: typeof E != "string", descriptors: L, fontSource: typeof E == "string" ? E : JSON.stringify(Array.from(new Uint8Array(E))) }), O;
|
|
5234
5234
|
};
|
|
5235
5235
|
const U = Ot(g.fonts, "add", function(A) {
|
|
5236
|
-
return function(
|
|
5236
|
+
return function(E) {
|
|
5237
5237
|
return setTimeout(H(() => {
|
|
5238
|
-
const L = M.get(
|
|
5239
|
-
L && (m(L), M.delete(
|
|
5240
|
-
}), 0), A.apply(this, [
|
|
5238
|
+
const L = M.get(E);
|
|
5239
|
+
L && (m(L), M.delete(E));
|
|
5240
|
+
}), 0), A.apply(this, [E]);
|
|
5241
5241
|
};
|
|
5242
5242
|
});
|
|
5243
5243
|
return I.push(() => {
|
|
5244
|
-
v.FontFace =
|
|
5244
|
+
v.FontFace = x;
|
|
5245
5245
|
}), I.push(U), H(() => {
|
|
5246
5246
|
I.forEach((A) => A());
|
|
5247
5247
|
});
|
|
5248
5248
|
}(e)));
|
|
5249
5249
|
const y = function(m) {
|
|
5250
|
-
const { doc: g, mirror: v, blockClass: I, blockSelector: M, selectionCb:
|
|
5250
|
+
const { doc: g, mirror: v, blockClass: I, blockSelector: M, selectionCb: x } = m;
|
|
5251
5251
|
let U = !0;
|
|
5252
5252
|
const A = H(() => {
|
|
5253
|
-
const
|
|
5254
|
-
if (!
|
|
5255
|
-
U =
|
|
5256
|
-
const L = [], O =
|
|
5253
|
+
const E = g.getSelection();
|
|
5254
|
+
if (!E || U && (E != null && E.isCollapsed)) return;
|
|
5255
|
+
U = E.isCollapsed || !1;
|
|
5256
|
+
const L = [], O = E.rangeCount || 0;
|
|
5257
5257
|
for (let S = 0; S < O; S++) {
|
|
5258
|
-
const N =
|
|
5258
|
+
const N = E.getRangeAt(S), { startContainer: P, startOffset: b, endContainer: w, endOffset: T } = N;
|
|
5259
5259
|
ve(P, I, M, !0) || ve(w, I, M, !0) || L.push({ start: v.getId(P), startOffset: b, end: v.getId(w), endOffset: T });
|
|
5260
5260
|
}
|
|
5261
|
-
|
|
5261
|
+
x({ ranges: L });
|
|
5262
5262
|
});
|
|
5263
5263
|
return A(), ye("selectionchange", A);
|
|
5264
5264
|
}(e), h = function({ doc: m, customElementCb: g }) {
|
|
5265
5265
|
const v = m.defaultView;
|
|
5266
5266
|
return v && v.customElements ? Ot(v.customElements, "define", function(I) {
|
|
5267
|
-
return function(M,
|
|
5267
|
+
return function(M, x, U) {
|
|
5268
5268
|
try {
|
|
5269
5269
|
g({ define: { name: M } });
|
|
5270
5270
|
} catch {
|
|
5271
5271
|
console.warn(`Custom element callback failed for ${M}`);
|
|
5272
5272
|
}
|
|
5273
|
-
return I.apply(this, [M,
|
|
5273
|
+
return I.apply(this, [M, x, U]);
|
|
5274
5274
|
};
|
|
5275
5275
|
}) : () => {
|
|
5276
5276
|
};
|
|
@@ -5320,9 +5320,9 @@ class Da {
|
|
|
5320
5320
|
return r || (r = /* @__PURE__ */ new Map(), this.iframeRemoteIdToIdMap.set(t, r)), r;
|
|
5321
5321
|
}
|
|
5322
5322
|
}
|
|
5323
|
-
class
|
|
5323
|
+
class Ef {
|
|
5324
5324
|
constructor(t) {
|
|
5325
|
-
R(this, "iframes", /* @__PURE__ */ new WeakMap()), R(this, "crossOriginIframeMap", /* @__PURE__ */ new WeakMap()), R(this, "crossOriginIframeMirror", new Da(
|
|
5325
|
+
R(this, "iframes", /* @__PURE__ */ new WeakMap()), R(this, "crossOriginIframeMap", /* @__PURE__ */ new WeakMap()), R(this, "crossOriginIframeMirror", new Da(xl)), R(this, "crossOriginIframeStyleMirror"), R(this, "crossOriginIframeRootIdMap", /* @__PURE__ */ new WeakMap()), R(this, "mirror"), R(this, "mutationCb"), R(this, "wrappedEmit"), R(this, "loadListener"), R(this, "stylesheetManager"), R(this, "recordCrossOriginIframes"), this.mutationCb = t.mutationCb, this.wrappedEmit = t.wrappedEmit, this.stylesheetManager = t.stylesheetManager, this.recordCrossOriginIframes = t.recordCrossOriginIframes, this.crossOriginIframeStyleMirror = new Da(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)), this.mirror = t.mirror, this.recordCrossOriginIframes && window.addEventListener("message", this.handleMessage.bind(this));
|
|
5326
5326
|
}
|
|
5327
5327
|
addIframe(t) {
|
|
5328
5328
|
this.iframes.set(t, !0), t.contentWindow && this.crossOriginIframeMap.set(t.contentWindow, t);
|
|
@@ -5424,7 +5424,7 @@ class xf {
|
|
|
5424
5424
|
});
|
|
5425
5425
|
}
|
|
5426
5426
|
}
|
|
5427
|
-
class
|
|
5427
|
+
class xf {
|
|
5428
5428
|
constructor(t) {
|
|
5429
5429
|
R(this, "shadowDoms", /* @__PURE__ */ new WeakSet()), R(this, "mutationCb"), R(this, "scrollCb"), R(this, "bypassOptions"), R(this, "mirror"), R(this, "restoreHandlers", []), this.mutationCb = t.mutationCb, this.scrollCb = t.scrollCb, this.bypassOptions = t.bypassOptions, this.mirror = t.mirror, this.init();
|
|
5430
5430
|
}
|
|
@@ -5719,9 +5719,9 @@ try {
|
|
|
5719
5719
|
} catch (e) {
|
|
5720
5720
|
console.debug("Unable to override Array.from", e);
|
|
5721
5721
|
}
|
|
5722
|
-
const Oe = new
|
|
5722
|
+
const Oe = new El();
|
|
5723
5723
|
function $t(e = {}) {
|
|
5724
|
-
const { emit: t, checkoutEveryNms: r, checkoutEveryNth: n, blockClass: s = "rr-block", blockSelector: i = null, ignoreClass: a = "rr-ignore", ignoreSelector: o = null, maskTextClass: l = "rr-mask", maskTextSelector: c = null, inlineStylesheet: u = !0, maskAllInputs: d, maskInputOptions: p, slimDOMOptions: f, maskInputFn: y, maskTextFn: h, hooks: k, packFn: m, sampling: g = {}, dataURLOptions: v = {}, mousemoveWait: I, recordDOM: M = !0, recordCanvas:
|
|
5724
|
+
const { emit: t, checkoutEveryNms: r, checkoutEveryNth: n, blockClass: s = "rr-block", blockSelector: i = null, ignoreClass: a = "rr-ignore", ignoreSelector: o = null, maskTextClass: l = "rr-mask", maskTextSelector: c = null, inlineStylesheet: u = !0, maskAllInputs: d, maskInputOptions: p, slimDOMOptions: f, maskInputFn: y, maskTextFn: h, hooks: k, packFn: m, sampling: g = {}, dataURLOptions: v = {}, mousemoveWait: I, recordDOM: M = !0, recordCanvas: x = !1, recordCrossOriginIframes: U = !1, recordAfter: A = e.recordAfter === "DOMContentLoaded" ? e.recordAfter : "load", userTriggeredOnInput: E = !1, collectFonts: L = !1, inlineImages: O = !1, plugins: S, keepIframeSrcFn: N = () => !1, ignoreCSSAttributes: P = /* @__PURE__ */ new Set([]), errorHandler: b } = e;
|
|
5725
5725
|
Kt = b;
|
|
5726
5726
|
const w = !U || window.parent === window;
|
|
5727
5727
|
let T = !1;
|
|
@@ -5747,33 +5747,33 @@ function $t(e = {}) {
|
|
|
5747
5747
|
le = (W, Le) => {
|
|
5748
5748
|
var re;
|
|
5749
5749
|
const ie = W;
|
|
5750
|
-
if (ie.timestamp = wn(), !((re = pt[0]) != null && re.isFrozen()) || ie.type === $.FullSnapshot || ie.type === $.IncrementalSnapshot && ie.data.source === G.Mutation || pt.forEach((
|
|
5750
|
+
if (ie.timestamp = wn(), !((re = pt[0]) != null && re.isFrozen()) || ie.type === $.FullSnapshot || ie.type === $.IncrementalSnapshot && ie.data.source === G.Mutation || pt.forEach((xe) => xe.unfreeze()), w) t == null || t(K(ie), Le);
|
|
5751
5751
|
else if (T) {
|
|
5752
|
-
const
|
|
5753
|
-
window.parent.postMessage(
|
|
5752
|
+
const xe = { type: "rrweb", event: K(ie), origin: window.location.origin, isCheckout: Le };
|
|
5753
|
+
window.parent.postMessage(xe, "*");
|
|
5754
5754
|
}
|
|
5755
5755
|
if (ie.type === $.FullSnapshot) C = ie, D = 0;
|
|
5756
5756
|
else if (ie.type === $.IncrementalSnapshot) {
|
|
5757
5757
|
if (ie.data.source === G.Mutation && ie.data.isAttachIframe) return;
|
|
5758
5758
|
D++;
|
|
5759
|
-
const
|
|
5760
|
-
(
|
|
5759
|
+
const xe = n && D >= n, q = r && ie.timestamp - C.timestamp > r;
|
|
5760
|
+
(xe || q) && ln(!0);
|
|
5761
5761
|
}
|
|
5762
5762
|
};
|
|
5763
5763
|
const Y = (W) => {
|
|
5764
5764
|
le({ type: $.IncrementalSnapshot, data: { source: G.Mutation, ...W } });
|
|
5765
|
-
}, he = (W) => le({ type: $.IncrementalSnapshot, data: { source: G.Scroll, ...W } }), ct = (W) => le({ type: $.IncrementalSnapshot, data: { source: G.CanvasMutation, ...W } }), Se = new Af({ mutationCb: Y, adoptedStyleSheetCb: (W) => le({ type: $.IncrementalSnapshot, data: { source: G.AdoptedStyleSheet, ...W } }) }), Pe = new
|
|
5765
|
+
}, he = (W) => le({ type: $.IncrementalSnapshot, data: { source: G.Scroll, ...W } }), ct = (W) => le({ type: $.IncrementalSnapshot, data: { source: G.CanvasMutation, ...W } }), Se = new Af({ mutationCb: Y, adoptedStyleSheetCb: (W) => le({ type: $.IncrementalSnapshot, data: { source: G.AdoptedStyleSheet, ...W } }) }), Pe = new Ef({ mirror: Oe, mutationCb: Y, stylesheetManager: Se, recordCrossOriginIframes: U, wrappedEmit: le });
|
|
5766
5766
|
for (const W of S || []) W.getMirror && W.getMirror({ nodeMirror: Oe, crossOriginIframeMirror: Pe.crossOriginIframeMirror, crossOriginIframeStyleMirror: Pe.crossOriginIframeStyleMirror });
|
|
5767
5767
|
const qn = new Mf();
|
|
5768
|
-
hs = new Of({ recordCanvas:
|
|
5769
|
-
const vr = new
|
|
5768
|
+
hs = new Of({ recordCanvas: x, mutationCb: ct, win: window, blockClass: s, blockSelector: i, mirror: Oe, sampling: g.canvas, dataURLOptions: v });
|
|
5769
|
+
const vr = new xf({ mutationCb: Y, scrollCb: he, bypassOptions: { blockClass: s, blockSelector: i, maskTextClass: l, maskTextSelector: c, inlineStylesheet: u, maskInputOptions: F, dataURLOptions: v, maskTextFn: h, maskInputFn: y, recordCanvas: x, inlineImages: O, sampling: g, slimDOMOptions: j, iframeManager: Pe, stylesheetManager: Se, canvasManager: hs, keepIframeSrcFn: N, processedNodeManager: qn }, mirror: Oe });
|
|
5770
5770
|
ln = (W = !1) => {
|
|
5771
5771
|
if (!M) return;
|
|
5772
5772
|
le({ type: $.Meta, data: { href: window.location.href, width: Bc(), height: Fc() } }, W), Se.reset(), vr.init(), pt.forEach((re) => re.lock());
|
|
5773
5773
|
const Le = function(re, ie) {
|
|
5774
|
-
const { mirror:
|
|
5775
|
-
return Ct(re, { doc: re, mirror:
|
|
5776
|
-
}(document, { mirror: Oe, blockClass: s, blockSelector: i, maskTextClass: l, maskTextSelector: c, inlineStylesheet: u, maskAllInputs: F, maskTextFn: h, maskInputFn: y, slimDOM: j, dataURLOptions: v, recordCanvas:
|
|
5774
|
+
const { mirror: xe = new El(), blockClass: q = "rr-block", blockSelector: Dt = null, maskTextClass: sd = "rr-mask", maskTextSelector: id = null, inlineStylesheet: od = !0, inlineImages: ad = !1, recordCanvas: ld = !1, maskAllInputs: Jn = !1, maskTextFn: cd, maskInputFn: ud, slimDOM: Pt = !1, dataURLOptions: dd, preserveWhiteSpace: pd, onSerialize: hd, onIframeLoad: md, iframeLoadTimeout: fd, onStylesheetLoad: gd, stylesheetLoadTimeout: yd, keepIframeSrcFn: wd = () => !1 } = ie || {};
|
|
5775
|
+
return Ct(re, { doc: re, mirror: xe, blockClass: q, blockSelector: Dt, maskTextClass: sd, maskTextSelector: id, skipChild: !1, inlineStylesheet: od, maskInputOptions: Jn === !0 ? { color: !0, date: !0, "datetime-local": !0, email: !0, month: !0, number: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0, textarea: !0, select: !0, password: !0 } : Jn === !1 ? { password: !0 } : Jn, maskTextFn: cd, maskInputFn: ud, slimDOMOptions: Pt === !0 || Pt === "all" ? { script: !0, comment: !0, headFavicon: !0, headWhitespace: !0, headMetaDescKeywords: Pt === "all", headMetaSocial: !0, headMetaRobots: !0, headMetaHttpEquiv: !0, headMetaAuthorship: !0, headMetaVerification: !0 } : Pt === !1 ? {} : Pt, dataURLOptions: dd, inlineImages: ad, recordCanvas: ld, preserveWhiteSpace: pd, onSerialize: hd, onIframeLoad: md, iframeLoadTimeout: fd, onStylesheetLoad: gd, stylesheetLoadTimeout: yd, keepIframeSrcFn: wd, newlyAddedElement: !1 });
|
|
5776
|
+
}(document, { mirror: Oe, blockClass: s, blockSelector: i, maskTextClass: l, maskTextSelector: c, inlineStylesheet: u, maskAllInputs: F, maskTextFn: h, maskInputFn: y, slimDOM: j, dataURLOptions: v, recordCanvas: x, inlineImages: O, onSerialize: (re) => {
|
|
5777
5777
|
Wc(re, Oe) && Pe.addIframe(re), Vc(re, Oe) && Se.trackLinkElement(re), ai(re) && vr.addShadowRoot(V.shadowRoot(re), document);
|
|
5778
5778
|
}, onIframeLoad: (re, ie) => {
|
|
5779
5779
|
Pe.attachIframe(re, ie), vr.observeAttachShadow(re);
|
|
@@ -5785,18 +5785,18 @@ function $t(e = {}) {
|
|
|
5785
5785
|
};
|
|
5786
5786
|
try {
|
|
5787
5787
|
const W = [], Le = (ie) => {
|
|
5788
|
-
var
|
|
5788
|
+
var xe;
|
|
5789
5789
|
return H(kf)({ mutationCb: Y, mousemoveCb: (q, Dt) => le({ type: $.IncrementalSnapshot, data: { source: Dt, positions: q } }), mouseInteractionCb: (q) => le({ type: $.IncrementalSnapshot, data: { source: G.MouseInteraction, ...q } }), scrollCb: he, viewportResizeCb: (q) => le({ type: $.IncrementalSnapshot, data: { source: G.ViewportResize, ...q } }), inputCb: (q) => le({ type: $.IncrementalSnapshot, data: { source: G.Input, ...q } }), mediaInteractionCb: (q) => le({ type: $.IncrementalSnapshot, data: { source: G.MediaInteraction, ...q } }), styleSheetRuleCb: (q) => le({ type: $.IncrementalSnapshot, data: { source: G.StyleSheetRule, ...q } }), styleDeclarationCb: (q) => le({ type: $.IncrementalSnapshot, data: { source: G.StyleDeclaration, ...q } }), canvasMutationCb: ct, fontCb: (q) => le({ type: $.IncrementalSnapshot, data: { source: G.Font, ...q } }), selectionCb: (q) => {
|
|
5790
5790
|
le({ type: $.IncrementalSnapshot, data: { source: G.Selection, ...q } });
|
|
5791
5791
|
}, customElementCb: (q) => {
|
|
5792
5792
|
le({ type: $.IncrementalSnapshot, data: { source: G.CustomElement, ...q } });
|
|
5793
|
-
}, blockClass: s, ignoreClass: a, ignoreSelector: o, maskTextClass: l, maskTextSelector: c, maskInputOptions: F, inlineStylesheet: u, sampling: g, recordDOM: M, recordCanvas:
|
|
5793
|
+
}, blockClass: s, ignoreClass: a, ignoreSelector: o, maskTextClass: l, maskTextSelector: c, maskInputOptions: F, inlineStylesheet: u, sampling: g, recordDOM: M, recordCanvas: x, inlineImages: O, userTriggeredOnInput: E, collectFonts: L, doc: ie, maskInputFn: y, maskTextFn: h, keepIframeSrcFn: N, blockSelector: i, slimDOMOptions: j, dataURLOptions: v, mirror: Oe, iframeManager: Pe, stylesheetManager: Se, shadowDomManager: vr, processedNodeManager: qn, canvasManager: hs, ignoreCSSAttributes: P, plugins: ((xe = S == null ? void 0 : S.filter((q) => q.observer)) == null ? void 0 : xe.map((q) => ({ observer: q.observer, options: q.options, callback: (Dt) => le({ type: $.Plugin, data: { plugin: q.name, payload: Dt } }) }))) || [] }, k);
|
|
5794
5794
|
};
|
|
5795
5795
|
Pe.addLoadListener((ie) => {
|
|
5796
5796
|
try {
|
|
5797
5797
|
W.push(Le(ie.contentDocument));
|
|
5798
|
-
} catch (
|
|
5799
|
-
console.warn(
|
|
5798
|
+
} catch (xe) {
|
|
5799
|
+
console.warn(xe);
|
|
5800
5800
|
}
|
|
5801
5801
|
});
|
|
5802
5802
|
const re = () => {
|
|
@@ -6061,7 +6061,7 @@ const Bf = (e) => e._config && e._config.installationMethod ? e._config.installa
|
|
|
6061
6061
|
su = !0, iu = e;
|
|
6062
6062
|
};
|
|
6063
6063
|
function Ue(e = {}) {
|
|
6064
|
-
const t = { "Content-Type": "application/json", "userleap-platform": "web", "x-ul-sdk-version": "2.36.
|
|
6064
|
+
const t = { "Content-Type": "application/json", "userleap-platform": "web", "x-ul-sdk-version": "2.36.1", "x-ul-installation-method": Bf(e), "sprig-modules": Nf(), "x-ul-package-version": "2.37.0" };
|
|
6065
6065
|
if (e.envId && (t["x-ul-environment-id"] = e.envId), e.token && (t.Authorization = "Bearer " + e.token), e.userId && (t["x-ul-user-id"] = e.userId), e.visitorId && (t["x-ul-visitor-id"] = e.visitorId), e.partnerAnonymousId && (t["x-ul-anonymous-id"] = e.partnerAnonymousId), e.mobileHeadersJSON) {
|
|
6066
6066
|
const r = JSON.parse(e.mobileHeadersJSON);
|
|
6067
6067
|
Object.assign(t, r);
|
|
@@ -6166,15 +6166,15 @@ const Qt = async (e, t, r) => {
|
|
|
6166
6166
|
return window.UserLeap.reportError("DisplaySurvey", new Error(C)), { success: !1, message: C, surveyState: "no survey" };
|
|
6167
6167
|
}
|
|
6168
6168
|
_.info("ShowingSurvey", { surveyId: y }), (T = te.replay) == null || T.RecordSurveyShown({ id: y, userAgent: window.navigator.userAgent }), Df.disable(), z.emit(B.SurveyWillPresent, { name: B.SurveyWillPresent, "survey.id": y });
|
|
6169
|
-
let
|
|
6169
|
+
let x, U, A, E, L = document.createElement("div");
|
|
6170
6170
|
const O = (C) => {
|
|
6171
6171
|
const { "view.version": D } = C;
|
|
6172
6172
|
D !== v["x-ul-sdk-version"] && lu(), z.removeListener("verify.view.version", O);
|
|
6173
6173
|
};
|
|
6174
|
-
z.on("verify.view.version", O), window.UserLeap.useMobileStyling = M, ru(v) ? (
|
|
6174
|
+
z.on("verify.view.version", O), window.UserLeap.useMobileStyling = M, ru(v) ? (x = "ul-direct-embeded-frame", U = document.head, A = window, E = !1, (() => {
|
|
6175
6175
|
const C = Ue(window.UserLeap), D = pr(C), K = window.UserLeap.forceDirectEmbed, Y = C["userleap-platform"] === "web";
|
|
6176
6176
|
return D || K && Y;
|
|
6177
|
-
})() && (au(y, o), L.id =
|
|
6177
|
+
})() && (au(y, o), L.id = x, window.UserLeap.container.appendChild(L), cu(), z.emit(B.SurveyLifeCycle, { state: "presented" }), z.emit(B.SurveyPresented, { name: B.SurveyPresented, "survey.id": y }))) : { frameId: x, contentWinDocHead: U, contentWindow: A, hasOverlay: E, iframe: L } = Vf({ productConfig: d, useMobileStyling: M, surveyId: y, isFeedback: o }), window.UserLeap.frameId = x;
|
|
6178
6178
|
const S = { apiURL: window.UserLeap._API_URL, cards: p, configureExitOnOverlayClick: (C) => {
|
|
6179
6179
|
z.once(B.CloseSurveyOnOverlayClick, C);
|
|
6180
6180
|
}, context: n, endCard: a, envId: window.UserLeap.envId, eventEmitFn: z.emit.bind(z), fontFamily: window.UserLeap.fontFamily, fontFamilyURL: window.UserLeap.fontFamilyURL, forceBrandedLogo: i, frame: L, headers: v, locale: c, mobileSDKVersion: window.UserLeap.mobileSDKVersion, previewKey: Ce.getItem("sprig.previewKey"), previewMode: u, productConfig: { framePosition: d == null ? void 0 : d.framePosition, desktopDisplay: d == null ? void 0 : d.desktopDisplay, placement: d == null ? void 0 : d.placement }, responseGroupUid: f, startingQuestionIdx: (F = window.UserLeap.config) == null ? void 0 : F.startingQuestionIdx, studyType: g, styleNonce: window.UserLeap.styleNonce, surveyId: y, tabTitle: document.title, trackPageViewUrl: t, ulEvents: dr, upchunkLibraryURL: window.UserLeap.upchunkLibraryURL, useMobileStyling: M, userId: h, viewDocument: A == null ? void 0 : A.document, viewWindow: A, visitorAttributes: { externalUserId: window.UserLeap.userId, email: window.UserLeap.email }, ...window.UserLeap._config };
|
|
@@ -6189,8 +6189,8 @@ const Qt = async (e, t, r) => {
|
|
|
6189
6189
|
}();
|
|
6190
6190
|
S.installationMethod === "web-npm" || S.installationMethod;
|
|
6191
6191
|
{
|
|
6192
|
-
const { default: C } = await import("./view-
|
|
6193
|
-
C.configure(S),
|
|
6192
|
+
const { default: C } = await import("./view-BLTLs8qM.js");
|
|
6193
|
+
C.configure(S), E && window.UserLeap.container && window.UserLeap.container && Object.assign(window.UserLeap.container.style, { display: "flex" });
|
|
6194
6194
|
}
|
|
6195
6195
|
U == null || U.appendChild(b);
|
|
6196
6196
|
const w = { success: !0, surveyState: "ready", surveyId: y, responseGroupUid: f };
|
|
@@ -6343,7 +6343,7 @@ const du = (e) => {
|
|
|
6343
6343
|
}, sy = (e) => {
|
|
6344
6344
|
const t = e.querySelector(".ul-card__container");
|
|
6345
6345
|
t && (t.scrollTop = 0);
|
|
6346
|
-
}, pu = () => X,
|
|
6346
|
+
}, pu = () => X, xt = () => document.getElementById("sprig-feedback-container"), ui = () => document.getElementById("sprig-feedback-loading-animation"), hu = () => !!document.getElementById(eo);
|
|
6347
6347
|
let Za = !1, X = null, ze = null, ro = !1, er = null, ut = null;
|
|
6348
6348
|
const qf = ["bottom-left", "bottom-right", "center-left", "center-right"], In = () => {
|
|
6349
6349
|
var t;
|
|
@@ -6354,7 +6354,7 @@ const qf = ["bottom-left", "bottom-right", "center-left", "center-right"], In =
|
|
|
6354
6354
|
const e = X == null ? void 0 : X.clientWidth, t = window.getComputedStyle(X);
|
|
6355
6355
|
return e + parseInt(t.borderRightWidth || "0") + parseInt(t.borderLeftWidth || "0");
|
|
6356
6356
|
}, Cn = (e) => {
|
|
6357
|
-
const t =
|
|
6357
|
+
const t = xt();
|
|
6358
6358
|
t && (ut != null && ut.endsWith("right") ? t.style.right = `${e}px` : ut != null && ut.endsWith("left") && (t.style.left = `${e}px`));
|
|
6359
6359
|
}, fs = () => {
|
|
6360
6360
|
if (X && (In() || mu())) {
|
|
@@ -6388,7 +6388,7 @@ const qf = ["bottom-left", "bottom-right", "center-left", "center-right"], In =
|
|
|
6388
6388
|
}, gu = async (e, t, r) => {
|
|
6389
6389
|
const { buttonTheme: n, customStyles: s, eventId: i, placement: a, desktopDisplay: o, feedbackLabel: l, surveyUuid: c, surveyId: u } = e;
|
|
6390
6390
|
window.UserLeap.feedbackCustomStyles = void 0;
|
|
6391
|
-
let d =
|
|
6391
|
+
let d = xt();
|
|
6392
6392
|
if (d) {
|
|
6393
6393
|
if (!t && i === er) return;
|
|
6394
6394
|
d.remove(), z.off(dr.SURVEY_FADING_OUT, fs);
|
|
@@ -6396,17 +6396,17 @@ const qf = ["bottom-left", "bottom-right", "center-left", "center-right"], In =
|
|
|
6396
6396
|
er = i, Sn({ document, elementId: "sprig-feedback-style", styleString: '.ul-loading-spinner-container{font-size:1.8rem;flex-grow:1;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.ul-loading-spinner{display:inline-block;position:relative;width:6rem;height:6rem}.ul-loading-spinner div{box-sizing:border-box;display:block;position:absolute;width:80%;height:80%;margin:5px;border:5px solid #152e3e;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#152e3e transparent transparent transparent}.ul-loading-spinner .first{animation-delay:-.45s}.ul-loading-spinner .second{animation-delay:-.3s}.ul-loading-spinner .third{animation-delay:-.15s}@keyframes lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.fade-in-transition{animation:fadeIn .4s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}#sprig-feedback-button{border-left:0;border-radius:0 8px 8px 0;display:grid;padding:8px;text-align:center;transition:all ease-in-out 1s;z-index:inherit}#sprig-feedback-button:hover{cursor:pointer}.sprig-feedback-button-label{writing-mode:vertical-lr;text-orientation:sideways}.sprig-feedback-button-right{transform:rotate(180deg)}.sprig-feedback-button-bottom{align-self:flex-end;margin-bottom:20px}.sprig-feedback-button-light{background:#efefee;color:#000;border:1px solid #e2e3e1}.sprig-feedback-button-dark{background:#000;color:#fff;border:1px solid #000000}#sprig-feedback-container{display:flex;align-items:center;position:fixed;transition:right .2s linear,left .2s linear;z-index:2147483646}.sprig-feedback-container-left{flex-flow:row-reverse}.sprig-feedback-container-center{top:50%;transform:translateY(-50%)}.sprig-feedback-container-bottom{bottom:0%;margin-bottom:15px}.sprig-feedback-loading-container{align-items:center;background-color:#fff;border:2px solid var(--feedback-border);display:flex;max-height:90vh;max-width:90vw;min-width:0px}.sprig-feedback-loading-container-left{border-left:none;border-radius:0 8px 8px 0}.sprig-feedback-loading-container-right{border-right:none;border-radius:8px 0 0 8px}#sprig-feedback-error-container{margin:auto;text-align:center;width:360px}.sprig-feedback-error-text{font-weight:400;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol}#sprig-feedback-loading-container .ul-container{position:relative;max-height:inherit}#sprig-feedback-loading-animation{position:absolute}.sprig-feedback-loading-container-previews iframe{max-height:inherit!important}', nonce: window.UserLeap.styleNonce }), Sn({ document, elementId: "ul-custom-style", styleString: s ?? "", nonce: window.UserLeap.styleNonce }), Za = o === "center-modal", ut = a;
|
|
6397
6397
|
const [p, f] = a.split("-");
|
|
6398
6398
|
((m) => {
|
|
6399
|
-
if (
|
|
6399
|
+
if (xt() || !qf.includes(m)) return;
|
|
6400
6400
|
const [g, v] = m.split("-"), I = document.createElement("div");
|
|
6401
6401
|
I.id = "sprig-feedback-container", I.classList.add(`sprig-feedback-container-${v}`, `sprig-feedback-container-${g}`), document.body.appendChild(I);
|
|
6402
|
-
})(a), d =
|
|
6402
|
+
})(a), d = xt(), ze = document.createElement("button");
|
|
6403
6403
|
const y = document.createElement("div");
|
|
6404
6404
|
y.className = "sprig-feedback-button-label", y.innerText = l, ze.appendChild(y), ze.id = "sprig-feedback-button", ze.classList.add(`sprig-feedback-button-${f}`, `sprig-feedback-button-${p}`, `sprig-feedback-button-${n}`, "fade-in-transition"), z.on(dr.SURVEY_FADING_OUT, fs), ze.addEventListener("click", async () => {
|
|
6405
6405
|
const m = document.getElementById("sprig-feedback-error-container");
|
|
6406
6406
|
if (hu() || mu()) {
|
|
6407
6407
|
if (fs()) {
|
|
6408
6408
|
z.emit(B.SurveyCloseRequested, { name: B.SurveyCloseRequested, initiator: Fe.FeedbackClosed, studyType: "feedbackButton", "survey.id": u }), z.emit(B.SurveyWillClose, { name: B.SurveyWillClose, initiator: Fe.FeedbackClosed, studyType: "feedbackButton", "survey.id": u });
|
|
6409
|
-
const v =
|
|
6409
|
+
const v = xt();
|
|
6410
6410
|
m && v && (v.remove(), er = null, X = null);
|
|
6411
6411
|
}
|
|
6412
6412
|
return;
|
|
@@ -6611,7 +6611,7 @@ const fi = (e) => {
|
|
|
6611
6611
|
t.report(n / 1e3), setTimeout(() => gi(e, t), e);
|
|
6612
6612
|
}, 0);
|
|
6613
6613
|
};
|
|
6614
|
-
let kn,
|
|
6614
|
+
let kn, En, xn, Rn, Qa, dt = {};
|
|
6615
6615
|
const $r = (e, t = 1) => {
|
|
6616
6616
|
const { name: r } = e;
|
|
6617
6617
|
dt[r] = (dt[r] || 0) + t;
|
|
@@ -6628,16 +6628,16 @@ const $r = (e, t = 1) => {
|
|
|
6628
6628
|
}, eg = (e) => {
|
|
6629
6629
|
switch (e.type) {
|
|
6630
6630
|
case "childList":
|
|
6631
|
-
return $r(kn, el(e.addedNodes)), void $r(
|
|
6631
|
+
return $r(kn, el(e.addedNodes)), void $r(En, el(e.removedNodes));
|
|
6632
6632
|
case "attributes":
|
|
6633
|
-
return void $r(
|
|
6633
|
+
return void $r(xn);
|
|
6634
6634
|
case "characterData":
|
|
6635
6635
|
return void $r(Rn);
|
|
6636
6636
|
}
|
|
6637
6637
|
}, tg = (e) => e.forEach(eg), rg = () => {
|
|
6638
|
-
kn.report(dt[kn.name] || 0),
|
|
6638
|
+
kn.report(dt[kn.name] || 0), En.report(dt[En.name] || 0), xn.report(dt[xn.name] || 0), Rn.report(dt[Rn.name] || 0), dt = {};
|
|
6639
6639
|
}, ng = (e = 1e3) => {
|
|
6640
|
-
kn = We("sdk_mutations_nodes_added"),
|
|
6640
|
+
kn = We("sdk_mutations_nodes_added"), En = We("sdk_mutations_nodes_removed"), xn = We("sdk_mutations_attributes_changed"), Rn = We("sdk_mutations_character_data"), Qa = new MutationObserver(tg), Qa.observe(document, { attributes: !0, attributeOldValue: !0, characterData: !0, characterDataOldValue: !0, childList: !0, subtree: !0 }), setInterval(rg, e);
|
|
6641
6641
|
}, sg = ({ isWeb: e, reportingIntervalSeconds: t, thresholds: r, postMetrics: n }) => {
|
|
6642
6642
|
((s, i) => {
|
|
6643
6643
|
qt = {}, hi = !1, s == null || s.forEach((a) => {
|
|
@@ -6665,10 +6665,10 @@ function rr(e) {
|
|
|
6665
6665
|
const { pageUrlEvents: t, interactiveEvents: r, dismissOnPageChange: n, platform: s } = window.UserLeap._config;
|
|
6666
6666
|
if (s && s !== "web") return;
|
|
6667
6667
|
gs !== window.location.href && _.navigation("LocationChange", { from: gs, to: window.location.href }), gs = window.location.href;
|
|
6668
|
-
const i =
|
|
6668
|
+
const i = Eu().trackStartUrl, a = i ? String(i) : null;
|
|
6669
6669
|
t && Ru(window.location.href), r && (ku(), ag()), pu() && (() => {
|
|
6670
6670
|
if (In()) return;
|
|
6671
|
-
const c =
|
|
6671
|
+
const c = xt();
|
|
6672
6672
|
c && (du(er) || (c.remove(), er = null, X = null));
|
|
6673
6673
|
})(), ce.getItem("sprig.isCapturingHeatmap") && ((l = (o = te.replay) == null ? void 0 : o.checkPendingHeatmapsUrl()) == null || l.then((c) => {
|
|
6674
6674
|
var u;
|
|
@@ -6690,11 +6690,11 @@ const Cu = { capture: !0 }, ag = () => {
|
|
|
6690
6690
|
}, ku = () => {
|
|
6691
6691
|
window.UserLeap._config.interactiveEventsHandler && window.removeEventListener("click", window.UserLeap._config.interactiveEventsHandler, Cu), delete window.UserLeap._config.interactiveEventsHandler;
|
|
6692
6692
|
};
|
|
6693
|
-
function
|
|
6693
|
+
function Eu() {
|
|
6694
6694
|
const e = Ce.getItemObject("userleap.ids");
|
|
6695
6695
|
return e && e[window.UserLeap.envId] || {};
|
|
6696
6696
|
}
|
|
6697
|
-
function
|
|
6697
|
+
function xu() {
|
|
6698
6698
|
if (window.previewMode) return;
|
|
6699
6699
|
const e = Ce.getItemObject("sprig.anon.env.vid.map") || {}, t = e[window.UserLeap.envId];
|
|
6700
6700
|
window.UserLeap.visitorId = t || Mt(), _.info("NewVid", { vid: window.UserLeap.visitorId }), Ie("vid", window.UserLeap.visitorId), t || (e[window.UserLeap.envId] = window.UserLeap.visitorId, Ce.setItemObject("sprig.anon.env.vid.map", e)), z.emit(B.VisitorIDUpdated, { visitorId: window.UserLeap.visitorId });
|
|
@@ -6766,32 +6766,32 @@ const ug = function(e) {
|
|
|
6766
6766
|
if (window.UserLeap.debugMode && u !== Iu && console.info("[DEBUG] Sprig track", s), e.mode === "test") return;
|
|
6767
6767
|
const d = Ce.getItem("sprig.previewKey") ?? void 0;
|
|
6768
6768
|
if (e.requireUserIdForTracking && !window.UserLeap.userId && !i) {
|
|
6769
|
-
const
|
|
6770
|
-
return console.warn(
|
|
6769
|
+
const x = "[Sprig] - Skipping tracking without userId";
|
|
6770
|
+
return console.warn(x), { success: !1, message: x, surveyState: "no survey" };
|
|
6771
6771
|
}
|
|
6772
6772
|
if (!u || u.trim().length === 0) {
|
|
6773
6773
|
u = u ? String(u) : "";
|
|
6774
|
-
const
|
|
6775
|
-
return console.warn(
|
|
6774
|
+
const x = "[Sprig] - Invalid event name " + u;
|
|
6775
|
+
return console.warn(x), { success: !1, message: x, surveyState: "no survey" };
|
|
6776
6776
|
}
|
|
6777
6777
|
const p = tr ?? window.location.href;
|
|
6778
6778
|
o.url || (o.url = p), Ie("trackStartUrl", p), (g = (m = window.UserLeap) == null ? void 0 : m._config) != null && g.optimizelyEnabled && (pr(Ue(window.UserLeap)) || un.getAndSetWebOptimizelyExperiments(), o.optimizelyExperiments = Object.assign({}, un.getAllOptimizelyExperiments())), (I = (v = window.UserLeap) == null ? void 0 : v._config) != null && I.launchDarklyEnabled && (o.launchDarklyFlags = pi.getAllLaunchDarklyVariations()), i && (window.UserLeap.userId = i), a && (window.UserLeap.partnerAnonymousId = a), l && (o.eventProperties = l), (M = te.replay) == null || M.RecordEvent({ name: u, url: o.url }), _.info("TrackEvent", { eventName: u });
|
|
6779
6779
|
const f = window.UserLeap.delayingSurvey || hu() ? await Be(Ae("1", [nt], "events/batch"), { body: JSON.stringify({ events: [{ event: u, metadata: o }], previewKey: d }), method: "POST", shouldDropOnRateLimit: !0 }) : await Be(Ae("1", [nt], "events"), { body: JSON.stringify({ event: u, metadata: o, previewKey: d }), method: "POST", shouldDropOnRateLimit: !0 });
|
|
6780
6780
|
if (!f.ok) {
|
|
6781
|
-
const
|
|
6782
|
-
return f.reportError && (console.warn(
|
|
6781
|
+
const x = "[Sprig] (ERR-421) Failed to track event";
|
|
6782
|
+
return f.reportError && (console.warn(x, f.error), f.error && window.UserLeap.reportError("track", f.error)), { success: !1, message: x, error: f.error, surveyState: "no survey" };
|
|
6783
6783
|
}
|
|
6784
6784
|
i && Ie("uid", i), a && Ie("aid", a);
|
|
6785
6785
|
const y = f.json;
|
|
6786
6786
|
y.invalidPreviewKey && Ce.removeItem("sprig.previewKey");
|
|
6787
6787
|
const h = o.trackPageView ? o.url : void 0;
|
|
6788
|
-
return y != null && y.feedbackButton && gu(y.feedbackButton, void 0, h), await async function(
|
|
6789
|
-
var
|
|
6788
|
+
return y != null && y.feedbackButton && gu(y.feedbackButton, void 0, h), await async function(x, U) {
|
|
6789
|
+
var E, L;
|
|
6790
6790
|
let A = !0;
|
|
6791
|
-
return !(U && ((
|
|
6792
|
-
}(f, c) ? function(
|
|
6791
|
+
return !(U && ((E = x == null ? void 0 : x.json) != null && E.surveyId) && (window.UserLeap.delayingSurvey = !0, A = await U(x.json.surveyId), window.UserLeap.delayingSurvey = !1, !A)) && ((L = x == null ? void 0 : x.json) != null && L.delay && !window.UserLeap.isMobileSDK && (window.UserLeap.delayingSurvey = !0, await bn(x.json.delay), window.UserLeap.delayingSurvey = !1), A);
|
|
6792
|
+
}(f, c) ? function(x) {
|
|
6793
6793
|
if (!window.UserLeap._config.dismissOnPageChange) return !0;
|
|
6794
|
-
const U = new URL(
|
|
6794
|
+
const U = new URL(x), A = new URL(tr ?? window.location.href);
|
|
6795
6795
|
return U.hostname === A.hostname && U.pathname === A.pathname;
|
|
6796
6796
|
}(p) ? Qt(y, h, no) : { success: !1, message: "Study should not be displayed after page navigation", surveyState: "no survey" } : { success: !1, message: "[Sprig] Callback returned false, aborting rendering of survey", surveyState: "no survey" };
|
|
6797
6797
|
}, r = (s, i) => {
|
|
@@ -6902,7 +6902,7 @@ const ug = function(e) {
|
|
|
6902
6902
|
d && (window.UserLeap.useMobileStyling && ((p = window.UserLeap.windowDimensions) != null && p.width && (d.style.width = `${window.UserLeap.windowDimensions.width}px`), (f = window.UserLeap.windowDimensions) != null && f.height && (d.style.maxHeight = window.UserLeap.windowDimensions.height - 20 + "px"), d.contentDocument && (d.style.height = String(Yf(d.contentDocument, u && !c, ru(l))[0]) + "px")), z.emit(B.SurveyDimensions, { name: B.SurveyDimensions, contentFrameWidth: d.clientWidth, contentFrameHeight: d.clientHeight, "survey.id": parseInt(window.UserLeap.container.dataset.studyId) }));
|
|
6903
6903
|
}, logoutUser() {
|
|
6904
6904
|
var s;
|
|
6905
|
-
window.UserLeap.debugMode && console.info("[DEBUG] Sprig logout"), _.info("LogOut", { vid: window.UserLeap.visitorId, userId: window.UserLeap.userId }), window.UserLeap.visitorId = null, window.UserLeap.userId = null, window.UserLeap.partnerAnonymousId = null, window.UserLeap.token = null, window.UserLeap.email = null, Ce.removeItem("userleap.ids"), window.UserLeap._queue.isPaused() && window.UserLeap._queue.empty(),
|
|
6905
|
+
window.UserLeap.debugMode && console.info("[DEBUG] Sprig logout"), _.info("LogOut", { vid: window.UserLeap.visitorId, userId: window.UserLeap.userId }), window.UserLeap.visitorId = null, window.UserLeap.userId = null, window.UserLeap.partnerAnonymousId = null, window.UserLeap.token = null, window.UserLeap.email = null, Ce.removeItem("userleap.ids"), window.UserLeap._queue.isPaused() && window.UserLeap._queue.empty(), xu(), (s = te.replay) == null || s.clearUserReplayData(), window.UserLeap._queue.unpause();
|
|
6906
6906
|
}, teardown() {
|
|
6907
6907
|
["hashchange", "popstate"].forEach((s) => window.removeEventListener(s, rr, !0)), window.UserLeap._config.interactiveEvents && ku(), window.UserLeap("dismissActiveSurvey", Fe.API), delete window.UserLeap, delete window.Sprig, delete window._Sprig;
|
|
6908
6908
|
}, integrateOptimizely(s, i = !0) {
|
|
@@ -6969,7 +6969,7 @@ function pg(e = {}) {
|
|
|
6969
6969
|
window.UserLeap.envId = window.UserLeap.appId;
|
|
6970
6970
|
}
|
|
6971
6971
|
window.UserLeap.debugMode && console.info("[DEBUG] Sprig debug mode enabled");
|
|
6972
|
-
const s =
|
|
6972
|
+
const s = Eu(), i = window.UserLeap.sampleRate;
|
|
6973
6973
|
let a = s.sampled;
|
|
6974
6974
|
if (i) {
|
|
6975
6975
|
if (a === null && (a = Math.random() < i, Ie("sampled", a)), !a) return;
|
|
@@ -6979,7 +6979,7 @@ function pg(e = {}) {
|
|
|
6979
6979
|
window.UserLeap._queue = new Zf(window.UserLeap, []), window.UserLeap._queue.pause();
|
|
6980
6980
|
for (let k = 0; k < o.length; k++) window.UserLeap._queue.push(o[k]);
|
|
6981
6981
|
const l = s.token;
|
|
6982
|
-
l ? (window.UserLeap.token = l, window.UserLeap.visitorId = s.vid ?? null, window.UserLeap.userId = s.uid ?? null, window.UserLeap.partnerAnonymousId = s.aid ?? null) :
|
|
6982
|
+
l ? (window.UserLeap.token = l, window.UserLeap.visitorId = s.vid ?? null, window.UserLeap.userId = s.uid ?? null, window.UserLeap.partnerAnonymousId = s.aid ?? null) : xu();
|
|
6983
6983
|
const c = pr(Ue(window.UserLeap));
|
|
6984
6984
|
(p = window.SprigLoggerCallback) == null || p.call(window, "Sprig fetching config");
|
|
6985
6985
|
const u = await async function(k) {
|
|
@@ -6995,7 +6995,7 @@ function pg(e = {}) {
|
|
|
6995
6995
|
var m;
|
|
6996
6996
|
await Be(Ae("1", [st], "metrics"), { body: k, method: "POST", headers: { "x-ul-replay-enabled": `${!!((m = te.replay) != null && m.isReplayRecording())}` }, shouldDropOnRateLimit: !0 });
|
|
6997
6997
|
} }), !c) {
|
|
6998
|
-
const k = u.alwaysOnReplay ? { userAgent: window.navigator.userAgent, surveyId: u.alwaysOnReplay.surveyId, responseGroupUuid: u.alwaysOnReplay.responseGroupUuid, sdkVersion: "2.36.
|
|
6998
|
+
const k = u.alwaysOnReplay ? { userAgent: window.navigator.userAgent, surveyId: u.alwaysOnReplay.surveyId, responseGroupUuid: u.alwaysOnReplay.responseGroupUuid, sdkVersion: "2.36.1", maxDurationSeconds: u.alwaysOnReplay.maxDurationSeconds } : void 0;
|
|
6999
6999
|
await ((y = te.replay) == null ? void 0 : y.initializeReplay({ maxReplayDurationSeconds: u.maxReplayDurationSeconds, maxInflightRequests: window.UserLeap.maxInflightReplayRequests ?? 2, replaySettings: u.replaySettings, apiUrl: window.UserLeap._API_URL, alwaysOnConfig: k })), no = u.replaySettings;
|
|
7000
7000
|
}
|
|
7001
7001
|
ug(u), await cg(u), window.UserLeap._queue.unpause(), (h = window.SprigLoggerCallback) == null || h.call(window, "SdkReady"), z.emit(B.SDKReady, { mobileMetricsReportingEnabled: !!u.mobileMetricsReportingEnabled, metricsReportingInterval: u.metricsReportingIntervalSeconds || 0, metricsThresholds: u.metricThresholds || [], maxMobileReplayDurationSeconds: u.maxMobileReplayDurationSeconds, mobileReplaySettings: u.mobileReplaySettings }), z.emit(B.VisitorIDUpdated, { visitorId: window.UserLeap.visitorId }), z.on(B.VisitorIDUpdated, () => {
|
|
@@ -7240,8 +7240,8 @@ const bg = "sprigReplayIframeLoaded", Sg = "sprigReplayIframeSettings", Ig = "sp
|
|
|
7240
7240
|
n.position = kg(r);
|
|
7241
7241
|
}
|
|
7242
7242
|
return "/" + t.reverse().map((r) => r.position !== null ? `/${r.name}[${r.position}]` : `/${r.name}`).join("");
|
|
7243
|
-
}, io = (e) => e && e.trim().substring(0, 500).replace(/\s\s+/g, " ").replace(/\r?\n|\r/g, " ").substring(0, 250), je = { capture: !0, passive: !0 },
|
|
7244
|
-
let An = !1,
|
|
7243
|
+
}, io = (e) => e && e.trim().substring(0, 500).replace(/\s\s+/g, " ").replace(/\r?\n|\r/g, " ").substring(0, 250), je = { capture: !0, passive: !0 }, Eg = ["a", "button", "input", "option", "li", "link"], xg = ["Escape", "Enter", "Backspace", "F5", "Tab"];
|
|
7244
|
+
let An = !1, Ee = null, dn = null;
|
|
7245
7245
|
const al = (e) => {
|
|
7246
7246
|
var r;
|
|
7247
7247
|
if (((r = e.tagName) == null ? void 0 : r.toLowerCase()) === "html") return { element: "html" };
|
|
@@ -7255,7 +7255,7 @@ const al = (e) => {
|
|
|
7255
7255
|
var n;
|
|
7256
7256
|
if (!e) return {};
|
|
7257
7257
|
const t = { ...al(e) }, r = e.parentElement;
|
|
7258
|
-
if (r &&
|
|
7258
|
+
if (r && Eg.includes((n = r.tagName) == null ? void 0 : n.toLowerCase())) {
|
|
7259
7259
|
const s = al(r);
|
|
7260
7260
|
Object.assign(t, s);
|
|
7261
7261
|
}
|
|
@@ -7264,16 +7264,16 @@ const al = (e) => {
|
|
|
7264
7264
|
var s, i;
|
|
7265
7265
|
let r = t.target;
|
|
7266
7266
|
var n;
|
|
7267
|
-
t.target === ((s = window.document) == null ? void 0 : s.body) && window.Sprig.pointerDownTarget && (r = window.Sprig.pointerDownTarget), n = { x: t.x, y: t.y, type: e, elementAttributes: Rg(r), windowHeight: window.innerHeight, windowWidth: window.innerWidth, ...r instanceof HTMLElement ? { rect: r == null ? void 0 : r.getBoundingClientRect(), xPath: Uu(r) } : {} }, (i = n == null ? void 0 : n.elementAttributes) != null && i.text && (n.elementAttributes.text = io(n.elementAttributes.text)),
|
|
7267
|
+
t.target === ((s = window.document) == null ? void 0 : s.body) && window.Sprig.pointerDownTarget && (r = window.Sprig.pointerDownTarget), n = { x: t.x, y: t.y, type: e, elementAttributes: Rg(r), windowHeight: window.innerHeight, windowWidth: window.innerWidth, ...r instanceof HTMLElement || r instanceof SVGElement || r instanceof MathMLElement ? { rect: r == null ? void 0 : r.getBoundingClientRect(), xPath: Uu(r) } : {} }, (i = n == null ? void 0 : n.elementAttributes) != null && i.text && (n.elementAttributes.text = io(n.elementAttributes.text)), Ee == null || Ee("Sprig_Click", n);
|
|
7268
7268
|
}, Du = (e) => {
|
|
7269
7269
|
var t;
|
|
7270
|
-
|
|
7270
|
+
xg.includes(e.key) && (t = { key: e.key }, Ee == null || Ee("Sprig_Keystroke", t));
|
|
7271
7271
|
}, Lg = () => {
|
|
7272
7272
|
var e;
|
|
7273
|
-
window.performance.getEntriesByType("navigation").map((t) => t.type).includes("reload") && (e = { url: window.location.href, currentPageTitle: document.title },
|
|
7273
|
+
window.performance.getEntriesByType("navigation").map((t) => t.type).includes("reload") && (e = { url: window.location.href, currentPageTitle: document.title }, Ee == null || Ee("Sprig_Refresh", e));
|
|
7274
7274
|
}, Og = () => {
|
|
7275
7275
|
var e;
|
|
7276
|
-
window.performance.getEntriesByType("navigation").map((t) => t.type).includes("back_forward") && ((e = { curUrl: window.location.href, fromUrl: document.referrer, currentPageTitle: document.title }).currentPageTitle && (e.currentPageTitle = io(e.currentPageTitle)),
|
|
7276
|
+
window.performance.getEntriesByType("navigation").map((t) => t.type).includes("back_forward") && ((e = { curUrl: window.location.href, fromUrl: document.referrer, currentPageTitle: document.title }).currentPageTitle && (e.currentPageTitle = io(e.currentPageTitle)), Ee == null || Ee("Sprig_BackForward", e));
|
|
7277
7277
|
}, Pu = /* @__PURE__ */ ((e, t) => {
|
|
7278
7278
|
let r;
|
|
7279
7279
|
return (n) => {
|
|
@@ -7468,14 +7468,16 @@ const Q = new class {
|
|
|
7468
7468
|
await r.done;
|
|
7469
7469
|
}
|
|
7470
7470
|
}(), Ke = [];
|
|
7471
|
-
let wr, ju,
|
|
7472
|
-
const
|
|
7473
|
-
|
|
7471
|
+
let wr, ju, mt = [], Ut = !1, At = 0, pn = !1, Wu = !1;
|
|
7472
|
+
const oo = [];
|
|
7473
|
+
let Un, Vu, hn, Gu, Ss = !1;
|
|
7474
|
+
const Tt = () => pn && !Ut && Date.now() <= Un, Tg = ({ apiUrl: e, config: t, triggerSnapshot: r, forceInit: n = !1 }) => {
|
|
7475
|
+
pn && !n || (ce.isStorageAvailable ? (mt = [], oo.splice(0), Ke.splice(0), At = 0, hn = r, ju = e, wr = { responseGroupUuid: t.responseGroupUuid, surveyId: t.surveyId, userAgent: t.userAgent, sdkVersion: t.sdkVersion }, Vu = t.maxDurationSeconds, Ng(), pn || (Gu = window.setInterval(_g, 500)), pn = !0) : Ut = !0);
|
|
7474
7476
|
}, Dg = [He.Drag, He.Input, He.MediaInteraction, He.MouseInteraction, He.MouseMove, He.Scroll, He.Selection, He.TouchMove], Pg = (e) => e.type === it.Custom || e.type === it.IncrementalSnapshot && Dg.includes(e.data.source), ao = (e) => e.some(Pg), _g = async () => {
|
|
7475
|
-
if (!Tt()) return void window.clearInterval(
|
|
7477
|
+
if (!Tt()) return void window.clearInterval(Gu);
|
|
7476
7478
|
if (Hu(), !ao(Ke)) return;
|
|
7477
7479
|
const e = Ke[0].timestamp;
|
|
7478
|
-
Date.now() - e > 35e3 && (
|
|
7480
|
+
Date.now() - e > 35e3 && (hn == null || hn());
|
|
7479
7481
|
}, Hu = async () => {
|
|
7480
7482
|
if (mt.length || Ss) return;
|
|
7481
7483
|
Ss = !0;
|
|
@@ -7488,7 +7490,7 @@ const Tt = () => hn && !Ut && Date.now() <= Un, Tg = ({ apiUrl: e, config: t, tr
|
|
|
7488
7490
|
_.info("Read stored session state", e);
|
|
7489
7491
|
const t = JSON.parse(e);
|
|
7490
7492
|
Ut = t.disabled, wr = t.metadata, mt = t.uploadUrls, At = t.currentIndex, Un = t.expirationTimestamp, t.pendingEventTimestamp && (_.info(`Uploading with pending timestamp: ${t.pendingEventTimestamp}`), Fg(t.pendingEventTimestamp));
|
|
7491
|
-
} else Un = 1e3 *
|
|
7493
|
+
} else Un = 1e3 * Vu + Date.now();
|
|
7492
7494
|
}, Fg = async (e) => {
|
|
7493
7495
|
const t = Date.now(), r = (await Q.getEventsBetween(e, t)).map((s) => JSON.parse(s.event));
|
|
7494
7496
|
if (!ao(r)) return;
|
|
@@ -7529,7 +7531,7 @@ const Tt = () => hn && !Ut && Date.now() <= Un, Tg = ({ apiUrl: e, config: t, tr
|
|
|
7529
7531
|
const t = e.length ? e[e.length - 1].timestamp : Date.now(), r = At, n = ((i = (s = window.UserLeap) == null ? void 0 : s.config) == null ? void 0 : i.customMetadata) ?? ((a = window.__cfg) == null ? void 0 : a.customMetadata);
|
|
7530
7532
|
At++, e.push({ timestamp: t, type: it.Custom, data: { tag: "Sprig_Meta", payload: { ...wr, index: r, visitorId: window.UserLeap.visitorId ?? "", timestamp: t, customMetadata: n } } });
|
|
7531
7533
|
}, zg = (e, t) => {
|
|
7532
|
-
Tt() && !
|
|
7534
|
+
Tt() && !Wu && (e || Ke.length) && (e && Ke.length && (async () => {
|
|
7533
7535
|
const r = Ke.splice(0);
|
|
7534
7536
|
if (!ao(r)) return;
|
|
7535
7537
|
_.info("Capturing always-on event array to upload"), Ju(r);
|
|
@@ -7538,7 +7540,7 @@ const Tt = () => hn && !Ut && Date.now() <= Un, Tg = ({ apiUrl: e, config: t, tr
|
|
|
7538
7540
|
})(), Ke.push(t));
|
|
7539
7541
|
};
|
|
7540
7542
|
window.addEventListener("beforeunload", async () => {
|
|
7541
|
-
|
|
7543
|
+
Wu = !0, Tt() && (_.info("Always On handle page unload"), (() => {
|
|
7542
7544
|
let e;
|
|
7543
7545
|
Ke.length && (e = Ke[0].timestamp);
|
|
7544
7546
|
const t = { disabled: Ut, metadata: wr, uploadUrls: mt, currentIndex: At, pendingEventTimestamp: e, expirationTimestamp: Un };
|
|
@@ -7566,7 +7568,7 @@ const Zu = async (e, t) => {
|
|
|
7566
7568
|
s || (s = We(t)), s.report(n / 1e3);
|
|
7567
7569
|
}
|
|
7568
7570
|
};
|
|
7569
|
-
let Xu = 5e3,
|
|
7571
|
+
let Xu = 5e3, Ei = 6e4, xi = 0, at, Ri = !1, Li = [];
|
|
7570
7572
|
const jg = (e) => {
|
|
7571
7573
|
var t, r, n, s;
|
|
7572
7574
|
if ((t = e.event) != null && t.includes("Sprig_Scroll")) {
|
|
@@ -7658,8 +7660,8 @@ const Oi = async (e = !1) => {
|
|
|
7658
7660
|
let a = null;
|
|
7659
7661
|
const o = new CompressionStream("gzip"), l = o.writable.getWriter();
|
|
7660
7662
|
let c = !1, u = !1, [d, p] = [0, 0], f = [];
|
|
7661
|
-
for (let h = n - 35e3; h < s; h +=
|
|
7662
|
-
if ({ validStartFound: u, events: f } = await Hg(h, n, s, u,
|
|
7663
|
+
for (let h = n - 35e3; h < s; h += Ei) {
|
|
7664
|
+
if ({ validStartFound: u, events: f } = await Hg(h, n, s, u, Ei), !(f != null && f.length)) {
|
|
7663
7665
|
_.debug("NoEventsFound");
|
|
7664
7666
|
continue;
|
|
7665
7667
|
}
|
|
@@ -7714,9 +7716,9 @@ const Oi = async (e = !1) => {
|
|
|
7714
7716
|
if (Ve()) return;
|
|
7715
7717
|
const { isHeatmap: t, surveyId: r } = e, n = await Q.getPendingCaptures(), s = n == null ? void 0 : n.filter((l) => l.captureParams.surveyId === r);
|
|
7716
7718
|
if (s != null && s.length) return void _.info("PendingCaptureExists", { surveyId: r });
|
|
7717
|
-
t && (ki(), ce.setItem("sprig.isCapturingHeatmap", "true"),
|
|
7719
|
+
t && (ki(), ce.setItem("sprig.isCapturingHeatmap", "true"), xi = Date.now(), de.inactivityInterval || (de.inactivityInterval = window.setInterval(() => {
|
|
7718
7720
|
var l;
|
|
7719
|
-
l =
|
|
7721
|
+
l = xi, Date.now() - l >= 3e4 && ke(() => Q.markPendingHeatmapsReady(), "Error in heatmap inactivity");
|
|
7720
7722
|
}, 1e3)));
|
|
7721
7723
|
const i = { ...e, replayParams: { ...e.replayParams } };
|
|
7722
7724
|
e.replayParams.replayDurationType === "beforeAndAfter" && (i.replayParams.replayDurationSeconds *= 2), i.replayParams.replayDurationType = "before";
|
|
@@ -7764,14 +7766,14 @@ const Oi = async (e = !1) => {
|
|
|
7764
7766
|
if (!o) return _.debug("MissingDuration");
|
|
7765
7767
|
_.debug("ReplayInit"), await ke(async () => {
|
|
7766
7768
|
var l;
|
|
7767
|
-
r != null && r.minDuration && (Xu = r.minDuration), r != null && r.batchDuration && (
|
|
7768
|
-
const c = window.UserLeap.replayLibraryURL ?? "https://cdn.sprig.com/dependencies/record
|
|
7769
|
+
r != null && r.minDuration && (Xu = r.minDuration), r != null && r.batchDuration && (Ei = r.batchDuration), l = t, Au.setLimit(l), $g(), Vg(o + 35, 1800, o + 35), Gg();
|
|
7770
|
+
const c = window.UserLeap.replayLibraryURL ?? "https://cdn.sprig.com/dependencies/record.min.js", u = window.rrwebRecord;
|
|
7769
7771
|
if (!u) return _.error("RecordScriptFailed");
|
|
7770
7772
|
let d = !0, p = 0;
|
|
7771
|
-
const f = { checkoutEveryNms: 3e4, sampling: { input: "last", scroll: 250, media: 800 }, ...r };
|
|
7773
|
+
const f = { checkoutEveryNms: 3e4, sampling: { input: "last", scroll: 250, media: 800 }, ...r, mutationQueueEnabled: r == null ? void 0 : r.enableMutationQueue };
|
|
7772
7774
|
var y, h;
|
|
7773
7775
|
de.stopRecording = u({ emit: (k, m) => {
|
|
7774
|
-
if (k.type === it.Custom && (
|
|
7776
|
+
if (k.type === it.Custom && (xi = Date.now()), Ve() || Mn()) return;
|
|
7775
7777
|
if (m && k.type === it.Meta) p = performance.now();
|
|
7776
7778
|
else if (m && p && k.type === it.FullSnapshot) {
|
|
7777
7779
|
const v = performance.now() - p;
|
|
@@ -7787,7 +7789,7 @@ const Oi = async (e = !1) => {
|
|
|
7787
7789
|
})(f, c), z.on("survey.complete", (k) => {
|
|
7788
7790
|
var m;
|
|
7789
7791
|
m = { id: k, userAgent: window.navigator.userAgent }, Ye("Sprig_SubmitSurvey", m);
|
|
7790
|
-
}), y = Ye, h = Ag, An || (
|
|
7792
|
+
}), y = Ye, h = Ag, An || (Ee = y, dn = h, window.addEventListener("click", _u, je), window.addEventListener("pointerdown", Fu, je), window.addEventListener("mousedown", Nu, je), window.addEventListener("keydown", Du, je), window.addEventListener("scroll", Pu, je), An = !0, Lg(), Og()));
|
|
7791
7793
|
}, "Error initializing replay");
|
|
7792
7794
|
}, isReplayPaused: Mn, isReplayRecording: () => de.isRecording, recordFullSnapshot: ki, recordReplayPaused: () => {
|
|
7793
7795
|
Ye("Sprig_ReplayPaused", { timestamp: Date.now() }), ce.setItem("sprig.isReplayPaused", "true");
|