@sailfish-ai/recorder 1.12.7 → 1.12.8

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.
Files changed (61) hide show
  1. package/dist/chunks/{canvasManager-B9uQ-PFS.js → canvasManager-3AzRUaNq.js} +1 -1
  2. package/dist/chunks/canvasManager-3AzRUaNq.js.br +0 -0
  3. package/dist/chunks/canvasManager-3AzRUaNq.js.gz +0 -0
  4. package/dist/chunks/{canvasManager-Ce7vazTt.js → canvasManager-CDEhVz_J.js} +1 -1
  5. package/dist/chunks/canvasManager-CDEhVz_J.js.br +0 -0
  6. package/dist/chunks/canvasManager-CDEhVz_J.js.gz +0 -0
  7. package/dist/chunks/{chunkSerializer-B-z7p0r-.js → chunkSerializer-B3loCr3q.js} +1 -1
  8. package/dist/chunks/chunkSerializer-B3loCr3q.js.br +0 -0
  9. package/dist/chunks/chunkSerializer-B3loCr3q.js.gz +0 -0
  10. package/dist/chunks/{chunkSerializer-C1knjCQ5.js → chunkSerializer-Cz0TPV-B.js} +1 -1
  11. package/dist/chunks/chunkSerializer-Cz0TPV-B.js.br +0 -0
  12. package/dist/chunks/chunkSerializer-Cz0TPV-B.js.gz +0 -0
  13. package/dist/chunks/hoverDetection-Bl-yKKI3.js +137 -0
  14. package/dist/chunks/hoverDetection-Bl-yKKI3.js.br +0 -0
  15. package/dist/chunks/hoverDetection-Bl-yKKI3.js.gz +0 -0
  16. package/dist/chunks/hoverDetection-CYsyBQjj.js +139 -0
  17. package/dist/chunks/hoverDetection-CYsyBQjj.js.br +0 -0
  18. package/dist/chunks/hoverDetection-CYsyBQjj.js.gz +0 -0
  19. package/dist/chunks/{index-BMHQ-0NY.js → index-BUAmLDnY.js} +109 -103
  20. package/dist/chunks/index-BUAmLDnY.js.br +0 -0
  21. package/dist/chunks/index-BUAmLDnY.js.gz +0 -0
  22. package/dist/chunks/{index-qgM1hFXO.js → index-CPZwt1ko.js} +59 -53
  23. package/dist/chunks/index-CPZwt1ko.js.br +0 -0
  24. package/dist/chunks/index-CPZwt1ko.js.gz +0 -0
  25. package/dist/hoverDetection.js +371 -0
  26. package/dist/hoverDetection.js.br +0 -0
  27. package/dist/hoverDetection.js.gz +0 -0
  28. package/dist/hoverDetection.test.js +187 -0
  29. package/dist/hoverDetection.test.js.br +0 -0
  30. package/dist/hoverDetection.test.js.gz +0 -0
  31. package/dist/index.js +8 -0
  32. package/dist/index.js.br +0 -0
  33. package/dist/index.js.gz +0 -0
  34. package/dist/recorder.cjs +1 -1
  35. package/dist/recorder.cjs.br +0 -0
  36. package/dist/recorder.cjs.gz +0 -0
  37. package/dist/recorder.js +1 -1
  38. package/dist/recorder.js.br +0 -0
  39. package/dist/recorder.js.gz +0 -0
  40. package/dist/recorder.umd.cjs +572 -434
  41. package/dist/recorder.umd.cjs.br +0 -0
  42. package/dist/recorder.umd.cjs.gz +0 -0
  43. package/dist/recording.js +27 -0
  44. package/dist/recording.js.br +0 -0
  45. package/dist/recording.js.gz +0 -0
  46. package/dist/types/hoverDetection.d.ts +37 -0
  47. package/dist/types/hoverDetection.test.d.ts +1 -0
  48. package/dist/types/types.d.ts +6 -0
  49. package/package.json +1 -1
  50. package/dist/chunks/canvasManager-B9uQ-PFS.js.br +0 -0
  51. package/dist/chunks/canvasManager-B9uQ-PFS.js.gz +0 -0
  52. package/dist/chunks/canvasManager-Ce7vazTt.js.br +0 -0
  53. package/dist/chunks/canvasManager-Ce7vazTt.js.gz +0 -0
  54. package/dist/chunks/chunkSerializer-B-z7p0r-.js.br +0 -0
  55. package/dist/chunks/chunkSerializer-B-z7p0r-.js.gz +0 -0
  56. package/dist/chunks/chunkSerializer-C1knjCQ5.js.br +0 -0
  57. package/dist/chunks/chunkSerializer-C1knjCQ5.js.gz +0 -0
  58. package/dist/chunks/index-BMHQ-0NY.js.br +0 -0
  59. package/dist/chunks/index-BMHQ-0NY.js.gz +0 -0
  60. package/dist/chunks/index-qgM1hFXO.js.br +0 -0
  61. package/dist/chunks/index-qgM1hFXO.js.gz +0 -0
@@ -364,27 +364,27 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
364
364
  for (const C2 of e2) w2.delete(C2);
365
365
  });
366
366
  }
367
- const J = "canvasFrames", Q = 67108864;
368
- let Z = null;
367
+ const Z = "canvasFrames", J = 67108864;
368
+ let Q = null;
369
369
  function openDb$1() {
370
370
  return (function hasIndexedDB$1() {
371
371
  return "undefined" != typeof globalThis && !!globalThis.indexedDB;
372
- })() ? Z || (Z = new Promise((e2) => {
372
+ })() ? Q || (Q = new Promise((e2) => {
373
373
  try {
374
374
  const w2 = globalThis.indexedDB.open("leapsCanvasFrameDB", 1);
375
375
  w2.onupgradeneeded = () => {
376
376
  const e3 = w2.result;
377
- e3.objectStoreNames.contains(J) || e3.createObjectStore(J, { keyPath: "id", autoIncrement: true });
377
+ e3.objectStoreNames.contains(Z) || e3.createObjectStore(Z, { keyPath: "id", autoIncrement: true });
378
378
  }, w2.onsuccess = () => e2(w2.result), w2.onerror = () => e2(null), w2.onblocked = () => e2(null);
379
379
  } catch {
380
380
  e2(null);
381
381
  }
382
- }), Z) : Promise.resolve(null);
382
+ }), Q) : Promise.resolve(null);
383
383
  }
