@adriansteffan/reactive 0.0.27 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{mod-CbGhKi2f.js → mod-CjZm1Ta9.js} +392 -376
- package/dist/mod.d.ts +20 -8
- package/dist/reactive.es.js +18 -16
- package/dist/reactive.umd.js +24 -24
- package/dist/{web-DOFokKz7.js → web-B_I1xy51.js} +1 -1
- package/dist/{web-BFGLx41c.js → web-DfpITFBR.js} +1 -1
- package/package.json +1 -1
- package/src/utils/array.ts +49 -15
|
@@ -32,11 +32,25 @@ function G0(d) {
|
|
|
32
32
|
}
|
|
33
33
|
return h;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Z0(d, h) {
|
|
36
|
+
return h(d);
|
|
37
|
+
}
|
|
38
|
+
function J0(d, h) {
|
|
39
|
+
const f = Math.ceil(d.length / h);
|
|
40
|
+
return Array.from(
|
|
41
|
+
{ length: Math.ceil(d.length / f) },
|
|
42
|
+
(p, g) => d.slice(g * f, g * f + f)
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
function y5() {
|
|
36
46
|
typeof Array.prototype.sample != "function" && (Array.prototype.sample = function(d) {
|
|
37
47
|
return $0(this, d);
|
|
38
48
|
}), typeof Array.prototype.shuffle != "function" && (Array.prototype.shuffle = function() {
|
|
39
49
|
return G0(this);
|
|
50
|
+
}), typeof Array.prototype.pipe != "function" && (Array.prototype.pipe = function(d) {
|
|
51
|
+
return Z0(this, d);
|
|
52
|
+
}), typeof Array.prototype.chunk != "function" && (Array.prototype.chunk = function(d) {
|
|
53
|
+
return J0(this, d);
|
|
40
54
|
});
|
|
41
55
|
}
|
|
42
56
|
/*! Capacitor: https://capacitorjs.com/ - MIT License */
|
|
@@ -49,11 +63,11 @@ class yc extends Error {
|
|
|
49
63
|
super(h), this.message = h, this.code = f, this.data = p;
|
|
50
64
|
}
|
|
51
65
|
}
|
|
52
|
-
const
|
|
66
|
+
const K0 = (d) => {
|
|
53
67
|
var h, f;
|
|
54
68
|
return d != null && d.androidBridge ? "android" : !((f = (h = d == null ? void 0 : d.webkit) === null || h === void 0 ? void 0 : h.messageHandlers) === null || f === void 0) && f.bridge ? "ios" : "web";
|
|
55
|
-
},
|
|
56
|
-
const h = d.CapacitorCustomPlatform || null, f = d.Capacitor || {}, p = f.Plugins = f.Plugins || {}, g = () => h !== null ? h.name :
|
|
69
|
+
}, Y0 = (d) => {
|
|
70
|
+
const h = d.CapacitorCustomPlatform || null, f = d.Capacitor || {}, p = f.Plugins = f.Plugins || {}, g = () => h !== null ? h.name : K0(d), C = () => g() !== "web", x = (R) => {
|
|
57
71
|
const L = b.get(R);
|
|
58
72
|
return !!(L != null && L.platforms.has(g()) || w(R));
|
|
59
73
|
}, w = (R) => {
|
|
@@ -130,7 +144,7 @@ const Z0 = (d) => {
|
|
|
130
144
|
}), $;
|
|
131
145
|
};
|
|
132
146
|
return f.convertFileSrc || (f.convertFileSrc = (R) => R), f.getPlatform = g, f.handleError = V, f.isNativePlatform = C, f.isPluginAvailable = x, f.registerPlugin = S, f.Exception = yc, f.DEBUG = !!f.DEBUG, f.isLoggingEnabled = !!f.isLoggingEnabled, f;
|
|
133
|
-
},
|
|
147
|
+
}, X0 = (d) => d.Capacitor = Y0(d), io = /* @__PURE__ */ X0(typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {}), na = io.registerPlugin;
|
|
134
148
|
class ag {
|
|
135
149
|
constructor() {
|
|
136
150
|
this.listeners = {}, this.retainedEventArguments = {}, this.windowListeners = {};
|
|
@@ -200,7 +214,7 @@ class ag {
|
|
|
200
214
|
}
|
|
201
215
|
}
|
|
202
216
|
const Rd = (d) => encodeURIComponent(d).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape), Dd = (d) => d.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
203
|
-
class
|
|
217
|
+
class e1 extends ag {
|
|
204
218
|
async getCookies() {
|
|
205
219
|
const h = document.cookie, f = {};
|
|
206
220
|
return h.split(";").forEach((p) => {
|
|
@@ -243,25 +257,25 @@ class Y0 extends ag {
|
|
|
243
257
|
}
|
|
244
258
|
}
|
|
245
259
|
na("CapacitorCookies", {
|
|
246
|
-
web: () => new
|
|
260
|
+
web: () => new e1()
|
|
247
261
|
});
|
|
248
|
-
const
|
|
262
|
+
const t1 = async (d) => new Promise((h, f) => {
|
|
249
263
|
const p = new FileReader();
|
|
250
264
|
p.onload = () => {
|
|
251
265
|
const g = p.result;
|
|
252
266
|
h(g.indexOf(",") >= 0 ? g.split(",")[1] : g);
|
|
253
267
|
}, p.onerror = (g) => f(g), p.readAsDataURL(d);
|
|
254
|
-
}),
|
|
268
|
+
}), r1 = (d = {}) => {
|
|
255
269
|
const h = Object.keys(d);
|
|
256
270
|
return Object.keys(d).map((g) => g.toLocaleLowerCase()).reduce((g, C, x) => (g[C] = d[h[x]], g), {});
|
|
257
|
-
},
|
|
271
|
+
}, n1 = (d, h = !0) => d ? Object.entries(d).reduce((p, g) => {
|
|
258
272
|
const [C, x] = g;
|
|
259
273
|
let w, V;
|
|
260
274
|
return Array.isArray(x) ? (V = "", x.forEach((b) => {
|
|
261
275
|
w = h ? encodeURIComponent(b) : b, V += `${C}=${w}&`;
|
|
262
276
|
}), V.slice(0, -1)) : (w = h ? encodeURIComponent(x) : x, V = `${C}=${w}`), `${p}&${V}`;
|
|
263
|
-
}, "").substr(1) : null,
|
|
264
|
-
const f = Object.assign({ method: d.method || "GET", headers: d.headers }, h), g =
|
|
277
|
+
}, "").substr(1) : null, i1 = (d, h = {}) => {
|
|
278
|
+
const f = Object.assign({ method: d.method || "GET", headers: d.headers }, h), g = r1(d.headers)["content-type"] || "";
|
|
265
279
|
if (typeof d.data == "string")
|
|
266
280
|
f.body = d.data;
|
|
267
281
|
else if (g.includes("application/x-www-form-urlencoded")) {
|
|
@@ -284,20 +298,20 @@ const X0 = async (d) => new Promise((h, f) => {
|
|
|
284
298
|
} else (g.includes("application/json") || typeof d.data == "object") && (f.body = JSON.stringify(d.data));
|
|
285
299
|
return f;
|
|
286
300
|
};
|
|
287
|
-
class
|
|
301
|
+
class o1 extends ag {
|
|
288
302
|
/**
|
|
289
303
|
* Perform an Http request given a set of options
|
|
290
304
|
* @param options Options to build the HTTP request
|
|
291
305
|
*/
|
|
292
306
|
async request(h) {
|
|
293
|
-
const f =
|
|
307
|
+
const f = i1(h, h.webFetchExtra), p = n1(h.params, h.shouldEncodeUrlParams), g = p ? `${h.url}?${p}` : h.url, C = await fetch(g, f), x = C.headers.get("content-type") || "";
|
|
294
308
|
let { responseType: w = "text" } = C.ok ? h : {};
|
|
295
309
|
x.includes("application/json") && (w = "json");
|
|
296
310
|
let V, b;
|
|
297
311
|
switch (w) {
|
|
298
312
|
case "arraybuffer":
|
|
299
313
|
case "blob":
|
|
300
|
-
b = await C.blob(), V = await
|
|
314
|
+
b = await C.blob(), V = await t1(b);
|
|
301
315
|
break;
|
|
302
316
|
case "json":
|
|
303
317
|
V = await C.json();
|
|
@@ -354,7 +368,7 @@ class n1 extends ag {
|
|
|
354
368
|
}
|
|
355
369
|
}
|
|
356
370
|
na("CapacitorHttp", {
|
|
357
|
-
web: () => new
|
|
371
|
+
web: () => new o1()
|
|
358
372
|
});
|
|
359
373
|
function br() {
|
|
360
374
|
return Math.round(performance.now());
|
|
@@ -362,7 +376,7 @@ function br() {
|
|
|
362
376
|
function zs() {
|
|
363
377
|
return !!(document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement);
|
|
364
378
|
}
|
|
365
|
-
function
|
|
379
|
+
function v5() {
|
|
366
380
|
return window.electronAPI !== void 0;
|
|
367
381
|
}
|
|
368
382
|
const Vl = [];
|
|
@@ -422,7 +436,7 @@ class Fc {
|
|
|
422
436
|
}
|
|
423
437
|
}
|
|
424
438
|
const _l = () => window.electronAPI ? "desktop" : io.isNativePlatform() ? "mobile" : "web", lg = {};
|
|
425
|
-
function
|
|
439
|
+
function s1(d) {
|
|
426
440
|
d.forEach((h) => {
|
|
427
441
|
const f = lg[h.type];
|
|
428
442
|
if (f)
|
|
@@ -433,8 +447,8 @@ function i1(d) {
|
|
|
433
447
|
function ug(d, h) {
|
|
434
448
|
lg[d] = h;
|
|
435
449
|
}
|
|
436
|
-
function
|
|
437
|
-
|
|
450
|
+
function b5(d) {
|
|
451
|
+
s1(d), _c.length = 0, d.forEach((g) => {
|
|
438
452
|
_c.push({
|
|
439
453
|
type: g.type ?? "NoTypeSpecified",
|
|
440
454
|
name: g.name
|
|
@@ -464,7 +478,7 @@ function y5(d) {
|
|
|
464
478
|
}
|
|
465
479
|
return p;
|
|
466
480
|
}
|
|
467
|
-
function
|
|
481
|
+
function C5(d) {
|
|
468
482
|
return d <= 0 ? [] : Array.from({ length: d }, (h, f) => {
|
|
469
483
|
const p = d - f;
|
|
470
484
|
return {
|
|
@@ -487,7 +501,7 @@ var tf = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
487
501
|
* LICENSE file in the root directory of this source tree.
|
|
488
502
|
*/
|
|
489
503
|
var Ad;
|
|
490
|
-
function
|
|
504
|
+
function a1() {
|
|
491
505
|
if (Ad) return Ns;
|
|
492
506
|
Ad = 1;
|
|
493
507
|
var d = rt, h = Symbol.for("react.element"), f = Symbol.for("react.fragment"), p = Object.prototype.hasOwnProperty, g = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, C = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
@@ -511,7 +525,7 @@ var _s = {};
|
|
|
511
525
|
* LICENSE file in the root directory of this source tree.
|
|
512
526
|
*/
|
|
513
527
|
var Ld;
|
|
514
|
-
function
|
|
528
|
+
function l1() {
|
|
515
529
|
return Ld || (Ld = 1, process.env.NODE_ENV !== "production" && function() {
|
|
516
530
|
var d = rt, h = Symbol.for("react.element"), f = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), w = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), q = Symbol.iterator, D = "@@iterator";
|
|
517
531
|
function P(G) {
|
|
@@ -1104,7 +1118,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1104
1118
|
_s.Fragment = p, _s.jsx = Pi, _s.jsxs = Si;
|
|
1105
1119
|
}()), _s;
|
|
1106
1120
|
}
|
|
1107
|
-
process.env.NODE_ENV === "production" ? qc.exports =
|
|
1121
|
+
process.env.NODE_ENV === "production" ? qc.exports = a1() : qc.exports = l1();
|
|
1108
1122
|
var Z = qc.exports;
|
|
1109
1123
|
function rf({
|
|
1110
1124
|
content: d,
|
|
@@ -1166,7 +1180,7 @@ function rf({
|
|
|
1166
1180
|
)
|
|
1167
1181
|
] });
|
|
1168
1182
|
}
|
|
1169
|
-
function
|
|
1183
|
+
function u1({
|
|
1170
1184
|
content: d,
|
|
1171
1185
|
buttonText: h = "Click me",
|
|
1172
1186
|
className: f = "",
|
|
@@ -1220,7 +1234,7 @@ function a1({
|
|
|
1220
1234
|
ug("ProlificEnding", [
|
|
1221
1235
|
{ name: "cc", defaultValue: "", type: "string", description: "Completion code of the Profilic experiment (more commonly supplied via the code)" }
|
|
1222
1236
|
]);
|
|
1223
|
-
function
|
|
1237
|
+
function c1({
|
|
1224
1238
|
prolificCode: d,
|
|
1225
1239
|
data: h,
|
|
1226
1240
|
updateStore: f
|
|
@@ -1255,10 +1269,10 @@ var cg = {
|
|
|
1255
1269
|
className: void 0,
|
|
1256
1270
|
style: void 0,
|
|
1257
1271
|
attr: void 0
|
|
1258
|
-
}, kd = rt.createContext && /* @__PURE__ */ rt.createContext(cg),
|
|
1259
|
-
function
|
|
1272
|
+
}, kd = rt.createContext && /* @__PURE__ */ rt.createContext(cg), f1 = ["attr", "size", "title"];
|
|
1273
|
+
function p1(d, h) {
|
|
1260
1274
|
if (d == null) return {};
|
|
1261
|
-
var f =
|
|
1275
|
+
var f = d1(d, h), p, g;
|
|
1262
1276
|
if (Object.getOwnPropertySymbols) {
|
|
1263
1277
|
var C = Object.getOwnPropertySymbols(d);
|
|
1264
1278
|
for (g = 0; g < C.length; g++)
|
|
@@ -1266,7 +1280,7 @@ function c1(d, h) {
|
|
|
1266
1280
|
}
|
|
1267
1281
|
return f;
|
|
1268
1282
|
}
|
|
1269
|
-
function
|
|
1283
|
+
function d1(d, h) {
|
|
1270
1284
|
if (d == null) return {};
|
|
1271
1285
|
var f = {};
|
|
1272
1286
|
for (var p in d)
|
|
@@ -1300,21 +1314,21 @@ function Tl(d) {
|
|
|
1300
1314
|
for (var h = 1; h < arguments.length; h++) {
|
|
1301
1315
|
var f = arguments[h] != null ? arguments[h] : {};
|
|
1302
1316
|
h % 2 ? Md(Object(f), !0).forEach(function(p) {
|
|
1303
|
-
|
|
1317
|
+
h1(d, p, f[p]);
|
|
1304
1318
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(d, Object.getOwnPropertyDescriptors(f)) : Md(Object(f)).forEach(function(p) {
|
|
1305
1319
|
Object.defineProperty(d, p, Object.getOwnPropertyDescriptor(f, p));
|
|
1306
1320
|
});
|
|
1307
1321
|
}
|
|
1308
1322
|
return d;
|
|
1309
1323
|
}
|
|
1310
|
-
function
|
|
1311
|
-
return h =
|
|
1324
|
+
function h1(d, h, f) {
|
|
1325
|
+
return h = g1(h), h in d ? Object.defineProperty(d, h, { value: f, enumerable: !0, configurable: !0, writable: !0 }) : d[h] = f, d;
|
|
1312
1326
|
}
|
|
1313
|
-
function
|
|
1314
|
-
var h =
|
|
1327
|
+
function g1(d) {
|
|
1328
|
+
var h = m1(d, "string");
|
|
1315
1329
|
return typeof h == "symbol" ? h : h + "";
|
|
1316
1330
|
}
|
|
1317
|
-
function
|
|
1331
|
+
function m1(d, h) {
|
|
1318
1332
|
if (typeof d != "object" || !d) return d;
|
|
1319
1333
|
var f = d[Symbol.toPrimitive];
|
|
1320
1334
|
if (f !== void 0) {
|
|
@@ -1330,17 +1344,17 @@ function fg(d) {
|
|
|
1330
1344
|
}, h.attr), fg(h.child)));
|
|
1331
1345
|
}
|
|
1332
1346
|
function nf(d) {
|
|
1333
|
-
return (h) => /* @__PURE__ */ rt.createElement(
|
|
1347
|
+
return (h) => /* @__PURE__ */ rt.createElement(y1, Ol({
|
|
1334
1348
|
attr: Tl({}, d.attr)
|
|
1335
1349
|
}, h), fg(d.child));
|
|
1336
1350
|
}
|
|
1337
|
-
function
|
|
1351
|
+
function y1(d) {
|
|
1338
1352
|
var h = (f) => {
|
|
1339
1353
|
var {
|
|
1340
1354
|
attr: p,
|
|
1341
1355
|
size: g,
|
|
1342
1356
|
title: C
|
|
1343
|
-
} = d, x =
|
|
1357
|
+
} = d, x = p1(d, f1), w = g || f.size || "1em", V;
|
|
1344
1358
|
return f.className && (V = f.className), d.className && (V = (V ? V + " " : "") + d.className), /* @__PURE__ */ rt.createElement("svg", Ol({
|
|
1345
1359
|
stroke: "currentColor",
|
|
1346
1360
|
fill: "currentColor",
|
|
@@ -1357,16 +1371,16 @@ function g1(d) {
|
|
|
1357
1371
|
};
|
|
1358
1372
|
return kd !== void 0 ? /* @__PURE__ */ rt.createElement(kd.Consumer, null, (f) => h(f)) : h(cg);
|
|
1359
1373
|
}
|
|
1360
|
-
function
|
|
1374
|
+
function v1(d) {
|
|
1361
1375
|
return nf({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { d: "M8.25 4.5a3.75 3.75 0 1 1 7.5 0v8.25a3.75 3.75 0 1 1-7.5 0V4.5Z" }, child: [] }, { tag: "path", attr: { d: "M6 10.5a.75.75 0 0 1 .75.75v1.5a5.25 5.25 0 1 0 10.5 0v-1.5a.75.75 0 0 1 1.5 0v1.5a6.751 6.751 0 0 1-6 6.709v2.291h3a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1 0-1.5h3v-2.291a6.751 6.751 0 0 1-6-6.709v-1.5A.75.75 0 0 1 6 10.5Z" }, child: [] }] })(d);
|
|
1362
1376
|
}
|
|
1363
|
-
function
|
|
1377
|
+
function b1(d) {
|
|
1364
1378
|
return nf({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M4.5 7.5a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3h-9a3 3 0 0 1-3-3v-9Z", clipRule: "evenodd" }, child: [] }] })(d);
|
|
1365
1379
|
}
|
|
1366
|
-
function
|
|
1380
|
+
function C1(d) {
|
|
1367
1381
|
return nf({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M16.5 4.478v.227a48.816 48.816 0 0 1 3.878.512.75.75 0 1 1-.256 1.478l-.209-.035-1.005 13.07a3 3 0 0 1-2.991 2.77H8.084a3 3 0 0 1-2.991-2.77L4.087 6.66l-.209.035a.75.75 0 0 1-.256-1.478A48.567 48.567 0 0 1 7.5 4.705v-.227c0-1.564 1.213-2.9 2.816-2.951a52.662 52.662 0 0 1 3.369 0c1.603.051 2.815 1.387 2.815 2.951Zm-6.136-1.452a51.196 51.196 0 0 1 3.273 0C14.39 3.05 15 3.684 15 4.478v.113a49.488 49.488 0 0 0-6 0v-.113c0-.794.609-1.428 1.364-1.452Zm-.355 5.945a.75.75 0 1 0-1.5.058l.347 9a.75.75 0 1 0 1.499-.058l-.346-9Zm5.48.058a.75.75 0 1 0-1.498-.058l-.347 9a.75.75 0 0 0 1.5.058l.345-9Z", clipRule: "evenodd" }, child: [] }] })(d);
|
|
1368
1382
|
}
|
|
1369
|
-
const
|
|
1383
|
+
const x1 = ({ stream: d }) => {
|
|
1370
1384
|
const h = vt(null), f = vt(null), p = vt(null), g = vt([]);
|
|
1371
1385
|
return ar(() => {
|
|
1372
1386
|
if (!d || !h.current) return;
|
|
@@ -1484,10 +1498,10 @@ const b1 = ({ stream: d }) => {
|
|
|
1484
1498
|
${p ? "bg-red-500 hover:bg-red-600" : ""}
|
|
1485
1499
|
text-white transition-colors duration-200`,
|
|
1486
1500
|
"aria-label": p ? "Stop Recording" : "Start Recording",
|
|
1487
|
-
children: p ? /* @__PURE__ */ Z.jsx(
|
|
1501
|
+
children: p ? /* @__PURE__ */ Z.jsx(b1, { className: "w-6 h-6" }) : /* @__PURE__ */ Z.jsx(v1, { className: "w-6 h-6 text-black" })
|
|
1488
1502
|
}
|
|
1489
1503
|
),
|
|
1490
|
-
p && w && /* @__PURE__ */ Z.jsx("div", { className: "w-full max-w-md mx-auto", children: /* @__PURE__ */ Z.jsx(
|
|
1504
|
+
p && w && /* @__PURE__ */ Z.jsx("div", { className: "w-full max-w-md mx-auto", children: /* @__PURE__ */ Z.jsx(x1, { stream: w }) }),
|
|
1491
1505
|
p && /* @__PURE__ */ Z.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
1492
1506
|
/* @__PURE__ */ Z.jsx("div", { className: "w-3 h-3 bg-red-500 rounded-full animate-pulse" }),
|
|
1493
1507
|
/* @__PURE__ */ Z.jsx("span", { className: "text-sm text-black", children: "Recording..." })
|
|
@@ -1505,7 +1519,7 @@ const b1 = ({ stream: d }) => {
|
|
|
1505
1519
|
className: `border-2 border-black shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none cursor-pointer flex items-center space-x-2 px-4 py-2 text-black
|
|
1506
1520
|
rounded-xl transition-colors duration-200`,
|
|
1507
1521
|
children: [
|
|
1508
|
-
/* @__PURE__ */ Z.jsx(
|
|
1522
|
+
/* @__PURE__ */ Z.jsx(C1, { className: "w-4 h-4" }),
|
|
1509
1523
|
/* @__PURE__ */ Z.jsx("span", { children: "Discard" })
|
|
1510
1524
|
]
|
|
1511
1525
|
}
|
|
@@ -1513,7 +1527,7 @@ const b1 = ({ stream: d }) => {
|
|
|
1513
1527
|
] })
|
|
1514
1528
|
] });
|
|
1515
1529
|
};
|
|
1516
|
-
function
|
|
1530
|
+
function w1({
|
|
1517
1531
|
setValue: d
|
|
1518
1532
|
}) {
|
|
1519
1533
|
return /* @__PURE__ */ Z.jsx(
|
|
@@ -1525,7 +1539,7 @@ function C1({
|
|
|
1525
1539
|
}
|
|
1526
1540
|
);
|
|
1527
1541
|
}
|
|
1528
|
-
function
|
|
1542
|
+
function P1({
|
|
1529
1543
|
onMicrophoneSelect: d
|
|
1530
1544
|
}) {
|
|
1531
1545
|
var b;
|
|
@@ -1600,14 +1614,14 @@ function x1({
|
|
|
1600
1614
|
) })
|
|
1601
1615
|
] });
|
|
1602
1616
|
}
|
|
1603
|
-
const
|
|
1617
|
+
const S1 = ({ next: d }) => {
|
|
1604
1618
|
const [h, f] = Lt(!1);
|
|
1605
1619
|
return /* @__PURE__ */ Z.jsxs("div", { className: "max-w-prose mx-auto mt-20 mb-20 px-4 ", children: [
|
|
1606
1620
|
/* @__PURE__ */ Z.jsxs("article", { className: "prose prose-2xl prose-slate text-xl text-black leading-relaxed", children: [
|
|
1607
1621
|
/* @__PURE__ */ Z.jsx("h1", { className: "text-3xl mb-6 font-semibold", children: "Let's test your microphone!" }),
|
|
1608
1622
|
/* @__PURE__ */ Z.jsx("p", { children: "In this experiment, you will need to answer some questions verbally. To make sure that we don't lose your input, please select your preferred microphone using the menu below..." })
|
|
1609
1623
|
] }),
|
|
1610
|
-
/* @__PURE__ */ Z.jsx(
|
|
1624
|
+
/* @__PURE__ */ Z.jsx(P1, { onMicrophoneSelect: (p) => window.audioInputId = p }),
|
|
1611
1625
|
/* @__PURE__ */ Z.jsx("article", { className: "prose prose-2xl prose-slate text-xl text-black leading-relaxed", children: /* @__PURE__ */ Z.jsx("p", { children: "... and use the recording button below to make a test recording of your voice. After stopping the recording, you can use the play button to play back the audio." }) }),
|
|
1612
1626
|
/* @__PURE__ */ Z.jsx(
|
|
1613
1627
|
pg,
|
|
@@ -62619,8 +62633,8 @@ var Bc = hg.exports, gg = { exports: {} };
|
|
|
62619
62633
|
);
|
|
62620
62634
|
});
|
|
62621
62635
|
})(gg);
|
|
62622
|
-
var
|
|
62623
|
-
const
|
|
62636
|
+
var j1 = gg.exports;
|
|
62637
|
+
const E1 = (d, h) => {
|
|
62624
62638
|
class f extends Il.Question {
|
|
62625
62639
|
getType() {
|
|
62626
62640
|
return d;
|
|
@@ -62655,19 +62669,19 @@ const S1 = (d, h) => {
|
|
|
62655
62669
|
}
|
|
62656
62670
|
Bc.ReactQuestionFactory.Instance.registerQuestion(d, (g) => U0(p, g));
|
|
62657
62671
|
};
|
|
62658
|
-
function
|
|
62672
|
+
function V1({
|
|
62659
62673
|
next: d,
|
|
62660
62674
|
surveyJson: h,
|
|
62661
62675
|
customQuestions: f = {}
|
|
62662
62676
|
}) {
|
|
62663
62677
|
Object.keys(f).forEach((C) => {
|
|
62664
|
-
|
|
62678
|
+
E1(C, f[C]);
|
|
62665
62679
|
});
|
|
62666
62680
|
const p = new Il.Model({
|
|
62667
62681
|
...h,
|
|
62668
62682
|
css: { ...Il.defaultV2Css, root: "sd-root-modern custom-root" }
|
|
62669
62683
|
});
|
|
62670
|
-
p.applyTheme(
|
|
62684
|
+
p.applyTheme(j1.ContrastLight);
|
|
62671
62685
|
const g = qt(
|
|
62672
62686
|
(C) => {
|
|
62673
62687
|
const x = {};
|
|
@@ -62703,19 +62717,19 @@ var ia = class {
|
|
|
62703
62717
|
}, Fl = typeof window > "u" || "Deno" in globalThis;
|
|
62704
62718
|
function gn() {
|
|
62705
62719
|
}
|
|
62706
|
-
function
|
|
62720
|
+
function O1(d, h) {
|
|
62707
62721
|
return typeof d == "function" ? d(h) : d;
|
|
62708
62722
|
}
|
|
62709
|
-
function
|
|
62723
|
+
function T1(d) {
|
|
62710
62724
|
return typeof d == "number" && d >= 0 && d !== 1 / 0;
|
|
62711
62725
|
}
|
|
62712
|
-
function
|
|
62726
|
+
function I1(d, h) {
|
|
62713
62727
|
return Math.max(d + (h || 0) - Date.now(), 0);
|
|
62714
62728
|
}
|
|
62715
62729
|
function _d(d, h) {
|
|
62716
62730
|
return typeof d == "function" ? d(h) : d;
|
|
62717
62731
|
}
|
|
62718
|
-
function
|
|
62732
|
+
function R1(d, h) {
|
|
62719
62733
|
return typeof d == "function" ? d(h) : d;
|
|
62720
62734
|
}
|
|
62721
62735
|
function Fd(d, h) {
|
|
@@ -62781,7 +62795,7 @@ function Hc(d, h) {
|
|
|
62781
62795
|
}
|
|
62782
62796
|
return h;
|
|
62783
62797
|
}
|
|
62784
|
-
function
|
|
62798
|
+
function D1(d, h) {
|
|
62785
62799
|
if (!h || Object.keys(d).length !== Object.keys(h).length)
|
|
62786
62800
|
return !1;
|
|
62787
62801
|
for (const f in d)
|
|
@@ -62804,12 +62818,12 @@ function Qc(d) {
|
|
|
62804
62818
|
function Hd(d) {
|
|
62805
62819
|
return Object.prototype.toString.call(d) === "[object Object]";
|
|
62806
62820
|
}
|
|
62807
|
-
function
|
|
62821
|
+
function A1(d) {
|
|
62808
62822
|
return new Promise((h) => {
|
|
62809
62823
|
setTimeout(h, d);
|
|
62810
62824
|
});
|
|
62811
62825
|
}
|
|
62812
|
-
function
|
|
62826
|
+
function L1(d, h, f) {
|
|
62813
62827
|
if (typeof f.structuralSharing == "function")
|
|
62814
62828
|
return f.structuralSharing(d, h);
|
|
62815
62829
|
if (f.structuralSharing !== !1) {
|
|
@@ -62825,11 +62839,11 @@ function D1(d, h, f) {
|
|
|
62825
62839
|
}
|
|
62826
62840
|
return h;
|
|
62827
62841
|
}
|
|
62828
|
-
function
|
|
62842
|
+
function k1(d, h, f = 0) {
|
|
62829
62843
|
const p = [...d, h];
|
|
62830
62844
|
return f && p.length > f ? p.slice(1) : p;
|
|
62831
62845
|
}
|
|
62832
|
-
function
|
|
62846
|
+
function M1(d, h, f = 0) {
|
|
62833
62847
|
const p = [h, ...d];
|
|
62834
62848
|
return f && p.length > f ? p.slice(0, -1) : p;
|
|
62835
62849
|
}
|
|
@@ -62839,7 +62853,7 @@ function mg(d, h) {
|
|
|
62839
62853
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${d.queryHash}'`
|
|
62840
62854
|
), !d.queryFn && (h != null && h.initialPromise) ? () => h.initialPromise : !d.queryFn || d.queryFn === Rl ? () => Promise.reject(new Error(`Missing queryFn: '${d.queryHash}'`)) : d.queryFn;
|
|
62841
62855
|
}
|
|
62842
|
-
var Xi, pi, qo, Kh,
|
|
62856
|
+
var Xi, pi, qo, Kh, N1 = (Kh = class extends ia {
|
|
62843
62857
|
constructor() {
|
|
62844
62858
|
super();
|
|
62845
62859
|
ct(this, Xi);
|
|
@@ -62880,7 +62894,7 @@ var Xi, pi, qo, Kh, k1 = (Kh = class extends ia {
|
|
|
62880
62894
|
var h;
|
|
62881
62895
|
return typeof fe(this, Xi) == "boolean" ? fe(this, Xi) : ((h = globalThis.document) == null ? void 0 : h.visibilityState) !== "hidden";
|
|
62882
62896
|
}
|
|
62883
|
-
}, Xi = new WeakMap(), pi = new WeakMap(), qo = new WeakMap(), Kh), yg = new
|
|
62897
|
+
}, Xi = new WeakMap(), pi = new WeakMap(), qo = new WeakMap(), Kh), yg = new N1(), Bo, di, Ho, Yh, _1 = (Yh = class extends ia {
|
|
62884
62898
|
constructor() {
|
|
62885
62899
|
super();
|
|
62886
62900
|
ct(this, Bo, !0);
|
|
@@ -62914,8 +62928,8 @@ var Xi, pi, qo, Kh, k1 = (Kh = class extends ia {
|
|
|
62914
62928
|
isOnline() {
|
|
62915
62929
|
return fe(this, Bo);
|
|
62916
62930
|
}
|
|
62917
|
-
}, Bo = new WeakMap(), di = new WeakMap(), Ho = new WeakMap(), Yh), Dl = new
|
|
62918
|
-
function
|
|
62931
|
+
}, Bo = new WeakMap(), di = new WeakMap(), Ho = new WeakMap(), Yh), Dl = new _1();
|
|
62932
|
+
function F1() {
|
|
62919
62933
|
let d, h;
|
|
62920
62934
|
const f = new Promise((g, C) => {
|
|
62921
62935
|
d = g, h = C;
|
|
@@ -62937,7 +62951,7 @@ function N1() {
|
|
|
62937
62951
|
}), h(g);
|
|
62938
62952
|
}, f;
|
|
62939
62953
|
}
|
|
62940
|
-
function
|
|
62954
|
+
function q1(d) {
|
|
62941
62955
|
return Math.min(1e3 * 2 ** d, 3e4);
|
|
62942
62956
|
}
|
|
62943
62957
|
function vg(d) {
|
|
@@ -62953,7 +62967,7 @@ function bc(d) {
|
|
|
62953
62967
|
}
|
|
62954
62968
|
function Cg(d) {
|
|
62955
62969
|
let h = !1, f = 0, p = !1, g;
|
|
62956
|
-
const C =
|
|
62970
|
+
const C = F1(), x = (D) => {
|
|
62957
62971
|
var P;
|
|
62958
62972
|
p || (L(new bg(D)), (P = d.abort) == null || P.call(d));
|
|
62959
62973
|
}, w = () => {
|
|
@@ -62988,12 +63002,12 @@ function Cg(d) {
|
|
|
62988
63002
|
var B;
|
|
62989
63003
|
if (p)
|
|
62990
63004
|
return;
|
|
62991
|
-
const M = d.retry ?? (Fl ? 0 : 3), F = d.retryDelay ??
|
|
63005
|
+
const M = d.retry ?? (Fl ? 0 : 3), F = d.retryDelay ?? q1, K = typeof F == "function" ? F(f, A) : F, Y = M === !0 || typeof M == "number" && f < M || typeof M == "function" && M(f, A);
|
|
62992
63006
|
if (h || !Y) {
|
|
62993
63007
|
L(A);
|
|
62994
63008
|
return;
|
|
62995
63009
|
}
|
|
62996
|
-
f++, (B = d.onFail) == null || B.call(d, f, A),
|
|
63010
|
+
f++, (B = d.onFail) == null || B.call(d, f, A), A1(K).then(() => b() ? void 0 : W()).then(() => {
|
|
62997
63011
|
h ? L(A) : q();
|
|
62998
63012
|
});
|
|
62999
63013
|
});
|
|
@@ -63008,7 +63022,7 @@ function Cg(d) {
|
|
|
63008
63022
|
start: () => (S() ? q() : W().then(q), C)
|
|
63009
63023
|
};
|
|
63010
63024
|
}
|
|
63011
|
-
function
|
|
63025
|
+
function B1() {
|
|
63012
63026
|
let d = [], h = 0, f = (w) => {
|
|
63013
63027
|
w();
|
|
63014
63028
|
}, p = (w) => {
|
|
@@ -63067,7 +63081,7 @@ function F1() {
|
|
|
63067
63081
|
}
|
|
63068
63082
|
};
|
|
63069
63083
|
}
|
|
63070
|
-
var fr =
|
|
63084
|
+
var fr = B1(), eo, Xh, xg = (Xh = class {
|
|
63071
63085
|
constructor() {
|
|
63072
63086
|
ct(this, eo);
|
|
63073
63087
|
}
|
|
@@ -63075,7 +63089,7 @@ var fr = F1(), eo, Xh, xg = (Xh = class {
|
|
|
63075
63089
|
this.clearGcTimeout();
|
|
63076
63090
|
}
|
|
63077
63091
|
scheduleGc() {
|
|
63078
|
-
this.clearGcTimeout(),
|
|
63092
|
+
this.clearGcTimeout(), T1(this.gcTime) && Ke(this, eo, setTimeout(() => {
|
|
63079
63093
|
this.optionalRemove();
|
|
63080
63094
|
}, this.gcTime));
|
|
63081
63095
|
}
|
|
@@ -63088,7 +63102,7 @@ var fr = F1(), eo, Xh, xg = (Xh = class {
|
|
|
63088
63102
|
clearGcTimeout() {
|
|
63089
63103
|
fe(this, eo) && (clearTimeout(fe(this, eo)), Ke(this, eo, void 0));
|
|
63090
63104
|
}
|
|
63091
|
-
}, eo = new WeakMap(), Xh), Qo, Uo, tn, vr, ta, to, mn, Nn, eg,
|
|
63105
|
+
}, eo = new WeakMap(), Xh), Qo, Uo, tn, vr, ta, to, mn, Nn, eg, H1 = (eg = class extends xg {
|
|
63092
63106
|
constructor(h) {
|
|
63093
63107
|
super();
|
|
63094
63108
|
ct(this, mn);
|
|
@@ -63098,7 +63112,7 @@ var fr = F1(), eo, Xh, xg = (Xh = class {
|
|
|
63098
63112
|
ct(this, vr);
|
|
63099
63113
|
ct(this, ta);
|
|
63100
63114
|
ct(this, to);
|
|
63101
|
-
Ke(this, to, !1), Ke(this, ta, h.defaultOptions), this.setOptions(h.options), this.observers = [], Ke(this, tn, h.cache), this.queryKey = h.queryKey, this.queryHash = h.queryHash, Ke(this, Qo,
|
|
63115
|
+
Ke(this, to, !1), Ke(this, ta, h.defaultOptions), this.setOptions(h.options), this.observers = [], Ke(this, tn, h.cache), this.queryKey = h.queryKey, this.queryHash = h.queryHash, Ke(this, Qo, U1(this.options)), this.state = h.state ?? fe(this, Qo), this.scheduleGc();
|
|
63102
63116
|
}
|
|
63103
63117
|
get meta() {
|
|
63104
63118
|
return this.options.meta;
|
|
@@ -63114,7 +63128,7 @@ var fr = F1(), eo, Xh, xg = (Xh = class {
|
|
|
63114
63128
|
!this.observers.length && this.state.fetchStatus === "idle" && fe(this, tn).remove(this);
|
|
63115
63129
|
}
|
|
63116
63130
|
setData(h, f) {
|
|
63117
|
-
const p =
|
|
63131
|
+
const p = L1(this.state.data, h, this.options);
|
|
63118
63132
|
return Kt(this, mn, Nn).call(this, {
|
|
63119
63133
|
data: p,
|
|
63120
63134
|
type: "success",
|
|
@@ -63138,7 +63152,7 @@ var fr = F1(), eo, Xh, xg = (Xh = class {
|
|
|
63138
63152
|
}
|
|
63139
63153
|
isActive() {
|
|
63140
63154
|
return this.observers.some(
|
|
63141
|
-
(h) =>
|
|
63155
|
+
(h) => R1(h.options.enabled, this) !== !1
|
|
63142
63156
|
);
|
|
63143
63157
|
}
|
|
63144
63158
|
isDisabled() {
|
|
@@ -63150,7 +63164,7 @@ var fr = F1(), eo, Xh, xg = (Xh = class {
|
|
|
63150
63164
|
) : this.state.data === void 0;
|
|
63151
63165
|
}
|
|
63152
63166
|
isStaleByTime(h = 0) {
|
|
63153
|
-
return this.state.isInvalidated || this.state.data === void 0 || !
|
|
63167
|
+
return this.state.isInvalidated || this.state.data === void 0 || !I1(this.state.dataUpdatedAt, h);
|
|
63154
63168
|
}
|
|
63155
63169
|
onFocus() {
|
|
63156
63170
|
var f;
|
|
@@ -63294,7 +63308,7 @@ var fr = F1(), eo, Xh, xg = (Xh = class {
|
|
|
63294
63308
|
case "fetch":
|
|
63295
63309
|
return {
|
|
63296
63310
|
...p,
|
|
63297
|
-
...
|
|
63311
|
+
...Q1(p.data, this.options),
|
|
63298
63312
|
fetchMeta: h.meta ?? null
|
|
63299
63313
|
};
|
|
63300
63314
|
case "success":
|
|
@@ -63342,7 +63356,7 @@ var fr = F1(), eo, Xh, xg = (Xh = class {
|
|
|
63342
63356
|
}), fe(this, tn).notify({ query: this, type: "updated", action: h });
|
|
63343
63357
|
});
|
|
63344
63358
|
}, eg);
|
|
63345
|
-
function
|
|
63359
|
+
function Q1(d, h) {
|
|
63346
63360
|
return {
|
|
63347
63361
|
fetchFailureCount: 0,
|
|
63348
63362
|
fetchFailureReason: null,
|
|
@@ -63353,7 +63367,7 @@ function B1(d, h) {
|
|
|
63353
63367
|
}
|
|
63354
63368
|
};
|
|
63355
63369
|
}
|
|
63356
|
-
function
|
|
63370
|
+
function U1(d) {
|
|
63357
63371
|
const h = typeof d.initialData == "function" ? d.initialData() : d.initialData, f = h !== void 0, p = f ? typeof d.initialDataUpdatedAt == "function" ? d.initialDataUpdatedAt() : d.initialDataUpdatedAt : 0;
|
|
63358
63372
|
return {
|
|
63359
63373
|
data: h,
|
|
@@ -63370,7 +63384,7 @@ function H1(d) {
|
|
|
63370
63384
|
fetchStatus: "idle"
|
|
63371
63385
|
};
|
|
63372
63386
|
}
|
|
63373
|
-
var jn, tg,
|
|
63387
|
+
var jn, tg, z1 = (tg = class extends ia {
|
|
63374
63388
|
constructor(h = {}) {
|
|
63375
63389
|
super();
|
|
63376
63390
|
ct(this, jn);
|
|
@@ -63379,7 +63393,7 @@ var jn, tg, Q1 = (tg = class extends ia {
|
|
|
63379
63393
|
build(h, f, p) {
|
|
63380
63394
|
const g = f.queryKey, C = f.queryHash ?? of(g, f);
|
|
63381
63395
|
let x = this.get(C);
|
|
63382
|
-
return x || (x = new
|
|
63396
|
+
return x || (x = new H1({
|
|
63383
63397
|
cache: this,
|
|
63384
63398
|
queryKey: g,
|
|
63385
63399
|
queryHash: C,
|
|
@@ -63442,7 +63456,7 @@ var jn, tg, Q1 = (tg = class extends ia {
|
|
|
63442
63456
|
});
|
|
63443
63457
|
});
|
|
63444
63458
|
}
|
|
63445
|
-
}, jn = new WeakMap(), tg), En, Or, ro, Vn, li, rg,
|
|
63459
|
+
}, jn = new WeakMap(), tg), En, Or, ro, Vn, li, rg, W1 = (rg = class extends xg {
|
|
63446
63460
|
constructor(h) {
|
|
63447
63461
|
super();
|
|
63448
63462
|
ct(this, Vn);
|
|
@@ -63639,7 +63653,7 @@ function wg() {
|
|
|
63639
63653
|
submittedAt: 0
|
|
63640
63654
|
};
|
|
63641
63655
|
}
|
|
63642
|
-
var $r, ra, ng,
|
|
63656
|
+
var $r, ra, ng, $1 = (ng = class extends ia {
|
|
63643
63657
|
constructor(h = {}) {
|
|
63644
63658
|
super();
|
|
63645
63659
|
ct(this, $r);
|
|
@@ -63647,7 +63661,7 @@ var $r, ra, ng, z1 = (ng = class extends ia {
|
|
|
63647
63661
|
this.config = h, Ke(this, $r, /* @__PURE__ */ new Map()), Ke(this, ra, Date.now());
|
|
63648
63662
|
}
|
|
63649
63663
|
build(h, f, p) {
|
|
63650
|
-
const g = new
|
|
63664
|
+
const g = new W1({
|
|
63651
63665
|
mutationCache: this,
|
|
63652
63666
|
mutationId: ++al(this, ra)._,
|
|
63653
63667
|
options: h.defaultMutationOptions(f),
|
|
@@ -63746,14 +63760,14 @@ function Qd(d) {
|
|
|
63746
63760
|
P(B);
|
|
63747
63761
|
const $ = await A(
|
|
63748
63762
|
B
|
|
63749
|
-
), { maxPages: Q } = h.options, H = Y ?
|
|
63763
|
+
), { maxPages: Q } = h.options, H = Y ? M1 : k1;
|
|
63750
63764
|
return {
|
|
63751
63765
|
pages: H(F.pages, $, Q),
|
|
63752
63766
|
pageParams: H(F.pageParams, K, Q)
|
|
63753
63767
|
};
|
|
63754
63768
|
};
|
|
63755
63769
|
if (g && C.length) {
|
|
63756
|
-
const F = g === "backward", K = F ?
|
|
63770
|
+
const F = g === "backward", K = F ? G1 : Ud, Y = {
|
|
63757
63771
|
pages: C,
|
|
63758
63772
|
pageParams: x
|
|
63759
63773
|
}, B = K(p, Y);
|
|
@@ -63794,11 +63808,11 @@ function Ud(d, { pages: h, pageParams: f }) {
|
|
|
63794
63808
|
f
|
|
63795
63809
|
) : void 0;
|
|
63796
63810
|
}
|
|
63797
|
-
function
|
|
63811
|
+
function G1(d, { pages: h, pageParams: f }) {
|
|
63798
63812
|
var p;
|
|
63799
63813
|
return h.length > 0 ? (p = d.getPreviousPageParam) == null ? void 0 : p.call(d, h[0], h, f[0], f) : void 0;
|
|
63800
63814
|
}
|
|
63801
|
-
var Ut, hi, gi, zo, Wo, mi, $o, Go, ig,
|
|
63815
|
+
var Ut, hi, gi, zo, Wo, mi, $o, Go, ig, Z1 = (ig = class {
|
|
63802
63816
|
constructor(d = {}) {
|
|
63803
63817
|
ct(this, Ut);
|
|
63804
63818
|
ct(this, hi);
|
|
@@ -63808,7 +63822,7 @@ var Ut, hi, gi, zo, Wo, mi, $o, Go, ig, $1 = (ig = class {
|
|
|
63808
63822
|
ct(this, mi);
|
|
63809
63823
|
ct(this, $o);
|
|
63810
63824
|
ct(this, Go);
|
|
63811
|
-
Ke(this, Ut, d.queryCache || new
|
|
63825
|
+
Ke(this, Ut, d.queryCache || new z1()), Ke(this, hi, d.mutationCache || new $1()), Ke(this, gi, d.defaultOptions || {}), Ke(this, zo, /* @__PURE__ */ new Map()), Ke(this, Wo, /* @__PURE__ */ new Map()), Ke(this, mi, 0);
|
|
63812
63826
|
}
|
|
63813
63827
|
mount() {
|
|
63814
63828
|
al(this, mi)._++, fe(this, mi) === 1 && (Ke(this, $o, yg.subscribe(async (d) => {
|
|
@@ -63850,7 +63864,7 @@ var Ut, hi, gi, zo, Wo, mi, $o, Go, ig, $1 = (ig = class {
|
|
|
63850
63864
|
setQueryData(d, h, f) {
|
|
63851
63865
|
const p = this.defaultQueryOptions({ queryKey: d }), g = fe(this, Ut).get(
|
|
63852
63866
|
p.queryHash
|
|
63853
|
-
), C = g == null ? void 0 : g.state.data, x =
|
|
63867
|
+
), C = g == null ? void 0 : g.state.data, x = O1(h, C);
|
|
63854
63868
|
if (x !== void 0)
|
|
63855
63869
|
return fe(this, Ut).build(this, p).setData(x, { ...f, manual: !0 });
|
|
63856
63870
|
}
|
|
@@ -64001,7 +64015,7 @@ var Ut, hi, gi, zo, Wo, mi, $o, Go, ig, $1 = (ig = class {
|
|
|
64001
64015
|
clear() {
|
|
64002
64016
|
fe(this, Ut).clear(), fe(this, hi).clear();
|
|
64003
64017
|
}
|
|
64004
|
-
}, Ut = new WeakMap(), hi = new WeakMap(), gi = new WeakMap(), zo = new WeakMap(), Wo = new WeakMap(), mi = new WeakMap(), $o = new WeakMap(), Go = new WeakMap(), ig), yi, vi, Nr, _n, Hn, xl, Uc, og,
|
|
64018
|
+
}, Ut = new WeakMap(), hi = new WeakMap(), gi = new WeakMap(), zo = new WeakMap(), Wo = new WeakMap(), mi = new WeakMap(), $o = new WeakMap(), Go = new WeakMap(), ig), yi, vi, Nr, _n, Hn, xl, Uc, og, J1 = (og = class extends ia {
|
|
64005
64019
|
constructor(h, f) {
|
|
64006
64020
|
super();
|
|
64007
64021
|
ct(this, Hn);
|
|
@@ -64017,7 +64031,7 @@ var Ut, hi, gi, zo, Wo, mi, $o, Go, ig, $1 = (ig = class {
|
|
|
64017
64031
|
setOptions(h) {
|
|
64018
64032
|
var p;
|
|
64019
64033
|
const f = this.options;
|
|
64020
|
-
this.options = fe(this, yi).defaultMutationOptions(h),
|
|
64034
|
+
this.options = fe(this, yi).defaultMutationOptions(h), D1(this.options, f) || fe(this, yi).getMutationCache().notify({
|
|
64021
64035
|
type: "observerOptionsUpdated",
|
|
64022
64036
|
mutation: fe(this, Nr),
|
|
64023
64037
|
observer: this
|
|
@@ -64072,25 +64086,25 @@ var Ut, hi, gi, zo, Wo, mi, $o, Go, ig, $1 = (ig = class {
|
|
|
64072
64086
|
});
|
|
64073
64087
|
}, og), Pg = fi.createContext(
|
|
64074
64088
|
void 0
|
|
64075
|
-
),
|
|
64089
|
+
), K1 = (d) => {
|
|
64076
64090
|
const h = fi.useContext(Pg);
|
|
64077
64091
|
if (!h)
|
|
64078
64092
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
64079
64093
|
return h;
|
|
64080
|
-
},
|
|
64094
|
+
}, Y1 = ({
|
|
64081
64095
|
client: d,
|
|
64082
64096
|
children: h
|
|
64083
64097
|
}) => (fi.useEffect(() => (d.mount(), () => {
|
|
64084
64098
|
d.unmount();
|
|
64085
64099
|
}), [d]), /* @__PURE__ */ Z.jsx(Pg.Provider, { value: d, children: h }));
|
|
64086
|
-
function
|
|
64100
|
+
function X1(d, h) {
|
|
64087
64101
|
return typeof d == "function" ? d(...h) : !!d;
|
|
64088
64102
|
}
|
|
64089
|
-
function
|
|
64103
|
+
function eC() {
|
|
64090
64104
|
}
|
|
64091
|
-
function
|
|
64092
|
-
const f =
|
|
64093
|
-
() => new
|
|
64105
|
+
function tC(d, h) {
|
|
64106
|
+
const f = K1(), [p] = fi.useState(
|
|
64107
|
+
() => new J1(
|
|
64094
64108
|
f,
|
|
64095
64109
|
d
|
|
64096
64110
|
)
|
|
@@ -64107,40 +64121,40 @@ function X1(d, h) {
|
|
|
64107
64121
|
() => p.getCurrentResult()
|
|
64108
64122
|
), C = fi.useCallback(
|
|
64109
64123
|
(x, w) => {
|
|
64110
|
-
p.mutate(x, w).catch(
|
|
64124
|
+
p.mutate(x, w).catch(eC);
|
|
64111
64125
|
},
|
|
64112
64126
|
[p]
|
|
64113
64127
|
);
|
|
64114
|
-
if (g.error &&
|
|
64128
|
+
if (g.error && X1(p.options.throwOnError, [g.error]))
|
|
64115
64129
|
throw g.error;
|
|
64116
64130
|
return { ...g, mutate: C, mutateAsync: g.mutate };
|
|
64117
64131
|
}
|
|
64118
64132
|
const ur = [];
|
|
64119
64133
|
for (let d = 0; d < 256; ++d)
|
|
64120
64134
|
ur.push((d + 256).toString(16).slice(1));
|
|
64121
|
-
function
|
|
64135
|
+
function rC(d, h = 0) {
|
|
64122
64136
|
return (ur[d[h + 0]] + ur[d[h + 1]] + ur[d[h + 2]] + ur[d[h + 3]] + "-" + ur[d[h + 4]] + ur[d[h + 5]] + "-" + ur[d[h + 6]] + ur[d[h + 7]] + "-" + ur[d[h + 8]] + ur[d[h + 9]] + "-" + ur[d[h + 10]] + ur[d[h + 11]] + ur[d[h + 12]] + ur[d[h + 13]] + ur[d[h + 14]] + ur[d[h + 15]]).toLowerCase();
|
|
64123
64137
|
}
|
|
64124
64138
|
let Cc;
|
|
64125
|
-
const
|
|
64126
|
-
function
|
|
64139
|
+
const nC = new Uint8Array(16);
|
|
64140
|
+
function iC() {
|
|
64127
64141
|
if (!Cc) {
|
|
64128
64142
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
64129
64143
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
64130
64144
|
Cc = crypto.getRandomValues.bind(crypto);
|
|
64131
64145
|
}
|
|
64132
|
-
return Cc(
|
|
64146
|
+
return Cc(nC);
|
|
64133
64147
|
}
|
|
64134
|
-
const
|
|
64135
|
-
function
|
|
64148
|
+
const oC = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), zd = { randomUUID: oC };
|
|
64149
|
+
function sC(d, h, f) {
|
|
64136
64150
|
if (zd.randomUUID && !h && !d)
|
|
64137
64151
|
return zd.randomUUID();
|
|
64138
64152
|
d = d || {};
|
|
64139
|
-
const p = d.random || (d.rng ||
|
|
64140
|
-
return p[6] = p[6] & 15 | 64, p[8] = p[8] & 63 | 128,
|
|
64153
|
+
const p = d.random || (d.rng || iC)();
|
|
64154
|
+
return p[6] = p[6] & 15 | 64, p[8] = p[8] & 63 | 128, rC(p);
|
|
64141
64155
|
}
|
|
64142
64156
|
const Wd = "/backend";
|
|
64143
|
-
async function
|
|
64157
|
+
async function aC(d, h) {
|
|
64144
64158
|
return h instanceof FormData ? await fetch(`${Wd}${d}`, {
|
|
64145
64159
|
method: "POST",
|
|
64146
64160
|
body: h
|
|
@@ -64150,7 +64164,7 @@ async function oC(d, h) {
|
|
|
64150
64164
|
body: JSON.stringify(h)
|
|
64151
64165
|
});
|
|
64152
64166
|
}
|
|
64153
|
-
const Gs = 15, zc = 30, Wc = 19,
|
|
64167
|
+
const Gs = 15, zc = 30, Wc = 19, lC = 29, Al = 256, sf = Al + 1 + lC, $d = 2 * sf + 1, Fs = 256, uC = 7, Gd = 16, Zd = 17, Jd = 18, xc = 8 * 2, Ll = -1, cC = 1, ul = 2, fC = 0, Mo = 0, Kd = 1, pC = 3, Mr = 4, hn = 0, Sg = 1, cl = 2, yn = -2, dC = -3, Lo = -5;
|
|
64154
64168
|
function ql(d) {
|
|
64155
64169
|
return Bl(d.map(([h, f]) => new Array(h).fill(f, 0, h)));
|
|
64156
64170
|
}
|
|
@@ -64304,7 +64318,7 @@ function cr(d, h, f, p, g) {
|
|
|
64304
64318
|
const C = this;
|
|
64305
64319
|
C.static_tree = d, C.extra_bits = h, C.extra_base = f, C.elems = p, C.max_length = g;
|
|
64306
64320
|
}
|
|
64307
|
-
const
|
|
64321
|
+
const hC = [
|
|
64308
64322
|
12,
|
|
64309
64323
|
140,
|
|
64310
64324
|
76,
|
|
@@ -64593,14 +64607,14 @@ const pC = [
|
|
|
64593
64607
|
163,
|
|
64594
64608
|
99,
|
|
64595
64609
|
227
|
|
64596
|
-
],
|
|
64597
|
-
cr.static_ltree = Bl(
|
|
64598
|
-
const
|
|
64599
|
-
cr.static_dtree = Bl(
|
|
64610
|
+
], gC = ql([[144, 8], [112, 9], [24, 7], [8, 8]]);
|
|
64611
|
+
cr.static_ltree = Bl(hC.map((d, h) => [d, gC[h]]));
|
|
64612
|
+
const mC = [0, 16, 8, 24, 4, 20, 12, 28, 2, 18, 10, 26, 6, 22, 14, 30, 1, 17, 9, 25, 5, 21, 13, 29, 3, 19, 11, 27, 7, 23], yC = ql([[30, 5]]);
|
|
64613
|
+
cr.static_dtree = Bl(mC.map((d, h) => [d, yC[h]]));
|
|
64600
64614
|
cr.static_l_desc = new cr(cr.static_ltree, Rt.extra_lbits, Al + 1, sf, Gs);
|
|
64601
64615
|
cr.static_d_desc = new cr(cr.static_dtree, Rt.extra_dbits, 0, zc, Gs);
|
|
64602
|
-
cr.static_bl_desc = new cr(null, Rt.extra_blbits, 0, Wc,
|
|
64603
|
-
const
|
|
64616
|
+
cr.static_bl_desc = new cr(null, Rt.extra_blbits, 0, Wc, uC);
|
|
64617
|
+
const vC = 9, bC = 8;
|
|
64604
64618
|
function Sn(d, h, f, p, g) {
|
|
64605
64619
|
const C = this;
|
|
64606
64620
|
C.good_length = d, C.max_lazy = h, C.nice_length = f, C.max_chain = p, C.func = g;
|
|
@@ -64637,12 +64651,12 @@ const jg = 0, wl = 1, Ji = 2, dn = [
|
|
|
64637
64651
|
"",
|
|
64638
64652
|
// Z_VERSION_ERROR (-6)
|
|
64639
64653
|
""
|
|
64640
|
-
], en = 0, pl = 1, qs = 2, dl = 3,
|
|
64654
|
+
], en = 0, pl = 1, qs = 2, dl = 3, CC = 32, wc = 42, hl = 113, Bs = 666, Pc = 8, xC = 0, Sc = 1, wC = 2, kt = 3, Pl = 258, zr = Pl + kt + 1;
|
|
64641
64655
|
function Xd(d, h, f, p) {
|
|
64642
64656
|
const g = d[h * 2], C = d[f * 2];
|
|
64643
64657
|
return g < C || g == C && p[h] <= p[f];
|
|
64644
64658
|
}
|
|
64645
|
-
function
|
|
64659
|
+
function PC() {
|
|
64646
64660
|
const d = this;
|
|
64647
64661
|
let h, f, p, g, C, x, w, V, b, S, R, L, W, q, D, P, A, M, F, K, Y, B, $, Q, H, te, ne, ae, U, re, X, k, le;
|
|
64648
64662
|
const he = new Rt(), De = new Rt(), ce = new Rt();
|
|
@@ -64754,11 +64768,11 @@ function xC() {
|
|
|
64754
64768
|
ir(), We = 8, Wt(ye), Wt(~ye), d.pending_buf.set(V.subarray(pe, pe + ye), d.pending), d.pending += ye;
|
|
64755
64769
|
}
|
|
64756
64770
|
function hr(pe, ye, ge) {
|
|
64757
|
-
st((
|
|
64771
|
+
st((xC << 1) + (ge ? 1 : 0), 3), Cr(pe, ye);
|
|
64758
64772
|
}
|
|
64759
64773
|
function nn(pe, ye, ge) {
|
|
64760
64774
|
let me, Te, Be = 0;
|
|
64761
|
-
ne > 0 ? (he.build_tree(d), De.build_tree(d), Be = tr(), me = d.opt_len + 3 + 7 >>> 3, Te = d.static_len + 3 + 7 >>> 3, Te <= me && (me = Te)) : me = Te = ye + 5, ye + 4 <= me && pe != -1 ? hr(pe, ye, ge) : Te == me ? (st((Sc << 1) + (ge ? 1 : 0), 3), Ot(cr.static_ltree, cr.static_dtree)) : (st((
|
|
64775
|
+
ne > 0 ? (he.build_tree(d), De.build_tree(d), Be = tr(), me = d.opt_len + 3 + 7 >>> 3, Te = d.static_len + 3 + 7 >>> 3, Te <= me && (me = Te)) : me = Te = ye + 5, ye + 4 <= me && pe != -1 ? hr(pe, ye, ge) : Te == me ? (st((Sc << 1) + (ge ? 1 : 0), 3), Ot(cr.static_ltree, cr.static_dtree)) : (st((wC << 1) + (ge ? 1 : 0), 3), Gt(he.max_code + 1, De.max_code + 1, Be + 1), Ot(X, k)), ot(), ge && ir();
|
|
64762
64776
|
}
|
|
64763
64777
|
function Bt(pe) {
|
|
64764
64778
|
nn(A >= 0 ? A : -1, Y - A, pe), A = Y, h.flush_pending();
|
|
@@ -64856,7 +64870,7 @@ function xC() {
|
|
|
64856
64870
|
if ($ === 0)
|
|
64857
64871
|
break;
|
|
64858
64872
|
}
|
|
64859
|
-
if ($ >= kt && (L = (L << P ^ V[Y + (kt - 1)] & 255) & D, ye = R[L] & 65535, S[Y & w] = R[L], R[L] = Y), Q = M, F = B, M = kt - 1, ye !== 0 && Q < te && (Y - ye & 65535) <= C - zr && (ae != ul && (M = Zr(ye)), M <= 5 && (ae ==
|
|
64873
|
+
if ($ >= kt && (L = (L << P ^ V[Y + (kt - 1)] & 255) & D, ye = R[L] & 65535, S[Y & w] = R[L], R[L] = Y), Q = M, F = B, M = kt - 1, ye !== 0 && Q < te && (Y - ye & 65535) <= C - zr && (ae != ul && (M = Zr(ye)), M <= 5 && (ae == cC || M == kt && Y - B > 4096) && (M = kt - 1)), Q >= kt && M <= Q) {
|
|
64860
64874
|
me = Y + $ - kt, ge = nr(Y - 1 - F, Q - kt), $ -= Q - 1, Q -= 2;
|
|
64861
64875
|
do
|
|
64862
64876
|
++Y <= me && (L = (L << P ^ V[Y + (kt - 1)] & 255) & D, ye = R[L] & 65535, S[Y & w] = R[L], R[L] = Y);
|
|
@@ -64875,9 +64889,9 @@ function xC() {
|
|
|
64875
64889
|
return pe.total_in = pe.total_out = 0, pe.msg = null, d.pending = 0, d.pending_out = 0, f = hl, g = Mo, Ge(), qe(), hn;
|
|
64876
64890
|
}
|
|
64877
64891
|
d.deflateInit = function(pe, ye, ge, me, Te, Be) {
|
|
64878
|
-
return me || (me = Pc), Te || (Te =
|
|
64892
|
+
return me || (me = Pc), Te || (Te = bC), Be || (Be = fC), pe.msg = null, ye == Ll && (ye = 6), Te < 1 || Te > vC || me != Pc || ge < 9 || ge > 15 || ye < 0 || ye > 9 || Be < 0 || Be > ul ? yn : (pe.dstate = d, x = ge, C = 1 << x, w = C - 1, q = Te + 7, W = 1 << q, D = W - 1, P = Math.floor((q + kt - 1) / kt), V = new Uint8Array(C * 2), S = [], R = [], Le = 1 << Te + 6, d.pending_buf = new Uint8Array(Le * 4), p = Le * 4, d.dist_buf = new Uint16Array(Le), d.lc_buf = new Uint8Array(Le), ne = ye, ae = Be, Dn(pe));
|
|
64879
64893
|
}, d.deflateEnd = function() {
|
|
64880
|
-
return f != wc && f != hl && f != Bs ? yn : (d.lc_buf = null, d.dist_buf = null, d.pending_buf = null, R = null, S = null, V = null, d.dstate = null, f == hl ?
|
|
64894
|
+
return f != wc && f != hl && f != Bs ? yn : (d.lc_buf = null, d.dist_buf = null, d.pending_buf = null, R = null, S = null, V = null, d.dstate = null, f == hl ? dC : hn);
|
|
64881
64895
|
}, d.deflateParams = function(pe, ye, ge) {
|
|
64882
64896
|
let me = hn;
|
|
64883
64897
|
return ye == Ll && (ye = 6), ye < 0 || ye > 9 || ge < 0 || ge > ul ? yn : (dn[ne].func != dn[ye].func && pe.total_in !== 0 && (me = pe.deflate(Kd)), ne != ye && (ne = ye, te = dn[ne].max_lazy, U = dn[ne].good_length, re = dn[ne].nice_length, H = dn[ne].max_chain), ae = ge, me);
|
|
@@ -64898,7 +64912,7 @@ function xC() {
|
|
|
64898
64912
|
return pe.msg = fl[cl - yn], yn;
|
|
64899
64913
|
if (pe.avail_out === 0)
|
|
64900
64914
|
return pe.msg = fl[cl - Lo], Lo;
|
|
64901
|
-
if (h = pe, Be = g, g = ye, f == wc && (me = Pc + (x - 8 << 4) << 8, Te = (ne - 1 & 255) >> 1, Te > 3 && (Te = 3), me |= Te << 6, Y !== 0 && (me |=
|
|
64915
|
+
if (h = pe, Be = g, g = ye, f == wc && (me = Pc + (x - 8 << 4) << 8, Te = (ne - 1 & 255) >> 1, Te > 3 && (Te = 3), me |= Te << 6, Y !== 0 && (me |= CC), me += 31 - me % 31, f = hl, dr(me)), d.pending !== 0) {
|
|
64902
64916
|
if (h.flush_pending(), h.avail_out === 0)
|
|
64903
64917
|
return g = -1, hn;
|
|
64904
64918
|
} else if (h.avail_in === 0 && ye <= Be && ye != Mr)
|
|
@@ -64922,7 +64936,7 @@ function xC() {
|
|
|
64922
64936
|
if (Ye == pl) {
|
|
64923
64937
|
if (ye == Kd)
|
|
64924
64938
|
rr();
|
|
64925
|
-
else if (hr(0, 0, !1), ye ==
|
|
64939
|
+
else if (hr(0, 0, !1), ye == pC)
|
|
64926
64940
|
for (ge = 0; ge < W; ge++)
|
|
64927
64941
|
R[ge] = 0;
|
|
64928
64942
|
if (h.flush_pending(), h.avail_out === 0)
|
|
@@ -64939,7 +64953,7 @@ function Eg() {
|
|
|
64939
64953
|
Eg.prototype = {
|
|
64940
64954
|
deflateInit(d, h) {
|
|
64941
64955
|
const f = this;
|
|
64942
|
-
return f.dstate = new
|
|
64956
|
+
return f.dstate = new PC(), h || (h = Gs), f.dstate.deflateInit(f, d, h);
|
|
64943
64957
|
},
|
|
64944
64958
|
deflate(d) {
|
|
64945
64959
|
const h = this;
|
|
@@ -64980,8 +64994,8 @@ Eg.prototype = {
|
|
|
64980
64994
|
h > d.avail_out && (h = d.avail_out), h !== 0 && (d.next_out.set(d.dstate.pending_buf.subarray(d.dstate.pending_out, d.dstate.pending_out + h), d.next_out_index), d.next_out_index += h, d.dstate.pending_out += h, d.total_out += h, d.avail_out -= h, d.dstate.pending -= h, d.dstate.pending === 0 && (d.dstate.pending_out = 0));
|
|
64981
64995
|
}
|
|
64982
64996
|
};
|
|
64983
|
-
function
|
|
64984
|
-
const h = this, f = new Eg(), p =
|
|
64997
|
+
function SC(d) {
|
|
64998
|
+
const h = this, f = new Eg(), p = jC(d && d.chunkSize ? d.chunkSize : 64 * 1024), g = Mo, C = new Uint8Array(p);
|
|
64985
64999
|
let x = d ? d.level : Ll;
|
|
64986
65000
|
typeof x > "u" && (x = Ll), f.deflateInit(x), f.next_out = C, h.append = function(w, V) {
|
|
64987
65001
|
let b, S, R = 0, L = 0, W = 0;
|
|
@@ -65010,10 +65024,10 @@ function wC(d) {
|
|
|
65010
65024
|
}), V;
|
|
65011
65025
|
};
|
|
65012
65026
|
}
|
|
65013
|
-
function
|
|
65027
|
+
function jC(d) {
|
|
65014
65028
|
return d + 5 * (Math.floor(d / 16383) + 1);
|
|
65015
65029
|
}
|
|
65016
|
-
const
|
|
65030
|
+
const EC = 15, yt = 0, qn = 1, VC = 2, _r = -2, Dt = -3, eh = -4, Bn = -5, Wr = [
|
|
65017
65031
|
0,
|
|
65018
65032
|
1,
|
|
65019
65033
|
3,
|
|
@@ -65031,7 +65045,7 @@ const SC = 15, yt = 0, qn = 1, jC = 2, _r = -2, Dt = -3, eh = -4, Bn = -5, Wr =
|
|
|
65031
65045
|
16383,
|
|
65032
65046
|
32767,
|
|
65033
65047
|
65535
|
|
65034
|
-
], Vg = 1440,
|
|
65048
|
+
], Vg = 1440, OC = 0, TC = 4, IC = 9, RC = 5, DC = [
|
|
65035
65049
|
96,
|
|
65036
65050
|
7,
|
|
65037
65051
|
256,
|
|
@@ -66568,7 +66582,7 @@ const SC = 15, yt = 0, qn = 1, jC = 2, _r = -2, Dt = -3, eh = -4, Bn = -5, Wr =
|
|
|
66568
66582
|
0,
|
|
66569
66583
|
9,
|
|
66570
66584
|
255
|
|
66571
|
-
],
|
|
66585
|
+
], AC = [
|
|
66572
66586
|
80,
|
|
66573
66587
|
5,
|
|
66574
66588
|
1,
|
|
@@ -66665,7 +66679,7 @@ const SC = 15, yt = 0, qn = 1, jC = 2, _r = -2, Dt = -3, eh = -4, Bn = -5, Wr =
|
|
|
66665
66679
|
192,
|
|
66666
66680
|
5,
|
|
66667
66681
|
24577
|
|
66668
|
-
],
|
|
66682
|
+
], LC = [
|
|
66669
66683
|
// Copy lengths for literal codes 257..285
|
|
66670
66684
|
3,
|
|
66671
66685
|
4,
|
|
@@ -66698,7 +66712,7 @@ const SC = 15, yt = 0, qn = 1, jC = 2, _r = -2, Dt = -3, eh = -4, Bn = -5, Wr =
|
|
|
66698
66712
|
258,
|
|
66699
66713
|
0,
|
|
66700
66714
|
0
|
|
66701
|
-
],
|
|
66715
|
+
], kC = [
|
|
66702
66716
|
// Extra bits for literal codes 257..285
|
|
66703
66717
|
0,
|
|
66704
66718
|
0,
|
|
@@ -66732,7 +66746,7 @@ const SC = 15, yt = 0, qn = 1, jC = 2, _r = -2, Dt = -3, eh = -4, Bn = -5, Wr =
|
|
|
66732
66746
|
112,
|
|
66733
66747
|
112
|
|
66734
66748
|
// 112==invalid
|
|
66735
|
-
],
|
|
66749
|
+
], MC = [
|
|
66736
66750
|
// Copy offsets for distance codes 0..29
|
|
66737
66751
|
1,
|
|
66738
66752
|
2,
|
|
@@ -66764,7 +66778,7 @@ const SC = 15, yt = 0, qn = 1, jC = 2, _r = -2, Dt = -3, eh = -4, Bn = -5, Wr =
|
|
|
66764
66778
|
12289,
|
|
66765
66779
|
16385,
|
|
66766
66780
|
24577
|
|
66767
|
-
],
|
|
66781
|
+
], NC = [
|
|
66768
66782
|
// Extra bits for distance codes
|
|
66769
66783
|
0,
|
|
66770
66784
|
0,
|
|
@@ -66864,14 +66878,14 @@ function $c() {
|
|
|
66864
66878
|
return V(19), h[0] = 0, q = w(b, 0, 19, 19, null, null, R, S, L, h, f), q == Dt ? W.msg = "oversubscribed dynamic bit lengths tree" : (q == Bn || S[0] === 0) && (W.msg = "incomplete dynamic bit lengths tree", q = Dt), q;
|
|
66865
66879
|
}, d.inflate_trees_dynamic = function(b, S, R, L, W, q, D, P, A) {
|
|
66866
66880
|
let M;
|
|
66867
|
-
return V(288), h[0] = 0, M = w(R, 0, b, 257,
|
|
66881
|
+
return V(288), h[0] = 0, M = w(R, 0, b, 257, LC, kC, q, L, P, h, f), M != yt || L[0] === 0 ? (M == Dt ? A.msg = "oversubscribed literal/length tree" : M != eh && (A.msg = "incomplete literal/length tree", M = Dt), M) : (V(288), M = w(R, b, S, 0, MC, NC, D, W, P, h, f), M != yt || W[0] === 0 && b > 257 ? (M == Dt ? A.msg = "oversubscribed distance tree" : M == Bn ? (A.msg = "incomplete distance tree", M = Dt) : M != eh && (A.msg = "empty distance tree with lengths", M = Dt), M) : yt);
|
|
66868
66882
|
};
|
|
66869
66883
|
}
|
|
66870
66884
|
$c.inflate_trees_fixed = function(d, h, f, p) {
|
|
66871
|
-
return d[0] =
|
|
66885
|
+
return d[0] = IC, h[0] = RC, f[0] = DC, p[0] = AC, yt;
|
|
66872
66886
|
};
|
|
66873
66887
|
const gl = 0, th = 1, rh = 2, nh = 3, ih = 4, oh = 5, sh = 6, jc = 7, ah = 8, ml = 9;
|
|
66874
|
-
function
|
|
66888
|
+
function _C() {
|
|
66875
66889
|
const d = this;
|
|
66876
66890
|
let h, f = 0, p, g = 0, C = 0, x = 0, w = 0, V = 0, b = 0, S = 0, R, L = 0, W, q = 0;
|
|
66877
66891
|
function D(P, A, M, F, K, Y, B, $) {
|
|
@@ -67063,10 +67077,10 @@ const lh = [
|
|
|
67063
67077
|
1,
|
|
67064
67078
|
15
|
|
67065
67079
|
], ko = 0, Ec = 1, uh = 2, ch = 3, fh = 4, ph = 5, yl = 6, vl = 7, dh = 8, Zi = 9;
|
|
67066
|
-
function
|
|
67080
|
+
function FC(d, h) {
|
|
67067
67081
|
const f = this;
|
|
67068
67082
|
let p = ko, g = 0, C = 0, x = 0, w;
|
|
67069
|
-
const V = [0], b = [0], S = new
|
|
67083
|
+
const V = [0], b = [0], S = new _C();
|
|
67070
67084
|
let R = 0, L = new Int32Array(Vg * 3);
|
|
67071
67085
|
const W = 0, q = new $c();
|
|
67072
67086
|
f.bitk = 0, f.bitb = 0, f.win = new Uint8Array(h), f.end = h, f.read = 0, f.write = 0, f.reset = function(D, P) {
|
|
@@ -67220,8 +67234,8 @@ function NC(d, h) {
|
|
|
67220
67234
|
return p == Ec ? 1 : 0;
|
|
67221
67235
|
};
|
|
67222
67236
|
}
|
|
67223
|
-
const
|
|
67224
|
-
function
|
|
67237
|
+
const qC = 32, BC = 8, HC = 0, hh = 1, gh = 2, mh = 3, yh = 4, vh = 5, Vc = 6, Hs = 7, bh = 12, si = 13, QC = [0, 0, 255, 255];
|
|
67238
|
+
function UC() {
|
|
67225
67239
|
const d = this;
|
|
67226
67240
|
d.mode = 0, d.method = 0, d.was = [0], d.need = 0, d.marker = 0, d.wbits = 0;
|
|
67227
67241
|
function h(f) {
|
|
@@ -67230,18 +67244,18 @@ function HC() {
|
|
|
67230
67244
|
d.inflateEnd = function(f) {
|
|
67231
67245
|
return d.blocks && d.blocks.free(f), d.blocks = null, yt;
|
|
67232
67246
|
}, d.inflateInit = function(f, p) {
|
|
67233
|
-
return f.msg = null, d.blocks = null, p < 8 || p > 15 ? (d.inflateEnd(f), _r) : (d.wbits = p, f.istate.blocks = new
|
|
67247
|
+
return f.msg = null, d.blocks = null, p < 8 || p > 15 ? (d.inflateEnd(f), _r) : (d.wbits = p, f.istate.blocks = new FC(f, 1 << p), h(f), yt);
|
|
67234
67248
|
}, d.inflate = function(f, p) {
|
|
67235
67249
|
let g, C;
|
|
67236
67250
|
if (!f || !f.istate || !f.next_in)
|
|
67237
67251
|
return _r;
|
|
67238
67252
|
const x = f.istate;
|
|
67239
|
-
for (p = p ==
|
|
67253
|
+
for (p = p == TC ? Bn : yt, g = Bn; ; )
|
|
67240
67254
|
switch (x.mode) {
|
|
67241
|
-
case
|
|
67255
|
+
case HC:
|
|
67242
67256
|
if (f.avail_in === 0)
|
|
67243
67257
|
return g;
|
|
67244
|
-
if (g = p, f.avail_in--, f.total_in++, ((x.method = f.read_byte(f.next_in_index++)) & 15) !=
|
|
67258
|
+
if (g = p, f.avail_in--, f.total_in++, ((x.method = f.read_byte(f.next_in_index++)) & 15) != BC) {
|
|
67245
67259
|
x.mode = si, f.msg = "unknown compression method", x.marker = 5;
|
|
67246
67260
|
break;
|
|
67247
67261
|
}
|
|
@@ -67257,7 +67271,7 @@ function HC() {
|
|
|
67257
67271
|
x.mode = si, f.msg = "incorrect header check", x.marker = 5;
|
|
67258
67272
|
break;
|
|
67259
67273
|
}
|
|
67260
|
-
if (!(C &
|
|
67274
|
+
if (!(C & qC)) {
|
|
67261
67275
|
x.mode = Hs;
|
|
67262
67276
|
break;
|
|
67263
67277
|
}
|
|
@@ -67275,7 +67289,7 @@ function HC() {
|
|
|
67275
67289
|
return g;
|
|
67276
67290
|
g = p, f.avail_in--, f.total_in++, x.need += (f.read_byte(f.next_in_index++) & 255) << 8 & 65280, x.mode = vh;
|
|
67277
67291
|
case vh:
|
|
67278
|
-
return f.avail_in === 0 ? g : (g = p, f.avail_in--, f.total_in++, x.need += f.read_byte(f.next_in_index++) & 255, x.mode = Vc,
|
|
67292
|
+
return f.avail_in === 0 ? g : (g = p, f.avail_in--, f.total_in++, x.need += f.read_byte(f.next_in_index++) & 255, x.mode = Vc, VC);
|
|
67279
67293
|
case Vc:
|
|
67280
67294
|
return x.mode = si, f.msg = "need dictionary", x.marker = 0, _r;
|
|
67281
67295
|
case Hs:
|
|
@@ -67307,7 +67321,7 @@ function HC() {
|
|
|
67307
67321
|
if (V.mode != si && (V.mode = si, V.marker = 0), (p = f.avail_in) === 0)
|
|
67308
67322
|
return Bn;
|
|
67309
67323
|
for (g = f.next_in_index, C = V.marker; p !== 0 && C < 4; )
|
|
67310
|
-
f.read_byte(g) ==
|
|
67324
|
+
f.read_byte(g) == QC[C] ? C++ : f.read_byte(g) !== 0 ? C = 0 : C = 4 - C, g++, p--;
|
|
67311
67325
|
return f.total_in += g - f.next_in_index, f.next_in_index = g, f.avail_in = p, V.marker = C, C != 4 ? Dt : (x = f.total_in, w = f.total_out, h(f), f.total_in = x, f.total_out = w, V.mode = Hs, yt);
|
|
67312
67326
|
}, d.inflateSyncPoint = function(f) {
|
|
67313
67327
|
return !f || !f.istate || !f.istate.blocks ? _r : f.istate.blocks.sync_point();
|
|
@@ -67318,7 +67332,7 @@ function Og() {
|
|
|
67318
67332
|
Og.prototype = {
|
|
67319
67333
|
inflateInit(d) {
|
|
67320
67334
|
const h = this;
|
|
67321
|
-
return h.istate = new
|
|
67335
|
+
return h.istate = new UC(), d || (d = EC), h.istate.inflateInit(h, d);
|
|
67322
67336
|
},
|
|
67323
67337
|
inflate(d) {
|
|
67324
67338
|
const h = this;
|
|
@@ -67346,8 +67360,8 @@ Og.prototype = {
|
|
|
67346
67360
|
return this.next_in.subarray(d, d + h);
|
|
67347
67361
|
}
|
|
67348
67362
|
};
|
|
67349
|
-
function
|
|
67350
|
-
const h = this, f = new Og(), p = d && d.chunkSize ? Math.floor(d.chunkSize * 2) : 128 * 1024, g =
|
|
67363
|
+
function zC(d) {
|
|
67364
|
+
const h = this, f = new Og(), p = d && d.chunkSize ? Math.floor(d.chunkSize * 2) : 128 * 1024, g = OC, C = new Uint8Array(p);
|
|
67351
67365
|
let x = !1;
|
|
67352
67366
|
f.inflateInit(), f.next_out = C, h.append = function(w, V) {
|
|
67353
67367
|
const b = [];
|
|
@@ -67372,7 +67386,7 @@ function QC(d) {
|
|
|
67372
67386
|
f.inflateEnd();
|
|
67373
67387
|
};
|
|
67374
67388
|
}
|
|
67375
|
-
const Br = 4294967295, Fr = 65535, Ch = 8,
|
|
67389
|
+
const Br = 4294967295, Fr = 65535, Ch = 8, WC = 0, $C = 99, GC = 67324752, Tg = 134695760, ZC = Tg, JC = 33639248, KC = 101010256, YC = 101075792, XC = 117853008, Gc = 22, Ig = 20, Rg = 56, e2 = Gc + Ig + Rg, t2 = 1, r2 = 39169, n2 = 10, i2 = 1, Dg = 21589, o2 = 6534, s2 = 1, a2 = 8, l2 = 2048, u2 = 16, c2 = 20, xh = 45, wh = 51, Oc = "/", Ph = new Date(2107, 11, 31), Sh = new Date(1980, 0, 1), At = void 0, Ci = "undefined", oa = "function";
|
|
67376
67390
|
class jh {
|
|
67377
67391
|
constructor(h) {
|
|
67378
67392
|
return class extends TransformStream {
|
|
@@ -67391,13 +67405,13 @@ class jh {
|
|
|
67391
67405
|
};
|
|
67392
67406
|
}
|
|
67393
67407
|
}
|
|
67394
|
-
const
|
|
67408
|
+
const f2 = 64;
|
|
67395
67409
|
let Ag = 2;
|
|
67396
67410
|
try {
|
|
67397
67411
|
typeof navigator != Ci && navigator.hardwareConcurrency && (Ag = navigator.hardwareConcurrency);
|
|
67398
67412
|
} catch {
|
|
67399
67413
|
}
|
|
67400
|
-
const
|
|
67414
|
+
const p2 = {
|
|
67401
67415
|
chunkSize: 512 * 1024,
|
|
67402
67416
|
maxWorkers: Ag,
|
|
67403
67417
|
terminateWorkerTimeout: 5e3,
|
|
@@ -67406,12 +67420,12 @@ const c2 = {
|
|
|
67406
67420
|
workerScripts: At,
|
|
67407
67421
|
CompressionStreamNative: typeof CompressionStream != Ci && CompressionStream,
|
|
67408
67422
|
DecompressionStreamNative: typeof DecompressionStream != Ci && DecompressionStream
|
|
67409
|
-
}, ci = Object.assign({},
|
|
67410
|
-
function
|
|
67423
|
+
}, ci = Object.assign({}, p2);
|
|
67424
|
+
function d2() {
|
|
67411
67425
|
return ci;
|
|
67412
67426
|
}
|
|
67413
|
-
function
|
|
67414
|
-
return Math.max(d.chunkSize,
|
|
67427
|
+
function h2(d) {
|
|
67428
|
+
return Math.max(d.chunkSize, f2);
|
|
67415
67429
|
}
|
|
67416
67430
|
function af(d) {
|
|
67417
67431
|
const {
|
|
@@ -69340,7 +69354,7 @@ Ng.aes = class {
|
|
|
69340
69354
|
return g;
|
|
69341
69355
|
}
|
|
69342
69356
|
};
|
|
69343
|
-
const
|
|
69357
|
+
const g2 = {
|
|
69344
69358
|
/**
|
|
69345
69359
|
* Generate random words with pure js, cryptographically not as strong & safe as native implementation.
|
|
69346
69360
|
* @param {TypedArray} typedArray The array to fill.
|
|
@@ -69448,13 +69462,13 @@ so.hmacSha1 = class {
|
|
|
69448
69462
|
return this.update(d), this.digest(d);
|
|
69449
69463
|
}
|
|
69450
69464
|
};
|
|
69451
|
-
const
|
|
69465
|
+
const m2 = typeof crypto != Ci && typeof crypto.getRandomValues == oa, Fg = "Invalid password", qg = "Invalid signature", Bg = "zipjs-abort-check-password";
|
|
69452
69466
|
function Hg(d) {
|
|
69453
|
-
return
|
|
69467
|
+
return m2 ? crypto.getRandomValues(d) : g2.getRandomValues(d);
|
|
69454
69468
|
}
|
|
69455
|
-
const No = 16,
|
|
69469
|
+
const No = 16, y2 = "raw", Qg = { name: "PBKDF2" }, v2 = { name: "HMAC" }, b2 = "SHA-1", C2 = Object.assign({ hash: v2 }, Qg), Jc = Object.assign({ iterations: 1e3, hash: { name: b2 } }, Qg), x2 = ["deriveBits"], Zs = [8, 12, 16], Qs = [16, 24, 32], ui = 10, w2 = [0, 0, 0, 0], Hl = typeof crypto != Ci, sa = Hl && crypto.subtle, Ug = Hl && typeof sa != Ci, Tn = kl.bytes, P2 = Ng.aes, S2 = _g.ctrGladman, j2 = so.hmacSha1;
|
|
69456
69470
|
let Eh = Hl && Ug && typeof sa.importKey == oa, Vh = Hl && Ug && typeof sa.deriveBits == oa;
|
|
69457
|
-
class
|
|
69471
|
+
class E2 extends TransformStream {
|
|
69458
69472
|
constructor({ password: h, rawPassword: f, signed: p, encryptionStrength: g, checkPasswordOnly: C }) {
|
|
69459
69473
|
super({
|
|
69460
69474
|
start() {
|
|
@@ -69473,7 +69487,7 @@ class S2 extends TransformStream {
|
|
|
69473
69487
|
resolveReady: R,
|
|
69474
69488
|
ready: L
|
|
69475
69489
|
} = V;
|
|
69476
|
-
b ? (await
|
|
69490
|
+
b ? (await O2(V, S, b, rn(x, 0, Zs[S] + 2)), x = rn(x, Zs[S] + 2), C ? w.error(new Error(Bg)) : R()) : await L;
|
|
69477
69491
|
const W = new Uint8Array(x.length - ui - (x.length - ui) % No);
|
|
69478
69492
|
w.enqueue(zg(V, x, W, 0, ui, !0));
|
|
69479
69493
|
},
|
|
@@ -69507,7 +69521,7 @@ class S2 extends TransformStream {
|
|
|
69507
69521
|
});
|
|
69508
69522
|
}
|
|
69509
69523
|
}
|
|
69510
|
-
class
|
|
69524
|
+
class V2 extends TransformStream {
|
|
69511
69525
|
constructor({ password: h, rawPassword: f, encryptionStrength: p }) {
|
|
69512
69526
|
let g;
|
|
69513
69527
|
super({
|
|
@@ -69527,7 +69541,7 @@ class j2 extends TransformStream {
|
|
|
69527
69541
|
ready: R
|
|
69528
69542
|
} = w;
|
|
69529
69543
|
let L = new Uint8Array();
|
|
69530
|
-
V ? (L = await
|
|
69544
|
+
V ? (L = await T2(w, b, V), S()) : await R;
|
|
69531
69545
|
const W = new Uint8Array(L.length + C.length - C.length % No);
|
|
69532
69546
|
W.set(L, 0), x.enqueue(zg(w, C, W, L.length, 0));
|
|
69533
69547
|
},
|
|
@@ -69557,7 +69571,7 @@ function zg(d, h, f, p, g, C) {
|
|
|
69557
69571
|
hmac: w,
|
|
69558
69572
|
pending: V
|
|
69559
69573
|
} = d, b = h.length - g;
|
|
69560
|
-
V.length && (h = lf(V, h), f =
|
|
69574
|
+
V.length && (h = lf(V, h), f = D2(f, b - b % No));
|
|
69561
69575
|
let S;
|
|
69562
69576
|
for (S = 0; S <= b - No; S += No) {
|
|
69563
69577
|
const R = Ks(Tn, rn(h, S, S + No));
|
|
@@ -69567,29 +69581,29 @@ function zg(d, h, f, p, g, C) {
|
|
|
69567
69581
|
}
|
|
69568
69582
|
return d.pending = rn(h, S), f;
|
|
69569
69583
|
}
|
|
69570
|
-
async function
|
|
69584
|
+
async function O2(d, h, f, p) {
|
|
69571
69585
|
const g = await Wg(d, h, f, rn(p, 0, Zs[h])), C = rn(p, Zs[h]);
|
|
69572
69586
|
if (g[0] != C[0] || g[1] != C[1])
|
|
69573
69587
|
throw new Error(Fg);
|
|
69574
69588
|
}
|
|
69575
|
-
async function
|
|
69589
|
+
async function T2(d, h, f) {
|
|
69576
69590
|
const p = Hg(new Uint8Array(Zs[h])), g = await Wg(d, h, f, p);
|
|
69577
69591
|
return lf(p, g);
|
|
69578
69592
|
}
|
|
69579
69593
|
async function Wg(d, h, f, p) {
|
|
69580
69594
|
d.password = null;
|
|
69581
|
-
const g = await
|
|
69595
|
+
const g = await I2(y2, f, C2, !1, x2), C = await R2(Object.assign({ salt: p }, Jc), g, 8 * (Qs[h] * 2 + 2)), x = new Uint8Array(C), w = Ks(Tn, rn(x, 0, Qs[h])), V = Ks(Tn, rn(x, Qs[h], Qs[h] * 2)), b = rn(x, Qs[h] * 2);
|
|
69582
69596
|
return Object.assign(d, {
|
|
69583
69597
|
keys: {
|
|
69584
69598
|
key: w,
|
|
69585
69599
|
authentication: V,
|
|
69586
69600
|
passwordVerification: b
|
|
69587
69601
|
},
|
|
69588
|
-
ctr: new
|
|
69589
|
-
hmac: new
|
|
69602
|
+
ctr: new S2(new P2(w), Array.from(w2)),
|
|
69603
|
+
hmac: new j2(V)
|
|
69590
69604
|
}), b;
|
|
69591
69605
|
}
|
|
69592
|
-
async function
|
|
69606
|
+
async function I2(d, h, f, p, g) {
|
|
69593
69607
|
if (Eh)
|
|
69594
69608
|
try {
|
|
69595
69609
|
return await sa.importKey(d, h, f, p, g);
|
|
@@ -69599,7 +69613,7 @@ async function O2(d, h, f, p, g) {
|
|
|
69599
69613
|
else
|
|
69600
69614
|
return so.importKey(h);
|
|
69601
69615
|
}
|
|
69602
|
-
async function
|
|
69616
|
+
async function R2(d, h, f) {
|
|
69603
69617
|
if (Vh)
|
|
69604
69618
|
try {
|
|
69605
69619
|
return await sa.deriveBits(d, h, f);
|
|
@@ -69616,7 +69630,7 @@ function lf(d, h) {
|
|
|
69616
69630
|
let f = d;
|
|
69617
69631
|
return d.length + h.length && (f = new Uint8Array(d.length + h.length), f.set(d, 0), f.set(h, d.length)), f;
|
|
69618
69632
|
}
|
|
69619
|
-
function
|
|
69633
|
+
function D2(d, h) {
|
|
69620
69634
|
if (h && h > d.length) {
|
|
69621
69635
|
const f = d;
|
|
69622
69636
|
d = new Uint8Array(h), d.set(f, 0);
|
|
@@ -69633,7 +69647,7 @@ function Ks(d, h) {
|
|
|
69633
69647
|
return d.toBits(h);
|
|
69634
69648
|
}
|
|
69635
69649
|
const Fo = 12;
|
|
69636
|
-
class
|
|
69650
|
+
class A2 extends TransformStream {
|
|
69637
69651
|
constructor({ password: h, passwordVerification: f, checkPasswordOnly: p }) {
|
|
69638
69652
|
super({
|
|
69639
69653
|
start() {
|
|
@@ -69655,7 +69669,7 @@ class R2 extends TransformStream {
|
|
|
69655
69669
|
});
|
|
69656
69670
|
}
|
|
69657
69671
|
}
|
|
69658
|
-
class
|
|
69672
|
+
class L2 extends TransformStream {
|
|
69659
69673
|
constructor({ password: h, passwordVerification: f }) {
|
|
69660
69674
|
super({
|
|
69661
69675
|
start() {
|
|
@@ -69715,23 +69729,23 @@ function Ih(d) {
|
|
|
69715
69729
|
return d & 4294967295;
|
|
69716
69730
|
}
|
|
69717
69731
|
const Rh = "deflate-raw";
|
|
69718
|
-
class
|
|
69732
|
+
class k2 extends TransformStream {
|
|
69719
69733
|
constructor(h, { chunkSize: f, CompressionStream: p, CompressionStreamNative: g }) {
|
|
69720
69734
|
super({});
|
|
69721
69735
|
const { compressed: C, encrypted: x, useCompressionStream: w, zipCrypto: V, signed: b, level: S } = h, R = this;
|
|
69722
69736
|
let L, W, q = Kg(super.readable);
|
|
69723
|
-
(!x || V) && b && (L = new kg(), q = In(q, L)), C && (q = Xg(q, w, { level: S, chunkSize: f }, g, p)), x && (V ? q = In(q, new
|
|
69737
|
+
(!x || V) && b && (L = new kg(), q = In(q, L)), C && (q = Xg(q, w, { level: S, chunkSize: f }, g, p)), x && (V ? q = In(q, new L2(h)) : (W = new V2(h), q = In(q, W))), Yg(R, q, () => {
|
|
69724
69738
|
let D;
|
|
69725
69739
|
x && !V && (D = W.signature), (!x || V) && b && (D = new DataView(L.value.buffer).getUint32(0)), R.signature = D;
|
|
69726
69740
|
});
|
|
69727
69741
|
}
|
|
69728
69742
|
}
|
|
69729
|
-
class
|
|
69743
|
+
class M2 extends TransformStream {
|
|
69730
69744
|
constructor(h, { chunkSize: f, DecompressionStream: p, DecompressionStreamNative: g }) {
|
|
69731
69745
|
super({});
|
|
69732
69746
|
const { zipCrypto: C, encrypted: x, signed: w, signature: V, compressed: b, useCompressionStream: S } = h;
|
|
69733
69747
|
let R, L, W = Kg(super.readable);
|
|
69734
|
-
x && (C ? W = In(W, new
|
|
69748
|
+
x && (C ? W = In(W, new A2(h)) : (L = new E2(h), W = In(W, L))), b && (W = Xg(W, S, { chunkSize: f }, g, p)), (!x || C) && w && (R = new kg(), W = In(W, R)), Yg(this, W, () => {
|
|
69735
69749
|
if ((!x || C) && w) {
|
|
69736
69750
|
const q = new DataView(R.value.buffer);
|
|
69737
69751
|
if (V != q.getUint32(0, !1))
|
|
@@ -69773,13 +69787,13 @@ function Xg(d, h, f, p, g) {
|
|
|
69773
69787
|
function In(d, h) {
|
|
69774
69788
|
return d.pipeThrough(h);
|
|
69775
69789
|
}
|
|
69776
|
-
const
|
|
69777
|
-
class
|
|
69790
|
+
const N2 = "message", _2 = "start", F2 = "pull", Dh = "data", q2 = "ack", Ah = "close", em = "deflate", B2 = "inflate";
|
|
69791
|
+
class H2 extends TransformStream {
|
|
69778
69792
|
constructor(h, f) {
|
|
69779
69793
|
super({});
|
|
69780
69794
|
const p = this, { codecType: g } = h;
|
|
69781
69795
|
let C;
|
|
69782
|
-
g.startsWith(em) ? C =
|
|
69796
|
+
g.startsWith(em) ? C = k2 : g.startsWith(B2) && (C = M2);
|
|
69783
69797
|
let x = 0, w = 0;
|
|
69784
69798
|
const V = new C(h, f), b = super.readable, S = new TransformStream({
|
|
69785
69799
|
transform(L, W) {
|
|
@@ -69810,7 +69824,7 @@ class q2 extends TransformStream {
|
|
|
69810
69824
|
});
|
|
69811
69825
|
}
|
|
69812
69826
|
}
|
|
69813
|
-
class
|
|
69827
|
+
class Q2 extends TransformStream {
|
|
69814
69828
|
constructor(h) {
|
|
69815
69829
|
let f;
|
|
69816
69830
|
super({
|
|
@@ -69834,7 +69848,7 @@ class Ic {
|
|
|
69834
69848
|
const { signal: R } = x;
|
|
69835
69849
|
return Object.assign(h, {
|
|
69836
69850
|
busy: !0,
|
|
69837
|
-
readable: f.pipeThrough(new
|
|
69851
|
+
readable: f.pipeThrough(new Q2(C.chunkSize)).pipeThrough(new U2(f, x), { signal: R }),
|
|
69838
69852
|
writable: p,
|
|
69839
69853
|
options: Object.assign({}, g),
|
|
69840
69854
|
scripts: b,
|
|
@@ -69849,10 +69863,10 @@ class Ic {
|
|
|
69849
69863
|
const { resolveTerminated: L } = h;
|
|
69850
69864
|
L && (h.resolveTerminated = null, h.terminated = !0, h.worker.terminate(), L()), h.busy = !1, S(h);
|
|
69851
69865
|
}
|
|
69852
|
-
}), (w && tm ?
|
|
69866
|
+
}), (w && tm ? z2 : rm)(h, C);
|
|
69853
69867
|
}
|
|
69854
69868
|
}
|
|
69855
|
-
class
|
|
69869
|
+
class U2 extends TransformStream {
|
|
69856
69870
|
constructor(h, { onstart: f, onprogress: p, size: g, onend: C }) {
|
|
69857
69871
|
let x = 0;
|
|
69858
69872
|
super({
|
|
@@ -69876,30 +69890,30 @@ async function Rc(d, ...h) {
|
|
|
69876
69890
|
}
|
|
69877
69891
|
function rm(d, h) {
|
|
69878
69892
|
return {
|
|
69879
|
-
run: () =>
|
|
69893
|
+
run: () => W2(d, h)
|
|
69880
69894
|
};
|
|
69881
69895
|
}
|
|
69882
|
-
function
|
|
69896
|
+
function z2(d, h) {
|
|
69883
69897
|
const { baseURL: f, chunkSize: p } = h;
|
|
69884
69898
|
if (!d.interface) {
|
|
69885
69899
|
let g;
|
|
69886
69900
|
try {
|
|
69887
|
-
g =
|
|
69901
|
+
g = Z2(d.scripts[0], f, d);
|
|
69888
69902
|
} catch {
|
|
69889
69903
|
return tm = !1, rm(d, h);
|
|
69890
69904
|
}
|
|
69891
69905
|
Object.assign(d, {
|
|
69892
69906
|
worker: g,
|
|
69893
69907
|
interface: {
|
|
69894
|
-
run: () =>
|
|
69908
|
+
run: () => $2(d, { chunkSize: p })
|
|
69895
69909
|
}
|
|
69896
69910
|
});
|
|
69897
69911
|
}
|
|
69898
69912
|
return d.interface;
|
|
69899
69913
|
}
|
|
69900
|
-
async function
|
|
69914
|
+
async function W2({ options: d, readable: h, writable: f, onTaskFinished: p }, g) {
|
|
69901
69915
|
try {
|
|
69902
|
-
const C = new
|
|
69916
|
+
const C = new H2(d, g);
|
|
69903
69917
|
await h.pipeThrough(C).pipeTo(f, { preventClose: !0, preventAbort: !0 });
|
|
69904
69918
|
const {
|
|
69905
69919
|
signature: x,
|
|
@@ -69915,7 +69929,7 @@ async function U2({ options: d, readable: h, writable: f, onTaskFinished: p }, g
|
|
|
69915
69929
|
p();
|
|
69916
69930
|
}
|
|
69917
69931
|
}
|
|
69918
|
-
async function
|
|
69932
|
+
async function $2(d, h) {
|
|
69919
69933
|
let f, p;
|
|
69920
69934
|
const g = new Promise((L, W) => {
|
|
69921
69935
|
f = L, p = W;
|
|
@@ -69927,8 +69941,8 @@ async function z2(d, h) {
|
|
|
69927
69941
|
rejectResult: p,
|
|
69928
69942
|
result: g
|
|
69929
69943
|
});
|
|
69930
|
-
const { readable: C, options: x, scripts: w } = d, { writable: V, closed: b } =
|
|
69931
|
-
type:
|
|
69944
|
+
const { readable: C, options: x, scripts: w } = d, { writable: V, closed: b } = G2(d.writable), S = jl({
|
|
69945
|
+
type: _2,
|
|
69932
69946
|
scripts: w.slice(1),
|
|
69933
69947
|
options: x,
|
|
69934
69948
|
config: h,
|
|
@@ -69942,7 +69956,7 @@ async function z2(d, h) {
|
|
|
69942
69956
|
const R = await g;
|
|
69943
69957
|
return S || await V.getWriter().close(), await b, R;
|
|
69944
69958
|
}
|
|
69945
|
-
function
|
|
69959
|
+
function G2(d) {
|
|
69946
69960
|
let h;
|
|
69947
69961
|
const f = new Promise((g) => h = g);
|
|
69948
69962
|
return { writable: new WritableStream({
|
|
@@ -69959,7 +69973,7 @@ function W2(d) {
|
|
|
69959
69973
|
}), closed: f };
|
|
69960
69974
|
}
|
|
69961
69975
|
let Lh = !0, kh = !0;
|
|
69962
|
-
function
|
|
69976
|
+
function Z2(d, h, f) {
|
|
69963
69977
|
const p = { type: "module" };
|
|
69964
69978
|
let g, C;
|
|
69965
69979
|
typeof d == oa && (d = d());
|
|
@@ -69976,7 +69990,7 @@ function $2(d, h, f) {
|
|
|
69976
69990
|
}
|
|
69977
69991
|
else
|
|
69978
69992
|
C = new Worker(g, p);
|
|
69979
|
-
return C.addEventListener(
|
|
69993
|
+
return C.addEventListener(N2, (x) => J2(x, f)), C;
|
|
69980
69994
|
}
|
|
69981
69995
|
function jl(d, { worker: h, writer: f, onTaskFinished: p, transferStreams: g }) {
|
|
69982
69996
|
try {
|
|
@@ -69994,18 +70008,18 @@ function jl(d, { worker: h, writer: f, onTaskFinished: p, transferStreams: g })
|
|
|
69994
70008
|
throw f && f.releaseLock(), p(), C;
|
|
69995
70009
|
}
|
|
69996
70010
|
}
|
|
69997
|
-
async function
|
|
70011
|
+
async function J2({ data: d }, h) {
|
|
69998
70012
|
const { type: f, value: p, messageId: g, result: C, error: x } = d, { reader: w, writer: V, resolveResult: b, rejectResult: S, onTaskFinished: R } = h;
|
|
69999
70013
|
try {
|
|
70000
70014
|
if (x) {
|
|
70001
70015
|
const { message: W, stack: q, code: D, name: P } = x, A = new Error(W);
|
|
70002
70016
|
Object.assign(A, { stack: q, code: D, name: P }), L(A);
|
|
70003
70017
|
} else {
|
|
70004
|
-
if (f ==
|
|
70018
|
+
if (f == F2) {
|
|
70005
70019
|
const { value: W, done: q } = await w.read();
|
|
70006
70020
|
jl({ type: Dh, value: W, done: q, messageId: g }, h);
|
|
70007
70021
|
}
|
|
70008
|
-
f == Dh && (await V.ready, await V.write(new Uint8Array(p)), jl({ type:
|
|
70022
|
+
f == Dh && (await V.ready, await V.write(new Uint8Array(p)), jl({ type: q2, messageId: g }, h)), f == Ah && L(null, C);
|
|
70009
70023
|
}
|
|
70010
70024
|
} catch (W) {
|
|
70011
70025
|
jl({ type: Ah, messageId: g }, h), L(W);
|
|
@@ -70017,7 +70031,7 @@ async function G2({ data: d }, h) {
|
|
|
70017
70031
|
let Ki = [];
|
|
70018
70032
|
const Dc = [];
|
|
70019
70033
|
let Mh = 0;
|
|
70020
|
-
async function
|
|
70034
|
+
async function K2(d, h) {
|
|
70021
70035
|
const { options: f, config: p } = h, { transferStreams: g, useWebWorkers: C, useCompressionStream: x, codecType: w, compressed: V, signed: b, encrypted: S } = f, { workerScripts: R, maxWorkers: L } = p;
|
|
70022
70036
|
h.transferStreams = g || g === At;
|
|
70023
70037
|
const W = !V && !b && !S && !h.transferStreams;
|
|
@@ -70036,10 +70050,10 @@ async function Z2(d, h) {
|
|
|
70036
70050
|
if (Dc.length) {
|
|
70037
70051
|
const [{ resolve: A, stream: M, workerOptions: F }] = Dc.splice(0, 1);
|
|
70038
70052
|
A(new Ic(P, M, F, D));
|
|
70039
|
-
} else P.worker ? (Nh(P),
|
|
70053
|
+
} else P.worker ? (Nh(P), Y2(P, h)) : Ki = Ki.filter((A) => A != P);
|
|
70040
70054
|
}
|
|
70041
70055
|
}
|
|
70042
|
-
function
|
|
70056
|
+
function Y2(d, h) {
|
|
70043
70057
|
const { config: f } = h, { terminateWorkerTimeout: p } = f;
|
|
70044
70058
|
Number.isFinite(p) && p >= 0 && (d.terminated ? d.terminated = !1 : d.terminateTimeout = setTimeout(async () => {
|
|
70045
70059
|
Ki = Ki.filter((g) => g != d);
|
|
@@ -70053,12 +70067,12 @@ function Nh(d) {
|
|
|
70053
70067
|
const { terminateTimeout: h } = d;
|
|
70054
70068
|
h && (clearTimeout(h), d.terminateTimeout = null);
|
|
70055
70069
|
}
|
|
70056
|
-
function
|
|
70070
|
+
function X2(d, h = {}) {
|
|
70057
70071
|
const f = `const{Array:e,Object:t,Number:n,Math:r,Error:s,Uint8Array:i,Uint16Array:o,Uint32Array:c,Int32Array:f,Map:a,DataView:l,Promise:u,TextEncoder:w,crypto:h,postMessage:d,TransformStream:p,ReadableStream:y,WritableStream:m,CompressionStream:b,DecompressionStream:g}=self,k=void 0,v="undefined",S="function";class z{constructor(e){return class extends p{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}const C=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;C[e]=t}class x{constructor(e){this.t=e||-1}append(e){let t=0|this.t;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^C[255&(t^e[n])];this.t=t}get(){return~this.t}}class A extends p{constructor(){let e;const t=new x;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new i(4);new l(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}const _={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=_.i(n);return 32===r?e.concat(t):_.o(t,r,0|n,e.slice(0,e.length-1))},l(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+_.i(n)},u(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,r.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=_.h(t,e[n-1]&2147483648>>t-1,1)),e},h:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,i:e=>r.round(e/1099511627776)||32,o(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let s=0;s<e.length;s++)r.push(n|e[s]>>>t),n=e[s]<<32-t;const s=e.length?e[e.length-1]:0,i=_.i(s);return r.push(_.h(t+i&31,t+i>32?n:r.pop(),1)),r}},I={p:{m(e){const t=_.l(e)/8,n=new i(t);let r;for(let s=0;t>s;s++)3&s||(r=e[s/4]),n[s]=r>>>24,r<<=8;return n},k(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3&~n||(t.push(r),r=0);return 3&n&&t.push(_.h(8*(3&n),r)),t}}},P=class{constructor(e){const t=this;t.blockSize=512,t.v=[1732584193,4023233417,2562383102,271733878,3285377520],t.S=[1518500249,1859775393,2400959708,3395469782],e?(t.C=e.C.slice(0),t.A=e.A.slice(0),t._=e._):t.reset()}reset(){const e=this;return e.C=e.v.slice(0),e.A=[],e._=0,e}update(e){const t=this;"string"==typeof e&&(e=I.I.k(e));const n=t.A=_.concat(t.A,e),r=t._,i=t._=r+_.l(e);if(i>9007199254740991)throw new s("Cannot hash more than 2^53 - 1 bits");const o=new c(n);let f=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t.P(o.subarray(16*f,16*(f+1))),f+=1;return n.splice(0,16*f),t}D(){const e=this;let t=e.A;const n=e.C;t=_.concat(t,[_.h(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(r.floor(e._/4294967296)),t.push(0|e._);t.length;)e.P(t.splice(0,16));return e.reset(),n}V(e,t,n,r){return e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r}R(e,t){return t<<e|t>>>32-e}P(t){const n=this,s=n.C,i=e(80);for(let e=0;16>e;e++)i[e]=t[e];let o=s[0],c=s[1],f=s[2],a=s[3],l=s[4];for(let e=0;79>=e;e++){16>e||(i[e]=n.R(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n.R(5,o)+n.V(e,c,f,a)+l+i[e]+n.S[r.floor(e/20)]|0;l=a,a=f,f=n.R(30,c),c=o,o=t}s[0]=s[0]+o|0,s[1]=s[1]+c|0,s[2]=s[2]+f|0,s[3]=s[3]+a|0,s[4]=s[4]+l|0}},D={getRandomValues(e){const t=new c(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(r.random()>.5?1:-1))};for(let s,i=0;i<e.length;i+=4){const e=n(4294967296*(s||r.random()));s=987654071*e(),t[i/4]=4294967296*e()|0}return e}},V={importKey:e=>new V.B(I.p.k(e)),M(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new s("invalid params to pbkdf2");const i=1+(r>>5)<<2;let o,c,f,a,u;const w=new ArrayBuffer(i),h=new l(w);let d=0;const p=_;for(t=I.p.k(t),u=1;(i||1)>d;u++){for(o=c=e.encrypt(p.concat(t,[u])),f=1;n>f;f++)for(c=e.encrypt(c),a=0;a<c.length;a++)o[a]^=c[a];for(f=0;(i||1)>d&&f<o.length;f++)h.setInt32(d,o[f]),d+=4}return w.slice(0,r/8)},B:class{constructor(e){const t=this,n=t.U=P,r=[[],[]];t.K=[new n,new n];const s=t.K[0].blockSize/32;e.length>s&&(e=(new n).update(e).D());for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t.K[0].update(r[0]),t.K[1].update(r[1]),t.N=new n(t.K[0])}reset(){const e=this;e.N=new e.U(e.K[0]),e.O=!1}update(e){this.O=!0,this.N.update(e)}digest(){const e=this,t=e.N.D(),n=new e.U(e.K[1]).update(t).D();return e.reset(),n}encrypt(e){if(this.O)throw new s("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},R=typeof h!=v&&typeof h.getRandomValues==S,B="Invalid password",E="Invalid signature",M="zipjs-abort-check-password";function U(e){return R?h.getRandomValues(e):D.getRandomValues(e)}const K=16,N={name:"PBKDF2"},O=t.assign({hash:{name:"HMAC"}},N),T=t.assign({iterations:1e3,hash:{name:"SHA-1"}},N),W=["deriveBits"],j=[8,12,16],H=[16,24,32],L=10,F=[0,0,0,0],q=typeof h!=v,G=q&&h.subtle,J=q&&typeof G!=v,Q=I.p,X=class{constructor(e){const t=this;t.T=[[[],[],[],[],[]],[[],[],[],[],[]]],t.T[0][0][0]||t.W();const n=t.T[0][4],r=t.T[1],i=e.length;let o,c,f,a=1;if(4!==i&&6!==i&&8!==i)throw new s("invalid aes key size");for(t.S=[c=e.slice(0),f=[]],o=i;4*i+28>o;o++){let e=c[o-1];(o%i==0||8===i&&o%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],o%i==0&&(e=e<<8^e>>>24^a<<24,a=a<<1^283*(a>>7))),c[o]=c[o-i]^e}for(let e=0;o;e++,o--){const t=c[3&e?o:o-4];f[e]=4>=o||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this.j(e,0)}decrypt(e){return this.j(e,1)}W(){const e=this.T[0],t=this.T[1],n=e[4],r=t[4],s=[],i=[];let o,c,f,a;for(let e=0;256>e;e++)i[(s[e]=e<<1^283*(e>>7))^e]=e;for(let l=o=0;!n[l];l^=c||1,o=i[o]||1){let i=o^o<<1^o<<2^o<<3^o<<4;i=i>>8^255&i^99,n[l]=i,r[i]=l,a=s[f=s[c=s[l]]];let u=16843009*a^65537*f^257*c^16843008*l,w=257*s[i]^16843008*i;for(let n=0;4>n;n++)e[n][l]=w=w<<24^w>>>8,t[n][i]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}j(e,t){if(4!==e.length)throw new s("invalid aes block size");const n=this.S[t],r=n.length/4-2,i=[0,0,0,0],o=this.T[t],c=o[0],f=o[1],a=o[2],l=o[3],u=o[4];let w,h,d,p=e[0]^n[0],y=e[t?3:1]^n[1],m=e[2]^n[2],b=e[t?1:3]^n[3],g=4;for(let e=0;r>e;e++)w=c[p>>>24]^f[y>>16&255]^a[m>>8&255]^l[255&b]^n[g],h=c[y>>>24]^f[m>>16&255]^a[b>>8&255]^l[255&p]^n[g+1],d=c[m>>>24]^f[b>>16&255]^a[p>>8&255]^l[255&y]^n[g+2],b=c[b>>>24]^f[p>>16&255]^a[y>>8&255]^l[255&m]^n[g+3],g+=4,p=w,y=h,m=d;for(let e=0;4>e;e++)i[t?3&-e:e]=u[p>>>24]<<24^u[y>>16&255]<<16^u[m>>8&255]<<8^u[255&b]^n[g++],w=p,p=y,y=m,m=b,b=w;return i}},Y=class{constructor(e,t){this.H=e,this.L=t,this.F=t}reset(){this.F=this.L}update(e){return this.q(this.H,e,this.F)}G(e){if(255&~(e>>24))e+=1<<24;else{let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}J(e){0===(e[0]=this.G(e[0]))&&(e[1]=this.G(e[1]))}q(e,t,n){let r;if(!(r=t.length))return[];const s=_.l(t);for(let s=0;r>s;s+=4){this.J(n);const r=e.encrypt(n);t[s]^=r[0],t[s+1]^=r[1],t[s+2]^=r[2],t[s+3]^=r[3]}return _.u(t,s)}},Z=V.B;let $=q&&J&&typeof G.importKey==S,ee=q&&J&&typeof G.deriveBits==S;class te extends p{constructor({password:e,rawPassword:n,signed:r,encryptionStrength:o,checkPasswordOnly:c}){super({start(){t.assign(this,{ready:new u((e=>this.X=e)),password:ie(e,n),signed:r,Y:o-1,pending:new i})},async transform(e,t){const n=this,{password:r,Y:o,X:f,ready:a}=n;r?(await(async(e,t,n,r)=>{const i=await se(e,t,n,ce(r,0,j[t])),o=ce(r,j[t]);if(i[0]!=o[0]||i[1]!=o[1])throw new s(B)})(n,o,r,ce(e,0,j[o]+2)),e=ce(e,j[o]+2),c?t.error(new s(M)):f()):await a;const l=new i(e.length-L-(e.length-L)%K);t.enqueue(re(n,e,l,0,L,!0))},async flush(e){const{signed:t,Z:n,$:r,pending:o,ready:c}=this;if(r&&n){await c;const f=ce(o,0,o.length-L),a=ce(o,o.length-L);let l=new i;if(f.length){const e=ae(Q,f);r.update(e);const t=n.update(e);l=fe(Q,t)}if(t){const e=ce(fe(Q,r.digest()),0,L);for(let t=0;L>t;t++)if(e[t]!=a[t])throw new s(E)}e.enqueue(l)}}})}}class ne extends p{constructor({password:e,rawPassword:n,encryptionStrength:r}){let s;super({start(){t.assign(this,{ready:new u((e=>this.X=e)),password:ie(e,n),Y:r-1,pending:new i})},async transform(e,t){const n=this,{password:r,Y:s,X:o,ready:c}=n;let f=new i;r?(f=await(async(e,t,n)=>{const r=U(new i(j[t]));return oe(r,await se(e,t,n,r))})(n,s,r),o()):await c;const a=new i(f.length+e.length-e.length%K);a.set(f,0),t.enqueue(re(n,e,a,f.length,0))},async flush(e){const{Z:t,$:n,pending:r,ready:o}=this;if(n&&t){await o;let c=new i;if(r.length){const e=t.update(ae(Q,r));n.update(e),c=fe(Q,e)}s.signature=fe(Q,n.digest()).slice(0,L),e.enqueue(oe(c,s.signature))}}}),s=this}}function re(e,t,n,r,s,o){const{Z:c,$:f,pending:a}=e,l=t.length-s;let u;for(a.length&&(t=oe(a,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new i(t)).set(n,0)}return e})(n,l-l%K)),u=0;l-K>=u;u+=K){const e=ae(Q,ce(t,u,u+K));o&&f.update(e);const s=c.update(e);o||f.update(s),n.set(fe(Q,s),u+r)}return e.pending=ce(t,u),n}async function se(n,r,s,o){n.password=null;const c=await(async(e,t,n,r,s)=>{if(!$)return V.importKey(t);try{return await G.importKey("raw",t,n,!1,s)}catch(e){return $=!1,V.importKey(t)}})(0,s,O,0,W),f=await(async(e,t,n)=>{if(!ee)return V.M(t,e.salt,T.iterations,n);try{return await G.deriveBits(e,t,n)}catch(r){return ee=!1,V.M(t,e.salt,T.iterations,n)}})(t.assign({salt:o},T),c,8*(2*H[r]+2)),a=new i(f),l=ae(Q,ce(a,0,H[r])),u=ae(Q,ce(a,H[r],2*H[r])),w=ce(a,2*H[r]);return t.assign(n,{keys:{key:l,ee:u,passwordVerification:w},Z:new Y(new X(l),e.from(F)),$:new Z(u)}),w}function ie(e,t){return t===k?(e=>{if(typeof w==v){const t=new i((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new w).encode(e)})(e):t}function oe(e,t){let n=e;return e.length+t.length&&(n=new i(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function ce(e,t,n){return e.subarray(t,n)}function fe(e,t){return e.m(t)}function ae(e,t){return e.k(t)}class le extends p{constructor({password:e,passwordVerification:n,checkPasswordOnly:r}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;if(n.password){const t=we(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new s(B);e=e.subarray(12)}r?t.error(new s(M)):t.enqueue(we(n,e))}})}}class ue extends p{constructor({password:e,passwordVerification:n}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;let r,s;if(n.password){n.password=null;const t=U(new i(12));t[11]=n.passwordVerification,r=new i(e.length+t.length),r.set(he(n,t),0),s=12}else r=new i(e.length),s=0;r.set(he(n,e),s),t.enqueue(r)}})}}function we(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,n[r]);return n}function he(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,t[r]);return n}function de(e,n){const r=[305419896,591751049,878082192];t.assign(e,{keys:r,te:new x(r[0]),ne:new x(r[2])});for(let t=0;t<n.length;t++)pe(e,n.charCodeAt(t))}function pe(e,t){let[n,s,i]=e.keys;e.te.append([t]),n=~e.te.get(),s=be(r.imul(be(s+me(n)),134775813)+1),e.ne.append([s>>>24]),i=~e.ne.get(),e.keys=[n,s,i]}function ye(e){const t=2|e.keys[2];return me(r.imul(t,1^t)>>>8)}function me(e){return 255&e}function be(e){return 4294967295&e}const ge="deflate-raw";class ke extends p{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:s,encrypted:i,useCompressionStream:o,zipCrypto:c,signed:f,level:a}=e,u=this;let w,h,d=Se(super.readable);i&&!c||!f||(w=new A,d=xe(d,w)),s&&(d=Ce(d,o,{level:a,chunkSize:t},r,n)),i&&(c?d=xe(d,new ue(e)):(h=new ne(e),d=xe(d,h))),ze(u,d,(()=>{let e;i&&!c&&(e=h.signature),i&&!c||!f||(e=new l(w.value.buffer).getUint32(0)),u.signature=e}))}}class ve extends p{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:o,signed:c,signature:f,compressed:a,useCompressionStream:u}=e;let w,h,d=Se(super.readable);o&&(i?d=xe(d,new le(e)):(h=new te(e),d=xe(d,h))),a&&(d=Ce(d,u,{chunkSize:t},r,n)),o&&!i||!c||(w=new A,d=xe(d,w)),ze(this,d,(()=>{if((!o||i)&&c){const e=new l(w.value.buffer);if(f!=e.getUint32(0,!1))throw new s(E)}}))}}function Se(e){return xe(e,new p({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function ze(e,n,r){n=xe(n,new p({flush:r})),t.defineProperty(e,"readable",{get:()=>n})}function Ce(e,t,n,r,s){try{e=xe(e,new(t&&r?r:s)(ge,n))}catch(r){if(!t)return e;try{e=xe(e,new s(ge,n))}catch(t){return e}}return e}function xe(e,t){return e.pipeThrough(t)}const Ae="data",_e="close";class Ie extends p{constructor(e,n){super({});const r=this,{codecType:s}=e;let i;s.startsWith("deflate")?i=ke:s.startsWith("inflate")&&(i=ve);let o=0,c=0;const f=new i(e,n),a=super.readable,l=new p({transform(e,t){e&&e.length&&(c+=e.length,t.enqueue(e))},flush(){t.assign(r,{inputSize:c})}}),u=new p({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){const{signature:e}=f;t.assign(r,{signature:e,outputSize:o,inputSize:c})}});t.defineProperty(r,"readable",{get:()=>a.pipeThrough(l).pipeThrough(f).pipeThrough(u)})}}class Pe extends p{constructor(e){let t;super({transform:function n(r,s){if(t){const e=new i(t.length+r.length);e.set(t),e.set(r,t.length),r=e,t=null}r.length>e?(s.enqueue(r.slice(0,e)),n(r.slice(e),s)):t=r},flush(e){t&&t.length&&e.enqueue(t)}})}}const De=new a,Ve=new a;let Re,Be=0,Ee=!0;async function Me(e){try{const{options:t,scripts:r,config:s}=e;if(r&&r.length)try{Ee?importScripts.apply(k,r):await Ue(r)}catch(e){Ee=!1,await Ue(r)}self.initCodec&&self.initCodec(),s.CompressionStreamNative=self.CompressionStream,s.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(s.CompressionStream=new z(self.Deflate)),self.Inflate&&(s.DecompressionStream=new z(self.Inflate));const i={highWaterMark:1},o=e.readable||new y({async pull(e){const t=new u((e=>De.set(Be,e)));Ke({type:"pull",messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER;const{value:r,done:s}=await t;e.enqueue(r),s&&e.close()}},i),c=e.writable||new m({async write(e){let t;const r=new u((e=>t=e));Ve.set(Be,t),Ke({type:Ae,value:e,messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER,await r}},i),f=new Ie(t,s);Re=new AbortController;const{signal:a}=Re;await o.pipeThrough(f).pipeThrough(new Pe(s.chunkSize)).pipeTo(c,{signal:a,preventClose:!0,preventAbort:!0}),await c.getWriter().close();const{signature:l,inputSize:w,outputSize:h}=f;Ke({type:_e,result:{signature:l,inputSize:w,outputSize:h}})}catch(e){Ne(e)}}async function Ue(e){for(const t of e)await import(t)}function Ke(e){let{value:t}=e;if(t)if(t.length)try{t=new i(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Ne(e=new s("Unknown error")){const{message:t,stack:n,code:r,name:i}=e;d({error:{message:t,stack:n,code:r,name:i}})}addEventListener("message",(({data:e})=>{const{type:t,messageId:n,value:r,done:s}=e;try{if("start"==t&&Me(e),t==Ae){const e=De.get(n);De.delete(n),e({value:new i(r),done:s})}if("ack"==t){const e=Ve.get(n);Ve.delete(n),e()}t==_e&&Re.abort()}catch(e){Ne(e)}}));const Oe=-2;function Te(t){return We(t.map((([t,n])=>new e(t).fill(n,0,t))))}function We(t){return t.reduce(((t,n)=>t.concat(e.isArray(n)?We(n):n)),[])}const je=[0,1,2,3].concat(...Te([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function He(){const e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.re=n=>{const s=e.se,i=e.oe.ie,o=e.oe.ce;let c,f,a,l=-1;for(n.fe=0,n.ae=573,c=0;o>c;c++)0!==s[2*c]?(n.le[++n.fe]=l=c,n.ue[c]=0):s[2*c+1]=0;for(;2>n.fe;)a=n.le[++n.fe]=2>l?++l:0,s[2*a]=1,n.ue[a]=0,n.we--,i&&(n.he-=i[2*a+1]);for(e.de=l,c=r.floor(n.fe/2);c>=1;c--)n.pe(s,c);a=o;do{c=n.le[1],n.le[1]=n.le[n.fe--],n.pe(s,1),f=n.le[1],n.le[--n.ae]=c,n.le[--n.ae]=f,s[2*a]=s[2*c]+s[2*f],n.ue[a]=r.max(n.ue[c],n.ue[f])+1,s[2*c+1]=s[2*f+1]=a,n.le[1]=a++,n.pe(s,1)}while(n.fe>=2);n.le[--n.ae]=n.le[1],(t=>{const n=e.se,r=e.oe.ie,s=e.oe.ye,i=e.oe.me,o=e.oe.be;let c,f,a,l,u,w,h=0;for(l=0;15>=l;l++)t.ge[l]=0;for(n[2*t.le[t.ae]+1]=0,c=t.ae+1;573>c;c++)f=t.le[c],l=n[2*n[2*f+1]+1]+1,l>o&&(l=o,h++),n[2*f+1]=l,f>e.de||(t.ge[l]++,u=0,i>f||(u=s[f-i]),w=n[2*f],t.we+=w*(l+u),r&&(t.he+=w*(r[2*f+1]+u)));if(0!==h){do{for(l=o-1;0===t.ge[l];)l--;t.ge[l]--,t.ge[l+1]+=2,t.ge[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(f=t.ge[l];0!==f;)a=t.le[--c],a>e.de||(n[2*a+1]!=l&&(t.we+=(l-n[2*a+1])*n[2*a],n[2*a+1]=l),f--)}})(n),((e,n,r)=>{const s=[];let i,o,c,f=0;for(i=1;15>=i;i++)s[i]=f=f+r[i-1]<<1;for(o=0;n>=o;o++)c=e[2*o+1],0!==c&&(e[2*o]=t(s[c]++,c))})(s,e.de,n.ge)}}function Le(e,t,n,r,s){const i=this;i.ie=e,i.ye=t,i.me=n,i.ce=r,i.be=s}He.ke=[0,1,2,3,4,5,6,7].concat(...Te([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),He.ve=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],He.Se=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],He.ze=e=>256>e?je[e]:je[256+(e>>>7)],He.Ce=[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],He.xe=[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],He.Ae=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],He._e=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const Fe=Te([[144,8],[112,9],[24,7],[8,8]]);Le.Ie=We([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,Fe[t]])));const qe=Te([[30,5]]);function Ge(e,t,n,r,s){const i=this;i.Pe=e,i.De=t,i.Ve=n,i.Re=r,i.Be=s}Le.Ee=We([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((e,t)=>[e,qe[t]]))),Le.Me=new Le(Le.Ie,He.Ce,257,286,15),Le.Ue=new Le(Le.Ee,He.xe,0,30,15),Le.Ke=new Le(null,He.Ae,0,19,7);const Je=[new Ge(0,0,0,0,0),new Ge(4,4,8,4,1),new Ge(4,5,16,8,1),new Ge(4,6,32,32,1),new Ge(4,4,16,16,2),new Ge(8,16,32,32,2),new Ge(8,16,128,128,2),new Ge(8,32,128,256,2),new Ge(32,128,258,1024,2),new Ge(32,258,258,4096,2)],Qe=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],Xe=113,Ye=666,Ze=262;function $e(e,t,n,r){const s=e[2*t],i=e[2*n];return i>s||s==i&&r[t]<=r[n]}function et(){const e=this;let t,n,s,c,f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z,C,x,A,_,I,P,D,V,R,B,E,M,U;const K=new He,N=new He,O=new He;let T,W,j,H,L,F;function q(){let t;for(t=0;286>t;t++)E[2*t]=0;for(t=0;30>t;t++)M[2*t]=0;for(t=0;19>t;t++)U[2*t]=0;E[512]=1,e.we=e.he=0,W=j=0}function G(e,t){let n,r=-1,s=e[1],i=0,o=7,c=4;0===s&&(o=138,c=3),e[2*(t+1)+1]=65535;for(let f=0;t>=f;f++)n=s,s=e[2*(f+1)+1],++i<o&&n==s||(c>i?U[2*n]+=i:0!==n?(n!=r&&U[2*n]++,U[32]++):i>10?U[36]++:U[34]++,i=0,r=n,0===s?(o=138,c=3):n==s?(o=6,c=3):(o=7,c=4))}function J(t){e.Ne[e.pending++]=t}function Q(e){J(255&e),J(e>>>8&255)}function X(e,t){let n;const r=t;F>16-r?(n=e,L|=n<<F&65535,Q(L),L=n>>>16-F,F+=r-16):(L|=e<<F&65535,F+=r)}function Y(e,t){const n=2*e;X(65535&t[n],65535&t[n+1])}function Z(e,t){let n,r,s=-1,i=e[1],o=0,c=7,f=4;for(0===i&&(c=138,f=3),n=0;t>=n;n++)if(r=i,i=e[2*(n+1)+1],++o>=c||r!=i){if(f>o)do{Y(r,U)}while(0!=--o);else 0!==r?(r!=s&&(Y(r,U),o--),Y(16,U),X(o-3,2)):o>10?(Y(18,U),X(o-11,7)):(Y(17,U),X(o-3,3));o=0,s=r,0===i?(c=138,f=3):r==i?(c=6,f=3):(c=7,f=4)}}function $(){16==F?(Q(L),L=0,F=0):8>F||(J(255&L),L>>>=8,F-=8)}function ee(t,n){let s,i,o;if(e.Oe[W]=t,e.Te[W]=255&n,W++,0===t?E[2*n]++:(j++,t--,E[2*(He.ke[n]+256+1)]++,M[2*He.ze(t)]++),!(8191&W)&&D>2){for(s=8*W,i=C-k,o=0;30>o;o++)s+=M[2*o]*(5+He.xe[o]);if(s>>>=3,j<r.floor(W/2)&&s<r.floor(i/2))return!0}return W==T-1}function te(t,n){let r,s,i,o,c=0;if(0!==W)do{r=e.Oe[c],s=e.Te[c],c++,0===r?Y(s,t):(i=He.ke[s],Y(i+256+1,t),o=He.Ce[i],0!==o&&(s-=He.ve[i],X(s,o)),r--,i=He.ze(r),Y(i,n),o=He.xe[i],0!==o&&(r-=He.Se[i],X(r,o)))}while(W>c);Y(256,t),H=t[513]}function ne(){F>8?Q(L):F>0&&J(255&L),L=0,F=0}function re(t,n,r){X(0+(r?1:0),3),((t,n)=>{ne(),H=8,Q(n),Q(~n),e.Ne.set(u.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function se(n){((t,n,r)=>{let s,i,o=0;D>0?(K.re(e),N.re(e),o=(()=>{let t;for(G(E,K.de),G(M,N.de),O.re(e),t=18;t>=3&&0===U[2*He._e[t]+1];t--);return e.we+=14+3*(t+1),t})(),s=e.we+3+7>>>3,i=e.he+3+7>>>3,i>s||(s=i)):s=i=n+5,n+4>s||-1==t?i==s?(X(2+(r?1:0),3),te(Le.Ie,Le.Ee)):(X(4+(r?1:0),3),((e,t,n)=>{let r;for(X(e-257,5),X(t-1,5),X(n-4,4),r=0;n>r;r++)X(U[2*He._e[r]+1],3);Z(E,e-1),Z(M,t-1)})(K.de+1,N.de+1,o+1),te(E,M)):re(t,n,r),q(),r&&ne()})(0>k?-1:k,C-k,n),k=C,t.We()}function ie(){let e,n,r,s;do{if(s=w-A-C,0===s&&0===C&&0===A)s=f;else if(-1==s)s--;else if(C>=f+f-Ze){u.set(u.subarray(f,f+f),0),x-=f,C-=f,k-=f,e=y,r=e;do{n=65535&d[--r],d[r]=f>n?0:n-f}while(0!=--e);e=f,r=e;do{n=65535&h[--r],h[r]=f>n?0:n-f}while(0!=--e);s+=f}if(0===t.je)return;e=t.He(u,C+A,s),A+=e,3>A||(p=255&u[C],p=(p<<g^255&u[C+1])&b)}while(Ze>A&&0!==t.je)}function oe(e){let t,n,r=I,s=C,i=_;const o=C>f-Ze?C-(f-Ze):0;let c=B;const a=l,w=C+258;let d=u[s+i-1],p=u[s+i];R>_||(r>>=2),c>A&&(c=A);do{if(t=e,u[t+i]==p&&u[t+i-1]==d&&u[t]==u[s]&&u[++t]==u[s+1]){s+=2,t++;do{}while(u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&w>s);if(n=258-(w-s),s=w-258,n>i){if(x=e,i=n,n>=c)break;d=u[s+i-1],p=u[s+i]}}}while((e=65535&h[e&a])>o&&0!=--r);return i>A?A:i}e.ue=[],e.ge=[],e.le=[],E=[],M=[],U=[],e.pe=(t,n)=>{const r=e.le,s=r[n];let i=n<<1;for(;i<=e.fe&&(i<e.fe&&$e(t,r[i+1],r[i],e.ue)&&i++,!$e(t,s,r[i],e.ue));)r[n]=r[i],n=i,i<<=1;r[n]=s},e.Le=(t,S,x,W,j,G)=>(W||(W=8),j||(j=8),G||(G=0),t.Fe=null,-1==S&&(S=6),1>j||j>9||8!=W||9>x||x>15||0>S||S>9||0>G||G>2?Oe:(t.qe=e,a=x,f=1<<a,l=f-1,m=j+7,y=1<<m,b=y-1,g=r.floor((m+3-1)/3),u=new i(2*f),h=[],d=[],T=1<<j+6,e.Ne=new i(4*T),s=4*T,e.Oe=new o(T),e.Te=new i(T),D=S,V=G,(t=>(t.Ge=t.Je=0,t.Fe=null,e.pending=0,e.Qe=0,n=Xe,c=0,K.se=E,K.oe=Le.Me,N.se=M,N.oe=Le.Ue,O.se=U,O.oe=Le.Ke,L=0,F=0,H=8,q(),(()=>{w=2*f,d[y-1]=0;for(let e=0;y-1>e;e++)d[e]=0;P=Je[D].De,R=Je[D].Pe,B=Je[D].Ve,I=Je[D].Re,C=0,k=0,A=0,v=_=2,z=0,p=0})(),0))(t))),e.Xe=()=>42!=n&&n!=Xe&&n!=Ye?Oe:(e.Te=null,e.Oe=null,e.Ne=null,d=null,h=null,u=null,e.qe=null,n==Xe?-3:0),e.Ye=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?Oe:(Je[D].Be!=Je[t].Be&&0!==e.Ge&&(r=e.Ze(1)),D!=t&&(D=t,P=Je[D].De,R=Je[D].Pe,B=Je[D].Ve,I=Je[D].Re),V=n,r)},e.$e=(e,t,r)=>{let s,i=r,o=0;if(!t||42!=n)return Oe;if(3>i)return 0;for(i>f-Ze&&(i=f-Ze,o=r-i),u.set(t.subarray(o,o+i),0),C=i,k=i,p=255&u[0],p=(p<<g^255&u[1])&b,s=0;i-3>=s;s++)p=(p<<g^255&u[s+2])&b,h[s&l]=d[p],d[p]=s;return 0},e.Ze=(r,i)=>{let o,w,m,I,R;if(i>4||0>i)return Oe;if(!r.et||!r.tt&&0!==r.je||n==Ye&&4!=i)return r.Fe=Qe[4],Oe;if(0===r.nt)return r.Fe=Qe[7],-5;var B;if(t=r,I=c,c=i,42==n&&(w=8+(a-8<<4)<<8,m=(D-1&255)>>1,m>3&&(m=3),w|=m<<6,0!==C&&(w|=32),w+=31-w%31,n=Xe,J((B=w)>>8&255),J(255&B)),0!==e.pending){if(t.We(),0===t.nt)return c=-1,0}else if(0===t.je&&I>=i&&4!=i)return t.Fe=Qe[7],-5;if(n==Ye&&0!==t.je)return r.Fe=Qe[7],-5;if(0!==t.je||0!==A||0!=i&&n!=Ye){switch(R=-1,Je[D].Be){case 0:R=(e=>{let n,r=65535;for(r>s-5&&(r=s-5);;){if(1>=A){if(ie(),0===A&&0==e)return 0;if(0===A)break}if(C+=A,A=0,n=k+r,(0===C||C>=n)&&(A=C-n,C=n,se(!1),0===t.nt))return 0;if(C-k>=f-Ze&&(se(!1),0===t.nt))return 0}return se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i);break;case 1:R=(e=>{let n,r=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C),0===r||(C-r&65535)>f-Ze||2!=V&&(v=oe(r)),3>v)n=ee(0,255&u[C]),A--,C++;else if(n=ee(C-x,v-3),A-=v,v>P||3>A)C+=v,v=0,p=255&u[C],p=(p<<g^255&u[C+1])&b;else{v--;do{C++,p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C}while(0!=--v);C++}if(n&&(se(!1),0===t.nt))return 0}return se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i);break;case 2:R=(e=>{let n,r,s=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C),_=v,S=x,v=2,0!==s&&P>_&&f-Ze>=(C-s&65535)&&(2!=V&&(v=oe(s)),5>=v&&(1==V||3==v&&C-x>4096)&&(v=2)),3>_||v>_)if(0!==z){if(n=ee(0,255&u[C-1]),n&&se(!1),C++,A--,0===t.nt)return 0}else z=1,C++,A--;else{r=C+A-3,n=ee(C-1-S,_-3),A-=_-1,_-=2;do{++C>r||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C)}while(0!=--_);if(z=0,v=2,C++,n&&(se(!1),0===t.nt))return 0}}return 0!==z&&(n=ee(0,255&u[C-1]),z=0),se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i)}if(2!=R&&3!=R||(n=Ye),0==R||2==R)return 0===t.nt&&(c=-1),0;if(1==R){if(1==i)X(2,3),Y(256,Le.Ie),$(),9>1+H+10-F&&(X(2,3),Y(256,Le.Ie),$()),H=7;else if(re(0,0,!1),3==i)for(o=0;y>o;o++)d[o]=0;if(t.We(),0===t.nt)return c=-1,0}}return 4!=i?0:1}}function tt(){const e=this;e.rt=0,e.st=0,e.je=0,e.Ge=0,e.nt=0,e.Je=0}function nt(e){const t=new tt,n=(o=e&&e.chunkSize?e.chunkSize:65536)+5*(r.floor(o/16383)+1);var o;const c=new i(n);let f=e?e.level:-1;void 0===f&&(f=-1),t.Le(f),t.et=c,this.append=(e,r)=>{let o,f,a=0,l=0,u=0;const w=[];if(e.length){t.rt=0,t.tt=e,t.je=e.length;do{if(t.st=0,t.nt=n,o=t.Ze(0),0!=o)throw new s("deflating: "+t.Fe);t.st&&(t.st==n?w.push(new i(c)):w.push(c.subarray(0,t.st))),u+=t.st,r&&t.rt>0&&t.rt!=a&&(r(t.rt),a=t.rt)}while(t.je>0||0===t.nt);return w.length>1?(f=new i(u),w.forEach((e=>{f.set(e,l),l+=e.length}))):f=w[0]?new i(w[0]):new i,f}},this.flush=()=>{let e,r,o=0,f=0;const a=[];do{if(t.st=0,t.nt=n,e=t.Ze(4),1!=e&&0!=e)throw new s("deflating: "+t.Fe);n-t.nt>0&&a.push(c.slice(0,t.st)),f+=t.st}while(t.je>0||0===t.nt);return t.Xe(),r=new i(f),a.forEach((e=>{r.set(e,o),o+=e.length})),r}}tt.prototype={Le(e,t){const n=this;return n.qe=new et,t||(t=15),n.qe.Le(n,e,t)},Ze(e){const t=this;return t.qe?t.qe.Ze(t,e):Oe},Xe(){const e=this;if(!e.qe)return Oe;const t=e.qe.Xe();return e.qe=null,t},Ye(e,t){const n=this;return n.qe?n.qe.Ye(n,e,t):Oe},$e(e,t){const n=this;return n.qe?n.qe.$e(n,e,t):Oe},He(e,t,n){const r=this;let s=r.je;return s>n&&(s=n),0===s?0:(r.je-=s,e.set(r.tt.subarray(r.rt,r.rt+s),t),r.rt+=s,r.Ge+=s,s)},We(){const e=this;let t=e.qe.pending;t>e.nt&&(t=e.nt),0!==t&&(e.et.set(e.qe.Ne.subarray(e.qe.Qe,e.qe.Qe+t),e.st),e.st+=t,e.qe.Qe+=t,e.Je+=t,e.nt-=t,e.qe.pending-=t,0===e.qe.pending&&(e.qe.Qe=0))}};const rt=-2,st=-3,it=-5,ot=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],ct=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],ft=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],at=[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],lt=[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,112,112],ut=[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],wt=[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];function ht(){let e,t,n,r,s,i;function o(e,t,o,c,f,a,l,u,w,h,d){let p,y,m,b,g,k,v,S,z,C,x,A,_,I,P;C=0,g=o;do{n[e[t+C]]++,C++,g--}while(0!==g);if(n[0]==o)return l[0]=-1,u[0]=0,0;for(S=u[0],k=1;15>=k&&0===n[k];k++);for(v=k,k>S&&(S=k),g=15;0!==g&&0===n[g];g--);for(m=g,S>g&&(S=g),u[0]=S,I=1<<k;g>k;k++,I<<=1)if(0>(I-=n[k]))return st;if(0>(I-=n[g]))return st;for(n[g]+=I,i[1]=k=0,C=1,_=2;0!=--g;)i[_]=k+=n[C],_++,C++;g=0,C=0;do{0!==(k=e[t+C])&&(d[i[k]++]=g),C++}while(++g<o);for(o=i[m],i[0]=g=0,C=0,b=-1,A=-S,s[0]=0,x=0,P=0;m>=v;v++)for(p=n[v];0!=p--;){for(;v>A+S;){if(b++,A+=S,P=m-A,P=P>S?S:P,(y=1<<(k=v-A))>p+1&&(y-=p+1,_=v,P>k))for(;++k<P&&(y<<=1)>n[++_];)y-=n[_];if(P=1<<k,h[0]+P>1440)return st;s[b]=x=h[0],h[0]+=P,0!==b?(i[b]=g,r[0]=k,r[1]=S,k=g>>>A-S,r[2]=x-s[b-1]-k,w.set(r,3*(s[b-1]+k))):l[0]=x}for(r[1]=v-A,o>C?d[C]<c?(r[0]=256>d[C]?0:96,r[2]=d[C++]):(r[0]=a[d[C]-c]+16+64,r[2]=f[d[C++]-c]):r[0]=192,y=1<<v-A,k=g>>>A;P>k;k+=y)w.set(r,3*(x+k));for(k=1<<v-1;g&k;k>>>=1)g^=k;for(g^=k,z=(1<<A)-1;(g&z)!=i[b];)b--,A-=S,z=(1<<A)-1}return 0!==I&&1!=m?it:0}function c(o){let c;for(e||(e=[],t=[],n=new f(16),r=[],s=new f(15),i=new f(16)),t.length<o&&(t=[]),c=0;o>c;c++)t[c]=0;for(c=0;16>c;c++)n[c]=0;for(c=0;3>c;c++)r[c]=0;s.set(n.subarray(0,15),0),i.set(n.subarray(0,16),0)}this.it=(n,r,s,i,f)=>{let a;return c(19),e[0]=0,a=o(n,0,19,19,null,null,s,r,i,e,t),a==st?f.Fe="oversubscribed dynamic bit lengths tree":a!=it&&0!==r[0]||(f.Fe="incomplete dynamic bit lengths tree",a=st),a},this.ot=(n,r,s,i,f,a,l,u,w)=>{let h;return c(288),e[0]=0,h=o(s,0,n,257,at,lt,a,i,u,e,t),0!=h||0===i[0]?(h==st?w.Fe="oversubscribed literal/length tree":-4!=h&&(w.Fe="incomplete literal/length tree",h=st),h):(c(288),h=o(s,n,r,0,ut,wt,l,f,u,e,t),0!=h||0===f[0]&&n>257?(h==st?w.Fe="oversubscribed distance tree":h==it?(w.Fe="incomplete distance tree",h=st):-4!=h&&(w.Fe="empty distance tree with lengths",h=st),h):0)}}function dt(){const e=this;let t,n,r,s,i=0,o=0,c=0,f=0,a=0,l=0,u=0,w=0,h=0,d=0;function p(e,t,n,r,s,i,o,c){let f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z;d=c.rt,p=c.je,w=o.ct,h=o.ft,y=o.write,m=y<o.read?o.read-y-1:o.end-y,b=ot[e],g=ot[t];do{for(;20>h;)p--,w|=(255&c.lt(d++))<<h,h+=8;if(f=w&b,a=n,l=r,z=3*(l+f),0!==(u=a[z]))for(;;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15,k=a[z+2]+(w&ot[u]),w>>=u,h-=u;15>h;)p--,w|=(255&c.lt(d++))<<h,h+=8;for(f=w&g,a=s,l=i,z=3*(l+f),u=a[z];;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15;u>h;)p--,w|=(255&c.lt(d++))<<h,h+=8;if(v=a[z+2]+(w&ot[u]),w>>=u,h-=u,m-=k,v>y){S=y-v;do{S+=o.end}while(0>S);if(u=o.end-S,k>u){if(k-=u,y-S>0&&u>y-S)do{o.ut[y++]=o.ut[S++]}while(0!=--u);else o.ut.set(o.ut.subarray(S,S+u),y),y+=u,S+=u,u=0;S=0}}else S=y-v,y-S>0&&2>y-S?(o.ut[y++]=o.ut[S++],o.ut[y++]=o.ut[S++],k-=2):(o.ut.set(o.ut.subarray(S,S+2),y),y+=2,S+=2,k-=2);if(y-S>0&&k>y-S)do{o.ut[y++]=o.ut[S++]}while(0!=--k);else o.ut.set(o.ut.subarray(S,S+k),y),y+=k,S+=k,k=0;break}if(64&u)return c.Fe="invalid distance code",k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ct=w,o.ft=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,st;f+=a[z+2],f+=w&ot[u],z=3*(l+f),u=a[z]}break}if(64&u)return 32&u?(k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ct=w,o.ft=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,1):(c.Fe="invalid literal/length code",k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ct=w,o.ft=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,st);if(f+=a[z+2],f+=w&ot[u],z=3*(l+f),0===(u=a[z])){w>>=a[z+1],h-=a[z+1],o.ut[y++]=a[z+2],m--;break}}else w>>=a[z+1],h-=a[z+1],o.ut[y++]=a[z+2],m--}while(m>=258&&p>=10);return k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ct=w,o.ft=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,0}e.init=(e,i,o,c,f,a)=>{t=0,u=e,w=i,r=o,h=c,s=f,d=a,n=null},e.wt=(e,y,m)=>{let b,g,k,v,S,z,C,x=0,A=0,_=0;for(_=y.rt,v=y.je,x=e.ct,A=e.ft,S=e.write,z=S<e.read?e.read-S-1:e.end-S;;)switch(t){case 0:if(z>=258&&v>=10&&(e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,m=p(u,w,r,h,s,d,e,y),_=y.rt,v=y.je,x=e.ct,A=e.ft,S=e.write,z=S<e.read?e.read-S-1:e.end-S,0!=m)){t=1==m?7:9;break}c=u,n=r,o=h,t=1;case 1:for(b=c;b>A;){if(0===v)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,v--,x|=(255&y.lt(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>>=n[g+1],A-=n[g+1],k=n[g],0===k){f=n[g+2],t=6;break}if(16&k){a=15&k,i=n[g+2],t=2;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}if(32&k){t=7;break}return t=9,y.Fe="invalid literal/length code",m=st,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);case 2:for(b=a;b>A;){if(0===v)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,v--,x|=(255&y.lt(_++))<<A,A+=8}i+=x&ot[b],x>>=b,A-=b,c=w,n=s,o=d,t=3;case 3:for(b=c;b>A;){if(0===v)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,v--,x|=(255&y.lt(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>=n[g+1],A-=n[g+1],k=n[g],16&k){a=15&k,l=n[g+2],t=4;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}return t=9,y.Fe="invalid distance code",m=st,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);case 4:for(b=a;b>A;){if(0===v)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,v--,x|=(255&y.lt(_++))<<A,A+=8}l+=x&ot[b],x>>=b,A-=b,t=5;case 5:for(C=S-l;0>C;)C+=e.end;for(;0!==i;){if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.ht(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);e.ut[S++]=e.ut[C++],z--,C==e.end&&(C=0),i--}t=0;break;case 6:if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.ht(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,e.ut[S++]=f,z--,t=0;break;case 7:if(A>7&&(A-=8,v++,_--),e.write=S,m=e.ht(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,e.read!=e.write)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);t=8;case 8:return m=1,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);case 9:return m=st,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);default:return m=rt,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m)}},e.dt=()=>{}}ht.yt=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=ct,r[0]=ft,0);const pt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function yt(e,t){const n=this;let r,s=0,o=0,c=0,a=0;const l=[0],u=[0],w=new dt;let h=0,d=new f(4320);const p=new ht;n.ft=0,n.ct=0,n.ut=new i(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),6==s&&w.dt(e),s=0,n.ft=0,n.ct=0,n.read=n.write=0},n.reset(e,null),n.ht=(e,t)=>{let r,s,i;return s=e.st,i=n.read,r=(i>n.write?n.end:n.write)-i,r>e.nt&&(r=e.nt),0!==r&&t==it&&(t=0),e.nt-=r,e.Je+=r,e.et.set(n.ut.subarray(i,i+r),s),s+=r,i+=r,i==n.end&&(i=0,n.write==n.end&&(n.write=0),r=n.write-i,r>e.nt&&(r=e.nt),0!==r&&t==it&&(t=0),e.nt-=r,e.Je+=r,e.et.set(n.ut.subarray(i,i+r),s),s+=r,i+=r),e.st=s,n.read=i,t},n.wt=(e,t)=>{let i,f,y,m,b,g,k,v;for(m=e.rt,b=e.je,f=n.ct,y=n.ft,g=n.write,k=g<n.read?n.read-g-1:n.end-g;;){let S,z,C,x,A,_,I,P;switch(s){case 0:for(;3>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}switch(i=7&f,h=1&i,i>>>1){case 0:f>>>=3,y-=3,i=7&y,f>>>=i,y-=i,s=1;break;case 1:S=[],z=[],C=[[]],x=[[]],ht.yt(S,z,C,x),w.init(S[0],z[0],C[0],0,x[0],0),f>>>=3,y-=3,s=6;break;case 2:f>>>=3,y-=3,s=3;break;case 3:return f>>>=3,y-=3,s=9,e.Fe="invalid block type",t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t)}break;case 1:for(;32>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}if((~f>>>16&65535)!=(65535&f))return s=9,e.Fe="invalid stored block lengths",t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);o=65535&f,f=y=0,s=0!==o?2:0!==h?7:0;break;case 2:if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);if(0===k&&(g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k&&(n.write=g,t=n.ht(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k)))return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);if(t=0,i=o,i>b&&(i=b),i>k&&(i=k),n.ut.set(e.He(m,i),g),m+=i,b-=i,g+=i,k-=i,0!=(o-=i))break;s=0!==h?7:0;break;case 3:for(;14>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}if(c=i=16383&f,(31&i)>29||(i>>5&31)>29)return s=9,e.Fe="too many length or distance symbols",t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);if(i=258+(31&i)+(i>>5&31),!r||r.length<i)r=[];else for(v=0;i>v;v++)r[v]=0;f>>>=14,y-=14,a=0,s=4;case 4:for(;4+(c>>>10)>a;){for(;3>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}r[pt[a++]]=7&f,f>>>=3,y-=3}for(;19>a;)r[pt[a++]]=0;if(l[0]=7,i=p.it(r,l,u,d,e),0!=i)return(t=i)==st&&(r=null,s=9),n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);a=0,s=5;case 5:for(;i=c,258+(31&i)+(i>>5&31)>a;){let o,w;for(i=l[0];i>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}if(i=d[3*(u[0]+(f&ot[i]))+1],w=d[3*(u[0]+(f&ot[i]))+2],16>w)f>>>=i,y-=i,r[a++]=w;else{for(v=18==w?7:w-14,o=18==w?11:3;i+v>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}if(f>>>=i,y-=i,o+=f&ot[v],f>>>=v,y-=v,v=a,i=c,v+o>258+(31&i)+(i>>5&31)||16==w&&1>v)return r=null,s=9,e.Fe="invalid bit length repeat",t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);w=16==w?r[v-1]:0;do{r[v++]=w}while(0!=--o);a=v}}if(u[0]=-1,A=[],_=[],I=[],P=[],A[0]=9,_[0]=6,i=c,i=p.ot(257+(31&i),1+(i>>5&31),r,A,_,I,P,d,e),0!=i)return i==st&&(r=null,s=9),t=i,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);w.init(A[0],_[0],d,I[0],d,P[0]),s=6;case 6:if(n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,1!=(t=w.wt(n,e,t)))return n.ht(e,t);if(t=0,w.dt(e),m=e.rt,b=e.je,f=n.ct,y=n.ft,g=n.write,k=g<n.read?n.read-g-1:n.end-g,0===h){s=0;break}s=7;case 7:if(n.write=g,t=n.ht(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,n.read!=n.write)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);s=8;case 8:return t=1,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);case 9:return t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);default:return t=rt,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t)}}},n.dt=e=>{n.reset(e,null),n.ut=null,d=null},n.bt=(e,t,r)=>{n.ut.set(e.subarray(t,t+r),0),n.read=n.write=r},n.gt=()=>1==s?1:0}const mt=13,bt=[0,0,255,255];function gt(){const e=this;function t(e){return e&&e.kt?(e.Ge=e.Je=0,e.Fe=null,e.kt.mode=7,e.kt.vt.reset(e,null),0):rt}e.mode=0,e.method=0,e.St=[0],e.zt=0,e.marker=0,e.Ct=0,e.xt=t=>(e.vt&&e.vt.dt(t),e.vt=null,0),e.At=(n,r)=>(n.Fe=null,e.vt=null,8>r||r>15?(e.xt(n),rt):(e.Ct=r,n.kt.vt=new yt(n,1<<r),t(n),0)),e._t=(e,t)=>{let n,r;if(!e||!e.kt||!e.tt)return rt;const s=e.kt;for(t=4==t?it:0,n=it;;)switch(s.mode){case 0:if(0===e.je)return n;if(n=t,e.je--,e.Ge++,8!=(15&(s.method=e.lt(e.rt++)))){s.mode=mt,e.Fe="unknown compression method",s.marker=5;break}if(8+(s.method>>4)>s.Ct){s.mode=mt,e.Fe="invalid win size",s.marker=5;break}s.mode=1;case 1:if(0===e.je)return n;if(n=t,e.je--,e.Ge++,r=255&e.lt(e.rt++),((s.method<<8)+r)%31!=0){s.mode=mt,e.Fe="incorrect header check",s.marker=5;break}if(!(32&r)){s.mode=7;break}s.mode=2;case 2:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt=(255&e.lt(e.rt++))<<24&4278190080,s.mode=3;case 3:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt+=(255&e.lt(e.rt++))<<16&16711680,s.mode=4;case 4:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt+=(255&e.lt(e.rt++))<<8&65280,s.mode=5;case 5:return 0===e.je?n:(n=t,e.je--,e.Ge++,s.zt+=255&e.lt(e.rt++),s.mode=6,2);case 6:return s.mode=mt,e.Fe="need dictionary",s.marker=0,rt;case 7:if(n=s.vt.wt(e,n),n==st){s.mode=mt,s.marker=0;break}if(0==n&&(n=t),1!=n)return n;n=t,s.vt.reset(e,s.St),s.mode=12;case 12:return e.je=0,1;case mt:return st;default:return rt}},e.It=(e,t,n)=>{let r=0,s=n;if(!e||!e.kt||6!=e.kt.mode)return rt;const i=e.kt;return s<1<<i.Ct||(s=(1<<i.Ct)-1,r=n-s),i.vt.bt(t,r,s),i.mode=7,0},e.Pt=e=>{let n,r,s,i,o;if(!e||!e.kt)return rt;const c=e.kt;if(c.mode!=mt&&(c.mode=mt,c.marker=0),0===(n=e.je))return it;for(r=e.rt,s=c.marker;0!==n&&4>s;)e.lt(r)==bt[s]?s++:s=0!==e.lt(r)?0:4-s,r++,n--;return e.Ge+=r-e.rt,e.rt=r,e.je=n,c.marker=s,4!=s?st:(i=e.Ge,o=e.Je,t(e),e.Ge=i,e.Je=o,c.mode=7,0)},e.Dt=e=>e&&e.kt&&e.kt.vt?e.kt.vt.gt():rt}function kt(){}function vt(e){const t=new kt,n=e&&e.chunkSize?r.floor(2*e.chunkSize):131072,o=new i(n);let c=!1;t.At(),t.et=o,this.append=(e,r)=>{const f=[];let a,l,u=0,w=0,h=0;if(0!==e.length){t.rt=0,t.tt=e,t.je=e.length;do{if(t.st=0,t.nt=n,0!==t.je||c||(t.rt=0,c=!0),a=t._t(0),c&&a===it){if(0!==t.je)throw new s("inflating: bad input")}else if(0!==a&&1!==a)throw new s("inflating: "+t.Fe);if((c||1===a)&&t.je===e.length)throw new s("inflating: bad input");t.st&&(t.st===n?f.push(new i(o)):f.push(o.subarray(0,t.st))),h+=t.st,r&&t.rt>0&&t.rt!=u&&(r(t.rt),u=t.rt)}while(t.je>0||0===t.nt);return f.length>1?(l=new i(h),f.forEach((e=>{l.set(e,w),w+=e.length}))):l=f[0]?new i(f[0]):new i,l}},this.flush=()=>{t.xt()}}kt.prototype={At(e){const t=this;return t.kt=new gt,e||(e=15),t.kt.At(t,e)},_t(e){const t=this;return t.kt?t.kt._t(t,e):rt},xt(){const e=this;if(!e.kt)return rt;const t=e.kt.xt(e);return e.kt=null,t},Pt(){const e=this;return e.kt?e.kt.Pt(e):rt},It(e,t){const n=this;return n.kt?n.kt.It(n,e,t):rt},lt(e){return this.tt[e]},He(e,t){return this.tt.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=nt,self.Inflate=vt};
|
|
70058
70072
|
`, p = () => h.useDataURI ? "data:text/javascript," + encodeURIComponent(f) : URL.createObjectURL(new Blob([f], { type: "text/javascript" }));
|
|
70059
70073
|
d({ workerScripts: { inflate: [p], deflate: [p] } });
|
|
70060
70074
|
}
|
|
70061
|
-
const
|
|
70075
|
+
const ex = "Writer iterator completed too soon", tx = "text/plain", rx = "Content-Type", nx = 64 * 1024, nm = "writable";
|
|
70062
70076
|
class cf {
|
|
70063
70077
|
constructor() {
|
|
70064
70078
|
this.size = 0;
|
|
@@ -70069,7 +70083,7 @@ class cf {
|
|
|
70069
70083
|
}
|
|
70070
70084
|
class im extends cf {
|
|
70071
70085
|
get readable() {
|
|
70072
|
-
const h = this, { chunkSize: f =
|
|
70086
|
+
const h = this, { chunkSize: f = nx } = h, p = new ReadableStream({
|
|
70073
70087
|
start() {
|
|
70074
70088
|
this.chunkOffset = 0;
|
|
70075
70089
|
},
|
|
@@ -70081,7 +70095,7 @@ class im extends cf {
|
|
|
70081
70095
|
return p;
|
|
70082
70096
|
}
|
|
70083
70097
|
}
|
|
70084
|
-
class
|
|
70098
|
+
class ix extends im {
|
|
70085
70099
|
constructor(h) {
|
|
70086
70100
|
super(), Object.assign(this, {
|
|
70087
70101
|
blob: h,
|
|
@@ -70094,11 +70108,11 @@ class rx extends im {
|
|
|
70094
70108
|
return x.byteLength > f && (x = x.slice(h, g)), new Uint8Array(x);
|
|
70095
70109
|
}
|
|
70096
70110
|
}
|
|
70097
|
-
class
|
|
70111
|
+
class ox extends cf {
|
|
70098
70112
|
constructor(h) {
|
|
70099
70113
|
super();
|
|
70100
70114
|
const f = this, p = new TransformStream(), g = [];
|
|
70101
|
-
h && g.push([
|
|
70115
|
+
h && g.push([rx, h]), Object.defineProperty(f, nm, {
|
|
70102
70116
|
get() {
|
|
70103
70117
|
return p.writable;
|
|
70104
70118
|
}
|
|
@@ -70108,12 +70122,12 @@ class nx extends cf {
|
|
|
70108
70122
|
return this.blob;
|
|
70109
70123
|
}
|
|
70110
70124
|
}
|
|
70111
|
-
class
|
|
70125
|
+
class sx extends ix {
|
|
70112
70126
|
constructor(h) {
|
|
70113
|
-
super(new Blob([h], { type:
|
|
70127
|
+
super(new Blob([h], { type: tx }));
|
|
70114
70128
|
}
|
|
70115
70129
|
}
|
|
70116
|
-
class
|
|
70130
|
+
class ax extends im {
|
|
70117
70131
|
constructor(h) {
|
|
70118
70132
|
super(), this.readers = h;
|
|
70119
70133
|
}
|
|
@@ -70160,7 +70174,7 @@ class _h extends cf {
|
|
|
70160
70174
|
else {
|
|
70161
70175
|
const { value: L, done: W } = await h.next();
|
|
70162
70176
|
if (W && !L)
|
|
70163
|
-
throw new Error(
|
|
70177
|
+
throw new Error(ex);
|
|
70164
70178
|
g = L, g.size = 0, g.maxSize && (p.maxSize = g.maxSize), p.availableSize = p.maxSize, await Ys(g), C = L.writable, x = C.getWriter(), await this.write(S);
|
|
70165
70179
|
}
|
|
70166
70180
|
},
|
|
@@ -70188,12 +70202,12 @@ async function Ys(d, h) {
|
|
|
70188
70202
|
else
|
|
70189
70203
|
return Promise.resolve();
|
|
70190
70204
|
}
|
|
70191
|
-
function
|
|
70192
|
-
return Array.isArray(d) && (d = new
|
|
70205
|
+
function lx(d) {
|
|
70206
|
+
return Array.isArray(d) && (d = new ax(d)), d instanceof ReadableStream && (d = {
|
|
70193
70207
|
readable: d
|
|
70194
70208
|
}), d;
|
|
70195
70209
|
}
|
|
70196
|
-
function
|
|
70210
|
+
function ux(d) {
|
|
70197
70211
|
d.writable === At && typeof d.next == oa && (d = new _h(d)), d instanceof WritableStream && (d = {
|
|
70198
70212
|
writable: d
|
|
70199
70213
|
});
|
|
@@ -70208,20 +70222,20 @@ function ax(d) {
|
|
|
70208
70222
|
function Kc(d, h, f, p) {
|
|
70209
70223
|
return d.readUint8Array(h, f, p);
|
|
70210
70224
|
}
|
|
70211
|
-
const
|
|
70212
|
-
|
|
70213
|
-
const
|
|
70214
|
-
ux,
|
|
70215
|
-
cx,
|
|
70216
|
-
hx,
|
|
70217
|
-
dx,
|
|
70218
|
-
om,
|
|
70219
|
-
mx,
|
|
70225
|
+
const cx = "\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split("");
|
|
70226
|
+
cx.length == 256;
|
|
70227
|
+
const fx = "filename", px = "rawFilename", dx = "comment", hx = "rawComment", gx = "uncompressedSize", mx = "compressedSize", yx = "offset", Fh = "diskNumberStart", om = "lastModDate", vx = "rawLastModDate", sm = "lastAccessDate", am = "creationDate", lm = "internalFileAttribute", um = "externalFileAttribute", cm = "msDosCompatible", ff = "zip64", fm = "encrypted", pm = "version", dm = "versionMadeBy", hm = "zipCrypto", bx = [
|
|
70220
70228
|
fx,
|
|
70221
70229
|
px,
|
|
70230
|
+
mx,
|
|
70231
|
+
gx,
|
|
70232
|
+
om,
|
|
70233
|
+
vx,
|
|
70234
|
+
dx,
|
|
70235
|
+
hx,
|
|
70222
70236
|
sm,
|
|
70223
70237
|
am,
|
|
70224
|
-
|
|
70238
|
+
yx,
|
|
70225
70239
|
Fh,
|
|
70226
70240
|
Fh,
|
|
70227
70241
|
lm,
|
|
@@ -70249,21 +70263,21 @@ const ux = "filename", cx = "rawFilename", fx = "comment", px = "rawComment", dx
|
|
|
70249
70263
|
];
|
|
70250
70264
|
class gm {
|
|
70251
70265
|
constructor(h) {
|
|
70252
|
-
|
|
70266
|
+
bx.forEach((f) => this[f] = h[f]);
|
|
70253
70267
|
}
|
|
70254
70268
|
}
|
|
70255
|
-
const
|
|
70269
|
+
const Cx = "File already exists", xx = "Zip file comment exceeds 64KB", wx = "File entry comment exceeds 64KB", Px = "File entry name exceeds 64KB", qh = "Version exceeds 65535", Sx = "The strength must equal 1, 2, or 3", jx = "Extra field type exceeds 65535", Ex = "Extra field data exceeds 64KB", pf = "Zip64 is not supported (make sure 'keepOrder' is set to 'true')", Vx = "Undefined uncompressed size", Bh = new Uint8Array([7, 0, 2, 0, 65, 69, 3, 0, 0]);
|
|
70256
70270
|
let Ac = 0;
|
|
70257
70271
|
const Hh = [];
|
|
70258
|
-
class
|
|
70272
|
+
class Ox {
|
|
70259
70273
|
constructor(h, f = {}) {
|
|
70260
|
-
h =
|
|
70274
|
+
h = ux(h);
|
|
70261
70275
|
const p = h.availableSize !== At && h.availableSize > 0 && h.availableSize !== 1 / 0 && h.maxSize !== At && h.maxSize > 0 && h.maxSize !== 1 / 0;
|
|
70262
70276
|
Object.assign(this, {
|
|
70263
70277
|
writer: h,
|
|
70264
70278
|
addSplitZipSignature: p,
|
|
70265
70279
|
options: f,
|
|
70266
|
-
config:
|
|
70280
|
+
config: d2(),
|
|
70267
70281
|
files: /* @__PURE__ */ new Map(),
|
|
70268
70282
|
filenames: /* @__PURE__ */ new Set(),
|
|
70269
70283
|
offset: f.offset === At ? h.writable.size : f.offset,
|
|
@@ -70281,8 +70295,8 @@ class Ex {
|
|
|
70281
70295
|
let w;
|
|
70282
70296
|
try {
|
|
70283
70297
|
if (h = h.trim(), g.filenames.has(h))
|
|
70284
|
-
throw new Error(
|
|
70285
|
-
return g.filenames.add(h), w =
|
|
70298
|
+
throw new Error(Cx);
|
|
70299
|
+
return g.filenames.add(h), w = Tx(g, h, f, p), C.add(w), await w;
|
|
70286
70300
|
} catch (V) {
|
|
70287
70301
|
throw g.filenames.delete(h), V;
|
|
70288
70302
|
} finally {
|
|
@@ -70295,20 +70309,20 @@ class Ex {
|
|
|
70295
70309
|
const p = this, { pendingAddFileCalls: g, writer: C } = this, { writable: x } = C;
|
|
70296
70310
|
for (; g.size; )
|
|
70297
70311
|
await Promise.allSettled(Array.from(g));
|
|
70298
|
-
return await
|
|
70312
|
+
return await _x(this, h, f), wt(p, f, "preventClose") || await x.getWriter().close(), C.getData ? C.getData() : x;
|
|
70299
70313
|
}
|
|
70300
70314
|
}
|
|
70301
|
-
async function
|
|
70315
|
+
async function Tx(d, h, f, p) {
|
|
70302
70316
|
h = h.trim(), p.directory && !h.endsWith(Oc) ? h += Oc : p.directory = h.endsWith(Oc);
|
|
70303
70317
|
const g = wt(d, p, "encodeText", Sl);
|
|
70304
70318
|
let C = g(h);
|
|
70305
70319
|
if (C === At && (C = Sl(h)), pt(C) > Fr)
|
|
70306
|
-
throw new Error(
|
|
70320
|
+
throw new Error(Px);
|
|
70307
70321
|
const x = p.comment || "";
|
|
70308
70322
|
let w = g(x);
|
|
70309
70323
|
if (w === At && (w = Sl(x)), pt(w) > Fr)
|
|
70310
|
-
throw new Error(
|
|
70311
|
-
const V = wt(d, p, pm,
|
|
70324
|
+
throw new Error(wx);
|
|
70325
|
+
const V = wt(d, p, pm, c2);
|
|
70312
70326
|
if (V > Fr)
|
|
70313
70327
|
throw new Error(qh);
|
|
70314
70328
|
const b = wt(d, p, dm, 20);
|
|
@@ -70320,24 +70334,24 @@ async function Vx(d, h, f, p) {
|
|
|
70320
70334
|
const F = wt(d, p, "encryptionStrength", 3), K = wt(d, p, hm), Y = wt(d, p, "extendedTimestamp", !0), B = wt(d, p, "keepOrder", !0), $ = wt(d, p, "level"), Q = wt(d, p, "useWebWorkers"), H = wt(d, p, "bufferedWrite"), te = wt(d, p, "dataDescriptorSignature", !1), ne = wt(d, p, "signal"), ae = wt(d, p, "useUnicodeFileNames", !0), U = wt(d, p, "useCompressionStream"), re = wt(d, p, "compressionMethod");
|
|
70321
70335
|
let X = wt(d, p, "dataDescriptor", !0), k = wt(d, p, ff);
|
|
70322
70336
|
if (!K && (A !== At || M !== At) && !(F >= 1 && F <= 3))
|
|
70323
|
-
throw new Error(
|
|
70337
|
+
throw new Error(Sx);
|
|
70324
70338
|
let le = new Uint8Array();
|
|
70325
70339
|
const { extraField: he } = p;
|
|
70326
70340
|
if (he) {
|
|
70327
70341
|
let $t = 0, Gt = 0;
|
|
70328
70342
|
he.forEach((Vt) => $t += 4 + pt(Vt)), le = new Uint8Array($t), he.forEach((Vt, rr) => {
|
|
70329
70343
|
if (rr > Fr)
|
|
70330
|
-
throw new Error(
|
|
70344
|
+
throw new Error(jx);
|
|
70331
70345
|
if (pt(Vt) > Fr)
|
|
70332
|
-
throw new Error(
|
|
70346
|
+
throw new Error(Ex);
|
|
70333
70347
|
er(le, new Uint16Array([rr]), Gt), er(le, new Uint16Array([pt(Vt)]), Gt + 2), er(le, Vt, Gt + 4), Gt += 4 + pt(Vt);
|
|
70334
70348
|
});
|
|
70335
70349
|
}
|
|
70336
70350
|
let De = 0, ce = 0, Le = 0;
|
|
70337
70351
|
if (P && ({ uncompressedSize: Le } = p, Le === At))
|
|
70338
|
-
throw new Error(
|
|
70352
|
+
throw new Error(Vx);
|
|
70339
70353
|
const xe = k === !0;
|
|
70340
|
-
f && (f =
|
|
70354
|
+
f && (f = lx(f), await Ys(f), P ? De = Qh(Le) : f.size === At ? (X = !0, (k || k === At) && (k = !0, Le = De = Br + 1)) : (Le = f.size, De = Qh(Le)));
|
|
70341
70355
|
const { diskOffset: Re, diskNumber: We, maxSize: Fe } = d.writer, be = xe || Le > Br, qe = xe || De > Br, ot = xe || d.offset + d.pendingEntriesSize - Re > Br, zt = wt(d, p, "supportZip64SplitFile", !0) && xe || We + Math.ceil(d.pendingEntriesSize / Fe) > Fr;
|
|
70342
70356
|
if (ot || be || qe || zt) {
|
|
70343
70357
|
if (k === !1 || !B)
|
|
@@ -70382,17 +70396,17 @@ async function Vx(d, h, f, p) {
|
|
|
70382
70396
|
signature: Mt,
|
|
70383
70397
|
compressionMethod: re
|
|
70384
70398
|
});
|
|
70385
|
-
const Wt =
|
|
70399
|
+
const Wt = Dx(p), dr = Lx(p), st = pt(Wt.localHeaderArray, dr.dataDescriptorArray);
|
|
70386
70400
|
ce = st + De, d.options.usdz && (ce += ce + 64), d.pendingEntriesSize += ce;
|
|
70387
70401
|
let dt;
|
|
70388
70402
|
try {
|
|
70389
|
-
dt = await
|
|
70403
|
+
dt = await Ix(d, h, f, { headerInfo: Wt, dataDescriptorInfo: dr, metadataSize: st }, p);
|
|
70390
70404
|
} finally {
|
|
70391
70405
|
d.pendingEntriesSize -= ce;
|
|
70392
70406
|
}
|
|
70393
70407
|
return Object.assign(dt, { name: h, comment: x, extraField: he }), new gm(dt);
|
|
70394
70408
|
}
|
|
70395
|
-
async function
|
|
70409
|
+
async function Ix(d, h, f, p, g) {
|
|
70396
70410
|
const {
|
|
70397
70411
|
files: C,
|
|
70398
70412
|
writer: x
|
|
@@ -70415,15 +70429,15 @@ async function Ox(d, h, f, p, g) {
|
|
|
70415
70429
|
const ae = new Uint8Array(4), U = pr(ae);
|
|
70416
70430
|
ft(U, 0, Tg), await On(H, ae), d.offset += 4;
|
|
70417
70431
|
}
|
|
70418
|
-
R &&
|
|
70432
|
+
R && Ax(p, d.offset - te), q || (await Q, await $(H));
|
|
70419
70433
|
const { diskNumber: ne } = x;
|
|
70420
|
-
if (M = !0, W.diskNumberStart = ne, W = await
|
|
70434
|
+
if (M = !0, W.diskNumberStart = ne, W = await Rx(f, F, W, p, d.config, g), M = !1, C.set(h, W), W.filename = h, q) {
|
|
70421
70435
|
await F.writable.getWriter().close();
|
|
70422
70436
|
let ae = await K;
|
|
70423
|
-
await Q, await B(), A = !0, V || (ae = await
|
|
70437
|
+
await Q, await B(), A = !0, V || (ae = await Mx(W, ae, H, g)), await $(H), W.diskNumberStart = x.diskNumber, te = x.diskOffset, await ae.stream().pipeTo(H, { preventClose: !0, preventAbort: !0, signal: b }), H.size += ae.size, A = !1;
|
|
70424
70438
|
}
|
|
70425
70439
|
if (W.offset = d.offset - te, W.zip64)
|
|
70426
|
-
|
|
70440
|
+
Nx(W, g);
|
|
70427
70441
|
else if (W.offset > Br)
|
|
70428
70442
|
throw new Error(pf);
|
|
70429
70443
|
return d.offset += W.size, W;
|
|
@@ -70454,7 +70468,7 @@ async function Ox(d, h, f, p, g) {
|
|
|
70454
70468
|
pt(S.localHeaderArray) > x.availableSize && (x.availableSize = 0, await On(Q, new Uint8Array()));
|
|
70455
70469
|
}
|
|
70456
70470
|
}
|
|
70457
|
-
async function
|
|
70471
|
+
async function Rx(d, h, { diskNumberStart: f, lock: p }, g, C, x) {
|
|
70458
70472
|
const {
|
|
70459
70473
|
headerInfo: w,
|
|
70460
70474
|
dataDescriptorInfo: V,
|
|
@@ -70528,7 +70542,7 @@ async function Tx(d, h, { diskNumberStart: f, lock: p }, g, C, x) {
|
|
|
70528
70542
|
st || (Gt = 0);
|
|
70529
70543
|
const { writable: rr } = h;
|
|
70530
70544
|
if (d) {
|
|
70531
|
-
d.chunkSize =
|
|
70545
|
+
d.chunkSize = h2(C), await On(rr, S);
|
|
70532
70546
|
const Ot = d.readable, ir = Ot.size = d.size, Cr = {
|
|
70533
70547
|
options: {
|
|
70534
70548
|
codecType: em,
|
|
@@ -70547,7 +70561,7 @@ async function Tx(d, h, { diskNumberStart: f, lock: p }, g, C, x) {
|
|
|
70547
70561
|
},
|
|
70548
70562
|
config: C,
|
|
70549
70563
|
streamOptions: { signal: ot, size: ir, onstart: Fe, onprogress: be, onend: qe }
|
|
70550
|
-
}, hr = await
|
|
70564
|
+
}, hr = await K2({ readable: Ot, writable: rr }, Cr);
|
|
70551
70565
|
Vt = hr.outputSize, st || (Gt = hr.inputSize, $t = hr.signature), rr.size += Gt;
|
|
70552
70566
|
} else
|
|
70553
70567
|
await On(rr, S);
|
|
@@ -70557,7 +70571,7 @@ async function Tx(d, h, { diskNumberStart: f, lock: p }, g, C, x) {
|
|
|
70557
70571
|
re && (Ot += 8), X && (Ot += 8), k && (Ot += 8), le && (Ot += 4), nr = new Uint8Array(Ot);
|
|
70558
70572
|
} else
|
|
70559
70573
|
nr = new Uint8Array();
|
|
70560
|
-
return
|
|
70574
|
+
return kx({
|
|
70561
70575
|
signature: $t,
|
|
70562
70576
|
rawExtraFieldZip64: nr,
|
|
70563
70577
|
compressedSize: Vt,
|
|
@@ -70586,7 +70600,7 @@ async function Tx(d, h, { diskNumberStart: f, lock: p }, g, C, x) {
|
|
|
70586
70600
|
zip64DiskNumberStart: le
|
|
70587
70601
|
}), dt;
|
|
70588
70602
|
}
|
|
70589
|
-
function
|
|
70603
|
+
function Dx(d) {
|
|
70590
70604
|
const {
|
|
70591
70605
|
rawFilename: h,
|
|
70592
70606
|
lastModDate: f,
|
|
@@ -70607,7 +70621,7 @@ function Ix(d) {
|
|
|
70607
70621
|
if (q && !w) {
|
|
70608
70622
|
M = new Uint8Array(pt(Bh) + 2);
|
|
70609
70623
|
const k = pr(M);
|
|
70610
|
-
mt(k, 0,
|
|
70624
|
+
mt(k, 0, r2), er(M, Bh, 2), Ml(k, 8, L);
|
|
70611
70625
|
} else
|
|
70612
70626
|
M = new Uint8Array();
|
|
70613
70627
|
let F, K, Y;
|
|
@@ -70620,14 +70634,14 @@ function Ix(d) {
|
|
|
70620
70634
|
try {
|
|
70621
70635
|
F = new Uint8Array(36);
|
|
70622
70636
|
const he = pr(F), De = Lc(f);
|
|
70623
|
-
mt(he, 0,
|
|
70637
|
+
mt(he, 0, n2), mt(he, 2, 32), mt(he, 8, i2), mt(he, 10, 24), qr(he, 12, De), qr(he, 20, Lc(p) || De), qr(he, 28, Lc(g) || De);
|
|
70624
70638
|
} catch {
|
|
70625
70639
|
F = new Uint8Array();
|
|
70626
70640
|
}
|
|
70627
70641
|
} else
|
|
70628
70642
|
F = K = new Uint8Array();
|
|
70629
70643
|
let B = 0;
|
|
70630
|
-
V && (B = B |
|
|
70644
|
+
V && (B = B | l2), b && (B = B | a2), A === At && (A = D ? Ch : WC), A == Ch && (C >= 1 && C < 3 && (B = B | 6), C >= 3 && C < 5 && (B = B | 1), C === 9 && (B = B | 2)), x && (P = P > xh ? P : xh), q && (B = B | s2, w || (P = P > wh ? P : wh, M[9] = A, A = $C));
|
|
70631
70645
|
const $ = new Uint8Array(26), Q = pr($);
|
|
70632
70646
|
mt(Q, 0, P), mt(Q, 2, B), mt(Q, 4, A);
|
|
70633
70647
|
const H = new Uint32Array(1), te = pr(H);
|
|
@@ -70638,7 +70652,7 @@ function Ix(d) {
|
|
|
70638
70652
|
const U = pt(M, K, F, R);
|
|
70639
70653
|
mt(Q, 24, U);
|
|
70640
70654
|
const re = new Uint8Array(30 + pt(h) + U), X = pr(re);
|
|
70641
|
-
return ft(X, 0,
|
|
70655
|
+
return ft(X, 0, GC), er(re, $, 4), er(re, h, 30), er(re, M, 30 + pt(h)), er(re, K, 30 + pt(h, M)), er(re, F, 30 + pt(h, M, K)), er(re, R, 30 + pt(h, M, K, F)), {
|
|
70642
70656
|
localHeaderArray: re,
|
|
70643
70657
|
headerArray: $,
|
|
70644
70658
|
headerView: Q,
|
|
@@ -70655,29 +70669,29 @@ function Ix(d) {
|
|
|
70655
70669
|
extraFieldLength: U
|
|
70656
70670
|
};
|
|
70657
70671
|
}
|
|
70658
|
-
function
|
|
70672
|
+
function Ax(d, h) {
|
|
70659
70673
|
const { headerInfo: f } = d;
|
|
70660
70674
|
let { localHeaderArray: p, extraFieldLength: g } = f, C = pr(p), x = 64 - (h + pt(p)) % 64;
|
|
70661
70675
|
x < 4 && (x += 64);
|
|
70662
70676
|
const w = new Uint8Array(x), V = pr(w);
|
|
70663
|
-
mt(V, 0,
|
|
70677
|
+
mt(V, 0, o2), mt(V, 2, x - 2);
|
|
70664
70678
|
const b = p;
|
|
70665
70679
|
f.localHeaderArray = p = new Uint8Array(pt(b) + x), er(p, b), er(p, w, pt(b)), C = pr(p), mt(C, 28, g + x), d.metadataSize += x;
|
|
70666
70680
|
}
|
|
70667
|
-
function
|
|
70681
|
+
function Lx(d) {
|
|
70668
70682
|
const {
|
|
70669
70683
|
zip64: h,
|
|
70670
70684
|
dataDescriptor: f,
|
|
70671
70685
|
dataDescriptorSignature: p
|
|
70672
70686
|
} = d;
|
|
70673
70687
|
let g = new Uint8Array(), C, x = 0;
|
|
70674
|
-
return f && (g = new Uint8Array(h ? p ? 24 : 20 : p ? 16 : 12), C = pr(g), p && (x = 4, ft(C, 0,
|
|
70688
|
+
return f && (g = new Uint8Array(h ? p ? 24 : 20 : p ? 16 : 12), C = pr(g), p && (x = 4, ft(C, 0, ZC))), {
|
|
70675
70689
|
dataDescriptorArray: g,
|
|
70676
70690
|
dataDescriptorView: C,
|
|
70677
70691
|
dataDescriptorOffset: x
|
|
70678
70692
|
};
|
|
70679
70693
|
}
|
|
70680
|
-
function
|
|
70694
|
+
function kx(d, h) {
|
|
70681
70695
|
const {
|
|
70682
70696
|
signature: f,
|
|
70683
70697
|
rawExtraFieldZip64: p,
|
|
@@ -70700,24 +70714,24 @@ function Ax(d, h) {
|
|
|
70700
70714
|
} = h;
|
|
70701
70715
|
if ((!b || D) && f !== At && (ft(V, 10, f), P && ft(S, R, f)), L) {
|
|
70702
70716
|
const A = pr(p);
|
|
70703
|
-
mt(A, 0,
|
|
70717
|
+
mt(A, 0, t2), mt(A, 2, pt(p) - 4);
|
|
70704
70718
|
let M = 4;
|
|
70705
70719
|
W && (ft(V, 18, Br), qr(A, M, BigInt(C)), M += 8), q && (ft(V, 14, Br), qr(A, M, BigInt(g))), P && (qr(S, R + 4, BigInt(g)), qr(S, R + 12, BigInt(C)));
|
|
70706
70720
|
} else
|
|
70707
70721
|
ft(V, 14, g), ft(V, 18, C), P && (ft(S, R + 4, g), ft(S, R + 8, C));
|
|
70708
70722
|
}
|
|
70709
|
-
async function
|
|
70723
|
+
async function Mx(d, h, f, { zipCrypto: p }) {
|
|
70710
70724
|
let g;
|
|
70711
70725
|
g = await h.slice(0, 26).arrayBuffer(), g.byteLength != 26 && (g = g.slice(0, 26));
|
|
70712
70726
|
const C = new DataView(g);
|
|
70713
70727
|
return (!d.encrypted || p) && ft(C, 14, d.signature), d.zip64 ? (ft(C, 18, Br), ft(C, 22, Br)) : (ft(C, 18, d.compressedSize), ft(C, 22, d.uncompressedSize)), await On(f, new Uint8Array(g)), h.slice(g.byteLength);
|
|
70714
70728
|
}
|
|
70715
|
-
function
|
|
70729
|
+
function Nx(d, h) {
|
|
70716
70730
|
const { rawExtraFieldZip64: f, offset: p, diskNumberStart: g } = d, { zip64UncompressedSize: C, zip64CompressedSize: x, zip64Offset: w, zip64DiskNumberStart: V } = h, b = pr(f);
|
|
70717
70731
|
let S = 4;
|
|
70718
70732
|
C && (S += 8), x && (S += 8), w && (qr(b, S, BigInt(p)), S += 8), V && ft(b, S, g);
|
|
70719
70733
|
}
|
|
70720
|
-
async function
|
|
70734
|
+
async function _x(d, h, f) {
|
|
70721
70735
|
const { files: p, writer: g } = d, { diskOffset: C, writable: x } = g;
|
|
70722
70736
|
let { diskNumber: w } = g, V = 0, b = 0, S = d.offset - C, R = p.size;
|
|
70723
70737
|
for (const [, Y] of p) {
|
|
@@ -70777,9 +70791,9 @@ async function Mx(d, h, f) {
|
|
|
70777
70791
|
uncompressedSize: qe,
|
|
70778
70792
|
compressedSize: ot
|
|
70779
70793
|
} = B, Ge = pt(H, te, ne, ae, U);
|
|
70780
|
-
ft(W, V,
|
|
70794
|
+
ft(W, V, JC), mt(W, V + 4, X);
|
|
70781
70795
|
const zt = pr(k);
|
|
70782
|
-
De || ft(zt, 18, qe), ce || ft(zt, 14, ot), er(L, k, V + 6), mt(W, V + 30, Ge), mt(W, V + 32, pt(re)), mt(W, V + 34, he && Le ? Fr : be), mt(W, V + 36, We), Fe ? ft(W, V + 38, Fe) : le && Re && Ml(W, V + 38,
|
|
70796
|
+
De || ft(zt, 18, qe), ce || ft(zt, 14, ot), er(L, k, V + 6), mt(W, V + 30, Ge), mt(W, V + 32, pt(re)), mt(W, V + 34, he && Le ? Fr : be), mt(W, V + 36, We), Fe ? ft(W, V + 38, Fe) : le && Re && Ml(W, V + 38, u2), ft(W, V + 42, he && xe ? Br : $), er(L, Q, V + 46), er(L, H, V + 46 + pt(Q)), er(L, te, V + 46 + pt(Q, H)), er(L, ne, V + 46 + pt(Q, H, te)), er(L, ae, V + 46 + pt(Q, H, te, ne)), er(L, U, V + 46 + pt(Q, H, te, ne, ae)), er(L, re, V + 46 + pt(Q) + Ge);
|
|
70783
70797
|
const tr = 46 + pt(Q, re) + Ge;
|
|
70784
70798
|
if (V - q > g.availableSize && (g.availableSize = 0, await On(x, L.slice(q, V)), q = V), V += tr, f.onprogress)
|
|
70785
70799
|
try {
|
|
@@ -70797,14 +70811,14 @@ async function Mx(d, h, f) {
|
|
|
70797
70811
|
throw new Error(pf);
|
|
70798
70812
|
A = !0;
|
|
70799
70813
|
}
|
|
70800
|
-
const M = new Uint8Array(A ?
|
|
70801
|
-
V = 0, A && (ft(F, 0,
|
|
70814
|
+
const M = new Uint8Array(A ? e2 : Gc), F = pr(M);
|
|
70815
|
+
V = 0, A && (ft(F, 0, YC), qr(F, 4, BigInt(44)), mt(F, 12, 45), mt(F, 14, 45), ft(F, 16, D), ft(F, 20, w), qr(F, 24, BigInt(R)), qr(F, 32, BigInt(R)), qr(F, 40, BigInt(b)), qr(F, 48, BigInt(S)), ft(F, 56, XC), qr(F, 64, BigInt(S) + BigInt(b)), ft(F, 72, D + 1), wt(d, f, "supportZip64SplitFile", !0) && (D = Fr, w = Fr), R = Fr, S = Br, b = Br, V += Rg + Ig), ft(F, V, KC), mt(F, V + 4, D), mt(F, V + 6, w), mt(F, V + 8, R), mt(F, V + 10, R), ft(F, V + 12, b), ft(F, V + 16, S);
|
|
70802
70816
|
const K = pt(h);
|
|
70803
70817
|
if (K)
|
|
70804
70818
|
if (K <= Fr)
|
|
70805
70819
|
mt(F, V + 20, K);
|
|
70806
70820
|
else
|
|
70807
|
-
throw new Error(
|
|
70821
|
+
throw new Error(xx);
|
|
70808
70822
|
await On(x, M), K && await On(x, h);
|
|
70809
70823
|
}
|
|
70810
70824
|
async function On(d, h) {
|
|
@@ -70854,8 +70868,8 @@ try {
|
|
|
70854
70868
|
} catch {
|
|
70855
70869
|
}
|
|
70856
70870
|
af({ baseURL: mm });
|
|
70857
|
-
|
|
70858
|
-
af({ Deflate:
|
|
70871
|
+
X2(af);
|
|
70872
|
+
af({ Deflate: SC, Inflate: zC });
|
|
70859
70873
|
var Fn;
|
|
70860
70874
|
(function(d) {
|
|
70861
70875
|
d.Documents = "DOCUMENTS", d.Data = "DATA", d.Library = "LIBRARY", d.Cache = "CACHE", d.External = "EXTERNAL", d.ExternalStorage = "EXTERNAL_STORAGE";
|
|
@@ -70865,7 +70879,7 @@ var Yc;
|
|
|
70865
70879
|
d.UTF8 = "utf8", d.ASCII = "ascii", d.UTF16 = "utf16";
|
|
70866
70880
|
})(Yc || (Yc = {}));
|
|
70867
70881
|
const Yi = na("Filesystem", {
|
|
70868
|
-
web: () => import("./web-
|
|
70882
|
+
web: () => import("./web-B_I1xy51.js").then((d) => new d.FilesystemWeb())
|
|
70869
70883
|
});
|
|
70870
70884
|
ug("Upload", [
|
|
70871
70885
|
{
|
|
@@ -70904,7 +70918,7 @@ function ym(d) {
|
|
|
70904
70918
|
return [p, ...g].join(`
|
|
70905
70919
|
`);
|
|
70906
70920
|
}
|
|
70907
|
-
function
|
|
70921
|
+
function Fx(d, h, f, p) {
|
|
70908
70922
|
const g = f.flatMap((C) => {
|
|
70909
70923
|
var w;
|
|
70910
70924
|
const x = (w = d.find((V) => V.name === C)) == null ? void 0 : w.responseData;
|
|
@@ -70919,7 +70933,7 @@ function Nx(d, h, f, p) {
|
|
|
70919
70933
|
content: ym(g)
|
|
70920
70934
|
};
|
|
70921
70935
|
}
|
|
70922
|
-
const
|
|
70936
|
+
const qx = () => {
|
|
70923
70937
|
const d = window.electronAPI;
|
|
70924
70938
|
return {
|
|
70925
70939
|
directoryExists: async (h) => {
|
|
@@ -70933,7 +70947,7 @@ const _x = () => {
|
|
|
70933
70947
|
await d.saveFile(h, f, p);
|
|
70934
70948
|
}
|
|
70935
70949
|
};
|
|
70936
|
-
},
|
|
70950
|
+
}, Bx = (d) => {
|
|
70937
70951
|
const h = (f) => d ? f ? `${d}/${f}` : d : f;
|
|
70938
70952
|
return {
|
|
70939
70953
|
directoryExists: async (f) => {
|
|
@@ -70987,17 +71001,17 @@ const _x = () => {
|
|
|
70987
71001
|
});
|
|
70988
71002
|
}
|
|
70989
71003
|
};
|
|
70990
|
-
},
|
|
71004
|
+
}, Hx = (d) => {
|
|
70991
71005
|
const h = _l();
|
|
70992
71006
|
switch (h) {
|
|
70993
71007
|
case "desktop":
|
|
70994
|
-
return { backend:
|
|
71008
|
+
return { backend: qx(), type: h };
|
|
70995
71009
|
case "mobile":
|
|
70996
|
-
return { backend:
|
|
71010
|
+
return { backend: Bx(d), type: h };
|
|
70997
71011
|
case "web":
|
|
70998
71012
|
return { backend: null, type: h };
|
|
70999
71013
|
}
|
|
71000
|
-
},
|
|
71014
|
+
}, Qx = async (d, h) => {
|
|
71001
71015
|
let f = h;
|
|
71002
71016
|
if (await d.directoryExists(f)) {
|
|
71003
71017
|
let p = 1;
|
|
@@ -71006,7 +71020,7 @@ const _x = () => {
|
|
|
71006
71020
|
}
|
|
71007
71021
|
return f;
|
|
71008
71022
|
};
|
|
71009
|
-
function
|
|
71023
|
+
function Ux({
|
|
71010
71024
|
data: d,
|
|
71011
71025
|
next: h,
|
|
71012
71026
|
store: f,
|
|
@@ -71020,9 +71034,9 @@ function Hx({
|
|
|
71020
71034
|
}) {
|
|
71021
71035
|
const [S, R] = Lt(
|
|
71022
71036
|
"initial"
|
|
71023
|
-
), L = vt(!1), W = Ws("upload", !0, "boolean"), q = Ws("download", !1, "boolean"), D =
|
|
71037
|
+
), L = vt(!1), W = Ws("upload", !0, "boolean"), q = Ws("download", !1, "boolean"), D = tC({
|
|
71024
71038
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
71025
|
-
mutationFn: async (M) => await
|
|
71039
|
+
mutationFn: async (M) => await aC("/data", M),
|
|
71026
71040
|
onSuccess: (M) => {
|
|
71027
71041
|
M.status === 200 ? (R("success"), h({})) : R("error");
|
|
71028
71042
|
},
|
|
@@ -71030,9 +71044,9 @@ function Hx({
|
|
|
71030
71044
|
R("error");
|
|
71031
71045
|
}
|
|
71032
71046
|
}), P = qt(async (M) => {
|
|
71033
|
-
const F = new
|
|
71047
|
+
const F = new Ox(new ox());
|
|
71034
71048
|
for (const $ of M)
|
|
71035
|
-
await F.add($.filename, new
|
|
71049
|
+
await F.add($.filename, new sx($.content));
|
|
71036
71050
|
const K = await F.close(), Y = URL.createObjectURL(K), B = document.createElement("a");
|
|
71037
71051
|
B.href = Y, B.download = "study-data.zip", document.body.appendChild(B), B.click(), document.body.removeChild(B), URL.revokeObjectURL(Y);
|
|
71038
71052
|
}, []), A = qt(async () => {
|
|
@@ -71040,7 +71054,7 @@ function Hx({
|
|
|
71040
71054
|
if (R("uploading"), L.current)
|
|
71041
71055
|
return;
|
|
71042
71056
|
L.current = !0;
|
|
71043
|
-
const M = p ??
|
|
71057
|
+
const M = p ?? sC(), F = g ? g(M, d, f) : [];
|
|
71044
71058
|
if (w && F.push({
|
|
71045
71059
|
filename: `${M}.raw.json`,
|
|
71046
71060
|
content: JSON.stringify(d),
|
|
@@ -71079,7 +71093,7 @@ function Hx({
|
|
|
71079
71093
|
if (x)
|
|
71080
71094
|
for (const B of x)
|
|
71081
71095
|
F.push(
|
|
71082
|
-
|
|
71096
|
+
Fx(
|
|
71083
71097
|
d,
|
|
71084
71098
|
`${M}${B.filename}.csv`,
|
|
71085
71099
|
B.trials ?? [],
|
|
@@ -71095,12 +71109,12 @@ function Hx({
|
|
|
71095
71109
|
h({});
|
|
71096
71110
|
return;
|
|
71097
71111
|
}
|
|
71098
|
-
const { backend: $, type: Q } =
|
|
71112
|
+
const { backend: $, type: Q } = Hx(b);
|
|
71099
71113
|
if (Q === "web")
|
|
71100
71114
|
D.mutate(B);
|
|
71101
71115
|
else if ($)
|
|
71102
71116
|
try {
|
|
71103
|
-
const H = await
|
|
71117
|
+
const H = await Qx($, M);
|
|
71104
71118
|
await $.createDirectory(H);
|
|
71105
71119
|
for (const te of F)
|
|
71106
71120
|
await $.saveFile(te.filename, te.content, H);
|
|
@@ -71168,9 +71182,9 @@ var Wh;
|
|
|
71168
71182
|
d.None = "NONE", d.Slide = "SLIDE", d.Fade = "FADE";
|
|
71169
71183
|
})(Wh || (Wh = {}));
|
|
71170
71184
|
const vm = na("StatusBar"), bm = na("ImmersiveMode", {
|
|
71171
|
-
web: () => import("./web-
|
|
71185
|
+
web: () => import("./web-DfpITFBR.js").then((d) => new d.ImmersiveModeWeb())
|
|
71172
71186
|
});
|
|
71173
|
-
function
|
|
71187
|
+
function zx({
|
|
71174
71188
|
content: d,
|
|
71175
71189
|
buttonText: h,
|
|
71176
71190
|
next: f,
|
|
@@ -71221,7 +71235,7 @@ function Qx({
|
|
|
71221
71235
|
}
|
|
71222
71236
|
);
|
|
71223
71237
|
}
|
|
71224
|
-
function
|
|
71238
|
+
function Wx({
|
|
71225
71239
|
next: d,
|
|
71226
71240
|
delayMs: h = 0
|
|
71227
71241
|
}) {
|
|
@@ -71272,7 +71286,7 @@ function bi() {
|
|
|
71272
71286
|
return p;
|
|
71273
71287
|
}
|
|
71274
71288
|
const Xs = (d) => typeof d == "number" && !isNaN(d), no = (d) => typeof d == "string", Gr = (d) => typeof d == "function", El = (d) => no(d) || Gr(d) ? d : null, Xc = (d) => _o(d) || no(d) || Gr(d) || Xs(d);
|
|
71275
|
-
function
|
|
71289
|
+
function $x(d, h, f) {
|
|
71276
71290
|
f === void 0 && (f = 300);
|
|
71277
71291
|
const { scrollHeight: p, style: g } = d;
|
|
71278
71292
|
requestAnimationFrame(() => {
|
|
@@ -71293,7 +71307,7 @@ function Ql(d) {
|
|
|
71293
71307
|
A.classList.add(...M), A.addEventListener("animationend", F), A.addEventListener("animationcancel", F);
|
|
71294
71308
|
}, []), ar(() => {
|
|
71295
71309
|
const A = R.current, M = () => {
|
|
71296
|
-
A.removeEventListener("animationend", M), g ?
|
|
71310
|
+
A.removeEventListener("animationend", M), g ? $x(A, S, C) : S();
|
|
71297
71311
|
};
|
|
71298
71312
|
L || (b ? M() : (P.current = 1, A.className += ` ${D}`, A.addEventListener("animationend", M)));
|
|
71299
71313
|
}, [L]), rt.createElement(rt.Fragment, null, w);
|
|
@@ -71304,7 +71318,7 @@ function $h(d, h) {
|
|
|
71304
71318
|
}
|
|
71305
71319
|
const Ir = /* @__PURE__ */ new Map();
|
|
71306
71320
|
let ea = [];
|
|
71307
|
-
const ef = /* @__PURE__ */ new Set(),
|
|
71321
|
+
const ef = /* @__PURE__ */ new Set(), Gx = (d) => ef.forEach((h) => h(d)), xm = () => Ir.size > 0;
|
|
71308
71322
|
function wm(d, h) {
|
|
71309
71323
|
var f;
|
|
71310
71324
|
if (h) return !((f = Ir.get(h)) == null || !f.isToastActive(d));
|
|
@@ -71323,7 +71337,7 @@ function Gh(d, h) {
|
|
|
71323
71337
|
h != null && h != null && h.containerId ? (h == null ? void 0 : h.containerId) === f.id && f.toggle(d, h == null ? void 0 : h.id) : f.toggle(d, h == null ? void 0 : h.id);
|
|
71324
71338
|
});
|
|
71325
71339
|
}
|
|
71326
|
-
function
|
|
71340
|
+
function Zx(d) {
|
|
71327
71341
|
const { subscribe: h, getSnapshot: f, setProps: p } = vt(function(C) {
|
|
71328
71342
|
const x = C.containerId || 1;
|
|
71329
71343
|
return { subscribe(w) {
|
|
@@ -71373,7 +71387,7 @@ function $x(d) {
|
|
|
71373
71387
|
}, setToggle: (Q, H) => {
|
|
71374
71388
|
F.get(Q).toggle = H;
|
|
71375
71389
|
}, isToastActive: (Q) => P.some((H) => H === Q), getSnapshot: () => A };
|
|
71376
|
-
}(x, C,
|
|
71390
|
+
}(x, C, Gx);
|
|
71377
71391
|
Ir.set(x, V);
|
|
71378
71392
|
const b = V.observe(w);
|
|
71379
71393
|
return ea.forEach((S) => Pm(S.content, S.options)), ea = [], () => {
|
|
@@ -71398,7 +71412,7 @@ function $x(d) {
|
|
|
71398
71412
|
}), Array.from(x, (w) => C(w[0], w[1]));
|
|
71399
71413
|
}, isToastActive: wm, count: g == null ? void 0 : g.length };
|
|
71400
71414
|
}
|
|
71401
|
-
function
|
|
71415
|
+
function Jx(d) {
|
|
71402
71416
|
const [h, f] = Lt(!1), [p, g] = Lt(!1), C = vt(null), x = vt({ start: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, didMove: !1 }).current, { autoClose: w, pauseOnHover: V, closeToast: b, onClick: S, closeOnClick: R } = d;
|
|
71403
71417
|
var L, W;
|
|
71404
71418
|
function q() {
|
|
@@ -71438,7 +71452,7 @@ function Gx(d) {
|
|
|
71438
71452
|
S && S(F), x.canCloseOnClick && b();
|
|
71439
71453
|
}), { playToast: q, pauseToast: D, isRunning: h, preventExitTransition: p, toastRef: C, eventHandlers: M };
|
|
71440
71454
|
}
|
|
71441
|
-
function
|
|
71455
|
+
function Kx(d) {
|
|
71442
71456
|
let { delay: h, isRunning: f, closeToast: p, type: g = "default", hide: C, className: x, style: w, controlledProgress: V, progress: b, rtl: S, isIn: R, theme: L } = d;
|
|
71443
71457
|
const W = C || V && b === 0, q = { ...w, animationDuration: `${h}ms`, animationPlayState: f ? "running" : "paused" };
|
|
71444
71458
|
V && (q.transform = `scaleX(${b})`);
|
|
@@ -71447,16 +71461,16 @@ function Zx(d) {
|
|
|
71447
71461
|
} };
|
|
71448
71462
|
return rt.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": W }, rt.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${L} Toastify__progress-bar--${g}` }), rt.createElement("div", { role: "progressbar", "aria-hidden": W ? "true" : "false", "aria-label": "notification timer", className: P, style: q, ...A }));
|
|
71449
71463
|
}
|
|
71450
|
-
let
|
|
71451
|
-
const Sm = () => "" +
|
|
71452
|
-
function
|
|
71464
|
+
let Yx = 1;
|
|
71465
|
+
const Sm = () => "" + Yx++;
|
|
71466
|
+
function Xx(d) {
|
|
71453
71467
|
return d && (no(d.toastId) || Xs(d.toastId)) ? d.toastId : Sm();
|
|
71454
71468
|
}
|
|
71455
71469
|
function Us(d, h) {
|
|
71456
71470
|
return Pm(d, h), h.toastId;
|
|
71457
71471
|
}
|
|
71458
71472
|
function Nl(d, h) {
|
|
71459
|
-
return { ...h, type: h && h.type || d, toastId:
|
|
71473
|
+
return { ...h, type: h && h.type || d, toastId: Xx(h) };
|
|
71460
71474
|
}
|
|
71461
71475
|
function bl(d) {
|
|
71462
71476
|
return (h, f) => Us(h, Nl(d, f));
|
|
@@ -71512,7 +71526,7 @@ It.loading = (d, h) => Us(d, Nl("default", { isLoading: !0, autoClose: !1, close
|
|
|
71512
71526
|
ef.delete(d);
|
|
71513
71527
|
};
|
|
71514
71528
|
}, It.play = (d) => Gh(!0, d), It.pause = (d) => Gh(!1, d);
|
|
71515
|
-
const
|
|
71529
|
+
const e5 = typeof window < "u" ? sg : ar, Cl = (d) => {
|
|
71516
71530
|
let { theme: h, type: f, isLoading: p, ...g } = d;
|
|
71517
71531
|
return rt.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: h === "colored" ? "currentColor" : `var(--toastify-icon-color-${f})`, ...g });
|
|
71518
71532
|
}, kc = { info: function(d) {
|
|
@@ -71525,8 +71539,8 @@ const Yx = typeof window < "u" ? sg : ar, Cl = (d) => {
|
|
|
71525
71539
|
return rt.createElement(Cl, { ...d }, rt.createElement("path", { d: "M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z" }));
|
|
71526
71540
|
}, spinner: function() {
|
|
71527
71541
|
return rt.createElement("div", { className: "Toastify__spinner" });
|
|
71528
|
-
} },
|
|
71529
|
-
const { isRunning: h, preventExitTransition: f, toastRef: p, eventHandlers: g, playToast: C } =
|
|
71542
|
+
} }, t5 = (d) => {
|
|
71543
|
+
const { isRunning: h, preventExitTransition: f, toastRef: p, eventHandlers: g, playToast: C } = Jx(d), { closeButton: x, children: w, autoClose: V, onClick: b, type: S, hideProgressBar: R, closeToast: L, transition: W, position: q, className: D, style: P, bodyClassName: A, bodyStyle: M, progressClassName: F, progressStyle: K, updateId: Y, role: B, progress: $, rtl: Q, toastId: H, deleteToast: te, isIn: ne, isLoading: ae, closeOnClick: U, theme: re } = d, X = bi("Toastify__toast", `Toastify__toast-theme--${re}`, `Toastify__toast--${S}`, { "Toastify__toast--rtl": Q }, { "Toastify__toast--close-on-click": U }), k = Gr(D) ? D({ rtl: Q, position: q, type: S, defaultClassName: X }) : bi(X, D), le = function(Le) {
|
|
71530
71544
|
let { theme: xe, type: Re, isLoading: We, icon: Fe } = Le, be = null;
|
|
71531
71545
|
const qe = { theme: xe, type: Re };
|
|
71532
71546
|
return Fe === !1 || (Gr(Fe) ? be = Fe({ ...qe, isLoading: We }) : _o(Fe) ? be = Mc(Fe, qe) : We ? be = kc.spinner() : ((ot) => ot in kc)(Re) && (be = kc[Re](qe))), be;
|
|
@@ -71537,17 +71551,17 @@ const Yx = typeof window < "u" ? sg : ar, Cl = (d) => {
|
|
|
71537
71551
|
return rt.createElement("button", { className: `Toastify__close-button Toastify__close-button--${Re}`, type: "button", onClick: (Fe) => {
|
|
71538
71552
|
Fe.stopPropagation(), xe(Fe);
|
|
71539
71553
|
}, "aria-label": We }, rt.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, rt.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
|
|
71540
|
-
}(De)), rt.createElement(W, { isIn: ne, done: te, position: q, preventExitTransition: f, nodeRef: p, playToast: C }, rt.createElement("div", { id: H, onClick: b, "data-in": ne, className: k, ...g, style: P, ref: p }, rt.createElement("div", { ...ne && { role: B }, className: Gr(A) ? A({ type: S }) : bi("Toastify__toast-body", A), style: M }, le != null && rt.createElement("div", { className: bi("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !ae }) }, le), rt.createElement("div", null, w)), ce, rt.createElement(
|
|
71554
|
+
}(De)), rt.createElement(W, { isIn: ne, done: te, position: q, preventExitTransition: f, nodeRef: p, playToast: C }, rt.createElement("div", { id: H, onClick: b, "data-in": ne, className: k, ...g, style: P, ref: p }, rt.createElement("div", { ...ne && { role: B }, className: Gr(A) ? A({ type: S }) : bi("Toastify__toast-body", A), style: M }, le != null && rt.createElement("div", { className: bi("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !ae }) }, le), rt.createElement("div", null, w)), ce, rt.createElement(Kx, { ...Y && !he ? { key: `pb-${Y}` } : {}, rtl: Q, theme: re, delay: V, isRunning: h, isIn: ne, closeToast: L, hide: R, type: S, style: K, className: F, controlledProgress: he, progress: $ || 0 })));
|
|
71541
71555
|
}, Ul = function(d, h) {
|
|
71542
71556
|
return h === void 0 && (h = !1), { enter: `Toastify--animate Toastify__${d}-enter`, exit: `Toastify--animate Toastify__${d}-exit`, appendPosition: h };
|
|
71543
|
-
},
|
|
71557
|
+
}, r5 = Ql(Ul("bounce", !0));
|
|
71544
71558
|
Ql(Ul("slide", !0));
|
|
71545
71559
|
Ql(Ul("zoom"));
|
|
71546
71560
|
Ql(Ul("flip"));
|
|
71547
|
-
const
|
|
71548
|
-
function
|
|
71549
|
-
let h = { ...
|
|
71550
|
-
const f = d.stacked, [p, g] = Lt(!0), C = vt(null), { getToastToRender: x, isToastActive: w, count: V } =
|
|
71561
|
+
const n5 = { position: "top-right", transition: r5, autoClose: 5e3, closeButton: !0, pauseOnHover: !0, pauseOnFocusLoss: !0, draggable: "touch", draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light" };
|
|
71562
|
+
function i5(d) {
|
|
71563
|
+
let h = { ...n5, ...d };
|
|
71564
|
+
const f = d.stacked, [p, g] = Lt(!0), C = vt(null), { getToastToRender: x, isToastActive: w, count: V } = Zx(h), { className: b, style: S, rtl: R, containerId: L } = h;
|
|
71551
71565
|
function W(D) {
|
|
71552
71566
|
const P = bi("Toastify__toast-container", `Toastify__toast-container--${D}`, { "Toastify__toast-container--rtl": R });
|
|
71553
71567
|
return Gr(b) ? b({ position: D, rtl: R, defaultClassName: P }) : bi(P, El(b));
|
|
@@ -71555,7 +71569,7 @@ function r5(d) {
|
|
|
71555
71569
|
function q() {
|
|
71556
71570
|
f && (g(!0), It.play());
|
|
71557
71571
|
}
|
|
71558
|
-
return
|
|
71572
|
+
return e5(() => {
|
|
71559
71573
|
if (f) {
|
|
71560
71574
|
var D;
|
|
71561
71575
|
const P = C.current.querySelectorAll('[data-in="true"]'), A = 12, M = (D = h.position) == null ? void 0 : D.includes("top");
|
|
@@ -71573,11 +71587,11 @@ function r5(d) {
|
|
|
71573
71587
|
const A = P.length ? { ...S } : { ...S, pointerEvents: "none" };
|
|
71574
71588
|
return rt.createElement("div", { className: W(D), style: A, key: `container-${D}` }, P.map((M) => {
|
|
71575
71589
|
let { content: F, props: K } = M;
|
|
71576
|
-
return rt.createElement(
|
|
71590
|
+
return rt.createElement(t5, { ...K, stacked: f, collapseAll: q, isIn: w(K.toastId, K.containerId), style: K.style, key: `toast-${K.key}` }, F);
|
|
71577
71591
|
}));
|
|
71578
71592
|
}));
|
|
71579
71593
|
}
|
|
71580
|
-
const
|
|
71594
|
+
const o5 = ({
|
|
71581
71595
|
paramRegistry: d,
|
|
71582
71596
|
timelineRepresentation: h
|
|
71583
71597
|
}) => {
|
|
@@ -72071,18 +72085,18 @@ const n5 = ({
|
|
|
72071
72085
|
}
|
|
72072
72086
|
) })
|
|
72073
72087
|
] });
|
|
72074
|
-
},
|
|
72075
|
-
function
|
|
72088
|
+
}, s5 = new Z1();
|
|
72089
|
+
function x5({ children: d, disableSettings: h }) {
|
|
72076
72090
|
return window.location.pathname.endsWith("/settings") && !h ? /* @__PURE__ */ Z.jsx(
|
|
72077
|
-
|
|
72091
|
+
o5,
|
|
72078
72092
|
{
|
|
72079
72093
|
paramRegistry: Fc.getRegistry(),
|
|
72080
72094
|
timelineRepresentation: Fc.getTimelineRepresentation()
|
|
72081
72095
|
}
|
|
72082
|
-
) : /* @__PURE__ */ Z.jsxs(
|
|
72096
|
+
) : /* @__PURE__ */ Z.jsxs(Y1, { client: s5, children: [
|
|
72083
72097
|
d,
|
|
72084
72098
|
/* @__PURE__ */ Z.jsx(
|
|
72085
|
-
|
|
72099
|
+
i5,
|
|
72086
72100
|
{
|
|
72087
72101
|
position: "top-center",
|
|
72088
72102
|
autoClose: 3e3,
|
|
@@ -72179,7 +72193,7 @@ function jm(d) {
|
|
|
72179
72193
|
}
|
|
72180
72194
|
return w(d), { instructions: h, markers: f };
|
|
72181
72195
|
}
|
|
72182
|
-
function
|
|
72196
|
+
function a5({ next: d }) {
|
|
72183
72197
|
const [h, f] = Lt("checking");
|
|
72184
72198
|
return ar(() => {
|
|
72185
72199
|
if (h !== "checking") return;
|
|
@@ -72234,13 +72248,13 @@ function o5({ next: d }) {
|
|
|
72234
72248
|
)
|
|
72235
72249
|
] });
|
|
72236
72250
|
}
|
|
72237
|
-
function
|
|
72251
|
+
function l5(d) {
|
|
72238
72252
|
return typeof d == "function";
|
|
72239
72253
|
}
|
|
72240
|
-
function
|
|
72254
|
+
function u5(d) {
|
|
72241
72255
|
return typeof d == "object" && d !== null && typeof d.draw == "function";
|
|
72242
72256
|
}
|
|
72243
|
-
function
|
|
72257
|
+
function c5({
|
|
72244
72258
|
next: d,
|
|
72245
72259
|
updateStore: h,
|
|
72246
72260
|
timeline: f,
|
|
@@ -72259,13 +72273,13 @@ function l5({
|
|
|
72259
72273
|
(ae) => {
|
|
72260
72274
|
if (ae.type !== "ExecuteContent") return null;
|
|
72261
72275
|
const U = ae.content;
|
|
72262
|
-
if (
|
|
72276
|
+
if (l5(U))
|
|
72263
72277
|
try {
|
|
72264
72278
|
return U(D.current, P.current);
|
|
72265
72279
|
} catch (re) {
|
|
72266
72280
|
return console.error("Error executing dynamic canvas slide generator:", re), null;
|
|
72267
72281
|
}
|
|
72268
|
-
else if (
|
|
72282
|
+
else if (u5(U))
|
|
72269
72283
|
return U;
|
|
72270
72284
|
return console.warn(
|
|
72271
72285
|
"ExecuteContent instruction content is not a valid CanvasSlide or Generator:",
|
|
@@ -72496,7 +72510,7 @@ function l5({
|
|
|
72496
72510
|
}
|
|
72497
72511
|
);
|
|
72498
72512
|
}
|
|
72499
|
-
function
|
|
72513
|
+
function f5({
|
|
72500
72514
|
check: d,
|
|
72501
72515
|
content: h = /* @__PURE__ */ Z.jsx("div", { children: "Your device doesn't meet the requirements for this experiment." }),
|
|
72502
72516
|
data: f,
|
|
@@ -72563,25 +72577,25 @@ function u5({
|
|
|
72563
72577
|
})();
|
|
72564
72578
|
}, [d, f, g, C]), x ? /* @__PURE__ */ Z.jsx("div", { className: "max-w-prose mx-auto mt-20 mb-20 px-4", children: /* @__PURE__ */ Z.jsx("article", { className: "prose prose-2xl prose-slate text-xl prose-a:text-blue-600 prose-a:underline prose-h1:text-4xl prose-h1:mb-10 prose-h1:font-bold prose-p:mb-4 prose-strong:font-bold text-black leading-relaxed", children: h }) }) : null;
|
|
72565
72579
|
}
|
|
72566
|
-
const
|
|
72580
|
+
const p5 = {
|
|
72567
72581
|
Text: rf,
|
|
72568
|
-
ProlificEnding:
|
|
72569
|
-
EnterFullscreen:
|
|
72570
|
-
ExitFullscreen:
|
|
72571
|
-
Quest:
|
|
72572
|
-
Upload:
|
|
72573
|
-
MicrophoneCheck:
|
|
72574
|
-
PlainInput:
|
|
72575
|
-
RequestFilePermission:
|
|
72576
|
-
CanvasBlock:
|
|
72577
|
-
CheckDevice:
|
|
72578
|
-
},
|
|
72579
|
-
voicerecorder:
|
|
72582
|
+
ProlificEnding: c1,
|
|
72583
|
+
EnterFullscreen: zx,
|
|
72584
|
+
ExitFullscreen: Wx,
|
|
72585
|
+
Quest: V1,
|
|
72586
|
+
Upload: Ux,
|
|
72587
|
+
MicrophoneCheck: S1,
|
|
72588
|
+
PlainInput: u1,
|
|
72589
|
+
RequestFilePermission: a5,
|
|
72590
|
+
CanvasBlock: c5,
|
|
72591
|
+
CheckDevice: f5
|
|
72592
|
+
}, d5 = {
|
|
72593
|
+
voicerecorder: w1
|
|
72580
72594
|
};
|
|
72581
72595
|
function Jh(d) {
|
|
72582
72596
|
return typeof d == "object" && d !== null && typeof d.type == "string";
|
|
72583
72597
|
}
|
|
72584
|
-
function
|
|
72598
|
+
function w5({
|
|
72585
72599
|
timeline: d,
|
|
72586
72600
|
config: h = {
|
|
72587
72601
|
showProgressBar: !1
|
|
@@ -72623,7 +72637,7 @@ function C5({
|
|
|
72623
72637
|
params: H
|
|
72624
72638
|
}
|
|
72625
72639
|
}];
|
|
72626
|
-
}), [b, S] = Lt(0), R = vt(br()), L = vt({}), W = { ...
|
|
72640
|
+
}), [b, S] = Lt(0), R = vt(br()), L = vt({}), W = { ...p5, ...f }, q = { ...d5, ...p }, D = Nc(() => {
|
|
72627
72641
|
const B = g.instructions.length;
|
|
72628
72642
|
return B > 0 ? C / B : 0;
|
|
72629
72643
|
}, [C, g.instructions]);
|
|
@@ -72772,33 +72786,35 @@ function C5({
|
|
|
72772
72786
|
] });
|
|
72773
72787
|
}
|
|
72774
72788
|
export {
|
|
72775
|
-
|
|
72789
|
+
c5 as C,
|
|
72776
72790
|
Yc as E,
|
|
72777
|
-
|
|
72791
|
+
S1 as M,
|
|
72778
72792
|
Fc as P,
|
|
72779
|
-
|
|
72780
|
-
|
|
72793
|
+
V1 as Q,
|
|
72794
|
+
a5 as R,
|
|
72781
72795
|
rf as T,
|
|
72782
|
-
|
|
72796
|
+
Ux as U,
|
|
72783
72797
|
ag as W,
|
|
72784
72798
|
G0 as a,
|
|
72785
|
-
|
|
72786
|
-
|
|
72787
|
-
|
|
72788
|
-
|
|
72789
|
-
|
|
72799
|
+
i1 as b,
|
|
72800
|
+
J0 as c,
|
|
72801
|
+
v5 as d,
|
|
72802
|
+
_l as e,
|
|
72803
|
+
s1 as f,
|
|
72790
72804
|
Ws as g,
|
|
72791
|
-
|
|
72805
|
+
ug as h,
|
|
72792
72806
|
zs as i,
|
|
72793
|
-
|
|
72794
|
-
|
|
72795
|
-
|
|
72796
|
-
|
|
72807
|
+
b5 as j,
|
|
72808
|
+
C5 as k,
|
|
72809
|
+
u1 as l,
|
|
72810
|
+
c1 as m,
|
|
72797
72811
|
br as n,
|
|
72798
|
-
|
|
72799
|
-
|
|
72800
|
-
|
|
72801
|
-
|
|
72812
|
+
zx as o,
|
|
72813
|
+
Z0 as p,
|
|
72814
|
+
Wx as q,
|
|
72815
|
+
y5 as r,
|
|
72802
72816
|
$0 as s,
|
|
72803
|
-
|
|
72817
|
+
x5 as t,
|
|
72818
|
+
w5 as u,
|
|
72819
|
+
f5 as v
|
|
72804
72820
|
};
|