@fileverse-dev/ddoc 3.1.8 → 3.2.0
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/index.es.js +420 -424
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -167,7 +167,7 @@ function gne() {
|
|
|
167
167
|
function Q() {
|
|
168
168
|
}
|
|
169
169
|
Q.__reactDisabledLog = !0;
|
|
170
|
-
function
|
|
170
|
+
function ce() {
|
|
171
171
|
{
|
|
172
172
|
if (N === 0) {
|
|
173
173
|
j = console.log, L = console.info, P = console.warn, $ = console.error, H = console.group, z = console.groupCollapsed, R = console.groupEnd;
|
|
@@ -257,7 +257,7 @@ function gne() {
|
|
|
257
257
|
var zt = Error.prepareStackTrace;
|
|
258
258
|
Error.prepareStackTrace = void 0;
|
|
259
259
|
var rn;
|
|
260
|
-
rn = V.current, V.current = null,
|
|
260
|
+
rn = V.current, V.current = null, ce();
|
|
261
261
|
try {
|
|
262
262
|
if (Me) {
|
|
263
263
|
var Kt = function() {
|
|
@@ -352,7 +352,7 @@ function gne() {
|
|
|
352
352
|
return "";
|
|
353
353
|
}
|
|
354
354
|
var le = Object.prototype.hasOwnProperty, J = {}, G = b.ReactDebugCurrentFrame;
|
|
355
|
-
function
|
|
355
|
+
function ue(ye) {
|
|
356
356
|
if (ye) {
|
|
357
357
|
var Me = ye._owner, Je = ae(ye.type, ye._source, Me ? Me.type : null);
|
|
358
358
|
G.setExtraStackFrame(Je);
|
|
@@ -374,7 +374,7 @@ function gne() {
|
|
|
374
374
|
} catch (ot) {
|
|
375
375
|
Gt = ot;
|
|
376
376
|
}
|
|
377
|
-
Gt && !(Gt instanceof Error) && (
|
|
377
|
+
Gt && !(Gt instanceof Error) && (ue(zt), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ft || "React class", Je, Kt, typeof Gt), ue(null)), Gt instanceof Error && !(Gt.message in J) && (J[Gt.message] = !0, ue(zt), y("Failed %s type: %s", Je, Gt.message), ue(null));
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
}
|
|
@@ -18424,7 +18424,7 @@ function Gue(e, t, n, r, o, i, s, a, l, u, c, d, p, h, f, g, m, b, y) {
|
|
|
18424
18424
|
const se = Z.nodeName || "";
|
|
18425
18425
|
return D.includes(se);
|
|
18426
18426
|
}
|
|
18427
|
-
function
|
|
18427
|
+
function ce() {
|
|
18428
18428
|
return (f ? T : M)[$ ? "mouse" : "touch"];
|
|
18429
18429
|
}
|
|
18430
18430
|
function ee(Z, se) {
|
|
@@ -18444,8 +18444,8 @@ function Gue(e, t, n, r, o, i, s, a, l, u, c, d, p, h, f, g, m, b, y) {
|
|
|
18444
18444
|
le > g && (P = !0), u.useFriction(0.3).useDuration(0.75), a.start(), o.add(x(G)), Z.preventDefault();
|
|
18445
18445
|
}
|
|
18446
18446
|
function X(Z) {
|
|
18447
|
-
const O = c.byDistance(0, !1).index !== d.get(), ae = i.pointerUp(Z) *
|
|
18448
|
-
L = !1, j = !1, C.clear(), u.useDuration(G).useFriction(
|
|
18447
|
+
const O = c.byDistance(0, !1).index !== d.get(), ae = i.pointerUp(Z) * ce(), le = ee(x(ae), O), J = Hue(ae, le), G = _ - 10 * J, ue = b + J / 50;
|
|
18448
|
+
L = !1, j = !1, C.clear(), u.useDuration(G).useFriction(ue), l.distance(le, !f), $ = !1, p.emit("pointerUp");
|
|
18449
18449
|
}
|
|
18450
18450
|
function ie(Z) {
|
|
18451
18451
|
P && (Z.stopPropagation(), Z.preventDefault(), P = !1);
|
|
@@ -19085,12 +19085,12 @@ function gce(e, t, n, r, o, i, s) {
|
|
|
19085
19085
|
} = hce(T, A, M, n, j, o), z = fce(T, _, m, d, A, M, $, H, k), {
|
|
19086
19086
|
snaps: R,
|
|
19087
19087
|
snapsAligned: Q
|
|
19088
|
-
} = ice(T, E, A, M, z),
|
|
19088
|
+
} = ice(T, E, A, M, z), ce = -As(R) + As(P), {
|
|
19089
19089
|
snapsContained: ee,
|
|
19090
19090
|
scrollContainLimit: V
|
|
19091
|
-
} = tce(_,
|
|
19091
|
+
} = tce(_, ce, Q, y, k), Y = N ? ee : Q, {
|
|
19092
19092
|
limit: X
|
|
19093
|
-
} = nce(
|
|
19093
|
+
} = nce(ce, Y, d), ie = PP(dg(Y), c, d), S = ie.clone(), K = s1(n), Z = ({
|
|
19094
19094
|
dragHandler: me,
|
|
19095
19095
|
scrollBody: be,
|
|
19096
19096
|
scrollBounds: ke,
|
|
@@ -19119,7 +19119,7 @@ function gce(e, t, n, r, o, i, s) {
|
|
|
19119
19119
|
Re && We.stop();
|
|
19120
19120
|
const et = ke.get() * Qe + ge.get() * (1 - Qe);
|
|
19121
19121
|
Ce.set(et), rt && (Ae.loop(me.direction()), je.loop()), be.to(Ce.get()), Re && yt.emit("settle"), Tt || yt.emit("scroll");
|
|
19122
|
-
}, O = Vue(r, o, () => Z(ne), (me) => se(ne, me)), ae = 0.68, le = Y[ie.get()], J = n0(le), G = n0(le),
|
|
19122
|
+
}, O = Vue(r, o, () => Z(ne), (me) => se(ne, me)), ae = 0.68, le = Y[ie.get()], J = n0(le), G = n0(le), ue = n0(le), ve = n0(le), we = Que(J, ue, G, ve, p, ae), fe = ace(d, Y, ce, X, ve), de = lce(O, ie, S, we, fe, ve, s), oe = oce(X), he = l1(), I = pce(t, n, s, g), {
|
|
19123
19123
|
slideRegistry: q
|
|
19124
19124
|
} = sce(N, y, Y, V, z, K), te = uce(e, n, q, de, we, he, s, w), ne = {
|
|
19125
19125
|
ownerDocument: r,
|
|
@@ -19136,19 +19136,19 @@ function gce(e, t, n, r, o, i, s) {
|
|
|
19136
19136
|
indexPrevious: S,
|
|
19137
19137
|
limit: X,
|
|
19138
19138
|
location: J,
|
|
19139
|
-
offsetLocation:
|
|
19139
|
+
offsetLocation: ue,
|
|
19140
19140
|
previousLocation: G,
|
|
19141
19141
|
options: i,
|
|
19142
19142
|
resizeHandler: Jue(t, s, o, n, T, v, C),
|
|
19143
19143
|
scrollBody: we,
|
|
19144
|
-
scrollBounds: ece(X,
|
|
19145
|
-
scrollLooper: rce(
|
|
19144
|
+
scrollBounds: ece(X, ue, ve, we, B),
|
|
19145
|
+
scrollLooper: rce(ce, X, ue, [J, ue, G, ve]),
|
|
19146
19146
|
scrollProgress: oe,
|
|
19147
19147
|
scrollSnapList: Y.map(oe.get),
|
|
19148
19148
|
scrollSnaps: Y,
|
|
19149
19149
|
scrollTarget: fe,
|
|
19150
19150
|
scrollTo: de,
|
|
19151
|
-
slideLooper: cce(T, _,
|
|
19151
|
+
slideLooper: cce(T, _, ce, L, P, R, Y, ue, n),
|
|
19152
19152
|
slideFocus: te,
|
|
19153
19153
|
slidesHandler: dce(t, s, x),
|
|
19154
19154
|
slidesInView: I,
|
|
@@ -19324,7 +19324,7 @@ function yb(e, t, n) {
|
|
|
19324
19324
|
function Q() {
|
|
19325
19325
|
return b.slidesInView.get();
|
|
19326
19326
|
}
|
|
19327
|
-
function
|
|
19327
|
+
function ce() {
|
|
19328
19328
|
return b.slidesInView.get(!1);
|
|
19329
19329
|
}
|
|
19330
19330
|
function ee() {
|
|
@@ -19363,7 +19363,7 @@ function yb(e, t, n) {
|
|
|
19363
19363
|
selectedScrollSnap: z,
|
|
19364
19364
|
slideNodes: ie,
|
|
19365
19365
|
slidesInView: Q,
|
|
19366
|
-
slidesNotInView:
|
|
19366
|
+
slidesNotInView: ce
|
|
19367
19367
|
};
|
|
19368
19368
|
return M(t, n), setTimeout(() => l.emit("init"), 0), S;
|
|
19369
19369
|
}
|
|
@@ -27581,12 +27581,12 @@ var r0 = function(t, n, r) {
|
|
|
27581
27581
|
}
|
|
27582
27582
|
_.push(Fm), _.push(h4(a, h, i));
|
|
27583
27583
|
}
|
|
27584
|
-
var Q = o.havingBaseStyle(St.TEXT),
|
|
27584
|
+
var Q = o.havingBaseStyle(St.TEXT), ce = Se.makeVList({
|
|
27585
27585
|
positionType: "bottom",
|
|
27586
27586
|
positionData: T,
|
|
27587
27587
|
children: _
|
|
27588
27588
|
}, Q);
|
|
27589
|
-
return X8(Se.makeSpan(["delimsizing", "mult"], [
|
|
27589
|
+
return X8(Se.makeSpan(["delimsizing", "mult"], [ce], Q), St.TEXT, o, s);
|
|
27590
27590
|
}, g4 = 80, m4 = 0.08, b4 = function(t, n, r, o, i) {
|
|
27591
27591
|
var s = dde(t, o, r), a = new Gu(t, s), l = new kl([a], {
|
|
27592
27592
|
// Note: 1000:1 ratio of viewBox to document em width.
|
|
@@ -28281,10 +28281,10 @@ var Ma = function(t, n) {
|
|
|
28281
28281
|
unit: "ex"
|
|
28282
28282
|
}, n) : 12 * d, g = 3 * d, m = t.arraystretch * f, b = 0.7 * m, y = 0.3 * m, v = 0;
|
|
28283
28283
|
function x(G) {
|
|
28284
|
-
for (var
|
|
28285
|
-
|
|
28284
|
+
for (var ue = 0; ue < G.length; ++ue)
|
|
28285
|
+
ue > 0 && (v += 0.25), u.push({
|
|
28286
28286
|
pos: v,
|
|
28287
|
-
isDashed: G[
|
|
28287
|
+
isDashed: G[ue]
|
|
28288
28288
|
});
|
|
28289
28289
|
}
|
|
28290
28290
|
for (x(s[0]), r = 0; r < t.body.length; ++r) {
|
|
@@ -28317,8 +28317,8 @@ var Ma = function(t, n) {
|
|
|
28317
28317
|
) {
|
|
28318
28318
|
for (var R = B[j] || {}, Q = !0; R.type === "separator"; ) {
|
|
28319
28319
|
if (Q || (N = Se.makeSpan(["arraycolsep"], []), N.style.width = it(n.fontMetrics().doubleRuleSep), E.push(N)), R.separator === "|" || R.separator === ":") {
|
|
28320
|
-
var
|
|
28321
|
-
ee.style.height = it(v), ee.style.borderRightWidth = it(c), ee.style.borderRightStyle =
|
|
28320
|
+
var ce = R.separator === "|" ? "solid" : "dashed", ee = Se.makeSpan(["vertical-separator"], [], n);
|
|
28321
|
+
ee.style.height = it(v), ee.style.borderRightWidth = it(c), ee.style.borderRightStyle = ce, ee.style.margin = "0 " + it(-c / 2);
|
|
28322
28322
|
var V = v - _;
|
|
28323
28323
|
V && (ee.style.verticalAlign = it(-V)), E.push(ee);
|
|
28324
28324
|
} else
|
|
@@ -41799,7 +41799,7 @@ Ib.exports;
|
|
|
41799
41799
|
M && (A = C, C = null);
|
|
41800
41800
|
var T = A.navigator || {}, _ = T.userAgent || "";
|
|
41801
41801
|
C || (C = _);
|
|
41802
|
-
var B = M ? !!T.likeChrome : /\bChrome\b/.test(C) && !/internal|\n/i.test(d.toString()), E = "Object", N = M ? E : "ScriptBridgingProxyObject", j = M ? E : "Environment", L = M && A.java ? "JavaPackage" : b(A.java), P = M ? E : "RuntimeObject", $ = /\bJava/.test(L) && A.java, H = $ && b(A.environment) == j, z = $ ? "a" : "α", R = $ ? "b" : "β", Q = A.document || {},
|
|
41802
|
+
var B = M ? !!T.likeChrome : /\bChrome\b/.test(C) && !/internal|\n/i.test(d.toString()), E = "Object", N = M ? E : "ScriptBridgingProxyObject", j = M ? E : "Environment", L = M && A.java ? "JavaPackage" : b(A.java), P = M ? E : "RuntimeObject", $ = /\bJava/.test(L) && A.java, H = $ && b(A.environment) == j, z = $ ? "a" : "α", R = $ ? "b" : "β", Q = A.document || {}, ce = A.operamini || A.opera, ee = l.test(ee = M && ce ? ce["[[Class]]"] : b(ce)) ? ee : ce = null, V, Y = C, X = [], ie = null, S = C == _, K = S && ce && typeof ce.version == "function" && ce.version(), Z, se = G([
|
|
41803
41803
|
{ label: "EdgeHTML", pattern: "Edge" },
|
|
41804
41804
|
"Trident",
|
|
41805
41805
|
{ label: "WebKit", pattern: "AppleWebKit" },
|
|
@@ -41892,7 +41892,7 @@ Ib.exports;
|
|
|
41892
41892
|
"Xbox One",
|
|
41893
41893
|
{ label: "Xbox 360", pattern: "Xbox" },
|
|
41894
41894
|
"Xoom"
|
|
41895
|
-
]), le =
|
|
41895
|
+
]), le = ue({
|
|
41896
41896
|
Apple: { iPad: 1, iPhone: 1, iPod: 1 },
|
|
41897
41897
|
Alcatel: {},
|
|
41898
41898
|
Archos: {},
|
|
@@ -41952,7 +41952,7 @@ Ib.exports;
|
|
|
41952
41952
|
return q || RegExp("\\b" + (te.pattern || v(te)) + "\\b", "i").exec(C) && (te.label || te);
|
|
41953
41953
|
});
|
|
41954
41954
|
}
|
|
41955
|
-
function
|
|
41955
|
+
function ue(I) {
|
|
41956
41956
|
return x(I, function(q, te, ne) {
|
|
41957
41957
|
return q || (te[ae] || te[/^[a-z]+(?: +[a-z]+\b)*/i.exec(ae)] || RegExp("\\b" + v(ne) + "(?:\\b|\\w*\\d)", "i").exec(C)) && ne;
|
|
41958
41958
|
});
|
|
@@ -42014,7 +42014,7 @@ Ib.exports;
|
|
|
42014
42014
|
} catch {
|
|
42015
42015
|
X.unshift("embedded");
|
|
42016
42016
|
}
|
|
42017
|
-
else (/\bBlackBerry\b/.test(ae) || /\bBB10\b/.test(C)) && (V = (RegExp(ae.replace(/ +/g, " *") + "/([.\\d]+)", "i").exec(C) || 0)[1] || K) ? (V = [V, /BB10/.test(C)], J = (V[1] ? (ae = null, le = "BlackBerry") : "Device Software") + " " + V[0], K = null) : this != m && ae != "Wii" && (S &&
|
|
42017
|
+
else (/\bBlackBerry\b/.test(ae) || /\bBB10\b/.test(C)) && (V = (RegExp(ae.replace(/ +/g, " *") + "/([.\\d]+)", "i").exec(C) || 0)[1] || K) ? (V = [V, /BB10/.test(C)], J = (V[1] ? (ae = null, le = "BlackBerry") : "Device Software") + " " + V[0], K = null) : this != m && ae != "Wii" && (S && ce || /Opera/.test(O) && /\b(?:MSIE|Firefox)\b/i.test(C) || O == "Firefox" && /\bOS X (?:\d+\.){2,}/.test(J) || O == "IE" && (J && !/^Win/.test(J) && K > 5.5 || /\bWindows XP\b/.test(J) && K > 8 || K == 8 && !/\bTrident\b/.test(C))) && !l.test(V = w.call(m, C.replace(l, "") + ";")) && V.name && (V = "ing as " + V.name + ((V = V.version) ? " " + V : ""), l.test(O) ? (/\bIE\b/.test(V) && J == "Mac OS" && (J = null), V = "identify" + V) : (V = "mask" + V, ee ? O = g(ee.replace(/([a-z])([A-Z])/g, "$1 $2")) : O = "Opera", /\bIE\b/.test(V) && (J = null), S || (K = null)), se = ["Presto"], X.push(V));
|
|
42018
42018
|
(V = (/\bAppleWebKit\/([\d.]+\+?)/i.exec(C) || 0)[1]) && (V = [parseFloat(V.replace(/\.(\d)$/, ".0$1")), V], O == "Safari" && V[1].slice(-1) == "+" ? (O = "WebKit Nightly", ie = "alpha", K = V[1].slice(0, -1)) : (K == V[1] || K == (V[2] = (/\bSafari\/([\d.]+\+?)/i.exec(C) || 0)[1])) && (K = null), V[1] = (/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(C) || 0)[1], V[0] == 537.36 && V[2] == 537.36 && parseFloat(V[1]) >= 28 && se == "WebKit" && (se = ["Blink"]), !S || !B && !V[1] ? (se && (se[1] = "like Safari"), V = (V = V[0], V < 400 ? 1 : V < 500 ? 2 : V < 526 ? 3 : V < 533 ? 4 : V < 534 ? "4+" : V < 535 ? 5 : V < 537 ? 6 : V < 538 ? 7 : V < 601 ? 8 : V < 602 ? 9 : V < 604 ? 10 : V < 606 ? 11 : V < 608 ? 12 : "12")) : (se && (se[1] = "like Chrome"), V = V[1] || (V = V[0], V < 530 ? 1 : V < 532 ? 2 : V < 532.05 ? 3 : V < 533 ? 4 : V < 534.03 ? 5 : V < 534.07 ? 6 : V < 534.1 ? 7 : V < 534.13 ? 8 : V < 534.16 ? 9 : V < 534.24 ? 10 : V < 534.3 ? 11 : V < 535.01 ? 12 : V < 535.02 ? "13+" : V < 535.07 ? 15 : V < 535.11 ? 16 : V < 535.19 ? 17 : V < 536.05 ? 18 : V < 536.1 ? 19 : V < 537.01 ? 20 : V < 537.11 ? "21+" : V < 537.13 ? 23 : V < 537.18 ? 24 : V < 537.24 ? 25 : V < 537.36 ? 26 : se != "Blink" ? "27" : "28")), se && (se[1] += " " + (V += typeof V == "number" ? ".x" : /[.+]/.test(V) ? "" : "+")), O == "Safari" && (!K || parseInt(K) > 45) ? K = V : O == "Chrome" && /\bHeadlessChrome/i.test(C) && X.unshift("headless")), O == "Opera" && (V = /\bzbov|zvav$/.exec(J)) ? (O += " ", X.unshift("desktop mode"), V == "zvav" ? (O += "Mini", K = null) : O += "Mobile", J = J.replace(RegExp(" *" + V + "$"), "")) : O == "Safari" && /\bChrome\b/.exec(se && se[1]) ? (X.unshift("desktop mode"), O = "Chrome Mobile", K = null, /\bOS X\b/.test(J) ? (le = "Apple", J = "iOS 4.3+") : J = null) : /\bSRWare Iron\b/.test(O) && !K && (K = de("Chrome")), K && K.indexOf(V = /[\d.]+$/.exec(J)) == 0 && C.indexOf("/" + V + "-") > -1 && (J = D(J.replace(V, ""))), J && J.indexOf(O) != -1 && !RegExp(O + " OS").test(J) && (J = J.replace(RegExp(" *" + v(O) + " *"), "")), se && !/\b(?:Avant|Nook)\b/.test(O) && (/Browser|Lunascape|Maxthon/.test(O) || O != "Safari" && /^iOS/.test(J) && /\bSafari\b/.test(se[1]) || /^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(O) && se[1]) && (V = se[se.length - 1]) && X.push(V), X.length && (X = ["(" + X.join("; ") + ")"]), le && ae && ae.indexOf(le) < 0 && X.push("on " + le), ae && X.push((/^on /.test(X[X.length - 1]) ? "" : "on ") + ae), J && (V = / ([\d.+]+)$/.exec(J), Z = V && J.charAt(J.length - V[0].length - 1) == "/", J = {
|
|
42019
42019
|
architecture: 32,
|
|
42020
42020
|
family: V && !Z ? J.replace(V[0], "") : J,
|
|
@@ -43797,7 +43797,7 @@ const Qge = ({
|
|
|
43797
43797
|
isLoading: _ = !1,
|
|
43798
43798
|
isDDocOwner: B = !1
|
|
43799
43799
|
}) => {
|
|
43800
|
-
const E = Dt(() => Jge(), []), { isBelow1280px: N, isNativeMobile: j } = Ri(), L = !N && !j && !r, P = Be(null), $ = Be(/* @__PURE__ */ new Map()), [H, z] = Ne(() => /* @__PURE__ */ new Set()), [R, Q] = Ne(M),
|
|
43800
|
+
const E = Dt(() => Jge(), []), { isBelow1280px: N, isNativeMobile: j } = Ri(), L = !N && !j && !r, P = Be(null), $ = Be(/* @__PURE__ */ new Map()), [H, z] = Ne(() => /* @__PURE__ */ new Set()), [R, Q] = Ne(M), ce = Be(M), ee = Be(""), V = Be(null), Y = Be(null), X = Te(() => {
|
|
43801
43801
|
V.current !== null && (window.cancelAnimationFrame(V.current), V.current = null), Y.current !== null && (window.cancelAnimationFrame(
|
|
43802
43802
|
Y.current
|
|
43803
43803
|
), Y.current = null);
|
|
@@ -43825,7 +43825,7 @@ const Qge = ({
|
|
|
43825
43825
|
const fe = t && x ? x.current.filter(
|
|
43826
43826
|
(he) => !he.deleted && !!Ru(he, t.state)
|
|
43827
43827
|
).map((he) => he.id) : [], de = `${M}:${fe.join(",")}`;
|
|
43828
|
-
(de !== ee.current ||
|
|
43828
|
+
(de !== ee.current || ce.current !== M) && (ee.current = de, z(new Set(fe)), ce.current = M, Q(M));
|
|
43829
43829
|
}, [M, x, t]), K = Be({
|
|
43830
43830
|
editor: t,
|
|
43831
43831
|
ydoc: n,
|
|
@@ -43902,7 +43902,7 @@ const Qge = ({
|
|
|
43902
43902
|
}, [A, L, E]), _e(() => {
|
|
43903
43903
|
E.getState().setActiveTabId(M);
|
|
43904
43904
|
}, [M, E]), _e(() => {
|
|
43905
|
-
|
|
43905
|
+
ce.current = null, Q(null);
|
|
43906
43906
|
let fe = null;
|
|
43907
43907
|
const de = window.requestAnimationFrame(() => {
|
|
43908
43908
|
fe = window.requestAnimationFrame(() => {
|
|
@@ -44140,8 +44140,8 @@ const Qge = ({
|
|
|
44140
44140
|
o,
|
|
44141
44141
|
E
|
|
44142
44142
|
]);
|
|
44143
|
-
const O = Be(null), ae = Be(null), le = Be(null), J = Be(null), G = Be(null),
|
|
44144
|
-
Yh([le, J, G,
|
|
44143
|
+
const O = Be(null), ae = Be(null), le = Be(null), J = Be(null), G = Be(null), ue = Be(null);
|
|
44144
|
+
Yh([le, J, G, ue], () => {
|
|
44145
44145
|
const fe = E.getState(), de = fe.activeDraftId ? fe.inlineDrafts[fe.activeDraftId] ?? null : null;
|
|
44146
44146
|
(de == null ? void 0 : de.location) === "drawer" && fe.isCommentOpen || fe.isCommentOpen && (fe.setIsBubbleMenuSuppressed(!0), fe.setIsCommentOpen(!1));
|
|
44147
44147
|
});
|
|
@@ -44175,7 +44175,7 @@ const Qge = ({
|
|
|
44175
44175
|
portalRef: le,
|
|
44176
44176
|
buttonRef: J,
|
|
44177
44177
|
dropdownRef: G,
|
|
44178
|
-
mobileDraftRef:
|
|
44178
|
+
mobileDraftRef: ue
|
|
44179
44179
|
},
|
|
44180
44180
|
children: /* @__PURE__ */ F.jsx(LH.Provider, { value: we, children: e })
|
|
44181
44181
|
}
|
|
@@ -47471,7 +47471,7 @@ function hW() {
|
|
|
47471
47471
|
} = aj, z = null;
|
|
47472
47472
|
const R = on({}, [...rj, ...V4, ...K4, ...G4, ...oj]);
|
|
47473
47473
|
let Q = null;
|
|
47474
|
-
const
|
|
47474
|
+
const ce = on({}, [...ij, ...X4, ...sj, ...jm]);
|
|
47475
47475
|
let ee = Object.seal(iD(null, {
|
|
47476
47476
|
tagNameCheck: {
|
|
47477
47477
|
writable: !0,
|
|
@@ -47506,7 +47506,7 @@ function hW() {
|
|
|
47506
47506
|
value: null
|
|
47507
47507
|
}
|
|
47508
47508
|
}));
|
|
47509
|
-
let ie = !0, S = !0, K = !1, Z = !0, se = !1, O = !0, ae = !1, le = !1, J = !1, G = !1,
|
|
47509
|
+
let ie = !0, S = !0, K = !1, Z = !0, se = !1, O = !0, ae = !1, le = !1, J = !1, G = !1, ue = !1, ve = !1, we = !0, fe = !1;
|
|
47510
47510
|
const de = "user-content-";
|
|
47511
47511
|
let oe = !0, he = !1, I = {}, q = null;
|
|
47512
47512
|
const te = on({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
@@ -47527,7 +47527,7 @@ function hW() {
|
|
|
47527
47527
|
let De = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
47528
47528
|
if (!(et && et === De)) {
|
|
47529
47529
|
if ((!De || typeof De != "object") && (De = {}), De = nl(De), qe = // eslint-disable-next-line unicorn/prefer-includes
|
|
47530
|
-
lt.indexOf(De.PARSER_MEDIA_TYPE) === -1 ? Tt : De.PARSER_MEDIA_TYPE, Re = qe === "application/xhtml+xml" ? W4 : L2, z = bs(De, "ALLOWED_TAGS") ? on({}, De.ALLOWED_TAGS, Re) : R, Q = bs(De, "ALLOWED_ATTR") ? on({}, De.ALLOWED_ATTR, Re) :
|
|
47530
|
+
lt.indexOf(De.PARSER_MEDIA_TYPE) === -1 ? Tt : De.PARSER_MEDIA_TYPE, Re = qe === "application/xhtml+xml" ? W4 : L2, z = bs(De, "ALLOWED_TAGS") ? on({}, De.ALLOWED_TAGS, Re) : R, Q = bs(De, "ALLOWED_ATTR") ? on({}, De.ALLOWED_ATTR, Re) : ce, We = bs(De, "ALLOWED_NAMESPACES") ? on({}, De.ALLOWED_NAMESPACES, W4) : yt, be = bs(De, "ADD_URI_SAFE_ATTR") ? on(nl(ke), De.ADD_URI_SAFE_ATTR, Re) : ke, ne = bs(De, "ADD_DATA_URI_TAGS") ? on(nl(me), De.ADD_DATA_URI_TAGS, Re) : me, q = bs(De, "FORBID_CONTENTS") ? on({}, De.FORBID_CONTENTS, Re) : te, V = bs(De, "FORBID_TAGS") ? on({}, De.FORBID_TAGS, Re) : nl({}), Y = bs(De, "FORBID_ATTR") ? on({}, De.FORBID_ATTR, Re) : nl({}), I = bs(De, "USE_PROFILES") ? De.USE_PROFILES : !1, ie = De.ALLOW_ARIA_ATTR !== !1, S = De.ALLOW_DATA_ATTR !== !1, K = De.ALLOW_UNKNOWN_PROTOCOLS || !1, Z = De.ALLOW_SELF_CLOSE_IN_ATTR !== !1, se = De.SAFE_FOR_TEMPLATES || !1, O = De.SAFE_FOR_XML !== !1, ae = De.WHOLE_DOCUMENT || !1, G = De.RETURN_DOM || !1, ue = De.RETURN_DOM_FRAGMENT || !1, ve = De.RETURN_TRUSTED_TYPE || !1, J = De.FORCE_BODY || !1, we = De.SANITIZE_DOM !== !1, fe = De.SANITIZE_NAMED_PROPS || !1, oe = De.KEEP_CONTENT !== !1, he = De.IN_PLACE || !1, H = De.ALLOWED_URI_REGEXP || dW, je = De.NAMESPACE || Ae, dt = De.MATHML_TEXT_INTEGRATION_POINTS || dt, rt = De.HTML_INTEGRATION_POINTS || rt, ee = De.CUSTOM_ELEMENT_HANDLING || {}, De.CUSTOM_ELEMENT_HANDLING && xt(De.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ee.tagNameCheck = De.CUSTOM_ELEMENT_HANDLING.tagNameCheck), De.CUSTOM_ELEMENT_HANDLING && xt(De.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ee.attributeNameCheck = De.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), De.CUSTOM_ELEMENT_HANDLING && typeof De.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ee.allowCustomizedBuiltInElements = De.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), se && (S = !1), ue && (G = !0), I && (z = on({}, oj), Q = [], I.html === !0 && (on(z, rj), on(Q, ij)), I.svg === !0 && (on(z, V4), on(Q, X4), on(Q, jm)), I.svgFilters === !0 && (on(z, K4), on(Q, X4), on(Q, jm)), I.mathMl === !0 && (on(z, G4), on(Q, sj), on(Q, jm))), De.ADD_TAGS && (typeof De.ADD_TAGS == "function" ? X.tagCheck = De.ADD_TAGS : (z === R && (z = nl(z)), on(z, De.ADD_TAGS, Re))), De.ADD_ATTR && (typeof De.ADD_ATTR == "function" ? X.attributeCheck = De.ADD_ATTR : (Q === ce && (Q = nl(Q)), on(Q, De.ADD_ATTR, Re))), De.ADD_URI_SAFE_ATTR && on(be, De.ADD_URI_SAFE_ATTR, Re), De.FORBID_CONTENTS && (q === te && (q = nl(q)), on(q, De.FORBID_CONTENTS, Re)), oe && (z["#text"] = !0), ae && on(z, ["html", "head", "body"]), z.table && (on(z, ["tbody"]), delete V.tbody), De.TRUSTED_TYPES_POLICY) {
|
|
47531
47531
|
if (typeof De.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
47532
47532
|
throw Tf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
47533
47533
|
if (typeof De.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -47567,7 +47567,7 @@ function hW() {
|
|
|
47567
47567
|
});
|
|
47568
47568
|
}
|
|
47569
47569
|
if (Pe.removeAttribute(De), De === "is")
|
|
47570
|
-
if (G ||
|
|
47570
|
+
if (G || ue)
|
|
47571
47571
|
try {
|
|
47572
47572
|
Mt(Pe);
|
|
47573
47573
|
} catch {
|
|
@@ -47786,7 +47786,7 @@ function hW() {
|
|
|
47786
47786
|
if (he)
|
|
47787
47787
|
return ot;
|
|
47788
47788
|
if (G) {
|
|
47789
|
-
if (
|
|
47789
|
+
if (ue)
|
|
47790
47790
|
for (pn = C.call(Pe.ownerDocument); Pe.firstChild; )
|
|
47791
47791
|
pn.appendChild(Pe.firstChild);
|
|
47792
47792
|
else
|
|
@@ -49230,7 +49230,7 @@ var sxe = tc.ArrayBuffer, Q4 = tc.FileReader, Ac = tc.URL || tc.webkitURL, axe =
|
|
|
49230
49230
|
C = Math.floor(mj(Math.min(Math.max(C, D), v))), A = Math.floor(mj(Math.min(Math.max(A, w), x)));
|
|
49231
49231
|
var $ = -C / 2, H = -A / 2, z = C, R = A, Q = [];
|
|
49232
49232
|
if (y) {
|
|
49233
|
-
var
|
|
49233
|
+
var ce = 0, ee = 0, V = o, Y = i, X = Nf({
|
|
49234
49234
|
aspectRatio: k,
|
|
49235
49235
|
width: o,
|
|
49236
49236
|
height: i
|
|
@@ -49238,7 +49238,7 @@ var sxe = tc.ArrayBuffer, Q4 = tc.FileReader, Ac = tc.URL || tc.webkitURL, axe =
|
|
|
49238
49238
|
contain: "cover",
|
|
49239
49239
|
cover: "contain"
|
|
49240
49240
|
}[f.resize]);
|
|
49241
|
-
V = X.width, Y = X.height,
|
|
49241
|
+
V = X.width, Y = X.height, ce = (o - V) / 2, ee = (i - Y) / 2, Q.push(ce, ee, V, Y);
|
|
49242
49242
|
}
|
|
49243
49243
|
if (Q.push($, H, z, R), b) {
|
|
49244
49244
|
var ie = [A, C];
|
|
@@ -49251,16 +49251,16 @@ var sxe = tc.ArrayBuffer, Q4 = tc.FileReader, Ac = tc.URL || tc.webkitURL, axe =
|
|
|
49251
49251
|
if (K && (S = "#fff"), m.fillStyle = S, m.fillRect(0, 0, C, A), f.beforeDraw && f.beforeDraw.call(this, m, g), !this.aborted && (m.save(), m.translate(C / 2, A / 2), m.rotate(a * Math.PI / 180), m.scale(u, d), m.drawImage.apply(m, [h].concat(Q)), m.restore(), f.drew && f.drew.call(this, m, g), !this.aborted)) {
|
|
49252
49252
|
var Z = function(O) {
|
|
49253
49253
|
if (!r.aborted) {
|
|
49254
|
-
var ae = function(
|
|
49254
|
+
var ae = function(ue) {
|
|
49255
49255
|
return r.done({
|
|
49256
49256
|
naturalWidth: o,
|
|
49257
49257
|
naturalHeight: i,
|
|
49258
|
-
result:
|
|
49258
|
+
result: ue
|
|
49259
49259
|
});
|
|
49260
49260
|
};
|
|
49261
49261
|
if (O && K && f.retainExif && r.exif && r.exif.length > 0) {
|
|
49262
|
-
var le = function(
|
|
49263
|
-
return ae(hj(gj(ixe(
|
|
49262
|
+
var le = function(ue) {
|
|
49263
|
+
return ae(hj(gj(ixe(ue, r.exif), f.mimeType)));
|
|
49264
49264
|
};
|
|
49265
49265
|
if (O.arrayBuffer)
|
|
49266
49266
|
O.arrayBuffer().then(le).catch(function() {
|
|
@@ -49269,8 +49269,8 @@ var sxe = tc.ArrayBuffer, Q4 = tc.FileReader, Ac = tc.URL || tc.webkitURL, axe =
|
|
|
49269
49269
|
else {
|
|
49270
49270
|
var J = new Q4();
|
|
49271
49271
|
r.reader = J, J.onload = function(G) {
|
|
49272
|
-
var
|
|
49273
|
-
le(
|
|
49272
|
+
var ue = G.target;
|
|
49273
|
+
le(ue.result);
|
|
49274
49274
|
}, J.onabort = function() {
|
|
49275
49275
|
r.fail(new Error("Aborted to read the compressed image with FileReader."));
|
|
49276
49276
|
}, J.onerror = function() {
|
|
@@ -50288,13 +50288,9 @@ const Up = (e) => {
|
|
|
50288
50288
|
if ((navigator.platform.includes("Mac") ? _.shiftKey && _.metaKey : (_.ctrlKey || _.metaKey) && _.altKey) && _.key.toLowerCase() === "m") {
|
|
50289
50289
|
_.preventDefault();
|
|
50290
50290
|
const { state: $ } = e, { from: H, to: z } = $.selection;
|
|
50291
|
-
|
|
50292
|
-
|
|
50293
|
-
|
|
50294
|
-
color: ue ? "#15521d" : "#DDFBDF"
|
|
50295
|
-
}).run(), D.current && D.current.click();
|
|
50296
|
-
}
|
|
50297
|
-
return !0;
|
|
50291
|
+
return $.doc.textBetween(H, z, " ") && (e.chain().setHighlight({
|
|
50292
|
+
color: "var(--color-inline-comment)"
|
|
50293
|
+
}).run(), D.current && D.current.click()), !0;
|
|
50298
50294
|
}
|
|
50299
50295
|
if (_.altKey && _.shiftKey && _.key === "ArrowUp") {
|
|
50300
50296
|
_.preventDefault();
|
|
@@ -52262,12 +52258,12 @@ const Up = (e) => {
|
|
|
52262
52258
|
(L || !k) && S.stopPropagation(), j(), y((K) => !K);
|
|
52263
52259
|
}, $ = (S) => {
|
|
52264
52260
|
(L || !k) && S.stopPropagation(), j(), m((K) => !K);
|
|
52265
|
-
}, H = !k || L, z = H ? 2 : 0, R = !!(t && t.length > 70), Q = t && R && !b ? t.slice(0, 70) + "..." : t,
|
|
52266
|
-
let ee = [...
|
|
52261
|
+
}, H = !k || L, z = H ? 2 : 0, R = !!(t && t.length > 70), Q = t && R && !b ? t.slice(0, 70) + "..." : t, ce = (n || []).filter((S) => !S.deleted);
|
|
52262
|
+
let ee = [...ce].sort(
|
|
52267
52263
|
(S, K) => new Date(S.createdAt || /* @__PURE__ */ new Date()).getTime() - new Date(K.createdAt || /* @__PURE__ */ new Date()).getTime()
|
|
52268
52264
|
);
|
|
52269
|
-
!g &&
|
|
52270
|
-
const V = k && !L ?
|
|
52265
|
+
!g && ce.length > 3 && (ee = ee.slice(-2));
|
|
52266
|
+
const V = k && !L ? ce.length > 0 : ce.length > 3 && !g, Y = !!a && L && !g, X = V || H && ce.length > 3 && g || !!a && L && g, ie = g ? "Hide replies" : `${ce.length - z} ${z > 0 ? "more " : ""}replies in this thread`;
|
|
52271
52267
|
return {
|
|
52272
52268
|
commentsContainerRef: f,
|
|
52273
52269
|
displayedComment: Q,
|
|
@@ -52291,7 +52287,7 @@ const Up = (e) => {
|
|
|
52291
52287
|
shouldShowReplyToggle: X,
|
|
52292
52288
|
shouldShowResolvedMobileReplyCount: Y,
|
|
52293
52289
|
showAllReplies: g,
|
|
52294
|
-
visibleReplies:
|
|
52290
|
+
visibleReplies: ce
|
|
52295
52291
|
};
|
|
52296
52292
|
}, qW = ({ username: e, createdAt: t }) => {
|
|
52297
52293
|
const n = Cg(e);
|
|
@@ -52708,7 +52704,7 @@ const Up = (e) => {
|
|
|
52708
52704
|
}
|
|
52709
52705
|
g(e, o), i("");
|
|
52710
52706
|
}
|
|
52711
|
-
},
|
|
52707
|
+
}, ce = (S) => {
|
|
52712
52708
|
S.key === "Enter" && !S.shiftKey && (S.preventDefault(), e && t ? Q() : R());
|
|
52713
52709
|
}, ee = () => {
|
|
52714
52710
|
a((S) => !S);
|
|
@@ -52741,7 +52737,7 @@ const Up = (e) => {
|
|
|
52741
52737
|
onChange: (S) => {
|
|
52742
52738
|
u && N(u, S.target.value);
|
|
52743
52739
|
},
|
|
52744
|
-
onKeyDown:
|
|
52740
|
+
onKeyDown: ce,
|
|
52745
52741
|
className: "color-bg-default w-full text-body-sm color-text-default min-h-[40px] overflow-y-auto no-scrollbar px-3 py-2 whitespace-pre-wrap",
|
|
52746
52742
|
placeholder: "Type your comment",
|
|
52747
52743
|
autoFocus: !0
|
|
@@ -52875,7 +52871,7 @@ const Up = (e) => {
|
|
|
52875
52871
|
{
|
|
52876
52872
|
value: o,
|
|
52877
52873
|
onChange: H,
|
|
52878
|
-
onKeyDown:
|
|
52874
|
+
onKeyDown: ce,
|
|
52879
52875
|
className: "color-bg-default text-body-sm color-text-default min-h-[40px] overflow-y-auto no-scrollbar px-3 py-2 whitespace-pre-wrap",
|
|
52880
52876
|
placeholder: n ? "Available in a moment" : "Reply",
|
|
52881
52877
|
autoFocus: !0,
|
|
@@ -53038,8 +53034,8 @@ const Up = (e) => {
|
|
|
53038
53034
|
const j = Te((R) => {
|
|
53039
53035
|
R == null || R.style.setProperty("z-index", Wxe);
|
|
53040
53036
|
}, []), L = Te(
|
|
53041
|
-
({ editor: R }) => Pxe({ editor: R }) ? !0 : v && Uxe(R) && zxe(R),
|
|
53042
|
-
[v]
|
|
53037
|
+
({ editor: R }) => Pxe({ editor: R }) ? !0 : (v || o) && Uxe(R) && zxe(R),
|
|
53038
|
+
[v, o]
|
|
53043
53039
|
), P = Dt(() => [
|
|
53044
53040
|
{
|
|
53045
53041
|
name: "Bold",
|
|
@@ -54147,16 +54143,16 @@ var s3e = /* @__PURE__ */ E0(Bd, 9, 0), a3e = /* @__PURE__ */ E0(Gb, 5, 0), nq =
|
|
|
54147
54143
|
c += 3 * _;
|
|
54148
54144
|
for (var z = [y, D], R = 0; R < 2; ++R)
|
|
54149
54145
|
for (var Q = z[R], C = 0; C < Q.length; ++C) {
|
|
54150
|
-
var
|
|
54151
|
-
Ga(t, c, H[
|
|
54146
|
+
var ce = Q[C] & 31;
|
|
54147
|
+
Ga(t, c, H[ce]), c += M[ce], ce > 15 && (Ga(t, c, Q[C] >> 5 & 127), c += Q[C] >> 12);
|
|
54152
54148
|
}
|
|
54153
54149
|
} else
|
|
54154
54150
|
j = s3e, L = Bd, P = a3e, $ = Gb;
|
|
54155
54151
|
for (var C = 0; C < a; ++C) {
|
|
54156
54152
|
var ee = r[C];
|
|
54157
54153
|
if (ee > 255) {
|
|
54158
|
-
var
|
|
54159
|
-
Mf(t, c, j[
|
|
54154
|
+
var ce = ee >> 18 & 31;
|
|
54155
|
+
Mf(t, c, j[ce + 257]), c += L[ce + 257], ce > 7 && (Ga(t, c, ee >> 23 & 31), c += J9[ce]);
|
|
54160
54156
|
var V = ee & 31;
|
|
54161
54157
|
Mf(t, c, P[V]), c += $[V], V > 3 && (Mf(t, c, ee >> 5 & 8191), c += Q9[V]);
|
|
54162
54158
|
} else
|
|
@@ -54182,9 +54178,9 @@ var s3e = /* @__PURE__ */ E0(Bd, 9, 0), a3e = /* @__PURE__ */ E0(Gb, 5, 0), nq =
|
|
|
54182
54178
|
}
|
|
54183
54179
|
var P = 2, $ = 0, H = h, z = E - N & 32767;
|
|
54184
54180
|
if (j > 2 && B == v(A - z))
|
|
54185
|
-
for (var R = Math.min(p, j) - 1, Q = Math.min(32767, A),
|
|
54181
|
+
for (var R = Math.min(p, j) - 1, Q = Math.min(32767, A), ce = Math.min(258, j); z <= Q && --H && E != N; ) {
|
|
54186
54182
|
if (e[A + P] == e[A + P - z]) {
|
|
54187
|
-
for (var ee = 0; ee <
|
|
54183
|
+
for (var ee = 0; ee < ce && e[A + ee] == e[A + ee - z]; ++ee)
|
|
54188
54184
|
;
|
|
54189
54185
|
if (ee > P) {
|
|
54190
54186
|
if (P = ee, $ = z, ee > R)
|
|
@@ -56833,7 +56829,7 @@ ${N.getHTML()}`
|
|
|
56833
56829
|
fetchV1ImageFn: m
|
|
56834
56830
|
}), E = GW(e), N = e ? E.currentSize : void 0, j = e ? E.onSetFontSize : () => {
|
|
56835
56831
|
}, L = e ? E.currentLineHeight : void 0, P = e ? E.onSetLineHeight : () => {
|
|
56836
|
-
}, $ = nr("(max-width: 1560px)"), H = nr("(max-width: 1370px)"), z = nr("(max-width: 1270px)"), R = nr("(max-width: 1160px)"), Q = nr("(max-width: 1030px)"), [
|
|
56832
|
+
}, $ = nr("(max-width: 1560px)"), H = nr("(max-width: 1370px)"), z = nr("(max-width: 1270px)"), R = nr("(max-width: 1160px)"), Q = nr("(max-width: 1030px)"), [ce, ee] = Ne(!1), [V, Y] = Ne("Default"), X = OW.find((K) => K.value === V);
|
|
56837
56833
|
_e(() => {
|
|
56838
56834
|
if (!e) return;
|
|
56839
56835
|
const K = () => Y(Bve(e));
|
|
@@ -56958,7 +56954,7 @@ ${N.getHTML()}`
|
|
|
56958
56954
|
align: "start",
|
|
56959
56955
|
sideOffset: 8,
|
|
56960
56956
|
controlled: !0,
|
|
56961
|
-
isOpen:
|
|
56957
|
+
isOpen: ce,
|
|
56962
56958
|
onClose: () => ee(!1),
|
|
56963
56959
|
anchorTrigger: /* @__PURE__ */ F.jsxs(
|
|
56964
56960
|
"button",
|
|
@@ -61608,7 +61604,7 @@ const MFe = Qve.extend({
|
|
|
61608
61604
|
return;
|
|
61609
61605
|
}
|
|
61610
61606
|
V.stopPropagation();
|
|
61611
|
-
},
|
|
61607
|
+
}, ce = () => {
|
|
61612
61608
|
w && (clearTimeout(w), k(null)), D(!1), C.current = null;
|
|
61613
61609
|
};
|
|
61614
61610
|
_e(() => () => {
|
|
@@ -61648,8 +61644,8 @@ const MFe = Qve.extend({
|
|
|
61648
61644
|
),
|
|
61649
61645
|
onTouchStart: R,
|
|
61650
61646
|
onTouchMove: Q,
|
|
61651
|
-
onTouchEnd:
|
|
61652
|
-
onTouchCancel:
|
|
61647
|
+
onTouchEnd: ce,
|
|
61648
|
+
onTouchCancel: ce,
|
|
61653
61649
|
children: [
|
|
61654
61650
|
/* @__PURE__ */ F.jsxs(
|
|
61655
61651
|
"div",
|
|
@@ -63194,11 +63190,11 @@ const FF = Ct.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
63194
63190
|
...we
|
|
63195
63191
|
} : we;
|
|
63196
63192
|
}, ae = M(), le = B(), J = O(ae), G = ae === le ? J : O(le);
|
|
63197
|
-
let
|
|
63193
|
+
let ue = J;
|
|
63198
63194
|
return [
|
|
63199
63195
|
() => {
|
|
63200
63196
|
const ve = O(M());
|
|
63201
|
-
return j(ve,
|
|
63197
|
+
return j(ve, ue) ? (ue.data = ve.data, ue.isLoading = ve.isLoading, ue.isValidating = ve.isValidating, ue.error = ve.error, ue) : (ue = ve, ve);
|
|
63202
63198
|
},
|
|
63203
63199
|
() => G
|
|
63204
63200
|
];
|
|
@@ -63214,13 +63210,13 @@ const FF = Ct.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
63214
63210
|
r,
|
|
63215
63211
|
b
|
|
63216
63212
|
]
|
|
63217
|
-
), L[0], L[1]), $ = !v.current, H = h[b] && h[b].length > 0, z = P.data, R = hn(z) ? N && kV(N) ? FF(N) : N : z, Q = P.error,
|
|
63213
|
+
), L[0], L[1]), $ = !v.current, H = h[b] && h[b].length > 0, z = P.data, R = hn(z) ? N && kV(N) ? FF(N) : N : z, Q = P.error, ce = Be(R), ee = p ? hn(z) ? hn(ce.current) ? R : ce.current : z : R, V = H && !hn(Q) ? !1 : $ && !hn(a) ? a : C().isPaused() ? !1 : i ? hn(R) ? !1 : l : hn(R) || l, Y = !!(b && t && $ && V), X = hn(P.isValidating) ? Y : P.isValidating, ie = hn(P.isLoading) ? Y : P.isLoading, S = Te(
|
|
63218
63214
|
async (se) => {
|
|
63219
63215
|
const O = w.current;
|
|
63220
63216
|
if (!b || !O || x.current || C().isPaused())
|
|
63221
63217
|
return !1;
|
|
63222
63218
|
let ae, le, J = !0;
|
|
63223
|
-
const G = se || {},
|
|
63219
|
+
const G = se || {}, ue = !g[b] || !G.dedupe, ve = () => lB ? !x.current && b === D.current && v.current : b === D.current, we = {
|
|
63224
63220
|
isValidating: !1,
|
|
63225
63221
|
isLoading: !1
|
|
63226
63222
|
}, fe = () => {
|
|
@@ -63233,26 +63229,26 @@ const FF = Ct.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
63233
63229
|
};
|
|
63234
63230
|
hn(M().data) && (oe.isLoading = !0);
|
|
63235
63231
|
try {
|
|
63236
|
-
if (
|
|
63232
|
+
if (ue && (T(oe), n.loadingTimeout && hn(M().data) && setTimeout(() => {
|
|
63237
63233
|
J && ve() && C().onLoadingSlow(b, n);
|
|
63238
63234
|
}, n.loadingTimeout), g[b] = [
|
|
63239
63235
|
O(y),
|
|
63240
63236
|
LD()
|
|
63241
|
-
]), [ae, le] = g[b], ae = await ae,
|
|
63242
|
-
return
|
|
63237
|
+
]), [ae, le] = g[b], ae = await ae, ue && setTimeout(de, n.dedupingInterval), !g[b] || g[b][1] !== le)
|
|
63238
|
+
return ue && ve() && C().onDiscarded(b), !1;
|
|
63243
63239
|
we.error = uo;
|
|
63244
63240
|
const he = f[b];
|
|
63245
63241
|
if (!hn(he) && // case 1
|
|
63246
63242
|
(le <= he[0] || // case 2
|
|
63247
63243
|
le <= he[1] || // case 3
|
|
63248
63244
|
he[1] === 0))
|
|
63249
|
-
return fe(),
|
|
63245
|
+
return fe(), ue && ve() && C().onDiscarded(b), !1;
|
|
63250
63246
|
const I = M().data;
|
|
63251
|
-
we.data = o(I, ae) ? I : ae,
|
|
63247
|
+
we.data = o(I, ae) ? I : ae, ue && ve() && C().onSuccess(ae, b, n);
|
|
63252
63248
|
} catch (he) {
|
|
63253
63249
|
de();
|
|
63254
63250
|
const I = C(), { shouldRetryOnError: q } = I;
|
|
63255
|
-
I.isPaused() || (we.error = he,
|
|
63251
|
+
I.isPaused() || (we.error = he, ue && ve() && (I.onError(he, b, I), (q === !0 || aa(q) && q(he)) && (!C().revalidateOnFocus || !C().revalidateOnReconnect || A()) && I.onErrorRetry(he, b, I, (te) => {
|
|
63256
63252
|
const ne = h[b];
|
|
63257
63253
|
ne && ne[0] && ne[0](sB, te);
|
|
63258
63254
|
}, {
|
|
@@ -63284,7 +63280,7 @@ const FF = Ct.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
63284
63280
|
[]
|
|
63285
63281
|
);
|
|
63286
63282
|
if (yF(() => {
|
|
63287
|
-
w.current = t, k.current = n, hn(z) || (
|
|
63283
|
+
w.current = t, k.current = n, hn(z) || (ce.current = z);
|
|
63288
63284
|
}), yF(() => {
|
|
63289
63285
|
if (!b) return;
|
|
63290
63286
|
const se = S.bind(uo, wF);
|
|
@@ -63292,8 +63288,8 @@ const FF = Ct.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
63292
63288
|
C().revalidateOnFocus && (O = Date.now() + C().focusThrottleInterval);
|
|
63293
63289
|
const le = v5e(b, h, (J, G = {}) => {
|
|
63294
63290
|
if (J == FV) {
|
|
63295
|
-
const
|
|
63296
|
-
C().revalidateOnFocus &&
|
|
63291
|
+
const ue = Date.now();
|
|
63292
|
+
C().revalidateOnFocus && ue > O && A() && (O = ue + C().focusThrottleInterval, se());
|
|
63297
63293
|
} else if (J == wV)
|
|
63298
63294
|
C().revalidateOnReconnect && A() && se();
|
|
63299
63295
|
else {
|
|
@@ -67227,8 +67223,8 @@ const hDe = Ct.memo(
|
|
|
67227
67223
|
/youtu\.?be(?:\.com)?\/(?:.*v(?:\/|=)|(?:.*\/)?)([a-zA-Z0-9-_]+)/
|
|
67228
67224
|
);
|
|
67229
67225
|
if (J) {
|
|
67230
|
-
const
|
|
67231
|
-
if (
|
|
67226
|
+
const ue = A.trim(), ve = le.trim();
|
|
67227
|
+
if (ue === ve) {
|
|
67232
67228
|
const we = `https://www.youtube.com/embed/${J[1]}`;
|
|
67233
67229
|
B("iframe", we);
|
|
67234
67230
|
return;
|
|
@@ -67239,8 +67235,8 @@ const hDe = Ct.memo(
|
|
|
67239
67235
|
/vimeo\.com\/([a-zA-Z0-9-_]+)/
|
|
67240
67236
|
);
|
|
67241
67237
|
if (G) {
|
|
67242
|
-
const
|
|
67243
|
-
B("iframe",
|
|
67238
|
+
const ue = `https://player.vimeo.com/video/${G[1]}`;
|
|
67239
|
+
B("iframe", ue);
|
|
67244
67240
|
return;
|
|
67245
67241
|
}
|
|
67246
67242
|
console.warn("No matching media type found for:", A);
|
|
@@ -67288,7 +67284,7 @@ const hDe = Ct.memo(
|
|
|
67288
67284
|
[H]
|
|
67289
67285
|
), Q = Te(() => {
|
|
67290
67286
|
c(!u), p(u ? 2 : R.length);
|
|
67291
|
-
}, [u, R.length]),
|
|
67287
|
+
}, [u, R.length]), ce = Dt(() => {
|
|
67292
67288
|
switch (w) {
|
|
67293
67289
|
case "center":
|
|
67294
67290
|
return "justify-center";
|
|
@@ -67313,9 +67309,9 @@ const hDe = Ct.memo(
|
|
|
67313
67309
|
const J = K.$anchor.pos >= Z && K.$anchor.pos <= Z + se.nodeSize;
|
|
67314
67310
|
if (!O || !J || S.childCount > 1) return !1;
|
|
67315
67311
|
let G = !1;
|
|
67316
|
-
return ae.content.forEach((
|
|
67312
|
+
return ae.content.forEach((ue) => {
|
|
67317
67313
|
var ve;
|
|
67318
|
-
(
|
|
67314
|
+
(ue.isText && ((ve = ue.text) != null && ve.trim()) || !ue.isText) && (G = !0);
|
|
67319
67315
|
}), !G;
|
|
67320
67316
|
}, [t, n.state]);
|
|
67321
67317
|
return g && f ? /* @__PURE__ */ F.jsx(
|
|
@@ -67420,7 +67416,7 @@ const hDe = Ct.memo(
|
|
|
67420
67416
|
"invalid-content": (ie = e.attrs) == null ? void 0 : ie.isCorrupted,
|
|
67421
67417
|
"flex flex-row-reverse gap-2 items-center": y && f
|
|
67422
67418
|
},
|
|
67423
|
-
y && f &&
|
|
67419
|
+
y && f && ce
|
|
67424
67420
|
),
|
|
67425
67421
|
children: [
|
|
67426
67422
|
ee && mB(
|
|
@@ -68687,8 +68683,8 @@ function tke(e) {
|
|
|
68687
68683
|
function nke(e) {
|
|
68688
68684
|
var t = e.state, n = e.options, r = e.name;
|
|
68689
68685
|
if (!t.modifiersData[r]._skip) {
|
|
68690
|
-
for (var o = n.mainAxis, i = o === void 0 ? !0 : o, s = n.altAxis, a = s === void 0 ? !0 : s, l = n.fallbackPlacements, u = n.padding, c = n.boundary, d = n.rootBoundary, p = n.altBoundary, h = n.flipVariations, f = h === void 0 ? !0 : h, g = n.allowedAutoPlacements, m = t.options.placement, b = ba(m), y = b === m, v = l || (y || !f ? [$2(m)] : tke(m)), x = [m].concat(v).reduce(function(
|
|
68691
|
-
return
|
|
68686
|
+
for (var o = n.mainAxis, i = o === void 0 ? !0 : o, s = n.altAxis, a = s === void 0 ? !0 : s, l = n.fallbackPlacements, u = n.padding, c = n.boundary, d = n.rootBoundary, p = n.altBoundary, h = n.flipVariations, f = h === void 0 ? !0 : h, g = n.allowedAutoPlacements, m = t.options.placement, b = ba(m), y = b === m, v = l || (y || !f ? [$2(m)] : tke(m)), x = [m].concat(v).reduce(function(ce, ee) {
|
|
68687
|
+
return ce.concat(ba(ee) === xE ? eke(t, {
|
|
68692
68688
|
placement: ee,
|
|
68693
68689
|
boundary: c,
|
|
68694
68690
|
rootBoundary: d,
|
|
@@ -68706,8 +68702,8 @@ function nke(e) {
|
|
|
68706
68702
|
}), L = E ? B ? hs : ii : B ? ps : oi;
|
|
68707
68703
|
D[N] > w[N] && (L = $2(L));
|
|
68708
68704
|
var P = $2(L), $ = [];
|
|
68709
|
-
if (i && $.push(j[_] <= 0), a && $.push(j[L] <= 0, j[P] <= 0), $.every(function(
|
|
68710
|
-
return
|
|
68705
|
+
if (i && $.push(j[_] <= 0), a && $.push(j[L] <= 0, j[P] <= 0), $.every(function(ce) {
|
|
68706
|
+
return ce;
|
|
68711
68707
|
})) {
|
|
68712
68708
|
A = T, C = !1;
|
|
68713
68709
|
break;
|
|
@@ -68844,14 +68840,14 @@ function pke(e) {
|
|
|
68844
68840
|
};
|
|
68845
68841
|
if (w) {
|
|
68846
68842
|
if (i) {
|
|
68847
|
-
var B, E = x === "y" ? oi : ii, N = x === "y" ? ps : hs, j = x === "y" ? "height" : "width", L = w[x], P = L + m[E], $ = L - m[N], H = h ? -C[j] / 2 : 0, z = y === Sh ? k[j] : C[j], R = y === Sh ? -C[j] : -k[j], Q = t.elements.arrow,
|
|
68843
|
+
var B, E = x === "y" ? oi : ii, N = x === "y" ? ps : hs, j = x === "y" ? "height" : "width", L = w[x], P = L + m[E], $ = L - m[N], H = h ? -C[j] / 2 : 0, z = y === Sh ? k[j] : C[j], R = y === Sh ? -C[j] : -k[j], Q = t.elements.arrow, ce = h && Q ? FE(Q) : {
|
|
68848
68844
|
width: 0,
|
|
68849
68845
|
height: 0
|
|
68850
|
-
}, ee = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : HV(), V = ee[E], Y = ee[N], X = M0(0, k[j],
|
|
68846
|
+
}, ee = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : HV(), V = ee[E], Y = ee[N], X = M0(0, k[j], ce[j]), ie = v ? k[j] / 2 - H - X - V - M.mainAxis : z - X - V - M.mainAxis, S = v ? -k[j] / 2 + H + X + Y + M.mainAxis : R + X + Y + M.mainAxis, K = t.elements.arrow && jg(t.elements.arrow), Z = K ? x === "y" ? K.clientTop || 0 : K.clientLeft || 0 : 0, se = (B = T == null ? void 0 : T[x]) != null ? B : 0, O = L + ie - se - Z, ae = L + S - se, le = M0(h ? Cy(P, O) : P, L, h ? pd($, ae) : $);
|
|
68851
68847
|
w[x] = le, _[x] = le - L;
|
|
68852
68848
|
}
|
|
68853
68849
|
if (a) {
|
|
68854
|
-
var J, G = x === "x" ? oi : ii,
|
|
68850
|
+
var J, G = x === "x" ? oi : ii, ue = x === "x" ? ps : hs, ve = w[D], we = D === "y" ? "height" : "width", fe = ve + m[G], de = ve - m[ue], oe = [oi, ii].indexOf(b) !== -1, he = (J = T == null ? void 0 : T[D]) != null ? J : 0, I = oe ? fe : ve - k[we] - C[we] - he + M.altAxis, q = oe ? ve + k[we] + C[we] - he - M.altAxis : de, te = h && oe ? IDe(I, ve, q) : M0(h ? I : fe, ve, h ? q : de);
|
|
68855
68851
|
w[D] = te, _[D] = te - ve;
|
|
68856
68852
|
}
|
|
68857
68853
|
t.modifiersData[r] = _;
|
|
@@ -69546,16 +69542,16 @@ function Jke(e, t) {
|
|
|
69546
69542
|
function Q() {
|
|
69547
69543
|
l = !0;
|
|
69548
69544
|
}
|
|
69549
|
-
function
|
|
69545
|
+
function ce() {
|
|
69550
69546
|
l = !1;
|
|
69551
69547
|
}
|
|
69552
69548
|
function ee() {
|
|
69553
69549
|
var ge = E();
|
|
69554
|
-
ge.addEventListener("mousedown", R, !0), ge.addEventListener("touchend", R, Oc), ge.addEventListener("touchstart",
|
|
69550
|
+
ge.addEventListener("mousedown", R, !0), ge.addEventListener("touchend", R, Oc), ge.addEventListener("touchstart", ce, Oc), ge.addEventListener("touchmove", Q, Oc);
|
|
69555
69551
|
}
|
|
69556
69552
|
function V() {
|
|
69557
69553
|
var ge = E();
|
|
69558
|
-
ge.removeEventListener("mousedown", R, !0), ge.removeEventListener("touchend", R, Oc), ge.removeEventListener("touchstart",
|
|
69554
|
+
ge.removeEventListener("mousedown", R, !0), ge.removeEventListener("touchend", R, Oc), ge.removeEventListener("touchstart", ce, Oc), ge.removeEventListener("touchmove", Q, Oc);
|
|
69559
69555
|
}
|
|
69560
69556
|
function Y(ge, Ae) {
|
|
69561
69557
|
ie(ge, function() {
|
|
@@ -69652,7 +69648,7 @@ function Jke(e, t) {
|
|
|
69652
69648
|
return ia.isTouch ? T() !== ge.type.indexOf("touch") >= 0 : !1;
|
|
69653
69649
|
}
|
|
69654
69650
|
function G() {
|
|
69655
|
-
|
|
69651
|
+
ue();
|
|
69656
69652
|
var ge = x.props, Ae = ge.popperOptions, je = ge.placement, Le = ge.offset, We = ge.getReferenceClientRect, yt = ge.moveTransition, dt = _() ? qD(w).arrow : null, rt = We ? {
|
|
69657
69653
|
getBoundingClientRect: We,
|
|
69658
69654
|
contextElement: We.contextElement || B()
|
|
@@ -69708,7 +69704,7 @@ function Jke(e, t) {
|
|
|
69708
69704
|
modifiers: qe
|
|
69709
69705
|
}));
|
|
69710
69706
|
}
|
|
69711
|
-
function
|
|
69707
|
+
function ue() {
|
|
69712
69708
|
x.popperInstance && (x.popperInstance.destroy(), x.popperInstance = null);
|
|
69713
69709
|
}
|
|
69714
69710
|
function ve() {
|
|
@@ -69809,7 +69805,7 @@ function Jke(e, t) {
|
|
|
69809
69805
|
process.env.NODE_ENV !== "production" && sl(x.state.isDestroyed, fp("hideWithInteractivity")), E().addEventListener("mousemove", f), OB(Hm, f), f(ge);
|
|
69810
69806
|
}
|
|
69811
69807
|
function ke() {
|
|
69812
|
-
process.env.NODE_ENV !== "production" && sl(x.state.isDestroyed, fp("unmount")), x.state.isVisible && x.hide(), x.state.isMounted && (
|
|
69808
|
+
process.env.NODE_ENV !== "production" && sl(x.state.isDestroyed, fp("unmount")), x.state.isVisible && x.hide(), x.state.isMounted && (ue(), we().forEach(function(ge) {
|
|
69813
69809
|
ge._tippy.unmount();
|
|
69814
69810
|
}), w.parentNode && w.parentNode.removeChild(w), SF = SF.filter(function(ge) {
|
|
69815
69811
|
return ge !== x;
|
|
@@ -78676,11 +78672,11 @@ function Ln() {
|
|
|
78676
78672
|
return r = R, i;
|
|
78677
78673
|
}
|
|
78678
78674
|
var a = function(R, Q) {
|
|
78679
|
-
var
|
|
78675
|
+
var ce = {}.hasOwnProperty;
|
|
78680
78676
|
function ee() {
|
|
78681
78677
|
this.constructor = R, this.constructor$ = Q;
|
|
78682
78678
|
for (var V in Q.prototype)
|
|
78683
|
-
|
|
78679
|
+
ce.call(Q.prototype, V) && V.charAt(V.length - 1) !== "$" && (this[V + "$"] = Q.prototype[V]);
|
|
78684
78680
|
}
|
|
78685
78681
|
return ee.prototype = Q.prototype, R.prototype = new ee(), R.prototype;
|
|
78686
78682
|
};
|
|
@@ -78694,23 +78690,23 @@ function Ln() {
|
|
|
78694
78690
|
return l(R) ? new Error(w(R)) : R;
|
|
78695
78691
|
}
|
|
78696
78692
|
function d(R, Q) {
|
|
78697
|
-
var
|
|
78698
|
-
for (V = 0; V <
|
|
78693
|
+
var ce = R.length, ee = new Array(ce + 1), V;
|
|
78694
|
+
for (V = 0; V < ce; ++V)
|
|
78699
78695
|
ee[V] = R[V];
|
|
78700
78696
|
return ee[V] = Q, ee;
|
|
78701
78697
|
}
|
|
78702
|
-
function p(R, Q,
|
|
78698
|
+
function p(R, Q, ce) {
|
|
78703
78699
|
if (e.isES5) {
|
|
78704
78700
|
var ee = Object.getOwnPropertyDescriptor(R, Q);
|
|
78705
78701
|
if (ee != null)
|
|
78706
|
-
return ee.get == null && ee.set == null ? ee.value :
|
|
78702
|
+
return ee.get == null && ee.set == null ? ee.value : ce;
|
|
78707
78703
|
} else
|
|
78708
78704
|
return {}.hasOwnProperty.call(R, Q) ? R[Q] : void 0;
|
|
78709
78705
|
}
|
|
78710
|
-
function h(R, Q,
|
|
78706
|
+
function h(R, Q, ce) {
|
|
78711
78707
|
if (l(R)) return R;
|
|
78712
78708
|
var ee = {
|
|
78713
|
-
value:
|
|
78709
|
+
value: ce,
|
|
78714
78710
|
configurable: !0,
|
|
78715
78711
|
enumerable: !1,
|
|
78716
78712
|
writable: !0
|
|
@@ -78732,12 +78728,12 @@ function Ln() {
|
|
|
78732
78728
|
return !1;
|
|
78733
78729
|
};
|
|
78734
78730
|
if (e.isES5) {
|
|
78735
|
-
var
|
|
78731
|
+
var ce = Object.getOwnPropertyNames;
|
|
78736
78732
|
return function(V) {
|
|
78737
78733
|
for (var Y = [], X = /* @__PURE__ */ Object.create(null); V != null && !Q(V); ) {
|
|
78738
78734
|
var ie;
|
|
78739
78735
|
try {
|
|
78740
|
-
ie =
|
|
78736
|
+
ie = ce(V);
|
|
78741
78737
|
} catch {
|
|
78742
78738
|
return Y;
|
|
78743
78739
|
}
|
|
@@ -78774,8 +78770,8 @@ function Ln() {
|
|
|
78774
78770
|
function b(R) {
|
|
78775
78771
|
try {
|
|
78776
78772
|
if (typeof R == "function") {
|
|
78777
|
-
var Q = e.names(R.prototype),
|
|
78778
|
-
if (
|
|
78773
|
+
var Q = e.names(R.prototype), ce = e.isES5 && Q.length > 1, ee = Q.length > 0 && !(Q.length === 1 && Q[0] === "constructor"), V = m.test(R + "") && e.names(R).length > 0;
|
|
78774
|
+
if (ce || ee || V)
|
|
78779
78775
|
return !0;
|
|
78780
78776
|
}
|
|
78781
78777
|
return !1;
|
|
@@ -78790,9 +78786,9 @@ function Ln() {
|
|
|
78790
78786
|
function x(R) {
|
|
78791
78787
|
return v.test(R);
|
|
78792
78788
|
}
|
|
78793
|
-
function D(R, Q,
|
|
78789
|
+
function D(R, Q, ce) {
|
|
78794
78790
|
for (var ee = new Array(R), V = 0; V < R; ++V)
|
|
78795
|
-
ee[V] = Q + V +
|
|
78791
|
+
ee[V] = Q + V + ce;
|
|
78796
78792
|
return ee;
|
|
78797
78793
|
}
|
|
78798
78794
|
function w(R) {
|
|
@@ -78832,10 +78828,10 @@ function Ln() {
|
|
|
78832
78828
|
function _(R) {
|
|
78833
78829
|
return {}.toString.call(R);
|
|
78834
78830
|
}
|
|
78835
|
-
function B(R, Q,
|
|
78831
|
+
function B(R, Q, ce) {
|
|
78836
78832
|
for (var ee = e.names(R), V = 0; V < ee.length; ++V) {
|
|
78837
78833
|
var Y = ee[V];
|
|
78838
|
-
if (
|
|
78834
|
+
if (ce(Y))
|
|
78839
78835
|
try {
|
|
78840
78836
|
e.defineProperty(Q, Y, e.getDescriptor(R, Y));
|
|
78841
78837
|
} catch {
|
|
@@ -78849,7 +78845,7 @@ function Ln() {
|
|
|
78849
78845
|
var N = typeof Array.from == "function" ? function(R) {
|
|
78850
78846
|
return Array.from(R);
|
|
78851
78847
|
} : function(R) {
|
|
78852
|
-
for (var Q = [],
|
|
78848
|
+
for (var Q = [], ce = R[Symbol.iterator](), ee; !(ee = ce.next()).done; )
|
|
78853
78849
|
Q.push(ee.value);
|
|
78854
78850
|
return Q;
|
|
78855
78851
|
};
|
|
@@ -79408,7 +79404,7 @@ function DBe() {
|
|
|
79408
79404
|
}, e.prototype._isRejectionUnhandled = function() {
|
|
79409
79405
|
return (this._bitField & 1048576) > 0;
|
|
79410
79406
|
}, e.prototype._warn = function(de, oe, he) {
|
|
79411
|
-
return
|
|
79407
|
+
return ce(de, oe, he || this);
|
|
79412
79408
|
}, e.onPossiblyUnhandledRejection = function(de) {
|
|
79413
79409
|
var oe = n();
|
|
79414
79410
|
l = typeof de == "function" ? oe === null ? de : i.domainBind(oe, de) : void 0;
|
|
@@ -79644,9 +79640,9 @@ function DBe() {
|
|
|
79644
79640
|
}
|
|
79645
79641
|
function Q(de, oe) {
|
|
79646
79642
|
var he = de + " is deprecated and will be removed in a future version.";
|
|
79647
|
-
return oe && (he += " Use " + oe + " instead."),
|
|
79643
|
+
return oe && (he += " Use " + oe + " instead."), ce(he);
|
|
79648
79644
|
}
|
|
79649
|
-
function
|
|
79645
|
+
function ce(de, oe, he) {
|
|
79650
79646
|
if (fe.warnings) {
|
|
79651
79647
|
var I = new o(de), q;
|
|
79652
79648
|
if (oe)
|
|
@@ -79770,7 +79766,7 @@ function DBe() {
|
|
|
79770
79766
|
line: parseInt(oe[2], 10)
|
|
79771
79767
|
};
|
|
79772
79768
|
}
|
|
79773
|
-
function
|
|
79769
|
+
function ue(de, oe) {
|
|
79774
79770
|
if (ae()) {
|
|
79775
79771
|
for (var he = de.stack.split(`
|
|
79776
79772
|
`), I = oe.stack.split(`
|
|
@@ -79906,8 +79902,8 @@ function DBe() {
|
|
|
79906
79902
|
return $;
|
|
79907
79903
|
},
|
|
79908
79904
|
checkForgottenReturns: R,
|
|
79909
|
-
setBounds:
|
|
79910
|
-
warn:
|
|
79905
|
+
setBounds: ue,
|
|
79906
|
+
warn: ce,
|
|
79911
79907
|
deprecated: Q,
|
|
79912
79908
|
CapturedTrace: ve,
|
|
79913
79909
|
fireDomEvent: D,
|
|
@@ -81086,7 +81082,7 @@ function LBe() {
|
|
|
81086
81082
|
` : `ret = callback.apply(receiver, args);
|
|
81087
81083
|
`), V;
|
|
81088
81084
|
}
|
|
81089
|
-
var
|
|
81085
|
+
var ce = typeof B == "string" ? "this != null ? this['" + B + "'] : fn" : "fn", ee = `'use strict';
|
|
81090
81086
|
var ret = function (Parameters) {
|
|
81091
81087
|
'use strict';
|
|
81092
81088
|
var len = arguments.length;
|
|
@@ -81106,7 +81102,7 @@ function LBe() {
|
|
|
81106
81102
|
};
|
|
81107
81103
|
notEnumerableProp(ret, '__isPromisified__', true);
|
|
81108
81104
|
return ret;
|
|
81109
|
-
`.replace("[CodeForSwitchCase]", Q()).replace("[GetFunctionCode]",
|
|
81105
|
+
`.replace("[CodeForSwitchCase]", Q()).replace("[GetFunctionCode]", ce);
|
|
81110
81106
|
return ee = ee.replace("Parameters", k($)), new Function(
|
|
81111
81107
|
"Promise",
|
|
81112
81108
|
"fn",
|
|
@@ -81143,9 +81139,9 @@ function LBe() {
|
|
|
81143
81139
|
E === n && (R = this);
|
|
81144
81140
|
var Q = new e(t);
|
|
81145
81141
|
Q._captureStackTrace();
|
|
81146
|
-
var
|
|
81142
|
+
var ce = typeof H == "string" && this !== $ ? this[H] : B, ee = o(Q, P);
|
|
81147
81143
|
try {
|
|
81148
|
-
|
|
81144
|
+
ce.apply(R, i(arguments, ee));
|
|
81149
81145
|
} catch (V) {
|
|
81150
81146
|
Q._rejectCallback(s(V), !0, !0);
|
|
81151
81147
|
}
|
|
@@ -81156,9 +81152,9 @@ function LBe() {
|
|
|
81156
81152
|
var M = a ? x : A;
|
|
81157
81153
|
function T(B, E, N, j, L) {
|
|
81158
81154
|
for (var P = new RegExp(v(E) + "$"), $ = y(B, E, P, N), H = 0, z = $.length; H < z; H += 2) {
|
|
81159
|
-
var R = $[H], Q = $[H + 1],
|
|
81155
|
+
var R = $[H], Q = $[H + 1], ce = R + E;
|
|
81160
81156
|
if (j === M)
|
|
81161
|
-
B[
|
|
81157
|
+
B[ce] = M(R, n, R, Q, E, L);
|
|
81162
81158
|
else {
|
|
81163
81159
|
var ee = j(Q, function() {
|
|
81164
81160
|
return M(
|
|
@@ -81170,7 +81166,7 @@ function LBe() {
|
|
|
81170
81166
|
L
|
|
81171
81167
|
);
|
|
81172
81168
|
});
|
|
81173
|
-
r.notEnumerableProp(ee, "__isPromisified__", !0), B[
|
|
81169
|
+
r.notEnumerableProp(ee, "__isPromisified__", !0), B[ce] = ee;
|
|
81174
81170
|
}
|
|
81175
81171
|
}
|
|
81176
81172
|
return r.toFastProperties(B), B;
|
|
@@ -81666,12 +81662,12 @@ function VBe() {
|
|
|
81666
81662
|
throw new p("expecting a function but got " + s.classString(j));
|
|
81667
81663
|
return c.setScheduler(j);
|
|
81668
81664
|
}, _.prototype._then = function(j, L, P, $, H) {
|
|
81669
|
-
var z = H !== void 0, R = z ? H : new _(f), Q = this._target(),
|
|
81670
|
-
z || (R._propagateFrom(this, 3), R._captureStackTrace(), $ === void 0 && this._bitField & 2097152 && (
|
|
81665
|
+
var z = H !== void 0, R = z ? H : new _(f), Q = this._target(), ce = Q._bitField;
|
|
81666
|
+
z || (R._propagateFrom(this, 3), R._captureStackTrace(), $ === void 0 && this._bitField & 2097152 && (ce & 50397184 ? $ = this._boundValue() : $ = Q === this ? void 0 : this._boundTo), this._fireEvent("promiseChained", this, R));
|
|
81671
81667
|
var ee = a();
|
|
81672
|
-
if (
|
|
81668
|
+
if (ce & 50397184) {
|
|
81673
81669
|
var V, Y, X = Q._settlePromiseCtx;
|
|
81674
|
-
|
|
81670
|
+
ce & 33554432 ? (Y = Q._rejectionHandler0, V = j) : ce & 16777216 ? (Y = Q._fulfillmentHandler0, V = L, Q._unsetRejectionIsUnhandled()) : (X = Q._settlePromiseLateCancellationObserver, Y = new h("late cancellation observer"), Q._attachExtraTrace(Y), V = L), c.invoke(X, Q, {
|
|
81675
81671
|
handler: ee === null ? V : typeof V == "function" && s.domainBind(ee, V),
|
|
81676
81672
|
promise: R,
|
|
81677
81673
|
receiver: $,
|
|
@@ -82342,9 +82338,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
82342
82338
|
}(D.unixPermissions, P)) : (Q = 20, R |= function(ee) {
|
|
82343
82339
|
return 63 & (ee || 0);
|
|
82344
82340
|
}(D.dosPermissions)), v = $.getUTCHours(), v <<= 6, v |= $.getUTCMinutes(), v <<= 5, v |= $.getUTCSeconds() / 2, x = $.getUTCFullYear() - 1980, x <<= 4, x |= $.getUTCMonth() + 1, x <<= 5, x |= $.getUTCDate(), B && (j = i(1, 1) + i(c(C), 4) + A, N += "up" + i(j.length, 2) + j), E && (L = i(1, 1) + i(c(T), 4) + _, N += "uc" + i(L.length, 2) + L);
|
|
82345
|
-
var
|
|
82346
|
-
return
|
|
82347
|
-
\0`,
|
|
82341
|
+
var ce = "";
|
|
82342
|
+
return ce += `
|
|
82343
|
+
\0`, ce += i(z, 2), ce += w.magic, ce += i(v, 2), ce += i(x, 2), ce += i(H.crc32, 4), ce += i(H.compressedSize, 4), ce += i(H.uncompressedSize, 4), ce += i(C.length, 2), ce += i(N.length, 2), { fileRecord: d.LOCAL_FILE_HEADER + ce + C + N, dirRecord: d.CENTRAL_FILE_HEADER + i(Q, 2) + ce + i(T.length, 2) + "\0\0\0\0" + i(R, 4) + i(m, 4) + C + N + T };
|
|
82348
82344
|
}
|
|
82349
82345
|
var a = n("../utils"), l = n("../stream/GenericWorker"), u = n("../utf8"), c = n("../crc32"), d = n("../signature");
|
|
82350
82346
|
function p(h, f, g, m) {
|
|
@@ -83588,28 +83584,28 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
83588
83584
|
function Q(O, ae) {
|
|
83589
83585
|
O.pending_buf[O.pending++] = ae;
|
|
83590
83586
|
}
|
|
83591
|
-
function
|
|
83587
|
+
function ce(O, ae) {
|
|
83592
83588
|
O.pending_buf[O.pending++] = ae >>> 8 & 255, O.pending_buf[O.pending++] = 255 & ae;
|
|
83593
83589
|
}
|
|
83594
83590
|
function ee(O, ae) {
|
|
83595
|
-
var le, J, G = O.max_chain_length,
|
|
83591
|
+
var le, J, G = O.max_chain_length, ue = O.strstart, ve = O.prev_length, we = O.nice_match, fe = O.strstart > O.w_size - T ? O.strstart - (O.w_size - T) : 0, de = O.window, oe = O.w_mask, he = O.prev, I = O.strstart + M, q = de[ue + ve - 1], te = de[ue + ve];
|
|
83596
83592
|
O.prev_length >= O.good_match && (G >>= 2), we > O.lookahead && (we = O.lookahead);
|
|
83597
83593
|
do
|
|
83598
|
-
if (de[(le = ae) + ve] === te && de[le + ve - 1] === q && de[le] === de[
|
|
83599
|
-
|
|
83594
|
+
if (de[(le = ae) + ve] === te && de[le + ve - 1] === q && de[le] === de[ue] && de[++le] === de[ue + 1]) {
|
|
83595
|
+
ue += 2, le++;
|
|
83600
83596
|
do
|
|
83601
83597
|
;
|
|
83602
|
-
while (de[++
|
|
83603
|
-
if (J = M - (I -
|
|
83598
|
+
while (de[++ue] === de[++le] && de[++ue] === de[++le] && de[++ue] === de[++le] && de[++ue] === de[++le] && de[++ue] === de[++le] && de[++ue] === de[++le] && de[++ue] === de[++le] && de[++ue] === de[++le] && ue < I);
|
|
83599
|
+
if (J = M - (I - ue), ue = I - M, ve < J) {
|
|
83604
83600
|
if (O.match_start = ae, we <= (ve = J)) break;
|
|
83605
|
-
q = de[
|
|
83601
|
+
q = de[ue + ve - 1], te = de[ue + ve];
|
|
83606
83602
|
}
|
|
83607
83603
|
}
|
|
83608
83604
|
while ((ae = he[ae & oe]) > fe && --G != 0);
|
|
83609
83605
|
return ve <= O.lookahead ? ve : O.lookahead;
|
|
83610
83606
|
}
|
|
83611
83607
|
function V(O) {
|
|
83612
|
-
var ae, le, J, G,
|
|
83608
|
+
var ae, le, J, G, ue, ve, we, fe, de, oe, he = O.w_size;
|
|
83613
83609
|
do {
|
|
83614
83610
|
if (G = O.window_size - O.lookahead - O.strstart, O.strstart >= he + (he - T)) {
|
|
83615
83611
|
for (s.arraySet(O.window, O.window, he, he, 0), O.match_start -= he, O.strstart -= he, O.block_start -= he, ae = le = O.hash_size; J = O.head[--ae], O.head[ae] = he <= J ? J - he : 0, --le; ) ;
|
|
@@ -83617,7 +83613,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
83617
83613
|
G += he;
|
|
83618
83614
|
}
|
|
83619
83615
|
if (O.strm.avail_in === 0) break;
|
|
83620
|
-
if (ve = O.strm, we = O.window, fe = O.strstart + O.lookahead, de = G, oe = void 0, oe = ve.avail_in, de < oe && (oe = de), le = oe === 0 ? 0 : (ve.avail_in -= oe, s.arraySet(we, ve.input, ve.next_in, oe, fe), ve.state.wrap === 1 ? ve.adler = l(ve.adler, we, oe, fe) : ve.state.wrap === 2 && (ve.adler = u(ve.adler, we, oe, fe)), ve.next_in += oe, ve.total_in += oe, oe), O.lookahead += le, O.lookahead + O.insert >= A) for (
|
|
83616
|
+
if (ve = O.strm, we = O.window, fe = O.strstart + O.lookahead, de = G, oe = void 0, oe = ve.avail_in, de < oe && (oe = de), le = oe === 0 ? 0 : (ve.avail_in -= oe, s.arraySet(we, ve.input, ve.next_in, oe, fe), ve.state.wrap === 1 ? ve.adler = l(ve.adler, we, oe, fe) : ve.state.wrap === 2 && (ve.adler = u(ve.adler, we, oe, fe)), ve.next_in += oe, ve.total_in += oe, oe), O.lookahead += le, O.lookahead + O.insert >= A) for (ue = O.strstart - O.insert, O.ins_h = O.window[ue], O.ins_h = (O.ins_h << O.hash_shift ^ O.window[ue + 1]) & O.hash_mask; O.insert && (O.ins_h = (O.ins_h << O.hash_shift ^ O.window[ue + A - 1]) & O.hash_mask, O.prev[ue & O.w_mask] = O.head[O.ins_h], O.head[O.ins_h] = ue, ue++, O.insert--, !(O.lookahead + O.insert < A)); ) ;
|
|
83621
83617
|
} while (O.lookahead < T && O.strm.avail_in !== 0);
|
|
83622
83618
|
}
|
|
83623
83619
|
function Y(O, ae) {
|
|
@@ -83666,13 +83662,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
83666
83662
|
le.window_size = 2 * le.w_size, H(le.head), le.max_lazy_match = i[le.level].max_lazy, le.good_match = i[le.level].good_length, le.nice_match = i[le.level].nice_length, le.max_chain_length = i[le.level].max_chain, le.strstart = 0, le.block_start = 0, le.lookahead = 0, le.insert = 0, le.match_length = le.prev_length = A - 1, le.match_available = 0, le.ins_h = 0;
|
|
83667
83663
|
}(O.state), ae;
|
|
83668
83664
|
}
|
|
83669
|
-
function se(O, ae, le, J, G,
|
|
83665
|
+
function se(O, ae, le, J, G, ue) {
|
|
83670
83666
|
if (!O) return f;
|
|
83671
83667
|
var ve = 1;
|
|
83672
|
-
if (ae === g && (ae = 6), J < 0 ? (ve = 0, J = -J) : 15 < J && (ve = 2, J -= 16), G < 1 || v < G || le !== y || J < 8 || 15 < J || ae < 0 || 9 < ae ||
|
|
83668
|
+
if (ae === g && (ae = 6), J < 0 ? (ve = 0, J = -J) : 15 < J && (ve = 2, J -= 16), G < 1 || v < G || le !== y || J < 8 || 15 < J || ae < 0 || 9 < ae || ue < 0 || m < ue) return P(O, f);
|
|
83673
83669
|
J === 8 && (J = 9);
|
|
83674
83670
|
var we = new S();
|
|
83675
|
-
return (O.state = we).strm = O, we.wrap = ve, we.gzhead = null, we.w_bits = J, we.w_size = 1 << we.w_bits, we.w_mask = we.w_size - 1, we.hash_bits = G + 7, we.hash_size = 1 << we.hash_bits, we.hash_mask = we.hash_size - 1, we.hash_shift = ~~((we.hash_bits + A - 1) / A), we.window = new s.Buf8(2 * we.w_size), we.head = new s.Buf16(we.hash_size), we.prev = new s.Buf16(we.w_size), we.lit_bufsize = 1 << G + 6, we.pending_buf_size = 4 * we.lit_bufsize, we.pending_buf = new s.Buf8(we.pending_buf_size), we.d_buf = 1 * we.lit_bufsize, we.l_buf = 3 * we.lit_bufsize, we.level = ae, we.strategy =
|
|
83671
|
+
return (O.state = we).strm = O, we.wrap = ve, we.gzhead = null, we.w_bits = J, we.w_size = 1 << we.w_bits, we.w_mask = we.w_size - 1, we.hash_bits = G + 7, we.hash_size = 1 << we.hash_bits, we.hash_mask = we.hash_size - 1, we.hash_shift = ~~((we.hash_bits + A - 1) / A), we.window = new s.Buf8(2 * we.w_size), we.head = new s.Buf16(we.hash_size), we.prev = new s.Buf16(we.w_size), we.lit_bufsize = 1 << G + 6, we.pending_buf_size = 4 * we.lit_bufsize, we.pending_buf = new s.Buf8(we.pending_buf_size), we.d_buf = 1 * we.lit_bufsize, we.l_buf = 3 * we.lit_bufsize, we.level = ae, we.strategy = ue, we.method = le, Z(O);
|
|
83676
83672
|
}
|
|
83677
83673
|
i = [new ie(0, 0, 0, 0, function(O, ae) {
|
|
83678
83674
|
var le = 65535;
|
|
@@ -83691,13 +83687,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
83691
83687
|
}, o.deflateInit2 = se, o.deflateReset = Z, o.deflateResetKeep = K, o.deflateSetHeader = function(O, ae) {
|
|
83692
83688
|
return O && O.state ? O.state.wrap !== 2 ? f : (O.state.gzhead = ae, h) : f;
|
|
83693
83689
|
}, o.deflate = function(O, ae) {
|
|
83694
|
-
var le, J, G,
|
|
83690
|
+
var le, J, G, ue;
|
|
83695
83691
|
if (!O || !O.state || 5 < ae || ae < 0) return O ? P(O, f) : f;
|
|
83696
83692
|
if (J = O.state, !O.output || !O.input && O.avail_in !== 0 || J.status === 666 && ae !== p) return P(O, O.avail_out === 0 ? -5 : f);
|
|
83697
83693
|
if (J.strm = O, le = J.last_flush, J.last_flush = ae, J.status === _) if (J.wrap === 2) O.adler = 0, Q(J, 31), Q(J, 139), Q(J, 8), J.gzhead ? (Q(J, (J.gzhead.text ? 1 : 0) + (J.gzhead.hcrc ? 2 : 0) + (J.gzhead.extra ? 4 : 0) + (J.gzhead.name ? 8 : 0) + (J.gzhead.comment ? 16 : 0)), Q(J, 255 & J.gzhead.time), Q(J, J.gzhead.time >> 8 & 255), Q(J, J.gzhead.time >> 16 & 255), Q(J, J.gzhead.time >> 24 & 255), Q(J, J.level === 9 ? 2 : 2 <= J.strategy || J.level < 2 ? 4 : 0), Q(J, 255 & J.gzhead.os), J.gzhead.extra && J.gzhead.extra.length && (Q(J, 255 & J.gzhead.extra.length), Q(J, J.gzhead.extra.length >> 8 & 255)), J.gzhead.hcrc && (O.adler = u(O.adler, J.pending_buf, J.pending, 0)), J.gzindex = 0, J.status = 69) : (Q(J, 0), Q(J, 0), Q(J, 0), Q(J, 0), Q(J, 0), Q(J, J.level === 9 ? 2 : 2 <= J.strategy || J.level < 2 ? 4 : 0), Q(J, 3), J.status = B);
|
|
83698
83694
|
else {
|
|
83699
83695
|
var ve = y + (J.w_bits - 8 << 4) << 8;
|
|
83700
|
-
ve |= (2 <= J.strategy || J.level < 2 ? 0 : J.level < 6 ? 1 : J.level === 6 ? 2 : 3) << 6, J.strstart !== 0 && (ve |= 32), ve += 31 - ve % 31, J.status = B,
|
|
83696
|
+
ve |= (2 <= J.strategy || J.level < 2 ? 0 : J.level < 6 ? 1 : J.level === 6 ? 2 : 3) << 6, J.strstart !== 0 && (ve |= 32), ve += 31 - ve % 31, J.status = B, ce(J, ve), J.strstart !== 0 && (ce(J, O.adler >>> 16), ce(J, 65535 & O.adler)), O.adler = 1;
|
|
83701
83697
|
}
|
|
83702
83698
|
if (J.status === 69) if (J.gzhead.extra) {
|
|
83703
83699
|
for (G = J.pending; J.gzindex < (65535 & J.gzhead.extra.length) && (J.pending !== J.pending_buf_size || (J.gzhead.hcrc && J.pending > G && (O.adler = u(O.adler, J.pending_buf, J.pending - G, G)), z(O), G = J.pending, J.pending !== J.pending_buf_size)); ) Q(J, 255 & J.gzhead.extra[J.gzindex]), J.gzindex++;
|
|
@@ -83707,23 +83703,23 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
83707
83703
|
G = J.pending;
|
|
83708
83704
|
do {
|
|
83709
83705
|
if (J.pending === J.pending_buf_size && (J.gzhead.hcrc && J.pending > G && (O.adler = u(O.adler, J.pending_buf, J.pending - G, G)), z(O), G = J.pending, J.pending === J.pending_buf_size)) {
|
|
83710
|
-
|
|
83706
|
+
ue = 1;
|
|
83711
83707
|
break;
|
|
83712
83708
|
}
|
|
83713
|
-
|
|
83714
|
-
} while (
|
|
83715
|
-
J.gzhead.hcrc && J.pending > G && (O.adler = u(O.adler, J.pending_buf, J.pending - G, G)),
|
|
83709
|
+
ue = J.gzindex < J.gzhead.name.length ? 255 & J.gzhead.name.charCodeAt(J.gzindex++) : 0, Q(J, ue);
|
|
83710
|
+
} while (ue !== 0);
|
|
83711
|
+
J.gzhead.hcrc && J.pending > G && (O.adler = u(O.adler, J.pending_buf, J.pending - G, G)), ue === 0 && (J.gzindex = 0, J.status = 91);
|
|
83716
83712
|
} else J.status = 91;
|
|
83717
83713
|
if (J.status === 91) if (J.gzhead.comment) {
|
|
83718
83714
|
G = J.pending;
|
|
83719
83715
|
do {
|
|
83720
83716
|
if (J.pending === J.pending_buf_size && (J.gzhead.hcrc && J.pending > G && (O.adler = u(O.adler, J.pending_buf, J.pending - G, G)), z(O), G = J.pending, J.pending === J.pending_buf_size)) {
|
|
83721
|
-
|
|
83717
|
+
ue = 1;
|
|
83722
83718
|
break;
|
|
83723
83719
|
}
|
|
83724
|
-
|
|
83725
|
-
} while (
|
|
83726
|
-
J.gzhead.hcrc && J.pending > G && (O.adler = u(O.adler, J.pending_buf, J.pending - G, G)),
|
|
83720
|
+
ue = J.gzindex < J.gzhead.comment.length ? 255 & J.gzhead.comment.charCodeAt(J.gzindex++) : 0, Q(J, ue);
|
|
83721
|
+
} while (ue !== 0);
|
|
83722
|
+
J.gzhead.hcrc && J.pending > G && (O.adler = u(O.adler, J.pending_buf, J.pending - G, G)), ue === 0 && (J.status = 103);
|
|
83727
83723
|
} else J.status = 103;
|
|
83728
83724
|
if (J.status === 103 && (J.gzhead.hcrc ? (J.pending + 2 > J.pending_buf_size && z(O), J.pending + 2 <= J.pending_buf_size && (Q(J, 255 & O.adler), Q(J, O.adler >> 8 & 255), O.adler = 0, J.status = B)) : J.status = B), J.pending !== 0) {
|
|
83729
83725
|
if (z(O), O.avail_out === 0) return J.last_flush = -1, h;
|
|
@@ -83759,18 +83755,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
83759
83755
|
if (we !== j && we !== L || (J.status = 666), we === E || we === j) return O.avail_out === 0 && (J.last_flush = -1), h;
|
|
83760
83756
|
if (we === N && (ae === 1 ? a._tr_align(J) : ae !== 5 && (a._tr_stored_block(J, 0, 0, !1), ae === 3 && (H(J.head), J.lookahead === 0 && (J.strstart = 0, J.block_start = 0, J.insert = 0))), z(O), O.avail_out === 0)) return J.last_flush = -1, h;
|
|
83761
83757
|
}
|
|
83762
|
-
return ae !== p ? h : J.wrap <= 0 ? 1 : (J.wrap === 2 ? (Q(J, 255 & O.adler), Q(J, O.adler >> 8 & 255), Q(J, O.adler >> 16 & 255), Q(J, O.adler >> 24 & 255), Q(J, 255 & O.total_in), Q(J, O.total_in >> 8 & 255), Q(J, O.total_in >> 16 & 255), Q(J, O.total_in >> 24 & 255)) : (
|
|
83758
|
+
return ae !== p ? h : J.wrap <= 0 ? 1 : (J.wrap === 2 ? (Q(J, 255 & O.adler), Q(J, O.adler >> 8 & 255), Q(J, O.adler >> 16 & 255), Q(J, O.adler >> 24 & 255), Q(J, 255 & O.total_in), Q(J, O.total_in >> 8 & 255), Q(J, O.total_in >> 16 & 255), Q(J, O.total_in >> 24 & 255)) : (ce(J, O.adler >>> 16), ce(J, 65535 & O.adler)), z(O), 0 < J.wrap && (J.wrap = -J.wrap), J.pending !== 0 ? h : 1);
|
|
83763
83759
|
}, o.deflateEnd = function(O) {
|
|
83764
83760
|
var ae;
|
|
83765
83761
|
return O && O.state ? (ae = O.state.status) !== _ && ae !== 69 && ae !== 73 && ae !== 91 && ae !== 103 && ae !== B && ae !== 666 ? P(O, f) : (O.state = null, ae === B ? P(O, -3) : h) : f;
|
|
83766
83762
|
}, o.deflateSetDictionary = function(O, ae) {
|
|
83767
|
-
var le, J, G,
|
|
83768
|
-
if (!O || !O.state || (
|
|
83769
|
-
for (
|
|
83763
|
+
var le, J, G, ue, ve, we, fe, de, oe = ae.length;
|
|
83764
|
+
if (!O || !O.state || (ue = (le = O.state).wrap) === 2 || ue === 1 && le.status !== _ || le.lookahead) return f;
|
|
83765
|
+
for (ue === 1 && (O.adler = l(O.adler, ae, oe, 0)), le.wrap = 0, oe >= le.w_size && (ue === 0 && (H(le.head), le.strstart = 0, le.block_start = 0, le.insert = 0), de = new s.Buf8(le.w_size), s.arraySet(de, ae, oe - le.w_size, le.w_size, 0), ae = de, oe = le.w_size), ve = O.avail_in, we = O.next_in, fe = O.input, O.avail_in = oe, O.next_in = 0, O.input = ae, V(le); le.lookahead >= A; ) {
|
|
83770
83766
|
for (J = le.strstart, G = le.lookahead - (A - 1); le.ins_h = (le.ins_h << le.hash_shift ^ le.window[J + A - 1]) & le.hash_mask, le.prev[J & le.w_mask] = le.head[le.ins_h], le.head[le.ins_h] = J, J++, --G; ) ;
|
|
83771
83767
|
le.strstart = J, le.lookahead = A - 1, V(le);
|
|
83772
83768
|
}
|
|
83773
|
-
return le.strstart += le.lookahead, le.block_start = le.strstart, le.insert = le.lookahead, le.lookahead = 0, le.match_length = le.prev_length = A - 1, le.match_available = 0, O.next_in = we, O.input = fe, O.avail_in = ve, le.wrap =
|
|
83769
|
+
return le.strstart += le.lookahead, le.block_start = le.strstart, le.insert = le.lookahead, le.lookahead = 0, le.match_length = le.prev_length = A - 1, le.match_available = 0, O.next_in = we, O.input = fe, O.avail_in = ve, le.wrap = ue, h;
|
|
83774
83770
|
}, o.deflateInfo = "pako deflate (from Nodeca project)";
|
|
83775
83771
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(n, r, o) {
|
|
83776
83772
|
r.exports = function() {
|
|
@@ -83891,9 +83887,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
83891
83887
|
o.inflateReset = x, o.inflateReset2 = D, o.inflateResetKeep = v, o.inflateInit = function(_) {
|
|
83892
83888
|
return w(_, 15);
|
|
83893
83889
|
}, o.inflateInit2 = w, o.inflate = function(_, B) {
|
|
83894
|
-
var E, N, j, L, P, $, H, z, R, Q,
|
|
83890
|
+
var E, N, j, L, P, $, H, z, R, Q, ce, ee, V, Y, X, ie, S, K, Z, se, O, ae, le, J, G = 0, ue = new i.Buf8(4), ve = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
83895
83891
|
if (!_ || !_.state || !_.output || !_.input && _.avail_in !== 0) return h;
|
|
83896
|
-
(E = _.state).mode === 12 && (E.mode = 13), P = _.next_out, j = _.output, H = _.avail_out, L = _.next_in, N = _.input, $ = _.avail_in, z = E.hold, R = E.bits, Q = $,
|
|
83892
|
+
(E = _.state).mode === 12 && (E.mode = 13), P = _.next_out, j = _.output, H = _.avail_out, L = _.next_in, N = _.input, $ = _.avail_in, z = E.hold, R = E.bits, Q = $, ce = H, ae = p;
|
|
83897
83893
|
e: for (; ; ) switch (E.mode) {
|
|
83898
83894
|
case f:
|
|
83899
83895
|
if (E.wrap === 0) {
|
|
@@ -83905,7 +83901,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
83905
83901
|
$--, z += N[L++] << R, R += 8;
|
|
83906
83902
|
}
|
|
83907
83903
|
if (2 & E.wrap && z === 35615) {
|
|
83908
|
-
|
|
83904
|
+
ue[E.check = 0] = 255 & z, ue[1] = z >>> 8 & 255, E.check = a(E.check, ue, 2, 0), R = z = 0, E.mode = 2;
|
|
83909
83905
|
break;
|
|
83910
83906
|
}
|
|
83911
83907
|
if (E.flags = 0, E.head && (E.head.done = !1), !(1 & E.wrap) || (((255 & z) << 8) + (z >> 8)) % 31) {
|
|
@@ -83936,26 +83932,26 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
83936
83932
|
_.msg = "unknown header flags set", E.mode = 30;
|
|
83937
83933
|
break;
|
|
83938
83934
|
}
|
|
83939
|
-
E.head && (E.head.text = z >> 8 & 1), 512 & E.flags && (
|
|
83935
|
+
E.head && (E.head.text = z >> 8 & 1), 512 & E.flags && (ue[0] = 255 & z, ue[1] = z >>> 8 & 255, E.check = a(E.check, ue, 2, 0)), R = z = 0, E.mode = 3;
|
|
83940
83936
|
case 3:
|
|
83941
83937
|
for (; R < 32; ) {
|
|
83942
83938
|
if ($ === 0) break e;
|
|
83943
83939
|
$--, z += N[L++] << R, R += 8;
|
|
83944
83940
|
}
|
|
83945
|
-
E.head && (E.head.time = z), 512 & E.flags && (
|
|
83941
|
+
E.head && (E.head.time = z), 512 & E.flags && (ue[0] = 255 & z, ue[1] = z >>> 8 & 255, ue[2] = z >>> 16 & 255, ue[3] = z >>> 24 & 255, E.check = a(E.check, ue, 4, 0)), R = z = 0, E.mode = 4;
|
|
83946
83942
|
case 4:
|
|
83947
83943
|
for (; R < 16; ) {
|
|
83948
83944
|
if ($ === 0) break e;
|
|
83949
83945
|
$--, z += N[L++] << R, R += 8;
|
|
83950
83946
|
}
|
|
83951
|
-
E.head && (E.head.xflags = 255 & z, E.head.os = z >> 8), 512 & E.flags && (
|
|
83947
|
+
E.head && (E.head.xflags = 255 & z, E.head.os = z >> 8), 512 & E.flags && (ue[0] = 255 & z, ue[1] = z >>> 8 & 255, E.check = a(E.check, ue, 2, 0)), R = z = 0, E.mode = 5;
|
|
83952
83948
|
case 5:
|
|
83953
83949
|
if (1024 & E.flags) {
|
|
83954
83950
|
for (; R < 16; ) {
|
|
83955
83951
|
if ($ === 0) break e;
|
|
83956
83952
|
$--, z += N[L++] << R, R += 8;
|
|
83957
83953
|
}
|
|
83958
|
-
E.length = z, E.head && (E.head.extra_len = z), 512 & E.flags && (
|
|
83954
|
+
E.length = z, E.head && (E.head.extra_len = z), 512 & E.flags && (ue[0] = 255 & z, ue[1] = z >>> 8 & 255, E.check = a(E.check, ue, 2, 0)), R = z = 0;
|
|
83959
83955
|
} else E.head && (E.head.extra = null);
|
|
83960
83956
|
E.mode = 6;
|
|
83961
83957
|
case 6:
|
|
@@ -84125,7 +84121,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
84125
84121
|
E.mode = 21;
|
|
84126
84122
|
case 21:
|
|
84127
84123
|
if (6 <= $ && 258 <= H) {
|
|
84128
|
-
_.next_out = P, _.avail_out = H, _.next_in = L, _.avail_in = $, E.hold = z, E.bits = R, l(_,
|
|
84124
|
+
_.next_out = P, _.avail_out = H, _.next_in = L, _.avail_in = $, E.hold = z, E.bits = R, l(_, ce), P = _.next_out, j = _.output, H = _.avail_out, L = _.next_in, N = _.input, $ = _.avail_in, z = E.hold, R = E.bits, E.mode === 12 && (E.back = -1);
|
|
84129
84125
|
break;
|
|
84130
84126
|
}
|
|
84131
84127
|
for (E.back = 0; ie = (G = E.lencode[z & (1 << E.lenbits) - 1]) >>> 16 & 255, S = 65535 & G, !((X = G >>> 24) <= R); ) {
|
|
@@ -84193,7 +84189,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
84193
84189
|
E.mode = 25;
|
|
84194
84190
|
case 25:
|
|
84195
84191
|
if (H === 0) break e;
|
|
84196
|
-
if (ee =
|
|
84192
|
+
if (ee = ce - H, E.offset > ee) {
|
|
84197
84193
|
if ((ee = E.offset - ee) > E.whave && E.sane) {
|
|
84198
84194
|
_.msg = "invalid distance too far back", E.mode = 30;
|
|
84199
84195
|
break;
|
|
@@ -84213,7 +84209,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
84213
84209
|
if ($ === 0) break e;
|
|
84214
84210
|
$--, z |= N[L++] << R, R += 8;
|
|
84215
84211
|
}
|
|
84216
|
-
if (
|
|
84212
|
+
if (ce -= H, _.total_out += ce, E.total += ce, ce && (_.adler = E.check = E.flags ? a(E.check, j, ce, P - ce) : s(E.check, j, ce, P - ce)), ce = H, (E.flags ? z : b(z)) !== E.check) {
|
|
84217
84213
|
_.msg = "incorrect data check", E.mode = 30;
|
|
84218
84214
|
break;
|
|
84219
84215
|
}
|
|
@@ -84245,7 +84241,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
84245
84241
|
default:
|
|
84246
84242
|
return h;
|
|
84247
84243
|
}
|
|
84248
|
-
return _.next_out = P, _.avail_out = H, _.next_in = L, _.avail_in = $, E.hold = z, E.bits = R, (E.wsize ||
|
|
84244
|
+
return _.next_out = P, _.avail_out = H, _.next_in = L, _.avail_in = $, E.hold = z, E.bits = R, (E.wsize || ce !== _.avail_out && E.mode < 30 && (E.mode < 27 || B !== 4)) && T(_, _.output, _.next_out, ce - _.avail_out) ? (E.mode = 31, -4) : (Q -= _.avail_in, ce -= _.avail_out, _.total_in += Q, _.total_out += ce, E.total += ce, E.wrap && ce && (_.adler = E.check = E.flags ? a(E.check, j, ce, _.next_out - ce) : s(E.check, j, ce, _.next_out - ce)), _.data_type = E.bits + (E.last ? 64 : 0) + (E.mode === 12 ? 128 : 0) + (E.mode === 20 || E.mode === 15 ? 256 : 0), (Q == 0 && ce === 0 || B === 4) && ae === p && (ae = -5), ae);
|
|
84249
84245
|
}, o.inflateEnd = function(_) {
|
|
84250
84246
|
if (!_ || !_.state) return h;
|
|
84251
84247
|
var B = _.state;
|
|
@@ -84260,26 +84256,26 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
84260
84256
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(n, r, o) {
|
|
84261
84257
|
var i = n("../utils/common"), s = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], a = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], l = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], u = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
|
|
84262
84258
|
r.exports = function(c, d, p, h, f, g, m, b) {
|
|
84263
|
-
var y, v, x, D, w, k, C, A, M, T = b.bits, _ = 0, B = 0, E = 0, N = 0, j = 0, L = 0, P = 0, $ = 0, H = 0, z = 0, R = null, Q = 0,
|
|
84264
|
-
for (_ = 0; _ <= 15; _++)
|
|
84265
|
-
for (B = 0; B < h; B++)
|
|
84266
|
-
for (j = T, N = 15; 1 <= N &&
|
|
84259
|
+
var y, v, x, D, w, k, C, A, M, T = b.bits, _ = 0, B = 0, E = 0, N = 0, j = 0, L = 0, P = 0, $ = 0, H = 0, z = 0, R = null, Q = 0, ce = new i.Buf16(16), ee = new i.Buf16(16), V = null, Y = 0;
|
|
84260
|
+
for (_ = 0; _ <= 15; _++) ce[_] = 0;
|
|
84261
|
+
for (B = 0; B < h; B++) ce[d[p + B]]++;
|
|
84262
|
+
for (j = T, N = 15; 1 <= N && ce[N] === 0; N--) ;
|
|
84267
84263
|
if (N < j && (j = N), N === 0) return f[g++] = 20971520, f[g++] = 20971520, b.bits = 1, 0;
|
|
84268
|
-
for (E = 1; E < N &&
|
|
84269
|
-
for (j < E && (j = E), _ = $ = 1; _ <= 15; _++) if ($ <<= 1, ($ -=
|
|
84264
|
+
for (E = 1; E < N && ce[E] === 0; E++) ;
|
|
84265
|
+
for (j < E && (j = E), _ = $ = 1; _ <= 15; _++) if ($ <<= 1, ($ -= ce[_]) < 0) return -1;
|
|
84270
84266
|
if (0 < $ && (c === 0 || N !== 1)) return -1;
|
|
84271
|
-
for (ee[1] = 0, _ = 1; _ < 15; _++) ee[_ + 1] = ee[_] +
|
|
84267
|
+
for (ee[1] = 0, _ = 1; _ < 15; _++) ee[_ + 1] = ee[_] + ce[_];
|
|
84272
84268
|
for (B = 0; B < h; B++) d[p + B] !== 0 && (m[ee[d[p + B]]++] = B);
|
|
84273
84269
|
if (k = c === 0 ? (R = V = m, 19) : c === 1 ? (R = s, Q -= 257, V = a, Y -= 257, 256) : (R = l, V = u, -1), _ = E, w = g, P = B = z = 0, x = -1, D = (H = 1 << (L = j)) - 1, c === 1 && 852 < H || c === 2 && 592 < H) return 1;
|
|
84274
84270
|
for (; ; ) {
|
|
84275
84271
|
for (C = _ - P, M = m[B] < k ? (A = 0, m[B]) : m[B] > k ? (A = V[Y + m[B]], R[Q + m[B]]) : (A = 96, 0), y = 1 << _ - P, E = v = 1 << L; f[w + (z >> P) + (v -= y)] = C << 24 | A << 16 | M | 0, v !== 0; ) ;
|
|
84276
84272
|
for (y = 1 << _ - 1; z & y; ) y >>= 1;
|
|
84277
|
-
if (y !== 0 ? (z &= y - 1, z += y) : z = 0, B++, --
|
|
84273
|
+
if (y !== 0 ? (z &= y - 1, z += y) : z = 0, B++, --ce[_] == 0) {
|
|
84278
84274
|
if (_ === N) break;
|
|
84279
84275
|
_ = d[p + m[B]];
|
|
84280
84276
|
}
|
|
84281
84277
|
if (j < _ && (z & D) !== x) {
|
|
84282
|
-
for (P === 0 && (P = j), w += E, $ = 1 << (L = _ - P); L + P < N && !(($ -=
|
|
84278
|
+
for (P === 0 && (P = j), w += E, $ = 1 << (L = _ - P); L + P < N && !(($ -= ce[L + P]) <= 0); ) L++, $ <<= 1;
|
|
84283
84279
|
if (H += 1 << L, c === 1 && 852 < H || c === 2 && 592 < H) return 1;
|
|
84284
84280
|
f[x = z & D] = j << 24 | L << 16 | w - g | 0;
|
|
84285
84281
|
}
|
|
@@ -84291,7 +84287,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
84291
84287
|
}, {}], 52: [function(n, r, o) {
|
|
84292
84288
|
var i = n("../utils/common"), s = 0, a = 1;
|
|
84293
84289
|
function l(G) {
|
|
84294
|
-
for (var
|
|
84290
|
+
for (var ue = G.length; 0 <= --ue; ) G[ue] = 0;
|
|
84295
84291
|
}
|
|
84296
84292
|
var u = 0, c = 29, d = 256, p = d + 1 + c, h = 30, f = 19, g = 2 * p + 1, m = 15, b = 16, y = 7, v = 256, x = 16, D = 17, w = 18, k = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], C = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], A = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], M = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], T = new Array(2 * (p + 2));
|
|
84297
84293
|
l(T);
|
|
@@ -84304,64 +84300,64 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
84304
84300
|
var N = new Array(c);
|
|
84305
84301
|
l(N);
|
|
84306
84302
|
var j, L, P, $ = new Array(h);
|
|
84307
|
-
function H(G,
|
|
84308
|
-
this.static_tree = G, this.extra_bits =
|
|
84303
|
+
function H(G, ue, ve, we, fe) {
|
|
84304
|
+
this.static_tree = G, this.extra_bits = ue, this.extra_base = ve, this.elems = we, this.max_length = fe, this.has_stree = G && G.length;
|
|
84309
84305
|
}
|
|
84310
|
-
function z(G,
|
|
84311
|
-
this.dyn_tree = G, this.max_code = 0, this.stat_desc =
|
|
84306
|
+
function z(G, ue) {
|
|
84307
|
+
this.dyn_tree = G, this.max_code = 0, this.stat_desc = ue;
|
|
84312
84308
|
}
|
|
84313
84309
|
function R(G) {
|
|
84314
84310
|
return G < 256 ? B[G] : B[256 + (G >>> 7)];
|
|
84315
84311
|
}
|
|
84316
|
-
function Q(G,
|
|
84317
|
-
G.pending_buf[G.pending++] = 255 &
|
|
84312
|
+
function Q(G, ue) {
|
|
84313
|
+
G.pending_buf[G.pending++] = 255 & ue, G.pending_buf[G.pending++] = ue >>> 8 & 255;
|
|
84318
84314
|
}
|
|
84319
|
-
function
|
|
84320
|
-
G.bi_valid > b - ve ? (G.bi_buf |=
|
|
84315
|
+
function ce(G, ue, ve) {
|
|
84316
|
+
G.bi_valid > b - ve ? (G.bi_buf |= ue << G.bi_valid & 65535, Q(G, G.bi_buf), G.bi_buf = ue >> b - G.bi_valid, G.bi_valid += ve - b) : (G.bi_buf |= ue << G.bi_valid & 65535, G.bi_valid += ve);
|
|
84321
84317
|
}
|
|
84322
|
-
function ee(G,
|
|
84323
|
-
|
|
84318
|
+
function ee(G, ue, ve) {
|
|
84319
|
+
ce(G, ve[2 * ue], ve[2 * ue + 1]);
|
|
84324
84320
|
}
|
|
84325
|
-
function V(G,
|
|
84326
|
-
for (var ve = 0; ve |= 1 & G, G >>>= 1, ve <<= 1, 0 < --
|
|
84321
|
+
function V(G, ue) {
|
|
84322
|
+
for (var ve = 0; ve |= 1 & G, G >>>= 1, ve <<= 1, 0 < --ue; ) ;
|
|
84327
84323
|
return ve >>> 1;
|
|
84328
84324
|
}
|
|
84329
|
-
function Y(G,
|
|
84325
|
+
function Y(G, ue, ve) {
|
|
84330
84326
|
var we, fe, de = new Array(m + 1), oe = 0;
|
|
84331
84327
|
for (we = 1; we <= m; we++) de[we] = oe = oe + ve[we - 1] << 1;
|
|
84332
|
-
for (fe = 0; fe <=
|
|
84328
|
+
for (fe = 0; fe <= ue; fe++) {
|
|
84333
84329
|
var he = G[2 * fe + 1];
|
|
84334
84330
|
he !== 0 && (G[2 * fe] = V(de[he]++, he));
|
|
84335
84331
|
}
|
|
84336
84332
|
}
|
|
84337
84333
|
function X(G) {
|
|
84338
|
-
var
|
|
84339
|
-
for (
|
|
84340
|
-
for (
|
|
84341
|
-
for (
|
|
84334
|
+
var ue;
|
|
84335
|
+
for (ue = 0; ue < p; ue++) G.dyn_ltree[2 * ue] = 0;
|
|
84336
|
+
for (ue = 0; ue < h; ue++) G.dyn_dtree[2 * ue] = 0;
|
|
84337
|
+
for (ue = 0; ue < f; ue++) G.bl_tree[2 * ue] = 0;
|
|
84342
84338
|
G.dyn_ltree[2 * v] = 1, G.opt_len = G.static_len = 0, G.last_lit = G.matches = 0;
|
|
84343
84339
|
}
|
|
84344
84340
|
function ie(G) {
|
|
84345
84341
|
8 < G.bi_valid ? Q(G, G.bi_buf) : 0 < G.bi_valid && (G.pending_buf[G.pending++] = G.bi_buf), G.bi_buf = 0, G.bi_valid = 0;
|
|
84346
84342
|
}
|
|
84347
|
-
function S(G,
|
|
84348
|
-
var fe = 2 *
|
|
84349
|
-
return G[fe] < G[de] || G[fe] === G[de] && we[
|
|
84343
|
+
function S(G, ue, ve, we) {
|
|
84344
|
+
var fe = 2 * ue, de = 2 * ve;
|
|
84345
|
+
return G[fe] < G[de] || G[fe] === G[de] && we[ue] <= we[ve];
|
|
84350
84346
|
}
|
|
84351
|
-
function K(G,
|
|
84352
|
-
for (var we = G.heap[ve], fe = ve << 1; fe <= G.heap_len && (fe < G.heap_len && S(
|
|
84347
|
+
function K(G, ue, ve) {
|
|
84348
|
+
for (var we = G.heap[ve], fe = ve << 1; fe <= G.heap_len && (fe < G.heap_len && S(ue, G.heap[fe + 1], G.heap[fe], G.depth) && fe++, !S(ue, we, G.heap[fe], G.depth)); ) G.heap[ve] = G.heap[fe], ve = fe, fe <<= 1;
|
|
84353
84349
|
G.heap[ve] = we;
|
|
84354
84350
|
}
|
|
84355
|
-
function Z(G,
|
|
84351
|
+
function Z(G, ue, ve) {
|
|
84356
84352
|
var we, fe, de, oe, he = 0;
|
|
84357
|
-
if (G.last_lit !== 0) for (; we = G.pending_buf[G.d_buf + 2 * he] << 8 | G.pending_buf[G.d_buf + 2 * he + 1], fe = G.pending_buf[G.l_buf + he], he++, we === 0 ? ee(G, fe,
|
|
84358
|
-
ee(G, v,
|
|
84353
|
+
if (G.last_lit !== 0) for (; we = G.pending_buf[G.d_buf + 2 * he] << 8 | G.pending_buf[G.d_buf + 2 * he + 1], fe = G.pending_buf[G.l_buf + he], he++, we === 0 ? ee(G, fe, ue) : (ee(G, (de = E[fe]) + d + 1, ue), (oe = k[de]) !== 0 && ce(G, fe -= N[de], oe), ee(G, de = R(--we), ve), (oe = C[de]) !== 0 && ce(G, we -= $[de], oe)), he < G.last_lit; ) ;
|
|
84354
|
+
ee(G, v, ue);
|
|
84359
84355
|
}
|
|
84360
|
-
function se(G,
|
|
84361
|
-
var ve, we, fe, de =
|
|
84356
|
+
function se(G, ue) {
|
|
84357
|
+
var ve, we, fe, de = ue.dyn_tree, oe = ue.stat_desc.static_tree, he = ue.stat_desc.has_stree, I = ue.stat_desc.elems, q = -1;
|
|
84362
84358
|
for (G.heap_len = 0, G.heap_max = g, ve = 0; ve < I; ve++) de[2 * ve] !== 0 ? (G.heap[++G.heap_len] = q = ve, G.depth[ve] = 0) : de[2 * ve + 1] = 0;
|
|
84363
84359
|
for (; G.heap_len < 2; ) de[2 * (fe = G.heap[++G.heap_len] = q < 2 ? ++q : 0)] = 1, G.depth[fe] = 0, G.opt_len--, he && (G.static_len -= oe[2 * fe + 1]);
|
|
84364
|
-
for (
|
|
84360
|
+
for (ue.max_code = q, ve = G.heap_len >> 1; 1 <= ve; ve--) K(G, de, ve);
|
|
84365
84361
|
for (fe = I; ve = G.heap[1], G.heap[1] = G.heap[G.heap_len--], K(G, de, 1), we = G.heap[1], G.heap[--G.heap_max] = ve, G.heap[--G.heap_max] = we, de[2 * fe] = de[2 * ve] + de[2 * we], G.depth[fe] = (G.depth[ve] >= G.depth[we] ? G.depth[ve] : G.depth[we]) + 1, de[2 * ve + 1] = de[2 * we + 1] = fe, G.heap[1] = fe++, K(G, de, 1), 2 <= G.heap_len; ) ;
|
|
84366
84362
|
G.heap[--G.heap_max] = G.heap[1], function(te, ne) {
|
|
84367
84363
|
var me, be, ke, Ce, ge, Ae, je = ne.dyn_tree, Le = ne.max_code, We = ne.stat_desc.static_tree, yt = ne.stat_desc.has_stree, dt = ne.stat_desc.extra_bits, rt = ne.stat_desc.extra_base, Qe = ne.stat_desc.max_length, qe = 0;
|
|
@@ -84374,42 +84370,42 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
84374
84370
|
} while (0 < qe);
|
|
84375
84371
|
for (Ce = Qe; Ce !== 0; Ce--) for (be = te.bl_count[Ce]; be !== 0; ) Le < (ke = te.heap[--me]) || (je[2 * ke + 1] !== Ce && (te.opt_len += (Ce - je[2 * ke + 1]) * je[2 * ke], je[2 * ke + 1] = Ce), be--);
|
|
84376
84372
|
}
|
|
84377
|
-
}(G,
|
|
84373
|
+
}(G, ue), Y(de, q, G.bl_count);
|
|
84378
84374
|
}
|
|
84379
|
-
function O(G,
|
|
84380
|
-
var we, fe, de = -1, oe =
|
|
84381
|
-
for (oe === 0 && (I = 138, q = 3),
|
|
84375
|
+
function O(G, ue, ve) {
|
|
84376
|
+
var we, fe, de = -1, oe = ue[1], he = 0, I = 7, q = 4;
|
|
84377
|
+
for (oe === 0 && (I = 138, q = 3), ue[2 * (ve + 1) + 1] = 65535, we = 0; we <= ve; we++) fe = oe, oe = ue[2 * (we + 1) + 1], ++he < I && fe === oe || (he < q ? G.bl_tree[2 * fe] += he : fe !== 0 ? (fe !== de && G.bl_tree[2 * fe]++, G.bl_tree[2 * x]++) : he <= 10 ? G.bl_tree[2 * D]++ : G.bl_tree[2 * w]++, de = fe, q = (he = 0) === oe ? (I = 138, 3) : fe === oe ? (I = 6, 3) : (I = 7, 4));
|
|
84382
84378
|
}
|
|
84383
|
-
function ae(G,
|
|
84384
|
-
var we, fe, de = -1, oe =
|
|
84385
|
-
for (oe === 0 && (I = 138, q = 3), we = 0; we <= ve; we++) if (fe = oe, oe =
|
|
84379
|
+
function ae(G, ue, ve) {
|
|
84380
|
+
var we, fe, de = -1, oe = ue[1], he = 0, I = 7, q = 4;
|
|
84381
|
+
for (oe === 0 && (I = 138, q = 3), we = 0; we <= ve; we++) if (fe = oe, oe = ue[2 * (we + 1) + 1], !(++he < I && fe === oe)) {
|
|
84386
84382
|
if (he < q) for (; ee(G, fe, G.bl_tree), --he != 0; ) ;
|
|
84387
|
-
else fe !== 0 ? (fe !== de && (ee(G, fe, G.bl_tree), he--), ee(G, x, G.bl_tree),
|
|
84383
|
+
else fe !== 0 ? (fe !== de && (ee(G, fe, G.bl_tree), he--), ee(G, x, G.bl_tree), ce(G, he - 3, 2)) : he <= 10 ? (ee(G, D, G.bl_tree), ce(G, he - 3, 3)) : (ee(G, w, G.bl_tree), ce(G, he - 11, 7));
|
|
84388
84384
|
de = fe, q = (he = 0) === oe ? (I = 138, 3) : fe === oe ? (I = 6, 3) : (I = 7, 4);
|
|
84389
84385
|
}
|
|
84390
84386
|
}
|
|
84391
84387
|
l($);
|
|
84392
84388
|
var le = !1;
|
|
84393
|
-
function J(G,
|
|
84394
|
-
|
|
84389
|
+
function J(G, ue, ve, we) {
|
|
84390
|
+
ce(G, (u << 1) + (we ? 1 : 0), 3), function(fe, de, oe, he) {
|
|
84395
84391
|
ie(fe), Q(fe, oe), Q(fe, ~oe), i.arraySet(fe.pending_buf, fe.window, de, oe, fe.pending), fe.pending += oe;
|
|
84396
|
-
}(G,
|
|
84392
|
+
}(G, ue, ve);
|
|
84397
84393
|
}
|
|
84398
84394
|
o._tr_init = function(G) {
|
|
84399
84395
|
le || (function() {
|
|
84400
|
-
var
|
|
84401
|
-
for (fe = we = 0; fe < c - 1; fe++) for (N[fe] = we,
|
|
84402
|
-
for (E[we - 1] = fe, fe = de = 0; fe < 16; fe++) for ($[fe] = de,
|
|
84403
|
-
for (de >>= 7; fe < h; fe++) for ($[fe] = de << 7,
|
|
84396
|
+
var ue, ve, we, fe, de, oe = new Array(m + 1);
|
|
84397
|
+
for (fe = we = 0; fe < c - 1; fe++) for (N[fe] = we, ue = 0; ue < 1 << k[fe]; ue++) E[we++] = fe;
|
|
84398
|
+
for (E[we - 1] = fe, fe = de = 0; fe < 16; fe++) for ($[fe] = de, ue = 0; ue < 1 << C[fe]; ue++) B[de++] = fe;
|
|
84399
|
+
for (de >>= 7; fe < h; fe++) for ($[fe] = de << 7, ue = 0; ue < 1 << C[fe] - 7; ue++) B[256 + de++] = fe;
|
|
84404
84400
|
for (ve = 0; ve <= m; ve++) oe[ve] = 0;
|
|
84405
|
-
for (
|
|
84406
|
-
for (;
|
|
84407
|
-
for (;
|
|
84408
|
-
for (;
|
|
84409
|
-
for (Y(T, p + 1, oe),
|
|
84401
|
+
for (ue = 0; ue <= 143; ) T[2 * ue + 1] = 8, ue++, oe[8]++;
|
|
84402
|
+
for (; ue <= 255; ) T[2 * ue + 1] = 9, ue++, oe[9]++;
|
|
84403
|
+
for (; ue <= 279; ) T[2 * ue + 1] = 7, ue++, oe[7]++;
|
|
84404
|
+
for (; ue <= 287; ) T[2 * ue + 1] = 8, ue++, oe[8]++;
|
|
84405
|
+
for (Y(T, p + 1, oe), ue = 0; ue < h; ue++) _[2 * ue + 1] = 5, _[2 * ue] = V(ue, 5);
|
|
84410
84406
|
j = new H(T, k, d + 1, p, m), L = new H(_, C, 0, h, m), P = new H(new Array(0), A, 0, f, y);
|
|
84411
84407
|
}(), le = !0), G.l_desc = new z(G.dyn_ltree, j), G.d_desc = new z(G.dyn_dtree, L), G.bl_desc = new z(G.bl_tree, P), G.bi_buf = 0, G.bi_valid = 0, X(G);
|
|
84412
|
-
}, o._tr_stored_block = J, o._tr_flush_block = function(G,
|
|
84408
|
+
}, o._tr_stored_block = J, o._tr_flush_block = function(G, ue, ve, we) {
|
|
84413
84409
|
var fe, de, oe = 0;
|
|
84414
84410
|
0 < G.level ? (G.strm.data_type === 2 && (G.strm.data_type = function(he) {
|
|
84415
84411
|
var I, q = 4093624447;
|
|
@@ -84421,16 +84417,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
84421
84417
|
var I;
|
|
84422
84418
|
for (O(he, he.dyn_ltree, he.l_desc.max_code), O(he, he.dyn_dtree, he.d_desc.max_code), se(he, he.bl_desc), I = f - 1; 3 <= I && he.bl_tree[2 * M[I] + 1] === 0; I--) ;
|
|
84423
84419
|
return he.opt_len += 3 * (I + 1) + 5 + 5 + 4, I;
|
|
84424
|
-
}(G), fe = G.opt_len + 3 + 7 >>> 3, (de = G.static_len + 3 + 7 >>> 3) <= fe && (fe = de)) : fe = de = ve + 5, ve + 4 <= fe &&
|
|
84420
|
+
}(G), fe = G.opt_len + 3 + 7 >>> 3, (de = G.static_len + 3 + 7 >>> 3) <= fe && (fe = de)) : fe = de = ve + 5, ve + 4 <= fe && ue !== -1 ? J(G, ue, ve, we) : G.strategy === 4 || de === fe ? (ce(G, 2 + (we ? 1 : 0), 3), Z(G, T, _)) : (ce(G, 4 + (we ? 1 : 0), 3), function(he, I, q, te) {
|
|
84425
84421
|
var ne;
|
|
84426
|
-
for (
|
|
84422
|
+
for (ce(he, I - 257, 5), ce(he, q - 1, 5), ce(he, te - 4, 4), ne = 0; ne < te; ne++) ce(he, he.bl_tree[2 * M[ne] + 1], 3);
|
|
84427
84423
|
ae(he, he.dyn_ltree, I - 1), ae(he, he.dyn_dtree, q - 1);
|
|
84428
84424
|
}(G, G.l_desc.max_code + 1, G.d_desc.max_code + 1, oe + 1), Z(G, G.dyn_ltree, G.dyn_dtree)), X(G), we && ie(G);
|
|
84429
|
-
}, o._tr_tally = function(G,
|
|
84430
|
-
return G.pending_buf[G.d_buf + 2 * G.last_lit] =
|
|
84425
|
+
}, o._tr_tally = function(G, ue, ve) {
|
|
84426
|
+
return G.pending_buf[G.d_buf + 2 * G.last_lit] = ue >>> 8 & 255, G.pending_buf[G.d_buf + 2 * G.last_lit + 1] = 255 & ue, G.pending_buf[G.l_buf + G.last_lit] = 255 & ve, G.last_lit++, ue === 0 ? G.dyn_ltree[2 * ve]++ : (G.matches++, ue--, G.dyn_ltree[2 * (E[ve] + d + 1)]++, G.dyn_dtree[2 * R(ue)]++), G.last_lit === G.lit_bufsize - 1;
|
|
84431
84427
|
}, o._tr_align = function(G) {
|
|
84432
|
-
|
|
84433
|
-
|
|
84428
|
+
ce(G, 2, 3), ee(G, v, T), function(ue) {
|
|
84429
|
+
ue.bi_valid === 16 ? (Q(ue, ue.bi_buf), ue.bi_buf = 0, ue.bi_valid = 0) : 8 <= ue.bi_valid && (ue.pending_buf[ue.pending++] = 255 & ue.bi_buf, ue.bi_buf >>= 8, ue.bi_valid -= 8);
|
|
84434
84430
|
}(G);
|
|
84435
84431
|
};
|
|
84436
84432
|
}, { "../utils/common": 41 }], 53: [function(n, r, o) {
|
|
@@ -90983,12 +90979,12 @@ function YO(e) {
|
|
|
90983
90979
|
return w(Z, "w:tblStyle", "Table", u.findTableStyleById);
|
|
90984
90980
|
}
|
|
90985
90981
|
function w(Z, se, O, ae) {
|
|
90986
|
-
var le = [], J = Z.first(se), G = null,
|
|
90982
|
+
var le = [], J = Z.first(se), G = null, ue = null;
|
|
90987
90983
|
if (J && (G = J.attributes["w:val"], G)) {
|
|
90988
90984
|
var ve = ae(G);
|
|
90989
|
-
ve ?
|
|
90985
|
+
ve ? ue = ve.name : le.push(K(O, G));
|
|
90990
90986
|
}
|
|
90991
|
-
return t2({ styleId: G, name:
|
|
90987
|
+
return t2({ styleId: G, name: ue }, le);
|
|
90992
90988
|
}
|
|
90993
90989
|
function k(Z) {
|
|
90994
90990
|
var se = Z.attributes["w:fldCharType"];
|
|
@@ -91027,8 +91023,8 @@ function YO(e) {
|
|
|
91027
91023
|
return { type: "hyperlink", options: { anchor: ae[1] } };
|
|
91028
91024
|
var le = /\s*FORMCHECKBOX\s*/.exec(Z);
|
|
91029
91025
|
if (le) {
|
|
91030
|
-
var J = se.firstOrEmpty("w:ffData").firstOrEmpty("w:checkBox"), G = J.first("w:checked"),
|
|
91031
|
-
return { type: "checkbox", checked:
|
|
91026
|
+
var J = se.firstOrEmpty("w:ffData").firstOrEmpty("w:checkBox"), G = J.first("w:checked"), ue = G == null ? m(J.first("w:default")) : m(G);
|
|
91027
|
+
return { type: "checkbox", checked: ue };
|
|
91032
91028
|
}
|
|
91033
91029
|
return { type: "unknown" };
|
|
91034
91030
|
}
|
|
@@ -91103,10 +91099,10 @@ function YO(e) {
|
|
|
91103
91099
|
var se = Z.attributes["r:id"], O = Z.attributes["w:anchor"];
|
|
91104
91100
|
return c(Z.children).map(function(ae) {
|
|
91105
91101
|
function le(G) {
|
|
91106
|
-
var
|
|
91102
|
+
var ue = Z.attributes["w:tgtFrame"] || null;
|
|
91107
91103
|
return new Pn.Hyperlink(
|
|
91108
91104
|
ae,
|
|
91109
|
-
Gi.extend({ targetFrame:
|
|
91105
|
+
Gi.extend({ targetFrame: ue }, G)
|
|
91110
91106
|
);
|
|
91111
91107
|
}
|
|
91112
91108
|
if (se) {
|
|
@@ -91141,13 +91137,13 @@ function YO(e) {
|
|
|
91141
91137
|
le.attributes["wordml:val"]
|
|
91142
91138
|
), G = Pn.checkbox({
|
|
91143
91139
|
checked: J
|
|
91144
|
-
}),
|
|
91140
|
+
}), ue = !1, ve = O.map(GO._elementsOfType(
|
|
91145
91141
|
Pn.types.text,
|
|
91146
91142
|
function(we) {
|
|
91147
|
-
return we.value.length > 0 && !
|
|
91143
|
+
return we.value.length > 0 && !ue ? (ue = !0, G) : we;
|
|
91148
91144
|
}
|
|
91149
91145
|
));
|
|
91150
|
-
return
|
|
91146
|
+
return ue ? ve : G;
|
|
91151
91147
|
} else
|
|
91152
91148
|
return O;
|
|
91153
91149
|
});
|
|
@@ -91163,8 +91159,8 @@ function YO(e) {
|
|
|
91163
91159
|
"v:shape": N,
|
|
91164
91160
|
"v:textbox": N,
|
|
91165
91161
|
"w:txbxContent": N,
|
|
91166
|
-
"wp:inline":
|
|
91167
|
-
"wp:anchor":
|
|
91162
|
+
"wp:inline": ce,
|
|
91163
|
+
"wp:anchor": ce,
|
|
91168
91164
|
"v:imagedata": X,
|
|
91169
91165
|
"v:group": N,
|
|
91170
91166
|
"v:rect": N
|
|
@@ -91251,7 +91247,7 @@ function YO(e) {
|
|
|
91251
91247
|
});
|
|
91252
91248
|
});
|
|
91253
91249
|
}
|
|
91254
|
-
function
|
|
91250
|
+
function ce(Z) {
|
|
91255
91251
|
var se = Z.getElementsByTagName("a:graphic").getElementsByTagName("a:graphicData").getElementsByTagName("pic:pic").getElementsByTagName("pic:blipFill").getElementsByTagName("a:blip");
|
|
91256
91252
|
return ZO(se.map(ee.bind(null, Z)));
|
|
91257
91253
|
}
|
|
@@ -92298,8 +92294,8 @@ function IOe(e, t) {
|
|
|
92298
92294
|
});
|
|
92299
92295
|
var R = {};
|
|
92300
92296
|
return uI.mapSeries(z, function(Q) {
|
|
92301
|
-
return Q.value().then(function(
|
|
92302
|
-
R[Q.id] =
|
|
92297
|
+
return Q.value().then(function(ce) {
|
|
92298
|
+
R[Q.id] = ce;
|
|
92303
92299
|
});
|
|
92304
92300
|
}).then(function() {
|
|
92305
92301
|
function Q(ee) {
|
|
@@ -92311,11 +92307,11 @@ function IOe(e, t) {
|
|
|
92311
92307
|
] : [V];
|
|
92312
92308
|
});
|
|
92313
92309
|
}
|
|
92314
|
-
var
|
|
92310
|
+
var ce = MOe.writer({
|
|
92315
92311
|
prettyPrint: e.prettyPrint,
|
|
92316
92312
|
outputFormat: e.outputFormat
|
|
92317
92313
|
});
|
|
92318
|
-
return ln.write(
|
|
92314
|
+
return ln.write(ce, ln.simplify(Q(H))), new mk.Result(ce.asString(), $);
|
|
92319
92315
|
});
|
|
92320
92316
|
}
|
|
92321
92317
|
function c(P, $, H) {
|
|
@@ -92348,8 +92344,8 @@ function IOe(e, t) {
|
|
|
92348
92344
|
Q && R.push(Q);
|
|
92349
92345
|
}
|
|
92350
92346
|
P.isSmallCaps && R.push(g("smallCaps")), P.isAllCaps && R.push(g("allCaps")), P.isStrikethrough && R.push(g("strikethrough", "s")), P.isUnderline && R.push(g("underline")), P.verticalAlignment === G2.verticalAlignment.subscript && R.push(zi.element("sub", {}, { fresh: !1 })), P.verticalAlignment === G2.verticalAlignment.superscript && R.push(zi.element("sup", {}, { fresh: !1 })), P.isItalic && R.push(g("italic", "em")), P.isBold && R.push(g("bold", "strong"));
|
|
92351
|
-
var
|
|
92352
|
-
return ee ?
|
|
92347
|
+
var ce = zi.empty, ee = b(P);
|
|
92348
|
+
return ee ? ce = ee.to : P.styleId && $.push(cI("run", P)), R.push(ce), R.forEach(function(V) {
|
|
92353
92349
|
z = V.wrap.bind(V, z);
|
|
92354
92350
|
}), z();
|
|
92355
92351
|
}
|
|
@@ -92415,14 +92411,14 @@ function IOe(e, t) {
|
|
|
92415
92411
|
P.children.slice(0, z),
|
|
92416
92412
|
$,
|
|
92417
92413
|
du.extend({}, H, { isTableHeader: !0 })
|
|
92418
|
-
),
|
|
92414
|
+
), ce = c(
|
|
92419
92415
|
P.children.slice(z),
|
|
92420
92416
|
$,
|
|
92421
92417
|
du.extend({}, H, { isTableHeader: !1 })
|
|
92422
92418
|
);
|
|
92423
92419
|
R = [
|
|
92424
92420
|
ln.freshElement("thead", {}, Q),
|
|
92425
|
-
ln.freshElement("tbody", {},
|
|
92421
|
+
ln.freshElement("tbody", {}, ce)
|
|
92426
92422
|
];
|
|
92427
92423
|
}
|
|
92428
92424
|
return [ln.forceWrite].concat(R);
|
|
@@ -92479,13 +92475,13 @@ function IOe(e, t) {
|
|
|
92479
92475
|
}
|
|
92480
92476
|
var L = {
|
|
92481
92477
|
document: function(P, $, H) {
|
|
92482
|
-
var z = c(P.children, $, H), R = r.map(function(
|
|
92483
|
-
return P.notes.resolve(
|
|
92478
|
+
var z = c(P.children, $, H), R = r.map(function(ce) {
|
|
92479
|
+
return P.notes.resolve(ce);
|
|
92484
92480
|
}), Q = c(R, $, H);
|
|
92485
92481
|
return z.concat([
|
|
92486
92482
|
ln.freshElement("ol", {}, Q),
|
|
92487
|
-
ln.freshElement("dl", {}, ew(o, function(
|
|
92488
|
-
return E(
|
|
92483
|
+
ln.freshElement("dl", {}, ew(o, function(ce) {
|
|
92484
|
+
return E(ce, $, H);
|
|
92489
92485
|
}))
|
|
92490
92486
|
]);
|
|
92491
92487
|
},
|
|
@@ -96321,13 +96317,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = j, $ = L), P ===
|
|
|
96321
96317
|
ve.addText(we);
|
|
96322
96318
|
return;
|
|
96323
96319
|
}
|
|
96324
|
-
I = d(G.subLanguage, we, !0,
|
|
96320
|
+
I = d(G.subLanguage, we, !0, ue[G.subLanguage]), ue[G.subLanguage] = /** @type {CompiledMode} */
|
|
96325
96321
|
I._top;
|
|
96326
96322
|
} else
|
|
96327
96323
|
I = h(we, G.subLanguage.length ? G.subLanguage : null);
|
|
96328
96324
|
G.relevance > 0 && (fe += I.relevance), ve.__addSublanguage(I._emitter, I.language);
|
|
96329
96325
|
}
|
|
96330
|
-
function
|
|
96326
|
+
function ce() {
|
|
96331
96327
|
G.subLanguage != null ? Q() : R(), we = "";
|
|
96332
96328
|
}
|
|
96333
96329
|
function ee(I, q) {
|
|
@@ -96372,14 +96368,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = j, $ = L), P ===
|
|
|
96372
96368
|
for (const be of me)
|
|
96373
96369
|
if (be && (be(I, ne), ne.isMatchIgnored))
|
|
96374
96370
|
return ie(q);
|
|
96375
|
-
return te.skip ? we += q : (te.excludeBegin && (we += q),
|
|
96371
|
+
return te.skip ? we += q : (te.excludeBegin && (we += q), ce(), !te.returnBegin && !te.excludeBegin && (we = q)), Y(te, I), te.returnBegin ? 0 : q.length;
|
|
96376
96372
|
}
|
|
96377
96373
|
function K(I) {
|
|
96378
96374
|
const q = I[0], te = L.substring(I.index), ne = X(G, I, te);
|
|
96379
96375
|
if (!ne)
|
|
96380
96376
|
return CI;
|
|
96381
96377
|
const me = G;
|
|
96382
|
-
G.endScope && G.endScope._wrap ? (
|
|
96378
|
+
G.endScope && G.endScope._wrap ? (ce(), ee(q, G.endScope._wrap)) : G.endScope && G.endScope._multi ? (ce(), V(G.endScope, I)) : me.skip ? we += q : (me.returnEnd || me.excludeEnd || (we += q), ce(), me.excludeEnd && (we = q));
|
|
96383
96379
|
do
|
|
96384
96380
|
G.scope && ve.closeNode(), !G.skip && !G.subLanguage && (fe += G.relevance), G = G.parent;
|
|
96385
96381
|
while (G !== ne.parent);
|
|
@@ -96395,7 +96391,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = j, $ = L), P ===
|
|
|
96395
96391
|
function O(I, q) {
|
|
96396
96392
|
const te = q && q[0];
|
|
96397
96393
|
if (we += I, te == null)
|
|
96398
|
-
return
|
|
96394
|
+
return ce(), 0;
|
|
96399
96395
|
if (se.type === "begin" && q.type === "end" && se.index === q.index && te === "") {
|
|
96400
96396
|
if (we += L.slice(q.index, q.index + 1), !o) {
|
|
96401
96397
|
const ne = new Error(`0 width match regex (${j})`);
|
|
@@ -96425,7 +96421,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = j, $ = L), P ===
|
|
|
96425
96421
|
throw gd(i.replace("{}", j)), new Error('Unknown language: "' + j + '"');
|
|
96426
96422
|
const le = zLe(ae);
|
|
96427
96423
|
let J = "", G = $ || le;
|
|
96428
|
-
const
|
|
96424
|
+
const ue = {}, ve = new a.__emitter(a);
|
|
96429
96425
|
Z();
|
|
96430
96426
|
let we = "", fe = 0, de = 0, oe = 0, he = !1;
|
|
96431
96427
|
try {
|
|
@@ -96491,15 +96487,15 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = j, $ = L), P ===
|
|
|
96491
96487
|
function h(j, L) {
|
|
96492
96488
|
L = L || a.languages || Object.keys(t);
|
|
96493
96489
|
const P = p(j), $ = L.filter(C).filter(M).map(
|
|
96494
|
-
(
|
|
96490
|
+
(ce) => d(ce, j, !1)
|
|
96495
96491
|
);
|
|
96496
96492
|
$.unshift(P);
|
|
96497
|
-
const H = $.sort((
|
|
96498
|
-
if (
|
|
96499
|
-
if (
|
|
96500
|
-
if (C(
|
|
96493
|
+
const H = $.sort((ce, ee) => {
|
|
96494
|
+
if (ce.relevance !== ee.relevance) return ee.relevance - ce.relevance;
|
|
96495
|
+
if (ce.language && ee.language) {
|
|
96496
|
+
if (C(ce.language).supersetOf === ee.language)
|
|
96501
96497
|
return 1;
|
|
96502
|
-
if (C(ee.language).supersetOf ===
|
|
96498
|
+
if (C(ee.language).supersetOf === ce.language)
|
|
96503
96499
|
return -1;
|
|
96504
96500
|
}
|
|
96505
96501
|
return 0;
|
|
@@ -108203,7 +108199,7 @@ function gPe(e) {
|
|
|
108203
108199
|
]
|
|
108204
108200
|
};
|
|
108205
108201
|
R.contains.push(Q);
|
|
108206
|
-
const
|
|
108202
|
+
const ce = {
|
|
108207
108203
|
match: Cn(Js, /\s*:/),
|
|
108208
108204
|
keywords: "_|0",
|
|
108209
108205
|
relevance: 0
|
|
@@ -108214,7 +108210,7 @@ function gPe(e) {
|
|
|
108214
108210
|
keywords: u,
|
|
108215
108211
|
contains: [
|
|
108216
108212
|
"self",
|
|
108217
|
-
|
|
108213
|
+
ce,
|
|
108218
108214
|
...r,
|
|
108219
108215
|
B,
|
|
108220
108216
|
...c,
|
|
@@ -108379,7 +108375,7 @@ function gPe(e) {
|
|
|
108379
108375
|
]
|
|
108380
108376
|
};
|
|
108381
108377
|
for (const le of A.variants) {
|
|
108382
|
-
const J = le.contains.find((
|
|
108378
|
+
const J = le.contains.find((ue) => ue.label === "interpol");
|
|
108383
108379
|
J.keywords = u;
|
|
108384
108380
|
const G = [
|
|
108385
108381
|
...c,
|
|
@@ -110214,23 +110210,23 @@ function SPe({
|
|
|
110214
110210
|
const N = (C = this.key) == null ? void 0 : C.getState(k), j = (A = this.key) == null ? void 0 : A.getState(w.state), L = N.active && j.active && N.range.from !== j.range.from, P = !N.active && j.active, $ = N.active && !j.active, H = !P && !$ && N.query !== j.query, z = P || L && H, R = H || L, Q = $ || L && H;
|
|
110215
110211
|
if (!z && !R && !Q)
|
|
110216
110212
|
return;
|
|
110217
|
-
const
|
|
110213
|
+
const ce = Q && !z ? N : j, ee = w.dom.querySelector(`[data-decoration-id="${ce.decorationId}"]`);
|
|
110218
110214
|
m = {
|
|
110219
110215
|
editor: t,
|
|
110220
|
-
range:
|
|
110221
|
-
query:
|
|
110222
|
-
text:
|
|
110216
|
+
range: ce.range,
|
|
110217
|
+
query: ce.query,
|
|
110218
|
+
text: ce.text,
|
|
110223
110219
|
items: [],
|
|
110224
110220
|
command: (V) => d({
|
|
110225
110221
|
editor: t,
|
|
110226
|
-
range:
|
|
110222
|
+
range: ce.range,
|
|
110227
110223
|
props: V
|
|
110228
110224
|
}),
|
|
110229
110225
|
decorationNode: ee,
|
|
110230
110226
|
clientRect: v(w, ee)
|
|
110231
110227
|
}, z && ((M = b == null ? void 0 : b.onBeforeStart) == null || M.call(b, m)), R && ((T = b == null ? void 0 : b.onBeforeUpdate) == null || T.call(b, m)), (R || z) && (m.items = await p({
|
|
110232
110228
|
editor: t,
|
|
110233
|
-
query:
|
|
110229
|
+
query: ce.query
|
|
110234
110230
|
})), Q && ((_ = b == null ? void 0 : b.onExit) == null || _.call(b, m)), R && ((B = b == null ? void 0 : b.onUpdate) == null || B.call(b, m)), z && ((E = b == null ? void 0 : b.onStart) == null || E.call(b, m));
|
|
110235
110231
|
},
|
|
110236
110232
|
destroy: () => {
|
|
@@ -172460,8 +172456,8 @@ const LI = () => {
|
|
|
172460
172456
|
const G = setTimeout(() => {
|
|
172461
172457
|
if (T.current) {
|
|
172462
172458
|
T.current.focus();
|
|
172463
|
-
const
|
|
172464
|
-
T.current.setSelectionRange(
|
|
172459
|
+
const ue = T.current.value.length;
|
|
172460
|
+
T.current.setSelectionRange(ue, ue), T.current.scrollTop = T.current.scrollHeight;
|
|
172465
172461
|
}
|
|
172466
172462
|
}, 100);
|
|
172467
172463
|
return () => clearTimeout(G);
|
|
@@ -172470,13 +172466,13 @@ const LI = () => {
|
|
|
172470
172466
|
(async () => {
|
|
172471
172467
|
if (L != null && L.defaultModels)
|
|
172472
172468
|
try {
|
|
172473
|
-
const
|
|
172469
|
+
const ue = L.defaultModels.map((ve) => ({
|
|
172474
172470
|
value: ve.modelName,
|
|
172475
172471
|
label: ve.label
|
|
172476
172472
|
}));
|
|
172477
|
-
x(
|
|
172478
|
-
} catch (
|
|
172479
|
-
console.error("Error loading available models:",
|
|
172473
|
+
x(ue);
|
|
172474
|
+
} catch (ue) {
|
|
172475
|
+
console.error("Error loading available models:", ue);
|
|
172480
172476
|
}
|
|
172481
172477
|
})();
|
|
172482
172478
|
}, [L == null ? void 0 : L.defaultModels]), _e(() => {
|
|
@@ -172521,8 +172517,8 @@ ${we}`), we;
|
|
|
172521
172517
|
if (u.trim())
|
|
172522
172518
|
try {
|
|
172523
172519
|
s(!0), l(!0), f(""), p(!1), (G = L == null ? void 0 : L.onPromptUsage) == null || G.call(L);
|
|
172524
|
-
const
|
|
172525
|
-
${
|
|
172520
|
+
const ue = R(), ve = D ? `Context from document:
|
|
172521
|
+
${ue}
|
|
172526
172522
|
|
|
172527
172523
|
User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
172528
172524
|
if (L != null && L.activeModel) {
|
|
@@ -172562,8 +172558,8 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
172562
172558
|
}
|
|
172563
172559
|
} else
|
|
172564
172560
|
console.error("No active model selected");
|
|
172565
|
-
} catch (
|
|
172566
|
-
console.error("Error generating text:",
|
|
172561
|
+
} catch (ue) {
|
|
172562
|
+
console.error("Error generating text:", ue);
|
|
172567
172563
|
} finally {
|
|
172568
172564
|
s(!1), l(!1), P.current = null;
|
|
172569
172565
|
}
|
|
@@ -172573,14 +172569,14 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
172573
172569
|
R,
|
|
172574
172570
|
D,
|
|
172575
172571
|
r
|
|
172576
|
-
]),
|
|
172572
|
+
]), ce = Te(() => {
|
|
172577
172573
|
if (P.current) {
|
|
172578
172574
|
P.current.abort(), l(!1), s(!1);
|
|
172579
172575
|
const G = setTimeout(() => {
|
|
172580
172576
|
if (T.current) {
|
|
172581
172577
|
T.current.focus();
|
|
172582
|
-
const
|
|
172583
|
-
T.current.setSelectionRange(
|
|
172578
|
+
const ue = T.current.value.length;
|
|
172579
|
+
T.current.setSelectionRange(ue, ue), T.current.scrollTop = T.current.scrollHeight;
|
|
172584
172580
|
}
|
|
172585
172581
|
}, 0);
|
|
172586
172582
|
return () => clearTimeout(G);
|
|
@@ -172589,13 +172585,13 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
172589
172585
|
if (typeof n == "function") {
|
|
172590
172586
|
m(!0);
|
|
172591
172587
|
const G = setTimeout(() => {
|
|
172592
|
-
t.commands.command(({ tr:
|
|
172588
|
+
t.commands.command(({ tr: ue, dispatch: ve }) => {
|
|
172593
172589
|
if (ve) {
|
|
172594
172590
|
const we = n();
|
|
172595
172591
|
if (we !== void 0) {
|
|
172596
|
-
|
|
172597
|
-
const fe =
|
|
172598
|
-
|
|
172592
|
+
ue.delete(we, we + e.nodeSize);
|
|
172593
|
+
const fe = ue.doc.resolve(we);
|
|
172594
|
+
ue.setSelection(gt.near(fe));
|
|
172599
172595
|
} else
|
|
172600
172596
|
o();
|
|
172601
172597
|
}
|
|
@@ -172608,13 +172604,13 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
172608
172604
|
if (typeof n == "function") {
|
|
172609
172605
|
m(!0);
|
|
172610
172606
|
const G = setTimeout(() => {
|
|
172611
|
-
t.commands.command(({ tr:
|
|
172607
|
+
t.commands.command(({ tr: ue, dispatch: ve }) => {
|
|
172612
172608
|
if (ve) {
|
|
172613
172609
|
const we = n();
|
|
172614
172610
|
if (we !== void 0) {
|
|
172615
|
-
|
|
172616
|
-
const fe =
|
|
172617
|
-
|
|
172611
|
+
ue.delete(we, we + e.nodeSize);
|
|
172612
|
+
const fe = ue.doc.resolve(we);
|
|
172613
|
+
ue.setSelection(gt.near(fe));
|
|
172618
172614
|
} else
|
|
172619
172615
|
o();
|
|
172620
172616
|
}
|
|
@@ -172633,16 +172629,16 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
172633
172629
|
}, [r, u, A]), ie = Te(
|
|
172634
172630
|
(G) => {
|
|
172635
172631
|
r == null || r({ model: G });
|
|
172636
|
-
const
|
|
172632
|
+
const ue = L == null ? void 0 : L.defaultModels.find(
|
|
172637
172633
|
(ve) => ve.modelName === G
|
|
172638
172634
|
);
|
|
172639
|
-
|
|
172635
|
+
ue && (L != null && L.setActiveModel) && L.setActiveModel(ue);
|
|
172640
172636
|
},
|
|
172641
172637
|
[r, L]
|
|
172642
172638
|
), S = Te(() => {
|
|
172643
|
-
var
|
|
172639
|
+
var ue, ve;
|
|
172644
172640
|
if (r == null || r({ content: "" }), p(!1), f(""), !T.current) return;
|
|
172645
|
-
(
|
|
172641
|
+
(ue = T.current) == null || ue.focus();
|
|
172646
172642
|
const G = T.current.value.length;
|
|
172647
172643
|
(ve = T.current) == null || ve.setSelectionRange(G, G), T.current.scrollTop = T.current.scrollHeight;
|
|
172648
172644
|
}, [r]), K = Te(() => {
|
|
@@ -172656,7 +172652,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
172656
172652
|
y(!1), z && z.commands.setContent(h || M || "");
|
|
172657
172653
|
}, [z, h, M]), O = Te(
|
|
172658
172654
|
(G) => {
|
|
172659
|
-
G.key === "Enter" && (G.ctrlKey || G.metaKey) && !G.shiftKey ? (G.preventDefault(), d && ee()) : G.key === "Enter" && !G.shiftKey && !b ? (G.preventDefault(), u.trim() && Q()) : G.key === "Escape" ? (G.preventDefault(), a ?
|
|
172655
|
+
G.key === "Enter" && (G.ctrlKey || G.metaKey) && !G.shiftKey ? (G.preventDefault(), d && ee()) : G.key === "Enter" && !G.shiftKey && !b ? (G.preventDefault(), u.trim() && Q()) : G.key === "Escape" ? (G.preventDefault(), a ? ce() : V()) : G.key === " " && !u.trim() ? (G.preventDefault(), V()) : G.key === "r" && (G.ctrlKey || G.metaKey) ? (G.preventDefault(), S()) : G.key === "e" && (G.ctrlKey || G.metaKey) && (G.preventDefault(), K());
|
|
172660
172656
|
},
|
|
172661
172657
|
[
|
|
172662
172658
|
b,
|
|
@@ -172668,18 +172664,18 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
172668
172664
|
S,
|
|
172669
172665
|
K,
|
|
172670
172666
|
a,
|
|
172671
|
-
|
|
172667
|
+
ce
|
|
172672
172668
|
]
|
|
172673
172669
|
), ae = Te((G) => {
|
|
172674
172670
|
G ? localStorage.setItem("include-ddoc-context", "true") : localStorage.removeItem("include-ddoc-context");
|
|
172675
172671
|
}, []);
|
|
172676
172672
|
_e(() => {
|
|
172677
|
-
const G = (
|
|
172678
|
-
if (
|
|
172679
|
-
|
|
172673
|
+
const G = (ue) => {
|
|
172674
|
+
if (ue.key === "Escape" && a) {
|
|
172675
|
+
ue.preventDefault(), ce();
|
|
172680
172676
|
return;
|
|
172681
172677
|
}
|
|
172682
|
-
d && (
|
|
172678
|
+
d && (ue.key === "Enter" && (ue.ctrlKey || ue.metaKey) && !ue.shiftKey ? (ue.preventDefault(), ee()) : ue.key === "Escape" ? (ue.preventDefault(), V()) : ue.key === "r" && (ue.ctrlKey || ue.metaKey) ? (ue.preventDefault(), S()) : ue.key === "e" && (ue.ctrlKey || ue.metaKey) && (ue.preventDefault(), K()));
|
|
172683
172679
|
};
|
|
172684
172680
|
return window.addEventListener("keydown", G), () => window.removeEventListener("keydown", G);
|
|
172685
172681
|
}, [
|
|
@@ -172690,11 +172686,11 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
172690
172686
|
t,
|
|
172691
172687
|
K,
|
|
172692
172688
|
a,
|
|
172693
|
-
|
|
172689
|
+
ce
|
|
172694
172690
|
]), _e(() => {
|
|
172695
172691
|
if (b && z) {
|
|
172696
|
-
const G = h || M || "",
|
|
172697
|
-
z.commands.setContent(
|
|
172692
|
+
const G = h || M || "", ue = UI.render(G);
|
|
172693
|
+
z.commands.setContent(ue);
|
|
172698
172694
|
}
|
|
172699
172695
|
}, [b, z, h, M]), _e(() => {
|
|
172700
172696
|
if (i) {
|
|
@@ -172843,8 +172839,8 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
172843
172839
|
checked: D,
|
|
172844
172840
|
disabled: i,
|
|
172845
172841
|
onCheckedChange: () => w((G) => {
|
|
172846
|
-
const
|
|
172847
|
-
return ae(
|
|
172842
|
+
const ue = !G;
|
|
172843
|
+
return ae(ue), ue;
|
|
172848
172844
|
}),
|
|
172849
172845
|
className: "border text-body-sm scale-[.8]"
|
|
172850
172846
|
},
|
|
@@ -172866,7 +172862,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
172866
172862
|
/* @__PURE__ */ F.jsx(
|
|
172867
172863
|
It,
|
|
172868
172864
|
{
|
|
172869
|
-
onClick: a ?
|
|
172865
|
+
onClick: a ? ce : Q,
|
|
172870
172866
|
disabled: !u.trim() || i && !a,
|
|
172871
172867
|
className: Ve("p-2 min-w-0 rounded-full w-8 h-8"),
|
|
172872
172868
|
children: a ? /* @__PURE__ */ F.jsx(Ue, { name: "Square", size: "sm" }) : /* @__PURE__ */ F.jsx(Ue, { name: "ArrowUp", size: "sm" })
|
|
@@ -173070,7 +173066,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
173070
173066
|
externalExtensions: z,
|
|
173071
173067
|
isContentLoading: R,
|
|
173072
173068
|
activeTabId: Q,
|
|
173073
|
-
theme:
|
|
173069
|
+
theme: ce,
|
|
173074
173070
|
editorRef: ee,
|
|
173075
173071
|
initialCommentAnchors: V
|
|
173076
173072
|
}) => {
|
|
@@ -173097,7 +173093,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
173097
173093
|
externalExtensions: z,
|
|
173098
173094
|
activeTabId: Q,
|
|
173099
173095
|
initialCommentAnchors: V
|
|
173100
|
-
}), { handleCommentInteraction: G, handleCommentClick:
|
|
173096
|
+
}), { handleCommentInteraction: G, handleCommentClick: ue } = Ize({
|
|
173101
173097
|
isFocusMode: d,
|
|
173102
173098
|
onCommentInteraction: p
|
|
173103
173099
|
}), ve = Be(!0), [we, fe] = Ne([]), de = Dt(() => le, [le]);
|
|
@@ -173172,7 +173168,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
173172
173168
|
} else
|
|
173173
173169
|
return Ge.preventDefault(), window.open(Ye.href, "_blank"), !0;
|
|
173174
173170
|
}
|
|
173175
|
-
return
|
|
173171
|
+
return ue ? ue(Re, et, Ge) : !1;
|
|
173176
173172
|
},
|
|
173177
173173
|
attributes: {
|
|
173178
173174
|
spellCheck: "true"
|
|
@@ -173468,7 +173464,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
173468
173464
|
const Nt = vt.attrs["data-original-color"] || vt.attrs.color;
|
|
173469
173465
|
if (Nt.startsWith("var(--color-editor-") || Nt === "inherit")
|
|
173470
173466
|
return;
|
|
173471
|
-
const Mt = ZP(Nt,
|
|
173467
|
+
const Mt = ZP(Nt, ce);
|
|
173472
173468
|
if (Mt !== vt.attrs.color) {
|
|
173473
173469
|
xt = !0;
|
|
173474
173470
|
const Lt = vt.type.create({
|
|
@@ -173481,7 +173477,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
173481
173477
|
}), xt && (et.setMeta("addToHistory", !1), oe.view.dispatch(et));
|
|
173482
173478
|
}, 0);
|
|
173483
173479
|
return () => clearTimeout(Re);
|
|
173484
|
-
}, [oe, i, R,
|
|
173480
|
+
}, [oe, i, R, ce]), _e(() => () => {
|
|
173485
173481
|
oe && oe.destroy();
|
|
173486
173482
|
}, [oe]), Lze(oe, i, !1);
|
|
173487
173483
|
const Tt = Be(null);
|
|
@@ -173987,7 +173983,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
173987
173983
|
}
|
|
173988
173984
|
}, Q = () => {
|
|
173989
173985
|
R(ea(e));
|
|
173990
|
-
},
|
|
173986
|
+
}, ce = e.getMap(CH), ee = () => {
|
|
173991
173987
|
const V = NT(
|
|
173992
173988
|
e,
|
|
173993
173989
|
{
|
|
@@ -173997,8 +173993,8 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
173997
173993
|
);
|
|
173998
173994
|
R(V);
|
|
173999
173995
|
};
|
|
174000
|
-
return R(H), z.order.observe(Q), z.nameById.observe(Q), z.emojiById.observe(Q), z.tabState.observe(Q), z.deletedById.observe(Q),
|
|
174001
|
-
z.order.unobserve(Q), z.nameById.unobserve(Q), z.emojiById.unobserve(Q), z.tabState.unobserve(Q), z.deletedById.unobserve(Q),
|
|
173996
|
+
return R(H), z.order.observe(Q), z.nameById.observe(Q), z.emojiById.observe(Q), z.tabState.observe(Q), z.deletedById.observe(Q), ce.observeDeep(ee), () => {
|
|
173997
|
+
z.order.unobserve(Q), z.nameById.unobserve(Q), z.emojiById.unobserve(Q), z.tabState.unobserve(Q), z.deletedById.unobserve(Q), ce.unobserveDeep(ee);
|
|
174002
173998
|
};
|
|
174003
173999
|
}, [
|
|
174004
174000
|
e,
|
|
@@ -174026,11 +174022,11 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
174026
174022
|
const Q = R.toArray().indexOf(H);
|
|
174027
174023
|
if (Q === -1)
|
|
174028
174024
|
throw new Error("Tab not found in order");
|
|
174029
|
-
const
|
|
174030
|
-
|
|
174025
|
+
const ce = E1(z, H);
|
|
174026
|
+
ce && (D.current = {
|
|
174031
174027
|
tabId: H,
|
|
174032
|
-
name:
|
|
174033
|
-
emoji:
|
|
174028
|
+
name: ce.name,
|
|
174029
|
+
emoji: ce.emoji,
|
|
174034
174030
|
orderIndex: Q,
|
|
174035
174031
|
timestamp: Date.now()
|
|
174036
174032
|
});
|
|
@@ -174092,20 +174088,20 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
174092
174088
|
console.warn("Duplicate aborted: tab does not exist", H);
|
|
174093
174089
|
return;
|
|
174094
174090
|
}
|
|
174095
|
-
const
|
|
174091
|
+
const ce = WI(), ee = `${Q.name} (Copy)`, V = Q.emoji;
|
|
174096
174092
|
return e.transact(() => {
|
|
174097
|
-
const Y = e.getXmlFragment(H), X = e.getXmlFragment(
|
|
174093
|
+
const Y = e.getXmlFragment(H), X = e.getXmlFragment(ce), ie = zge(Y);
|
|
174098
174094
|
ie.length > 0 && X.insert(0, ie);
|
|
174099
174095
|
const S = R.toArray().indexOf(H);
|
|
174100
|
-
R.insert(S + 1, [
|
|
174101
|
-
}), b(
|
|
174096
|
+
R.insert(S + 1, [ce]), z.nameById.set(ce, ee), z.emojiById.set(ce, V), i && z.tabState.set("activeTabId", ce);
|
|
174097
|
+
}), b(ce), u == null || u(), ce;
|
|
174102
174098
|
},
|
|
174103
174099
|
[e, i, u]
|
|
174104
174100
|
), P = Te(
|
|
174105
174101
|
(H, z) => {
|
|
174106
|
-
const { order: R } = ea(e), Q = R.toArray(),
|
|
174107
|
-
|
|
174108
|
-
R.delete(
|
|
174102
|
+
const { order: R } = ea(e), Q = R.toArray(), ce = Q.indexOf(z), ee = Q.indexOf(H);
|
|
174103
|
+
ce === -1 || ee === -1 || (e.transact(() => {
|
|
174104
|
+
R.delete(ce, 1), R.insert(ee, [z]);
|
|
174109
174105
|
}), u == null || u());
|
|
174110
174106
|
},
|
|
174111
174107
|
[e, u]
|
|
@@ -177558,8 +177554,8 @@ var KQ = {};
|
|
|
177558
177554
|
a[R] = t.readUint32BE(d, Q), l[R] = t.readUint32BE(d, Q + 4);
|
|
177559
177555
|
}
|
|
177560
177556
|
for (var R = 0; R < 80; R++) {
|
|
177561
|
-
var
|
|
177562
|
-
if (E = D, N = B, P = N & 65535, $ = N >>> 16, H = E & 65535, z = E >>> 16, E = (y >>> 14 | M << 18) ^ (y >>> 18 | M << 14) ^ (M >>> 9 | y << 23), N = (M >>> 14 | y << 18) ^ (M >>> 18 | y << 14) ^ (y >>> 9 | M << 23), P += N & 65535, $ += N >>> 16, H += E & 65535, z += E >>> 16, E = y & v ^ ~y & x, N = M & T ^ ~M & _, P += N & 65535, $ += N >>> 16, H += E & 65535, z += E >>> 16, E = o[R * 2], N = o[R * 2 + 1], P += N & 65535, $ += N >>> 16, H += E & 65535, z += E >>> 16, E = a[R % 16], N = l[R % 16], P += N & 65535, $ += N >>> 16, H += E & 65535, z += E >>> 16, $ += P >>> 16, H += $ >>> 16, z += H >>> 16, j = H & 65535 | z << 16, L = P & 65535 | $ << 16, E = j, N = L, P = N & 65535, $ = N >>> 16, H = E & 65535, z = E >>> 16, E = (f >>> 28 | w << 4) ^ (w >>> 2 | f << 30) ^ (w >>> 7 | f << 25), N = (w >>> 28 | f << 4) ^ (f >>> 2 | w << 30) ^ (f >>> 7 | w << 25), P += N & 65535, $ += N >>> 16, H += E & 65535, z += E >>> 16, E = f & g ^ f & m ^ g & m, N = w & k ^ w & C ^ k & C, P += N & 65535, $ += N >>> 16, H += E & 65535, z += E >>> 16, $ += P >>> 16, H += $ >>> 16, z += H >>> 16, K = H & 65535 | z << 16,
|
|
177557
|
+
var ce = f, ee = g, V = m, Y = b, X = y, ie = v, S = x, K = D, Z = w, se = k, O = C, ae = A, le = M, J = T, G = _, ue = B;
|
|
177558
|
+
if (E = D, N = B, P = N & 65535, $ = N >>> 16, H = E & 65535, z = E >>> 16, E = (y >>> 14 | M << 18) ^ (y >>> 18 | M << 14) ^ (M >>> 9 | y << 23), N = (M >>> 14 | y << 18) ^ (M >>> 18 | y << 14) ^ (y >>> 9 | M << 23), P += N & 65535, $ += N >>> 16, H += E & 65535, z += E >>> 16, E = y & v ^ ~y & x, N = M & T ^ ~M & _, P += N & 65535, $ += N >>> 16, H += E & 65535, z += E >>> 16, E = o[R * 2], N = o[R * 2 + 1], P += N & 65535, $ += N >>> 16, H += E & 65535, z += E >>> 16, E = a[R % 16], N = l[R % 16], P += N & 65535, $ += N >>> 16, H += E & 65535, z += E >>> 16, $ += P >>> 16, H += $ >>> 16, z += H >>> 16, j = H & 65535 | z << 16, L = P & 65535 | $ << 16, E = j, N = L, P = N & 65535, $ = N >>> 16, H = E & 65535, z = E >>> 16, E = (f >>> 28 | w << 4) ^ (w >>> 2 | f << 30) ^ (w >>> 7 | f << 25), N = (w >>> 28 | f << 4) ^ (f >>> 2 | w << 30) ^ (f >>> 7 | w << 25), P += N & 65535, $ += N >>> 16, H += E & 65535, z += E >>> 16, E = f & g ^ f & m ^ g & m, N = w & k ^ w & C ^ k & C, P += N & 65535, $ += N >>> 16, H += E & 65535, z += E >>> 16, $ += P >>> 16, H += $ >>> 16, z += H >>> 16, K = H & 65535 | z << 16, ue = P & 65535 | $ << 16, E = Y, N = ae, P = N & 65535, $ = N >>> 16, H = E & 65535, z = E >>> 16, E = j, N = L, P += N & 65535, $ += N >>> 16, H += E & 65535, z += E >>> 16, $ += P >>> 16, H += $ >>> 16, z += H >>> 16, Y = H & 65535 | z << 16, ae = P & 65535 | $ << 16, g = ce, m = ee, b = V, y = Y, v = X, x = ie, D = S, f = K, k = Z, C = se, A = O, M = ae, T = le, _ = J, B = G, w = ue, R % 16 === 15)
|
|
177563
177559
|
for (var Q = 0; Q < 16; Q++)
|
|
177564
177560
|
E = a[Q], N = l[Q], P = N & 65535, $ = N >>> 16, H = E & 65535, z = E >>> 16, E = a[(Q + 9) % 16], N = l[(Q + 9) % 16], P += N & 65535, $ += N >>> 16, H += E & 65535, z += E >>> 16, j = a[(Q + 1) % 16], L = l[(Q + 1) % 16], E = (j >>> 1 | L << 31) ^ (j >>> 8 | L << 24) ^ j >>> 7, N = (L >>> 1 | j << 31) ^ (L >>> 8 | j << 24) ^ (L >>> 7 | j << 25), P += N & 65535, $ += N >>> 16, H += E & 65535, z += E >>> 16, j = a[(Q + 14) % 16], L = l[(Q + 14) % 16], E = (j >>> 19 | L << 13) ^ (L >>> 29 | j << 3) ^ j >>> 6, N = (L >>> 19 | j << 13) ^ (j >>> 29 | L << 3) ^ (L >>> 6 | j << 26), P += N & 65535, $ += N >>> 16, H += E & 65535, z += E >>> 16, $ += P >>> 16, H += $ >>> 16, z += H >>> 16, a[Q] = H & 65535 | z << 16, l[Q] = P & 65535 | $ << 16;
|
|
177565
177561
|
}
|
|
@@ -177737,8 +177733,8 @@ var KQ = {};
|
|
|
177737
177733
|
Y[S] = X[S] - ie[S];
|
|
177738
177734
|
}
|
|
177739
177735
|
function k(Y, X, ie) {
|
|
177740
|
-
let S, K, Z = 0, se = 0, O = 0, ae = 0, le = 0, J = 0, G = 0,
|
|
177741
|
-
S = X[0], Z += S * qe, se += S * lt, O += S * Tt, ae += S * Re, le += S * et, J += S * Ge, G += S * xt,
|
|
177736
|
+
let S, K, Z = 0, se = 0, O = 0, ae = 0, le = 0, J = 0, G = 0, ue = 0, ve = 0, we = 0, fe = 0, de = 0, oe = 0, he = 0, I = 0, q = 0, te = 0, ne = 0, me = 0, be = 0, ke = 0, Ce = 0, ge = 0, Ae = 0, je = 0, Le = 0, We = 0, yt = 0, dt = 0, rt = 0, Qe = 0, qe = ie[0], lt = ie[1], Tt = ie[2], Re = ie[3], et = ie[4], Ge = ie[5], xt = ie[6], Bt = ie[7], Ye = ie[8], vt = ie[9], Nt = ie[10], Mt = ie[11], Lt = ie[12], dn = ie[13], ye = ie[14], Me = ie[15];
|
|
177737
|
+
S = X[0], Z += S * qe, se += S * lt, O += S * Tt, ae += S * Re, le += S * et, J += S * Ge, G += S * xt, ue += S * Bt, ve += S * Ye, we += S * vt, fe += S * Nt, de += S * Mt, oe += S * Lt, he += S * dn, I += S * ye, q += S * Me, S = X[1], se += S * qe, O += S * lt, ae += S * Tt, le += S * Re, J += S * et, G += S * Ge, ue += S * xt, ve += S * Bt, we += S * Ye, fe += S * vt, de += S * Nt, oe += S * Mt, he += S * Lt, I += S * dn, q += S * ye, te += S * Me, S = X[2], O += S * qe, ae += S * lt, le += S * Tt, J += S * Re, G += S * et, ue += S * Ge, ve += S * xt, we += S * Bt, fe += S * Ye, de += S * vt, oe += S * Nt, he += S * Mt, I += S * Lt, q += S * dn, te += S * ye, ne += S * Me, S = X[3], ae += S * qe, le += S * lt, J += S * Tt, G += S * Re, ue += S * et, ve += S * Ge, we += S * xt, fe += S * Bt, de += S * Ye, oe += S * vt, he += S * Nt, I += S * Mt, q += S * Lt, te += S * dn, ne += S * ye, me += S * Me, S = X[4], le += S * qe, J += S * lt, G += S * Tt, ue += S * Re, ve += S * et, we += S * Ge, fe += S * xt, de += S * Bt, oe += S * Ye, he += S * vt, I += S * Nt, q += S * Mt, te += S * Lt, ne += S * dn, me += S * ye, be += S * Me, S = X[5], J += S * qe, G += S * lt, ue += S * Tt, ve += S * Re, we += S * et, fe += S * Ge, de += S * xt, oe += S * Bt, he += S * Ye, I += S * vt, q += S * Nt, te += S * Mt, ne += S * Lt, me += S * dn, be += S * ye, ke += S * Me, S = X[6], G += S * qe, ue += S * lt, ve += S * Tt, we += S * Re, fe += S * et, de += S * Ge, oe += S * xt, he += S * Bt, I += S * Ye, q += S * vt, te += S * Nt, ne += S * Mt, me += S * Lt, be += S * dn, ke += S * ye, Ce += S * Me, S = X[7], ue += S * qe, ve += S * lt, we += S * Tt, fe += S * Re, de += S * et, oe += S * Ge, he += S * xt, I += S * Bt, q += S * Ye, te += S * vt, ne += S * Nt, me += S * Mt, be += S * Lt, ke += S * dn, Ce += S * ye, ge += S * Me, S = X[8], ve += S * qe, we += S * lt, fe += S * Tt, de += S * Re, oe += S * et, he += S * Ge, I += S * xt, q += S * Bt, te += S * Ye, ne += S * vt, me += S * Nt, be += S * Mt, ke += S * Lt, Ce += S * dn, ge += S * ye, Ae += S * Me, S = X[9], we += S * qe, fe += S * lt, de += S * Tt, oe += S * Re, he += S * et, I += S * Ge, q += S * xt, te += S * Bt, ne += S * Ye, me += S * vt, be += S * Nt, ke += S * Mt, Ce += S * Lt, ge += S * dn, Ae += S * ye, je += S * Me, S = X[10], fe += S * qe, de += S * lt, oe += S * Tt, he += S * Re, I += S * et, q += S * Ge, te += S * xt, ne += S * Bt, me += S * Ye, be += S * vt, ke += S * Nt, Ce += S * Mt, ge += S * Lt, Ae += S * dn, je += S * ye, Le += S * Me, S = X[11], de += S * qe, oe += S * lt, he += S * Tt, I += S * Re, q += S * et, te += S * Ge, ne += S * xt, me += S * Bt, be += S * Ye, ke += S * vt, Ce += S * Nt, ge += S * Mt, Ae += S * Lt, je += S * dn, Le += S * ye, We += S * Me, S = X[12], oe += S * qe, he += S * lt, I += S * Tt, q += S * Re, te += S * et, ne += S * Ge, me += S * xt, be += S * Bt, ke += S * Ye, Ce += S * vt, ge += S * Nt, Ae += S * Mt, je += S * Lt, Le += S * dn, We += S * ye, yt += S * Me, S = X[13], he += S * qe, I += S * lt, q += S * Tt, te += S * Re, ne += S * et, me += S * Ge, be += S * xt, ke += S * Bt, Ce += S * Ye, ge += S * vt, Ae += S * Nt, je += S * Mt, Le += S * Lt, We += S * dn, yt += S * ye, dt += S * Me, S = X[14], I += S * qe, q += S * lt, te += S * Tt, ne += S * Re, me += S * et, be += S * Ge, ke += S * xt, Ce += S * Bt, ge += S * Ye, Ae += S * vt, je += S * Nt, Le += S * Mt, We += S * Lt, yt += S * dn, dt += S * ye, rt += S * Me, S = X[15], q += S * qe, te += S * lt, ne += S * Tt, me += S * Re, be += S * et, ke += S * Ge, Ce += S * xt, ge += S * Bt, Ae += S * Ye, je += S * vt, Le += S * Nt, We += S * Mt, yt += S * Lt, dt += S * dn, rt += S * ye, Qe += S * Me, Z += 38 * te, se += 38 * ne, O += 38 * me, ae += 38 * be, le += 38 * ke, J += 38 * Ce, G += 38 * ge, ue += 38 * Ae, ve += 38 * je, we += 38 * Le, fe += 38 * We, de += 38 * yt, oe += 38 * dt, he += 38 * rt, I += 38 * Qe, K = 1, S = Z + K + 65535, K = Math.floor(S / 65536), Z = S - K * 65536, S = se + K + 65535, K = Math.floor(S / 65536), se = S - K * 65536, S = O + K + 65535, K = Math.floor(S / 65536), O = S - K * 65536, S = ae + K + 65535, K = Math.floor(S / 65536), ae = S - K * 65536, S = le + K + 65535, K = Math.floor(S / 65536), le = S - K * 65536, S = J + K + 65535, K = Math.floor(S / 65536), J = S - K * 65536, S = G + K + 65535, K = Math.floor(S / 65536), G = S - K * 65536, S = ue + K + 65535, K = Math.floor(S / 65536), ue = S - K * 65536, S = ve + K + 65535, K = Math.floor(S / 65536), ve = S - K * 65536, S = we + K + 65535, K = Math.floor(S / 65536), we = S - K * 65536, S = fe + K + 65535, K = Math.floor(S / 65536), fe = S - K * 65536, S = de + K + 65535, K = Math.floor(S / 65536), de = S - K * 65536, S = oe + K + 65535, K = Math.floor(S / 65536), oe = S - K * 65536, S = he + K + 65535, K = Math.floor(S / 65536), he = S - K * 65536, S = I + K + 65535, K = Math.floor(S / 65536), I = S - K * 65536, S = q + K + 65535, K = Math.floor(S / 65536), q = S - K * 65536, Z += K - 1 + 37 * (K - 1), K = 1, S = Z + K + 65535, K = Math.floor(S / 65536), Z = S - K * 65536, S = se + K + 65535, K = Math.floor(S / 65536), se = S - K * 65536, S = O + K + 65535, K = Math.floor(S / 65536), O = S - K * 65536, S = ae + K + 65535, K = Math.floor(S / 65536), ae = S - K * 65536, S = le + K + 65535, K = Math.floor(S / 65536), le = S - K * 65536, S = J + K + 65535, K = Math.floor(S / 65536), J = S - K * 65536, S = G + K + 65535, K = Math.floor(S / 65536), G = S - K * 65536, S = ue + K + 65535, K = Math.floor(S / 65536), ue = S - K * 65536, S = ve + K + 65535, K = Math.floor(S / 65536), ve = S - K * 65536, S = we + K + 65535, K = Math.floor(S / 65536), we = S - K * 65536, S = fe + K + 65535, K = Math.floor(S / 65536), fe = S - K * 65536, S = de + K + 65535, K = Math.floor(S / 65536), de = S - K * 65536, S = oe + K + 65535, K = Math.floor(S / 65536), oe = S - K * 65536, S = he + K + 65535, K = Math.floor(S / 65536), he = S - K * 65536, S = I + K + 65535, K = Math.floor(S / 65536), I = S - K * 65536, S = q + K + 65535, K = Math.floor(S / 65536), q = S - K * 65536, Z += K - 1 + 37 * (K - 1), Y[0] = Z, Y[1] = se, Y[2] = O, Y[3] = ae, Y[4] = le, Y[5] = J, Y[6] = G, Y[7] = ue, Y[8] = ve, Y[9] = we, Y[10] = fe, Y[11] = de, Y[12] = oe, Y[13] = he, Y[14] = I, Y[15] = q;
|
|
177742
177738
|
}
|
|
177743
177739
|
function C(Y, X) {
|
|
177744
177740
|
k(Y, X, X);
|
|
@@ -177890,7 +177886,7 @@ var KQ = {};
|
|
|
177890
177886
|
const ie = o(), S = o(), K = o(), Z = o(), se = o(), O = o(), ae = o();
|
|
177891
177887
|
return h(Y[2], a), x(Y[1], X), C(K, Y[1]), k(Z, K, l), w(K, K, Y[2]), D(Z, Y[2], Z), C(se, Z), C(O, se), k(ae, O, se), k(ie, ae, K), k(ie, ie, Z), M(ie, ie), k(ie, ie, K), k(ie, ie, Z), k(ie, ie, Z), k(Y[0], ie, Z), C(S, Y[0]), k(S, S, Z), y(S, K) && k(Y[0], Y[0], p), C(S, Y[0]), k(S, S, Z), y(S, K) ? -1 : (v(Y[0]) === X[31] >> 7 && w(Y[0], s, Y[0]), k(Y[3], Y[0], Y[1]), 0);
|
|
177892
177888
|
}
|
|
177893
|
-
function
|
|
177889
|
+
function ce(Y, X, ie) {
|
|
177894
177890
|
const S = new Uint8Array(32), K = [o(), o(), o(), o()], Z = [o(), o(), o(), o()];
|
|
177895
177891
|
if (ie.length !== e.SIGNATURE_LENGTH)
|
|
177896
177892
|
throw new Error(`ed25519: signature must be ${e.SIGNATURE_LENGTH} bytes`);
|
|
@@ -177901,7 +177897,7 @@ var KQ = {};
|
|
|
177901
177897
|
const O = se.digest();
|
|
177902
177898
|
return z(O), E(K, Z, O), N(Z, ie.subarray(32)), T(K, Z), B(S, K), !b(ie, S);
|
|
177903
177899
|
}
|
|
177904
|
-
e.verify =
|
|
177900
|
+
e.verify = ce;
|
|
177905
177901
|
function ee(Y) {
|
|
177906
177902
|
let X = [o(), o(), o(), o()];
|
|
177907
177903
|
if (Q(X, Y))
|
|
@@ -178518,7 +178514,7 @@ var eee = { exports: {} };
|
|
|
178518
178514
|
return new p(this.value - BigInt(1));
|
|
178519
178515
|
};
|
|
178520
178516
|
for (var Q = [1]; 2 * Q[Q.length - 1] <= r; ) Q.push(2 * Q[Q.length - 1]);
|
|
178521
|
-
var
|
|
178517
|
+
var ce = Q.length, ee = Q[ce - 1];
|
|
178522
178518
|
function V(I) {
|
|
178523
178519
|
return Math.abs(I) <= r;
|
|
178524
178520
|
}
|
|
@@ -178529,17 +178525,17 @@ var eee = { exports: {} };
|
|
|
178529
178525
|
if (q < 0) return this.shiftRight(-q);
|
|
178530
178526
|
var te = this;
|
|
178531
178527
|
if (te.isZero()) return te;
|
|
178532
|
-
for (; q >=
|
|
178533
|
-
te = te.multiply(ee), q -=
|
|
178528
|
+
for (; q >= ce; )
|
|
178529
|
+
te = te.multiply(ee), q -= ce - 1;
|
|
178534
178530
|
return te.multiply(Q[q]);
|
|
178535
178531
|
}, p.prototype.shiftLeft = d.prototype.shiftLeft = c.prototype.shiftLeft, c.prototype.shiftRight = function(I) {
|
|
178536
178532
|
var q, te = oe(I).toJSNumber();
|
|
178537
178533
|
if (!V(te))
|
|
178538
178534
|
throw new Error(String(te) + " is too large for shifting.");
|
|
178539
178535
|
if (te < 0) return this.shiftLeft(-te);
|
|
178540
|
-
for (var ne = this; te >=
|
|
178536
|
+
for (var ne = this; te >= ce; ) {
|
|
178541
178537
|
if (ne.isZero() || ne.isNegative() && ne.isUnit()) return ne;
|
|
178542
|
-
q = $(ne, ee), ne = q[1].isNegative() ? q[0].prev() : q[0], te -=
|
|
178538
|
+
q = $(ne, ee), ne = q[1].isNegative() ? q[0].prev() : q[0], te -= ce - 1;
|
|
178543
178539
|
}
|
|
178544
178540
|
return q = $(ne, Q[te]), q[1].isNegative() ? q[0].prev() : q[0];
|
|
178545
178541
|
}, p.prototype.shiftRight = d.prototype.shiftRight = c.prototype.shiftRight;
|
|
@@ -178649,7 +178645,7 @@ var eee = { exports: {} };
|
|
|
178649
178645
|
ne = ne.add(I[be].times(me)), me = me.times(q);
|
|
178650
178646
|
return te ? ne.negate() : ne;
|
|
178651
178647
|
}
|
|
178652
|
-
function
|
|
178648
|
+
function ue(I, q) {
|
|
178653
178649
|
return q = q || a, I < q.length ? q[I] : "<" + I + ">";
|
|
178654
178650
|
}
|
|
178655
178651
|
function ve(I, q) {
|
|
@@ -178689,7 +178685,7 @@ var eee = { exports: {} };
|
|
|
178689
178685
|
function we(I, q, te) {
|
|
178690
178686
|
var ne = ve(I, q);
|
|
178691
178687
|
return (ne.isNegative ? "-" : "") + ne.value.map(function(me) {
|
|
178692
|
-
return
|
|
178688
|
+
return ue(me, te);
|
|
178693
178689
|
}).join("");
|
|
178694
178690
|
}
|
|
178695
178691
|
c.prototype.toArray = function(I) {
|
|
@@ -180403,8 +180399,8 @@ function ww(e, t, n, r, o, i, s) {
|
|
|
180403
180399
|
e[N] = pR(o, j), t[N] = pR(o, j + 4);
|
|
180404
180400
|
}
|
|
180405
180401
|
for (let N = 0; N < 80; N++) {
|
|
180406
|
-
let j = a, L = l, P = u, $ = c, H = d, z = p, R = h, Q = f,
|
|
180407
|
-
if (k = f, C = w, T = C & 65535, _ = C >>> 16, B = k & 65535, E = k >>> 16, k = (d >>> 14 | v << 18) ^ (d >>> 18 | v << 14) ^ (v >>> 9 | d << 23), C = (v >>> 14 | d << 18) ^ (v >>> 18 | d << 14) ^ (d >>> 9 | v << 23), T += C & 65535, _ += C >>> 16, B += k & 65535, E += k >>> 16, k = d & p ^ ~d & h, C = v & x ^ ~v & D, T += C & 65535, _ += C >>> 16, B += k & 65535, E += k >>> 16, k = fR[N * 2], C = fR[N * 2 + 1], T += C & 65535, _ += C >>> 16, B += k & 65535, E += k >>> 16, k = e[N % 16], C = t[N % 16], T += C & 65535, _ += C >>> 16, B += k & 65535, E += k >>> 16, _ += T >>> 16, B += _ >>> 16, E += B >>> 16, A = B & 65535 | E << 16, M = T & 65535 | _ << 16, k = A, C = M, T = C & 65535, _ = C >>> 16, B = k & 65535, E = k >>> 16, k = (a >>> 28 | g << 4) ^ (g >>> 2 | a << 30) ^ (g >>> 7 | a << 25), C = (g >>> 28 | a << 4) ^ (a >>> 2 | g << 30) ^ (a >>> 7 | g << 25), T += C & 65535, _ += C >>> 16, B += k & 65535, E += k >>> 16, k = a & l ^ a & u ^ l & u, C = g & m ^ g & b ^ m & b, T += C & 65535, _ += C >>> 16, B += k & 65535, E += k >>> 16, _ += T >>> 16, B += _ >>> 16, E += B >>> 16, Q = B & 65535 | E << 16, K = T & 65535 | _ << 16, k = $, C = Y, T = C & 65535, _ = C >>> 16, B = k & 65535, E = k >>> 16, k = A, C = M, T += C & 65535, _ += C >>> 16, B += k & 65535, E += k >>> 16, _ += T >>> 16, B += _ >>> 16, E += B >>> 16, $ = B & 65535 | E << 16, Y = T & 65535 | _ << 16, l = j, u = L, c = P, d = $, p = H, h = z, f = R, a = Q, m =
|
|
180402
|
+
let j = a, L = l, P = u, $ = c, H = d, z = p, R = h, Q = f, ce = g, ee = m, V = b, Y = y, X = v, ie = x, S = D, K = w;
|
|
180403
|
+
if (k = f, C = w, T = C & 65535, _ = C >>> 16, B = k & 65535, E = k >>> 16, k = (d >>> 14 | v << 18) ^ (d >>> 18 | v << 14) ^ (v >>> 9 | d << 23), C = (v >>> 14 | d << 18) ^ (v >>> 18 | d << 14) ^ (d >>> 9 | v << 23), T += C & 65535, _ += C >>> 16, B += k & 65535, E += k >>> 16, k = d & p ^ ~d & h, C = v & x ^ ~v & D, T += C & 65535, _ += C >>> 16, B += k & 65535, E += k >>> 16, k = fR[N * 2], C = fR[N * 2 + 1], T += C & 65535, _ += C >>> 16, B += k & 65535, E += k >>> 16, k = e[N % 16], C = t[N % 16], T += C & 65535, _ += C >>> 16, B += k & 65535, E += k >>> 16, _ += T >>> 16, B += _ >>> 16, E += B >>> 16, A = B & 65535 | E << 16, M = T & 65535 | _ << 16, k = A, C = M, T = C & 65535, _ = C >>> 16, B = k & 65535, E = k >>> 16, k = (a >>> 28 | g << 4) ^ (g >>> 2 | a << 30) ^ (g >>> 7 | a << 25), C = (g >>> 28 | a << 4) ^ (a >>> 2 | g << 30) ^ (a >>> 7 | g << 25), T += C & 65535, _ += C >>> 16, B += k & 65535, E += k >>> 16, k = a & l ^ a & u ^ l & u, C = g & m ^ g & b ^ m & b, T += C & 65535, _ += C >>> 16, B += k & 65535, E += k >>> 16, _ += T >>> 16, B += _ >>> 16, E += B >>> 16, Q = B & 65535 | E << 16, K = T & 65535 | _ << 16, k = $, C = Y, T = C & 65535, _ = C >>> 16, B = k & 65535, E = k >>> 16, k = A, C = M, T += C & 65535, _ += C >>> 16, B += k & 65535, E += k >>> 16, _ += T >>> 16, B += _ >>> 16, E += B >>> 16, $ = B & 65535 | E << 16, Y = T & 65535 | _ << 16, l = j, u = L, c = P, d = $, p = H, h = z, f = R, a = Q, m = ce, b = ee, y = V, v = Y, x = X, D = ie, w = S, g = K, N % 16 === 15)
|
|
180408
180404
|
for (let Z = 0; Z < 16; Z++)
|
|
180409
180405
|
k = e[Z], C = t[Z], T = C & 65535, _ = C >>> 16, B = k & 65535, E = k >>> 16, k = e[(Z + 9) % 16], C = t[(Z + 9) % 16], T += C & 65535, _ += C >>> 16, B += k & 65535, E += k >>> 16, A = e[(Z + 1) % 16], M = t[(Z + 1) % 16], k = (A >>> 1 | M << 31) ^ (A >>> 8 | M << 24) ^ A >>> 7, C = (M >>> 1 | A << 31) ^ (M >>> 8 | A << 24) ^ (M >>> 7 | A << 25), T += C & 65535, _ += C >>> 16, B += k & 65535, E += k >>> 16, A = e[(Z + 14) % 16], M = t[(Z + 14) % 16], k = (A >>> 19 | M << 13) ^ (M >>> 29 | A << 3) ^ A >>> 6, C = (M >>> 19 | A << 13) ^ (A >>> 29 | M << 3) ^ (M >>> 6 | A << 26), T += C & 65535, _ += C >>> 16, B += k & 65535, E += k >>> 16, _ += T >>> 16, B += _ >>> 16, E += B >>> 16, e[Z] = B & 65535 | E << 16, t[Z] = T & 65535 | _ << 16;
|
|
180410
180406
|
}
|
|
@@ -180565,8 +180561,8 @@ function x2(e, t, n) {
|
|
|
180565
180561
|
e[r] = t[r] - n[r];
|
|
180566
180562
|
}
|
|
180567
180563
|
function Yo(e, t, n) {
|
|
180568
|
-
let r, o, i = 0, s = 0, a = 0, l = 0, u = 0, c = 0, d = 0, p = 0, h = 0, f = 0, g = 0, m = 0, b = 0, y = 0, v = 0, x = 0, D = 0, w = 0, k = 0, C = 0, A = 0, M = 0, T = 0, _ = 0, B = 0, E = 0, N = 0, j = 0, L = 0, P = 0, $ = 0, H = n[0], z = n[1], R = n[2], Q = n[3],
|
|
180569
|
-
r = t[0], i += r * H, s += r * z, a += r * R, l += r * Q, u += r *
|
|
180564
|
+
let r, o, i = 0, s = 0, a = 0, l = 0, u = 0, c = 0, d = 0, p = 0, h = 0, f = 0, g = 0, m = 0, b = 0, y = 0, v = 0, x = 0, D = 0, w = 0, k = 0, C = 0, A = 0, M = 0, T = 0, _ = 0, B = 0, E = 0, N = 0, j = 0, L = 0, P = 0, $ = 0, H = n[0], z = n[1], R = n[2], Q = n[3], ce = n[4], ee = n[5], V = n[6], Y = n[7], X = n[8], ie = n[9], S = n[10], K = n[11], Z = n[12], se = n[13], O = n[14], ae = n[15];
|
|
180565
|
+
r = t[0], i += r * H, s += r * z, a += r * R, l += r * Q, u += r * ce, c += r * ee, d += r * V, p += r * Y, h += r * X, f += r * ie, g += r * S, m += r * K, b += r * Z, y += r * se, v += r * O, x += r * ae, r = t[1], s += r * H, a += r * z, l += r * R, u += r * Q, c += r * ce, d += r * ee, p += r * V, h += r * Y, f += r * X, g += r * ie, m += r * S, b += r * K, y += r * Z, v += r * se, x += r * O, D += r * ae, r = t[2], a += r * H, l += r * z, u += r * R, c += r * Q, d += r * ce, p += r * ee, h += r * V, f += r * Y, g += r * X, m += r * ie, b += r * S, y += r * K, v += r * Z, x += r * se, D += r * O, w += r * ae, r = t[3], l += r * H, u += r * z, c += r * R, d += r * Q, p += r * ce, h += r * ee, f += r * V, g += r * Y, m += r * X, b += r * ie, y += r * S, v += r * K, x += r * Z, D += r * se, w += r * O, k += r * ae, r = t[4], u += r * H, c += r * z, d += r * R, p += r * Q, h += r * ce, f += r * ee, g += r * V, m += r * Y, b += r * X, y += r * ie, v += r * S, x += r * K, D += r * Z, w += r * se, k += r * O, C += r * ae, r = t[5], c += r * H, d += r * z, p += r * R, h += r * Q, f += r * ce, g += r * ee, m += r * V, b += r * Y, y += r * X, v += r * ie, x += r * S, D += r * K, w += r * Z, k += r * se, C += r * O, A += r * ae, r = t[6], d += r * H, p += r * z, h += r * R, f += r * Q, g += r * ce, m += r * ee, b += r * V, y += r * Y, v += r * X, x += r * ie, D += r * S, w += r * K, k += r * Z, C += r * se, A += r * O, M += r * ae, r = t[7], p += r * H, h += r * z, f += r * R, g += r * Q, m += r * ce, b += r * ee, y += r * V, v += r * Y, x += r * X, D += r * ie, w += r * S, k += r * K, C += r * Z, A += r * se, M += r * O, T += r * ae, r = t[8], h += r * H, f += r * z, g += r * R, m += r * Q, b += r * ce, y += r * ee, v += r * V, x += r * Y, D += r * X, w += r * ie, k += r * S, C += r * K, A += r * Z, M += r * se, T += r * O, _ += r * ae, r = t[9], f += r * H, g += r * z, m += r * R, b += r * Q, y += r * ce, v += r * ee, x += r * V, D += r * Y, w += r * X, k += r * ie, C += r * S, A += r * K, M += r * Z, T += r * se, _ += r * O, B += r * ae, r = t[10], g += r * H, m += r * z, b += r * R, y += r * Q, v += r * ce, x += r * ee, D += r * V, w += r * Y, k += r * X, C += r * ie, A += r * S, M += r * K, T += r * Z, _ += r * se, B += r * O, E += r * ae, r = t[11], m += r * H, b += r * z, y += r * R, v += r * Q, x += r * ce, D += r * ee, w += r * V, k += r * Y, C += r * X, A += r * ie, M += r * S, T += r * K, _ += r * Z, B += r * se, E += r * O, N += r * ae, r = t[12], b += r * H, y += r * z, v += r * R, x += r * Q, D += r * ce, w += r * ee, k += r * V, C += r * Y, A += r * X, M += r * ie, T += r * S, _ += r * K, B += r * Z, E += r * se, N += r * O, j += r * ae, r = t[13], y += r * H, v += r * z, x += r * R, D += r * Q, w += r * ce, k += r * ee, C += r * V, A += r * Y, M += r * X, T += r * ie, _ += r * S, B += r * K, E += r * Z, N += r * se, j += r * O, L += r * ae, r = t[14], v += r * H, x += r * z, D += r * R, w += r * Q, k += r * ce, C += r * ee, A += r * V, M += r * Y, T += r * X, _ += r * ie, B += r * S, E += r * K, N += r * Z, j += r * se, L += r * O, P += r * ae, r = t[15], x += r * H, D += r * z, w += r * R, k += r * Q, C += r * ce, A += r * ee, M += r * V, T += r * Y, _ += r * X, B += r * ie, E += r * S, N += r * K, j += r * Z, L += r * se, P += r * O, $ += r * ae, i += 38 * D, s += 38 * w, a += 38 * k, l += 38 * C, u += 38 * A, c += 38 * M, d += 38 * T, p += 38 * _, h += 38 * B, f += 38 * E, g += 38 * N, m += 38 * j, b += 38 * L, y += 38 * P, v += 38 * $, o = 1, r = i + o + 65535, o = Math.floor(r / 65536), i = r - o * 65536, r = s + o + 65535, o = Math.floor(r / 65536), s = r - o * 65536, r = a + o + 65535, o = Math.floor(r / 65536), a = r - o * 65536, r = l + o + 65535, o = Math.floor(r / 65536), l = r - o * 65536, r = u + o + 65535, o = Math.floor(r / 65536), u = r - o * 65536, r = c + o + 65535, o = Math.floor(r / 65536), c = r - o * 65536, r = d + o + 65535, o = Math.floor(r / 65536), d = r - o * 65536, r = p + o + 65535, o = Math.floor(r / 65536), p = r - o * 65536, r = h + o + 65535, o = Math.floor(r / 65536), h = r - o * 65536, r = f + o + 65535, o = Math.floor(r / 65536), f = r - o * 65536, r = g + o + 65535, o = Math.floor(r / 65536), g = r - o * 65536, r = m + o + 65535, o = Math.floor(r / 65536), m = r - o * 65536, r = b + o + 65535, o = Math.floor(r / 65536), b = r - o * 65536, r = y + o + 65535, o = Math.floor(r / 65536), y = r - o * 65536, r = v + o + 65535, o = Math.floor(r / 65536), v = r - o * 65536, r = x + o + 65535, o = Math.floor(r / 65536), x = r - o * 65536, i += o - 1 + 37 * (o - 1), o = 1, r = i + o + 65535, o = Math.floor(r / 65536), i = r - o * 65536, r = s + o + 65535, o = Math.floor(r / 65536), s = r - o * 65536, r = a + o + 65535, o = Math.floor(r / 65536), a = r - o * 65536, r = l + o + 65535, o = Math.floor(r / 65536), l = r - o * 65536, r = u + o + 65535, o = Math.floor(r / 65536), u = r - o * 65536, r = c + o + 65535, o = Math.floor(r / 65536), c = r - o * 65536, r = d + o + 65535, o = Math.floor(r / 65536), d = r - o * 65536, r = p + o + 65535, o = Math.floor(r / 65536), p = r - o * 65536, r = h + o + 65535, o = Math.floor(r / 65536), h = r - o * 65536, r = f + o + 65535, o = Math.floor(r / 65536), f = r - o * 65536, r = g + o + 65535, o = Math.floor(r / 65536), g = r - o * 65536, r = m + o + 65535, o = Math.floor(r / 65536), m = r - o * 65536, r = b + o + 65535, o = Math.floor(r / 65536), b = r - o * 65536, r = y + o + 65535, o = Math.floor(r / 65536), y = r - o * 65536, r = v + o + 65535, o = Math.floor(r / 65536), v = r - o * 65536, r = x + o + 65535, o = Math.floor(r / 65536), x = r - o * 65536, i += o - 1 + 37 * (o - 1), e[0] = i, e[1] = s, e[2] = a, e[3] = l, e[4] = u, e[5] = c, e[6] = d, e[7] = p, e[8] = h, e[9] = f, e[10] = g, e[11] = m, e[12] = b, e[13] = y, e[14] = v, e[15] = x;
|
|
180570
180566
|
}
|
|
180571
180567
|
function uVe(e, t) {
|
|
180572
180568
|
Yo(e, t, t);
|
|
@@ -181662,8 +181658,8 @@ function KVe(e, t = {}) {
|
|
|
181662
181658
|
try {
|
|
181663
181659
|
H = r.sqrt($);
|
|
181664
181660
|
} catch (Q) {
|
|
181665
|
-
const
|
|
181666
|
-
throw new Error("bad point: is not on curve, sqrt error" +
|
|
181661
|
+
const ce = Q instanceof Error ? ": " + Q.message : "";
|
|
181662
|
+
throw new Error("bad point: is not on curve, sqrt error" + ce);
|
|
181667
181663
|
}
|
|
181668
181664
|
c();
|
|
181669
181665
|
const z = r.isOdd(H);
|
|
@@ -181800,8 +181796,8 @@ function KVe(e, t = {}) {
|
|
|
181800
181796
|
// Cost: 8M + 3S + 3*a + 2*b3 + 15add.
|
|
181801
181797
|
double() {
|
|
181802
181798
|
const { a: B, b: E } = i, N = r.mul(E, F2), { X: j, Y: L, Z: P } = this;
|
|
181803
|
-
let $ = r.ZERO, H = r.ZERO, z = r.ZERO, R = r.mul(j, j), Q = r.mul(L, L),
|
|
181804
|
-
return ee = r.add(ee, ee), z = r.mul(j, P), z = r.add(z, z), $ = r.mul(B, z), H = r.mul(N,
|
|
181799
|
+
let $ = r.ZERO, H = r.ZERO, z = r.ZERO, R = r.mul(j, j), Q = r.mul(L, L), ce = r.mul(P, P), ee = r.mul(j, L);
|
|
181800
|
+
return ee = r.add(ee, ee), z = r.mul(j, P), z = r.add(z, z), $ = r.mul(B, z), H = r.mul(N, ce), H = r.add($, H), $ = r.sub(Q, H), H = r.add(Q, H), H = r.mul($, H), $ = r.mul(ee, $), z = r.mul(N, z), ce = r.mul(B, ce), ee = r.sub(R, ce), ee = r.mul(B, ee), ee = r.add(ee, z), z = r.add(R, R), R = r.add(z, R), R = r.add(R, ce), R = r.mul(R, ee), H = r.add(H, R), ce = r.mul(L, P), ce = r.add(ce, ce), R = r.mul(ce, ee), $ = r.sub($, R), z = r.mul(ce, Q), z = r.add(z, z), z = r.add(z, z), new A($, H, z);
|
|
181805
181801
|
}
|
|
181806
181802
|
// Renes-Costello-Batina exception-free addition formula.
|
|
181807
181803
|
// There is 30% faster Jacobian formula, but it is not complete.
|
|
@@ -181811,11 +181807,11 @@ function KVe(e, t = {}) {
|
|
|
181811
181807
|
x(B);
|
|
181812
181808
|
const { X: E, Y: N, Z: j } = this, { X: L, Y: P, Z: $ } = B;
|
|
181813
181809
|
let H = r.ZERO, z = r.ZERO, R = r.ZERO;
|
|
181814
|
-
const Q = i.a,
|
|
181810
|
+
const Q = i.a, ce = r.mul(i.b, F2);
|
|
181815
181811
|
let ee = r.mul(E, L), V = r.mul(N, P), Y = r.mul(j, $), X = r.add(E, N), ie = r.add(L, P);
|
|
181816
181812
|
X = r.mul(X, ie), ie = r.add(ee, V), X = r.sub(X, ie), ie = r.add(E, j);
|
|
181817
181813
|
let S = r.add(L, $);
|
|
181818
|
-
return ie = r.mul(ie, S), S = r.add(ee, Y), ie = r.sub(ie, S), S = r.add(N, j), H = r.add(P, $), S = r.mul(S, H), H = r.add(V, Y), S = r.sub(S, H), R = r.mul(Q, ie), H = r.mul(
|
|
181814
|
+
return ie = r.mul(ie, S), S = r.add(ee, Y), ie = r.sub(ie, S), S = r.add(N, j), H = r.add(P, $), S = r.mul(S, H), H = r.add(V, Y), S = r.sub(S, H), R = r.mul(Q, ie), H = r.mul(ce, Y), R = r.add(H, R), H = r.sub(V, R), R = r.add(V, R), z = r.mul(H, R), V = r.add(ee, ee), V = r.add(V, ee), Y = r.mul(Q, Y), ie = r.mul(ce, ie), V = r.add(V, Y), Y = r.sub(ee, Y), Y = r.mul(Q, Y), ie = r.add(ie, Y), ee = r.mul(V, ie), z = r.add(z, ee), ee = r.mul(S, ie), H = r.mul(X, H), H = r.sub(H, ee), ee = r.mul(X, V), R = r.mul(S, R), R = r.add(R, ee), new A(H, z, R);
|
|
181819
181815
|
}
|
|
181820
181816
|
subtract(B) {
|
|
181821
181817
|
return this.add(B.negate());
|
|
@@ -181839,8 +181835,8 @@ function KVe(e, t = {}) {
|
|
|
181839
181835
|
let N, j;
|
|
181840
181836
|
const L = (P) => T.cached(this, P, ($) => Cw(A, $));
|
|
181841
181837
|
if (E) {
|
|
181842
|
-
const { k1neg: P, k1: $, k2neg: H, k2: z } = D(B), { p: R, f: Q } = L($), { p:
|
|
181843
|
-
j = Q.add(ee), N = C(E.beta, R,
|
|
181838
|
+
const { k1neg: P, k1: $, k2neg: H, k2: z } = D(B), { p: R, f: Q } = L($), { p: ce, f: ee } = L(z);
|
|
181839
|
+
j = Q.add(ee), N = C(E.beta, R, ce, P, H);
|
|
181844
181840
|
} else {
|
|
181845
181841
|
const { p: P, f: $ } = L(B);
|
|
181846
181842
|
N = P, j = $;
|
|
@@ -182064,7 +182060,7 @@ function XVe(e, t, n = {}) {
|
|
|
182064
182060
|
const z = $ === 2 || $ === 3 ? L + a : L;
|
|
182065
182061
|
if (!i.isValid(z))
|
|
182066
182062
|
throw new Error("recovery id 2 or 3 invalid");
|
|
182067
|
-
const R = i.toBytes(z), Q = e.fromBytes(xu(Iee(($ & 1) === 0), R)),
|
|
182063
|
+
const R = i.toBytes(z), Q = e.fromBytes(xu(Iee(($ & 1) === 0), R)), ce = s.inv(z), ee = D(Ko("msgHash", N)), V = s.create(-ee * ce), Y = s.create(P * ce), X = e.BASE.multiplyUnsafe(V).add(Q.multiplyUnsafe(Y));
|
|
182068
182064
|
if (X.is0())
|
|
182069
182065
|
throw new Error("point at infinify");
|
|
182070
182066
|
return X.assertValidity(), X;
|
|
@@ -182136,7 +182132,7 @@ function XVe(e, t, n = {}) {
|
|
|
182136
182132
|
const V = $ === !0 ? r(h.secretKey) : $;
|
|
182137
182133
|
R.push(Ko("extraEntropy", V));
|
|
182138
182134
|
}
|
|
182139
|
-
const Q = xu(...R),
|
|
182135
|
+
const Q = xu(...R), ce = H;
|
|
182140
182136
|
function ee(V) {
|
|
182141
182137
|
const Y = x(V);
|
|
182142
182138
|
if (!s.isValidNot0(Y))
|
|
@@ -182144,7 +182140,7 @@ function XVe(e, t, n = {}) {
|
|
|
182144
182140
|
const X = s.inv(Y), ie = e.BASE.multiply(Y).toAffine(), S = s.create(ie.x);
|
|
182145
182141
|
if (S === hl)
|
|
182146
182142
|
return;
|
|
182147
|
-
const K = s.create(X * s.create(
|
|
182143
|
+
const K = s.create(X * s.create(ce + S * z));
|
|
182148
182144
|
if (K === hl)
|
|
182149
182145
|
return;
|
|
182150
182146
|
let Z = (ie.x === S ? 0 : 2) | Number(ie.y & ah), se = K;
|
|
@@ -182191,7 +182187,7 @@ function XVe(e, t, n = {}) {
|
|
|
182191
182187
|
const R = e.fromBytes(j);
|
|
182192
182188
|
if (P && z.hasHighS())
|
|
182193
182189
|
return !1;
|
|
182194
|
-
const { r: Q, s:
|
|
182190
|
+
const { r: Q, s: ce } = z, ee = D(N), V = s.inv(ce), Y = s.create(ee * V), X = s.create(Q * V), ie = e.BASE.multiplyUnsafe(Y).add(R.multiplyUnsafe(X));
|
|
182195
182191
|
return ie.is0() ? !1 : s.create(ie.x) === Q;
|
|
182196
182192
|
} catch {
|
|
182197
182193
|
return !1;
|
|
@@ -183521,15 +183517,15 @@ const lKe = { status: "idle" }, uKe = (e) => {
|
|
|
183521
183517
|
...L
|
|
183522
183518
|
}) => {
|
|
183523
183519
|
var Z;
|
|
183524
|
-
const [P, $] = Ne(!0), [H, z] = Ne(!0), R = Be(null), Q = !!(n != null && n.enabled),
|
|
183520
|
+
const [P, $] = Ne(!0), [H, z] = Ne(!0), R = Be(null), Q = !!(n != null && n.enabled), ce = (n == null ? void 0 : n.content) ?? t, ee = (r == null ? void 0 : r.enabled) === !0, V = cKe({
|
|
183525
183521
|
onChange: o,
|
|
183526
183522
|
enableIndexeddbSync: h,
|
|
183527
183523
|
ddocId: p,
|
|
183528
183524
|
collaboration: r,
|
|
183529
183525
|
onIndexedDbError: E
|
|
183530
|
-
}), Y = !!(h && !ee && L.isDDocOwner && !Q && !e && !
|
|
183526
|
+
}), Y = !!(h && !ee && L.isDDocOwner && !Q && !e && !ce), X = Pze({
|
|
183531
183527
|
ydoc: V.ydoc,
|
|
183532
|
-
initialContent:
|
|
183528
|
+
initialContent: ce,
|
|
183533
183529
|
enableCollaboration: ee,
|
|
183534
183530
|
isDDocOwner: L.isDDocOwner || !1,
|
|
183535
183531
|
createDefaultTabIfMissing: !!(!Q && !e && L.isDDocOwner && !ee && // Wait for y-indexedDB sync before deciding whether an unsaved local doc
|
|
@@ -183546,7 +183542,7 @@ const lKe = { status: "idle" }, uKe = (e) => {
|
|
|
183546
183542
|
}), ie = Bze({
|
|
183547
183543
|
ydoc: V.ydoc,
|
|
183548
183544
|
isPreviewMode: e,
|
|
183549
|
-
initialContent:
|
|
183545
|
+
initialContent: ce,
|
|
183550
183546
|
collaboration: r,
|
|
183551
183547
|
versionId: n == null ? void 0 : n.versionId,
|
|
183552
183548
|
isReady: V.isReady,
|
|
@@ -184532,7 +184528,7 @@ const CKe = ({
|
|
|
184532
184528
|
if (!A || !T) return;
|
|
184533
184529
|
const ee = A - T, V = ee > B, Y = ee < -B;
|
|
184534
184530
|
V && (N("forward"), D((X) => Math.min(X + 1, c.length - 1))), Y && (N("backward"), D((X) => Math.max(X - 1, 0)));
|
|
184535
|
-
}, [A, T, c.length, B]),
|
|
184531
|
+
}, [A, T, c.length, B]), ce = () => {
|
|
184536
184532
|
if (s) {
|
|
184537
184533
|
FKe(s), v(!0), u == null || u();
|
|
184538
184534
|
const ee = setTimeout(() => {
|
|
@@ -184622,7 +184618,7 @@ const CKe = ({
|
|
|
184622
184618
|
disabled: !s,
|
|
184623
184619
|
className: "disabled:!bg-transparent disabled:pointer-events-none",
|
|
184624
184620
|
size: "md",
|
|
184625
|
-
onClick:
|
|
184621
|
+
onClick: ce
|
|
184626
184622
|
}
|
|
184627
184623
|
),
|
|
184628
184624
|
y && /* @__PURE__ */ F.jsx(
|
|
@@ -185092,7 +185088,7 @@ const MR = ({
|
|
|
185092
185088
|
(Y) => !Y.resolved
|
|
185093
185089
|
), R = H.filter(
|
|
185094
185090
|
(Y) => Y.resolved
|
|
185095
|
-
), Q = (Y) => (s == null ? void 0 : s[Y.tabId || An]) ?? a ?? jd,
|
|
185091
|
+
), Q = (Y) => (s == null ? void 0 : s[Y.tabId || An]) ?? a ?? jd, ce = (Y, X) => Y.length === 0 ? null : /* @__PURE__ */ F.jsxs(F.Fragment, { children: [
|
|
185096
185092
|
X && /* @__PURE__ */ F.jsxs(
|
|
185097
185093
|
"p",
|
|
185098
185094
|
{
|
|
@@ -185202,7 +185198,7 @@ const MR = ({
|
|
|
185202
185198
|
ref: _,
|
|
185203
185199
|
className: "flex flex-col overflow-y-auto flex-1",
|
|
185204
185200
|
children: i === "all" ? /* @__PURE__ */ F.jsxs(F.Fragment, { children: [
|
|
185205
|
-
|
|
185201
|
+
ce(
|
|
185206
185202
|
z,
|
|
185207
185203
|
!N && "Active"
|
|
185208
185204
|
),
|
|
@@ -185214,11 +185210,11 @@ const MR = ({
|
|
|
185214
185210
|
)
|
|
185215
185211
|
}
|
|
185216
185212
|
),
|
|
185217
|
-
|
|
185213
|
+
ce(
|
|
185218
185214
|
R,
|
|
185219
185215
|
!N && "Resolved"
|
|
185220
185216
|
)
|
|
185221
|
-
] }) :
|
|
185217
|
+
] }) : ce(H)
|
|
185222
185218
|
}
|
|
185223
185219
|
)
|
|
185224
185220
|
}
|
|
@@ -185425,7 +185421,7 @@ const MR = ({
|
|
|
185425
185421
|
}))
|
|
185426
185422
|
], $ = Object.fromEntries(
|
|
185427
185423
|
L.map((ne) => [ne.id, ne.name])
|
|
185428
|
-
), [H, z] = Ne("active"), [R, Q] = Ne(Jf), [
|
|
185424
|
+
), [H, z] = Ne("active"), [R, Q] = Ne(Jf), [ce, ee] = Ne(!1), [V, Y] = Ne(!1), X = R === Jf ? i : R, ie = ((te = P.find((ne) => ne.id === R)) == null ? void 0 : te.label) ?? jd, S = c.filter((ne) => {
|
|
185429
185425
|
const me = ne.tabId || An;
|
|
185430
185426
|
return !(R === Jf || me === R) || ne.deleted ? !1 : H === "active" ? !ne.resolved : H === "resolved" ? !!ne.resolved : !0;
|
|
185431
185427
|
}), K = H === "resolved" ? "Resolved" : H === "all" ? "All comments" : "Active", Z = c.filter((ne) => !ne.deleted).sort(
|
|
@@ -185438,7 +185434,7 @@ const MR = ({
|
|
|
185438
185434
|
ee(ne), ne && Y(!1);
|
|
185439
185435
|
}, G = (ne) => {
|
|
185440
185436
|
Y(ne), ne && ee(!1);
|
|
185441
|
-
},
|
|
185437
|
+
}, ue = (ne, me) => {
|
|
185442
185438
|
const be = me || An;
|
|
185443
185439
|
if (be !== i) {
|
|
185444
185440
|
M({ commentId: ne, tabId: be }), s == null || s(be);
|
|
@@ -185491,7 +185487,7 @@ const MR = ({
|
|
|
185491
185487
|
});
|
|
185492
185488
|
}, he = (ne) => {
|
|
185493
185489
|
const me = Z[ne];
|
|
185494
|
-
me != null && me.id && (y(me.id),
|
|
185490
|
+
me != null && me.id && (y(me.id), ue(me.id, me.tabId), requestAnimationFrame(() => {
|
|
185495
185491
|
var ke;
|
|
185496
185492
|
const be = (ke = T.current) == null ? void 0 : ke.querySelector(
|
|
185497
185493
|
`[data-comment-id="${me.id}"]`
|
|
@@ -185677,7 +185673,7 @@ const MR = ({
|
|
|
185677
185673
|
comments: c,
|
|
185678
185674
|
commentType: "all",
|
|
185679
185675
|
tabNameById: $,
|
|
185680
|
-
onCommentFocus:
|
|
185676
|
+
onCommentFocus: ue,
|
|
185681
185677
|
showNewCommentInput: !1,
|
|
185682
185678
|
isCollaborationEnabled: u
|
|
185683
185679
|
}
|
|
@@ -185718,7 +185714,7 @@ const MR = ({
|
|
|
185718
185714
|
bd,
|
|
185719
185715
|
{
|
|
185720
185716
|
value: H,
|
|
185721
|
-
open:
|
|
185717
|
+
open: ce,
|
|
185722
185718
|
onOpenChange: J,
|
|
185723
185719
|
onValueChange: z,
|
|
185724
185720
|
children: [
|
|
@@ -185753,7 +185749,7 @@ const MR = ({
|
|
|
185753
185749
|
tabNameById: $,
|
|
185754
185750
|
selectedTabLabel: ie,
|
|
185755
185751
|
newCommentTabId: X,
|
|
185756
|
-
onCommentFocus:
|
|
185752
|
+
onCommentFocus: ue,
|
|
185757
185753
|
onReset: () => {
|
|
185758
185754
|
z("all"), Q(Jf);
|
|
185759
185755
|
},
|
|
@@ -186358,7 +186354,7 @@ const zKe = Number.POSITIVE_INFINITY, eb = (e) => e.isVisible && e.isMeasured &&
|
|
|
186358
186354
|
), z = Be(null), R = Be({
|
|
186359
186355
|
cardNodes: /* @__PURE__ */ new Map(),
|
|
186360
186356
|
nodeToFloatingCardId: /* @__PURE__ */ new WeakMap()
|
|
186361
|
-
}), Q = Be(null),
|
|
186357
|
+
}), Q = Be(null), ce = Be(null), ee = Be(!1), V = Be(null), Y = Be(null), X = Be({
|
|
186362
186358
|
scroll: 0,
|
|
186363
186359
|
appliedScroll: -1,
|
|
186364
186360
|
doc: 0,
|
|
@@ -186588,8 +186584,8 @@ const zKe = Number.POSITIVE_INFINITY, eb = (e) => e.isVisible && e.isMeasured &&
|
|
|
186588
186584
|
}, [s, L]), _e(() => {
|
|
186589
186585
|
if (!a)
|
|
186590
186586
|
return;
|
|
186591
|
-
const Z =
|
|
186592
|
-
if (
|
|
186587
|
+
const Z = ce.current;
|
|
186588
|
+
if (ce.current = s, Z === s || ((Z !== null && s === null || Z !== null && s !== null && Z !== s) && (ee.current = !0), !s))
|
|
186593
186589
|
return;
|
|
186594
186590
|
const ae = x(
|
|
186595
186591
|
s
|
|
@@ -186643,7 +186639,7 @@ const zKe = Number.POSITIVE_INFINITY, eb = (e) => e.isVisible && e.isMeasured &&
|
|
|
186643
186639
|
appliedDoc: -1,
|
|
186644
186640
|
containerOffset: 0,
|
|
186645
186641
|
appliedContainerOffset: -1
|
|
186646
|
-
}, Y.current = null, Q.current = null,
|
|
186642
|
+
}, Y.current = null, Q.current = null, ce.current = null, ee.current = !1, g(), N();
|
|
186647
186643
|
}, [a, g, N]), _e(() => {
|
|
186648
186644
|
if (!a)
|
|
186649
186645
|
return;
|
|
@@ -186704,7 +186700,7 @@ const zKe = Number.POSITIVE_INFINITY, eb = (e) => e.isVisible && e.isMeasured &&
|
|
|
186704
186700
|
const G = H.current.get(J);
|
|
186705
186701
|
if (!G)
|
|
186706
186702
|
return;
|
|
186707
|
-
const { anchorId:
|
|
186703
|
+
const { anchorId: ue } = lx(G), ve = p.current.get(ue);
|
|
186708
186704
|
(!ve || !OR(ve, ae)) && (h(J), le = !0);
|
|
186709
186705
|
}), le && S();
|
|
186710
186706
|
};
|
|
@@ -188033,7 +188029,7 @@ const SGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
188033
188029
|
iconStroke: "hsl(var(--color-icon-danger))"
|
|
188034
188030
|
}
|
|
188035
188031
|
]
|
|
188036
|
-
],
|
|
188032
|
+
], ce = a || C;
|
|
188037
188033
|
return /* @__PURE__ */ F.jsxs(
|
|
188038
188034
|
"div",
|
|
188039
188035
|
{
|
|
@@ -188102,7 +188098,7 @@ const SGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
188102
188098
|
] }),
|
|
188103
188099
|
!y && /* @__PURE__ */ F.jsxs("div", { className: "flex gap-[8px] items-center", children: [
|
|
188104
188100
|
r > 0 && /* @__PURE__ */ F.jsx("span", { className: "h-[18px] color-text-default text-[12px] text-helper-text-bold rounded-full min-w-[18px] text-center color-bg-tertiary", children: r }),
|
|
188105
|
-
!c &&
|
|
188101
|
+
!c && ce && /* @__PURE__ */ F.jsx(Zee, { sections: Q })
|
|
188106
188102
|
] })
|
|
188107
188103
|
]
|
|
188108
188104
|
}
|
|
@@ -188281,10 +188277,10 @@ const SGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
188281
188277
|
isConnected: v,
|
|
188282
188278
|
isFocusMode: x
|
|
188283
188279
|
}) => {
|
|
188284
|
-
const D = (R, Q,
|
|
188280
|
+
const D = (R, Q, ce) => {
|
|
188285
188281
|
p(R, {
|
|
188286
188282
|
newName: Q,
|
|
188287
|
-
...
|
|
188283
|
+
...ce !== void 0 ? { emoji: ce } : {}
|
|
188288
188284
|
});
|
|
188289
188285
|
}, w = (R, Q) => {
|
|
188290
188286
|
p(R, { emoji: Q });
|
|
@@ -188302,15 +188298,15 @@ const SGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
188302
188298
|
), $ = Te(
|
|
188303
188299
|
(R, Q) => {
|
|
188304
188300
|
if (R !== t) {
|
|
188305
|
-
n(R), L((
|
|
188306
|
-
...
|
|
188301
|
+
n(R), L((ce) => ({
|
|
188302
|
+
...ce,
|
|
188307
188303
|
[t]: !1,
|
|
188308
188304
|
[R]: Q
|
|
188309
188305
|
}));
|
|
188310
188306
|
return;
|
|
188311
188307
|
}
|
|
188312
|
-
L((
|
|
188313
|
-
...
|
|
188308
|
+
L((ce) => ({
|
|
188309
|
+
...ce,
|
|
188314
188310
|
[R]: Q
|
|
188315
188311
|
}));
|
|
188316
188312
|
},
|
|
@@ -188340,9 +188336,9 @@ const SGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
188340
188336
|
collisionDetection: lne,
|
|
188341
188337
|
onDragStart: (R) => A(R.active.id),
|
|
188342
188338
|
onDragEnd: (R) => {
|
|
188343
|
-
const { active: Q, over:
|
|
188344
|
-
if (A(null),
|
|
188345
|
-
const ee = Q.id, V =
|
|
188339
|
+
const { active: Q, over: ce } = R;
|
|
188340
|
+
if (A(null), ce && Q.id !== ce.id) {
|
|
188341
|
+
const ee = Q.id, V = ce.id;
|
|
188346
188342
|
f(V, ee);
|
|
188347
188343
|
}
|
|
188348
188344
|
},
|
|
@@ -188445,7 +188441,7 @@ const SGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
188445
188441
|
activeTabId: t,
|
|
188446
188442
|
duplicateTab: h,
|
|
188447
188443
|
isPreviewMode: s,
|
|
188448
|
-
onDelete: (
|
|
188444
|
+
onDelete: (ce) => B(ce),
|
|
188449
188445
|
isVersionHistoryMode: m,
|
|
188450
188446
|
commentCount: g[R.id] || 0,
|
|
188451
188447
|
moveTabUp: () => {
|
|
@@ -188456,7 +188452,7 @@ const SGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
188456
188452
|
},
|
|
188457
188453
|
tabConfig: b,
|
|
188458
188454
|
showOutline: P(R.id),
|
|
188459
|
-
onShowOutlineChange: (
|
|
188455
|
+
onShowOutlineChange: (ce) => $(R.id, ce),
|
|
188460
188456
|
isConnected: v
|
|
188461
188457
|
},
|
|
188462
188458
|
R.id
|
|
@@ -188631,7 +188627,7 @@ const SGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
188631
188627
|
C(ie), L(B.id, ie), w(!1);
|
|
188632
188628
|
}, Q = () => {
|
|
188633
188629
|
C(A.current), w(!1);
|
|
188634
|
-
},
|
|
188630
|
+
}, ce = [
|
|
188635
188631
|
[
|
|
188636
188632
|
{
|
|
188637
188633
|
id: "new-tab",
|
|
@@ -188917,7 +188913,7 @@ const SGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
188917
188913
|
/* @__PURE__ */ F.jsx(
|
|
188918
188914
|
Zee,
|
|
188919
188915
|
{
|
|
188920
|
-
sections:
|
|
188916
|
+
sections: ce,
|
|
188921
188917
|
popoverSide: "top",
|
|
188922
188918
|
popoverClassName: "z-[1000]"
|
|
188923
188919
|
}
|
|
@@ -189448,7 +189444,7 @@ const SGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
189448
189444
|
onFocusMode: z,
|
|
189449
189445
|
onMarkdownExport: R,
|
|
189450
189446
|
onMarkdownImport: Q,
|
|
189451
|
-
onPdfExport:
|
|
189447
|
+
onPdfExport: ce,
|
|
189452
189448
|
onHtmlExport: ee,
|
|
189453
189449
|
onTxtExport: V,
|
|
189454
189450
|
onOdtExport: Y,
|
|
@@ -189463,7 +189459,7 @@ const SGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
189463
189459
|
initialComments: le = [],
|
|
189464
189460
|
initialCommentAnchors: J,
|
|
189465
189461
|
onNewComment: G,
|
|
189466
|
-
onEditComment:
|
|
189462
|
+
onEditComment: ue,
|
|
189467
189463
|
onEditReply: ve,
|
|
189468
189464
|
onCommentReply: we,
|
|
189469
189465
|
setInitialComments: fe,
|
|
@@ -189777,7 +189773,7 @@ const SGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
189777
189773
|
ipfsImageUploadFn: f,
|
|
189778
189774
|
onMarkdownExport: R,
|
|
189779
189775
|
onMarkdownImport: Q,
|
|
189780
|
-
onPdfExport:
|
|
189776
|
+
onPdfExport: ce,
|
|
189781
189777
|
onHtmlExport: ee,
|
|
189782
189778
|
onTxtExport: V,
|
|
189783
189779
|
onOdtExport: Y,
|
|
@@ -189809,7 +189805,7 @@ const SGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
189809
189805
|
ipfsImageUploadFn: f,
|
|
189810
189806
|
onMarkdownExport: R,
|
|
189811
189807
|
onMarkdownImport: Q,
|
|
189812
|
-
onPdfExport:
|
|
189808
|
+
onPdfExport: ce,
|
|
189813
189809
|
onHtmlExport: ee,
|
|
189814
189810
|
onTxtExport: V,
|
|
189815
189811
|
onOdtExport: Y,
|
|
@@ -190300,7 +190296,7 @@ const SGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
190300
190296
|
initialComments: le,
|
|
190301
190297
|
setInitialComments: fe,
|
|
190302
190298
|
onNewComment: G,
|
|
190303
|
-
onEditComment:
|
|
190299
|
+
onEditComment: ue,
|
|
190304
190300
|
onEditReply: ve,
|
|
190305
190301
|
onCommentReply: we,
|
|
190306
190302
|
onResolveComment: oe,
|
|
@@ -190410,7 +190406,7 @@ const SGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
190410
190406
|
}),
|
|
190411
190407
|
[$, R]
|
|
190412
190408
|
);
|
|
190413
|
-
const
|
|
190409
|
+
const ce = (Y) => {
|
|
190414
190410
|
const X = Y.name.split(",").map((ie) => {
|
|
190415
190411
|
const S = ie.trim();
|
|
190416
190412
|
return (f == null ? void 0 : f.find(
|
|
@@ -190538,7 +190534,7 @@ const SGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
190538
190534
|
{
|
|
190539
190535
|
tags: f || [],
|
|
190540
190536
|
selectedTags: g,
|
|
190541
|
-
onAddTag:
|
|
190537
|
+
onAddTag: ce,
|
|
190542
190538
|
isPreviewMode: e
|
|
190543
190539
|
}
|
|
190544
190540
|
)
|