384
384
  function withStore$1(e2, w2) {
385
385
  return openDb$1().then((C2) => C2 ? new Promise((x2) => {
386
386
  try {
387
- const M2 = C2.transaction(J, e2), I2 = M2.objectStore(J);
387
+ const M2 = C2.transaction(Z, e2), I2 = M2.objectStore(Z);
388
388
  Promise.resolve(w2(I2)).then((e3) => {
389
389
  M2.oncomplete = () => x2(e3), M2.onerror = () => x2(null);
390
390
  }).catch(() => x2(null));
@@ -405,7 +405,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
405
405
  const e4 = I2.value, w4 = "number" == typeof (e4 == null ? void 0 : e4.bytes) ? e4.bytes : 0;
406
406
  return C2 += w4, "number" == typeof (e4 == null ? void 0 : e4.id) && x2.push({ id: e4.id, bytes: w4 }), void I2.continue();
407
407
  }
408
- let _2 = C2 - Q;
408
+ let _2 = C2 - J;
409
409
  if (_2 <= 0) return w3();
410
410
  for (const w4 of x2) {
411
411
  if (_2 <= 0) break;
@@ -694,10 +694,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
694
694
  function clearStaleFuncSpanState() {
695
695
  Ge = false, qe = null, Ke = false, clearGlobalFuncSpanState(), pe && console.log("[Sailfish] Cleared stale function span tracking state (backend validation failed)");
696
696
  }
697
- let Je = false;
697
+ let Ze = false;
698
698
  function restoreFuncSpanState() {
699
- if (Je) return;
700
- Je = true;
699
+ if (Ze) return;
700
+ Ze = true;
701
701
  const e2 = (function loadGlobalFuncSpanState() {
702
702
  try {
703
703
  if ("undefined" == typeof localStorage) return null;
@@ -827,7 +827,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
827
827
  const w3 = new URL(e3);
828
828
  return `${w3.hostname}${w3.port ? `:${w3.port}` : ""}`;
829
829
  })(e2);
830
- let _2 = `${"https:" === new URL(e2).protocol ? "wss" : "ws"}://${I2}/ws/notify/?apiKey=${w2}&sessionId=${C2}&sender=JS%2FTS&version=1.12.7`;
830
+ let _2 = `${"https:" === new URL(e2).protocol ? "wss" : "ws"}://${I2}/ws/notify/?apiKey=${w2}&sessionId=${C2}&sender=JS%2FTS&version=1.12.8`;
831
831
  if (x2 && (_2 += `&envValue=${encodeURIComponent(x2)}`), we = null, be = null, Se = 0, ge = M2 ? (function tryCreateWsWorker() {
832
832
  if ("undefined" == typeof Worker) return null;
833
833
  try {
@@ -884,7 +884,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
884
884
  }
885
885
  return { name: "X-Sf3-FunctionSpanCaptureOverride", value: "1-1-10-10-1-1.0-1-0-0" };
886
886
  }
887
- const Ze = Object.freeze(Object.defineProperty({ __proto__: null, clearStaleFuncSpanState, disableFunctionSpanTracking, enableFunctionSpanTracking, ensureHrefCache, flushBufferedEvents, getBinaryDropCount, getBufferedAmount, getCachedHref, getCachedHrefNoQuery, getFuncSpanHeader, initializeFunctionSpanTrackingFromApi, initializeWebSocket, isFunctionSpanTrackingEnabled, isTransportSaturated, onNavigationChange, requestTimeSync, restoreFuncSpanState, sendEvent, sendMessage, wsSendBinary }, Symbol.toStringTag, { value: "Module" }));
887
+ const Je = Object.freeze(Object.defineProperty({ __proto__: null, clearStaleFuncSpanState, disableFunctionSpanTracking, enableFunctionSpanTracking, ensureHrefCache, flushBufferedEvents, getBinaryDropCount, getBufferedAmount, getCachedHref, getCachedHrefNoQuery, getFuncSpanHeader, initializeFunctionSpanTrackingFromApi, initializeWebSocket, isFunctionSpanTrackingEnabled, isTransportSaturated, onNavigationChange, requestTimeSync, restoreFuncSpanState, sendEvent, sendMessage, wsSendBinary }, Symbol.toStringTag, { value: "Module" }));
888
888
  let et = null, tt = null;
889
889
  function getIdentifiedUser() {
890
890
  return et;
@@ -1012,8 +1012,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1012
1012
  function fetchEngineeringTicketPlatformIntegrations(e2, w2) {
1013
1013
  return sendGraphQLRequest("GetEngineeringTicketPlatformIntegrationsFromApiKey", "query GetEngineeringTicketPlatformIntegrationsFromApiKey($apiKey: String!) {\n getEngineeringTicketPlatformIntegrationsFromApiKey(apiKey: $apiKey) {\n pushAutoIdentifiedIssues\n provider\n clientId\n defaultPriority\n defaultProject\n defaultTeam\n primaryCloudId\n installed\n projects\n teams\n workflowStates\n webhookState\n clouds\n labels\n sprints\n users\n fieldConfigurations\n invalidFields\n jiraReporterAccountId\n }\n }", { apiKey: e2, backendApi: w2 });
1014
1014
  }
1015
- function createTriageAndIssueFromRecorder(e2, w2, C2, x2, M2, I2, _2, U2, j2, W2, z2, H2, K2, X2, Y2, J2) {
1016
- return sendGraphQLRequest("CreateTriageAndIssueFromRecorder", "mutation CreateTriageAndIssueFromRecorder(\n $apiKey: String!,\n $recordingSessionId: String!,\n $timestampStart: String!,\n $timestampEnd: String!,\n $description: String,\n $issueName: String,\n $issueDescription: String,\n $createEngineeringTicket: Boolean,\n $teamId: String,\n $projectId: String,\n $priority: Int,\n $labels: [String!],\n $issueType: String,\n $customFields: JSON,\n $triageSource: TriageSourceEnum\n ) {\n createTriageAndIssueFromRecorder(\n apiKey: $apiKey,\n recordingSessionId: $recordingSessionId,\n timestampStart: $timestampStart,\n timestampEnd: $timestampEnd,\n description: $description,\n issueName: $issueName,\n issueDescription: $issueDescription,\n createEngineeringTicket: $createEngineeringTicket,\n teamId: $teamId,\n projectId: $projectId,\n priority: $priority,\n labels: $labels,\n issueType: $issueType,\n customFields: $customFields,\n triageSource: $triageSource\n ) {\n id\n title\n }\n }\n ", { apiKey: e2, recordingSessionId: C2, timestampStart: x2, timestampEnd: M2, description: I2, issueName: _2, issueDescription: U2, createEngineeringTicket: j2, teamId: W2, projectId: z2, priority: H2, labels: K2, issueType: X2, customFields: Y2, triageSource: J2, backendApi: w2 });
1015
+ function createTriageAndIssueFromRecorder(e2, w2, C2, x2, M2, I2, _2, U2, j2, W2, z2, H2, K2, X2, Y2, Z2) {
1016
+ return sendGraphQLRequest("CreateTriageAndIssueFromRecorder", "mutation CreateTriageAndIssueFromRecorder(\n $apiKey: String!,\n $recordingSessionId: String!,\n $timestampStart: String!,\n $timestampEnd: String!,\n $description: String,\n $issueName: String,\n $issueDescription: String,\n $createEngineeringTicket: Boolean,\n $teamId: String,\n $projectId: String,\n $priority: Int,\n $labels: [String!],\n $issueType: String,\n $customFields: JSON,\n $triageSource: TriageSourceEnum\n ) {\n createTriageAndIssueFromRecorder(\n apiKey: $apiKey,\n recordingSessionId: $recordingSessionId,\n timestampStart: $timestampStart,\n timestampEnd: $timestampEnd,\n description: $description,\n issueName: $issueName,\n issueDescription: $issueDescription,\n createEngineeringTicket: $createEngineeringTicket,\n teamId: $teamId,\n projectId: $projectId,\n priority: $priority,\n labels: $labels,\n issueType: $issueType,\n customFields: $customFields,\n triageSource: $triageSource\n ) {\n id\n title\n }\n }\n ", { apiKey: e2, recordingSessionId: C2, timestampStart: x2, timestampEnd: M2, description: I2, issueName: _2, issueDescription: U2, createEngineeringTicket: j2, teamId: W2, projectId: z2, priority: H2, labels: K2, issueType: X2, customFields: Y2, triageSource: Z2, backendApi: w2 });
1017
1017
  }
1018
1018
  var dt = ((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))(dt || {});
1019
1019
  const pt = ["/node_modules/", "/@sailfish-ai/", "/@sailfish-rrweb/", "/dist/", "/webpack/", "/vite/", "/__vite", "/react-dom/", "/react/", "/scheduler/", "/<", "/chrome-extension://", "/extensions/"];
@@ -1100,7 +1100,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1100
1100
  return false;
1101
1101
  }
1102
1102
  }
1103
- const ht = /\d/, ft = /\b\d{3}-\d{2}-\d{4}\b/, wt = /\b(?:\d[ -]*?){13,16}\b/g, vt = /\b\d{3}-\d{2}-\d{4}\b/g, bt = /\b\d{1,2}[/\-.]\d{1,2}[/\-.]\d{2,4}\b/g;
1103
+ const ht = /\d/, ft = /\b\d{3}-\d{2}-\d{4}\b/, vt = /\b(?:\d[ -]*?){13,16}\b/g, wt = /\b\d{3}-\d{2}-\d{4}\b/g, bt = /\b\d{1,2}[/\-.]\d{1,2}[/\-.]\d{2,4}\b/g;
1104
1104
  function passesLuhn(e2) {
1105
1105
  let w2 = "";
1106
1106
  for (let C3 = 0; C3 < e2.length; C3++) {
@@ -1142,9 +1142,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1142
1142
  return "hidden" === w2.type ? "" : w2.hasAttribute("data-cc") || ((_a2 = w2.getAttribute("autocomplete")) == null ? void 0 : _a2.startsWith("cc-")) || (function looksLikeCreditCard(e3) {
1143
1143
  if ("string" != typeof e3) return false;
1144
1144
  let w3;
1145
- for (wt.lastIndex = 0; null !== (w3 = wt.exec(e3)); ) {
1145
+ for (vt.lastIndex = 0; null !== (w3 = vt.exec(e3)); ) {
1146
1146
  if (passesLuhn(w3[0])) return true;
1147
- w3.index === wt.lastIndex && wt.lastIndex++;
1147
+ w3.index === vt.lastIndex && vt.lastIndex++;
1148
1148
  }
1149
1149
  return false;
1150
1150
  })(e2) ? redactCreditCard(e2) : w2.hasAttribute("data-ssn") || (function looksLikeSsn(e3) {
@@ -1259,8 +1259,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1259
1259
  } else w4({ emit(e3) {
1260
1260
  emitWithContext(e3);
1261
1261
  }, ...e2, maskInputOptions: W2, maskInputFn: z2, maskTextFn: H2, maskInputSelector: _3, maskTextSelector: I3, blockSelector: M3, maskTextClass: e2.maskTextClass ?? Ct, recordCanvas: false });
1262
+ if (false !== e2.recordHover) try {
1263
+ const { installHoverDetection: C4 } = await Promise.resolve().then(() => Dh), num = (e3, w5) => "number" == typeof e3 ? e3 : w5, x3 = C4(w4, { dwellMs: num(e2.hoverDwellMs, 500), strictAffordance: false !== e2.hoverStrictAffordance, cooldownMs: num(e2.hoverCooldownMs, 3e3), maxPerSession: num(e2.hoverMaxPerSession, 300), maxPerSecond: num(e2.hoverMaxPerSecond, 1) });
1264
+ window.addEventListener("pagehide", () => x3(), { once: true });
1265
+ } catch (e3) {
1266
+ console.warn("[Sailfish] Failed to enable hover detection:", e3);
1267
+ }
1262
1268
  if (e2.recordCanvas) try {
1263
- const { startCanvasRecording: C4, stopCanvasRecording: M4, flushAllCanvas: I4, isCanvasRecordingActive: _4 } = await Promise.resolve().then(() => vf), U3 = { settings: { maskCanvasClass: e2.maskCanvasClass, maskTextClass: e2.maskTextClass, maskTextSelector: e2.maskTextSelector, blockSelector: e2.blockSelector, unmaskSelector: e2.unmaskSelector, maskCanvasText: e2.maskCanvasText ?? void 0, canvasRedactStyle: e2.canvasRedactStyle, recordSsn: e2.recordSsn, recordCreditCardInfo: e2.recordCreditCardInfo, recordDob: e2.recordDob, recordRealName: e2.recordRealName, recordPassword: e2.recordPassword }, mirror: w4.mirror, addSailfishEvent: (e3) => {
1269
+ const { startCanvasRecording: C4, stopCanvasRecording: M4, flushAllCanvas: I4, isCanvasRecordingActive: _4 } = await Promise.resolve().then(() => xf), U3 = { settings: { maskCanvasClass: e2.maskCanvasClass, maskTextClass: e2.maskTextClass, maskTextSelector: e2.maskTextSelector, blockSelector: e2.blockSelector, unmaskSelector: e2.unmaskSelector, maskCanvasText: e2.maskCanvasText ?? void 0, canvasRedactStyle: e2.canvasRedactStyle, recordSsn: e2.recordSsn, recordCreditCardInfo: e2.recordCreditCardInfo, recordDob: e2.recordDob, recordRealName: e2.recordRealName, recordPassword: e2.recordPassword }, mirror: w4.mirror, addSailfishEvent: (e3) => {
1264
1270
  kt == null ? void 0 : kt.addSailfishEvent(dt.SailfishCustom, { ...e3, tag: "sf-canvas" });
1265
1271
  }, sendBinary: wsSendBinary, getContextIds: () => ({ session_id: x2, page_visit_uuid: getUrlAndStoredUuids().page_visit_uuid }), isTransportSaturated };
1266
1272
  C4(U3);
@@ -1453,7 +1459,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1453
1459
  if ("string" != typeof e3 || 0 === e3.length) return e3;
1454
1460
  if (!ht.test(e3)) return e3;
1455
1461
  let C3 = e3;
1456
- return false === w3.recordCreditCardInfo && (wt.lastIndex = 0, C3 = C3.replace(wt, (e4) => passesLuhn(e4) ? redactCreditCard(e4) : e4)), false === w3.recordSsn && (vt.lastIndex = 0, C3 = C3.replace(vt, (e4) => redactSsn(e4))), false === w3.recordDob && (bt.lastIndex = 0, C3 = C3.replace(bt, (e4) => redactDob(e4))), C3;
1462
+ return false === w3.recordCreditCardInfo && (vt.lastIndex = 0, C3 = C3.replace(vt, (e4) => passesLuhn(e4) ? redactCreditCard(e4) : e4)), false === w3.recordSsn && (wt.lastIndex = 0, C3 = C3.replace(wt, (e4) => redactSsn(e4))), false === w3.recordDob && (bt.lastIndex = 0, C3 = C3.replace(bt, (e4) => redactDob(e4))), C3;
1457
1463
  })(e2, C2) : e2;
1458
1464
  }
1459
1465
  const Vt = { text: "asterisks", shape: "color" }, qt = "#1f2433";
@@ -2368,7 +2374,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2368
2374
  }
2369
2375
  const Xn = { 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 } }, Yn = { shortcuts: { ...Xn }, resolveSessionId: null, apiKey: null, backendApi: null, triageBaseUrl: "https://app.sailfishqa.com", deactivateIsolation: () => {
2370
2376
  }, integrationData: null, showEngTicketFieldsDefault: false };
2371
- let Jn = null, Qn = false;
2377
+ let Zn = null, Jn = false;
2372
2378
  function setupCustomMultiSelectListeners(e2, w2) {
2373
2379
  const C2 = document.getElementById(`${e2}-container`), x2 = document.getElementById(`${e2}-dropdown`);
2374
2380
  if (!C2 || !x2) return;
@@ -2617,10 +2623,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2617
2623
  return Yn.resolveSessionId();
2618
2624
  }
2619
2625
  function openReportIssueModal(e2) {
2620
- Wn ? stopRecording() : (Qn = (e2 == null ? void 0 : e2.showEngTicketFields) ?? Yn.showEngTicketFieldsDefault, injectModalHTML(), Jn && document.body.appendChild(Jn));
2626
+ Wn ? stopRecording() : (Jn = (e2 == null ? void 0 : e2.showEngTicketFields) ?? Yn.showEngTicketFieldsDefault, injectModalHTML(), Zn && document.body.appendChild(Zn));
2621
2627
  }
2622
2628
  function closeModal() {
2623
- Yn.deactivateIsolation(), document.activeElement instanceof HTMLElement && document.activeElement.blur(), (Jn == null ? void 0 : Jn.parentNode) && Jn.parentNode.removeChild(Jn), Jn = null, Wn || (function resetState() {
2629
+ Yn.deactivateIsolation(), document.activeElement instanceof HTMLElement && document.activeElement.blur(), (Zn == null ? void 0 : Zn.parentNode) && Zn.parentNode.removeChild(Zn), Zn = null, Wn || (function resetState() {
2624
2630
  Dn = getInitialState(), Fn = null, Bn = null, zn = false;
2625
2631
  })(), Un && (clearInterval(Un), setTimerInterval(null));
2626
2632
  }
@@ -2681,9 +2687,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2681
2687
  };
2682
2688
  }
2683
2689
  function injectModalHTML(e2 = "lookback") {
2684
- Jn && (Jn.remove(), Jn = null), Jn = document.createElement("div"), Jn.id = "sf-report-issue-modal";
2690
+ Zn && (Zn.remove(), Zn = null), Zn = document.createElement("div"), Zn.id = "sf-report-issue-modal";
2685
2691
  const w2 = "startnow" === e2;
2686
- Jn.innerHTML = `
2692
+ Zn.innerHTML = `
2687
2693
  <div style="position:fixed; inset:0; background:rgba(0,0,0,0.4); z-index:9998;"></div>
2688
2694
  <div style="position:fixed; top:50%; left:50%; transform:translate(-50%, -50%);
2689
2695
  background:#fff; border-radius:12px;
@@ -2809,7 +2815,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2809
2815
  Create an Issue
2810
2816
  </label>
2811
2817
 
2812
- <label id="sf-create-eng-ticket-label" style="display:${Yn.integrationData && Qn ? "flex" : "none"}; align-items:center; gap:8px; font-size:14px; font-weight:500; cursor:pointer;">
2818
+ <label id="sf-create-eng-ticket-label" style="display:${Yn.integrationData && Jn ? "flex" : "none"}; align-items:center; gap:8px; font-size:14px; font-weight:500; cursor:pointer;">
2813
2819
  <input type="checkbox" id="sf-create-eng-ticket-checkbox" ${Dn.createEngTicket ? "checked" : ""}
2814
2820
  style="width:16px; height:16px; accent-color:#295DBF; cursor:pointer;">
2815
2821
  Create an Eng Ticket
@@ -2874,8 +2880,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2874
2880
  </div>
2875
2881
  </div>
2876
2882
  </div>
2877
- `, Dn.mode = e2, document.body.appendChild(Jn), (function bindListeners() {
2878
- const e3 = Jn == null ? void 0 : Jn.querySelectorAll(".sf-issue-tab"), w3 = document.getElementById("sf-start-recording-btn"), C2 = document.getElementById("sf-modal-close-btn"), x2 = document.getElementById("sf-issue-submit-btn"), M2 = document.getElementById("sf-lookback-minutes");
2883
+ `, Dn.mode = e2, document.body.appendChild(Zn), (function bindListeners() {
2884
+ const e3 = Zn == null ? void 0 : Zn.querySelectorAll(".sf-issue-tab"), w3 = document.getElementById("sf-start-recording-btn"), C2 = document.getElementById("sf-modal-close-btn"), x2 = document.getElementById("sf-issue-submit-btn"), M2 = document.getElementById("sf-lookback-minutes");
2879
2885
  e3 == null ? void 0 : e3.forEach((e4) => {
2880
2886
  e4.addEventListener("click", (e5) => {
2881
2887
  const w4 = e5.currentTarget.dataset.mode;
@@ -2885,7 +2891,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2885
2891
  M2 && M2.addEventListener("change", () => {
2886
2892
  "lookback" === Dn.mode && (x2.disabled = false, x2.style.opacity = "1", x2.style.cursor = "pointer");
2887
2893
  });
2888
- const I2 = Jn == null ? void 0 : Jn.querySelectorAll(".sf-collapsible-header");
2894
+ const I2 = Zn == null ? void 0 : Zn.querySelectorAll(".sf-collapsible-header");
2889
2895
  I2 == null ? void 0 : I2.forEach((e4) => {
2890
2896
  e4.addEventListener("click", (e5) => {
2891
2897
  const w4 = e5.currentTarget, C3 = w4.dataset.target, x3 = document.getElementById(C3), M3 = w4.querySelector(".sf-chevron");
@@ -2940,7 +2946,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2940
2946
  Fn = e6;
2941
2947
  })(Date.now()), setIsRecording(true);
2942
2948
  try {
2943
- const { enableFunctionSpanTracking: e6 } = await Promise.resolve().then(() => Ze);
2949
+ const { enableFunctionSpanTracking: e6 } = await Promise.resolve().then(() => Je);
2944
2950
  e6();
2945
2951
  } catch (e6) {
2946
2952
  console.error("[Report Issue] Failed to enable function span tracking:", e6);
@@ -2976,7 +2982,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2976
2982
  }, 1e3);
2977
2983
  })();
2978
2984
  });
2979
- Jn == null ? void 0 : Jn.addEventListener("click", (e4) => {
2985
+ Zn == null ? void 0 : Zn.addEventListener("click", (e4) => {
2980
2986
  var _a2;
2981
2987
  if (e4.target.closest("#sf-issue-submit-btn")) {
2982
2988
  const e5 = ((_a2 = document.getElementById("sf-issue-description")) == null ? void 0 : _a2.value) || "", w4 = Dn.mode;
@@ -2988,22 +2994,22 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2988
2994
  x3 = Date.now(), C3 = x3 - e6;
2989
2995
  }
2990
2996
  if (Dn.createIssue) {
2991
- const M3 = document.getElementById("sf-issue-name"), I3 = document.getElementById("sf-eng-ticket-team"), _3 = document.getElementById("sf-eng-ticket-project"), U3 = document.getElementById("sf-eng-ticket-priority"), j3 = document.getElementById("sf-eng-ticket-type"), W3 = (M3 == null ? void 0 : M3.value) || "", z3 = e5, H2 = (I3 == null ? void 0 : I3.value) || "", K2 = (_3 == null ? void 0 : _3.value) || "", X2 = U3 ? Number(U3.value) : 0, Y2 = Dn.engTicketLabels, J2 = (j3 == null ? void 0 : j3.value) || "", Q2 = { ...Dn.engTicketCustomFields };
2997
+ const M3 = document.getElementById("sf-issue-name"), I3 = document.getElementById("sf-eng-ticket-team"), _3 = document.getElementById("sf-eng-ticket-project"), U3 = document.getElementById("sf-eng-ticket-priority"), j3 = document.getElementById("sf-eng-ticket-type"), W3 = (M3 == null ? void 0 : M3.value) || "", z3 = e5, H2 = (I3 == null ? void 0 : I3.value) || "", K2 = (_3 == null ? void 0 : _3.value) || "", X2 = U3 ? Number(U3.value) : 0, Y2 = Dn.engTicketLabels, Z2 = (j3 == null ? void 0 : j3.value) || "", J2 = { ...Dn.engTicketCustomFields };
2992
2998
  document.querySelectorAll(".sf-dynamic-field").forEach((e6) => {
2993
2999
  const w5 = e6, C4 = w5.dataset.fieldId;
2994
- C4 && ("checkbox" === w5.type ? Q2[C4] = w5.checked : "number" === w5.type ? Q2[C4] = parseFloat(w5.value) || null : w5.classList.contains("sf-custom-multiselect") || (Q2[C4] = w5.value));
3000
+ C4 && ("checkbox" === w5.type ? J2[C4] = w5.checked : "number" === w5.type ? J2[C4] = parseFloat(w5.value) || null : w5.classList.contains("sf-custom-multiselect") || (J2[C4] = w5.value));
2995
3001
  });
2996
- const Z2 = document.getElementById("sf-eng-ticket-sprint"), ee2 = (Z2 == null ? void 0 : Z2.value) || Dn.engTicketSprint;
3002
+ const Q2 = document.getElementById("sf-eng-ticket-sprint"), ee2 = (Q2 == null ? void 0 : Q2.value) || Dn.engTicketSprint;
2997
3003
  if (ee2) {
2998
3004
  const e6 = getSprintFieldId();
2999
- Q2[e6] = parseInt(ee2, 10);
3005
+ J2[e6] = parseInt(ee2, 10);
3000
3006
  }
3001
- const isFieldEmpty = (e6) => null == e6 || ("string" == typeof e6 ? "" === e6.trim() : !!Array.isArray(e6) && 0 === e6.length), te2 = Dn.createEngTicket ? (getFieldsForProject(K2, J2) || []).filter((e6) => e6 && e6.required) : [], ne2 = [];
3007
+ const isFieldEmpty = (e6) => null == e6 || ("string" == typeof e6 ? "" === e6.trim() : !!Array.isArray(e6) && 0 === e6.length), te2 = Dn.createEngTicket ? (getFieldsForProject(K2, Z2) || []).filter((e6) => e6 && e6.required) : [], ne2 = [];
3002
3008
  for (const e6 of te2) {
3003
3009
  const w5 = e6.fieldId || e6.key;
3004
3010
  if ("summary" === w5 || "description" === w5 || "priority" === w5) continue;
3005
3011
  let C4, x4;
3006
- "project" === w5 ? (C4 = !!document.getElementById("sf-eng-ticket-project"), x4 = K2) : "issuetype" === w5 ? (C4 = !!document.getElementById("sf-eng-ticket-type"), x4 = J2) : (C4 = !!document.querySelector(`[data-field-id="${w5}"]`), x4 = Q2[w5]), C4 && isFieldEmpty(x4) && ne2.push(e6.name || w5);
3012
+ "project" === w5 ? (C4 = !!document.getElementById("sf-eng-ticket-project"), x4 = K2) : "issuetype" === w5 ? (C4 = !!document.getElementById("sf-eng-ticket-type"), x4 = Z2) : (C4 = !!document.querySelector(`[data-field-id="${w5}"]`), x4 = J2[w5]), C4 && isFieldEmpty(x4) && ne2.push(e6.name || w5);
3007
3013
  }
3008
3014
  if (ne2.length > 0) return void alert(`Please fill in the required field${ne2.length > 1 ? "s" : ""}: ${ne2.join(", ")}`);
3009
3015
  closeModal(), (async function createTriageAndIssue(e6, w5, C4, x4, M4, I4, _4, U4, j4, W4, z4, H3, K3) {
@@ -3020,7 +3026,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3020
3026
  } catch (e7) {
3021
3027
  console.error("Error creating triage and issue:", e7), showStatusModal(false, null, "Something went wrong. Please try again.");
3022
3028
  }
3023
- })(`${C3}`, `${x3}`, e5, W3, z3, Dn.createEngTicket, H2, K2, X2, Y2, J2, Q2, "startnow" === w4 ? "RECORDED" : "LOOKBACK");
3029
+ })(`${C3}`, `${x3}`, e5, W3, z3, Dn.createEngTicket, H2, K2, X2, Y2, Z2, J2, "startnow" === w4 ? "RECORDED" : "LOOKBACK");
3024
3030
  } else closeModal(), (async function createTriage(e6, w5, C4, x4) {
3025
3031
  var _a3, _b, _c2;
3026
3032
  try {
@@ -3038,7 +3044,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3038
3044
  })(`${C3}`, `${x3}`, e5, "startnow" === w4 ? "RECORDED" : "LOOKBACK");
3039
3045
  }
3040
3046
  });
3041
- })(), Yn.deactivateIsolation = activateModalIsolation(Jn), Yn.integrationData && Dn.createEngTicket ? initializeEngTicketForm() : Yn.integrationData || (Dn.createEngTicket = false), Yn.apiKey && Yn.backendApi && refreshIntegrationData(Yn.apiKey, Yn.backendApi).then((e3) => {
3047
+ })(), Yn.deactivateIsolation = activateModalIsolation(Zn), Yn.integrationData && Dn.createEngTicket ? initializeEngTicketForm() : Yn.integrationData || (Dn.createEngTicket = false), Yn.apiKey && Yn.backendApi && refreshIntegrationData(Yn.apiKey, Yn.backendApi).then((e3) => {
3042
3048
  if (!e3 || !document.getElementById("sf-report-issue-modal")) return;
3043
3049
  Yn.integrationData = e3;
3044
3050
  const w3 = document.getElementById("sf-eng-ticket-fields-container");
@@ -3046,7 +3052,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3046
3052
  const e4 = generateEngTicketFieldsHTML();
3047
3053
  e4 && (w3.innerHTML = e4, initializeEngTicketForm(), bindEngTicketListeners(), updateFormWithIntegrationData(Dn), renderDynamicFields(Dn.engTicketProject, Dn.engTicketIssueType));
3048
3054
  }
3049
- if (Qn) {
3055
+ if (Jn) {
3050
3056
  const e4 = document.getElementById("sf-create-eng-ticket-label");
3051
3057
  e4 && (e4.style.display = "flex");
3052
3058
  }
@@ -3068,7 +3074,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3068
3074
  }
3069
3075
  function setActiveTab(e2) {
3070
3076
  Dn.mode = e2;
3071
- const w2 = Jn == null ? void 0 : Jn.querySelector("#sf-tab-lookback"), C2 = Jn == null ? void 0 : Jn.querySelector("#sf-tab-startnow");
3077
+ const w2 = Zn == null ? void 0 : Zn.querySelector("#sf-tab-lookback"), C2 = Zn == null ? void 0 : Zn.querySelector("#sf-tab-startnow");
3072
3078
  "lookback" === e2 ? (w2.style.background = "white", w2.style.color = "#0F172A", C2.style.background = "transparent", C2.style.color = "#64748B") : (C2.style.background = "white", C2.style.color = "#0F172A", w2.style.background = "transparent", w2.style.color = "#64748B");
3073
3079
  }
3074
3080
  function updateModeSpecificUI(e2) {
@@ -3145,7 +3151,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3145
3151
  Bn = e2;
3146
3152
  })(Date.now()), setIsRecording(false), Un && (clearInterval(Un), setTimerInterval(null)), (_a2 = document.getElementById("sf-recording-indicator")) == null ? void 0 : _a2.remove();
3147
3153
  try {
3148
- const { disableFunctionSpanTracking: e2 } = await Promise.resolve().then(() => Ze);
3154
+ const { disableFunctionSpanTracking: e2 } = await Promise.resolve().then(() => Je);
3149
3155
  e2();
3150
3156
  } catch (e2) {
3151
3157
  console.error("[Report Issue] Failed to disable function span tracking:", e2);
@@ -3245,7 +3251,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3245
3251
  function fadeCardAndRemove(e2, w2, C2 = 300) {
3246
3252
  w2.style.opacity = "0", w2.addEventListener("transitionend", () => e2.remove(), { once: true }), setTimeout(() => e2.remove(), C2 + 100);
3247
3253
  }
3248
- const Zn = Object.freeze(Object.defineProperty({ __proto__: null, ReportIssueContext: Yn, openReportIssueModal, setupIssueReporting: function setupIssueReporting(e2) {
3254
+ const Qn = Object.freeze(Object.defineProperty({ __proto__: null, ReportIssueContext: Yn, openReportIssueModal, setupIssueReporting: function setupIssueReporting(e2) {
3249
3255
  Yn.apiKey = e2.apiKey, Yn.backendApi = e2.backendApi, Yn.resolveSessionId = e2.getSessionId, Yn.integrationData = e2.integrationData || null, Yn.showEngTicketFieldsDefault = e2.showEngTicketFieldsInReportIssueModalDefault ?? false, e2.customBaseUrl && (Yn.triageBaseUrl = e2.customBaseUrl), Yn.shortcuts = (function mergeShortcutsConfig(e3) {
3250
3256
  const w3 = { ...Xn };
3251
3257
  if (!e3) return w3;
@@ -3396,7 +3402,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3396
3402
  let x2 = sr.get(C2);
3397
3403
  return x2 || (x2 = new RegExp(e2, w2), sr.set(C2, x2)), x2;
3398
3404
  }
3399
- const ir = new Set([".js", ".mjs", ".cjs", ".ts", ".css", ".scss", ".sass", ".less", ".styl", ".stylus", ".png", ".jpg", ".jpeg", ".gif", ".svg", ".webp", ".avif", ".bmp", ".ico", ".tiff", ".tif", ".heic", ".woff", ".woff2", ".ttf", ".otf", ".eot", ".mp4", ".webm", ".ogv", ".mp3", ".wav", ".flac", ".pdf", ".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".csv", ".json", ".xml", ".txt", ".zip", ".rar", ".gz", ".tar", ".7z", ".map", ".webmanifest"].map((e2) => e2.toLowerCase())), ar = ["t.co", "*.twitter.com", "*.gravatar.com", "*.googleapis.com", "*.amazonaws.com", "*.smooch.io", "*.zendesk.com", "*.zdassets.com"], cr = [400, 403], lr = "CORS", ur = "authorization", dr = "Authorization", pr = { recordCanvas: false, recordCrossOriginIframes: false, collectFonts: false, inlineImages: false, recordPassword: false, recordRealName: true, recordCreditCardInfo: false, recordSsn: false, recordDob: false, sampling: {}, enableFiberTracking: false, maskInputSelector: "", maskTextSelector: "", blockSelector: "", unmaskSelector: "", maskInputOptions: { password: true } }, hr = { level: ["info", "log", "warn", "error"], lengthThreshold: 1e4, stringifyOptions: { stringLengthLimit: 1e3, numOfKeysLimit: 20, depthOfLimit: 4 }, logger: "console" };
3405
+ const ir = new Set([".js", ".mjs", ".cjs", ".ts", ".css", ".scss", ".sass", ".less", ".styl", ".stylus", ".png", ".jpg", ".jpeg", ".gif", ".svg", ".webp", ".avif", ".bmp", ".ico", ".tiff", ".tif", ".heic", ".woff", ".woff2", ".ttf", ".otf", ".eot", ".mp4", ".webm", ".ogv", ".mp3", ".wav", ".flac", ".pdf", ".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".csv", ".json", ".xml", ".txt", ".zip", ".rar", ".gz", ".tar", ".7z", ".map", ".webmanifest"].map((e2) => e2.toLowerCase())), ar = ["t.co", "*.twitter.com", "*.gravatar.com", "*.googleapis.com", "*.amazonaws.com", "*.smooch.io", "*.zendesk.com", "*.zdassets.com"], cr = [400, 403], lr = "CORS", ur = "authorization", dr = "Authorization", pr = { recordCanvas: false, recordCrossOriginIframes: false, collectFonts: false, inlineImages: false, recordPassword: false, recordRealName: true, recordCreditCardInfo: false, recordSsn: false, recordDob: false, sampling: {}, enableFiberTracking: false, maskInputSelector: "", maskTextSelector: "", blockSelector: "", unmaskSelector: "", maskInputOptions: { password: true }, recordHover: true, hoverDwellMs: 500, hoverStrictAffordance: true, hoverCooldownMs: 3e3, hoverMaxPerSession: 300, hoverMaxPerSecond: 1 }, hr = { level: ["info", "log", "warn", "error"], lengthThreshold: 1e4, stringifyOptions: { stringLengthLimit: 1e3, numOfKeysLimit: 20, depthOfLimit: 4 }, logger: "console" };
3400
3406
  function maskAuthorizationHeader(e2) {
3401
3407
  const w2 = e2[ur] ? ur : e2[dr] ? dr : null;
3402
3408
  if (!w2) return;
@@ -3531,31 +3537,31 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3531
3537
  if (!W3) return e4.apply(x4, M4);
3532
3538
  let H3 = uuidv4();
3533
3539
  const K2 = getUrlAndStoredUuids(), X2 = _3.method || "GET", Y2 = Date.now();
3534
- let J2, Q2 = {}, Z2 = null;
3540
+ let Z2, J2 = {}, Q2 = null;
3535
3541
  try {
3536
3542
  if (I3 instanceof Request) {
3537
3543
  I3.headers.forEach((e5, w2) => {
3538
- Q2[w2] = e5;
3544
+ J2[w2] = e5;
3539
3545
  });
3540
3546
  try {
3541
- Z2 = I3.clone();
3547
+ Q2 = I3.clone();
3542
3548
  } catch (e5) {
3543
- Z2 = null;
3549
+ Q2 = null;
3544
3550
  }
3545
3551
  } else _3.headers && (_3.headers instanceof Headers ? _3.headers.forEach((e5, w2) => {
3546
- Q2[w2] = e5;
3552
+ J2[w2] = e5;
3547
3553
  }) : Array.isArray(_3.headers) ? _3.headers.forEach(([e5, w2]) => {
3548
- Q2[e5] = w2;
3549
- }) : Q2 = { ..._3.headers }), J2 = _3.body;
3554
+ J2[e5] = w2;
3555
+ }) : J2 = { ..._3.headers }), Z2 = _3.body;
3550
3556
  } catch (e5) {
3551
3557
  or && console.warn("[Sailfish] Failed to capture request data:", e5);
3552
3558
  }
3553
- delete Q2[w];
3559
+ delete J2[w];
3554
3560
  const ee2 = getFuncSpanHeader();
3555
- ee2 && delete Q2[ee2.name];
3561
+ ee2 && delete J2[ee2.name];
3556
3562
  const te2 = `${W3}/${K2.page_visit_uuid}/${H3}`;
3557
- Q2[w] = te2, ee2 && (Q2[ee2.name] = ee2.value);
3558
- maskAuthorizationHeader(Q2);
3563
+ J2[w] = te2, ee2 && (J2[ee2.name] = ee2.value);
3564
+ maskAuthorizationHeader(J2);
3559
3565
  try {
3560
3566
  let ee3 = await (async function injectHeader(e5, C3, x5, M5, I4, _4, U3) {
3561
3567
  const j3 = getFuncSpanHeader();
@@ -3570,7 +3576,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3570
3576
  return z4.set(w, `${I4}/${_4}/${U3}`), j3 && (z4.set(j3.name, j3.value), or && console.log("[Sailfish] Added funcspan header to HTTP fetch:", { url: "string" == typeof x5 ? x5 : x5.href, header: j3.name })), W4.headers = z4, await e5.call(C3, x5, W4);
3571
3577
  }
3572
3578
  })(e4, x4, I3, _3, W3, K2.page_visit_uuid, H3), te3 = false;
3573
- cr.includes(ee3.status) && (or && console.log("Perform retry as status was fail:", ee3), delete Q2[w], ee3 = await (async function retryWithoutPropagateHeaders(e5, C3, x5, M5) {
3579
+ cr.includes(ee3.status) && (or && console.log("Perform retry as status was fail:", ee3), delete J2[w], ee3 = await (async function retryWithoutPropagateHeaders(e5, C3, x5, M5) {
3574
3580
  try {
3575
3581
  let M6 = x5[0], I4 = x5[1] || {};
3576
3582
  if ("string" == typeof M6 || M6 instanceof URL) {
@@ -3600,8 +3606,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3600
3606
  } catch (e5) {
3601
3607
  or && console.warn("[Sailfish] Failed to capture response headers:", e5), ce2 = null;
3602
3608
  }
3603
- const le2 = { type: 27, timestamp: ne2, sessionId: W3, client: re2, data: { request_id: H3, session_id: W3, timestamp_start: Y2, timestamp_end: ne2, response_code: se2, success: ie2, error: ae2, method: X2, url: toAbsoluteUrl(z3), retry_without_trace_id: te3, request_headers: Q2, request_body: J2, response_headers: ce2, response_body: null }, ...K2 }, sendEventWithBody = (e5) => {
3604
- le2.data.response_body = e5, Z2 ? Z2.text().then((e6) => {
3609
+ const le2 = { type: 27, timestamp: ne2, sessionId: W3, client: re2, data: { request_id: H3, session_id: W3, timestamp_start: Y2, timestamp_end: ne2, response_code: se2, success: ie2, error: ae2, method: X2, url: toAbsoluteUrl(z3), retry_without_trace_id: te3, request_headers: J2, request_body: Z2, response_headers: ce2, response_body: null }, ...K2 }, sendEventWithBody = (e5) => {
3610
+ le2.data.response_body = e5, Q2 ? Q2.text().then((e6) => {
3605
3611
  le2.data.request_body = e6, sendEvent(le2);
3606
3612
  }, () => {
3607
3613
  sendEvent(le2);
@@ -3677,18 +3683,18 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3677
3683
  } catch (w2) {
3678
3684
  const C3 = Date.now(), I4 = false, _4 = ((_a2 = w2.response) == null ? void 0 : _a2.status) || 500, U3 = w2.message || "Fetch request failed";
3679
3685
  if (w2 instanceof TypeError && ((_b = w2 == null ? void 0 : w2.message) == null ? void 0 : _b.toLowerCase().includes(lr.toLowerCase()))) return e4.apply(x4, M4);
3680
- let j3 = J2;
3681
- if (Z2) try {
3682
- j3 = await Z2.text();
3686
+ let j3 = Z2;
3687
+ if (Q2) try {
3688
+ j3 = await Q2.text();
3683
3689
  } catch {
3684
3690
  j3 = null;
3685
3691
  }
3686
- throw sendEvent({ type: 27, timestamp: C3, sessionId: W3, data: { request_id: H3, session_id: W3, timestamp_start: Y2, timestamp_end: C3, response_code: _4, success: I4, error: U3, method: X2, url: toAbsoluteUrl(z3), request_headers: Q2, request_body: j3, response_body: null }, ...K2 }), w2;
3692
+ throw sendEvent({ type: 27, timestamp: C3, sessionId: W3, data: { request_id: H3, session_id: W3, timestamp_start: Y2, timestamp_end: C3, response_code: _4, success: I4, error: U3, method: X2, url: toAbsoluteUrl(z3), request_headers: J2, request_body: j3, response_body: null }, ...K2 }), w2;
3687
3693
  }
3688
3694
  })(e3, x3, M3, z2, H2, I2, W2);
3689
3695
  } });
3690
3696
  }
3691
- async function startRecording({ apiKey: e2, backendApi: C2 = "https://api-service.sailfishqa.com", domainsToPropagateHeaderTo: x2 = ["*"], domainsToNotPropagateHeaderTo: M2 = [], serviceVersion: I2, serviceIdentifier: _2, gitSha: U2, serviceAdditionalMetadata: j2, enableIpTracking: W2, captureStreamingResponseBody: z2 = true, captureResponseBodyMaxMb: H2 = 10, captureStreamPrefixKb: K2 = 64, captureStreamTimeoutMs: X2 = 1e4, enableFiberTracking: Y2 = false, deferRecording: J2, deferRecordingStart: Q2, chunkSnapshot: Z2, useWsWorker: ee2 = true, capturePerformanceMetrics: te2 = true, maskTextClass: ne2, maskInputSelector: re2, maskTextSelector: se2, blockSelector: ae2, unmaskSelector: ce2, maskInputOptions: le2, recordCanvas: de2, maskCanvasClass: pe2, gitOrg: me2, gitRepo: ge2, gitProvider: ye2, library: we2, headlessRecording: be2 = false }) {
3697
+ async function startRecording({ apiKey: e2, backendApi: C2 = "https://api-service.sailfishqa.com", domainsToPropagateHeaderTo: x2 = ["*"], domainsToNotPropagateHeaderTo: M2 = [], serviceVersion: I2, serviceIdentifier: _2, gitSha: U2, serviceAdditionalMetadata: j2, enableIpTracking: W2, captureStreamingResponseBody: z2 = true, captureResponseBodyMaxMb: H2 = 10, captureStreamPrefixKb: K2 = 64, captureStreamTimeoutMs: X2 = 1e4, enableFiberTracking: Y2 = false, deferRecording: Z2, deferRecordingStart: J2, chunkSnapshot: Q2, useWsWorker: ee2 = true, capturePerformanceMetrics: te2 = true, maskTextClass: ne2, maskInputSelector: re2, maskTextSelector: se2, blockSelector: ae2, unmaskSelector: ce2, maskInputOptions: le2, recordCanvas: de2, maskCanvasClass: pe2, gitOrg: me2, gitRepo: ge2, gitProvider: ye2, library: we2, headlessRecording: be2 = false }) {
3692
3698
  var _a2, _b, _c2, _d2;
3693
3699
  if (!be2 && (function isHeadlessOrLighthouse() {
3694
3700
  try {
@@ -3701,7 +3707,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3701
3707
  return false;
3702
3708
  }
3703
3709
  })()) return;
3704
- const Se2 = J2 ?? Q2 ?? true, ke2 = getOrSetSessionId(), Ce2 = window.__sailfish_recorder || (window.__sailfish_recorder = {});
3710
+ const Se2 = Z2 ?? J2 ?? true, ke2 = getOrSetSessionId(), Ce2 = window.__sailfish_recorder || (window.__sailfish_recorder = {});
3705
3711
  if (Ce2.sessionId = ke2, Ce2.apiKey = e2, Ce2.backendApi = C2, Ce2.serviceAdditionalMetadata = j2, Ce2.initialized && Ce2.sessionId === ke2 && Ce2.ws && 1 === Ce2.ws.readyState) return void trackDomainChangesOnce();
3706
3712
  const xe2 = { captureStreamingResponseBody: z2, captureResponseBodyMaxMb: H2, captureStreamPrefixKb: K2, captureStreamTimeoutMs: X2 };
3707
3713
  sessionStorage.getItem("pageVisitUUID") || (sessionStorage.setItem("pageVisitUUID", uuidv4()), invalidateUrlCache()), Ce2.xhrPatched || (!(function setupXMLHttpRequestInterceptor(e3 = [], C3 = { captureStreamingResponseBody: true, captureResponseBodyMaxMb: 10, captureStreamPrefixKb: 64, captureStreamTimeoutMs: 1e4 }, x3 = []) {
@@ -3834,16 +3840,16 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3834
3840
  return { framework: x4[0] ?? null, additionalFrameworks: x4.slice(1), serviceRole: "frontend" };
3835
3841
  })(), X3 = { ...H3, serviceRole: K3.serviceRole, ...null !== K3.framework && { framework: K3.framework }, ...K3.additionalFrameworks.length > 0 && { additionalFrameworks: K3.additionalFrameworks } };
3836
3842
  await yieldToMain();
3837
- const [J3, Q3] = await Promise.all([fetchCaptureSettings(e2, C2), startRecordingSession(e2, ke2, C2, x3, M3, z3, w2, W3, X3, me2, ge2, ye2)]), te3 = { ...pr, ...(_a2 = J3.data) == null ? void 0 : _a2.captureSettingsFromApiKey, enableFiberTracking: Y2, ...void 0 !== ne2 ? { maskTextClass: ne2 } : {}, ...void 0 !== re2 ? { maskInputSelector: re2 } : {}, ...void 0 !== se2 ? { maskTextSelector: se2 } : {}, ...void 0 !== ae2 ? { blockSelector: ae2 } : {}, ...void 0 !== ce2 ? { unmaskSelector: ce2 } : {}, ...void 0 !== le2 ? { maskInputOptions: le2 } : {}, recordCanvas: de2 ?? ((_c2 = (_b = J3.data) == null ? void 0 : _b.captureSettingsFromApiKey) == null ? void 0 : _c2.recordCanvasSf) ?? pr.recordCanvas, ...void 0 !== pe2 ? { maskCanvasClass: pe2 } : {} };
3843
+ const [Z3, J3] = await Promise.all([fetchCaptureSettings(e2, C2), startRecordingSession(e2, ke2, C2, x3, M3, z3, w2, W3, X3, me2, ge2, ye2)]), te3 = { ...pr, ...(_a2 = Z3.data) == null ? void 0 : _a2.captureSettingsFromApiKey, enableFiberTracking: Y2, ...void 0 !== ne2 ? { maskTextClass: ne2 } : {}, ...void 0 !== re2 ? { maskInputSelector: re2 } : {}, ...void 0 !== se2 ? { maskTextSelector: se2 } : {}, ...void 0 !== ae2 ? { blockSelector: ae2 } : {}, ...void 0 !== ce2 ? { unmaskSelector: ce2 } : {}, ...void 0 !== le2 ? { maskInputOptions: le2 } : {}, recordCanvas: de2 ?? ((_c2 = (_b = Z3.data) == null ? void 0 : _b.captureSettingsFromApiKey) == null ? void 0 : _c2.recordCanvasSf) ?? pr.recordCanvas, ...void 0 !== pe2 ? { maskCanvasClass: pe2 } : {} };
3838
3844
  if (Ce2.ws && 1 === Ce2.ws.readyState) return;
3839
- if ((_d2 = Q3.data) == null ? void 0 : _d2.startRecordingSession) {
3845
+ if ((_d2 = J3.data) == null ? void 0 : _d2.startRecordingSession) {
3840
3846
  const w3 = (j2 == null ? void 0 : j2.env) || (j2 == null ? void 0 : j2.environment);
3841
3847
  await yieldToMain();
3842
- const x4 = await initializeRecording(te3, C2, e2, ke2, w3, Se2, ee2, Z2 ?? false);
3848
+ const x4 = await initializeRecording(te3, C2, e2, ke2, w3, Se2, ee2, Q2 ?? false);
3843
3849
  Ce2.ws = x4, Ce2.initialized = true, trackDomainChangesOnce(), Ce2.sentMapUuidOnce || (!(function sendMapUuidIfAvailable(e3 = "", w4 = "") {
3844
3850
  window.sfMapUuid && sendMessage({ type: "mapUuid", data: { mapUuid: window.sfMapUuid, serviceIdentifier: e3, serviceVersion: w4 } });
3845
3851
  })(_2, I2), Ce2.sentMapUuidOnce = true);
3846
- } else console.error("Failed to start recording session:", Q3.errors || Q3);
3852
+ } else console.error("Failed to start recording session:", J3.errors || J3);
3847
3853
  } catch (e3) {
3848
3854
  console.error("Error starting recording:", e3);
3849
3855
  }
@@ -3851,7 +3857,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3851
3857
  function getDefaultExportFromCjs(e2) {
3852
3858
  return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
3853
3859
  }
3854
- var mr, gr, yr = {}, wr = {}, vr = {}, br = {};
3860
+ var mr, gr, yr = {}, vr = {}, wr = {}, br = {};
3855
3861
  function requireBase64() {
3856
3862
  if (mr) return br;
3857
3863
  mr = 1;
@@ -3864,10 +3870,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3864
3870
  }, br;
3865
3871
  }
3866
3872
  function requireBase64Vlq() {
3867
- if (gr) return vr;
3873
+ if (gr) return wr;
3868
3874
  gr = 1;
3869
3875
  var e2 = requireBase64();
3870
- return vr.encode = function base64VLQ_encode(w2) {
3876
+ return wr.encode = function base64VLQ_encode(w2) {
3871
3877
  var C2, x2 = "", M2 = (function toVLQSigned(e3) {
3872
3878
  return e3 < 0 ? 1 + (-e3 << 1) : 0 + (e3 << 1);
3873
3879
  })(w2);
@@ -3875,7 +3881,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3875
3881
  C2 = 31 & M2, (M2 >>>= 5) > 0 && (C2 |= 32), x2 += e2.encode(C2);
3876
3882
  } while (M2 > 0);
3877
3883
  return x2;
3878
- }, vr.decode = function base64VLQ_decode(w2, C2, x2) {
3884
+ }, wr.decode = function base64VLQ_decode(w2, C2, x2) {
3879
3885
  var M2, I2, _2 = w2.length, U2 = 0, j2 = 0;
3880
3886
  do {
3881
3887
  if (C2 >= _2) throw new Error("Expected more digits in base 64 VLQ value.");
@@ -3886,7 +3892,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3886
3892
  var w3 = e3 >> 1;
3887
3893
  return 1 & ~e3 ? w3 : -w3;
3888
3894
  })(U2), x2.rest = C2;
3889
- }, vr;
3895
+ }, wr;
3890
3896
  }
3891
3897
  var Sr, Mr = {};
3892
3898
  function requireUtil() {
@@ -4060,7 +4066,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4060
4066
  }, Lr.MappingList = MappingList, Lr;
4061
4067
  }
4062
4068
  function requireSourceMapGenerator() {
4063
- if (Or) return wr;
4069
+ if (Or) return vr;
4064
4070
  Or = 1;
4065
4071
  var e2 = requireBase64Vlq(), w2 = requireUtil(), C2 = requireArraySet().ArraySet, x2 = requireMappingList().MappingList;
4066
4072
  function SourceMapGenerator(e3) {
@@ -4117,7 +4123,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4117
4123
  throw new Error(M2);
4118
4124
  }
4119
4125
  }, SourceMapGenerator.prototype._serializeMappings = function SourceMapGenerator_serializeMappings() {
4120
- for (var C3, x3, M2, I2, _2 = 0, U2 = 1, j2 = 0, W2 = 0, z2 = 0, H2 = 0, K2 = "", X2 = this._mappings.toArray(), Y2 = 0, J2 = X2.length; Y2 < J2; Y2++) {
4126
+ for (var C3, x3, M2, I2, _2 = 0, U2 = 1, j2 = 0, W2 = 0, z2 = 0, H2 = 0, K2 = "", X2 = this._mappings.toArray(), Y2 = 0, Z2 = X2.length; Y2 < Z2; Y2++) {
4121
4127
  if (C3 = "", (x3 = X2[Y2]).generatedLine !== U2) for (_2 = 0; x3.generatedLine !== U2; ) C3 += ";", U2++;
4122
4128
  else if (Y2 > 0) {
4123
4129
  if (!w2.compareByGeneratedPositionsInflated(x3, X2[Y2 - 1])) continue;
@@ -4138,7 +4144,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4138
4144
  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;
4139
4145
  }, SourceMapGenerator.prototype.toString = function SourceMapGenerator_toString() {
4140
4146
  return JSON.stringify(this.toJSON());
4141
- }, wr.SourceMapGenerator = SourceMapGenerator, wr;
4147
+ }, vr.SourceMapGenerator = SourceMapGenerator, vr;
4142
4148
  }
4143
4149
  var _r, Ar = {}, Dr = {};
4144
4150
  function requireBinarySearch() {
@@ -4294,13 +4300,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4294
4300
  });
4295
4301
  }
4296
4302
  return BasicSourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings(w3, C3) {
4297
- var I3, _2, U2, j2, W2 = 1, z2 = 0, H2 = 0, K2 = 0, X2 = 0, Y2 = 0, J2 = w3.length, Q2 = 0, Z2 = {}, ee2 = [], te2 = [];
4303
+ var I3, _2, U2, j2, W2 = 1, z2 = 0, H2 = 0, K2 = 0, X2 = 0, Y2 = 0, Z2 = w3.length, J2 = 0, Q2 = {}, ee2 = [], te2 = [];
4298
4304
  let ne2 = 0;
4299
- for (; Q2 < J2; ) if (";" === w3.charAt(Q2)) W2++, Q2++, z2 = 0, sortGenerated(te2, ne2), ne2 = te2.length;
4300
- else if ("," === w3.charAt(Q2)) Q2++;
4305
+ for (; J2 < Z2; ) if (";" === w3.charAt(J2)) W2++, J2++, z2 = 0, sortGenerated(te2, ne2), ne2 = te2.length;
4306
+ else if ("," === w3.charAt(J2)) J2++;
4301
4307
  else {
4302
- for ((I3 = new Mapping()).generatedLine = W2, U2 = Q2; U2 < J2 && !this._charIsMappingSeparator(w3, U2); U2++) ;
4303
- for (w3.slice(Q2, U2), _2 = []; Q2 < U2; ) x2.decode(w3, Q2, Z2), j2 = Z2.value, Q2 = Z2.rest, _2.push(j2);
4308
+ for ((I3 = new Mapping()).generatedLine = W2, U2 = J2; U2 < Z2 && !this._charIsMappingSeparator(w3, U2); U2++) ;
4309
+ for (w3.slice(J2, U2), _2 = []; J2 < U2; ) x2.decode(w3, J2, Q2), j2 = Q2.value, J2 = Q2.rest, _2.push(j2);
4304
4310
  if (2 === _2.length) throw new Error("Found a source, but no line and column");
4305
4311
  if (3 === _2.length) throw new Error("Found a source and line, but no column");
4306
4312
  if (I3.generatedColumn = z2 + _2[0], z2 = I3.generatedColumn, _2.length > 1 && (I3.source = X2 + _2[1], X2 += _2[1], I3.originalLine = H2 + _2[2], H2 = I3.originalLine, I3.originalLine += 1, I3.originalColumn = K2 + _2[3], K2 = I3.originalColumn, _2.length > 4 && (I3.name = Y2 + _2[4], Y2 += _2[4])), te2.push(I3), "number" == typeof I3.originalLine) {
@@ -5131,13 +5137,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5131
5137
  function En() {
5132
5138
  return Ko++;
5133
5139
  }
5134
- let Yo, Jo;
5135
- const Qo = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, Zo = /^(?:[a-z+]+:)?\/\//i, es = /^www\..*/i, ns = /^(data:)([^,]*),(.*)/i;
5140
+ let Yo, Zo;
5141
+ const Jo = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, Qo = /^(?:[a-z+]+:)?\/\//i, es = /^www\..*/i, ns = /^(data:)([^,]*),(.*)/i;
5136
5142
  function Nt(e2, w2) {
5137
- return (e2 || "").replace(Qo, (e3, C2, x2, M2, I2, _2) => {
5143
+ return (e2 || "").replace(Jo, (e3, C2, x2, M2, I2, _2) => {
5138
5144
  const U2 = x2 || I2 || _2, j2 = C2 || M2 || "";
5139
5145
  if (!U2) return e3;
5140
- if (Zo.test(U2) || es.test(U2)) return `url(${j2}${U2}${j2})`;
5146
+ if (Qo.test(U2) || es.test(U2)) return `url(${j2}${U2}${j2})`;
5141
5147
  if (ns.test(U2)) return `url(${j2}${U2}${j2})`;
5142
5148
  if ("/" === U2[0]) return `url(${j2}${(function Ai(e4) {
5143
5149
  let w3 = "";
@@ -5238,7 +5244,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5238
5244
  return false;
5239
5245
  }
5240
5246
  function Gi(e2, w2) {
5241
- const { doc: C2, mirror: x2, blockClass: M2, blockSelector: I2, needsMask: _2, inlineStylesheet: U2, maskInputOptions: j2 = {}, maskTextFn: W2, maskInputFn: z2, dataURLOptions: H2 = {}, inlineImages: K2, recordCanvas: X2, keepIframeSrcFn: Y2, newlyAddedElement: J2 = false, corruptedRules: Q2 } = w2, Z2 = (function Yi(e3, w3) {
5247
+ const { doc: C2, mirror: x2, blockClass: M2, blockSelector: I2, needsMask: _2, inlineStylesheet: U2, maskInputOptions: j2 = {}, maskTextFn: W2, maskInputFn: z2, dataURLOptions: H2 = {}, inlineImages: K2, recordCanvas: X2, keepIframeSrcFn: Y2, newlyAddedElement: Z2 = false, corruptedRules: J2 } = w2, Q2 = (function Yi(e3, w3) {
5242
5248
  if (!w3.hasNode(e3)) return;
5243
5249
  const C3 = w3.getId(e3);
5244
5250
  return 1 === C3 ? void 0 : C3;
@@ -5247,10 +5253,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5247
5253
  case e2.DOCUMENT_NODE:
5248
5254
  return "CSS1Compat" !== e2.compatMode ? { type: zo.Document, childNodes: [], compatMode: e2.compatMode } : { type: zo.Document, childNodes: [] };
5249
5255
  case e2.DOCUMENT_TYPE_NODE:
5250
- return { type: zo.DocumentType, name: e2.name, publicId: e2.publicId, systemId: e2.systemId, rootId: Z2 };
5256
+ return { type: zo.DocumentType, name: e2.name, publicId: e2.publicId, systemId: e2.systemId, rootId: Q2 };
5251
5257
  case e2.ELEMENT_NODE:
5252
5258
  return (function Hi(e3, w3) {
5253
- const { doc: C3, blockClass: x3, blockSelector: M3, inlineStylesheet: I3, maskInputOptions: _3 = {}, maskInputFn: U3, dataURLOptions: j3 = {}, inlineImages: W3, recordCanvas: z3, keepIframeSrcFn: H3, newlyAddedElement: K3 = false, rootId: X3, corruptedRules: Y3 } = w3, J3 = (function ji(e4, w4, C4) {
5259
+ const { doc: C3, blockClass: x3, blockSelector: M3, inlineStylesheet: I3, maskInputOptions: _3 = {}, maskInputFn: U3, dataURLOptions: j3 = {}, inlineImages: W3, recordCanvas: z3, keepIframeSrcFn: H3, newlyAddedElement: K3 = false, rootId: X3, corruptedRules: Y3 } = w3, Z3 = (function ji(e4, w4, C4) {
5254
5260
  try {
5255
5261
  if ("string" == typeof w4) {
5256
5262
  if (e4.classList.contains(w4)) return true;
@@ -5262,28 +5268,28 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5262
5268
  } catch {
5263
5269
  }
5264
5270
  return false;
5265
- })(e3, x3, M3), Q3 = (function Pi(e4) {
5271
+ })(e3, x3, M3), J3 = (function Pi(e4) {
5266
5272
  if (e4 instanceof HTMLFormElement) return "form";
5267
5273
  const w4 = fe(e4.tagName);
5268
5274
  return Xo.test(w4) ? "div" : w4;
5269
5275
  })(e3);
5270
- let Z3 = {};
5276
+ let Q3 = {};
5271
5277
  const ee2 = e3.attributes.length;
5272
5278
  for (let w4 = 0; w4 < ee2; w4++) {
5273
5279
  const x4 = e3.attributes[w4];
5274
- Ln(Q3, x4.name, x4.value) || (Z3[x4.name] = Tn(C3, Q3, fe(x4.name), x4.value));
5280
+ Ln(J3, x4.name, x4.value) || (Q3[x4.name] = Tn(C3, J3, fe(x4.name), x4.value));
5275
5281
  }
5276
- if ("link" === Q3 && I3) {
5282
+ if ("link" === J3 && I3) {
5277
5283
  const w4 = Array.from(C3.styleSheets).find((w5) => w5.href === e3.href);
5278
5284
  let x4 = null;
5279
- w4 && (x4 = At(w4, C3, Y3)), x4 && (delete Z3.rel, delete Z3.href, Z3._cssText = Nt(x4, w4.href));
5285
+ w4 && (x4 = At(w4, C3, Y3)), x4 && (delete Q3.rel, delete Q3.href, Q3._cssText = Nt(x4, w4.href));
5280
5286
  }
5281
- if ("style" === Q3 && e3.sheet && !(e3.innerText || e3.textContent || "").trim().length) {
5287
+ if ("style" === J3 && e3.sheet && !(e3.innerText || e3.textContent || "").trim().length) {
5282
5288
  const w4 = At(e3.sheet, C3, Y3);
5283
- w4 && (Z3._cssText = Nt(w4, Xt(C3)));
5289
+ w4 && (Q3._cssText = Nt(w4, Xt(C3)));
5284
5290
  }
5285
- if (Y3 && Y3.length > 0 && !J3) {
5286
- const w4 = "string" == typeof Z3.style ? Z3.style : "";
5291
+ if (Y3 && Y3.length > 0 && !Z3) {
5292
+ const w4 = "string" == typeof Q3.style ? Q3.style : "";
5287
5293
  let C4 = "";
5288
5294
  for (const { selector: w5, properties: x4 } of Y3) try {
5289
5295
  if (e3.matches(w5)) {
@@ -5295,16 +5301,16 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5295
5301
  }
5296
5302
  } catch {
5297
5303
  }
5298
- C4 && (Z3.style = w4 ? `${w4}; ${C4.trim()}` : C4.trim());
5304
+ C4 && (Q3.style = w4 ? `${w4}; ${C4.trim()}` : C4.trim());
5299
5305
  }
5300
- if ("input" === Q3 || "textarea" === Q3 || "select" === Q3) {
5306
+ if ("input" === J3 || "textarea" === J3 || "select" === J3) {
5301
5307
  const w4 = e3.value, C4 = e3.checked;
5302
- if ("radio" !== Z3.type && "checkbox" !== Z3.type && "submit" !== Z3.type && "button" !== Z3.type && w4) {
5303
- const C5 = Zt({ element: e3, type: Ht(e3), tagName: Q3, value: w4, maskInputOptions: _3, maskInputFn: U3 });
5304
- Z3.value = C5.value, C5.masked && (Z3.masked = true);
5305
- } else C4 && (Z3.checked = C4);
5308
+ if ("radio" !== Q3.type && "checkbox" !== Q3.type && "submit" !== Q3.type && "button" !== Q3.type && w4) {
5309
+ const C5 = Zt({ element: e3, type: Ht(e3), tagName: J3, value: w4, maskInputOptions: _3, maskInputFn: U3 });
5310
+ Q3.value = C5.value, C5.masked && (Q3.masked = true);
5311
+ } else C4 && (Q3.checked = C4);
5306
5312
  }
5307
- if ("option" === Q3 && (e3.selected && !_3.select ? Z3.selected = true : delete Z3.selected), "canvas" === Q3 && z3) {
5313
+ if ("option" === J3 && (e3.selected && !_3.select ? Q3.selected = true : delete Q3.selected), "canvas" === J3 && z3) {
5308
5314
  if ("2d" === e3.__context) (function Ei(e4) {
5309
5315
  const w4 = e4.getContext("2d");
5310
5316
  if (!w4) return true;
@@ -5313,43 +5319,43 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5313
5319
  if (new Uint32Array(I4.call(w4, C4, x4, Math.min(50, e4.width - C4), Math.min(50, e4.height - x4)).data.buffer).some((e5) => 0 !== e5)) return false;
5314
5320
  }
5315
5321
  return true;
5316
- })(e3) || (Z3.rr_dataURL = e3.toDataURL(j3.type, j3.quality));
5322
+ })(e3) || (Q3.rr_dataURL = e3.toDataURL(j3.type, j3.quality));
5317
5323
  else if (!("__context" in e3)) {
5318
5324
  const w4 = e3.toDataURL(j3.type, j3.quality), x4 = C3.createElement("canvas");
5319
5325
  x4.width = e3.width, x4.height = e3.height;
5320
- w4 !== x4.toDataURL(j3.type, j3.quality) && (Z3.rr_dataURL = w4);
5326
+ w4 !== x4.toDataURL(j3.type, j3.quality) && (Q3.rr_dataURL = w4);
5321
5327
  }
5322
5328
  }
5323
- if ("img" === Q3 && W3) {
5324
- Yo || (Yo = C3.createElement("canvas"), Jo = Yo.getContext("2d"));
5329
+ if ("img" === J3 && W3) {
5330
+ Yo || (Yo = C3.createElement("canvas"), Zo = Yo.getContext("2d"));
5325
5331
  const w4 = e3, x4 = w4.currentSrc || w4.getAttribute("src") || "<unknown-src>", M4 = w4.crossOrigin, T2 = () => {
5326
5332
  w4.removeEventListener("load", T2);
5327
5333
  try {
5328
- Yo.width = w4.naturalWidth, Yo.height = w4.naturalHeight, Jo.drawImage(w4, 0, 0), Z3.rr_dataURL = Yo.toDataURL(j3.type, j3.quality);
5334
+ Yo.width = w4.naturalWidth, Yo.height = w4.naturalHeight, Zo.drawImage(w4, 0, 0), Q3.rr_dataURL = Yo.toDataURL(j3.type, j3.quality);
5329
5335
  } catch (e4) {
5330
5336
  if ("anonymous" !== w4.crossOrigin) return w4.crossOrigin = "anonymous", void (w4.complete && 0 !== w4.naturalWidth ? T2() : w4.addEventListener("load", T2));
5331
5337
  console.warn(`Cannot inline img src=${x4}! Error: ${e4}`);
5332
5338
  }
5333
- "anonymous" === w4.crossOrigin && (M4 ? Z3.crossOrigin = M4 : w4.removeAttribute("crossorigin"));
5339
+ "anonymous" === w4.crossOrigin && (M4 ? Q3.crossOrigin = M4 : w4.removeAttribute("crossorigin"));
5334
5340
  };
5335
5341
  w4.complete && 0 !== w4.naturalWidth ? T2() : w4.addEventListener("load", T2);
5336
5342
  }
5337
- if ("audio" === Q3 || "video" === Q3) {
5338
- const w4 = Z3;
5343
+ if ("audio" === J3 || "video" === J3) {
5344
+ const w4 = Q3;
5339
5345
  w4.rr_mediaState = e3.paused ? "paused" : "played", w4.rr_mediaCurrentTime = e3.currentTime, w4.rr_mediaPlaybackRate = e3.playbackRate, w4.rr_mediaMuted = e3.muted, w4.rr_mediaLoop = e3.loop, w4.rr_mediaVolume = e3.volume;
5340
5346
  }
5341
- if (K3 || (e3.scrollLeft && (Z3.rr_scrollLeft = e3.scrollLeft), e3.scrollTop && (Z3.rr_scrollTop = e3.scrollTop)), J3) {
5347
+ if (K3 || (e3.scrollLeft && (Q3.rr_scrollLeft = e3.scrollLeft), e3.scrollTop && (Q3.rr_scrollTop = e3.scrollTop)), Z3) {
5342
5348
  const { width: w4, height: C4 } = e3.getBoundingClientRect();
5343
- Z3 = { class: Z3.class, rr_width: `${w4}px`, rr_height: `${C4}px` };
5349
+ Q3 = { class: Q3.class, rr_width: `${w4}px`, rr_height: `${C4}px` };
5344
5350
  }
5345
5351
  let te2;
5346
- "iframe" === Q3 && !H3(Z3.src) && (e3.contentDocument || (Z3.rr_src = Z3.src), delete Z3.src);
5352
+ "iframe" === J3 && !H3(Q3.src) && (e3.contentDocument || (Q3.rr_src = Q3.src), delete Q3.src);
5347
5353
  try {
5348
- customElements.get(Q3) && (te2 = true);
5354
+ customElements.get(J3) && (te2 = true);
5349
5355
  } catch {
5350
5356
  }
5351
- return { type: zo.Element, tagName: Q3, attributes: Z3, childNodes: [], isSVG: Bi(e3) || void 0, needBlock: J3, rootId: X3, isCustom: te2 };
5352
- })(e2, { doc: C2, blockClass: M2, blockSelector: I2, inlineStylesheet: U2, maskInputOptions: j2, maskInputFn: z2, dataURLOptions: H2, inlineImages: K2, recordCanvas: X2, keepIframeSrcFn: Y2, newlyAddedElement: J2, rootId: Z2, corruptedRules: Q2 });
5357
+ return { type: zo.Element, tagName: J3, attributes: Q3, childNodes: [], isSVG: Bi(e3) || void 0, needBlock: Z3, rootId: X3, isCustom: te2 };
5358
+ })(e2, { doc: C2, blockClass: M2, blockSelector: I2, inlineStylesheet: U2, maskInputOptions: j2, maskInputFn: z2, dataURLOptions: H2, inlineImages: K2, recordCanvas: X2, keepIframeSrcFn: Y2, newlyAddedElement: Z2, rootId: Q2, corruptedRules: J2 });
5353
5359
  case e2.TEXT_NODE:
5354
5360
  return (function Zi(e3, w3) {
5355
5361
  var C3;
@@ -5365,11 +5371,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5365
5371
  U3 = Nt(U3, Xt(w3.doc));
5366
5372
  }
5367
5373
  return W3 && (U3 = "SCRIPT_PLACEHOLDER"), !j3 && !W3 && U3 && x3 && (U3 = M3 ? M3(U3, e3.parentElement) : U3.replace(/[\S]/g, "*")), { type: zo.Text, textContent: U3 || "", isStyle: j3, rootId: I3 };
5368
- })(e2, { doc: C2, needsMask: _2, maskTextFn: W2, rootId: Z2, corruptedRules: Q2 });
5374
+ })(e2, { doc: C2, needsMask: _2, maskTextFn: W2, rootId: Q2, corruptedRules: J2 });
5369
5375
  case e2.CDATA_SECTION_NODE:
5370
- return { type: zo.CDATA, textContent: "", rootId: Z2 };
5376
+ return { type: zo.CDATA, textContent: "", rootId: Q2 };
5371
5377
  case e2.COMMENT_NODE:
5372
- return { type: zo.Comment, textContent: e2.textContent || "", rootId: Z2 };
5378
+ return { type: zo.Comment, textContent: e2.textContent || "", rootId: Q2 };
5373
5379
  default:
5374
5380
  return false;
5375
5381
  }
@@ -5378,10 +5384,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5378
5384
  return null == e2 ? "" : e2.toLowerCase();
5379
5385
  }
5380
5386
  function ve(e2, w2) {
5381
- const { doc: C2, mirror: x2, blockClass: M2, blockSelector: I2, maskTextClass: _2, maskTextSelector: U2, skipChild: j2 = false, inlineStylesheet: W2 = true, maskInputOptions: z2 = {}, maskTextFn: H2, maskInputFn: K2, slimDOMOptions: X2, dataURLOptions: Y2 = {}, inlineImages: J2 = false, recordCanvas: Q2 = false, onSerialize: Z2, onIframeLoad: ee2, iframeLoadTimeout: te2 = 5e3, onStylesheetLoad: ne2, stylesheetLoadTimeout: re2 = 5e3, keepIframeSrcFn: se2 = () => false, newlyAddedElement: ie2 = false, corruptedRules: ae2 } = w2;
5387
+ const { doc: C2, mirror: x2, blockClass: M2, blockSelector: I2, maskTextClass: _2, maskTextSelector: U2, skipChild: j2 = false, inlineStylesheet: W2 = true, maskInputOptions: z2 = {}, maskTextFn: H2, maskInputFn: K2, slimDOMOptions: X2, dataURLOptions: Y2 = {}, inlineImages: Z2 = false, recordCanvas: J2 = false, onSerialize: Q2, onIframeLoad: ee2, iframeLoadTimeout: te2 = 5e3, onStylesheetLoad: ne2, stylesheetLoadTimeout: re2 = 5e3, keepIframeSrcFn: se2 = () => false, newlyAddedElement: ie2 = false, corruptedRules: ae2 } = w2;
5382
5388
  let { needsMask: ce2 } = w2, { preserveWhiteSpace: le2 = true } = w2;
5383
5389
  ce2 || (ce2 = Pn(e2, _2, U2, void 0 === ce2));
5384
- const de2 = Gi(e2, { doc: C2, mirror: x2, blockClass: M2, blockSelector: I2, needsMask: ce2, inlineStylesheet: W2, maskInputOptions: z2, maskTextFn: H2, maskInputFn: K2, dataURLOptions: Y2, inlineImages: J2, recordCanvas: Q2, keepIframeSrcFn: se2, newlyAddedElement: ie2, corruptedRules: ae2 });
5390
+ const de2 = Gi(e2, { doc: C2, mirror: x2, blockClass: M2, blockSelector: I2, needsMask: ce2, inlineStylesheet: W2, maskInputOptions: z2, maskTextFn: H2, maskInputFn: K2, dataURLOptions: Y2, inlineImages: Z2, recordCanvas: J2, keepIframeSrcFn: se2, newlyAddedElement: ie2, corruptedRules: ae2 });
5385
5391
  if (!de2) return console.warn(e2, "not serialized"), null;
5386
5392
  let pe2;
5387
5393
  pe2 = x2.hasNode(e2) ? x2.getId(e2) : (function Xi(e3, w3) {
@@ -5389,7 +5395,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5389
5395
  })(de2, X2) || !le2 && de2.type === zo.Text && !de2.isStyle && !de2.textContent.replace(/^\s+|\s+$/gm, "").length ? -2 : En();
5390
5396
  const me2 = Object.assign(de2, { id: pe2 });
5391
5397
  if (x2.add(e2, me2), -2 === pe2) return null;
5392
- Z2 && Z2(e2);
5398
+ Q2 && Q2(e2);
5393
5399
  let ge2 = !j2;
5394
5400
  if (me2.type === zo.Element) {
5395
5401
  ge2 = ge2 && !me2.needBlock, delete me2.needBlock;
@@ -5398,7 +5404,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5398
5404
  }
5399
5405
  if ((me2.type === zo.Document || me2.type === zo.Element) && ge2) {
5400
5406
  X2.headWhitespace && me2.type === zo.Element && "head" === me2.tagName && (le2 = false);
5401
- const w3 = { doc: C2, mirror: x2, blockClass: M2, blockSelector: I2, needsMask: ce2, maskTextClass: _2, maskTextSelector: U2, skipChild: j2, inlineStylesheet: W2, maskInputOptions: z2, maskTextFn: H2, maskInputFn: K2, slimDOMOptions: X2, dataURLOptions: Y2, inlineImages: J2, recordCanvas: Q2, preserveWhiteSpace: le2, onSerialize: Z2, onIframeLoad: ee2, iframeLoadTimeout: te2, onStylesheetLoad: ne2, stylesheetLoadTimeout: re2, keepIframeSrcFn: se2, corruptedRules: ae2 };
5407
+ const w3 = { doc: C2, mirror: x2, blockClass: M2, blockSelector: I2, needsMask: ce2, maskTextClass: _2, maskTextSelector: U2, skipChild: j2, inlineStylesheet: W2, maskInputOptions: z2, maskTextFn: H2, maskInputFn: K2, slimDOMOptions: X2, dataURLOptions: Y2, inlineImages: Z2, recordCanvas: J2, preserveWhiteSpace: le2, onSerialize: Q2, onIframeLoad: ee2, iframeLoadTimeout: te2, onStylesheetLoad: ne2, stylesheetLoadTimeout: re2, keepIframeSrcFn: se2, corruptedRules: ae2 };
5402
5408
  if (me2.type !== zo.Element || "textarea" !== me2.tagName || void 0 === me2.attributes.value) for (const C3 of Array.from(e2.childNodes)) {
5403
5409
  const e3 = ve(C3, w3);
5404
5410
  e3 && me2.childNodes.push(e3);
@@ -5431,7 +5437,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5431
5437
  })(e2, () => {
5432
5438
  const w3 = e2.contentDocument;
5433
5439
  if (w3 && ee2) {
5434
- const C3 = ve(w3, { doc: w3, mirror: x2, blockClass: M2, blockSelector: I2, needsMask: ce2, maskTextClass: _2, maskTextSelector: U2, skipChild: false, inlineStylesheet: W2, maskInputOptions: z2, maskTextFn: H2, maskInputFn: K2, slimDOMOptions: X2, dataURLOptions: Y2, inlineImages: J2, recordCanvas: Q2, preserveWhiteSpace: le2, onSerialize: Z2, onIframeLoad: ee2, iframeLoadTimeout: te2, onStylesheetLoad: ne2, stylesheetLoadTimeout: re2, keepIframeSrcFn: se2 });
5440
+ const C3 = ve(w3, { doc: w3, mirror: x2, blockClass: M2, blockSelector: I2, needsMask: ce2, maskTextClass: _2, maskTextSelector: U2, skipChild: false, inlineStylesheet: W2, maskInputOptions: z2, maskTextFn: H2, maskInputFn: K2, slimDOMOptions: X2, dataURLOptions: Y2, inlineImages: Z2, recordCanvas: J2, preserveWhiteSpace: le2, onSerialize: Q2, onIframeLoad: ee2, iframeLoadTimeout: te2, onStylesheetLoad: ne2, stylesheetLoadTimeout: re2, keepIframeSrcFn: se2 });
5435
5441
  C3 && ee2(e2, C3);
5436
5442
  }
5437
5443
  }, te2), me2.type === zo.Element && "link" === me2.tagName && "string" == typeof me2.attributes.rel && ("stylesheet" === me2.attributes.rel || "preload" === me2.attributes.rel && "string" == typeof me2.attributes.href && "css" === Rn(me2.attributes.href)) && (function $i(e3, w3, C3) {
@@ -5450,7 +5456,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5450
5456
  });
5451
5457
  })(e2, () => {
5452
5458
  if (ne2) {
5453
- const w3 = ve(e2, { doc: C2, mirror: x2, blockClass: M2, blockSelector: I2, needsMask: ce2, maskTextClass: _2, maskTextSelector: U2, skipChild: false, inlineStylesheet: W2, maskInputOptions: z2, maskTextFn: H2, maskInputFn: K2, slimDOMOptions: X2, dataURLOptions: Y2, inlineImages: J2, recordCanvas: Q2, preserveWhiteSpace: le2, onSerialize: Z2, onIframeLoad: ee2, iframeLoadTimeout: te2, onStylesheetLoad: ne2, stylesheetLoadTimeout: re2, keepIframeSrcFn: se2 });
5459
+ const w3 = ve(e2, { doc: C2, mirror: x2, blockClass: M2, blockSelector: I2, needsMask: ce2, maskTextClass: _2, maskTextSelector: U2, skipChild: false, inlineStylesheet: W2, maskInputOptions: z2, maskTextFn: H2, maskInputFn: K2, slimDOMOptions: X2, dataURLOptions: Y2, inlineImages: Z2, recordCanvas: J2, preserveWhiteSpace: le2, onSerialize: Q2, onIframeLoad: ee2, iframeLoadTimeout: te2, onStylesheetLoad: ne2, stylesheetLoadTimeout: re2, keepIframeSrcFn: se2 });
5454
5460
  w3 && ne2(e2, w3);
5455
5461
  }
5456
5462
  }, re2), me2;
@@ -5660,15 +5666,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5660
5666
  };
5661
5667
  var ys = ms;
5662
5668
  ms.default = ms;
5663
- let ws = ys;
5669
+ let vs = ys;
5664
5670
  function xs(e2, w2) {
5665
- new ws(w2).stringify(e2);
5671
+ new vs(w2).stringify(e2);
5666
5672
  }
5667
- var vs = xs;
5673
+ var ws = xs;
5668
5674
  xs.default = xs;
5669
5675
  var bs = {};
5670
5676
  bs.isClean = Symbol("isClean"), bs.my = Symbol("my");
5671
- let Ss = hs, ks = ys, Cs = vs, { isClean: Ms, my: Es } = bs;
5677
+ let Ss = hs, ks = ys, Cs = ws, { isClean: Ms, my: Es } = bs;
5672
5678
  function Is(e2, w2) {
5673
5679
  let C2 = new e2.constructor();
5674
5680
  for (let x2 in e2) {
@@ -5863,7 +5869,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5863
5869
  function Vn(e2) {
5864
5870
  if (e2[Xs] = false, e2.proxyOf.nodes) for (let w2 of e2.proxyOf.nodes) Vn(w2);
5865
5871
  }
5866
- let Js = class $n extends Ks {
5872
+ let Zs = class $n extends Ks {
5867
5873
  get first() {
5868
5874
  if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
5869
5875
  }
@@ -6009,22 +6015,22 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6009
6015
  }));
6010
6016
  }
6011
6017
  };
6012
- Js.registerParse = (e2) => {
6018
+ Zs.registerParse = (e2) => {
6013
6019
  $s = e2;
6014
- }, Js.registerRule = (e2) => {
6020
+ }, Zs.registerRule = (e2) => {
6015
6021
  Gs = e2;
6016
- }, Js.registerAtRule = (e2) => {
6022
+ }, Zs.registerAtRule = (e2) => {
6017
6023
  Bs = e2;
6018
- }, Js.registerRoot = (e2) => {
6024
+ }, Zs.registerRoot = (e2) => {
6019
6025
  zs = e2;
6020
6026
  };
6021
- var Zs = Js;
6022
- Js.default = Js, Js.rebuild = (e2) => {
6027
+ var Js = Zs;
6028
+ Zs.default = Zs, Zs.rebuild = (e2) => {
6023
6029
  "atrule" === e2.type ? Object.setPrototypeOf(e2, Bs.prototype) : "rule" === e2.type ? Object.setPrototypeOf(e2, Gs.prototype) : "decl" === e2.type ? Object.setPrototypeOf(e2, qs.prototype) : "comment" === e2.type ? Object.setPrototypeOf(e2, Hs.prototype) : "root" === e2.type && Object.setPrototypeOf(e2, zs.prototype), e2[Ys] = true, e2.nodes && e2.nodes.forEach((e3) => {
6024
- Js.rebuild(e3);
6030
+ Zs.rebuild(e3);
6025
6031
  });
6026
6032
  };
6027
- let ei = Zs, ti = class extends ei {
6033
+ let ei = Js, ti = class extends ei {
6028
6034
  constructor(e2) {
6029
6035
  super(e2), this.type = "atrule";
6030
6036
  }
@@ -6037,7 +6043,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6037
6043
  };
6038
6044
  var ni = ti;
6039
6045
  ti.default = ti, ei.registerAtRule(ti);
6040
- let ri, oi, si = Zs, ii = class extends si {
6046
+ let ri, oi, si = Js, ii = class extends si {
6041
6047
  constructor(e2) {
6042
6048
  super({ type: "document", ...e2 }), this.nodes || (this.nodes = []);
6043
6049
  }
@@ -6058,7 +6064,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6058
6064
  return w2;
6059
6065
  } };
6060
6066
  let { existsSync: pi, readFileSync: hi } = ls, { dirname: fi, join: mi } = ls, { SourceMapConsumer: gi, SourceMapGenerator: yi } = ls;
6061
- let wi = class {
6067
+ let vi = class {
6062
6068
  constructor(e2, w2) {
6063
6069
  if (false === w2.map) return;
6064
6070
  this.loadAnnotation(e2), this.inline = this.startWith(this.annotation, "data:");
@@ -6126,9 +6132,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6126
6132
  return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
6127
6133
  }
6128
6134
  };
6129
- var vi = wi;
6130
- wi.default = wi;
6131
- let { nanoid: bi } = di, { isAbsolute: Si, resolve: Ti } = ls, { SourceMapConsumer: Li, SourceMapGenerator: _i } = ls, { fileURLToPath: Di, pathToFileURL: Ni } = ls, Fi = hs, Ui = vi, Wi = ls, qi = Symbol("fromOffsetCache"), ea = !(!Li || !_i), ta = !(!Ti || !Si), na = class {
6135
+ var wi = vi;
6136
+ vi.default = vi;
6137
+ let { nanoid: bi } = di, { isAbsolute: Si, resolve: Ti } = ls, { SourceMapConsumer: Li, SourceMapGenerator: _i } = ls, { fileURLToPath: Di, pathToFileURL: Ni } = ls, Fi = hs, Ui = wi, Wi = ls, qi = Symbol("fromOffsetCache"), ea = !(!Li || !_i), ta = !(!Ti || !Si), na = class {
6132
6138
  get from() {
6133
6139
  return this.file || this.id;
6134
6140
  }
@@ -6213,7 +6219,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6213
6219
  };
6214
6220
  var ra = na;
6215
6221
  na.default = na, Wi && Wi.registerInput && Wi.registerInput(na);
6216
- let oa, ia, aa = Zs, ca = class extends aa {
6222
+ let oa, ia, aa = Js, ca = class extends aa {
6217
6223
  constructor(e2) {
6218
6224
  super(e2), this.type = "root", this.nodes || (this.nodes = []);
6219
6225
  }
@@ -6250,7 +6256,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6250
6256
  } };
6251
6257
  var da = ua;
6252
6258
  ua.default = ua;
6253
- let pa = Zs, ha = da, fa = class extends pa {
6259
+ let pa = Js, ha = da, fa = class extends pa {
6254
6260
  get selectors() {
6255
6261
  return ha.comma(this.selector);
6256
6262
  }
@@ -6264,7 +6270,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6264
6270
  };
6265
6271
  var ma = fa;
6266
6272
  fa.default = fa, pa.registerRule(fa);
6267
- let ga = ni, ya = As, va = Fs, ba = ra, Sa = vi, ka = la, Ca = ma;
6273
+ let ga = ni, ya = As, va = Fs, ba = ra, Sa = wi, ka = la, Ca = ma;
6268
6274
  function Ye(e2, w2) {
6269
6275
  if (Array.isArray(e2)) return e2.map((e3) => Ye(e3));
6270
6276
  let { inputs: C2, ...x2 } = e2;
@@ -6419,29 +6425,29 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6419
6425
  };
6420
6426
  const Na = /[\t\n\f\r "#'()/;[\\\]{}]/g, Fa = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Ba = /.[\r\n"'(/\\]/, $a = /[\da-f]/i;
6421
6427
  let Ua = ni, ja = As, Wa = Fs, za = la, Ga = ma, qa = function(e2, w2 = {}) {
6422
- let C2, x2, M2, I2, _2, U2, j2, W2, z2, H2, K2 = e2.css.valueOf(), X2 = w2.ignoreErrors, Y2 = K2.length, J2 = 0, Q2 = [], Z2 = [];
6428
+ let C2, x2, M2, I2, _2, U2, j2, W2, z2, H2, K2 = e2.css.valueOf(), X2 = w2.ignoreErrors, Y2 = K2.length, Z2 = 0, J2 = [], Q2 = [];
6423
6429
  function v2(w3) {
6424
- throw e2.error("Unclosed " + w3, J2);
6430
+ throw e2.error("Unclosed " + w3, Z2);
6425
6431
  }
6426
6432
  return { back: function O(e3) {
6427
- Z2.push(e3);
6433
+ Q2.push(e3);
6428
6434
  }, endOfFile: function S() {
6429
- return 0 === Z2.length && J2 >= Y2;
6435
+ return 0 === Q2.length && Z2 >= Y2;
6430
6436
  }, nextToken: function k2(e3) {
6431
- if (Z2.length) return Z2.pop();
6432
- if (J2 >= Y2) return;
6437
+ if (Q2.length) return Q2.pop();
6438
+ if (Z2 >= Y2) return;
6433
6439
  let w3 = !!e3 && e3.ignoreUnclosed;
6434
- switch (C2 = K2.charCodeAt(J2), C2) {
6440
+ switch (C2 = K2.charCodeAt(Z2), C2) {
6435
6441
  case 10:
6436
6442
  case 32:
6437
6443
  case 9:
6438
6444
  case 13:
6439
6445
  case 12:
6440
- I2 = J2;
6446
+ I2 = Z2;
6441
6447
  do {
6442
6448
  I2 += 1, C2 = K2.charCodeAt(I2);
6443
6449
  } while (32 === C2 || 10 === C2 || 9 === C2 || 13 === C2 || 12 === C2);
6444
- U2 = ["space", K2.slice(J2, I2)], J2 = I2 - 1;
6450
+ U2 = ["space", K2.slice(Z2, I2)], Z2 = I2 - 1;
6445
6451
  break;
6446
6452
  case 91:
6447
6453
  case 93:
@@ -6451,57 +6457,57 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6451
6457
  case 59:
6452
6458
  case 41: {
6453
6459
  let e4 = String.fromCharCode(C2);
6454
- U2 = [e4, e4, J2];
6460
+ U2 = [e4, e4, Z2];
6455
6461
  break;
6456
6462
  }
6457
6463
  case 40:
6458
- if (H2 = Q2.length ? Q2.pop()[1] : "", z2 = K2.charCodeAt(J2 + 1), "url" === H2 && 39 !== z2 && 34 !== z2 && 32 !== z2 && 10 !== z2 && 9 !== z2 && 12 !== z2 && 13 !== z2) {
6459
- I2 = J2;
6464
+ if (H2 = J2.length ? J2.pop()[1] : "", z2 = K2.charCodeAt(Z2 + 1), "url" === H2 && 39 !== z2 && 34 !== z2 && 32 !== z2 && 10 !== z2 && 9 !== z2 && 12 !== z2 && 13 !== z2) {
6465
+ I2 = Z2;
6460
6466
  do {
6461
6467
  if (j2 = false, I2 = K2.indexOf(")", I2 + 1), -1 === I2) {
6462
6468
  if (X2 || w3) {
6463
- I2 = J2;
6469
+ I2 = Z2;
6464
6470
  break;
6465
6471
  }
6466
6472
  v2("bracket");
6467
6473
  }
6468
6474
  for (W2 = I2; 92 === K2.charCodeAt(W2 - 1); ) W2 -= 1, j2 = !j2;
6469
6475
  } while (j2);
6470
- U2 = ["brackets", K2.slice(J2, I2 + 1), J2, I2], J2 = I2;
6471
- } else I2 = K2.indexOf(")", J2 + 1), x2 = K2.slice(J2, I2 + 1), -1 === I2 || Ba.test(x2) ? U2 = ["(", "(", J2] : (U2 = ["brackets", x2, J2, I2], J2 = I2);
6476
+ U2 = ["brackets", K2.slice(Z2, I2 + 1), Z2, I2], Z2 = I2;
6477
+ } else I2 = K2.indexOf(")", Z2 + 1), x2 = K2.slice(Z2, I2 + 1), -1 === I2 || Ba.test(x2) ? U2 = ["(", "(", Z2] : (U2 = ["brackets", x2, Z2, I2], Z2 = I2);
6472
6478
  break;
6473
6479
  case 39:
6474
6480
  case 34:
6475
- _2 = 39 === C2 ? "'" : '"', I2 = J2;
6481
+ _2 = 39 === C2 ? "'" : '"', I2 = Z2;
6476
6482
  do {
6477
6483
  if (j2 = false, I2 = K2.indexOf(_2, I2 + 1), -1 === I2) {
6478
6484
  if (X2 || w3) {
6479
- I2 = J2 + 1;
6485
+ I2 = Z2 + 1;
6480
6486
  break;
6481
6487
  }
6482
6488
  v2("string");
6483
6489
  }
6484
6490
  for (W2 = I2; 92 === K2.charCodeAt(W2 - 1); ) W2 -= 1, j2 = !j2;
6485
6491
  } while (j2);
6486
- U2 = ["string", K2.slice(J2, I2 + 1), J2, I2], J2 = I2;
6492
+ U2 = ["string", K2.slice(Z2, I2 + 1), Z2, I2], Z2 = I2;
6487
6493
  break;
6488
6494
  case 64:
6489
- Na.lastIndex = J2 + 1, Na.test(K2), I2 = 0 === Na.lastIndex ? K2.length - 1 : Na.lastIndex - 2, U2 = ["at-word", K2.slice(J2, I2 + 1), J2, I2], J2 = I2;
6495
+ Na.lastIndex = Z2 + 1, Na.test(K2), I2 = 0 === Na.lastIndex ? K2.length - 1 : Na.lastIndex - 2, U2 = ["at-word", K2.slice(Z2, I2 + 1), Z2, I2], Z2 = I2;
6490
6496
  break;
6491
6497
  case 92:
6492
- for (I2 = J2, M2 = true; 92 === K2.charCodeAt(I2 + 1); ) I2 += 1, M2 = !M2;
6498
+ for (I2 = Z2, M2 = true; 92 === K2.charCodeAt(I2 + 1); ) I2 += 1, M2 = !M2;
6493
6499
  if (C2 = K2.charCodeAt(I2 + 1), M2 && 47 !== C2 && 32 !== C2 && 10 !== C2 && 9 !== C2 && 13 !== C2 && 12 !== C2 && (I2 += 1, $a.test(K2.charAt(I2)))) {
6494
6500
  for (; $a.test(K2.charAt(I2 + 1)); ) I2 += 1;
6495
6501
  32 === K2.charCodeAt(I2 + 1) && (I2 += 1);
6496
6502
  }
6497
- U2 = ["word", K2.slice(J2, I2 + 1), J2, I2], J2 = I2;
6503
+ U2 = ["word", K2.slice(Z2, I2 + 1), Z2, I2], Z2 = I2;
6498
6504
  break;
6499
6505
  default:
6500
- 47 === C2 && 42 === K2.charCodeAt(J2 + 1) ? (I2 = K2.indexOf("*/", J2 + 2) + 1, 0 === I2 && (X2 || w3 ? I2 = K2.length : v2("comment")), U2 = ["comment", K2.slice(J2, I2 + 1), J2, I2], J2 = I2) : (Fa.lastIndex = J2 + 1, Fa.test(K2), I2 = 0 === Fa.lastIndex ? K2.length - 1 : Fa.lastIndex - 2, U2 = ["word", K2.slice(J2, I2 + 1), J2, I2], Q2.push(U2), J2 = I2);
6506
+ 47 === C2 && 42 === K2.charCodeAt(Z2 + 1) ? (I2 = K2.indexOf("*/", Z2 + 2) + 1, 0 === I2 && (X2 || w3 ? I2 = K2.length : v2("comment")), U2 = ["comment", K2.slice(Z2, I2 + 1), Z2, I2], Z2 = I2) : (Fa.lastIndex = Z2 + 1, Fa.test(K2), I2 = 0 === Fa.lastIndex ? K2.length - 1 : Fa.lastIndex - 2, U2 = ["word", K2.slice(Z2, I2 + 1), Z2, I2], J2.push(U2), Z2 = I2);
6501
6507
  }
6502
- return J2++, U2;
6508
+ return Z2++, U2;
6503
6509
  }, position: function b() {
6504
- return J2;
6510
+ return Z2;
6505
6511
  } };
6506
6512
  };
6507
6513
  const Va = { empty: true, space: true };
@@ -6749,7 +6755,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6749
6755
  throw this.input.error("At-rule without name", { offset: w2[2] }, { offset: w2[2] + w2[1].length });
6750
6756
  }
6751
6757
  };
6752
- let Ka = Zs, Xa = ra, Ya = Ha;
6758
+ let Ka = Js, Xa = ra, Ya = Ha;
6753
6759
  function zt(e2, w2) {
6754
6760
  let C2 = new Xa(e2, w2), x2 = new Ya(C2);
6755
6761
  try {
@@ -6759,9 +6765,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6759
6765
  }
6760
6766
  return x2.root;
6761
6767
  }
6762
- var Ja = zt;
6768
+ var Za = zt;
6763
6769
  zt.default = zt, Ka.registerParse(zt);
6764
- let Qa = class {
6770
+ let Ja = class {
6765
6771
  constructor(e2, w2 = {}) {
6766
6772
  if (this.type = "warning", this.text = e2, w2.node && w2.node.source) {
6767
6773
  let e3 = w2.node.rangeBy(w2);
@@ -6773,9 +6779,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6773
6779
  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;
6774
6780
  }
6775
6781
  };
6776
- var Za = Qa;
6777
- Qa.default = Qa;
6778
- let ec = Za, tc = class {
6782
+ var Qa = Ja;
6783
+ Ja.default = Ja;
6784
+ let ec = Qa, tc = class {
6779
6785
  get content() {
6780
6786
  return this.css;
6781
6787
  }
@@ -6800,7 +6806,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6800
6806
  var io = function(e2) {
6801
6807
  rc[e2] || (rc[e2] = true, typeof console < "u" && console.warn && console.warn(e2));
6802
6808
  };
6803
- let oc = Zs, sc = ci, ic = Pa, ac = Ja, cc = nc, lc = la, uc = vs, { isClean: dc, my: pc } = bs, hc = io;
6809
+ let oc = Js, sc = ci, ic = Pa, ac = Za, cc = nc, lc = la, uc = ws, { isClean: dc, my: pc } = bs, hc = io;
6804
6810
  const fc = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, mc = { 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 }, gc = { Once: true, postcssPlugin: true, prepare: true };
6805
6811
  function De(e2) {
6806
6812
  return "object" == typeof e2 && "function" == typeof e2.then;
@@ -6816,7 +6822,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6816
6822
  function Ns(e2) {
6817
6823
  return e2[dc] = false, e2.nodes && e2.nodes.forEach((e3) => Ns(e3)), e2;
6818
6824
  }
6819
- let yc = {}, wc = class lo {
6825
+ let yc = {}, vc = class lo {
6820
6826
  get content() {
6821
6827
  return this.stringify().content;
6822
6828
  }
@@ -7032,14 +7038,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
7032
7038
  return this.sync().warnings();
7033
7039
  }
7034
7040
  };
7035
- wc.registerPostcss = (e2) => {
7041
+ vc.registerPostcss = (e2) => {
7036
7042
  yc = e2;
7037
7043
  };
7038
- var vc = wc;
7039
- wc.default = wc, lc.registerLazyResult(wc), sc.registerLazyResult(wc);
7040
- let bc = Pa, Sc = Ja;
7044
+ var wc = vc;
7045
+ vc.default = vc, lc.registerLazyResult(vc), sc.registerLazyResult(vc);
7046
+ let bc = Pa, Sc = Za;
7041
7047
  const kc = nc;
7042
- let Cc = vs, xc = io, Mc = class {
7048
+ let Cc = ws, xc = io, Mc = class {
7043
7049
  get content() {
7044
7050
  return this.result.css;
7045
7051
  }
@@ -7109,7 +7115,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
7109
7115
  };
7110
7116
  var Ic = Mc;
7111
7117
  Mc.default = Mc;
7112
- let Rc = ci, Oc = vc, Lc = Ic, _c = la, Ac = class {
7118
+ let Rc = ci, Oc = wc, Lc = Ic, _c = la, Ac = class {
7113
7119
  constructor(e2 = []) {
7114
7120
  this.version = "8.5.3", this.plugins = this.normalize(e2);
7115
7121
  }
@@ -7133,7 +7139,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
7133
7139
  };
7134
7140
  var Dc = Ac;
7135
7141
  Ac.default = Ac, _c.registerProcessor(Ac), Rc.registerProcessor(Ac);
7136
- let Pc = ni, Nc = As, Fc = Zs, Bc = hs, $c = Fs, Uc = ci, jc = xa, Wc = ra, zc = vc, Gc = da, Vc = Rs, Hc = Ja, qc = Dc, Kc = nc, Xc = la, Yc = ma, Jc = vs, Qc = Za;
7142
+ let Pc = ni, Nc = As, Fc = Js, Bc = hs, $c = Fs, Uc = ci, jc = xa, Wc = ra, zc = wc, Gc = da, Vc = Rs, Hc = Za, qc = Dc, Kc = nc, Xc = la, Yc = ma, Zc = ws, Jc = Qa;
7137
7143
  function N(...e2) {
7138
7144
  return 1 === e2.length && Array.isArray(e2[0]) && (e2 = e2[0]), new qc(e2);
7139
7145
  }
@@ -7147,10 +7153,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
7147
7153
  return Object.defineProperty(r, "postcss", { get: () => (C2 || (C2 = r()), C2) }), r.process = function(e3, w3, C3) {
7148
7154
  return N([r(C3)]).process(e3, w3);
7149
7155
  }, r;
7150
- }, N.stringify = Jc, N.parse = Hc, N.fromJSON = jc, N.list = Gc, N.comment = (e2) => new Nc(e2), N.atRule = (e2) => new Pc(e2), N.decl = (e2) => new $c(e2), N.rule = (e2) => new Yc(e2), N.root = (e2) => new Xc(e2), N.document = (e2) => new Uc(e2), N.CssSyntaxError = Bc, N.Declaration = $c, N.Container = Fc, N.Processor = qc, N.Document = Uc, N.Comment = Nc, N.Warning = Qc, N.AtRule = Pc, N.Result = Kc, N.Input = Wc, N.Rule = Yc, N.Root = Xc, N.Node = Vc, zc.registerPostcss(N);
7151
- var Zc = N;
7156
+ }, N.stringify = Zc, N.parse = Hc, N.fromJSON = jc, N.list = Gc, N.comment = (e2) => new Nc(e2), N.atRule = (e2) => new Pc(e2), N.decl = (e2) => new $c(e2), N.rule = (e2) => new Yc(e2), N.root = (e2) => new Xc(e2), N.document = (e2) => new Uc(e2), N.CssSyntaxError = Bc, N.Declaration = $c, N.Container = Fc, N.Processor = qc, N.Document = Uc, N.Comment = Nc, N.Warning = Jc, N.AtRule = Pc, N.Result = Kc, N.Input = Wc, N.Rule = Yc, N.Root = Xc, N.Node = Vc, zc.registerPostcss(N);
7157
+ var Qc = N;
7152
7158
  N.default = N;
7153
- const tl = Ki(Zc);
7159
+ const tl = Ki(Qc);
7154
7160
  tl.stringify, tl.fromJSON, tl.plugin, tl.parse, tl.list, tl.document, tl.comment, tl.atRule, tl.rule, tl.decl, tl.root, tl.CssSyntaxError, tl.Declaration, tl.Container, tl.Processor, tl.Document, tl.Comment, tl.Warning, tl.AtRule, tl.Result, tl.Input, tl.Rule, tl.Root, tl.Node;
7155
7161
  var nl = ((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))(nl || {}), rl = ((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))(rl || {}), ol = ((e2) => (e2.Append = "append", e2.Insert = "insert", e2.Delete = "delete", e2.Replace = "replace", e2))(ol || {}), sl = ((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))(sl || {}), il = ((e2) => (e2[e2.Mouse = 0] = "Mouse", e2[e2.Pen = 1] = "Pen", e2[e2.Touch = 2] = "Touch", e2))(il || {}), al = ((e2) => (e2[e2["2D"] = 0] = "2D", e2[e2.WebGL = 1] = "WebGL", e2[e2.WebGL2 = 2] = "WebGL2", e2))(al || {}), cl = ((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))(cl || {});
7156
7162
  function V(e2, w2, C2 = document) {
@@ -7833,7 +7839,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
7833
7839
  };
7834
7840
  let x2;
7835
7841
  !(function du(e3, w3) {
7836
- const { mutationCb: C3, mousemoveCb: x3, mouseInteractionCb: M3, scrollCb: I3, viewportResizeCb: _3, inputCb: U3, typingCb: j3, deviceChangeCb: W3, mediaInteractionCb: z3, styleSheetRuleCb: H3, styleDeclarationCb: K3, canvasMutationCb: X3, fontCb: Y3, selectionCb: J2, customElementCb: Q2 } = e3;
7842
+ const { mutationCb: C3, mousemoveCb: x3, mouseInteractionCb: M3, scrollCb: I3, viewportResizeCb: _3, inputCb: U3, typingCb: j3, deviceChangeCb: W3, mediaInteractionCb: z3, styleSheetRuleCb: H3, styleDeclarationCb: K3, canvasMutationCb: X3, fontCb: Y3, selectionCb: Z2, customElementCb: J2 } = e3;
7837
7843
  e3.mutationCb = (...e4) => {
7838
7844
  w3.mutation && w3.mutation(...e4), C3(...e4);
7839
7845
  }, e3.mousemoveCb = (...e4) => {
@@ -7861,9 +7867,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
7861
7867
  }, e3.fontCb = (...e4) => {
7862
7868
  w3.font && w3.font(...e4), Y3(...e4);
7863
7869
  }, e3.selectionCb = (...e4) => {
7864
- w3.selection && w3.selection(...e4), J2(...e4);
7870
+ w3.selection && w3.selection(...e4), Z2(...e4);
7865
7871
  }, e3.customElementCb = (...e4) => {
7866
- w3.customElement && w3.customElement(...e4), Q2(...e4);
7872
+ w3.customElement && w3.customElement(...e4), J2(...e4);
7867
7873
  };
7868
7874
  })(e2, w2), e2.recordDOM && (x2 = Oo(e2, e2.doc));
7869
7875
  const M2 = (function eu({ mousemoveCb: e3, sampling: w3, doc: C3, mirror: x3 }) {
@@ -7893,13 +7899,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
7893
7899
  const W4 = e4.isTrusted, H4 = C4 && C4.tagName;
7894
7900
  if (C4 && "OPTION" === H4 && (C4 = C4.parentElement), !C4 || !H4 || fl.indexOf(H4) < 0 || $(C4, x3, M3, true) || C4.classList.contains(I3) || _3 && C4.matches(_3)) return;
7895
7901
  let K4 = C4.value, X4 = false;
7896
- const Y4 = Ht(C4) || "", { value: J2, masked: Q2 } = Zt({ element: C4, maskInputOptions: U3, tagName: H4, type: Y4, value: K4, maskInputFn: j3 });
7897
- K4 = J2, ("radio" === Y4 || "checkbox" === Y4) && (X4 = C4.checked), m3(C4, z3 ? { text: K4, isChecked: X4, masked: Q2, userTriggered: W4 } : { text: K4, isChecked: X4, masked: Q2 });
7898
- const Z2 = C4.name;
7899
- "radio" === Y4 && Z2 && X4 && w3.querySelectorAll(`input[type='radio'][name='${Z2}']`).forEach((e5) => {
7902
+ const Y4 = Ht(C4) || "", { value: Z2, masked: J2 } = Zt({ element: C4, maskInputOptions: U3, tagName: H4, type: Y4, value: K4, maskInputFn: j3 });
7903
+ K4 = Z2, ("radio" === Y4 || "checkbox" === Y4) && (X4 = C4.checked), m3(C4, z3 ? { text: K4, isChecked: X4, masked: J2, userTriggered: W4 } : { text: K4, isChecked: X4, masked: J2 });
7904
+ const Q2 = C4.name;
7905
+ "radio" === Y4 && Q2 && X4 && w3.querySelectorAll(`input[type='radio'][name='${Q2}']`).forEach((e5) => {
7900
7906
  if (e5 !== C4) {
7901
7907
  const w4 = e5.value;
7902
- m3(e5, z3 ? { text: w4, isChecked: !X4, masked: Q2, userTriggered: false } : { text: w4, isChecked: !X4, masked: Q2 });
7908
+ m3(e5, z3 ? { text: w4, isChecked: !X4, masked: J2, userTriggered: false } : { text: w4, isChecked: !X4, masked: J2 });
7903
7909
  }
7904
7910
  });
7905
7911
  }
@@ -8089,8 +8095,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
8089
8095
  function yt(e2) {
8090
8096
  return !!(typeof window[e2] < "u" && window[e2].prototype && "insertRule" in window[e2].prototype && "deleteRule" in window[e2].prototype);
8091
8097
  }
8092
- const gl = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Zvcih2YXIgcj0iQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyIsdz10eXBlb2YgVWludDhBcnJheT4idSI/W106bmV3IFVpbnQ4QXJyYXkoMjU2KSxpPTA7aTxyLmxlbmd0aDtpKyspd1tyLmNoYXJDb2RlQXQoaSldPWk7dmFyIHA9ZnVuY3Rpb24ocyl7dmFyIGU9bmV3IFVpbnQ4QXJyYXkocyksbixhPWUubGVuZ3RoLHQ9IiI7Zm9yKG49MDtuPGE7bis9Myl0Kz1yW2Vbbl0+PjJdLHQrPXJbKGVbbl0mMyk8PDR8ZVtuKzFdPj40XSx0Kz1yWyhlW24rMV0mMTUpPDwyfGVbbisyXT4+Nl0sdCs9cltlW24rMl0mNjNdO3JldHVybiBhJTM9PT0yP3Q9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0xKSsiPSI6YSUzPT09MSYmKHQ9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0yKSsiPT0iKSx0fTtjb25zdCBsPW5ldyBNYXAsYj1uZXcgTWFwO2FzeW5jIGZ1bmN0aW9uIHkocyxlLG4pe2NvbnN0IGE9YCR7c30tJHtlfWA7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtpZihiLmhhcyhhKSlyZXR1cm4gYi5nZXQoYSk7Y29uc3QgdD1uZXcgT2Zmc2NyZWVuQ2FudmFzKHMsZSk7dC5nZXRDb250ZXh0KCIyZCIpO2NvbnN0IGc9YXdhaXQoYXdhaXQgdC5jb252ZXJ0VG9CbG9iKG4pKS5hcnJheUJ1ZmZlcigpLGM9cChnKTtyZXR1cm4gYi5zZXQoYSxjKSxjfWVsc2UgcmV0dXJuIiJ9Y29uc3Qgbz1zZWxmO28ub25tZXNzYWdlPWFzeW5jIGZ1bmN0aW9uKHMpe2lmKCJPZmZzY3JlZW5DYW52YXMiaW4gZ2xvYmFsVGhpcyl7Y29uc3R7aWQ6ZSxiaXRtYXA6bix3aWR0aDphLGhlaWdodDp0LGRhdGFVUkxPcHRpb25zOnV9PXMuZGF0YSxnPXkoYSx0LHUpLGM9bmV3IE9mZnNjcmVlbkNhbnZhcyhhLHQpO2MuZ2V0Q29udGV4dCgiMmQiKS5kcmF3SW1hZ2UobiwwLDApLG4uY2xvc2UoKTtjb25zdCBkPWF3YWl0IGMuY29udmVydFRvQmxvYih1KSx2PWQudHlwZSxoPWF3YWl0IGQuYXJyYXlCdWZmZXIoKSxmPXAoaCk7aWYoIWwuaGFzKGUpJiZhd2FpdCBnPT09ZilyZXR1cm4gbC5zZXQoZSxmKSxvLnBvc3RNZXNzYWdlKHtpZDplfSk7aWYobC5nZXQoZSk9PT1mKXJldHVybiBvLnBvc3RNZXNzYWdlKHtpZDplfSk7by5wb3N0TWVzc2FnZSh7aWQ6ZSx0eXBlOnYsYmFzZTY0OmYsd2lkdGg6YSxoZWlnaHQ6dH0pLGwuc2V0KGUsZil9ZWxzZSByZXR1cm4gby5wb3N0TWVzc2FnZSh7aWQ6cy5kYXRhLmlkfSl9fSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1Cb1hHVm1Zby5qcy5tYXAK", yl = typeof self < "u" && self.Blob && new Blob([(wl = gl, Uint8Array.from(atob(wl), (e2) => e2.charCodeAt(0)))], { type: "text/javascript;charset=utf-8" });
8093
- var wl;
8098
+ const gl = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Zvcih2YXIgcj0iQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyIsdz10eXBlb2YgVWludDhBcnJheT4idSI/W106bmV3IFVpbnQ4QXJyYXkoMjU2KSxpPTA7aTxyLmxlbmd0aDtpKyspd1tyLmNoYXJDb2RlQXQoaSldPWk7dmFyIHA9ZnVuY3Rpb24ocyl7dmFyIGU9bmV3IFVpbnQ4QXJyYXkocyksbixhPWUubGVuZ3RoLHQ9IiI7Zm9yKG49MDtuPGE7bis9Myl0Kz1yW2Vbbl0+PjJdLHQrPXJbKGVbbl0mMyk8PDR8ZVtuKzFdPj40XSx0Kz1yWyhlW24rMV0mMTUpPDwyfGVbbisyXT4+Nl0sdCs9cltlW24rMl0mNjNdO3JldHVybiBhJTM9PT0yP3Q9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0xKSsiPSI6YSUzPT09MSYmKHQ9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0yKSsiPT0iKSx0fTtjb25zdCBsPW5ldyBNYXAsYj1uZXcgTWFwO2FzeW5jIGZ1bmN0aW9uIHkocyxlLG4pe2NvbnN0IGE9YCR7c30tJHtlfWA7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtpZihiLmhhcyhhKSlyZXR1cm4gYi5nZXQoYSk7Y29uc3QgdD1uZXcgT2Zmc2NyZWVuQ2FudmFzKHMsZSk7dC5nZXRDb250ZXh0KCIyZCIpO2NvbnN0IGc9YXdhaXQoYXdhaXQgdC5jb252ZXJ0VG9CbG9iKG4pKS5hcnJheUJ1ZmZlcigpLGM9cChnKTtyZXR1cm4gYi5zZXQoYSxjKSxjfWVsc2UgcmV0dXJuIiJ9Y29uc3Qgbz1zZWxmO28ub25tZXNzYWdlPWFzeW5jIGZ1bmN0aW9uKHMpe2lmKCJPZmZzY3JlZW5DYW52YXMiaW4gZ2xvYmFsVGhpcyl7Y29uc3R7aWQ6ZSxiaXRtYXA6bix3aWR0aDphLGhlaWdodDp0LGRhdGFVUkxPcHRpb25zOnV9PXMuZGF0YSxnPXkoYSx0LHUpLGM9bmV3IE9mZnNjcmVlbkNhbnZhcyhhLHQpO2MuZ2V0Q29udGV4dCgiMmQiKS5kcmF3SW1hZ2UobiwwLDApLG4uY2xvc2UoKTtjb25zdCBkPWF3YWl0IGMuY29udmVydFRvQmxvYih1KSx2PWQudHlwZSxoPWF3YWl0IGQuYXJyYXlCdWZmZXIoKSxmPXAoaCk7aWYoIWwuaGFzKGUpJiZhd2FpdCBnPT09ZilyZXR1cm4gbC5zZXQoZSxmKSxvLnBvc3RNZXNzYWdlKHtpZDplfSk7aWYobC5nZXQoZSk9PT1mKXJldHVybiBvLnBvc3RNZXNzYWdlKHtpZDplfSk7by5wb3N0TWVzc2FnZSh7aWQ6ZSx0eXBlOnYsYmFzZTY0OmYsd2lkdGg6YSxoZWlnaHQ6dH0pLGwuc2V0KGUsZil9ZWxzZSByZXR1cm4gby5wb3N0TWVzc2FnZSh7aWQ6cy5kYXRhLmlkfSl9fSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1Cb1hHVm1Zby5qcy5tYXAK", yl = typeof self < "u" && self.Blob && new Blob([(vl = gl, Uint8Array.from(atob(vl), (e2) => e2.charCodeAt(0)))], { type: "text/javascript;charset=utf-8" });
8099
+ var vl;
8094
8100
  function gu(e2) {
8095
8101
  let w2;
8096
8102
  try {
@@ -8105,7 +8111,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
8105
8111
  w2 && (self.URL || self.webkitURL).revokeObjectURL(w2);
8106
8112
  }
8107
8113
  }
8108
- for (var vl = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", bl = typeof Uint8Array > "u" ? [] : new Uint8Array(256), Sl = 0; Sl < 64; Sl++) bl[vl.charCodeAt(Sl)] = Sl;
8114
+ for (var wl = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", bl = typeof Uint8Array > "u" ? [] : new Uint8Array(256), Sl = 0; Sl < 64; Sl++) bl[wl.charCodeAt(Sl)] = Sl;
8109
8115
  const kl = /* @__PURE__ */ new Map();
8110
8116
  const Lo = (e2, w2, C2) => {
8111
8117
  if (!e2 || !Ao(e2, w2) && "object" != typeof e2) return;
@@ -8123,7 +8129,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
8123
8129
  if (e2 instanceof ArrayBuffer) {
8124
8130
  const w3 = e2.constructor.name, C3 = (function(e3) {
8125
8131
  var w4, C4 = new Uint8Array(e3), x2 = C4.length, M2 = "";
8126
- for (w4 = 0; w4 < x2; w4 += 3) M2 += vl[C4[w4] >> 2], M2 += vl[(3 & C4[w4]) << 4 | C4[w4 + 1] >> 4], M2 += vl[(15 & C4[w4 + 1]) << 2 | C4[w4 + 2] >> 6], M2 += vl[63 & C4[w4 + 2]];
8132
+ for (w4 = 0; w4 < x2; w4 += 3) M2 += wl[C4[w4] >> 2], M2 += wl[(3 & C4[w4]) << 4 | C4[w4 + 1] >> 4], M2 += wl[(15 & C4[w4 + 1]) << 2 | C4[w4 + 2] >> 6], M2 += wl[63 & C4[w4 + 2]];
8127
8133
  return x2 % 3 == 2 ? M2 = M2.substring(0, M2.length - 1) + "=" : x2 % 3 == 1 && (M2 = M2.substring(0, M2.length - 2) + "=="), M2;
8128
8134
  })(e2);
8129
8135
  return { rr_type: w3, base64: C3 };
@@ -8393,14 +8399,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
8393
8399
  const e2 = document.createElement("iframe");
8394
8400
  document.body.appendChild(e2), Array.from = (null == (El = e2.contentWindow) ? void 0 : El.Array.from) || Array.from, document.body.removeChild(e2);
8395
8401
  }
8396
- } catch (wl2) {
8397
- console.debug("Unable to override Array.from", wl2);
8402
+ } catch (vl2) {
8403
+ console.debug("Unable to override Array.from", vl2);
8398
8404
  }
8399
8405
  const Tl = (function Ri() {
8400
8406
  return new Ho();
8401
8407
  })();
8402
8408
  function ue(e2 = {}) {
8403
- const { emit: w2, checkoutEveryNms: C2, checkoutEveryNth: x2, blockClass: M2 = "rr-block", blockSelector: I2 = null, ignoreClass: _2 = "rr-ignore", ignoreSelector: U2 = null, maskTextClass: j2 = "rr-mask", maskTextSelector: W2 = null, inlineStylesheet: z2 = true, maskAllInputs: H2, maskInputOptions: K2, slimDOMOptions: X2, maskInputFn: Y2, maskTextFn: J2, hooks: Q2, packFn: Z2, sampling: ee2 = {}, dataURLOptions: te2 = {}, mousemoveWait: ne2, recordDOM: re2 = true, recordCanvas: se2 = false, recordCrossOriginIframes: ie2 = false, recordAfter: ae2 = "DOMContentLoaded" === e2.recordAfter ? e2.recordAfter : "load", userTriggeredOnInput: ce2 = false, collectFonts: le2 = false, inlineImages: de2 = false, plugins: pe2, keepIframeSrcFn: me2 = () => false, ignoreCSSAttributes: ge2 = /* @__PURE__ */ new Set([]), errorHandler: ye2 } = e2;
8409
+ const { emit: w2, checkoutEveryNms: C2, checkoutEveryNth: x2, blockClass: M2 = "rr-block", blockSelector: I2 = null, ignoreClass: _2 = "rr-ignore", ignoreSelector: U2 = null, maskTextClass: j2 = "rr-mask", maskTextSelector: W2 = null, inlineStylesheet: z2 = true, maskAllInputs: H2, maskInputOptions: K2, slimDOMOptions: X2, maskInputFn: Y2, maskTextFn: Z2, hooks: J2, packFn: Q2, sampling: ee2 = {}, dataURLOptions: te2 = {}, mousemoveWait: ne2, recordDOM: re2 = true, recordCanvas: se2 = false, recordCrossOriginIframes: ie2 = false, recordAfter: ae2 = "DOMContentLoaded" === e2.recordAfter ? e2.recordAfter : "load", userTriggeredOnInput: ce2 = false, collectFonts: le2 = false, inlineImages: de2 = false, plugins: pe2, keepIframeSrcFn: me2 = () => false, ignoreCSSAttributes: ge2 = /* @__PURE__ */ new Set([]), errorHandler: ye2 } = e2;
8404
8410
  !(function Yl(e3) {
8405
8411
  dl = e3;
8406
8412
  })(ye2);
@@ -8429,7 +8435,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
8429
8435
  let Ce2, xe2 = 0;
8430
8436
  const kr = (e3) => {
8431
8437
  for (const w3 of pe2 || []) w3.eventProcessor && (e3 = w3.eventProcessor(e3));
8432
- return Z2 && !be2 && (e3 = Z2(e3)), e3;
8438
+ return Q2 && !be2 && (e3 = Q2(e3)), e3;
8433
8439
  };
8434
8440
  Cl = (e3, M3) => {
8435
8441
  var I3;
@@ -8453,14 +8459,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
8453
8459
  for (const e3 of pe2 || []) e3.getMirror && e3.getMirror({ nodeMirror: Tl, crossOriginIframeMirror: Ie2.crossOriginIframeMirror, crossOriginIframeStyleMirror: Ie2.crossOriginIframeStyleMirror });
8454
8460
  const Ee2 = new xu();
8455
8461
  Ml = new Cu({ recordCanvas: se2, mutationCb: xr, win: window, blockClass: M2, blockSelector: I2, mirror: Tl, sampling: ee2.canvas, dataURLOptions: te2 });
8456
- const Re2 = new Iu({ mutationCb: ot, scrollCb: Cr, bypassOptions: { blockClass: M2, blockSelector: I2, maskTextClass: j2, maskTextSelector: W2, inlineStylesheet: z2, maskInputOptions: Se2, dataURLOptions: te2, maskTextFn: J2, maskInputFn: Y2, recordCanvas: se2, inlineImages: de2, sampling: ee2, slimDOMOptions: ke2, iframeManager: Ie2, stylesheetManager: Me2, canvasManager: Ml, keepIframeSrcFn: me2, processedNodeManager: Ee2 }, mirror: Tl });
8462
+ const Re2 = new Iu({ mutationCb: ot, scrollCb: Cr, bypassOptions: { blockClass: M2, blockSelector: I2, maskTextClass: j2, maskTextSelector: W2, inlineStylesheet: z2, maskInputOptions: Se2, dataURLOptions: te2, maskTextFn: Z2, maskInputFn: Y2, recordCanvas: se2, inlineImages: de2, sampling: ee2, slimDOMOptions: ke2, iframeManager: Ie2, stylesheetManager: Me2, canvasManager: Ml, keepIframeSrcFn: me2, processedNodeManager: Ee2 }, mirror: Tl });
8457
8463
  xl = (e3 = false) => {
8458
8464
  if (!re2) return;
8459
8465
  Cl({ type: nl.Meta, data: { href: window.location.href, width: bo(), height: wo() } }, e3), Me2.reset(), Re2.init(), hl.forEach((e4) => e4.lock());
8460
8466
  const w3 = [], C3 = (function Ji(e4, w4) {
8461
- const { mirror: C4 = new Ho(), blockClass: x3 = "rr-block", blockSelector: M3 = null, maskTextClass: I3 = "rr-mask", maskTextSelector: _3 = null, inlineStylesheet: U3 = true, inlineImages: j3 = false, recordCanvas: W3 = false, maskAllInputs: z3 = false, maskTextFn: H3, maskInputFn: K3, slimDOM: X3 = false, dataURLOptions: Y3, preserveWhiteSpace: J3, onSerialize: Q3, onIframeLoad: Z3, iframeLoadTimeout: ee3, onStylesheetLoad: te3, stylesheetLoadTimeout: ne3, keepIframeSrcFn: re3 = () => false, corruptedRules: se3 } = w4 || {};
8462
- return ve(e4, { doc: e4, mirror: C4, blockClass: x3, blockSelector: M3, maskTextClass: I3, maskTextSelector: _3, skipChild: false, inlineStylesheet: U3, maskInputOptions: true === z3 ? { 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 === z3 ? { password: true } : z3, maskTextFn: H3, maskInputFn: K3, slimDOMOptions: true === X3 || "all" === X3 ? { script: true, comment: true, headFavicon: true, headWhitespace: true, headMetaDescKeywords: "all" === X3, headMetaSocial: true, headMetaRobots: true, headMetaHttpEquiv: true, headMetaAuthorship: true, headMetaVerification: true } : false === X3 ? {} : X3, dataURLOptions: Y3, inlineImages: j3, recordCanvas: W3, preserveWhiteSpace: J3, onSerialize: Q3, onIframeLoad: Z3, iframeLoadTimeout: ee3, onStylesheetLoad: te3, stylesheetLoadTimeout: ne3, keepIframeSrcFn: re3, newlyAddedElement: false, corruptedRules: se3 });
8463
- })(document, { mirror: Tl, blockClass: M2, blockSelector: I2, maskTextClass: j2, maskTextSelector: W2, inlineStylesheet: z2, maskAllInputs: Se2, maskTextFn: J2, maskInputFn: Y2, slimDOM: ke2, dataURLOptions: te2, recordCanvas: se2, inlineImages: de2, corruptedRules: w3, onSerialize: (e4) => {
8467
+ const { mirror: C4 = new Ho(), blockClass: x3 = "rr-block", blockSelector: M3 = null, maskTextClass: I3 = "rr-mask", maskTextSelector: _3 = null, inlineStylesheet: U3 = true, inlineImages: j3 = false, recordCanvas: W3 = false, maskAllInputs: z3 = false, maskTextFn: H3, maskInputFn: K3, slimDOM: X3 = false, dataURLOptions: Y3, preserveWhiteSpace: Z3, onSerialize: J3, onIframeLoad: Q3, iframeLoadTimeout: ee3, onStylesheetLoad: te3, stylesheetLoadTimeout: ne3, keepIframeSrcFn: re3 = () => false, corruptedRules: se3 } = w4 || {};
8468
+ return ve(e4, { doc: e4, mirror: C4, blockClass: x3, blockSelector: M3, maskTextClass: I3, maskTextSelector: _3, skipChild: false, inlineStylesheet: U3, maskInputOptions: true === z3 ? { 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 === z3 ? { password: true } : z3, maskTextFn: H3, maskInputFn: K3, slimDOMOptions: true === X3 || "all" === X3 ? { script: true, comment: true, headFavicon: true, headWhitespace: true, headMetaDescKeywords: "all" === X3, headMetaSocial: true, headMetaRobots: true, headMetaHttpEquiv: true, headMetaAuthorship: true, headMetaVerification: true } : false === X3 ? {} : X3, dataURLOptions: Y3, inlineImages: j3, recordCanvas: W3, preserveWhiteSpace: Z3, onSerialize: J3, onIframeLoad: Q3, iframeLoadTimeout: ee3, onStylesheetLoad: te3, stylesheetLoadTimeout: ne3, keepIframeSrcFn: re3, newlyAddedElement: false, corruptedRules: se3 });
8469
+ })(document, { mirror: Tl, blockClass: M2, blockSelector: I2, maskTextClass: j2, maskTextSelector: W2, inlineStylesheet: z2, maskAllInputs: Se2, maskTextFn: Z2, maskInputFn: Y2, slimDOM: ke2, dataURLOptions: te2, recordCanvas: se2, inlineImages: de2, corruptedRules: w3, onSerialize: (e4) => {
8464
8470
  ko(e4, Tl) && Ie2.addIframe(e4), Co(e4, Tl) && Me2.trackLinkElement(e4), _s(e4) && Re2.addShadowRoot(e4.shadowRoot, document);
8465
8471
  }, onIframeLoad: (e4, w4) => {
8466
8472
  Ie2.attachIframe(e4, w4), Re2.observeAttachShadow(e4);
@@ -8481,7 +8487,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
8481
8487
  Cl({ type: nl.IncrementalSnapshot, data: { ...e5 } });
8482
8488
  }, deviceChangeCb: (e5) => {
8483
8489
  Cl({ type: nl.Device, data: { ...e5 } });
8484
- }, blockClass: M2, ignoreClass: _2, ignoreSelector: U2, maskTextClass: j2, maskTextSelector: W2, maskInputOptions: Se2, inlineStylesheet: z2, sampling: ee2, recordDOM: re2, recordCanvas: se2, inlineImages: de2, userTriggeredOnInput: ce2, collectFonts: le2, doc: e4, maskInputFn: Y2, maskTextFn: J2, keepIframeSrcFn: me2, blockSelector: I2, slimDOMOptions: ke2, dataURLOptions: te2, mirror: Tl, iframeManager: Ie2, stylesheetManager: Me2, shadowDomManager: Re2, processedNodeManager: Ee2, canvasManager: Ml, ignoreCSSAttributes: ge2, plugins: (null == (w3 = null == pe2 ? void 0 : pe2.filter((e5) => e5.observer)) ? void 0 : w3.map((e5) => ({ observer: e5.observer, options: e5.options, callback: (w4) => Cl({ type: nl.Plugin, data: { plugin: e5.name, payload: w4 } }) }))) || [] }, Q2);
8490
+ }, blockClass: M2, ignoreClass: _2, ignoreSelector: U2, maskTextClass: j2, maskTextSelector: W2, maskInputOptions: Se2, inlineStylesheet: z2, sampling: ee2, recordDOM: re2, recordCanvas: se2, inlineImages: de2, userTriggeredOnInput: ce2, collectFonts: le2, doc: e4, maskInputFn: Y2, maskTextFn: Z2, keepIframeSrcFn: me2, blockSelector: I2, slimDOMOptions: ke2, dataURLOptions: te2, mirror: Tl, iframeManager: Ie2, stylesheetManager: Me2, shadowDomManager: Re2, processedNodeManager: Ee2, canvasManager: Ml, ignoreCSSAttributes: ge2, plugins: (null == (w3 = null == pe2 ? void 0 : pe2.filter((e5) => e5.observer)) ? void 0 : w3.map((e5) => ({ observer: e5.observer, options: e5.options, callback: (w4) => Cl({ type: nl.Plugin, data: { plugin: e5.name, payload: w4 } }) }))) || [] }, J2);
8485
8491
  };
8486
8492
  Ie2.addLoadListener((w3) => {
8487
8493
  try {
@@ -8926,7 +8932,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
8926
8932
  function $o(e2) {
8927
8933
  if (e2[Xu] = false, e2.proxyOf.nodes) for (let w2 of e2.proxyOf.nodes) $o(w2);
8928
8934
  }
8929
- let Ju = class Go extends Ku {
8935
+ let Zu = class Go extends Ku {
8930
8936
  get first() {
8931
8937
  if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
8932
8938
  }
@@ -9072,22 +9078,22 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9072
9078
  }));
9073
9079
  }
9074
9080
  };
9075
- Ju.registerParse = (e2) => {
9081
+ Zu.registerParse = (e2) => {
9076
9082
  Wu = e2;
9077
- }, Ju.registerRule = (e2) => {
9083
+ }, Zu.registerRule = (e2) => {
9078
9084
  Gu = e2;
9079
- }, Ju.registerAtRule = (e2) => {
9085
+ }, Zu.registerAtRule = (e2) => {
9080
9086
  ju = e2;
9081
- }, Ju.registerRoot = (e2) => {
9087
+ }, Zu.registerRoot = (e2) => {
9082
9088
  zu = e2;
9083
9089
  };
9084
- var Qu = Ju;
9085
- Ju.default = Ju, Ju.rebuild = (e2) => {
9090
+ var Ju = Zu;
9091
+ Zu.default = Zu, Zu.rebuild = (e2) => {
9086
9092
  "atrule" === e2.type ? Object.setPrototypeOf(e2, ju.prototype) : "rule" === e2.type ? Object.setPrototypeOf(e2, Gu.prototype) : "decl" === e2.type ? Object.setPrototypeOf(e2, qu.prototype) : "comment" === e2.type ? Object.setPrototypeOf(e2, Vu.prototype) : "root" === e2.type && Object.setPrototypeOf(e2, zu.prototype), e2[Yu] = true, e2.nodes && e2.nodes.forEach((e3) => {
9087
- Ju.rebuild(e3);
9093
+ Zu.rebuild(e3);
9088
9094
  });
9089
9095
  };
9090
- let Zu = Qu, ed = class extends Zu {
9096
+ let Qu = Ju, ed = class extends Qu {
9091
9097
  constructor(e2) {
9092
9098
  super(e2), this.type = "atrule";
9093
9099
  }
@@ -9099,8 +9105,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9099
9105
  }
9100
9106
  };
9101
9107
  var td = ed;
9102
- ed.default = ed, Zu.registerAtRule(ed);
9103
- let nd, rd, od = Qu, sd = class extends od {
9108
+ ed.default = ed, Qu.registerAtRule(ed);
9109
+ let nd, rd, od = Ju, sd = class extends od {
9104
9110
  constructor(e2) {
9105
9111
  super({ type: "document", ...e2 }), this.nodes || (this.nodes = []);
9106
9112
  }
@@ -9191,13 +9197,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9191
9197
  };
9192
9198
  var md = fd;
9193
9199
  fd.default = fd;
9194
- let { nanoid: gd } = ad, { isAbsolute: yd, resolve: wd } = _l, { SourceMapConsumer: vd, SourceMapGenerator: bd } = _l, { fileURLToPath: Sd, pathToFileURL: kd } = _l, Cd = Nl, xd = md, Md = _l, Id = Symbol("fromOffsetCache"), Ed = !(!vd || !bd), Td = !(!wd || !yd), Rd = class {
9200
+ let { nanoid: gd } = ad, { isAbsolute: yd, resolve: vd } = _l, { SourceMapConsumer: wd, SourceMapGenerator: bd } = _l, { fileURLToPath: Sd, pathToFileURL: kd } = _l, Cd = Nl, xd = md, Md = _l, Id = Symbol("fromOffsetCache"), Ed = !(!wd || !bd), Td = !(!vd || !yd), Rd = class {
9195
9201
  get from() {
9196
9202
  return this.file || this.id;
9197
9203
  }
9198
9204
  constructor(e2, w2 = {}) {
9199
9205
  if (null === e2 || typeof e2 > "u" || "object" == typeof e2 && !e2.toString) throw new Error(`PostCSS received ${e2} instead of CSS string`);
9200
- 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, w2.document && (this.document = w2.document.toString()), w2.from && (!Td || /^\w+:\/\//.test(w2.from) || yd(w2.from) ? this.file = w2.from : this.file = wd(w2.from)), Td && Ed) {
9206
+ 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, w2.document && (this.document = w2.document.toString()), w2.from && (!Td || /^\w+:\/\//.test(w2.from) || yd(w2.from) ? this.file = w2.from : this.file = vd(w2.from)), Td && Ed) {
9201
9207
  let e3 = new xd(this.css, w2);
9202
9208
  if (e3.text) {
9203
9209
  this.map = e3;
@@ -9253,7 +9259,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9253
9259
  return { col: e2 - C2[x2] + 1, line: x2 + 1 };
9254
9260
  }
9255
9261
  mapResolve(e2) {
9256
- return /^\w+:\/\//.test(e2) ? e2 : wd(this.map.consumer().sourceRoot || this.map.root || ".", e2);
9262
+ return /^\w+:\/\//.test(e2) ? e2 : vd(this.map.consumer().sourceRoot || this.map.root || ".", e2);
9257
9263
  }
9258
9264
  origin(e2, w2, C2, x2) {
9259
9265
  if (!this.map) return false;
@@ -9276,7 +9282,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9276
9282
  };
9277
9283
  var Od = Rd;
9278
9284
  Rd.default = Rd, Md && Md.registerInput && Md.registerInput(Rd);
9279
- let Ld, _d, Ad = Qu, Dd = class extends Ad {
9285
+ let Ld, _d, Ad = Ju, Dd = class extends Ad {
9280
9286
  constructor(e2) {
9281
9287
  super(e2), this.type = "root", this.nodes || (this.nodes = []);
9282
9288
  }
@@ -9313,7 +9319,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9313
9319
  } };
9314
9320
  var Fd = Nd;
9315
9321
  Nd.default = Nd;
9316
- let Bd = Qu, $d = Fd, Ud = class extends Bd {
9322
+ let Bd = Ju, $d = Fd, Ud = class extends Bd {
9317
9323
  get selectors() {
9318
9324
  return $d.comma(this.selector);
9319
9325
  }
@@ -9351,7 +9357,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9351
9357
  }
9352
9358
  var Xd = Qe;
9353
9359
  Qe.default = Qe;
9354
- let { dirname: Yd, relative: Jd, resolve: Qd, sep: Zd } = _l, { SourceMapConsumer: ep, SourceMapGenerator: tp } = _l, { pathToFileURL: np } = _l, rp = Od, op = !(!ep || !tp), sp = !!(Yd && Qd && Jd && Zd);
9360
+ let { dirname: Yd, relative: Zd, resolve: Jd, sep: Qd } = _l, { SourceMapConsumer: ep, SourceMapGenerator: tp } = _l, { pathToFileURL: np } = _l, rp = Od, op = !(!ep || !tp), sp = !!(Yd && Jd && Zd && Qd);
9355
9361
  var ip = class {
9356
9362
  constructor(e2, w2, C2, x2) {
9357
9363
  this.stringify = e2, this.mapOpts = C2.map || {}, this.root = w2, this.opts = C2, this.css = x2, this.originalCSS = x2, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
@@ -9423,8 +9429,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9423
9429
  let w2 = this.memoizedPaths.get(e2);
9424
9430
  if (w2) return w2;
9425
9431
  let C2 = this.opts.to ? Yd(this.opts.to) : ".";
9426
- "string" == typeof this.mapOpts.annotation && (C2 = Yd(Qd(C2, this.mapOpts.annotation)));
9427
- let x2 = Jd(C2, e2);
9432
+ "string" == typeof this.mapOpts.annotation && (C2 = Yd(Jd(C2, this.mapOpts.annotation)));
9433
+ let x2 = Zd(C2, e2);
9428
9434
  return this.memoizedPaths.set(e2, x2), x2;
9429
9435
  }
9430
9436
  previous() {
@@ -9475,36 +9481,36 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9475
9481
  toUrl(e2) {
9476
9482
  let w2 = this.memoizedURLs.get(e2);
9477
9483
  if (w2) return w2;
9478
- "\\" === Zd && (e2 = e2.replace(/\\/g, "/"));
9484
+ "\\" === Qd && (e2 = e2.replace(/\\/g, "/"));
9479
9485
  let C2 = encodeURI(e2).replace(/[#?]/g, encodeURIComponent);
9480
9486
  return this.memoizedURLs.set(e2, C2), C2;
9481
9487
  }
9482
9488
  };
9483
9489
  const ap = /[\t\n\f\r "#'()/;[\\\]{}]/g, cp = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, lp = /.[\r\n"'(/\\]/, up = /[\da-f]/i;
9484
9490
  let dp = td, pp = Fu, hp = Uu, fp = Pd, mp = jd, Ec = function(e2, w2 = {}) {
9485
- let C2, x2, M2, I2, _2, U2, j2, W2, z2, H2, K2 = e2.css.valueOf(), X2 = w2.ignoreErrors, Y2 = K2.length, J2 = 0, Q2 = [], Z2 = [];
9491
+ let C2, x2, M2, I2, _2, U2, j2, W2, z2, H2, K2 = e2.css.valueOf(), X2 = w2.ignoreErrors, Y2 = K2.length, Z2 = 0, J2 = [], Q2 = [];
9486
9492
  function v2(w3) {
9487
- throw e2.error("Unclosed " + w3, J2);
9493
+ throw e2.error("Unclosed " + w3, Z2);
9488
9494
  }
9489
9495
  return { back: function O(e3) {
9490
- Z2.push(e3);
9496
+ Q2.push(e3);
9491
9497
  }, endOfFile: function S() {
9492
- return 0 === Z2.length && J2 >= Y2;
9498
+ return 0 === Q2.length && Z2 >= Y2;
9493
9499
  }, nextToken: function k2(e3) {
9494
- if (Z2.length) return Z2.pop();
9495
- if (J2 >= Y2) return;
9500
+ if (Q2.length) return Q2.pop();
9501
+ if (Z2 >= Y2) return;
9496
9502
  let w3 = !!e3 && e3.ignoreUnclosed;
9497
- switch (C2 = K2.charCodeAt(J2), C2) {
9503
+ switch (C2 = K2.charCodeAt(Z2), C2) {
9498
9504
  case 10:
9499
9505
  case 32:
9500
9506
  case 9:
9501
9507
  case 13:
9502
9508
  case 12:
9503
- I2 = J2;
9509
+ I2 = Z2;
9504
9510
  do {
9505
9511
  I2 += 1, C2 = K2.charCodeAt(I2);
9506
9512
  } while (32 === C2 || 10 === C2 || 9 === C2 || 13 === C2 || 12 === C2);
9507
- U2 = ["space", K2.slice(J2, I2)], J2 = I2 - 1;
9513
+ U2 = ["space", K2.slice(Z2, I2)], Z2 = I2 - 1;
9508
9514
  break;
9509
9515
  case 91:
9510
9516
  case 93:
@@ -9514,57 +9520,57 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9514
9520
  case 59:
9515
9521
  case 41: {
9516
9522
  let e4 = String.fromCharCode(C2);
9517
- U2 = [e4, e4, J2];
9523
+ U2 = [e4, e4, Z2];
9518
9524
  break;
9519
9525
  }
9520
9526
  case 40:
9521
- if (H2 = Q2.length ? Q2.pop()[1] : "", z2 = K2.charCodeAt(J2 + 1), "url" === H2 && 39 !== z2 && 34 !== z2 && 32 !== z2 && 10 !== z2 && 9 !== z2 && 12 !== z2 && 13 !== z2) {
9522
- I2 = J2;
9527
+ if (H2 = J2.length ? J2.pop()[1] : "", z2 = K2.charCodeAt(Z2 + 1), "url" === H2 && 39 !== z2 && 34 !== z2 && 32 !== z2 && 10 !== z2 && 9 !== z2 && 12 !== z2 && 13 !== z2) {
9528
+ I2 = Z2;
9523
9529
  do {
9524
9530
  if (j2 = false, I2 = K2.indexOf(")", I2 + 1), -1 === I2) {
9525
9531
  if (X2 || w3) {
9526
- I2 = J2;
9532
+ I2 = Z2;
9527
9533
  break;
9528
9534
  }
9529
9535
  v2("bracket");
9530
9536
  }
9531
9537
  for (W2 = I2; 92 === K2.charCodeAt(W2 - 1); ) W2 -= 1, j2 = !j2;
9532
9538
  } while (j2);
9533
- U2 = ["brackets", K2.slice(J2, I2 + 1), J2, I2], J2 = I2;
9534
- } else I2 = K2.indexOf(")", J2 + 1), x2 = K2.slice(J2, I2 + 1), -1 === I2 || lp.test(x2) ? U2 = ["(", "(", J2] : (U2 = ["brackets", x2, J2, I2], J2 = I2);
9539
+ U2 = ["brackets", K2.slice(Z2, I2 + 1), Z2, I2], Z2 = I2;
9540
+ } else I2 = K2.indexOf(")", Z2 + 1), x2 = K2.slice(Z2, I2 + 1), -1 === I2 || lp.test(x2) ? U2 = ["(", "(", Z2] : (U2 = ["brackets", x2, Z2, I2], Z2 = I2);
9535
9541
  break;
9536
9542
  case 39:
9537
9543
  case 34:
9538
- _2 = 39 === C2 ? "'" : '"', I2 = J2;
9544
+ _2 = 39 === C2 ? "'" : '"', I2 = Z2;
9539
9545
  do {
9540
9546
  if (j2 = false, I2 = K2.indexOf(_2, I2 + 1), -1 === I2) {
9541
9547
  if (X2 || w3) {
9542
- I2 = J2 + 1;
9548
+ I2 = Z2 + 1;
9543
9549
  break;
9544
9550
  }
9545
9551
  v2("string");
9546
9552
  }
9547
9553
  for (W2 = I2; 92 === K2.charCodeAt(W2 - 1); ) W2 -= 1, j2 = !j2;
9548
9554
  } while (j2);
9549
- U2 = ["string", K2.slice(J2, I2 + 1), J2, I2], J2 = I2;
9555
+ U2 = ["string", K2.slice(Z2, I2 + 1), Z2, I2], Z2 = I2;
9550
9556
  break;
9551
9557
  case 64:
9552
- ap.lastIndex = J2 + 1, ap.test(K2), I2 = 0 === ap.lastIndex ? K2.length - 1 : ap.lastIndex - 2, U2 = ["at-word", K2.slice(J2, I2 + 1), J2, I2], J2 = I2;
9558
+ ap.lastIndex = Z2 + 1, ap.test(K2), I2 = 0 === ap.lastIndex ? K2.length - 1 : ap.lastIndex - 2, U2 = ["at-word", K2.slice(Z2, I2 + 1), Z2, I2], Z2 = I2;
9553
9559
  break;
9554
9560
  case 92:
9555
- for (I2 = J2, M2 = true; 92 === K2.charCodeAt(I2 + 1); ) I2 += 1, M2 = !M2;
9561
+ for (I2 = Z2, M2 = true; 92 === K2.charCodeAt(I2 + 1); ) I2 += 1, M2 = !M2;
9556
9562
  if (C2 = K2.charCodeAt(I2 + 1), M2 && 47 !== C2 && 32 !== C2 && 10 !== C2 && 9 !== C2 && 13 !== C2 && 12 !== C2 && (I2 += 1, up.test(K2.charAt(I2)))) {
9557
9563
  for (; up.test(K2.charAt(I2 + 1)); ) I2 += 1;
9558
9564
  32 === K2.charCodeAt(I2 + 1) && (I2 += 1);
9559
9565
  }
9560
- U2 = ["word", K2.slice(J2, I2 + 1), J2, I2], J2 = I2;
9566
+ U2 = ["word", K2.slice(Z2, I2 + 1), Z2, I2], Z2 = I2;
9561
9567
  break;
9562
9568
  default:
9563
- 47 === C2 && 42 === K2.charCodeAt(J2 + 1) ? (I2 = K2.indexOf("*/", J2 + 2) + 1, 0 === I2 && (X2 || w3 ? I2 = K2.length : v2("comment")), U2 = ["comment", K2.slice(J2, I2 + 1), J2, I2], J2 = I2) : (cp.lastIndex = J2 + 1, cp.test(K2), I2 = 0 === cp.lastIndex ? K2.length - 1 : cp.lastIndex - 2, U2 = ["word", K2.slice(J2, I2 + 1), J2, I2], Q2.push(U2), J2 = I2);
9569
+ 47 === C2 && 42 === K2.charCodeAt(Z2 + 1) ? (I2 = K2.indexOf("*/", Z2 + 2) + 1, 0 === I2 && (X2 || w3 ? I2 = K2.length : v2("comment")), U2 = ["comment", K2.slice(Z2, I2 + 1), Z2, I2], Z2 = I2) : (cp.lastIndex = Z2 + 1, cp.test(K2), I2 = 0 === cp.lastIndex ? K2.length - 1 : cp.lastIndex - 2, U2 = ["word", K2.slice(Z2, I2 + 1), Z2, I2], J2.push(U2), Z2 = I2);
9564
9570
  }
9565
- return J2++, U2;
9571
+ return Z2++, U2;
9566
9572
  }, position: function b() {
9567
- return J2;
9573
+ return Z2;
9568
9574
  } };
9569
9575
  };
9570
9576
  const gp = { empty: true, space: true };
@@ -9812,9 +9818,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9812
9818
  throw this.input.error("At-rule without name", { offset: w2[2] }, { offset: w2[2] + w2[1].length });
9813
9819
  }
9814
9820
  };
9815
- let wp = Qu, vp = Od, bp = yp;
9821
+ let vp = Ju, wp = Od, bp = yp;
9816
9822
  function Yt(e2, w2) {
9817
- let C2 = new vp(e2, w2), x2 = new bp(C2);
9823
+ let C2 = new wp(e2, w2), x2 = new bp(C2);
9818
9824
  try {
9819
9825
  x2.parse();
9820
9826
  } catch (e3) {
@@ -9823,7 +9829,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9823
9829
  return x2.root;
9824
9830
  }
9825
9831
  var Sp = Yt;
9826
- Yt.default = Yt, wp.registerParse(Yt);
9832
+ Yt.default = Yt, vp.registerParse(Yt);
9827
9833
  let kp = class {
9828
9834
  constructor(e2, w2 = {}) {
9829
9835
  if (this.type = "warning", this.text = e2, w2.node && w2.node.source) {
@@ -9863,7 +9869,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9863
9869
  var ai = function(e2) {
9864
9870
  Ep[e2] || (Ep[e2] = true, typeof console < "u" && console.warn && console.warn(e2));
9865
9871
  };
9866
- let Tp = Qu, Rp = id, Op = ip, Lp = Sp, _p = Ip, Ap = Pd, Dp = ru, { isClean: Pp, my: Np } = mu, Fp = ai;
9872
+ let Tp = Ju, Rp = id, Op = ip, Lp = Sp, _p = Ip, Ap = Pd, Dp = ru, { isClean: Pp, my: Np } = mu, Fp = ai;
9867
9873
  const Bp = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, $p = { 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 }, Up = { Once: true, postcssPlugin: true, prepare: true };
9868
9874
  function We(e2) {
9869
9875
  return "object" == typeof e2 && "function" == typeof e2.then;
@@ -10172,7 +10178,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10172
10178
  };
10173
10179
  var Yp = Xp;
10174
10180
  Xp.default = Xp;
10175
- let Jp = id, Qp = zp, Zp = Yp, eh = Pd, th = class {
10181
+ let Zp = id, Jp = zp, Qp = Yp, eh = Pd, th = class {
10176
10182
  constructor(e2 = []) {
10177
10183
  this.version = "8.5.3", this.plugins = this.normalize(e2);
10178
10184
  }
@@ -10188,15 +10194,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10188
10194
  return w2;
10189
10195
  }
10190
10196
  process(e2, w2 = {}) {
10191
- return this.plugins.length || w2.parser || w2.stringifier || w2.syntax ? new Qp(this, e2, w2) : new Zp(this, e2, w2);
10197
+ return this.plugins.length || w2.parser || w2.stringifier || w2.syntax ? new Jp(this, e2, w2) : new Qp(this, e2, w2);
10192
10198
  }
10193
10199
  use(e2) {
10194
10200
  return this.plugins = this.plugins.concat(this.normalize([e2])), this;
10195
10201
  }
10196
10202
  };
10197
10203
  var nh = th;
10198
- th.default = th, eh.registerProcessor(th), Jp.registerProcessor(th);
10199
- let rh = td, oh = Fu, sh = Qu, ih = Nl, ah = Uu, ch = id, lh = Xd, uh = Od, dh = zp, ph = Fd, hh = Au, fh = Sp, mh = nh, gh = Ip, yh = Pd, wh = jd, vh = ru, bh = Cp;
10204
+ th.default = th, eh.registerProcessor(th), Zp.registerProcessor(th);
10205
+ let rh = td, oh = Fu, sh = Ju, ih = Nl, ah = Uu, ch = id, lh = Xd, uh = Od, dh = zp, ph = Fd, hh = Au, fh = Sp, mh = nh, gh = Ip, yh = Pd, vh = jd, wh = ru, bh = Cp;
10200
10206
  function D(...e2) {
10201
10207
  return 1 === e2.length && Array.isArray(e2[0]) && (e2 = e2[0]), new mh(e2);
10202
10208
  }
@@ -10210,7 +10216,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10210
10216
  return Object.defineProperty(r, "postcss", { get: () => (C2 || (C2 = r()), C2) }), r.process = function(e3, w3, C3) {
10211
10217
  return D([r(C3)]).process(e3, w3);
10212
10218
  }, r;
10213
- }, D.stringify = vh, D.parse = fh, D.fromJSON = lh, D.list = ph, D.comment = (e2) => new oh(e2), D.atRule = (e2) => new rh(e2), D.decl = (e2) => new ah(e2), D.rule = (e2) => new wh(e2), D.root = (e2) => new yh(e2), D.document = (e2) => new ch(e2), D.CssSyntaxError = ih, D.Declaration = ah, D.Container = sh, D.Processor = mh, D.Document = ch, D.Comment = oh, D.Warning = bh, D.AtRule = rh, D.Result = gh, D.Input = uh, D.Rule = wh, D.Root = yh, D.Node = hh, dh.registerPostcss(D);
10219
+ }, D.stringify = wh, D.parse = fh, D.fromJSON = lh, D.list = ph, D.comment = (e2) => new oh(e2), D.atRule = (e2) => new rh(e2), D.decl = (e2) => new ah(e2), D.rule = (e2) => new vh(e2), D.root = (e2) => new yh(e2), D.document = (e2) => new ch(e2), D.CssSyntaxError = ih, D.Declaration = ah, D.Container = sh, D.Processor = mh, D.Document = ch, D.Comment = oh, D.Warning = bh, D.AtRule = rh, D.Result = gh, D.Input = uh, D.Rule = vh, D.Root = yh, D.Node = hh, dh.registerPostcss(D);
10214
10220
  var Sh = D;
10215
10221
  D.default = D;
10216
10222
  const kh = Ou(Sh);
@@ -10240,7 +10246,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10240
10246
  function isUnmasked(e3) {
10241
10247
  return closestSelectorSafe(e3, X2);
10242
10248
  }
10243
- let Y2 = 100001, J2 = 0, Q2 = performance.now();
10249
+ let Y2 = 100001, Z2 = 0, J2 = performance.now();
10244
10250
  function genId(e3) {
10245
10251
  if (w2.hasNode(e3)) return w2.getId(e3);
10246
10252
  const C3 = Y2++;
@@ -10280,7 +10286,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10280
10286
  return await (async function serialize(w3) {
10281
10287
  if (w3 !== e2 && !w3.parentNode) return null;
10282
10288
  switch (await (async function maybeYield() {
10283
- J2++, (J2 % x2 === 0 || performance.now() - Q2 > M2) && (await yieldToMain(), Q2 = performance.now());
10289
+ Z2++, (Z2 % x2 === 0 || performance.now() - J2 > M2) && (await yieldToMain(), J2 = performance.now());
10284
10290
  })(), w3.nodeType) {
10285
10291
  case Node.DOCUMENT_NODE: {
10286
10292
  const e3 = genId(w3), C3 = [];
@@ -10330,21 +10336,153 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10330
10336
  } catch (e3) {
10331
10337
  return console.warn("[Sailfish] chunkSnapshot serialization error:", e3), null;
10332
10338
  }
10339
+ } }, Symbol.toStringTag, { value: "Module" })), Oh = /* @__PURE__ */ new Set(["menu", "menuitem", "menubar", "tooltip"]);
10340
+ let Lh = -1, _h = [];
10341
+ function collectHoverBases(e2, w2) {
10342
+ for (const C2 of e2.split(",")) if (-1 !== C2.indexOf(":hover")) for (const e3 of C2.split(/\s*[>+~]\s*|\s+/)) {
10343
+ if (-1 === e3.indexOf(":hover")) continue;
10344
+ const C3 = e3.replace(/:hover\b/g, "").replace(/::[a-zA-Z-]+/g, "").trim();
10345
+ C3 && w2.push(C3);
10346
+ }
10347
+ }
10348
+ function collectFromRules(e2, w2, C2) {
10349
+ if (!(C2 > 10)) for (let x2 = 0; x2 < e2.length; x2++) {
10350
+ const M2 = e2[x2], I2 = M2.selectorText;
10351
+ I2 && -1 !== I2.indexOf(":hover") && collectHoverBases(I2, w2);
10352
+ let _2 = null;
10353
+ try {
10354
+ _2 = M2.cssRules ?? null;
10355
+ } catch {
10356
+ _2 = null;
10357
+ }
10358
+ _2 && _2.length && collectFromRules(_2, w2, C2 + 1);
10359
+ }
10360
+ }
10361
+ function matchesHoverRule(e2) {
10362
+ const w2 = (function getHoverBaseSelectors() {
10363
+ const e3 = document.styleSheets;
10364
+ if (e3.length === Lh) return _h;
10365
+ Lh = e3.length;
10366
+ const w3 = [];
10367
+ for (let C2 = 0; C2 < e3.length; C2++) {
10368
+ let x2 = null;
10369
+ try {
10370
+ x2 = e3[C2].cssRules;
10371
+ } catch {
10372
+ continue;
10373
+ }
10374
+ x2 && collectFromRules(x2, w3, 0);
10375
+ }
10376
+ return _h = w3, w3;
10377
+ })();
10378
+ for (let C2 = 0; C2 < w2.length; C2++) try {
10379
+ if (e2.matches(w2[C2])) return true;
10380
+ } catch {
10381
+ }
10382
+ return false;
10383
+ }
10384
+ function hasHoverAffordance(e2, w2) {
10385
+ if (e2.hasAttribute("title") || e2.hasAttribute("data-tooltip") || e2.hasAttribute("aria-describedby")) return true;
10386
+ const C2 = e2.getAttribute("role");
10387
+ if (e2.hasAttribute("aria-haspopup") || C2 && Oh.has(C2)) return true;
10388
+ if (matchesHoverRule(e2)) return true;
10389
+ if (!w2) try {
10390
+ if ("function" == typeof window.getComputedStyle && "pointer" === window.getComputedStyle(e2).cursor) return true;
10391
+ } catch {
10392
+ }
10393
+ return false;
10394
+ }
10395
+ class TokenBucket {
10396
+ constructor(e2, w2, C2) {
10397
+ __publicField(this, "tokens");
10398
+ __publicField(this, "last");
10399
+ this.capacity = e2, this.refillPerSec = w2, this.tokens = e2, this.last = C2;
10400
+ }
10401
+ tryConsume(e2) {
10402
+ return this.tokens = Math.min(this.capacity, this.tokens + (e2 - this.last) / 1e3 * this.refillPerSec), this.last = e2, !(this.tokens < 1) && (this.tokens -= 1, true);
10403
+ }
10404
+ }
10405
+ let Ah = null;
10406
+ const Dh = Object.freeze(Object.defineProperty({ __proto__: null, installHoverDetection: function installHoverDetection(e2, w2) {
10407
+ if ("undefined" == typeof window || "undefined" == typeof document) return () => {
10408
+ };
10409
+ Ah && (Ah(), Ah = null);
10410
+ const C2 = Math.max(0, w2.dwellMs), x2 = Math.max(0, w2.cooldownMs ?? 3e3), M2 = w2.maxPerSession ?? 300, I2 = w2.maxPerSecond ?? 1, _2 = w2.maxDwellMs ?? 6e4, U2 = w2.maxAncestorDepth ?? 5, j2 = w2.strictAffordance ?? true, now2 = () => Date.now(), W2 = /* @__PURE__ */ new Map();
10411
+ let z2 = 0;
10412
+ const H2 = new TokenBucket(Math.max(10, I2), I2, now2());
10413
+ let K2 = null, X2 = 0, Y2 = false, Z2 = null, J2 = null;
10414
+ const reset = () => {
10415
+ null !== Z2 && (clearTimeout(Z2), Z2 = null), null !== J2 && (clearTimeout(J2), J2 = null), K2 = null, Y2 = false;
10416
+ }, emit2 = (w3, C3, I3) => {
10417
+ var _a2, _b, _c2;
10418
+ const _3 = ((_b = (_a2 = e2.mirror) == null ? void 0 : _a2.getId) == null ? void 0 : _b.call(_a2, w3)) ?? -1;
10419
+ !_3 || _3 <= 0 || ((e3, w4) => {
10420
+ if (z2 >= M2) return false;
10421
+ const C4 = W2.get(e3);
10422
+ if (void 0 !== C4 && w4 - C4 < x2) return false;
10423
+ if (!H2.tryConsume(w4)) return false;
10424
+ if (W2.delete(e3), W2.set(e3, w4), W2.size > 500) {
10425
+ const e4 = W2.keys().next().value;
10426
+ void 0 !== e4 && W2.delete(e4);
10427
+ }
10428
+ return z2 += 1, true;
10429
+ })(_3, I3) && ((_c2 = e2.addSailfishEvent) == null ? void 0 : _c2.call(e2, dt.SailfishCustom, { action: "hover", element_id: _3, started_at: Math.round(C3), ended_at: Math.round(I3), duration_ms: Math.max(0, Math.round(I3 - C3)) }));
10430
+ }, endHover = (e3) => {
10431
+ const w3 = K2, C3 = Y2, x3 = X2;
10432
+ reset(), w3 && C3 && "click" !== e3 && emit2(w3, x3, now2());
10433
+ }, onPointerOver = (e3) => {
10434
+ const w3 = e3.target;
10435
+ if (!(w3 instanceof Element)) return;
10436
+ const x3 = (function resolveHoverAffordance(e4, w4, C3) {
10437
+ let x4 = e4, M3 = 0;
10438
+ for (; x4 && M3 <= w4; ) {
10439
+ if (hasHoverAffordance(x4, C3)) return x4;
10440
+ x4 = x4.parentElement, M3++;
10441
+ }
10442
+ return null;
10443
+ })(w3, U2, j2);
10444
+ x3 ? x3 !== K2 && (K2 && endHover("switch"), ((e4) => {
10445
+ reset(), K2 = e4, X2 = now2(), Y2 = false, Z2 = setTimeout(() => {
10446
+ Z2 = null, K2 && (function stillHovering(e5) {
10447
+ try {
10448
+ return e5.matches(":hover");
10449
+ } catch {
10450
+ return true;
10451
+ }
10452
+ })(K2) ? (Y2 = true, J2 = setTimeout(() => {
10453
+ J2 = null, endHover("cap");
10454
+ }, Math.max(0, _2 - C2))) : reset();
10455
+ }, C2);
10456
+ })(x3)) : K2 && !K2.contains(w3) && endHover("leave");
10457
+ }, onPointerOut = (e3) => {
10458
+ const w3 = e3.relatedTarget;
10459
+ !K2 || w3 instanceof Node && K2.contains(w3) || endHover("leave");
10460
+ }, onPointerDown2 = (e3) => {
10461
+ const w3 = e3.target;
10462
+ K2 && w3 instanceof Node && (K2 === w3 || K2.contains(w3)) && endHover("click");
10463
+ }, onVisibility = () => {
10464
+ "hidden" === document.visibilityState && endHover("flush");
10465
+ }, Q2 = { capture: true, passive: true };
10466
+ document.addEventListener("pointerover", onPointerOver, Q2), document.addEventListener("pointerout", onPointerOut, Q2), document.addEventListener("pointerdown", onPointerDown2, Q2), document.addEventListener("visibilitychange", onVisibility, true), window.addEventListener("pagehide", onVisibility, true);
10467
+ const teardown = () => {
10468
+ endHover("flush"), reset(), document.removeEventListener("pointerover", onPointerOver, { capture: true }), document.removeEventListener("pointerout", onPointerOut, { capture: true }), document.removeEventListener("pointerdown", onPointerDown2, { capture: true }), document.removeEventListener("visibilitychange", onVisibility, true), window.removeEventListener("pagehide", onVisibility, true), Ah === teardown && (Ah = null);
10469
+ };
10470
+ return Ah = teardown, teardown;
10333
10471
  } }, Symbol.toStringTag, { value: "Module" }));
10334
10472
  function createBlobWorker(e2) {
10335
10473
  const w2 = new Blob([e2], { type: "application/javascript" }), C2 = URL.createObjectURL(w2), x2 = new Worker(C2);
10336
10474
  return URL.revokeObjectURL(C2), x2;
10337
10475
  }
10338
- let Oh = null, Lh = 1;
10339
- const _h = /* @__PURE__ */ new Map();
10476
+ let Ph = null, Nh = 1;
10477
+ const Fh = /* @__PURE__ */ new Map();
10340
10478
  function encodeBitmap(e2, w2, C2 = false) {
10341
- const x2 = Lh++;
10479
+ const x2 = Nh++;
10342
10480
  return new Promise((M2) => {
10343
- _h.set(x2, M2), (function getImgWorker() {
10344
- return Oh || (Oh = createBlobWorker("\nself.onmessage = async (e) => {\n const { id, bitmap, quality, wantBytes } = e.data;\n try {\n const off = new OffscreenCanvas(bitmap.width, bitmap.height);\n const ctx = off.getContext('2d');\n ctx.drawImage(bitmap, 0, 0);\n bitmap.close();\n const blob = await off.convertToBlob({ type: 'image/webp', quality });\n if (wantBytes) {\n const buf = await blob.arrayBuffer();\n self.postMessage({ id, size: buf.byteLength, bytes: buf }, [buf]);\n } else {\n self.postMessage({ id, size: blob.size });\n }\n } catch (err) {\n self.postMessage({ id, size: 0, error: String(err) });\n }\n};\n"), Oh.onmessage = (e3) => {
10345
- const w3 = _h.get(e3.data.id);
10346
- w3 && (_h.delete(e3.data.id), w3({ size: e3.data.size, bytes: e3.data.bytes }));
10347
- }), Oh;
10481
+ Fh.set(x2, M2), (function getImgWorker() {
10482
+ return Ph || (Ph = createBlobWorker("\nself.onmessage = async (e) => {\n const { id, bitmap, quality, wantBytes } = e.data;\n try {\n const off = new OffscreenCanvas(bitmap.width, bitmap.height);\n const ctx = off.getContext('2d');\n ctx.drawImage(bitmap, 0, 0);\n bitmap.close();\n const blob = await off.convertToBlob({ type: 'image/webp', quality });\n if (wantBytes) {\n const buf = await blob.arrayBuffer();\n self.postMessage({ id, size: buf.byteLength, bytes: buf }, [buf]);\n } else {\n self.postMessage({ id, size: blob.size });\n }\n } catch (err) {\n self.postMessage({ id, size: 0, error: String(err) });\n }\n};\n"), Ph.onmessage = (e3) => {
10483
+ const w3 = Fh.get(e3.data.id);
10484
+ w3 && (Fh.delete(e3.data.id), w3({ size: e3.data.size, bytes: e3.data.bytes }));
10485
+ }), Ph;
10348
10486
  })().postMessage({ id: x2, bitmap: e2, quality: w2, wantBytes: C2 }, [e2]);
10349
10487
  });
10350
10488
  }
@@ -10427,7 +10565,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10427
10565
  this.worker.terminate();
10428
10566
  }
10429
10567
  }
10430
- const Ah = { maxBytesPerSec: 524288, sustainMs: 3e3, maxVideoDrawsPerSec: 2, maxOpsPerFrame: 5e3 };
10568
+ const Bh = { maxBytesPerSec: 524288, sustainMs: 3e3, maxVideoDrawsPerSec: 2, maxOpsPerFrame: 5e3 };
10431
10569
  class CanvasGovernor {
10432
10570
  constructor(e2, w2) {
10433
10571
  __publicField(this, "thresholds");
@@ -10436,7 +10574,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10436
10574
  __publicField(this, "frameT", NaN);
10437
10575
  __publicField(this, "frameOps", 0);
10438
10576
  __publicField(this, "opsExceeded", false);
10439
- this.now = e2, this.thresholds = { ...Ah, ...w2 };
10577
+ this.now = e2, this.thresholds = { ...Bh, ...w2 };
10440
10578
  }
10441
10579
  addBytes(e2) {
10442
10580
  const w2 = this.now();
@@ -10526,35 +10664,35 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10526
10664
  this.scratch = null, this.scratchCtx = null;
10527
10665
  }
10528
10666
  }
10529
- const Dh = /^create[A-Z]/, Ph = /* @__PURE__ */ new Set(["getUniformLocation", "getExtension"]), Nh = /^(get(?!Extension$|UniformLocation$)|is[A-Z]|check|read|finish$|flush$)/;
10530
- let Fh = false;
10531
- const Bh = /* @__PURE__ */ new WeakMap();
10532
- let $h = null;
10667
+ const $h = /^create[A-Z]/, Uh = /* @__PURE__ */ new Set(["getUniformLocation", "getExtension"]), jh = /^(get(?!Extension$|UniformLocation$)|is[A-Z]|check|read|finish$|flush$)/;
10668
+ let Wh = false;
10669
+ const zh = /* @__PURE__ */ new WeakMap();
10670
+ let Gh = null;
10533
10671
  function texSourceToImageData(e2) {
10534
10672
  if ("undefined" != typeof ImageData && e2 instanceof ImageData) return e2;
10535
10673
  const w2 = e2, C2 = Number(w2.naturalWidth || w2.width) || 0, x2 = Number(w2.naturalHeight || w2.height) || 0;
10536
10674
  if (!C2 || !x2) return null;
10537
10675
  const M2 = (function texScratchCtx(e3, w3) {
10538
10676
  if ("undefined" == typeof document) return null;
10539
- if (!$h) {
10540
- $h = document.createElement("canvas");
10541
- const e4 = $h.getContext("2d");
10677
+ if (!Gh) {
10678
+ Gh = document.createElement("canvas");
10679
+ const e4 = Gh.getContext("2d");
10542
10680
  e4 && ignore2DContext(e4);
10543
10681
  }
10544
- $h.width === e3 && $h.height === w3 || ($h.width = e3, $h.height = w3);
10545
- const C3 = $h.getContext("2d");
10682
+ Gh.width === e3 && Gh.height === w3 || (Gh.width = e3, Gh.height = w3);
10683
+ const C3 = Gh.getContext("2d");
10546
10684
  return C3 && ignore2DContext(C3), C3;
10547
10685
  })(C2, x2);
10548
10686
  return M2 ? (M2.clearRect(0, 0, C2, x2), M2.drawImage(e2, 0, 0), M2.getImageData(0, 0, C2, x2)) : null;
10549
10687
  }
10550
- let Uh = null;
10688
+ let Vh = null;
10551
10689
  function setUntrackedGLContextNotifier(e2) {
10552
- Uh = e2;
10690
+ Vh = e2;
10553
10691
  }
10554
- let jh = null;
10555
- const Wh = /* @__PURE__ */ new Map();
10692
+ let Hh = null;
10693
+ const qh = /* @__PURE__ */ new Map();
10556
10694
  function setGLAutoAttach(e2) {
10557
- jh = e2, e2 && Wh.clear();
10695
+ Hh = e2, e2 && qh.clear();
10558
10696
  }
10559
10697
  class GLRecorder {
10560
10698
  constructor(e2, w2) {
@@ -10617,7 +10755,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10617
10755
  recordCall(e2, w2, C2) {
10618
10756
  if (this.sink instanceof DiscardSink) return this.sink.onOp(en), void (this.pendingSiteId = void 0);
10619
10757
  const x2 = performance.now(), M2 = this.now(), I2 = this.pendingSiteId;
10620
- if (this.pendingSiteId = void 0, (Dh.test(e2) || Ph.has(e2)) && C2 && "object" == typeof C2) {
10758
+ if (this.pendingSiteId = void 0, ($h.test(e2) || Uh.has(e2)) && C2 && "object" == typeof C2) {
10621
10759
  const x3 = this.nextId++;
10622
10760
  this.refs.set(C2, x3), this.sink.onOp({ t: M2, op: "__create", create: true, args: [e2, x3, ...w2.map((e3) => this.arg(e3, M2))] });
10623
10761
  } else {
@@ -10647,36 +10785,36 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10647
10785
  }
10648
10786
  }
10649
10787
  function attachGLRecorder(e2, w2, C2, x2) {
10650
- const M2 = Wh.get(e2);
10788
+ const M2 = qh.get(e2);
10651
10789
  if (M2) return M2.swapSink(C2), M2;
10652
10790
  const I2 = e2.getContext(w2);
10653
10791
  if (!I2) return null;
10654
10792
  const _2 = new GLRecorder(C2, x2);
10655
- return _2.rawCtx = I2, _2.bound = true, Bh.set(I2, _2), _2;
10793
+ return _2.rawCtx = I2, _2.bound = true, zh.set(I2, _2), _2;
10656
10794
  }
10657
10795
  function detachGLRecorderFromContext(e2) {
10658
- Bh.delete(e2);
10796
+ zh.delete(e2);
10659
10797
  }
10660
- const zh = 7340032, Gh = "__gpu";
10661
- let Vh = false, Hh = null, qh = null, Kh = false, Xh = false;
10798
+ const Kh = 7340032, Xh = "__gpu";
10799
+ let Yh = false, Zh = null, Jh = null, Qh = false, ef = false;
10662
10800
  function setGPUDeviceLostNotifier(e2) {
10663
- qh = e2, Kh = false, Xh = false;
10801
+ Jh = e2, Qh = false, ef = false;
10664
10802
  }
10665
- let Yh = null, nowFn = () => 0, Jh = 0, Qh = 3e6, Zh = false, ef = null, tf = null;
10666
- const nf = /* @__PURE__ */ new WeakMap(), rf = /* @__PURE__ */ new WeakMap(), of = /* @__PURE__ */ new WeakMap();
10803
+ let tf = null, nowFn = () => 0, nf = 0, rf = 3e6, of = false, sf = null, af = null;
10804
+ const cf = /* @__PURE__ */ new WeakMap(), lf = /* @__PURE__ */ new WeakMap(), uf = /* @__PURE__ */ new WeakMap();
10667
10805
  function emit(e2) {
10668
- Yh == null ? void 0 : Yh.onOp(e2);
10806
+ tf == null ? void 0 : tf.onOp(e2);
10669
10807
  }
10670
10808
  function intern(e2) {
10671
- let w2 = nf.get(e2);
10672
- return void 0 === w2 && (w2 = Qh++, nf.set(e2, w2)), w2;
10809
+ let w2 = cf.get(e2);
10810
+ return void 0 === w2 && (w2 = rf++, cf.set(e2, w2)), w2;
10673
10811
  }
10674
10812
  function deproxy(e2) {
10675
- return e2 && "object" == typeof e2 && of.has(e2) ? of.get(e2) : e2;
10813
+ return e2 && "object" == typeof e2 && uf.has(e2) ? uf.get(e2) : e2;
10676
10814
  }
10677
10815
  function deepDeproxy(e2) {
10678
10816
  if (!e2 || "object" != typeof e2) return e2;
10679
- if (of.has(e2)) return of.get(e2);
10817
+ if (uf.has(e2)) return uf.get(e2);
10680
10818
  if (ArrayBuffer.isView(e2) || e2 instanceof ArrayBuffer) return e2;
10681
10819
  if (Array.isArray(e2)) {
10682
10820
  let w3 = false;
@@ -10698,7 +10836,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10698
10836
  }
10699
10837
  return e2;
10700
10838
  }
10701
- const sf = function serializeGPUArg(e2) {
10839
+ const df = function serializeGPUArg(e2) {
10702
10840
  var _a2;
10703
10841
  if (null == e2) return null;
10704
10842
  switch (typeof e2) {
@@ -10713,17 +10851,17 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10713
10851
  return { $: "unsupported", kind: typeof e2 };
10714
10852
  }
10715
10853
  const w2 = deproxy(e2);
10716
- if (ArrayBuffer.isView(w2) || w2 instanceof ArrayBuffer) return w2.byteLength > zh ? { $: "unsupported", kind: "buffer-too-large" } : serializeTypedArray(w2);
10717
- const C2 = nf.get(w2);
10854
+ if (ArrayBuffer.isView(w2) || w2 instanceof ArrayBuffer) return w2.byteLength > Kh ? { $: "unsupported", kind: "buffer-too-large" } : serializeTypedArray(w2);
10855
+ const C2 = cf.get(w2);
10718
10856
  if (void 0 !== C2) return { $: "obj", id: C2 };
10719
10857
  try {
10720
10858
  const e3 = JSON.stringify(w2, (e4, w3) => {
10721
10859
  if (w3 && "object" == typeof w3) {
10722
- const e5 = deproxy(w3), C3 = nf.get(e5);
10860
+ const e5 = deproxy(w3), C3 = cf.get(e5);
10723
10861
  if (void 0 !== C3) return { __sfRef: C3 };
10724
10862
  if (ArrayBuffer.isView(e5)) {
10725
10863
  const w4 = e5;
10726
- if (w4.byteLength > zh) return { __sfUnsupported: "buffer-too-large" };
10864
+ if (w4.byteLength > Kh) return { __sfUnsupported: "buffer-too-large" };
10727
10865
  const C4 = Qt.findIndex((e6) => w4 instanceof e6);
10728
10866
  return C4 < 0 ? { __sfUnsupported: "typed-array-kind" } : { __sfTa: Array.from(w4), __sfK: C4 };
10729
10867
  }
@@ -10743,23 +10881,23 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10743
10881
  }
10744
10882
  function wrap(e2) {
10745
10883
  var _a2;
10746
- const w2 = rf.get(e2);
10884
+ const w2 = lf.get(e2);
10747
10885
  if (w2) return w2;
10748
10886
  "GPUDevice" === ((_a2 = e2.constructor) == null ? void 0 : _a2.name) && (function watchDeviceLost(e3) {
10749
10887
  const w3 = e3.lost;
10750
10888
  if (w3 && "function" == typeof w3.then) {
10751
- if (Xh && !Kh) {
10752
- Kh = true;
10889
+ if (ef && !Qh) {
10890
+ Qh = true;
10753
10891
  try {
10754
- qh == null ? void 0 : qh(false);
10892
+ Jh == null ? void 0 : Jh(false);
10755
10893
  } catch {
10756
10894
  }
10757
10895
  }
10758
10896
  w3.then((e4) => {
10759
- if (!(e4 && "destroyed" === e4.reason || Xh)) {
10760
- Xh = true;
10897
+ if (!(e4 && "destroyed" === e4.reason || ef)) {
10898
+ ef = true;
10761
10899
  try {
10762
- qh == null ? void 0 : qh(true);
10900
+ Jh == null ? void 0 : Jh(true);
10763
10901
  } catch {
10764
10902
  }
10765
10903
  }
@@ -10772,33 +10910,33 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10772
10910
  if ("symbol" == typeof w3) return x2;
10773
10911
  if ("function" == typeof x2) return (...C4) => {
10774
10912
  const M2 = performance.now(), I2 = C4.map(deepDeproxy), _2 = x2.apply(e3, I2);
10775
- if (Yh instanceof DiscardSink) return Yh.onOp(en), _2 && "object" == typeof _2 && "function" == typeof _2.then ? _2.then((e4) => e4 && "object" == typeof e4 && shouldProxyResult(e4) ? (intern(e4), wrap(e4)) : e4) : shouldProxyResult(_2) ? (intern(_2), wrap(_2)) : _2;
10776
- if (Yh) {
10913
+ if (tf instanceof DiscardSink) return tf.onOp(en), _2 && "object" == typeof _2 && "function" == typeof _2.then ? _2.then((e4) => e4 && "object" == typeof e4 && shouldProxyResult(e4) ? (intern(e4), wrap(e4)) : e4) : shouldProxyResult(_2) ? (intern(_2), wrap(_2)) : _2;
10914
+ if (tf) {
10777
10915
  const x3 = intern(e3);
10778
10916
  if (_2 && "object" == typeof _2 && "function" == typeof _2.then) {
10779
- const e4 = Qh++;
10780
- return emit({ t: nowFn(), op: Gh, objcall: true, args: [x3, String(w3), e4, ...C4.map(sf)] }), Jh += performance.now() - M2, _2.then((w4) => w4 && "object" == typeof w4 ? (nf.set(w4, e4), wrap(w4)) : w4);
10917
+ const e4 = rf++;
10918
+ return emit({ t: nowFn(), op: Xh, objcall: true, args: [x3, String(w3), e4, ...C4.map(df)] }), nf += performance.now() - M2, _2.then((w4) => w4 && "object" == typeof w4 ? (cf.set(w4, e4), wrap(w4)) : w4);
10781
10919
  }
10782
10920
  let I3 = 0;
10783
- return shouldProxyResult(_2) && (I3 = intern(_2)), emit({ t: nowFn(), op: Gh, objcall: true, args: [x3, String(w3), I3, ...C4.map(sf)] }), Jh += performance.now() - M2, shouldProxyResult(_2) ? wrap(_2) : _2;
10921
+ return shouldProxyResult(_2) && (I3 = intern(_2)), emit({ t: nowFn(), op: Xh, objcall: true, args: [x3, String(w3), I3, ...C4.map(df)] }), nf += performance.now() - M2, shouldProxyResult(_2) ? wrap(_2) : _2;
10784
10922
  }
10785
10923
  return _2 && "object" == typeof _2 && "function" == typeof _2.then ? _2.then((e4) => e4 && "object" == typeof e4 && shouldProxyResult(e4) ? (intern(e4), wrap(e4)) : e4) : shouldProxyResult(_2) ? (intern(_2), wrap(_2)) : _2;
10786
10924
  };
10787
10925
  if (shouldProxyResult(x2)) {
10788
- const C4 = nf.has(x2), M2 = intern(x2);
10789
- return C4 || !Yh || Yh instanceof DiscardSink || emit({ t: nowFn(), op: "__gpuprop", objcall: true, args: [intern(e3), String(w3), M2] }), wrap(x2);
10926
+ const C4 = cf.has(x2), M2 = intern(x2);
10927
+ return C4 || !tf || tf instanceof DiscardSink || emit({ t: nowFn(), op: "__gpuprop", objcall: true, args: [intern(e3), String(w3), M2] }), wrap(x2);
10790
10928
  }
10791
10929
  return x2;
10792
10930
  } });
10793
- return rf.set(e2, C2), of.set(C2, e2), C2;
10931
+ return lf.set(e2, C2), uf.set(C2, e2), C2;
10794
10932
  }
10795
10933
  function setGPUAutoAttach(e2) {
10796
- Hh = e2, e2 && (nowFn = e2.now, Yh || (Yh = new BufferSink(), Zh = false));
10934
+ Zh = e2, e2 && (nowFn = e2.now, tf || (tf = new BufferSink(), of = false));
10797
10935
  }
10798
- const af = ["video/webm;codecs=vp9", "video/webm;codecs=vp8", "video/webm", "video/mp4"];
10936
+ const pf = ["video/webm;codecs=vp9", "video/webm;codecs=vp8", "video/webm", "video/mp4"];
10799
10937
  function pickMime() {
10800
10938
  if ("undefined" == typeof MediaRecorder || "function" != typeof MediaRecorder.isTypeSupported) return null;
10801
- for (const e2 of af) try {
10939
+ for (const e2 of pf) try {
10802
10940
  if (MediaRecorder.isTypeSupported(e2)) return e2;
10803
10941
  } catch {
10804
10942
  }
@@ -10918,7 +11056,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10918
11056
  } catch {
10919
11057
  }
10920
11058
  }
10921
- const cf = 18e5;
11059
+ const hf = 18e5;
10922
11060
  class VideoCapture {
10923
11061
  constructor(e2, w2, C2, x2) {
10924
11062
  __publicField(this, "client", null);
@@ -10945,7 +11083,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10945
11083
  const e2 = this.canvas.width, w2 = this.canvas.height;
10946
11084
  if (!e2 || !w2) return this.failed = true, this.out.note("zero-size canvas — video capture unavailable"), false;
10947
11085
  this.client = new VideoEncoderClient({ onDecoderConfig: (e3, w3) => this.out.onInit(e3, w3), onChunk: (e3, w3, C2) => this.out.onChunk(C2, w3, e3), onError: (e3) => this.out.note(e3) });
10948
- return await this.client.configure({ width: e2, height: w2, bitrate: cf, codecs: ["avc1.42001f", "vp8", "vp09.00.10.08"] }) ? (this.configured = true, this.configuredW = e2, this.configuredH = w2, ((_a2 = this.opts) == null ? void 0 : _a2.intervalPaced) && (this.intervalId = setInterval(() => this.afterRender(this.now()), 50)), true) : (this.failed = true, this.out.note("no supported video codec"), this.client.terminate(), this.client = null, false);
11086
+ return await this.client.configure({ width: e2, height: w2, bitrate: hf, codecs: ["avc1.42001f", "vp8", "vp09.00.10.08"] }) ? (this.configured = true, this.configuredW = e2, this.configuredH = w2, ((_a2 = this.opts) == null ? void 0 : _a2.intervalPaced) && (this.intervalId = setInterval(() => this.afterRender(this.now()), 50)), true) : (this.failed = true, this.out.note("no supported video codec"), this.client.terminate(), this.client = null, false);
10949
11087
  }
10950
11088
  onInteraction(e2) {
10951
11089
  this.boostUntil = e2 + 1500, this.lastKey = -1 / 0;
@@ -10982,7 +11120,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10982
11120
  } catch {
10983
11121
  }
10984
11122
  if (this.stopped) return;
10985
- const x2 = new VideoEncoderClient({ onDecoderConfig: (e3, w3) => this.out.onInit(e3, w3), onChunk: (e3, w3, C3) => this.out.onChunk(C3, w3, e3), onError: (e3) => this.out.note(e3) }), M2 = await x2.configure({ width: e2, height: w2, bitrate: cf, codecs: ["avc1.42001f", "vp8", "vp09.00.10.08"] });
11123
+ const x2 = new VideoEncoderClient({ onDecoderConfig: (e3, w3) => this.out.onInit(e3, w3), onChunk: (e3, w3, C3) => this.out.onChunk(C3, w3, e3), onError: (e3) => this.out.note(e3) }), M2 = await x2.configure({ width: e2, height: w2, bitrate: hf, codecs: ["avc1.42001f", "vp8", "vp09.00.10.08"] });
10986
11124
  if (this.stopped || !M2) return x2.terminate(), void (M2 || this.out.note("encoder restart failed after resize — frames dropped until next resize"));
10987
11125
  this.client = x2, this.configuredW = e2, this.configuredH = w2, this.configured = true, this.forceKeyNext = true, this.lastFrame = -1 / 0, this.lastKey = -1 / 0;
10988
11126
  } finally {
@@ -11000,15 +11138,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11000
11138
  this.stopped || (this.stopped = true, null != this.intervalId && (clearInterval(this.intervalId), this.intervalId = null), this.client && (await this.client.stop(), this.client.terminate(), this.client = null));
11001
11139
  }
11002
11140
  }
11003
- const lf = /* @__PURE__ */ new WeakMap(), uf = /* @__PURE__ */ new Map();
11004
- let df = false, pf = null;
11141
+ const ff = /* @__PURE__ */ new WeakMap(), mf = /* @__PURE__ */ new Map();
11142
+ let gf = false, yf = null;
11005
11143
  function setWorkerAssociationNotifier(e2) {
11006
- pf = e2;
11144
+ yf = e2;
11007
11145
  }
11008
- const hf = 1048576, ff = { deviceClass: "desktop", sessionByteBudget: 256 * hf, maxConcurrentVideo: 4, governor: {}, preferMediaRecorder: false }, mf = { deviceClass: "mobile", sessionByteBudget: 96 * hf, maxConcurrentVideo: 2, governor: { maxBytesPerSec: 262144, maxOpsPerFrame: 3e3 }, preferMediaRecorder: false }, gf = { deviceClass: "mobile-lowend", sessionByteBudget: 48 * hf, maxConcurrentVideo: 1, governor: { maxBytesPerSec: 131072, maxOpsPerFrame: 2e3, maxVideoDrawsPerSec: 1 }, preferMediaRecorder: false };
11146
+ const vf = 1048576, wf = { deviceClass: "desktop", sessionByteBudget: 256 * vf, maxConcurrentVideo: 4, governor: {}, preferMediaRecorder: false }, bf = { deviceClass: "mobile", sessionByteBudget: 96 * vf, maxConcurrentVideo: 2, governor: { maxBytesPerSec: 262144, maxOpsPerFrame: 3e3 }, preferMediaRecorder: false }, Sf = { deviceClass: "mobile-lowend", sessionByteBudget: 48 * vf, maxConcurrentVideo: 1, governor: { maxBytesPerSec: 131072, maxOpsPerFrame: 2e3, maxVideoDrawsPerSec: 1 }, preferMediaRecorder: false };
11009
11147
  function resolveDeviceBudgets(e2) {
11010
11148
  const w2 = "undefined" != typeof navigator ? navigator : void 0;
11011
- if (!w2) return ff;
11149
+ if (!w2) return wf;
11012
11150
  const C2 = w2.deviceMemory, x2 = w2.hardwareConcurrency, M2 = "number" == typeof C2 && C2 <= 2, I2 = "number" == typeof x2 && x2 <= 4, _2 = (function isExplicitIOS(e3) {
11013
11151
  return /iPhone|iPad|iPod/.test(e3.userAgent ?? "");
11014
11152
  })(w2);
@@ -11017,7 +11155,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11017
11155
  return /Mobi|Android|iPhone|iPad|iPod/.test(e3.userAgent ?? "") || (function isIPadDesktopUA(e4) {
11018
11156
  return /Macintosh/.test(e4.userAgent ?? "") && (e4.maxTouchPoints ?? 0) > 1;
11019
11157
  })(e3);
11020
- })(w2) ? M2 && I2 ? gf : mf : M2 && I2 ? gf : ff, _2 ? { ...U2, preferMediaRecorder: true } : U2;
11158
+ })(w2) ? M2 && I2 ? Sf : bf : M2 && I2 ? Sf : wf, _2 ? { ...U2, preferMediaRecorder: true } : U2;
11021
11159
  }
11022
11160
  function decayBytes(e2, w2, C2, x2) {
11023
11161
  return x2 <= 0 || w2 <= 0 || C2 <= 0 ? Math.max(0, e2) : Math.max(0, e2 - x2 * (w2 / C2));
@@ -11040,12 +11178,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11040
11178
  return this.max - this.used;
11041
11179
  }
11042
11180
  }
11043
- let yf = null;
11181
+ let kf = null;
11044
11182
  const now = () => Date.now(), encodeImage = (e2) => encodeBitmap(e2, 0.85, true);
11045
11183
  function noteOnce(e2) {
11046
11184
  var _a2;
11047
- if (yf && !yf.notes.has(e2)) {
11048
- yf.notes.add(e2);
11185
+ if (kf && !kf.notes.has(e2)) {
11186
+ kf.notes.add(e2);
11049
11187
  try {
11050
11188
  (_a2 = console.debug) == null ? void 0 : _a2.call(console, "[Sailfish][canvas]", e2);
11051
11189
  } catch {
@@ -11053,13 +11191,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11053
11191
  }
11054
11192
  }
11055
11193
  function emitEvent(e2) {
11056
- if (yf) try {
11057
- yf.deps.addSailfishEvent(e2);
11194
+ if (kf) try {
11195
+ kf.deps.addSailfishEvent(e2);
11058
11196
  } catch {
11059
11197
  }
11060
11198
  }
11061
11199
  function sendFrame(e2, w2, C2, x2, M2 = Date.now()) {
11062
- const I2 = yf;
11200
+ const I2 = kf;
11063
11201
  if (!I2) return;
11064
11202
  const _2 = null == x2 ? 0 : x2.byteLength;
11065
11203
  if (_2 > 8388608) return void noteOnce(`oversize ${w2} frame dropped (${_2}B > 8MiB)`);
@@ -11080,7 +11218,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11080
11218
  function markDirty(e2) {
11081
11219
  e2.dirty = true, e2.everDirty = true, e2.pumpScheduled || (e2.pumpScheduled = true, queueMicrotask(() => (function pumpCanvas(e3) {
11082
11220
  var _a2, _b, _c2, _d2, _e2;
11083
- if (e3.pumpScheduled = false, !yf || e3.stopped || !e3.dirty) return;
11221
+ if (e3.pumpScheduled = false, !kf || e3.stopped || !e3.dirty) return;
11084
11222
  if (e3.contextLost) return void (e3.dirty = false);
11085
11223
  e3.dirty = false;
11086
11224
  const w2 = now();
@@ -11141,9 +11279,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11141
11279
  e2.demoted = true, flushBatch(e2), (_a2 = e2.keyframes) == null ? void 0 : _a2.takeKeyframe(now());
11142
11280
  const C2 = new DiscardSink(() => markDirty(e2));
11143
11281
  if (e2.recorder2d && e2.recorder2d.swapSink(C2), e2.recorderGL && e2.recorderGL.swapSink(C2), e2.recorderGPU && (function swapGPUSink(e3) {
11144
- Yh && (Yh = e3);
11145
- })(C2), !(yf == null ? void 0 : yf.budgets.preferMediaRecorder) || !tryStartMediaRecorder(e2, w2)) if (VideoCapture.supported()) {
11146
- if (!tryAcquireVideoSlot(e2)) return e2.mode = "none", noteOnce(`video-encoder cap (${(yf == null ? void 0 : yf.budgets.maxConcurrentVideo) ?? 4}) reached — canvas kept on keyframes`), void emitEvent({ op: "mode", canvasId: e2.canvasId, mode: "none", reason: `${w2} (video-encoder cap reached — keyframes only)` });
11282
+ tf && (tf = e3);
11283
+ })(C2), !(kf == null ? void 0 : kf.budgets.preferMediaRecorder) || !tryStartMediaRecorder(e2, w2)) if (VideoCapture.supported()) {
11284
+ if (!tryAcquireVideoSlot(e2)) return e2.mode = "none", noteOnce(`video-encoder cap (${(kf == null ? void 0 : kf.budgets.maxConcurrentVideo) ?? 4}) reached — canvas kept on keyframes`), void emitEvent({ op: "mode", canvasId: e2.canvasId, mode: "none", reason: `${w2} (video-encoder cap reached — keyframes only)` });
11147
11285
  e2.mode = "video", emitEvent({ op: "mode", canvasId: e2.canvasId, mode: "video", reason: w2 });
11148
11286
  const C3 = makeVideo(e2, false);
11149
11287
  e2.video = C3, C3.start().then((w3) => {
@@ -11158,7 +11296,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11158
11296
  });
11159
11297
  }
11160
11298
  function maybeInitialKeyframe(e2) {
11161
- const w2 = yf;
11299
+ const w2 = kf;
11162
11300
  if (w2 && e2.keyframes && !(function wasPreAttachMaskUsed(e3) {
11163
11301
  return !!un || !!e3 && ln.has(e3);
11164
11302
  })(e2.canvas) && w2.preExisting.has(e2.canvas)) {
@@ -11170,21 +11308,21 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11170
11308
  }
11171
11309
  }
11172
11310
  function tryAcquireVideoSlot(e2) {
11173
- const w2 = yf;
11311
+ const w2 = kf;
11174
11312
  return !!w2 && (!!e2.hasVideoSlot || !!w2.videoSlots.acquire() && (e2.hasVideoSlot = true, true));
11175
11313
  }
11176
11314
  function releaseVideoSlot(e2) {
11177
- e2.hasVideoSlot && (e2.hasVideoSlot = false, yf == null ? void 0 : yf.videoSlots.release());
11315
+ e2.hasVideoSlot && (e2.hasVideoSlot = false, kf == null ? void 0 : kf.videoSlots.release());
11178
11316
  }
11179
11317
  function makeVideo(e2, w2) {
11180
- return new VideoCapture(e2.canvas, now, { onInit: (w3, C2) => sendFrame(e2, "video-init", { codec: w3, description: C2 ? bytesToBase64(C2) : null }, null), onChunk: (w3, C2, x2) => sendFrame(e2, "video-chunk", { key: w3, timestampUs: C2 }, x2), note: noteOnce, isTransportSaturated: (yf == null ? void 0 : yf.deps.isTransportSaturated) ? () => {
11318
+ return new VideoCapture(e2.canvas, now, { onInit: (w3, C2) => sendFrame(e2, "video-init", { codec: w3, description: C2 ? bytesToBase64(C2) : null }, null), onChunk: (w3, C2, x2) => sendFrame(e2, "video-chunk", { key: w3, timestampUs: C2 }, x2), note: noteOnce, isTransportSaturated: (kf == null ? void 0 : kf.deps.isTransportSaturated) ? () => {
11181
11319
  var _a2, _b;
11182
- return !!((_b = yf == null ? void 0 : (_a2 = yf.deps).isTransportSaturated) == null ? void 0 : _b.call(_a2));
11320
+ return !!((_b = kf == null ? void 0 : (_a2 = kf.deps).isTransportSaturated) == null ? void 0 : _b.call(_a2));
11183
11321
  } : void 0 }, { intervalPaced: w2 });
11184
11322
  }
11185
11323
  function tryStartMediaRecorder(e2, w2) {
11186
11324
  if (!MediaRecorderCapture.supported()) return false;
11187
- if (!tryAcquireVideoSlot(e2)) return noteOnce(`video-encoder cap (${(yf == null ? void 0 : yf.budgets.maxConcurrentVideo) ?? 4}) reached — canvas kept on keyframes`), false;
11325
+ if (!tryAcquireVideoSlot(e2)) return noteOnce(`video-encoder cap (${(kf == null ? void 0 : kf.budgets.maxConcurrentVideo) ?? 4}) reached — canvas kept on keyframes`), false;
11188
11326
  const C2 = (function makeMediaRecorder(e3) {
11189
11327
  return new MediaRecorderCapture(e3.canvas, { onInit: (w3, C3, x2) => sendFrame(e3, "video-init", { codec: "mediarecorder", mimeType: w3, w: C3, h: x2 }, null), onChunk: (w3, C3) => sendFrame(e3, "video-chunk", { codec: "mediarecorder", seq: w3 }, C3), note: noteOnce });
11190
11328
  })(e2);
@@ -11194,7 +11332,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11194
11332
  }
11195
11333
  function baseController(e2, w2, C2, x2, M2 = "normal") {
11196
11334
  var _a2;
11197
- return { canvas: e2, canvasId: w2, contextType: C2, mode: x2, privacyMode: M2, seq: 0, dirty: false, everDirty: false, pumpScheduled: false, flushTimer: null, stopped: false, demoted: false, hasVideoSlot: false, contextLost: false, taintEmitted: false, lastW: e2.width, lastH: e2.height, removeContextLossListeners: null, governor: new CanvasGovernor(now, (_a2 = yf == null ? void 0 : yf.budgets) == null ? void 0 : _a2.governor), encoder: null, batchStart: 0, flushChain: Promise.resolve(), keyframes: null, video: null, mediaRecorder: null, recorder2d: null, recorderGL: null, recorderGPU: null, worker: null, workerDone: null, removeWorkerListener: null, pixelSuppressed: false };
11335
+ return { canvas: e2, canvasId: w2, contextType: C2, mode: x2, privacyMode: M2, seq: 0, dirty: false, everDirty: false, pumpScheduled: false, flushTimer: null, stopped: false, demoted: false, hasVideoSlot: false, contextLost: false, taintEmitted: false, lastW: e2.width, lastH: e2.height, removeContextLossListeners: null, governor: new CanvasGovernor(now, (_a2 = kf == null ? void 0 : kf.budgets) == null ? void 0 : _a2.governor), encoder: null, batchStart: 0, flushChain: Promise.resolve(), keyframes: null, video: null, mediaRecorder: null, recorder2d: null, recorderGL: null, recorderGPU: null, worker: null, workerDone: null, removeWorkerListener: null, pixelSuppressed: false };
11198
11336
  }
11199
11337
  function dpr() {
11200
11338
  return "undefined" != typeof window ? window.devicePixelRatio : 1;
@@ -11225,23 +11363,23 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11225
11363
  return { recordSsn: e2.recordSsn, recordCreditCardInfo: e2.recordCreditCardInfo, recordDob: e2.recordDob };
11226
11364
  }
11227
11365
  function classify(e2) {
11228
- return yf ? classifyCanvasPrivacy(e2, yf.privacySettings) : "normal";
11366
+ return kf ? classifyCanvasPrivacy(e2, kf.privacySettings) : "normal";
11229
11367
  }
11230
11368
  function makeTextRedactor(e2) {
11231
11369
  if ("redact" === e2) return (e3) => redactCanvasText(e3, "redact", {});
11232
11370
  if ("normal" === e2 && (function contentDetectionActive() {
11233
- const e3 = yf == null ? void 0 : yf.contentFlags;
11371
+ const e3 = kf == null ? void 0 : kf.contentFlags;
11234
11372
  return !!e3 && (false === e3.recordCreditCardInfo || false === e3.recordSsn || false === e3.recordDob);
11235
11373
  })()) {
11236
- const e3 = yf.contentFlags;
11374
+ const e3 = kf.contentFlags;
11237
11375
  return (w2) => redactCanvasText(w2, "normal", e3);
11238
11376
  }
11239
11377
  }
11240
11378
  function emitMasked(e2, w2) {
11241
- const C2 = yf ? (function suppressReason(e3, w3) {
11379
+ const C2 = kf ? (function suppressReason(e3, w3) {
11242
11380
  if (!closestSafe(e3, w3.unmaskSelector)) return closestSafe(e3, w3.blockSelector) ? "block" : closestSafe(e3, maskCanvasSelector(w3)) ? "mask" : void 0;
11243
- })(e2, yf.privacySettings) : void 0, x2 = { op: "masked", canvasId: w2 };
11244
- C2 && (x2.reason = C2), emitEvent(x2), yf == null ? void 0 : yf.suppressed.add(e2);
11381
+ })(e2, kf.privacySettings) : void 0, x2 = { op: "masked", canvasId: w2 };
11382
+ C2 && (x2.reason = C2), emitEvent(x2), kf == null ? void 0 : kf.suppressed.add(e2);
11245
11383
  }
11246
11384
  function escalateRedactIfPixelText(e2, w2) {
11247
11385
  return "redact" !== e2 ? e2 : "webgl" === w2 || "webgl2" === w2 || "experimental-webgl" === w2 || "webgpu" === w2 || "worker" === w2 ? (noteOnce(`redact canvas with pixel-only text (${w2}) — escalated to suppress`), "suppress") : e2;
@@ -11250,10 +11388,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11250
11388
  return new Promise((w2) => {
11251
11389
  let C2 = 0;
11252
11390
  const attempt = () => {
11253
- if (!yf || yf.stopped) return w2(null);
11391
+ if (!kf || kf.stopped) return w2(null);
11254
11392
  let x2 = -1;
11255
11393
  try {
11256
- x2 = yf.deps.mirror.getId(e2);
11394
+ x2 = kf.deps.mirror.getId(e2);
11257
11395
  } catch {
11258
11396
  }
11259
11397
  return "number" == typeof x2 && x2 >= 0 ? w2(String(x2)) : ++C2 > 30 ? (noteOnce("canvas never received an rrweb mirror id — not recorded"), w2(null)) : void setTimeout(attempt, 300);
@@ -11262,11 +11400,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11262
11400
  });
11263
11401
  }
11264
11402
  function rearmCanvas(e2) {
11265
- const w2 = yf;
11403
+ const w2 = kf;
11266
11404
  w2 && !w2.stopped && (w2.handled.delete(e2), w2.suppressed.delete(e2), considerCanvas(e2));
11267
11405
  }
11268
11406
  function reevaluateAllMasking() {
11269
- const e2 = yf;
11407
+ const e2 = kf;
11270
11408
  if (e2 && !e2.stopped) {
11271
11409
  for (const w2 of [...e2.controllers.values()]) {
11272
11410
  if (w2.stopped) continue;
@@ -11288,7 +11426,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11288
11426
  }
11289
11427
  }
11290
11428
  function onCanvasRemoved(e2) {
11291
- const w2 = yf;
11429
+ const w2 = kf;
11292
11430
  if (!w2 || w2.stopped) return;
11293
11431
  if (e2.isConnected) return;
11294
11432
  const C2 = w2.controllers.get(e2);
@@ -11299,7 +11437,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11299
11437
  w2.handled.delete(e2), w2.suppressed.delete(e2);
11300
11438
  }
11301
11439
  function considerCanvas(e2) {
11302
- const w2 = yf;
11440
+ const w2 = kf;
11303
11441
  if (!w2 || w2.stopped || w2.handled.has(e2)) return;
11304
11442
  if (!e2.isConnected) return (function releaseAutoRecorder(e3) {
11305
11443
  const w3 = bn.get(e3);
@@ -11310,12 +11448,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11310
11448
  null != w3 && emitMasked(e2, w3);
11311
11449
  });
11312
11450
  const x2 = (function getWorkerForCanvas(e3) {
11313
- return uf.get(e3);
11451
+ return mf.get(e3);
11314
11452
  })(e2), M2 = (function getContextInfo(e3) {
11315
11453
  return Sn.get(e3);
11316
11454
  })(e2);
11317
11455
  (x2 || M2) && (w2.handled.add(e2), resolveCanvasId(e2).then((w3) => {
11318
- if (null != w3 && yf && !yf.stopped) if (x2) {
11456
+ if (null != w3 && kf && !kf.stopped) if (x2) {
11319
11457
  if ("redact" === C2) return noteOnce("redact worker/offscreen canvas — escalated to suppress (no DOM to redact)"), void emitMasked(e2, w3);
11320
11458
  !(async function buildWorkerController(e3, w4, C3) {
11321
11459
  const x3 = await (function pingWorkerShim(e4, w5 = 500) {
@@ -11334,7 +11472,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11334
11472
  finish(false);
11335
11473
  }
11336
11474
  });
11337
- })(C3), M3 = yf;
11475
+ })(C3), M3 = kf;
11338
11476
  if (!M3 || M3.stopped) return;
11339
11477
  if (x3) {
11340
11478
  const x4 = baseController(e3, w4, "worker", "commands");
@@ -11348,7 +11486,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11348
11486
  else if ("sf-record-noctx" === (w5 == null ? void 0 : w5.type)) {
11349
11487
  if (!x4.stopped && "commands" === x4.mode && !x4.video && !x4.mediaRecorder) {
11350
11488
  const e5 = VideoCapture.supported() && tryAcquireVideoSlot(x4);
11351
- if (VideoCapture.supported() && !e5 && noteOnce(`video-encoder cap (${(yf == null ? void 0 : yf.budgets.maxConcurrentVideo) ?? 4}) reached — worker canvas kept on keyframes`), e5) {
11489
+ if (VideoCapture.supported() && !e5 && noteOnce(`video-encoder cap (${(kf == null ? void 0 : kf.budgets.maxConcurrentVideo) ?? 4}) reached — worker canvas kept on keyframes`), e5) {
11352
11490
  x4.mode = "video", emitEvent({ op: "mode", canvasId: x4.canvasId, mode: "video", reason: "worker-no-2d-context" });
11353
11491
  const e6 = makeVideo(x4, true);
11354
11492
  x4.video = e6, e6.start().then((e7) => {
@@ -11373,7 +11511,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11373
11511
  I2.video = e4, e4.start().then((e5) => {
11374
11512
  e5 || I2.stopped || (I2.video = null, releaseVideoSlot(I2), I2.mode = "none", emitEvent({ op: "mode", canvasId: I2.canvasId, mode: "none", reason: "video-start-failed" }));
11375
11513
  });
11376
- } else VideoCapture.supported() ? noteOnce(`video-encoder cap (${(yf == null ? void 0 : yf.budgets.maxConcurrentVideo) ?? 4}) reached — worker placeholder canvas not captured`) : tryStartMediaRecorder(I2, "worker-no-shim") || noteOnce("worker canvas without shim and no usable video backend — not captured");
11514
+ } else VideoCapture.supported() ? noteOnce(`video-encoder cap (${(kf == null ? void 0 : kf.budgets.maxConcurrentVideo) ?? 4}) reached — worker placeholder canvas not captured`) : tryStartMediaRecorder(I2, "worker-no-shim") || noteOnce("worker canvas without shim and no usable video backend — not captured");
11377
11515
  emitStart(I2);
11378
11516
  })(e2, w3, x2);
11379
11517
  } else if ("2d" === M2.type) build2DController(e2, w3, null, C2);
@@ -11381,7 +11519,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11381
11519
  const x3 = escalateRedactIfPixelText(C2, M2.type);
11382
11520
  if ("suppress" === x3) return void emitMasked(e2, w3);
11383
11521
  !(function buildGLController(e3, w4, C3, x4, M3 = "normal") {
11384
- const I2 = yf;
11522
+ const I2 = kf;
11385
11523
  if (!I2 || I2.stopped) return;
11386
11524
  const _2 = "experimental-webgl" === C3 ? "webgl" : C3;
11387
11525
  if ("suppress" === escalateRedactIfPixelText(M3, _2)) return void emitMasked(e3, w4);
@@ -11396,22 +11534,22 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11396
11534
  const x3 = escalateRedactIfPixelText(C2, "webgpu");
11397
11535
  if ("suppress" === x3) return void emitMasked(e2, w3);
11398
11536
  !(function buildGPUController(e3, w4, C3 = "normal") {
11399
- const x4 = yf;
11537
+ const x4 = kf;
11400
11538
  if (!x4 || x4.stopped) return;
11401
11539
  if ("suppress" === escalateRedactIfPixelText(C3, "webgpu")) return void emitMasked(e3, w4);
11402
11540
  const M3 = baseController(e3, w4, "webgpu", "commands", C3);
11403
11541
  M3.encoder = new CommandEncoder();
11404
11542
  const I2 = (function attachGPURecorder(e4, w5, C4) {
11405
- if (ef !== e4 || !Yh) return null;
11406
- tf = e4, nowFn = C4;
11407
- const x5 = Yh;
11408
- if (Yh = w5, x5 instanceof BufferSink) {
11543
+ if (sf !== e4 || !tf) return null;
11544
+ af = e4, nowFn = C4;
11545
+ const x5 = tf;
11546
+ if (tf = w5, x5 instanceof BufferSink) {
11409
11547
  for (const e5 of x5.ops) w5.onOp(e5);
11410
11548
  for (const e5 of x5.notes) w5.note(e5);
11411
11549
  }
11412
11550
  return { detach() {
11413
- Yh = null, tf = null, ef = null;
11414
- }, cpuMs: () => Jh };
11551
+ tf = null, af = null, sf = null;
11552
+ }, cpuMs: () => nf };
11415
11553
  })(e3, makeCommandSink(M3), now);
11416
11554
  I2 || (M3.mode = "none", noteOnce("WebGPU recorder not armed for this canvas — nothing recorded"));
11417
11555
  M3.recorderGPU = I2, M3.keyframes = makeKeyframes(M3), (function installGPUContextLossHandling(e4) {
@@ -11434,12 +11572,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11434
11572
  })(e2, w3, x3);
11435
11573
  } else {
11436
11574
  const C3 = baseController(e2, w3, "unknown", "none");
11437
- yf.controllers.set(e2, C3), emitStart(C3), noteOnce(`unsupported context type "${M2.type}" — not captured`);
11575
+ kf.controllers.set(e2, C3), emitStart(C3), noteOnce(`unsupported context type "${M2.type}" — not captured`);
11438
11576
  }
11439
11577
  }));
11440
11578
  }
11441
11579
  function build2DController(e2, w2, C2, x2 = "normal") {
11442
- const M2 = yf;
11580
+ const M2 = kf;
11443
11581
  if (!M2 || M2.stopped) return;
11444
11582
  const I2 = baseController(e2, w2, "2d", "commands", x2);
11445
11583
  I2.encoder = new CommandEncoder();
@@ -11488,7 +11626,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11488
11626
  };
11489
11627
  }
11490
11628
  function onUntracked2D(e2) {
11491
- const w2 = yf;
11629
+ const w2 = kf;
11492
11630
  if (!w2 || w2.stopped || w2.seenContexts.has(e2)) return;
11493
11631
  w2.seenContexts.add(e2);
11494
11632
  const C2 = e2.canvas;
@@ -11505,11 +11643,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11505
11643
  return _2.bound = true, fn.set(e3, _2), _2;
11506
11644
  })(e2, new BufferSink(), now, "cas", encodeImage, { retainAssets: false });
11507
11645
  resolveCanvasId(C2).then((w3) => {
11508
- null != w3 && yf && !yf.stopped ? build2DController(C2, w3, M2, x2) : detachRecorderFromContext(e2);
11646
+ null != w3 && kf && !kf.stopped ? build2DController(C2, w3, M2, x2) : detachRecorderFromContext(e2);
11509
11647
  });
11510
11648
  }
11511
11649
  function onUntrackedGL(e2) {
11512
- const w2 = yf;
11650
+ const w2 = kf;
11513
11651
  if (!w2 || w2.stopped || w2.seenContexts.has(e2)) return;
11514
11652
  w2.seenContexts.add(e2);
11515
11653
  const C2 = e2.canvas;
@@ -11523,17 +11661,17 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11523
11661
  w2.handled.add(C2);
11524
11662
  const I2 = M2, _2 = new BufferSink(), U2 = (function attachGLRecorderToContext(e3, w3, C3) {
11525
11663
  const x3 = new GLRecorder(w3, C3);
11526
- return x3.rawCtx = e3, x3.bound = true, Bh.set(e3, x3), x3;
11664
+ return x3.rawCtx = e3, x3.bound = true, zh.set(e3, x3), x3;
11527
11665
  })(e2, _2, now);
11528
11666
  resolveCanvasId(C2).then((w3) => {
11529
- if (null == w3 || !yf || yf.stopped) return void detachGLRecorderFromContext(e2);
11530
- const M3 = yf, _3 = baseController(C2, w3, I2, "commands", x2);
11667
+ if (null == w3 || !kf || kf.stopped) return void detachGLRecorderFromContext(e2);
11668
+ const M3 = kf, _3 = baseController(C2, w3, I2, "commands", x2);
11531
11669
  _3.encoder = new CommandEncoder(), U2.swapSink(makeCommandSink(_3)), _3.recorderGL = U2, _3.keyframes = makeKeyframes(_3), installGLContextLossHandling(_3), M3.controllers.set(C2, _3), emitStart(_3), maybeInitialKeyframe(_3);
11532
11670
  });
11533
11671
  }
11534
11672
  function teardownController(e2) {
11535
11673
  var _a2, _b, _c2, _d2, _e2, _f, _g;
11536
- if (e2.stopped) yf == null ? void 0 : yf.controllers.delete(e2.canvas);
11674
+ if (e2.stopped) kf == null ? void 0 : kf.controllers.delete(e2.canvas);
11537
11675
  else {
11538
11676
  e2.stopped = true;
11539
11677
  try {
@@ -11580,7 +11718,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11580
11718
  (_g = e2.recorderGPU) == null ? void 0 : _g.detach();
11581
11719
  } catch {
11582
11720
  }
11583
- yf == null ? void 0 : yf.controllers.delete(e2.canvas);
11721
+ kf == null ? void 0 : kf.controllers.delete(e2.canvas);
11584
11722
  }
11585
11723
  }
11586
11724
  function settleOrTimeout(e2, w2) {
@@ -11622,15 +11760,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11622
11760
  releaseVideoSlot(e2), emitEvent({ op: "stop", canvasId: e2.canvasId });
11623
11761
  }
11624
11762
  }
11625
- const wf = { initState(e2) {
11626
- yf = { deps: e2, maskSelector: ".sailfishSanitize, [data-sf-mask]", privacySettings: derivePrivacySettings(e2.settings), contentFlags: deriveContentFlags(e2.settings), redactStyle: resolveRedactStyle(Vt, e2.settings.canvasRedactStyle), budgets: resolveDeviceBudgets(), controllers: /* @__PURE__ */ new Map(), handled: /* @__PURE__ */ new WeakSet(), suppressed: /* @__PURE__ */ new Set(), preExisting: /* @__PURE__ */ new WeakSet(), seenContexts: /* @__PURE__ */ new WeakSet(), observer: null, removeListeners: [], totalBytes: 0, budgetExceeded: false, lastBudgetTickMs: 0, notes: /* @__PURE__ */ new Set(), stopped: false, videoSlots: new VideoSlotPool(resolveDeviceBudgets().maxConcurrentVideo) };
11763
+ const Cf = { initState(e2) {
11764
+ kf = { deps: e2, maskSelector: ".sailfishSanitize, [data-sf-mask]", privacySettings: derivePrivacySettings(e2.settings), contentFlags: deriveContentFlags(e2.settings), redactStyle: resolveRedactStyle(Vt, e2.settings.canvasRedactStyle), budgets: resolveDeviceBudgets(), controllers: /* @__PURE__ */ new Map(), handled: /* @__PURE__ */ new WeakSet(), suppressed: /* @__PURE__ */ new Set(), preExisting: /* @__PURE__ */ new WeakSet(), seenContexts: /* @__PURE__ */ new WeakSet(), observer: null, removeListeners: [], totalBytes: 0, budgetExceeded: false, lastBudgetTickMs: 0, notes: /* @__PURE__ */ new Set(), stopped: false, videoSlots: new VideoSlotPool(resolveDeviceBudgets().maxConcurrentVideo) };
11627
11765
  }, addController(e2, w2, C2 = "normal") {
11628
11766
  const x2 = baseController(e2, w2, "2d", "commands", C2);
11629
- return yf.controllers.set(e2, x2), x2;
11767
+ return kf.controllers.set(e2, x2), x2;
11630
11768
  }, classify: (e2) => classify(e2), makeTextRedactor: (e2) => makeTextRedactor(e2), reevaluate() {
11631
11769
  reevaluateAllMasking();
11632
- }, escalate: (e2, w2) => escalateRedactIfPixelText(e2, w2), isTracked: (e2) => !!(yf == null ? void 0 : yf.controllers.get(e2)), isSuppressed: (e2) => !!(yf == null ? void 0 : yf.suppressed.has(e2)), markSuppressed(e2) {
11633
- yf == null ? void 0 : yf.handled.add(e2), yf == null ? void 0 : yf.suppressed.add(e2);
11770
+ }, escalate: (e2, w2) => escalateRedactIfPixelText(e2, w2), isTracked: (e2) => !!(kf == null ? void 0 : kf.controllers.get(e2)), isSuppressed: (e2) => !!(kf == null ? void 0 : kf.suppressed.has(e2)), markSuppressed(e2) {
11771
+ kf == null ? void 0 : kf.handled.add(e2), kf == null ? void 0 : kf.suppressed.add(e2);
11634
11772
  }, controllerPrivacy: (e2) => ({ mode: e2.privacyMode, hasKeyframes: null != e2.keyframes }), tryDemote(e2) {
11635
11773
  maybeDemote(e2);
11636
11774
  }, emitResize(e2) {
@@ -11638,15 +11776,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11638
11776
  }, build2DWithFakeRecorder(e2, w2, C2) {
11639
11777
  const x2 = { swapSink: () => {
11640
11778
  }, textRedactor: void 0, rawCtx: {} };
11641
- return build2DController(e2, w2, x2, C2), { ctl: yf == null ? void 0 : yf.controllers.get(e2), redactor: x2.textRedactor };
11779
+ return build2DController(e2, w2, x2, C2), { ctl: kf == null ? void 0 : kf.controllers.get(e2), redactor: x2.textRedactor };
11642
11780
  }, demote(e2, w2 = "bytes") {
11643
11781
  demote(e2, w2);
11644
11782
  }, teardown(e2) {
11645
11783
  teardownController(e2);
11646
- }, slotsInUse: () => (yf == null ? void 0 : yf.videoSlots.inUse) ?? -1, controllerHasSlot: (e2) => e2.hasVideoSlot, reset() {
11647
- yf = null;
11648
- } }, vf = Object.freeze(Object.defineProperty({ __proto__: null, MAX_CONCURRENT_VIDEO_CANVASES: 4, VideoSlotPool, __canvasManagerTestHooks: wf, collectMalformedSelectors, decayBytes, flushAllCanvas: async function flushAllCanvas() {
11649
- const e2 = yf;
11784
+ }, slotsInUse: () => (kf == null ? void 0 : kf.videoSlots.inUse) ?? -1, controllerHasSlot: (e2) => e2.hasVideoSlot, reset() {
11785
+ kf = null;
11786
+ } }, xf = Object.freeze(Object.defineProperty({ __proto__: null, MAX_CONCURRENT_VIDEO_CANVASES: 4, VideoSlotPool, __canvasManagerTestHooks: Cf, collectMalformedSelectors, decayBytes, flushAllCanvas: async function flushAllCanvas() {
11787
+ const e2 = kf;
11650
11788
  if (!e2 || e2.stopped) return;
11651
11789
  now();
11652
11790
  const w2 = [];
@@ -11663,46 +11801,46 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11663
11801
  await Promise.all(w2).catch(() => {
11664
11802
  });
11665
11803
  }, isCanvasRecordingActive: function isCanvasRecordingActive() {
11666
- return null != yf && !yf.stopped;
11804
+ return null != kf && !kf.stopped;
11667
11805
  }, settleOrTimeout, startCanvasRecording: function startCanvasRecording(e2) {
11668
11806
  if ("undefined" == typeof window || "undefined" == typeof document) return;
11669
- if (yf) return;
11807
+ if (kf) return;
11670
11808
  const w2 = e2.settings.maskCanvasClass || "sailfishSanitize", C2 = resolveDeviceBudgets();
11671
- yf = { deps: e2, maskSelector: `.${w2}, [data-sf-mask]`, privacySettings: derivePrivacySettings(e2.settings), contentFlags: deriveContentFlags(e2.settings), redactStyle: resolveRedactStyle(Vt, e2.settings.canvasRedactStyle), budgets: C2, controllers: /* @__PURE__ */ new Map(), handled: /* @__PURE__ */ new WeakSet(), suppressed: /* @__PURE__ */ new Set(), preExisting: /* @__PURE__ */ new WeakSet(), seenContexts: /* @__PURE__ */ new WeakSet(), observer: null, removeListeners: [], totalBytes: 0, budgetExceeded: false, lastBudgetTickMs: 0, notes: /* @__PURE__ */ new Set(), stopped: false, videoSlots: new VideoSlotPool(C2.maxConcurrentVideo) };
11809
+ kf = { deps: e2, maskSelector: `.${w2}, [data-sf-mask]`, privacySettings: derivePrivacySettings(e2.settings), contentFlags: deriveContentFlags(e2.settings), redactStyle: resolveRedactStyle(Vt, e2.settings.canvasRedactStyle), budgets: C2, controllers: /* @__PURE__ */ new Map(), handled: /* @__PURE__ */ new WeakSet(), suppressed: /* @__PURE__ */ new Set(), preExisting: /* @__PURE__ */ new WeakSet(), seenContexts: /* @__PURE__ */ new WeakSet(), observer: null, removeListeners: [], totalBytes: 0, budgetExceeded: false, lastBudgetTickMs: 0, notes: /* @__PURE__ */ new Set(), stopped: false, videoSlots: new VideoSlotPool(C2.maxConcurrentVideo) };
11672
11810
  for (const w3 of collectMalformedSelectors(e2.settings)) noteOnce(`malformed canvas privacy selector "${w3}" is invalid and will not match — that privacy rule is disabled`);
11673
11811
  installCommandHooks(), (function installGLHooks() {
11674
- if (Fh) return;
11675
- Fh = true;
11812
+ if (Wh) return;
11813
+ Wh = true;
11676
11814
  const e3 = [];
11677
11815
  "undefined" != typeof WebGLRenderingContext && e3.push(WebGLRenderingContext.prototype), "undefined" != typeof WebGL2RenderingContext && e3.push(WebGL2RenderingContext.prototype);
11678
11816
  for (const w4 of e3) for (const e4 of Object.getOwnPropertyNames(w4)) {
11679
11817
  const C3 = Object.getOwnPropertyDescriptor(w4, e4);
11680
11818
  if (!C3 || "function" != typeof C3.value || "constructor" === e4) continue;
11681
- if (Nh.test(e4) && !Ph.has(e4)) continue;
11819
+ if (jh.test(e4) && !Uh.has(e4)) continue;
11682
11820
  const x3 = C3.value;
11683
11821
  w4[e4] = function(...w5) {
11684
- const C4 = x3.apply(this, w5), M2 = Bh.get(this);
11685
- return M2 ? M2.recordCall(e4, w5, C4) : Uh && Uh(this), C4;
11822
+ const C4 = x3.apply(this, w5), M2 = zh.get(this);
11823
+ return M2 ? M2.recordCall(e4, w5, C4) : Vh && Vh(this), C4;
11686
11824
  };
11687
11825
  }
11688
11826
  if ("undefined" == typeof HTMLCanvasElement) return;
11689
11827
  const w3 = HTMLCanvasElement.prototype.getContext;
11690
11828
  HTMLCanvasElement.prototype.getContext = function(e4, C3) {
11691
11829
  const x3 = w3.call(this, e4, C3);
11692
- if (("webgl" === e4 || "webgl2" === e4 || "experimental-webgl" === e4) && x3 && jh && !Bh.has(x3)) {
11693
- const e5 = new GLRecorder(new BufferSink(), jh.now);
11694
- e5.rawCtx = x3, Bh.set(x3, e5), Wh.set(this, e5);
11830
+ if (("webgl" === e4 || "webgl2" === e4 || "experimental-webgl" === e4) && x3 && Hh && !zh.has(x3)) {
11831
+ const e5 = new GLRecorder(new BufferSink(), Hh.now);
11832
+ e5.rawCtx = x3, zh.set(x3, e5), qh.set(this, e5);
11695
11833
  }
11696
11834
  return x3;
11697
11835
  };
11698
11836
  })(), (function installGPUHooks() {
11699
- if (Vh) return;
11700
- if (Vh = true, "undefined" == typeof navigator || !("gpu" in navigator)) return;
11837
+ if (Yh) return;
11838
+ if (Yh = true, "undefined" == typeof navigator || !("gpu" in navigator)) return;
11701
11839
  const e3 = navigator.gpu;
11702
11840
  if (Object.defineProperty(navigator, "gpu", { configurable: true, get() {
11703
- if (Hh || Yh) {
11704
- if (!Zh) {
11705
- Zh = true;
11841
+ if (Zh || tf) {
11842
+ if (!of) {
11843
+ of = true;
11706
11844
  const w4 = intern(e3);
11707
11845
  emit({ t: nowFn(), op: "__gpuroot", args: [w4] });
11708
11846
  }
@@ -11713,20 +11851,20 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11713
11851
  const w3 = HTMLCanvasElement.prototype.getContext;
11714
11852
  HTMLCanvasElement.prototype.getContext = function(e4, C3) {
11715
11853
  const x3 = w3.call(this, e4, C3);
11716
- if ("webgpu" === e4 && x3 && (Hh || Yh)) {
11717
- ef = this;
11718
- const e5 = nf.has(x3), w4 = intern(x3);
11854
+ if ("webgpu" === e4 && x3 && (Zh || tf)) {
11855
+ sf = this;
11856
+ const e5 = cf.has(x3), w4 = intern(x3);
11719
11857
  return e5 || emit({ t: nowFn(), op: "__gpuctx", args: [w4] }), wrap(x3);
11720
11858
  }
11721
11859
  return x3;
11722
11860
  };
11723
11861
  })(), (function installWorkerRelay() {
11724
- if (!df) {
11725
- if (df = true, "undefined" != typeof HTMLCanvasElement && "function" == typeof HTMLCanvasElement.prototype.transferControlToOffscreen) {
11862
+ if (!gf) {
11863
+ if (gf = true, "undefined" != typeof HTMLCanvasElement && "function" == typeof HTMLCanvasElement.prototype.transferControlToOffscreen) {
11726
11864
  const e3 = HTMLCanvasElement.prototype.transferControlToOffscreen;
11727
11865
  HTMLCanvasElement.prototype.transferControlToOffscreen = function() {
11728
11866
  const w3 = e3.call(this);
11729
- return lf.set(w3, this), w3;
11867
+ return ff.set(w3, this), w3;
11730
11868
  };
11731
11869
  }
11732
11870
  if ("undefined" != typeof Worker) {
@@ -11734,8 +11872,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11734
11872
  Worker.prototype.postMessage = function(w3, C3) {
11735
11873
  const x3 = Array.isArray(C3) ? C3 : C3 == null ? void 0 : C3.transfer;
11736
11874
  if (x3) for (const e4 of x3) {
11737
- const w4 = e4 && "object" == typeof e4 ? lf.get(e4) : void 0;
11738
- w4 && !uf.has(w4) && (uf.set(w4, this), pf == null ? void 0 : pf(w4, this));
11875
+ const w4 = e4 && "object" == typeof e4 ? ff.get(e4) : void 0;
11876
+ w4 && !mf.has(w4) && (mf.set(w4, this), yf == null ? void 0 : yf(w4, this));
11739
11877
  }
11740
11878
  return e3.apply(this, [w3, C3]);
11741
11879
  };
@@ -11747,20 +11885,20 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11747
11885
  const C3 = fn.get(e4);
11748
11886
  return !!C3 && (C3.pendingSiteId = w4, true);
11749
11887
  })(e3, w3) || (function noteGLPendingSiteId(e4, w4) {
11750
- const C3 = Bh.get(e4);
11888
+ const C3 = zh.get(e4);
11751
11889
  return !!C3 && (C3.pendingSiteId = w4, true);
11752
11890
  })(e3, w3)), e3), installAdapters({ canvasIdFor: (e3) => {
11753
11891
  var _a2;
11754
- return ((_a2 = yf == null ? void 0 : yf.controllers.get(e3)) == null ? void 0 : _a2.canvasId) ?? null;
11892
+ return ((_a2 = kf == null ? void 0 : kf.controllers.get(e3)) == null ? void 0 : _a2.canvasId) ?? null;
11755
11893
  }, emitHit: (e3) => emitEvent(e3), now });
11756
11894
  const onInteraction = () => {
11757
11895
  var _a2, _b, _c2;
11758
- const e3 = yf;
11896
+ const e3 = kf;
11759
11897
  if (!e3 || e3.stopped) return;
11760
11898
  const w3 = now();
11761
11899
  for (const C3 of e3.controllers.values()) C3.stopped || ("video" === C3.mode ? ((_a2 = C3.video) == null ? void 0 : _a2.onInteraction(w3), (_b = C3.mediaRecorder) == null ? void 0 : _b.onInteraction(w3)) : (_c2 = C3.keyframes) == null ? void 0 : _c2.onInteraction(w3));
11762
11900
  };
11763
- window.addEventListener("pointerdown", onInteraction, { capture: true, passive: true }), window.addEventListener("keydown", onInteraction, { capture: true, passive: true }), yf.removeListeners.push(() => {
11901
+ window.addEventListener("pointerdown", onInteraction, { capture: true, passive: true }), window.addEventListener("keydown", onInteraction, { capture: true, passive: true }), kf.removeListeners.push(() => {
11764
11902
  window.removeEventListener("pointerdown", onInteraction, { capture: true }), window.removeEventListener("keydown", onInteraction, { capture: true });
11765
11903
  });
11766
11904
  const x2 = new MutationObserver((e3) => {
@@ -11772,12 +11910,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11772
11910
  })) : w3 = true;
11773
11911
  w3 && reevaluateAllMasking();
11774
11912
  });
11775
- x2.observe(document.documentElement, { childList: true, subtree: true, attributes: true }), yf.observer = x2, document.querySelectorAll("canvas").forEach((e3) => {
11776
- yf.preExisting.add(e3), considerCanvas(e3);
11913
+ x2.observe(document.documentElement, { childList: true, subtree: true, attributes: true }), kf.observer = x2, document.querySelectorAll("canvas").forEach((e3) => {
11914
+ kf.preExisting.add(e3), considerCanvas(e3);
11777
11915
  });
11778
11916
  }, stopCanvasRecording: async function stopCanvasRecording() {
11779
11917
  var _a2;
11780
- const e2 = yf;
11918
+ const e2 = kf;
11781
11919
  if (!e2 || e2.stopped) return;
11782
11920
  e2.stopped = true, setAutoAttach(null), setGLAutoAttach(null), setGPUAutoAttach(null), setGPUDeviceLostNotifier(null), setContextCreatedNotifier(null), setUntracked2DContextNotifier(null), setUntrackedGLContextNotifier(null), setWorkerAssociationNotifier(null), delete globalThis.__sfDrawSite, (function uninstallAdapters() {
11783
11921
  nr = null, rr && "undefined" != typeof window && window.removeEventListener("pointerdown", onPointerDown, { capture: true }), rr = false, tr.clear();
@@ -11796,13 +11934,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11796
11934
  }))), (function pruneUnboundRecorders() {
11797
11935
  for (const [e3, w3] of bn) w3.bound || (fn.delete(w3.rawCtx), bn.delete(e3));
11798
11936
  })(), (function pruneUnboundGLRecorders() {
11799
- for (const [e3, w3] of Wh) w3.bound || (Bh.delete(w3.rawCtx), Wh.delete(e3));
11937
+ for (const [e3, w3] of qh) w3.bound || (zh.delete(w3.rawCtx), qh.delete(e3));
11800
11938
  })(), (function pruneUnboundGPURecorders() {
11801
- Yh instanceof BufferSink && !tf && (ef || (Yh = null));
11939
+ tf instanceof BufferSink && !af && (sf || (tf = null));
11802
11940
  })(), (function terminateImgEncoder() {
11803
- Oh && (Oh.terminate(), Oh = null);
11804
- for (const [e3, w3] of _h) _h.delete(e3), w3({ size: 0 });
11805
- })(), yf = null;
11941
+ Ph && (Ph.terminate(), Ph = null);
11942
+ for (const [e3, w3] of Fh) Fh.delete(e3), w3({ size: 0 });
11943
+ })(), kf = null;
11806
11944
  } }, Symbol.toStringTag, { value: "Module" }));
11807
11945
  e.DEFAULT_CAPTURE_SETTINGS = pr, e.DEFAULT_CONSOLE_RECORDING_SETTINGS = hr, e.STORAGE_VERSION = 1, e.addOrUpdateMetadata = function addOrUpdateMetadata(e2) {
11808
11946
  const w2 = { type: "addOrUpdateMetadata", metadata: e2 };
@@ -11818,7 +11956,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11818
11956
  return clearPageVisitDataFromSessionStorage(), w2.initialized && w2.sessionId === C2 && w2.ws && 1 === w2.ws.readyState ? void 0 : (w2.initPromise || (w2.initPromise = (async () => {
11819
11957
  try {
11820
11958
  if (w2.hasLoggedInitOnce || (console.log("Initializing Sailfish Recorder (first run) …"), w2.hasLoggedInitOnce = true), await startRecording(e2), !w2.issueReportingInit) {
11821
- const C3 = e2.backendApi ?? "https://api-service.sailfishqa.com", [{ setupIssueReporting: x2 }, { fetchIntegrationData: M2, getIntegrationData: I2 }] = await Promise.all([Promise.resolve().then(() => Zn), Promise.resolve().then(() => Kn)]);
11959
+ const C3 = e2.backendApi ?? "https://api-service.sailfishqa.com", [{ setupIssueReporting: x2 }, { fetchIntegrationData: M2, getIntegrationData: I2 }] = await Promise.all([Promise.resolve().then(() => Qn), Promise.resolve().then(() => Kn)]);
11822
11960
  let _2 = null;
11823
11961
  try {
11824
11962
  await M2(e2.apiKey, C3), _2 = I2();