@bugjar/reporter 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,20 +1,20 @@
1
1
  var Ac = Object.defineProperty;
2
2
  var Rc = (r, e, t) => e in r ? Ac(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var N = (r, e, t) => Rc(r, typeof e != "symbol" ? e + "" : e, t);
4
- import { jsx as y, jsxs as k, Fragment as vt } from "react/jsx-runtime";
5
- import { useState as xe, useEffect as Ko, useRef as hn, StrictMode as kc } from "react";
4
+ import { jsx as y, jsxs as k, Fragment as Qe } from "react/jsx-runtime";
5
+ import { useState as ge, useEffect as ks, useRef as fn, StrictMode as kc } from "react";
6
6
  import Mc from "react-dom";
7
7
  var Ti, Yt = Mc;
8
8
  if (process.env.NODE_ENV === "production")
9
9
  Ti = Yt.createRoot, Yt.hydrateRoot;
10
10
  else {
11
- var fn = Yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
11
+ var dn = Yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
12
12
  Ti = function(r, e) {
13
- fn.usingClientEntryPoint = !0;
13
+ dn.usingClientEntryPoint = !0;
14
14
  try {
15
15
  return Yt.createRoot(r, e);
16
16
  } finally {
17
- fn.usingClientEntryPoint = !1;
17
+ dn.usingClientEntryPoint = !1;
18
18
  }
19
19
  };
20
20
  }
@@ -22,23 +22,23 @@ function Rr(r) {
22
22
  const e = new Error(r);
23
23
  return e.source = "ulid", e;
24
24
  }
25
- const ks = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", St = ks.length, dn = Math.pow(2, 48) - 1, Nc = 10, _c = 16;
25
+ const Ms = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", St = Ms.length, pn = Math.pow(2, 48) - 1, Nc = 10, _c = 16;
26
26
  function Ic(r) {
27
27
  let e = Math.floor(r() * St);
28
- return e === St && (e = St - 1), ks.charAt(e);
28
+ return e === St && (e = St - 1), Ms.charAt(e);
29
29
  }
30
30
  function Dc(r, e) {
31
31
  if (isNaN(r))
32
32
  throw new Error(r + " must be a number");
33
- if (r > dn)
34
- throw Rr("cannot encode time greater than " + dn);
33
+ if (r > pn)
34
+ throw Rr("cannot encode time greater than " + pn);
35
35
  if (r < 0)
36
36
  throw Rr("time must be positive");
37
37
  if (Number.isInteger(Number(r)) === !1)
38
38
  throw Rr("time must be an integer");
39
39
  let t, i = "";
40
40
  for (; e > 0; e--)
41
- t = r % St, i = ks.charAt(t) + i, r = (r - t) / St;
41
+ t = r % St, i = Ms.charAt(t) + i, r = (r - t) / St;
42
42
  return i;
43
43
  }
44
44
  function Tc(r, e) {
@@ -74,7 +74,7 @@ function Pc(r) {
74
74
  return isNaN(t) && (t = Date.now()), Dc(t, Nc) + Tc(_c, r);
75
75
  };
76
76
  }
77
- const pn = Pc();
77
+ const mn = Pc();
78
78
  function Lc(r, e) {
79
79
  const t = [];
80
80
  let i = !1, s = 0;
@@ -453,21 +453,21 @@ async function Jc(r, e) {
453
453
  lastSeenAt: Date.now()
454
454
  }));
455
455
  }
