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