@spectosh/browser 0.2.4 → 0.3.0

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