@sailfish-ai/recorder 1.8.11 → 1.8.12-alpha-2

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/recorder.js CHANGED
@@ -373,26 +373,29 @@ function withAppUrlMetadata(e) {
373
373
  return { ...e ?? {}, appUrl: (e == null ? void 0 : e.appUrl) ?? ((_a2 = window == null ? void 0 : window.location) == null ? void 0 : _a2.href) };
374
374
  }
375
375
  /[1-9][0-9]{12}/.test(Date.now().toString()) || (ne = () => (/* @__PURE__ */ new Date()).getTime());
376
- const re = readDebugFlag(), oe = "per_session", se = "sailfish_funcspan_global_state";
377
- let ie = null, le = false, ce = null, pe = null;
376
+ const re = readDebugFlag(), oe = "per_session";
377
+ let se = null, ie = false, le = null, ce = null, pe = false, de = null, he = null, me = false;
378
+ const ge = "sailfish_funcspan_global_state";
378
379
  function saveGlobalFuncSpanState(e, a) {
379
380
  try {
380
381
  if ("undefined" == typeof localStorage) return;
381
- const u = { enabled: e, expirationTimestampMs: a };
382
- localStorage.setItem(se, JSON.stringify(u)), re && console.log("[Sailfish] Saved global function span state to localStorage:", u);
382
+ const u = { enabled: e, expirationTimestampMs: a, savedAt: Date.now() };
383
+ localStorage.setItem(ge, JSON.stringify(u)), re && console.log("[Sailfish] Saved funcSpan state to localStorage:", u);
383
384
  } catch (e2) {
384
- re && console.warn("[Sailfish] Failed to save global function span state to localStorage:", e2);
385
+ re && console.warn("[Sailfish] Failed to save funcSpan state to localStorage:", e2);
385
386
  }
386
387
  }
387
388
  function clearGlobalFuncSpanState() {
388
389
  try {
389
390
  if ("undefined" == typeof localStorage) return;
390
- localStorage.removeItem(se), re && console.log("[Sailfish] Cleared global function span state from localStorage");
391
+ localStorage.removeItem(ge), re && console.log("[Sailfish] Cleared funcSpan state from localStorage");
391
392
  } catch (e) {
392
- re && console.warn("[Sailfish] Failed to clear global function span state from localStorage:", e);
393
+ re && console.warn("[Sailfish] Failed to clear funcSpan state from localStorage:", e);
393
394
  }
394
395
  }
395
- let de = false, he = null, me = null, ge = false, ye = null, we = null;
396
+ function clearStaleFuncSpanState() {
397
+ pe = false, he = null, me = false, clearGlobalFuncSpanState(), re && console.log("[Sailfish] Cleared stale function span tracking state (backend validation failed)");
398
+ }
396
399
  function isWebSocketOpen(e) {
397
400
  return (e == null ? void 0 : e.readyState) === WebSocket.OPEN;
398
401
  }
@@ -403,15 +406,15 @@ async function flushNotifyQueue() {
403
406
  u.onsuccess = () => a(u.result), u.onerror = () => a([]);
404
407
  })) ?? [];
405
408
  })();
406
- if (isWebSocketOpen(ie)) try {
407
- for (const a of e) ie.send(a.value), await deleteNotifyMessageById(a.id);
409
+ if (isWebSocketOpen(se)) try {
410
+ for (const a of e) se.send(a.value), await deleteNotifyMessageById(a.id);
408
411
  } catch (e2) {
409
412
  }
410
413
  }
411
414
  async function flushBufferedEvents() {
412
- if (isWebSocketOpen(ie)) if (ce) await ce;
415
+ if (isWebSocketOpen(se)) if (le) await le;
413
416
  else {
414
- ce = (async () => {
417
+ le = (async () => {
415
418
  var _a2, _b;
416
419
  const e = await (async function getAllIndexedEvents() {
417
420
  return await withStore$1("readonly", (e2) => new Promise((a2) => {
@@ -426,119 +429,138 @@ async function flushBufferedEvents() {
426
429
  for (const e2 of Object.values(a)) {
427
430
  const a2 = buildBatches(e2, (e3) => eventSize(e3.data), 52428800);
428
431
  for (const e3 of a2) {
429
- if (!isWebSocketOpen(ie)) break;
432
+ if (!isWebSocketOpen(se)) break;
430
433
  const a3 = e3.map((e4) => {
431
434
  var _a3, _b2;
432
435
  return { ...e4.data, appUrl: ((_a3 = e4.data) == null ? void 0 : _a3.appUrl) ?? ((_b2 = window == null ? void 0 : window.location) == null ? void 0 : _b2.href) };
433
436
  }), u = e3.map((e4) => e4.id).filter((e4) => null != e4);
434
437
  try {
435
438
  const e4 = JSON.stringify({ type: "events", events: a3, mapUuid: window.sfMapUuid });
436
- ie.send(e4), await deleteEventsByIds(u);
439
+ se.send(e4), await deleteEventsByIds(u);
437
440
  } catch (e4) {
438
441
  }
439
442
  }
440
443
  }
441
444
  })();
442
445
  try {
443
- await ce;
446
+ await le;
444
447
  } finally {
445
- ce = null;
448
+ le = null;
446
449
  }
447
450
  }
448
451
  }
449
452
  function sendEvent(e) {
450
453
  var _a2;
451
454
  const a = { ...e, app_url: (e == null ? void 0 : e.app_url) ?? ((_a2 = window == null ? void 0 : window.location) == null ? void 0 : _a2.href) };
452
- if (le || !isWebSocketOpen(ie)) return void saveEventToIDB(a);
455
+ if (ie || !isWebSocketOpen(se)) return void saveEventToIDB(a);
453
456
  const u = JSON.stringify({ type: "event", event: a, mapUuid: window.sfMapUuid });
454
457
  try {
455
- ie.send(u);
458
+ se.send(u);
456
459
  } catch (e2) {
457
460
  saveEventToIDB(a);
458
461
  }
459
462
  }
460
- function initializeWebSocket(e, a, u) {
461
- const m2 = (function getWebSocketHost(e2) {
463
+ function initializeWebSocket(e, a, u, m2) {
464
+ const w2 = (function getWebSocketHost(e2) {
462
465
  const a2 = document.createElement("a");
463
466
  return a2.href = e2, `${a2.hostname}${a2.port ? `:${a2.port}` : ""}`;
464
- })(e), w2 = new URL(e).protocol;
465
- return ie = new $(`${"https:" === w2 ? "wss" : "ws"}://${m2}/ws/notify/?apiKey=${a}&sessionId=${u}&sender=JS%2FTS&version=1.8.11`, [], { connectionTimeout: 3e4 }), ie.addEventListener("open", () => {
466
- re && (console.log("[Sailfish] WebSocket connection opened"), console.log("[Sailfish] Function span tracking state: " + (de ? "ENABLED" : "DISABLED"))), (async () => {
467
+ })(e);
468
+ let b2 = `${"https:" === new URL(e).protocol ? "wss" : "ws"}://${w2}/ws/notify/?apiKey=${a}&sessionId=${u}&sender=JS%2FTS&version=1.8.12-alpha-2`;
469
+ m2 && (b2 += `&envValue=${encodeURIComponent(m2)}`);
470
+ return se = new $(b2, [], { connectionTimeout: 3e4 }), se.addEventListener("open", () => {
471
+ re && (console.log("[Sailfish] WebSocket connection opened"), console.log("[Sailfish] Function span tracking state: " + (pe ? "ENABLED" : "DISABLED"))), (async () => {
467
472
  try {
468
- le = true, await flushNotifyQueue(), await flushBufferedEvents();
473
+ ie = true, await flushNotifyQueue(), await flushBufferedEvents();
469
474
  } finally {
470
- le = false;
475
+ ie = false;
471
476
  }
472
- null != pe && clearInterval(pe), pe = window.setInterval(() => {
477
+ null != ce && clearInterval(ce), ce = window.setInterval(() => {
473
478
  flushBufferedEvents();
474
479
  }, 2e3);
475
480
  })();
476
- }), ie.addEventListener("close", () => {
481
+ }), se.addEventListener("close", () => {
477
482
  re && console.log("[Sailfish] WebSocket closed");
478
- }), ie.addEventListener("message", (e2) => {
483
+ }), se.addEventListener("message", (e2) => {
479
484
  try {
480
485
  const a2 = JSON.parse(e2.data);
481
- if ("funcSpanTrackingControl" === a2.type) if (re && console.log("[Sailfish] Received funcSpanTrackingControl message:", { enabled: a2.enabled, timeoutSeconds: a2.timeoutSeconds, expirationTimestampMs: a2.expirationTimestampMs }), null !== he && (window.clearTimeout(he), he = null), de = a2.enabled, ge = false, re && console.log("[Sailfish] Function span tracking " + (a2.enabled ? "ENABLED (GLOBAL)" : "DISABLED (GLOBAL)")), a2.enabled) {
486
+ if ("funcSpanTrackingControl" === a2.type) if (re && console.log("[Sailfish] Received funcSpanTrackingControl message:", { enabled: a2.enabled, timeoutSeconds: a2.timeoutSeconds, expirationTimestampMs: a2.expirationTimestampMs }), null !== de && (window.clearTimeout(de), de = null), pe = a2.enabled, me = false, re && console.log("[Sailfish] Function span tracking " + (a2.enabled ? "ENABLED (GLOBAL)" : "DISABLED (GLOBAL)")), a2.enabled) {
482
487
  if (a2.expirationTimestampMs) {
483
- me = a2.expirationTimestampMs;
484
- const e3 = Date.now(), u2 = me - e3;
485
- re && console.log(`[Sailfish] Server expiration timestamp: ${me}, ms until expiration: ${u2}`), u2 > 0 ? (saveGlobalFuncSpanState(true, me), he = window.setTimeout(() => {
486
- ge || (de = false, me = null, clearGlobalFuncSpanState(), re && console.log("[Sailfish] GLOBAL function span tracking auto-disabled at server expiration time"));
487
- }, u2)) : (de = false, me = null, clearGlobalFuncSpanState(), re && console.log("[Sailfish] Tracking already expired, not enabling"));
488
+ he = a2.expirationTimestampMs;
489
+ const e3 = Date.now(), u2 = he - e3;
490
+ re && console.log(`[Sailfish] Server expiration timestamp: ${he}, ms until expiration: ${u2}`), u2 > 0 ? (saveGlobalFuncSpanState(true, he), de = window.setTimeout(() => {
491
+ if (!me) {
492
+ pe = false, he = null, clearGlobalFuncSpanState(), re && console.log("[Sailfish] GLOBAL function span tracking auto-disabled at server expiration time");
493
+ try {
494
+ isWebSocketOpen(se) && (se.send(JSON.stringify({ type: "funcSpanTrackingExpired", sessionId: getOrSetSessionId(), expiredAt: Date.now() })), re && console.log("[Sailfish] Notified backend that function span tracking expired"));
495
+ } catch (e4) {
496
+ re && console.warn("[Sailfish] Failed to notify backend of tracking expiry:", e4);
497
+ }
498
+ }
499
+ }, u2)) : (pe = false, he = null, clearGlobalFuncSpanState(), re && console.log("[Sailfish] Tracking already expired, not enabling"));
488
500
  } else {
489
501
  const e3 = a2.timeoutSeconds || 3600;
490
- e3 > 0 && (me = Date.now() + 1e3 * e3, saveGlobalFuncSpanState(true, me), he = window.setTimeout(() => {
491
- ge || (de = false, me = null, clearGlobalFuncSpanState(), re && console.log(`[Sailfish] GLOBAL function span tracking auto-disabled after ${e3}s (legacy)`));
502
+ e3 > 0 && (he = Date.now() + 1e3 * e3, saveGlobalFuncSpanState(true, he), de = window.setTimeout(() => {
503
+ if (!me) {
504
+ pe = false, he = null, clearGlobalFuncSpanState(), re && console.log(`[Sailfish] GLOBAL function span tracking auto-disabled after ${e3}s (legacy)`);
505
+ try {
506
+ isWebSocketOpen(se) && (se.send(JSON.stringify({ type: "funcSpanTrackingExpired", sessionId: getOrSetSessionId(), expiredAt: Date.now() })), re && console.log("[Sailfish] Notified backend that function span tracking expired (legacy timeout)"));
507
+ } catch (e4) {
508
+ re && console.warn("[Sailfish] Failed to notify backend of tracking expiry:", e4);
509
+ }
510
+ }
492
511
  }, 1e3 * e3));
493
512
  }
494
513
  try {
495
514
  const e3 = getOrSetSessionId();
496
- ie.send(JSON.stringify({ type: "funcSpanTrackingSessionReport", sessionId: e3, enabled: true, configurationType: "global" })), re && console.log(`[Sailfish] GLOBAL tracking session report sent for session: ${e3}`);
515
+ se.send(JSON.stringify({ type: "funcSpanTrackingSessionReport", sessionId: e3, enabled: true, configurationType: "global" })), re && console.log(`[Sailfish] GLOBAL tracking session report sent for session: ${e3}`);
497
516
  } catch (e3) {
498
517
  re && console.warn("[Sailfish] Failed to send GLOBAL tracking session report:", e3);
499
518
  }
500
- } else me = null, clearGlobalFuncSpanState();
519
+ } else he = null, clearGlobalFuncSpanState();
501
520
  } catch (e3) {
502
521
  }
503
- }), ie;
522
+ }), se;
504
523
  }
505
524
  function sendMessage(e) {
506
525
  var _a2;
507
526
  "sessionId" in e || (e.sessionId = getOrSetSessionId());
508
527
  const a = JSON.stringify({ ...e, app_url: (e == null ? void 0 : e.app_url) ?? ((_a2 = window == null ? void 0 : window.location) == null ? void 0 : _a2.href) });
509
- if (le || !isWebSocketOpen(ie)) saveNotifyMessageToIDB(a);
528
+ if (ie || !isWebSocketOpen(se)) saveNotifyMessageToIDB(a);
510
529
  else try {
511
- ie.send(a);
530
+ se.send(a);
512
531
  } catch (e2) {
513
532
  saveNotifyMessageToIDB(a);
514
533
  }
515
534
  }
516
535
  function enableFunctionSpanTracking() {
517
- if (re && console.log("[Sailfish] enableFunctionSpanTracking() called - Report Issue recording started (LOCAL MODE)"), de && !ge && (ye = he, we = me, re && console.log("[Sailfish] Saved global tracking state while switching to local mode")), de = true, ge = true, me = null, he = null, isWebSocketOpen(ie)) try {
536
+ if (re && console.log("[Sailfish] enableFunctionSpanTracking() called - Report Issue recording started (LOCAL MODE)"), pe = true, me = true, he = null, null !== de && (window.clearTimeout(de), de = null), isWebSocketOpen(se)) try {
518
537
  const e = { type: "funcSpanTrackingSessionReport", sessionId: getOrSetSessionId(), enabled: true, configurationType: oe };
519
- ie.send(JSON.stringify(e));
538
+ se.send(JSON.stringify(e));
520
539
  } catch (e) {
521
540
  console.error("[FUNCSPAN START] ✗ Failed to send tracking session report:", e);
522
541
  }
523
542
  else re && console.warn("[Sailfish] WebSocket not open, cannot report LOCAL tracking session");
524
543
  }
525
544
  function disableFunctionSpanTracking() {
526
- if (re && console.log("[Sailfish] disableFunctionSpanTracking() called - Report Issue recording stopped"), isWebSocketOpen(ie)) try {
545
+ if (re && console.log("[Sailfish] disableFunctionSpanTracking() called - Report Issue recording stopped"), isWebSocketOpen(se)) try {
527
546
  const e = { type: "funcSpanTrackingSessionReport", sessionId: getOrSetSessionId(), enabled: false, configurationType: oe };
528
- ie.send(JSON.stringify(e));
547
+ se.send(JSON.stringify(e));
529
548
  } catch (e) {
530
549
  console.error("[FUNCSPAN STOP] ✗ Failed to send tracking stop report:", e);
531
550
  }
532
551
  else console.warn("[FUNCSPAN STOP] ✗ WebSocket not open, cannot notify tracking end");
533
- ge && (ge = false, null !== ye || null !== we ? (de = true, me = we, he = ye, re && console.log("[Sailfish] LOCAL tracking mode disabled, restored GLOBAL tracking state"), ye = null, we = null) : (de = false, me = null, he = null, re && console.log("[Sailfish] LOCAL tracking mode disabled, no global tracking to restore")));
552
+ me && (pe = false, me = false, he = null, re && console.log("[Sailfish] LOCAL tracking mode disabled")), null !== de && (window.clearTimeout(de), de = null);
534
553
  }
535
554
  function isFunctionSpanTrackingEnabled() {
536
- return de;
555
+ return pe;
556
+ }
557
+ function initializeFunctionSpanTrackingFromApi(e) {
558
+ e && !pe ? (pe = true, me = false, he = null, re && console.log("[Sailfish] Function span tracking initialized as ENABLED from API check")) : !e && pe && (pe = false, me = false, he = null, re && console.log("[Sailfish] Function span tracking initialized as DISABLED from API check"));
537
559
  }
538
560
  function getFuncSpanHeader() {
539
- if (!de) return null;
540
- if (null !== me) {
541
- if (Date.now() >= me) return de = false, me = null, re && console.log("[Sailfish] Function span tracking expired on header check - disabling now"), null;
561
+ if (!pe) return null;
562
+ if (null !== he) {
563
+ if (Date.now() >= he) return pe = false, he = null, clearGlobalFuncSpanState(), re && console.log("[Sailfish] Function span tracking expired on header check - disabling now"), null;
542
564
  }
543
565
  return { name: "X-Sf3-FunctionSpanCaptureOverride", value: "1-0-5-5-0-1.0" };
544
566
  }
@@ -546,34 +568,36 @@ function getFuncSpanHeader() {
546
568
  const e = (function loadGlobalFuncSpanState() {
547
569
  try {
548
570
  if ("undefined" == typeof localStorage) return null;
549
- const e2 = localStorage.getItem(se);
571
+ const e2 = localStorage.getItem(ge);
550
572
  if (!e2) return null;
551
573
  const a = JSON.parse(e2);
552
- return a.enabled && a.expirationTimestampMs && Date.now() >= a.expirationTimestampMs ? (re && console.log("[Sailfish] Stored global function span state has expired, clearing"), localStorage.removeItem(se), null) : (re && console.log("[Sailfish] Loaded global function span state from localStorage:", a), a);
574
+ return re && console.log("[Sailfish] Loaded funcSpan state from localStorage:", a), a;
553
575
  } catch (e2) {
554
- return re && console.warn("[Sailfish] Failed to load global function span state from localStorage:", e2), null;
576
+ return re && console.warn("[Sailfish] Failed to load funcSpan state from localStorage:", e2), null;
555
577
  }
556
578
  })();
557
- e && e.enabled && (de = true, me = e.expirationTimestampMs, ge = false, re && console.log("[Sailfish] Module init: Restored global function span tracking from localStorage:", { enabled: true, expirationTimestampMs: me }));
579
+ if (e && e.enabled) if (pe = true, he = e.expirationTimestampMs, me = false, re && console.log("[Sailfish] Module init: Restored global function span tracking from localStorage:", { enabled: true, expirationTime: he }), null !== he) {
580
+ Date.now() >= he ? (pe = false, he = null, clearGlobalFuncSpanState(), re && console.log("[Sailfish] Module init: Persisted tracking already expired, cleared state")) : re && console.log("[Sailfish] Module init: Function span tracking is active and valid (temporary until WebSocket confirms)");
581
+ } else re && console.log("[Sailfish] Module init: Function span tracking is active (no expiration, temporary until WebSocket confirms)");
558
582
  })();
559
- const be = Object.freeze(Object.defineProperty({ __proto__: null, disableFunctionSpanTracking, enableFunctionSpanTracking, flushBufferedEvents, getFuncSpanHeader, initializeWebSocket, isFunctionSpanTrackingEnabled, sendEvent, sendMessage }, Symbol.toStringTag, { value: "Module" }));
560
- var ve, Ce, ke = {}, xe = {}, Me = {}, Ie = {};
583
+ const ye = Object.freeze(Object.defineProperty({ __proto__: null, clearStaleFuncSpanState, disableFunctionSpanTracking, enableFunctionSpanTracking, flushBufferedEvents, getFuncSpanHeader, initializeFunctionSpanTrackingFromApi, initializeWebSocket, isFunctionSpanTrackingEnabled, sendEvent, sendMessage }, Symbol.toStringTag, { value: "Module" }));
584
+ var we, be, ve = {}, Ce = {}, ke = {}, xe = {};
561
585
  function requireBase64() {
562
- if (ve) return Ie;
563
- ve = 1;
586
+ if (we) return xe;
587
+ we = 1;
564
588
  var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
565
- return Ie.encode = function(a) {
589
+ return xe.encode = function(a) {
566
590
  if (0 <= a && a < e.length) return e[a];
567
591
  throw new TypeError("Must be between 0 and 63: " + a);
568
- }, Ie.decode = function(e2) {
592
+ }, xe.decode = function(e2) {
569
593
  return 65 <= e2 && e2 <= 90 ? e2 - 65 : 97 <= e2 && e2 <= 122 ? e2 - 97 + 26 : 48 <= e2 && e2 <= 57 ? e2 - 48 + 52 : 43 == e2 ? 62 : 47 == e2 ? 63 : -1;
570
- }, Ie;
594
+ }, xe;
571
595
  }
572
596
  function requireBase64Vlq() {
573
- if (Ce) return Me;
574
- Ce = 1;
597
+ if (be) return ke;
598
+ be = 1;
575
599
  var e = requireBase64();
576
- return Me.encode = function base64VLQ_encode(a) {
600
+ return ke.encode = function base64VLQ_encode(a) {
577
601
  var u, m2 = "", w2 = (function toVLQSigned(e2) {
578
602
  return e2 < 0 ? 1 + (-e2 << 1) : 0 + (e2 << 1);
579
603
  })(a);
@@ -581,7 +605,7 @@ function requireBase64Vlq() {
581
605
  u = 31 & w2, (w2 >>>= 5) > 0 && (u |= 32), m2 += e.encode(u);
582
606
  } while (w2 > 0);
583
607
  return m2;
584
- }, Me.decode = function base64VLQ_decode(a, u, m2) {
608
+ }, ke.decode = function base64VLQ_decode(a, u, m2) {
585
609
  var w2, b2, C2 = a.length, x2 = 0, I2 = 0;
586
610
  do {
587
611
  if (u >= C2) throw new Error("Expected more digits in base 64 VLQ value.");
@@ -592,11 +616,11 @@ function requireBase64Vlq() {
592
616
  var a2 = e2 >> 1;
593
617
  return 1 & ~e2 ? a2 : -a2;
594
618
  })(x2), m2.rest = u;
595
- }, Me;
619
+ }, ke;
596
620
  }
597
- var Oe, Ee = {};
621
+ var Me, Ie = {};
598
622
  function requireUtil() {
599
- return Oe || (Oe = 1, (function(e) {
623
+ return Me || (Me = 1, (function(e) {
600
624
  e.getArg = function getArg(e2, a2, u2) {
601
625
  if (a2 in e2) return e2[a2];
602
626
  if (3 === arguments.length) return u2;
@@ -708,12 +732,12 @@ function requireUtil() {
708
732
  }
709
733
  return m2(a2);
710
734
  };
711
- })(Ee)), Ee;
735
+ })(Ie)), Ie;
712
736
  }
713
- var Le, Ae = {};
737
+ var Oe, Ee = {};
714
738
  function requireArraySet() {
715
- if (Le) return Ae;
716
- Le = 1;
739
+ if (Oe) return Ee;
740
+ Oe = 1;
717
741
  var e = requireUtil(), a = Object.prototype.hasOwnProperty, u = "undefined" != typeof Map;
718
742
  function ArraySet() {
719
743
  this._array = [], this._set = u ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
@@ -744,12 +768,12 @@ function requireArraySet() {
744
768
  throw new Error("No element indexed by " + e2);
745
769
  }, ArraySet.prototype.toArray = function ArraySet_toArray() {
746
770
  return this._array.slice();
747
- }, Ae.ArraySet = ArraySet, Ae;
771
+ }, Ee.ArraySet = ArraySet, Ee;
748
772
  }
749
- var Te, De, Ue = {};
773
+ var Le, Ae, Te = {};
750
774
  function requireMappingList() {
751
- if (Te) return Ue;
752
- Te = 1;
775
+ if (Le) return Te;
776
+ Le = 1;
753
777
  var e = requireUtil();
754
778
  function MappingList() {
755
779
  this._array = [], this._sorted = true, this._last = { generatedLine: -1, generatedColumn: 0 };
@@ -763,11 +787,11 @@ function requireMappingList() {
763
787
  })(this._last, a) ? (this._sorted = false, this._array.push(a)) : (this._last = a, this._array.push(a));
764
788
  }, MappingList.prototype.toArray = function MappingList_toArray() {
765
789
  return this._sorted || (this._array.sort(e.compareByGeneratedPositionsInflated), this._sorted = true), this._array;
766
- }, Ue.MappingList = MappingList, Ue;
790
+ }, Te.MappingList = MappingList, Te;
767
791
  }
768
792
  function requireSourceMapGenerator() {
769
- if (De) return xe;
770
- De = 1;
793
+ if (Ae) return Ce;
794
+ Ae = 1;
771
795
  var e = requireBase64Vlq(), a = requireUtil(), u = requireArraySet().ArraySet, m2 = requireMappingList().MappingList;
772
796
  function SourceMapGenerator(e2) {
773
797
  e2 || (e2 = {}), this._file = a.getArg(e2, "file", null), this._sourceRoot = a.getArg(e2, "sourceRoot", null), this._skipValidation = a.getArg(e2, "skipValidation", false), this._ignoreInvalidMapping = a.getArg(e2, "ignoreInvalidMapping", false), this._sources = new u(), this._names = new u(), this._mappings = new m2(), this._sourcesContents = null;
@@ -844,11 +868,11 @@ function requireSourceMapGenerator() {
844
868
  return null != this._file && (e2.file = this._file), null != this._sourceRoot && (e2.sourceRoot = this._sourceRoot), this._sourcesContents && (e2.sourcesContent = this._generateSourcesContent(e2.sources, e2.sourceRoot)), e2;
845
869
  }, SourceMapGenerator.prototype.toString = function SourceMapGenerator_toString() {
846
870
  return JSON.stringify(this.toJSON());
847
- }, xe.SourceMapGenerator = SourceMapGenerator, xe;
871
+ }, Ce.SourceMapGenerator = SourceMapGenerator, Ce;
848
872
  }
849
- var Be, je = {}, Ge = {};
873
+ var De, Ue = {}, Be = {};
850
874
  function requireBinarySearch() {
851
- return Be || (Be = 1, (function(e) {
875
+ return De || (De = 1, (function(e) {
852
876
  function recursiveSearch(a, u, m2, w2, b2, C2) {
853
877
  var x2 = Math.floor((u - a) / 2) + a, I2 = b2(m2, w2[x2], true);
854
878
  return 0 === I2 ? x2 : I2 > 0 ? u - x2 > 1 ? recursiveSearch(x2, u, m2, w2, b2, C2) : C2 == e.LEAST_UPPER_BOUND ? u < w2.length ? u : -1 : x2 : x2 - a > 1 ? recursiveSearch(a, x2, m2, w2, b2, C2) : C2 == e.LEAST_UPPER_BOUND ? x2 : a < 0 ? -1 : a;
@@ -860,11 +884,11 @@ function requireBinarySearch() {
860
884
  for (; b2 - 1 >= 0 && 0 === m2(u[b2], u[b2 - 1], true); ) --b2;
861
885
  return b2;
862
886
  };
863
- })(Ge)), Ge;
887
+ })(Be)), Be;
864
888
  }
865
- var Ve, qe, He = {};
889
+ var je, Ge, Ve = {};
866
890
  function requireQuickSort() {
867
- if (Ve) return He;
891
+ if (je) return Ve;
868
892
  function SortTemplate(e2) {
869
893
  function swap(e3, a, u) {
870
894
  var m2 = e3[a];
@@ -883,21 +907,21 @@ function requireQuickSort() {
883
907
  }
884
908
  };
885
909
  }
886
- Ve = 1;
910
+ je = 1;
887
911
  let e = /* @__PURE__ */ new WeakMap();
888
- return He.quickSort = function(a, u, m2 = 0) {
912
+ return Ve.quickSort = function(a, u, m2 = 0) {
889
913
  let w2 = e.get(u);
890
914
  void 0 === w2 && (w2 = (function cloneSort(e2) {
891
915
  let a2 = SortTemplate.toString();
892
916
  return new Function(`return ${a2}`)()(e2);
893
917
  })(u), e.set(u, w2)), w2(a, u, m2, a.length - 1);
894
- }, He;
918
+ }, Ve;
895
919
  }
896
- var Je, Ye, Xe = {};
897
- var Qe = (function requireSourceMap() {
898
- return Ye || (Ye = 1, ke.SourceMapGenerator = requireSourceMapGenerator().SourceMapGenerator, ke.SourceMapConsumer = (function requireSourceMapConsumer() {
899
- if (qe) return je;
900
- qe = 1;
920
+ var qe, He, Je = {};
921
+ var Ye = (function requireSourceMap() {
922
+ return He || (He = 1, ve.SourceMapGenerator = requireSourceMapGenerator().SourceMapGenerator, ve.SourceMapConsumer = (function requireSourceMapConsumer() {
923
+ if (Ge) return Ue;
924
+ Ge = 1;
901
925
  var e = requireUtil(), a = requireBinarySearch(), u = requireArraySet().ArraySet, m2 = requireBase64Vlq(), w2 = requireQuickSort().quickSort;
902
926
  function SourceMapConsumer(a2, u2) {
903
927
  var m3 = a2;
@@ -954,7 +978,7 @@ var Qe = (function requireSourceMap() {
954
978
  else for (var _2 = x2.originalColumn; x2 && x2.originalLine === m3 && x2.originalColumn == _2; ) b3.push({ line: e.getArg(x2, "generatedLine", null), column: e.getArg(x2, "generatedColumn", null), lastColumn: e.getArg(x2, "lastGeneratedColumn", null) }), x2 = this._originalMappings[++C2];
955
979
  }
956
980
  return b3;
957
- }, je.SourceMapConsumer = SourceMapConsumer, BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer, BasicSourceMapConsumer.prototype._findSourceIndex = function(a2) {
981
+ }, Ue.SourceMapConsumer = SourceMapConsumer, BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer, BasicSourceMapConsumer.prototype._findSourceIndex = function(a2) {
958
982
  var u2, m3 = a2;
959
983
  if (null != this.sourceRoot && (m3 = e.relative(this.sourceRoot, m3)), this._sources.has(m3)) return this._sources.indexOf(m3);
960
984
  for (u2 = 0; u2 < this._absoluteSources.length; ++u2) if (this._absoluteSources[u2] == a2) return u2;
@@ -1071,7 +1095,7 @@ var Qe = (function requireSourceMap() {
1071
1095
  if (b3.source === m3.source) return { line: e.getArg(b3, "generatedLine", null), column: e.getArg(b3, "generatedColumn", null), lastColumn: e.getArg(b3, "lastGeneratedColumn", null) };
1072
1096
  }
1073
1097
  return { line: null, column: null, lastColumn: null };
1074
- }, je.BasicSourceMapConsumer = BasicSourceMapConsumer, IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer, IndexedSourceMapConsumer.prototype._version = 3, Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", { get: function() {
1098
+ }, Ue.BasicSourceMapConsumer = BasicSourceMapConsumer, IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer, IndexedSourceMapConsumer.prototype._version = 3, Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", { get: function() {
1075
1099
  for (var e2 = [], a2 = 0; a2 < this._sections.length; a2++) for (var u2 = 0; u2 < this._sections[a2].consumer.sources.length; u2++) e2.push(this._sections[a2].consumer.sources[u2]);
1076
1100
  return e2;
1077
1101
  } }), IndexedSourceMapConsumer.prototype.originalPositionFor = function IndexedSourceMapConsumer_originalPositionFor(u2) {
@@ -1110,10 +1134,10 @@ var Qe = (function requireSourceMap() {
1110
1134
  this.__generatedMappings.push(E2), "number" == typeof E2.originalLine && this.__originalMappings.push(E2);
1111
1135
  }
1112
1136
  w2(this.__generatedMappings, e.compareByGeneratedPositionsDeflated), w2(this.__originalMappings, e.compareByOriginalPositions);
1113
- }, je.IndexedSourceMapConsumer = IndexedSourceMapConsumer, je;
1114
- })().SourceMapConsumer, ke.SourceNode = (function requireSourceNode() {
1115
- if (Je) return Xe;
1116
- Je = 1;
1137
+ }, Ue.IndexedSourceMapConsumer = IndexedSourceMapConsumer, Ue;
1138
+ })().SourceMapConsumer, ve.SourceNode = (function requireSourceNode() {
1139
+ if (qe) return Je;
1140
+ qe = 1;
1117
1141
  var e = requireSourceMapGenerator().SourceMapGenerator, a = requireUtil(), u = /(\r?\n)/, m2 = "$$$isSourceNode$$$";
1118
1142
  function SourceNode(e2, a2, u2, w2, b2) {
1119
1143
  this.children = [], this.sourceContents = {}, this.line = null == e2 ? null : e2, this.column = null == a2 ? null : a2, this.source = null == u2 ? null : u2, this.name = null == b2 ? null : b2, this[m2] = true, null != w2 && this.add(w2);
@@ -1197,20 +1221,20 @@ var Qe = (function requireSourceMap() {
1197
1221
  }), this.walkSourceContents(function(e2, a3) {
1198
1222
  m3.setSourceContent(e2, a3);
1199
1223
  }), { code: u2.code, map: m3 };
1200
- }, Xe.SourceNode = SourceNode, Xe;
1201
- })().SourceNode), ke;
1224
+ }, Je.SourceNode = SourceNode, Je;
1225
+ })().SourceNode), ve;
1202
1226
  })();
1203
- const et = /* @__PURE__ */ new Map(), nt = /(?:\(|\s|^)(https?:\/\/[^)\s]+|\/[^)\s]+|[^)\s]+)?\/?([^/]+\.js)(?:\?[^:)]*)?:(\d+):(\d+)/;
1227
+ const Xe = /* @__PURE__ */ new Map(), Qe = /(?:\(|\s|^)(https?:\/\/[^)\s]+|\/[^)\s]+|[^)\s]+)?\/?([^/]+\.js)(?:\?[^:)]*)?:(\d+):(\d+)/;
1204
1228
  async function getConsumerFor(e, a) {
1205
1229
  const u = (e || `/assets/${a}`).split("?")[0], m2 = [`${u}.map`, u.replace(/\.js$/, ".js.map"), `/assets/${a}.map`];
1206
1230
  for (const e2 of m2) try {
1207
- if (et.has(e2)) return et.get(e2);
1231
+ if (Xe.has(e2)) return Xe.get(e2);
1208
1232
  const a2 = await fetch(e2);
1209
1233
  if (!a2.ok) continue;
1210
1234
  const u2 = await a2.json();
1211
1235
  if (!u2 || !u2.mappings || !u2.sources) continue;
1212
- const m3 = await new Qe.SourceMapConsumer(u2);
1213
- return et.set(e2, m3), m3;
1236
+ const m3 = await new Ye.SourceMapConsumer(u2);
1237
+ return Xe.set(e2, m3), m3;
1214
1238
  } catch {
1215
1239
  }
1216
1240
  return null;
@@ -1222,7 +1246,7 @@ async function captureError(e, a = false) {
1222
1246
  if (!e2) return ["No stack trace available"];
1223
1247
  const a2 = Array.isArray(e2) ? e2 : e2.split("\n"), u2 = [];
1224
1248
  for (const e3 of a2) {
1225
- const a3 = e3.match(nt);
1249
+ const a3 = e3.match(Qe);
1226
1250
  if (!a3) {
1227
1251
  u2.push(e3);
1228
1252
  continue;
@@ -1237,8 +1261,8 @@ async function captureError(e, a = false) {
1237
1261
  u2.push(`${e3} [No source map found for ${w3}]`);
1238
1262
  continue;
1239
1263
  }
1240
- let O2 = _2.originalPositionFor({ line: x3, column: I2, bias: Qe.SourceMapConsumer.GREATEST_LOWER_BOUND });
1241
- if (!O2.source || null == O2.line) for (let e4 = 1; e4 <= 20 && (O2 = _2.originalPositionFor({ line: x3, column: Math.max(0, I2 - e4), bias: Qe.SourceMapConsumer.GREATEST_LOWER_BOUND }), !O2.source || null == O2.line); e4++) ;
1264
+ let O2 = _2.originalPositionFor({ line: x3, column: I2, bias: Ye.SourceMapConsumer.GREATEST_LOWER_BOUND });
1265
+ if (!O2.source || null == O2.line) for (let e4 = 1; e4 <= 20 && (O2 = _2.originalPositionFor({ line: x3, column: Math.max(0, I2 - e4), bias: Ye.SourceMapConsumer.GREATEST_LOWER_BOUND }), !O2.source || null == O2.line); e4++) ;
1242
1266
  if (O2.source && null != O2.line) {
1243
1267
  const e4 = O2.name || "anonymous";
1244
1268
  u2.push(`${O2.source}:${O2.line}:${O2.column ?? 0} (${e4})`);
@@ -1248,11 +1272,11 @@ async function captureError(e, a = false) {
1248
1272
  })(m2), b2 = w2.filter((e2) => !e2.includes("chunk-") && !e2.includes("react-dom")), C2 = b2.length > 0 ? b2 : w2, x2 = Date.now();
1249
1273
  sendMessage({ type: "event", event: { type: 6, timestamp: x2, data: { payload: { message: u, stack: m2, trace: C2, filteredStack: b2, userAgent: navigator.userAgent, url: window.location.href, timestamp: x2, level: "error" } } } });
1250
1274
  }
1251
- const ot = readDebugFlag();
1252
- const st = readDebugFlag();
1275
+ const et = readDebugFlag();
1276
+ const nt = readDebugFlag();
1253
1277
  function sendGraphQLRequest(e, a, u, m2 = 5, w2 = 2e3, b2 = 2) {
1254
1278
  const C2 = `${u.backendApi}/graphql/?apiKey=${u.apiKey}`;
1255
- return st && console.log(`Initial GraphQL request for ${e} at ${C2}`), (function exponentialBackoff(e2, a2, u2 = 5, m3 = 2e3, w3 = 2) {
1279
+ return nt && console.log(`Initial GraphQL request for ${e} at ${C2}`), (function exponentialBackoff(e2, a2, u2 = 5, m3 = 2e3, w3 = 2) {
1256
1280
  let b3 = 0;
1257
1281
  const attemptRequest = async () => {
1258
1282
  try {
@@ -1260,18 +1284,21 @@ function sendGraphQLRequest(e, a, u, m2 = 5, w2 = 2e3, b2 = 2) {
1260
1284
  } catch (e3) {
1261
1285
  if (b3++, b3 > u2) throw e3;
1262
1286
  const C3 = m3 * Math.pow(w3, b3 - 1);
1263
- return ot && console.log(`Attempt ${b3} failed: ${a2}; Retrying in ${C3}ms...`), await new Promise((e4) => setTimeout(e4, C3)), attemptRequest();
1287
+ return et && console.log(`Attempt ${b3} failed: ${a2}; Retrying in ${C3}ms...`), await new Promise((e4) => setTimeout(e4, C3)), attemptRequest();
1264
1288
  }
1265
1289
  };
1266
1290
  return attemptRequest();
1267
1291
  })(() => fetch(C2, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ operationName: e, query: a, variables: u }) }).then((e2) => {
1268
- if (st && console.log(`Received response with status: ${e2.status}`), !e2.ok) throw new Error(`GraphQL request failed with status ${e2.status}`);
1292
+ if (nt && console.log(`Received response with status: ${e2.status}`), !e2.ok) throw new Error(`GraphQL request failed with status ${e2.status}`);
1269
1293
  return e2.json();
1270
1294
  }), "Sending GraphQL request to Sailfish AI", m2, w2, b2);
1271
1295
  }
1272
1296
  function fetchCaptureSettings(e, a) {
1273
1297
  return sendGraphQLRequest("GetCaptureSettingsFromApiKey", "\n query GetCaptureSettingsFromApiKey($apiKey: String!) {\n captureSettingsFromApiKey(apiKey: $apiKey) {\n recordCanvas\n recordCrossOriginIframes\n collectFonts\n inlineImages\n recordPassword\n recordRealName\n recordCreditCardInfo\n recordSsn\n recordDob\n sampling\n }\n }\n ", { apiKey: e, backendApi: a });
1274
1298
  }
1299
+ function fetchFunctionSpanTrackingEnabled(e, a) {
1300
+ return sendGraphQLRequest("GetFunctionSpanTrackingEnabledFromApiKey", "\n query GetFunctionSpanTrackingEnabledFromApiKey($apiKey: String!) {\n isFunctionSpanTrackingEnabledFromApiKey(apiKey: $apiKey)\n }\n ", { apiKey: e, backendApi: a });
1301
+ }
1275
1302
  function startRecordingSession(e, a, u, m2, w2, b2, C2, x2, I2) {
1276
1303
  return sendGraphQLRequest("StartSession", "mutation StartSession(\n $apiKey: UUID!,\n $recordingSessionId: UUID!,\n $serviceIdentifier: String!,\n $serviceVersion: String,\n $mapUuid: String,\n $gitSha: String,\n $library: String,\n $serviceAdditionalMetadata: JSON,\n $startRecordingFilePath: String,\n $startRecordingLineNumber: Int\n ) {\n startRecordingSession(\n companyApiKey: $apiKey,\n sessionId: $recordingSessionId,\n serviceIdentifier: $serviceIdentifier,\n serviceVersion: $serviceVersion,\n mapUuid: $mapUuid,\n gitSha: $gitSha,\n library: $library,\n serviceAdditionalMetadata: $serviceAdditionalMetadata,\n startRecordingFilePath: $startRecordingFilePath,\n startRecordingLineNumber: $startRecordingLineNumber\n ) {\n id\n }\n }", { apiKey: e, recordingSessionId: a, backendApi: u, serviceIdentifier: m2, serviceVersion: w2, mapUuid: b2, gitSha: C2, library: x2, serviceAdditionalMetadata: I2, startRecordingFilePath: null, startRecordingLineNumber: null });
1277
1304
  }
@@ -1281,9 +1308,9 @@ function sendDomainsToNotPropagateHeaderTo(e, a, u) {
1281
1308
  function createTriageFromRecorder(e, a, u, m2, w2, b2) {
1282
1309
  return sendGraphQLRequest("CreateTriageFromRecorder", "mutation CreateTriageFromRecorder(\n $apiKey: String!,\n $recordingSessionId: String!,\n $timestampStart: String!,\n $timestampEnd: String!,\n $description: String\n ) {\n createTriageFromRecorder(\n apiKey: $apiKey,\n recordingSessionId: $recordingSessionId,\n timestampStart: $timestampStart,\n timestampEnd: $timestampEnd,\n description: $description\n ) {\n id\n }\n }\n ", { apiKey: e, recordingSessionId: u, timestampStart: m2, timestampEnd: w2, description: b2, backendApi: a });
1283
1310
  }
1284
- const it = { enabled: false, openModalExistingMode: { key: "e", requireCmdCtrl: false }, openModalCaptureNewMode: { key: "n", requireCmdCtrl: false }, closeModal: { key: "escape", requireCmdCtrl: false }, submitReport: { key: "enter", requireCmdCtrl: true }, startRecording: { key: "r", requireCmdCtrl: false }, stopRecording: { key: "escape", requireCmdCtrl: true } }, at = { shortcuts: { ...it }, resolveSessionId: null, apiKey: null, backendApi: null, triageBaseUrl: "https://app.sailfishqa.com", deactivateIsolation: () => {
1311
+ const ot = { enabled: false, openModalExistingMode: { key: "e", requireCmdCtrl: false }, openModalCaptureNewMode: { key: "n", requireCmdCtrl: false }, closeModal: { key: "escape", requireCmdCtrl: false }, submitReport: { key: "enter", requireCmdCtrl: true }, startRecording: { key: "r", requireCmdCtrl: false }, stopRecording: { key: "escape", requireCmdCtrl: true } }, st = { shortcuts: { ...ot }, resolveSessionId: null, apiKey: null, backendApi: null, triageBaseUrl: "https://app.sailfishqa.com", deactivateIsolation: () => {
1285
1312
  } };
1286
- let lt = null, ct = { mode: "lookback", description: "" }, ut = null, pt = null, dt = null, ht = false;
1313
+ let it = null, at = { mode: "lookback", description: "" }, lt = null, ct = null, ut = null, pt = false;
1287
1314
  function getShortcutKeyCmdCtrlLabel() {
1288
1315
  return (function isMacPlatform() {
1289
1316
  const e = navigator.userAgentData;
@@ -1296,11 +1323,11 @@ function getShortcutLabelFromContext(e) {
1296
1323
  return e2.requireCmdCtrl && a.push(getShortcutKeyCmdCtrlLabel()), a.push((function formatShortcutKeyLabel(e3) {
1297
1324
  return ({ escape: "esc" }[e3.toLowerCase()] || e3).toUpperCase();
1298
1325
  })(e2.key)), a.map((e3) => `<span style="background: #F1F5F9; border:1px solid #cbd5e1; border-radius: 4px; padding: 0 4px; font-weight: 500; font-size: 12px; color: #94A3B8; line-height: 16px;">${e3}</span>`).join(e2.requireCmdCtrl ? " + " : "");
1299
- })(at.shortcuts[e]);
1326
+ })(st.shortcuts[e]);
1300
1327
  }
1301
1328
  function setupIssueReporting(e) {
1302
- at.apiKey = e.apiKey, at.backendApi = e.backendApi, at.resolveSessionId = e.getSessionId, e.customBaseUrl && (at.triageBaseUrl = e.customBaseUrl), at.shortcuts = (function mergeShortcutsConfig(e2) {
1303
- const a2 = { ...it };
1329
+ st.apiKey = e.apiKey, st.backendApi = e.backendApi, st.resolveSessionId = e.getSessionId, e.customBaseUrl && (st.triageBaseUrl = e.customBaseUrl), st.shortcuts = (function mergeShortcutsConfig(e2) {
1330
+ const a2 = { ...ot };
1304
1331
  if (!e2) return a2;
1305
1332
  "boolean" == typeof e2.enabled && (a2.enabled = e2.enabled);
1306
1333
  const u = ["openModalExistingMode", "openModalCaptureNewMode", "closeModal", "submitReport", "startRecording", "stopRecording"];
@@ -1310,7 +1337,7 @@ function setupIssueReporting(e) {
1310
1337
  }
1311
1338
  return a2;
1312
1339
  })(e.shortcuts);
1313
- const { shortcuts: a } = at;
1340
+ const { shortcuts: a } = st;
1314
1341
  window.addEventListener("keydown", (e2) => {
1315
1342
  const u = (function isTypingInInput() {
1316
1343
  const e3 = document.activeElement;
@@ -1320,23 +1347,23 @@ function setupIssueReporting(e) {
1320
1347
  } : injectModalHTML;
1321
1348
  if (C2 && shortcutUsed("openModalExistingMode")) return e2.preventDefault(), void x2("lookback");
1322
1349
  if (C2 && shortcutUsed("openModalCaptureNewMode")) return e2.preventDefault(), void x2("startnow");
1323
- if (b2 && !ht && shortcutUsed("closeModal")) return e2.preventDefault(), void closeModal();
1350
+ if (b2 && !pt && shortcutUsed("closeModal")) return e2.preventDefault(), void closeModal();
1324
1351
  if (b2 && shortcutUsed("submitReport")) {
1325
1352
  const a2 = document.getElementById("sf-issue-submit-btn");
1326
1353
  return void (a2 && !a2.disabled && (e2.preventDefault(), a2.click()));
1327
1354
  }
1328
- if (ht && m2 === a.stopRecording.key && w2 === a.stopRecording.requireCmdCtrl) return e2.preventDefault(), void stopRecording();
1329
- if (b2 && "startnow" === ct.mode && m2 === a.startRecording.key && w2 === a.startRecording.requireCmdCtrl && !u) {
1355
+ if (pt && m2 === a.stopRecording.key && w2 === a.stopRecording.requireCmdCtrl) return e2.preventDefault(), void stopRecording();
1356
+ if (b2 && "startnow" === at.mode && m2 === a.startRecording.key && w2 === a.startRecording.requireCmdCtrl && !u) {
1330
1357
  const a2 = document.getElementById("sf-start-recording-btn");
1331
1358
  return void (a2 && (e2.preventDefault(), a2.click()));
1332
1359
  }
1333
1360
  });
1334
1361
  }
1335
1362
  function openReportIssueModal() {
1336
- ht ? stopRecording() : (injectModalHTML(), lt && document.body.appendChild(lt));
1363
+ pt ? stopRecording() : (injectModalHTML(), it && document.body.appendChild(it));
1337
1364
  }
1338
1365
  function closeModal() {
1339
- at.deactivateIsolation(), document.activeElement instanceof HTMLElement && document.activeElement.blur(), (lt == null ? void 0 : lt.parentNode) && lt.parentNode.removeChild(lt), lt = null, ht || (ct = { mode: "lookback", description: "", occurredInThisTab: true }, ut = null, pt = null), dt && clearInterval(dt);
1366
+ st.deactivateIsolation(), document.activeElement instanceof HTMLElement && document.activeElement.blur(), (it == null ? void 0 : it.parentNode) && it.parentNode.removeChild(it), it = null, pt || (at = { mode: "lookback", description: "", occurredInThisTab: true }, lt = null, ct = null), ut && clearInterval(ut);
1340
1367
  }
1341
1368
  function activateModalIsolation(e) {
1342
1369
  e.setAttribute("role", "dialog"), e.setAttribute("aria-modal", "true"), e.hasAttribute("tabindex") || e.setAttribute("tabindex", "-1");
@@ -1395,9 +1422,9 @@ function activateModalIsolation(e) {
1395
1422
  };
1396
1423
  }
1397
1424
  function injectModalHTML(e = "lookback") {
1398
- lt && (lt.remove(), lt = null), lt = document.createElement("div"), lt.id = "sf-report-issue-modal";
1425
+ it && (it.remove(), it = null), it = document.createElement("div"), it.id = "sf-report-issue-modal";
1399
1426
  const a = "startnow" === e;
1400
- lt.innerHTML = `
1427
+ it.innerHTML = `
1401
1428
  <div style="position:fixed; inset:0; background:rgba(0,0,0,0.4); z-index:9998;"></div>
1402
1429
  <div style="position:fixed; top:50%; left:50%; transform:translate(-50%, -50%);
1403
1430
  background:#fff; padding:24px; border-radius:12px;
@@ -1445,7 +1472,7 @@ function injectModalHTML(e = "lookback") {
1445
1472
  <textarea id="sf-issue-description" placeholder="Add description here"
1446
1473
  style="width:100%; height:80px; padding:8px 12px; font-size:14px;
1447
1474
  border:1px solid #cbd5e1; border-radius:6px; margin-bottom:20px;
1448
- resize:none; outline:none;">${ct.description}</textarea>
1475
+ resize:none; outline:none;">${at.description}</textarea>
1449
1476
 
1450
1477
  <div id="sf-lookback-container" style="display:${a ? "none" : "block"}; margin-bottom:20px;">
1451
1478
  <label for="sf-lookback-minutes" style="display:block; font-size:14px; font-weight:500; margin-bottom:6px;">
@@ -1533,8 +1560,8 @@ function injectModalHTML(e = "lookback") {
1533
1560
  <a href="mailto:info@sailfishqa.com?subject=I'd%20love%20to%20learn%20more&body=Hey%2C%20Sailfish%20AI%20team%20-%20I'd%20love%20to%20learn%20more%20about%20Sailfish%20AI!">Powered by Sailfish AI</a>
1534
1561
  </div>
1535
1562
  </div>
1536
- `, ct.mode = e, document.body.appendChild(lt), (function bindListeners() {
1537
- const e2 = lt == null ? void 0 : lt.querySelectorAll(".sf-issue-tab"), a2 = document.getElementById("sf-start-recording-btn"), u = document.getElementById("sf-modal-close-btn"), m2 = document.getElementById("sf-issue-submit-btn"), w2 = document.getElementById("sf-lookback-minutes");
1563
+ `, at.mode = e, document.body.appendChild(it), (function bindListeners() {
1564
+ const e2 = it == null ? void 0 : it.querySelectorAll(".sf-issue-tab"), a2 = document.getElementById("sf-start-recording-btn"), u = document.getElementById("sf-modal-close-btn"), m2 = document.getElementById("sf-issue-submit-btn"), w2 = document.getElementById("sf-lookback-minutes");
1538
1565
  e2 == null ? void 0 : e2.forEach((e3) => {
1539
1566
  e3.addEventListener("click", (e4) => {
1540
1567
  const a3 = e4.currentTarget.dataset.mode;
@@ -1542,11 +1569,11 @@ function injectModalHTML(e = "lookback") {
1542
1569
  });
1543
1570
  }), u && (u.onclick = closeModal);
1544
1571
  w2 && w2.addEventListener("change", () => {
1545
- "lookback" === ct.mode && (m2.disabled = false, m2.style.opacity = "1", m2.style.cursor = "pointer");
1572
+ "lookback" === at.mode && (m2.disabled = false, m2.style.opacity = "1", m2.style.cursor = "pointer");
1546
1573
  });
1547
1574
  a2 && (a2.onclick = () => {
1548
1575
  const e3 = document.getElementById("sf-issue-description");
1549
- e3 && (ct.description = e3.value), (function startCountdownThenRecord() {
1576
+ e3 && (at.description = e3.value), (function startCountdownThenRecord() {
1550
1577
  if (document.getElementById("sf-countdown-overlay")) return;
1551
1578
  const e4 = document.createElement("div");
1552
1579
  e4.id = "sf-countdown-overlay", e4.style.cssText = "\n position: fixed;\n inset: 0;\n background: rgba(0,0,0,0.6);\n z-index: 10001;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 80px;\n font-weight: bold;\n color: white;\n font-family: sans-serif;\n ";
@@ -1555,9 +1582,9 @@ function injectModalHTML(e = "lookback") {
1555
1582
  const u2 = setInterval(async () => {
1556
1583
  if (a3--, a3 > 0) e4.textContent = a3.toString();
1557
1584
  else {
1558
- clearInterval(u2), document.body.removeChild(e4), ut = Date.now(), ht = true;
1585
+ clearInterval(u2), document.body.removeChild(e4), lt = Date.now(), pt = true;
1559
1586
  try {
1560
- const { enableFunctionSpanTracking: e5 } = await Promise.resolve().then(() => be);
1587
+ const { enableFunctionSpanTracking: e5 } = await Promise.resolve().then(() => ye);
1561
1588
  e5();
1562
1589
  } catch (e5) {
1563
1590
  console.error("[Report Issue] Failed to enable function span tracking:", e5);
@@ -1583,8 +1610,8 @@ function injectModalHTML(e = "lookback") {
1583
1610
  `, e5.addEventListener("click", () => stopRecording()), document.body.appendChild(e5);
1584
1611
  const a4 = e5.querySelector("#sf-recording-timer");
1585
1612
  if (!a4) return;
1586
- dt = setInterval(() => {
1587
- const e6 = Date.now() - (ut ?? Date.now()), u3 = Math.floor(e6 / 6e4).toString().padStart(2, "0"), m3 = Math.floor(e6 % 6e4 / 1e3).toString().padStart(2, "0");
1613
+ ut = setInterval(() => {
1614
+ const e6 = Date.now() - (lt ?? Date.now()), u3 = Math.floor(e6 / 6e4).toString().padStart(2, "0"), m3 = Math.floor(e6 % 6e4 / 1e3).toString().padStart(2, "0");
1588
1615
  a4.textContent = `${u3}:${m3}`;
1589
1616
  }, 1e3);
1590
1617
  })();
@@ -1592,12 +1619,12 @@ function injectModalHTML(e = "lookback") {
1592
1619
  }, 1e3);
1593
1620
  })();
1594
1621
  });
1595
- lt == null ? void 0 : lt.addEventListener("click", (e3) => {
1622
+ it == null ? void 0 : it.addEventListener("click", (e3) => {
1596
1623
  var _a2;
1597
1624
  if (e3.target.closest("#sf-issue-submit-btn")) {
1598
- const e4 = ((_a2 = document.getElementById("sf-issue-description")) == null ? void 0 : _a2.value) || "", a3 = ct.mode;
1625
+ const e4 = ((_a2 = document.getElementById("sf-issue-description")) == null ? void 0 : _a2.value) || "", a3 = at.mode;
1599
1626
  let u2, m3;
1600
- if (ct.description = e4, "startnow" === a3) u2 = ut ?? Date.now() - 3e5, m3 = pt ?? Date.now();
1627
+ if (at.description = e4, "startnow" === a3) u2 = lt ?? Date.now() - 3e5, m3 = ct ?? Date.now();
1601
1628
  else {
1602
1629
  const e5 = 60 * Number((w2 == null ? void 0 : w2.value) || "2") * 1e3;
1603
1630
  m3 = Date.now(), u2 = m3 - e5;
@@ -1606,9 +1633,9 @@ function injectModalHTML(e = "lookback") {
1606
1633
  var _a3, _b;
1607
1634
  try {
1608
1635
  showTriageStatusModal(true);
1609
- const m4 = await createTriageFromRecorder(at.apiKey, at.backendApi, (function getSessionIdSafely() {
1610
- if (!at.resolveSessionId) throw new Error("getSessionId not defined");
1611
- return at.resolveSessionId();
1636
+ const m4 = await createTriageFromRecorder(st.apiKey, st.backendApi, (function getSessionIdSafely() {
1637
+ if (!st.resolveSessionId) throw new Error("getSessionId not defined");
1638
+ return st.resolveSessionId();
1612
1639
  })(), e5, a4, u3), w3 = (_b = (_a3 = m4 == null ? void 0 : m4.data) == null ? void 0 : _a3.createTriageFromRecorder) == null ? void 0 : _b.id;
1613
1640
  w3 ? showTriageStatusModal(false, w3) : (console.error("No Triage ID returned from backend."), showTriageStatusModal(false, null));
1614
1641
  } catch (e6) {
@@ -1617,29 +1644,29 @@ function injectModalHTML(e = "lookback") {
1617
1644
  })(`${u2}`, `${m3}`, e4);
1618
1645
  }
1619
1646
  });
1620
- })(), at.deactivateIsolation = activateModalIsolation(lt);
1647
+ })(), st.deactivateIsolation = activateModalIsolation(it);
1621
1648
  }
1622
1649
  function setActiveTab(e) {
1623
- ct.mode = e;
1624
- const a = lt == null ? void 0 : lt.querySelector("#sf-tab-lookback"), u = lt == null ? void 0 : lt.querySelector("#sf-tab-startnow");
1650
+ at.mode = e;
1651
+ const a = it == null ? void 0 : it.querySelector("#sf-tab-lookback"), u = it == null ? void 0 : it.querySelector("#sf-tab-startnow");
1625
1652
  "lookback" === e ? (a.style.background = "white", a.style.color = "#0F172A", u.style.background = "transparent", u.style.color = "#64748B") : (u.style.background = "white", u.style.color = "#0F172A", a.style.background = "transparent", a.style.color = "#64748B");
1626
1653
  }
1627
1654
  function updateModeSpecificUI(e) {
1628
1655
  const a = document.querySelector("#sf-issue-mode-info div"), u = document.getElementById("sf-issue-submit-btn"), m2 = document.getElementById("sf-record-button-container"), w2 = document.getElementById("sf-recording-timer-label"), b2 = document.getElementById("sf-recording-timer-display"), C2 = document.getElementById("sf-modal-footer"), x2 = document.getElementById("sf-lookback-container");
1629
1656
  if (a && u && m2 && w2 && b2 && C2 && x2) if ("startnow" === e) {
1630
1657
  m2.style.display = "block", x2.style.display = "none", C2.style.justifyContent = "space-between", a.textContent = "I want to reproduce the issue right now.";
1631
- const e2 = null !== ut && null !== pt;
1632
- if (u.disabled = !e2, u.style.opacity = e2 ? "1" : "0.4", u.style.cursor = e2 ? "pointer" : "not-allowed", ut && pt) {
1633
- const e3 = Math.floor((pt - ut) / 1e3), a2 = String(Math.floor(e3 / 60)).padStart(2, "0"), u2 = String(e3 % 60).padStart(2, "0");
1658
+ const e2 = null !== lt && null !== ct;
1659
+ if (u.disabled = !e2, u.style.opacity = e2 ? "1" : "0.4", u.style.cursor = e2 ? "pointer" : "not-allowed", lt && ct) {
1660
+ const e3 = Math.floor((ct - lt) / 1e3), a2 = String(Math.floor(e3 / 60)).padStart(2, "0"), u2 = String(e3 % 60).padStart(2, "0");
1634
1661
  w2.style.display = "block", b2.textContent = `${a2}:${u2}`;
1635
1662
  } else w2.style.display = "none";
1636
1663
  } else m2.style.display = "none", w2.style.display = "none", x2.style.display = "block", C2.style.justifyContent = "flex-end", a.textContent = "Something already happened. Capture the past few minutes.", u.disabled = false, u.style.opacity = "1", u.style.cursor = "pointer";
1637
1664
  }
1638
1665
  async function stopRecording() {
1639
1666
  var _a2;
1640
- pt = Date.now(), ht = false, dt && clearInterval(dt), (_a2 = document.getElementById("sf-recording-indicator")) == null ? void 0 : _a2.remove();
1667
+ ct = Date.now(), pt = false, ut && clearInterval(ut), (_a2 = document.getElementById("sf-recording-indicator")) == null ? void 0 : _a2.remove();
1641
1668
  try {
1642
- const { disableFunctionSpanTracking: e } = await Promise.resolve().then(() => be);
1669
+ const { disableFunctionSpanTracking: e } = await Promise.resolve().then(() => ye);
1643
1670
  e();
1644
1671
  } catch (e) {
1645
1672
  console.error("[Report Issue] Failed to disable function span tracking:", e);
@@ -1652,17 +1679,17 @@ async function stopRecording() {
1652
1679
  a2 && (a2.textContent = "Re-record");
1653
1680
  }
1654
1681
  const a = document.getElementById("sf-recording-timer-label"), u = document.getElementById("sf-recording-timer-display");
1655
- if (a && u && ut && pt) {
1656
- const e2 = Math.floor((pt - ut) / 1e3), m3 = Math.floor(e2 / 60).toString().padStart(2, "0"), w3 = (e2 % 60).toString().padStart(2, "0");
1682
+ if (a && u && lt && ct) {
1683
+ const e2 = Math.floor((ct - lt) / 1e3), m3 = Math.floor(e2 / 60).toString().padStart(2, "0"), w3 = (e2 % 60).toString().padStart(2, "0");
1657
1684
  u.textContent = `${m3}:${w3}`, a.style.display = "block";
1658
1685
  }
1659
1686
  const m2 = document.getElementById("sf-issue-description");
1660
- m2 && (m2.value = ct.description);
1687
+ m2 && (m2.value = at.description);
1661
1688
  const w2 = document.querySelector('input[value="startnow"]');
1662
1689
  w2 && (w2.checked = true);
1663
1690
  const b2 = document.getElementById("sf-inline-record-chip"), C2 = document.getElementById("sf-inline-record-timer");
1664
1691
  if (b2 && C2) {
1665
- const e2 = Math.floor(((pt ?? 0) - (ut ?? 0)) / 1e3), a2 = Math.floor(e2 / 60).toString().padStart(2, "0"), u2 = Math.floor(e2 % 60).toString().padStart(2, "0");
1692
+ const e2 = Math.floor(((ct ?? 0) - (lt ?? 0)) / 1e3), a2 = Math.floor(e2 / 60).toString().padStart(2, "0"), u2 = Math.floor(e2 % 60).toString().padStart(2, "0");
1666
1693
  C2.textContent = `${a2}:${u2}`, C2.style.color = "black", b2.style.display = "flex";
1667
1694
  }
1668
1695
  const x2 = document.getElementById("sf-issue-submit-btn");
@@ -1675,7 +1702,7 @@ function showTriageStatusModal(e, a) {
1675
1702
  var _a3, _b;
1676
1703
  (_a3 = document.getElementById("sf-report-issue-modal")) == null ? void 0 : _a3.remove(), (_b = document.getElementById("sf-triage-status-modal")) == null ? void 0 : _b.remove();
1677
1704
  })();
1678
- const u = a ? `${at.triageBaseUrl}/triage/${a}?from=inAppReportIssue` : "", m2 = document.createElement("div");
1705
+ const u = a ? `${st.triageBaseUrl}/triage/${a}?from=inAppReportIssue` : "", m2 = document.createElement("div");
1679
1706
  m2.id = "sf-triage-status-modal", Object.assign(m2.style, { position: "fixed", inset: "0", zIndex: "9998", display: "flex", alignItems: "center", justifyContent: "center" });
1680
1707
  const w2 = e ? "Reporting Issue..." : "Issue reported!", b2 = e ? '<p style="font-size:14px; color:#64748b; line-height:20px;">This may take ~10 seconds</p>' : "", C2 = e ? '<div style="display:flex; justify-content:center; align-items:center; padding: 40px 0;">\n <div style="width:24px; height:24px; border:2px solid #295dbf; border-top:2px solid white; border-radius:50%; animation:spin 1s linear infinite;"></div>\n </div>' : "", x2 = e ? "" : '<div id="sf-copied-status" style="display:none; font-size:12px; font-weight:500; color:white;\n background-color:#22c55e; padding:4px 8px; border-radius:6px; white-space:nowrap; align-items:center; gap:6px;">\n <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M21 7.5L9 19.5L3 13.5L5.25 11.25L9 15L18.75 5.25L21 7.5Z" fill="white"/>\n </svg>\n Copied\n </div>';
1681
1708
  m2.innerHTML = `
@@ -1737,7 +1764,7 @@ function showTriageStatusModal(e, a) {
1737
1764
  function fadeCardAndRemove(e, a, u = 300) {
1738
1765
  a.style.opacity = "0", a.addEventListener("transitionend", () => e.remove(), { once: true }), setTimeout(() => e.remove(), u + 100);
1739
1766
  }
1740
- var gt = Object.defineProperty, b$1 = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? gt(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u), yt = Object.defineProperty, xn = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? yt(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u), wt = ((e) => (e[e.Document = 0] = "Document", e[e.DocumentType = 1] = "DocumentType", e[e.Element = 2] = "Element", e[e.Text = 3] = "Text", e[e.CDATA = 4] = "CDATA", e[e.Comment = 5] = "Comment", e))(wt || {});
1767
+ var dt = Object.defineProperty, b$1 = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? dt(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u), ht = Object.defineProperty, xn = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? ht(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u), gt = ((e) => (e[e.Document = 0] = "Document", e[e.DocumentType = 1] = "DocumentType", e[e.Element = 2] = "Element", e[e.Text = 3] = "Text", e[e.CDATA = 4] = "CDATA", e[e.Comment = 5] = "Comment", e))(gt || {});
1741
1768
  function vr(e) {
1742
1769
  return e.nodeType === e.ELEMENT_NODE;
1743
1770
  }
@@ -1779,7 +1806,7 @@ function kr(e) {
1779
1806
  })(e.cssText);
1780
1807
  return a || e.cssText;
1781
1808
  }
1782
- let St = class {
1809
+ let yt = class {
1783
1810
  constructor() {
1784
1811
  xn(this, "idNodeMap", /* @__PURE__ */ new Map()), xn(this, "nodeMetaMap", /* @__PURE__ */ new WeakMap());
1785
1812
  }
@@ -1831,7 +1858,7 @@ function Zt({ element: e, maskInputOptions: a, tagName: u, type: m2, value: w2,
1831
1858
  function fe(e) {
1832
1859
  return e.toLowerCase();
1833
1860
  }
1834
- const bt = "__rrweb_original__";
1861
+ const wt = "__rrweb_original__";
1835
1862
  function Yt(e) {
1836
1863
  const a = e.type;
1837
1864
  return e.hasAttribute("data-rr-is-password") ? "password" : a ? fe(a) : null;
@@ -1846,19 +1873,19 @@ function xr(e, a) {
1846
1873
  const m2 = u.pathname.match(/\.([0-9a-z]+)(?:$)/i);
1847
1874
  return (null == m2 ? void 0 : m2[1]) ?? null;
1848
1875
  }
1849
- let vt = 1;
1850
- const Ct = new RegExp("[^a-z0-9-_:]");
1876
+ let St = 1;
1877
+ const bt = new RegExp("[^a-z0-9-_:]");
1851
1878
  function Ir() {
1852
- return vt++;
1879
+ return St++;
1853
1880
  }
1854
- let kt, xt;
1855
- const Mt = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, It = /^(?:[a-z+]+:)?\/\//i, Et = /^www\..*/i, Lt = /^(data:)([^,]*),(.*)/i;
1881
+ let vt, Ct;
1882
+ const kt = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, xt = /^(?:[a-z+]+:)?\/\//i, Mt = /^www\..*/i, It = /^(data:)([^,]*),(.*)/i;
1856
1883
  function Pt(e, a) {
1857
- return (e || "").replace(Mt, (e2, u, m2, w2, b2, C2) => {
1884
+ return (e || "").replace(kt, (e2, u, m2, w2, b2, C2) => {
1858
1885
  const x2 = m2 || b2 || C2, I2 = u || w2 || "";
1859
1886
  if (!x2) return e2;
1860
- if (It.test(x2) || Et.test(x2)) return `url(${I2}${x2}${I2})`;
1861
- if (Lt.test(x2)) return `url(${I2}${x2}${I2})`;
1887
+ if (xt.test(x2) || Mt.test(x2)) return `url(${I2}${x2}${I2})`;
1888
+ if (It.test(x2)) return `url(${I2}${x2}${I2})`;
1862
1889
  if ("/" === x2[0]) return `url(${I2}${(function Ei(e3) {
1863
1890
  let a2 = "";
1864
1891
  return a2 = e3.indexOf("//") > -1 ? e3.split("/").slice(0, 3).join("/") : e3.split("/")[0], a2 = a2.split("?")[0], a2;
@@ -1869,8 +1896,8 @@ function Pt(e, a) {
1869
1896
  return `url(${I2}${_2.join("/")}${I2})`;
1870
1897
  });
1871
1898
  }
1872
- const Rt = /^[^ \t\n\r\u000c]+/, Dt = /^[, \t\n\r\u000c]+/;
1873
- const Ft = /* @__PURE__ */ new WeakMap();
1899
+ const Et = /^[^ \t\n\r\u000c]+/, Lt = /^[, \t\n\r\u000c]+/;
1900
+ const Rt = /* @__PURE__ */ new WeakMap();
1874
1901
  function At(e, a) {
1875
1902
  return a && "" !== a.trim() ? $t(e, a) : a;
1876
1903
  }
@@ -1878,8 +1905,8 @@ function Fi(e) {
1878
1905
  return !("svg" !== e.tagName && !e.ownerSVGElement);
1879
1906
  }
1880
1907
  function $t(e, a) {
1881
- let u = Ft.get(e);
1882
- if (u || (u = e.createElement("a"), Ft.set(e, u)), a) {
1908
+ let u = Rt.get(e);
1909
+ if (u || (u = e.createElement("a"), Rt.set(e, u)), a) {
1883
1910
  if (a.startsWith("blob:") || a.startsWith("data:")) return a;
1884
1911
  } else a = "";
1885
1912
  return u.setAttribute("href", a), u.href;
@@ -1894,8 +1921,8 @@ function Mr(e, a, u, m2) {
1894
1921
  return w2 ? (m4 = w2[0], u2 += m4.length, m4) : "";
1895
1922
  }
1896
1923
  const m3 = [];
1897
- for (; n(Dt), !(u2 >= a2.length); ) {
1898
- let w2 = n(Rt);
1924
+ for (; n(Lt), !(u2 >= a2.length); ) {
1925
+ let w2 = n(Et);
1899
1926
  if ("," === w2.slice(-1)) w2 = At(e2, w2.substring(0, w2.length - 1)), m3.push(w2);
1900
1927
  else {
1901
1928
  let b2 = "";
@@ -1965,9 +1992,9 @@ function zi(e, a) {
1965
1992
  })(u, m2);
1966
1993
  switch (e.nodeType) {
1967
1994
  case e.DOCUMENT_NODE:
1968
- return "CSS1Compat" !== e.compatMode ? { type: wt.Document, childNodes: [], compatMode: e.compatMode } : { type: wt.Document, childNodes: [] };
1995
+ return "CSS1Compat" !== e.compatMode ? { type: gt.Document, childNodes: [], compatMode: e.compatMode } : { type: gt.Document, childNodes: [] };
1969
1996
  case e.DOCUMENT_TYPE_NODE:
1970
- return { type: wt.DocumentType, name: e.name, publicId: e.publicId, systemId: e.systemId, rootId: $2 };
1997
+ return { type: gt.DocumentType, name: e.name, publicId: e.publicId, systemId: e.systemId, rootId: $2 };
1971
1998
  case e.ELEMENT_NODE:
1972
1999
  return (function Vi(e2, a2) {
1973
2000
  const { doc: u2, blockClass: m3, blockSelector: w3, inlineStylesheet: b3, maskInputOptions: C3 = {}, maskInputFn: x3, dataURLOptions: I3 = {}, inlineImages: _3, recordCanvas: O3, keepIframeSrcFn: E3, newlyAddedElement: D3 = false, rootId: F3 } = a2, U3 = (function Ui(e3, a3, u3) {
@@ -1985,7 +2012,7 @@ function zi(e, a) {
1985
2012
  })(e2, m3, w3), B3 = (function Oi(e3) {
1986
2013
  if (e3 instanceof HTMLFormElement) return "form";
1987
2014
  const a3 = fe(e3.tagName);
1988
- return Ct.test(a3) ? "div" : a3;
2015
+ return bt.test(a3) ? "div" : a3;
1989
2016
  })(e2);
1990
2017
  let $3 = {};
1991
2018
  const z2 = e2.attributes.length;
@@ -2014,7 +2041,7 @@ function zi(e, a) {
2014
2041
  const a3 = e3.getContext("2d");
2015
2042
  if (!a3) return true;
2016
2043
  for (let u3 = 0; u3 < e3.width; u3 += 50) for (let m4 = 0; m4 < e3.height; m4 += 50) {
2017
- const w4 = a3.getImageData, b4 = bt in w4 ? w4[bt] : w4;
2044
+ const w4 = a3.getImageData, b4 = wt in w4 ? w4[wt] : w4;
2018
2045
  if (new Uint32Array(b4.call(a3, u3, m4, Math.min(50, e3.width - u3), Math.min(50, e3.height - m4)).data.buffer).some((e4) => 0 !== e4)) return false;
2019
2046
  }
2020
2047
  return true;
@@ -2026,11 +2053,11 @@ function zi(e, a) {
2026
2053
  }
2027
2054
  }
2028
2055
  if ("img" === B3 && _3) {
2029
- kt || (kt = u2.createElement("canvas"), xt = kt.getContext("2d"));
2056
+ vt || (vt = u2.createElement("canvas"), Ct = vt.getContext("2d"));
2030
2057
  const a3 = e2, m4 = a3.currentSrc || a3.getAttribute("src") || "<unknown-src>", w4 = a3.crossOrigin, A = () => {
2031
2058
  a3.removeEventListener("load", A);
2032
2059
  try {
2033
- kt.width = a3.naturalWidth, kt.height = a3.naturalHeight, xt.drawImage(a3, 0, 0), $3.rr_dataURL = kt.toDataURL(I3.type, I3.quality);
2060
+ vt.width = a3.naturalWidth, vt.height = a3.naturalHeight, Ct.drawImage(a3, 0, 0), $3.rr_dataURL = vt.toDataURL(I3.type, I3.quality);
2034
2061
  } catch (e3) {
2035
2062
  if ("anonymous" !== a3.crossOrigin) return a3.crossOrigin = "anonymous", void (a3.complete && 0 !== a3.naturalWidth ? A() : a3.addEventListener("load", A));
2036
2063
  console.warn(`Cannot inline img src=${m4}! Error: ${e3}`);
@@ -2053,7 +2080,7 @@ function zi(e, a) {
2053
2080
  customElements.get(B3) && (j2 = true);
2054
2081
  } catch {
2055
2082
  }
2056
- return { type: wt.Element, tagName: B3, attributes: $3, childNodes: [], isSVG: Fi(e2) || void 0, needBlock: U3, rootId: F3, isCustom: j2 };
2083
+ return { type: gt.Element, tagName: B3, attributes: $3, childNodes: [], isSVG: Fi(e2) || void 0, needBlock: U3, rootId: F3, isCustom: j2 };
2057
2084
  })(e, { doc: u, blockClass: w2, blockSelector: b2, inlineStylesheet: x2, maskInputOptions: I2, maskInputFn: O2, dataURLOptions: E2, inlineImages: D2, recordCanvas: F2, keepIframeSrcFn: U2, newlyAddedElement: B2, rootId: $2 });
2058
2085
  case e.TEXT_NODE:
2059
2086
  return (function ji(e2, a2) {
@@ -2069,12 +2096,12 @@ function zi(e, a) {
2069
2096
  }
2070
2097
  x3 = Pt(x3, $t(a2.doc));
2071
2098
  }
2072
- return _3 && (x3 = "SCRIPT_PLACEHOLDER"), !I3 && !_3 && x3 && m3 && (x3 = w3 ? w3(x3, e2.parentElement) : x3.replace(/[\S]/g, "*")), { type: wt.Text, textContent: x3 || "", isStyle: I3, rootId: b3 };
2099
+ return _3 && (x3 = "SCRIPT_PLACEHOLDER"), !I3 && !_3 && x3 && m3 && (x3 = w3 ? w3(x3, e2.parentElement) : x3.replace(/[\S]/g, "*")), { type: gt.Text, textContent: x3 || "", isStyle: I3, rootId: b3 };
2073
2100
  })(e, { doc: u, needsMask: C2, maskTextFn: _2, rootId: $2 });
2074
2101
  case e.CDATA_SECTION_NODE:
2075
- return { type: wt.CDATA, textContent: "", rootId: $2 };
2102
+ return { type: gt.CDATA, textContent: "", rootId: $2 };
2076
2103
  case e.COMMENT_NODE:
2077
- return { type: wt.Comment, textContent: e.textContent || "", rootId: $2 };
2104
+ return { type: gt.Comment, textContent: e.textContent || "", rootId: $2 };
2078
2105
  default:
2079
2106
  return false;
2080
2107
  }
@@ -2090,21 +2117,21 @@ function Se(e, a) {
2090
2117
  if (!ee2) return console.warn(e, "not serialized"), null;
2091
2118
  let te2;
2092
2119
  te2 = m2.hasNode(e) ? m2.getId(e) : (function Gi(e2, a2) {
2093
- return !!(a2.comment && e2.type === wt.Comment || e2.type === wt.Element && (a2.script && ("script" === e2.tagName || "link" === e2.tagName && ("preload" === e2.attributes.rel || "modulepreload" === e2.attributes.rel) && "script" === e2.attributes.as || "link" === e2.tagName && "prefetch" === e2.attributes.rel && "string" == typeof e2.attributes.href && "js" === xr(e2.attributes.href)) || a2.headFavicon && ("link" === e2.tagName && "shortcut icon" === e2.attributes.rel || "meta" === e2.tagName && (N(e2.attributes.name).match(/^msapplication-tile(image|color)$/) || "application-name" === N(e2.attributes.name) || "icon" === N(e2.attributes.rel) || "apple-touch-icon" === N(e2.attributes.rel) || "shortcut icon" === N(e2.attributes.rel))) || "meta" === e2.tagName && (a2.headMetaDescKeywords && N(e2.attributes.name).match(/^description|keywords$/) || a2.headMetaSocial && (N(e2.attributes.property).match(/^(og|twitter|fb):/) || N(e2.attributes.name).match(/^(og|twitter):/) || "pinterest" === N(e2.attributes.name)) || a2.headMetaRobots && ("robots" === N(e2.attributes.name) || "googlebot" === N(e2.attributes.name) || "bingbot" === N(e2.attributes.name)) || a2.headMetaHttpEquiv && void 0 !== e2.attributes["http-equiv"] || a2.headMetaAuthorship && ("author" === N(e2.attributes.name) || "generator" === N(e2.attributes.name) || "framework" === N(e2.attributes.name) || "publisher" === N(e2.attributes.name) || "progid" === N(e2.attributes.name) || N(e2.attributes.property).match(/^article:/) || N(e2.attributes.property).match(/^product:/)) || a2.headMetaVerification && ("google-site-verification" === N(e2.attributes.name) || "yandex-verification" === N(e2.attributes.name) || "csrf-token" === N(e2.attributes.name) || "p:domain_verify" === N(e2.attributes.name) || "verify-v1" === N(e2.attributes.name) || "verification" === N(e2.attributes.name) || "shopify-checkout-api-token" === N(e2.attributes.name)))));
2094
- })(ee2, F2) || !Q2 && ee2.type === wt.Text && !ee2.isStyle && !ee2.textContent.replace(/^\s+|\s+$/gm, "").length ? -2 : Ir();
2120
+ return !!(a2.comment && e2.type === gt.Comment || e2.type === gt.Element && (a2.script && ("script" === e2.tagName || "link" === e2.tagName && ("preload" === e2.attributes.rel || "modulepreload" === e2.attributes.rel) && "script" === e2.attributes.as || "link" === e2.tagName && "prefetch" === e2.attributes.rel && "string" == typeof e2.attributes.href && "js" === xr(e2.attributes.href)) || a2.headFavicon && ("link" === e2.tagName && "shortcut icon" === e2.attributes.rel || "meta" === e2.tagName && (N(e2.attributes.name).match(/^msapplication-tile(image|color)$/) || "application-name" === N(e2.attributes.name) || "icon" === N(e2.attributes.rel) || "apple-touch-icon" === N(e2.attributes.rel) || "shortcut icon" === N(e2.attributes.rel))) || "meta" === e2.tagName && (a2.headMetaDescKeywords && N(e2.attributes.name).match(/^description|keywords$/) || a2.headMetaSocial && (N(e2.attributes.property).match(/^(og|twitter|fb):/) || N(e2.attributes.name).match(/^(og|twitter):/) || "pinterest" === N(e2.attributes.name)) || a2.headMetaRobots && ("robots" === N(e2.attributes.name) || "googlebot" === N(e2.attributes.name) || "bingbot" === N(e2.attributes.name)) || a2.headMetaHttpEquiv && void 0 !== e2.attributes["http-equiv"] || a2.headMetaAuthorship && ("author" === N(e2.attributes.name) || "generator" === N(e2.attributes.name) || "framework" === N(e2.attributes.name) || "publisher" === N(e2.attributes.name) || "progid" === N(e2.attributes.name) || N(e2.attributes.property).match(/^article:/) || N(e2.attributes.property).match(/^product:/)) || a2.headMetaVerification && ("google-site-verification" === N(e2.attributes.name) || "yandex-verification" === N(e2.attributes.name) || "csrf-token" === N(e2.attributes.name) || "p:domain_verify" === N(e2.attributes.name) || "verify-v1" === N(e2.attributes.name) || "verification" === N(e2.attributes.name) || "shopify-checkout-api-token" === N(e2.attributes.name)))));
2121
+ })(ee2, F2) || !Q2 && ee2.type === gt.Text && !ee2.isStyle && !ee2.textContent.replace(/^\s+|\s+$/gm, "").length ? -2 : Ir();
2095
2122
  const ne2 = Object.assign(ee2, { id: te2 });
2096
2123
  if (m2.add(e, ne2), -2 === te2) return null;
2097
2124
  z2 && z2(e);
2098
2125
  let re2 = !I2;
2099
- if (ne2.type === wt.Element) {
2126
+ if (ne2.type === gt.Element) {
2100
2127
  re2 = re2 && !ne2.needBlock, delete ne2.needBlock;
2101
2128
  const a2 = e.shadowRoot;
2102
2129
  a2 && ze(a2) && (ne2.isShadowHost = true);
2103
2130
  }
2104
- if ((ne2.type === wt.Document || ne2.type === wt.Element) && re2) {
2105
- F2.headWhitespace && ne2.type === wt.Element && "head" === ne2.tagName && (Q2 = false);
2131
+ if ((ne2.type === gt.Document || ne2.type === gt.Element) && re2) {
2132
+ F2.headWhitespace && ne2.type === gt.Element && "head" === ne2.tagName && (Q2 = false);
2106
2133
  const a2 = { doc: u, mirror: m2, blockClass: w2, blockSelector: b2, needsMask: X2, maskTextClass: C2, maskTextSelector: x2, skipChild: I2, inlineStylesheet: _2, maskInputOptions: O2, maskTextFn: E2, maskInputFn: D2, slimDOMOptions: F2, dataURLOptions: U2, inlineImages: B2, recordCanvas: $2, preserveWhiteSpace: Q2, onSerialize: z2, onIframeLoad: j2, iframeLoadTimeout: V2, onStylesheetLoad: q2, stylesheetLoadTimeout: H2, keepIframeSrcFn: J2 };
2107
- if (ne2.type !== wt.Element || "textarea" !== ne2.tagName || void 0 === ne2.attributes.value) for (const u2 of Array.from(e.childNodes)) {
2134
+ if (ne2.type !== gt.Element || "textarea" !== ne2.tagName || void 0 === ne2.attributes.value) for (const u2 of Array.from(e.childNodes)) {
2108
2135
  const e2 = Se(u2, a2);
2109
2136
  e2 && ne2.childNodes.push(e2);
2110
2137
  }
@@ -2113,7 +2140,7 @@ function Se(e, a) {
2113
2140
  m3 && (ze(e.shadowRoot) && (m3.isShadow = true), ne2.childNodes.push(m3));
2114
2141
  }
2115
2142
  }
2116
- return e.parentNode && We(e.parentNode) && ze(e.parentNode) && (ne2.isShadow = true), ne2.type === wt.Element && "iframe" === ne2.tagName && (function _i(e2, a2, u2) {
2143
+ return e.parentNode && We(e.parentNode) && ze(e.parentNode) && (ne2.isShadow = true), ne2.type === gt.Element && "iframe" === ne2.tagName && (function _i(e2, a2, u2) {
2117
2144
  const m3 = e2.contentWindow;
2118
2145
  if (!m3) return;
2119
2146
  let w3, b3 = false;
@@ -2139,7 +2166,7 @@ function Se(e, a) {
2139
2166
  const u2 = Se(a2, { doc: a2, mirror: m2, blockClass: w2, blockSelector: b2, needsMask: X2, maskTextClass: C2, maskTextSelector: x2, skipChild: false, inlineStylesheet: _2, maskInputOptions: O2, maskTextFn: E2, maskInputFn: D2, slimDOMOptions: F2, dataURLOptions: U2, inlineImages: B2, recordCanvas: $2, preserveWhiteSpace: Q2, onSerialize: z2, onIframeLoad: j2, iframeLoadTimeout: V2, onStylesheetLoad: q2, stylesheetLoadTimeout: H2, keepIframeSrcFn: J2 });
2140
2167
  u2 && j2(e, u2);
2141
2168
  }
2142
- }, V2), ne2.type === wt.Element && "link" === ne2.tagName && "string" == typeof ne2.attributes.rel && ("stylesheet" === ne2.attributes.rel || "preload" === ne2.attributes.rel && "string" == typeof ne2.attributes.href && "css" === xr(ne2.attributes.href)) && (function Wi(e2, a2, u2) {
2169
+ }, V2), ne2.type === gt.Element && "link" === ne2.tagName && "string" == typeof ne2.attributes.rel && ("stylesheet" === ne2.attributes.rel || "preload" === ne2.attributes.rel && "string" == typeof ne2.attributes.href && "css" === xr(ne2.attributes.href)) && (function Wi(e2, a2, u2) {
2143
2170
  let m3, w3 = false;
2144
2171
  try {
2145
2172
  m3 = e2.sheet;
@@ -2179,13 +2206,13 @@ function $i(e) {
2179
2206
  } });
2180
2207
  }), u;
2181
2208
  }
2182
- var Ut = { exports: {} }, Bt = String, Rr = function() {
2183
- return { isColorSupported: false, reset: Bt, bold: Bt, dim: Bt, italic: Bt, underline: Bt, inverse: Bt, hidden: Bt, strikethrough: Bt, black: Bt, red: Bt, green: Bt, yellow: Bt, blue: Bt, magenta: Bt, cyan: Bt, white: Bt, gray: Bt, bgBlack: Bt, bgRed: Bt, bgGreen: Bt, bgYellow: Bt, bgBlue: Bt, bgMagenta: Bt, bgCyan: Bt, bgWhite: Bt, blackBright: Bt, redBright: Bt, greenBright: Bt, yellowBright: Bt, blueBright: Bt, magentaBright: Bt, cyanBright: Bt, whiteBright: Bt, bgBlackBright: Bt, bgRedBright: Bt, bgGreenBright: Bt, bgYellowBright: Bt, bgBlueBright: Bt, bgMagentaBright: Bt, bgCyanBright: Bt, bgWhiteBright: Bt };
2209
+ var Dt = { exports: {} }, Ft = String, Rr = function() {
2210
+ return { isColorSupported: false, reset: Ft, bold: Ft, dim: Ft, italic: Ft, underline: Ft, inverse: Ft, hidden: Ft, strikethrough: Ft, black: Ft, red: Ft, green: Ft, yellow: Ft, blue: Ft, magenta: Ft, cyan: Ft, white: Ft, gray: Ft, bgBlack: Ft, bgRed: Ft, bgGreen: Ft, bgYellow: Ft, bgBlue: Ft, bgMagenta: Ft, bgCyan: Ft, bgWhite: Ft, blackBright: Ft, redBright: Ft, greenBright: Ft, yellowBright: Ft, blueBright: Ft, magentaBright: Ft, cyanBright: Ft, whiteBright: Ft, bgBlackBright: Ft, bgRedBright: Ft, bgGreenBright: Ft, bgYellowBright: Ft, bgBlueBright: Ft, bgMagentaBright: Ft, bgCyanBright: Ft, bgWhiteBright: Ft };
2184
2211
  };
2185
- Ut.exports = Rr(), Ut.exports.createColors = Rr;
2186
- var Wt = Ut.exports;
2187
- const jt = $i(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
2188
- let Vt = Wt, Ht = jt, Kt = class Lr extends Error {
2212
+ Dt.exports = Rr(), Dt.exports.createColors = Rr;
2213
+ var Ut = Dt.exports;
2214
+ const Bt = $i(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
2215
+ let Wt = Ut, jt = Bt, Vt = class Lr extends Error {
2189
2216
  constructor(e, a, u, m2, w2, b2) {
2190
2217
  super(e), this.name = "CssSyntaxError", this.reason = e, w2 && (this.file = w2), m2 && (this.source = m2), b2 && (this.plugin = b2), typeof a < "u" && typeof u < "u" && ("number" == typeof a ? (this.line = a, this.column = u) : (this.line = a.line, this.column = a.column, this.endLine = u.line, this.endColumn = u.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, Lr);
2191
2218
  }
@@ -2195,11 +2222,11 @@ let Vt = Wt, Ht = jt, Kt = class Lr extends Error {
2195
2222
  showSourceCode(e) {
2196
2223
  if (!this.source) return "";
2197
2224
  let a = this.source;
2198
- null == e && (e = Vt.isColorSupported);
2225
+ null == e && (e = Wt.isColorSupported);
2199
2226
  let n = (e2) => e2, r = (e2) => e2, i = (e2) => e2;
2200
2227
  if (e) {
2201
- let { bold: e2, gray: a2, red: u2 } = Vt.createColors(true);
2202
- r = (a3) => e2(u2(a3)), n = (e3) => a2(e3), Ht && (i = (e3) => Ht(e3));
2228
+ let { bold: e2, gray: a2, red: u2 } = Wt.createColors(true);
2229
+ r = (a3) => e2(u2(a3)), n = (e3) => a2(e3), jt && (i = (e3) => jt(e3));
2203
2230
  }
2204
2231
  let u = a.split(/\r?\n/), m2 = Math.max(this.line - 3, 0), w2 = Math.min(this.line + 2, u.length), b2 = String(w2).length;
2205
2232
  return u.slice(m2, w2).map((e2, a2) => {
@@ -2220,10 +2247,10 @@ let Vt = Wt, Ht = jt, Kt = class Lr extends Error {
2220
2247
  return e && (e = "\n\n" + e + "\n"), this.name + ": " + this.message + e;
2221
2248
  }
2222
2249
  };
2223
- var Jt = Kt;
2224
- Kt.default = Kt;
2225
- const Xt = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
2226
- let Qt = class {
2250
+ var Ht = Vt;
2251
+ Vt.default = Vt;
2252
+ const Kt = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
2253
+ let Jt = class {
2227
2254
  constructor(e) {
2228
2255
  this.builder = e;
2229
2256
  }
@@ -2275,7 +2302,7 @@ let Qt = class {
2275
2302
  if (u || (u = a), a && (m2 = e.raws[a], typeof m2 < "u")) return m2;
2276
2303
  let w2 = e.parent;
2277
2304
  if ("before" === u && (!w2 || "root" === w2.type && w2.first === e || w2 && "document" === w2.type)) return "";
2278
- if (!w2) return Xt[u];
2305
+ if (!w2) return Kt[u];
2279
2306
  let b2 = e.root();
2280
2307
  if (b2.rawCache || (b2.rawCache = {}), typeof b2.rawCache[u] < "u") return b2.rawCache[u];
2281
2308
  if ("before" === u || "after" === u) return this.beforeAfter(e, u);
@@ -2287,7 +2314,7 @@ let Qt = class {
2287
2314
  if (m2 = e2.raws[a], typeof m2 < "u") return false;
2288
2315
  });
2289
2316
  }
2290
- return typeof m2 > "u" && (m2 = Xt[u]), b2.rawCache[u] = m2, m2;
2317
+ return typeof m2 > "u" && (m2 = Kt[u]), b2.rawCache[u] = m2, m2;
2291
2318
  }
2292
2319
  rawBeforeClose(e) {
2293
2320
  let a;
@@ -2363,17 +2390,17 @@ let Qt = class {
2363
2390
  this[e.type](e, a);
2364
2391
  }
2365
2392
  };
2366
- var en = Qt;
2367
- Qt.default = Qt;
2368
- let tn = en;
2393
+ var Xt = Jt;
2394
+ Jt.default = Jt;
2395
+ let Qt = Xt;
2369
2396
  function ks(e, a) {
2370
- new tn(a).stringify(e);
2397
+ new Qt(a).stringify(e);
2371
2398
  }
2372
- var nn = ks;
2399
+ var en = ks;
2373
2400
  ks.default = ks;
2374
- var rn = {};
2375
- rn.isClean = Symbol("isClean"), rn.my = Symbol("my");
2376
- let on = Jt, sn = en, an = nn, { isClean: ln, my: cn } = rn;
2401
+ var tn = {};
2402
+ tn.isClean = Symbol("isClean"), tn.my = Symbol("my");
2403
+ let nn = Ht, rn = Xt, on = en, { isClean: sn, my: an } = tn;
2377
2404
  function Cs(e, a) {
2378
2405
  let u = new e.constructor();
2379
2406
  for (let m2 in e) {
@@ -2395,12 +2422,12 @@ function Pe(e, a) {
2395
2422
  }
2396
2423
  return w2;
2397
2424
  }
2398
- let un = class {
2425
+ let ln = class {
2399
2426
  get proxyOf() {
2400
2427
  return this;
2401
2428
  }
2402
2429
  constructor(e = {}) {
2403
- this.raws = {}, this[ln] = false, this[cn] = true;
2430
+ this.raws = {}, this[sn] = false, this[an] = true;
2404
2431
  for (let a in e) if ("nodes" === a) {
2405
2432
  this.nodes = [];
2406
2433
  for (let u of e[a]) "function" == typeof u.clone ? this.append(u.clone()) : this.append(u);
@@ -2444,19 +2471,19 @@ let un = class {
2444
2471
  let { end: u, start: m2 } = this.rangeBy(a);
2445
2472
  return this.source.input.error(e, { column: m2.column, line: m2.line }, { column: u.column, line: u.line }, a);
2446
2473
  }
2447
- return new on(e);
2474
+ return new nn(e);
2448
2475
  }
2449
2476
  getProxyProcessor() {
2450
2477
  return { get: (e, a) => "proxyOf" === a ? e : "root" === a ? () => e.root().toProxy() : e[a], set: (e, a, u) => (e[a] === u || (e[a] = u, ("prop" === a || "value" === a || "name" === a || "params" === a || "important" === a || "text" === a) && e.markDirty()), true) };
2451
2478
  }
2452
2479
  markClean() {
2453
- this[ln] = true;
2480
+ this[sn] = true;
2454
2481
  }
2455
2482
  markDirty() {
2456
- if (this[ln]) {
2457
- this[ln] = false;
2483
+ if (this[sn]) {
2484
+ this[sn] = false;
2458
2485
  let e = this;
2459
- for (; e = e.parent; ) e[ln] = false;
2486
+ for (; e = e.parent; ) e[sn] = false;
2460
2487
  }
2461
2488
  }
2462
2489
  next() {
@@ -2492,7 +2519,7 @@ let un = class {
2492
2519
  return (u.line < a.line || u.line === a.line && u.column <= a.column) && (u = { column: a.column + 1, line: a.line }), { end: u, start: a };
2493
2520
  }
2494
2521
  raw(e, a) {
2495
- return new sn().raw(this, e, a);
2522
+ return new rn().raw(this, e, a);
2496
2523
  }
2497
2524
  remove() {
2498
2525
  return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
@@ -2529,7 +2556,7 @@ let un = class {
2529
2556
  toProxy() {
2530
2557
  return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache;
2531
2558
  }
2532
- toString(e = an) {
2559
+ toString(e = on) {
2533
2560
  e.stringify && (e = e.stringify);
2534
2561
  let a = "";
2535
2562
  return e(this, (e2) => {
@@ -2542,16 +2569,16 @@ let un = class {
2542
2569
  return e.warn(a, m2);
2543
2570
  }
2544
2571
  };
2545
- var pn = un;
2546
- un.default = un;
2547
- let dn = pn, hn = class extends dn {
2572
+ var cn = ln;
2573
+ ln.default = ln;
2574
+ let un = cn, pn = class extends un {
2548
2575
  constructor(e) {
2549
2576
  super(e), this.type = "comment";
2550
2577
  }
2551
2578
  };
2552
- var fn = hn;
2553
- hn.default = hn;
2554
- let mn = pn, gn = class extends mn {
2579
+ var dn = pn;
2580
+ pn.default = pn;
2581
+ let hn = cn, fn = class extends hn {
2555
2582
  get variable() {
2556
2583
  return this.prop.startsWith("--") || "$" === this.prop[0];
2557
2584
  }
@@ -2559,16 +2586,16 @@ let mn = pn, gn = class extends mn {
2559
2586
  e && typeof e.value < "u" && "string" != typeof e.value && (e = { ...e, value: String(e.value) }), super(e), this.type = "decl";
2560
2587
  }
2561
2588
  };
2562
- var yn = gn;
2563
- gn.default = gn;
2564
- let wn, Sn, bn, Mn, In = fn, _n = yn, On = pn, { isClean: En, my: Ln } = rn;
2589
+ var mn = fn;
2590
+ fn.default = fn;
2591
+ let gn, yn, wn, Sn, bn = dn, Mn = mn, In = cn, { isClean: _n, my: On } = tn;
2565
2592
  function _r(e) {
2566
2593
  return e.map((e2) => (e2.nodes && (e2.nodes = _r(e2.nodes)), delete e2.source, e2));
2567
2594
  }
2568
2595
  function Wr(e) {
2569
- if (e[En] = false, e.proxyOf.nodes) for (let a of e.proxyOf.nodes) Wr(a);
2596
+ if (e[_n] = false, e.proxyOf.nodes) for (let a of e.proxyOf.nodes) Wr(a);
2570
2597
  }
2571
- let Rn = class zr extends On {
2598
+ let En = class zr extends In {
2572
2599
  get first() {
2573
2600
  if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
2574
2601
  }
@@ -2620,7 +2647,7 @@ let Rn = class zr extends On {
2620
2647
  return this.markDirty(), this;
2621
2648
  }
2622
2649
  normalize(e, a) {
2623
- if ("string" == typeof e) e = _r(Sn(e).nodes);
2650
+ if ("string" == typeof e) e = _r(yn(e).nodes);
2624
2651
  else if (typeof e > "u") e = [];
2625
2652
  else if (Array.isArray(e)) {
2626
2653
  e = e.slice(0);
@@ -2631,14 +2658,14 @@ let Rn = class zr extends On {
2631
2658
  } else if (e.type) e = [e];
2632
2659
  else if (e.prop) {
2633
2660
  if (typeof e.value > "u") throw new Error("Value field is missed in node creation");
2634
- "string" != typeof e.value && (e.value = String(e.value)), e = [new _n(e)];
2635
- } else if (e.selector || e.selectors) e = [new Mn(e)];
2636
- else if (e.name) e = [new wn(e)];
2661
+ "string" != typeof e.value && (e.value = String(e.value)), e = [new Mn(e)];
2662
+ } else if (e.selector || e.selectors) e = [new Sn(e)];
2663
+ else if (e.name) e = [new gn(e)];
2637
2664
  else {
2638
2665
  if (!e.text) throw new Error("Unknown node type in node creation");
2639
- e = [new In(e)];
2666
+ e = [new bn(e)];
2640
2667
  }
2641
- return e.map((e2) => (e2[Ln] || zr.rebuild(e2), (e2 = e2.proxyOf).parent && e2.parent.removeChild(e2), e2[En] && Wr(e2), e2.raws || (e2.raws = {}), typeof e2.raws.before > "u" && a && typeof a.raws.before < "u" && (e2.raws.before = a.raws.before.replace(/\S/g, "")), e2.parent = this.proxyOf, e2));
2668
+ return e.map((e2) => (e2[On] || zr.rebuild(e2), (e2 = e2.proxyOf).parent && e2.parent.removeChild(e2), e2[_n] && Wr(e2), e2.raws || (e2.raws = {}), typeof e2.raws.before > "u" && a && typeof a.raws.before < "u" && (e2.raws.before = a.raws.before.replace(/\S/g, "")), e2.parent = this.proxyOf, e2));
2642
2669
  }
2643
2670
  prepend(...e) {
2644
2671
  e = e.reverse();
@@ -2714,22 +2741,22 @@ let Rn = class zr extends On {
2714
2741
  }));
2715
2742
  }
2716
2743
  };
2717
- Rn.registerParse = (e) => {
2744
+ En.registerParse = (e) => {
2745
+ yn = e;
2746
+ }, En.registerRule = (e) => {
2718
2747
  Sn = e;
2719
- }, Rn.registerRule = (e) => {
2720
- Mn = e;
2721
- }, Rn.registerAtRule = (e) => {
2748
+ }, En.registerAtRule = (e) => {
2749
+ gn = e;
2750
+ }, En.registerRoot = (e) => {
2722
2751
  wn = e;
2723
- }, Rn.registerRoot = (e) => {
2724
- bn = e;
2725
2752
  };
2726
- var An = Rn;
2727
- Rn.default = Rn, Rn.rebuild = (e) => {
2728
- "atrule" === e.type ? Object.setPrototypeOf(e, wn.prototype) : "rule" === e.type ? Object.setPrototypeOf(e, Mn.prototype) : "decl" === e.type ? Object.setPrototypeOf(e, _n.prototype) : "comment" === e.type ? Object.setPrototypeOf(e, In.prototype) : "root" === e.type && Object.setPrototypeOf(e, bn.prototype), e[Ln] = true, e.nodes && e.nodes.forEach((e2) => {
2729
- Rn.rebuild(e2);
2753
+ var Ln = En;
2754
+ En.default = En, En.rebuild = (e) => {
2755
+ "atrule" === e.type ? Object.setPrototypeOf(e, gn.prototype) : "rule" === e.type ? Object.setPrototypeOf(e, Sn.prototype) : "decl" === e.type ? Object.setPrototypeOf(e, Mn.prototype) : "comment" === e.type ? Object.setPrototypeOf(e, bn.prototype) : "root" === e.type && Object.setPrototypeOf(e, wn.prototype), e[On] = true, e.nodes && e.nodes.forEach((e2) => {
2756
+ En.rebuild(e2);
2730
2757
  });
2731
2758
  };
2732
- let Tn = An, Nn = class extends Tn {
2759
+ let Rn = Ln, An = class extends Rn {
2733
2760
  constructor(e) {
2734
2761
  super(e), this.type = "atrule";
2735
2762
  }
@@ -2740,38 +2767,38 @@ let Tn = An, Nn = class extends Tn {
2740
2767
  return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e);
2741
2768
  }
2742
2769
  };
2743
- var Pn = Nn;
2744
- Nn.default = Nn, Tn.registerAtRule(Nn);
2745
- let Dn, Fn, Un = An, Bn = class extends Un {
2770
+ var Tn = An;
2771
+ An.default = An, Rn.registerAtRule(An);
2772
+ let Nn, Pn, Dn = Ln, Fn = class extends Dn {
2746
2773
  constructor(e) {
2747
2774
  super({ type: "document", ...e }), this.nodes || (this.nodes = []);
2748
2775
  }
2749
2776
  toResult(e = {}) {
2750
- return new Dn(new Fn(), this, e).stringify();
2777
+ return new Nn(new Pn(), this, e).stringify();
2751
2778
  }
2752
2779
  };
2753
- Bn.registerLazyResult = (e) => {
2754
- Dn = e;
2755
- }, Bn.registerProcessor = (e) => {
2756
- Fn = e;
2780
+ Fn.registerLazyResult = (e) => {
2781
+ Nn = e;
2782
+ }, Fn.registerProcessor = (e) => {
2783
+ Pn = e;
2757
2784
  };
2758
- var Wn = Bn;
2759
- Bn.default = Bn;
2760
- var zn = { nanoid: (e = 21) => {
2785
+ var Un = Fn;
2786
+ Fn.default = Fn;
2787
+ var Bn = { nanoid: (e = 21) => {
2761
2788
  let a = "", u = 0 | e;
2762
2789
  for (; u--; ) a += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64 * Math.random() | 0];
2763
2790
  return a;
2764
2791
  } };
2765
- let { existsSync: jn, readFileSync: Vn } = jt, { dirname: qn, join: Zn } = jt, { SourceMapConsumer: Kn, SourceMapGenerator: Qn } = jt;
2766
- let nr = class {
2792
+ let { existsSync: Wn, readFileSync: zn } = Bt, { dirname: jn, join: Vn } = Bt, { SourceMapConsumer: qn, SourceMapGenerator: Zn } = Bt;
2793
+ let Kn = class {
2767
2794
  constructor(e, a) {
2768
2795
  if (false === a.map) return;
2769
2796
  this.loadAnnotation(e), this.inline = this.startWith(this.annotation, "data:");
2770
2797
  let u = a.map ? a.map.prev : void 0, m2 = this.loadMap(a.from, u);
2771
- !this.mapFile && a.from && (this.mapFile = a.from), this.mapFile && (this.root = qn(this.mapFile)), m2 && (this.text = m2);
2798
+ !this.mapFile && a.from && (this.mapFile = a.from), this.mapFile && (this.root = jn(this.mapFile)), m2 && (this.text = m2);
2772
2799
  }
2773
2800
  consumer() {
2774
- return this.consumerCache || (this.consumerCache = new Kn(this.text)), this.consumerCache;
2801
+ return this.consumerCache || (this.consumerCache = new qn(this.text)), this.consumerCache;
2775
2802
  }
2776
2803
  decodeInline(e) {
2777
2804
  let a = e.match(/^data:application\/json;charset=utf-?8,/) || e.match(/^data:application\/json,/);
@@ -2796,15 +2823,15 @@ let nr = class {
2796
2823
  u > -1 && m2 > -1 && (this.annotation = this.getAnnotationURL(e.substring(u, m2)));
2797
2824
  }
2798
2825
  loadFile(e) {
2799
- if (this.root = qn(e), jn(e)) return this.mapFile = e, Vn(e, "utf-8").toString().trim();
2826
+ if (this.root = jn(e), Wn(e)) return this.mapFile = e, zn(e, "utf-8").toString().trim();
2800
2827
  }
2801
2828
  loadMap(e, a) {
2802
2829
  if (false === a) return false;
2803
2830
  if (a) {
2804
2831
  if ("string" == typeof a) return a;
2805
2832
  if ("function" != typeof a) {
2806
- if (a instanceof Kn) return Qn.fromSourceMap(a).toString();
2807
- if (a instanceof Qn) return a.toString();
2833
+ if (a instanceof qn) return Zn.fromSourceMap(a).toString();
2834
+ if (a instanceof Zn) return a.toString();
2808
2835
  if (this.isMap(a)) return JSON.stringify(a);
2809
2836
  throw new Error("Unsupported previous source map format: " + a.toString());
2810
2837
  }
@@ -2820,7 +2847,7 @@ let nr = class {
2820
2847
  if (this.inline) return this.decodeInline(this.annotation);
2821
2848
  if (this.annotation) {
2822
2849
  let a2 = this.annotation;
2823
- return e && (a2 = Zn(qn(e), a2)), this.loadFile(a2);
2850
+ return e && (a2 = Vn(jn(e), a2)), this.loadFile(a2);
2824
2851
  }
2825
2852
  }
2826
2853
  }
@@ -2831,23 +2858,23 @@ let nr = class {
2831
2858
  return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
2832
2859
  }
2833
2860
  };
2834
- var rr = nr;
2835
- nr.default = nr;
2836
- let { nanoid: or } = zn, { isAbsolute: sr, resolve: ir } = jt, { SourceMapConsumer: ar, SourceMapGenerator: lr } = jt, { fileURLToPath: cr, pathToFileURL: ur } = jt, pr = Jt, dr = rr, hr = jt, fr = Symbol("fromOffsetCache"), mr = !(!ar || !lr), gr = !(!ir || !sr), yr = class {
2861
+ var Qn = Kn;
2862
+ Kn.default = Kn;
2863
+ let { nanoid: nr } = Bn, { isAbsolute: rr, resolve: or } = Bt, { SourceMapConsumer: sr, SourceMapGenerator: ir } = Bt, { fileURLToPath: ar, pathToFileURL: lr } = Bt, cr = Ht, ur = Qn, pr = Bt, dr = Symbol("fromOffsetCache"), hr = !(!sr || !ir), fr = !(!or || !rr), mr = class {
2837
2864
  get from() {
2838
2865
  return this.file || this.id;
2839
2866
  }
2840
2867
  constructor(e, a = {}) {
2841
2868
  if (null === e || typeof e > "u" || "object" == typeof e && !e.toString) throw new Error(`PostCSS received ${e} instead of CSS string`);
2842
- if (this.css = e.toString(), "\uFEFF" === this.css[0] || "￾" === this.css[0] ? (this.hasBOM = true, this.css = this.css.slice(1)) : this.hasBOM = false, this.document = this.css, a.document && (this.document = a.document.toString()), a.from && (!gr || /^\w+:\/\//.test(a.from) || sr(a.from) ? this.file = a.from : this.file = ir(a.from)), gr && mr) {
2843
- let e2 = new dr(this.css, a);
2869
+ if (this.css = e.toString(), "\uFEFF" === this.css[0] || "￾" === this.css[0] ? (this.hasBOM = true, this.css = this.css.slice(1)) : this.hasBOM = false, this.document = this.css, a.document && (this.document = a.document.toString()), a.from && (!fr || /^\w+:\/\//.test(a.from) || rr(a.from) ? this.file = a.from : this.file = or(a.from)), fr && hr) {
2870
+ let e2 = new ur(this.css, a);
2844
2871
  if (e2.text) {
2845
2872
  this.map = e2;
2846
2873
  let a2 = e2.consumer().file;
2847
2874
  !this.file && a2 && (this.file = this.mapResolve(a2));
2848
2875
  }
2849
2876
  }
2850
- this.file || (this.id = "<input css " + or(6) + ">"), this.map && (this.map.file = this.from);
2877
+ this.file || (this.id = "<input css " + nr(6) + ">"), this.map && (this.map.file = this.from);
2851
2878
  }
2852
2879
  error(e, a, u, m2 = {}) {
2853
2880
  let w2, b2, C2;
@@ -2866,17 +2893,17 @@ let { nanoid: or } = zn, { isAbsolute: sr, resolve: ir } = jt, { SourceMapConsum
2866
2893
  a = e2.line, u = e2.col;
2867
2894
  }
2868
2895
  let x2 = this.origin(a, u, b2, w2);
2869
- return C2 = x2 ? new pr(e, void 0 === x2.endLine ? x2.line : { column: x2.column, line: x2.line }, void 0 === x2.endLine ? x2.column : { column: x2.endColumn, line: x2.endLine }, x2.source, x2.file, m2.plugin) : new pr(e, void 0 === b2 ? a : { column: u, line: a }, void 0 === b2 ? u : { column: w2, line: b2 }, this.css, this.file, m2.plugin), C2.input = { column: u, endColumn: w2, endLine: b2, line: a, source: this.css }, this.file && (ur && (C2.input.url = ur(this.file).toString()), C2.input.file = this.file), C2;
2896
+ return C2 = x2 ? new cr(e, void 0 === x2.endLine ? x2.line : { column: x2.column, line: x2.line }, void 0 === x2.endLine ? x2.column : { column: x2.endColumn, line: x2.endLine }, x2.source, x2.file, m2.plugin) : new cr(e, void 0 === b2 ? a : { column: u, line: a }, void 0 === b2 ? u : { column: w2, line: b2 }, this.css, this.file, m2.plugin), C2.input = { column: u, endColumn: w2, endLine: b2, line: a, source: this.css }, this.file && (lr && (C2.input.url = lr(this.file).toString()), C2.input.file = this.file), C2;
2870
2897
  }
2871
2898
  fromOffset(e) {
2872
2899
  let a, u;
2873
- if (this[fr]) u = this[fr];
2900
+ if (this[dr]) u = this[dr];
2874
2901
  else {
2875
2902
  let e2 = this.css.split("\n");
2876
2903
  u = new Array(e2.length);
2877
2904
  let a2 = 0;
2878
2905
  for (let m3 = 0, w2 = e2.length; m3 < w2; m3++) u[m3] = a2, a2 += e2[m3].length + 1;
2879
- this[fr] = u;
2906
+ this[dr] = u;
2880
2907
  }
2881
2908
  a = u[u.length - 1];
2882
2909
  let m2 = 0;
@@ -2895,17 +2922,17 @@ let { nanoid: or } = zn, { isAbsolute: sr, resolve: ir } = jt, { SourceMapConsum
2895
2922
  return { col: e - u[m2] + 1, line: m2 + 1 };
2896
2923
  }
2897
2924
  mapResolve(e) {
2898
- return /^\w+:\/\//.test(e) ? e : ir(this.map.consumer().sourceRoot || this.map.root || ".", e);
2925
+ return /^\w+:\/\//.test(e) ? e : or(this.map.consumer().sourceRoot || this.map.root || ".", e);
2899
2926
  }
2900
2927
  origin(e, a, u, m2) {
2901
2928
  if (!this.map) return false;
2902
2929
  let w2, b2, C2 = this.map.consumer(), x2 = C2.originalPositionFor({ column: a, line: e });
2903
2930
  if (!x2.source) return false;
2904
- "number" == typeof u && (w2 = C2.originalPositionFor({ column: m2, line: u })), b2 = sr(x2.source) ? ur(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || ur(this.map.mapFile));
2931
+ "number" == typeof u && (w2 = C2.originalPositionFor({ column: m2, line: u })), b2 = rr(x2.source) ? lr(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || lr(this.map.mapFile));
2905
2932
  let I2 = { column: x2.column, endColumn: w2 && w2.column, endLine: w2 && w2.line, line: x2.line, url: b2.toString() };
2906
2933
  if ("file:" === b2.protocol) {
2907
- if (!cr) throw new Error("file: protocol is not available in this PostCSS build");
2908
- I2.file = cr(b2);
2934
+ if (!ar) throw new Error("file: protocol is not available in this PostCSS build");
2935
+ I2.file = ar(b2);
2909
2936
  }
2910
2937
  let _2 = C2.sourceContentFor(x2.source);
2911
2938
  return _2 && (I2.source = _2), I2;
@@ -2916,9 +2943,9 @@ let { nanoid: or } = zn, { isAbsolute: sr, resolve: ir } = jt, { SourceMapConsum
2916
2943
  return this.map && (e.map = { ...this.map }, e.map.consumerCache && (e.map.consumerCache = void 0)), e;
2917
2944
  }
2918
2945
  };
2919
- var wr = yr;
2920
- yr.default = yr, hr && hr.registerInput && hr.registerInput(yr);
2921
- let Sr, Cr, Ar = An, Tr = class extends Ar {
2946
+ var gr = mr;
2947
+ mr.default = mr, pr && pr.registerInput && pr.registerInput(mr);
2948
+ let yr, wr, Sr = Ln, Cr = class extends Sr {
2922
2949
  constructor(e) {
2923
2950
  super(e), this.type = "root", this.nodes || (this.nodes = []);
2924
2951
  }
@@ -2935,29 +2962,29 @@ let Sr, Cr, Ar = An, Tr = class extends Ar {
2935
2962
  return !a && 0 === u && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[u].raws.before), super.removeChild(e);
2936
2963
  }
2937
2964
  toResult(e = {}) {
2938
- return new Sr(new Cr(), this, e).stringify();
2965
+ return new yr(new wr(), this, e).stringify();
2939
2966
  }
2940
2967
  };
2941
- Tr.registerLazyResult = (e) => {
2942
- Sr = e;
2943
- }, Tr.registerProcessor = (e) => {
2944
- Cr = e;
2968
+ Cr.registerLazyResult = (e) => {
2969
+ yr = e;
2970
+ }, Cr.registerProcessor = (e) => {
2971
+ wr = e;
2945
2972
  };
2946
- var Nr = Tr;
2947
- Tr.default = Tr, Ar.registerRoot(Tr);
2948
- let Pr = { comma: (e) => Pr.split(e, [","], true), space(e) {
2973
+ var Ar = Cr;
2974
+ Cr.default = Cr, Sr.registerRoot(Cr);
2975
+ let Tr = { comma: (e) => Tr.split(e, [","], true), space(e) {
2949
2976
  let a = [" ", "\n", " "];
2950
- return Pr.split(e, a);
2977
+ return Tr.split(e, a);
2951
2978
  }, split(e, a, u) {
2952
2979
  let m2 = [], w2 = "", b2 = false, C2 = 0, x2 = false, I2 = "", _2 = false;
2953
2980
  for (let u2 of e) _2 ? _2 = false : "\\" === u2 ? _2 = true : x2 ? u2 === I2 && (x2 = false) : '"' === u2 || "'" === u2 ? (x2 = true, I2 = u2) : "(" === u2 ? C2 += 1 : ")" === u2 ? C2 > 0 && (C2 -= 1) : 0 === C2 && a.includes(u2) && (b2 = true), b2 ? ("" !== w2 && m2.push(w2.trim()), w2 = "", b2 = false) : w2 += u2;
2954
2981
  return (u || "" !== w2) && m2.push(w2.trim()), m2;
2955
2982
  } };
2956
- var Dr = Pr;
2957
- Pr.default = Pr;
2958
- let Fr = An, Ur = Dr, Br = class extends Fr {
2983
+ var Nr = Tr;
2984
+ Tr.default = Tr;
2985
+ let Pr = Ln, Dr = Nr, Fr = class extends Pr {
2959
2986
  get selectors() {
2960
- return Ur.comma(this.selector);
2987
+ return Dr.comma(this.selector);
2961
2988
  }
2962
2989
  set selectors(e) {
2963
2990
  let a = this.selector ? this.selector.match(/,\s*/) : null, u = a ? a[0] : "," + this.raw("between", "beforeOpen");
@@ -2967,34 +2994,34 @@ let Fr = An, Ur = Dr, Br = class extends Fr {
2967
2994
  super(e), this.type = "rule", this.nodes || (this.nodes = []);
2968
2995
  }
2969
2996
  };
2970
- var $r = Br;
2971
- Br.default = Br, Fr.registerRule(Br);
2972
- let jr = Pn, Gr = fn, Vr = yn, qr = wr, Hr = rr, Zr = Nr, Kr = $r;
2997
+ var Ur = Fr;
2998
+ Fr.default = Fr, Pr.registerRule(Fr);
2999
+ let Br = Tn, $r = dn, jr = mn, Gr = gr, Vr = Qn, qr = Ar, Hr = Ur;
2973
3000
  function Ze(e, a) {
2974
3001
  if (Array.isArray(e)) return e.map((e2) => Ze(e2));
2975
3002
  let { inputs: u, ...m2 } = e;
2976
3003
  if (u) {
2977
3004
  a = [];
2978
3005
  for (let e2 of u) {
2979
- let u2 = { ...e2, __proto__: qr.prototype };
2980
- u2.map && (u2.map = { ...u2.map, __proto__: Hr.prototype }), a.push(u2);
3006
+ let u2 = { ...e2, __proto__: Gr.prototype };
3007
+ u2.map && (u2.map = { ...u2.map, __proto__: Vr.prototype }), a.push(u2);
2981
3008
  }
2982
3009
  }
2983
3010
  if (m2.nodes && (m2.nodes = e.nodes.map((e2) => Ze(e2, a))), m2.source) {
2984
3011
  let { inputId: e2, ...u2 } = m2.source;
2985
3012
  m2.source = u2, null != e2 && (m2.source.input = a[e2]);
2986
3013
  }
2987
- if ("root" === m2.type) return new Zr(m2);
2988
- if ("decl" === m2.type) return new Vr(m2);
2989
- if ("rule" === m2.type) return new Kr(m2);
2990
- if ("comment" === m2.type) return new Gr(m2);
2991
- if ("atrule" === m2.type) return new jr(m2);
3014
+ if ("root" === m2.type) return new qr(m2);
3015
+ if ("decl" === m2.type) return new jr(m2);
3016
+ if ("rule" === m2.type) return new Hr(m2);
3017
+ if ("comment" === m2.type) return new $r(m2);
3018
+ if ("atrule" === m2.type) return new Br(m2);
2992
3019
  throw new Error("Unknown node type: " + e.type);
2993
3020
  }
2994
- var Jr = Ze;
3021
+ var Zr = Ze;
2995
3022
  Ze.default = Ze;
2996
- let { dirname: Yr, relative: Xr, resolve: Qr, sep: eo } = jt, { SourceMapConsumer: to, SourceMapGenerator: oo } = jt, { pathToFileURL: io } = jt, ao = wr, lo = !(!to || !oo), co = !!(Yr && Qr && Xr && eo);
2997
- var uo = class {
3023
+ let { dirname: Kr, relative: Jr, resolve: Yr, sep: Xr } = Bt, { SourceMapConsumer: Qr, SourceMapGenerator: eo } = Bt, { pathToFileURL: to } = Bt, oo = gr, io = !(!Qr || !eo), ao = !!(Kr && Yr && Jr && Xr);
3024
+ var lo = class {
2998
3025
  constructor(e, a, u, m2) {
2999
3026
  this.stringify = e, this.mapOpts = u.map || {}, this.root = a, this.opts = u, this.css = m2, this.originalCSS = m2, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
3000
3027
  }
@@ -3006,8 +3033,8 @@ var uo = class {
3006
3033
  }
3007
3034
  applyPrevMaps() {
3008
3035
  for (let e of this.previous()) {
3009
- let a, u = this.toUrl(this.path(e.file)), m2 = e.root || Yr(e.file);
3010
- false === this.mapOpts.sourcesContent ? (a = new to(e.text), a.sourcesContent && (a.sourcesContent = null)) : a = e.consumer(), this.map.applySourceMap(a, u, this.toUrl(this.path(m2)));
3036
+ let a, u = this.toUrl(this.path(e.file)), m2 = e.root || Kr(e.file);
3037
+ false === this.mapOpts.sourcesContent ? (a = new Qr(e.text), a.sourcesContent && (a.sourcesContent = null)) : a = e.consumer(), this.map.applySourceMap(a, u, this.toUrl(this.path(m2)));
3011
3038
  }
3012
3039
  }
3013
3040
  clearAnnotation() {
@@ -3017,7 +3044,7 @@ var uo = class {
3017
3044
  } else this.css && (this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, ""));
3018
3045
  }
3019
3046
  generate() {
3020
- if (this.clearAnnotation(), co && lo && this.isMap()) return this.generateMap();
3047
+ if (this.clearAnnotation(), ao && io && this.isMap()) return this.generateMap();
3021
3048
  {
3022
3049
  let e = "";
3023
3050
  return this.stringify(this.root, (a) => {
@@ -3029,12 +3056,12 @@ var uo = class {
3029
3056
  if (this.root) this.generateString();
3030
3057
  else if (1 === this.previous().length) {
3031
3058
  let e = this.previous()[0].consumer();
3032
- e.file = this.outputFile(), this.map = oo.fromSourceMap(e, { ignoreInvalidMapping: true });
3033
- } else this.map = new oo({ file: this.outputFile(), ignoreInvalidMapping: true }), this.map.addMapping({ generated: { column: 0, line: 1 }, original: { column: 0, line: 1 }, source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>" });
3059
+ e.file = this.outputFile(), this.map = eo.fromSourceMap(e, { ignoreInvalidMapping: true });
3060
+ } else this.map = new eo({ file: this.outputFile(), ignoreInvalidMapping: true }), this.map.addMapping({ generated: { column: 0, line: 1 }, original: { column: 0, line: 1 }, source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>" });
3034
3061
  return this.isSourcesContent() && this.setSourcesContent(), this.root && this.previous().length > 0 && this.applyPrevMaps(), this.isAnnotation() && this.addAnnotation(), this.isInline() ? [this.css] : [this.css, this.map];
3035
3062
  }
3036
3063
  generateString() {
3037
- this.css = "", this.map = new oo({ file: this.outputFile(), ignoreInvalidMapping: true });
3064
+ this.css = "", this.map = new eo({ file: this.outputFile(), ignoreInvalidMapping: true });
3038
3065
  let e, a, u = 1, m2 = 1, w2 = "<no source>", b2 = { generated: { column: 0, line: 0 }, original: { column: 0, line: 0 }, source: "" };
3039
3066
  this.stringify(this.root, (C2, x2, I2) => {
3040
3067
  if (this.css += C2, x2 && "end" !== I2 && (b2.generated.line = u, b2.generated.column = m2 - 1, x2.source && x2.source.start ? (b2.source = this.sourcePath(x2), b2.original.line = x2.source.start.line, b2.original.column = x2.source.start.column - 1, this.map.addMapping(b2)) : (b2.source = w2, b2.original.line = 1, b2.original.column = 0, this.map.addMapping(b2))), a = C2.match(/\n/g), a ? (u += a.length, e = C2.lastIndexOf("\n"), m2 = C2.length - e) : m2 += C2.length, x2 && "start" !== I2) {
@@ -3064,9 +3091,9 @@ var uo = class {
3064
3091
  if (this.mapOpts.absolute || 60 === e.charCodeAt(0) || /^\w+:\/\//.test(e)) return e;
3065
3092
  let a = this.memoizedPaths.get(e);
3066
3093
  if (a) return a;
3067
- let u = this.opts.to ? Yr(this.opts.to) : ".";
3068
- "string" == typeof this.mapOpts.annotation && (u = Yr(Qr(u, this.mapOpts.annotation)));
3069
- let m2 = Xr(u, e);
3094
+ let u = this.opts.to ? Kr(this.opts.to) : ".";
3095
+ "string" == typeof this.mapOpts.annotation && (u = Kr(Yr(u, this.mapOpts.annotation)));
3096
+ let m2 = Jr(u, e);
3070
3097
  return this.memoizedPaths.set(e, m2), m2;
3071
3098
  }
3072
3099
  previous() {
@@ -3077,7 +3104,7 @@ var uo = class {
3077
3104
  }
3078
3105
  });
3079
3106
  else {
3080
- let e = new ao(this.originalCSS, this.opts);
3107
+ let e = new oo(this.originalCSS, this.opts);
3081
3108
  e.map && this.previousMaps.push(e.map);
3082
3109
  }
3083
3110
  return this.previousMaps;
@@ -3108,8 +3135,8 @@ var uo = class {
3108
3135
  toFileUrl(e) {
3109
3136
  let a = this.memoizedFileURLs.get(e);
3110
3137
  if (a) return a;
3111
- if (io) {
3112
- let a2 = io(e).toString();
3138
+ if (to) {
3139
+ let a2 = to(e).toString();
3113
3140
  return this.memoizedFileURLs.set(e, a2), a2;
3114
3141
  }
3115
3142
  throw new Error("`map.absolute` option is not available in this PostCSS build");
@@ -3117,13 +3144,13 @@ var uo = class {
3117
3144
  toUrl(e) {
3118
3145
  let a = this.memoizedURLs.get(e);
3119
3146
  if (a) return a;
3120
- "\\" === eo && (e = e.replace(/\\/g, "/"));
3147
+ "\\" === Xr && (e = e.replace(/\\/g, "/"));
3121
3148
  let u = encodeURI(e).replace(/[#?]/g, encodeURIComponent);
3122
3149
  return this.memoizedURLs.set(e, u), u;
3123
3150
  }
3124
3151
  };
3125
- const ho = /[\t\n\f\r "#'()/;[\\\]{}]/g, Mo = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, _o = /.[\r\n"'(/\\]/, Ao = /[\da-f]/i;
3126
- let No = Pn, Po = fn, Do = yn, Fo = Nr, Uo = $r, Xa = function(e, a = {}) {
3152
+ const co = /[\t\n\f\r "#'()/;[\\\]{}]/g, uo = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, ho = /.[\r\n"'(/\\]/, Mo = /[\da-f]/i;
3153
+ let _o = Tn, Ao = dn, No = mn, Po = Ar, Do = Ur, Xa = function(e, a = {}) {
3127
3154
  let u, m2, w2, b2, C2, x2, I2, _2, O2, E2, D2 = e.css.valueOf(), F2 = a.ignoreErrors, U2 = D2.length, B2 = 0, $2 = [], z2 = [];
3128
3155
  function y2(a2) {
3129
3156
  throw e.error("Unclosed " + a2, B2);
@@ -3173,7 +3200,7 @@ let No = Pn, Po = fn, Do = yn, Fo = Nr, Uo = $r, Xa = function(e, a = {}) {
3173
3200
  for (_2 = b2; 92 === D2.charCodeAt(_2 - 1); ) _2 -= 1, I2 = !I2;
3174
3201
  } while (I2);
3175
3202
  x2 = ["brackets", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3176
- } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || _o.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
3203
+ } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || ho.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
3177
3204
  break;
3178
3205
  case 39:
3179
3206
  case 34:
@@ -3191,31 +3218,31 @@ let No = Pn, Po = fn, Do = yn, Fo = Nr, Uo = $r, Xa = function(e, a = {}) {
3191
3218
  x2 = ["string", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3192
3219
  break;
3193
3220
  case 64:
3194
- ho.lastIndex = B2 + 1, ho.test(D2), b2 = 0 === ho.lastIndex ? D2.length - 1 : ho.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3221
+ co.lastIndex = B2 + 1, co.test(D2), b2 = 0 === co.lastIndex ? D2.length - 1 : co.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3195
3222
  break;
3196
3223
  case 92:
3197
3224
  for (b2 = B2, w2 = true; 92 === D2.charCodeAt(b2 + 1); ) b2 += 1, w2 = !w2;
3198
- if (u = D2.charCodeAt(b2 + 1), w2 && 47 !== u && 32 !== u && 10 !== u && 9 !== u && 13 !== u && 12 !== u && (b2 += 1, Ao.test(D2.charAt(b2)))) {
3199
- for (; Ao.test(D2.charAt(b2 + 1)); ) b2 += 1;
3225
+ if (u = D2.charCodeAt(b2 + 1), w2 && 47 !== u && 32 !== u && 10 !== u && 9 !== u && 13 !== u && 12 !== u && (b2 += 1, Mo.test(D2.charAt(b2)))) {
3226
+ for (; Mo.test(D2.charAt(b2 + 1)); ) b2 += 1;
3200
3227
  32 === D2.charCodeAt(b2 + 1) && (b2 += 1);
3201
3228
  }
3202
3229
  x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3203
3230
  break;
3204
3231
  default:
3205
- 47 === u && 42 === D2.charCodeAt(B2 + 1) ? (b2 = D2.indexOf("*/", B2 + 2) + 1, 0 === b2 && (F2 || a2 ? b2 = D2.length : y2("comment")), x2 = ["comment", D2.slice(B2, b2 + 1), B2, b2], B2 = b2) : (Mo.lastIndex = B2 + 1, Mo.test(D2), b2 = 0 === Mo.lastIndex ? D2.length - 1 : Mo.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
3232
+ 47 === u && 42 === D2.charCodeAt(B2 + 1) ? (b2 = D2.indexOf("*/", B2 + 2) + 1, 0 === b2 && (F2 || a2 ? b2 = D2.length : y2("comment")), x2 = ["comment", D2.slice(B2, b2 + 1), B2, b2], B2 = b2) : (uo.lastIndex = B2 + 1, uo.test(D2), b2 = 0 === uo.lastIndex ? D2.length - 1 : uo.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
3206
3233
  }
3207
3234
  return B2++, x2;
3208
3235
  }, position: function S() {
3209
3236
  return B2;
3210
3237
  } };
3211
3238
  };
3212
- const $o = { empty: true, space: true };
3213
- var jo = class {
3239
+ const Fo = { empty: true, space: true };
3240
+ var Uo = class {
3214
3241
  constructor(e) {
3215
- this.input = e, this.root = new Fo(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
3242
+ this.input = e, this.root = new Po(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
3216
3243
  }
3217
3244
  atrule(e) {
3218
- let a = new No();
3245
+ let a = new _o();
3219
3246
  a.name = e[1].slice(1), "" === a.name && this.unnamedAtrule(a, e), this.init(a, e[2]);
3220
3247
  let u, m2, w2, b2 = false, C2 = false, x2 = [], I2 = [];
3221
3248
  for (; !this.tokenizer.endOfFile(); ) {
@@ -3267,7 +3294,7 @@ var jo = class {
3267
3294
  return false;
3268
3295
  }
3269
3296
  comment(e) {
3270
- let a = new Po();
3297
+ let a = new Ao();
3271
3298
  this.init(a, e[2]), a.source.end = this.getPosition(e[3] || e[2]), a.source.end.offset++;
3272
3299
  let u = e[1].slice(2, -2);
3273
3300
  if (/^\s*$/.test(u)) a.text = "", a.raws.left = u, a.raws.right = "";
@@ -3280,7 +3307,7 @@ var jo = class {
3280
3307
  this.tokenizer = Xa(this.input);
3281
3308
  }
3282
3309
  decl(e, a) {
3283
- let u = new Do();
3310
+ let u = new No();
3284
3311
  this.init(u, e[0][2]);
3285
3312
  let m2, w2 = e[e.length - 1];
3286
3313
  for (";" === w2[0] && (this.semicolon = true, e.pop()), u.source.end = this.getPosition(w2[3] || w2[2] || (function Ha(e2) {
@@ -3329,7 +3356,7 @@ var jo = class {
3329
3356
  throw this.input.error("Double colon", { offset: e[2] }, { offset: e[2] + e[1].length });
3330
3357
  }
3331
3358
  emptyRule(e) {
3332
- let a = new Uo();
3359
+ let a = new Do();
3333
3360
  this.init(a, e[2]), a.selector = "", a.raws.between = "", this.current = a;
3334
3361
  }
3335
3362
  end(e) {
@@ -3405,7 +3432,7 @@ var jo = class {
3405
3432
  }
3406
3433
  raw(e, a, u, m2) {
3407
3434
  let w2, b2, C2, x2, I2 = u.length, _2 = "", O2 = true;
3408
- for (let e2 = 0; e2 < I2; e2 += 1) w2 = u[e2], b2 = w2[0], "space" !== b2 || e2 !== I2 - 1 || m2 ? "comment" === b2 ? (x2 = u[e2 - 1] ? u[e2 - 1][0] : "empty", C2 = u[e2 + 1] ? u[e2 + 1][0] : "empty", $o[x2] || $o[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
3435
+ for (let e2 = 0; e2 < I2; e2 += 1) w2 = u[e2], b2 = w2[0], "space" !== b2 || e2 !== I2 - 1 || m2 ? "comment" === b2 ? (x2 = u[e2 - 1] ? u[e2 - 1][0] : "empty", C2 = u[e2 + 1] ? u[e2 + 1][0] : "empty", Fo[x2] || Fo[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
3409
3436
  if (!O2) {
3410
3437
  let m3 = u.reduce((e2, a2) => e2 + a2[1], "");
3411
3438
  e.raws[a] = { raw: m3, value: _2 };
@@ -3414,7 +3441,7 @@ var jo = class {
3414
3441
  }
3415
3442
  rule(e) {
3416
3443
  e.pop();
3417
- let a = new Uo();
3444
+ let a = new Do();
3418
3445
  this.init(a, e[0][2]), a.raws.between = this.spacesAndCommentsFromEnd(e), this.raw(a, "selector", e), this.current = a;
3419
3446
  }
3420
3447
  spacesAndCommentsFromEnd(e) {
@@ -3454,9 +3481,9 @@ var jo = class {
3454
3481
  throw this.input.error("At-rule without name", { offset: a[2] }, { offset: a[2] + a[1].length });
3455
3482
  }
3456
3483
  };
3457
- let Go = An, Vo = wr, qo = jo;
3484
+ let $o = Ln, jo = gr, Go = Uo;
3458
3485
  function _t(e, a) {
3459
- let u = new Vo(e, a), m2 = new qo(u);
3486
+ let u = new jo(e, a), m2 = new Go(u);
3460
3487
  try {
3461
3488
  m2.parse();
3462
3489
  } catch (e2) {
@@ -3464,9 +3491,9 @@ function _t(e, a) {
3464
3491
  }
3465
3492
  return m2.root;
3466
3493
  }
3467
- var Ho = _t;
3468
- _t.default = _t, Go.registerParse(_t);
3469
- let Zo = class {
3494
+ var Vo = _t;
3495
+ _t.default = _t, $o.registerParse(_t);
3496
+ let qo = class {
3470
3497
  constructor(e, a = {}) {
3471
3498
  if (this.type = "warning", this.text = e, a.node && a.node.source) {
3472
3499
  let e2 = a.node.rangeBy(a);
@@ -3478,9 +3505,9 @@ let Zo = class {
3478
3505
  return this.node ? this.node.error(this.text, { index: this.index, plugin: this.plugin, word: this.word }).message : this.plugin ? this.plugin + ": " + this.text : this.text;
3479
3506
  }
3480
3507
  };
3481
- var Ko = Zo;
3482
- Zo.default = Zo;
3483
- let Jo = Ko, Yo = class {
3508
+ var Ho = qo;
3509
+ qo.default = qo;
3510
+ let Zo = Ho, Ko = class {
3484
3511
  get content() {
3485
3512
  return this.css;
3486
3513
  }
@@ -3492,26 +3519,26 @@ let Jo = Ko, Yo = class {
3492
3519
  }
3493
3520
  warn(e, a = {}) {
3494
3521
  a.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (a.plugin = this.lastPlugin.postcssPlugin);
3495
- let u = new Jo(e, a);
3522
+ let u = new Zo(e, a);
3496
3523
  return this.messages.push(u), u;
3497
3524
  }
3498
3525
  warnings() {
3499
3526
  return this.messages.filter((e) => "warning" === e.type);
3500
3527
  }
3501
3528
  };
3502
- var Xo = Yo;
3503
- Yo.default = Yo;
3504
- let Qo = {};
3529
+ var Jo = Ko;
3530
+ Ko.default = Ko;
3531
+ let Yo = {};
3505
3532
  var so = function(e) {
3506
- Qo[e] || (Qo[e] = true, typeof console < "u" && console.warn && console.warn(e));
3533
+ Yo[e] || (Yo[e] = true, typeof console < "u" && console.warn && console.warn(e));
3507
3534
  };
3508
- let es = An, ts = Wn, ns = uo, rs = Ho, os = Xo, ss = Nr, is = nn, { isClean: as, my: ls } = rn, cs = so;
3509
- const us = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, ps = { AtRule: true, AtRuleExit: true, Comment: true, CommentExit: true, Declaration: true, DeclarationExit: true, Document: true, DocumentExit: true, Once: true, OnceExit: true, postcssPlugin: true, prepare: true, Root: true, RootExit: true, Rule: true, RuleExit: true }, ds = { Once: true, postcssPlugin: true, prepare: true };
3535
+ let Xo = Ln, Qo = Un, es = lo, ts = Vo, ns = Jo, rs = Ar, os = en, { isClean: ss, my: is } = tn, as = so;
3536
+ const ls = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, cs = { AtRule: true, AtRuleExit: true, Comment: true, CommentExit: true, Declaration: true, DeclarationExit: true, Document: true, DocumentExit: true, Once: true, OnceExit: true, postcssPlugin: true, prepare: true, Root: true, RootExit: true, Rule: true, RuleExit: true }, us = { Once: true, postcssPlugin: true, prepare: true };
3510
3537
  function Ne(e) {
3511
3538
  return "object" == typeof e && "function" == typeof e.then;
3512
3539
  }
3513
3540
  function no(e) {
3514
- let a = false, u = us[e.type];
3541
+ let a = false, u = ls[e.type];
3515
3542
  return "decl" === e.type ? a = e.prop.toLowerCase() : "atrule" === e.type && (a = e.name.toLowerCase()), a && e.append ? [u, u + "-" + a, 0, u + "Exit", u + "Exit-" + a] : a ? [u, u + "-" + a, u + "Exit", u + "Exit-" + a] : e.append ? [u, 0, u + "Exit"] : [u, u + "Exit"];
3516
3543
  }
3517
3544
  function Gn(e) {
@@ -3519,9 +3546,9 @@ function Gn(e) {
3519
3546
  return a = "document" === e.type ? ["Document", 0, "DocumentExit"] : "root" === e.type ? ["Root", 0, "RootExit"] : no(e), { eventIndex: 0, events: a, iterator: 0, node: e, visitorIndex: 0, visitors: [] };
3520
3547
  }
3521
3548
  function Ps(e) {
3522
- return e[as] = false, e.nodes && e.nodes.forEach((e2) => Ps(e2)), e;
3549
+ return e[ss] = false, e.nodes && e.nodes.forEach((e2) => Ps(e2)), e;
3523
3550
  }
3524
- let hs = {}, ms = class ro {
3551
+ let ps = {}, ds = class ro {
3525
3552
  get content() {
3526
3553
  return this.stringify().content;
3527
3554
  }
@@ -3548,19 +3575,19 @@ let hs = {}, ms = class ro {
3548
3575
  }
3549
3576
  constructor(e, a, u) {
3550
3577
  let m2;
3551
- if (this.stringified = false, this.processed = false, "object" != typeof a || null === a || "root" !== a.type && "document" !== a.type) if (a instanceof ro || a instanceof os) m2 = Ps(a.root), a.map && (typeof u.map > "u" && (u.map = {}), u.map.inline || (u.map.inline = false), u.map.prev = a.map);
3578
+ if (this.stringified = false, this.processed = false, "object" != typeof a || null === a || "root" !== a.type && "document" !== a.type) if (a instanceof ro || a instanceof ns) m2 = Ps(a.root), a.map && (typeof u.map > "u" && (u.map = {}), u.map.inline || (u.map.inline = false), u.map.prev = a.map);
3552
3579
  else {
3553
- let e2 = rs;
3580
+ let e2 = ts;
3554
3581
  u.syntax && (e2 = u.syntax.parse), u.parser && (e2 = u.parser), e2.parse && (e2 = e2.parse);
3555
3582
  try {
3556
3583
  m2 = e2(a, u);
3557
3584
  } catch (e3) {
3558
3585
  this.processed = true, this.error = e3;
3559
3586
  }
3560
- m2 && !m2[ls] && es.rebuild(m2);
3587
+ m2 && !m2[is] && Xo.rebuild(m2);
3561
3588
  }
3562
3589
  else m2 = Ps(a);
3563
- this.result = new os(e, m2, u), this.helpers = { ...hs, postcss: hs, result: this.result }, this.plugins = this.processor.plugins.map((e2) => "object" == typeof e2 && e2.prepare ? { ...e2, ...e2.prepare(this.result) } : e2);
3590
+ this.result = new ns(e, m2, u), this.helpers = { ...ps, postcss: ps, result: this.result }, this.plugins = this.processor.plugins.map((e2) => "object" == typeof e2 && e2.prepare ? { ...e2, ...e2.prepare(this.result) } : e2);
3564
3591
  }
3565
3592
  async() {
3566
3593
  return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
@@ -3594,8 +3621,8 @@ let hs = {}, ms = class ro {
3594
3621
  this.listeners[a] || (this.listeners[a] = []), this.listeners[a].push([e, u]);
3595
3622
  };
3596
3623
  for (let e of this.plugins) if ("object" == typeof e) for (let a in e) {
3597
- if (!ps[a] && /^[A-Z]/.test(a)) throw new Error(`Unknown event ${a} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
3598
- if (!ds[a]) if ("object" == typeof e[a]) for (let u in e[a]) t(e, "*" === u ? a : a + "-" + u.toLowerCase(), e[a][u]);
3624
+ if (!cs[a] && /^[A-Z]/.test(a)) throw new Error(`Unknown event ${a} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
3625
+ if (!us[a]) if ("object" == typeof e[a]) for (let u in e[a]) t(e, "*" === u ? a : a + "-" + u.toLowerCase(), e[a][u]);
3599
3626
  else "function" == typeof e[a] && t(e, a, e[a]);
3600
3627
  }
3601
3628
  this.hasListener = Object.keys(this.listeners).length > 0;
@@ -3612,8 +3639,8 @@ let hs = {}, ms = class ro {
3612
3639
  }
3613
3640
  if (this.prepareVisitors(), this.hasListener) {
3614
3641
  let e = this.result.root;
3615
- for (; !e[as]; ) {
3616
- e[as] = true;
3642
+ for (; !e[ss]; ) {
3643
+ e[ss] = true;
3617
3644
  let a = [Gn(e)];
3618
3645
  for (; a.length > 0; ) {
3619
3646
  let e2 = this.visitTick(a);
@@ -3658,9 +3685,9 @@ let hs = {}, ms = class ro {
3658
3685
  if (this.error) throw this.error;
3659
3686
  if (this.stringified) return this.result;
3660
3687
  this.stringified = true, this.sync();
3661
- let e = this.result.opts, a = is;
3688
+ let e = this.result.opts, a = os;
3662
3689
  e.syntax && (a = e.syntax.stringify), e.stringifier && (a = e.stringifier), a.stringify && (a = a.stringify);
3663
- let u = new ns(a, this.result.root, this.result.opts).generate();
3690
+ let u = new es(a, this.result.root, this.result.opts).generate();
3664
3691
  return this.result.css = u[0], this.result.map = u[1], this.result;
3665
3692
  }
3666
3693
  sync() {
@@ -3672,14 +3699,14 @@ let hs = {}, ms = class ro {
3672
3699
  }
3673
3700
  if (this.prepareVisitors(), this.hasListener) {
3674
3701
  let e = this.result.root;
3675
- for (; !e[as]; ) e[as] = true, this.walkSync(e);
3702
+ for (; !e[ss]; ) e[ss] = true, this.walkSync(e);
3676
3703
  if (this.listeners.OnceExit) if ("document" === e.type) for (let a of e.nodes) this.visitSync(this.listeners.OnceExit, a);
3677
3704
  else this.visitSync(this.listeners.OnceExit, e);
3678
3705
  }
3679
3706
  return this.result;
3680
3707
  }
3681
3708
  then(e, a) {
3682
- return "production" !== process.env.NODE_ENV && ("from" in this.opts || cs("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
3709
+ return "production" !== process.env.NODE_ENV && ("from" in this.opts || as("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
3683
3710
  }
3684
3711
  toString() {
3685
3712
  return this.css;
@@ -3711,22 +3738,22 @@ let hs = {}, ms = class ro {
3711
3738
  }
3712
3739
  if (0 !== a.iterator) {
3713
3740
  let m3, w3 = a.iterator;
3714
- for (; m3 = u.nodes[u.indexes[w3]]; ) if (u.indexes[w3] += 1, !m3[as]) return m3[as] = true, void e.push(Gn(m3));
3741
+ for (; m3 = u.nodes[u.indexes[w3]]; ) if (u.indexes[w3] += 1, !m3[ss]) return m3[ss] = true, void e.push(Gn(m3));
3715
3742
  a.iterator = 0, delete u.indexes[w3];
3716
3743
  }
3717
3744
  let w2 = a.events;
3718
3745
  for (; a.eventIndex < w2.length; ) {
3719
3746
  let e2 = w2[a.eventIndex];
3720
- if (a.eventIndex += 1, 0 === e2) return void (u.nodes && u.nodes.length && (u[as] = true, a.iterator = u.getIterator()));
3747
+ if (a.eventIndex += 1, 0 === e2) return void (u.nodes && u.nodes.length && (u[ss] = true, a.iterator = u.getIterator()));
3721
3748
  if (this.listeners[e2]) return void (a.visitors = this.listeners[e2]);
3722
3749
  }
3723
3750
  e.pop();
3724
3751
  }
3725
3752
  walkSync(e) {
3726
- e[as] = true;
3753
+ e[ss] = true;
3727
3754
  let a = no(e);
3728
3755
  for (let u of a) if (0 === u) e.nodes && e.each((e2) => {
3729
- e2[as] || this.walkSync(e2);
3756
+ e2[ss] || this.walkSync(e2);
3730
3757
  });
3731
3758
  else {
3732
3759
  let a2 = this.listeners[u];
@@ -3737,14 +3764,14 @@ let hs = {}, ms = class ro {
3737
3764
  return this.sync().warnings();
3738
3765
  }
3739
3766
  };
3740
- ms.registerPostcss = (e) => {
3741
- hs = e;
3767
+ ds.registerPostcss = (e) => {
3768
+ ps = e;
3742
3769
  };
3743
- var gs = ms;
3744
- ms.default = ms, ss.registerLazyResult(ms), ts.registerLazyResult(ms);
3745
- let ys = uo, ws = Ho;
3746
- const Ss = Xo;
3747
- let bs = nn, vs = so, xs = class {
3770
+ var hs = ds;
3771
+ ds.default = ds, rs.registerLazyResult(ds), Qo.registerLazyResult(ds);
3772
+ let ms = lo, gs = Vo;
3773
+ const ys = Jo;
3774
+ let ws = en, Ss = so, bs = class {
3748
3775
  get content() {
3749
3776
  return this.result.css;
3750
3777
  }
@@ -3765,7 +3792,7 @@ let bs = nn, vs = so, xs = class {
3765
3792
  }
3766
3793
  get root() {
3767
3794
  if (this._root) return this._root;
3768
- let e, a = ws;
3795
+ let e, a = gs;
3769
3796
  try {
3770
3797
  e = a(this._css, this._opts);
3771
3798
  } catch (e2) {
@@ -3779,11 +3806,11 @@ let bs = nn, vs = so, xs = class {
3779
3806
  }
3780
3807
  constructor(e, a, u) {
3781
3808
  a = a.toString(), this.stringified = false, this._processor = e, this._css = a, this._opts = u, this._map = void 0;
3782
- let m2, w2 = bs;
3783
- this.result = new Ss(this._processor, m2, this._opts), this.result.css = a;
3809
+ let m2, w2 = ws;
3810
+ this.result = new ys(this._processor, m2, this._opts), this.result.css = a;
3784
3811
  let b2 = this;
3785
3812
  Object.defineProperty(this.result, "root", { get: () => b2.root });
3786
- let C2 = new ys(w2, m2, this._opts, a);
3813
+ let C2 = new ms(w2, m2, this._opts, a);
3787
3814
  if (C2.isMap()) {
3788
3815
  let [e2, a2] = C2.generate();
3789
3816
  e2 && (this.result.css = e2), a2 && (this.result.map = a2);
@@ -3803,7 +3830,7 @@ let bs = nn, vs = so, xs = class {
3803
3830
  return this.result;
3804
3831
  }
3805
3832
  then(e, a) {
3806
- return "production" !== process.env.NODE_ENV && ("from" in this._opts || vs("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
3833
+ return "production" !== process.env.NODE_ENV && ("from" in this._opts || Ss("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
3807
3834
  }
3808
3835
  toString() {
3809
3836
  return this._css;
@@ -3812,9 +3839,9 @@ let bs = nn, vs = so, xs = class {
3812
3839
  return [];
3813
3840
  }
3814
3841
  };
3815
- var Ms = xs;
3816
- xs.default = xs;
3817
- let Is = Wn, _s = gs, Os = Ms, Es = Nr, Ls = class {
3842
+ var vs = bs;
3843
+ bs.default = bs;
3844
+ let xs = Un, Ms = hs, Is = vs, _s = Ar, Os = class {
3818
3845
  constructor(e = []) {
3819
3846
  this.version = "8.5.3", this.plugins = this.normalize(e);
3820
3847
  }
@@ -3830,43 +3857,43 @@ let Is = Wn, _s = gs, Os = Ms, Es = Nr, Ls = class {
3830
3857
  return a;
3831
3858
  }
3832
3859
  process(e, a = {}) {
3833
- return this.plugins.length || a.parser || a.stringifier || a.syntax ? new _s(this, e, a) : new Os(this, e, a);
3860
+ return this.plugins.length || a.parser || a.stringifier || a.syntax ? new Ms(this, e, a) : new Is(this, e, a);
3834
3861
  }
3835
3862
  use(e) {
3836
3863
  return this.plugins = this.plugins.concat(this.normalize([e])), this;
3837
3864
  }
3838
3865
  };
3839
- var Rs = Ls;
3840
- Ls.default = Ls, Es.registerProcessor(Ls), Is.registerProcessor(Ls);
3841
- let As = Pn, Ts = fn, Ns = An, $s = Jt, Ws = yn, js = Wn, Gs = Jr, Vs = wr, qs = gs, Hs = Dr, Zs = pn, Ks = Ho, Ys = Rs, Xs = Xo, Qs = Nr, ei = $r, ti = nn, si = Ko;
3866
+ var Es = Os;
3867
+ Os.default = Os, _s.registerProcessor(Os), xs.registerProcessor(Os);
3868
+ let Ls = Tn, Rs = dn, As = Ln, Ts = Ht, Ns = mn, $s = Un, Ws = Zr, js = gr, Gs = hs, Vs = Nr, qs = cn, Hs = Vo, Zs = Es, Ks = Jo, Ys = Ar, Xs = Ur, Qs = en, ei = Ho;
3842
3869
  function L$1(...e) {
3843
- return 1 === e.length && Array.isArray(e[0]) && (e = e[0]), new Ys(e);
3870
+ return 1 === e.length && Array.isArray(e[0]) && (e = e[0]), new Zs(e);
3844
3871
  }
3845
3872
  L$1.plugin = function(e, a) {
3846
3873
  let u, m2 = false;
3847
3874
  function n(...u2) {
3848
3875
  console && console.warn && !m2 && (m2 = true, console.warn(e + ": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"), process.env.LANG && process.env.LANG.startsWith("cn") && console.warn(e + ": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));
3849
3876
  let w2 = a(...u2);
3850
- return w2.postcssPlugin = e, w2.postcssVersion = new Ys().version, w2;
3877
+ return w2.postcssPlugin = e, w2.postcssVersion = new Zs().version, w2;
3851
3878
  }
3852
3879
  return Object.defineProperty(n, "postcss", { get: () => (u || (u = n()), u) }), n.process = function(e2, a2, u2) {
3853
3880
  return L$1([n(u2)]).process(e2, a2);
3854
3881
  }, n;
3855
- }, L$1.stringify = ti, L$1.parse = Ks, L$1.fromJSON = Gs, L$1.list = Hs, L$1.comment = (e) => new Ts(e), L$1.atRule = (e) => new As(e), L$1.decl = (e) => new Ws(e), L$1.rule = (e) => new ei(e), L$1.root = (e) => new Qs(e), L$1.document = (e) => new js(e), L$1.CssSyntaxError = $s, L$1.Declaration = Ws, L$1.Container = Ns, L$1.Processor = Ys, L$1.Document = js, L$1.Comment = Ts, L$1.Warning = si, L$1.AtRule = As, L$1.Result = Xs, L$1.Input = Vs, L$1.Rule = ei, L$1.Root = Qs, L$1.Node = Zs, qs.registerPostcss(L$1);
3856
- var ii = L$1;
3882
+ }, L$1.stringify = Qs, L$1.parse = Hs, L$1.fromJSON = Ws, L$1.list = Vs, L$1.comment = (e) => new Rs(e), L$1.atRule = (e) => new Ls(e), L$1.decl = (e) => new Ns(e), L$1.rule = (e) => new Xs(e), L$1.root = (e) => new Ys(e), L$1.document = (e) => new $s(e), L$1.CssSyntaxError = Ts, L$1.Declaration = Ns, L$1.Container = As, L$1.Processor = Zs, L$1.Document = $s, L$1.Comment = Rs, L$1.Warning = ei, L$1.AtRule = Ls, L$1.Result = Ks, L$1.Input = js, L$1.Rule = Xs, L$1.Root = Ys, L$1.Node = qs, Gs.registerPostcss(L$1);
3883
+ var ti = L$1;
3857
3884
  L$1.default = L$1;
3858
- const ai = Yi(ii);
3859
- ai.stringify, ai.fromJSON, ai.plugin, ai.parse, ai.list, ai.document, ai.comment, ai.atRule, ai.rule, ai.decl, ai.root, ai.CssSyntaxError, ai.Declaration, ai.Container, ai.Processor, ai.Document, ai.Comment, ai.Warning, ai.AtRule, ai.Result, ai.Input, ai.Rule, ai.Root, ai.Node;
3860
- var li = ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e[e.Device = 24] = "Device", e[e.SailfishCustom = 25] = "SailfishCustom", e))(li || {}), ci = ((e) => (e[e.Mutation = 0] = "Mutation", e[e.MouseMove = 1] = "MouseMove", e[e.MouseInteraction = 2] = "MouseInteraction", e[e.Scroll = 3] = "Scroll", e[e.ViewportResize = 4] = "ViewportResize", e[e.Input = 5] = "Input", e[e.TouchMove = 6] = "TouchMove", e[e.MediaInteraction = 7] = "MediaInteraction", e[e.StyleSheetRule = 8] = "StyleSheetRule", e[e.CanvasMutation = 9] = "CanvasMutation", e[e.Font = 10] = "Font", e[e.Log = 11] = "Log", e[e.Drag = 12] = "Drag", e[e.StyleDeclaration = 13] = "StyleDeclaration", e[e.Selection = 14] = "Selection", e[e.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e[e.CustomElement = 16] = "CustomElement", e[e.Typing = 17] = "Typing", e))(ci || {}), ui = ((e) => (e[e.MouseUp = 0] = "MouseUp", e[e.MouseDown = 1] = "MouseDown", e[e.Click = 2] = "Click", e[e.ContextMenu = 3] = "ContextMenu", e[e.DblClick = 4] = "DblClick", e[e.Focus = 5] = "Focus", e[e.Blur = 6] = "Blur", e[e.TouchStart = 7] = "TouchStart", e[e.TouchMove_Departed = 8] = "TouchMove_Departed", e[e.TouchEnd = 9] = "TouchEnd", e[e.TouchCancel = 10] = "TouchCancel", e))(ui || {}), pi = ((e) => (e[e.Mouse = 0] = "Mouse", e[e.Pen = 1] = "Pen", e[e.Touch = 2] = "Touch", e))(pi || {}), di = ((e) => (e[e["2D"] = 0] = "2D", e[e.WebGL = 1] = "WebGL", e[e.WebGL2 = 2] = "WebGL2", e))(di || {}), hi = ((e) => (e[e.Play = 0] = "Play", e[e.Pause = 1] = "Pause", e[e.Seeked = 2] = "Seeked", e[e.VolumeChange = 3] = "VolumeChange", e[e.RateChange = 4] = "RateChange", e))(hi || {});
3885
+ const si = Yi(ti);
3886
+ si.stringify, si.fromJSON, si.plugin, si.parse, si.list, si.document, si.comment, si.atRule, si.rule, si.decl, si.root, si.CssSyntaxError, si.Declaration, si.Container, si.Processor, si.Document, si.Comment, si.Warning, si.AtRule, si.Result, si.Input, si.Rule, si.Root, si.Node;
3887
+ var ii = ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e[e.Device = 24] = "Device", e[e.SailfishCustom = 25] = "SailfishCustom", e))(ii || {}), ai = ((e) => (e[e.Mutation = 0] = "Mutation", e[e.MouseMove = 1] = "MouseMove", e[e.MouseInteraction = 2] = "MouseInteraction", e[e.Scroll = 3] = "Scroll", e[e.ViewportResize = 4] = "ViewportResize", e[e.Input = 5] = "Input", e[e.TouchMove = 6] = "TouchMove", e[e.MediaInteraction = 7] = "MediaInteraction", e[e.StyleSheetRule = 8] = "StyleSheetRule", e[e.CanvasMutation = 9] = "CanvasMutation", e[e.Font = 10] = "Font", e[e.Log = 11] = "Log", e[e.Drag = 12] = "Drag", e[e.StyleDeclaration = 13] = "StyleDeclaration", e[e.Selection = 14] = "Selection", e[e.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e[e.CustomElement = 16] = "CustomElement", e[e.Typing = 17] = "Typing", e))(ai || {}), li = ((e) => (e[e.MouseUp = 0] = "MouseUp", e[e.MouseDown = 1] = "MouseDown", e[e.Click = 2] = "Click", e[e.ContextMenu = 3] = "ContextMenu", e[e.DblClick = 4] = "DblClick", e[e.Focus = 5] = "Focus", e[e.Blur = 6] = "Blur", e[e.TouchStart = 7] = "TouchStart", e[e.TouchMove_Departed = 8] = "TouchMove_Departed", e[e.TouchEnd = 9] = "TouchEnd", e[e.TouchCancel = 10] = "TouchCancel", e))(li || {}), ci = ((e) => (e[e.Mouse = 0] = "Mouse", e[e.Pen = 1] = "Pen", e[e.Touch = 2] = "Touch", e))(ci || {}), ui = ((e) => (e[e["2D"] = 0] = "2D", e[e.WebGL = 1] = "WebGL", e[e.WebGL2 = 2] = "WebGL2", e))(ui || {}), pi = ((e) => (e[e.Play = 0] = "Play", e[e.Pause = 1] = "Pause", e[e.Seeked = 2] = "Seeked", e[e.VolumeChange = 3] = "VolumeChange", e[e.RateChange = 4] = "RateChange", e))(pi || {});
3861
3888
  function G(e, a, u = document) {
3862
3889
  const m2 = { capture: true, passive: true };
3863
3890
  return u.addEventListener(e, a, m2), () => u.removeEventListener(e, a, m2);
3864
3891
  }
3865
- const fi = "Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";
3866
- let mi = { map: {}, getId: () => (console.error(fi), -1), getNode: () => (console.error(fi), null), removeNodeFromMap() {
3867
- console.error(fi);
3868
- }, has: () => (console.error(fi), false), reset() {
3869
- console.error(fi);
3892
+ const di = "Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";
3893
+ let hi = { map: {}, getId: () => (console.error(di), -1), getNode: () => (console.error(di), null), removeNodeFromMap() {
3894
+ console.error(di);
3895
+ }, has: () => (console.error(di), false), reset() {
3896
+ console.error(di);
3870
3897
  } };
3871
3898
  function $e(e, a, u = {}) {
3872
3899
  let m2 = null, w2 = 0;
@@ -3900,8 +3927,8 @@ function Re(e, a, u) {
3900
3927
  };
3901
3928
  }
3902
3929
  }
3903
- typeof window < "u" && window.Proxy && window.Reflect && (mi = new Proxy(mi, { get: (e, a, u) => ("map" === a && console.error(fi), Reflect.get(e, a, u)) }));
3904
- let gi, yi = Date.now;
3930
+ typeof window < "u" && window.Proxy && window.Reflect && (hi = new Proxy(hi, { get: (e, a, u) => ("map" === a && console.error(di), Reflect.get(e, a, u)) }));
3931
+ let fi, mi = Date.now;
3905
3932
  function po(e) {
3906
3933
  var a, u, m2, w2, b2, C2;
3907
3934
  const x2 = e.document;
@@ -3948,7 +3975,7 @@ function bo(e, a) {
3948
3975
  function Fs(e) {
3949
3976
  return !(null == e || !e.shadowRoot);
3950
3977
  }
3951
- /[1-9][0-9]{12}/.test(Date.now().toString()) || (yi = () => (/* @__PURE__ */ new Date()).getTime());
3978
+ /[1-9][0-9]{12}/.test(Date.now().toString()) || (mi = () => (/* @__PURE__ */ new Date()).getTime());
3952
3979
  class _l {
3953
3980
  constructor() {
3954
3981
  b$1(this, "id", 1), b$1(this, "styleIDMap", /* @__PURE__ */ new WeakMap()), b$1(this, "idStyleMap", /* @__PURE__ */ new Map());
@@ -3993,11 +4020,11 @@ function vo(e) {
3993
4020
  const a = e.ownerDocument;
3994
4021
  return !!a && (a.contains(e) || zl(e));
3995
4022
  }
3996
- const M = (e) => gi ? (...a) => {
4023
+ const M = (e) => fi ? (...a) => {
3997
4024
  try {
3998
4025
  return e(...a);
3999
4026
  } catch (e2) {
4000
- if (gi && true === gi(e2)) return;
4027
+ if (fi && true === fi(e2)) return;
4001
4028
  throw e2;
4002
4029
  }
4003
4030
  } : e;
@@ -4056,22 +4083,22 @@ class Vl {
4056
4083
  transformCrossOriginEvent(e, a) {
4057
4084
  var u;
4058
4085
  switch (a.type) {
4059
- case li.FullSnapshot: {
4086
+ case ii.FullSnapshot: {
4060
4087
  this.crossOriginIframeMirror.reset(e), this.crossOriginIframeStyleMirror.reset(e), this.replaceIdOnNode(a.data.node, e);
4061
4088
  const u2 = a.data.node.id;
4062
- return this.crossOriginIframeRootIdMap.set(e, u2), this.patchRootIdOnNode(a.data.node, u2), { timestamp: a.timestamp, type: li.IncrementalSnapshot, data: { source: ci.Mutation, adds: [{ parentId: this.mirror.getId(e), nextId: null, node: a.data.node }], removes: [], texts: [], attributes: [], isAttachIframe: true } };
4089
+ return this.crossOriginIframeRootIdMap.set(e, u2), this.patchRootIdOnNode(a.data.node, u2), { timestamp: a.timestamp, type: ii.IncrementalSnapshot, data: { source: ai.Mutation, adds: [{ parentId: this.mirror.getId(e), nextId: null, node: a.data.node }], removes: [], texts: [], attributes: [], isAttachIframe: true } };
4063
4090
  }
4064
- case li.Meta:
4065
- case li.Load:
4066
- case li.DomContentLoaded:
4091
+ case ii.Meta:
4092
+ case ii.Load:
4093
+ case ii.DomContentLoaded:
4067
4094
  return false;
4068
- case li.Plugin:
4095
+ case ii.Plugin:
4069
4096
  return a;
4070
- case li.Custom:
4097
+ case ii.Custom:
4071
4098
  return this.replaceIds(a.data.payload, e, ["id", "parentId", "previousId", "nextId"]), a;
4072
- case li.IncrementalSnapshot:
4099
+ case ii.IncrementalSnapshot:
4073
4100
  switch (a.data.source) {
4074
- case ci.Mutation:
4101
+ case ai.Mutation:
4075
4102
  return a.data.adds.forEach((a2) => {
4076
4103
  this.replaceIds(a2, e, ["parentId", "nextId", "previousId"]), this.replaceIdOnNode(a2.node, e);
4077
4104
  const u2 = this.crossOriginIframeRootIdMap.get(e);
@@ -4083,30 +4110,30 @@ class Vl {
4083
4110
  }), a.data.texts.forEach((a2) => {
4084
4111
  this.replaceIds(a2, e, ["id"]);
4085
4112
  }), a;
4086
- case ci.Drag:
4087
- case ci.TouchMove:
4088
- case ci.MouseMove:
4113
+ case ai.Drag:
4114
+ case ai.TouchMove:
4115
+ case ai.MouseMove:
4089
4116
  return a.data.positions.forEach((a2) => {
4090
4117
  this.replaceIds(a2, e, ["id"]);
4091
4118
  }), a;
4092
- case ci.ViewportResize:
4119
+ case ai.ViewportResize:
4093
4120
  return false;
4094
- case ci.MediaInteraction:
4095
- case ci.MouseInteraction:
4096
- case ci.Scroll:
4097
- case ci.CanvasMutation:
4098
- case ci.Input:
4121
+ case ai.MediaInteraction:
4122
+ case ai.MouseInteraction:
4123
+ case ai.Scroll:
4124
+ case ai.CanvasMutation:
4125
+ case ai.Input:
4099
4126
  return this.replaceIds(a.data, e, ["id"]), a;
4100
- case ci.StyleSheetRule:
4101
- case ci.StyleDeclaration:
4127
+ case ai.StyleSheetRule:
4128
+ case ai.StyleDeclaration:
4102
4129
  return this.replaceIds(a.data, e, ["id"]), this.replaceStyleIds(a.data, e, ["styleId"]), a;
4103
- case ci.Font:
4130
+ case ai.Font:
4104
4131
  return a;
4105
- case ci.Selection:
4132
+ case ai.Selection:
4106
4133
  return a.data.ranges.forEach((a2) => {
4107
4134
  this.replaceIds(a2, e, ["start", "end"]);
4108
4135
  }), a;
4109
- case ci.AdoptedStyleSheet:
4136
+ case ai.AdoptedStyleSheet:
4110
4137
  return this.replaceIds(a.data, e, ["id"]), this.replaceStyleIds(a.data, e, ["styleIds"]), null == (u = a.data.styles) || u.forEach((a2) => {
4111
4138
  this.replaceStyleIds(a2, e, ["styleId"]);
4112
4139
  }), a;
@@ -4130,7 +4157,7 @@ class Vl {
4130
4157
  });
4131
4158
  }
4132
4159
  patchRootIdOnNode(e, a) {
4133
- e.type !== wt.Document && !e.rootId && (e.rootId = a), "childNodes" in e && e.childNodes.forEach((e2) => {
4160
+ e.type !== gt.Document && !e.rootId && (e.rootId = a), "childNodes" in e && e.childNodes.forEach((e2) => {
4134
4161
  this.patchRootIdOnNode(e2, a);
4135
4162
  });
4136
4163
  }
@@ -4348,7 +4375,7 @@ function ko(e, a) {
4348
4375
  const { parentNode: u } = a;
4349
4376
  return !!u && (!!e.has(u) || ko(e, u));
4350
4377
  }
4351
- const Mi = [];
4378
+ const gi = [];
4352
4379
  function tt(e) {
4353
4380
  try {
4354
4381
  if ("composedPath" in e) {
@@ -4362,7 +4389,7 @@ function tt(e) {
4362
4389
  function Co(e, a) {
4363
4390
  var u, m2;
4364
4391
  const w2 = new Zl();
4365
- Mi.push(w2), w2.init(e);
4392
+ gi.push(w2), w2.init(e);
4366
4393
  let b2 = window.MutationObserver || window.__rrMutationObserver;
4367
4394
  const C2 = null == (m2 = null == (u = null == window ? void 0 : window.Zone) ? void 0 : u.__symbol__) ? void 0 : m2.call(u, "MutationObserver");
4368
4395
  C2 && window[C2] && (b2 = window[C2]);
@@ -4374,7 +4401,7 @@ function Xl({ mouseInteractionCb: e, doc: a, mirror: u, blockClass: m2, blockSel
4374
4401
  };
4375
4402
  const C2 = true === b2.mouseInteraction || void 0 === b2.mouseInteraction ? {} : b2.mouseInteraction, x2 = [];
4376
4403
  let I2 = null;
4377
- return Object.keys(ui).filter((e2) => Number.isNaN(Number(e2)) && !e2.endsWith("_Departed") && false !== C2[e2]).forEach((b3) => {
4404
+ return Object.keys(li).filter((e2) => Number.isNaN(Number(e2)) && !e2.endsWith("_Departed") && false !== C2[e2]).forEach((b3) => {
4378
4405
  let C3 = fe(b3);
4379
4406
  const _2 = /* @__PURE__ */ ((a2) => (b4) => {
4380
4407
  const C4 = tt(b4);
@@ -4383,29 +4410,29 @@ function Xl({ mouseInteractionCb: e, doc: a, mirror: u, blockClass: m2, blockSel
4383
4410
  if ("pointerType" in b4) {
4384
4411
  switch (b4.pointerType) {
4385
4412
  case "mouse":
4386
- x3 = pi.Mouse;
4413
+ x3 = ci.Mouse;
4387
4414
  break;
4388
4415
  case "touch":
4389
- x3 = pi.Touch;
4416
+ x3 = ci.Touch;
4390
4417
  break;
4391
4418
  case "pen":
4392
- x3 = pi.Pen;
4419
+ x3 = ci.Pen;
4393
4420
  }
4394
- x3 === pi.Touch ? ui[a2] === ui.MouseDown ? _3 = "TouchStart" : ui[a2] === ui.MouseUp && (_3 = "TouchEnd") : pi.Pen;
4395
- } else Ds(b4) && (x3 = pi.Touch);
4396
- null !== x3 ? (I2 = x3, (_3.startsWith("Touch") && x3 === pi.Touch || _3.startsWith("Mouse") && x3 === pi.Mouse) && (x3 = null)) : ui[a2] === ui.Click && (x3 = I2, I2 = null);
4421
+ x3 === ci.Touch ? li[a2] === li.MouseDown ? _3 = "TouchStart" : li[a2] === li.MouseUp && (_3 = "TouchEnd") : ci.Pen;
4422
+ } else Ds(b4) && (x3 = ci.Touch);
4423
+ null !== x3 ? (I2 = x3, (_3.startsWith("Touch") && x3 === ci.Touch || _3.startsWith("Mouse") && x3 === ci.Mouse) && (x3 = null)) : li[a2] === li.Click && (x3 = I2, I2 = null);
4397
4424
  const O2 = Ds(b4) ? b4.changedTouches[0] : b4;
4398
4425
  if (!O2) return;
4399
4426
  const E2 = u.getId(C4), { clientX: D2, clientY: F2 } = O2;
4400
- M(e)({ type: ui[_3], id: E2, x: D2, y: F2, ...null !== x3 && { pointerType: x3 } });
4427
+ M(e)({ type: li[_3], id: E2, x: D2, y: F2, ...null !== x3 && { pointerType: x3 } });
4401
4428
  })(b3);
4402
- if (window.PointerEvent) switch (ui[b3]) {
4403
- case ui.MouseDown:
4404
- case ui.MouseUp:
4429
+ if (window.PointerEvent) switch (li[b3]) {
4430
+ case li.MouseDown:
4431
+ case li.MouseUp:
4405
4432
  C3 = C3.replace("mouse", "pointer");
4406
4433
  break;
4407
- case ui.TouchStart:
4408
- case ui.TouchEnd:
4434
+ case li.TouchStart:
4435
+ case li.TouchEnd:
4409
4436
  return;
4410
4437
  }
4411
4438
  x2.push(G(C3, _2, a));
@@ -4424,7 +4451,7 @@ function xo({ scrollCb: e, doc: a, mirror: u, blockClass: m2, blockSelector: w2,
4424
4451
  } else e({ id: x2, x: C2.scrollLeft, y: C2.scrollTop });
4425
4452
  }), b2.scroll || 100)), a);
4426
4453
  }
4427
- const Ii = ["INPUT", "TEXTAREA", "SELECT"], Li = /* @__PURE__ */ new WeakMap();
4454
+ const yi = ["INPUT", "TEXTAREA", "SELECT"], Mi = /* @__PURE__ */ new WeakMap();
4428
4455
  function ql({ deviceChangeCb: e }) {
4429
4456
  const t = (a2, u2) => {
4430
4457
  const m2 = a2.device.productName ? [a2.device.productName] : ["Unknown USB Device"];
@@ -4544,7 +4571,7 @@ function au(e, a = {}) {
4544
4571
  e2(x3.map((e3) => (e3.timeOffset -= u3, e3)), a3), x3 = [], C3 = null;
4545
4572
  }), b3), _3 = M($e(M((e3) => {
4546
4573
  const a3 = tt(e3), { clientX: u3, clientY: w4 } = Ds(e3) ? e3.changedTouches[0] : e3;
4547
- C3 || (C3 = yi()), x3.push({ x: u3, y: w4, id: m3.getId(a3), timeOffset: yi() - C3 }), I3(typeof DragEvent < "u" && e3 instanceof DragEvent ? ci.Drag : e3 instanceof MouseEvent ? ci.MouseMove : ci.TouchMove);
4574
+ C3 || (C3 = mi()), x3.push({ x: u3, y: w4, id: m3.getId(a3), timeOffset: mi() - C3 }), I3(typeof DragEvent < "u" && e3 instanceof DragEvent ? ai.Drag : e3 instanceof MouseEvent ? ai.MouseMove : ai.TouchMove);
4548
4575
  }), w3, { trailing: false })), O3 = [G("mousemove", _3, u2), G("touchmove", _3, u2), G("drag", _3, u2)];
4549
4576
  return M(() => {
4550
4577
  O3.forEach((e3) => e3());
@@ -4560,7 +4587,7 @@ function au(e, a = {}) {
4560
4587
  function p(e3) {
4561
4588
  let u3 = tt(e3);
4562
4589
  const _4 = e3.isTrusted, E4 = u3 && u3.tagName;
4563
- if (u3 && "OPTION" === E4 && (u3 = u3.parentElement), !u3 || !E4 || Ii.indexOf(E4) < 0 || Z(u3, m3, w3, true) || u3.classList.contains(b3) || C3 && u3.matches(C3)) return;
4590
+ if (u3 && "OPTION" === E4 && (u3 = u3.parentElement), !u3 || !E4 || yi.indexOf(E4) < 0 || Z(u3, m3, w3, true) || u3.classList.contains(b3) || C3 && u3.matches(C3)) return;
4564
4591
  let D4 = u3.value, F4 = false;
4565
4592
  const U4 = Yt(u3) || "", { value: B2, masked: $2 } = Zt({ element: u3, maskInputOptions: x3, tagName: E4, type: U4, value: D4, maskInputFn: I3 });
4566
4593
  D4 = B2, ("radio" === U4 || "checkbox" === U4) && (F4 = u3.checked), f2(u3, O3 ? { text: D4, isChecked: F4, masked: $2, userTriggered: _4 } : { text: D4, isChecked: F4, masked: $2 });
@@ -4573,9 +4600,9 @@ function au(e, a = {}) {
4573
4600
  });
4574
4601
  }
4575
4602
  function f2(a3, m4) {
4576
- const w4 = Li.get(a3);
4603
+ const w4 = Mi.get(a3);
4577
4604
  if (!w4 || w4.text !== m4.text || w4.isChecked !== m4.isChecked || w4.masked !== m4.masked) {
4578
- Li.set(a3, m4);
4605
+ Mi.set(a3, m4);
4579
4606
  const w5 = u2.getId(a3);
4580
4607
  M(e2)({ ...m4, id: w5 });
4581
4608
  }
@@ -4600,7 +4627,7 @@ function au(e, a = {}) {
4600
4627
  const { value: e3, masked: a4 } = Zt({ element: w4, maskInputOptions: u2, tagName: x3, type: I3, value: _3, maskInputFn: m3 });
4601
4628
  _3 = e3, b3 = a4;
4602
4629
  }
4603
- e2({ source: ci.Typing, id: null == w4 ? void 0 : w4.id, text: _3, isMasked: b3, target: ((e3) => {
4630
+ e2({ source: ai.Typing, id: null == w4 ? void 0 : w4.id, text: _3, isMasked: b3, target: ((e3) => {
4604
4631
  var a4;
4605
4632
  const u3 = [];
4606
4633
  for (; e3; ) {
@@ -4628,7 +4655,7 @@ function au(e, a = {}) {
4628
4655
  if (!C4 || Z(C4, a2, u2, true)) return;
4629
4656
  const { currentTime: x4, volume: I3, muted: _3, playbackRate: O3, loop: E3 } = C4;
4630
4657
  e2({ type: b4, id: m3.getId(C4), currentTime: x4, volume: I3, muted: _3, playbackRate: O3, loop: E3 });
4631
- }), w3.media || 500)), x3 = [G("play", C3(hi.Play), b3), G("pause", C3(hi.Pause), b3), G("seeked", C3(hi.Seeked), b3), G("volumechange", C3(hi.VolumeChange), b3), G("ratechange", C3(hi.RateChange), b3)];
4658
+ }), w3.media || 500)), x3 = [G("play", C3(pi.Play), b3), G("pause", C3(pi.Pause), b3), G("seeked", C3(pi.Seeked), b3), G("volumechange", C3(pi.VolumeChange), b3), G("ratechange", C3(pi.RateChange), b3)];
4632
4659
  return M(() => {
4633
4660
  x3.forEach((e3) => e3());
4634
4661
  });
@@ -4749,7 +4776,7 @@ function au(e, a = {}) {
4749
4776
  })(e), U2 = [];
4750
4777
  for (const a2 of e.plugins) U2.push(a2.observer(a2.callback, u, a2.options));
4751
4778
  return M(() => {
4752
- Mi.forEach((e2) => e2.reset()), null == m2 || m2.disconnect(), w2(), b2(), C2(), x2(), I2(), _2(), E2(), f(), d2(), g2(), h(), D2(), F2(), O2(), U2.forEach((e2) => e2());
4779
+ gi.forEach((e2) => e2.reset()), null == m2 || m2.disconnect(), w2(), b2(), C2(), x2(), I2(), _2(), E2(), f(), d2(), g2(), h(), D2(), F2(), O2(), U2.forEach((e2) => e2());
4753
4780
  });
4754
4781
  }
4755
4782
  function ft(e) {
@@ -4758,29 +4785,29 @@ function ft(e) {
4758
4785
  function mt(e) {
4759
4786
  return !!(typeof window[e] < "u" && window[e].prototype && "insertRule" in window[e].prototype && "deleteRule" in window[e].prototype);
4760
4787
  }
4761
- const Ri = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Zvcih2YXIgcj0iQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyIsdz10eXBlb2YgVWludDhBcnJheT4idSI/W106bmV3IFVpbnQ4QXJyYXkoMjU2KSxpPTA7aTxyLmxlbmd0aDtpKyspd1tyLmNoYXJDb2RlQXQoaSldPWk7dmFyIHA9ZnVuY3Rpb24ocyl7dmFyIGU9bmV3IFVpbnQ4QXJyYXkocyksbixhPWUubGVuZ3RoLHQ9IiI7Zm9yKG49MDtuPGE7bis9Myl0Kz1yW2Vbbl0+PjJdLHQrPXJbKGVbbl0mMyk8PDR8ZVtuKzFdPj40XSx0Kz1yWyhlW24rMV0mMTUpPDwyfGVbbisyXT4+Nl0sdCs9cltlW24rMl0mNjNdO3JldHVybiBhJTM9PT0yP3Q9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0xKSsiPSI6YSUzPT09MSYmKHQ9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0yKSsiPT0iKSx0fTtjb25zdCBsPW5ldyBNYXAsYj1uZXcgTWFwO2FzeW5jIGZ1bmN0aW9uIHkocyxlLG4pe2NvbnN0IGE9YCR7c30tJHtlfWA7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtpZihiLmhhcyhhKSlyZXR1cm4gYi5nZXQoYSk7Y29uc3QgdD1uZXcgT2Zmc2NyZWVuQ2FudmFzKHMsZSk7dC5nZXRDb250ZXh0KCIyZCIpO2NvbnN0IGc9YXdhaXQoYXdhaXQgdC5jb252ZXJ0VG9CbG9iKG4pKS5hcnJheUJ1ZmZlcigpLGM9cChnKTtyZXR1cm4gYi5zZXQoYSxjKSxjfWVsc2UgcmV0dXJuIiJ9Y29uc3Qgbz1zZWxmO28ub25tZXNzYWdlPWFzeW5jIGZ1bmN0aW9uKHMpe2lmKCJPZmZzY3JlZW5DYW52YXMiaW4gZ2xvYmFsVGhpcyl7Y29uc3R7aWQ6ZSxiaXRtYXA6bix3aWR0aDphLGhlaWdodDp0LGRhdGFVUkxPcHRpb25zOnV9PXMuZGF0YSxnPXkoYSx0LHUpLGM9bmV3IE9mZnNjcmVlbkNhbnZhcyhhLHQpO2MuZ2V0Q29udGV4dCgiMmQiKS5kcmF3SW1hZ2UobiwwLDApLG4uY2xvc2UoKTtjb25zdCBkPWF3YWl0IGMuY29udmVydFRvQmxvYih1KSx2PWQudHlwZSxoPWF3YWl0IGQuYXJyYXlCdWZmZXIoKSxmPXAoaCk7aWYoIWwuaGFzKGUpJiZhd2FpdCBnPT09ZilyZXR1cm4gbC5zZXQoZSxmKSxvLnBvc3RNZXNzYWdlKHtpZDplfSk7aWYobC5nZXQoZSk9PT1mKXJldHVybiBvLnBvc3RNZXNzYWdlKHtpZDplfSk7by5wb3N0TWVzc2FnZSh7aWQ6ZSx0eXBlOnYsYmFzZTY0OmYsd2lkdGg6YSxoZWlnaHQ6dH0pLGwuc2V0KGUsZil9ZWxzZSByZXR1cm4gby5wb3N0TWVzc2FnZSh7aWQ6cy5kYXRhLmlkfSl9fSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1Cb1hHVm1Zby5qcy5tYXAK", Ai = typeof self < "u" && self.Blob && new Blob([(Ti = Ri, Uint8Array.from(atob(Ti), (e) => e.charCodeAt(0)))], { type: "text/javascript;charset=utf-8" });
4762
- var Ti;
4788
+ const Ii = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Zvcih2YXIgcj0iQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyIsdz10eXBlb2YgVWludDhBcnJheT4idSI/W106bmV3IFVpbnQ4QXJyYXkoMjU2KSxpPTA7aTxyLmxlbmd0aDtpKyspd1tyLmNoYXJDb2RlQXQoaSldPWk7dmFyIHA9ZnVuY3Rpb24ocyl7dmFyIGU9bmV3IFVpbnQ4QXJyYXkocyksbixhPWUubGVuZ3RoLHQ9IiI7Zm9yKG49MDtuPGE7bis9Myl0Kz1yW2Vbbl0+PjJdLHQrPXJbKGVbbl0mMyk8PDR8ZVtuKzFdPj40XSx0Kz1yWyhlW24rMV0mMTUpPDwyfGVbbisyXT4+Nl0sdCs9cltlW24rMl0mNjNdO3JldHVybiBhJTM9PT0yP3Q9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0xKSsiPSI6YSUzPT09MSYmKHQ9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0yKSsiPT0iKSx0fTtjb25zdCBsPW5ldyBNYXAsYj1uZXcgTWFwO2FzeW5jIGZ1bmN0aW9uIHkocyxlLG4pe2NvbnN0IGE9YCR7c30tJHtlfWA7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtpZihiLmhhcyhhKSlyZXR1cm4gYi5nZXQoYSk7Y29uc3QgdD1uZXcgT2Zmc2NyZWVuQ2FudmFzKHMsZSk7dC5nZXRDb250ZXh0KCIyZCIpO2NvbnN0IGc9YXdhaXQoYXdhaXQgdC5jb252ZXJ0VG9CbG9iKG4pKS5hcnJheUJ1ZmZlcigpLGM9cChnKTtyZXR1cm4gYi5zZXQoYSxjKSxjfWVsc2UgcmV0dXJuIiJ9Y29uc3Qgbz1zZWxmO28ub25tZXNzYWdlPWFzeW5jIGZ1bmN0aW9uKHMpe2lmKCJPZmZzY3JlZW5DYW52YXMiaW4gZ2xvYmFsVGhpcyl7Y29uc3R7aWQ6ZSxiaXRtYXA6bix3aWR0aDphLGhlaWdodDp0LGRhdGFVUkxPcHRpb25zOnV9PXMuZGF0YSxnPXkoYSx0LHUpLGM9bmV3IE9mZnNjcmVlbkNhbnZhcyhhLHQpO2MuZ2V0Q29udGV4dCgiMmQiKS5kcmF3SW1hZ2UobiwwLDApLG4uY2xvc2UoKTtjb25zdCBkPWF3YWl0IGMuY29udmVydFRvQmxvYih1KSx2PWQudHlwZSxoPWF3YWl0IGQuYXJyYXlCdWZmZXIoKSxmPXAoaCk7aWYoIWwuaGFzKGUpJiZhd2FpdCBnPT09ZilyZXR1cm4gbC5zZXQoZSxmKSxvLnBvc3RNZXNzYWdlKHtpZDplfSk7aWYobC5nZXQoZSk9PT1mKXJldHVybiBvLnBvc3RNZXNzYWdlKHtpZDplfSk7by5wb3N0TWVzc2FnZSh7aWQ6ZSx0eXBlOnYsYmFzZTY0OmYsd2lkdGg6YSxoZWlnaHQ6dH0pLGwuc2V0KGUsZil9ZWxzZSByZXR1cm4gby5wb3N0TWVzc2FnZSh7aWQ6cy5kYXRhLmlkfSl9fSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1Cb1hHVm1Zby5qcy5tYXAK", Li = typeof self < "u" && self.Blob && new Blob([(Ri = Ii, Uint8Array.from(atob(Ri), (e) => e.charCodeAt(0)))], { type: "text/javascript;charset=utf-8" });
4789
+ var Ri;
4763
4790
  function uu(e) {
4764
4791
  let a;
4765
4792
  try {
4766
- if (a = Ai && (self.URL || self.webkitURL).createObjectURL(Ai), !a) throw "";
4793
+ if (a = Li && (self.URL || self.webkitURL).createObjectURL(Li), !a) throw "";
4767
4794
  const u = new Worker(a, { name: null == e ? void 0 : e.name });
4768
4795
  return u.addEventListener("error", () => {
4769
4796
  (self.URL || self.webkitURL).revokeObjectURL(a);
4770
4797
  }), u;
4771
4798
  } catch {
4772
- return new Worker("data:text/javascript;base64," + Ri, { name: null == e ? void 0 : e.name });
4799
+ return new Worker("data:text/javascript;base64," + Ii, { name: null == e ? void 0 : e.name });
4773
4800
  } finally {
4774
4801
  a && (self.URL || self.webkitURL).revokeObjectURL(a);
4775
4802
  }
4776
4803
  }
4777
- for (var Ni = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Pi = typeof Uint8Array > "u" ? [] : new Uint8Array(256), qi = 0; qi < 64; qi++) Pi[Ni.charCodeAt(qi)] = qi;
4778
- const Hi = /* @__PURE__ */ new Map();
4804
+ for (var Ai = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ti = typeof Uint8Array > "u" ? [] : new Uint8Array(256), Ni = 0; Ni < 64; Ni++) Ti[Ai.charCodeAt(Ni)] = Ni;
4805
+ const Pi = /* @__PURE__ */ new Map();
4779
4806
  const Oo = (e, a, u) => {
4780
4807
  if (!e || !Ro(e, a) && "object" != typeof e) return;
4781
4808
  const m2 = (function pu(e2, a2) {
4782
- let u2 = Hi.get(e2);
4783
- return u2 || (u2 = /* @__PURE__ */ new Map(), Hi.set(e2, u2)), u2.has(a2) || u2.set(a2, []), u2.get(a2);
4809
+ let u2 = Pi.get(e2);
4810
+ return u2 || (u2 = /* @__PURE__ */ new Map(), Pi.set(e2, u2)), u2.has(a2) || u2.set(a2, []), u2.get(a2);
4784
4811
  })(u, e.constructor.name);
4785
4812
  let w2 = m2.indexOf(e);
4786
4813
  return -1 === w2 && (w2 = m2.length, m2.push(e)), w2;
@@ -4792,7 +4819,7 @@ function Ot(e, a, u) {
4792
4819
  if (e instanceof ArrayBuffer) {
4793
4820
  const a2 = e.constructor.name, u2 = (function(e2) {
4794
4821
  var a3, u3 = new Uint8Array(e2), m2 = u3.length, w2 = "";
4795
- for (a3 = 0; a3 < m2; a3 += 3) w2 += Ni[u3[a3] >> 2], w2 += Ni[(3 & u3[a3]) << 4 | u3[a3 + 1] >> 4], w2 += Ni[(15 & u3[a3 + 1]) << 2 | u3[a3 + 2] >> 6], w2 += Ni[63 & u3[a3 + 2]];
4822
+ for (a3 = 0; a3 < m2; a3 += 3) w2 += Ai[u3[a3] >> 2], w2 += Ai[(3 & u3[a3]) << 4 | u3[a3 + 1] >> 4], w2 += Ai[(15 & u3[a3 + 1]) << 2 | u3[a3 + 2] >> 6], w2 += Ai[63 & u3[a3 + 2]];
4796
4823
  return m2 % 3 == 2 ? w2 = w2.substring(0, w2.length - 1) + "=" : m2 % 3 == 1 && (w2 = w2.substring(0, w2.length - 2) + "=="), w2;
4797
4824
  })(e);
4798
4825
  return { rr_type: a2, base64: u2 };
@@ -4889,7 +4916,7 @@ class gu {
4889
4916
  const { id: a2 } = e2.data;
4890
4917
  if (C2.set(a2, false), !("base64" in e2.data)) return;
4891
4918
  const { base64: u2, type: m3, width: w3, height: b3 } = e2.data;
4892
- this.mutationCb({ id: a2, type: di["2D"], commands: [{ property: "clearRect", args: [0, 0, w3, b3] }, { property: "drawImage", args: [{ rr_type: "ImageBitmap", args: [{ rr_type: "Blob", data: [{ rr_type: "ArrayBuffer", base64: u2 }], type: m3 }] }, 0, 0] }] });
4919
+ this.mutationCb({ id: a2, type: ui["2D"], commands: [{ property: "clearRect", args: [0, 0, w3, b3] }, { property: "drawImage", args: [{ rr_type: "ImageBitmap", args: [{ rr_type: "Blob", data: [{ rr_type: "ArrayBuffer", base64: u2 }], type: m3 }] }, 0, 0] }] });
4893
4920
  };
4894
4921
  const I2 = 1e3 / e;
4895
4922
  let _2, O2 = 0;
@@ -4925,14 +4952,14 @@ class gu {
4925
4952
  return function(...b5) {
4926
4953
  return Z(this.canvas, u2, m3, true) || setTimeout(() => {
4927
4954
  const u3 = Eo(b5, a2, this);
4928
- e2(this.canvas, { type: di["2D"], property: C2, args: u3 });
4955
+ e2(this.canvas, { type: ui["2D"], property: C2, args: u3 });
4929
4956
  }, 0), w4.apply(this, b5);
4930
4957
  };
4931
4958
  });
4932
4959
  w3.push(b4);
4933
4960
  } catch {
4934
4961
  const u3 = qt(a2.CanvasRenderingContext2D.prototype, C2, { set(a3) {
4935
- e2(this.canvas, { type: di["2D"], property: C2, args: [a3], setter: true });
4962
+ e2(this.canvas, { type: ui["2D"], property: C2, args: [a3], setter: true });
4936
4963
  } });
4937
4964
  w3.push(u3);
4938
4965
  }
@@ -4941,7 +4968,7 @@ class gu {
4941
4968
  };
4942
4969
  })(this.processMutation.bind(this), e, a, u), b2 = (function mu(e2, a2, u2, m3) {
4943
4970
  const w3 = [];
4944
- return w3.push(...tr(a2.WebGLRenderingContext.prototype, di.WebGL, e2, u2, m3, a2)), typeof a2.WebGL2RenderingContext < "u" && w3.push(...tr(a2.WebGL2RenderingContext.prototype, di.WebGL2, e2, u2, m3, a2)), () => {
4971
+ return w3.push(...tr(a2.WebGLRenderingContext.prototype, ui.WebGL, e2, u2, m3, a2)), typeof a2.WebGL2RenderingContext < "u" && w3.push(...tr(a2.WebGL2RenderingContext.prototype, ui.WebGL2, e2, u2, m3, a2)), () => {
4945
4972
  w3.forEach((e3) => e3());
4946
4973
  };
4947
4974
  })(this.processMutation.bind(this), e, a, u);
@@ -5052,23 +5079,23 @@ class bu {
5052
5079
  trackStylesheetInLinkElement(e) {
5053
5080
  }
5054
5081
  }
5055
- let Ji, Xi, Qi, ea = false;
5056
- var ta;
5082
+ let qi, Hi, Ji, Xi = false;
5083
+ var Qi;
5057
5084
  try {
5058
5085
  if (2 !== Array.from([1], (e) => 2 * e)[0]) {
5059
5086
  const e = document.createElement("iframe");
5060
- document.body.appendChild(e), Array.from = (null == (ta = e.contentWindow) ? void 0 : ta.Array.from) || Array.from, document.body.removeChild(e);
5087
+ document.body.appendChild(e), Array.from = (null == (Qi = e.contentWindow) ? void 0 : Qi.Array.from) || Array.from, document.body.removeChild(e);
5061
5088
  }
5062
- } catch (Ti2) {
5063
- console.debug("Unable to override Array.from", Ti2);
5089
+ } catch (Ri2) {
5090
+ console.debug("Unable to override Array.from", Ri2);
5064
5091
  }
5065
- const na = (function Ci() {
5066
- return new St();
5092
+ const ea = (function Ci() {
5093
+ return new yt();
5067
5094
  })();
5068
5095
  function ae(e = {}) {
5069
5096
  const { emit: a, checkoutEveryNms: u, checkoutEveryNth: m2, blockClass: w2 = "rr-block", blockSelector: b2 = null, ignoreClass: C2 = "rr-ignore", ignoreSelector: x2 = null, maskTextClass: I2 = "rr-mask", maskTextSelector: _2 = null, inlineStylesheet: O2 = true, maskAllInputs: E2, maskInputOptions: D2, slimDOMOptions: F2, maskInputFn: U2, maskTextFn: B2, hooks: $2, packFn: z2, sampling: j2 = {}, dataURLOptions: V2 = {}, mousemoveWait: q2, recordDOM: H2 = true, recordCanvas: J2 = false, recordCrossOriginIframes: Y2 = false, recordAfter: X2 = "DOMContentLoaded" === e.recordAfter ? e.recordAfter : "load", userTriggeredOnInput: Q2 = false, collectFonts: ee2 = false, inlineImages: te2 = false, plugins: ne2, keepIframeSrcFn: re2 = () => false, ignoreCSSAttributes: oe2 = /* @__PURE__ */ new Set([]), errorHandler: se2 } = e;
5070
5097
  !(function Bl(e2) {
5071
- gi = e2;
5098
+ fi = e2;
5072
5099
  })(se2);
5073
5100
  const ie2 = !Y2 || window.parent === window;
5074
5101
  let le2 = false;
@@ -5080,7 +5107,7 @@ function ae(e = {}) {
5080
5107
  if (ie2 && !a) throw new Error("emit function is required");
5081
5108
  if (!ie2 && !le2) return () => {
5082
5109
  };
5083
- void 0 !== q2 && void 0 === j2.mousemove && (j2.mousemove = q2), na.reset();
5110
+ void 0 !== q2 && void 0 === j2.mousemove && (j2.mousemove = q2), ea.reset();
5084
5111
  const ce2 = true === E2 ? { color: true, date: true, "datetime-local": true, email: true, month: true, number: true, range: true, search: true, tel: true, text: true, time: true, url: true, week: true, textarea: true, select: true, password: true } : void 0 !== D2 ? D2 : { password: true }, pe2 = true === F2 || "all" === F2 ? { script: true, comment: true, headFavicon: true, headWhitespace: true, headMetaSocial: true, headMetaRobots: true, headMetaHttpEquiv: true, headMetaVerification: true, headMetaAuthorship: "all" === F2, headMetaDescKeywords: "all" === F2, headTitleMutations: "all" === F2 } : F2 || {};
5085
5112
  !(function Ul(e2 = window) {
5086
5113
  "NodeList" in e2 && !e2.NodeList.prototype.forEach && (e2.NodeList.prototype.forEach = Array.prototype.forEach), "DOMTokenList" in e2 && !e2.DOMTokenList.prototype.forEach && (e2.DOMTokenList.prototype.forEach = Array.prototype.forEach), Node.prototype.contains || (Node.prototype.contains = (...e3) => {
@@ -5097,57 +5124,57 @@ function ae(e = {}) {
5097
5124
  for (const a2 of ne2 || []) a2.eventProcessor && (e2 = a2.eventProcessor(e2));
5098
5125
  return z2 && !le2 && (e2 = z2(e2)), e2;
5099
5126
  };
5100
- Ji = (e2, w3) => {
5127
+ qi = (e2, w3) => {
5101
5128
  var b3;
5102
5129
  const C3 = e2;
5103
- if (C3.timestamp = yi(), null != (b3 = Mi[0]) && b3.isFrozen() && C3.type !== li.FullSnapshot && !(C3.type === li.IncrementalSnapshot && C3.data.source === ci.Mutation) && Mi.forEach((e3) => e3.unfreeze()), ie2) null == a || a(vn(C3), w3);
5130
+ if (C3.timestamp = mi(), null != (b3 = gi[0]) && b3.isFrozen() && C3.type !== ii.FullSnapshot && !(C3.type === ii.IncrementalSnapshot && C3.data.source === ai.Mutation) && gi.forEach((e3) => e3.unfreeze()), ie2) null == a || a(vn(C3), w3);
5104
5131
  else if (le2) {
5105
5132
  const e3 = { type: "@sailfish-rrweb/rrweb", event: vn(C3), origin: window.location.origin, isCheckout: w3 };
5106
5133
  window.parent.postMessage(e3, "*");
5107
5134
  }
5108
- if (C3.type === li.FullSnapshot) de2 = C3, he2 = 0;
5109
- else if (C3.type === li.IncrementalSnapshot) {
5110
- if (C3.data.source === ci.Mutation && C3.data.isAttachIframe) return;
5135
+ if (C3.type === ii.FullSnapshot) de2 = C3, he2 = 0;
5136
+ else if (C3.type === ii.IncrementalSnapshot) {
5137
+ if (C3.data.source === ai.Mutation && C3.data.isAttachIframe) return;
5111
5138
  he2++;
5112
5139
  const e3 = m2 && he2 >= m2, a2 = u && C3.timestamp - de2.timestamp > u;
5113
- (e3 || a2) && Xi(true);
5140
+ (e3 || a2) && Hi(true);
5114
5141
  }
5115
5142
  };
5116
5143
  const rt = (e2) => {
5117
- Ji({ type: li.IncrementalSnapshot, data: { source: ci.Mutation, ...e2 } });
5118
- }, kn = (e2) => Ji({ type: li.IncrementalSnapshot, data: { source: ci.Scroll, ...e2 } }), Cn = (e2) => Ji({ type: li.IncrementalSnapshot, data: { source: ci.CanvasMutation, ...e2 } }), me2 = new bu({ mutationCb: rt, adoptedStyleSheetCb: (e2) => Ji({ type: li.IncrementalSnapshot, data: { source: ci.AdoptedStyleSheet, ...e2 } }) }), ge2 = new Vl({ mirror: na, mutationCb: rt, stylesheetManager: me2, recordCrossOriginIframes: Y2, wrappedEmit: Ji });
5119
- for (const e2 of ne2 || []) e2.getMirror && e2.getMirror({ nodeMirror: na, crossOriginIframeMirror: ge2.crossOriginIframeMirror, crossOriginIframeStyleMirror: ge2.crossOriginIframeStyleMirror });
5144
+ qi({ type: ii.IncrementalSnapshot, data: { source: ai.Mutation, ...e2 } });
5145
+ }, kn = (e2) => qi({ type: ii.IncrementalSnapshot, data: { source: ai.Scroll, ...e2 } }), Cn = (e2) => qi({ type: ii.IncrementalSnapshot, data: { source: ai.CanvasMutation, ...e2 } }), me2 = new bu({ mutationCb: rt, adoptedStyleSheetCb: (e2) => qi({ type: ii.IncrementalSnapshot, data: { source: ai.AdoptedStyleSheet, ...e2 } }) }), ge2 = new Vl({ mirror: ea, mutationCb: rt, stylesheetManager: me2, recordCrossOriginIframes: Y2, wrappedEmit: qi });
5146
+ for (const e2 of ne2 || []) e2.getMirror && e2.getMirror({ nodeMirror: ea, crossOriginIframeMirror: ge2.crossOriginIframeMirror, crossOriginIframeStyleMirror: ge2.crossOriginIframeStyleMirror });
5120
5147
  const ye2 = new yu();
5121
- Qi = new gu({ recordCanvas: J2, mutationCb: Cn, win: window, blockClass: w2, blockSelector: b2, mirror: na, sampling: j2.canvas, dataURLOptions: V2 });
5122
- const we2 = new wu({ mutationCb: rt, scrollCb: kn, bypassOptions: { blockClass: w2, blockSelector: b2, maskTextClass: I2, maskTextSelector: _2, inlineStylesheet: O2, maskInputOptions: ce2, dataURLOptions: V2, maskTextFn: B2, maskInputFn: U2, recordCanvas: J2, inlineImages: te2, sampling: j2, slimDOMOptions: pe2, iframeManager: ge2, stylesheetManager: me2, canvasManager: Qi, keepIframeSrcFn: re2, processedNodeManager: ye2 }, mirror: na });
5123
- Xi = (e2 = false) => {
5148
+ Ji = new gu({ recordCanvas: J2, mutationCb: Cn, win: window, blockClass: w2, blockSelector: b2, mirror: ea, sampling: j2.canvas, dataURLOptions: V2 });
5149
+ const we2 = new wu({ mutationCb: rt, scrollCb: kn, bypassOptions: { blockClass: w2, blockSelector: b2, maskTextClass: I2, maskTextSelector: _2, inlineStylesheet: O2, maskInputOptions: ce2, dataURLOptions: V2, maskTextFn: B2, maskInputFn: U2, recordCanvas: J2, inlineImages: te2, sampling: j2, slimDOMOptions: pe2, iframeManager: ge2, stylesheetManager: me2, canvasManager: Ji, keepIframeSrcFn: re2, processedNodeManager: ye2 }, mirror: ea });
5150
+ Hi = (e2 = false) => {
5124
5151
  if (!H2) return;
5125
- Ji({ type: li.Meta, data: { href: window.location.href, width: mo(), height: fo() } }, e2), me2.reset(), we2.init(), Mi.forEach((e3) => e3.lock());
5152
+ qi({ type: ii.Meta, data: { href: window.location.href, width: mo(), height: fo() } }, e2), me2.reset(), we2.init(), gi.forEach((e3) => e3.lock());
5126
5153
  const a2 = (function Zi(e3, a3) {
5127
- const { mirror: u2 = new St(), blockClass: m3 = "rr-block", blockSelector: w3 = null, maskTextClass: b3 = "rr-mask", maskTextSelector: C3 = null, inlineStylesheet: x3 = true, inlineImages: I3 = false, recordCanvas: _3 = false, maskAllInputs: O3 = false, maskTextFn: E3, maskInputFn: D3, slimDOM: F3 = false, dataURLOptions: U3, preserveWhiteSpace: B3, onSerialize: $3, onIframeLoad: z3, iframeLoadTimeout: j3, onStylesheetLoad: V3, stylesheetLoadTimeout: q3, keepIframeSrcFn: H3 = () => false } = a3 || {};
5154
+ const { mirror: u2 = new yt(), blockClass: m3 = "rr-block", blockSelector: w3 = null, maskTextClass: b3 = "rr-mask", maskTextSelector: C3 = null, inlineStylesheet: x3 = true, inlineImages: I3 = false, recordCanvas: _3 = false, maskAllInputs: O3 = false, maskTextFn: E3, maskInputFn: D3, slimDOM: F3 = false, dataURLOptions: U3, preserveWhiteSpace: B3, onSerialize: $3, onIframeLoad: z3, iframeLoadTimeout: j3, onStylesheetLoad: V3, stylesheetLoadTimeout: q3, keepIframeSrcFn: H3 = () => false } = a3 || {};
5128
5155
  return Se(e3, { doc: e3, mirror: u2, blockClass: m3, blockSelector: w3, maskTextClass: b3, maskTextSelector: C3, skipChild: false, inlineStylesheet: x3, maskInputOptions: true === O3 ? { color: true, date: true, "datetime-local": true, email: true, month: true, number: true, range: true, search: true, tel: true, text: true, time: true, url: true, week: true, textarea: true, select: true, password: true } : false === O3 ? { password: true } : O3, maskTextFn: E3, maskInputFn: D3, slimDOMOptions: true === F3 || "all" === F3 ? { script: true, comment: true, headFavicon: true, headWhitespace: true, headMetaDescKeywords: "all" === F3, headMetaSocial: true, headMetaRobots: true, headMetaHttpEquiv: true, headMetaAuthorship: true, headMetaVerification: true } : false === F3 ? {} : F3, dataURLOptions: U3, inlineImages: I3, recordCanvas: _3, preserveWhiteSpace: B3, onSerialize: $3, onIframeLoad: z3, iframeLoadTimeout: j3, onStylesheetLoad: V3, stylesheetLoadTimeout: q3, keepIframeSrcFn: H3, newlyAddedElement: false });
5129
- })(document, { mirror: na, blockClass: w2, blockSelector: b2, maskTextClass: I2, maskTextSelector: _2, inlineStylesheet: O2, maskAllInputs: ce2, maskTextFn: B2, maskInputFn: U2, slimDOM: pe2, dataURLOptions: V2, recordCanvas: J2, inlineImages: te2, onSerialize: (e3) => {
5130
- wo(e3, na) && ge2.addIframe(e3), bo(e3, na) && me2.trackLinkElement(e3), Fs(e3) && we2.addShadowRoot(e3.shadowRoot, document);
5156
+ })(document, { mirror: ea, blockClass: w2, blockSelector: b2, maskTextClass: I2, maskTextSelector: _2, inlineStylesheet: O2, maskAllInputs: ce2, maskTextFn: B2, maskInputFn: U2, slimDOM: pe2, dataURLOptions: V2, recordCanvas: J2, inlineImages: te2, onSerialize: (e3) => {
5157
+ wo(e3, ea) && ge2.addIframe(e3), bo(e3, ea) && me2.trackLinkElement(e3), Fs(e3) && we2.addShadowRoot(e3.shadowRoot, document);
5131
5158
  }, onIframeLoad: (e3, a3) => {
5132
5159
  ge2.attachIframe(e3, a3), we2.observeAttachShadow(e3);
5133
5160
  }, onStylesheetLoad: (e3, a3) => {
5134
5161
  me2.attachLinkElement(e3, a3);
5135
5162
  }, keepIframeSrcFn: re2 });
5136
5163
  if (!a2) return console.warn("Failed to snapshot the document");
5137
- Ji({ type: li.FullSnapshot, data: { node: a2, initialOffset: po(window) } }, e2), Mi.forEach((e3) => e3.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && me2.adoptStyleSheets(document.adoptedStyleSheets, na.getId(document));
5164
+ qi({ type: ii.FullSnapshot, data: { node: a2, initialOffset: po(window) } }, e2), gi.forEach((e3) => e3.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && me2.adoptStyleSheets(document.adoptedStyleSheets, ea.getId(document));
5138
5165
  };
5139
5166
  try {
5140
5167
  const e2 = [], K = (e3) => {
5141
5168
  var a2;
5142
- return M(au)({ mutationCb: rt, mousemoveCb: (e4, a3) => Ji({ type: li.IncrementalSnapshot, data: { source: a3, positions: e4 } }), mouseInteractionCb: (e4) => Ji({ type: li.IncrementalSnapshot, data: { source: ci.MouseInteraction, ...e4 } }), scrollCb: kn, viewportResizeCb: (e4) => Ji({ type: li.IncrementalSnapshot, data: { source: ci.ViewportResize, ...e4 } }), inputCb: (e4) => Ji({ type: li.IncrementalSnapshot, data: { source: ci.Input, ...e4 } }), mediaInteractionCb: (e4) => Ji({ type: li.IncrementalSnapshot, data: { source: ci.MediaInteraction, ...e4 } }), styleSheetRuleCb: (e4) => Ji({ type: li.IncrementalSnapshot, data: { source: ci.StyleSheetRule, ...e4 } }), styleDeclarationCb: (e4) => Ji({ type: li.IncrementalSnapshot, data: { source: ci.StyleDeclaration, ...e4 } }), canvasMutationCb: Cn, fontCb: (e4) => Ji({ type: li.IncrementalSnapshot, data: { source: ci.Font, ...e4 } }), selectionCb: (e4) => {
5143
- Ji({ type: li.IncrementalSnapshot, data: { source: ci.Selection, ...e4 } });
5169
+ return M(au)({ mutationCb: rt, mousemoveCb: (e4, a3) => qi({ type: ii.IncrementalSnapshot, data: { source: a3, positions: e4 } }), mouseInteractionCb: (e4) => qi({ type: ii.IncrementalSnapshot, data: { source: ai.MouseInteraction, ...e4 } }), scrollCb: kn, viewportResizeCb: (e4) => qi({ type: ii.IncrementalSnapshot, data: { source: ai.ViewportResize, ...e4 } }), inputCb: (e4) => qi({ type: ii.IncrementalSnapshot, data: { source: ai.Input, ...e4 } }), mediaInteractionCb: (e4) => qi({ type: ii.IncrementalSnapshot, data: { source: ai.MediaInteraction, ...e4 } }), styleSheetRuleCb: (e4) => qi({ type: ii.IncrementalSnapshot, data: { source: ai.StyleSheetRule, ...e4 } }), styleDeclarationCb: (e4) => qi({ type: ii.IncrementalSnapshot, data: { source: ai.StyleDeclaration, ...e4 } }), canvasMutationCb: Cn, fontCb: (e4) => qi({ type: ii.IncrementalSnapshot, data: { source: ai.Font, ...e4 } }), selectionCb: (e4) => {
5170
+ qi({ type: ii.IncrementalSnapshot, data: { source: ai.Selection, ...e4 } });
5144
5171
  }, customElementCb: (e4) => {
5145
- Ji({ type: li.IncrementalSnapshot, data: { source: ci.CustomElement, ...e4 } });
5172
+ qi({ type: ii.IncrementalSnapshot, data: { source: ai.CustomElement, ...e4 } });
5146
5173
  }, typingCb: (e4) => {
5147
- Ji({ type: li.IncrementalSnapshot, data: { ...e4 } });
5174
+ qi({ type: ii.IncrementalSnapshot, data: { ...e4 } });
5148
5175
  }, deviceChangeCb: (e4) => {
5149
- Ji({ type: li.Device, data: { ...e4 } });
5150
- }, blockClass: w2, ignoreClass: C2, ignoreSelector: x2, maskTextClass: I2, maskTextSelector: _2, maskInputOptions: ce2, inlineStylesheet: O2, sampling: j2, recordDOM: H2, recordCanvas: J2, inlineImages: te2, userTriggeredOnInput: Q2, collectFonts: ee2, doc: e3, maskInputFn: U2, maskTextFn: B2, keepIframeSrcFn: re2, blockSelector: b2, slimDOMOptions: pe2, dataURLOptions: V2, mirror: na, iframeManager: ge2, stylesheetManager: me2, shadowDomManager: we2, processedNodeManager: ye2, canvasManager: Qi, ignoreCSSAttributes: oe2, plugins: (null == (a2 = null == ne2 ? void 0 : ne2.filter((e4) => e4.observer)) ? void 0 : a2.map((e4) => ({ observer: e4.observer, options: e4.options, callback: (a3) => Ji({ type: li.Plugin, data: { plugin: e4.name, payload: a3 } }) }))) || [] }, $2);
5176
+ qi({ type: ii.Device, data: { ...e4 } });
5177
+ }, blockClass: w2, ignoreClass: C2, ignoreSelector: x2, maskTextClass: I2, maskTextSelector: _2, maskInputOptions: ce2, inlineStylesheet: O2, sampling: j2, recordDOM: H2, recordCanvas: J2, inlineImages: te2, userTriggeredOnInput: Q2, collectFonts: ee2, doc: e3, maskInputFn: U2, maskTextFn: B2, keepIframeSrcFn: re2, blockSelector: b2, slimDOMOptions: pe2, dataURLOptions: V2, mirror: ea, iframeManager: ge2, stylesheetManager: me2, shadowDomManager: we2, processedNodeManager: ye2, canvasManager: Ji, ignoreCSSAttributes: oe2, plugins: (null == (a2 = null == ne2 ? void 0 : ne2.filter((e4) => e4.observer)) ? void 0 : a2.map((e4) => ({ observer: e4.observer, options: e4.options, callback: (a3) => qi({ type: ii.Plugin, data: { plugin: e4.name, payload: a3 } }) }))) || [] }, $2);
5151
5178
  };
5152
5179
  ge2.addLoadListener((a2) => {
5153
5180
  try {
@@ -5157,15 +5184,15 @@ function ae(e = {}) {
5157
5184
  }
5158
5185
  });
5159
5186
  const W = () => {
5160
- Xi(), e2.push(K(document)), ea = true;
5187
+ Hi(), e2.push(K(document)), Xi = true;
5161
5188
  };
5162
5189
  return "interactive" === document.readyState || "complete" === document.readyState ? W() : (e2.push(G("DOMContentLoaded", () => {
5163
- Ji({ type: li.DomContentLoaded, data: {} }), "DOMContentLoaded" === X2 && W();
5190
+ qi({ type: ii.DomContentLoaded, data: {} }), "DOMContentLoaded" === X2 && W();
5164
5191
  })), e2.push(G("load", () => {
5165
- Ji({ type: li.Load, data: {} }), "load" === X2 && W();
5192
+ qi({ type: ii.Load, data: {} }), "load" === X2 && W();
5166
5193
  }, window))), () => {
5167
- e2.forEach((e3) => e3()), ye2.destroy(), ea = false, (function jl() {
5168
- gi = void 0;
5194
+ e2.forEach((e3) => e3()), ye2.destroy(), Xi = false, (function jl() {
5195
+ fi = void 0;
5169
5196
  })();
5170
5197
  };
5171
5198
  } catch (e2) {
@@ -5192,24 +5219,24 @@ function vu(e) {
5192
5219
  }), u;
5193
5220
  }
5194
5221
  ae.addCustomEvent = (e, a) => {
5195
- if (!ea) throw new Error("please add custom event after start recording");
5196
- Ji({ type: li.Custom, data: { tag: e, payload: a } });
5222
+ if (!Xi) throw new Error("please add custom event after start recording");
5223
+ qi({ type: ii.Custom, data: { tag: e, payload: a } });
5197
5224
  }, ae.addSailfishEvent = (e, a) => {
5198
- if (!ea) throw new Error("please add Sailfish event after start recording");
5199
- Ji({ type: e, data: { tag: "sailfish-zendesk-test-tag", payload: a } });
5225
+ if (!Xi) throw new Error("please add Sailfish event after start recording");
5226
+ qi({ type: e, data: { tag: "sailfish-zendesk-test-tag", payload: a } });
5200
5227
  }, ae.freezePage = () => {
5201
- Mi.forEach((e) => e.freeze());
5228
+ gi.forEach((e) => e.freeze());
5202
5229
  }, ae.takeFullSnapshot = (e) => {
5203
- if (!ea) throw new Error("please take full snapshot after start recording");
5204
- Xi(e);
5205
- }, ae.mirror = na;
5206
- var ra = { exports: {} }, oa = String, Lo = function() {
5207
- return { isColorSupported: false, reset: oa, bold: oa, dim: oa, italic: oa, underline: oa, inverse: oa, hidden: oa, strikethrough: oa, black: oa, red: oa, green: oa, yellow: oa, blue: oa, magenta: oa, cyan: oa, white: oa, gray: oa, bgBlack: oa, bgRed: oa, bgGreen: oa, bgYellow: oa, bgBlue: oa, bgMagenta: oa, bgCyan: oa, bgWhite: oa, blackBright: oa, redBright: oa, greenBright: oa, yellowBright: oa, blueBright: oa, magentaBright: oa, cyanBright: oa, whiteBright: oa, bgBlackBright: oa, bgRedBright: oa, bgGreenBright: oa, bgYellowBright: oa, bgBlueBright: oa, bgMagentaBright: oa, bgCyanBright: oa, bgWhiteBright: oa };
5230
+ if (!Xi) throw new Error("please take full snapshot after start recording");
5231
+ Hi(e);
5232
+ }, ae.mirror = ea;
5233
+ var ta = { exports: {} }, na = String, Lo = function() {
5234
+ return { isColorSupported: false, reset: na, bold: na, dim: na, italic: na, underline: na, inverse: na, hidden: na, strikethrough: na, black: na, red: na, green: na, yellow: na, blue: na, magenta: na, cyan: na, white: na, gray: na, bgBlack: na, bgRed: na, bgGreen: na, bgYellow: na, bgBlue: na, bgMagenta: na, bgCyan: na, bgWhite: na, blackBright: na, redBright: na, greenBright: na, yellowBright: na, blueBright: na, magentaBright: na, cyanBright: na, whiteBright: na, bgBlackBright: na, bgRedBright: na, bgGreenBright: na, bgYellowBright: na, bgBlueBright: na, bgMagentaBright: na, bgCyanBright: na, bgWhiteBright: na };
5208
5235
  };
5209
- ra.exports = Lo(), ra.exports.createColors = Lo;
5210
- var sa = ra.exports;
5211
- const ia = vu(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
5212
- let aa = sa, la = ia, ca = class To extends Error {
5236
+ ta.exports = Lo(), ta.exports.createColors = Lo;
5237
+ var ra = ta.exports;
5238
+ const oa = vu(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
5239
+ let sa = ra, ia = oa, aa = class To extends Error {
5213
5240
  constructor(e, a, u, m2, w2, b2) {
5214
5241
  super(e), this.name = "CssSyntaxError", this.reason = e, w2 && (this.file = w2), m2 && (this.source = m2), b2 && (this.plugin = b2), typeof a < "u" && typeof u < "u" && ("number" == typeof a ? (this.line = a, this.column = u) : (this.line = a.line, this.column = a.column, this.endLine = u.line, this.endColumn = u.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, To);
5215
5242
  }
@@ -5219,11 +5246,11 @@ let aa = sa, la = ia, ca = class To extends Error {
5219
5246
  showSourceCode(e) {
5220
5247
  if (!this.source) return "";
5221
5248
  let a = this.source;
5222
- null == e && (e = aa.isColorSupported);
5249
+ null == e && (e = sa.isColorSupported);
5223
5250
  let n = (e2) => e2, r = (e2) => e2, i = (e2) => e2;
5224
5251
  if (e) {
5225
- let { bold: e2, gray: a2, red: u2 } = aa.createColors(true);
5226
- r = (a3) => e2(u2(a3)), n = (e3) => a2(e3), la && (i = (e3) => la(e3));
5252
+ let { bold: e2, gray: a2, red: u2 } = sa.createColors(true);
5253
+ r = (a3) => e2(u2(a3)), n = (e3) => a2(e3), ia && (i = (e3) => ia(e3));
5227
5254
  }
5228
5255
  let u = a.split(/\r?\n/), m2 = Math.max(this.line - 3, 0), w2 = Math.min(this.line + 2, u.length), b2 = String(w2).length;
5229
5256
  return u.slice(m2, w2).map((e2, a2) => {
@@ -5244,10 +5271,10 @@ let aa = sa, la = ia, ca = class To extends Error {
5244
5271
  return e && (e = "\n\n" + e + "\n"), this.name + ": " + this.message + e;
5245
5272
  }
5246
5273
  };
5247
- var ua = ca;
5248
- ca.default = ca;
5249
- const pa = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
5250
- let ha = class {
5274
+ var la = aa;
5275
+ aa.default = aa;
5276
+ const ca = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
5277
+ let ua = class {
5251
5278
  constructor(e) {
5252
5279
  this.builder = e;
5253
5280
  }
@@ -5299,7 +5326,7 @@ let ha = class {
5299
5326
  if (u || (u = a), a && (m2 = e.raws[a], typeof m2 < "u")) return m2;
5300
5327
  let w2 = e.parent;
5301
5328
  if ("before" === u && (!w2 || "root" === w2.type && w2.first === e || w2 && "document" === w2.type)) return "";
5302
- if (!w2) return pa[u];
5329
+ if (!w2) return ca[u];
5303
5330
  let b2 = e.root();
5304
5331
  if (b2.rawCache || (b2.rawCache = {}), typeof b2.rawCache[u] < "u") return b2.rawCache[u];
5305
5332
  if ("before" === u || "after" === u) return this.beforeAfter(e, u);
@@ -5311,7 +5338,7 @@ let ha = class {
5311
5338
  if (m2 = e2.raws[a], typeof m2 < "u") return false;
5312
5339
  });
5313
5340
  }
5314
- return typeof m2 > "u" && (m2 = pa[u]), b2.rawCache[u] = m2, m2;
5341
+ return typeof m2 > "u" && (m2 = ca[u]), b2.rawCache[u] = m2, m2;
5315
5342
  }
5316
5343
  rawBeforeClose(e) {
5317
5344
  let a;
@@ -5387,17 +5414,17 @@ let ha = class {
5387
5414
  this[e.type](e, a);
5388
5415
  }
5389
5416
  };
5390
- var fa = ha;
5391
- ha.default = ha;
5392
- let ma = fa;
5417
+ var pa = ua;
5418
+ ua.default = ua;
5419
+ let ha = pa;
5393
5420
  function zs(e, a) {
5394
- new ma(a).stringify(e);
5421
+ new ha(a).stringify(e);
5395
5422
  }
5396
- var ga = zs;
5423
+ var fa = zs;
5397
5424
  zs.default = zs;
5398
- var ya = {};
5399
- ya.isClean = Symbol("isClean"), ya.my = Symbol("my");
5400
- let wa = ua, Sa = fa, ba = ga, { isClean: va, my: Ca } = ya;
5425
+ var ma = {};
5426
+ ma.isClean = Symbol("isClean"), ma.my = Symbol("my");
5427
+ let ga = la, ya = pa, wa = fa, { isClean: Sa, my: ba } = ma;
5401
5428
  function Bs(e, a) {
5402
5429
  let u = new e.constructor();
5403
5430
  for (let m2 in e) {
@@ -5419,12 +5446,12 @@ function Fe(e, a) {
5419
5446
  }
5420
5447
  return w2;
5421
5448
  }
5422
- let ka = class {
5449
+ let va = class {
5423
5450
  get proxyOf() {
5424
5451
  return this;
5425
5452
  }
5426
5453
  constructor(e = {}) {
5427
- this.raws = {}, this[va] = false, this[Ca] = true;
5454
+ this.raws = {}, this[Sa] = false, this[ba] = true;
5428
5455
  for (let a in e) if ("nodes" === a) {
5429
5456
  this.nodes = [];
5430
5457
  for (let u of e[a]) "function" == typeof u.clone ? this.append(u.clone()) : this.append(u);
@@ -5468,19 +5495,19 @@ let ka = class {
5468
5495
  let { end: u, start: m2 } = this.rangeBy(a);
5469
5496
  return this.source.input.error(e, { column: m2.column, line: m2.line }, { column: u.column, line: u.line }, a);
5470
5497
  }
5471
- return new wa(e);
5498
+ return new ga(e);
5472
5499
  }
5473
5500
  getProxyProcessor() {
5474
5501
  return { get: (e, a) => "proxyOf" === a ? e : "root" === a ? () => e.root().toProxy() : e[a], set: (e, a, u) => (e[a] === u || (e[a] = u, ("prop" === a || "value" === a || "name" === a || "params" === a || "important" === a || "text" === a) && e.markDirty()), true) };
5475
5502
  }
5476
5503
  markClean() {
5477
- this[va] = true;
5504
+ this[Sa] = true;
5478
5505
  }
5479
5506
  markDirty() {
5480
- if (this[va]) {
5481
- this[va] = false;
5507
+ if (this[Sa]) {
5508
+ this[Sa] = false;
5482
5509
  let e = this;
5483
- for (; e = e.parent; ) e[va] = false;
5510
+ for (; e = e.parent; ) e[Sa] = false;
5484
5511
  }
5485
5512
  }
5486
5513
  next() {
@@ -5516,7 +5543,7 @@ let ka = class {
5516
5543
  return (u.line < a.line || u.line === a.line && u.column <= a.column) && (u = { column: a.column + 1, line: a.line }), { end: u, start: a };
5517
5544
  }
5518
5545
  raw(e, a) {
5519
- return new Sa().raw(this, e, a);
5546
+ return new ya().raw(this, e, a);
5520
5547
  }
5521
5548
  remove() {
5522
5549
  return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
@@ -5553,7 +5580,7 @@ let ka = class {
5553
5580
  toProxy() {
5554
5581
  return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache;
5555
5582
  }
5556
- toString(e = ba) {
5583
+ toString(e = wa) {
5557
5584
  e.stringify && (e = e.stringify);
5558
5585
  let a = "";
5559
5586
  return e(this, (e2) => {
@@ -5566,16 +5593,16 @@ let ka = class {
5566
5593
  return e.warn(a, m2);
5567
5594
  }
5568
5595
  };
5569
- var xa = ka;
5570
- ka.default = ka;
5571
- let Ma = xa, Ia = class extends Ma {
5596
+ var Ca = va;
5597
+ va.default = va;
5598
+ let ka = Ca, xa = class extends ka {
5572
5599
  constructor(e) {
5573
5600
  super(e), this.type = "comment";
5574
5601
  }
5575
5602
  };
5576
- var _a = Ia;
5577
- Ia.default = Ia;
5578
- let Oa = xa, Ea = class extends Oa {
5603
+ var Ma = xa;
5604
+ xa.default = xa;
5605
+ let Ia = Ca, _a = class extends Ia {
5579
5606
  get variable() {
5580
5607
  return this.prop.startsWith("--") || "$" === this.prop[0];
5581
5608
  }
@@ -5583,16 +5610,16 @@ let Oa = xa, Ea = class extends Oa {
5583
5610
  e && typeof e.value < "u" && "string" != typeof e.value && (e = { ...e, value: String(e.value) }), super(e), this.type = "decl";
5584
5611
  }
5585
5612
  };
5586
- var La = Ea;
5587
- Ea.default = Ea;
5588
- let Ra, Aa, Ta, Na, Pa = _a, Da = La, Fa = xa, { isClean: Ua, my: Ba } = ya;
5613
+ var Oa = _a;
5614
+ _a.default = _a;
5615
+ let Ea, La, Ra, Aa, Ta = Ma, Na = Oa, Pa = Ca, { isClean: Da, my: Fa } = ma;
5589
5616
  function Wo(e) {
5590
5617
  return e.map((e2) => (e2.nodes && (e2.nodes = Wo(e2.nodes)), delete e2.source, e2));
5591
5618
  }
5592
5619
  function zo(e) {
5593
- if (e[Ua] = false, e.proxyOf.nodes) for (let a of e.proxyOf.nodes) zo(a);
5620
+ if (e[Da] = false, e.proxyOf.nodes) for (let a of e.proxyOf.nodes) zo(a);
5594
5621
  }
5595
- let $a = class Bo extends Fa {
5622
+ let Ua = class Bo extends Pa {
5596
5623
  get first() {
5597
5624
  if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
5598
5625
  }
@@ -5644,7 +5671,7 @@ let $a = class Bo extends Fa {
5644
5671
  return this.markDirty(), this;
5645
5672
  }
5646
5673
  normalize(e, a) {
5647
- if ("string" == typeof e) e = Wo(Aa(e).nodes);
5674
+ if ("string" == typeof e) e = Wo(La(e).nodes);
5648
5675
  else if (typeof e > "u") e = [];
5649
5676
  else if (Array.isArray(e)) {
5650
5677
  e = e.slice(0);
@@ -5655,14 +5682,14 @@ let $a = class Bo extends Fa {
5655
5682
  } else if (e.type) e = [e];
5656
5683
  else if (e.prop) {
5657
5684
  if (typeof e.value > "u") throw new Error("Value field is missed in node creation");
5658
- "string" != typeof e.value && (e.value = String(e.value)), e = [new Da(e)];
5659
- } else if (e.selector || e.selectors) e = [new Na(e)];
5660
- else if (e.name) e = [new Ra(e)];
5685
+ "string" != typeof e.value && (e.value = String(e.value)), e = [new Na(e)];
5686
+ } else if (e.selector || e.selectors) e = [new Aa(e)];
5687
+ else if (e.name) e = [new Ea(e)];
5661
5688
  else {
5662
5689
  if (!e.text) throw new Error("Unknown node type in node creation");
5663
- e = [new Pa(e)];
5690
+ e = [new Ta(e)];
5664
5691
  }
5665
- return e.map((e2) => (e2[Ba] || Bo.rebuild(e2), (e2 = e2.proxyOf).parent && e2.parent.removeChild(e2), e2[Ua] && zo(e2), e2.raws || (e2.raws = {}), typeof e2.raws.before > "u" && a && typeof a.raws.before < "u" && (e2.raws.before = a.raws.before.replace(/\S/g, "")), e2.parent = this.proxyOf, e2));
5692
+ return e.map((e2) => (e2[Fa] || Bo.rebuild(e2), (e2 = e2.proxyOf).parent && e2.parent.removeChild(e2), e2[Da] && zo(e2), e2.raws || (e2.raws = {}), typeof e2.raws.before > "u" && a && typeof a.raws.before < "u" && (e2.raws.before = a.raws.before.replace(/\S/g, "")), e2.parent = this.proxyOf, e2));
5666
5693
  }
5667
5694
  prepend(...e) {
5668
5695
  e = e.reverse();
@@ -5738,22 +5765,22 @@ let $a = class Bo extends Fa {
5738
5765
  }));
5739
5766
  }
5740
5767
  };
5741
- $a.registerParse = (e) => {
5768
+ Ua.registerParse = (e) => {
5769
+ La = e;
5770
+ }, Ua.registerRule = (e) => {
5742
5771
  Aa = e;
5743
- }, $a.registerRule = (e) => {
5744
- Na = e;
5745
- }, $a.registerAtRule = (e) => {
5772
+ }, Ua.registerAtRule = (e) => {
5773
+ Ea = e;
5774
+ }, Ua.registerRoot = (e) => {
5746
5775
  Ra = e;
5747
- }, $a.registerRoot = (e) => {
5748
- Ta = e;
5749
5776
  };
5750
- var Wa = $a;
5751
- $a.default = $a, $a.rebuild = (e) => {
5752
- "atrule" === e.type ? Object.setPrototypeOf(e, Ra.prototype) : "rule" === e.type ? Object.setPrototypeOf(e, Na.prototype) : "decl" === e.type ? Object.setPrototypeOf(e, Da.prototype) : "comment" === e.type ? Object.setPrototypeOf(e, Pa.prototype) : "root" === e.type && Object.setPrototypeOf(e, Ta.prototype), e[Ba] = true, e.nodes && e.nodes.forEach((e2) => {
5753
- $a.rebuild(e2);
5777
+ var Ba = Ua;
5778
+ Ua.default = Ua, Ua.rebuild = (e) => {
5779
+ "atrule" === e.type ? Object.setPrototypeOf(e, Ea.prototype) : "rule" === e.type ? Object.setPrototypeOf(e, Aa.prototype) : "decl" === e.type ? Object.setPrototypeOf(e, Na.prototype) : "comment" === e.type ? Object.setPrototypeOf(e, Ta.prototype) : "root" === e.type && Object.setPrototypeOf(e, Ra.prototype), e[Fa] = true, e.nodes && e.nodes.forEach((e2) => {
5780
+ Ua.rebuild(e2);
5754
5781
  });
5755
5782
  };
5756
- let za = Wa, ja = class extends za {
5783
+ let $a = Ba, Wa = class extends $a {
5757
5784
  constructor(e) {
5758
5785
  super(e), this.type = "atrule";
5759
5786
  }
@@ -5764,38 +5791,38 @@ let za = Wa, ja = class extends za {
5764
5791
  return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e);
5765
5792
  }
5766
5793
  };
5767
- var Ga = ja;
5768
- ja.default = ja, za.registerAtRule(ja);
5769
- let Va, qa, Za = Wa, Ka = class extends Za {
5794
+ var za = Wa;
5795
+ Wa.default = Wa, $a.registerAtRule(Wa);
5796
+ let ja, Ga, Va = Ba, qa = class extends Va {
5770
5797
  constructor(e) {
5771
5798
  super({ type: "document", ...e }), this.nodes || (this.nodes = []);
5772
5799
  }
5773
5800
  toResult(e = {}) {
5774
- return new Va(new qa(), this, e).stringify();
5801
+ return new ja(new Ga(), this, e).stringify();
5775
5802
  }
5776
5803
  };
5777
- Ka.registerLazyResult = (e) => {
5778
- Va = e;
5779
- }, Ka.registerProcessor = (e) => {
5780
- qa = e;
5804
+ qa.registerLazyResult = (e) => {
5805
+ ja = e;
5806
+ }, qa.registerProcessor = (e) => {
5807
+ Ga = e;
5781
5808
  };
5782
- var Ja = Ka;
5783
- Ka.default = Ka;
5784
- var Ya = { nanoid: (e = 21) => {
5809
+ var Za = qa;
5810
+ qa.default = qa;
5811
+ var Ka = { nanoid: (e = 21) => {
5785
5812
  let a = "", u = 0 | e;
5786
5813
  for (; u--; ) a += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64 * Math.random() | 0];
5787
5814
  return a;
5788
5815
  } };
5789
- let { existsSync: Qa, readFileSync: el } = ia, { dirname: tl, join: nl } = ia, { SourceMapConsumer: rl, SourceMapGenerator: ol } = ia;
5790
- let sl = class {
5816
+ let { existsSync: Ja, readFileSync: Ya } = oa, { dirname: Qa, join: el } = oa, { SourceMapConsumer: tl, SourceMapGenerator: nl } = oa;
5817
+ let rl = class {
5791
5818
  constructor(e, a) {
5792
5819
  if (false === a.map) return;
5793
5820
  this.loadAnnotation(e), this.inline = this.startWith(this.annotation, "data:");
5794
5821
  let u = a.map ? a.map.prev : void 0, m2 = this.loadMap(a.from, u);
5795
- !this.mapFile && a.from && (this.mapFile = a.from), this.mapFile && (this.root = tl(this.mapFile)), m2 && (this.text = m2);
5822
+ !this.mapFile && a.from && (this.mapFile = a.from), this.mapFile && (this.root = Qa(this.mapFile)), m2 && (this.text = m2);
5796
5823
  }
5797
5824
  consumer() {
5798
- return this.consumerCache || (this.consumerCache = new rl(this.text)), this.consumerCache;
5825
+ return this.consumerCache || (this.consumerCache = new tl(this.text)), this.consumerCache;
5799
5826
  }
5800
5827
  decodeInline(e) {
5801
5828
  let a = e.match(/^data:application\/json;charset=utf-?8,/) || e.match(/^data:application\/json,/);
@@ -5820,15 +5847,15 @@ let sl = class {
5820
5847
  u > -1 && m2 > -1 && (this.annotation = this.getAnnotationURL(e.substring(u, m2)));
5821
5848
  }
5822
5849
  loadFile(e) {
5823
- if (this.root = tl(e), Qa(e)) return this.mapFile = e, el(e, "utf-8").toString().trim();
5850
+ if (this.root = Qa(e), Ja(e)) return this.mapFile = e, Ya(e, "utf-8").toString().trim();
5824
5851
  }
5825
5852
  loadMap(e, a) {
5826
5853
  if (false === a) return false;
5827
5854
  if (a) {
5828
5855
  if ("string" == typeof a) return a;
5829
5856
  if ("function" != typeof a) {
5830
- if (a instanceof rl) return ol.fromSourceMap(a).toString();
5831
- if (a instanceof ol) return a.toString();
5857
+ if (a instanceof tl) return nl.fromSourceMap(a).toString();
5858
+ if (a instanceof nl) return a.toString();
5832
5859
  if (this.isMap(a)) return JSON.stringify(a);
5833
5860
  throw new Error("Unsupported previous source map format: " + a.toString());
5834
5861
  }
@@ -5844,7 +5871,7 @@ let sl = class {
5844
5871
  if (this.inline) return this.decodeInline(this.annotation);
5845
5872
  if (this.annotation) {
5846
5873
  let a2 = this.annotation;
5847
- return e && (a2 = nl(tl(e), a2)), this.loadFile(a2);
5874
+ return e && (a2 = el(Qa(e), a2)), this.loadFile(a2);
5848
5875
  }
5849
5876
  }
5850
5877
  }
@@ -5855,23 +5882,23 @@ let sl = class {
5855
5882
  return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
5856
5883
  }
5857
5884
  };
5858
- var il = sl;
5859
- sl.default = sl;
5860
- let { nanoid: al } = Ya, { isAbsolute: ll, resolve: cl } = ia, { SourceMapConsumer: ul, SourceMapGenerator: pl } = ia, { fileURLToPath: dl, pathToFileURL: hl } = ia, fl = ua, ml = il, gl = ia, yl = Symbol("fromOffsetCache"), wl = !(!ul || !pl), Sl = !(!cl || !ll), bl = class {
5885
+ var ol = rl;
5886
+ rl.default = rl;
5887
+ let { nanoid: sl } = Ka, { isAbsolute: il, resolve: al } = oa, { SourceMapConsumer: ll, SourceMapGenerator: cl } = oa, { fileURLToPath: ul, pathToFileURL: pl } = oa, dl = la, hl = ol, fl = oa, ml = Symbol("fromOffsetCache"), gl = !(!ll || !cl), yl = !(!al || !il), wl = class {
5861
5888
  get from() {
5862
5889
  return this.file || this.id;
5863
5890
  }
5864
5891
  constructor(e, a = {}) {
5865
5892
  if (null === e || typeof e > "u" || "object" == typeof e && !e.toString) throw new Error(`PostCSS received ${e} instead of CSS string`);
5866
- if (this.css = e.toString(), "\uFEFF" === this.css[0] || "￾" === this.css[0] ? (this.hasBOM = true, this.css = this.css.slice(1)) : this.hasBOM = false, this.document = this.css, a.document && (this.document = a.document.toString()), a.from && (!Sl || /^\w+:\/\//.test(a.from) || ll(a.from) ? this.file = a.from : this.file = cl(a.from)), Sl && wl) {
5867
- let e2 = new ml(this.css, a);
5893
+ if (this.css = e.toString(), "\uFEFF" === this.css[0] || "￾" === this.css[0] ? (this.hasBOM = true, this.css = this.css.slice(1)) : this.hasBOM = false, this.document = this.css, a.document && (this.document = a.document.toString()), a.from && (!yl || /^\w+:\/\//.test(a.from) || il(a.from) ? this.file = a.from : this.file = al(a.from)), yl && gl) {
5894
+ let e2 = new hl(this.css, a);
5868
5895
  if (e2.text) {
5869
5896
  this.map = e2;
5870
5897
  let a2 = e2.consumer().file;
5871
5898
  !this.file && a2 && (this.file = this.mapResolve(a2));
5872
5899
  }
5873
5900
  }
5874
- this.file || (this.id = "<input css " + al(6) + ">"), this.map && (this.map.file = this.from);
5901
+ this.file || (this.id = "<input css " + sl(6) + ">"), this.map && (this.map.file = this.from);
5875
5902
  }
5876
5903
  error(e, a, u, m2 = {}) {
5877
5904
  let w2, b2, C2;
@@ -5890,17 +5917,17 @@ let { nanoid: al } = Ya, { isAbsolute: ll, resolve: cl } = ia, { SourceMapConsum
5890
5917
  a = e2.line, u = e2.col;
5891
5918
  }
5892
5919
  let x2 = this.origin(a, u, b2, w2);
5893
- return C2 = x2 ? new fl(e, void 0 === x2.endLine ? x2.line : { column: x2.column, line: x2.line }, void 0 === x2.endLine ? x2.column : { column: x2.endColumn, line: x2.endLine }, x2.source, x2.file, m2.plugin) : new fl(e, void 0 === b2 ? a : { column: u, line: a }, void 0 === b2 ? u : { column: w2, line: b2 }, this.css, this.file, m2.plugin), C2.input = { column: u, endColumn: w2, endLine: b2, line: a, source: this.css }, this.file && (hl && (C2.input.url = hl(this.file).toString()), C2.input.file = this.file), C2;
5920
+ return C2 = x2 ? new dl(e, void 0 === x2.endLine ? x2.line : { column: x2.column, line: x2.line }, void 0 === x2.endLine ? x2.column : { column: x2.endColumn, line: x2.endLine }, x2.source, x2.file, m2.plugin) : new dl(e, void 0 === b2 ? a : { column: u, line: a }, void 0 === b2 ? u : { column: w2, line: b2 }, this.css, this.file, m2.plugin), C2.input = { column: u, endColumn: w2, endLine: b2, line: a, source: this.css }, this.file && (pl && (C2.input.url = pl(this.file).toString()), C2.input.file = this.file), C2;
5894
5921
  }
5895
5922
  fromOffset(e) {
5896
5923
  let a, u;
5897
- if (this[yl]) u = this[yl];
5924
+ if (this[ml]) u = this[ml];
5898
5925
  else {
5899
5926
  let e2 = this.css.split("\n");
5900
5927
  u = new Array(e2.length);
5901
5928
  let a2 = 0;
5902
5929
  for (let m3 = 0, w2 = e2.length; m3 < w2; m3++) u[m3] = a2, a2 += e2[m3].length + 1;
5903
- this[yl] = u;
5930
+ this[ml] = u;
5904
5931
  }
5905
5932
  a = u[u.length - 1];
5906
5933
  let m2 = 0;
@@ -5919,17 +5946,17 @@ let { nanoid: al } = Ya, { isAbsolute: ll, resolve: cl } = ia, { SourceMapConsum
5919
5946
  return { col: e - u[m2] + 1, line: m2 + 1 };
5920
5947
  }
5921
5948
  mapResolve(e) {
5922
- return /^\w+:\/\//.test(e) ? e : cl(this.map.consumer().sourceRoot || this.map.root || ".", e);
5949
+ return /^\w+:\/\//.test(e) ? e : al(this.map.consumer().sourceRoot || this.map.root || ".", e);
5923
5950
  }
5924
5951
  origin(e, a, u, m2) {
5925
5952
  if (!this.map) return false;
5926
5953
  let w2, b2, C2 = this.map.consumer(), x2 = C2.originalPositionFor({ column: a, line: e });
5927
5954
  if (!x2.source) return false;
5928
- "number" == typeof u && (w2 = C2.originalPositionFor({ column: m2, line: u })), b2 = ll(x2.source) ? hl(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || hl(this.map.mapFile));
5955
+ "number" == typeof u && (w2 = C2.originalPositionFor({ column: m2, line: u })), b2 = il(x2.source) ? pl(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || pl(this.map.mapFile));
5929
5956
  let I2 = { column: x2.column, endColumn: w2 && w2.column, endLine: w2 && w2.line, line: x2.line, url: b2.toString() };
5930
5957
  if ("file:" === b2.protocol) {
5931
- if (!dl) throw new Error("file: protocol is not available in this PostCSS build");
5932
- I2.file = dl(b2);
5958
+ if (!ul) throw new Error("file: protocol is not available in this PostCSS build");
5959
+ I2.file = ul(b2);
5933
5960
  }
5934
5961
  let _2 = C2.sourceContentFor(x2.source);
5935
5962
  return _2 && (I2.source = _2), I2;
@@ -5940,9 +5967,9 @@ let { nanoid: al } = Ya, { isAbsolute: ll, resolve: cl } = ia, { SourceMapConsum
5940
5967
  return this.map && (e.map = { ...this.map }, e.map.consumerCache && (e.map.consumerCache = void 0)), e;
5941
5968
  }
5942
5969
  };
5943
- var vl = bl;
5944
- bl.default = bl, gl && gl.registerInput && gl.registerInput(bl);
5945
- let Cl, kl, xl = Wa, Ml = class extends xl {
5970
+ var Sl = wl;
5971
+ wl.default = wl, fl && fl.registerInput && fl.registerInput(wl);
5972
+ let bl, vl, Cl = Ba, kl = class extends Cl {
5946
5973
  constructor(e) {
5947
5974
  super(e), this.type = "root", this.nodes || (this.nodes = []);
5948
5975
  }
@@ -5959,29 +5986,29 @@ let Cl, kl, xl = Wa, Ml = class extends xl {
5959
5986
  return !a && 0 === u && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[u].raws.before), super.removeChild(e);
5960
5987
  }
5961
5988
  toResult(e = {}) {
5962
- return new Cl(new kl(), this, e).stringify();
5989
+ return new bl(new vl(), this, e).stringify();
5963
5990
  }
5964
5991
  };
5965
- Ml.registerLazyResult = (e) => {
5966
- Cl = e;
5967
- }, Ml.registerProcessor = (e) => {
5968
- kl = e;
5992
+ kl.registerLazyResult = (e) => {
5993
+ bl = e;
5994
+ }, kl.registerProcessor = (e) => {
5995
+ vl = e;
5969
5996
  };
5970
- var Il = Ml;
5971
- Ml.default = Ml, xl.registerRoot(Ml);
5972
- let Ol = { comma: (e) => Ol.split(e, [","], true), space(e) {
5997
+ var xl = kl;
5998
+ kl.default = kl, Cl.registerRoot(kl);
5999
+ let Ml = { comma: (e) => Ml.split(e, [","], true), space(e) {
5973
6000
  let a = [" ", "\n", " "];
5974
- return Ol.split(e, a);
6001
+ return Ml.split(e, a);
5975
6002
  }, split(e, a, u) {
5976
6003
  let m2 = [], w2 = "", b2 = false, C2 = 0, x2 = false, I2 = "", _2 = false;
5977
6004
  for (let u2 of e) _2 ? _2 = false : "\\" === u2 ? _2 = true : x2 ? u2 === I2 && (x2 = false) : '"' === u2 || "'" === u2 ? (x2 = true, I2 = u2) : "(" === u2 ? C2 += 1 : ")" === u2 ? C2 > 0 && (C2 -= 1) : 0 === C2 && a.includes(u2) && (b2 = true), b2 ? ("" !== w2 && m2.push(w2.trim()), w2 = "", b2 = false) : w2 += u2;
5978
6005
  return (u || "" !== w2) && m2.push(w2.trim()), m2;
5979
6006
  } };
5980
- var El = Ol;
5981
- Ol.default = Ol;
5982
- let Ll = Wa, Rl = El, Al = class extends Ll {
6007
+ var Il = Ml;
6008
+ Ml.default = Ml;
6009
+ let Ol = Ba, El = Il, Ll = class extends Ol {
5983
6010
  get selectors() {
5984
- return Rl.comma(this.selector);
6011
+ return El.comma(this.selector);
5985
6012
  }
5986
6013
  set selectors(e) {
5987
6014
  let a = this.selector ? this.selector.match(/,\s*/) : null, u = a ? a[0] : "," + this.raw("between", "beforeOpen");
@@ -5991,34 +6018,34 @@ let Ll = Wa, Rl = El, Al = class extends Ll {
5991
6018
  super(e), this.type = "rule", this.nodes || (this.nodes = []);
5992
6019
  }
5993
6020
  };
5994
- var Tl = Al;
5995
- Al.default = Al, Ll.registerRule(Al);
5996
- let Nl = Ga, Pl = _a, Dl = La, Jl = vl, ec = il, tc = Il, nc = Tl;
6021
+ var Rl = Ll;
6022
+ Ll.default = Ll, Ol.registerRule(Ll);
6023
+ let Al = za, Tl = Ma, Nl = Oa, Pl = Sl, Dl = ol, Jl = xl, ec = Rl;
5997
6024
  function Ke(e, a) {
5998
6025
  if (Array.isArray(e)) return e.map((e2) => Ke(e2));
5999
6026
  let { inputs: u, ...m2 } = e;
6000
6027
  if (u) {
6001
6028
  a = [];
6002
6029
  for (let e2 of u) {
6003
- let u2 = { ...e2, __proto__: Jl.prototype };
6004
- u2.map && (u2.map = { ...u2.map, __proto__: ec.prototype }), a.push(u2);
6030
+ let u2 = { ...e2, __proto__: Pl.prototype };
6031
+ u2.map && (u2.map = { ...u2.map, __proto__: Dl.prototype }), a.push(u2);
6005
6032
  }
6006
6033
  }
6007
6034
  if (m2.nodes && (m2.nodes = e.nodes.map((e2) => Ke(e2, a))), m2.source) {
6008
6035
  let { inputId: e2, ...u2 } = m2.source;
6009
6036
  m2.source = u2, null != e2 && (m2.source.input = a[e2]);
6010
6037
  }
6011
- if ("root" === m2.type) return new tc(m2);
6012
- if ("decl" === m2.type) return new Dl(m2);
6013
- if ("rule" === m2.type) return new nc(m2);
6014
- if ("comment" === m2.type) return new Pl(m2);
6015
- if ("atrule" === m2.type) return new Nl(m2);
6038
+ if ("root" === m2.type) return new Jl(m2);
6039
+ if ("decl" === m2.type) return new Nl(m2);
6040
+ if ("rule" === m2.type) return new ec(m2);
6041
+ if ("comment" === m2.type) return new Tl(m2);
6042
+ if ("atrule" === m2.type) return new Al(m2);
6016
6043
  throw new Error("Unknown node type: " + e.type);
6017
6044
  }
6018
- var rc = Ke;
6045
+ var tc = Ke;
6019
6046
  Ke.default = Ke;
6020
- let { dirname: oc, relative: sc, resolve: ic, sep: ac } = ia, { SourceMapConsumer: lc, SourceMapGenerator: cc } = ia, { pathToFileURL: uc } = ia, pc = vl, dc = !(!lc || !cc), hc = !!(oc && ic && sc && ac);
6021
- var fc = class {
6047
+ let { dirname: nc, relative: rc, resolve: oc, sep: sc } = oa, { SourceMapConsumer: ic, SourceMapGenerator: ac } = oa, { pathToFileURL: lc } = oa, cc = Sl, uc = !(!ic || !ac), pc = !!(nc && oc && rc && sc);
6048
+ var dc = class {
6022
6049
  constructor(e, a, u, m2) {
6023
6050
  this.stringify = e, this.mapOpts = u.map || {}, this.root = a, this.opts = u, this.css = m2, this.originalCSS = m2, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
6024
6051
  }
@@ -6030,8 +6057,8 @@ var fc = class {
6030
6057
  }
6031
6058
  applyPrevMaps() {
6032
6059
  for (let e of this.previous()) {
6033
- let a, u = this.toUrl(this.path(e.file)), m2 = e.root || oc(e.file);
6034
- false === this.mapOpts.sourcesContent ? (a = new lc(e.text), a.sourcesContent && (a.sourcesContent = null)) : a = e.consumer(), this.map.applySourceMap(a, u, this.toUrl(this.path(m2)));
6060
+ let a, u = this.toUrl(this.path(e.file)), m2 = e.root || nc(e.file);
6061
+ false === this.mapOpts.sourcesContent ? (a = new ic(e.text), a.sourcesContent && (a.sourcesContent = null)) : a = e.consumer(), this.map.applySourceMap(a, u, this.toUrl(this.path(m2)));
6035
6062
  }
6036
6063
  }
6037
6064
  clearAnnotation() {
@@ -6041,7 +6068,7 @@ var fc = class {
6041
6068
  } else this.css && (this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, ""));
6042
6069
  }
6043
6070
  generate() {
6044
- if (this.clearAnnotation(), hc && dc && this.isMap()) return this.generateMap();
6071
+ if (this.clearAnnotation(), pc && uc && this.isMap()) return this.generateMap();
6045
6072
  {
6046
6073
  let e = "";
6047
6074
  return this.stringify(this.root, (a) => {
@@ -6053,12 +6080,12 @@ var fc = class {
6053
6080
  if (this.root) this.generateString();
6054
6081
  else if (1 === this.previous().length) {
6055
6082
  let e = this.previous()[0].consumer();
6056
- e.file = this.outputFile(), this.map = cc.fromSourceMap(e, { ignoreInvalidMapping: true });
6057
- } else this.map = new cc({ file: this.outputFile(), ignoreInvalidMapping: true }), this.map.addMapping({ generated: { column: 0, line: 1 }, original: { column: 0, line: 1 }, source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>" });
6083
+ e.file = this.outputFile(), this.map = ac.fromSourceMap(e, { ignoreInvalidMapping: true });
6084
+ } else this.map = new ac({ file: this.outputFile(), ignoreInvalidMapping: true }), this.map.addMapping({ generated: { column: 0, line: 1 }, original: { column: 0, line: 1 }, source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>" });
6058
6085
  return this.isSourcesContent() && this.setSourcesContent(), this.root && this.previous().length > 0 && this.applyPrevMaps(), this.isAnnotation() && this.addAnnotation(), this.isInline() ? [this.css] : [this.css, this.map];
6059
6086
  }
6060
6087
  generateString() {
6061
- this.css = "", this.map = new cc({ file: this.outputFile(), ignoreInvalidMapping: true });
6088
+ this.css = "", this.map = new ac({ file: this.outputFile(), ignoreInvalidMapping: true });
6062
6089
  let e, a, u = 1, m2 = 1, w2 = "<no source>", b2 = { generated: { column: 0, line: 0 }, original: { column: 0, line: 0 }, source: "" };
6063
6090
  this.stringify(this.root, (C2, x2, I2) => {
6064
6091
  if (this.css += C2, x2 && "end" !== I2 && (b2.generated.line = u, b2.generated.column = m2 - 1, x2.source && x2.source.start ? (b2.source = this.sourcePath(x2), b2.original.line = x2.source.start.line, b2.original.column = x2.source.start.column - 1, this.map.addMapping(b2)) : (b2.source = w2, b2.original.line = 1, b2.original.column = 0, this.map.addMapping(b2))), a = C2.match(/\n/g), a ? (u += a.length, e = C2.lastIndexOf("\n"), m2 = C2.length - e) : m2 += C2.length, x2 && "start" !== I2) {
@@ -6088,9 +6115,9 @@ var fc = class {
6088
6115
  if (this.mapOpts.absolute || 60 === e.charCodeAt(0) || /^\w+:\/\//.test(e)) return e;
6089
6116
  let a = this.memoizedPaths.get(e);
6090
6117
  if (a) return a;
6091
- let u = this.opts.to ? oc(this.opts.to) : ".";
6092
- "string" == typeof this.mapOpts.annotation && (u = oc(ic(u, this.mapOpts.annotation)));
6093
- let m2 = sc(u, e);
6118
+ let u = this.opts.to ? nc(this.opts.to) : ".";
6119
+ "string" == typeof this.mapOpts.annotation && (u = nc(oc(u, this.mapOpts.annotation)));
6120
+ let m2 = rc(u, e);
6094
6121
  return this.memoizedPaths.set(e, m2), m2;
6095
6122
  }
6096
6123
  previous() {
@@ -6101,7 +6128,7 @@ var fc = class {
6101
6128
  }
6102
6129
  });
6103
6130
  else {
6104
- let e = new pc(this.originalCSS, this.opts);
6131
+ let e = new cc(this.originalCSS, this.opts);
6105
6132
  e.map && this.previousMaps.push(e.map);
6106
6133
  }
6107
6134
  return this.previousMaps;
@@ -6132,8 +6159,8 @@ var fc = class {
6132
6159
  toFileUrl(e) {
6133
6160
  let a = this.memoizedFileURLs.get(e);
6134
6161
  if (a) return a;
6135
- if (uc) {
6136
- let a2 = uc(e).toString();
6162
+ if (lc) {
6163
+ let a2 = lc(e).toString();
6137
6164
  return this.memoizedFileURLs.set(e, a2), a2;
6138
6165
  }
6139
6166
  throw new Error("`map.absolute` option is not available in this PostCSS build");
@@ -6141,13 +6168,13 @@ var fc = class {
6141
6168
  toUrl(e) {
6142
6169
  let a = this.memoizedURLs.get(e);
6143
6170
  if (a) return a;
6144
- "\\" === ac && (e = e.replace(/\\/g, "/"));
6171
+ "\\" === sc && (e = e.replace(/\\/g, "/"));
6145
6172
  let u = encodeURI(e).replace(/[#?]/g, encodeURIComponent);
6146
6173
  return this.memoizedURLs.set(e, u), u;
6147
6174
  }
6148
6175
  };
6149
- const mc = /[\t\n\f\r "#'()/;[\\\]{}]/g, gc = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, yc = /.[\r\n"'(/\\]/, wc = /[\da-f]/i;
6150
- let Sc = Ga, bc = _a, vc = La, xc = Il, Mc = Tl, kc = function(e, a = {}) {
6176
+ const hc = /[\t\n\f\r "#'()/;[\\\]{}]/g, fc = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, mc = /.[\r\n"'(/\\]/, gc = /[\da-f]/i;
6177
+ let yc = za, wc = Ma, Sc = Oa, bc = xl, vc = Rl, kc = function(e, a = {}) {
6151
6178
  let u, m2, w2, b2, C2, x2, I2, _2, O2, E2, D2 = e.css.valueOf(), F2 = a.ignoreErrors, U2 = D2.length, B2 = 0, $2 = [], z2 = [];
6152
6179
  function y2(a2) {
6153
6180
  throw e.error("Unclosed " + a2, B2);
@@ -6197,7 +6224,7 @@ let Sc = Ga, bc = _a, vc = La, xc = Il, Mc = Tl, kc = function(e, a = {}) {
6197
6224
  for (_2 = b2; 92 === D2.charCodeAt(_2 - 1); ) _2 -= 1, I2 = !I2;
6198
6225
  } while (I2);
6199
6226
  x2 = ["brackets", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6200
- } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || yc.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
6227
+ } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || mc.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
6201
6228
  break;
6202
6229
  case 39:
6203
6230
  case 34:
@@ -6215,31 +6242,31 @@ let Sc = Ga, bc = _a, vc = La, xc = Il, Mc = Tl, kc = function(e, a = {}) {
6215
6242
  x2 = ["string", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6216
6243
  break;
6217
6244
  case 64:
6218
- mc.lastIndex = B2 + 1, mc.test(D2), b2 = 0 === mc.lastIndex ? D2.length - 1 : mc.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6245
+ hc.lastIndex = B2 + 1, hc.test(D2), b2 = 0 === hc.lastIndex ? D2.length - 1 : hc.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6219
6246
  break;
6220
6247
  case 92:
6221
6248
  for (b2 = B2, w2 = true; 92 === D2.charCodeAt(b2 + 1); ) b2 += 1, w2 = !w2;
6222
- if (u = D2.charCodeAt(b2 + 1), w2 && 47 !== u && 32 !== u && 10 !== u && 9 !== u && 13 !== u && 12 !== u && (b2 += 1, wc.test(D2.charAt(b2)))) {
6223
- for (; wc.test(D2.charAt(b2 + 1)); ) b2 += 1;
6249
+ if (u = D2.charCodeAt(b2 + 1), w2 && 47 !== u && 32 !== u && 10 !== u && 9 !== u && 13 !== u && 12 !== u && (b2 += 1, gc.test(D2.charAt(b2)))) {
6250
+ for (; gc.test(D2.charAt(b2 + 1)); ) b2 += 1;
6224
6251
  32 === D2.charCodeAt(b2 + 1) && (b2 += 1);
6225
6252
  }
6226
6253
  x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6227
6254
  break;
6228
6255
  default:
6229
- 47 === u && 42 === D2.charCodeAt(B2 + 1) ? (b2 = D2.indexOf("*/", B2 + 2) + 1, 0 === b2 && (F2 || a2 ? b2 = D2.length : y2("comment")), x2 = ["comment", D2.slice(B2, b2 + 1), B2, b2], B2 = b2) : (gc.lastIndex = B2 + 1, gc.test(D2), b2 = 0 === gc.lastIndex ? D2.length - 1 : gc.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
6256
+ 47 === u && 42 === D2.charCodeAt(B2 + 1) ? (b2 = D2.indexOf("*/", B2 + 2) + 1, 0 === b2 && (F2 || a2 ? b2 = D2.length : y2("comment")), x2 = ["comment", D2.slice(B2, b2 + 1), B2, b2], B2 = b2) : (fc.lastIndex = B2 + 1, fc.test(D2), b2 = 0 === fc.lastIndex ? D2.length - 1 : fc.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
6230
6257
  }
6231
6258
  return B2++, x2;
6232
6259
  }, position: function S() {
6233
6260
  return B2;
6234
6261
  } };
6235
6262
  };
6236
- const Ic = { empty: true, space: true };
6237
- var _c = class {
6263
+ const xc = { empty: true, space: true };
6264
+ var Mc = class {
6238
6265
  constructor(e) {
6239
- this.input = e, this.root = new xc(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
6266
+ this.input = e, this.root = new bc(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
6240
6267
  }
6241
6268
  atrule(e) {
6242
- let a = new Sc();
6269
+ let a = new yc();
6243
6270
  a.name = e[1].slice(1), "" === a.name && this.unnamedAtrule(a, e), this.init(a, e[2]);
6244
6271
  let u, m2, w2, b2 = false, C2 = false, x2 = [], I2 = [];
6245
6272
  for (; !this.tokenizer.endOfFile(); ) {
@@ -6291,7 +6318,7 @@ var _c = class {
6291
6318
  return false;
6292
6319
  }
6293
6320
  comment(e) {
6294
- let a = new bc();
6321
+ let a = new wc();
6295
6322
  this.init(a, e[2]), a.source.end = this.getPosition(e[3] || e[2]), a.source.end.offset++;
6296
6323
  let u = e[1].slice(2, -2);
6297
6324
  if (/^\s*$/.test(u)) a.text = "", a.raws.left = u, a.raws.right = "";
@@ -6304,7 +6331,7 @@ var _c = class {
6304
6331
  this.tokenizer = kc(this.input);
6305
6332
  }
6306
6333
  decl(e, a) {
6307
- let u = new vc();
6334
+ let u = new Sc();
6308
6335
  this.init(u, e[0][2]);
6309
6336
  let m2, w2 = e[e.length - 1];
6310
6337
  for (";" === w2[0] && (this.semicolon = true, e.pop()), u.source.end = this.getPosition(w2[3] || w2[2] || (function Cc(e2) {
@@ -6353,7 +6380,7 @@ var _c = class {
6353
6380
  throw this.input.error("Double colon", { offset: e[2] }, { offset: e[2] + e[1].length });
6354
6381
  }
6355
6382
  emptyRule(e) {
6356
- let a = new Mc();
6383
+ let a = new vc();
6357
6384
  this.init(a, e[2]), a.selector = "", a.raws.between = "", this.current = a;
6358
6385
  }
6359
6386
  end(e) {
@@ -6429,7 +6456,7 @@ var _c = class {
6429
6456
  }
6430
6457
  raw(e, a, u, m2) {
6431
6458
  let w2, b2, C2, x2, I2 = u.length, _2 = "", O2 = true;
6432
- for (let e2 = 0; e2 < I2; e2 += 1) w2 = u[e2], b2 = w2[0], "space" !== b2 || e2 !== I2 - 1 || m2 ? "comment" === b2 ? (x2 = u[e2 - 1] ? u[e2 - 1][0] : "empty", C2 = u[e2 + 1] ? u[e2 + 1][0] : "empty", Ic[x2] || Ic[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
6459
+ for (let e2 = 0; e2 < I2; e2 += 1) w2 = u[e2], b2 = w2[0], "space" !== b2 || e2 !== I2 - 1 || m2 ? "comment" === b2 ? (x2 = u[e2 - 1] ? u[e2 - 1][0] : "empty", C2 = u[e2 + 1] ? u[e2 + 1][0] : "empty", xc[x2] || xc[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
6433
6460
  if (!O2) {
6434
6461
  let m3 = u.reduce((e2, a2) => e2 + a2[1], "");
6435
6462
  e.raws[a] = { raw: m3, value: _2 };
@@ -6438,7 +6465,7 @@ var _c = class {
6438
6465
  }
6439
6466
  rule(e) {
6440
6467
  e.pop();
6441
- let a = new Mc();
6468
+ let a = new vc();
6442
6469
  this.init(a, e[0][2]), a.raws.between = this.spacesAndCommentsFromEnd(e), this.raw(a, "selector", e), this.current = a;
6443
6470
  }
6444
6471
  spacesAndCommentsFromEnd(e) {
@@ -6478,9 +6505,9 @@ var _c = class {
6478
6505
  throw this.input.error("At-rule without name", { offset: a[2] }, { offset: a[2] + a[1].length });
6479
6506
  }
6480
6507
  };
6481
- let Oc = Wa, Ec = vl, Lc = _c;
6508
+ let Ic = Ba, _c = Sl, Oc = Mc;
6482
6509
  function Gt(e, a) {
6483
- let u = new Ec(e, a), m2 = new Lc(u);
6510
+ let u = new _c(e, a), m2 = new Oc(u);
6484
6511
  try {
6485
6512
  m2.parse();
6486
6513
  } catch (e2) {
@@ -6488,9 +6515,9 @@ function Gt(e, a) {
6488
6515
  }
6489
6516
  return m2.root;
6490
6517
  }
6491
- var Rc = Gt;
6492
- Gt.default = Gt, Oc.registerParse(Gt);
6493
- let Ac = class {
6518
+ var Ec = Gt;
6519
+ Gt.default = Gt, Ic.registerParse(Gt);
6520
+ let Lc = class {
6494
6521
  constructor(e, a = {}) {
6495
6522
  if (this.type = "warning", this.text = e, a.node && a.node.source) {
6496
6523
  let e2 = a.node.rangeBy(a);
@@ -6502,9 +6529,9 @@ let Ac = class {
6502
6529
  return this.node ? this.node.error(this.text, { index: this.index, plugin: this.plugin, word: this.word }).message : this.plugin ? this.plugin + ": " + this.text : this.text;
6503
6530
  }
6504
6531
  };
6505
- var Tc = Ac;
6506
- Ac.default = Ac;
6507
- let Nc = Tc, Pc = class {
6532
+ var Rc = Lc;
6533
+ Lc.default = Lc;
6534
+ let Ac = Rc, Tc = class {
6508
6535
  get content() {
6509
6536
  return this.css;
6510
6537
  }
@@ -6516,26 +6543,26 @@ let Nc = Tc, Pc = class {
6516
6543
  }
6517
6544
  warn(e, a = {}) {
6518
6545
  a.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (a.plugin = this.lastPlugin.postcssPlugin);
6519
- let u = new Nc(e, a);
6546
+ let u = new Ac(e, a);
6520
6547
  return this.messages.push(u), u;
6521
6548
  }
6522
6549
  warnings() {
6523
6550
  return this.messages.filter((e) => "warning" === e.type);
6524
6551
  }
6525
6552
  };
6526
- var Dc = Pc;
6527
- Pc.default = Pc;
6528
- let Fc = {};
6553
+ var Nc = Tc;
6554
+ Tc.default = Tc;
6555
+ let Pc = {};
6529
6556
  var ni = function(e) {
6530
- Fc[e] || (Fc[e] = true, typeof console < "u" && console.warn && console.warn(e));
6557
+ Pc[e] || (Pc[e] = true, typeof console < "u" && console.warn && console.warn(e));
6531
6558
  };
6532
- let Uc = Wa, Bc = Ja, $c = fc, Wc = Rc, zc = Dc, jc = Il, Gc = ga, { isClean: Vc, my: qc } = ya, Hc = ni;
6533
- const Zc = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, Kc = { AtRule: true, AtRuleExit: true, Comment: true, CommentExit: true, Declaration: true, DeclarationExit: true, Document: true, DocumentExit: true, Once: true, OnceExit: true, postcssPlugin: true, prepare: true, Root: true, RootExit: true, Rule: true, RuleExit: true }, Jc = { Once: true, postcssPlugin: true, prepare: true };
6559
+ let Dc = Ba, Fc = Za, Uc = dc, Bc = Ec, $c = Nc, Wc = xl, zc = fa, { isClean: jc, my: Gc } = ma, Vc = ni;
6560
+ const qc = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, Hc = { AtRule: true, AtRuleExit: true, Comment: true, CommentExit: true, Declaration: true, DeclarationExit: true, Document: true, DocumentExit: true, Once: true, OnceExit: true, postcssPlugin: true, prepare: true, Root: true, RootExit: true, Rule: true, RuleExit: true }, Zc = { Once: true, postcssPlugin: true, prepare: true };
6534
6561
  function _e(e) {
6535
6562
  return "object" == typeof e && "function" == typeof e.then;
6536
6563
  }
6537
6564
  function ri(e) {
6538
- let a = false, u = Zc[e.type];
6565
+ let a = false, u = qc[e.type];
6539
6566
  return "decl" === e.type ? a = e.prop.toLowerCase() : "atrule" === e.type && (a = e.name.toLowerCase()), a && e.append ? [u, u + "-" + a, 0, u + "Exit", u + "Exit-" + a] : a ? [u, u + "-" + a, u + "Exit", u + "Exit-" + a] : e.append ? [u, 0, u + "Exit"] : [u, u + "Exit"];
6540
6567
  }
6541
6568
  function br(e) {
@@ -6543,9 +6570,9 @@ function br(e) {
6543
6570
  return a = "document" === e.type ? ["Document", 0, "DocumentExit"] : "root" === e.type ? ["Root", 0, "RootExit"] : ri(e), { eventIndex: 0, events: a, iterator: 0, node: e, visitorIndex: 0, visitors: [] };
6544
6571
  }
6545
6572
  function Js(e) {
6546
- return e[Vc] = false, e.nodes && e.nodes.forEach((e2) => Js(e2)), e;
6573
+ return e[jc] = false, e.nodes && e.nodes.forEach((e2) => Js(e2)), e;
6547
6574
  }
6548
- let Yc = {}, Xc = class oi {
6575
+ let Kc = {}, Jc = class oi {
6549
6576
  get content() {
6550
6577
  return this.stringify().content;
6551
6578
  }
@@ -6572,19 +6599,19 @@ let Yc = {}, Xc = class oi {
6572
6599
  }
6573
6600
  constructor(e, a, u) {
6574
6601
  let m2;
6575
- if (this.stringified = false, this.processed = false, "object" != typeof a || null === a || "root" !== a.type && "document" !== a.type) if (a instanceof oi || a instanceof zc) m2 = Js(a.root), a.map && (typeof u.map > "u" && (u.map = {}), u.map.inline || (u.map.inline = false), u.map.prev = a.map);
6602
+ if (this.stringified = false, this.processed = false, "object" != typeof a || null === a || "root" !== a.type && "document" !== a.type) if (a instanceof oi || a instanceof $c) m2 = Js(a.root), a.map && (typeof u.map > "u" && (u.map = {}), u.map.inline || (u.map.inline = false), u.map.prev = a.map);
6576
6603
  else {
6577
- let e2 = Wc;
6604
+ let e2 = Bc;
6578
6605
  u.syntax && (e2 = u.syntax.parse), u.parser && (e2 = u.parser), e2.parse && (e2 = e2.parse);
6579
6606
  try {
6580
6607
  m2 = e2(a, u);
6581
6608
  } catch (e3) {
6582
6609
  this.processed = true, this.error = e3;
6583
6610
  }
6584
- m2 && !m2[qc] && Uc.rebuild(m2);
6611
+ m2 && !m2[Gc] && Dc.rebuild(m2);
6585
6612
  }
6586
6613
  else m2 = Js(a);
6587
- this.result = new zc(e, m2, u), this.helpers = { ...Yc, postcss: Yc, result: this.result }, this.plugins = this.processor.plugins.map((e2) => "object" == typeof e2 && e2.prepare ? { ...e2, ...e2.prepare(this.result) } : e2);
6614
+ this.result = new $c(e, m2, u), this.helpers = { ...Kc, postcss: Kc, result: this.result }, this.plugins = this.processor.plugins.map((e2) => "object" == typeof e2 && e2.prepare ? { ...e2, ...e2.prepare(this.result) } : e2);
6588
6615
  }
6589
6616
  async() {
6590
6617
  return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
@@ -6618,8 +6645,8 @@ let Yc = {}, Xc = class oi {
6618
6645
  this.listeners[a] || (this.listeners[a] = []), this.listeners[a].push([e, u]);
6619
6646
  };
6620
6647
  for (let e of this.plugins) if ("object" == typeof e) for (let a in e) {
6621
- if (!Kc[a] && /^[A-Z]/.test(a)) throw new Error(`Unknown event ${a} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
6622
- if (!Jc[a]) if ("object" == typeof e[a]) for (let u in e[a]) t(e, "*" === u ? a : a + "-" + u.toLowerCase(), e[a][u]);
6648
+ if (!Hc[a] && /^[A-Z]/.test(a)) throw new Error(`Unknown event ${a} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
6649
+ if (!Zc[a]) if ("object" == typeof e[a]) for (let u in e[a]) t(e, "*" === u ? a : a + "-" + u.toLowerCase(), e[a][u]);
6623
6650
  else "function" == typeof e[a] && t(e, a, e[a]);
6624
6651
  }
6625
6652
  this.hasListener = Object.keys(this.listeners).length > 0;
@@ -6636,8 +6663,8 @@ let Yc = {}, Xc = class oi {
6636
6663
  }
6637
6664
  if (this.prepareVisitors(), this.hasListener) {
6638
6665
  let e = this.result.root;
6639
- for (; !e[Vc]; ) {
6640
- e[Vc] = true;
6666
+ for (; !e[jc]; ) {
6667
+ e[jc] = true;
6641
6668
  let a = [br(e)];
6642
6669
  for (; a.length > 0; ) {
6643
6670
  let e2 = this.visitTick(a);
@@ -6682,9 +6709,9 @@ let Yc = {}, Xc = class oi {
6682
6709
  if (this.error) throw this.error;
6683
6710
  if (this.stringified) return this.result;
6684
6711
  this.stringified = true, this.sync();
6685
- let e = this.result.opts, a = Gc;
6712
+ let e = this.result.opts, a = zc;
6686
6713
  e.syntax && (a = e.syntax.stringify), e.stringifier && (a = e.stringifier), a.stringify && (a = a.stringify);
6687
- let u = new $c(a, this.result.root, this.result.opts).generate();
6714
+ let u = new Uc(a, this.result.root, this.result.opts).generate();
6688
6715
  return this.result.css = u[0], this.result.map = u[1], this.result;
6689
6716
  }
6690
6717
  sync() {
@@ -6696,14 +6723,14 @@ let Yc = {}, Xc = class oi {
6696
6723
  }
6697
6724
  if (this.prepareVisitors(), this.hasListener) {
6698
6725
  let e = this.result.root;
6699
- for (; !e[Vc]; ) e[Vc] = true, this.walkSync(e);
6726
+ for (; !e[jc]; ) e[jc] = true, this.walkSync(e);
6700
6727
  if (this.listeners.OnceExit) if ("document" === e.type) for (let a of e.nodes) this.visitSync(this.listeners.OnceExit, a);
6701
6728
  else this.visitSync(this.listeners.OnceExit, e);
6702
6729
  }
6703
6730
  return this.result;
6704
6731
  }
6705
6732
  then(e, a) {
6706
- return "production" !== process.env.NODE_ENV && ("from" in this.opts || Hc("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
6733
+ return "production" !== process.env.NODE_ENV && ("from" in this.opts || Vc("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
6707
6734
  }
6708
6735
  toString() {
6709
6736
  return this.css;
@@ -6735,22 +6762,22 @@ let Yc = {}, Xc = class oi {
6735
6762
  }
6736
6763
  if (0 !== a.iterator) {
6737
6764
  let m3, w3 = a.iterator;
6738
- for (; m3 = u.nodes[u.indexes[w3]]; ) if (u.indexes[w3] += 1, !m3[Vc]) return m3[Vc] = true, void e.push(br(m3));
6765
+ for (; m3 = u.nodes[u.indexes[w3]]; ) if (u.indexes[w3] += 1, !m3[jc]) return m3[jc] = true, void e.push(br(m3));
6739
6766
  a.iterator = 0, delete u.indexes[w3];
6740
6767
  }
6741
6768
  let w2 = a.events;
6742
6769
  for (; a.eventIndex < w2.length; ) {
6743
6770
  let e2 = w2[a.eventIndex];
6744
- if (a.eventIndex += 1, 0 === e2) return void (u.nodes && u.nodes.length && (u[Vc] = true, a.iterator = u.getIterator()));
6771
+ if (a.eventIndex += 1, 0 === e2) return void (u.nodes && u.nodes.length && (u[jc] = true, a.iterator = u.getIterator()));
6745
6772
  if (this.listeners[e2]) return void (a.visitors = this.listeners[e2]);
6746
6773
  }
6747
6774
  e.pop();
6748
6775
  }
6749
6776
  walkSync(e) {
6750
- e[Vc] = true;
6777
+ e[jc] = true;
6751
6778
  let a = ri(e);
6752
6779
  for (let u of a) if (0 === u) e.nodes && e.each((e2) => {
6753
- e2[Vc] || this.walkSync(e2);
6780
+ e2[jc] || this.walkSync(e2);
6754
6781
  });
6755
6782
  else {
6756
6783
  let a2 = this.listeners[u];
@@ -6761,14 +6788,14 @@ let Yc = {}, Xc = class oi {
6761
6788
  return this.sync().warnings();
6762
6789
  }
6763
6790
  };
6764
- Xc.registerPostcss = (e) => {
6765
- Yc = e;
6791
+ Jc.registerPostcss = (e) => {
6792
+ Kc = e;
6766
6793
  };
6767
- var Qc = Xc;
6768
- Xc.default = Xc, jc.registerLazyResult(Xc), Bc.registerLazyResult(Xc);
6769
- let lu = fc, cu = Rc;
6770
- const hu = Dc;
6771
- let Cu = ga, ku = ni, xu = class {
6794
+ var Yc = Jc;
6795
+ Jc.default = Jc, Wc.registerLazyResult(Jc), Fc.registerLazyResult(Jc);
6796
+ let Xc = dc, Qc = Ec;
6797
+ const lu = Nc;
6798
+ let cu = fa, hu = ni, Cu = class {
6772
6799
  get content() {
6773
6800
  return this.result.css;
6774
6801
  }
@@ -6789,7 +6816,7 @@ let Cu = ga, ku = ni, xu = class {
6789
6816
  }
6790
6817
  get root() {
6791
6818
  if (this._root) return this._root;
6792
- let e, a = cu;
6819
+ let e, a = Qc;
6793
6820
  try {
6794
6821
  e = a(this._css, this._opts);
6795
6822
  } catch (e2) {
@@ -6803,11 +6830,11 @@ let Cu = ga, ku = ni, xu = class {
6803
6830
  }
6804
6831
  constructor(e, a, u) {
6805
6832
  a = a.toString(), this.stringified = false, this._processor = e, this._css = a, this._opts = u, this._map = void 0;
6806
- let m2, w2 = Cu;
6807
- this.result = new hu(this._processor, m2, this._opts), this.result.css = a;
6833
+ let m2, w2 = cu;
6834
+ this.result = new lu(this._processor, m2, this._opts), this.result.css = a;
6808
6835
  let b2 = this;
6809
6836
  Object.defineProperty(this.result, "root", { get: () => b2.root });
6810
- let C2 = new lu(w2, m2, this._opts, a);
6837
+ let C2 = new Xc(w2, m2, this._opts, a);
6811
6838
  if (C2.isMap()) {
6812
6839
  let [e2, a2] = C2.generate();
6813
6840
  e2 && (this.result.css = e2), a2 && (this.result.map = a2);
@@ -6827,7 +6854,7 @@ let Cu = ga, ku = ni, xu = class {
6827
6854
  return this.result;
6828
6855
  }
6829
6856
  then(e, a) {
6830
- return "production" !== process.env.NODE_ENV && ("from" in this._opts || ku("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
6857
+ return "production" !== process.env.NODE_ENV && ("from" in this._opts || hu("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
6831
6858
  }
6832
6859
  toString() {
6833
6860
  return this._css;
@@ -6836,9 +6863,9 @@ let Cu = ga, ku = ni, xu = class {
6836
6863
  return [];
6837
6864
  }
6838
6865
  };
6839
- var Mu = xu;
6840
- xu.default = xu;
6841
- let _u = Ja, Ou = Qc, Eu = Mu, Lu = Il, Ru = class {
6866
+ var ku = Cu;
6867
+ Cu.default = Cu;
6868
+ let xu = Za, Mu = Yc, _u = ku, Ou = xl, Eu = class {
6842
6869
  constructor(e = []) {
6843
6870
  this.version = "8.5.3", this.plugins = this.normalize(e);
6844
6871
  }
@@ -6854,39 +6881,39 @@ let _u = Ja, Ou = Qc, Eu = Mu, Lu = Il, Ru = class {
6854
6881
  return a;
6855
6882
  }
6856
6883
  process(e, a = {}) {
6857
- return this.plugins.length || a.parser || a.stringifier || a.syntax ? new Ou(this, e, a) : new Eu(this, e, a);
6884
+ return this.plugins.length || a.parser || a.stringifier || a.syntax ? new Mu(this, e, a) : new _u(this, e, a);
6858
6885
  }
6859
6886
  use(e) {
6860
6887
  return this.plugins = this.plugins.concat(this.normalize([e])), this;
6861
6888
  }
6862
6889
  };
6863
- var Au = Ru;
6864
- Ru.default = Ru, Lu.registerProcessor(Ru), _u.registerProcessor(Ru);
6865
- let Tu = Ga, Nu = _a, Pu = Wa, Du = ua, Fu = La, Uu = Ja, $u = rc, Wu = vl, zu = Qc, ju = El, Gu = xa, Vu = Rc, qu = Au, Hu = Dc, Zu = Il, Ku = Tl, Ju = ga, Yu = Tc;
6890
+ var Lu = Eu;
6891
+ Eu.default = Eu, Ou.registerProcessor(Eu), xu.registerProcessor(Eu);
6892
+ let Ru = za, Au = Ma, Tu = Ba, Nu = la, Pu = Oa, Du = Za, Fu = tc, Uu = Sl, $u = Yc, Wu = Il, zu = Ca, ju = Ec, Gu = Lu, Vu = Nc, qu = xl, Hu = Rl, Zu = fa, Ku = Rc;
6866
6893
  function T$1(...e) {
6867
- return 1 === e.length && Array.isArray(e[0]) && (e = e[0]), new qu(e);
6894
+ return 1 === e.length && Array.isArray(e[0]) && (e = e[0]), new Gu(e);
6868
6895
  }
6869
6896
  T$1.plugin = function(e, a) {
6870
6897
  let u, m2 = false;
6871
6898
  function n(...u2) {
6872
6899
  console && console.warn && !m2 && (m2 = true, console.warn(e + ": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"), process.env.LANG && process.env.LANG.startsWith("cn") && console.warn(e + ": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));
6873
6900
  let w2 = a(...u2);
6874
- return w2.postcssPlugin = e, w2.postcssVersion = new qu().version, w2;
6901
+ return w2.postcssPlugin = e, w2.postcssVersion = new Gu().version, w2;
6875
6902
  }
6876
6903
  return Object.defineProperty(n, "postcss", { get: () => (u || (u = n()), u) }), n.process = function(e2, a2, u2) {
6877
6904
  return T$1([n(u2)]).process(e2, a2);
6878
6905
  }, n;
6879
- }, T$1.stringify = Ju, T$1.parse = Vu, T$1.fromJSON = $u, T$1.list = ju, T$1.comment = (e) => new Nu(e), T$1.atRule = (e) => new Tu(e), T$1.decl = (e) => new Fu(e), T$1.rule = (e) => new Ku(e), T$1.root = (e) => new Zu(e), T$1.document = (e) => new Uu(e), T$1.CssSyntaxError = Du, T$1.Declaration = Fu, T$1.Container = Pu, T$1.Processor = qu, T$1.Document = Uu, T$1.Comment = Nu, T$1.Warning = Yu, T$1.AtRule = Tu, T$1.Result = Hu, T$1.Input = Wu, T$1.Rule = Ku, T$1.Root = Zu, T$1.Node = Gu, zu.registerPostcss(T$1);
6880
- var Xu = T$1;
6906
+ }, T$1.stringify = Zu, T$1.parse = ju, T$1.fromJSON = Fu, T$1.list = Wu, T$1.comment = (e) => new Au(e), T$1.atRule = (e) => new Ru(e), T$1.decl = (e) => new Pu(e), T$1.rule = (e) => new Hu(e), T$1.root = (e) => new qu(e), T$1.document = (e) => new Du(e), T$1.CssSyntaxError = Nu, T$1.Declaration = Pu, T$1.Container = Tu, T$1.Processor = Gu, T$1.Document = Du, T$1.Comment = Au, T$1.Warning = Ku, T$1.AtRule = Ru, T$1.Result = Vu, T$1.Input = Uu, T$1.Rule = Hu, T$1.Root = qu, T$1.Node = zu, $u.registerPostcss(T$1);
6907
+ var Ju = T$1;
6881
6908
  T$1.default = T$1;
6882
- const Qu = Su(Xu);
6883
- var ep;
6884
- Qu.stringify, Qu.fromJSON, Qu.plugin, Qu.parse, Qu.list, Qu.document, Qu.comment, Qu.atRule, Qu.rule, Qu.decl, Qu.root, Qu.CssSyntaxError, Qu.Declaration, Qu.Container, Qu.Processor, Qu.Document, Qu.Comment, Qu.Warning, Qu.AtRule, Qu.Result, Qu.Input, Qu.Rule, Qu.Root, Qu.Node, (function(e) {
6909
+ const Yu = Su(Ju);
6910
+ var Xu;
6911
+ Yu.stringify, Yu.fromJSON, Yu.plugin, Yu.parse, Yu.list, Yu.document, Yu.comment, Yu.atRule, Yu.rule, Yu.decl, Yu.root, Yu.CssSyntaxError, Yu.Declaration, Yu.Container, Yu.Processor, Yu.Document, Yu.Comment, Yu.Warning, Yu.AtRule, Yu.Result, Yu.Input, Yu.Rule, Yu.Root, Yu.Node, (function(e) {
6885
6912
  e[e.NotStarted = 0] = "NotStarted", e[e.Running = 1] = "Running", e[e.Stopped = 2] = "Stopped";
6886
- })(ep || (ep = {}));
6887
- const { addCustomEvent: tp } = ae, { addSailfishEvent: np } = ae, { freezePage: rp } = ae, { takeFullSnapshot: op } = ae;
6888
- var sp = Object.defineProperty, y = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? sp(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u);
6889
- let ip = class d {
6913
+ })(Xu || (Xu = {}));
6914
+ const { addCustomEvent: Qu } = ae, { addSailfishEvent: ep } = ae, { freezePage: tp } = ae, { takeFullSnapshot: np } = ae;
6915
+ var rp = Object.defineProperty, y = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? rp(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u);
6916
+ let op = class d {
6890
6917
  constructor(e) {
6891
6918
  y(this, "fileName"), y(this, "functionName"), y(this, "lineNumber"), y(this, "columnNumber"), this.fileName = e.fileName || "", this.functionName = e.functionName || "", this.lineNumber = e.lineNumber, this.columnNumber = e.columnNumber;
6892
6919
  }
@@ -6895,8 +6922,8 @@ let ip = class d {
6895
6922
  return this.functionName ? `${this.functionName} (${this.fileName}:${e}:${a})` : `${this.fileName}:${e}:${a}`;
6896
6923
  }
6897
6924
  };
6898
- const ap = /(^|@)\S+:\d+/, lp = /^\s*at .*(\S+:\d+|\(native\))/m, cp = /^(eval@)?(\[native code])?$/, up = { parse: function(e) {
6899
- return e ? typeof e.stacktrace < "u" || typeof e["opera#sourceloc"] < "u" ? this.parseOpera(e) : e.stack && e.stack.match(lp) ? this.parseV8OrIE(e) : e.stack ? this.parseFFOrSafari(e) : (console.warn("[console-record-plugin]: Failed to parse error object:", e), []) : [];
6925
+ const sp = /(^|@)\S+:\d+/, ip = /^\s*at .*(\S+:\d+|\(native\))/m, ap = /^(eval@)?(\[native code])?$/, lp = { parse: function(e) {
6926
+ return e ? typeof e.stacktrace < "u" || typeof e["opera#sourceloc"] < "u" ? this.parseOpera(e) : e.stack && e.stack.match(ip) ? this.parseV8OrIE(e) : e.stack ? this.parseFFOrSafari(e) : (console.warn("[console-record-plugin]: Failed to parse error object:", e), []) : [];
6900
6927
  }, extractLocation: function(e) {
6901
6928
  if (-1 === e.indexOf(":")) return [e];
6902
6929
  const a = /(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g, ""));
@@ -6904,23 +6931,23 @@ const ap = /(^|@)\S+:\d+/, lp = /^\s*at .*(\S+:\d+|\(native\))/m, cp = /^(eval@)
6904
6931
  return [a[1], a[2] || void 0, a[3] || void 0];
6905
6932
  }, parseV8OrIE: function(e) {
6906
6933
  return e.stack.split("\n").filter(function(e2) {
6907
- return !!e2.match(lp);
6934
+ return !!e2.match(ip);
6908
6935
  }, this).map(function(e2) {
6909
6936
  e2.indexOf("(eval ") > -1 && (e2 = e2.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(\),.*$)/g, ""));
6910
6937
  let a = e2.replace(/^\s+/, "").replace(/\(eval code/g, "(");
6911
6938
  const u = a.match(/ (\((.+):(\d+):(\d+)\)$)/);
6912
6939
  a = u ? a.replace(u[0], "") : a;
6913
6940
  const m2 = a.split(/\s+/).slice(1), w2 = this.extractLocation(u ? u[1] : m2.pop()), b2 = m2.join(" ") || void 0, C2 = ["eval", "<anonymous>"].indexOf(w2[0]) > -1 ? void 0 : w2[0];
6914
- return new ip({ functionName: b2, fileName: C2, lineNumber: w2[1], columnNumber: w2[2] });
6941
+ return new op({ functionName: b2, fileName: C2, lineNumber: w2[1], columnNumber: w2[2] });
6915
6942
  }, this);
6916
6943
  }, parseFFOrSafari: function(e) {
6917
6944
  return e.stack.split("\n").filter(function(e2) {
6918
- return !e2.match(cp);
6945
+ return !e2.match(ap);
6919
6946
  }, this).map(function(e2) {
6920
- if (e2.indexOf(" > eval") > -1 && (e2 = e2.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")), -1 === e2.indexOf("@") && -1 === e2.indexOf(":")) return new ip({ functionName: e2 });
6947
+ if (e2.indexOf(" > eval") > -1 && (e2 = e2.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")), -1 === e2.indexOf("@") && -1 === e2.indexOf(":")) return new op({ functionName: e2 });
6921
6948
  {
6922
6949
  const a = /((.*".+"[^@]*)?[^@]*)(?:@)/, u = e2.match(a), m2 = u && u[1] ? u[1] : void 0, w2 = this.extractLocation(e2.replace(a, ""));
6923
- return new ip({ functionName: m2, fileName: w2[0], lineNumber: w2[1], columnNumber: w2[2] });
6950
+ return new op({ functionName: m2, fileName: w2[0], lineNumber: w2[1], columnNumber: w2[2] });
6924
6951
  }
6925
6952
  }, this);
6926
6953
  }, parseOpera: function(e) {
@@ -6929,22 +6956,22 @@ const ap = /(^|@)\S+:\d+/, lp = /^\s*at .*(\S+:\d+|\(native\))/m, cp = /^(eval@)
6929
6956
  const a = /Line (\d+).*script (?:in )?(\S+)/i, u = e.message.split("\n"), m2 = [];
6930
6957
  for (let e2 = 2, w2 = u.length; e2 < w2; e2 += 2) {
6931
6958
  const w3 = a.exec(u[e2]);
6932
- w3 && m2.push(new ip({ fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6959
+ w3 && m2.push(new op({ fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6933
6960
  }
6934
6961
  return m2;
6935
6962
  }, parseOpera10: function(e) {
6936
6963
  const a = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i, u = e.stacktrace.split("\n"), m2 = [];
6937
6964
  for (let e2 = 0, w2 = u.length; e2 < w2; e2 += 2) {
6938
6965
  const w3 = a.exec(u[e2]);
6939
- w3 && m2.push(new ip({ functionName: w3[3] || void 0, fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6966
+ w3 && m2.push(new op({ functionName: w3[3] || void 0, fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6940
6967
  }
6941
6968
  return m2;
6942
6969
  }, parseOpera11: function(e) {
6943
6970
  return e.stack.split("\n").filter(function(e2) {
6944
- return !!e2.match(ap) && !e2.match(/^Error created at/);
6971
+ return !!e2.match(sp) && !e2.match(/^Error created at/);
6945
6972
  }, this).map(function(e2) {
6946
6973
  const a = e2.split("@"), u = this.extractLocation(a.pop()), m2 = (a.shift() || "").replace(/<anonymous function(: (\w+))?>/, "$2").replace(/\([^)]*\)/g, "") || void 0;
6947
- return new ip({ functionName: m2, fileName: u[0], lineNumber: u[1], columnNumber: u[2] });
6974
+ return new op({ functionName: m2, fileName: u[0], lineNumber: u[1], columnNumber: u[2] });
6948
6975
  }, this);
6949
6976
  } };
6950
6977
  function T(e) {
@@ -7001,9 +7028,9 @@ function g(e, a) {
7001
7028
  return a2 instanceof Node ? a2 instanceof HTMLElement ? a2 ? a2.outerHTML : "" : a2.nodeName : a2 instanceof Error ? a2.stack ? a2.stack + "\nEnd of stack for Error object" : a2.name + ": " + a2.message : a2;
7002
7029
  });
7003
7030
  }
7004
- const pp = { level: ["assert", "clear", "count", "countReset", "debug", "dir", "dirxml", "error", "group", "groupCollapsed", "groupEnd", "info", "log", "table", "time", "timeEnd", "timeLog", "trace", "warn"], lengthThreshold: 1e3, logger: "console" };
7031
+ const cp = { level: ["assert", "clear", "count", "countReset", "debug", "dir", "dirxml", "error", "group", "groupCollapsed", "groupEnd", "info", "log", "table", "time", "timeEnd", "timeLog", "trace", "warn"], lengthThreshold: 1e3, logger: "console" };
7005
7032
  function R(e, a, u) {
7006
- const m2 = u ? Object.assign({}, pp, u) : pp, w2 = m2.logger;
7033
+ const m2 = u ? Object.assign({}, cp, u) : cp, w2 = m2.logger;
7007
7034
  if (!w2) return () => {
7008
7035
  };
7009
7036
  let b2;
@@ -7012,7 +7039,7 @@ function R(e, a, u) {
7012
7039
  const I2 = [];
7013
7040
  if (m2.level.includes("error")) {
7014
7041
  const l = (a2) => {
7015
- const u2 = a2.message, w3 = a2.error, b3 = up.parse(w3).map((e2) => e2.toString()), C3 = [g(u2, m2.stringifyOptions)];
7042
+ const u2 = a2.message, w3 = a2.error, b3 = lp.parse(w3).map((e2) => e2.toString()), C3 = [g(u2, m2.stringifyOptions)];
7016
7043
  e({ level: "error", trace: b3, payload: C3 });
7017
7044
  };
7018
7045
  a.addEventListener("error", l), I2.push(() => {
@@ -7021,7 +7048,7 @@ function R(e, a, u) {
7021
7048
  const f = (a2) => {
7022
7049
  let u2, w3;
7023
7050
  a2.reason instanceof Error ? (u2 = a2.reason, w3 = [g(`Uncaught (in promise) ${u2.name}: ${u2.message}`, m2.stringifyOptions)]) : (u2 = new Error(), w3 = [g("Uncaught (in promise)", m2.stringifyOptions), g(a2.reason, m2.stringifyOptions)]);
7024
- const b3 = up.parse(u2).map((e2) => e2.toString());
7051
+ const b3 = lp.parse(u2).map((e2) => e2.toString());
7025
7052
  e({ level: "error", trace: b3, payload: w3 });
7026
7053
  };
7027
7054
  a.addEventListener("unhandledrejection", f), I2.push(() => {
@@ -7049,7 +7076,7 @@ function R(e, a, u) {
7049
7076
  if (a3.apply(this, w3), !("assert" === u2 && w3[0] || x2)) {
7050
7077
  x2 = true;
7051
7078
  try {
7052
- const a4 = up.parse(new Error()).map((e2) => e2.toString()).splice(1), b3 = ("assert" === u2 ? w3.slice(1) : w3).map((e2) => g(e2, m2.stringifyOptions));
7079
+ const a4 = lp.parse(new Error()).map((e2) => e2.toString()).splice(1), b3 = ("assert" === u2 ? w3.slice(1) : w3).map((e2) => g(e2, m2.stringifyOptions));
7053
7080
  C2++, C2 < m2.lengthThreshold ? e({ level: u2, trace: a4, payload: b3 }) : C2 === m2.lengthThreshold && e({ level: "warn", trace: [], payload: [g("The number of log records reached the threshold.")] });
7054
7081
  } catch (e2) {
7055
7082
  a3("@sailfish-rrweb/rrweb logger error:", e2, ...w3);
@@ -7061,7 +7088,7 @@ function R(e, a, u) {
7061
7088
  };
7062
7089
  }
7063
7090
  }
7064
- var dp = ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e[e.Device = 24] = "Device", e[e.SailfishCustom = 25] = "SailfishCustom", e))(dp || {});
7091
+ var up = ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e[e.Device = 24] = "Device", e[e.SailfishCustom = 25] = "SailfishCustom", e))(up || {});
7065
7092
  function suppressConsoleLogsDuringCall(e) {
7066
7093
  const a = console.log, u = console.warn, m2 = console.error;
7067
7094
  console.log = () => {
@@ -7074,7 +7101,7 @@ function suppressConsoleLogsDuringCall(e) {
7074
7101
  console.log = a, console.warn = u, console.error = m2;
7075
7102
  }
7076
7103
  }
7077
- const hp = "zendesk_chat", fp = "Zendesk";
7104
+ const pp = "zendesk_chat", dp = "Zendesk";
7078
7105
  function zE_safe(...e) {
7079
7106
  try {
7080
7107
  if ((function hasZendesk() {
@@ -7113,11 +7140,11 @@ function initializeDomContentEvents(e) {
7113
7140
  function initializeConsolePlugin(e, a) {
7114
7141
  const { name: u, observer: m2 } = /* @__PURE__ */ ((e2) => ({ name: "@sailfish-rrweb/rrweb/console@1", observer: R, options: e2 }))(e);
7115
7142
  m2((e2) => {
7116
- sendEvent({ type: dp.Plugin, timestamp: Date.now(), data: { plugin: u, payload: e2 }, sessionId: a, ...getUrlAndStoredUuids() });
7143
+ sendEvent({ type: up.Plugin, timestamp: Date.now(), data: { plugin: u, payload: e2 }, sessionId: a, ...getUrlAndStoredUuids() });
7117
7144
  }, window, e);
7118
7145
  }
7119
- async function initializeRecording(e, a, u, m2) {
7120
- const w2 = initializeWebSocket(a, u, m2);
7146
+ async function initializeRecording(e, a, u, m2, w2) {
7147
+ const b2 = initializeWebSocket(a, u, m2, w2);
7121
7148
  try {
7122
7149
  ae({ emit(e2) {
7123
7150
  Object.assign(e2, getUrlAndStoredUuids()), e2.sessionId = m2, sendEvent(e2);
@@ -7133,11 +7160,11 @@ async function initializeRecording(e, a, u, m2) {
7133
7160
  zE_safe("messenger:set", "conversationTags", [`sailfish-session-${m2}`]);
7134
7161
  });
7135
7162
  const handleWidgetOpen = () => {
7136
- ae.addSailfishEvent(dp.SailfishCustom, { action: "customer support chat opened", element_id: hp, provider: fp });
7163
+ ae.addSailfishEvent(up.SailfishCustom, { action: "customer support chat opened", element_id: pp, provider: dp });
7137
7164
  }, handleWidgetClose = () => {
7138
- ae.addSailfishEvent(dp.SailfishCustom, { action: "customer support chat closed", element_id: hp, provider: fp });
7165
+ ae.addSailfishEvent(up.SailfishCustom, { action: "customer support chat closed", element_id: pp, provider: dp });
7139
7166
  }, handleUnreadMessages = (e2) => {
7140
- ae.addSailfishEvent(dp.SailfishCustom, { action: "zendesk unreadmessages", element_id: hp, provider: fp });
7167
+ ae.addSailfishEvent(up.SailfishCustom, { action: "zendesk unreadmessages", element_id: pp, provider: dp });
7141
7168
  };
7142
7169
  suppressConsoleLogsDuringCall(() => {
7143
7170
  zE_safe("messenger:on", "open", handleWidgetOpen), zE_safe("messenger:on", "close", handleWidgetClose), zE_safe("messenger:on", "unreadMessages", handleUnreadMessages);
@@ -7146,21 +7173,21 @@ async function initializeRecording(e, a, u, m2) {
7146
7173
  } catch (e2) {
7147
7174
  console.error("Error importing plugins!", e2);
7148
7175
  }
7149
- return w2;
7176
+ return b2;
7150
7177
  }
7151
- let mp = null, gp = null;
7178
+ let hp = null, fp = null;
7152
7179
  function identify(e, a = {}, u = false) {
7153
7180
  const m2 = { type: "identify", userId: e, traits: a };
7154
- mp && mp.userId === e && JSON.stringify(mp.traits) === JSON.stringify(a) || (mp = { userId: e, traits: a, overwrite: u }, sendMessage(m2));
7181
+ hp && hp.userId === e && JSON.stringify(hp.traits) === JSON.stringify(a) || (hp = { userId: e, traits: a, overwrite: u }, sendMessage(m2));
7155
7182
  }
7156
7183
  function addOrUpdateMetadata(e) {
7157
7184
  const a = { type: "addOrUpdateMetadata", metadata: e };
7158
- gp && JSON.stringify(gp) === JSON.stringify(e) || (gp = e, sendMessage(a));
7185
+ fp && JSON.stringify(fp) === JSON.stringify(e) || (fp = e, sendMessage(a));
7159
7186
  }
7160
7187
  function trackingEvent(e) {
7161
7188
  sendMessage({ type: "trackingEvent", trackingData: e, timestamp: ne() });
7162
7189
  }
7163
- const yp = readDebugFlag(), wp = ["t.co", "*.twitter.com", "*.gravatar.com", "*.googleapis.com", "*.amazonaws.com", "*.smooch.io", "*.zendesk.com", "*.zdassets.com"], Sp = [400, 403], bp = "CORS", vp = 1, Cp = { recordCanvas: false, recordCrossOriginIframes: false, collectFonts: false, inlineImages: false, recordPassword: false, recordRealName: true, recordCreditCardInfo: false, recordSsn: false, recordDob: false, sampling: {} }, kp = { level: ["info", "log", "warn", "error"], lengthThreshold: 1e4, stringifyOptions: { stringLengthLimit: 1e3, numOfKeysLimit: 20, depthOfLimit: 4 }, logger: "console" };
7190
+ const mp = readDebugFlag(), gp = ["t.co", "*.twitter.com", "*.gravatar.com", "*.googleapis.com", "*.amazonaws.com", "*.smooch.io", "*.zendesk.com", "*.zdassets.com"], yp = [400, 403], wp = "CORS", Sp = 1, bp = { recordCanvas: false, recordCrossOriginIframes: false, collectFonts: false, inlineImages: false, recordPassword: false, recordRealName: true, recordCreditCardInfo: false, recordSsn: false, recordDob: false, sampling: {} }, vp = { level: ["info", "log", "warn", "error"], lengthThreshold: 1e4, stringifyOptions: { stringLengthLimit: 1e3, numOfKeysLimit: 20, depthOfLimit: 4 }, logger: "console" };
7164
7191
  function trackDomainChangesOnce() {
7165
7192
  const e = window.__sailfish_recorder || (window.__sailfish_recorder = {});
7166
7193
  if (e.routeWatcherIntervalId) return;
@@ -7227,7 +7254,7 @@ function shouldSkipHeadersPropagation(e, a = []) {
7227
7254
  return true;
7228
7255
  }
7229
7256
  for (const e2 of E) if (u.pathname.toLowerCase().endsWith(e2)) return true;
7230
- return !!matchUrlWithWildcard(e, [...wp, ...a]);
7257
+ return !!matchUrlWithWildcard(e, [...gp, ...a]);
7231
7258
  }
7232
7259
  function setupFetchInterceptor(e = []) {
7233
7260
  const a = window.fetch, u = getOrSetSessionId();
@@ -7262,7 +7289,7 @@ function setupFetchInterceptor(e = []) {
7262
7289
  F2[e3] = a4;
7263
7290
  }) : F2 = { ...w3.headers }), D2 = w3.body;
7264
7291
  } catch (e3) {
7265
- yp && console.warn("[Sailfish] Failed to capture request data:", e3);
7292
+ mp && console.warn("[Sailfish] Failed to capture request data:", e3);
7266
7293
  }
7267
7294
  delete F2[b];
7268
7295
  const U2 = (_a2 = getFuncSpanHeader()) == null ? void 0 : _a2.name;
@@ -7272,16 +7299,16 @@ function setupFetchInterceptor(e = []) {
7272
7299
  const I4 = getFuncSpanHeader();
7273
7300
  if (u3 instanceof Request) {
7274
7301
  const _3 = u3.clone(), O3 = new Headers(_3.headers);
7275
- O3.set(b, `${w4}/${C4}/${x4}`), I4 && (O3.set(I4.name, I4.value), yp && console.log("[Sailfish] Added funcspan header to HTTP Request:", { url: u3.url, header: I4.name }));
7302
+ O3.set(b, `${w4}/${C4}/${x4}`), I4 && (O3.set(I4.name, I4.value), mp && console.log("[Sailfish] Added funcspan header to HTTP Request:", { url: u3.url, header: I4.name }));
7276
7303
  const E3 = new Request(_3, { headers: O3 });
7277
7304
  return await e3.call(a4, E3, m4);
7278
7305
  }
7279
7306
  {
7280
7307
  const _3 = { ...m4 }, O3 = new Headers(m4.headers || {});
7281
- return O3.set(b, `${w4}/${C4}/${x4}`), I4 && (O3.set(I4.name, I4.value), yp && console.log("[Sailfish] Added funcspan header to HTTP fetch:", { url: "string" == typeof u3 ? u3 : u3.href, header: I4.name })), _3.headers = O3, await e3.call(a4, u3, _3);
7308
+ return O3.set(b, `${w4}/${C4}/${x4}`), I4 && (O3.set(I4.name, I4.value), mp && console.log("[Sailfish] Added funcspan header to HTTP fetch:", { url: "string" == typeof u3 ? u3 : u3.href, header: I4.name })), _3.headers = O3, await e3.call(a4, u3, _3);
7282
7309
  }
7283
7310
  })(e2, a3, m3, w3, C3, _2.page_visit_uuid, I3), B2 = false;
7284
- Sp.includes(U3.status) && (yp && console.log("Perform retry as status was fail:", U3), I3 = v4(), U3 = await (async function retryWithoutPropagateHeaders(e3, a4, u3, m4) {
7311
+ yp.includes(U3.status) && (mp && console.log("Perform retry as status was fail:", U3), I3 = v4(), U3 = await (async function retryWithoutPropagateHeaders(e3, a4, u3, m4) {
7285
7312
  try {
7286
7313
  let m5 = u3[0], w4 = u3[1] || {};
7287
7314
  if ("string" == typeof m5 || m5 instanceof URL) {
@@ -7297,7 +7324,7 @@ function setupFetchInterceptor(e = []) {
7297
7324
  }
7298
7325
  return e3.apply(a4, u3);
7299
7326
  } catch (e4) {
7300
- throw yp && console.log(`Retry without ${b} for ${m4} also failed:`, e4), e4;
7327
+ throw mp && console.log(`Retry without ${b} for ${m4} also failed:`, e4), e4;
7301
7328
  }
7302
7329
  })(e2, a3, u2, x3), B2 = true);
7303
7330
  const $2 = Date.now(), z2 = U3.status, j2 = U3.ok, V2 = j2 ? "" : `Request Error: ${U3.statusText}`;
@@ -7306,7 +7333,7 @@ function setupFetchInterceptor(e = []) {
7306
7333
  const e3 = U3.clone();
7307
7334
  q2 = await e3.text();
7308
7335
  } catch (e3) {
7309
- yp && console.warn("[Sailfish] Failed to capture response data:", e3), q2 = null;
7336
+ mp && console.warn("[Sailfish] Failed to capture response data:", e3), q2 = null;
7310
7337
  }
7311
7338
  let H2 = null;
7312
7339
  try {
@@ -7314,12 +7341,12 @@ function setupFetchInterceptor(e = []) {
7314
7341
  H2[a4] = e3;
7315
7342
  });
7316
7343
  } catch (e3) {
7317
- yp && console.warn("[Sailfish] Failed to capture response headers:", e3), H2 = null;
7344
+ mp && console.warn("[Sailfish] Failed to capture response headers:", e3), H2 = null;
7318
7345
  }
7319
7346
  return sendEvent({ type: 27, timestamp: $2, sessionId: C3, data: { request_id: I3, session_id: C3, timestamp_start: E2, timestamp_end: $2, response_code: z2, success: j2, error: V2, method: O2, url: x3, retry_without_trace_id: B2, request_headers: F2, request_body: D2, response_headers: H2, response_body: q2 }, ..._2 }), U3;
7320
7347
  } catch (m4) {
7321
7348
  const w4 = Date.now(), b2 = false, U3 = ((_b = m4.response) == null ? void 0 : _b.status) || 500, B2 = m4.message || "Fetch request failed";
7322
- if (m4 instanceof TypeError && ((_c2 = m4 == null ? void 0 : m4.message) == null ? void 0 : _c2.toLowerCase().includes(bp.toLowerCase()))) return e2.apply(a3, u2);
7349
+ if (m4 instanceof TypeError && ((_c2 = m4 == null ? void 0 : m4.message) == null ? void 0 : _c2.toLowerCase().includes(wp.toLowerCase()))) return e2.apply(a3, u2);
7323
7350
  throw sendEvent({ type: 27, timestamp: w4, sessionId: C3, data: { request_id: I3, session_id: C3, timestamp_start: E2, timestamp_end: w4, response_code: U3, success: b2, error: B2, method: O2, url: x3, request_headers: F2, request_body: D2, response_body: null }, ..._2 }), m4;
7324
7351
  }
7325
7352
  })(a2, m2, w2, x2, I2, u, C2);
@@ -7351,9 +7378,9 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7351
7378
  } catch {
7352
7379
  }
7353
7380
  })(), F2 = getOrSetSessionId(), U2 = window.__sailfish_recorder || (window.__sailfish_recorder = {});
7354
- if (U2.sessionId = F2, U2.apiKey = e, U2.backendApi = a, U2.initialized && U2.sessionId === F2 && U2.ws && 1 === U2.ws.readyState) trackDomainChangesOnce();
7381
+ if (U2.sessionId = F2, U2.apiKey = e, U2.backendApi = a, U2.serviceAdditionalMetadata = I2, U2.initialized && U2.sessionId === F2 && U2.ws && 1 === U2.ws.readyState) trackDomainChangesOnce();
7355
7382
  else {
7356
- U2.domEventsInit || (initializeDomContentEvents(F2), U2.domEventsInit = true), U2.consoleInit || (initializeConsolePlugin(kp, F2), U2.consoleInit = true), U2.errorInit || (!(function initializeErrorInterceptor() {
7383
+ U2.domEventsInit || (initializeDomContentEvents(F2), U2.domEventsInit = true), U2.consoleInit || (initializeConsolePlugin(vp, F2), U2.consoleInit = true), U2.errorInit || (!(function initializeErrorInterceptor() {
7357
7384
  window.addEventListener("error", (e2) => {
7358
7385
  captureError(e2.error || e2.message);
7359
7386
  }), window.addEventListener("unhandledrejection", (e2) => {
@@ -7361,7 +7388,12 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7361
7388
  });
7362
7389
  })(), U2.errorInit = true), (function storeCredentialsAndConnection({ apiKey: e2, backendApi: a2 }) {
7363
7390
  X && (sessionStorage.setItem("sailfishApiKey", e2), sessionStorage.setItem("sailfishBackendApi", a2));
7364
- })({ apiKey: e, backendApi: a }), trackDomainChangesOnce(), sessionStorage.setItem("sailfishApiKey", e), sessionStorage.setItem("sailfishBackendApi", a), U2.sentDoNotPropagateOnce || (sendDomainsToNotPropagateHeaderTo(e, [...m2, ...wp], a).catch((e2) => console.error("Failed to send domains to not propagate header to:", e2)), U2.sentDoNotPropagateOnce = true), U2.xhrPatched || (!(function setupXMLHttpRequestInterceptor(e2 = []) {
7391
+ })({ apiKey: e, backendApi: a }), trackDomainChangesOnce(), sessionStorage.setItem("sailfishApiKey", e), sessionStorage.setItem("sailfishBackendApi", a), !isFunctionSpanTrackingEnabled() || U2.ws && 1 === U2.ws.readyState || fetchFunctionSpanTrackingEnabled(e, a).then((e2) => {
7392
+ var _a3;
7393
+ ((_a3 = e2.data) == null ? void 0 : _a3.isFunctionSpanTrackingEnabledFromApiKey) ?? false ? mp && console.log("[Sailfish] Function span tracking state validated with backend: ACTIVE") : (clearStaleFuncSpanState(), mp && console.log("[Sailfish] Cleared stale function span tracking state - backend validation shows tracking is not active"));
7394
+ }).catch((e2) => {
7395
+ mp && console.warn("[Sailfish] Failed to validate function span tracking status with backend:", e2);
7396
+ }), U2.sentDoNotPropagateOnce || (sendDomainsToNotPropagateHeaderTo(e, [...m2, ...gp], a).catch((e2) => console.error("Failed to send domains to not propagate header to:", e2)), U2.sentDoNotPropagateOnce = true), U2.xhrPatched || (!(function setupXMLHttpRequestInterceptor(e2 = []) {
7365
7397
  const a2 = XMLHttpRequest.prototype.open, u2 = XMLHttpRequest.prototype.send, m3 = XMLHttpRequest.prototype.setRequestHeader, w3 = getOrSetSessionId();
7366
7398
  XMLHttpRequest.prototype.setRequestHeader = function(e3, a3) {
7367
7399
  return this._capturedRequestHeaders || (this._capturedRequestHeaders = {}), this._capturedRequestHeaders[e3] = a3, m3.call(this, e3, a3);
@@ -7379,9 +7411,9 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7379
7411
  }
7380
7412
  const _3 = getFuncSpanHeader();
7381
7413
  if (_3) try {
7382
- this.setRequestHeader(_3.name, _3.value), yp && console.log("[Sailfish] Added funcspan header to XMLHttpRequest:", { url: m4, header: _3.name });
7414
+ this.setRequestHeader(_3.name, _3.value), mp && console.log("[Sailfish] Added funcspan header to XMLHttpRequest:", { url: m4, header: _3.name });
7383
7415
  } catch (e3) {
7384
- yp && console.warn(`[Sailfish] Could not set funcspan header for ${m4}`, e3);
7416
+ mp && console.warn(`[Sailfish] Could not set funcspan header for ${m4}`, e3);
7385
7417
  }
7386
7418
  const O3 = Date.now();
7387
7419
  let E3 = false;
@@ -7409,7 +7441,7 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7409
7441
  2 === a5.length && (u3[a5[0]] = a5[1]);
7410
7442
  });
7411
7443
  } catch (e4) {
7412
- yp && console.warn("[Sailfish] Failed to capture XHR response headers:", e4), u3 = null;
7444
+ mp && console.warn("[Sailfish] Failed to capture XHR response headers:", e4), u3 = null;
7413
7445
  }
7414
7446
  if (e3 >= 200 && e3 < 300) emitFinished(true, e3, "", a4, u3);
7415
7447
  else {
@@ -7425,12 +7457,12 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7425
7457
  sendMessage({ type: "deviceInfo", data: { deviceInfo: { language: navigator.language, userAgent: navigator.userAgent } } });
7426
7458
  })();
7427
7459
  try {
7428
- const u2 = await fetchCaptureSettings(e, a), m3 = ((_a2 = u2.data) == null ? void 0 : _a2.captureSettingsFromApiKey) || Cp;
7460
+ const u2 = await fetchCaptureSettings(e, a), m3 = ((_a2 = u2.data) == null ? void 0 : _a2.captureSettingsFromApiKey) || bp;
7429
7461
  if (U2.ws && 1 === U2.ws.readyState) return;
7430
7462
  const b2 = withAppUrlMetadata(I2), x3 = await startRecordingSession(e, F2, a, O2, E2, D2, _2, "JS/TS", b2);
7431
7463
  if ((_b = x3.data) == null ? void 0 : _b.startRecordingSession) {
7432
- const u3 = await initializeRecording(m3, a, e, F2);
7433
- U2.ws = u3, U2.initialized = true, U2.sentMapUuidOnce || (!(function sendMapUuidIfAvailable(e2 = "", a2 = "") {
7464
+ const u3 = (I2 == null ? void 0 : I2.env) || (I2 == null ? void 0 : I2.environment), b3 = await initializeRecording(m3, a, e, F2, u3);
7465
+ U2.ws = b3, U2.initialized = true, U2.sentMapUuidOnce || (!(function sendMapUuidIfAvailable(e2 = "", a2 = "") {
7434
7466
  window.sfMapUuid && sendMessage({ type: "mapUuid", data: { mapUuid: window.sfMapUuid, serviceIdentifier: e2, serviceVersion: a2 } });
7435
7467
  })(C2, w2), U2.sentMapUuidOnce = true);
7436
7468
  } else console.error("Failed to start recording session:", x3.errors || x3);
@@ -7461,7 +7493,7 @@ H && (!(function sendUserDeviceUuid() {
7461
7493
  const e = document.visibilityState, a = Date.now();
7462
7494
  "visible" === e && getOrSetSessionId();
7463
7495
  try {
7464
- sendMessage({ type: "visibilityChange", data: { state: e, url: window.location.href.split("?")[0], timestamp: a, ...getUrlAndStoredUuids() } }), yp && console.log(`[Sailfish] Tab became ${e}, sent visibility change event`);
7496
+ sendMessage({ type: "visibilityChange", data: { state: e, url: window.location.href.split("?")[0], timestamp: a, ...getUrlAndStoredUuids() } }), mp && console.log(`[Sailfish] Tab became ${e}, sent visibility change event`);
7465
7497
  } catch (e2) {
7466
7498
  console.warn("[Sailfish] Failed to send visibility change event:", e2);
7467
7499
  }
@@ -7479,16 +7511,18 @@ const initRecorder = async (e) => {
7479
7511
  })), a.initPromise);
7480
7512
  };
7481
7513
  export {
7482
- Cp as DEFAULT_CAPTURE_SETTINGS,
7483
- kp as DEFAULT_CONSOLE_RECORDING_SETTINGS,
7484
- vp as STORAGE_VERSION,
7514
+ bp as DEFAULT_CAPTURE_SETTINGS,
7515
+ vp as DEFAULT_CONSOLE_RECORDING_SETTINGS,
7516
+ Sp as STORAGE_VERSION,
7485
7517
  addOrUpdateMetadata,
7486
7518
  buildBatches,
7519
+ clearStaleFuncSpanState,
7487
7520
  createTriageFromRecorder,
7488
7521
  disableFunctionSpanTracking,
7489
7522
  enableFunctionSpanTracking,
7490
7523
  eventSize,
7491
7524
  fetchCaptureSettings,
7525
+ fetchFunctionSpanTrackingEnabled,
7492
7526
  flushBufferedEvents,
7493
7527
  getFuncSpanHeader,
7494
7528
  getOrSetSessionId,
@@ -7497,6 +7531,7 @@ export {
7497
7531
  initRecorder,
7498
7532
  initializeConsolePlugin,
7499
7533
  initializeDomContentEvents,
7534
+ initializeFunctionSpanTrackingFromApi,
7500
7535
  initializeRecording,
7501
7536
  initializeWebSocket,
7502
7537
  isFunctionSpanTrackingEnabled,