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