456
- function Ms(r) {
456
+ function Ns(r) {
457
457
  return `bugjar:active-session:${r}`;
458
458
  }
459
459
  function Kc(r) {
460
460
  try {
461
- const e = localStorage.getItem(Ms(r));
461
+ const e = localStorage.getItem(Ns(r));
462
462
  return e ? JSON.parse(e) : null;
463
463
  } catch {
464
464
  return null;
465
465
  }
466
466
  }
467
- function mn(r, e) {
467
+ function gn(r, e) {
468
468
  try {
469
469
  localStorage.setItem(
470
- Ms(r),
470
+ Ns(r),
471
471
  JSON.stringify({ sessionId: e, projectKey: r, lastSeenAt: Date.now() })
472
472
  );
473
473
  } catch {
@@ -475,7 +475,7 @@ function mn(r, e) {
475
475
  }
476
476
  function Ve(r) {
477
477
  try {
478
- localStorage.removeItem(Ms(r));
478
+ localStorage.removeItem(Ns(r));
479
479
  } catch {
480
480
  }
481
481
  }
@@ -643,7 +643,7 @@ const su = [
643
643
  "address_line_2",
644
644
  "zip",
645
645
  "postal_code"
646
- ]), gn = Array.from(Qo).map(
646
+ ]), yn = Array.from(Qo).map(
647
647
  (r) => new RegExp(`\\b${r.replace(/_/g, "[_ -]?")}\\b`, "i")
648
648
  );
649
649
  function ea() {
@@ -696,12 +696,12 @@ function nu(r) {
696
696
  e.id
697
697
  ].filter(Boolean);
698
698
  for (const n of i)
699
- for (const o of gn)
699
+ for (const o of yn)
700
700
  if (o.test(n)) return !0;
701
701
  const s = e.getAttribute("aria-labelledby");
702
702
  if (s) {
703
703
  const n = document.getElementById(s)?.textContent ?? "";
704
- for (const o of gn)
704
+ for (const o of yn)
705
705
  if (o.test(n)) return !0;
706
706
  }
707
707
  e = e.parentElement, t += 1;
@@ -732,7 +732,7 @@ function lu(r, e, t = {}) {
732
732
  return r.map((i) => At(i, e, t));
733
733
  }
734
734
  const cu = 500;
735
- class yn {
735
+ class wn {
736
736
  constructor(e) {
737
737
  N(this, "events", []);
738
738
  N(this, "pendingEvents", []);
@@ -798,10 +798,10 @@ class yn {
798
798
  const s = Math.max(0, this.opts.maxDurationSec * 1e3 - this.opts.persistedActiveMs);
799
799
  this.capTimeout = window.setTimeout(() => {
800
800
  this.stop();
801
- }, s), mn(this.opts.projectKey, this.opts.sessionId), this.flushInterval = window.setInterval(() => {
801
+ }, s), gn(this.opts.projectKey, this.opts.sessionId), this.flushInterval = window.setInterval(() => {
802
802
  this.flushPending();
803
803
  }, cu), this.beforeUnloadHandler = () => {
804
- mn(this.opts.projectKey, this.opts.sessionId), this.flushPending();
804
+ gn(this.opts.projectKey, this.opts.sessionId), this.flushPending();
805
805
  }, window.addEventListener("beforeunload", this.beforeUnloadHandler);
806
806
  }
807
807
  /** Flush pending events + the current console/network snapshots into IDB,
@@ -827,7 +827,7 @@ class yn {
827
827
  }))), this.micStream && (this.micStream.getTracks().forEach((s) => s.stop()), this.micStream = null);
828
828
  const t = performance.now() - this.segmentStartedAt;
829
829
  await this.flushPending();
830
- const i = this.opts.persistedActiveMs + t;
830
+ const i = Math.round(this.opts.persistedActiveMs + t);
831
831
  this.opts.onStop({ events: this.events, audioBlob: e, durationMs: i });
832
832
  }
833
833
  toggleMic(e) {
@@ -858,7 +858,7 @@ function uu() {
858
858
  if (typeof MediaRecorder < "u" && MediaRecorder.isTypeSupported(e)) return e;
859
859
  return null;
860
860
  }
861
- const ra = "[modern-screenshot]", tt = typeof window < "u", hu = tt && "Worker" in window, Ns = tt ? window.navigator?.userAgent : "", ia = Ns.includes("Chrome"), Tr = Ns.includes("AppleWebKit") && !ia, _s = Ns.includes("Firefox"), fu = (r) => r && "__CONTEXT__" in r, du = (r) => r.constructor.name === "CSSFontFaceRule", pu = (r) => r.constructor.name === "CSSImportRule", mu = (r) => r.constructor.name === "CSSLayerBlockRule", Ae = (r) => r.nodeType === 1, Ut = (r) => typeof r.className == "object", sa = (r) => r.tagName === "image", gu = (r) => r.tagName === "use", Rt = (r) => Ae(r) && typeof r.style < "u" && !Ut(r), yu = (r) => r.nodeType === 8, wu = (r) => r.nodeType === 3, rt = (r) => r.tagName === "IMG", Kr = (r) => r.tagName === "VIDEO", bu = (r) => r.tagName === "CANVAS", vu = (r) => r.tagName === "TEXTAREA", Su = (r) => r.tagName === "INPUT", Cu = (r) => r.tagName === "STYLE", Eu = (r) => r.tagName === "SCRIPT", xu = (r) => r.tagName === "SELECT", Au = (r) => r.tagName === "SLOT", Ru = (r) => r.tagName === "IFRAME", ku = (...r) => console.warn(ra, ...r);
861
+ const ra = "[modern-screenshot]", rt = typeof window < "u", hu = rt && "Worker" in window, _s = rt ? window.navigator?.userAgent : "", ia = _s.includes("Chrome"), Tr = _s.includes("AppleWebKit") && !ia, Is = _s.includes("Firefox"), fu = (r) => r && "__CONTEXT__" in r, du = (r) => r.constructor.name === "CSSFontFaceRule", pu = (r) => r.constructor.name === "CSSImportRule", mu = (r) => r.constructor.name === "CSSLayerBlockRule", Ae = (r) => r.nodeType === 1, Ut = (r) => typeof r.className == "object", sa = (r) => r.tagName === "image", gu = (r) => r.tagName === "use", Rt = (r) => Ae(r) && typeof r.style < "u" && !Ut(r), yu = (r) => r.nodeType === 8, wu = (r) => r.nodeType === 3, it = (r) => r.tagName === "IMG", Kr = (r) => r.tagName === "VIDEO", bu = (r) => r.tagName === "CANVAS", vu = (r) => r.tagName === "TEXTAREA", Su = (r) => r.tagName === "INPUT", Cu = (r) => r.tagName === "STYLE", Eu = (r) => r.tagName === "SCRIPT", xu = (r) => r.tagName === "SELECT", Au = (r) => r.tagName === "SLOT", Ru = (r) => r.tagName === "IFRAME", ku = (...r) => console.warn(ra, ...r);
862
862
  function Mu(r) {
863
863
  const e = r?.createElement?.("canvas");
864
864
  return e && (e.height = e.width = 1), !!e && "toDataURL" in e && !!e.toDataURL("image/webp").includes("image/webp");
@@ -867,9 +867,9 @@ const Pi = (r) => r.startsWith("data:");
867
867
  function na(r, e) {
868
868
  if (r.match(/^[a-z]+:\/\//i))
869
869
  return r;
870
- if (tt && r.match(/^\/\//))
870
+ if (rt && r.match(/^\/\//))
871
871
  return window.location.protocol + r;
872
- if (r.match(/^[a-z]+:/i) || !tt)
872
+ if (r.match(/^[a-z]+:/i) || !rt)
873
873
  return r;
874
874
  const t = qr().implementation.createHTMLDocument(), i = t.createElement("base"), s = t.createElement("a");
875
875
  return t.head.appendChild(i), t.body.appendChild(s), e && (i.href = e), s.href = r, s.href;
@@ -893,13 +893,13 @@ function Iu(r, e) {
893
893
  });
894
894
  }
895
895
  const Du = (r) => Iu(r, "dataUrl");
896
- function Qe(r, e) {
896
+ function et(r, e) {
897
897
  const t = qr(e).createElement("img");
898
898
  return t.decoding = "sync", t.loading = "eager", t.src = r, t;
899
899
  }
900
900
  function kt(r, e) {
901
901
  return new Promise((t) => {
902
- const { timeout: i, ownerDocument: s, onError: n, onWarn: o } = e ?? {}, a = typeof r == "string" ? Qe(r, qr(s)) : r;
902
+ const { timeout: i, ownerDocument: s, onError: n, onWarn: o } = e ?? {}, a = typeof r == "string" ? et(r, qr(s)) : r;
903
903
  let l = null, c = null;
904
904
  function u() {
905
905
  t(a), l && clearTimeout(l), c?.();
@@ -925,7 +925,7 @@ function kt(r, e) {
925
925
  if (!h)
926
926
  return u();
927
927
  const f = async () => {
928
- if (rt(a) && "decode" in a)
928
+ if (it(a) && "decode" in a)
929
929
  try {
930
930
  await a.decode();
931
931
  } catch (m) {
@@ -943,7 +943,7 @@ function kt(r, e) {
943
943
  m
944
944
  ), u();
945
945
  };
946
- if (rt(a) && a.complete)
946
+ if (it(a) && a.complete)
947
947
  return f();
948
948
  c = () => {
949
949
  a.removeEventListener("load", f), a.removeEventListener("error", d);
@@ -952,7 +952,7 @@ function kt(r, e) {
952
952
  });
953
953
  }
954
954
  async function Tu(r, e) {
955
- Rt(r) && (rt(r) || Kr(r) ? await kt(r, e) : await Promise.all(
955
+ Rt(r) && (it(r) || Kr(r) ? await kt(r, e) : await Promise.all(
956
956
  ["img", "video"].flatMap((t) => Array.from(r.querySelectorAll(t)).map((i) => kt(i, e)))
957
957
  ));
958
958
  }
@@ -964,10 +964,10 @@ const oa = /* @__PURE__ */ function() {
964
964
  function aa(r) {
965
965
  return r?.split(",").map((e) => e.trim().replace(/"|'/g, "").toLowerCase()).filter(Boolean);
966
966
  }
967
- let wn = 0;
967
+ let bn = 0;
968
968
  function Ou(r) {
969
- const e = `${ra}[#${wn}]`;
970
- return wn++, {
969
+ const e = `${ra}[#${bn}]`;
970
+ return bn++, {
971
971
  // eslint-disable-next-line no-console
972
972
  time: (t) => r && console.time(`${e} ${t}`),
973
973
  // eslint-disable-next-line no-console
@@ -984,7 +984,7 @@ async function la(r, e) {
984
984
  return fu(r) ? r : Lu(r, { ...e, autoDestruct: !0 });
985
985
  }
986
986
  async function Lu(r, e) {
987
- const { scale: t = 1, workerUrl: i, workerNumber: s = 1 } = e || {}, n = !!e?.debug, o = e?.features ?? !0, a = r.ownerDocument ?? (tt ? window.document : void 0), l = r.ownerDocument?.defaultView ?? (tt ? window : void 0), c = /* @__PURE__ */ new Map(), u = {
987
+ const { scale: t = 1, workerUrl: i, workerNumber: s = 1 } = e || {}, n = !!e?.debug, o = e?.features ?? !0, a = r.ownerDocument ?? (rt ? window.document : void 0), l = r.ownerDocument?.defaultView ?? (rt ? window : void 0), c = /* @__PURE__ */ new Map(), u = {
988
988
  // Options
989
989
  width: 0,
990
990
  height: 0,
@@ -1118,7 +1118,7 @@ function ua(r, e) {
1118
1118
  try {
1119
1119
  const n = r.toDataURL();
1120
1120
  if (n !== "data:,")
1121
- return Qe(n, r.ownerDocument);
1121
+ return et(n, r.ownerDocument);
1122
1122
  } catch (n) {
1123
1123
  e.log.warn("Failed to clone canvas", n);
1124
1124
  }
@@ -1137,7 +1137,7 @@ function ua(r, e) {
1137
1137
  function Uu(r, e) {
1138
1138
  try {
1139
1139
  if (r?.contentDocument?.documentElement)
1140
- return Is(r.contentDocument.documentElement, e);
1140
+ return Ds(r.contentDocument.documentElement, e);
1141
1141
  } catch (t) {
1142
1142
  e.log.warn("Failed to clone iframe", t);
1143
1143
  }
@@ -1149,14 +1149,14 @@ function zu(r) {
1149
1149
  }
1150
1150
  async function ju(r, e) {
1151
1151
  if (r.ownerDocument && !r.currentSrc && r.poster)
1152
- return Qe(r.poster, r.ownerDocument);
1152
+ return et(r.poster, r.ownerDocument);
1153
1153
  const t = r.cloneNode(!1);
1154
1154
  t.crossOrigin = "anonymous", r.currentSrc && r.currentSrc !== r.src && (t.src = r.currentSrc);
1155
1155
  const i = t.ownerDocument;
1156
1156
  if (i) {
1157
1157
  let s = !0;
1158
1158
  if (await kt(t, { onError: () => s = !1, onWarn: e.log.warn }), !s)
1159
- return r.poster ? Qe(r.poster, r.ownerDocument) : t;
1159
+ return r.poster ? et(r.poster, r.ownerDocument) : t;
1160
1160
  t.currentTime = r.currentTime, await new Promise((o) => {
1161
1161
  t.addEventListener("seeked", o, { once: !0 });
1162
1162
  });
@@ -1166,14 +1166,14 @@ async function ju(r, e) {
1166
1166
  const o = n.getContext("2d");
1167
1167
  o && o.drawImage(t, 0, 0, n.width, n.height);
1168
1168
  } catch (o) {
1169
- return e.log.warn("Failed to clone video", o), r.poster ? Qe(r.poster, r.ownerDocument) : t;
1169
+ return e.log.warn("Failed to clone video", o), r.poster ? et(r.poster, r.ownerDocument) : t;
1170
1170
  }
1171
1171
  return ua(n, e);
1172
1172
  }
1173
1173
  return t;
1174
1174
  }
1175
1175
  function Wu(r, e) {
1176
- return bu(r) ? ua(r, e) : Ru(r) ? Uu(r, e) : rt(r) ? zu(r) : Kr(r) ? ju(r, e) : r.cloneNode(!1);
1176
+ return bu(r) ? ua(r, e) : Ru(r) ? Uu(r, e) : it(r) ? zu(r) : Kr(r) ? ju(r, e) : r.cloneNode(!1);
1177
1177
  }
1178
1178
  function Vu(r) {
1179
1179
  let e = r.sandbox;
@@ -1308,18 +1308,18 @@ function Ku(r, e, t, i, s) {
1308
1308
  }
1309
1309
  Xu.forEach(c), t && Ju.forEach(c);
1310
1310
  }
1311
- const bn = /* @__PURE__ */ new Set([
1311
+ const vn = /* @__PURE__ */ new Set([
1312
1312
  "symbol"
1313
1313
  // test/fixtures/svg.symbol.html
1314
1314
  ]);
1315
- async function vn(r, e, t, i, s) {
1315
+ async function Sn(r, e, t, i, s) {
1316
1316
  if (Ae(t) && (Cu(t) || Eu(t)) || i.filter && !i.filter(t))
1317
1317
  return;
1318
- bn.has(e.nodeName) || bn.has(t.nodeName) ? i.currentParentNodeStyle = void 0 : i.currentParentNodeStyle = i.currentNodeStyle;
1319
- const n = await Is(t, i, !1, s);
1318
+ vn.has(e.nodeName) || vn.has(t.nodeName) ? i.currentParentNodeStyle = void 0 : i.currentParentNodeStyle = i.currentNodeStyle;
1319
+ const n = await Ds(t, i, !1, s);
1320
1320
  i.isEnable("restoreScrollPosition") && qu(r, n), e.appendChild(n);
1321
1321
  }
1322
- async function Sn(r, e, t, i) {
1322
+ async function Cn(r, e, t, i) {
1323
1323
  let s = r.firstChild;
1324
1324
  Ae(r) && r.shadowRoot && (s = r.shadowRoot?.firstChild, t.shadowRoots.push(r.shadowRoot));
1325
1325
  for (let n = s; n; n = n.nextSibling)
@@ -1327,9 +1327,9 @@ async function Sn(r, e, t, i) {
1327
1327
  if (Ae(n) && Au(n) && typeof n.assignedNodes == "function") {
1328
1328
  const o = n.assignedNodes();
1329
1329
  for (let a = 0; a < o.length; a++)
1330
- await vn(r, e, o[a], t, i);
1330
+ await Sn(r, e, o[a], t, i);
1331
1331
  } else
1332
- await vn(r, e, n, t, i);
1332
+ await Sn(r, e, n, t, i);
1333
1333
  }
1334
1334
  function qu(r, e) {
1335
1335
  if (!Rt(r) || !Rt(e))
@@ -1346,7 +1346,7 @@ function Qu(r, e) {
1346
1346
  for (const a in n) o[a] = n[a];
1347
1347
  }
1348
1348
  const eh = /^[\w-:]+$/;
1349
- async function Is(r, e, t = !1, i) {
1349
+ async function Ds(r, e, t = !1, i) {
1350
1350
  const { ownerDocument: s, ownerWindow: n, fontFamilies: o, onCloneEachNode: a } = e;
1351
1351
  if (s && wu(r))
1352
1352
  return i && /\S/.test(r.data) && i(r.data), s.createTextNode(r.data);
@@ -1381,7 +1381,7 @@ async function Is(r, e, t = !1, i) {
1381
1381
  h,
1382
1382
  e,
1383
1383
  m
1384
- ), Zu(r, c), Kr(r) || await Sn(
1384
+ ), Zu(r, c), Kr(r) || await Cn(
1385
1385
  r,
1386
1386
  c,
1387
1387
  e,
@@ -1389,7 +1389,7 @@ async function Is(r, e, t = !1, i) {
1389
1389
  ), await a?.(c), c;
1390
1390
  }
1391
1391
  const l = r.cloneNode(!1);
1392
- return await Sn(r, l, e), await a?.(l), l;
1392
+ return await Cn(r, l, e), await a?.(l), l;
1393
1393
  }
1394
1394
  function th(r) {
1395
1395
  if (r.ownerDocument = void 0, r.ownerWindow = void 0, r.svgStyleElement = void 0, r.svgDefsElement = void 0, r.svgStyles.clear(), r.defaultComputedStyles.clear(), r.sandbox) {
@@ -1435,7 +1435,7 @@ function Mt(r, e) {
1435
1435
  workers: w,
1436
1436
  fontFamilies: p
1437
1437
  } = r;
1438
- i === "image" && (Tr || _s) && r.drawImageCount++;
1438
+ i === "image" && (Tr || Is) && r.drawImageCount++;
1439
1439
  let g = c.get(t);
1440
1440
  if (!g) {
1441
1441
  f && f instanceof RegExp && f.test(o) && (o += (/\?/.test(o) ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime());
@@ -1513,7 +1513,7 @@ const nh = [
1513
1513
  function oh(r, e) {
1514
1514
  return nh.map((t) => {
1515
1515
  const i = r.getPropertyValue(t);
1516
- return !i || i === "none" ? null : ((Tr || _s) && e.drawImageCount++, da(i, null, e, !0).then((s) => {
1516
+ return !i || i === "none" ? null : ((Tr || Is) && e.drawImageCount++, da(i, null, e, !0).then((s) => {
1517
1517
  !s || i === s || r.setProperty(
1518
1518
  t,
1519
1519
  s,
@@ -1523,7 +1523,7 @@ function oh(r, e) {
1523
1523
  }).filter(Boolean);
1524
1524
  }
1525
1525
  function ah(r, e) {
1526
- if (rt(r)) {
1526
+ if (it(r)) {
1527
1527
  const t = r.currentSrc || r.src;
1528
1528
  if (!Pi(t))
1529
1529
  return [
@@ -1536,7 +1536,7 @@ function ah(r, e) {
1536
1536
  i && (r.srcset = "", r.dataset.originalSrc = t, r.src = i || "");
1537
1537
  })
1538
1538
  ];
1539
- (Tr || _s) && e.drawImageCount++;
1539
+ (Tr || Is) && e.drawImageCount++;
1540
1540
  } else if (Ut(r) && !Pi(r.href.baseVal)) {
1541
1541
  const t = r.href.baseVal;
1542
1542
  return [
@@ -1580,7 +1580,7 @@ function lh(r, e) {
1580
1580
  }
1581
1581
  function ga(r, e) {
1582
1582
  const { tasks: t } = e;
1583
- Ae(r) && ((rt(r) || sa(r)) && t.push(...ah(r, e)), gu(r) && t.push(...lh(r, e))), Rt(r) && t.push(...oh(r.style, e)), r.childNodes.forEach((i) => {
1583
+ Ae(r) && ((it(r) || sa(r)) && t.push(...ah(r, e)), gu(r) && t.push(...lh(r, e))), Rt(r) && t.push(...oh(r.style, e)), r.childNodes.forEach((i) => {
1584
1584
  ga(i, e);
1585
1585
  });
1586
1586
  }
@@ -1595,7 +1595,7 @@ async function ch(r, e) {
1595
1595
  } = e;
1596
1596
  if (!(!t || !i || !s.size))
1597
1597
  if (a && a.cssText) {
1598
- const l = En(a.cssText, e);
1598
+ const l = xn(a.cssText, e);
1599
1599
  i.appendChild(t.createTextNode(`${l}
1600
1600
  `));
1601
1601
  } else {
@@ -1647,26 +1647,26 @@ async function ch(r, e) {
1647
1647
  m.parentStyleSheet ? m.parentStyleSheet.href : null,
1648
1648
  e
1649
1649
  ).then((p) => {
1650
- p = En(p, e), n.set(m.cssText, p), i.appendChild(t.createTextNode(`${p}
1650
+ p = xn(p, e), n.set(m.cssText, p), i.appendChild(t.createTextNode(`${p}
1651
1651
  `));
1652
1652
  })
1653
1653
  );
1654
1654
  });
1655
1655
  }
1656
1656
  }
1657
- const uh = /(\/\*[\s\S]*?\*\/)/g, Cn = /((@.*?keyframes [\s\S]*?){([\s\S]*?}\s*?)})/gi;
1657
+ const uh = /(\/\*[\s\S]*?\*\/)/g, En = /((@.*?keyframes [\s\S]*?){([\s\S]*?}\s*?)})/gi;
1658
1658
  function hh(r) {
1659
1659
  if (r == null)
1660
1660
  return [];
1661
1661
  const e = [];
1662
1662
  let t = r.replace(uh, "");
1663
1663
  for (; ; ) {
1664
- const n = Cn.exec(t);
1664
+ const n = En.exec(t);
1665
1665
  if (!n)
1666
1666
  break;
1667
1667
  e.push(n[0]);
1668
1668
  }
1669
- t = t.replace(Cn, "");
1669
+ t = t.replace(En, "");
1670
1670
  const i = /@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi, s = new RegExp(
1671
1671
  // eslint-disable-next-line
1672
1672
  "((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",
@@ -1685,7 +1685,7 @@ function hh(r) {
1685
1685
  return e;
1686
1686
  }
1687
1687
  const fh = /url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g, dh = /src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;
1688
- function En(r, e) {
1688
+ function xn(r, e) {
1689
1689
  const { font: t } = e, i = t ? t?.preferredFormat : void 0;
1690
1690
  return i ? r.replace(dh, (s) => {
1691
1691
  for (; ; ) {
@@ -1725,7 +1725,7 @@ async function gh(r, e) {
1725
1725
  onCreateForeignObjectSvg: m
1726
1726
  } = t;
1727
1727
  s.time("clone node");
1728
- const w = await Is(t.node, t, !0);
1728
+ const w = await Ds(t.node, t, !0);
1729
1729
  if (o && i) {
1730
1730
  let E = "";
1731
1731
  l.forEach((M, _) => {
@@ -1763,7 +1763,7 @@ function yh(r, e) {
1763
1763
  async function wh(r, e) {
1764
1764
  const t = await la(r, e), i = await gh(t), s = _u(i, t.isEnable("removeControlCharacter"));
1765
1765
  t.autoDestruct || (t.svgStyleElement = ca(t.ownerDocument), t.svgDefsElement = t.ownerDocument?.createElementNS(Qr, "defs"), t.svgStyles.clear());
1766
- const n = Qe(s, i.ownerDocument);
1766
+ const n = et(s, i.ownerDocument);
1767
1767
  return await Fu(n, t);
1768
1768
  }
1769
1769
  async function bh() {
@@ -1825,7 +1825,7 @@ const Eh = {
1825
1825
  { id: "pin", label: "Comment", icon: "💬" }
1826
1826
  ], ya = ["#ef4444", "#f59e0b", "#3b82f6"];
1827
1827
  function Rh(r) {
1828
- const [e, t] = xe("cursor"), [i, s] = xe("#ef4444"), [n, o] = xe(!1), a = Mh(), [l, c] = xe(!1), u = (d) => {
1828
+ const [e, t] = ge("cursor"), [i, s] = ge("#ef4444"), [n, o] = ge(!1), a = Mh(), [l, c] = ge(!1), u = (d) => {
1829
1829
  t(d), r.onSelectTool(d);
1830
1830
  }, h = (d) => {
1831
1831
  s(d), r.onSelectColor(d);
@@ -1903,7 +1903,7 @@ function Rh(r) {
1903
1903
  /* @__PURE__ */ y(Xt, {}),
1904
1904
  /* @__PURE__ */ y("button", { onClick: r.onUndo, title: "Undo last markup", style: Jt, children: "↶ Undo" }),
1905
1905
  /* @__PURE__ */ y(Xt, {}),
1906
- r.isRecording ? /* @__PURE__ */ k(vt, { children: [
1906
+ r.isRecording ? /* @__PURE__ */ k(Qe, { children: [
1907
1907
  /* @__PURE__ */ y(
1908
1908
  "span",
1909
1909
  {
@@ -1929,7 +1929,7 @@ function Rh(r) {
1929
1929
  "button",
1930
1930
  {
1931
1931
  onClick: r.onStopRecording,
1932
- style: { ...xn, background: "#ef4444" },
1932
+ style: { ...An, background: "#ef4444" },
1933
1933
  children: "■ Stop"
1934
1934
  }
1935
1935
  )
@@ -1952,7 +1952,7 @@ function Rh(r) {
1952
1952
  "button",
1953
1953
  {
1954
1954
  onClick: r.onDone,
1955
- style: { ...xn, background: r.primaryColor },
1955
+ style: { ...An, background: r.primaryColor },
1956
1956
  title: "Finish and review the report",
1957
1957
  children: "Done →"
1958
1958
  }
@@ -1964,7 +1964,7 @@ function Rh(r) {
1964
1964
  }
1965
1965
  function kh(r) {
1966
1966
  const e = $i.find((t) => t.id === r.tool);
1967
- return /* @__PURE__ */ k(vt, { children: [
1967
+ return /* @__PURE__ */ k(Qe, { children: [
1968
1968
  /* @__PURE__ */ y("style", { children: `
1969
1969
  @keyframes bugjar-pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }
1970
1970
  ` }),
@@ -2016,7 +2016,7 @@ function kh(r) {
2016
2016
  fontSize: 13
2017
2017
  },
2018
2018
  children: [
2019
- r.isRecording ? /* @__PURE__ */ k(vt, { children: [
2019
+ r.isRecording ? /* @__PURE__ */ k(Qe, { children: [
2020
2020
  /* @__PURE__ */ y(
2021
2021
  "span",
2022
2022
  {
@@ -2164,7 +2164,7 @@ function kh(r) {
2164
2164
  gap: 8,
2165
2165
  flexWrap: "wrap"
2166
2166
  },
2167
- children: r.isRecording ? /* @__PURE__ */ k(vt, { children: [
2167
+ children: r.isRecording ? /* @__PURE__ */ k(Qe, { children: [
2168
2168
  /* @__PURE__ */ y(
2169
2169
  "span",
2170
2170
  {
@@ -2247,8 +2247,8 @@ function kh(r) {
2247
2247
  ] });
2248
2248
  }
2249
2249
  function Mh() {
2250
- const [r, e] = xe(!1);
2251
- return Ko(() => {
2250
+ const [r, e] = ge(!1);
2251
+ return ks(() => {
2252
2252
  if (typeof window > "u" || typeof window.matchMedia != "function") return;
2253
2253
  const t = window.matchMedia("(max-width: 640px)"), i = () => e(t.matches);
2254
2254
  return i(), typeof t.addEventListener == "function" ? (t.addEventListener("change", i), () => t.removeEventListener("change", i)) : (t.addListener(i), () => t.removeListener(i));
@@ -2300,7 +2300,7 @@ const Jt = {
2300
2300
  cursor: "pointer",
2301
2301
  fontSize: 12,
2302
2302
  fontWeight: 500
2303
- }, xn = {
2303
+ }, An = {
2304
2304
  border: "none",
2305
2305
  color: "white",
2306
2306
  padding: "6px 12px",
@@ -2343,10 +2343,10 @@ function Fi(r) {
2343
2343
  const e = Math.floor(r / 1e3), t = Math.floor(e / 60), i = e % 60;
2344
2344
  return `${t}:${String(i).padStart(2, "0")}`;
2345
2345
  }
2346
- var Ih = Object.defineProperty, Dh = (r, e, t) => e in r ? Ih(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, An = (r, e, t) => Dh(r, typeof e != "symbol" ? e + "" : e, t);
2346
+ var Ih = Object.defineProperty, Dh = (r, e, t) => e in r ? Ih(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Rn = (r, e, t) => Dh(r, typeof e != "symbol" ? e + "" : e, t);
2347
2347
  function Nt() {
2348
2348
  }
2349
- function Rn(r, e) {
2349
+ function kn(r, e) {
2350
2350
  for (const t in e) r[t] = e[t];
2351
2351
  return (
2352
2352
  /** @type {T & S} */
@@ -2356,22 +2356,22 @@ function Rn(r, e) {
2356
2356
  function wa(r) {
2357
2357
  return r();
2358
2358
  }
2359
- function kn() {
2359
+ function Mn() {
2360
2360
  return /* @__PURE__ */ Object.create(null);
2361
2361
  }
2362
- function ht(r) {
2362
+ function ft(r) {
2363
2363
  r.forEach(wa);
2364
2364
  }
2365
2365
  function ba(r) {
2366
2366
  return typeof r == "function";
2367
2367
  }
2368
- function Ds(r, e) {
2368
+ function Ts(r, e) {
2369
2369
  return r != r ? e == e : r !== e || r && typeof r == "object" || typeof r == "function";
2370
2370
  }
2371
2371
  function Th(r) {
2372
2372
  return Object.keys(r).length === 0;
2373
2373
  }
2374
- function Mn(r) {
2374
+ function Nn(r) {
2375
2375
  const e = {};
2376
2376
  for (const t in r) t[0] !== "$" && (e[t] = r[t]);
2377
2377
  return e;
@@ -2420,7 +2420,7 @@ function Pr(r, e) {
2420
2420
  function re(r, e, t, i) {
2421
2421
  t == null ? r.style.removeProperty(e) : r.style.setProperty(e, t, "");
2422
2422
  }
2423
- function it(r, e, t) {
2423
+ function st(r, e, t) {
2424
2424
  r.classList.toggle(e, !!t);
2425
2425
  }
2426
2426
  function Lh(r, e, { bubbles: t = !1, cancelable: i = !1 } = {}) {
@@ -2462,14 +2462,14 @@ function Fh() {
2462
2462
  };
2463
2463
  }
2464
2464
  const He = [], Be = [];
2465
- let et = [];
2465
+ let tt = [];
2466
2466
  const Bi = [], Bh = /* @__PURE__ */ Promise.resolve();
2467
2467
  let Ui = !1;
2468
2468
  function Uh() {
2469
2469
  Ui || (Ui = !0, Bh.then(Ca));
2470
2470
  }
2471
2471
  function zi(r) {
2472
- et.push(r);
2472
+ tt.push(r);
2473
2473
  }
2474
2474
  function zh(r) {
2475
2475
  Bi.push(r);
@@ -2490,11 +2490,11 @@ function Ca() {
2490
2490
  throw He.length = 0, Ge = 0, e;
2491
2491
  }
2492
2492
  for (Ct(null), He.length = 0, Ge = 0; Be.length; ) Be.pop()();
2493
- for (let e = 0; e < et.length; e += 1) {
2494
- const t = et[e];
2493
+ for (let e = 0; e < tt.length; e += 1) {
2494
+ const t = tt[e];
2495
2495
  gi.has(t) || (gi.add(t), t());
2496
2496
  }
2497
- et.length = 0;
2497
+ tt.length = 0;
2498
2498
  } while (He.length);
2499
2499
  for (; Bi.length; )
2500
2500
  Bi.pop()();
@@ -2502,14 +2502,14 @@ function Ca() {
2502
2502
  }
2503
2503
  function jh(r) {
2504
2504
  if (r.fragment !== null) {
2505
- r.update(), ht(r.before_update);
2505
+ r.update(), ft(r.before_update);
2506
2506
  const e = r.dirty;
2507
2507
  r.dirty = [-1], r.fragment && r.fragment.p(r.ctx, e), r.after_update.forEach(zi);
2508
2508
  }
2509
2509
  }
2510
2510
  function Wh(r) {
2511
2511
  const e = [], t = [];
2512
- et.forEach((i) => r.indexOf(i) === -1 ? e.push(i) : t.push(i)), t.forEach((i) => i()), et = e;
2512
+ tt.forEach((i) => r.indexOf(i) === -1 ? e.push(i) : t.push(i)), t.forEach((i) => i()), tt = e;
2513
2513
  }
2514
2514
  const kr = /* @__PURE__ */ new Set();
2515
2515
  let Fe;
@@ -2522,12 +2522,12 @@ function Ea() {
2522
2522
  };
2523
2523
  }
2524
2524
  function xa() {
2525
- Fe.r || ht(Fe.c), Fe = Fe.p;
2525
+ Fe.r || ft(Fe.c), Fe = Fe.p;
2526
2526
  }
2527
2527
  function Me(r, e) {
2528
2528
  r && r.i && (kr.delete(r), r.i(e));
2529
2529
  }
2530
- function st(r, e, t, i) {
2530
+ function nt(r, e, t, i) {
2531
2531
  if (r && r.o) {
2532
2532
  if (kr.has(r)) return;
2533
2533
  kr.add(r), Fe.c.push(() => {
@@ -2545,21 +2545,21 @@ function Vh(r, e, t) {
2545
2545
  function Aa(r) {
2546
2546
  r && r.c();
2547
2547
  }
2548
- function Ts(r, e, t) {
2548
+ function Os(r, e, t) {
2549
2549
  const { fragment: i, after_update: s } = r.$$;
2550
2550
  i && i.m(e, t), zi(() => {
2551
2551
  const n = r.$$.on_mount.map(wa).filter(ba);
2552
- r.$$.on_destroy ? r.$$.on_destroy.push(...n) : ht(n), r.$$.on_mount = [];
2552
+ r.$$.on_destroy ? r.$$.on_destroy.push(...n) : ft(n), r.$$.on_mount = [];
2553
2553
  }), s.forEach(zi);
2554
2554
  }
2555
- function Os(r, e) {
2555
+ function Ps(r, e) {
2556
2556
  const t = r.$$;
2557
- t.fragment !== null && (Wh(t.after_update), ht(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
2557
+ t.fragment !== null && (Wh(t.after_update), ft(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
2558
2558
  }
2559
2559
  function Gh(r, e) {
2560
2560
  r.$$.dirty[0] === -1 && (He.push(r), Uh(), r.$$.dirty.fill(0)), r.$$.dirty[e / 31 | 0] |= 1 << e % 31;
2561
2561
  }
2562
- function Ps(r, e, t, i, s, n, o = null, a = [-1]) {
2562
+ function Ls(r, e, t, i, s, n, o = null, a = [-1]) {
2563
2563
  const l = _t;
2564
2564
  Ct(r);
2565
2565
  const c = r.$$ = {
@@ -2569,7 +2569,7 @@ function Ps(r, e, t, i, s, n, o = null, a = [-1]) {
2569
2569
  props: n,
2570
2570
  update: Nt,
2571
2571
  not_equal: s,
2572
- bound: kn(),
2572
+ bound: Mn(),
2573
2573
  // lifecycle
2574
2574
  on_mount: [],
2575
2575
  on_destroy: [],
@@ -2578,7 +2578,7 @@ function Ps(r, e, t, i, s, n, o = null, a = [-1]) {
2578
2578
  after_update: [],
2579
2579
  context: new Map(e.context || (l ? l.$$.context : [])),
2580
2580
  // everything else
2581
- callbacks: kn(),
2581
+ callbacks: Mn(),
2582
2582
  dirty: a,
2583
2583
  skip_bound: !1,
2584
2584
  root: e.target || l.$$.root
@@ -2588,23 +2588,23 @@ function Ps(r, e, t, i, s, n, o = null, a = [-1]) {
2588
2588
  if (c.ctx = t ? t(r, e.props || {}, (h, f, ...d) => {
2589
2589
  const m = d.length ? d[0] : f;
2590
2590
  return c.ctx && s(c.ctx[h], c.ctx[h] = m) && (!c.skip_bound && c.bound[h] && c.bound[h](m), u && Gh(r, h)), f;
2591
- }) : [], c.update(), u = !0, ht(c.before_update), c.fragment = i ? i(c.ctx) : !1, e.target) {
2591
+ }) : [], c.update(), u = !0, ft(c.before_update), c.fragment = i ? i(c.ctx) : !1, e.target) {
2592
2592
  if (e.hydrate) {
2593
2593
  const h = Ph(e.target);
2594
2594
  c.fragment && c.fragment.l(h), h.forEach(Re);
2595
2595
  } else
2596
2596
  c.fragment && c.fragment.c();
2597
- e.intro && Me(r.$$.fragment), Ts(r, e.target, e.anchor), Ca();
2597
+ e.intro && Me(r.$$.fragment), Os(r, e.target, e.anchor), Ca();
2598
2598
  }
2599
2599
  Ct(l);
2600
2600
  }
2601
- class Ls {
2601
+ class $s {
2602
2602
  constructor() {
2603
- An(this, "$$"), An(this, "$$set");
2603
+ Rn(this, "$$"), Rn(this, "$$set");
2604
2604
  }
2605
2605
  /** @returns {void} */
2606
2606
  $destroy() {
2607
- Os(this, 1), this.$destroy = Nt;
2607
+ Ps(this, 1), this.$destroy = Nt;
2608
2608
  }
2609
2609
  /**
2610
2610
  * @template {Extract<keyof Events, string>} K
@@ -2631,13 +2631,13 @@ class Ls {
2631
2631
  }
2632
2632
  const Yh = "4";
2633
2633
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Yh);
2634
- var Hh = Object.defineProperty, Zh = (r, e, t) => e in r ? Hh(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, I = (r, e, t) => Zh(r, typeof e != "symbol" ? e + "" : e, t), Nn, Xh = Object.defineProperty, Jh = (r, e, t) => e in r ? Xh(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, _n = (r, e, t) => Jh(r, typeof e != "symbol" ? e + "" : e, t), ee = /* @__PURE__ */ ((r) => (r[r.Document = 0] = "Document", r[r.DocumentType = 1] = "DocumentType", r[r.Element = 2] = "Element", r[r.Text = 3] = "Text", r[r.CDATA = 4] = "CDATA", r[r.Comment = 5] = "Comment", r))(ee || {});
2634
+ var Hh = Object.defineProperty, Zh = (r, e, t) => e in r ? Hh(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, I = (r, e, t) => Zh(r, typeof e != "symbol" ? e + "" : e, t), _n, Xh = Object.defineProperty, Jh = (r, e, t) => e in r ? Xh(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, In = (r, e, t) => Jh(r, typeof e != "symbol" ? e + "" : e, t), ee = /* @__PURE__ */ ((r) => (r[r.Document = 0] = "Document", r[r.DocumentType = 1] = "DocumentType", r[r.Element = 2] = "Element", r[r.Text = 3] = "Text", r[r.CDATA = 4] = "CDATA", r[r.Comment = 5] = "Comment", r))(ee || {});
2635
2635
  function Kh(r) {
2636
2636
  return r.nodeType === r.ELEMENT_NODE;
2637
2637
  }
2638
2638
  class Ra {
2639
2639
  constructor() {
2640
- _n(this, "idNodeMap", /* @__PURE__ */ new Map()), _n(this, "nodeMetaMap", /* @__PURE__ */ new WeakMap());
2640
+ In(this, "idNodeMap", /* @__PURE__ */ new Map()), In(this, "nodeMetaMap", /* @__PURE__ */ new WeakMap());
2641
2641
  }
2642
2642
  getId(e) {
2643
2643
  var t;
@@ -2701,13 +2701,13 @@ function ef(r, e) {
2701
2701
  const i = /\.([0-9a-z]+)(?:$)/i, s = t.pathname.match(i);
2702
2702
  return s?.[1] ?? null;
2703
2703
  }
2704
- const tf = /(max|min)-device-(width|height)/, In = new RegExp(tf.source, "g"), rf = {
2704
+ const tf = /(max|min)-device-(width|height)/, Dn = new RegExp(tf.source, "g"), rf = {
2705
2705
  postcssPlugin: "postcss-custom-selectors",
2706
2706
  prepare() {
2707
2707
  return {
2708
2708
  postcssPlugin: "postcss-custom-selectors",
2709
2709
  AtRule: function(r) {
2710
- r.params.match(In) && (r.params = r.params.replace(In, "$1-$2"));
2710
+ r.params.match(Dn) && (r.params = r.params.replace(Dn, "$1-$2"));
2711
2711
  }
2712
2712
  };
2713
2713
  }
@@ -2747,17 +2747,17 @@ function of(r) {
2747
2747
  });
2748
2748
  }), t;
2749
2749
  }
2750
- var $s = { exports: {} }, Y = String, Ma = function() {
2750
+ var Fs = { exports: {} }, Y = String, Ma = function() {
2751
2751
  return { isColorSupported: !1, reset: Y, bold: Y, dim: Y, italic: Y, underline: Y, inverse: Y, hidden: Y, strikethrough: Y, black: Y, red: Y, green: Y, yellow: Y, blue: Y, magenta: Y, cyan: Y, white: Y, gray: Y, bgBlack: Y, bgRed: Y, bgGreen: Y, bgYellow: Y, bgBlue: Y, bgMagenta: Y, bgCyan: Y, bgWhite: Y };
2752
2752
  };
2753
- $s.exports = Ma();
2754
- $s.exports.createColors = Ma;
2755
- var af = $s.exports;
2753
+ Fs.exports = Ma();
2754
+ Fs.exports.createColors = Ma;
2755
+ var af = Fs.exports;
2756
2756
  const lf = {}, cf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2757
2757
  __proto__: null,
2758
2758
  default: lf
2759
- }, Symbol.toStringTag, { value: "Module" })), ge = /* @__PURE__ */ of(cf);
2760
- let Dn = af, Tn = ge, ji = class Na extends Error {
2759
+ }, Symbol.toStringTag, { value: "Module" })), ye = /* @__PURE__ */ of(cf);
2760
+ let Tn = af, On = ye, ji = class Na extends Error {
2761
2761
  constructor(e, t, i, s, n, o) {
2762
2762
  super(e), this.name = "CssSyntaxError", this.reason = e, n && (this.file = n), s && (this.source = s), o && (this.plugin = o), typeof t < "u" && typeof i < "u" && (typeof t == "number" ? (this.line = t, this.column = i) : (this.line = t.line, this.column = t.column, this.endLine = i.line, this.endColumn = i.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, Na);
2763
2763
  }
@@ -2767,10 +2767,10 @@ let Dn = af, Tn = ge, ji = class Na extends Error {
2767
2767
  showSourceCode(e) {
2768
2768
  if (!this.source) return "";
2769
2769
  let t = this.source;
2770
- e == null && (e = Dn.isColorSupported), Tn && e && (t = Tn(t));
2770
+ e == null && (e = Tn.isColorSupported), On && e && (t = On(t));
2771
2771
  let i = t.split(/\r?\n/), s = Math.max(this.line - 3, 0), n = Math.min(this.line + 2, i.length), o = String(n).length, a, l;
2772
2772
  if (e) {
2773
- let { bold: c, gray: u, red: h } = Dn.createColors(!0);
2773
+ let { bold: c, gray: u, red: h } = Tn.createColors(!0);
2774
2774
  a = (f) => c(h(f)), l = (f) => u(f);
2775
2775
  } else
2776
2776
  a = l = (c) => c;
@@ -2793,12 +2793,12 @@ let Dn = af, Tn = ge, ji = class Na extends Error {
2793
2793
  `), this.name + ": " + this.message + e;
2794
2794
  }
2795
2795
  };
2796
- var Fs = ji;
2796
+ var Bs = ji;
2797
2797
  ji.default = ji;
2798
2798
  var zt = {};
2799
2799
  zt.isClean = Symbol("isClean");
2800
2800
  zt.my = Symbol("my");
2801
- const On = {
2801
+ const Pn = {
2802
2802
  after: `
2803
2803
  `,
2804
2804
  beforeClose: `
@@ -2881,7 +2881,7 @@ let Wi = class {
2881
2881
  let n = e.parent;
2882
2882
  if (i === "before" && (!n || n.type === "root" && n.first === e || n && n.type === "document"))
2883
2883
  return "";
2884
- if (!n) return On[i];
2884
+ if (!n) return Pn[i];
2885
2885
  let o = e.root();
2886
2886
  if (o.rawCache || (o.rawCache = {}), typeof o.rawCache[i] < "u")
2887
2887
  return o.rawCache[i];
@@ -2893,7 +2893,7 @@ let Wi = class {
2893
2893
  if (s = l.raws[t], typeof s < "u") return !1;
2894
2894
  });
2895
2895
  }
2896
- return typeof s > "u" && (s = On[i]), o.rawCache[i] = s, s;
2896
+ return typeof s > "u" && (s = Pn[i]), o.rawCache[i] = s, s;
2897
2897
  }
2898
2898
  rawBeforeClose(e) {
2899
2899
  let t;
@@ -2993,7 +2993,7 @@ function Vi(r, e) {
2993
2993
  }
2994
2994
  var ti = Vi;
2995
2995
  Vi.default = Vi;
2996
- let { isClean: qt, my: ff } = zt, df = Fs, pf = _a, mf = ti;
2996
+ let { isClean: qt, my: ff } = zt, df = Bs, pf = _a, mf = ti;
2997
2997
  function Gi(r, e) {
2998
2998
  let t = new r.constructor();
2999
2999
  for (let i in r) {
@@ -3217,7 +3217,7 @@ let yf = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", wf
3217
3217
  return e;
3218
3218
  };
3219
3219
  var bf = { nanoid: wf };
3220
- let { SourceMapConsumer: Pn, SourceMapGenerator: Ln } = ge, { existsSync: vf, readFileSync: Sf } = ge, { dirname: yi, join: Cf } = ge;
3220
+ let { SourceMapConsumer: Ln, SourceMapGenerator: $n } = ye, { existsSync: vf, readFileSync: Sf } = ye, { dirname: yi, join: Cf } = ye;
3221
3221
  function Ef(r) {
3222
3222
  return Buffer ? Buffer.from(r, "base64").toString() : window.atob(r);
3223
3223
  }
@@ -3229,7 +3229,7 @@ let Zi = class {
3229
3229
  !this.mapFile && t.from && (this.mapFile = t.from), this.mapFile && (this.root = yi(this.mapFile)), s && (this.text = s);
3230
3230
  }
3231
3231
  consumer() {
3232
- return this.consumerCache || (this.consumerCache = new Pn(this.text)), this.consumerCache;
3232
+ return this.consumerCache || (this.consumerCache = new Ln(this.text)), this.consumerCache;
3233
3233
  }
3234
3234
  decodeInline(e) {
3235
3235
  let t = /^data:application\/json;charset=utf-?8;base64,/, i = /^data:application\/json;base64,/, s = /^data:application\/json;charset=utf-?8,/, n = /^data:application\/json,/;
@@ -3272,9 +3272,9 @@ let Zi = class {
3272
3272
  return s;
3273
3273
  }
3274
3274
  } else {
3275
- if (t instanceof Pn)
3276
- return Ln.fromSourceMap(t).toString();
3277
3275
  if (t instanceof Ln)
3276
+ return $n.fromSourceMap(t).toString();
3277
+ if (t instanceof $n)
3278
3278
  return t.toString();
3279
3279
  if (this.isMap(t))
3280
3280
  return JSON.stringify(t);
@@ -3300,11 +3300,11 @@ let Zi = class {
3300
3300
  };
3301
3301
  var Ia = Zi;
3302
3302
  Zi.default = Zi;
3303
- let { SourceMapConsumer: xf, SourceMapGenerator: Af } = ge, { fileURLToPath: $n, pathToFileURL: Qt } = ge, { isAbsolute: Xi, resolve: Ji } = ge, { nanoid: Rf } = bf, wi = ge, Fn = Fs, kf = Ia, bi = Symbol("fromOffsetCache"), Mf = !!(xf && Af), Bn = !!(Ji && Xi), Lr = class {
3303
+ let { SourceMapConsumer: xf, SourceMapGenerator: Af } = ye, { fileURLToPath: Fn, pathToFileURL: Qt } = ye, { isAbsolute: Xi, resolve: Ji } = ye, { nanoid: Rf } = bf, wi = ye, Bn = Bs, kf = Ia, bi = Symbol("fromOffsetCache"), Mf = !!(xf && Af), Un = !!(Ji && Xi), Lr = class {
3304
3304
  constructor(e, t = {}) {
3305
3305
  if (e === null || typeof e > "u" || typeof e == "object" && !e.toString)
3306
3306
  throw new Error(`PostCSS received ${e} instead of CSS string`);
3307
- if (this.css = e.toString(), this.css[0] === "\uFEFF" || this.css[0] === "￾" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, t.from && (!Bn || /^\w+:\/\//.test(t.from) || Xi(t.from) ? this.file = t.from : this.file = Ji(t.from)), Bn && Mf) {
3307
+ if (this.css = e.toString(), this.css[0] === "\uFEFF" || this.css[0] === "￾" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, t.from && (!Un || /^\w+:\/\//.test(t.from) || Xi(t.from) ? this.file = t.from : this.file = Ji(t.from)), Un && Mf) {
3308
3308
  let i = new kf(this.css, t);
3309
3309
  if (i.text) {
3310
3310
  this.map = i;
@@ -3333,14 +3333,14 @@ let { SourceMapConsumer: xf, SourceMapGenerator: Af } = ge, { fileURLToPath: $n,
3333
3333
  t = c.line, i = c.col;
3334
3334
  }
3335
3335
  let l = this.origin(t, i, o, a);
3336
- return l ? n = new Fn(
3336
+ return l ? n = new Bn(
3337
3337
  e,
3338
3338
  l.endLine === void 0 ? l.line : { column: l.column, line: l.line },
3339
3339
  l.endLine === void 0 ? l.column : { column: l.endColumn, line: l.endLine },
3340
3340
  l.source,
3341
3341
  l.file,
3342
3342
  s.plugin
3343
- ) : n = new Fn(
3343
+ ) : n = new Bn(
3344
3344
  e,
3345
3345
  o === void 0 ? t : { column: i, line: t },
3346
3346
  o === void 0 ? i : { column: a, line: o },
@@ -3405,8 +3405,8 @@ let { SourceMapConsumer: xf, SourceMapGenerator: Af } = ge, { fileURLToPath: $n,
3405
3405
  url: l.toString()
3406
3406
  };
3407
3407
  if (l.protocol === "file:")
3408
- if ($n)
3409
- c.file = $n(l);
3408
+ if (Fn)
3409
+ c.file = Fn(l);
3410
3410
  else
3411
3411
  throw new Error("file: protocol is not available in this PostCSS build");
3412
3412
  let u = n.sourceContentFor(o.source);
@@ -3425,7 +3425,7 @@ let { SourceMapConsumer: xf, SourceMapGenerator: Af } = ge, { fileURLToPath: $n,
3425
3425
  var si = Lr;
3426
3426
  Lr.default = Lr;
3427
3427
  wi && wi.registerInput && wi.registerInput(Lr);
3428
- let { SourceMapConsumer: Da, SourceMapGenerator: Mr } = ge, { dirname: Nr, relative: Ta, resolve: Oa, sep: Pa } = ge, { pathToFileURL: Un } = ge, Nf = si, _f = !!(Da && Mr), If = !!(Nr && Oa && Ta && Pa), Df = class {
3428
+ let { SourceMapConsumer: Da, SourceMapGenerator: Mr } = ye, { dirname: Nr, relative: Ta, resolve: Oa, sep: Pa } = ye, { pathToFileURL: zn } = ye, Nf = si, _f = !!(Da && Mr), If = !!(Nr && Oa && Ta && Pa), Df = class {
3429
3429
  constructor(e, t, i, s) {
3430
3430
  this.stringify = e, this.mapOpts = i.map || {}, this.root = t, this.opts = i, this.css = s, this.originalCSS = s, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
3431
3431
  }
@@ -3568,8 +3568,8 @@ let { SourceMapConsumer: Da, SourceMapGenerator: Mr } = ge, { dirname: Nr, relat
3568
3568
  toFileUrl(e) {
3569
3569
  let t = this.memoizedFileURLs.get(e);
3570
3570
  if (t) return t;
3571
- if (Un) {
3572
- let i = Un(e).toString();
3571
+ if (zn) {
3572
+ let i = zn(e).toString();
3573
3573
  return this.memoizedFileURLs.set(e, i), i;
3574
3574
  } else
3575
3575
  throw new Error(
@@ -3592,7 +3592,7 @@ let Tf = ri, Ki = class extends Tf {
3592
3592
  };
3593
3593
  var ni = Ki;
3594
3594
  Ki.default = Ki;
3595
- let { isClean: $a, my: Fa } = zt, Ba = ii, Ua = ni, Of = ri, za, Bs, Us, ja;
3595
+ let { isClean: $a, my: Fa } = zt, Ba = ii, Ua = ni, Of = ri, za, Us, zs, ja;
3596
3596
  function Wa(r) {
3597
3597
  return r.map((e) => (e.nodes && (e.nodes = Wa(e.nodes)), delete e.source, e));
3598
3598
  }
@@ -3683,9 +3683,9 @@ let Ne = class Ga extends Of {
3683
3683
  throw new Error("Value field is missed in node creation");
3684
3684
  typeof e.value != "string" && (e.value = String(e.value)), e = [new Ba(e)];
3685
3685
  } else if (e.selector)
3686
- e = [new Bs(e)];
3687
- else if (e.name)
3688
3686
  e = [new Us(e)];
3687
+ else if (e.name)
3688
+ e = [new zs(e)];
3689
3689
  else if (e.text)
3690
3690
  e = [new Ua(e)];
3691
3691
  else
@@ -3790,10 +3790,10 @@ Ne.registerParse = (r) => {
3790
3790
  za = r;
3791
3791
  };
3792
3792
  Ne.registerRule = (r) => {
3793
- Bs = r;
3793
+ Us = r;
3794
3794
  };
3795
3795
  Ne.registerAtRule = (r) => {
3796
- Us = r;
3796
+ zs = r;
3797
3797
  };
3798
3798
  Ne.registerRoot = (r) => {
3799
3799
  ja = r;
@@ -3801,7 +3801,7 @@ Ne.registerRoot = (r) => {
3801
3801
  var je = Ne;
3802
3802
  Ne.default = Ne;
3803
3803
  Ne.rebuild = (r) => {
3804
- r.type === "atrule" ? Object.setPrototypeOf(r, Us.prototype) : r.type === "rule" ? Object.setPrototypeOf(r, Bs.prototype) : r.type === "decl" ? Object.setPrototypeOf(r, Ba.prototype) : r.type === "comment" ? Object.setPrototypeOf(r, Ua.prototype) : r.type === "root" && Object.setPrototypeOf(r, ja.prototype), r[Fa] = !0, r.nodes && r.nodes.forEach((e) => {
3804
+ r.type === "atrule" ? Object.setPrototypeOf(r, zs.prototype) : r.type === "rule" ? Object.setPrototypeOf(r, Us.prototype) : r.type === "decl" ? Object.setPrototypeOf(r, Ba.prototype) : r.type === "comment" ? Object.setPrototypeOf(r, Ua.prototype) : r.type === "root" && Object.setPrototypeOf(r, ja.prototype), r[Fa] = !0, r.nodes && r.nodes.forEach((e) => {
3805
3805
  Ne.rebuild(e);
3806
3806
  });
3807
3807
  };
@@ -3819,11 +3819,11 @@ It.registerLazyResult = (r) => {
3819
3819
  It.registerProcessor = (r) => {
3820
3820
  Ha = r;
3821
3821
  };
3822
- var zs = It;
3822
+ var js = It;
3823
3823
  It.default = It;
3824
- let zn = {};
3824
+ let jn = {};
3825
3825
  var Za = function(e) {
3826
- zn[e] || (zn[e] = !0, typeof console < "u" && console.warn && console.warn(e));
3826
+ jn[e] || (jn[e] = !0, typeof console < "u" && console.warn && console.warn(e));
3827
3827
  };
3828
3828
  let qi = class {
3829
3829
  constructor(e, t = {}) {
@@ -3862,9 +3862,9 @@ let Lf = Xa, Qi = class {
3862
3862
  return this.css;
3863
3863
  }
3864
3864
  };
3865
- var js = Qi;
3865
+ var Ws = Qi;
3866
3866
  Qi.default = Qi;
3867
- const vi = 39, jn = 34, er = 92, Wn = 47, tr = 10, dt = 32, rr = 12, ir = 9, sr = 13, $f = 91, Ff = 93, Bf = 40, Uf = 41, zf = 123, jf = 125, Wf = 59, Vf = 42, Gf = 58, Yf = 64, nr = /[\t\n\f\r "#'()/;[\\\]{}]/g, or = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Hf = /.[\r\n"'(/\\]/, Vn = /[\da-f]/i;
3867
+ const vi = 39, Wn = 34, er = 92, Vn = 47, tr = 10, pt = 32, rr = 12, ir = 9, sr = 13, $f = 91, Ff = 93, Bf = 40, Uf = 41, zf = 123, jf = 125, Wf = 59, Vf = 42, Gf = 58, Yf = 64, nr = /[\t\n\f\r "#'()/;[\\\]{}]/g, or = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Hf = /.[\r\n"'(/\\]/, Gn = /[\da-f]/i;
3868
3868
  var Zf = function(e, t = {}) {
3869
3869
  let i = e.css.valueOf(), s = t.ignoreErrors, n, o, a, l, c, u, h, f, d, m, w = i.length, p = 0, g = [], b = [];
3870
3870
  function v() {
@@ -3882,14 +3882,14 @@ var Zf = function(e, t = {}) {
3882
3882
  let K = T ? T.ignoreUnclosed : !1;
3883
3883
  switch (n = i.charCodeAt(p), n) {
3884
3884
  case tr:
3885
- case dt:
3885
+ case pt:
3886
3886
  case ir:
3887
3887
  case sr:
3888
3888
  case rr: {
3889
3889
  o = p;
3890
3890
  do
3891
3891
  o += 1, n = i.charCodeAt(o);
3892
- while (n === dt || n === tr || n === ir || n === sr || n === rr);
3892
+ while (n === pt || n === tr || n === ir || n === sr || n === rr);
3893
3893
  m = ["space", i.slice(p, o)], p = o - 1;
3894
3894
  break;
3895
3895
  }
@@ -3905,7 +3905,7 @@ var Zf = function(e, t = {}) {
3905
3905
  break;
3906
3906
  }
3907
3907
  case Bf: {
3908
- if (f = g.length ? g.pop()[1] : "", d = i.charCodeAt(p + 1), f === "url" && d !== vi && d !== jn && d !== dt && d !== tr && d !== ir && d !== rr && d !== sr) {
3908
+ if (f = g.length ? g.pop()[1] : "", d = i.charCodeAt(p + 1), f === "url" && d !== vi && d !== Wn && d !== pt && d !== tr && d !== ir && d !== rr && d !== sr) {
3909
3909
  o = p;
3910
3910
  do {
3911
3911
  if (u = !1, o = i.indexOf(")", o + 1), o === -1)
@@ -3923,7 +3923,7 @@ var Zf = function(e, t = {}) {
3923
3923
  break;
3924
3924
  }
3925
3925
  case vi:
3926
- case jn: {
3926
+ case Wn: {
3927
3927
  a = n === vi ? "'" : '"', o = p;
3928
3928
  do {
3929
3929
  if (u = !1, o = i.indexOf(a, o + 1), o === -1)
@@ -3945,16 +3945,16 @@ var Zf = function(e, t = {}) {
3945
3945
  case er: {
3946
3946
  for (o = p, c = !0; i.charCodeAt(o + 1) === er; )
3947
3947
  o += 1, c = !c;
3948
- if (n = i.charCodeAt(o + 1), c && n !== Wn && n !== dt && n !== tr && n !== ir && n !== sr && n !== rr && (o += 1, Vn.test(i.charAt(o)))) {
3949
- for (; Vn.test(i.charAt(o + 1)); )
3948
+ if (n = i.charCodeAt(o + 1), c && n !== Vn && n !== pt && n !== tr && n !== ir && n !== sr && n !== rr && (o += 1, Gn.test(i.charAt(o)))) {
3949
+ for (; Gn.test(i.charAt(o + 1)); )
3950
3950
  o += 1;
3951
- i.charCodeAt(o + 1) === dt && (o += 1);
3951
+ i.charCodeAt(o + 1) === pt && (o += 1);
3952
3952
  }
3953
3953
  m = ["word", i.slice(p, o + 1), p, o], p = o;
3954
3954
  break;
3955
3955
  }
3956
3956
  default: {
3957
- n === Wn && i.charCodeAt(p + 1) === Vf ? (o = i.indexOf("*/", p + 2) + 1, o === 0 && (s || K ? o = i.length : E("comment")), m = ["comment", i.slice(p, o + 1), p, o], p = o) : (or.lastIndex = p + 1, or.test(i), or.lastIndex === 0 ? o = i.length - 1 : o = or.lastIndex - 2, m = ["word", i.slice(p, o + 1), p, o], g.push(m), p = o);
3957
+ n === Vn && i.charCodeAt(p + 1) === Vf ? (o = i.indexOf("*/", p + 2) + 1, o === 0 && (s || K ? o = i.length : E("comment")), m = ["comment", i.slice(p, o + 1), p, o], p = o) : (or.lastIndex = p + 1, or.test(i), or.lastIndex === 0 ? o = i.length - 1 : o = or.lastIndex - 2, m = ["word", i.slice(p, o + 1), p, o], g.push(m), p = o);
3958
3958
  break;
3959
3959
  }
3960
3960
  }
@@ -3981,10 +3981,10 @@ let Ja = je, $r = class extends Ja {
3981
3981
  return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e);
3982
3982
  }
3983
3983
  };
3984
- var Ws = $r;
3984
+ var Vs = $r;
3985
3985
  $r.default = $r;
3986
3986
  Ja.registerAtRule($r);
3987
- let Ka = je, qa, Qa, nt = class extends Ka {
3987
+ let Ka = je, qa, Qa, ot = class extends Ka {
3988
3988
  constructor(e) {
3989
3989
  super(e), this.type = "root", this.nodes || (this.nodes = []);
3990
3990
  }
@@ -4007,15 +4007,15 @@ let Ka = je, qa, Qa, nt = class extends Ka {
4007
4007
  return new qa(new Qa(), this, e).stringify();
4008
4008
  }
4009
4009
  };
4010
- nt.registerLazyResult = (r) => {
4010
+ ot.registerLazyResult = (r) => {
4011
4011
  qa = r;
4012
4012
  };
4013
- nt.registerProcessor = (r) => {
4013
+ ot.registerProcessor = (r) => {
4014
4014
  Qa = r;
4015
4015
  };
4016
- var jt = nt;
4017
- nt.default = nt;
4018
- Ka.registerRoot(nt);
4016
+ var jt = ot;
4017
+ ot.default = ot;
4018
+ Ka.registerRoot(ot);
4019
4019
  let Dt = {
4020
4020
  comma(r) {
4021
4021
  return Dt.split(r, [","], !0);
@@ -4046,11 +4046,11 @@ let tl = je, Xf = el, Fr = class extends tl {
4046
4046
  this.selector = e.join(i);
4047
4047
  }
4048
4048
  };
4049
- var Vs = Fr;
4049
+ var Gs = Fr;
4050
4050
  Fr.default = Fr;
4051
4051
  tl.registerRule(Fr);
4052
- let Jf = ii, Kf = Zf, qf = ni, Qf = Ws, ed = jt, Gn = Vs;
4053
- const Yn = {
4052
+ let Jf = ii, Kf = Zf, qf = ni, Qf = Vs, ed = jt, Yn = Gs;
4053
+ const Hn = {
4054
4054
  empty: !0,
4055
4055
  space: !0
4056
4056
  };
@@ -4191,7 +4191,7 @@ let rd = class {
4191
4191
  );
4192
4192
  }
4193
4193
  emptyRule(e) {
4194
- let t = new Gn();
4194
+ let t = new Yn();
4195
4195
  this.init(t, e[2]), t.selector = "", t.raws.between = "", this.current = t;
4196
4196
  }
4197
4197
  end(e) {
@@ -4286,7 +4286,7 @@ let rd = class {
4286
4286
  raw(e, t, i, s) {
4287
4287
  let n, o, a = i.length, l = "", c = !0, u, h;
4288
4288
  for (let f = 0; f < a; f += 1)
4289
- n = i[f], o = n[0], o === "space" && f === a - 1 && !s ? c = !1 : o === "comment" ? (h = i[f - 1] ? i[f - 1][0] : "empty", u = i[f + 1] ? i[f + 1][0] : "empty", !Yn[h] && !Yn[u] ? l.slice(-1) === "," ? c = !1 : l += n[1] : c = !1) : l += n[1];
4289
+ n = i[f], o = n[0], o === "space" && f === a - 1 && !s ? c = !1 : o === "comment" ? (h = i[f - 1] ? i[f - 1][0] : "empty", u = i[f + 1] ? i[f + 1][0] : "empty", !Hn[h] && !Hn[u] ? l.slice(-1) === "," ? c = !1 : l += n[1] : c = !1) : l += n[1];
4290
4290
  if (!c) {
4291
4291
  let f = i.reduce((d, m) => d + m[1], "");
4292
4292
  e.raws[t] = { raw: f, value: l };
@@ -4295,7 +4295,7 @@ let rd = class {
4295
4295
  }
4296
4296
  rule(e) {
4297
4297
  e.pop();
4298
- let t = new Gn();
4298
+ let t = new Yn();
4299
4299
  this.init(t, e[0][2]), t.raws.between = this.spacesAndCommentsFromEnd(e), this.raw(t, "selector", e), this.current = t;
4300
4300
  }
4301
4301
  spacesAndCommentsFromEnd(e) {
@@ -4370,10 +4370,10 @@ You tried to parse Less with the standard CSS parser; try again with the postcss
4370
4370
  }
4371
4371
  return i.root;
4372
4372
  }
4373
- var Gs = Br;
4373
+ var Ys = Br;
4374
4374
  Br.default = Br;
4375
4375
  sd.registerParse(Br);
4376
- let { isClean: Se, my: ad } = zt, ld = La, cd = ti, ud = je, hd = zs, fd = Za, Hn = js, dd = Gs, pd = jt;
4376
+ let { isClean: Ce, my: ad } = zt, ld = La, cd = ti, ud = je, hd = js, fd = Za, Zn = Ws, dd = Ys, pd = jt;
4377
4377
  const md = {
4378
4378
  atrule: "AtRule",
4379
4379
  comment: "Comment",
@@ -4402,8 +4402,8 @@ const md = {
4402
4402
  Once: !0,
4403
4403
  postcssPlugin: !0,
4404
4404
  prepare: !0
4405
- }, ot = 0;
4406
- function pt(r) {
4405
+ }, at = 0;
4406
+ function mt(r) {
4407
4407
  return typeof r == "object" && typeof r.then == "function";
4408
4408
  }
4409
4409
  function rl(r) {
@@ -4411,14 +4411,14 @@ function rl(r) {
4411
4411
  return r.type === "decl" ? e = r.prop.toLowerCase() : r.type === "atrule" && (e = r.name.toLowerCase()), e && r.append ? [
4412
4412
  t,
4413
4413
  t + "-" + e,
4414
- ot,
4414
+ at,
4415
4415
  t + "Exit",
4416
4416
  t + "Exit-" + e
4417
- ] : e ? [t, t + "-" + e, t + "Exit", t + "Exit-" + e] : r.append ? [t, ot, t + "Exit"] : [t, t + "Exit"];
4417
+ ] : e ? [t, t + "-" + e, t + "Exit", t + "Exit-" + e] : r.append ? [t, at, t + "Exit"] : [t, t + "Exit"];
4418
4418
  }
4419
- function Zn(r) {
4419
+ function Xn(r) {
4420
4420
  let e;
4421
- return r.type === "document" ? e = ["Document", ot, "DocumentExit"] : r.type === "root" ? e = ["Root", ot, "RootExit"] : e = rl(r), {
4421
+ return r.type === "document" ? e = ["Document", at, "DocumentExit"] : r.type === "root" ? e = ["Root", at, "RootExit"] : e = rl(r), {
4422
4422
  eventIndex: 0,
4423
4423
  events: e,
4424
4424
  iterator: 0,
@@ -4428,15 +4428,15 @@ function Zn(r) {
4428
4428
  };
4429
4429
  }
4430
4430
  function es(r) {
4431
- return r[Se] = !1, r.nodes && r.nodes.forEach((e) => es(e)), r;
4431
+ return r[Ce] = !1, r.nodes && r.nodes.forEach((e) => es(e)), r;
4432
4432
  }
4433
- let ts = {}, at = class il {
4433
+ let ts = {}, lt = class il {
4434
4434
  constructor(e, t, i) {
4435
4435
  this.stringified = !1, this.processed = !1;
4436
4436
  let s;
4437
4437
  if (typeof t == "object" && t !== null && (t.type === "root" || t.type === "document"))
4438
4438
  s = es(t);
4439
- else if (t instanceof il || t instanceof Hn)
4439
+ else if (t instanceof il || t instanceof Zn)
4440
4440
  s = es(t.root), t.map && (typeof i.map > "u" && (i.map = {}), i.map.inline || (i.map.inline = !1), i.map.prev = t.map);
4441
4441
  else {
4442
4442
  let n = dd;
@@ -4448,7 +4448,7 @@ let ts = {}, at = class il {
4448
4448
  }
4449
4449
  s && !s[ad] && ud.rebuild(s);
4450
4450
  }
4451
- this.result = new Hn(e, s, i), this.helpers = { ...ts, postcss: ts, result: this.result }, this.plugins = this.processor.plugins.map((n) => typeof n == "object" && n.prepare ? { ...n, ...n.prepare(this.result) } : n);
4451
+ this.result = new Zn(e, s, i), this.helpers = { ...ts, postcss: ts, result: this.result }, this.plugins = this.processor.plugins.map((n) => typeof n == "object" && n.prepare ? { ...n, ...n.prepare(this.result) } : n);
4452
4452
  }
4453
4453
  async() {
4454
4454
  return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
@@ -4506,7 +4506,7 @@ let ts = {}, at = class il {
4506
4506
  this.plugin = 0;
4507
4507
  for (let e = 0; e < this.plugins.length; e++) {
4508
4508
  let t = this.plugins[e], i = this.runOnRoot(t);
4509
- if (pt(i))
4509
+ if (mt(i))
4510
4510
  try {
4511
4511
  await i;
4512
4512
  } catch (s) {
@@ -4515,12 +4515,12 @@ let ts = {}, at = class il {
4515
4515
  }
4516
4516
  if (this.prepareVisitors(), this.hasListener) {
4517
4517
  let e = this.result.root;
4518
- for (; !e[Se]; ) {
4519
- e[Se] = !0;
4520
- let t = [Zn(e)];
4518
+ for (; !e[Ce]; ) {
4519
+ e[Ce] = !0;
4520
+ let t = [Xn(e)];
4521
4521
  for (; t.length > 0; ) {
4522
4522
  let i = this.visitTick(t);
4523
- if (pt(i))
4523
+ if (mt(i))
4524
4524
  try {
4525
4525
  await i;
4526
4526
  } catch (s) {
@@ -4555,7 +4555,7 @@ let ts = {}, at = class il {
4555
4555
  let t = this.result.root.nodes.map(
4556
4556
  (i) => e.Once(i, this.helpers)
4557
4557
  );
4558
- return pt(t[0]) ? Promise.all(t) : t;
4558
+ return mt(t[0]) ? Promise.all(t) : t;
4559
4559
  }
4560
4560
  return e.Once(this.result.root, this.helpers);
4561
4561
  } else if (typeof e == "function")
@@ -4580,13 +4580,13 @@ let ts = {}, at = class il {
4580
4580
  throw this.getAsyncError();
4581
4581
  for (let e of this.plugins) {
4582
4582
  let t = this.runOnRoot(e);
4583
- if (pt(t))
4583
+ if (mt(t))
4584
4584
  throw this.getAsyncError();
4585
4585
  }
4586
4586
  if (this.prepareVisitors(), this.hasListener) {
4587
4587
  let e = this.result.root;
4588
- for (; !e[Se]; )
4589
- e[Se] = !0, this.walkSync(e);
4588
+ for (; !e[Ce]; )
4589
+ e[Ce] = !0, this.walkSync(e);
4590
4590
  if (this.listeners.OnceExit)
4591
4591
  if (e.type === "document")
4592
4592
  for (let t of e.nodes)
@@ -4615,7 +4615,7 @@ let ts = {}, at = class il {
4615
4615
  }
4616
4616
  if (t.type !== "root" && t.type !== "document" && !t.parent)
4617
4617
  return !0;
4618
- if (pt(n))
4618
+ if (mt(n))
4619
4619
  throw this.getAsyncError();
4620
4620
  }
4621
4621
  }
@@ -4637,8 +4637,8 @@ let ts = {}, at = class il {
4637
4637
  if (t.iterator !== 0) {
4638
4638
  let o = t.iterator, a;
4639
4639
  for (; a = i.nodes[i.indexes[o]]; )
4640
- if (i.indexes[o] += 1, !a[Se]) {
4641
- a[Se] = !0, e.push(Zn(a));
4640
+ if (i.indexes[o] += 1, !a[Ce]) {
4641
+ a[Ce] = !0, e.push(Xn(a));
4642
4642
  return;
4643
4643
  }
4644
4644
  t.iterator = 0, delete i.indexes[o];
@@ -4646,8 +4646,8 @@ let ts = {}, at = class il {
4646
4646
  let n = t.events;
4647
4647
  for (; t.eventIndex < n.length; ) {
4648
4648
  let o = n[t.eventIndex];
4649
- if (t.eventIndex += 1, o === ot) {
4650
- i.nodes && i.nodes.length && (i[Se] = !0, t.iterator = i.getIterator());
4649
+ if (t.eventIndex += 1, o === at) {
4650
+ i.nodes && i.nodes.length && (i[Ce] = !0, t.iterator = i.getIterator());
4651
4651
  return;
4652
4652
  } else if (this.listeners[o]) {
4653
4653
  t.visitors = this.listeners[o];
@@ -4657,12 +4657,12 @@ let ts = {}, at = class il {
4657
4657
  e.pop();
4658
4658
  }
4659
4659
  walkSync(e) {
4660
- e[Se] = !0;
4660
+ e[Ce] = !0;
4661
4661
  let t = rl(e);
4662
4662
  for (let i of t)
4663
- if (i === ot)
4663
+ if (i === at)
4664
4664
  e.nodes && e.each((s) => {
4665
- s[Se] || this.walkSync(s);
4665
+ s[Ce] || this.walkSync(s);
4666
4666
  });
4667
4667
  else {
4668
4668
  let s = this.listeners[i];
@@ -4698,15 +4698,15 @@ let ts = {}, at = class il {
4698
4698
  return "LazyResult";
4699
4699
  }
4700
4700
  };
4701
- at.registerPostcss = (r) => {
4701
+ lt.registerPostcss = (r) => {
4702
4702
  ts = r;
4703
4703
  };
4704
- var sl = at;
4705
- at.default = at;
4706
- pd.registerLazyResult(at);
4707
- hd.registerLazyResult(at);
4708
- let wd = La, bd = ti, vd = Za, Sd = Gs;
4709
- const Cd = js;
4704
+ var sl = lt;
4705
+ lt.default = lt;
4706
+ pd.registerLazyResult(lt);
4707
+ hd.registerLazyResult(lt);
4708
+ let wd = La, bd = ti, vd = Za, Sd = Ys;
4709
+ const Cd = Ws;
4710
4710
  let rs = class {
4711
4711
  constructor(e, t, i) {
4712
4712
  t = t.toString(), this.stringified = !1, this._processor = e, this._css = t, this._opts = i, this._map = void 0;
@@ -4786,7 +4786,7 @@ let rs = class {
4786
4786
  };
4787
4787
  var Ed = rs;
4788
4788
  rs.default = rs;
4789
- let xd = Ed, Ad = sl, Rd = zs, kd = jt, Tt = class {
4789
+ let xd = Ed, Ad = sl, Rd = js, kd = jt, Tt = class {
4790
4790
  constructor(e = []) {
4791
4791
  this.version = "8.4.38", this.plugins = this.normalize(e);
4792
4792
  }
@@ -4819,7 +4819,7 @@ var Md = Tt;
4819
4819
  Tt.default = Tt;
4820
4820
  kd.registerProcessor(Tt);
4821
4821
  Rd.registerProcessor(Tt);
4822
- let Nd = ii, _d = Ia, Id = ni, Dd = Ws, Td = si, Od = jt, Pd = Vs;
4822
+ let Nd = ii, _d = Ia, Id = ni, Dd = Vs, Td = si, Od = jt, Pd = Gs;
4823
4823
  function Ot(r, e) {
4824
4824
  if (Array.isArray(r)) return r.map((s) => Ot(s));
4825
4825
  let { inputs: t, ...i } = r;
@@ -4851,9 +4851,9 @@ function Ot(r, e) {
4851
4851
  }
4852
4852
  var Ld = Ot;
4853
4853
  Ot.default = Ot;
4854
- let $d = Fs, nl = ii, Fd = sl, Bd = je, Ys = Md, Ud = ti, zd = Ld, ol = zs, jd = Xa, al = ni, ll = Ws, Wd = js, Vd = si, Gd = Gs, Yd = el, cl = Vs, ul = jt, Hd = ri;
4854
+ let $d = Bs, nl = ii, Fd = sl, Bd = je, Hs = Md, Ud = ti, zd = Ld, ol = js, jd = Xa, al = ni, ll = Vs, Wd = Ws, Vd = si, Gd = Ys, Yd = el, cl = Gs, ul = jt, Hd = ri;
4855
4855
  function j(...r) {
4856
- return r.length === 1 && Array.isArray(r[0]) && (r = r[0]), new Ys(r);
4856
+ return r.length === 1 && Array.isArray(r[0]) && (r = r[0]), new Hs(r);
4857
4857
  }
4858
4858
  j.plugin = function(e, t) {
4859
4859
  let i = !1;
@@ -4866,7 +4866,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`
4866
4866
  https://www.w3ctech.com/topic/2226`
4867
4867
  ));
4868
4868
  let a = t(...o);
4869
- return a.postcssPlugin = e, a.postcssVersion = new Ys().version, a;
4869
+ return a.postcssPlugin = e, a.postcssVersion = new Hs().version, a;
4870
4870
  }
4871
4871
  let n;
4872
4872
  return Object.defineProperty(s, "postcss", {
@@ -4890,7 +4890,7 @@ j.document = (r) => new ol(r);
4890
4890
  j.CssSyntaxError = $d;
4891
4891
  j.Declaration = nl;
4892
4892
  j.Container = Bd;
4893
- j.Processor = Ys;
4893
+ j.Processor = Hs;
4894
4894
  j.Document = ol;
4895
4895
  j.Comment = al;
4896
4896
  j.Warning = jd;
@@ -4928,7 +4928,7 @@ X.Input;
4928
4928
  X.Rule;
4929
4929
  X.Root;
4930
4930
  X.Node;
4931
- const Xn = {
4931
+ const Jn = {
4932
4932
  script: "noscript",
4933
4933
  // camel case svg element tag names
4934
4934
  altglyph: "altGlyph",
@@ -4969,7 +4969,7 @@ const Xn = {
4969
4969
  radialgradient: "radialGradient"
4970
4970
  };
4971
4971
  function Xd(r) {
4972
- let e = Xn[r.tagName] ? Xn[r.tagName] : r.tagName;
4972
+ let e = Jn[r.tagName] ? Jn[r.tagName] : r.tagName;
4973
4973
  return e === "link" && r.attributes._cssText && (e = "style"), e;
4974
4974
  }
4975
4975
  function oi(r, e) {
@@ -4986,7 +4986,7 @@ function oi(r, e) {
4986
4986
  }
4987
4987
  return e?.stylesWithHoverClass.set(r, i), i;
4988
4988
  }
4989
- function Jn() {
4989
+ function Kn() {
4990
4990
  return {
4991
4991
  stylesWithHoverClass: /* @__PURE__ */ new Map()
4992
4992
  };
@@ -5229,10 +5229,10 @@ function tp(r, e) {
5229
5229
  i && i(c), ep(c, a);
5230
5230
  }), l;
5231
5231
  }
5232
- var rp = Object.defineProperty, ip = (r, e, t) => e in r ? rp(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, x = (r, e, t) => ip(r, typeof e != "symbol" ? e + "" : e, t), sp = Object.defineProperty, np = (r, e, t) => e in r ? sp(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Kn = (r, e, t) => np(r, typeof e != "symbol" ? e + "" : e, t);
5232
+ var rp = Object.defineProperty, ip = (r, e, t) => e in r ? rp(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, x = (r, e, t) => ip(r, typeof e != "symbol" ? e + "" : e, t), sp = Object.defineProperty, np = (r, e, t) => e in r ? sp(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, qn = (r, e, t) => np(r, typeof e != "symbol" ? e + "" : e, t);
5233
5233
  let op = class {
5234
5234
  constructor() {
5235
- Kn(this, "idNodeMap", /* @__PURE__ */ new Map()), Kn(this, "nodeMetaMap", /* @__PURE__ */ new WeakMap());
5235
+ qn(this, "idNodeMap", /* @__PURE__ */ new Map()), qn(this, "nodeMetaMap", /* @__PURE__ */ new WeakMap());
5236
5236
  }
5237
5237
  getId(e) {
5238
5238
  var t;
@@ -5302,17 +5302,17 @@ function cp(r) {
5302
5302
  });
5303
5303
  }), t;
5304
5304
  }
5305
- var Hs = { exports: {} }, H = String, hl = function() {
5305
+ var Zs = { exports: {} }, H = String, hl = function() {
5306
5306
  return { isColorSupported: !1, reset: H, bold: H, dim: H, italic: H, underline: H, inverse: H, hidden: H, strikethrough: H, black: H, red: H, green: H, yellow: H, blue: H, magenta: H, cyan: H, white: H, gray: H, bgBlack: H, bgRed: H, bgGreen: H, bgYellow: H, bgBlue: H, bgMagenta: H, bgCyan: H, bgWhite: H };
5307
5307
  };
5308
- Hs.exports = hl();
5309
- Hs.exports.createColors = hl;
5310
- var up = Hs.exports;
5308
+ Zs.exports = hl();
5309
+ Zs.exports.createColors = hl;
5310
+ var up = Zs.exports;
5311
5311
  const hp = {}, fp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5312
5312
  __proto__: null,
5313
5313
  default: hp
5314
- }, Symbol.toStringTag, { value: "Module" })), ye = /* @__PURE__ */ cp(fp);
5315
- let qn = up, Qn = ye, is = class fl extends Error {
5314
+ }, Symbol.toStringTag, { value: "Module" })), we = /* @__PURE__ */ cp(fp);
5315
+ let Qn = up, eo = we, is = class fl extends Error {
5316
5316
  constructor(e, t, i, s, n, o) {
5317
5317
  super(e), this.name = "CssSyntaxError", this.reason = e, n && (this.file = n), s && (this.source = s), o && (this.plugin = o), typeof t < "u" && typeof i < "u" && (typeof t == "number" ? (this.line = t, this.column = i) : (this.line = t.line, this.column = t.column, this.endLine = i.line, this.endColumn = i.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, fl);
5318
5318
  }
@@ -5322,10 +5322,10 @@ let qn = up, Qn = ye, is = class fl extends Error {
5322
5322
  showSourceCode(e) {
5323
5323
  if (!this.source) return "";
5324
5324
  let t = this.source;
5325
- e == null && (e = qn.isColorSupported), Qn && e && (t = Qn(t));
5325
+ e == null && (e = Qn.isColorSupported), eo && e && (t = eo(t));
5326
5326
  let i = t.split(/\r?\n/), s = Math.max(this.line - 3, 0), n = Math.min(this.line + 2, i.length), o = String(n).length, a, l;
5327
5327
  if (e) {
5328
- let { bold: c, gray: u, red: h } = qn.createColors(!0);
5328
+ let { bold: c, gray: u, red: h } = Qn.createColors(!0);
5329
5329
  a = (f) => c(h(f)), l = (f) => u(f);
5330
5330
  } else
5331
5331
  a = l = (c) => c;
@@ -5348,12 +5348,12 @@ let qn = up, Qn = ye, is = class fl extends Error {
5348
5348
  `), this.name + ": " + this.message + e;
5349
5349
  }
5350
5350
  };
5351
- var Zs = is;
5351
+ var Xs = is;
5352
5352
  is.default = is;
5353
5353
  var Wt = {};
5354
5354
  Wt.isClean = Symbol("isClean");
5355
5355
  Wt.my = Symbol("my");
5356
- const eo = {
5356
+ const to = {
5357
5357
  after: `
5358
5358
  `,
5359
5359
  beforeClose: `
@@ -5436,7 +5436,7 @@ let ss = class {
5436
5436
  let n = e.parent;
5437
5437
  if (i === "before" && (!n || n.type === "root" && n.first === e || n && n.type === "document"))
5438
5438
  return "";
5439
- if (!n) return eo[i];
5439
+ if (!n) return to[i];
5440
5440
  let o = e.root();
5441
5441
  if (o.rawCache || (o.rawCache = {}), typeof o.rawCache[i] < "u")
5442
5442
  return o.rawCache[i];
@@ -5448,7 +5448,7 @@ let ss = class {
5448
5448
  if (s = l.raws[t], typeof s < "u") return !1;
5449
5449
  });
5450
5450
  }
5451
- return typeof s > "u" && (s = eo[i]), o.rawCache[i] = s, s;
5451
+ return typeof s > "u" && (s = to[i]), o.rawCache[i] = s, s;
5452
5452
  }
5453
5453
  rawBeforeClose(e) {
5454
5454
  let t;
@@ -5548,7 +5548,7 @@ function ns(r, e) {
5548
5548
  }
5549
5549
  var ai = ns;
5550
5550
  ns.default = ns;
5551
- let { isClean: ar, my: mp } = Wt, gp = Zs, yp = dl, wp = ai;
5551
+ let { isClean: ar, my: mp } = Wt, gp = Xs, yp = dl, wp = ai;
5552
5552
  function os(r, e) {
5553
5553
  let t = new r.constructor();
5554
5554
  for (let i in r) {
@@ -5772,7 +5772,7 @@ let vp = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Sp
5772
5772
  return e;
5773
5773
  };
5774
5774
  var Cp = { nanoid: Sp };
5775
- let { SourceMapConsumer: to, SourceMapGenerator: ro } = ye, { existsSync: Ep, readFileSync: xp } = ye, { dirname: Si, join: Ap } = ye;
5775
+ let { SourceMapConsumer: ro, SourceMapGenerator: io } = we, { existsSync: Ep, readFileSync: xp } = we, { dirname: Si, join: Ap } = we;
5776
5776
  function Rp(r) {
5777
5777
  return Buffer ? Buffer.from(r, "base64").toString() : window.atob(r);
5778
5778
  }
@@ -5784,7 +5784,7 @@ let cs = class {
5784
5784
  !this.mapFile && t.from && (this.mapFile = t.from), this.mapFile && (this.root = Si(this.mapFile)), s && (this.text = s);
5785
5785
  }
5786
5786
  consumer() {
5787
- return this.consumerCache || (this.consumerCache = new to(this.text)), this.consumerCache;
5787
+ return this.consumerCache || (this.consumerCache = new ro(this.text)), this.consumerCache;
5788
5788
  }
5789
5789
  decodeInline(e) {
5790
5790
  let t = /^data:application\/json;charset=utf-?8;base64,/, i = /^data:application\/json;base64,/, s = /^data:application\/json;charset=utf-?8,/, n = /^data:application\/json,/;
@@ -5827,9 +5827,9 @@ let cs = class {
5827
5827
  return s;
5828
5828
  }
5829
5829
  } else {
5830
- if (t instanceof to)
5831
- return ro.fromSourceMap(t).toString();
5832
5830
  if (t instanceof ro)
5831
+ return io.fromSourceMap(t).toString();
5832
+ if (t instanceof io)
5833
5833
  return t.toString();
5834
5834
  if (this.isMap(t))
5835
5835
  return JSON.stringify(t);
@@ -5855,11 +5855,11 @@ let cs = class {
5855
5855
  };
5856
5856
  var pl = cs;
5857
5857
  cs.default = cs;
5858
- let { SourceMapConsumer: kp, SourceMapGenerator: Mp } = ye, { fileURLToPath: io, pathToFileURL: lr } = ye, { isAbsolute: us, resolve: hs } = ye, { nanoid: Np } = Cp, Ci = ye, so = Zs, _p = pl, Ei = Symbol("fromOffsetCache"), Ip = !!(kp && Mp), no = !!(hs && us), Ur = class {
5858
+ let { SourceMapConsumer: kp, SourceMapGenerator: Mp } = we, { fileURLToPath: so, pathToFileURL: lr } = we, { isAbsolute: us, resolve: hs } = we, { nanoid: Np } = Cp, Ci = we, no = Xs, _p = pl, Ei = Symbol("fromOffsetCache"), Ip = !!(kp && Mp), oo = !!(hs && us), Ur = class {
5859
5859
  constructor(e, t = {}) {
5860
5860
  if (e === null || typeof e > "u" || typeof e == "object" && !e.toString)
5861
5861
  throw new Error(`PostCSS received ${e} instead of CSS string`);
5862
- if (this.css = e.toString(), this.css[0] === "\uFEFF" || this.css[0] === "￾" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, t.from && (!no || /^\w+:\/\//.test(t.from) || us(t.from) ? this.file = t.from : this.file = hs(t.from)), no && Ip) {
5862
+ if (this.css = e.toString(), this.css[0] === "\uFEFF" || this.css[0] === "￾" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, t.from && (!oo || /^\w+:\/\//.test(t.from) || us(t.from) ? this.file = t.from : this.file = hs(t.from)), oo && Ip) {
5863
5863
  let i = new _p(this.css, t);
5864
5864
  if (i.text) {
5865
5865
  this.map = i;
@@ -5888,14 +5888,14 @@ let { SourceMapConsumer: kp, SourceMapGenerator: Mp } = ye, { fileURLToPath: io,
5888
5888
  t = c.line, i = c.col;
5889
5889
  }
5890
5890
  let l = this.origin(t, i, o, a);
5891
- return l ? n = new so(
5891
+ return l ? n = new no(
5892
5892
  e,
5893
5893
  l.endLine === void 0 ? l.line : { column: l.column, line: l.line },
5894
5894
  l.endLine === void 0 ? l.column : { column: l.endColumn, line: l.endLine },
5895
5895
  l.source,
5896
5896
  l.file,
5897
5897
  s.plugin
5898
- ) : n = new so(
5898
+ ) : n = new no(
5899
5899
  e,
5900
5900
  o === void 0 ? t : { column: i, line: t },
5901
5901
  o === void 0 ? i : { column: a, line: o },
@@ -5960,8 +5960,8 @@ let { SourceMapConsumer: kp, SourceMapGenerator: Mp } = ye, { fileURLToPath: io,
5960
5960
  url: l.toString()
5961
5961
  };
5962
5962
  if (l.protocol === "file:")
5963
- if (io)
5964
- c.file = io(l);
5963
+ if (so)
5964
+ c.file = so(l);
5965
5965
  else
5966
5966
  throw new Error("file: protocol is not available in this PostCSS build");
5967
5967
  let u = n.sourceContentFor(o.source);
@@ -5980,7 +5980,7 @@ let { SourceMapConsumer: kp, SourceMapGenerator: Mp } = ye, { fileURLToPath: io,
5980
5980
  var ui = Ur;
5981
5981
  Ur.default = Ur;
5982
5982
  Ci && Ci.registerInput && Ci.registerInput(Ur);
5983
- let { SourceMapConsumer: ml, SourceMapGenerator: _r } = ye, { dirname: Ir, relative: gl, resolve: yl, sep: wl } = ye, { pathToFileURL: oo } = ye, Dp = ui, Tp = !!(ml && _r), Op = !!(Ir && yl && gl && wl), Pp = class {
5983
+ let { SourceMapConsumer: ml, SourceMapGenerator: _r } = we, { dirname: Ir, relative: gl, resolve: yl, sep: wl } = we, { pathToFileURL: ao } = we, Dp = ui, Tp = !!(ml && _r), Op = !!(Ir && yl && gl && wl), Pp = class {
5984
5984
  constructor(e, t, i, s) {
5985
5985
  this.stringify = e, this.mapOpts = i.map || {}, this.root = t, this.opts = i, this.css = s, this.originalCSS = s, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
5986
5986
  }
@@ -6123,8 +6123,8 @@ let { SourceMapConsumer: ml, SourceMapGenerator: _r } = ye, { dirname: Ir, relat
6123
6123
  toFileUrl(e) {
6124
6124
  let t = this.memoizedFileURLs.get(e);
6125
6125
  if (t) return t;
6126
- if (oo) {
6127
- let i = oo(e).toString();
6126
+ if (ao) {
6127
+ let i = ao(e).toString();
6128
6128
  return this.memoizedFileURLs.set(e, i), i;
6129
6129
  } else
6130
6130
  throw new Error(
@@ -6147,7 +6147,7 @@ let Lp = li, fs = class extends Lp {
6147
6147
  };
6148
6148
  var hi = fs;
6149
6149
  fs.default = fs;
6150
- let { isClean: vl, my: Sl } = Wt, Cl = ci, El = hi, $p = li, xl, Xs, Js, Al;
6150
+ let { isClean: vl, my: Sl } = Wt, Cl = ci, El = hi, $p = li, xl, Js, Ks, Al;
6151
6151
  function Rl(r) {
6152
6152
  return r.map((e) => (e.nodes && (e.nodes = Rl(e.nodes)), delete e.source, e));
6153
6153
  }
@@ -6238,9 +6238,9 @@ let _e = class Ml extends $p {
6238
6238
  throw new Error("Value field is missed in node creation");
6239
6239
  typeof e.value != "string" && (e.value = String(e.value)), e = [new Cl(e)];
6240
6240
  } else if (e.selector)
6241
- e = [new Xs(e)];
6242
- else if (e.name)
6243
6241
  e = [new Js(e)];
6242
+ else if (e.name)
6243
+ e = [new Ks(e)];
6244
6244
  else if (e.text)
6245
6245
  e = [new El(e)];
6246
6246
  else
@@ -6345,10 +6345,10 @@ _e.registerParse = (r) => {
6345
6345
  xl = r;
6346
6346
  };
6347
6347
  _e.registerRule = (r) => {
6348
- Xs = r;
6348
+ Js = r;
6349
6349
  };
6350
6350
  _e.registerAtRule = (r) => {
6351
- Js = r;
6351
+ Ks = r;
6352
6352
  };
6353
6353
  _e.registerRoot = (r) => {
6354
6354
  Al = r;
@@ -6356,7 +6356,7 @@ _e.registerRoot = (r) => {
6356
6356
  var We = _e;
6357
6357
  _e.default = _e;
6358
6358
  _e.rebuild = (r) => {
6359
- r.type === "atrule" ? Object.setPrototypeOf(r, Js.prototype) : r.type === "rule" ? Object.setPrototypeOf(r, Xs.prototype) : r.type === "decl" ? Object.setPrototypeOf(r, Cl.prototype) : r.type === "comment" ? Object.setPrototypeOf(r, El.prototype) : r.type === "root" && Object.setPrototypeOf(r, Al.prototype), r[Sl] = !0, r.nodes && r.nodes.forEach((e) => {
6359
+ r.type === "atrule" ? Object.setPrototypeOf(r, Ks.prototype) : r.type === "rule" ? Object.setPrototypeOf(r, Js.prototype) : r.type === "decl" ? Object.setPrototypeOf(r, Cl.prototype) : r.type === "comment" ? Object.setPrototypeOf(r, El.prototype) : r.type === "root" && Object.setPrototypeOf(r, Al.prototype), r[Sl] = !0, r.nodes && r.nodes.forEach((e) => {
6360
6360
  _e.rebuild(e);
6361
6361
  });
6362
6362
  };
@@ -6374,11 +6374,11 @@ Pt.registerLazyResult = (r) => {
6374
6374
  Pt.registerProcessor = (r) => {
6375
6375
  _l = r;
6376
6376
  };
6377
- var Ks = Pt;
6377
+ var qs = Pt;
6378
6378
  Pt.default = Pt;
6379
- let ao = {};
6379
+ let lo = {};
6380
6380
  var Il = function(e) {
6381
- ao[e] || (ao[e] = !0, typeof console < "u" && console.warn && console.warn(e));
6381
+ lo[e] || (lo[e] = !0, typeof console < "u" && console.warn && console.warn(e));
6382
6382
  };
6383
6383
  let ds = class {
6384
6384
  constructor(e, t = {}) {
@@ -6417,9 +6417,9 @@ let Bp = Dl, ps = class {
6417
6417
  return this.css;
6418
6418
  }
6419
6419
  };
6420
- var qs = ps;
6420
+ var Qs = ps;
6421
6421
  ps.default = ps;
6422
- const xi = 39, lo = 34, cr = 92, co = 47, ur = 10, mt = 32, hr = 12, fr = 9, dr = 13, Up = 91, zp = 93, jp = 40, Wp = 41, Vp = 123, Gp = 125, Yp = 59, Hp = 42, Zp = 58, Xp = 64, pr = /[\t\n\f\r "#'()/;[\\\]{}]/g, mr = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Jp = /.[\r\n"'(/\\]/, uo = /[\da-f]/i;
6422
+ const xi = 39, co = 34, cr = 92, uo = 47, ur = 10, gt = 32, hr = 12, fr = 9, dr = 13, Up = 91, zp = 93, jp = 40, Wp = 41, Vp = 123, Gp = 125, Yp = 59, Hp = 42, Zp = 58, Xp = 64, pr = /[\t\n\f\r "#'()/;[\\\]{}]/g, mr = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Jp = /.[\r\n"'(/\\]/, ho = /[\da-f]/i;
6423
6423
  var Kp = function(e, t = {}) {
6424
6424
  let i = e.css.valueOf(), s = t.ignoreErrors, n, o, a, l, c, u, h, f, d, m, w = i.length, p = 0, g = [], b = [];
6425
6425
  function v() {
@@ -6437,14 +6437,14 @@ var Kp = function(e, t = {}) {
6437
6437
  let K = T ? T.ignoreUnclosed : !1;
6438
6438
  switch (n = i.charCodeAt(p), n) {
6439
6439
  case ur:
6440
- case mt:
6440
+ case gt:
6441
6441
  case fr:
6442
6442
  case dr:
6443
6443
  case hr: {
6444
6444
  o = p;
6445
6445
  do
6446
6446
  o += 1, n = i.charCodeAt(o);
6447
- while (n === mt || n === ur || n === fr || n === dr || n === hr);
6447
+ while (n === gt || n === ur || n === fr || n === dr || n === hr);
6448
6448
  m = ["space", i.slice(p, o)], p = o - 1;
6449
6449
  break;
6450
6450
  }
@@ -6460,7 +6460,7 @@ var Kp = function(e, t = {}) {
6460
6460
  break;
6461
6461
  }
6462
6462
  case jp: {
6463
- if (f = g.length ? g.pop()[1] : "", d = i.charCodeAt(p + 1), f === "url" && d !== xi && d !== lo && d !== mt && d !== ur && d !== fr && d !== hr && d !== dr) {
6463
+ if (f = g.length ? g.pop()[1] : "", d = i.charCodeAt(p + 1), f === "url" && d !== xi && d !== co && d !== gt && d !== ur && d !== fr && d !== hr && d !== dr) {
6464
6464
  o = p;
6465
6465
  do {
6466
6466
  if (u = !1, o = i.indexOf(")", o + 1), o === -1)
@@ -6478,7 +6478,7 @@ var Kp = function(e, t = {}) {
6478
6478
  break;
6479
6479
  }
6480
6480
  case xi:
6481
- case lo: {
6481
+ case co: {
6482
6482
  a = n === xi ? "'" : '"', o = p;
6483
6483
  do {
6484
6484
  if (u = !1, o = i.indexOf(a, o + 1), o === -1)
@@ -6500,16 +6500,16 @@ var Kp = function(e, t = {}) {
6500
6500
  case cr: {
6501
6501
  for (o = p, c = !0; i.charCodeAt(o + 1) === cr; )
6502
6502
  o += 1, c = !c;
6503
- if (n = i.charCodeAt(o + 1), c && n !== co && n !== mt && n !== ur && n !== fr && n !== dr && n !== hr && (o += 1, uo.test(i.charAt(o)))) {
6504
- for (; uo.test(i.charAt(o + 1)); )
6503
+ if (n = i.charCodeAt(o + 1), c && n !== uo && n !== gt && n !== ur && n !== fr && n !== dr && n !== hr && (o += 1, ho.test(i.charAt(o)))) {
6504
+ for (; ho.test(i.charAt(o + 1)); )
6505
6505
  o += 1;
6506
- i.charCodeAt(o + 1) === mt && (o += 1);
6506
+ i.charCodeAt(o + 1) === gt && (o += 1);
6507
6507
  }
6508
6508
  m = ["word", i.slice(p, o + 1), p, o], p = o;
6509
6509
  break;
6510
6510
  }
6511
6511
  default: {
6512
- n === co && i.charCodeAt(p + 1) === Hp ? (o = i.indexOf("*/", p + 2) + 1, o === 0 && (s || K ? o = i.length : E("comment")), m = ["comment", i.slice(p, o + 1), p, o], p = o) : (mr.lastIndex = p + 1, mr.test(i), mr.lastIndex === 0 ? o = i.length - 1 : o = mr.lastIndex - 2, m = ["word", i.slice(p, o + 1), p, o], g.push(m), p = o);
6512
+ n === uo && i.charCodeAt(p + 1) === Hp ? (o = i.indexOf("*/", p + 2) + 1, o === 0 && (s || K ? o = i.length : E("comment")), m = ["comment", i.slice(p, o + 1), p, o], p = o) : (mr.lastIndex = p + 1, mr.test(i), mr.lastIndex === 0 ? o = i.length - 1 : o = mr.lastIndex - 2, m = ["word", i.slice(p, o + 1), p, o], g.push(m), p = o);
6513
6513
  break;
6514
6514
  }
6515
6515
  }
@@ -6536,10 +6536,10 @@ let Tl = We, zr = class extends Tl {
6536
6536
  return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e);
6537
6537
  }
6538
6538
  };
6539
- var Qs = zr;
6539
+ var en = zr;
6540
6540
  zr.default = zr;
6541
6541
  Tl.registerAtRule(zr);
6542
- let Ol = We, Pl, Ll, lt = class extends Ol {
6542
+ let Ol = We, Pl, Ll, ct = class extends Ol {
6543
6543
  constructor(e) {
6544
6544
  super(e), this.type = "root", this.nodes || (this.nodes = []);
6545
6545
  }
@@ -6562,15 +6562,15 @@ let Ol = We, Pl, Ll, lt = class extends Ol {
6562
6562
  return new Pl(new Ll(), this, e).stringify();
6563
6563
  }
6564
6564
  };
6565
- lt.registerLazyResult = (r) => {
6565
+ ct.registerLazyResult = (r) => {
6566
6566
  Pl = r;
6567
6567
  };
6568
- lt.registerProcessor = (r) => {
6568
+ ct.registerProcessor = (r) => {
6569
6569
  Ll = r;
6570
6570
  };
6571
- var Vt = lt;
6572
- lt.default = lt;
6573
- Ol.registerRoot(lt);
6571
+ var Vt = ct;
6572
+ ct.default = ct;
6573
+ Ol.registerRoot(ct);
6574
6574
  let Lt = {
6575
6575
  comma(r) {
6576
6576
  return Lt.split(r, [","], !0);
@@ -6601,11 +6601,11 @@ let Fl = We, qp = $l, jr = class extends Fl {
6601
6601
  this.selector = e.join(i);
6602
6602
  }
6603
6603
  };
6604
- var en = jr;
6604
+ var tn = jr;
6605
6605
  jr.default = jr;
6606
6606
  Fl.registerRule(jr);
6607
- let Qp = ci, em = Kp, tm = hi, rm = Qs, im = Vt, ho = en;
6608
- const fo = {
6607
+ let Qp = ci, em = Kp, tm = hi, rm = en, im = Vt, fo = tn;
6608
+ const po = {
6609
6609
  empty: !0,
6610
6610
  space: !0
6611
6611
  };
@@ -6746,7 +6746,7 @@ let nm = class {
6746
6746
  );
6747
6747
  }
6748
6748
  emptyRule(e) {
6749
- let t = new ho();
6749
+ let t = new fo();
6750
6750
  this.init(t, e[2]), t.selector = "", t.raws.between = "", this.current = t;
6751
6751
  }
6752
6752
  end(e) {
@@ -6841,7 +6841,7 @@ let nm = class {
6841
6841
  raw(e, t, i, s) {
6842
6842
  let n, o, a = i.length, l = "", c = !0, u, h;
6843
6843
  for (let f = 0; f < a; f += 1)
6844
- n = i[f], o = n[0], o === "space" && f === a - 1 && !s ? c = !1 : o === "comment" ? (h = i[f - 1] ? i[f - 1][0] : "empty", u = i[f + 1] ? i[f + 1][0] : "empty", !fo[h] && !fo[u] ? l.slice(-1) === "," ? c = !1 : l += n[1] : c = !1) : l += n[1];
6844
+ n = i[f], o = n[0], o === "space" && f === a - 1 && !s ? c = !1 : o === "comment" ? (h = i[f - 1] ? i[f - 1][0] : "empty", u = i[f + 1] ? i[f + 1][0] : "empty", !po[h] && !po[u] ? l.slice(-1) === "," ? c = !1 : l += n[1] : c = !1) : l += n[1];
6845
6845
  if (!c) {
6846
6846
  let f = i.reduce((d, m) => d + m[1], "");
6847
6847
  e.raws[t] = { raw: f, value: l };
@@ -6850,7 +6850,7 @@ let nm = class {
6850
6850
  }
6851
6851
  rule(e) {
6852
6852
  e.pop();
6853
- let t = new ho();
6853
+ let t = new fo();
6854
6854
  this.init(t, e[0][2]), t.raws.between = this.spacesAndCommentsFromEnd(e), this.raw(t, "selector", e), this.current = t;
6855
6855
  }
6856
6856
  spacesAndCommentsFromEnd(e) {
@@ -6925,10 +6925,10 @@ You tried to parse Less with the standard CSS parser; try again with the postcss
6925
6925
  }
6926
6926
  return i.root;
6927
6927
  }
6928
- var tn = Wr;
6928
+ var rn = Wr;
6929
6929
  Wr.default = Wr;
6930
6930
  am.registerParse(Wr);
6931
- let { isClean: Ce, my: um } = Wt, hm = bl, fm = ai, dm = We, pm = Ks, mm = Il, po = qs, gm = tn, ym = Vt;
6931
+ let { isClean: Ee, my: um } = Wt, hm = bl, fm = ai, dm = We, pm = qs, mm = Il, mo = Qs, gm = rn, ym = Vt;
6932
6932
  const wm = {
6933
6933
  atrule: "AtRule",
6934
6934
  comment: "Comment",
@@ -6957,8 +6957,8 @@ const wm = {
6957
6957
  Once: !0,
6958
6958
  postcssPlugin: !0,
6959
6959
  prepare: !0
6960
- }, ct = 0;
6961
- function gt(r) {
6960
+ }, ut = 0;
6961
+ function yt(r) {
6962
6962
  return typeof r == "object" && typeof r.then == "function";
6963
6963
  }
6964
6964
  function Bl(r) {
@@ -6966,14 +6966,14 @@ function Bl(r) {
6966
6966
  return r.type === "decl" ? e = r.prop.toLowerCase() : r.type === "atrule" && (e = r.name.toLowerCase()), e && r.append ? [
6967
6967
  t,
6968
6968
  t + "-" + e,
6969
- ct,
6969
+ ut,
6970
6970
  t + "Exit",
6971
6971
  t + "Exit-" + e
6972
- ] : e ? [t, t + "-" + e, t + "Exit", t + "Exit-" + e] : r.append ? [t, ct, t + "Exit"] : [t, t + "Exit"];
6972
+ ] : e ? [t, t + "-" + e, t + "Exit", t + "Exit-" + e] : r.append ? [t, ut, t + "Exit"] : [t, t + "Exit"];
6973
6973
  }
6974
- function mo(r) {
6974
+ function go(r) {
6975
6975
  let e;
6976
- return r.type === "document" ? e = ["Document", ct, "DocumentExit"] : r.type === "root" ? e = ["Root", ct, "RootExit"] : e = Bl(r), {
6976
+ return r.type === "document" ? e = ["Document", ut, "DocumentExit"] : r.type === "root" ? e = ["Root", ut, "RootExit"] : e = Bl(r), {
6977
6977
  eventIndex: 0,
6978
6978
  events: e,
6979
6979
  iterator: 0,
@@ -6983,15 +6983,15 @@ function mo(r) {
6983
6983
  };
6984
6984
  }
6985
6985
  function ms(r) {
6986
- return r[Ce] = !1, r.nodes && r.nodes.forEach((e) => ms(e)), r;
6986
+ return r[Ee] = !1, r.nodes && r.nodes.forEach((e) => ms(e)), r;
6987
6987
  }
6988
- let gs = {}, ut = class Ul {
6988
+ let gs = {}, ht = class Ul {
6989
6989
  constructor(e, t, i) {
6990
6990
  this.stringified = !1, this.processed = !1;
6991
6991
  let s;
6992
6992
  if (typeof t == "object" && t !== null && (t.type === "root" || t.type === "document"))
6993
6993
  s = ms(t);
6994
- else if (t instanceof Ul || t instanceof po)
6994
+ else if (t instanceof Ul || t instanceof mo)
6995
6995
  s = ms(t.root), t.map && (typeof i.map > "u" && (i.map = {}), i.map.inline || (i.map.inline = !1), i.map.prev = t.map);
6996
6996
  else {
6997
6997
  let n = gm;
@@ -7003,7 +7003,7 @@ let gs = {}, ut = class Ul {
7003
7003
  }
7004
7004
  s && !s[um] && dm.rebuild(s);
7005
7005
  }
7006
- this.result = new po(e, s, i), this.helpers = { ...gs, postcss: gs, result: this.result }, this.plugins = this.processor.plugins.map((n) => typeof n == "object" && n.prepare ? { ...n, ...n.prepare(this.result) } : n);
7006
+ this.result = new mo(e, s, i), this.helpers = { ...gs, postcss: gs, result: this.result }, this.plugins = this.processor.plugins.map((n) => typeof n == "object" && n.prepare ? { ...n, ...n.prepare(this.result) } : n);
7007
7007
  }
7008
7008
  async() {
7009
7009
  return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
@@ -7061,7 +7061,7 @@ let gs = {}, ut = class Ul {
7061
7061
  this.plugin = 0;
7062
7062
  for (let e = 0; e < this.plugins.length; e++) {
7063
7063
  let t = this.plugins[e], i = this.runOnRoot(t);
7064
- if (gt(i))
7064
+ if (yt(i))
7065
7065
  try {
7066
7066
  await i;
7067
7067
  } catch (s) {
@@ -7070,12 +7070,12 @@ let gs = {}, ut = class Ul {
7070
7070
  }
7071
7071
  if (this.prepareVisitors(), this.hasListener) {
7072
7072
  let e = this.result.root;
7073
- for (; !e[Ce]; ) {
7074
- e[Ce] = !0;
7075
- let t = [mo(e)];
7073
+ for (; !e[Ee]; ) {
7074
+ e[Ee] = !0;
7075
+ let t = [go(e)];
7076
7076
  for (; t.length > 0; ) {
7077
7077
  let i = this.visitTick(t);
7078
- if (gt(i))
7078
+ if (yt(i))
7079
7079
  try {
7080
7080
  await i;
7081
7081
  } catch (s) {
@@ -7110,7 +7110,7 @@ let gs = {}, ut = class Ul {
7110
7110
  let t = this.result.root.nodes.map(
7111
7111
  (i) => e.Once(i, this.helpers)
7112
7112
  );
7113
- return gt(t[0]) ? Promise.all(t) : t;
7113
+ return yt(t[0]) ? Promise.all(t) : t;
7114
7114
  }
7115
7115
  return e.Once(this.result.root, this.helpers);
7116
7116
  } else if (typeof e == "function")
@@ -7135,13 +7135,13 @@ let gs = {}, ut = class Ul {
7135
7135
  throw this.getAsyncError();
7136
7136
  for (let e of this.plugins) {
7137
7137
  let t = this.runOnRoot(e);
7138
- if (gt(t))
7138
+ if (yt(t))
7139
7139
  throw this.getAsyncError();
7140
7140
  }
7141
7141
  if (this.prepareVisitors(), this.hasListener) {
7142
7142
  let e = this.result.root;
7143
- for (; !e[Ce]; )
7144
- e[Ce] = !0, this.walkSync(e);
7143
+ for (; !e[Ee]; )
7144
+ e[Ee] = !0, this.walkSync(e);
7145
7145
  if (this.listeners.OnceExit)
7146
7146
  if (e.type === "document")
7147
7147
  for (let t of e.nodes)
@@ -7170,7 +7170,7 @@ let gs = {}, ut = class Ul {
7170
7170
  }
7171
7171
  if (t.type !== "root" && t.type !== "document" && !t.parent)
7172
7172
  return !0;
7173
- if (gt(n))
7173
+ if (yt(n))
7174
7174
  throw this.getAsyncError();
7175
7175
  }
7176
7176
  }
@@ -7192,8 +7192,8 @@ let gs = {}, ut = class Ul {
7192
7192
  if (t.iterator !== 0) {
7193
7193
  let o = t.iterator, a;
7194
7194
  for (; a = i.nodes[i.indexes[o]]; )
7195
- if (i.indexes[o] += 1, !a[Ce]) {
7196
- a[Ce] = !0, e.push(mo(a));
7195
+ if (i.indexes[o] += 1, !a[Ee]) {
7196
+ a[Ee] = !0, e.push(go(a));
7197
7197
  return;
7198
7198
  }
7199
7199
  t.iterator = 0, delete i.indexes[o];
@@ -7201,8 +7201,8 @@ let gs = {}, ut = class Ul {
7201
7201
  let n = t.events;
7202
7202
  for (; t.eventIndex < n.length; ) {
7203
7203
  let o = n[t.eventIndex];
7204
- if (t.eventIndex += 1, o === ct) {
7205
- i.nodes && i.nodes.length && (i[Ce] = !0, t.iterator = i.getIterator());
7204
+ if (t.eventIndex += 1, o === ut) {
7205
+ i.nodes && i.nodes.length && (i[Ee] = !0, t.iterator = i.getIterator());
7206
7206
  return;
7207
7207
  } else if (this.listeners[o]) {
7208
7208
  t.visitors = this.listeners[o];
@@ -7212,12 +7212,12 @@ let gs = {}, ut = class Ul {
7212
7212
  e.pop();
7213
7213
  }
7214
7214
  walkSync(e) {
7215
- e[Ce] = !0;
7215
+ e[Ee] = !0;
7216
7216
  let t = Bl(e);
7217
7217
  for (let i of t)
7218
- if (i === ct)
7218
+ if (i === ut)
7219
7219
  e.nodes && e.each((s) => {
7220
- s[Ce] || this.walkSync(s);
7220
+ s[Ee] || this.walkSync(s);
7221
7221
  });
7222
7222
  else {
7223
7223
  let s = this.listeners[i];
@@ -7253,15 +7253,15 @@ let gs = {}, ut = class Ul {
7253
7253
  return "LazyResult";
7254
7254
  }
7255
7255
  };
7256
- ut.registerPostcss = (r) => {
7256
+ ht.registerPostcss = (r) => {
7257
7257
  gs = r;
7258
7258
  };
7259
- var zl = ut;
7260
- ut.default = ut;
7261
- ym.registerLazyResult(ut);
7262
- pm.registerLazyResult(ut);
7263
- let Sm = bl, Cm = ai, Em = Il, xm = tn;
7264
- const Am = qs;
7259
+ var zl = ht;
7260
+ ht.default = ht;
7261
+ ym.registerLazyResult(ht);
7262
+ pm.registerLazyResult(ht);
7263
+ let Sm = bl, Cm = ai, Em = Il, xm = rn;
7264
+ const Am = Qs;
7265
7265
  let ys = class {
7266
7266
  constructor(e, t, i) {
7267
7267
  t = t.toString(), this.stringified = !1, this._processor = e, this._css = t, this._opts = i, this._map = void 0;
@@ -7341,7 +7341,7 @@ let ys = class {
7341
7341
  };
7342
7342
  var Rm = ys;
7343
7343
  ys.default = ys;
7344
- let km = Rm, Mm = zl, Nm = Ks, _m = Vt, $t = class {
7344
+ let km = Rm, Mm = zl, Nm = qs, _m = Vt, $t = class {
7345
7345
  constructor(e = []) {
7346
7346
  this.version = "8.4.38", this.plugins = this.normalize(e);
7347
7347
  }
@@ -7374,7 +7374,7 @@ var Im = $t;
7374
7374
  $t.default = $t;
7375
7375
  _m.registerProcessor($t);
7376
7376
  Nm.registerProcessor($t);
7377
- let Dm = ci, Tm = pl, Om = hi, Pm = Qs, Lm = ui, $m = Vt, Fm = en;
7377
+ let Dm = ci, Tm = pl, Om = hi, Pm = en, Lm = ui, $m = Vt, Fm = tn;
7378
7378
  function Ft(r, e) {
7379
7379
  if (Array.isArray(r)) return r.map((s) => Ft(s));
7380
7380
  let { inputs: t, ...i } = r;
@@ -7406,9 +7406,9 @@ function Ft(r, e) {
7406
7406
  }
7407
7407
  var Bm = Ft;
7408
7408
  Ft.default = Ft;
7409
- let Um = Zs, jl = ci, zm = zl, jm = We, rn = Im, Wm = ai, Vm = Bm, Wl = Ks, Gm = Dl, Vl = hi, Gl = Qs, Ym = qs, Hm = ui, Zm = tn, Xm = $l, Yl = en, Hl = Vt, Jm = li;
7409
+ let Um = Xs, jl = ci, zm = zl, jm = We, sn = Im, Wm = ai, Vm = Bm, Wl = qs, Gm = Dl, Vl = hi, Gl = en, Ym = Qs, Hm = ui, Zm = rn, Xm = $l, Yl = tn, Hl = Vt, Jm = li;
7410
7410
  function W(...r) {
7411
- return r.length === 1 && Array.isArray(r[0]) && (r = r[0]), new rn(r);
7411
+ return r.length === 1 && Array.isArray(r[0]) && (r = r[0]), new sn(r);
7412
7412
  }
7413
7413
  W.plugin = function(e, t) {
7414
7414
  let i = !1;
@@ -7421,7 +7421,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`
7421
7421
  https://www.w3ctech.com/topic/2226`
7422
7422
  ));
7423
7423
  let a = t(...o);
7424
- return a.postcssPlugin = e, a.postcssVersion = new rn().version, a;
7424
+ return a.postcssPlugin = e, a.postcssVersion = new sn().version, a;
7425
7425
  }
7426
7426
  let n;
7427
7427
  return Object.defineProperty(s, "postcss", {
@@ -7445,7 +7445,7 @@ W.document = (r) => new Wl(r);
7445
7445
  W.CssSyntaxError = Um;
7446
7446
  W.Declaration = jl;
7447
7447
  W.Container = jm;
7448
- W.Processor = rn;
7448
+ W.Processor = sn;
7449
7449
  W.Document = Wl;
7450
7450
  W.Comment = Vl;
7451
7451
  W.Warning = Gm;
@@ -7493,7 +7493,7 @@ function qm(r) {
7493
7493
  }
7494
7494
  }), e;
7495
7495
  }
7496
- function go(r) {
7496
+ function yo(r) {
7497
7497
  const e = [];
7498
7498
  for (const t in r) {
7499
7499
  const i = r[t];
@@ -7504,7 +7504,7 @@ function go(r) {
7504
7504
  return e.join(" ");
7505
7505
  }
7506
7506
  const Qm = /-([a-z])/g, eg = /^--[a-zA-Z0-9-]+$/, ws = (r) => eg.test(r) ? r : r.replace(Qm, (e, t) => t ? t.toUpperCase() : ""), tg = /\B([A-Z])/g, rg = (r) => r.replace(tg, "-$1").toLowerCase();
7507
- class we {
7507
+ class be {
7508
7508
  // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any
7509
7509
  constructor(...e) {
7510
7510
  x(this, "parentElement", null), x(this, "parentNode", null), x(this, "ownerDocument"), x(this, "firstChild", null), x(this, "lastChild", null), x(this, "previousSibling", null), x(this, "nextSibling", null), x(this, "ELEMENT_NODE", 1), x(this, "TEXT_NODE", 3), x(this, "nodeType"), x(this, "nodeName"), x(this, "RRNodeType");
@@ -7517,7 +7517,7 @@ class we {
7517
7517
  return e;
7518
7518
  }
7519
7519
  contains(e) {
7520
- if (e instanceof we) {
7520
+ if (e instanceof be) {
7521
7521
  if (e.ownerDocument !== this.ownerDocument) return !1;
7522
7522
  if (e === this) return !0;
7523
7523
  } else return !1;
@@ -7549,7 +7549,7 @@ class we {
7549
7549
  return "RRNode";
7550
7550
  }
7551
7551
  }
7552
- class sn extends we {
7552
+ class nn extends be {
7553
7553
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
7554
7554
  constructor(...e) {
7555
7555
  super(e), x(this, "nodeType", 9), x(this, "nodeName", "#document"), x(this, "compatMode", "CSS1Compat"), x(this, "RRNodeType", O.Document), x(this, "textContent", null), this.ownerDocument = this;
@@ -7583,7 +7583,7 @@ class sn extends we {
7583
7583
  throw new Error(
7584
7584
  `RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${t === O.Element ? "RRElement" : "RRDoctype"} on RRDocument allowed.`
7585
7585
  );
7586
- const i = nn(this, e);
7586
+ const i = on(this, e);
7587
7587
  return i.parentElement = null, i;
7588
7588
  }
7589
7589
  insertBefore(e, t) {
@@ -7617,7 +7617,7 @@ class sn extends we {
7617
7617
  }
7618
7618
  }
7619
7619
  createDocument(e, t, i) {
7620
- return new sn();
7620
+ return new nn();
7621
7621
  }
7622
7622
  createDocumentType(e, t, i) {
7623
7623
  const s = new Zl(e, t, i);
@@ -7646,7 +7646,7 @@ class sn extends we {
7646
7646
  return "RRDocument";
7647
7647
  }
7648
7648
  }
7649
- class Zl extends we {
7649
+ class Zl extends be {
7650
7650
  constructor(e, t, i) {
7651
7651
  super(), x(this, "nodeType", 10), x(this, "RRNodeType", O.DocumentType), x(this, "name"), x(this, "publicId"), x(this, "systemId"), x(this, "textContent", null), this.name = e, this.publicId = t, this.systemId = i, this.nodeName = e;
7652
7652
  }
@@ -7654,7 +7654,7 @@ class Zl extends we {
7654
7654
  return "RRDocumentType";
7655
7655
  }
7656
7656
  }
7657
- class fi extends we {
7657
+ class fi extends be {
7658
7658
  constructor(e) {
7659
7659
  super(), x(this, "nodeType", 1), x(this, "RRNodeType", O.Element), x(this, "tagName"), x(this, "attributes", {}), x(this, "shadowRoot", null), x(this, "scrollLeft"), x(this, "scrollTop"), this.tagName = e.toUpperCase(), this.nodeName = e.toUpperCase();
7660
7660
  }
@@ -7684,11 +7684,11 @@ class fi extends we {
7684
7684
  return e.setProperty = (i, s, n) => {
7685
7685
  if (t.test(i)) return;
7686
7686
  const o = ws(i);
7687
- s ? e[o] = s : delete e[o], n === "important" && (e[o] += " !important"), this.attributes.style = go(e);
7687
+ s ? e[o] = s : delete e[o], n === "important" && (e[o] += " !important"), this.attributes.style = yo(e);
7688
7688
  }, e.removeProperty = (i) => {
7689
7689
  if (t.test(i)) return "";
7690
7690
  const s = ws(i), n = e[s] || "";
7691
- return delete e[s], this.attributes.style = go(e), n;
7691
+ return delete e[s], this.attributes.style = yo(e), n;
7692
7692
  }, e;
7693
7693
  }
7694
7694
  getAttribute(e) {
@@ -7704,7 +7704,7 @@ class fi extends we {
7704
7704
  delete this.attributes[e];
7705
7705
  }
7706
7706
  appendChild(e) {
7707
- return nn(this, e);
7707
+ return on(this, e);
7708
7708
  }
7709
7709
  insertBefore(e, t) {
7710
7710
  return ql(this, e, t);
@@ -7765,7 +7765,7 @@ class sg extends fi {
7765
7765
  this.setAttribute("open", ""), this.setAttribute("rr_open_mode", "modal");
7766
7766
  }
7767
7767
  }
7768
- class Xl extends we {
7768
+ class Xl extends be {
7769
7769
  constructor(e) {
7770
7770
  super(), x(this, "nodeType", 3), x(this, "nodeName", "#text"), x(this, "RRNodeType", O.Text), x(this, "data"), this.data = e;
7771
7771
  }
@@ -7779,7 +7779,7 @@ class Xl extends we {
7779
7779
  return `RRText text=${JSON.stringify(this.data)}`;
7780
7780
  }
7781
7781
  }
7782
- class Jl extends we {
7782
+ class Jl extends be {
7783
7783
  constructor(e) {
7784
7784
  super(), x(this, "nodeType", 8), x(this, "nodeName", "#comment"), x(this, "RRNodeType", O.Comment), x(this, "data"), this.data = e;
7785
7785
  }
@@ -7793,7 +7793,7 @@ class Jl extends we {
7793
7793
  return `RRComment text=${JSON.stringify(this.data)}`;
7794
7794
  }
7795
7795
  }
7796
- class Kl extends we {
7796
+ class Kl extends be {
7797
7797
  constructor(e) {
7798
7798
  super(), x(this, "nodeName", "#cdata-section"), x(this, "nodeType", 4), x(this, "RRNodeType", O.CDATA), x(this, "data"), this.data = e;
7799
7799
  }
@@ -7826,11 +7826,11 @@ class ng {
7826
7826
  this.onChange = t;
7827
7827
  }
7828
7828
  }
7829
- function nn(r, e) {
7829
+ function on(r, e) {
7830
7830
  return e.parentNode && e.parentNode.removeChild(e), r.lastChild ? (r.lastChild.nextSibling = e, e.previousSibling = r.lastChild) : (r.firstChild = e, e.previousSibling = null), r.lastChild = e, e.nextSibling = null, e.parentNode = r, e.parentElement = r, e.ownerDocument = r.ownerDocument, e;
7831
7831
  }
7832
7832
  function ql(r, e, t) {
7833
- if (!t) return nn(r, e);
7833
+ if (!t) return on(r, e);
7834
7834
  if (t.parentNode !== r)
7835
7835
  throw new Error(
7836
7836
  "Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode."
@@ -7887,7 +7887,7 @@ const bs = {
7887
7887
  lineargradient: "linearGradient",
7888
7888
  radialgradient: "radialGradient"
7889
7889
  };
7890
- let Ee = null;
7890
+ let xe = null;
7891
7891
  function Vr(r, e, t, i = e.mirror || e.ownerDocument.mirror) {
7892
7892
  r = ag(
7893
7893
  r,
@@ -7898,9 +7898,9 @@ function Vr(r, e, t, i = e.mirror || e.ownerDocument.mirror) {
7898
7898
  }
7899
7899
  function ag(r, e, t, i) {
7900
7900
  var s;
7901
- if (t.afterAppend && !Ee && (Ee = /* @__PURE__ */ new WeakSet(), setTimeout(() => {
7902
- Ee = null;
7903
- }, 0)), !on(r, e)) {
7901
+ if (t.afterAppend && !xe && (xe = /* @__PURE__ */ new WeakSet(), setTimeout(() => {
7902
+ xe = null;
7903
+ }, 0)), !an(r, e)) {
7904
7904
  const n = Gr(
7905
7905
  e,
7906
7906
  t.mirror,
@@ -7912,7 +7912,7 @@ function ag(r, e, t, i) {
7912
7912
  case O.Document: {
7913
7913
  if (!Ze(r, e, t.mirror, i)) {
7914
7914
  const n = i.getMeta(e);
7915
- n && (t.mirror.removeNodeFromMap(r), r.close(), r.open(), t.mirror.add(r, n), Ee?.add(r));
7915
+ n && (t.mirror.removeNodeFromMap(r), r.close(), r.open(), t.mirror.add(r, n), xe?.add(r));
7916
7916
  }
7917
7917
  break;
7918
7918
  }
@@ -8005,7 +8005,7 @@ function lg(r, e, t) {
8005
8005
  break;
8006
8006
  }
8007
8007
  }
8008
- Ee?.has(r) && (Ee.delete(r), (i = t.afterAppend) == null || i.call(t, r, t.mirror.getId(r)));
8008
+ xe?.has(r) && (xe.delete(r), (i = t.afterAppend) == null || i.call(t, r, t.mirror.getId(r)));
8009
8009
  }
8010
8010
  function cg(r, e, t) {
8011
8011
  const i = r.attributes, s = e.attributes;
@@ -8145,7 +8145,7 @@ function ec(r, e, t, i) {
8145
8145
  function Gr(r, e, t) {
8146
8146
  const i = t.getId(r), s = t.getMeta(r);
8147
8147
  let n = null;
8148
- if (i > -1 && (n = e.getNode(i)), n !== null && on(n, r)) return n;
8148
+ if (i > -1 && (n = e.getNode(i)), n !== null && an(n, r)) return n;
8149
8149
  switch (r.RRNodeType) {
8150
8150
  case O.Document:
8151
8151
  n = new Document();
@@ -8174,19 +8174,19 @@ function Gr(r, e, t) {
8174
8174
  }
8175
8175
  s && e.add(n, { ...s });
8176
8176
  try {
8177
- Ee?.add(n);
8177
+ xe?.add(n);
8178
8178
  } catch {
8179
8179
  }
8180
8180
  return n;
8181
8181
  }
8182
- function on(r, e) {
8182
+ function an(r, e) {
8183
8183
  return r.nodeType !== e.nodeType ? !1 : r.nodeType !== r.ELEMENT_NODE || r.tagName.toUpperCase() === e.tagName;
8184
8184
  }
8185
8185
  function Ze(r, e, t, i) {
8186
8186
  const s = t.getId(r), n = i.getId(e);
8187
- return s === -1 || s !== n ? !1 : on(r, e);
8187
+ return s === -1 || s !== n ? !1 : an(r, e);
8188
8188
  }
8189
- class ft extends sn {
8189
+ class dt extends nn {
8190
8190
  constructor(e) {
8191
8191
  super(), x(this, "UNSERIALIZED_STARTING_ID", -2), x(this, "_unserializedId", this.UNSERIALIZED_STARTING_ID), x(this, "mirror", Sg()), x(this, "scrollData", null), e && (this.mirror = e);
8192
8192
  }
@@ -8197,7 +8197,7 @@ class ft extends sn {
8197
8197
  return this._unserializedId--;
8198
8198
  }
8199
8199
  createDocument(e, t, i) {
8200
- return new ft();
8200
+ return new dt();
8201
8201
  }
8202
8202
  createDocumentType(e, t, i) {
8203
8203
  const s = new ug(
@@ -8280,7 +8280,7 @@ class pg extends di {
8280
8280
  }
8281
8281
  class mg extends di {
8282
8282
  constructor(e, t) {
8283
- super(e), x(this, "contentDocument", new ft()), this.contentDocument.mirror = t;
8283
+ super(e), x(this, "contentDocument", new dt()), this.contentDocument.mirror = t;
8284
8284
  }
8285
8285
  }
8286
8286
  const gg = Xl, yg = Jl, wg = Kl;
@@ -8327,9 +8327,9 @@ function tc(r, e, t, i) {
8327
8327
  return null;
8328
8328
  }
8329
8329
  let n = t.getMeta(r);
8330
- return e instanceof ft && (n || (n = rc(s, e.unserializedId), t.add(r, n)), e.mirror.add(s, { ...n })), s;
8330
+ return e instanceof dt && (n || (n = rc(s, e.unserializedId), t.add(r, n)), e.mirror.add(s, { ...n })), s;
8331
8331
  }
8332
- function vg(r, e = ap(), t = new ft()) {
8332
+ function vg(r, e = ap(), t = new dt()) {
8333
8333
  function i(s, n) {
8334
8334
  const o = tc(s, t, e, n);
8335
8335
  if (o !== null)
@@ -8439,7 +8439,7 @@ function rc(r, e) {
8439
8439
  };
8440
8440
  }
8441
8441
  }
8442
- const yo = {
8442
+ const wo = {
8443
8443
  Node: [
8444
8444
  "childNodes",
8445
8445
  "parentNode",
@@ -8450,22 +8450,22 @@ const yo = {
8450
8450
  ShadowRoot: ["host", "styleSheets"],
8451
8451
  Element: ["shadowRoot", "querySelector", "querySelectorAll"],
8452
8452
  MutationObserver: []
8453
- }, wo = {
8453
+ }, bo = {
8454
8454
  Node: ["contains", "getRootNode"],
8455
8455
  ShadowRoot: ["getSelection"],
8456
8456
  Element: [],
8457
8457
  MutationObserver: ["constructor"]
8458
8458
  }, gr = {}, Eg = () => !!globalThis.Zone;
8459
- function an(r) {
8459
+ function ln(r) {
8460
8460
  if (gr[r])
8461
8461
  return gr[r];
8462
- const e = globalThis[r], t = e.prototype, i = r in yo ? yo[r] : void 0, s = !!(i && // @ts-expect-error 2345
8462
+ const e = globalThis[r], t = e.prototype, i = r in wo ? wo[r] : void 0, s = !!(i && // @ts-expect-error 2345
8463
8463
  i.every(
8464
8464
  (a) => {
8465
8465
  var l, c;
8466
8466
  return !!((c = (l = Object.getOwnPropertyDescriptor(t, a)) == null ? void 0 : l.get) != null && c.toString().includes("[native code]"));
8467
8467
  }
8468
- )), n = r in wo ? wo[r] : void 0, o = !!(n && n.every(
8468
+ )), n = r in bo ? bo[r] : void 0, o = !!(n && n.every(
8469
8469
  // @ts-expect-error 2345
8470
8470
  (a) => {
8471
8471
  var l;
@@ -8493,7 +8493,7 @@ function De(r, e, t) {
8493
8493
  return Ai[s].call(
8494
8494
  e
8495
8495
  );
8496
- const n = an(r), o = (i = Object.getOwnPropertyDescriptor(
8496
+ const n = ln(r), o = (i = Object.getOwnPropertyDescriptor(
8497
8497
  n,
8498
8498
  t
8499
8499
  )) == null ? void 0 : i.get;
@@ -8506,7 +8506,7 @@ function ic(r, e, t) {
8506
8506
  return Ri[i].bind(
8507
8507
  e
8508
8508
  );
8509
- const n = an(r)[t];
8509
+ const n = ln(r)[t];
8510
8510
  return typeof n != "function" ? e[t] : (Ri[i] = n, n.bind(e));
8511
8511
  }
8512
8512
  function xg(r) {
@@ -8546,7 +8546,7 @@ function Pg(r, e) {
8546
8546
  return De("Element", r, "querySelectorAll")(e);
8547
8547
  }
8548
8548
  function Lg() {
8549
- return an("MutationObserver").constructor;
8549
+ return ln("MutationObserver").constructor;
8550
8550
  }
8551
8551
  function $g(r, e, t) {
8552
8552
  try {
@@ -8585,7 +8585,7 @@ const Fg = {
8585
8585
  }, Xe = `Please stop import mirror directly. Instead of that,\r
8586
8586
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
8587
8587
  or you can use record.mirror to access the mirror instance during recording.`;
8588
- let bo = {
8588
+ let vo = {
8589
8589
  map: {},
8590
8590
  getId() {
8591
8591
  return console.error(Xe), -1;
@@ -8603,7 +8603,7 @@ let bo = {
8603
8603
  console.error(Xe);
8604
8604
  }
8605
8605
  };
8606
- typeof window < "u" && window.Proxy && window.Reflect && (bo = new Proxy(bo, {
8606
+ typeof window < "u" && window.Proxy && window.Reflect && (vo = new Proxy(vo, {
8607
8607
  get(r, e, t) {
8608
8608
  return e === "map" && console.error(Xe), Reflect.get(r, e, t);
8609
8609
  }
@@ -8674,16 +8674,16 @@ function nc(r, e) {
8674
8674
  };
8675
8675
  }
8676
8676
  function yr(r) {
8677
- return r ? r instanceof we && "shadowRoot" in r ? !!r.shadowRoot : !!Fg.shadowRoot(r) : !1;
8677
+ return r ? r instanceof be && "shadowRoot" in r ? !!r.shadowRoot : !!Fg.shadowRoot(r) : !1;
8678
8678
  }
8679
- function wt(r, e) {
8679
+ function bt(r, e) {
8680
8680
  const t = r[e[0]];
8681
- return e.length === 1 ? t : wt(
8681
+ return e.length === 1 ? t : bt(
8682
8682
  t.cssRules[e[1]].cssRules,
8683
8683
  e.slice(2)
8684
8684
  );
8685
8685
  }
8686
- function vo(r) {
8686
+ function So(r) {
8687
8687
  const e = [...r], t = e.pop();
8688
8688
  return { positions: e, index: t };
8689
8689
  }
@@ -8723,15 +8723,15 @@ class jg {
8723
8723
  return this.id++;
8724
8724
  }
8725
8725
  }
8726
- var q = /* @__PURE__ */ ((r) => (r[r.DomContentLoaded = 0] = "DomContentLoaded", r[r.Load = 1] = "Load", r[r.FullSnapshot = 2] = "FullSnapshot", r[r.IncrementalSnapshot = 3] = "IncrementalSnapshot", r[r.Meta = 4] = "Meta", r[r.Custom = 5] = "Custom", r[r.Plugin = 6] = "Plugin", r))(q || {}), B = /* @__PURE__ */ ((r) => (r[r.Mutation = 0] = "Mutation", r[r.MouseMove = 1] = "MouseMove", r[r.MouseInteraction = 2] = "MouseInteraction", r[r.Scroll = 3] = "Scroll", r[r.ViewportResize = 4] = "ViewportResize", r[r.Input = 5] = "Input", r[r.TouchMove = 6] = "TouchMove", r[r.MediaInteraction = 7] = "MediaInteraction", r[r.StyleSheetRule = 8] = "StyleSheetRule", r[r.CanvasMutation = 9] = "CanvasMutation", r[r.Font = 10] = "Font", r[r.Log = 11] = "Log", r[r.Drag = 12] = "Drag", r[r.StyleDeclaration = 13] = "StyleDeclaration", r[r.Selection = 14] = "Selection", r[r.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", r[r.CustomElement = 16] = "CustomElement", r))(B || {}), se = /* @__PURE__ */ ((r) => (r[r.MouseUp = 0] = "MouseUp", r[r.MouseDown = 1] = "MouseDown", r[r.Click = 2] = "Click", r[r.ContextMenu = 3] = "ContextMenu", r[r.DblClick = 4] = "DblClick", r[r.Focus = 5] = "Focus", r[r.Blur = 6] = "Blur", r[r.TouchStart = 7] = "TouchStart", r[r.TouchMove_Departed = 8] = "TouchMove_Departed", r[r.TouchEnd = 9] = "TouchEnd", r[r.TouchCancel = 10] = "TouchCancel", r))(se || {}), Yr = /* @__PURE__ */ ((r) => (r[r["2D"] = 0] = "2D", r[r.WebGL = 1] = "WebGL", r[r.WebGL2 = 2] = "WebGL2", r))(Yr || {}), vs = /* @__PURE__ */ ((r) => (r[r.Play = 0] = "Play", r[r.Pause = 1] = "Pause", r[r.Seeked = 2] = "Seeked", r[r.VolumeChange = 3] = "VolumeChange", r[r.RateChange = 4] = "RateChange", r))(vs || {}), P = /* @__PURE__ */ ((r) => (r.Start = "start", r.Pause = "pause", r.Resume = "resume", r.Resize = "resize", r.Finish = "finish", r.FullsnapshotRebuilded = "fullsnapshot-rebuilded", r.LoadStylesheetStart = "load-stylesheet-start", r.LoadStylesheetEnd = "load-stylesheet-end", r.SkipStart = "skip-start", r.SkipEnd = "skip-end", r.MouseInteraction = "mouse-interaction", r.EventCast = "event-cast", r.CustomEvent = "custom-event", r.Flush = "flush", r.StateChange = "state-change", r.PlayBack = "play-back", r.Destroy = "destroy", r))(P || {}), Oe = /* @__PURE__ */ ((r) => (r[r.Document = 0] = "Document", r[r.DocumentType = 1] = "DocumentType", r[r.Element = 2] = "Element", r[r.Text = 3] = "Text", r[r.CDATA = 4] = "CDATA", r[r.Comment = 5] = "Comment", r))(Oe || {}), So = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", bt = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
8727
- for (var wr = 0; wr < So.length; wr++)
8728
- bt[So.charCodeAt(wr)] = wr;
8726
+ var q = /* @__PURE__ */ ((r) => (r[r.DomContentLoaded = 0] = "DomContentLoaded", r[r.Load = 1] = "Load", r[r.FullSnapshot = 2] = "FullSnapshot", r[r.IncrementalSnapshot = 3] = "IncrementalSnapshot", r[r.Meta = 4] = "Meta", r[r.Custom = 5] = "Custom", r[r.Plugin = 6] = "Plugin", r))(q || {}), B = /* @__PURE__ */ ((r) => (r[r.Mutation = 0] = "Mutation", r[r.MouseMove = 1] = "MouseMove", r[r.MouseInteraction = 2] = "MouseInteraction", r[r.Scroll = 3] = "Scroll", r[r.ViewportResize = 4] = "ViewportResize", r[r.Input = 5] = "Input", r[r.TouchMove = 6] = "TouchMove", r[r.MediaInteraction = 7] = "MediaInteraction", r[r.StyleSheetRule = 8] = "StyleSheetRule", r[r.CanvasMutation = 9] = "CanvasMutation", r[r.Font = 10] = "Font", r[r.Log = 11] = "Log", r[r.Drag = 12] = "Drag", r[r.StyleDeclaration = 13] = "StyleDeclaration", r[r.Selection = 14] = "Selection", r[r.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", r[r.CustomElement = 16] = "CustomElement", r))(B || {}), se = /* @__PURE__ */ ((r) => (r[r.MouseUp = 0] = "MouseUp", r[r.MouseDown = 1] = "MouseDown", r[r.Click = 2] = "Click", r[r.ContextMenu = 3] = "ContextMenu", r[r.DblClick = 4] = "DblClick", r[r.Focus = 5] = "Focus", r[r.Blur = 6] = "Blur", r[r.TouchStart = 7] = "TouchStart", r[r.TouchMove_Departed = 8] = "TouchMove_Departed", r[r.TouchEnd = 9] = "TouchEnd", r[r.TouchCancel = 10] = "TouchCancel", r))(se || {}), Yr = /* @__PURE__ */ ((r) => (r[r["2D"] = 0] = "2D", r[r.WebGL = 1] = "WebGL", r[r.WebGL2 = 2] = "WebGL2", r))(Yr || {}), vs = /* @__PURE__ */ ((r) => (r[r.Play = 0] = "Play", r[r.Pause = 1] = "Pause", r[r.Seeked = 2] = "Seeked", r[r.VolumeChange = 3] = "VolumeChange", r[r.RateChange = 4] = "RateChange", r))(vs || {}), P = /* @__PURE__ */ ((r) => (r.Start = "start", r.Pause = "pause", r.Resume = "resume", r.Resize = "resize", r.Finish = "finish", r.FullsnapshotRebuilded = "fullsnapshot-rebuilded", r.LoadStylesheetStart = "load-stylesheet-start", r.LoadStylesheetEnd = "load-stylesheet-end", r.SkipStart = "skip-start", r.SkipEnd = "skip-end", r.MouseInteraction = "mouse-interaction", r.EventCast = "event-cast", r.CustomEvent = "custom-event", r.Flush = "flush", r.StateChange = "state-change", r.PlayBack = "play-back", r.Destroy = "destroy", r))(P || {}), Oe = /* @__PURE__ */ ((r) => (r[r.Document = 0] = "Document", r[r.DocumentType = 1] = "DocumentType", r[r.Element = 2] = "Element", r[r.Text = 3] = "Text", r[r.CDATA = 4] = "CDATA", r[r.Comment = 5] = "Comment", r))(Oe || {}), Co = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", vt = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
8727
+ for (var wr = 0; wr < Co.length; wr++)
8728
+ vt[Co.charCodeAt(wr)] = wr;
8729
8729
  var Wg = function(r) {
8730
8730
  var e = r.length * 0.75, t = r.length, i, s = 0, n, o, a, l;
8731
8731
  r[r.length - 1] === "=" && (e--, r[r.length - 2] === "=" && e--);
8732
8732
  var c = new ArrayBuffer(e), u = new Uint8Array(c);
8733
8733
  for (i = 0; i < t; i += 4)
8734
- n = bt[r.charCodeAt(i)], o = bt[r.charCodeAt(i + 1)], a = bt[r.charCodeAt(i + 2)], l = bt[r.charCodeAt(i + 3)], u[s++] = n << 2 | o >> 4, u[s++] = (o & 15) << 4 | a >> 2, u[s++] = (a & 3) << 6 | l & 63;
8734
+ n = vt[r.charCodeAt(i)], o = vt[r.charCodeAt(i + 1)], a = vt[r.charCodeAt(i + 2)], l = vt[r.charCodeAt(i + 3)], u[s++] = n << 2 | o >> 4, u[s++] = (o & 15) << 4 | a >> 2, u[s++] = (a & 3) << 6 | l & 63;
8735
8735
  return c;
8736
8736
  };
8737
8737
  const Vg = "KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=", Gg = (r) => Uint8Array.from(atob(r), (e) => e.charCodeAt(0));
@@ -8739,7 +8739,7 @@ typeof window < "u" && window.Blob && new Blob([Gg(Vg)], { type: "text/javascrip
8739
8739
  try {
8740
8740
  if (Array.from([1], (r) => r * 2)[0] !== 2) {
8741
8741
  const r = document.createElement("iframe");
8742
- document.body.appendChild(r), Array.from = ((Nn = r.contentWindow) == null ? void 0 : Nn.Array.from) || Array.from, document.body.removeChild(r);
8742
+ document.body.appendChild(r), Array.from = ((_n = r.contentWindow) == null ? void 0 : _n.Array.from) || Array.from, document.body.removeChild(r);
8743
8743
  }
8744
8744
  } catch (r) {
8745
8745
  console.debug("Unable to override Array.from", r);
@@ -8983,7 +8983,7 @@ class Zg {
8983
8983
  return t;
8984
8984
  }
8985
8985
  }
8986
- function Co(r, e) {
8986
+ function Eo(r, e) {
8987
8987
  if (r.type === q.IncrementalSnapshot && r.data.source === B.MouseMove && r.data.positions && r.data.positions.length) {
8988
8988
  const t = r.data.positions[0].timeOffset, i = r.timestamp + t;
8989
8989
  return r.delay = i - e, i - e;
@@ -9004,7 +9004,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
9004
9004
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
9005
9005
  PERFORMANCE OF THIS SOFTWARE.
9006
9006
  ***************************************************************************** */
9007
- function Eo(r, e) {
9007
+ function xo(r, e) {
9008
9008
  var t = typeof Symbol == "function" && r[Symbol.iterator];
9009
9009
  if (!t) return r;
9010
9010
  var i, s, n = t.call(r), o = [];
@@ -9032,7 +9032,7 @@ function Mi(r) {
9032
9032
  function Je(r) {
9033
9033
  return { type: "xstate.assign", assignment: r };
9034
9034
  }
9035
- function xo(r, e) {
9035
+ function Ao(r, e) {
9036
9036
  return typeof (r = typeof r == "string" && e && e[r] ? e[r] : r) == "string" ? { type: r } : typeof r == "function" ? { type: r.name, exec: r } : r;
9037
9037
  }
9038
9038
  function Hr(r) {
@@ -9043,10 +9043,10 @@ function Hr(r) {
9043
9043
  function lc(r) {
9044
9044
  return typeof r == "string" ? { type: r } : r;
9045
9045
  }
9046
- function Ao(r, e) {
9046
+ function Ro(r, e) {
9047
9047
  return { value: r, context: e, actions: [], changed: !1, matches: Hr(r) };
9048
9048
  }
9049
- function Ro(r, e, t) {
9049
+ function ko(r, e, t) {
9050
9050
  var i = e, s = !1;
9051
9051
  return [r.filter(function(n) {
9052
9052
  if (n.type === "xstate.assign") {
@@ -9061,8 +9061,8 @@ function Ro(r, e, t) {
9061
9061
  }
9062
9062
  function cc(r, e) {
9063
9063
  e === void 0 && (e = {});
9064
- var t = Eo(Ro(Mi(r.states[r.initial].entry).map(function(o) {
9065
- return xo(o, e.actions);
9064
+ var t = xo(ko(Mi(r.states[r.initial].entry).map(function(o) {
9065
+ return Ao(o, e.actions);
9066
9066
  }), r.context, ac), 2), i = t[0], s = t[1], n = { config: r, _options: e, initialState: { value: r.initial, actions: i, context: s, matches: Hr(r.initial) }, transition: function(o, a) {
9067
9067
  var l, c, u = typeof o == "string" ? { value: o, context: r.context } : o, h = u.value, f = u.context, d = lc(a), m = r.states[h];
9068
9068
  if (m.on) {
@@ -9077,15 +9077,15 @@ function cc(r, e) {
9077
9077
  throw new TypeError(le ? "Object is not iterable." : "Symbol.iterator is not defined.");
9078
9078
  }(w), g = p.next(); !g.done; g = p.next()) {
9079
9079
  var b = g.value;
9080
- if (b === void 0) return Ao(h, f);
9080
+ if (b === void 0) return Ro(h, f);
9081
9081
  var v = typeof b == "string" ? { target: b } : b, E = v.target, M = v.actions, _ = M === void 0 ? [] : M, U = v.cond, T = U === void 0 ? function() {
9082
9082
  return !0;
9083
9083
  } : U, K = E === void 0, V = E ?? h, de = r.states[V];
9084
9084
  if (T(f, d)) {
9085
- var ce = Eo(Ro((K ? Mi(_) : [].concat(m.exit, _, de.entry).filter(function(G) {
9085
+ var ce = xo(ko((K ? Mi(_) : [].concat(m.exit, _, de.entry).filter(function(G) {
9086
9086
  return G;
9087
9087
  })).map(function(G) {
9088
- return xo(G, n._options.actions);
9088
+ return Ao(G, n._options.actions);
9089
9089
  }), f, d), 3), te = ce[0], z = ce[1], ae = ce[2], $ = E ?? h;
9090
9090
  return { value: $, context: z, actions: te, changed: E !== h || te.length > 0 || ae, matches: Hr($) };
9091
9091
  }
@@ -9100,11 +9100,11 @@ function cc(r, e) {
9100
9100
  }
9101
9101
  }
9102
9102
  }
9103
- return Ao(h, f);
9103
+ return Ro(h, f);
9104
9104
  } };
9105
9105
  return n;
9106
9106
  }
9107
- var ko = function(r, e) {
9107
+ var Mo = function(r, e) {
9108
9108
  return r.actions.forEach(function(t) {
9109
9109
  var i = t.exec;
9110
9110
  return i && i(r.context, e);
@@ -9112,7 +9112,7 @@ var ko = function(r, e) {
9112
9112
  };
9113
9113
  function uc(r) {
9114
9114
  var e = r.initialState, t = qe.NotStarted, i = /* @__PURE__ */ new Set(), s = { _machine: r, send: function(n) {
9115
- t === qe.Running && (e = r.transition(e, n), ko(e, lc(n)), i.forEach(function(o) {
9115
+ t === qe.Running && (e = r.transition(e, n), Mo(e, lc(n)), i.forEach(function(o) {
9116
9116
  return o(e);
9117
9117
  }));
9118
9118
  }, subscribe: function(n) {
@@ -9124,7 +9124,7 @@ function uc(r) {
9124
9124
  var o = typeof n == "object" ? n : { context: r.config.context, value: n };
9125
9125
  e = { value: o.value, actions: [], context: o.context, matches: Hr(o.value) };
9126
9126
  }
9127
- return t = qe.Running, ko(e, ac), s;
9127
+ return t = qe.Running, Mo(e, ac), s;
9128
9128
  }, stop: function() {
9129
9129
  return t = qe.Stopped, i.clear(), s;
9130
9130
  }, get state() {
@@ -9221,7 +9221,7 @@ function Jg(r, { getCastFn: e, applyEventsSynchronously: t, emitter: i }) {
9221
9221
  const { timer: a, events: l, baselineTime: c, lastPlayedEvent: u } = n;
9222
9222
  a.clear();
9223
9223
  for (const m of l)
9224
- Co(m, c);
9224
+ Eo(m, c);
9225
9225
  const h = Xg(l, c);
9226
9226
  let f = u?.timestamp;
9227
9227
  u?.type === q.IncrementalSnapshot && u.data.source === B.MouseMove && (f = u.timestamp + ((o = u.data.positions[0]) == null ? void 0 : o.timeOffset)), c < (f || 0) && i.emit(P.PlayBack);
@@ -9255,7 +9255,7 @@ function Jg(r, { getCastFn: e, applyEventsSynchronously: t, emitter: i }) {
9255
9255
  const { baselineTime: a, timer: l, events: c } = n;
9256
9256
  if (o.type === "ADD_EVENT") {
9257
9257
  const { event: u } = o.payload;
9258
- Co(u, a);
9258
+ Eo(u, a);
9259
9259
  let h = c.length - 1;
9260
9260
  if (!c[h] || c[h].timestamp <= u.timestamp)
9261
9261
  c.push(u);
@@ -9334,10 +9334,10 @@ function Kg(r) {
9334
9334
  const qg = (r) => [
9335
9335
  `.${r} { background: currentColor }`,
9336
9336
  "noscript { display: none !important; }"
9337
- ], Mo = /* @__PURE__ */ new Map();
9337
+ ], No = /* @__PURE__ */ new Map();
9338
9338
  function hc(r, e) {
9339
- let t = Mo.get(r);
9340
- return t || (t = /* @__PURE__ */ new Map(), Mo.set(r, t)), t.has(e) || t.set(e, []), t.get(e);
9339
+ let t = No.get(r);
9340
+ return t || (t = /* @__PURE__ */ new Map(), No.set(r, t)), t.has(e) || t.set(e, []), t.get(e);
9341
9341
  }
9342
9342
  function Pe(r, e, t) {
9343
9343
  return async (i) => {
@@ -9461,7 +9461,7 @@ async function iy({
9461
9461
  }
9462
9462
  });
9463
9463
  }
9464
- async function No({
9464
+ async function _o({
9465
9465
  event: r,
9466
9466
  mutation: e,
9467
9467
  target: t,
@@ -9625,7 +9625,7 @@ class sy {
9625
9625
  }
9626
9626
  }
9627
9627
  function br(r, e) {
9628
- if (r.nodeName !== "DIALOG" || r instanceof we) return;
9628
+ if (r.nodeName !== "DIALOG" || r instanceof be) return;
9629
9629
  const t = r, i = t.open, s = i && t.matches("dialog:modal"), n = t.getAttribute("rr_open_mode"), o = typeof e?.attributes.open == "string" || typeof t.getAttribute("open") == "string", a = n === "modal";
9630
9630
  if (!(i && !(s && n === "non-modal" || !s && a))) {
9631
9631
  if (!t.isConnected) {
@@ -9636,7 +9636,7 @@ function br(r, e) {
9636
9636
  }
9637
9637
  }
9638
9638
  function ny(r, e) {
9639
- if (r.nodeName !== "DIALOG" || r instanceof we) return;
9639
+ if (r.nodeName !== "DIALOG" || r instanceof be) return;
9640
9640
  const t = r;
9641
9641
  if (!t.isConnected) {
9642
9642
  console.warn("dialog is not attached to the dom", t);
@@ -9644,18 +9644,18 @@ function ny(r, e) {
9644
9644
  }
9645
9645
  e.attributes.open === null && (t.removeAttribute("open"), t.removeAttribute("rr_open_mode"));
9646
9646
  }
9647
- const oy = 5 * 1e3, ay = oc || Yg, _o = "[replayer]", Ni = {
9647
+ const oy = 5 * 1e3, ay = oc || Yg, Io = "[replayer]", Ni = {
9648
9648
  duration: 500,
9649
9649
  lineCap: "round",
9650
9650
  lineWidth: 3,
9651
9651
  strokeStyle: "red"
9652
9652
  };
9653
- function Io(r) {
9653
+ function Do(r) {
9654
9654
  return r.type == q.IncrementalSnapshot && (r.data.source == B.TouchMove || r.data.source == B.MouseInteraction && r.data.type == se.TouchStart);
9655
9655
  }
9656
9656
  class ly {
9657
9657
  constructor(e, t) {
9658
- if (I(this, "wrapper"), I(this, "iframe"), I(this, "service"), I(this, "speedService"), I(this, "config"), I(this, "usingVirtualDom", !1), I(this, "virtualDom", new ft()), I(this, "mouse"), I(this, "mouseTail", null), I(this, "tailPositions", []), I(this, "emitter", ay()), I(this, "nextUserInteractionEvent"), I(this, "legacy_missingNodeRetryMap", {}), I(this, "cache", Jn()), I(this, "imageMap", /* @__PURE__ */ new Map()), I(this, "canvasEventMap", /* @__PURE__ */ new Map()), I(this, "mirror", ka()), I(this, "styleMirror", new jg()), I(this, "mediaManager"), I(this, "firstFullSnapshot", null), I(this, "newDocumentQueue", []), I(this, "mousePos", null), I(this, "touchActive", null), I(this, "lastMouseDownEvent", null), I(this, "lastHoveredRootNode"), I(this, "lastSelectionData", null), I(this, "constructedStyleMutations", []), I(this, "adoptedStyleSheets", []), I(this, "handleResize", (a) => {
9658
+ if (I(this, "wrapper"), I(this, "iframe"), I(this, "service"), I(this, "speedService"), I(this, "config"), I(this, "usingVirtualDom", !1), I(this, "virtualDom", new dt()), I(this, "mouse"), I(this, "mouseTail", null), I(this, "tailPositions", []), I(this, "emitter", ay()), I(this, "nextUserInteractionEvent"), I(this, "legacy_missingNodeRetryMap", {}), I(this, "cache", Kn()), I(this, "imageMap", /* @__PURE__ */ new Map()), I(this, "canvasEventMap", /* @__PURE__ */ new Map()), I(this, "mirror", ka()), I(this, "styleMirror", new jg()), I(this, "mediaManager"), I(this, "firstFullSnapshot", null), I(this, "newDocumentQueue", []), I(this, "mousePos", null), I(this, "touchActive", null), I(this, "lastMouseDownEvent", null), I(this, "lastHoveredRootNode"), I(this, "lastSelectionData", null), I(this, "constructedStyleMutations", []), I(this, "adoptedStyleSheets", []), I(this, "handleResize", (a) => {
9659
9659
  this.iframe.style.display = "inherit";
9660
9660
  for (const l of [this.mouseTail, this.iframe])
9661
9661
  l && (l.setAttribute("width", String(a.width)), l.setAttribute("height", String(a.height)));
@@ -9774,7 +9774,7 @@ class ly {
9774
9774
  const a = {
9775
9775
  mirror: this.mirror,
9776
9776
  applyCanvas: (l, c, u) => {
9777
- No({
9777
+ _o({
9778
9778
  event: l,
9779
9779
  mutation: c,
9780
9780
  target: u,
@@ -9896,7 +9896,7 @@ class ly {
9896
9896
  ), (a = this.iframe.contentWindow) == null || a.scrollTo(
9897
9897
  o.data.initialOffset
9898
9898
  ));
9899
- }, 1), this.service.state.context.events.find(Io) && this.mouse.classList.add("touch-device");
9899
+ }, 1), this.service.state.context.events.find(Do) && this.mouse.classList.add("touch-device");
9900
9900
  }
9901
9901
  get timer() {
9902
9902
  return this.service.state.context.timer;
@@ -9975,7 +9975,7 @@ class ly {
9975
9975
  }
9976
9976
  addEvent(e) {
9977
9977
  const t = this.config.unpackFn ? this.config.unpackFn(e) : e;
9978
- Io(t) && this.mouse.classList.add("touch-device"), Promise.resolve().then(
9978
+ Do(t) && this.mouse.classList.add("touch-device"), Promise.resolve().then(
9979
9979
  () => this.service.send({ type: "ADD_EVENT", payload: { event: t } })
9980
9980
  );
9981
9981
  }
@@ -9990,7 +9990,7 @@ class ly {
9990
9990
  * The replayer will use this cache to speed up the playback.
9991
9991
  */
9992
9992
  resetCache() {
9993
- this.cache = Jn();
9993
+ this.cache = Kn();
9994
9994
  }
9995
9995
  setupDom() {
9996
9996
  this.wrapper = document.createElement("div"), this.wrapper.classList.add("replayer-wrapper"), this.config.root.appendChild(this.wrapper), this.mouse = document.createElement("div"), this.mouse.classList.add("replayer-mouse"), this.wrapper.appendChild(this.mouse), this.config.mouseTail !== !1 && (this.mouseTail = document.createElement("canvas"), this.mouseTail.classList.add("replayer-mouse-tail"), this.mouseTail.style.display = "inherit", this.wrapper.appendChild(this.mouseTail)), this.iframe = document.createElement("iframe");
@@ -10320,7 +10320,7 @@ class ly {
10320
10320
  const a = this.mirror.getNode(o.id);
10321
10321
  if (!a)
10322
10322
  return this.debugNodeNotFound(o, o.id);
10323
- No({
10323
+ _o({
10324
10324
  event: e,
10325
10325
  mutation: o,
10326
10326
  target: a,
@@ -10679,8 +10679,8 @@ class ly {
10679
10679
  if ((i = e.adds) == null || i.forEach(({ rule: a, index: l }) => {
10680
10680
  try {
10681
10681
  if (Array.isArray(l)) {
10682
- const { positions: c, index: u } = vo(l);
10683
- wt(t.cssRules, c).insertRule(a, u);
10682
+ const { positions: c, index: u } = So(l);
10683
+ bt(t.cssRules, c).insertRule(a, u);
10684
10684
  } else {
10685
10685
  const c = l === void 0 ? void 0 : Math.min(l, t.cssRules.length);
10686
10686
  t?.insertRule(a, c);
@@ -10690,8 +10690,8 @@ class ly {
10690
10690
  }), (s = e.removes) == null || s.forEach(({ index: a }) => {
10691
10691
  try {
10692
10692
  if (Array.isArray(a)) {
10693
- const { positions: l, index: c } = vo(a);
10694
- wt(t.cssRules, l).deleteRule(c || 0);
10693
+ const { positions: l, index: c } = So(a);
10694
+ bt(t.cssRules, l).deleteRule(c || 0);
10695
10695
  } else
10696
10696
  t?.deleteRule(a);
10697
10697
  } catch {
@@ -10708,14 +10708,14 @@ class ly {
10708
10708
  }
10709
10709
  }
10710
10710
  applyStyleDeclaration(e, t) {
10711
- e.set && wt(
10711
+ e.set && bt(
10712
10712
  t.rules,
10713
10713
  e.index
10714
10714
  ).style.setProperty(
10715
10715
  e.set.property,
10716
10716
  e.set.value,
10717
10717
  e.set.priority
10718
- ), e.remove && wt(
10718
+ ), e.remove && bt(
10719
10719
  t.rules,
10720
10720
  e.index
10721
10721
  ).style.removeProperty(e.remove.property);
@@ -10811,10 +10811,10 @@ class ly {
10811
10811
  this.debug(`Node with id '${t}' not found. `, e);
10812
10812
  }
10813
10813
  warn(...e) {
10814
- this.config.showWarning && this.config.logger.warn(_o, ...e);
10814
+ this.config.showWarning && this.config.logger.warn(Io, ...e);
10815
10815
  }
10816
10816
  debug(...e) {
10817
- this.config.showDebug && this.config.logger.log(_o, ...e);
10817
+ this.config.showDebug && this.config.logger.log(Io, ...e);
10818
10818
  }
10819
10819
  }
10820
10820
  var fe = Uint8Array, Ue = Uint16Array, Ss = Uint32Array, fc = new fe([
@@ -11017,10 +11017,10 @@ var dy = /* @__PURE__ */ xt(Gt, 9), py = /* @__PURE__ */ xt(wc, 5), _i = functio
11017
11017
  var T = ie - 257, pe = fc[T];
11018
11018
  Q = me(r, l, (1 << pe) - 1) + gc[T], l += pe;
11019
11019
  }
11020
- var be = h[Ii(r, l) & le], A = be >>> 4;
11021
- if (!be)
11020
+ var ve = h[Ii(r, l) & le], A = ve >>> 4;
11021
+ if (!ve)
11022
11022
  throw "invalid distance";
11023
- l += be & 15;
11023
+ l += ve & 15;
11024
11024
  var $ = fy[A];
11025
11025
  if (A > 3) {
11026
11026
  var pe = dc[A];
@@ -11069,7 +11069,7 @@ function vy(r, e) {
11069
11069
  }
11070
11070
  return t;
11071
11071
  }
11072
- const Do = "v1", Sy = (r) => {
11072
+ const To = "v1", Sy = (r) => {
11073
11073
  if (typeof r != "string")
11074
11074
  return r;
11075
11075
  try {
@@ -11082,23 +11082,23 @@ const Do = "v1", Sy = (r) => {
11082
11082
  const e = JSON.parse(
11083
11083
  vy(wy(by(r, !0)))
11084
11084
  );
11085
- if (e.v === Do)
11085
+ if (e.v === To)
11086
11086
  return e;
11087
11087
  throw new Error(
11088
- `These events were packed with packer ${e.v} which is incompatible with current packer ${Do}.`
11088
+ `These events were packed with packer ${e.v} which is incompatible with current packer ${To}.`
11089
11089
  );
11090
11090
  } catch (e) {
11091
11091
  throw console.error(e), new Error("Unknown data format.");
11092
11092
  }
11093
11093
  };
11094
- var ln = /* @__PURE__ */ ((r) => (r[r.DomContentLoaded = 0] = "DomContentLoaded", r[r.Load = 1] = "Load", r[r.FullSnapshot = 2] = "FullSnapshot", r[r.IncrementalSnapshot = 3] = "IncrementalSnapshot", r[r.Meta = 4] = "Meta", r[r.Custom = 5] = "Custom", r[r.Plugin = 6] = "Plugin", r))(ln || {}), Cs = /* @__PURE__ */ ((r) => (r[r.Mutation = 0] = "Mutation", r[r.MouseMove = 1] = "MouseMove", r[r.MouseInteraction = 2] = "MouseInteraction", r[r.Scroll = 3] = "Scroll", r[r.ViewportResize = 4] = "ViewportResize", r[r.Input = 5] = "Input", r[r.TouchMove = 6] = "TouchMove", r[r.MediaInteraction = 7] = "MediaInteraction", r[r.StyleSheetRule = 8] = "StyleSheetRule", r[r.CanvasMutation = 9] = "CanvasMutation", r[r.Font = 10] = "Font", r[r.Log = 11] = "Log", r[r.Drag = 12] = "Drag", r[r.StyleDeclaration = 13] = "StyleDeclaration", r[r.Selection = 14] = "Selection", r[r.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", r[r.CustomElement = 16] = "CustomElement", r))(Cs || {});
11095
- function To(r) {
11094
+ var cn = /* @__PURE__ */ ((r) => (r[r.DomContentLoaded = 0] = "DomContentLoaded", r[r.Load = 1] = "Load", r[r.FullSnapshot = 2] = "FullSnapshot", r[r.IncrementalSnapshot = 3] = "IncrementalSnapshot", r[r.Meta = 4] = "Meta", r[r.Custom = 5] = "Custom", r[r.Plugin = 6] = "Plugin", r))(cn || {}), Cs = /* @__PURE__ */ ((r) => (r[r.Mutation = 0] = "Mutation", r[r.MouseMove = 1] = "MouseMove", r[r.MouseInteraction = 2] = "MouseInteraction", r[r.Scroll = 3] = "Scroll", r[r.ViewportResize = 4] = "ViewportResize", r[r.Input = 5] = "Input", r[r.TouchMove = 6] = "TouchMove", r[r.MediaInteraction = 7] = "MediaInteraction", r[r.StyleSheetRule = 8] = "StyleSheetRule", r[r.CanvasMutation = 9] = "CanvasMutation", r[r.Font = 10] = "Font", r[r.Log = 11] = "Log", r[r.Drag = 12] = "Drag", r[r.StyleDeclaration = 13] = "StyleDeclaration", r[r.Selection = 14] = "Selection", r[r.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", r[r.CustomElement = 16] = "CustomElement", r))(Cs || {});
11095
+ function Oo(r) {
11096
11096
  let e = "";
11097
11097
  return Object.keys(r).forEach((t) => {
11098
11098
  e += `${t}: ${r[t]};`;
11099
11099
  }), e;
11100
11100
  }
11101
- function yt(r, e = 2) {
11101
+ function wt(r, e = 2) {
11102
11102
  let t = String(r);
11103
11103
  const i = Math.pow(10, e - 1);
11104
11104
  if (r < i)
@@ -11106,16 +11106,16 @@ function yt(r, e = 2) {
11106
11106
  t = `0${r}`;
11107
11107
  return t;
11108
11108
  }
11109
- const vc = 1e3, Es = 60 * vc, Oo = 60 * Es;
11109
+ const vc = 1e3, Es = 60 * vc, Po = 60 * Es;
11110
11110
  function vr(r) {
11111
11111
  if (r <= 0)
11112
11112
  return "00:00";
11113
- const e = Math.floor(r / Oo);
11114
- r = r % Oo;
11113
+ const e = Math.floor(r / Po);
11114
+ r = r % Po;
11115
11115
  const t = Math.floor(r / Es);
11116
11116
  r = r % Es;
11117
11117
  const i = Math.floor(r / vc);
11118
- return e ? `${yt(e)}:${yt(t)}:${yt(i)}` : `${yt(t)}:${yt(i)}`;
11118
+ return e ? `${wt(e)}:${wt(t)}:${wt(i)}` : `${wt(t)}:${wt(i)}`;
11119
11119
  }
11120
11120
  function Cy(r) {
11121
11121
  return r.requestFullscreen ? r.requestFullscreen() : r.mozRequestFullScreen ? r.mozRequestFullScreen() : r.webkitRequestFullscreen ? r.webkitRequestFullscreen() : r.msRequestFullscreen ? r.msRequestFullscreen() : Promise.resolve();
@@ -11123,7 +11123,7 @@ function Cy(r) {
11123
11123
  function Ey() {
11124
11124
  return document.exitFullscreen ? document.exitFullscreen() : document.mozExitFullscreen ? document.mozExitFullscreen() : document.webkitExitFullscreen ? document.webkitExitFullscreen() : document.msExitFullscreen ? document.msExitFullscreen() : Promise.resolve();
11125
11125
  }
11126
- function Po() {
11126
+ function Lo() {
11127
11127
  let r = !1;
11128
11128
  return [
11129
11129
  "fullscreen",
@@ -11139,7 +11139,7 @@ function xy(r) {
11139
11139
  document.removeEventListener("fullscreenchange", r), document.removeEventListener("webkitfullscreenchange", r), document.removeEventListener("mozfullscreenchange", r), document.removeEventListener("MSFullscreenChange", r);
11140
11140
  };
11141
11141
  }
11142
- function Lo(r) {
11142
+ function $o(r) {
11143
11143
  return {
11144
11144
  "[object Boolean]": "boolean",
11145
11145
  "[object Number]": "number",
@@ -11154,7 +11154,7 @@ function Lo(r) {
11154
11154
  }[Object.prototype.toString.call(r)];
11155
11155
  }
11156
11156
  function Ay(r) {
11157
- return r.type !== ln.IncrementalSnapshot ? !1 : r.data.source > Cs.Mutation && r.data.source <= Cs.Input;
11157
+ return r.type !== cn.IncrementalSnapshot ? !1 : r.data.source > Cs.Mutation && r.data.source <= Cs.Input;
11158
11158
  }
11159
11159
  function Ry(r, e) {
11160
11160
  const t = [];
@@ -11181,7 +11181,7 @@ function ky(r) {
11181
11181
  "for",
11182
11182
  /*id*/
11183
11183
  r[2]
11184
- ), D(s, "class", "svelte-a6h7w7"), D(o, "class", "label svelte-a6h7w7"), D(e, "class", "switch svelte-a6h7w7"), it(
11184
+ ), D(s, "class", "svelte-a6h7w7"), D(o, "class", "label svelte-a6h7w7"), D(e, "class", "switch svelte-a6h7w7"), st(
11185
11185
  e,
11186
11186
  "disabled",
11187
11187
  /*disabled*/
@@ -11220,7 +11220,7 @@ function ky(r) {
11220
11220
  /*label*/
11221
11221
  u[3]
11222
11222
  ), h & /*disabled*/
11223
- 2 && it(
11223
+ 2 && st(
11224
11224
  e,
11225
11225
  "disabled",
11226
11226
  /*disabled*/
@@ -11243,24 +11243,24 @@ function My(r, e, t) {
11243
11243
  "disabled" in l && t(1, i = l.disabled), "checked" in l && t(0, s = l.checked), "id" in l && t(2, n = l.id), "label" in l && t(3, o = l.label);
11244
11244
  }, [s, i, n, o, a];
11245
11245
  }
11246
- class Ny extends Ls {
11246
+ class Ny extends $s {
11247
11247
  constructor(e) {
11248
- super(), Ps(this, e, My, ky, Ds, { disabled: 1, checked: 0, id: 2, label: 3 });
11248
+ super(), Ls(this, e, My, ky, Ts, { disabled: 1, checked: 0, id: 2, label: 3 });
11249
11249
  }
11250
11250
  }
11251
- function $o(r, e, t) {
11251
+ function Fo(r, e, t) {
11252
11252
  const i = r.slice();
11253
11253
  return i[38] = e[t], i;
11254
11254
  }
11255
- function Fo(r, e, t) {
11255
+ function Bo(r, e, t) {
11256
11256
  const i = r.slice();
11257
11257
  return i[41] = e[t], i;
11258
11258
  }
11259
- function Bo(r, e, t) {
11259
+ function Uo(r, e, t) {
11260
11260
  const i = r.slice();
11261
11261
  return i[44] = e[t], i;
11262
11262
  }
11263
- function Uo(r) {
11263
+ function zo(r) {
11264
11264
  let e, t, i, s = vr(
11265
11265
  /*currentTime*/
11266
11266
  r[6]
@@ -11272,13 +11272,13 @@ function Uo(r) {
11272
11272
  r[13]
11273
11273
  ), z = [];
11274
11274
  for (let A = 0; A < te.length; A += 1)
11275
- z[A] = zo(Bo(r, te, A));
11275
+ z[A] = jo(Uo(r, te, A));
11276
11276
  let ae = Ye(
11277
11277
  /*customEvents*/
11278
11278
  r[9]
11279
11279
  ), $ = [];
11280
11280
  for (let A = 0; A < ae.length; A += 1)
11281
- $[A] = jo(Fo(r, ae, A));
11281
+ $[A] = Wo(Bo(r, ae, A));
11282
11282
  function G(A, C) {
11283
11283
  return (
11284
11284
  /*playerState*/
@@ -11290,11 +11290,11 @@ function Uo(r) {
11290
11290
  r[3]
11291
11291
  ), Q = [];
11292
11292
  for (let A = 0; A < ie.length; A += 1)
11293
- Q[A] = Wo($o(r, ie, A));
11293
+ Q[A] = Vo(Fo(r, ie, A));
11294
11294
  function pe(A) {
11295
11295
  r[29](A);
11296
11296
  }
11297
- let be = {
11297
+ let ve = {
11298
11298
  id: "skip",
11299
11299
  disabled: (
11300
11300
  /*speedState*/
@@ -11304,8 +11304,8 @@ function Uo(r) {
11304
11304
  };
11305
11305
  return (
11306
11306
  /*skipInactive*/
11307
- r[0] !== void 0 && (be.checked = /*skipInactive*/
11308
- r[0]), _ = new Ny({ props: be }), Be.push(() => Vh(_, "checked", pe)), {
11307
+ r[0] !== void 0 && (ve.checked = /*skipInactive*/
11308
+ r[0]), _ = new Ny({ props: ve }), Be.push(() => Vh(_, "checked", pe)), {
11309
11309
  c() {
11310
11310
  e = ne("div"), t = ne("div"), i = ne("span"), n = ze(s), o = he(), a = ne("div"), l = ne("div"), c = he();
11311
11311
  for (let A = 0; A < z.length; A += 1)
@@ -11332,7 +11332,7 @@ function Uo(r) {
11332
11332
  "left",
11333
11333
  /*percentage*/
11334
11334
  r[12]
11335
- ), D(a, "class", "rr-progress svelte-189zk2r"), it(
11335
+ ), D(a, "class", "rr-progress svelte-189zk2r"), st(
11336
11336
  a,
11337
11337
  "disabled",
11338
11338
  /*speedState*/
@@ -11349,7 +11349,7 @@ function Uo(r) {
11349
11349
  L(a, h), L(a, f), r[27](a), L(t, d), L(t, m), L(m, p), L(e, g), L(e, b), L(b, v), oe.m(v, null), L(b, E);
11350
11350
  for (let S = 0; S < Q.length; S += 1)
11351
11351
  Q[S] && Q[S].m(b, null);
11352
- L(b, M), Ts(_, b, null), L(b, T), L(b, K), V = !0, de || (ce = [
11352
+ L(b, M), Os(_, b, null), L(b, T), L(b, K), V = !0, de || (ce = [
11353
11353
  Ke(
11354
11354
  a,
11355
11355
  "click",
@@ -11395,8 +11395,8 @@ function Uo(r) {
11395
11395
  );
11396
11396
  let R;
11397
11397
  for (R = 0; R < te.length; R += 1) {
11398
- const F = Bo(A, te, R);
11399
- z[R] ? z[R].p(F, C) : (z[R] = zo(F), z[R].c(), z[R].m(a, u));
11398
+ const F = Uo(A, te, R);
11399
+ z[R] ? z[R].p(F, C) : (z[R] = jo(F), z[R].c(), z[R].m(a, u));
11400
11400
  }
11401
11401
  for (; R < z.length; R += 1)
11402
11402
  z[R].d(1);
@@ -11410,8 +11410,8 @@ function Uo(r) {
11410
11410
  );
11411
11411
  let R;
11412
11412
  for (R = 0; R < ae.length; R += 1) {
11413
- const F = Fo(A, ae, R);
11414
- $[R] ? $[R].p(F, C) : ($[R] = jo(F), $[R].c(), $[R].m(a, h));
11413
+ const F = Bo(A, ae, R);
11414
+ $[R] ? $[R].p(F, C) : ($[R] = Wo(F), $[R].c(), $[R].m(a, h));
11415
11415
  }
11416
11416
  for (; R < $.length; R += 1)
11417
11417
  $[R].d(1);
@@ -11424,7 +11424,7 @@ function Uo(r) {
11424
11424
  /*percentage*/
11425
11425
  A[12]
11426
11426
  ), (!V || C[0] & /*speedState*/
11427
- 1024) && it(
11427
+ 1024) && st(
11428
11428
  a,
11429
11429
  "disabled",
11430
11430
  /*speedState*/
@@ -11441,8 +11441,8 @@ function Uo(r) {
11441
11441
  );
11442
11442
  let R;
11443
11443
  for (R = 0; R < ie.length; R += 1) {
11444
- const F = $o(A, ie, R);
11445
- Q[R] ? Q[R].p(F, C) : (Q[R] = Wo(F), Q[R].c(), Q[R].m(b, M));
11444
+ const F = Fo(A, ie, R);
11445
+ Q[R] ? Q[R].p(F, C) : (Q[R] = Vo(F), Q[R].c(), Q[R].m(b, M));
11446
11446
  }
11447
11447
  for (; R < Q.length; R += 1)
11448
11448
  Q[R].d(1);
@@ -11459,15 +11459,15 @@ function Uo(r) {
11459
11459
  V || (Me(_.$$.fragment, A), V = !0);
11460
11460
  },
11461
11461
  o(A) {
11462
- st(_.$$.fragment, A), V = !1;
11462
+ nt(_.$$.fragment, A), V = !1;
11463
11463
  },
11464
11464
  d(A) {
11465
- A && Re(e), mi(z, A), mi($, A), r[27](null), oe.d(), mi(Q, A), Os(_), de = !1, ht(ce);
11465
+ A && Re(e), mi(z, A), mi($, A), r[27](null), oe.d(), mi(Q, A), Ps(_), de = !1, ft(ce);
11466
11466
  }
11467
11467
  }
11468
11468
  );
11469
11469
  }
11470
- function zo(r) {
11470
+ function jo(r) {
11471
11471
  let e, t;
11472
11472
  return {
11473
11473
  c() {
@@ -11520,7 +11520,7 @@ function zo(r) {
11520
11520
  }
11521
11521
  };
11522
11522
  }
11523
- function jo(r) {
11523
+ function Wo(r) {
11524
11524
  let e, t;
11525
11525
  return {
11526
11526
  c() {
@@ -11604,7 +11604,7 @@ function Iy(r) {
11604
11604
  }
11605
11605
  };
11606
11606
  }
11607
- function Wo(r) {
11607
+ function Vo(r) {
11608
11608
  let e, t = (
11609
11609
  /*s*/
11610
11610
  r[38] + ""
@@ -11621,7 +11621,7 @@ function Wo(r) {
11621
11621
  return {
11622
11622
  c() {
11623
11623
  e = ne("button"), i = ze(t), s = ze("x"), e.disabled = n = /*speedState*/
11624
- r[10] === "skipping", D(e, "class", "svelte-189zk2r"), it(
11624
+ r[10] === "skipping", D(e, "class", "svelte-189zk2r"), st(
11625
11625
  e,
11626
11626
  "active",
11627
11627
  /*s*/
@@ -11639,7 +11639,7 @@ function Wo(r) {
11639
11639
  r[38] + "") && Pr(i, t), u[0] & /*speedState*/
11640
11640
  1024 && n !== (n = /*speedState*/
11641
11641
  r[10] === "skipping") && (e.disabled = n), u[0] & /*speedOption, speed, speedState*/
11642
- 1034 && it(
11642
+ 1034 && st(
11643
11643
  e,
11644
11644
  "active",
11645
11645
  /*s*/
@@ -11656,7 +11656,7 @@ function Wo(r) {
11656
11656
  function Dy(r) {
11657
11657
  let e, t, i = (
11658
11658
  /*showController*/
11659
- r[2] && Uo(r)
11659
+ r[2] && zo(r)
11660
11660
  );
11661
11661
  return {
11662
11662
  c() {
@@ -11668,7 +11668,7 @@ function Dy(r) {
11668
11668
  p(s, n) {
11669
11669
  /*showController*/
11670
11670
  s[2] ? i ? (i.p(s, n), n[0] & /*showController*/
11671
- 4 && Me(i, 1)) : (i = Uo(s), i.c(), Me(i, 1), i.m(e.parentNode, e)) : i && (Ea(), st(i, 1, 1, () => {
11671
+ 4 && Me(i, 1)) : (i = zo(s), i.c(), Me(i, 1), i.m(e.parentNode, e)) : i && (Ea(), nt(i, 1, 1, () => {
11672
11672
  i = null;
11673
11673
  }), xa());
11674
11674
  },
@@ -11676,14 +11676,14 @@ function Dy(r) {
11676
11676
  t || (Me(i), t = !0);
11677
11677
  },
11678
11678
  o(s) {
11679
- st(i), t = !1;
11679
+ nt(i), t = !1;
11680
11680
  },
11681
11681
  d(s) {
11682
11682
  s && Re(e), i && i.d(s);
11683
11683
  }
11684
11684
  };
11685
11685
  }
11686
- function Vo(r, e, t) {
11686
+ function Go(r, e, t) {
11687
11687
  const i = e - r;
11688
11688
  return (100 - (e - t) / i * 100).toFixed(2);
11689
11689
  }
@@ -11721,8 +11721,8 @@ function Ty(r, e, t) {
11721
11721
  const S = p.getBoundingClientRect();
11722
11722
  let F = (C.clientX - S.left) / S.width;
11723
11723
  F < 0 ? F = 0 : F > 1 && (F = 1);
11724
- const ve = M.totalTime * F;
11725
- z(ve);
11724
+ const Se = M.totalTime * F;
11725
+ z(Se);
11726
11726
  }, G = (C) => {
11727
11727
  w !== "skipping" && (C.key === "ArrowLeft" ? z(f - 5) : C.key === "ArrowRight" && z(f + 5));
11728
11728
  }, le = (C) => {
@@ -11760,7 +11760,7 @@ function Ty(r, e, t) {
11760
11760
  });
11761
11761
  }
11762
11762
  const pe = (C) => le(C);
11763
- function be(C) {
11763
+ function ve(C) {
11764
11764
  a = C, t(0, a);
11765
11765
  }
11766
11766
  const A = () => i("fullscreen");
@@ -11777,28 +11777,28 @@ function Ty(r, e, t) {
11777
11777
  }
11778
11778
  r.$$.dirty[0] & /*replayer, tags*/
11779
11779
  655360 && t(9, U = (() => {
11780
- const { context: C } = s.service.state, S = C.events.length, R = C.events[0].timestamp, F = C.events[S - 1].timestamp, ve = [];
11780
+ const { context: C } = s.service.state, S = C.events.length, R = C.events[0].timestamp, F = C.events[S - 1].timestamp, Se = [];
11781
11781
  return C.events.forEach((ke) => {
11782
- if (ke.type === ln.Custom) {
11782
+ if (ke.type === cn.Custom) {
11783
11783
  const Le = {
11784
11784
  name: ke.data.tag,
11785
11785
  background: u[ke.data.tag] || "rgb(73, 80, 246)",
11786
- position: `${Vo(R, F, ke.timestamp)}%`
11786
+ position: `${Go(R, F, ke.timestamp)}%`
11787
11787
  };
11788
- ve.push(Le);
11788
+ Se.push(Le);
11789
11789
  }
11790
- }), ve;
11790
+ }), Se;
11791
11791
  })()), r.$$.dirty[0] & /*replayer, inactiveColor*/
11792
11792
  1179648 && t(13, T = (() => {
11793
11793
  try {
11794
- const { context: C } = s.service.state, S = C.events.length, R = C.events[0].timestamp, F = C.events[S - 1].timestamp, ve = Ry(C.events, s.config.inactivePeriodThreshold), ke = (Le, Sc, Cc, Ec) => {
11794
+ const { context: C } = s.service.state, S = C.events.length, R = C.events[0].timestamp, F = C.events[S - 1].timestamp, Se = Ry(C.events, s.config.inactivePeriodThreshold), ke = (Le, Sc, Cc, Ec) => {
11795
11795
  const xc = Sc - Le;
11796
11796
  return ((Ec - Cc) / xc * 100).toFixed(2);
11797
11797
  };
11798
- return ve.map((Le) => ({
11798
+ return Se.map((Le) => ({
11799
11799
  name: "inactive period",
11800
11800
  background: h,
11801
- position: `${Vo(R, F, Le[0])}%`,
11801
+ position: `${Go(R, F, Le[0])}%`,
11802
11802
  width: `${ke(R, F, Le[0], Le[1])}%`
11803
11803
  }));
11804
11804
  } catch {
@@ -11835,18 +11835,18 @@ function Ty(r, e, t) {
11835
11835
  ie,
11836
11836
  Q,
11837
11837
  pe,
11838
- be,
11838
+ ve,
11839
11839
  A
11840
11840
  ];
11841
11841
  }
11842
- class Oy extends Ls {
11842
+ class Oy extends $s {
11843
11843
  constructor(e) {
11844
- super(), Ps(
11844
+ super(), Ls(
11845
11845
  this,
11846
11846
  e,
11847
11847
  Ty,
11848
11848
  Dy,
11849
- Ds,
11849
+ Ts,
11850
11850
  {
11851
11851
  replayer: 17,
11852
11852
  showController: 2,
@@ -11894,7 +11894,7 @@ class Oy extends Ls {
11894
11894
  return this.$$.ctx[26];
11895
11895
  }
11896
11896
  }
11897
- function Go(r) {
11897
+ function Yo(r) {
11898
11898
  let e, t, i = {
11899
11899
  replayer: (
11900
11900
  /*replayer*/
@@ -11934,7 +11934,7 @@ function Go(r) {
11934
11934
  Aa(e.$$.fragment);
11935
11935
  },
11936
11936
  m(s, n) {
11937
- Ts(e, s, n), t = !0;
11937
+ Os(e, s, n), t = !0;
11938
11938
  },
11939
11939
  p(s, n) {
11940
11940
  const o = {};
@@ -11958,17 +11958,17 @@ function Go(r) {
11958
11958
  t || (Me(e.$$.fragment, s), t = !0);
11959
11959
  },
11960
11960
  o(s) {
11961
- st(e.$$.fragment, s), t = !1;
11961
+ nt(e.$$.fragment, s), t = !1;
11962
11962
  },
11963
11963
  d(s) {
11964
- r[32](null), Os(e, s);
11964
+ r[32](null), Ps(e, s);
11965
11965
  }
11966
11966
  };
11967
11967
  }
11968
11968
  function Py(r) {
11969
11969
  let e, t, i, s, n = (
11970
11970
  /*replayer*/
11971
- r[7] && Go(r)
11971
+ r[7] && Yo(r)
11972
11972
  );
11973
11973
  return {
11974
11974
  c() {
@@ -11996,7 +11996,7 @@ function Py(r) {
11996
11996
  o[11]
11997
11997
  ), /*replayer*/
11998
11998
  o[7] ? n ? (n.p(o, a), a[0] & /*replayer*/
11999
- 128 && Me(n, 1)) : (n = Go(o), n.c(), Me(n, 1), n.m(e, null)) : n && (Ea(), st(n, 1, 1, () => {
11999
+ 128 && Me(n, 1)) : (n = Yo(o), n.c(), Me(n, 1), n.m(e, null)) : n && (Ea(), nt(n, 1, 1, () => {
12000
12000
  n = null;
12001
12001
  }), xa()), (!s || a[0] & /*playerStyle*/
12002
12002
  4096) && D(
@@ -12010,20 +12010,20 @@ function Py(r) {
12010
12010
  s || (Me(n), s = !0);
12011
12011
  },
12012
12012
  o(o) {
12013
- st(n), s = !1;
12013
+ nt(n), s = !1;
12014
12014
  },
12015
12015
  d(o) {
12016
12016
  o && Re(e), r[31](null), n && n.d(), r[34](null);
12017
12017
  }
12018
12018
  };
12019
12019
  }
12020
- const Yo = 80;
12020
+ const Ho = 80;
12021
12021
  function Ly(r, e, t) {
12022
12022
  let { width: i = 1024 } = e, { height: s = 576 } = e, { maxScale: n = 1 } = e, { events: o } = e, { skipInactive: a = !0 } = e, { autoPlay: l = !0 } = e, { speedOption: c = [1, 2, 4, 8] } = e, { speed: u = 1 } = e, { showController: h = !0 } = e, { tags: f = {} } = e, { inactiveColor: d = "#D4D4D4" } = e, m;
12023
12023
  const w = () => m.getMirror();
12024
12024
  let p, g, b, v = i, E = s, M, _, U;
12025
12025
  const T = (S, R) => {
12026
- const F = i / R.width, ve = s / R.height, ke = [F, ve];
12026
+ const F = i / R.width, Se = s / R.height, ke = [F, Se];
12027
12027
  n && ke.push(n), S.style.transform = `scale(${Math.min(...ke)})translate(-50%, -50%)`;
12028
12028
  }, K = () => {
12029
12029
  T(m.wrapper, {
@@ -12031,7 +12031,7 @@ function Ly(r, e, t) {
12031
12031
  height: m.iframe.offsetHeight
12032
12032
  });
12033
12033
  }, V = () => {
12034
- p && (Po() ? Ey() : Cy(p));
12034
+ p && (Lo() ? Ey() : Cy(p));
12035
12035
  }, de = (S, R) => {
12036
12036
  switch (m.on(S, R), S) {
12037
12037
  case "ui-update-current-time":
@@ -12053,14 +12053,14 @@ function Ly(r, e, t) {
12053
12053
  M.pause();
12054
12054
  }, ie = (S, R) => {
12055
12055
  M.goto(S, R);
12056
- }, Q = (S, R, F = !1, ve = void 0) => {
12057
- M.playRange(S, R, F, ve);
12056
+ }, Q = (S, R, F = !1, Se = void 0) => {
12057
+ M.playRange(S, R, F, Se);
12058
12058
  };
12059
12059
  va(() => {
12060
- if (c !== void 0 && Lo(c) !== "array")
12060
+ if (c !== void 0 && $o(c) !== "array")
12061
12061
  throw new Error("speedOption must be array");
12062
12062
  if (c.forEach((S) => {
12063
- if (Lo(S) !== "number")
12063
+ if ($o(S) !== "number")
12064
12064
  throw new Error("item of speedOption must be number");
12065
12065
  }), c.indexOf(u) < 0)
12066
12066
  throw new Error(`speed must be one of speedOption,
@@ -12083,9 +12083,9 @@ function Ly(r, e, t) {
12083
12083
  )), m.on("resize", (S) => {
12084
12084
  T(m.wrapper, S);
12085
12085
  }), b = xy(() => {
12086
- Po() ? setTimeout(
12086
+ Lo() ? setTimeout(
12087
12087
  () => {
12088
- v = i, E = s, t(13, i = p.offsetWidth), t(14, s = p.offsetHeight - (h ? Yo : 0)), T(m.wrapper, {
12088
+ v = i, E = s, t(13, i = p.offsetWidth), t(14, s = p.offsetHeight - (h ? Ho : 0)), T(m.wrapper, {
12089
12089
  width: m.iframe.offsetWidth,
12090
12090
  height: m.iframe.offsetHeight
12091
12091
  });
@@ -12104,7 +12104,7 @@ function Ly(r, e, t) {
12104
12104
  g = S, t(9, g);
12105
12105
  });
12106
12106
  }
12107
- function be(S) {
12107
+ function ve(S) {
12108
12108
  Be[S ? "unshift" : "push"](() => {
12109
12109
  M = S, t(10, M);
12110
12110
  });
@@ -12116,18 +12116,18 @@ function Ly(r, e, t) {
12116
12116
  });
12117
12117
  }
12118
12118
  return r.$$set = (S) => {
12119
- t(39, e = Rn(Rn({}, e), Mn(S))), "width" in S && t(13, i = S.width), "height" in S && t(14, s = S.height), "maxScale" in S && t(15, n = S.maxScale), "events" in S && t(16, o = S.events), "skipInactive" in S && t(0, a = S.skipInactive), "autoPlay" in S && t(1, l = S.autoPlay), "speedOption" in S && t(2, c = S.speedOption), "speed" in S && t(17, u = S.speed), "showController" in S && t(3, h = S.showController), "tags" in S && t(4, f = S.tags), "inactiveColor" in S && t(5, d = S.inactiveColor);
12119
+ t(39, e = kn(kn({}, e), Nn(S))), "width" in S && t(13, i = S.width), "height" in S && t(14, s = S.height), "maxScale" in S && t(15, n = S.maxScale), "events" in S && t(16, o = S.events), "skipInactive" in S && t(0, a = S.skipInactive), "autoPlay" in S && t(1, l = S.autoPlay), "speedOption" in S && t(2, c = S.speedOption), "speed" in S && t(17, u = S.speed), "showController" in S && t(3, h = S.showController), "tags" in S && t(4, f = S.tags), "inactiveColor" in S && t(5, d = S.inactiveColor);
12120
12120
  }, r.$$.update = () => {
12121
12121
  r.$$.dirty[0] & /*width, height*/
12122
- 24576 && t(11, _ = To({
12122
+ 24576 && t(11, _ = Oo({
12123
12123
  width: `${i}px`,
12124
12124
  height: `${s}px`
12125
12125
  })), r.$$.dirty[0] & /*width, height, showController*/
12126
- 24584 && t(12, U = To({
12126
+ 24584 && t(12, U = Oo({
12127
12127
  width: `${i}px`,
12128
- height: `${s + (h ? Yo : 0)}px`
12128
+ height: `${s + (h ? Ho : 0)}px`
12129
12129
  }));
12130
- }, e = Mn(e), [
12130
+ }, e = Nn(e), [
12131
12131
  a,
12132
12132
  l,
12133
12133
  c,
@@ -12160,19 +12160,19 @@ function Ly(r, e, t) {
12160
12160
  ie,
12161
12161
  Q,
12162
12162
  pe,
12163
- be,
12163
+ ve,
12164
12164
  A,
12165
12165
  C
12166
12166
  ];
12167
12167
  }
12168
- let $y = class extends Ls {
12168
+ let $y = class extends $s {
12169
12169
  constructor(e) {
12170
- super(), Ps(
12170
+ super(), Ls(
12171
12171
  this,
12172
12172
  e,
12173
12173
  Ly,
12174
12174
  Py,
12175
- Ds,
12175
+ Ts,
12176
12176
  {
12177
12177
  width: 13,
12178
12178
  height: 14,
@@ -12265,7 +12265,7 @@ const By = [
12265
12265
  "application/json"
12266
12266
  ], Uy = 2 * 1024 * 1024, xs = 5;
12267
12267
  function zy(r) {
12268
- const [e, t] = xe(""), [i, s] = xe([]), [n, o] = xe(!1), [a, l] = xe("console"), c = e.trim().length > 0;
12268
+ const [e, t] = ge(""), [i, s] = ge([]), [n, o] = ge(!1), [a, l] = ge("console"), c = e.trim().length > 0;
12269
12269
  return /* @__PURE__ */ k(Xy, { children: [
12270
12270
  /* @__PURE__ */ k("div", { style: Ky, children: [
12271
12271
  /* @__PURE__ */ y("h2", { style: { margin: 0, fontSize: 18, fontWeight: 700 }, children: "Review & send" }),
@@ -12286,7 +12286,7 @@ function zy(r) {
12286
12286
  }
12287
12287
  ),
12288
12288
  /* @__PURE__ */ k("div", { style: { marginTop: 18 }, children: [
12289
- /* @__PURE__ */ k("label", { style: Xo, children: [
12289
+ /* @__PURE__ */ k("label", { style: Jo, children: [
12290
12290
  "What happened? ",
12291
12291
  /* @__PURE__ */ y("span", { style: { color: "#ef4444" }, children: "*" })
12292
12292
  ] }),
@@ -12302,7 +12302,7 @@ function zy(r) {
12302
12302
  )
12303
12303
  ] }),
12304
12304
  /* @__PURE__ */ k("div", { style: { marginTop: 14 }, children: [
12305
- /* @__PURE__ */ k("label", { style: Xo, children: [
12305
+ /* @__PURE__ */ k("label", { style: Jo, children: [
12306
12306
  "Attachments",
12307
12307
  " ",
12308
12308
  /* @__PURE__ */ k("span", { style: { color: "#9ca3af", fontWeight: 400 }, children: [
@@ -12398,8 +12398,8 @@ function zy(r) {
12398
12398
  ] }),
12399
12399
  /* @__PURE__ */ k("div", { style: iw, children: [
12400
12400
  /* @__PURE__ */ k("div", { style: { display: "flex", gap: 8 }, children: [
12401
- /* @__PURE__ */ y(Zo, { onClick: r.onCancel, children: "Cancel" }),
12402
- /* @__PURE__ */ y(Zo, { onClick: r.onBackToMarkup, children: "← Back to edit" })
12401
+ /* @__PURE__ */ y(Xo, { onClick: r.onCancel, children: "Cancel" }),
12402
+ /* @__PURE__ */ y(Xo, { onClick: r.onBackToMarkup, children: "← Back to edit" })
12403
12403
  ] }),
12404
12404
  /* @__PURE__ */ y(
12405
12405
  Jy,
@@ -12423,7 +12423,7 @@ function jy(r, e, t) {
12423
12423
  t(i.slice(0, xs));
12424
12424
  }
12425
12425
  function Wy(r) {
12426
- const [e, t] = xe(
12426
+ const [e, t] = ge(
12427
12427
  r.hasReplay ? "replay" : "screenshot"
12428
12428
  );
12429
12429
  return /* @__PURE__ */ k(
@@ -12447,13 +12447,13 @@ function Wy(r) {
12447
12447
  },
12448
12448
  children: [
12449
12449
  r.hasReplay ? /* @__PURE__ */ k("div", { style: { display: "flex", gap: 4 }, children: [
12450
- /* @__PURE__ */ k(Ho, { active: e === "replay", onClick: () => t("replay"), children: [
12450
+ /* @__PURE__ */ k(Zo, { active: e === "replay", onClick: () => t("replay"), children: [
12451
12451
  "Replay · ",
12452
- un(r.durationMs),
12452
+ hn(r.durationMs),
12453
12453
  r.audioBlobUrl ? " · audio" : ""
12454
12454
  ] }),
12455
12455
  /* @__PURE__ */ y(
12456
- Ho,
12456
+ Zo,
12457
12457
  {
12458
12458
  active: e === "screenshot",
12459
12459
  onClick: () => t("screenshot"),
@@ -12533,11 +12533,11 @@ function Wy(r) {
12533
12533
  );
12534
12534
  }
12535
12535
  function Vy({ logs: r }) {
12536
- return r.length === 0 ? /* @__PURE__ */ y(cn, { children: "Nothing was logged during the recording." }) : /* @__PURE__ */ y("pre", { style: rw, children: r.map((e) => `[${un(e.timestamp)}] [${e.level}] ${e.message}`).join(`
12536
+ return r.length === 0 ? /* @__PURE__ */ y(un, { children: "Nothing was logged during the recording." }) : /* @__PURE__ */ y("pre", { style: rw, children: r.map((e) => `[${hn(e.timestamp)}] [${e.level}] ${e.message}`).join(`
12537
12537
  `) });
12538
12538
  }
12539
12539
  function Gy({ events: r }) {
12540
- return r.length === 0 ? /* @__PURE__ */ y(cn, { children: "No network requests captured." }) : /* @__PURE__ */ k("table", { style: { width: "100%", fontSize: 11, borderCollapse: "collapse" }, children: [
12540
+ return r.length === 0 ? /* @__PURE__ */ y(un, { children: "No network requests captured." }) : /* @__PURE__ */ k("table", { style: { width: "100%", fontSize: 11, borderCollapse: "collapse" }, children: [
12541
12541
  /* @__PURE__ */ y("thead", { children: /* @__PURE__ */ k("tr", { style: { color: "#6b7280", textAlign: "left" }, children: [
12542
12542
  /* @__PURE__ */ y("th", { style: Cr, children: "method" }),
12543
12543
  /* @__PURE__ */ y("th", { style: Cr, children: "status" }),
@@ -12561,7 +12561,7 @@ function Gy({ events: r }) {
12561
12561
  }
12562
12562
  function Yy({ summary: r }) {
12563
12563
  const e = Object.entries(r.counts).filter(([, t]) => t > 0);
12564
- return e.length === 0 ? /* @__PURE__ */ y(cn, { children: "No regex matches. Form input values are still automatically masked by rrweb." }) : /* @__PURE__ */ k("div", { children: [
12564
+ return e.length === 0 ? /* @__PURE__ */ y(un, { children: "No regex matches. Form input values are still automatically masked by rrweb." }) : /* @__PURE__ */ k("div", { children: [
12565
12565
  /* @__PURE__ */ y("div", { style: { display: "flex", flexWrap: "wrap", gap: 6, marginBottom: 10 }, children: e.map(([t, i]) => /* @__PURE__ */ k(
12566
12566
  "span",
12567
12567
  {
@@ -12595,7 +12595,7 @@ function Hy(r) {
12595
12595
  ["Page URL", r.pageUrl],
12596
12596
  ["User agent", r.userAgent],
12597
12597
  ["Viewport", `${r.viewport.width} × ${r.viewport.height}`],
12598
- ["Recording", r.hasReplay ? `${un(r.durationMs)} (replay)` : "screenshot only"],
12598
+ ["Recording", r.hasReplay ? `${hn(r.durationMs)} (replay)` : "screenshot only"],
12599
12599
  ["Audio", r.hasAudio ? "attached" : "none"],
12600
12600
  [
12601
12601
  "Attachments",
@@ -12630,7 +12630,7 @@ function Hy(r) {
12630
12630
  )
12631
12631
  ] }, t)) }) });
12632
12632
  }
12633
- function cn({ children: r }) {
12633
+ function un({ children: r }) {
12634
12634
  return /* @__PURE__ */ y(
12635
12635
  "div",
12636
12636
  {
@@ -12669,7 +12669,7 @@ function Sr({
12669
12669
  }
12670
12670
  );
12671
12671
  }
12672
- function Ho({
12672
+ function Zo({
12673
12673
  active: r,
12674
12674
  onClick: e,
12675
12675
  children: t
@@ -12696,8 +12696,8 @@ function Ho({
12696
12696
  );
12697
12697
  }
12698
12698
  function Zy(r) {
12699
- const e = hn(null), t = hn(null);
12700
- return Ko(() => {
12699
+ const e = fn(null), t = fn(null);
12700
+ return ks(() => {
12701
12701
  const i = e.current;
12702
12702
  if (!i || r.events.length === 0) return;
12703
12703
  i.replaceChildren();
@@ -12810,7 +12810,7 @@ function Jy({
12810
12810
  }
12811
12811
  );
12812
12812
  }
12813
- function Zo({
12813
+ function Xo({
12814
12814
  onClick: r,
12815
12815
  children: e
12816
12816
  }) {
@@ -12837,7 +12837,7 @@ const Ky = {
12837
12837
  alignItems: "baseline",
12838
12838
  justifyContent: "space-between",
12839
12839
  marginBottom: 14
12840
- }, Xo = {
12840
+ }, Jo = {
12841
12841
  display: "block",
12842
12842
  fontSize: 12,
12843
12843
  fontWeight: 600,
@@ -12911,7 +12911,7 @@ const Ky = {
12911
12911
  borderTop: "1px solid #e5e7eb",
12912
12912
  zIndex: 1
12913
12913
  };
12914
- function un(r) {
12914
+ function hn(r) {
12915
12915
  const e = Math.floor(r / 1e3), t = Math.floor(e / 60), i = e % 60;
12916
12916
  return `${t}:${String(i).padStart(2, "0")}`;
12917
12917
  }
@@ -12980,7 +12980,7 @@ function nw(r) {
12980
12980
  onSend: r.onSendReport
12981
12981
  }
12982
12982
  ),
12983
- r.view === "uploading" && /* @__PURE__ */ y(hw, { children: "Uploading report…" }),
12983
+ r.view === "uploading" && /* @__PURE__ */ y(hw, { color: r.primaryColor }),
12984
12984
  r.view === "success" && /* @__PURE__ */ y(
12985
12985
  fw,
12986
12986
  {
@@ -13058,7 +13058,7 @@ function aw({
13058
13058
  onClick: t
13059
13059
  }) {
13060
13060
  const i = lw(r, 0.12), s = cw(r, 0.33);
13061
- return /* @__PURE__ */ k(vt, { children: [
13061
+ return /* @__PURE__ */ k(Qe, { children: [
13062
13062
  /* @__PURE__ */ y("style", { children: `
13063
13063
  [data-bugjar-block] .bugjar-trigger {
13064
13064
  background: ${r};
@@ -13136,21 +13136,68 @@ function uw({ size: r = 14, stroke: e = 1.7 }) {
13136
13136
  }
13137
13137
  );
13138
13138
  }
13139
- function hw({ children: r }) {
13140
- return /* @__PURE__ */ y(
13141
- "div",
13142
- {
13143
- style: {
13144
- background: "#111827",
13145
- color: "white",
13146
- padding: "10px 16px",
13147
- borderRadius: 8,
13148
- fontFamily: "system-ui",
13149
- fontSize: 13
13150
- },
13151
- children: r
13152
- }
13153
- );
13139
+ function hw({ color: r }) {
13140
+ const [e, t] = ge(0);
13141
+ ks(() => {
13142
+ const s = window.setTimeout(() => t(1), 4e3), n = window.setTimeout(() => t(2), 1e4);
13143
+ return () => {
13144
+ window.clearTimeout(s), window.clearTimeout(n);
13145
+ };
13146
+ }, []);
13147
+ const i = ["Uploading your report…", "Uploading replay — this can take a moment…", "Almost done — finalizing…"];
13148
+ return /* @__PURE__ */ k(Qe, { children: [
13149
+ /* @__PURE__ */ y("style", { children: `
13150
+ @keyframes bugjar-spin { to { transform: rotate(360deg); } }
13151
+ @keyframes bugjar-bar { 0% { background-position: 0 0; } 100% { background-position: 24px 0; } }
13152
+ .bugjar-spinner {
13153
+ width: 14px;
13154
+ height: 14px;
13155
+ border-radius: 50%;
13156
+ border: 2px solid rgba(255,255,255,0.25);
13157
+ border-top-color: white;
13158
+ animation: bugjar-spin 0.8s linear infinite;
13159
+ flex-shrink: 0;
13160
+ }
13161
+ .bugjar-upload-bar {
13162
+ height: 2px;
13163
+ background: linear-gradient(
13164
+ 90deg,
13165
+ transparent 0%,
13166
+ ${r} 30%,
13167
+ ${r} 60%,
13168
+ transparent 100%
13169
+ );
13170
+ background-size: 200% 100%;
13171
+ background-repeat: repeat-x;
13172
+ animation: bugjar-bar 1.2s linear infinite;
13173
+ margin-top: 8px;
13174
+ border-radius: 2px;
13175
+ }
13176
+ ` }),
13177
+ /* @__PURE__ */ k(
13178
+ "div",
13179
+ {
13180
+ style: {
13181
+ background: "#111827",
13182
+ color: "white",
13183
+ padding: "12px 16px",
13184
+ borderRadius: 10,
13185
+ fontFamily: "system-ui, -apple-system, sans-serif",
13186
+ fontSize: 13,
13187
+ boxShadow: "0 10px 30px rgba(0,0,0,0.3)",
13188
+ minWidth: 240,
13189
+ maxWidth: 320
13190
+ },
13191
+ children: [
13192
+ /* @__PURE__ */ k("div", { style: { display: "flex", alignItems: "center", gap: 10 }, children: [
13193
+ /* @__PURE__ */ y("span", { className: "bugjar-spinner" }),
13194
+ /* @__PURE__ */ y("span", { children: i[e] })
13195
+ ] }),
13196
+ /* @__PURE__ */ y("div", { className: "bugjar-upload-bar" })
13197
+ ]
13198
+ }
13199
+ )
13200
+ ] });
13154
13201
  }
13155
13202
  function fw({
13156
13203
  color: r,
@@ -13316,7 +13363,7 @@ async function xr(r, e) {
13316
13363
  throw new Error(`PUT ${Zr(r)} failed: ${t.status} ${i.slice(0, 160)}`);
13317
13364
  }
13318
13365
  }
13319
- const Ar = [200, 800, 3200], Jo = 3e4;
13366
+ const Ar = [200, 800, 3200], Ko = 3e4;
13320
13367
  async function Rs(r, e) {
13321
13368
  let t = null;
13322
13369
  for (let i = 0; i <= Ar.length; i++) {
@@ -13343,13 +13390,13 @@ function ww(r, e) {
13343
13390
  return !r || typeof AbortSignal.any != "function" ? e : AbortSignal.any([r, e]);
13344
13391
  }
13345
13392
  async function bw(r, e) {
13346
- const t = AbortSignal.timeout(Jo), i = ww(e.signal, t);
13393
+ const t = AbortSignal.timeout(Ko), i = ww(e.signal, t);
13347
13394
  try {
13348
13395
  return await pw(r, { ...e, signal: i });
13349
13396
  } catch (s) {
13350
13397
  const n = (e.method ?? "GET").toUpperCase();
13351
13398
  if (t.aborted && !e.signal?.aborted)
13352
- throw new Error(`${n} ${Zr(r)} timed out after ${Jo / 1e3}s`);
13399
+ throw new Error(`${n} ${Zr(r)} timed out after ${Ko / 1e3}s`);
13353
13400
  const a = s, l = a?.cause instanceof Error ? `: ${a.cause.message}` : a?.cause ? `: ${String(a.cause)}` : "", c = s instanceof Error ? s.message : String(s);
13354
13401
  throw new Error(`${n} ${Zr(r)} failed: ${c}${l}`);
13355
13402
  }
@@ -13497,7 +13544,7 @@ class Cw {
13497
13544
  this.config.onError?.(o instanceof Error ? o : new Error(String(o)));
13498
13545
  }
13499
13546
  this.sessionId = i.sessionId, this.persistedActiveMs = i.activeMs, this.view = "active", this.isRecording = !0, this.elapsedMs = i.activeMs, this.resumingToast = { remainingMs: s }, this.ensureMarkupLayer(), this.render();
13500
- const n = new yn({
13547
+ const n = new wn({
13501
13548
  sessionId: i.sessionId,
13502
13549
  projectKey: e,
13503
13550
  persistedActiveMs: i.activeMs,
@@ -13551,6 +13598,14 @@ class Cw {
13551
13598
  * it on the resolved config. Idempotent — re-running with the same
13552
13599
  * token is a no-op. Failures don't throw; they call onError and
13553
13600
  * leave default redaction in place.
13601
+ *
13602
+ * On success, auto-opens the markup toolbar (`view = 'active'`).
13603
+ * Rationale: the user arrived here from clicking "Allow" on the
13604
+ * consent page — their explicit intent is to record. Making them
13605
+ * hunt for the trigger button after that is unnecessary friction.
13606
+ * Recording itself stays manual (one more Record click) because
13607
+ * the browser's getUserMedia permission prompt needs the user's
13608
+ * explicit gesture to fire cleanly.
13554
13609
  */
13555
13610
  async applyCaptureToken(e) {
13556
13611
  if (this.config && this.config.captureToken !== e)
@@ -13566,7 +13621,7 @@ class Cw {
13566
13621
  );
13567
13622
  }
13568
13623
  const { disableCategories: i } = await t.json(), s = iu(i);
13569
- this.config.captureToken = e, this.config.disabledCategories = s;
13624
+ this.config.captureToken = e, this.config.disabledCategories = s, this.view === "idle" && this.open();
13570
13625
  } catch (t) {
13571
13626
  this.config.onError?.(t instanceof Error ? t : new Error(String(t)));
13572
13627
  }
@@ -13656,7 +13711,7 @@ class Cw {
13656
13711
  async startRecording() {
13657
13712
  if (!this.config || this.isRecording || this.recorder) return;
13658
13713
  this.discardPersistedSession(), this.isRecording = !0, this.elapsedMs = 0, this.lastRecording = null, this.persistedActiveMs = 0;
13659
- const e = pn();
13714
+ const e = mn();
13660
13715
  this.sessionId = e;
13661
13716
  const t = {
13662
13717
  sessionId: e,
@@ -13675,7 +13730,7 @@ class Cw {
13675
13730
  } catch (i) {
13676
13731
  this.config.onError?.(i instanceof Error ? i : new Error(String(i)));
13677
13732
  }
13678
- this.render(), this.recorder = new yn({
13733
+ this.render(), this.recorder = new wn({
13679
13734
  sessionId: e,
13680
13735
  projectKey: this.config.projectKey,
13681
13736
  persistedActiveMs: 0,
@@ -13720,7 +13775,7 @@ class Cw {
13720
13775
  const w = At(m, e, t);
13721
13776
  return { ...w, url: Oi(w.url, e) };
13722
13777
  }) : [], a = await bh(), l = { width: window.innerWidth, height: window.innerHeight }, c = i?.audioBlob ?? null, u = i?.durationMs ?? 0, h = {
13723
- reportId: pn(),
13778
+ reportId: mn(),
13724
13779
  createdAt: Date.now(),
13725
13780
  durationMs: u,
13726
13781
  rrwebEvents: s,
@@ -13837,4 +13892,3 @@ export {
13837
13892
  Rw as BugJar,
13838
13893
  Aw as _client
13839
13894
  };
13840
- //# sourceMappingURL=index.js.map