@adriansteffan/reactive 0.1.19 → 0.1.21
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-CHny3ll3.js → mod-C-Og4rU7.js} +1065 -1064
- package/dist/mod.d.ts +4 -2
- package/dist/reactive.es.js +1 -1
- package/dist/reactive.umd.js +27 -27
- package/dist/{web-Bj8F7OFt.js → web-BpGTOJKj.js} +1 -1
- package/dist/{web-BnuZtMKb.js → web-_052v_pG.js} +1 -1
- package/package.json +1 -1
- package/src/components/enterfullscreen.tsx +1 -1
- package/src/components/tutorial.tsx +4 -1
- package/src/components/upload.tsx +2 -2
|
@@ -13273,8 +13273,8 @@ var yY = Zi, wh = Cu, dC = yu, CY = Ua, bY = WE, wY = vY, xY = 1048575, pC = 104
|
|
|
13273
13273
|
// 0x3E4CFDEB, 0x43CFD006
|
|
13274
13274
|
];
|
|
13275
13275
|
function DY(i, e, t) {
|
|
13276
|
-
var s, r, n, a, o, l, u, h, c, d, f, y, v, m, g, b, x, T,
|
|
13277
|
-
return
|
|
13276
|
+
var s, r, n, a, o, l, u, h, c, d, f, y, v, m, g, b, x, T, A, L, D, V;
|
|
13277
|
+
return L = 0, t < pC && (e *= TY, L -= 53, t = yY(e)), L += (t >> bY) - CY | 0, D = t & xY | 0, t = D | EY | 0, D <= 235662 ? V = 0 : D < 767610 ? V = 1 : (V = 0, L += 1, t -= pC), e = dC(e, t), h = AY[V], T = e - h, A = 1 / (e + h), r = T * A, a = wh(r, 0), s = (t >> 1 | VY) + SY, s += V << 18, l = dC(0, s), u = e - (l - h), o = A * (T - a * l - a * u), n = r * r, x = n * n * wY(n), x += o * (a + r), n = a * a, l = 3 + n + x, l = wh(l, 0), u = x - (l - 3 - n), T = a * l, A = o * l + u * r, d = T + A, d = wh(d, 0), f = A - (d - T), y = IY * d, v = RY * d + f * PY + _Y[V], c = LY[V], b = L, m = y + v + c + b, m = wh(m, 0), g = v - (m - b - c - y), i[0] = m, i[1] = g, i;
|
|
13278
13278
|
}
|
|
13279
13279
|
var kY = DY;
|
|
13280
13280
|
/**
|
|
@@ -16422,61 +16422,61 @@ const hae = (i) => {
|
|
|
16422
16422
|
return console.warn(`Capacitor plugin "${c}" already registered. Cannot register plugins twice.`), f.proxy;
|
|
16423
16423
|
const y = r(), v = o(c);
|
|
16424
16424
|
let m;
|
|
16425
|
-
const g = async () => (!m && y in d ? m = typeof d[y] == "function" ? m = await d[y]() : m = d[y] : e !== null && !m && "web" in d && (m = typeof d.web == "function" ? m = await d.web() : m = d.web), m), b = (V,
|
|
16426
|
-
var
|
|
16425
|
+
const g = async () => (!m && y in d ? m = typeof d[y] == "function" ? m = await d[y]() : m = d[y] : e !== null && !m && "web" in d && (m = typeof d.web == "function" ? m = await d.web() : m = d.web), m), b = (V, I) => {
|
|
16426
|
+
var M, q;
|
|
16427
16427
|
if (v) {
|
|
16428
|
-
const Q = v == null ? void 0 : v.methods.find((
|
|
16428
|
+
const Q = v == null ? void 0 : v.methods.find((_) => I === _.name);
|
|
16429
16429
|
if (Q)
|
|
16430
|
-
return Q.rtype === "promise" ? (
|
|
16430
|
+
return Q.rtype === "promise" ? (_) => t.nativePromise(c, I.toString(), _) : (_, B) => t.nativeCallback(c, I.toString(), _, B);
|
|
16431
16431
|
if (V)
|
|
16432
|
-
return (
|
|
16432
|
+
return (M = V[I]) === null || M === void 0 ? void 0 : M.bind(V);
|
|
16433
16433
|
} else {
|
|
16434
16434
|
if (V)
|
|
16435
|
-
return (q = V[
|
|
16435
|
+
return (q = V[I]) === null || q === void 0 ? void 0 : q.bind(V);
|
|
16436
16436
|
throw new pf(`"${c}" plugin is not implemented on ${y}`, ko.Unimplemented);
|
|
16437
16437
|
}
|
|
16438
16438
|
}, x = (V) => {
|
|
16439
|
-
let
|
|
16440
|
-
const
|
|
16441
|
-
const Q = g().then((
|
|
16442
|
-
const B = b(
|
|
16439
|
+
let I;
|
|
16440
|
+
const M = (...q) => {
|
|
16441
|
+
const Q = g().then((_) => {
|
|
16442
|
+
const B = b(_, V);
|
|
16443
16443
|
if (B) {
|
|
16444
16444
|
const H = B(...q);
|
|
16445
|
-
return
|
|
16445
|
+
return I = H == null ? void 0 : H.remove, H;
|
|
16446
16446
|
} else
|
|
16447
16447
|
throw new pf(`"${c}.${V}()" is not implemented on ${y}`, ko.Unimplemented);
|
|
16448
16448
|
});
|
|
16449
|
-
return V === "addListener" && (Q.remove = async () =>
|
|
16449
|
+
return V === "addListener" && (Q.remove = async () => I()), Q;
|
|
16450
16450
|
};
|
|
16451
|
-
return
|
|
16451
|
+
return M.toString = () => `${V.toString()}() { [capacitor code] }`, Object.defineProperty(M, "name", {
|
|
16452
16452
|
value: V,
|
|
16453
16453
|
writable: !1,
|
|
16454
16454
|
configurable: !1
|
|
16455
|
-
}),
|
|
16456
|
-
}, T = x("addListener"),
|
|
16457
|
-
const
|
|
16458
|
-
const
|
|
16459
|
-
|
|
16455
|
+
}), M;
|
|
16456
|
+
}, T = x("addListener"), A = x("removeListener"), L = (V, I) => {
|
|
16457
|
+
const M = T({ eventName: V }, I), q = async () => {
|
|
16458
|
+
const _ = await M;
|
|
16459
|
+
A({
|
|
16460
16460
|
eventName: V,
|
|
16461
|
-
callbackId:
|
|
16462
|
-
},
|
|
16463
|
-
}, Q = new Promise((
|
|
16461
|
+
callbackId: _
|
|
16462
|
+
}, I);
|
|
16463
|
+
}, Q = new Promise((_) => M.then(() => _({ remove: q })));
|
|
16464
16464
|
return Q.remove = async () => {
|
|
16465
16465
|
console.warn("Using addListener() without 'await' is deprecated."), await q();
|
|
16466
16466
|
}, Q;
|
|
16467
16467
|
}, D = new Proxy({}, {
|
|
16468
|
-
get(V,
|
|
16469
|
-
switch (
|
|
16468
|
+
get(V, I) {
|
|
16469
|
+
switch (I) {
|
|
16470
16470
|
case "$$typeof":
|
|
16471
16471
|
return;
|
|
16472
16472
|
case "toJSON":
|
|
16473
16473
|
return () => ({});
|
|
16474
16474
|
case "addListener":
|
|
16475
|
-
return v ?
|
|
16475
|
+
return v ? L : T;
|
|
16476
16476
|
case "removeListener":
|
|
16477
|
-
return
|
|
16477
|
+
return A;
|
|
16478
16478
|
default:
|
|
16479
|
-
return x(
|
|
16479
|
+
return x(I);
|
|
16480
16480
|
}
|
|
16481
16481
|
}
|
|
16482
16482
|
});
|
|
@@ -17310,57 +17310,57 @@ var Vb;
|
|
|
17310
17310
|
function Rae() {
|
|
17311
17311
|
return Vb || (Vb = 1, process.env.NODE_ENV !== "production" && function() {
|
|
17312
17312
|
var i = Ze, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), o = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), y = Symbol.iterator, v = "@@iterator";
|
|
17313
|
-
function m(
|
|
17314
|
-
if (
|
|
17313
|
+
function m(N) {
|
|
17314
|
+
if (N === null || typeof N != "object")
|
|
17315
17315
|
return null;
|
|
17316
|
-
var ie = y &&
|
|
17316
|
+
var ie = y && N[y] || N[v];
|
|
17317
17317
|
return typeof ie == "function" ? ie : null;
|
|
17318
17318
|
}
|
|
17319
17319
|
var g = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
17320
|
-
function b(
|
|
17320
|
+
function b(N) {
|
|
17321
17321
|
{
|
|
17322
17322
|
for (var ie = arguments.length, me = new Array(ie > 1 ? ie - 1 : 0), Fe = 1; Fe < ie; Fe++)
|
|
17323
17323
|
me[Fe - 1] = arguments[Fe];
|
|
17324
|
-
x("error",
|
|
17324
|
+
x("error", N, me);
|
|
17325
17325
|
}
|
|
17326
17326
|
}
|
|
17327
|
-
function x(
|
|
17327
|
+
function x(N, ie, me) {
|
|
17328
17328
|
{
|
|
17329
17329
|
var Fe = g.ReactDebugCurrentFrame, bt = Fe.getStackAddendum();
|
|
17330
17330
|
bt !== "" && (ie += "%s", me = me.concat([bt]));
|
|
17331
17331
|
var Pt = me.map(function(it) {
|
|
17332
17332
|
return String(it);
|
|
17333
17333
|
});
|
|
17334
|
-
Pt.unshift("Warning: " + ie), Function.prototype.apply.call(console[
|
|
17334
|
+
Pt.unshift("Warning: " + ie), Function.prototype.apply.call(console[N], console, Pt);
|
|
17335
17335
|
}
|
|
17336
17336
|
}
|
|
17337
|
-
var T = !1,
|
|
17338
|
-
|
|
17339
|
-
function N
|
|
17340
|
-
return !!(typeof
|
|
17337
|
+
var T = !1, A = !1, L = !1, D = !1, V = !1, I;
|
|
17338
|
+
I = Symbol.for("react.module.reference");
|
|
17339
|
+
function M(N) {
|
|
17340
|
+
return !!(typeof N == "string" || typeof N == "function" || N === s || N === n || V || N === r || N === u || N === h || D || N === f || T || A || L || typeof N == "object" && N !== null && (N.$$typeof === d || N.$$typeof === c || N.$$typeof === a || N.$$typeof === o || N.$$typeof === l || // This needs to include all possible module reference object
|
|
17341
17341
|
// types supported by any Flight configuration anywhere since
|
|
17342
17342
|
// we don't know which Flight build this will end up being used
|
|
17343
17343
|
// with.
|
|
17344
|
-
|
|
17344
|
+
N.$$typeof === I || N.getModuleId !== void 0));
|
|
17345
17345
|
}
|
|
17346
|
-
function q(
|
|
17347
|
-
var Fe =
|
|
17346
|
+
function q(N, ie, me) {
|
|
17347
|
+
var Fe = N.displayName;
|
|
17348
17348
|
if (Fe)
|
|
17349
17349
|
return Fe;
|
|
17350
17350
|
var bt = ie.displayName || ie.name || "";
|
|
17351
17351
|
return bt !== "" ? me + "(" + bt + ")" : me;
|
|
17352
17352
|
}
|
|
17353
|
-
function Q(
|
|
17354
|
-
return
|
|
17353
|
+
function Q(N) {
|
|
17354
|
+
return N.displayName || "Context";
|
|
17355
17355
|
}
|
|
17356
|
-
function
|
|
17357
|
-
if (
|
|
17356
|
+
function _(N) {
|
|
17357
|
+
if (N == null)
|
|
17358
17358
|
return null;
|
|
17359
|
-
if (typeof
|
|
17360
|
-
return
|
|
17361
|
-
if (typeof
|
|
17362
|
-
return
|
|
17363
|
-
switch (
|
|
17359
|
+
if (typeof N.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof N == "function")
|
|
17360
|
+
return N.displayName || N.name || null;
|
|
17361
|
+
if (typeof N == "string")
|
|
17362
|
+
return N;
|
|
17363
|
+
switch (N) {
|
|
17364
17364
|
case s:
|
|
17365
17365
|
return "Fragment";
|
|
17366
17366
|
case t:
|
|
@@ -17374,23 +17374,23 @@ function Rae() {
|
|
|
17374
17374
|
case h:
|
|
17375
17375
|
return "SuspenseList";
|
|
17376
17376
|
}
|
|
17377
|
-
if (typeof
|
|
17378
|
-
switch (
|
|
17377
|
+
if (typeof N == "object")
|
|
17378
|
+
switch (N.$$typeof) {
|
|
17379
17379
|
case o:
|
|
17380
|
-
var ie =
|
|
17380
|
+
var ie = N;
|
|
17381
17381
|
return Q(ie) + ".Consumer";
|
|
17382
17382
|
case a:
|
|
17383
|
-
var me =
|
|
17383
|
+
var me = N;
|
|
17384
17384
|
return Q(me._context) + ".Provider";
|
|
17385
17385
|
case l:
|
|
17386
|
-
return q(
|
|
17386
|
+
return q(N, N.render, "ForwardRef");
|
|
17387
17387
|
case c:
|
|
17388
|
-
var Fe =
|
|
17389
|
-
return Fe !== null ? Fe :
|
|
17388
|
+
var Fe = N.displayName || null;
|
|
17389
|
+
return Fe !== null ? Fe : _(N.type) || "Memo";
|
|
17390
17390
|
case d: {
|
|
17391
|
-
var bt =
|
|
17391
|
+
var bt = N, Pt = bt._payload, it = bt._init;
|
|
17392
17392
|
try {
|
|
17393
|
-
return
|
|
17393
|
+
return _(it(Pt));
|
|
17394
17394
|
} catch {
|
|
17395
17395
|
return null;
|
|
17396
17396
|
}
|
|
@@ -17406,20 +17406,20 @@ function Rae() {
|
|
|
17406
17406
|
{
|
|
17407
17407
|
if (H === 0) {
|
|
17408
17408
|
$ = console.log, j = console.info, G = console.warn, ne = console.error, Y = console.group, oe = console.groupCollapsed, re = console.groupEnd;
|
|
17409
|
-
var
|
|
17409
|
+
var N = {
|
|
17410
17410
|
configurable: !0,
|
|
17411
17411
|
enumerable: !0,
|
|
17412
17412
|
value: ue,
|
|
17413
17413
|
writable: !0
|
|
17414
17414
|
};
|
|
17415
17415
|
Object.defineProperties(console, {
|
|
17416
|
-
info:
|
|
17417
|
-
log:
|
|
17418
|
-
warn:
|
|
17419
|
-
error:
|
|
17420
|
-
group:
|
|
17421
|
-
groupCollapsed:
|
|
17422
|
-
groupEnd:
|
|
17416
|
+
info: N,
|
|
17417
|
+
log: N,
|
|
17418
|
+
warn: N,
|
|
17419
|
+
error: N,
|
|
17420
|
+
group: N,
|
|
17421
|
+
groupCollapsed: N,
|
|
17422
|
+
groupEnd: N
|
|
17423
17423
|
});
|
|
17424
17424
|
}
|
|
17425
17425
|
H++;
|
|
@@ -17428,31 +17428,31 @@ function Rae() {
|
|
|
17428
17428
|
function ge() {
|
|
17429
17429
|
{
|
|
17430
17430
|
if (H--, H === 0) {
|
|
17431
|
-
var
|
|
17431
|
+
var N = {
|
|
17432
17432
|
configurable: !0,
|
|
17433
17433
|
enumerable: !0,
|
|
17434
17434
|
writable: !0
|
|
17435
17435
|
};
|
|
17436
17436
|
Object.defineProperties(console, {
|
|
17437
|
-
log: B({},
|
|
17437
|
+
log: B({}, N, {
|
|
17438
17438
|
value: $
|
|
17439
17439
|
}),
|
|
17440
|
-
info: B({},
|
|
17440
|
+
info: B({}, N, {
|
|
17441
17441
|
value: j
|
|
17442
17442
|
}),
|
|
17443
|
-
warn: B({},
|
|
17443
|
+
warn: B({}, N, {
|
|
17444
17444
|
value: G
|
|
17445
17445
|
}),
|
|
17446
|
-
error: B({},
|
|
17446
|
+
error: B({}, N, {
|
|
17447
17447
|
value: ne
|
|
17448
17448
|
}),
|
|
17449
|
-
group: B({},
|
|
17449
|
+
group: B({}, N, {
|
|
17450
17450
|
value: Y
|
|
17451
17451
|
}),
|
|
17452
|
-
groupCollapsed: B({},
|
|
17452
|
+
groupCollapsed: B({}, N, {
|
|
17453
17453
|
value: oe
|
|
17454
17454
|
}),
|
|
17455
|
-
groupEnd: B({},
|
|
17455
|
+
groupEnd: B({}, N, {
|
|
17456
17456
|
value: re
|
|
17457
17457
|
})
|
|
17458
17458
|
});
|
|
@@ -17461,7 +17461,7 @@ function Rae() {
|
|
|
17461
17461
|
}
|
|
17462
17462
|
}
|
|
17463
17463
|
var te = g.ReactCurrentDispatcher, we;
|
|
17464
|
-
function et(
|
|
17464
|
+
function et(N, ie, me) {
|
|
17465
17465
|
{
|
|
17466
17466
|
if (we === void 0)
|
|
17467
17467
|
try {
|
|
@@ -17471,7 +17471,7 @@ function Rae() {
|
|
|
17471
17471
|
we = Fe && Fe[1] || "";
|
|
17472
17472
|
}
|
|
17473
17473
|
return `
|
|
17474
|
-
` + we +
|
|
17474
|
+
` + we + N;
|
|
17475
17475
|
}
|
|
17476
17476
|
}
|
|
17477
17477
|
var Yt = !1, Gt;
|
|
@@ -17479,11 +17479,11 @@ function Rae() {
|
|
|
17479
17479
|
var Is = typeof WeakMap == "function" ? WeakMap : Map;
|
|
17480
17480
|
Gt = new Is();
|
|
17481
17481
|
}
|
|
17482
|
-
function Et(
|
|
17483
|
-
if (!
|
|
17482
|
+
function Et(N, ie) {
|
|
17483
|
+
if (!N || Yt)
|
|
17484
17484
|
return "";
|
|
17485
17485
|
{
|
|
17486
|
-
var me = Gt.get(
|
|
17486
|
+
var me = Gt.get(N);
|
|
17487
17487
|
if (me !== void 0)
|
|
17488
17488
|
return me;
|
|
17489
17489
|
}
|
|
@@ -17508,14 +17508,14 @@ function Rae() {
|
|
|
17508
17508
|
} catch ($s) {
|
|
17509
17509
|
Fe = $s;
|
|
17510
17510
|
}
|
|
17511
|
-
Reflect.construct(
|
|
17511
|
+
Reflect.construct(N, [], it);
|
|
17512
17512
|
} else {
|
|
17513
17513
|
try {
|
|
17514
17514
|
it.call();
|
|
17515
17515
|
} catch ($s) {
|
|
17516
17516
|
Fe = $s;
|
|
17517
17517
|
}
|
|
17518
|
-
|
|
17518
|
+
N.call(it.prototype);
|
|
17519
17519
|
}
|
|
17520
17520
|
} else {
|
|
17521
17521
|
try {
|
|
@@ -17523,7 +17523,7 @@ function Rae() {
|
|
|
17523
17523
|
} catch ($s) {
|
|
17524
17524
|
Fe = $s;
|
|
17525
17525
|
}
|
|
17526
|
-
|
|
17526
|
+
N();
|
|
17527
17527
|
}
|
|
17528
17528
|
} catch ($s) {
|
|
17529
17529
|
if ($s && Fe && typeof $s.stack == "string") {
|
|
@@ -17538,7 +17538,7 @@ function Rae() {
|
|
|
17538
17538
|
if (jt--, Kt--, Kt < 0 || Ye[jt] !== As[Kt]) {
|
|
17539
17539
|
var si = `
|
|
17540
17540
|
` + Ye[jt].replace(" at new ", " at ");
|
|
17541
|
-
return
|
|
17541
|
+
return N.displayName && si.includes("<anonymous>") && (si = si.replace("<anonymous>", N.displayName)), typeof N == "function" && Gt.set(N, si), si;
|
|
17542
17542
|
}
|
|
17543
17543
|
while (jt >= 1 && Kt >= 0);
|
|
17544
17544
|
break;
|
|
@@ -17547,37 +17547,37 @@ function Rae() {
|
|
|
17547
17547
|
} finally {
|
|
17548
17548
|
Yt = !1, te.current = Pt, ge(), Error.prepareStackTrace = bt;
|
|
17549
17549
|
}
|
|
17550
|
-
var bn =
|
|
17551
|
-
return typeof
|
|
17550
|
+
var bn = N ? N.displayName || N.name : "", jr = bn ? et(bn) : "";
|
|
17551
|
+
return typeof N == "function" && Gt.set(N, jr), jr;
|
|
17552
17552
|
}
|
|
17553
|
-
function cs(
|
|
17554
|
-
return Et(
|
|
17553
|
+
function cs(N, ie, me) {
|
|
17554
|
+
return Et(N, !1);
|
|
17555
17555
|
}
|
|
17556
|
-
function rs(
|
|
17557
|
-
var ie =
|
|
17556
|
+
function rs(N) {
|
|
17557
|
+
var ie = N.prototype;
|
|
17558
17558
|
return !!(ie && ie.isReactComponent);
|
|
17559
17559
|
}
|
|
17560
|
-
function Le(
|
|
17561
|
-
if (
|
|
17560
|
+
function Le(N, ie, me) {
|
|
17561
|
+
if (N == null)
|
|
17562
17562
|
return "";
|
|
17563
|
-
if (typeof
|
|
17564
|
-
return Et(
|
|
17565
|
-
if (typeof
|
|
17566
|
-
return et(
|
|
17567
|
-
switch (
|
|
17563
|
+
if (typeof N == "function")
|
|
17564
|
+
return Et(N, rs(N));
|
|
17565
|
+
if (typeof N == "string")
|
|
17566
|
+
return et(N);
|
|
17567
|
+
switch (N) {
|
|
17568
17568
|
case u:
|
|
17569
17569
|
return et("Suspense");
|
|
17570
17570
|
case h:
|
|
17571
17571
|
return et("SuspenseList");
|
|
17572
17572
|
}
|
|
17573
|
-
if (typeof
|
|
17574
|
-
switch (
|
|
17573
|
+
if (typeof N == "object")
|
|
17574
|
+
switch (N.$$typeof) {
|
|
17575
17575
|
case l:
|
|
17576
|
-
return cs(
|
|
17576
|
+
return cs(N.render);
|
|
17577
17577
|
case c:
|
|
17578
|
-
return Le(
|
|
17578
|
+
return Le(N.type, ie, me);
|
|
17579
17579
|
case d: {
|
|
17580
|
-
var Fe =
|
|
17580
|
+
var Fe = N, bt = Fe._payload, Pt = Fe._init;
|
|
17581
17581
|
try {
|
|
17582
17582
|
return Le(Pt(bt), ie, me);
|
|
17583
17583
|
} catch {
|
|
@@ -17587,25 +17587,25 @@ function Rae() {
|
|
|
17587
17587
|
return "";
|
|
17588
17588
|
}
|
|
17589
17589
|
var st = Object.prototype.hasOwnProperty, Mt = {}, zt = g.ReactDebugCurrentFrame;
|
|
17590
|
-
function Ct(
|
|
17591
|
-
if (
|
|
17592
|
-
var ie =
|
|
17590
|
+
function Ct(N) {
|
|
17591
|
+
if (N) {
|
|
17592
|
+
var ie = N._owner, me = Le(N.type, N._source, ie ? ie.type : null);
|
|
17593
17593
|
zt.setExtraStackFrame(me);
|
|
17594
17594
|
} else
|
|
17595
17595
|
zt.setExtraStackFrame(null);
|
|
17596
17596
|
}
|
|
17597
|
-
function _e(
|
|
17597
|
+
function _e(N, ie, me, Fe, bt) {
|
|
17598
17598
|
{
|
|
17599
17599
|
var Pt = Function.call.bind(st);
|
|
17600
|
-
for (var it in
|
|
17601
|
-
if (Pt(
|
|
17600
|
+
for (var it in N)
|
|
17601
|
+
if (Pt(N, it)) {
|
|
17602
17602
|
var Ye = void 0;
|
|
17603
17603
|
try {
|
|
17604
|
-
if (typeof
|
|
17605
|
-
var As = Error((Fe || "React class") + ": " + me + " type `" + it + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof
|
|
17604
|
+
if (typeof N[it] != "function") {
|
|
17605
|
+
var As = Error((Fe || "React class") + ": " + me + " type `" + it + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof N[it] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
17606
17606
|
throw As.name = "Invariant Violation", As;
|
|
17607
17607
|
}
|
|
17608
|
-
Ye =
|
|
17608
|
+
Ye = N[it](ie, it, Fe, me, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
17609
17609
|
} catch (jt) {
|
|
17610
17610
|
Ye = jt;
|
|
17611
17611
|
}
|
|
@@ -17614,28 +17614,28 @@ function Rae() {
|
|
|
17614
17614
|
}
|
|
17615
17615
|
}
|
|
17616
17616
|
var Ge = Array.isArray;
|
|
17617
|
-
function Te(
|
|
17618
|
-
return Ge(
|
|
17617
|
+
function Te(N) {
|
|
17618
|
+
return Ge(N);
|
|
17619
17619
|
}
|
|
17620
|
-
function ns(
|
|
17620
|
+
function ns(N) {
|
|
17621
17621
|
{
|
|
17622
|
-
var ie = typeof Symbol == "function" && Symbol.toStringTag, me = ie &&
|
|
17622
|
+
var ie = typeof Symbol == "function" && Symbol.toStringTag, me = ie && N[Symbol.toStringTag] || N.constructor.name || "Object";
|
|
17623
17623
|
return me;
|
|
17624
17624
|
}
|
|
17625
17625
|
}
|
|
17626
|
-
function bs(
|
|
17626
|
+
function bs(N) {
|
|
17627
17627
|
try {
|
|
17628
|
-
return ws(
|
|
17628
|
+
return ws(N), !1;
|
|
17629
17629
|
} catch {
|
|
17630
17630
|
return !0;
|
|
17631
17631
|
}
|
|
17632
17632
|
}
|
|
17633
|
-
function ws(
|
|
17634
|
-
return "" +
|
|
17633
|
+
function ws(N) {
|
|
17634
|
+
return "" + N;
|
|
17635
17635
|
}
|
|
17636
|
-
function Ur(
|
|
17637
|
-
if (bs(
|
|
17638
|
-
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ns(
|
|
17636
|
+
function Ur(N) {
|
|
17637
|
+
if (bs(N))
|
|
17638
|
+
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ns(N)), ws(N);
|
|
17639
17639
|
}
|
|
17640
17640
|
var js = g.ReactCurrentOwner, Ws = {
|
|
17641
17641
|
key: !0,
|
|
@@ -17643,53 +17643,53 @@ function Rae() {
|
|
|
17643
17643
|
__self: !0,
|
|
17644
17644
|
__source: !0
|
|
17645
17645
|
}, _i, Gs;
|
|
17646
|
-
function Di(
|
|
17647
|
-
if (st.call(
|
|
17648
|
-
var ie = Object.getOwnPropertyDescriptor(
|
|
17646
|
+
function Di(N) {
|
|
17647
|
+
if (st.call(N, "ref")) {
|
|
17648
|
+
var ie = Object.getOwnPropertyDescriptor(N, "ref").get;
|
|
17649
17649
|
if (ie && ie.isReactWarning)
|
|
17650
17650
|
return !1;
|
|
17651
17651
|
}
|
|
17652
|
-
return
|
|
17652
|
+
return N.ref !== void 0;
|
|
17653
17653
|
}
|
|
17654
|
-
function da(
|
|
17655
|
-
if (st.call(
|
|
17656
|
-
var ie = Object.getOwnPropertyDescriptor(
|
|
17654
|
+
function da(N) {
|
|
17655
|
+
if (st.call(N, "key")) {
|
|
17656
|
+
var ie = Object.getOwnPropertyDescriptor(N, "key").get;
|
|
17657
17657
|
if (ie && ie.isReactWarning)
|
|
17658
17658
|
return !1;
|
|
17659
17659
|
}
|
|
17660
|
-
return
|
|
17660
|
+
return N.key !== void 0;
|
|
17661
17661
|
}
|
|
17662
|
-
function Cn(
|
|
17663
|
-
typeof
|
|
17662
|
+
function Cn(N, ie) {
|
|
17663
|
+
typeof N.ref == "string" && js.current;
|
|
17664
17664
|
}
|
|
17665
|
-
function Z(
|
|
17665
|
+
function Z(N, ie) {
|
|
17666
17666
|
{
|
|
17667
17667
|
var me = function() {
|
|
17668
17668
|
_i || (_i = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", ie));
|
|
17669
17669
|
};
|
|
17670
|
-
me.isReactWarning = !0, Object.defineProperty(
|
|
17670
|
+
me.isReactWarning = !0, Object.defineProperty(N, "key", {
|
|
17671
17671
|
get: me,
|
|
17672
17672
|
configurable: !0
|
|
17673
17673
|
});
|
|
17674
17674
|
}
|
|
17675
17675
|
}
|
|
17676
|
-
function se(
|
|
17676
|
+
function se(N, ie) {
|
|
17677
17677
|
{
|
|
17678
17678
|
var me = function() {
|
|
17679
17679
|
Gs || (Gs = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", ie));
|
|
17680
17680
|
};
|
|
17681
|
-
me.isReactWarning = !0, Object.defineProperty(
|
|
17681
|
+
me.isReactWarning = !0, Object.defineProperty(N, "ref", {
|
|
17682
17682
|
get: me,
|
|
17683
17683
|
configurable: !0
|
|
17684
17684
|
});
|
|
17685
17685
|
}
|
|
17686
17686
|
}
|
|
17687
|
-
var X = function(
|
|
17687
|
+
var X = function(N, ie, me, Fe, bt, Pt, it) {
|
|
17688
17688
|
var Ye = {
|
|
17689
17689
|
// This tag allows us to uniquely identify this as a React Element
|
|
17690
17690
|
$$typeof: e,
|
|
17691
17691
|
// Built-in properties that belong on the element
|
|
17692
|
-
type:
|
|
17692
|
+
type: N,
|
|
17693
17693
|
key: ie,
|
|
17694
17694
|
ref: me,
|
|
17695
17695
|
props: it,
|
|
@@ -17713,58 +17713,58 @@ function Rae() {
|
|
|
17713
17713
|
value: bt
|
|
17714
17714
|
}), Object.freeze && (Object.freeze(Ye.props), Object.freeze(Ye)), Ye;
|
|
17715
17715
|
};
|
|
17716
|
-
function ae(
|
|
17716
|
+
function ae(N, ie, me, Fe, bt) {
|
|
17717
17717
|
{
|
|
17718
17718
|
var Pt, it = {}, Ye = null, As = null;
|
|
17719
17719
|
me !== void 0 && (Ur(me), Ye = "" + me), da(ie) && (Ur(ie.key), Ye = "" + ie.key), Di(ie) && (As = ie.ref, Cn(ie, bt));
|
|
17720
17720
|
for (Pt in ie)
|
|
17721
17721
|
st.call(ie, Pt) && !Ws.hasOwnProperty(Pt) && (it[Pt] = ie[Pt]);
|
|
17722
|
-
if (
|
|
17723
|
-
var jt =
|
|
17722
|
+
if (N && N.defaultProps) {
|
|
17723
|
+
var jt = N.defaultProps;
|
|
17724
17724
|
for (Pt in jt)
|
|
17725
17725
|
it[Pt] === void 0 && (it[Pt] = jt[Pt]);
|
|
17726
17726
|
}
|
|
17727
17727
|
if (Ye || As) {
|
|
17728
|
-
var Kt = typeof
|
|
17728
|
+
var Kt = typeof N == "function" ? N.displayName || N.name || "Unknown" : N;
|
|
17729
17729
|
Ye && Z(it, Kt), As && se(it, Kt);
|
|
17730
17730
|
}
|
|
17731
|
-
return X(
|
|
17731
|
+
return X(N, Ye, As, bt, Fe, js.current, it);
|
|
17732
17732
|
}
|
|
17733
17733
|
}
|
|
17734
17734
|
var de = g.ReactCurrentOwner, Ae = g.ReactDebugCurrentFrame;
|
|
17735
|
-
function je(
|
|
17736
|
-
if (
|
|
17737
|
-
var ie =
|
|
17735
|
+
function je(N) {
|
|
17736
|
+
if (N) {
|
|
17737
|
+
var ie = N._owner, me = Le(N.type, N._source, ie ? ie.type : null);
|
|
17738
17738
|
Ae.setExtraStackFrame(me);
|
|
17739
17739
|
} else
|
|
17740
17740
|
Ae.setExtraStackFrame(null);
|
|
17741
17741
|
}
|
|
17742
17742
|
var as;
|
|
17743
17743
|
as = !1;
|
|
17744
|
-
function Rs(
|
|
17745
|
-
return typeof
|
|
17744
|
+
function Rs(N) {
|
|
17745
|
+
return typeof N == "object" && N !== null && N.$$typeof === e;
|
|
17746
17746
|
}
|
|
17747
17747
|
function zr() {
|
|
17748
17748
|
{
|
|
17749
17749
|
if (de.current) {
|
|
17750
|
-
var
|
|
17751
|
-
if (
|
|
17750
|
+
var N = _(de.current.type);
|
|
17751
|
+
if (N)
|
|
17752
17752
|
return `
|
|
17753
17753
|
|
|
17754
|
-
Check the render method of \`` +
|
|
17754
|
+
Check the render method of \`` + N + "`.";
|
|
17755
17755
|
}
|
|
17756
17756
|
return "";
|
|
17757
17757
|
}
|
|
17758
17758
|
}
|
|
17759
|
-
function Za(
|
|
17759
|
+
function Za(N) {
|
|
17760
17760
|
return "";
|
|
17761
17761
|
}
|
|
17762
17762
|
var pa = {};
|
|
17763
|
-
function op(
|
|
17763
|
+
function op(N) {
|
|
17764
17764
|
{
|
|
17765
17765
|
var ie = zr();
|
|
17766
17766
|
if (!ie) {
|
|
17767
|
-
var me = typeof
|
|
17767
|
+
var me = typeof N == "string" ? N : N.displayName || N.name;
|
|
17768
17768
|
me && (ie = `
|
|
17769
17769
|
|
|
17770
17770
|
Check the top-level render call using <` + me + ">.");
|
|
@@ -17772,41 +17772,41 @@ Check the top-level render call using <` + me + ">.");
|
|
|
17772
17772
|
return ie;
|
|
17773
17773
|
}
|
|
17774
17774
|
}
|
|
17775
|
-
function Bu(
|
|
17775
|
+
function Bu(N, ie) {
|
|
17776
17776
|
{
|
|
17777
|
-
if (!
|
|
17777
|
+
if (!N._store || N._store.validated || N.key != null)
|
|
17778
17778
|
return;
|
|
17779
|
-
|
|
17779
|
+
N._store.validated = !0;
|
|
17780
17780
|
var me = op(ie);
|
|
17781
17781
|
if (pa[me])
|
|
17782
17782
|
return;
|
|
17783
17783
|
pa[me] = !0;
|
|
17784
17784
|
var Fe = "";
|
|
17785
|
-
|
|
17785
|
+
N && N._owner && N._owner !== de.current && (Fe = " It was passed a child from " + _(N._owner.type) + "."), je(N), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', me, Fe), je(null);
|
|
17786
17786
|
}
|
|
17787
17787
|
}
|
|
17788
|
-
function $u(
|
|
17788
|
+
function $u(N, ie) {
|
|
17789
17789
|
{
|
|
17790
|
-
if (typeof
|
|
17790
|
+
if (typeof N != "object")
|
|
17791
17791
|
return;
|
|
17792
|
-
if (Te(
|
|
17793
|
-
for (var me = 0; me <
|
|
17794
|
-
var Fe =
|
|
17792
|
+
if (Te(N))
|
|
17793
|
+
for (var me = 0; me < N.length; me++) {
|
|
17794
|
+
var Fe = N[me];
|
|
17795
17795
|
Rs(Fe) && Bu(Fe, ie);
|
|
17796
17796
|
}
|
|
17797
|
-
else if (Rs(
|
|
17798
|
-
|
|
17799
|
-
else if (
|
|
17800
|
-
var bt = m(
|
|
17801
|
-
if (typeof bt == "function" && bt !==
|
|
17802
|
-
for (var Pt = bt.call(
|
|
17797
|
+
else if (Rs(N))
|
|
17798
|
+
N._store && (N._store.validated = !0);
|
|
17799
|
+
else if (N) {
|
|
17800
|
+
var bt = m(N);
|
|
17801
|
+
if (typeof bt == "function" && bt !== N.entries)
|
|
17802
|
+
for (var Pt = bt.call(N), it; !(it = Pt.next()).done; )
|
|
17803
17803
|
Rs(it.value) && Bu(it.value, ie);
|
|
17804
17804
|
}
|
|
17805
17805
|
}
|
|
17806
17806
|
}
|
|
17807
|
-
function lp(
|
|
17807
|
+
function lp(N) {
|
|
17808
17808
|
{
|
|
17809
|
-
var ie =
|
|
17809
|
+
var ie = N.type;
|
|
17810
17810
|
if (ie == null || typeof ie == "string")
|
|
17811
17811
|
return;
|
|
17812
17812
|
var me;
|
|
@@ -17819,41 +17819,41 @@ Check the top-level render call using <` + me + ">.");
|
|
|
17819
17819
|
else
|
|
17820
17820
|
return;
|
|
17821
17821
|
if (me) {
|
|
17822
|
-
var Fe =
|
|
17823
|
-
_e(me,
|
|
17822
|
+
var Fe = _(ie);
|
|
17823
|
+
_e(me, N.props, "prop", Fe, N);
|
|
17824
17824
|
} else if (ie.PropTypes !== void 0 && !as) {
|
|
17825
17825
|
as = !0;
|
|
17826
|
-
var bt =
|
|
17826
|
+
var bt = _(ie);
|
|
17827
17827
|
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", bt || "Unknown");
|
|
17828
17828
|
}
|
|
17829
17829
|
typeof ie.getDefaultProps == "function" && !ie.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
17830
17830
|
}
|
|
17831
17831
|
}
|
|
17832
|
-
function up(
|
|
17832
|
+
function up(N) {
|
|
17833
17833
|
{
|
|
17834
|
-
for (var ie = Object.keys(
|
|
17834
|
+
for (var ie = Object.keys(N.props), me = 0; me < ie.length; me++) {
|
|
17835
17835
|
var Fe = ie[me];
|
|
17836
17836
|
if (Fe !== "children" && Fe !== "key") {
|
|
17837
|
-
je(
|
|
17837
|
+
je(N), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Fe), je(null);
|
|
17838
17838
|
break;
|
|
17839
17839
|
}
|
|
17840
17840
|
}
|
|
17841
|
-
|
|
17841
|
+
N.ref !== null && (je(N), b("Invalid attribute `ref` supplied to `React.Fragment`."), je(null));
|
|
17842
17842
|
}
|
|
17843
17843
|
}
|
|
17844
17844
|
var Hu = {};
|
|
17845
|
-
function Qu(
|
|
17845
|
+
function Qu(N, ie, me, Fe, bt, Pt) {
|
|
17846
17846
|
{
|
|
17847
|
-
var it = N
|
|
17847
|
+
var it = M(N);
|
|
17848
17848
|
if (!it) {
|
|
17849
17849
|
var Ye = "";
|
|
17850
|
-
(
|
|
17850
|
+
(N === void 0 || typeof N == "object" && N !== null && Object.keys(N).length === 0) && (Ye += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
17851
17851
|
var As = Za();
|
|
17852
17852
|
As ? Ye += As : Ye += zr();
|
|
17853
17853
|
var jt;
|
|
17854
|
-
|
|
17854
|
+
N === null ? jt = "null" : Te(N) ? jt = "array" : N !== void 0 && N.$$typeof === e ? (jt = "<" + (_(N.type) || "Unknown") + " />", Ye = " Did you accidentally export a JSX literal instead of a component?") : jt = typeof N, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", jt, Ye);
|
|
17855
17855
|
}
|
|
17856
|
-
var Kt = ae(
|
|
17856
|
+
var Kt = ae(N, ie, me, bt, Pt);
|
|
17857
17857
|
if (Kt == null)
|
|
17858
17858
|
return Kt;
|
|
17859
17859
|
if (it) {
|
|
@@ -17862,15 +17862,15 @@ Check the top-level render call using <` + me + ">.");
|
|
|
17862
17862
|
if (Fe)
|
|
17863
17863
|
if (Te(si)) {
|
|
17864
17864
|
for (var bn = 0; bn < si.length; bn++)
|
|
17865
|
-
$u(si[bn],
|
|
17865
|
+
$u(si[bn], N);
|
|
17866
17866
|
Object.freeze && Object.freeze(si);
|
|
17867
17867
|
} else
|
|
17868
17868
|
b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
17869
17869
|
else
|
|
17870
|
-
$u(si,
|
|
17870
|
+
$u(si, N);
|
|
17871
17871
|
}
|
|
17872
17872
|
if (st.call(ie, "key")) {
|
|
17873
|
-
var jr =
|
|
17873
|
+
var jr = _(N), $s = Object.keys(ie).filter(function(mp) {
|
|
17874
17874
|
return mp !== "key";
|
|
17875
17875
|
}), cl = $s.length > 0 ? "{key: someKey, " + $s.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
17876
17876
|
if (!Hu[jr + cl]) {
|
|
@@ -17883,21 +17883,21 @@ React keys must be passed directly to JSX without using spread:
|
|
|
17883
17883
|
<%s key={someKey} {...props} />`, cl, jr, fp, jr), Hu[jr + cl] = !0;
|
|
17884
17884
|
}
|
|
17885
17885
|
}
|
|
17886
|
-
return
|
|
17886
|
+
return N === s ? up(Kt) : lp(Kt), Kt;
|
|
17887
17887
|
}
|
|
17888
17888
|
}
|
|
17889
|
-
function hp(
|
|
17890
|
-
return Qu(
|
|
17889
|
+
function hp(N, ie, me) {
|
|
17890
|
+
return Qu(N, ie, me, !0);
|
|
17891
17891
|
}
|
|
17892
|
-
function cp(
|
|
17893
|
-
return Qu(
|
|
17892
|
+
function cp(N, ie, me) {
|
|
17893
|
+
return Qu(N, ie, me, !1);
|
|
17894
17894
|
}
|
|
17895
17895
|
var dp = cp, pp = hp;
|
|
17896
17896
|
Tl.Fragment = s, Tl.jsx = dp, Tl.jsxs = pp;
|
|
17897
17897
|
}()), Tl;
|
|
17898
17898
|
}
|
|
17899
17899
|
process.env.NODE_ENV === "production" ? Lm.exports = Iae() : Lm.exports = Rae();
|
|
17900
|
-
var
|
|
17900
|
+
var R = Lm.exports;
|
|
17901
17901
|
Ai("Text", "text");
|
|
17902
17902
|
vi("Text", (i, e, t, s) => {
|
|
17903
17903
|
const r = t.respond(i, s);
|
|
@@ -17943,8 +17943,8 @@ function wv({
|
|
|
17943
17943
|
reactionTime: h
|
|
17944
17944
|
});
|
|
17945
17945
|
};
|
|
17946
|
-
return /* @__PURE__ */
|
|
17947
|
-
/* @__PURE__ */
|
|
17946
|
+
return /* @__PURE__ */ R.jsx("div", { className: `min-h-screen ${s}`, children: /* @__PURE__ */ R.jsxs("div", { className: `max-w-prose mx-auto ${t} pt-20 pb-20 px-4 `, children: [
|
|
17947
|
+
/* @__PURE__ */ R.jsx(
|
|
17948
17948
|
"article",
|
|
17949
17949
|
{
|
|
17950
17950
|
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
|
|
@@ -17952,12 +17952,12 @@ function wv({
|
|
|
17952
17952
|
children: i
|
|
17953
17953
|
}
|
|
17954
17954
|
),
|
|
17955
|
-
e && /* @__PURE__ */
|
|
17955
|
+
e && /* @__PURE__ */ R.jsx(
|
|
17956
17956
|
"div",
|
|
17957
17957
|
{
|
|
17958
17958
|
className: `mt-16 flex justify-center ${n ? "animate-fade-in opacity-0" : ""}`,
|
|
17959
17959
|
style: n ? { animationDelay: "1s" } : {},
|
|
17960
|
-
children: /* @__PURE__ */
|
|
17960
|
+
children: /* @__PURE__ */ R.jsx(
|
|
17961
17961
|
"button",
|
|
17962
17962
|
{
|
|
17963
17963
|
onClick: l,
|
|
@@ -17999,8 +17999,8 @@ function Aae({
|
|
|
17999
17999
|
}, c = () => {
|
|
18000
18000
|
a && r(a(l)), s({ value: l });
|
|
18001
18001
|
};
|
|
18002
|
-
return /* @__PURE__ */
|
|
18003
|
-
/* @__PURE__ */
|
|
18002
|
+
return /* @__PURE__ */ R.jsxs("div", { className: `max-w-prose mx-auto ${t} mt-20 mb-20 px-4 `, children: [
|
|
18003
|
+
/* @__PURE__ */ R.jsx(
|
|
18004
18004
|
"article",
|
|
18005
18005
|
{
|
|
18006
18006
|
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
|
|
@@ -18008,7 +18008,7 @@ function Aae({
|
|
|
18008
18008
|
children: i
|
|
18009
18009
|
}
|
|
18010
18010
|
),
|
|
18011
|
-
/* @__PURE__ */
|
|
18011
|
+
/* @__PURE__ */ R.jsx("div", { className: `mt-8 ${n ? "animate-slide-down opacity-0" : ""}`, children: /* @__PURE__ */ R.jsx(
|
|
18012
18012
|
"input",
|
|
18013
18013
|
{
|
|
18014
18014
|
type: "text",
|
|
@@ -18018,12 +18018,12 @@ function Aae({
|
|
|
18018
18018
|
className: "w-full px-4 py-3 border-2 border-black rounded-xl text-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
|
|
18019
18019
|
}
|
|
18020
18020
|
) }),
|
|
18021
|
-
e && /* @__PURE__ */
|
|
18021
|
+
e && /* @__PURE__ */ R.jsx(
|
|
18022
18022
|
"div",
|
|
18023
18023
|
{
|
|
18024
18024
|
className: `mt-8 flex justify-center ${n ? "animate-fade-in opacity-0" : ""}`,
|
|
18025
18025
|
style: n ? { animationDelay: "1s" } : {},
|
|
18026
|
-
children: /* @__PURE__ */
|
|
18026
|
+
children: /* @__PURE__ */ R.jsx(
|
|
18027
18027
|
"button",
|
|
18028
18028
|
{
|
|
18029
18029
|
onClick: c,
|
|
@@ -18049,16 +18049,16 @@ function Lae({
|
|
|
18049
18049
|
updateStore: n
|
|
18050
18050
|
}) {
|
|
18051
18051
|
let a = i ?? Oo("cc", "", "string") ?? null;
|
|
18052
|
-
const o = /* @__PURE__ */
|
|
18053
|
-
/* @__PURE__ */
|
|
18054
|
-
/* @__PURE__ */
|
|
18052
|
+
const o = /* @__PURE__ */ R.jsxs("div", { className: "flex flex-col items-center", children: [
|
|
18053
|
+
/* @__PURE__ */ R.jsx("svg", { className: "w-12 h-12", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ R.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 13l4 4L19 7" }) }),
|
|
18054
|
+
/* @__PURE__ */ R.jsxs("p", { className: "", children: [
|
|
18055
18055
|
"Thank you! Your data has been successfully submitted. ",
|
|
18056
|
-
/* @__PURE__ */
|
|
18056
|
+
/* @__PURE__ */ R.jsx("br", {}),
|
|
18057
18057
|
" You can go back to Prolific and enter the code ",
|
|
18058
18058
|
a,
|
|
18059
18059
|
" to finish the study. Alternatively, you can click on this link:",
|
|
18060
18060
|
" ",
|
|
18061
|
-
/* @__PURE__ */
|
|
18061
|
+
/* @__PURE__ */ R.jsx(
|
|
18062
18062
|
"a",
|
|
18063
18063
|
{
|
|
18064
18064
|
target: "_blank",
|
|
@@ -18069,7 +18069,7 @@ function Lae({
|
|
|
18069
18069
|
)
|
|
18070
18070
|
] })
|
|
18071
18071
|
] });
|
|
18072
|
-
return /* @__PURE__ */
|
|
18072
|
+
return /* @__PURE__ */ R.jsx(wv, { data: r, updateStore: n, className: e, containerClass: t, animate: s, content: o, buttonText: "", next: () => {
|
|
18073
18073
|
} });
|
|
18074
18074
|
}
|
|
18075
18075
|
var SV = {
|
|
@@ -18205,10 +18205,10 @@ const Hae = ({ stream: i }) => {
|
|
|
18205
18205
|
const f = (m, g) => g + (m - g) * 0.08, y = (m, g = 3) => {
|
|
18206
18206
|
const b = new Array(m.length).fill(0);
|
|
18207
18207
|
for (let x = 0; x < m.length; x++) {
|
|
18208
|
-
let T = 0,
|
|
18209
|
-
for (let
|
|
18210
|
-
T += m[
|
|
18211
|
-
b[x] = T /
|
|
18208
|
+
let T = 0, A = 0;
|
|
18209
|
+
for (let L = Math.max(0, x - g); L < Math.min(m.length, x + g + 1); L++)
|
|
18210
|
+
T += m[L], A++;
|
|
18211
|
+
b[x] = T / A;
|
|
18212
18212
|
}
|
|
18213
18213
|
return b;
|
|
18214
18214
|
}, v = () => {
|
|
@@ -18218,24 +18218,24 @@ const Hae = ({ stream: i }) => {
|
|
|
18218
18218
|
(D, V) => f(D, r.current[V])
|
|
18219
18219
|
), T = y(x);
|
|
18220
18220
|
r.current = T, u.fillStyle = "#ffffff", u.fillRect(0, 0, m * h, g * h), u.beginPath(), u.strokeStyle = "rgba(0, 0, 0, 0.1)", u.lineWidth = 1, u.moveTo(0, b), u.lineTo(m, b), u.stroke(), u.beginPath(), u.lineWidth = 2, u.strokeStyle = "rgba(0, 0, 0, 0.85)";
|
|
18221
|
-
const
|
|
18222
|
-
for (let D = 0; D < T.length; D +=
|
|
18223
|
-
const V = D / T.length * m,
|
|
18224
|
-
|
|
18225
|
-
}
|
|
18226
|
-
if (
|
|
18227
|
-
u.moveTo(
|
|
18228
|
-
for (let D = 1; D <
|
|
18229
|
-
const V = (
|
|
18230
|
-
u.quadraticCurveTo(
|
|
18221
|
+
const A = 4, L = [];
|
|
18222
|
+
for (let D = 0; D < T.length; D += A) {
|
|
18223
|
+
const V = D / T.length * m, I = (T[D] - 128) / 128, M = b + I * g * 4;
|
|
18224
|
+
L.push([V, M]);
|
|
18225
|
+
}
|
|
18226
|
+
if (L.length > 0) {
|
|
18227
|
+
u.moveTo(L[0][0], L[0][1]);
|
|
18228
|
+
for (let D = 1; D < L.length - 2; D++) {
|
|
18229
|
+
const V = (L[D][0] + L[D + 1][0]) / 2, I = (L[D][1] + L[D + 1][1]) / 2;
|
|
18230
|
+
u.quadraticCurveTo(L[D][0], L[D][1], V, I);
|
|
18231
18231
|
}
|
|
18232
|
-
if (
|
|
18233
|
-
const D =
|
|
18232
|
+
if (L.length > 2) {
|
|
18233
|
+
const D = L.length - 1;
|
|
18234
18234
|
u.quadraticCurveTo(
|
|
18235
|
-
|
|
18236
|
-
|
|
18237
|
-
|
|
18238
|
-
|
|
18235
|
+
L[D - 1][0],
|
|
18236
|
+
L[D - 1][1],
|
|
18237
|
+
L[D][0],
|
|
18238
|
+
L[D][1]
|
|
18239
18239
|
);
|
|
18240
18240
|
}
|
|
18241
18241
|
}
|
|
@@ -18244,7 +18244,7 @@ const Hae = ({ stream: i }) => {
|
|
|
18244
18244
|
return v(), () => {
|
|
18245
18245
|
t.current && cancelAnimationFrame(t.current), o.disconnect(), n.close();
|
|
18246
18246
|
};
|
|
18247
|
-
}, [i]), /* @__PURE__ */
|
|
18247
|
+
}, [i]), /* @__PURE__ */ R.jsx(
|
|
18248
18248
|
"canvas",
|
|
18249
18249
|
{
|
|
18250
18250
|
ref: e,
|
|
@@ -18281,8 +18281,8 @@ const Hae = ({ stream: i }) => {
|
|
|
18281
18281
|
const g = await new Promise((b) => {
|
|
18282
18282
|
const x = new FileReader();
|
|
18283
18283
|
x.onloadend = () => {
|
|
18284
|
-
var
|
|
18285
|
-
const T = ((
|
|
18284
|
+
var A;
|
|
18285
|
+
const T = ((A = x.result) == null ? void 0 : A.toString().split(",")[1]) || "";
|
|
18286
18286
|
b(T);
|
|
18287
18287
|
}, x.readAsDataURL(v);
|
|
18288
18288
|
});
|
|
@@ -18298,8 +18298,8 @@ const Hae = ({ stream: i }) => {
|
|
|
18298
18298
|
}, y = () => {
|
|
18299
18299
|
n && URL.revokeObjectURL(n), a(null), i.value = null, t();
|
|
18300
18300
|
};
|
|
18301
|
-
return /* @__PURE__ */
|
|
18302
|
-
!n && /* @__PURE__ */
|
|
18301
|
+
return /* @__PURE__ */ R.jsxs("div", { className: "flex flex-col items-center space-y-4 p-4 bg-white px-8 ", children: [
|
|
18302
|
+
!n && /* @__PURE__ */ R.jsx(
|
|
18303
18303
|
"button",
|
|
18304
18304
|
{
|
|
18305
18305
|
onClick: s ? d : c,
|
|
@@ -18307,29 +18307,29 @@ const Hae = ({ stream: i }) => {
|
|
|
18307
18307
|
${s ? "bg-red-500 hover:bg-red-600" : ""}
|
|
18308
18308
|
text-white transition-colors duration-200`,
|
|
18309
18309
|
"aria-label": s ? "Stop Recording" : "Start Recording",
|
|
18310
|
-
children: s ? /* @__PURE__ */
|
|
18310
|
+
children: s ? /* @__PURE__ */ R.jsx(Bae, { className: "w-6 h-6" }) : /* @__PURE__ */ R.jsx(qae, { className: "w-6 h-6 text-black" })
|
|
18311
18311
|
}
|
|
18312
18312
|
),
|
|
18313
|
-
s && o && /* @__PURE__ */
|
|
18314
|
-
s && /* @__PURE__ */
|
|
18315
|
-
/* @__PURE__ */
|
|
18316
|
-
/* @__PURE__ */
|
|
18313
|
+
s && o && /* @__PURE__ */ R.jsx("div", { className: "w-full max-w-md mx-auto", children: /* @__PURE__ */ R.jsx(Hae, { stream: o }) }),
|
|
18314
|
+
s && /* @__PURE__ */ R.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
18315
|
+
/* @__PURE__ */ R.jsx("div", { className: "w-3 h-3 bg-red-500 rounded-full animate-pulse" }),
|
|
18316
|
+
/* @__PURE__ */ R.jsx("span", { className: "text-sm text-black", children: "Recording..." })
|
|
18317
18317
|
] }),
|
|
18318
|
-
n && !s && /* @__PURE__ */
|
|
18319
|
-
/* @__PURE__ */
|
|
18320
|
-
/* @__PURE__ */
|
|
18321
|
-
/* @__PURE__ */
|
|
18318
|
+
n && !s && /* @__PURE__ */ R.jsxs("div", { className: "flex flex-col items-center space-y-4 w-full max-w-md", children: [
|
|
18319
|
+
/* @__PURE__ */ R.jsxs("audio", { controls: !0, preload: "none", className: "w-full", playsInline: !0, children: [
|
|
18320
|
+
/* @__PURE__ */ R.jsx("source", { src: n, type: "audio/mp4" }),
|
|
18321
|
+
/* @__PURE__ */ R.jsx("source", { src: n, type: "audio/webm" }),
|
|
18322
18322
|
"Your browser does not support the audio element."
|
|
18323
18323
|
] }),
|
|
18324
|
-
/* @__PURE__ */
|
|
18324
|
+
/* @__PURE__ */ R.jsx("div", { className: "flex space-x-4", children: /* @__PURE__ */ R.jsxs(
|
|
18325
18325
|
"button",
|
|
18326
18326
|
{
|
|
18327
18327
|
onClick: y,
|
|
18328
18328
|
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
|
|
18329
18329
|
rounded-xl transition-colors duration-200`,
|
|
18330
18330
|
children: [
|
|
18331
|
-
/* @__PURE__ */
|
|
18332
|
-
/* @__PURE__ */
|
|
18331
|
+
/* @__PURE__ */ R.jsx($ae, { className: "w-4 h-4" }),
|
|
18332
|
+
/* @__PURE__ */ R.jsx("span", { children: "Discard" })
|
|
18333
18333
|
]
|
|
18334
18334
|
}
|
|
18335
18335
|
) })
|
|
@@ -18339,7 +18339,7 @@ const Hae = ({ stream: i }) => {
|
|
|
18339
18339
|
function Qae({
|
|
18340
18340
|
setValue: i
|
|
18341
18341
|
}) {
|
|
18342
|
-
return /* @__PURE__ */
|
|
18342
|
+
return /* @__PURE__ */ R.jsx(
|
|
18343
18343
|
PV,
|
|
18344
18344
|
{
|
|
18345
18345
|
question: { value: null },
|
|
@@ -18371,8 +18371,8 @@ function Uae({
|
|
|
18371
18371
|
const o = (h) => {
|
|
18372
18372
|
r(h), i(h), a(!1);
|
|
18373
18373
|
}, l = ((u = e.find((h) => h.deviceId === s)) == null ? void 0 : u.label) || "Select Microphone";
|
|
18374
|
-
return /* @__PURE__ */
|
|
18375
|
-
/* @__PURE__ */
|
|
18374
|
+
return /* @__PURE__ */ R.jsxs("div", { className: "relative w-64 mx-auto mt-8 mb-8", children: [
|
|
18375
|
+
/* @__PURE__ */ R.jsx(
|
|
18376
18376
|
"button",
|
|
18377
18377
|
{
|
|
18378
18378
|
onClick: () => a(!n),
|
|
@@ -18390,13 +18390,13 @@ function Uae({
|
|
|
18390
18390
|
font-bold
|
|
18391
18391
|
${n ? "shadow-none translate-x-1 translate-y-1" : ""}
|
|
18392
18392
|
`,
|
|
18393
|
-
children: /* @__PURE__ */
|
|
18394
|
-
/* @__PURE__ */
|
|
18395
|
-
/* @__PURE__ */
|
|
18393
|
+
children: /* @__PURE__ */ R.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
18394
|
+
/* @__PURE__ */ R.jsx("span", { className: "truncate", children: l }),
|
|
18395
|
+
/* @__PURE__ */ R.jsx("span", { className: `transition-transform ${n ? "rotate-180" : ""}`, children: "▼" })
|
|
18396
18396
|
] })
|
|
18397
18397
|
}
|
|
18398
18398
|
),
|
|
18399
|
-
n && /* @__PURE__ */
|
|
18399
|
+
n && /* @__PURE__ */ R.jsx("div", { className: "absolute w-full mt-2 z-50", children: /* @__PURE__ */ R.jsx(
|
|
18400
18400
|
"ul",
|
|
18401
18401
|
{
|
|
18402
18402
|
className: `
|
|
@@ -18405,7 +18405,7 @@ function Uae({
|
|
|
18405
18405
|
shadow-[2px_2px_0px_0px_rgba(0,0,0,1)]
|
|
18406
18406
|
max-h-60 overflow-auto
|
|
18407
18407
|
`,
|
|
18408
|
-
children: e.map((h) => /* @__PURE__ */
|
|
18408
|
+
children: e.map((h) => /* @__PURE__ */ R.jsx(
|
|
18409
18409
|
"li",
|
|
18410
18410
|
{
|
|
18411
18411
|
onClick: () => o(h.deviceId),
|
|
@@ -18427,14 +18427,14 @@ function Uae({
|
|
|
18427
18427
|
}
|
|
18428
18428
|
const zae = ({ next: i }) => {
|
|
18429
18429
|
const [e, t] = rt(!1);
|
|
18430
|
-
return /* @__PURE__ */
|
|
18431
|
-
/* @__PURE__ */
|
|
18432
|
-
/* @__PURE__ */
|
|
18433
|
-
/* @__PURE__ */
|
|
18430
|
+
return /* @__PURE__ */ R.jsxs("div", { className: "max-w-prose mx-auto mt-20 mb-20 px-4 ", children: [
|
|
18431
|
+
/* @__PURE__ */ R.jsxs("article", { className: "prose prose-2xl prose-slate text-xl text-black leading-relaxed", children: [
|
|
18432
|
+
/* @__PURE__ */ R.jsx("h1", { className: "text-3xl mb-6 font-semibold", children: "Let's test your microphone!" }),
|
|
18433
|
+
/* @__PURE__ */ R.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..." })
|
|
18434
18434
|
] }),
|
|
18435
|
-
/* @__PURE__ */
|
|
18436
|
-
/* @__PURE__ */
|
|
18437
|
-
/* @__PURE__ */
|
|
18435
|
+
/* @__PURE__ */ R.jsx(Uae, { onMicrophoneSelect: (s) => window.audioInputId = s }),
|
|
18436
|
+
/* @__PURE__ */ R.jsx("article", { className: "prose prose-2xl prose-slate text-xl text-black leading-relaxed", children: /* @__PURE__ */ R.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." }) }),
|
|
18437
|
+
/* @__PURE__ */ R.jsx(
|
|
18438
18438
|
PV,
|
|
18439
18439
|
{
|
|
18440
18440
|
question: { value: null },
|
|
@@ -18442,13 +18442,13 @@ const zae = ({ next: i }) => {
|
|
|
18442
18442
|
handleDiscardVoiceData: () => t(!1)
|
|
18443
18443
|
}
|
|
18444
18444
|
),
|
|
18445
|
-
e && /* @__PURE__ */
|
|
18446
|
-
/* @__PURE__ */
|
|
18445
|
+
e && /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
18446
|
+
/* @__PURE__ */ R.jsx("article", { className: "prose prose-2xl prose-slate text-xl text-black leading-relaxed", children: /* @__PURE__ */ R.jsxs("p", { children: [
|
|
18447
18447
|
"Can you hear yourself? Great! You can continue on to the next step. ",
|
|
18448
|
-
/* @__PURE__ */
|
|
18448
|
+
/* @__PURE__ */ R.jsx("br", {}),
|
|
18449
18449
|
" If you can't hear your voice, try one of the other options from the list or check any physical mute switches on your microphone. Be sure to also check that your computer audio is turned on so you can actually listen back to your test recording!"
|
|
18450
18450
|
] }) }),
|
|
18451
|
-
/* @__PURE__ */
|
|
18451
|
+
/* @__PURE__ */ R.jsx("div", { className: "mt-16 flex justify-center", children: /* @__PURE__ */ R.jsx(
|
|
18452
18452
|
"button",
|
|
18453
18453
|
{
|
|
18454
18454
|
onClick: () => i({}),
|
|
@@ -21579,7 +21579,7 @@ const Vv = (
|
|
|
21579
21579
|
Expression: Xa
|
|
21580
21580
|
};
|
|
21581
21581
|
let o = Xa;
|
|
21582
|
-
const l = "||", u = "or", h = "&&", c = "and", d = "<=", f = "lessorequal", y = ">=", v = "greaterorequal", m = "==", g = "equal", b = "=", x = "!=", T = "notequal",
|
|
21582
|
+
const l = "||", u = "or", h = "&&", c = "and", d = "<=", f = "lessorequal", y = ">=", v = "greaterorequal", m = "==", g = "equal", b = "=", x = "!=", T = "notequal", A = "<", L = "less", D = ">", V = "greater", I = "+", M = "-", q = "*", Q = "/", _ = "%", B = "^", H = "power", $ = "*=", j = "contains", G = "contain", ne = "notcontains", Y = "notcontain", oe = "anyof", re = "allof", ue = "noneof", Ie = "(", ge = "!", te = "negate", we = "empty", et = "notempty", Yt = "undefined", Gt = "null", Is = "{", Et = "}", cs = "''", rs = '""', Le = "'", st = '"', Mt = "[", zt = "]", Ct = ",", _e = "true", Ge = "false", Te = "0x", ns = ".", bs = "0", ws = "\\'", Ur = '\\"', js = /^[\-]/, Ws = /^[^"']/, _i = /^[^{}]/, Gs = /^[0-9]/, Di = /^[1-9]/, da = /^[a-zA-Z_]/, Cn = /^[ \t\n\r]/, Z = Pe("||", !1), se = Pe("or", !0), X = Pe("&&", !1), ae = Pe("and", !0), de = Pe("<=", !1), Ae = Pe("lessorequal", !0), je = Pe(">=", !1), as = Pe("greaterorequal", !0), Rs = Pe("==", !1), zr = Pe("equal", !0), Za = Pe("=", !1), pa = Pe("!=", !1), op = Pe("notequal", !0), Bu = Pe("<", !1), $u = Pe("less", !0), lp = Pe(">", !1), up = Pe("greater", !0), Hu = Pe("+", !1), Qu = Pe("-", !1), hp = Pe("*", !1), cp = Pe("/", !1), dp = Pe("%", !1), pp = Pe("^", !1), N = Pe("power", !0), ie = Pe("*=", !1), me = Pe("contains", !0), Fe = Pe("contain", !0), bt = Pe("notcontains", !0), Pt = Pe("notcontain", !0), it = Pe("anyof", !0), Ye = Pe("allof", !0), As = Pe("noneof", !0), jt = Pe("(", !1), Kt = Pe(")", !1), si = Pe("!", !1), bn = Pe("negate", !0), jr = Pe("empty", !0), $s = Pe("notempty", !0), cl = Pe("undefined", !1), fp = Pe("null", !1), mp = Pe("{", !1), Y4 = Pe("}", !1), X4 = Pe("''", !1), eT = Pe('""', !1), N0 = Pe("'", !1), F0 = Pe('"', !1), tT = Pe("[", !1), sT = Pe("]", !1), q0 = Pe(",", !1), iT = Pe("true", !0), rT = Pe("false", !0), nT = Pe("0x", !1), aT = fa(["-"], !1, !1, !1), oT = Pe(".", !1), lT = Pe("0", !1), uT = Pe("\\'", !1), hT = Pe('\\"', !1), cT = fa(['"', "'"], !0, !1, !1), dT = fa(["{", "}"], !0, !1, !1), B0 = fa([["0", "9"]], !1, !1, !1), $0 = fa([["1", "9"]], !1, !1, !1), H0 = fa([["a", "z"], ["A", "Z"], "_"], !1, !1, !1), Q0 = fa([" ", " ", `
|
|
21583
21583
|
`, "\r"], !1, !1, !1);
|
|
21584
21584
|
function pT(C, w) {
|
|
21585
21585
|
return ma(C, w, !0);
|
|
@@ -21898,7 +21898,7 @@ const Vv = (
|
|
|
21898
21898
|
function G0() {
|
|
21899
21899
|
let C, w;
|
|
21900
21900
|
const z = E * 34 + 5, O = ve[z];
|
|
21901
|
-
return O ? (E = O.nextPos, O.result) : (C = E, t.substr(E, 2) === d ? (w = d, E += 2) : (w = r, he === 0 && ce(de)), w === r && (w = t.substr(E, 11), w.toLowerCase() === f ? E += 11 : (w = r, he === 0 && ce(Ae))), w !== r && (xe = C, w = yT()), C = w, C === r && (C = E, t.substr(E, 2) === y ? (w = y, E += 2) : (w = r, he === 0 && ce(je)), w === r && (w = t.substr(E, 14), w.toLowerCase() === v ? E += 14 : (w = r, he === 0 && ce(as))), w !== r && (xe = C, w = CT()), C = w, C === r && (C = E, t.substr(E, 2) === m ? (w = m, E += 2) : (w = r, he === 0 && ce(Rs)), w === r && (w = t.substr(E, 5), w.toLowerCase() === g ? E += 5 : (w = r, he === 0 && ce(zr))), w !== r && (xe = C, w = bT()), C = w, C === r && (C = E, t.charCodeAt(E) === 61 ? (w = b, E++) : (w = r, he === 0 && ce(Za)), w === r && (w = t.substr(E, 5), w.toLowerCase() === g ? E += 5 : (w = r, he === 0 && ce(zr))), w !== r && (xe = C, w = wT()), C = w, C === r && (C = E, t.substr(E, 2) === x ? (w = x, E += 2) : (w = r, he === 0 && ce(pa)), w === r && (w = t.substr(E, 8), w.toLowerCase() === T ? E += 8 : (w = r, he === 0 && ce(op))), w !== r && (xe = C, w = xT()), C = w, C === r && (C = E, t.charCodeAt(E) === 60 ? (w =
|
|
21901
|
+
return O ? (E = O.nextPos, O.result) : (C = E, t.substr(E, 2) === d ? (w = d, E += 2) : (w = r, he === 0 && ce(de)), w === r && (w = t.substr(E, 11), w.toLowerCase() === f ? E += 11 : (w = r, he === 0 && ce(Ae))), w !== r && (xe = C, w = yT()), C = w, C === r && (C = E, t.substr(E, 2) === y ? (w = y, E += 2) : (w = r, he === 0 && ce(je)), w === r && (w = t.substr(E, 14), w.toLowerCase() === v ? E += 14 : (w = r, he === 0 && ce(as))), w !== r && (xe = C, w = CT()), C = w, C === r && (C = E, t.substr(E, 2) === m ? (w = m, E += 2) : (w = r, he === 0 && ce(Rs)), w === r && (w = t.substr(E, 5), w.toLowerCase() === g ? E += 5 : (w = r, he === 0 && ce(zr))), w !== r && (xe = C, w = bT()), C = w, C === r && (C = E, t.charCodeAt(E) === 61 ? (w = b, E++) : (w = r, he === 0 && ce(Za)), w === r && (w = t.substr(E, 5), w.toLowerCase() === g ? E += 5 : (w = r, he === 0 && ce(zr))), w !== r && (xe = C, w = wT()), C = w, C === r && (C = E, t.substr(E, 2) === x ? (w = x, E += 2) : (w = r, he === 0 && ce(pa)), w === r && (w = t.substr(E, 8), w.toLowerCase() === T ? E += 8 : (w = r, he === 0 && ce(op))), w !== r && (xe = C, w = xT()), C = w, C === r && (C = E, t.charCodeAt(E) === 60 ? (w = A, E++) : (w = r, he === 0 && ce(Bu)), w === r && (w = t.substr(E, 4), w.toLowerCase() === L ? E += 4 : (w = r, he === 0 && ce($u))), w !== r && (xe = C, w = ET()), C = w, C === r && (C = E, t.charCodeAt(E) === 62 ? (w = D, E++) : (w = r, he === 0 && ce(lp)), w === r && (w = t.substr(E, 7), w.toLowerCase() === V ? E += 7 : (w = r, he === 0 && ce(up))), w !== r && (xe = C, w = VT()), C = w)))))), ve[z] = { nextPos: E, result: C }, C);
|
|
21902
21902
|
}
|
|
21903
21903
|
function yp() {
|
|
21904
21904
|
let C, w, z, O, J, le, qe, Ee;
|
|
@@ -21916,7 +21916,7 @@ const Vv = (
|
|
|
21916
21916
|
function K0() {
|
|
21917
21917
|
let C, w;
|
|
21918
21918
|
const z = E * 34 + 7, O = ve[z];
|
|
21919
|
-
return O ? (E = O.nextPos, O.result) : (C = E, t.charCodeAt(E) === 43 ? (w =
|
|
21919
|
+
return O ? (E = O.nextPos, O.result) : (C = E, t.charCodeAt(E) === 43 ? (w = I, E++) : (w = r, he === 0 && ce(Hu)), w !== r && (xe = C, w = TT()), C = w, C === r && (C = E, t.charCodeAt(E) === 45 ? (w = M, E++) : (w = r, he === 0 && ce(Qu)), w !== r && (xe = C, w = PT()), C = w), ve[z] = { nextPos: E, result: C }, C);
|
|
21920
21920
|
}
|
|
21921
21921
|
function Cp() {
|
|
21922
21922
|
let C, w, z, O, J, le, qe, Ee;
|
|
@@ -21934,7 +21934,7 @@ const Vv = (
|
|
|
21934
21934
|
function Z0() {
|
|
21935
21935
|
let C, w;
|
|
21936
21936
|
const z = E * 34 + 9, O = ve[z];
|
|
21937
|
-
return O ? (E = O.nextPos, O.result) : (C = E, t.charCodeAt(E) === 42 ? (w = q, E++) : (w = r, he === 0 && ce(hp)), w !== r && (xe = C, w = RT()), C = w, C === r && (C = E, t.charCodeAt(E) === 47 ? (w = Q, E++) : (w = r, he === 0 && ce(cp)), w !== r && (xe = C, w = AT()), C = w, C === r && (C = E, t.charCodeAt(E) === 37 ? (w =
|
|
21937
|
+
return O ? (E = O.nextPos, O.result) : (C = E, t.charCodeAt(E) === 42 ? (w = q, E++) : (w = r, he === 0 && ce(hp)), w !== r && (xe = C, w = RT()), C = w, C === r && (C = E, t.charCodeAt(E) === 47 ? (w = Q, E++) : (w = r, he === 0 && ce(cp)), w !== r && (xe = C, w = AT()), C = w, C === r && (C = E, t.charCodeAt(E) === 37 ? (w = _, E++) : (w = r, he === 0 && ce(dp)), w !== r && (xe = C, w = LT()), C = w)), ve[z] = { nextPos: E, result: C }, C);
|
|
21938
21938
|
}
|
|
21939
21939
|
function bp() {
|
|
21940
21940
|
let C, w, z, O, J, le, qe, Ee;
|
|
@@ -21952,7 +21952,7 @@ const Vv = (
|
|
|
21952
21952
|
function J0() {
|
|
21953
21953
|
let C, w;
|
|
21954
21954
|
const z = E * 34 + 11, O = ve[z];
|
|
21955
|
-
return O ? (E = O.nextPos, O.result) : (C = E, t.charCodeAt(E) === 94 ? (w = B, E++) : (w = r, he === 0 && ce(pp)), w === r && (w = t.substr(E, 5), w.toLowerCase() === H ? E += 5 : (w = r, he === 0 && ce(
|
|
21955
|
+
return O ? (E = O.nextPos, O.result) : (C = E, t.charCodeAt(E) === 94 ? (w = B, E++) : (w = r, he === 0 && ce(pp)), w === r && (w = t.substr(E, 5), w.toLowerCase() === H ? E += 5 : (w = r, he === 0 && ce(N))), w !== r && (xe = C, w = DT()), C = w, ve[z] = { nextPos: E, result: C }, C);
|
|
21956
21956
|
}
|
|
21957
21957
|
function wp() {
|
|
21958
21958
|
let C, w, z, O, J, le, qe, Ee;
|
|
@@ -58082,8 +58082,8 @@ class kt extends Vs {
|
|
|
58082
58082
|
const n = !(this.isReadOnly || !e.isEnabled) && this.value != e.value && !(this.survey && this.survey.isDesignMode), a = this.renderedRateItems.filter((D) => D.itemValue == e)[0], o = this.isStar && (a == null ? void 0 : a.highlight) == "highlighted", l = this.isStar && (a == null ? void 0 : a.highlight) == "unhighlighted";
|
|
58083
58083
|
let u = this.cssClasses.item, h = this.cssClasses.selected, c = this.cssClasses.itemDisabled, d = this.cssClasses.itemReadOnly, f = this.cssClasses.itemPreview, y = this.cssClasses.itemHover, v = this.cssClasses.itemOnError, m = null, g = null, b = null, x = null, T = null;
|
|
58084
58084
|
this.isStar && (u = this.cssClasses.itemStar, h = this.cssClasses.itemStarSelected, c = this.cssClasses.itemStarDisabled, d = this.cssClasses.itemStarReadOnly, f = this.cssClasses.itemStarPreview, y = this.cssClasses.itemStarHover, v = this.cssClasses.itemStarOnError, m = this.cssClasses.itemStarHighlighted, g = this.cssClasses.itemStarUnhighlighted, T = this.cssClasses.itemStarSmall), this.isSmiley && (u = this.cssClasses.itemSmiley, h = this.cssClasses.itemSmileySelected, c = this.cssClasses.itemSmileyDisabled, d = this.cssClasses.itemSmileyReadOnly, f = this.cssClasses.itemSmileyPreview, y = this.cssClasses.itemSmileyHover, v = this.cssClasses.itemSmileyOnError, m = this.cssClasses.itemSmileyHighlighted, b = this.cssClasses.itemSmileyScaleColored, x = this.cssClasses.itemSmileyRateColored, T = this.cssClasses.itemSmileySmall);
|
|
58085
|
-
const
|
|
58086
|
-
return
|
|
58085
|
+
const A = !this.isStar && !this.isSmiley && (!this.displayRateDescriptionsAsExtremeItems || this.useRateValues() && e != this.rateValues[0] && e != this.rateValues[this.rateValues.length - 1] || !this.useRateValues() && e.value != this.rateMin && e.value != this.rateMax) && e.locText.calculatedText.length <= 2 && Number.isInteger(Number(e.locText.calculatedText)), L = { item: e, css: "" };
|
|
58086
|
+
return L.css = new W().append(u).append(h, s).append(c, this.isDisabledStyle).append(d, this.isReadOnlyStyle).append(f, this.isPreviewStyle).append(y, n).append(m, o).append(b, this.scaleColorMode == "colored").append(x, this.rateColorMode == "scale" && s).append(g, l).append(v, this.hasCssError()).append(T, this.itemSmallMode).append(this.cssClasses.itemFixedSize, A).toString(), this.survey && this.survey.updateChoiceItemCss(this, L), L.css;
|
|
58087
58087
|
}
|
|
58088
58088
|
//methods for mobile view
|
|
58089
58089
|
getControlClass() {
|
|
@@ -70423,7 +70423,7 @@ const Bce = (i, e) => {
|
|
|
70423
70423
|
}
|
|
70424
70424
|
renderElement() {
|
|
70425
70425
|
const n = e;
|
|
70426
|
-
return /* @__PURE__ */
|
|
70426
|
+
return /* @__PURE__ */ R.jsx(
|
|
70427
70427
|
n,
|
|
70428
70428
|
{
|
|
70429
70429
|
setValue: (a) => {
|
|
@@ -70454,9 +70454,9 @@ function $ce({
|
|
|
70454
70454
|
},
|
|
70455
70455
|
[i]
|
|
70456
70456
|
);
|
|
70457
|
-
return s.onComplete.add(r), /* @__PURE__ */
|
|
70458
|
-
/* @__PURE__ */
|
|
70459
|
-
/* @__PURE__ */
|
|
70457
|
+
return s.onComplete.add(r), /* @__PURE__ */ R.jsxs("div", { className: "max-w-4xl mx-auto px-4", children: [
|
|
70458
|
+
/* @__PURE__ */ R.jsx("div", { className: "absolute inset-0 -z-10 h-full w-full bg-white bg-[radial-gradient(#e5e7eb_1px,transparent_1px)] [background-size:16px_16px]" }),
|
|
70459
|
+
/* @__PURE__ */ R.jsx(_S, { model: s })
|
|
70460
70460
|
] });
|
|
70461
70461
|
}
|
|
70462
70462
|
var Du = class {
|
|
@@ -70760,15 +70760,15 @@ function r3(i) {
|
|
|
70760
70760
|
v = Promise.reject(g);
|
|
70761
70761
|
}
|
|
70762
70762
|
Promise.resolve(v).then(c).catch((g) => {
|
|
70763
|
-
var
|
|
70763
|
+
var L;
|
|
70764
70764
|
if (s)
|
|
70765
70765
|
return;
|
|
70766
|
-
const b = i.retry ?? (Zd ? 0 : 3), x = i.retryDelay ?? ede, T = typeof x == "function" ? x(t, g) : x,
|
|
70767
|
-
if (e || !
|
|
70766
|
+
const b = i.retry ?? (Zd ? 0 : 3), x = i.retryDelay ?? ede, T = typeof x == "function" ? x(t, g) : x, A = b === !0 || typeof b == "number" && t < b || typeof b == "function" && b(t, g);
|
|
70767
|
+
if (e || !A) {
|
|
70768
70768
|
d(g);
|
|
70769
70769
|
return;
|
|
70770
70770
|
}
|
|
70771
|
-
t++, (
|
|
70771
|
+
t++, (L = i.onFail) == null || L.call(i, t, g), Wce(T).then(() => u() ? void 0 : f()).then(() => {
|
|
70772
70772
|
e ? d(g) : y();
|
|
70773
70773
|
});
|
|
70774
70774
|
});
|
|
@@ -71255,11 +71255,11 @@ var Er, Dx, nde = (Dx = class extends Du {
|
|
|
71255
71255
|
this.execute(this.state.variables);
|
|
71256
71256
|
}
|
|
71257
71257
|
async execute(e) {
|
|
71258
|
-
var r, n, a, o, l, u, h, c, d, f, y, v, m, g, b, x, T,
|
|
71258
|
+
var r, n, a, o, l, u, h, c, d, f, y, v, m, g, b, x, T, A, L, D;
|
|
71259
71259
|
Ue(this, La, r3({
|
|
71260
71260
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
|
|
71261
|
-
onFail: (V,
|
|
71262
|
-
os(this, Sr, _n).call(this, { type: "failed", failureCount: V, error:
|
|
71261
|
+
onFail: (V, I) => {
|
|
71262
|
+
os(this, Sr, _n).call(this, { type: "failed", failureCount: V, error: I });
|
|
71263
71263
|
},
|
|
71264
71264
|
onPause: () => {
|
|
71265
71265
|
os(this, Sr, _n).call(this, { type: "pause" });
|
|
@@ -71280,10 +71280,10 @@ var Er, Dx, nde = (Dx = class extends Du {
|
|
|
71280
71280
|
e,
|
|
71281
71281
|
this
|
|
71282
71282
|
));
|
|
71283
|
-
const
|
|
71284
|
-
|
|
71283
|
+
const I = await ((o = (a = this.options).onMutate) == null ? void 0 : o.call(a, e));
|
|
71284
|
+
I !== this.state.context && os(this, Sr, _n).call(this, {
|
|
71285
71285
|
type: "pending",
|
|
71286
|
-
context:
|
|
71286
|
+
context: I,
|
|
71287
71287
|
variables: e,
|
|
71288
71288
|
isPaused: s
|
|
71289
71289
|
});
|
|
@@ -71316,15 +71316,15 @@ var Er, Dx, nde = (Dx = class extends Du {
|
|
|
71316
71316
|
V,
|
|
71317
71317
|
e,
|
|
71318
71318
|
this.state.context
|
|
71319
|
-
)), await ((
|
|
71319
|
+
)), await ((A = (T = K(this, Ks).config).onSettled) == null ? void 0 : A.call(
|
|
71320
71320
|
T,
|
|
71321
71321
|
void 0,
|
|
71322
71322
|
V,
|
|
71323
71323
|
this.state.variables,
|
|
71324
71324
|
this.state.context,
|
|
71325
71325
|
this
|
|
71326
|
-
)), await ((D = (
|
|
71327
|
-
|
|
71326
|
+
)), await ((D = (L = this.options).onSettled) == null ? void 0 : D.call(
|
|
71327
|
+
L,
|
|
71328
71328
|
void 0,
|
|
71329
71329
|
V,
|
|
71330
71330
|
e,
|
|
@@ -71507,32 +71507,32 @@ function t2(i) {
|
|
|
71507
71507
|
v = !0;
|
|
71508
71508
|
}), e.signal)
|
|
71509
71509
|
});
|
|
71510
|
-
}, g = e3(e.options, e.fetchOptions), b = async (x, T,
|
|
71510
|
+
}, g = e3(e.options, e.fetchOptions), b = async (x, T, A) => {
|
|
71511
71511
|
if (v)
|
|
71512
71512
|
return Promise.reject();
|
|
71513
71513
|
if (T == null && x.pages.length)
|
|
71514
71514
|
return Promise.resolve(x);
|
|
71515
|
-
const
|
|
71515
|
+
const L = {
|
|
71516
71516
|
queryKey: e.queryKey,
|
|
71517
71517
|
pageParam: T,
|
|
71518
|
-
direction:
|
|
71518
|
+
direction: A ? "backward" : "forward",
|
|
71519
71519
|
meta: e.options.meta
|
|
71520
71520
|
};
|
|
71521
|
-
m(
|
|
71521
|
+
m(L);
|
|
71522
71522
|
const D = await g(
|
|
71523
|
-
|
|
71524
|
-
), { maxPages: V } = e.options,
|
|
71523
|
+
L
|
|
71524
|
+
), { maxPages: V } = e.options, I = A ? Zce : Kce;
|
|
71525
71525
|
return {
|
|
71526
|
-
pages:
|
|
71527
|
-
pageParams:
|
|
71526
|
+
pages: I(x.pages, D, V),
|
|
71527
|
+
pageParams: I(x.pageParams, T, V)
|
|
71528
71528
|
};
|
|
71529
71529
|
};
|
|
71530
71530
|
if (r && n.length) {
|
|
71531
|
-
const x = r === "backward", T = x ? lde : s2,
|
|
71531
|
+
const x = r === "backward", T = x ? lde : s2, A = {
|
|
71532
71532
|
pages: n,
|
|
71533
71533
|
pageParams: a
|
|
71534
|
-
},
|
|
71535
|
-
o = await b(
|
|
71534
|
+
}, L = T(s, A);
|
|
71535
|
+
o = await b(A, L, x);
|
|
71536
71536
|
} else {
|
|
71537
71537
|
const x = i ?? n.length;
|
|
71538
71538
|
do {
|
|
@@ -71857,7 +71857,7 @@ var Xt, Qn, Un, Ao, Lo, zn, _o, Do, Mx, ude = (Mx = class {
|
|
|
71857
71857
|
children: e
|
|
71858
71858
|
}) => (p.useEffect(() => (i.mount(), () => {
|
|
71859
71859
|
i.unmount();
|
|
71860
|
-
}), [i]), /* @__PURE__ */
|
|
71860
|
+
}), [i]), /* @__PURE__ */ R.jsx(o3.Provider, { value: i, children: e }));
|
|
71861
71861
|
function pde(i, e) {
|
|
71862
71862
|
return typeof i == "function" ? i(...e) : !!i;
|
|
71863
71863
|
}
|
|
@@ -72419,7 +72419,7 @@ function c2(i, e, t, s) {
|
|
|
72419
72419
|
}
|
|
72420
72420
|
function Nde() {
|
|
72421
72421
|
const i = this;
|
|
72422
|
-
let e, t, s, r, n, a, o, l, u, h, c, d, f, y, v, m, g, b, x, T,
|
|
72422
|
+
let e, t, s, r, n, a, o, l, u, h, c, d, f, y, v, m, g, b, x, T, A, L, D, V, I, M, q, Q, _, B, H, $, j;
|
|
72423
72423
|
const G = new Ft(), ne = new Ft(), Y = new Ft();
|
|
72424
72424
|
i.depth = [];
|
|
72425
72425
|
let oe, re, ue, Ie, ge, te;
|
|
@@ -72428,7 +72428,7 @@ function Nde() {
|
|
|
72428
72428
|
u = 2 * n, c[f - 1] = 0;
|
|
72429
72429
|
for (let Z = 0; Z < f - 1; Z++)
|
|
72430
72430
|
c[Z] = 0;
|
|
72431
|
-
|
|
72431
|
+
M = er[q].max_lazy, _ = er[q].good_length, B = er[q].nice_length, I = er[q].max_chain, A = 0, g = 0, D = 0, b = V = Wt - 1, T = 0, d = 0;
|
|
72432
72432
|
}
|
|
72433
72433
|
function et() {
|
|
72434
72434
|
let Z;
|
|
@@ -72507,7 +72507,7 @@ function Nde() {
|
|
|
72507
72507
|
function Ge(Z, se) {
|
|
72508
72508
|
let X, ae, de;
|
|
72509
72509
|
if (i.dist_buf[re] = Z, i.lc_buf[re] = se & 255, re++, Z === 0 ? H[se * 2]++ : (ue++, Z--, H[(Ft._length_code[se] + Mc + 1) * 2]++, $[Ft.d_code(Z) * 2]++), !(re & 8191) && q > 2) {
|
|
72510
|
-
for (X = re * 8, ae =
|
|
72510
|
+
for (X = re * 8, ae = A - g, de = 0; de < zm; de++)
|
|
72511
72511
|
X += $[de * 2] * (5 + Ft.extra_dbits[de]);
|
|
72512
72512
|
if (X >>>= 3, ue < Math.floor(re / 2) && X < Math.floor(ae / 2))
|
|
72513
72513
|
return !0;
|
|
@@ -72536,17 +72536,17 @@ function Nde() {
|
|
|
72536
72536
|
q > 0 ? (G.build_tree(i), ne.build_tree(i), Ae = Is(), ae = i.opt_len + 3 + 7 >>> 3, de = i.static_len + 3 + 7 >>> 3, de <= ae && (ae = de)) : ae = de = se + 5, se + 4 <= ae && Z != -1 ? ws(Z, se, X) : de == ae ? (Le((Sf << 1) + (X ? 1 : 0), 3), Te(Os.static_ltree, Os.static_dtree)) : (Le((Mde << 1) + (X ? 1 : 0), 3), zt(G.max_code + 1, ne.max_code + 1, Ae + 1), Te(H, $)), et(), X && ns();
|
|
72537
72537
|
}
|
|
72538
72538
|
function js(Z) {
|
|
72539
|
-
Ur(g >= 0 ? g : -1,
|
|
72539
|
+
Ur(g >= 0 ? g : -1, A - g, Z), g = A, e.flush_pending();
|
|
72540
72540
|
}
|
|
72541
72541
|
function Ws() {
|
|
72542
72542
|
let Z, se, X, ae;
|
|
72543
72543
|
do {
|
|
72544
|
-
if (ae = u - D -
|
|
72544
|
+
if (ae = u - D - A, ae === 0 && A === 0 && D === 0)
|
|
72545
72545
|
ae = n;
|
|
72546
72546
|
else if (ae == -1)
|
|
72547
72547
|
ae--;
|
|
72548
|
-
else if (
|
|
72549
|
-
l.set(l.subarray(n, n + n), 0),
|
|
72548
|
+
else if (A >= n + n - Ci) {
|
|
72549
|
+
l.set(l.subarray(n, n + n), 0), L -= n, A -= n, g -= n, Z = f, X = Z;
|
|
72550
72550
|
do
|
|
72551
72551
|
se = c[--X] & 65535, c[X] = se >= n ? se - n : 0;
|
|
72552
72552
|
while (--Z !== 0);
|
|
@@ -72558,7 +72558,7 @@ function Nde() {
|
|
|
72558
72558
|
}
|
|
72559
72559
|
if (e.avail_in === 0)
|
|
72560
72560
|
return;
|
|
72561
|
-
Z = e.read_buf(l,
|
|
72561
|
+
Z = e.read_buf(l, A + D, ae), D += Z, D >= Wt && (d = l[A] & 255, d = (d << m ^ l[A + 1] & 255) & v);
|
|
72562
72562
|
} while (D < Ci && e.avail_in !== 0);
|
|
72563
72563
|
}
|
|
72564
72564
|
function _i(Z) {
|
|
@@ -72570,18 +72570,18 @@ function Nde() {
|
|
|
72570
72570
|
if (D === 0)
|
|
72571
72571
|
break;
|
|
72572
72572
|
}
|
|
72573
|
-
if (
|
|
72573
|
+
if (A += D, D = 0, X = g + se, (A === 0 || A >= X) && (D = A - X, A = X, js(!1), e.avail_out === 0) || A - g >= n - Ci && (js(!1), e.avail_out === 0))
|
|
72574
72574
|
return ki;
|
|
72575
72575
|
}
|
|
72576
72576
|
return js(Z == ri), e.avail_out === 0 ? Z == ri ? Rl : ki : Z == ri ? Dh : _h;
|
|
72577
72577
|
}
|
|
72578
72578
|
function Gs(Z) {
|
|
72579
|
-
let se =
|
|
72580
|
-
const je =
|
|
72579
|
+
let se = I, X = A, ae, de, Ae = V;
|
|
72580
|
+
const je = A > n - Ci ? A - (n - Ci) : 0;
|
|
72581
72581
|
let as = B;
|
|
72582
|
-
const Rs = o, zr =
|
|
72582
|
+
const Rs = o, zr = A + tc;
|
|
72583
72583
|
let Za = l[X + Ae - 1], pa = l[X + Ae];
|
|
72584
|
-
V >=
|
|
72584
|
+
V >= _ && (se >>= 2), as > D && (as = D);
|
|
72585
72585
|
do
|
|
72586
72586
|
if (ae = Z, !(l[ae + Ae] != pa || l[ae + Ae - 1] != Za || l[ae] != l[X] || l[++ae] != l[X + 1])) {
|
|
72587
72587
|
X += 2, ae++;
|
|
@@ -72589,7 +72589,7 @@ function Nde() {
|
|
|
72589
72589
|
;
|
|
72590
72590
|
while (l[++X] == l[++ae] && l[++X] == l[++ae] && l[++X] == l[++ae] && l[++X] == l[++ae] && l[++X] == l[++ae] && l[++X] == l[++ae] && l[++X] == l[++ae] && l[++X] == l[++ae] && X < zr);
|
|
72591
72591
|
if (de = tc - (zr - X), X = zr - tc, de > Ae) {
|
|
72592
|
-
if (
|
|
72592
|
+
if (L = Z, Ae = de, de >= as)
|
|
72593
72593
|
break;
|
|
72594
72594
|
Za = l[X + Ae - 1], pa = l[X + Ae];
|
|
72595
72595
|
}
|
|
@@ -72606,17 +72606,17 @@ function Nde() {
|
|
|
72606
72606
|
if (D === 0)
|
|
72607
72607
|
break;
|
|
72608
72608
|
}
|
|
72609
|
-
if (D >= Wt && (d = (d << m ^ l[
|
|
72610
|
-
if (X = Ge(
|
|
72609
|
+
if (D >= Wt && (d = (d << m ^ l[A + (Wt - 1)] & 255) & v, se = c[d] & 65535, h[A & o] = c[d], c[d] = A), se !== 0 && (A - se & 65535) <= n - Ci && Q != Rh && (b = Gs(se)), b >= Wt)
|
|
72610
|
+
if (X = Ge(A - L, b - Wt), D -= b, b <= M && D >= Wt) {
|
|
72611
72611
|
b--;
|
|
72612
72612
|
do
|
|
72613
|
-
|
|
72613
|
+
A++, d = (d << m ^ l[A + (Wt - 1)] & 255) & v, se = c[d] & 65535, h[A & o] = c[d], c[d] = A;
|
|
72614
72614
|
while (--b !== 0);
|
|
72615
|
-
|
|
72615
|
+
A++;
|
|
72616
72616
|
} else
|
|
72617
|
-
|
|
72617
|
+
A += b, b = 0, d = l[A] & 255, d = (d << m ^ l[A + 1] & 255) & v;
|
|
72618
72618
|
else
|
|
72619
|
-
X = Ge(0, l[
|
|
72619
|
+
X = Ge(0, l[A] & 255), D--, A++;
|
|
72620
72620
|
if (X && (js(!1), e.avail_out === 0))
|
|
72621
72621
|
return ki;
|
|
72622
72622
|
}
|
|
@@ -72631,20 +72631,20 @@ function Nde() {
|
|
|
72631
72631
|
if (D === 0)
|
|
72632
72632
|
break;
|
|
72633
72633
|
}
|
|
72634
|
-
if (D >= Wt && (d = (d << m ^ l[
|
|
72635
|
-
ae =
|
|
72634
|
+
if (D >= Wt && (d = (d << m ^ l[A + (Wt - 1)] & 255) & v, se = c[d] & 65535, h[A & o] = c[d], c[d] = A), V = b, x = L, b = Wt - 1, se !== 0 && V < M && (A - se & 65535) <= n - Ci && (Q != Rh && (b = Gs(se)), b <= 5 && (Q == Vde || b == Wt && A - L > 4096) && (b = Wt - 1)), V >= Wt && b <= V) {
|
|
72635
|
+
ae = A + D - Wt, X = Ge(A - 1 - x, V - Wt), D -= V - 1, V -= 2;
|
|
72636
72636
|
do
|
|
72637
|
-
++
|
|
72637
|
+
++A <= ae && (d = (d << m ^ l[A + (Wt - 1)] & 255) & v, se = c[d] & 65535, h[A & o] = c[d], c[d] = A);
|
|
72638
72638
|
while (--V !== 0);
|
|
72639
|
-
if (T = 0, b = Wt - 1,
|
|
72639
|
+
if (T = 0, b = Wt - 1, A++, X && (js(!1), e.avail_out === 0))
|
|
72640
72640
|
return ki;
|
|
72641
72641
|
} else if (T !== 0) {
|
|
72642
|
-
if (X = Ge(0, l[
|
|
72642
|
+
if (X = Ge(0, l[A - 1] & 255), X && js(!1), A++, D--, e.avail_out === 0)
|
|
72643
72643
|
return ki;
|
|
72644
72644
|
} else
|
|
72645
|
-
T = 1,
|
|
72645
|
+
T = 1, A++, D--;
|
|
72646
72646
|
}
|
|
72647
|
-
return T !== 0 && (X = Ge(0, l[
|
|
72647
|
+
return T !== 0 && (X = Ge(0, l[A - 1] & 255), T = 0), js(Z == ri), e.avail_out === 0 ? Z == ri ? Rl : ki : Z == ri ? Dh : _h;
|
|
72648
72648
|
}
|
|
72649
72649
|
function Cn(Z) {
|
|
72650
72650
|
return Z.total_in = Z.total_out = 0, Z.msg = null, i.pending = 0, i.pending_out = 0, t = kh, r = po, Yt(), we(), sr;
|
|
@@ -72655,14 +72655,14 @@ function Nde() {
|
|
|
72655
72655
|
return t != Ef && t != kh && t != Al ? ar : (i.lc_buf = null, i.dist_buf = null, i.pending_buf = null, c = null, h = null, l = null, i.dstate = null, t == kh ? Pde : sr);
|
|
72656
72656
|
}, i.deflateParams = function(Z, se, X) {
|
|
72657
72657
|
let ae = sr;
|
|
72658
|
-
return se == Nc && (se = 6), se < 0 || se > 9 || X < 0 || X > Rh ? ar : (er[q].func != er[se].func && Z.total_in !== 0 && (ae = Z.deflate(u2)), q != se && (q = se,
|
|
72658
|
+
return se == Nc && (se = 6), se < 0 || se > 9 || X < 0 || X > Rh ? ar : (er[q].func != er[se].func && Z.total_in !== 0 && (ae = Z.deflate(u2)), q != se && (q = se, M = er[q].max_lazy, _ = er[q].good_length, B = er[q].nice_length, I = er[q].max_chain), Q = X, ae);
|
|
72659
72659
|
}, i.deflateSetDictionary = function(Z, se, X) {
|
|
72660
72660
|
let ae = X, de, Ae = 0;
|
|
72661
72661
|
if (!se || t != Ef)
|
|
72662
72662
|
return ar;
|
|
72663
72663
|
if (ae < Wt)
|
|
72664
72664
|
return sr;
|
|
72665
|
-
for (ae > n - Ci && (ae = n - Ci, Ae = X - ae), l.set(se.subarray(Ae, Ae + ae), 0),
|
|
72665
|
+
for (ae > n - Ci && (ae = n - Ci, Ae = X - ae), l.set(se.subarray(Ae, Ae + ae), 0), A = ae, g = ae, d = l[0] & 255, d = (d << m ^ l[1] & 255) & v, de = 0; de <= ae - Wt; de++)
|
|
72666
72666
|
d = (d << m ^ l[de + (Wt - 1)] & 255) & v, h[de & o] = c[d], c[d] = de;
|
|
72667
72667
|
return sr;
|
|
72668
72668
|
}, i.deflate = function(Z, se) {
|
|
@@ -72673,7 +72673,7 @@ function Nde() {
|
|
|
72673
72673
|
return Z.msg = Lh[Ah - ar], ar;
|
|
72674
72674
|
if (Z.avail_out === 0)
|
|
72675
72675
|
return Z.msg = Lh[Ah - uo], uo;
|
|
72676
|
-
if (e = Z, Ae = r, r = se, t == Ef && (ae = Vf + (a - 8 << 4) << 8, de = (q - 1 & 255) >> 1, de > 3 && (de = 3), ae |= de << 6,
|
|
72676
|
+
if (e = Z, Ae = r, r = se, t == Ef && (ae = Vf + (a - 8 << 4) << 8, de = (q - 1 & 255) >> 1, de > 3 && (de = 3), ae |= de << 6, A !== 0 && (ae |= kde), ae += 31 - ae % 31, t = kh, rs(ae)), i.pending !== 0) {
|
|
72677
72677
|
if (e.flush_pending(), e.avail_out === 0)
|
|
72678
72678
|
return r = -1, sr;
|
|
72679
72679
|
} else if (e.avail_in === 0 && se <= Ae && se != ri)
|
|
@@ -74576,53 +74576,53 @@ function Wm() {
|
|
|
74576
74576
|
const i = this;
|
|
74577
74577
|
let e, t, s, r, n, a;
|
|
74578
74578
|
function o(u, h, c, d, f, y, v, m, g, b, x) {
|
|
74579
|
-
let T,
|
|
74580
|
-
|
|
74579
|
+
let T, A, L, D, V, I, M, q, Q, _, B, H, $, j, G;
|
|
74580
|
+
_ = 0, V = c;
|
|
74581
74581
|
do
|
|
74582
|
-
s[u[h +
|
|
74582
|
+
s[u[h + _]]++, _++, V--;
|
|
74583
74583
|
while (V !== 0);
|
|
74584
74584
|
if (s[0] == c)
|
|
74585
74585
|
return v[0] = -1, m[0] = 0, gt;
|
|
74586
|
-
for (q = m[0],
|
|
74586
|
+
for (q = m[0], I = 1; I <= In && s[I] === 0; I++)
|
|
74587
74587
|
;
|
|
74588
|
-
for (
|
|
74588
|
+
for (M = I, q < I && (q = I), V = In; V !== 0 && s[V] === 0; V--)
|
|
74589
74589
|
;
|
|
74590
|
-
for (
|
|
74591
|
-
if ((j -= s[
|
|
74590
|
+
for (L = V, q > V && (q = V), m[0] = q, j = 1 << I; I < V; I++, j <<= 1)
|
|
74591
|
+
if ((j -= s[I]) < 0)
|
|
74592
74592
|
return qt;
|
|
74593
74593
|
if ((j -= s[V]) < 0)
|
|
74594
74594
|
return qt;
|
|
74595
|
-
for (s[V] += j, a[1] =
|
|
74596
|
-
a[$] =
|
|
74597
|
-
V = 0,
|
|
74595
|
+
for (s[V] += j, a[1] = I = 0, _ = 1, $ = 2; --V !== 0; )
|
|
74596
|
+
a[$] = I += s[_], $++, _++;
|
|
74597
|
+
V = 0, _ = 0;
|
|
74598
74598
|
do
|
|
74599
|
-
(
|
|
74599
|
+
(I = u[h + _]) !== 0 && (x[a[I]++] = V), _++;
|
|
74600
74600
|
while (++V < c);
|
|
74601
|
-
for (c = a[
|
|
74602
|
-
for (T = s[
|
|
74603
|
-
for (;
|
|
74604
|
-
if (D++, H += q, G =
|
|
74605
|
-
for (; ++
|
|
74606
|
-
|
|
74607
|
-
if (G = 1 <<
|
|
74601
|
+
for (c = a[L], a[0] = V = 0, _ = 0, D = -1, H = -q, n[0] = 0, B = 0, G = 0; M <= L; M++)
|
|
74602
|
+
for (T = s[M]; T-- !== 0; ) {
|
|
74603
|
+
for (; M > H + q; ) {
|
|
74604
|
+
if (D++, H += q, G = L - H, G = G > q ? q : G, (A = 1 << (I = M - H)) > T + 1 && (A -= T + 1, $ = M, I < G))
|
|
74605
|
+
for (; ++I < G && !((A <<= 1) <= s[++$]); )
|
|
74606
|
+
A -= s[$];
|
|
74607
|
+
if (G = 1 << I, b[0] + G > c3)
|
|
74608
74608
|
return qt;
|
|
74609
74609
|
n[D] = B = /* hp+ */
|
|
74610
74610
|
b[0], b[0] += G, D !== 0 ? (a[D] = V, r[0] = /* (byte) */
|
|
74611
|
-
|
|
74612
|
-
q,
|
|
74613
|
-
B - n[D - 1] -
|
|
74611
|
+
I, r[1] = /* (byte) */
|
|
74612
|
+
q, I = V >>> H - q, r[2] = /* (int) */
|
|
74613
|
+
B - n[D - 1] - I, g.set(r, (n[D - 1] + I) * 3)) : v[0] = B;
|
|
74614
74614
|
}
|
|
74615
74615
|
for (r[1] = /* (byte) */
|
|
74616
|
-
|
|
74617
|
-
x[
|
|
74618
|
-
y[x[
|
|
74619
|
-
g.set(r, (B +
|
|
74620
|
-
for (
|
|
74621
|
-
V ^=
|
|
74622
|
-
for (V ^=
|
|
74616
|
+
M - H, _ >= c ? r[0] = 192 : x[_] < d ? (r[0] = /* (byte) */
|
|
74617
|
+
x[_] < 256 ? 0 : 96, r[2] = x[_++]) : (r[0] = /* (byte) */
|
|
74618
|
+
y[x[_] - d] + 16 + 64, r[2] = f[x[_++] - d]), A = 1 << M - H, I = V >>> H; I < G; I += A)
|
|
74619
|
+
g.set(r, (B + I) * 3);
|
|
74620
|
+
for (I = 1 << M - 1; V & I; I >>>= 1)
|
|
74621
|
+
V ^= I;
|
|
74622
|
+
for (V ^= I, Q = (1 << H) - 1; (V & Q) != a[D]; )
|
|
74623
74623
|
D--, H -= q, Q = (1 << H) - 1;
|
|
74624
74624
|
}
|
|
74625
|
-
return j !== 0 &&
|
|
74625
|
+
return j !== 0 && L != 1 ? un : gt;
|
|
74626
74626
|
}
|
|
74627
74627
|
function l(u) {
|
|
74628
74628
|
let h;
|
|
@@ -74649,169 +74649,169 @@ const Oh = 0, p2 = 1, f2 = 2, m2 = 3, g2 = 4, v2 = 5, y2 = 6, Tf = 7, C2 = 8, Mh
|
|
|
74649
74649
|
function Yde() {
|
|
74650
74650
|
const i = this;
|
|
74651
74651
|
let e, t = 0, s, r = 0, n = 0, a = 0, o = 0, l = 0, u = 0, h = 0, c, d = 0, f, y = 0;
|
|
74652
|
-
function v(m, g, b, x, T,
|
|
74653
|
-
let V,
|
|
74654
|
-
B = D.next_in_index, H = D.avail_in, Q =
|
|
74652
|
+
function v(m, g, b, x, T, A, L, D) {
|
|
74653
|
+
let V, I, M, q, Q, _, B, H, $, j, G, ne, Y, oe, re, ue;
|
|
74654
|
+
B = D.next_in_index, H = D.avail_in, Q = L.bitb, _ = L.bitk, $ = L.write, j = $ < L.read ? L.read - $ - 1 : L.end - $, G = bi[m], ne = bi[g];
|
|
74655
74655
|
do {
|
|
74656
|
-
for (;
|
|
74657
|
-
H--, Q |= (D.read_byte(B++) & 255) <<
|
|
74658
|
-
if (V = Q & G,
|
|
74659
|
-
Q >>=
|
|
74660
|
-
|
|
74656
|
+
for (; _ < 20; )
|
|
74657
|
+
H--, Q |= (D.read_byte(B++) & 255) << _, _ += 8;
|
|
74658
|
+
if (V = Q & G, I = b, M = x, ue = (M + V) * 3, (q = I[ue]) === 0) {
|
|
74659
|
+
Q >>= I[ue + 1], _ -= I[ue + 1], L.win[$++] = /* (byte) */
|
|
74660
|
+
I[ue + 2], j--;
|
|
74661
74661
|
continue;
|
|
74662
74662
|
}
|
|
74663
74663
|
do {
|
|
74664
|
-
if (Q >>=
|
|
74665
|
-
for (q &= 15, Y =
|
|
74666
|
-
(Q & bi[q]), Q >>= q,
|
|
74667
|
-
H--, Q |= (D.read_byte(B++) & 255) <<
|
|
74668
|
-
V = Q & ne,
|
|
74664
|
+
if (Q >>= I[ue + 1], _ -= I[ue + 1], q & 16) {
|
|
74665
|
+
for (q &= 15, Y = I[ue + 2] + /* (int) */
|
|
74666
|
+
(Q & bi[q]), Q >>= q, _ -= q; _ < 15; )
|
|
74667
|
+
H--, Q |= (D.read_byte(B++) & 255) << _, _ += 8;
|
|
74668
|
+
V = Q & ne, I = T, M = A, ue = (M + V) * 3, q = I[ue];
|
|
74669
74669
|
do
|
|
74670
|
-
if (Q >>=
|
|
74671
|
-
for (q &= 15;
|
|
74672
|
-
H--, Q |= (D.read_byte(B++) & 255) <<
|
|
74673
|
-
if (oe =
|
|
74674
|
-
re = $ - oe, $ - re > 0 && 2 > $ - re ? (
|
|
74670
|
+
if (Q >>= I[ue + 1], _ -= I[ue + 1], q & 16) {
|
|
74671
|
+
for (q &= 15; _ < q; )
|
|
74672
|
+
H--, Q |= (D.read_byte(B++) & 255) << _, _ += 8;
|
|
74673
|
+
if (oe = I[ue + 2] + (Q & bi[q]), Q >>= q, _ -= q, j -= Y, $ >= oe)
|
|
74674
|
+
re = $ - oe, $ - re > 0 && 2 > $ - re ? (L.win[$++] = L.win[re++], L.win[$++] = L.win[re++], Y -= 2) : (L.win.set(L.win.subarray(re, re + 2), $), $ += 2, re += 2, Y -= 2);
|
|
74675
74675
|
else {
|
|
74676
74676
|
re = $ - oe;
|
|
74677
74677
|
do
|
|
74678
|
-
re +=
|
|
74678
|
+
re += L.end;
|
|
74679
74679
|
while (re < 0);
|
|
74680
|
-
if (q =
|
|
74680
|
+
if (q = L.end - re, Y > q) {
|
|
74681
74681
|
if (Y -= q, $ - re > 0 && q > $ - re)
|
|
74682
74682
|
do
|
|
74683
|
-
|
|
74683
|
+
L.win[$++] = L.win[re++];
|
|
74684
74684
|
while (--q !== 0);
|
|
74685
74685
|
else
|
|
74686
|
-
|
|
74686
|
+
L.win.set(L.win.subarray(re, re + q), $), $ += q, re += q, q = 0;
|
|
74687
74687
|
re = 0;
|
|
74688
74688
|
}
|
|
74689
74689
|
}
|
|
74690
74690
|
if ($ - re > 0 && Y > $ - re)
|
|
74691
74691
|
do
|
|
74692
|
-
|
|
74692
|
+
L.win[$++] = L.win[re++];
|
|
74693
74693
|
while (--Y !== 0);
|
|
74694
74694
|
else
|
|
74695
|
-
|
|
74695
|
+
L.win.set(L.win.subarray(re, re + Y), $), $ += Y, re += Y, Y = 0;
|
|
74696
74696
|
break;
|
|
74697
74697
|
} else if (!(q & 64))
|
|
74698
|
-
V +=
|
|
74698
|
+
V += I[ue + 2], V += Q & bi[q], ue = (M + V) * 3, q = I[ue];
|
|
74699
74699
|
else
|
|
74700
|
-
return D.msg = "invalid distance code", Y = D.avail_in - H, Y =
|
|
74700
|
+
return D.msg = "invalid distance code", Y = D.avail_in - H, Y = _ >> 3 < Y ? _ >> 3 : Y, H += Y, B -= Y, _ -= Y << 3, L.bitb = Q, L.bitk = _, D.avail_in = H, D.total_in += B - D.next_in_index, D.next_in_index = B, L.write = $, qt;
|
|
74701
74701
|
while (!0);
|
|
74702
74702
|
break;
|
|
74703
74703
|
}
|
|
74704
74704
|
if (q & 64)
|
|
74705
|
-
return q & 32 ? (Y = D.avail_in - H, Y =
|
|
74706
|
-
if (V +=
|
|
74707
|
-
Q >>=
|
|
74708
|
-
|
|
74705
|
+
return q & 32 ? (Y = D.avail_in - H, Y = _ >> 3 < Y ? _ >> 3 : Y, H += Y, B -= Y, _ -= Y << 3, L.bitb = Q, L.bitk = _, D.avail_in = H, D.total_in += B - D.next_in_index, D.next_in_index = B, L.write = $, ln) : (D.msg = "invalid literal/length code", Y = D.avail_in - H, Y = _ >> 3 < Y ? _ >> 3 : Y, H += Y, B -= Y, _ -= Y << 3, L.bitb = Q, L.bitk = _, D.avail_in = H, D.total_in += B - D.next_in_index, D.next_in_index = B, L.write = $, qt);
|
|
74706
|
+
if (V += I[ue + 2], V += Q & bi[q], ue = (M + V) * 3, (q = I[ue]) === 0) {
|
|
74707
|
+
Q >>= I[ue + 1], _ -= I[ue + 1], L.win[$++] = /* (byte) */
|
|
74708
|
+
I[ue + 2], j--;
|
|
74709
74709
|
break;
|
|
74710
74710
|
}
|
|
74711
74711
|
} while (!0);
|
|
74712
74712
|
} while (j >= 258 && H >= 10);
|
|
74713
|
-
return Y = D.avail_in - H, Y =
|
|
74713
|
+
return Y = D.avail_in - H, Y = _ >> 3 < Y ? _ >> 3 : Y, H += Y, B -= Y, _ -= Y << 3, L.bitb = Q, L.bitk = _, D.avail_in = H, D.total_in += B - D.next_in_index, D.next_in_index = B, L.write = $, gt;
|
|
74714
74714
|
}
|
|
74715
|
-
i.init = function(m, g, b, x, T,
|
|
74715
|
+
i.init = function(m, g, b, x, T, A) {
|
|
74716
74716
|
e = Oh, u = /* (byte) */
|
|
74717
74717
|
m, h = /* (byte) */
|
|
74718
|
-
g, c = b, d = x, f = T, y =
|
|
74718
|
+
g, c = b, d = x, f = T, y = A, s = null;
|
|
74719
74719
|
}, i.proc = function(m, g, b) {
|
|
74720
|
-
let x, T,
|
|
74721
|
-
for (V = g.next_in_index,
|
|
74720
|
+
let x, T, A, L = 0, D = 0, V = 0, I, M, q, Q;
|
|
74721
|
+
for (V = g.next_in_index, I = g.avail_in, L = m.bitb, D = m.bitk, M = m.write, q = M < m.read ? m.read - M - 1 : m.end - M; ; )
|
|
74722
74722
|
switch (e) {
|
|
74723
74723
|
case Oh:
|
|
74724
|
-
if (q >= 258 &&
|
|
74724
|
+
if (q >= 258 && I >= 10 && (m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, b = v(u, h, c, d, f, y, m, g), V = g.next_in_index, I = g.avail_in, L = m.bitb, D = m.bitk, M = m.write, q = M < m.read ? m.read - M - 1 : m.end - M, b != gt)) {
|
|
74725
74725
|
e = b == ln ? Tf : Mh;
|
|
74726
74726
|
break;
|
|
74727
74727
|
}
|
|
74728
74728
|
n = u, s = c, r = d, e = p2;
|
|
74729
74729
|
case p2:
|
|
74730
74730
|
for (x = n; D < x; ) {
|
|
74731
|
-
if (
|
|
74731
|
+
if (I !== 0)
|
|
74732
74732
|
b = gt;
|
|
74733
74733
|
else
|
|
74734
|
-
return m.bitb =
|
|
74735
|
-
|
|
74734
|
+
return m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
|
|
74735
|
+
I--, L |= (g.read_byte(V++) & 255) << D, D += 8;
|
|
74736
74736
|
}
|
|
74737
|
-
if (T = (r + (
|
|
74737
|
+
if (T = (r + (L & bi[x])) * 3, L >>>= s[T + 1], D -= s[T + 1], A = s[T], A === 0) {
|
|
74738
74738
|
a = s[T + 2], e = y2;
|
|
74739
74739
|
break;
|
|
74740
74740
|
}
|
|
74741
|
-
if (
|
|
74742
|
-
o =
|
|
74741
|
+
if (A & 16) {
|
|
74742
|
+
o = A & 15, t = s[T + 2], e = f2;
|
|
74743
74743
|
break;
|
|
74744
74744
|
}
|
|
74745
|
-
if (!(
|
|
74746
|
-
n =
|
|
74745
|
+
if (!(A & 64)) {
|
|
74746
|
+
n = A, r = T / 3 + s[T + 2];
|
|
74747
74747
|
break;
|
|
74748
74748
|
}
|
|
74749
|
-
if (
|
|
74749
|
+
if (A & 32) {
|
|
74750
74750
|
e = Tf;
|
|
74751
74751
|
break;
|
|
74752
74752
|
}
|
|
74753
|
-
return e = Mh, g.msg = "invalid literal/length code", b = qt, m.bitb =
|
|
74753
|
+
return e = Mh, g.msg = "invalid literal/length code", b = qt, m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
|
|
74754
74754
|
case f2:
|
|
74755
74755
|
for (x = o; D < x; ) {
|
|
74756
|
-
if (
|
|
74756
|
+
if (I !== 0)
|
|
74757
74757
|
b = gt;
|
|
74758
74758
|
else
|
|
74759
|
-
return m.bitb =
|
|
74760
|
-
|
|
74759
|
+
return m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
|
|
74760
|
+
I--, L |= (g.read_byte(V++) & 255) << D, D += 8;
|
|
74761
74761
|
}
|
|
74762
|
-
t +=
|
|
74762
|
+
t += L & bi[x], L >>= x, D -= x, n = h, s = f, r = y, e = m2;
|
|
74763
74763
|
case m2:
|
|
74764
74764
|
for (x = n; D < x; ) {
|
|
74765
|
-
if (
|
|
74765
|
+
if (I !== 0)
|
|
74766
74766
|
b = gt;
|
|
74767
74767
|
else
|
|
74768
|
-
return m.bitb =
|
|
74769
|
-
|
|
74768
|
+
return m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
|
|
74769
|
+
I--, L |= (g.read_byte(V++) & 255) << D, D += 8;
|
|
74770
74770
|
}
|
|
74771
|
-
if (T = (r + (
|
|
74772
|
-
o =
|
|
74771
|
+
if (T = (r + (L & bi[x])) * 3, L >>= s[T + 1], D -= s[T + 1], A = s[T], A & 16) {
|
|
74772
|
+
o = A & 15, l = s[T + 2], e = g2;
|
|
74773
74773
|
break;
|
|
74774
74774
|
}
|
|
74775
|
-
if (!(
|
|
74776
|
-
n =
|
|
74775
|
+
if (!(A & 64)) {
|
|
74776
|
+
n = A, r = T / 3 + s[T + 2];
|
|
74777
74777
|
break;
|
|
74778
74778
|
}
|
|
74779
|
-
return e = Mh, g.msg = "invalid distance code", b = qt, m.bitb =
|
|
74779
|
+
return e = Mh, g.msg = "invalid distance code", b = qt, m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
|
|
74780
74780
|
case g2:
|
|
74781
74781
|
for (x = o; D < x; ) {
|
|
74782
|
-
if (
|
|
74782
|
+
if (I !== 0)
|
|
74783
74783
|
b = gt;
|
|
74784
74784
|
else
|
|
74785
|
-
return m.bitb =
|
|
74786
|
-
|
|
74785
|
+
return m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
|
|
74786
|
+
I--, L |= (g.read_byte(V++) & 255) << D, D += 8;
|
|
74787
74787
|
}
|
|
74788
|
-
l +=
|
|
74788
|
+
l += L & bi[x], L >>= x, D -= x, e = v2;
|
|
74789
74789
|
case v2:
|
|
74790
|
-
for (Q =
|
|
74790
|
+
for (Q = M - l; Q < 0; )
|
|
74791
74791
|
Q += m.end;
|
|
74792
74792
|
for (; t !== 0; ) {
|
|
74793
|
-
if (q === 0 && (
|
|
74794
|
-
return m.bitb =
|
|
74795
|
-
m.win[
|
|
74793
|
+
if (q === 0 && (M == m.end && m.read !== 0 && (M = 0, q = M < m.read ? m.read - M - 1 : m.end - M), q === 0 && (m.write = M, b = m.inflate_flush(g, b), M = m.write, q = M < m.read ? m.read - M - 1 : m.end - M, M == m.end && m.read !== 0 && (M = 0, q = M < m.read ? m.read - M - 1 : m.end - M), q === 0)))
|
|
74794
|
+
return m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
|
|
74795
|
+
m.win[M++] = m.win[Q++], q--, Q == m.end && (Q = 0), t--;
|
|
74796
74796
|
}
|
|
74797
74797
|
e = Oh;
|
|
74798
74798
|
break;
|
|
74799
74799
|
case y2:
|
|
74800
|
-
if (q === 0 && (
|
|
74801
|
-
return m.bitb =
|
|
74802
|
-
b = gt, m.win[
|
|
74800
|
+
if (q === 0 && (M == m.end && m.read !== 0 && (M = 0, q = M < m.read ? m.read - M - 1 : m.end - M), q === 0 && (m.write = M, b = m.inflate_flush(g, b), M = m.write, q = M < m.read ? m.read - M - 1 : m.end - M, M == m.end && m.read !== 0 && (M = 0, q = M < m.read ? m.read - M - 1 : m.end - M), q === 0)))
|
|
74801
|
+
return m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
|
|
74802
|
+
b = gt, m.win[M++] = /* (byte) */
|
|
74803
74803
|
a, q--, e = Oh;
|
|
74804
74804
|
break;
|
|
74805
74805
|
case Tf:
|
|
74806
|
-
if (D > 7 && (D -= 8,
|
|
74807
|
-
return m.bitb =
|
|
74806
|
+
if (D > 7 && (D -= 8, I++, V--), m.write = M, b = m.inflate_flush(g, b), M = m.write, q = M < m.read ? m.read - M - 1 : m.end - M, m.read != m.write)
|
|
74807
|
+
return m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
|
|
74808
74808
|
e = C2;
|
|
74809
74809
|
case C2:
|
|
74810
|
-
return b = ln, m.bitb =
|
|
74810
|
+
return b = ln, m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
|
|
74811
74811
|
case Mh:
|
|
74812
|
-
return b = qt, m.bitb =
|
|
74812
|
+
return b = qt, m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
|
|
74813
74813
|
default:
|
|
74814
|
-
return b = li, m.bitb =
|
|
74814
|
+
return b = li, m.bitb = L, m.bitk = D, g.avail_in = I, g.total_in += V - g.next_in_index, g.next_in_index = V, m.write = M, m.inflate_flush(g, b);
|
|
74815
74815
|
}
|
|
74816
74816
|
}, i.free = function() {
|
|
74817
74817
|
};
|
|
@@ -74851,18 +74851,18 @@ function Xde(i, e) {
|
|
|
74851
74851
|
return b = v.next_out_index, x = t.read, g = /* (int) */
|
|
74852
74852
|
(x <= t.write ? t.write : t.end) - x, g > v.avail_out && (g = v.avail_out), g !== 0 && m == un && (m = gt), v.avail_out -= g, v.total_out += g, v.next_out.set(t.win.subarray(x, x + g), b), b += g, x += g, x == t.end && (x = 0, t.write == t.end && (t.write = 0), g = t.write - x, g > v.avail_out && (g = v.avail_out), g !== 0 && m == un && (m = gt), v.avail_out -= g, v.total_out += g, v.next_out.set(t.win.subarray(x, x + g), b), b += g, x += g), v.next_out_index = b, t.read = x, m;
|
|
74853
74853
|
}, t.proc = function(v, m) {
|
|
74854
|
-
let g, b, x, T,
|
|
74855
|
-
for (T = v.next_in_index,
|
|
74856
|
-
|
|
74857
|
-
let
|
|
74854
|
+
let g, b, x, T, A, L, D, V;
|
|
74855
|
+
for (T = v.next_in_index, A = v.avail_in, b = t.bitb, x = t.bitk, L = t.write, D = /* (int) */
|
|
74856
|
+
L < t.read ? t.read - L - 1 : t.end - L; ; ) {
|
|
74857
|
+
let I, M, q, Q, _, B, H, $;
|
|
74858
74858
|
switch (s) {
|
|
74859
74859
|
case ho:
|
|
74860
74860
|
for (; x < 3; ) {
|
|
74861
|
-
if (
|
|
74861
|
+
if (A !== 0)
|
|
74862
74862
|
m = gt;
|
|
74863
74863
|
else
|
|
74864
|
-
return t.bitb = b, t.bitk = x, v.avail_in =
|
|
74865
|
-
|
|
74864
|
+
return t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
|
|
74865
|
+
A--, b |= (v.read_byte(T++) & 255) << x, x += 8;
|
|
74866
74866
|
}
|
|
74867
74867
|
switch (g = /* (int) */
|
|
74868
74868
|
b & 7, c = g & 1, g >>> 1) {
|
|
@@ -74870,47 +74870,47 @@ function Xde(i, e) {
|
|
|
74870
74870
|
b >>>= 3, x -= 3, g = x & 7, b >>>= g, x -= g, s = Pf;
|
|
74871
74871
|
break;
|
|
74872
74872
|
case 1:
|
|
74873
|
-
|
|
74873
|
+
I = [], M = [], q = [[]], Q = [[]], Wm.inflate_trees_fixed(I, M, q, Q), h.init(I[0], M[0], q[0], 0, Q[0], 0), b >>>= 3, x -= 3, s = Nh;
|
|
74874
74874
|
break;
|
|
74875
74875
|
case 2:
|
|
74876
74876
|
b >>>= 3, x -= 3, s = x2;
|
|
74877
74877
|
break;
|
|
74878
74878
|
case 3:
|
|
74879
|
-
return b >>>= 3, x -= 3, s = va, v.msg = "invalid block type", m = qt, t.bitb = b, t.bitk = x, v.avail_in =
|
|
74879
|
+
return b >>>= 3, x -= 3, s = va, v.msg = "invalid block type", m = qt, t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
|
|
74880
74880
|
}
|
|
74881
74881
|
break;
|
|
74882
74882
|
case Pf:
|
|
74883
74883
|
for (; x < 32; ) {
|
|
74884
|
-
if (
|
|
74884
|
+
if (A !== 0)
|
|
74885
74885
|
m = gt;
|
|
74886
74886
|
else
|
|
74887
|
-
return t.bitb = b, t.bitk = x, v.avail_in =
|
|
74888
|
-
|
|
74887
|
+
return t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
|
|
74888
|
+
A--, b |= (v.read_byte(T++) & 255) << x, x += 8;
|
|
74889
74889
|
}
|
|
74890
74890
|
if ((~b >>> 16 & 65535) != (b & 65535))
|
|
74891
|
-
return s = va, v.msg = "invalid stored block lengths", m = qt, t.bitb = b, t.bitk = x, v.avail_in =
|
|
74891
|
+
return s = va, v.msg = "invalid stored block lengths", m = qt, t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
|
|
74892
74892
|
r = b & 65535, b = x = 0, s = r !== 0 ? w2 : c !== 0 ? Fh : ho;
|
|
74893
74893
|
break;
|
|
74894
74894
|
case w2:
|
|
74895
|
-
if (
|
|
74896
|
-
|
|
74897
|
-
|
|
74898
|
-
|
|
74899
|
-
return t.bitb = b, t.bitk = x, v.avail_in =
|
|
74900
|
-
if (m = gt, g = r, g >
|
|
74895
|
+
if (A === 0 || D === 0 && (L == t.end && t.read !== 0 && (L = 0, D = /* (int) */
|
|
74896
|
+
L < t.read ? t.read - L - 1 : t.end - L), D === 0 && (t.write = L, m = t.inflate_flush(v, m), L = t.write, D = /* (int) */
|
|
74897
|
+
L < t.read ? t.read - L - 1 : t.end - L, L == t.end && t.read !== 0 && (L = 0, D = /* (int) */
|
|
74898
|
+
L < t.read ? t.read - L - 1 : t.end - L), D === 0)))
|
|
74899
|
+
return t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
|
|
74900
|
+
if (m = gt, g = r, g > A && (g = A), g > D && (g = D), t.win.set(v.read_buf(T, g), L), T += g, A -= g, L += g, D -= g, (r -= g) !== 0)
|
|
74901
74901
|
break;
|
|
74902
74902
|
s = c !== 0 ? Fh : ho;
|
|
74903
74903
|
break;
|
|
74904
74904
|
case x2:
|
|
74905
74905
|
for (; x < 14; ) {
|
|
74906
|
-
if (
|
|
74906
|
+
if (A !== 0)
|
|
74907
74907
|
m = gt;
|
|
74908
74908
|
else
|
|
74909
|
-
return t.bitb = b, t.bitk = x, v.avail_in =
|
|
74910
|
-
|
|
74909
|
+
return t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
|
|
74910
|
+
A--, b |= (v.read_byte(T++) & 255) << x, x += 8;
|
|
74911
74911
|
}
|
|
74912
74912
|
if (n = g = b & 16383, (g & 31) > 29 || (g >> 5 & 31) > 29)
|
|
74913
|
-
return s = va, v.msg = "too many length or distance symbols", m = qt, t.bitb = b, t.bitk = x, v.avail_in =
|
|
74913
|
+
return s = va, v.msg = "too many length or distance symbols", m = qt, t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
|
|
74914
74914
|
if (g = 258 + (g & 31) + (g >> 5 & 31), !o || o.length < g)
|
|
74915
74915
|
o = [];
|
|
74916
74916
|
else
|
|
@@ -74920,41 +74920,41 @@ function Xde(i, e) {
|
|
|
74920
74920
|
case E2:
|
|
74921
74921
|
for (; a < 4 + (n >>> 10); ) {
|
|
74922
74922
|
for (; x < 3; ) {
|
|
74923
|
-
if (
|
|
74923
|
+
if (A !== 0)
|
|
74924
74924
|
m = gt;
|
|
74925
74925
|
else
|
|
74926
|
-
return t.bitb = b, t.bitk = x, v.avail_in =
|
|
74927
|
-
|
|
74926
|
+
return t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
|
|
74927
|
+
A--, b |= (v.read_byte(T++) & 255) << x, x += 8;
|
|
74928
74928
|
}
|
|
74929
74929
|
o[b2[a++]] = b & 7, b >>>= 3, x -= 3;
|
|
74930
74930
|
}
|
|
74931
74931
|
for (; a < 19; )
|
|
74932
74932
|
o[b2[a++]] = 0;
|
|
74933
74933
|
if (l[0] = 7, g = y.inflate_trees_bits(o, l, u, d, v), g != gt)
|
|
74934
|
-
return m = g, m == qt && (o = null, s = va), t.bitb = b, t.bitk = x, v.avail_in =
|
|
74934
|
+
return m = g, m == qt && (o = null, s = va), t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
|
|
74935
74935
|
a = 0, s = V2;
|
|
74936
74936
|
case V2:
|
|
74937
74937
|
for (; g = n, !(a >= 258 + (g & 31) + (g >> 5 & 31)); ) {
|
|
74938
74938
|
let j, G;
|
|
74939
74939
|
for (g = l[0]; x < g; ) {
|
|
74940
|
-
if (
|
|
74940
|
+
if (A !== 0)
|
|
74941
74941
|
m = gt;
|
|
74942
74942
|
else
|
|
74943
|
-
return t.bitb = b, t.bitk = x, v.avail_in =
|
|
74944
|
-
|
|
74943
|
+
return t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
|
|
74944
|
+
A--, b |= (v.read_byte(T++) & 255) << x, x += 8;
|
|
74945
74945
|
}
|
|
74946
74946
|
if (g = d[(u[0] + (b & bi[g])) * 3 + 1], G = d[(u[0] + (b & bi[g])) * 3 + 2], G < 16)
|
|
74947
74947
|
b >>>= g, x -= g, o[a++] = G;
|
|
74948
74948
|
else {
|
|
74949
74949
|
for (V = G == 18 ? 7 : G - 14, j = G == 18 ? 11 : 3; x < g + V; ) {
|
|
74950
|
-
if (
|
|
74950
|
+
if (A !== 0)
|
|
74951
74951
|
m = gt;
|
|
74952
74952
|
else
|
|
74953
|
-
return t.bitb = b, t.bitk = x, v.avail_in =
|
|
74954
|
-
|
|
74953
|
+
return t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
|
|
74954
|
+
A--, b |= (v.read_byte(T++) & 255) << x, x += 8;
|
|
74955
74955
|
}
|
|
74956
74956
|
if (b >>>= g, x -= g, j += b & bi[V], b >>>= V, x -= V, V = a, g = n, V + j > 258 + (g & 31) + (g >> 5 & 31) || G == 16 && V < 1)
|
|
74957
|
-
return o = null, s = va, v.msg = "invalid bit length repeat", m = qt, t.bitb = b, t.bitk = x, v.avail_in =
|
|
74957
|
+
return o = null, s = va, v.msg = "invalid bit length repeat", m = qt, t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
|
|
74958
74958
|
G = G == 16 ? o[V - 1] : 0;
|
|
74959
74959
|
do
|
|
74960
74960
|
o[V++] = G;
|
|
@@ -74962,29 +74962,29 @@ function Xde(i, e) {
|
|
|
74962
74962
|
a = V;
|
|
74963
74963
|
}
|
|
74964
74964
|
}
|
|
74965
|
-
if (u[0] = -1,
|
|
74966
|
-
return g == qt && (o = null, s = va), m = g, t.bitb = b, t.bitk = x, v.avail_in =
|
|
74967
|
-
h.init(
|
|
74965
|
+
if (u[0] = -1, _ = [], B = [], H = [], $ = [], _[0] = 9, B[0] = 6, g = n, g = y.inflate_trees_dynamic(257 + (g & 31), 1 + (g >> 5 & 31), o, _, B, H, $, d, v), g != gt)
|
|
74966
|
+
return g == qt && (o = null, s = va), m = g, t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
|
|
74967
|
+
h.init(_[0], B[0], d, H[0], d, $[0]), s = Nh;
|
|
74968
74968
|
case Nh:
|
|
74969
|
-
if (t.bitb = b, t.bitk = x, v.avail_in =
|
|
74969
|
+
if (t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, (m = h.proc(t, v, m)) != ln)
|
|
74970
74970
|
return t.inflate_flush(v, m);
|
|
74971
|
-
if (m = gt, h.free(v), T = v.next_in_index,
|
|
74972
|
-
|
|
74971
|
+
if (m = gt, h.free(v), T = v.next_in_index, A = v.avail_in, b = t.bitb, x = t.bitk, L = t.write, D = /* (int) */
|
|
74972
|
+
L < t.read ? t.read - L - 1 : t.end - L, c === 0) {
|
|
74973
74973
|
s = ho;
|
|
74974
74974
|
break;
|
|
74975
74975
|
}
|
|
74976
74976
|
s = Fh;
|
|
74977
74977
|
case Fh:
|
|
74978
|
-
if (t.write =
|
|
74979
|
-
|
|
74980
|
-
return t.bitb = b, t.bitk = x, v.avail_in =
|
|
74978
|
+
if (t.write = L, m = t.inflate_flush(v, m), L = t.write, D = /* (int) */
|
|
74979
|
+
L < t.read ? t.read - L - 1 : t.end - L, t.read != t.write)
|
|
74980
|
+
return t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
|
|
74981
74981
|
s = S2;
|
|
74982
74982
|
case S2:
|
|
74983
|
-
return m = ln, t.bitb = b, t.bitk = x, v.avail_in =
|
|
74983
|
+
return m = ln, t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
|
|
74984
74984
|
case va:
|
|
74985
|
-
return m = qt, t.bitb = b, t.bitk = x, v.avail_in =
|
|
74985
|
+
return m = qt, t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
|
|
74986
74986
|
default:
|
|
74987
|
-
return m = li, t.bitb = b, t.bitk = x, v.avail_in =
|
|
74987
|
+
return m = li, t.bitb = b, t.bitk = x, v.avail_in = A, v.total_in += T - v.next_in_index, v.next_in_index = T, t.write = L, t.inflate_flush(v, m);
|
|
74988
74988
|
}
|
|
74989
74989
|
}
|
|
74990
74990
|
}, t.free = function(v) {
|
|
@@ -78092,7 +78092,7 @@ async function Qfe(i, e, t, s) {
|
|
|
78092
78092
|
const h = xt(i, s, Q3, /* @__PURE__ */ new Date()), c = xt(i, s, U3), d = xt(i, s, z3), f = xt(i, s, G3, !0), y = xt(i, s, j3, 0), v = xt(i, s, W3, 0), m = xt(i, s, "passThrough");
|
|
78093
78093
|
let g, b;
|
|
78094
78094
|
m || (g = xt(i, s, "password"), b = xt(i, s, "rawPassword"));
|
|
78095
|
-
const x = xt(i, s, "encryptionStrength", 3), T = xt(i, s, Y3),
|
|
78095
|
+
const x = xt(i, s, "encryptionStrength", 3), T = xt(i, s, Y3), A = xt(i, s, "extendedTimestamp", !0), L = xt(i, s, "keepOrder", !0), D = xt(i, s, "level"), V = xt(i, s, "useWebWorkers"), I = xt(i, s, "bufferedWrite"), M = xt(i, s, "dataDescriptorSignature", !1), q = xt(i, s, "signal"), Q = xt(i, s, "useUnicodeFileNames", !0), _ = xt(i, s, "useCompressionStream"), B = xt(i, s, "compressionMethod");
|
|
78096
78096
|
let H = xt(i, s, "dataDescriptor", !0), $ = xt(i, s, a0);
|
|
78097
78097
|
if (!T && (g !== Bt || b !== Bt) && !(x >= 1 && x <= 3))
|
|
78098
78098
|
throw new Error(Ffe);
|
|
@@ -78115,7 +78115,7 @@ async function Qfe(i, e, t, s) {
|
|
|
78115
78115
|
t && (t = xfe(t), await tu(t), m ? ne = tw(oe) : t.size === Bt ? (H = !0, ($ || $ === Bt) && ($ = !0, oe = ne = ci + 1)) : (oe = t.size, ne = tw(oe)));
|
|
78116
78116
|
const { diskOffset: ue, diskNumber: Ie, maxSize: ge } = i.writer, te = re || oe > ci, we = re || ne > ci, et = re || i.offset + i.pendingEntriesSize - ue > ci, Gt = xt(i, s, "supportZip64SplitFile", !0) && re || Ie + Math.ceil(i.pendingEntriesSize / ge) > ui;
|
|
78117
78117
|
if (et || te || we || Gt) {
|
|
78118
|
-
if ($ === !1 || !
|
|
78118
|
+
if ($ === !1 || !L)
|
|
78119
78119
|
throw new Error(o0);
|
|
78120
78120
|
$ = !0;
|
|
78121
78121
|
}
|
|
@@ -78137,21 +78137,21 @@ async function Qfe(i, e, t, s) {
|
|
|
78137
78137
|
zip64DiskNumberStart: Gt,
|
|
78138
78138
|
password: g,
|
|
78139
78139
|
rawPassword: b,
|
|
78140
|
-
level: !
|
|
78140
|
+
level: !_ && i.config.CompressionStream === Bt && i.config.CompressionStreamNative === Bt ? 0 : D,
|
|
78141
78141
|
useWebWorkers: V,
|
|
78142
78142
|
encryptionStrength: x,
|
|
78143
|
-
extendedTimestamp:
|
|
78143
|
+
extendedTimestamp: A,
|
|
78144
78144
|
zipCrypto: T,
|
|
78145
|
-
bufferedWrite:
|
|
78146
|
-
keepOrder:
|
|
78145
|
+
bufferedWrite: I,
|
|
78146
|
+
keepOrder: L,
|
|
78147
78147
|
useUnicodeFileNames: Q,
|
|
78148
78148
|
dataDescriptor: H,
|
|
78149
|
-
dataDescriptorSignature:
|
|
78149
|
+
dataDescriptorSignature: M,
|
|
78150
78150
|
signal: q,
|
|
78151
78151
|
msDosCompatible: f,
|
|
78152
78152
|
internalFileAttribute: y,
|
|
78153
78153
|
externalFileAttribute: v,
|
|
78154
|
-
useCompressionStream:
|
|
78154
|
+
useCompressionStream: _,
|
|
78155
78155
|
passThrough: m,
|
|
78156
78156
|
encrypted: !!(g && ot(g) || b && ot(b)) || m && Is,
|
|
78157
78157
|
signature: Et,
|
|
@@ -78182,22 +78182,22 @@ async function Ufe(i, e, t, s, r) {
|
|
|
78182
78182
|
n.set(e, f);
|
|
78183
78183
|
try {
|
|
78184
78184
|
let V;
|
|
78185
|
-
o && (V = d && d.lock,
|
|
78186
|
-
const { writable:
|
|
78187
|
-
let { diskOffset:
|
|
78185
|
+
o && (V = d && d.lock, A()), (r.bufferedWrite || i.writerLocked || i.bufferedWrites && o || !l) && !c ? (x = new TransformStream(), T = new Response(x.readable).blob(), x.writable.size = 0, y = !0, i.bufferedWrites++, await tu(a)) : (x = a, await L()), await tu(x);
|
|
78186
|
+
const { writable: I } = a;
|
|
78187
|
+
let { diskOffset: M } = a;
|
|
78188
78188
|
if (i.addSplitZipSignature) {
|
|
78189
78189
|
delete i.addSplitZipSignature;
|
|
78190
|
-
const Q = new Uint8Array(4),
|
|
78191
|
-
at(
|
|
78190
|
+
const Q = new Uint8Array(4), _ = Ns(Q);
|
|
78191
|
+
at(_, 0, p3), await Rr(I, Q), i.offset += 4;
|
|
78192
78192
|
}
|
|
78193
|
-
c && Wfe(s, i.offset -
|
|
78193
|
+
c && Wfe(s, i.offset - M), y || (await V, await D(I));
|
|
78194
78194
|
const { diskNumber: q } = a;
|
|
78195
78195
|
if (b = !0, f.diskNumberStart = q, f = await zfe(t, x, f, s, i.config, r), b = !1, n.set(e, f), f.filename = e, y) {
|
|
78196
78196
|
await x.writable.getWriter().close();
|
|
78197
78197
|
let Q = await T;
|
|
78198
|
-
await V, await
|
|
78198
|
+
await V, await L(), g = !0, l || (Q = await Zfe(f, Q, I, r)), await D(I), f.diskNumberStart = a.diskNumber, M = a.diskOffset, await Q.stream().pipeTo(I, { preventClose: !0, preventAbort: !0, signal: u }), I.size += Q.size, g = !1;
|
|
78199
78199
|
}
|
|
78200
|
-
if (f.offset = i.offset -
|
|
78200
|
+
if (f.offset = i.offset - M, f.zip64)
|
|
78201
78201
|
Jfe(f, r);
|
|
78202
78202
|
else if (f.offset > ci)
|
|
78203
78203
|
throw new Error(o0);
|
|
@@ -78215,14 +78215,14 @@ async function Ufe(i, e, t, s, r) {
|
|
|
78215
78215
|
} finally {
|
|
78216
78216
|
y && i.bufferedWrites--, m && m(), v && v();
|
|
78217
78217
|
}
|
|
78218
|
-
function
|
|
78218
|
+
function A() {
|
|
78219
78219
|
f.lock = new Promise((V) => m = V);
|
|
78220
78220
|
}
|
|
78221
|
-
async function
|
|
78221
|
+
async function L() {
|
|
78222
78222
|
i.writerLocked = !0;
|
|
78223
78223
|
const { lockWriter: V } = i;
|
|
78224
|
-
i.lockWriter = new Promise((
|
|
78225
|
-
i.writerLocked = !1,
|
|
78224
|
+
i.lockWriter = new Promise((I) => v = () => {
|
|
78225
|
+
i.writerLocked = !1, I();
|
|
78226
78226
|
}), await V;
|
|
78227
78227
|
}
|
|
78228
78228
|
async function D(V) {
|
|
@@ -78246,15 +78246,15 @@ async function zfe(i, e, { diskNumberStart: t, lock: s }, r, n, a) {
|
|
|
78246
78246
|
rawExtraFieldExtendedTimestamp: b,
|
|
78247
78247
|
extraFieldExtendedTimestampFlag: x,
|
|
78248
78248
|
rawExtraFieldNTFS: T,
|
|
78249
|
-
rawExtraFieldAES:
|
|
78250
|
-
} = o, { dataDescriptorArray:
|
|
78249
|
+
rawExtraFieldAES: A
|
|
78250
|
+
} = o, { dataDescriptorArray: L } = l, {
|
|
78251
78251
|
rawFilename: D,
|
|
78252
78252
|
lastAccessDate: V,
|
|
78253
|
-
creationDate:
|
|
78254
|
-
password:
|
|
78253
|
+
creationDate: I,
|
|
78254
|
+
password: M,
|
|
78255
78255
|
rawPassword: q,
|
|
78256
78256
|
level: Q,
|
|
78257
|
-
zip64:
|
|
78257
|
+
zip64: _,
|
|
78258
78258
|
zip64UncompressedSize: B,
|
|
78259
78259
|
zip64CompressedSize: H,
|
|
78260
78260
|
zip64Offset: $,
|
|
@@ -78280,7 +78280,7 @@ async function zfe(i, e, { diskNumberStart: t, lock: s }, r, n, a) {
|
|
|
78280
78280
|
} = a, st = {
|
|
78281
78281
|
lock: s,
|
|
78282
78282
|
versionMadeBy: oe,
|
|
78283
|
-
zip64:
|
|
78283
|
+
zip64: _,
|
|
78284
78284
|
directory: !!Y,
|
|
78285
78285
|
filenameUTF8: !0,
|
|
78286
78286
|
rawFilename: D,
|
|
@@ -78288,7 +78288,7 @@ async function zfe(i, e, { diskNumberStart: t, lock: s }, r, n, a) {
|
|
|
78288
78288
|
rawComment: re,
|
|
78289
78289
|
rawExtraFieldExtendedTimestamp: b,
|
|
78290
78290
|
rawExtraFieldNTFS: T,
|
|
78291
|
-
rawExtraFieldAES:
|
|
78291
|
+
rawExtraFieldAES: A,
|
|
78292
78292
|
rawExtraField: ue,
|
|
78293
78293
|
extendedTimestamp: Gt,
|
|
78294
78294
|
msDosCompatible: Is,
|
|
@@ -78309,7 +78309,7 @@ async function zfe(i, e, { diskNumberStart: t, lock: s }, r, n, a) {
|
|
|
78309
78309
|
codecType: F3,
|
|
78310
78310
|
level: Q,
|
|
78311
78311
|
rawPassword: q,
|
|
78312
|
-
password:
|
|
78312
|
+
password: M,
|
|
78313
78313
|
encryptionStrength: Yt,
|
|
78314
78314
|
zipCrypto: y && G,
|
|
78315
78315
|
passwordVerification: y && G && f >> 8 & 255,
|
|
@@ -78327,7 +78327,7 @@ async function zfe(i, e, { diskNumberStart: t, lock: s }, r, n, a) {
|
|
|
78327
78327
|
} else
|
|
78328
78328
|
await Rr(_e, h);
|
|
78329
78329
|
let Ge;
|
|
78330
|
-
if (
|
|
78330
|
+
if (_) {
|
|
78331
78331
|
let Te = 4;
|
|
78332
78332
|
B && (Te += 8), H && (Te += 8), $ && (Te += 8), j && (Te += 4), Ge = new Uint8Array(Te);
|
|
78333
78333
|
} else
|
|
@@ -78339,12 +78339,12 @@ async function zfe(i, e, { diskNumberStart: t, lock: s }, r, n, a) {
|
|
|
78339
78339
|
uncompressedSize: zt,
|
|
78340
78340
|
headerInfo: o,
|
|
78341
78341
|
dataDescriptorInfo: l
|
|
78342
|
-
}, a), ne && await Rr(_e,
|
|
78342
|
+
}, a), ne && await Rr(_e, L), Object.assign(st, {
|
|
78343
78343
|
uncompressedSize: zt,
|
|
78344
78344
|
compressedSize: Ct,
|
|
78345
78345
|
lastModDate: d,
|
|
78346
78346
|
rawLastModDate: f,
|
|
78347
|
-
creationDate:
|
|
78347
|
+
creationDate: I,
|
|
78348
78348
|
lastAccessDate: V,
|
|
78349
78349
|
encrypted: y,
|
|
78350
78350
|
zipCrypto: G,
|
|
@@ -78385,11 +78385,11 @@ function jfe(i) {
|
|
|
78385
78385
|
mt($, 0, gpe), ps(b, X2, 2), qc($, 8, d);
|
|
78386
78386
|
} else
|
|
78387
78387
|
b = new Uint8Array();
|
|
78388
|
-
let x, T,
|
|
78388
|
+
let x, T, A;
|
|
78389
78389
|
if (f) {
|
|
78390
78390
|
T = new Uint8Array(9 + (s ? 4 : 0) + (r ? 4 : 0));
|
|
78391
78391
|
const $ = Ns(T);
|
|
78392
|
-
mt($, 0, g3), mt($, 2, ot(T) - 4),
|
|
78392
|
+
mt($, 0, g3), mt($, 2, ot(T) - 4), A = 1 + (s ? 2 : 0) + (r ? 4 : 0), qc($, 4, A);
|
|
78393
78393
|
let j = 5;
|
|
78394
78394
|
at($, j, Math.floor(t.getTime() / 1e3)), j += 4, s && (at($, j, Math.floor(s.getTime() / 1e3)), j += 4), r && at($, j, Math.floor(r.getTime() / 1e3));
|
|
78395
78395
|
try {
|
|
@@ -78401,18 +78401,18 @@ function jfe(i) {
|
|
|
78401
78401
|
}
|
|
78402
78402
|
} else
|
|
78403
78403
|
x = T = new Uint8Array();
|
|
78404
|
-
let
|
|
78405
|
-
l && (
|
|
78404
|
+
let L = 0;
|
|
78405
|
+
l && (L = L | xpe), u && (L = L | wpe), g === Bt && (g = v ? _2 : ape), g == _2 && (n >= 1 && n < 3 && (L = L | 6), n >= 3 && n < 5 && (L = L | 1), n === 9 && (L = L | 2)), a && (m = m > D2 ? m : D2), y && (L = L | bpe, o || (m = m > k2 ? m : k2, b[9] = g, g = ope));
|
|
78406
78406
|
const D = new Uint8Array(26), V = Ns(D);
|
|
78407
|
-
mt(V, 0, m), mt(V, 2,
|
|
78408
|
-
const
|
|
78407
|
+
mt(V, 0, m), mt(V, 2, L), mt(V, 4, g);
|
|
78408
|
+
const I = new Uint32Array(1), M = Ns(I);
|
|
78409
78409
|
let q;
|
|
78410
|
-
t < M2 ? q = M2 : t > O2 ? q = O2 : q = t, mt(
|
|
78411
|
-
const Q =
|
|
78410
|
+
t < M2 ? q = M2 : t > O2 ? q = O2 : q = t, mt(M, 0, (q.getHours() << 6 | q.getMinutes()) << 5 | q.getSeconds() / 2), mt(M, 2, (q.getFullYear() - 1980 << 4 | q.getMonth() + 1) << 5 | q.getDate());
|
|
78411
|
+
const Q = I[0];
|
|
78412
78412
|
at(V, 6, Q), mt(V, 22, ot(e));
|
|
78413
|
-
const
|
|
78414
|
-
mt(V, 24,
|
|
78415
|
-
const B = new Uint8Array(30 + ot(e) +
|
|
78413
|
+
const _ = ot(b, T, x, c);
|
|
78414
|
+
mt(V, 24, _);
|
|
78415
|
+
const B = new Uint8Array(30 + ot(e) + _), H = Ns(B);
|
|
78416
78416
|
return at(H, 0, lpe), ps(B, D, 4), ps(B, e, 30), ps(B, b, 30 + ot(e)), ps(B, T, 30 + ot(e, b)), ps(B, x, 30 + ot(e, b, T)), ps(B, c, 30 + ot(e, b, T, x)), {
|
|
78417
78417
|
localHeaderArray: B,
|
|
78418
78418
|
headerArray: D,
|
|
@@ -78423,11 +78423,11 @@ function jfe(i) {
|
|
|
78423
78423
|
compressed: v,
|
|
78424
78424
|
version: m,
|
|
78425
78425
|
compressionMethod: g,
|
|
78426
|
-
extraFieldExtendedTimestampFlag:
|
|
78426
|
+
extraFieldExtendedTimestampFlag: A,
|
|
78427
78427
|
rawExtraFieldExtendedTimestamp: T,
|
|
78428
78428
|
rawExtraFieldNTFS: x,
|
|
78429
78429
|
rawExtraFieldAES: b,
|
|
78430
|
-
extraFieldLength:
|
|
78430
|
+
extraFieldLength: _
|
|
78431
78431
|
};
|
|
78432
78432
|
}
|
|
78433
78433
|
function Wfe(i, e) {
|
|
@@ -78495,31 +78495,31 @@ function Jfe(i, e) {
|
|
|
78495
78495
|
async function Yfe(i, e, t) {
|
|
78496
78496
|
const { files: s, writer: r } = i, { diskOffset: n, writable: a } = r;
|
|
78497
78497
|
let { diskNumber: o } = r, l = 0, u = 0, h = i.offset - n, c = s.size;
|
|
78498
|
-
for (const [,
|
|
78498
|
+
for (const [, A] of s) {
|
|
78499
78499
|
const {
|
|
78500
|
-
rawFilename:
|
|
78500
|
+
rawFilename: L,
|
|
78501
78501
|
rawExtraFieldZip64: D,
|
|
78502
78502
|
rawExtraFieldAES: V,
|
|
78503
|
-
rawComment:
|
|
78504
|
-
rawExtraFieldNTFS:
|
|
78503
|
+
rawComment: I,
|
|
78504
|
+
rawExtraFieldNTFS: M,
|
|
78505
78505
|
rawExtraField: q,
|
|
78506
78506
|
extendedTimestamp: Q,
|
|
78507
|
-
extraFieldExtendedTimestampFlag:
|
|
78507
|
+
extraFieldExtendedTimestampFlag: _,
|
|
78508
78508
|
lastModDate: B
|
|
78509
|
-
} =
|
|
78509
|
+
} = A;
|
|
78510
78510
|
let H;
|
|
78511
78511
|
if (Q) {
|
|
78512
78512
|
H = new Uint8Array(9);
|
|
78513
78513
|
const $ = Ns(H);
|
|
78514
|
-
mt($, 0, g3), mt($, 2, 5), qc($, 4,
|
|
78514
|
+
mt($, 0, g3), mt($, 2, 5), qc($, 4, _), at($, 5, Math.floor(B.getTime() / 1e3));
|
|
78515
78515
|
} else
|
|
78516
78516
|
H = new Uint8Array();
|
|
78517
|
-
|
|
78518
|
-
|
|
78519
|
-
|
|
78517
|
+
A.rawExtraFieldCDExtendedTimestamp = H, u += 46 + ot(
|
|
78518
|
+
L,
|
|
78519
|
+
I,
|
|
78520
78520
|
D,
|
|
78521
78521
|
V,
|
|
78522
|
-
|
|
78522
|
+
M,
|
|
78523
78523
|
H,
|
|
78524
78524
|
q
|
|
78525
78525
|
);
|
|
@@ -78527,15 +78527,15 @@ async function Yfe(i, e, t) {
|
|
|
78527
78527
|
const d = new Uint8Array(u), f = Ns(d);
|
|
78528
78528
|
await tu(r);
|
|
78529
78529
|
let y = 0;
|
|
78530
|
-
for (const [
|
|
78530
|
+
for (const [A, L] of Array.from(s.values()).entries()) {
|
|
78531
78531
|
const {
|
|
78532
78532
|
offset: D,
|
|
78533
78533
|
rawFilename: V,
|
|
78534
|
-
rawExtraFieldZip64:
|
|
78535
|
-
rawExtraFieldAES:
|
|
78534
|
+
rawExtraFieldZip64: I,
|
|
78535
|
+
rawExtraFieldAES: M,
|
|
78536
78536
|
rawExtraFieldCDExtendedTimestamp: q,
|
|
78537
78537
|
rawExtraFieldNTFS: Q,
|
|
78538
|
-
rawExtraField:
|
|
78538
|
+
rawExtraField: _,
|
|
78539
78539
|
rawComment: B,
|
|
78540
78540
|
versionMadeBy: H,
|
|
78541
78541
|
headerArray: $,
|
|
@@ -78551,14 +78551,14 @@ async function Yfe(i, e, t) {
|
|
|
78551
78551
|
diskNumberStart: te,
|
|
78552
78552
|
uncompressedSize: we,
|
|
78553
78553
|
compressedSize: et
|
|
78554
|
-
} =
|
|
78554
|
+
} = L, Yt = ot(I, M, q, Q, _);
|
|
78555
78555
|
at(f, l, hpe), mt(f, l + 4, H);
|
|
78556
78556
|
const Gt = Ns($);
|
|
78557
|
-
ne || at(Gt, 18, we), Y || at(Gt, 14, et), ps(d, $, l + 6), mt(f, l + 30, Yt), mt(f, l + 32, ot(B)), mt(f, l + 34, G && oe ? ui : te), mt(f, l + 36, Ie), ge ? at(f, l + 38, ge) : j && ue && qc(f, l + 38, Epe), at(f, l + 42, G && re ? ci : D), ps(d, V, l + 46), ps(d,
|
|
78557
|
+
ne || at(Gt, 18, we), Y || at(Gt, 14, et), ps(d, $, l + 6), mt(f, l + 30, Yt), mt(f, l + 32, ot(B)), mt(f, l + 34, G && oe ? ui : te), mt(f, l + 36, Ie), ge ? at(f, l + 38, ge) : j && ue && qc(f, l + 38, Epe), at(f, l + 42, G && re ? ci : D), ps(d, V, l + 46), ps(d, I, l + 46 + ot(V)), ps(d, M, l + 46 + ot(V, I)), ps(d, q, l + 46 + ot(V, I, M)), ps(d, Q, l + 46 + ot(V, I, M, q)), ps(d, _, l + 46 + ot(V, I, M, q, Q)), ps(d, B, l + 46 + ot(V) + Yt);
|
|
78558
78558
|
const Is = 46 + ot(V, B) + Yt;
|
|
78559
78559
|
if (l - y > r.availableSize && (r.availableSize = 0, await Rr(a, d.slice(y, l)), y = l), l += Is, t.onprogress)
|
|
78560
78560
|
try {
|
|
78561
|
-
await t.onprogress(
|
|
78561
|
+
await t.onprogress(A + 1, s.size, new X3(L));
|
|
78562
78562
|
} catch {
|
|
78563
78563
|
}
|
|
78564
78564
|
}
|
|
@@ -78640,7 +78640,7 @@ var Ym;
|
|
|
78640
78640
|
i.UTF8 = "utf8", i.ASCII = "ascii", i.UTF16 = "utf16";
|
|
78641
78641
|
})(Ym || (Ym = {}));
|
|
78642
78642
|
const Ea = wu("Filesystem", {
|
|
78643
|
-
web: () => import("./web-
|
|
78643
|
+
web: () => import("./web-_052v_pG.js").then((i) => new i.FilesystemWeb())
|
|
78644
78644
|
});
|
|
78645
78645
|
vi("Upload", async (i, e, t, s) => {
|
|
78646
78646
|
const r = i.sessionID || `sim_${Date.now()}_${Math.floor(Lt(0, 2176782336)).toString(36)}`, n = VV({
|
|
@@ -78794,7 +78794,7 @@ function ime({
|
|
|
78794
78794
|
}) {
|
|
78795
78795
|
const [y, v] = rt(
|
|
78796
78796
|
"initial"
|
|
78797
|
-
), m = fe(!1), g = Xm.find((V) => V.name === "upload"), b = Xm.find((V) => V.name === "download"), x = Oo(g.name, g.defaultValue, g.type), T = Oo(b.name, b.defaultValue, b.type),
|
|
78797
|
+
), m = fe(!1), g = Xm.find((V) => V.name === "upload"), b = Xm.find((V) => V.name === "download"), x = Oo(g.name, g.defaultValue, g.type), T = Oo(b.name, b.defaultValue, b.type), A = mde({
|
|
78798
78798
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
78799
78799
|
mutationFn: async (V) => await wde("/data", V),
|
|
78800
78800
|
onSuccess: (V) => {
|
|
@@ -78803,17 +78803,17 @@ function ime({
|
|
|
78803
78803
|
onError: () => {
|
|
78804
78804
|
v("error");
|
|
78805
78805
|
}
|
|
78806
|
-
}),
|
|
78807
|
-
const
|
|
78808
|
-
for (const
|
|
78809
|
-
await
|
|
78810
|
-
const
|
|
78806
|
+
}), L = Xe(async (V) => {
|
|
78807
|
+
const I = new Hfe(new Cfe());
|
|
78808
|
+
for (const _ of V)
|
|
78809
|
+
await I.add(_.filename, new bfe(_.content));
|
|
78810
|
+
const M = await I.close(), q = URL.createObjectURL(M), Q = document.createElement("a");
|
|
78811
78811
|
Q.href = q, Q.download = "study-data.zip", document.body.appendChild(Q), Q.click(), document.body.removeChild(Q), URL.revokeObjectURL(q);
|
|
78812
78812
|
}, []), D = Xe(async () => {
|
|
78813
78813
|
if (v("uploading"), m.current)
|
|
78814
78814
|
return;
|
|
78815
78815
|
m.current = !0;
|
|
78816
|
-
const V = s ?? bde(),
|
|
78816
|
+
const V = s ?? bde(), I = VV({
|
|
78817
78817
|
sessionID: V,
|
|
78818
78818
|
data: i,
|
|
78819
78819
|
store: t,
|
|
@@ -78822,29 +78822,29 @@ function ime({
|
|
|
78822
78822
|
uploadRaw: a
|
|
78823
78823
|
});
|
|
78824
78824
|
try {
|
|
78825
|
-
const
|
|
78825
|
+
const M = {
|
|
78826
78826
|
sessionId: V,
|
|
78827
|
-
files:
|
|
78827
|
+
files: I.map((_) => ({ ..._, encoding: _.encoding ?? "utf8" }))
|
|
78828
78828
|
};
|
|
78829
|
-
if (T && await
|
|
78829
|
+
if (T && await L(I), !x) {
|
|
78830
78830
|
e({});
|
|
78831
78831
|
return;
|
|
78832
78832
|
}
|
|
78833
78833
|
const { backend: q, type: Q } = tme(l);
|
|
78834
78834
|
if (Q === "web")
|
|
78835
|
-
|
|
78835
|
+
A.mutate(M);
|
|
78836
78836
|
else if (q)
|
|
78837
78837
|
try {
|
|
78838
|
-
const
|
|
78839
|
-
await q.createDirectory(
|
|
78840
|
-
for (const B of
|
|
78841
|
-
await q.saveFile(B.filename, B.content,
|
|
78838
|
+
const _ = await sme(q, V);
|
|
78839
|
+
await q.createDirectory(_);
|
|
78840
|
+
for (const B of I)
|
|
78841
|
+
await q.saveFile(B.filename, B.content, _);
|
|
78842
78842
|
v("success"), e({});
|
|
78843
|
-
} catch (
|
|
78844
|
-
console.error(`Error saving files with ${Q}:`,
|
|
78843
|
+
} catch (_) {
|
|
78844
|
+
console.error(`Error saving files with ${Q}:`, _), v("error");
|
|
78845
78845
|
}
|
|
78846
|
-
} catch (
|
|
78847
|
-
console.error("Error uploading:",
|
|
78846
|
+
} catch (M) {
|
|
78847
|
+
console.error("Error uploading:", M), v("error");
|
|
78848
78848
|
}
|
|
78849
78849
|
}, [
|
|
78850
78850
|
s,
|
|
@@ -78853,18 +78853,18 @@ function ime({
|
|
|
78853
78853
|
a,
|
|
78854
78854
|
T,
|
|
78855
78855
|
x,
|
|
78856
|
-
|
|
78856
|
+
L,
|
|
78857
78857
|
e,
|
|
78858
|
-
|
|
78858
|
+
A
|
|
78859
78859
|
]);
|
|
78860
78860
|
return lt(() => {
|
|
78861
78861
|
o && !m.current && D && D();
|
|
78862
78862
|
}, [o, D]), lt(() => {
|
|
78863
78863
|
y === "error" && (m.current = !1);
|
|
78864
|
-
}, [y]), /* @__PURE__ */
|
|
78865
|
-
y == "initial" && !o && /* @__PURE__ */
|
|
78866
|
-
c ?? /* @__PURE__ */
|
|
78867
|
-
/* @__PURE__ */
|
|
78864
|
+
}, [y]), /* @__PURE__ */ R.jsx("div", { className: h ?? "", style: { position: "fixed", inset: 0 }, children: /* @__PURE__ */ R.jsxs("div", { className: `flex flex-col items-center justify-center gap-4 p-6 text-xl mt-16 px-10 h-full ${u ?? ""}`, children: [
|
|
78865
|
+
y == "initial" && !o && /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
78866
|
+
c ?? /* @__PURE__ */ R.jsx("p", { children: "Thank you for participating! Please click the button below to submit your data." }),
|
|
78867
|
+
/* @__PURE__ */ R.jsx(
|
|
78868
78868
|
"button",
|
|
78869
78869
|
{
|
|
78870
78870
|
onClick: D,
|
|
@@ -78873,17 +78873,17 @@ function ime({
|
|
|
78873
78873
|
}
|
|
78874
78874
|
)
|
|
78875
78875
|
] }),
|
|
78876
|
-
y == "uploading" && /* @__PURE__ */
|
|
78877
|
-
/* @__PURE__ */
|
|
78878
|
-
/* @__PURE__ */
|
|
78876
|
+
y == "uploading" && /* @__PURE__ */ R.jsx(R.Fragment, { children: d ?? /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
78877
|
+
/* @__PURE__ */ R.jsx("div", { className: "w-8 h-8 border-4 border-blue-500 border-t-transparent rounded-full animate-spin" }),
|
|
78878
|
+
/* @__PURE__ */ R.jsx("p", { children: "Uploading your data..." })
|
|
78879
78879
|
] }) }),
|
|
78880
|
-
y == "success" && /* @__PURE__ */
|
|
78881
|
-
y == "error" && /* @__PURE__ */
|
|
78882
|
-
f ?? /* @__PURE__ */
|
|
78883
|
-
/* @__PURE__ */
|
|
78884
|
-
/* @__PURE__ */
|
|
78880
|
+
y == "success" && /* @__PURE__ */ R.jsx(R.Fragment, {}),
|
|
78881
|
+
y == "error" && /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
78882
|
+
f ?? /* @__PURE__ */ R.jsxs("div", { className: "text-red-500 mb-4", children: [
|
|
78883
|
+
/* @__PURE__ */ R.jsx("p", { children: "Sorry, there was an error uploading your data." }),
|
|
78884
|
+
/* @__PURE__ */ R.jsx("p", { children: "Please try again or contact the researcher." })
|
|
78885
78885
|
] }),
|
|
78886
|
-
/* @__PURE__ */
|
|
78886
|
+
/* @__PURE__ */ R.jsx(
|
|
78887
78887
|
"button",
|
|
78888
78888
|
{
|
|
78889
78889
|
onClick: D,
|
|
@@ -78903,7 +78903,7 @@ var iw;
|
|
|
78903
78903
|
i.None = "NONE", i.Slide = "SLIDE", i.Fade = "FADE";
|
|
78904
78904
|
})(iw || (iw = {}));
|
|
78905
78905
|
const t7 = wu("StatusBar"), s7 = wu("ImmersiveMode", {
|
|
78906
|
-
web: () => import("./web-
|
|
78906
|
+
web: () => import("./web-BpGTOJKj.js").then((i) => new i.ImmersiveModeWeb())
|
|
78907
78907
|
});
|
|
78908
78908
|
Ai("EnterFullscreen", "session");
|
|
78909
78909
|
vi("EnterFullscreen", xu, {});
|
|
@@ -78918,9 +78918,9 @@ function rme({
|
|
|
78918
78918
|
updateStore: o,
|
|
78919
78919
|
delayMs: l = 0
|
|
78920
78920
|
}) {
|
|
78921
|
-
const u = /* @__PURE__ */
|
|
78921
|
+
const u = /* @__PURE__ */ R.jsxs("div", { className: "flex flex-col items-center", children: [
|
|
78922
78922
|
!!i && i,
|
|
78923
|
-
!i && /* @__PURE__ */
|
|
78923
|
+
!i && /* @__PURE__ */ R.jsx("p", { className: "", children: "Please click the Button below to enter Fullscreen mode." })
|
|
78924
78924
|
] }), [h, c] = rt(!1), d = fe(!1), f = fe(null), y = Xe(() => {
|
|
78925
78925
|
f.current && (clearTimeout(f.current), f.current = null);
|
|
78926
78926
|
}, []), v = Xe(() => {
|
|
@@ -78942,15 +78942,15 @@ function rme({
|
|
|
78942
78942
|
try {
|
|
78943
78943
|
await T.requestFullscreen(), m();
|
|
78944
78944
|
return;
|
|
78945
|
-
} catch (
|
|
78946
|
-
console.error("Fullscreen request failed:",
|
|
78945
|
+
} catch (A) {
|
|
78946
|
+
console.error("Fullscreen request failed:", A);
|
|
78947
78947
|
return;
|
|
78948
78948
|
}
|
|
78949
78949
|
T.mozRequestFullScreen ? (T.mozRequestFullScreen(), b()) : T.webkitRequestFullscreen ? (T.webkitRequestFullscreen(), b()) : T.msRequestFullscreen ? (T.msRequestFullscreen(), b()) : console.warn("Fullscreen API is not supported by this browser.");
|
|
78950
78950
|
}, [m, b, v]);
|
|
78951
78951
|
return lt(() => () => {
|
|
78952
78952
|
v();
|
|
78953
|
-
}, [v]), h ?
|
|
78953
|
+
}, [v]), h ? /* @__PURE__ */ R.jsx("div", { className: `min-h-screen ${s ?? ""}` }) : /* @__PURE__ */ R.jsx(
|
|
78954
78954
|
wv,
|
|
78955
78955
|
{
|
|
78956
78956
|
data: a,
|
|
@@ -79074,50 +79074,50 @@ function lme(i) {
|
|
|
79074
79074
|
return { subscribe(o) {
|
|
79075
79075
|
const l = /* @__PURE__ */ function(h, c, d) {
|
|
79076
79076
|
let f = 1, y = 0, v = [], m = [], g = [], b = c;
|
|
79077
|
-
const x = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Set(),
|
|
79077
|
+
const x = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Set(), A = () => {
|
|
79078
79078
|
g = Array.from(x.values()), T.forEach((V) => V());
|
|
79079
|
-
},
|
|
79080
|
-
m = V == null ? [] : m.filter((
|
|
79079
|
+
}, L = (V) => {
|
|
79080
|
+
m = V == null ? [] : m.filter((I) => I !== V), A();
|
|
79081
79081
|
}, D = (V) => {
|
|
79082
|
-
const { toastId:
|
|
79083
|
-
V.staleId && x.delete(V.staleId), x.set(
|
|
79082
|
+
const { toastId: I, onOpen: M, updateId: q, children: Q } = V.props, _ = q == null;
|
|
79083
|
+
V.staleId && x.delete(V.staleId), x.set(I, V), m = [...m, V.props.toastId].filter((B) => B !== V.staleId), A(), d(rw(V, _ ? "added" : "updated")), _ && Pi(M) && M(_a(Q) && Q.props);
|
|
79084
79084
|
};
|
|
79085
|
-
return { id: h, props: b, observe: (V) => (T.add(V), () => T.delete(V)), toggle: (V,
|
|
79086
|
-
x.forEach((
|
|
79087
|
-
|
|
79085
|
+
return { id: h, props: b, observe: (V) => (T.add(V), () => T.delete(V)), toggle: (V, I) => {
|
|
79086
|
+
x.forEach((M) => {
|
|
79087
|
+
I != null && I !== M.props.toastId || Pi(M.toggle) && M.toggle(V);
|
|
79088
79088
|
});
|
|
79089
|
-
}, removeToast:
|
|
79089
|
+
}, removeToast: L, toasts: x, clearQueue: () => {
|
|
79090
79090
|
y -= v.length, v = [];
|
|
79091
|
-
}, buildToast: (V,
|
|
79091
|
+
}, buildToast: (V, I) => {
|
|
79092
79092
|
if (((re) => {
|
|
79093
79093
|
let { containerId: ue, toastId: Ie, updateId: ge } = re;
|
|
79094
79094
|
const te = ue ? ue !== h : h !== 1, we = x.has(Ie) && ge == null;
|
|
79095
79095
|
return te || we;
|
|
79096
|
-
})(
|
|
79097
|
-
const { toastId:
|
|
79098
|
-
|
|
79096
|
+
})(I)) return;
|
|
79097
|
+
const { toastId: M, updateId: q, data: Q, staleId: _, delay: B } = I, H = () => {
|
|
79098
|
+
L(M);
|
|
79099
79099
|
}, $ = q == null;
|
|
79100
79100
|
$ && y++;
|
|
79101
|
-
const j = { ...b, style: b.toastStyle, key: f++, ...Object.fromEntries(Object.entries(
|
|
79101
|
+
const j = { ...b, style: b.toastStyle, key: f++, ...Object.fromEntries(Object.entries(I).filter((re) => {
|
|
79102
79102
|
let [ue, Ie] = re;
|
|
79103
79103
|
return Ie != null;
|
|
79104
|
-
})), toastId:
|
|
79105
|
-
const re = x.get(
|
|
79106
|
-
Pi(ue) && ue(_a(Ie) && Ie.props), d(rw(re, "removed")), x.delete(
|
|
79104
|
+
})), toastId: M, updateId: q, data: Q, closeToast: H, isIn: !1, className: rc(I.className || b.toastClassName), bodyClassName: rc(I.bodyClassName || b.bodyClassName), progressClassName: rc(I.progressClassName || b.progressClassName), autoClose: !I.isLoading && (G = I.autoClose, ne = b.autoClose, G === !1 || su(G) && G > 0 ? G : ne), deleteToast() {
|
|
79105
|
+
const re = x.get(M), { onClose: ue, children: Ie } = re.props;
|
|
79106
|
+
Pi(ue) && ue(_a(Ie) && Ie.props), d(rw(re, "removed")), x.delete(M), y--, y < 0 && (y = 0), v.length > 0 ? D(v.shift()) : A();
|
|
79107
79107
|
} };
|
|
79108
79108
|
var G, ne;
|
|
79109
|
-
j.closeButton = b.closeButton,
|
|
79109
|
+
j.closeButton = b.closeButton, I.closeButton === !1 || eg(I.closeButton) ? j.closeButton = I.closeButton : I.closeButton === !0 && (j.closeButton = !eg(b.closeButton) || b.closeButton);
|
|
79110
79110
|
let Y = V;
|
|
79111
79111
|
_a(V) && !Da(V.type) ? Y = em(V, { closeToast: H, toastProps: j, data: Q }) : Pi(V) && (Y = V({ closeToast: H, toastProps: j, data: Q }));
|
|
79112
|
-
const oe = { content: Y, props: j, staleId:
|
|
79112
|
+
const oe = { content: Y, props: j, staleId: _ };
|
|
79113
79113
|
b.limit && b.limit > 0 && y > b.limit && $ ? v.push(oe) : su(B) ? setTimeout(() => {
|
|
79114
79114
|
D(oe);
|
|
79115
79115
|
}, B) : D(oe);
|
|
79116
79116
|
}, setProps(V) {
|
|
79117
79117
|
b = V;
|
|
79118
|
-
}, setToggle: (V,
|
|
79119
|
-
x.get(V).toggle =
|
|
79120
|
-
}, isToastActive: (V) => m.some((
|
|
79118
|
+
}, setToggle: (V, I) => {
|
|
79119
|
+
x.get(V).toggle = I;
|
|
79120
|
+
}, isToastActive: (V) => m.some((I) => I === V), getSnapshot: () => g };
|
|
79121
79121
|
}(a, n, ome);
|
|
79122
79122
|
Js.set(a, l);
|
|
79123
79123
|
const u = l.observe(o);
|
|
@@ -79176,8 +79176,8 @@ function ume(i) {
|
|
|
79176
79176
|
a.canCloseOnClick = !0, a.canDrag = !0, T.style.transition = "none", i.draggableDirection === "x" ? (a.start = x.clientX, a.removalDistance = T.offsetWidth * (i.draggablePercent / 100)) : (a.start = x.clientY, a.removalDistance = T.offsetHeight * (i.draggablePercent === 80 ? 1.5 * i.draggablePercent : i.draggablePercent) / 100);
|
|
79177
79177
|
}
|
|
79178
79178
|
}, onPointerUp: function(x) {
|
|
79179
|
-
const { top: T, bottom:
|
|
79180
|
-
x.nativeEvent.type !== "touchend" && i.pauseOnHover && x.clientX >=
|
|
79179
|
+
const { top: T, bottom: A, left: L, right: D } = n.current.getBoundingClientRect();
|
|
79180
|
+
x.nativeEvent.type !== "touchend" && i.pauseOnHover && x.clientX >= L && x.clientX <= D && x.clientY >= T && x.clientY <= A ? v() : y();
|
|
79181
79181
|
} };
|
|
79182
79182
|
return o && l && (b.onMouseEnter = v, i.stacked || (b.onMouseLeave = y)), c && (b.onClick = (x) => {
|
|
79183
79183
|
h && h(x), a.canCloseOnClick && u();
|
|
@@ -79271,7 +79271,7 @@ const pme = typeof window < "u" ? Pg : lt, Bh = (i) => {
|
|
|
79271
79271
|
}, spinner: function() {
|
|
79272
79272
|
return Ze.createElement("div", { className: "Toastify__spinner" });
|
|
79273
79273
|
} }, fme = (i) => {
|
|
79274
|
-
const { isRunning: e, preventExitTransition: t, toastRef: s, eventHandlers: r, playToast: n } = ume(i), { closeButton: a, children: o, autoClose: l, onClick: u, type: h, hideProgressBar: c, closeToast: d, transition: f, position: y, className: v, style: m, bodyClassName: g, bodyStyle: b, progressClassName: x, progressStyle: T, updateId:
|
|
79274
|
+
const { isRunning: e, preventExitTransition: t, toastRef: s, eventHandlers: r, playToast: n } = ume(i), { closeButton: a, children: o, autoClose: l, onClick: u, type: h, hideProgressBar: c, closeToast: d, transition: f, position: y, className: v, style: m, bodyClassName: g, bodyStyle: b, progressClassName: x, progressStyle: T, updateId: A, role: L, progress: D, rtl: V, toastId: I, deleteToast: M, isIn: q, isLoading: Q, closeOnClick: _, theme: B } = i, H = Zn("Toastify__toast", `Toastify__toast-theme--${B}`, `Toastify__toast--${h}`, { "Toastify__toast--rtl": V }, { "Toastify__toast--close-on-click": _ }), $ = Pi(v) ? v({ rtl: V, position: y, type: h, defaultClassName: H }) : Zn(H, v), j = function(oe) {
|
|
79275
79275
|
let { theme: re, type: ue, isLoading: Ie, icon: ge } = oe, te = null;
|
|
79276
79276
|
const we = { theme: re, type: ue };
|
|
79277
79277
|
return ge === !1 || (Pi(ge) ? te = ge({ ...we, isLoading: Ie }) : _a(ge) ? te = em(ge, we) : Ie ? te = Mf.spinner() : ((et) => et in Mf)(ue) && (te = Mf[ue](we))), te;
|
|
@@ -79282,7 +79282,7 @@ const pme = typeof window < "u" ? Pg : lt, Bh = (i) => {
|
|
|
79282
79282
|
return Ze.createElement("button", { className: `Toastify__close-button Toastify__close-button--${ue}`, type: "button", onClick: (ge) => {
|
|
79283
79283
|
ge.stopPropagation(), re(ge);
|
|
79284
79284
|
}, "aria-label": Ie }, Ze.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, Ze.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" })));
|
|
79285
|
-
}(ne)), Ze.createElement(f, { isIn: q, done:
|
|
79285
|
+
}(ne)), Ze.createElement(f, { isIn: q, done: M, position: y, preventExitTransition: t, nodeRef: s, playToast: n }, Ze.createElement("div", { id: I, onClick: u, "data-in": q, className: $, ...r, style: m, ref: s }, Ze.createElement("div", { ...q && { role: L }, className: Pi(g) ? g({ type: h }) : Zn("Toastify__toast-body", g), style: b }, j != null && Ze.createElement("div", { className: Zn("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !Q }) }, j), Ze.createElement("div", null, o)), Y, Ze.createElement(hme, { ...A && !G ? { key: `pb-${A}` } : {}, rtl: V, theme: B, delay: l, isRunning: e, isIn: q, closeToast: d, hide: c, type: h, style: T, className: x, controlledProgress: G, progress: D || 0 })));
|
|
79286
79286
|
}, tp = function(i, e) {
|
|
79287
79287
|
return e === void 0 && (e = !1), { enter: `Toastify--animate Toastify__${i}-enter`, exit: `Toastify--animate Toastify__${i}-exit`, appendPosition: e };
|
|
79288
79288
|
}, mme = ep(tp("bounce", !0)), oCe = ep(tp("slide", !0)), lCe = ep(tp("zoom")), uCe = ep(tp("flip")), gme = { position: "top-right", transition: mme, autoClose: 5e3, closeButton: !0, pauseOnHover: !0, pauseOnFocusLoss: !0, draggable: "touch", draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light" };
|
|
@@ -79301,10 +79301,10 @@ function vme(i) {
|
|
|
79301
79301
|
var v;
|
|
79302
79302
|
const m = n.current.querySelectorAll('[data-in="true"]'), g = 12, b = (v = e.position) == null ? void 0 : v.includes("top");
|
|
79303
79303
|
let x = 0, T = 0;
|
|
79304
|
-
Array.from(m).reverse().forEach((
|
|
79305
|
-
const D =
|
|
79306
|
-
D.classList.add("Toastify__toast--stacked"),
|
|
79307
|
-
const V = x * (s ? 0.2 : 1) + (s ? 0 : g *
|
|
79304
|
+
Array.from(m).reverse().forEach((A, L) => {
|
|
79305
|
+
const D = A;
|
|
79306
|
+
D.classList.add("Toastify__toast--stacked"), L > 0 && (D.dataset.collapsed = `${s}`), D.dataset.pos || (D.dataset.pos = b ? "top" : "bot");
|
|
79307
|
+
const V = x * (s ? 0.2 : 1) + (s ? 0 : g * L);
|
|
79308
79308
|
D.style.setProperty("--y", `${b ? V : -1 * V}px`), D.style.setProperty("--g", `${g}`), D.style.setProperty("--s", "" + (1 - (s ? T : 0))), x += D.offsetHeight, T += 0.025;
|
|
79309
79309
|
});
|
|
79310
79310
|
}
|
|
@@ -79322,11 +79322,11 @@ const yme = ({
|
|
|
79322
79322
|
paramRegistry: i,
|
|
79323
79323
|
timelineRepresentation: e
|
|
79324
79324
|
}) => {
|
|
79325
|
-
const [t, s] = rt({}), [r, n] = rt([]), [a, o] = rt(""), [l, u] = rt("Copy URL"), [h, c] = rt(!1), [d, f] = rt(!1), [y, v] = rt([]), m = fe(null), g = [...i].filter((
|
|
79325
|
+
const [t, s] = rt({}), [r, n] = rt([]), [a, o] = rt(""), [l, u] = rt("Copy URL"), [h, c] = rt(!1), [d, f] = rt(!1), [y, v] = rt([]), m = fe(null), g = [...i].filter((_) => _.name !== "includeSubset" && _.name !== "excludeSubset").sort((_, B) => _.name.localeCompare(B.name));
|
|
79326
79326
|
lt(() => {
|
|
79327
|
-
const
|
|
79327
|
+
const _ = new URLSearchParams(window.location.search), B = {}, H = [];
|
|
79328
79328
|
let $ = [], j = !1;
|
|
79329
|
-
const G =
|
|
79329
|
+
const G = _.get("includeSubset"), ne = _.get("excludeSubset"), Y = _.get("_b");
|
|
79330
79330
|
if (Y)
|
|
79331
79331
|
try {
|
|
79332
79332
|
const ue = atob(Y), Ie = JSON.parse(ue);
|
|
@@ -79340,7 +79340,7 @@ const yme = ({
|
|
|
79340
79340
|
{ length: e.length },
|
|
79341
79341
|
(ue, Ie) => (Ie + 1).toString()
|
|
79342
79342
|
));
|
|
79343
|
-
const oe =
|
|
79343
|
+
const oe = _.get("_b");
|
|
79344
79344
|
if (oe)
|
|
79345
79345
|
try {
|
|
79346
79346
|
const ue = atob(oe), Ie = JSON.parse(ue), ge = i.map((te) => te.name);
|
|
@@ -79354,10 +79354,10 @@ const yme = ({
|
|
|
79354
79354
|
te.name in B || (te.type === "boolean" && te.defaultValue !== void 0 ? B[te.name] = String(te.defaultValue) : B[te.name] = "");
|
|
79355
79355
|
}), c(!0);
|
|
79356
79356
|
} catch {
|
|
79357
|
-
re(
|
|
79357
|
+
re(_);
|
|
79358
79358
|
}
|
|
79359
79359
|
else
|
|
79360
|
-
re(
|
|
79360
|
+
re(_);
|
|
79361
79361
|
function re(ue) {
|
|
79362
79362
|
i.forEach((ge) => {
|
|
79363
79363
|
const te = ue.get(ge.name);
|
|
@@ -79387,7 +79387,7 @@ const yme = ({
|
|
|
79387
79387
|
}
|
|
79388
79388
|
s(B), n(H);
|
|
79389
79389
|
}, [i]), lt(() => {
|
|
79390
|
-
const
|
|
79390
|
+
const _ = window.location.pathname.replace(/\/settings$/, "");
|
|
79391
79391
|
let B = "";
|
|
79392
79392
|
const H = { ...t };
|
|
79393
79393
|
if (y.length > 0 ? d ? (H.excludeSubset = y.sort().join(","), delete H.includeSubset) : y.length != e.length && (H.includeSubset = y.sort().join(","), delete H.excludeSubset) : (delete H.includeSubset, delete H.excludeSubset), r.forEach((j) => {
|
|
@@ -79432,53 +79432,53 @@ const yme = ({
|
|
|
79432
79432
|
}
|
|
79433
79433
|
}), B = j.toString() ? `?${j.toString()}` : "";
|
|
79434
79434
|
}
|
|
79435
|
-
const $ = `${window.location.origin}${
|
|
79435
|
+
const $ = `${window.location.origin}${_}${B}`;
|
|
79436
79436
|
o($);
|
|
79437
79437
|
}, [t, r, h, i, y, d]);
|
|
79438
|
-
const b = (
|
|
79438
|
+
const b = (_, B) => {
|
|
79439
79439
|
s((H) => ({
|
|
79440
79440
|
...H,
|
|
79441
|
-
[
|
|
79441
|
+
[_]: B
|
|
79442
79442
|
}));
|
|
79443
|
-
}, x = (
|
|
79443
|
+
}, x = (_, B, H) => {
|
|
79444
79444
|
n(($) => {
|
|
79445
79445
|
const j = [...$];
|
|
79446
|
-
return j[
|
|
79447
|
-
...j[
|
|
79446
|
+
return j[_] = {
|
|
79447
|
+
...j[_],
|
|
79448
79448
|
[B]: H
|
|
79449
79449
|
}, j;
|
|
79450
79450
|
});
|
|
79451
|
-
}, T = (
|
|
79452
|
-
const B = `${
|
|
79451
|
+
}, T = (_) => {
|
|
79452
|
+
const B = `${_ + 1}`;
|
|
79453
79453
|
v((H) => H.includes(B) ? H.filter((j) => j !== B) : [...H, B]);
|
|
79454
|
-
}, R = () => {
|
|
79455
|
-
f((L) => !L);
|
|
79456
79454
|
}, A = () => {
|
|
79457
|
-
|
|
79455
|
+
f((_) => !_);
|
|
79456
|
+
}, L = () => {
|
|
79457
|
+
n((_) => [..._, { name: "", value: "", type: "string" }]);
|
|
79458
79458
|
}, D = r.filter(
|
|
79459
|
-
(
|
|
79460
|
-
), V = (
|
|
79461
|
-
n((B) => B.filter((H, $) => $ !==
|
|
79462
|
-
},
|
|
79459
|
+
(_) => _.name !== "includeSubset" && _.name !== "excludeSubset"
|
|
79460
|
+
), V = (_) => {
|
|
79461
|
+
n((B) => B.filter((H, $) => $ !== _));
|
|
79462
|
+
}, I = () => {
|
|
79463
79463
|
m.current && (m.current.select(), document.execCommand("copy"), u("Copied!"), setTimeout(() => u("Copy URL"), 2e3));
|
|
79464
|
-
},
|
|
79464
|
+
}, M = () => {
|
|
79465
79465
|
c(!h);
|
|
79466
|
-
}, q = (
|
|
79467
|
-
const { name: B, type: H, defaultValue: $ } =
|
|
79466
|
+
}, q = (_) => {
|
|
79467
|
+
const { name: B, type: H, defaultValue: $ } = _;
|
|
79468
79468
|
if (B === "includeSubset" || B === "excludeSubset")
|
|
79469
79469
|
return null;
|
|
79470
79470
|
const j = t[B] || "";
|
|
79471
79471
|
switch (H) {
|
|
79472
79472
|
case "boolean":
|
|
79473
|
-
return /* @__PURE__ */
|
|
79474
|
-
/* @__PURE__ */
|
|
79473
|
+
return /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
79474
|
+
/* @__PURE__ */ R.jsx(
|
|
79475
79475
|
"button",
|
|
79476
79476
|
{
|
|
79477
79477
|
onClick: () => b(B, j === "true" ? "false" : "true"),
|
|
79478
79478
|
className: `relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${j === "true" ? "bg-blue-600" : "bg-gray-200"}`,
|
|
79479
79479
|
role: "switch",
|
|
79480
79480
|
"aria-checked": j === "true",
|
|
79481
|
-
children: /* @__PURE__ */
|
|
79481
|
+
children: /* @__PURE__ */ R.jsx(
|
|
79482
79482
|
"span",
|
|
79483
79483
|
{
|
|
79484
79484
|
className: `pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 ${j === "true" ? "translate-x-5" : "translate-x-0"}`
|
|
@@ -79486,10 +79486,10 @@ const yme = ({
|
|
|
79486
79486
|
)
|
|
79487
79487
|
}
|
|
79488
79488
|
),
|
|
79489
|
-
/* @__PURE__ */
|
|
79489
|
+
/* @__PURE__ */ R.jsx("span", { className: "ml-4 text-gray-500", children: j === "true" ? "True" : "False" })
|
|
79490
79490
|
] });
|
|
79491
79491
|
case "number":
|
|
79492
|
-
return /* @__PURE__ */
|
|
79492
|
+
return /* @__PURE__ */ R.jsx(
|
|
79493
79493
|
"input",
|
|
79494
79494
|
{
|
|
79495
79495
|
type: "number",
|
|
@@ -79501,7 +79501,7 @@ const yme = ({
|
|
|
79501
79501
|
);
|
|
79502
79502
|
case "array":
|
|
79503
79503
|
case "json":
|
|
79504
|
-
return /* @__PURE__ */
|
|
79504
|
+
return /* @__PURE__ */ R.jsx(
|
|
79505
79505
|
"textarea",
|
|
79506
79506
|
{
|
|
79507
79507
|
className: "mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",
|
|
@@ -79513,7 +79513,7 @@ const yme = ({
|
|
|
79513
79513
|
);
|
|
79514
79514
|
case "string":
|
|
79515
79515
|
default:
|
|
79516
|
-
return /* @__PURE__ */
|
|
79516
|
+
return /* @__PURE__ */ R.jsx(
|
|
79517
79517
|
"input",
|
|
79518
79518
|
{
|
|
79519
79519
|
type: "text",
|
|
@@ -79524,88 +79524,88 @@ const yme = ({
|
|
|
79524
79524
|
}
|
|
79525
79525
|
);
|
|
79526
79526
|
}
|
|
79527
|
-
}, Q = (
|
|
79528
|
-
/* @__PURE__ */
|
|
79527
|
+
}, Q = (_, B) => _.name === "includeSubset" || _.name === "excludeSubset" ? null : /* @__PURE__ */ R.jsxs("div", { className: "grid grid-cols-12 gap-2 items-center mb-2", children: [
|
|
79528
|
+
/* @__PURE__ */ R.jsx("div", { className: "col-span-3", children: /* @__PURE__ */ R.jsx(
|
|
79529
79529
|
"input",
|
|
79530
79530
|
{
|
|
79531
79531
|
type: "text",
|
|
79532
79532
|
className: "block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",
|
|
79533
|
-
value:
|
|
79533
|
+
value: _.name,
|
|
79534
79534
|
onChange: (H) => x(B, "name", H.target.value),
|
|
79535
79535
|
placeholder: "Parameter name"
|
|
79536
79536
|
}
|
|
79537
79537
|
) }),
|
|
79538
|
-
/* @__PURE__ */
|
|
79538
|
+
/* @__PURE__ */ R.jsx("div", { className: "col-span-2", children: /* @__PURE__ */ R.jsxs(
|
|
79539
79539
|
"select",
|
|
79540
79540
|
{
|
|
79541
79541
|
className: "block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md",
|
|
79542
|
-
value:
|
|
79542
|
+
value: _.type,
|
|
79543
79543
|
onChange: (H) => x(B, "type", H.target.value),
|
|
79544
79544
|
children: [
|
|
79545
|
-
/* @__PURE__ */
|
|
79546
|
-
/* @__PURE__ */
|
|
79547
|
-
/* @__PURE__ */
|
|
79548
|
-
/* @__PURE__ */
|
|
79549
|
-
/* @__PURE__ */
|
|
79545
|
+
/* @__PURE__ */ R.jsx("option", { value: "string", children: "String" }),
|
|
79546
|
+
/* @__PURE__ */ R.jsx("option", { value: "number", children: "Number" }),
|
|
79547
|
+
/* @__PURE__ */ R.jsx("option", { value: "boolean", children: "Boolean" }),
|
|
79548
|
+
/* @__PURE__ */ R.jsx("option", { value: "array", children: "Array" }),
|
|
79549
|
+
/* @__PURE__ */ R.jsx("option", { value: "json", children: "JSON" })
|
|
79550
79550
|
]
|
|
79551
79551
|
}
|
|
79552
79552
|
) }),
|
|
79553
|
-
/* @__PURE__ */
|
|
79553
|
+
/* @__PURE__ */ R.jsx("div", { className: "col-span-6", children: _.type === "boolean" ? /* @__PURE__ */ R.jsx(R.Fragment, { children: /* @__PURE__ */ R.jsx(
|
|
79554
79554
|
"button",
|
|
79555
79555
|
{
|
|
79556
|
-
onClick: () => x(B, "value",
|
|
79557
|
-
className: `relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${
|
|
79556
|
+
onClick: () => x(B, "value", _.value === "true" ? "false" : "true"),
|
|
79557
|
+
className: `relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${_.value === "true" ? "bg-blue-600" : "bg-gray-200"}`,
|
|
79558
79558
|
role: "switch",
|
|
79559
|
-
"aria-checked":
|
|
79560
|
-
children: /* @__PURE__ */
|
|
79559
|
+
"aria-checked": _.value === "true",
|
|
79560
|
+
children: /* @__PURE__ */ R.jsx(
|
|
79561
79561
|
"span",
|
|
79562
79562
|
{
|
|
79563
|
-
className: `pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 ${
|
|
79563
|
+
className: `pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 ${_.value === "true" ? "translate-x-5" : "translate-x-0"}`
|
|
79564
79564
|
}
|
|
79565
79565
|
)
|
|
79566
79566
|
}
|
|
79567
|
-
) }) :
|
|
79567
|
+
) }) : _.type === "array" || _.type === "json" ? /* @__PURE__ */ R.jsx(
|
|
79568
79568
|
"textarea",
|
|
79569
79569
|
{
|
|
79570
79570
|
className: "block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",
|
|
79571
|
-
value:
|
|
79571
|
+
value: _.value,
|
|
79572
79572
|
onChange: (H) => x(B, "value", H.target.value),
|
|
79573
|
-
placeholder:
|
|
79573
|
+
placeholder: _.type === "array" ? "Enter JSON array [1,2,3]" : 'Enter JSON object {"key":"value"}',
|
|
79574
79574
|
rows: 1
|
|
79575
79575
|
}
|
|
79576
|
-
) :
|
|
79576
|
+
) : _.type === "number" ? /* @__PURE__ */ R.jsx(
|
|
79577
79577
|
"input",
|
|
79578
79578
|
{
|
|
79579
79579
|
type: "number",
|
|
79580
79580
|
className: "block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",
|
|
79581
|
-
value:
|
|
79581
|
+
value: _.value,
|
|
79582
79582
|
onChange: (H) => x(B, "value", H.target.value),
|
|
79583
79583
|
placeholder: "Enter number..."
|
|
79584
79584
|
}
|
|
79585
|
-
) : /* @__PURE__ */
|
|
79585
|
+
) : /* @__PURE__ */ R.jsx(
|
|
79586
79586
|
"input",
|
|
79587
79587
|
{
|
|
79588
79588
|
type: "text",
|
|
79589
79589
|
className: "block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",
|
|
79590
|
-
value:
|
|
79590
|
+
value: _.value,
|
|
79591
79591
|
onChange: (H) => x(B, "value", H.target.value),
|
|
79592
79592
|
placeholder: "Enter value..."
|
|
79593
79593
|
}
|
|
79594
79594
|
) }),
|
|
79595
|
-
/* @__PURE__ */
|
|
79595
|
+
/* @__PURE__ */ R.jsx("div", { className: "col-span-1", children: /* @__PURE__ */ R.jsx(
|
|
79596
79596
|
"button",
|
|
79597
79597
|
{
|
|
79598
79598
|
onClick: () => V(B),
|
|
79599
79599
|
className: "inline-flex cursor-pointer items-center justify-center p-2 border border-transparent rounded-md text-red-700 bg-red-100 hover:bg-red-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500",
|
|
79600
79600
|
"aria-label": "Remove parameter",
|
|
79601
|
-
children: /* @__PURE__ */
|
|
79601
|
+
children: /* @__PURE__ */ R.jsx(
|
|
79602
79602
|
"svg",
|
|
79603
79603
|
{
|
|
79604
79604
|
xmlns: "http://www.w3.org/2000/svg",
|
|
79605
79605
|
className: "h-5 w-5",
|
|
79606
79606
|
viewBox: "0 0 20 20",
|
|
79607
79607
|
fill: "currentColor",
|
|
79608
|
-
children: /* @__PURE__ */
|
|
79608
|
+
children: /* @__PURE__ */ R.jsx(
|
|
79609
79609
|
"path",
|
|
79610
79610
|
{
|
|
79611
79611
|
fillRule: "evenodd",
|
|
@@ -79618,52 +79618,52 @@ const yme = ({
|
|
|
79618
79618
|
}
|
|
79619
79619
|
) })
|
|
79620
79620
|
] });
|
|
79621
|
-
return /* @__PURE__ */
|
|
79622
|
-
/* @__PURE__ */
|
|
79623
|
-
/* @__PURE__ */
|
|
79624
|
-
/* @__PURE__ */
|
|
79625
|
-
/* @__PURE__ */
|
|
79626
|
-
/* @__PURE__ */
|
|
79627
|
-
/* @__PURE__ */
|
|
79621
|
+
return /* @__PURE__ */ R.jsxs("div", { className: "max-w-4xl mx-auto p-6", children: [
|
|
79622
|
+
/* @__PURE__ */ R.jsx("h1", { className: "text-3xl font-bold mb-4", children: "Experiment Parameters" }),
|
|
79623
|
+
/* @__PURE__ */ R.jsx("p", { className: "text-gray-700 mb-6", children: "Configure the experiment by setting parameter values below. Fields left empty will be assigned their default value. Once configured, you can copy the URL to run the experiment with these settings." }),
|
|
79624
|
+
/* @__PURE__ */ R.jsxs("div", { className: "bg-white shadow overflow-hidden sm:rounded-md mb-8", children: [
|
|
79625
|
+
/* @__PURE__ */ R.jsxs("div", { className: "px-4 py-5 border-b border-gray-200 sm:px-6", children: [
|
|
79626
|
+
/* @__PURE__ */ R.jsx("h2", { className: "text-lg font-medium text-gray-900", children: "Registered Parameters" }),
|
|
79627
|
+
/* @__PURE__ */ R.jsx("p", { className: "mt-1 text-sm text-gray-500", children: "Parameters defined in the experiment configuration." })
|
|
79628
79628
|
] }),
|
|
79629
|
-
/* @__PURE__ */
|
|
79630
|
-
/* @__PURE__ */
|
|
79631
|
-
/* @__PURE__ */
|
|
79632
|
-
/* @__PURE__ */
|
|
79633
|
-
/* @__PURE__ */
|
|
79629
|
+
/* @__PURE__ */ R.jsx("ul", { className: "divide-y divide-gray-200", children: g.map((_) => /* @__PURE__ */ R.jsx("li", { className: "px-4 py-4 sm:px-6", children: /* @__PURE__ */ R.jsxs("div", { className: "grid grid-cols-3 gap-6", children: [
|
|
79630
|
+
/* @__PURE__ */ R.jsx("div", { className: "col-span-2", children: /* @__PURE__ */ R.jsxs("div", { className: "flex flex-col h-full", children: [
|
|
79631
|
+
/* @__PURE__ */ R.jsxs("div", { className: "flex items-center", children: [
|
|
79632
|
+
/* @__PURE__ */ R.jsx("label", { className: "text-base font-medium text-gray-900", children: _.name }),
|
|
79633
|
+
/* @__PURE__ */ R.jsx("span", { className: "ml-2 inline-flex items-center px-2 py-0.5 rounded-lg text-xs font-medium bg-gray-100 text-gray-600", children: _.type })
|
|
79634
79634
|
] }),
|
|
79635
|
-
|
|
79636
|
-
|
|
79635
|
+
_.description && /* @__PURE__ */ R.jsx("p", { className: "mt-1 text-sm text-gray-500 flex-grow", children: _.description }),
|
|
79636
|
+
_.defaultValue !== void 0 && /* @__PURE__ */ R.jsxs("p", { className: "mt-auto pt-2 text-xs text-gray-500", children: [
|
|
79637
79637
|
"Default: ",
|
|
79638
|
-
/* @__PURE__ */
|
|
79638
|
+
/* @__PURE__ */ R.jsxs("code", { children: [
|
|
79639
79639
|
" ",
|
|
79640
|
-
JSON.stringify(
|
|
79640
|
+
JSON.stringify(_.defaultValue)
|
|
79641
79641
|
] })
|
|
79642
79642
|
] })
|
|
79643
79643
|
] }) }),
|
|
79644
|
-
/* @__PURE__ */
|
|
79645
|
-
] }) },
|
|
79644
|
+
/* @__PURE__ */ R.jsx("div", { className: "col-span-1 flex items-center", children: q(_) })
|
|
79645
|
+
] }) }, _.name)) })
|
|
79646
79646
|
] }),
|
|
79647
|
-
/* @__PURE__ */
|
|
79648
|
-
/* @__PURE__ */
|
|
79649
|
-
/* @__PURE__ */
|
|
79650
|
-
/* @__PURE__ */
|
|
79651
|
-
/* @__PURE__ */
|
|
79647
|
+
/* @__PURE__ */ R.jsxs("div", { className: "bg-white shadow overflow-hidden sm:rounded-md mb-8", children: [
|
|
79648
|
+
/* @__PURE__ */ R.jsx("div", { className: "px-4 py-5 border-b border-gray-200 sm:px-6", children: /* @__PURE__ */ R.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
79649
|
+
/* @__PURE__ */ R.jsxs("div", { children: [
|
|
79650
|
+
/* @__PURE__ */ R.jsx("h2", { className: "text-lg font-medium text-gray-900", children: "Custom Parameters" }),
|
|
79651
|
+
/* @__PURE__ */ R.jsx("p", { className: "mt-1 text-sm text-gray-500", children: "Add any additional parameters to be stored in the data for this run." })
|
|
79652
79652
|
] }),
|
|
79653
|
-
/* @__PURE__ */
|
|
79653
|
+
/* @__PURE__ */ R.jsxs(
|
|
79654
79654
|
"button",
|
|
79655
79655
|
{
|
|
79656
|
-
onClick:
|
|
79656
|
+
onClick: L,
|
|
79657
79657
|
className: "inline-flex cursor-pointer items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",
|
|
79658
79658
|
children: [
|
|
79659
|
-
/* @__PURE__ */
|
|
79659
|
+
/* @__PURE__ */ R.jsx(
|
|
79660
79660
|
"svg",
|
|
79661
79661
|
{
|
|
79662
79662
|
xmlns: "http://www.w3.org/2000/svg",
|
|
79663
79663
|
className: "-ml-1 mr-2 h-5 w-5",
|
|
79664
79664
|
viewBox: "0 0 20 20",
|
|
79665
79665
|
fill: "currentColor",
|
|
79666
|
-
children: /* @__PURE__ */
|
|
79666
|
+
children: /* @__PURE__ */ R.jsx(
|
|
79667
79667
|
"path",
|
|
79668
79668
|
{
|
|
79669
79669
|
fillRule: "evenodd",
|
|
@@ -79678,31 +79678,31 @@ const yme = ({
|
|
|
79678
79678
|
}
|
|
79679
79679
|
)
|
|
79680
79680
|
] }) }),
|
|
79681
|
-
/* @__PURE__ */
|
|
79682
|
-
/* @__PURE__ */
|
|
79683
|
-
/* @__PURE__ */
|
|
79684
|
-
/* @__PURE__ */
|
|
79685
|
-
/* @__PURE__ */
|
|
79686
|
-
/* @__PURE__ */
|
|
79681
|
+
/* @__PURE__ */ R.jsx("div", { className: "px-4 py-5 sm:px-6", children: D.length === 0 ? /* @__PURE__ */ R.jsx("p", { className: "text-sm text-gray-500 italic", children: 'No custom parameters added. Click "Add Parameter" to create one.' }) : /* @__PURE__ */ R.jsxs("div", { children: [
|
|
79682
|
+
/* @__PURE__ */ R.jsxs("div", { className: "grid grid-cols-12 gap-2 mb-2", children: [
|
|
79683
|
+
/* @__PURE__ */ R.jsx("div", { className: "col-span-3", children: /* @__PURE__ */ R.jsx("label", { className: "block text-xs font-medium text-gray-500", children: "PARAMETER NAME" }) }),
|
|
79684
|
+
/* @__PURE__ */ R.jsx("div", { className: "col-span-2", children: /* @__PURE__ */ R.jsx("label", { className: "block text-xs font-medium text-gray-500", children: "TYPE" }) }),
|
|
79685
|
+
/* @__PURE__ */ R.jsx("div", { className: "col-span-6", children: /* @__PURE__ */ R.jsx("label", { className: "block text-xs font-medium text-gray-500", children: "VALUE" }) }),
|
|
79686
|
+
/* @__PURE__ */ R.jsx("div", { className: "col-span-1" })
|
|
79687
79687
|
] }),
|
|
79688
|
-
D.map((
|
|
79688
|
+
D.map((_, B) => /* @__PURE__ */ R.jsx("div", { children: Q(_, B) }, B))
|
|
79689
79689
|
] }) })
|
|
79690
79690
|
] }),
|
|
79691
|
-
e.length > 0 && /* @__PURE__ */
|
|
79692
|
-
/* @__PURE__ */
|
|
79693
|
-
/* @__PURE__ */
|
|
79694
|
-
/* @__PURE__ */
|
|
79695
|
-
/* @__PURE__ */
|
|
79691
|
+
e.length > 0 && /* @__PURE__ */ R.jsxs("div", { className: "bg-white shadow overflow-hidden sm:rounded-md mb-8", children: [
|
|
79692
|
+
/* @__PURE__ */ R.jsx("div", { className: "px-4 py-5 border-b border-gray-200 sm:px-6", children: /* @__PURE__ */ R.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
79693
|
+
/* @__PURE__ */ R.jsxs("div", { children: [
|
|
79694
|
+
/* @__PURE__ */ R.jsx("h2", { className: "text-lg font-medium text-gray-900", children: "Trial Selection" }),
|
|
79695
|
+
/* @__PURE__ */ R.jsx("p", { className: "mt-1 text-sm text-gray-500", children: "Select which trials to include or exclude from the experiment." })
|
|
79696
79696
|
] }),
|
|
79697
|
-
/* @__PURE__ */
|
|
79698
|
-
/* @__PURE__ */
|
|
79697
|
+
/* @__PURE__ */ R.jsxs("div", { className: "flex items-center", children: [
|
|
79698
|
+
/* @__PURE__ */ R.jsx(
|
|
79699
79699
|
"button",
|
|
79700
79700
|
{
|
|
79701
|
-
onClick:
|
|
79701
|
+
onClick: A,
|
|
79702
79702
|
className: `relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${d ? "bg-red-600" : "bg-green-600"}`,
|
|
79703
79703
|
role: "switch",
|
|
79704
79704
|
"aria-checked": d,
|
|
79705
|
-
children: /* @__PURE__ */
|
|
79705
|
+
children: /* @__PURE__ */ R.jsx(
|
|
79706
79706
|
"span",
|
|
79707
79707
|
{
|
|
79708
79708
|
className: `pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 ${d ? "translate-x-5" : "translate-x-0"}`
|
|
@@ -79710,21 +79710,21 @@ const yme = ({
|
|
|
79710
79710
|
)
|
|
79711
79711
|
}
|
|
79712
79712
|
),
|
|
79713
|
-
/* @__PURE__ */
|
|
79713
|
+
/* @__PURE__ */ R.jsx("span", { className: "ml-2 text-sm text-gray-600", children: d ? "Exclude mode" : "Include mode" })
|
|
79714
79714
|
] })
|
|
79715
79715
|
] }) }),
|
|
79716
|
-
/* @__PURE__ */
|
|
79717
|
-
/* @__PURE__ */
|
|
79718
|
-
/* @__PURE__ */
|
|
79719
|
-
(
|
|
79716
|
+
/* @__PURE__ */ R.jsxs("div", { className: "px-4 py-5 sm:px-6", children: [
|
|
79717
|
+
/* @__PURE__ */ R.jsx("p", { className: "mb-4 text-sm font-medium text-gray-500", children: d ? "Check trials you want to EXCLUDE from the experiment" : "Check trials you want to INCLUDE in the experiment" }),
|
|
79718
|
+
/* @__PURE__ */ R.jsx("div", { className: "border border-gray-200 rounded-md overflow-hidden", children: /* @__PURE__ */ R.jsx("ul", { className: "divide-y divide-gray-200", children: e.map(
|
|
79719
|
+
(_, B) => /* @__PURE__ */ R.jsx(
|
|
79720
79720
|
"li",
|
|
79721
79721
|
{
|
|
79722
79722
|
className: "cursor-pointer px-4 py-3 hover:bg-gray-50",
|
|
79723
79723
|
onClick: (H) => {
|
|
79724
79724
|
H.target.type !== "checkbox" && !H.target.closest("label") && T(B);
|
|
79725
79725
|
},
|
|
79726
|
-
children: /* @__PURE__ */
|
|
79727
|
-
/* @__PURE__ */
|
|
79726
|
+
children: /* @__PURE__ */ R.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ R.jsxs("div", { className: "flex items-center flex-grow", children: [
|
|
79727
|
+
/* @__PURE__ */ R.jsx(
|
|
79728
79728
|
"input",
|
|
79729
79729
|
{
|
|
79730
79730
|
id: `trial-${B}`,
|
|
@@ -79734,18 +79734,18 @@ const yme = ({
|
|
|
79734
79734
|
onChange: () => T(B)
|
|
79735
79735
|
}
|
|
79736
79736
|
),
|
|
79737
|
-
/* @__PURE__ */
|
|
79737
|
+
/* @__PURE__ */ R.jsxs(
|
|
79738
79738
|
"label",
|
|
79739
79739
|
{
|
|
79740
79740
|
htmlFor: `trial-${B}`,
|
|
79741
79741
|
className: "ml-3 flex-grow flex items-center cursor-pointer",
|
|
79742
79742
|
children: [
|
|
79743
|
-
/* @__PURE__ */
|
|
79743
|
+
/* @__PURE__ */ R.jsxs("div", { className: "w-8 text-center text-xs text-gray-500 font-medium", children: [
|
|
79744
79744
|
"#",
|
|
79745
79745
|
B + 1
|
|
79746
79746
|
] }),
|
|
79747
|
-
/* @__PURE__ */
|
|
79748
|
-
/* @__PURE__ */
|
|
79747
|
+
/* @__PURE__ */ R.jsx("div", { className: "flex-grow", children: _.name ? /* @__PURE__ */ R.jsx("span", { className: "font-medium text-gray-900", children: _.name }) : /* @__PURE__ */ R.jsx("span", { className: "font-medium text-gray-500", children: _.type }) }),
|
|
79748
|
+
/* @__PURE__ */ R.jsx("div", { className: "ml-2", children: /* @__PURE__ */ R.jsx("span", { className: "inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-800", children: _.type }) })
|
|
79749
79749
|
]
|
|
79750
79750
|
}
|
|
79751
79751
|
)
|
|
@@ -79756,18 +79756,18 @@ const yme = ({
|
|
|
79756
79756
|
) }) })
|
|
79757
79757
|
] })
|
|
79758
79758
|
] }),
|
|
79759
|
-
/* @__PURE__ */
|
|
79760
|
-
/* @__PURE__ */
|
|
79761
|
-
/* @__PURE__ */
|
|
79762
|
-
/* @__PURE__ */
|
|
79763
|
-
/* @__PURE__ */
|
|
79759
|
+
/* @__PURE__ */ R.jsxs("div", { className: "bg-white shadow sm:rounded-md p-6 mb-8", children: [
|
|
79760
|
+
/* @__PURE__ */ R.jsxs("div", { className: "flex justify-between items-center mb-4", children: [
|
|
79761
|
+
/* @__PURE__ */ R.jsx("h2", { className: "text-lg font-medium", children: "Generated URL" }),
|
|
79762
|
+
/* @__PURE__ */ R.jsxs("div", { className: "flex items-center", children: [
|
|
79763
|
+
/* @__PURE__ */ R.jsx(
|
|
79764
79764
|
"button",
|
|
79765
79765
|
{
|
|
79766
|
-
onClick:
|
|
79766
|
+
onClick: M,
|
|
79767
79767
|
className: `relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${h ? "bg-blue-600" : "bg-gray-200"}`,
|
|
79768
79768
|
role: "switch",
|
|
79769
79769
|
"aria-checked": h,
|
|
79770
|
-
children: /* @__PURE__ */
|
|
79770
|
+
children: /* @__PURE__ */ R.jsx(
|
|
79771
79771
|
"span",
|
|
79772
79772
|
{
|
|
79773
79773
|
className: `pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 ${h ? "translate-x-5" : "translate-x-0"}`
|
|
@@ -79775,11 +79775,11 @@ const yme = ({
|
|
|
79775
79775
|
)
|
|
79776
79776
|
}
|
|
79777
79777
|
),
|
|
79778
|
-
/* @__PURE__ */
|
|
79778
|
+
/* @__PURE__ */ R.jsx("span", { className: "ml-2 text-sm text-gray-600", children: h ? "Base64 Encoded" : "Plain Parameters" })
|
|
79779
79779
|
] })
|
|
79780
79780
|
] }),
|
|
79781
|
-
/* @__PURE__ */
|
|
79782
|
-
/* @__PURE__ */
|
|
79781
|
+
/* @__PURE__ */ R.jsxs("div", { className: "flex flex-col md:flex-row gap-3", children: [
|
|
79782
|
+
/* @__PURE__ */ R.jsx(
|
|
79783
79783
|
"input",
|
|
79784
79784
|
{
|
|
79785
79785
|
ref: m,
|
|
@@ -79789,21 +79789,21 @@ const yme = ({
|
|
|
79789
79789
|
readOnly: !0
|
|
79790
79790
|
}
|
|
79791
79791
|
),
|
|
79792
|
-
/* @__PURE__ */
|
|
79792
|
+
/* @__PURE__ */ R.jsx(
|
|
79793
79793
|
"button",
|
|
79794
79794
|
{
|
|
79795
|
-
onClick:
|
|
79795
|
+
onClick: I,
|
|
79796
79796
|
className: "inline-flex cursor-pointer justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",
|
|
79797
79797
|
children: l
|
|
79798
79798
|
}
|
|
79799
79799
|
)
|
|
79800
79800
|
] }),
|
|
79801
|
-
h && /* @__PURE__ */
|
|
79802
|
-
/* @__PURE__ */
|
|
79801
|
+
h && /* @__PURE__ */ R.jsxs("p", { className: "mt-4 text-sm text-gray-600", children: [
|
|
79802
|
+
/* @__PURE__ */ R.jsx("span", { className: "font-medium", children: "Note:" }),
|
|
79803
79803
|
' Base64 encoding combines all parameters into a single "_b" parameter, creating shorter URLs that hide parameter details.'
|
|
79804
79804
|
] })
|
|
79805
79805
|
] }),
|
|
79806
|
-
/* @__PURE__ */
|
|
79806
|
+
/* @__PURE__ */ R.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ R.jsx(
|
|
79807
79807
|
"a",
|
|
79808
79808
|
{
|
|
79809
79809
|
href: a,
|
|
@@ -79822,15 +79822,15 @@ function aw(i) {
|
|
|
79822
79822
|
return !!i;
|
|
79823
79823
|
}
|
|
79824
79824
|
function hCe({ children: i, disableSettings: e, disableHybridSimulation: t }) {
|
|
79825
|
-
return window.location.pathname.endsWith("/settings") && !aw(e) ? /* @__PURE__ */
|
|
79825
|
+
return window.location.pathname.endsWith("/settings") && !aw(e) ? /* @__PURE__ */ R.jsx(
|
|
79826
79826
|
yme,
|
|
79827
79827
|
{
|
|
79828
79828
|
paramRegistry: Cc.getRegistry(),
|
|
79829
79829
|
timelineRepresentation: Cc.getTimelineRepresentation()
|
|
79830
79830
|
}
|
|
79831
|
-
) : /* @__PURE__ */
|
|
79832
|
-
/* @__PURE__ */
|
|
79833
|
-
/* @__PURE__ */
|
|
79831
|
+
) : /* @__PURE__ */ R.jsxs(dde, { client: Cme, children: [
|
|
79832
|
+
/* @__PURE__ */ R.jsx(l7.Provider, { value: aw(t), children: i }),
|
|
79833
|
+
/* @__PURE__ */ R.jsx(
|
|
79834
79834
|
vme,
|
|
79835
79835
|
{
|
|
79836
79836
|
position: "top-center",
|
|
@@ -79880,10 +79880,10 @@ function wme({ next: i }) {
|
|
|
79880
79880
|
console.error("Permission denied or error:", r), t("denied");
|
|
79881
79881
|
}
|
|
79882
79882
|
})();
|
|
79883
|
-
}, [i, e]), e === "checking" ? null : /* @__PURE__ */
|
|
79884
|
-
/* @__PURE__ */
|
|
79885
|
-
/* @__PURE__ */
|
|
79886
|
-
/* @__PURE__ */
|
|
79883
|
+
}, [i, e]), e === "checking" ? null : /* @__PURE__ */ R.jsxs("div", { className: "flex flex-col items-center justify-center gap-4 p-6 text-xl mt-16 px-10", children: [
|
|
79884
|
+
/* @__PURE__ */ R.jsx("p", { children: "Storage permission is required to save your data." }),
|
|
79885
|
+
/* @__PURE__ */ R.jsx("p", { children: "Please grant permission when prompted." }),
|
|
79886
|
+
/* @__PURE__ */ R.jsxs("p", { children: [
|
|
79887
79887
|
'If there is no popup, go to "Settings" ',
|
|
79888
79888
|
">",
|
|
79889
79889
|
' "Apps" ',
|
|
@@ -79896,7 +79896,7 @@ function wme({ next: i }) {
|
|
|
79896
79896
|
">",
|
|
79897
79897
|
' "Allow"'
|
|
79898
79898
|
] }),
|
|
79899
|
-
/* @__PURE__ */
|
|
79899
|
+
/* @__PURE__ */ R.jsx(
|
|
79900
79900
|
"button",
|
|
79901
79901
|
{
|
|
79902
79902
|
onClick: () => t("checking"),
|
|
@@ -79925,67 +79925,67 @@ function Vme({
|
|
|
79925
79925
|
}) {
|
|
79926
79926
|
const { instructions: l, markers: u } = di(() => Vd(t), [t]), h = fe(0), c = fe(0), d = fe(!0), f = fe(null), y = fe(null), v = fe([]), m = fe(n ?? {}), g = fe(null), b = fe(0), x = fe(null);
|
|
79927
79927
|
lt(() => {
|
|
79928
|
-
const Q = m.current._reactiveScreenRefreshRate,
|
|
79929
|
-
x.current =
|
|
79928
|
+
const Q = m.current._reactiveScreenRefreshRate, _ = typeof Q == "number" && Q >= 20 && Q <= 300;
|
|
79929
|
+
x.current = _ ? 1e3 / Q : null;
|
|
79930
79930
|
}, [n]);
|
|
79931
79931
|
const T = Xe(
|
|
79932
79932
|
(Q) => {
|
|
79933
79933
|
if (Q.type !== "ExecuteContent") return null;
|
|
79934
|
-
const
|
|
79935
|
-
if (xme(
|
|
79934
|
+
const _ = Q.content;
|
|
79935
|
+
if (xme(_))
|
|
79936
79936
|
try {
|
|
79937
|
-
return
|
|
79937
|
+
return _(v.current, m.current);
|
|
79938
79938
|
} catch (B) {
|
|
79939
79939
|
return console.error("Error executing dynamic canvas slide generator:", B), null;
|
|
79940
79940
|
}
|
|
79941
|
-
else if (Eme(
|
|
79942
|
-
return
|
|
79941
|
+
else if (Eme(_))
|
|
79942
|
+
return _;
|
|
79943
79943
|
return console.warn(
|
|
79944
79944
|
"ExecuteContent instruction content is not a valid CanvasSlide or Generator:",
|
|
79945
|
-
|
|
79945
|
+
_
|
|
79946
79946
|
), null;
|
|
79947
79947
|
},
|
|
79948
79948
|
[]
|
|
79949
|
-
),
|
|
79949
|
+
), A = Xe(() => {
|
|
79950
79950
|
const Q = y.current;
|
|
79951
79951
|
if (!Q) return {};
|
|
79952
|
-
const
|
|
79953
|
-
if (!
|
|
79952
|
+
const _ = Q.getContext("2d");
|
|
79953
|
+
if (!_) return {};
|
|
79954
79954
|
const B = window.devicePixelRatio || 1, H = Q.width / B, $ = Q.height / B;
|
|
79955
|
-
return { ctx:
|
|
79956
|
-
}, []),
|
|
79957
|
-
const { ctx: Q, canvasWidth:
|
|
79958
|
-
Q && (Q.fillStyle = "white", Q.fillRect(0, 0,
|
|
79959
|
-
}, [
|
|
79955
|
+
return { ctx: _, canvasWidth: H, canvasHeight: $ };
|
|
79956
|
+
}, []), L = Xe(() => {
|
|
79957
|
+
const { ctx: Q, canvasWidth: _, canvasHeight: B } = A();
|
|
79958
|
+
Q && (Q.fillStyle = "white", Q.fillRect(0, 0, _, B), d.current = !1);
|
|
79959
|
+
}, [A]), D = Xe(
|
|
79960
79960
|
(Q) => {
|
|
79961
|
-
const { ctx:
|
|
79962
|
-
if (
|
|
79963
|
-
if (
|
|
79961
|
+
const { ctx: _, canvasWidth: B, canvasHeight: H } = A();
|
|
79962
|
+
if (_) {
|
|
79963
|
+
if (_.fillStyle = "white", _.fillRect(0, 0, B, H), a)
|
|
79964
79964
|
try {
|
|
79965
|
-
a(
|
|
79965
|
+
a(_, B, H);
|
|
79966
79966
|
} catch ($) {
|
|
79967
79967
|
console.error("Error during styleCanvas function:", $);
|
|
79968
79968
|
}
|
|
79969
79969
|
else
|
|
79970
|
-
|
|
79970
|
+
_.fillStyle = "black";
|
|
79971
79971
|
try {
|
|
79972
|
-
Q.draw(
|
|
79972
|
+
Q.draw(_, B, H);
|
|
79973
79973
|
} catch ($) {
|
|
79974
79974
|
console.error("Error during slide draw function:", $);
|
|
79975
79975
|
}
|
|
79976
79976
|
c.current = Qs(), d.current = !0, f.current = null, b.current += 1;
|
|
79977
79977
|
}
|
|
79978
79978
|
},
|
|
79979
|
-
[
|
|
79979
|
+
[A]
|
|
79980
79980
|
);
|
|
79981
79981
|
let V;
|
|
79982
|
-
const
|
|
79983
|
-
const Q = Qs(),
|
|
79984
|
-
if (
|
|
79982
|
+
const I = Xe(() => {
|
|
79983
|
+
const Q = Qs(), _ = h.current;
|
|
79984
|
+
if (_ < 0 || _ >= l.length) {
|
|
79985
79985
|
g.current && cancelAnimationFrame(g.current), g.current = null;
|
|
79986
79986
|
return;
|
|
79987
79987
|
}
|
|
79988
|
-
const B = l[
|
|
79988
|
+
const B = l[_], H = T(B);
|
|
79989
79989
|
if (!H) {
|
|
79990
79990
|
g.current && cancelAnimationFrame(g.current), g.current = null;
|
|
79991
79991
|
return;
|
|
@@ -79993,8 +79993,8 @@ function Vme({
|
|
|
79993
79993
|
const $ = H.displayDuration ?? 1 / 0, j = H.responseTimeLimit ?? 1 / 0, G = H.allowedKeys ?? !1, ne = G === !1 || Array.isArray(G) && G.length === 0;
|
|
79994
79994
|
let Y = !1;
|
|
79995
79995
|
const oe = Q - c.current + (x.current !== null ? x.current * 0.5 : 0);
|
|
79996
|
-
d.current && $ !== 1 / 0 && oe >= $ && (
|
|
79997
|
-
}, [l, T,
|
|
79996
|
+
d.current && $ !== 1 / 0 && oe >= $ && (L(), (ne || j === 1 / 0) && (Y = !0)), !Y && j !== 1 / 0 && oe >= j && (Y = !0, d.current && $ !== 1 / 0 && oe < $ && L()), Y ? V() : d.current && $ !== 1 / 0 && oe < $ || j !== 1 / 0 && oe < j ? g.current = requestAnimationFrame(I) : (g.current && cancelAnimationFrame(g.current), g.current = null);
|
|
79997
|
+
}, [l, T, L]), M = Xe(() => {
|
|
79998
79998
|
g.current && cancelAnimationFrame(g.current), g.current = null;
|
|
79999
79999
|
const Q = Yn(
|
|
80000
80000
|
{ instructions: l, markers: u },
|
|
@@ -80013,20 +80013,20 @@ function Vme({
|
|
|
80013
80013
|
console.error("Canvas element not found during control flow.");
|
|
80014
80014
|
return;
|
|
80015
80015
|
}
|
|
80016
|
-
const
|
|
80017
|
-
if (
|
|
80018
|
-
D(
|
|
80019
|
-
const B =
|
|
80020
|
-
(B !== 1 / 0 || H !== 1 / 0) && (g.current = requestAnimationFrame(
|
|
80016
|
+
const _ = T(l[Q]);
|
|
80017
|
+
if (_) {
|
|
80018
|
+
D(_);
|
|
80019
|
+
const B = _.displayDuration ?? 1 / 0, H = _.responseTimeLimit ?? 1 / 0;
|
|
80020
|
+
(B !== 1 / 0 || H !== 1 / 0) && (g.current = requestAnimationFrame(I));
|
|
80021
80021
|
} else
|
|
80022
|
-
console.error("Failed to resolve slide content during control flow:", l[Q]), h.current++,
|
|
80023
|
-
}, [l, u, T, D,
|
|
80022
|
+
console.error("Failed to resolve slide content during control flow:", l[Q]), h.current++, M();
|
|
80023
|
+
}, [l, u, T, D, I, i]);
|
|
80024
80024
|
V = Xe(() => {
|
|
80025
|
-
const Q = f.current,
|
|
80025
|
+
const Q = f.current, _ = Qs();
|
|
80026
80026
|
g.current && cancelAnimationFrame(g.current), g.current = null;
|
|
80027
80027
|
const B = h.current;
|
|
80028
80028
|
if (B >= l.length || l[B].type !== "ExecuteContent") {
|
|
80029
|
-
h.current++,
|
|
80029
|
+
h.current++, M();
|
|
80030
80030
|
return;
|
|
80031
80031
|
}
|
|
80032
80032
|
const H = l[B], $ = T(H);
|
|
@@ -80035,39 +80035,39 @@ function Vme({
|
|
|
80035
80035
|
index: h.current,
|
|
80036
80036
|
trialNumber: b.current - 1,
|
|
80037
80037
|
start: c.current,
|
|
80038
|
-
end:
|
|
80039
|
-
duration:
|
|
80038
|
+
end: _,
|
|
80039
|
+
duration: _ - c.current,
|
|
80040
80040
|
key: Q ? Q.key : null,
|
|
80041
80041
|
reactionTime: Q ? Q.reactionTime : null
|
|
80042
80042
|
};
|
|
80043
80043
|
j = Sd(j, $, v.current, m.current), v.current.push(j);
|
|
80044
80044
|
}
|
|
80045
|
-
h.current++, f.current = null,
|
|
80046
|
-
}, [l, T,
|
|
80045
|
+
h.current++, f.current = null, M();
|
|
80046
|
+
}, [l, T, M]);
|
|
80047
80047
|
const q = Xe(
|
|
80048
80048
|
(Q) => {
|
|
80049
|
-
const
|
|
80049
|
+
const _ = Qs(), B = h.current;
|
|
80050
80050
|
if (B >= l.length || !d.current) return;
|
|
80051
80051
|
const H = l[B];
|
|
80052
80052
|
if (H.type !== "ExecuteContent") return;
|
|
80053
80053
|
const $ = T(H);
|
|
80054
80054
|
if (!$) return;
|
|
80055
|
-
const j = $.responseTimeLimit ?? 1 / 0, G =
|
|
80055
|
+
const j = $.responseTimeLimit ?? 1 / 0, G = _ - c.current < j, ne = $.allowedKeys ?? !1;
|
|
80056
80056
|
if ((ne === !0 || Array.isArray(ne) && ne.includes(Q.key)) && G) {
|
|
80057
80057
|
const oe = $.endSlideOnResponse ?? !0, re = $.hideOnResponse ?? !1, ue = $.ignoreData ?? !1;
|
|
80058
80058
|
(!f.current || !oe) && (!f.current && !ue && (f.current = {
|
|
80059
80059
|
key: Q.key,
|
|
80060
|
-
time:
|
|
80061
|
-
reactionTime:
|
|
80062
|
-
}), re &&
|
|
80060
|
+
time: _,
|
|
80061
|
+
reactionTime: _ - c.current
|
|
80062
|
+
}), re && L(), oe && V());
|
|
80063
80063
|
}
|
|
80064
80064
|
},
|
|
80065
|
-
[l, T, V,
|
|
80065
|
+
[l, T, V, L]
|
|
80066
80066
|
);
|
|
80067
80067
|
return lt(() => {
|
|
80068
80068
|
const Q = y.current;
|
|
80069
80069
|
if (!Q) return;
|
|
80070
|
-
const
|
|
80070
|
+
const _ = Ul() ? window.screen.width : window.innerWidth, B = Ul() ? window.screen.height : window.innerHeight;
|
|
80071
80071
|
let H, $;
|
|
80072
80072
|
const j = (te, we) => {
|
|
80073
80073
|
if (typeof te == "number")
|
|
@@ -80079,7 +80079,7 @@ function Vme({
|
|
|
80079
80079
|
}
|
|
80080
80080
|
return null;
|
|
80081
80081
|
};
|
|
80082
|
-
let G = j(s,
|
|
80082
|
+
let G = j(s, _), ne = j(r, B);
|
|
80083
80083
|
const Y = typeof s == "string" && /^\d+(?:\.\d+)?:\d+(?:\.\d+)?$/.test(s), oe = typeof r == "string" && /^\d+(?:\.\d+)?:\d+(?:\.\d+)?$/.test(r);
|
|
80084
80084
|
if (G !== null && ne !== null)
|
|
80085
80085
|
H = G, $ = ne;
|
|
@@ -80088,12 +80088,12 @@ function Vme({
|
|
|
80088
80088
|
else if (ne !== null && G === null && !Y)
|
|
80089
80089
|
$ = ne, H = ne;
|
|
80090
80090
|
else if (G === null && ne === null && !Y && !oe) {
|
|
80091
|
-
const te = Math.min(
|
|
80091
|
+
const te = Math.min(_, B);
|
|
80092
80092
|
H = te, $ = te;
|
|
80093
80093
|
} else {
|
|
80094
80094
|
let te = G, we = ne;
|
|
80095
|
-
if (oe && te === null && (te = we ?? B), Y && we === null && (we = te ??
|
|
80096
|
-
const et = Math.min(
|
|
80095
|
+
if (oe && te === null && (te = we ?? B), Y && we === null && (we = te ?? _), te === null && we === null) {
|
|
80096
|
+
const et = Math.min(_, B);
|
|
80097
80097
|
te = et, we = et;
|
|
80098
80098
|
} else te === null ? te = we : we === null && (we = te);
|
|
80099
80099
|
H = te, $ = we ?? 0;
|
|
@@ -80121,12 +80121,12 @@ function Vme({
|
|
|
80121
80121
|
const we = r.match(/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?)$/);
|
|
80122
80122
|
we ? $ = H / parseFloat(we[1]) * parseFloat(we[2]) : $ = H;
|
|
80123
80123
|
} else {
|
|
80124
|
-
const we = Math.min(
|
|
80124
|
+
const we = Math.min(_, B);
|
|
80125
80125
|
H = we, $ = we;
|
|
80126
80126
|
}
|
|
80127
80127
|
} catch (te) {
|
|
80128
80128
|
console.error("Error parsing ratios:", te);
|
|
80129
|
-
const we = Math.min(
|
|
80129
|
+
const we = Math.min(_, B);
|
|
80130
80130
|
H = we, $ = we;
|
|
80131
80131
|
}
|
|
80132
80132
|
}
|
|
@@ -80139,14 +80139,14 @@ function Vme({
|
|
|
80139
80139
|
} catch (te) {
|
|
80140
80140
|
console.error("Error during canvas initialization:", te);
|
|
80141
80141
|
}
|
|
80142
|
-
return window.addEventListener("keydown", q),
|
|
80142
|
+
return window.addEventListener("keydown", q), M(), () => {
|
|
80143
80143
|
window.removeEventListener("keydown", q), g.current && cancelAnimationFrame(g.current);
|
|
80144
80144
|
};
|
|
80145
|
-
}, [t, s, r, q,
|
|
80145
|
+
}, [t, s, r, q, M]), /* @__PURE__ */ R.jsx(
|
|
80146
80146
|
"div",
|
|
80147
80147
|
{
|
|
80148
80148
|
style: { display: "flex", justifyContent: "center", alignItems: "center", height: "100vh" },
|
|
80149
|
-
children: /* @__PURE__ */
|
|
80149
|
+
children: /* @__PURE__ */ R.jsx("canvas", { ref: y })
|
|
80150
80150
|
}
|
|
80151
80151
|
);
|
|
80152
80152
|
}
|
|
@@ -80213,7 +80213,7 @@ vi("CheckDevice", (i, e, t, s) => {
|
|
|
80213
80213
|
}, {});
|
|
80214
80214
|
function Sme({
|
|
80215
80215
|
check: i,
|
|
80216
|
-
content: e = /* @__PURE__ */
|
|
80216
|
+
content: e = /* @__PURE__ */ R.jsx("div", { children: "Your device doesn't meet the requirements for this experiment." }),
|
|
80217
80217
|
data: t,
|
|
80218
80218
|
store: s,
|
|
80219
80219
|
updateStore: r,
|
|
@@ -80228,24 +80228,24 @@ function Sme({
|
|
|
80228
80228
|
let v = "Unknown", m = "Unknown";
|
|
80229
80229
|
if (y.indexOf("Chrome") > -1) {
|
|
80230
80230
|
v = "Chrome";
|
|
80231
|
-
const
|
|
80232
|
-
m =
|
|
80231
|
+
const I = y.match(/Chrome\/(\d+\.\d+)/);
|
|
80232
|
+
m = I ? I[1] : "Unknown";
|
|
80233
80233
|
} else if (y.indexOf("Firefox") > -1) {
|
|
80234
80234
|
v = "Firefox";
|
|
80235
|
-
const
|
|
80236
|
-
m =
|
|
80235
|
+
const I = y.match(/Firefox\/(\d+\.\d+)/);
|
|
80236
|
+
m = I ? I[1] : "Unknown";
|
|
80237
80237
|
} else if (y.indexOf("Safari") > -1) {
|
|
80238
80238
|
v = "Safari";
|
|
80239
|
-
const
|
|
80240
|
-
m =
|
|
80239
|
+
const I = y.match(/Version\/(\d+\.\d+)/);
|
|
80240
|
+
m = I ? I[1] : "Unknown";
|
|
80241
80241
|
} else if (y.indexOf("Edge") > -1) {
|
|
80242
80242
|
v = "Edge";
|
|
80243
|
-
const
|
|
80244
|
-
m =
|
|
80243
|
+
const I = y.match(/Edge\/(\d+\.\d+)/);
|
|
80244
|
+
m = I ? I[1] : "Unknown";
|
|
80245
80245
|
} else if (y.indexOf("MSIE") > -1 || y.indexOf("Trident/") > -1) {
|
|
80246
80246
|
v = "Internet Explorer";
|
|
80247
|
-
const
|
|
80248
|
-
m =
|
|
80247
|
+
const I = y.match(/(?:MSIE |rv:)(\d+\.\d+)/);
|
|
80248
|
+
m = I ? I[1] : "Unknown";
|
|
80249
80249
|
}
|
|
80250
80250
|
const g = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
80251
80251
|
y
|
|
@@ -80253,12 +80253,12 @@ function Sme({
|
|
|
80253
80253
|
let b = "Unknown";
|
|
80254
80254
|
/Windows/.test(y) ? b = "Windows" : /Macintosh|Mac OS X/.test(y) ? b = "MacOS" : /Linux/.test(y) ? b = "Linux" : /Android/.test(y) ? b = "Android" : /iOS|iPhone|iPad|iPod/.test(y) && (b = "iOS");
|
|
80255
80255
|
const x = !!(window.AudioContext || window.webkitAudioContext || window.mozAudioContext || window.oAudioContext || window.msAudioContext), T = !!(document.exitFullscreen || document.webkitExitFullscreen || document.mozCancelFullScreen || document.msExitFullscreen || document.fullscreenEnabled || document.webkitFullscreenEnabled || document.mozFullScreenEnabled || document.msFullscreenEnabled);
|
|
80256
|
-
let
|
|
80256
|
+
let A = !1, L = !1;
|
|
80257
80257
|
try {
|
|
80258
|
-
const
|
|
80259
|
-
|
|
80260
|
-
} catch (
|
|
80261
|
-
console.error("Error checking media devices:",
|
|
80258
|
+
const I = await navigator.mediaDevices.enumerateDevices();
|
|
80259
|
+
A = I.some((M) => M.kind === "videoinput"), L = I.some((M) => M.kind === "audioinput");
|
|
80260
|
+
} catch (I) {
|
|
80261
|
+
console.error("Error checking media devices:", I);
|
|
80262
80262
|
}
|
|
80263
80263
|
const D = {
|
|
80264
80264
|
windowWidth: h,
|
|
@@ -80271,12 +80271,12 @@ function Sme({
|
|
|
80271
80271
|
operatingSystem: b,
|
|
80272
80272
|
hasWebAudio: x,
|
|
80273
80273
|
hasFullscreen: T,
|
|
80274
|
-
hasWebcam:
|
|
80275
|
-
hasMicrophone:
|
|
80274
|
+
hasWebcam: A,
|
|
80275
|
+
hasMicrophone: L
|
|
80276
80276
|
};
|
|
80277
80277
|
r({ _reactiveDeviceInfo: D }), (i ? i(D, t, s) : !0) && !l.current ? (l.current = !0, n(D)) : o(!0);
|
|
80278
80278
|
})();
|
|
80279
|
-
}, [i, t, r, n]), a ? /* @__PURE__ */
|
|
80279
|
+
}, [i, t, r, n]), a ? /* @__PURE__ */ R.jsx("div", { className: "max-w-prose mx-auto mt-20 mb-20 px-4", children: /* @__PURE__ */ R.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: e }) }) : null;
|
|
80280
80280
|
}
|
|
80281
80281
|
Ai("StoreUI", "storeui");
|
|
80282
80282
|
function u7(i, e) {
|
|
@@ -80353,29 +80353,29 @@ function Tme({
|
|
|
80353
80353
|
n.forEach((x) => {
|
|
80354
80354
|
const T = o[x.storeKey];
|
|
80355
80355
|
if (x.type === "integer" || x.type === "float" ? T == null || T === "" ? b[x.storeKey] = "This field is required" : x.min !== void 0 && T < x.min ? b[x.storeKey] = `Value must be at least ${x.min}` : x.max !== void 0 && T > x.max && (b[x.storeKey] = `Value must be at most ${x.max}`) : x.type === "string" && (x.minLength !== void 0 && T.length < x.minLength ? b[x.storeKey] = `Must be at least ${x.minLength} characters` : x.maxLength !== void 0 && T.length > x.maxLength && (b[x.storeKey] = `Must be at most ${x.maxLength} characters`)), x.validate && !b[x.storeKey]) {
|
|
80356
|
-
const
|
|
80357
|
-
|
|
80356
|
+
const A = x.validate(T);
|
|
80357
|
+
A !== !0 && A !== "" && (b[x.storeKey] = typeof A == "string" ? A : "Invalid value");
|
|
80358
80358
|
}
|
|
80359
80359
|
}), h(b), Object.keys(b).length === 0 && (e(o), i(o));
|
|
80360
80360
|
}, m = Object.keys(u).length > 0;
|
|
80361
|
-
return /* @__PURE__ */
|
|
80362
|
-
/* @__PURE__ */
|
|
80363
|
-
r && /* @__PURE__ */
|
|
80364
|
-
/* @__PURE__ */
|
|
80365
|
-
/* @__PURE__ */
|
|
80361
|
+
return /* @__PURE__ */ R.jsxs("div", { className: "max-w-prose mx-auto mt-20 mb-20 px-4", children: [
|
|
80362
|
+
/* @__PURE__ */ R.jsx("h1", { className: "text-4xl font-bold mb-6", children: s }),
|
|
80363
|
+
r && /* @__PURE__ */ R.jsx("article", { className: "prose prose-lg mb-10", children: r }),
|
|
80364
|
+
/* @__PURE__ */ R.jsx("div", { className: "mt-12 space-y-12", children: n.map((g) => /* @__PURE__ */ R.jsxs("div", { className: "space-y-2", children: [
|
|
80365
|
+
/* @__PURE__ */ R.jsxs("label", { className: "block text-xl font-medium text-gray-900", children: [
|
|
80366
80366
|
g.label,
|
|
80367
80367
|
g.type === "integer" && g.min !== void 0 && g.max !== void 0 && ` (${g.min}-${g.max})`,
|
|
80368
80368
|
g.type === "float" && g.min !== void 0 && g.max !== void 0 && ` (${g.min}-${g.max})`
|
|
80369
80369
|
] }),
|
|
80370
|
-
g.prompt && /* @__PURE__ */
|
|
80371
|
-
g.type === "boolean" && /* @__PURE__ */
|
|
80372
|
-
/* @__PURE__ */
|
|
80370
|
+
g.prompt && /* @__PURE__ */ R.jsx("p", { className: "mb-4 text-base text-gray-700 mb-2", children: g.prompt }),
|
|
80371
|
+
g.type === "boolean" && /* @__PURE__ */ R.jsxs("div", { className: "flex items-center", children: [
|
|
80372
|
+
/* @__PURE__ */ R.jsxs(
|
|
80373
80373
|
"div",
|
|
80374
80374
|
{
|
|
80375
80375
|
className: `relative cursor-pointer w-10 h-10 flex items-center justify-center border-2 border-black rounded-xl shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none ${o[g.storeKey] ? "bg-blue-600 text-white" : "bg-white"}`,
|
|
80376
80376
|
onClick: () => y(g.storeKey, !o[g.storeKey]),
|
|
80377
80377
|
children: [
|
|
80378
|
-
/* @__PURE__ */
|
|
80378
|
+
/* @__PURE__ */ R.jsx(
|
|
80379
80379
|
"input",
|
|
80380
80380
|
{
|
|
80381
80381
|
type: "checkbox",
|
|
@@ -80384,14 +80384,14 @@ function Tme({
|
|
|
80384
80384
|
className: "absolute opacity-0 h-0 w-0"
|
|
80385
80385
|
}
|
|
80386
80386
|
),
|
|
80387
|
-
o[g.storeKey] && /* @__PURE__ */
|
|
80387
|
+
o[g.storeKey] && /* @__PURE__ */ R.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: "h-6 w-6", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ R.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M5 13l4 4L19 7" }) })
|
|
80388
80388
|
]
|
|
80389
80389
|
}
|
|
80390
80390
|
),
|
|
80391
|
-
/* @__PURE__ */
|
|
80391
|
+
/* @__PURE__ */ R.jsx("span", { className: "ml-3 text-lg", children: "Enabled" })
|
|
80392
80392
|
] }),
|
|
80393
|
-
(g.type === "integer" || g.type === "float") && /* @__PURE__ */
|
|
80394
|
-
g.min !== void 0 && g.max !== void 0 && /* @__PURE__ */
|
|
80393
|
+
(g.type === "integer" || g.type === "float") && /* @__PURE__ */ R.jsxs("div", { className: "flex items-center space-x-4", children: [
|
|
80394
|
+
g.min !== void 0 && g.max !== void 0 && /* @__PURE__ */ R.jsx(
|
|
80395
80395
|
"button",
|
|
80396
80396
|
{
|
|
80397
80397
|
onClick: () => y(
|
|
@@ -80405,7 +80405,7 @@ function Tme({
|
|
|
80405
80405
|
children: "-"
|
|
80406
80406
|
}
|
|
80407
80407
|
),
|
|
80408
|
-
/* @__PURE__ */
|
|
80408
|
+
/* @__PURE__ */ R.jsx(
|
|
80409
80409
|
"input",
|
|
80410
80410
|
{
|
|
80411
80411
|
type: "text",
|
|
@@ -80421,7 +80421,7 @@ function Tme({
|
|
|
80421
80421
|
className: "w-24 px-4 py-2 text-center border-2 border-black rounded-xl text-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
|
|
80422
80422
|
}
|
|
80423
80423
|
),
|
|
80424
|
-
g.min !== void 0 && g.max !== void 0 && /* @__PURE__ */
|
|
80424
|
+
g.min !== void 0 && g.max !== void 0 && /* @__PURE__ */ R.jsx(
|
|
80425
80425
|
"button",
|
|
80426
80426
|
{
|
|
80427
80427
|
onClick: () => y(
|
|
@@ -80436,7 +80436,7 @@ function Tme({
|
|
|
80436
80436
|
}
|
|
80437
80437
|
)
|
|
80438
80438
|
] }),
|
|
80439
|
-
g.type === "string" && /* @__PURE__ */
|
|
80439
|
+
g.type === "string" && /* @__PURE__ */ R.jsx(
|
|
80440
80440
|
"input",
|
|
80441
80441
|
{
|
|
80442
80442
|
type: "text",
|
|
@@ -80445,10 +80445,10 @@ function Tme({
|
|
|
80445
80445
|
className: "w-full px-4 py-2 border-2 border-black rounded-xl text-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
|
|
80446
80446
|
}
|
|
80447
80447
|
),
|
|
80448
|
-
u[g.storeKey] && c[g.storeKey] && /* @__PURE__ */
|
|
80449
|
-
g.component && /* @__PURE__ */
|
|
80448
|
+
u[g.storeKey] && c[g.storeKey] && /* @__PURE__ */ R.jsx("div", { className: "text-red-500 text-sm mt-1", children: u[g.storeKey] }),
|
|
80449
|
+
g.component && /* @__PURE__ */ R.jsx("div", { className: "mt-4", children: Ze.createElement(g.component, { value: o[g.storeKey] }) })
|
|
80450
80450
|
] }, g.storeKey)) }),
|
|
80451
|
-
/* @__PURE__ */
|
|
80451
|
+
/* @__PURE__ */ R.jsx("div", { className: "mt-12 flex justify-center", children: /* @__PURE__ */ R.jsx(
|
|
80452
80452
|
"button",
|
|
80453
80453
|
{
|
|
80454
80454
|
onClick: v,
|
|
@@ -80639,8 +80639,8 @@ function S7(i, e) {
|
|
|
80639
80639
|
t = !0, s = !0, r.isProcessing || i(v);
|
|
80640
80640
|
};
|
|
80641
80641
|
return { schedule: $h.reduce((x, T) => {
|
|
80642
|
-
const
|
|
80643
|
-
return x[T] = (
|
|
80642
|
+
const A = a[T];
|
|
80643
|
+
return x[T] = (L, D = !1, V = !1) => (t || m(), A.schedule(L, D, V)), x;
|
|
80644
80644
|
}, {}), cancel: (x) => {
|
|
80645
80645
|
for (let T = 0; T < $h.length; T++)
|
|
80646
80646
|
a[$h[T]].cancel(x);
|
|
@@ -81003,53 +81003,53 @@ function Uc(i = Jt.visualDuration, e = Jt.bounce) {
|
|
|
81003
81003
|
velocity: -/* @__PURE__ */ Hi(t.velocity || 0)
|
|
81004
81004
|
}), y = d || 0, v = u / (2 * Math.sqrt(l * h)), m = a - n, g = /* @__PURE__ */ Hi(Math.sqrt(l / h)), b = Math.abs(m) < 5;
|
|
81005
81005
|
s || (s = b ? Jt.restSpeed.granular : Jt.restSpeed.default), r || (r = b ? Jt.restDelta.granular : Jt.restDelta.default);
|
|
81006
|
-
let x, T,
|
|
81006
|
+
let x, T, A, L, D, V;
|
|
81007
81007
|
if (v < 1)
|
|
81008
|
-
|
|
81009
|
-
const q = Math.exp(-v * g *
|
|
81010
|
-
return a - q * (
|
|
81011
|
-
}, D = v * g *
|
|
81008
|
+
A = ng(g, v), L = (y + v * g * m) / A, x = (M) => {
|
|
81009
|
+
const q = Math.exp(-v * g * M);
|
|
81010
|
+
return a - q * (L * Math.sin(A * M) + m * Math.cos(A * M));
|
|
81011
|
+
}, D = v * g * L + m * A, V = v * g * m - L * A, T = (M) => Math.exp(-v * g * M) * (D * Math.sin(A * M) + V * Math.cos(A * M));
|
|
81012
81012
|
else if (v === 1) {
|
|
81013
81013
|
x = (q) => a - Math.exp(-g * q) * (m + (y + g * m) * q);
|
|
81014
|
-
const
|
|
81015
|
-
T = (q) => Math.exp(-g * q) * (g *
|
|
81014
|
+
const M = y + g * m;
|
|
81015
|
+
T = (q) => Math.exp(-g * q) * (g * M * q - y);
|
|
81016
81016
|
} else {
|
|
81017
|
-
const
|
|
81017
|
+
const M = g * Math.sqrt(v * v - 1);
|
|
81018
81018
|
x = (B) => {
|
|
81019
|
-
const H = Math.exp(-v * g * B), $ = Math.min(
|
|
81020
|
-
return a - H * ((y + v * g * m) * Math.sinh($) +
|
|
81019
|
+
const H = Math.exp(-v * g * B), $ = Math.min(M * B, 300);
|
|
81020
|
+
return a - H * ((y + v * g * m) * Math.sinh($) + M * m * Math.cosh($)) / M;
|
|
81021
81021
|
};
|
|
81022
|
-
const q = (y + v * g * m) /
|
|
81022
|
+
const q = (y + v * g * m) / M, Q = v * g * q - m * M, _ = v * g * m - q * M;
|
|
81023
81023
|
T = (B) => {
|
|
81024
|
-
const H = Math.exp(-v * g * B), $ = Math.min(
|
|
81025
|
-
return H * (Q * Math.sinh($) +
|
|
81024
|
+
const H = Math.exp(-v * g * B), $ = Math.min(M * B, 300);
|
|
81025
|
+
return H * (Q * Math.sinh($) + _ * Math.cosh($));
|
|
81026
81026
|
};
|
|
81027
81027
|
}
|
|
81028
|
-
const
|
|
81028
|
+
const I = {
|
|
81029
81029
|
calculatedDuration: f && c || null,
|
|
81030
|
-
velocity: (
|
|
81031
|
-
next: (
|
|
81030
|
+
velocity: (M) => /* @__PURE__ */ mi(T(M)),
|
|
81031
|
+
next: (M) => {
|
|
81032
81032
|
if (!f && v < 1) {
|
|
81033
|
-
const Q = Math.exp(-v * g *
|
|
81033
|
+
const Q = Math.exp(-v * g * M), _ = Math.sin(A * M), B = Math.cos(A * M), H = a - Q * (L * _ + m * B), $ = /* @__PURE__ */ mi(Q * (D * _ + V * B));
|
|
81034
81034
|
return o.done = Math.abs($) <= s && Math.abs(a - H) <= r, o.value = o.done ? a : H, o;
|
|
81035
81035
|
}
|
|
81036
|
-
const q = x(
|
|
81036
|
+
const q = x(M);
|
|
81037
81037
|
if (f)
|
|
81038
|
-
o.done =
|
|
81038
|
+
o.done = M >= c;
|
|
81039
81039
|
else {
|
|
81040
|
-
const Q = /* @__PURE__ */ mi(T(
|
|
81040
|
+
const Q = /* @__PURE__ */ mi(T(M));
|
|
81041
81041
|
o.done = Math.abs(Q) <= s && Math.abs(a - q) <= r;
|
|
81042
81042
|
}
|
|
81043
81043
|
return o.value = o.done ? a : q, o;
|
|
81044
81044
|
},
|
|
81045
81045
|
toString: () => {
|
|
81046
|
-
const
|
|
81047
|
-
return
|
|
81046
|
+
const M = Math.min(C0(I), Qc), q = k7((Q) => I.next(M * Q).value, M, 30);
|
|
81047
|
+
return M + "ms " + q;
|
|
81048
81048
|
},
|
|
81049
81049
|
toTransition: () => {
|
|
81050
81050
|
}
|
|
81051
81051
|
};
|
|
81052
|
-
return
|
|
81052
|
+
return I;
|
|
81053
81053
|
}
|
|
81054
81054
|
Uc.applyToOptions = (i) => {
|
|
81055
81055
|
const e = dge(i, 100, Uc);
|
|
@@ -81069,12 +81069,12 @@ function ag({ keyframes: i, velocity: e = 0, power: t = 0.8, timeConstant: s = 3
|
|
|
81069
81069
|
const m = c + v, g = a === void 0 ? m : a(m);
|
|
81070
81070
|
g !== m && (v = g - c);
|
|
81071
81071
|
const b = (V) => -v * Math.exp(-V / s), x = (V) => g + b(V), T = (V) => {
|
|
81072
|
-
const
|
|
81073
|
-
d.done = Math.abs(
|
|
81072
|
+
const I = b(V), M = x(V);
|
|
81073
|
+
d.done = Math.abs(I) <= u, d.value = d.done ? g : M;
|
|
81074
81074
|
};
|
|
81075
|
-
let
|
|
81075
|
+
let A, L;
|
|
81076
81076
|
const D = (V) => {
|
|
81077
|
-
f(d.value) && (
|
|
81077
|
+
f(d.value) && (A = V, L = Uc({
|
|
81078
81078
|
keyframes: [d.value, y(d.value)],
|
|
81079
81079
|
velocity: O7(x, V, d.value),
|
|
81080
81080
|
// TODO: This should be passing * 1000
|
|
@@ -81087,8 +81087,8 @@ function ag({ keyframes: i, velocity: e = 0, power: t = 0.8, timeConstant: s = 3
|
|
|
81087
81087
|
return D(0), {
|
|
81088
81088
|
calculatedDuration: null,
|
|
81089
81089
|
next: (V) => {
|
|
81090
|
-
let
|
|
81091
|
-
return !
|
|
81090
|
+
let I = !1;
|
|
81091
|
+
return !L && A === void 0 && (I = !0, T(V), D(V)), A !== void 0 && V >= A ? L.next(V - A) : (!I && T(V), d);
|
|
81092
81092
|
}
|
|
81093
81093
|
};
|
|
81094
81094
|
}
|
|
@@ -81240,15 +81240,15 @@ class zc extends b0 {
|
|
|
81240
81240
|
let x = this.currentTime, T = s;
|
|
81241
81241
|
if (c) {
|
|
81242
81242
|
const V = Math.min(this.currentTime, r) / o;
|
|
81243
|
-
let
|
|
81244
|
-
!
|
|
81243
|
+
let I = Math.floor(V), M = V % 1;
|
|
81244
|
+
!M && V >= 1 && (M = 1), M === 1 && I--, I = Math.min(I, c + 1), !!(I % 2) && (d === "reverse" ? (M = 1 - M, f && (M -= f / o)) : d === "mirror" && (T = a)), x = qr(0, 1, M) * o;
|
|
81245
81245
|
}
|
|
81246
|
-
let
|
|
81247
|
-
b ? (this.delayState.value = h[0],
|
|
81248
|
-
let { done:
|
|
81249
|
-
!b && l !== null && (
|
|
81250
|
-
const D = this.holdTime === null && (this.state === "finished" || this.state === "running" &&
|
|
81251
|
-
return D && y !== ag && (
|
|
81246
|
+
let A;
|
|
81247
|
+
b ? (this.delayState.value = h[0], A = this.delayState) : A = T.next(x), n && !b && (A.value = n(A.value));
|
|
81248
|
+
let { done: L } = A;
|
|
81249
|
+
!b && l !== null && (L = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
|
|
81250
|
+
const D = this.holdTime === null && (this.state === "finished" || this.state === "running" && L);
|
|
81251
|
+
return D && y !== ag && (A.value = ip(h, this.options, m, this.speed)), v && v(A.value), D && this.finish(), A;
|
|
81252
81252
|
}
|
|
81253
81253
|
/**
|
|
81254
81254
|
* Allows the returned animation to be awaited or promise-chained. Currently
|
|
@@ -82273,8 +82273,8 @@ function X7(i, e, { delay: t = 0, transitionOverride: s, type: r } = {}) {
|
|
|
82273
82273
|
if (window.MotionHandoffAnimation) {
|
|
82274
82274
|
const T = Y7(i);
|
|
82275
82275
|
if (T) {
|
|
82276
|
-
const
|
|
82277
|
-
|
|
82276
|
+
const A = window.MotionHandoffAnimation(T, d, Rt);
|
|
82277
|
+
A !== null && (v.startTime = A, g = !0);
|
|
82278
82278
|
}
|
|
82279
82279
|
}
|
|
82280
82280
|
gg(i, d);
|
|
@@ -83445,15 +83445,15 @@ function V0e(i) {
|
|
|
83445
83445
|
const { props: h } = i, c = V4(i.parent) || {}, d = [], f = /* @__PURE__ */ new Set();
|
|
83446
83446
|
let y = {}, v = 1 / 0;
|
|
83447
83447
|
for (let g = 0; g < x0e; g++) {
|
|
83448
|
-
const b = w0e[g], x = t[b], T = h[b] !== void 0 ? h[b] : c[b],
|
|
83449
|
-
|
|
83450
|
-
let D = T === c[b] && T !== h[b] &&
|
|
83448
|
+
const b = w0e[g], x = t[b], T = h[b] !== void 0 ? h[b] : c[b], A = ou(T), L = b === u ? x.isActive : null;
|
|
83449
|
+
L === !1 && (v = g);
|
|
83450
|
+
let D = T === c[b] && T !== h[b] && A;
|
|
83451
83451
|
if (D && (s || r) && i.manuallyAnimateOnMount && (D = !1), x.protectedKeys = { ...y }, // If it isn't active and hasn't *just* been set as inactive
|
|
83452
|
-
!x.isActive &&
|
|
83452
|
+
!x.isActive && L === null || // If we didn't and don't have any defined prop for this animation type
|
|
83453
83453
|
!T && !x.prevProp || // Or if the prop doesn't define an animation
|
|
83454
83454
|
rp(T) || typeof T == "boolean")
|
|
83455
83455
|
continue;
|
|
83456
|
-
if (b === "exit" && x.isActive &&
|
|
83456
|
+
if (b === "exit" && x.isActive && L !== !0) {
|
|
83457
83457
|
x.prevResolvedValues && (y = {
|
|
83458
83458
|
...y,
|
|
83459
83459
|
...x.prevResolvedValues
|
|
@@ -83461,30 +83461,30 @@ function V0e(i) {
|
|
|
83461
83461
|
continue;
|
|
83462
83462
|
}
|
|
83463
83463
|
const V = S0e(x.prevProp, T);
|
|
83464
|
-
let
|
|
83465
|
-
b === u && x.isActive && !D &&
|
|
83466
|
-
g > v &&
|
|
83464
|
+
let I = V || // If we're making this variant active, we want to always make it active
|
|
83465
|
+
b === u && x.isActive && !D && A || // If we removed a higher-priority variant (i is in reverse order)
|
|
83466
|
+
g > v && A, M = !1;
|
|
83467
83467
|
const q = Array.isArray(T) ? T : [T];
|
|
83468
83468
|
let Q = q.reduce(n(b), {});
|
|
83469
|
-
|
|
83470
|
-
const { prevResolvedValues:
|
|
83471
|
-
...
|
|
83469
|
+
L === !1 && (Q = {});
|
|
83470
|
+
const { prevResolvedValues: _ = {} } = x, B = {
|
|
83471
|
+
..._,
|
|
83472
83472
|
...Q
|
|
83473
83473
|
}, H = (G) => {
|
|
83474
|
-
|
|
83474
|
+
I = !0, f.has(G) && (M = !0, f.delete(G)), x.needsAnimating[G] = !0;
|
|
83475
83475
|
const ne = i.getValue(G);
|
|
83476
83476
|
ne && (ne.liveStyle = !1);
|
|
83477
83477
|
};
|
|
83478
83478
|
for (const G in B) {
|
|
83479
|
-
const ne = Q[G], Y =
|
|
83479
|
+
const ne = Q[G], Y = _[G];
|
|
83480
83480
|
if (y.hasOwnProperty(G))
|
|
83481
83481
|
continue;
|
|
83482
83482
|
let oe = !1;
|
|
83483
83483
|
mg(ne) && mg(Y) ? oe = !S4(ne, Y) : oe = ne !== Y, oe ? ne != null ? H(G) : f.add(G) : ne !== void 0 && f.has(G) ? H(G) : x.protectedKeys[G] = !0;
|
|
83484
83484
|
}
|
|
83485
|
-
x.prevProp = T, x.prevResolvedValues = Q, x.isActive && (y = { ...y, ...Q }), (s || r) && i.blockInitialAnimation && (
|
|
83485
|
+
x.prevProp = T, x.prevResolvedValues = Q, x.isActive && (y = { ...y, ...Q }), (s || r) && i.blockInitialAnimation && (I = !1);
|
|
83486
83486
|
const $ = D && V;
|
|
83487
|
-
|
|
83487
|
+
I && (!$ || M) && d.push(...q.map((G) => {
|
|
83488
83488
|
const ne = { type: b };
|
|
83489
83489
|
if (typeof G == "string" && (s || r) && !$ && i.manuallyAnimateOnMount && i.parent) {
|
|
83490
83490
|
const { parent: Y } = i, oe = Oa(Y, G);
|
|
@@ -84097,8 +84097,8 @@ function D4({ attachResizeListener: i, defaultParent: e, measureScroll: t, check
|
|
|
84097
84097
|
this.animationProgress = 0;
|
|
84098
84098
|
let x;
|
|
84099
84099
|
this.mixTargetDelta = (T) => {
|
|
84100
|
-
const
|
|
84101
|
-
nx(c.x, a.x,
|
|
84100
|
+
const A = T / 1e3;
|
|
84101
|
+
nx(c.x, a.x, A), nx(c.y, a.y, A), this.setTargetDelta(c), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Gc(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), a1e(this.relativeTarget, this.relativeTargetOrigin, d, A), x && O0e(this.relativeTarget, x) && (this.isProjectionDirty = !1), x || (x = xs()), tr(x, this.relativeTarget)), v && (this.animationValues = h, F0e(h, u, this.latestValues, A, b, g)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = A;
|
|
84102
84102
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
84103
84103
|
}
|
|
84104
84104
|
startAnimation(a) {
|
|
@@ -84469,10 +84469,10 @@ function g1e({ children: i, isPresent: e, anchorX: t, anchorY: s, root: r, pop:
|
|
|
84469
84469
|
return;
|
|
84470
84470
|
const x = t === "left" ? `left: ${m}` : `right: ${g}`, T = s === "bottom" ? `bottom: ${b}` : `top: ${v}`;
|
|
84471
84471
|
o.current.dataset.motionPopId = a;
|
|
84472
|
-
const
|
|
84473
|
-
u && (
|
|
84474
|
-
const
|
|
84475
|
-
return
|
|
84472
|
+
const A = document.createElement("style");
|
|
84473
|
+
u && (A.nonce = u);
|
|
84474
|
+
const L = r ?? document.head;
|
|
84475
|
+
return L.appendChild(A), A.sheet && A.sheet.insertRule(`
|
|
84476
84476
|
[data-motion-pop-id="${a}"] {
|
|
84477
84477
|
position: absolute !important;
|
|
84478
84478
|
width: ${f}px !important;
|
|
@@ -84482,9 +84482,9 @@ function g1e({ children: i, isPresent: e, anchorX: t, anchorY: s, root: r, pop:
|
|
|
84482
84482
|
}
|
|
84483
84483
|
`), () => {
|
|
84484
84484
|
var D;
|
|
84485
|
-
(D = o.current) == null || D.removeAttribute("data-motion-pop-id"),
|
|
84485
|
+
(D = o.current) == null || D.removeAttribute("data-motion-pop-id"), L.contains(A) && L.removeChild(A);
|
|
84486
84486
|
};
|
|
84487
|
-
}, [e]),
|
|
84487
|
+
}, [e]), R.jsx(m1e, { isPresent: e, childRef: o, sizeRef: l, pop: n, children: n === !1 ? i : p.cloneElement(i, { ref: c }) });
|
|
84488
84488
|
}
|
|
84489
84489
|
const v1e = ({ children: i, initial: e, isPresent: t, onExitComplete: s, custom: r, presenceAffectsLayout: n, mode: a, anchorX: o, anchorY: l, root: u }) => {
|
|
84490
84490
|
const h = l0(y1e), c = Ig();
|
|
@@ -84506,7 +84506,7 @@ const v1e = ({ children: i, initial: e, isPresent: t, onExitComplete: s, custom:
|
|
|
84506
84506
|
h.forEach((y, v) => h.set(v, !1));
|
|
84507
84507
|
}, [t]), p.useEffect(() => {
|
|
84508
84508
|
!t && !h.size && s && s();
|
|
84509
|
-
}, [t]), i =
|
|
84509
|
+
}, [t]), i = R.jsx(g1e, { pop: a === "popLayout", isPresent: t, anchorX: o, anchorY: l, root: u, children: i }), R.jsx(sp.Provider, { value: f, children: i });
|
|
84510
84510
|
};
|
|
84511
84511
|
function y1e() {
|
|
84512
84512
|
return /* @__PURE__ */ new Map();
|
|
@@ -84531,39 +84531,39 @@ function dx(i) {
|
|
|
84531
84531
|
}), e;
|
|
84532
84532
|
}
|
|
84533
84533
|
const C1e = ({ children: i, custom: e, initial: t = !0, onExitComplete: s, presenceAffectsLayout: r = !0, mode: n = "sync", propagate: a = !1, anchorX: o = "left", anchorY: l = "top", root: u }) => {
|
|
84534
|
-
const [h, c] = M4(a), d = di(() => dx(i), [i]), f = a && !h ? [] : d.map(Qh), y = fe(!0), v = fe(d), m = l0(() => /* @__PURE__ */ new Map()), g = fe(/* @__PURE__ */ new Set()), [b, x] = rt(d), [T,
|
|
84534
|
+
const [h, c] = M4(a), d = di(() => dx(i), [i]), f = a && !h ? [] : d.map(Qh), y = fe(!0), v = fe(d), m = l0(() => /* @__PURE__ */ new Map()), g = fe(/* @__PURE__ */ new Set()), [b, x] = rt(d), [T, A] = rt(d);
|
|
84535
84535
|
u0(() => {
|
|
84536
84536
|
y.current = !1, v.current = d;
|
|
84537
84537
|
for (let V = 0; V < T.length; V++) {
|
|
84538
|
-
const
|
|
84539
|
-
f.includes(
|
|
84538
|
+
const I = Qh(T[V]);
|
|
84539
|
+
f.includes(I) ? (m.delete(I), g.current.delete(I)) : m.get(I) !== !0 && m.set(I, !1);
|
|
84540
84540
|
}
|
|
84541
84541
|
}, [T, f.length, f.join("-")]);
|
|
84542
|
-
const
|
|
84542
|
+
const L = [];
|
|
84543
84543
|
if (d !== b) {
|
|
84544
84544
|
let V = [...d];
|
|
84545
|
-
for (let
|
|
84546
|
-
const
|
|
84547
|
-
f.includes(q) || (V.splice(
|
|
84545
|
+
for (let I = 0; I < T.length; I++) {
|
|
84546
|
+
const M = T[I], q = Qh(M);
|
|
84547
|
+
f.includes(q) || (V.splice(I, 0, M), L.push(M));
|
|
84548
84548
|
}
|
|
84549
|
-
return n === "wait" &&
|
|
84549
|
+
return n === "wait" && L.length && (V = L), A(dx(V)), x(d), null;
|
|
84550
84550
|
}
|
|
84551
84551
|
process.env.NODE_ENV !== "production" && n === "wait" && T.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
84552
84552
|
const { forceRender: D } = fs(ru);
|
|
84553
|
-
return
|
|
84554
|
-
const
|
|
84555
|
-
if (g.current.has(
|
|
84553
|
+
return R.jsx(R.Fragment, { children: T.map((V) => {
|
|
84554
|
+
const I = Qh(V), M = a && !h ? !1 : d === T || f.includes(I), q = () => {
|
|
84555
|
+
if (g.current.has(I))
|
|
84556
84556
|
return;
|
|
84557
|
-
if (m.has(
|
|
84558
|
-
g.current.add(
|
|
84557
|
+
if (m.has(I))
|
|
84558
|
+
g.current.add(I), m.set(I, !0);
|
|
84559
84559
|
else
|
|
84560
84560
|
return;
|
|
84561
84561
|
let Q = !0;
|
|
84562
|
-
m.forEach((
|
|
84563
|
-
|
|
84564
|
-
}), Q && (D == null || D(),
|
|
84562
|
+
m.forEach((_) => {
|
|
84563
|
+
_ || (Q = !1);
|
|
84564
|
+
}), Q && (D == null || D(), A(v.current), a && (c == null || c()), s && s());
|
|
84565
84565
|
};
|
|
84566
|
-
return
|
|
84566
|
+
return R.jsx(v1e, { isPresent: M, initial: !y.current || t ? void 0 : !1, custom: e, presenceAffectsLayout: r, mode: n, root: u, onExitComplete: M ? void 0 : q, anchorX: o, anchorY: l, children: V }, I);
|
|
84567
84567
|
}) });
|
|
84568
84568
|
}, b1e = fn(null);
|
|
84569
84569
|
function w1e() {
|
|
@@ -84585,7 +84585,7 @@ const N4 = (i) => i === !0, E1e = (i) => N4(i === !0) || i === "id", V1e = ({ ch
|
|
|
84585
84585
|
group: N4(t) && s.group || hx()
|
|
84586
84586
|
});
|
|
84587
84587
|
const u = di(() => ({ ...o.current, forceRender: n }), [a]);
|
|
84588
|
-
return
|
|
84588
|
+
return R.jsx(ru.Provider, { value: u, children: i });
|
|
84589
84589
|
}, F4 = fn({ strict: !1 }), px = {
|
|
84590
84590
|
animation: [
|
|
84591
84591
|
"animate",
|
|
@@ -84888,8 +84888,8 @@ function U1e(i, e, t, s, r, n) {
|
|
|
84888
84888
|
f.current = !0, y && (m.current = !0, window.MotionIsMounted = !0, y.updateFeatures(), y.scheduleRenderMicrotask(), b.current && y.animationState && y.animationState.animateChanges());
|
|
84889
84889
|
}), lt(() => {
|
|
84890
84890
|
y && (!b.current && y.animationState && y.animationState.animateChanges(), b.current && (queueMicrotask(() => {
|
|
84891
|
-
var
|
|
84892
|
-
(
|
|
84891
|
+
var A;
|
|
84892
|
+
(A = window.MotionHandoffMarkAsComplete) == null || A.call(window, g);
|
|
84893
84893
|
}), b.current = !1), y.enteringChildren = void 0);
|
|
84894
84894
|
}), y;
|
|
84895
84895
|
}
|
|
@@ -84934,7 +84934,7 @@ function Gf(i, { forwardMotionProps: e = !1, type: t } = {}, s, r) {
|
|
|
84934
84934
|
const m = G1e(d);
|
|
84935
84935
|
c = m.MeasureLayout, y.visualElement = U1e(i, v, d, r, m.ProjectionNode, n);
|
|
84936
84936
|
}
|
|
84937
|
-
return
|
|
84937
|
+
return R.jsxs(ap.Provider, { value: y, children: [c && y.visualElement ? R.jsx(c, { visualElement: y.visualElement, ...d }) : null, N1e(i, u, Q1e(v, y.visualElement, h), v, f, e, n)] });
|
|
84938
84938
|
}
|
|
84939
84939
|
o.displayName = `motion.${typeof i == "string" ? i : `create(${i.displayName ?? i.name ?? ""})`}`;
|
|
84940
84940
|
const l = $x(o);
|
|
@@ -85598,7 +85598,7 @@ class vye extends RP {
|
|
|
85598
85598
|
}
|
|
85599
85599
|
function K4(i) {
|
|
85600
85600
|
const [e, t] = M4(), s = fs(ru);
|
|
85601
|
-
return
|
|
85601
|
+
return R.jsx(vye, { ...i, layoutGroup: s, switchLayoutGroup: fs(U4), isPresent: e, safeToRemove: t });
|
|
85602
85602
|
}
|
|
85603
85603
|
const yye = {
|
|
85604
85604
|
pan: {
|
|
@@ -85790,55 +85790,56 @@ const Z4 = fn({
|
|
|
85790
85790
|
fadeDuration: t = 0.3,
|
|
85791
85791
|
finishText: s = "Start",
|
|
85792
85792
|
containerClass: r,
|
|
85793
|
-
|
|
85794
|
-
|
|
85795
|
-
|
|
85793
|
+
animate: n = !1,
|
|
85794
|
+
nextKey: a = "ArrowRight",
|
|
85795
|
+
backKey: o = "ArrowLeft",
|
|
85796
|
+
theme: l = "light"
|
|
85796
85797
|
}) => {
|
|
85797
|
-
const [
|
|
85798
|
+
const [u, h] = rt(0), [c, d] = rt({}), f = fe(), y = fe({}), v = c[u] !== !1, m = fe(v), [g, b] = rt(!1);
|
|
85798
85799
|
lt(() => {
|
|
85799
|
-
if (
|
|
85800
|
-
|
|
85801
|
-
const
|
|
85802
|
-
return () => clearTimeout(
|
|
85803
|
-
}
|
|
85804
|
-
|
|
85805
|
-
}, [
|
|
85806
|
-
const
|
|
85807
|
-
(
|
|
85808
|
-
|
|
85800
|
+
if (v && !m.current) {
|
|
85801
|
+
b(!0);
|
|
85802
|
+
const I = setTimeout(() => b(!1), 300);
|
|
85803
|
+
return () => clearTimeout(I);
|
|
85804
|
+
}
|
|
85805
|
+
m.current = v;
|
|
85806
|
+
}, [v]);
|
|
85807
|
+
const x = Xe(
|
|
85808
|
+
(I) => {
|
|
85809
|
+
d((M) => ({ ...M, [u]: I }));
|
|
85809
85810
|
},
|
|
85810
|
-
[
|
|
85811
|
-
),
|
|
85812
|
-
(
|
|
85813
|
-
|
|
85811
|
+
[u]
|
|
85812
|
+
), T = Xe(
|
|
85813
|
+
(I) => {
|
|
85814
|
+
y.current[u] = { ...y.current[u], ...I };
|
|
85814
85815
|
},
|
|
85815
|
-
[
|
|
85816
|
-
),
|
|
85817
|
-
|
|
85818
|
-
}, [
|
|
85819
|
-
|
|
85820
|
-
}, [
|
|
85821
|
-
(
|
|
85822
|
-
|
|
85816
|
+
[u]
|
|
85817
|
+
), A = Xe(() => {
|
|
85818
|
+
u === e.length - 1 ? i({ slides: y.current }) : h((I) => I + 1);
|
|
85819
|
+
}, [u, e.length, i]), L = Xe(() => {
|
|
85820
|
+
v && A();
|
|
85821
|
+
}, [v, A]), D = Xe(
|
|
85822
|
+
(I = 0) => {
|
|
85823
|
+
f.current && clearTimeout(f.current), f.current = setTimeout(() => A(), I);
|
|
85823
85824
|
},
|
|
85824
|
-
[
|
|
85825
|
+
[A]
|
|
85825
85826
|
);
|
|
85826
85827
|
lt(() => () => {
|
|
85827
|
-
|
|
85828
|
+
f.current && clearTimeout(f.current);
|
|
85828
85829
|
}, []);
|
|
85829
|
-
const
|
|
85830
|
-
|
|
85831
|
-
}, [
|
|
85830
|
+
const V = Xe(() => {
|
|
85831
|
+
u > 0 && h((I) => I - 1);
|
|
85832
|
+
}, [u]);
|
|
85832
85833
|
return lt(() => {
|
|
85833
|
-
if (
|
|
85834
|
-
const
|
|
85835
|
-
|
|
85834
|
+
if (a === !1 && o === !1) return;
|
|
85835
|
+
const I = (M) => {
|
|
85836
|
+
a && M.key === a && L(), o && M.key === o && V();
|
|
85836
85837
|
};
|
|
85837
|
-
return window.addEventListener("keydown",
|
|
85838
|
-
}, [
|
|
85838
|
+
return window.addEventListener("keydown", I), () => window.removeEventListener("keydown", I);
|
|
85839
|
+
}, [a, o, L, V]), /* @__PURE__ */ R.jsx(V1e, { children: /* @__PURE__ */ R.jsxs(
|
|
85839
85840
|
"div",
|
|
85840
85841
|
{
|
|
85841
|
-
className: r
|
|
85842
|
+
className: `${r ?? ""} ${n ? "animate-slide-down opacity-0" : ""}`,
|
|
85842
85843
|
style: {
|
|
85843
85844
|
width: "100vw",
|
|
85844
85845
|
height: "100vh",
|
|
@@ -85847,7 +85848,7 @@ const Z4 = fn({
|
|
|
85847
85848
|
overflow: "hidden"
|
|
85848
85849
|
},
|
|
85849
85850
|
children: [
|
|
85850
|
-
/* @__PURE__ */
|
|
85851
|
+
/* @__PURE__ */ R.jsx("div", { style: { flex: 1, position: "relative" }, children: /* @__PURE__ */ R.jsx(C1e, { mode: "popLayout", children: /* @__PURE__ */ R.jsx(
|
|
85851
85852
|
Tx.div,
|
|
85852
85853
|
{
|
|
85853
85854
|
initial: { opacity: 0 },
|
|
@@ -85861,11 +85862,11 @@ const Z4 = fn({
|
|
|
85861
85862
|
alignItems: "center",
|
|
85862
85863
|
justifyContent: "center"
|
|
85863
85864
|
},
|
|
85864
|
-
children: /* @__PURE__ */
|
|
85865
|
+
children: /* @__PURE__ */ R.jsx(Z4.Provider, { value: { setCanProgress: x, autoAdvance: D, setSlideData: T }, children: e[u] })
|
|
85865
85866
|
},
|
|
85866
|
-
|
|
85867
|
+
u
|
|
85867
85868
|
) }) }),
|
|
85868
|
-
/* @__PURE__ */
|
|
85869
|
+
/* @__PURE__ */ R.jsxs(
|
|
85869
85870
|
"div",
|
|
85870
85871
|
{
|
|
85871
85872
|
style: {
|
|
@@ -85875,44 +85876,44 @@ const Z4 = fn({
|
|
|
85875
85876
|
alignItems: "center"
|
|
85876
85877
|
},
|
|
85877
85878
|
children: [
|
|
85878
|
-
/* @__PURE__ */
|
|
85879
|
+
/* @__PURE__ */ R.jsx("div", { style: { justifySelf: "end", marginRight: "1rem" }, children: /* @__PURE__ */ R.jsx(
|
|
85879
85880
|
"button",
|
|
85880
85881
|
{
|
|
85881
|
-
onClick:
|
|
85882
|
+
onClick: V,
|
|
85882
85883
|
className: Px,
|
|
85883
85884
|
tabIndex: -1,
|
|
85884
|
-
onKeyDown: (
|
|
85885
|
-
(
|
|
85885
|
+
onKeyDown: (I) => {
|
|
85886
|
+
(I.key === " " || I.key === "Enter") && I.preventDefault();
|
|
85886
85887
|
},
|
|
85887
|
-
style: { visibility:
|
|
85888
|
+
style: { visibility: u > 0 ? "visible" : "hidden" },
|
|
85888
85889
|
children: "←"
|
|
85889
85890
|
}
|
|
85890
85891
|
) }),
|
|
85891
|
-
/* @__PURE__ */
|
|
85892
|
+
/* @__PURE__ */ R.jsx("div", { style: { display: "flex", gap: 6 }, children: e.map((I, M) => /* @__PURE__ */ R.jsx(
|
|
85892
85893
|
"div",
|
|
85893
85894
|
{
|
|
85894
85895
|
style: {
|
|
85895
85896
|
width: 8,
|
|
85896
85897
|
height: 8,
|
|
85897
85898
|
borderRadius: "50%",
|
|
85898
|
-
backgroundColor:
|
|
85899
|
+
backgroundColor: M === u ? l === "dark" ? "#fff" : "#000" : l === "dark" ? "rgba(255,255,255,0.3)" : "rgba(0,0,0,0.2)",
|
|
85899
85900
|
transition: "background-color 0.2s"
|
|
85900
85901
|
}
|
|
85901
85902
|
},
|
|
85902
|
-
|
|
85903
|
+
M
|
|
85903
85904
|
)) }),
|
|
85904
|
-
/* @__PURE__ */
|
|
85905
|
+
/* @__PURE__ */ R.jsx("div", { style: { justifySelf: "start", marginLeft: "1rem" }, children: /* @__PURE__ */ R.jsx(
|
|
85905
85906
|
Tx.button,
|
|
85906
85907
|
{
|
|
85907
|
-
onClick:
|
|
85908
|
+
onClick: L,
|
|
85908
85909
|
tabIndex: -1,
|
|
85909
|
-
onKeyDown: (
|
|
85910
|
-
(
|
|
85910
|
+
onKeyDown: (I) => {
|
|
85911
|
+
(I.key === " " || I.key === "Enter") && I.preventDefault();
|
|
85911
85912
|
},
|
|
85912
|
-
animate: { scale:
|
|
85913
|
+
animate: { scale: g ? 1.2 : 1 },
|
|
85913
85914
|
transition: { type: "spring", stiffness: 500, damping: 15 },
|
|
85914
|
-
className: (
|
|
85915
|
-
children:
|
|
85915
|
+
className: (v ? Px : _ye) + (u === e.length - 1 ? " px-8" : ""),
|
|
85916
|
+
children: u === e.length - 1 ? s : "→"
|
|
85916
85917
|
}
|
|
85917
85918
|
) })
|
|
85918
85919
|
]
|
|
@@ -86015,9 +86016,9 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86015
86016
|
if (u !== void 0 && h !== void 0) {
|
|
86016
86017
|
const c = u * u + h * h;
|
|
86017
86018
|
if (c > 1e-10) {
|
|
86018
|
-
const d = Math.sqrt(c), f = u / d, y = h / d, v = l.x - s, m = l.y - r, g = n * n, b = a * a, x = f * f / g + y * y / b, T = v * f / g + m * y / b,
|
|
86019
|
-
if (
|
|
86020
|
-
const D = (T + Math.sqrt(
|
|
86019
|
+
const d = Math.sqrt(c), f = u / d, y = h / d, v = l.x - s, m = l.y - r, g = n * n, b = a * a, x = f * f / g + y * y / b, T = v * f / g + m * y / b, A = v * v / g + m * m / b - 1, L = T * T - x * A;
|
|
86020
|
+
if (L >= 0) {
|
|
86021
|
+
const D = (T + Math.sqrt(L)) / x;
|
|
86021
86022
|
if (D > 0 && Number.isFinite(D))
|
|
86022
86023
|
return [l.x - f * D, l.y - y * D];
|
|
86023
86024
|
}
|
|
@@ -86063,8 +86064,8 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86063
86064
|
const c = Math.sqrt(u * u + h * h);
|
|
86064
86065
|
if (c < 1e-10)
|
|
86065
86066
|
return this.getOppositePositionSimple(l);
|
|
86066
|
-
const d = -u / c, f = -h / c, y = s - n, v = s + n, m = r - a, g = r + a, b = d !== 0 ? (y - l.x) / d : -1 / 0, x = d !== 0 ? (v - l.x) / d : -1 / 0, T = f !== 0 ? (m - l.y) / f : -1 / 0,
|
|
86067
|
-
return D > 0 &&
|
|
86067
|
+
const d = -u / c, f = -h / c, y = s - n, v = s + n, m = r - a, g = r + a, b = d !== 0 ? (y - l.x) / d : -1 / 0, x = d !== 0 ? (v - l.x) / d : -1 / 0, T = f !== 0 ? (m - l.y) / f : -1 / 0, A = f !== 0 ? (g - l.y) / f : -1 / 0, L = Math.max(Math.min(b, x), Math.min(T, A)), D = Math.min(Math.max(b, x), Math.max(T, A));
|
|
86068
|
+
return D > 0 && L <= D && Number.isFinite(D) ? [l.x + d * D, l.y + f * D] : this.getOppositePositionSimple(l);
|
|
86068
86069
|
},
|
|
86069
86070
|
getOppositePositionSimple(l) {
|
|
86070
86071
|
const u = s - n, h = s + n, c = r - a, d = r + a;
|
|
@@ -86161,15 +86162,15 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86161
86162
|
apertureWidth: b,
|
|
86162
86163
|
apertureHeight: x,
|
|
86163
86164
|
apertureCenterX: T,
|
|
86164
|
-
apertureCenterY:
|
|
86165
|
-
reinsertMode:
|
|
86165
|
+
apertureCenterY: A,
|
|
86166
|
+
reinsertMode: L,
|
|
86166
86167
|
noiseMovement: D,
|
|
86167
86168
|
reassignEveryMs: V,
|
|
86168
|
-
showFixation:
|
|
86169
|
-
fixationWidth:
|
|
86169
|
+
showFixation: I,
|
|
86170
|
+
fixationWidth: M,
|
|
86170
86171
|
fixationHeight: q,
|
|
86171
86172
|
fixationColor: Q,
|
|
86172
|
-
fixationThickness:
|
|
86173
|
+
fixationThickness: _,
|
|
86173
86174
|
showBorder: B,
|
|
86174
86175
|
borderWidth: H,
|
|
86175
86176
|
borderColor: $,
|
|
@@ -86177,7 +86178,7 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86177
86178
|
initialRefreshRate: G,
|
|
86178
86179
|
style: ne,
|
|
86179
86180
|
className: Y
|
|
86180
|
-
} = { ...xr, ...i }, oe = fe(null), re = fe(), ue = fe(), Ie = fe(), ge = fe(0), te = fe(0), we = fe([]), et = fe(null), Yt = fe(!1), Gt = T ?? t / 2, Is =
|
|
86181
|
+
} = { ...xr, ...i }, oe = fe(null), re = fe(), ue = fe(), Ie = fe(), ge = fe(0), te = fe(0), we = fe([]), et = fe(null), Yt = fe(!1), Gt = T ?? t / 2, Is = A ?? s / 2, Et = di(
|
|
86181
86182
|
() => Mye(
|
|
86182
86183
|
g,
|
|
86183
86184
|
b,
|
|
@@ -86221,19 +86222,19 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86221
86222
|
[y, v, d, f]
|
|
86222
86223
|
), Mt = Xe(
|
|
86223
86224
|
(_e, Ge, Te) => {
|
|
86224
|
-
|
|
86225
|
-
Ge -
|
|
86226
|
-
Te -
|
|
86227
|
-
|
|
86228
|
-
|
|
86225
|
+
I && (_e.fillStyle = Q, _e.fillRect(
|
|
86226
|
+
Ge - M,
|
|
86227
|
+
Te - _ / 2,
|
|
86228
|
+
M * 2,
|
|
86229
|
+
_
|
|
86229
86230
|
), _e.fillRect(
|
|
86230
|
-
Ge -
|
|
86231
|
+
Ge - _ / 2,
|
|
86231
86232
|
Te - q,
|
|
86232
|
-
|
|
86233
|
+
_,
|
|
86233
86234
|
q * 2
|
|
86234
86235
|
));
|
|
86235
86236
|
},
|
|
86236
|
-
[
|
|
86237
|
+
[I, Q, _, M, q]
|
|
86237
86238
|
), zt = Xe(
|
|
86238
86239
|
(_e) => {
|
|
86239
86240
|
B && Et.drawBorder(_e, $, H);
|
|
@@ -86275,7 +86276,7 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86275
86276
|
ws,
|
|
86276
86277
|
h,
|
|
86277
86278
|
Et,
|
|
86278
|
-
|
|
86279
|
+
L,
|
|
86279
86280
|
d,
|
|
86280
86281
|
cs,
|
|
86281
86282
|
Di == null ? void 0 : Di[se]
|
|
@@ -86298,7 +86299,7 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86298
86299
|
u,
|
|
86299
86300
|
h,
|
|
86300
86301
|
Et,
|
|
86301
|
-
|
|
86302
|
+
L,
|
|
86302
86303
|
n,
|
|
86303
86304
|
d,
|
|
86304
86305
|
cs,
|
|
@@ -86318,7 +86319,7 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86318
86319
|
_e.width = t * Ge, _e.height = s * Ge, _e.style.width = `${t}px`, _e.style.height = `${s}px`;
|
|
86319
86320
|
const Te = _e.getContext("2d");
|
|
86320
86321
|
Te && Te.scale(Ge, Ge);
|
|
86321
|
-
}, [t, s]), /* @__PURE__ */
|
|
86322
|
+
}, [t, s]), /* @__PURE__ */ R.jsx(
|
|
86322
86323
|
"canvas",
|
|
86323
86324
|
{
|
|
86324
86325
|
ref: oe,
|
|
@@ -86349,15 +86350,15 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86349
86350
|
speed: b,
|
|
86350
86351
|
dotLifetime: x,
|
|
86351
86352
|
dotRadius: T,
|
|
86352
|
-
dotColor:
|
|
86353
|
-
backgroundColor:
|
|
86353
|
+
dotColor: A,
|
|
86354
|
+
backgroundColor: L,
|
|
86354
86355
|
apertureShape: D,
|
|
86355
86356
|
apertureWidth: V,
|
|
86356
|
-
apertureHeight:
|
|
86357
|
-
reinsertMode:
|
|
86357
|
+
apertureHeight: I,
|
|
86358
|
+
reinsertMode: M,
|
|
86358
86359
|
noiseMovement: q,
|
|
86359
86360
|
showFixation: Q,
|
|
86360
|
-
fixationTime:
|
|
86361
|
+
fixationTime: _,
|
|
86361
86362
|
fixationWidth: B,
|
|
86362
86363
|
fixationHeight: H,
|
|
86363
86364
|
fixationColor: $,
|
|
@@ -86367,7 +86368,7 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86367
86368
|
borderColor: Y
|
|
86368
86369
|
} = { ...xr, ...i }, oe = fe(i);
|
|
86369
86370
|
oe.current = i;
|
|
86370
|
-
const re = fe(null), ue = fe(performance.now()), Ie = fe(!1), ge = fe(null), te = fe(null), [we, et] = rt(null), [Yt, Gt] = rt(
|
|
86371
|
+
const re = fe(null), ue = fe(performance.now()), Ie = fe(!1), ge = fe(null), te = fe(null), [we, et] = rt(null), [Yt, Gt] = rt(_ <= 0), [Is, Et] = rt(!0), cs = e == null ? void 0 : e._reactiveScreenRefreshRate, rs = Xe((Le, st) => {
|
|
86371
86372
|
var bs;
|
|
86372
86373
|
if (Ie.current) return;
|
|
86373
86374
|
Ie.current = !0;
|
|
@@ -86383,21 +86384,21 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86383
86384
|
});
|
|
86384
86385
|
}, []);
|
|
86385
86386
|
return lt(() => {
|
|
86386
|
-
if (
|
|
86387
|
-
const Le = setTimeout(() => Gt(!0),
|
|
86387
|
+
if (_ <= 0) return;
|
|
86388
|
+
const Le = setTimeout(() => Gt(!0), _);
|
|
86388
86389
|
return () => clearTimeout(Le);
|
|
86389
|
-
}, [
|
|
86390
|
+
}, [_]), lt(() => {
|
|
86390
86391
|
const Le = t ?? c;
|
|
86391
86392
|
if (Le <= 0) return;
|
|
86392
|
-
const st = setTimeout(() => Et(!1),
|
|
86393
|
+
const st = setTimeout(() => Et(!1), _ + Le);
|
|
86393
86394
|
return () => clearTimeout(st);
|
|
86394
|
-
}, [
|
|
86395
|
+
}, [_, t, c]), lt(() => {
|
|
86395
86396
|
if (c <= 0) return;
|
|
86396
86397
|
const Le = setTimeout(() => {
|
|
86397
86398
|
rs(ge.current, te.current);
|
|
86398
|
-
},
|
|
86399
|
+
}, _ + c);
|
|
86399
86400
|
return () => clearTimeout(Le);
|
|
86400
|
-
}, [
|
|
86401
|
+
}, [_, c, rs]), lt(() => {
|
|
86401
86402
|
const Le = (st) => {
|
|
86402
86403
|
if (Ie.current || ge.current) return;
|
|
86403
86404
|
const Mt = st.key.toLowerCase(), zt = h.length > 0 ? h.map((Ct) => Ct.toLowerCase()) : null;
|
|
@@ -86407,8 +86408,8 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86407
86408
|
}
|
|
86408
86409
|
};
|
|
86409
86410
|
return window.addEventListener("keydown", Le), () => window.removeEventListener("keydown", Le);
|
|
86410
|
-
}, [h, d, rs]), /* @__PURE__ */
|
|
86411
|
-
/* @__PURE__ */
|
|
86411
|
+
}, [h, d, rs]), /* @__PURE__ */ R.jsxs("div", { style: { width: "100vw", height: "100vh", overflow: "hidden", margin: 0, padding: 0, backgroundColor: L }, children: [
|
|
86412
|
+
/* @__PURE__ */ R.jsx(
|
|
86412
86413
|
qye,
|
|
86413
86414
|
{
|
|
86414
86415
|
ref: re,
|
|
@@ -86426,15 +86427,15 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86426
86427
|
updateRate: s,
|
|
86427
86428
|
dotRadius: T,
|
|
86428
86429
|
dotCharacter: r,
|
|
86429
|
-
dotColor:
|
|
86430
|
+
dotColor: A,
|
|
86430
86431
|
coherentDotColor: n,
|
|
86431
|
-
backgroundColor:
|
|
86432
|
+
backgroundColor: L,
|
|
86432
86433
|
apertureShape: D,
|
|
86433
86434
|
apertureWidth: V,
|
|
86434
|
-
apertureHeight:
|
|
86435
|
+
apertureHeight: I,
|
|
86435
86436
|
apertureCenterX: a,
|
|
86436
86437
|
apertureCenterY: o,
|
|
86437
|
-
reinsertMode:
|
|
86438
|
+
reinsertMode: M,
|
|
86438
86439
|
noiseMovement: q,
|
|
86439
86440
|
reassignEveryMs: l,
|
|
86440
86441
|
showFixation: Q,
|
|
@@ -86447,7 +86448,7 @@ const kye = 10, Ix = 0.1, Oye = (i, e, t, s) => {
|
|
|
86447
86448
|
borderColor: Y
|
|
86448
86449
|
}
|
|
86449
86450
|
),
|
|
86450
|
-
u && !Is && !we && /* @__PURE__ */
|
|
86451
|
+
u && !Is && !we && /* @__PURE__ */ R.jsx(
|
|
86451
86452
|
"div",
|
|
86452
86453
|
{
|
|
86453
86454
|
style: {
|
|
@@ -86496,7 +86497,7 @@ function pCe({
|
|
|
86496
86497
|
const q = {}, Q = new URLSearchParams(window.location.search);
|
|
86497
86498
|
for (const [$, j] of Q.entries())
|
|
86498
86499
|
q[$] = j;
|
|
86499
|
-
const
|
|
86500
|
+
const _ = Cc.getRegistry() || [], B = {};
|
|
86500
86501
|
for (const [$, j] of Object.entries(q))
|
|
86501
86502
|
B[$] = {
|
|
86502
86503
|
value: j,
|
|
@@ -86505,7 +86506,7 @@ function pCe({
|
|
|
86505
86506
|
type: void 0,
|
|
86506
86507
|
description: void 0
|
|
86507
86508
|
};
|
|
86508
|
-
for (const $ of
|
|
86509
|
+
for (const $ of _)
|
|
86509
86510
|
B[$.name] = {
|
|
86510
86511
|
value: $.value !== void 0 ? $.value : q[$.name],
|
|
86511
86512
|
registered: !0,
|
|
@@ -86546,8 +86547,8 @@ function pCe({
|
|
|
86546
86547
|
function T(q) {
|
|
86547
86548
|
c.current = { ...c.current, ...q };
|
|
86548
86549
|
}
|
|
86549
|
-
function
|
|
86550
|
-
const B = Qs(), H = a.instructions[d], $ = Q !== void 0 ? Q : h.current, j =
|
|
86550
|
+
function A(q, Q, _) {
|
|
86551
|
+
const B = Qs(), H = a.instructions[d], $ = Q !== void 0 ? Q : h.current, j = _ !== void 0 ? _ : B;
|
|
86551
86552
|
if ((H == null ? void 0 : H.type) === "ExecuteContent") {
|
|
86552
86553
|
const ne = H.content;
|
|
86553
86554
|
if (Xf(ne)) {
|
|
@@ -86578,34 +86579,34 @@ function pCe({
|
|
|
86578
86579
|
);
|
|
86579
86580
|
G < a.instructions.length && (h.current = Qs()), f(G);
|
|
86580
86581
|
}
|
|
86581
|
-
const
|
|
86582
|
+
const L = Xe((q) => {
|
|
86582
86583
|
let Q = 0;
|
|
86583
|
-
const
|
|
86584
|
-
let H, $ =
|
|
86584
|
+
const _ = Qs(), B = 2e4;
|
|
86585
|
+
let H, $ = _;
|
|
86585
86586
|
const j = 1e3, G = () => {
|
|
86586
|
-
const re = Qs() -
|
|
86587
|
+
const re = Qs() - _;
|
|
86587
86588
|
return re > 0 ? Math.round(Q * 1e3 / re) : null;
|
|
86588
86589
|
}, ne = () => {
|
|
86589
86590
|
H && cancelAnimationFrame(H);
|
|
86590
86591
|
}, Y = (oe) => {
|
|
86591
86592
|
Q++;
|
|
86592
|
-
const re = oe -
|
|
86593
|
+
const re = oe - _;
|
|
86593
86594
|
oe - $ >= j && (q(G()), $ = oe), re < B ? H = requestAnimationFrame(Y) : (ne(), q(G()));
|
|
86594
86595
|
};
|
|
86595
86596
|
return H = requestAnimationFrame(Y), ne;
|
|
86596
86597
|
}, []), D = ({ children: q, collectRefreshRate: Q }) => {
|
|
86597
|
-
const
|
|
86598
|
+
const _ = fe(null), B = fe(null);
|
|
86598
86599
|
lt(() => {
|
|
86599
|
-
if (
|
|
86600
|
-
return
|
|
86600
|
+
if (_.current = Qs(), Q)
|
|
86601
|
+
return L((j) => {
|
|
86601
86602
|
B.current = j, T({ _reactiveScreenRefreshRate: j });
|
|
86602
86603
|
});
|
|
86603
86604
|
}, []);
|
|
86604
86605
|
const H = Ze.Children.map(q, ($) => {
|
|
86605
86606
|
if (Ze.isValidElement($)) {
|
|
86606
86607
|
const j = (G, ne, Y) => {
|
|
86607
|
-
const oe = Qs(), re = ne !== void 0 ? ne :
|
|
86608
|
-
|
|
86608
|
+
const oe = Qs(), re = ne !== void 0 ? ne : _.current;
|
|
86609
|
+
A(G, re ?? void 0, (Y !== void 0 ? Y : oe) ?? void 0);
|
|
86609
86610
|
};
|
|
86610
86611
|
return Ze.cloneElement($, {
|
|
86611
86612
|
...$.props,
|
|
@@ -86614,56 +86615,56 @@ function pCe({
|
|
|
86614
86615
|
}
|
|
86615
86616
|
return $;
|
|
86616
86617
|
});
|
|
86617
|
-
return /* @__PURE__ */
|
|
86618
|
-
}, V = a.instructions[d],
|
|
86618
|
+
return /* @__PURE__ */ R.jsx(R.Fragment, { children: H });
|
|
86619
|
+
}, V = a.instructions[d], I = di(() => {
|
|
86619
86620
|
if (y === "none" || (V == null ? void 0 : V.type) !== "ExecuteContent") return !1;
|
|
86620
86621
|
const q = V.content;
|
|
86621
86622
|
return !Xf(q) || q.simulate === !1 ? !1 : !!q.simulate || !!q.simulators;
|
|
86622
86623
|
}, [d, y, V]);
|
|
86623
86624
|
lt(() => {
|
|
86624
|
-
|
|
86625
|
-
const q = V.content, { trialProps: Q, simulateFn:
|
|
86625
|
+
I && m.current !== d && (m.current = d, (async () => {
|
|
86626
|
+
const q = V.content, { trialProps: Q, simulateFn: _, simulators: B } = wV(q, o.current, c.current), H = await _(
|
|
86626
86627
|
Q,
|
|
86627
86628
|
{ data: o.current, store: c.current },
|
|
86628
86629
|
B,
|
|
86629
86630
|
v.current
|
|
86630
86631
|
);
|
|
86631
|
-
v.current = H.participantState, H.storeUpdates && T(H.storeUpdates),
|
|
86632
|
+
v.current = H.participantState, H.storeUpdates && T(H.storeUpdates), A(H.responseData);
|
|
86632
86633
|
})());
|
|
86633
|
-
}, [
|
|
86634
|
-
let
|
|
86635
|
-
if ((V == null ? void 0 : V.type) === "ExecuteContent" && !
|
|
86634
|
+
}, [I, d]);
|
|
86635
|
+
let M = null;
|
|
86636
|
+
if ((V == null ? void 0 : V.type) === "ExecuteContent" && !I) {
|
|
86636
86637
|
const q = V.content;
|
|
86637
86638
|
if (Xf(q)) {
|
|
86638
86639
|
const Q = g[q.type];
|
|
86639
86640
|
if (Q) {
|
|
86640
|
-
const
|
|
86641
|
-
|
|
86641
|
+
const _ = typeof q.props == "function" ? q.props(o.current, c.current) : q.props || {};
|
|
86642
|
+
M = /* @__PURE__ */ R.jsx(D, { collectRefreshRate: q.collectRefreshRate, children: /* @__PURE__ */ R.jsx(
|
|
86642
86643
|
Q,
|
|
86643
86644
|
{
|
|
86644
|
-
next:
|
|
86645
|
+
next: A,
|
|
86645
86646
|
updateStore: T,
|
|
86646
86647
|
store: c.current,
|
|
86647
86648
|
data: o.current,
|
|
86648
86649
|
...q.type === "Quest" ? { customQuestions: b } : {},
|
|
86649
|
-
...
|
|
86650
|
+
..._
|
|
86650
86651
|
}
|
|
86651
86652
|
) }, d);
|
|
86652
86653
|
} else
|
|
86653
|
-
console.error(`No component found for type: ${q.type}`),
|
|
86654
|
+
console.error(`No component found for type: ${q.type}`), M = /* @__PURE__ */ R.jsxs("div", { children: [
|
|
86654
86655
|
'Error: Component type "',
|
|
86655
86656
|
q.type,
|
|
86656
86657
|
'" not found.'
|
|
86657
86658
|
] });
|
|
86658
86659
|
} else
|
|
86659
|
-
console.warn("ExecuteContent instruction does not contain standard component data:", q),
|
|
86660
|
-
} else d >= a.instructions.length && (
|
|
86661
|
-
return /* @__PURE__ */
|
|
86662
|
-
/* @__PURE__ */
|
|
86660
|
+
console.warn("ExecuteContent instruction does not contain standard component data:", q), M = /* @__PURE__ */ R.jsx("div", { children: "Non-component content encountered." });
|
|
86661
|
+
} else d >= a.instructions.length && (M = /* @__PURE__ */ R.jsx(R.Fragment, {}));
|
|
86662
|
+
return /* @__PURE__ */ R.jsxs("div", { className: "w-full h-full", children: [
|
|
86663
|
+
/* @__PURE__ */ R.jsx(
|
|
86663
86664
|
"div",
|
|
86664
86665
|
{
|
|
86665
86666
|
className: ` ${e.showProgressBar ? "" : "hidden "} px-4 mt-4 sm:mt-12 max-w-2xl mx-auto`,
|
|
86666
|
-
children: /* @__PURE__ */
|
|
86667
|
+
children: /* @__PURE__ */ R.jsx("div", { className: "flex-1 h-6 bg-gray-200 rounded-full overflow-hidden", children: /* @__PURE__ */ R.jsx(
|
|
86667
86668
|
"div",
|
|
86668
86669
|
{
|
|
86669
86670
|
className: `h-full bg-gray-200 rounded-full duration-300 ${x > 0 ? " border-black border-2" : ""}`,
|
|
@@ -86678,7 +86679,7 @@ function pCe({
|
|
|
86678
86679
|
) })
|
|
86679
86680
|
}
|
|
86680
86681
|
),
|
|
86681
|
-
|
|
86682
|
+
M
|
|
86682
86683
|
] });
|
|
86683
86684
|
}
|
|
86684
86685
|
export {
|