@spectosh/browser 0.2.5 → 0.3.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/README.md +3 -1
- package/dist/point-B777VT29.js +1418 -0
- package/dist/point-rS_lg9Ro.cjs +252 -0
- package/dist/react.cjs +1 -1
- package/dist/react.js +35 -28
- package/dist/specto-browser.cjs +1 -1
- package/dist/specto-browser.js +1 -2
- package/dist/src-BfP2ol_O.cjs +138 -0
- package/dist/{src-D-1ogCCr.js → src-oKUp2jmR.js} +1460 -1204
- package/package.json +7 -5
- package/src/index.js +19 -3
- package/src/point/context.js +61 -0
- package/src/point/describe.js +241 -0
- package/src/point/entry.js +475 -0
- package/src/point/index.js +858 -0
- package/src/point/trigger.js +198 -0
- package/src/point/voice.js +131 -0
- package/src/react.js +9 -3
- package/src/recorder.js +103 -25
- package/src/scrub.js +15 -0
- package/types/index.d.ts +40 -1
- package/types/react.d.ts +3 -1
- package/dist/src-DyiwhKUe.cjs +0 -138
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/rrweb@2.1.
|
|
1
|
+
//#region ../../node_modules/.pnpm/rrweb@2.1.7/node_modules/rrweb/dist/rrweb.js
|
|
2
2
|
var e = Object.defineProperty, t = (t, n, r) => n in t ? e(t, n, {
|
|
3
3
|
enumerable: !0,
|
|
4
4
|
configurable: !0,
|
|
@@ -89,19 +89,19 @@ function C(e) {
|
|
|
89
89
|
function w(e) {
|
|
90
90
|
return m("Node", e, "nextSibling");
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function T(e) {
|
|
93
93
|
return m("Node", e, "previousSibling");
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function E(e, t) {
|
|
96
96
|
return g("Node", e, "contains")(t);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function D(e) {
|
|
99
99
|
return g("Node", e, "getRootNode")();
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function O(e) {
|
|
102
102
|
return !e || !("host" in e) ? null : m("ShadowRoot", e, "host");
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function ee(e) {
|
|
105
105
|
return e.styleSheets;
|
|
106
106
|
}
|
|
107
107
|
function k(e) {
|
|
@@ -110,10 +110,10 @@ function k(e) {
|
|
|
110
110
|
function te(e, t) {
|
|
111
111
|
return m("Element", e, "querySelector")(t);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function A(e, t) {
|
|
114
114
|
return m("Element", e, "querySelectorAll")(t);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function ne() {
|
|
117
117
|
return [f("MutationObserver").constructor, u.MutationObserver ?? (() => {})];
|
|
118
118
|
}
|
|
119
119
|
var re = Date.now;
|
|
@@ -141,52 +141,52 @@ var j = {
|
|
|
141
141
|
firstChild: S,
|
|
142
142
|
lastChild: C,
|
|
143
143
|
nextSibling: w,
|
|
144
|
-
previousSibling:
|
|
145
|
-
contains:
|
|
146
|
-
getRootNode:
|
|
147
|
-
host:
|
|
148
|
-
styleSheets:
|
|
144
|
+
previousSibling: T,
|
|
145
|
+
contains: E,
|
|
146
|
+
getRootNode: D,
|
|
147
|
+
host: O,
|
|
148
|
+
styleSheets: ee,
|
|
149
149
|
shadowRoot: k,
|
|
150
150
|
querySelector: te,
|
|
151
|
-
querySelectorAll:
|
|
151
|
+
querySelectorAll: A,
|
|
152
152
|
nowTimestamp: re,
|
|
153
|
-
mutationObserverCtor:
|
|
153
|
+
mutationObserverCtor: ne,
|
|
154
154
|
patch: ie
|
|
155
155
|
};
|
|
156
|
-
function
|
|
156
|
+
function ae(e) {
|
|
157
157
|
return e.nodeType === e.ELEMENT_NODE;
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function oe(e) {
|
|
160
160
|
let t = e && "host" in e && "mode" in e && j.host(e) || null;
|
|
161
161
|
return !!(t && "shadowRoot" in t && j.shadowRoot(t) === e);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function M(e) {
|
|
164
164
|
return Object.prototype.toString.call(e) === "[object ShadowRoot]";
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function se(e) {
|
|
167
167
|
return e.includes(" background-clip: text;") && !e.includes(" -webkit-background-clip: text;") && (e = e.replace(/\sbackground-clip:\s*text;/g, " -webkit-background-clip: text; background-clip: text;")), e;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function ce(e) {
|
|
170
170
|
let { cssText: t } = e;
|
|
171
171
|
if (t.split("\"").length < 3) return t;
|
|
172
172
|
let n = ["@import", `url(${JSON.stringify(e.href)})`];
|
|
173
173
|
return e.layerName === "" ? n.push("layer") : e.layerName && n.push(`layer(${e.layerName})`), e.supportsText && n.push(`supports(${e.supportsText})`), e.media.length && n.push(e.media.mediaText), n.join(" ") + ";";
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function N(e) {
|
|
176
176
|
try {
|
|
177
177
|
let t = e.rules || e.cssRules;
|
|
178
178
|
if (!t) return null;
|
|
179
179
|
let n = e.href;
|
|
180
|
-
return !n && e.ownerNode && (n = e.ownerNode.baseURI),
|
|
180
|
+
return !n && e.ownerNode && (n = e.ownerNode.baseURI), se(Array.from(t, (e) => P(e, n)).join(""));
|
|
181
181
|
} catch {
|
|
182
182
|
return null;
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
if (
|
|
185
|
+
function P(e, t) {
|
|
186
|
+
if (ue(e)) {
|
|
187
187
|
let t;
|
|
188
188
|
try {
|
|
189
|
-
t =
|
|
189
|
+
t = N(e.styleSheet) || ce(e);
|
|
190
190
|
} catch {
|
|
191
191
|
t = e.cssText;
|
|
192
192
|
}
|
|
@@ -194,19 +194,19 @@ function F(e, t) {
|
|
|
194
194
|
}
|
|
195
195
|
{
|
|
196
196
|
let n = e.cssText;
|
|
197
|
-
return
|
|
197
|
+
return de(e) && e.selectorText.includes(":") && (n = le(n)), t ? we(n, t) : n;
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function le(e) {
|
|
201
201
|
return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm, "$1\\$2");
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function ue(e) {
|
|
204
204
|
return "styleSheet" in e;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function de(e) {
|
|
207
207
|
return "selectorText" in e;
|
|
208
208
|
}
|
|
209
|
-
var
|
|
209
|
+
var fe = class {
|
|
210
210
|
constructor() {
|
|
211
211
|
a(this, "idNodeMap", /* @__PURE__ */ new Map()), a(this, "nodeMetaMap", /* @__PURE__ */ new WeakMap());
|
|
212
212
|
}
|
|
@@ -248,8 +248,8 @@ var de = class {
|
|
|
248
248
|
this.idNodeMap = /* @__PURE__ */ new Map(), this.nodeMetaMap = /* @__PURE__ */ new WeakMap();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
function
|
|
252
|
-
return new
|
|
251
|
+
function F() {
|
|
252
|
+
return new fe();
|
|
253
253
|
}
|
|
254
254
|
function pe({ element: e, maskInputOptions: t, tagName: n, type: r, value: i, maskInputFn: a }) {
|
|
255
255
|
let o = i || "", s = r && me(r);
|
|
@@ -299,15 +299,16 @@ function we(e, t) {
|
|
|
299
299
|
return `url(${c}${d.join("/")}${u}${c})`;
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
|
-
|
|
303
|
-
|
|
302
|
+
var Te = "(?:/\\*[^*]*\\*/)|[\\s;]", Ee = RegExp(`${Te}|\\b(0)px?`, "g"), De = new RegExp(Te, "g");
|
|
303
|
+
function Oe(e, t = !1) {
|
|
304
|
+
return t ? e.replace(De, "") : e.replace(Ee, "$1");
|
|
304
305
|
}
|
|
305
|
-
function
|
|
306
|
+
function ke(e, t, n = !1) {
|
|
306
307
|
let r = Array.from(t.childNodes), i = [], a = 0;
|
|
307
308
|
if (r.length > 1 && e && typeof e == "string") {
|
|
308
|
-
let t =
|
|
309
|
+
let t = Oe(e, n), o = t.length / e.length;
|
|
309
310
|
for (let s = 1; s < r.length; s++) if (r[s].textContent && typeof r[s].textContent == "string") {
|
|
310
|
-
let c =
|
|
311
|
+
let c = Oe(r[s].textContent, n), l = 3;
|
|
311
312
|
for (; l < c.length && (c[l].match(/[a-zA-Z0-9]/) || c.indexOf(c.substring(0, l), 1) !== -1); l++);
|
|
312
313
|
for (; l < c.length; l++) {
|
|
313
314
|
let u = c.substring(0, l), d = t.split(u), f = -1;
|
|
@@ -320,7 +321,7 @@ function Ee(e, t, n = !1) {
|
|
|
320
321
|
if (d.length >= 2 && l > 100) {
|
|
321
322
|
let e = r[s - 1].textContent;
|
|
322
323
|
if (e && typeof e == "string") {
|
|
323
|
-
let n =
|
|
324
|
+
let n = Oe(e).length;
|
|
324
325
|
f = t.indexOf(u, n);
|
|
325
326
|
}
|
|
326
327
|
f === -1 && (f = d[0].length);
|
|
@@ -329,7 +330,7 @@ function Ee(e, t, n = !1) {
|
|
|
329
330
|
let s = Math.floor(f / o);
|
|
330
331
|
for (; s > 0 && s < e.length;) {
|
|
331
332
|
if (a += 1, a > 50 * r.length) return i.push(e), i;
|
|
332
|
-
let c =
|
|
333
|
+
let c = Oe(e.substring(0, s), n);
|
|
333
334
|
if (c.length === f) {
|
|
334
335
|
i.push(e.substring(0, s)), e = e.substring(s), t = t.substring(f);
|
|
335
336
|
break;
|
|
@@ -343,20 +344,20 @@ function Ee(e, t, n = !1) {
|
|
|
343
344
|
}
|
|
344
345
|
return i.push(e), i;
|
|
345
346
|
}
|
|
346
|
-
function
|
|
347
|
-
return
|
|
347
|
+
function Ae(e, t) {
|
|
348
|
+
return ke(e, t).join("/* rr_split */");
|
|
348
349
|
}
|
|
349
|
-
var
|
|
350
|
-
function
|
|
351
|
-
return
|
|
350
|
+
var je = 1, Me = /* @__PURE__ */ RegExp("[^a-z0-9-_:]"), Ne = -2;
|
|
351
|
+
function Pe() {
|
|
352
|
+
return je++;
|
|
352
353
|
}
|
|
353
|
-
function
|
|
354
|
+
function Fe(e) {
|
|
354
355
|
if (e instanceof HTMLFormElement) return "form";
|
|
355
356
|
let t = me(e.tagName);
|
|
356
|
-
return
|
|
357
|
+
return Me.test(t) ? "div" : t;
|
|
357
358
|
}
|
|
358
|
-
var
|
|
359
|
-
function
|
|
359
|
+
var Ie, Le, Re = /^[^ \t\n\r\u000c]+/, ze = /^[, \t\n\r\u000c]+/;
|
|
360
|
+
function Be(e, t) {
|
|
360
361
|
if (t.trim() === "") return t;
|
|
361
362
|
let n = 0;
|
|
362
363
|
function r(e) {
|
|
@@ -364,12 +365,12 @@ function Le(e, t) {
|
|
|
364
365
|
return i ? (r = i[0], n += r.length, r) : "";
|
|
365
366
|
}
|
|
366
367
|
let i = [];
|
|
367
|
-
for (; r(
|
|
368
|
-
let a = r(
|
|
369
|
-
if (a.slice(-1) === ",") a =
|
|
368
|
+
for (; r(ze), !(n >= t.length);) {
|
|
369
|
+
let a = r(Re);
|
|
370
|
+
if (a.slice(-1) === ",") a = He(e, a.substring(0, a.length - 1)), i.push(a);
|
|
370
371
|
else {
|
|
371
372
|
let r = "";
|
|
372
|
-
a =
|
|
373
|
+
a = He(e, a);
|
|
373
374
|
let o = !1;
|
|
374
375
|
for (;;) {
|
|
375
376
|
let e = t.charAt(n);
|
|
@@ -391,30 +392,30 @@ function Le(e, t) {
|
|
|
391
392
|
}
|
|
392
393
|
return i.join(", ");
|
|
393
394
|
}
|
|
394
|
-
var
|
|
395
|
-
function
|
|
396
|
-
return !t || t.trim() === "" ? t :
|
|
395
|
+
var Ve = /* @__PURE__ */ new WeakMap();
|
|
396
|
+
function He(e, t) {
|
|
397
|
+
return !t || t.trim() === "" ? t : We(e, t);
|
|
397
398
|
}
|
|
398
|
-
function
|
|
399
|
+
function Ue(e) {
|
|
399
400
|
return !!(e.tagName === "svg" || e.ownerSVGElement);
|
|
400
401
|
}
|
|
401
|
-
function
|
|
402
|
-
let n =
|
|
403
|
-
if (n || (n = e.createElement("a"),
|
|
402
|
+
function We(e, t) {
|
|
403
|
+
let n = Ve.get(e);
|
|
404
|
+
if (n || (n = e.createElement("a"), Ve.set(e, n)), !t) t = "";
|
|
404
405
|
else if (t.startsWith("blob:") || t.startsWith("data:")) return t;
|
|
405
406
|
return n.setAttribute("href", t), n.href;
|
|
406
407
|
}
|
|
407
|
-
function
|
|
408
|
+
function Ge(e, t, n, r) {
|
|
408
409
|
return r && (n === "src" || n === "href" && (t !== "use" || r[0] !== "#") || n === "xlink:href" && r[0] !== "#" || n === "background" && [
|
|
409
410
|
"table",
|
|
410
411
|
"td",
|
|
411
412
|
"th"
|
|
412
|
-
].includes(t) ?
|
|
413
|
+
].includes(t) ? He(e, r) : n === "srcset" ? Be(e, r) : n === "style" ? we(r, We(e)) : t === "object" && n === "data" ? He(e, r) : r);
|
|
413
414
|
}
|
|
414
|
-
function
|
|
415
|
+
function Ke(e, t, n) {
|
|
415
416
|
return ["video", "audio"].includes(e) && me(t) === "autoplay";
|
|
416
417
|
}
|
|
417
|
-
function
|
|
418
|
+
function qe(e, t, n) {
|
|
418
419
|
try {
|
|
419
420
|
if (typeof t == "string") {
|
|
420
421
|
if (e.classList.contains(t)) return !0;
|
|
@@ -426,18 +427,18 @@ function We(e, t, n) {
|
|
|
426
427
|
} catch {}
|
|
427
428
|
return !1;
|
|
428
429
|
}
|
|
429
|
-
function
|
|
430
|
+
function Je(e, t, n) {
|
|
430
431
|
if (!e) return !1;
|
|
431
|
-
if (e.nodeType !== e.ELEMENT_NODE) return n ?
|
|
432
|
+
if (e.nodeType !== e.ELEMENT_NODE) return n ? Je(j.parentNode(e), t, n) : !1;
|
|
432
433
|
for (let n = e.classList.length; n--;) {
|
|
433
434
|
let r = e.classList[n];
|
|
434
435
|
if (t.test(r)) return !0;
|
|
435
436
|
}
|
|
436
|
-
return n ?
|
|
437
|
+
return n ? Je(j.parentNode(e), t, n) : !1;
|
|
437
438
|
}
|
|
438
|
-
function
|
|
439
|
+
function Ye(e, t, n, r) {
|
|
439
440
|
let i;
|
|
440
|
-
if (
|
|
441
|
+
if (ae(e)) {
|
|
441
442
|
if (i = e, !j.childNodes(i).length) return !1;
|
|
442
443
|
} else if (j.parentElement(e) === null) return !1;
|
|
443
444
|
else i = j.parentElement(e);
|
|
@@ -446,7 +447,7 @@ function Ke(e, t, n, r) {
|
|
|
446
447
|
if (r) {
|
|
447
448
|
if (i.closest(`.${t}`)) return !0;
|
|
448
449
|
} else if (i.classList.contains(t)) return !0;
|
|
449
|
-
} else if (
|
|
450
|
+
} else if (Je(i, t, r)) return !0;
|
|
450
451
|
if (n) {
|
|
451
452
|
if (r) {
|
|
452
453
|
if (i.closest(n)) return !0;
|
|
@@ -455,7 +456,7 @@ function Ke(e, t, n, r) {
|
|
|
455
456
|
} catch {}
|
|
456
457
|
return !1;
|
|
457
458
|
}
|
|
458
|
-
function
|
|
459
|
+
function Xe(e, t, n) {
|
|
459
460
|
let r = e.contentWindow;
|
|
460
461
|
if (!r) return;
|
|
461
462
|
let i = !1, a;
|
|
@@ -477,7 +478,7 @@ function qe(e, t, n) {
|
|
|
477
478
|
if (r.location.href !== o || e.src === o || e.src === "") return setTimeout(t, 0), e.addEventListener("load", t);
|
|
478
479
|
e.addEventListener("load", t);
|
|
479
480
|
}
|
|
480
|
-
function
|
|
481
|
+
function Ze(e, t, n) {
|
|
481
482
|
let r = !1, i;
|
|
482
483
|
try {
|
|
483
484
|
i = e.sheet;
|
|
@@ -492,8 +493,8 @@ function Je(e, t, n) {
|
|
|
492
493
|
clearTimeout(a), r = !0, t();
|
|
493
494
|
});
|
|
494
495
|
}
|
|
495
|
-
function
|
|
496
|
-
let { doc: n, mirror: r, blockClass: i, blockSelector: a, needsMask: s, inlineStylesheet: c, maskInputOptions: l = {}, maskTextFn: u, maskInputFn: d, dataURLOptions: f = {}, inlineImages: p, recordCanvas: m, keepIframeSrcFn: h, newlyAddedElement: g = !1, cssCaptured: _ = !1 } = t, v =
|
|
496
|
+
function Qe(e, t) {
|
|
497
|
+
let { doc: n, mirror: r, blockClass: i, blockSelector: a, needsMask: s, inlineStylesheet: c, maskInputOptions: l = {}, maskTextFn: u, maskInputFn: d, dataURLOptions: f = {}, inlineImages: p, recordCanvas: m, keepIframeSrcFn: h, newlyAddedElement: g = !1, cssCaptured: _ = !1 } = t, v = $e(n, r);
|
|
497
498
|
switch (e.nodeType) {
|
|
498
499
|
case e.DOCUMENT_NODE: return e.compatMode === "CSS1Compat" ? {
|
|
499
500
|
type: o.Document,
|
|
@@ -510,7 +511,7 @@ function Ye(e, t) {
|
|
|
510
511
|
systemId: e.systemId,
|
|
511
512
|
rootId: v
|
|
512
513
|
};
|
|
513
|
-
case e.ELEMENT_NODE: return
|
|
514
|
+
case e.ELEMENT_NODE: return tt(e, {
|
|
514
515
|
doc: n,
|
|
515
516
|
blockClass: i,
|
|
516
517
|
blockSelector: a,
|
|
@@ -524,7 +525,7 @@ function Ye(e, t) {
|
|
|
524
525
|
newlyAddedElement: g,
|
|
525
526
|
rootId: v
|
|
526
527
|
});
|
|
527
|
-
case e.TEXT_NODE: return
|
|
528
|
+
case e.TEXT_NODE: return et(e, {
|
|
528
529
|
doc: n,
|
|
529
530
|
needsMask: s,
|
|
530
531
|
maskTextFn: u,
|
|
@@ -544,32 +545,32 @@ function Ye(e, t) {
|
|
|
544
545
|
default: return !1;
|
|
545
546
|
}
|
|
546
547
|
}
|
|
547
|
-
function
|
|
548
|
+
function $e(e, t) {
|
|
548
549
|
if (!t.hasNode(e)) return;
|
|
549
550
|
let n = t.getId(e);
|
|
550
551
|
return n === 1 ? void 0 : n;
|
|
551
552
|
}
|
|
552
|
-
function
|
|
553
|
+
function et(e, t) {
|
|
553
554
|
let { needsMask: n, maskTextFn: r, rootId: i, cssCaptured: a } = t, s = j.parentNode(e), c = s && s.tagName, l = "", u = c === "STYLE" || void 0, d = c === "SCRIPT" || void 0;
|
|
554
|
-
return d ? l = "SCRIPT_PLACEHOLDER" : a || (l = j.textContent(e), u && l && (l = we(l,
|
|
555
|
+
return d ? l = "SCRIPT_PLACEHOLDER" : a || (l = j.textContent(e), u && l && (l = we(l, We(t.doc)))), !u && !d && l && n && (l = r ? r(l, j.parentElement(e)) : l.replace(/[\S]/g, "*")), {
|
|
555
556
|
type: o.Text,
|
|
556
557
|
textContent: l || "",
|
|
557
558
|
rootId: i
|
|
558
559
|
};
|
|
559
560
|
}
|
|
560
|
-
function
|
|
561
|
-
let { doc: n, blockClass: r, blockSelector: i, inlineStylesheet: a, maskInputOptions: s = {}, maskInputFn: c, dataURLOptions: l = {}, inlineImages: u, recordCanvas: d, keepIframeSrcFn: f, newlyAddedElement: p = !1, rootId: m } = t, h =
|
|
561
|
+
function tt(e, t) {
|
|
562
|
+
let { doc: n, blockClass: r, blockSelector: i, inlineStylesheet: a, maskInputOptions: s = {}, maskInputFn: c, dataURLOptions: l = {}, inlineImages: u, recordCanvas: d, keepIframeSrcFn: f, newlyAddedElement: p = !1, rootId: m } = t, h = qe(e, r, i), g = Fe(e), _ = {}, v = e.attributes.length;
|
|
562
563
|
for (let t = 0; t < v; t++) {
|
|
563
564
|
let r = e.attributes[t];
|
|
564
|
-
|
|
565
|
+
Ke(g, r.name, r.value) || (_[r.name] = Ge(n, g, me(r.name), r.value));
|
|
565
566
|
}
|
|
566
567
|
if (g === "link" && a) {
|
|
567
568
|
let t = Array.from(n.styleSheets).find((t) => t.href === e.href), r = null;
|
|
568
|
-
t && (r =
|
|
569
|
+
t && (r = N(t)), r && (delete _.rel, delete _.href, _._cssText = r);
|
|
569
570
|
}
|
|
570
571
|
if (g === "style" && e.sheet) {
|
|
571
|
-
let t =
|
|
572
|
-
t && (e.childNodes.length > 1 && (t =
|
|
572
|
+
let t = N(e.sheet);
|
|
573
|
+
t && (e.childNodes.length > 1 && (t = Ae(t, e)), _._cssText = t);
|
|
573
574
|
}
|
|
574
575
|
if ([
|
|
575
576
|
"input",
|
|
@@ -594,11 +595,11 @@ function Qe(e, t) {
|
|
|
594
595
|
}
|
|
595
596
|
}
|
|
596
597
|
if (g === "img" && u) {
|
|
597
|
-
|
|
598
|
+
Ie || (Ie = n.createElement("canvas"), Le = Ie.getContext("2d"));
|
|
598
599
|
let t = e, r = t.currentSrc || t.getAttribute("src") || "<unknown-src>", i = t.crossOrigin, a = () => {
|
|
599
600
|
t.removeEventListener("load", a);
|
|
600
601
|
try {
|
|
601
|
-
|
|
602
|
+
Ie.width = t.naturalWidth, Ie.height = t.naturalHeight, Le.drawImage(t, 0, 0), _.rr_dataURL = Ie.toDataURL(l.type, l.quality);
|
|
602
603
|
} catch (e) {
|
|
603
604
|
if (t.crossOrigin !== "anonymous") {
|
|
604
605
|
t.crossOrigin = "anonymous", t.complete && t.naturalWidth !== 0 ? a() : t.addEventListener("load", a);
|
|
@@ -632,7 +633,7 @@ function Qe(e, t) {
|
|
|
632
633
|
tagName: g,
|
|
633
634
|
attributes: _,
|
|
634
635
|
childNodes: [],
|
|
635
|
-
isSVG:
|
|
636
|
+
isSVG: Ue(e) || void 0,
|
|
636
637
|
needBlock: h,
|
|
637
638
|
rootId: m,
|
|
638
639
|
isCustom: y
|
|
@@ -641,7 +642,7 @@ function Qe(e, t) {
|
|
|
641
642
|
function I(e) {
|
|
642
643
|
return e == null ? "" : e.toLowerCase();
|
|
643
644
|
}
|
|
644
|
-
function
|
|
645
|
+
function nt(e) {
|
|
645
646
|
return e === !0 || e === "all" ? {
|
|
646
647
|
script: !0,
|
|
647
648
|
comment: !0,
|
|
@@ -656,18 +657,18 @@ function $e(e) {
|
|
|
656
657
|
headTitleMutations: e === "all"
|
|
657
658
|
} : e || {};
|
|
658
659
|
}
|
|
659
|
-
function
|
|
660
|
+
function rt(e, t) {
|
|
660
661
|
return !!(t.comment && e.type === o.Comment || e.type === o.Element && (t.script && (e.tagName === "script" || e.tagName === "link" && (e.attributes.rel === "preload" && e.attributes.as === "script" || e.attributes.rel === "modulepreload") || e.tagName === "link" && e.attributes.rel === "prefetch" && typeof e.attributes.href == "string" && ve(e.attributes.href) === "js") || t.headFavicon && (e.tagName === "link" && e.attributes.rel === "shortcut icon" || e.tagName === "meta" && (I(e.attributes.name).match(/^msapplication-tile(image|color)$/) || I(e.attributes.name) === "application-name" || I(e.attributes.rel) === "icon" || I(e.attributes.rel) === "apple-touch-icon" || I(e.attributes.rel) === "shortcut icon")) || e.tagName === "meta" && (t.headMetaDescKeywords && I(e.attributes.name).match(/^description|keywords$/) || t.headMetaSocial && (I(e.attributes.property).match(/^(og|twitter|fb):/) || I(e.attributes.name).match(/^(og|twitter):/) || I(e.attributes.name) === "pinterest") || t.headMetaRobots && (I(e.attributes.name) === "robots" || I(e.attributes.name) === "googlebot" || I(e.attributes.name) === "bingbot") || t.headMetaHttpEquiv && e.attributes["http-equiv"] !== void 0 || t.headMetaAuthorship && (I(e.attributes.name) === "author" || I(e.attributes.name) === "generator" || I(e.attributes.name) === "framework" || I(e.attributes.name) === "publisher" || I(e.attributes.name) === "progid" || I(e.attributes.property).match(/^article:/) || I(e.attributes.property).match(/^product:/)) || t.headMetaVerification && (I(e.attributes.name) === "google-site-verification" || I(e.attributes.name) === "yandex-verification" || I(e.attributes.name) === "csrf-token" || I(e.attributes.name) === "p:domain_verify" || I(e.attributes.name) === "verify-v1" || I(e.attributes.name) === "verification" || I(e.attributes.name) === "shopify-checkout-api-token"))));
|
|
661
662
|
}
|
|
662
|
-
function
|
|
663
|
-
let { doc: n, mirror: r, blockClass: i, blockSelector: a, maskTextClass: s, maskTextSelector: c, skipChild: l = !1, inlineStylesheet: u = !0, maskInputOptions: d = {}, maskTextFn: f, maskInputFn: p, slimDOMOptions: m, dataURLOptions: h = {}, inlineImages: g = !1, recordCanvas: _ = !1, onSerialize: v, onIframeLoad: y, iframeLoadTimeout: b = 5e3, onStylesheetLoad: x, stylesheetLoadTimeout: S = 5e3, keepIframeSrcFn: C = () => !1, newlyAddedElement: w = !1, cssCaptured:
|
|
664
|
-
|
|
665
|
-
let
|
|
663
|
+
function it(e, t) {
|
|
664
|
+
let { doc: n, mirror: r, blockClass: i, blockSelector: a, maskTextClass: s, maskTextSelector: c, skipChild: l = !1, inlineStylesheet: u = !0, maskInputOptions: d = {}, maskTextFn: f, maskInputFn: p, slimDOMOptions: m, dataURLOptions: h = {}, inlineImages: g = !1, recordCanvas: _ = !1, onSerialize: v, onIframeLoad: y, iframeLoadTimeout: b = 5e3, onStylesheetLoad: x, stylesheetLoadTimeout: S = 5e3, keepIframeSrcFn: C = () => !1, newlyAddedElement: w = !1, cssCaptured: T = !1 } = t, { needsMask: E } = t, { preserveWhiteSpace: D = !0 } = t;
|
|
665
|
+
E ||= Ye(e, s, c, E === void 0);
|
|
666
|
+
let O = Qe(e, {
|
|
666
667
|
doc: n,
|
|
667
668
|
mirror: r,
|
|
668
669
|
blockClass: i,
|
|
669
670
|
blockSelector: a,
|
|
670
|
-
needsMask:
|
|
671
|
+
needsMask: E,
|
|
671
672
|
inlineStylesheet: u,
|
|
672
673
|
maskInputOptions: d,
|
|
673
674
|
maskTextFn: f,
|
|
@@ -677,28 +678,28 @@ function tt(e, t) {
|
|
|
677
678
|
recordCanvas: _,
|
|
678
679
|
keepIframeSrcFn: C,
|
|
679
680
|
newlyAddedElement: w,
|
|
680
|
-
cssCaptured:
|
|
681
|
+
cssCaptured: T
|
|
681
682
|
});
|
|
682
|
-
if (!
|
|
683
|
-
let
|
|
684
|
-
|
|
685
|
-
let k = Object.assign(
|
|
686
|
-
if (r.add(e, k),
|
|
683
|
+
if (!O) return console.warn(e, "not serialized"), null;
|
|
684
|
+
let ee;
|
|
685
|
+
ee = r.hasNode(e) ? r.getId(e) : rt(O, m) || !D && O.type === o.Text && !O.textContent.replace(/^\s+|\s+$/gm, "").length ? Ne : Pe();
|
|
686
|
+
let k = Object.assign(O, { id: ee });
|
|
687
|
+
if (r.add(e, k), ee === Ne) return null;
|
|
687
688
|
v && v(e);
|
|
688
689
|
let te = !l;
|
|
689
690
|
if (k.type === o.Element) {
|
|
690
691
|
te &&= !k.needBlock, delete k.needBlock;
|
|
691
692
|
let t = j.shadowRoot(e);
|
|
692
|
-
t &&
|
|
693
|
+
t && M(t) && (k.isShadowHost = !0);
|
|
693
694
|
}
|
|
694
695
|
if ((k.type === o.Document || k.type === o.Element) && te) {
|
|
695
|
-
m.headWhitespace && k.type === o.Element && k.tagName === "head" && (
|
|
696
|
+
m.headWhitespace && k.type === o.Element && k.tagName === "head" && (D = !1);
|
|
696
697
|
let t = {
|
|
697
698
|
doc: n,
|
|
698
699
|
mirror: r,
|
|
699
700
|
blockClass: i,
|
|
700
701
|
blockSelector: a,
|
|
701
|
-
needsMask:
|
|
702
|
+
needsMask: E,
|
|
702
703
|
maskTextClass: s,
|
|
703
704
|
maskTextSelector: c,
|
|
704
705
|
skipChild: l,
|
|
@@ -710,7 +711,7 @@ function tt(e, t) {
|
|
|
710
711
|
dataURLOptions: h,
|
|
711
712
|
inlineImages: g,
|
|
712
713
|
recordCanvas: _,
|
|
713
|
-
preserveWhiteSpace:
|
|
714
|
+
preserveWhiteSpace: D,
|
|
714
715
|
onSerialize: v,
|
|
715
716
|
onIframeLoad: y,
|
|
716
717
|
iframeLoadTimeout: b,
|
|
@@ -722,26 +723,26 @@ function tt(e, t) {
|
|
|
722
723
|
if (k.type !== o.Element || k.tagName !== "textarea" || k.attributes.value === void 0) {
|
|
723
724
|
k.type === o.Element && k.attributes._cssText !== void 0 && typeof k.attributes._cssText == "string" && (t.cssCaptured = !0);
|
|
724
725
|
for (let n of Array.from(j.childNodes(e))) {
|
|
725
|
-
let e =
|
|
726
|
+
let e = it(n, t);
|
|
726
727
|
e && k.childNodes.push(e);
|
|
727
728
|
}
|
|
728
729
|
}
|
|
729
730
|
let w = null;
|
|
730
|
-
if (
|
|
731
|
-
let n =
|
|
732
|
-
n && (
|
|
731
|
+
if (ae(e) && (w = j.shadowRoot(e))) for (let e of Array.from(j.childNodes(w))) {
|
|
732
|
+
let n = it(e, t);
|
|
733
|
+
n && (M(w) && (n.isShadow = !0), k.childNodes.push(n));
|
|
733
734
|
}
|
|
734
735
|
}
|
|
735
|
-
let
|
|
736
|
-
return
|
|
736
|
+
let A = j.parentNode(e);
|
|
737
|
+
return A && oe(A) && M(A) && (k.isShadow = !0), k.type === o.Element && k.tagName === "iframe" && Xe(e, () => {
|
|
737
738
|
let t = e.contentDocument;
|
|
738
739
|
if (t && y) {
|
|
739
|
-
let n =
|
|
740
|
+
let n = it(t, {
|
|
740
741
|
doc: t,
|
|
741
742
|
mirror: r,
|
|
742
743
|
blockClass: i,
|
|
743
744
|
blockSelector: a,
|
|
744
|
-
needsMask:
|
|
745
|
+
needsMask: E,
|
|
745
746
|
maskTextClass: s,
|
|
746
747
|
maskTextSelector: c,
|
|
747
748
|
skipChild: !1,
|
|
@@ -753,7 +754,7 @@ function tt(e, t) {
|
|
|
753
754
|
dataURLOptions: h,
|
|
754
755
|
inlineImages: g,
|
|
755
756
|
recordCanvas: _,
|
|
756
|
-
preserveWhiteSpace:
|
|
757
|
+
preserveWhiteSpace: D,
|
|
757
758
|
onSerialize: v,
|
|
758
759
|
onIframeLoad: y,
|
|
759
760
|
iframeLoadTimeout: b,
|
|
@@ -763,14 +764,14 @@ function tt(e, t) {
|
|
|
763
764
|
});
|
|
764
765
|
n && y(e, n);
|
|
765
766
|
}
|
|
766
|
-
}, b), k.type === o.Element && k.tagName === "link" && typeof k.attributes.rel == "string" && (k.attributes.rel === "stylesheet" || k.attributes.rel === "preload" && typeof k.attributes.href == "string" && ve(k.attributes.href) === "css") &&
|
|
767
|
+
}, b), k.type === o.Element && k.tagName === "link" && typeof k.attributes.rel == "string" && (k.attributes.rel === "stylesheet" || k.attributes.rel === "preload" && typeof k.attributes.href == "string" && ve(k.attributes.href) === "css") && Ze(e, () => {
|
|
767
768
|
if (x) {
|
|
768
|
-
let t =
|
|
769
|
+
let t = it(e, {
|
|
769
770
|
doc: n,
|
|
770
771
|
mirror: r,
|
|
771
772
|
blockClass: i,
|
|
772
773
|
blockSelector: a,
|
|
773
|
-
needsMask:
|
|
774
|
+
needsMask: E,
|
|
774
775
|
maskTextClass: s,
|
|
775
776
|
maskTextSelector: c,
|
|
776
777
|
skipChild: !1,
|
|
@@ -782,7 +783,7 @@ function tt(e, t) {
|
|
|
782
783
|
dataURLOptions: h,
|
|
783
784
|
inlineImages: g,
|
|
784
785
|
recordCanvas: _,
|
|
785
|
-
preserveWhiteSpace:
|
|
786
|
+
preserveWhiteSpace: D,
|
|
786
787
|
onSerialize: v,
|
|
787
788
|
onIframeLoad: y,
|
|
788
789
|
iframeLoadTimeout: b,
|
|
@@ -794,9 +795,9 @@ function tt(e, t) {
|
|
|
794
795
|
}
|
|
795
796
|
}, S), k;
|
|
796
797
|
}
|
|
797
|
-
function
|
|
798
|
-
let { mirror: n = new
|
|
799
|
-
return
|
|
798
|
+
function at(e, t) {
|
|
799
|
+
let { mirror: n = new fe(), blockClass: r = "rr-block", blockSelector: i = null, maskTextClass: a = "rr-mask", maskTextSelector: o = null, inlineStylesheet: s = !0, inlineImages: c = !1, recordCanvas: l = !1, maskAllInputs: u = !1, maskTextFn: d, maskInputFn: f, slimDOM: p = !1, dataURLOptions: m, preserveWhiteSpace: h, onSerialize: g, onIframeLoad: _, iframeLoadTimeout: v, onStylesheetLoad: y, stylesheetLoadTimeout: b, keepIframeSrcFn: x = () => !1 } = t;
|
|
800
|
+
return it(e, {
|
|
800
801
|
doc: e,
|
|
801
802
|
mirror: n,
|
|
802
803
|
blockClass: r,
|
|
@@ -825,7 +826,7 @@ function nt(e, t) {
|
|
|
825
826
|
} : u === !1 ? { password: !0 } : u,
|
|
826
827
|
maskTextFn: d,
|
|
827
828
|
maskInputFn: f,
|
|
828
|
-
slimDOMOptions:
|
|
829
|
+
slimDOMOptions: nt(p),
|
|
829
830
|
dataURLOptions: m,
|
|
830
831
|
inlineImages: c,
|
|
831
832
|
recordCanvas: l,
|
|
@@ -839,10 +840,10 @@ function nt(e, t) {
|
|
|
839
840
|
newlyAddedElement: !1
|
|
840
841
|
});
|
|
841
842
|
}
|
|
842
|
-
function
|
|
843
|
+
function ot(e) {
|
|
843
844
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
844
845
|
}
|
|
845
|
-
function
|
|
846
|
+
function st(e) {
|
|
846
847
|
if (e.__esModule) return e;
|
|
847
848
|
var t = e.default;
|
|
848
849
|
if (typeof t == "function") {
|
|
@@ -861,10 +862,10 @@ function it(e) {
|
|
|
861
862
|
});
|
|
862
863
|
}), n;
|
|
863
864
|
}
|
|
864
|
-
var
|
|
865
|
-
function
|
|
866
|
-
if (
|
|
867
|
-
|
|
865
|
+
var ct = { exports: {} }, lt;
|
|
866
|
+
function ut() {
|
|
867
|
+
if (lt) return ct.exports;
|
|
868
|
+
lt = 1;
|
|
868
869
|
var e = String, t = function() {
|
|
869
870
|
return {
|
|
870
871
|
isColorSupported: !1,
|
|
@@ -895,16 +896,16 @@ function st() {
|
|
|
895
896
|
bgWhite: e
|
|
896
897
|
};
|
|
897
898
|
};
|
|
898
|
-
return
|
|
899
|
+
return ct.exports = t(), ct.exports.createColors = t, ct.exports;
|
|
899
900
|
}
|
|
900
|
-
var L = /* @__PURE__ */
|
|
901
|
+
var L = /* @__PURE__ */ st(/* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
901
902
|
__proto__: null,
|
|
902
903
|
default: {}
|
|
903
|
-
}, Symbol.toStringTag, { value: "Module" }))),
|
|
904
|
-
function
|
|
905
|
-
if (
|
|
906
|
-
|
|
907
|
-
let e = /* @__PURE__ */
|
|
904
|
+
}, Symbol.toStringTag, { value: "Module" }))), dt, ft;
|
|
905
|
+
function pt() {
|
|
906
|
+
if (ft) return dt;
|
|
907
|
+
ft = 1;
|
|
908
|
+
let e = /* @__PURE__ */ ut(), t = L;
|
|
908
909
|
class n extends Error {
|
|
909
910
|
constructor(e, t, r, i, a, o) {
|
|
910
911
|
super(e), this.name = "CssSyntaxError", this.reason = e, a && (this.file = a), i && (this.source = i), o && (this.plugin = o), t !== void 0 && r !== void 0 && (typeof t == "number" ? (this.line = t, this.column = r) : (this.line = t.line, this.column = t.column, this.endLine = r.line, this.endColumn = r.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, n);
|
|
@@ -935,16 +936,16 @@ function ut() {
|
|
|
935
936
|
return e &&= "\n\n" + e + "\n", this.name + ": " + this.message + e;
|
|
936
937
|
}
|
|
937
938
|
}
|
|
938
|
-
return
|
|
939
|
-
}
|
|
940
|
-
var dt = {}, ft;
|
|
941
|
-
function pt() {
|
|
942
|
-
return ft ? dt : (ft = 1, dt.isClean = Symbol("isClean"), dt.my = Symbol("my"), dt);
|
|
939
|
+
return dt = n, n.default = n, dt;
|
|
943
940
|
}
|
|
944
|
-
var mt, ht;
|
|
941
|
+
var mt = {}, ht;
|
|
945
942
|
function gt() {
|
|
946
|
-
|
|
947
|
-
|
|
943
|
+
return ht || (ht = 1, mt.isClean = Symbol("isClean"), mt.my = Symbol("my")), mt;
|
|
944
|
+
}
|
|
945
|
+
var _t, vt;
|
|
946
|
+
function yt() {
|
|
947
|
+
if (vt) return _t;
|
|
948
|
+
vt = 1;
|
|
948
949
|
let e = {
|
|
949
950
|
after: "\n",
|
|
950
951
|
beforeClose: "\n",
|
|
@@ -1102,23 +1103,23 @@ function gt() {
|
|
|
1102
1103
|
this[e.type](e, t);
|
|
1103
1104
|
}
|
|
1104
1105
|
}
|
|
1105
|
-
return
|
|
1106
|
-
}
|
|
1107
|
-
var _t, vt;
|
|
1108
|
-
function yt() {
|
|
1109
|
-
if (vt) return _t;
|
|
1110
|
-
vt = 1;
|
|
1111
|
-
let e = gt();
|
|
1112
|
-
function t(t, n) {
|
|
1113
|
-
new e(n).stringify(t);
|
|
1114
|
-
}
|
|
1115
|
-
return _t = t, t.default = t, _t;
|
|
1106
|
+
return _t = n, n.default = n, _t;
|
|
1116
1107
|
}
|
|
1117
1108
|
var bt, xt;
|
|
1118
1109
|
function St() {
|
|
1119
1110
|
if (xt) return bt;
|
|
1120
1111
|
xt = 1;
|
|
1121
|
-
let
|
|
1112
|
+
let e = yt();
|
|
1113
|
+
function t(t, n) {
|
|
1114
|
+
new e(n).stringify(t);
|
|
1115
|
+
}
|
|
1116
|
+
return bt = t, t.default = t, bt;
|
|
1117
|
+
}
|
|
1118
|
+
var Ct, wt;
|
|
1119
|
+
function Tt() {
|
|
1120
|
+
if (wt) return Ct;
|
|
1121
|
+
wt = 1;
|
|
1122
|
+
let { isClean: e, my: t } = gt(), n = pt(), r = yt(), i = St();
|
|
1122
1123
|
function a(e, t) {
|
|
1123
1124
|
let n = new e.constructor();
|
|
1124
1125
|
for (let r in e) {
|
|
@@ -1188,7 +1189,7 @@ function St() {
|
|
|
1188
1189
|
return t === "proxyOf" ? e : t === "root" ? () => e.root().toProxy() : e[t];
|
|
1189
1190
|
},
|
|
1190
1191
|
set(e, t, n) {
|
|
1191
|
-
return e[t] === n || (e[t] = n, (t === "prop" || t === "value" || t === "name" || t === "params" || t === "important" || t === "text") && e.markDirty(), !0
|
|
1192
|
+
return e[t] === n || (e[t] = n, (t === "prop" || t === "value" || t === "name" || t === "params" || t === "important" || t === "text") && e.markDirty()), !0;
|
|
1192
1193
|
}
|
|
1193
1194
|
};
|
|
1194
1195
|
}
|
|
@@ -1314,13 +1315,13 @@ function St() {
|
|
|
1314
1315
|
return this;
|
|
1315
1316
|
}
|
|
1316
1317
|
}
|
|
1317
|
-
return
|
|
1318
|
+
return Ct = o, o.default = o, Ct;
|
|
1318
1319
|
}
|
|
1319
|
-
var
|
|
1320
|
-
function
|
|
1321
|
-
if (
|
|
1322
|
-
|
|
1323
|
-
let e =
|
|
1320
|
+
var Et, Dt;
|
|
1321
|
+
function Ot() {
|
|
1322
|
+
if (Dt) return Et;
|
|
1323
|
+
Dt = 1;
|
|
1324
|
+
let e = Tt();
|
|
1324
1325
|
class t extends e {
|
|
1325
1326
|
constructor(e) {
|
|
1326
1327
|
e && e.value !== void 0 && typeof e.value != "string" && (e = {
|
|
@@ -1332,11 +1333,11 @@ function Tt() {
|
|
|
1332
1333
|
return this.prop.startsWith("--") || this.prop[0] === "$";
|
|
1333
1334
|
}
|
|
1334
1335
|
}
|
|
1335
|
-
return
|
|
1336
|
+
return Et = t, t.default = t, Et;
|
|
1336
1337
|
}
|
|
1337
|
-
var
|
|
1338
|
-
function
|
|
1339
|
-
return
|
|
1338
|
+
var kt, At;
|
|
1339
|
+
function jt() {
|
|
1340
|
+
return At || (At = 1, kt = {
|
|
1340
1341
|
nanoid: (e = 21) => {
|
|
1341
1342
|
let t = "", n = e;
|
|
1342
1343
|
for (; n--;) t += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[Math.random() * 64 | 0];
|
|
@@ -1347,12 +1348,12 @@ function Ot() {
|
|
|
1347
1348
|
for (; i--;) r += e[Math.random() * e.length | 0];
|
|
1348
1349
|
return r;
|
|
1349
1350
|
}
|
|
1350
|
-
},
|
|
1351
|
+
}), kt;
|
|
1351
1352
|
}
|
|
1352
|
-
var
|
|
1353
|
-
function
|
|
1354
|
-
if (
|
|
1355
|
-
|
|
1353
|
+
var Mt, Nt;
|
|
1354
|
+
function Pt() {
|
|
1355
|
+
if (Nt) return Mt;
|
|
1356
|
+
Nt = 1;
|
|
1356
1357
|
let { SourceMapConsumer: e, SourceMapGenerator: t } = L, { existsSync: n, readFileSync: r } = L, { dirname: i, join: a } = L;
|
|
1357
1358
|
function o(e) {
|
|
1358
1359
|
return Buffer ? Buffer.from(e, "base64").toString() : window.atob(e);
|
|
@@ -1417,13 +1418,13 @@ function jt() {
|
|
|
1417
1418
|
return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
|
|
1418
1419
|
}
|
|
1419
1420
|
}
|
|
1420
|
-
return
|
|
1421
|
+
return Mt = s, s.default = s, Mt;
|
|
1421
1422
|
}
|
|
1422
|
-
var
|
|
1423
|
-
function
|
|
1424
|
-
if (
|
|
1425
|
-
|
|
1426
|
-
let { SourceMapConsumer: e, SourceMapGenerator: t } = L, { fileURLToPath: n, pathToFileURL: r } = L, { isAbsolute: i, resolve: a } = L, { nanoid: o } = /* @__PURE__ */
|
|
1423
|
+
var Ft, It;
|
|
1424
|
+
function Lt() {
|
|
1425
|
+
if (It) return Ft;
|
|
1426
|
+
It = 1;
|
|
1427
|
+
let { SourceMapConsumer: e, SourceMapGenerator: t } = L, { fileURLToPath: n, pathToFileURL: r } = L, { isAbsolute: i, resolve: a } = L, { nanoid: o } = /* @__PURE__ */ jt(), s = L, c = pt(), l = Pt(), u = Symbol("fromOffsetCache"), d = !!(e && t), f = !!(a && i);
|
|
1427
1428
|
class p {
|
|
1428
1429
|
constructor(e, t = {}) {
|
|
1429
1430
|
if (e == null || typeof e == "object" && !e.toString) throw Error(`PostCSS received ${e} instead of CSS string`);
|
|
@@ -1546,13 +1547,13 @@ function Pt() {
|
|
|
1546
1547
|
return this.file || this.id;
|
|
1547
1548
|
}
|
|
1548
1549
|
}
|
|
1549
|
-
return
|
|
1550
|
+
return Ft = p, p.default = p, s && s.registerInput && s.registerInput(p), Ft;
|
|
1550
1551
|
}
|
|
1551
|
-
var
|
|
1552
|
-
function
|
|
1553
|
-
if (
|
|
1554
|
-
|
|
1555
|
-
let { SourceMapConsumer: e, SourceMapGenerator: t } = L, { dirname: n, relative: r, resolve: i, sep: a } = L, { pathToFileURL: o } = L, s =
|
|
1552
|
+
var Rt, zt;
|
|
1553
|
+
function Bt() {
|
|
1554
|
+
if (zt) return Rt;
|
|
1555
|
+
zt = 1;
|
|
1556
|
+
let { SourceMapConsumer: e, SourceMapGenerator: t } = L, { dirname: n, relative: r, resolve: i, sep: a } = L, { pathToFileURL: o } = L, s = Lt(), c = !!(e && t), l = !!(n && i && r && a);
|
|
1556
1557
|
class u {
|
|
1557
1558
|
constructor(e, t, n, r) {
|
|
1558
1559
|
this.stringify = e, this.mapOpts = n.map || {}, this.root = t, this.opts = n, this.css = r, this.originalCSS = r, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
|
|
@@ -1711,25 +1712,25 @@ function Lt() {
|
|
|
1711
1712
|
return this.memoizedURLs.set(e, n), n;
|
|
1712
1713
|
}
|
|
1713
1714
|
}
|
|
1714
|
-
return
|
|
1715
|
+
return Rt = u, Rt;
|
|
1715
1716
|
}
|
|
1716
|
-
var
|
|
1717
|
-
function
|
|
1718
|
-
if (
|
|
1719
|
-
|
|
1720
|
-
let e =
|
|
1717
|
+
var Vt, Ht;
|
|
1718
|
+
function Ut() {
|
|
1719
|
+
if (Ht) return Vt;
|
|
1720
|
+
Ht = 1;
|
|
1721
|
+
let e = Tt();
|
|
1721
1722
|
class t extends e {
|
|
1722
1723
|
constructor(e) {
|
|
1723
1724
|
super(e), this.type = "comment";
|
|
1724
1725
|
}
|
|
1725
1726
|
}
|
|
1726
|
-
return
|
|
1727
|
+
return Vt = t, t.default = t, Vt;
|
|
1727
1728
|
}
|
|
1728
|
-
var
|
|
1729
|
-
function
|
|
1730
|
-
if (
|
|
1731
|
-
|
|
1732
|
-
let { isClean: e, my: t } =
|
|
1729
|
+
var Wt, Gt;
|
|
1730
|
+
function Kt() {
|
|
1731
|
+
if (Gt) return Wt;
|
|
1732
|
+
Gt = 1;
|
|
1733
|
+
let { isClean: e, my: t } = gt(), n = Ot(), r = Ut(), i = Tt(), a, o, s, c;
|
|
1733
1734
|
function l(e) {
|
|
1734
1735
|
return e.map((e) => (e.nodes &&= l(e.nodes), delete e.source, e));
|
|
1735
1736
|
}
|
|
@@ -1767,7 +1768,7 @@ function Ut() {
|
|
|
1767
1768
|
return t === "proxyOf" ? e : e[t] ? t === "each" || typeof t == "string" && t.startsWith("walk") ? (...n) => e[t](...n.map((e) => typeof e == "function" ? (t, n) => e(t.toProxy(), n) : e)) : t === "every" || t === "some" ? (n) => e[t]((e, ...t) => n(e.toProxy(), ...t)) : t === "root" ? () => e.root().toProxy() : t === "nodes" ? e.nodes.map((e) => e.toProxy()) : t === "first" || t === "last" ? e[t].toProxy() : e[t] : e[t];
|
|
1768
1769
|
},
|
|
1769
1770
|
set(e, t, n) {
|
|
1770
|
-
return e[t] === n || (e[t] = n, (t === "name" || t === "params" || t === "selector") && e.markDirty(), !0
|
|
1771
|
+
return e[t] === n || (e[t] = n, (t === "name" || t === "params" || t === "selector") && e.markDirty()), !0;
|
|
1771
1772
|
}
|
|
1772
1773
|
};
|
|
1773
1774
|
}
|
|
@@ -1897,17 +1898,17 @@ function Ut() {
|
|
|
1897
1898
|
s = e;
|
|
1898
1899
|
}, d.registerRoot = (e) => {
|
|
1899
1900
|
c = e;
|
|
1900
|
-
},
|
|
1901
|
+
}, Wt = d, d.default = d, d.rebuild = (e) => {
|
|
1901
1902
|
e.type === "atrule" ? Object.setPrototypeOf(e, s.prototype) : e.type === "rule" ? Object.setPrototypeOf(e, o.prototype) : e.type === "decl" ? Object.setPrototypeOf(e, n.prototype) : e.type === "comment" ? Object.setPrototypeOf(e, r.prototype) : e.type === "root" && Object.setPrototypeOf(e, c.prototype), e[t] = !0, e.nodes && e.nodes.forEach((e) => {
|
|
1902
1903
|
d.rebuild(e);
|
|
1903
1904
|
});
|
|
1904
|
-
},
|
|
1905
|
+
}, Wt;
|
|
1905
1906
|
}
|
|
1906
|
-
var
|
|
1907
|
-
function
|
|
1908
|
-
if (
|
|
1909
|
-
|
|
1910
|
-
let e =
|
|
1907
|
+
var qt, Jt;
|
|
1908
|
+
function Yt() {
|
|
1909
|
+
if (Jt) return qt;
|
|
1910
|
+
Jt = 1;
|
|
1911
|
+
let e = Kt(), t, n;
|
|
1911
1912
|
class r extends e {
|
|
1912
1913
|
constructor(e) {
|
|
1913
1914
|
super({
|
|
@@ -1923,21 +1924,21 @@ function Kt() {
|
|
|
1923
1924
|
t = e;
|
|
1924
1925
|
}, r.registerProcessor = (e) => {
|
|
1925
1926
|
n = e;
|
|
1926
|
-
},
|
|
1927
|
-
}
|
|
1928
|
-
var qt, Jt;
|
|
1929
|
-
function Yt() {
|
|
1930
|
-
if (Jt) return qt;
|
|
1931
|
-
Jt = 1;
|
|
1932
|
-
let e = {};
|
|
1933
|
-
return qt = function(t) {
|
|
1934
|
-
e[t] || (e[t] = !0, typeof console < "u" && console.warn && console.warn(t));
|
|
1935
|
-
}, qt;
|
|
1927
|
+
}, qt = r, r.default = r, qt;
|
|
1936
1928
|
}
|
|
1937
1929
|
var Xt, Zt;
|
|
1938
1930
|
function Qt() {
|
|
1939
1931
|
if (Zt) return Xt;
|
|
1940
1932
|
Zt = 1;
|
|
1933
|
+
let e = {};
|
|
1934
|
+
return Xt = function(t) {
|
|
1935
|
+
e[t] || (e[t] = !0, typeof console < "u" && console.warn && console.warn(t));
|
|
1936
|
+
}, Xt;
|
|
1937
|
+
}
|
|
1938
|
+
var $t, en;
|
|
1939
|
+
function tn() {
|
|
1940
|
+
if (en) return $t;
|
|
1941
|
+
en = 1;
|
|
1941
1942
|
class e {
|
|
1942
1943
|
constructor(e, t = {}) {
|
|
1943
1944
|
if (this.type = "warning", this.text = e, t.node && t.node.source) {
|
|
@@ -1954,13 +1955,13 @@ function Qt() {
|
|
|
1954
1955
|
}).message : this.plugin ? this.plugin + ": " + this.text : this.text;
|
|
1955
1956
|
}
|
|
1956
1957
|
}
|
|
1957
|
-
return
|
|
1958
|
+
return $t = e, e.default = e, $t;
|
|
1958
1959
|
}
|
|
1959
|
-
var
|
|
1960
|
-
function
|
|
1961
|
-
if (
|
|
1962
|
-
|
|
1963
|
-
let e =
|
|
1960
|
+
var nn, rn;
|
|
1961
|
+
function an() {
|
|
1962
|
+
if (rn) return nn;
|
|
1963
|
+
rn = 1;
|
|
1964
|
+
let e = tn();
|
|
1964
1965
|
class t {
|
|
1965
1966
|
constructor(e, t, n) {
|
|
1966
1967
|
this.processor = e, this.messages = [], this.root = t, this.opts = n, this.css = void 0, this.map = void 0;
|
|
@@ -1980,14 +1981,14 @@ function tn() {
|
|
|
1980
1981
|
return this.css;
|
|
1981
1982
|
}
|
|
1982
1983
|
}
|
|
1983
|
-
return
|
|
1984
|
+
return nn = t, t.default = t, nn;
|
|
1984
1985
|
}
|
|
1985
|
-
var
|
|
1986
|
-
function
|
|
1987
|
-
if (
|
|
1988
|
-
|
|
1986
|
+
var on, sn;
|
|
1987
|
+
function cn() {
|
|
1988
|
+
if (sn) return on;
|
|
1989
|
+
sn = 1;
|
|
1989
1990
|
let e = /[\t\n\f\r "#'()/;[\\\]{}]/g, t = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, n = /.[\r\n"'(/\\]/, r = /[\da-f]/i;
|
|
1990
|
-
return
|
|
1991
|
+
return on = function(i, a = {}) {
|
|
1991
1992
|
let o = i.css.valueOf(), s = a.ignoreErrors, c, l, u, d, f, p, m, h, g, _, v = o.length, y = 0, b = [], x = [];
|
|
1992
1993
|
function S() {
|
|
1993
1994
|
return y;
|
|
@@ -1998,7 +1999,7 @@ function an() {
|
|
|
1998
1999
|
function w() {
|
|
1999
2000
|
return x.length === 0 && y >= v;
|
|
2000
2001
|
}
|
|
2001
|
-
function
|
|
2002
|
+
function T(i) {
|
|
2002
2003
|
if (x.length) return x.pop();
|
|
2003
2004
|
if (y >= v) return;
|
|
2004
2005
|
let a = i ? i.ignoreUnclosed : !1;
|
|
@@ -2114,22 +2115,22 @@ function an() {
|
|
|
2114
2115
|
}
|
|
2115
2116
|
return y++, _;
|
|
2116
2117
|
}
|
|
2117
|
-
function
|
|
2118
|
+
function E(e) {
|
|
2118
2119
|
x.push(e);
|
|
2119
2120
|
}
|
|
2120
2121
|
return {
|
|
2121
|
-
back:
|
|
2122
|
+
back: E,
|
|
2122
2123
|
endOfFile: w,
|
|
2123
|
-
nextToken:
|
|
2124
|
+
nextToken: T,
|
|
2124
2125
|
position: S
|
|
2125
2126
|
};
|
|
2126
|
-
},
|
|
2127
|
+
}, on;
|
|
2127
2128
|
}
|
|
2128
|
-
var
|
|
2129
|
-
function
|
|
2130
|
-
if (
|
|
2131
|
-
|
|
2132
|
-
let e =
|
|
2129
|
+
var ln, un;
|
|
2130
|
+
function dn() {
|
|
2131
|
+
if (un) return ln;
|
|
2132
|
+
un = 1;
|
|
2133
|
+
let e = Kt();
|
|
2133
2134
|
class t extends e {
|
|
2134
2135
|
constructor(e) {
|
|
2135
2136
|
super(e), this.type = "atrule";
|
|
@@ -2141,13 +2142,13 @@ function cn() {
|
|
|
2141
2142
|
return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e);
|
|
2142
2143
|
}
|
|
2143
2144
|
}
|
|
2144
|
-
return
|
|
2145
|
+
return ln = t, t.default = t, e.registerAtRule(t), ln;
|
|
2145
2146
|
}
|
|
2146
|
-
var
|
|
2147
|
-
function
|
|
2148
|
-
if (
|
|
2149
|
-
|
|
2150
|
-
let e =
|
|
2147
|
+
var fn, pn;
|
|
2148
|
+
function mn() {
|
|
2149
|
+
if (pn) return fn;
|
|
2150
|
+
pn = 1;
|
|
2151
|
+
let e = Kt(), t, n;
|
|
2151
2152
|
class r extends e {
|
|
2152
2153
|
constructor(e) {
|
|
2153
2154
|
super(e), this.type = "root", this.nodes ||= [];
|
|
@@ -2172,12 +2173,12 @@ function dn() {
|
|
|
2172
2173
|
t = e;
|
|
2173
2174
|
}, r.registerProcessor = (e) => {
|
|
2174
2175
|
n = e;
|
|
2175
|
-
},
|
|
2176
|
+
}, fn = r, r.default = r, e.registerRoot(r), fn;
|
|
2176
2177
|
}
|
|
2177
|
-
var
|
|
2178
|
-
function
|
|
2179
|
-
if (
|
|
2180
|
-
|
|
2178
|
+
var hn, gn;
|
|
2179
|
+
function _n() {
|
|
2180
|
+
if (gn) return hn;
|
|
2181
|
+
gn = 1;
|
|
2181
2182
|
let e = {
|
|
2182
2183
|
comma(t) {
|
|
2183
2184
|
return e.split(t, [","], !0);
|
|
@@ -2195,13 +2196,13 @@ function mn() {
|
|
|
2195
2196
|
return (n || i !== "") && r.push(i.trim()), r;
|
|
2196
2197
|
}
|
|
2197
2198
|
};
|
|
2198
|
-
return
|
|
2199
|
+
return hn = e, e.default = e, hn;
|
|
2199
2200
|
}
|
|
2200
|
-
var
|
|
2201
|
-
function
|
|
2202
|
-
if (
|
|
2203
|
-
|
|
2204
|
-
let e =
|
|
2201
|
+
var vn, yn;
|
|
2202
|
+
function bn() {
|
|
2203
|
+
if (yn) return vn;
|
|
2204
|
+
yn = 1;
|
|
2205
|
+
let e = Kt(), t = _n();
|
|
2205
2206
|
class n extends e {
|
|
2206
2207
|
constructor(e) {
|
|
2207
2208
|
super(e), this.type = "rule", this.nodes ||= [];
|
|
@@ -2214,13 +2215,13 @@ function _n() {
|
|
|
2214
2215
|
this.selector = e.join(n);
|
|
2215
2216
|
}
|
|
2216
2217
|
}
|
|
2217
|
-
return
|
|
2218
|
+
return vn = n, n.default = n, e.registerRule(n), vn;
|
|
2218
2219
|
}
|
|
2219
|
-
var
|
|
2220
|
-
function
|
|
2221
|
-
if (
|
|
2222
|
-
|
|
2223
|
-
let e =
|
|
2220
|
+
var xn, Sn;
|
|
2221
|
+
function Cn() {
|
|
2222
|
+
if (Sn) return xn;
|
|
2223
|
+
Sn = 1;
|
|
2224
|
+
let e = Ot(), t = cn(), n = Ut(), r = dn(), i = mn(), a = bn(), o = {
|
|
2224
2225
|
empty: !0,
|
|
2225
2226
|
space: !0
|
|
2226
2227
|
};
|
|
@@ -2490,13 +2491,13 @@ function bn() {
|
|
|
2490
2491
|
throw this.input.error("At-rule without name", { offset: t[2] }, { offset: t[2] + t[1].length });
|
|
2491
2492
|
}
|
|
2492
2493
|
}
|
|
2493
|
-
return
|
|
2494
|
+
return xn = c, xn;
|
|
2494
2495
|
}
|
|
2495
|
-
var
|
|
2496
|
-
function
|
|
2497
|
-
if (
|
|
2498
|
-
|
|
2499
|
-
let e =
|
|
2496
|
+
var wn, Tn;
|
|
2497
|
+
function En() {
|
|
2498
|
+
if (Tn) return wn;
|
|
2499
|
+
Tn = 1;
|
|
2500
|
+
let e = Kt(), t = Cn(), n = Lt();
|
|
2500
2501
|
function r(e, r) {
|
|
2501
2502
|
let i = new n(e, r), a = new t(i);
|
|
2502
2503
|
try {
|
|
@@ -2506,13 +2507,13 @@ function Cn() {
|
|
|
2506
2507
|
}
|
|
2507
2508
|
return a.root;
|
|
2508
2509
|
}
|
|
2509
|
-
return
|
|
2510
|
+
return wn = r, r.default = r, e.registerParse(r), wn;
|
|
2510
2511
|
}
|
|
2511
|
-
var
|
|
2512
|
-
function
|
|
2513
|
-
if (
|
|
2514
|
-
|
|
2515
|
-
let { isClean: e, my: t } =
|
|
2512
|
+
var Dn, On;
|
|
2513
|
+
function kn() {
|
|
2514
|
+
if (On) return Dn;
|
|
2515
|
+
On = 1;
|
|
2516
|
+
let { isClean: e, my: t } = gt(), n = Bt(), r = St(), i = Kt(), a = Yt(), o = Qt(), s = an(), c = En(), l = mn(), u = {
|
|
2516
2517
|
atrule: "AtRule",
|
|
2517
2518
|
comment: "Comment",
|
|
2518
2519
|
decl: "Declaration",
|
|
@@ -2825,13 +2826,13 @@ function En() {
|
|
|
2825
2826
|
}
|
|
2826
2827
|
return v.registerPostcss = (e) => {
|
|
2827
2828
|
_ = e;
|
|
2828
|
-
},
|
|
2829
|
+
}, Dn = v, v.default = v, l.registerLazyResult(v), a.registerLazyResult(v), Dn;
|
|
2829
2830
|
}
|
|
2830
|
-
var
|
|
2831
|
-
function
|
|
2832
|
-
if (
|
|
2833
|
-
|
|
2834
|
-
let e =
|
|
2831
|
+
var An, jn;
|
|
2832
|
+
function Mn() {
|
|
2833
|
+
if (jn) return An;
|
|
2834
|
+
jn = 1;
|
|
2835
|
+
let e = Bt(), t = St(), n = Qt(), r = En(), i = an();
|
|
2835
2836
|
class a {
|
|
2836
2837
|
constructor(n, r, a) {
|
|
2837
2838
|
r = r.toString(), this.stringified = !1, this._processor = n, this._css = r, this._opts = a, this._map = void 0;
|
|
@@ -2902,13 +2903,13 @@ function kn() {
|
|
|
2902
2903
|
return "NoWorkResult";
|
|
2903
2904
|
}
|
|
2904
2905
|
}
|
|
2905
|
-
return
|
|
2906
|
+
return An = a, a.default = a, An;
|
|
2906
2907
|
}
|
|
2907
|
-
var
|
|
2908
|
-
function
|
|
2909
|
-
if (
|
|
2910
|
-
|
|
2911
|
-
let e =
|
|
2908
|
+
var Nn, Pn;
|
|
2909
|
+
function Fn() {
|
|
2910
|
+
if (Pn) return Nn;
|
|
2911
|
+
Pn = 1;
|
|
2912
|
+
let e = Mn(), t = kn(), n = Yt(), r = mn();
|
|
2912
2913
|
class i {
|
|
2913
2914
|
constructor(e = []) {
|
|
2914
2915
|
this.version = "8.4.38", this.plugins = this.normalize(e);
|
|
@@ -2930,13 +2931,13 @@ function Mn() {
|
|
|
2930
2931
|
return this.plugins = this.plugins.concat(this.normalize([e])), this;
|
|
2931
2932
|
}
|
|
2932
2933
|
}
|
|
2933
|
-
return
|
|
2934
|
+
return Nn = i, i.default = i, r.registerProcessor(i), n.registerProcessor(i), Nn;
|
|
2934
2935
|
}
|
|
2935
|
-
var
|
|
2936
|
-
function
|
|
2937
|
-
if (
|
|
2938
|
-
|
|
2939
|
-
let e =
|
|
2936
|
+
var In, Ln;
|
|
2937
|
+
function Rn() {
|
|
2938
|
+
if (Ln) return In;
|
|
2939
|
+
Ln = 1;
|
|
2940
|
+
let e = Ot(), t = Pt(), n = Ut(), r = dn(), i = Lt(), a = mn(), o = bn();
|
|
2940
2941
|
function s(c, l) {
|
|
2941
2942
|
if (Array.isArray(c)) return c.map((e) => s(e));
|
|
2942
2943
|
let { inputs: u, ...d } = c;
|
|
@@ -2964,13 +2965,13 @@ function Fn() {
|
|
|
2964
2965
|
if (d.type === "atrule") return new r(d);
|
|
2965
2966
|
throw Error("Unknown node type: " + c.type);
|
|
2966
2967
|
}
|
|
2967
|
-
return
|
|
2968
|
+
return In = s, s.default = s, In;
|
|
2968
2969
|
}
|
|
2969
|
-
var
|
|
2970
|
-
function
|
|
2971
|
-
if (
|
|
2972
|
-
|
|
2973
|
-
let e =
|
|
2970
|
+
var zn, Bn;
|
|
2971
|
+
function Vn() {
|
|
2972
|
+
if (Bn) return zn;
|
|
2973
|
+
Bn = 1;
|
|
2974
|
+
let e = pt(), t = Ot(), n = kn(), r = Kt(), i = Fn(), a = St(), o = Rn(), s = Yt(), c = tn(), l = Ut(), u = dn(), d = an(), f = Lt(), p = En(), m = _n(), h = bn(), g = mn(), _ = Tt();
|
|
2974
2975
|
function v(...e) {
|
|
2975
2976
|
return e.length === 1 && Array.isArray(e[0]) && (e = e[0]), new i(e);
|
|
2976
2977
|
}
|
|
@@ -2987,21 +2988,21 @@ function Rn() {
|
|
|
2987
2988
|
} }), r.process = function(e, t, n) {
|
|
2988
2989
|
return v([r(n)]).process(e, t);
|
|
2989
2990
|
}, r;
|
|
2990
|
-
}, v.stringify = a, v.parse = p, v.fromJSON = o, v.list = m, v.comment = (e) => new l(e), v.atRule = (e) => new u(e), v.decl = (e) => new t(e), v.rule = (e) => new h(e), v.root = (e) => new g(e), v.document = (e) => new s(e), v.CssSyntaxError = e, v.Declaration = t, v.Container = r, v.Processor = i, v.Document = s, v.Comment = l, v.Warning = c, v.AtRule = u, v.Result = d, v.Input = f, v.Rule = h, v.Root = g, v.Node = _, n.registerPostcss(v),
|
|
2991
|
+
}, v.stringify = a, v.parse = p, v.fromJSON = o, v.list = m, v.comment = (e) => new l(e), v.atRule = (e) => new u(e), v.decl = (e) => new t(e), v.rule = (e) => new h(e), v.root = (e) => new g(e), v.document = (e) => new s(e), v.CssSyntaxError = e, v.Declaration = t, v.Container = r, v.Processor = i, v.Document = s, v.Comment = l, v.Warning = c, v.AtRule = u, v.Result = d, v.Input = f, v.Rule = h, v.Root = g, v.Node = _, n.registerPostcss(v), zn = v, v.default = v, zn;
|
|
2991
2992
|
}
|
|
2992
|
-
var R = /* @__PURE__ */
|
|
2993
|
+
var R = /* @__PURE__ */ ot(Vn());
|
|
2993
2994
|
R.stringify, R.fromJSON, R.plugin, R.parse, R.list, R.document, R.comment, R.atRule, R.rule, R.decl, R.root, R.CssSyntaxError, R.Declaration, R.Container, R.Processor, R.Document, R.Comment, R.Warning, R.AtRule, R.Result, R.Input, R.Rule, R.Root, R.Node;
|
|
2994
|
-
var
|
|
2995
|
+
var Hn = Object.defineProperty, Un = (e, t, n) => t in e ? Hn(e, t, {
|
|
2995
2996
|
enumerable: !0,
|
|
2996
2997
|
configurable: !0,
|
|
2997
2998
|
writable: !0,
|
|
2998
2999
|
value: n
|
|
2999
|
-
}) : e[t] = n, z = (e, t, n) =>
|
|
3000
|
+
}) : e[t] = n, z = (e, t, n) => Un(e, typeof t == "symbol" ? t : t + "", n);
|
|
3000
3001
|
Date.now().toString();
|
|
3001
|
-
function
|
|
3002
|
+
function Wn(e) {
|
|
3002
3003
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
3003
3004
|
}
|
|
3004
|
-
function
|
|
3005
|
+
function Gn(e) {
|
|
3005
3006
|
if (e.__esModule) return e;
|
|
3006
3007
|
var t = e.default;
|
|
3007
3008
|
if (typeof t == "function") {
|
|
@@ -3020,10 +3021,10 @@ function Hn(e) {
|
|
|
3020
3021
|
});
|
|
3021
3022
|
}), n;
|
|
3022
3023
|
}
|
|
3023
|
-
var
|
|
3024
|
-
function
|
|
3025
|
-
if (
|
|
3026
|
-
|
|
3024
|
+
var Kn = { exports: {} }, qn;
|
|
3025
|
+
function Jn() {
|
|
3026
|
+
if (qn) return Kn.exports;
|
|
3027
|
+
qn = 1;
|
|
3027
3028
|
var e = String, t = function() {
|
|
3028
3029
|
return {
|
|
3029
3030
|
isColorSupported: !1,
|
|
@@ -3054,16 +3055,16 @@ function Gn() {
|
|
|
3054
3055
|
bgWhite: e
|
|
3055
3056
|
};
|
|
3056
3057
|
};
|
|
3057
|
-
return
|
|
3058
|
+
return Kn.exports = t(), Kn.exports.createColors = t, Kn.exports;
|
|
3058
3059
|
}
|
|
3059
|
-
var B = /* @__PURE__ */
|
|
3060
|
+
var B = /* @__PURE__ */ Gn(/* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3060
3061
|
__proto__: null,
|
|
3061
3062
|
default: {}
|
|
3062
|
-
}, Symbol.toStringTag, { value: "Module" }))),
|
|
3063
|
-
function
|
|
3064
|
-
if (
|
|
3065
|
-
|
|
3066
|
-
let e = /* @__PURE__ */
|
|
3063
|
+
}, Symbol.toStringTag, { value: "Module" }))), Yn, Xn;
|
|
3064
|
+
function Zn() {
|
|
3065
|
+
if (Xn) return Yn;
|
|
3066
|
+
Xn = 1;
|
|
3067
|
+
let e = /* @__PURE__ */ Jn(), t = B;
|
|
3067
3068
|
class n extends Error {
|
|
3068
3069
|
constructor(e, t, r, i, a, o) {
|
|
3069
3070
|
super(e), this.name = "CssSyntaxError", this.reason = e, a && (this.file = a), i && (this.source = i), o && (this.plugin = o), t !== void 0 && r !== void 0 && (typeof t == "number" ? (this.line = t, this.column = r) : (this.line = t.line, this.column = t.column, this.endLine = r.line, this.endColumn = r.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, n);
|
|
@@ -3094,16 +3095,16 @@ function Jn() {
|
|
|
3094
3095
|
return e &&= "\n\n" + e + "\n", this.name + ": " + this.message + e;
|
|
3095
3096
|
}
|
|
3096
3097
|
}
|
|
3097
|
-
return
|
|
3098
|
+
return Yn = n, n.default = n, Yn;
|
|
3098
3099
|
}
|
|
3099
|
-
var
|
|
3100
|
-
function Zn() {
|
|
3101
|
-
return Xn ? Yn : (Xn = 1, Yn.isClean = Symbol("isClean"), Yn.my = Symbol("my"), Yn);
|
|
3102
|
-
}
|
|
3103
|
-
var Qn, $n;
|
|
3100
|
+
var Qn = {}, $n;
|
|
3104
3101
|
function er() {
|
|
3105
|
-
|
|
3106
|
-
|
|
3102
|
+
return $n || ($n = 1, Qn.isClean = Symbol("isClean"), Qn.my = Symbol("my")), Qn;
|
|
3103
|
+
}
|
|
3104
|
+
var tr, nr;
|
|
3105
|
+
function rr() {
|
|
3106
|
+
if (nr) return tr;
|
|
3107
|
+
nr = 1;
|
|
3107
3108
|
let e = {
|
|
3108
3109
|
after: "\n",
|
|
3109
3110
|
beforeClose: "\n",
|
|
@@ -3261,23 +3262,23 @@ function er() {
|
|
|
3261
3262
|
this[e.type](e, t);
|
|
3262
3263
|
}
|
|
3263
3264
|
}
|
|
3264
|
-
return
|
|
3265
|
-
}
|
|
3266
|
-
var tr, nr;
|
|
3267
|
-
function rr() {
|
|
3268
|
-
if (nr) return tr;
|
|
3269
|
-
nr = 1;
|
|
3270
|
-
let e = er();
|
|
3271
|
-
function t(t, n) {
|
|
3272
|
-
new e(n).stringify(t);
|
|
3273
|
-
}
|
|
3274
|
-
return tr = t, t.default = t, tr;
|
|
3265
|
+
return tr = n, n.default = n, tr;
|
|
3275
3266
|
}
|
|
3276
3267
|
var ir, ar;
|
|
3277
3268
|
function or() {
|
|
3278
3269
|
if (ar) return ir;
|
|
3279
3270
|
ar = 1;
|
|
3280
|
-
let
|
|
3271
|
+
let e = rr();
|
|
3272
|
+
function t(t, n) {
|
|
3273
|
+
new e(n).stringify(t);
|
|
3274
|
+
}
|
|
3275
|
+
return ir = t, t.default = t, ir;
|
|
3276
|
+
}
|
|
3277
|
+
var sr, cr;
|
|
3278
|
+
function lr() {
|
|
3279
|
+
if (cr) return sr;
|
|
3280
|
+
cr = 1;
|
|
3281
|
+
let { isClean: e, my: t } = er(), n = Zn(), r = rr(), i = or();
|
|
3281
3282
|
function a(e, t) {
|
|
3282
3283
|
let n = new e.constructor();
|
|
3283
3284
|
for (let r in e) {
|
|
@@ -3347,7 +3348,7 @@ function or() {
|
|
|
3347
3348
|
return t === "proxyOf" ? e : t === "root" ? () => e.root().toProxy() : e[t];
|
|
3348
3349
|
},
|
|
3349
3350
|
set(e, t, n) {
|
|
3350
|
-
return e[t] === n || (e[t] = n, (t === "prop" || t === "value" || t === "name" || t === "params" || t === "important" || t === "text") && e.markDirty(), !0
|
|
3351
|
+
return e[t] === n || (e[t] = n, (t === "prop" || t === "value" || t === "name" || t === "params" || t === "important" || t === "text") && e.markDirty()), !0;
|
|
3351
3352
|
}
|
|
3352
3353
|
};
|
|
3353
3354
|
}
|
|
@@ -3473,13 +3474,13 @@ function or() {
|
|
|
3473
3474
|
return this;
|
|
3474
3475
|
}
|
|
3475
3476
|
}
|
|
3476
|
-
return
|
|
3477
|
+
return sr = o, o.default = o, sr;
|
|
3477
3478
|
}
|
|
3478
|
-
var
|
|
3479
|
-
function
|
|
3480
|
-
if (
|
|
3481
|
-
|
|
3482
|
-
let e =
|
|
3479
|
+
var ur, dr;
|
|
3480
|
+
function fr() {
|
|
3481
|
+
if (dr) return ur;
|
|
3482
|
+
dr = 1;
|
|
3483
|
+
let e = lr();
|
|
3483
3484
|
class t extends e {
|
|
3484
3485
|
constructor(e) {
|
|
3485
3486
|
e && e.value !== void 0 && typeof e.value != "string" && (e = {
|
|
@@ -3491,11 +3492,11 @@ function lr() {
|
|
|
3491
3492
|
return this.prop.startsWith("--") || this.prop[0] === "$";
|
|
3492
3493
|
}
|
|
3493
3494
|
}
|
|
3494
|
-
return
|
|
3495
|
+
return ur = t, t.default = t, ur;
|
|
3495
3496
|
}
|
|
3496
|
-
var
|
|
3497
|
-
function
|
|
3498
|
-
return
|
|
3497
|
+
var pr, mr;
|
|
3498
|
+
function hr() {
|
|
3499
|
+
return mr || (mr = 1, pr = {
|
|
3499
3500
|
nanoid: (e = 21) => {
|
|
3500
3501
|
let t = "", n = e;
|
|
3501
3502
|
for (; n--;) t += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[Math.random() * 64 | 0];
|
|
@@ -3506,12 +3507,12 @@ function fr() {
|
|
|
3506
3507
|
for (; i--;) r += e[Math.random() * e.length | 0];
|
|
3507
3508
|
return r;
|
|
3508
3509
|
}
|
|
3509
|
-
},
|
|
3510
|
+
}), pr;
|
|
3510
3511
|
}
|
|
3511
|
-
var
|
|
3512
|
-
function
|
|
3513
|
-
if (
|
|
3514
|
-
|
|
3512
|
+
var gr, _r;
|
|
3513
|
+
function vr() {
|
|
3514
|
+
if (_r) return gr;
|
|
3515
|
+
_r = 1;
|
|
3515
3516
|
let { SourceMapConsumer: e, SourceMapGenerator: t } = B, { existsSync: n, readFileSync: r } = B, { dirname: i, join: a } = B;
|
|
3516
3517
|
function o(e) {
|
|
3517
3518
|
return Buffer ? Buffer.from(e, "base64").toString() : window.atob(e);
|
|
@@ -3576,13 +3577,13 @@ function hr() {
|
|
|
3576
3577
|
return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
|
|
3577
3578
|
}
|
|
3578
3579
|
}
|
|
3579
|
-
return
|
|
3580
|
+
return gr = s, s.default = s, gr;
|
|
3580
3581
|
}
|
|
3581
|
-
var
|
|
3582
|
-
function
|
|
3583
|
-
if (
|
|
3584
|
-
|
|
3585
|
-
let { SourceMapConsumer: e, SourceMapGenerator: t } = B, { fileURLToPath: n, pathToFileURL: r } = B, { isAbsolute: i, resolve: a } = B, { nanoid: o } = /* @__PURE__ */
|
|
3582
|
+
var yr, br;
|
|
3583
|
+
function xr() {
|
|
3584
|
+
if (br) return yr;
|
|
3585
|
+
br = 1;
|
|
3586
|
+
let { SourceMapConsumer: e, SourceMapGenerator: t } = B, { fileURLToPath: n, pathToFileURL: r } = B, { isAbsolute: i, resolve: a } = B, { nanoid: o } = /* @__PURE__ */ hr(), s = B, c = Zn(), l = vr(), u = Symbol("fromOffsetCache"), d = !!(e && t), f = !!(a && i);
|
|
3586
3587
|
class p {
|
|
3587
3588
|
constructor(e, t = {}) {
|
|
3588
3589
|
if (e == null || typeof e == "object" && !e.toString) throw Error(`PostCSS received ${e} instead of CSS string`);
|
|
@@ -3705,13 +3706,13 @@ function vr() {
|
|
|
3705
3706
|
return this.file || this.id;
|
|
3706
3707
|
}
|
|
3707
3708
|
}
|
|
3708
|
-
return
|
|
3709
|
+
return yr = p, p.default = p, s && s.registerInput && s.registerInput(p), yr;
|
|
3709
3710
|
}
|
|
3710
|
-
var
|
|
3711
|
-
function
|
|
3712
|
-
if (
|
|
3713
|
-
|
|
3714
|
-
let { SourceMapConsumer: e, SourceMapGenerator: t } = B, { dirname: n, relative: r, resolve: i, sep: a } = B, { pathToFileURL: o } = B, s =
|
|
3711
|
+
var Sr, Cr;
|
|
3712
|
+
function wr() {
|
|
3713
|
+
if (Cr) return Sr;
|
|
3714
|
+
Cr = 1;
|
|
3715
|
+
let { SourceMapConsumer: e, SourceMapGenerator: t } = B, { dirname: n, relative: r, resolve: i, sep: a } = B, { pathToFileURL: o } = B, s = xr(), c = !!(e && t), l = !!(n && i && r && a);
|
|
3715
3716
|
class u {
|
|
3716
3717
|
constructor(e, t, n, r) {
|
|
3717
3718
|
this.stringify = e, this.mapOpts = n.map || {}, this.root = t, this.opts = n, this.css = r, this.originalCSS = r, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
|
|
@@ -3870,25 +3871,25 @@ function xr() {
|
|
|
3870
3871
|
return this.memoizedURLs.set(e, n), n;
|
|
3871
3872
|
}
|
|
3872
3873
|
}
|
|
3873
|
-
return
|
|
3874
|
+
return Sr = u, Sr;
|
|
3874
3875
|
}
|
|
3875
|
-
var
|
|
3876
|
-
function
|
|
3877
|
-
if (
|
|
3878
|
-
|
|
3879
|
-
let e =
|
|
3876
|
+
var Tr, Er;
|
|
3877
|
+
function Dr() {
|
|
3878
|
+
if (Er) return Tr;
|
|
3879
|
+
Er = 1;
|
|
3880
|
+
let e = lr();
|
|
3880
3881
|
class t extends e {
|
|
3881
3882
|
constructor(e) {
|
|
3882
3883
|
super(e), this.type = "comment";
|
|
3883
3884
|
}
|
|
3884
3885
|
}
|
|
3885
|
-
return
|
|
3886
|
+
return Tr = t, t.default = t, Tr;
|
|
3886
3887
|
}
|
|
3887
|
-
var
|
|
3888
|
-
function
|
|
3889
|
-
if (
|
|
3890
|
-
|
|
3891
|
-
let { isClean: e, my: t } =
|
|
3888
|
+
var Or, kr;
|
|
3889
|
+
function Ar() {
|
|
3890
|
+
if (kr) return Or;
|
|
3891
|
+
kr = 1;
|
|
3892
|
+
let { isClean: e, my: t } = er(), n = fr(), r = Dr(), i = lr(), a, o, s, c;
|
|
3892
3893
|
function l(e) {
|
|
3893
3894
|
return e.map((e) => (e.nodes &&= l(e.nodes), delete e.source, e));
|
|
3894
3895
|
}
|
|
@@ -3926,7 +3927,7 @@ function Dr() {
|
|
|
3926
3927
|
return t === "proxyOf" ? e : e[t] ? t === "each" || typeof t == "string" && t.startsWith("walk") ? (...n) => e[t](...n.map((e) => typeof e == "function" ? (t, n) => e(t.toProxy(), n) : e)) : t === "every" || t === "some" ? (n) => e[t]((e, ...t) => n(e.toProxy(), ...t)) : t === "root" ? () => e.root().toProxy() : t === "nodes" ? e.nodes.map((e) => e.toProxy()) : t === "first" || t === "last" ? e[t].toProxy() : e[t] : e[t];
|
|
3927
3928
|
},
|
|
3928
3929
|
set(e, t, n) {
|
|
3929
|
-
return e[t] === n || (e[t] = n, (t === "name" || t === "params" || t === "selector") && e.markDirty(), !0
|
|
3930
|
+
return e[t] === n || (e[t] = n, (t === "name" || t === "params" || t === "selector") && e.markDirty()), !0;
|
|
3930
3931
|
}
|
|
3931
3932
|
};
|
|
3932
3933
|
}
|
|
@@ -4056,17 +4057,17 @@ function Dr() {
|
|
|
4056
4057
|
s = e;
|
|
4057
4058
|
}, d.registerRoot = (e) => {
|
|
4058
4059
|
c = e;
|
|
4059
|
-
},
|
|
4060
|
+
}, Or = d, d.default = d, d.rebuild = (e) => {
|
|
4060
4061
|
e.type === "atrule" ? Object.setPrototypeOf(e, s.prototype) : e.type === "rule" ? Object.setPrototypeOf(e, o.prototype) : e.type === "decl" ? Object.setPrototypeOf(e, n.prototype) : e.type === "comment" ? Object.setPrototypeOf(e, r.prototype) : e.type === "root" && Object.setPrototypeOf(e, c.prototype), e[t] = !0, e.nodes && e.nodes.forEach((e) => {
|
|
4061
4062
|
d.rebuild(e);
|
|
4062
4063
|
});
|
|
4063
|
-
},
|
|
4064
|
+
}, Or;
|
|
4064
4065
|
}
|
|
4065
|
-
var
|
|
4066
|
-
function
|
|
4067
|
-
if (
|
|
4068
|
-
|
|
4069
|
-
let e =
|
|
4066
|
+
var jr, Mr;
|
|
4067
|
+
function Nr() {
|
|
4068
|
+
if (Mr) return jr;
|
|
4069
|
+
Mr = 1;
|
|
4070
|
+
let e = Ar(), t, n;
|
|
4070
4071
|
class r extends e {
|
|
4071
4072
|
constructor(e) {
|
|
4072
4073
|
super({
|
|
@@ -4079,24 +4080,24 @@ function Ar() {
|
|
|
4079
4080
|
}
|
|
4080
4081
|
}
|
|
4081
4082
|
return r.registerLazyResult = (e) => {
|
|
4082
|
-
t = e;
|
|
4083
|
-
}, r.registerProcessor = (e) => {
|
|
4084
|
-
n = e;
|
|
4085
|
-
},
|
|
4086
|
-
}
|
|
4087
|
-
var jr, Mr;
|
|
4088
|
-
function Nr() {
|
|
4089
|
-
if (Mr) return jr;
|
|
4090
|
-
Mr = 1;
|
|
4091
|
-
let e = {};
|
|
4092
|
-
return jr = function(t) {
|
|
4093
|
-
e[t] || (e[t] = !0, typeof console < "u" && console.warn && console.warn(t));
|
|
4094
|
-
}, jr;
|
|
4083
|
+
t = e;
|
|
4084
|
+
}, r.registerProcessor = (e) => {
|
|
4085
|
+
n = e;
|
|
4086
|
+
}, jr = r, r.default = r, jr;
|
|
4095
4087
|
}
|
|
4096
4088
|
var Pr, Fr;
|
|
4097
4089
|
function Ir() {
|
|
4098
4090
|
if (Fr) return Pr;
|
|
4099
4091
|
Fr = 1;
|
|
4092
|
+
let e = {};
|
|
4093
|
+
return Pr = function(t) {
|
|
4094
|
+
e[t] || (e[t] = !0, typeof console < "u" && console.warn && console.warn(t));
|
|
4095
|
+
}, Pr;
|
|
4096
|
+
}
|
|
4097
|
+
var Lr, Rr;
|
|
4098
|
+
function zr() {
|
|
4099
|
+
if (Rr) return Lr;
|
|
4100
|
+
Rr = 1;
|
|
4100
4101
|
class e {
|
|
4101
4102
|
constructor(e, t = {}) {
|
|
4102
4103
|
if (this.type = "warning", this.text = e, t.node && t.node.source) {
|
|
@@ -4113,13 +4114,13 @@ function Ir() {
|
|
|
4113
4114
|
}).message : this.plugin ? this.plugin + ": " + this.text : this.text;
|
|
4114
4115
|
}
|
|
4115
4116
|
}
|
|
4116
|
-
return
|
|
4117
|
+
return Lr = e, e.default = e, Lr;
|
|
4117
4118
|
}
|
|
4118
|
-
var
|
|
4119
|
-
function
|
|
4120
|
-
if (
|
|
4121
|
-
|
|
4122
|
-
let e =
|
|
4119
|
+
var Br, Vr;
|
|
4120
|
+
function Hr() {
|
|
4121
|
+
if (Vr) return Br;
|
|
4122
|
+
Vr = 1;
|
|
4123
|
+
let e = zr();
|
|
4123
4124
|
class t {
|
|
4124
4125
|
constructor(e, t, n) {
|
|
4125
4126
|
this.processor = e, this.messages = [], this.root = t, this.opts = n, this.css = void 0, this.map = void 0;
|
|
@@ -4139,14 +4140,14 @@ function zr() {
|
|
|
4139
4140
|
return this.css;
|
|
4140
4141
|
}
|
|
4141
4142
|
}
|
|
4142
|
-
return
|
|
4143
|
+
return Br = t, t.default = t, Br;
|
|
4143
4144
|
}
|
|
4144
|
-
var
|
|
4145
|
-
function
|
|
4146
|
-
if (
|
|
4147
|
-
|
|
4145
|
+
var Ur, Wr;
|
|
4146
|
+
function Gr() {
|
|
4147
|
+
if (Wr) return Ur;
|
|
4148
|
+
Wr = 1;
|
|
4148
4149
|
let e = /[\t\n\f\r "#'()/;[\\\]{}]/g, t = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, n = /.[\r\n"'(/\\]/, r = /[\da-f]/i;
|
|
4149
|
-
return
|
|
4150
|
+
return Ur = function(i, a = {}) {
|
|
4150
4151
|
let o = i.css.valueOf(), s = a.ignoreErrors, c, l, u, d, f, p, m, h, g, _, v = o.length, y = 0, b = [], x = [];
|
|
4151
4152
|
function S() {
|
|
4152
4153
|
return y;
|
|
@@ -4157,7 +4158,7 @@ function Hr() {
|
|
|
4157
4158
|
function w() {
|
|
4158
4159
|
return x.length === 0 && y >= v;
|
|
4159
4160
|
}
|
|
4160
|
-
function
|
|
4161
|
+
function T(i) {
|
|
4161
4162
|
if (x.length) return x.pop();
|
|
4162
4163
|
if (y >= v) return;
|
|
4163
4164
|
let a = i ? i.ignoreUnclosed : !1;
|
|
@@ -4273,22 +4274,22 @@ function Hr() {
|
|
|
4273
4274
|
}
|
|
4274
4275
|
return y++, _;
|
|
4275
4276
|
}
|
|
4276
|
-
function
|
|
4277
|
+
function E(e) {
|
|
4277
4278
|
x.push(e);
|
|
4278
4279
|
}
|
|
4279
4280
|
return {
|
|
4280
|
-
back:
|
|
4281
|
+
back: E,
|
|
4281
4282
|
endOfFile: w,
|
|
4282
|
-
nextToken:
|
|
4283
|
+
nextToken: T,
|
|
4283
4284
|
position: S
|
|
4284
4285
|
};
|
|
4285
|
-
},
|
|
4286
|
+
}, Ur;
|
|
4286
4287
|
}
|
|
4287
|
-
var
|
|
4288
|
-
function
|
|
4289
|
-
if (
|
|
4290
|
-
|
|
4291
|
-
let e =
|
|
4288
|
+
var Kr, qr;
|
|
4289
|
+
function Jr() {
|
|
4290
|
+
if (qr) return Kr;
|
|
4291
|
+
qr = 1;
|
|
4292
|
+
let e = Ar();
|
|
4292
4293
|
class t extends e {
|
|
4293
4294
|
constructor(e) {
|
|
4294
4295
|
super(e), this.type = "atrule";
|
|
@@ -4300,13 +4301,13 @@ function Gr() {
|
|
|
4300
4301
|
return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e);
|
|
4301
4302
|
}
|
|
4302
4303
|
}
|
|
4303
|
-
return
|
|
4304
|
+
return Kr = t, t.default = t, e.registerAtRule(t), Kr;
|
|
4304
4305
|
}
|
|
4305
|
-
var
|
|
4306
|
-
function
|
|
4307
|
-
if (
|
|
4308
|
-
|
|
4309
|
-
let e =
|
|
4306
|
+
var Yr, Xr;
|
|
4307
|
+
function Zr() {
|
|
4308
|
+
if (Xr) return Yr;
|
|
4309
|
+
Xr = 1;
|
|
4310
|
+
let e = Ar(), t, n;
|
|
4310
4311
|
class r extends e {
|
|
4311
4312
|
constructor(e) {
|
|
4312
4313
|
super(e), this.type = "root", this.nodes ||= [];
|
|
@@ -4331,12 +4332,12 @@ function Jr() {
|
|
|
4331
4332
|
t = e;
|
|
4332
4333
|
}, r.registerProcessor = (e) => {
|
|
4333
4334
|
n = e;
|
|
4334
|
-
},
|
|
4335
|
+
}, Yr = r, r.default = r, e.registerRoot(r), Yr;
|
|
4335
4336
|
}
|
|
4336
|
-
var
|
|
4337
|
-
function
|
|
4338
|
-
if (
|
|
4339
|
-
|
|
4337
|
+
var Qr, $r;
|
|
4338
|
+
function ei() {
|
|
4339
|
+
if ($r) return Qr;
|
|
4340
|
+
$r = 1;
|
|
4340
4341
|
let e = {
|
|
4341
4342
|
comma(t) {
|
|
4342
4343
|
return e.split(t, [","], !0);
|
|
@@ -4354,13 +4355,13 @@ function Zr() {
|
|
|
4354
4355
|
return (n || i !== "") && r.push(i.trim()), r;
|
|
4355
4356
|
}
|
|
4356
4357
|
};
|
|
4357
|
-
return
|
|
4358
|
+
return Qr = e, e.default = e, Qr;
|
|
4358
4359
|
}
|
|
4359
|
-
var
|
|
4360
|
-
function
|
|
4361
|
-
if (
|
|
4362
|
-
|
|
4363
|
-
let e =
|
|
4360
|
+
var ti, ni;
|
|
4361
|
+
function ri() {
|
|
4362
|
+
if (ni) return ti;
|
|
4363
|
+
ni = 1;
|
|
4364
|
+
let e = Ar(), t = ei();
|
|
4364
4365
|
class n extends e {
|
|
4365
4366
|
constructor(e) {
|
|
4366
4367
|
super(e), this.type = "rule", this.nodes ||= [];
|
|
@@ -4373,13 +4374,13 @@ function ei() {
|
|
|
4373
4374
|
this.selector = e.join(n);
|
|
4374
4375
|
}
|
|
4375
4376
|
}
|
|
4376
|
-
return
|
|
4377
|
+
return ti = n, n.default = n, e.registerRule(n), ti;
|
|
4377
4378
|
}
|
|
4378
|
-
var
|
|
4379
|
-
function
|
|
4380
|
-
if (
|
|
4381
|
-
|
|
4382
|
-
let e =
|
|
4379
|
+
var ii, ai;
|
|
4380
|
+
function oi() {
|
|
4381
|
+
if (ai) return ii;
|
|
4382
|
+
ai = 1;
|
|
4383
|
+
let e = fr(), t = Gr(), n = Dr(), r = Jr(), i = Zr(), a = ri(), o = {
|
|
4383
4384
|
empty: !0,
|
|
4384
4385
|
space: !0
|
|
4385
4386
|
};
|
|
@@ -4649,13 +4650,13 @@ function ri() {
|
|
|
4649
4650
|
throw this.input.error("At-rule without name", { offset: t[2] }, { offset: t[2] + t[1].length });
|
|
4650
4651
|
}
|
|
4651
4652
|
}
|
|
4652
|
-
return
|
|
4653
|
+
return ii = c, ii;
|
|
4653
4654
|
}
|
|
4654
|
-
var
|
|
4655
|
-
function
|
|
4656
|
-
if (
|
|
4657
|
-
|
|
4658
|
-
let e =
|
|
4655
|
+
var si, ci;
|
|
4656
|
+
function li() {
|
|
4657
|
+
if (ci) return si;
|
|
4658
|
+
ci = 1;
|
|
4659
|
+
let e = Ar(), t = oi(), n = xr();
|
|
4659
4660
|
function r(e, r) {
|
|
4660
4661
|
let i = new n(e, r), a = new t(i);
|
|
4661
4662
|
try {
|
|
@@ -4665,13 +4666,13 @@ function oi() {
|
|
|
4665
4666
|
}
|
|
4666
4667
|
return a.root;
|
|
4667
4668
|
}
|
|
4668
|
-
return
|
|
4669
|
+
return si = r, r.default = r, e.registerParse(r), si;
|
|
4669
4670
|
}
|
|
4670
|
-
var
|
|
4671
|
-
function
|
|
4672
|
-
if (
|
|
4673
|
-
|
|
4674
|
-
let { isClean: e, my: t } =
|
|
4671
|
+
var ui, di;
|
|
4672
|
+
function fi() {
|
|
4673
|
+
if (di) return ui;
|
|
4674
|
+
di = 1;
|
|
4675
|
+
let { isClean: e, my: t } = er(), n = wr(), r = or(), i = Ar(), a = Nr(), o = Ir(), s = Hr(), c = li(), l = Zr(), u = {
|
|
4675
4676
|
atrule: "AtRule",
|
|
4676
4677
|
comment: "Comment",
|
|
4677
4678
|
decl: "Declaration",
|
|
@@ -4984,13 +4985,13 @@ function li() {
|
|
|
4984
4985
|
}
|
|
4985
4986
|
return v.registerPostcss = (e) => {
|
|
4986
4987
|
_ = e;
|
|
4987
|
-
},
|
|
4988
|
+
}, ui = v, v.default = v, l.registerLazyResult(v), a.registerLazyResult(v), ui;
|
|
4988
4989
|
}
|
|
4989
|
-
var
|
|
4990
|
-
function
|
|
4991
|
-
if (
|
|
4992
|
-
|
|
4993
|
-
let e =
|
|
4990
|
+
var pi, mi;
|
|
4991
|
+
function hi() {
|
|
4992
|
+
if (mi) return pi;
|
|
4993
|
+
mi = 1;
|
|
4994
|
+
let e = wr(), t = or(), n = Ir(), r = li(), i = Hr();
|
|
4994
4995
|
class a {
|
|
4995
4996
|
constructor(n, r, a) {
|
|
4996
4997
|
r = r.toString(), this.stringified = !1, this._processor = n, this._css = r, this._opts = a, this._map = void 0;
|
|
@@ -5061,13 +5062,13 @@ function fi() {
|
|
|
5061
5062
|
return "NoWorkResult";
|
|
5062
5063
|
}
|
|
5063
5064
|
}
|
|
5064
|
-
return
|
|
5065
|
+
return pi = a, a.default = a, pi;
|
|
5065
5066
|
}
|
|
5066
|
-
var
|
|
5067
|
-
function
|
|
5068
|
-
if (
|
|
5069
|
-
|
|
5070
|
-
let e =
|
|
5067
|
+
var gi, _i;
|
|
5068
|
+
function vi() {
|
|
5069
|
+
if (_i) return gi;
|
|
5070
|
+
_i = 1;
|
|
5071
|
+
let e = hi(), t = fi(), n = Nr(), r = Zr();
|
|
5071
5072
|
class i {
|
|
5072
5073
|
constructor(e = []) {
|
|
5073
5074
|
this.version = "8.4.38", this.plugins = this.normalize(e);
|
|
@@ -5089,13 +5090,13 @@ function hi() {
|
|
|
5089
5090
|
return this.plugins = this.plugins.concat(this.normalize([e])), this;
|
|
5090
5091
|
}
|
|
5091
5092
|
}
|
|
5092
|
-
return
|
|
5093
|
+
return gi = i, i.default = i, r.registerProcessor(i), n.registerProcessor(i), gi;
|
|
5093
5094
|
}
|
|
5094
|
-
var
|
|
5095
|
-
function
|
|
5096
|
-
if (
|
|
5097
|
-
|
|
5098
|
-
let e =
|
|
5095
|
+
var yi, bi;
|
|
5096
|
+
function xi() {
|
|
5097
|
+
if (bi) return yi;
|
|
5098
|
+
bi = 1;
|
|
5099
|
+
let e = fr(), t = vr(), n = Dr(), r = Jr(), i = xr(), a = Zr(), o = ri();
|
|
5099
5100
|
function s(c, l) {
|
|
5100
5101
|
if (Array.isArray(c)) return c.map((e) => s(e));
|
|
5101
5102
|
let { inputs: u, ...d } = c;
|
|
@@ -5123,13 +5124,13 @@ function vi() {
|
|
|
5123
5124
|
if (d.type === "atrule") return new r(d);
|
|
5124
5125
|
throw Error("Unknown node type: " + c.type);
|
|
5125
5126
|
}
|
|
5126
|
-
return
|
|
5127
|
+
return yi = s, s.default = s, yi;
|
|
5127
5128
|
}
|
|
5128
|
-
var
|
|
5129
|
-
function
|
|
5130
|
-
if (
|
|
5131
|
-
|
|
5132
|
-
let e =
|
|
5129
|
+
var Si, Ci;
|
|
5130
|
+
function wi() {
|
|
5131
|
+
if (Ci) return Si;
|
|
5132
|
+
Ci = 1;
|
|
5133
|
+
let e = Zn(), t = fr(), n = fi(), r = Ar(), i = vi(), a = or(), o = xi(), s = Nr(), c = zr(), l = Dr(), u = Jr(), d = Hr(), f = xr(), p = li(), m = ei(), h = ri(), g = Zr(), _ = lr();
|
|
5133
5134
|
function v(...e) {
|
|
5134
5135
|
return e.length === 1 && Array.isArray(e[0]) && (e = e[0]), new i(e);
|
|
5135
5136
|
}
|
|
@@ -5146,11 +5147,11 @@ function xi() {
|
|
|
5146
5147
|
} }), r.process = function(e, t, n) {
|
|
5147
5148
|
return v([r(n)]).process(e, t);
|
|
5148
5149
|
}, r;
|
|
5149
|
-
}, v.stringify = a, v.parse = p, v.fromJSON = o, v.list = m, v.comment = (e) => new l(e), v.atRule = (e) => new u(e), v.decl = (e) => new t(e), v.rule = (e) => new h(e), v.root = (e) => new g(e), v.document = (e) => new s(e), v.CssSyntaxError = e, v.Declaration = t, v.Container = r, v.Processor = i, v.Document = s, v.Comment = l, v.Warning = c, v.AtRule = u, v.Result = d, v.Input = f, v.Rule = h, v.Root = g, v.Node = _, n.registerPostcss(v),
|
|
5150
|
+
}, v.stringify = a, v.parse = p, v.fromJSON = o, v.list = m, v.comment = (e) => new l(e), v.atRule = (e) => new u(e), v.decl = (e) => new t(e), v.rule = (e) => new h(e), v.root = (e) => new g(e), v.document = (e) => new s(e), v.CssSyntaxError = e, v.Declaration = t, v.Container = r, v.Processor = i, v.Document = s, v.Comment = l, v.Warning = c, v.AtRule = u, v.Result = d, v.Input = f, v.Rule = h, v.Root = g, v.Node = _, n.registerPostcss(v), Si = v, v.default = v, Si;
|
|
5150
5151
|
}
|
|
5151
|
-
var V = /* @__PURE__ */
|
|
5152
|
+
var V = /* @__PURE__ */ Wn(wi());
|
|
5152
5153
|
V.stringify, V.fromJSON, V.plugin, V.parse, V.list, V.document, V.comment, V.atRule, V.rule, V.decl, V.root, V.CssSyntaxError, V.Declaration, V.Container, V.Processor, V.Document, V.Comment, V.Warning, V.AtRule, V.Result, V.Input, V.Rule, V.Root, V.Node;
|
|
5153
|
-
var
|
|
5154
|
+
var Ti = class e {
|
|
5154
5155
|
constructor(...e) {
|
|
5155
5156
|
z(this, "parentElement", null), z(this, "parentNode", null), z(this, "ownerDocument"), z(this, "firstChild", null), z(this, "lastChild", null), z(this, "previousSibling", null), z(this, "nextSibling", null), z(this, "ELEMENT_NODE", 1), z(this, "TEXT_NODE", 3), z(this, "nodeType"), z(this, "nodeName"), z(this, "RRNodeType");
|
|
5156
5157
|
}
|
|
@@ -5180,7 +5181,7 @@ var Si = class e {
|
|
|
5180
5181
|
toString() {
|
|
5181
5182
|
return "RRNode";
|
|
5182
5183
|
}
|
|
5183
|
-
},
|
|
5184
|
+
}, Ei = {
|
|
5184
5185
|
Node: [
|
|
5185
5186
|
"childNodes",
|
|
5186
5187
|
"parentNode",
|
|
@@ -5199,16 +5200,16 @@ var Si = class e {
|
|
|
5199
5200
|
"querySelectorAll"
|
|
5200
5201
|
],
|
|
5201
5202
|
MutationObserver: []
|
|
5202
|
-
},
|
|
5203
|
+
}, Di = {
|
|
5203
5204
|
Node: ["contains", "getRootNode"],
|
|
5204
5205
|
ShadowRoot: ["getSelection"],
|
|
5205
5206
|
Element: [],
|
|
5206
5207
|
MutationObserver: ["constructor"]
|
|
5207
|
-
},
|
|
5208
|
-
function
|
|
5209
|
-
if (
|
|
5210
|
-
let t = globalThis[e], n = t.prototype, r = e in
|
|
5211
|
-
if (i && o && !
|
|
5208
|
+
}, Oi = {}, ki = {}, Ai = () => !!globalThis.Zone;
|
|
5209
|
+
function ji(e) {
|
|
5210
|
+
if (Oi[e]) return Oi[e];
|
|
5211
|
+
let t = globalThis[e], n = t.prototype, r = e in Ei ? Ei[e] : void 0, i = !!(r && r.every((e) => !!(Object.getOwnPropertyDescriptor(n, e)?.get)?.toString().includes("[native code]"))), a = e in Di ? Di[e] : void 0, o = !!(a && a.every((e) => typeof n[e] == "function" && n[e]?.toString().includes("[native code]")));
|
|
5212
|
+
if (i && o && !Ai()) return Oi[e] = t.prototype, t.prototype;
|
|
5212
5213
|
try {
|
|
5213
5214
|
let r = document.createElement("iframe");
|
|
5214
5215
|
r.style.display = "none", document.body.appendChild(r);
|
|
@@ -5217,79 +5218,79 @@ function Oi(e) {
|
|
|
5217
5218
|
let a = i[e].prototype;
|
|
5218
5219
|
if (!a) return r.remove(), n;
|
|
5219
5220
|
let o = navigator.userAgent;
|
|
5220
|
-
return o.includes("Safari") && !o.includes("Chrome") ? (r.classList.add("rr-block"), r.setAttribute("__rrwebUntaintedMutationObserver", ""),
|
|
5221
|
+
return o.includes("Safari") && !o.includes("Chrome") ? (r.classList.add("rr-block"), r.setAttribute("__rrwebUntaintedMutationObserver", ""), ki[e] = () => r.remove()) : r.remove(), Oi[e] = a;
|
|
5221
5222
|
} catch {
|
|
5222
5223
|
return n;
|
|
5223
5224
|
}
|
|
5224
5225
|
}
|
|
5225
|
-
var
|
|
5226
|
+
var Mi = {};
|
|
5226
5227
|
function H(e, t, n) {
|
|
5227
|
-
let r =
|
|
5228
|
+
let r = Mi[e]?.[n];
|
|
5228
5229
|
if (r) return r.call(t);
|
|
5229
|
-
let i =
|
|
5230
|
-
return a ? ((
|
|
5230
|
+
let i = ji(e), a = Object.getOwnPropertyDescriptor(i, n)?.get;
|
|
5231
|
+
return a ? ((Mi[e] || (Mi[e] = {}))[n] = a, a.call(t)) : t[n];
|
|
5231
5232
|
}
|
|
5232
|
-
var
|
|
5233
|
-
function
|
|
5233
|
+
var Ni = {};
|
|
5234
|
+
function Pi(e, t, n) {
|
|
5234
5235
|
let r = `${e}.${String(n)}`;
|
|
5235
|
-
if (
|
|
5236
|
-
let i =
|
|
5237
|
-
return typeof i == "function" ? (
|
|
5236
|
+
if (Ni[r]) return Ni[r].bind(t);
|
|
5237
|
+
let i = ji(e)[n];
|
|
5238
|
+
return typeof i == "function" ? (Ni[r] = i, i.bind(t)) : t[n];
|
|
5238
5239
|
}
|
|
5239
|
-
function
|
|
5240
|
+
function Fi(e) {
|
|
5240
5241
|
return H("Node", e, "ownerDocument");
|
|
5241
5242
|
}
|
|
5242
|
-
function
|
|
5243
|
+
function Ii(e) {
|
|
5243
5244
|
return H("Node", e, "childNodes");
|
|
5244
5245
|
}
|
|
5245
|
-
function
|
|
5246
|
+
function Li(e) {
|
|
5246
5247
|
return H("Node", e, "parentNode");
|
|
5247
5248
|
}
|
|
5248
|
-
function
|
|
5249
|
+
function Ri(e) {
|
|
5249
5250
|
return H("Node", e, "parentElement");
|
|
5250
5251
|
}
|
|
5251
|
-
function
|
|
5252
|
+
function zi(e) {
|
|
5252
5253
|
return H("Node", e, "textContent");
|
|
5253
5254
|
}
|
|
5254
|
-
function
|
|
5255
|
+
function Bi(e) {
|
|
5255
5256
|
return H("Node", e, "firstChild");
|
|
5256
5257
|
}
|
|
5257
|
-
function
|
|
5258
|
+
function Vi(e) {
|
|
5258
5259
|
return H("Node", e, "lastChild");
|
|
5259
5260
|
}
|
|
5260
|
-
function
|
|
5261
|
+
function Hi(e) {
|
|
5261
5262
|
return H("Node", e, "nextSibling");
|
|
5262
5263
|
}
|
|
5263
|
-
function
|
|
5264
|
+
function Ui(e) {
|
|
5264
5265
|
return H("Node", e, "previousSibling");
|
|
5265
5266
|
}
|
|
5266
|
-
function
|
|
5267
|
-
return
|
|
5267
|
+
function Wi(e, t) {
|
|
5268
|
+
return Pi("Node", e, "contains")(t);
|
|
5268
5269
|
}
|
|
5269
|
-
function
|
|
5270
|
-
return
|
|
5270
|
+
function Gi(e) {
|
|
5271
|
+
return Pi("Node", e, "getRootNode")();
|
|
5271
5272
|
}
|
|
5272
|
-
function
|
|
5273
|
+
function Ki(e) {
|
|
5273
5274
|
return !e || !("host" in e) ? null : H("ShadowRoot", e, "host");
|
|
5274
5275
|
}
|
|
5275
|
-
function
|
|
5276
|
+
function qi(e) {
|
|
5276
5277
|
return e.styleSheets;
|
|
5277
5278
|
}
|
|
5278
|
-
function
|
|
5279
|
+
function Ji(e) {
|
|
5279
5280
|
return !e || !("shadowRoot" in e) ? null : H("Element", e, "shadowRoot");
|
|
5280
5281
|
}
|
|
5281
|
-
function
|
|
5282
|
+
function Yi(e, t) {
|
|
5282
5283
|
return H("Element", e, "querySelector")(t);
|
|
5283
5284
|
}
|
|
5284
|
-
function
|
|
5285
|
+
function Xi(e, t) {
|
|
5285
5286
|
return H("Element", e, "querySelectorAll")(t);
|
|
5286
5287
|
}
|
|
5287
|
-
function
|
|
5288
|
-
return [
|
|
5288
|
+
function Zi() {
|
|
5289
|
+
return [ji("MutationObserver").constructor, ki.MutationObserver ?? (() => {})];
|
|
5289
5290
|
}
|
|
5290
|
-
var
|
|
5291
|
-
/* @__PURE__ */ /[1-9][0-9]{12}/.test(Date.now().toString()) || (
|
|
5292
|
-
function
|
|
5291
|
+
var Qi = Date.now;
|
|
5292
|
+
/* @__PURE__ */ /[1-9][0-9]{12}/.test(Date.now().toString()) || (Qi = () => (/* @__PURE__ */ new Date()).getTime());
|
|
5293
|
+
function $i(e, t, n) {
|
|
5293
5294
|
try {
|
|
5294
5295
|
if (!(t in e)) return () => {};
|
|
5295
5296
|
let r = e[t], i = n(r);
|
|
@@ -5304,25 +5305,25 @@ function Xi(e, t, n) {
|
|
|
5304
5305
|
}
|
|
5305
5306
|
}
|
|
5306
5307
|
var U = {
|
|
5307
|
-
ownerDocument:
|
|
5308
|
-
childNodes:
|
|
5309
|
-
parentNode:
|
|
5310
|
-
parentElement:
|
|
5311
|
-
textContent:
|
|
5312
|
-
firstChild:
|
|
5313
|
-
lastChild:
|
|
5314
|
-
nextSibling:
|
|
5315
|
-
previousSibling:
|
|
5316
|
-
contains:
|
|
5317
|
-
getRootNode:
|
|
5318
|
-
host:
|
|
5319
|
-
styleSheets:
|
|
5320
|
-
shadowRoot:
|
|
5321
|
-
querySelector:
|
|
5322
|
-
querySelectorAll:
|
|
5323
|
-
nowTimestamp:
|
|
5324
|
-
mutationObserverCtor:
|
|
5325
|
-
patch:
|
|
5308
|
+
ownerDocument: Fi,
|
|
5309
|
+
childNodes: Ii,
|
|
5310
|
+
parentNode: Li,
|
|
5311
|
+
parentElement: Ri,
|
|
5312
|
+
textContent: zi,
|
|
5313
|
+
firstChild: Bi,
|
|
5314
|
+
lastChild: Vi,
|
|
5315
|
+
nextSibling: Hi,
|
|
5316
|
+
previousSibling: Ui,
|
|
5317
|
+
contains: Wi,
|
|
5318
|
+
getRootNode: Gi,
|
|
5319
|
+
host: Ki,
|
|
5320
|
+
styleSheets: qi,
|
|
5321
|
+
shadowRoot: Ji,
|
|
5322
|
+
querySelector: Yi,
|
|
5323
|
+
querySelectorAll: Xi,
|
|
5324
|
+
nowTimestamp: Qi,
|
|
5325
|
+
mutationObserverCtor: Zi,
|
|
5326
|
+
patch: $i
|
|
5326
5327
|
};
|
|
5327
5328
|
function W(e, t, n = document) {
|
|
5328
5329
|
let r = {
|
|
@@ -5331,28 +5332,28 @@ function W(e, t, n = document) {
|
|
|
5331
5332
|
};
|
|
5332
5333
|
return n.addEventListener(e, t, r), () => n.removeEventListener(e, t, r);
|
|
5333
5334
|
}
|
|
5334
|
-
var
|
|
5335
|
+
var ea = "Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.", ta = {
|
|
5335
5336
|
map: {},
|
|
5336
5337
|
getId() {
|
|
5337
|
-
return console.error(
|
|
5338
|
+
return console.error(ea), -1;
|
|
5338
5339
|
},
|
|
5339
5340
|
getNode() {
|
|
5340
|
-
return console.error(
|
|
5341
|
+
return console.error(ea), null;
|
|
5341
5342
|
},
|
|
5342
5343
|
removeNodeFromMap() {
|
|
5343
|
-
console.error(
|
|
5344
|
+
console.error(ea);
|
|
5344
5345
|
},
|
|
5345
5346
|
has() {
|
|
5346
|
-
return console.error(
|
|
5347
|
+
return console.error(ea), !1;
|
|
5347
5348
|
},
|
|
5348
5349
|
reset() {
|
|
5349
|
-
console.error(
|
|
5350
|
+
console.error(ea);
|
|
5350
5351
|
}
|
|
5351
5352
|
};
|
|
5352
|
-
typeof window < "u" && window.Proxy && window.Reflect && (
|
|
5353
|
-
return t === "map" && console.error(
|
|
5353
|
+
typeof window < "u" && window.Proxy && window.Reflect && (ta = new Proxy(ta, { get(e, t, n) {
|
|
5354
|
+
return t === "map" && console.error(ea), Reflect.get(e, t, n);
|
|
5354
5355
|
} }));
|
|
5355
|
-
function
|
|
5356
|
+
function na(e, t, n = {}) {
|
|
5356
5357
|
let r = null, i = 0;
|
|
5357
5358
|
return function(...a) {
|
|
5358
5359
|
let o = Date.now();
|
|
@@ -5363,70 +5364,70 @@ function $i(e, t, n = {}) {
|
|
|
5363
5364
|
}, s));
|
|
5364
5365
|
};
|
|
5365
5366
|
}
|
|
5366
|
-
function
|
|
5367
|
+
function ra(e, t, n, r, i = window) {
|
|
5367
5368
|
let a = i.Object.getOwnPropertyDescriptor(e, t);
|
|
5368
5369
|
return i.Object.defineProperty(e, t, r ? n : { set(e) {
|
|
5369
5370
|
setTimeout(() => {
|
|
5370
5371
|
n.set.call(this, e);
|
|
5371
5372
|
}, 0), a && a.set && a.set.call(this, e);
|
|
5372
|
-
} }), () =>
|
|
5373
|
+
} }), () => ra(e, t, a || {}, !0);
|
|
5373
5374
|
}
|
|
5374
|
-
function
|
|
5375
|
+
function ia(e) {
|
|
5375
5376
|
let t = e.document;
|
|
5376
5377
|
return {
|
|
5377
5378
|
left: t.scrollingElement ? t.scrollingElement.scrollLeft : e.pageXOffset === void 0 ? t.documentElement.scrollLeft || t?.body && U.parentElement(t.body)?.scrollLeft || t?.body?.scrollLeft || 0 : e.pageXOffset,
|
|
5378
5379
|
top: t.scrollingElement ? t.scrollingElement.scrollTop : e.pageYOffset === void 0 ? t?.documentElement.scrollTop || t?.body && U.parentElement(t.body)?.scrollTop || t?.body?.scrollTop || 0 : e.pageYOffset
|
|
5379
5380
|
};
|
|
5380
5381
|
}
|
|
5381
|
-
function
|
|
5382
|
+
function aa() {
|
|
5382
5383
|
return window.innerHeight || document.documentElement && document.documentElement.clientHeight || document.body && document.body.clientHeight;
|
|
5383
5384
|
}
|
|
5384
|
-
function
|
|
5385
|
+
function oa() {
|
|
5385
5386
|
return window.innerWidth || document.documentElement && document.documentElement.clientWidth || document.body && document.body.clientWidth;
|
|
5386
5387
|
}
|
|
5387
|
-
function
|
|
5388
|
+
function sa(e) {
|
|
5388
5389
|
return e ? e.nodeType === e.ELEMENT_NODE ? e : U.parentElement(e) : null;
|
|
5389
5390
|
}
|
|
5390
5391
|
function G(e, t, n, r) {
|
|
5391
5392
|
if (!e) return !1;
|
|
5392
|
-
let i =
|
|
5393
|
+
let i = sa(e);
|
|
5393
5394
|
if (!i) return !1;
|
|
5394
5395
|
try {
|
|
5395
5396
|
if (typeof t == "string") {
|
|
5396
5397
|
if (i.classList.contains(t) || r && i.closest("." + t) !== null) return !0;
|
|
5397
|
-
} else if (
|
|
5398
|
+
} else if (Je(i, t, r)) return !0;
|
|
5398
5399
|
} catch {}
|
|
5399
5400
|
return !!(n && (i.matches(n) || r && i.closest(n) !== null));
|
|
5400
5401
|
}
|
|
5401
|
-
function
|
|
5402
|
+
function ca(e, t) {
|
|
5402
5403
|
return t.getId(e) !== -1;
|
|
5403
5404
|
}
|
|
5404
|
-
function
|
|
5405
|
-
return e.tagName === "TITLE" && n.headTitleMutations ? !0 : t.getId(e) ===
|
|
5405
|
+
function la(e, t, n) {
|
|
5406
|
+
return e.tagName === "TITLE" && n.headTitleMutations ? !0 : t.getId(e) === Ne;
|
|
5406
5407
|
}
|
|
5407
|
-
function
|
|
5408
|
-
if (
|
|
5408
|
+
function ua(e, t) {
|
|
5409
|
+
if (oe(e)) return !1;
|
|
5409
5410
|
let n = t.getId(e);
|
|
5410
5411
|
if (!t.has(n)) return !0;
|
|
5411
5412
|
let r = U.parentNode(e);
|
|
5412
|
-
return r && r.nodeType === e.DOCUMENT_NODE ? !1 : !r ||
|
|
5413
|
+
return r && r.nodeType === e.DOCUMENT_NODE ? !1 : !r || ua(r, t);
|
|
5413
5414
|
}
|
|
5414
|
-
function
|
|
5415
|
+
function da(e) {
|
|
5415
5416
|
return !!e.changedTouches;
|
|
5416
5417
|
}
|
|
5417
|
-
function
|
|
5418
|
+
function fa(e = window) {
|
|
5418
5419
|
"NodeList" in e && !e.NodeList.prototype.forEach && (e.NodeList.prototype.forEach = Array.prototype.forEach), "DOMTokenList" in e && !e.DOMTokenList.prototype.forEach && (e.DOMTokenList.prototype.forEach = Array.prototype.forEach);
|
|
5419
5420
|
}
|
|
5420
|
-
function
|
|
5421
|
+
function pa(e, t) {
|
|
5421
5422
|
return !!(e.nodeName === "IFRAME" && t.getMeta(e));
|
|
5422
5423
|
}
|
|
5423
|
-
function
|
|
5424
|
+
function ma(e, t) {
|
|
5424
5425
|
return !!(e.nodeName === "LINK" && e.nodeType === e.ELEMENT_NODE && e.getAttribute && e.getAttribute("rel") === "stylesheet" && t.getMeta(e));
|
|
5425
5426
|
}
|
|
5426
|
-
function
|
|
5427
|
-
return e ? e instanceof
|
|
5427
|
+
function ha(e) {
|
|
5428
|
+
return e ? e instanceof Ti && "shadowRoot" in e ? !!e.shadowRoot : !!U.shadowRoot(e) : !1;
|
|
5428
5429
|
}
|
|
5429
|
-
var
|
|
5430
|
+
var ga = class {
|
|
5430
5431
|
constructor() {
|
|
5431
5432
|
n(this, "id", 1), n(this, "styleIDMap", /* @__PURE__ */ new WeakMap()), n(this, "idStyleMap", /* @__PURE__ */ new Map());
|
|
5432
5433
|
}
|
|
@@ -5451,26 +5452,26 @@ var pa = class {
|
|
|
5451
5452
|
return this.id++;
|
|
5452
5453
|
}
|
|
5453
5454
|
};
|
|
5454
|
-
function
|
|
5455
|
+
function _a(e) {
|
|
5455
5456
|
let t = null;
|
|
5456
5457
|
return "getRootNode" in e && U.getRootNode(e)?.nodeType === Node.DOCUMENT_FRAGMENT_NODE && U.host(U.getRootNode(e)) && (t = U.host(U.getRootNode(e))), t;
|
|
5457
5458
|
}
|
|
5458
|
-
function
|
|
5459
|
+
function va(e) {
|
|
5459
5460
|
let t = e, n;
|
|
5460
|
-
for (; n =
|
|
5461
|
+
for (; n = _a(t);) t = n;
|
|
5461
5462
|
return t;
|
|
5462
5463
|
}
|
|
5463
|
-
function
|
|
5464
|
+
function ya(e) {
|
|
5464
5465
|
let t = U.ownerDocument(e);
|
|
5465
5466
|
if (!t) return !1;
|
|
5466
|
-
let n =
|
|
5467
|
+
let n = va(e);
|
|
5467
5468
|
return U.contains(t, n);
|
|
5468
5469
|
}
|
|
5469
|
-
function
|
|
5470
|
+
function ba(e) {
|
|
5470
5471
|
let t = U.ownerDocument(e);
|
|
5471
|
-
return t ? U.contains(t, e) ||
|
|
5472
|
+
return t ? U.contains(t, e) || ya(e) : !1;
|
|
5472
5473
|
}
|
|
5473
|
-
var K = /* @__PURE__ */ ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e[e.Asset = 7] = "Asset", e))(K || {}), q = /* @__PURE__ */ ((e) => (e[e.Mutation = 0] = "Mutation", e[e.MouseMove = 1] = "MouseMove", e[e.MouseInteraction = 2] = "MouseInteraction", e[e.Scroll = 3] = "Scroll", e[e.ViewportResize = 4] = "ViewportResize", e[e.Input = 5] = "Input", e[e.TouchMove = 6] = "TouchMove", e[e.MediaInteraction = 7] = "MediaInteraction", e[e.StyleSheetRule = 8] = "StyleSheetRule", e[e.CanvasMutation = 9] = "CanvasMutation", e[e.Font = 10] = "Font", e[e.Log = 11] = "Log", e[e.Drag = 12] = "Drag", e[e.StyleDeclaration = 13] = "StyleDeclaration", e[e.Selection = 14] = "Selection", e[e.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e[e.CustomElement = 16] = "CustomElement", e))(q || {}), J = /* @__PURE__ */ ((e) => (e[e.MouseUp = 0] = "MouseUp", e[e.MouseDown = 1] = "MouseDown", e[e.Click = 2] = "Click", e[e.ContextMenu = 3] = "ContextMenu", e[e.DblClick = 4] = "DblClick", e[e.Focus = 5] = "Focus", e[e.Blur = 6] = "Blur", e[e.TouchStart = 7] = "TouchStart", e[e.TouchMove_Departed = 8] = "TouchMove_Departed", e[e.TouchEnd = 9] = "TouchEnd", e[e.TouchCancel = 10] = "TouchCancel", e))(J || {}),
|
|
5474
|
+
var K = /* @__PURE__ */ ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e[e.Asset = 7] = "Asset", e))(K || {}), q = /* @__PURE__ */ ((e) => (e[e.Mutation = 0] = "Mutation", e[e.MouseMove = 1] = "MouseMove", e[e.MouseInteraction = 2] = "MouseInteraction", e[e.Scroll = 3] = "Scroll", e[e.ViewportResize = 4] = "ViewportResize", e[e.Input = 5] = "Input", e[e.TouchMove = 6] = "TouchMove", e[e.MediaInteraction = 7] = "MediaInteraction", e[e.StyleSheetRule = 8] = "StyleSheetRule", e[e.CanvasMutation = 9] = "CanvasMutation", e[e.Font = 10] = "Font", e[e.Log = 11] = "Log", e[e.Drag = 12] = "Drag", e[e.StyleDeclaration = 13] = "StyleDeclaration", e[e.Selection = 14] = "Selection", e[e.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e[e.CustomElement = 16] = "CustomElement", e))(q || {}), J = /* @__PURE__ */ ((e) => (e[e.MouseUp = 0] = "MouseUp", e[e.MouseDown = 1] = "MouseDown", e[e.Click = 2] = "Click", e[e.ContextMenu = 3] = "ContextMenu", e[e.DblClick = 4] = "DblClick", e[e.Focus = 5] = "Focus", e[e.Blur = 6] = "Blur", e[e.TouchStart = 7] = "TouchStart", e[e.TouchMove_Departed = 8] = "TouchMove_Departed", e[e.TouchEnd = 9] = "TouchEnd", e[e.TouchCancel = 10] = "TouchCancel", e))(J || {}), xa = /* @__PURE__ */ ((e) => (e[e.Mouse = 0] = "Mouse", e[e.Pen = 1] = "Pen", e[e.Touch = 2] = "Touch", e))(xa || {}), Sa = /* @__PURE__ */ ((e) => (e[e["2D"] = 0] = "2D", e[e.WebGL = 1] = "WebGL", e[e.WebGL2 = 2] = "WebGL2", e))(Sa || {}), Ca = /* @__PURE__ */ ((e) => (e[e.Play = 0] = "Play", e[e.Pause = 1] = "Pause", e[e.Seeked = 2] = "Seeked", e[e.VolumeChange = 3] = "VolumeChange", e[e.RateChange = 4] = "RateChange", e))(Ca || {}), wa = /* @__PURE__ */ ((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))(wa || {}), Ta = (e, t) => `${e}@${t}`, Ea = class {
|
|
5474
5475
|
constructor() {
|
|
5475
5476
|
n(this, "frozen", !1), n(this, "locked", !1), n(this, "texts", []), n(this, "attributes", []), n(this, "attributeMap", /* @__PURE__ */ new WeakMap()), n(this, "removes", []), n(this, "mapRemoves", []), n(this, "movedMap", {}), n(this, "addedSet", /* @__PURE__ */ new Set()), n(this, "movedSet", /* @__PURE__ */ new Set()), n(this, "droppedSet", /* @__PURE__ */ new Set()), n(this, "removesSubTreeCache", /* @__PURE__ */ new Set()), n(this, "mutationCb"), n(this, "blockClass"), n(this, "blockSelector"), n(this, "maskTextClass"), n(this, "maskTextSelector"), n(this, "inlineStylesheet"), n(this, "maskInputOptions"), n(this, "maskTextFn"), n(this, "maskInputFn"), n(this, "keepIframeSrcFn"), n(this, "recordCanvas"), n(this, "inlineImages"), n(this, "slimDOMOptions"), n(this, "dataURLOptions"), n(this, "doc"), n(this, "mirror"), n(this, "iframeManager"), n(this, "stylesheetManager"), n(this, "shadowDomManager"), n(this, "canvasManager"), n(this, "processedNodeManager"), n(this, "unattachedDoc"), n(this, "processMutations", (e) => {
|
|
5476
5477
|
e.forEach(this.processMutation), this.emit();
|
|
@@ -5486,24 +5487,12 @@ var K = /* @__PURE__ */ ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded",
|
|
|
5486
5487
|
for (; this.addedSet.size;) {
|
|
5487
5488
|
if (n !== null && this.addedSet.has(U.previousSibling(n))) a = n, n = U.previousSibling(n);
|
|
5488
5489
|
else {
|
|
5489
|
-
for (this.addedSet.has(l.value) || (l = c.next()), n = l.value
|
|
5490
|
-
if (r = U.parentNode(n), this.addedSet.has(r)) {
|
|
5491
|
-
n = r;
|
|
5492
|
-
continue;
|
|
5493
|
-
}
|
|
5494
|
-
break;
|
|
5495
|
-
}
|
|
5490
|
+
for (this.addedSet.has(l.value) || (l = c.next()), n = l.value; r = U.parentNode(n), this.addedSet.has(r);) n = r;
|
|
5496
5491
|
if (s.has(r)) r = null;
|
|
5497
5492
|
else if (r) {
|
|
5498
|
-
if (
|
|
5499
|
-
else for (
|
|
5500
|
-
|
|
5501
|
-
n = a;
|
|
5502
|
-
continue;
|
|
5503
|
-
}
|
|
5504
|
-
break;
|
|
5505
|
-
}
|
|
5506
|
-
if (i = ae(r) ? this.mirror.getId(ma(n)) : this.mirror.getId(r), i === -1 && r.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
|
5493
|
+
if (ba(r) ? (o = ka(this.droppedSet, r) || this.removesSubTreeCache.has(r), o && ka(this.movedSet, n) && (o = !1)) : o = !0, this.addedSet.has(U.lastChild(r))) n = U.lastChild(r), a = null;
|
|
5494
|
+
else for (; a = U.nextSibling(n), this.addedSet.has(a);) n = a;
|
|
5495
|
+
if (i = oe(r) ? this.mirror.getId(_a(n)) : this.mirror.getId(r), i === -1 && r.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
|
5507
5496
|
let e = U.host(r);
|
|
5508
5497
|
i = this.mirror.getId(e);
|
|
5509
5498
|
}
|
|
@@ -5524,12 +5513,12 @@ var K = /* @__PURE__ */ ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded",
|
|
|
5524
5513
|
e === "STYLE" && t.has(i) && (u = !0);
|
|
5525
5514
|
}
|
|
5526
5515
|
let d = a ? this.mirror.getId(a) : null;
|
|
5527
|
-
for (; d ===
|
|
5516
|
+
for (; d === Ne;) a &&= U.nextSibling(a), d = a && this.mirror.getId(a);
|
|
5528
5517
|
if (d === -1) {
|
|
5529
5518
|
console.warn("Couldn't record new node. Couldn't find mirror id for nextSibling:", a), n = null;
|
|
5530
5519
|
continue;
|
|
5531
5520
|
}
|
|
5532
|
-
let f =
|
|
5521
|
+
let f = it(n, {
|
|
5533
5522
|
doc: this.doc,
|
|
5534
5523
|
mirror: this.mirror,
|
|
5535
5524
|
blockClass: this.blockClass,
|
|
@@ -5547,7 +5536,7 @@ var K = /* @__PURE__ */ ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded",
|
|
|
5547
5536
|
recordCanvas: this.recordCanvas,
|
|
5548
5537
|
inlineImages: this.inlineImages,
|
|
5549
5538
|
onSerialize: (e) => {
|
|
5550
|
-
|
|
5539
|
+
pa(e, this.mirror) && this.iframeManager.addIframe(e), ma(e, this.mirror) && this.stylesheetManager.trackLinkElement(e), ha(n) && this.shadowDomManager.addShadowRoot(U.shadowRoot(n), this.doc);
|
|
5551
5540
|
},
|
|
5552
5541
|
onIframeLoad: (e, t) => {
|
|
5553
5542
|
this.iframeManager.attachIframe(e, t), this.shadowDomManager.observeAttachShadow(e);
|
|
@@ -5604,11 +5593,11 @@ var K = /* @__PURE__ */ ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded",
|
|
|
5604
5593
|
maskInputFn: this.maskInputFn
|
|
5605
5594
|
});
|
|
5606
5595
|
}), n(this, "processMutation", (e) => {
|
|
5607
|
-
if (!
|
|
5596
|
+
if (!la(e.target, this.mirror, this.slimDOMOptions)) switch (e.type) {
|
|
5608
5597
|
case "characterData": {
|
|
5609
5598
|
let t = U.textContent(e.target);
|
|
5610
5599
|
!G(e.target, this.blockClass, this.blockSelector, !1) && t !== e.oldValue && this.texts.push({
|
|
5611
|
-
value:
|
|
5600
|
+
value: Ye(e.target, this.maskTextClass, this.maskTextSelector, !0) && t ? this.maskTextFn ? this.maskTextFn(t, sa(e.target)) : t.replace(/[\S]/g, "*") : t,
|
|
5612
5601
|
node: e.target
|
|
5613
5602
|
});
|
|
5614
5603
|
break;
|
|
@@ -5637,8 +5626,8 @@ var K = /* @__PURE__ */ ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded",
|
|
|
5637
5626
|
attributes: {},
|
|
5638
5627
|
styleDiff: {},
|
|
5639
5628
|
_unchangedStyles: {}
|
|
5640
|
-
}, this.attributes.push(a), this.attributeMap.set(e.target, a)), r === "type" && n === "input" && (e.oldValue || "").toLowerCase() === "password" && t.setAttribute("data-rr-is-password", "true"), !
|
|
5641
|
-
if (a.attributes[r] =
|
|
5629
|
+
}, this.attributes.push(a), this.attributeMap.set(e.target, a)), r === "type" && n === "input" && (e.oldValue || "").toLowerCase() === "password" && t.setAttribute("data-rr-is-password", "true"), !Ke(n, r)) {
|
|
5630
|
+
if (a.attributes[r] = Ge(this.doc, n, me(r), i), r === "style") {
|
|
5642
5631
|
if (!this.unattachedDoc) try {
|
|
5643
5632
|
this.unattachedDoc = document.implementation.createHTMLDocument();
|
|
5644
5633
|
} catch {
|
|
@@ -5662,23 +5651,23 @@ var K = /* @__PURE__ */ ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded",
|
|
|
5662
5651
|
return;
|
|
5663
5652
|
}
|
|
5664
5653
|
e.addedNodes.forEach((t) => this.genAdds(t, e.target)), e.removedNodes.forEach((t) => {
|
|
5665
|
-
let n = this.mirror.getId(t), r =
|
|
5666
|
-
G(e.target, this.blockClass, this.blockSelector, !1) ||
|
|
5654
|
+
let n = this.mirror.getId(t), r = oe(e.target) ? this.mirror.getId(U.host(e.target)) : this.mirror.getId(e.target);
|
|
5655
|
+
G(e.target, this.blockClass, this.blockSelector, !1) || la(t, this.mirror, this.slimDOMOptions) || !ca(t, this.mirror) || (this.addedSet.has(t) ? (Da(this.addedSet, t), this.droppedSet.add(t)) : this.addedSet.has(e.target) && n === -1 || ua(e.target, this.mirror) || (this.movedSet.has(t) && this.movedMap[Ta(n, r)] ? Da(this.movedSet, t) : (this.removes.push({
|
|
5667
5656
|
parentId: r,
|
|
5668
5657
|
id: n,
|
|
5669
|
-
isShadow:
|
|
5670
|
-
}),
|
|
5658
|
+
isShadow: oe(e.target) && M(e.target) ? !0 : void 0
|
|
5659
|
+
}), Oa(t, this.removesSubTreeCache))), this.mapRemoves.push(t));
|
|
5671
5660
|
});
|
|
5672
5661
|
}
|
|
5673
5662
|
}), n(this, "genAdds", (e, t) => {
|
|
5674
5663
|
if (!this.processedNodeManager.inOtherBuffer(e, this) && !(this.addedSet.has(e) || this.movedSet.has(e))) {
|
|
5675
5664
|
if (this.mirror.hasNode(e)) {
|
|
5676
|
-
if (
|
|
5665
|
+
if (la(e, this.mirror, this.slimDOMOptions)) return;
|
|
5677
5666
|
this.movedSet.add(e);
|
|
5678
5667
|
let n = null;
|
|
5679
|
-
t && this.mirror.hasNode(t) && (n = this.mirror.getId(t)), n && n !== -1 && (this.movedMap[
|
|
5668
|
+
t && this.mirror.hasNode(t) && (n = this.mirror.getId(t)), n && n !== -1 && (this.movedMap[Ta(this.mirror.getId(e), n)] = !0);
|
|
5680
5669
|
} else this.addedSet.add(e), this.droppedSet.delete(e);
|
|
5681
|
-
G(e, this.blockClass, this.blockSelector, !1) || (U.childNodes(e).forEach((e) => this.genAdds(e)),
|
|
5670
|
+
G(e, this.blockClass, this.blockSelector, !1) || (U.childNodes(e).forEach((e) => this.genAdds(e)), ha(e) && U.childNodes(U.shadowRoot(e)).forEach((t) => {
|
|
5682
5671
|
this.processedNodeManager.add(t, this), this.genAdds(t, e);
|
|
5683
5672
|
}));
|
|
5684
5673
|
}
|
|
@@ -5730,40 +5719,40 @@ var K = /* @__PURE__ */ ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded",
|
|
|
5730
5719
|
this.shadowDomManager.reset(), this.canvasManager.reset();
|
|
5731
5720
|
}
|
|
5732
5721
|
};
|
|
5733
|
-
function
|
|
5734
|
-
e.delete(t), U.childNodes(t).forEach((t) =>
|
|
5722
|
+
function Da(e, t) {
|
|
5723
|
+
e.delete(t), U.childNodes(t).forEach((t) => Da(e, t));
|
|
5735
5724
|
}
|
|
5736
|
-
function
|
|
5725
|
+
function Oa(e, t) {
|
|
5737
5726
|
let n = [e];
|
|
5738
5727
|
for (; n.length;) {
|
|
5739
5728
|
let e = n.pop();
|
|
5740
5729
|
t.has(e) || (t.add(e), U.childNodes(e).forEach((e) => n.push(e)));
|
|
5741
5730
|
}
|
|
5742
5731
|
}
|
|
5743
|
-
function
|
|
5744
|
-
return e.size !== 0 &&
|
|
5732
|
+
function ka(e, t) {
|
|
5733
|
+
return e.size !== 0 && Aa(e, t);
|
|
5745
5734
|
}
|
|
5746
|
-
function
|
|
5735
|
+
function Aa(e, t) {
|
|
5747
5736
|
if (e.has(t)) return !0;
|
|
5748
5737
|
let n = U.parentNode(t);
|
|
5749
|
-
return n ?
|
|
5738
|
+
return n ? Aa(e, n) : !1;
|
|
5750
5739
|
}
|
|
5751
|
-
var
|
|
5752
|
-
function
|
|
5753
|
-
|
|
5740
|
+
var ja;
|
|
5741
|
+
function Ma(e) {
|
|
5742
|
+
ja = e;
|
|
5754
5743
|
}
|
|
5755
|
-
function
|
|
5756
|
-
|
|
5744
|
+
function Na() {
|
|
5745
|
+
ja = void 0;
|
|
5757
5746
|
}
|
|
5758
|
-
var Y = (e) =>
|
|
5747
|
+
var Y = (e) => ja ? (...t) => {
|
|
5759
5748
|
try {
|
|
5760
5749
|
return e(...t);
|
|
5761
5750
|
} catch (e) {
|
|
5762
|
-
if (
|
|
5751
|
+
if (ja && ja(e) === !0) return;
|
|
5763
5752
|
throw e;
|
|
5764
5753
|
}
|
|
5765
|
-
} : e,
|
|
5766
|
-
function
|
|
5754
|
+
} : e, Pa = [];
|
|
5755
|
+
function Fa(e) {
|
|
5767
5756
|
try {
|
|
5768
5757
|
if ("composedPath" in e) {
|
|
5769
5758
|
let t = e.composedPath();
|
|
@@ -5772,10 +5761,10 @@ function Ma(e) {
|
|
|
5772
5761
|
} catch {}
|
|
5773
5762
|
return e && e.target;
|
|
5774
5763
|
}
|
|
5775
|
-
function
|
|
5776
|
-
let n = new
|
|
5777
|
-
|
|
5778
|
-
let [r, i] =
|
|
5764
|
+
function Ia(e, t) {
|
|
5765
|
+
let n = new Ea();
|
|
5766
|
+
Pa.push(n), n.init(e);
|
|
5767
|
+
let [r, i] = Zi(), a = new r(Y(n.processMutations.bind(n)));
|
|
5779
5768
|
return a.observe(t, {
|
|
5780
5769
|
attributes: !0,
|
|
5781
5770
|
attributeOldValue: !0,
|
|
@@ -5785,18 +5774,18 @@ function Na(e, t) {
|
|
|
5785
5774
|
subtree: !0
|
|
5786
5775
|
}), [a, i];
|
|
5787
5776
|
}
|
|
5788
|
-
function
|
|
5777
|
+
function La({ mousemoveCb: e, sampling: t, doc: n, mirror: r }) {
|
|
5789
5778
|
if (t.mousemove === !1) return () => {};
|
|
5790
|
-
let i = typeof t.mousemove == "number" ? t.mousemove : 50, a = typeof t.mousemoveCallback == "number" ? t.mousemoveCallback : 500, o = [], s, c =
|
|
5779
|
+
let i = typeof t.mousemove == "number" ? t.mousemove : 50, a = typeof t.mousemoveCallback == "number" ? t.mousemoveCallback : 500, o = [], s, c = na(Y((t) => {
|
|
5791
5780
|
let n = Date.now() - s;
|
|
5792
5781
|
e(o.map((e) => (e.timeOffset -= n, e)), t), o = [], s = null;
|
|
5793
|
-
}), a), l = Y(
|
|
5794
|
-
let t =
|
|
5795
|
-
s ||=
|
|
5782
|
+
}), a), l = Y(na(Y((e) => {
|
|
5783
|
+
let t = Fa(e), { clientX: n, clientY: i } = da(e) ? e.changedTouches[0] : e;
|
|
5784
|
+
s ||= Qi(), o.push({
|
|
5796
5785
|
x: n,
|
|
5797
5786
|
y: i,
|
|
5798
5787
|
id: r.getId(t),
|
|
5799
|
-
timeOffset:
|
|
5788
|
+
timeOffset: Qi() - s
|
|
5800
5789
|
}), c(typeof DragEvent < "u" && e instanceof DragEvent ? q.Drag : e instanceof MouseEvent ? q.MouseMove : q.TouchMove);
|
|
5801
5790
|
}), i, { trailing: !1 })), u = [
|
|
5802
5791
|
W("mousemove", l, n),
|
|
@@ -5807,26 +5796,26 @@ function Pa({ mousemoveCb: e, sampling: t, doc: n, mirror: r }) {
|
|
|
5807
5796
|
u.forEach((e) => e());
|
|
5808
5797
|
});
|
|
5809
5798
|
}
|
|
5810
|
-
function
|
|
5799
|
+
function Ra({ mouseInteractionCb: e, doc: t, mirror: n, blockClass: r, blockSelector: i, sampling: a }) {
|
|
5811
5800
|
if (a.mouseInteraction === !1) return () => {};
|
|
5812
5801
|
let o = a.mouseInteraction === !0 || a.mouseInteraction === void 0 ? {} : a.mouseInteraction, s = [], c = null, l = (t) => (a) => {
|
|
5813
|
-
let o =
|
|
5802
|
+
let o = Fa(a);
|
|
5814
5803
|
if (G(o, r, i, !0)) return;
|
|
5815
5804
|
let s = null, l = t;
|
|
5816
5805
|
if ("pointerType" in a) {
|
|
5817
5806
|
switch (a.pointerType) {
|
|
5818
5807
|
case "mouse":
|
|
5819
|
-
s =
|
|
5808
|
+
s = xa.Mouse;
|
|
5820
5809
|
break;
|
|
5821
5810
|
case "touch":
|
|
5822
|
-
s =
|
|
5811
|
+
s = xa.Touch;
|
|
5823
5812
|
break;
|
|
5824
|
-
case "pen": s =
|
|
5813
|
+
case "pen": s = xa.Pen;
|
|
5825
5814
|
}
|
|
5826
|
-
s ===
|
|
5827
|
-
} else
|
|
5828
|
-
s === null ? J[t] === J.Click && (s = c, c = null) : (c = s, (l.startsWith("Touch") && s ===
|
|
5829
|
-
let u =
|
|
5815
|
+
s === xa.Touch ? J[t] === J.MouseDown ? l = "TouchStart" : J[t] === J.MouseUp && (l = "TouchEnd") : xa.Pen;
|
|
5816
|
+
} else da(a) && (s = xa.Touch);
|
|
5817
|
+
s === null ? J[t] === J.Click && (s = c, c = null) : (c = s, (l.startsWith("Touch") && s === xa.Touch || l.startsWith("Mouse") && s === xa.Mouse) && (s = null));
|
|
5818
|
+
let u = da(a) ? a.changedTouches[0] : a;
|
|
5830
5819
|
if (!u) return;
|
|
5831
5820
|
let d = n.getId(o), { clientX: f, clientY: p } = u;
|
|
5832
5821
|
Y(e)({
|
|
@@ -5852,13 +5841,13 @@ function Fa({ mouseInteractionCb: e, doc: t, mirror: n, blockClass: r, blockSele
|
|
|
5852
5841
|
s.forEach((e) => e());
|
|
5853
5842
|
});
|
|
5854
5843
|
}
|
|
5855
|
-
function
|
|
5856
|
-
return W("scroll", Y(
|
|
5857
|
-
let o =
|
|
5844
|
+
function za({ scrollCb: e, doc: t, mirror: n, blockClass: r, blockSelector: i, sampling: a }) {
|
|
5845
|
+
return W("scroll", Y(na(Y((a) => {
|
|
5846
|
+
let o = Fa(a);
|
|
5858
5847
|
if (!o || G(o, r, i, !0)) return;
|
|
5859
5848
|
let s = n.getId(o);
|
|
5860
5849
|
if (o === t && t.defaultView) {
|
|
5861
|
-
let n =
|
|
5850
|
+
let n = ia(t.defaultView);
|
|
5862
5851
|
e({
|
|
5863
5852
|
id: s,
|
|
5864
5853
|
x: n.left,
|
|
@@ -5871,25 +5860,25 @@ function Ia({ scrollCb: e, doc: t, mirror: n, blockClass: r, blockSelector: i, s
|
|
|
5871
5860
|
});
|
|
5872
5861
|
}), a.scroll || 100)), t);
|
|
5873
5862
|
}
|
|
5874
|
-
function
|
|
5863
|
+
function Ba({ viewportResizeCb: e }, { win: t }) {
|
|
5875
5864
|
let n = -1, r = -1;
|
|
5876
|
-
return W("resize", Y(
|
|
5877
|
-
let t =
|
|
5865
|
+
return W("resize", Y(na(Y(() => {
|
|
5866
|
+
let t = aa(), i = oa();
|
|
5878
5867
|
(n !== t || r !== i) && (e({
|
|
5879
5868
|
width: Number(i),
|
|
5880
5869
|
height: Number(t)
|
|
5881
5870
|
}), n = t, r = i);
|
|
5882
5871
|
}), 200)), t);
|
|
5883
5872
|
}
|
|
5884
|
-
var
|
|
5873
|
+
var Va = [
|
|
5885
5874
|
"INPUT",
|
|
5886
5875
|
"TEXTAREA",
|
|
5887
5876
|
"SELECT"
|
|
5888
|
-
],
|
|
5889
|
-
function
|
|
5877
|
+
], Ha = /* @__PURE__ */ new WeakMap();
|
|
5878
|
+
function Ua({ inputCb: e, doc: t, mirror: n, blockClass: r, blockSelector: i, ignoreClass: a, ignoreSelector: o, maskInputOptions: s, maskInputFn: c, sampling: l, userTriggeredOnInput: u }) {
|
|
5890
5879
|
function d(e) {
|
|
5891
|
-
let n =
|
|
5892
|
-
if (n && d === "OPTION" && (n = U.parentElement(n)), !n || !d ||
|
|
5880
|
+
let n = Fa(e), l = e.isTrusted, d = n && n.tagName;
|
|
5881
|
+
if (n && d === "OPTION" && (n = U.parentElement(n)), !n || !d || Va.indexOf(d) < 0 || G(n, r, i, !0) || n.classList.contains(a) || o && n.matches(o)) return;
|
|
5893
5882
|
let p = n.value, m = !1, h = _e(n) || "";
|
|
5894
5883
|
h === "radio" || h === "checkbox" ? m = n.checked : (s[d.toLowerCase()] || s[h]) && (p = pe({
|
|
5895
5884
|
element: n,
|
|
@@ -5922,9 +5911,9 @@ function Ba({ inputCb: e, doc: t, mirror: n, blockClass: r, blockSelector: i, ig
|
|
|
5922
5911
|
});
|
|
5923
5912
|
}
|
|
5924
5913
|
function f(t, r) {
|
|
5925
|
-
let i =
|
|
5914
|
+
let i = Ha.get(t);
|
|
5926
5915
|
if (!i || i.text !== r.text || i.isChecked !== r.isChecked) {
|
|
5927
|
-
|
|
5916
|
+
Ha.set(t, r);
|
|
5928
5917
|
let i = n.getId(t);
|
|
5929
5918
|
Y(e)({
|
|
5930
5919
|
...r,
|
|
@@ -5944,7 +5933,7 @@ function Ba({ inputCb: e, doc: t, mirror: n, blockClass: r, blockSelector: i, ig
|
|
|
5944
5933
|
[m.HTMLSelectElement.prototype, "selectedIndex"],
|
|
5945
5934
|
[m.HTMLOptionElement.prototype, "selected"]
|
|
5946
5935
|
];
|
|
5947
|
-
return h && h.set && p.push(...g.map((e) =>
|
|
5936
|
+
return h && h.set && p.push(...g.map((e) => ra(e[0], e[1], { set() {
|
|
5948
5937
|
Y(d)({
|
|
5949
5938
|
target: this,
|
|
5950
5939
|
isTrusted: !1
|
|
@@ -5953,10 +5942,10 @@ function Ba({ inputCb: e, doc: t, mirror: n, blockClass: r, blockSelector: i, ig
|
|
|
5953
5942
|
p.forEach((e) => e());
|
|
5954
5943
|
});
|
|
5955
5944
|
}
|
|
5956
|
-
function
|
|
5945
|
+
function Wa(e) {
|
|
5957
5946
|
let t = [];
|
|
5958
5947
|
function n(e, t) {
|
|
5959
|
-
if (
|
|
5948
|
+
if (to("CSSGroupingRule") && e.parentRule instanceof CSSGroupingRule || to("CSSMediaRule") && e.parentRule instanceof CSSMediaRule || to("CSSSupportsRule") && e.parentRule instanceof CSSSupportsRule || to("CSSConditionRule") && e.parentRule instanceof CSSConditionRule) {
|
|
5960
5949
|
let r = Array.from(e.parentRule.cssRules).indexOf(e);
|
|
5961
5950
|
return t.unshift(r), n(e.parentRule, t);
|
|
5962
5951
|
}
|
|
@@ -5968,18 +5957,18 @@ function Va(e) {
|
|
|
5968
5957
|
}
|
|
5969
5958
|
return n(e, t);
|
|
5970
5959
|
}
|
|
5971
|
-
function
|
|
5960
|
+
function Ga(e, t, n) {
|
|
5972
5961
|
let r, i;
|
|
5973
5962
|
return e ? (e.ownerNode ? r = t.getId(e.ownerNode) : i = n.getId(e), {
|
|
5974
5963
|
styleId: i,
|
|
5975
5964
|
id: r
|
|
5976
5965
|
}) : {};
|
|
5977
5966
|
}
|
|
5978
|
-
function
|
|
5967
|
+
function Ka({ styleSheetRuleCb: e, mirror: t, stylesheetManager: n }, { win: r }) {
|
|
5979
5968
|
if (!r.CSSStyleSheet || !r.CSSStyleSheet.prototype) return () => {};
|
|
5980
5969
|
let i = r.CSSStyleSheet.prototype.insertRule;
|
|
5981
5970
|
r.CSSStyleSheet.prototype.insertRule = new Proxy(i, { apply: Y((r, i, a) => {
|
|
5982
|
-
let [o, s] = a, { id: c, styleId: l } =
|
|
5971
|
+
let [o, s] = a, { id: c, styleId: l } = Ga(i, t, n.styleMirror);
|
|
5983
5972
|
return (c && c !== -1 || l && l !== -1) && e({
|
|
5984
5973
|
id: c,
|
|
5985
5974
|
styleId: l,
|
|
@@ -5994,7 +5983,7 @@ function Ua({ styleSheetRuleCb: e, mirror: t, stylesheetManager: n }, { win: r }
|
|
|
5994
5983
|
};
|
|
5995
5984
|
let a = r.CSSStyleSheet.prototype.deleteRule;
|
|
5996
5985
|
r.CSSStyleSheet.prototype.deleteRule = new Proxy(a, { apply: Y((r, i, a) => {
|
|
5997
|
-
let [o] = a, { id: s, styleId: c } =
|
|
5986
|
+
let [o] = a, { id: s, styleId: c } = Ga(i, t, n.styleMirror);
|
|
5998
5987
|
return (s && s !== -1 || c && c !== -1) && e({
|
|
5999
5988
|
id: s,
|
|
6000
5989
|
styleId: c,
|
|
@@ -6005,7 +5994,7 @@ function Ua({ styleSheetRuleCb: e, mirror: t, stylesheetManager: n }, { win: r }
|
|
|
6005
5994
|
};
|
|
6006
5995
|
let o;
|
|
6007
5996
|
r.CSSStyleSheet.prototype.replace && (o = r.CSSStyleSheet.prototype.replace, r.CSSStyleSheet.prototype.replace = new Proxy(o, { apply: Y((r, i, a) => {
|
|
6008
|
-
let [o] = a, { id: s, styleId: c } =
|
|
5997
|
+
let [o] = a, { id: s, styleId: c } = Ga(i, t, n.styleMirror);
|
|
6009
5998
|
return (s && s !== -1 || c && c !== -1) && e({
|
|
6010
5999
|
id: s,
|
|
6011
6000
|
styleId: c,
|
|
@@ -6014,7 +6003,7 @@ function Ua({ styleSheetRuleCb: e, mirror: t, stylesheetManager: n }, { win: r }
|
|
|
6014
6003
|
}) }));
|
|
6015
6004
|
let s;
|
|
6016
6005
|
r.CSSStyleSheet.prototype.replaceSync && (s = r.CSSStyleSheet.prototype.replaceSync, r.CSSStyleSheet.prototype.replaceSync = new Proxy(s, { apply: Y((r, i, a) => {
|
|
6017
|
-
let [o] = a, { id: s, styleId: c } =
|
|
6006
|
+
let [o] = a, { id: s, styleId: c } = Ga(i, t, n.styleMirror);
|
|
6018
6007
|
return (s && s !== -1 || c && c !== -1) && e({
|
|
6019
6008
|
id: s,
|
|
6020
6009
|
styleId: c,
|
|
@@ -6022,28 +6011,28 @@ function Ua({ styleSheetRuleCb: e, mirror: t, stylesheetManager: n }, { win: r }
|
|
|
6022
6011
|
}), r.apply(i, a);
|
|
6023
6012
|
}) }));
|
|
6024
6013
|
let c = {};
|
|
6025
|
-
|
|
6014
|
+
no("CSSGroupingRule") ? c.CSSGroupingRule = r.CSSGroupingRule : (no("CSSMediaRule") && (c.CSSMediaRule = r.CSSMediaRule), no("CSSConditionRule") && (c.CSSConditionRule = r.CSSConditionRule), no("CSSSupportsRule") && (c.CSSSupportsRule = r.CSSSupportsRule));
|
|
6026
6015
|
let l = {};
|
|
6027
6016
|
return Object.entries(c).forEach(([r, i]) => {
|
|
6028
6017
|
l[r] = {
|
|
6029
6018
|
insertRule: i.prototype.insertRule,
|
|
6030
6019
|
deleteRule: i.prototype.deleteRule
|
|
6031
6020
|
}, i.prototype.insertRule = new Proxy(l[r].insertRule, { apply: Y((r, i, a) => {
|
|
6032
|
-
let [o, s] = a, { id: c, styleId: l } =
|
|
6021
|
+
let [o, s] = a, { id: c, styleId: l } = Ga(i.parentStyleSheet, t, n.styleMirror);
|
|
6033
6022
|
return (c && c !== -1 || l && l !== -1) && e({
|
|
6034
6023
|
id: c,
|
|
6035
6024
|
styleId: l,
|
|
6036
6025
|
adds: [{
|
|
6037
6026
|
rule: o,
|
|
6038
|
-
index: [...
|
|
6027
|
+
index: [...Wa(i), s || 0]
|
|
6039
6028
|
}]
|
|
6040
6029
|
}), r.apply(i, a);
|
|
6041
6030
|
}) }), i.prototype.deleteRule = new Proxy(l[r].deleteRule, { apply: Y((r, i, a) => {
|
|
6042
|
-
let [o] = a, { id: s, styleId: c } =
|
|
6031
|
+
let [o] = a, { id: s, styleId: c } = Ga(i.parentStyleSheet, t, n.styleMirror);
|
|
6043
6032
|
return (s && s !== -1 || c && c !== -1) && e({
|
|
6044
6033
|
id: s,
|
|
6045
6034
|
styleId: c,
|
|
6046
|
-
removes: [{ index: [...
|
|
6035
|
+
removes: [{ index: [...Wa(i), o] }]
|
|
6047
6036
|
}), r.apply(i, a);
|
|
6048
6037
|
}) });
|
|
6049
6038
|
}), Y(() => {
|
|
@@ -6052,7 +6041,7 @@ function Ua({ styleSheetRuleCb: e, mirror: t, stylesheetManager: n }, { win: r }
|
|
|
6052
6041
|
});
|
|
6053
6042
|
});
|
|
6054
6043
|
}
|
|
6055
|
-
function
|
|
6044
|
+
function qa({ mirror: e, stylesheetManager: t }, n) {
|
|
6056
6045
|
let r = null;
|
|
6057
6046
|
r = n.nodeName === "#document" ? e.getId(n) : e.getId(U.host(n));
|
|
6058
6047
|
let i = n.nodeName === "#document" ? n.defaultView?.Document : n.ownerDocument?.defaultView?.ShadowRoot, a = i?.prototype ? Object.getOwnPropertyDescriptor(i?.prototype, "adoptedStyleSheets") : void 0;
|
|
@@ -6078,7 +6067,7 @@ function Wa({ mirror: e, stylesheetManager: t }, n) {
|
|
|
6078
6067
|
});
|
|
6079
6068
|
}));
|
|
6080
6069
|
}
|
|
6081
|
-
function
|
|
6070
|
+
function Ja({ styleDeclarationCb: e, mirror: t, ignoreCSSAttributes: n, stylesheetManager: r }, { win: i }) {
|
|
6082
6071
|
let a = i.CSSStyleDeclaration.prototype.setProperty;
|
|
6083
6072
|
i.CSSStyleDeclaration.prototype.setProperty = new Proxy(a, { apply: Y((i, o, s) => {
|
|
6084
6073
|
let [c, l, u] = s;
|
|
@@ -6087,7 +6076,7 @@ function Ga({ styleDeclarationCb: e, mirror: t, ignoreCSSAttributes: n, styleshe
|
|
|
6087
6076
|
l,
|
|
6088
6077
|
u
|
|
6089
6078
|
]);
|
|
6090
|
-
let { id: d, styleId: f } =
|
|
6079
|
+
let { id: d, styleId: f } = Ga(o.parentRule?.parentStyleSheet, t, r.styleMirror);
|
|
6091
6080
|
return (d && d !== -1 || f && f !== -1) && e({
|
|
6092
6081
|
id: d,
|
|
6093
6082
|
styleId: f,
|
|
@@ -6096,27 +6085,27 @@ function Ga({ styleDeclarationCb: e, mirror: t, ignoreCSSAttributes: n, styleshe
|
|
|
6096
6085
|
value: l,
|
|
6097
6086
|
priority: u
|
|
6098
6087
|
},
|
|
6099
|
-
index:
|
|
6088
|
+
index: Wa(o.parentRule)
|
|
6100
6089
|
}), i.apply(o, s);
|
|
6101
6090
|
}) });
|
|
6102
6091
|
let o = i.CSSStyleDeclaration.prototype.removeProperty;
|
|
6103
6092
|
return i.CSSStyleDeclaration.prototype.removeProperty = new Proxy(o, { apply: Y((i, a, s) => {
|
|
6104
6093
|
let [c] = s;
|
|
6105
6094
|
if (n.has(c)) return o.apply(a, [c]);
|
|
6106
|
-
let { id: l, styleId: u } =
|
|
6095
|
+
let { id: l, styleId: u } = Ga(a.parentRule?.parentStyleSheet, t, r.styleMirror);
|
|
6107
6096
|
return (l && l !== -1 || u && u !== -1) && e({
|
|
6108
6097
|
id: l,
|
|
6109
6098
|
styleId: u,
|
|
6110
6099
|
remove: { property: c },
|
|
6111
|
-
index:
|
|
6100
|
+
index: Wa(a.parentRule)
|
|
6112
6101
|
}), i.apply(a, s);
|
|
6113
6102
|
}) }), Y(() => {
|
|
6114
6103
|
i.CSSStyleDeclaration.prototype.setProperty = a, i.CSSStyleDeclaration.prototype.removeProperty = o;
|
|
6115
6104
|
});
|
|
6116
6105
|
}
|
|
6117
|
-
function
|
|
6118
|
-
let o = Y((a) =>
|
|
6119
|
-
let o =
|
|
6106
|
+
function Ya({ mediaInteractionCb: e, blockClass: t, blockSelector: n, mirror: r, sampling: i, doc: a }) {
|
|
6107
|
+
let o = Y((a) => na(Y((i) => {
|
|
6108
|
+
let o = Fa(i);
|
|
6120
6109
|
if (!o || G(o, t, n, !0)) return;
|
|
6121
6110
|
let { currentTime: s, volume: c, muted: l, playbackRate: u, loop: d } = o;
|
|
6122
6111
|
e({
|
|
@@ -6129,17 +6118,17 @@ function Ka({ mediaInteractionCb: e, blockClass: t, blockSelector: n, mirror: r,
|
|
|
6129
6118
|
loop: d
|
|
6130
6119
|
});
|
|
6131
6120
|
}), i.media || 500)), s = [
|
|
6132
|
-
W("play", o(
|
|
6133
|
-
W("pause", o(
|
|
6134
|
-
W("seeked", o(
|
|
6135
|
-
W("volumechange", o(
|
|
6136
|
-
W("ratechange", o(
|
|
6121
|
+
W("play", o(Ca.Play), a),
|
|
6122
|
+
W("pause", o(Ca.Pause), a),
|
|
6123
|
+
W("seeked", o(Ca.Seeked), a),
|
|
6124
|
+
W("volumechange", o(Ca.VolumeChange), a),
|
|
6125
|
+
W("ratechange", o(Ca.RateChange), a)
|
|
6137
6126
|
];
|
|
6138
6127
|
return Y(() => {
|
|
6139
6128
|
s.forEach((e) => e());
|
|
6140
6129
|
});
|
|
6141
6130
|
}
|
|
6142
|
-
function
|
|
6131
|
+
function Xa({ fontCb: e, doc: t }) {
|
|
6143
6132
|
let n = t.defaultView;
|
|
6144
6133
|
if (!n) return () => {};
|
|
6145
6134
|
let r = [], i = /* @__PURE__ */ new WeakMap(), a = n.FontFace;
|
|
@@ -6152,7 +6141,7 @@ function qa({ fontCb: e, doc: t }) {
|
|
|
6152
6141
|
fontSource: typeof t == "string" ? t : JSON.stringify(Array.from(new Uint8Array(t)))
|
|
6153
6142
|
}), r;
|
|
6154
6143
|
};
|
|
6155
|
-
let o =
|
|
6144
|
+
let o = $i(t.fonts, "add", function(t) {
|
|
6156
6145
|
return function(n) {
|
|
6157
6146
|
return setTimeout(Y(() => {
|
|
6158
6147
|
let t = i.get(n);
|
|
@@ -6166,7 +6155,7 @@ function qa({ fontCb: e, doc: t }) {
|
|
|
6166
6155
|
r.forEach((e) => e());
|
|
6167
6156
|
});
|
|
6168
6157
|
}
|
|
6169
|
-
function
|
|
6158
|
+
function Za(e) {
|
|
6170
6159
|
let { doc: t, mirror: n, blockClass: r, blockSelector: i, selectionCb: a } = e, o = !0, s = Y(() => {
|
|
6171
6160
|
let e = t.getSelection();
|
|
6172
6161
|
if (!e || o && e?.isCollapsed) return;
|
|
@@ -6185,9 +6174,9 @@ function Ja(e) {
|
|
|
6185
6174
|
});
|
|
6186
6175
|
return s(), W("selectionchange", s);
|
|
6187
6176
|
}
|
|
6188
|
-
function
|
|
6177
|
+
function Qa({ doc: e, customElementCb: t }) {
|
|
6189
6178
|
let n = e.defaultView;
|
|
6190
|
-
return !n || !n.customElements ? () => {} :
|
|
6179
|
+
return !n || !n.customElements ? () => {} : $i(n.customElements, "define", function(e) {
|
|
6191
6180
|
return function(n, r, i) {
|
|
6192
6181
|
try {
|
|
6193
6182
|
t({ define: { name: n } });
|
|
@@ -6202,7 +6191,7 @@ function Ya({ doc: e, customElementCb: t }) {
|
|
|
6202
6191
|
};
|
|
6203
6192
|
});
|
|
6204
6193
|
}
|
|
6205
|
-
function
|
|
6194
|
+
function $a(e, t) {
|
|
6206
6195
|
let { mutationCb: n, mousemoveCb: r, mouseInteractionCb: i, scrollCb: a, viewportResizeCb: o, inputCb: s, mediaInteractionCb: c, styleSheetRuleCb: l, styleDeclarationCb: u, canvasMutationCb: d, fontCb: f, selectionCb: p, customElementCb: m } = e;
|
|
6207
6196
|
e.mutationCb = (...e) => {
|
|
6208
6197
|
t.mutation && t.mutation(...e), n(...e);
|
|
@@ -6232,27 +6221,27 @@ function Xa(e, t) {
|
|
|
6232
6221
|
t.customElement && t.customElement(...e), m(...e);
|
|
6233
6222
|
};
|
|
6234
6223
|
}
|
|
6235
|
-
function
|
|
6224
|
+
function eo(e, t = {}) {
|
|
6236
6225
|
let n = e.doc.defaultView;
|
|
6237
6226
|
if (!n) return () => {};
|
|
6238
|
-
|
|
6227
|
+
$a(e, t);
|
|
6239
6228
|
let r, i = () => {};
|
|
6240
|
-
e.recordDOM && ([r, i] =
|
|
6241
|
-
let a =
|
|
6242
|
-
e.recordDOM && (d =
|
|
6243
|
-
let h =
|
|
6229
|
+
e.recordDOM && ([r, i] = Ia(e, e.doc));
|
|
6230
|
+
let a = La(e), o = Ra(e), s = za(e), c = Ba(e, { win: n }), l = Ua(e), u = Ya(e), d = () => {}, f = () => {}, p = () => {}, m = () => {};
|
|
6231
|
+
e.recordDOM && (d = Ka(e, { win: n }), f = qa(e, e.doc), p = Ja(e, { win: n }), e.collectFonts && (m = Xa(e)));
|
|
6232
|
+
let h = Za(e), g = Qa(e), _ = [];
|
|
6244
6233
|
for (let t of e.plugins) _.push(t.observer(t.callback, n, t.options));
|
|
6245
6234
|
return Y(() => {
|
|
6246
|
-
|
|
6235
|
+
Pa.forEach((e) => e.reset()), r?.disconnect(), i(), a(), o(), s(), c(), l(), u(), d(), f(), p(), m(), h(), g(), _.forEach((e) => e());
|
|
6247
6236
|
});
|
|
6248
6237
|
}
|
|
6249
|
-
function
|
|
6238
|
+
function to(e) {
|
|
6250
6239
|
return window[e] !== void 0;
|
|
6251
6240
|
}
|
|
6252
|
-
function
|
|
6241
|
+
function no(e) {
|
|
6253
6242
|
return !!(window[e] !== void 0 && window[e].prototype && "insertRule" in window[e].prototype && "deleteRule" in window[e].prototype);
|
|
6254
6243
|
}
|
|
6255
|
-
for (var
|
|
6244
|
+
for (var ro = class {
|
|
6256
6245
|
constructor(e) {
|
|
6257
6246
|
n(this, "iframeIdToRemoteIdMap", /* @__PURE__ */ new WeakMap()), n(this, "iframeRemoteIdToIdMap", /* @__PURE__ */ new WeakMap()), this.generateIdFn = e;
|
|
6258
6247
|
}
|
|
@@ -6273,11 +6262,7 @@ for (var eo = class {
|
|
|
6273
6262
|
return t.map((t) => this.getRemoteId(e, t, n));
|
|
6274
6263
|
}
|
|
6275
6264
|
reset(e) {
|
|
6276
|
-
|
|
6277
|
-
this.iframeIdToRemoteIdMap = /* @__PURE__ */ new WeakMap(), this.iframeRemoteIdToIdMap = /* @__PURE__ */ new WeakMap();
|
|
6278
|
-
return;
|
|
6279
|
-
}
|
|
6280
|
-
this.iframeIdToRemoteIdMap.delete(e), this.iframeRemoteIdToIdMap.delete(e);
|
|
6265
|
+
e ? (this.iframeIdToRemoteIdMap.delete(e), this.iframeRemoteIdToIdMap.delete(e)) : (this.iframeIdToRemoteIdMap = /* @__PURE__ */ new WeakMap(), this.iframeRemoteIdToIdMap = /* @__PURE__ */ new WeakMap());
|
|
6281
6266
|
}
|
|
6282
6267
|
getIdToRemoteIdMap(e) {
|
|
6283
6268
|
let t = this.iframeIdToRemoteIdMap.get(e);
|
|
@@ -6287,9 +6272,9 @@ for (var eo = class {
|
|
|
6287
6272
|
let t = this.iframeRemoteIdToIdMap.get(e);
|
|
6288
6273
|
return t || (t = /* @__PURE__ */ new Map(), this.iframeRemoteIdToIdMap.set(e, t)), t;
|
|
6289
6274
|
}
|
|
6290
|
-
},
|
|
6275
|
+
}, io = class {
|
|
6291
6276
|
constructor(e) {
|
|
6292
|
-
n(this, "iframes", /* @__PURE__ */ new WeakMap()), n(this, "crossOriginIframeMap", /* @__PURE__ */ new WeakMap()), n(this, "crossOriginIframeMirror", new
|
|
6277
|
+
n(this, "iframes", /* @__PURE__ */ new WeakMap()), n(this, "crossOriginIframeMap", /* @__PURE__ */ new WeakMap()), n(this, "crossOriginIframeMirror", new ro(Pe)), n(this, "crossOriginIframeStyleMirror"), n(this, "crossOriginIframeRootIdMap", /* @__PURE__ */ new WeakMap()), n(this, "mirror"), n(this, "mutationCb"), n(this, "wrappedEmit"), n(this, "loadListener"), n(this, "stylesheetManager"), n(this, "recordCrossOriginIframes"), this.mutationCb = e.mutationCb, this.wrappedEmit = e.wrappedEmit, this.stylesheetManager = e.stylesheetManager, this.recordCrossOriginIframes = e.recordCrossOriginIframes, this.crossOriginIframeStyleMirror = new ro(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)), this.mirror = e.mirror, this.recordCrossOriginIframes && window.addEventListener("message", this.handleMessage.bind(this));
|
|
6293
6278
|
}
|
|
6294
6279
|
addIframe(e) {
|
|
6295
6280
|
this.iframes.set(e, !0), e.contentWindow && this.crossOriginIframeMap.set(e.contentWindow, e);
|
|
@@ -6408,11 +6393,11 @@ for (var eo = class {
|
|
|
6408
6393
|
});
|
|
6409
6394
|
}
|
|
6410
6395
|
patchRootIdOnNode(e, t) {
|
|
6411
|
-
e.type !==
|
|
6396
|
+
e.type !== wa.Document && !e.rootId && (e.rootId = t), "childNodes" in e && e.childNodes.forEach((e) => {
|
|
6412
6397
|
this.patchRootIdOnNode(e, t);
|
|
6413
6398
|
});
|
|
6414
6399
|
}
|
|
6415
|
-
},
|
|
6400
|
+
}, ao = class {
|
|
6416
6401
|
constructor(e) {
|
|
6417
6402
|
n(this, "shadowDoms", /* @__PURE__ */ new WeakSet()), n(this, "mutationCb"), n(this, "scrollCb"), n(this, "bypassOptions"), n(this, "mirror"), n(this, "restoreHandlers", []), this.mutationCb = e.mutationCb, this.scrollCb = e.scrollCb, this.bypassOptions = e.bypassOptions, this.mirror = e.mirror, this.init();
|
|
6418
6403
|
}
|
|
@@ -6420,22 +6405,22 @@ for (var eo = class {
|
|
|
6420
6405
|
this.reset(), this.patchAttachShadow(Element, document);
|
|
6421
6406
|
}
|
|
6422
6407
|
addShadowRoot(e, t) {
|
|
6423
|
-
if (!
|
|
6408
|
+
if (!M(e) || this.shadowDoms.has(e)) return;
|
|
6424
6409
|
this.shadowDoms.add(e);
|
|
6425
|
-
let [n] =
|
|
6410
|
+
let [n] = Ia({
|
|
6426
6411
|
...this.bypassOptions,
|
|
6427
6412
|
doc: t,
|
|
6428
6413
|
mutationCb: this.mutationCb,
|
|
6429
6414
|
mirror: this.mirror,
|
|
6430
6415
|
shadowDomManager: this
|
|
6431
6416
|
}, e);
|
|
6432
|
-
this.restoreHandlers.push(() => n.disconnect()), this.restoreHandlers.push(
|
|
6417
|
+
this.restoreHandlers.push(() => n.disconnect()), this.restoreHandlers.push(za({
|
|
6433
6418
|
...this.bypassOptions,
|
|
6434
6419
|
scrollCb: this.scrollCb,
|
|
6435
6420
|
doc: e,
|
|
6436
6421
|
mirror: this.mirror
|
|
6437
6422
|
})), setTimeout(() => {
|
|
6438
|
-
e.adoptedStyleSheets && e.adoptedStyleSheets.length > 0 && this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets, this.mirror.getId(U.host(e))), this.restoreHandlers.push(
|
|
6423
|
+
e.adoptedStyleSheets && e.adoptedStyleSheets.length > 0 && this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets, this.mirror.getId(U.host(e))), this.restoreHandlers.push(qa({
|
|
6439
6424
|
mirror: this.mirror,
|
|
6440
6425
|
stylesheetManager: this.bypassOptions.stylesheetManager
|
|
6441
6426
|
}, e));
|
|
@@ -6446,10 +6431,10 @@ for (var eo = class {
|
|
|
6446
6431
|
}
|
|
6447
6432
|
patchAttachShadow(e, t) {
|
|
6448
6433
|
let n = this;
|
|
6449
|
-
this.restoreHandlers.push(
|
|
6434
|
+
this.restoreHandlers.push($i(e.prototype, "attachShadow", function(e) {
|
|
6450
6435
|
return function(r) {
|
|
6451
6436
|
let i = e.call(this, r), a = U.shadowRoot(this);
|
|
6452
|
-
return a &&
|
|
6437
|
+
return a && ba(this) && n.addShadowRoot(a, t), i;
|
|
6453
6438
|
};
|
|
6454
6439
|
}));
|
|
6455
6440
|
}
|
|
@@ -6460,23 +6445,23 @@ for (var eo = class {
|
|
|
6460
6445
|
} catch {}
|
|
6461
6446
|
}), this.restoreHandlers = [], this.shadowDoms = /* @__PURE__ */ new WeakSet();
|
|
6462
6447
|
}
|
|
6463
|
-
},
|
|
6464
|
-
var
|
|
6448
|
+
}, oo = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", so = typeof Uint8Array > "u" ? [] : /* @__PURE__ */ new Uint8Array(256), co = 0; co < oo.length; co++) so[oo.charCodeAt(co)] = co;
|
|
6449
|
+
var lo = function(e) {
|
|
6465
6450
|
var t = new Uint8Array(e), n, r = t.length, i = "";
|
|
6466
|
-
for (n = 0; n < r; n += 3) i +=
|
|
6451
|
+
for (n = 0; n < r; n += 3) i += oo[t[n] >> 2], i += oo[(t[n] & 3) << 4 | t[n + 1] >> 4], i += oo[(t[n + 1] & 15) << 2 | t[n + 2] >> 6], i += oo[t[n + 2] & 63];
|
|
6467
6452
|
return r % 3 == 2 ? i = i.substring(0, i.length - 1) + "=" : r % 3 == 1 && (i = i.substring(0, i.length - 2) + "=="), i;
|
|
6468
|
-
},
|
|
6469
|
-
function
|
|
6470
|
-
let n =
|
|
6471
|
-
return n || (n = /* @__PURE__ */ new Map(),
|
|
6472
|
-
}
|
|
6473
|
-
var
|
|
6474
|
-
if (!e || !(
|
|
6475
|
-
let r = e.constructor.name, i =
|
|
6453
|
+
}, uo = /* @__PURE__ */ new Map();
|
|
6454
|
+
function fo(e, t) {
|
|
6455
|
+
let n = uo.get(e);
|
|
6456
|
+
return n || (n = /* @__PURE__ */ new Map(), uo.set(e, n)), n.has(t) || n.set(t, []), n.get(t);
|
|
6457
|
+
}
|
|
6458
|
+
var po = (e, t, n) => {
|
|
6459
|
+
if (!e || !(go(e, t) || typeof e == "object")) return;
|
|
6460
|
+
let r = e.constructor.name, i = fo(n, r), a = i.indexOf(e);
|
|
6476
6461
|
return a === -1 && (a = i.length, i.push(e)), a;
|
|
6477
6462
|
};
|
|
6478
|
-
function
|
|
6479
|
-
if (e instanceof Array) return e.map((e) =>
|
|
6463
|
+
function mo(e, t, n) {
|
|
6464
|
+
if (e instanceof Array) return e.map((e) => mo(e, t, n));
|
|
6480
6465
|
if (e === null) return e;
|
|
6481
6466
|
if (e instanceof Float32Array || e instanceof Float64Array || e instanceof Int32Array || e instanceof Uint32Array || e instanceof Uint8Array || e instanceof Uint16Array || e instanceof Int16Array || e instanceof Int8Array || e instanceof Uint8ClampedArray) return {
|
|
6482
6467
|
rr_type: e.constructor.name,
|
|
@@ -6484,12 +6469,12 @@ function uo(e, t, n) {
|
|
|
6484
6469
|
};
|
|
6485
6470
|
if (e instanceof ArrayBuffer) return {
|
|
6486
6471
|
rr_type: e.constructor.name,
|
|
6487
|
-
base64:
|
|
6472
|
+
base64: lo(e)
|
|
6488
6473
|
};
|
|
6489
6474
|
if (e instanceof DataView) return {
|
|
6490
6475
|
rr_type: e.constructor.name,
|
|
6491
6476
|
args: [
|
|
6492
|
-
|
|
6477
|
+
mo(e.buffer, t, n),
|
|
6493
6478
|
e.byteOffset,
|
|
6494
6479
|
e.byteLength
|
|
6495
6480
|
]
|
|
@@ -6507,16 +6492,16 @@ function uo(e, t, n) {
|
|
|
6507
6492
|
} : e instanceof ImageData ? {
|
|
6508
6493
|
rr_type: e.constructor.name,
|
|
6509
6494
|
args: [
|
|
6510
|
-
|
|
6495
|
+
mo(e.data, t, n),
|
|
6511
6496
|
e.width,
|
|
6512
6497
|
e.height
|
|
6513
6498
|
]
|
|
6514
|
-
} :
|
|
6499
|
+
} : go(e, t) || typeof e == "object" ? {
|
|
6515
6500
|
rr_type: e.constructor.name,
|
|
6516
|
-
index:
|
|
6501
|
+
index: po(e, t, n)
|
|
6517
6502
|
} : e;
|
|
6518
6503
|
}
|
|
6519
|
-
var
|
|
6504
|
+
var ho = (e, t, n) => e.map((e) => mo(e, t, n)), go = (e, t) => !![
|
|
6520
6505
|
"WebGLActiveInfo",
|
|
6521
6506
|
"WebGLBuffer",
|
|
6522
6507
|
"WebGLFramebuffer",
|
|
@@ -6529,16 +6514,16 @@ var fo = (e, t, n) => e.map((e) => uo(e, t, n)), po = (e, t) => !![
|
|
|
6529
6514
|
"WebGLVertexArrayObject",
|
|
6530
6515
|
"WebGLVertexArrayObjectOES"
|
|
6531
6516
|
].filter((e) => typeof t[e] == "function").find((n) => e instanceof t[n]);
|
|
6532
|
-
function
|
|
6517
|
+
function _o(e, t, n, r) {
|
|
6533
6518
|
let i = [], a = Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);
|
|
6534
6519
|
for (let o of a) try {
|
|
6535
6520
|
if (typeof t.CanvasRenderingContext2D.prototype[o] != "function") continue;
|
|
6536
|
-
let a =
|
|
6521
|
+
let a = $i(t.CanvasRenderingContext2D.prototype, o, function(i) {
|
|
6537
6522
|
return function(...a) {
|
|
6538
6523
|
return G(this.canvas, n, r, !0) || setTimeout(() => {
|
|
6539
|
-
let n =
|
|
6524
|
+
let n = ho(a, t, this);
|
|
6540
6525
|
e(this.canvas, {
|
|
6541
|
-
type:
|
|
6526
|
+
type: Sa["2D"],
|
|
6542
6527
|
property: o,
|
|
6543
6528
|
args: n
|
|
6544
6529
|
});
|
|
@@ -6547,9 +6532,9 @@ function mo(e, t, n, r) {
|
|
|
6547
6532
|
});
|
|
6548
6533
|
i.push(a);
|
|
6549
6534
|
} catch {
|
|
6550
|
-
let n =
|
|
6535
|
+
let n = ra(t.CanvasRenderingContext2D.prototype, o, { set(t) {
|
|
6551
6536
|
e(this.canvas, {
|
|
6552
|
-
type:
|
|
6537
|
+
type: Sa["2D"],
|
|
6553
6538
|
property: o,
|
|
6554
6539
|
args: [t],
|
|
6555
6540
|
setter: !0
|
|
@@ -6561,16 +6546,16 @@ function mo(e, t, n, r) {
|
|
|
6561
6546
|
i.forEach((e) => e());
|
|
6562
6547
|
};
|
|
6563
6548
|
}
|
|
6564
|
-
function
|
|
6549
|
+
function vo(e) {
|
|
6565
6550
|
return e === "experimental-webgl" ? "webgl" : e;
|
|
6566
6551
|
}
|
|
6567
|
-
function
|
|
6552
|
+
function yo(e, t, n, r) {
|
|
6568
6553
|
let i = [];
|
|
6569
6554
|
try {
|
|
6570
|
-
let a =
|
|
6555
|
+
let a = $i(e.HTMLCanvasElement.prototype, "getContext", function(e) {
|
|
6571
6556
|
return function(i, ...a) {
|
|
6572
6557
|
if (!G(this, t, n, !0)) {
|
|
6573
|
-
let e =
|
|
6558
|
+
let e = vo(i);
|
|
6574
6559
|
if ("__context" in this || (this.__context = e), r && ["webgl", "webgl2"].includes(e)) {
|
|
6575
6560
|
if (a[0] && typeof a[0] == "object") {
|
|
6576
6561
|
let e = a[0];
|
|
@@ -6589,7 +6574,7 @@ function go(e, t, n, r) {
|
|
|
6589
6574
|
i.forEach((e) => e());
|
|
6590
6575
|
};
|
|
6591
6576
|
}
|
|
6592
|
-
function
|
|
6577
|
+
function bo(e, t, n, r, i, a) {
|
|
6593
6578
|
let o = [], s = Object.getOwnPropertyNames(e);
|
|
6594
6579
|
for (let c of s) if (![
|
|
6595
6580
|
"isContextLost",
|
|
@@ -6598,11 +6583,11 @@ function _o(e, t, n, r, i, a) {
|
|
|
6598
6583
|
"drawingBufferHeight"
|
|
6599
6584
|
].includes(c)) try {
|
|
6600
6585
|
if (typeof e[c] != "function") continue;
|
|
6601
|
-
let s =
|
|
6586
|
+
let s = $i(e, c, function(e) {
|
|
6602
6587
|
return function(...o) {
|
|
6603
6588
|
let s = e.apply(this, o);
|
|
6604
|
-
if (
|
|
6605
|
-
let e =
|
|
6589
|
+
if (po(s, a, this), "tagName" in this.canvas && !G(this.canvas, r, i, !0)) {
|
|
6590
|
+
let e = ho(o, a, this), r = {
|
|
6606
6591
|
type: t,
|
|
6607
6592
|
property: c,
|
|
6608
6593
|
args: e
|
|
@@ -6614,7 +6599,7 @@ function _o(e, t, n, r, i, a) {
|
|
|
6614
6599
|
});
|
|
6615
6600
|
o.push(s);
|
|
6616
6601
|
} catch {
|
|
6617
|
-
let r =
|
|
6602
|
+
let r = ra(e, c, { set(e) {
|
|
6618
6603
|
n(this.canvas, {
|
|
6619
6604
|
type: t,
|
|
6620
6605
|
property: c,
|
|
@@ -6626,28 +6611,28 @@ function _o(e, t, n, r, i, a) {
|
|
|
6626
6611
|
}
|
|
6627
6612
|
return o;
|
|
6628
6613
|
}
|
|
6629
|
-
function
|
|
6614
|
+
function xo(e, t, n, r) {
|
|
6630
6615
|
let i = [];
|
|
6631
|
-
return t.WebGLRenderingContext !== void 0 && i.push(...
|
|
6616
|
+
return t.WebGLRenderingContext !== void 0 && i.push(...bo(t.WebGLRenderingContext.prototype, Sa.WebGL, e, n, r, t)), t.WebGL2RenderingContext !== void 0 && i.push(...bo(t.WebGL2RenderingContext.prototype, Sa.WebGL2, e, n, r, t)), () => {
|
|
6632
6617
|
i.forEach((e) => e());
|
|
6633
6618
|
};
|
|
6634
6619
|
}
|
|
6635
|
-
var
|
|
6636
|
-
function
|
|
6620
|
+
var So = "(function() {\n \"use strict\";\n var chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n var lookup = typeof Uint8Array === \"undefined\" ? [] : new Uint8Array(256);\n for (var i = 0; i < chars.length; i++) {\n lookup[chars.charCodeAt(i)] = i;\n }\n var encode = function(arraybuffer) {\n var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = \"\";\n for (i2 = 0; i2 < len; i2 += 3) {\n base64 += chars[bytes[i2] >> 2];\n base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];\n base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];\n base64 += chars[bytes[i2 + 2] & 63];\n }\n if (len % 3 === 2) {\n base64 = base64.substring(0, base64.length - 1) + \"=\";\n } else if (len % 3 === 1) {\n base64 = base64.substring(0, base64.length - 2) + \"==\";\n }\n return base64;\n };\n const lastBlobMap = /* @__PURE__ */ new Map();\n const transparentBlobMap = /* @__PURE__ */ new Map();\n async function getTransparentBlobFor(width, height, dataURLOptions) {\n const id = `${width}-${height}`;\n if (\"OffscreenCanvas\" in globalThis) {\n if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);\n const offscreen = new OffscreenCanvas(width, height);\n offscreen.getContext(\"2d\");\n const blob = await offscreen.convertToBlob(dataURLOptions);\n const arrayBuffer = await blob.arrayBuffer();\n const base64 = encode(arrayBuffer);\n transparentBlobMap.set(id, base64);\n return base64;\n } else {\n return \"\";\n }\n }\n const worker = self;\n worker.onmessage = async function(e) {\n if (\"OffscreenCanvas\" in globalThis) {\n const { id, bitmap, width, height, dataURLOptions } = e.data;\n const transparentBase64 = getTransparentBlobFor(\n width,\n height,\n dataURLOptions\n );\n const offscreen = new OffscreenCanvas(width, height);\n const ctx = offscreen.getContext(\"2d\");\n ctx.drawImage(bitmap, 0, 0);\n bitmap.close();\n const blob = await offscreen.convertToBlob(dataURLOptions);\n const type = blob.type;\n const arrayBuffer = await blob.arrayBuffer();\n const base64 = encode(arrayBuffer);\n if (!lastBlobMap.has(id) && await transparentBase64 === base64) {\n lastBlobMap.set(id, base64);\n return worker.postMessage({ id });\n }\n if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });\n worker.postMessage({\n id,\n type,\n base64,\n width,\n height\n });\n lastBlobMap.set(id, base64);\n } else {\n return worker.postMessage({ id: e.data.id });\n }\n };\n})();\n//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map\n", Co = typeof self < "u" && self.Blob && new Blob([So], { type: "text/javascript;charset=utf-8" });
|
|
6621
|
+
function wo(e) {
|
|
6637
6622
|
let t;
|
|
6638
6623
|
try {
|
|
6639
|
-
if (t =
|
|
6624
|
+
if (t = Co && (self.URL || self.webkitURL).createObjectURL(Co), !t) throw "";
|
|
6640
6625
|
let n = new Worker(t, { name: e?.name });
|
|
6641
6626
|
return n.addEventListener("error", () => {
|
|
6642
6627
|
(self.URL || self.webkitURL).revokeObjectURL(t);
|
|
6643
6628
|
}), n;
|
|
6644
6629
|
} catch {
|
|
6645
|
-
return new Worker("data:text/javascript;charset=utf-8," + encodeURIComponent(
|
|
6630
|
+
return new Worker("data:text/javascript;charset=utf-8," + encodeURIComponent(So), { name: e?.name });
|
|
6646
6631
|
} finally {
|
|
6647
6632
|
t && (self.URL || self.webkitURL).revokeObjectURL(t);
|
|
6648
6633
|
}
|
|
6649
6634
|
}
|
|
6650
|
-
var
|
|
6635
|
+
var To = class {
|
|
6651
6636
|
constructor(e) {
|
|
6652
6637
|
n(this, "pendingCanvasMutations", /* @__PURE__ */ new Map()), n(this, "rafStamps", {
|
|
6653
6638
|
latestId: 0,
|
|
@@ -6674,14 +6659,14 @@ var So = class {
|
|
|
6674
6659
|
this.locked = !1;
|
|
6675
6660
|
}
|
|
6676
6661
|
initCanvasFPSObserver(e, t, n, r, i) {
|
|
6677
|
-
let a =
|
|
6662
|
+
let a = yo(t, n, r, !0), o = /* @__PURE__ */ new Map(), s = new wo();
|
|
6678
6663
|
s.onmessage = (e) => {
|
|
6679
6664
|
let { id: t } = e.data;
|
|
6680
6665
|
if (o.set(t, !1), !("base64" in e.data)) return;
|
|
6681
6666
|
let { base64: n, type: r, width: i, height: a } = e.data;
|
|
6682
6667
|
this.mutationCb({
|
|
6683
6668
|
id: t,
|
|
6684
|
-
type:
|
|
6669
|
+
type: Sa["2D"],
|
|
6685
6670
|
commands: [{
|
|
6686
6671
|
property: "clearRect",
|
|
6687
6672
|
args: [
|
|
@@ -6716,11 +6701,7 @@ var So = class {
|
|
|
6716
6701
|
G(t, n, r, !0) || e.push(t);
|
|
6717
6702
|
}), e;
|
|
6718
6703
|
}, f = (e) => {
|
|
6719
|
-
|
|
6720
|
-
u = requestAnimationFrame(f);
|
|
6721
|
-
return;
|
|
6722
|
-
}
|
|
6723
|
-
l = e, d().forEach(async (e) => {
|
|
6704
|
+
l && e - l < c || (l = e, d().forEach(async (e) => {
|
|
6724
6705
|
let t = this.mirror.getId(e);
|
|
6725
6706
|
if (o.get(t) || e.width === 0 || e.height === 0) return;
|
|
6726
6707
|
if (o.set(t, !0), ["webgl", "webgl2"].includes(e.__context)) {
|
|
@@ -6735,7 +6716,7 @@ var So = class {
|
|
|
6735
6716
|
height: e.height,
|
|
6736
6717
|
dataURLOptions: i.dataURLOptions
|
|
6737
6718
|
}, [n]);
|
|
6738
|
-
}), u = requestAnimationFrame(f);
|
|
6719
|
+
})), u = requestAnimationFrame(f);
|
|
6739
6720
|
};
|
|
6740
6721
|
u = requestAnimationFrame(f), this.resetObservers = () => {
|
|
6741
6722
|
a(), cancelAnimationFrame(u);
|
|
@@ -6743,7 +6724,7 @@ var So = class {
|
|
|
6743
6724
|
}
|
|
6744
6725
|
initCanvasMutationObserver(e, t, n) {
|
|
6745
6726
|
this.startRAFTimestamping(), this.startPendingCanvasMutationFlusher();
|
|
6746
|
-
let r =
|
|
6727
|
+
let r = yo(e, t, n, !1), i = _o(this.processMutation.bind(this), e, t, n), a = xo(this.processMutation.bind(this), e, t, n);
|
|
6747
6728
|
this.resetObservers = () => {
|
|
6748
6729
|
r(), i(), a();
|
|
6749
6730
|
};
|
|
@@ -6777,9 +6758,9 @@ var So = class {
|
|
|
6777
6758
|
commands: r
|
|
6778
6759
|
}), this.pendingCanvasMutations.delete(e);
|
|
6779
6760
|
}
|
|
6780
|
-
},
|
|
6761
|
+
}, Eo = class {
|
|
6781
6762
|
constructor(e) {
|
|
6782
|
-
n(this, "trackedLinkElements", /* @__PURE__ */ new WeakSet()), n(this, "mutationCb"), n(this, "adoptedStyleSheetCb"), n(this, "styleMirror", new
|
|
6763
|
+
n(this, "trackedLinkElements", /* @__PURE__ */ new WeakSet()), n(this, "mutationCb"), n(this, "adoptedStyleSheetCb"), n(this, "styleMirror", new ga()), this.mutationCb = e.mutationCb, this.adoptedStyleSheetCb = e.adoptedStyleSheetCb;
|
|
6783
6764
|
}
|
|
6784
6765
|
attachLinkElement(e, t) {
|
|
6785
6766
|
"_cssText" in t.attributes && this.mutationCb({
|
|
@@ -6806,7 +6787,7 @@ var So = class {
|
|
|
6806
6787
|
this.styleMirror.has(t) ? e = this.styleMirror.getId(t) : (e = this.styleMirror.add(t), r.push({
|
|
6807
6788
|
styleId: e,
|
|
6808
6789
|
rules: Array.from(t.rules || CSSRule, (e, n) => ({
|
|
6809
|
-
rule:
|
|
6790
|
+
rule: P(e, t.href),
|
|
6810
6791
|
index: n
|
|
6811
6792
|
}))
|
|
6812
6793
|
})), n.styleIds.push(e);
|
|
@@ -6817,7 +6798,7 @@ var So = class {
|
|
|
6817
6798
|
this.styleMirror.reset(), this.trackedLinkElements = /* @__PURE__ */ new WeakSet();
|
|
6818
6799
|
}
|
|
6819
6800
|
trackStylesheetInLinkElement(e) {}
|
|
6820
|
-
},
|
|
6801
|
+
}, Do = class {
|
|
6821
6802
|
constructor() {
|
|
6822
6803
|
n(this, "nodeMap", /* @__PURE__ */ new WeakMap()), n(this, "active", !1);
|
|
6823
6804
|
}
|
|
@@ -6831,7 +6812,7 @@ var So = class {
|
|
|
6831
6812
|
})), this.nodeMap.set(e, (this.nodeMap.get(e) || /* @__PURE__ */ new Set()).add(t));
|
|
6832
6813
|
}
|
|
6833
6814
|
destroy() {}
|
|
6834
|
-
}, X,
|
|
6815
|
+
}, X, Oo, ko, Ao = !1;
|
|
6835
6816
|
try {
|
|
6836
6817
|
if (Array.from([1], (e) => e * 2)[0] !== 2) {
|
|
6837
6818
|
let e = document.createElement("iframe");
|
|
@@ -6840,18 +6821,18 @@ try {
|
|
|
6840
6821
|
} catch (e) {
|
|
6841
6822
|
console.debug("Unable to override Array.from", e);
|
|
6842
6823
|
}
|
|
6843
|
-
var Z =
|
|
6844
|
-
function
|
|
6845
|
-
let { emit: t, checkoutEveryNms: n, checkoutEveryNth: r, blockClass: i = "rr-block", blockSelector: a = null, ignoreClass: o = "rr-ignore", ignoreSelector: s = null, maskTextClass: c = "rr-mask", maskTextSelector: l = null, inlineStylesheet: u = !0, maskAllInputs: d, maskInputOptions: f, slimDOMOptions: p, maskInputFn: m, maskTextFn: h, hooks: g, packFn: _, sampling: v = {}, dataURLOptions: y = {}, mousemoveWait: b, recordDOM: x = !0, recordCanvas: S = !1, recordCrossOriginIframes: C = !1, recordAfter: w = e.recordAfter === "DOMContentLoaded" ? e.recordAfter : "load", userTriggeredOnInput:
|
|
6846
|
-
|
|
6847
|
-
let
|
|
6848
|
-
if (!
|
|
6849
|
-
window.parent.document && (
|
|
6824
|
+
var Z = F();
|
|
6825
|
+
function jo(e = {}) {
|
|
6826
|
+
let { emit: t, checkoutEveryNms: n, checkoutEveryNth: r, blockClass: i = "rr-block", blockSelector: a = null, ignoreClass: o = "rr-ignore", ignoreSelector: s = null, maskTextClass: c = "rr-mask", maskTextSelector: l = null, inlineStylesheet: u = !0, maskAllInputs: d, maskInputOptions: f, slimDOMOptions: p, maskInputFn: m, maskTextFn: h, hooks: g, packFn: _, sampling: v = {}, dataURLOptions: y = {}, mousemoveWait: b, recordDOM: x = !0, recordCanvas: S = !1, recordCrossOriginIframes: C = !1, recordAfter: w = e.recordAfter === "DOMContentLoaded" ? e.recordAfter : "load", userTriggeredOnInput: T = !1, collectFonts: E = !1, inlineImages: D = !1, plugins: O, keepIframeSrcFn: ee = () => !1, ignoreCSSAttributes: k = /* @__PURE__ */ new Set([]), errorHandler: te } = e;
|
|
6827
|
+
Ma(te);
|
|
6828
|
+
let A = !C || window.parent === window, ne = !1;
|
|
6829
|
+
if (!A) try {
|
|
6830
|
+
window.parent.document && (ne = !1);
|
|
6850
6831
|
} catch {
|
|
6851
|
-
|
|
6832
|
+
ne = !0;
|
|
6852
6833
|
}
|
|
6853
|
-
if (
|
|
6854
|
-
if (!
|
|
6834
|
+
if (A && !t) throw Error("emit function is required");
|
|
6835
|
+
if (!A && !ne) return () => {};
|
|
6855
6836
|
b !== void 0 && v.mousemove === void 0 && (v.mousemove = b), Z.reset();
|
|
6856
6837
|
let re = d === !0 ? {
|
|
6857
6838
|
color: !0,
|
|
@@ -6870,33 +6851,33 @@ function Oo(e = {}) {
|
|
|
6870
6851
|
textarea: !0,
|
|
6871
6852
|
select: !0,
|
|
6872
6853
|
password: !0
|
|
6873
|
-
} : f === void 0 ? { password: !0 } : f, ie =
|
|
6874
|
-
|
|
6875
|
-
let j,
|
|
6876
|
-
for (let t of
|
|
6877
|
-
return _ && !
|
|
6854
|
+
} : f === void 0 ? { password: !0 } : f, ie = nt(p);
|
|
6855
|
+
fa();
|
|
6856
|
+
let j, ae = 0, oe = (e) => {
|
|
6857
|
+
for (let t of O || []) t.eventProcessor && (e = t.eventProcessor(e));
|
|
6858
|
+
return _ && !ne && (e = _(e)), e;
|
|
6878
6859
|
};
|
|
6879
6860
|
X = (e, i) => {
|
|
6880
6861
|
let a = e;
|
|
6881
|
-
if (a.timestamp =
|
|
6882
|
-
else if (
|
|
6862
|
+
if (a.timestamp = Qi(), Pa[0]?.isFrozen() && a.type !== K.FullSnapshot && (a.type !== K.IncrementalSnapshot || a.data.source !== q.Mutation) && Pa.forEach((e) => e.unfreeze()), A) t?.(oe(a), i);
|
|
6863
|
+
else if (ne) {
|
|
6883
6864
|
let e = {
|
|
6884
6865
|
type: "rrweb",
|
|
6885
|
-
event:
|
|
6866
|
+
event: oe(a),
|
|
6886
6867
|
origin: window.location.origin,
|
|
6887
6868
|
isCheckout: i
|
|
6888
6869
|
};
|
|
6889
6870
|
window.parent.postMessage(e, "*");
|
|
6890
6871
|
}
|
|
6891
|
-
if (a.type === K.FullSnapshot) j = a,
|
|
6872
|
+
if (a.type === K.FullSnapshot) j = a, ae = 0;
|
|
6892
6873
|
else if (a.type === K.IncrementalSnapshot) {
|
|
6893
6874
|
if (a.data.source === q.Mutation && a.data.isAttachIframe) return;
|
|
6894
|
-
|
|
6895
|
-
let e = r &&
|
|
6896
|
-
(e || t) &&
|
|
6875
|
+
ae++;
|
|
6876
|
+
let e = r && ae >= r, t = n && a.timestamp - j.timestamp > n;
|
|
6877
|
+
(e || t) && Oo(!0);
|
|
6897
6878
|
}
|
|
6898
6879
|
};
|
|
6899
|
-
let
|
|
6880
|
+
let M = (e) => {
|
|
6900
6881
|
X({
|
|
6901
6882
|
type: K.IncrementalSnapshot,
|
|
6902
6883
|
data: {
|
|
@@ -6904,20 +6885,20 @@ function Oo(e = {}) {
|
|
|
6904
6885
|
...e
|
|
6905
6886
|
}
|
|
6906
6887
|
});
|
|
6907
|
-
},
|
|
6888
|
+
}, se = (e) => X({
|
|
6908
6889
|
type: K.IncrementalSnapshot,
|
|
6909
6890
|
data: {
|
|
6910
6891
|
source: q.Scroll,
|
|
6911
6892
|
...e
|
|
6912
6893
|
}
|
|
6913
|
-
}),
|
|
6894
|
+
}), ce = (e) => X({
|
|
6914
6895
|
type: K.IncrementalSnapshot,
|
|
6915
6896
|
data: {
|
|
6916
6897
|
source: q.CanvasMutation,
|
|
6917
6898
|
...e
|
|
6918
6899
|
}
|
|
6919
|
-
}),
|
|
6920
|
-
mutationCb:
|
|
6900
|
+
}), N = new Eo({
|
|
6901
|
+
mutationCb: M,
|
|
6921
6902
|
adoptedStyleSheetCb: (e) => X({
|
|
6922
6903
|
type: K.IncrementalSnapshot,
|
|
6923
6904
|
data: {
|
|
@@ -6925,22 +6906,22 @@ function Oo(e = {}) {
|
|
|
6925
6906
|
...e
|
|
6926
6907
|
}
|
|
6927
6908
|
})
|
|
6928
|
-
}),
|
|
6909
|
+
}), P = new io({
|
|
6929
6910
|
mirror: Z,
|
|
6930
|
-
mutationCb:
|
|
6931
|
-
stylesheetManager:
|
|
6911
|
+
mutationCb: M,
|
|
6912
|
+
stylesheetManager: N,
|
|
6932
6913
|
recordCrossOriginIframes: C,
|
|
6933
6914
|
wrappedEmit: X
|
|
6934
6915
|
});
|
|
6935
|
-
for (let e of
|
|
6916
|
+
for (let e of O || []) e.getMirror && e.getMirror({
|
|
6936
6917
|
nodeMirror: Z,
|
|
6937
|
-
crossOriginIframeMirror:
|
|
6938
|
-
crossOriginIframeStyleMirror:
|
|
6918
|
+
crossOriginIframeMirror: P.crossOriginIframeMirror,
|
|
6919
|
+
crossOriginIframeStyleMirror: P.crossOriginIframeStyleMirror
|
|
6939
6920
|
});
|
|
6940
|
-
let
|
|
6941
|
-
|
|
6921
|
+
let le = new Do();
|
|
6922
|
+
ko = new To({
|
|
6942
6923
|
recordCanvas: S,
|
|
6943
|
-
mutationCb:
|
|
6924
|
+
mutationCb: ce,
|
|
6944
6925
|
win: window,
|
|
6945
6926
|
blockClass: i,
|
|
6946
6927
|
blockSelector: a,
|
|
@@ -6948,9 +6929,9 @@ function Oo(e = {}) {
|
|
|
6948
6929
|
sampling: v.canvas,
|
|
6949
6930
|
dataURLOptions: y
|
|
6950
6931
|
});
|
|
6951
|
-
let
|
|
6952
|
-
mutationCb:
|
|
6953
|
-
scrollCb:
|
|
6932
|
+
let ue = new ao({
|
|
6933
|
+
mutationCb: M,
|
|
6934
|
+
scrollCb: se,
|
|
6954
6935
|
bypassOptions: {
|
|
6955
6936
|
blockClass: i,
|
|
6956
6937
|
blockSelector: a,
|
|
@@ -6962,28 +6943,28 @@ function Oo(e = {}) {
|
|
|
6962
6943
|
maskTextFn: h,
|
|
6963
6944
|
maskInputFn: m,
|
|
6964
6945
|
recordCanvas: S,
|
|
6965
|
-
inlineImages:
|
|
6946
|
+
inlineImages: D,
|
|
6966
6947
|
sampling: v,
|
|
6967
6948
|
slimDOMOptions: ie,
|
|
6968
|
-
iframeManager:
|
|
6969
|
-
stylesheetManager:
|
|
6970
|
-
canvasManager:
|
|
6971
|
-
keepIframeSrcFn:
|
|
6972
|
-
processedNodeManager:
|
|
6949
|
+
iframeManager: P,
|
|
6950
|
+
stylesheetManager: N,
|
|
6951
|
+
canvasManager: ko,
|
|
6952
|
+
keepIframeSrcFn: ee,
|
|
6953
|
+
processedNodeManager: le
|
|
6973
6954
|
},
|
|
6974
6955
|
mirror: Z
|
|
6975
6956
|
});
|
|
6976
|
-
|
|
6957
|
+
Oo = (e = !1) => {
|
|
6977
6958
|
if (!x) return;
|
|
6978
6959
|
X({
|
|
6979
6960
|
type: K.Meta,
|
|
6980
6961
|
data: {
|
|
6981
6962
|
href: window.location.href,
|
|
6982
|
-
width:
|
|
6983
|
-
height:
|
|
6963
|
+
width: oa(),
|
|
6964
|
+
height: aa()
|
|
6984
6965
|
}
|
|
6985
|
-
}, e),
|
|
6986
|
-
let t =
|
|
6966
|
+
}, e), N.reset(), ue.init(), Pa.forEach((e) => e.lock());
|
|
6967
|
+
let t = at(document, {
|
|
6987
6968
|
mirror: Z,
|
|
6988
6969
|
blockClass: i,
|
|
6989
6970
|
blockSelector: a,
|
|
@@ -6996,30 +6977,30 @@ function Oo(e = {}) {
|
|
|
6996
6977
|
slimDOM: ie,
|
|
6997
6978
|
dataURLOptions: y,
|
|
6998
6979
|
recordCanvas: S,
|
|
6999
|
-
inlineImages:
|
|
6980
|
+
inlineImages: D,
|
|
7000
6981
|
onSerialize: (e) => {
|
|
7001
|
-
|
|
6982
|
+
pa(e, Z) && P.addIframe(e), ma(e, Z) && N.trackLinkElement(e), ha(e) && ue.addShadowRoot(U.shadowRoot(e), document);
|
|
7002
6983
|
},
|
|
7003
6984
|
onIframeLoad: (e, t) => {
|
|
7004
|
-
|
|
6985
|
+
P.attachIframe(e, t), ue.observeAttachShadow(e);
|
|
7005
6986
|
},
|
|
7006
6987
|
onStylesheetLoad: (e, t) => {
|
|
7007
|
-
|
|
6988
|
+
N.attachLinkElement(e, t);
|
|
7008
6989
|
},
|
|
7009
|
-
keepIframeSrcFn:
|
|
6990
|
+
keepIframeSrcFn: ee
|
|
7010
6991
|
});
|
|
7011
6992
|
if (!t) return console.warn("Failed to snapshot the document");
|
|
7012
6993
|
X({
|
|
7013
6994
|
type: K.FullSnapshot,
|
|
7014
6995
|
data: {
|
|
7015
6996
|
node: t,
|
|
7016
|
-
initialOffset:
|
|
6997
|
+
initialOffset: ia(window)
|
|
7017
6998
|
}
|
|
7018
|
-
}, e),
|
|
6999
|
+
}, e), Pa.forEach((e) => e.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && N.adoptStyleSheets(document.adoptedStyleSheets, Z.getId(document));
|
|
7019
7000
|
};
|
|
7020
7001
|
try {
|
|
7021
|
-
let e = [], t = (e) => Y(
|
|
7022
|
-
mutationCb:
|
|
7002
|
+
let e = [], t = (e) => Y(eo)({
|
|
7003
|
+
mutationCb: M,
|
|
7023
7004
|
mousemoveCb: (e, t) => X({
|
|
7024
7005
|
type: K.IncrementalSnapshot,
|
|
7025
7006
|
data: {
|
|
@@ -7034,7 +7015,7 @@ function Oo(e = {}) {
|
|
|
7034
7015
|
...e
|
|
7035
7016
|
}
|
|
7036
7017
|
}),
|
|
7037
|
-
scrollCb:
|
|
7018
|
+
scrollCb: se,
|
|
7038
7019
|
viewportResizeCb: (e) => X({
|
|
7039
7020
|
type: K.IncrementalSnapshot,
|
|
7040
7021
|
data: {
|
|
@@ -7070,7 +7051,7 @@ function Oo(e = {}) {
|
|
|
7070
7051
|
...e
|
|
7071
7052
|
}
|
|
7072
7053
|
}),
|
|
7073
|
-
canvasMutationCb:
|
|
7054
|
+
canvasMutationCb: ce,
|
|
7074
7055
|
fontCb: (e) => X({
|
|
7075
7056
|
type: K.IncrementalSnapshot,
|
|
7076
7057
|
data: {
|
|
@@ -7106,24 +7087,24 @@ function Oo(e = {}) {
|
|
|
7106
7087
|
sampling: v,
|
|
7107
7088
|
recordDOM: x,
|
|
7108
7089
|
recordCanvas: S,
|
|
7109
|
-
inlineImages:
|
|
7110
|
-
userTriggeredOnInput:
|
|
7111
|
-
collectFonts:
|
|
7090
|
+
inlineImages: D,
|
|
7091
|
+
userTriggeredOnInput: T,
|
|
7092
|
+
collectFonts: E,
|
|
7112
7093
|
doc: e,
|
|
7113
7094
|
maskInputFn: m,
|
|
7114
7095
|
maskTextFn: h,
|
|
7115
|
-
keepIframeSrcFn:
|
|
7096
|
+
keepIframeSrcFn: ee,
|
|
7116
7097
|
blockSelector: a,
|
|
7117
7098
|
slimDOMOptions: ie,
|
|
7118
7099
|
dataURLOptions: y,
|
|
7119
7100
|
mirror: Z,
|
|
7120
|
-
iframeManager:
|
|
7121
|
-
stylesheetManager:
|
|
7122
|
-
shadowDomManager:
|
|
7123
|
-
processedNodeManager:
|
|
7124
|
-
canvasManager:
|
|
7101
|
+
iframeManager: P,
|
|
7102
|
+
stylesheetManager: N,
|
|
7103
|
+
shadowDomManager: ue,
|
|
7104
|
+
processedNodeManager: le,
|
|
7105
|
+
canvasManager: ko,
|
|
7125
7106
|
ignoreCSSAttributes: k,
|
|
7126
|
-
plugins: (
|
|
7107
|
+
plugins: (O?.filter((e) => e.observer))?.map((e) => ({
|
|
7127
7108
|
observer: e.observer,
|
|
7128
7109
|
options: e.options,
|
|
7129
7110
|
callback: (t) => X({
|
|
@@ -7135,7 +7116,7 @@ function Oo(e = {}) {
|
|
|
7135
7116
|
})
|
|
7136
7117
|
})) || []
|
|
7137
7118
|
}, g);
|
|
7138
|
-
|
|
7119
|
+
P.addLoadListener((n) => {
|
|
7139
7120
|
try {
|
|
7140
7121
|
e.push(t(n.contentDocument));
|
|
7141
7122
|
} catch (e) {
|
|
@@ -7143,7 +7124,7 @@ function Oo(e = {}) {
|
|
|
7143
7124
|
}
|
|
7144
7125
|
});
|
|
7145
7126
|
let n = () => {
|
|
7146
|
-
|
|
7127
|
+
Oo(), e.push(t(document)), Ao = !0;
|
|
7147
7128
|
};
|
|
7148
7129
|
return ["interactive", "complete"].includes(document.readyState) ? n() : (e.push(W("DOMContentLoaded", () => {
|
|
7149
7130
|
X({
|
|
@@ -7162,14 +7143,14 @@ function Oo(e = {}) {
|
|
|
7162
7143
|
} catch (e) {
|
|
7163
7144
|
String(e).toLowerCase().includes("cross-origin") || console.warn(e);
|
|
7164
7145
|
}
|
|
7165
|
-
}),
|
|
7146
|
+
}), le.destroy(), Ao = !1, Na();
|
|
7166
7147
|
};
|
|
7167
7148
|
} catch (e) {
|
|
7168
7149
|
console.warn(e);
|
|
7169
7150
|
}
|
|
7170
7151
|
}
|
|
7171
|
-
|
|
7172
|
-
if (!
|
|
7152
|
+
jo.addCustomEvent = (e, t) => {
|
|
7153
|
+
if (!Ao) throw Error("please add custom event after start recording");
|
|
7173
7154
|
X({
|
|
7174
7155
|
type: K.Custom,
|
|
7175
7156
|
data: {
|
|
@@ -7177,18 +7158,18 @@ Oo.addCustomEvent = (e, t) => {
|
|
|
7177
7158
|
payload: t
|
|
7178
7159
|
}
|
|
7179
7160
|
});
|
|
7180
|
-
},
|
|
7181
|
-
|
|
7182
|
-
},
|
|
7183
|
-
if (!
|
|
7184
|
-
|
|
7185
|
-
},
|
|
7186
|
-
var
|
|
7161
|
+
}, jo.freezePage = () => {
|
|
7162
|
+
Pa.forEach((e) => e.freeze());
|
|
7163
|
+
}, jo.takeFullSnapshot = (e) => {
|
|
7164
|
+
if (!Ao) throw Error("please take full snapshot after start recording");
|
|
7165
|
+
Oo(e);
|
|
7166
|
+
}, jo.mirror = Z;
|
|
7167
|
+
var Mo;
|
|
7187
7168
|
(function(e) {
|
|
7188
7169
|
e[e.NotStarted = 0] = "NotStarted", e[e.Running = 1] = "Running", e[e.Stopped = 2] = "Stopped";
|
|
7189
|
-
})(
|
|
7190
|
-
var { addCustomEvent:
|
|
7191
|
-
async function
|
|
7170
|
+
})(Mo ||= {});
|
|
7171
|
+
var { addCustomEvent: No } = jo, { freezePage: Po } = jo, { takeFullSnapshot: Fo } = jo, Io = 40, Lo = 7, Ro = 6e4;
|
|
7172
|
+
async function zo(e) {
|
|
7192
7173
|
if (typeof CompressionStream > "u") return null;
|
|
7193
7174
|
try {
|
|
7194
7175
|
return await new Response(new Blob([e]).stream().pipeThrough(new CompressionStream("gzip"))).blob();
|
|
@@ -7196,9 +7177,9 @@ async function Io(e) {
|
|
|
7196
7177
|
return null;
|
|
7197
7178
|
}
|
|
7198
7179
|
}
|
|
7199
|
-
function
|
|
7180
|
+
function Bo({ endpoint: e, onEvent: t = () => {} }) {
|
|
7200
7181
|
let n = [], r = !1, i = null, a = !1, o = (e, r) => {
|
|
7201
|
-
if (e.tries++, e.tries >=
|
|
7182
|
+
if (e.tries++, e.tries >= Lo) return n.shift(), t({
|
|
7202
7183
|
t: "drop",
|
|
7203
7184
|
b: e.b,
|
|
7204
7185
|
reason: "retries"
|
|
@@ -7213,13 +7194,13 @@ function Lo({ endpoint: e, onEvent: t = () => {} }) {
|
|
|
7213
7194
|
r = !0;
|
|
7214
7195
|
let c = n[0];
|
|
7215
7196
|
try {
|
|
7216
|
-
let i = await
|
|
7197
|
+
let i = await zo(c.json), s = i || c.json, l = i ? i.size : c.json.length, u = await fetch(e, {
|
|
7217
7198
|
method: "POST",
|
|
7218
7199
|
body: s,
|
|
7219
7200
|
credentials: "omit",
|
|
7220
7201
|
mode: "cors",
|
|
7221
7202
|
headers: { "Content-Type": "text/plain;charset=UTF-8" },
|
|
7222
|
-
keepalive: l <
|
|
7203
|
+
keepalive: l < Ro
|
|
7223
7204
|
});
|
|
7224
7205
|
if (u.ok) n.shift(), t({
|
|
7225
7206
|
t: "ack",
|
|
@@ -7255,7 +7236,7 @@ function Lo({ endpoint: e, onEvent: t = () => {} }) {
|
|
|
7255
7236
|
a || (n.push({
|
|
7256
7237
|
...e,
|
|
7257
7238
|
tries: 0
|
|
7258
|
-
}), n.length >
|
|
7239
|
+
}), n.length > Io && t({
|
|
7259
7240
|
t: "drop",
|
|
7260
7241
|
b: n.shift().b,
|
|
7261
7242
|
reason: "overflow"
|
|
@@ -7272,8 +7253,8 @@ function Lo({ endpoint: e, onEvent: t = () => {} }) {
|
|
|
7272
7253
|
}
|
|
7273
7254
|
//#endregion
|
|
7274
7255
|
//#region src/destination.js
|
|
7275
|
-
var
|
|
7276
|
-
function
|
|
7256
|
+
var Vo = "https://specto.sh", Ho = /^(localhost|127(?:\.\d{1,3}){3}|\[::1\]|0\.0\.0\.0|[^/:]+\.localhost)(?::\d+)?(?:\/|$)/i;
|
|
7257
|
+
function Uo(e) {
|
|
7277
7258
|
let t = String(e ?? "").trim(), n = t.indexOf("@");
|
|
7278
7259
|
return n <= 0 ? {
|
|
7279
7260
|
key: t,
|
|
@@ -7283,10 +7264,10 @@ function Bo(e) {
|
|
|
7283
7264
|
host: t.slice(n + 1).trim() || null
|
|
7284
7265
|
};
|
|
7285
7266
|
}
|
|
7286
|
-
function
|
|
7267
|
+
function Wo(e) {
|
|
7287
7268
|
let t = String(e ?? "").trim().replace(/\/+$/, "");
|
|
7288
7269
|
if (!t) throw Error("Specto: host is empty");
|
|
7289
|
-
/^[a-z][a-z0-9+.-]*:\/\//i.test(t) || (t = (
|
|
7270
|
+
/^[a-z][a-z0-9+.-]*:\/\//i.test(t) || (t = (Ho.test(t) ? "http://" : "https://") + t);
|
|
7290
7271
|
let n;
|
|
7291
7272
|
try {
|
|
7292
7273
|
n = new URL(t);
|
|
@@ -7296,8 +7277,8 @@ function Vo(e) {
|
|
|
7296
7277
|
if (n.protocol !== "https:" && n.protocol !== "http:") throw Error(`Specto: host must be http(s) — got "${e}"`);
|
|
7297
7278
|
return (n.origin + n.pathname).replace(/\/+$/, "");
|
|
7298
7279
|
}
|
|
7299
|
-
function
|
|
7300
|
-
let { key: r, host: i } =
|
|
7280
|
+
function Go(e = {}, { fallback: t = null, guessed: n = !1 } = {}) {
|
|
7281
|
+
let { key: r, host: i } = Uo(e.key), a = (t) => e.configUrl === !1 ? null : e.configUrl || String(t).replace(/\/api\/ingest$/, "/api/sdk/config");
|
|
7301
7282
|
if (e.endpoint) {
|
|
7302
7283
|
let t = String(e.endpoint);
|
|
7303
7284
|
return {
|
|
@@ -7316,7 +7297,7 @@ function Ho(e = {}, { fallback: t = null, guessed: n = !1 } = {}) {
|
|
|
7316
7297
|
host: null,
|
|
7317
7298
|
guessed: !1
|
|
7318
7299
|
};
|
|
7319
|
-
let s =
|
|
7300
|
+
let s = Wo(o || t), c = `${s}/api/ingest`;
|
|
7320
7301
|
return {
|
|
7321
7302
|
key: r,
|
|
7322
7303
|
endpoint: c,
|
|
@@ -7326,21 +7307,8 @@ function Ho(e = {}, { fallback: t = null, guessed: n = !1 } = {}) {
|
|
|
7326
7307
|
};
|
|
7327
7308
|
}
|
|
7328
7309
|
//#endregion
|
|
7329
|
-
//#region src/
|
|
7330
|
-
var
|
|
7331
|
-
function Go(e) {
|
|
7332
|
-
if (e && typeof e == "object") for (let t of Object.keys(e)) Wo(t) && typeof e[t] == "string" && e[t] && (e[t] = "***");
|
|
7333
|
-
}
|
|
7334
|
-
function Ko(e) {
|
|
7335
|
-
e && typeof e == "object" && (e.attributes && Go(e.attributes), Array.isArray(e.childNodes) && e.childNodes.forEach(Ko));
|
|
7336
|
-
}
|
|
7337
|
-
function qo(e, t) {
|
|
7338
|
-
try {
|
|
7339
|
-
e.type === 4 && typeof e.data?.href == "string" ? e.data.href = $(e.data.href, t) : e.type === 2 && e.data?.node ? Ko(e.data.node) : e.type === 3 && e.data && (Array.isArray(e.data.adds) && e.data.adds.forEach((e) => Ko(e.node)), Array.isArray(e.data.attributes) && e.data.attributes.forEach((e) => Go(e.attributes)));
|
|
7340
|
-
} catch {}
|
|
7341
|
-
return e;
|
|
7342
|
-
}
|
|
7343
|
-
var Jo = [
|
|
7310
|
+
//#region src/scrub.js
|
|
7311
|
+
var Ko = [
|
|
7344
7312
|
[/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}/gi, "[email]"],
|
|
7345
7313
|
[/\beyJ[\w-]{6,}\.[\w-]{6,}\.[\w-]{6,}\b/g, "[jwt]"],
|
|
7346
7314
|
[/\b(Bearer|Basic)\s+[\w.~+/=-]{8,}/gi, "$1 [token]"],
|
|
@@ -7349,36 +7317,51 @@ var Jo = [
|
|
|
7349
7317
|
];
|
|
7350
7318
|
function Q(e) {
|
|
7351
7319
|
let t = String(e ?? "");
|
|
7352
|
-
for (let [e, n] of
|
|
7320
|
+
for (let [e, n] of Ko) t = t.replace(e, n);
|
|
7353
7321
|
return t;
|
|
7354
7322
|
}
|
|
7323
|
+
//#endregion
|
|
7324
|
+
//#region src/recorder.js
|
|
7325
|
+
var qo = "0.3.0", Jo = (e) => (e = e.toLowerCase(), e.startsWith("data-") || e === "title" || e === "alt" || e === "placeholder" || e === "aria-label" || e === "value");
|
|
7355
7326
|
function Yo(e) {
|
|
7327
|
+
if (e && typeof e == "object") for (let t of Object.keys(e)) Jo(t) && typeof e[t] == "string" && e[t] && (e[t] = "***");
|
|
7328
|
+
}
|
|
7329
|
+
function Xo(e) {
|
|
7330
|
+
e && typeof e == "object" && (e.attributes && Yo(e.attributes), Array.isArray(e.childNodes) && e.childNodes.forEach(Xo));
|
|
7331
|
+
}
|
|
7332
|
+
function Zo(e, t) {
|
|
7333
|
+
try {
|
|
7334
|
+
e.type === 4 && typeof e.data?.href == "string" ? e.data.href = $(e.data.href, t) : e.type === 2 && e.data?.node ? Xo(e.data.node) : e.type === 3 && e.data && (Array.isArray(e.data.adds) && e.data.adds.forEach((e) => Xo(e.node)), Array.isArray(e.data.attributes) && e.data.attributes.forEach((e) => Yo(e.attributes)));
|
|
7335
|
+
} catch {}
|
|
7336
|
+
return e;
|
|
7337
|
+
}
|
|
7338
|
+
function Qo(e) {
|
|
7356
7339
|
return typeof e == "string" ? e : e && typeof e.href == "string" ? e.href : e && typeof e.url == "string" ? e.url : e == null ? "" : String(e);
|
|
7357
7340
|
}
|
|
7358
|
-
var
|
|
7341
|
+
var $o = 600, es = /(?:^|[-_.])(token|secret|password|passwd|auth|authorization|key|apikey|api[-_]?key|session|sid|code|signature|credential|email)s?$/i, ts = (e) => e.split(/[?&=]/)[0];
|
|
7359
7342
|
function $(e, t = !1) {
|
|
7360
7343
|
let n = String(e ?? "");
|
|
7361
7344
|
try {
|
|
7362
7345
|
let e = new URL(n, location.href), r = !1;
|
|
7363
|
-
(e.username || e.password) && (e.username = "", e.password = "", r = !0), t && (e.search ||
|
|
7364
|
-
for (let t of [...e.searchParams.keys()])
|
|
7346
|
+
(e.username || e.password) && (e.username = "", e.password = "", r = !0), t && (e.search || ts(e.hash) !== e.hash) && (e.search = "", e.hash = ts(e.hash), r = !0);
|
|
7347
|
+
for (let t of [...e.searchParams.keys()]) es.test(t) && (e.searchParams.set(t, "***"), r = !0);
|
|
7365
7348
|
if (e.hash) {
|
|
7366
|
-
let t = e.hash.replace(/([?&#]|^)([^=&?#]+)=([^&#]*)/g, (e, t, n) =>
|
|
7349
|
+
let t = e.hash.replace(/([?&#]|^)([^=&?#]+)=([^&#]*)/g, (e, t, n) => es.test(n) ? `${t}${n}=***` : e);
|
|
7367
7350
|
t !== e.hash && (e.hash = t, r = !0);
|
|
7368
7351
|
}
|
|
7369
7352
|
let i = Q(decodeURIComponent(e.pathname));
|
|
7370
|
-
return i !== decodeURIComponent(e.pathname) && (e.pathname = i, r = !0), r ? (/^[a-z][a-z0-9+.-]*:/i.test(n) ? e.href : e.pathname + e.search + e.hash).slice(0,
|
|
7353
|
+
return i !== decodeURIComponent(e.pathname) && (e.pathname = i, r = !0), r ? (/^[a-z][a-z0-9+.-]*:/i.test(n) ? e.href : e.pathname + e.search + e.hash).slice(0, $o) : n.slice(0, $o);
|
|
7371
7354
|
} catch {
|
|
7372
|
-
return Q(t ? n.split("?")[0] : n).slice(0,
|
|
7355
|
+
return Q(t ? n.split("?")[0] : n).slice(0, $o);
|
|
7373
7356
|
}
|
|
7374
7357
|
}
|
|
7375
|
-
var
|
|
7358
|
+
var ns = (e) => {
|
|
7376
7359
|
try {
|
|
7377
7360
|
return new URL(e, location.href).href;
|
|
7378
7361
|
} catch {
|
|
7379
7362
|
return String(e ?? "");
|
|
7380
7363
|
}
|
|
7381
|
-
},
|
|
7364
|
+
}, rs = [
|
|
7382
7365
|
"content-type",
|
|
7383
7366
|
"content-length",
|
|
7384
7367
|
"content-encoding",
|
|
@@ -7389,15 +7372,15 @@ var $o = (e) => {
|
|
|
7389
7372
|
"server-timing",
|
|
7390
7373
|
"x-request-id"
|
|
7391
7374
|
];
|
|
7392
|
-
function
|
|
7375
|
+
function is(e) {
|
|
7393
7376
|
let t = {};
|
|
7394
|
-
for (let n of
|
|
7377
|
+
for (let n of rs) try {
|
|
7395
7378
|
let r = e(n);
|
|
7396
7379
|
r && (t[n] = String(r).slice(0, 200));
|
|
7397
7380
|
} catch {}
|
|
7398
7381
|
return Object.keys(t).length ? t : void 0;
|
|
7399
7382
|
}
|
|
7400
|
-
function
|
|
7383
|
+
function as(e, t) {
|
|
7401
7384
|
try {
|
|
7402
7385
|
if (!e) return;
|
|
7403
7386
|
if (typeof e.get == "function") return e.get(t) || void 0;
|
|
@@ -7408,14 +7391,14 @@ function ns(e, t) {
|
|
|
7408
7391
|
for (let n of Object.keys(e)) if (n.toLowerCase() === t) return String(e[n]);
|
|
7409
7392
|
} catch {}
|
|
7410
7393
|
}
|
|
7411
|
-
function
|
|
7394
|
+
function os(e) {
|
|
7412
7395
|
try {
|
|
7413
7396
|
return e == null ? void 0 : typeof e == "string" ? e.length : typeof Blob < "u" && e instanceof Blob ? e.size : e instanceof ArrayBuffer || ArrayBuffer.isView(e) ? e.byteLength : typeof URLSearchParams < "u" && e instanceof URLSearchParams ? String(e).length : void 0;
|
|
7414
7397
|
} catch {
|
|
7415
7398
|
return;
|
|
7416
7399
|
}
|
|
7417
7400
|
}
|
|
7418
|
-
function
|
|
7401
|
+
function ss(e, t, n, r = () => !0) {
|
|
7419
7402
|
typeof performance < "u" && performance.getEntriesByName && setTimeout(() => {
|
|
7420
7403
|
try {
|
|
7421
7404
|
if (!r()) return;
|
|
@@ -7441,15 +7424,15 @@ function is(e, t, n, r = () => !0) {
|
|
|
7441
7424
|
} catch {}
|
|
7442
7425
|
}, 300);
|
|
7443
7426
|
}
|
|
7444
|
-
function
|
|
7445
|
-
return e + (typeof crypto < "u" && crypto.getRandomValues ? Array.from(crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(12))).map((e) => e.toString(16).padStart(2, "0")).join("") : Math.abs(Date.now() ^ performance.now() * 1e3
|
|
7427
|
+
function cs(e = "rec_") {
|
|
7428
|
+
return e + (typeof crypto < "u" && crypto.getRandomValues ? Array.from(crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(12))).map((e) => e.toString(16).padStart(2, "0")).join("") : Math.abs(Date.now() ^ performance.now() * 1e3).toString(16) + Math.random().toString(16).slice(2, 10));
|
|
7446
7429
|
}
|
|
7447
|
-
function
|
|
7430
|
+
function ls() {
|
|
7448
7431
|
if (typeof crypto > "u" || !crypto.getRandomValues) return null;
|
|
7449
7432
|
let e = crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16));
|
|
7450
7433
|
return btoa(String.fromCharCode(...e)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
7451
7434
|
}
|
|
7452
|
-
var
|
|
7435
|
+
var us = {
|
|
7453
7436
|
get(e, t) {
|
|
7454
7437
|
try {
|
|
7455
7438
|
return JSON.parse(window[e].getItem(t));
|
|
@@ -7467,13 +7450,13 @@ var ss = {
|
|
|
7467
7450
|
window[e].removeItem(t);
|
|
7468
7451
|
} catch {}
|
|
7469
7452
|
}
|
|
7470
|
-
},
|
|
7471
|
-
function
|
|
7472
|
-
let e =
|
|
7473
|
-
return typeof e != "string" && (e =
|
|
7453
|
+
}, ds = "specto-optout", fs = "specto-consent", ps = () => us.get("localStorage", ds) === !0, ms = () => us.get("localStorage", fs) === "granted";
|
|
7454
|
+
function hs() {
|
|
7455
|
+
let e = us.get("localStorage", "specto-vid");
|
|
7456
|
+
return typeof e != "string" && (e = cs("v_"), us.set("localStorage", "specto-vid", e)), e;
|
|
7474
7457
|
}
|
|
7475
|
-
var
|
|
7476
|
-
async function
|
|
7458
|
+
var gs = 18e5, _s = 144e5, vs = 4e3;
|
|
7459
|
+
async function ys(e, t) {
|
|
7477
7460
|
if (!e) return null;
|
|
7478
7461
|
try {
|
|
7479
7462
|
let n = typeof AbortController < "u" ? new AbortController() : null, r = n && setTimeout(() => n.abort(), 3e3), i = await fetch(`${e}?key=${encodeURIComponent(t)}`, {
|
|
@@ -7490,14 +7473,14 @@ async function gs(e, t) {
|
|
|
7490
7473
|
return { failed: !0 };
|
|
7491
7474
|
}
|
|
7492
7475
|
}
|
|
7493
|
-
function
|
|
7476
|
+
function bs(e = {}) {
|
|
7494
7477
|
if (typeof window > "u") return {
|
|
7495
7478
|
disabled: !0,
|
|
7496
7479
|
reason: "no window",
|
|
7497
7480
|
stop() {}
|
|
7498
7481
|
};
|
|
7499
7482
|
if (window.__spectoRec && !window.__spectoRec.disabled) return window.__spectoRec;
|
|
7500
|
-
let t =
|
|
7483
|
+
let t = Go(e, {
|
|
7501
7484
|
fallback: e._fallback || null,
|
|
7502
7485
|
guessed: !!e._guessed
|
|
7503
7486
|
});
|
|
@@ -7512,182 +7495,199 @@ function _s(e = {}) {
|
|
|
7512
7495
|
identify() {},
|
|
7513
7496
|
track() {},
|
|
7514
7497
|
sessionUrl: () => null
|
|
7515
|
-
};
|
|
7516
|
-
if (
|
|
7517
|
-
if (
|
|
7518
|
-
if (e.consent === "required" && !
|
|
7519
|
-
let
|
|
7520
|
-
window.__spectoRec =
|
|
7521
|
-
let
|
|
7522
|
-
if (n?.failed && t.guessed && e < 3) return setTimeout(() =>
|
|
7523
|
-
|
|
7498
|
+
}, o = navigator.doNotTrack === "1" || navigator.globalPrivacyControl === !0;
|
|
7499
|
+
if (o && e.privacySignals === "respect") return Object.assign(a, { reason: "dnt" });
|
|
7500
|
+
if (ps()) return Object.assign(a, { reason: "opted-out" });
|
|
7501
|
+
if (e.consent === "required" && !ms()) return Object.assign(a, { reason: "consent-required" });
|
|
7502
|
+
let s = Cs(e, t, o);
|
|
7503
|
+
window.__spectoRec = s;
|
|
7504
|
+
let c = (e) => ys(i, n).then((n) => {
|
|
7505
|
+
if (n?.failed && t.guessed && e < 3) return setTimeout(() => c(e + 1), e * 2e3);
|
|
7506
|
+
s._begin(n);
|
|
7524
7507
|
});
|
|
7525
|
-
return
|
|
7508
|
+
return c(1), s;
|
|
7526
7509
|
}
|
|
7527
|
-
var
|
|
7510
|
+
var xs = (e) => {
|
|
7528
7511
|
try {
|
|
7529
7512
|
console.warn(`[specto] ${e}`);
|
|
7530
7513
|
} catch {}
|
|
7531
|
-
},
|
|
7514
|
+
}, Ss = {
|
|
7532
7515
|
dom: 4e3,
|
|
7533
7516
|
console: 200,
|
|
7534
7517
|
network: 300,
|
|
7535
7518
|
event: 300,
|
|
7536
7519
|
identify: 20
|
|
7537
7520
|
};
|
|
7538
|
-
function
|
|
7539
|
-
let { key:
|
|
7521
|
+
function Cs(e, t, n = !1) {
|
|
7522
|
+
let { key: r, endpoint: i } = t, a = [], o = 0, s = !1, c = !1, l = null, u = [], d = performance.now(), f = () => Math.round(performance.now() - d), p = `specto-session:${r}`, m = null, h = {
|
|
7540
7523
|
strict: e.privacy === "strict",
|
|
7541
7524
|
console: e.console !== !1,
|
|
7542
7525
|
networkDetails: e.networkDetails !== !1
|
|
7543
|
-
},
|
|
7526
|
+
}, g = null, _ = () => g || h, v = () => {
|
|
7544
7527
|
try {
|
|
7545
|
-
return $(location.pathname,
|
|
7528
|
+
return $(location.pathname, _().strict).slice(0, 300);
|
|
7546
7529
|
} catch {
|
|
7547
7530
|
return;
|
|
7548
7531
|
}
|
|
7549
|
-
},
|
|
7550
|
-
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7532
|
+
}, y = () => {}, b = typeof WeakSet < "u" ? /* @__PURE__ */ new WeakSet() : null, x = null, S = !1, C = [], w = null, T = Date.now(), E = Date.now() - (performance.now() - d), D = Os(e), O = {
|
|
7533
|
+
network: [],
|
|
7534
|
+
console: [],
|
|
7535
|
+
event: [],
|
|
7536
|
+
clicks: []
|
|
7537
|
+
}, ee = {
|
|
7538
|
+
network: 100,
|
|
7539
|
+
console: 60,
|
|
7540
|
+
event: 80,
|
|
7541
|
+
clicks: 40
|
|
7542
|
+
}, k = (e, t) => {
|
|
7543
|
+
let n = O[e];
|
|
7544
|
+
n && t && typeof t == "object" && (n.push({
|
|
7545
|
+
...t,
|
|
7546
|
+
at: Math.round(E + (Number(t.t) || 0))
|
|
7547
|
+
}), n.length > ee[e] && n.shift());
|
|
7548
|
+
}, te = 0, A = null, ne = !1, re, ie = new Promise((e) => {
|
|
7549
|
+
re = e;
|
|
7550
|
+
}), j = [], ae = {}, oe = !1, M = (t, n) => {
|
|
7551
|
+
if (!c) {
|
|
7552
|
+
if (t !== "dom" && (k(t, n), (t === "network" || n?.type === "error") && te++), !s) {
|
|
7553
|
+
if ((ae[t] = (ae[t] || 0) + 1) > (Ss[t] ?? 100)) {
|
|
7554
|
+
t === "dom" && (oe = !0);
|
|
7554
7555
|
return;
|
|
7555
7556
|
}
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
}
|
|
7559
|
-
i.push({
|
|
7557
|
+
j.push([t, n]);
|
|
7558
|
+
} else a.push({
|
|
7560
7559
|
kind: t,
|
|
7561
7560
|
payload: n
|
|
7562
|
-
}),
|
|
7563
|
-
total:
|
|
7561
|
+
}), o++, e.onUpdate?.({
|
|
7562
|
+
total: o,
|
|
7564
7563
|
kind: t
|
|
7565
7564
|
});
|
|
7566
7565
|
}
|
|
7567
|
-
},
|
|
7568
|
-
function
|
|
7569
|
-
let t = Date.now(), n = e ? null :
|
|
7570
|
-
if (r)
|
|
7566
|
+
}, se = () => us.set("sessionStorage", p, m);
|
|
7567
|
+
function ce(e) {
|
|
7568
|
+
let t = Date.now(), n = e ? null : us.get("sessionStorage", p), r = !!(n && typeof n.id == "string" && t - n.active < gs && t - n.started < _s);
|
|
7569
|
+
if (r) m = n;
|
|
7571
7570
|
else {
|
|
7572
|
-
let e = Math.max(0, Math.min(1,
|
|
7573
|
-
|
|
7574
|
-
id:
|
|
7575
|
-
sk:
|
|
7571
|
+
let e = Math.max(0, Math.min(1, g.sampleRate));
|
|
7572
|
+
m = {
|
|
7573
|
+
id: cs(),
|
|
7574
|
+
sk: ls(),
|
|
7576
7575
|
b: 0,
|
|
7577
7576
|
started: t,
|
|
7578
7577
|
active: t,
|
|
7579
7578
|
sampled: Math.random() < e
|
|
7580
7579
|
};
|
|
7581
7580
|
}
|
|
7582
|
-
return
|
|
7581
|
+
return m.active = t, se(), r;
|
|
7583
7582
|
}
|
|
7584
|
-
function
|
|
7585
|
-
if (
|
|
7583
|
+
function N() {
|
|
7584
|
+
if (ue(), ce(!0), !m.sampled) return F.stop("not-sampled");
|
|
7586
7585
|
try {
|
|
7587
|
-
|
|
7586
|
+
jo.takeFullSnapshot(!0);
|
|
7588
7587
|
} catch {}
|
|
7589
7588
|
}
|
|
7590
|
-
function
|
|
7591
|
-
if (!e.length || !
|
|
7589
|
+
function P(e) {
|
|
7590
|
+
if (!e.length || !m?.sampled) return;
|
|
7592
7591
|
let t = {
|
|
7593
|
-
b:
|
|
7592
|
+
b: m.b++,
|
|
7594
7593
|
json: JSON.stringify({
|
|
7595
|
-
key:
|
|
7596
|
-
sessionId:
|
|
7597
|
-
...
|
|
7598
|
-
b:
|
|
7599
|
-
sdk:
|
|
7594
|
+
key: r,
|
|
7595
|
+
sessionId: m.id,
|
|
7596
|
+
...m.sk ? { sk: m.sk } : {},
|
|
7597
|
+
b: m.b - 1,
|
|
7598
|
+
sdk: qo,
|
|
7600
7599
|
meta: {
|
|
7601
7600
|
page: $(location.pathname),
|
|
7602
7601
|
userAgent: navigator.userAgent,
|
|
7603
|
-
visitorId:
|
|
7602
|
+
visitorId: hs(),
|
|
7603
|
+
...D ? { release: D } : {}
|
|
7604
7604
|
},
|
|
7605
7605
|
events: e
|
|
7606
7606
|
})
|
|
7607
7607
|
};
|
|
7608
|
-
|
|
7608
|
+
m.active = Math.max(m.active, T), se(), x ? (x.postMessage({
|
|
7609
7609
|
t: "upload",
|
|
7610
7610
|
item: t
|
|
7611
|
-
}),
|
|
7611
|
+
}), S || C.push(t)) : w.push(t);
|
|
7612
7612
|
}
|
|
7613
|
-
function
|
|
7614
|
-
if (!
|
|
7613
|
+
function le() {
|
|
7614
|
+
if (!w) {
|
|
7615
7615
|
try {
|
|
7616
|
-
|
|
7616
|
+
x?.terminate();
|
|
7617
7617
|
} catch {}
|
|
7618
|
-
|
|
7619
|
-
endpoint:
|
|
7620
|
-
onEvent:
|
|
7618
|
+
x = null, w = Bo({
|
|
7619
|
+
endpoint: i,
|
|
7620
|
+
onEvent: de
|
|
7621
7621
|
});
|
|
7622
|
-
for (let e of
|
|
7622
|
+
for (let e of C.splice(0)) w.push(e);
|
|
7623
7623
|
}
|
|
7624
7624
|
}
|
|
7625
|
-
function
|
|
7626
|
-
if (!
|
|
7627
|
-
let e =
|
|
7628
|
-
|
|
7625
|
+
function ue() {
|
|
7626
|
+
if (!a.length) return;
|
|
7627
|
+
let e = a;
|
|
7628
|
+
a = [], P(e);
|
|
7629
7629
|
}
|
|
7630
|
-
function
|
|
7631
|
-
t.t === "stop" ?
|
|
7630
|
+
function de(t) {
|
|
7631
|
+
t.t === "stop" ? F.stop(t.code) : t.t === "rotate" && N(), e.onDelivery?.(t);
|
|
7632
7632
|
}
|
|
7633
|
-
function
|
|
7634
|
-
if (!
|
|
7635
|
-
let e =
|
|
7636
|
-
|
|
7637
|
-
let t = [],
|
|
7633
|
+
function fe() {
|
|
7634
|
+
if (!a.length || !navigator.sendBeacon || !m?.sampled) return;
|
|
7635
|
+
let e = a;
|
|
7636
|
+
a = [];
|
|
7637
|
+
let t = [], n = 0, o = () => {
|
|
7638
7638
|
if (!t.length) return;
|
|
7639
7639
|
let e = JSON.stringify({
|
|
7640
|
-
key:
|
|
7641
|
-
sessionId:
|
|
7642
|
-
...
|
|
7643
|
-
b:
|
|
7644
|
-
sdk:
|
|
7640
|
+
key: r,
|
|
7641
|
+
sessionId: m.id,
|
|
7642
|
+
...m.sk ? { sk: m.sk } : {},
|
|
7643
|
+
b: m.b++,
|
|
7644
|
+
sdk: qo,
|
|
7645
7645
|
meta: { page: $(location.pathname) },
|
|
7646
7646
|
events: t
|
|
7647
7647
|
});
|
|
7648
7648
|
try {
|
|
7649
|
-
navigator.sendBeacon(
|
|
7649
|
+
navigator.sendBeacon(i, new Blob([e], { type: "text/plain;charset=UTF-8" }));
|
|
7650
7650
|
} catch {}
|
|
7651
|
-
t = [],
|
|
7651
|
+
t = [], n = 0;
|
|
7652
7652
|
};
|
|
7653
|
-
for (let
|
|
7654
|
-
let e = JSON.stringify(
|
|
7655
|
-
|
|
7653
|
+
for (let r of e) {
|
|
7654
|
+
let e = JSON.stringify(r).length;
|
|
7655
|
+
n + e > 55e3 && o(), !(e > 55e3) && (t.push(r), n += e);
|
|
7656
7656
|
}
|
|
7657
|
-
o(),
|
|
7657
|
+
o(), se();
|
|
7658
7658
|
}
|
|
7659
|
-
let
|
|
7659
|
+
let F = {
|
|
7660
7660
|
disabled: !1,
|
|
7661
7661
|
get sessionId() {
|
|
7662
|
-
return
|
|
7662
|
+
return m?.id || null;
|
|
7663
7663
|
},
|
|
7664
|
-
count: () =>
|
|
7665
|
-
flushNow: () =>
|
|
7664
|
+
count: () => o,
|
|
7665
|
+
flushNow: () => ue(),
|
|
7666
7666
|
identify(e, t) {
|
|
7667
|
-
e != null && e !== "" &&
|
|
7668
|
-
id:
|
|
7667
|
+
e != null && e !== "" && (A = String(e).slice(0, 256), M("identify", {
|
|
7668
|
+
id: A,
|
|
7669
7669
|
traits: t && typeof t == "object" ? t : void 0
|
|
7670
|
-
});
|
|
7670
|
+
}));
|
|
7671
7671
|
},
|
|
7672
7672
|
track(e, t) {
|
|
7673
|
-
e &&
|
|
7674
|
-
t:
|
|
7673
|
+
e && M("event", {
|
|
7674
|
+
t: f(),
|
|
7675
7675
|
type: "custom",
|
|
7676
7676
|
name: String(e).slice(0, 120),
|
|
7677
7677
|
props: t && typeof t == "object" ? JSON.parse(JSON.stringify(t, (e, t) => typeof t == "string" ? Q(t).slice(0, 500) : t)) : void 0
|
|
7678
7678
|
});
|
|
7679
7679
|
},
|
|
7680
7680
|
captureError(e, t) {
|
|
7681
|
-
if (e && typeof e == "object" &&
|
|
7682
|
-
if (
|
|
7683
|
-
|
|
7681
|
+
if (e && typeof e == "object" && b) {
|
|
7682
|
+
if (b.has(e)) return;
|
|
7683
|
+
b.add(e);
|
|
7684
7684
|
}
|
|
7685
|
-
let n = Q(String(e && e.message || e || "error")).slice(0, 500), r =
|
|
7686
|
-
|
|
7687
|
-
t:
|
|
7685
|
+
let n = Q(String(e && e.message || e || "error")).slice(0, 500), r = ws(e?.stack), i = t?.componentStack ? Q(String(t.componentStack)).split("\n").map((e) => e.trim()).filter(Boolean).slice(0, 8).join("\n").slice(0, 800) : void 0;
|
|
7686
|
+
M("event", {
|
|
7687
|
+
t: f(),
|
|
7688
7688
|
type: "error",
|
|
7689
7689
|
message: n,
|
|
7690
|
-
path:
|
|
7690
|
+
path: v(),
|
|
7691
7691
|
...r ? { stack: r } : {},
|
|
7692
7692
|
...i ? { component: i } : {},
|
|
7693
7693
|
...t?.source ? { source: String(t.source).slice(0, 40) } : {}
|
|
@@ -7695,85 +7695,99 @@ function bs(e, t) {
|
|
|
7695
7695
|
},
|
|
7696
7696
|
sessionUrl() {
|
|
7697
7697
|
try {
|
|
7698
|
-
return
|
|
7698
|
+
return m ? `${t.host || new URL(i, location.href).origin}/#replay/${m.id}` : null;
|
|
7699
7699
|
} catch {
|
|
7700
7700
|
return null;
|
|
7701
7701
|
}
|
|
7702
7702
|
},
|
|
7703
|
+
_ready: ie,
|
|
7704
|
+
_point: {
|
|
7705
|
+
key: r,
|
|
7706
|
+
endpoint: i.replace(/\/api\/ingest$/, "/api/point"),
|
|
7707
|
+
release: D,
|
|
7708
|
+
strict: () => _().strict,
|
|
7709
|
+
identified: () => A,
|
|
7710
|
+
recent: () => ({
|
|
7711
|
+
network: O.network.slice(),
|
|
7712
|
+
console: O.console.slice(),
|
|
7713
|
+
event: O.event.slice(),
|
|
7714
|
+
clicks: O.clicks.slice()
|
|
7715
|
+
}),
|
|
7716
|
+
active: (e) => {
|
|
7717
|
+
ne = !!e;
|
|
7718
|
+
}
|
|
7719
|
+
},
|
|
7703
7720
|
stop(e) {
|
|
7704
|
-
if (
|
|
7705
|
-
|
|
7721
|
+
if (c) return;
|
|
7722
|
+
re(null), c = !0, F.disabled = !0, F.reason = e || "stopped";
|
|
7706
7723
|
try {
|
|
7707
|
-
|
|
7724
|
+
l?.();
|
|
7708
7725
|
} catch {}
|
|
7709
|
-
for (let e of
|
|
7726
|
+
for (let e of u.splice(0)) try {
|
|
7710
7727
|
e();
|
|
7711
7728
|
} catch {}
|
|
7712
|
-
|
|
7713
|
-
let t =
|
|
7714
|
-
t && setTimeout(() => t.terminate(), 2e3), window.__spectoRec ===
|
|
7729
|
+
ue(), x && !S && C.length && le();
|
|
7730
|
+
let t = x;
|
|
7731
|
+
t && setTimeout(() => t.terminate(), 2e3), window.__spectoRec === F && delete window.__spectoRec;
|
|
7715
7732
|
},
|
|
7716
|
-
_begin(
|
|
7717
|
-
if (
|
|
7718
|
-
let
|
|
7719
|
-
if (
|
|
7720
|
-
if (
|
|
7721
|
-
if (
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7733
|
+
_begin(a) {
|
|
7734
|
+
if (c || s) return;
|
|
7735
|
+
let o = a && typeof a == "object" ? a : {}, d = t.host || i;
|
|
7736
|
+
if (o.unknownKey) return F.stop("unknown-key"), xs(`${d} has no project with the key ${r}, so nothing is recorded. Copy the key from the project's Install page${t.guessed ? " — a self-hosted or EU-region project includes its host: pk_…@your-host" : ""}.`);
|
|
7737
|
+
if (o.failed && t.guessed) return F.stop("unconfirmed"), xs(`couldn't reach ${d} to confirm the key ${r}, so this page isn't recorded.`);
|
|
7738
|
+
if (o.enabled === !1) return re(null), F.stop("recording-disabled");
|
|
7739
|
+
if (n && (o.respectPrivacySignals === !0 || o.failed)) return F.stop("dnt");
|
|
7740
|
+
re(o), g = {
|
|
7741
|
+
strict: e.privacy === "strict" || o.privacy === "strict",
|
|
7742
|
+
console: e.console !== !1 && o.captureConsole !== !1,
|
|
7743
|
+
networkDetails: e.networkDetails !== !1 && o.captureNetworkDetails !== !1,
|
|
7744
|
+
sampleRate: Math.min(e.sampleRate ?? 1, typeof o.sampleRate == "number" ? o.sampleRate : 1)
|
|
7727
7745
|
};
|
|
7728
|
-
let
|
|
7729
|
-
if (!
|
|
7730
|
-
let
|
|
7731
|
-
|
|
7732
|
-
for (let [e, t] of
|
|
7733
|
-
let n =
|
|
7734
|
-
n &&
|
|
7735
|
-
}
|
|
7736
|
-
if (
|
|
7746
|
+
let f = ce(!1);
|
|
7747
|
+
if (!m.sampled) return F.stop("not-sampled");
|
|
7748
|
+
let p = g.strict && !h.strict, _ = p || oe;
|
|
7749
|
+
s = !0;
|
|
7750
|
+
for (let [e, t] of j.splice(0)) {
|
|
7751
|
+
let n = me(e, t, p, _);
|
|
7752
|
+
n && M(e, n);
|
|
7753
|
+
}
|
|
7754
|
+
if (_) {
|
|
7737
7755
|
try {
|
|
7738
|
-
|
|
7756
|
+
l?.();
|
|
7739
7757
|
} catch {}
|
|
7740
|
-
|
|
7758
|
+
l = pe();
|
|
7741
7759
|
}
|
|
7742
7760
|
try {
|
|
7743
|
-
if (
|
|
7744
|
-
|
|
7761
|
+
if (x = e.createWorker ? e.createWorker() : null, x) {
|
|
7762
|
+
x.onmessage = (e) => {
|
|
7745
7763
|
let t = e.data || {};
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
ie(t);
|
|
7751
|
-
}, b.onerror = () => {
|
|
7752
|
-
x || A();
|
|
7753
|
-
}, b.postMessage({
|
|
7764
|
+
t.t === "ready" ? (S = !0, C = []) : de(t);
|
|
7765
|
+
}, x.onerror = () => {
|
|
7766
|
+
S || le();
|
|
7767
|
+
}, x.postMessage({
|
|
7754
7768
|
t: "init",
|
|
7755
|
-
endpoint:
|
|
7769
|
+
endpoint: i
|
|
7756
7770
|
});
|
|
7757
7771
|
let e = setTimeout(() => {
|
|
7758
|
-
|
|
7759
|
-
},
|
|
7760
|
-
|
|
7772
|
+
S || le();
|
|
7773
|
+
}, vs);
|
|
7774
|
+
u.push(() => clearTimeout(e));
|
|
7761
7775
|
}
|
|
7762
7776
|
} catch {
|
|
7763
|
-
|
|
7777
|
+
x = null;
|
|
7764
7778
|
}
|
|
7765
|
-
|
|
7766
|
-
endpoint:
|
|
7767
|
-
onEvent:
|
|
7768
|
-
})),
|
|
7769
|
-
let
|
|
7770
|
-
|
|
7779
|
+
x || (w = Bo({
|
|
7780
|
+
endpoint: i,
|
|
7781
|
+
onEvent: de
|
|
7782
|
+
})), _e(f);
|
|
7783
|
+
let v = setInterval(ue, 2e3);
|
|
7784
|
+
u.push(() => clearInterval(v));
|
|
7771
7785
|
}
|
|
7772
7786
|
};
|
|
7773
|
-
function
|
|
7774
|
-
let e =
|
|
7775
|
-
return
|
|
7776
|
-
emit: (e) =>
|
|
7787
|
+
function pe() {
|
|
7788
|
+
let e = _().strict;
|
|
7789
|
+
return jo({
|
|
7790
|
+
emit: (e) => M("dom", Zo(e, _().strict)),
|
|
7777
7791
|
maskAllInputs: !0,
|
|
7778
7792
|
maskInputOptions: {
|
|
7779
7793
|
password: !0,
|
|
@@ -7794,17 +7808,17 @@ function bs(e, t) {
|
|
|
7794
7808
|
}
|
|
7795
7809
|
});
|
|
7796
7810
|
}
|
|
7797
|
-
function
|
|
7811
|
+
function me(e, t, n, r) {
|
|
7798
7812
|
if (e === "dom") return r ? null : t;
|
|
7799
7813
|
if (!t || typeof t != "object") return t;
|
|
7800
7814
|
if (e === "console") {
|
|
7801
|
-
if (!
|
|
7815
|
+
if (!g.console) return null;
|
|
7802
7816
|
n && (t.text = "[masked]");
|
|
7803
|
-
} else e === "network" ? (n && t.url && (t.url = $(t.url, !0)),
|
|
7817
|
+
} else e === "network" ? (n && t.url && (t.url = $(t.url, !0)), g.networkDetails || delete t.detail) : e === "event" && t.type === "nav" && n && t.path && (t.path = $(t.path, !0).slice(0, 300));
|
|
7804
7818
|
return t;
|
|
7805
7819
|
}
|
|
7806
|
-
function
|
|
7807
|
-
if (
|
|
7820
|
+
function he() {
|
|
7821
|
+
if (l = pe(), h.console) for (let e of [
|
|
7808
7822
|
"log",
|
|
7809
7823
|
"info",
|
|
7810
7824
|
"warn",
|
|
@@ -7813,22 +7827,22 @@ function bs(e, t) {
|
|
|
7813
7827
|
let t = console[e];
|
|
7814
7828
|
console[e] = (...n) => {
|
|
7815
7829
|
try {
|
|
7816
|
-
|
|
7817
|
-
t:
|
|
7830
|
+
_().console && M("console", {
|
|
7831
|
+
t: f(),
|
|
7818
7832
|
level: e,
|
|
7819
|
-
text:
|
|
7833
|
+
text: _().strict ? "[masked]" : Q(n.map(As).join(" ")).slice(0, 2e3)
|
|
7820
7834
|
});
|
|
7821
7835
|
} catch {}
|
|
7822
7836
|
t.apply(console, n);
|
|
7823
|
-
},
|
|
7837
|
+
}, u.push(() => {
|
|
7824
7838
|
console[e] = t;
|
|
7825
7839
|
});
|
|
7826
7840
|
}
|
|
7827
|
-
if (
|
|
7841
|
+
if (h.networkDetails) try {
|
|
7828
7842
|
performance.setResourceTimingBufferSize?.(1e3);
|
|
7829
7843
|
} catch {}
|
|
7830
|
-
let n = () =>
|
|
7831
|
-
for (let e of [
|
|
7844
|
+
let n = () => _().networkDetails, r = window.fetch, a = (e) => new URL(e, location.href).href.split(/[?#]/)[0], o = /* @__PURE__ */ new Set();
|
|
7845
|
+
for (let e of [i, t.configUrl]) try {
|
|
7832
7846
|
e && o.add(a(e));
|
|
7833
7847
|
} catch {}
|
|
7834
7848
|
let s = (e) => {
|
|
@@ -7837,26 +7851,26 @@ function bs(e, t) {
|
|
|
7837
7851
|
} catch {
|
|
7838
7852
|
return !1;
|
|
7839
7853
|
}
|
|
7840
|
-
},
|
|
7854
|
+
}, c = new Set((Array.isArray(e.traceOrigins) ? e.traceOrigins : []).map((e) => {
|
|
7841
7855
|
try {
|
|
7842
7856
|
return new URL(e).origin;
|
|
7843
7857
|
} catch {
|
|
7844
7858
|
return null;
|
|
7845
7859
|
}
|
|
7846
|
-
}).filter(Boolean)),
|
|
7847
|
-
if (!
|
|
7860
|
+
}).filter(Boolean)), d = !!e.traces || c.size > 0, p = (e) => {
|
|
7861
|
+
if (!d) return !1;
|
|
7848
7862
|
try {
|
|
7849
7863
|
let t = new URL(e, location.href).origin;
|
|
7850
|
-
return t === location.origin ||
|
|
7864
|
+
return t === location.origin || c.has(t);
|
|
7851
7865
|
} catch {
|
|
7852
7866
|
return !1;
|
|
7853
7867
|
}
|
|
7854
|
-
},
|
|
7868
|
+
}, m = (e) => {
|
|
7855
7869
|
try {
|
|
7856
|
-
let [t, n] = e, r = typeof Request < "u" && t instanceof Request, i = new Headers(n?.headers ?? (r ? t.headers : void 0)), a =
|
|
7870
|
+
let [t, n] = e, r = typeof Request < "u" && t instanceof Request, i = new Headers(n?.headers ?? (r ? t.headers : void 0)), a = Es.exec(i.get("traceparent") || "");
|
|
7857
7871
|
if (a) return [e, a[1].toLowerCase()];
|
|
7858
|
-
let o =
|
|
7859
|
-
return i.set("traceparent", `00-${o}-${
|
|
7872
|
+
let o = Ts(16);
|
|
7873
|
+
return i.set("traceparent", `00-${o}-${Ts(8)}-01`), [[t, {
|
|
7860
7874
|
...n,
|
|
7861
7875
|
headers: i
|
|
7862
7876
|
}], o];
|
|
@@ -7865,16 +7879,16 @@ function bs(e, t) {
|
|
|
7865
7879
|
}
|
|
7866
7880
|
};
|
|
7867
7881
|
window.fetch = async (...e) => {
|
|
7868
|
-
if (s(
|
|
7869
|
-
let t = performance.now(),
|
|
7870
|
-
p(
|
|
7882
|
+
if (s(Qo(e[0]))) return r.apply(window, e);
|
|
7883
|
+
let t = performance.now(), i = Qo(e[0]), a = $(i, _().strict), o = (e[1]?.method || typeof e[0] != "string" && e[0]?.method || "GET").toUpperCase(), c;
|
|
7884
|
+
p(i) && ([e, c] = m(e));
|
|
7871
7885
|
try {
|
|
7872
|
-
let s = await
|
|
7886
|
+
let s = await r.apply(window, e), l = c;
|
|
7873
7887
|
try {
|
|
7874
7888
|
l = l || s.headers.get("x-trace-id") || void 0;
|
|
7875
7889
|
} catch {}
|
|
7876
7890
|
let u = {
|
|
7877
|
-
t:
|
|
7891
|
+
t: f(),
|
|
7878
7892
|
method: o,
|
|
7879
7893
|
url: a,
|
|
7880
7894
|
status: s.status,
|
|
@@ -7882,24 +7896,24 @@ function bs(e, t) {
|
|
|
7882
7896
|
...l ? { traceId: l } : {}
|
|
7883
7897
|
};
|
|
7884
7898
|
if (n()) {
|
|
7885
|
-
let
|
|
7899
|
+
let r = { initiator: "fetch" };
|
|
7886
7900
|
try {
|
|
7887
|
-
s.statusText && (
|
|
7888
|
-
let t =
|
|
7889
|
-
t && (
|
|
7901
|
+
s.statusText && (r.statusText = String(s.statusText).slice(0, 80));
|
|
7902
|
+
let t = is((e) => s.headers.get(e));
|
|
7903
|
+
t && (r.headers = t), t?.["content-type"] && (r.resType = t["content-type"].split(";")[0]);
|
|
7890
7904
|
let n = Number(t?.["content-length"]);
|
|
7891
|
-
t?.["content-length"] != null && Number.isFinite(n) && (
|
|
7892
|
-
let
|
|
7893
|
-
|
|
7894
|
-
let a =
|
|
7895
|
-
a != null && (
|
|
7905
|
+
t?.["content-length"] != null && Number.isFinite(n) && (r.resSize = n);
|
|
7906
|
+
let i = as((e[1] || (typeof e[0] == "object" ? e[0] : null))?.headers, "content-type");
|
|
7907
|
+
i && (r.reqType = i.split(";")[0].slice(0, 80));
|
|
7908
|
+
let a = os(e[1]?.body);
|
|
7909
|
+
a != null && (r.reqSize = a);
|
|
7896
7910
|
} catch {}
|
|
7897
|
-
u.detail =
|
|
7911
|
+
u.detail = r, ss(u, ns(i), t, n);
|
|
7898
7912
|
}
|
|
7899
|
-
return
|
|
7913
|
+
return M("network", u), s;
|
|
7900
7914
|
} catch (e) {
|
|
7901
|
-
throw
|
|
7902
|
-
t:
|
|
7915
|
+
throw M("network", {
|
|
7916
|
+
t: f(),
|
|
7903
7917
|
method: o,
|
|
7904
7918
|
url: a,
|
|
7905
7919
|
status: 0,
|
|
@@ -7911,38 +7925,38 @@ function bs(e, t) {
|
|
|
7911
7925
|
} } : {}
|
|
7912
7926
|
}), e;
|
|
7913
7927
|
}
|
|
7914
|
-
},
|
|
7915
|
-
window.fetch =
|
|
7928
|
+
}, u.push(() => {
|
|
7929
|
+
window.fetch = r;
|
|
7916
7930
|
});
|
|
7917
|
-
let
|
|
7918
|
-
|
|
7931
|
+
let g = window.XMLHttpRequest, x = g.prototype.open, S = g.prototype.send, C = g.prototype.setRequestHeader;
|
|
7932
|
+
g.prototype.open = function(e, t) {
|
|
7919
7933
|
return this.__specto = {
|
|
7920
7934
|
method: String(e).toUpperCase(),
|
|
7921
|
-
url: $(t,
|
|
7922
|
-
rawUrl:
|
|
7935
|
+
url: $(t, _().strict),
|
|
7936
|
+
rawUrl: ns(t),
|
|
7923
7937
|
started: 0,
|
|
7924
7938
|
trace: p(t)
|
|
7925
7939
|
}, x.apply(this, arguments);
|
|
7926
|
-
},
|
|
7940
|
+
}, g.prototype.setRequestHeader = function(e, t) {
|
|
7927
7941
|
let n = String(e).toLowerCase();
|
|
7928
7942
|
if (this.__specto && n === "content-type" && (this.__specto.reqType = String(t).split(";")[0].slice(0, 80)), this.__specto && n === "traceparent") {
|
|
7929
|
-
let e =
|
|
7943
|
+
let e = Es.exec(String(t));
|
|
7930
7944
|
e && (this.__specto.traceId = e[1].toLowerCase()), this.__specto.trace = !1;
|
|
7931
7945
|
}
|
|
7932
7946
|
return C.apply(this, arguments);
|
|
7933
|
-
},
|
|
7947
|
+
}, g.prototype.send = function(e) {
|
|
7934
7948
|
if (this.__specto) {
|
|
7935
7949
|
if (this.__specto.trace) try {
|
|
7936
|
-
let e =
|
|
7937
|
-
C.call(this, "traceparent", `00-${e}-${
|
|
7950
|
+
let e = Ts(16);
|
|
7951
|
+
C.call(this, "traceparent", `00-${e}-${Ts(8)}-01`), this.__specto.traceId = e;
|
|
7938
7952
|
} catch {}
|
|
7939
|
-
this.__specto.started = performance.now(), n() && (this.__specto.reqSize =
|
|
7953
|
+
this.__specto.started = performance.now(), n() && (this.__specto.reqSize = os(e)), this.addEventListener("loadend", () => {
|
|
7940
7954
|
let e = this.__specto, t = e.traceId;
|
|
7941
7955
|
try {
|
|
7942
7956
|
t = t || this.getResponseHeader("x-trace-id") || void 0;
|
|
7943
7957
|
} catch {}
|
|
7944
7958
|
let r = {
|
|
7945
|
-
t:
|
|
7959
|
+
t: f(),
|
|
7946
7960
|
method: e.method,
|
|
7947
7961
|
url: e.url,
|
|
7948
7962
|
status: this.status,
|
|
@@ -7954,73 +7968,69 @@ function bs(e, t) {
|
|
|
7954
7968
|
let t = { initiator: "xhr" };
|
|
7955
7969
|
try {
|
|
7956
7970
|
this.statusText && (t.statusText = String(this.statusText).slice(0, 80));
|
|
7957
|
-
let n =
|
|
7971
|
+
let n = is((e) => this.getResponseHeader(e));
|
|
7958
7972
|
n && (t.headers = n), n?.["content-type"] && (t.resType = n["content-type"].split(";")[0]);
|
|
7959
7973
|
let r = Number(n?.["content-length"]);
|
|
7960
7974
|
n?.["content-length"] != null && Number.isFinite(r) && (t.resSize = r), e.reqType && (t.reqType = e.reqType), e.reqSize != null && (t.reqSize = e.reqSize);
|
|
7961
7975
|
} catch {}
|
|
7962
|
-
r.detail = t,
|
|
7976
|
+
r.detail = t, ss(r, e.rawUrl, e.started, n);
|
|
7963
7977
|
}
|
|
7964
|
-
|
|
7978
|
+
M("network", r);
|
|
7965
7979
|
});
|
|
7966
7980
|
}
|
|
7967
7981
|
return S.apply(this, arguments);
|
|
7968
|
-
},
|
|
7969
|
-
|
|
7982
|
+
}, u.push(() => {
|
|
7983
|
+
g.prototype.open = x, g.prototype.send = S, g.prototype.setRequestHeader = C;
|
|
7970
7984
|
});
|
|
7971
7985
|
let w = (e) => {
|
|
7972
|
-
let t = e.error || e.reason, n =
|
|
7973
|
-
t:
|
|
7986
|
+
let t = e.error || e.reason, n = ws(t?.stack), r = {
|
|
7987
|
+
t: f(),
|
|
7974
7988
|
type: "error",
|
|
7975
7989
|
message: Q(String(e.message || t?.message || e.reason || "error")).slice(0, 500),
|
|
7976
|
-
path:
|
|
7990
|
+
path: v(),
|
|
7977
7991
|
...n ? { stack: n } : {}
|
|
7978
7992
|
};
|
|
7979
7993
|
setTimeout(() => {
|
|
7980
|
-
if (t && typeof t == "object" &&
|
|
7981
|
-
if (
|
|
7982
|
-
|
|
7994
|
+
if (t && typeof t == "object" && b) {
|
|
7995
|
+
if (b.has(t)) return;
|
|
7996
|
+
b.add(t);
|
|
7983
7997
|
}
|
|
7984
|
-
|
|
7998
|
+
M("event", r);
|
|
7985
7999
|
}, 0);
|
|
7986
8000
|
};
|
|
7987
|
-
window.addEventListener("error", w), window.addEventListener("unhandledrejection", w),
|
|
8001
|
+
window.addEventListener("error", w), window.addEventListener("unhandledrejection", w), u.push(() => {
|
|
7988
8002
|
window.removeEventListener("error", w), window.removeEventListener("unhandledrejection", w);
|
|
7989
|
-
}),
|
|
7990
|
-
|
|
7991
|
-
t:
|
|
8003
|
+
}), ge = () => {
|
|
8004
|
+
y(), M("event", {
|
|
8005
|
+
t: f(),
|
|
7992
8006
|
type: "nav",
|
|
7993
|
-
path: $(location.pathname + location.search + location.hash,
|
|
8007
|
+
path: $(location.pathname + location.search + location.hash, _().strict).slice(0, 300)
|
|
7994
8008
|
});
|
|
7995
8009
|
};
|
|
7996
|
-
let
|
|
8010
|
+
let T = history.pushState, E = history.replaceState;
|
|
7997
8011
|
history.pushState = function(...e) {
|
|
7998
|
-
let t =
|
|
8012
|
+
let t = T.apply(this, e);
|
|
7999
8013
|
try {
|
|
8000
|
-
|
|
8014
|
+
ge();
|
|
8001
8015
|
} catch {}
|
|
8002
8016
|
return t;
|
|
8003
8017
|
}, history.replaceState = function(...e) {
|
|
8004
|
-
let t =
|
|
8018
|
+
let t = E.apply(this, e);
|
|
8005
8019
|
try {
|
|
8006
|
-
|
|
8020
|
+
ge();
|
|
8007
8021
|
} catch {}
|
|
8008
8022
|
return t;
|
|
8009
8023
|
};
|
|
8010
|
-
let
|
|
8011
|
-
window.addEventListener("popstate",
|
|
8012
|
-
history.pushState =
|
|
8024
|
+
let D = () => ge();
|
|
8025
|
+
window.addEventListener("popstate", D), window.addEventListener("hashchange", D), u.push(() => {
|
|
8026
|
+
history.pushState = T, history.replaceState = E, window.removeEventListener("popstate", D), window.removeEventListener("hashchange", D);
|
|
8013
8027
|
});
|
|
8014
8028
|
}
|
|
8015
|
-
let
|
|
8016
|
-
function
|
|
8029
|
+
let ge = () => {};
|
|
8030
|
+
function _e(e) {
|
|
8017
8031
|
let t = () => {
|
|
8018
8032
|
let e = Date.now();
|
|
8019
|
-
|
|
8020
|
-
w = e, te();
|
|
8021
|
-
return;
|
|
8022
|
-
}
|
|
8023
|
-
w = e;
|
|
8033
|
+
e - T > gs ? (T = e, N()) : T = e;
|
|
8024
8034
|
};
|
|
8025
8035
|
for (let e of [
|
|
8026
8036
|
"click",
|
|
@@ -8030,11 +8040,12 @@ function bs(e, t) {
|
|
|
8030
8040
|
]) window.addEventListener(e, t, {
|
|
8031
8041
|
capture: !0,
|
|
8032
8042
|
passive: !0
|
|
8033
|
-
}),
|
|
8043
|
+
}), u.push(() => window.removeEventListener(e, t, { capture: !0 }));
|
|
8034
8044
|
if (e || location.hash.length > 1) try {
|
|
8035
|
-
|
|
8045
|
+
ge();
|
|
8036
8046
|
} catch {}
|
|
8037
8047
|
let n = [], r = (e) => {
|
|
8048
|
+
if (ne) return;
|
|
8038
8049
|
let t = performance.now();
|
|
8039
8050
|
if (n = n.filter((n) => t - n.t < 800 && Math.abs(n.x - e.clientX) < 40 && Math.abs(n.y - e.clientY) < 40), n.push({
|
|
8040
8051
|
t,
|
|
@@ -8042,29 +8053,29 @@ function bs(e, t) {
|
|
|
8042
8053
|
y: e.clientY
|
|
8043
8054
|
}), n.length >= 3) {
|
|
8044
8055
|
let t = e.target?.tagName ? e.target.tagName.toLowerCase() + (e.target.id ? "#" + e.target.id : "") : "element";
|
|
8045
|
-
|
|
8046
|
-
t:
|
|
8056
|
+
M("event", {
|
|
8057
|
+
t: f(),
|
|
8047
8058
|
type: "rage",
|
|
8048
8059
|
target: t.slice(0, 80),
|
|
8049
8060
|
count: n.length,
|
|
8050
|
-
path:
|
|
8061
|
+
path: v()
|
|
8051
8062
|
}), n = [];
|
|
8052
8063
|
}
|
|
8053
8064
|
};
|
|
8054
|
-
window.addEventListener("click", r, !0),
|
|
8065
|
+
window.addEventListener("click", r, !0), u.push(() => window.removeEventListener("click", r, !0));
|
|
8055
8066
|
let i = () => Math.max(document.documentElement?.scrollHeight || 0, document.body?.scrollHeight || 0), a = null, o = () => {
|
|
8056
8067
|
let e = i();
|
|
8057
8068
|
a && e > 0 && (a.depth = Math.max(a.depth, Math.min(1, (window.scrollY + window.innerHeight) / e)));
|
|
8058
8069
|
}, s = () => {
|
|
8059
8070
|
a = {
|
|
8060
8071
|
id: Math.random().toString(36).slice(2, 10),
|
|
8061
|
-
path: $(location.pathname,
|
|
8072
|
+
path: $(location.pathname, _().strict).slice(0, 300),
|
|
8062
8073
|
depth: 0,
|
|
8063
8074
|
clicks: 0
|
|
8064
8075
|
}, o();
|
|
8065
8076
|
}, c = () => {
|
|
8066
|
-
a &&
|
|
8067
|
-
t:
|
|
8077
|
+
a && M("event", {
|
|
8078
|
+
t: f(),
|
|
8068
8079
|
type: "scroll",
|
|
8069
8080
|
path: a.path,
|
|
8070
8081
|
pv: a.id,
|
|
@@ -8073,16 +8084,19 @@ function bs(e, t) {
|
|
|
8073
8084
|
dh: i()
|
|
8074
8085
|
});
|
|
8075
8086
|
};
|
|
8076
|
-
s(),
|
|
8077
|
-
$(location.pathname,
|
|
8087
|
+
s(), y = () => {
|
|
8088
|
+
$(location.pathname, _().strict).slice(0, 300) !== a?.path && (c(), s());
|
|
8078
8089
|
};
|
|
8079
|
-
let
|
|
8080
|
-
|
|
8081
|
-
|
|
8090
|
+
let l = !1, d = () => {
|
|
8091
|
+
l || (l = !0, requestAnimationFrame(() => {
|
|
8092
|
+
l = !1, o();
|
|
8082
8093
|
}));
|
|
8083
8094
|
}, p = (e) => {
|
|
8084
|
-
|
|
8085
|
-
|
|
8095
|
+
ne || (O.clicks.push({
|
|
8096
|
+
at: Date.now(),
|
|
8097
|
+
el: e.target
|
|
8098
|
+
}), O.clicks.length > ee.clicks && O.clicks.shift(), h(e), !(!a || a.clicks >= 300) && (a.clicks++, M("event", {
|
|
8099
|
+
t: f(),
|
|
8086
8100
|
type: "click",
|
|
8087
8101
|
path: a.path,
|
|
8088
8102
|
pv: a.id,
|
|
@@ -8090,49 +8104,93 @@ function bs(e, t) {
|
|
|
8090
8104
|
y: Math.round(e.pageY),
|
|
8091
8105
|
vw: window.innerWidth,
|
|
8092
8106
|
dh: i(),
|
|
8093
|
-
sel:
|
|
8094
|
-
}));
|
|
8107
|
+
sel: Ds(e.target)
|
|
8108
|
+
})));
|
|
8109
|
+
}, m = null, h = (e) => {
|
|
8110
|
+
let t = e.target, n = t?.closest?.("a,button,[role=button],[role=link],[role=tab],[onclick],[type=submit],summary") || (t?.nodeType === 1 && ks(t) ? t : null);
|
|
8111
|
+
if (!n || m || typeof MutationObserver > "u") return;
|
|
8112
|
+
let r = te, i = location.href, a = !1, o = new MutationObserver(() => {
|
|
8113
|
+
a = !0;
|
|
8114
|
+
});
|
|
8115
|
+
try {
|
|
8116
|
+
o.observe(document.documentElement, {
|
|
8117
|
+
subtree: !0,
|
|
8118
|
+
childList: !0,
|
|
8119
|
+
attributes: !0,
|
|
8120
|
+
characterData: !0
|
|
8121
|
+
});
|
|
8122
|
+
} catch {
|
|
8123
|
+
return;
|
|
8124
|
+
}
|
|
8125
|
+
m = setTimeout(() => {
|
|
8126
|
+
o.disconnect(), m = null, !a && te === r && location.href === i && !ne && M("event", {
|
|
8127
|
+
t: f(),
|
|
8128
|
+
type: "dead",
|
|
8129
|
+
target: Ds(n),
|
|
8130
|
+
path: v()
|
|
8131
|
+
});
|
|
8132
|
+
}, 1e3);
|
|
8095
8133
|
};
|
|
8096
|
-
|
|
8134
|
+
u.push(() => {
|
|
8135
|
+
m && clearTimeout(m);
|
|
8136
|
+
}), window.addEventListener("scroll", d, {
|
|
8097
8137
|
passive: !0,
|
|
8098
8138
|
capture: !0
|
|
8099
|
-
}), window.addEventListener("click", p, !0),
|
|
8100
|
-
window.removeEventListener("scroll",
|
|
8139
|
+
}), window.addEventListener("click", p, !0), u.push(() => {
|
|
8140
|
+
window.removeEventListener("scroll", d, { capture: !0 }), window.removeEventListener("click", p, !0);
|
|
8101
8141
|
});
|
|
8102
|
-
let
|
|
8103
|
-
c(),
|
|
8104
|
-
},
|
|
8105
|
-
document.visibilityState === "hidden" && (c(),
|
|
8106
|
-
},
|
|
8107
|
-
|
|
8142
|
+
let g = () => {
|
|
8143
|
+
c(), fe();
|
|
8144
|
+
}, b = () => {
|
|
8145
|
+
document.visibilityState === "hidden" && (c(), fe());
|
|
8146
|
+
}, S = () => {
|
|
8147
|
+
x ? x.postMessage({ t: "nudge" }) : w?.nudge();
|
|
8108
8148
|
};
|
|
8109
|
-
window.addEventListener("pagehide",
|
|
8110
|
-
window.removeEventListener("pagehide",
|
|
8149
|
+
window.addEventListener("pagehide", g), document.addEventListener("visibilitychange", b), window.addEventListener("online", S), u.push(() => {
|
|
8150
|
+
window.removeEventListener("pagehide", g), document.removeEventListener("visibilitychange", b), window.removeEventListener("online", S);
|
|
8111
8151
|
});
|
|
8112
8152
|
}
|
|
8113
|
-
return
|
|
8153
|
+
return he(), F;
|
|
8114
8154
|
}
|
|
8115
|
-
function
|
|
8155
|
+
function ws(e) {
|
|
8116
8156
|
if (e) return Q(String(e)).split("\n").slice(0, 6).map((e) => e.replace(/\?[^\s:)]*/g, "").slice(0, 300)).join("\n");
|
|
8117
8157
|
}
|
|
8118
|
-
var
|
|
8158
|
+
var Ts = (e) => {
|
|
8119
8159
|
let t = new Uint8Array(e);
|
|
8120
8160
|
return crypto.getRandomValues(t), Array.from(t, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
8121
|
-
},
|
|
8122
|
-
function
|
|
8161
|
+
}, Es = /^00-([0-9a-f]{32})-[0-9a-f]{16}-[0-9a-f]{2}$/i;
|
|
8162
|
+
function Ds(e) {
|
|
8123
8163
|
let t = [];
|
|
8124
8164
|
for (let n = e, r = 0; n && n.nodeType === 1 && r < 3 && n !== document.body && n !== document.documentElement; n = n.parentElement, r++) {
|
|
8125
|
-
let e = String(n.tagName || "").toLowerCase();
|
|
8165
|
+
let e = String(n.tagName || "").toLowerCase(), r = n.getAttribute("data-testid");
|
|
8166
|
+
if (r) {
|
|
8167
|
+
t.unshift(`[data-testid="${r}"]`);
|
|
8168
|
+
break;
|
|
8169
|
+
}
|
|
8126
8170
|
if (n.id) {
|
|
8127
8171
|
t.unshift(`${e}#${n.id}`);
|
|
8128
8172
|
break;
|
|
8129
8173
|
}
|
|
8130
|
-
let
|
|
8131
|
-
t.unshift(
|
|
8174
|
+
let i = typeof n.className == "string" ? n.className.trim().split(/\s+/).filter((e) => e && !e.startsWith("specto-")).slice(0, 2) : [];
|
|
8175
|
+
t.unshift(i.length ? `${e}.${i.join(".")}` : e);
|
|
8132
8176
|
}
|
|
8133
8177
|
return Q(t.join(" > ") || "body").slice(0, 160);
|
|
8134
8178
|
}
|
|
8135
|
-
function
|
|
8179
|
+
function Os(e) {
|
|
8180
|
+
let t = e.release;
|
|
8181
|
+
try {
|
|
8182
|
+
t ||= document.querySelector("meta[name=\"specto-release\"]")?.getAttribute("content");
|
|
8183
|
+
} catch {}
|
|
8184
|
+
return t && String(t).trim().slice(0, 80) || null;
|
|
8185
|
+
}
|
|
8186
|
+
function ks(e) {
|
|
8187
|
+
try {
|
|
8188
|
+
return getComputedStyle(e).cursor === "pointer";
|
|
8189
|
+
} catch {
|
|
8190
|
+
return !1;
|
|
8191
|
+
}
|
|
8192
|
+
}
|
|
8193
|
+
function As(e) {
|
|
8136
8194
|
if (typeof e == "string") return e;
|
|
8137
8195
|
if (e instanceof Error) return `${e.name}: ${e.message}`;
|
|
8138
8196
|
try {
|
|
@@ -8143,66 +8201,264 @@ function Ts(e) {
|
|
|
8143
8201
|
}
|
|
8144
8202
|
//#endregion
|
|
8145
8203
|
//#region src/recorder.worker.js?worker&inline
|
|
8146
|
-
var
|
|
8147
|
-
function
|
|
8204
|
+
var js = "(function(){async function e(e){if(typeof CompressionStream>`u`)return null;try{return await new Response(new Blob([e]).stream().pipeThrough(new CompressionStream(`gzip`))).blob()}catch{return null}}function t({endpoint:t,onEvent:n=()=>{}}){let r=[],i=!1,a=null,o=!1,s=(e,t)=>{if(e.tries++,e.tries>=7)return r.shift(),n({t:`drop`,b:e.b,reason:`retries`}),c();let i=t>0?t*1e3:Math.min(3e4,1e3*2**(e.tries-1))*(.75+Math.random()/2);a=setTimeout(()=>{a=null,c()},i)};async function c(){if(i||a||o||!r.length)return;i=!0;let l=r[0];try{let a=await e(l.json),c=a||l.json,u=a?a.size:l.json.length,d=await fetch(t,{method:`POST`,body:c,credentials:`omit`,mode:`cors`,headers:{\"Content-Type\":`text/plain;charset=UTF-8`},keepalive:u<6e4});if(d.ok)r.shift(),n({t:`ack`,b:l.b});else{let e=``;try{e=(await d.json())?.code||``}catch{}if(e===`session_limit`||e===`session_key`)r.length=0,n({t:`rotate`,code:e});else if(e===`quota_exceeded`||e===`recording_disabled`||d.status===401||d.status===403)r.length=0,o=!0,n({t:`stop`,code:e||String(d.status)});else if(d.status===429||d.status>=500)return i=!1,s(l,Number(d.headers.get(`Retry-After`))||0);else r.shift(),n({t:`drop`,b:l.b,reason:String(d.status)})}}catch{return i=!1,s(l,0)}i=!1,c()}return{push(e){o||(r.push({...e,tries:0}),r.length>40&&n({t:`drop`,b:r.shift().b,reason:`overflow`}),c())},nudge(){a&&=(clearTimeout(a),null),c()},stop(){o=!0,r.length=0,a&&clearTimeout(a)},pending:()=>r.length}}let n=null;self.onmessage=e=>{let r=e.data||{};r.t===`init`?(n=t({endpoint:r.endpoint,onEvent:e=>self.postMessage(e)}),self.postMessage({t:`ready`})):r.t===`upload`?n?.push(r.item):r.t===`nudge`?n?.nudge():r.t===`stop`&&n?.stop()}})();", Ms = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", js], { type: "text/javascript;charset=utf-8" });
|
|
8205
|
+
function Ns(e) {
|
|
8148
8206
|
let t;
|
|
8149
8207
|
try {
|
|
8150
|
-
if (t =
|
|
8208
|
+
if (t = Ms && (self.URL || self.webkitURL).createObjectURL(Ms), !t) throw "";
|
|
8151
8209
|
let n = new Worker(t, { name: e?.name });
|
|
8152
8210
|
return n.addEventListener("error", () => {
|
|
8153
8211
|
(self.URL || self.webkitURL).revokeObjectURL(t);
|
|
8154
8212
|
}), n;
|
|
8155
8213
|
} catch {
|
|
8156
|
-
return new Worker("data:text/javascript;charset=utf-8," + encodeURIComponent(
|
|
8214
|
+
return new Worker("data:text/javascript;charset=utf-8," + encodeURIComponent(js), { name: e?.name });
|
|
8215
|
+
}
|
|
8216
|
+
}
|
|
8217
|
+
//#endregion
|
|
8218
|
+
//#region src/point/trigger.js
|
|
8219
|
+
var Ps = 400, Fs = 250, Is = 330, Ls = 300, Rs = 40, zs = "specto-point", Bs = "specto-point-receipts", Vs = 6e5, Hs = {
|
|
8220
|
+
ControlLeft: "Control",
|
|
8221
|
+
ControlRight: "Control",
|
|
8222
|
+
AltLeft: "Alt",
|
|
8223
|
+
AltRight: "Alt",
|
|
8224
|
+
MetaLeft: "Meta",
|
|
8225
|
+
MetaRight: "Meta"
|
|
8226
|
+
}, Us = (e) => e.key || Hs[e.code] || "", Ws = (e, t) => !!t && !!e.altKey == !!t.alt && !!e.shiftKey == !!t.shift && !!e.ctrlKey == !!t.ctrl && !!e.metaKey == !!t.meta && String(e.code || e.key).replace(/^(Key|Digit)/, "").toUpperCase() === t.key;
|
|
8227
|
+
function Gs(e, { arm: t, release: n = () => {}, now: r = () => Date.now(), setTimer: i = setTimeout, clearTimer: a = clearTimeout, shortcut: o } = {}) {
|
|
8228
|
+
let s = e === "hold-alt" ? "Alt" : e === "hold-ctrl" ? "Control" : null, c = null, l = !1, u = null, d = 0, f = -Infinity, p = () => {
|
|
8229
|
+
c && a(c), c = null, u = null;
|
|
8230
|
+
}, m = (e) => e === "Control" || e === "Meta";
|
|
8231
|
+
return {
|
|
8232
|
+
feed(a) {
|
|
8233
|
+
let h = {
|
|
8234
|
+
...a,
|
|
8235
|
+
key: Us(a)
|
|
8236
|
+
}, g = h.time ?? r();
|
|
8237
|
+
if (h.type === "blur") p(), d = 0, l && (l = !1, n());
|
|
8238
|
+
else if (h.type === "pointerdown" || h.type === "wheel") p(), d = 0;
|
|
8239
|
+
else if (h.type === "keydown") {
|
|
8240
|
+
if (h.repeat) return;
|
|
8241
|
+
if (o || e === "none") {
|
|
8242
|
+
Ws(h, o) && t(e);
|
|
8243
|
+
return;
|
|
8244
|
+
}
|
|
8245
|
+
if (s) {
|
|
8246
|
+
h.key === s && !u ? (u = {
|
|
8247
|
+
key: h.key,
|
|
8248
|
+
at: g
|
|
8249
|
+
}, c = i(() => {
|
|
8250
|
+
c = null, u && (u = null, l = !0, t(e));
|
|
8251
|
+
}, Ps)) : p();
|
|
8252
|
+
return;
|
|
8253
|
+
}
|
|
8254
|
+
m(h.key) && !u ? u = {
|
|
8255
|
+
key: h.key,
|
|
8256
|
+
at: g,
|
|
8257
|
+
quiet: g - f >= Ls
|
|
8258
|
+
} : (u = null, d = 0, f = g);
|
|
8259
|
+
} else if (h.type === "keyup") {
|
|
8260
|
+
if (s) {
|
|
8261
|
+
h.key === s && (p(), l && (l = !1, n()));
|
|
8262
|
+
return;
|
|
8263
|
+
}
|
|
8264
|
+
if (e === "double-ctrl" && u && h.key === u.key) {
|
|
8265
|
+
let e = u;
|
|
8266
|
+
if (u = null, g - e.at >= Fs) {
|
|
8267
|
+
d = 0;
|
|
8268
|
+
return;
|
|
8269
|
+
}
|
|
8270
|
+
if (d && g - d < Is && e.at - d >= Rs) {
|
|
8271
|
+
d = 0, t("double-ctrl");
|
|
8272
|
+
return;
|
|
8273
|
+
}
|
|
8274
|
+
d = e.quiet ? g : 0;
|
|
8275
|
+
}
|
|
8276
|
+
}
|
|
8277
|
+
},
|
|
8278
|
+
cancel: p
|
|
8279
|
+
};
|
|
8280
|
+
}
|
|
8281
|
+
function Ks(e, t, n) {
|
|
8282
|
+
try {
|
|
8283
|
+
let r = Date.now(), i = JSON.parse(localStorage.getItem(Bs) || "[]").filter((e) => r - e.at < 7776e6);
|
|
8284
|
+
if (!i.length || r - (+localStorage.getItem(Bs + "-at") || 0) < Vs) return;
|
|
8285
|
+
localStorage.setItem(Bs + "-at", r), fetch(e._point.endpoint + "-status", {
|
|
8286
|
+
method: "POST",
|
|
8287
|
+
headers: { "Content-Type": "text/plain;charset=UTF-8" },
|
|
8288
|
+
credentials: "omit",
|
|
8289
|
+
body: JSON.stringify({
|
|
8290
|
+
key: e._point.key,
|
|
8291
|
+
receipts: i.map((e) => e.r)
|
|
8292
|
+
})
|
|
8293
|
+
}).then((e) => e.ok ? e.json() : null).then((e) => {
|
|
8294
|
+
if (!e) return;
|
|
8295
|
+
let r = [...e.gone || [], ...(e.fixed || []).map((e) => e.receipt)];
|
|
8296
|
+
localStorage.setItem(Bs, JSON.stringify(i.filter((e) => !r.includes(e.r)))), e.fixed?.length && t().then((t) => t.showFixed?.(e.fixed, { open: n }));
|
|
8297
|
+
}).catch(() => {});
|
|
8298
|
+
} catch {}
|
|
8299
|
+
}
|
|
8300
|
+
function qs(e, { identified: t, link: n }) {
|
|
8301
|
+
return e === "everyone" ? !0 : e === "link" ? n : n || !!t;
|
|
8302
|
+
}
|
|
8303
|
+
function Js() {
|
|
8304
|
+
try {
|
|
8305
|
+
return /[?&#]specto=point\b/.test(location.href) && sessionStorage.setItem(zs, "1"), sessionStorage.getItem(zs) === "1";
|
|
8306
|
+
} catch {
|
|
8307
|
+
return !1;
|
|
8157
8308
|
}
|
|
8158
8309
|
}
|
|
8310
|
+
function Ys(e, t, { launcher: n } = {}) {
|
|
8311
|
+
let r = null, i = null, a = null, o = null, s = null, c = () => qs(r.who, {
|
|
8312
|
+
identified: e._point?.identified(),
|
|
8313
|
+
link: Js()
|
|
8314
|
+
}), l = async (n = "api", o = null, s = null) => i || a || !e?._point ? i : (a = (async () => (r = (await e._ready)?.point || r, r?.enabled ? (i = (await t()).openPoint(e, {
|
|
8315
|
+
...r,
|
|
8316
|
+
via: n,
|
|
8317
|
+
target: o,
|
|
8318
|
+
about: s,
|
|
8319
|
+
onClose: () => {
|
|
8320
|
+
i = null;
|
|
8321
|
+
}
|
|
8322
|
+
}), i) : null))().catch((e) => {
|
|
8323
|
+
try {
|
|
8324
|
+
console.warn("[specto] Point:", e?.message || e);
|
|
8325
|
+
} catch {}
|
|
8326
|
+
return null;
|
|
8327
|
+
}).finally(() => {
|
|
8328
|
+
a = null;
|
|
8329
|
+
}), a), u = null, d = (e) => {
|
|
8330
|
+
i && e.composedPath?.().some((e) => e?.id === "specto-point") || u?.feed({
|
|
8331
|
+
type: e.type,
|
|
8332
|
+
key: e.key,
|
|
8333
|
+
code: e.code,
|
|
8334
|
+
repeat: e.repeat,
|
|
8335
|
+
altKey: e.altKey,
|
|
8336
|
+
ctrlKey: e.ctrlKey,
|
|
8337
|
+
metaKey: e.metaKey,
|
|
8338
|
+
shiftKey: e.shiftKey
|
|
8339
|
+
});
|
|
8340
|
+
}, f = (e) => () => u?.feed({ type: e }), p = [
|
|
8341
|
+
[
|
|
8342
|
+
window,
|
|
8343
|
+
"keydown",
|
|
8344
|
+
d,
|
|
8345
|
+
!0
|
|
8346
|
+
],
|
|
8347
|
+
[
|
|
8348
|
+
window,
|
|
8349
|
+
"keyup",
|
|
8350
|
+
d,
|
|
8351
|
+
!0
|
|
8352
|
+
],
|
|
8353
|
+
[
|
|
8354
|
+
window,
|
|
8355
|
+
"pointerdown",
|
|
8356
|
+
f("pointerdown"),
|
|
8357
|
+
!0
|
|
8358
|
+
],
|
|
8359
|
+
[
|
|
8360
|
+
window,
|
|
8361
|
+
"wheel",
|
|
8362
|
+
f("wheel"),
|
|
8363
|
+
{
|
|
8364
|
+
capture: !0,
|
|
8365
|
+
passive: !0
|
|
8366
|
+
}
|
|
8367
|
+
],
|
|
8368
|
+
[
|
|
8369
|
+
window,
|
|
8370
|
+
"blur",
|
|
8371
|
+
f("blur")
|
|
8372
|
+
]
|
|
8373
|
+
], m = !1;
|
|
8374
|
+
return e._ready?.then((a) => {
|
|
8375
|
+
if (r = a?.point || null, !r?.enabled) return;
|
|
8376
|
+
Js(), u = Gs(r.trigger, {
|
|
8377
|
+
shortcut: r.shortcut,
|
|
8378
|
+
arm: () => {
|
|
8379
|
+
c() && (i ? i.toggle?.() : l("shortcut"));
|
|
8380
|
+
},
|
|
8381
|
+
release: () => i?.released?.()
|
|
8382
|
+
});
|
|
8383
|
+
for (let [e, t, n, r] of p) e.addEventListener(t, n, r);
|
|
8384
|
+
m = !0;
|
|
8385
|
+
let d = (location.hash.match(/specto-about=([\w-]{20,40})/) || [])[1];
|
|
8386
|
+
/[?&#]specto=point\b/.test(location.href) && l(d ? "fixed" : "link", null, d), r.notify && Ks(e, t, l), s = () => {
|
|
8387
|
+
m && !o && (c() ? t().then((t) => {
|
|
8388
|
+
o ||= t.mountEntry?.(e, r, {
|
|
8389
|
+
open: l,
|
|
8390
|
+
may: c,
|
|
8391
|
+
local: n
|
|
8392
|
+
});
|
|
8393
|
+
}) : setTimeout(s, 2e3));
|
|
8394
|
+
}, (r.launcher && n !== !1 || n || r.nudge || r.hint || r.context && r.context !== "off") && setTimeout(s, 600);
|
|
8395
|
+
}), {
|
|
8396
|
+
open: (e) => l(e || "api"),
|
|
8397
|
+
launcher(e) {
|
|
8398
|
+
n = e, o ? o.launcher(e) : e && s?.();
|
|
8399
|
+
},
|
|
8400
|
+
stop() {
|
|
8401
|
+
if (m) for (let [e, t, n, r] of p) e.removeEventListener(t, n, r);
|
|
8402
|
+
m = !1, i?.close?.(), o?.stop?.();
|
|
8403
|
+
}
|
|
8404
|
+
};
|
|
8405
|
+
}
|
|
8159
8406
|
//#endregion
|
|
8160
8407
|
//#region src/index.js
|
|
8161
|
-
var
|
|
8162
|
-
function
|
|
8408
|
+
var Xs = null, Zs = null, Qs = () => import("./point-B777VT29.js");
|
|
8409
|
+
function $s(e = {}) {
|
|
8163
8410
|
if (!e.key) throw Error("@spectosh/browser: opts.key is required — your pk_… key from the project's Install page");
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8411
|
+
Xs = e;
|
|
8412
|
+
let t = bs({
|
|
8413
|
+
createWorker: () => new Ns(),
|
|
8414
|
+
_fallback: Vo,
|
|
8167
8415
|
_guessed: !0,
|
|
8168
8416
|
...e
|
|
8169
8417
|
});
|
|
8418
|
+
if (e.point !== !1 && t && !t.disabled && !Zs) try {
|
|
8419
|
+
Zs = Ys(t, Qs, { launcher: e.launcher });
|
|
8420
|
+
} catch {}
|
|
8421
|
+
return t;
|
|
8170
8422
|
}
|
|
8171
|
-
var
|
|
8172
|
-
|
|
8423
|
+
var ec = () => typeof window < "u" ? window.__spectoRec : null, tc = (e, t) => ec()?.identify(e, t), nc = (e, t) => ec()?.track(e, t), rc = (e, t) => ec()?.captureError?.(e, t), ic = () => ec()?.sessionUrl?.() || null, ac = () => {
|
|
8424
|
+
Zs?.stop(), Zs = null, ec()?.stop();
|
|
8425
|
+
}, oc = (e) => Zs?.open(e) ?? null, sc = (e) => Zs?.launcher(e);
|
|
8426
|
+
function cc() {
|
|
8173
8427
|
try {
|
|
8174
8428
|
localStorage.setItem("specto-consent", JSON.stringify("granted"));
|
|
8175
8429
|
} catch {}
|
|
8176
|
-
return
|
|
8430
|
+
return Xs ? $s(Xs) : null;
|
|
8177
8431
|
}
|
|
8178
|
-
function
|
|
8432
|
+
function lc() {
|
|
8179
8433
|
try {
|
|
8180
8434
|
localStorage.removeItem("specto-consent");
|
|
8181
8435
|
} catch {}
|
|
8182
|
-
|
|
8436
|
+
ac();
|
|
8183
8437
|
}
|
|
8184
|
-
function
|
|
8438
|
+
function uc() {
|
|
8185
8439
|
try {
|
|
8186
8440
|
localStorage.setItem("specto-optout", "true");
|
|
8187
8441
|
} catch {}
|
|
8188
|
-
|
|
8442
|
+
ac();
|
|
8189
8443
|
}
|
|
8190
|
-
function
|
|
8444
|
+
function dc() {
|
|
8191
8445
|
try {
|
|
8192
8446
|
localStorage.removeItem("specto-optout");
|
|
8193
8447
|
} catch {}
|
|
8194
8448
|
}
|
|
8195
|
-
var
|
|
8196
|
-
startRecording:
|
|
8197
|
-
identify:
|
|
8198
|
-
track:
|
|
8199
|
-
captureError:
|
|
8200
|
-
sessionUrl:
|
|
8201
|
-
stopRecording:
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
|
|
8205
|
-
|
|
8449
|
+
var fc = {
|
|
8450
|
+
startRecording: $s,
|
|
8451
|
+
identify: tc,
|
|
8452
|
+
track: nc,
|
|
8453
|
+
captureError: rc,
|
|
8454
|
+
sessionUrl: ic,
|
|
8455
|
+
stopRecording: ac,
|
|
8456
|
+
openPoint: oc,
|
|
8457
|
+
setLauncher: sc,
|
|
8458
|
+
grantConsent: cc,
|
|
8459
|
+
revokeConsent: lc,
|
|
8460
|
+
optOut: uc,
|
|
8461
|
+
optIn: dc
|
|
8206
8462
|
};
|
|
8207
8463
|
//#endregion
|
|
8208
|
-
export {
|
|
8464
|
+
export { Q as _, dc as a, ic as c, $s as d, ac as f, ps as g, ms as h, oc as i, sc as l, qo as m, cc as n, uc as o, nc as p, tc as r, lc as s, rc as t, fc as u, Vo as v, Uo as y };
|