@applitools/eyes-browser 1.5.17 → 1.5.19
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/CHANGELOG.md +42 -0
- package/dist/index.js +1005 -519
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -22142,7 +22142,7 @@ var require_requests = __commonJS({
|
|
|
22142
22142
|
logger.log('Request "openEyes" called with settings', settings);
|
|
22143
22143
|
const account = await getAccountInfoWithCache({ settings });
|
|
22144
22144
|
if (account.processKeepaliveIntervalSec) {
|
|
22145
|
-
heartbeat.acquire({
|
|
22145
|
+
settings.processId = heartbeat.acquire({
|
|
22146
22146
|
eyesServerUrl: settings.eyesServerUrl,
|
|
22147
22147
|
apiKey: settings.apiKey,
|
|
22148
22148
|
proxy: settings.proxy,
|
|
@@ -22482,6 +22482,9 @@ var require_requests = __commonJS({
|
|
|
22482
22482
|
supportedEnvironmentsUrl,
|
|
22483
22483
|
uploadUrl,
|
|
22484
22484
|
serverConcurrency: (0, server_concurrency_converter_1.handleConcurrency)(serverConcurrency),
|
|
22485
|
+
scmSettings: {
|
|
22486
|
+
isFallbackBranchListEnabled: res.isFallbackBranchListEnabled
|
|
22487
|
+
},
|
|
22485
22488
|
...rest
|
|
22486
22489
|
};
|
|
22487
22490
|
logger.mask(result.ufgServer.accessToken);
|
|
@@ -23107,6 +23110,8 @@ var require_requests = __commonJS({
|
|
|
23107
23110
|
baselineBranchName: settings.baselineBranchName,
|
|
23108
23111
|
compareWithParentBranch: settings.compareWithParentBranch,
|
|
23109
23112
|
parentBranchBaselineSavedBefore: settings.gitBranchingTimestamp,
|
|
23113
|
+
branchLookupFallbackList: settings.branchLookupFallbackList,
|
|
23114
|
+
gitBranchName: settings.gitBranchName,
|
|
23110
23115
|
ignoreBaseline: settings.ignoreBaseline,
|
|
23111
23116
|
saveDiffs: settings.saveDiffs,
|
|
23112
23117
|
timeout: settings.abortIdleTestTimeout,
|
|
@@ -60278,6 +60283,9 @@ var require_requests_offline = __commonJS({
|
|
|
60278
60283
|
sessionConcurrency: -1,
|
|
60279
60284
|
componentConcurrency: -1
|
|
60280
60285
|
// unlimited
|
|
60286
|
+
},
|
|
60287
|
+
scmSettings: {
|
|
60288
|
+
isFallbackBranchListEnabled: false
|
|
60281
60289
|
}
|
|
60282
60290
|
};
|
|
60283
60291
|
}
|
|
@@ -67327,38 +67335,50 @@ var require_heartbeat = __commonJS({
|
|
|
67327
67335
|
const logger = mainLogger.extend(mainLogger, { tags: [`heartbeat-base-${utils34.general.shortid()}`] });
|
|
67328
67336
|
function stopHeartbeats() {
|
|
67329
67337
|
logger.log("Stopping heartbeats");
|
|
67330
|
-
isRunning = false;
|
|
67331
67338
|
if (intervalId) {
|
|
67332
67339
|
clearInterval(intervalId);
|
|
67333
67340
|
intervalId = void 0;
|
|
67341
|
+
isRunning = false;
|
|
67342
|
+
processId = utils34.general.guid();
|
|
67343
|
+
logger.log("Generated new processId after expiration:", processId);
|
|
67334
67344
|
}
|
|
67335
67345
|
}
|
|
67336
67346
|
async function startHeartbeats(settings) {
|
|
67337
|
-
|
|
67338
|
-
|
|
67339
|
-
|
|
67340
|
-
|
|
67341
|
-
|
|
67342
|
-
|
|
67343
|
-
})
|
|
67344
|
-
|
|
67345
|
-
|
|
67346
|
-
|
|
67347
|
-
} catch (error) {
|
|
67348
|
-
if (error.message === "This process is expired. All its sessions were abandoned") {
|
|
67349
|
-
stopHeartbeats();
|
|
67350
|
-
}
|
|
67347
|
+
await requests.sendHeartbeat({ settings: { ...settings, processId }, logger }).catch((error) => {
|
|
67348
|
+
logger.error("Failed to send heartbeat:", error);
|
|
67349
|
+
});
|
|
67350
|
+
intervalId = setIntervalBrowser(async () => {
|
|
67351
|
+
try {
|
|
67352
|
+
await requests.sendHeartbeat({ settings: { ...settings, processId }, logger });
|
|
67353
|
+
} catch (error) {
|
|
67354
|
+
if (error.message === "This process is expired. All its sessions were abandoned") {
|
|
67355
|
+
logger.log("Heartbeat process expired on server");
|
|
67356
|
+
stopHeartbeats();
|
|
67351
67357
|
}
|
|
67352
|
-
}
|
|
67353
|
-
|
|
67354
|
-
|
|
67358
|
+
}
|
|
67359
|
+
}, settings.interval);
|
|
67360
|
+
intervalId.unref();
|
|
67355
67361
|
}
|
|
67356
67362
|
function acquire(settings) {
|
|
67357
67363
|
refCount++;
|
|
67358
67364
|
logger.log("Heartbeat acquired, refCount:", refCount);
|
|
67359
|
-
|
|
67360
|
-
|
|
67361
|
-
|
|
67365
|
+
if (!isRunning) {
|
|
67366
|
+
if (settings.processId && settings.processId === processId) {
|
|
67367
|
+
logger.log("Starting heartbeats with provided processId:", processId);
|
|
67368
|
+
} else if (!settings.processId || settings.processId !== processId) {
|
|
67369
|
+
if (settings.processId && settings.processId !== processId) {
|
|
67370
|
+
logger.log("Provided processId differs from current, using current processId:", processId);
|
|
67371
|
+
} else {
|
|
67372
|
+
processId = utils34.general.guid();
|
|
67373
|
+
logger.log("Starting heartbeats with new processId:", processId);
|
|
67374
|
+
}
|
|
67375
|
+
}
|
|
67376
|
+
isRunning = true;
|
|
67377
|
+
void startHeartbeats(settings).catch((error) => {
|
|
67378
|
+
logger.error("Failed to start heartbeats:", error);
|
|
67379
|
+
});
|
|
67380
|
+
}
|
|
67381
|
+
return processId;
|
|
67362
67382
|
}
|
|
67363
67383
|
function release() {
|
|
67364
67384
|
if (refCount > 0) {
|
|
@@ -93553,10 +93573,23 @@ var require_processPagePollCjs = __commonJS({
|
|
|
93553
93573
|
const t3 = Array.from(e3.attributes).map((t4) => "id" === t4.name ? `#${t4.value}` : "class" === t4.name ? Array.from(e3.classList).map((e4) => `.${e4}`).join("") : `[${t4.name}="${t4.value}"]`).join("");
|
|
93554
93574
|
return `${e3.nodeName}${t3}`;
|
|
93555
93575
|
}
|
|
93556
|
-
function Al(e3
|
|
93576
|
+
function Al(e3) {
|
|
93577
|
+
for (const t3 of Array.from(e3)) {
|
|
93578
|
+
if ("CSSStyleRule" === t3.constructor.name && t3.style) {
|
|
93579
|
+
const e4 = t3.style;
|
|
93580
|
+
for (const t4 of Array.from(e4))
|
|
93581
|
+
if (!e4.getPropertyValue(t4))
|
|
93582
|
+
return true;
|
|
93583
|
+
}
|
|
93584
|
+
if (t3.cssRules && Al(t3.cssRules))
|
|
93585
|
+
return true;
|
|
93586
|
+
}
|
|
93587
|
+
return false;
|
|
93588
|
+
}
|
|
93589
|
+
function Tl(e3, t3) {
|
|
93557
93590
|
t3.log("[processInlineCss] processing inline css for", zl(e3));
|
|
93558
93591
|
try {
|
|
93559
|
-
const n3 = function(e4) {
|
|
93592
|
+
const n3 = e3.getRootNode(), r3 = n3 !== e3.ownerDocument && 11 === n3.nodeType, o3 = function(e4) {
|
|
93560
93593
|
const t4 = Ys(e4, { context: "stylesheet", parseAtrulePrelude: true, parseRulePrelude: true, parseValue: false, parseCustomProperty: false });
|
|
93561
93594
|
return el(t4, { visit: "TypeSelector", enter(e5, t5) {
|
|
93562
93595
|
"from" === e5.name ? t5.data = { type: "Percentage", value: "0" } : "to" === e5.name && (t5.data = { type: "Percentage", value: "100" });
|
|
@@ -93581,53 +93614,53 @@ var require_processPagePollCjs = __commonJS({
|
|
|
93581
93614
|
} }), ol(t4);
|
|
93582
93615
|
}(e3.textContent);
|
|
93583
93616
|
t3.log("[processInlineCss] created AST for textContent");
|
|
93584
|
-
const
|
|
93617
|
+
const i3 = r3 ? yl(e3.sheet.cssRules, t3, n3) : yl(e3.sheet.cssRules, t3);
|
|
93585
93618
|
t3.log("[processInlineCss] created AST for CSSOM");
|
|
93586
|
-
const
|
|
93619
|
+
const a3 = r3 && Al(e3.sheet.cssRules) ? i3 : vl(o3.children, i3);
|
|
93587
93620
|
t3.log("[processInlineCss] merged AST");
|
|
93588
|
-
const
|
|
93589
|
-
return t3.log("[processInlineCss] generated cssText of length",
|
|
93621
|
+
const s3 = Xs(il({ type: "StyleSheet", children: a3 }));
|
|
93622
|
+
return t3.log("[processInlineCss] generated cssText of length", s3.length), s3;
|
|
93590
93623
|
} catch (n3) {
|
|
93591
93624
|
return t3.log("[processInlineCss] error while processing inline css:", n3.message, n3), t3.log("[processInlineCss] try to set fallback"), "string" == typeof e3.textContent && e3.textContent.length > 0 ? (t3.log("[processInlineCss] set style from `styleNode.textContent`"), e3.textContent) : e3.sheet && e3.sheet.cssRules ? (t3.log("[processInlineCss] set style from reduce `sheet.cssRules`"), Array.from(e3.sheet.cssRules).reduce((e4, { cssText: t4 }) => e4 + t4, "")) : (t3.log("[processInlineCss] could not set fallback to inline css"), "");
|
|
93592
93625
|
}
|
|
93593
93626
|
}
|
|
93594
|
-
function
|
|
93627
|
+
function Ol(e3, t3) {
|
|
93595
93628
|
let n3 = e3[0], r3 = e3[1], o3 = e3[2], i3 = e3[3];
|
|
93596
|
-
n3 =
|
|
93629
|
+
n3 = El(n3, r3, o3, i3, t3[0], 7, -680876936), i3 = El(i3, n3, r3, o3, t3[1], 12, -389564586), o3 = El(o3, i3, n3, r3, t3[2], 17, 606105819), r3 = El(r3, o3, i3, n3, t3[3], 22, -1044525330), n3 = El(n3, r3, o3, i3, t3[4], 7, -176418897), i3 = El(i3, n3, r3, o3, t3[5], 12, 1200080426), o3 = El(o3, i3, n3, r3, t3[6], 17, -1473231341), r3 = El(r3, o3, i3, n3, t3[7], 22, -45705983), n3 = El(n3, r3, o3, i3, t3[8], 7, 1770035416), i3 = El(i3, n3, r3, o3, t3[9], 12, -1958414417), o3 = El(o3, i3, n3, r3, t3[10], 17, -42063), r3 = El(r3, o3, i3, n3, t3[11], 22, -1990404162), n3 = El(n3, r3, o3, i3, t3[12], 7, 1804603682), i3 = El(i3, n3, r3, o3, t3[13], 12, -40341101), o3 = El(o3, i3, n3, r3, t3[14], 17, -1502002290), r3 = El(r3, o3, i3, n3, t3[15], 22, 1236535329), n3 = Rl(n3, r3, o3, i3, t3[1], 5, -165796510), i3 = Rl(i3, n3, r3, o3, t3[6], 9, -1069501632), o3 = Rl(o3, i3, n3, r3, t3[11], 14, 643717713), r3 = Rl(r3, o3, i3, n3, t3[0], 20, -373897302), n3 = Rl(n3, r3, o3, i3, t3[5], 5, -701558691), i3 = Rl(i3, n3, r3, o3, t3[10], 9, 38016083), o3 = Rl(o3, i3, n3, r3, t3[15], 14, -660478335), r3 = Rl(r3, o3, i3, n3, t3[4], 20, -405537848), n3 = Rl(n3, r3, o3, i3, t3[9], 5, 568446438), i3 = Rl(i3, n3, r3, o3, t3[14], 9, -1019803690), o3 = Rl(o3, i3, n3, r3, t3[3], 14, -187363961), r3 = Rl(r3, o3, i3, n3, t3[8], 20, 1163531501), n3 = Rl(n3, r3, o3, i3, t3[13], 5, -1444681467), i3 = Rl(i3, n3, r3, o3, t3[2], 9, -51403784), o3 = Rl(o3, i3, n3, r3, t3[7], 14, 1735328473), r3 = Rl(r3, o3, i3, n3, t3[12], 20, -1926607734), n3 = Nl(n3, r3, o3, i3, t3[5], 4, -378558), i3 = Nl(i3, n3, r3, o3, t3[8], 11, -2022574463), o3 = Nl(o3, i3, n3, r3, t3[11], 16, 1839030562), r3 = Nl(r3, o3, i3, n3, t3[14], 23, -35309556), n3 = Nl(n3, r3, o3, i3, t3[1], 4, -1530992060), i3 = Nl(i3, n3, r3, o3, t3[4], 11, 1272893353), o3 = Nl(o3, i3, n3, r3, t3[7], 16, -155497632), r3 = Nl(r3, o3, i3, n3, t3[10], 23, -1094730640), n3 = Nl(n3, r3, o3, i3, t3[13], 4, 681279174), i3 = Nl(i3, n3, r3, o3, t3[0], 11, -358537222), o3 = Nl(o3, i3, n3, r3, t3[3], 16, -722521979), r3 = Nl(r3, o3, i3, n3, t3[6], 23, 76029189), n3 = Nl(n3, r3, o3, i3, t3[9], 4, -640364487), i3 = Nl(i3, n3, r3, o3, t3[12], 11, -421815835), o3 = Nl(o3, i3, n3, r3, t3[15], 16, 530742520), r3 = Nl(r3, o3, i3, n3, t3[2], 23, -995338651), n3 = jl(n3, r3, o3, i3, t3[0], 6, -198630844), i3 = jl(i3, n3, r3, o3, t3[7], 10, 1126891415), o3 = jl(o3, i3, n3, r3, t3[14], 15, -1416354905), r3 = jl(r3, o3, i3, n3, t3[5], 21, -57434055), n3 = jl(n3, r3, o3, i3, t3[12], 6, 1700485571), i3 = jl(i3, n3, r3, o3, t3[3], 10, -1894986606), o3 = jl(o3, i3, n3, r3, t3[10], 15, -1051523), r3 = jl(r3, o3, i3, n3, t3[1], 21, -2054922799), n3 = jl(n3, r3, o3, i3, t3[8], 6, 1873313359), i3 = jl(i3, n3, r3, o3, t3[15], 10, -30611744), o3 = jl(o3, i3, n3, r3, t3[6], 15, -1560198380), r3 = jl(r3, o3, i3, n3, t3[13], 21, 1309151649), n3 = jl(n3, r3, o3, i3, t3[4], 6, -145523070), i3 = jl(i3, n3, r3, o3, t3[11], 10, -1120210379), o3 = jl(o3, i3, n3, r3, t3[2], 15, 718787259), r3 = jl(r3, o3, i3, n3, t3[9], 21, -343485551), e3[0] = Bl(n3, e3[0]), e3[1] = Bl(r3, e3[1]), e3[2] = Bl(o3, e3[2]), e3[3] = Bl(i3, e3[3]);
|
|
93597
93630
|
}
|
|
93598
|
-
function
|
|
93599
|
-
return t3 =
|
|
93600
|
-
}
|
|
93601
|
-
function Ll(e3, t3, n3, r3, o3, i3, a3) {
|
|
93602
|
-
return Ol(t3 & n3 | ~t3 & r3, e3, t3, o3, i3, a3);
|
|
93631
|
+
function Ll(e3, t3, n3, r3, o3, i3) {
|
|
93632
|
+
return t3 = Bl(Bl(t3, e3), Bl(r3, i3)), Bl(t3 << o3 | t3 >>> 32 - o3, n3);
|
|
93603
93633
|
}
|
|
93604
93634
|
function El(e3, t3, n3, r3, o3, i3, a3) {
|
|
93605
|
-
return
|
|
93635
|
+
return Ll(t3 & n3 | ~t3 & r3, e3, t3, o3, i3, a3);
|
|
93606
93636
|
}
|
|
93607
93637
|
function Rl(e3, t3, n3, r3, o3, i3, a3) {
|
|
93608
|
-
return
|
|
93638
|
+
return Ll(t3 & r3 | n3 & ~r3, e3, t3, o3, i3, a3);
|
|
93609
93639
|
}
|
|
93610
93640
|
function Nl(e3, t3, n3, r3, o3, i3, a3) {
|
|
93611
|
-
return
|
|
93641
|
+
return Ll(t3 ^ n3 ^ r3, e3, t3, o3, i3, a3);
|
|
93642
|
+
}
|
|
93643
|
+
function jl(e3, t3, n3, r3, o3, i3, a3) {
|
|
93644
|
+
return Ll(n3 ^ (t3 | ~r3), e3, t3, o3, i3, a3);
|
|
93612
93645
|
}
|
|
93613
|
-
function
|
|
93646
|
+
function Il(e3) {
|
|
93614
93647
|
const t3 = [];
|
|
93615
93648
|
let n3;
|
|
93616
93649
|
for (n3 = 0; n3 < 64; n3 += 4)
|
|
93617
93650
|
t3[n3 >> 2] = e3.charCodeAt(n3) + (e3.charCodeAt(n3 + 1) << 8) + (e3.charCodeAt(n3 + 2) << 16) + (e3.charCodeAt(n3 + 3) << 24);
|
|
93618
93651
|
return t3;
|
|
93619
93652
|
}
|
|
93620
|
-
const
|
|
93621
|
-
function
|
|
93653
|
+
const Dl = "0123456789abcdef".split("");
|
|
93654
|
+
function Pl(e3) {
|
|
93622
93655
|
let t3 = "", n3 = 0;
|
|
93623
93656
|
for (; n3 < 4; n3++)
|
|
93624
|
-
t3 +=
|
|
93657
|
+
t3 += Dl[e3 >> 8 * n3 + 4 & 15] + Dl[e3 >> 8 * n3 & 15];
|
|
93625
93658
|
return t3;
|
|
93626
93659
|
}
|
|
93627
|
-
function
|
|
93660
|
+
function Bl(e3, t3) {
|
|
93628
93661
|
return e3 + t3 & 4294967295;
|
|
93629
93662
|
}
|
|
93630
|
-
function
|
|
93663
|
+
function Fl(e3, { removeReverseProxyURLPrefixes: t3 } = {}) {
|
|
93631
93664
|
const n3 = [];
|
|
93632
93665
|
return [/url\((?!['"]?:)'([^']*)'\)/g, /url\((?!['"]?:)"([^"]*)"\)/g, /url\((?!['"]?:)([^()'"]*)\)/g].forEach((t4) => {
|
|
93633
93666
|
let r3;
|
|
@@ -93638,29 +93671,29 @@ var require_processPagePollCjs = __commonJS({
|
|
|
93638
93671
|
return t4 && t4.length ? t4[0].substring(1) : e4;
|
|
93639
93672
|
}) : n3;
|
|
93640
93673
|
}
|
|
93641
|
-
function
|
|
93674
|
+
function Ul(e3) {
|
|
93642
93675
|
let t3 = [];
|
|
93643
93676
|
for (let n3 = 0, r3 = e3.length; n3 < r3; n3++) {
|
|
93644
93677
|
const r4 = e3[n3];
|
|
93645
93678
|
let o3 = e3.getPropertyValue(r4);
|
|
93646
93679
|
(/^\s*var\s*\(/.test(o3) || /^--/.test(r4)) && (o3 = o3.replace(/(\\[0-9a-fA-F]{1,6}\s?)/g, (e4) => String.fromCodePoint(parseInt(e4.substr(1).trim(), 16))).replace(/\\([^0-9a-fA-F])/g, "$1"));
|
|
93647
|
-
const i3 =
|
|
93680
|
+
const i3 = Fl(o3);
|
|
93648
93681
|
t3 = t3.concat(i3);
|
|
93649
93682
|
}
|
|
93650
93683
|
return t3;
|
|
93651
93684
|
}
|
|
93652
|
-
const
|
|
93653
|
-
function
|
|
93685
|
+
const Ml = /(\S+)(?:\s+[\d.]+[wx])?(?:,|$)/g;
|
|
93686
|
+
function ql(e3) {
|
|
93654
93687
|
const { ownerDocument: t3 } = e3;
|
|
93655
93688
|
if (!t3)
|
|
93656
93689
|
return true;
|
|
93657
93690
|
const { display: n3 } = t3.defaultView.getComputedStyle(e3), { width: r3, height: o3 } = e3.getBoundingClientRect();
|
|
93658
93691
|
return "none" === n3 || 0 === r3 || 0 === o3;
|
|
93659
93692
|
}
|
|
93660
|
-
function
|
|
93693
|
+
function Wl(e3) {
|
|
93661
93694
|
try {
|
|
93662
93695
|
return ol(Ys(e3.toLowerCase(), { context: "mediaQueryList" })).children.some((e4) => {
|
|
93663
|
-
const t3 =
|
|
93696
|
+
const t3 = $l(e4);
|
|
93664
93697
|
return e4.mediaType && t3.unshift(e4), t3.every((e5) => {
|
|
93665
93698
|
var t4, n3;
|
|
93666
93699
|
return !(e5.modifier && !["not", "only"].includes(e5.modifier)) && ("Feature" === e5.type || ("Identifier" !== e5.type && "MediaQuery" !== e5.type || !["all", "screen"].includes(null !== (n3 = null !== (t4 = e5.name) && void 0 !== t4 ? t4 : e5.mediaType) && void 0 !== n3 ? n3 : "") ? e5.modifier && "not" === e5.modifier : !e5.modifier || "not" !== e5.modifier));
|
|
@@ -93670,19 +93703,19 @@ var require_processPagePollCjs = __commonJS({
|
|
|
93670
93703
|
return false;
|
|
93671
93704
|
}
|
|
93672
93705
|
}
|
|
93673
|
-
function
|
|
93706
|
+
function $l(e3) {
|
|
93674
93707
|
var t3, n3;
|
|
93675
93708
|
const r3 = [];
|
|
93676
93709
|
if (e3.condition)
|
|
93677
|
-
r3.push(
|
|
93710
|
+
r3.push(...$l(e3.condition));
|
|
93678
93711
|
else {
|
|
93679
|
-
const o3 = null !== (n3 = null === (t3 = e3.children) || void 0 === t3 ? void 0 : t3.reduce((e4, t4) => ("Condition" === t4.type ? e4.push(
|
|
93712
|
+
const o3 = null !== (n3 = null === (t3 = e3.children) || void 0 === t3 ? void 0 : t3.reduce((e4, t4) => ("Condition" === t4.type ? e4.push(...$l(t4)) : "Identifier" === t4.type && "and" === t4.name || e4.push(t4), e4), [])) && void 0 !== n3 ? n3 : [];
|
|
93680
93713
|
r3.push(...o3);
|
|
93681
93714
|
}
|
|
93682
93715
|
return r3;
|
|
93683
93716
|
}
|
|
93684
|
-
const
|
|
93685
|
-
function
|
|
93717
|
+
const Vl = Symbol("raw");
|
|
93718
|
+
function Zl(e3) {
|
|
93686
93719
|
const t3 = function(e4) {
|
|
93687
93720
|
if ("undefined" == typeof window)
|
|
93688
93721
|
return null;
|
|
@@ -93690,7 +93723,7 @@ var require_processPagePollCjs = __commonJS({
|
|
|
93690
93723
|
return window[t4];
|
|
93691
93724
|
}(e3);
|
|
93692
93725
|
return t3 ? (n3 = e3, r3 = t3.prototype, new Proxy(Object.create(n3), { get(e4, t4, o3) {
|
|
93693
|
-
if (t4 ===
|
|
93726
|
+
if (t4 === Vl)
|
|
93694
93727
|
return n3;
|
|
93695
93728
|
const i3 = Reflect.get(r3, t4, n3);
|
|
93696
93729
|
return "function" == typeof i3 ? function() {
|
|
@@ -93699,15 +93732,15 @@ var require_processPagePollCjs = __commonJS({
|
|
|
93699
93732
|
} })) : e3;
|
|
93700
93733
|
var n3, r3;
|
|
93701
93734
|
}
|
|
93702
|
-
|
|
93703
|
-
return e3[
|
|
93735
|
+
Zl.unwrap = function(e3) {
|
|
93736
|
+
return e3[Vl] || e3;
|
|
93704
93737
|
};
|
|
93705
|
-
const
|
|
93706
|
-
function
|
|
93738
|
+
const Kl = /* @__PURE__ */ new Set(["date", "datetime-local", "email", "month", "number", "password", "search", "tel", "text", "time", "url", "week", "range"]), Hl = /^on[a-z]+$/;
|
|
93739
|
+
function Gl(e3, t3, n3) {
|
|
93707
93740
|
const r3 = [{ nodeType: Node.DOCUMENT_NODE }], o3 = [e3], i3 = [], a3 = [], s3 = [], l2 = [];
|
|
93708
93741
|
let c2 = [];
|
|
93709
93742
|
const u2 = [], h2 = [];
|
|
93710
|
-
return r3[0].childNodeIndexes = p2(r3, e3.childNodes), e3.adoptedStyleSheets && e3.adoptedStyleSheets.length > 0 && (r3[0].exp_adoptedStyleSheets =
|
|
93743
|
+
return r3[0].childNodeIndexes = p2(r3, e3.childNodes), e3.adoptedStyleSheets && e3.adoptedStyleSheets.length > 0 && (r3[0].exp_adoptedStyleSheets = Ql(e3, n3)), { cdt: r3, docRoots: o3, canvasElements: i3, frames: s3, inlineFrames: a3, crossFrames: l2, linkUrls: c2, imageBlobs: u2, videoBlobs: h2 };
|
|
93711
93744
|
function p2(e4, t4) {
|
|
93712
93745
|
if (!t4 || 0 === t4.length)
|
|
93713
93746
|
return null;
|
|
@@ -93719,28 +93752,28 @@ var require_processPagePollCjs = __commonJS({
|
|
|
93719
93752
|
}
|
|
93720
93753
|
function m2(e4, r4) {
|
|
93721
93754
|
var f2;
|
|
93722
|
-
const g2 =
|
|
93755
|
+
const g2 = Zl(r4);
|
|
93723
93756
|
let b2;
|
|
93724
93757
|
if ([Node.ELEMENT_NODE, Node.DOCUMENT_FRAGMENT_NODE].includes(g2.nodeType)) {
|
|
93725
93758
|
if (g2.hasAttribute && g2.hasAttribute("data-applitools-skip"))
|
|
93726
93759
|
return null;
|
|
93727
|
-
if (["LINK", "STYLE", "SOURCE"].includes(g2.nodeName) && (null === (f2 = g2.media) || void 0 === f2 ? void 0 : f2.trim()) && !
|
|
93760
|
+
if (["LINK", "STYLE", "SOURCE"].includes(g2.nodeName) && (null === (f2 = g2.media) || void 0 === f2 ? void 0 : f2.trim()) && !Wl(g2.media))
|
|
93728
93761
|
return null;
|
|
93729
93762
|
if ("SCRIPT" === g2.nodeName)
|
|
93730
93763
|
b2 = function(e5) {
|
|
93731
|
-
return { nodeType: Node.ELEMENT_NODE, nodeName: "SCRIPT", attributes:
|
|
93764
|
+
return { nodeType: Node.ELEMENT_NODE, nodeName: "SCRIPT", attributes: Yl(e5).map((t4) => {
|
|
93732
93765
|
const n4 = e5.attributes[t4].name;
|
|
93733
|
-
return { name: n4, value:
|
|
93766
|
+
return { name: n4, value: Hl.test(n4) ? "" : e5.attributes[t4].value };
|
|
93734
93767
|
}).filter((e6) => "src" !== e6.name), childNodeIndexes: [] };
|
|
93735
93768
|
}(g2);
|
|
93736
93769
|
else {
|
|
93737
93770
|
const c3 = g2.shadowRoot && g2.shadowRoot.childNodes.length && "ShadowRoot" !== g2.shadowRoot.constructor.name;
|
|
93738
93771
|
if (b2 = function(e5) {
|
|
93739
93772
|
var t4, n4, r5;
|
|
93740
|
-
const o4 = { nodeType: e5.nodeType, nodeName: e5.nodeName, attributes:
|
|
93773
|
+
const o4 = { nodeType: e5.nodeType, nodeName: e5.nodeName, attributes: Yl(e5).map((t5) => {
|
|
93741
93774
|
let n5 = e5.attributes[t5].value;
|
|
93742
93775
|
const r6 = e5.attributes[t5].name;
|
|
93743
|
-
return n5.includes("blob:") ? n5 = n5.replace(/blob:/g, "") :
|
|
93776
|
+
return n5.includes("blob:") ? n5 = n5.replace(/blob:/g, "") : Hl.test(r6) ? n5 = "" : "IFRAME" === e5.nodeName && d(e5) && "src" === r6 && "about:blank" !== e5.contentDocument.location.href && e5.contentDocument.location.href !== y(n5, e5.ownerDocument.location.href) ? n5 = e5.contentDocument.location.href : "style" === r6 && (n5 = function(e6) {
|
|
93744
93777
|
const t6 = { type: "DeclarationList", children: fl(e6) };
|
|
93745
93778
|
return Xs(t6);
|
|
93746
93779
|
}(e5.style)), { name: r6, value: n5 };
|
|
@@ -93752,44 +93785,44 @@ var require_processPagePollCjs = __commonJS({
|
|
|
93752
93785
|
}
|
|
93753
93786
|
!e5.attributes.getNamedItem("checked") && e5.checked && o4.attributes.push({ name: "checked" }), e5.indeterminate && o4.attributes.push({ name: "data-applitools-js-properties", value: JSON.stringify({ indeterminate: true }) });
|
|
93754
93787
|
}
|
|
93755
|
-
if ("INPUT" === e5.tagName &&
|
|
93788
|
+
if ("INPUT" === e5.tagName && Kl.has(e5.type)) {
|
|
93756
93789
|
const i4 = null !== e5.attributes.getNamedItem("value"), a4 = null !== (n4 = null === (t4 = e5.attributes.getNamedItem("value")) || void 0 === t4 ? void 0 : t4.value) && void 0 !== n4 ? n4 : "", s4 = null !== (r5 = e5.value) && void 0 !== r5 ? r5 : "";
|
|
93757
|
-
i4 && a4 === s4 ||
|
|
93790
|
+
i4 && a4 === s4 || Xl(o4.attributes, "value", s4);
|
|
93758
93791
|
}
|
|
93759
|
-
return "OPTION" === e5.tagName && e5.parentElement && e5.parentElement.selectedOptions && Array.from(e5.parentElement.selectedOptions).indexOf(
|
|
93792
|
+
return "OPTION" === e5.tagName && e5.parentElement && e5.parentElement.selectedOptions && Array.from(e5.parentElement.selectedOptions).indexOf(Zl.unwrap(e5)) > -1 && Xl(o4.attributes, "selected", ""), "STYLE" === e5.tagName && e5.sheet && e5.sheet.disabled && o4.attributes.push({ name: "data-applitools-disabled", value: "" }), "LINK" === e5.tagName && "text/css" === e5.type && e5.sheet && e5.sheet.disabled && Xl(o4.attributes, "disabled", ""), o4;
|
|
93760
93793
|
}(g2), "STYLE" === g2.nodeName && g2.sheet && g2.sheet.cssRules.length ? (e4.push(function(e5, t4, n4) {
|
|
93761
93794
|
const r5 = (o4 = e5, function(e6) {
|
|
93762
93795
|
return t5 = function(e7) {
|
|
93763
93796
|
const t6 = e7.length, n5 = [1732584193, -271733879, -1732584194, 271733878];
|
|
93764
93797
|
let r6;
|
|
93765
93798
|
for (r6 = 64; r6 <= e7.length; r6 += 64)
|
|
93766
|
-
|
|
93799
|
+
Ol(n5, Il(e7.substring(r6 - 64, r6)));
|
|
93767
93800
|
e7 = e7.substring(r6 - 64);
|
|
93768
93801
|
const o5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
93769
93802
|
for (r6 = 0; r6 < e7.length; r6++)
|
|
93770
93803
|
o5[r6 >> 2] |= e7.charCodeAt(r6) << (r6 % 4 << 3);
|
|
93771
93804
|
if (o5[r6 >> 2] |= 128 << (r6 % 4 << 3), r6 > 55)
|
|
93772
|
-
for (
|
|
93805
|
+
for (Ol(n5, o5), r6 = 0; r6 < 16; r6++)
|
|
93773
93806
|
o5[r6] = 0;
|
|
93774
|
-
return o5[14] = 8 * t6,
|
|
93775
|
-
}(e6), t5.map(
|
|
93807
|
+
return o5[14] = 8 * t6, Ol(n5, o5), n5;
|
|
93808
|
+
}(e6), t5.map(Pl).join("");
|
|
93776
93809
|
var t5;
|
|
93777
93810
|
}(Array.prototype.map.call(o4.sheet.cssRules, (e6) => e6.cssText).join("")));
|
|
93778
93811
|
var o4;
|
|
93779
|
-
return n4.__dsNodeCache && n4.__dsNodeCache.key === r5 ? t4.log("[domNodesToCdt] using cache for inline css of", zl(e5)) : n4.__dsNodeCache = { key: r5, value:
|
|
93812
|
+
return n4.__dsNodeCache && n4.__dsNodeCache.key === r5 ? t4.log("[domNodesToCdt] using cache for inline css of", zl(e5)) : n4.__dsNodeCache = { key: r5, value: Tl(e5, t4) }, { nodeType: Node.TEXT_NODE, nodeValue: n4.__dsNodeCache.value };
|
|
93780
93813
|
}(g2, n3, r4)), b2.childNodeIndexes = [e4.length - 1]) : "TEXTAREA" === g2.tagName && g2.value !== g2.textContent ? (e4.push(function(e5) {
|
|
93781
93814
|
return { nodeType: Node.TEXT_NODE, nodeValue: e5.value };
|
|
93782
93815
|
}(g2)), b2.childNodeIndexes = [e4.length - 1]) : b2.childNodeIndexes = !c3 && g2.childNodes.length ? p2(e4, g2.childNodes) : [], c3 && "SLOT" === g2.tagName && "function" == typeof g2.assignedNodes) {
|
|
93783
93816
|
const t4 = g2.assignedNodes();
|
|
93784
93817
|
b2.childNodeIndexes = b2.childNodeIndexes || [], b2.childNodeIndexes = t4.length ? b2.childNodeIndexes.concat(p2(e4, t4)) : b2.childNodeIndexes;
|
|
93785
93818
|
}
|
|
93786
|
-
if (g2.shadowRoot && (c3 ? b2.childNodeIndexes = b2.childNodeIndexes.concat(p2(e4, g2.shadowRoot.childNodes)) : (b2.shadowRootIndex = m2(e4, g2.shadowRoot), o3.push(g2.shadowRoot))), "CANVAS" === g2.nodeName && !
|
|
93819
|
+
if (g2.shadowRoot && (c3 ? b2.childNodeIndexes = b2.childNodeIndexes.concat(p2(e4, g2.shadowRoot.childNodes)) : (b2.shadowRootIndex = m2(e4, g2.shadowRoot), o3.push(g2.shadowRoot))), "CANVAS" === g2.nodeName && !ql(r4)) {
|
|
93787
93820
|
const e5 = y(`applitools-canvas-${S()}.png`, t3);
|
|
93788
93821
|
b2.attributes.push({ name: "data-applitools-src", value: e5 }), i3.push({ element: g2, cdtNode: b2, url: e5 });
|
|
93789
93822
|
}
|
|
93790
93823
|
if ("IFRAME" === g2.nodeName) {
|
|
93791
93824
|
const n4 = S();
|
|
93792
|
-
if (g2.setAttribute("data-applitools-selector", n4.toString()),
|
|
93825
|
+
if (g2.setAttribute("data-applitools-selector", n4.toString()), ql(r4))
|
|
93793
93826
|
b2.attributes.forEach((e5) => {
|
|
93794
93827
|
"src" !== e5.name && "srcdoc" !== e5.name || (b2.attributes.push({ name: `data-applitools-original-${e5.name}`, value: e5.value }), e5.value = "");
|
|
93795
93828
|
});
|
|
@@ -93806,7 +93839,7 @@ var require_processPagePollCjs = __commonJS({
|
|
|
93806
93839
|
l2.push({ selector: t4, index: e4.length });
|
|
93807
93840
|
}
|
|
93808
93841
|
}
|
|
93809
|
-
g2.adoptedStyleSheets && g2.adoptedStyleSheets.length > 0 && (b2.exp_adoptedStyleSheets =
|
|
93842
|
+
g2.adoptedStyleSheets && g2.adoptedStyleSheets.length > 0 && (b2.exp_adoptedStyleSheets = Ql(g2, n3));
|
|
93810
93843
|
}
|
|
93811
93844
|
if (g2.nodeType === Node.ELEMENT_NODE) {
|
|
93812
93845
|
const e5 = function(e6) {
|
|
@@ -93820,7 +93853,7 @@ var require_processPagePollCjs = __commonJS({
|
|
|
93820
93853
|
for (; (a4 = o4.exec(t6)) && (r6.push(n5(a4)), i4); )
|
|
93821
93854
|
;
|
|
93822
93855
|
return r6;
|
|
93823
|
-
}(
|
|
93856
|
+
}(Ml, t5, (e7) => e7[1]));
|
|
93824
93857
|
}
|
|
93825
93858
|
if (t4('img[src],source[src],input[type="image"][src],audio[src],video[src]')) {
|
|
93826
93859
|
const t5 = e6.getAttribute("src");
|
|
@@ -93851,7 +93884,7 @@ var require_processPagePollCjs = __commonJS({
|
|
|
93851
93884
|
}
|
|
93852
93885
|
const r5 = function(e7) {
|
|
93853
93886
|
if (e7.hasAttribute("style"))
|
|
93854
|
-
return
|
|
93887
|
+
return Ul(e7.style);
|
|
93855
93888
|
}(e6);
|
|
93856
93889
|
return r5 && (n4 = n4.concat(r5)), n4;
|
|
93857
93890
|
}(g2);
|
|
@@ -93873,27 +93906,27 @@ var require_processPagePollCjs = __commonJS({
|
|
|
93873
93906
|
return b2 ? (e4.push(b2), e4.length - 1) : null;
|
|
93874
93907
|
}
|
|
93875
93908
|
}
|
|
93876
|
-
function
|
|
93909
|
+
function Yl(e3) {
|
|
93877
93910
|
return Object.keys(e3.attributes || {}).filter((t3) => e3.attributes[t3] && e3.attributes[t3].name);
|
|
93878
93911
|
}
|
|
93879
|
-
function
|
|
93912
|
+
function Xl(e3, t3, n3) {
|
|
93880
93913
|
const r3 = e3.find((e4) => e4.name === t3);
|
|
93881
93914
|
r3 ? r3.value = n3 : e3.push({ name: t3, value: n3 });
|
|
93882
93915
|
}
|
|
93883
|
-
function
|
|
93916
|
+
function Ql(e3, t3) {
|
|
93884
93917
|
return Array.from(e3.adoptedStyleSheets).map((n3) => function(e4, t4, n4) {
|
|
93885
93918
|
const r3 = yl(e4.cssRules, t4, n4);
|
|
93886
93919
|
return Xs(il({ type: "StyleSheet", children: r3 }));
|
|
93887
93920
|
}(n3, t3, e3));
|
|
93888
93921
|
}
|
|
93889
|
-
function
|
|
93922
|
+
function Jl(e3) {
|
|
93890
93923
|
const t3 = [];
|
|
93891
93924
|
return new Set(e3).forEach((e4) => e4 && t3.push(e4)), t3;
|
|
93892
93925
|
}
|
|
93893
|
-
function
|
|
93894
|
-
return e3.reduce(({ resourceUrls: e4, blobsObj: t3 }, { resourceUrls: n3, blobsObj: r3 }) => ({ resourceUrls:
|
|
93926
|
+
function ec(e3) {
|
|
93927
|
+
return e3.reduce(({ resourceUrls: e4, blobsObj: t3 }, { resourceUrls: n3, blobsObj: r3 }) => ({ resourceUrls: Jl(e4.concat(n3)), blobsObj: Object.assign(t3, r3) }), { resourceUrls: [], blobsObj: {} });
|
|
93895
93928
|
}
|
|
93896
|
-
var
|
|
93929
|
+
var tc = {};
|
|
93897
93930
|
!function(e3) {
|
|
93898
93931
|
var t3 = "undefined" != typeof Uint8Array && "undefined" != typeof Uint16Array && "undefined" != typeof Int32Array;
|
|
93899
93932
|
function n3(e4, t4) {
|
|
@@ -93935,102 +93968,102 @@ var require_processPagePollCjs = __commonJS({
|
|
|
93935
93968
|
e3.setTyped = function(t4) {
|
|
93936
93969
|
t4 ? (e3.Buf8 = Uint8Array, e3.Buf16 = Uint16Array, e3.Buf32 = Int32Array, e3.assign(e3, r3)) : (e3.Buf8 = Array, e3.Buf16 = Array, e3.Buf32 = Array, e3.assign(e3, o3));
|
|
93937
93970
|
}, e3.setTyped(t3);
|
|
93938
|
-
}(
|
|
93939
|
-
var
|
|
93940
|
-
function
|
|
93971
|
+
}(tc);
|
|
93972
|
+
var nc = {}, rc = {}, oc = {}, ic = tc;
|
|
93973
|
+
function ac(e3) {
|
|
93941
93974
|
for (var t3 = e3.length; --t3 >= 0; )
|
|
93942
93975
|
e3[t3] = 0;
|
|
93943
93976
|
}
|
|
93944
|
-
var
|
|
93945
|
-
|
|
93946
|
-
var
|
|
93947
|
-
|
|
93948
|
-
var
|
|
93949
|
-
|
|
93950
|
-
var
|
|
93951
|
-
|
|
93952
|
-
var
|
|
93953
|
-
|
|
93954
|
-
var
|
|
93955
|
-
function
|
|
93977
|
+
var sc = 256, lc = 286, cc = 30, uc = 15, hc = 16, dc = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], pc = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], mc = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], fc = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], gc = new Array(576);
|
|
93978
|
+
ac(gc);
|
|
93979
|
+
var bc = new Array(60);
|
|
93980
|
+
ac(bc);
|
|
93981
|
+
var yc = new Array(512);
|
|
93982
|
+
ac(yc);
|
|
93983
|
+
var kc = new Array(256);
|
|
93984
|
+
ac(kc);
|
|
93985
|
+
var wc = new Array(29);
|
|
93986
|
+
ac(wc);
|
|
93987
|
+
var vc, xc, _c, Sc = new Array(cc);
|
|
93988
|
+
function Cc(e3, t3, n3, r3, o3) {
|
|
93956
93989
|
this.static_tree = e3, this.extra_bits = t3, this.extra_base = n3, this.elems = r3, this.max_length = o3, this.has_stree = e3 && e3.length;
|
|
93957
93990
|
}
|
|
93958
|
-
function
|
|
93991
|
+
function zc(e3, t3) {
|
|
93959
93992
|
this.dyn_tree = e3, this.max_code = 0, this.stat_desc = t3;
|
|
93960
93993
|
}
|
|
93961
|
-
function
|
|
93962
|
-
return e3 < 256 ?
|
|
93994
|
+
function Ac(e3) {
|
|
93995
|
+
return e3 < 256 ? yc[e3] : yc[256 + (e3 >>> 7)];
|
|
93963
93996
|
}
|
|
93964
|
-
function
|
|
93997
|
+
function Tc(e3, t3) {
|
|
93965
93998
|
e3.pending_buf[e3.pending++] = 255 & t3, e3.pending_buf[e3.pending++] = t3 >>> 8 & 255;
|
|
93966
93999
|
}
|
|
93967
|
-
function Tc(e3, t3, n3) {
|
|
93968
|
-
e3.bi_valid > uc - n3 ? (e3.bi_buf |= t3 << e3.bi_valid & 65535, Ac(e3, e3.bi_buf), e3.bi_buf = t3 >> uc - e3.bi_valid, e3.bi_valid += n3 - uc) : (e3.bi_buf |= t3 << e3.bi_valid & 65535, e3.bi_valid += n3);
|
|
93969
|
-
}
|
|
93970
94000
|
function Oc(e3, t3, n3) {
|
|
93971
|
-
Tc(e3,
|
|
94001
|
+
e3.bi_valid > hc - n3 ? (e3.bi_buf |= t3 << e3.bi_valid & 65535, Tc(e3, e3.bi_buf), e3.bi_buf = t3 >> hc - e3.bi_valid, e3.bi_valid += n3 - hc) : (e3.bi_buf |= t3 << e3.bi_valid & 65535, e3.bi_valid += n3);
|
|
94002
|
+
}
|
|
94003
|
+
function Lc(e3, t3, n3) {
|
|
94004
|
+
Oc(e3, n3[2 * t3], n3[2 * t3 + 1]);
|
|
93972
94005
|
}
|
|
93973
|
-
function
|
|
94006
|
+
function Ec(e3, t3) {
|
|
93974
94007
|
var n3 = 0;
|
|
93975
94008
|
do {
|
|
93976
94009
|
n3 |= 1 & e3, e3 >>>= 1, n3 <<= 1;
|
|
93977
94010
|
} while (--t3 > 0);
|
|
93978
94011
|
return n3 >>> 1;
|
|
93979
94012
|
}
|
|
93980
|
-
function
|
|
93981
|
-
var r3, o3, i3 = new Array(
|
|
93982
|
-
for (r3 = 1; r3 <=
|
|
94013
|
+
function Rc(e3, t3, n3) {
|
|
94014
|
+
var r3, o3, i3 = new Array(uc + 1), a3 = 0;
|
|
94015
|
+
for (r3 = 1; r3 <= uc; r3++)
|
|
93983
94016
|
i3[r3] = a3 = a3 + n3[r3 - 1] << 1;
|
|
93984
94017
|
for (o3 = 0; o3 <= t3; o3++) {
|
|
93985
94018
|
var s3 = e3[2 * o3 + 1];
|
|
93986
|
-
0 !== s3 && (e3[2 * o3] =
|
|
94019
|
+
0 !== s3 && (e3[2 * o3] = Ec(i3[s3]++, s3));
|
|
93987
94020
|
}
|
|
93988
94021
|
}
|
|
93989
|
-
function
|
|
94022
|
+
function Nc(e3) {
|
|
93990
94023
|
var t3;
|
|
93991
|
-
for (t3 = 0; t3 < sc; t3++)
|
|
93992
|
-
e3.dyn_ltree[2 * t3] = 0;
|
|
93993
94024
|
for (t3 = 0; t3 < lc; t3++)
|
|
94025
|
+
e3.dyn_ltree[2 * t3] = 0;
|
|
94026
|
+
for (t3 = 0; t3 < cc; t3++)
|
|
93994
94027
|
e3.dyn_dtree[2 * t3] = 0;
|
|
93995
94028
|
for (t3 = 0; t3 < 19; t3++)
|
|
93996
94029
|
e3.bl_tree[2 * t3] = 0;
|
|
93997
94030
|
e3.dyn_ltree[512] = 1, e3.opt_len = e3.static_len = 0, e3.last_lit = e3.matches = 0;
|
|
93998
94031
|
}
|
|
93999
|
-
function
|
|
94000
|
-
e3.bi_valid > 8 ?
|
|
94032
|
+
function jc(e3) {
|
|
94033
|
+
e3.bi_valid > 8 ? Tc(e3, e3.bi_buf) : e3.bi_valid > 0 && (e3.pending_buf[e3.pending++] = e3.bi_buf), e3.bi_buf = 0, e3.bi_valid = 0;
|
|
94001
94034
|
}
|
|
94002
|
-
function
|
|
94035
|
+
function Ic(e3, t3, n3, r3) {
|
|
94003
94036
|
var o3 = 2 * t3, i3 = 2 * n3;
|
|
94004
94037
|
return e3[o3] < e3[i3] || e3[o3] === e3[i3] && r3[t3] <= r3[n3];
|
|
94005
94038
|
}
|
|
94006
|
-
function
|
|
94007
|
-
for (var r3 = e3.heap[n3], o3 = n3 << 1; o3 <= e3.heap_len && (o3 < e3.heap_len &&
|
|
94039
|
+
function Dc(e3, t3, n3) {
|
|
94040
|
+
for (var r3 = e3.heap[n3], o3 = n3 << 1; o3 <= e3.heap_len && (o3 < e3.heap_len && Ic(t3, e3.heap[o3 + 1], e3.heap[o3], e3.depth) && o3++, !Ic(t3, r3, e3.heap[o3], e3.depth)); )
|
|
94008
94041
|
e3.heap[n3] = e3.heap[o3], n3 = o3, o3 <<= 1;
|
|
94009
94042
|
e3.heap[n3] = r3;
|
|
94010
94043
|
}
|
|
94011
|
-
function
|
|
94044
|
+
function Pc(e3, t3, n3) {
|
|
94012
94045
|
var r3, o3, i3, a3, s3 = 0;
|
|
94013
94046
|
if (0 !== e3.last_lit)
|
|
94014
94047
|
do {
|
|
94015
|
-
r3 = e3.pending_buf[e3.d_buf + 2 * s3] << 8 | e3.pending_buf[e3.d_buf + 2 * s3 + 1], o3 = e3.pending_buf[e3.l_buf + s3], s3++, 0 === r3 ?
|
|
94048
|
+
r3 = e3.pending_buf[e3.d_buf + 2 * s3] << 8 | e3.pending_buf[e3.d_buf + 2 * s3 + 1], o3 = e3.pending_buf[e3.l_buf + s3], s3++, 0 === r3 ? Lc(e3, o3, t3) : (Lc(e3, (i3 = kc[o3]) + sc + 1, t3), 0 !== (a3 = dc[i3]) && Oc(e3, o3 -= wc[i3], a3), Lc(e3, i3 = Ac(--r3), n3), 0 !== (a3 = pc[i3]) && Oc(e3, r3 -= Sc[i3], a3));
|
|
94016
94049
|
} while (s3 < e3.last_lit);
|
|
94017
|
-
|
|
94050
|
+
Lc(e3, 256, t3);
|
|
94018
94051
|
}
|
|
94019
|
-
function
|
|
94052
|
+
function Bc(e3, t3) {
|
|
94020
94053
|
var n3, r3, o3, i3 = t3.dyn_tree, a3 = t3.stat_desc.static_tree, s3 = t3.stat_desc.has_stree, l2 = t3.stat_desc.elems, c2 = -1;
|
|
94021
94054
|
for (e3.heap_len = 0, e3.heap_max = 573, n3 = 0; n3 < l2; n3++)
|
|
94022
94055
|
0 !== i3[2 * n3] ? (e3.heap[++e3.heap_len] = c2 = n3, e3.depth[n3] = 0) : i3[2 * n3 + 1] = 0;
|
|
94023
94056
|
for (; e3.heap_len < 2; )
|
|
94024
94057
|
i3[2 * (o3 = e3.heap[++e3.heap_len] = c2 < 2 ? ++c2 : 0)] = 1, e3.depth[o3] = 0, e3.opt_len--, s3 && (e3.static_len -= a3[2 * o3 + 1]);
|
|
94025
94058
|
for (t3.max_code = c2, n3 = e3.heap_len >> 1; n3 >= 1; n3--)
|
|
94026
|
-
|
|
94059
|
+
Dc(e3, i3, n3);
|
|
94027
94060
|
o3 = l2;
|
|
94028
94061
|
do {
|
|
94029
|
-
n3 = e3.heap[1], e3.heap[1] = e3.heap[e3.heap_len--],
|
|
94062
|
+
n3 = e3.heap[1], e3.heap[1] = e3.heap[e3.heap_len--], Dc(e3, i3, 1), r3 = e3.heap[1], e3.heap[--e3.heap_max] = n3, e3.heap[--e3.heap_max] = r3, i3[2 * o3] = i3[2 * n3] + i3[2 * r3], e3.depth[o3] = (e3.depth[n3] >= e3.depth[r3] ? e3.depth[n3] : e3.depth[r3]) + 1, i3[2 * n3 + 1] = i3[2 * r3 + 1] = o3, e3.heap[1] = o3++, Dc(e3, i3, 1);
|
|
94030
94063
|
} while (e3.heap_len >= 2);
|
|
94031
94064
|
e3.heap[--e3.heap_max] = e3.heap[1], function(e4, t4) {
|
|
94032
94065
|
var n4, r4, o4, i4, a4, s4, l3 = t4.dyn_tree, c3 = t4.max_code, u2 = t4.stat_desc.static_tree, h2 = t4.stat_desc.has_stree, d2 = t4.stat_desc.extra_bits, p2 = t4.stat_desc.extra_base, m2 = t4.stat_desc.max_length, f2 = 0;
|
|
94033
|
-
for (i4 = 0; i4 <=
|
|
94066
|
+
for (i4 = 0; i4 <= uc; i4++)
|
|
94034
94067
|
e4.bl_count[i4] = 0;
|
|
94035
94068
|
for (l3[2 * e4.heap[e4.heap_max] + 1] = 0, n4 = e4.heap_max + 1; n4 < 573; n4++)
|
|
94036
94069
|
(i4 = l3[2 * l3[2 * (r4 = e4.heap[n4]) + 1] + 1] + 1) > m2 && (i4 = m2, f2++), l3[2 * r4 + 1] = i4, r4 > c3 || (e4.bl_count[i4]++, a4 = 0, r4 >= p2 && (a4 = d2[r4 - p2]), s4 = l3[2 * r4], e4.opt_len += s4 * (i4 + a4), h2 && (e4.static_len += s4 * (u2[2 * r4 + 1] + a4)));
|
|
@@ -94044,60 +94077,60 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94044
94077
|
for (r4 = e4.bl_count[i4]; 0 !== r4; )
|
|
94045
94078
|
(o4 = e4.heap[--n4]) > c3 || (l3[2 * o4 + 1] !== i4 && (e4.opt_len += (i4 - l3[2 * o4 + 1]) * l3[2 * o4], l3[2 * o4 + 1] = i4), r4--);
|
|
94046
94079
|
}
|
|
94047
|
-
}(e3, t3),
|
|
94080
|
+
}(e3, t3), Rc(i3, c2, e3.bl_count);
|
|
94048
94081
|
}
|
|
94049
|
-
function
|
|
94082
|
+
function Fc(e3, t3, n3) {
|
|
94050
94083
|
var r3, o3, i3 = -1, a3 = t3[1], s3 = 0, l2 = 7, c2 = 4;
|
|
94051
94084
|
for (0 === a3 && (l2 = 138, c2 = 3), t3[2 * (n3 + 1) + 1] = 65535, r3 = 0; r3 <= n3; r3++)
|
|
94052
94085
|
o3 = a3, a3 = t3[2 * (r3 + 1) + 1], ++s3 < l2 && o3 === a3 || (s3 < c2 ? e3.bl_tree[2 * o3] += s3 : 0 !== o3 ? (o3 !== i3 && e3.bl_tree[2 * o3]++, e3.bl_tree[32]++) : s3 <= 10 ? e3.bl_tree[34]++ : e3.bl_tree[36]++, s3 = 0, i3 = o3, 0 === a3 ? (l2 = 138, c2 = 3) : o3 === a3 ? (l2 = 6, c2 = 3) : (l2 = 7, c2 = 4));
|
|
94053
94086
|
}
|
|
94054
|
-
function
|
|
94087
|
+
function Uc(e3, t3, n3) {
|
|
94055
94088
|
var r3, o3, i3 = -1, a3 = t3[1], s3 = 0, l2 = 7, c2 = 4;
|
|
94056
94089
|
for (0 === a3 && (l2 = 138, c2 = 3), r3 = 0; r3 <= n3; r3++)
|
|
94057
94090
|
if (o3 = a3, a3 = t3[2 * (r3 + 1) + 1], !(++s3 < l2 && o3 === a3)) {
|
|
94058
94091
|
if (s3 < c2)
|
|
94059
94092
|
do {
|
|
94060
|
-
|
|
94093
|
+
Lc(e3, o3, e3.bl_tree);
|
|
94061
94094
|
} while (0 != --s3);
|
|
94062
94095
|
else
|
|
94063
|
-
0 !== o3 ? (o3 !== i3 && (
|
|
94096
|
+
0 !== o3 ? (o3 !== i3 && (Lc(e3, o3, e3.bl_tree), s3--), Lc(e3, 16, e3.bl_tree), Oc(e3, s3 - 3, 2)) : s3 <= 10 ? (Lc(e3, 17, e3.bl_tree), Oc(e3, s3 - 3, 3)) : (Lc(e3, 18, e3.bl_tree), Oc(e3, s3 - 11, 7));
|
|
94064
94097
|
s3 = 0, i3 = o3, 0 === a3 ? (l2 = 138, c2 = 3) : o3 === a3 ? (l2 = 6, c2 = 3) : (l2 = 7, c2 = 4);
|
|
94065
94098
|
}
|
|
94066
94099
|
}
|
|
94067
|
-
|
|
94068
|
-
var
|
|
94069
|
-
function
|
|
94070
|
-
|
|
94071
|
-
|
|
94100
|
+
ac(Sc);
|
|
94101
|
+
var Mc = false;
|
|
94102
|
+
function qc(e3, t3, n3, r3) {
|
|
94103
|
+
Oc(e3, 0 + (r3 ? 1 : 0), 3), function(e4, t4, n4, r4) {
|
|
94104
|
+
jc(e4), Tc(e4, n4), Tc(e4, ~n4), ic.arraySet(e4.pending_buf, e4.window, t4, n4, e4.pending), e4.pending += n4;
|
|
94072
94105
|
}(e3, t3, n3);
|
|
94073
94106
|
}
|
|
94074
|
-
|
|
94075
|
-
|
|
94076
|
-
var e4, t3, n3, r3, o3, i3 = new Array(
|
|
94107
|
+
oc._tr_init = function(e3) {
|
|
94108
|
+
Mc || (function() {
|
|
94109
|
+
var e4, t3, n3, r3, o3, i3 = new Array(uc + 1);
|
|
94077
94110
|
for (n3 = 0, r3 = 0; r3 < 28; r3++)
|
|
94078
|
-
for (
|
|
94079
|
-
|
|
94080
|
-
for (
|
|
94081
|
-
for (
|
|
94082
|
-
|
|
94083
|
-
for (o3 >>= 7; r3 <
|
|
94084
|
-
for (
|
|
94085
|
-
|
|
94086
|
-
for (t3 = 0; t3 <=
|
|
94111
|
+
for (wc[r3] = n3, e4 = 0; e4 < 1 << dc[r3]; e4++)
|
|
94112
|
+
kc[n3++] = r3;
|
|
94113
|
+
for (kc[n3 - 1] = r3, o3 = 0, r3 = 0; r3 < 16; r3++)
|
|
94114
|
+
for (Sc[r3] = o3, e4 = 0; e4 < 1 << pc[r3]; e4++)
|
|
94115
|
+
yc[o3++] = r3;
|
|
94116
|
+
for (o3 >>= 7; r3 < cc; r3++)
|
|
94117
|
+
for (Sc[r3] = o3 << 7, e4 = 0; e4 < 1 << pc[r3] - 7; e4++)
|
|
94118
|
+
yc[256 + o3++] = r3;
|
|
94119
|
+
for (t3 = 0; t3 <= uc; t3++)
|
|
94087
94120
|
i3[t3] = 0;
|
|
94088
94121
|
for (e4 = 0; e4 <= 143; )
|
|
94089
|
-
|
|
94122
|
+
gc[2 * e4 + 1] = 8, e4++, i3[8]++;
|
|
94090
94123
|
for (; e4 <= 255; )
|
|
94091
|
-
|
|
94124
|
+
gc[2 * e4 + 1] = 9, e4++, i3[9]++;
|
|
94092
94125
|
for (; e4 <= 279; )
|
|
94093
|
-
|
|
94126
|
+
gc[2 * e4 + 1] = 7, e4++, i3[7]++;
|
|
94094
94127
|
for (; e4 <= 287; )
|
|
94095
|
-
|
|
94096
|
-
for (
|
|
94097
|
-
|
|
94098
|
-
|
|
94099
|
-
}(),
|
|
94100
|
-
},
|
|
94128
|
+
gc[2 * e4 + 1] = 8, e4++, i3[8]++;
|
|
94129
|
+
for (Rc(gc, 287, i3), e4 = 0; e4 < cc; e4++)
|
|
94130
|
+
bc[2 * e4 + 1] = 5, bc[2 * e4] = Ec(e4, 5);
|
|
94131
|
+
vc = new Cc(gc, dc, 257, lc, uc), xc = new Cc(bc, pc, 0, cc, uc), _c = new Cc(new Array(0), mc, 0, 19, 7);
|
|
94132
|
+
}(), Mc = true), e3.l_desc = new zc(e3.dyn_ltree, vc), e3.d_desc = new zc(e3.dyn_dtree, xc), e3.bl_desc = new zc(e3.bl_tree, _c), e3.bi_buf = 0, e3.bi_valid = 0, Nc(e3);
|
|
94133
|
+
}, oc._tr_stored_block = qc, oc._tr_flush_block = function(e3, t3, n3, r3) {
|
|
94101
94134
|
var o3, i3, a3 = 0;
|
|
94102
94135
|
e3.level > 0 ? (2 === e3.strm.data_type && (e3.strm.data_type = function(e4) {
|
|
94103
94136
|
var t4, n4 = 4093624447;
|
|
@@ -94106,29 +94139,29 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94106
94139
|
return 0;
|
|
94107
94140
|
if (0 !== e4.dyn_ltree[18] || 0 !== e4.dyn_ltree[20] || 0 !== e4.dyn_ltree[26])
|
|
94108
94141
|
return 1;
|
|
94109
|
-
for (t4 = 32; t4 <
|
|
94142
|
+
for (t4 = 32; t4 < sc; t4++)
|
|
94110
94143
|
if (0 !== e4.dyn_ltree[2 * t4])
|
|
94111
94144
|
return 1;
|
|
94112
94145
|
return 0;
|
|
94113
|
-
}(e3)),
|
|
94146
|
+
}(e3)), Bc(e3, e3.l_desc), Bc(e3, e3.d_desc), a3 = function(e4) {
|
|
94114
94147
|
var t4;
|
|
94115
|
-
for (
|
|
94148
|
+
for (Fc(e4, e4.dyn_ltree, e4.l_desc.max_code), Fc(e4, e4.dyn_dtree, e4.d_desc.max_code), Bc(e4, e4.bl_desc), t4 = 18; t4 >= 3 && 0 === e4.bl_tree[2 * fc[t4] + 1]; t4--)
|
|
94116
94149
|
;
|
|
94117
94150
|
return e4.opt_len += 3 * (t4 + 1) + 5 + 5 + 4, t4;
|
|
94118
|
-
}(e3), o3 = e3.opt_len + 3 + 7 >>> 3, (i3 = e3.static_len + 3 + 7 >>> 3) <= o3 && (o3 = i3)) : o3 = i3 = n3 + 5, n3 + 4 <= o3 && -1 !== t3 ?
|
|
94151
|
+
}(e3), o3 = e3.opt_len + 3 + 7 >>> 3, (i3 = e3.static_len + 3 + 7 >>> 3) <= o3 && (o3 = i3)) : o3 = i3 = n3 + 5, n3 + 4 <= o3 && -1 !== t3 ? qc(e3, t3, n3, r3) : 4 === e3.strategy || i3 === o3 ? (Oc(e3, 2 + (r3 ? 1 : 0), 3), Pc(e3, gc, bc)) : (Oc(e3, 4 + (r3 ? 1 : 0), 3), function(e4, t4, n4, r4) {
|
|
94119
94152
|
var o4;
|
|
94120
|
-
for (
|
|
94121
|
-
|
|
94122
|
-
|
|
94123
|
-
}(e3, e3.l_desc.max_code + 1, e3.d_desc.max_code + 1, a3 + 1),
|
|
94124
|
-
},
|
|
94125
|
-
return e3.pending_buf[e3.d_buf + 2 * e3.last_lit] = t3 >>> 8 & 255, e3.pending_buf[e3.d_buf + 2 * e3.last_lit + 1] = 255 & t3, e3.pending_buf[e3.l_buf + e3.last_lit] = 255 & n3, e3.last_lit++, 0 === t3 ? e3.dyn_ltree[2 * n3]++ : (e3.matches++, t3--, e3.dyn_ltree[2 * (
|
|
94126
|
-
},
|
|
94127
|
-
|
|
94128
|
-
16 === e4.bi_valid ? (
|
|
94153
|
+
for (Oc(e4, t4 - 257, 5), Oc(e4, n4 - 1, 5), Oc(e4, r4 - 4, 4), o4 = 0; o4 < r4; o4++)
|
|
94154
|
+
Oc(e4, e4.bl_tree[2 * fc[o4] + 1], 3);
|
|
94155
|
+
Uc(e4, e4.dyn_ltree, t4 - 1), Uc(e4, e4.dyn_dtree, n4 - 1);
|
|
94156
|
+
}(e3, e3.l_desc.max_code + 1, e3.d_desc.max_code + 1, a3 + 1), Pc(e3, e3.dyn_ltree, e3.dyn_dtree)), Nc(e3), r3 && jc(e3);
|
|
94157
|
+
}, oc._tr_tally = function(e3, t3, n3) {
|
|
94158
|
+
return e3.pending_buf[e3.d_buf + 2 * e3.last_lit] = t3 >>> 8 & 255, e3.pending_buf[e3.d_buf + 2 * e3.last_lit + 1] = 255 & t3, e3.pending_buf[e3.l_buf + e3.last_lit] = 255 & n3, e3.last_lit++, 0 === t3 ? e3.dyn_ltree[2 * n3]++ : (e3.matches++, t3--, e3.dyn_ltree[2 * (kc[n3] + sc + 1)]++, e3.dyn_dtree[2 * Ac(t3)]++), e3.last_lit === e3.lit_bufsize - 1;
|
|
94159
|
+
}, oc._tr_align = function(e3) {
|
|
94160
|
+
Oc(e3, 2, 3), Lc(e3, 256, gc), function(e4) {
|
|
94161
|
+
16 === e4.bi_valid ? (Tc(e4, e4.bi_buf), e4.bi_buf = 0, e4.bi_valid = 0) : e4.bi_valid >= 8 && (e4.pending_buf[e4.pending++] = 255 & e4.bi_buf, e4.bi_buf >>= 8, e4.bi_valid -= 8);
|
|
94129
94162
|
}(e3);
|
|
94130
94163
|
};
|
|
94131
|
-
var
|
|
94164
|
+
var Wc, $c = function(e3, t3, n3, r3) {
|
|
94132
94165
|
for (var o3 = 65535 & e3 | 0, i3 = e3 >>> 16 & 65535 | 0, a3 = 0; 0 !== n3; ) {
|
|
94133
94166
|
n3 -= a3 = n3 > 2e3 ? 2e3 : n3;
|
|
94134
94167
|
do {
|
|
@@ -94137,7 +94170,7 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94137
94170
|
o3 %= 65521, i3 %= 65521;
|
|
94138
94171
|
}
|
|
94139
94172
|
return o3 | i3 << 16 | 0;
|
|
94140
|
-
},
|
|
94173
|
+
}, Vc = function() {
|
|
94141
94174
|
for (var e3, t3 = [], n3 = 0; n3 < 256; n3++) {
|
|
94142
94175
|
e3 = n3;
|
|
94143
94176
|
for (var r3 = 0; r3 < 8; r3++)
|
|
@@ -94145,45 +94178,45 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94145
94178
|
t3[n3] = e3;
|
|
94146
94179
|
}
|
|
94147
94180
|
return t3;
|
|
94148
|
-
}(),
|
|
94149
|
-
var o3 =
|
|
94181
|
+
}(), Zc = function(e3, t3, n3, r3) {
|
|
94182
|
+
var o3 = Vc, i3 = r3 + n3;
|
|
94150
94183
|
e3 ^= -1;
|
|
94151
94184
|
for (var a3 = r3; a3 < i3; a3++)
|
|
94152
94185
|
e3 = e3 >>> 8 ^ o3[255 & (e3 ^ t3[a3])];
|
|
94153
94186
|
return -1 ^ e3;
|
|
94154
|
-
},
|
|
94155
|
-
function
|
|
94156
|
-
return e3.msg =
|
|
94187
|
+
}, Kc = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" }, Hc = tc, Gc = oc, Yc = $c, Xc = Zc, Qc = Kc, Jc = 0, eu = 0, tu = -2, nu = 2, ru = 8, ou = 286, iu = 30, au = 19, su = 2 * ou + 1, lu = 15, cu = 3, uu = 258, hu = uu + cu + 1, du = 42, pu = 103, mu = 113, fu = 666;
|
|
94188
|
+
function gu(e3, t3) {
|
|
94189
|
+
return e3.msg = Qc[t3], t3;
|
|
94157
94190
|
}
|
|
94158
|
-
function
|
|
94191
|
+
function bu(e3) {
|
|
94159
94192
|
return (e3 << 1) - (e3 > 4 ? 9 : 0);
|
|
94160
94193
|
}
|
|
94161
|
-
function
|
|
94194
|
+
function yu(e3) {
|
|
94162
94195
|
for (var t3 = e3.length; --t3 >= 0; )
|
|
94163
94196
|
e3[t3] = 0;
|
|
94164
94197
|
}
|
|
94165
|
-
function
|
|
94198
|
+
function ku(e3) {
|
|
94166
94199
|
var t3 = e3.state, n3 = t3.pending;
|
|
94167
|
-
n3 > e3.avail_out && (n3 = e3.avail_out), 0 !== n3 && (
|
|
94168
|
-
}
|
|
94169
|
-
function ku(e3, t3) {
|
|
94170
|
-
Hc._tr_flush_block(e3, e3.block_start >= 0 ? e3.block_start : -1, e3.strstart - e3.block_start, t3), e3.block_start = e3.strstart, yu(e3.strm);
|
|
94200
|
+
n3 > e3.avail_out && (n3 = e3.avail_out), 0 !== n3 && (Hc.arraySet(e3.output, t3.pending_buf, t3.pending_out, n3, e3.next_out), e3.next_out += n3, t3.pending_out += n3, e3.total_out += n3, e3.avail_out -= n3, t3.pending -= n3, 0 === t3.pending && (t3.pending_out = 0));
|
|
94171
94201
|
}
|
|
94172
94202
|
function wu(e3, t3) {
|
|
94173
|
-
e3.
|
|
94203
|
+
Gc._tr_flush_block(e3, e3.block_start >= 0 ? e3.block_start : -1, e3.strstart - e3.block_start, t3), e3.block_start = e3.strstart, ku(e3.strm);
|
|
94174
94204
|
}
|
|
94175
94205
|
function vu(e3, t3) {
|
|
94176
|
-
e3.pending_buf[e3.pending++] = t3
|
|
94206
|
+
e3.pending_buf[e3.pending++] = t3;
|
|
94177
94207
|
}
|
|
94178
94208
|
function xu(e3, t3) {
|
|
94179
|
-
|
|
94209
|
+
e3.pending_buf[e3.pending++] = t3 >>> 8 & 255, e3.pending_buf[e3.pending++] = 255 & t3;
|
|
94210
|
+
}
|
|
94211
|
+
function _u(e3, t3) {
|
|
94212
|
+
var n3, r3, o3 = e3.max_chain_length, i3 = e3.strstart, a3 = e3.prev_length, s3 = e3.nice_match, l2 = e3.strstart > e3.w_size - hu ? e3.strstart - (e3.w_size - hu) : 0, c2 = e3.window, u2 = e3.w_mask, h2 = e3.prev, d2 = e3.strstart + uu, p2 = c2[i3 + a3 - 1], m2 = c2[i3 + a3];
|
|
94180
94213
|
e3.prev_length >= e3.good_match && (o3 >>= 2), s3 > e3.lookahead && (s3 = e3.lookahead);
|
|
94181
94214
|
do {
|
|
94182
94215
|
if (c2[(n3 = t3) + a3] === m2 && c2[n3 + a3 - 1] === p2 && c2[n3] === c2[i3] && c2[++n3] === c2[i3 + 1]) {
|
|
94183
94216
|
i3 += 2, n3++;
|
|
94184
94217
|
do {
|
|
94185
94218
|
} while (c2[++i3] === c2[++n3] && c2[++i3] === c2[++n3] && c2[++i3] === c2[++n3] && c2[++i3] === c2[++n3] && c2[++i3] === c2[++n3] && c2[++i3] === c2[++n3] && c2[++i3] === c2[++n3] && c2[++i3] === c2[++n3] && i3 < d2);
|
|
94186
|
-
if (r3 =
|
|
94219
|
+
if (r3 = uu - (d2 - i3), i3 = d2 - uu, r3 > a3) {
|
|
94187
94220
|
if (e3.match_start = t3, a3 = r3, r3 >= s3)
|
|
94188
94221
|
break;
|
|
94189
94222
|
p2 = c2[i3 + a3 - 1], m2 = c2[i3 + a3];
|
|
@@ -94192,11 +94225,11 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94192
94225
|
} while ((t3 = h2[t3 & u2]) > l2 && 0 != --o3);
|
|
94193
94226
|
return a3 <= e3.lookahead ? a3 : e3.lookahead;
|
|
94194
94227
|
}
|
|
94195
|
-
function
|
|
94228
|
+
function Su(e3) {
|
|
94196
94229
|
var t3, n3, r3, o3, i3, a3, s3, l2, c2, u2, h2 = e3.w_size;
|
|
94197
94230
|
do {
|
|
94198
|
-
if (o3 = e3.window_size - e3.lookahead - e3.strstart, e3.strstart >= h2 + (h2 -
|
|
94199
|
-
|
|
94231
|
+
if (o3 = e3.window_size - e3.lookahead - e3.strstart, e3.strstart >= h2 + (h2 - hu)) {
|
|
94232
|
+
Hc.arraySet(e3.window, e3.window, h2, h2, 0), e3.match_start -= h2, e3.strstart -= h2, e3.block_start -= h2, t3 = n3 = e3.hash_size;
|
|
94200
94233
|
do {
|
|
94201
94234
|
r3 = e3.head[--t3], e3.head[t3] = r3 >= h2 ? r3 - h2 : 0;
|
|
94202
94235
|
} while (--n3);
|
|
@@ -94208,309 +94241,309 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94208
94241
|
}
|
|
94209
94242
|
if (0 === e3.strm.avail_in)
|
|
94210
94243
|
break;
|
|
94211
|
-
if (a3 = e3.strm, s3 = e3.window, l2 = e3.strstart + e3.lookahead, c2 = o3, u2 = void 0, (u2 = a3.avail_in) > c2 && (u2 = c2), n3 = 0 === u2 ? 0 : (a3.avail_in -= u2,
|
|
94212
|
-
for (i3 = e3.strstart - e3.insert, e3.ins_h = e3.window[i3], e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[i3 + 1]) & e3.hash_mask; e3.insert && (e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[i3 +
|
|
94244
|
+
if (a3 = e3.strm, s3 = e3.window, l2 = e3.strstart + e3.lookahead, c2 = o3, u2 = void 0, (u2 = a3.avail_in) > c2 && (u2 = c2), n3 = 0 === u2 ? 0 : (a3.avail_in -= u2, Hc.arraySet(s3, a3.input, a3.next_in, u2, l2), 1 === a3.state.wrap ? a3.adler = Yc(a3.adler, s3, u2, l2) : 2 === a3.state.wrap && (a3.adler = Xc(a3.adler, s3, u2, l2)), a3.next_in += u2, a3.total_in += u2, u2), e3.lookahead += n3, e3.lookahead + e3.insert >= cu)
|
|
94245
|
+
for (i3 = e3.strstart - e3.insert, e3.ins_h = e3.window[i3], e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[i3 + 1]) & e3.hash_mask; e3.insert && (e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[i3 + cu - 1]) & e3.hash_mask, e3.prev[i3 & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = i3, i3++, e3.insert--, !(e3.lookahead + e3.insert < cu)); )
|
|
94213
94246
|
;
|
|
94214
|
-
} while (e3.lookahead <
|
|
94247
|
+
} while (e3.lookahead < hu && 0 !== e3.strm.avail_in);
|
|
94215
94248
|
}
|
|
94216
|
-
function
|
|
94249
|
+
function Cu(e3, t3) {
|
|
94217
94250
|
for (var n3, r3; ; ) {
|
|
94218
|
-
if (e3.lookahead <
|
|
94219
|
-
if (
|
|
94251
|
+
if (e3.lookahead < hu) {
|
|
94252
|
+
if (Su(e3), e3.lookahead < hu && t3 === Jc)
|
|
94220
94253
|
return 1;
|
|
94221
94254
|
if (0 === e3.lookahead)
|
|
94222
94255
|
break;
|
|
94223
94256
|
}
|
|
94224
|
-
if (n3 = 0, e3.lookahead >=
|
|
94225
|
-
if (r3 =
|
|
94257
|
+
if (n3 = 0, e3.lookahead >= cu && (e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + cu - 1]) & e3.hash_mask, n3 = e3.prev[e3.strstart & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = e3.strstart), 0 !== n3 && e3.strstart - n3 <= e3.w_size - hu && (e3.match_length = _u(e3, n3)), e3.match_length >= cu)
|
|
94258
|
+
if (r3 = Gc._tr_tally(e3, e3.strstart - e3.match_start, e3.match_length - cu), e3.lookahead -= e3.match_length, e3.match_length <= e3.max_lazy_match && e3.lookahead >= cu) {
|
|
94226
94259
|
e3.match_length--;
|
|
94227
94260
|
do {
|
|
94228
|
-
e3.strstart++, e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart +
|
|
94261
|
+
e3.strstart++, e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + cu - 1]) & e3.hash_mask, n3 = e3.prev[e3.strstart & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = e3.strstart;
|
|
94229
94262
|
} while (0 != --e3.match_length);
|
|
94230
94263
|
e3.strstart++;
|
|
94231
94264
|
} else
|
|
94232
94265
|
e3.strstart += e3.match_length, e3.match_length = 0, e3.ins_h = e3.window[e3.strstart], e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + 1]) & e3.hash_mask;
|
|
94233
94266
|
else
|
|
94234
|
-
r3 =
|
|
94235
|
-
if (r3 && (
|
|
94267
|
+
r3 = Gc._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++;
|
|
94268
|
+
if (r3 && (wu(e3, false), 0 === e3.strm.avail_out))
|
|
94236
94269
|
return 1;
|
|
94237
94270
|
}
|
|
94238
|
-
return e3.insert = e3.strstart <
|
|
94271
|
+
return e3.insert = e3.strstart < cu - 1 ? e3.strstart : cu - 1, 4 === t3 ? (wu(e3, true), 0 === e3.strm.avail_out ? 3 : 4) : e3.last_lit && (wu(e3, false), 0 === e3.strm.avail_out) ? 1 : 2;
|
|
94239
94272
|
}
|
|
94240
|
-
function
|
|
94273
|
+
function zu(e3, t3) {
|
|
94241
94274
|
for (var n3, r3, o3; ; ) {
|
|
94242
|
-
if (e3.lookahead <
|
|
94243
|
-
if (
|
|
94275
|
+
if (e3.lookahead < hu) {
|
|
94276
|
+
if (Su(e3), e3.lookahead < hu && t3 === Jc)
|
|
94244
94277
|
return 1;
|
|
94245
94278
|
if (0 === e3.lookahead)
|
|
94246
94279
|
break;
|
|
94247
94280
|
}
|
|
94248
|
-
if (n3 = 0, e3.lookahead >=
|
|
94249
|
-
o3 = e3.strstart + e3.lookahead -
|
|
94281
|
+
if (n3 = 0, e3.lookahead >= cu && (e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + cu - 1]) & e3.hash_mask, n3 = e3.prev[e3.strstart & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = e3.strstart), e3.prev_length = e3.match_length, e3.prev_match = e3.match_start, e3.match_length = cu - 1, 0 !== n3 && e3.prev_length < e3.max_lazy_match && e3.strstart - n3 <= e3.w_size - hu && (e3.match_length = _u(e3, n3), e3.match_length <= 5 && (1 === e3.strategy || e3.match_length === cu && e3.strstart - e3.match_start > 4096) && (e3.match_length = cu - 1)), e3.prev_length >= cu && e3.match_length <= e3.prev_length) {
|
|
94282
|
+
o3 = e3.strstart + e3.lookahead - cu, r3 = Gc._tr_tally(e3, e3.strstart - 1 - e3.prev_match, e3.prev_length - cu), e3.lookahead -= e3.prev_length - 1, e3.prev_length -= 2;
|
|
94250
94283
|
do {
|
|
94251
|
-
++e3.strstart <= o3 && (e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart +
|
|
94284
|
+
++e3.strstart <= o3 && (e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + cu - 1]) & e3.hash_mask, n3 = e3.prev[e3.strstart & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = e3.strstart);
|
|
94252
94285
|
} while (0 != --e3.prev_length);
|
|
94253
|
-
if (e3.match_available = 0, e3.match_length =
|
|
94286
|
+
if (e3.match_available = 0, e3.match_length = cu - 1, e3.strstart++, r3 && (wu(e3, false), 0 === e3.strm.avail_out))
|
|
94254
94287
|
return 1;
|
|
94255
94288
|
} else if (e3.match_available) {
|
|
94256
|
-
if ((r3 =
|
|
94289
|
+
if ((r3 = Gc._tr_tally(e3, 0, e3.window[e3.strstart - 1])) && wu(e3, false), e3.strstart++, e3.lookahead--, 0 === e3.strm.avail_out)
|
|
94257
94290
|
return 1;
|
|
94258
94291
|
} else
|
|
94259
94292
|
e3.match_available = 1, e3.strstart++, e3.lookahead--;
|
|
94260
94293
|
}
|
|
94261
|
-
return e3.match_available && (r3 =
|
|
94294
|
+
return e3.match_available && (r3 = Gc._tr_tally(e3, 0, e3.window[e3.strstart - 1]), e3.match_available = 0), e3.insert = e3.strstart < cu - 1 ? e3.strstart : cu - 1, 4 === t3 ? (wu(e3, true), 0 === e3.strm.avail_out ? 3 : 4) : e3.last_lit && (wu(e3, false), 0 === e3.strm.avail_out) ? 1 : 2;
|
|
94262
94295
|
}
|
|
94263
|
-
function
|
|
94296
|
+
function Au(e3, t3, n3, r3, o3) {
|
|
94264
94297
|
this.good_length = e3, this.max_lazy = t3, this.nice_length = n3, this.max_chain = r3, this.func = o3;
|
|
94265
94298
|
}
|
|
94266
|
-
function
|
|
94267
|
-
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method =
|
|
94299
|
+
function Tu() {
|
|
94300
|
+
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = ru, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new Hc.Buf16(2 * su), this.dyn_dtree = new Hc.Buf16(2 * (2 * iu + 1)), this.bl_tree = new Hc.Buf16(2 * (2 * au + 1)), yu(this.dyn_ltree), yu(this.dyn_dtree), yu(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new Hc.Buf16(lu + 1), this.heap = new Hc.Buf16(2 * ou + 1), yu(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new Hc.Buf16(2 * ou + 1), yu(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
94268
94301
|
}
|
|
94269
|
-
function
|
|
94302
|
+
function Ou(e3) {
|
|
94270
94303
|
var t3;
|
|
94271
|
-
return e3 && e3.state ? (e3.total_in = e3.total_out = 0, e3.data_type =
|
|
94304
|
+
return e3 && e3.state ? (e3.total_in = e3.total_out = 0, e3.data_type = nu, (t3 = e3.state).pending = 0, t3.pending_out = 0, t3.wrap < 0 && (t3.wrap = -t3.wrap), t3.status = t3.wrap ? du : mu, e3.adler = 2 === t3.wrap ? 0 : 1, t3.last_flush = Jc, Gc._tr_init(t3), eu) : gu(e3, tu);
|
|
94272
94305
|
}
|
|
94273
|
-
function
|
|
94274
|
-
var t3, n3 =
|
|
94275
|
-
return n3 ===
|
|
94306
|
+
function Lu(e3) {
|
|
94307
|
+
var t3, n3 = Ou(e3);
|
|
94308
|
+
return n3 === eu && ((t3 = e3.state).window_size = 2 * t3.w_size, yu(t3.head), t3.max_lazy_match = Wc[t3.level].max_lazy, t3.good_match = Wc[t3.level].good_length, t3.nice_match = Wc[t3.level].nice_length, t3.max_chain_length = Wc[t3.level].max_chain, t3.strstart = 0, t3.block_start = 0, t3.lookahead = 0, t3.insert = 0, t3.match_length = t3.prev_length = cu - 1, t3.match_available = 0, t3.ins_h = 0), n3;
|
|
94276
94309
|
}
|
|
94277
|
-
function
|
|
94310
|
+
function Eu(e3, t3, n3, r3, o3, i3) {
|
|
94278
94311
|
if (!e3)
|
|
94279
|
-
return
|
|
94312
|
+
return tu;
|
|
94280
94313
|
var a3 = 1;
|
|
94281
|
-
if (-1 === t3 && (t3 = 6), r3 < 0 ? (a3 = 0, r3 = -r3) : r3 > 15 && (a3 = 2, r3 -= 16), o3 < 1 || o3 > 9 || n3 !==
|
|
94282
|
-
return
|
|
94314
|
+
if (-1 === t3 && (t3 = 6), r3 < 0 ? (a3 = 0, r3 = -r3) : r3 > 15 && (a3 = 2, r3 -= 16), o3 < 1 || o3 > 9 || n3 !== ru || r3 < 8 || r3 > 15 || t3 < 0 || t3 > 9 || i3 < 0 || i3 > 4)
|
|
94315
|
+
return gu(e3, tu);
|
|
94283
94316
|
8 === r3 && (r3 = 9);
|
|
94284
|
-
var s3 = new
|
|
94285
|
-
return e3.state = s3, s3.strm = e3, s3.wrap = a3, s3.gzhead = null, s3.w_bits = r3, s3.w_size = 1 << s3.w_bits, s3.w_mask = s3.w_size - 1, s3.hash_bits = o3 + 7, s3.hash_size = 1 << s3.hash_bits, s3.hash_mask = s3.hash_size - 1, s3.hash_shift = ~~((s3.hash_bits +
|
|
94317
|
+
var s3 = new Tu();
|
|
94318
|
+
return e3.state = s3, s3.strm = e3, s3.wrap = a3, s3.gzhead = null, s3.w_bits = r3, s3.w_size = 1 << s3.w_bits, s3.w_mask = s3.w_size - 1, s3.hash_bits = o3 + 7, s3.hash_size = 1 << s3.hash_bits, s3.hash_mask = s3.hash_size - 1, s3.hash_shift = ~~((s3.hash_bits + cu - 1) / cu), s3.window = new Hc.Buf8(2 * s3.w_size), s3.head = new Hc.Buf16(s3.hash_size), s3.prev = new Hc.Buf16(s3.w_size), s3.lit_bufsize = 1 << o3 + 6, s3.pending_buf_size = 4 * s3.lit_bufsize, s3.pending_buf = new Hc.Buf8(s3.pending_buf_size), s3.d_buf = 1 * s3.lit_bufsize, s3.l_buf = 3 * s3.lit_bufsize, s3.level = t3, s3.strategy = i3, s3.method = n3, Lu(e3);
|
|
94286
94319
|
}
|
|
94287
|
-
|
|
94320
|
+
Wc = [new Au(0, 0, 0, 0, function(e3, t3) {
|
|
94288
94321
|
var n3 = 65535;
|
|
94289
94322
|
for (n3 > e3.pending_buf_size - 5 && (n3 = e3.pending_buf_size - 5); ; ) {
|
|
94290
94323
|
if (e3.lookahead <= 1) {
|
|
94291
|
-
if (
|
|
94324
|
+
if (Su(e3), 0 === e3.lookahead && t3 === Jc)
|
|
94292
94325
|
return 1;
|
|
94293
94326
|
if (0 === e3.lookahead)
|
|
94294
94327
|
break;
|
|
94295
94328
|
}
|
|
94296
94329
|
e3.strstart += e3.lookahead, e3.lookahead = 0;
|
|
94297
94330
|
var r3 = e3.block_start + n3;
|
|
94298
|
-
if ((0 === e3.strstart || e3.strstart >= r3) && (e3.lookahead = e3.strstart - r3, e3.strstart = r3,
|
|
94331
|
+
if ((0 === e3.strstart || e3.strstart >= r3) && (e3.lookahead = e3.strstart - r3, e3.strstart = r3, wu(e3, false), 0 === e3.strm.avail_out))
|
|
94299
94332
|
return 1;
|
|
94300
|
-
if (e3.strstart - e3.block_start >= e3.w_size -
|
|
94333
|
+
if (e3.strstart - e3.block_start >= e3.w_size - hu && (wu(e3, false), 0 === e3.strm.avail_out))
|
|
94301
94334
|
return 1;
|
|
94302
94335
|
}
|
|
94303
|
-
return e3.insert = 0, 4 === t3 ? (
|
|
94304
|
-
}), new
|
|
94305
|
-
return
|
|
94306
|
-
},
|
|
94307
|
-
return e3 && e3.state ? 2 !== e3.state.wrap ?
|
|
94308
|
-
},
|
|
94336
|
+
return e3.insert = 0, 4 === t3 ? (wu(e3, true), 0 === e3.strm.avail_out ? 3 : 4) : (e3.strstart > e3.block_start && (wu(e3, false), e3.strm.avail_out), 1);
|
|
94337
|
+
}), new Au(4, 4, 8, 4, Cu), new Au(4, 5, 16, 8, Cu), new Au(4, 6, 32, 32, Cu), new Au(4, 4, 16, 16, zu), new Au(8, 16, 32, 32, zu), new Au(8, 16, 128, 128, zu), new Au(8, 32, 128, 256, zu), new Au(32, 128, 258, 1024, zu), new Au(32, 258, 258, 4096, zu)], rc.deflateInit = function(e3, t3) {
|
|
94338
|
+
return Eu(e3, t3, ru, 15, 8, 0);
|
|
94339
|
+
}, rc.deflateInit2 = Eu, rc.deflateReset = Lu, rc.deflateResetKeep = Ou, rc.deflateSetHeader = function(e3, t3) {
|
|
94340
|
+
return e3 && e3.state ? 2 !== e3.state.wrap ? tu : (e3.state.gzhead = t3, eu) : tu;
|
|
94341
|
+
}, rc.deflate = function(e3, t3) {
|
|
94309
94342
|
var n3, r3, o3, i3;
|
|
94310
94343
|
if (!e3 || !e3.state || t3 > 5 || t3 < 0)
|
|
94311
|
-
return e3 ?
|
|
94312
|
-
if (r3 = e3.state, !e3.output || !e3.input && 0 !== e3.avail_in || r3.status ===
|
|
94313
|
-
return
|
|
94314
|
-
if (r3.strm = e3, n3 = r3.last_flush, r3.last_flush = t3, r3.status ===
|
|
94344
|
+
return e3 ? gu(e3, tu) : tu;
|
|
94345
|
+
if (r3 = e3.state, !e3.output || !e3.input && 0 !== e3.avail_in || r3.status === fu && 4 !== t3)
|
|
94346
|
+
return gu(e3, 0 === e3.avail_out ? -5 : tu);
|
|
94347
|
+
if (r3.strm = e3, n3 = r3.last_flush, r3.last_flush = t3, r3.status === du)
|
|
94315
94348
|
if (2 === r3.wrap)
|
|
94316
|
-
e3.adler = 0,
|
|
94349
|
+
e3.adler = 0, vu(r3, 31), vu(r3, 139), vu(r3, 8), r3.gzhead ? (vu(r3, (r3.gzhead.text ? 1 : 0) + (r3.gzhead.hcrc ? 2 : 0) + (r3.gzhead.extra ? 4 : 0) + (r3.gzhead.name ? 8 : 0) + (r3.gzhead.comment ? 16 : 0)), vu(r3, 255 & r3.gzhead.time), vu(r3, r3.gzhead.time >> 8 & 255), vu(r3, r3.gzhead.time >> 16 & 255), vu(r3, r3.gzhead.time >> 24 & 255), vu(r3, 9 === r3.level ? 2 : r3.strategy >= 2 || r3.level < 2 ? 4 : 0), vu(r3, 255 & r3.gzhead.os), r3.gzhead.extra && r3.gzhead.extra.length && (vu(r3, 255 & r3.gzhead.extra.length), vu(r3, r3.gzhead.extra.length >> 8 & 255)), r3.gzhead.hcrc && (e3.adler = Xc(e3.adler, r3.pending_buf, r3.pending, 0)), r3.gzindex = 0, r3.status = 69) : (vu(r3, 0), vu(r3, 0), vu(r3, 0), vu(r3, 0), vu(r3, 0), vu(r3, 9 === r3.level ? 2 : r3.strategy >= 2 || r3.level < 2 ? 4 : 0), vu(r3, 3), r3.status = mu);
|
|
94317
94350
|
else {
|
|
94318
|
-
var a3 =
|
|
94319
|
-
a3 |= (r3.strategy >= 2 || r3.level < 2 ? 0 : r3.level < 6 ? 1 : 6 === r3.level ? 2 : 3) << 6, 0 !== r3.strstart && (a3 |= 32), a3 += 31 - a3 % 31, r3.status =
|
|
94351
|
+
var a3 = ru + (r3.w_bits - 8 << 4) << 8;
|
|
94352
|
+
a3 |= (r3.strategy >= 2 || r3.level < 2 ? 0 : r3.level < 6 ? 1 : 6 === r3.level ? 2 : 3) << 6, 0 !== r3.strstart && (a3 |= 32), a3 += 31 - a3 % 31, r3.status = mu, xu(r3, a3), 0 !== r3.strstart && (xu(r3, e3.adler >>> 16), xu(r3, 65535 & e3.adler)), e3.adler = 1;
|
|
94320
94353
|
}
|
|
94321
94354
|
if (69 === r3.status)
|
|
94322
94355
|
if (r3.gzhead.extra) {
|
|
94323
|
-
for (o3 = r3.pending; r3.gzindex < (65535 & r3.gzhead.extra.length) && (r3.pending !== r3.pending_buf_size || (r3.gzhead.hcrc && r3.pending > o3 && (e3.adler =
|
|
94324
|
-
|
|
94325
|
-
r3.gzhead.hcrc && r3.pending > o3 && (e3.adler =
|
|
94356
|
+
for (o3 = r3.pending; r3.gzindex < (65535 & r3.gzhead.extra.length) && (r3.pending !== r3.pending_buf_size || (r3.gzhead.hcrc && r3.pending > o3 && (e3.adler = Xc(e3.adler, r3.pending_buf, r3.pending - o3, o3)), ku(e3), o3 = r3.pending, r3.pending !== r3.pending_buf_size)); )
|
|
94357
|
+
vu(r3, 255 & r3.gzhead.extra[r3.gzindex]), r3.gzindex++;
|
|
94358
|
+
r3.gzhead.hcrc && r3.pending > o3 && (e3.adler = Xc(e3.adler, r3.pending_buf, r3.pending - o3, o3)), r3.gzindex === r3.gzhead.extra.length && (r3.gzindex = 0, r3.status = 73);
|
|
94326
94359
|
} else
|
|
94327
94360
|
r3.status = 73;
|
|
94328
94361
|
if (73 === r3.status)
|
|
94329
94362
|
if (r3.gzhead.name) {
|
|
94330
94363
|
o3 = r3.pending;
|
|
94331
94364
|
do {
|
|
94332
|
-
if (r3.pending === r3.pending_buf_size && (r3.gzhead.hcrc && r3.pending > o3 && (e3.adler =
|
|
94365
|
+
if (r3.pending === r3.pending_buf_size && (r3.gzhead.hcrc && r3.pending > o3 && (e3.adler = Xc(e3.adler, r3.pending_buf, r3.pending - o3, o3)), ku(e3), o3 = r3.pending, r3.pending === r3.pending_buf_size)) {
|
|
94333
94366
|
i3 = 1;
|
|
94334
94367
|
break;
|
|
94335
94368
|
}
|
|
94336
|
-
i3 = r3.gzindex < r3.gzhead.name.length ? 255 & r3.gzhead.name.charCodeAt(r3.gzindex++) : 0,
|
|
94369
|
+
i3 = r3.gzindex < r3.gzhead.name.length ? 255 & r3.gzhead.name.charCodeAt(r3.gzindex++) : 0, vu(r3, i3);
|
|
94337
94370
|
} while (0 !== i3);
|
|
94338
|
-
r3.gzhead.hcrc && r3.pending > o3 && (e3.adler =
|
|
94371
|
+
r3.gzhead.hcrc && r3.pending > o3 && (e3.adler = Xc(e3.adler, r3.pending_buf, r3.pending - o3, o3)), 0 === i3 && (r3.gzindex = 0, r3.status = 91);
|
|
94339
94372
|
} else
|
|
94340
94373
|
r3.status = 91;
|
|
94341
94374
|
if (91 === r3.status)
|
|
94342
94375
|
if (r3.gzhead.comment) {
|
|
94343
94376
|
o3 = r3.pending;
|
|
94344
94377
|
do {
|
|
94345
|
-
if (r3.pending === r3.pending_buf_size && (r3.gzhead.hcrc && r3.pending > o3 && (e3.adler =
|
|
94378
|
+
if (r3.pending === r3.pending_buf_size && (r3.gzhead.hcrc && r3.pending > o3 && (e3.adler = Xc(e3.adler, r3.pending_buf, r3.pending - o3, o3)), ku(e3), o3 = r3.pending, r3.pending === r3.pending_buf_size)) {
|
|
94346
94379
|
i3 = 1;
|
|
94347
94380
|
break;
|
|
94348
94381
|
}
|
|
94349
|
-
i3 = r3.gzindex < r3.gzhead.comment.length ? 255 & r3.gzhead.comment.charCodeAt(r3.gzindex++) : 0,
|
|
94382
|
+
i3 = r3.gzindex < r3.gzhead.comment.length ? 255 & r3.gzhead.comment.charCodeAt(r3.gzindex++) : 0, vu(r3, i3);
|
|
94350
94383
|
} while (0 !== i3);
|
|
94351
|
-
r3.gzhead.hcrc && r3.pending > o3 && (e3.adler =
|
|
94384
|
+
r3.gzhead.hcrc && r3.pending > o3 && (e3.adler = Xc(e3.adler, r3.pending_buf, r3.pending - o3, o3)), 0 === i3 && (r3.status = pu);
|
|
94352
94385
|
} else
|
|
94353
|
-
r3.status =
|
|
94354
|
-
if (r3.status ===
|
|
94355
|
-
if (
|
|
94356
|
-
return r3.last_flush = -1,
|
|
94357
|
-
} else if (0 === e3.avail_in &&
|
|
94358
|
-
return
|
|
94359
|
-
if (r3.status ===
|
|
94360
|
-
return
|
|
94361
|
-
if (0 !== e3.avail_in || 0 !== r3.lookahead || t3 !==
|
|
94386
|
+
r3.status = pu;
|
|
94387
|
+
if (r3.status === pu && (r3.gzhead.hcrc ? (r3.pending + 2 > r3.pending_buf_size && ku(e3), r3.pending + 2 <= r3.pending_buf_size && (vu(r3, 255 & e3.adler), vu(r3, e3.adler >> 8 & 255), e3.adler = 0, r3.status = mu)) : r3.status = mu), 0 !== r3.pending) {
|
|
94388
|
+
if (ku(e3), 0 === e3.avail_out)
|
|
94389
|
+
return r3.last_flush = -1, eu;
|
|
94390
|
+
} else if (0 === e3.avail_in && bu(t3) <= bu(n3) && 4 !== t3)
|
|
94391
|
+
return gu(e3, -5);
|
|
94392
|
+
if (r3.status === fu && 0 !== e3.avail_in)
|
|
94393
|
+
return gu(e3, -5);
|
|
94394
|
+
if (0 !== e3.avail_in || 0 !== r3.lookahead || t3 !== Jc && r3.status !== fu) {
|
|
94362
94395
|
var s3 = 2 === r3.strategy ? function(e4, t4) {
|
|
94363
94396
|
for (var n4; ; ) {
|
|
94364
|
-
if (0 === e4.lookahead && (
|
|
94365
|
-
if (t4 ===
|
|
94397
|
+
if (0 === e4.lookahead && (Su(e4), 0 === e4.lookahead)) {
|
|
94398
|
+
if (t4 === Jc)
|
|
94366
94399
|
return 1;
|
|
94367
94400
|
break;
|
|
94368
94401
|
}
|
|
94369
|
-
if (e4.match_length = 0, n4 =
|
|
94402
|
+
if (e4.match_length = 0, n4 = Gc._tr_tally(e4, 0, e4.window[e4.strstart]), e4.lookahead--, e4.strstart++, n4 && (wu(e4, false), 0 === e4.strm.avail_out))
|
|
94370
94403
|
return 1;
|
|
94371
94404
|
}
|
|
94372
|
-
return e4.insert = 0, 4 === t4 ? (
|
|
94405
|
+
return e4.insert = 0, 4 === t4 ? (wu(e4, true), 0 === e4.strm.avail_out ? 3 : 4) : e4.last_lit && (wu(e4, false), 0 === e4.strm.avail_out) ? 1 : 2;
|
|
94373
94406
|
}(r3, t3) : 3 === r3.strategy ? function(e4, t4) {
|
|
94374
94407
|
for (var n4, r4, o4, i4, a4 = e4.window; ; ) {
|
|
94375
|
-
if (e4.lookahead <=
|
|
94376
|
-
if (
|
|
94408
|
+
if (e4.lookahead <= uu) {
|
|
94409
|
+
if (Su(e4), e4.lookahead <= uu && t4 === Jc)
|
|
94377
94410
|
return 1;
|
|
94378
94411
|
if (0 === e4.lookahead)
|
|
94379
94412
|
break;
|
|
94380
94413
|
}
|
|
94381
|
-
if (e4.match_length = 0, e4.lookahead >=
|
|
94382
|
-
i4 = e4.strstart +
|
|
94414
|
+
if (e4.match_length = 0, e4.lookahead >= cu && e4.strstart > 0 && (r4 = a4[o4 = e4.strstart - 1]) === a4[++o4] && r4 === a4[++o4] && r4 === a4[++o4]) {
|
|
94415
|
+
i4 = e4.strstart + uu;
|
|
94383
94416
|
do {
|
|
94384
94417
|
} while (r4 === a4[++o4] && r4 === a4[++o4] && r4 === a4[++o4] && r4 === a4[++o4] && r4 === a4[++o4] && r4 === a4[++o4] && r4 === a4[++o4] && r4 === a4[++o4] && o4 < i4);
|
|
94385
|
-
e4.match_length =
|
|
94418
|
+
e4.match_length = uu - (i4 - o4), e4.match_length > e4.lookahead && (e4.match_length = e4.lookahead);
|
|
94386
94419
|
}
|
|
94387
|
-
if (e4.match_length >=
|
|
94420
|
+
if (e4.match_length >= cu ? (n4 = Gc._tr_tally(e4, 1, e4.match_length - cu), e4.lookahead -= e4.match_length, e4.strstart += e4.match_length, e4.match_length = 0) : (n4 = Gc._tr_tally(e4, 0, e4.window[e4.strstart]), e4.lookahead--, e4.strstart++), n4 && (wu(e4, false), 0 === e4.strm.avail_out))
|
|
94388
94421
|
return 1;
|
|
94389
94422
|
}
|
|
94390
|
-
return e4.insert = 0, 4 === t4 ? (
|
|
94391
|
-
}(r3, t3) :
|
|
94392
|
-
if (3 !== s3 && 4 !== s3 || (r3.status =
|
|
94393
|
-
return 0 === e3.avail_out && (r3.last_flush = -1),
|
|
94394
|
-
if (2 === s3 && (1 === t3 ?
|
|
94395
|
-
return r3.last_flush = -1,
|
|
94396
|
-
}
|
|
94397
|
-
return 4 !== t3 ?
|
|
94398
|
-
},
|
|
94423
|
+
return e4.insert = 0, 4 === t4 ? (wu(e4, true), 0 === e4.strm.avail_out ? 3 : 4) : e4.last_lit && (wu(e4, false), 0 === e4.strm.avail_out) ? 1 : 2;
|
|
94424
|
+
}(r3, t3) : Wc[r3.level].func(r3, t3);
|
|
94425
|
+
if (3 !== s3 && 4 !== s3 || (r3.status = fu), 1 === s3 || 3 === s3)
|
|
94426
|
+
return 0 === e3.avail_out && (r3.last_flush = -1), eu;
|
|
94427
|
+
if (2 === s3 && (1 === t3 ? Gc._tr_align(r3) : 5 !== t3 && (Gc._tr_stored_block(r3, 0, 0, false), 3 === t3 && (yu(r3.head), 0 === r3.lookahead && (r3.strstart = 0, r3.block_start = 0, r3.insert = 0))), ku(e3), 0 === e3.avail_out))
|
|
94428
|
+
return r3.last_flush = -1, eu;
|
|
94429
|
+
}
|
|
94430
|
+
return 4 !== t3 ? eu : r3.wrap <= 0 ? 1 : (2 === r3.wrap ? (vu(r3, 255 & e3.adler), vu(r3, e3.adler >> 8 & 255), vu(r3, e3.adler >> 16 & 255), vu(r3, e3.adler >> 24 & 255), vu(r3, 255 & e3.total_in), vu(r3, e3.total_in >> 8 & 255), vu(r3, e3.total_in >> 16 & 255), vu(r3, e3.total_in >> 24 & 255)) : (xu(r3, e3.adler >>> 16), xu(r3, 65535 & e3.adler)), ku(e3), r3.wrap > 0 && (r3.wrap = -r3.wrap), 0 !== r3.pending ? eu : 1);
|
|
94431
|
+
}, rc.deflateEnd = function(e3) {
|
|
94399
94432
|
var t3;
|
|
94400
|
-
return e3 && e3.state ? (t3 = e3.state.status) !==
|
|
94401
|
-
},
|
|
94433
|
+
return e3 && e3.state ? (t3 = e3.state.status) !== du && 69 !== t3 && 73 !== t3 && 91 !== t3 && t3 !== pu && t3 !== mu && t3 !== fu ? gu(e3, tu) : (e3.state = null, t3 === mu ? gu(e3, -3) : eu) : tu;
|
|
94434
|
+
}, rc.deflateSetDictionary = function(e3, t3) {
|
|
94402
94435
|
var n3, r3, o3, i3, a3, s3, l2, c2, u2 = t3.length;
|
|
94403
94436
|
if (!e3 || !e3.state)
|
|
94404
|
-
return
|
|
94405
|
-
if (2 === (i3 = (n3 = e3.state).wrap) || 1 === i3 && n3.status !==
|
|
94406
|
-
return
|
|
94407
|
-
for (1 === i3 && (e3.adler =
|
|
94408
|
-
r3 = n3.strstart, o3 = n3.lookahead - (
|
|
94437
|
+
return tu;
|
|
94438
|
+
if (2 === (i3 = (n3 = e3.state).wrap) || 1 === i3 && n3.status !== du || n3.lookahead)
|
|
94439
|
+
return tu;
|
|
94440
|
+
for (1 === i3 && (e3.adler = Yc(e3.adler, t3, u2, 0)), n3.wrap = 0, u2 >= n3.w_size && (0 === i3 && (yu(n3.head), n3.strstart = 0, n3.block_start = 0, n3.insert = 0), c2 = new Hc.Buf8(n3.w_size), Hc.arraySet(c2, t3, u2 - n3.w_size, n3.w_size, 0), t3 = c2, u2 = n3.w_size), a3 = e3.avail_in, s3 = e3.next_in, l2 = e3.input, e3.avail_in = u2, e3.next_in = 0, e3.input = t3, Su(n3); n3.lookahead >= cu; ) {
|
|
94441
|
+
r3 = n3.strstart, o3 = n3.lookahead - (cu - 1);
|
|
94409
94442
|
do {
|
|
94410
|
-
n3.ins_h = (n3.ins_h << n3.hash_shift ^ n3.window[r3 +
|
|
94443
|
+
n3.ins_h = (n3.ins_h << n3.hash_shift ^ n3.window[r3 + cu - 1]) & n3.hash_mask, n3.prev[r3 & n3.w_mask] = n3.head[n3.ins_h], n3.head[n3.ins_h] = r3, r3++;
|
|
94411
94444
|
} while (--o3);
|
|
94412
|
-
n3.strstart = r3, n3.lookahead =
|
|
94445
|
+
n3.strstart = r3, n3.lookahead = cu - 1, Su(n3);
|
|
94413
94446
|
}
|
|
94414
|
-
return n3.strstart += n3.lookahead, n3.block_start = n3.strstart, n3.insert = n3.lookahead, n3.lookahead = 0, n3.match_length = n3.prev_length =
|
|
94415
|
-
},
|
|
94416
|
-
var
|
|
94447
|
+
return n3.strstart += n3.lookahead, n3.block_start = n3.strstart, n3.insert = n3.lookahead, n3.lookahead = 0, n3.match_length = n3.prev_length = cu - 1, n3.match_available = 0, e3.next_in = s3, e3.input = l2, e3.avail_in = a3, n3.wrap = i3, eu;
|
|
94448
|
+
}, rc.deflateInfo = "pako deflate (from Nodeca project)";
|
|
94449
|
+
var Ru = {}, Nu = tc, ju = true, Iu = true;
|
|
94417
94450
|
try {
|
|
94418
94451
|
String.fromCharCode.apply(null, [0]);
|
|
94419
94452
|
} catch (t3) {
|
|
94420
|
-
|
|
94453
|
+
ju = false;
|
|
94421
94454
|
}
|
|
94422
94455
|
try {
|
|
94423
94456
|
String.fromCharCode.apply(null, new Uint8Array(1));
|
|
94424
94457
|
} catch (t3) {
|
|
94425
|
-
|
|
94458
|
+
Iu = false;
|
|
94426
94459
|
}
|
|
94427
|
-
for (var
|
|
94428
|
-
|
|
94429
|
-
function
|
|
94430
|
-
if (t3 < 65534 && (e3.subarray &&
|
|
94431
|
-
return String.fromCharCode.apply(null,
|
|
94460
|
+
for (var Du = new Nu.Buf8(256), Pu = 0; Pu < 256; Pu++)
|
|
94461
|
+
Du[Pu] = Pu >= 252 ? 6 : Pu >= 248 ? 5 : Pu >= 240 ? 4 : Pu >= 224 ? 3 : Pu >= 192 ? 2 : 1;
|
|
94462
|
+
function Bu(e3, t3) {
|
|
94463
|
+
if (t3 < 65534 && (e3.subarray && Iu || !e3.subarray && ju))
|
|
94464
|
+
return String.fromCharCode.apply(null, Nu.shrinkBuf(e3, t3));
|
|
94432
94465
|
for (var n3 = "", r3 = 0; r3 < t3; r3++)
|
|
94433
94466
|
n3 += String.fromCharCode(e3[r3]);
|
|
94434
94467
|
return n3;
|
|
94435
94468
|
}
|
|
94436
|
-
|
|
94469
|
+
Du[254] = Du[254] = 1, Ru.string2buf = function(e3) {
|
|
94437
94470
|
var t3, n3, r3, o3, i3, a3 = e3.length, s3 = 0;
|
|
94438
94471
|
for (o3 = 0; o3 < a3; o3++)
|
|
94439
94472
|
55296 == (64512 & (n3 = e3.charCodeAt(o3))) && o3 + 1 < a3 && 56320 == (64512 & (r3 = e3.charCodeAt(o3 + 1))) && (n3 = 65536 + (n3 - 55296 << 10) + (r3 - 56320), o3++), s3 += n3 < 128 ? 1 : n3 < 2048 ? 2 : n3 < 65536 ? 3 : 4;
|
|
94440
|
-
for (t3 = new
|
|
94473
|
+
for (t3 = new Nu.Buf8(s3), i3 = 0, o3 = 0; i3 < s3; o3++)
|
|
94441
94474
|
55296 == (64512 & (n3 = e3.charCodeAt(o3))) && o3 + 1 < a3 && 56320 == (64512 & (r3 = e3.charCodeAt(o3 + 1))) && (n3 = 65536 + (n3 - 55296 << 10) + (r3 - 56320), o3++), n3 < 128 ? t3[i3++] = n3 : n3 < 2048 ? (t3[i3++] = 192 | n3 >>> 6, t3[i3++] = 128 | 63 & n3) : n3 < 65536 ? (t3[i3++] = 224 | n3 >>> 12, t3[i3++] = 128 | n3 >>> 6 & 63, t3[i3++] = 128 | 63 & n3) : (t3[i3++] = 240 | n3 >>> 18, t3[i3++] = 128 | n3 >>> 12 & 63, t3[i3++] = 128 | n3 >>> 6 & 63, t3[i3++] = 128 | 63 & n3);
|
|
94442
94475
|
return t3;
|
|
94443
|
-
},
|
|
94444
|
-
return
|
|
94445
|
-
},
|
|
94446
|
-
for (var t3 = new
|
|
94476
|
+
}, Ru.buf2binstring = function(e3) {
|
|
94477
|
+
return Bu(e3, e3.length);
|
|
94478
|
+
}, Ru.binstring2buf = function(e3) {
|
|
94479
|
+
for (var t3 = new Nu.Buf8(e3.length), n3 = 0, r3 = t3.length; n3 < r3; n3++)
|
|
94447
94480
|
t3[n3] = e3.charCodeAt(n3);
|
|
94448
94481
|
return t3;
|
|
94449
|
-
},
|
|
94482
|
+
}, Ru.buf2string = function(e3, t3) {
|
|
94450
94483
|
var n3, r3, o3, i3, a3 = t3 || e3.length, s3 = new Array(2 * a3);
|
|
94451
94484
|
for (r3 = 0, n3 = 0; n3 < a3; )
|
|
94452
94485
|
if ((o3 = e3[n3++]) < 128)
|
|
94453
94486
|
s3[r3++] = o3;
|
|
94454
|
-
else if ((i3 =
|
|
94487
|
+
else if ((i3 = Du[o3]) > 4)
|
|
94455
94488
|
s3[r3++] = 65533, n3 += i3 - 1;
|
|
94456
94489
|
else {
|
|
94457
94490
|
for (o3 &= 2 === i3 ? 31 : 3 === i3 ? 15 : 7; i3 > 1 && n3 < a3; )
|
|
94458
94491
|
o3 = o3 << 6 | 63 & e3[n3++], i3--;
|
|
94459
94492
|
i3 > 1 ? s3[r3++] = 65533 : o3 < 65536 ? s3[r3++] = o3 : (o3 -= 65536, s3[r3++] = 55296 | o3 >> 10 & 1023, s3[r3++] = 56320 | 1023 & o3);
|
|
94460
94493
|
}
|
|
94461
|
-
return
|
|
94462
|
-
},
|
|
94494
|
+
return Bu(s3, r3);
|
|
94495
|
+
}, Ru.utf8border = function(e3, t3) {
|
|
94463
94496
|
var n3;
|
|
94464
94497
|
for ((t3 = t3 || e3.length) > e3.length && (t3 = e3.length), n3 = t3 - 1; n3 >= 0 && 128 == (192 & e3[n3]); )
|
|
94465
94498
|
n3--;
|
|
94466
|
-
return n3 < 0 || 0 === n3 ? t3 : n3 +
|
|
94499
|
+
return n3 < 0 || 0 === n3 ? t3 : n3 + Du[e3[n3]] > t3 ? n3 : t3;
|
|
94467
94500
|
};
|
|
94468
|
-
var
|
|
94501
|
+
var Fu = function() {
|
|
94469
94502
|
this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
|
|
94470
|
-
},
|
|
94471
|
-
function
|
|
94472
|
-
if (!(this instanceof
|
|
94473
|
-
return new
|
|
94474
|
-
this.options =
|
|
94503
|
+
}, Uu = rc, Mu = tc, qu = Ru, Wu = Kc, $u = Fu, Vu = Object.prototype.toString, Zu = 0, Ku = -1, Hu = 0, Gu = 8;
|
|
94504
|
+
function Yu(e3) {
|
|
94505
|
+
if (!(this instanceof Yu))
|
|
94506
|
+
return new Yu(e3);
|
|
94507
|
+
this.options = Mu.assign({ level: Ku, method: Gu, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: Hu, to: "" }, e3 || {});
|
|
94475
94508
|
var t3 = this.options;
|
|
94476
|
-
t3.raw && t3.windowBits > 0 ? t3.windowBits = -t3.windowBits : t3.gzip && t3.windowBits > 0 && t3.windowBits < 16 && (t3.windowBits += 16), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new
|
|
94477
|
-
var n3 =
|
|
94478
|
-
if (n3 !==
|
|
94479
|
-
throw new Error(
|
|
94480
|
-
if (t3.header &&
|
|
94509
|
+
t3.raw && t3.windowBits > 0 ? t3.windowBits = -t3.windowBits : t3.gzip && t3.windowBits > 0 && t3.windowBits < 16 && (t3.windowBits += 16), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new $u(), this.strm.avail_out = 0;
|
|
94510
|
+
var n3 = Uu.deflateInit2(this.strm, t3.level, t3.method, t3.windowBits, t3.memLevel, t3.strategy);
|
|
94511
|
+
if (n3 !== Zu)
|
|
94512
|
+
throw new Error(Wu[n3]);
|
|
94513
|
+
if (t3.header && Uu.deflateSetHeader(this.strm, t3.header), t3.dictionary) {
|
|
94481
94514
|
var r3;
|
|
94482
|
-
if (r3 = "string" == typeof t3.dictionary ?
|
|
94483
|
-
throw new Error(
|
|
94515
|
+
if (r3 = "string" == typeof t3.dictionary ? qu.string2buf(t3.dictionary) : "[object ArrayBuffer]" === Vu.call(t3.dictionary) ? new Uint8Array(t3.dictionary) : t3.dictionary, (n3 = Uu.deflateSetDictionary(this.strm, r3)) !== Zu)
|
|
94516
|
+
throw new Error(Wu[n3]);
|
|
94484
94517
|
this._dict_set = true;
|
|
94485
94518
|
}
|
|
94486
94519
|
}
|
|
94487
|
-
function
|
|
94488
|
-
var n3 = new
|
|
94520
|
+
function Xu(e3, t3) {
|
|
94521
|
+
var n3 = new Yu(t3);
|
|
94489
94522
|
if (n3.push(e3, true), n3.err)
|
|
94490
|
-
throw n3.msg ||
|
|
94523
|
+
throw n3.msg || Wu[n3.err];
|
|
94491
94524
|
return n3.result;
|
|
94492
94525
|
}
|
|
94493
|
-
|
|
94526
|
+
Yu.prototype.push = function(e3, t3) {
|
|
94494
94527
|
var n3, r3, o3 = this.strm, i3 = this.options.chunkSize;
|
|
94495
94528
|
if (this.ended)
|
|
94496
94529
|
return false;
|
|
94497
|
-
r3 = t3 === ~~t3 ? t3 : true === t3 ? 4 : 0, "string" == typeof e3 ? o3.input =
|
|
94530
|
+
r3 = t3 === ~~t3 ? t3 : true === t3 ? 4 : 0, "string" == typeof e3 ? o3.input = qu.string2buf(e3) : "[object ArrayBuffer]" === Vu.call(e3) ? o3.input = new Uint8Array(e3) : o3.input = e3, o3.next_in = 0, o3.avail_in = o3.input.length;
|
|
94498
94531
|
do {
|
|
94499
|
-
if (0 === o3.avail_out && (o3.output = new
|
|
94532
|
+
if (0 === o3.avail_out && (o3.output = new Mu.Buf8(i3), o3.next_out = 0, o3.avail_out = i3), 1 !== (n3 = Uu.deflate(o3, r3)) && n3 !== Zu)
|
|
94500
94533
|
return this.onEnd(n3), this.ended = true, false;
|
|
94501
|
-
0 !== o3.avail_out && (0 !== o3.avail_in || 4 !== r3 && 2 !== r3) || ("string" === this.options.to ? this.onData(
|
|
94534
|
+
0 !== o3.avail_out && (0 !== o3.avail_in || 4 !== r3 && 2 !== r3) || ("string" === this.options.to ? this.onData(qu.buf2binstring(Mu.shrinkBuf(o3.output, o3.next_out))) : this.onData(Mu.shrinkBuf(o3.output, o3.next_out)));
|
|
94502
94535
|
} while ((o3.avail_in > 0 || 0 === o3.avail_out) && 1 !== n3);
|
|
94503
|
-
return 4 === r3 ? (n3 =
|
|
94504
|
-
},
|
|
94536
|
+
return 4 === r3 ? (n3 = Uu.deflateEnd(this.strm), this.onEnd(n3), this.ended = true, n3 === Zu) : 2 !== r3 || (this.onEnd(Zu), o3.avail_out = 0, true);
|
|
94537
|
+
}, Yu.prototype.onData = function(e3) {
|
|
94505
94538
|
this.chunks.push(e3);
|
|
94506
|
-
},
|
|
94507
|
-
e3 ===
|
|
94508
|
-
},
|
|
94509
|
-
return (t3 = t3 || {}).raw = true,
|
|
94510
|
-
},
|
|
94511
|
-
return (t3 = t3 || {}).gzip = true,
|
|
94539
|
+
}, Yu.prototype.onEnd = function(e3) {
|
|
94540
|
+
e3 === Zu && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = Mu.flattenChunks(this.chunks)), this.chunks = [], this.err = e3, this.msg = this.strm.msg;
|
|
94541
|
+
}, nc.Deflate = Yu, nc.deflate = Xu, nc.deflateRaw = function(e3, t3) {
|
|
94542
|
+
return (t3 = t3 || {}).raw = true, Xu(e3, t3);
|
|
94543
|
+
}, nc.gzip = function(e3, t3) {
|
|
94544
|
+
return (t3 = t3 || {}).gzip = true, Xu(e3, t3);
|
|
94512
94545
|
};
|
|
94513
|
-
var
|
|
94546
|
+
var Qu = {}, Ju = {}, eh = tc, th = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], nh = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], rh = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], oh = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64], ih = tc, ah = $c, sh = Zc, lh = function(e3, t3) {
|
|
94514
94547
|
var n3, r3, o3, i3, a3, s3, l2, c2, u2, h2, d2, p2, m2, f2, g2, b2, y2, k2, w2, v2, x2, _2, S2, C2, z2;
|
|
94515
94548
|
n3 = e3.state, r3 = e3.next_in, C2 = e3.input, o3 = r3 + (e3.avail_in - 5), i3 = e3.next_out, z2 = e3.output, a3 = i3 - (t3 - e3.avail_out), s3 = i3 + (e3.avail_out - 257), l2 = n3.dmax, c2 = n3.wsize, u2 = n3.whave, h2 = n3.wnext, d2 = n3.window, p2 = n3.hold, m2 = n3.bits, f2 = n3.lencode, g2 = n3.distcode, b2 = (1 << n3.lenbits) - 1, y2 = (1 << n3.distbits) - 1;
|
|
94516
94549
|
e:
|
|
@@ -94599,8 +94632,8 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94599
94632
|
}
|
|
94600
94633
|
} while (r3 < o3 && i3 < s3);
|
|
94601
94634
|
r3 -= v2 = m2 >> 3, p2 &= (1 << (m2 -= v2 << 3)) - 1, e3.next_in = r3, e3.next_out = i3, e3.avail_in = r3 < o3 ? o3 - r3 + 5 : 5 - (r3 - o3), e3.avail_out = i3 < s3 ? s3 - i3 + 257 : 257 - (i3 - s3), n3.hold = p2, n3.bits = m2;
|
|
94602
|
-
},
|
|
94603
|
-
var l2, c2, u2, h2, d2, p2, m2, f2, g2, b2 = s3.bits, y2 = 0, k2 = 0, w2 = 0, v2 = 0, x2 = 0, _2 = 0, S2 = 0, C2 = 0, z2 = 0, A2 = 0, T2 = null, O2 = 0, L2 = new
|
|
94635
|
+
}, ch = function(e3, t3, n3, r3, o3, i3, a3, s3) {
|
|
94636
|
+
var l2, c2, u2, h2, d2, p2, m2, f2, g2, b2 = s3.bits, y2 = 0, k2 = 0, w2 = 0, v2 = 0, x2 = 0, _2 = 0, S2 = 0, C2 = 0, z2 = 0, A2 = 0, T2 = null, O2 = 0, L2 = new eh.Buf16(16), E2 = new eh.Buf16(16), R2 = null, N2 = 0;
|
|
94604
94637
|
for (y2 = 0; y2 <= 15; y2++)
|
|
94605
94638
|
L2[y2] = 0;
|
|
94606
94639
|
for (k2 = 0; k2 < r3; k2++)
|
|
@@ -94620,7 +94653,7 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94620
94653
|
E2[y2 + 1] = E2[y2] + L2[y2];
|
|
94621
94654
|
for (k2 = 0; k2 < r3; k2++)
|
|
94622
94655
|
0 !== t3[n3 + k2] && (a3[E2[t3[n3 + k2]]++] = k2);
|
|
94623
|
-
if (0 === e3 ? (T2 = R2 = a3, p2 = 19) : 1 === e3 ? (T2 =
|
|
94656
|
+
if (0 === e3 ? (T2 = R2 = a3, p2 = 19) : 1 === e3 ? (T2 = th, O2 -= 257, R2 = nh, N2 -= 257, p2 = 256) : (T2 = rh, R2 = oh, p2 = -1), A2 = 0, k2 = 0, y2 = w2, d2 = i3, _2 = x2, S2 = 0, u2 = -1, h2 = (z2 = 1 << x2) - 1, 1 === e3 && z2 > 852 || 2 === e3 && z2 > 592)
|
|
94624
94657
|
return 1;
|
|
94625
94658
|
for (; ; ) {
|
|
94626
94659
|
m2 = y2 - S2, a3[k2] < p2 ? (f2 = 0, g2 = a3[k2]) : a3[k2] > p2 ? (f2 = R2[N2 + a3[k2]], g2 = T2[O2 + a3[k2]]) : (f2 = 96, g2 = 0), l2 = 1 << y2 - S2, w2 = c2 = 1 << _2;
|
|
@@ -94643,34 +94676,34 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94643
94676
|
}
|
|
94644
94677
|
}
|
|
94645
94678
|
return 0 !== A2 && (o3[d2 + A2] = y2 - S2 << 24 | 64 << 16 | 0), s3.bits = x2, 0;
|
|
94646
|
-
},
|
|
94647
|
-
function
|
|
94679
|
+
}, uh = 0, hh = -2, dh = 1, ph = 12, mh = 30, fh = 852, gh = 592;
|
|
94680
|
+
function bh(e3) {
|
|
94648
94681
|
return (e3 >>> 24 & 255) + (e3 >>> 8 & 65280) + ((65280 & e3) << 8) + ((255 & e3) << 24);
|
|
94649
94682
|
}
|
|
94650
|
-
function
|
|
94651
|
-
this.mode = 0, this.last = false, this.wrap = 0, this.havedict = false, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new
|
|
94683
|
+
function yh() {
|
|
94684
|
+
this.mode = 0, this.last = false, this.wrap = 0, this.havedict = false, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new ih.Buf16(320), this.work = new ih.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
94652
94685
|
}
|
|
94653
|
-
function
|
|
94686
|
+
function kh(e3) {
|
|
94654
94687
|
var t3;
|
|
94655
|
-
return e3 && e3.state ? (t3 = e3.state, e3.total_in = e3.total_out = t3.total = 0, e3.msg = "", t3.wrap && (e3.adler = 1 & t3.wrap), t3.mode =
|
|
94688
|
+
return e3 && e3.state ? (t3 = e3.state, e3.total_in = e3.total_out = t3.total = 0, e3.msg = "", t3.wrap && (e3.adler = 1 & t3.wrap), t3.mode = dh, t3.last = 0, t3.havedict = 0, t3.dmax = 32768, t3.head = null, t3.hold = 0, t3.bits = 0, t3.lencode = t3.lendyn = new ih.Buf32(fh), t3.distcode = t3.distdyn = new ih.Buf32(gh), t3.sane = 1, t3.back = -1, uh) : hh;
|
|
94656
94689
|
}
|
|
94657
|
-
function
|
|
94690
|
+
function wh(e3) {
|
|
94658
94691
|
var t3;
|
|
94659
|
-
return e3 && e3.state ? ((t3 = e3.state).wsize = 0, t3.whave = 0, t3.wnext = 0,
|
|
94692
|
+
return e3 && e3.state ? ((t3 = e3.state).wsize = 0, t3.whave = 0, t3.wnext = 0, kh(e3)) : hh;
|
|
94660
94693
|
}
|
|
94661
|
-
function
|
|
94694
|
+
function vh(e3, t3) {
|
|
94662
94695
|
var n3, r3;
|
|
94663
|
-
return e3 && e3.state ? (r3 = e3.state, t3 < 0 ? (n3 = 0, t3 = -t3) : (n3 = 1 + (t3 >> 4), t3 < 48 && (t3 &= 15)), t3 && (t3 < 8 || t3 > 15) ?
|
|
94696
|
+
return e3 && e3.state ? (r3 = e3.state, t3 < 0 ? (n3 = 0, t3 = -t3) : (n3 = 1 + (t3 >> 4), t3 < 48 && (t3 &= 15)), t3 && (t3 < 8 || t3 > 15) ? hh : (null !== r3.window && r3.wbits !== t3 && (r3.window = null), r3.wrap = n3, r3.wbits = t3, wh(e3))) : hh;
|
|
94664
94697
|
}
|
|
94665
|
-
function
|
|
94698
|
+
function xh(e3, t3) {
|
|
94666
94699
|
var n3, r3;
|
|
94667
|
-
return e3 ? (r3 = new
|
|
94700
|
+
return e3 ? (r3 = new yh(), e3.state = r3, r3.window = null, (n3 = vh(e3, t3)) !== uh && (e3.state = null), n3) : hh;
|
|
94668
94701
|
}
|
|
94669
|
-
var
|
|
94670
|
-
function
|
|
94671
|
-
if (
|
|
94702
|
+
var _h, Sh, Ch = true;
|
|
94703
|
+
function zh(e3) {
|
|
94704
|
+
if (Ch) {
|
|
94672
94705
|
var t3;
|
|
94673
|
-
for (
|
|
94706
|
+
for (_h = new ih.Buf32(512), Sh = new ih.Buf32(32), t3 = 0; t3 < 144; )
|
|
94674
94707
|
e3.lens[t3++] = 8;
|
|
94675
94708
|
for (; t3 < 256; )
|
|
94676
94709
|
e3.lens[t3++] = 9;
|
|
@@ -94678,27 +94711,27 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94678
94711
|
e3.lens[t3++] = 7;
|
|
94679
94712
|
for (; t3 < 288; )
|
|
94680
94713
|
e3.lens[t3++] = 8;
|
|
94681
|
-
for (
|
|
94714
|
+
for (ch(1, e3.lens, 0, 288, _h, 0, e3.work, { bits: 9 }), t3 = 0; t3 < 32; )
|
|
94682
94715
|
e3.lens[t3++] = 5;
|
|
94683
|
-
|
|
94716
|
+
ch(2, e3.lens, 0, 32, Sh, 0, e3.work, { bits: 5 }), Ch = false;
|
|
94684
94717
|
}
|
|
94685
|
-
e3.lencode =
|
|
94718
|
+
e3.lencode = _h, e3.lenbits = 9, e3.distcode = Sh, e3.distbits = 5;
|
|
94686
94719
|
}
|
|
94687
|
-
function
|
|
94720
|
+
function Ah(e3, t3, n3, r3) {
|
|
94688
94721
|
var o3, i3 = e3.state;
|
|
94689
|
-
return null === i3.window && (i3.wsize = 1 << i3.wbits, i3.wnext = 0, i3.whave = 0, i3.window = new
|
|
94722
|
+
return null === i3.window && (i3.wsize = 1 << i3.wbits, i3.wnext = 0, i3.whave = 0, i3.window = new ih.Buf8(i3.wsize)), r3 >= i3.wsize ? (ih.arraySet(i3.window, t3, n3 - i3.wsize, i3.wsize, 0), i3.wnext = 0, i3.whave = i3.wsize) : ((o3 = i3.wsize - i3.wnext) > r3 && (o3 = r3), ih.arraySet(i3.window, t3, n3 - r3, o3, i3.wnext), (r3 -= o3) ? (ih.arraySet(i3.window, t3, n3 - r3, r3, 0), i3.wnext = r3, i3.whave = i3.wsize) : (i3.wnext += o3, i3.wnext === i3.wsize && (i3.wnext = 0), i3.whave < i3.wsize && (i3.whave += o3))), 0;
|
|
94690
94723
|
}
|
|
94691
|
-
|
|
94692
|
-
return
|
|
94693
|
-
},
|
|
94694
|
-
var n3, r3, o3, i3, a3, s3, l2, c2, u2, h2, d2, p2, m2, f2, g2, b2, y2, k2, w2, v2, x2, _2, S2, C2, z2 = 0, A2 = new
|
|
94724
|
+
Ju.inflateReset = wh, Ju.inflateReset2 = vh, Ju.inflateResetKeep = kh, Ju.inflateInit = function(e3) {
|
|
94725
|
+
return xh(e3, 15);
|
|
94726
|
+
}, Ju.inflateInit2 = xh, Ju.inflate = function(e3, t3) {
|
|
94727
|
+
var n3, r3, o3, i3, a3, s3, l2, c2, u2, h2, d2, p2, m2, f2, g2, b2, y2, k2, w2, v2, x2, _2, S2, C2, z2 = 0, A2 = new ih.Buf8(4), T2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
94695
94728
|
if (!e3 || !e3.state || !e3.output || !e3.input && 0 !== e3.avail_in)
|
|
94696
|
-
return
|
|
94697
|
-
(n3 = e3.state).mode ===
|
|
94729
|
+
return hh;
|
|
94730
|
+
(n3 = e3.state).mode === ph && (n3.mode = 13), a3 = e3.next_out, o3 = e3.output, l2 = e3.avail_out, i3 = e3.next_in, r3 = e3.input, s3 = e3.avail_in, c2 = n3.hold, u2 = n3.bits, h2 = s3, d2 = l2, _2 = uh;
|
|
94698
94731
|
e:
|
|
94699
94732
|
for (; ; )
|
|
94700
94733
|
switch (n3.mode) {
|
|
94701
|
-
case
|
|
94734
|
+
case dh:
|
|
94702
94735
|
if (0 === n3.wrap) {
|
|
94703
94736
|
n3.mode = 13;
|
|
94704
94737
|
break;
|
|
@@ -94709,24 +94742,24 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94709
94742
|
s3--, c2 += r3[i3++] << u2, u2 += 8;
|
|
94710
94743
|
}
|
|
94711
94744
|
if (2 & n3.wrap && 35615 === c2) {
|
|
94712
|
-
n3.check = 0, A2[0] = 255 & c2, A2[1] = c2 >>> 8 & 255, n3.check =
|
|
94745
|
+
n3.check = 0, A2[0] = 255 & c2, A2[1] = c2 >>> 8 & 255, n3.check = sh(n3.check, A2, 2, 0), c2 = 0, u2 = 0, n3.mode = 2;
|
|
94713
94746
|
break;
|
|
94714
94747
|
}
|
|
94715
94748
|
if (n3.flags = 0, n3.head && (n3.head.done = false), !(1 & n3.wrap) || (((255 & c2) << 8) + (c2 >> 8)) % 31) {
|
|
94716
|
-
e3.msg = "incorrect header check", n3.mode =
|
|
94749
|
+
e3.msg = "incorrect header check", n3.mode = mh;
|
|
94717
94750
|
break;
|
|
94718
94751
|
}
|
|
94719
94752
|
if (8 != (15 & c2)) {
|
|
94720
|
-
e3.msg = "unknown compression method", n3.mode =
|
|
94753
|
+
e3.msg = "unknown compression method", n3.mode = mh;
|
|
94721
94754
|
break;
|
|
94722
94755
|
}
|
|
94723
94756
|
if (u2 -= 4, x2 = 8 + (15 & (c2 >>>= 4)), 0 === n3.wbits)
|
|
94724
94757
|
n3.wbits = x2;
|
|
94725
94758
|
else if (x2 > n3.wbits) {
|
|
94726
|
-
e3.msg = "invalid window size", n3.mode =
|
|
94759
|
+
e3.msg = "invalid window size", n3.mode = mh;
|
|
94727
94760
|
break;
|
|
94728
94761
|
}
|
|
94729
|
-
n3.dmax = 1 << x2, e3.adler = n3.check = 1, n3.mode = 512 & c2 ? 10 :
|
|
94762
|
+
n3.dmax = 1 << x2, e3.adler = n3.check = 1, n3.mode = 512 & c2 ? 10 : ph, c2 = 0, u2 = 0;
|
|
94730
94763
|
break;
|
|
94731
94764
|
case 2:
|
|
94732
94765
|
for (; u2 < 16; ) {
|
|
@@ -94735,28 +94768,28 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94735
94768
|
s3--, c2 += r3[i3++] << u2, u2 += 8;
|
|
94736
94769
|
}
|
|
94737
94770
|
if (n3.flags = c2, 8 != (255 & n3.flags)) {
|
|
94738
|
-
e3.msg = "unknown compression method", n3.mode =
|
|
94771
|
+
e3.msg = "unknown compression method", n3.mode = mh;
|
|
94739
94772
|
break;
|
|
94740
94773
|
}
|
|
94741
94774
|
if (57344 & n3.flags) {
|
|
94742
|
-
e3.msg = "unknown header flags set", n3.mode =
|
|
94775
|
+
e3.msg = "unknown header flags set", n3.mode = mh;
|
|
94743
94776
|
break;
|
|
94744
94777
|
}
|
|
94745
|
-
n3.head && (n3.head.text = c2 >> 8 & 1), 512 & n3.flags && (A2[0] = 255 & c2, A2[1] = c2 >>> 8 & 255, n3.check =
|
|
94778
|
+
n3.head && (n3.head.text = c2 >> 8 & 1), 512 & n3.flags && (A2[0] = 255 & c2, A2[1] = c2 >>> 8 & 255, n3.check = sh(n3.check, A2, 2, 0)), c2 = 0, u2 = 0, n3.mode = 3;
|
|
94746
94779
|
case 3:
|
|
94747
94780
|
for (; u2 < 32; ) {
|
|
94748
94781
|
if (0 === s3)
|
|
94749
94782
|
break e;
|
|
94750
94783
|
s3--, c2 += r3[i3++] << u2, u2 += 8;
|
|
94751
94784
|
}
|
|
94752
|
-
n3.head && (n3.head.time = c2), 512 & n3.flags && (A2[0] = 255 & c2, A2[1] = c2 >>> 8 & 255, A2[2] = c2 >>> 16 & 255, A2[3] = c2 >>> 24 & 255, n3.check =
|
|
94785
|
+
n3.head && (n3.head.time = c2), 512 & n3.flags && (A2[0] = 255 & c2, A2[1] = c2 >>> 8 & 255, A2[2] = c2 >>> 16 & 255, A2[3] = c2 >>> 24 & 255, n3.check = sh(n3.check, A2, 4, 0)), c2 = 0, u2 = 0, n3.mode = 4;
|
|
94753
94786
|
case 4:
|
|
94754
94787
|
for (; u2 < 16; ) {
|
|
94755
94788
|
if (0 === s3)
|
|
94756
94789
|
break e;
|
|
94757
94790
|
s3--, c2 += r3[i3++] << u2, u2 += 8;
|
|
94758
94791
|
}
|
|
94759
|
-
n3.head && (n3.head.xflags = 255 & c2, n3.head.os = c2 >> 8), 512 & n3.flags && (A2[0] = 255 & c2, A2[1] = c2 >>> 8 & 255, n3.check =
|
|
94792
|
+
n3.head && (n3.head.xflags = 255 & c2, n3.head.os = c2 >> 8), 512 & n3.flags && (A2[0] = 255 & c2, A2[1] = c2 >>> 8 & 255, n3.check = sh(n3.check, A2, 2, 0)), c2 = 0, u2 = 0, n3.mode = 5;
|
|
94760
94793
|
case 5:
|
|
94761
94794
|
if (1024 & n3.flags) {
|
|
94762
94795
|
for (; u2 < 16; ) {
|
|
@@ -94764,12 +94797,12 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94764
94797
|
break e;
|
|
94765
94798
|
s3--, c2 += r3[i3++] << u2, u2 += 8;
|
|
94766
94799
|
}
|
|
94767
|
-
n3.length = c2, n3.head && (n3.head.extra_len = c2), 512 & n3.flags && (A2[0] = 255 & c2, A2[1] = c2 >>> 8 & 255, n3.check =
|
|
94800
|
+
n3.length = c2, n3.head && (n3.head.extra_len = c2), 512 & n3.flags && (A2[0] = 255 & c2, A2[1] = c2 >>> 8 & 255, n3.check = sh(n3.check, A2, 2, 0)), c2 = 0, u2 = 0;
|
|
94768
94801
|
} else
|
|
94769
94802
|
n3.head && (n3.head.extra = null);
|
|
94770
94803
|
n3.mode = 6;
|
|
94771
94804
|
case 6:
|
|
94772
|
-
if (1024 & n3.flags && ((p2 = n3.length) > s3 && (p2 = s3), p2 && (n3.head && (x2 = n3.head.extra_len - n3.length, n3.head.extra || (n3.head.extra = new Array(n3.head.extra_len)),
|
|
94805
|
+
if (1024 & n3.flags && ((p2 = n3.length) > s3 && (p2 = s3), p2 && (n3.head && (x2 = n3.head.extra_len - n3.length, n3.head.extra || (n3.head.extra = new Array(n3.head.extra_len)), ih.arraySet(n3.head.extra, r3, i3, p2, x2)), 512 & n3.flags && (n3.check = sh(n3.check, r3, p2, i3)), s3 -= p2, i3 += p2, n3.length -= p2), n3.length))
|
|
94773
94806
|
break e;
|
|
94774
94807
|
n3.length = 0, n3.mode = 7;
|
|
94775
94808
|
case 7:
|
|
@@ -94780,7 +94813,7 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94780
94813
|
do {
|
|
94781
94814
|
x2 = r3[i3 + p2++], n3.head && x2 && n3.length < 65536 && (n3.head.name += String.fromCharCode(x2));
|
|
94782
94815
|
} while (x2 && p2 < s3);
|
|
94783
|
-
if (512 & n3.flags && (n3.check =
|
|
94816
|
+
if (512 & n3.flags && (n3.check = sh(n3.check, r3, p2, i3)), s3 -= p2, i3 += p2, x2)
|
|
94784
94817
|
break e;
|
|
94785
94818
|
} else
|
|
94786
94819
|
n3.head && (n3.head.name = null);
|
|
@@ -94793,7 +94826,7 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94793
94826
|
do {
|
|
94794
94827
|
x2 = r3[i3 + p2++], n3.head && x2 && n3.length < 65536 && (n3.head.comment += String.fromCharCode(x2));
|
|
94795
94828
|
} while (x2 && p2 < s3);
|
|
94796
|
-
if (512 & n3.flags && (n3.check =
|
|
94829
|
+
if (512 & n3.flags && (n3.check = sh(n3.check, r3, p2, i3)), s3 -= p2, i3 += p2, x2)
|
|
94797
94830
|
break e;
|
|
94798
94831
|
} else
|
|
94799
94832
|
n3.head && (n3.head.comment = null);
|
|
@@ -94806,12 +94839,12 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94806
94839
|
s3--, c2 += r3[i3++] << u2, u2 += 8;
|
|
94807
94840
|
}
|
|
94808
94841
|
if (c2 !== (65535 & n3.check)) {
|
|
94809
|
-
e3.msg = "header crc mismatch", n3.mode =
|
|
94842
|
+
e3.msg = "header crc mismatch", n3.mode = mh;
|
|
94810
94843
|
break;
|
|
94811
94844
|
}
|
|
94812
94845
|
c2 = 0, u2 = 0;
|
|
94813
94846
|
}
|
|
94814
|
-
n3.head && (n3.head.hcrc = n3.flags >> 9 & 1, n3.head.done = true), e3.adler = n3.check = 0, n3.mode =
|
|
94847
|
+
n3.head && (n3.head.hcrc = n3.flags >> 9 & 1, n3.head.done = true), e3.adler = n3.check = 0, n3.mode = ph;
|
|
94815
94848
|
break;
|
|
94816
94849
|
case 10:
|
|
94817
94850
|
for (; u2 < 32; ) {
|
|
@@ -94819,12 +94852,12 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94819
94852
|
break e;
|
|
94820
94853
|
s3--, c2 += r3[i3++] << u2, u2 += 8;
|
|
94821
94854
|
}
|
|
94822
|
-
e3.adler = n3.check =
|
|
94855
|
+
e3.adler = n3.check = bh(c2), c2 = 0, u2 = 0, n3.mode = 11;
|
|
94823
94856
|
case 11:
|
|
94824
94857
|
if (0 === n3.havedict)
|
|
94825
94858
|
return e3.next_out = a3, e3.avail_out = l2, e3.next_in = i3, e3.avail_in = s3, n3.hold = c2, n3.bits = u2, 2;
|
|
94826
|
-
e3.adler = n3.check = 1, n3.mode =
|
|
94827
|
-
case
|
|
94859
|
+
e3.adler = n3.check = 1, n3.mode = ph;
|
|
94860
|
+
case ph:
|
|
94828
94861
|
if (5 === t3 || 6 === t3)
|
|
94829
94862
|
break e;
|
|
94830
94863
|
case 13:
|
|
@@ -94842,7 +94875,7 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94842
94875
|
n3.mode = 14;
|
|
94843
94876
|
break;
|
|
94844
94877
|
case 1:
|
|
94845
|
-
if (
|
|
94878
|
+
if (zh(n3), n3.mode = 20, 6 === t3) {
|
|
94846
94879
|
c2 >>>= 2, u2 -= 2;
|
|
94847
94880
|
break e;
|
|
94848
94881
|
}
|
|
@@ -94851,7 +94884,7 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94851
94884
|
n3.mode = 17;
|
|
94852
94885
|
break;
|
|
94853
94886
|
case 3:
|
|
94854
|
-
e3.msg = "invalid block type", n3.mode =
|
|
94887
|
+
e3.msg = "invalid block type", n3.mode = mh;
|
|
94855
94888
|
}
|
|
94856
94889
|
c2 >>>= 2, u2 -= 2;
|
|
94857
94890
|
break;
|
|
@@ -94862,7 +94895,7 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94862
94895
|
s3--, c2 += r3[i3++] << u2, u2 += 8;
|
|
94863
94896
|
}
|
|
94864
94897
|
if ((65535 & c2) != (c2 >>> 16 ^ 65535)) {
|
|
94865
|
-
e3.msg = "invalid stored block lengths", n3.mode =
|
|
94898
|
+
e3.msg = "invalid stored block lengths", n3.mode = mh;
|
|
94866
94899
|
break;
|
|
94867
94900
|
}
|
|
94868
94901
|
if (n3.length = 65535 & c2, c2 = 0, u2 = 0, n3.mode = 15, 6 === t3)
|
|
@@ -94873,10 +94906,10 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94873
94906
|
if (p2 = n3.length) {
|
|
94874
94907
|
if (p2 > s3 && (p2 = s3), p2 > l2 && (p2 = l2), 0 === p2)
|
|
94875
94908
|
break e;
|
|
94876
|
-
|
|
94909
|
+
ih.arraySet(o3, r3, i3, p2, a3), s3 -= p2, i3 += p2, l2 -= p2, a3 += p2, n3.length -= p2;
|
|
94877
94910
|
break;
|
|
94878
94911
|
}
|
|
94879
|
-
n3.mode =
|
|
94912
|
+
n3.mode = ph;
|
|
94880
94913
|
break;
|
|
94881
94914
|
case 17:
|
|
94882
94915
|
for (; u2 < 14; ) {
|
|
@@ -94885,7 +94918,7 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94885
94918
|
s3--, c2 += r3[i3++] << u2, u2 += 8;
|
|
94886
94919
|
}
|
|
94887
94920
|
if (n3.nlen = 257 + (31 & c2), c2 >>>= 5, u2 -= 5, n3.ndist = 1 + (31 & c2), c2 >>>= 5, u2 -= 5, n3.ncode = 4 + (15 & c2), c2 >>>= 4, u2 -= 4, n3.nlen > 286 || n3.ndist > 30) {
|
|
94888
|
-
e3.msg = "too many length or distance symbols", n3.mode =
|
|
94921
|
+
e3.msg = "too many length or distance symbols", n3.mode = mh;
|
|
94889
94922
|
break;
|
|
94890
94923
|
}
|
|
94891
94924
|
n3.have = 0, n3.mode = 18;
|
|
@@ -94900,8 +94933,8 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94900
94933
|
}
|
|
94901
94934
|
for (; n3.have < 19; )
|
|
94902
94935
|
n3.lens[T2[n3.have++]] = 0;
|
|
94903
|
-
if (n3.lencode = n3.lendyn, n3.lenbits = 7, S2 = { bits: n3.lenbits }, _2 =
|
|
94904
|
-
e3.msg = "invalid code lengths set", n3.mode =
|
|
94936
|
+
if (n3.lencode = n3.lendyn, n3.lenbits = 7, S2 = { bits: n3.lenbits }, _2 = ch(0, n3.lens, 0, 19, n3.lencode, 0, n3.work, S2), n3.lenbits = S2.bits, _2) {
|
|
94937
|
+
e3.msg = "invalid code lengths set", n3.mode = mh;
|
|
94905
94938
|
break;
|
|
94906
94939
|
}
|
|
94907
94940
|
n3.have = 0, n3.mode = 19;
|
|
@@ -94922,7 +94955,7 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94922
94955
|
s3--, c2 += r3[i3++] << u2, u2 += 8;
|
|
94923
94956
|
}
|
|
94924
94957
|
if (c2 >>>= g2, u2 -= g2, 0 === n3.have) {
|
|
94925
|
-
e3.msg = "invalid bit length repeat", n3.mode =
|
|
94958
|
+
e3.msg = "invalid bit length repeat", n3.mode = mh;
|
|
94926
94959
|
break;
|
|
94927
94960
|
}
|
|
94928
94961
|
x2 = n3.lens[n3.have - 1], p2 = 3 + (3 & c2), c2 >>>= 2, u2 -= 2;
|
|
@@ -94942,25 +94975,25 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94942
94975
|
u2 -= g2, x2 = 0, p2 = 11 + (127 & (c2 >>>= g2)), c2 >>>= 7, u2 -= 7;
|
|
94943
94976
|
}
|
|
94944
94977
|
if (n3.have + p2 > n3.nlen + n3.ndist) {
|
|
94945
|
-
e3.msg = "invalid bit length repeat", n3.mode =
|
|
94978
|
+
e3.msg = "invalid bit length repeat", n3.mode = mh;
|
|
94946
94979
|
break;
|
|
94947
94980
|
}
|
|
94948
94981
|
for (; p2--; )
|
|
94949
94982
|
n3.lens[n3.have++] = x2;
|
|
94950
94983
|
}
|
|
94951
94984
|
}
|
|
94952
|
-
if (n3.mode ===
|
|
94985
|
+
if (n3.mode === mh)
|
|
94953
94986
|
break;
|
|
94954
94987
|
if (0 === n3.lens[256]) {
|
|
94955
|
-
e3.msg = "invalid code -- missing end-of-block", n3.mode =
|
|
94988
|
+
e3.msg = "invalid code -- missing end-of-block", n3.mode = mh;
|
|
94956
94989
|
break;
|
|
94957
94990
|
}
|
|
94958
|
-
if (n3.lenbits = 9, S2 = { bits: n3.lenbits }, _2 =
|
|
94959
|
-
e3.msg = "invalid literal/lengths set", n3.mode =
|
|
94991
|
+
if (n3.lenbits = 9, S2 = { bits: n3.lenbits }, _2 = ch(1, n3.lens, 0, n3.nlen, n3.lencode, 0, n3.work, S2), n3.lenbits = S2.bits, _2) {
|
|
94992
|
+
e3.msg = "invalid literal/lengths set", n3.mode = mh;
|
|
94960
94993
|
break;
|
|
94961
94994
|
}
|
|
94962
|
-
if (n3.distbits = 6, n3.distcode = n3.distdyn, S2 = { bits: n3.distbits }, _2 =
|
|
94963
|
-
e3.msg = "invalid distances set", n3.mode =
|
|
94995
|
+
if (n3.distbits = 6, n3.distcode = n3.distdyn, S2 = { bits: n3.distbits }, _2 = ch(2, n3.lens, n3.nlen, n3.ndist, n3.distcode, 0, n3.work, S2), n3.distbits = S2.bits, _2) {
|
|
94996
|
+
e3.msg = "invalid distances set", n3.mode = mh;
|
|
94964
94997
|
break;
|
|
94965
94998
|
}
|
|
94966
94999
|
if (n3.mode = 20, 6 === t3)
|
|
@@ -94969,7 +95002,7 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94969
95002
|
n3.mode = 21;
|
|
94970
95003
|
case 21:
|
|
94971
95004
|
if (s3 >= 6 && l2 >= 258) {
|
|
94972
|
-
e3.next_out = a3, e3.avail_out = l2, e3.next_in = i3, e3.avail_in = s3, n3.hold = c2, n3.bits = u2,
|
|
95005
|
+
e3.next_out = a3, e3.avail_out = l2, e3.next_in = i3, e3.avail_in = s3, n3.hold = c2, n3.bits = u2, lh(e3, d2), a3 = e3.next_out, o3 = e3.output, l2 = e3.avail_out, i3 = e3.next_in, r3 = e3.input, s3 = e3.avail_in, c2 = n3.hold, u2 = n3.bits, n3.mode === ph && (n3.back = -1);
|
|
94973
95006
|
break;
|
|
94974
95007
|
}
|
|
94975
95008
|
for (n3.back = 0; b2 = (z2 = n3.lencode[c2 & (1 << n3.lenbits) - 1]) >>> 16 & 255, y2 = 65535 & z2, !((g2 = z2 >>> 24) <= u2); ) {
|
|
@@ -94990,11 +95023,11 @@ var require_processPagePollCjs = __commonJS({
|
|
|
94990
95023
|
break;
|
|
94991
95024
|
}
|
|
94992
95025
|
if (32 & b2) {
|
|
94993
|
-
n3.back = -1, n3.mode =
|
|
95026
|
+
n3.back = -1, n3.mode = ph;
|
|
94994
95027
|
break;
|
|
94995
95028
|
}
|
|
94996
95029
|
if (64 & b2) {
|
|
94997
|
-
e3.msg = "invalid literal/length code", n3.mode =
|
|
95030
|
+
e3.msg = "invalid literal/length code", n3.mode = mh;
|
|
94998
95031
|
break;
|
|
94999
95032
|
}
|
|
95000
95033
|
n3.extra = 15 & b2, n3.mode = 22;
|
|
@@ -95023,7 +95056,7 @@ var require_processPagePollCjs = __commonJS({
|
|
|
95023
95056
|
c2 >>>= k2, u2 -= k2, n3.back += k2;
|
|
95024
95057
|
}
|
|
95025
95058
|
if (c2 >>>= g2, u2 -= g2, n3.back += g2, 64 & b2) {
|
|
95026
|
-
e3.msg = "invalid distance code", n3.mode =
|
|
95059
|
+
e3.msg = "invalid distance code", n3.mode = mh;
|
|
95027
95060
|
break;
|
|
95028
95061
|
}
|
|
95029
95062
|
n3.offset = y2, n3.extra = 15 & b2, n3.mode = 24;
|
|
@@ -95037,7 +95070,7 @@ var require_processPagePollCjs = __commonJS({
|
|
|
95037
95070
|
n3.offset += c2 & (1 << n3.extra) - 1, c2 >>>= n3.extra, u2 -= n3.extra, n3.back += n3.extra;
|
|
95038
95071
|
}
|
|
95039
95072
|
if (n3.offset > n3.dmax) {
|
|
95040
|
-
e3.msg = "invalid distance too far back", n3.mode =
|
|
95073
|
+
e3.msg = "invalid distance too far back", n3.mode = mh;
|
|
95041
95074
|
break;
|
|
95042
95075
|
}
|
|
95043
95076
|
n3.mode = 25;
|
|
@@ -95046,7 +95079,7 @@ var require_processPagePollCjs = __commonJS({
|
|
|
95046
95079
|
break e;
|
|
95047
95080
|
if (p2 = d2 - l2, n3.offset > p2) {
|
|
95048
95081
|
if ((p2 = n3.offset - p2) > n3.whave && n3.sane) {
|
|
95049
|
-
e3.msg = "invalid distance too far back", n3.mode =
|
|
95082
|
+
e3.msg = "invalid distance too far back", n3.mode = mh;
|
|
95050
95083
|
break;
|
|
95051
95084
|
}
|
|
95052
95085
|
p2 > n3.wnext ? (p2 -= n3.wnext, m2 = n3.wsize - p2) : m2 = n3.wnext - p2, p2 > n3.length && (p2 = n3.length), f2 = n3.window;
|
|
@@ -95070,8 +95103,8 @@ var require_processPagePollCjs = __commonJS({
|
|
|
95070
95103
|
break e;
|
|
95071
95104
|
s3--, c2 |= r3[i3++] << u2, u2 += 8;
|
|
95072
95105
|
}
|
|
95073
|
-
if (d2 -= l2, e3.total_out += d2, n3.total += d2, d2 && (e3.adler = n3.check = n3.flags ?
|
|
95074
|
-
e3.msg = "incorrect data check", n3.mode =
|
|
95106
|
+
if (d2 -= l2, e3.total_out += d2, n3.total += d2, d2 && (e3.adler = n3.check = n3.flags ? sh(n3.check, o3, d2, a3 - d2) : ah(n3.check, o3, d2, a3 - d2)), d2 = l2, (n3.flags ? c2 : bh(c2)) !== n3.check) {
|
|
95107
|
+
e3.msg = "incorrect data check", n3.mode = mh;
|
|
95075
95108
|
break;
|
|
95076
95109
|
}
|
|
95077
95110
|
c2 = 0, u2 = 0;
|
|
@@ -95085,7 +95118,7 @@ var require_processPagePollCjs = __commonJS({
|
|
|
95085
95118
|
s3--, c2 += r3[i3++] << u2, u2 += 8;
|
|
95086
95119
|
}
|
|
95087
95120
|
if (c2 !== (4294967295 & n3.total)) {
|
|
95088
|
-
e3.msg = "incorrect length check", n3.mode =
|
|
95121
|
+
e3.msg = "incorrect length check", n3.mode = mh;
|
|
95089
95122
|
break;
|
|
95090
95123
|
}
|
|
95091
95124
|
c2 = 0, u2 = 0;
|
|
@@ -95094,72 +95127,72 @@ var require_processPagePollCjs = __commonJS({
|
|
|
95094
95127
|
case 29:
|
|
95095
95128
|
_2 = 1;
|
|
95096
95129
|
break e;
|
|
95097
|
-
case
|
|
95130
|
+
case mh:
|
|
95098
95131
|
_2 = -3;
|
|
95099
95132
|
break e;
|
|
95100
95133
|
case 31:
|
|
95101
95134
|
return -4;
|
|
95102
95135
|
default:
|
|
95103
|
-
return
|
|
95136
|
+
return hh;
|
|
95104
95137
|
}
|
|
95105
|
-
return e3.next_out = a3, e3.avail_out = l2, e3.next_in = i3, e3.avail_in = s3, n3.hold = c2, n3.bits = u2, (n3.wsize || d2 !== e3.avail_out && n3.mode <
|
|
95106
|
-
},
|
|
95138
|
+
return e3.next_out = a3, e3.avail_out = l2, e3.next_in = i3, e3.avail_in = s3, n3.hold = c2, n3.bits = u2, (n3.wsize || d2 !== e3.avail_out && n3.mode < mh && (n3.mode < 27 || 4 !== t3)) && Ah(e3, e3.output, e3.next_out, d2 - e3.avail_out), h2 -= e3.avail_in, d2 -= e3.avail_out, e3.total_in += h2, e3.total_out += d2, n3.total += d2, n3.wrap && d2 && (e3.adler = n3.check = n3.flags ? sh(n3.check, o3, d2, e3.next_out - d2) : ah(n3.check, o3, d2, e3.next_out - d2)), e3.data_type = n3.bits + (n3.last ? 64 : 0) + (n3.mode === ph ? 128 : 0) + (20 === n3.mode || 15 === n3.mode ? 256 : 0), (0 === h2 && 0 === d2 || 4 === t3) && _2 === uh && (_2 = -5), _2;
|
|
95139
|
+
}, Ju.inflateEnd = function(e3) {
|
|
95107
95140
|
if (!e3 || !e3.state)
|
|
95108
|
-
return
|
|
95141
|
+
return hh;
|
|
95109
95142
|
var t3 = e3.state;
|
|
95110
|
-
return t3.window && (t3.window = null), e3.state = null,
|
|
95111
|
-
},
|
|
95143
|
+
return t3.window && (t3.window = null), e3.state = null, uh;
|
|
95144
|
+
}, Ju.inflateGetHeader = function(e3, t3) {
|
|
95112
95145
|
var n3;
|
|
95113
|
-
return e3 && e3.state ? 0 == (2 & (n3 = e3.state).wrap) ?
|
|
95114
|
-
},
|
|
95146
|
+
return e3 && e3.state ? 0 == (2 & (n3 = e3.state).wrap) ? hh : (n3.head = t3, t3.done = false, uh) : hh;
|
|
95147
|
+
}, Ju.inflateSetDictionary = function(e3, t3) {
|
|
95115
95148
|
var n3, r3 = t3.length;
|
|
95116
|
-
return e3 && e3.state ? 0 !== (n3 = e3.state).wrap && 11 !== n3.mode ?
|
|
95117
|
-
},
|
|
95118
|
-
var
|
|
95149
|
+
return e3 && e3.state ? 0 !== (n3 = e3.state).wrap && 11 !== n3.mode ? hh : 11 === n3.mode && ah(1, t3, r3, 0) !== n3.check ? -3 : Ah(e3, t3, r3, r3) ? (n3.mode = 31, -4) : (n3.havedict = 1, uh) : hh;
|
|
95150
|
+
}, Ju.inflateInfo = "pako inflate (from Nodeca project)";
|
|
95151
|
+
var Th = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 }, Oh = Ju, Lh = tc, Eh = Ru, Rh = Th, Nh = Kc, jh = Fu, Ih = function() {
|
|
95119
95152
|
this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = false;
|
|
95120
|
-
},
|
|
95121
|
-
function
|
|
95122
|
-
if (!(this instanceof
|
|
95123
|
-
return new
|
|
95124
|
-
this.options =
|
|
95153
|
+
}, Dh = Object.prototype.toString;
|
|
95154
|
+
function Ph(e3) {
|
|
95155
|
+
if (!(this instanceof Ph))
|
|
95156
|
+
return new Ph(e3);
|
|
95157
|
+
this.options = Lh.assign({ chunkSize: 16384, windowBits: 0, to: "" }, e3 || {});
|
|
95125
95158
|
var t3 = this.options;
|
|
95126
|
-
t3.raw && t3.windowBits >= 0 && t3.windowBits < 16 && (t3.windowBits = -t3.windowBits, 0 === t3.windowBits && (t3.windowBits = -15)), !(t3.windowBits >= 0 && t3.windowBits < 16) || e3 && e3.windowBits || (t3.windowBits += 32), t3.windowBits > 15 && t3.windowBits < 48 && 0 == (15 & t3.windowBits) && (t3.windowBits |= 15), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new
|
|
95127
|
-
var n3 =
|
|
95128
|
-
if (n3 !==
|
|
95129
|
-
throw new Error(
|
|
95130
|
-
if (this.header = new
|
|
95131
|
-
throw new Error(
|
|
95132
|
-
}
|
|
95133
|
-
function
|
|
95134
|
-
var n3 = new
|
|
95159
|
+
t3.raw && t3.windowBits >= 0 && t3.windowBits < 16 && (t3.windowBits = -t3.windowBits, 0 === t3.windowBits && (t3.windowBits = -15)), !(t3.windowBits >= 0 && t3.windowBits < 16) || e3 && e3.windowBits || (t3.windowBits += 32), t3.windowBits > 15 && t3.windowBits < 48 && 0 == (15 & t3.windowBits) && (t3.windowBits |= 15), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new jh(), this.strm.avail_out = 0;
|
|
95160
|
+
var n3 = Oh.inflateInit2(this.strm, t3.windowBits);
|
|
95161
|
+
if (n3 !== Rh.Z_OK)
|
|
95162
|
+
throw new Error(Nh[n3]);
|
|
95163
|
+
if (this.header = new Ih(), Oh.inflateGetHeader(this.strm, this.header), t3.dictionary && ("string" == typeof t3.dictionary ? t3.dictionary = Eh.string2buf(t3.dictionary) : "[object ArrayBuffer]" === Dh.call(t3.dictionary) && (t3.dictionary = new Uint8Array(t3.dictionary)), t3.raw && (n3 = Oh.inflateSetDictionary(this.strm, t3.dictionary)) !== Rh.Z_OK))
|
|
95164
|
+
throw new Error(Nh[n3]);
|
|
95165
|
+
}
|
|
95166
|
+
function Bh(e3, t3) {
|
|
95167
|
+
var n3 = new Ph(t3);
|
|
95135
95168
|
if (n3.push(e3, true), n3.err)
|
|
95136
|
-
throw n3.msg ||
|
|
95169
|
+
throw n3.msg || Nh[n3.err];
|
|
95137
95170
|
return n3.result;
|
|
95138
95171
|
}
|
|
95139
|
-
|
|
95172
|
+
Ph.prototype.push = function(e3, t3) {
|
|
95140
95173
|
var n3, r3, o3, i3, a3, s3 = this.strm, l2 = this.options.chunkSize, c2 = this.options.dictionary, u2 = false;
|
|
95141
95174
|
if (this.ended)
|
|
95142
95175
|
return false;
|
|
95143
|
-
r3 = t3 === ~~t3 ? t3 : true === t3 ?
|
|
95176
|
+
r3 = t3 === ~~t3 ? t3 : true === t3 ? Rh.Z_FINISH : Rh.Z_NO_FLUSH, "string" == typeof e3 ? s3.input = Eh.binstring2buf(e3) : "[object ArrayBuffer]" === Dh.call(e3) ? s3.input = new Uint8Array(e3) : s3.input = e3, s3.next_in = 0, s3.avail_in = s3.input.length;
|
|
95144
95177
|
do {
|
|
95145
|
-
if (0 === s3.avail_out && (s3.output = new
|
|
95178
|
+
if (0 === s3.avail_out && (s3.output = new Lh.Buf8(l2), s3.next_out = 0, s3.avail_out = l2), (n3 = Oh.inflate(s3, Rh.Z_NO_FLUSH)) === Rh.Z_NEED_DICT && c2 && (n3 = Oh.inflateSetDictionary(this.strm, c2)), n3 === Rh.Z_BUF_ERROR && true === u2 && (n3 = Rh.Z_OK, u2 = false), n3 !== Rh.Z_STREAM_END && n3 !== Rh.Z_OK)
|
|
95146
95179
|
return this.onEnd(n3), this.ended = true, false;
|
|
95147
|
-
s3.next_out && (0 !== s3.avail_out && n3 !==
|
|
95148
|
-
} while ((s3.avail_in > 0 || 0 === s3.avail_out) && n3 !==
|
|
95149
|
-
return n3 ===
|
|
95150
|
-
},
|
|
95180
|
+
s3.next_out && (0 !== s3.avail_out && n3 !== Rh.Z_STREAM_END && (0 !== s3.avail_in || r3 !== Rh.Z_FINISH && r3 !== Rh.Z_SYNC_FLUSH) || ("string" === this.options.to ? (o3 = Eh.utf8border(s3.output, s3.next_out), i3 = s3.next_out - o3, a3 = Eh.buf2string(s3.output, o3), s3.next_out = i3, s3.avail_out = l2 - i3, i3 && Lh.arraySet(s3.output, s3.output, o3, i3, 0), this.onData(a3)) : this.onData(Lh.shrinkBuf(s3.output, s3.next_out)))), 0 === s3.avail_in && 0 === s3.avail_out && (u2 = true);
|
|
95181
|
+
} while ((s3.avail_in > 0 || 0 === s3.avail_out) && n3 !== Rh.Z_STREAM_END);
|
|
95182
|
+
return n3 === Rh.Z_STREAM_END && (r3 = Rh.Z_FINISH), r3 === Rh.Z_FINISH ? (n3 = Oh.inflateEnd(this.strm), this.onEnd(n3), this.ended = true, n3 === Rh.Z_OK) : r3 !== Rh.Z_SYNC_FLUSH || (this.onEnd(Rh.Z_OK), s3.avail_out = 0, true);
|
|
95183
|
+
}, Ph.prototype.onData = function(e3) {
|
|
95151
95184
|
this.chunks.push(e3);
|
|
95152
|
-
},
|
|
95153
|
-
e3 ===
|
|
95154
|
-
},
|
|
95155
|
-
return (t3 = t3 || {}).raw = true,
|
|
95156
|
-
},
|
|
95157
|
-
var
|
|
95158
|
-
(0,
|
|
95159
|
-
var
|
|
95160
|
-
function
|
|
95185
|
+
}, Ph.prototype.onEnd = function(e3) {
|
|
95186
|
+
e3 === Rh.Z_OK && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = Lh.flattenChunks(this.chunks)), this.chunks = [], this.err = e3, this.msg = this.strm.msg;
|
|
95187
|
+
}, Qu.Inflate = Ph, Qu.inflate = Bh, Qu.inflateRaw = function(e3, t3) {
|
|
95188
|
+
return (t3 = t3 || {}).raw = true, Bh(e3, t3);
|
|
95189
|
+
}, Qu.ungzip = Bh;
|
|
95190
|
+
var Fh = {};
|
|
95191
|
+
(0, tc.assign)(Fh, nc, Qu, Th);
|
|
95192
|
+
var Uh = Fh;
|
|
95193
|
+
function Mh({ type: e3, value: t3, compress: n3, serialize: r3 }) {
|
|
95161
95194
|
const o3 = { type: e3, value: t3 };
|
|
95162
|
-
return n3 && (o3.value =
|
|
95195
|
+
return n3 && (o3.value = Uh.deflate(new Uint8Array(o3.value)), o3.compressed = true), r3 && (o3.value = function(e4) {
|
|
95163
95196
|
const t4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""), n4 = new Uint8Array(e4), r4 = n4.length, o4 = r4 % 3, i3 = [], a3 = 16383;
|
|
95164
95197
|
let s3;
|
|
95165
95198
|
for (let e5 = 0, t5 = r4 - o4; e5 < t5; e5 += a3)
|
|
@@ -95175,38 +95208,38 @@ var require_processPagePollCjs = __commonJS({
|
|
|
95175
95208
|
}
|
|
95176
95209
|
}(o3.value)), o3;
|
|
95177
95210
|
}
|
|
95178
|
-
function
|
|
95211
|
+
function qh(e3) {
|
|
95179
95212
|
return /^(blob|https?):/.test(e3);
|
|
95180
95213
|
}
|
|
95181
|
-
function
|
|
95214
|
+
function Wh(e3) {
|
|
95182
95215
|
const t3 = e3 && e3.match(/(^[^#]*)/), n3 = t3 && t3[1] || e3;
|
|
95183
95216
|
return n3 && n3.replace(/\?\s*$/, "?") || e3;
|
|
95184
95217
|
}
|
|
95185
|
-
const
|
|
95218
|
+
const $h = (...e3) => {
|
|
95186
95219
|
};
|
|
95187
|
-
function
|
|
95220
|
+
function Vh(e3) {
|
|
95188
95221
|
return e3.reduce((e4, t3) => e4.concat(t3), []);
|
|
95189
95222
|
}
|
|
95190
|
-
function
|
|
95223
|
+
function Zh(t3) {
|
|
95191
95224
|
const n3 = new TextDecoder("utf-8").decode(t3), r3 = e2.head || e2.querySelectorAll("head")[0], o3 = e2.createElement("style");
|
|
95192
95225
|
return o3.type = "text/css", o3.setAttribute("data-desc", "Applitools tmp variable created by DOM SNAPSHOT"), r3.appendChild(o3), o3.styleSheet ? o3.styleSheet.cssText = n3 : o3.appendChild(e2.createTextNode(n3)), o3.sheet;
|
|
95193
95226
|
}
|
|
95194
|
-
function
|
|
95227
|
+
function Kh(e3, t3, n3 = $h) {
|
|
95195
95228
|
let r3;
|
|
95196
95229
|
if (t3)
|
|
95197
95230
|
try {
|
|
95198
95231
|
t3.cssRules, r3 = t3;
|
|
95199
95232
|
} catch (o3) {
|
|
95200
95233
|
n3(`[dom-snapshot] could not access cssRules for ${t3.href} ${o3}
|
|
95201
|
-
creating temp style for access.`), r3 =
|
|
95234
|
+
creating temp style for access.`), r3 = Zh(e3);
|
|
95202
95235
|
}
|
|
95203
95236
|
else
|
|
95204
|
-
r3 =
|
|
95237
|
+
r3 = Zh(e3);
|
|
95205
95238
|
return { corsFreeStyleSheet: r3, cleanStyleSheet: function() {
|
|
95206
95239
|
r3 !== t3 && r3.ownerNode.parentNode.removeChild(r3.ownerNode);
|
|
95207
95240
|
} };
|
|
95208
95241
|
}
|
|
95209
|
-
function
|
|
95242
|
+
function Hh(e3, { log: t3, compress: n3, serialize: r3 }) {
|
|
95210
95243
|
return e3.reduce(async (e4, { url: o3, element: i3, cdtNode: a3 }) => {
|
|
95211
95244
|
const s3 = new Promise(async (e5) => {
|
|
95212
95245
|
try {
|
|
@@ -95225,19 +95258,19 @@ creating temp style for access.`), r3 = Vh(e3);
|
|
|
95225
95258
|
});
|
|
95226
95259
|
return e4.then((e5) => s3.then((t4) => {
|
|
95227
95260
|
if (t4) {
|
|
95228
|
-
const i4 =
|
|
95261
|
+
const i4 = Mh({ type: "image/png", value: t4, compress: n3, serialize: r3 }), a4 = { ...i4, value: i4.value, url: o3 };
|
|
95229
95262
|
e5.push(a4);
|
|
95230
95263
|
}
|
|
95231
95264
|
return e5;
|
|
95232
95265
|
}));
|
|
95233
95266
|
}, Promise.resolve([]));
|
|
95234
95267
|
}
|
|
95235
|
-
const
|
|
95236
|
-
function
|
|
95237
|
-
return e3 &&
|
|
95268
|
+
const Gh = "__process_resource";
|
|
95269
|
+
function Yh(e3) {
|
|
95270
|
+
return e3 && qh(e3);
|
|
95238
95271
|
}
|
|
95239
95272
|
window[x] = window[x] || {};
|
|
95240
|
-
const
|
|
95273
|
+
const Xh = f(function({ doc: t3 = e2, showLogs: n3, useSessionCache: r3, dontFetchResources: o3, fetchTimeout: i3, skipResources: a3, compressResources: s3, serializeResources: l2, removeReverseProxyURLPrefixes: c2, elements: u2 } = {}) {
|
|
95241
95274
|
if (arguments[0] instanceof Document) {
|
|
95242
95275
|
t3 = arguments[0];
|
|
95243
95276
|
const e3 = arguments[1];
|
|
@@ -95268,7 +95301,7 @@ creating temp style for access.`), r3 = Vh(e3);
|
|
|
95268
95301
|
try {
|
|
95269
95302
|
const e4 = t4 || ("undefined" != typeof window ? window.sessionStorage : void 0);
|
|
95270
95303
|
if (e4) {
|
|
95271
|
-
const t5 = e4.getItem(
|
|
95304
|
+
const t5 = e4.getItem(Gh);
|
|
95272
95305
|
n4 = t5 ? JSON.parse(t5) : {};
|
|
95273
95306
|
}
|
|
95274
95307
|
} catch (t5) {
|
|
@@ -95284,22 +95317,22 @@ creating temp style for access.`), r3 = Vh(e3);
|
|
|
95284
95317
|
}, persist: function() {
|
|
95285
95318
|
if (n4) {
|
|
95286
95319
|
const e4 = t4 || ("undefined" != typeof window ? window.sessionStorage : void 0);
|
|
95287
|
-
e4 && e4.setItem(
|
|
95320
|
+
e4 && e4.setItem(Gh, JSON.stringify(n4));
|
|
95288
95321
|
}
|
|
95289
95322
|
} };
|
|
95290
95323
|
}({ log: h2.log }), p2 = {}, m2 = function({ styleSheetCache: e3, CSSRule: t4 = window.CSSRule, removeReverseProxyURLPrefixes: n4 }) {
|
|
95291
95324
|
return function r4(o4) {
|
|
95292
|
-
return
|
|
95325
|
+
return Jl(Array.from(o4.cssRules || []).reduce((o5, i4) => {
|
|
95293
95326
|
const a4 = { [t4.IMPORT_RULE]: () => {
|
|
95294
95327
|
const t5 = i4;
|
|
95295
95328
|
return t5.styleSheet && (e3[t5.styleSheet.href] = t5.styleSheet, t5.styleSheet.href) ? t5.styleSheet.href : t5.href;
|
|
95296
|
-
}, [t4.FONT_FACE_RULE]: () =>
|
|
95329
|
+
}, [t4.FONT_FACE_RULE]: () => Fl(i4.cssText, { removeReverseProxyURLPrefixes: n4 }), [t4.SUPPORTS_RULE]: () => r4(i4), [t4.MEDIA_RULE]: () => r4(i4), [t4.STYLE_RULE]: () => Ul(i4.style) }[i4.type], s4 = a4 && a4() || [];
|
|
95297
95330
|
return (null == i4 ? void 0 : i4.cssRules) && s4.push(...r4(i4)), o5.concat(s4);
|
|
95298
95331
|
}, [])).filter((e4) => "#" !== e4[0]);
|
|
95299
95332
|
};
|
|
95300
95333
|
}({ styleSheetCache: p2, removeReverseProxyURLPrefixes: Boolean(null == c2 ? void 0 : c2.length) }), f2 = function({ styleSheetCache: e3 }) {
|
|
95301
95334
|
return function(t4, n4) {
|
|
95302
|
-
const r4 =
|
|
95335
|
+
const r4 = Vh(n4.map((e4) => {
|
|
95303
95336
|
try {
|
|
95304
95337
|
return Array.from(e4.styleSheets);
|
|
95305
95338
|
} catch (e5) {
|
|
@@ -95307,7 +95340,7 @@ creating temp style for access.`), r3 = Vh(e3);
|
|
|
95307
95340
|
}
|
|
95308
95341
|
}));
|
|
95309
95342
|
return e3[t4] || r4.find((e4) => {
|
|
95310
|
-
const n5 = e4.href &&
|
|
95343
|
+
const n5 = e4.href && Wh(e4.href);
|
|
95311
95344
|
return n5 && function(e5) {
|
|
95312
95345
|
const t5 = new URL(e5);
|
|
95313
95346
|
return t5.username && (t5.username = ""), t5.password && (t5.password = ""), t5.href;
|
|
@@ -95316,14 +95349,14 @@ creating temp style for access.`), r3 = Vh(e3);
|
|
|
95316
95349
|
};
|
|
95317
95350
|
}({ styleSheetCache: p2 }), g2 = function(e3) {
|
|
95318
95351
|
return function(t4, n4 = true) {
|
|
95319
|
-
return
|
|
95352
|
+
return Jl(Array.from(t4.querySelectorAll("style")).reduce((r4, o4) => {
|
|
95320
95353
|
const i4 = n4 ? Array.from(t4.styleSheets).find((e4) => e4.ownerNode === o4) : o4.sheet;
|
|
95321
95354
|
return i4 ? r4.concat(e3(i4)) : r4;
|
|
95322
95355
|
}, []));
|
|
95323
95356
|
};
|
|
95324
95357
|
}(m2), b2 = function(e3) {
|
|
95325
95358
|
return function(t4) {
|
|
95326
|
-
return t4.adoptedStyleSheets ?
|
|
95359
|
+
return t4.adoptedStyleSheets ? Jl(t4.adoptedStyleSheets.reduce((t5, n4) => t5.concat(e3(n4)), [])) : [];
|
|
95327
95360
|
};
|
|
95328
95361
|
}(m2), k2 = function({ parser: e3, decoder: t4, extractResourceUrlsFromStyleTags: n4 }) {
|
|
95329
95362
|
return function(r4) {
|
|
@@ -95331,7 +95364,7 @@ creating temp style for access.`), r3 = Vh(e3);
|
|
|
95331
95364
|
const t5 = e4.getAttribute("srcset");
|
|
95332
95365
|
return t5 ? t5.split(", ").map((e5) => e5.trim().split(/\s+/)[0]) : [];
|
|
95333
95366
|
}).reduce((e4, t5) => e4.concat(t5), []), s4 = Array.from(i4.querySelectorAll("img[src]")).map((e4) => e4.getAttribute("src")).filter(Boolean), l3 = Array.from(i4.querySelectorAll('image,use,link[rel="stylesheet"]')).map((e4) => e4.getAttribute("href") || e4.getAttribute("xlink:href")).filter(Boolean), c3 = Array.from(i4.getElementsByTagName("object")).map((e4) => e4.getAttribute("data")).filter(Boolean), u3 = n4(i4, false), h3 = function(e4) {
|
|
95334
|
-
return
|
|
95367
|
+
return Vh(Array.from(e4.querySelectorAll("*[style]")).map((e5) => e5.style.cssText).map((e5) => Fl(e5)).filter(Boolean));
|
|
95335
95368
|
}(i4);
|
|
95336
95369
|
return a4.concat(s4).concat(l3).concat(c3).concat(u3).concat(h3).filter((e4) => "#" !== e4[0]);
|
|
95337
95370
|
};
|
|
@@ -95351,13 +95384,13 @@ creating temp style for access.`), r3 = Vh(e3);
|
|
|
95351
95384
|
}).then(i4).catch((e4) => a4(e4));
|
|
95352
95385
|
});
|
|
95353
95386
|
};
|
|
95354
|
-
}({ timeout: i3 }), v2 = function({ fetchUrl: e3, findStyleSheetByUrl: t4, getCorsFreeStyleSheet: n4, extractResourcesFromStyleSheet: r4, extractResourcesFromSvg: o4, sessionCache: i4, cache: a4 = {}, compress: s4, serialize: l3, log: c3 =
|
|
95387
|
+
}({ timeout: i3 }), v2 = function({ fetchUrl: e3, findStyleSheetByUrl: t4, getCorsFreeStyleSheet: n4, extractResourcesFromStyleSheet: r4, extractResourcesFromSvg: o4, sessionCache: i4, cache: a4 = {}, compress: s4, serialize: l3, log: c3 = $h }) {
|
|
95355
95388
|
return function({ url: u3, documents: h3, getResourceUrlsAndBlobs: d3, forceCreateStyle: p3 = false, skipResources: m3 }) {
|
|
95356
95389
|
if (!a4[u3])
|
|
95357
95390
|
if (i4 && i4.getItem(u3)) {
|
|
95358
95391
|
const e4 = function e5(t5) {
|
|
95359
95392
|
const n5 = i4.getItem(t5);
|
|
95360
|
-
return [t5].concat(n5 ?
|
|
95393
|
+
return [t5].concat(n5 ? Jl(Vh(n5.map(e5))) : []);
|
|
95361
95394
|
}(u3);
|
|
95362
95395
|
c3("doProcessResource from sessionStorage", u3, "deps:", e4.slice(1)), a4[u3] = Promise.resolve({ resourceUrls: e4 });
|
|
95363
95396
|
} else if (m3 && m3.indexOf(u3) > -1 || /https:\/\/fonts\.googleapis\.com/.test(u3))
|
|
@@ -95392,9 +95425,9 @@ creating temp style for access.`), r3 = Vh(e3);
|
|
|
95392
95425
|
} catch (e5) {
|
|
95393
95426
|
c3("could not parse svg content", e5);
|
|
95394
95427
|
}
|
|
95395
|
-
const v3 = { [e4]:
|
|
95428
|
+
const v3 = { [e4]: Mh({ type: a6, value: f4, compress: s4, serialize: l3 }) };
|
|
95396
95429
|
if (w3) {
|
|
95397
|
-
const t5 = w3.map((t6) => y(t6, e4.replace(/^blob:/, ""))).map(
|
|
95430
|
+
const t5 = w3.map((t6) => y(t6, e4.replace(/^blob:/, ""))).map(Wh).filter(qh);
|
|
95398
95431
|
return t5.length && (v3[e4].dependencies = t5), i4 && i4.setItem(e4, t5), d3({ documents: h3, urls: t5, forceCreateStyle: p3, skipResources: m3 }).then(({ resourceUrls: e5, blobsObj: t6 }) => ({ resourceUrls: e5, blobsObj: Object.assign(t6, v3) }));
|
|
95399
95432
|
}
|
|
95400
95433
|
return i4 && i4.setItem(e4, []), { blobsObj: v3 };
|
|
@@ -95409,11 +95442,11 @@ creating temp style for access.`), r3 = Vh(e3);
|
|
|
95409
95442
|
}), c3("cleared from sessionStorage:", u3);
|
|
95410
95443
|
}
|
|
95411
95444
|
};
|
|
95412
|
-
}({ fetchUrl: w2, findStyleSheetByUrl: f2, getCorsFreeStyleSheet:
|
|
95445
|
+
}({ fetchUrl: w2, findStyleSheetByUrl: f2, getCorsFreeStyleSheet: Kh, extractResourcesFromStyleSheet: m2, extractResourcesFromSvg: k2, log: h2.log, sessionCache: d2, compress: s3, serialize: l2 }), x2 = function({ processResource: e3, aggregateResourceUrlsAndBlobs: t4 }) {
|
|
95413
95446
|
return function n4({ documents: r4, urls: o4, forceCreateStyle: i4 = false, skipResources: a4 }) {
|
|
95414
95447
|
return Promise.all(o4.map((t5) => e3({ url: t5, documents: r4, getResourceUrlsAndBlobs: n4, forceCreateStyle: i4, skipResources: a4 }))).then((e4) => t4(e4));
|
|
95415
95448
|
};
|
|
95416
|
-
}({ processResource: v2, aggregateResourceUrlsAndBlobs:
|
|
95449
|
+
}({ processResource: v2, aggregateResourceUrlsAndBlobs: ec });
|
|
95417
95450
|
return function t4(n4, r4 = n4.location.href) {
|
|
95418
95451
|
const i4 = function(e3) {
|
|
95419
95452
|
const t5 = e3.querySelectorAll("base")[0] && e3.querySelectorAll("base")[0].href;
|
|
@@ -95501,12 +95534,12 @@ creating temp style for access.`), r3 = Vh(e3);
|
|
|
95501
95534
|
return o4 += e3.length, t6;
|
|
95502
95535
|
});
|
|
95503
95536
|
return i5;
|
|
95504
|
-
}(u2), { cdt: p3, docRoots: m3, canvasElements: f3, frames: k3, inlineFrames: w3, crossFrames: v3, linkUrls: S2, imageBlobs: C2, videoBlobs: z2 } =
|
|
95537
|
+
}(u2), { cdt: p3, docRoots: m3, canvasElements: f3, frames: k3, inlineFrames: w3, crossFrames: v3, linkUrls: S2, imageBlobs: C2, videoBlobs: z2 } = Gl(n4, i4, h2), A2 = Vh(m3.map((e3) => g2(e3))), T2 = Vh(m3.map((e3) => b2(e3))), O2 = (P2 = i4, function(e3) {
|
|
95505
95538
|
try {
|
|
95506
95539
|
return _(y(e3, P2));
|
|
95507
95540
|
} catch (e4) {
|
|
95508
95541
|
}
|
|
95509
|
-
}), L2 =
|
|
95542
|
+
}), L2 = Jl(Array.from(S2).concat(Array.from(A2)).concat(Array.from(T2))).map((e3) => e3.trim()).reduce((e3, t5) => {
|
|
95510
95543
|
e3.push(t5);
|
|
95511
95544
|
const n5 = function(e4) {
|
|
95512
95545
|
return e4 && e4.replace(/(\\[0-9a-fA-F]{1,6}\s?)/g, (e5) => {
|
|
@@ -95515,18 +95548,18 @@ creating temp style for access.`), r3 = Vh(e3);
|
|
|
95515
95548
|
}) || e4;
|
|
95516
95549
|
}(t5);
|
|
95517
95550
|
return n5 !== t5 && e3.push(n5), e3;
|
|
95518
|
-
}, []).map(O2).map(
|
|
95551
|
+
}, []).map(O2).map(Wh).filter(Yh), E2 = o3 ? Promise.resolve({ resourceUrls: L2, blobsObj: {} }) : x2({ documents: m3, urls: L2, skipResources: a3 }).then((e3) => (d2 && d2.persist(), e3)), R2 = Hh(f3, { log: h2.log, compress: s3, serialize: l2 }), N2 = E2.then((e3) => function(e4, { doc: t5, fetchedBlobs: n5, log: r5, compress: o4, serialize: i5, sessionCache: a4 }) {
|
|
95519
95552
|
if (!t5.body || 0 === e4.length)
|
|
95520
95553
|
return Promise.resolve([]);
|
|
95521
95554
|
const s4 = new Set(Object.keys(n5)), l3 = e4.filter(({ url: e5 }) => !(s4.has("blob:" + e5) || a4 && a4.getItem("blob:" + e5))), c4 = t5.createElement("canvas");
|
|
95522
95555
|
c4.style.display = "none";
|
|
95523
|
-
const u3 =
|
|
95556
|
+
const u3 = Zl(t5.body);
|
|
95524
95557
|
return u3.appendChild(c4), Promise.all(l3.map(({ element: e5, url: t6, cdtNode: n6 }) => {
|
|
95525
95558
|
try {
|
|
95526
|
-
return c4.width = e5.naturalWidth, c4.height = e5.naturalHeight, c4.getContext("2d").drawImage(
|
|
95559
|
+
return c4.width = e5.naturalWidth, c4.height = e5.naturalHeight, c4.getContext("2d").drawImage(Zl.unwrap(e5), 0, 0), Hh([{ url: t6, element: c4, cdtNode: n6 }], { log: r5, compress: o4, serialize: i5 });
|
|
95527
95560
|
} catch (e6) {
|
|
95528
95561
|
}
|
|
95529
|
-
})).then((e5) =>
|
|
95562
|
+
})).then((e5) => Vh(e5)).catch().finally(() => {
|
|
95530
95563
|
u3.removeChild(c4);
|
|
95531
95564
|
});
|
|
95532
95565
|
}(C2, { fetchedBlobs: e3.blobsObj, doc: n4, log: h2.log, compress: s3, serialize: l2, sessionCache: d2 })), j2 = E2.then((e3) => function(e4, { doc: t5, fetchedBlobs: n5, compress: r5, serialize: o4, sessionCache: i5 }) {
|
|
@@ -95539,12 +95572,12 @@ creating temp style for access.`), r3 = Vh(e3);
|
|
|
95539
95572
|
const a5 = new MediaRecorder(n6, { mimeType: "video/webm" });
|
|
95540
95573
|
a5.addEventListener("dataavailable", (n7) => {
|
|
95541
95574
|
a5.stop(), e5.pause(), n7.data.arrayBuffer().then((e6) => {
|
|
95542
|
-
const a6 =
|
|
95575
|
+
const a6 = Mh({ type: n7.data.type, value: e6, compress: r5, serialize: o4 });
|
|
95543
95576
|
a6.url = t6, i6(a6);
|
|
95544
95577
|
});
|
|
95545
95578
|
}, { once: true }), e5.play(), a5.start(), setTimeout(() => a5.requestData(), 1e3);
|
|
95546
95579
|
});
|
|
95547
|
-
})).then((e5) =>
|
|
95580
|
+
})).then((e5) => Vh(e5));
|
|
95548
95581
|
}(z2, { fetchedBlobs: e3.blobsObj, doc: n4, log: h2.log, compress: s3, serialize: l2, sessionCache: d2 })), I2 = k3.map(({ element: e3, url: n5 }) => t4(e3.contentDocument, n5)), D2 = w3.map(({ element: e3, url: n5 }) => t4(e3.contentDocument, n5));
|
|
95549
95582
|
var P2;
|
|
95550
95583
|
return Promise.all([E2, R2, N2, j2, ...I2, ...D2]).then(function(t5) {
|
|
@@ -95577,11 +95610,11 @@ creating temp style for access.`), r3 = Vh(e3);
|
|
|
95577
95610
|
function B2(e3) {
|
|
95578
95611
|
return n4.defaultView && n4.defaultView.frameElement && n4.defaultView.frameElement.getAttribute(e3);
|
|
95579
95612
|
}
|
|
95580
|
-
}(t3).then((e3) => (h2.log("processPage end"), e3.scriptVersion = "4.15.
|
|
95613
|
+
}(t3).then((e3) => (h2.log("processPage end"), e3.scriptVersion = "4.15.4", e3));
|
|
95581
95614
|
}, window[x], "domSnapshotResult");
|
|
95582
95615
|
return function(e3) {
|
|
95583
95616
|
try {
|
|
95584
|
-
return JSON.stringify(
|
|
95617
|
+
return JSON.stringify(Xh(e3)(e3));
|
|
95585
95618
|
} catch (e4) {
|
|
95586
95619
|
return JSON.stringify({ status: "ERROR", error: e4.message });
|
|
95587
95620
|
}
|
|
@@ -119577,12 +119610,29 @@ var require_extract_git_info = __commonJS({
|
|
|
119577
119610
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
119578
119611
|
};
|
|
119579
119612
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
119580
|
-
exports.isISODate = exports.extractBranchingTimestamp = exports.extractBuildIdFromCI = exports.extractGitRepo = exports.extractGitBranch = exports.extractLatestCommitInfo = exports.cacheKey = void 0;
|
|
119613
|
+
exports.extractBranchLookupFallbackList = exports.isISODate = exports.extractBranchingTimestamp = exports.extractBuildIdFromCI = exports.extractGitRepo = exports.extractGitBranch = exports.extractLatestCommitInfo = exports.getPrimaryRemoteName = exports.cacheKey = void 0;
|
|
119581
119614
|
var utils34 = __importStar(require_browser3());
|
|
119582
119615
|
var fs_1 = __importDefault((init_fs(), __toCommonJS(fs_exports)));
|
|
119583
119616
|
var path_1 = __importDefault(require_path_browserify());
|
|
119584
119617
|
var logger_1 = require_browser6();
|
|
119618
|
+
var isDebugMode = () => process.env.RUNNER_DEBUG === "1";
|
|
119585
119619
|
exports.cacheKey = "default";
|
|
119620
|
+
exports.getPrimaryRemoteName = utils34.general.cachify(async function({ execOptions, logger = (0, logger_1.makeLogger)() }) {
|
|
119621
|
+
const result = await executeWithLog("git remote show", { execOptions, logger });
|
|
119622
|
+
if (result.stderr) {
|
|
119623
|
+
logger.log(`Error during extracting remotes from git`, result.stderr);
|
|
119624
|
+
return "origin";
|
|
119625
|
+
}
|
|
119626
|
+
const remotes = result.stdout.trim().split(/\s+/);
|
|
119627
|
+
const remote = remotes.includes("origin") ? "origin" : remotes[0] || "origin";
|
|
119628
|
+
logger.log(`Primary remote name: ${remote}`);
|
|
119629
|
+
return remote;
|
|
119630
|
+
}, (args) => {
|
|
119631
|
+
var _a;
|
|
119632
|
+
return {
|
|
119633
|
+
cwd: (_a = args[0].execOptions) === null || _a === void 0 ? void 0 : _a.cwd
|
|
119634
|
+
};
|
|
119635
|
+
});
|
|
119586
119636
|
exports.extractLatestCommitInfo = utils34.general.cachify(async function({ execOptions, logger = (0, logger_1.makeLogger)() }) {
|
|
119587
119637
|
let result;
|
|
119588
119638
|
try {
|
|
@@ -119607,7 +119657,8 @@ var require_extract_git_info = __commonJS({
|
|
|
119607
119657
|
async function extractGithubPullRequestLastCommitSha() {
|
|
119608
119658
|
var _a, _b, _c;
|
|
119609
119659
|
if (((_a = process.env.GITHUB_EVENT_NAME) === null || _a === void 0 ? void 0 : _a.startsWith("pull_request")) && process.env.GITHUB_EVENT_PATH) {
|
|
119610
|
-
|
|
119660
|
+
const remoteName = await (0, exports.getPrimaryRemoteName)({ execOptions, logger });
|
|
119661
|
+
await executeWithLog(`git fetch ${remoteName} --depth=2`, { execOptions, logger });
|
|
119611
119662
|
const event = await fs_1.default.promises.readFile(process.env.GITHUB_EVENT_PATH, "utf-8").then(JSON.parse);
|
|
119612
119663
|
return (_c = (_b = event === null || event === void 0 ? void 0 : event.pull_request) === null || _b === void 0 ? void 0 : _b.head) === null || _c === void 0 ? void 0 : _c.sha;
|
|
119613
119664
|
}
|
|
@@ -119628,7 +119679,10 @@ var require_extract_git_info = __commonJS({
|
|
|
119628
119679
|
logger.log(`Extracted current git branch: "${branch}"`);
|
|
119629
119680
|
return branch;
|
|
119630
119681
|
}
|
|
119631
|
-
}, () =>
|
|
119682
|
+
}, (args) => {
|
|
119683
|
+
var _a, _b, _c;
|
|
119684
|
+
return { cwd: (_b = (_a = args[0]) === null || _a === void 0 ? void 0 : _a.execOptions) === null || _b === void 0 ? void 0 : _b.cwd, ignoreGitBranching: (_c = args[0]) === null || _c === void 0 ? void 0 : _c.ignoreGitBranching };
|
|
119685
|
+
});
|
|
119632
119686
|
exports.extractGitRepo = utils34.general.cachify(async function({ execOptions, logger = (0, logger_1.makeLogger)() }) {
|
|
119633
119687
|
const remotes = await extractRemotes();
|
|
119634
119688
|
logger.log(`Extracted remotes from git: ${remotes}`);
|
|
@@ -119668,21 +119722,40 @@ var require_extract_git_info = __commonJS({
|
|
|
119668
119722
|
exports.extractBranchingTimestamp = utils34.general.cachify(async function({ branchName, parentBranchName, execOptions, logger = (0, logger_1.makeLogger)() }) {
|
|
119669
119723
|
var _a;
|
|
119670
119724
|
logger = logger.extend({ tags: [`extract-branching-timestamp-${utils34.general.shortid()}`] });
|
|
119725
|
+
const remoteName = await (0, exports.getPrimaryRemoteName)({ execOptions, logger });
|
|
119671
119726
|
const command = `HASH=$(git merge-base ${branchName} ${parentBranchName}) && git show -q --format=%aI $HASH`;
|
|
119672
119727
|
let result = await executeWithLog(command, { execOptions, logger });
|
|
119673
|
-
|
|
119674
|
-
|
|
119675
|
-
|
|
119676
|
-
|
|
119677
|
-
|
|
119678
|
-
|
|
119679
|
-
|
|
119680
|
-
|
|
119728
|
+
if (result.stderr) {
|
|
119729
|
+
const commandWithRemoteRefs = `HASH=$(git merge-base ${remoteName}/${branchName} ${remoteName}/${parentBranchName}) && git show -q --format=%aI $HASH`;
|
|
119730
|
+
result = await executeWithLog(commandWithRemoteRefs, { execOptions, logger });
|
|
119731
|
+
}
|
|
119732
|
+
if (result.stderr) {
|
|
119733
|
+
const remoteBranches = await getAllRemoteBranches({ execOptions, logger });
|
|
119734
|
+
for (let i = 0; i < 2; i++) {
|
|
119735
|
+
if (result.stderr) {
|
|
119736
|
+
const [, missingBranch] = (_a = result.stderr.match(/Not a valid object name ([^\s]+)/)) !== null && _a !== void 0 ? _a : [];
|
|
119737
|
+
if (missingBranch) {
|
|
119738
|
+
const normalizedBranchName = missingBranch.replace(new RegExp(`^${remoteName}/`), "");
|
|
119739
|
+
if (!remoteBranches.has(normalizedBranchName)) {
|
|
119740
|
+
logger.log(`Branch ${missingBranch} not found on remote, skipping fetch`);
|
|
119741
|
+
return void 0;
|
|
119742
|
+
}
|
|
119743
|
+
logger.log(`Fetching missing branch ${missingBranch} from remote`);
|
|
119744
|
+
const command2 = `HASH=$(git merge-base ${branchName} ${parentBranchName}) && git show -q --format=%aI $HASH`;
|
|
119745
|
+
result = await executeWithLog(`git fetch ${remoteName} ${normalizedBranchName}:${normalizedBranchName} --filter=tree:0 && ${command2}`, {
|
|
119746
|
+
execOptions,
|
|
119747
|
+
logger
|
|
119748
|
+
});
|
|
119749
|
+
}
|
|
119681
119750
|
}
|
|
119682
119751
|
}
|
|
119683
119752
|
}
|
|
119684
119753
|
if (!result.stdout) {
|
|
119685
|
-
|
|
119754
|
+
const command2 = `HASH=$(git merge-base ${branchName} ${parentBranchName}) && git show -q --format=%aI $HASH`;
|
|
119755
|
+
result = await executeWithLog(`git fetch ${remoteName} --unshallow --filter=tree:0 && ${command2}`, {
|
|
119756
|
+
execOptions,
|
|
119757
|
+
logger
|
|
119758
|
+
});
|
|
119686
119759
|
}
|
|
119687
119760
|
const timestamp = result.stdout.replace(/\s/g, "");
|
|
119688
119761
|
if (isISODate2(timestamp)) {
|
|
@@ -119691,7 +119764,14 @@ var require_extract_git_info = __commonJS({
|
|
|
119691
119764
|
} else {
|
|
119692
119765
|
logger.log(`Error during extracting merge timestamp: git branching timestamp is an invalid ISO date string: ${timestamp}. stderr: ${result.stderr}, stdout: ${result.stdout}`);
|
|
119693
119766
|
}
|
|
119694
|
-
}, () =>
|
|
119767
|
+
}, (args) => {
|
|
119768
|
+
var _a;
|
|
119769
|
+
return {
|
|
119770
|
+
branchName: args[0].branchName,
|
|
119771
|
+
parentBranchName: args[0].parentBranchName,
|
|
119772
|
+
cwd: (_a = args[0].execOptions) === null || _a === void 0 ? void 0 : _a.cwd
|
|
119773
|
+
};
|
|
119774
|
+
});
|
|
119695
119775
|
async function executeWithLog(command, { execOptions, logger = (0, logger_1.makeLogger)() } = {
|
|
119696
119776
|
execOptions: {},
|
|
119697
119777
|
logger: (0, logger_1.makeLogger)()
|
|
@@ -119707,6 +119787,365 @@ var require_extract_git_info = __commonJS({
|
|
|
119707
119787
|
return /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\+\d{2}:\d{2})?/.test(str);
|
|
119708
119788
|
}
|
|
119709
119789
|
exports.isISODate = isISODate2;
|
|
119790
|
+
async function parallelWithLimit(items, concurrency, fn) {
|
|
119791
|
+
const results = [];
|
|
119792
|
+
for (let i = 0; i < items.length; i += concurrency) {
|
|
119793
|
+
const batch = items.slice(i, i + concurrency);
|
|
119794
|
+
const batchResults = await Promise.all(batch.map(fn));
|
|
119795
|
+
results.push(...batchResults);
|
|
119796
|
+
}
|
|
119797
|
+
return results;
|
|
119798
|
+
}
|
|
119799
|
+
var getAllRemoteBranches = utils34.general.cachify(
|
|
119800
|
+
async function({ execOptions, logger }) {
|
|
119801
|
+
var _a;
|
|
119802
|
+
if (isDebugMode()) {
|
|
119803
|
+
logger.log("[getAllRemoteBranches] Starting git ls-remote to fetch all remote branches...");
|
|
119804
|
+
logger.log("[getAllRemoteBranches] execOptions.cwd:", (execOptions === null || execOptions === void 0 ? void 0 : execOptions.cwd) || "undefined");
|
|
119805
|
+
}
|
|
119806
|
+
try {
|
|
119807
|
+
const remoteName = await (0, exports.getPrimaryRemoteName)({ execOptions, logger });
|
|
119808
|
+
const startTime = Date.now();
|
|
119809
|
+
const result = await executeWithLog(`git ls-remote --heads ${remoteName}`, {
|
|
119810
|
+
execOptions,
|
|
119811
|
+
logger
|
|
119812
|
+
});
|
|
119813
|
+
if (isDebugMode()) {
|
|
119814
|
+
logger.log(`[getAllRemoteBranches] git ls-remote completed in ${Date.now() - startTime}ms`);
|
|
119815
|
+
logger.log("[getAllRemoteBranches] stdout length:", ((_a = result.stdout) === null || _a === void 0 ? void 0 : _a.length) || 0);
|
|
119816
|
+
logger.log("[getAllRemoteBranches] stderr:", result.stderr || "(empty)");
|
|
119817
|
+
logger.log("[getAllRemoteBranches] exit code:", result.code);
|
|
119818
|
+
}
|
|
119819
|
+
const branches = /* @__PURE__ */ new Set();
|
|
119820
|
+
if (result.stdout.trim()) {
|
|
119821
|
+
const lines = result.stdout.split("\n");
|
|
119822
|
+
if (isDebugMode()) {
|
|
119823
|
+
logger.log(`[getAllRemoteBranches] Processing ${lines.length} lines from git ls-remote output`);
|
|
119824
|
+
}
|
|
119825
|
+
lines.forEach((line, index) => {
|
|
119826
|
+
const match = line.match(/refs\/heads\/(.+)$/);
|
|
119827
|
+
if (match) {
|
|
119828
|
+
const branchName = match[1];
|
|
119829
|
+
branches.add(branchName);
|
|
119830
|
+
if (isDebugMode() && index < 5) {
|
|
119831
|
+
logger.log(`[getAllRemoteBranches] Found branch: ${branchName}`);
|
|
119832
|
+
}
|
|
119833
|
+
}
|
|
119834
|
+
});
|
|
119835
|
+
if (isDebugMode() && lines.length > 5) {
|
|
119836
|
+
logger.log(`[getAllRemoteBranches] ... and ${lines.length - 5} more branches`);
|
|
119837
|
+
}
|
|
119838
|
+
} else {
|
|
119839
|
+
logger.log("[getAllRemoteBranches] WARNING: git ls-remote returned empty output");
|
|
119840
|
+
}
|
|
119841
|
+
logger.log(`[getAllRemoteBranches] \u2713 Found ${branches.size} remote branches via git ls-remote`);
|
|
119842
|
+
if (isDebugMode()) {
|
|
119843
|
+
const branchList = Array.from(branches).slice(0, 20);
|
|
119844
|
+
logger.log("[getAllRemoteBranches] Branch list:", branchList.join(", ") + (branches.size > 20 ? ` ... and ${branches.size - 20} more` : ""));
|
|
119845
|
+
}
|
|
119846
|
+
return branches;
|
|
119847
|
+
} catch (err) {
|
|
119848
|
+
logger.log("[getAllRemoteBranches] \u2717 ERROR: Could not fetch remote branches list");
|
|
119849
|
+
logger.log("[getAllRemoteBranches] Error details:", err);
|
|
119850
|
+
logger.log("[getAllRemoteBranches] Error type:", typeof err);
|
|
119851
|
+
if (err instanceof Error) {
|
|
119852
|
+
logger.log("[getAllRemoteBranches] Error message:", err.message);
|
|
119853
|
+
logger.log("[getAllRemoteBranches] Error stack:", err.stack);
|
|
119854
|
+
}
|
|
119855
|
+
return /* @__PURE__ */ new Set();
|
|
119856
|
+
}
|
|
119857
|
+
},
|
|
119858
|
+
// Custom cache key generator - only cache by cwd, not by logger instance
|
|
119859
|
+
(args) => {
|
|
119860
|
+
var _a;
|
|
119861
|
+
return { cwd: (_a = args[0].execOptions) === null || _a === void 0 ? void 0 : _a.cwd };
|
|
119862
|
+
},
|
|
119863
|
+
5 * 60 * 1e3
|
|
119864
|
+
);
|
|
119865
|
+
async function executeFetchStrategy(isShallow, execOptions, logger) {
|
|
119866
|
+
const remoteName = await (0, exports.getPrimaryRemoteName)({ execOptions, logger });
|
|
119867
|
+
if (isShallow) {
|
|
119868
|
+
logger.log(`Shallow repository detected, unshallowing to enable topology discovery...`);
|
|
119869
|
+
await executeWithLog(`git fetch ${remoteName} --unshallow --filter=tree:0`, {
|
|
119870
|
+
execOptions,
|
|
119871
|
+
logger
|
|
119872
|
+
});
|
|
119873
|
+
logger.log(`Repository unshallowed successfully`);
|
|
119874
|
+
} else {
|
|
119875
|
+
logger.log(`Non-shallow clone detected, fetching all remote branches for topology discovery...`);
|
|
119876
|
+
await executeWithLog(`git fetch ${remoteName} --filter=tree:0`, {
|
|
119877
|
+
execOptions,
|
|
119878
|
+
logger
|
|
119879
|
+
});
|
|
119880
|
+
logger.log(`All remote branches fetched successfully`);
|
|
119881
|
+
}
|
|
119882
|
+
}
|
|
119883
|
+
async function ensureRemoteBranchesAvailable(branchName, isShallow, execOptions, logger) {
|
|
119884
|
+
try {
|
|
119885
|
+
const remoteName = await (0, exports.getPrimaryRemoteName)({ execOptions, logger });
|
|
119886
|
+
const symbolicResult = await executeWithLog(`git rev-parse --abbrev-ref ${branchName}@{upstream} `, {
|
|
119887
|
+
execOptions,
|
|
119888
|
+
logger
|
|
119889
|
+
});
|
|
119890
|
+
const isRemoteBranch = symbolicResult.stdout.trim().startsWith(`${remoteName}/`);
|
|
119891
|
+
if (!isRemoteBranch) {
|
|
119892
|
+
return;
|
|
119893
|
+
}
|
|
119894
|
+
logger.log(`Detected remote branch scenario, fetching ancestor branches...`);
|
|
119895
|
+
await executeWithLog(`git config remote.${remoteName}.fetch "+refs/heads/*:refs/remotes/${remoteName}/*"`, {
|
|
119896
|
+
execOptions,
|
|
119897
|
+
logger
|
|
119898
|
+
});
|
|
119899
|
+
await executeFetchStrategy(isShallow, execOptions, logger);
|
|
119900
|
+
logger.log(`Remote branches fetched successfully for complete ancestor check`);
|
|
119901
|
+
} catch (err) {
|
|
119902
|
+
logger.log("Note: Could not determine if branch is remote, continuing with topology discovery", err);
|
|
119903
|
+
}
|
|
119904
|
+
}
|
|
119905
|
+
exports.extractBranchLookupFallbackList = utils34.general.cachify(async function({ gitBranchName, execOptions, logger = (0, logger_1.makeLogger)(), enableShallowClone = true }) {
|
|
119906
|
+
const functionStartTime = Date.now();
|
|
119907
|
+
logger = logger.extend({ tags: [`extract-branch-fallback-list-${utils34.general.shortid()}`] });
|
|
119908
|
+
logger.log(`[PERF] extractBranchLookupFallbackList started for branch: ${gitBranchName}`);
|
|
119909
|
+
try {
|
|
119910
|
+
const shallowCheckStartTime = Date.now();
|
|
119911
|
+
const shallowCheckResult = await executeWithLog("git rev-parse --is-shallow-repository", {
|
|
119912
|
+
execOptions,
|
|
119913
|
+
logger
|
|
119914
|
+
});
|
|
119915
|
+
logger.log(`[PERF] Shallow check took ${Date.now() - shallowCheckStartTime}ms`);
|
|
119916
|
+
const isShallow = shallowCheckResult.stdout.trim() === "true";
|
|
119917
|
+
if (!enableShallowClone && isShallow) {
|
|
119918
|
+
logger.log("Shallow clone detected and APPLITOOLS_SKIP_BRANCH_LOOKUP_IN_SHALLOW_CLONE is enabled, skipping branch lookup");
|
|
119919
|
+
return void 0;
|
|
119920
|
+
}
|
|
119921
|
+
const ensureRemoteStartTime = Date.now();
|
|
119922
|
+
await ensureRemoteBranchesAvailable(gitBranchName, isShallow, execOptions, logger);
|
|
119923
|
+
logger.log(`[PERF] ensureRemoteBranchesAvailable took ${Date.now() - ensureRemoteStartTime}ms`);
|
|
119924
|
+
const topologyStartTime = Date.now();
|
|
119925
|
+
logger.log(`Discovering ancestor branches using git topology for ${gitBranchName}...`);
|
|
119926
|
+
const remoteName = await (0, exports.getPrimaryRemoteName)({ execOptions, logger });
|
|
119927
|
+
const logResult = await executeWithLog(`git log --first-parent --simplify-by-decoration --format="%D" ${gitBranchName}`, { execOptions, logger });
|
|
119928
|
+
const foundBranches = /* @__PURE__ */ new Set();
|
|
119929
|
+
if (!logResult.stderr && logResult.stdout.trim()) {
|
|
119930
|
+
const rawLines = logResult.stdout.split("\n");
|
|
119931
|
+
for (const line of rawLines) {
|
|
119932
|
+
const refs = line.split(",").map((r) => r.trim());
|
|
119933
|
+
for (const ref of refs) {
|
|
119934
|
+
if (ref.includes("tag:"))
|
|
119935
|
+
continue;
|
|
119936
|
+
const cleanRef = ref.replace("HEAD -> ", "").replace(new RegExp(`^${remoteName}/`), "");
|
|
119937
|
+
if (cleanRef && cleanRef !== gitBranchName && cleanRef !== "HEAD")
|
|
119938
|
+
foundBranches.add(cleanRef);
|
|
119939
|
+
}
|
|
119940
|
+
}
|
|
119941
|
+
}
|
|
119942
|
+
let allBranches = Array.from(foundBranches);
|
|
119943
|
+
logger.log(`[PERF] Topology discovery took ${Date.now() - topologyStartTime}ms`);
|
|
119944
|
+
if (isDebugMode()) {
|
|
119945
|
+
logger.log(`Topology discovered ${allBranches.length} potential ancestor branches: ${allBranches.join(", ")}`);
|
|
119946
|
+
} else {
|
|
119947
|
+
logger.log(`Topology discovered ${allBranches.length} potential ancestor branches`);
|
|
119948
|
+
}
|
|
119949
|
+
const remoteBranchesStartTime = Date.now();
|
|
119950
|
+
if (isDebugMode()) {
|
|
119951
|
+
logger.log("[Remote Filtering] ========================================");
|
|
119952
|
+
logger.log("[Remote Filtering] Starting remote branch filtering...");
|
|
119953
|
+
logger.log("[Remote Filtering] Branches to check:", allBranches.join(", "));
|
|
119954
|
+
logger.log("[Remote Filtering] Number of branches before filtering:", allBranches.length);
|
|
119955
|
+
}
|
|
119956
|
+
try {
|
|
119957
|
+
if (isDebugMode()) {
|
|
119958
|
+
logger.log("[Remote Filtering] Calling getAllRemoteBranches...");
|
|
119959
|
+
}
|
|
119960
|
+
const remoteBranches = await getAllRemoteBranches({ execOptions, logger });
|
|
119961
|
+
if (isDebugMode()) {
|
|
119962
|
+
logger.log("[Remote Filtering] getAllRemoteBranches returned");
|
|
119963
|
+
logger.log("[Remote Filtering] Remote branches size:", remoteBranches.size);
|
|
119964
|
+
const remoteBranchList = Array.from(remoteBranches).slice(0, 20);
|
|
119965
|
+
logger.log("[Remote Filtering] Remote branches:", remoteBranchList.join(", ") + (remoteBranches.size > 20 ? ` ... and ${remoteBranches.size - 20} more` : ""));
|
|
119966
|
+
}
|
|
119967
|
+
if (remoteBranches.size > 0) {
|
|
119968
|
+
const beforeFilter = allBranches.length;
|
|
119969
|
+
if (isDebugMode()) {
|
|
119970
|
+
logger.log("[Remote Filtering] Filtering branches against remote...");
|
|
119971
|
+
allBranches.forEach((branch) => {
|
|
119972
|
+
const exists = remoteBranches.has(branch);
|
|
119973
|
+
logger.log(`[Remote Filtering] Branch "${branch}": ${exists ? "\u2713 EXISTS" : "\u2717 MISSING"} on remote`);
|
|
119974
|
+
});
|
|
119975
|
+
}
|
|
119976
|
+
allBranches = allBranches.filter((branch) => remoteBranches.has(branch));
|
|
119977
|
+
const filtered = beforeFilter - allBranches.length;
|
|
119978
|
+
if (isDebugMode()) {
|
|
119979
|
+
logger.log("[Remote Filtering] Branches after filtering:", allBranches.join(", "));
|
|
119980
|
+
logger.log("[Remote Filtering] Number of branches after filtering:", allBranches.length);
|
|
119981
|
+
}
|
|
119982
|
+
if (filtered > 0) {
|
|
119983
|
+
logger.log(`[Remote Filtering] \u2713 Filtered out ${filtered} branches not found on remote`);
|
|
119984
|
+
} else if (isDebugMode()) {
|
|
119985
|
+
logger.log("[Remote Filtering] No branches were filtered out (all exist on remote)");
|
|
119986
|
+
}
|
|
119987
|
+
} else {
|
|
119988
|
+
logger.log("[Remote Filtering] WARNING: No remote branches found, skipping filter");
|
|
119989
|
+
}
|
|
119990
|
+
} catch (err) {
|
|
119991
|
+
logger.log("[Remote Filtering] \u2717 ERROR: Could not filter by remote branches");
|
|
119992
|
+
if (isDebugMode()) {
|
|
119993
|
+
logger.log("[Remote Filtering] Error details:", err);
|
|
119994
|
+
logger.log("[Remote Filtering] Continuing with all discovered branches");
|
|
119995
|
+
}
|
|
119996
|
+
}
|
|
119997
|
+
logger.log(`[Remote Filtering] [PERF] Remote branch filtering took ${Date.now() - remoteBranchesStartTime}ms`);
|
|
119998
|
+
if (isDebugMode()) {
|
|
119999
|
+
logger.log("[Remote Filtering] ========================================");
|
|
120000
|
+
}
|
|
120001
|
+
const filteringStartTime = Date.now();
|
|
120002
|
+
logger.log(`Filtering out sibling branches to keep only true ancestors...`);
|
|
120003
|
+
const ANCESTOR_CHECK_CONCURRENCY = 10;
|
|
120004
|
+
const ancestorChecks = await parallelWithLimit(allBranches, ANCESTOR_CHECK_CONCURRENCY, async (candidateBranch) => {
|
|
120005
|
+
try {
|
|
120006
|
+
const isAncestorResult = await executeWithLog(`git merge-base --is-ancestor ${candidateBranch} ${gitBranchName}`, {
|
|
120007
|
+
execOptions,
|
|
120008
|
+
logger
|
|
120009
|
+
});
|
|
120010
|
+
if (isAncestorResult.code === 0) {
|
|
120011
|
+
logger.log(`\u2713 ${candidateBranch} is a true ancestor`);
|
|
120012
|
+
return { branch: candidateBranch, isAncestor: true };
|
|
120013
|
+
} else if (isAncestorResult.code === 1) {
|
|
120014
|
+
logger.log(`\u2717 ${candidateBranch} is a sibling, not an ancestor`);
|
|
120015
|
+
return { branch: candidateBranch, isAncestor: false };
|
|
120016
|
+
} else {
|
|
120017
|
+
logger.log(`\u26A0 Could not determine if ${candidateBranch} is an ancestor (exit code: ${isAncestorResult.code}), including it to be safe`);
|
|
120018
|
+
return { branch: candidateBranch, isAncestor: true };
|
|
120019
|
+
}
|
|
120020
|
+
} catch (err) {
|
|
120021
|
+
logger.log(`Error checking if ${candidateBranch} is a true ancestor:`, err);
|
|
120022
|
+
return { branch: candidateBranch, isAncestor: true };
|
|
120023
|
+
}
|
|
120024
|
+
});
|
|
120025
|
+
const trueAncestors = ancestorChecks.filter((result) => result.isAncestor).map((result) => result.branch);
|
|
120026
|
+
logger.log(`[PERF] Sibling filtering took ${Date.now() - filteringStartTime}ms`);
|
|
120027
|
+
logger.log(`Filtered to ${trueAncestors.length} true ancestors: ${trueAncestors.join(", ")}`);
|
|
120028
|
+
const timestampStartTime = Date.now();
|
|
120029
|
+
const branchesWithTimestamps = await Promise.all(trueAncestors.map(async (ancestorBranch) => {
|
|
120030
|
+
const timestamp = await (0, exports.extractBranchingTimestamp)({
|
|
120031
|
+
branchName: gitBranchName,
|
|
120032
|
+
parentBranchName: ancestorBranch,
|
|
120033
|
+
execOptions,
|
|
120034
|
+
logger
|
|
120035
|
+
});
|
|
120036
|
+
return timestamp ? { branchName: ancestorBranch, latestViableTimestamp: timestamp } : null;
|
|
120037
|
+
}));
|
|
120038
|
+
logger.log(`[PERF] Timestamp extraction took ${Date.now() - timestampStartTime}ms`);
|
|
120039
|
+
const validBranches = branchesWithTimestamps.filter((item) => item !== null).sort((a, b) => {
|
|
120040
|
+
const timeDiff = new Date(b.latestViableTimestamp).getTime() - new Date(a.latestViableTimestamp).getTime();
|
|
120041
|
+
if (timeDiff === 0) {
|
|
120042
|
+
return a.branchName.localeCompare(b.branchName);
|
|
120043
|
+
}
|
|
120044
|
+
return timeDiff;
|
|
120045
|
+
});
|
|
120046
|
+
try {
|
|
120047
|
+
const firstCommitResult = await executeWithLog("git rev-list --max-parents=0 HEAD", {
|
|
120048
|
+
execOptions,
|
|
120049
|
+
logger
|
|
120050
|
+
});
|
|
120051
|
+
if (firstCommitResult.stdout.trim()) {
|
|
120052
|
+
const firstCommitHash = firstCommitResult.stdout.trim().split("\n")[0];
|
|
120053
|
+
logger.log(`Found root commit: ${firstCommitHash}`);
|
|
120054
|
+
let branchesContainingRootResult = await executeWithLog(`git branch -r --contains ${firstCommitHash}`, {
|
|
120055
|
+
execOptions,
|
|
120056
|
+
logger
|
|
120057
|
+
});
|
|
120058
|
+
if (!branchesContainingRootResult.stdout.trim()) {
|
|
120059
|
+
logger.log("No remote branches contain root commit, trying local branches");
|
|
120060
|
+
branchesContainingRootResult = await executeWithLog(`git branch --contains ${firstCommitHash}`, {
|
|
120061
|
+
execOptions,
|
|
120062
|
+
logger
|
|
120063
|
+
});
|
|
120064
|
+
}
|
|
120065
|
+
if (branchesContainingRootResult.stdout.trim()) {
|
|
120066
|
+
const branchesContainingRoot = branchesContainingRootResult.stdout.split("\n").map((line) => line.trim()).filter((line) => line && !line.includes("->") && !line.includes("HEAD")).map((line) => line.replace(new RegExp(`^${remoteName}/`), "").replace(/^\* /, ""));
|
|
120067
|
+
const commonRootNames = ["main", "master", "develop", "trunk"];
|
|
120068
|
+
let rootBranch = null;
|
|
120069
|
+
for (const commonName of commonRootNames) {
|
|
120070
|
+
if (branchesContainingRoot.includes(commonName)) {
|
|
120071
|
+
rootBranch = commonName;
|
|
120072
|
+
logger.log(`Found root branch using common name: ${rootBranch}`);
|
|
120073
|
+
break;
|
|
120074
|
+
}
|
|
120075
|
+
}
|
|
120076
|
+
if (!rootBranch && branchesContainingRoot.length > 0) {
|
|
120077
|
+
const branchTimestamps = await Promise.all(branchesContainingRoot.slice(0, 10).map(async (branch) => {
|
|
120078
|
+
try {
|
|
120079
|
+
const branchTimestampResult = await executeWithLog(`git log -1 --format=%aI ${branch}`, {
|
|
120080
|
+
execOptions,
|
|
120081
|
+
logger
|
|
120082
|
+
});
|
|
120083
|
+
return {
|
|
120084
|
+
branch,
|
|
120085
|
+
timestamp: branchTimestampResult.stdout.trim()
|
|
120086
|
+
};
|
|
120087
|
+
} catch {
|
|
120088
|
+
return null;
|
|
120089
|
+
}
|
|
120090
|
+
}));
|
|
120091
|
+
const validTimestamps = branchTimestamps.filter((item) => item !== null && isISODate2(item.timestamp)).sort((a, b) => new Date(a.timestamp).getTime() - new Date(b.timestamp).getTime());
|
|
120092
|
+
if (validTimestamps.length > 0) {
|
|
120093
|
+
rootBranch = validTimestamps[0].branch;
|
|
120094
|
+
logger.log(`Found root branch by oldest timestamp: ${rootBranch}`);
|
|
120095
|
+
}
|
|
120096
|
+
}
|
|
120097
|
+
if (rootBranch && rootBranch !== gitBranchName) {
|
|
120098
|
+
const alreadyIncluded = validBranches.some((b) => b.branchName === rootBranch);
|
|
120099
|
+
if (!alreadyIncluded) {
|
|
120100
|
+
try {
|
|
120101
|
+
const isAncestorResult = await executeWithLog(`git merge-base --is-ancestor ${rootBranch} ${gitBranchName}`, {
|
|
120102
|
+
execOptions,
|
|
120103
|
+
logger
|
|
120104
|
+
});
|
|
120105
|
+
if (isAncestorResult.code === 0) {
|
|
120106
|
+
logger.log(`Root branch ${rootBranch} is a true ancestor, adding it as final fallback`);
|
|
120107
|
+
const rootTimestamp = await (0, exports.extractBranchingTimestamp)({
|
|
120108
|
+
branchName: gitBranchName,
|
|
120109
|
+
parentBranchName: rootBranch,
|
|
120110
|
+
execOptions,
|
|
120111
|
+
logger
|
|
120112
|
+
});
|
|
120113
|
+
if (rootTimestamp) {
|
|
120114
|
+
validBranches.push({
|
|
120115
|
+
branchName: rootBranch,
|
|
120116
|
+
latestViableTimestamp: rootTimestamp
|
|
120117
|
+
});
|
|
120118
|
+
logger.log(`Added root branch ${rootBranch} with timestamp ${rootTimestamp}`);
|
|
120119
|
+
}
|
|
120120
|
+
} else {
|
|
120121
|
+
logger.log(`Root branch ${rootBranch} is not an ancestor of ${gitBranchName}, skipping`);
|
|
120122
|
+
}
|
|
120123
|
+
} catch (err) {
|
|
120124
|
+
logger.log(`Error checking if root branch ${rootBranch} is an ancestor:`, err);
|
|
120125
|
+
}
|
|
120126
|
+
} else {
|
|
120127
|
+
logger.log(`Root branch ${rootBranch} already included in the list`);
|
|
120128
|
+
}
|
|
120129
|
+
}
|
|
120130
|
+
}
|
|
120131
|
+
}
|
|
120132
|
+
} catch (err) {
|
|
120133
|
+
logger.log("Failed to detect and add root branch, continuing without it", err);
|
|
120134
|
+
}
|
|
120135
|
+
logger.log(`[PERF] extractBranchLookupFallbackList completed in ${Date.now() - functionStartTime}ms total`);
|
|
120136
|
+
logger.log("Successfully extracted branch lookup fallback list", JSON.stringify(validBranches));
|
|
120137
|
+
return validBranches.length > 0 ? validBranches : void 0;
|
|
120138
|
+
} catch (err) {
|
|
120139
|
+
logger.log("Error during extracting branch lookup fallback list", err);
|
|
120140
|
+
return void 0;
|
|
120141
|
+
}
|
|
120142
|
+
}, (args) => {
|
|
120143
|
+
var _a;
|
|
120144
|
+
return {
|
|
120145
|
+
gitBranchName: args[0].gitBranchName,
|
|
120146
|
+
cwd: (_a = args[0].execOptions) === null || _a === void 0 ? void 0 : _a.cwd
|
|
120147
|
+
};
|
|
120148
|
+
});
|
|
119710
120149
|
}
|
|
119711
120150
|
});
|
|
119712
120151
|
|
|
@@ -119772,6 +120211,7 @@ var require_open_eyes4 = __commonJS({
|
|
|
119772
120211
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
|
|
119773
120212
|
var _1, _2, _3, _4, _5;
|
|
119774
120213
|
logger = logger.extend(mainLogger, { tags: [`eyes-${type}-${utils34.general.shortid()}`] });
|
|
120214
|
+
logger.log(`Opening Eyes in directory "${cwd}"`);
|
|
119775
120215
|
const settings = { environments: config === null || config === void 0 ? void 0 : config.check.environments, ...config === null || config === void 0 ? void 0 : config.open, ...openSettings };
|
|
119776
120216
|
const eyesServerSettings = (0, populate_eyes_server_settings_1.populateEyesServerSettings)(settings);
|
|
119777
120217
|
logger.mask(eyesServerSettings.apiKey);
|
|
@@ -119831,6 +120271,7 @@ var require_open_eyes4 = __commonJS({
|
|
|
119831
120271
|
}
|
|
119832
120272
|
}
|
|
119833
120273
|
const account = await core.getAccountInfo({ settings: eyesServerSettings, logger });
|
|
120274
|
+
await handleBranchFallbackList(account, settings, logger);
|
|
119834
120275
|
const componentConcurrency = account.serverConcurrency.componentConcurrency;
|
|
119835
120276
|
settings.sessionConcurrency = handleConcurrency({
|
|
119836
120277
|
userConcurrency: concurrency,
|
|
@@ -119914,6 +120355,31 @@ var require_open_eyes4 = __commonJS({
|
|
|
119914
120355
|
}
|
|
119915
120356
|
}
|
|
119916
120357
|
};
|
|
120358
|
+
async function handleBranchFallbackList(account, settings, logger) {
|
|
120359
|
+
var _a, _b;
|
|
120360
|
+
const scm = getScmSettings(account.scmSettings);
|
|
120361
|
+
if (!settings.ignoreGitBranching && scm.lookupFallbackList) {
|
|
120362
|
+
logger.log(`Extracting git branch name, ${cwd}`);
|
|
120363
|
+
settings.gitBranchName = await (0, extract_git_info_1.extractGitBranch)({
|
|
120364
|
+
execOptions: { cwd },
|
|
120365
|
+
logger,
|
|
120366
|
+
ignoreGitBranching: settings.ignoreGitBranching
|
|
120367
|
+
});
|
|
120368
|
+
logger.log(`Extracted git branch name: ${settings.gitBranchName}`);
|
|
120369
|
+
(_a = settings.branchName) !== null && _a !== void 0 ? _a : settings.branchName = settings.gitBranchName;
|
|
120370
|
+
} else {
|
|
120371
|
+
logger.log(`Skipping extraction of git branch name as ignoreGitBranching is set to true`);
|
|
120372
|
+
}
|
|
120373
|
+
if (settings.gitBranchName && !settings.ignoreGitBranching && scm.lookupFallbackList) {
|
|
120374
|
+
logger.log(`Extracting branch lookup fallback list for branch "${settings.gitBranchName}, ${cwd}"`);
|
|
120375
|
+
settings.branchLookupFallbackList = await (0, extract_git_info_1.extractBranchLookupFallbackList)({
|
|
120376
|
+
gitBranchName: `${settings.gitBranchName}`,
|
|
120377
|
+
enableShallowClone: (_b = scm.enableShallowClone) !== null && _b !== void 0 ? _b : false,
|
|
120378
|
+
execOptions: { cwd },
|
|
120379
|
+
logger
|
|
120380
|
+
});
|
|
120381
|
+
}
|
|
120382
|
+
}
|
|
119917
120383
|
}
|
|
119918
120384
|
exports.makeOpenEyes = makeOpenEyes;
|
|
119919
120385
|
function refineMissingApiKeyException(error, sdk) {
|
|
@@ -119986,6 +120452,23 @@ var require_open_eyes4 = __commonJS({
|
|
|
119986
120452
|
function isRealBatchId(batchId) {
|
|
119987
120453
|
return !!batchId && !batchId.startsWith("generated");
|
|
119988
120454
|
}
|
|
120455
|
+
function getScmSettings(scmSettings) {
|
|
120456
|
+
var _a, _b;
|
|
120457
|
+
let enableShallowClone = (_a = scmSettings.isShallowCloneEnabled) !== null && _a !== void 0 ? _a : true;
|
|
120458
|
+
let lookupFallbackList = (_b = scmSettings.isFallbackBranchListEnabled) !== null && _b !== void 0 ? _b : false;
|
|
120459
|
+
const envLookupFallbackList = utils34.general.getEnvValue("ENABLE_BRANCH_LOOKUP_FALLBACK_LIST", "boolean");
|
|
120460
|
+
const envShallowClone = utils34.general.getEnvValue("SKIP_BRANCH_LOOKUP_IN_SHALLOW_CLONE", "boolean");
|
|
120461
|
+
if (envLookupFallbackList !== void 0) {
|
|
120462
|
+
lookupFallbackList = envLookupFallbackList;
|
|
120463
|
+
}
|
|
120464
|
+
if (envShallowClone !== void 0) {
|
|
120465
|
+
enableShallowClone = !envShallowClone;
|
|
120466
|
+
}
|
|
120467
|
+
return {
|
|
120468
|
+
lookupFallbackList,
|
|
120469
|
+
enableShallowClone
|
|
120470
|
+
};
|
|
120471
|
+
}
|
|
119989
120472
|
function handleConcurrency({ userConcurrency, componentConcurrency, useServerConcurrency, shouldPrintConcurrencyWarning, logger }) {
|
|
119990
120473
|
let sessionConcurrency;
|
|
119991
120474
|
if (userConcurrency !== void 0 && userConcurrency <= 0) {
|
|
@@ -120146,7 +120629,9 @@ var require_get_manager_results = __commonJS({
|
|
|
120146
120629
|
}));
|
|
120147
120630
|
});
|
|
120148
120631
|
} catch (error) {
|
|
120149
|
-
|
|
120632
|
+
logger.fatal('Command "getManagerResults" received an error', error, "during performing with settings", settings);
|
|
120633
|
+
const internalError = new internal_error_1.InternalError(error);
|
|
120634
|
+
return promise.then((containers2) => containers2.concat({ error: internalError, result: { error: internalError }, ...error.info }));
|
|
120150
120635
|
}
|
|
120151
120636
|
}, Promise.resolve([]));
|
|
120152
120637
|
if (settings === null || settings === void 0 ? void 0 : settings.removeDuplicateTests) {
|
|
@@ -120497,7 +120982,7 @@ var require_package3 = __commonJS({
|
|
|
120497
120982
|
"../core/package.json"(exports, module) {
|
|
120498
120983
|
module.exports = {
|
|
120499
120984
|
name: "@applitools/core",
|
|
120500
|
-
version: "4.
|
|
120985
|
+
version: "4.54.1",
|
|
120501
120986
|
homepage: "https://applitools.com",
|
|
120502
120987
|
bugs: {
|
|
120503
120988
|
url: "https://github.com/applitools/eyes.sdk.javascript1/issues"
|
|
@@ -120548,12 +121033,13 @@ var require_package3 = __commonJS({
|
|
|
120548
121033
|
"build:bin": "yarn build && sea",
|
|
120549
121034
|
"build:bin:zip": "zip -j ./bin/core.zip $(find ./bin -type f -not -name '*.zip' -not -name '*.tar.gz' | xargs)",
|
|
120550
121035
|
"build:bin:tgz": "tar -czf ./bin/core.tar.gz $(find ./bin -type f -not -name '*.zip' -not -name '*.tar.gz' | xargs)",
|
|
120551
|
-
test: "run --top-level mocha './test/**/*.spec.ts' --exclude './test/bin/**' --parallel --jobs ${MOCHA_JOBS:-15} --exit --require ./test/mocha-global-setup.js",
|
|
121036
|
+
test: "run --top-level mocha './test/**/*.spec.ts' --exclude './test/bin/**' --exclude './test/e2e/mocha-sync/**' --parallel --jobs ${MOCHA_JOBS:-15} --exit --require ./test/mocha-global-setup.js",
|
|
120552
121037
|
"test:local": "MOCHA_OMIT_TAGS=sauce,browserstack run test",
|
|
120553
121038
|
"test:sauce": "MOCHA_ONLY_TAGS=sauce,browserstack run test",
|
|
120554
121039
|
"test:bin": "MOCHA_GROUP=bin run --top-level mocha './test/bin/**/*.spec.ts' --parallel --jobs ${MOCHA_JOBS:-15} --require ./test/mocha-global-setup.js",
|
|
120555
|
-
"test:e2e": "MOCHA_GROUP=e2e run --top-level mocha './test/e2e/**/*.spec.ts' --parallel --jobs ${MOCHA_JOBS:-15} --exit --require ./test/mocha-global-setup.js",
|
|
121040
|
+
"test:e2e": "MOCHA_GROUP=e2e run --top-level mocha './test/e2e/**/*.spec.ts' --exclude './test/e2e/mocha-sync/**' --parallel --jobs ${MOCHA_JOBS:-15} --exit --require ./test/mocha-global-setup.js",
|
|
120556
121041
|
"test:it": "MOCHA_GROUP=it run --top-level mocha './test/it/**/*.spec.ts' --require ./test/mocha-global-setup.js",
|
|
121042
|
+
"test:e2e:sync": "MOCHA_GROUP=e2e SYNC=true run --top-level mocha './test/e2e/mocha-sync/**/*.spec.ts' --exit --require ./test/mocha-global-setup.js",
|
|
120557
121043
|
"test:unit": "MOCHA_GROUP=unit run --top-level mocha './test/unit/**/*.spec.ts' --require ./test/mocha-global-setup.js",
|
|
120558
121044
|
setup: "run --top-level browsers:setup && run --top-level xvfb:setup",
|
|
120559
121045
|
"setup:standalone": "sh -c 'yarn chromedriver --port=4444 --verbose &'"
|
|
@@ -127412,7 +127898,7 @@ var require_package4 = __commonJS({
|
|
|
127412
127898
|
"../eyes/package.json"(exports, module) {
|
|
127413
127899
|
module.exports = {
|
|
127414
127900
|
name: "@applitools/eyes",
|
|
127415
|
-
version: "1.36.
|
|
127901
|
+
version: "1.36.19",
|
|
127416
127902
|
keywords: [
|
|
127417
127903
|
"applitools",
|
|
127418
127904
|
"eyes",
|