@bworlds/launchkit 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +5 -0
- package/dist/launchkit.cjs +23 -23
- package/dist/launchkit.cjs.map +1 -1
- package/dist/launchkit.js +702 -701
- package/dist/launchkit.js.map +1 -1
- package/dist/launchkit.umd.js +23 -23
- package/dist/launchkit.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/launchkit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var za = Object.defineProperty, Wa = (s, e, t) => e in s ? za(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, S = (s, e, t) => Wa(s, typeof e != "symbol" ? e + "" : e, t), pi, Ha = Object.defineProperty, ja = (s, e, t) => e in s ? Ha(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, mi = (s, e, t) => ja(s, typeof e != "symbol" ? e + "" : e, t), K = /* @__PURE__ */ ((s) => (s[s.Document = 0] = "Document", s[s.DocumentType = 1] = "DocumentType", s[s.Element = 2] = "Element", s[s.Text = 3] = "Text", s[s.CDATA = 4] = "CDATA", s[s.Comment = 5] = "Comment", s))(K || {});
|
|
2
2
|
const gi = {
|
|
3
3
|
Node: ["childNodes", "parentNode", "parentElement", "textContent"],
|
|
4
4
|
ShadowRoot: ["host", "styleSheets"],
|
|
@@ -9,7 +9,7 @@ const gi = {
|
|
|
9
9
|
ShadowRoot: ["getSelection"],
|
|
10
10
|
Element: [],
|
|
11
11
|
MutationObserver: ["constructor"]
|
|
12
|
-
}, wt = {},
|
|
12
|
+
}, wt = {}, Ga = () => !!globalThis.Zone;
|
|
13
13
|
function Ts(s) {
|
|
14
14
|
if (wt[s])
|
|
15
15
|
return wt[s];
|
|
@@ -26,7 +26,7 @@ function Ts(s) {
|
|
|
26
26
|
return typeof t[l] == "function" && ((a = t[l]) == null ? void 0 : a.toString().includes("[native code]"));
|
|
27
27
|
}
|
|
28
28
|
));
|
|
29
|
-
if (i && o && !
|
|
29
|
+
if (i && o && !Ga())
|
|
30
30
|
return wt[s] = e.prototype, e.prototype;
|
|
31
31
|
try {
|
|
32
32
|
const l = document.createElement("iframe");
|
|
@@ -54,7 +54,7 @@ function we(s, e, t) {
|
|
|
54
54
|
return o ? (Ar[i] = o, o.call(e)) : e[t];
|
|
55
55
|
}
|
|
56
56
|
const Or = {};
|
|
57
|
-
function
|
|
57
|
+
function An(s, e, t) {
|
|
58
58
|
const r = `${s}.${String(t)}`;
|
|
59
59
|
if (Or[r])
|
|
60
60
|
return Or[r].bind(
|
|
@@ -63,57 +63,57 @@ function On(s, e, t) {
|
|
|
63
63
|
const n = Ts(s)[t];
|
|
64
64
|
return typeof n != "function" ? e[t] : (Or[r] = n, n.bind(e));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Va(s) {
|
|
67
67
|
return we("Node", s, "childNodes");
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Ya(s) {
|
|
70
70
|
return we("Node", s, "parentNode");
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Za(s) {
|
|
73
73
|
return we("Node", s, "parentElement");
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Ja(s) {
|
|
76
76
|
return we("Node", s, "textContent");
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
return
|
|
78
|
+
function Xa(s, e) {
|
|
79
|
+
return An("Node", s, "contains")(e);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
81
|
+
function Ka(s) {
|
|
82
|
+
return An("Node", s, "getRootNode")();
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function Qa(s) {
|
|
85
85
|
return !s || !("host" in s) ? null : we("ShadowRoot", s, "host");
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function qa(s) {
|
|
88
88
|
return s.styleSheets;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function el(s) {
|
|
91
91
|
return !s || !("shadowRoot" in s) ? null : we("Element", s, "shadowRoot");
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function tl(s, e) {
|
|
94
94
|
return we("Element", s, "querySelector")(e);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function rl(s, e) {
|
|
97
97
|
return we("Element", s, "querySelectorAll")(e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function sl() {
|
|
100
100
|
return Ts("MutationObserver").constructor;
|
|
101
101
|
}
|
|
102
102
|
const q = {
|
|
103
|
-
childNodes:
|
|
104
|
-
parentNode:
|
|
105
|
-
parentElement:
|
|
106
|
-
textContent:
|
|
107
|
-
contains:
|
|
108
|
-
getRootNode:
|
|
109
|
-
host:
|
|
110
|
-
styleSheets:
|
|
111
|
-
shadowRoot:
|
|
112
|
-
querySelector:
|
|
113
|
-
querySelectorAll:
|
|
114
|
-
mutationObserver:
|
|
103
|
+
childNodes: Va,
|
|
104
|
+
parentNode: Ya,
|
|
105
|
+
parentElement: Za,
|
|
106
|
+
textContent: Ja,
|
|
107
|
+
contains: Xa,
|
|
108
|
+
getRootNode: Ka,
|
|
109
|
+
host: Qa,
|
|
110
|
+
styleSheets: qa,
|
|
111
|
+
shadowRoot: el,
|
|
112
|
+
querySelector: tl,
|
|
113
|
+
querySelectorAll: rl,
|
|
114
|
+
mutationObserver: sl
|
|
115
115
|
};
|
|
116
|
-
function
|
|
116
|
+
function On(s) {
|
|
117
117
|
return s.nodeType === s.ELEMENT_NODE;
|
|
118
118
|
}
|
|
119
119
|
function Xe(s) {
|
|
@@ -127,13 +127,13 @@ function Xe(s) {
|
|
|
127
127
|
function Ke(s) {
|
|
128
128
|
return Object.prototype.toString.call(s) === "[object ShadowRoot]";
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function il(s) {
|
|
131
131
|
return s.includes(" background-clip: text;") && !s.includes(" -webkit-background-clip: text;") && (s = s.replace(
|
|
132
132
|
/\sbackground-clip:\s*text;/g,
|
|
133
133
|
" -webkit-background-clip: text; background-clip: text;"
|
|
134
134
|
)), s;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function nl(s) {
|
|
137
137
|
const { cssText: e } = s;
|
|
138
138
|
if (e.split('"').length < 3) return e;
|
|
139
139
|
const t = ["@import", `url(${JSON.stringify(s.href)})`];
|
|
@@ -148,41 +148,41 @@ function Yr(s) {
|
|
|
148
148
|
!t && s.ownerNode && s.ownerNode.ownerDocument && (t = s.ownerNode.ownerDocument.location.href);
|
|
149
149
|
const r = Array.from(
|
|
150
150
|
e,
|
|
151
|
-
(i) =>
|
|
151
|
+
(i) => $n(i, t)
|
|
152
152
|
).join("");
|
|
153
|
-
return
|
|
153
|
+
return il(r);
|
|
154
154
|
} catch {
|
|
155
155
|
return null;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
if (
|
|
158
|
+
function $n(s, e) {
|
|
159
|
+
if (al(s)) {
|
|
160
160
|
let t;
|
|
161
161
|
try {
|
|
162
162
|
t = // for same-origin stylesheets,
|
|
163
163
|
// we can access the imported stylesheet rules directly
|
|
164
164
|
Yr(s.styleSheet) || // work around browser issues with the raw string `@import url(...)` statement
|
|
165
|
-
|
|
165
|
+
nl(s);
|
|
166
166
|
} catch {
|
|
167
167
|
t = s.cssText;
|
|
168
168
|
}
|
|
169
169
|
return s.styleSheet.href ? Qt(t, s.styleSheet.href) : t;
|
|
170
170
|
} else {
|
|
171
171
|
let t = s.cssText;
|
|
172
|
-
return
|
|
172
|
+
return ll(s) && s.selectorText.includes(":") && (t = ol(t)), e ? Qt(t, e) : t;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function ol(s) {
|
|
176
176
|
const e = /(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;
|
|
177
177
|
return s.replace(e, "$1\\$2");
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function al(s) {
|
|
180
180
|
return "styleSheet" in s;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function ll(s) {
|
|
183
183
|
return "selectorText" in s;
|
|
184
184
|
}
|
|
185
|
-
class
|
|
185
|
+
class Nn {
|
|
186
186
|
constructor() {
|
|
187
187
|
mi(this, "idNodeMap", /* @__PURE__ */ new Map()), mi(this, "nodeMetaMap", /* @__PURE__ */ new WeakMap());
|
|
188
188
|
}
|
|
@@ -229,8 +229,8 @@ class Tn {
|
|
|
229
229
|
this.idNodeMap = /* @__PURE__ */ new Map(), this.nodeMetaMap = /* @__PURE__ */ new WeakMap();
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
return new
|
|
232
|
+
function ul() {
|
|
233
|
+
return new Nn();
|
|
234
234
|
}
|
|
235
235
|
function Ps({
|
|
236
236
|
element: s,
|
|
@@ -248,7 +248,7 @@ function Ie(s) {
|
|
|
248
248
|
return s.toLowerCase();
|
|
249
249
|
}
|
|
250
250
|
const wi = "__rrweb_original__";
|
|
251
|
-
function
|
|
251
|
+
function cl(s) {
|
|
252
252
|
const e = s.getContext("2d");
|
|
253
253
|
if (!e) return !0;
|
|
254
254
|
const t = 50;
|
|
@@ -275,7 +275,7 @@ function Ds(s) {
|
|
|
275
275
|
Ie(e)
|
|
276
276
|
) : null;
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function Tn(s, e) {
|
|
279
279
|
let t;
|
|
280
280
|
try {
|
|
281
281
|
t = new URL(s, e ?? window.location.href);
|
|
@@ -285,24 +285,24 @@ function Pn(s, e) {
|
|
|
285
285
|
const r = /\.([0-9a-z]+)(?:$)/i, i = t.pathname.match(r);
|
|
286
286
|
return (i == null ? void 0 : i[1]) ?? null;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function hl(s) {
|
|
289
289
|
let e = "";
|
|
290
290
|
return s.indexOf("//") > -1 ? e = s.split("/").slice(0, 3).join("/") : e = s.split("/")[0], e = e.split("?")[0], e;
|
|
291
291
|
}
|
|
292
|
-
const
|
|
292
|
+
const fl = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, dl = /^(?:[a-z+]+:)?\/\//i, pl = /^www\..*/i, ml = /^(data:)([^,]*),(.*)/i;
|
|
293
293
|
function Qt(s, e) {
|
|
294
294
|
return (s || "").replace(
|
|
295
|
-
|
|
295
|
+
fl,
|
|
296
296
|
(t, r, i, n, o, l) => {
|
|
297
297
|
const a = i || o || l, u = r || n || "";
|
|
298
298
|
if (!a)
|
|
299
299
|
return t;
|
|
300
|
-
if (
|
|
300
|
+
if (dl.test(a) || pl.test(a))
|
|
301
301
|
return `url(${u}${a}${u})`;
|
|
302
|
-
if (
|
|
302
|
+
if (ml.test(a))
|
|
303
303
|
return `url(${u}${a}${u})`;
|
|
304
304
|
if (a[0] === "/")
|
|
305
|
-
return `url(${u}${
|
|
305
|
+
return `url(${u}${hl(e) + a}${u})`;
|
|
306
306
|
const c = e.split("/"), h = a.split("/");
|
|
307
307
|
c.pop();
|
|
308
308
|
for (const p of h)
|
|
@@ -314,7 +314,7 @@ function Qt(s, e) {
|
|
|
314
314
|
function $r(s) {
|
|
315
315
|
return s.replace(/(\/\*[^*]*\*\/)|[\s;]/g, "");
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function gl(s, e) {
|
|
318
318
|
const t = Array.from(e.childNodes), r = [];
|
|
319
319
|
if (t.length > 1 && s && typeof s == "string") {
|
|
320
320
|
const i = $r(s);
|
|
@@ -337,23 +337,23 @@ function yl(s, e) {
|
|
|
337
337
|
}
|
|
338
338
|
return r.push(s), r;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
341
|
-
return
|
|
340
|
+
function yl(s, e) {
|
|
341
|
+
return gl(s, e).join("/* rr_split */");
|
|
342
342
|
}
|
|
343
|
-
let
|
|
344
|
-
const
|
|
345
|
-
function
|
|
346
|
-
return
|
|
343
|
+
let wl = 1;
|
|
344
|
+
const bl = new RegExp("[^a-z0-9-_:]"), qe = -2;
|
|
345
|
+
function Pn() {
|
|
346
|
+
return wl++;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function vl(s) {
|
|
349
349
|
if (s instanceof HTMLFormElement)
|
|
350
350
|
return "form";
|
|
351
351
|
const e = Ie(s.tagName);
|
|
352
|
-
return
|
|
352
|
+
return bl.test(e) ? "div" : e;
|
|
353
353
|
}
|
|
354
354
|
let Ee, bi;
|
|
355
|
-
const
|
|
356
|
-
function
|
|
355
|
+
const Sl = /^[^ \t\n\r\u000c]+/, Cl = /^[, \t\n\r\u000c]+/;
|
|
356
|
+
function _l(s, e) {
|
|
357
357
|
if (e.trim() === "")
|
|
358
358
|
return e;
|
|
359
359
|
let t = 0;
|
|
@@ -363,8 +363,8 @@ function xl(s, e) {
|
|
|
363
363
|
return l ? (o = l[0], t += o.length, o) : "";
|
|
364
364
|
}
|
|
365
365
|
const i = [];
|
|
366
|
-
for (; r(
|
|
367
|
-
let n = r(
|
|
366
|
+
for (; r(Cl), !(t >= e.length); ) {
|
|
367
|
+
let n = r(Sl);
|
|
368
368
|
if (n.slice(-1) === ",")
|
|
369
369
|
n = Oe(s, n.substring(0, n.length - 1)), i.push(n);
|
|
370
370
|
else {
|
|
@@ -392,7 +392,7 @@ const vi = /* @__PURE__ */ new WeakMap();
|
|
|
392
392
|
function Oe(s, e) {
|
|
393
393
|
return !e || e.trim() === "" ? e : Ls(s, e);
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function xl(s) {
|
|
396
396
|
return !!(s.tagName === "svg" || s.ownerSVGElement);
|
|
397
397
|
}
|
|
398
398
|
function Ls(s, e) {
|
|
@@ -403,13 +403,13 @@ function Ls(s, e) {
|
|
|
403
403
|
return e;
|
|
404
404
|
return t.setAttribute("href", e), t.href;
|
|
405
405
|
}
|
|
406
|
-
function
|
|
407
|
-
return r && (t === "src" || t === "href" && !(e === "use" && r[0] === "#") || t === "xlink:href" && r[0] !== "#" || t === "background" && (e === "table" || e === "td" || e === "th") ? Oe(s, r) : t === "srcset" ?
|
|
406
|
+
function Dn(s, e, t, r) {
|
|
407
|
+
return r && (t === "src" || t === "href" && !(e === "use" && r[0] === "#") || t === "xlink:href" && r[0] !== "#" || t === "background" && (e === "table" || e === "td" || e === "th") ? Oe(s, r) : t === "srcset" ? _l(s, r) : t === "style" ? Qt(r, Ls(s)) : e === "object" && t === "data" ? Oe(s, r) : r);
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function Ln(s, e, t) {
|
|
410
410
|
return (s === "video" || s === "audio") && e === "autoplay";
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function Il(s, e, t) {
|
|
413
413
|
try {
|
|
414
414
|
if (typeof e == "string") {
|
|
415
415
|
if (s.classList.contains(e))
|
|
@@ -437,9 +437,9 @@ function qt(s, e, t) {
|
|
|
437
437
|
}
|
|
438
438
|
return t ? qt(q.parentNode(s), e, t) : !1;
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function Fn(s, e, t, r) {
|
|
441
441
|
let i;
|
|
442
|
-
if (
|
|
442
|
+
if (On(s)) {
|
|
443
443
|
if (i = s, !q.childNodes(i).length)
|
|
444
444
|
return !1;
|
|
445
445
|
} else {
|
|
@@ -462,7 +462,7 @@ function Un(s, e, t, r) {
|
|
|
462
462
|
}
|
|
463
463
|
return !1;
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function Rl(s, e, t) {
|
|
466
466
|
const r = s.contentWindow;
|
|
467
467
|
if (!r)
|
|
468
468
|
return;
|
|
@@ -486,7 +486,7 @@ function kl(s, e, t) {
|
|
|
486
486
|
return setTimeout(e, 0), s.addEventListener("load", e);
|
|
487
487
|
s.addEventListener("load", e);
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function kl(s, e, t) {
|
|
490
490
|
let r = !1, i;
|
|
491
491
|
try {
|
|
492
492
|
i = s.sheet;
|
|
@@ -501,7 +501,7 @@ function El(s, e, t) {
|
|
|
501
501
|
clearTimeout(n), r = !0, e();
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function El(s, e) {
|
|
505
505
|
const {
|
|
506
506
|
doc: t,
|
|
507
507
|
mirror: r,
|
|
@@ -518,7 +518,7 @@ function Ml(s, e) {
|
|
|
518
518
|
keepIframeSrcFn: g,
|
|
519
519
|
newlyAddedElement: m = !1,
|
|
520
520
|
cssCaptured: f = !1
|
|
521
|
-
} = e, v =
|
|
521
|
+
} = e, v = Ml(t, r);
|
|
522
522
|
switch (s.nodeType) {
|
|
523
523
|
case s.DOCUMENT_NODE:
|
|
524
524
|
return s.compatMode !== "CSS1Compat" ? {
|
|
@@ -539,7 +539,7 @@ function Ml(s, e) {
|
|
|
539
539
|
rootId: v
|
|
540
540
|
};
|
|
541
541
|
case s.ELEMENT_NODE:
|
|
542
|
-
return
|
|
542
|
+
return Ol(s, {
|
|
543
543
|
doc: t,
|
|
544
544
|
blockClass: i,
|
|
545
545
|
blockSelector: n,
|
|
@@ -554,7 +554,7 @@ function Ml(s, e) {
|
|
|
554
554
|
rootId: v
|
|
555
555
|
});
|
|
556
556
|
case s.TEXT_NODE:
|
|
557
|
-
return
|
|
557
|
+
return Al(s, {
|
|
558
558
|
doc: t,
|
|
559
559
|
needsMask: o,
|
|
560
560
|
maskTextFn: u,
|
|
@@ -577,12 +577,12 @@ function Ml(s, e) {
|
|
|
577
577
|
return !1;
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function Ml(s, e) {
|
|
581
581
|
if (!e.hasNode(s)) return;
|
|
582
582
|
const t = e.getId(s);
|
|
583
583
|
return t === 1 ? void 0 : t;
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function Al(s, e) {
|
|
586
586
|
const { needsMask: t, maskTextFn: r, rootId: i, cssCaptured: n } = e, o = q.parentNode(s), l = o && o.tagName;
|
|
587
587
|
let a = "";
|
|
588
588
|
const u = l === "STYLE" ? !0 : void 0, c = l === "SCRIPT" ? !0 : void 0;
|
|
@@ -592,7 +592,7 @@ function Ol(s, e) {
|
|
|
592
592
|
rootId: i
|
|
593
593
|
};
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function Ol(s, e) {
|
|
596
596
|
const {
|
|
597
597
|
doc: t,
|
|
598
598
|
blockClass: r,
|
|
@@ -606,12 +606,12 @@ function $l(s, e) {
|
|
|
606
606
|
keepIframeSrcFn: h,
|
|
607
607
|
newlyAddedElement: p = !1,
|
|
608
608
|
rootId: d
|
|
609
|
-
} = e, g =
|
|
609
|
+
} = e, g = Il(s, r, i), m = vl(s);
|
|
610
610
|
let f = {};
|
|
611
611
|
const v = s.attributes.length;
|
|
612
612
|
for (let y = 0; y < v; y++) {
|
|
613
613
|
const C = s.attributes[y];
|
|
614
|
-
|
|
614
|
+
Ln(m, C.name, C.value) || (f[C.name] = Dn(
|
|
615
615
|
t,
|
|
616
616
|
m,
|
|
617
617
|
Ie(C.name),
|
|
@@ -627,7 +627,7 @@ function $l(s, e) {
|
|
|
627
627
|
let y = Yr(
|
|
628
628
|
s.sheet
|
|
629
629
|
);
|
|
630
|
-
y && (s.childNodes.length > 1 && (y =
|
|
630
|
+
y && (s.childNodes.length > 1 && (y = yl(y, s)), f._cssText = y);
|
|
631
631
|
}
|
|
632
632
|
if (m === "input" || m === "textarea" || m === "select") {
|
|
633
633
|
const y = s.value, C = s.checked;
|
|
@@ -642,7 +642,7 @@ function $l(s, e) {
|
|
|
642
642
|
}
|
|
643
643
|
if (m === "option" && (s.selected && !o.select ? f.selected = !0 : delete f.selected), m === "dialog" && s.open && (f.rr_open_mode = s.matches("dialog:modal") ? "modal" : "non-modal"), m === "canvas" && c) {
|
|
644
644
|
if (s.__context === "2d")
|
|
645
|
-
|
|
645
|
+
cl(s) || (f.rr_dataURL = s.toDataURL(
|
|
646
646
|
a.type,
|
|
647
647
|
a.quality
|
|
648
648
|
));
|
|
@@ -704,7 +704,7 @@ function $l(s, e) {
|
|
|
704
704
|
tagName: m,
|
|
705
705
|
attributes: f,
|
|
706
706
|
childNodes: [],
|
|
707
|
-
isSVG:
|
|
707
|
+
isSVG: xl(s) || void 0,
|
|
708
708
|
needBlock: g,
|
|
709
709
|
rootId: d,
|
|
710
710
|
isCustom: b
|
|
@@ -713,14 +713,14 @@ function $l(s, e) {
|
|
|
713
713
|
function L(s) {
|
|
714
714
|
return s == null ? "" : s.toLowerCase();
|
|
715
715
|
}
|
|
716
|
-
function
|
|
716
|
+
function $l(s, e) {
|
|
717
717
|
if (e.comment && s.type === K.Comment)
|
|
718
718
|
return !0;
|
|
719
719
|
if (s.type === K.Element) {
|
|
720
720
|
if (e.script && // script tag
|
|
721
721
|
(s.tagName === "script" || // (module)preload link
|
|
722
722
|
s.tagName === "link" && (s.attributes.rel === "preload" || s.attributes.rel === "modulepreload") && s.attributes.as === "script" || // prefetch link
|
|
723
|
-
s.tagName === "link" && s.attributes.rel === "prefetch" && typeof s.attributes.href == "string" &&
|
|
723
|
+
s.tagName === "link" && s.attributes.rel === "prefetch" && typeof s.attributes.href == "string" && Tn(s.attributes.href) === "js"))
|
|
724
724
|
return !0;
|
|
725
725
|
if (e.headFavicon && (s.tagName === "link" && s.attributes.rel === "shortcut icon" || s.tagName === "meta" && (L(s.attributes.name).match(
|
|
726
726
|
/^msapplication-tile(image|color)$/
|
|
@@ -771,13 +771,13 @@ function $e(s, e) {
|
|
|
771
771
|
cssCaptured: O = !1
|
|
772
772
|
} = e;
|
|
773
773
|
let { needsMask: D } = e, { preserveWhiteSpace: Y = !0 } = e;
|
|
774
|
-
D || (D =
|
|
774
|
+
D || (D = Fn(
|
|
775
775
|
s,
|
|
776
776
|
o,
|
|
777
777
|
l,
|
|
778
778
|
D === void 0
|
|
779
779
|
));
|
|
780
|
-
const W =
|
|
780
|
+
const W = El(s, {
|
|
781
781
|
doc: t,
|
|
782
782
|
mirror: r,
|
|
783
783
|
blockClass: i,
|
|
@@ -797,7 +797,7 @@ function $e(s, e) {
|
|
|
797
797
|
if (!W)
|
|
798
798
|
return console.warn(s, "not serialized"), null;
|
|
799
799
|
let Q;
|
|
800
|
-
r.hasNode(s) ? Q = r.getId(s) :
|
|
800
|
+
r.hasNode(s) ? Q = r.getId(s) : $l(W, d) || !Y && W.type === K.Text && !W.textContent.replace(/^\s+|\s+$/gm, "").length ? Q = qe : Q = Pn();
|
|
801
801
|
const E = Object.assign(W, { id: Q });
|
|
802
802
|
if (r.add(s, E), Q === qe)
|
|
803
803
|
return null;
|
|
@@ -844,14 +844,14 @@ function $e(s, e) {
|
|
|
844
844
|
}
|
|
845
845
|
}
|
|
846
846
|
let se = null;
|
|
847
|
-
if (
|
|
847
|
+
if (On(s) && (se = q.shadowRoot(s)))
|
|
848
848
|
for (const ve of Array.from(q.childNodes(se))) {
|
|
849
849
|
const ue = $e(ve, J);
|
|
850
850
|
ue && (Ke(se) && (ue.isShadow = !0), E.childNodes.push(ue));
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
853
|
const Ge = q.parentNode(s);
|
|
854
|
-
return Ge && Xe(Ge) && Ke(Ge) && (E.isShadow = !0), E.type === K.Element && E.tagName === "iframe" &&
|
|
854
|
+
return Ge && Xe(Ge) && Ke(Ge) && (E.isShadow = !0), E.type === K.Element && E.tagName === "iframe" && Rl(
|
|
855
855
|
s,
|
|
856
856
|
() => {
|
|
857
857
|
const J = s.contentDocument;
|
|
@@ -888,7 +888,7 @@ function $e(s, e) {
|
|
|
888
888
|
}
|
|
889
889
|
},
|
|
890
890
|
y
|
|
891
|
-
), E.type === K.Element && E.tagName === "link" && typeof E.attributes.rel == "string" && (E.attributes.rel === "stylesheet" || E.attributes.rel === "preload" && typeof E.attributes.href == "string" &&
|
|
891
|
+
), E.type === K.Element && E.tagName === "link" && typeof E.attributes.rel == "string" && (E.attributes.rel === "stylesheet" || E.attributes.rel === "preload" && typeof E.attributes.href == "string" && Tn(E.attributes.href) === "css") && kl(
|
|
892
892
|
s,
|
|
893
893
|
() => {
|
|
894
894
|
if (C) {
|
|
@@ -926,9 +926,9 @@ function $e(s, e) {
|
|
|
926
926
|
k
|
|
927
927
|
), E;
|
|
928
928
|
}
|
|
929
|
-
function
|
|
929
|
+
function Nl(s, e) {
|
|
930
930
|
const {
|
|
931
|
-
mirror: t = new
|
|
931
|
+
mirror: t = new Nn(),
|
|
932
932
|
blockClass: r = "rr-block",
|
|
933
933
|
blockSelector: i = null,
|
|
934
934
|
maskTextClass: n = "rr-mask",
|
|
@@ -1009,10 +1009,10 @@ function Tl(s, e) {
|
|
|
1009
1009
|
newlyAddedElement: !1
|
|
1010
1010
|
});
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1012
|
+
function Tl(s) {
|
|
1013
1013
|
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1015
|
+
function Pl(s) {
|
|
1016
1016
|
if (s.__esModule) return s;
|
|
1017
1017
|
var e = s.default;
|
|
1018
1018
|
if (typeof e == "function") {
|
|
@@ -1031,19 +1031,19 @@ function Dl(s) {
|
|
|
1031
1031
|
});
|
|
1032
1032
|
}), t;
|
|
1033
1033
|
}
|
|
1034
|
-
var Fs = { exports: {} }, F = String,
|
|
1034
|
+
var Fs = { exports: {} }, F = String, Un = function() {
|
|
1035
1035
|
return { isColorSupported: !1, reset: F, bold: F, dim: F, italic: F, underline: F, inverse: F, hidden: F, strikethrough: F, black: F, red: F, green: F, yellow: F, blue: F, magenta: F, cyan: F, white: F, gray: F, bgBlack: F, bgRed: F, bgGreen: F, bgYellow: F, bgBlue: F, bgMagenta: F, bgCyan: F, bgWhite: F };
|
|
1036
1036
|
};
|
|
1037
|
-
Fs.exports =
|
|
1038
|
-
Fs.exports.createColors =
|
|
1039
|
-
var
|
|
1040
|
-
const
|
|
1037
|
+
Fs.exports = Un();
|
|
1038
|
+
Fs.exports.createColors = Un;
|
|
1039
|
+
var Dl = Fs.exports;
|
|
1040
|
+
const Ll = {}, Fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1041
1041
|
__proto__: null,
|
|
1042
|
-
default:
|
|
1043
|
-
}, Symbol.toStringTag, { value: "Module" })), ae = /* @__PURE__ */
|
|
1044
|
-
let Si =
|
|
1042
|
+
default: Ll
|
|
1043
|
+
}, Symbol.toStringTag, { value: "Module" })), ae = /* @__PURE__ */ Pl(Fl);
|
|
1044
|
+
let Si = Dl, Ci = ae, Zr = class Bn extends Error {
|
|
1045
1045
|
constructor(e, t, r, i, n, o) {
|
|
1046
|
-
super(e), this.name = "CssSyntaxError", this.reason = e, n && (this.file = n), i && (this.source = i), o && (this.plugin = o), typeof t < "u" && typeof r < "u" && (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,
|
|
1046
|
+
super(e), this.name = "CssSyntaxError", this.reason = e, n && (this.file = n), i && (this.source = i), o && (this.plugin = o), typeof t < "u" && typeof r < "u" && (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, Bn);
|
|
1047
1047
|
}
|
|
1048
1048
|
setMessage() {
|
|
1049
1049
|
this.message = this.plugin ? this.plugin + ": " : "", this.message += this.file ? this.file : "<css input>", typeof this.line < "u" && (this.message += ":" + this.line + ":" + this.column), this.message += ": " + this.reason;
|
|
@@ -1101,7 +1101,7 @@ const _i = {
|
|
|
1101
1101
|
indent: " ",
|
|
1102
1102
|
semicolon: !1
|
|
1103
1103
|
};
|
|
1104
|
-
function
|
|
1104
|
+
function Ul(s) {
|
|
1105
1105
|
return s[0].toUpperCase() + s.slice(1);
|
|
1106
1106
|
}
|
|
1107
1107
|
let Jr = class {
|
|
@@ -1172,7 +1172,7 @@ let Jr = class {
|
|
|
1172
1172
|
if (r === "before" || r === "after")
|
|
1173
1173
|
return this.beforeAfter(e, r);
|
|
1174
1174
|
{
|
|
1175
|
-
let l = "raw" +
|
|
1175
|
+
let l = "raw" + Ul(r);
|
|
1176
1176
|
this[l] ? i = this[l](o, e) : o.walk((a) => {
|
|
1177
1177
|
if (i = a.raws[t], typeof i < "u") return !1;
|
|
1178
1178
|
});
|
|
@@ -1269,15 +1269,15 @@ let Jr = class {
|
|
|
1269
1269
|
this[e.type](e, t);
|
|
1270
1270
|
}
|
|
1271
1271
|
};
|
|
1272
|
-
var
|
|
1272
|
+
var zn = Jr;
|
|
1273
1273
|
Jr.default = Jr;
|
|
1274
|
-
let
|
|
1274
|
+
let Bl = zn;
|
|
1275
1275
|
function Xr(s, e) {
|
|
1276
|
-
new
|
|
1276
|
+
new Bl(e).stringify(s);
|
|
1277
1277
|
}
|
|
1278
1278
|
var pr = Xr;
|
|
1279
1279
|
Xr.default = Xr;
|
|
1280
|
-
let { isClean: bt, my:
|
|
1280
|
+
let { isClean: bt, my: zl } = ct, Wl = Us, Hl = zn, jl = pr;
|
|
1281
1281
|
function Kr(s, e) {
|
|
1282
1282
|
let t = new s.constructor();
|
|
1283
1283
|
for (let r in s) {
|
|
@@ -1289,7 +1289,7 @@ function Kr(s, e) {
|
|
|
1289
1289
|
}
|
|
1290
1290
|
let Qr = class {
|
|
1291
1291
|
constructor(e = {}) {
|
|
1292
|
-
this.raws = {}, this[bt] = !1, this[
|
|
1292
|
+
this.raws = {}, this[bt] = !1, this[zl] = !0;
|
|
1293
1293
|
for (let t in e)
|
|
1294
1294
|
if (t === "nodes") {
|
|
1295
1295
|
this.nodes = [];
|
|
@@ -1346,7 +1346,7 @@ let Qr = class {
|
|
|
1346
1346
|
t
|
|
1347
1347
|
);
|
|
1348
1348
|
}
|
|
1349
|
-
return new
|
|
1349
|
+
return new Wl(e);
|
|
1350
1350
|
}
|
|
1351
1351
|
getProxyProcessor() {
|
|
1352
1352
|
return {
|
|
@@ -1420,7 +1420,7 @@ let Qr = class {
|
|
|
1420
1420
|
return (r.line < t.line || r.line === t.line && r.column <= t.column) && (r = { column: t.column + 1, line: t.line }), { end: r, start: t };
|
|
1421
1421
|
}
|
|
1422
1422
|
raw(e, t) {
|
|
1423
|
-
return new
|
|
1423
|
+
return new Hl().raw(this, e, t);
|
|
1424
1424
|
}
|
|
1425
1425
|
remove() {
|
|
1426
1426
|
return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
|
|
@@ -1466,7 +1466,7 @@ let Qr = class {
|
|
|
1466
1466
|
toProxy() {
|
|
1467
1467
|
return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache;
|
|
1468
1468
|
}
|
|
1469
|
-
toString(e =
|
|
1469
|
+
toString(e = jl) {
|
|
1470
1470
|
e.stringify && (e = e.stringify);
|
|
1471
1471
|
let t = "";
|
|
1472
1472
|
return e(this, (r) => {
|
|
@@ -1484,7 +1484,7 @@ let Qr = class {
|
|
|
1484
1484
|
};
|
|
1485
1485
|
var mr = Qr;
|
|
1486
1486
|
Qr.default = Qr;
|
|
1487
|
-
let
|
|
1487
|
+
let Gl = mr, qr = class extends Gl {
|
|
1488
1488
|
constructor(e) {
|
|
1489
1489
|
e && typeof e.value < "u" && typeof e.value != "string" && (e = { ...e, value: String(e.value) }), super(e), this.type = "decl";
|
|
1490
1490
|
}
|
|
@@ -1494,15 +1494,15 @@ let Vl = mr, qr = class extends Vl {
|
|
|
1494
1494
|
};
|
|
1495
1495
|
var gr = qr;
|
|
1496
1496
|
qr.default = qr;
|
|
1497
|
-
let
|
|
1497
|
+
let Vl = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Yl = (s = 21) => {
|
|
1498
1498
|
let e = "", t = s;
|
|
1499
1499
|
for (; t--; )
|
|
1500
|
-
e +=
|
|
1500
|
+
e += Vl[Math.random() * 64 | 0];
|
|
1501
1501
|
return e;
|
|
1502
1502
|
};
|
|
1503
|
-
var
|
|
1504
|
-
let { SourceMapConsumer: xi, SourceMapGenerator: Ii } = ae, { existsSync:
|
|
1505
|
-
function
|
|
1503
|
+
var Zl = { nanoid: Yl };
|
|
1504
|
+
let { SourceMapConsumer: xi, SourceMapGenerator: Ii } = ae, { existsSync: Jl, readFileSync: Xl } = ae, { dirname: Nr, join: Kl } = ae;
|
|
1505
|
+
function Ql(s) {
|
|
1506
1506
|
return Buffer ? Buffer.from(s, "base64").toString() : window.atob(s);
|
|
1507
1507
|
}
|
|
1508
1508
|
let es = class {
|
|
@@ -1520,7 +1520,7 @@ let es = class {
|
|
|
1520
1520
|
if (i.test(e) || n.test(e))
|
|
1521
1521
|
return decodeURIComponent(e.substr(RegExp.lastMatch.length));
|
|
1522
1522
|
if (t.test(e) || r.test(e))
|
|
1523
|
-
return
|
|
1523
|
+
return Ql(e.substr(RegExp.lastMatch.length));
|
|
1524
1524
|
let o = e.match(/data:application\/json;([^,]+),/)[1];
|
|
1525
1525
|
throw new Error("Unsupported source map encoding " + o);
|
|
1526
1526
|
}
|
|
@@ -1537,8 +1537,8 @@ let es = class {
|
|
|
1537
1537
|
r > -1 && i > -1 && (this.annotation = this.getAnnotationURL(e.substring(r, i)));
|
|
1538
1538
|
}
|
|
1539
1539
|
loadFile(e) {
|
|
1540
|
-
if (this.root = Nr(e),
|
|
1541
|
-
return this.mapFile = e,
|
|
1540
|
+
if (this.root = Nr(e), Jl(e))
|
|
1541
|
+
return this.mapFile = e, Xl(e, "utf-8").toString().trim();
|
|
1542
1542
|
}
|
|
1543
1543
|
loadMap(e, t) {
|
|
1544
1544
|
if (t === !1) return !1;
|
|
@@ -1571,7 +1571,7 @@ let es = class {
|
|
|
1571
1571
|
return this.decodeInline(this.annotation);
|
|
1572
1572
|
if (this.annotation) {
|
|
1573
1573
|
let r = this.annotation;
|
|
1574
|
-
return e && (r =
|
|
1574
|
+
return e && (r = Kl(Nr(e), r)), this.loadFile(r);
|
|
1575
1575
|
}
|
|
1576
1576
|
}
|
|
1577
1577
|
}
|
|
@@ -1582,21 +1582,21 @@ let es = class {
|
|
|
1582
1582
|
return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
|
|
1583
1583
|
}
|
|
1584
1584
|
};
|
|
1585
|
-
var
|
|
1585
|
+
var Wn = es;
|
|
1586
1586
|
es.default = es;
|
|
1587
|
-
let { SourceMapConsumer:
|
|
1587
|
+
let { SourceMapConsumer: ql, SourceMapGenerator: eu } = ae, { fileURLToPath: Ri, pathToFileURL: vt } = ae, { isAbsolute: ts, resolve: rs } = ae, { nanoid: tu } = Zl, Tr = ae, ki = Us, ru = Wn, Pr = Symbol("fromOffsetCache"), su = !!(ql && eu), Ei = !!(rs && ts), er = class {
|
|
1588
1588
|
constructor(e, t = {}) {
|
|
1589
1589
|
if (e === null || typeof e > "u" || typeof e == "object" && !e.toString)
|
|
1590
1590
|
throw new Error(`PostCSS received ${e} instead of CSS string`);
|
|
1591
|
-
if (this.css = e.toString(), this.css[0] === "\uFEFF" || this.css[0] === "" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, t.from && (!Ei || /^\w+:\/\//.test(t.from) || ts(t.from) ? this.file = t.from : this.file = rs(t.from)), Ei &&
|
|
1592
|
-
let r = new
|
|
1591
|
+
if (this.css = e.toString(), this.css[0] === "\uFEFF" || this.css[0] === "" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, t.from && (!Ei || /^\w+:\/\//.test(t.from) || ts(t.from) ? this.file = t.from : this.file = rs(t.from)), Ei && su) {
|
|
1592
|
+
let r = new ru(this.css, t);
|
|
1593
1593
|
if (r.text) {
|
|
1594
1594
|
this.map = r;
|
|
1595
1595
|
let i = r.consumer().file;
|
|
1596
1596
|
!this.file && i && (this.file = this.mapResolve(i));
|
|
1597
1597
|
}
|
|
1598
1598
|
}
|
|
1599
|
-
this.file || (this.id = "<input css " +
|
|
1599
|
+
this.file || (this.id = "<input css " + tu(6) + ">"), this.map && (this.map.file = this.from);
|
|
1600
1600
|
}
|
|
1601
1601
|
error(e, t, r, i = {}) {
|
|
1602
1602
|
let n, o, l;
|
|
@@ -1709,7 +1709,7 @@ let { SourceMapConsumer: eu, SourceMapGenerator: tu } = ae, { fileURLToPath: Ri,
|
|
|
1709
1709
|
var yr = er;
|
|
1710
1710
|
er.default = er;
|
|
1711
1711
|
Tr && Tr.registerInput && Tr.registerInput(er);
|
|
1712
|
-
let { SourceMapConsumer:
|
|
1712
|
+
let { SourceMapConsumer: Hn, SourceMapGenerator: Wt } = ae, { dirname: Ht, relative: jn, resolve: Gn, sep: Vn } = ae, { pathToFileURL: Mi } = ae, iu = yr, nu = !!(Hn && Wt), ou = !!(Ht && Gn && jn && Vn), au = class {
|
|
1713
1713
|
constructor(e, t, r, i) {
|
|
1714
1714
|
this.stringify = e, this.mapOpts = r.map || {}, this.root = t, this.opts = r, this.css = i, this.originalCSS = i, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
|
|
1715
1715
|
}
|
|
@@ -1725,7 +1725,7 @@ let { SourceMapConsumer: jn, SourceMapGenerator: Wt } = ae, { dirname: Ht, relat
|
|
|
1725
1725
|
applyPrevMaps() {
|
|
1726
1726
|
for (let e of this.previous()) {
|
|
1727
1727
|
let t = this.toUrl(this.path(e.file)), r = e.root || Ht(e.file), i;
|
|
1728
|
-
this.mapOpts.sourcesContent === !1 ? (i = new
|
|
1728
|
+
this.mapOpts.sourcesContent === !1 ? (i = new Hn(e.text), i.sourcesContent && (i.sourcesContent = null)) : i = e.consumer(), this.map.applySourceMap(i, t, this.toUrl(this.path(r)));
|
|
1729
1729
|
}
|
|
1730
1730
|
}
|
|
1731
1731
|
clearAnnotation() {
|
|
@@ -1737,7 +1737,7 @@ let { SourceMapConsumer: jn, SourceMapGenerator: Wt } = ae, { dirname: Ht, relat
|
|
|
1737
1737
|
} else this.css && (this.css = this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm, ""));
|
|
1738
1738
|
}
|
|
1739
1739
|
generate() {
|
|
1740
|
-
if (this.clearAnnotation(),
|
|
1740
|
+
if (this.clearAnnotation(), ou && nu && this.isMap())
|
|
1741
1741
|
return this.generateMap();
|
|
1742
1742
|
{
|
|
1743
1743
|
let e = "";
|
|
@@ -1806,8 +1806,8 @@ let { SourceMapConsumer: jn, SourceMapGenerator: Wt } = ae, { dirname: Ht, relat
|
|
|
1806
1806
|
let t = this.memoizedPaths.get(e);
|
|
1807
1807
|
if (t) return t;
|
|
1808
1808
|
let r = this.opts.to ? Ht(this.opts.to) : ".";
|
|
1809
|
-
typeof this.mapOpts.annotation == "string" && (r = Ht(
|
|
1810
|
-
let i =
|
|
1809
|
+
typeof this.mapOpts.annotation == "string" && (r = Ht(Gn(r, this.mapOpts.annotation)));
|
|
1810
|
+
let i = jn(r, e);
|
|
1811
1811
|
return this.memoizedPaths.set(e, i), i;
|
|
1812
1812
|
}
|
|
1813
1813
|
previous() {
|
|
@@ -1820,7 +1820,7 @@ let { SourceMapConsumer: jn, SourceMapGenerator: Wt } = ae, { dirname: Ht, relat
|
|
|
1820
1820
|
}
|
|
1821
1821
|
});
|
|
1822
1822
|
else {
|
|
1823
|
-
let e = new
|
|
1823
|
+
let e = new iu(this.originalCSS, this.opts);
|
|
1824
1824
|
e.map && this.previousMaps.push(e.map);
|
|
1825
1825
|
}
|
|
1826
1826
|
return this.previousMaps;
|
|
@@ -1863,29 +1863,29 @@ let { SourceMapConsumer: jn, SourceMapGenerator: Wt } = ae, { dirname: Ht, relat
|
|
|
1863
1863
|
toUrl(e) {
|
|
1864
1864
|
let t = this.memoizedURLs.get(e);
|
|
1865
1865
|
if (t) return t;
|
|
1866
|
-
|
|
1866
|
+
Vn === "\\" && (e = e.replace(/\\/g, "/"));
|
|
1867
1867
|
let r = encodeURI(e).replace(/[#?]/g, encodeURIComponent);
|
|
1868
1868
|
return this.memoizedURLs.set(e, r), r;
|
|
1869
1869
|
}
|
|
1870
1870
|
};
|
|
1871
|
-
var
|
|
1872
|
-
let
|
|
1871
|
+
var Yn = au;
|
|
1872
|
+
let lu = mr, ss = class extends lu {
|
|
1873
1873
|
constructor(e) {
|
|
1874
1874
|
super(e), this.type = "comment";
|
|
1875
1875
|
}
|
|
1876
1876
|
};
|
|
1877
1877
|
var wr = ss;
|
|
1878
1878
|
ss.default = ss;
|
|
1879
|
-
let { isClean:
|
|
1880
|
-
function
|
|
1881
|
-
return s.map((e) => (e.nodes && (e.nodes =
|
|
1879
|
+
let { isClean: Zn, my: Jn } = ct, Xn = gr, Kn = wr, uu = mr, Qn, Bs, zs, qn;
|
|
1880
|
+
function eo(s) {
|
|
1881
|
+
return s.map((e) => (e.nodes && (e.nodes = eo(e.nodes)), delete e.source, e));
|
|
1882
1882
|
}
|
|
1883
|
-
function
|
|
1884
|
-
if (s[
|
|
1883
|
+
function to(s) {
|
|
1884
|
+
if (s[Zn] = !1, s.proxyOf.nodes)
|
|
1885
1885
|
for (let e of s.proxyOf.nodes)
|
|
1886
|
-
|
|
1886
|
+
to(e);
|
|
1887
1887
|
}
|
|
1888
|
-
let me = class
|
|
1888
|
+
let me = class ro extends uu {
|
|
1889
1889
|
append(...e) {
|
|
1890
1890
|
for (let t of e) {
|
|
1891
1891
|
let r = this.normalize(t, this.last);
|
|
@@ -1949,7 +1949,7 @@ let me = class so extends cu {
|
|
|
1949
1949
|
}
|
|
1950
1950
|
normalize(e, t) {
|
|
1951
1951
|
if (typeof e == "string")
|
|
1952
|
-
e =
|
|
1952
|
+
e = eo(Qn(e).nodes);
|
|
1953
1953
|
else if (typeof e > "u")
|
|
1954
1954
|
e = [];
|
|
1955
1955
|
else if (Array.isArray(e)) {
|
|
@@ -1965,16 +1965,16 @@ let me = class so extends cu {
|
|
|
1965
1965
|
else if (e.prop) {
|
|
1966
1966
|
if (typeof e.value > "u")
|
|
1967
1967
|
throw new Error("Value field is missed in node creation");
|
|
1968
|
-
typeof e.value != "string" && (e.value = String(e.value)), e = [new
|
|
1968
|
+
typeof e.value != "string" && (e.value = String(e.value)), e = [new Xn(e)];
|
|
1969
1969
|
} else if (e.selector)
|
|
1970
1970
|
e = [new Bs(e)];
|
|
1971
1971
|
else if (e.name)
|
|
1972
1972
|
e = [new zs(e)];
|
|
1973
1973
|
else if (e.text)
|
|
1974
|
-
e = [new
|
|
1974
|
+
e = [new Kn(e)];
|
|
1975
1975
|
else
|
|
1976
1976
|
throw new Error("Unknown node type in node creation");
|
|
1977
|
-
return e.map((i) => (i[
|
|
1977
|
+
return e.map((i) => (i[Jn] || ro.rebuild(i), i = i.proxyOf, i.parent && i.parent.removeChild(i), i[Zn] && to(i), typeof i.raws.before > "u" && t && typeof t.raws.before < "u" && (i.raws.before = t.raws.before.replace(/\S/g, "")), i.parent = this.proxyOf, i));
|
|
1978
1978
|
}
|
|
1979
1979
|
prepend(...e) {
|
|
1980
1980
|
e = e.reverse();
|
|
@@ -2071,7 +2071,7 @@ let me = class so extends cu {
|
|
|
2071
2071
|
}
|
|
2072
2072
|
};
|
|
2073
2073
|
me.registerParse = (s) => {
|
|
2074
|
-
|
|
2074
|
+
Qn = s;
|
|
2075
2075
|
};
|
|
2076
2076
|
me.registerRule = (s) => {
|
|
2077
2077
|
Bs = s;
|
|
@@ -2080,33 +2080,33 @@ me.registerAtRule = (s) => {
|
|
|
2080
2080
|
zs = s;
|
|
2081
2081
|
};
|
|
2082
2082
|
me.registerRoot = (s) => {
|
|
2083
|
-
|
|
2083
|
+
qn = s;
|
|
2084
2084
|
};
|
|
2085
2085
|
var Re = me;
|
|
2086
2086
|
me.default = me;
|
|
2087
2087
|
me.rebuild = (s) => {
|
|
2088
|
-
s.type === "atrule" ? Object.setPrototypeOf(s, zs.prototype) : s.type === "rule" ? Object.setPrototypeOf(s, Bs.prototype) : s.type === "decl" ? Object.setPrototypeOf(s,
|
|
2088
|
+
s.type === "atrule" ? Object.setPrototypeOf(s, zs.prototype) : s.type === "rule" ? Object.setPrototypeOf(s, Bs.prototype) : s.type === "decl" ? Object.setPrototypeOf(s, Xn.prototype) : s.type === "comment" ? Object.setPrototypeOf(s, Kn.prototype) : s.type === "root" && Object.setPrototypeOf(s, qn.prototype), s[Jn] = !0, s.nodes && s.nodes.forEach((e) => {
|
|
2089
2089
|
me.rebuild(e);
|
|
2090
2090
|
});
|
|
2091
2091
|
};
|
|
2092
|
-
let
|
|
2092
|
+
let cu = Re, so, io, et = class extends cu {
|
|
2093
2093
|
constructor(e) {
|
|
2094
2094
|
super({ type: "document", ...e }), this.nodes || (this.nodes = []);
|
|
2095
2095
|
}
|
|
2096
2096
|
toResult(e = {}) {
|
|
2097
|
-
return new
|
|
2097
|
+
return new so(new io(), this, e).stringify();
|
|
2098
2098
|
}
|
|
2099
2099
|
};
|
|
2100
2100
|
et.registerLazyResult = (s) => {
|
|
2101
|
-
|
|
2101
|
+
so = s;
|
|
2102
2102
|
};
|
|
2103
2103
|
et.registerProcessor = (s) => {
|
|
2104
|
-
|
|
2104
|
+
io = s;
|
|
2105
2105
|
};
|
|
2106
2106
|
var Ws = et;
|
|
2107
2107
|
et.default = et;
|
|
2108
2108
|
let Ai = {};
|
|
2109
|
-
var
|
|
2109
|
+
var no = function(e) {
|
|
2110
2110
|
Ai[e] || (Ai[e] = !0, typeof console < "u" && console.warn && console.warn(e));
|
|
2111
2111
|
};
|
|
2112
2112
|
let is = class {
|
|
@@ -2125,9 +2125,9 @@ let is = class {
|
|
|
2125
2125
|
}).message : this.plugin ? this.plugin + ": " + this.text : this.text;
|
|
2126
2126
|
}
|
|
2127
2127
|
};
|
|
2128
|
-
var
|
|
2128
|
+
var oo = is;
|
|
2129
2129
|
is.default = is;
|
|
2130
|
-
let
|
|
2130
|
+
let hu = oo, ns = class {
|
|
2131
2131
|
constructor(e, t, r) {
|
|
2132
2132
|
this.processor = e, this.messages = [], this.root = t, this.opts = r, this.css = void 0, this.map = void 0;
|
|
2133
2133
|
}
|
|
@@ -2136,7 +2136,7 @@ let fu = ao, ns = class {
|
|
|
2136
2136
|
}
|
|
2137
2137
|
warn(e, t = {}) {
|
|
2138
2138
|
t.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (t.plugin = this.lastPlugin.postcssPlugin);
|
|
2139
|
-
let r = new
|
|
2139
|
+
let r = new hu(e, t);
|
|
2140
2140
|
return this.messages.push(r), r;
|
|
2141
2141
|
}
|
|
2142
2142
|
warnings() {
|
|
@@ -2148,8 +2148,8 @@ let fu = ao, ns = class {
|
|
|
2148
2148
|
};
|
|
2149
2149
|
var Hs = ns;
|
|
2150
2150
|
ns.default = ns;
|
|
2151
|
-
const Dr = 39, Oi = 34, St = 92, $i = 47, Ct = 10, Ve = 32, _t = 12, xt = 9, It = 13,
|
|
2152
|
-
var
|
|
2151
|
+
const Dr = 39, Oi = 34, St = 92, $i = 47, Ct = 10, Ve = 32, _t = 12, xt = 9, It = 13, fu = 91, du = 93, pu = 40, mu = 41, gu = 123, yu = 125, wu = 59, bu = 42, vu = 58, Su = 64, Rt = /[\t\n\f\r "#'()/;[\\\]{}]/g, kt = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Cu = /.[\r\n"'(/\\]/, Ni = /[\da-f]/i;
|
|
2152
|
+
var _u = function(e, t = {}) {
|
|
2153
2153
|
let r = e.css.valueOf(), i = t.ignoreErrors, n, o, l, a, u, c, h, p, d, g, m = r.length, f = 0, v = [], b = [];
|
|
2154
2154
|
function y() {
|
|
2155
2155
|
return f;
|
|
@@ -2177,18 +2177,18 @@ var xu = function(e, t = {}) {
|
|
|
2177
2177
|
g = ["space", r.slice(f, o)], f = o - 1;
|
|
2178
2178
|
break;
|
|
2179
2179
|
}
|
|
2180
|
+
case fu:
|
|
2180
2181
|
case du:
|
|
2181
|
-
case
|
|
2182
|
+
case gu:
|
|
2182
2183
|
case yu:
|
|
2184
|
+
case vu:
|
|
2183
2185
|
case wu:
|
|
2184
|
-
case
|
|
2185
|
-
case bu:
|
|
2186
|
-
case gu: {
|
|
2186
|
+
case mu: {
|
|
2187
2187
|
let Y = String.fromCharCode(n);
|
|
2188
2188
|
g = [Y, Y, f];
|
|
2189
2189
|
break;
|
|
2190
2190
|
}
|
|
2191
|
-
case
|
|
2191
|
+
case pu: {
|
|
2192
2192
|
if (p = v.length ? v.pop()[1] : "", d = r.charCodeAt(f + 1), p === "url" && d !== Dr && d !== Oi && d !== Ve && d !== Ct && d !== xt && d !== _t && d !== It) {
|
|
2193
2193
|
o = f;
|
|
2194
2194
|
do {
|
|
@@ -2203,7 +2203,7 @@ var xu = function(e, t = {}) {
|
|
|
2203
2203
|
} while (c);
|
|
2204
2204
|
g = ["brackets", r.slice(f, o + 1), f, o], f = o;
|
|
2205
2205
|
} else
|
|
2206
|
-
o = r.indexOf(")", f + 1), a = r.slice(f, o + 1), o === -1 ||
|
|
2206
|
+
o = r.indexOf(")", f + 1), a = r.slice(f, o + 1), o === -1 || Cu.test(a) ? g = ["(", "(", f] : (g = ["brackets", a, f, o], f = o);
|
|
2207
2207
|
break;
|
|
2208
2208
|
}
|
|
2209
2209
|
case Dr:
|
|
@@ -2222,7 +2222,7 @@ var xu = function(e, t = {}) {
|
|
|
2222
2222
|
g = ["string", r.slice(f, o + 1), f, o], f = o;
|
|
2223
2223
|
break;
|
|
2224
2224
|
}
|
|
2225
|
-
case
|
|
2225
|
+
case Su: {
|
|
2226
2226
|
Rt.lastIndex = f + 1, Rt.test(r), Rt.lastIndex === 0 ? o = r.length - 1 : o = Rt.lastIndex - 2, g = ["at-word", r.slice(f, o + 1), f, o], f = o;
|
|
2227
2227
|
break;
|
|
2228
2228
|
}
|
|
@@ -2238,7 +2238,7 @@ var xu = function(e, t = {}) {
|
|
|
2238
2238
|
break;
|
|
2239
2239
|
}
|
|
2240
2240
|
default: {
|
|
2241
|
-
n === $i && r.charCodeAt(f + 1) ===
|
|
2241
|
+
n === $i && r.charCodeAt(f + 1) === bu ? (o = r.indexOf("*/", f + 2) + 1, o === 0 && (i || D ? o = r.length : C("comment")), g = ["comment", r.slice(f, o + 1), f, o], f = o) : (kt.lastIndex = f + 1, kt.test(r), kt.lastIndex === 0 ? o = r.length - 1 : o = kt.lastIndex - 2, g = ["word", r.slice(f, o + 1), f, o], v.push(g), f = o);
|
|
2242
2242
|
break;
|
|
2243
2243
|
}
|
|
2244
2244
|
}
|
|
@@ -2254,7 +2254,7 @@ var xu = function(e, t = {}) {
|
|
|
2254
2254
|
position: y
|
|
2255
2255
|
};
|
|
2256
2256
|
};
|
|
2257
|
-
let
|
|
2257
|
+
let ao = Re, tr = class extends ao {
|
|
2258
2258
|
constructor(e) {
|
|
2259
2259
|
super(e), this.type = "atrule";
|
|
2260
2260
|
}
|
|
@@ -2267,8 +2267,8 @@ let lo = Re, tr = class extends lo {
|
|
|
2267
2267
|
};
|
|
2268
2268
|
var js = tr;
|
|
2269
2269
|
tr.default = tr;
|
|
2270
|
-
|
|
2271
|
-
let
|
|
2270
|
+
ao.registerAtRule(tr);
|
|
2271
|
+
let lo = Re, uo, co, Te = class extends lo {
|
|
2272
2272
|
constructor(e) {
|
|
2273
2273
|
super(e), this.type = "root", this.nodes || (this.nodes = []);
|
|
2274
2274
|
}
|
|
@@ -2288,18 +2288,18 @@ let uo = Re, co, ho, Te = class extends uo {
|
|
|
2288
2288
|
return !t && r === 0 && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[r].raws.before), super.removeChild(e);
|
|
2289
2289
|
}
|
|
2290
2290
|
toResult(e = {}) {
|
|
2291
|
-
return new
|
|
2291
|
+
return new uo(new co(), this, e).stringify();
|
|
2292
2292
|
}
|
|
2293
2293
|
};
|
|
2294
2294
|
Te.registerLazyResult = (s) => {
|
|
2295
|
-
|
|
2295
|
+
uo = s;
|
|
2296
2296
|
};
|
|
2297
2297
|
Te.registerProcessor = (s) => {
|
|
2298
|
-
|
|
2298
|
+
co = s;
|
|
2299
2299
|
};
|
|
2300
2300
|
var ht = Te;
|
|
2301
2301
|
Te.default = Te;
|
|
2302
|
-
|
|
2302
|
+
lo.registerRoot(Te);
|
|
2303
2303
|
let tt = {
|
|
2304
2304
|
comma(s) {
|
|
2305
2305
|
return tt.split(s, [","], !0);
|
|
@@ -2316,14 +2316,14 @@ let tt = {
|
|
|
2316
2316
|
return (t || i !== "") && r.push(i.trim()), r;
|
|
2317
2317
|
}
|
|
2318
2318
|
};
|
|
2319
|
-
var
|
|
2319
|
+
var ho = tt;
|
|
2320
2320
|
tt.default = tt;
|
|
2321
|
-
let
|
|
2321
|
+
let fo = Re, xu = ho, rr = class extends fo {
|
|
2322
2322
|
constructor(e) {
|
|
2323
2323
|
super(e), this.type = "rule", this.nodes || (this.nodes = []);
|
|
2324
2324
|
}
|
|
2325
2325
|
get selectors() {
|
|
2326
|
-
return
|
|
2326
|
+
return xu.comma(this.selector);
|
|
2327
2327
|
}
|
|
2328
2328
|
set selectors(e) {
|
|
2329
2329
|
let t = this.selector ? this.selector.match(/,\s*/) : null, r = t ? t[0] : "," + this.raw("between", "beforeOpen");
|
|
@@ -2332,24 +2332,24 @@ let po = Re, Iu = fo, rr = class extends po {
|
|
|
2332
2332
|
};
|
|
2333
2333
|
var Gs = rr;
|
|
2334
2334
|
rr.default = rr;
|
|
2335
|
-
|
|
2336
|
-
let
|
|
2335
|
+
fo.registerRule(rr);
|
|
2336
|
+
let Iu = gr, Ru = _u, ku = wr, Eu = js, Mu = ht, Ti = Gs;
|
|
2337
2337
|
const Pi = {
|
|
2338
2338
|
empty: !0,
|
|
2339
2339
|
space: !0
|
|
2340
2340
|
};
|
|
2341
|
-
function
|
|
2341
|
+
function Au(s) {
|
|
2342
2342
|
for (let e = s.length - 1; e >= 0; e--) {
|
|
2343
2343
|
let t = s[e], r = t[3] || t[2];
|
|
2344
2344
|
if (r) return r;
|
|
2345
2345
|
}
|
|
2346
2346
|
}
|
|
2347
|
-
let
|
|
2347
|
+
let Ou = class {
|
|
2348
2348
|
constructor(e) {
|
|
2349
|
-
this.input = e, this.root = new
|
|
2349
|
+
this.input = e, this.root = new Mu(), this.current = this.root, this.spaces = "", this.semicolon = !1, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
|
|
2350
2350
|
}
|
|
2351
2351
|
atrule(e) {
|
|
2352
|
-
let t = new
|
|
2352
|
+
let t = new Eu();
|
|
2353
2353
|
t.name = e[1].slice(1), t.name === "" && this.unnamedAtrule(t, e), this.init(t, e[2]);
|
|
2354
2354
|
let r, i, n, o = !1, l = !1, a = [], u = [];
|
|
2355
2355
|
for (; !this.tokenizer.endOfFile(); ) {
|
|
@@ -2406,7 +2406,7 @@ let $u = class {
|
|
|
2406
2406
|
return !1;
|
|
2407
2407
|
}
|
|
2408
2408
|
comment(e) {
|
|
2409
|
-
let t = new
|
|
2409
|
+
let t = new ku();
|
|
2410
2410
|
this.init(t, e[2]), t.source.end = this.getPosition(e[3] || e[2]), t.source.end.offset++;
|
|
2411
2411
|
let r = e[1].slice(2, -2);
|
|
2412
2412
|
if (/^\s*$/.test(r))
|
|
@@ -2417,14 +2417,14 @@ let $u = class {
|
|
|
2417
2417
|
}
|
|
2418
2418
|
}
|
|
2419
2419
|
createTokenizer() {
|
|
2420
|
-
this.tokenizer =
|
|
2420
|
+
this.tokenizer = Ru(this.input);
|
|
2421
2421
|
}
|
|
2422
2422
|
decl(e, t) {
|
|
2423
|
-
let r = new
|
|
2423
|
+
let r = new Iu();
|
|
2424
2424
|
this.init(r, e[0][2]);
|
|
2425
2425
|
let i = e[e.length - 1];
|
|
2426
2426
|
for (i[0] === ";" && (this.semicolon = !0, e.pop()), r.source.end = this.getPosition(
|
|
2427
|
-
i[3] || i[2] ||
|
|
2427
|
+
i[3] || i[2] || Au(e)
|
|
2428
2428
|
), r.source.end.offset++; e[0][0] !== "word"; )
|
|
2429
2429
|
e.length === 1 && this.unknownWord(e), r.raws.before += e.shift()[1];
|
|
2430
2430
|
for (r.source.start = this.getPosition(e[0][2]), r.prop = ""; e.length; ) {
|
|
@@ -2640,10 +2640,10 @@ let $u = class {
|
|
|
2640
2640
|
);
|
|
2641
2641
|
}
|
|
2642
2642
|
};
|
|
2643
|
-
var
|
|
2644
|
-
let
|
|
2643
|
+
var $u = Ou;
|
|
2644
|
+
let Nu = Re, Tu = $u, Pu = yr;
|
|
2645
2645
|
function sr(s, e) {
|
|
2646
|
-
let t = new
|
|
2646
|
+
let t = new Pu(s, e), r = new Tu(t);
|
|
2647
2647
|
try {
|
|
2648
2648
|
r.parse();
|
|
2649
2649
|
} catch (i) {
|
|
@@ -2656,16 +2656,16 @@ You tried to parse Less with the standard CSS parser; try again with the postcss
|
|
|
2656
2656
|
}
|
|
2657
2657
|
var Vs = sr;
|
|
2658
2658
|
sr.default = sr;
|
|
2659
|
-
|
|
2660
|
-
let { isClean: he, my:
|
|
2661
|
-
const
|
|
2659
|
+
Nu.registerParse(sr);
|
|
2660
|
+
let { isClean: he, my: Du } = ct, Lu = Yn, Fu = pr, Uu = Re, Bu = Ws, zu = no, Di = Hs, Wu = Vs, Hu = ht;
|
|
2661
|
+
const ju = {
|
|
2662
2662
|
atrule: "AtRule",
|
|
2663
2663
|
comment: "Comment",
|
|
2664
2664
|
decl: "Declaration",
|
|
2665
2665
|
document: "Document",
|
|
2666
2666
|
root: "Root",
|
|
2667
2667
|
rule: "Rule"
|
|
2668
|
-
},
|
|
2668
|
+
}, Gu = {
|
|
2669
2669
|
AtRule: !0,
|
|
2670
2670
|
AtRuleExit: !0,
|
|
2671
2671
|
Comment: !0,
|
|
@@ -2682,7 +2682,7 @@ const Gu = {
|
|
|
2682
2682
|
RootExit: !0,
|
|
2683
2683
|
Rule: !0,
|
|
2684
2684
|
RuleExit: !0
|
|
2685
|
-
},
|
|
2685
|
+
}, Vu = {
|
|
2686
2686
|
Once: !0,
|
|
2687
2687
|
postcssPlugin: !0,
|
|
2688
2688
|
prepare: !0
|
|
@@ -2690,8 +2690,8 @@ const Gu = {
|
|
|
2690
2690
|
function Ye(s) {
|
|
2691
2691
|
return typeof s == "object" && typeof s.then == "function";
|
|
2692
2692
|
}
|
|
2693
|
-
function
|
|
2694
|
-
let e = !1, t =
|
|
2693
|
+
function po(s) {
|
|
2694
|
+
let e = !1, t = ju[s.type];
|
|
2695
2695
|
return s.type === "decl" ? e = s.prop.toLowerCase() : s.type === "atrule" && (e = s.name.toLowerCase()), e && s.append ? [
|
|
2696
2696
|
t,
|
|
2697
2697
|
t + "-" + e,
|
|
@@ -2702,7 +2702,7 @@ function mo(s) {
|
|
|
2702
2702
|
}
|
|
2703
2703
|
function Li(s) {
|
|
2704
2704
|
let e;
|
|
2705
|
-
return s.type === "document" ? e = ["Document", Pe, "DocumentExit"] : s.type === "root" ? e = ["Root", Pe, "RootExit"] : e =
|
|
2705
|
+
return s.type === "document" ? e = ["Document", Pe, "DocumentExit"] : s.type === "root" ? e = ["Root", Pe, "RootExit"] : e = po(s), {
|
|
2706
2706
|
eventIndex: 0,
|
|
2707
2707
|
events: e,
|
|
2708
2708
|
iterator: 0,
|
|
@@ -2714,23 +2714,23 @@ function Li(s) {
|
|
|
2714
2714
|
function os(s) {
|
|
2715
2715
|
return s[he] = !1, s.nodes && s.nodes.forEach((e) => os(e)), s;
|
|
2716
2716
|
}
|
|
2717
|
-
let as = {}, De = class
|
|
2717
|
+
let as = {}, De = class mo {
|
|
2718
2718
|
constructor(e, t, r) {
|
|
2719
2719
|
this.stringified = !1, this.processed = !1;
|
|
2720
2720
|
let i;
|
|
2721
2721
|
if (typeof t == "object" && t !== null && (t.type === "root" || t.type === "document"))
|
|
2722
2722
|
i = os(t);
|
|
2723
|
-
else if (t instanceof
|
|
2723
|
+
else if (t instanceof mo || t instanceof Di)
|
|
2724
2724
|
i = os(t.root), t.map && (typeof r.map > "u" && (r.map = {}), r.map.inline || (r.map.inline = !1), r.map.prev = t.map);
|
|
2725
2725
|
else {
|
|
2726
|
-
let n =
|
|
2726
|
+
let n = Wu;
|
|
2727
2727
|
r.syntax && (n = r.syntax.parse), r.parser && (n = r.parser), n.parse && (n = n.parse);
|
|
2728
2728
|
try {
|
|
2729
2729
|
i = n(t, r);
|
|
2730
2730
|
} catch (o) {
|
|
2731
2731
|
this.processed = !0, this.error = o;
|
|
2732
2732
|
}
|
|
2733
|
-
i && !i[
|
|
2733
|
+
i && !i[Du] && Uu.rebuild(i);
|
|
2734
2734
|
}
|
|
2735
2735
|
this.result = new Di(e, i, r), this.helpers = { ...as, postcss: as, result: this.result }, this.plugins = this.processor.plugins.map((n) => typeof n == "object" && n.prepare ? { ...n, ...n.prepare(this.result) } : n);
|
|
2736
2736
|
}
|
|
@@ -2770,11 +2770,11 @@ let as = {}, De = class go {
|
|
|
2770
2770
|
for (let t of this.plugins)
|
|
2771
2771
|
if (typeof t == "object")
|
|
2772
2772
|
for (let r in t) {
|
|
2773
|
-
if (!
|
|
2773
|
+
if (!Gu[r] && /^[A-Z]/.test(r))
|
|
2774
2774
|
throw new Error(
|
|
2775
2775
|
`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`
|
|
2776
2776
|
);
|
|
2777
|
-
if (!
|
|
2777
|
+
if (!Vu[r])
|
|
2778
2778
|
if (typeof t[r] == "object")
|
|
2779
2779
|
for (let i in t[r])
|
|
2780
2780
|
i === "*" ? e(t, r, t[r][i]) : e(
|
|
@@ -2852,9 +2852,9 @@ let as = {}, De = class go {
|
|
|
2852
2852
|
if (this.error) throw this.error;
|
|
2853
2853
|
if (this.stringified) return this.result;
|
|
2854
2854
|
this.stringified = !0, this.sync();
|
|
2855
|
-
let e = this.result.opts, t =
|
|
2855
|
+
let e = this.result.opts, t = Fu;
|
|
2856
2856
|
e.syntax && (t = e.syntax.stringify), e.stringifier && (t = e.stringifier), t.stringify && (t = t.stringify);
|
|
2857
|
-
let i = new
|
|
2857
|
+
let i = new Lu(t, this.result.root, this.result.opts).generate();
|
|
2858
2858
|
return this.result.css = i[0], this.result.map = i[1], this.result;
|
|
2859
2859
|
}
|
|
2860
2860
|
sync() {
|
|
@@ -2881,7 +2881,7 @@ let as = {}, De = class go {
|
|
|
2881
2881
|
return this.result;
|
|
2882
2882
|
}
|
|
2883
2883
|
then(e, t) {
|
|
2884
|
-
return process.env.NODE_ENV !== "production" && ("from" in this.opts ||
|
|
2884
|
+
return process.env.NODE_ENV !== "production" && ("from" in this.opts || zu(
|
|
2885
2885
|
"Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."
|
|
2886
2886
|
)), this.async().then(e, t);
|
|
2887
2887
|
}
|
|
@@ -2942,7 +2942,7 @@ let as = {}, De = class go {
|
|
|
2942
2942
|
}
|
|
2943
2943
|
walkSync(e) {
|
|
2944
2944
|
e[he] = !0;
|
|
2945
|
-
let t =
|
|
2945
|
+
let t = po(e);
|
|
2946
2946
|
for (let r of t)
|
|
2947
2947
|
if (r === Pe)
|
|
2948
2948
|
e.nodes && e.each((i) => {
|
|
@@ -2985,24 +2985,24 @@ let as = {}, De = class go {
|
|
|
2985
2985
|
De.registerPostcss = (s) => {
|
|
2986
2986
|
as = s;
|
|
2987
2987
|
};
|
|
2988
|
-
var
|
|
2988
|
+
var go = De;
|
|
2989
2989
|
De.default = De;
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
let
|
|
2993
|
-
const
|
|
2990
|
+
Hu.registerLazyResult(De);
|
|
2991
|
+
Bu.registerLazyResult(De);
|
|
2992
|
+
let Yu = Yn, Zu = pr, Ju = no, Xu = Vs;
|
|
2993
|
+
const Ku = Hs;
|
|
2994
2994
|
let ls = class {
|
|
2995
2995
|
constructor(e, t, r) {
|
|
2996
2996
|
t = t.toString(), this.stringified = !1, this._processor = e, this._css = t, this._opts = r, this._map = void 0;
|
|
2997
|
-
let i, n =
|
|
2998
|
-
this.result = new
|
|
2997
|
+
let i, n = Zu;
|
|
2998
|
+
this.result = new Ku(this._processor, i, this._opts), this.result.css = t;
|
|
2999
2999
|
let o = this;
|
|
3000
3000
|
Object.defineProperty(this.result, "root", {
|
|
3001
3001
|
get() {
|
|
3002
3002
|
return o.root;
|
|
3003
3003
|
}
|
|
3004
3004
|
});
|
|
3005
|
-
let l = new
|
|
3005
|
+
let l = new Yu(n, i, this._opts, t);
|
|
3006
3006
|
if (l.isMap()) {
|
|
3007
3007
|
let [a, u] = l.generate();
|
|
3008
3008
|
a && (this.result.css = a), u && (this.result.map = u);
|
|
@@ -3023,7 +3023,7 @@ let ls = class {
|
|
|
3023
3023
|
return this.result;
|
|
3024
3024
|
}
|
|
3025
3025
|
then(e, t) {
|
|
3026
|
-
return process.env.NODE_ENV !== "production" && ("from" in this._opts ||
|
|
3026
|
+
return process.env.NODE_ENV !== "production" && ("from" in this._opts || Ju(
|
|
3027
3027
|
"Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."
|
|
3028
3028
|
)), this.async().then(e, t);
|
|
3029
3029
|
}
|
|
@@ -3054,7 +3054,7 @@ let ls = class {
|
|
|
3054
3054
|
get root() {
|
|
3055
3055
|
if (this._root)
|
|
3056
3056
|
return this._root;
|
|
3057
|
-
let e, t =
|
|
3057
|
+
let e, t = Xu;
|
|
3058
3058
|
try {
|
|
3059
3059
|
e = t(this._css, this._opts);
|
|
3060
3060
|
} catch (r) {
|
|
@@ -3068,9 +3068,9 @@ let ls = class {
|
|
|
3068
3068
|
return "NoWorkResult";
|
|
3069
3069
|
}
|
|
3070
3070
|
};
|
|
3071
|
-
var
|
|
3071
|
+
var Qu = ls;
|
|
3072
3072
|
ls.default = ls;
|
|
3073
|
-
let
|
|
3073
|
+
let qu = Qu, ec = go, tc = Ws, rc = ht, rt = class {
|
|
3074
3074
|
constructor(e = []) {
|
|
3075
3075
|
this.version = "8.4.38", this.plugins = this.normalize(e);
|
|
3076
3076
|
}
|
|
@@ -3093,27 +3093,27 @@ let ec = qu, tc = yo, rc = Ws, sc = ht, rt = class {
|
|
|
3093
3093
|
return t;
|
|
3094
3094
|
}
|
|
3095
3095
|
process(e, t = {}) {
|
|
3096
|
-
return !this.plugins.length && !t.parser && !t.stringifier && !t.syntax ? new
|
|
3096
|
+
return !this.plugins.length && !t.parser && !t.stringifier && !t.syntax ? new qu(this, e, t) : new ec(this, e, t);
|
|
3097
3097
|
}
|
|
3098
3098
|
use(e) {
|
|
3099
3099
|
return this.plugins = this.plugins.concat(this.normalize([e])), this;
|
|
3100
3100
|
}
|
|
3101
3101
|
};
|
|
3102
|
-
var
|
|
3102
|
+
var sc = rt;
|
|
3103
3103
|
rt.default = rt;
|
|
3104
|
-
sc.registerProcessor(rt);
|
|
3105
3104
|
rc.registerProcessor(rt);
|
|
3106
|
-
|
|
3105
|
+
tc.registerProcessor(rt);
|
|
3106
|
+
let ic = gr, nc = Wn, oc = wr, ac = js, lc = yr, uc = ht, cc = Gs;
|
|
3107
3107
|
function st(s, e) {
|
|
3108
3108
|
if (Array.isArray(s)) return s.map((i) => st(i));
|
|
3109
3109
|
let { inputs: t, ...r } = s;
|
|
3110
3110
|
if (t) {
|
|
3111
3111
|
e = [];
|
|
3112
3112
|
for (let i of t) {
|
|
3113
|
-
let n = { ...i, __proto__:
|
|
3113
|
+
let n = { ...i, __proto__: lc.prototype };
|
|
3114
3114
|
n.map && (n.map = {
|
|
3115
3115
|
...n.map,
|
|
3116
|
-
__proto__:
|
|
3116
|
+
__proto__: nc.prototype
|
|
3117
3117
|
}), e.push(n);
|
|
3118
3118
|
}
|
|
3119
3119
|
}
|
|
@@ -3122,20 +3122,20 @@ function st(s, e) {
|
|
|
3122
3122
|
r.source = n, i != null && (r.source.input = e[i]);
|
|
3123
3123
|
}
|
|
3124
3124
|
if (r.type === "root")
|
|
3125
|
-
return new
|
|
3125
|
+
return new uc(r);
|
|
3126
3126
|
if (r.type === "decl")
|
|
3127
|
-
return new
|
|
3127
|
+
return new ic(r);
|
|
3128
3128
|
if (r.type === "rule")
|
|
3129
|
-
return new
|
|
3129
|
+
return new cc(r);
|
|
3130
3130
|
if (r.type === "comment")
|
|
3131
|
-
return new
|
|
3131
|
+
return new oc(r);
|
|
3132
3132
|
if (r.type === "atrule")
|
|
3133
|
-
return new
|
|
3133
|
+
return new ac(r);
|
|
3134
3134
|
throw new Error("Unknown node type: " + s.type);
|
|
3135
3135
|
}
|
|
3136
|
-
var
|
|
3136
|
+
var hc = st;
|
|
3137
3137
|
st.default = st;
|
|
3138
|
-
let
|
|
3138
|
+
let fc = Us, yo = gr, dc = go, pc = Re, Ys = sc, mc = pr, gc = hc, wo = Ws, yc = oo, bo = wr, vo = js, wc = Hs, bc = yr, vc = Vs, Sc = ho, So = Gs, Co = ht, Cc = mr;
|
|
3139
3139
|
function $(...s) {
|
|
3140
3140
|
return s.length === 1 && Array.isArray(s[0]) && (s = s[0]), new Ys(s);
|
|
3141
3141
|
}
|
|
@@ -3161,33 +3161,33 @@ https://www.w3ctech.com/topic/2226`
|
|
|
3161
3161
|
return $([i(a)]).process(o, l);
|
|
3162
3162
|
}, i;
|
|
3163
3163
|
};
|
|
3164
|
-
$.stringify =
|
|
3165
|
-
$.parse =
|
|
3166
|
-
$.fromJSON =
|
|
3167
|
-
$.list =
|
|
3168
|
-
$.comment = (s) => new
|
|
3169
|
-
$.atRule = (s) => new
|
|
3170
|
-
$.decl = (s) => new
|
|
3171
|
-
$.rule = (s) => new
|
|
3172
|
-
$.root = (s) => new
|
|
3173
|
-
$.document = (s) => new
|
|
3174
|
-
$.CssSyntaxError =
|
|
3175
|
-
$.Declaration =
|
|
3176
|
-
$.Container =
|
|
3164
|
+
$.stringify = mc;
|
|
3165
|
+
$.parse = vc;
|
|
3166
|
+
$.fromJSON = gc;
|
|
3167
|
+
$.list = Sc;
|
|
3168
|
+
$.comment = (s) => new bo(s);
|
|
3169
|
+
$.atRule = (s) => new vo(s);
|
|
3170
|
+
$.decl = (s) => new yo(s);
|
|
3171
|
+
$.rule = (s) => new So(s);
|
|
3172
|
+
$.root = (s) => new Co(s);
|
|
3173
|
+
$.document = (s) => new wo(s);
|
|
3174
|
+
$.CssSyntaxError = fc;
|
|
3175
|
+
$.Declaration = yo;
|
|
3176
|
+
$.Container = pc;
|
|
3177
3177
|
$.Processor = Ys;
|
|
3178
|
-
$.Document =
|
|
3179
|
-
$.Comment =
|
|
3180
|
-
$.Warning =
|
|
3181
|
-
$.AtRule =
|
|
3182
|
-
$.Result =
|
|
3183
|
-
$.Input =
|
|
3184
|
-
$.Rule =
|
|
3185
|
-
$.Root =
|
|
3186
|
-
$.Node =
|
|
3187
|
-
|
|
3188
|
-
var
|
|
3178
|
+
$.Document = wo;
|
|
3179
|
+
$.Comment = bo;
|
|
3180
|
+
$.Warning = yc;
|
|
3181
|
+
$.AtRule = vo;
|
|
3182
|
+
$.Result = wc;
|
|
3183
|
+
$.Input = bc;
|
|
3184
|
+
$.Rule = So;
|
|
3185
|
+
$.Root = Co;
|
|
3186
|
+
$.Node = Cc;
|
|
3187
|
+
dc.registerPostcss($);
|
|
3188
|
+
var _c = $;
|
|
3189
3189
|
$.default = $;
|
|
3190
|
-
const B = /* @__PURE__ */
|
|
3190
|
+
const B = /* @__PURE__ */ Tl(_c);
|
|
3191
3191
|
B.stringify;
|
|
3192
3192
|
B.fromJSON;
|
|
3193
3193
|
B.plugin;
|
|
@@ -3212,11 +3212,11 @@ B.Input;
|
|
|
3212
3212
|
B.Rule;
|
|
3213
3213
|
B.Root;
|
|
3214
3214
|
B.Node;
|
|
3215
|
-
var
|
|
3216
|
-
function
|
|
3215
|
+
var xc = Object.defineProperty, Ic = (s, e, t) => e in s ? xc(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, ie = (s, e, t) => Ic(s, typeof e != "symbol" ? e + "" : e, t);
|
|
3216
|
+
function Rc(s) {
|
|
3217
3217
|
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
3218
3218
|
}
|
|
3219
|
-
function
|
|
3219
|
+
function kc(s) {
|
|
3220
3220
|
if (s.__esModule) return s;
|
|
3221
3221
|
var e = s.default;
|
|
3222
3222
|
if (typeof e == "function") {
|
|
@@ -3235,19 +3235,19 @@ function Ec(s) {
|
|
|
3235
3235
|
});
|
|
3236
3236
|
}), t;
|
|
3237
3237
|
}
|
|
3238
|
-
var Zs = { exports: {} }, U = String,
|
|
3238
|
+
var Zs = { exports: {} }, U = String, _o = function() {
|
|
3239
3239
|
return { isColorSupported: !1, reset: U, bold: U, dim: U, italic: U, underline: U, inverse: U, hidden: U, strikethrough: U, black: U, red: U, green: U, yellow: U, blue: U, magenta: U, cyan: U, white: U, gray: U, bgBlack: U, bgRed: U, bgGreen: U, bgYellow: U, bgBlue: U, bgMagenta: U, bgCyan: U, bgWhite: U };
|
|
3240
3240
|
};
|
|
3241
|
-
Zs.exports =
|
|
3242
|
-
Zs.exports.createColors =
|
|
3243
|
-
var
|
|
3244
|
-
const
|
|
3241
|
+
Zs.exports = _o();
|
|
3242
|
+
Zs.exports.createColors = _o;
|
|
3243
|
+
var Ec = Zs.exports;
|
|
3244
|
+
const Mc = {}, Ac = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3245
3245
|
__proto__: null,
|
|
3246
|
-
default:
|
|
3247
|
-
}, Symbol.toStringTag, { value: "Module" })), le = /* @__PURE__ */
|
|
3248
|
-
let Fi =
|
|
3246
|
+
default: Mc
|
|
3247
|
+
}, Symbol.toStringTag, { value: "Module" })), le = /* @__PURE__ */ kc(Ac);
|
|
3248
|
+
let Fi = Ec, Ui = le, us = class xo extends Error {
|
|
3249
3249
|
constructor(e, t, r, i, n, o) {
|
|
3250
|
-
super(e), this.name = "CssSyntaxError", this.reason = e, n && (this.file = n), i && (this.source = i), o && (this.plugin = o), typeof t < "u" && typeof r < "u" && (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,
|
|
3250
|
+
super(e), this.name = "CssSyntaxError", this.reason = e, n && (this.file = n), i && (this.source = i), o && (this.plugin = o), typeof t < "u" && typeof r < "u" && (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, xo);
|
|
3251
3251
|
}
|
|
3252
3252
|
setMessage() {
|
|
3253
3253
|
this.message = this.plugin ? this.plugin + ": " : "", this.message += this.file ? this.file : "<css input>", typeof this.line < "u" && (this.message += ":" + this.line + ":" + this.column), this.message += ": " + this.reason;
|
|
@@ -3305,7 +3305,7 @@ const Bi = {
|
|
|
3305
3305
|
indent: " ",
|
|
3306
3306
|
semicolon: !1
|
|
3307
3307
|
};
|
|
3308
|
-
function
|
|
3308
|
+
function Oc(s) {
|
|
3309
3309
|
return s[0].toUpperCase() + s.slice(1);
|
|
3310
3310
|
}
|
|
3311
3311
|
let cs = class {
|
|
@@ -3376,7 +3376,7 @@ let cs = class {
|
|
|
3376
3376
|
if (r === "before" || r === "after")
|
|
3377
3377
|
return this.beforeAfter(e, r);
|
|
3378
3378
|
{
|
|
3379
|
-
let l = "raw" +
|
|
3379
|
+
let l = "raw" + Oc(r);
|
|
3380
3380
|
this[l] ? i = this[l](o, e) : o.walk((a) => {
|
|
3381
3381
|
if (i = a.raws[t], typeof i < "u") return !1;
|
|
3382
3382
|
});
|
|
@@ -3473,15 +3473,15 @@ let cs = class {
|
|
|
3473
3473
|
this[e.type](e, t);
|
|
3474
3474
|
}
|
|
3475
3475
|
};
|
|
3476
|
-
var
|
|
3476
|
+
var Io = cs;
|
|
3477
3477
|
cs.default = cs;
|
|
3478
|
-
let
|
|
3478
|
+
let $c = Io;
|
|
3479
3479
|
function hs(s, e) {
|
|
3480
|
-
new
|
|
3480
|
+
new $c(e).stringify(s);
|
|
3481
3481
|
}
|
|
3482
3482
|
var br = hs;
|
|
3483
3483
|
hs.default = hs;
|
|
3484
|
-
let { isClean: Et, my:
|
|
3484
|
+
let { isClean: Et, my: Nc } = ft, Tc = Js, Pc = Io, Dc = br;
|
|
3485
3485
|
function fs(s, e) {
|
|
3486
3486
|
let t = new s.constructor();
|
|
3487
3487
|
for (let r in s) {
|
|
@@ -3493,7 +3493,7 @@ function fs(s, e) {
|
|
|
3493
3493
|
}
|
|
3494
3494
|
let ds = class {
|
|
3495
3495
|
constructor(e = {}) {
|
|
3496
|
-
this.raws = {}, this[Et] = !1, this[
|
|
3496
|
+
this.raws = {}, this[Et] = !1, this[Nc] = !0;
|
|
3497
3497
|
for (let t in e)
|
|
3498
3498
|
if (t === "nodes") {
|
|
3499
3499
|
this.nodes = [];
|
|
@@ -3550,7 +3550,7 @@ let ds = class {
|
|
|
3550
3550
|
t
|
|
3551
3551
|
);
|
|
3552
3552
|
}
|
|
3553
|
-
return new
|
|
3553
|
+
return new Tc(e);
|
|
3554
3554
|
}
|
|
3555
3555
|
getProxyProcessor() {
|
|
3556
3556
|
return {
|
|
@@ -3624,7 +3624,7 @@ let ds = class {
|
|
|
3624
3624
|
return (r.line < t.line || r.line === t.line && r.column <= t.column) && (r = { column: t.column + 1, line: t.line }), { end: r, start: t };
|
|
3625
3625
|
}
|
|
3626
3626
|
raw(e, t) {
|
|
3627
|
-
return new
|
|
3627
|
+
return new Pc().raw(this, e, t);
|
|
3628
3628
|
}
|
|
3629
3629
|
remove() {
|
|
3630
3630
|
return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
|
|
@@ -3670,7 +3670,7 @@ let ds = class {
|
|
|
3670
3670
|
toProxy() {
|
|
3671
3671
|
return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache;
|
|
3672
3672
|
}
|
|
3673
|
-
toString(e =
|
|
3673
|
+
toString(e = Dc) {
|
|
3674
3674
|
e.stringify && (e = e.stringify);
|
|
3675
3675
|
let t = "";
|
|
3676
3676
|
return e(this, (r) => {
|
|
@@ -3688,7 +3688,7 @@ let ds = class {
|
|
|
3688
3688
|
};
|
|
3689
3689
|
var vr = ds;
|
|
3690
3690
|
ds.default = ds;
|
|
3691
|
-
let
|
|
3691
|
+
let Lc = vr, ps = class extends Lc {
|
|
3692
3692
|
constructor(e) {
|
|
3693
3693
|
e && typeof e.value < "u" && typeof e.value != "string" && (e = { ...e, value: String(e.value) }), super(e), this.type = "decl";
|
|
3694
3694
|
}
|
|
@@ -3698,15 +3698,15 @@ let Fc = vr, ps = class extends Fc {
|
|
|
3698
3698
|
};
|
|
3699
3699
|
var Sr = ps;
|
|
3700
3700
|
ps.default = ps;
|
|
3701
|
-
let
|
|
3701
|
+
let Fc = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Uc = (s = 21) => {
|
|
3702
3702
|
let e = "", t = s;
|
|
3703
3703
|
for (; t--; )
|
|
3704
|
-
e +=
|
|
3704
|
+
e += Fc[Math.random() * 64 | 0];
|
|
3705
3705
|
return e;
|
|
3706
3706
|
};
|
|
3707
|
-
var
|
|
3708
|
-
let { SourceMapConsumer: zi, SourceMapGenerator: Wi } = le, { existsSync:
|
|
3709
|
-
function
|
|
3707
|
+
var Bc = { nanoid: Uc };
|
|
3708
|
+
let { SourceMapConsumer: zi, SourceMapGenerator: Wi } = le, { existsSync: zc, readFileSync: Wc } = le, { dirname: Lr, join: Hc } = le;
|
|
3709
|
+
function jc(s) {
|
|
3710
3710
|
return Buffer ? Buffer.from(s, "base64").toString() : window.atob(s);
|
|
3711
3711
|
}
|
|
3712
3712
|
let ms = class {
|
|
@@ -3724,7 +3724,7 @@ let ms = class {
|
|
|
3724
3724
|
if (i.test(e) || n.test(e))
|
|
3725
3725
|
return decodeURIComponent(e.substr(RegExp.lastMatch.length));
|
|
3726
3726
|
if (t.test(e) || r.test(e))
|
|
3727
|
-
return
|
|
3727
|
+
return jc(e.substr(RegExp.lastMatch.length));
|
|
3728
3728
|
let o = e.match(/data:application\/json;([^,]+),/)[1];
|
|
3729
3729
|
throw new Error("Unsupported source map encoding " + o);
|
|
3730
3730
|
}
|
|
@@ -3741,8 +3741,8 @@ let ms = class {
|
|
|
3741
3741
|
r > -1 && i > -1 && (this.annotation = this.getAnnotationURL(e.substring(r, i)));
|
|
3742
3742
|
}
|
|
3743
3743
|
loadFile(e) {
|
|
3744
|
-
if (this.root = Lr(e),
|
|
3745
|
-
return this.mapFile = e,
|
|
3744
|
+
if (this.root = Lr(e), zc(e))
|
|
3745
|
+
return this.mapFile = e, Wc(e, "utf-8").toString().trim();
|
|
3746
3746
|
}
|
|
3747
3747
|
loadMap(e, t) {
|
|
3748
3748
|
if (t === !1) return !1;
|
|
@@ -3775,7 +3775,7 @@ let ms = class {
|
|
|
3775
3775
|
return this.decodeInline(this.annotation);
|
|
3776
3776
|
if (this.annotation) {
|
|
3777
3777
|
let r = this.annotation;
|
|
3778
|
-
return e && (r =
|
|
3778
|
+
return e && (r = Hc(Lr(e), r)), this.loadFile(r);
|
|
3779
3779
|
}
|
|
3780
3780
|
}
|
|
3781
3781
|
}
|
|
@@ -3786,21 +3786,21 @@ let ms = class {
|
|
|
3786
3786
|
return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
|
|
3787
3787
|
}
|
|
3788
3788
|
};
|
|
3789
|
-
var
|
|
3789
|
+
var Ro = ms;
|
|
3790
3790
|
ms.default = ms;
|
|
3791
|
-
let { SourceMapConsumer:
|
|
3791
|
+
let { SourceMapConsumer: Gc, SourceMapGenerator: Vc } = le, { fileURLToPath: Hi, pathToFileURL: Mt } = le, { isAbsolute: gs, resolve: ys } = le, { nanoid: Yc } = Bc, Fr = le, ji = Js, Zc = Ro, Ur = Symbol("fromOffsetCache"), Jc = !!(Gc && Vc), Gi = !!(ys && gs), ir = class {
|
|
3792
3792
|
constructor(e, t = {}) {
|
|
3793
3793
|
if (e === null || typeof e > "u" || typeof e == "object" && !e.toString)
|
|
3794
3794
|
throw new Error(`PostCSS received ${e} instead of CSS string`);
|
|
3795
|
-
if (this.css = e.toString(), this.css[0] === "\uFEFF" || this.css[0] === "" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, t.from && (!Gi || /^\w+:\/\//.test(t.from) || gs(t.from) ? this.file = t.from : this.file = ys(t.from)), Gi &&
|
|
3796
|
-
let r = new
|
|
3795
|
+
if (this.css = e.toString(), this.css[0] === "\uFEFF" || this.css[0] === "" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, t.from && (!Gi || /^\w+:\/\//.test(t.from) || gs(t.from) ? this.file = t.from : this.file = ys(t.from)), Gi && Jc) {
|
|
3796
|
+
let r = new Zc(this.css, t);
|
|
3797
3797
|
if (r.text) {
|
|
3798
3798
|
this.map = r;
|
|
3799
3799
|
let i = r.consumer().file;
|
|
3800
3800
|
!this.file && i && (this.file = this.mapResolve(i));
|
|
3801
3801
|
}
|
|
3802
3802
|
}
|
|
3803
|
-
this.file || (this.id = "<input css " +
|
|
3803
|
+
this.file || (this.id = "<input css " + Yc(6) + ">"), this.map && (this.map.file = this.from);
|
|
3804
3804
|
}
|
|
3805
3805
|
error(e, t, r, i = {}) {
|
|
3806
3806
|
let n, o, l;
|
|
@@ -3913,7 +3913,7 @@ let { SourceMapConsumer: Vc, SourceMapGenerator: Yc } = le, { fileURLToPath: Hi,
|
|
|
3913
3913
|
var Cr = ir;
|
|
3914
3914
|
ir.default = ir;
|
|
3915
3915
|
Fr && Fr.registerInput && Fr.registerInput(ir);
|
|
3916
|
-
let { SourceMapConsumer:
|
|
3916
|
+
let { SourceMapConsumer: ko, SourceMapGenerator: jt } = le, { dirname: Gt, relative: Eo, resolve: Mo, sep: Ao } = le, { pathToFileURL: Vi } = le, Xc = Cr, Kc = !!(ko && jt), Qc = !!(Gt && Mo && Eo && Ao), qc = class {
|
|
3917
3917
|
constructor(e, t, r, i) {
|
|
3918
3918
|
this.stringify = e, this.mapOpts = r.map || {}, this.root = t, this.opts = r, this.css = i, this.originalCSS = i, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
|
|
3919
3919
|
}
|
|
@@ -3929,7 +3929,7 @@ let { SourceMapConsumer: Eo, SourceMapGenerator: jt } = le, { dirname: Gt, relat
|
|
|
3929
3929
|
applyPrevMaps() {
|
|
3930
3930
|
for (let e of this.previous()) {
|
|
3931
3931
|
let t = this.toUrl(this.path(e.file)), r = e.root || Gt(e.file), i;
|
|
3932
|
-
this.mapOpts.sourcesContent === !1 ? (i = new
|
|
3932
|
+
this.mapOpts.sourcesContent === !1 ? (i = new ko(e.text), i.sourcesContent && (i.sourcesContent = null)) : i = e.consumer(), this.map.applySourceMap(i, t, this.toUrl(this.path(r)));
|
|
3933
3933
|
}
|
|
3934
3934
|
}
|
|
3935
3935
|
clearAnnotation() {
|
|
@@ -3941,7 +3941,7 @@ let { SourceMapConsumer: Eo, SourceMapGenerator: jt } = le, { dirname: Gt, relat
|
|
|
3941
3941
|
} else this.css && (this.css = this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm, ""));
|
|
3942
3942
|
}
|
|
3943
3943
|
generate() {
|
|
3944
|
-
if (this.clearAnnotation(),
|
|
3944
|
+
if (this.clearAnnotation(), Qc && Kc && this.isMap())
|
|
3945
3945
|
return this.generateMap();
|
|
3946
3946
|
{
|
|
3947
3947
|
let e = "";
|
|
@@ -4010,8 +4010,8 @@ let { SourceMapConsumer: Eo, SourceMapGenerator: jt } = le, { dirname: Gt, relat
|
|
|
4010
4010
|
let t = this.memoizedPaths.get(e);
|
|
4011
4011
|
if (t) return t;
|
|
4012
4012
|
let r = this.opts.to ? Gt(this.opts.to) : ".";
|
|
4013
|
-
typeof this.mapOpts.annotation == "string" && (r = Gt(
|
|
4014
|
-
let i =
|
|
4013
|
+
typeof this.mapOpts.annotation == "string" && (r = Gt(Mo(r, this.mapOpts.annotation)));
|
|
4014
|
+
let i = Eo(r, e);
|
|
4015
4015
|
return this.memoizedPaths.set(e, i), i;
|
|
4016
4016
|
}
|
|
4017
4017
|
previous() {
|
|
@@ -4024,7 +4024,7 @@ let { SourceMapConsumer: Eo, SourceMapGenerator: jt } = le, { dirname: Gt, relat
|
|
|
4024
4024
|
}
|
|
4025
4025
|
});
|
|
4026
4026
|
else {
|
|
4027
|
-
let e = new
|
|
4027
|
+
let e = new Xc(this.originalCSS, this.opts);
|
|
4028
4028
|
e.map && this.previousMaps.push(e.map);
|
|
4029
4029
|
}
|
|
4030
4030
|
return this.previousMaps;
|
|
@@ -4067,29 +4067,29 @@ let { SourceMapConsumer: Eo, SourceMapGenerator: jt } = le, { dirname: Gt, relat
|
|
|
4067
4067
|
toUrl(e) {
|
|
4068
4068
|
let t = this.memoizedURLs.get(e);
|
|
4069
4069
|
if (t) return t;
|
|
4070
|
-
|
|
4070
|
+
Ao === "\\" && (e = e.replace(/\\/g, "/"));
|
|
4071
4071
|
let r = encodeURI(e).replace(/[#?]/g, encodeURIComponent);
|
|
4072
4072
|
return this.memoizedURLs.set(e, r), r;
|
|
4073
4073
|
}
|
|
4074
4074
|
};
|
|
4075
|
-
var
|
|
4076
|
-
let
|
|
4075
|
+
var Oo = qc;
|
|
4076
|
+
let eh = vr, ws = class extends eh {
|
|
4077
4077
|
constructor(e) {
|
|
4078
4078
|
super(e), this.type = "comment";
|
|
4079
4079
|
}
|
|
4080
4080
|
};
|
|
4081
4081
|
var _r = ws;
|
|
4082
4082
|
ws.default = ws;
|
|
4083
|
-
let { isClean:
|
|
4084
|
-
function
|
|
4085
|
-
return s.map((e) => (e.nodes && (e.nodes =
|
|
4083
|
+
let { isClean: $o, my: No } = ft, To = Sr, Po = _r, th = vr, Do, Xs, Ks, Lo;
|
|
4084
|
+
function Fo(s) {
|
|
4085
|
+
return s.map((e) => (e.nodes && (e.nodes = Fo(e.nodes)), delete e.source, e));
|
|
4086
4086
|
}
|
|
4087
|
-
function
|
|
4088
|
-
if (s[
|
|
4087
|
+
function Uo(s) {
|
|
4088
|
+
if (s[$o] = !1, s.proxyOf.nodes)
|
|
4089
4089
|
for (let e of s.proxyOf.nodes)
|
|
4090
|
-
|
|
4090
|
+
Uo(e);
|
|
4091
4091
|
}
|
|
4092
|
-
let ge = class
|
|
4092
|
+
let ge = class Bo extends th {
|
|
4093
4093
|
append(...e) {
|
|
4094
4094
|
for (let t of e) {
|
|
4095
4095
|
let r = this.normalize(t, this.last);
|
|
@@ -4153,7 +4153,7 @@ let ge = class zo extends rh {
|
|
|
4153
4153
|
}
|
|
4154
4154
|
normalize(e, t) {
|
|
4155
4155
|
if (typeof e == "string")
|
|
4156
|
-
e =
|
|
4156
|
+
e = Fo(Do(e).nodes);
|
|
4157
4157
|
else if (typeof e > "u")
|
|
4158
4158
|
e = [];
|
|
4159
4159
|
else if (Array.isArray(e)) {
|
|
@@ -4169,16 +4169,16 @@ let ge = class zo extends rh {
|
|
|
4169
4169
|
else if (e.prop) {
|
|
4170
4170
|
if (typeof e.value > "u")
|
|
4171
4171
|
throw new Error("Value field is missed in node creation");
|
|
4172
|
-
typeof e.value != "string" && (e.value = String(e.value)), e = [new
|
|
4172
|
+
typeof e.value != "string" && (e.value = String(e.value)), e = [new To(e)];
|
|
4173
4173
|
} else if (e.selector)
|
|
4174
4174
|
e = [new Xs(e)];
|
|
4175
4175
|
else if (e.name)
|
|
4176
4176
|
e = [new Ks(e)];
|
|
4177
4177
|
else if (e.text)
|
|
4178
|
-
e = [new
|
|
4178
|
+
e = [new Po(e)];
|
|
4179
4179
|
else
|
|
4180
4180
|
throw new Error("Unknown node type in node creation");
|
|
4181
|
-
return e.map((i) => (i[
|
|
4181
|
+
return e.map((i) => (i[No] || Bo.rebuild(i), i = i.proxyOf, i.parent && i.parent.removeChild(i), i[$o] && Uo(i), typeof i.raws.before > "u" && t && typeof t.raws.before < "u" && (i.raws.before = t.raws.before.replace(/\S/g, "")), i.parent = this.proxyOf, i));
|
|
4182
4182
|
}
|
|
4183
4183
|
prepend(...e) {
|
|
4184
4184
|
e = e.reverse();
|
|
@@ -4275,7 +4275,7 @@ let ge = class zo extends rh {
|
|
|
4275
4275
|
}
|
|
4276
4276
|
};
|
|
4277
4277
|
ge.registerParse = (s) => {
|
|
4278
|
-
|
|
4278
|
+
Do = s;
|
|
4279
4279
|
};
|
|
4280
4280
|
ge.registerRule = (s) => {
|
|
4281
4281
|
Xs = s;
|
|
@@ -4284,33 +4284,33 @@ ge.registerAtRule = (s) => {
|
|
|
4284
4284
|
Ks = s;
|
|
4285
4285
|
};
|
|
4286
4286
|
ge.registerRoot = (s) => {
|
|
4287
|
-
|
|
4287
|
+
Lo = s;
|
|
4288
4288
|
};
|
|
4289
4289
|
var ke = ge;
|
|
4290
4290
|
ge.default = ge;
|
|
4291
4291
|
ge.rebuild = (s) => {
|
|
4292
|
-
s.type === "atrule" ? Object.setPrototypeOf(s, Ks.prototype) : s.type === "rule" ? Object.setPrototypeOf(s, Xs.prototype) : s.type === "decl" ? Object.setPrototypeOf(s,
|
|
4292
|
+
s.type === "atrule" ? Object.setPrototypeOf(s, Ks.prototype) : s.type === "rule" ? Object.setPrototypeOf(s, Xs.prototype) : s.type === "decl" ? Object.setPrototypeOf(s, To.prototype) : s.type === "comment" ? Object.setPrototypeOf(s, Po.prototype) : s.type === "root" && Object.setPrototypeOf(s, Lo.prototype), s[No] = !0, s.nodes && s.nodes.forEach((e) => {
|
|
4293
4293
|
ge.rebuild(e);
|
|
4294
4294
|
});
|
|
4295
4295
|
};
|
|
4296
|
-
let
|
|
4296
|
+
let rh = ke, zo, Wo, it = class extends rh {
|
|
4297
4297
|
constructor(e) {
|
|
4298
4298
|
super({ type: "document", ...e }), this.nodes || (this.nodes = []);
|
|
4299
4299
|
}
|
|
4300
4300
|
toResult(e = {}) {
|
|
4301
|
-
return new
|
|
4301
|
+
return new zo(new Wo(), this, e).stringify();
|
|
4302
4302
|
}
|
|
4303
4303
|
};
|
|
4304
4304
|
it.registerLazyResult = (s) => {
|
|
4305
|
-
|
|
4305
|
+
zo = s;
|
|
4306
4306
|
};
|
|
4307
4307
|
it.registerProcessor = (s) => {
|
|
4308
|
-
|
|
4308
|
+
Wo = s;
|
|
4309
4309
|
};
|
|
4310
4310
|
var Qs = it;
|
|
4311
4311
|
it.default = it;
|
|
4312
4312
|
let Yi = {};
|
|
4313
|
-
var
|
|
4313
|
+
var Ho = function(e) {
|
|
4314
4314
|
Yi[e] || (Yi[e] = !0, typeof console < "u" && console.warn && console.warn(e));
|
|
4315
4315
|
};
|
|
4316
4316
|
let bs = class {
|
|
@@ -4329,9 +4329,9 @@ let bs = class {
|
|
|
4329
4329
|
}).message : this.plugin ? this.plugin + ": " + this.text : this.text;
|
|
4330
4330
|
}
|
|
4331
4331
|
};
|
|
4332
|
-
var
|
|
4332
|
+
var jo = bs;
|
|
4333
4333
|
bs.default = bs;
|
|
4334
|
-
let
|
|
4334
|
+
let sh = jo, vs = class {
|
|
4335
4335
|
constructor(e, t, r) {
|
|
4336
4336
|
this.processor = e, this.messages = [], this.root = t, this.opts = r, this.css = void 0, this.map = void 0;
|
|
4337
4337
|
}
|
|
@@ -4340,7 +4340,7 @@ let ih = Go, vs = class {
|
|
|
4340
4340
|
}
|
|
4341
4341
|
warn(e, t = {}) {
|
|
4342
4342
|
t.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (t.plugin = this.lastPlugin.postcssPlugin);
|
|
4343
|
-
let r = new
|
|
4343
|
+
let r = new sh(e, t);
|
|
4344
4344
|
return this.messages.push(r), r;
|
|
4345
4345
|
}
|
|
4346
4346
|
warnings() {
|
|
@@ -4352,8 +4352,8 @@ let ih = Go, vs = class {
|
|
|
4352
4352
|
};
|
|
4353
4353
|
var qs = vs;
|
|
4354
4354
|
vs.default = vs;
|
|
4355
|
-
const Br = 39, Zi = 34, At = 92, Ji = 47, Ot = 10, Ze = 32, $t = 12, Nt = 9, Tt = 13,
|
|
4356
|
-
var
|
|
4355
|
+
const Br = 39, Zi = 34, At = 92, Ji = 47, Ot = 10, Ze = 32, $t = 12, Nt = 9, Tt = 13, ih = 91, nh = 93, oh = 40, ah = 41, lh = 123, uh = 125, ch = 59, hh = 42, fh = 58, dh = 64, Pt = /[\t\n\f\r "#'()/;[\\\]{}]/g, Dt = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, ph = /.[\r\n"'(/\\]/, Xi = /[\da-f]/i;
|
|
4356
|
+
var mh = function(e, t = {}) {
|
|
4357
4357
|
let r = e.css.valueOf(), i = t.ignoreErrors, n, o, l, a, u, c, h, p, d, g, m = r.length, f = 0, v = [], b = [];
|
|
4358
4358
|
function y() {
|
|
4359
4359
|
return f;
|
|
@@ -4381,18 +4381,18 @@ var gh = function(e, t = {}) {
|
|
|
4381
4381
|
g = ["space", r.slice(f, o)], f = o - 1;
|
|
4382
4382
|
break;
|
|
4383
4383
|
}
|
|
4384
|
+
case ih:
|
|
4384
4385
|
case nh:
|
|
4385
|
-
case
|
|
4386
|
+
case lh:
|
|
4386
4387
|
case uh:
|
|
4388
|
+
case fh:
|
|
4387
4389
|
case ch:
|
|
4388
|
-
case
|
|
4389
|
-
case hh:
|
|
4390
|
-
case lh: {
|
|
4390
|
+
case ah: {
|
|
4391
4391
|
let Y = String.fromCharCode(n);
|
|
4392
4392
|
g = [Y, Y, f];
|
|
4393
4393
|
break;
|
|
4394
4394
|
}
|
|
4395
|
-
case
|
|
4395
|
+
case oh: {
|
|
4396
4396
|
if (p = v.length ? v.pop()[1] : "", d = r.charCodeAt(f + 1), p === "url" && d !== Br && d !== Zi && d !== Ze && d !== Ot && d !== Nt && d !== $t && d !== Tt) {
|
|
4397
4397
|
o = f;
|
|
4398
4398
|
do {
|
|
@@ -4407,7 +4407,7 @@ var gh = function(e, t = {}) {
|
|
|
4407
4407
|
} while (c);
|
|
4408
4408
|
g = ["brackets", r.slice(f, o + 1), f, o], f = o;
|
|
4409
4409
|
} else
|
|
4410
|
-
o = r.indexOf(")", f + 1), a = r.slice(f, o + 1), o === -1 ||
|
|
4410
|
+
o = r.indexOf(")", f + 1), a = r.slice(f, o + 1), o === -1 || ph.test(a) ? g = ["(", "(", f] : (g = ["brackets", a, f, o], f = o);
|
|
4411
4411
|
break;
|
|
4412
4412
|
}
|
|
4413
4413
|
case Br:
|
|
@@ -4426,7 +4426,7 @@ var gh = function(e, t = {}) {
|
|
|
4426
4426
|
g = ["string", r.slice(f, o + 1), f, o], f = o;
|
|
4427
4427
|
break;
|
|
4428
4428
|
}
|
|
4429
|
-
case
|
|
4429
|
+
case dh: {
|
|
4430
4430
|
Pt.lastIndex = f + 1, Pt.test(r), Pt.lastIndex === 0 ? o = r.length - 1 : o = Pt.lastIndex - 2, g = ["at-word", r.slice(f, o + 1), f, o], f = o;
|
|
4431
4431
|
break;
|
|
4432
4432
|
}
|
|
@@ -4442,7 +4442,7 @@ var gh = function(e, t = {}) {
|
|
|
4442
4442
|
break;
|
|
4443
4443
|
}
|
|
4444
4444
|
default: {
|
|
4445
|
-
n === Ji && r.charCodeAt(f + 1) ===
|
|
4445
|
+
n === Ji && r.charCodeAt(f + 1) === hh ? (o = r.indexOf("*/", f + 2) + 1, o === 0 && (i || D ? o = r.length : C("comment")), g = ["comment", r.slice(f, o + 1), f, o], f = o) : (Dt.lastIndex = f + 1, Dt.test(r), Dt.lastIndex === 0 ? o = r.length - 1 : o = Dt.lastIndex - 2, g = ["word", r.slice(f, o + 1), f, o], v.push(g), f = o);
|
|
4446
4446
|
break;
|
|
4447
4447
|
}
|
|
4448
4448
|
}
|
|
@@ -4458,7 +4458,7 @@ var gh = function(e, t = {}) {
|
|
|
4458
4458
|
position: y
|
|
4459
4459
|
};
|
|
4460
4460
|
};
|
|
4461
|
-
let
|
|
4461
|
+
let Go = ke, nr = class extends Go {
|
|
4462
4462
|
constructor(e) {
|
|
4463
4463
|
super(e), this.type = "atrule";
|
|
4464
4464
|
}
|
|
@@ -4471,8 +4471,8 @@ let Vo = ke, nr = class extends Vo {
|
|
|
4471
4471
|
};
|
|
4472
4472
|
var ei = nr;
|
|
4473
4473
|
nr.default = nr;
|
|
4474
|
-
|
|
4475
|
-
let
|
|
4474
|
+
Go.registerAtRule(nr);
|
|
4475
|
+
let Vo = ke, Yo, Zo, Le = class extends Vo {
|
|
4476
4476
|
constructor(e) {
|
|
4477
4477
|
super(e), this.type = "root", this.nodes || (this.nodes = []);
|
|
4478
4478
|
}
|
|
@@ -4492,18 +4492,18 @@ let Yo = ke, Zo, Jo, Le = class extends Yo {
|
|
|
4492
4492
|
return !t && r === 0 && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[r].raws.before), super.removeChild(e);
|
|
4493
4493
|
}
|
|
4494
4494
|
toResult(e = {}) {
|
|
4495
|
-
return new
|
|
4495
|
+
return new Yo(new Zo(), this, e).stringify();
|
|
4496
4496
|
}
|
|
4497
4497
|
};
|
|
4498
4498
|
Le.registerLazyResult = (s) => {
|
|
4499
|
-
|
|
4499
|
+
Yo = s;
|
|
4500
4500
|
};
|
|
4501
4501
|
Le.registerProcessor = (s) => {
|
|
4502
|
-
|
|
4502
|
+
Zo = s;
|
|
4503
4503
|
};
|
|
4504
4504
|
var dt = Le;
|
|
4505
4505
|
Le.default = Le;
|
|
4506
|
-
|
|
4506
|
+
Vo.registerRoot(Le);
|
|
4507
4507
|
let nt = {
|
|
4508
4508
|
comma(s) {
|
|
4509
4509
|
return nt.split(s, [","], !0);
|
|
@@ -4520,14 +4520,14 @@ let nt = {
|
|
|
4520
4520
|
return (t || i !== "") && r.push(i.trim()), r;
|
|
4521
4521
|
}
|
|
4522
4522
|
};
|
|
4523
|
-
var
|
|
4523
|
+
var Jo = nt;
|
|
4524
4524
|
nt.default = nt;
|
|
4525
|
-
let
|
|
4525
|
+
let Xo = ke, gh = Jo, or = class extends Xo {
|
|
4526
4526
|
constructor(e) {
|
|
4527
4527
|
super(e), this.type = "rule", this.nodes || (this.nodes = []);
|
|
4528
4528
|
}
|
|
4529
4529
|
get selectors() {
|
|
4530
|
-
return
|
|
4530
|
+
return gh.comma(this.selector);
|
|
4531
4531
|
}
|
|
4532
4532
|
set selectors(e) {
|
|
4533
4533
|
let t = this.selector ? this.selector.match(/,\s*/) : null, r = t ? t[0] : "," + this.raw("between", "beforeOpen");
|
|
@@ -4536,24 +4536,24 @@ let Ko = ke, yh = Xo, or = class extends Ko {
|
|
|
4536
4536
|
};
|
|
4537
4537
|
var ti = or;
|
|
4538
4538
|
or.default = or;
|
|
4539
|
-
|
|
4540
|
-
let
|
|
4539
|
+
Xo.registerRule(or);
|
|
4540
|
+
let yh = Sr, wh = mh, bh = _r, vh = ei, Sh = dt, Ki = ti;
|
|
4541
4541
|
const Qi = {
|
|
4542
4542
|
empty: !0,
|
|
4543
4543
|
space: !0
|
|
4544
4544
|
};
|
|
4545
|
-
function
|
|
4545
|
+
function Ch(s) {
|
|
4546
4546
|
for (let e = s.length - 1; e >= 0; e--) {
|
|
4547
4547
|
let t = s[e], r = t[3] || t[2];
|
|
4548
4548
|
if (r) return r;
|
|
4549
4549
|
}
|
|
4550
4550
|
}
|
|
4551
|
-
let
|
|
4551
|
+
let _h = class {
|
|
4552
4552
|
constructor(e) {
|
|
4553
|
-
this.input = e, this.root = new
|
|
4553
|
+
this.input = e, this.root = new Sh(), this.current = this.root, this.spaces = "", this.semicolon = !1, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
|
|
4554
4554
|
}
|
|
4555
4555
|
atrule(e) {
|
|
4556
|
-
let t = new
|
|
4556
|
+
let t = new vh();
|
|
4557
4557
|
t.name = e[1].slice(1), t.name === "" && this.unnamedAtrule(t, e), this.init(t, e[2]);
|
|
4558
4558
|
let r, i, n, o = !1, l = !1, a = [], u = [];
|
|
4559
4559
|
for (; !this.tokenizer.endOfFile(); ) {
|
|
@@ -4610,7 +4610,7 @@ let xh = class {
|
|
|
4610
4610
|
return !1;
|
|
4611
4611
|
}
|
|
4612
4612
|
comment(e) {
|
|
4613
|
-
let t = new
|
|
4613
|
+
let t = new bh();
|
|
4614
4614
|
this.init(t, e[2]), t.source.end = this.getPosition(e[3] || e[2]), t.source.end.offset++;
|
|
4615
4615
|
let r = e[1].slice(2, -2);
|
|
4616
4616
|
if (/^\s*$/.test(r))
|
|
@@ -4621,14 +4621,14 @@ let xh = class {
|
|
|
4621
4621
|
}
|
|
4622
4622
|
}
|
|
4623
4623
|
createTokenizer() {
|
|
4624
|
-
this.tokenizer =
|
|
4624
|
+
this.tokenizer = wh(this.input);
|
|
4625
4625
|
}
|
|
4626
4626
|
decl(e, t) {
|
|
4627
|
-
let r = new
|
|
4627
|
+
let r = new yh();
|
|
4628
4628
|
this.init(r, e[0][2]);
|
|
4629
4629
|
let i = e[e.length - 1];
|
|
4630
4630
|
for (i[0] === ";" && (this.semicolon = !0, e.pop()), r.source.end = this.getPosition(
|
|
4631
|
-
i[3] || i[2] ||
|
|
4631
|
+
i[3] || i[2] || Ch(e)
|
|
4632
4632
|
), r.source.end.offset++; e[0][0] !== "word"; )
|
|
4633
4633
|
e.length === 1 && this.unknownWord(e), r.raws.before += e.shift()[1];
|
|
4634
4634
|
for (r.source.start = this.getPosition(e[0][2]), r.prop = ""; e.length; ) {
|
|
@@ -4844,10 +4844,10 @@ let xh = class {
|
|
|
4844
4844
|
);
|
|
4845
4845
|
}
|
|
4846
4846
|
};
|
|
4847
|
-
var
|
|
4848
|
-
let
|
|
4847
|
+
var xh = _h;
|
|
4848
|
+
let Ih = ke, Rh = xh, kh = Cr;
|
|
4849
4849
|
function ar(s, e) {
|
|
4850
|
-
let t = new
|
|
4850
|
+
let t = new kh(s, e), r = new Rh(t);
|
|
4851
4851
|
try {
|
|
4852
4852
|
r.parse();
|
|
4853
4853
|
} catch (i) {
|
|
@@ -4860,16 +4860,16 @@ You tried to parse Less with the standard CSS parser; try again with the postcss
|
|
|
4860
4860
|
}
|
|
4861
4861
|
var ri = ar;
|
|
4862
4862
|
ar.default = ar;
|
|
4863
|
-
|
|
4864
|
-
let { isClean: fe, my:
|
|
4865
|
-
const
|
|
4863
|
+
Ih.registerParse(ar);
|
|
4864
|
+
let { isClean: fe, my: Eh } = ft, Mh = Oo, Ah = br, Oh = ke, $h = Qs, Nh = Ho, qi = qs, Th = ri, Ph = dt;
|
|
4865
|
+
const Dh = {
|
|
4866
4866
|
atrule: "AtRule",
|
|
4867
4867
|
comment: "Comment",
|
|
4868
4868
|
decl: "Declaration",
|
|
4869
4869
|
document: "Document",
|
|
4870
4870
|
root: "Root",
|
|
4871
4871
|
rule: "Rule"
|
|
4872
|
-
},
|
|
4872
|
+
}, Lh = {
|
|
4873
4873
|
AtRule: !0,
|
|
4874
4874
|
AtRuleExit: !0,
|
|
4875
4875
|
Comment: !0,
|
|
@@ -4886,7 +4886,7 @@ const Lh = {
|
|
|
4886
4886
|
RootExit: !0,
|
|
4887
4887
|
Rule: !0,
|
|
4888
4888
|
RuleExit: !0
|
|
4889
|
-
},
|
|
4889
|
+
}, Fh = {
|
|
4890
4890
|
Once: !0,
|
|
4891
4891
|
postcssPlugin: !0,
|
|
4892
4892
|
prepare: !0
|
|
@@ -4894,8 +4894,8 @@ const Lh = {
|
|
|
4894
4894
|
function Je(s) {
|
|
4895
4895
|
return typeof s == "object" && typeof s.then == "function";
|
|
4896
4896
|
}
|
|
4897
|
-
function
|
|
4898
|
-
let e = !1, t =
|
|
4897
|
+
function Ko(s) {
|
|
4898
|
+
let e = !1, t = Dh[s.type];
|
|
4899
4899
|
return s.type === "decl" ? e = s.prop.toLowerCase() : s.type === "atrule" && (e = s.name.toLowerCase()), e && s.append ? [
|
|
4900
4900
|
t,
|
|
4901
4901
|
t + "-" + e,
|
|
@@ -4906,7 +4906,7 @@ function Qo(s) {
|
|
|
4906
4906
|
}
|
|
4907
4907
|
function en(s) {
|
|
4908
4908
|
let e;
|
|
4909
|
-
return s.type === "document" ? e = ["Document", Fe, "DocumentExit"] : s.type === "root" ? e = ["Root", Fe, "RootExit"] : e =
|
|
4909
|
+
return s.type === "document" ? e = ["Document", Fe, "DocumentExit"] : s.type === "root" ? e = ["Root", Fe, "RootExit"] : e = Ko(s), {
|
|
4910
4910
|
eventIndex: 0,
|
|
4911
4911
|
events: e,
|
|
4912
4912
|
iterator: 0,
|
|
@@ -4918,23 +4918,23 @@ function en(s) {
|
|
|
4918
4918
|
function Ss(s) {
|
|
4919
4919
|
return s[fe] = !1, s.nodes && s.nodes.forEach((e) => Ss(e)), s;
|
|
4920
4920
|
}
|
|
4921
|
-
let Cs = {}, Ue = class
|
|
4921
|
+
let Cs = {}, Ue = class Qo {
|
|
4922
4922
|
constructor(e, t, r) {
|
|
4923
4923
|
this.stringified = !1, this.processed = !1;
|
|
4924
4924
|
let i;
|
|
4925
4925
|
if (typeof t == "object" && t !== null && (t.type === "root" || t.type === "document"))
|
|
4926
4926
|
i = Ss(t);
|
|
4927
|
-
else if (t instanceof
|
|
4927
|
+
else if (t instanceof Qo || t instanceof qi)
|
|
4928
4928
|
i = Ss(t.root), t.map && (typeof r.map > "u" && (r.map = {}), r.map.inline || (r.map.inline = !1), r.map.prev = t.map);
|
|
4929
4929
|
else {
|
|
4930
|
-
let n =
|
|
4930
|
+
let n = Th;
|
|
4931
4931
|
r.syntax && (n = r.syntax.parse), r.parser && (n = r.parser), n.parse && (n = n.parse);
|
|
4932
4932
|
try {
|
|
4933
4933
|
i = n(t, r);
|
|
4934
4934
|
} catch (o) {
|
|
4935
4935
|
this.processed = !0, this.error = o;
|
|
4936
4936
|
}
|
|
4937
|
-
i && !i[
|
|
4937
|
+
i && !i[Eh] && Oh.rebuild(i);
|
|
4938
4938
|
}
|
|
4939
4939
|
this.result = new qi(e, i, r), this.helpers = { ...Cs, postcss: Cs, result: this.result }, this.plugins = this.processor.plugins.map((n) => typeof n == "object" && n.prepare ? { ...n, ...n.prepare(this.result) } : n);
|
|
4940
4940
|
}
|
|
@@ -4974,11 +4974,11 @@ let Cs = {}, Ue = class qo {
|
|
|
4974
4974
|
for (let t of this.plugins)
|
|
4975
4975
|
if (typeof t == "object")
|
|
4976
4976
|
for (let r in t) {
|
|
4977
|
-
if (!
|
|
4977
|
+
if (!Lh[r] && /^[A-Z]/.test(r))
|
|
4978
4978
|
throw new Error(
|
|
4979
4979
|
`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`
|
|
4980
4980
|
);
|
|
4981
|
-
if (!
|
|
4981
|
+
if (!Fh[r])
|
|
4982
4982
|
if (typeof t[r] == "object")
|
|
4983
4983
|
for (let i in t[r])
|
|
4984
4984
|
i === "*" ? e(t, r, t[r][i]) : e(
|
|
@@ -5056,9 +5056,9 @@ let Cs = {}, Ue = class qo {
|
|
|
5056
5056
|
if (this.error) throw this.error;
|
|
5057
5057
|
if (this.stringified) return this.result;
|
|
5058
5058
|
this.stringified = !0, this.sync();
|
|
5059
|
-
let e = this.result.opts, t =
|
|
5059
|
+
let e = this.result.opts, t = Ah;
|
|
5060
5060
|
e.syntax && (t = e.syntax.stringify), e.stringifier && (t = e.stringifier), t.stringify && (t = t.stringify);
|
|
5061
|
-
let i = new
|
|
5061
|
+
let i = new Mh(t, this.result.root, this.result.opts).generate();
|
|
5062
5062
|
return this.result.css = i[0], this.result.map = i[1], this.result;
|
|
5063
5063
|
}
|
|
5064
5064
|
sync() {
|
|
@@ -5085,7 +5085,7 @@ let Cs = {}, Ue = class qo {
|
|
|
5085
5085
|
return this.result;
|
|
5086
5086
|
}
|
|
5087
5087
|
then(e, t) {
|
|
5088
|
-
return process.env.NODE_ENV !== "production" && ("from" in this.opts ||
|
|
5088
|
+
return process.env.NODE_ENV !== "production" && ("from" in this.opts || Nh(
|
|
5089
5089
|
"Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."
|
|
5090
5090
|
)), this.async().then(e, t);
|
|
5091
5091
|
}
|
|
@@ -5146,7 +5146,7 @@ let Cs = {}, Ue = class qo {
|
|
|
5146
5146
|
}
|
|
5147
5147
|
walkSync(e) {
|
|
5148
5148
|
e[fe] = !0;
|
|
5149
|
-
let t =
|
|
5149
|
+
let t = Ko(e);
|
|
5150
5150
|
for (let r of t)
|
|
5151
5151
|
if (r === Fe)
|
|
5152
5152
|
e.nodes && e.each((i) => {
|
|
@@ -5189,24 +5189,24 @@ let Cs = {}, Ue = class qo {
|
|
|
5189
5189
|
Ue.registerPostcss = (s) => {
|
|
5190
5190
|
Cs = s;
|
|
5191
5191
|
};
|
|
5192
|
-
var
|
|
5192
|
+
var qo = Ue;
|
|
5193
5193
|
Ue.default = Ue;
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
let
|
|
5197
|
-
const
|
|
5194
|
+
Ph.registerLazyResult(Ue);
|
|
5195
|
+
$h.registerLazyResult(Ue);
|
|
5196
|
+
let Uh = Oo, Bh = br, zh = Ho, Wh = ri;
|
|
5197
|
+
const Hh = qs;
|
|
5198
5198
|
let _s = class {
|
|
5199
5199
|
constructor(e, t, r) {
|
|
5200
5200
|
t = t.toString(), this.stringified = !1, this._processor = e, this._css = t, this._opts = r, this._map = void 0;
|
|
5201
|
-
let i, n =
|
|
5202
|
-
this.result = new
|
|
5201
|
+
let i, n = Bh;
|
|
5202
|
+
this.result = new Hh(this._processor, i, this._opts), this.result.css = t;
|
|
5203
5203
|
let o = this;
|
|
5204
5204
|
Object.defineProperty(this.result, "root", {
|
|
5205
5205
|
get() {
|
|
5206
5206
|
return o.root;
|
|
5207
5207
|
}
|
|
5208
5208
|
});
|
|
5209
|
-
let l = new
|
|
5209
|
+
let l = new Uh(n, i, this._opts, t);
|
|
5210
5210
|
if (l.isMap()) {
|
|
5211
5211
|
let [a, u] = l.generate();
|
|
5212
5212
|
a && (this.result.css = a), u && (this.result.map = u);
|
|
@@ -5227,7 +5227,7 @@ let _s = class {
|
|
|
5227
5227
|
return this.result;
|
|
5228
5228
|
}
|
|
5229
5229
|
then(e, t) {
|
|
5230
|
-
return process.env.NODE_ENV !== "production" && ("from" in this._opts ||
|
|
5230
|
+
return process.env.NODE_ENV !== "production" && ("from" in this._opts || zh(
|
|
5231
5231
|
"Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."
|
|
5232
5232
|
)), this.async().then(e, t);
|
|
5233
5233
|
}
|
|
@@ -5258,7 +5258,7 @@ let _s = class {
|
|
|
5258
5258
|
get root() {
|
|
5259
5259
|
if (this._root)
|
|
5260
5260
|
return this._root;
|
|
5261
|
-
let e, t =
|
|
5261
|
+
let e, t = Wh;
|
|
5262
5262
|
try {
|
|
5263
5263
|
e = t(this._css, this._opts);
|
|
5264
5264
|
} catch (r) {
|
|
@@ -5272,9 +5272,9 @@ let _s = class {
|
|
|
5272
5272
|
return "NoWorkResult";
|
|
5273
5273
|
}
|
|
5274
5274
|
};
|
|
5275
|
-
var
|
|
5275
|
+
var jh = _s;
|
|
5276
5276
|
_s.default = _s;
|
|
5277
|
-
let
|
|
5277
|
+
let Gh = jh, Vh = qo, Yh = Qs, Zh = dt, ot = class {
|
|
5278
5278
|
constructor(e = []) {
|
|
5279
5279
|
this.version = "8.4.38", this.plugins = this.normalize(e);
|
|
5280
5280
|
}
|
|
@@ -5297,27 +5297,27 @@ let Vh = Gh, Yh = ea, Zh = Qs, Jh = dt, ot = class {
|
|
|
5297
5297
|
return t;
|
|
5298
5298
|
}
|
|
5299
5299
|
process(e, t = {}) {
|
|
5300
|
-
return !this.plugins.length && !t.parser && !t.stringifier && !t.syntax ? new
|
|
5300
|
+
return !this.plugins.length && !t.parser && !t.stringifier && !t.syntax ? new Gh(this, e, t) : new Vh(this, e, t);
|
|
5301
5301
|
}
|
|
5302
5302
|
use(e) {
|
|
5303
5303
|
return this.plugins = this.plugins.concat(this.normalize([e])), this;
|
|
5304
5304
|
}
|
|
5305
5305
|
};
|
|
5306
|
-
var
|
|
5306
|
+
var Jh = ot;
|
|
5307
5307
|
ot.default = ot;
|
|
5308
|
-
Jh.registerProcessor(ot);
|
|
5309
5308
|
Zh.registerProcessor(ot);
|
|
5310
|
-
|
|
5309
|
+
Yh.registerProcessor(ot);
|
|
5310
|
+
let Xh = Sr, Kh = Ro, Qh = _r, qh = ei, ef = Cr, tf = dt, rf = ti;
|
|
5311
5311
|
function at(s, e) {
|
|
5312
5312
|
if (Array.isArray(s)) return s.map((i) => at(i));
|
|
5313
5313
|
let { inputs: t, ...r } = s;
|
|
5314
5314
|
if (t) {
|
|
5315
5315
|
e = [];
|
|
5316
5316
|
for (let i of t) {
|
|
5317
|
-
let n = { ...i, __proto__:
|
|
5317
|
+
let n = { ...i, __proto__: ef.prototype };
|
|
5318
5318
|
n.map && (n.map = {
|
|
5319
5319
|
...n.map,
|
|
5320
|
-
__proto__:
|
|
5320
|
+
__proto__: Kh.prototype
|
|
5321
5321
|
}), e.push(n);
|
|
5322
5322
|
}
|
|
5323
5323
|
}
|
|
@@ -5326,20 +5326,20 @@ function at(s, e) {
|
|
|
5326
5326
|
r.source = n, i != null && (r.source.input = e[i]);
|
|
5327
5327
|
}
|
|
5328
5328
|
if (r.type === "root")
|
|
5329
|
-
return new
|
|
5329
|
+
return new tf(r);
|
|
5330
5330
|
if (r.type === "decl")
|
|
5331
|
-
return new
|
|
5331
|
+
return new Xh(r);
|
|
5332
5332
|
if (r.type === "rule")
|
|
5333
|
-
return new
|
|
5333
|
+
return new rf(r);
|
|
5334
5334
|
if (r.type === "comment")
|
|
5335
|
-
return new
|
|
5335
|
+
return new Qh(r);
|
|
5336
5336
|
if (r.type === "atrule")
|
|
5337
|
-
return new
|
|
5337
|
+
return new qh(r);
|
|
5338
5338
|
throw new Error("Unknown node type: " + s.type);
|
|
5339
5339
|
}
|
|
5340
|
-
var
|
|
5340
|
+
var sf = at;
|
|
5341
5341
|
at.default = at;
|
|
5342
|
-
let
|
|
5342
|
+
let nf = Js, ea = Sr, of = qo, af = ke, si = Jh, lf = br, uf = sf, ta = Qs, cf = jo, ra = _r, sa = ei, hf = qs, ff = Cr, df = ri, pf = Jo, ia = ti, na = dt, mf = vr;
|
|
5343
5343
|
function N(...s) {
|
|
5344
5344
|
return s.length === 1 && Array.isArray(s[0]) && (s = s[0]), new si(s);
|
|
5345
5345
|
}
|
|
@@ -5365,33 +5365,33 @@ https://www.w3ctech.com/topic/2226`
|
|
|
5365
5365
|
return N([i(a)]).process(o, l);
|
|
5366
5366
|
}, i;
|
|
5367
5367
|
};
|
|
5368
|
-
N.stringify =
|
|
5369
|
-
N.parse =
|
|
5370
|
-
N.fromJSON =
|
|
5371
|
-
N.list =
|
|
5372
|
-
N.comment = (s) => new
|
|
5373
|
-
N.atRule = (s) => new
|
|
5374
|
-
N.decl = (s) => new
|
|
5375
|
-
N.rule = (s) => new
|
|
5376
|
-
N.root = (s) => new
|
|
5377
|
-
N.document = (s) => new
|
|
5378
|
-
N.CssSyntaxError =
|
|
5379
|
-
N.Declaration =
|
|
5380
|
-
N.Container =
|
|
5368
|
+
N.stringify = lf;
|
|
5369
|
+
N.parse = df;
|
|
5370
|
+
N.fromJSON = uf;
|
|
5371
|
+
N.list = pf;
|
|
5372
|
+
N.comment = (s) => new ra(s);
|
|
5373
|
+
N.atRule = (s) => new sa(s);
|
|
5374
|
+
N.decl = (s) => new ea(s);
|
|
5375
|
+
N.rule = (s) => new ia(s);
|
|
5376
|
+
N.root = (s) => new na(s);
|
|
5377
|
+
N.document = (s) => new ta(s);
|
|
5378
|
+
N.CssSyntaxError = nf;
|
|
5379
|
+
N.Declaration = ea;
|
|
5380
|
+
N.Container = af;
|
|
5381
5381
|
N.Processor = si;
|
|
5382
|
-
N.Document =
|
|
5383
|
-
N.Comment =
|
|
5384
|
-
N.Warning =
|
|
5385
|
-
N.AtRule =
|
|
5386
|
-
N.Result =
|
|
5387
|
-
N.Input =
|
|
5388
|
-
N.Rule =
|
|
5389
|
-
N.Root =
|
|
5390
|
-
N.Node =
|
|
5391
|
-
|
|
5392
|
-
var
|
|
5382
|
+
N.Document = ta;
|
|
5383
|
+
N.Comment = ra;
|
|
5384
|
+
N.Warning = cf;
|
|
5385
|
+
N.AtRule = sa;
|
|
5386
|
+
N.Result = hf;
|
|
5387
|
+
N.Input = ff;
|
|
5388
|
+
N.Rule = ia;
|
|
5389
|
+
N.Root = na;
|
|
5390
|
+
N.Node = mf;
|
|
5391
|
+
of.registerPostcss(N);
|
|
5392
|
+
var gf = N;
|
|
5393
5393
|
N.default = N;
|
|
5394
|
-
const z = /* @__PURE__ */
|
|
5394
|
+
const z = /* @__PURE__ */ Rc(gf);
|
|
5395
5395
|
z.stringify;
|
|
5396
5396
|
z.fromJSON;
|
|
5397
5397
|
z.plugin;
|
|
@@ -5471,7 +5471,7 @@ const tn = {
|
|
|
5471
5471
|
ShadowRoot: ["getSelection"],
|
|
5472
5472
|
Element: [],
|
|
5473
5473
|
MutationObserver: ["constructor"]
|
|
5474
|
-
}, Lt = {},
|
|
5474
|
+
}, Lt = {}, yf = () => !!globalThis.Zone;
|
|
5475
5475
|
function ni(s) {
|
|
5476
5476
|
if (Lt[s])
|
|
5477
5477
|
return Lt[s];
|
|
@@ -5488,7 +5488,7 @@ function ni(s) {
|
|
|
5488
5488
|
return typeof t[l] == "function" && ((a = t[l]) == null ? void 0 : a.toString().includes("[native code]"));
|
|
5489
5489
|
}
|
|
5490
5490
|
));
|
|
5491
|
-
if (i && o && !
|
|
5491
|
+
if (i && o && !yf())
|
|
5492
5492
|
return Lt[s] = e.prototype, e.prototype;
|
|
5493
5493
|
try {
|
|
5494
5494
|
const l = document.createElement("iframe");
|
|
@@ -5516,7 +5516,7 @@ function be(s, e, t) {
|
|
|
5516
5516
|
return o ? (zr[i] = o, o.call(e)) : e[t];
|
|
5517
5517
|
}
|
|
5518
5518
|
const Wr = {};
|
|
5519
|
-
function
|
|
5519
|
+
function oa(s, e, t) {
|
|
5520
5520
|
const r = `${s}.${String(t)}`;
|
|
5521
5521
|
if (Wr[r])
|
|
5522
5522
|
return Wr[r].bind(
|
|
@@ -5525,55 +5525,55 @@ function aa(s, e, t) {
|
|
|
5525
5525
|
const n = ni(s)[t];
|
|
5526
5526
|
return typeof n != "function" ? e[t] : (Wr[r] = n, n.bind(e));
|
|
5527
5527
|
}
|
|
5528
|
-
function
|
|
5528
|
+
function wf(s) {
|
|
5529
5529
|
return be("Node", s, "childNodes");
|
|
5530
5530
|
}
|
|
5531
|
-
function
|
|
5531
|
+
function bf(s) {
|
|
5532
5532
|
return be("Node", s, "parentNode");
|
|
5533
5533
|
}
|
|
5534
|
-
function
|
|
5534
|
+
function vf(s) {
|
|
5535
5535
|
return be("Node", s, "parentElement");
|
|
5536
5536
|
}
|
|
5537
|
-
function
|
|
5537
|
+
function Sf(s) {
|
|
5538
5538
|
return be("Node", s, "textContent");
|
|
5539
5539
|
}
|
|
5540
|
-
function
|
|
5541
|
-
return
|
|
5540
|
+
function Cf(s, e) {
|
|
5541
|
+
return oa("Node", s, "contains")(e);
|
|
5542
5542
|
}
|
|
5543
|
-
function
|
|
5544
|
-
return
|
|
5543
|
+
function _f(s) {
|
|
5544
|
+
return oa("Node", s, "getRootNode")();
|
|
5545
5545
|
}
|
|
5546
|
-
function
|
|
5546
|
+
function xf(s) {
|
|
5547
5547
|
return !s || !("host" in s) ? null : be("ShadowRoot", s, "host");
|
|
5548
5548
|
}
|
|
5549
|
-
function
|
|
5549
|
+
function If(s) {
|
|
5550
5550
|
return s.styleSheets;
|
|
5551
5551
|
}
|
|
5552
|
-
function
|
|
5552
|
+
function Rf(s) {
|
|
5553
5553
|
return !s || !("shadowRoot" in s) ? null : be("Element", s, "shadowRoot");
|
|
5554
5554
|
}
|
|
5555
|
-
function
|
|
5555
|
+
function kf(s, e) {
|
|
5556
5556
|
return be("Element", s, "querySelector")(e);
|
|
5557
5557
|
}
|
|
5558
|
-
function
|
|
5558
|
+
function Ef(s, e) {
|
|
5559
5559
|
return be("Element", s, "querySelectorAll")(e);
|
|
5560
5560
|
}
|
|
5561
|
-
function
|
|
5561
|
+
function aa() {
|
|
5562
5562
|
return ni("MutationObserver").constructor;
|
|
5563
5563
|
}
|
|
5564
5564
|
const _ = {
|
|
5565
|
-
childNodes:
|
|
5566
|
-
parentNode:
|
|
5567
|
-
parentElement:
|
|
5568
|
-
textContent:
|
|
5569
|
-
contains:
|
|
5570
|
-
getRootNode:
|
|
5571
|
-
host:
|
|
5572
|
-
styleSheets:
|
|
5573
|
-
shadowRoot:
|
|
5574
|
-
querySelector:
|
|
5575
|
-
querySelectorAll:
|
|
5576
|
-
mutationObserver:
|
|
5565
|
+
childNodes: wf,
|
|
5566
|
+
parentNode: bf,
|
|
5567
|
+
parentElement: vf,
|
|
5568
|
+
textContent: Sf,
|
|
5569
|
+
contains: Cf,
|
|
5570
|
+
getRootNode: _f,
|
|
5571
|
+
host: xf,
|
|
5572
|
+
styleSheets: If,
|
|
5573
|
+
shadowRoot: Rf,
|
|
5574
|
+
querySelector: kf,
|
|
5575
|
+
querySelectorAll: Ef,
|
|
5576
|
+
mutationObserver: aa
|
|
5577
5577
|
};
|
|
5578
5578
|
function ee(s, e, t = document) {
|
|
5579
5579
|
const r = { capture: !0, passive: !0 };
|
|
@@ -5651,7 +5651,7 @@ function He(s, e, t) {
|
|
|
5651
5651
|
}
|
|
5652
5652
|
let lr = Date.now;
|
|
5653
5653
|
/* @__PURE__ */ /[1-9][0-9]{12}/.test(Date.now().toString()) || (lr = () => (/* @__PURE__ */ new Date()).getTime());
|
|
5654
|
-
function
|
|
5654
|
+
function la(s) {
|
|
5655
5655
|
var e, t, r, i;
|
|
5656
5656
|
const n = s.document;
|
|
5657
5657
|
return {
|
|
@@ -5659,19 +5659,19 @@ function ua(s) {
|
|
|
5659
5659
|
top: n.scrollingElement ? n.scrollingElement.scrollTop : s.pageYOffset !== void 0 ? s.pageYOffset : (n == null ? void 0 : n.documentElement.scrollTop) || (n == null ? void 0 : n.body) && ((r = _.parentElement(n.body)) == null ? void 0 : r.scrollTop) || ((i = n == null ? void 0 : n.body) == null ? void 0 : i.scrollTop) || 0
|
|
5660
5660
|
};
|
|
5661
5661
|
}
|
|
5662
|
-
function
|
|
5662
|
+
function ua() {
|
|
5663
5663
|
return window.innerHeight || document.documentElement && document.documentElement.clientHeight || document.body && document.body.clientHeight;
|
|
5664
5664
|
}
|
|
5665
|
-
function
|
|
5665
|
+
function ca() {
|
|
5666
5666
|
return window.innerWidth || document.documentElement && document.documentElement.clientWidth || document.body && document.body.clientWidth;
|
|
5667
5667
|
}
|
|
5668
|
-
function
|
|
5668
|
+
function ha(s) {
|
|
5669
5669
|
return s ? s.nodeType === s.ELEMENT_NODE ? s : _.parentElement(s) : null;
|
|
5670
5670
|
}
|
|
5671
5671
|
function te(s, e, t, r) {
|
|
5672
5672
|
if (!s)
|
|
5673
5673
|
return !1;
|
|
5674
|
-
const i =
|
|
5674
|
+
const i = ha(s);
|
|
5675
5675
|
if (!i)
|
|
5676
5676
|
return !1;
|
|
5677
5677
|
try {
|
|
@@ -5682,37 +5682,37 @@ function te(s, e, t, r) {
|
|
|
5682
5682
|
}
|
|
5683
5683
|
return !!(t && (i.matches(t) || r && i.closest(t) !== null));
|
|
5684
5684
|
}
|
|
5685
|
-
function
|
|
5685
|
+
function Mf(s, e) {
|
|
5686
5686
|
return e.getId(s) !== -1;
|
|
5687
5687
|
}
|
|
5688
5688
|
function Hr(s, e, t) {
|
|
5689
5689
|
return s.tagName === "TITLE" && t.headTitleMutations ? !0 : e.getId(s) === qe;
|
|
5690
5690
|
}
|
|
5691
|
-
function
|
|
5691
|
+
function fa(s, e) {
|
|
5692
5692
|
if (Xe(s))
|
|
5693
5693
|
return !1;
|
|
5694
5694
|
const t = e.getId(s);
|
|
5695
5695
|
if (!e.has(t))
|
|
5696
5696
|
return !0;
|
|
5697
5697
|
const r = _.parentNode(s);
|
|
5698
|
-
return r && r.nodeType === s.DOCUMENT_NODE ? !1 : r ?
|
|
5698
|
+
return r && r.nodeType === s.DOCUMENT_NODE ? !1 : r ? fa(r, e) : !0;
|
|
5699
5699
|
}
|
|
5700
5700
|
function xs(s) {
|
|
5701
5701
|
return !!s.changedTouches;
|
|
5702
5702
|
}
|
|
5703
|
-
function
|
|
5703
|
+
function Af(s = window) {
|
|
5704
5704
|
"NodeList" in s && !s.NodeList.prototype.forEach && (s.NodeList.prototype.forEach = Array.prototype.forEach), "DOMTokenList" in s && !s.DOMTokenList.prototype.forEach && (s.DOMTokenList.prototype.forEach = Array.prototype.forEach);
|
|
5705
5705
|
}
|
|
5706
|
-
function
|
|
5706
|
+
function da(s, e) {
|
|
5707
5707
|
return !!(s.nodeName === "IFRAME" && e.getMeta(s));
|
|
5708
5708
|
}
|
|
5709
|
-
function
|
|
5709
|
+
function pa(s, e) {
|
|
5710
5710
|
return !!(s.nodeName === "LINK" && s.nodeType === s.ELEMENT_NODE && s.getAttribute && s.getAttribute("rel") === "stylesheet" && e.getMeta(s));
|
|
5711
5711
|
}
|
|
5712
5712
|
function Is(s) {
|
|
5713
5713
|
return s ? s instanceof ii && "shadowRoot" in s ? !!s.shadowRoot : !!_.shadowRoot(s) : !1;
|
|
5714
5714
|
}
|
|
5715
|
-
class
|
|
5715
|
+
class Of {
|
|
5716
5716
|
constructor() {
|
|
5717
5717
|
S(this, "id", 1), S(this, "styleIDMap", /* @__PURE__ */ new WeakMap()), S(this, "idStyleMap", /* @__PURE__ */ new Map());
|
|
5718
5718
|
}
|
|
@@ -5740,32 +5740,32 @@ class $f {
|
|
|
5740
5740
|
return this.id++;
|
|
5741
5741
|
}
|
|
5742
5742
|
}
|
|
5743
|
-
function
|
|
5743
|
+
function ma(s) {
|
|
5744
5744
|
var e;
|
|
5745
5745
|
let t = null;
|
|
5746
5746
|
return "getRootNode" in s && ((e = _.getRootNode(s)) == null ? void 0 : e.nodeType) === Node.DOCUMENT_FRAGMENT_NODE && _.host(_.getRootNode(s)) && (t = _.host(_.getRootNode(s))), t;
|
|
5747
5747
|
}
|
|
5748
|
-
function
|
|
5748
|
+
function $f(s) {
|
|
5749
5749
|
let e = s, t;
|
|
5750
|
-
for (; t =
|
|
5750
|
+
for (; t = ma(e); )
|
|
5751
5751
|
e = t;
|
|
5752
5752
|
return e;
|
|
5753
5753
|
}
|
|
5754
|
-
function
|
|
5754
|
+
function Nf(s) {
|
|
5755
5755
|
const e = s.ownerDocument;
|
|
5756
5756
|
if (!e) return !1;
|
|
5757
|
-
const t =
|
|
5757
|
+
const t = $f(s);
|
|
5758
5758
|
return _.contains(e, t);
|
|
5759
5759
|
}
|
|
5760
|
-
function
|
|
5760
|
+
function ga(s) {
|
|
5761
5761
|
const e = s.ownerDocument;
|
|
5762
|
-
return e ? _.contains(e, s) ||
|
|
5762
|
+
return e ? _.contains(e, s) || Nf(s) : !1;
|
|
5763
5763
|
}
|
|
5764
|
-
var I = /* @__PURE__ */ ((s) => (s[s.DomContentLoaded = 0] = "DomContentLoaded", s[s.Load = 1] = "Load", s[s.FullSnapshot = 2] = "FullSnapshot", s[s.IncrementalSnapshot = 3] = "IncrementalSnapshot", s[s.Meta = 4] = "Meta", s[s.Custom = 5] = "Custom", s[s.Plugin = 6] = "Plugin", s))(I || {}), x = /* @__PURE__ */ ((s) => (s[s.Mutation = 0] = "Mutation", s[s.MouseMove = 1] = "MouseMove", s[s.MouseInteraction = 2] = "MouseInteraction", s[s.Scroll = 3] = "Scroll", s[s.ViewportResize = 4] = "ViewportResize", s[s.Input = 5] = "Input", s[s.TouchMove = 6] = "TouchMove", s[s.MediaInteraction = 7] = "MediaInteraction", s[s.StyleSheetRule = 8] = "StyleSheetRule", s[s.CanvasMutation = 9] = "CanvasMutation", s[s.Font = 10] = "Font", s[s.Log = 11] = "Log", s[s.Drag = 12] = "Drag", s[s.StyleDeclaration = 13] = "StyleDeclaration", s[s.Selection = 14] = "Selection", s[s.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", s[s.CustomElement = 16] = "CustomElement", s))(x || {}), re = /* @__PURE__ */ ((s) => (s[s.MouseUp = 0] = "MouseUp", s[s.MouseDown = 1] = "MouseDown", s[s.Click = 2] = "Click", s[s.ContextMenu = 3] = "ContextMenu", s[s.DblClick = 4] = "DblClick", s[s.Focus = 5] = "Focus", s[s.Blur = 6] = "Blur", s[s.TouchStart = 7] = "TouchStart", s[s.TouchMove_Departed = 8] = "TouchMove_Departed", s[s.TouchEnd = 9] = "TouchEnd", s[s.TouchCancel = 10] = "TouchCancel", s))(re || {}), de = /* @__PURE__ */ ((s) => (s[s.Mouse = 0] = "Mouse", s[s.Pen = 1] = "Pen", s[s.Touch = 2] = "Touch", s))(de || {}), Be = /* @__PURE__ */ ((s) => (s[s["2D"] = 0] = "2D", s[s.WebGL = 1] = "WebGL", s[s.WebGL2 = 2] = "WebGL2", s))(Be || {}), Ae = /* @__PURE__ */ ((s) => (s[s.Play = 0] = "Play", s[s.Pause = 1] = "Pause", s[s.Seeked = 2] = "Seeked", s[s.VolumeChange = 3] = "VolumeChange", s[s.RateChange = 4] = "RateChange", s))(Ae || {}),
|
|
5764
|
+
var I = /* @__PURE__ */ ((s) => (s[s.DomContentLoaded = 0] = "DomContentLoaded", s[s.Load = 1] = "Load", s[s.FullSnapshot = 2] = "FullSnapshot", s[s.IncrementalSnapshot = 3] = "IncrementalSnapshot", s[s.Meta = 4] = "Meta", s[s.Custom = 5] = "Custom", s[s.Plugin = 6] = "Plugin", s))(I || {}), x = /* @__PURE__ */ ((s) => (s[s.Mutation = 0] = "Mutation", s[s.MouseMove = 1] = "MouseMove", s[s.MouseInteraction = 2] = "MouseInteraction", s[s.Scroll = 3] = "Scroll", s[s.ViewportResize = 4] = "ViewportResize", s[s.Input = 5] = "Input", s[s.TouchMove = 6] = "TouchMove", s[s.MediaInteraction = 7] = "MediaInteraction", s[s.StyleSheetRule = 8] = "StyleSheetRule", s[s.CanvasMutation = 9] = "CanvasMutation", s[s.Font = 10] = "Font", s[s.Log = 11] = "Log", s[s.Drag = 12] = "Drag", s[s.StyleDeclaration = 13] = "StyleDeclaration", s[s.Selection = 14] = "Selection", s[s.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", s[s.CustomElement = 16] = "CustomElement", s))(x || {}), re = /* @__PURE__ */ ((s) => (s[s.MouseUp = 0] = "MouseUp", s[s.MouseDown = 1] = "MouseDown", s[s.Click = 2] = "Click", s[s.ContextMenu = 3] = "ContextMenu", s[s.DblClick = 4] = "DblClick", s[s.Focus = 5] = "Focus", s[s.Blur = 6] = "Blur", s[s.TouchStart = 7] = "TouchStart", s[s.TouchMove_Departed = 8] = "TouchMove_Departed", s[s.TouchEnd = 9] = "TouchEnd", s[s.TouchCancel = 10] = "TouchCancel", s))(re || {}), de = /* @__PURE__ */ ((s) => (s[s.Mouse = 0] = "Mouse", s[s.Pen = 1] = "Pen", s[s.Touch = 2] = "Touch", s))(de || {}), Be = /* @__PURE__ */ ((s) => (s[s["2D"] = 0] = "2D", s[s.WebGL = 1] = "WebGL", s[s.WebGL2 = 2] = "WebGL2", s))(Be || {}), Ae = /* @__PURE__ */ ((s) => (s[s.Play = 0] = "Play", s[s.Pause = 1] = "Pause", s[s.Seeked = 2] = "Seeked", s[s.VolumeChange = 3] = "VolumeChange", s[s.RateChange = 4] = "RateChange", s))(Ae || {}), ya = /* @__PURE__ */ ((s) => (s[s.Document = 0] = "Document", s[s.DocumentType = 1] = "DocumentType", s[s.Element = 2] = "Element", s[s.Text = 3] = "Text", s[s.CDATA = 4] = "CDATA", s[s.Comment = 5] = "Comment", s))(ya || {});
|
|
5765
5765
|
function nn(s) {
|
|
5766
5766
|
return "__ln" in s;
|
|
5767
5767
|
}
|
|
5768
|
-
class
|
|
5768
|
+
class Tf {
|
|
5769
5769
|
constructor() {
|
|
5770
5770
|
S(this, "length", 0), S(this, "head", null), S(this, "tail", null);
|
|
5771
5771
|
}
|
|
@@ -5799,21 +5799,21 @@ class Pf {
|
|
|
5799
5799
|
}
|
|
5800
5800
|
}
|
|
5801
5801
|
const on = (s, e) => `${s}@${e}`;
|
|
5802
|
-
class
|
|
5802
|
+
class Pf {
|
|
5803
5803
|
constructor() {
|
|
5804
5804
|
S(this, "frozen", !1), S(this, "locked", !1), S(this, "texts", []), S(this, "attributes", []), S(this, "attributeMap", /* @__PURE__ */ new WeakMap()), S(this, "removes", []), S(this, "mapRemoves", []), S(this, "movedMap", {}), S(this, "addedSet", /* @__PURE__ */ new Set()), S(this, "movedSet", /* @__PURE__ */ new Set()), S(this, "droppedSet", /* @__PURE__ */ new Set()), S(this, "removesSubTreeCache", /* @__PURE__ */ new Set()), S(this, "mutationCb"), S(this, "blockClass"), S(this, "blockSelector"), S(this, "maskTextClass"), S(this, "maskTextSelector"), S(this, "inlineStylesheet"), S(this, "maskInputOptions"), S(this, "maskTextFn"), S(this, "maskInputFn"), S(this, "keepIframeSrcFn"), S(this, "recordCanvas"), S(this, "inlineImages"), S(this, "slimDOMOptions"), S(this, "dataURLOptions"), S(this, "doc"), S(this, "mirror"), S(this, "iframeManager"), S(this, "stylesheetManager"), S(this, "shadowDomManager"), S(this, "canvasManager"), S(this, "processedNodeManager"), S(this, "unattachedDoc"), S(this, "processMutations", (e) => {
|
|
5805
5805
|
e.forEach(this.processMutation), this.emit();
|
|
5806
5806
|
}), S(this, "emit", () => {
|
|
5807
5807
|
if (this.frozen || this.locked)
|
|
5808
5808
|
return;
|
|
5809
|
-
const e = [], t = /* @__PURE__ */ new Set(), r = new
|
|
5809
|
+
const e = [], t = /* @__PURE__ */ new Set(), r = new Tf(), i = (a) => {
|
|
5810
5810
|
let u = a, c = qe;
|
|
5811
5811
|
for (; c === qe; )
|
|
5812
5812
|
u = u && u.nextSibling, c = u && this.mirror.getId(u);
|
|
5813
5813
|
return c;
|
|
5814
5814
|
}, n = (a) => {
|
|
5815
5815
|
const u = _.parentNode(a);
|
|
5816
|
-
if (!u || !
|
|
5816
|
+
if (!u || !ga(a))
|
|
5817
5817
|
return;
|
|
5818
5818
|
let c = !1;
|
|
5819
5819
|
if (a.nodeType === Node.TEXT_NODE) {
|
|
@@ -5822,7 +5822,7 @@ class Df {
|
|
|
5822
5822
|
return;
|
|
5823
5823
|
g === "STYLE" && this.addedSet.has(u) && (c = !0);
|
|
5824
5824
|
}
|
|
5825
|
-
const h = Xe(u) ? this.mirror.getId(
|
|
5825
|
+
const h = Xe(u) ? this.mirror.getId(ma(a)) : this.mirror.getId(u), p = i(a);
|
|
5826
5826
|
if (h === -1 || p === -1)
|
|
5827
5827
|
return r.addNode(a);
|
|
5828
5828
|
const d = $e(a, {
|
|
@@ -5843,7 +5843,7 @@ class Df {
|
|
|
5843
5843
|
recordCanvas: this.recordCanvas,
|
|
5844
5844
|
inlineImages: this.inlineImages,
|
|
5845
5845
|
onSerialize: (g) => {
|
|
5846
|
-
|
|
5846
|
+
da(g, this.mirror) && this.iframeManager.addIframe(g), pa(g, this.mirror) && this.stylesheetManager.trackLinkElement(
|
|
5847
5847
|
g
|
|
5848
5848
|
), Is(a) && this.shadowDomManager.addShadowRoot(_.shadowRoot(a), this.doc);
|
|
5849
5849
|
},
|
|
@@ -5944,13 +5944,13 @@ class Df {
|
|
|
5944
5944
|
case "characterData": {
|
|
5945
5945
|
const t = _.textContent(e.target);
|
|
5946
5946
|
!te(e.target, this.blockClass, this.blockSelector, !1) && t !== e.oldValue && this.texts.push({
|
|
5947
|
-
value:
|
|
5947
|
+
value: Fn(
|
|
5948
5948
|
e.target,
|
|
5949
5949
|
this.maskTextClass,
|
|
5950
5950
|
this.maskTextSelector,
|
|
5951
5951
|
!0
|
|
5952
5952
|
// checkAncestors
|
|
5953
|
-
) && t ? this.maskTextFn ? this.maskTextFn(t,
|
|
5953
|
+
) && t ? this.maskTextFn ? this.maskTextFn(t, ha(e.target)) : t.replace(/[\S]/g, "*") : t,
|
|
5954
5954
|
node: e.target
|
|
5955
5955
|
});
|
|
5956
5956
|
break;
|
|
@@ -5982,8 +5982,8 @@ class Df {
|
|
|
5982
5982
|
attributes: {},
|
|
5983
5983
|
styleDiff: {},
|
|
5984
5984
|
_unchangedStyles: {}
|
|
5985
|
-
}, this.attributes.push(n), this.attributeMap.set(e.target, n)), r === "type" && t.tagName === "INPUT" && (e.oldValue || "").toLowerCase() === "password" && t.setAttribute("data-rr-is-password", "true"), !
|
|
5986
|
-
if (n.attributes[r] =
|
|
5985
|
+
}, this.attributes.push(n), this.attributeMap.set(e.target, n)), r === "type" && t.tagName === "INPUT" && (e.oldValue || "").toLowerCase() === "password" && t.setAttribute("data-rr-is-password", "true"), !Ln(t.tagName, r))
|
|
5986
|
+
if (n.attributes[r] = Dn(
|
|
5987
5987
|
this.doc,
|
|
5988
5988
|
Ie(t.tagName),
|
|
5989
5989
|
Ie(r),
|
|
@@ -6015,11 +6015,11 @@ class Df {
|
|
|
6015
6015
|
}
|
|
6016
6016
|
e.addedNodes.forEach((t) => this.genAdds(t, e.target)), e.removedNodes.forEach((t) => {
|
|
6017
6017
|
const r = this.mirror.getId(t), i = Xe(e.target) ? this.mirror.getId(_.host(e.target)) : this.mirror.getId(e.target);
|
|
6018
|
-
te(e.target, this.blockClass, this.blockSelector, !1) || Hr(t, this.mirror, this.slimDOMOptions) || !
|
|
6018
|
+
te(e.target, this.blockClass, this.blockSelector, !1) || Hr(t, this.mirror, this.slimDOMOptions) || !Mf(t, this.mirror) || (this.addedSet.has(t) ? (Rs(this.addedSet, t), this.droppedSet.add(t)) : this.addedSet.has(e.target) && r === -1 || fa(e.target, this.mirror) || (this.movedSet.has(t) && this.movedMap[on(r, i)] ? Rs(this.movedSet, t) : (this.removes.push({
|
|
6019
6019
|
parentId: i,
|
|
6020
6020
|
id: r,
|
|
6021
6021
|
isShadow: Xe(e.target) && Ke(e.target) ? !0 : void 0
|
|
6022
|
-
}),
|
|
6022
|
+
}), Df(t, this.removesSubTreeCache))), this.mapRemoves.push(t));
|
|
6023
6023
|
});
|
|
6024
6024
|
break;
|
|
6025
6025
|
}
|
|
@@ -6089,7 +6089,7 @@ class Df {
|
|
|
6089
6089
|
function Rs(s, e) {
|
|
6090
6090
|
s.delete(e), _.childNodes(e).forEach((t) => Rs(s, t));
|
|
6091
6091
|
}
|
|
6092
|
-
function
|
|
6092
|
+
function Df(s, e) {
|
|
6093
6093
|
const t = [s];
|
|
6094
6094
|
for (; t.length; ) {
|
|
6095
6095
|
const r = t.pop();
|
|
@@ -6097,24 +6097,24 @@ function Lf(s, e) {
|
|
|
6097
6097
|
}
|
|
6098
6098
|
}
|
|
6099
6099
|
function an(s, e, t) {
|
|
6100
|
-
return s.size === 0 ? !1 :
|
|
6100
|
+
return s.size === 0 ? !1 : Lf(s, e);
|
|
6101
6101
|
}
|
|
6102
|
-
function
|
|
6102
|
+
function Lf(s, e, t) {
|
|
6103
6103
|
const r = _.parentNode(e);
|
|
6104
6104
|
return r ? s.has(r) : !1;
|
|
6105
6105
|
}
|
|
6106
6106
|
function ln(s, e) {
|
|
6107
|
-
return s.size === 0 ? !1 :
|
|
6107
|
+
return s.size === 0 ? !1 : wa(s, e);
|
|
6108
6108
|
}
|
|
6109
|
-
function
|
|
6109
|
+
function wa(s, e) {
|
|
6110
6110
|
const t = _.parentNode(e);
|
|
6111
|
-
return t ? s.has(t) ? !0 :
|
|
6111
|
+
return t ? s.has(t) ? !0 : wa(s, t) : !1;
|
|
6112
6112
|
}
|
|
6113
6113
|
let Qe;
|
|
6114
|
-
function
|
|
6114
|
+
function Ff(s) {
|
|
6115
6115
|
Qe = s;
|
|
6116
6116
|
}
|
|
6117
|
-
function
|
|
6117
|
+
function Uf() {
|
|
6118
6118
|
Qe = void 0;
|
|
6119
6119
|
}
|
|
6120
6120
|
const R = (s) => Qe ? (...t) => {
|
|
@@ -6138,10 +6138,10 @@ function pt(s) {
|
|
|
6138
6138
|
}
|
|
6139
6139
|
return s && s.target;
|
|
6140
6140
|
}
|
|
6141
|
-
function
|
|
6142
|
-
const t = new
|
|
6141
|
+
function ba(s, e) {
|
|
6142
|
+
const t = new Pf();
|
|
6143
6143
|
xe.push(t), t.init(s);
|
|
6144
|
-
const r = new (
|
|
6144
|
+
const r = new (aa())(
|
|
6145
6145
|
R(t.processMutations.bind(t))
|
|
6146
6146
|
);
|
|
6147
6147
|
return r.observe(e, {
|
|
@@ -6153,7 +6153,7 @@ function va(s, e) {
|
|
|
6153
6153
|
subtree: !0
|
|
6154
6154
|
}), r;
|
|
6155
6155
|
}
|
|
6156
|
-
function
|
|
6156
|
+
function Bf({
|
|
6157
6157
|
mousemoveCb: s,
|
|
6158
6158
|
sampling: e,
|
|
6159
6159
|
doc: t,
|
|
@@ -6202,7 +6202,7 @@ function zf({
|
|
|
6202
6202
|
c.forEach((h) => h());
|
|
6203
6203
|
});
|
|
6204
6204
|
}
|
|
6205
|
-
function
|
|
6205
|
+
function zf({
|
|
6206
6206
|
mouseInteractionCb: s,
|
|
6207
6207
|
doc: e,
|
|
6208
6208
|
mirror: t,
|
|
@@ -6270,7 +6270,7 @@ function Wf({
|
|
|
6270
6270
|
l.forEach((c) => c());
|
|
6271
6271
|
});
|
|
6272
6272
|
}
|
|
6273
|
-
function
|
|
6273
|
+
function va({
|
|
6274
6274
|
scrollCb: s,
|
|
6275
6275
|
doc: e,
|
|
6276
6276
|
mirror: t,
|
|
@@ -6286,7 +6286,7 @@ function Sa({
|
|
|
6286
6286
|
return;
|
|
6287
6287
|
const u = t.getId(a);
|
|
6288
6288
|
if (a === e && e.defaultView) {
|
|
6289
|
-
const c =
|
|
6289
|
+
const c = la(e.defaultView);
|
|
6290
6290
|
s({
|
|
6291
6291
|
id: u,
|
|
6292
6292
|
x: c.left,
|
|
@@ -6304,12 +6304,12 @@ function Sa({
|
|
|
6304
6304
|
);
|
|
6305
6305
|
return ee("scroll", o, e);
|
|
6306
6306
|
}
|
|
6307
|
-
function
|
|
6307
|
+
function Wf({ viewportResizeCb: s }, { win: e }) {
|
|
6308
6308
|
let t = -1, r = -1;
|
|
6309
6309
|
const i = R(
|
|
6310
6310
|
lt(
|
|
6311
6311
|
R(() => {
|
|
6312
|
-
const n =
|
|
6312
|
+
const n = ua(), o = ca();
|
|
6313
6313
|
(t !== n || r !== o) && (s({
|
|
6314
6314
|
width: Number(o),
|
|
6315
6315
|
height: Number(n)
|
|
@@ -6320,8 +6320,8 @@ function Hf({ viewportResizeCb: s }, { win: e }) {
|
|
|
6320
6320
|
);
|
|
6321
6321
|
return ee("resize", i, e);
|
|
6322
6322
|
}
|
|
6323
|
-
const
|
|
6324
|
-
function
|
|
6323
|
+
const Hf = ["INPUT", "TEXTAREA", "SELECT"], un = /* @__PURE__ */ new WeakMap();
|
|
6324
|
+
function jf({
|
|
6325
6325
|
inputCb: s,
|
|
6326
6326
|
doc: e,
|
|
6327
6327
|
mirror: t,
|
|
@@ -6337,7 +6337,7 @@ function Gf({
|
|
|
6337
6337
|
function h(b) {
|
|
6338
6338
|
let y = pt(b);
|
|
6339
6339
|
const C = b.isTrusted, k = y && y.tagName;
|
|
6340
|
-
if (y && k === "OPTION" && (y = _.parentElement(y)), !y || !k ||
|
|
6340
|
+
if (y && k === "OPTION" && (y = _.parentElement(y)), !y || !k || Hf.indexOf(k) < 0 || te(y, r, i, !0) || y.classList.contains(n) || o && y.matches(o))
|
|
6341
6341
|
return;
|
|
6342
6342
|
let M = y.value, V = !1;
|
|
6343
6343
|
const O = Ds(y) || "";
|
|
@@ -6438,7 +6438,7 @@ function ye(s, e, t) {
|
|
|
6438
6438
|
id: r
|
|
6439
6439
|
}) : {};
|
|
6440
6440
|
}
|
|
6441
|
-
function
|
|
6441
|
+
function Gf({ styleSheetRuleCb: s, mirror: e, stylesheetManager: t }, { win: r }) {
|
|
6442
6442
|
if (!r.CSSStyleSheet || !r.CSSStyleSheet.prototype)
|
|
6443
6443
|
return () => {
|
|
6444
6444
|
};
|
|
@@ -6578,7 +6578,7 @@ function Vf({ styleSheetRuleCb: s, mirror: e, stylesheetManager: t }, { win: r }
|
|
|
6578
6578
|
});
|
|
6579
6579
|
});
|
|
6580
6580
|
}
|
|
6581
|
-
function
|
|
6581
|
+
function Sa({
|
|
6582
6582
|
mirror: s,
|
|
6583
6583
|
stylesheetManager: e
|
|
6584
6584
|
}, t) {
|
|
@@ -6618,7 +6618,7 @@ function Ca({
|
|
|
6618
6618
|
});
|
|
6619
6619
|
}));
|
|
6620
6620
|
}
|
|
6621
|
-
function
|
|
6621
|
+
function Vf({
|
|
6622
6622
|
styleDeclarationCb: s,
|
|
6623
6623
|
mirror: e,
|
|
6624
6624
|
ignoreCSSAttributes: t,
|
|
@@ -6679,7 +6679,7 @@ function Yf({
|
|
|
6679
6679
|
i.CSSStyleDeclaration.prototype.setProperty = n, i.CSSStyleDeclaration.prototype.removeProperty = o;
|
|
6680
6680
|
});
|
|
6681
6681
|
}
|
|
6682
|
-
function
|
|
6682
|
+
function Yf({
|
|
6683
6683
|
mediaInteractionCb: s,
|
|
6684
6684
|
blockClass: e,
|
|
6685
6685
|
blockSelector: t,
|
|
@@ -6717,7 +6717,7 @@ function Zf({
|
|
|
6717
6717
|
l.forEach((a) => a());
|
|
6718
6718
|
});
|
|
6719
6719
|
}
|
|
6720
|
-
function
|
|
6720
|
+
function Zf({ fontCb: s, doc: e }) {
|
|
6721
6721
|
const t = e.defaultView;
|
|
6722
6722
|
if (!t)
|
|
6723
6723
|
return () => {
|
|
@@ -6753,7 +6753,7 @@ function Jf({ fontCb: s, doc: e }) {
|
|
|
6753
6753
|
r.forEach((l) => l());
|
|
6754
6754
|
});
|
|
6755
6755
|
}
|
|
6756
|
-
function
|
|
6756
|
+
function Jf(s) {
|
|
6757
6757
|
const { doc: e, mirror: t, blockClass: r, blockSelector: i, selectionCb: n } = s;
|
|
6758
6758
|
let o = !0;
|
|
6759
6759
|
const l = R(() => {
|
|
@@ -6774,7 +6774,7 @@ function Xf(s) {
|
|
|
6774
6774
|
});
|
|
6775
6775
|
return l(), ee("selectionchange", l);
|
|
6776
6776
|
}
|
|
6777
|
-
function
|
|
6777
|
+
function Xf({
|
|
6778
6778
|
doc: s,
|
|
6779
6779
|
customElementCb: e
|
|
6780
6780
|
}) {
|
|
@@ -6799,7 +6799,7 @@ function Kf({
|
|
|
6799
6799
|
}
|
|
6800
6800
|
);
|
|
6801
6801
|
}
|
|
6802
|
-
function
|
|
6802
|
+
function Kf(s, e) {
|
|
6803
6803
|
const {
|
|
6804
6804
|
mutationCb: t,
|
|
6805
6805
|
mousemoveCb: r,
|
|
@@ -6843,26 +6843,26 @@ function Qf(s, e) {
|
|
|
6843
6843
|
e.customElement && e.customElement(...m), g(...m);
|
|
6844
6844
|
};
|
|
6845
6845
|
}
|
|
6846
|
-
function
|
|
6846
|
+
function Qf(s, e = {}) {
|
|
6847
6847
|
const t = s.doc.defaultView;
|
|
6848
6848
|
if (!t)
|
|
6849
6849
|
return () => {
|
|
6850
6850
|
};
|
|
6851
|
-
|
|
6851
|
+
Kf(s, e);
|
|
6852
6852
|
let r;
|
|
6853
|
-
s.recordDOM && (r =
|
|
6854
|
-
const i =
|
|
6853
|
+
s.recordDOM && (r = ba(s, s.doc));
|
|
6854
|
+
const i = Bf(s), n = zf(s), o = va(s), l = Wf(s, {
|
|
6855
6855
|
win: t
|
|
6856
|
-
}), a =
|
|
6856
|
+
}), a = jf(s), u = Yf(s);
|
|
6857
6857
|
let c = () => {
|
|
6858
6858
|
}, h = () => {
|
|
6859
6859
|
}, p = () => {
|
|
6860
6860
|
}, d = () => {
|
|
6861
6861
|
};
|
|
6862
|
-
s.recordDOM && (c =
|
|
6862
|
+
s.recordDOM && (c = Gf(s, { win: t }), h = Sa(s, s.doc), p = Vf(s, {
|
|
6863
6863
|
win: t
|
|
6864
|
-
}), s.collectFonts && (d =
|
|
6865
|
-
const g =
|
|
6864
|
+
}), s.collectFonts && (d = Zf(s)));
|
|
6865
|
+
const g = Jf(s), m = Xf(s), f = [];
|
|
6866
6866
|
for (const v of s.plugins)
|
|
6867
6867
|
f.push(
|
|
6868
6868
|
v.observer(v.callback, t, v.options)
|
|
@@ -6920,9 +6920,9 @@ class cn {
|
|
|
6920
6920
|
return t || (t = /* @__PURE__ */ new Map(), this.iframeRemoteIdToIdMap.set(e, t)), t;
|
|
6921
6921
|
}
|
|
6922
6922
|
}
|
|
6923
|
-
class
|
|
6923
|
+
class qf {
|
|
6924
6924
|
constructor(e) {
|
|
6925
|
-
S(this, "iframes", /* @__PURE__ */ new WeakMap()), S(this, "crossOriginIframeMap", /* @__PURE__ */ new WeakMap()), S(this, "crossOriginIframeMirror", new cn(
|
|
6925
|
+
S(this, "iframes", /* @__PURE__ */ new WeakMap()), S(this, "crossOriginIframeMap", /* @__PURE__ */ new WeakMap()), S(this, "crossOriginIframeMirror", new cn(Pn)), S(this, "crossOriginIframeStyleMirror"), S(this, "crossOriginIframeRootIdMap", /* @__PURE__ */ new WeakMap()), S(this, "mirror"), S(this, "mutationCb"), S(this, "wrappedEmit"), S(this, "loadListener"), S(this, "stylesheetManager"), S(this, "recordCrossOriginIframes"), this.mutationCb = e.mutationCb, this.wrappedEmit = e.wrappedEmit, this.stylesheetManager = e.stylesheetManager, this.recordCrossOriginIframes = e.recordCrossOriginIframes, this.crossOriginIframeStyleMirror = new cn(
|
|
6926
6926
|
this.stylesheetManager.styleMirror.generateId.bind(
|
|
6927
6927
|
this.stylesheetManager.styleMirror
|
|
6928
6928
|
)
|
|
@@ -7077,12 +7077,12 @@ class ed {
|
|
|
7077
7077
|
});
|
|
7078
7078
|
}
|
|
7079
7079
|
patchRootIdOnNode(e, t) {
|
|
7080
|
-
e.type !==
|
|
7080
|
+
e.type !== ya.Document && !e.rootId && (e.rootId = t), "childNodes" in e && e.childNodes.forEach((r) => {
|
|
7081
7081
|
this.patchRootIdOnNode(r, t);
|
|
7082
7082
|
});
|
|
7083
7083
|
}
|
|
7084
7084
|
}
|
|
7085
|
-
class
|
|
7085
|
+
class ed {
|
|
7086
7086
|
constructor(e) {
|
|
7087
7087
|
S(this, "shadowDoms", /* @__PURE__ */ new WeakSet()), S(this, "mutationCb"), S(this, "scrollCb"), S(this, "bypassOptions"), S(this, "mirror"), S(this, "restoreHandlers", []), this.mutationCb = e.mutationCb, this.scrollCb = e.scrollCb, this.bypassOptions = e.bypassOptions, this.mirror = e.mirror, this.init();
|
|
7088
7088
|
}
|
|
@@ -7092,7 +7092,7 @@ class td {
|
|
|
7092
7092
|
addShadowRoot(e, t) {
|
|
7093
7093
|
if (!Ke(e) || this.shadowDoms.has(e)) return;
|
|
7094
7094
|
this.shadowDoms.add(e);
|
|
7095
|
-
const r =
|
|
7095
|
+
const r = ba(
|
|
7096
7096
|
{
|
|
7097
7097
|
...this.bypassOptions,
|
|
7098
7098
|
doc: t,
|
|
@@ -7103,7 +7103,7 @@ class td {
|
|
|
7103
7103
|
e
|
|
7104
7104
|
);
|
|
7105
7105
|
this.restoreHandlers.push(() => r.disconnect()), this.restoreHandlers.push(
|
|
7106
|
-
|
|
7106
|
+
va({
|
|
7107
7107
|
...this.bypassOptions,
|
|
7108
7108
|
scrollCb: this.scrollCb,
|
|
7109
7109
|
// https://gist.github.com/praveenpuglia/0832da687ed5a5d7a0907046c9ef1813
|
|
@@ -7116,7 +7116,7 @@ class td {
|
|
|
7116
7116
|
e.adoptedStyleSheets,
|
|
7117
7117
|
this.mirror.getId(_.host(e))
|
|
7118
7118
|
), this.restoreHandlers.push(
|
|
7119
|
-
|
|
7119
|
+
Sa(
|
|
7120
7120
|
{
|
|
7121
7121
|
mirror: this.mirror,
|
|
7122
7122
|
stylesheetManager: this.bypassOptions.stylesheetManager
|
|
@@ -7147,7 +7147,7 @@ class td {
|
|
|
7147
7147
|
function(i) {
|
|
7148
7148
|
return function(n) {
|
|
7149
7149
|
const o = i.call(this, n), l = _.shadowRoot(this);
|
|
7150
|
-
return l &&
|
|
7150
|
+
return l && ga(this) && r.addShadowRoot(l, t), o;
|
|
7151
7151
|
};
|
|
7152
7152
|
}
|
|
7153
7153
|
)
|
|
@@ -7162,24 +7162,24 @@ class td {
|
|
|
7162
7162
|
}), this.restoreHandlers = [], this.shadowDoms = /* @__PURE__ */ new WeakSet();
|
|
7163
7163
|
}
|
|
7164
7164
|
}
|
|
7165
|
-
var Ne = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
|
|
7165
|
+
var Ne = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", td = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
|
7166
7166
|
for (var Bt = 0; Bt < Ne.length; Bt++)
|
|
7167
|
-
|
|
7168
|
-
var
|
|
7167
|
+
td[Ne.charCodeAt(Bt)] = Bt;
|
|
7168
|
+
var rd = function(s) {
|
|
7169
7169
|
var e = new Uint8Array(s), t, r = e.length, i = "";
|
|
7170
7170
|
for (t = 0; t < r; t += 3)
|
|
7171
7171
|
i += Ne[e[t] >> 2], i += Ne[(e[t] & 3) << 4 | e[t + 1] >> 4], i += Ne[(e[t + 1] & 15) << 2 | e[t + 2] >> 6], i += Ne[e[t + 2] & 63];
|
|
7172
7172
|
return r % 3 === 2 ? i = i.substring(0, i.length - 1) + "=" : r % 3 === 1 && (i = i.substring(0, i.length - 2) + "=="), i;
|
|
7173
7173
|
};
|
|
7174
7174
|
const hn = /* @__PURE__ */ new Map();
|
|
7175
|
-
function
|
|
7175
|
+
function sd(s, e) {
|
|
7176
7176
|
let t = hn.get(s);
|
|
7177
7177
|
return t || (t = /* @__PURE__ */ new Map(), hn.set(s, t)), t.has(e) || t.set(e, []), t.get(e);
|
|
7178
7178
|
}
|
|
7179
|
-
const
|
|
7180
|
-
if (!s || !(
|
|
7179
|
+
const Ca = (s, e, t) => {
|
|
7180
|
+
if (!s || !(xa(s, e) || typeof s == "object"))
|
|
7181
7181
|
return;
|
|
7182
|
-
const r = s.constructor.name, i =
|
|
7182
|
+
const r = s.constructor.name, i = sd(t, r);
|
|
7183
7183
|
let n = i.indexOf(s);
|
|
7184
7184
|
return n === -1 && (n = i.length, i.push(s)), n;
|
|
7185
7185
|
};
|
|
@@ -7199,7 +7199,7 @@ function Vt(s, e, t) {
|
|
|
7199
7199
|
// value instanceof SharedArrayBuffer ||
|
|
7200
7200
|
s instanceof ArrayBuffer
|
|
7201
7201
|
) {
|
|
7202
|
-
const r = s.constructor.name, i =
|
|
7202
|
+
const r = s.constructor.name, i = rd(s);
|
|
7203
7203
|
return {
|
|
7204
7204
|
rr_type: r,
|
|
7205
7205
|
base64: i
|
|
@@ -7232,8 +7232,8 @@ function Vt(s, e, t) {
|
|
|
7232
7232
|
rr_type: s.constructor.name,
|
|
7233
7233
|
args: [Vt(s.data, e, t), s.width, s.height]
|
|
7234
7234
|
};
|
|
7235
|
-
if (
|
|
7236
|
-
const r = s.constructor.name, i =
|
|
7235
|
+
if (xa(s, e) || typeof s == "object") {
|
|
7236
|
+
const r = s.constructor.name, i = Ca(s, e, t);
|
|
7237
7237
|
return {
|
|
7238
7238
|
rr_type: r,
|
|
7239
7239
|
index: i
|
|
@@ -7243,7 +7243,7 @@ function Vt(s, e, t) {
|
|
|
7243
7243
|
}
|
|
7244
7244
|
return s;
|
|
7245
7245
|
}
|
|
7246
|
-
const
|
|
7246
|
+
const _a = (s, e, t) => s.map((r) => Vt(r, e, t)), xa = (s, e) => !![
|
|
7247
7247
|
"WebGLActiveInfo",
|
|
7248
7248
|
"WebGLBuffer",
|
|
7249
7249
|
"WebGLFramebuffer",
|
|
@@ -7261,7 +7261,7 @@ const xa = (s, e, t) => s.map((r) => Vt(r, e, t)), Ia = (s, e) => !![
|
|
|
7261
7261
|
).find(
|
|
7262
7262
|
(i) => s instanceof e[i]
|
|
7263
7263
|
);
|
|
7264
|
-
function
|
|
7264
|
+
function id(s, e, t, r) {
|
|
7265
7265
|
const i = [], n = Object.getOwnPropertyNames(
|
|
7266
7266
|
e.CanvasRenderingContext2D.prototype
|
|
7267
7267
|
);
|
|
@@ -7275,7 +7275,7 @@ function nd(s, e, t, r) {
|
|
|
7275
7275
|
function(a) {
|
|
7276
7276
|
return function(...u) {
|
|
7277
7277
|
return te(this.canvas, t, r, !0) || setTimeout(() => {
|
|
7278
|
-
const c =
|
|
7278
|
+
const c = _a(u, e, this);
|
|
7279
7279
|
s(this.canvas, {
|
|
7280
7280
|
type: Be["2D"],
|
|
7281
7281
|
property: o,
|
|
@@ -7307,7 +7307,7 @@ function nd(s, e, t, r) {
|
|
|
7307
7307
|
i.forEach((o) => o());
|
|
7308
7308
|
};
|
|
7309
7309
|
}
|
|
7310
|
-
function
|
|
7310
|
+
function nd(s) {
|
|
7311
7311
|
return s === "experimental-webgl" ? "webgl" : s;
|
|
7312
7312
|
}
|
|
7313
7313
|
function fn(s, e, t, r) {
|
|
@@ -7319,7 +7319,7 @@ function fn(s, e, t, r) {
|
|
|
7319
7319
|
function(o) {
|
|
7320
7320
|
return function(l, ...a) {
|
|
7321
7321
|
if (!te(this, e, t, !0)) {
|
|
7322
|
-
const u =
|
|
7322
|
+
const u = nd(l);
|
|
7323
7323
|
if ("__context" in this || (this.__context = u), r && ["webgl", "webgl2"].includes(u))
|
|
7324
7324
|
if (a[0] && typeof a[0] == "object") {
|
|
7325
7325
|
const c = a[0];
|
|
@@ -7362,8 +7362,8 @@ function dn(s, e, t, r, i, n) {
|
|
|
7362
7362
|
function(c) {
|
|
7363
7363
|
return function(...h) {
|
|
7364
7364
|
const p = c.apply(this, h);
|
|
7365
|
-
if (
|
|
7366
|
-
const d =
|
|
7365
|
+
if (Ca(p, n, this), "tagName" in this.canvas && !te(this.canvas, r, i, !0)) {
|
|
7366
|
+
const d = _a(h, n, this), g = {
|
|
7367
7367
|
type: e,
|
|
7368
7368
|
property: a,
|
|
7369
7369
|
args: d
|
|
@@ -7390,7 +7390,7 @@ function dn(s, e, t, r, i, n) {
|
|
|
7390
7390
|
}
|
|
7391
7391
|
return o;
|
|
7392
7392
|
}
|
|
7393
|
-
function
|
|
7393
|
+
function od(s, e, t, r) {
|
|
7394
7394
|
const i = [];
|
|
7395
7395
|
return i.push(
|
|
7396
7396
|
...dn(
|
|
@@ -7414,8 +7414,8 @@ function ad(s, e, t, r) {
|
|
|
7414
7414
|
i.forEach((n) => n());
|
|
7415
7415
|
};
|
|
7416
7416
|
}
|
|
7417
|
-
const
|
|
7418
|
-
function
|
|
7417
|
+
const Ia = "KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=", ad = (s) => Uint8Array.from(atob(s), (e) => e.charCodeAt(0)), pn = typeof window < "u" && window.Blob && new Blob([ad(Ia)], { type: "text/javascript;charset=utf-8" });
|
|
7418
|
+
function ld(s) {
|
|
7419
7419
|
let e;
|
|
7420
7420
|
try {
|
|
7421
7421
|
if (e = pn && (window.URL || window.webkitURL).createObjectURL(pn), !e) throw "";
|
|
@@ -7427,7 +7427,7 @@ function ud(s) {
|
|
|
7427
7427
|
}), t;
|
|
7428
7428
|
} catch {
|
|
7429
7429
|
return new Worker(
|
|
7430
|
-
"data:text/javascript;base64," +
|
|
7430
|
+
"data:text/javascript;base64," + Ia,
|
|
7431
7431
|
{
|
|
7432
7432
|
name: s == null ? void 0 : s.name
|
|
7433
7433
|
}
|
|
@@ -7436,7 +7436,7 @@ function ud(s) {
|
|
|
7436
7436
|
e && (window.URL || window.webkitURL).revokeObjectURL(e);
|
|
7437
7437
|
}
|
|
7438
7438
|
}
|
|
7439
|
-
class
|
|
7439
|
+
class ud {
|
|
7440
7440
|
constructor(e) {
|
|
7441
7441
|
S(this, "pendingCanvasMutations", /* @__PURE__ */ new Map()), S(this, "rafStamps", { latestId: 0, invokeId: null }), S(this, "mirror"), S(this, "mutationCb"), S(this, "resetObservers"), S(this, "frozen", !1), S(this, "locked", !1), S(this, "processMutation", (a, u) => {
|
|
7442
7442
|
(this.rafStamps.invokeId && this.rafStamps.latestId !== this.rafStamps.invokeId || !this.rafStamps.invokeId) && (this.rafStamps.invokeId = this.rafStamps.latestId), this.pendingCanvasMutations.has(a) || this.pendingCanvasMutations.set(a, []), this.pendingCanvasMutations.get(a).push(u);
|
|
@@ -7474,7 +7474,7 @@ class cd {
|
|
|
7474
7474
|
r,
|
|
7475
7475
|
i,
|
|
7476
7476
|
!0
|
|
7477
|
-
), l = /* @__PURE__ */ new Map(), a = new
|
|
7477
|
+
), l = /* @__PURE__ */ new Map(), a = new ld();
|
|
7478
7478
|
a.onmessage = (g) => {
|
|
7479
7479
|
const { id: m } = g.data;
|
|
7480
7480
|
if (l.set(m, !1), !("base64" in g.data)) return;
|
|
@@ -7553,12 +7553,12 @@ class cd {
|
|
|
7553
7553
|
t,
|
|
7554
7554
|
r,
|
|
7555
7555
|
!1
|
|
7556
|
-
), n =
|
|
7556
|
+
), n = id(
|
|
7557
7557
|
this.processMutation.bind(this),
|
|
7558
7558
|
e,
|
|
7559
7559
|
t,
|
|
7560
7560
|
r
|
|
7561
|
-
), o =
|
|
7561
|
+
), o = od(
|
|
7562
7562
|
this.processMutation.bind(this),
|
|
7563
7563
|
e,
|
|
7564
7564
|
t,
|
|
@@ -7597,9 +7597,9 @@ class cd {
|
|
|
7597
7597
|
this.mutationCb({ id: t, type: n, commands: i }), this.pendingCanvasMutations.delete(e);
|
|
7598
7598
|
}
|
|
7599
7599
|
}
|
|
7600
|
-
class
|
|
7600
|
+
class cd {
|
|
7601
7601
|
constructor(e) {
|
|
7602
|
-
S(this, "trackedLinkElements", /* @__PURE__ */ new WeakSet()), S(this, "mutationCb"), S(this, "adoptedStyleSheetCb"), S(this, "styleMirror", new
|
|
7602
|
+
S(this, "trackedLinkElements", /* @__PURE__ */ new WeakSet()), S(this, "mutationCb"), S(this, "adoptedStyleSheetCb"), S(this, "styleMirror", new Of()), this.mutationCb = e.mutationCb, this.adoptedStyleSheetCb = e.adoptedStyleSheetCb;
|
|
7603
7603
|
}
|
|
7604
7604
|
attachLinkElement(e, t) {
|
|
7605
7605
|
"_cssText" in t.attributes && this.mutationCb({
|
|
@@ -7628,7 +7628,7 @@ class hd {
|
|
|
7628
7628
|
this.styleMirror.has(n) ? o = this.styleMirror.getId(n) : (o = this.styleMirror.add(n), i.push({
|
|
7629
7629
|
styleId: o,
|
|
7630
7630
|
rules: Array.from(n.rules || CSSRule, (l, a) => ({
|
|
7631
|
-
rule:
|
|
7631
|
+
rule: $n(l, n.href),
|
|
7632
7632
|
index: a
|
|
7633
7633
|
}))
|
|
7634
7634
|
})), r.styleIds.push(o);
|
|
@@ -7642,7 +7642,7 @@ class hd {
|
|
|
7642
7642
|
trackStylesheetInLinkElement(e) {
|
|
7643
7643
|
}
|
|
7644
7644
|
}
|
|
7645
|
-
class
|
|
7645
|
+
class hd {
|
|
7646
7646
|
constructor() {
|
|
7647
7647
|
S(this, "nodeMap", /* @__PURE__ */ new WeakMap()), S(this, "active", !1);
|
|
7648
7648
|
}
|
|
@@ -7667,7 +7667,7 @@ try {
|
|
|
7667
7667
|
} catch (s) {
|
|
7668
7668
|
console.debug("Unable to override Array.from", s);
|
|
7669
7669
|
}
|
|
7670
|
-
const oe =
|
|
7670
|
+
const oe = ul();
|
|
7671
7671
|
function mt(s = {}) {
|
|
7672
7672
|
const {
|
|
7673
7673
|
emit: e,
|
|
@@ -7702,7 +7702,7 @@ function mt(s = {}) {
|
|
|
7702
7702
|
ignoreCSSAttributes: je = /* @__PURE__ */ new Set([]),
|
|
7703
7703
|
errorHandler: Ge
|
|
7704
7704
|
} = s;
|
|
7705
|
-
|
|
7705
|
+
Ff(Ge);
|
|
7706
7706
|
const J = V ? window.parent === window : !0;
|
|
7707
7707
|
let se = !1;
|
|
7708
7708
|
if (!J)
|
|
@@ -7749,7 +7749,7 @@ function mt(s = {}) {
|
|
|
7749
7749
|
headMetaDescKeywords: d === "all",
|
|
7750
7750
|
headTitleMutations: d === "all"
|
|
7751
7751
|
} : d || {};
|
|
7752
|
-
|
|
7752
|
+
Af();
|
|
7753
7753
|
let ci, kr = 0;
|
|
7754
7754
|
const hi = (A) => {
|
|
7755
7755
|
for (const ne of Q || [])
|
|
@@ -7801,16 +7801,16 @@ function mt(s = {}) {
|
|
|
7801
7801
|
source: x.CanvasMutation,
|
|
7802
7802
|
...A
|
|
7803
7803
|
}
|
|
7804
|
-
}),
|
|
7804
|
+
}), Ba = (A) => G({
|
|
7805
7805
|
type: I.IncrementalSnapshot,
|
|
7806
7806
|
data: {
|
|
7807
7807
|
source: x.AdoptedStyleSheet,
|
|
7808
7808
|
...A
|
|
7809
7809
|
}
|
|
7810
|
-
}), Se = new
|
|
7810
|
+
}), Se = new cd({
|
|
7811
7811
|
mutationCb: gt,
|
|
7812
|
-
adoptedStyleSheetCb:
|
|
7813
|
-
}), Ce = new
|
|
7812
|
+
adoptedStyleSheetCb: Ba
|
|
7813
|
+
}), Ce = new qf({
|
|
7814
7814
|
mirror: oe,
|
|
7815
7815
|
mutationCb: gt,
|
|
7816
7816
|
stylesheetManager: Se,
|
|
@@ -7823,8 +7823,8 @@ function mt(s = {}) {
|
|
|
7823
7823
|
crossOriginIframeMirror: Ce.crossOriginIframeMirror,
|
|
7824
7824
|
crossOriginIframeStyleMirror: Ce.crossOriginIframeStyleMirror
|
|
7825
7825
|
});
|
|
7826
|
-
const Er = new
|
|
7827
|
-
jr = new
|
|
7826
|
+
const Er = new hd();
|
|
7827
|
+
jr = new ud({
|
|
7828
7828
|
recordCanvas: M,
|
|
7829
7829
|
mutationCb: di,
|
|
7830
7830
|
win: window,
|
|
@@ -7834,7 +7834,7 @@ function mt(s = {}) {
|
|
|
7834
7834
|
sampling: b.canvas,
|
|
7835
7835
|
dataURLOptions: y
|
|
7836
7836
|
});
|
|
7837
|
-
const yt = new
|
|
7837
|
+
const yt = new ed({
|
|
7838
7838
|
mutationCb: gt,
|
|
7839
7839
|
scrollCb: fi,
|
|
7840
7840
|
bypassOptions: {
|
|
@@ -7867,13 +7867,13 @@ function mt(s = {}) {
|
|
|
7867
7867
|
type: I.Meta,
|
|
7868
7868
|
data: {
|
|
7869
7869
|
href: window.location.href,
|
|
7870
|
-
width:
|
|
7871
|
-
height:
|
|
7870
|
+
width: ca(),
|
|
7871
|
+
height: ua()
|
|
7872
7872
|
}
|
|
7873
7873
|
},
|
|
7874
7874
|
A
|
|
7875
7875
|
), Se.reset(), yt.init(), xe.forEach((H) => H.lock());
|
|
7876
|
-
const ne =
|
|
7876
|
+
const ne = Nl(document, {
|
|
7877
7877
|
mirror: oe,
|
|
7878
7878
|
blockClass: i,
|
|
7879
7879
|
blockSelector: n,
|
|
@@ -7888,7 +7888,7 @@ function mt(s = {}) {
|
|
|
7888
7888
|
recordCanvas: M,
|
|
7889
7889
|
inlineImages: W,
|
|
7890
7890
|
onSerialize: (H) => {
|
|
7891
|
-
|
|
7891
|
+
da(H, oe) && Ce.addIframe(H), pa(H, oe) && Se.trackLinkElement(H), Is(H) && yt.addShadowRoot(_.shadowRoot(H), document);
|
|
7892
7892
|
},
|
|
7893
7893
|
onIframeLoad: (H, j) => {
|
|
7894
7894
|
Ce.attachIframe(H, j), yt.observeAttachShadow(H);
|
|
@@ -7905,7 +7905,7 @@ function mt(s = {}) {
|
|
|
7905
7905
|
type: I.FullSnapshot,
|
|
7906
7906
|
data: {
|
|
7907
7907
|
node: ne,
|
|
7908
|
-
initialOffset:
|
|
7908
|
+
initialOffset: la(window)
|
|
7909
7909
|
}
|
|
7910
7910
|
},
|
|
7911
7911
|
A
|
|
@@ -7917,7 +7917,7 @@ function mt(s = {}) {
|
|
|
7917
7917
|
try {
|
|
7918
7918
|
const A = [], ne = (j) => {
|
|
7919
7919
|
var ce;
|
|
7920
|
-
return R(
|
|
7920
|
+
return R(Qf)(
|
|
7921
7921
|
{
|
|
7922
7922
|
mutationCb: gt,
|
|
7923
7923
|
mousemoveCb: (T, Mr) => G({
|
|
@@ -8067,7 +8067,7 @@ function mt(s = {}) {
|
|
|
8067
8067
|
window
|
|
8068
8068
|
)
|
|
8069
8069
|
)), () => {
|
|
8070
|
-
A.forEach((j) => j()), Er.destroy(), cr = !1,
|
|
8070
|
+
A.forEach((j) => j()), Er.destroy(), cr = !1, Uf();
|
|
8071
8071
|
};
|
|
8072
8072
|
} catch (A) {
|
|
8073
8073
|
console.warn(A);
|
|
@@ -8097,7 +8097,7 @@ var mn;
|
|
|
8097
8097
|
(function(s) {
|
|
8098
8098
|
s[s.NotStarted = 0] = "NotStarted", s[s.Running = 1] = "Running", s[s.Stopped = 2] = "Stopped";
|
|
8099
8099
|
})(mn || (mn = {}));
|
|
8100
|
-
const
|
|
8100
|
+
const fd = [
|
|
8101
8101
|
'input[type="password"]',
|
|
8102
8102
|
'input[type="credit-card"]',
|
|
8103
8103
|
'input[autocomplete="cc-number"]',
|
|
@@ -8126,26 +8126,26 @@ const dd = [
|
|
|
8126
8126
|
"[data-mask]",
|
|
8127
8127
|
"[data-sensitive]"
|
|
8128
8128
|
];
|
|
8129
|
-
function
|
|
8130
|
-
return
|
|
8129
|
+
function dd() {
|
|
8130
|
+
return fd.join(", ");
|
|
8131
8131
|
}
|
|
8132
|
-
function
|
|
8132
|
+
function pd() {
|
|
8133
8133
|
return "[data-private-text], [data-mask-text]";
|
|
8134
8134
|
}
|
|
8135
|
-
function
|
|
8136
|
-
return s.matches(
|
|
8135
|
+
function md(s) {
|
|
8136
|
+
return s.matches(dd());
|
|
8137
8137
|
}
|
|
8138
|
-
function
|
|
8138
|
+
function gd(s) {
|
|
8139
8139
|
return s ? {
|
|
8140
8140
|
maskAllInputs: !1,
|
|
8141
8141
|
// We use selective masking
|
|
8142
|
-
maskTextSelector:
|
|
8142
|
+
maskTextSelector: pd(),
|
|
8143
8143
|
maskInputOptions: {
|
|
8144
8144
|
password: !0
|
|
8145
8145
|
// Mask inputs matching our sensitive selectors
|
|
8146
8146
|
},
|
|
8147
8147
|
// Custom mask function for input values
|
|
8148
|
-
maskInputFn: (e, t) =>
|
|
8148
|
+
maskInputFn: (e, t) => md(t) ? "*".repeat(Math.min(e.length, 20)) : e,
|
|
8149
8149
|
// Block specific elements from being recorded (including our own UI)
|
|
8150
8150
|
blockSelector: "[data-recorder-block], [data-bw-recorder-ui], #bw-recorder-root",
|
|
8151
8151
|
// Ignore specific elements
|
|
@@ -8156,12 +8156,12 @@ function yd(s) {
|
|
|
8156
8156
|
maskInputOptions: {}
|
|
8157
8157
|
};
|
|
8158
8158
|
}
|
|
8159
|
-
const
|
|
8160
|
-
class
|
|
8159
|
+
const yd = 900 * 1e3, wd = 30 * 1e3, bd = 100;
|
|
8160
|
+
class vd {
|
|
8161
8161
|
constructor(e) {
|
|
8162
8162
|
this.state = "idle", this.events = [], this.stopFn = null, this.startTime = 0, this.pauseTime = 0, this.totalPausedDuration = 0, this.chunkIndex = 0, this.maxDurationTimer = null, this.chunkTimer = null, this.uploader = null, this.metadata = null, this.onEventCallback = null, this.config = {
|
|
8163
8163
|
...e,
|
|
8164
|
-
maxDuration: e.maxDuration ??
|
|
8164
|
+
maxDuration: e.maxDuration ?? yd,
|
|
8165
8165
|
maskInputs: e.maskInputs ?? !0
|
|
8166
8166
|
};
|
|
8167
8167
|
}
|
|
@@ -8216,7 +8216,7 @@ class Sd {
|
|
|
8216
8216
|
} catch (n) {
|
|
8217
8217
|
throw (i = (r = this.config).onError) == null || i.call(r, n), this.setState("idle"), n;
|
|
8218
8218
|
}
|
|
8219
|
-
const e =
|
|
8219
|
+
const e = gd(this.config.maskInputs), t = mt({
|
|
8220
8220
|
emit: (n) => this.handleEvent(n),
|
|
8221
8221
|
maskAllInputs: e.maskAllInputs,
|
|
8222
8222
|
maskTextSelector: e.maskTextSelector ?? void 0,
|
|
@@ -8241,7 +8241,7 @@ class Sd {
|
|
|
8241
8241
|
this.stop();
|
|
8242
8242
|
}, this.config.maxDuration), this.chunkTimer = setInterval(() => {
|
|
8243
8243
|
this.flushChunk();
|
|
8244
|
-
},
|
|
8244
|
+
}, wd);
|
|
8245
8245
|
}
|
|
8246
8246
|
/**
|
|
8247
8247
|
* Pause recording
|
|
@@ -8286,7 +8286,7 @@ class Sd {
|
|
|
8286
8286
|
*/
|
|
8287
8287
|
handleEvent(e) {
|
|
8288
8288
|
var t;
|
|
8289
|
-
this.state !== "paused" && (this.events.push(e), (t = this.onEventCallback) == null || t.call(this, e), this.events.length >=
|
|
8289
|
+
this.state !== "paused" && (this.events.push(e), (t = this.onEventCallback) == null || t.call(this, e), this.events.length >= bd && this.flushChunk());
|
|
8290
8290
|
}
|
|
8291
8291
|
/**
|
|
8292
8292
|
* Flush current events as a chunk
|
|
@@ -8321,7 +8321,7 @@ class Sd {
|
|
|
8321
8321
|
this.stop(), this.state = "idle", this.events = [], this.startTime = 0, this.pauseTime = 0, this.totalPausedDuration = 0, this.chunkIndex = 0, this.metadata = null;
|
|
8322
8322
|
}
|
|
8323
8323
|
}
|
|
8324
|
-
class
|
|
8324
|
+
class Sd {
|
|
8325
8325
|
constructor() {
|
|
8326
8326
|
this.markers = [], this.recordingStartTime = 0, this.isRecording = !1, this.captureDebounceTimer = null;
|
|
8327
8327
|
}
|
|
@@ -8378,7 +8378,7 @@ class Cd {
|
|
|
8378
8378
|
this.markers = [], this.recordingStartTime = 0, this.isRecording = !1, this.captureDebounceTimer && (clearTimeout(this.captureDebounceTimer), this.captureDebounceTimer = null);
|
|
8379
8379
|
}
|
|
8380
8380
|
}
|
|
8381
|
-
class
|
|
8381
|
+
class Cd {
|
|
8382
8382
|
constructor(e) {
|
|
8383
8383
|
this.lastScrollY = 0, this.viewportHeight = 0, this.observers = [], this.isRecording = !1, this.hasInitialScreenshot = !1, this.handleScroll = () => {
|
|
8384
8384
|
if (!this.isRecording) return;
|
|
@@ -8500,7 +8500,7 @@ class _d {
|
|
|
8500
8500
|
this.stop(), document.removeEventListener("submit", this.handleFormSubmit, !0);
|
|
8501
8501
|
}
|
|
8502
8502
|
}
|
|
8503
|
-
class
|
|
8503
|
+
class _d {
|
|
8504
8504
|
constructor() {
|
|
8505
8505
|
this.recordingId = "", this.sessionToken = "", this.metadata = null, this.chunks = [], this.screenshotMarkers = [];
|
|
8506
8506
|
}
|
|
@@ -8561,7 +8561,7 @@ class xd {
|
|
|
8561
8561
|
};
|
|
8562
8562
|
}
|
|
8563
8563
|
}
|
|
8564
|
-
class
|
|
8564
|
+
class xd {
|
|
8565
8565
|
constructor(e, t) {
|
|
8566
8566
|
this.sessionToken = "", this.recordingId = "", this.apiEndpoint = e, this.apiKey = t;
|
|
8567
8567
|
}
|
|
@@ -8638,7 +8638,7 @@ class Id {
|
|
|
8638
8638
|
};
|
|
8639
8639
|
}
|
|
8640
8640
|
}
|
|
8641
|
-
var Ir, P,
|
|
8641
|
+
var Ir, P, Ra, _e, gn, ka, Ea, Ma, oi, ks, Es, ut = {}, Aa = [], Id = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Rr = Array.isArray;
|
|
8642
8642
|
function pe(s, e) {
|
|
8643
8643
|
for (var t in e) s[t] = e[t];
|
|
8644
8644
|
return s;
|
|
@@ -8646,14 +8646,14 @@ function pe(s, e) {
|
|
|
8646
8646
|
function ai(s) {
|
|
8647
8647
|
s && s.parentNode && s.parentNode.removeChild(s);
|
|
8648
8648
|
}
|
|
8649
|
-
function
|
|
8649
|
+
function Rd(s, e, t) {
|
|
8650
8650
|
var r, i, n, o = {};
|
|
8651
8651
|
for (n in e) n == "key" ? r = e[n] : n == "ref" ? i = e[n] : o[n] = e[n];
|
|
8652
8652
|
if (arguments.length > 2 && (o.children = arguments.length > 3 ? Ir.call(arguments, 2) : t), typeof s == "function" && s.defaultProps != null) for (n in s.defaultProps) o[n] === void 0 && (o[n] = s.defaultProps[n]);
|
|
8653
8653
|
return Zt(s, o, r, i, null);
|
|
8654
8654
|
}
|
|
8655
8655
|
function Zt(s, e, t, r, i) {
|
|
8656
|
-
var n = { type: s, props: e, key: t, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: i ?? ++
|
|
8656
|
+
var n = { type: s, props: e, key: t, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: i ?? ++Ra, __i: -1, __u: 0 };
|
|
8657
8657
|
return i == null && P.vnode != null && P.vnode(n), n;
|
|
8658
8658
|
}
|
|
8659
8659
|
function ze(s) {
|
|
@@ -8667,38 +8667,38 @@ function We(s, e) {
|
|
|
8667
8667
|
for (var t; e < s.__k.length; e++) if ((t = s.__k[e]) != null && t.__e != null) return t.__e;
|
|
8668
8668
|
return typeof s.type == "function" ? We(s) : null;
|
|
8669
8669
|
}
|
|
8670
|
-
function
|
|
8670
|
+
function Oa(s) {
|
|
8671
8671
|
var e, t;
|
|
8672
8672
|
if ((s = s.__) != null && s.__c != null) {
|
|
8673
8673
|
for (s.__e = s.__c.base = null, e = 0; e < s.__k.length; e++) if ((t = s.__k[e]) != null && t.__e != null) {
|
|
8674
8674
|
s.__e = s.__c.base = t.__e;
|
|
8675
8675
|
break;
|
|
8676
8676
|
}
|
|
8677
|
-
return
|
|
8677
|
+
return Oa(s);
|
|
8678
8678
|
}
|
|
8679
8679
|
}
|
|
8680
8680
|
function yn(s) {
|
|
8681
|
-
(!s.__d && (s.__d = !0) && _e.push(s) && !hr.__r++ || gn != P.debounceRendering) && ((gn = P.debounceRendering) ||
|
|
8681
|
+
(!s.__d && (s.__d = !0) && _e.push(s) && !hr.__r++ || gn != P.debounceRendering) && ((gn = P.debounceRendering) || ka)(hr);
|
|
8682
8682
|
}
|
|
8683
8683
|
function hr() {
|
|
8684
|
-
for (var s, e, t, r, i, n, o, l = 1; _e.length; ) _e.length > l && _e.sort(
|
|
8684
|
+
for (var s, e, t, r, i, n, o, l = 1; _e.length; ) _e.length > l && _e.sort(Ea), s = _e.shift(), l = _e.length, s.__d && (t = void 0, r = void 0, i = (r = (e = s).__v).__e, n = [], o = [], e.__P && ((t = pe({}, r)).__v = r.__v + 1, P.vnode && P.vnode(t), li(e.__P, t, r, e.__n, e.__P.namespaceURI, 32 & r.__u ? [i] : null, n, i ?? We(r), !!(32 & r.__u), o), t.__v = r.__v, t.__.__k[t.__i] = t, Ta(n, t, o), r.__e = r.__ = null, t.__e != i && Oa(t)));
|
|
8685
8685
|
hr.__r = 0;
|
|
8686
8686
|
}
|
|
8687
|
-
function
|
|
8688
|
-
var h, p, d, g, m, f, v, b = r && r.__k ||
|
|
8689
|
-
for (a =
|
|
8687
|
+
function $a(s, e, t, r, i, n, o, l, a, u, c) {
|
|
8688
|
+
var h, p, d, g, m, f, v, b = r && r.__k || Aa, y = e.length;
|
|
8689
|
+
for (a = kd(t, e, b, a, y), h = 0; h < y; h++) (d = t.__k[h]) != null && (p = d.__i == -1 ? ut : b[d.__i] || ut, d.__i = h, f = li(s, d, p, i, n, o, l, a, u, c), g = d.__e, d.ref && p.ref != d.ref && (p.ref && ui(p.ref, null, d), c.push(d.ref, d.__c || g, d)), m == null && g != null && (m = g), (v = !!(4 & d.__u)) || p.__k === d.__k ? a = Na(d, a, s, v) : typeof d.type == "function" && f !== void 0 ? a = f : g && (a = g.nextSibling), d.__u &= -7);
|
|
8690
8690
|
return t.__e = m, a;
|
|
8691
8691
|
}
|
|
8692
|
-
function
|
|
8692
|
+
function kd(s, e, t, r, i) {
|
|
8693
8693
|
var n, o, l, a, u, c = t.length, h = c, p = 0;
|
|
8694
|
-
for (s.__k = new Array(i), n = 0; n < i; n++) (o = e[n]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? o = s.__k[n] = Zt(null, o, null, null, null) : Rr(o) ? o = s.__k[n] = Zt(ze, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? o = s.__k[n] = Zt(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : s.__k[n] = o, a = n + p, o.__ = s, o.__b = s.__b + 1, l = null, (u = o.__i =
|
|
8695
|
-
if (h) for (n = 0; n < c; n++) (l = t[n]) != null && (2 & l.__u) == 0 && (l.__e == r && (r = We(l)),
|
|
8694
|
+
for (s.__k = new Array(i), n = 0; n < i; n++) (o = e[n]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? o = s.__k[n] = Zt(null, o, null, null, null) : Rr(o) ? o = s.__k[n] = Zt(ze, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? o = s.__k[n] = Zt(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : s.__k[n] = o, a = n + p, o.__ = s, o.__b = s.__b + 1, l = null, (u = o.__i = Ed(o, t, a, h)) != -1 && (h--, (l = t[u]) && (l.__u |= 2)), l == null || l.__v == null ? (u == -1 && (i > c ? p-- : i < c && p++), typeof o.type != "function" && (o.__u |= 4)) : u != a && (u == a - 1 ? p-- : u == a + 1 ? p++ : (u > a ? p-- : p++, o.__u |= 4))) : s.__k[n] = null;
|
|
8695
|
+
if (h) for (n = 0; n < c; n++) (l = t[n]) != null && (2 & l.__u) == 0 && (l.__e == r && (r = We(l)), Da(l, l));
|
|
8696
8696
|
return r;
|
|
8697
8697
|
}
|
|
8698
|
-
function
|
|
8698
|
+
function Na(s, e, t, r) {
|
|
8699
8699
|
var i, n;
|
|
8700
8700
|
if (typeof s.type == "function") {
|
|
8701
|
-
for (i = s.__k, n = 0; i && n < i.length; n++) i[n] && (i[n].__ = s, e =
|
|
8701
|
+
for (i = s.__k, n = 0; i && n < i.length; n++) i[n] && (i[n].__ = s, e = Na(i[n], e, t, r));
|
|
8702
8702
|
return e;
|
|
8703
8703
|
}
|
|
8704
8704
|
s.__e != e && (r && (e && s.type && !e.parentNode && (e = We(s)), t.insertBefore(s.__e, e || null)), e = s.__e);
|
|
@@ -8707,7 +8707,7 @@ function Ta(s, e, t, r) {
|
|
|
8707
8707
|
while (e != null && e.nodeType == 8);
|
|
8708
8708
|
return e;
|
|
8709
8709
|
}
|
|
8710
|
-
function
|
|
8710
|
+
function Ed(s, e, t, r) {
|
|
8711
8711
|
var i, n, o, l = s.key, a = s.type, u = e[t], c = u != null && (2 & u.__u) == 0;
|
|
8712
8712
|
if (u === null && l == null || c && l == u.key && a == u.type) return t;
|
|
8713
8713
|
if (r > (c ? 1 : 0)) {
|
|
@@ -8716,7 +8716,7 @@ function Md(s, e, t, r) {
|
|
|
8716
8716
|
return -1;
|
|
8717
8717
|
}
|
|
8718
8718
|
function wn(s, e, t) {
|
|
8719
|
-
e[0] == "-" ? s.setProperty(e, t ?? "") : s[e] = t == null ? "" : typeof t != "number" ||
|
|
8719
|
+
e[0] == "-" ? s.setProperty(e, t ?? "") : s[e] = t == null ? "" : typeof t != "number" || Id.test(e) ? t : t + "px";
|
|
8720
8720
|
}
|
|
8721
8721
|
function zt(s, e, t, r, i) {
|
|
8722
8722
|
var n, o;
|
|
@@ -8725,7 +8725,7 @@ function zt(s, e, t, r, i) {
|
|
|
8725
8725
|
if (typeof r == "string" && (s.style.cssText = r = ""), r) for (e in r) t && e in t || wn(s.style, e, "");
|
|
8726
8726
|
if (t) for (e in t) r && t[e] == r[e] || wn(s.style, e, t[e]);
|
|
8727
8727
|
}
|
|
8728
|
-
else if (e[0] == "o" && e[1] == "n") n = e != (e = e.replace(
|
|
8728
|
+
else if (e[0] == "o" && e[1] == "n") n = e != (e = e.replace(Ma, "$1")), o = e.toLowerCase(), e = o in s || e == "onFocusOut" || e == "onFocusIn" ? o.slice(2) : e.slice(2), s.l || (s.l = {}), s.l[e + n] = t, t ? r ? t.u = r.u : (t.u = oi, s.addEventListener(e, n ? Es : ks, n)) : s.removeEventListener(e, n ? Es : ks, n);
|
|
8729
8729
|
else {
|
|
8730
8730
|
if (i == "http://www.w3.org/2000/svg") e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
8731
8731
|
else if (e != "width" && e != "height" && e != "href" && e != "list" && e != "form" && e != "tabIndex" && e != "download" && e != "rowSpan" && e != "colSpan" && e != "role" && e != "popover" && e in s) try {
|
|
@@ -8751,7 +8751,7 @@ function li(s, e, t, r, i, n, o, l, a, u) {
|
|
|
8751
8751
|
if (e.constructor !== void 0) return null;
|
|
8752
8752
|
128 & t.__u && (a = !!(32 & t.__u), n = [l = e.__e = t.__e]), (c = P.__b) && c(e);
|
|
8753
8753
|
e: if (typeof W == "function") try {
|
|
8754
|
-
if (v = e.props, b = "prototype" in W && W.prototype.render, y = (c = W.contextType) && r[c.__c], C = c ? y ? y.props.value : c.__ : r, t.__c ? f = (h = e.__c = t.__c).__ = h.__E : (b ? e.__c = h = new W(v, C) : (e.__c = h = new Jt(v, C), h.constructor = W, h.render =
|
|
8754
|
+
if (v = e.props, b = "prototype" in W && W.prototype.render, y = (c = W.contextType) && r[c.__c], C = c ? y ? y.props.value : c.__ : r, t.__c ? f = (h = e.__c = t.__c).__ = h.__E : (b ? e.__c = h = new W(v, C) : (e.__c = h = new Jt(v, C), h.constructor = W, h.render = Ad), y && y.sub(h), h.state || (h.state = {}), h.__n = r, p = h.__d = !0, h.__h = [], h._sb = []), b && h.__s == null && (h.__s = h.state), b && W.getDerivedStateFromProps != null && (h.__s == h.state && (h.__s = pe({}, h.__s)), pe(h.__s, W.getDerivedStateFromProps(v, h.__s))), d = h.props, g = h.state, h.__v = e, p) b && W.getDerivedStateFromProps == null && h.componentWillMount != null && h.componentWillMount(), b && h.componentDidMount != null && h.__h.push(h.componentDidMount);
|
|
8755
8755
|
else {
|
|
8756
8756
|
if (b && W.getDerivedStateFromProps == null && v !== d && h.componentWillReceiveProps != null && h.componentWillReceiveProps(v, C), e.__v == t.__v || !h.__e && h.shouldComponentUpdate != null && h.shouldComponentUpdate(v, h.__s, C) === !1) {
|
|
8757
8757
|
for (e.__v != t.__v && (h.props = v, h.state = h.__s, h.__d = !1), e.__e = t.__e, e.__k = t.__k, e.__k.some(function(Q) {
|
|
@@ -8770,7 +8770,7 @@ function li(s, e, t, r, i, n, o, l, a, u) {
|
|
|
8770
8770
|
} else do
|
|
8771
8771
|
h.__d = !1, M && M(e), c = h.render(h.props, h.state, h.context), h.state = h.__s;
|
|
8772
8772
|
while (h.__d && ++V < 25);
|
|
8773
|
-
h.state = h.__s, h.getChildContext != null && (r = pe(pe({}, r), h.getChildContext())), b && !p && h.getSnapshotBeforeUpdate != null && (m = h.getSnapshotBeforeUpdate(d, g)), D = c, c != null && c.type === ze && c.key == null && (D =
|
|
8773
|
+
h.state = h.__s, h.getChildContext != null && (r = pe(pe({}, r), h.getChildContext())), b && !p && h.getSnapshotBeforeUpdate != null && (m = h.getSnapshotBeforeUpdate(d, g)), D = c, c != null && c.type === ze && c.key == null && (D = Pa(c.props.children)), l = $a(s, Rr(D) ? D : [D], e, t, r, i, n, o, l, a, u), h.base = e.__e, e.__u &= -161, h.__h.length && o.push(h), f && (h.__E = h.__ = null);
|
|
8774
8774
|
} catch (Q) {
|
|
8775
8775
|
if (e.__v = null, a || n != null) if (Q.then) {
|
|
8776
8776
|
for (e.__u |= a ? 160 : 128; l && l.nodeType == 8 && l.nextSibling; ) l = l.nextSibling;
|
|
@@ -8782,13 +8782,13 @@ function li(s, e, t, r, i, n, o, l, a, u) {
|
|
|
8782
8782
|
else e.__e = t.__e, e.__k = t.__k, Q.then || Ms(e);
|
|
8783
8783
|
P.__e(Q, e, t);
|
|
8784
8784
|
}
|
|
8785
|
-
else n == null && e.__v == t.__v ? (e.__k = t.__k, e.__e = t.__e) : l = e.__e =
|
|
8785
|
+
else n == null && e.__v == t.__v ? (e.__k = t.__k, e.__e = t.__e) : l = e.__e = Md(t.__e, e, t, r, i, n, o, a, u);
|
|
8786
8786
|
return (c = P.diffed) && c(e), 128 & e.__u ? void 0 : l;
|
|
8787
8787
|
}
|
|
8788
8788
|
function Ms(s) {
|
|
8789
8789
|
s && s.__c && (s.__c.__e = !0), s && s.__k && s.__k.forEach(Ms);
|
|
8790
8790
|
}
|
|
8791
|
-
function
|
|
8791
|
+
function Ta(s, e, t) {
|
|
8792
8792
|
for (var r = 0; r < t.length; r++) ui(t[r], t[++r], t[++r]);
|
|
8793
8793
|
P.__c && P.__c(e, s), s.some(function(i) {
|
|
8794
8794
|
try {
|
|
@@ -8800,10 +8800,10 @@ function Pa(s, e, t) {
|
|
|
8800
8800
|
}
|
|
8801
8801
|
});
|
|
8802
8802
|
}
|
|
8803
|
-
function
|
|
8804
|
-
return typeof s != "object" || s == null || s.__b && s.__b > 0 ? s : Rr(s) ? s.map(
|
|
8803
|
+
function Pa(s) {
|
|
8804
|
+
return typeof s != "object" || s == null || s.__b && s.__b > 0 ? s : Rr(s) ? s.map(Pa) : pe({}, s);
|
|
8805
8805
|
}
|
|
8806
|
-
function
|
|
8806
|
+
function Md(s, e, t, r, i, n, o, l, a) {
|
|
8807
8807
|
var u, c, h, p, d, g, m, f = t.props || ut, v = e.props, b = e.type;
|
|
8808
8808
|
if (b == "svg" ? i = "http://www.w3.org/2000/svg" : b == "math" ? i = "http://www.w3.org/1998/Math/MathML" : i || (i = "http://www.w3.org/1999/xhtml"), n != null) {
|
|
8809
8809
|
for (u = 0; u < n.length; u++) if ((d = n[u]) && "setAttribute" in d == !!b && (b ? d.localName == b : d.nodeType == 3)) {
|
|
@@ -8827,7 +8827,7 @@ function Ad(s, e, t, r, i, n, o, l, a) {
|
|
|
8827
8827
|
}
|
|
8828
8828
|
for (u in v) d = v[u], u == "children" ? p = d : u == "dangerouslySetInnerHTML" ? c = d : u == "value" ? g = d : u == "checked" ? m = d : l && typeof d != "function" || f[u] === d || zt(s, u, d, f[u], i);
|
|
8829
8829
|
if (c) l || h && (c.__html == h.__html || c.__html == s.innerHTML) || (s.innerHTML = c.__html), e.__k = [];
|
|
8830
|
-
else if (h && (s.innerHTML = ""),
|
|
8830
|
+
else if (h && (s.innerHTML = ""), $a(e.type == "template" ? s.content : s, Rr(p) ? p : [p], e, t, r, b == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, n, o, n ? n[0] : t.__k && We(t, 0), l, a), n != null) for (u = n.length; u--; ) ai(n[u]);
|
|
8831
8831
|
l || (u = "value", b == "progress" && g == null ? s.removeAttribute("value") : g != null && (g !== s[u] || b == "progress" && !g || b == "option" && g != f[u]) && zt(s, u, g, f[u], i), u = "checked", m != null && m != s[u] && zt(s, u, m, f[u], i));
|
|
8832
8832
|
}
|
|
8833
8833
|
return s;
|
|
@@ -8842,7 +8842,7 @@ function ui(s, e, t) {
|
|
|
8842
8842
|
P.__e(i, t);
|
|
8843
8843
|
}
|
|
8844
8844
|
}
|
|
8845
|
-
function
|
|
8845
|
+
function Da(s, e, t) {
|
|
8846
8846
|
var r, i;
|
|
8847
8847
|
if (P.unmount && P.unmount(s), (r = s.ref) && (r.current && r.current != s.__e || ui(r, null, e)), (r = s.__c) != null) {
|
|
8848
8848
|
if (r.componentWillUnmount) try {
|
|
@@ -8852,41 +8852,41 @@ function La(s, e, t) {
|
|
|
8852
8852
|
}
|
|
8853
8853
|
r.base = r.__P = null;
|
|
8854
8854
|
}
|
|
8855
|
-
if (r = s.__k) for (i = 0; i < r.length; i++) r[i] &&
|
|
8855
|
+
if (r = s.__k) for (i = 0; i < r.length; i++) r[i] && Da(r[i], e, t || typeof s.type != "function");
|
|
8856
8856
|
t || ai(s.__e), s.__c = s.__ = s.__e = void 0;
|
|
8857
8857
|
}
|
|
8858
|
-
function
|
|
8858
|
+
function Ad(s, e, t) {
|
|
8859
8859
|
return this.constructor(s, t);
|
|
8860
8860
|
}
|
|
8861
8861
|
function fr(s, e, t) {
|
|
8862
8862
|
var r, i, n, o;
|
|
8863
|
-
e == document && (e = document.documentElement), P.__ && P.__(s, e), i = (r = !1) ? null : e.__k, n = [], o = [], li(e, s = e.__k =
|
|
8863
|
+
e == document && (e = document.documentElement), P.__ && P.__(s, e), i = (r = !1) ? null : e.__k, n = [], o = [], li(e, s = e.__k = Rd(ze, null, [s]), i || ut, ut, e.namespaceURI, i ? null : e.firstChild ? Ir.call(e.childNodes) : null, n, i ? i.__e : e.firstChild, r, o), Ta(n, s, o);
|
|
8864
8864
|
}
|
|
8865
|
-
Ir =
|
|
8865
|
+
Ir = Aa.slice, P = { __e: function(s, e, t, r) {
|
|
8866
8866
|
for (var i, n, o; e = e.__; ) if ((i = e.__c) && !i.__) try {
|
|
8867
8867
|
if ((n = i.constructor) && n.getDerivedStateFromError != null && (i.setState(n.getDerivedStateFromError(s)), o = i.__d), i.componentDidCatch != null && (i.componentDidCatch(s, r || {}), o = i.__d), o) return i.__E = i;
|
|
8868
8868
|
} catch (l) {
|
|
8869
8869
|
s = l;
|
|
8870
8870
|
}
|
|
8871
8871
|
throw s;
|
|
8872
|
-
} },
|
|
8872
|
+
} }, Ra = 0, Jt.prototype.setState = function(s, e) {
|
|
8873
8873
|
var t;
|
|
8874
8874
|
t = this.__s != null && this.__s != this.state ? this.__s : this.__s = pe({}, this.state), typeof s == "function" && (s = s(pe({}, t), this.props)), s && pe(t, s), s != null && this.__v && (e && this._sb.push(e), yn(this));
|
|
8875
8875
|
}, Jt.prototype.forceUpdate = function(s) {
|
|
8876
8876
|
this.__v && (this.__e = !0, s && this.__h.push(s), yn(this));
|
|
8877
|
-
}, Jt.prototype.render = ze, _e = [],
|
|
8877
|
+
}, Jt.prototype.render = ze, _e = [], ka = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Ea = function(s, e) {
|
|
8878
8878
|
return s.__v.__b - e.__v.__b;
|
|
8879
|
-
}, hr.__r = 0,
|
|
8880
|
-
var
|
|
8879
|
+
}, hr.__r = 0, Ma = /(PointerCapture)$|Capture$/i, oi = 0, ks = bn(!1), Es = bn(!0);
|
|
8880
|
+
var Od = 0;
|
|
8881
8881
|
function w(s, e, t, r, i, n) {
|
|
8882
8882
|
e || (e = {});
|
|
8883
8883
|
var o, l, a = e;
|
|
8884
8884
|
if ("ref" in a) for (l in a = {}, e) l == "ref" ? o = e[l] : a[l] = e[l];
|
|
8885
|
-
var u = { type: s, props: a, key: t, ref: o, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v:
|
|
8885
|
+
var u = { type: s, props: a, key: t, ref: o, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Od, __i: -1, __u: 0, __source: i, __self: n };
|
|
8886
8886
|
if (typeof s == "function" && (o = s.defaultProps)) for (l in o) a[l] === void 0 && (a[l] = o[l]);
|
|
8887
8887
|
return P.vnode && P.vnode(u), u;
|
|
8888
8888
|
}
|
|
8889
|
-
const As = "bw-recorder-styles",
|
|
8889
|
+
const As = "bw-recorder-styles", $d = `
|
|
8890
8890
|
.bw-recorder-toolbar {
|
|
8891
8891
|
--bw-cream: #FAF7F2;
|
|
8892
8892
|
--bw-cream-dim: #F0EBE0;
|
|
@@ -9269,28 +9269,28 @@ const As = "bw-recorder-styles", Nd = `
|
|
|
9269
9269
|
}
|
|
9270
9270
|
`;
|
|
9271
9271
|
let Xt = !1;
|
|
9272
|
-
function
|
|
9272
|
+
function La() {
|
|
9273
9273
|
if (Xt || typeof document > "u") return;
|
|
9274
9274
|
if (document.getElementById(As)) {
|
|
9275
9275
|
Xt = !0;
|
|
9276
9276
|
return;
|
|
9277
9277
|
}
|
|
9278
9278
|
const s = document.createElement("style");
|
|
9279
|
-
s.id = As, s.textContent =
|
|
9279
|
+
s.id = As, s.textContent = $d, document.head.appendChild(s), Xt = !0;
|
|
9280
9280
|
}
|
|
9281
|
-
function
|
|
9281
|
+
function Nd() {
|
|
9282
9282
|
const s = document.getElementById(As);
|
|
9283
9283
|
s && (s.remove(), Xt = !1);
|
|
9284
9284
|
}
|
|
9285
|
-
const
|
|
9285
|
+
const Td = () => /* @__PURE__ */ w("svg", { viewBox: "0 0 24 24", fill: "currentColor", stroke: "none", children: /* @__PURE__ */ w("path", { d: "M8 5v14l11-7z" }) }), Pd = () => /* @__PURE__ */ w("svg", { viewBox: "0 0 24 24", fill: "currentColor", stroke: "none", children: /* @__PURE__ */ w("path", { d: "M6 4h4v16H6V4zm8 0h4v16h-4V4z" }) }), Dd = () => /* @__PURE__ */ w("svg", { viewBox: "0 0 24 24", fill: "currentColor", stroke: "none", children: /* @__PURE__ */ w("path", { d: "M6 6h12v12H6z" }) }), Ld = () => /* @__PURE__ */ w("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", children: [
|
|
9286
9286
|
/* @__PURE__ */ w("path", { d: "M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z" }),
|
|
9287
9287
|
/* @__PURE__ */ w("circle", { cx: "12", cy: "13", r: "4" })
|
|
9288
|
-
] }),
|
|
9289
|
-
function
|
|
9288
|
+
] }), Fd = () => /* @__PURE__ */ w("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", children: /* @__PURE__ */ w("path", { d: "M20 6L9 17l-5-5" }) }), Ud = () => /* @__PURE__ */ w("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", class: "bw-spin", children: /* @__PURE__ */ w("path", { d: "M12 2v4m0 12v4m10-10h-4M6 12H2m15.07-5.07l-2.83 2.83M9.76 14.24l-2.83 2.83m11.14 0l-2.83-2.83M9.76 9.76L6.93 6.93" }) });
|
|
9289
|
+
function Bd(s) {
|
|
9290
9290
|
const e = Math.floor(s / 1e3), t = Math.floor(e / 60), r = e % 60;
|
|
9291
9291
|
return `${t.toString().padStart(2, "0")}:${r.toString().padStart(2, "0")}`;
|
|
9292
9292
|
}
|
|
9293
|
-
function
|
|
9293
|
+
function zd({
|
|
9294
9294
|
position: s,
|
|
9295
9295
|
state: e,
|
|
9296
9296
|
elapsedTime: t,
|
|
@@ -9322,7 +9322,7 @@ function Wd({
|
|
|
9322
9322
|
class: `bw-recorder-toolbar ${s}`,
|
|
9323
9323
|
"data-bw-recorder-ui": !0,
|
|
9324
9324
|
children: /* @__PURE__ */ w("div", { class: "bw-toolbar-complete", children: [
|
|
9325
|
-
/* @__PURE__ */ w("span", { class: "bw-complete-icon", children: /* @__PURE__ */ w(
|
|
9325
|
+
/* @__PURE__ */ w("span", { class: "bw-complete-icon", children: /* @__PURE__ */ w(Fd, {}) }),
|
|
9326
9326
|
/* @__PURE__ */ w("span", { class: "bw-complete-text", children: [
|
|
9327
9327
|
"Recording saved!",
|
|
9328
9328
|
" ",
|
|
@@ -9339,7 +9339,7 @@ function Wd({
|
|
|
9339
9339
|
class: `bw-recorder-toolbar ${s}`,
|
|
9340
9340
|
"data-bw-recorder-ui": !0,
|
|
9341
9341
|
children: /* @__PURE__ */ w("div", { class: "bw-toolbar-complete", children: [
|
|
9342
|
-
/* @__PURE__ */ w("span", { class: "bw-complete-icon bw-saving", children: /* @__PURE__ */ w(
|
|
9342
|
+
/* @__PURE__ */ w("span", { class: "bw-complete-icon bw-saving", children: /* @__PURE__ */ w(Ud, {}) }),
|
|
9343
9343
|
/* @__PURE__ */ w("span", { class: "bw-complete-text", children: "Saving..." })
|
|
9344
9344
|
] })
|
|
9345
9345
|
}
|
|
@@ -9359,7 +9359,7 @@ function Wd({
|
|
|
9359
9359
|
}
|
|
9360
9360
|
),
|
|
9361
9361
|
/* @__PURE__ */ w("span", { class: "bw-status-text", children: c ? "Recording" : "Paused" }),
|
|
9362
|
-
/* @__PURE__ */ w("span", { class: "bw-status-time", children:
|
|
9362
|
+
/* @__PURE__ */ w("span", { class: "bw-status-time", children: Bd(t) })
|
|
9363
9363
|
] }),
|
|
9364
9364
|
/* @__PURE__ */ w(
|
|
9365
9365
|
"button",
|
|
@@ -9368,7 +9368,7 @@ function Wd({
|
|
|
9368
9368
|
onClick: c ? n : o,
|
|
9369
9369
|
title: c ? "Pause" : "Resume",
|
|
9370
9370
|
type: "button",
|
|
9371
|
-
children: c ? /* @__PURE__ */ w(
|
|
9371
|
+
children: c ? /* @__PURE__ */ w(Pd, {}) : /* @__PURE__ */ w(Td, {})
|
|
9372
9372
|
}
|
|
9373
9373
|
),
|
|
9374
9374
|
/* @__PURE__ */ w(
|
|
@@ -9378,7 +9378,7 @@ function Wd({
|
|
|
9378
9378
|
onClick: l,
|
|
9379
9379
|
title: "Stop Recording",
|
|
9380
9380
|
type: "button",
|
|
9381
|
-
children: /* @__PURE__ */ w(
|
|
9381
|
+
children: /* @__PURE__ */ w(Dd, {})
|
|
9382
9382
|
}
|
|
9383
9383
|
),
|
|
9384
9384
|
/* @__PURE__ */ w("div", { class: "bw-toolbar-divider" }),
|
|
@@ -9390,7 +9390,7 @@ function Wd({
|
|
|
9390
9390
|
title: "Take Screenshot",
|
|
9391
9391
|
disabled: !c,
|
|
9392
9392
|
type: "button",
|
|
9393
|
-
children: /* @__PURE__ */ w(
|
|
9393
|
+
children: /* @__PURE__ */ w(Ld, {})
|
|
9394
9394
|
}
|
|
9395
9395
|
),
|
|
9396
9396
|
/* @__PURE__ */ w("div", { class: "bw-toolbar-divider" }),
|
|
@@ -9399,7 +9399,7 @@ function Wd({
|
|
|
9399
9399
|
}
|
|
9400
9400
|
);
|
|
9401
9401
|
}
|
|
9402
|
-
class
|
|
9402
|
+
class Wd {
|
|
9403
9403
|
constructor(e = "bottom-right") {
|
|
9404
9404
|
this.container = null, this.state = "idle", this.elapsedTime = 0, this.result = null, this.updateInterval = null, this.getElapsedTime = null, this.onStartCallback = null, this.onPauseCallback = null, this.onResumeCallback = null, this.onStopCallback = null, this.onScreenshotCallback = null, this.onRestartCallback = null, this.position = e;
|
|
9405
9405
|
}
|
|
@@ -9407,13 +9407,13 @@ class Hd {
|
|
|
9407
9407
|
* Mount the toolbar to the DOM
|
|
9408
9408
|
*/
|
|
9409
9409
|
mount() {
|
|
9410
|
-
this.container || (
|
|
9410
|
+
this.container || (La(), this.container = document.createElement("div"), this.container.id = "bw-recorder-root", this.container.setAttribute("data-bw-recorder-ui", ""), document.body.appendChild(this.container), this.render());
|
|
9411
9411
|
}
|
|
9412
9412
|
/**
|
|
9413
9413
|
* Unmount the toolbar from the DOM
|
|
9414
9414
|
*/
|
|
9415
9415
|
unmount() {
|
|
9416
|
-
this.updateInterval && (clearInterval(this.updateInterval), this.updateInterval = null), this.container && (fr(null, this.container), this.container.remove(), this.container = null),
|
|
9416
|
+
this.updateInterval && (clearInterval(this.updateInterval), this.updateInterval = null), this.container && (fr(null, this.container), this.container.remove(), this.container = null), Nd();
|
|
9417
9417
|
}
|
|
9418
9418
|
/**
|
|
9419
9419
|
* Set callbacks
|
|
@@ -9459,7 +9459,7 @@ class Hd {
|
|
|
9459
9459
|
render() {
|
|
9460
9460
|
this.container && fr(
|
|
9461
9461
|
/* @__PURE__ */ w(
|
|
9462
|
-
|
|
9462
|
+
zd,
|
|
9463
9463
|
{
|
|
9464
9464
|
position: this.position,
|
|
9465
9465
|
state: this.state,
|
|
@@ -9495,18 +9495,18 @@ class Hd {
|
|
|
9495
9495
|
);
|
|
9496
9496
|
}
|
|
9497
9497
|
}
|
|
9498
|
-
var Os, Z, Gr, vn, $s = 0,
|
|
9499
|
-
function
|
|
9498
|
+
var Os, Z, Gr, vn, $s = 0, Fa = [], X = P, Sn = X.__b, Cn = X.__r, _n = X.diffed, xn = X.__c, In = X.unmount, Rn = X.__;
|
|
9499
|
+
function Hd(s, e) {
|
|
9500
9500
|
X.__h && X.__h(Z, s, $s || e), $s = 0;
|
|
9501
9501
|
var t = Z.__H || (Z.__H = { __: [], __h: [] });
|
|
9502
9502
|
return s >= t.__.length && t.__.push({}), t.__[s];
|
|
9503
9503
|
}
|
|
9504
9504
|
function Vr(s) {
|
|
9505
|
-
return $s = 1,
|
|
9505
|
+
return $s = 1, jd(Ua, s);
|
|
9506
9506
|
}
|
|
9507
|
-
function
|
|
9508
|
-
var r =
|
|
9509
|
-
if (r.t = s, !r.__c && (r.__ = [
|
|
9507
|
+
function jd(s, e, t) {
|
|
9508
|
+
var r = Hd(Os++, 2);
|
|
9509
|
+
if (r.t = s, !r.__c && (r.__ = [Ua(void 0, e), function(l) {
|
|
9510
9510
|
var a = r.__N ? r.__N[0] : r.__[0], u = r.t(a, l);
|
|
9511
9511
|
a !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
|
|
9512
9512
|
}], r.__c = Z, !Z.__f)) {
|
|
@@ -9538,8 +9538,8 @@ function Gd(s, e, t) {
|
|
|
9538
9538
|
}
|
|
9539
9539
|
return r.__N || r.__;
|
|
9540
9540
|
}
|
|
9541
|
-
function
|
|
9542
|
-
for (var s; s =
|
|
9541
|
+
function Gd() {
|
|
9542
|
+
for (var s; s = Fa.shift(); ) if (s.__P && s.__H) try {
|
|
9543
9543
|
s.__H.__h.forEach(Kt), s.__H.__h.forEach(Ns), s.__H.__h = [];
|
|
9544
9544
|
} catch (e) {
|
|
9545
9545
|
s.__H.__h = [], X.__e(e, s.__v);
|
|
@@ -9558,7 +9558,7 @@ X.__b = function(s) {
|
|
|
9558
9558
|
}, X.diffed = function(s) {
|
|
9559
9559
|
_n && _n(s);
|
|
9560
9560
|
var e = s.__c;
|
|
9561
|
-
e && e.__H && (e.__H.__h.length && (
|
|
9561
|
+
e && e.__H && (e.__H.__h.length && (Fa.push(e) !== 1 && vn === X.requestAnimationFrame || ((vn = X.requestAnimationFrame) || Vd)(Gd)), e.__H.__.forEach(function(t) {
|
|
9562
9562
|
t.u && (t.__H = t.u), t.u = void 0;
|
|
9563
9563
|
})), Gr = Z = null;
|
|
9564
9564
|
}, X.__c = function(s, e) {
|
|
@@ -9585,7 +9585,7 @@ X.__b = function(s) {
|
|
|
9585
9585
|
}), t.__H = void 0, e && X.__e(e, t.__v));
|
|
9586
9586
|
};
|
|
9587
9587
|
var kn = typeof requestAnimationFrame == "function";
|
|
9588
|
-
function
|
|
9588
|
+
function Vd(s) {
|
|
9589
9589
|
var e, t = function() {
|
|
9590
9590
|
clearTimeout(r), kn && cancelAnimationFrame(e), setTimeout(s);
|
|
9591
9591
|
}, r = setTimeout(t, 35);
|
|
@@ -9599,10 +9599,10 @@ function Ns(s) {
|
|
|
9599
9599
|
var e = Z;
|
|
9600
9600
|
s.__c = s.__(), Z = e;
|
|
9601
9601
|
}
|
|
9602
|
-
function
|
|
9602
|
+
function Ua(s, e) {
|
|
9603
9603
|
return typeof e == "function" ? e(s) : e;
|
|
9604
9604
|
}
|
|
9605
|
-
const dr = "bw_invite_completed",
|
|
9605
|
+
const dr = "bw_invite_completed", Yd = () => /* @__PURE__ */ w(
|
|
9606
9606
|
"svg",
|
|
9607
9607
|
{
|
|
9608
9608
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9620,7 +9620,7 @@ const dr = "bw_invite_completed", Zd = () => /* @__PURE__ */ w(
|
|
|
9620
9620
|
/* @__PURE__ */ w("path", { d: "m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5" })
|
|
9621
9621
|
]
|
|
9622
9622
|
}
|
|
9623
|
-
),
|
|
9623
|
+
), Zd = () => /* @__PURE__ */ w(
|
|
9624
9624
|
"svg",
|
|
9625
9625
|
{
|
|
9626
9626
|
viewBox: "0 0 24 24",
|
|
@@ -9634,7 +9634,7 @@ const dr = "bw_invite_completed", Zd = () => /* @__PURE__ */ w(
|
|
|
9634
9634
|
/* @__PURE__ */ w("circle", { cx: "12", cy: "12", r: "3" })
|
|
9635
9635
|
]
|
|
9636
9636
|
}
|
|
9637
|
-
),
|
|
9637
|
+
), Jd = () => /* @__PURE__ */ w(
|
|
9638
9638
|
"svg",
|
|
9639
9639
|
{
|
|
9640
9640
|
viewBox: "0 0 24 24",
|
|
@@ -9648,7 +9648,7 @@ const dr = "bw_invite_completed", Zd = () => /* @__PURE__ */ w(
|
|
|
9648
9648
|
/* @__PURE__ */ w("line", { x1: "1", y1: "1", x2: "23", y2: "23" })
|
|
9649
9649
|
]
|
|
9650
9650
|
}
|
|
9651
|
-
),
|
|
9651
|
+
), Xd = () => /* @__PURE__ */ w(
|
|
9652
9652
|
"svg",
|
|
9653
9653
|
{
|
|
9654
9654
|
viewBox: "0 0 24 24",
|
|
@@ -9662,7 +9662,7 @@ const dr = "bw_invite_completed", Zd = () => /* @__PURE__ */ w(
|
|
|
9662
9662
|
/* @__PURE__ */ w("polyline", { points: "22 4 12 14.01 9 11.01" })
|
|
9663
9663
|
]
|
|
9664
9664
|
}
|
|
9665
|
-
),
|
|
9665
|
+
), Kd = () => /* @__PURE__ */ w(
|
|
9666
9666
|
"svg",
|
|
9667
9667
|
{
|
|
9668
9668
|
viewBox: "0 0 24 24",
|
|
@@ -9673,7 +9673,7 @@ const dr = "bw_invite_completed", Zd = () => /* @__PURE__ */ w(
|
|
|
9673
9673
|
children: /* @__PURE__ */ w("path", { d: "M12 2v4m0 12v4m10-10h-4M6 12H2m15.07-5.07l-2.83 2.83M9.76 14.24l-2.83 2.83m11.14 0l-2.83-2.83M9.76 9.76L6.93 6.93" })
|
|
9674
9674
|
}
|
|
9675
9675
|
);
|
|
9676
|
-
function
|
|
9676
|
+
function Qd({ email: s, onComplete: e, onLogin: t }) {
|
|
9677
9677
|
const [r, i] = Vr("form"), [n, o] = Vr(""), [l, a] = Vr(!1), u = (h) => {
|
|
9678
9678
|
h.preventDefault(), n.trim() && (i("loading"), setTimeout(() => {
|
|
9679
9679
|
i("success"), localStorage.setItem(
|
|
@@ -9690,11 +9690,11 @@ function qd({ email: s, onComplete: e, onLogin: t }) {
|
|
|
9690
9690
|
), t();
|
|
9691
9691
|
};
|
|
9692
9692
|
return /* @__PURE__ */ w("div", { class: "bw-invite-overlay", "data-bw-launchkit-ui": !0, children: /* @__PURE__ */ w("div", { class: "bw-invite-dialog", children: r === "success" ? /* @__PURE__ */ w("div", { class: "bw-invite-success", children: [
|
|
9693
|
-
/* @__PURE__ */ w("div", { class: "bw-invite-success-icon", children: /* @__PURE__ */ w(
|
|
9693
|
+
/* @__PURE__ */ w("div", { class: "bw-invite-success-icon", children: /* @__PURE__ */ w(Xd, {}) }),
|
|
9694
9694
|
/* @__PURE__ */ w("h2", { class: "bw-invite-success-title", children: "You're in!" }),
|
|
9695
9695
|
/* @__PURE__ */ w("p", { class: "bw-invite-success-text", children: "Welcome aboard." })
|
|
9696
9696
|
] }) : /* @__PURE__ */ w(ze, { children: [
|
|
9697
|
-
/* @__PURE__ */ w("div", { class: "bw-invite-logo", children: /* @__PURE__ */ w(
|
|
9697
|
+
/* @__PURE__ */ w("div", { class: "bw-invite-logo", children: /* @__PURE__ */ w(Yd, {}) }),
|
|
9698
9698
|
/* @__PURE__ */ w("h2", { class: "bw-invite-title", children: "Welcome" }),
|
|
9699
9699
|
/* @__PURE__ */ w("p", { class: "bw-invite-subtitle", children: "You've been invited. Set a password to continue." }),
|
|
9700
9700
|
/* @__PURE__ */ w("form", { class: "bw-invite-form", onSubmit: u, children: [
|
|
@@ -9728,7 +9728,7 @@ function qd({ email: s, onComplete: e, onLogin: t }) {
|
|
|
9728
9728
|
class: "bw-invite-eye-btn",
|
|
9729
9729
|
onClick: () => a(!l),
|
|
9730
9730
|
tabIndex: -1,
|
|
9731
|
-
children: l ? /* @__PURE__ */ w(
|
|
9731
|
+
children: l ? /* @__PURE__ */ w(Jd, {}) : /* @__PURE__ */ w(Zd, {})
|
|
9732
9732
|
}
|
|
9733
9733
|
)
|
|
9734
9734
|
] }),
|
|
@@ -9739,7 +9739,7 @@ function qd({ email: s, onComplete: e, onLogin: t }) {
|
|
|
9739
9739
|
class: "bw-invite-submit",
|
|
9740
9740
|
disabled: r === "loading" || !n.trim(),
|
|
9741
9741
|
children: r === "loading" ? /* @__PURE__ */ w(ze, { children: [
|
|
9742
|
-
/* @__PURE__ */ w(
|
|
9742
|
+
/* @__PURE__ */ w(Kd, {}),
|
|
9743
9743
|
/* @__PURE__ */ w("span", { children: "Setting up..." })
|
|
9744
9744
|
] }) : "Continue"
|
|
9745
9745
|
}
|
|
@@ -9778,7 +9778,7 @@ class En {
|
|
|
9778
9778
|
* Mount the dialog to the DOM
|
|
9779
9779
|
*/
|
|
9780
9780
|
mount() {
|
|
9781
|
-
this.container || (
|
|
9781
|
+
this.container || (La(), this.container = document.createElement("div"), this.container.id = "bw-invite-root", this.container.setAttribute("data-bw-launchkit-ui", ""), document.body.appendChild(this.container), this.render());
|
|
9782
9782
|
}
|
|
9783
9783
|
/**
|
|
9784
9784
|
* Unmount the dialog from the DOM
|
|
@@ -9798,7 +9798,7 @@ class En {
|
|
|
9798
9798
|
render() {
|
|
9799
9799
|
this.container && fr(
|
|
9800
9800
|
/* @__PURE__ */ w(
|
|
9801
|
-
|
|
9801
|
+
Qd,
|
|
9802
9802
|
{
|
|
9803
9803
|
email: this.email,
|
|
9804
9804
|
onComplete: this.handleComplete,
|
|
@@ -9809,7 +9809,7 @@ class En {
|
|
|
9809
9809
|
);
|
|
9810
9810
|
}
|
|
9811
9811
|
}
|
|
9812
|
-
class
|
|
9812
|
+
class qd {
|
|
9813
9813
|
constructor(e) {
|
|
9814
9814
|
this.toolbar = null, this.isInitialized = !1;
|
|
9815
9815
|
const t = e.onStateChange;
|
|
@@ -9826,8 +9826,8 @@ class ep {
|
|
|
9826
9826
|
onStateChange: (n) => {
|
|
9827
9827
|
this.handleStateChange(n), t == null || t(n);
|
|
9828
9828
|
}
|
|
9829
|
-
}, this.recorder = new
|
|
9830
|
-
const i = this.config.apiEndpoint && this.config.apiEndpoint !== "https://api.bworlds.com" ? new
|
|
9829
|
+
}, this.recorder = new vd(this.config), this.screenshotMarker = new Sd(), this.eventDetector = new Cd(this.screenshotMarker);
|
|
9830
|
+
const i = this.config.apiEndpoint && this.config.apiEndpoint !== "https://api.bworlds.com" ? new xd(this.config.apiEndpoint, this.config.apiKey) : new _d();
|
|
9831
9831
|
this.recorder.setUploader(i), this.recorder.onEvent((n) => {
|
|
9832
9832
|
this.eventDetector.handleRrwebEvent(n);
|
|
9833
9833
|
});
|
|
@@ -9839,7 +9839,7 @@ class ep {
|
|
|
9839
9839
|
var e, t;
|
|
9840
9840
|
if (!this.isInitialized && (this.isInitialized = !0, ((e = this.config.toolbar) == null ? void 0 : e.enabled) !== !1)) {
|
|
9841
9841
|
const r = ((t = this.config.toolbar) == null ? void 0 : t.position) ?? "bottom-right";
|
|
9842
|
-
this.toolbar = new
|
|
9842
|
+
this.toolbar = new Wd(r), this.toolbar.setCallbacks({
|
|
9843
9843
|
onStart: () => this.start(),
|
|
9844
9844
|
onPause: () => this.pause(),
|
|
9845
9845
|
onResume: () => this.resume(),
|
|
@@ -9929,20 +9929,14 @@ class ep {
|
|
|
9929
9929
|
(t = this.toolbar) == null || t.setState(e);
|
|
9930
9930
|
}
|
|
9931
9931
|
}
|
|
9932
|
-
const
|
|
9932
|
+
const ep = "_bw_record", tp = "_bw_invite";
|
|
9933
|
+
function rp() {
|
|
9934
|
+
return typeof window > "u" ? null : new URLSearchParams(window.location.search).get(ep);
|
|
9935
|
+
}
|
|
9933
9936
|
function sp() {
|
|
9934
9937
|
return typeof window > "u" ? null : new URLSearchParams(window.location.search).get(tp);
|
|
9935
9938
|
}
|
|
9936
|
-
function ip() {
|
|
9937
|
-
return typeof window > "u" ? null : new URLSearchParams(window.location.search).get(rp);
|
|
9938
|
-
}
|
|
9939
|
-
function np() {
|
|
9940
|
-
const s = sp(), e = ip();
|
|
9941
|
-
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", () => {
|
|
9942
|
-
e && Mn(e), s && An(s);
|
|
9943
|
-
}) : (e && Mn(e), s && An(s));
|
|
9944
|
-
}
|
|
9945
|
-
function Mn(s) {
|
|
9939
|
+
function ip(s) {
|
|
9946
9940
|
if (En.isCompleted()) {
|
|
9947
9941
|
console.log("[BWorlds LaunchKit] Invite already completed");
|
|
9948
9942
|
return;
|
|
@@ -9953,10 +9947,10 @@ function Mn(s) {
|
|
|
9953
9947
|
console.log("[BWorlds LaunchKit] Invite flow completed");
|
|
9954
9948
|
}), e.mount(), typeof window < "u" && (window.__bwInviteDialog = e);
|
|
9955
9949
|
}
|
|
9956
|
-
function
|
|
9950
|
+
function np(s) {
|
|
9957
9951
|
const t = new URLSearchParams(window.location.search).get("_bw_api") || "http://localhost:3941";
|
|
9958
9952
|
console.log("[BWorlds Recorder] Initializing with endpoint:", t);
|
|
9959
|
-
const r = new
|
|
9953
|
+
const r = new qd({
|
|
9960
9954
|
apiKey: s,
|
|
9961
9955
|
apiEndpoint: t,
|
|
9962
9956
|
onComplete: (i) => {
|
|
@@ -9968,10 +9962,17 @@ function An(s) {
|
|
|
9968
9962
|
});
|
|
9969
9963
|
r.init(), typeof window < "u" && (window.__bwRecorder = r);
|
|
9970
9964
|
}
|
|
9971
|
-
|
|
9965
|
+
function Fp() {
|
|
9966
|
+
typeof window > "u" || (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", () => Mn()) : Mn());
|
|
9967
|
+
}
|
|
9968
|
+
function Mn() {
|
|
9969
|
+
const s = rp(), e = sp();
|
|
9970
|
+
e && ip(e), s && np(s);
|
|
9971
|
+
}
|
|
9972
9972
|
export {
|
|
9973
|
-
|
|
9973
|
+
qd as DemoRecorder,
|
|
9974
9974
|
En as InviteDialogController,
|
|
9975
|
-
|
|
9975
|
+
qd as default,
|
|
9976
|
+
Fp as init
|
|
9976
9977
|
};
|
|
9977
9978
|
//# sourceMappingURL=launchkit.js.map
|